Advertisement
hide111

login

Mar 29th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.52 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Halaman Login</title>
  6. <link rel="stylesheet" type="text/css" href="mycss/login.css" />
  7. <script type="text/javascript" src="jquery_easyui/jquery.min.js"></script>
  8. <script type="text/javascript" src="libs_js/login.js"></script>
  9. </head>
  10.  
  11. <body>
  12. <div class="lg-container">
  13.         <h1>LOGIN PETUGAS</h1>
  14.         <form action="akses/p_login_gudang.php" id="lg-form" name="lg-form" method="post">
  15.            
  16.           <div>
  17.             <label for="username">Username:</label>
  18.               <input type="text" name="username" id="username" placeholder="username"/>
  19.           </div>
  20.            
  21.             <div>
  22.                 <label for="password">Password:</label>
  23.                 <input type="password" name="password" id="password" placeholder="password" /></div>
  24.                
  25. <div>                                            
  26. <select name="cmbLevel">
  27.               <option value="KOSONG">....</option>
  28.               <?php
  29.         $pilihan = array("Admin", "Petugas", "User");
  30.         foreach ($pilihan as $nilai) {
  31.             if ($_POST['cmbLevel']==$nilai) {
  32.                 $cek="selected";
  33.             } else { $cek = ""; }
  34.             echo "<option value='$nilai' $cek>$nilai</option>";
  35.         }
  36.         ?>
  37.         </select>        
  38.             </div>
  39.            
  40.             <div>              
  41.                 <center><button type="submit" id="login">Login</button></center>
  42.             </div>
  43.            
  44.         </form>
  45.         <div id="message"></div>
  46. </div>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement