Exemple #1
0
 static function CountWarningMsg($where, $whereParam)
 {
     $obj = new manage_staff();
     $obj->staff_messages();
     ($whereParam["PT"] = HR_CONTRACT) ? $where .= " AND warning_date >= '2010-03-21' " : "";
     $query = " select count(*) from temp_messages p where " . $where;
     $temp = PdoDataAccess::runquery($query, $whereParam);
     return $temp[0][0];
 }