📄 readtpl.htm
字号:
<!--<?php
print <<<EOT
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv='Expires' content='-1'>
<meta http-equiv='Content-Type' content='text/html; charset=$db_charset'>
<meta name="robots" content="index,follow">
<meta name='keywords' content='phpwind,bbs,board,php,mysql,forums'>
<title>$subject $forumname $db_bbsname</title>
<!--css--><style type="text/css">
body {font-family: Verdana;FONT-SIZE: 12px;MARGIN: 0;color: #000000;background-image: url("$imgpath/wind/index/bg.gif");}
.thusername { $db_thusername }
</style><!--css-->
<link rel="stylesheet" type="text/css" id="css" href="$imgpath/style.css">
</head>
<body vlink='#333333' link='#333333'>
<!--
EOT;
if($votedb){print <<<EOT
-->
<CENTER>
<form action='$path/job.php?votejop=vote' method=post name=vote>
<div class="spaceborder" style="width: 98%">
<table cellspacing="0" cellpadding="4" width="100%" align="center">
<tr><td class="header" colspan="2">
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="smalltxt" style="color: #154BA0"><td class="bold">投票标题: $subject</td>
<td align="right">
[<a href='$path/read.php?fid=$fid&tid=$tid&viewvoter=yes&toread=1'>参与投票的会员</a>]
</td></tr></table>
</td></tr>
<!--
EOT;
foreach($votedb as $key=>$vote){
print <<<EOT
-->
<tr>
<td class="altbg1" width="18%">
<!--
EOT;
if(!$havevote || $action=='modify'){
print <<<EOT
-->
<input type='$votetype' value='$key' name=voteid[]>
<!--
EOT;
}print <<<EOT
-->
<b>$vote[name]</b> </td>
<td class="altbg2"><div class="percent"><div style="width: 302"></div></div><div class="percenttxt">
<img src='$imgpath/post/vote/bar1.gif' width=$vote[width] height=10>
$vote[num] 票</td>
$vote[voter]
</div></td>
</tr>
<!--
EOT;
}
print <<<EOT
-->
<tr class="bottom"><td class="altbg1">
<a href="$path/read.php?tid=$tid&action=modify&toread=1">修改投票</a>
<!--
EOT;
if($multi){print <<<EOT
-->
(限选个数:$multi)
<!--
EOT;
}
print <<<EOT
-->
</td>
<td class="altbg2">
<input type=hidden value='$pollid' name=pollid>
<input class="button" type="submit" value="提 交">
总共有<b>{$votesum}</b>人参与本次投票 发起于:$tpc_date</td></tr>
</table></div></form><br>
</CENTER>
<!--
EOT;
}print <<<EOT
-->
<CENTER>
<div class="spaceborder" style="width: $tablewidth; border-bottom: none">
<table cellspacing="0" cellpadding="4" width="100%" align="center">
<tr class="header"><td colspan="2" style="color: #154BA0">
<div class="right" style="font-weight: normal">
<a href="$path/index.php?fid=$fid">返回列表</a> ||
<a href="$path/post.php?action=reply&fid=$fid&tid=$tid">发表回复</a> ||
<a href="javascript:location.reload()">刷新该页</a> ||
<a href="$path/read.php?fid=$fid&tid=$tid&toread=1"><font color=red>转到动态</font></a> ||
<a href="javascript:window.close()"><B>关闭本页</B></a></div>
标题:<a href='$path/read.php?fid=$fid&tid=$tid&toread=1'>$subject</a></td></tr>
</table></div>
<!--
EOT;
if($db_mmcatvviewa){print <<<EOT
-->
<div class="spaceborder" style="width: $tablewidth; margin-bottom: 4px;">
<table cellspacing="0" cellpadding="4" width="100%" align="center" class="t_row">
<tr style="height: 100%">
<td class="t_user">$db_mmcatvviewa
</td></tr></table></div>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
$key=0;
foreach($readdb as $read) {
if($read){
$table_id=$td_id=$a_id='';
if($db_ajaxcontent && $ajaxcheck && $read[pid]=='tpc'){
$table_id="id='ajaxtable'";
$td_id="id='td_c_$read[tid]'";
$a_id="id='a_ajax_$read[tid]'";
}print <<<EOT
-->
$read[jupend]
<div class="spaceborder" style="width: $tablewidth; margin-bottom: 4px;">
<table cellspacing="0" cellpadding="4" width="100%" align="center" class="t_row">
<tr style="height: 100%">
<td width="18%" valign="top" class="t_user">
【<a href='$path/profile.php?action=show&uid=$read[authorid]' class='thusername'><b>$read[author]</b></a>】<br>
{$read[level]}<br>
<img src='$imgpath/$stylepath/level/$read[lpic].gif'><br>
<!--
EOT;
if($read[honor]){print <<<EOT
-->
$read[honor]<br>
<!--
EOT;
}if($read[micon]){print <<<EOT
-->
<br>
<table width="95%" cellspacing="0" cellpadding="0" style="table-layout: fixed; overflow: hidden">
<tr><td align="center"><div class="avatar" style="width: 73">$read[face]</div></td></tr></table>
<br>
<!--
EOT;
}if($read[medals]){print <<<EOT
-->
$read[medals]<br>
<!--
EOT;
}if($read[digests]){print <<<EOT
-->
精华: <a href="$path/search.php?authorid=$read[authorid]&digest=1" target="_blank">$read[digests]</a><br>
<!--
EOT;
}print <<<EOT
-->
发帖: $read[postnum]<br>
$db_rvrcname: $read[aurvrc] $db_rvrcunit<br>
$db_moneyname: $read[money] $db_moneyunit<br>
<!--
EOT;
if($db_ads){print <<<EOT
-->
$db_creditname: $read[credit] $db_creditunit<br>
<!--
EOT;
}if($db_showcustom){
foreach($_CREDITDB as $k=>$v){
if(strpos($db_showcustom,",$k,")!==false){
!$customdb[$read[authorid]][$k] && $customdb[$read[authorid]][$k]=0;
print <<<EOT
-->
$v[0]: {$customdb[$read[authorid]][$k]} $v[1]<br>
<!--
EOT;
}}}if($db_showcolony && $colonydb[$read[authorid]]){
$v=$colonydb[$read[authorid]];print <<<EOT
-->
{$db_hackdb[colony][0]}:
<a href="$path/hack.php?H_name=colony&cyid=$v[id]&job=view&id=$v[id]" target="_blank">$v[cname]</a><br>
<!--
EOT;
}if($db_ifonlinetime){print <<<EOT
-->
在线: $read[ontime](小时)<br>
<!--
EOT;
}print <<<EOT
-->
$read[loction]
注册: {$read[regdate]}<br>
<!--
EOT;
if($db_showonline && $read[thisvisit]+$db_onlinetime*1.5>$timestamp){print <<<EOT
-->
状态: <B>在线</B>
<!--
EOT;
}elseif($db_showonline){print <<<EOT
-->
状态: 离线
<!--
EOT;
}print <<<EOT
-->
</div>
</td>
<td width="82%" valign="top" style="padding: 0px">
<table cellspacing="0" cellpadding="4" class="t_msg">
<tr><td>
<div>
<div class="right t_number"><B>#$read[lou]</B></div>
<div class="right" style="padding-top: 4px;">
<font face=Wingdings color=#5CA408>u</font>
<a href="$path/post.php?action=reply&fid=$fid&tid=$tid"><font color=red>回复</font></a>
<font face=Wingdings color=#5CA408>u</font>
<a href='$path/post.php?action=modify&fid=$fid&tid=$tid&pid=$read[pid]&article=$read[lou]'><font color=red><B>编辑</B></font></a>
<font face=Wingdings color=#5CA408>u</font> </div>
<div style="padding-top: 4px;">
发表于 $read[postdate]
<a href='$path/message.php?action=write&touid=$read[authorid]' target="_blank">短消息</a>
<a href="$path/post.php?action=quote&fid=$fid&tid=$tid&pid=$read[pid]&article=$read[lou]">引用</a>
</div></div>
</td></tr>
<tr><td valign="top" class="line" height="100%" style="padding-top: 10px;">
<span class='tpc_title'>$read[subject]</span><br>
<!--
EOT;
if($read['pic']){
foreach($read['pic'] as $pic){
if($pic){print <<<EOT
-->
<br><br>
<!--
EOT;
if($pic[3]){print <<<EOT
-->
描述:$pic[3]<br>
<!--
EOT;
}print <<<EOT
-->
图片: $pic[1]
<!--
EOT;
if($pic[2]){print <<<EOT
-->
[<a href='$path/job.php?action=deldownfile&pid=$read[pid]&tid=$tid&aid=$pic[0]'>删除</a>]
<!--
EOT;
}}}}print <<<EOT
-->
<br><span class='tpc_content' $a_id>$read[content]</span><br>
<!--
EOT;
if($read['downattach']){
foreach($read['downattach'] as $attach){
if($attach){print <<<EOT
-->
<br><br>
<!--
EOT;
if($attach[7]){print <<<EOT
-->
描述:$attach[7]<br>
<!--
EOT;
}print <<<EOT
-->
附件: <img src='$imgpath/$stylepath/file/$attach[5].gif' align=absbottom>
<a href='$path/job.php?action=download&pid=$read[pid]&tid=$tid&aid=$attach[0]' target='_blank'>
<font color=red>$attach[1]</font></a> ($attach[2] K) 下载次数:$attach[3]
<!--
EOT;
if($attach[4]){print <<<EOT
-->
需要{$db_rvrcname}:$attach[4]
<!--
EOT;
}if($attach[6]){print <<<EOT
-->
[<a href='$path/job.php?action=deldownfile&pid=$read[pid]&tid=$tid&aid=$attach[0]'>删除</a>]
<!--
EOT;
}}}}print <<<EOT
-->
</td></tr>
<tr><td valign="bottom">
<!--
EOT;
if($read[mark]){print <<<EOT
-->
<fieldset><legend>本帖最近评分记录</legend><br>
<table cellspacing="0" cellpadding="0">
<tr><td>$read[mark]</td></tr>
</table>
</fieldset>
<!--
EOT;
}if($read[signature]){print <<<EOT
-->
<img src='$imgpath/$stylepath/sigline.gif' align=absbottom>
<br>$read[signature]<br>
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tr><td align="right">
<a href='$path/job.php?action=showping&tid=$tid&pid=$read[pid]&page=$page'>评分</a>
<a href='$path/masingle.php?action=banuser&fid=$fid&uid=$read[authorid]'>禁言</a>
<a href='$path/sendemail.php?action=tofriend&tid=$tid'>推荐</a>
<a href="$path/job.php?action=report&tid=$tid&pid=$read[pid]" target=_blank>报告</a>
</td></tr>
<tr class="t_infoline"><td class="line" style="padding: 5px">$db_mmcatvviewc</td></tr>
</table></td></tr></table></div>
<!--
EOT;
$key=1;$db_union[2]='';}}print <<<EOT
-->
</form>
<table width="$tablewidth" cellspacing="0" cellpadding="0" align="center">
<tr><td valign="top">$pages</td>
<td width="40%" align="right">
<div class="right">
<!--
EOT;
if($db_forumsup){print <<<EOT
-->
<a href="$path/post.php?action=reply&fid=$fid&tid=$tid"><img src="$imgpath/$stylepath/index/reply.gif"></a></div>
<div class="right">
<!--
EOT;
}if($forumset[allowsale]!=2 && $db_forumsup==3){print <<<EOT
-->
<a href='$path/post.php?fid=$fid&sale=1'><img src='$imgpath/$stylepath/index/sale.gif'></a>
<!--
EOT;
}if($db_forumsup==2 || $db_forumsup==3){print <<<EOT
-->
<a href='$path/post.php?action=vote&fid=$fid'><img src='$imgpath/$stylepath/index/post_vote.gif'></a>
<!--
EOT;
}if($db_forumsup==1 || $db_forumsup==3){print <<<EOT
-->
<a href="$path/post.php?fid=$fid"><img src="$imgpath/$stylepath/index/newtopic.gif"></a>
<!--
EOT;
}print <<<EOT
-->
</div></td></tr>
</table>
<table cellspacing=0 cellpadding=0 width='100%' align=center>
<tr><td align=center>$db_mmcatvviewb</td></tr></table>
<!--
EOT;
if($db_threadshowpost){print <<<EOT
-->
<form name="FORM" method="post" action="$path/post.php?">
<div class="spaceborder" style="width: $tablewidth">
<table cellspacing="0" cellpadding="4" width="100%" align="center">
<tr><td colspan="4" class="header"><a href="javascript:scroll(0,0)"><img src="$imgpath/$stylepath/index/top.gif" alt="顶部" align="right" /></a>快速回复主题</td></tr>
<tr>
<td width="18%" class="altbg1"> <span class="bold">选项</span></td>
<td width="6%" class="altbg2" align="center"><span class="bold">标题</span></td>
<td width="59%" class="altbg2">
<input class="button" type="text" name="atc_title" style="width: 60%" onfocus="this.value=''" value="$titletop1" tabindex="1">
<!--
EOT;
list(,,$postgd)=explode("\t",$db_gdcheck);
if($postgd){
$rawwindid=addslashes($windid);
print <<<EOT
-->
<span class="bold">认证码: </span><input type='text' maxLength=4 name='gdcode' size=7> <img src="$path/ck.php?windid=$rawwindid" align=absmiddle>
<!--
EOT;
}print <<<EOT
-->
</td>
<td width="18%" class="altbg1"><span class="bold" style="margin-left: 10%">Smilies</span></td>
</tr>
<tr class="bottom">
<td width="18%" class="altbg1" valign="top">
<input class="checkbox" type="checkbox" name="atc_hide" value="1" disabled> 隐藏此帖<br>
<input class="checkbox" type="checkbox" name="atc_requiresell" value="1" disabled> 出售此帖
<input class="button" maxlength=3 size=3 name="atc_money" value="0"><br>
<input class="checkbox" type="checkbox" name="atc_requirervrc" value="1" disabled> 加密此帖
<input class="button" maxlength=6 size=3 name="atc_rvrc" value="0"><br>
<input class="checkbox" type="checkbox" name="atc_convert" value="1" checked> 代码自动转换</a><br>
<input class="checkbox" type="checkbox" name="atc_usesign" value="1" checked> 使用个人签名<br>
</td>
<td width="6%" class="altbg2" align="center" valign="top"><span class="bold">内容</span></td>
<td width="59%" class="altbg2" valign="top">
<div style="width: 97%" class="smalltxt" align="right">
<textarea rows="7" cols="30" style="width: 100%; height: 120px; word-break: break-all" onkeydown="quickpost(event)" name='atc_content' tabindex="2"></textarea>
<input type='hidden' value='2' name='step'>
<input type='hidden' value='reply' name='action'>
<input type='hidden' value='$fid' name='fid'>
<input type='hidden' value='$tid' name='tid'>
<input type='hidden' value='$winddb[editor]' name='editor'>
<input type='hidden' value='none' name='atc_attachment'>
<br>
<div class="left">
<input class="button" type='submit' name='Submit' value="发表帖子" tabindex="3">
[完成后可按 Ctrl+Enter 发布]
</div>
[ <a href="javascript:checklength(document.FORM,'$db_postmax');">查看帖子长度</a> ]
</div>
</td>
<td width="18%" class="altbg1">
<table cellpadding="3" cellspacing="0" width="80%" align="center">
<tr align="center"><td valign="top">
<!--
EOT;
include_once(R_P.'data/bbscache/postcache.php');
foreach($face as $key=>$facedb){
print <<<EOT
-->
<a href="javascript:addsmile('[s:$key]')"><img src="$imgpath/post/smile/$facedb"></a>
<!--
EOT;
}print <<<EOT
-->
</td>
</tr>
</table>
</td></tr></table></div></form>
</CENTER>
<script language="JavaScript">
function Addtoie(value,title){
window.external.AddFavorite(value,title);
}
function Fjumpr(value,path)
{
if(value!= '') {
window.location=(path+'$path/index.php?fid='+value);
}
}
function quickpost(event)
{
if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83))
{
this.document.FORM.submit();
}
}
function checkCnt() {
cnt++;
if (cnt==1) return true;
alert('Submission Processing. Please Wait');
return false;
}
function checklength(theform,postmaxchars) {
if (postmaxchars != 0) {
message = '\\n最大的字符为'+postmaxchars+' 字节';
}else {
message = '';
}
alert('您的信息已经有 '+theform.atc_content.value.length+' 字节'+message);
}
function addsmile(NewCode) {
document.FORM.atc_content.value += ' '+NewCode+' ';
}
function CopyCode(obj){
var js = document.body.createTextRange();
js.moveToElementText(obj);
js.select();
js.execCommand("Copy");
}
</script>
<!--
EOT;
}print <<<EOT
-->
<table cellspacing=0 cellpadding=0 width='100%' align=center>
<tr><td align=center>$db_mmcatvview</td></tr></table><br>
<table cellspacing=0 cellpadding=0 width='100%' align=center>
<tr><td align=center>$db_mmcatvviewcf</td></tr></table><br>
<!--
EOT;
if($db_hitshtml){print <<<EOT
-->
<script src="$path/hits.php?tid=$tid"></script>
<!--
EOT;
}else{print <<<EOT
-->
<script src="$path/hitcache.php?tid=$tid"></script>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
?>-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -