| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/Helpdesk/application/views/requests/ |
Upload File : |
<?php if (!defined("SYSTEM")) die();?>
<h2 class="text-center m-b-40"><?php echo $title; ?></h2>
<?php
foreach ($requests as $request) {
$total_price = $total_price + $request->total_quantity * $request->price;
$users[$request->username] = $user[$request->username] + 1;
$toner_ids[$request->toner_id] = $toner_ids[$request->toner_id] + 1;
}
?>
<table class="table table-striped table-bordered summary m-b-50">
<tr>
<td>Περίοδος</span></td>
<td><?php echo REQUESTS_TONERS_PERIOD; ?></td>
</tr>
<tr>
<td>Πλήθος χρηστών</span></td>
<td><?php echo count($users); ?></td>
</tr>
<tr>
<td>Πλήθος κωδικών</span></td>
<td><?php echo count($toner_ids); ?></td>
</tr>
<tr>
<td>Συνολικό κόστος <span class="small">(χωρίς ΦΠΑ)</span></td>
<td><strong><span class="col-red"><?php echo (float) $total_price;?> €</span></strong></td>
</tr>
<tr>
<td>Συνολικό κόστος <span class="small">(με ΦΠΑ)</span></td>
<td><strong><span class="col-red"><?php echo round($total_price * 1.24, 2);?> €</span></strong></td>
</tr>
</table>
<table class="table table-striped table-bordered table-hover table-responsive dataTable" data-url="<?php echo APP_BASE ?>requests/savetonercodeprice">
<thead>
<tr>
<th class="text-center no-sort col-white">Α/Α</th>
<th>Εκτυπωτής</th>
<th>Είδος</th>
<th>Χρώμα</th>
<th>Κωδικός</th>
<th>Ποσότητα</th>
<th>Τιμή/τεμ.</th>
<th>Γνήσιο</th>
</tr>
</thead>
<tbody>
<?php if ($requests) {
$c = 0;
$total_price = 0;
foreach ($requests as $request) {
?>
<tr>
<td class="text-center"><?php echo ++$c; ?></td>
<td><?php echo $request->printer; ?></td>
<td><?php echo $request->type; ?></td>
<td><?php echo $request->color; ?></td>
<td><input type="text" class="code" value="<?php echo $request->code; ?>" data-toner-id="<?php echo $request->toner_id; ?>"></td>
<td class="text-center" data-toggle="tooltip" title="<?php echo str_replace(", ","<br>", $request->users); ?>"><?php echo $request->total_quantity; ?></td>
<td class="text-center"><input type="text" class="price" value="<?php echo $request->price; ?>" data-toner-id="<?php echo $request->toner_id; ?>"></td>
<td class="text-center">
<select class="original" data-toner-id="<?php echo $request->toner_id; ?>">
<option value="1"<?php echo ($request->original==1?" selected":"") ?>>Γνήσιο</option>
<option value="0"<?php echo ($request->original==0?" selected":"") ?>>Συμβατό</option>
</select>
</td>
</tr>
<?php } ?>
<?php } else { ?>
<tr>
<td class="text-center" colspan="7">- Κανένα αναλώσιμο -</td>
</tr>
<?php } ?>
</tbody>
</table>