<html>
<head>
<base href="
<?php echo base_url
() ;?>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改用户信息</title>
<link rel="stylesheet" type="text/css" href="skin/css/base.css">
<script type="text/javascript" src="js/calendar.js"></script>
</head>
<body leftmargin="8" topmargin="8" background='skin/images/allbg.gif'>
<!-- 快速转换位置按钮 -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
<tr>
<td height="26" background="skin/images/newlinebg3.gif">
<table width="98%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td align="center">
<?php echo anchor
('admin/user_list','返回用户列表')?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 内容列表 -->
<form method="post" action="
<?php echo site_url
('admin/edit_user_ok')?>">
<?php foreach ($get_user_name as $row):?>
<input type="hidden" name="id" value="
<?php echo $row->id?>">
<input type="hidden" name="password1" value="
<?php echo $row->password?>">
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="30" colspan="2" background="skin/images/tbg.gif"> 修改用户信息 </td>
</tr>
<tr bgcolor="#FAFAF1" height="30">
<td align="right" width="20%">用户名:</td>
<td align="left"><input type="text" style="width:400px;" name="username" id="username" value="
<?php echo $row->user_name?>" disabled></td>
</tr>
<tr bgcolor="#FAFAF1" height="30">
<td align="right">密码:</td>
<td align="left"><input type="text" style="width:400px;" name="password" id="password" value="
<?php
if( set_value
('password')<>'')
{
echo set_value
('password');
}else{
echo $row->password;
}?>">
<?php echo form_error
('password'); ?></td>
</tr>
<tr bgcolor="#FAFAF1" height="30">
<td align="right">权限:</td>
<td align="left"><table>
<?php //从多维数组中读取权限相关数据
for ($i=1;$i<count($limits1);$i++):
echo "<tr><td align=right height=25>";
for ($j=0;$j<count($limits1[$i]);$j++):
if ($j==0)
{
echo $limits1[$i][$j].":</td><td>";
}
else
{
echo "<input type='checkbox' name='limits[]' value='".$i.$j."'";
if (set_value
('limits[]')<>'')
{
echo set_checkbox
('limits[]', $i.$j);
}
else
{
if (strpos($row->limits,$i.$j)>-1)
{
echo 'checked';
}
}
echo " /> ".$limits1[$i][$j];
}
endfor;
echo "</td></tr>";
endfor;?></table>
</td>
</tr>
<tr bgcolor="#FAFAF1" height="30">
<td align="right" ></td>
<td align="left" ><input type="submit" name="submit_site" value="修改"/></td>
</tr>
</table>
<?php endforeach;?>
</form>
</body>
</html>