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');
?>
1、如非特殊说明,本站对本文提供的代码或者素材不拥有任何权利,其版权归原著者拥有。
2、以上提供的代码或者素材均为作者提供和网友推荐收集整理而来,仅供学习和研究使用。
3、如有侵犯你版权的,请来信(邮箱:admin@mail.52muban.com)指出,核实后,本站将立即改正。
4、如有链接无法下载、失效或广告,请点击下面的报错或者联系我们处理!
5、以上资源售价只是赞助,不代表代码或者素材本身价格。收取费用仅维持本站的日常运营所需!
6、本站所有资源、教程、源码,不得用于非法站点及用途,后果自负!本站不为非法站点提供任何服务。
我爱模板网 帝国cms教程 帝国cms发布投稿页 https://www.52muban.com/129301.html


常见问题