function get_task_info($task_id) { $task_obj = new Keke_witkey_task_class(); $task_obj->setWhere("task_id = {$task_id}"); $task_info = $task_obj->query_keke_witkey_task(); $task_info = $task_info['0']; return $task_info; }
$where .= "start_time desc "; break; case 8: $where .= "start_time asc "; break; case 9: $where .= "end_time desc "; break; case 10: $where .= "end_time asc "; break; } if ($tag_info['loadcount']) { $where .= "limit 0,{$tag_info['loadcount']} "; } $task_arr = $task_obj->query_keke_witkey_task(); $temp_arr = array(); $indus_arr = kekezu::get_industry(); foreach ($task_arr as $v) { $a = array(); $a['id'] = $v['task_id']; $a['type'] = $v['task_type']; $a['status'] = $v['task_status']; $a['title'] = $v['task_title']; $a['pic'] = $v['task_pic']; $a['catid'] = $v['indus_id']; $a['uid'] = $v['uid']; $a['username'] = $v['username']; $a['starttime'] = $v['start_time']; $a['endtime'] = $v['start_time']; $a['cash'] = $v['task_cash'];