Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
- <meta content="utf-8" http-equiv="encoding">
- <script type="text/javascript" src="./jquery-2.2.0.min.js"></script>
- <script type="text/javascript" src="./invoicereturn.js"></script>
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- </head>
- <body>
- <?php
- if (!isset($_SERVER['PHP_AUTH_USER'])) {
- header('WWW-Authenticate: Basic realm="My Realm"');
- header('HTTP/1.0 401 Unauthorized');
- echo 'You need to log in';
- exit;
- } else {
- $user = $_SERVER['PHP_AUTH_USER'];
- $pass = $_SERVER['PHP_AUTH_PW'];
- $db = new mysqli('localhost',$user,$pass,'Invoice_trace');
- if($db->connect_errno > 0){
- die('Unable to connect to database [' . $db->connect_error . ']. Please ?><a href="./logout.php">logout</a><?php');
- }
- }
- ?>
- <font color="red">Returns</font>
- <form>
- <select id="section" name="section">
- <option value="">Del.Pers.</option>
- </select>
- <input id="barcode" type="text" name="barcode" />
- <input id="inspect" type="button" value="recent" />
- <!--<input id="clearst" type="checkbox" value="" /> --!>
- </form>
- <div id='message'></div>
- <br><br><br><a href="./index.php">outgoing</a>
- <br><br><br><a href="./logout.php">logout</a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement