⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add_news.tpl

📁 企业易站官方网站 下面是相关帮助信息: 1.企业易站官方网站 http://www.ees.cn 2.企业易站官方服务论坛 http://www.ees.cn/forum/ 3.EES企业易站 安装使
💻 TPL
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻管理-手工发布</title>
<link href="main.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript src="../include/share_func.js"></script>
{literal}
<script language="javascript">
<!--
	function checkforum()
	{
		if(document.myform.title.value=="")
		{
			alert("请填写新闻标题!");
			document.myform.title.focus();
			return false;
		}
		else{
			return true;
		}
	}

	function show_upload()
	{
		//alert(showtype);
		if(document.addfile.showtype.value==0)
		{
			showup1.style.display = 'none';
			showup2.style.display = 'none';
			document.addfile.showtype.value="1";
		}
		else if(document.addfile.showtype.value==1){
			showup1.style.display = '';
			showup2.style.display = '';
			document.addfile.showtype.value="0";
		}
		else{
			showup1.style.display = '';
			showup2.style.display = '';
			document.addfile.showtype.value="0";
		}
		return true;
	}

	function check_picture()
	{
		var fileext;
		var my_value;
		my_value=document.addfile.upload_file.value;
		fileext=my_value.substr(my_value.length-3,3);
		fileext=fileext.toUpperCase();              
		if ((fileext != "GIF") && (fileext != "JPG"))
		{                  
			alert("新闻图片只能是GIF或JPG格式!");
			return false;
		}
		else{
			document.addfile.action="upload_file.php";
			document.addfile.submit();
			return true;
		}
	}
-->
</script>
<style type="text/css">
<!--
.style1 {color: #0000FF}
-->
</style>
{/literal}
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" marginheight="0" bgcolor="ffffee">
<br>
  <table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f2f2f2" class=p9 >
   <form method="POST" enctype="multipart/form-data" name="addfile" target='upfile'>
    <tr bgcolor="#f2f2f2">
      <td colspan="2">
      <strong>手工发布</strong>
	(<a href="javascript:;" onClick="show_upload()">上传图片</a>)
	<input type="hidden" name="showtype" value="1">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF" id="showup1" style="display:none">
      <td>上传图片</td>
      <td>
	  <input name="upload_file" type="file">
	  <input type="button" name="UpSubmit" value="上传" onclick="check_picture()">
	  <iframe name=upfile style=display:none></iframe>
      </td>
    </tr>
	<tr bgcolor="#FFFFFF" id="showup2" style="display:none">
      <td>图片路径</td>
      <td>
	  <input type="text" name="file_content" size="60" readonly>
	  <input type=button name="format_preview" value='预览' onClick="javascript:text_preview(document.addfile.file_content.value); ">
	  请将图片代码放到合适的位置
      </td>
    </tr>
   </form>
   <form action="add_news.php" method="post" name="myform" onsubmit="return checkforum()">
    <tr> 
      <td colspan="2"> 
        <div align="left"></div></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>新闻来源</td>
      <td>
	<select name="source_id">
	{$source_option}
	</select>
        <input name="media_name" type="text" size="10"></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>正文模板</td>
      <td>
		  <select name="page_id" id="page_id">
			<option selected>请选择正文模板</option>
			{$page_option}
		  </select>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>新闻类型</td>
      <td>
		<select name="type_id">
		{$type_option}
		</select>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>发布时间</td>
      <td>
      <input name="publish_date" type="text" value="{$date}" size="12">
      <input name="publish_time" type="text" value="{$time}" size="10">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>新闻标题</td>
      <td><input name="title" type="text" size="50"></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>自动排版</td>
      <td>
    	 <input type=button name="format_btn" value='自动排版' onClick="javascript:document.myform.format_status.value = '正在排版...';document.myform.content.value=formattext(document.myform.content.value,1);document.myform.format_status.value ='排版结束!'; ">
	 <input type=text name="format_status" value='进程显示...' size=11 readonly>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td colspan="2" align="center">
	  <textarea name="content" cols="90" rows="20"></textarea>
	  </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="2"> 
        <div align="center">
		    <input type="button" name="btn_back" value=" 返回 " onClick="javascript:history.back();">
			<input name="s_action" type="hidden" id="s_action" value="add">
			<input type=button name="format_preview" value="预览新闻" onClick="javascript:text_preview(document.myform.content.value); ">
          <input name="btn_submit" type="submit" id="btn_submit" value="提交新闻">
        </div></td>
    </tr>
	</form>
  </table>
  <br>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -