在sablog文章里下面加GGAD怎么加啊??
<!--<?php$cname = urlencode($article);
print <<<EOT
-->
<div class="post">
<div class="title">$article</div>
<div class="postdate">Submitted by <a href="./?action=showuser&id=$article">$article</a> on $article. <a href="./?cid=$article&cname=$cname">$article</a></div><!--
EOT;
if (!$article['allowread']) {print <<<EOT
-->
<div style="padding-bottom:20px;background-color:#fff;margin: 20px 0px;"><form action="./?action=show&id=$article" method="post">这篇日志被加密了。请输入密码后查看。<br />密码 <input class="formfield" type="password" name="readpassword" /> <input class="formbutton" type="submit" value="提交" /></form></div>
<!--
EOT;
} else {print <<<EOT
-->
<div class="content">$article</div>
<!--
EOT;
if ($article['image']) {
foreach ($article['image'] as $image) {
if($image){print <<<EOT
--><div class="attach">图片附件(缩略图):<br /><a href="./attachment.php?id=$image" target="_blank"><img src="$image" border="0" alt="大小: $image 尺寸: $image x $image 浏览: $image 次 点击打开新窗口浏览全图" width="$image" height="$image" /></a></div><!--
EOT;
} else {print <<<EOT
--><div class="attach">图片附件:<br /><a href="./attachment.php?id=$image" target="_blank"><img src="$image" border="0" alt="大小: $image 尺寸: $image x $image 浏览: $image 次 点击打开新窗口浏览全图" width="$image" height="$image" /></a></div><!--
EOT;
}}}
if($article){
foreach($article as $file){
if($file){print <<<EOT
--><div class="attach"><b>附件: </b><a href="attachment.php?id=$file" target="_blank">$file</a> ($file, 下载次数:$file)</div><!--
EOT;
}}}
if (!empty($article['keywords'])) {
print <<<EOT
--><div class="tags"><b>Tags</b>: $article</div><!--
EOT;
}
print <<<EOT
-->
</div>
<div id="article-other"><strong>«</strong> <a href="./?action=show&id=$id&goto=previous">上一篇</a> | <a href="./?action=show&id=$id&goto=next">下一篇</a> <strong>»</strong></div>
<!--
EOT;
if ($related_tatol > 0 && $relids != $articleid) {print <<<EOT
-->
<div class="post">
<div class="title"><span style="float:right;padding-bottom: 2px;font-size: 12px;">只显示$options条记录</span>相关文章</div>
<div class="cmcontent">
<!--
EOT;
foreach($titledb as $key => $title){print <<<EOT
--><a href="./?action=show&id=$title">$title</a> (浏览: <font color="#CC0000">$title</font>, 评论: <font color="#CC0000">$title</font>)<br />
<!--
EOT;
}print <<<EOT
-->
</div>
<div style="height:5px"></div>
</div>
<!--
EOT;
}print <<<EOT
-->
<a name="trackbacks"></a>
<div class="post">
<div class="title"><!--
EOT;
if ($article['trackbacks'] > 0) {print <<<EOT
--><span style="float:right;padding-bottom: 2px;font-size: 12px;"><a href="###" onclick="showhide('tbbody');" title="点击查看所有Trackbacks">$article条记录</a></span>
<!--
EOT;
}print <<<EOT
-->Trackbacks</div>
<div id="tburl"><!--
EOT;
if ($article['closetrackback']) {print <<<EOT
--><strong>本文因为某种原因此时不允许引用</strong><!--
EOT;
} else {print <<<EOT
-->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article').innerHTML=showtburl('$options',$article,'utf-8');return false;"><img src="templates/$options/utf8.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: UTF-8" /></a></td>
<td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article').innerHTML=showtburl('$options',$article,'gbk');return false;"><img src="templates/$options/gbk.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: GB2312 or GBK" /></a></td>
<td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article').innerHTML=showtburl('$options',$article,'big5');return false;"><img src="templates/$options/big5.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: BIG5" /></a></td>
</tr>
</table>
<span id="spanid_$article"></span>
<!--
EOT;
}print <<<EOT
--></div>
<!--
EOT;
if ($article['trackbacks'] > 0) {print <<<EOT
-->
<div id="tbbody" class="divOFF">
<!--
EOT;
foreach($trackbackdb as $key => $trackback){print <<<EOT
--><div class="tbcontent">标题: <a href="$trackback" target="_blank">$trackback</a><br />
来自: <a href="$trackback" target="_blank">$trackback</a><br />
摘要: $trackback</div>
<div class="tbdate">Tracked on $trackback <font color="#000000">#<strong>$trackback</strong></font></div>
<!--
EOT;
}print <<<EOT
--></div>
<!--
EOT;
}print <<<EOT
-->
</div>
<div style="height:5px"></div>
<a name="comment"></a>
<!--
EOT;
if ($article['comments'] > 0) {print <<<EOT
-->
<div class="post">
<div class="title"><span style="FLOAT:right;padding-bottom: 2px;font-size: 12px;">$article条记录</span>访客评论</div>
<!--
EOT;
foreach($commentdb as $key => $comment){print <<<EOT
--><a name="cm$comment"></a><div class="cmcontent" id="comm_$comment">$comment</div>
<div class="cmdate">Post by $comment on $comment <!--
EOT;
if ($comment['url']) {
print <<<EOT
--><a href="$comment" target="_blank"><img src="templates/$options/top_home.gif" width="13" height="12" border="0" alt="访问评论者的主页/博客" /></a> <!--
EOT;
}
print <<<EOT
--><img style="cursor: hand" onclick="addquote('comm_$comment','$comment')" src="templates/$options/quote.gif" width="10" height="12" border="0" alt="引用此文发表评论" /> <font color="#000000">#<strong>$comment</strong></font></div>
<!--
EOT;
}print <<<EOT
-->
<div id="addnew"></div>
</div>
$multipage
<br />
<!--
EOT;
}
if (!$multipage AND $article['comments'] > 0) { //美观
print <<<EOT
-->
<div style="height:5px"></div>
<!--
EOT;
}
if (!$article['closecomment']) {
print <<<EOT
-->
<a name="addcomment"></a>
<div class="title">发表评论</div>
<form method="post" name="form" id="form" action="post.php" onsubmit="return checkform();">
<input type="hidden" name="articleid" value="$article" />
<table border="0" cellpadding="0" cellspacing="0">
<!--
EOT;
if ($loginstat) {
print <<<EOT
-->
<tr>
<td colspan="2" class="formbox">已经登陆为 <b>$_COOKIE</b> [<a href="post.php?action=logout">注销</a>]</td>
</tr>
<!--
EOT;
} else {print <<<EOT
-->
<tr>
<td width="50%" class="formbox">名字(*):<br />
<input name="username" id="username" type="text" size="25" maxlength="20" value="$_COOKIE" class="formfield" /></td>
<td width="50%" class="formbox">密码(游客不需要密码):<br />
<input name="password" id="password" type="password" size="25" maxlength="20" value="" class="formfield" /></td>
</tr>
<tr>
<td colspan="2" class="formbox">主页/博客(必须以http://开头):<br />
<input name="url" id="url" type="text" size="54" maxlength="100" value="$_COOKIE" class="formfield" /></td>
</tr>
<tr>
<td colspan="2" class="formbox">电子邮件:<br />
<input name="email" id="email" type="text" size="54" maxlength="100" value="$_COOKIE" class="formfield" /></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr>
<td colspan="2" class="formbox">评论内容(*):<br />
<textarea name="content" id="content" cols="54" rows="8" class="formfield" onkeydown="ctlent(event);">$_COOKIE</textarea></td>
</tr>
<!--
EOT;
if ($options['seccode'] && $gd_version) {print <<<EOT
-->
<tr>
<td colspan="2" class="formbox"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="70">验证码(*):</td>
<td width="50"><img src="include/seccode.php" alt="验证码" border="0" /></td>
<td width="70"><input name="clientcode" id="clientcode" type="text" size="6" maxlength="6" value="" class="formfield" /></td>
</tr>
</table></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr>
<td colspan="2" class="formbox"><input type="hidden" name="action" value="addcomment" />
<input type="submit" id="submit" name="submit" class="formbutton" value="提交" />
<input type="button" class="formbutton" onclick="window.location.href='?action=reg'" value="注册" />
<input name="remember" type="checkbox" value="1" checked="checked" />
记住我【Alt+S 或 Ctrl+Enter 快速提交】</td>
</tr>
</table>
</form>
<!--
EOT;
} else {print <<<EOT
--><p align="center"><strong>本文因为某种原因此时不允许访客进行评论</strong></p>
<!--
EOT;
}}
if (!$article['allowread']) {print <<<EOT
--></div><!--
EOT;
}
?> 在哪里加啊??我试了几个地方都不行 1000金光币.
我给你加
:lol :lol 算了..你一共才不够200呢
150金光币,我给你加 可以啊:lol :lol :lol :lol ppopcn2007-4-3 20:59 金币 160 元积分 ppopcn在吗?? 把
print <<<EOT
-->
中间添加 GG ADS
<!--
EOT;
添加到
}
print <<<EOT
-->
</div>
<div id="article-other"><strong>«</strong> <a href="./?action=show&id=$id&goto=previous">上一篇</a> | <a href="./?action=show&id=$id&goto=next">下一篇</a> <strong>»</strong></div>
<!--
EOT;
的上方
回复 #8 zjtv 的帖子
还是轰炸机厉害:victory: 原帖由 zjtv 于 2007-4-3 21:19 发表 http://jgwy.net/bbs/images/common/back.gif把
谢谢....:kiss:
页:
[1]
2