OSB enhancements to date
This commit is contained in:
21
modules/service/views/service/list.php
Normal file
21
modules/service/views/service/list.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<!-- @todo NEEDS TO BE TRANSLATED -->
|
||||
<table class="box-left">
|
||||
<tr>
|
||||
<td class="head">ID</td>
|
||||
<td class="head">Type</td>
|
||||
<td class="head">Details</td>
|
||||
<td class="head">Billing</td>
|
||||
<td class="head">Price</td>
|
||||
<td class="head">Active</td>
|
||||
</tr>
|
||||
<?php $i = 0; foreach ($services as $service) { ?>
|
||||
<tr class="<?php echo ++$i%2 ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo HTML::anchor('user/service/view/'.$service->id,$service->id); ?></td>
|
||||
<td><?php echo $service->display('type'); ?></td>
|
||||
<td><?php echo $service->invoice_display(); ?></td>
|
||||
<td><?php echo $service->display('recur_schedule');?></td>
|
||||
<td><?php echo $service->display('price'); ?></td>
|
||||
<td><?php echo $service->display('active'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
10
modules/service/views/service/list/adslbilling_body.php
Normal file
10
modules/service/views/service/list/adslbilling_body.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo $service->service_adsl->display('service_number'); ?></td>
|
||||
<td><?php echo $service->service_adsl->adsl_plan->adsl_supplier_plan->name(); ?></td>
|
||||
<td><?php echo $service->service_adsl->contract_date_start(); ?></td>
|
||||
<td><?php echo $service->service_adsl->contract_date_end(); ?></td>
|
||||
<td><?php echo Currency::display($service->service_adsl->adsl_plan->adsl_supplier_plan->base_cost); ?></td>
|
||||
<td><?php echo Currency::display($service->service_adsl->adsl_plan->adsl_supplier_plan->base_cost+$service->service_adsl->adsl_plan->adsl_supplier_plan->tax()); ?></td>
|
||||
<td><input type="checkbox" <?php echo $checked; ?> onchange="paid(this);"/></td>
|
||||
<td><input type="text" name="payment[<?php echo $service->service_adsl->service_number; ?>]" value="<?php echo $amount; ?>" id="p<?php echo $service->service_adsl->id; ?>" size="8"/></td>
|
||||
</tr>
|
4
modules/service/views/service/list/adslbilling_foot.php
Normal file
4
modules/service/views/service/list/adslbilling_foot.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<tr class="head">
|
||||
<td colspan="7"> </td>
|
||||
<td><?php echo $total; ?></td>
|
||||
</tr>
|
7
modules/service/views/service/list/adslbilling_head.php
Normal file
7
modules/service/views/service/list/adslbilling_head.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<script type="text/javascript" >
|
||||
<!--
|
||||
function paid(form) {
|
||||
alert(form);
|
||||
}
|
||||
//-->
|
||||
</script>
|
10
modules/service/views/service/list/adslbilling_summary.php
Normal file
10
modules/service/views/service/list/adslbilling_summary.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo $service->service_adsl->display('service_number'); ?></td>
|
||||
<td><?php echo $service->service_adsl->adsl_plan->adsl_supplier_plan->name(); ?></td>
|
||||
<td><?php echo $service->service_adsl->contract_date_start(); ?></td>
|
||||
<td><?php echo $service->service_adsl->contract_date_end(); ?></td>
|
||||
<td><?php echo Currency::display($service->service_adsl->adsl_plan->adsl_supplier_plan->base_cost); ?></td>
|
||||
<td><?php echo Currency::display($service->service_adsl->adsl_plan->adsl_supplier_plan->base_cost+$service->service_adsl->adsl_plan->adsl_supplier_plan->tax()); ?></td>
|
||||
<td><?php echo $amount; ?></td>
|
||||
<td><?php echo $service->service_adsl->adsl_plan->adsl_supplier_plan->base_cost+$service->service_adsl->adsl_plan->adsl_supplier_plan->tax()-$amount; ?></td>
|
||||
</tr>
|
@@ -0,0 +1,6 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo $service; ?></td>
|
||||
<td><?php echo empty($item['info']) ? ' ' : $item['info']; ?></td>
|
||||
<td><?php echo empty($item['cost']) ? ' ' : $item['cost']; ?></td>
|
||||
<td><?php echo empty($item['credit']) ? ' ' : $item['credit']; ?></td>
|
||||
</tr>
|
12
modules/service/views/service/list/adslservices_body.php
Normal file
12
modules/service/views/service/list/adslservices_body.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo $service->service_adsl->display('service_number'); ?></td>
|
||||
<td><?php echo $service->service_adsl->ipaddress(); ?></td>
|
||||
<td><?php printf('%s (%s)',$service->name(),$service->id); ?></td>
|
||||
<td><?php echo $service->service_adsl->adsl_plan->allowance(); ?></td>
|
||||
<td><?php echo $service->service_adsl->traffic_thismonth(); ?></td>
|
||||
<td><?php echo $service->service_adsl->traffic_lastmonth(); ?></td>
|
||||
<td><?php echo $service->display('price'); ?></td>
|
||||
<td><?php echo $service->display('recur_schedule'); ?></td>
|
||||
<td><?php echo $service->display('date_next_invoice'); ?></td>
|
||||
<td><input type="checkbox"/></td>
|
||||
</tr>
|
23
modules/service/views/service/list/adslservices_header.php
Normal file
23
modules/service/views/service/list/adslservices_header.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<!-- Print out the heading for the first record -->
|
||||
<!-- // @todo This needs to be translated -->
|
||||
<tr class="title">
|
||||
<td colspan="10" style="padding: 0px;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td style="border: 0px;"><?php printf('%s %s',$service->account->accnum(),$service->account->name()); ?></td>
|
||||
<td style="border: 0px; text-align: right;"><?php printf('(%s: %s)',_('Invoices Due'),Currency::display($service->invoices_due_total())); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="head">
|
||||
<td>Service</td>
|
||||
<td>IP Address</td>
|
||||
<td>Plan</td>
|
||||
<td>Plan Allowance</td>
|
||||
<td>This Month</td>
|
||||
<td>Last Month</td>
|
||||
<td>Amount</td>
|
||||
<td>Freq</td>
|
||||
<td>Next Invoice Date</td>
|
||||
</tr>
|
9
modules/service/views/service/list/bycheckout_body.php
Normal file
9
modules/service/views/service/list/bycheckout_body.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo $service->account->accnum(); ?></td>
|
||||
<td><?php echo $service->account->name(); ?></td>
|
||||
<td><?php printf('%s (%s)',$service->name(),$service->id); ?></td>
|
||||
<td><?php echo $service->display('recur_schedule'); ?></td>
|
||||
<td><?php echo $service->display('price'); ?></td>
|
||||
<td><?php echo $service->invoices_due_total(); ?></td>
|
||||
<td><?php echo $service->display('date_next_invoice'); ?></td>
|
||||
</tr>
|
16
modules/service/views/service/list/bycheckout_header.php
Normal file
16
modules/service/views/service/list/bycheckout_header.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- Print out the heading for the first record -->
|
||||
<!-- // @todo This needs to be translated -->
|
||||
<?php if (! $last_checkout); {?>
|
||||
<tr class="title">
|
||||
<td colspan="7"><?php echo $checkout_name; ?></td>
|
||||
</tr>
|
||||
<tr class="head">
|
||||
<td>Account ID</td>
|
||||
<td>Account</td>
|
||||
<td>Service</td>
|
||||
<td>Frequency</td>
|
||||
<td>Amount</td>
|
||||
<td>Invoices Due</td>
|
||||
<td>Next Payment Date</td>
|
||||
</tr>
|
||||
<?php } ?>
|
@@ -0,0 +1,5 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td colspan="4"> </td>
|
||||
<td><b><?php echo $subtotal; ?></b></td>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
39
modules/service/views/service/view.php
Normal file
39
modules/service/views/service/view.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<!-- @todo NEEDS TO BE TRANSLATED -->
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<!-- Service Information -->
|
||||
<table>
|
||||
<tr>
|
||||
<td>Service Name</td>
|
||||
<td class="head"><?php echo $service->product->product_translate->find()->name; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Active</td>
|
||||
<td class="head"><?php echo $service->display('active'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Billing Period</td>
|
||||
<td class="head"><?php echo $service->display('recur_schedule');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cost</td>
|
||||
<td class="head"><?php echo $service->display('price'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Date Next Invoice</td>
|
||||
<td class="head"><?php echo Config::date($service->date_next_invoice); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Current Invoices Due</td>
|
||||
<td class="head"><?php echo Currency::display($service->invoices_due_total()); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="vertical-align: top;">
|
||||
<!-- Product Info -->
|
||||
<?php echo $product_info; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php echo $product_detail; ?>
|
32
modules/service/views/service/view_detail_adsl.php
Normal file
32
modules/service/views/service/view_detail_adsl.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<!-- @todo NEEDS TO BE TRANSLATED -->
|
||||
<table>
|
||||
<tr>
|
||||
<td>View Daily Traffic for Month</td>
|
||||
<td><?echo Form::open(); echo Form::select('month',$service->service_adsl->get_traffic_months(),(isset($_POST['month']) ? $_POST['month'] : '')); echo Form::submit('submit',_('Show')); echo Form::close(); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top" rowspan="2"><?php echo $graph; ?></td>
|
||||
<td style="vertical-align: top" width="30%">
|
||||
<table class="box-left">
|
||||
<tr>
|
||||
<td>ADSL Service</td>
|
||||
<td class="head"><?php echo $service->service_adsl->service_number; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Contract Term</td>
|
||||
<td class="head"><?php echo $service->service_adsl->contract_term; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Contract End</td>
|
||||
<td class="head"><?php echo $service->service_adsl->contract_date_end(); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $graph_data; ?></td>
|
||||
</tr>
|
||||
</table>
|
@@ -0,0 +1,9 @@
|
||||
<!-- @todo NEEDS TO BE TRANSLATED -->
|
||||
<table class="box-left">
|
||||
<?php foreach ($traffic as $metric => $usage) { ?>
|
||||
<tr>
|
||||
<td><?php echo $metric; ?></td>
|
||||
<td class="head"><?php echo $usage; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
Reference in New Issue
Block a user