<!--
<?php
$rsdb[iframeurl]?$isiframe[1]=" checked ":$isiframe[0]=" checked ";
if(!$nextdb[id]){$nextdb[links]=" onclick='return false;' ";$nextdb[subject]="没有了";}
if(!$backdb[id]){$backdb[links]=" onclick='return false;' ";$backdb[subject]="没有了";}
print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="$webdb[www_url]/images/yellow/news/common.css">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td width="70%" height="393" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" id="viewarticle">
        <tr> 
          <td class="head"> 
            <h3 class="L"></h3>
            <span class="TAG"><a editurl='{$Mdomain}/ajax.php?inc=bencandy&fid=$fid&id=$id&rid=$rsdb[rid]&job=do'>TOP</a></span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle"> 
            <table width="99%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td align="right" height="16"> 
                  <!--
EOT;
if($lfjuid){
print <<<EOT
-->
                  <a href="$webdb[www_url]/member/?main=$Murl/member/post.php?fid=$fid">投稿</a> 
                  <!--
EOT;
}
if(($lfjuid&&$lfjuid==$rsdb[uid])||$web_admin){
print <<<EOT
-->
                   &nbsp;<a href="$webdb[www_url]/member/?main=$Murl/member/post.php?job=edit&fid=$fid&id=$id&rid=$rid">修改</a>&nbsp;<a href="$webdb[www_url]/member/?main=$Murl/member/post.php?action=del&fid=$fid&id=$id&rid=$rsdb[rid]">删除</a> 
                  <!--
EOT;
}print <<<EOT
-->   
                </td>
              </tr>
            </table>
            <table width="99%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:8px;">
              <tr> 
                <td style="color:#990000;font-weight:bold;font-size:14px;" align="center">$rsdb[title]</td>
              </tr>
            </table><table width="99%" border="0" cellspacing="0" cellpadding="0" >
              <tr> 
                <td  align="center" style="color:#990000; ">$rsdb[subhead]</td>
              </tr>
            </table>
            <table width="99%" border="0" cellspacing="0" cellpadding="0" >
              <tr> 
                <td  align="left" style="color:red; ">$MSG</td>
              </tr>
            </table>
            
            
            <table width="99%" border="0" cellspacing="0" cellpadding="0"  style="margin-bottom:8px;border-bottom:1px solid #ccc;">
              <tr> 
                <td align="center"> [ 编辑:{$rsdb[username]} |&nbsp;时间:{$rsdb[posttime]} 
                  | 浏览:<font id="hits">{$rsdb[hits]}</font>次 | 来源:<a href="$rsdb[copyfromurl]" target="_blank">{$rsdb[copyfrom]}</a>  | 作者:{$rsdb[author]} ]
                </td>
              </tr>
            </table>
            <table class="content" width="99%" cellspacing="0" cellpadding="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr> 
                <td align="left" class="content_word"><font id="zoom" face="宋体"><span id="post1">$rsdb[content]</span></font></td>
              </tr>
            </table>      <!--
EOT;
if($webdb[ShowMoreInfo] ){
print <<<EOT
-->
 <table width="99%" border="0" cellspacing="1" cellpadding="3" id="about">
<!--               
   <tr>
    <td width="20%">所属专题:</td>
    <td width="80%"><a href="list.php?spid=$rsdb[spid]&fid=$fid" target="_blank">{$Spid_db[name][$rsdb[spid]]}</a></td>
  </tr>
  <tr>
    <td width="20%">所属地区:</td>
    <td width="80%">$rsdb[province] $rsdb[city]</td>
  </tr>
--><tr>
    <td width="20%"></td>
    <td width="80%"></td>
  </tr>
   $TempLate 
</table>
      <!--
EOT;
}
print <<<EOT
-->
            <table width="99%" border="0" cellspacing="0" cellpadding="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word;'>
              <tr> 
                <td colspan="2" align="center" class="page">$showpage</td>
              </tr><tr> 
                <td colspan="2" align="right" ><SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/bencandy.js"></SCRIPT>【<a 
            href="javascript:doZoom(18)">大</a> <a 
            href="javascript:doZoom(14)">中</a> <a 
            href="javascript:doZoom(12)">小</a>】【<a 
            href="javascript:doPrint()">打印</a>】<input type=hidden value=1 name="h1" id="h1">【<a href="javascript:ft(1)" id="Maiweb1">繁体</a>】【<a href="$webdb[www_url]/member/?main=$Murl/member/post.php?fid=$fid" target=_blank>投稿</a>】 【<a 
            href="javascript:window.close()">关闭</a>】【<a href="$Mdomain/comment.php?fid=$fid&id=$id" target=_blank>评论</a>】 
                        【<a 
            href="javascript:window.close()"></a><a 
            href="#">返回顶部</a>】</td>
              </tr>
              <tr> 
                <td width="50%" align="left">[<a href="bencandy.php?fid=$backdb[fid]&id=$backdb[id]" $backdb[links]>上一篇</a>]<a $backdb[links] href="bencandy.php?fid=$backdb[fid]&id=$backdb[id]" title="$backdb[title]">$backdb[subject]</a></td>
                <td width="50%" align="right">[<a href="bencandy.php?fid=$nextdb[fid]&id=$nextdb[id]" $nextdb[links]>下一篇</a>]<a $nextdb[links] href="bencandy.php?fid=$nextdb[fid]&id=$nextdb[id]" title="$nextdb[title]">$nextdb[subject]</a></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
      <!--
EOT;
if( $fidDB[allowcomment] ){
print <<<EOT
-->
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable" id="commentTable">
        <tr> 
          <td class="head"> 
            <h3 class="L"></h3>
            <span class="TAG">评论</span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle"> 
            <div id="comment"></div>
            <table width="99%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="16%"><span class="L">称　　呼:</span><span class="R"></span></td>
                <td width="84%"><span class="R"> 
                  <input type="text" name="textfield2" id="comment_username" value="$lfjid">
                  </span></td>
              </tr>
              <!--
EOT;
if(!$web_admin){
print <<<EOT
-->
              <tr> 
                <td width="16%"><span class="L">验 证 码:</span></td>
                <td width="84%"> 
                  <input id="yzImgNum" type="text" name="yzimg" size="8">
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write('<img border="0" name="imageField" onclick="this.src=this.src+Math.random();" src="$webdb[www_url]/do/yzimg.php?'+Math.random()+'">');
//-->
</SCRIPT>
                </td>
              </tr>
              <!--
EOT;
}
print <<<EOT
-->
              <tr> 
                <td width="16%"><span class="L">内　　容:</span></td>
                <td width="84%"><span class="R"> 
                  <textarea name="textfield" cols="50" rows="5" id="comment_content" onKeyDown="quickpost(event)"></textarea>
                  </span></td>
              </tr>
              <tr> 
                <td width="16%"> 
                  <script language="JavaScript">
<!--

getcomment("{$Mdomain}/comment_ajax.php?fid=$fid&id=$id");
cnt = 0;
function quickpost(event)
{
	if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83))
	{
		cnt++;
		if (cnt==1){
			postcomment('{$Mdomain}/comment_ajax.php?action=post&fid=$fid&id=$id')
		}else{
			alert('内容正在提交...');
		}
	}	
}
//-->
</script>
                </td>
                <td width="84%"><span class="R"> 
                  <input type="button" id="comment_submit" name="Submit" value="提交" onClick="postcomment('{$Mdomain}/comment_ajax.php?action=post&fid=$fid&id=$id','$webdb[yzImgComment]')">
                  </span></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
      <!--
EOT;
}
print <<<EOT
-->

    </td>
    <td width="30%" height="393" valign="top" class="Side" align="right"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable" id="sonSortName">
        <tr> 
          <td class="head" height="19"> 
            <h3 class="L"></h3>
            <span class="TAG">相关栏目</span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle" align="left"> 
            <!--****************************相关栏目名称开始****************************-->
            <!--
EOT;
$webdb[InfoListsortnameline]>0 || $webdb[InfoListsortnameline]=1;
$Listsortnameline=floor(94/$webdb[InfoListsortnameline]).'%';
foreach($Fid_db[$fidDB[fup]] AS $key=>$value){
print <<<EOT
-->
            <div class="showsortname" style="width:$Listsortnameline;"><a href="list.php?fid=$key">$value</a></div>
            <!--
EOT;
}print <<<EOT
-->
            <!--****************************相关栏目名称结束****************************-->
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable">
        <tr> 
          <td class="head"> 
            <h3 class="L"></h3>
            <span class="TAG">热门文章</span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle" align="left"> 
            <!--
EOT;
$array=Get_Info($type='hot',$webdb[InfoJsListRows]>0?$webdb[InfoJsListRows]:8,$webdb[InfoJsListLeng]>0?$webdb[InfoJsListLeng]:28,$fid,$mid=0);
foreach($array AS $rs){
print <<<EOT
-->
            ·<A HREF="bencandy.php?fid=$rs[fid]&id=$rs[id]">$rs[title]</a><br>
            <!--
EOT;
}print <<<EOT
-->
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable">
        <tr> 
          <td class="head"> 
            <h3 class="L"></h3>
            <span class="TAG">最新文章</span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle" align="left"> 
            <!--
EOT;
$array=Get_Info($type='new',$webdb[InfoJsListRows]>0?$webdb[InfoJsListRows]:8,$webdb[InfoJsListLeng]>0?$webdb[InfoJsListLeng]:28,$fid,$mid=0);
foreach($array AS $rs){
print <<<EOT
-->
            ·<A HREF="bencandy.php?fid=$rs[fid]&id=$rs[id]">$rs[title]</a><br>
            <!--
EOT;
}print <<<EOT
-->
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable">
        <tr> 
          <td class="head"> 
            <h3 class="L"></h3>
            <span class="TAG">推荐文章</span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle" align="left"> 
            <!--
EOT;
$array=Get_Info($type='level',$webdb[InfoJsListRows]>0?$webdb[InfoJsListRows]:8,$webdb[InfoJsListLeng]>0?$webdb[InfoJsListLeng]:28,$fid,$mid=0);
foreach($array AS $rs){
print <<<EOT
-->
            ·<A HREF="bencandy.php?fid=$rs[fid]&id=$rs[id]">$rs[title]</a><br>
            <!--
EOT;
}print <<<EOT
-->
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
