摘要: var fan = document.getElementById('fan'); var box = document.getElementsByName('box'); $("#quan").click(function(){ for(var i=0; i<box.length;i++){ bo 阅读全文
posted @ 2019-01-05 11:06 垖垏尐 阅读(123) 评论(0) 推荐(0) 编辑
摘要: <tr id="{$v.id}"> <td class="name"><span>iphonCX</span></td> $("span").dblclick(function(){ var txt=$(this).text(); $(this).parent().html("<input type 阅读全文
posted @ 2019-01-05 11:05 垖垏尐 阅读(170) 评论(0) 推荐(0) 编辑
摘要: <tr id="{$v.uid}">{switch name="$v.is_on" } {case value="已启用" }<a href="javascript:void(0);" class="cli">已启用</a>{/case} {case value="已停用"}<a href="jav 阅读全文
posted @ 2019-01-05 11:04 垖垏尐 阅读(97) 评论(0) 推荐(0) 编辑
摘要: public function user_list(){ //接收当前页面 $p = Request::instance()->param("page"); $page = empty($p)?1:$p; //查询总条数 $count = Db::table("user")->count(); // 阅读全文
posted @ 2019-01-05 11:04 垖垏尐 阅读(78) 评论(0) 推荐(0) 编辑
摘要: public function _initialize() { if (!Session::has('user', 'think')) { $this->error('您还没有登录', 'Login/index'); } } public function index() { $value=Sess 阅读全文
posted @ 2019-01-05 11:03 垖垏尐 阅读(89) 评论(0) 推荐(0) 编辑
摘要: public function login(){ if (Request::instance()->isAjax()){ $name= Request::instance()->post('name'); $password = Request::instance()->post('password 阅读全文
posted @ 2019-01-05 11:02 垖垏尐 阅读(138) 评论(0) 推荐(0) 编辑
摘要: public function _initialize() { if (!Session::has('user', 'think')) { $this->error('非法登录', 'Login/index'); } $this->get_date(); } public function get_ 阅读全文
posted @ 2019-01-05 11:02 垖垏尐 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 新建一个库并设置编码create database 数据库名称 character set utf8 collate utf8_general_ci ;创建表:mysql> create table if not exists class( -> id int primary key auto_in 阅读全文
posted @ 2019-01-05 11:01 垖垏尐 阅读(90) 评论(0) 推荐(0) 编辑
摘要: <input type="text" name="name" id="word"/> <button class="sou" id="{$arr.p}">搜索</button><input type="hidden" name="p" id="p" value="{$arr.p}"><tbody i 阅读全文
posted @ 2019-01-05 11:01 垖垏尐 阅读(189) 评论(0) 推荐(0) 编辑
摘要: //接值 $res=Request::instance()->param(true); $data=Db::table("user")->insert($res); if(!empty($data)){ return 1; } //html页面 <a href="javascript:" oncli 阅读全文
posted @ 2018-12-28 09:27 垖垏尐 阅读(102) 评论(0) 推荐(0) 编辑