-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgenerator.coduri.php
111 lines (108 loc) · 2.84 KB
/
generator.coduri.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
require("test.login.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>GENERATOR CODURI</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link type="text/css" rel="stylesheet" href="css/common.css">
<link type="text/css" rel="stylesheet" href="css/config.produse.css">
<script type="text/javascript" src="js/ui/jquery-1.2.6.js"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
select {
width: 190px;
}
-->
</style>
<style type="text/css" media="print">
input[type=button] {
display:none;
}
</style>
</head>
<body>
<div>
<div align="center">
<input type="button" name="Button" value="IESIRE" onClick="window.location.href = 'login.php'">
</div>
</div>
<?php
if($_SERVER['REQUEST_METHOD'] == "POST")
{
$dela = $_POST['dela'];
$panala = $_POST['panala'];
if(is_numeric($dela) && is_numeric($panala) && $dela < $panala)
{
for($i=0;$i+$dela<=$panala;$i++)
{
if($i%3==0) {
echo ' </tr>
</table><table width="100%" border="0" align="center" cellpadding="0" cellspacing="5" id="table">
<tr>';
if($i%30==0 && $i != 0)
{
echo '<div style="page-break-after: always;"><span style="display: none;"> </span></div>';
}
}
$cod = $i+$dela;
echo '<td width="33%" valign="top">
<div align="center">
<img src="thirdparty/barcode/html/image.php?code=code39&o=2&t=30&r=2&text='. $cod .'&f=3&a1=&a2=">
</div>
<input name="a" type="text" style="border: 0px; border-bottom:1px solid #000; width:100% " value="DEN:">
<input name="a" type="text" style="border: 0px; border-bottom:1px solid #000; width:100% " value="PRET:">
</td>';
}
}
else
{
echo 'ceva';
}
}
else
{
?>
<form name="form1" method="post" action="">
<h3 align="center">Generator coduri interne </h3>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><strong>De la </strong></div></td>
<td> </td>
<td><div align="center"><strong>Pana la </strong></div></td>
</tr>
<tr>
<td><div align="center">
<input name="dela" type="text" id="dela">
</div></td>
<td> </td>
<td><div align="center">
<input name="panala" type="text" id="panala">
</div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><div align="center">
<input type="submit" name="Submit" value="Genereaza">
</div></td>
<td> </td>
</tr>
</table>
</form>
<?php
}
?>
</body>
</html>