以下是仿美文网的发表文章,AddInfo.php 文件,放在\e\DoInfo 目录下,转到这个页后一片空白,也不知道哪有问题,没有提示,以下是完整代码,请大侠帮忙看看有没有错。。
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
$public_diyr['pagetitle']=$word;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$public_diyr['pagetitle']?> - <?=$public_r['sitename']?></title>
<link rel="stylesheet" type="text/css" href="<?=$public_r['newsurl']?>skin/user/user.css"/>
<script type="text/javascript" language="javascript" src="<?=$public_r['newsurl']?>skin/user/j.js"></script>
<script type="text/javascript" language="javascript" src="<?=$public_r['newsurl']?>skin/user/table_function.js"></script>
<script type="text/javascript" src="<?=$public_r['newsurl']?>skin/user/box.js"></script>
<script language='javascript' src='<?=$public_r['newsurl']?>skin/user/main.js'></script>
<script language='javascript' src='<?=$public_r['newsurl']?>skin/user/article_htm.js'></script>
<script language='javascript' src='<?=$public_r['newsurl']?>skin/user/msgbox.js'></script>
<script language="javascript">
<!--
function inputAutoClear(ipt)
{
ipt.onfocus=function()
{if(this.value==this.defaultValue){this.value='';}};
ipt.onblur=function()
{if(this.value==''){this.value=this.defaultValue;}};
ipt.onfocus();
}
function meitu(){
childWindow =window.open('http://xiuxiu.web.meitu.com/main.html','newwindow','height=600,width=900,top=50,left=280,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
}
-->
</script>
</head>
<body>
<?php require(ECMS_PATH.'e/template/member/head.user.php');?>
<div class="wrapper lineT">
<div class="mainBox">
<div class="main">
<?php require(ECMS_PATH.'e/template/member/left.user.php'); ?>
<div class="dedeMain">
<div class="location"><span class="titAddChannel1 icon">发表</span>普通文章</div>
<form class="mTB10 mL10 mR10" name="form1" action="ecms.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
<input type=hidden value="<?=$enews?>" name=enews>
<input type=hidden value="<?=$classid?>" name=classid>
<input name=id type=hidden id="id" value="<?=$id?>">
<input type=hidden value="<?=$filepass?>" name=filepass>
<input name=mid type=hidden id="mid" value="<?=$mid?>">
<input type=hidden name=ecmsfrom value="ListInfo.php?mid=<?=$mid?>&ecmscheck=1">
<table cellspacing="1" class="submit" style="font-size: 14px;color: #666;" >
<tbody>
<tr></tr>
<tr>
<td width="10%" align="right" valign="top">标题:</td>
<td><input name="title" type="text" id="title" size="30" class="text" style="width:400px;height:25px;font-size:16px;" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'title',stripSlashes($r[title]))?>"/>
<span style="color:#F00">*</span></td>
</tr>
<tr>
<td align="right" valign="top">标签:</td>
<td><input type="text" name="keyboard" id="keyboard" size="42" class="text" style="width:200px;height:25px;font-size:16px;" value="<?=stripSlashes($r[keyboard])?>" /><span style="color:#90A500"> ( 多个请用","隔开 )</span></td>
</tr>
<tr>
<td align="right" valign="top">作者:</td>
<td><input type="text" name="writer" id="writer" size="30" class="text" style="width:200px;height:25px;font-size:16px;" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'writer',stripSlashes($r[writer]))?>" /></td>
</tr>
<tr>
<td align="right" valign="top">来源:</td>
<td style="font-size:15px;padding:0px 10px"><input type="radio" name="befrom" id="yc" value="原创"<?=$r[befrom]=="原创"?' checked':''?>/>原创 <input type="radio" name="befrom" id="zz" value="转载"<?=$r[befrom]=="转载"?' checked':''?>/>转载<span style="color:#90A500"> ( 转载作品请在内容结尾注明作者信息 )</span><span style="color:#F00"> *</span> </td>
</tr>
<tr>
<td align="right" valign="top">栏目:</td>
<td><select name='classid' style='width:130px;color:#333;font-size:14px;' size='1'>
<option value='0' selected>请选择栏目...</option>
<?php $bclass=$empire->query("select classid,classname from {$dbtbpre}enewsclass where bclassid='0' and openadd='0'");
while($br=$empire->fetch($bclass)) {
echo "<option value='".$br[classid]."' class='option2'>".$br[classname]."</option>";
$class=$empire->query("select classid,classname from {$dbtbpre}enewsclass where bclassid='".$br['classid']."' and openadd='0'");
while($cr=$empire->fetch($class))
{
echo "<option value='".$cr[classid]."' class='option3'>─".$cr[classname]."</option>";
}
}
?>
</select>
<span style="color:#F00"> * </span>( 不能选择带颜色的分类 )</td>
</tr>
<tr>
<td align="right" valign="top">配图:</td>
<td><input class="file" name="titlepicfile" type="file" id="titlepicfile" style="width:350px; height:22px;" onchange="SeePicNew('divpicview',this);"/>
图片比例 <font color='green'>5:3</font> 建议使用500×330px图片 <a href="javascript:vod(0);" onclick="meitu();" class="buttonGary4" style="text-decoration:none;">美化图片</a>
<div id='divpicview' class='divpre'></div></td>
</tr>
<tr>
<td align="right" valign="top">简介:</td>
<td>
<textarea name="smalltext" cols="50" rows="5" id="smalltext" style="width:60%;height:70px;font-size:16px;color:#333;"><?=$ecmsfirstpost==1?"":DoReqValue($mid,'smalltext',stripSlashes($r[smalltext]))?></textarea></td>
</tr>
<tr>
<td align="right" valign="top">内容:<br>
<span id="counter">0</span>/9999</td>
<td><textarea id="body" name="newstext" cols="50" rows="5" onkeydown="countChar('newstext','counter');" onkeyup="countChar('newstext','counter');" style="width:90%;height:400px;font-size:16px;color:#333;" ><?=$ecmsfirstpost==1?"":DoReqValue($mid,'newstext',stripSlashes($r[newstext]))?></textarea></td>
</tr>
</tbody>
<tfoot>
<tr>
<td height="45"> </td>
<td height="45">
<button class="button3" type="button" onclick="format('body')">排 版</button>
<button class="button3" type="submit" id="btnSubmit">提 交</button>
<span style="font-size:16px;color:#54AE58;">(<b>友情提示</b>:使用本站<a target="_blank" style="text-decoration:none;" href="/about/paiban.html"><b style="font: 400 16px Microsoft Yahei;padding:0px 5px;color:#FF3D3D;">文字排版工具</b></a>进行排版过的文章更容易通过审核哦)</span> </td>
</tr>
</tfoot>
</table>
</form>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</div>
<?php require(ECMS_PATH.'e/template/member/foot.user.php'); ?>
</body>
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
$public_diyr['pagetitle']=$word;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$public_diyr['pagetitle']?> - <?=$public_r['sitename']?></title>
<link rel="stylesheet" type="text/css" href="<?=$public_r['newsurl']?>skin/user/user.css"/>
<script type="text/javascript" language="javascript" src="<?=$public_r['newsurl']?>skin/user/j.js"></script>
<script type="text/javascript" language="javascript" src="<?=$public_r['newsurl']?>skin/user/table_function.js"></script>
<script type="text/javascript" src="<?=$public_r['newsurl']?>skin/user/box.js"></script>
<script language='javascript' src='<?=$public_r['newsurl']?>skin/user/main.js'></script>
<script language='javascript' src='<?=$public_r['newsurl']?>skin/user/article_htm.js'></script>
<script language='javascript' src='<?=$public_r['newsurl']?>skin/user/msgbox.js'></script>
<script language="javascript">
<!--
function inputAutoClear(ipt)
{
ipt.onfocus=function()
{if(this.value==this.defaultValue){this.value='';}};
ipt.onblur=function()
{if(this.value==''){this.value=this.defaultValue;}};
ipt.onfocus();
}
function meitu(){
childWindow =window.open('http://xiuxiu.web.meitu.com/main.html','newwindow','height=600,width=900,top=50,left=280,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
}
-->
</script>
</head>
<body>
<?php require(ECMS_PATH.'e/template/member/head.user.php');?>
<div class="wrapper lineT">
<div class="mainBox">
<div class="main">
<?php require(ECMS_PATH.'e/template/member/left.user.php'); ?>
<div class="dedeMain">
<div class="location"><span class="titAddChannel1 icon">发表</span>普通文章</div>
<form class="mTB10 mL10 mR10" name="form1" action="ecms.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
<input type=hidden value="<?=$enews?>" name=enews>
<input type=hidden value="<?=$classid?>" name=classid>
<input name=id type=hidden id="id" value="<?=$id?>">
<input type=hidden value="<?=$filepass?>" name=filepass>
<input name=mid type=hidden id="mid" value="<?=$mid?>">
<input type=hidden name=ecmsfrom value="ListInfo.php?mid=<?=$mid?>&ecmscheck=1">
<table cellspacing="1" class="submit" style="font-size: 14px;color: #666;" >
<tbody>
<tr></tr>
<tr>
<td width="10%" align="right" valign="top">标题:</td>
<td><input name="title" type="text" id="title" size="30" class="text" style="width:400px;height:25px;font-size:16px;" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'title',stripSlashes($r[title]))?>"/>
<span style="color:#F00">*</span></td>
</tr>
<tr>
<td align="right" valign="top">标签:</td>
<td><input type="text" name="keyboard" id="keyboard" size="42" class="text" style="width:200px;height:25px;font-size:16px;" value="<?=stripSlashes($r[keyboard])?>" /><span style="color:#90A500"> ( 多个请用","隔开 )</span></td>
</tr>
<tr>
<td align="right" valign="top">作者:</td>
<td><input type="text" name="writer" id="writer" size="30" class="text" style="width:200px;height:25px;font-size:16px;" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'writer',stripSlashes($r[writer]))?>" /></td>
</tr>
<tr>
<td align="right" valign="top">来源:</td>
<td style="font-size:15px;padding:0px 10px"><input type="radio" name="befrom" id="yc" value="原创"<?=$r[befrom]=="原创"?' checked':''?>/>原创 <input type="radio" name="befrom" id="zz" value="转载"<?=$r[befrom]=="转载"?' checked':''?>/>转载<span style="color:#90A500"> ( 转载作品请在内容结尾注明作者信息 )</span><span style="color:#F00"> *</span> </td>
</tr>
<tr>
<td align="right" valign="top">栏目:</td>
<td><select name='classid' style='width:130px;color:#333;font-size:14px;' size='1'>
<option value='0' selected>请选择栏目...</option>
<?php $bclass=$empire->query("select classid,classname from {$dbtbpre}enewsclass where bclassid='0' and openadd='0'");
while($br=$empire->fetch($bclass)) {
echo "<option value='".$br[classid]."' class='option2'>".$br[classname]."</option>";
$class=$empire->query("select classid,classname from {$dbtbpre}enewsclass where bclassid='".$br['classid']."' and openadd='0'");
while($cr=$empire->fetch($class))
{
echo "<option value='".$cr[classid]."' class='option3'>─".$cr[classname]."</option>";
}
}
?>
</select>
<span style="color:#F00"> * </span>( 不能选择带颜色的分类 )</td>
</tr>
<tr>
<td align="right" valign="top">配图:</td>
<td><input class="file" name="titlepicfile" type="file" id="titlepicfile" style="width:350px; height:22px;" onchange="SeePicNew('divpicview',this);"/>
图片比例 <font color='green'>5:3</font> 建议使用500×330px图片 <a href="javascript:vod(0);" onclick="meitu();" class="buttonGary4" style="text-decoration:none;">美化图片</a>
<div id='divpicview' class='divpre'></div></td>
</tr>
<tr>
<td align="right" valign="top">简介:</td>
<td>
<textarea name="smalltext" cols="50" rows="5" id="smalltext" style="width:60%;height:70px;font-size:16px;color:#333;"><?=$ecmsfirstpost==1?"":DoReqValue($mid,'smalltext',stripSlashes($r[smalltext]))?></textarea></td>
</tr>
<tr>
<td align="right" valign="top">内容:<br>
<span id="counter">0</span>/9999</td>
<td><textarea id="body" name="newstext" cols="50" rows="5" onkeydown="countChar('newstext','counter');" onkeyup="countChar('newstext','counter');" style="width:90%;height:400px;font-size:16px;color:#333;" ><?=$ecmsfirstpost==1?"":DoReqValue($mid,'newstext',stripSlashes($r[newstext]))?></textarea></td>
</tr>
</tbody>
<tfoot>
<tr>
<td height="45"> </td>
<td height="45">
<button class="button3" type="button" onclick="format('body')">排 版</button>
<button class="button3" type="submit" id="btnSubmit">提 交</button>
<span style="font-size:16px;color:#54AE58;">(<b>友情提示</b>:使用本站<a target="_blank" style="text-decoration:none;" href="/about/paiban.html"><b style="font: 400 16px Microsoft Yahei;padding:0px 5px;color:#FF3D3D;">文字排版工具</b></a>进行排版过的文章更容易通过审核哦)</span> </td>
</tr>
</tfoot>
</table>
</form>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</div>
<?php require(ECMS_PATH.'e/template/member/foot.user.php'); ?>
</body>