removed cron log message, fixed cron sql, saimod todo minor fixes, saimod log colors
This commit is contained in:
parent
9e9b5c02cf
commit
b39177e6e5
@ -50,7 +50,7 @@ class cron {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static function status($class, $status){
|
private static function status($class, $status){
|
||||||
new \SYSTEM\LOG\CRON('Cron Status for Class '.$class.' updated to: '. \SYSTEM\CRON\cronstatus::text($status));
|
//new \SYSTEM\LOG\CRON('Cron Status for Class '.$class.' updated to: '. \SYSTEM\CRON\cronstatus::text($status));
|
||||||
return \SYSTEM\DBD\SYS_CRON_UPD::QI(array($status,time(),$class));}
|
return \SYSTEM\DBD\SYS_CRON_UPD::QI(array($status,time(),$class));}
|
||||||
|
|
||||||
public static function last_visit(){
|
public static function last_visit(){
|
||||||
|
|||||||
@ -5,7 +5,7 @@ class SYS_CRON_UPD extends \SYSTEM\DB\QP {
|
|||||||
public static function pqsql(){return
|
public static function pqsql(){return
|
||||||
'UPDATE '.\SYSTEM\DBD\system_cron::NAME_PG.' SET '.\SYSTEM\DBD\system_cron::FIELD_STATUS.' = $1,'.\SYSTEM\DBD\system_cron::FIELD_LAST_RUN.' = to_timestamp($2) WHERE '.\SYSTEM\DBD\system_cron::FIELD_CLASS.' = $3;';
|
'UPDATE '.\SYSTEM\DBD\system_cron::NAME_PG.' SET '.\SYSTEM\DBD\system_cron::FIELD_STATUS.' = $1,'.\SYSTEM\DBD\system_cron::FIELD_LAST_RUN.' = to_timestamp($2) WHERE '.\SYSTEM\DBD\system_cron::FIELD_CLASS.' = $3;';
|
||||||
}
|
}
|
||||||
public static function pqsql(){return
|
public static function mysql(){return
|
||||||
'UPDATE '.\SYSTEM\DBD\system_cron::NAME_MYS.' SET '.\SYSTEM\DBD\system_cron::FIELD_STATUS.' = ?,'.\SYSTEM\DBD\system_cron::FIELD_LAST_RUN.' = FROM_UNIXTIME(?) WHERE '.\SYSTEM\DBD\system_cron::FIELD_CLASS.' = ?;';
|
'UPDATE '.\SYSTEM\DBD\system_cron::NAME_MYS.' SET '.\SYSTEM\DBD\system_cron::FIELD_STATUS.' = ?,'.\SYSTEM\DBD\system_cron::FIELD_LAST_RUN.' = FROM_UNIXTIME(?) WHERE '.\SYSTEM\DBD\system_cron::FIELD_CLASS.' = ?;';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -342,11 +342,11 @@ class saimod_sys_log extends \SYSTEM\SAI\SaiModule {
|
|||||||
return 'info';
|
return 'info';
|
||||||
case 'SYSTEM\LOG\ERROR': case 'ERROR': case 'Exception': case 'SYSTEM\LOG\ERROR_EXCEPTION':
|
case 'SYSTEM\LOG\ERROR': case 'ERROR': case 'Exception': case 'SYSTEM\LOG\ERROR_EXCEPTION':
|
||||||
case 'ErrorException': case 'SYSTEM\LOG\SHUTDOWN_EXCEPTION':
|
case 'ErrorException': case 'SYSTEM\LOG\SHUTDOWN_EXCEPTION':
|
||||||
return 'error';
|
return 'danger';
|
||||||
case 'SYSTEM\LOG\WARNING': case 'WARNING':
|
case 'SYSTEM\LOG\WARNING': case 'WARNING':
|
||||||
return 'warning';
|
return 'warning';
|
||||||
default:
|
default:
|
||||||
return '';
|
return 'danger';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ function init_saimod_sys_todo() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function register_search(){
|
function register_search(){
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<table class="table table-hover table-condensed">
|
<table class="table table-hover table-condensed">
|
||||||
<tr><td>Message</td><td><textarea style="width: 80%; height: 400px;" id="input_message"></textarea></td></tr>
|
<tr><td>Message</td><td><textarea style="width: 80%; height: 400px;" id="input_message"></textarea></td></tr>
|
||||||
</table>
|
</table>
|
||||||
<button id="btn_back" class="btn btn-sm btn-success" onClick="system.load('todo');" style="margin-right: 15px; height: 32px; font-size: 13px; float: left;"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> ${basic_back}</button>
|
<button id="btn_back" class="btn btn-sm btn-success" onClick="system.back();" style="margin-right: 15px; height: 32px; font-size: 13px; float: left;"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> ${basic_back}</button>
|
||||||
<button id="btn_add" class="btn btn-sm btn-primary" style="margin-right: 15px; height: 32px; font-size: 13px; float: right;"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> ${basic_add}</button>
|
<button id="btn_add" class="btn btn-sm btn-primary" style="margin-right: 15px; height: 32px; font-size: 13px; float: right;"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> ${basic_add}</button>
|
||||||
Loading…
x
Reference in New Issue
Block a user