layer是一款口碑极佳的web弹层组件,她具备全方位的解决方案,致力于服务各个水平段的开发人员,您的页面会轻松地拥有丰富而友好的操作体验。
IndexController.class.php代码public function index(){index.html代码
$this->user=M('User')->select();
$this->display();
}
//添加栏目
public function add(){
$this->display();
}
//保存栏目数据
public function areate(){
if(M('User')->add($_POST)){
$this -> success('添加成功!','index');
} else {
$this -> error('添加失败!');
}
}
public function edit(){
$id = $_GET['id'];
$this->user =M('User')->find($id);
$this->display();
}
public function updates(){
$data['id']=$_POST['id'];
$data['username']=$_POST['username'];
$arr->data=M('User')->save($data);
if($arr>0){
$this -> success('修改成功!','index');
}else{
$this -> error('修改失败!');
}
}nbsp;html>add.html代码
添加
{$vo.username}
$vo['id']))}">修 改
nbsp;html>

layer-v1.8.5.zip
( 67.01 KB 下载:179 次 )
AD:真正免费,域名+虚机+企业邮箱=0元









