Open Source Billing
This commit is contained in:
12
modules/adsl/views/adsl/contract_view.php
Normal file
12
modules/adsl/views/adsl/contract_view.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<!-- //@todo To translate -->
|
||||
<table class="box-full">
|
||||
<tr>
|
||||
<td style="width: 60%;">Contract Term</td>
|
||||
<td class="head" colspan="2"><?php echo $record->display('contract_term'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- @todo This should get tax settings from the session -->
|
||||
<td>Minimum Cost</td>
|
||||
<td class="head" colspan="2"><?php echo Currency::display(Tax::add($record->contract_term*$price_base+$price_setup)); ?> <span style="font-size: 80%; font-weight:normal;"><?php printf('(%s * %s + %s)',$record->contract_term,Tax::add($price_base),Tax::add($price_setup)); ?></span></td>
|
||||
</tr>
|
||||
</table>
|
28
modules/adsl/views/product/plugin/adsl/feature_summary.php
Normal file
28
modules/adsl/views/product/plugin/adsl/feature_summary.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<!-- //@todo To translate -->
|
||||
<table class="box-full">
|
||||
<tr>
|
||||
<td style="width: 40%;">Speed</td>
|
||||
<td class="data" style="width: 60%;" colspan="2"><?php echo $po->display('speed'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>Peak</td>
|
||||
<?php if ($po->base_down_offpeak OR $po->extra_down_offpeak) { ?>
|
||||
<td>Off Peak</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Included Download Traffic</td>
|
||||
<!-- // @todo Since price is stored in the DB in GB, so should the traffic. -->
|
||||
<td class="data"><?php echo $po->base_down_peak/1000; ?> GB</td>
|
||||
<td class="data"><?php echo $po->base_down_offpeak ? ($po->base_down_offpeak/1000).'GB' : HTML::nbsp(''); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Extra Download Traffic</td>
|
||||
<td class="data"><?php echo $po->display('extra_down_peak'); ?>/GB</td>
|
||||
<td class="data"><?php echo $po->extra_down_offpeak ? $po->display('extra_down_offpeak').'/GB' : HTML::nbsp(''); ?></td>
|
||||
</tr>
|
||||
</table>
|
46
modules/adsl/views/service/admin/adsl/update.php
Normal file
46
modules/adsl/views/service/admin/adsl/update.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<!-- @todo NEEDS TO BE TRANSLATED -->
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="head" colspan="2">Plugin Details</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 40%;">Service Number</td>
|
||||
<td style="width: 60%;" class="data"><?php echo Form::input('plugin[service_number]',$so->service_number); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Address</td>
|
||||
<td class="data"><?php echo Form::input('plugin[service_address]',$so->service_address); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Connect Date</td>
|
||||
<td class="data">
|
||||
<?php echo Form::input('plugin[service_connect_date]',$so->service_connect_date,array('id'=>'service_connect_date')); ?>
|
||||
<?php echo HTML::anchor('#',
|
||||
HTML::image($mediapath->uri(array('file'=>'img/calendar.png')),array('alt'=>_('Calendar'),'style'=>'cursor: pointer;')),
|
||||
array('title'=>'Click to popup a dialog to select a date graphically','onclick'=>"dateSelector('service_connect_date')")); ?>
|
||||
<script type="text/javascript">defaults['service_connect_date'] = '%s';</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Contract Date</td>
|
||||
<td class="data">
|
||||
<?php echo Form::input('plugin[service_contract]',$so->service_contract_date,array('id'=>'service_contract_date')); ?>
|
||||
<?php echo HTML::anchor('#',
|
||||
HTML::image($mediapath->uri(array('file'=>'img/calendar.png')),array('alt'=>_('Calendar'),'style'=>'cursor: pointer;')),
|
||||
array('title'=>'Click to popup a dialog to select a date graphically','onclick'=>"dateSelector('service_contract_date')")); ?>
|
||||
<script type="text/javascript">defaults['service_contract_date'] = '%s';</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Username</td>
|
||||
<td class="data"><?php echo Form::input('plugin[service_username]',$so->service_username); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Password</td>
|
||||
<td class="data"><?php echo Form::input('plugin[service_password]',$so->service_password); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service IP Address</td>
|
||||
<td class="data"><?php echo Form::input('plugin[ipaddress]',$so->ipaddress); ?></td>
|
||||
</tr>
|
||||
</table>
|
1
modules/adsl/views/service/admin/adslstat/body_data.php
Normal file
1
modules/adsl/views/service/admin/adslstat/body_data.php
Normal file
@@ -0,0 +1 @@
|
||||
<td><?php echo $count; ?></td><td><?php echo $percent; ?></td>
|
1
modules/adsl/views/service/admin/adslstat/body_end.php
Normal file
1
modules/adsl/views/service/admin/adslstat/body_end.php
Normal file
@@ -0,0 +1 @@
|
||||
</tr>
|
4
modules/adsl/views/service/admin/adslstat/body_head.php
Normal file
4
modules/adsl/views/service/admin/adslstat/body_head.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<tr class="list-data">
|
||||
<td><?php echo $speed; ?></td>
|
||||
<td><?php echo $count; ?></td>
|
||||
<td><?php echo $percent; ?></td>
|
1
modules/adsl/views/service/admin/adslstat/foot.php
Normal file
1
modules/adsl/views/service/admin/adslstat/foot.php
Normal file
@@ -0,0 +1 @@
|
||||
</table>
|
3
modules/adsl/views/service/admin/adslstat/head.php
Normal file
3
modules/adsl/views/service/admin/adslstat/head.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<table class="list-box-left">
|
||||
<tr class="list-head">
|
||||
<th><?php echo $name; ?></th>
|
1
modules/adsl/views/service/admin/adslstat/head_data.php
Normal file
1
modules/adsl/views/service/admin/adslstat/head_data.php
Normal file
@@ -0,0 +1 @@
|
||||
<th><?php echo $name; ?></th><th>%</th>
|
1
modules/adsl/views/service/admin/adslstat/head_end.php
Normal file
1
modules/adsl/views/service/admin/adslstat/head_end.php
Normal file
@@ -0,0 +1 @@
|
||||
</tr>
|
11
modules/adsl/views/service/admin/listadslbilling/body.php
Normal file
11
modules/adsl/views/service/admin/listadslbilling/body.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo $service->plugin()->display('service_number'); ?></td>
|
||||
<td><?php echo $plan->adsl_supplier_plan->name().($planoverride ? '*' : ''); ?></td>
|
||||
<td><?php echo $service->plugin()->contract_date_start(); ?></td>
|
||||
<td><?php echo $service->plugin()->contract_date_end(); ?></td>
|
||||
<td><?php echo Currency::display($plan->adsl_supplier_plan->base_cost); ?></td>
|
||||
<td><?php echo Currency::display($plan->adsl_supplier_plan->base_cost+$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->plugin()->service_number; ?>]" value="<?php echo $amount; ?>" id="p<?php echo $service->plugin()->id; ?>" size="8"/></td>
|
||||
<td><?php echo $excess ? sprintf('(%s)',$excess) : ' '; ?></td>
|
||||
</tr>
|
@@ -0,0 +1,4 @@
|
||||
<tr class="head">
|
||||
<td colspan="7"> </td>
|
||||
<td><?php echo $total; ?></td>
|
||||
</tr>
|
@@ -0,0 +1,7 @@
|
||||
<script type="text/javascript" >
|
||||
<!--
|
||||
function paid(form) {
|
||||
alert(form);
|
||||
}
|
||||
//-->
|
||||
</script>
|
10
modules/adsl/views/service/admin/listadslbilling/summary.php
Normal file
10
modules/adsl/views/service/admin/listadslbilling/summary.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo $service->plugin()->display('service_number'); ?></td>
|
||||
<td><?php echo $plan->adsl_supplier_plan->name().($planoverride ? '*' : ''); ?></td>
|
||||
<td><?php echo $service->plugin()->contract_date_start(); ?></td>
|
||||
<td><?php echo $service->plugin()->contract_date_end(); ?></td>
|
||||
<td><?php echo Currency::display($service->product->plugin()->adsl_supplier_plan->base_cost); ?></td>
|
||||
<td><?php echo Currency::display($service->product->plugin()->adsl_supplier_plan->base_cost+$service->product->plugin()->adsl_supplier_plan->tax()); ?></td>
|
||||
<td><?php echo $amount; ?></td>
|
||||
<td><?php echo $service->product->plugin()->adsl_supplier_plan->base_cost+$service->product->plugin()->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>
|
@@ -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>
|
79
modules/adsl/views/service/user/plugin/adsl/view.php
Normal file
79
modules/adsl/views/service/user/plugin/adsl/view.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<!-- //@todo To translate -->
|
||||
<table class="box-full">
|
||||
<tr>
|
||||
<td class="head" colspan="3">Service Details</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width: 40%;">Service Number</td>
|
||||
<td style="width: 60%;" class="data"><?php echo $so->display('service_number'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Address</td>
|
||||
<td class="data"><?php echo $so->display('service_address'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Contract Term</td>
|
||||
<td class="data"><?php echo $so->display('contract_term'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Connect Date</td>
|
||||
<td class="data"><?php echo $so->display('service_connect_date'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Contract End Date</td>
|
||||
<td class="data"><?php echo $so->contract_date_end(); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Username</td>
|
||||
<td class="data"><?php echo $so->display('service_username'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service Password</td>
|
||||
<td class="data"><?php # @todo Enable the ability to hide this value echo $so->display('service_password'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Service IP</td>
|
||||
<td class="data"><?php echo $so->ipaddress(); ?></td>
|
||||
</tr>
|
||||
<?php if ($so->hasOffPeak() AND $so->offpeak_start AND $so->offpeak_end) { ?>
|
||||
<tr>
|
||||
<td>Offpeak Period</td>
|
||||
<td class="data"><?php printf('%s-%s',$so->offpeak_start,$so->offpeak_end); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
<td style="vertical-align: top;" colspan="2">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width: 40%;">Traffic Used This Month</td>
|
||||
<td style="width: 60%;" class="data"><?php echo $so->traffic_month(NULL); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Traffic Used Last Month</td>
|
||||
<td class="data"><?php echo $so->traffic_lastmonth(); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<table>
|
||||
<tr>
|
||||
<td>View Daily Traffic for Month</td>
|
||||
<td><?php echo Form::open(); echo Form::select('month',array_merge(array(''),$so->get_traffic_months()),(isset($_POST['month']) ? $_POST['month'] : '')); echo Form::submit('submit',_('Show'),array('class'=>'form_button')); echo Form::close(); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><?php echo $so->graph_traffic(isset($_POST['month']) ? $_POST['month'] : ''); ?></td>
|
||||
<td><?php echo $so->table_traffic(isset($_POST['month']) ? $_POST['month'] : ''); ?></td>
|
||||
</tr>
|
||||
</table>
|
Reference in New Issue
Block a user