-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathevidenta.vanzari.php
166 lines (159 loc) · 4.52 KB
/
evidenta.vanzari.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?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>EVIDENTA VANZARI</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>
<?php
require_once("evidenta.vanzari.common.php");
require("config/config.php");
$xajax->printJavascript('thirdparty/xajax/');
?>
<?php
if($cfgGui['loading'])
{
$load = new Loading;
echo $load -> javaScript();
}
$tn = new TastaturaNumerica;
echo $tn -> printJavaScript();
$kb = new KeyBoard;
echo $kb -> printJavaScript();
$tabView = new TabView;
$tabView -> root = "";
echo $tabView -> printCss();
echo $tabView -> printJavaScript();
?>
</head>
<?php
?>
<body>
<div id="main">
<div id="layout">
<?php
$mysql = new MySQL();
$zi = new ZileEconomice($mysql);
$zi -> getLastDay();
?>
<form action="print.evidenta.vanzari.php" method="post" name="frmFiltre" id="frmFiltre" >
<br><br>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200"><div align="center">
<input name="dateStart" id="dateStart" type="text" value="<?php echo $zi -> obj -> data; ?>" readonly="" onClick="xajax_calPopup('','', 'dateStart')">
</div></td>
<td width="200"><div align="center">
<input name="dateStop" type="text" id="dateStop" value="<?php echo $zi -> obj -> data; ?>" readonly="" onClick="xajax_calPopup('','', 'dateStop')">
</div></td>
<td width="200">
<div align="center">
<?php
$options = NULL;
$frm = new Forms();
$ModuriPlata = new ModuriPlata($mysql);
$ModuriPlata -> find(array("ORDER BY nume_mod ASC"));
$options['0'] = "Filtru Moduri plata";
if(isset($ModuriPlata -> objects))
{
foreach($ModuriPlata -> objects as $objCasa)
{
$options[$objCasa -> mod_plata_id] = $objCasa -> nume_mod;
}
}
echo $frm -> input("mod_plata_id", array("options" => $options));
?></div></td>
<td width="200"><div align="center">
<?php
$options = NULL;
$case = new CaseFiscale($mysql);
$case -> find(array("ORDER BY nume_casa ASC"));
$options['0'] = "Filtru Case";
if(isset($case -> objects))
{
foreach($case -> objects as $objCasa)
{
$options[$objCasa -> casa_id] = $objCasa -> nume_casa;
}
}
echo $frm -> input("casa_id", array("options" => $options));
?>
</div></td>
</tr>
<tr>
<td></td>
<td> </td>
<td> <div align="center"><?php
$user = new Users($mysql);
$user -> find(array("WHERE", "activ" => " = 'DA'", "ORDER BY", "nume", "ASC"));
$options = NULL;
$options['0'] = "Filtru Utilizatori";
if(isset($user -> objects))
{
foreach($user -> objects as $objUser)
{
$options[$objUser -> user_id] = $objUser -> nume;
}
}
echo $frm -> input("user_id", array("options" => $options));
?></div> </td>
<td>
<div align="center">
<input name="btnGenereaza" type="button" id="btnGenereaza" value="Genereaza Raport" onClick="xajax_genereazaRaport(xajax.getFormValues('frmFiltre'));">
</div>
</td>
</tr>
</table>
</form>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="550" width="420" valign="top">
<div id="preview" style="width:400px; height:500px;overflow:scroll; margin:20px auto;">
</div>
</td>
<td valign="top" width="580">
<div id="bon_continut" style="margin-top: 20px;overflow:auto;">
</div></td>
</tr>
<tr>
<td width="420"><div align="center">
<input name="Button" type="button" class="btnTouch" value="TIPARESTE RAPORT" onClick="document.getElementById('frmFiltre').submit()">
</div></td>
<td width="580"><div align="center">
<input name="btnIesire" type="button" class="btnTouch" id="btnIesire" value="Iesire" onClick="window.location.href = 'login.php'">
</div></td>
</tr>
</table>
<div id="overlay">
</div>
<div id="obiecte" class="flora">
</div>
</div>
</div>
<?php
if($cfgGui['loading'])
{
$load = new Loading;
echo $load -> div();
}
?>
<div id="windows"></div>
</body>
</html>