|
我看教程学着做了一个发布模块,接近正确,但总有点不对,发布不成功,不知道是哪里有问题,请高手指点一下,这是领地网站的:http://wellbook.lingd.net/ 。非常感谢!模块如附件。
这是发布测试时提示信息:
<!--
--><!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" c />
<meta http-equiv="Content-Language" c />
<meta http-equiv="Pragma" c />
<title>控制面版 - 领地多用户CMS系统后台管理 - Powered by Xphpcms.Com</title>
<link rel="stylesheet" href="templates/style.css" type="text/css">
</head>
<body>
<a name="TOP" id="TOP"></a>
<!--
--><!---->
<LINK href="templates/images/css.css" type=text/css rel=stylesheet>
<script type="text/javascript">
function sax_getbyid(id) {
itm = null;
if (document.getElementById) {
itm = document.getElementById(id);
} else if (document.all) {
itm = document.all[id];
} else if (document.layers) {
itm = document.layers[id];
}
return itm;
}
function CheckAll(form) {
for (var i=0;i<form.elements.length;i++) {
var e = form.elements;
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
function really(d,m,n) {
if (confirm(m)) {
window.location.href='admincp.php?do=attachment&action=delone&attachmentid='+n+'&articleid='+d;
}
}
function really2(d,m,n) {
if (confirm(m)) {
window.location.href='admincp.php?do=trackback&action=delonelog&trackbacklogid='+n+'&articleid='+d;
}
}
var attachnum = 1;
function addattachment() {
attachnum < 5 ? attachnum++ : findobj("addattachlink").disabled=true;
findobj("attach_"+attachnum).style.display = "";
}
function findobj(n, d) {
var p, i, x;
if(!d) d = document;
if((p = n.indexOf("?"))>0 && parent.frames.length) {
d = parent.frames[n.substring(p + 1)].document;
n = n.substring(0, p);
}
if(x != d[n] && d.all) x = d.all[n];
for(i = 0; !x && i < d.forms.length; i++) x = d.forms[n];
for(i = 0; !x && d.layers && i < d.layers.length; i++) x = findobj(n, d.layers.document);
if(!x && document.getElementById) x = document.getElementById(n);
return x;
}
function popnew(url,title,width,height){
var w = 1024;
var h = 768;
if (document.all || document.layers){
w = screen.availWidth;
h = screen.availHeight;
}
var leftPos = (w/2-width/2);
var topPos = (h/2.3-height/2.3);
window.open(url,title,"width="+width+",height="+height+",top="+topPos+",left="+leftPos+",scrollbars=no,resizable=no,status=no")
}
function checkform() {
if (sax_getbyid('title')) {
if (sax_getbyid('title').value == "") {
notice("请输入标题.");
return false;
}
}
if (sax_getbyid('sortid')) {
if (sax_getbyid('sortid').value == "") {
notice("请选择分类.");
return false;
}
}
if (sax_getbyid('submit')) {
sax_getbyid('submit').disabled = true;
}
return true;
}
function checkey(){
if(document.form1.keywords.value==""){
alert("请输入关健字");
return false;
}
document.form1.submit();
}
</script>
<div class="mainbody">
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
<tr>
<td valign="top">
<!---->
<!----><p align="right"><b><a href="admincp.php?do=article&action=list">全部</a> | <a href="admincp.php?do=article&action=list&view=stick&sortid=0">置顶</a> | <a href="admincp.php?do=article&action=list&view=hidden&sortid=0">隐藏</a></b></p>
<!---->
<div class="box">建议您经常更新下缓存,以试被访问是能获得更好的准确性<br />
<!---->
• <a href="admincp.php?do=article&action=list&sortid=734931">值得关注</a> -
<!---->
• <a href="admincp.php?do=article&action=list&sortid=735450">悠闲测试</a> -
<!---->
• <a href="admincp.php?do=article&action=list&sortid=735453">悠闲美容</a> -
<!---->
• <a href="admincp.php?do=article&action=list&sortid=735455">健康健身</a> -
<!---->
• <a href="admincp.php?do=article&action=list&sortid=735464">悠闲星座</a> -
<!---->
• <a href="admincp.php?do=article&action=list&sortid=735480">悠闲娱乐</a> -
<!---->
• <a href="admincp.php?do=article&action=list&sortid=735482">悠闲可乐</a> -
<!---->
• <a href="admincp.php?do=article&action=list&sortid=735476">悠闲分享</a> -
<!---->
</div>
<form action="admincp.php?do=article" method="POST" name="form1" >
<input type="hidden" name="action" value="list">
<input type="hidden" name="do" value="search">
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" class="tableborder">
<tr class="h1title">
<td colspan="6">搜索文章</td>
</tr>
<tr>
<td class="tabletr" width="100" align="center"><b>关键字:</b></td>
<td width="383" align="left" class="tabletr"><input type="text" name="keywords" size="50" maxlength="50" value="" /></td>
<td width="468" colspan="4" align="left" class="tabletr">
<input type="submit" name="submit" id="submit" value=" 搜 索 " class="formbutton"></td>
</tr>
</table>
</form>
<!---->
<form action="admincp.php?do=article" enctype="multipart/form-data" method="POST" name="form" >
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr><td><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" class="tableborder">
<!---->
<tr class="header">
<td width="45%">标题</td>
<td width="10%" nowrap>分类</td>
<td width="5%" nowrap>附件</td>
<td width="15%" nowrap>时间</td>
<td width="17%" nowrap>管理操作</td>
<td width="2%" nowrap><input name="chkall" value="on" type="checkbox" >
</td>
</tr>
<!---->
<tr>
<td class="altbg2"><a href="admincp.php?do=article&action=visible&articleid=1639042"><font color=green>显示</font></a>
<!----><a href="../show.php?id=1639042" target="_blank">9999</a></td>
<td nowrap class="altbg1"><a href="admincp.php?do=article&action=list&sortid=734931">值得关注</a></td>
<td nowrap class="altbg2">0</td>
<td nowrap class="altbg1">2008-10-22 21:04</td>
<td nowrap class="altbg2">
<!-- -->
<a href="admincp.php?do=article&action=mod&articleid=1639042">编辑</a><!----></td>
<td nowrap class="altbg1"><input type="checkbox" name="article[1639042]" value="1">
<input type="hidden" name="attachment[]" value="1">
</td>
</tr>
<!---->
<tr>
<td class="altbg2"><a href="admincp.php?do=article&action=visible&articleid=1638650"><font color=green>显示</font></a>
<!----><a href="../show.php?id=1638650" target="_blank">ffffffffffffffffffff...</a></td>
<td nowrap class="altbg1"><a href="admincp.php?do=article&action=list&sortid=735476">悠闲分享</a></td>
<td nowrap class="altbg2">0</td>
<td nowrap class="altbg1">2008-10-22 19:51</td>
<td nowrap class="altbg2">
<!-- -->
<a href="admincp.php?do=article&action=mod&articleid=1638650">编辑</a><!----></td>
<td nowrap class="altbg1"><input type="checkbox" name="article[1638650]" value="1">
<input type="hidden" name="attachment[]" value="1">
</td>
</tr>
<!---->
<tr>
<td class="altbg2"><a href="admincp.php?do=article&action=visible&articleid=1638190"><font color=green>显示</font></a>
<!----><a href="../show.php?id=1638190" target="_blank">文章标题1</a></td>
<td nowrap class="altbg1"><a href="admincp.php?do=article&action=list&sortid=735476">悠闲分享</a></td>
<td nowrap class="altbg2">0</td>
<td nowrap class="altbg1">2008-10-22 17:53</td>
<td nowrap class="altbg2">
<!-- -->
<a href="admincp.php?do=article&action=mod&articleid=1638190">编辑</a><!----></td>
<td nowrap class="altbg1"><input type="checkbox" name="article[1638190]" value="1">
<input type="hidden" name="attachment[]" value="1">
</td>
</tr>
<!---->
<tr>
<td class="altbg2"><a href="admincp.php?do=article&action=visible&articleid=1638186"><font color=green>显示</font></a>
<!----><a href="../show.php?id=1638186" target="_blank">文章标题</a></td>
<td nowrap class="altbg1"><a href="admincp.php?do=article&action=list&sortid=734931">值得关注</a></td>
<td nowrap class="altbg2">0</td>
<td nowrap class="altbg1">2008-10-22 17:52</td>
<td nowrap class="altbg2">
<!-- -->
<a href="admincp.php?do=article&action=mod&articleid=1638186">编辑</a></td>
<td nowrap class="altbg1"><input type="checkbox" name="article[1638186]" value="1">
<input type="hidden" name="attachment[]" value="1">
</td>
</tr>
<tr>
<td class="altbg2"><a href="admincp.php?do=article&action=visible&articleid=1636501"><font color=green>显示</font></a>
<a href="../show.php?id=1636501" target="_blank">我的站标</a></td>
<td nowrap class="altbg1"><a href="admincp.php?do=article&action=list&sortid=734931">值得关注</a></td>
<td nowrap class="altbg2">0</td>
<td nowrap class="altbg1">2008-10-22 12:29</td>
<td nowrap class="altbg2">
<!-- -->
<a href="admincp.php?do=article&action=mod&articleid=1636501">编辑</a></td>
<td nowrap class="altbg1"><input type="checkbox" name="article[1636501]" value="1">
<input type="hidden" name="attachment[]" value="1">
</td>
</tr>
<tr>
<td colspan="8" nowrap="nowrap" class="tabletr"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>记录:5</b></td>
<td align="right"><b></b></td>
</tr>
</table></td>
</tr>
<tr>
<td class="tablebottom" colspan="8"></td>
</tr>
</table></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="right" width="100%" height="40" style="float:left;">
<tr>
<td colspan="3" align="right">
<select name="do">
<option value="">= 管理操作 =</option>
<option value="stick">置顶</option>
<option value="unstick">取消置顶</option>
<option value="hidden">设置隐藏</option>
<option value="display">设置可见</option>
<option value="delete">删除</option>
<!--<option value="move">移动</option>-->
</select>
<input type="submit" value="确定" class="formbutton"><input type="hidden" name="action" value="domore"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</div>
<BR><BR><DIV class=footer><img src='/images/minico.gif'> Powered by <a href="http://www.LingCms.com/" target=_ablank><b>LingCms</b></a> © 2005-2008 The <a href="http://www.LingD.net/" target=_ablank>Lingd.Net</a> Project.<SPAN class=smalltxt></SPAN></DIV>
<div style="display:none"><script src='http://s113.cnzz.com/stat.php?id=415518&web_id=415518' language='JavaScript' charset='gb2312'></script>
<div style="display:none"><script src='http://w.cnzz.com/c.php?id=30004063&l=1' language='JavaScript' charset='gb2312'></script></div>
</div>
</BODY></HTML>
</html>
但就是测试不成功,找不到哪里出了问题,请高手指点一下,感谢!
[ 本帖最后由 koo 于 2008-10-23 10:12 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?加入会员
x
|