冯远先生

    assign('full_page', 1); $deposit_list = get_deposit(); $smarty->assign('deposit_list', $deposit_list['arr']); $smarty->assign('filter', $deposit_list['filter']); $smarty->assign('record_count', $deposit_list['record_count']); $smarty->assign('page_count', $deposit_list['page_count']); $smarty->display('deposit_list.htm'); } elseif($_REQUEST['act'] == 'query') { $deposit_list = get_deposit(); $smarty->assign('deposit_list', $deposit_list['arr']); $smarty->assign('filter', $deposit_list['filter']); $smarty->assign('record_count', $deposit_list['record_count']); $smarty->assign('page_count', $deposit_list['page_count']); make_json_result($smarty->fetch('deposit_list.htm'), '',array('filter' => $deposit_list['filter'], 'page_count' => $deposit_list['page_count'])); } function get_deposit() { $result = get_filter(); if ($result === false) { $filter['keyword'] = empty($_REQUEST['keyword']) ? '' : trim($_REQUEST['keyword']); $ex_where = ''; if ($filter['keyword']) { $ex_where .= " AND user_name LIKE '%" . $filter['keyword']."%'"; } $sql = "SELECT COUNT(*) FROM " .$GLOBALS['ecs']->table('affiliate_log') . " WHERE separate_type = 4 " . $ex_where; $filter['record_count'] = $GLOBALS['db']->getOne($sql); $filter = page_and_size($filter); $arr = array(); $sql = "SELECT * FROM " . $GLOBALS['ecs']->table('affiliate_log') . " WHERE separate_type = 4 " . $ex_where . " order by time desc"; set_filter($filter, $sql); } else { $sql = $result['sql']; $filter = $result['filter']; } $res = $GLOBALS['db']->query($sql); $list = array(); while ($rows = $GLOBALS['db']->fetchRow($res)) { $arr['id'] = $rows['log_id']; $arr['money'] = price_format(abs($rows['money'])); $arr['add_time'] = local_date('Y-m-d',$rows['time']); $arr['user_name'] = $rows['user_name']; $list[] = $arr; } return array('arr' => $list, 'filter' => $filter, 'page_count' => $filter['page_count'], 'record_count' => $filter['record_count']); } ?>
友情
链接
东南大宗商品交易所 中国电子商务协会 中国电子商务协会产业链发展中心 中国大宗商品电子交易门户 海商所 上海新华贵金属交易中心 钱途网 鹿头社 西南商交所 众委众扶 新交所 安贵文化艺术品交易平台 四川酒交所 蒙顶山茶叶交易所 横琴稀贵商品交易中心 北方盐化 汇金大宗 新商所