01 2014 档案

摘要:后台:(有点问题 page应该从1开始 而不是从0开始) public function actionExperts() { $top=5; $page=empty($_GET['page']) ? 0 : $_GET['page']; $offset = $top*$page; $result = AboutUs::getExpertsList($top, $offset); if(!$result || count($result) request->isAjaxRequest) { // $this->ajaxRender(array(' 阅读全文
posted @ 2014-01-28 12:03 jami918 阅读(497) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2014-01-27 11:09 jami918 阅读(1) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/youmeng/p/3376353.htmlhttp://www.cnblogs.com/irelands/archive/2012/04/16/2451262.htmlhttp://blog.163.com/penglie_520/blog/static/19440505020127255319862/ 阅读全文
posted @ 2014-01-26 19:56 jami918 阅读(133) 评论(0) 推荐(0) 编辑
摘要:yii index.phpini_set("display_errors", 1);iconv这个函数不能直接用 需要检测!!!function gb2312_utf8($str = ""){ if(function_exists("iconv")){ return iconv("gb2312", "utf-8//IGNORE", $str); }else if(function_exists("mb_convert_encoding")){ return mb_conver 阅读全文
posted @ 2014-01-26 14:17 jami918 阅读(175) 评论(0) 推荐(0) 编辑
摘要:fl_img):?>fl_img;?>"> 阅读全文
posted @ 2014-01-24 17:08 jami918 阅读(228) 评论(0) 推荐(0) 编辑
摘要:Insert title here 阅读全文
posted @ 2014-01-24 15:25 jami918 阅读(132) 评论(0) 推荐(0) 编辑
摘要:$(function() { $('#login').on('click', function() { var username = $('#username').val(); var password = $('#password').val(); if (username == '' || password == '') { alert('账号或密码不能为空'); return ; } var params = {'username'... 阅读全文
posted @ 2014-01-13 10:59 jami918 阅读(656) 评论(0) 推荐(0) 编辑
摘要:1 application\components\controller.php2 3 protected function afterRender($view, &$output) 4 { 5 if(Yii::app()->params['compress_on']){ 6 Yii::import('ext.Compress', true); 7 $output = Compress::minify($output, array('xhtml' => true)); 8 } 9 }extension\Compress.php 阅读全文
posted @ 2014-01-07 17:46 jami918 阅读(326) 评论(0) 推荐(0) 编辑
摘要:http://www.planeart.cn/demo/artDialog/_doc/API.html#API 阅读全文
posted @ 2014-01-06 11:48 jami918 阅读(207) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示