日期:2014-05-17 浏览次数:20533 次
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 ); }
推荐阅读更多>
- php资料操作相关函数
- 将相同数据合并显示的有关问题
- move_uploaded_file疏失
- 海内目前流行的免费PHP语言CMS小结【转】
- PHP网站怎么才能限制IP
- Netbeans7.0开发PHP卡死,该怎么解决
- 请教怎么转换成这种形式的数据
- 小弟不久前对php有很大的兴趣了
- 何位仁兄会PHP的麻烦帮个忙~
- 关于PHP代码生成文本框的位置有关问题
- php连接mysql数据库出现有关问题 找不到指定的程序
- 请问DWZ PHP网站后台换页有关问题
- phpStorm使用技巧总结
- 关于PHP的设计模式,该怎么处理
- 长沙发上的对话(三)
- 作为一个软件开发人员,您应该怎样学好PHP
- 求一邮件服务器软件解决方案
- php文件上载
- 这条SQL查询语句什么意思啊解决办法
- php cookie有关问题?