Advertisement
Guest User

Untitled

a guest
May 5th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  4. <meta content="utf-8" http-equiv="encoding">
  5. <script type="text/javascript" src="./jquery-2.2.0.min.js"></script>
  6. <script type="text/javascript" src="./invoicereturn.js"></script>
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  8. </head>
  9. <body>
  10. <?php
  11. if (!isset($_SERVER['PHP_AUTH_USER'])) {
  12. header('WWW-Authenticate: Basic realm="My Realm"');
  13. header('HTTP/1.0 401 Unauthorized');
  14. echo 'You need to log in';
  15. exit;
  16. } else {
  17. $user = $_SERVER['PHP_AUTH_USER'];
  18. $pass = $_SERVER['PHP_AUTH_PW'];
  19. $db = new mysqli('localhost',$user,$pass,'Invoice_trace');
  20. if($db->connect_errno > 0){
  21. die('Unable to connect to database [' . $db->connect_error . ']. Please ?><a href="./logout.php">logout</a><?php');
  22. }
  23. }
  24. ?>
  25. <font color="red">Returns</font>
  26. <form>
  27. <select id="section" name="section">
  28. <option value="">Del.Pers.</option>
  29. </select>
  30. <input id="barcode" type="text" name="barcode" />
  31. <input id="inspect" type="button" value="recent" />
  32. <!--<input id="clearst" type="checkbox" value="" /> --!>
  33. </form>
  34. <div id='message'></div>
  35. <br><br><br><a href="./index.php">outgoing</a>
  36. <br><br><br><a href="./logout.php">logout</a>
  37. </body>
  38. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement