<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>黄页权限配置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="javascript:void(0);" class="on">权限配置</a></li>			
		</ul>
	</div>
	<div class="main">
	<form action="" method="post" name="myform">
	<input type="hidden" name="do_submit" value="1" />
	<table cellspacing="0" class="sub">
		<tr>
			<td width="140" align="right">是否允许使用黄页：</td>
			<td>
			<?php foreach($r as $_r){?>
			<input type="checkbox" class="checkbox" name="usepriv[]" value="<?php echo $_r['grade'];?>" <?php echo in_array($_r['grade'],$usepriv)?' checked="checked"':'';?> /><?php echo $_r['gradename'];?> &nbsp;&nbsp;
		<?php }?>
			</td>
		</tr>
		<tr>
			<td width="140" align="right">允许发布企业新闻：</td>
			<td>
			<?php foreach($r as $_r){?>
			<input type="checkbox" class="checkbox" name="newspriv[]" value="<?php echo $_r['grade'];?>" <?php echo in_array($_r['grade'],$newspriv)?' checked="checked"':'';?> /><?php echo $_r['gradename'];?> &nbsp;&nbsp;
		<?php }?>
			</td>
		</tr>
		<tr>
			<td width="140" align="right">允许发布企业产品：</td>
			<td>
			<?php foreach($r as $_r){?>
			<input type="checkbox" class="checkbox" name="productpriv[]" value="<?php echo $_r['grade'];?>" <?php echo in_array($_r['grade'],$productpriv)?' checked="checked"':'';?> /><?php echo $_r['gradename'];?> &nbsp;&nbsp;
		<?php }?>
			</td>
		</tr>
		<tr>
			<td width="140" align="right">允许发布优惠动态：</td>
			<td>
			<?php foreach($r as $_r){?>
			<input type="checkbox" class="checkbox" name="couponpriv[]" value="<?php echo $_r['grade'];?>" <?php echo in_array($_r['grade'],$couponpriv)?' checked="checked"':'';?> /><?php echo $_r['gradename'];?> &nbsp;&nbsp;
		<?php }?>
			</td>
		</tr>
		<tr>
			<td width="140" align="right">发布新闻无须审核：</td>
			<td>
			<?php foreach($r as $_r){?>
			<input type="checkbox" class="checkbox" name="newscheckpriv[]" value="<?php echo $_r['grade'];?>" <?php echo in_array($_r['grade'],$newscheckpriv)?' checked="checked"':'';?> /><?php echo $_r['gradename'];?> &nbsp;&nbsp;
		<?php }?>
			</td>
		</tr>
		<tr>
			<td width="140" align="right">发布产品无须审核：</td>
			<td>
			<?php foreach($r as $_r){?>
			<input type="checkbox" class="checkbox" name="productcheckpriv[]" value="<?php echo $_r['grade'];?>" <?php echo in_array($_r['grade'],$productcheckpriv)?' checked="checked"':'';?> /><?php echo $_r['gradename'];?> &nbsp;&nbsp;
		<?php }?>
			</td>
		</tr>
		<tr>
			<td width="140" align="right">发布优惠无须审核：</td>
			<td>
			<?php foreach($r as $_r){?>
			<input type="checkbox" class="checkbox" name="couponcheckpriv[]" value="<?php echo $_r['grade'];?>" <?php echo in_array($_r['grade'],$couponcheckpriv)?' checked="checked"':'';?> /><?php echo $_r['gradename'];?> &nbsp;&nbsp;
		<?php }?>
			</td>
		</tr>
		<tr>
			<td width="140" align="right">允许自 定 义模板：</td>
			<td>
			<?php foreach($r as $_r){?>
			<input type="checkbox" class="checkbox" name="templatepriv[]" value="<?php echo $_r['grade'];?>" <?php echo in_array($_r['grade'],$templatepriv)?' checked="checked"':'';?> /><?php echo $_r['gradename'];?> &nbsp;&nbsp;
		<?php }?>
			</td>
		</tr>
		<tr class="bg2"><td></td><td><input type="button" class="button" onclick="this.form.submit();" value="保存配置" /> <input type="button" class="button" onclick="history.back();" value="取消返回" /></td></tr>
	</table>
	</form>

	</div>
</div>
</body>
</html>