<!DOCTYPE html>
<html>
<HEAD>
<TITLE>Cscms管理中心——Js标签管理</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/label.js"></script>
<style type="text/css"> 
li {list-style:none;}
#LabelName li{margin-left:25px;list-style-image:url(<?=base_url()?>csdj/admin/images/label5.gif);}
#textareadiv{position:absolute;z-index:1;padding:0px;margin:0px;border:0px;background:#ecf0f5;width:33px;text-align:left;}
#textareali{background:#ecf0f5;overflow:hidden;width:33px;border-right:0;line-height:20px;margin:0px;padding:0px;padding-left:2px;text-align:center}
#Content{font-size:14px;margin:0px;padding:0 0 0 35px;overflow-x:hidden;line-height:20px;}
#icon_open1 li,#icon_open2 li,#icon_open3 li{float:left;width:35px;height:15px;margin:3px;padding:5px;text-align:center;cursor:pointer}
</style>
</HEAD>
<BODY style="margin:2px">
 
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="900" style="border-collapse:collapse;">
  	<tr><td colspan="5" class="title" align="center">自定义JS标签管理 — <a href="<?=site_url('admin/label/jsadd/')?>">新建标签</a></td></tr>
    	<TR>
      		<TD align="center" width="26%">标签名称</TD>
      		<TD align="center" width="*">文件路径名称</TD>
      		<TD align="center" width="15%">标签说明</TD>
      		<TD align="center" width="13%">操作</TD>
      		<TD align="center" width="10%">创建/修改时间</TD>
    	</TR>
<?php
 if(empty($label)) echo '<tr align="center"><td colspan="5" align="center">当前没有记录!</td></tr>';
 foreach ($label as $row) { 
?>
    	<TR>
      		<TD><div id="LabelName"><li>{cscmsjs:<?=$row->CS_Name?>}</li></div></TD>
      		<TD><?=Web_Path?>attachment/js/<?=$row->CS_Js?></TD>
      		<TD><?=$row->CS_Neir?></TD>
      		<TD align="center"><a href='javascript:;' title='JS预览' onClick='Dialog.open({Title:"<?=$row->CS_Name?> JS预览",URL:"<?=site_url('admin/label/jslook/')?>?id=<?=$row->CS_Js?>&random="+Math.random(),Width:600,Height:400});return false'>预览</a>｜<A href="<?=site_url('admin/label/jsedit/'.$row->CS_ID)?>">修改</a>｜<A href="<?=site_url('admin/label/jsdel/'.$row->CS_ID)?>" onClick="return confirm('标签删除后将不能恢复，您确定要删除该标签吗?');">删除</a></TD>
      		<TD align="center">2013-05-02</TD>
    	</TR>
<?php } ?>
	<tr><td colspan="7" align="center">共有Js标签：<?=$nums?>个&nbsp;&nbsp;<?=$pages?></td></tr></table>
</BODY>
</HTML>

