/
operation.php
62 lines (59 loc) · 2.74 KB
/
operation.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
<div id="entete" style="height: 80px">
<div class="logo"><img src="<?php echo SITE_ROOT . "public/img/wide_operation.png"; ?>" /></div>
<div style="margin-left: 100px">
<span class="text" style="width: 150px"><label> Du : </label>
<input id="datedebut" name="datedebut" /></span>
<span class="text" style="width: 150px"><label> Au : </label>
<input name="datefin" id="datefin" />``</span>
<span class="select" style="width: 320px; clear: left;margin-top: 0;">
<label> Type d'opération : </label>
<select name="typeoperation">
<option value=""></option>
<option value="1">En cours</option>
<option value="2">Validées</option>
<option value="3">Non perçues</option>
</select>
</span>
</div>
</div>
<?php
if (isAuth(532)) {
$_maxnbre = 3;
} else {
$_maxnbre = 2;
}
?>
<div class="page">
<div class="tabs" style="width: 100%">
<ul>
<li id="tab1" class="courant"><a onclick="onglets(1, 1, <?php echo $_maxnbre; ?>);">
<img border ="0" alt="" src="<?php echo SITE_ROOT . "public/img/icons/operation.png"; ?>" />Opérations caisses</a></li>
<li id="tab2" class="noncourant"><a onclick="onglets(1, 2, <?php echo $_maxnbre; ?>);">
<img border ="0" alt="" src="<?php echo SITE_ROOT . "public/img/icons/caisse.png"; ?>" />Totaux</a></li>
<?php if (isAuth(532)) { ?>
<li id="tab3" class="noncourant"><a onclick="onglets(1, 3, <?php echo $_maxnbre; ?>);">
<img border ="0" alt="" src="<?php echo SITE_ROOT . "public/img/icons/caisse.png"; ?>" />Opérations supprimées</a></li>
<?php } ?>
</ul>
</div>
<div id="onglet1" class="onglet" style="display: block; height: 90%;">
<?php echo $tableOperation; ?>
</div>
<div id="onglet2" class="onglet" style="display: none; height: 90%;">
<table class="dataTable" id="tableTotaux">
<thead><tr><th>Montant non validée</th><th>Montant perçu</th><th>Montant validé</th></tr></thead>
<tbody>
<tr style="text-align: right;"><td><?php echo moneyString($totaux['MONTANTNONVALIDE']); ?></td>
<td><?php echo moneyString($totaux['MONTANTNONPERCU']); ?></td>
<td><?php echo moneyString($totaux['MONTANTVALIDE']); ?></td>
</tr>
</tbody>
</table>
</div>
<div id="onglet3" class="onglet" style="display: none; height: 90%;">
<?php echo $operationSupprimes; ?>
</div>
</div>
<div class="navigation">
</div>
<div class="status"></div>