日期:2014-05-17 浏览次数:20524 次
function people_daozhen($askdate,$askdate2,$name,$age,$age2,$phone,$sex,$zxjb,$comefrom,$area){ if(!empty($_POST['askdate'])){ $data ['askdate']=$_POST['askdate']; } if(!empty($_POST['askdate2'])){ $data ['askdate2']=$_POST['askdate2']; } if(!empty($_POST['name'])){ $data ['name']=$_POST['name']; } if(!empty($_POST['age'])){ $data ['age']=$_POST['age']; } if(!empty($_POST['age2'])){ $data ['age2']=$_POST['age2']; } if(!empty($_POST['phone'])){ $data ['phone']=$_POST['phone']; } if(!empty($_POST['sex'])){ $data ['sex']=$_POST['sex']; } if(!empty($_POST['zxjb'])){ $data ['zxjb']=$_POST['zxjb']; } if(!empty($_POST['comefrom'])){ $data ['comefrom']=$_POST['comefrom']; } if(!empty($_POST['area'])){ $data ['area']=$_POST['area']; } $this->load->helper ( 'url' ); $this->load->database(); $this->load->library ( 'pagination' ); $config ['per_page'] = '10'; $config ['base_url'] = base_url(). 'index.php/people/people_daozhen/'.$askdate.'/'.$askdate2.'/'.$name.'/'.$age.'/'.$age2.'/'.$phone.'/'.$sex.'/'.$zxjb.'/'.$comefrom.'/'.$area; $this->load->model ( 'people_mdl','',TRUE ); $data ['datalist'] = $this->people_mdl->people_list2 ( $config ['per_page'], $this->uri->segment ( 13 ) ,$askdate,$askdate2,$name,$age,$age2,$phone,$sex,$zxjb,$comefrom,$area); $config ['total_rows'] =$this->people_mdl->people_sum2($askdate,$askdate2,$name,$age,$age2,$phone,$sex,$zxjb,$comefrom,$area); $config['uri_segment'] = 3; $config ['full_tag_open'] = '<p>'; $config ['full_tag_close'] = '</p>'; $config ['first_link'] = '首页'; $config ['first_tag_open'] = '<li>'; $config ['first_tag_close'] = '</li>'; $config ['last_link'] = '尾页'; $config ['last_tag_open'] = '<li>'; $config ['last_tag_close'] = '</li>'; $config ['next_link'] = '下一页'; $config ['next_tag_open'] = '<li>'; $config ['next_tag_close'] = '</li>'; $config ['prev_link'] = '上一页'; $config ['prev_tag_open'] = '<li>'; $config ['prev_tag_close'] = '</li>'; $config ['cur_tag_open'] = '<li class="current">'; $config ['cur_tag_close'] = '</li>'; $config ['num_tag_open'] = '<li>'; $config ['num_tag_close'] = '</li>'; $this->pagination->initialize ( $config ); $this->load->view ( 'admin/people_daozhen', $data ); }
推荐阅读更多>
- 散分+交流,该如何处理
- #生手来袭# 关于mysqli和mysql函数插入数据出现乱码
- PHP教程.应用实例5
- phpcmsV9 如若实现导航切换
- 关于wordpress 3.1升级后首页打不开的原因
- PHP实例:一个非常全面获取图象信息的PHP函数
- php性能(内存)有关问题
- 小弟我会ZEND ,LINUX ,可以做神马
- 建表单有关问题
- 还算功能比较全的PHP验证码类
- 正则截取html中的一段解决思路
- php技术生成静态页面的实现
- PHP怎么 使用全局变量
- Openbiz 发布新php框架--开发新模式
- 禁用COPY、UNLINK的情况下,怎样修改服务器的文件?解决办法
- 支付宝手机接口,服务端PHP验证失败
- php excel reader 读取时间字段出错,哪位高手会弄得
- PHP的memcached getversion报Notice解决方法
- 一个简单的MySQL数据浏览器
- 正则不会 求解决解决办法