Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <script type="text/javascript">
- function Browser()
- {
- var ua, s, i;
- this.isIE = false; // Internet Explorer
- this.isOP = false; // Opera
- this.isNS = false; // Netscape
- this.version = null;
- ua = navigator.userAgent;
- s = "Opera";
- if ((i = ua.indexOf(s)) >= 0) {
- this.isOP = true;
- this.version = parseFloat(ua.substr(i + s.length));
- return;
- }
- s = "Netscape6/";
- if ((i = ua.indexOf(s)) >= 0) {
- this.isNS = true;
- this.version = parseFloat(ua.substr(i + s.length));
- return;
- }
- // Treat any other "Gecko" browser as Netscape 6.1.
- s = "Gecko";
- if ((i = ua.indexOf(s)) >= 0) {
- this.isNS = true;
- this.version = 6.1;
- return;
- }
- s = "MSIE";
- if ((i = ua.indexOf(s))) {
- this.isIE = true;
- this.version = parseFloat(ua.substr(i + s.length));
- return;
- }
- }
- function checkscreen()
- {
- this.browser = new Browser();
- if (!((this.browser.isNS) || (this.browser.isIE) || (this.browser.isOP))) {
- return (confirm("This page only work correctly with Internet Explorer, Firefox, Opera browser! \r\nClick \"OK\" to view the page anyway. Click \"CANCEL\" to leave.") != 0);
- }
- if (screen.width < 1024) {
- if (screen.height < 768) {
- alert("This page better with minimal 1024x768 resolution.\r\nIt appears you aren't operating at that resolution.");
- }
- }
- }
- function focused()
- {
- document.form['user'].focus();
- }
- window.onload = focused;
- </script>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <!--Start of Zopim Live Chat Script-->
- <script type="text/javascript">
- window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
- d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
- _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute("charset","utf-8");
- $.src="//v2.zopim.com/?3wLAQY3AjlbdybSYBhZgXJnLOijc0Fqc";z.t=+new Date;$.
- type="text/javascript";e.parentNode.insertBefore($,e)})(document,"script");
- </script>
- <!--End of Zopim Live Chat Script-->
- <head>
- <base href="http://demo.versatech.co.id//index.php" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>VERSA DEMO</title>
- </head>
- <style type="text/css">
- body {background-image:url(Background.jpg); background-repeat:no-repeat; background-attachment:fixed;
- background-size: 100% 100%;
- background-position:center;}
- #main-container {width:1000px; margin-left:auto; margin-right:auto;}
- #logo-container {width:1000px; height:100px;}
- #logo {background-image:url(logo.png); width:405px; height:53px; margin:auto; margin-top:24px;}
- #main-page {width:1000px; height:400px; margin:auto;}
- form {height:310px; width:370px; margin-top:60px; margin-left:auto; margin-right:auto;}
- .form-login {width:170px; border: 1px solid #0d2c52;background-color:#1e4f8a;font-size: 16px;color:#ebebeb; margin-top:10px;}
- #loginbox {width:370px; height:310px; color:#ebebeb; font: 12px Arial, Helvetica, sans-serif; display: block;
- background:url(login-box-backg.png) no-repeat left top;}
- #loginheader {width:370px; height:110px; text-align:center;}
- .loginboxmain {width: 370px;height: 50px; float:left;}
- .loginboxname {width: 100px; text-align: center;margin: 18px 10px 18px 10px; float:left;}
- .loginboxfield {width: 250px; float:left; height: 50px;}
- .loginbutton {margin-left: 100px;}
- #boxbutton {float:left; width:370px; height:80px;}
- .loginbutton {margin-left: 130px; margin-top: 20px;}
- </style>
- <body OnLoad="document.form.user.focus();">
- <div id="container">
- <div id="main-container">
- <div id="logo-container">
- <div id="logo">
- </div>
- </div>
- </div>
- <div id="main-page">
- <form method="post" name="form" action="http://rits.versatech.co.id/admin">
- <div class="login-form">
- <div id="loginbox">
- <div id="loginheader">
- <br />
- <h1>Login</h1>
- Please Input Username and Password
- <br />
- for Entry to System
- </div>
- <div class="loginboxmain">
- <div class="loginboxname"> Username :</div>
- <div class="loginboxfield">
- <input class="form-login" title="Username" maxlength="2048" size="30" name="user" type="text" />
- </div>
- </div>
- <div class="loginboxmain">
- <div class="loginboxname"> Password :</div>
- <div class="loginboxfield">
- <input class="form-login" title="Password" maxlength="2048" size="30" name="password" type="password" />
- </div>
- </div>
- <div id="boxbutton">
- <input class="loginbutton" src="login-btn.png" type="image" />
- <!-- <p onclick = "loginAtris();" > Login Atris</p> -->
- </div>
- </div>
- <!-- a href="http://www.pesawat.pw">Back to Home Page</a -->
- </div>
- </form>
- </div>
- <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
- <script>
- function checklogin()
- {
- $.ajax({
- url: 'http://atris.versatech.co.id/api/admin/isonlogin',
- data: '',
- type: 'GET',
- // beforeSend:function(){
- // main_loading = true;
- // $('#loginbutton').addClass('disabled');
- // $('#loginLoading').removeClass('hidden');
- // },
- success: function(postresult){
- var result_json = $.parseJSON(postresult);
- switch (result_json.status) {
- case 'failed':
- console.log('login null');
- break;
- case 'success':
- window.location.href = "http://atris.versatech.co.id/";
- break;
- default:
- alert('unknown error, hubungi admin !');
- }
- console.log('success kk');
- },
- error: function (xhr, ajaxOptions, thrownError) {
- alert('unknown error, hubungi admin !');
- },
- });
- }
- function loginAtris(){
- var user_name = $( "input[name='user']" ).val();
- var password = $( "input[name='password']" ).val();
- var params = "user="+user_name+"&password="+password;
- checklogin();
- $.ajax({
- url: 'http://atris.versatech.co.id/api/admin',
- data: params,
- type: 'POST',
- // beforeSend:function(){
- // main_loading = true;
- // $('#loginbutton').addClass('disabled');
- // $('#loginLoading').removeClass('hidden');
- // },
- success: function(postresult){
- // var result_json = $.parseJSON(postresult);
- switch (postresult.status) {
- case 'success':
- window.location.href = "http://atris.versatech.co.id/";
- break;
- case 'failed':
- alert(postresult.content.alert);
- break;
- default:
- alert('unknown error, hubungi admin !');
- }
- },
- error: function (xhr, ajaxOptions, thrownError) {
- alert('unknown error, hubungi admin !');
- },
- });
- }
- </script>
- </body>
- </html>
- <!--
- PT. Versa Technology
- Visit our website at www.versatech.co.id
- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement