function bbs(bid,bidname,logo,bidinfo,lasttopic,lastname,lasttime,str)
{
document.write("<table width='100%' border='0' cellpadding='5' cellspacing='1' bgcolor='#999999'>  ");
document.write("  <tr>");
document.write(" <td width='30%' bgcolor='F6F6F6'> <table width='100%' border='0' cellpadding='3' cellspacing='1' bgcolor='F6F6F6'>  ");
document.write("  <tr>");
document.write("<td height='20' bgcolor='9C0001'> <div align='center'><a href=list.asp?bid="+bid+"><font color='#FFFFFF'>"+bidname+"</font></a></div></td>  ");
document.write("<td height='20' colspan='3'><div align='right'>");
document.write(" </div></td>  ");
document.write("  </tr>  ");
document.write("  <tr >");
document.write(" <td width='10%' rowspan='3'> <div align='center'><img src="+logo+" width='57' height='67'></div></td>  ");
document.write(" <td width='44%' rowspan='3' bgcolor='#FFFFFF'> <div align='left'>"+bidinfo+"");
document.write("  <br>  ");
document.write("</div></td>  ");
document.write(" <td width='6%' bgcolor='#FFFFFF'> <div align='right'>新帖： </div></td>  ");
document.write(" <td width='40%' height='20' bgcolor='#FFFFFF'> <div align='left'>"+lasttopic+"");
document.write("  <br>  ");
document.write("</div></td>  ");
document.write("  </tr>  ");
document.write("  <tr>");
document.write(" <td bgcolor='#FFFFFF'> <div align='right'>作者： </div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='left'><a href=Userlist_data.asp?username="+lastname+">"+lastname+"</a> <br>  ");
document.write("</div></td>  ");
document.write("  </tr>  ");
document.write("  <tr>");
document.write(" <td bgcolor='#FFFFFF'> <div align='right'>时间：<br>  ");
document.write("</div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='left'>"+lasttime+"</div></td>  ");
document.write("  </tr>  ");
document.write("</table></td>  ");
document.write("  </tr>  ");
document.write("</table> ");
}

function new1(id,username,title,hits,reply,wdate)
{
document.write(" <tr>");
document.write(" <td bgcolor='#FFFFFF' width='76'>");
document.write("<div align='center'><a href=Userlist_data.asp?username="+username+">"+username+"</a></div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='191'> <div align='left'><a href=show.asp?id="+id+">"+title+"</a></div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='39'>");
document.write("<div align='center'>"+hits+"</div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='41'>");
document.write("<div align='center'>"+reply+"</div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='142'>");
document.write("<div align='center'>"+wdate+"</div></td>  ");
document.write("  </tr>  ");
}
function bbslist(id,faceimg,title,username,hits,reply,ldate,lastname,gd,good,lock,vote_title)
{	
if (lastname!="") {name=lastname}
else{name="----"}
if (gd == 2) {image="<img src=images/Order_16.gif>"}
else
if (gd == 1) {image="<img src=images/top.gif>"}
else
	{image="<img src=images/Order_13.gif>"}
if	(good == 1) {image="<img src=images/Order_18.gif>"}
else
if  (lock == 1)	{image="<img src=images/Order_15.gif>"}
else
if  (vote_title != ""){image="<img src=images/Order_19.gif>"}

document.write("<tr> ");
document.write("<td bgcolor='#FFFFFF'> <div align='center'>"+image+"</div></td>  ");
document.write("<td bgcolor='#FFFFFF'> <div align='left'><img src=images/mood/"+faceimg+".gif><a href=show.asp?id="+id+">"+title+"</a></div></td>  ");
document.write("<td bgcolor='#FFFFFF'> <div align='center'><a href=Userlist_data.asp?username="+username+">"+username+"</a></div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='center'>"+hits+"/"+reply+"</div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='left'>"+ldate+"|<a href=Userlist_data.asp?username="+name+">"+name+" </a> ");
document.write(" </div></td>  ");
document.write(" </tr>");
}

 function online(name,ip,ltime)
{
	if (name!="") {name1=name}
else{name1="游客"}	  
document.write("<tr>");
document.write("<td width='186'>");
document.write("<p align='center'>"+name1+"</p>");
document.write("</td>");
document.write(" <td width='186'>");
document.write("<p align='center'>"+ip+"</p>");
document.write("</td> ");
document.write(" <td width='185'>");
document.write(" <p align='center'>"+ltime+"</p>");
document.write(" </td> </tr>  ");
}

  function user(username,reg_time,zjdlsj,topic,zw,oicq,email)
{

document.write(" <tr bgcolor='F3F3F3'> ");
document.write(" ");
document.write(" <td width='125'>  ");
document.write("<p align='center'><a href=Userlist_data.asp?username="+username+">"+username+"</a></p>");
document.write(" </td>  ");
document.write("");
document.write(" <td width='125'>");
document.write("<p align='center'>"+reg_time+"</p>");
document.write(" </td> ");
document.write("  ");
document.write(" <td width='125'> ");
document.write("<p align='center'>"+zjdlsj+"</p>");
document.write(" </td>");
document.write(" ");
document.write(" <td width='99'> ");
document.write("<p align='center'>"+topic+"</p> ");
document.write(" </td>  ");
document.write("");
document.write(" <td width='111'>");
document.write("<p align='center'>"+zw+"</p>  ");
document.write(" </td>  ");
document.write("");
document.write(" <td width='96'>");
document.write("<p align='center'>"+oicq+"</p>  ");
document.write(" </td>  ");
document.write("");
document.write(" <td width='83'>");
document.write("  ");
document.write(""+email+"");
document.write(" ");
document.write(" </td>");
document.write("  </tr> ");
}



function show_bbs(title,type,hits,page,number,username,pic,zw,topic,reg_time,email,lock,body,qianming,regtime,wdate,id,bid,gd,lock,good,fid)

{
document.write("  <tr><td colspan='2' bgcolor='DEDEDE'> <table width='100%' border='0' cellspacing='0' cellpadding='0'>  ");
document.write("  <tr>");
document.write(" <td class='listcontents3'><strong><font color='#3366FF'>帖子主题："+title+"</font></strong></td> ");
document.write(" <td><div align='right'>  ");
if (type==0) {
document.write("  本主题点击统计：<font color='#FF3300'><strong>"+hits+"</strong></font>次");
document.write("");
document.write("  "); }
if (page=="" ) {page=1}
else{page=page}
document.write("<B>"+page+"</B>栋<B>"+number+"</b>楼  ");
document.write("");
document.write("  ");
document.write("");
document.write("</div></td> ");
document.write("  </tr> ");
document.write("</table></td> ");
document.write("  </tr> ");
document.write("  <tr bgcolor='#FFFFFF'>  ");
document.write(" <td width='22%' valign='top' > <div align='center'>  ");
document.write("  <table width='150' border='0' align='center' cellpadding='0' cellspacing='0'> ");
document.write(" <tr>  ");
document.write("<td><table width='100%' border='0' cellspacing='0' cellpadding='0'> ");
document.write(" <tr>");
document.write("<td width=5 height=5><img src='images/read_left_1.gif' width='5' height='5'></td> ");
document.write("<td width='140' background='images/read_center_1.gif'></td> ");
document.write("<td width=5> <div align='right'><img src='images/read_right_1.gif' width='5' height='5'></div></td> ");
document.write(" </tr> ");
document.write("  </table> ");
document.write("  <table width='100%' border='0' cellspacing='0' cellpadding='0'> ");
document.write(" <tr>  ");
document.write("<td width=1 bgcolor='CCCCCC'></td> ");
document.write("<td height=6 bgcolor='EEEEEE'> <table width='120' border='0' align='center' cellpadding='2' cellspacing='1' bgcolor='CCCCCC'> ");
document.write(" <tr>  ");

document.write("<td bgcolor='#FFFFFF'><div align='center'>"+username+"<img src='images/Order_31.gif' width='13' height='13' align='absmiddle'>");

document.write("  </div></td> ");

document.write(" </tr> ");
document.write("  </table> ");
document.write("  <table width='100%' border='0' cellspacing='0' cellpadding='0'> ");
document.write(" <tr>  ");
document.write("<td height=7></td> ");
document.write(" </tr> ");
document.write("  </table> ");
document.write("  <div align='center'><img src=images/"+pic+" width='81' height='90'>  ");
document.write(" <table width='100%' border='0' cellspacing='0' cellpadding='0'> ");
document.write("<tr>  ");
document.write("  <td height=7></td> ");
document.write("</tr> ");
document.write(" </table> ");
document.write(" <table width='120' border='0' align='center' cellpadding='2' cellspacing='1' bgcolor='CCCCCC'> ");
document.write("<tr>  ");
document.write("  <td bgcolor='#FFFFFF'> ");
document.write(" <table width='100%' height='84' border='0' cellpadding='0' cellspacing='0'> ");
document.write("<tr>  ");
document.write("  <td width='36%'><div align='right'>职位：</div></td> ");
document.write("  <td width='64%'>"+zw+"  ");
document.write(" ");
document.write("  </td> ");
document.write("</tr> ");
document.write("<tr>  ");
document.write("  <td><div align='right'>帖数：</div></td>");
document.write("  <td>"+topic+"</td>");
document.write("</tr>");
document.write("<tr> ");
document.write("  <td><div align='right'>注册：</div></td>");
document.write("  <td>"+reg_time+"</td>  ");
document.write("</tr>  ");
document.write(" </table>  ");
document.write("  </td>  ");
document.write("</tr>  ");
document.write(" </table>  ");
document.write("  </div></td>  ");
document.write("<td width=1 bgcolor='CCCCCC'></td>  ");
document.write(" </tr>  ");
document.write("  </table>  ");
document.write("  <table width='100%' border='0' cellspacing='0' cellpadding='0'>  ");
document.write(" <tr>");
document.write("<td width=5 height=5><img src='images/read_left_2.gif' width='5' height='5'></td>  ");
document.write("<td width='200' background='images/read_center_2.gif'></td> ");
document.write("<td width=5> <div align='right'><img src='images/read_right_2.gif' width='5' height='5'></div></td> ");
document.write(" </tr> ");
document.write("  </table></td> ");
document.write(" </tr> ");
document.write("  </table> ");
document.write("</div></td> ");
document.write(" <td width='78%' valign='top' bgcolor='#FFFFFF'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> ");
document.write("  <tr>  ");
document.write(" <td><table width='100%' border='0' cellspacing='0' cellpadding='3'> ");
document.write("  <tr>  ");
document.write(" <td><div align='center'><img src='images/Order_38.gif' width='13' height='14' align='absmiddle'>  ");
document.write("  <a href='Userlist_data.asp?username="+username+"'>档案</a></div></td> ");
document.write(" <td><div align='center'><img src='images/Order_40.gif' width='13' height='11' align='absmiddle'>  ");
document.write("  <a href='mailto:"+email+"'>邮箱</a></div></td> ");
document.write(" <td><div align='center'><img src='images/Order_41.gif' width='10' height='13' align='absmiddle'>  ");
document.write("  <a href='mysms.asp?menu=write&amp;username="+username+"'>短信</a></div></td> ");
document.write(" <td><div align='center'><img src='images/Order_46.gif' width='16' height='16' align='absmiddle'>");
document.write("  <a href='#' onclick='javascript:print()' title='打印此帖子'>打印</a></div></td>  ");
document.write("  </tr>  ");
document.write("</table>  ");
document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='F5F5F5'>  ");
document.write("  <tr>");
document.write(" <td height=6></td>  ");
document.write("  </tr>  ");
document.write("</table>  ");
document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0' >  ");
document.write("  <tr>");
document.write(" <td height=1 bgcolor='CCCCCC'></td>  ");
document.write("  </tr>  ");
document.write("</table></td>  ");
document.write("  </tr>  ");
document.write("</table>  ");
document.write("<table width='100%' border='0' cellpadding='10' cellspacing='0' >  ");
document.write("  <tr>");
document.write(" <td width='100%' class='listcontents2' height='98'> <div>");
document.write("  <table width='100%' border='0' cellpadding='0' cellspacing='0' style=TABLE-LAYOUT:fixed height='100%'>  ");
document.write(" <tr>");
document.write("<td ><strong></strong>");
document.write("  <p align='left'> ");
if (lock==1){body=" <p align='center'><font color=red>该帖子已经被锁定，不能查看</font></p>"}
 else {body=body}
document.write(""+body+"");

document.write("</td>  ");
document.write(" </tr>  ");
document.write("  </table>  ");
document.write("</div></td>  ");
document.write("  </tr>  ");
document.write("  <tr>");
document.write(" <td class='listcontents2' height='29' >");
document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%'> ");
document.write("  <tr> ");
document.write(" <td width='100%'> ");
document.write("<p align='right'>"+qianming+"</td> ");
document.write("  </tr> ");
document.write("</table> ");
document.write("  <center> </center> </td> ");
document.write("  </tr> ");
document.write("</table></td> ");
document.write("  </tr> ");
document.write("  <tr>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='center'><img src='images/Order_37.gif' width='23' height='13' align='absmiddle'> ");
document.write("  "+wdate+" </div></td>");
document.write(" <td bgcolor='#FFFFFF'><table width='100%' border='0' align='right' cellpadding='2' cellspacing='0'>");
document.write("<tr> ");

document.write(" <td> <div align='center'><img src='images/Order_47.gif' width='17' height='18' align='absmiddle'> ");
document.write("  <a href='post_edit.asp?id="+id+"&bid="+bid+"'>编辑</a></div></td>  ");
document.write(" <td><div align='center'><img src='images/Order_44.gif' width='17' height='12'>");
document.write("  <a href='move.asp?id="+id+"&bid="+bid+"'>移动</a></div></td> ");
document.write(" <td> <div align='center'><img src='images/Order_48.gif' width='15' height='18' align='absmiddle'>  ");
if  (type==0)
	{
document.write("  <a href='del_post.asp?id="+id+"&amp;bid="+bid+"'>删除</a></div></td>  ");
}
else
{  
document.write("  <a href='del_post.asp?id="+id+"&amp;bid="+bid+"&fid="+fid+"&action=reply'>删除</a></div></td>  ");
	}
document.write(" ");
document.write("  ");
  if (type==0)
	{
document.write(" <td> <div align='center'><img src='images/Order_16.gif'  align='absmiddle'> ");
document.write("  ");
if (gd!=2) {abc="<a href='set.asp?id="+id+"&amp;action=gd&amp;bid="+bid+"'>总固顶</a>"}
else {abc="<a href='set.asp?id="+id+"&amp;action=nogd&amp;bid="+bid+"'>取消总固顶</a>"}
document.write(""+abc+"");

document.write("</div></td>");
document.write(" <td> <img border='0' src='images/top.gif'>");
 if (gd!=1) {cde="<a href='set.asp?id="+id+"&amp;action=gd1&amp;bid="+bid+"'>固顶</a>"}
else {cde="<a href='set.asp?id="+id+"&amp;action=nogd1&amp;bid="+bid+"'>取消固顶</a>"}
document.write("  ");
document.write(""+cde+"");
document.write(" </td>  ");
document.write(" <td> <div align='center'><img src='images/Order_50.gif' width='11' height='18' align='absmiddle'>");
if (lock!=1){lock="<a href='set.asp?id="+id+"&action=lock&bid="+bid+"'>锁定</a>"}
else {lock="<a href='set.asp?id="+id+"&action=nolock&bid="+bid+"'>恢复锁定</a>"}
document.write("  ");
document.write(""+lock+"");

document.write("</div></td>  ");
document.write(" <td> <div align='center'><img src='images/Order_51.gif' width='13' height='17' align='absmiddle'>");
document.write("  ");
if (good!=1){good="<a href='set.asp?id="+id+"&action=jh&bid="+bid+"'>精华</a>"}
else {good="<a href='set.asp?id="+id+"&action=nojh&bid="+bid+"'>取消精华</a>"} 
document.write(""+good+"");

document.write("</div></td> ");
	}
document.write("  </tr>  ");
document.write("  ");
document.write("</table></td>  ");
document.write("  </tr>  ");
}


