Guest User

login_page

a guest
Apr 2nd, 2017
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 9.58 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  4.   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html>
  6. <head>
  7.     <title>PMPL Broadband</title>
  8.     <link rel="stylesheet" href="css/style.css">
  9.     <script type="text/javascript" src="./md5.js"></script>
  10.     <script type="text/javascript" src="jquery-1.11.1.min.js"></script>
  11.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  12.     <meta http-equiv="pragma" content="no-cache" />
  13.     <meta http-equiv="expires" content="-1" />
  14.     <script type="text/javascript">
  15.         function afterLogin() {
  16.             document.getElementById('wlcm').style.display = 'none';
  17.             document.getElementById('lblmsgs').style.display = 'block';
  18.             //document.getElementById('lblmsgs').innerHTML = 'Welcome To Pacenet Broadband';
  19.             document.getElementById('dvlogout').style.display = 'block';
  20.             document.getElementById('dvlogin').style.display = 'none';
  21.             return false;
  22.         }
  23.         function afterLogout() {
  24.             document.getElementById('lblmsgs').style.display = 'block';
  25.             document.getElementById('lblmsgs').innerHTML = 'Logout Successfully Done.';
  26.             document.getElementById('lblmsgs1').style.display = 'block';
  27.             document.getElementById('dvlogout').style.display = 'none';
  28.             document.getElementById('dvlogin').style.display = 'block';
  29.             return false;
  30.         }
  31.         $(document).ready(function () {
  32.             if ($("#LoginMessage").html() == "Success") {
  33.                 afterLogin();
  34.             }
  35.             if ($("#LogoutMessage").html() == "Success") {
  36.                 afterLogout();
  37.             }
  38.             if ($("#hdnPartnerID").val() > 0) {
  39.                 $('#divbackimg').css("background-image", "url(images/mb1.png)");
  40.             }
  41.         });
  42.     </script>
  43.  
  44.     <script type="text/javascript">
  45.         function doLogin() {
  46.             $.ajax({
  47.                 type: "POST",
  48.                 url: "Register.aspx?CheckCustomerStatus=1",
  49.                 data: { mobileNo: $("#username").val(), passwoRd: $("#password").val() }
  50.             })
  51.       .done(function (msg) {
  52.           if (msg == "Inactive") {
  53.               //document.getElementById('RenewalBox').style.display = 'block';
  54.               //document.getElementById('loginBox').style.display = 'none';
  55.               //document.getElementById('logoBox').style.display = 'none';
  56.               //alert("Your account is inactive.");
  57.               $("#dvErrMsg").html("Your account is inactive.");
  58.               return false;
  59.           }
  60.           else if (msg == "Terminated") {
  61.               //alert("Your account is terminated.");
  62.               $("#dvErrMsg").html("Your account is terminated.");
  63.               return false;
  64.           }
  65.           else if (msg == "Suspended") {
  66.               //alert("Your account is suspended.");
  67.               $("#dvErrMsg").html("Your account is suspended.");
  68.               return false;
  69.           }
  70.           else if (msg == "Active") {
  71.                          
  72.              
  73.               document.sendin.username.value = document.login.username.value;
  74.               document.sendin.password.value = hexMD5('' + document.login.password.value + '');
  75.               document.sendin.password.value = document.login.password.value;
  76.  
  77.               document.sendin.submit();
  78.               afterlogin();
  79.               return false;
  80.           } else if (msg == "") {
  81.               $("#dvErrMsg").html("Please enter correct username or password.");
  82.               return false;
  83.           }
  84.           else {
  85.               $("#dvErrMsg").html(msg);
  86.               //alert();
  87.           }
  88.       });
  89.  
  90.     return false;
  91. }
  92.  
  93. function logoutClick() {
  94.     $("#username").val("");
  95.     $("#password").val("");
  96.     document.logout.submit();
  97.     return false;
  98. }
  99. function clearMsg() {
  100.     if ($("#dvErrMsg") != null) {
  101.         $("#dvErrMsg").html("");
  102.     }
  103. }
  104. $("#btnLogin").click(function (event) {
  105.     event.preventDefault();
  106.  
  107.     $('form').fadeOut(500);
  108.     $('.wrapper').addClass('form-success');
  109. });
  110.     </script>
  111. </head>
  112. <body style="background-color: #53e3a6;">
  113.  
  114.     <div style="display: none; visibility: hidden;">
  115.         <input name="hdnIPAddress" type="hidden" id="hdnIPAddress" value="0" />
  116.         <input name="hdnMACAddress" type="hidden" id="hdnMACAddress" value="0" />
  117.         <input name="hdnStatusURL" type="hidden" id="hdnStatusURL" value="0" />
  118.         <input name="hdnURL" type="hidden" id="hdnURL" value="0" />
  119.         <input name="hdnResellerID" type="text" id="hdnResellerID" style="display: none" value="0" />
  120.         <input name="hdnPartnerID" type="text" id="hdnPartnerID" style="display: none" value="0" />
  121.         <input name="hotspotID" type="text" id="hotspotID" style="display: none" value="0" />
  122.  
  123.         <input name="hndPortalURL" type="text" id="hndPortalURL" style="display: none" />
  124.         <input name="Locid" type="text" id="Locid" style="display: none" />
  125.         <input name="ApMacId" type="text" id="ApMacId" style="display: none" />
  126.  
  127.         <label id="hndRespMsg" type="text"></label>
  128.         <label id="hndReqId" type="text"></label>
  129.         <label id="hndusername" type="text"></label>
  130.         <label id="hndpassword" type="text"></label>
  131.         <label id="LoginMessage" type="text"></label>
  132.         <label id="LogoutMessage" type="text"></label>
  133.  
  134.         <input type="hidden" name="mac" id="mac" value="" />
  135.         <input type="hidden" name="ip" id="ip" value="" />
  136.         <input type="hidden" name="sessionid" id="sessionid" value="" />
  137.         <input type="hidden" name="called" id="called" value="" />
  138.         <input type="hidden" name="nasid" id="nasid" value="" />
  139.         <input type="hidden" name="mod" id="mod" value="proceed" />
  140.         <input type="hidden" name="type" id="type" value="1" />
  141.     </div>
  142.  
  143.     <div class="header">
  144.         <ul class="contactPan">
  145.             <li id="PhoneNo" class="phone">033-40291100 for technical assistance</li>
  146.             <li class="mail"><a href="#" id="MailId">helpdesk@meghbelabroadband.com</a></li>
  147.             <li><a href="http://www.multireach.in/" id="site" target="_blank" style="display:none;">www.multireach.in</a></li>
  148.         </ul>
  149.         <div id="img" class="logo">
  150.             <a href="http://pmplbroadband.com/" target="_blank">
  151.                 <img src="/captiveportal/images/PMPL Logo.png" id="imgLogo" />
  152.                 www.pmplbroadband.com</a>
  153.         </div>
  154.     </div>
  155.  
  156.     <div class="wrapper">
  157.         <div class="actionPan">
  158.             <ul id="tab">
  159.                 <li class="myPage"><a href="http://mypage.meghbelabroadband.in/Customer/Default.aspx" target="_blank">My Page</a></li>
  160.                 <li class="googlePlay"><a href="https://play.google.com/store/apps/details?id=com.subscriber.pmpl" target="_blank">Google Play</a></li>
  161.             </ul>
  162.         </div>
  163.         <div class="container" id="divbackimg">
  164.             <h1 id="wlcm">Welcome</h1>
  165.             <h2>
  166.                 <label id="lblmsgs" style="display: none;">Welcome To Meghbela Broadband</label></h2>
  167.             <h4>
  168.                 <label id="lblmsgs1" style="display: none;">For any Quaries & Complain Please Visit My Page & Download App</label></h4>
  169.            <span id="lblusername"></span>
  170.            <div id="dvlogin">
  171.                <div style="color: red; height: 0px; text-align: center" id="dvErrMsg"> </div>
  172.                 <form name="login" action="http://10.10.0.1/login" method="post">
  173.                     <input type="hidden" name="dst" value="" />
  174.                     <input type="hidden" name="popup" value="true" />
  175.                     <input id="username" name="username" type="text" value="" placeholder="Username" />
  176.                     <input id="password" name="password" type="password" placeholder="Password" />
  177.                     <input type="hidden" name="radius1-44115" value="1" />
  178.                     <button type="submit" id="btnLogin" onclick="javascript: return doLogin();">Login</button>
  179.                 </form>
  180.             </div>
  181.             <div id="dvlogout" style="display: none; z-index: 1000; position: relative;">
  182.                 <br />
  183.                 <br />
  184.  
  185.                 <form name="logout" action="" method="post">
  186.                     <input type="text" placeholder="Username" value="" class="input">
  187.                     <button type="submit" onclick="javascript: return logoutClick();" class="button">Logout</button>
  188.                     <input type="hidden" name="dst" value="" />
  189.                     <input type="hidden" name="popup" value="true" />
  190.                 </form>
  191.             </div>
  192.             <form name="sendin" action="http://10.10.0.1/login" method="post">
  193.                 <input type="hidden" name="username" id="actualusername" />
  194.                 <input type="hidden" name="password" id="actualpassword" />
  195.                 <input type="hidden" name="dst" value="" />
  196.                 <input type="hidden" name="popup" value="true" />
  197.                 <input type="hidden" name="radius1-44115" value="1" />
  198.             </form>
  199.         </div>
  200.  
  201.         <ul class="bg-bubbles">
  202.             <li></li>
  203.             <li></li>
  204.             <li></li>
  205.             <li></li>
  206.             <li></li>
  207.             <li></li>
  208.             <li></li>
  209.             <li></li>
  210.             <li></li>
  211.             <li></li>
  212.         </ul>
  213.     </div>
  214.     <div style="font-size: 15px; margin-left: 30%; font-weight: bold; margin-top: 22px; letter-spacing: 1px;">For Login & Logout Page please visit to   10.10.0.1   !!!  Happy Surfing.</div>
  215. </body>
  216. </html>
Add Comment
Please, Sign In to add comment