-
Notifications
You must be signed in to change notification settings - Fork 0
/
boleta.php
92 lines (64 loc) · 1.88 KB
/
boleta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<title>BOLETA CREADA</title>
<link rel="stylesheet" type="text/css" href="Consulta_Stock/style.css">
<script>
function check()
{
var searchtext = document.getElementById("txt").value;
if(searchtext=='')
{
alert('Enter string to search');
}
else{
document.myform.submit();
}
}
function reset_table()
{
document.myform.submit();
}
</script>
</head>
<body>
<div>
<?php
$ID=$_GET['varB'];
error_reporting(0);
require_once "Consulta_Stock/config.php";
$link = mysql_connect($hostname, $username,$password);
$dbcon = mysql_select_db($dbname);
echo "<div align='center' class='resp_code'>";
echo "<h5><b>BOLETA N° $ID </b></h5>";
echo "<div align='center'>";
echo "<table class='table'>
<tr><th>ID</th>
<th>NOMBRE</th>
<th>STOCK</th>
</tr>";
$query = mysql_query("SELECT * FROM productos");
while($row=mysql_fetch_array($query))
{
$nam = $row['ID'];
$clg = $row['NOMBRE'];
$email = $row['STOCK'];
echo "<tr>
<td id='ID'>$row[0]</td>
<td id='NOMBRE'>$row[1]</td>
<td id='STOCK'>$row[2]</td>
</tr>";
}
echo "</table>";
echo "</div>";
echo "<div style='font-weight:bold;color:red;'>$op</div>";
echo "<div id='dumdiv' align='center' style=' font-size: 10px;color: #dadada;'>
<a id='dum' style='padding-right:0px; text-decoration:none;color: #dadada;text-align:center;' href='https://www.hscripts.com'>©h</a>
</div>";
echo "</div>";
?>
<div align='center'><input type='submit' name='submit' value='VOLVER' onclick="history.back(-1)">
</div>
</div>
</body>
</html>