<!--<?php print <<<EOT
-->
<div class="bor">
<form action="mawhole.php?action=$action&ajax=1" method="post" onsubmit="return false;" name="ajaxfm">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="fid" value="$fid" />
<input type="hidden" name="seltid" value="$seltid" />
<input type="hidden" name="step" value="2" />
<!--
EOT;
if($action=='headtopic'){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>
<tr><td width="20%" align="center">管理選項︰</td>
	<td><input type="radio" name="topped" value="0" $topped_0 /> 取消置頂
		<input type="radio" name="topped" value="1" $topped_1 /> 置頂1
<!--
EOT;
if(!$isGM && pwRights($isBM,'topped')==2){print <<<EOT
-->
		<input type="radio" name="topped" value="2" $topped_2 /> 置頂2
<!--
EOT;
}elseif($isGM || pwRights($isBM,'topped')==3){print <<<EOT
-->
		<input type="radio" name="topped" value="2" $topped_2 /> 置頂2
		<input type="radio" name="topped" value="3" $topped_3 /> 置頂3
<!--
EOT;
}print <<<EOT
-->
	</td>
</tr>
<tr><td width="20%" align="center">有效時間︰</td><td><input type="text" name="timelimit" class="input" size="4" /> 天</td></tr>
<!--
EOT;
}elseif($action=='digest'){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>
<tr><td width="20%" align="center">管理選項︰</td>
	<td><input type="radio" name="digest" value="0" $digest_0 />取消精華
		<input type="radio" name="digest" value="1" $digest_1 />精華I
		<input type="radio" name="digest" value="2" $digest_2 />精華II
	</td>
</tr>
<!--
EOT;
}elseif($action=='lock'){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>
<tr><td width="20%" align="center">管理選項︰</td>
	<td><input type="radio" name="locked" value="0" $lock_0 />解除鎖定
		<input type="radio" name="locked" value="1" $lock_1 />鎖定
		<input type="radio" name="locked" value="2" $lock_2 />關閉
	</td>
</tr>
<!--
EOT;
}elseif($action=='pushtopic'){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>
<tr><td width="20%" align="center">提前時間︰</td><td><input type="text" name="pushtime" value="0" size="3" class="input" /> (時)</td></tr>
<tr><td width="20%" align="center">管理選項︰</td><td>
提前帖子
</td></tr>
<!--
EOT;
}elseif($action=='downtopic'){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>
<tr><td width="20%" align="center">壓後時間︰</td><td><input type="text" name="timelimit" value="24" size="3" class="input" /> (時)</td></tr>
<tr><td width="20%" align="center">允許上浮︰</td><td>
<input type="radio" name="ifpush" value="0" $lock_0 />是
<input type="radio" name="ifpush" value="1" $lock_1 />否
</td></tr>
<!--
EOT;
}elseif($action=='edit'){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>
<tr><td width="20%" align="center">管理選項︰</td>
	<td>
		<div class="pwnew tac">
			<span title="粗體字"><b><a onclick="styleOnclick(this,'title2')" class="$stylename[1]">B</a></b></span>
			<span title="斜體字"><i><a onclick="styleOnclick(this,'title3')" class="$stylename[2]">I</a></i></span>
			<span title="下劃線"><u><a onclick="styleOnclick(this,'title4')" class="$stylename[3]">U</a></u></span>
			<span id="color_show" style="width:30px;margin-top:1px;border:1px solid $tablecolor;float:left;height:14px;background:$titlecolor;cursor:pointer;" title="點擊取消顏色" onclick="colorCancel()"></span>
			<span title="顏色選擇"><a class="two tal" onclick="showColorPicker(this,document.ajaxfm.title1,function(){pickReback(color_picker)})"><img src="$imgpath/pickcolor.gif"  /></a></span>
			<input id="title1" name="title1" type="hidden" value="$titlecolor" />
			<input id="title2" name="title2" type="hidden" value="{$titledetail[1]}" />
			<input id="title3" name="title3" type="hidden" value="{$titledetail[2]}" />
			<input id="title4" name="title4" type="hidden" value="{$titledetail[3]}" />
		</div>
	</td>
</tr>
<tr><td width="20%" align="center">有效時間︰</td><td><input type="text" name="timelimit" size="4" size="3" class="input" /> 天</td></tr>
<style type="text/css">
.pwnew span{float:left;margin-left:5px;}
.pwnew a{padding:0;margin:0;display:block;height:16px;width:16px;float:left;line-height:16px;border:1px solid $tdcolor;color:$linkcolor;cursor:pointer;}
.pwnew a:hover{border:1px solid $tablecolor;background:$forumcolortwo;color:$linkcolor;}
.pwnew .one,.pwnew .one:hover{border: 1px solid $headfontone;background:$headborder;color:$headfontone;}
.pwnew b:hover,.pwnew i:hover{text-decoration:none;}
.pwnew .two{background:url($imgpath/wind/menu-down.gif) right center no-repeat;width:30px;cursor:pointer;}
.pwnew .two:hover{background:$forumcolortwo url($imgpath/wind/menu-down.gif) right center no-repeat;text-decoration:none;}
</style>
<script id="ajax_color" language="JavaScript" src="js/color_picker.js"></script>
<script type="text/javascript" id="ajax_edit">
function pickReback(color){
	getObj('color_show').style.backgroundColor = color;
}
function styleOnclick(e,obj){
	var objclass = e.className;
	var temp = objclass.split(' ');
	var newclass = '';
	for (var n=0; n<temp.length; n++){
		if (temp[n]=='one') {
			continue;
		}
		newclass += ' ' + temp[n];
	}
	if (objclass.match(/one/)) {
		e.className = newclass;
		getObj(obj).value = '';
	} else {
		e.className = newclass + ' one';
		getObj(obj).value = 1;
	}
}
function colorCancel(){
	getObj('color_show').style.backgroundColor='#FFFFFF';
	getObj('title1').value='';
}
</script>
<!--
EOT;
}elseif($action=='del'){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>
<tr><td width="20%" align="center">扣除積分︰</td>
	<td><input type="radio" name="ifdel" value="1" checked />是
		<input type="radio" name="ifdel" value="0" />否
	</td>
</tr>
<!--
EOT;
}elseif($action=='move' || $action=='copy'){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>
<!--
EOT;
if($action=='move'){print <<<EOT
-->
移動操作
<!--
EOT;
}else{print <<<EOT
-->
復制操作
<!--
EOT;
}print <<<EOT
-->
</th></tr>
<tr>
	<td width="20%" align="center">目的版塊︰</td>
	<td><select name="to_id" onchange="getThreadCates(this.value)">$forumcache
<!--
EOT;
if($forumadd){print <<<EOT
-->
		<option value="">>> 隱藏版塊</option>
		$forumadd
<!--
EOT;
}if(trim($cmscache)){print <<<EOT
-->
		<option value=""></option>
		<option value="">文章分類</option>
		$cmscache
<!--
EOT;
}print <<<EOT
-->
		</select>
	</td>
</tr>
<tr>
	<td width="20%" align="center">主題分類︰</td>
	<td>
		<div id="innerselect">
			<select name="to_threadcate" id="to_threadcate">
				<option value="">無主題分類</option>
			</select>
		</div>
<script language="JavaScript" id="js_mawhole_type">
var ttypedb = new Array();
ttypedb = $ttypedb;
function getThreadCates(fid) {
	var fttypedb = new Array();
	if (ttypedb[fid] && ttypedb[fid] != 0) {
		var opftype = '<select name="to_threadcate" id="to_threadcate"><option>不分類</option>';
	} else {
		var opftype = '<select name="to_threadcate" id="to_threadcate"><option>無主題分類</option>';
	}
	fttypedb = ttypedb[fid].split("\t");
	for (var key in fttypedb) {
		if (key == 0 || !fttypedb[key]) {
			continue;
		}
		opftype += '<option value="' + key + '">' + fttypedb[key] + '</option>';
	}
	opftype += '</select>';
	getObj('innerselect').innerHTML = opftype;
}
</script>
	</td>
</tr>
<!--
EOT;
}elseif($action=='unite'){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>
<tr>
	<td width="20%" align="center">合並帖子︰</td>
	<td><input class="input" type="text" name="unitetid" size="10" /> (輸入來源帖子的tid,多個用“,”分開)</td>
</tr>
<!--
EOT;
}elseif($action == 'push'){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>
<tr>
	<td width="100" class="tar">推送位置︰</td>
	<td><b>{$pushs[$pushto][name]}</b></td>
</tr>
<!--
EOT;
if($params[title]){print<<<EOT
-->
<tr>
	<td class="tar">標題:</td>
	<td><input type="text" name="subject" value="$subject" size="30" class="input" /></td>
</tr>
<!--
EOT;
}if($params[url]){print<<<EOT
-->
<tr>
	<td class="tar">鏈接︰</td>
	<td><input type="text" name="url" value="$url" size="30" class="input" /></td>
</tr>
<!--
EOT;
}if($params[image]){print<<<EOT
-->
<!--
EOT;
if($imgdb){print<<<EOT
-->
<tr>
	<td class="tar">圖片選擇︰</td>
	<td>
<!--
EOT;
$i = 0;
foreach($imgdb as $key => $value){
$checked = $i == 0 ? 'checked' : '';$i++;
print<<<EOT
-->
	<span class="fl" style="white-space:nowrap;margin-right:5px;"><img src="$value" style="width:60px;height:60px;margin-bottom:3px;" align="absmiddle">
	<center><input type="radio" name="attachurl" value="$key" $checked></center></span>
<!--
EOT;
}print<<<EOT
-->
	</td>
</tr>
<!--
EOT;
}print<<<EOT
-->
<tr>
	<td class="tar">自定義圖片︰</td>
	<td><input type="text" name="cimgurl" value="" size="30" class="input" />(如果設置自定義圖片地址，以自定義圖片為準)</td>
</tr>
<!--
EOT;
}if($params[value]){print<<<EOT
-->
<tr>
	<td class="tar">摘要︰</td>
	<td><textarea name="content" value="$content" style="width:260px;height:92px" />$content</textarea></td>
</tr>
<!--
EOT;
}print<<<EOT
-->
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="fid" value="$fid" />
<input type="hidden" name="oldsubject" value="$subject" />
<input type="hidden" name="postdate" value="$postdate" />
<input type="hidden" name="author" value="$author" />
<input type="hidden" name="pushto" value="$pushto" />
<!--
EOT;
}print <<<EOT
-->
<tr><td class="tar">消息通知︰</td>
	<td><input type="radio" name="ifmsg" value="1" checked />是 <input type="radio" name="ifmsg" value="0" />否</td>
</tr>
<tr>
	<td class="tar">操作原因︰</td>
	<td>
<!--
EOT;
if($db_adminreason){print <<<EOT
-->
		<select name="" onchange="this.form.atc_content.value=this.value" style="width:260px">
			<option value="">自定義</option>
			<option value="">-------</option>
			$reason_sel
		</select><br>
<!--
EOT;
}print <<<EOT
-->
		<textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" style="width:260px;height:92px"></textarea>
	</td>
</tr>
<!--
EOT;
if(($action=='edit' || $action=='digest' || $action=='headtopic' || $action=='pushtopic') && $seltid){
${$action.'_N'}="disabled";
print <<<EOT
-->
<tr>
	<td class="tar">後續操作︰</td>
	<td>
		<input type="radio" name="nextto" value="digest" $digest_N />精華
		<input type="radio" name="nextto" value="headtopic" $headtopic_N />置頂
		<input type="radio" name="nextto" value="edit" $edit_N />加亮
		<input type="radio" name="nextto" value="pushtopic" $pushtopic_N />提前
		<input type="radio" name="nextto" value="" checked />無
	</td>
</tr>
<!--
EOT;
} print <<<EOT
-->
</table>
<ul><li style="text-align:center;padding:4px 0;">
<!--
EOT;
if($db_enterreason){print <<<EOT
-->
<input type="button" class="btn" name="ajaxsubmit" onclick="if(this.form.atc_content.value){ajax.submit(this.form);}else{alert('請輸入操作理由！')}" value="提 交" />
<!--
EOT;
}else{print <<<EOT
-->
<input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="提 交" />
<!--
EOT;
}print <<<EOT
-->
</li></ul>
</form>
</div>
<!--
EOT;
?>-->