<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link href="{$tplroot}/admin/images/admincp.css?UmR" rel="stylesheet" type="text/css" />
</head>
<body>
<script src="{$tplroot}/admin/js/common.js?UmR" type="text/javascript"></script>
<script src="{$tplroot}/admin/js/admincp.js?UmR" type="text/javascript"></script>
<script type="text/javascript">
if(ISFRAME && !parent.document.getElementById('leftmenu') && !parent.parent.document.getElementById('leftmenu')) {
	redirect(admincpfilename + '?frames=yes&' + document.URL.substr(document.URL.indexOf(admincpfilename) + admincpfilename.length + 1));
}
</script>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="container" id="cpcontainer">
  <script type="text/JavaScript">parent.document.title = 'iQQol 管理中心 - 全局 - 广场设置';if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='全局&nbsp;&raquo;&nbsp;广场设置&nbsp;&nbsp;';</script>
  <div class="itemtitle">
    <h3>广场设置</h3>
  </div>
  <form name="cpform" method="post" autocomplete="off" action="admin.php?action=setting&operation=ranklist&edit=yes" id="cpform" >
    <input type="hidden" name="formhash" value="8bfe81ed" />
    <input type="hidden" id="formscrolltop" name="scrolltop" value="" />
    <input type="hidden" name="anchor" value="" />
    <input type="hidden" name="operation" value="basic">
    <table class="tb tb2 ">
      <tr>
        <th colspan="15" class="partition">广场设置</th>
      </tr>
      <tr onmouseover="setfaq(this, 'faq0145')">
        <td colspan="2" class="td27" s="1">默认设定:</td>
      </tr>
      <tr class="noborder" onmouseover="setfaq(this, 'faq0145')">
        <td class="vtop rowform"><ul onmouseover="altStyle(this);">
<?php
$status=mysql_query("SELECT * FROM ".IQQOL_SQLTABLE."admincp_power
 WHERE `name` = 'allowground'",$con);
$r=mysql_fetch_array($status);
echo mysql_error();
if($r['power']=='yes'){
echo '<li><input class="radio" type="radio" name="status" value="yes" checked onclick="$("hidden_setting_basic_bbclosed").style.display = "";">&nbsp;开启广场</li><li><input class="radio" type="radio" name="status" value="no" onclick="$("hidden_setting_basic_bbclosed").style.display = "none";">';
}
else{
echo '<li><input class="radio" type="radio" name="status" value="yes"  onclick="$("hidden_setting_basic_bbclosed").style.display = "";">&nbsp;开启广场</li><li><input class="radio" type="radio" name="status" value="no" checked onclick="$("hidden_setting_basic_bbclosed").style.display = "none";">';
}
?>
            &nbsp;关闭广场
            </li>
          </ul></td>
        <td class="vtop tips2" s="1">暂时将站点广场关闭，会影响用户互交相关功能@</td>
      </tr>
      <tr>
        <td colspan="15"><div class="fixsel">
            <input type="submit" class="btn" id="submit_settingsubmit" name="settingsubmit" title="按 Enter 键可随时提交您的修改" value="提交" />
          </div></td>
      </tr>
      <script type="text/JavaScript">_attachEvent(document.documentElement, 'keydown', function (e) { entersubmit(e, 'settingsubmit'); });</script>
    </table>
  </form>
</div>
</body>
</html>
