摘要:
var fan = document.getElementById('fan'); var box = document.getElementsByName('box'); $("#quan").click(function(){ for(var i=0; i<box.length;i++){ bo 阅读全文
摘要:
<tr id="{$v.id}"> <td class="name"><span>iphonCX</span></td> $("span").dblclick(function(){ var txt=$(this).text(); $(this).parent().html("<input type 阅读全文
摘要:
<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 阅读全文
摘要:
public function user_list(){ //接收当前页面 $p = Request::instance()->param("page"); $page = empty($p)?1:$p; //查询总条数 $count = Db::table("user")->count(); // 阅读全文
摘要:
public function _initialize() { if (!Session::has('user', 'think')) { $this->error('您还没有登录', 'Login/index'); } } public function index() { $value=Sess 阅读全文
摘要:
public function login(){ if (Request::instance()->isAjax()){ $name= Request::instance()->post('name'); $password = Request::instance()->post('password 阅读全文
摘要:
public function _initialize() { if (!Session::has('user', 'think')) { $this->error('非法登录', 'Login/index'); } $this->get_date(); } public function get_ 阅读全文
摘要:
新建一个库并设置编码create database 数据库名称 character set utf8 collate utf8_general_ci ;创建表:mysql> create table if not exists class( -> id int primary key auto_in 阅读全文
摘要:
<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 阅读全文