template = "template";
$this->module = "catalog";
$this->module_name = $msg[6];
$this->alert_url = $base_path."/ajax.php?module=ajax&categ=alert¤t_alert=".$this->module;
parent::__construct();
}
public function get_quick_params_form(){
global $msg;
if(SESSrights & PREF_AUTH) {
$html= "
";
}
return $html;
}
public function get_records_recevoir(){
$return = array();
global $memo_abts_pointage_calc_alert;
if(!count($memo_abts_pointage_calc_alert)){
$memo_abts_pointage_calc_alert=abts_pointage::get_dashboard_info();
}
$return[0]["total"]=$memo_abts_pointage_calc_alert["a_recevoir"];
return $return;
}
public function get_records_prochain(){
$return = array();
global $memo_abts_pointage_calc_alert;
if(!count($memo_abts_pointage_calc_alert)){
$memo_abts_pointage_calc_alert=abts_pointage::get_dashboard_info();
}
$return[0]["total"]=$memo_abts_pointage_calc_alert["prochain_numero"];
return $return;
}
public function get_records_retard(){
$return = array();
global $memo_abts_pointage_calc_alert;
if(!count($memo_abts_pointage_calc_alert)){
$memo_abts_pointage_calc_alert=abts_pointage::get_dashboard_info();
}
$return[0]["total"]=$memo_abts_pointage_calc_alert["en_retard"];
return $return;
}
public function get_records_alerte(){
$return = array();
global $memo_abts_pointage_calc_alert;
if(!count($memo_abts_pointage_calc_alert)){
$abt=new abts_pointage();
$memo_abts_pointage_calc_alert=$abt->calc_alert();
}
$return[0]["total"]=$memo_abts_pointage_calc_alert["en_alerte"];
return $return;
}
public function save_quick_params(){
$query = "update users set ";
$update=array();
foreach($_POST as $key => $value){
switch($key){
case "deflt_docs_location":
case "deflt_docs_section":
case "deflt_docs_type":
global $$key;
$update[] = $key."='".$value."'";
break;
}
}
if(count($update)){
$query.=implode(", ",$update)." where userid=".SESSuserid;
$result = mysql_query($query);
return $result;
}
return true;
}
}