Fork me on github
摘要: //跳转到百度首页Location('http://www.baidu.com'); 阅读全文
posted @ 2015-06-19 17:04 Champion-水龙果 阅读(2518) 评论(0) 推荐(0) 编辑
摘要: /***自定义打印函数*/functionp($arr){echo"";print_r($arr);echo"";}/***成功跳转函数*/functionsuccess($url,$msg){header('Content-Type:text/html;charset=utf-8');$url=s... 阅读全文
posted @ 2015-06-19 16:50 Champion-水龙果 阅读(198) 评论(0) 推荐(0) 编辑
摘要: model层publicfunctionget_content($start,$num){$sql="SELECT*FROMcontentlimit$start,$num";//$start=>每一页第一条数据所对应的索引;$num=>对应的每一页固定显示的条数$query=$this->db->q... 阅读全文
posted @ 2015-06-19 16:30 Champion-水龙果 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 视图html 请输入书名、作者、出版社中的一个或多个来查询。 控制器public function index() { $keyword = $this->input->get ( 's' ); $offset = $this->input->get... 阅读全文
posted @ 2015-06-19 16:24 Champion-水龙果 阅读(361) 评论(0) 推荐(0) 编辑
摘要: /***//查询表内的数据*$res=$this->db->get('表名');*$res->result();*//添加数据*$bool=$this->db->insert('表名',$data);*//获取自增id*$this->db->insert_id();*//更新数据*$bool=$t... 阅读全文
posted @ 2015-06-19 14:05 Champion-水龙果 阅读(422) 评论(0) 推荐(0) 编辑
摘要: *@version1.0*/classcls_crudextendscls_database{/***数据表名*@varstring*/private$table='';/***构造函数*@paramarray$config配置变量*/publicfunction__construct($confi... 阅读全文
posted @ 2015-06-19 10:56 Champion-水龙果 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ');require_once('../Classes/PHPExcel.php');require_once("config.php");require_once("mysql.class.php");//根据时间生成采购报表$time=date("a");$minute=date("i");$a... 阅读全文
posted @ 2015-06-19 10:54 Champion-水龙果 阅读(266) 评论(0) 推荐(0) 编辑
Champion-水龙果