<?php include 'header.tpl.php';?>
<style>
.me_model{float:left;width:300px;padding:10px 0px 0px 10px}
.me_model .pic{float:left;width:80px}
.me_model .tit{float:left;width:210px;text-align:left;color:#0000ff}
.me_model .intro{float:left;width:210px;text-align:left;color:#555555}
.me_model .act{float:left;width:190px;text-align:left;padding-left:20px}
</style>
<div class="pMenu">
<li class="sel"><a href="javascript:frmExecute('');">管理</a></li>
<li><a href="javascript:frmExecute('add');">添加</a></li>
<li class="info">系统模块化，更有利于升级与扩展,默认不能删除</li>
</div>
<table class='pTable'>
<tr class='pTabTitRow'>
	<td class='pTabTitCol'></td><td class='pTabTitCol'>模块名</td><td class='pTabTitCol'>简介</td><td class='pTabTitCol'>操作</td></tr>
	<?php foreach($arr_model as $item){ ?>
	<tr class='pTabRow' id="id_row_<?php echo $item["model_id"]?>" onmouseover="admin_row_mouseover(<?php echo $item["model_id"];?>)" onmouseout="admin_row_mouseout(<?php echo $item["model_id"];?>);">
	<td class='pTabCol' width="60"><input type='checkbox' name='modelid[]' value='<?php echo $item['model_id'];?>' onclick="admin_row_sel(this.checked,<?php echo $item["model_id"]?>);"></td><td class='pTabCol'><?php echo $item["model_name"]?></td><td class='pTabCol'><?php echo $item["model_intro"]?></td>
	<td class='pTabCol' onmousedown="frmSet('id','<?php echo $item['model_id'];?>')">
	<?php if($obj_ctl_limit->chk_act("sort")){?>
	<img src="../images/up_1.gif" onclick="javascript:frmExecute('sort_up');" class="pImgbtn" title="向上">　
	<img src="../images/down_1.gif" onclick="javascript:frmExecute('sort_down');" class="pImgbtn" title="向下">　
	<?php }?>
	<?php if($obj_ctl_limit->chk_act("edit")){?><img src="../images/b_edit.png" onclick="javascript:frmExecute('edit');" class="pImgbtn" title="编辑"><?php }?>
	<?php if($obj_ctl_limit->chk_act("del")&&!in_array($item["model_regkey"],$arr_sys_model)){?>　<img src="../images/b_drop.png" onclick="javascript:frmExecute('del');" class="pImgbtn" title="删除"><?php }?>
	</td></tr>
	<?php }?>
</table>
<div class="pFootAct">
<li><input type='checkbox' name='modelidall' value='1' onclick="admin_row_selall(this.form,'modelidall','modelid');">全选　<select name="selact">
	<option value="">--操作--</option>
	<?php if($obj_ctl_limit->chk_act("del")){?><option value="del_sel">删除</option><?php }?>
	</select>
	&nbsp;<input type="button" name="btnExe" value="执行" onclick="frmExecute(document.frmMain.selact.value);" class="pBtn"></li>
</div>
<?php include 'footer.tpl.php';?>		
