sfw 最第一版本
sfw 最初版本
sfw 最初版本 ... ... 放在这里 自己留着看 .....
下面这个 就是 拿这个东西快速开发的.... 似乎效果不错 ... 自我感觉良好...
function actionIndex(){ $dbo = CoreDB::instance(App::ini('_dsn/pqadmin')); $dbo->connect(); $faq = new PQAdmin_ChineseFaqModel($dbo); // 查询条件 $condkey = trim($this->_request_->request('condkey','all')); $cond = array(); switch($condkey){ case 'hide': $cond[$faq->isHideField] = true; break; case 'finish': $cond[$faq->answerField] = array('','!='); break; case 'unfinish': $cond[$faq->answerField] = ''; break; default: $condkey = 'all'; } // 分页显示参数 $page = $this->_request_->request('page',1); $numPerPage = 1; $cur_page= ctype_digit($page) && ( (int) $page > 0 ) ? $page : 1 ; $offset = ($cur_page-1) * $numPerPage ; $counter = true; $rows = $faq->findAll($cond,"{$faq->updatedField} DESC",array($numPerPage,$offset),$counter); $this->_view['rows'] = $rows; // 向视图文件注入分页对象 $pager = array( 'total' => $counter, 'numperpage' => $numPerPage, 'pagecount' => ceil($counter / $numPerPage), 'url' => url('zhfaq','index',null,array('condkey'=>$condkey,'page'=>'-page-')), 'page' => $cur_page, ); $this->_view['pager'] = $pager; }
1 楼
vb2005xu
2011-04-24
http://html5demos.com/
2 楼
vb2005xu
2011-04-24
http://www.ibm.com/developerworks/cn/views/xml/libraryview.jsp?site_id=10&contentarea_by=XML&sort_by=&sort_order=2&start=601&end=700&topic_by=&product_by=&type_by=%E6%89%80%E6%9C%89%E7%B1%BB%E5%88%AB&show_abstract=true&search_by=&industry_by=&series_title_by=
3 楼
vb2005xu
2011-04-25
http://jiangzhanyong.com/2007/05/wordpress-chinese-lesson-series-1-320.html
4 楼
vb2005xu
2011-04-29
file_get_contents抓取https的地址出错解决办法
打开php.ini找到 ;extension=php_openssl.dll
打开php.ini找到 ;extension=php_openssl.dll