1、代码头部部分
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<?php
$public_diyr['pagetitle']=$word;
$url="<a href='../../'>首页</a> > <a href='../member/cp/'>会员中心</a> > <a href='ListInfo.php?mid=".$mid."'>管理信息</a> > ".$word." (".$mr[qmname].")";
?>
<script src="../data/html/setday.js"></script>
<script>
function bs(){
var f=document.add
if(f.title.value.length==0){alert("标题还没写");f.title.focus();return false;}
if(f.classid.value==0){alert("请选择栏目");f.classid.focus();return false;}
}
function foreColor(){
if(!Error()) return;
var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) document.add.titlecolor.value=arr;
else document.add.titlecolor.focus();
}
function FieldChangeColor(obj){
if(!Error()) return;
var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) obj.value=arr;
else obj.focus();
}
</script>
<script src="../data/html/postinfo.js"></script>
2、引入系统公共头部:(可根据自己的要求修改样式!)
<?php
require(ECMS_PATH.'e/template/incfile/header.php');
?>
3、引入form 投稿表单
<form name="add" method="POST" enctype="multipart/form-data" action="ecms.php" onsubmit="return EmpireCMSQInfoPostFun(document.add,'<?=$mid?>');">
<?=$word?>// 网页标题
<input type=hidden name=ecmsfrom value="9">//返回投稿页
<input type=hidden value="<?=$enews?>" name=enews>
<input type=hidden value="<?=$classid?>" name=classid>//栏目id
<input name=id type=hidden id="id" value="<?=$id?>">//信息id
<input type=hidden value="<?=$filepass?>" name=filepass>
<input name=mid type=hidden id="mid" value="<?=$mid?>">//模型id
<?=$musername?>//提交者
<?=$postclass?>// 所属栏目
//引入投稿表单
<?php
@include($modfile);
?>
<?=$showkey?> //验证码
<input type="submit" name="addnews" value="提交"> // 提交按钮
<input type="reset" name="Submit2" value="重置"> //重置
</form>
4、引入公共底部:
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>
如有侵权,请联系 hzy98999#qq.com (#改@) 删除。