Work on Email and other major consistency work
This commit is contained in:
@@ -68,26 +68,8 @@ class Controller_Admin_Adsl extends Controller_Adsl {
|
||||
HTTP::redirect(URL::link('admin','adsl/list'));
|
||||
|
||||
if ($_POST) {
|
||||
// Entry updated
|
||||
if ($apo->values($_POST)->check() AND $apo->changed()) {
|
||||
try {
|
||||
if ($apo->save())
|
||||
SystemMessage::factory()
|
||||
->title('Record updated')
|
||||
->type('success')
|
||||
->body(_('Your Charge record has been recorded/updated.'));
|
||||
|
||||
} catch (ORM_Validation_Exception $e) {
|
||||
$errors = $e->errors('models');
|
||||
|
||||
SystemMessage::factory()
|
||||
->title('Record NOT updated')
|
||||
->type('error')
|
||||
->body(join('<br/>',array_values($errors)));
|
||||
|
||||
$sco->reload();
|
||||
}
|
||||
}
|
||||
if ($apo->values($_POST)->changed() AND (! $this->save($apo)))
|
||||
$apo->reload();
|
||||
|
||||
if (isset($_POST['test'])) {
|
||||
$charge = isset($_POST['test']['charge']) ? $_POST['test']['charge'] : FALSE;
|
||||
|
@@ -43,7 +43,7 @@ class Controller_Reseller_Service_Adsl extends Controller_Service {
|
||||
public function action_list() {
|
||||
$highchart = HighChart::factory('Combo');
|
||||
$highchart->title(sprintf('Monthly DSL traffic usage as at %s',date('Y-m-d',strtotime('yesterday'))));
|
||||
$highchart->xmetric('MB');
|
||||
$highchart->ymetric('MB');
|
||||
|
||||
$c = 0;
|
||||
foreach ($this->consoltraffic(time()) as $k => $details) {
|
||||
|
Reference in New Issue
Block a user