示例#1
0
 function get_service_comment($sid, $w = array(), $p = array(), $order = null)
 {
     global $kekezu;
     $comm_obj = new Keke_witkey_comment_class();
     $where = " select * from " . TABLEPRE . "witkey_comment where obj_id = '{$sid}' and obj_type = 'service' ";
     $arr = keke_table_class::format_condit_data($where, $order, $w, $p);
     $comm_info = db_factory::query($arr['where']);
     $comm_arr['comm_info'] = $comm_info;
     $comm_arr['pages'] = $arr['pages'];
     return $comm_arr;
 }
 public static function get_mark_info($w = array(), $p = array(), $order = null, $ext = null)
 {
     global $kekezu;
     $where = " select * from " . TABLEPRE . "witkey_mark where 1 = 1";
     $ext and $where .= " and {$ext} ";
     $arr = keke_table_class::format_condit_data($where, $order, $w, $p);
     $mark_info = db_factory::query($arr['where']);
     $mark_arr['mark_info'] = $mark_info;
     $mark_arr['pages'] = $arr['pages'];
     return $mark_arr;
 }