<!--<?php print <<<EOT
-->
<div id="breadCrumb">
		<img src="$imgpath/$stylepath/thread/home-old.gif" align="absmiddle" />&nbsp;<a href="$db_bfn" title="$db_bbsname">$db_bbsname</a> &raquo; 論壇操作
</div>
<style type="text/css">
.t{margin-top:8px;border:4px solid $forumcolortwo;}
.t table{border:2px solid $tablecolor;}
.t .h{font-weight:normal}
.t .tr3{line-height:25px;}
</style>
<!--
EOT;
if($action=='showping'){print <<<EOT
-->
<form name="ping" action="operate.php?action=$action" method="post">
<input type="hidden" name="verify" value="$verifyhash" />
<!--
EOT;
foreach($atcdb as $key=>$value){print <<<EOT
-->
<input type="hidden" name="selid[]" value="$key" />
<!--
EOT;
}print <<<EOT
-->
<div class="t f_one" style="margin-top:8px;">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
<tr><th class="h">&nbsp;</th><th class="h">帖子評分</th></tr>
<tr class="tr3"><td width="21%" class="tar">操作</td>
<th><input type="radio" name="step" value="1" checked onclick="operatesel(1);"/>評分&nbsp;
<input type="radio" name="step" value="2" onclick="operatesel(2);"/>取消評分</th></tr>

<tr id="cancel" style="display:none" class="tr3"><td class="tar">操作說明:</td>
<th>取消評分按自己最近的評分開始取消</th></tr>

<tr class="tr3"><td class="tar">操作者</td>
<th><a href="u.php?action=show&uid=$winduid">$windid</a></th></tr>
<tr class="tr3"><td class="tar">評分數量︰</td>
<th>$count 篇</th></tr>
<tr id="ok1" style="display:none" class="tr3"><td class="tar">積分名稱:</td>
<th><select name="cid" onchange="optionsel(this.value)">$creditselect</select></th></tr>
<tr id="ok2" style="display:none" class="tr3"><td class="tar">增加單位:</td>
<th><input class="input" type="text" name="addpoint" value="1" size="5" /> <span id="showping">點 ($minper~$maxper)，今日剩余評分點數︰<span class="s3 b">{$leavepoint}</span></span></th></tr>
<tr class="tr3"><td class="tar">標題:</td>
<th><a href="read.php?tid=$tid">$atc[subject]</a></th></tr>
<tr class="tr3"><td class="tar">短消息通知</td>
<th>
<input type="radio" name="ifmsg" value="1" $check_Y />是
<input type="radio" name="ifmsg" value="0" $check_N />否</th></tr>
<tr id="ok3" style="display:none" class="tr3"><td class="tar">評分理由</td>
<th style="vertical-align:top"><textarea name="atc_content" rows="8" style="width:300px;"></textarea>
<select name="" size="8" multiple onchange="this.form.atc_content.value=this.value">
	<option value="">自定義</option>
	<option value="">-------</option>
	$reason_sel
</select>
</th></tr>
<tr><td></td><td style="padding:.5em 5em;"><input class="btn" type="submit" value="提 交" />  <a class="btn3" type="button" onclick="javascript:history.go(-1)" />返 回</a></td></tr>
</table></div>
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="tid" value="$tid" /></form>
<script language="javascript">
function operatesel (id) {
	if (id == '1') {
		objCheck('ok1').style.display = '';
		objCheck('ok2').style.display = '';
		objCheck('ok3').style.display = '';
		objCheck('cancel').style.display = 'none';
	} else {
		objCheck('ok1').style.display = 'none';
		objCheck('ok2').style.display = 'none';
		objCheck('ok3').style.display = 'none';
		objCheck('cancel').style.display = '';
	}
}
setTimeout('operatesel(1);',50);
function optionsel(id) {
	pinglog = objCheck('showping');
	var jscredit = JSONParse('$jscredit');
	pinglog.innerHTML = '點 (' + jscredit[id]['minper'] + '~' + jscredit[id]['maxper'] + ')，今日剩余評分點數︰<span class="s3 b">' + jscredit[id]['leavepoint'] + '</span>';
}
</script>
<!--
EOT;
}elseif($action=='recommend'){print <<<EOT
-->
<form method="post" action="operate.php?action=recommend">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="tid" value="$tid" />
<div class="t f_one" style="margin-top:8px;">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr><td class="h">&nbsp;</td><th class="h">帖子推薦</th></tr>
	<tr class="tr3">
		<td width="21%" class="tar">推薦方式︰</td>
		<td><input type="radio" name="step" value="1" onclick="getObj('sendemail').style.display='none';" checked />短消息推薦 <input type="radio" name="step" value="2" onclick="getObj('sendemail').style.display='';" />郵件推薦</td>
	</tr>
	<tr class="tr3">
		<td class="tar">對方姓名︰</td>
		<td><input type="text" class="input" name="sendtoname" size="25" value="" /></td>
	</tr>
	<tbody id="sendemail" style="display:none">
	<tr class="tr3"><td class="tar">對方Email︰</td>
		<td><input type="text" class="input" name="sendtoemail" size="25" value="" /></td>
	</tr>
	</tbody>
	<tr class="tr3">
		<td class="tar">標題︰</td>
		<td><input type="text" class="input" name="subject" size="44" value="$atc_name" /></td>
	</tr>
<!--
EOT;
if($db_gdcheck & 16){print <<<EOT
-->
	<tr class="tr3">
		<td class="tar">認證碼︰</td>
		<td>
			<input class="input" type="text" name="gdcode" size="8" onfocus="try{opencode('menu_gd',this)}catch(e){}" /><span style="cursor:pointer; margin-left:3px" onclick="this.previousSibling.focus();">點此顯示驗證碼</span>
			<div class="menu" id="menu_gd" style="visibility:hidden;"><img src="ck.php?" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="看不清楚，換一張" /></div>
		</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
	<tr class="tr3"><td class="tar">內容︰</td>
		<td><textarea rows="6" style="width:96%" name="atc_content" onkeydown="ajax.quickpost(event,this.form)">您好！我在$db_bbsname($db_bbsurl/?u=$winduid)\n看到了這篇帖子，認為很有價值，特推薦給您。\n\n作者︰$atcinfo[author]\n地址:{$db_bbsurl}/read.php?tid=$tid&u=$winduid\n\n希望您能喜歡。</textarea></td>
	</tr>
	<tr><td></td><td style="padding:.5em 5em"><input class="btn" type="submit" value="提 交" />  <a class="btn3" type="button" onclick="javascript:history.go(-1)" />返 回</a></td></tr>
</table></div>
</form><br />
<!--
EOT;
}elseif($action=='report'){print <<<EOT
-->
<form action="operate.php?action=$action" method="post">
<input type="hidden" name="verify" value="$verifyhash" />
<div class="t f_one" style="margin-top:8px;">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td class="h">&nbsp;</td><th class="h">報告功能</th></tr>
<tr class="tr3"><td width="21%" class="tar">報告類型︰</td>
<td><input type="radio" name="type" value="1" checked onclick="this.form.reason.value='該帖很優秀,建議加為精華帖!'" />優秀帖子 <input type="radio" name="type" value="0" onclick="this.form.reason.value='該帖包含不良信息,請及時處理!'" />不良帖子</td></tr>
<tr class="tr3"><td class="tar">通知版主︰</td>
<td><input type="radio" name="ifmsg" value="1" checked />是
<input type="radio" name="ifmsg" value="0" />否</td></tr>
<tr class="tr3"><td class="tar">原因︰</td>
<td><textarea id="reason" name="reason" rows="6" style="width:96%">該帖很優秀,建議加為精華帖!</textarea>
</td></tr>
<tr><td></td><td style="padding:.5em 5em"><input class="btn" type="submit" value="提 交" />  <a class="btn3" type="button" onclick="javascript:history.go(-1)" />返 回</a></td></tr>
</table></div>
<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="page" value="$page" />
</form>
<!--
EOT;
}?>-->