<!--<?php
if($action=='leaveword'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>楼主留言</th></tr>
	<tr><td width="20%" align="center">消息通知:</td><td><input type="radio" name="ifmsg" value="1" />开启 <input type="radio" name="ifmsg" value="0" checked />关闭</td></tr>
	<tr><td align="center">留言内容:</td><td>
<!--
EOT;
if($db_adminreason){print <<<EOT
-->
		<select name="" style="width:70px" size="6" multiple onchange="this.form.atc_content.value=this.value">
			<option value="">自定义</option>
			<option value="">-------</option>
			$reason_sel
		</select>
<!--
EOT;
}print <<<EOT
-->
		<textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" style="width:180px;height:92px">$rt[leaveword]</textarea>
	</td></td></tr>
</table>
<input type="hidden" name="step" value="2" />
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="pid" value="$pid" />
<ul><li style="text-align:center;padding:4px 0 5px;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form,worded);" value="提 交" /></li></ul></form>
<!--
EOT;
}elseif($action=='favor'){print <<<EOT
-->
<table cellspacing="0" cellpadding="5" width="150">
<tr><th class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span><span class="w">选择分类</span></th></tr>

<!--
EOT;
foreach($typeid as $key=>$value){
if ($key == '0') {
print <<<EOT
-->
<tr><td><a onclick="favor('0');" href="javascript:">默认分类</a></td></tr>
<!--
EOT;
} else {print <<<EOT
-->
<tr><td><a onclick="favor('$key');return false;" href="javascript:">$value</a></td></tr>
<!--
EOT;
}}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='relatetag'){print <<<EOT
-->
<table cellspacing="0" cellpadding="5" width="100%">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>标签:$tagname</th></tr><tr><td>
	<ul>
<!--
EOT;
foreach($readdb as $key=>$value){print <<<EOT
-->
	<li style="height:25px;line-height:25px;overflow:hidden;"><a href="read.php?tid=$value[tid]" class="a6">$value[subject]</a></li>
<!--
EOT;
}print <<<EOT
-->
	<li><a class="fr a6" href="job.php?action=tag&tagname=$tagname">更多内容</a></li>
	</ul></td></tr>
</table>
<!--
EOT;
}elseif($action=='draft'){print <<<EOT
-->
<table cellspacing="0" cellpadding="5" width="100%">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>草稿箱</th></tr>
<!--
EOT;
$i=($page-1)*$db_showperpage;
foreach($drdb as $key=>$value){
$i++;
print <<<EOT
-->
	<tr class="tr3 tac">
		<td width="5%">$i</td>
		<td class="tal"><textarea style="width:256px;height:35px; margin:.2em">{$value[content]}</textarea> <img style="cursor:pointer" src="$imgpath/post/c_editor/insert.gif" onclick="draft.insert(this)" alt="插入" /> <img style="cursor:pointer" src="$imgpath/post/c_editor/save.gif" onclick="draft.update(this,'$value[did]')" alt="保存" /> <img style="cursor:pointer" src="$imgpath/post/c_editor/del.gif" alt="删除" onclick="draft.del('$value[did]','$page')"/></td>
	</tr>
<!--
EOT;
}if($maxpage>1){print <<<EOT
-->
	<tr class="tr3"><td colspan="2">
<!--
EOT;
if($page>1){print <<<EOT
-->
	<a class="fl" style="cursor:pointer" onclick="draft.prev('$page');">上一页</a>
<!--
EOT;
}if($page<$maxpage){print <<<EOT
-->
	<a class="fr" style="cursor:pointer" onclick="draft.next('$page');">下一页</a>
<!--
EOT;
}print <<<EOT
-->
	</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}if($action=='login'){print <<<EOT
-->
<a href="u.php"><img src="$faceurl" onmouseout="clearTimeout(mt);read.close();"  onmouseover="mt=setTimeout('read.open(\'showface\',\'sf\',\'4\');',700);" style="float:left; margin-top:.4em;width:40px;height:40px;"/></a>

						<div style="padding:0 0 0 1em;margin:0 0 0 45px">
							<span id="sf" style="position:absolute; *margin:0 0 0 -.5em;"></span> <span class="user-infotwo" id="showface" style="display:none"> <span class="user-infoWraptwo"> <span class="co"></span>
							<a href="profile.php?action=modify&info_type=face" target="_blank">更换头像</a><br />
							UID: $winduid <br />
							$db_rvrcname: <span class="s2 f10">$userrvrc $db_rvrcunit</span><br />
							$db_moneyname: <span class="s3 f10">$winddb[money] $db_moneyunit</span><br />
							$db_creditname: <span class="s3 f10">$winddb[credit] $db_creditunit</span><br />
							<span class="gray f10"> 最后登录: {$lastlodate}<br />
							登录IP: $onlineip<br />
							</span> </span> </span>
						</div>
						<div style="margin-left:50px; line-height:180%">
						<div class="fl" style="width:100%">
							<div class="gray" style="float:left;clear:right"><span class="fl">等级:$gp_grouptitle, 帖子: $winddb[postnum], <a href="u.php?action=topic" class="link5">我的主题</a> <a href="u.php?action=post" class="link5">我的回复</a>&nbsp;</span><div class="fl" style="margin:.4em 1em 0 0"><a class="dropB" id="td_u">更多</a></div><span class="fl">
<!--
EOT;
if (SCR == 'index' && ($groupid == 3 || $groupid == 4)) {print <<<EOT
-->
								<a style="cursor:pointer" onclick="if (typeof MgMode == 'function') {mgm.showMenu(this);} else {KSHBJ=this;loadjs('js/mgmode.js');}">可视化布局</a>
<!--
EOT;
}if($db_replysitemail && getstatus($winddb['userstatus'],6)){print <<<EOT
-->
							| <a id="newrp" onclick="sendmsg('pw_ajax.php','action=newrp',this.id)" style="cursor:pointer;" class="s3">您的文章有人回复</a>
<script language="JavaScript">
function newrp() {
	ajax.guide();
	ajax.send('pw_ajax.php','action=newrp',function(){
		if (ajax.request.responseText.indexOf('<') != -1) {
			read.menu.innerHTML = ajax.request.responseText;
		} else {
			closep();
			getObj('newrp').parentNode.removeChild(getObj('newrp'));
		}
	});
}
</script>
<!--
EOT;
}print <<<EOT
-->
							</span></div>
<!--
EOT;
if($_G[allowhonor]){print <<<EOT
-->						<div class="c"></div>
							<span id="honor">
<!--
EOT;
if($winddb['honor']){print <<<EOT
-->
									{$winddb[honor]}
<!--
EOT;
}else{print <<<EOT
-->
您还没有设置个性签名
<!--
EOT;
}print <<<EOT
-->
							</span>
							<a id="sethonor" onclick="sendmsg('pw_ajax.php','action=honor',this.id)" class="gray" style="cursor:pointer"><img src="$imgpath/infobox-edit.gif" />编辑</a>
							<div class="c"></div>
<script language="JavaScript">
function honor() {
	var str = ajax.request.responseText.split("\t");
	if (str[0] == 'success') {
		getObj('honor').innerHTML = '&nbsp;' + (str[1] ? str[1] : '您还没有设置个性签名') + '&nbsp;';
	} else {
		ajax.guide();
	}
}
</script>
<!--
EOT;
}print <<<EOT
-->

						</div></div>
	<split />
<!--
EOT;
if($groupid=='guest'){print <<<EOT
-->
							<a href="$loginurl" style="color:#c3e4f5">登录</a> &nbsp;<a href="$regurl" style="color:#c3e4f5">注册</a>
<!--
EOT;
}else{print <<<EOT
-->
							<a href="u.php" style="color:#fff; font-weight:700">$windid</a> <a id="td_msg" href="message.php" target="_blank">
<!--
EOT;
if($winddb[newpm]>0 && $_G[maxmsg]>0){print <<<EOT
-->
								<img src="$imgpath/$stylepath/meg.gif" align="absmiddle"/>
<!--
EOT;
} else {print <<<EOT
-->
								<img src="$imgpath/$stylepath/meg-read.gif" align="absmiddle"/>
<!--
EOT;
}print <<<EOT
-->
							</a>
							<a href="profile.php" style="color:#c3e4f5" target="_blank">设置</a> <a href="$loginouturl" style="color:#c3e4f5">退出</a>
<!--
EOT;
}print <<<EOT
-->
	<split />
	<li id="h_index"><a href="$db_bbsurl">讨论区</a></li>
<!--
EOT;
if($winduid){
if($db_menu){
print <<<EOT
-->
	<li id="h_profile"><a id="td_profile" style="cursor:pointer;" onMouseOver="read.open('menu_profile','td_profile');">用户中心</a></li>
<!--
EOT;
}else{print <<<EOT
-->
	<li id="h_profile"><a id="td_profile" href="profile.php" target="_blank">用户中心</a></li>
<!--
EOT;
}}if($_G[allowsort]){
if($db_menu){
print <<<EOT
-->
	<li id="h_sort"><a style="cursor:pointer;" id="td_sort" onMouseOver="read.open('menu_sort','td_sort');">统计排行</a></li>
<!--
EOT;
}else{print <<<EOT
-->
	<li id="h_sort"><a id="td_sort" href="sort.php">统计排行</a></li>
<!--
EOT;
}}if($_G[allowmember]){print <<<EOT
-->
	<li id="h_member"><a href="member.php">会员</a></li>
<!--
EOT;
}if($_G['show']){print <<<EOT
-->
	<li id="h_show"><a href="show.php">展区</a></li>
<!--
EOT;
}if($db_iftag){print <<<EOT
-->
	<li id="h_job"><a href="job.php?action=taglist">标签</a></li>
<!--
EOT;
}print <<<EOT
-->
	<li id="h_push"><a href="push.php?fid=$fid">推荐</a></li>
	<li id="h_search"><a href="search.php">搜索</a></li>
	<li id="h_hack"><a style="cursor:pointer;" id="td_hack" onMouseOver="read.open('menu_hack','td_hack');">社区服务</a></li>
<!--
EOT;
foreach($db_hackdb as $key=>$hack){
if($hack[2]=='2' && file_exists(R_P."hack/$key/index.php")){print <<<EOT
-->
	<li><a href="hack.php?H_name=$hack[1]">$hack[0]</a></li>
<!--
EOT;
}}if($db_ifbookinfo){
$rawbbsname=rawurlencode($db_bbsname);
$rawbbsurl=rawurlencode($db_bbsurl);
$rawuser=rawurlencode($windid);
$pushurl="http://push.phpwind.net/book.php?tocharset=$db_charset&bbsname=$rawbbsname&bbsurl=$rawbbsurl&user=$rawuser";
if($tid){
$rawtitle=rawurlencode($subject);
print <<<EOT
-->
	<li><a href="$pushurl&tid=$tid&title=$rawtitle" target="_blank">订阅本帖更新</a></li>
<!--
EOT;
}elseif($fid){
$rawforumname=rawurlencode($forumname);
print <<<EOT
-->
	<li><a href="$pushurl&fid=$fid&forumname=$rawforumname" target="_blank">订阅本版更新</a></li>
<!--
EOT;
}else{print <<<EOT
-->
	<li><a href="$pushurl" target="_blank">订阅全站新帖</a></li>
<!--
EOT;
}}if(CkInArray($windid,$manager) || $SYSTEM['allowadmincp']){print <<<EOT
-->
	<li><a href="$db_adminfile" target="_blank">系统设置</a></li>
<!--
EOT;
}}elseif($action=='msg'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="step" value="2" />
<table cellspacing="0" cellpadding="0" width="440">
	<tbody>
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>发送短消息</th></tr>
	<tr><td width="15%" align="center">用户:</td><td><input type="text" class="input" name="pwuser" value="$reinfo[username]" /></td></tr>
	<tr><td align="center">标题:</td><td><input type="text" class="input" name="msg_title" maxlength="100" size="50" value="$subject" /></td></tr>
<!--
EOT;
if($db_gdcheck & 8){print <<<EOT
-->
	<tr><td align="center">认证码：</td><td><img src="ck.php?nowtime=1" align="absmiddle" onclick="this.src='ck.php?nowtime=' + new Date().getTime();" style="cursor:pointer;" /><br /><input class="input" type="text" name="gdcode" size="8" /></td></tr>
<!--
EOT;
}if($msgq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
	<tr><td align="center">验证问题：</td>
		<td><input class="input" type="text" name="qanswer" /><input type="hidden" name="qkey" value="$qkey" /> 问题:$db_question[$qkey] &nbsp;正确答案:{$db_answer[$qkey]}</td></tr>
<!--
EOT;
}print <<<EOT
-->
	<tr><td align="center">内容:</td><td><textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" rows="8" style="width:330px">$atc_content</textarea></td></tr>
	<tr><td colspan="2">保存到发件箱中：<input type="checkbox" name="ifsave" value="Y" /></td></tr>
	</tbody>
</table>
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="提 交" /></li></ul>
</form>
<!--
EOT;
}elseif($action=='usetool'){print <<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>道具中心</th></tr>
<!--
EOT;
foreach($tooldb as $key=>$value){print <<<EOT
-->
<tr>
	<td><a style="cursor:pointer" onclick="usetool('{$value[0][id]}')" title="{$value[0][descrip]}">{$value[0][name]}({$value[0][nums]})</a></td>
	<td>
<!--
EOT;
if($value[1][name]){print <<<EOT
-->
		<a style="cursor:pointer" onclick="usetool('{$value[1][id]}')" title="{$value[1][descrip]}">{$value[1][name]}({$value[1][nums]})</a>
<!--
EOT;
}print <<<EOT
-->
	</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='usertool'){print <<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>道具中心</th></tr>
<!--
EOT;
foreach($tooldb as $key=>$value){print <<<EOT
-->
<tr>
	<td><a style="cursor:pointer" onclick="usertool('$uid','{$value[0][id]}')" title="{$value[0][descrip]}">{$value[0][name]}({$value[0][nums]})</a></td>
	<td>
<!--
EOT;
if($value[1][name]){print <<<EOT
-->
		<a style="cursor:pointer" onclick="usertool('$uid','{$value[1][id]}')" title="{$value[1][descrip]}">{$value[1][name]}({$value[1][nums]})</a>
<!--
EOT;
}print <<<EOT
-->
	</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='extend'){
if($type=='pwcode'){print <<<EOT
-->
<div style="padding:1px;">
<!--
EOT;
foreach($code as $key=>$value){print <<<EOT
-->
<span class="button" id="wy_$value[name]" title="$value[title]" onmouseover="this.className='button buttonHover'" onmouseout="this.className='button'" onmousedown="this.className='button buttonActive'" onclick="this.className='button';upcode(this.id,'$value[param]');"><img style="width:20px;height:20px" src="$imgpath/post/c_editor/$value[icon]" /><span style="display:none">$value[descrip]</span></span>
<!--
EOT;
}print <<<EOT
-->
</div>
<!--
EOT;
}else{
if(!$setform){print <<<EOT
-->
<ul style="width:80px" class="tac f12">
<!--
EOT;
foreach($setformdb as $key=>$value){print <<<EOT
-->
<li><a href="javascript:onclick=showform('$value[id]')">$value[name]</a></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
<!--
EOT;
}else{print <<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5" id="formstyle">
<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();read.obj=null;"><img src="$imgpath/close.gif" /></span>$setform[name]</th></tr>
<!--
EOT;
foreach($setform[value] as $k=>$v){print <<<EOT
-->
<tr><td align="center">$v[0]</td><td><!--
EOT;
if($v[1]){
$s=explode(',',$v[1]);
print <<<EOT
--><select><!--
EOT;
foreach($s as $k1=>$v1){print <<<EOT
--><option value="$v1">$v1</option><!--
EOT;
}print <<<EOT
--></select><!--
EOT;
}else{print <<<EOT
--><input type="text" class="input"/><!--
EOT;
}print <<<EOT
--></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" value="提 交" onclick="insertform('$setform[name]');" align="absmiddle"> <input type="button" class="btn" value="取消" onclick="closep();read.obj=null;"></li></ul>
<!--
EOT;
}}}elseif($action=='sharelink'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>友情链接申请</th></tr>
<tr><td width="24%" align="center">站点名称</td>
<td><input size="30" title="站点名称" name="linkname" class="input" style="margin-top:6px;"></td></tr>
<tr><td align="center">站点URL</td>
<td><input size="30" title="站点URL" name="linkurl" class="input"></td></tr>
<tr><td align="center">站点说明</td>
<td><input size="30" title="站点说明" name="linkdescrip" class="input"></td></tr>
<tr><td align="center">站点LOGO</td>
<td><input size="30" title="站点LOGO" name="linklogo" class="input"></td></tr>
</table>
<input type="hidden" name="step" value="2" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" onclick="ajax.submit(this.form);" value="提 交" /></li></ul></form>
<!--
EOT;
}elseif($action=='newrp'){print <<<EOT
-->
<table width="500" cellspacing="0" cellpadding="5">
<tr><th colspan="4" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>回复提醒</th></tr>
<tr class="tr2 tac" >
	<td width="20%">版块名称</td>
	<td>标题</td>
	<td width="20%">回复时间</td>
	<td width="6%">删</td>
</tr>
<!--
EOT;
foreach($replydb as $key=>$val){print <<<EOT
-->
<tr class="tr3 tac">
	<td><a href="thread.php?fid=$val[fid]" target="_blank">$val[fname]</a></td>
	<td class="tal"><a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a></div></td>
	<td><a>$val[lastpost]</a></td>
	<td><img src="$imgpath/post/c_editor/del.gif" style="cursor:pointer" onclick="ajax.send('pw_ajax.php','action=delnewrp&tid=$val[tid]',newrp);" /></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='showface'){print <<<EOT
-->
<div style="width:272px;">
	<a class="fr" onclick="showSystemIcon($next_page);" style="cursor:pointer">下一页</a>
	<a onclick="showSystemIcon($pre_page);" style="cursor:pointer">上一页</a>
</div>
<div style="width:272px;">
<!--
EOT;
if (empty($imgname_array)) {print <<<EOT
-->
	<div style="width:272px;"><div class="tac p10">已是最后一页</div></div>
<!--
EOT;
} else {
foreach ($imgname_array as $key => $value) {print <<<EOT
-->
	<span onClick="showimage('$imgpath','$value')" class="fl face">
		<img src='$imgpath/face/$value' width="50" height="50">
	</span>
<!--
EOT;
}
}print <<<EOT
-->
</div>
<!--
EOT;
}elseif($action=='modify'){print <<<EOT
-->
<form action="ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table width="100%" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>编辑帖子 </th></tr>
	<tr><td width="15%" align="center" style="padding:5px 0">作者:</td><td>$atcdb[author]</td></tr>
	<tr><td align="center">标题:</td><td><input class="input" type="text" name="atc_title" size="65" value="$atc_title" /></td></tr>
<!--
EOT;
if(($db_gdcheck & 4) && $winddb['postnum'] < $db_postgd){print <<<EOT
-->
	<tbody><tr><td align="center">认证码：</td>
		<td><img src="ck.php?nowtime=1" align="absmiddle" onclick="this.src='ck.php?nowtime=' + new Date().getTime();" style="cursor:pointer;" /><br /><input class="input" type="text" name="gdcode" size="6" tabindex="2" maxLength="4" /></td></tr></tbody>
<!--
EOT;
}if($winddb['postnum'] < $postq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
	<tbody><tr><td align="center">验证问题：</td>
		<td><input class="input" type="text" name="qanswer" /><input type="hidden" name="qkey" value="$qkey" /> 问题:$db_question[$qkey] &nbsp;正确答案:{$db_answer[$qkey]}</td></tr></tbody>
<!--
EOT;
}print <<<EOT
-->
	<tr><td align="center">内容:</td><td>
		<textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" style="width:420px;height:135px">$atc_content</textarea>
	</td></td></tr>
</table>
<input type="hidden" name="step" value="2" />
<input type="hidden" name="fid" value="$fid" />
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="pid" value="$pid" />
<input type="hidden" value="$article" name="article" />
<input type="hidden" value="1" name="atc_convert" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="bt" value="进入高级模式" onclick="window.location.href='post.php?action=modify&fid=$fid&tid=$tid&pid=$pid&article=$article'" /> <input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form,edited);" value=" 提 交 " /></li></ul></form>
<!--
EOT;
}elseif($action=='quote'){print <<<EOT
-->
<div style="width:450px">
<form action="post.php?" method="post" name="quoteFORM">
<input type="hidden" name="verify" value="$verifyhash" />
<table cellspacing="0" cellpadding="5" width="100%">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>引用帖子 </th></tr>
	<tr><td width="15%" align="center" style="padding:5px 0">标题:</td><td><input class="input" type="text" name="atc_title" value="$atc_title" size="60" /></td></tr>
<!--
EOT;
if(($db_gdcheck & 4) && $winddb['postnum'] < $db_postgd){print <<<EOT
-->
	<tbody><tr><td align="center">认证码：</td>
		<td><img src="ck.php?nowtime=1" align="absmiddle" onclick="this.src='ck.php?nowtime=' + new Date().getTime();" style="cursor:pointer;" /><br /><input class="input" type="text" name="gdcode" size="6" tabindex="2" maxLength="4" /></td></tr></tbody>
<!--
EOT;
}if($winddb['postnum'] < $postq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
	<tbody><tr><td align="center">验证问题：</td>
		<td><input class="input" type="text" name="qanswer" /><input type="hidden" name="qkey" value="$qkey" /> 问题:$db_question[$qkey] &nbsp;正确答案:{$db_answer[$qkey]}</td></tr></tbody>
<!--
EOT;
}print <<<EOT
-->
	<tr><td align="center">内容:</td><td>
		<textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" style="width:96%;height:135px">$atc_content</textarea>
	</td></td></tr>
</table>
<input type="hidden" value="2" name="step" />
<input type="hidden" value="$pid" name="pid" />
<input type="hidden" value="$action" name="action" />
<input type="hidden" value="$fid" name="fid" />
<input type="hidden" value="$tid" name="tid" />
<input type="hidden" value="$article" name="article" />
<input type="hidden" value="1" name="atc_usesign" />
<input type="hidden" value="1" name="atc_convert" />
<input type="hidden" value="cn0zz" name="_hexie" id="_hexiequote" />
<ul><li style="text-align:center;padding:4px 0;"><input type="submit" name="ajaxsubmit" class="btn" value=" 提 交 " /> <input onclick="window.location.href='post.php?action=quote&fid=$fid&tid=$tid&pid=$pid&article=$article&page=$page'" type="button" class="btn" value="进入高级模式" /></li></ul></form>
</div>
<script language="JavaScript">
<!--
EOT;
$tmpVerify = GetVerify($onlineip.$GLOBALS['winddb']['regdate'].$fid.$tid);print <<<EOT
-->
setTimeout(function(){getObj('_hexiequote').value='$tmpVerify';},500);
</script>
<!--
EOT;
}elseif($action=='honor'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="step" value="3" />
<table width="250" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>个性签名编辑</th></tr>
	<tr><td align="center"><textarea name="content" style="width:95%;height:60px">{$winddb[honor]}</textarea></td></tr>
</table><ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" onclick="ajax.submit(this.form,honor);" value=" 提 交 " /></li></ul></form>
<!--
EOT;
}elseif($action=='readlog'){print <<<EOT
-->
<table cellspacing="0" cellpadding="5">
<tr><th colspan="4" class="h"><div class="cc"><span class="w fl">最近浏览的帖子</span><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span></div></th></tr>
<!--
EOT;
foreach($readb as $key=>$val){
$i=$key+1;
print <<<EOT
-->
<tr class="tr3 tac">
	<td>$i</td>
	<td class="tal"><a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a></div></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='threadlog'){print <<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th colspan="4" class="h">
<div class="cc"><span class="w fl">最近浏览的版块</span><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span></div></th></tr>
<!--
EOT;
foreach($threaddb as $key=>$value){print <<<EOT
-->
<tr><td><a href="thread.php?fid=$key">$value</a></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='mgmode'){print <<<EOT
-->
<div id="mgmode">
<div class="menu-post">
<div class="menu-b">
	<table width="120" cellspacing="0" cellpadding="0">
		<tr><th class="h"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>可视化布局</th></tr>
<!--
EOT;
if($rightset['setforum']){print <<<EOT
-->
		<tr><td><a style="cursor:pointer" onclick="mf = new mgm.forder();" title="可视化修改版块布局">版块排序</a></td></tr>
		<tr><td><a style="cursor:pointer" onclick="mf = new mgm.fsetname();" title="点击版块名称进行修改">版块名称修改</a></td></tr>
<!--
EOT;
}if($rightset['setstyles']){print <<<EOT
-->
		<tr><td><a style="cursor:pointer" onclick="mf = new mgm.style();" title="前台可视化修改风格">风格设置</a></td></tr>
<!--
EOT;
}print <<<EOT
-->
	</table>
</div>
</div>
</div>
<!--
EOT;
}elseif($action=='setstyle'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table id="mgmode" width="100%" cellspacing="0" cellpadding="0">
	<tr><th class="h" colspan="3"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>风格设置</th></tr>
	<tr>
		<td valign="top">
			<table>
			<tr class="tr2">
				<td colspan="2" style="padding:0 1em"><b>整体风格设置</b><tr>
			</tr>
			<tr>
				<td width="50%" style="padding:0 1em">表格宽度</td>
				<td><input class="input" type="text" name="set[tablewidth]" value="$tablewidth" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">头部和尾部表格宽度</td>
				<td><input class="input" type="text" name="set[mtablewidth]" value="$mtablewidth" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">全局背景颜色</td>
				<td><input class="input" type="text" name="set[bgcolor]" value="$bgcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">全局链接颜色</td>
				<td><input class="input" type="text" name="set[linkcolor]" value="$linkcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格外边框颜色</td>
				<td><input class="input" type="text" name="set[tablecolor]" value="$tablecolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格内边框颜色</td>
				<td><input class="input" type="text" name="set[tdcolor]" value="$tdcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			</table>
		</td>
		<td colspan="2">
			<table>
			<tr class="tr2"><td colspan="2" style="padding:0 1em"><b>表格样式颜色设置</b></td></tr>
			<tr>
				<td style="padding:0 1em">表格标题栏颜色</td>
				<td><input class="input" type="text" name="set[headcolor]" value="$headcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格标题栏下边框颜色</td>
				<td><input class="input" type="text" name="set[headborder]" value="$headborder" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">标题栏主要字体链接颜色</td>
				<td><input class="input" type="text" name="set[headfontone]" value="$headfontone" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">标题栏次要字体链接颜色</td>
				<td><input class="input" type="text" name="set[headfonttwo]" value="$headfonttwo" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格副标题栏颜色</td>
				<td><input class="input" type="text" name="set[cbgcolor]" value="$cbgcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格副标题栏下边框颜色</td>
				<td><input class="input" type="text" name="set[cbgborder]" value="$cbgborder" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格副标题栏字体颜色</td>
				<td><input class="input" type="text" name="set[cbgfont]" value="$cbgfont" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">论坛列表颜色一</td>
				<td><input class="input" type="text" name="set[forumcolorone]" value="$forumcolorone" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">论坛列表颜色二</td>
				<td><input class="input" type="text" name="set[forumcolortwo]" value="$forumcolortwo" onblur="mf.setcss(this);" /></td>
			</tr>
			</table>
		</td>
	</tr>
</table>
<input type="hidden" name="step" value="2" />
<input type="hidden" name="setskin" value="$skin" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form,mf.submit);" value="提 交" /></li></ul></form>
<!--
EOT;
}elseif($action=='addfriend'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="job" value="add" />
<input type="hidden" name="step" value="2" />
<input type="hidden" name="touid" value="$friend[uid]" />
<table id="mgmode" width="300" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>好友验证信息</th></tr>
	<tr class="tr3">
		<td colspan="2">您确实要加{$friend[username]}为好友吗？</td>
	</tr>
	<tr class="tr3 vt">
		<td width="25%" class="tac"><img src="$faceurl" class="img-50" ><p>$friend[username]</p></td>
		<td>
<!--
EOT;
if ($friendcheck == 1){print <<<EOT
-->
			发送请求信息 <br />
			<input class="input" type="text" name="checkmsg" size="30" /><br />
<!--
EOT;
}print <<<EOT
-->
			<div style="padding:10px 0;"><select name="friendtype" id="friendtype">
				<option value="0">不分组</option>
<!--
EOT;
foreach ($types as $key => $value){print <<<EOT
-->
				<option value="$key">$value</option>
<!--
EOT;
}print <<<EOT
-->
			</select> <a style="cursor:pointer;" onclick="addFriendType();">增加分组</a></div>
			<span style="display:none;" id="typeinputbox"><input name="typename" id="typename" class="input"> <input class="bt" type="button" onclick="submitAddFriendType()" name="addtypebutton" value="添加"></span>
		</td>
	</tr>
</table>
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="提 交" /></li></ul>
</form>
<script language="JavaScript">

function addFriendType(){
	var typeinputbox = getObj('typeinputbox');
	if (typeinputbox.style.display == 'none') {
		typeinputbox.style.display = '';
	} else {
		typeinputbox.style.display = 'none';
	}
}

function submitAddFriendType(){
	var typeinputbox = getObj('typeinputbox');
	var typenamebox = getObj('typename');
	var typename = typenamebox.value;
	ajax.send('pw_ajax.php?action=addfriendtype&','typename='+typename,function(){
		var rText = ajax.request.responseText.split('\t');
		if (rText[0] == 'success') {
			var friendtype = getObj('friendtype');
			friendtype.options.add(new Option(rText[2],rText[1]))
			var select_length = friendtype.options.length;
			friendtype.options[select_length-1].selected = 'selected';
			typenamebox.value = '';
			typeinputbox.style.display = 'none';
		} else {
			showDialog('error','添加分组出错！');
		}
	});
}
</script>
<!--
EOT;
}elseif ($action == 'pushto') {print<<<EOT
-->
	<table width="100%" cellspacing="0" cellpadding="5">
		<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>推送位置选择</th></tr>
<!--
EOT;
$id=0;
foreach ($pushs as $key => $value){
if($id == '0'){print<<<EOT
-->
		<tr>
<!--
EOT;
}$id++;print<<<EOT
-->
		<td><a onclick="return sendurl(this,1,'push')" href="mawhole.php?action=push&pushto=$value[id]&fid=$fid&seltid=$seltid" >$value[name]</a></td>
<!--
EOT;
if($id == 2){$id=0;print<<<EOT
-->
		</tr>
<!--
EOT;
}}print<<<EOT
-->
	</table>
<!--
EOT;
}elseif ($action == 'debate') {print<<<EOT
-->
<form action="pw_ajax.php?action=debate" method="post" onsubmit="return false;">
<table width="100%" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>结束辩论，裁判点评</th></tr>
	<tr>
		<td>辩论结果:</td>
		<td>
<!--
EOT;
if($debate[judge]==1){print<<<EOT
-->
正方胜(支持数: $debate[obvote] 辩手:$debate[obposts])
<!--
EOT;
}elseif($debate[judge]==2){print<<<EOT
-->
平局
<!--
EOT;
}elseif($debate[judge]==3){print<<<EOT
-->
反方胜(支持数: $debate[revote] 辩手:$debate[reposts])
<!--
EOT;
}else{print<<<EOT
-->
			<input class="input" type="radio" name="judge" value="1" />正方胜(支持数:$debate[obvote]&nbsp;辩手:$debate[obposts])<br />
			<input class="input" type="radio" name="judge" value="2" checked/>平局<br />
			<input class="input" type="radio" name="judge" value="3" />反方胜(支持数:$debate[revote]&nbsp;辩手:$debate[reposts])
<!--
EOT;
}print<<<EOT
-->
		</td>
	</tr>
	<tr>
		<td>最佳辩手:</td>
		<td>
<!--
EOT;
if($debate[debater]){print<<<EOT
-->
			<a href="u.php?username=$debate[debater]" target="_blank">$debate[debater]</a>
<!--
EOT;
}else{print<<<EOT
-->
			<input class="input" id="debater" type="text" name="debater">
			<select onChange="if(this.value)getObj('debater').value=this.value;">
			<option value="">推荐辩手(支持数)</option>
<!--
EOT;
foreach($debater as $val){print<<<EOT
-->
			<option value="$val[username]">$val[username]($val[vote])</option>
<!--
EOT;
}print<<<EOT
-->
			</select>
<!--
EOT;
}print<<<EOT
-->
		</td>
	</tr>
	<tr>
		<td>裁判点评:</td>
		<td><textarea class="input" name="umpirepoint" rows="5" cols="40">$debate[umpirepoint]</textarea></td>
	</tr>
</table>
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="step" value="2" />
<input type="hidden" name="do" value="judge" />
<input type="hidden" name="tid" value="$tid" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="提 交" /></li></ul>
</form>
<!--
EOT;
} elseif ($action == 'readmessage') {print <<<EOT
-->
<table cellspacing="0" cellpadding="5" width="450px">
	<tbody>
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>
<!--
EOT;
if ($type == 'personal') {print <<<EOT
-->
	个人短消息
<!--
EOT;
} elseif ($type == 'system') {print <<<EOT
-->
	系统短消息
<!--
EOT;
} elseif ($type == 'public') {print <<<EOT
-->
	群发短消息
<!--
EOT;
}print <<<EOT
-->
	</th></tr>
	<tr><td width="20%">发件人:</td><td> $msginfo[username]</td></tr>
	<tr><td>标题:</td><td> $msginfo[title]</td></tr>
	<tr><td>时间:</td><td> $msginfo[mdate]</td></tr>
	<tr><td>内容:</td><td> $msginfo[content]</td></tr>
	<tr><td>选项: </td><td>
<!--
EOT;
if ($type == 'personal') {print <<<EOT
-->

	[<a href="message.php?action=chatlog&withuid=$msginfo[withuid]" target="_blank">通信记录</a>]
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=unread&mid=$msginfo[mid]')">标记未读</a>]
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=msg&remid=$msginfo[mid]')">回复</a>]
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=msg&transmit=$msginfo[mid]')">转发</a>]
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=delmessage&type=$type&delid=$msginfo[mid]')">删除</a>]

<!--
EOT;
} elseif ($type == 'system'){print <<<EOT
-->
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=delmessage&type=$type&delid=$msginfo[mid]')">删除</a>]
<!--
EOT;
} elseif ($type == 'public'){print <<<EOT
-->
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=delmessage&type=$type&delid=$msginfo[mid]')">删除</a>]
<!--
EOT;
}print <<<EOT
-->
	</td></tr>
	</td></tr>
	</tbody>
</table>
<!--
EOT;
} elseif ($action == 'report') {print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table width="380" cellspacing="0" cellpadding="0">
<tr><th class="h fn" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>$ch_type 举报</th></tr>
<tr><td colspan="2">
感谢您能一起协助我们管理站点，我们会尽快处理您的举报内容！
</td></tr>
<tr><td align="center" width="60">理由：</td>
<td><textarea id="reason" name="reason" rows="6" style="width:300px"></textarea>
</td></tr>
</table>
<input type="hidden" name="step" value="2" />
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="pid" value="$pid" />
<input type="hidden" name="type" value="$type" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" onclick="ajax.submit(this.form);" value="提 交" /></li></ul>
</form>
<!--
EOT;
} elseif ($action == 'showfriends') {print <<<EOT
-->
<form action="pw_ajax.php?action=showfriends&" onSubmit="return false;" method="POST">
	<input type="hidden" name="step" value="2" />
	<div class="fri-list pr">
		<div class="fri-top" style="cursor:move" onmousedown="read.move(event);">
			<span class="fr">
				<select name="friendtype" onchange="showFriendList(this.value);">
					<option value="-1">全部好友</option>
<!--
EOT;
foreach ($friendtype as $key => $value) {print <<<EOT
-->
					<option value="$key">$value[name]</option>
<!--
EOT;
}print <<<EOT
-->
				</select>
			</span>
			<span class="button2"><span><button type="submit" name="Submit" onclick="CheckAll(this.form)">全选</button></span></span>
			<span class="button"><span><button type="submit" name="Submit" onclick="ajax.submit(this.form,$recall)">确定</button></span></span>
			<span class="button2"><span><button type="button" onclick="closep();">取消</button></span></span>
		</div>
	<div class="fri-bot" id="friendlist">
	<ul class="list-wid cc listC">
<!--
EOT;
foreach ($friendtype as $key => $value) {print <<<EOT
-->
						<div id="ftid_$value[ftid]">
<!--
EOT;
foreach ($frienddb[$value[ftid]] as $k => $v) {print <<<EOT
-->
							<li><input type="checkbox" name="selid[]" value="$v[uid]"> $v[username]</li>
<!--
EOT;
}print <<<EOT
-->
						</div>
<!--
EOT;
}print <<<EOT
-->
	</ul>
</div>
</div>
</form>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript" src="js/core/friendlist.js"></SCRIPT>

<!--
EOT;
}elseif ($action == 'showcard') {
foreach($usercachedb as $key => $info){
print <<<EOT
-->
<div class="pop-card" id="cardmenu_$info[uid]" onmouseover="clearTimeout(userCard.t2);" onmouseout="movecard(event,this.id);">
	<div class="pop-card-bg">
		<div class="pop-card-info">
			<dl class="cc">
				<dt><img src="$info[icon]" class="card-face" /></dt>
				<dd>
					<p class="card-title cc"><a href="u.php?action=show&uid=$info[uid]" class="fl b">$info[username]</a>
<!--
EOT;
if($db_showonline && checkOnline($info['thisvisit'])){print <<<EOT
-->
					<span class="card-online" title="在线">在线</span>
<!--
EOT;
}else{print<<<EOT
-->
					<span class="card-offline" title="离线">离线</span>
<!--
EOT;
}if(isset($db_hackdb['blog'][2]) && $db_hackdb['blog'][2] && $bg_ifopen){print <<<EOT
-->
					<a href="$bg_blogurl/blog.php?bbsuid=$info[uid]" target="_blank" class="card-blog" title="个人博客">个人博客</a>
<!--
EOT;
}print <<<EOT
-->
					<!--<a href="u.php?action=show&uid=$info[uid]" class="card-profile" title="个人资料">个人资料</a>-->
<!--
EOT;
if($groupid!='guest' && isset($db_hackdb['toolcenter']) && $db_toolifopen){print <<<EOT
-->
					<a href="javascript:;" class="card-magic" title="使用道具" onclick="sendmsg('pw_ajax.php?action=usertool&uid=$info[uid]','','sf_$info[lou]')" style="cursor:pointer">使用道具</a>
<!--
EOT;
}if($info['oicq']){print <<<EOT
-->
					<a title="QQ:$info[oicq]" href="http://wpa.qq.com/msgrd?V=1&Uin=$info[oicq]&Site=$db_bbsname&Menu=yes" target="_blank" class="card-qq">QQ</a>
<!--
EOT;
}if ($info['aliww']) {print <<<EOT
-->
					<a title="阿里旺旺:$info[aliww]" href="http://amos.im.alisoft.com/msg.aw?uid=$info[aliww]&site=cntaobao" target="_blank" class="card-ww">淘宝旺旺</a>
<!--
EOT;
}if($winduid){print <<<EOT
-->
					<a href="javascript:;" onclick="sendmsg('pw_ajax.php?action=msg&touid=$info[uid]');" class="card-mail" title="发送消息">发送消息</a>
<!--
EOT;
}if(!$info[ismyfriend] && $winduid){print <<<EOT
-->
					<a href="javascript:;" class="card-fri" onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$info[uid]')" title="加为好友">加为好友</a>
<!--
EOT;
}elseif($info[ismyfriend]){print <<<EOT
-->
<script language="JavaScript" src="js/app_global.js"></script>
					<a href="javascript:;" class="card-fri-out" onclick="pwConfirm('是否确认解除',this,function(){delFriend('$info[uid]')});" title="解除好友">解除好友</a>
<!--
EOT;
}print <<<EOT
-->
					</p>

					<p class="gray2"><span class="mr20">级别：{$info[memtitle]}</span>
<!--
EOT;
if($info[systitle]){print <<<EOT
-->
						身份：{$info[systitle]}
<!--
EOT;
}print <<<EOT
-->
					</p>
					<p class="card-write">
<!--
EOT;
if($info[honor]){
print<<<EOT
-->
						<span class="mr20">$info[honor]</span><!--<span class="gray2">- $write[posttime]</span>-->
<!--
EOT;
}else{print<<<EOT
-->
						<span class="mr20">暂无签名</span>
<!--
EOT;
}print<<<EOT
-->
					</p>
				</dd>
			</dl>
		</div>
		<div class="card-app">
			<div class="p10">
				<p><span class="mr20">他的朋友：<a href="u.php?action=show&uid=$info[uid]">{$info[f_num]}</a></span>&nbsp;&nbsp;&nbsp;
				<span class="mr20">来访：<a href="u.php?action=show&uid=$info[uid]">{$info[visits]}</a></span>&nbsp;&nbsp;&nbsp;
				<span>访问过：<a href="u.php?action=show&uid=$info[uid]">{$info[tovisits]}</a></span></p>
				<p class="mt10 b">

<!--
EOT;
if($info[appcount][owrite]){print <<<EOT
-->
					<a href="mode.php?m=o&space=1&u=$info[uid]&q=write">记录</a><span class="card-new">new</span>
<!--
EOT;
}else{print <<<EOT
-->
					<a href="mode.php?m=o&space=1&u=$info[uid]&q=write">记录</a>
<!--
EOT;
}if($info[appcount][diary]){print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=diary">日志</a><span class="card-new">new</span>
<!--
EOT;
}else{print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=diary">日志</a>
<!--
EOT;
}if($info[appcount][photo]){print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=photos">相册</a><span class="card-new">new</span>
<!--
EOT;
}else{print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=photos">相册</a>
<!--
EOT;
}if($info[appcount][share]){print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=share">分享</a><span class="card-new">new</span>
<!--
EOT;
}else{print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=share">分享</a>
<!--
EOT;
}if($info[appcount][topic]){print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=article">帖子</a><span class="card-new">new</span>
<!--
EOT;
}else{print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=article">帖子</a>
<!--
EOT;
}if($info[appcount][group]){print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=groups">群组</a><span class="card-new">new</span>
<!--
EOT;
}else{print <<<EOT
-->
					&nbsp;&nbsp;<a href="mode.php?m=o&space=1&u=$info[uid]&q=groups">群组</a>
<!--
EOT;
}print <<<EOT
-->
				</p>
			</div>
			<div class="card-app-bot cc">
<!--
EOT;
if($info['app']){print<<<EOT
-->
				<span id="t_typedb" class="card-bot-icon">
<!--
EOT;
$i = 1;
foreach($info['app'] as $val){
$i++;
if ($val[ifshow]) {
$appurl = $db_appbbs ? "apps.php?id=$val[appid]" : "mode.php?m=o&q=app&id=$val[appid]";
print <<<EOT
-->
				<a href="$appurl"><img src="{$db_server_url}/images/icon/s{$val[appid]}.png" title="{$appsdb[$val[appid]][name]}" align="absmiddle" /></a>
<!--
EOT;
}else{print<<<EOT
-->
				<a href="$appurl"><img src="{$db_server_url}/images/icon/s_{$val[appid]}.png" title="{$appsdb[$val[appid]][name]}" align="absmiddle" /></a>
<!--
EOT;
}}print<<<EOT
-->
				</span>
<!--
EOT;
if($i > $db_maxnum){print<<<EOT
-->
				<span class="card-right-down fr" title="下一页" onclick="showTypeTab($db_maxnum,$db_maxnum,'a');">下一页</span>
				<span class="card-left-down fr" title="上一页" onclick="showTypeTab(-$db_maxnum,$db_maxnum,'a');" >上一页</span>
<!--
EOT;
}}print<<<EOT
-->
			</div>
		</div>
<!--
EOT;
if($info['appinfo']){print<<<EOT
-->
		<div class="card-content p10" style="/*display:none;*/">
<!--
EOT;
$i=0;
foreach($info['appinfo'] as $k => $value){
$k && $k = get_date($k);
if($i>=2) continue;
$i++;
if($value[type]=='topic'){print<<<EOT
-->
			<p class="card-title">帖子：<a href="read.php?tid=$value[id]" target="_blank" class="mr20">{$value[value][subject]}</a><span class="gray2">$k</span></p>
			<p>{$value[value][content]}</p>
<!--
EOT;
if($value[attimages]){print<<<EOT
-->
			<ul class="card-photo cc">
<!--
EOT;
foreach ($value[attimages] as $v) {print<<<EOT
-->
				<li><a href="read.php?tid=$value[id]" target="_blank"><img src="$v" /></a></li>
<!--
EOT;
}print<<<EOT
-->
			</ul>
<!--
EOT;
}print<<<EOT
-->
			<div class="card-cont-hr"></div>
<!--
EOT;
}elseif($value[type]=='diary'){print<<<EOT
-->
			<p class="card-title">日志：<a href="mode.php?m=o&q=diary&did=$value[id]&u=$info[uid]&space=1" target="_blank" class="mr20">{$value[value][subject]}</a><span class="gray2">$k</span></p>
			<p>{$value[value][content]}</p>
<!--
EOT;
if($value[attimages]){print<<<EOT
-->
			<ul class="card-photo cc">
<!--
EOT;
foreach ($value[attimages] as $v) {print<<<EOT
-->
				<li><a href="mode.php?m=o&q=diary&did=$value[id]&u=$info[uid]&space=1" target="_blank"><img src="$v" /></a></li>
<!--
EOT;
}print<<<EOT
-->
			</ul>
<!--
EOT;
}print<<<EOT
-->
			<div class="card-cont-hr"></div>
<!--
EOT;
}elseif($value[type]=='photos'){print<<<EOT
-->
			<p class="card-title">照片：<a href="mode.php?m=o&q=photos&a=album&aid={$value[value][aid]}&u=$info[uid]&space=1" class="mr20">《{$value[value][aname]}》</a><span class="gray2">$k</span></p>
			<ul class="card-photo cc">
<!--
EOT;
foreach($value[value][photo] as $photo){print<<<EOT
-->
				<li><a href="mode.php?m=o&q=photos&space=1&q=photos&a=view&pid=$photo[pid]&u=$info[uid]"><img src="$photo[path]" /></a></li>
<!--
EOT;
}print<<<EOT
-->
			</ul>
			<div class="card-cont-hr"></div>
<!--
EOT;
}elseif($value[type]=='write'){print<<<EOT
-->
			<span class="mr20">记录：{$value[value][content]}</span><span class="gray2">$k</span>
			<div class="card-cont-hr"></div>
<!--
EOT;
}}print<<<EOT
-->
		</div>
<!--
EOT;
}print<<<EOT
-->
	</div>
</div>
<!--
EOT;
}print <<<EOT
-->
<script language="javascript">
function showTypeTab(p,n,tag){
	var o = getObj('t_typedb');
	var f = o.getElementsByTagName(tag);
	var s = 0;
	for(i=0;i<f.length;i++)
		if(f[i].style.display != "none"){s = i;break;}
	s += p;
	if(s<0 || s>f.length)return;
	for(i=0;i<f.length;i++){
		if(i>=s && i<s+n){
			f[i].style.display = "inline";
		} else{
			f[i].style.display = "none";
		}
	}
	return;
}
function delFriend(u){
	ajax.send('mode.php?m=o&q=ajax&a=delfriend&u='+u,'',function(){
		var rText = ajax.request.responseText.split('|');
		if (rText[0] == 'success') {
			showDialog('success','操作成功!',1);
		} else {
			ajax.guide();
		}
	});
}

if (typeof(HTMLElement) != "undefined") {
	HTMLElement.prototype.contains = function(obj) {
		while (obj!=null && typeof(obj.tagName) != "undefind"){
			if (obj == this)  return true;
			obj = obj.parentNode;
		}
		return false;
	};
}

function movecard(theEvent, id){
	if (theEvent){
		if (is_ie) {
			if (document.getElementById(id).contains(event.toElement)) {
				return false;
			}
		} else {
			if (document.getElementById(id).contains(theEvent.relatedTarget)) {
				return false;
			}
		}
	}
	try{userCard.menu.close();}catch(e){}
}
verifyhash = "$verifyhash";
</script>
<!--
EOT;
}elseif($action == 'asearch'){
if($modelid){print<<<EOT
-->
<form action="thread.php?fid=$fid&modelid=$modelid" method="post">
<!--
EOT;
}elseif($pcid){print<<<EOT
-->
<form action="thread.php?fid=$fid&pcid=$pcid" method="post">
<!--
EOT;
}print<<<EOT
-->
<input type="hidden" name="topicsearch" value="1">
<table width="350px" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>高级搜索</th></tr>

<!--
EOT;
$vieworder_mark = 0;
foreach($asearchdb as $key => $value){
if($vieworder_mark != 0 && $vieworder_mark != $value['vieworder']){print<<<EOT
-->
			</td></tr>
<!--
EOT;
}if ($value['vieworder'] == 0) {
print<<<EOT
-->
					<tr><td width="30%">$value[name1]：</td><td>$value[searchhtml]$value[name2]</td></tr>
<!--
EOT;
}else{
if($vieworder_mark != $value['vieworder']){print<<<EOT
-->
					<tr><td width="30%">$value[name1]：</td><td>$value[searchhtml]$value[name2]
<!--
EOT;
}else{print<<<EOT
-->
						$value[name1]$value[searchhtml]$value[name2]
<!--
EOT;
}}
$vieworder_mark = $value['vieworder'];
}if($vieworder_mark != 0){print<<<EOT
-->
				</td></tr>
<!--
EOT;
}print<<<EOT
-->
				<tr><td colspan="2"><center><input type="submit" name="submint" value="搜索"></center></td></tr>
</table>
</form>
<!--
EOT;
}elseif($action == 'pcjoin'){print<<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="tid" value="$tid">
<!--
EOT;
if($thelast != '1'){
if($isU){
if($fieldvalue['limitnum']){
	$limitnum = "还剩{$morenum}";
}else{
	$limitnum = '无限制';
}
if ($pcid == '2') {
	$signjoin = '活动报名';
} elseif ($pcid == '1') {
	$signjoin = '团购报名';
}
print<<<EOT
-->
<input type="hidden" name="step" value="1">
<input type="hidden" name="pcid" value="$pcid">
<table width="340px" cellspacing="0" cellpadding="5">
	<tr>
		<th class="h" colspan="3" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>$signjoin</th>
	</tr>
	<tr><td colspan="2"><span class="gray">说明：带<font color="#FF0000">*</font>为必填选项</span></td></tr>
<!--
EOT;
if($pcid == '2'){print<<<EOT
-->
	<tr><td width="32%">报名人数：<span style="color:red">*</span></td><td><input type="text" name="nums" class="input"> 人({$limitnum})</td></tr>
<!--
EOT;
}elseif($pcid == '1'){print<<<EOT
-->
	<tr><td>购买数量：<span style="color:red">*</span></td><td><input type="text" name="nums" class="input"> 个({$limitnum})</td></tr>
<!--
EOT;
}print<<<EOT
-->
	<tr><td>真实姓名：<span style="color:red">*</span></td><td><input type="text" name="name" class="input"></td></tr>
	<tr><td>手机：<span style="color:red">*</span></td><td><input type="text" name="mobile" class="input"></td></tr>
	<tr><td>电话：</td><td><input type="text" name="phone" class="input"></td></tr>
	<tr><td>地址：</td><td><input type="text" name="address" class="input"></td></tr>
<!--
EOT;
if($pcid == '1'){print<<<EOT
-->
	<tr><td>邮编：</td><td><input type="text" name="zip" class="input"></td></tr>
	<tr><td>给卖家留言：</td><td><textarea name="message" style="width:200px;height:45px;" class="input"></textarea>
	<br />可选项，可以告诉卖家你对商品的特殊要求，如尺寸、颜色等</td></tr>
<!--
EOT;
}print<<<EOT
-->
	<tr><td>匿名：</td><td><input type="checkbox" name="extra" value="1">&nbsp;(仅发起人可见)</td></tr>
</table>
<center>
<!--
EOT;
if($payway==1){print<<<EOT
-->
	<input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="下一步" />
<!--
EOT;
}elseif($payway==2){print<<<EOT
-->
	<input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="确认报名" />
<!--
EOT;
}print<<<EOT
-->
</center>
<!--
EOT;
}else{print<<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
	<tr>
		<th class="h" colspan="3" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>报名</th>
	</tr>
	<tr><td>对不起，发起人限制只有其好友可报名，是否加他为好友？<a href="javascript:;" style="cursor: pointer;" onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$authorid','',this.id);" title="加为好友">+加为好友</a></td></tr>
</table>
<!--
EOT;
}}elseif($thelast == '1'){print<<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
	<tr>
		<th class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="pc_join();"><img src="$imgpath/close.gif" /></span>支付金额</th>
	</tr>
<!--
EOT;
if($pcid == '2'){print<<<EOT
-->
	<tr><td>需付费用 {$deposit} 元/人，你的报名人数为 {$nums} 人</td></tr>
<!--
EOT;
}elseif($pcid == '1'){print<<<EOT
-->
	<tr><td>需付费用 {$deposit} 元/个，你的购买数量为 {$nums} 个</td></tr>
<!--
EOT;
}print<<<EOT
-->
	<tr><td>共计经费：{$totalcash}元</td></tr>
<!--
EOT;
if($payway==2){print<<<EOT
-->
	<tr><td>注：此次交易为现金支付，请及时联系卖家确认支付方式。</td></tr>
<!--
EOT;
}print<<<EOT
-->
</table>
<center>
<!--
EOT;
if($payway==1){print<<<EOT
-->
	<a href="$alipayurl">去支付宝支付</a>
<!--
EOT;
}print<<<EOT
-->
	<input type="button" class="btn" name="ajaxsubmit" onclick="pc_join();" value="关闭" />
</center>
<!--
EOT;
}}elseif($action == 'pcmember'){print<<<EOT
-->
<div id="g_info" style="margin:10px 0;">
<!--
EOT;
if(empty($memberdb)){print <<<EOT
-->
<div style="padding:8px 15px;margin:0;" class="f12 blockquote">没有相关记录!</div>
<!--
EOT;
}else{print <<<EOT
-->
<div class="t">
<table width="100%" class="f12">
	<tr>
		<td colspan="7" class="h">
<!--
EOT;
if($jointype==1 || $jointype==2){print<<<EOT
-->
			<span class="fr"><a href="job.php?action=pcexport&tid=$tid&pcid=$pcid">导出报名信息</a>&nbsp;&nbsp;&nbsp;<a id="pcsendmsg" href="javascript:;" onclick="sendmsg('pw_ajax.php?action=pcsendmsg&tid=$tid&pcid=$pcid','',this.id);">+群发消息</a></span>
<!--
EOT;
}print<<<EOT
-->
			<b>
<!--
EOT;
if($isviewright){
if($pcid == '2'){print<<<EOT
-->
			报名人数共计{$sum}人，已支付经费数：{$paysum}人
<!--
EOT;
}elseif($pcid == '1'){print<<<EOT
-->
			购买数量共计{$sum}个，已支付经费数：{$paysum}个
<!--
EOT;
}}else{
if($pcid == '2'){print<<<EOT
-->
			报名人数共计{$sum}人
<!--
EOT;
}elseif($pcid == '1'){print<<<EOT
-->
			购买数量共计{$sum}个
<!--
EOT;
}}print<<<EOT
-->
			</b>
		</td>
	</tr>
<!--
EOT;
if($isviewright){print<<<EOT
-->
	<tr class="tr2">
		<td>用户</td>
		<td>手机</td>
<!--
EOT;
if($pcid == '2'){print<<<EOT
-->
		<td>报名人数</td>
<!--
EOT;
}elseif($pcid == '1'){print<<<EOT
-->
		<td>购买数量</td>
<!--
EOT;
}print<<<EOT
-->
		<td>费用</td>
		<td>支付情况</td>
		<td>操作</td>
	</tr>
<!--
EOT;
foreach($memberdb as $val){
if($val[ifpay]==1){
	$ifpay='已支付';
}else{
	$ifpay='未支付';
}
if ($jointype == 3) {
	$mobile = $val['extra'] && $winduid!=$val[uid] ? '保密' : $val['mobile'];
	$val[username] = $val['extra'] && $winduid!=$val[uid] ? '匿名' : $val[username];
	$touidurl = $val['extra'] && $winduid!=$val[uid] ? 'javascript:;' : "u.php?uid=$val[uid]";
} else {
	$mobile = $val['mobile'];
	$touidurl = "u.php?uid=$val[uid]";
}
print <<<EOT
-->
	<tr class="tr3">
		<td><a href="$touidurl">$val[username]</a>
<!--
EOT;
if ($jointype == 1 || $jointype == 2) {print<<<EOT
-->
		<a href="javascript:;" id="message" onclick="sendmsg('pw_ajax.php?action=msg&touid=$val[uid]','','message')"><img src="$imgpath/apps/operation/mail.png"></a>
<!--
EOT;
}print<<<EOT
-->
		</td>
		<td>$mobile</td>
		<td>$val[nums]</td>
		<td>$val[totalcash]</td>
		<td>$ifpay</td>
		<td>
			<a href="javascript:;" id="pcshow_$val[pcmid]" onclick="sendmsg('pw_ajax.php?action=pcshow&pcmid=$val[pcmid]&tid=$tid&pcid=$val[pcid]','',this.id)">详情</a>
<!--
EOT;
if ($jointype == 1) {
if(!$val[ifpay]){
if ($winduid!=$val[uid]) {
print <<<EOT
-->
			<a href="javascript:;" id="pcpay_$val[pcmid]" onclick="sendmsg('pw_ajax.php?action=pcpay&pcmid=$val[pcmid]&pcid=$val[pcid]&tid=$tid&jointype=$jointype&payway=$payway','',this.id)">确认支付</a>
<!--
EOT;
}print<<<EOT
-->
			<a href="javascript:;" onclick="if (confirm('确认删除吗')) {pc_del('$val[pcmid]','$val[pcid]','$jointype','$payway')}">删除</a>
<!--
EOT;
}}
if($winduid==$val[uid] && !$ifend){
if($val[ifpay]==1){print<<<EOT
-->
			<a id="ifpay_1_$val[pcmid]" href="javascript:;" onclick="sendmsg('pw_ajax.php?action=pcmodify&pcmid=$val[pcmid]&pcid=$val[pcid]&jointype=$jointype&tid=$tid&ifpay=1&payway=$payway','',this.id);">修改</a>
<!--
EOT;
}else{
if($payway == 1 && $val[totalcash] > 0){print<<<EOT
-->
			<a id="alipay_$val[pcmid]" href="javascript:;" class="s1" onclick="sendmsg('pw_ajax.php?action=pcalipay&pcmid=$val[pcmid]&pcid=$val[pcid]&tid=$tid&pcid=$val[pcid]','',this.id);">马上支付</a>
<!--
EOT;
}print<<<EOT
-->
			<a id="ifpay_0_$val[pcmid]" href="javascript:;" onclick="sendmsg('pw_ajax.php?action=pcmodify&pcmid=$val[pcmid]&pcid=$val[pcid]&jointype=$jointype&tid=$tid&ifpay=0&payway=$payway','',this.id);">修改</a>
<!--
EOT;
}}print<<<EOT
-->
		</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
	<tr>
		<td colspan="7" style="padding:5px;">$pages</td>
	</tr>
	<tr>
		<td colspan="7" style="height:8px;">
		</td>
	</tr>
<!--
EOT;
}print<<<EOT
-->
</table>
</div>
<!--
EOT;
}print <<<EOT
-->
</div>
<!--
EOT;
}elseif($action == 'pcmodify'){print<<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="tid" value="$tid">
<input type="hidden" name="pcid" value="$pcid">
<input type="hidden" name="pcmid" value="$pcmid">
<input type="hidden" name="jointype" value="$jointype">
<input type="hidden" name="ifpay" value="$ifpay">
<input type="hidden" name="payway" value="$payway">
<input type="hidden" name="step" value="2">
<table width="340px" cellspacing="0" cellpadding="5">
	<tr>
		<th class="h" colspan="3" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>编辑信息</th>
	</tr>
	<tr><td colspan="2"><span class="gray">说明:带<font color="#FF0000">*</font>为必填选项</span></td></tr>
<!--
EOT;
if(!$ifpay){
if($pcid == '2'){print<<<EOT
-->
	<tr><td width="35%">报名人数:<span style="color:red">*</span></td><td><input type="text" name="nums" class="input" value="$rt[nums]"> 人</td></tr>
<!--
EOT;
}elseif($pcid == '1'){print<<<EOT
-->
	<tr><td>购买数量：<span style="color:red">*</span></td><td><input type="text" name="nums" class="input" value="$rt[nums]"> 个</td></tr>
<!--
EOT;
}}print<<<EOT
-->
	<tr><td>真实姓名：<span style="color:red">*</span></td><td><input type="text" name="name" class="input" value="$rt[name]"></td></tr>
	<tr><td>手机：<span style="color:red">*</span></td><td><input type="text" name="mobile" class="input" value="$rt[mobile]"></tr>
	<tr><td>电话：</td><td><input type="text" name="phone" class="input" value="$rt[phone]"></tr>
	<tr><td>地址：</td><td><input type="text" name="address" class="input" value="$rt[address]"></td></tr>
<!--
EOT;
if($pcid == '1'){print<<<EOT
-->
	<tr><td>邮编：</td><td><input type="text" name="zip" class="input" value="$rt[zip]"></td></tr>
	<tr><td>给卖家留言：</td><td><textarea name="message" style="width:200px;height:45px;" class="input">$rt[message]</textarea>
	<br />选项，可以告诉卖家你对商品的特殊要求，如尺寸、颜色等</td></tr>
<!--
EOT;
}print<<<EOT
-->
	<tr><td>匿名：</td><td><input type="checkbox" name="extra" value="1" $checked>&nbsp;(仅发起人可见)</td></tr>
</table>
<center>
	<input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form,pc_modify);" value="提 交" />
</center>
</form>
<!--
EOT;
}elseif($action == 'pcalipay'){print<<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
	<tr>
		<th class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>支付金额</th>
	</tr>
<!--
EOT;
if($pcid == '2'){print<<<EOT
-->
	<tr><td>需付费用 {$deposit} 元/人，你的报名人数为 {$nums} 人</td></tr>
<!--
EOT;
}elseif($pcid == '1'){print<<<EOT
-->
	<tr><td>需付费用 {$deposit} 元/个，你的购买数量为 {$nums} 个</td></tr>
<!--
EOT;
}print<<<EOT
-->
	<tr><td>共计经费：{$totalcash}元</td></tr>
</table>
<center>
	<a href="$alipayurl">去支付宝支付</a>
</center>
<!--
EOT;
}elseif($action=='pcsendmsg'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="step" value="2" />
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="pcid" value="$pcid" />
<table cellspacing="0" cellpadding="0" width="440">
	<tbody>
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>群发短消息</th></tr>
	<tr><td align="center">标题:</td><td><input type="text" class="input" name="subject" maxlength="100" size="50"/></td></tr>
	<tr><td align="center">内容:</td><td><textarea name="atc_content" rows="8" style="width:330px"></textarea></td></tr>
	<tr><td colspan="2">保存到发件箱中：<input type="checkbox" name="ifsave" value="Y" style=" vertical-align:middle;" /></td></tr>
	</tbody>
</table>
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="提 交" /></li></ul>
</form>
<!--
EOT;
}elseif($action == 'pcpay'){print<<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="step" value="2" />
<input type="hidden" name="pcmid" value="$pcmid" />
<input type="hidden" name="pcid" value="$pcid" />
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="jointype" value="$jointype" />
<input type="hidden" name="payway" value="$payway" />
<table width="300px;" cellspacing="0" cellpadding="5">
	<tr>
		<th class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>支付金额</th>
	</tr>
	<tr><td><span style="padding-left:25px">该用户目前是未支付状态，如果你确认用户已经通过其他的方式支付了费用，请点击“确认”，否则，请点击“取消”。</span></td></tr>
	<tr><td>确认后不可撤销，请慎重操作！</td></tr>
</table>
<center>
	<input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form,pc_modify);" value="确认" />
	<input type="button" class="btn" onclick="closep();" value="取消" />
</center>
</form>
<!--
EOT;
}elseif($action == 'pcshow'){
if($pcmember[ifpay]==1){
	$ifpay='已支付';
}else{
	$ifpay='未支付';
}
if ($pcmember['extra'] && !$isadminright && $pcmember['uid']!=$winduid) {
	$phone = $mobile = $address = $name = $zip = '保密';
	$username = '匿名';
} else {
	$phone		= $pcmember['phone'];
	$mobile		= $pcmember['mobile'];
	$address	= $pcmember['address'];
	$name		= $pcmember['name'];
	$zip		= $pcmember['zip'];
	$username	= $pcmember['username'];
}
print<<<EOT
-->
<table width="300px" cellspacing="0" cellpadding="5">
	<tr>
		<th class="h" style="cursor:move" onmousedown="read.move(event);" colspan="2"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>{$username}的报名信息：</th>
	</tr>
<!--
EOT;
if($pcid == '2'){print<<<EOT
-->
	<tr><td width="30%">报名人数：</td><td>$pcmember[nums]</td></tr>
<!--
EOT;
}elseif($pcid == '1'){print<<<EOT
-->
	<tr><td width="30%">购买数量：</td><td>$pcmember[nums]</td></tr>
<!--
EOT;
}print<<<EOT
-->
	<tr><td>费用：</td><td>$pcmember[totalcash]</td></tr>
	<tr><td>真实姓名：</td><td>$name</td></tr>
	<tr><td>手机：</td><td>$mobile</td></tr>
	<tr><td>电话：</td><td>$phone</td></tr>
	<tr><td>地址：</td><td>$address</td></tr>
<!--
EOT;
if($pcid == '1'){print<<<EOT
-->
	<tr><td>邮编：</td><td>$zip</td></tr>
<!--
EOT;
if($isadminright || $pcmember['uid'] == $winduid){print<<<EOT
-->
	<tr><td>给卖家留言：</td><td>$pcmember[message]</td></tr>
<!--
EOT;
}}print<<<EOT
-->
	<tr><td>支付情况：</td><td>$ifpay</td></tr>
</table>
<!--
EOT;
} elseif ($action == 'pingpage') {
	foreach ($ping_db as $pingdata) {
print <<<EOT
-->
<!-- splitTr --><!-- pingId:{$pingdata['id']} -->
<span id="pingUserShow_{$pingdata['id']}"></span><img src="{$pingdata['icon']}" width="16" height="16" id="card_pingUserShow_{$pingdata[id]}" onmouseover="setTimeout(function(){showcard('{$pingdata['id']}','{$pingdata['uid']}','pingUserShow_')}, 700)" />
<!-- split -->
<a target="_blank" href="u.php?action=show&username={$pingdata['pinger']}">{$pingdata['pinger']}</a>
<!-- split -->
{$pingdata['name']}
<!-- split -->
<b>{$pingdata['point']}</b>
<!-- split -->
<span class="gray">{$pingdata['pingtime']}</span>
<!-- split -->
{$pingdata['record']}
<!-- split -->
<!--
EOT;
		if ($admincheck || ($_G['markable'] && $pingdata['pinger'] == $windid)) {
			$pidstr = $pid ? $pid : 'tpc';
print <<<EOT
-->
&nbsp;<a style="display:none;" id="pingDel_{$pingdata['id']}" href="javascript:void(0);" onclick="delPingLog('$fid', '$tid', '$pidstr', '{$pingdata['id']}')"><img src="$imgpath/close.gif" /></a>
<!--
EOT;
		}
print <<<EOT
-->

<!--
EOT;
	}
	if (!count($ping_db) || ($page >= $total)) {
print <<<EOT
-->
								<!-- __pingPageOver__ -->
<!--
EOT;
	}
} elseif ($action == 'clearpinglog') {
print <<<EOT
-->

<table width="100%" cellspacing="0" cellpadding="5">
<tr>
	<th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);">
		<span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();">
			<img src="$imgpath/close.gif" />
		</span>
		清空我的评分动态
	</th>
</tr>
<!--
EOT;
	if ($user_has_ping) {
print <<<EOT
-->
<tr>
	<td>
		你确定要删除在本楼的所有评分动态吗？
	</td>
</tr>
<tr>
	<td align="right">
		<a class="s4" target="_blank" href="operate.php?action=showping&fid=$fid&tid=$tid&selid=$pid">我想撤消评分</a>
	</td>
</tr>
<tr>
	<td align="center">
		<input class="btn" id="delMyAllPingLog" type="button" value="确定" onclick="closep();setTimeout(function(){sendmsg('pw_ajax.php?action=doclearpinglog','fid=$fid&tid=$tid&pid=$pid',this.id);},200);">
		<input class="bt" type="button" value="取消" onclick="closep();">
	</td>
</tr>
<!--
EOT;
	} else {
print <<<EOT
-->
<tr>
	<td>
		你还没有对此楼进行评分哦～
	</td>
</tr>
<tr>
	<td align="right">
		<a class="s4" target="_blank" href="operate.php?action=showping&tid=$tid&pid=$pid">我要评分</a>
	</td>
</tr>
<tr>
	<td align="center">
		<input class="bt" type="button" value="关闭" onclick="closep();">
	</td>
</tr>
<!--
EOT;
	}
print <<<EOT
-->
</table>
<!--
EOT;
} elseif ($action == 'showuserbinding') {print <<<EOT
-->
<div style="padding:0 5px 0 0;width:312px;">
<div class="menu_userlist">
<ul class="cc">
<!--
EOT;
foreach ($arr as $key => $value) {print <<<EOT
-->
	<li onclick="userBinding.change('$value[uid]')"><a href="javascript:;" hidefocus="true">$value[username]</a></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
</div>
</div>
<!--
EOT;
}?>-->