index.html 4.69 KB
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员|后台管理系统</title>
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap-responsive.min.css">
<script type="text/javascript" src="__PUB__js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUB__js/jquery.min.js"></script>
<script type="text/javascript" src="__PUB__js/common.js"></script>
<script>
/* 修改信息属性 */
function chang_status(id,value,table,f)
{
    var newvalue=0;
    if(value == 1)
        newvalue=0;
    else
        newvalue=1;
    var submitData = {
        id:id,
        f:f,
        status:newvalue,
        table:table
    };
    $.post("<{:U('editattr')}>",submitData,
        function(data) {
            if (data.success == true) {
                alert(data.msg);
                setTimeout('window.location.href=location.href',10);
                return;
            }
            else {
                alert(data.msg);
                return;
            }
        }
    ,'json');
    
}
</script>
</head>
<body style="margin: 0px 0px;min-height:500px; background:url(__ROOTPUB__img/ybbf.png) center no-repeat;background-size:contain;background-position:200px 100px;">
<div  style="margin:0 auto; width:98%;">
	<table class="table table-condensed table-bordered table-hover">
		<tbody>
			<tr>
				<td colspan="9" style="padding-left:10px;"><div style="float:left"> <b><{$page_title}></b> </div>
					<div style="float:right; font-weight:bold;">
						<?php
								if(in_array('webuser-add',$webuserList)){?>
								<a href="<{:U('add')}>"><u>增加用户</u></a>
						<?php 
								}
						 ?>
					</div>
				</td>
			</tr>
			<tr>
				<td width="5%" style="text-align:center">序号</td>
				<td width="12%" style="text-align:center">登录账号</td>
				<td width="12%" style="text-align:center">姓名</td>
				<td width="12%" style="text-align:center">用户等级</td>
				<td width="12%" style="text-align:center">电话</td>
				<td width="12%" style="text-align:center">邮箱</td>
				<td width="12%" style="text-align:center">当前职位</td>
				<!-- <td width="12%" style="text-align:center">最后一次登录时间</td>
				<td width="12%" style="text-align:center">最后一次登录IP</td> -->
				<?php if(in_array('webuser-editattr',$webuserList)):?>
					<td width="7%" style="text-align:center">状态</td>
				<?php endif;?>
				<?php if(in_array('webuser-edit',$webuserList) || in_array('webuser-delete',$webuserList)):?>
					<td width="15%" style="text-align:center">操作项</td>
				<?php endif;?> 
			</tr>
			<volist name="list" id="vo" key="k" empty="$empty">
				<tr>
					<td style="text-align:center"><{$k}></td>
					<td style="text-align:center"><{$vo.username}></td>
					<td style="text-align:center"><{$vo.name}></td>
					<td style="text-align:center">
						<?php echo $auth[count(explode(',',$vo['depth']))]?>
					</td>
					<td style="text-align:center"><{$vo.tel}></td>
					<td style="text-align:center"><{$vo.email}></td>
					<td style="text-align:center"><{$vo.position}></td>
					<!-- <td style="text-align:center"><notempty name="vo.ltime"><{$vo.ltime|date='Y-m-d',###}></notempty></td>
					<td style="text-align:center"><{$vo.lip}></td> -->
					<?php if(in_array('webuser-editattr',$webuserList)):?>
						<td style="text-align:center">
							<a href="javascript:chang_status(<{$vo.id}>,<{$vo.isshow}>,'Webuser','isshow');">
							<eq name="vo.isshow" value="1"><i class="icon-ok" var="<{$vo.id}>"></i>
								<else />
								<i class="icon-no" var="<{$vo.id}>"></i></eq>
							</a>
						</td>
					<?php endif;?>
					<?php if(in_array('webuser-edit',$webuserList) || in_array('webuser-delete',$webuserList)):?>
						<td style="text-align:center">
							<?php if(in_array('webuser-edit',$webuserList)):?>
								<a href="<{:U('edit',array('id'=>$vo['id']))}>" class="btn btn-mini"><i class="icon-edit"></i> 修改</a>
							<?php endif;?>
							<?php if(in_array('webuser-delete',$webuserList)):?>
								<a href="javascript:void(0);" onclick="del2('<{:U('delete',array('id'=>$vo['id'],'p'=>I('p',1,'intval')))}>','确定要删除信息吗?删除后无法恢复');" class="btn btn-mini"><i class="icon-trash"></i> 删除</a>
							<?php endif;?> 
						</td>
					<?php endif;?>
				</tr>
			</volist>
			<notempty name="page">
				<tr>
					<td colspan="9">
						<ul class="page">
							<{$page}>
						</ul>
					</td>
				</tr>
			</notempty>
		</tbody>
	</table>
</div>
<include file="Common:js" />
</body>
</html>