OSB enhancements to date

This commit is contained in:
Deon George
2010-11-30 09:41:08 +11:00
parent 8715a2059b
commit ec6a542bc3
478 changed files with 23423 additions and 9309 deletions

View 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>

View 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>

View File

@@ -0,0 +1,4 @@
<tr class="head">
<td colspan="7">&nbsp;</td>
<td><?php echo $total; ?></td>
</tr>

View File

@@ -0,0 +1,7 @@
<script type="text/javascript" >
<!--
function paid(form) {
alert(form);
}
//-->
</script>

View 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>

View File

@@ -0,0 +1,6 @@
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
<td><?php echo $service; ?></td>
<td><?php echo empty($item['info']) ? '&nbsp;' : $item['info']; ?></td>
<td><?php echo empty($item['cost']) ? '&nbsp;' : $item['cost']; ?></td>
<td><?php echo empty($item['credit']) ? '&nbsp;' : $item['credit']; ?></td>
</tr>

View 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>

View 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>

View 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>

View 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 } ?>

View File

@@ -0,0 +1,5 @@
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
<td colspan="4">&nbsp;</td>
<td><b><?php echo $subtotal; ?></b></td>
<td colspan="2">&nbsp;</td>
</tr>

View 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; ?>

View 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>&nbsp;</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>

View File

@@ -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>