<!--<?php
if($q=='blooming'){print <<<EOT
-->
<form action="apps.php?ajax=1&q=updata" method="post" onsubmit="return false;">
<input type="hidden" name="tid" value="$tid" />
<table width="100%" cellspacing="1" cellpadding="5">
	<tr><th colspan="6" 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>
<!--
EOT;
$num=0;
foreach($openclass as $key=>$value){
if($value[cup]){
$num++;
$htm_tr = $num % 6 == 0 ? '</tr><tr>' : '';
print<<<EOT
-->
	<td><input name="cid" type="radio" value="$key" />$value[name]</td>$htm_tr
<!--
EOT;
}}print <<<EOT
-->
	</tr>
	<tr><td colspan="6" style="padding-left:5px;color:red;"><a style="cursor:pointer;" class="fr" onclick="openinfo(this)" id="help" title="打开">更多分类</a></td></tr>
	<tbody id="helpinfo" style="display:none;">
		<tr>
<!--
EOT;
$num=0;
foreach($info_class as $key=>$value){
if($value[cup]){
$num++;
$htm_tr = $num % 6 == 0 ? '</tr><tr>' : '';
print<<<EOT
-->
			<td><input name="cid" type="radio" value="$key" />$value[name]</td>$htm_tr
<!--
EOT;
}}print <<<EOT
-->
		</tr>
	</tbody>
</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($q=='survey'){print<<<EOT
-->
<div class="t">
	<table width="100%" align="center" cellspacing="0" cellpadding="0">
		<tr><td class="h" colspan="4"><b>问卷列表</b></td></tr>
		<tr class="tr3 tac">
<!--
EOT;
foreach($survey_cache as $item){
$j+=1;
if($j%4!='0'){
print<<<EOT
-->
			<td width="25%"><a href="survey.php?itemid=$item[itemid]">$item[subject]</a></td>
<!--
EOT;
}else{
print<<<EOT
-->
		</tr>
		<tr>
<!--
EOT;
}}print<<<EOT
-->
		</tr>
	</table>
</div>
<div>
	<center>
		<iframe frameborder="0" scrolling="auto" style="width:100%;height:{$survey[frameheight]}px;border:none" src="{$survey[url]}"></iframe>
	</center>
</div>
<!--
EOT;
}elseif ($q=='appthread') {
if ($do) {
print <<<EOT
-->
<table width="400" 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 colspan="2">
<iframe id="pwthread" name="pwthread" scrolling="no" width="650" src="$app_url" frameborder="0"></iframe>
</td></tr></table>
<!--
EOT;
}else {
print <<<EOT
-->
<table width="400" 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 align="center">
<a style="margin-left:40px;" href="javascript:;" id="" onclick="sendmsg('apps.php?q=appthread&do=good&forumid=$forumid','',this.id)" title="">批量导入精品贴</a></td>
<td>
<a style="margin-left:20px;" href="javascript:;" id="" onclick="sendmsg('apps.php?q=appthread&do=pack&forumid=$forumid','',this.id)" title="">批量导入主题精品包</a>
</td></tr>
</table>
<!--
EOT;
}}else{print<<<EOT
-->
<script type="text/javascript" src="{$server_url}/js/global.js"></script>
<script language="JavaScript">
var server = new PwJs.Server("pwapp");
server.registHandler('setTitle');
server.start();

function setTitle(title) {
	document.title = title + ' $webPageTitle - Powered by PHPWind.net';
}
</script>

<div style="" class="cc">
<div class="y-bg"></div>
<div class="y-bg2"></div>
<div class="y-bg-content" style="padding:20px 10px;">
		<div class="cc">
			<iframe id="pwapp" name="pwapp" frameborder="0" width="100%" height="800" scrolling="no" src="{$url}"></iframe>
		</div>
<div class="c"></div>
</div>
<div class="y-bg2"></div>
<div class="y-bg"></div>
</div>
<!--
EOT;
}?>-->