$name, 'qq'=>$qq, 'tel'=>$tel, 'province'=>$province, 'city'=>$city, 'xuqiu'=>$fuwu, 'baoming_fangshi'=> $baoming_fangshi, 'baoming_time' => time(), //'baoming_ip' => $baoming_ip, 'type'=>$type ); DbHelper::insert(TName::$tuangou_shenqing,$array); show_message("恭喜你,报名成功!", "", "/xinzeng/bjq.php", "info", TRUE); } $province_list = get_regions(1, 1); //获取省列表 $smarty->assign('province_list', $province_list); $count = DbHelper::selectOne(TName::$tuangou,"count(1)"); $result = DbHelper::select(TName::$tuangou,"*",array('add'=>"order by baoming_time desc limit 10")); $more = array(); foreach ($result as $key=>$val){ $province = InitHelper::getRegion()->getRegion_name( $val['province']); $time = date("m月d日",$val['baoming_time']); $str = "客户".$province.$val['name'].$time."报名申请报表"; $more[] = $str; } $ad_p = InitHelper::getBase()->ad_p(547); $smarty->assign('ad_p', $ad_p); $smarty->assign('more', $more); $smarty->assign('count', $count); $f1_1 = get_img(551); $smarty->assign("f1_1", $f1_1); $f1_2 = get_img(549); $smarty->assign("f1_2", $f1_2); $f1_3 = get_img(550); $smarty->assign("f1_3", $f1_3); $f2_1 = get_img(552); $smarty->assign("f2_1", $f2_1); $f2_2 = get_img(553); $smarty->assign("f2_2", $f2_2); $f2_3 = get_img(554); $smarty->assign("f2_3", $f2_3); $f2_4 = get_img(555); $smarty->assign("f2_4", $f2_4); $f3_1 = get_img(556); $smarty->assign("f3_1", $f3_1); $f3_2 = get_img(557); $smarty->assign("f3_2", $f3_2); $f3_3 = get_img(558); $smarty->assign("f3_3", $f3_3); $f3_4 = get_img(559); $smarty->assign("f3_4", $f3_4); $f4_1 = get_img(560); $smarty->assign("f4_1", $f4_1); $f4_2 = get_img(561); $smarty->assign("f4_2", $f4_2); $f4_3 = get_img(562); $smarty->assign("f4_3", $f4_3); $f4_4 = get_img(563); $smarty->assign("f4_4", $f4_4); $f4_5 = get_img(564); $smarty->assign("f4_5", $f4_5); $smarty->display("lola_bjq.dwt"); //获取广告位置下面的广告图片 function get_img($id) { $sql = "SELECT ad_id, start_time, end_time, ad_name, ad_link, ad_code FROM " . $GLOBALS['ecs']->table('ad') . " WHERE enabled AND media_type = 0 AND position_id = '$id' ORDER BY sort "; $res = $GLOBALS['db']->getAll($sql); $arr = array(); $i = 0; foreach ($res as $val) { $arr[$i]['start_time'] = $val['start_time']; $arr[$i]['end_time'] = $val['end_time']; $arr[$i]['ad_name'] = $val['ad_name']; $arr[$i]['ad_link'] = $val['ad_link']; $arr[$i]['ad_code'] = $val['ad_code']; $imginfo= getimagesize(ROOT_PATH."/".$val['ad_code']); $arr[$i]['ad_height'] =$imginfo[1]; $arr[$i]['ad_width'] = $imginfo[0]; $i++; } return $arr; } ?>