mitrobill/ui/ui/print-by-period.tpl

74 lines
2.9 KiB
Smarty
Raw Normal View History

2022-09-06 10:31:33 +07:00
<!DOCTYPE html>
<html>
<head>
<title>{$_title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2022-09-17 21:05:24 +07:00
<link href="ui/ui/styles/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="ui/ui/images/favicon.ico">
2022-09-06 10:31:33 +07:00
<style type="text/css">
@media print
{
.no-print, .no-print *
{
display: none !important;
}
}
</style>
</head>
<body>
<div class="row">
<div class="col-md-12">
<div id="printable">
2024-02-13 13:54:01 +07:00
<h4>{Lang::T('All Transactions at Date')}: {date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}</h4>
2022-10-16 14:48:21 +07:00
<div class="table-responsive">
2022-11-17 12:36:32 +07:00
<table class="table table-bordered table-condensed table-striped " style="background: #ffffff">
2024-02-13 13:54:01 +07:00
<th class="text-center">{Lang::T('Username')}</th>
<th class="text-center">{Lang::T('Plan Name')}</th>
<th class="text-center">{Lang::T('Type')}</th>
<th class="text-center">{Lang::T('Plan Price')}</th>
<th class="text-center">{Lang::T('Created On')}</th>
<th class="text-center">{Lang::T('Expires On')}</th>
<th class="text-center">{Lang::T('Method')}</th>
<th class="text-center">{Lang::T('Routers')}</th>
2022-09-10 16:01:51 +07:00
{foreach $d as $ds}
<tr>
<td>{$ds['username']}</td>
<td class="text-center">{$ds['plan_name']}</td>
<td class="text-center">{$ds['type']}</td>
2023-08-16 09:05:59 +07:00
<td class="text-right">{Lang::moneyFormat($ds['price'])}</td>
2023-08-28 09:44:57 +07:00
<td>{Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])}</td>
<td>{Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])}</td>
2022-09-10 16:01:51 +07:00
<td class="text-center">{$ds['method']}</td>
<td class="text-center">{$ds['routers']}</td>
</tr>
{/foreach}
</table>
</div>
2022-09-06 10:31:33 +07:00
<div class="clearfix text-right total-sum mb10">
2024-02-13 13:54:01 +07:00
<h4 class="text-uppercase text-bold">{Lang::T('Total Income')}:</h4>
2023-08-16 09:05:59 +07:00
<h3 class="sum">{Lang::moneyFormat($dr)}</h3>
2022-09-06 10:31:33 +07:00
</div>
</div>
2024-02-13 13:54:01 +07:00
<button type="button" id="actprint" class="btn btn-default btn-sm no-print">{Lang::T('Click Here to Print')}</button>
2022-09-06 10:31:33 +07:00
</div>
</div>
2024-07-24 15:36:13 +07:00
<script src="ui/ui/scripts/jquery.min.js"></script>
2022-09-17 21:05:24 +07:00
<script src="ui/ui/scripts/bootstrap.min.js"></script>
2022-09-06 10:31:33 +07:00
{if isset($xfooter)}
{$xfooter}
{/if}
<script>
jQuery(document).ready(function() {
// initiate layout and plugins
$("#actprint").click(function() {
window.print();
return false;
});
});
</script>
</body>
2017-03-11 02:51:06 +07:00
</html>