<!--<?php
if ($a == 'del') {print <<<EOT
-->
<script language="JavaScript" id="o_del">
function o_del() {
	var rText = ajax.request.responseText.split('\\t');
	if (rText[0] == 'del') {
		getObj('lou_' + rText[1]).parentNode.removeChild(getObj('lou_' + rText[1]));
	} else if (rText[0] == 'jump') {
		window.location.href = '{$basename}q=$q&cyid=$cyid&a=thread';
	} else {
		ajax.guide();
	}
}
</script>
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="tid" value="$tid" />
	<input type="hidden" name="step" value="3" />
	<div style="width:200px;" class="cc">
		<div class="p10 b f14">您確定要刪除該貼嗎？</div>
		<div class="pdD fr"><input type="button" class="bt3" value="刪 除" onclick="ajax.submit(this.form,o_del)" /> <input type="button" value="取消" class="bt" onclick="closep();" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'edit') {print <<<EOT
-->
<script language="JavaScript" id="o_edit">
function o_edit() {
	var rText = ajax.request.responseText.split('\\t');
	if (rText[0] == 'edit') {
		if (typeof rText[3] == 'undefined') {
			getObj('read_' + rText[1]).innerHTML = rText[2];
		} else {
			getObj('subject_tpc').innerHTML = rText[2];
			getObj('read_' + rText[1]).innerHTML = rText[3];
		}
	} else {
		ajax.guide();
	}
}
</script>
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="tid" value="$tid" />
	<input type="hidden" name="step" value="3" />
	<div class="cc" style="width:400px">
<!--
EOT;
if ($rt['tpcid'] == 0) {print <<<EOT
-->
		<div class="pdD"><input class="input" type="text" name="subject" value="$rt[subject]" /></div>
<!--
EOT;
}print <<<EOT
-->
		<div class="pdD"><textarea name="content" style="width:400px;height:120px">{$rt[content]}</textarea></div>
		<div class="pdD fr"><input type="button" class="bt3" value="提 交" onclick="ajax.submit(this.form,o_edit)" /> <input type="button" value="取消" class="bt" onclick="closep();" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'join') {print <<<EOT
-->
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="step" value="3" />
	<div style="width:200px;" class="cc">
		<div class="p10 b f14">您確定要加入該群組嗎？</div>
		<div class="pdD fr"><input type="button" class="bt3" value="加 入" onclick="ajax.submit(this.form)" /> <input type="button" value="取消" class="bt" onclick="closep();" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'out') {print <<<EOT
-->
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="step" value="3" />
	<div style="width:200px;" class="cc">
		<div class="p10 b f14">
<!--
EOT;
if ($colony['admin'] == $windid) {print <<<EOT
-->
			您是該群組的創建者，您確定要解散該群組嗎？
<!--
EOT;
} else {print <<<EOT
-->
			您確定要退出該群組嗎？
<!--
EOT;
}print <<<EOT
-->
		</div>
		<div class="pdD fr"><input type="button" value="確 定" class="bt3" onclick="ajax.submit(this.form)" /> <input type="button" value="取消" class="bt" onclick="closep();" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'delalbum') {print <<<EOT
-->
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="aid" value="$aid" />
	<input type="hidden" name="step" value="3" />
	<div style="width:360px;" class="cc">
		<div class="b f14 p10">刪除相冊將同時刪除所有相片，您確定要刪除嗎？</div>
		<div class="tar fr pdD"><input class="bt3" type="button" value="刪 除" onclick="ajax.submit(this.form)" /> <input type="button" value="取消" onclick="closep();" class="bt" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'editalbum') {print <<<EOT
-->
	<form action="{$basename}q=photos&a=editalbum" onSubmit="return false;" method="POST">
		<input type="hidden" name="step" value="3" />
		<input type="hidden" name="aid" value="$aid" />
		<table cellpadding="0" cellspacing="0" width="450px">
			<tr>
				<td width="14%" align="right" class="gray">相冊名</td>
				<td><input type="text" id="ajax_aname" name="aname" value="$rt[aname]" />&nbsp; <span id="ajax_aname_warn" class="gray">限 24 字節</span></td>
			</tr>
			<tr>
				<td align="right" class="gray">描述</td>
				<td>
					<textarea id="ajax_aintro" name="aintro" style="width:350px;height:70px">{$rt[aintro]}</textarea>
					<span id="ajax_aintro_warn" class="gray fr" style="margin-right:15px;"> 限 255 字節</span>
				</td>
			</tr>
			<tr>
				<td align="right" class="gray">可見度</td>
				<td><select name="private"><option value="0" $select_0>全站用戶可見</option><option value="1" $select_1>僅好友可見</option></select></td>
			</tr>
			<tr>
				<td></td>
				<td><input class="bt3" type="submit" value="編輯相冊" onclick="ajax.submit(this.form)"/> <input type="button" class="bt" value="取消" onclick="closep();" /></td>
			</tr>
		</table>
	</form>
<script language="JavaScript">
var charset = '$db_charset';
initCheckTextNum('ajax_aname','ajax_aname_warn',24);
initCheckTextNum('ajax_aintro','ajax_aintro_warn',255);
</script>
<!--
EOT;
} elseif ($a == 'uintro') {print <<<EOT
-->
	<table cellpadding="0" cellspacing="0" width="400">
		<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="30%">用戶</td>
			<td>
				$uinfo[username]
<!--
EOT;
if ($winduid == $uinfo['uid']) {print <<<EOT
-->
				[<a href="{$basename}q=$q&a=$a&cyid=$cyid&job=set">編輯我的通訊錄</a>]
<!--
EOT;
}print <<<EOT
-->
			</td>
		</tr>
		<tr>
			<td>真實姓名</td>
			<td>$uinfo[realname]</td>
		</tr>
		<tr>
			<td>性別</td>
			<td>
<!--
EOT;
if ($uinfo['gender'] == '1') {print <<<EOT
-->
				男
<!--
EOT;
} elseif ($uinfo['gender'] == '2') {print <<<EOT
-->
				女
<!--
EOT;
} else {print <<<EOT
-->
				保密
<!--
EOT;
}print <<<EOT
-->
			</td>
		</tr>
		<tr>
			<td>電話</td>
			<td>$uinfo[tel]</td>
		</tr>
		<tr>
			<td>郵箱</td>
			<td>$uinfo[email]</td>
		</tr>
		<tr>
			<td>聯系地址</td>
			<td>$uinfo[address]</td>
		</tr>
		<tr>
			<td>介紹說明</td>
			<td>$uinfo[introduce]</td>
		</tr>
	</table>
<!--
EOT;
}elseif($a=='recommend'){print <<<EOT
-->
<div class="tal">
<form method="post" action="mode.php?m=o&q=share&see=recommend&ajax=1" onsubmit="return false;">
<input type="hidden" name="step" value="2" />
<table width="100%" cellspacing="0" cellpadding="5">
	<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);">推薦</th></tr>
	<tr>
		<td width="24%" align="center">推薦方式︰</td>
		<td>短消息推薦</td>
	</tr>
	<tr>
		<td align="center">對方姓名︰</td>
		<td><input type="text" class="input" name="sendtoname" size="25" value="" /></td>
	</tr>
	<tr>
		<td align="center">標題︰</td>
		<td><input type="text" class="input" name="subject" size="44" value="{$windid} 給您$atc_name" /></td>
	</tr>
	<tr><td align="center">內容︰</td>
		<td><textarea rows="6" style="width:300px" name="atc_content" onkeydown="ajax.quickpost(event,this.form)">您好！我在$db_bbsname($db_bbsurl/?u=$winduid)\n這個信息，認為很有價值，特推薦給您。\n\n主要信息︰\n$title\n\n描述︰\n$descrip\n\n希望您能喜歡。</textarea></td>
	</tr>
</table><ul><li style="text-align:center;padding:4px 0;"><input type="button" class="bt3" name="ajaxsubmit" style="width:80px;" onclick="ajax.submit(this.form);" value="提 交" />&nbsp;<input class="bt" type="button" value="取消" onclick="closep();"/></li></ul></form>
</div>
<!--
EOT;
}?>-->