|
<html>
<head>
<title>CI登录表单</title>
<style type="text/css">
*{margin:0px;padding:0px;}
#loginfrm{width:800px;height:20px;border:1px solid;border-color:#eee #999 #999 #999;
background-color:#fff;line-height:25px;margin-left:200px;}
#userlabel,#paswlabel{font-size:14px;margin-left:5px;}
#user,#pasw{width:120px;height:18px;font-family:arial,verdana;border:1px solid #999;}
#loginbtn,#resetbtn{width:80px;height:18px;border:1px solid #999;background-color:#eee;font-size:12px;
margin-left:10px;}
</style>
</head>
<body>
<?php
$this->load->helper('form');
$logindata = array("method"=>"post","id"=>"loginfrm");
$userlabel = array("id"=>"userlabel");
$paswlabel = array("id"=>"paswlabel");
$userdata = array("id"=>"user");
$paswdata = array("id"=>"pasw");
$subdata = array("id"=>"loginbtn","name"=>"login","value"=>"用户登录");
$resetdata = array("id"=>"resetbtn","value"=>"重新输入");
echo form_open("action/login",$logindata);
echo form_label("用户帐号:","",$userlabel);
echo form_input($userdata);
echo form_label("用户密码:","",$paswlabel);
echo form_password($paswdata);
echo form_submit($subdata);
echo form_reset($resetdata);
echo form_close();
?>
</body>
</html> |
评分
-
查看全部评分
|