<!DOCTYPE html>
<html>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=gbk">
<TITLE>管理中心_自定义页面管理</TITLE>
<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/label.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/ajaxrequest.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<style type="text/css"> 
#Content{font-size:14px;line-height:20px;}
</style>
</HEAD>
<BODY style="margin:2px">
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="100%" style="border-collapse:collapse;"><form name="myform" method=post action="<?=site_url('admin/label/pagesave/')?>"><input name="CS_ID" type="hidden" value="<?=$CS_ID?>"><tr><td colspan="3" align="center" height="20" class="title"><?=$title?>页面</a></td></tr>
	<tr>
		<td align="right" width='10%'>页面名称： </td>
		<td width='50%'>{cscmspage:<input type="text" name="CS_Name" size="20" value="<?=$CS_Name?>" onclick="chkinput(this,3,30)">} </td>
		<td width='40%'>页面或文件标识，便于管理,只能是数字或者字母。</td>
	</tr>
	<tr>
		<td align="right" width='10%'>页面描述： </td>
		<td width='50%'><input type="text" name="CS_Neir" size="40" value="<?=$CS_Neir?>"></td>
		<td width='40%'>页面描述、简介。</td>
	</tr>
<?php if($title=="修改"){ ?>
	<tr> 
                <td align="right"><strong>运行模式：</strong></td>
		<td><?php if($CS_SID==1){echo "静态";}else{echo "动态";}?></td>
		<td><input name="CS_SID" type="hidden" value="<?=$CS_SID?>"></td>
	</tr>
	<tr> 
                <td align="right">文件路径URL：</td>
		<td><?php if($CS_SID==0) echo 'http://'.Web_Url;?><?=$CS_Url?><input name="CS_Url" type="hidden" value="<?=$CS_Url?>"></td>
		<td>静态模式需要手动生成！</td>
	</tr>
<?php }else{ ?>
	<tr> 
                <td align="right"><strong>运行模式：</strong></td>
		<td><label><input onClick="document.getElementById('jingtai').style.display='none';" type="radio" name="CS_SID" value="0" checked/>动态</label>&nbsp;&nbsp;
		    <label><input onClick="document.getElementById('jingtai').style.display='';" type="radio" name="CS_SID" value="1"/>静态</label></td>
		<td>静态模式需要手动生成！</td>
	</tr>
	<tr id="jingtai" <?php if($CS_SID==0) echo "style='display:none'";?>>
		<td align="right">文件路径URL：</td>
		<td> <?=Web_Path?><input type="text" name="CS_Dir" style="width:150px;" value="<?=$CS_Url?>" onclick="chkinput(this,3,30)">/<input type="text" name="CS_FileName" style="width:83px;" value="index" onclick="chkinput(this,2,20)"> <select name="CS_FileExt" style="width:70px;"><option value="html">.html</option><option value="htm">.htm</option><option value="shtml">.shtml</option><option value="shtm">.shtm</option><option value="xml">.xml</option></select></td>
		<td><font color="#ff0033">⑴只能是匹配由数字、英文或下划线。⑵也可创建多级目录(用“/”级联)。⑶此项添加后不允许更改！</font></td>
	</tr>
<?php } ?>
	<tr>
		<td align="right">页面内容：<br><br><br><div id="Labelid" style="display:"><input type="button" name="Submit" value="导入模板" onClick="DaoruFile('<?=site_url('admin/label/skins/')?>');" class="italk-st"><br><br><input type="button" class="italk-st" onclick="javascript:InsertFunctionLabel(0);" value="模版标签"></div></td>
		<td colspan="2">
		<textarea name="CS_Html" style="height:400px;width:98%;word-break:break-all;" id="Content" onclick="setPos()"><?=$CS_Html?></textarea></td>
	</tr>
    	<TR>
      		<TD colspan="3" align="center"><INPUT class="italk-bt" type=submit value=" 保 存 " name=Submit>&nbsp;<INPUT TYPE=BUTTON value=" 返 回 " onclick="history.back();" class="italk-bt"></TD>
    	</TR>
	</form>
</table>
</BODY>
</HTML>

