<!--<?php
include_once PrintEot('left');
print<<<EOT
-->
<h2 class="h1 mb10"><a href="$admin_file?adminjob=app&admintype=appslist">返回基础应用列表</a></h2>
<!--
EOT;
if(!$action){print <<<EOT
-->
<div class="nav3 mb10">
  <ul class="cc">
    <li class="current"><a href="$basename">基本设置</a></li>
    <li><a href="$basename&action=class">群组分类</a></li>
    <li><a href="$basename&action=colony">群组管理</a></li>
    <li><a href="$basename&action=cache">更新缓存</a></li>
  </ul>
</div>
<form action="$basename&" method="post">
  <input type="hidden" name="step" value="3">
  <h2 class="h1">基本设置</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr1 vt">
      <td class="td1">群组</td>
      <td class="td2">
        <div class="list_A list_80">
             <ul class="cc">
                  <li><input type="radio" name="groups_open" value="1" $groups_open_Y>开启</li>
                <li><input type="radio" name="groups_open" value="0" $groups_open_N>关闭</li>
             </ul>
         </div>
       </td> <td class="td2"><div class="help_a"></div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">允许创始人解散群组</td>
      <td class="td2">
        <div class="list_A list_80">
             <ul class="cc">
                  <li><input type="radio" name="config[remove]" value="1" $remove_Y>开启</li>
                <li><input type="radio" name="config[remove]" value="0" $remove_N>关闭</li>
             </ul>
         </div>
        </td><td class="td2"><div class="help_a"></div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">允许注册新群组</td>
      <td class="td2">
      <div class="list_A list_80">
             <ul class="cc">
                  <li><input type="radio" name="config[newcolony]" value="1" $newcolony_Y>开启</li>
                <li><input type="radio" name="config[newcolony]" value="0" $newcolony_N>关闭</li>
             </ul>
         </div>
		</td><td class="td2"><div class="help_a"></div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">创建群组认证码</td>
      <td class="td2">
      <div class="list_A list_80">
             <ul class="cc">
                  <li><input type="radio" name="config[groups_gdcheck]" value="1" $groups_gdcheck_Y />开启</li>
                <li><input type="radio" name="config[groups_gdcheck]" value="0" $groups_gdcheck_N />关闭</li>
             </ul>
         </div>
        </td><td class="td2"><div class="help_a"></div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">发表新主题认证码</td>
      <td class="td2">
      <div class="list_A list_80">
             <ul class="cc">
                  <li><input type="radio" name="config[groups_p_gdcheck]" value="1" $groups_p_gdcheck_Y />开启</li>
                <li><input type="radio" name="config[groups_p_gdcheck]" value="0" $groups_p_gdcheck_N />关闭</li>
             </ul>
         </div>
        </td><td class="td2"><div class="help_a"></div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">创建群组验证问题</td>
      <td class="td2">
      <div class="list_A list_80">
             <ul class="cc">
                  <li><input type="radio" name="config[groups_qcheck]" value="1" $groups_qcheck_Y />开启</li>
                <li><input type="radio" name="config[groups_qcheck]" value="0" $groups_qcheck_N />关闭</li>
             </ul>
         </div>
        </td><td class="td2"><div class="help_a"></div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">发表新主题验证问题</td>
      <td class="td2">
      <div class="list_A list_80">
             <ul class="cc">
                  <li><input type="radio" name="config[groups_p_qcheck]" value="1" $groups_p_qcheck_Y />开启</li>
                <li><input type="radio" name="config[groups_p_qcheck]" value="0" $groups_p_qcheck_N />关闭</li>
             </ul>
         </div>
        </td><td class="td2"><div class="help_a"></div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">创建群组的个数限制</td>
      <td class="td2"><input name="config[allowcreate]" class="input input_wa" value="$o_allowcreate">
        </td>
		<td class="td2"><div class="help_a">每个会员最多能创建群组的个数。0 或 留空 表示没限制</div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">加入群组的个数限制</td>
      <td class="td2"><input name="config[allowjoin]" class="input input_wa" value="$o_allowjoin">
        </td>
		<td class="td2"><div class="help_a">每个会员最多能加入群组的个数。0 或 留空 表示没限制</div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">群组容纳会员最大值</td>
      <td class="td2"><input name="config[memberfull]" class="input input_wa" value="$o_memberfull">
        </td>
		<td class="td2"><div class="help_a">0 或 留空 表示没限制</div></td> 
    </tr>
    <tr class="tr1 vt">
      <td class="td1">群组标志图片最大尺寸</td>
      <td class="td2"><input name="config[imgsize]" class="input input_wa" value="$o_imgsize">
        </td>
		<td class="td2"><div class="help_a">单位k，0 或 留空 则按站点模式配置</div></td> 
    </tr>
    <!-- <tr class="tr1 vt"><td>群组标志图片宽高范围[像素]</td>
<td><input name="config[imgwidth]" size="8" class="input" value="$o_imgwidth"> 宽
<input name="config[imgheight]" size="8" class="input" value="$o_imgheight"> 高 0 或 留空 表示没限制</td></tr> -->
    <tr class="tr1 vt">
      <td class="td1">允许创建群组的用户组</td>
      <td class="td2">$creategroup</td>
	  <td class="td2"><div class="help_a">全不选则允许所有用户组创建</div></td> 
    </tr>
  </table>
  </div>
  <h3 class="h1"><span class="mr20">群组积分奖惩设置></span><span class="linka">注:<b>威望积分</b>支持小数点后一位，其他积分只允许整数！</span></h3>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td class="td2">积分名称</td>
      <td class="td2">创建群组(-)</td>
      <td class="td2">加入群组(-)</td>
      <td class="td2">创建相册(-)</td>
      <td class="td2">上传相片(+)</td>
      <td class="td2">删除相片(-)</td>
      <!-- <td>发表主题(+)</td>
		<td>发表回复(+)</td>
		<td>删除主题(-)</td>
		<td>删除回复(-)</td> -->
    </tr>
<!--
EOT;
foreach($credit->cType as $key => $value){print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">$value</td>
      <td class="td2"><input name="creditset[Creategroup][$key]" value="{$creditset[Creategroup][$key]}" size="8" class="input" /></td>
      <td class="td2"><input name="creditset[Joingroup][$key]" value="{$creditset[Joingroup][$key]}" size="8" class="input" /></td>
      <td class="td2"><input name="creditset[Createalbum][$key]" value="{$creditset[Createalbum][$key]}" size="8" class="input" /></td>
      <td class="td2"><input name="creditset[Uploadphoto][$key]" value="{$creditset[Uploadphoto][$key]}" size="8" class="input" /></td>
      <td class="td2"><input name="creditset[Deletephoto][$key]" value="{$creditset[Deletephoto][$key]}" size="8" class="input" /></td>
      <!-- <td><input name="creditset[Post][$key]" value="{$creditset[Post][$key]}" size="8" class="input" /></td>
		<td><input name="creditset[Reply][$key]" value="{$creditset[Reply][$key]}" size="8" class="input" /></td>
		<td><input name="creditset[Delete][$key]" value="{$creditset[Delete][$key]}" size="8" class="input" /></td>
		<td><input name="creditset[Deleterp][$key]" value="{$creditset[Deleterp][$key]}" size="8" class="input" /></td> -->
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <h3 class="h1"><span class="mr20">群组积分流通记录</span><span class="linka">此功能可以详细记录某种积分的流通情况，帮助站长更加清晰地掌握论坛的积分状况！</span></h3>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td class="td2">积分名称</td>
      <td class="td2">创建群组</td>
      <td class="td2">加入群组</td>
      <td class="td2">创建相册</td>
      <td class="td2">上传相片</td>
      <td class="td2">删除相片</td>
      <!-- <td>发表主题</td>
		<td>发表回复</td>
		<td>删除主题</td>
		<td>删除回复</td> -->
    </tr>
<!--
EOT;
foreach($credit->cType as $key => $value){print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">$value</td>
      <td class="td2"><input type="checkbox" name="creditlog[Creategroup][$key]" value="1" {$creditlog[Creategroup][$key]} /></td>
      <td class="td2"><input type="checkbox" name="creditlog[Joingroup][$key]" value="1" {$creditlog[Joingroup][$key]} /></td>
      <td class="td2"><input type="checkbox" name="creditlog[Createalbum][$key]" value="1" {$creditlog[Createalbum][$key]} /></td>
      <td class="td2"><input type="checkbox" name="creditlog[Uploadphoto][$key]" value="1" {$creditlog[Uploadphoto][$key]} /></td>
      <td class="td2"><input type="checkbox" name="creditlog[Deletephoto][$key]" value="1" {$creditlog[Deletephoto][$key]} /></td>
      <!-- <td><input type="checkbox" name="creditlog[Post][$key]" value="1" {$creditlog[Post][$key]} /></td>
		<td><input type="checkbox" name="creditlog[Reply][$key]" value="1" {$creditlog[Reply][$key]} /></td>
		<td><input type="checkbox" name="creditlog[Delete][$key]" value="1" {$creditlog[Delete][$key]} /></td>
		<td><input type="checkbox" name="creditlog[Deleterp][$key]" value="1" {$creditlog[Deleterp][$key]} /></td> -->
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<!--
EOT;
}elseif($action=='class'){print <<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li><a href="$basename">基本设置</a></li>
      <li class="current"><a href="$basename&action=class">群组分类</a></li>
      <li><a href="$basename&action=colony">群组管理</a></li>
      <!-- <li><a href="$basename&action=log">日志管理</a></li> -->
      <li><a href="$basename&action=cache">更新缓存</a></li>
    </ul>
</div>
<form action="$basename&" method="post">
  <input type="hidden" name="action" value="class" />
  <input type="hidden" name="step" value="2" />
  <h2 class="h1">群组分类</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td>开启</td>
      <td>群组分类</td>
      <td width="80">群组个数</td>
    </tr>
<!--
EOT;
foreach($o_classdb as $key => $value){print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2"><input type="checkbox" name="" disabled /></td>
      <td class="td2">{$forum[$key][name]}（分类）</td>
      <td class="td2">--</td>
    </tr>
    <tbody>
<!--
EOT;
foreach ($value as $k => $v){
$ifcheck = in_array($v,$isclass) ? ' checked' : '';
isset($classdb[$v]['cnsum']) || $classdb[$v]['cnsum'] = 0;
print <<<EOT
-->
      <tr class="tr1 vt">
        <td class="td2"><input type="checkbox" name="selid[]" value="$v"{$ifcheck} /></td>
        <td class="td2"><input type="text" name="cname[$v]" value="{$classdb[$v][cname]}"  class="input input_wc mr5" />(版块：{$forum[$v][name]})</td>
        <td class="td2">{$classdb[$v][cnsum]}</td>
      </tr>
<!--
EOT;
}print <<<EOT
-->
    </tbody>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<!--
EOT;
} elseif ($action == 'credit') {print <<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li><a href="$basename">基本设置</a></li>
      <li><a href="$basename&action=class">群组分类</a></li>
      <li><a href="$basename&action=colony">群组管理</a></li>
      <li><a href="$basename&action=cache">更新缓存</a></li>
    </ul>
</div>
<form action="$basename&" method="post">
  <input type="hidden" name="action" value="credit" />
  <input type="hidden" name="fid" value="$fid" />
  <input type="hidden" name="step" value="2" />
  <h2 class="h1"><span class="mr20">积分策略></span><span class="linka">注:<b>威望积分</b>支持小数点后一位，其他积分只允许整数！</span></h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td>积分名称</td>
      <td>创建群组(-)</td>
      <td>加入群组(-)</td>
      <td>创建相册(-)</td>
      <td>上传相片(+)</td>
      <td>删除相片(-)</td>
      <td>发表主题(+)</td>
      <td>发表回复(+)</td>
      <td>删除主题(-)</td>
      <td>删除回复(-)</td>
    </tr>
<!--
EOT;
foreach($credit->cType as $key => $value){print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">$value</td>
      <td class="td2"><input name="creditset[Creategroup][$key]" value="{$creditset[Creategroup][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Joingroup][$key]" value="{$creditset[Joingroup][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Createalbum][$key]" value="{$creditset[Createalbum][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Uploadphoto][$key]" value="{$creditset[Uploadphoto][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Deletephoto][$key]" value="{$creditset[Deletephoto][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Post][$key]" value="{$creditset[Post][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Reply][$key]" value="{$creditset[Reply][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Delete][$key]" value="{$creditset[Delete][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Deleterp][$key]" value="{$creditset[Deleterp][$key]}" class="input input_wc" /></td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<!--
EOT;
}elseif($action=='colony'){print <<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li><a href="$basename">基本设置</a></li>
      <li><a href="$basename&action=class">群组分类</a></li>
      <li class="current"><a href="$basename&action=colony" >群组管理</a></li>
      <li><a href="$basename&action=cache">更新缓存</a></li>
    </ul>
</div>
<h2 class="h1">搜索内容</h2>
<form method="POST" action="$basename&action=colony">
<div class="admin_table mb10">
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr class="tr1 vt">
          <td class="td1">所属分类</td>
          <td class="td2"><select name="cid" class="select_wa mr20">$options</select></td>
        </tr>
        <tr class="tr1 vt">
          <td class="td1">群组名称</td>
          <td class="td2"><input name="cname" class="input input_wa mr20" value="">（可使用通配符*）</td>
        </tr>
        <tr class="tr1 vt">
          <td class="td1">创始人</td>
          <td class="td2"><input name="admin" class="input input_wa mr20" value="">（可使用通配符*）</td>
        </tr>
     </table>
 </div>
 <div class="mb10 tac">
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<form action="$basename&" method="post">
  <input type="hidden" name="action" value="update_c">
  <input type="hidden" name="step" value="edit">
  <h2 class="h1">群组管理</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td>ID</td>
      <td>群组名称</td>
      <td>创始人</td>
      <td>所属分类</td>
      <td>操作</td>
    </tr>
<!--
EOT;
foreach($colonys as $value){
$id++;print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">$id</td>
      <td class="td2"><a href="apps.php?q=group&cyid=$value[id]" target="_blank">$value[cname]</a></td>
      <td class="td2"><a href="u.php?username=$value[admin]" target="_blank">$value[admin]</a></td>
      <td class="td2">{$value[classname]}</td>
      <td class="td2"><a href="$basename&action=editcolony&cyid=$value[id]" class="mr20">[编辑]</a>
      <a href="$basename&action=delcolony&cyid=$value[id]" onclick="return checkdel();" title="删除">[删除]</a></td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <div class="cc">$pages</div>
</form>
<script language="JavaScript">
function checkdel() {
	if (confirm('您确定要删除这个群组吗？')) {
		return true;
	}
	return false;
}
</script>
<!--
EOT;
} elseif($action == 'editcolony') {print <<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li><a href="$basename">基本设置</a></li>
      <li><a href="$basename&action=class">群组分类</a></li>
      <li class="current"><a href="$basename&action=colony" >群组管理</a></li>
      <li><a href="$basename&action=cache">更新缓存</a></li>
    </ul>
</div>
<form action="$basename&" method="post">
  <input type="hidden" name="action" value="editcolony" />
  <input type="hidden" name="cyid" value="$cyid" />
  <input type="hidden" name="step" value="3" />

  <h2 class="h1">群组基本信息</h2>
<div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr1 vt">
      <td class="td2" width="150">群组名称</td>
      <td class="td2" ><input type="text" class="input" name="cname" id="cname" value="$colony[cname]" />
        &nbsp;<span id="cname_warn" class="gray">限 20 字节</span></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td2" >创始人</td>
      <td class="td2" ><input type="text" name="admin" value="$colony[admin]" /></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td2" >群组分类</td>
      <td class="td2" ><select name="cid">
          $options
        </select>
        （修改群组分类，将同时移动群组所属帖子到相应版块，请慎用）</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td2" >加入权限</td>
      <td class="td2" ><select name="ifcheck">
          <option value="2" $ifcheck_2>完全开放</option>
          <option value="1" $ifcheck_1>需审核</option>
          <option value="0" $ifcheck_0>不允许加入</option>
        </select>
      </td>
    </tr>
    <tr class="tr1 vt">
      <td class="td2" >公开群组内容</td>
      <td class="td2" ><input type="radio" name="ifopen" value="1" $ifopen_Y />
        开启
        <input type="radio" name="ifopen" value="0" $ifopen_N />
        关闭</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td2" >公开群组相册</td>
      <td class="td2" ><input type="radio" name="albumopen" value="1" $albumopen_Y />
        开启
        <input type="radio" name="albumopen" value="0" $albumopen_N />
        关闭</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td2" >群组公告</td>
      <td class="td2" ><textarea name="annouce" id="annouce" style="width:350px;height:70px">{$colony[annouce]}</textarea>

        <span id="annouce_warn">限 255 字节</span> </td>
    </tr>
    <tr class="tr1 vt">
      <td class="td2" >群组描述</td>
      <td class="td2" ><textarea name="descrip" id="descrip" style="width:350px;height:70px">{$colony[descrip]}</textarea>

        <span id="descrip_warn">限 255 字节</span> </td>
    </tr>
  </table>
  <!--<h2>群组自定义积分设置</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3" align="center">
		<td width="25%">积分名称</td>
		<td>积分单位</td>
		<td>积分说明</td>
		<td><a style="color:blue;cursor:pointer;" onclick="addtbody('cdiymode','cdiybody');">[添加]</a></td>
	</tr>
	<tbody id="cdiymode" style="display:none"><tr class="tr3" align="center">
		<td><input name="cdiy_name[]" size="30" class="input" /></td>
		<td><input name="cdiy_unit[]" size="30" class="input" /></td>
		<td><input name="cdiy_desc[]" size="30" class="input" /></td>
		<td><a style="color:orange;cursor:pointer" onclick="deltbody(this);">[删除]</a></td>
	</tr></tbody>-->
<!--
EOT;
foreach ($g_credits as $key => $value) {print <<<EOT
-->
<!--  <tr class="tr1 vt" align="center">
    <td class="td2" ><input name="credit_name[$key]" value="{$value[name]}" size="30" class="input" /></td>
    <td class="td2" ><input name="credit_unit[$key]" value="{$value[unit]}" size="30" class="input" /></td>
    <td class="td2" ><input name="credit_desc[$key]" value="{$value[description]}" size="30" class="input" /></td>
    <td class="td2" ><a style="color:orange;cursor:pointer" onclick="deltbody(this);">[删除]</a></td>
  </tr>-->
<!--
EOT;
}print <<<EOT
-->
  <tbody id="cdiybody">
  </tbody>
  </table>
<!--
  <h2 class="h1">群组积分奖惩设置</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td class="td2">积分名称</td>
      <td class="td2">加入群组(-)</td>
      <td class="td2">创建相册(-)</td>
      <td class="td2">上传相片(+)</td>
      <td class="td2">删除相片(-)</td>
      <td class="td2">发表主题(+)</td>
      <td class="td2">发表回复(+)</td>
      <td class="td2">删除主题(-)</td>
      <td class="td2">删除回复(-)</td>
    </tr> -->
<!--
EOT;
foreach($g_all as $key => $value){print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">$value</td>
      <td class="td2"><input name="creditset[Joingroup][$key]" value="{$creditset[Joingroup][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Createalbum][$key]" value="{$creditset[Createalbum][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Uploadphoto][$key]" value="{$creditset[Uploadphoto][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Deletephoto][$key]" value="{$creditset[Deletephoto][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Post][$key]" value="{$creditset[Post][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Reply][$key]" value="{$creditset[Reply][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Delete][$key]" value="{$creditset[Delete][$key]}" class="input input_wc" /></td>
      <td class="td2"><input name="creditset[Deleterp][$key]" value="{$creditset[Deleterp][$key]}" class="input input_wc" /></td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit">保存设置</button></span></span>
   </div>
</form>
<script language="JavaScript">
function addtbody(mode,tbody){
	if (getObj(mode)) {
		var s = getObj(mode).firstChild.cloneNode(true);
		getObj(tbody).appendChild(s);
	}
}
function deltbody(obj){
	var o = obj.parentNode.parentNode;
	o.parentNode.removeChild(o);
}
addtbody('cdiymode','cdiybody');
</script>
<!--
EOT;
}elseif($action=='log'){print <<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li><a href="$basename">基本设置</a></li>
      <li><a href="$basename&action=class">群组分类</a></li>
      <li><a href="$basename&action=colony">群组管理</a></li>
      <li><a href="$basename&action=log">日志管理</a></li>
      <li><a href="$basename&action=cache">更新缓存</a></li>
    </ul>
</div>
<form action="$basename&" method="post">
  <h2 class="h1">描述搜索</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td class="td1">关键字</td>
      <td class="td2"><input name="keyword" class="input input_wa mr20"><span class="bt2"><span><button type="submit" value="提 交">提 交</button></span></span></td>
    </tr>
  </table>
  </div>
</form>
<form action="$basename&" method="post">
  <input type="hidden" name="action" value="log">
  <input type="hidden" name="step" value="del">
  <h2 class="h1">操作记录</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td>ID</td>
      <td>类型</td>
      <td">$cn_name</td>
      <td>用户名</td>
      <td>描述</td>
      <td>日期</td>
      <td>删除</td>
    </tr>
<!--
EOT;
foreach($logdb as $value){
$id++;print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">$id</td>
      <td class="td2">{$lang[logtype][$value[type]]}</td>
      <td class="td2"><a href="hack.php?H_name=colony&cyid=$value[field2]&job=view&id=$value[field2]" target="_blank">$value[field3]</a></td>
      <td class="td2">$value[username1]</td>
      <td class="td2">$value[descrip]</td>
      <td class="td2">$value[timestamp]</td>
      <td class="td2"><input type="checkbox" name="selid[]" value="$value[id]"></td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <div class="cc">$pages</div>
  <div class="mb10 tac">
    <span class="bt"><span><button type="button" name="chkall" onclick="CheckAll(this.form,'2')">全 选</button></span></span>
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<script language=JavaScript>
function CheckAll(form,len){
	for (var i=0;i<form.elements.length-len;i++){
		var e = form.elements[i];
		e.checked == true ? e.checked = false : e.checked = true;
	}
}
</script>
<!--
EOT;
}elseif($action=='cache'){print <<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li><a href="$basename">基本设置</a></li>
      <li><a href="$basename&action=class">群组分类</a></li>
      <li><a href="$basename&action=colony">群组管理</a></li>
      <li class="current"><a href="$basename&action=cache">更新缓存</a></li>
    </ul>
</div>
<form action="$basename&" method="post">
  <input type="hidden" name="action" value="setting">
  <input type="hidden" name="step" value="updatecache">
  <h2 class="h1">缓存更新</h2>
  <div class="admin_table mb10">
      <table width="100%" cellspacing="0" cellpadding="0">
      <tr class="tr1 vt">
        <td class="td1">更新分类管理</td>
        <td class="td2"><span class="bt2"><span><button type="submit" value="提 交">提 交</button></span></span></td>
		 <td class="td2"><div class="help_a">  </div></td>
      </tr>
    <!--</form>
    <form action="$basename&" method="post">-->
      <input type="hidden" name="action" value="cache">
      <input type="hidden" name="step" value="updatecache">
      <tr class="tr1 vt">
        <td class="td1">更新群组分类统计数</td>
        <td class="td2"><span class="bt2"><span><button type="submit" value="提 交">提 交</button></span></span></td>
		 <td class="td2"><div class="help_a">当群组分类统计不准确时，可用此功能重新统计</div></td>
      </tr>
    <!--</form>
    <form action="$basename&" method="post" onsubmit="if(confirm('此功能将删除没有进行分类的群组，删除后不能再恢复。若只是修改群组分类，请到“群组管理”处修改分类。 请确定是否清除？')){ return true;} else {return false;}">
    --> <input type="hidden" name="action" value="cache">
      <input type="hidden" name="step" value="delcolony">
      <tr class="tr1 vt">
        <td class="td1">清除没有分类的群组</td>
        <td class="td2"><span class="bt2"><span><button type="submit" value="提 交">提 交</button></span></span></td>
		 <td class="td2"><div class="help_a">此功能将删除没有进行分类的群组，删除后不能再恢复!若只是修改群组分类，请到<a href="$basename&action=colony" class="xia">群组管理</a> 处修改分类 </div></td>
      </tr>
      </table>
      </div>
</form>
<!--
EOT;
}elseif($action == 'argument'){print <<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li class="current"><a href="$basename&action=argument">帖子管理</a></li>
      <li><a href="$basename&action=album">相册管理</a></li>
      <li><a href="$basename&action=photos">相片管理</a></li>
    </ul>
</div>
<!--
EOT;
if ($step == 'list') {print<<<EOT
-->
<form action="$basename&action=argument" method="post">
  <input type="hidden" name="step" value="delete" />
  <input type="hidden" name="ttype" value="$ttype" />
  <input type="hidden" name="ttable" value="$ttable" />
  <input type="hidden" name="ptable" value="$ptable" />
  <h2 class="h1">文章列表</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2 vt td_bgB">
      <td>ID</td>
      <td>标 题</td>
      <td>作 者</td>
      <td>所属群组</td>
      <td>发表日期</td>
      <td>类型</td>
      <td>&nbsp;</td>
    </tr>
<!--
EOT;
$id = ($page-1)*$perpage;
foreach($argumentdb as $value){
$j_lang = isset($value['pid']) ? '回复' : '主题';
$id++;print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">$id</td>
      <td class="td2"><a href="apps.php?q=group&cyid=$value[cyid]&a=read&tid=$value[tid]" target="_blank">$value[subject]</a></td>
      <td class="td2"><a href="u.php?action=show&uid=$value[authorid]" target="_blank">$value[author]</a></td>
      <td class="td2"><a href="apps.php?q=group&cyid=$value[cyid]" target="_blank">$value[cname]</a></td>
      <td class="td2">$value[postdate]</td>
      <td class="td2">$j_lang</td>
      <td class="td2"><input type="checkbox" name="delid[]" value="$value[delid]"></td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <div class="cc">$pages</div>
  <div class="mb10 tac">
    <span class="bt"><span><button type="button" name="chkall" onclick="CheckAll(this.form)">全 选</button></span></span>
    <span class="btn"><span><button type="submit" onclick="return Checkdel();">删除</button></span></span>
   </div>
</form>
<script language="JavaScript">
function Checkdel(){
	if (!confirm("您确定要删除选中项吗?")) {
		return false;
	}else{
		return true;
	}
}
</script>
<!--
EOT;
} else {print<<<EOT
-->
<script language="JavaScript" src="js/date.js"></script>
<form action="$basename&action=argument" method="post" name="FORM">
  <input type="hidden" name="step" value="list">
  <h2 class="h1">帖子搜索</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr1 vt">
      <td class="td1">群组分类 </td>
      <td class="td2"><select name="cid" class="select_wa">
          <option value="-1">不限制</option>$classoption
        </select>
        </td>
        <td class="td2"><!--群组分类:--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">群组名称</td>
      <td class="td2"><input type="text" name="cname" value=""  class="input input_wa"></td>
      <td class="td2"><!--群组名称: (可使用通配符 "*")--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">类型</td>
      <td class="td2"><select name="ttype" onchange="seltable(this.value);" class="select_wa">
          <option value="1">主题</option>
          <option value="2">回复</option>
        </select>
        <span id="table_1" style="display:none;">$t_table</span><span id="table_2" style="display:none;">$p_table</span>
        <script language="JavaScript">
function seltable(v) {
	getObj('table_1').style.display = (v == 1) ? '' : 'none';
	getObj('table_2').style.display = (v == 2) ? '' : 'none';
}
seltable(document.FORM.ttype.value);
</script>
      </td>
      <td class="td2"><!--类型:--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">作者</td>
      <td class="td2"><input name="author" class="input input_wa mr20 fl" value="">
     		<ul class="cc list_80 fl list_A">
                <li><input type="checkbox" name="ckauthor" value="1" />精确匹配</li>
            </ul>
        </td>
        <td class="td2"><!--作 者: (可使用通配符 "*")--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">关键字</td>
      <td class="td2"><input name="keyword" class="input input_wa mr20 fl" value="">
        <select name="ktype" class="select_wa fl mr20">
          <option value="subject">标题</option>
          <option value="content">内容</option>
        </select>
        	<ul class="cc list_80 fl list_A">
                <li><input type="checkbox" name="ckkeyword" value="1">精确匹配</li>
             </ul>
         </td>
        <td class="td2"><!--关键字: (可使用通配符 "*")--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">发表日期</td>
      <td class="td2">
      <div class="input_img fl"><i class="input_time" title="选择时间">选择时间</i><input type="text" name="postdate_s" value="" id="postdate_s" onclick="javascript:ShowCalendar(this.id)"></div><span class="p_lr_10 fl">至</span><div class="input_img fl"><i class="input_time" title="选择时间">选择时间</i> <input type="text" name="postdate_e" id="postdate_e" value="" onclick="javascript:ShowCalendar(this.id)"></div>
       </td>
        <td class="td2"><!--发表日期: (格式 yyyy-mm-dd)--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">排序</td>
      <td class="td2"><select name="orderby" class="select_wa fl mr20">
          <option value="postdate">发表日期</option>
          <option value="authorid">帖子作者</option>
        </select>
        <ul class="cc list_80 fl list_A">
            <li><input type="radio" name="sc" value="DESC" checked />倒序</li>
            <li><input type="radio" name="sc" value="ASC" />正序</li>
         </ul>
        </td>
        <td class="td2"><!--排序:--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">每页显示条数 </td>
      <td class="td2"><input name="perpage" class="input input_wa" value="30"></td>
      <td class="td2"><!--每页显示条数--></td>
    </tr>
  </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<!--
EOT;
}} elseif ($action == 'album') {print <<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li><a href="$basename&action=argument">帖子管理</a></li>
      <li class="current"><a href="$basename&action=album">相册管理</a></li>
      <li><a href="$basename&action=photos">相片管理</a></li>
    </ul>
</div>
<!--
EOT;
if ($job == 'list') {print<<<EOT
-->
<form action="$basename&action=album&" method="post">
  <input type="hidden" name="job" value="delete">
  <input type="hidden" name="cname" value="$cname">
  <input type="hidden" name="aname" value="$aname">
  <input type="hidden" name="owner" value="$owner">
  <input type="hidden" name="cid" value="$cid">
  <input type="hidden" name="crtime_s" value="$crtime_s">
  <input type="hidden" name="crtime_e" value="$crtime_e">
  <input type="hidden" name="lasttime_s" value="$lasttime_s">
  <input type="hidden" name="lasttime_e" value="$lasttime_e">
  <input type="hidden" name="private" value="$private">
  <input type="hidden" name="lines" value="$lines">
  <input type="hidden" name="orderway" value="$orderway">
  <input type="hidden" name="ordertype" value="$ordertype">
  <input type="hidden" name="page" value="$page">
  <h2 class="h1">相册列表</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td width="15">ID</td>
      <td>相册名</td>
      <td>所属群组</td>
      <td>创始人</td>
      <td>创建时间</td>
      <td width="60">最后更新时间</td>
      <td width="60">可见度</td>
      <td width="36">相片数</td>
      <td width="80">操作</td>
      <td width="24">删除</td>
    </tr>
<!--
EOT;
foreach ($albumdb as $key => $album) {
if(!$album['aname'])continue;
$key+=($page-1)*$lines+1;
print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">$key</td>
      <td class="td2"><a href="mode.php?m=o&q=galbum&a=album&cyid=$album[ownerid]&aid=$album[aid]" target="_blank" title="$album[aname]">$album[s_aname]</a></td>
      <td class="td2"><p class="lh_18"><a href="mode.php?m=o&q=group&cyid=$album[ownerid]" target="_blank" title="$album[cname]">$album[cname]</a></p></td>
      <td class="td2"><a href="u.php?username=$album[admin]" target="_blank">$album[admin]</a></td>
      <td class="td2">$album[crtime]</td>
      <td class="td2">$album[lasttime]</td>
      <td class="td2">
<!--
EOT;
if ($album['private'] == 0) {print <<<EOT
-->
        全站可见
<!--
EOT;
}elseif($album['private'] == 1) {print <<<EOT
-->
        仅群内可见
<!--
EOT;
}print <<<EOT
-->
      </td>
      <td class="td2">$album[photonum]</td>
      <td class="td2"><a href="$basename&action=album&job=edit&aid=$album[aid]$urladd&page=$page" class="mr10">[编辑]</a>
      <a href="$basename&action=photos&job=list&aid=$album[aid]">[管理]</a></td>
      <td class="td2"><input type="checkbox" name="selid[]" value="$album[aid]"></td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
  </div>
  <div class="cc">$pages</div>
  <div class="mb10 tac">
    <span class="bt"><span><button type="button" name="chkall" onclick="CheckAll(this.form)">全 选</button></span></span>
    <span class="btn"><span><button type="submit" onclick="return checkdel();">提 交</button></span></span>
   </div>
</form>
<script language="JavaScript">
function checkdel(){
	if(confirm("确定要删除所选相册吗？" )){
		return true;
	}else{
		return false;
	}
}
</script>
<!--
EOT;
} elseif ($job == 'edit'){print <<<EOT
-->
<form action="$basename&action=album&job=edit" method="post">
  <input type="hidden" name="step" value="2">
  <input type="hidden" name="aid" value="$aid">
  <input type="hidden" name="url_cname" value="$cname">
  <input type="hidden" name="url_aname" value="$aname">
  <input type="hidden" name="url_owner" value="$owner">
  <input type="hidden" name="url_cid" value="$cid">
  <input type="hidden" name="url_crtime_s" value="$crtime_s">
  <input type="hidden" name="url_crtime_e" value="$crtime_e">
  <input type="hidden" name="url_lasttime_s" value="$lasttime_s">
  <input type="hidden" name="url_lasttime_e" value="$lasttime_e">
  <input type="hidden" name="url_private" value="$private">
  <input type="hidden" name="url_lines" value="$lines">
  <input type="hidden" name="url_orderway" value="$orderway">
  <input type="hidden" name="url_ordertype" value="$ordertype">
  <input type="hidden" name="url_page" value="$page">
  <h2 class="h1">相册编辑</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr1 vt">
      <td class="td1">相册名称</td>
      <td class="td2"><input class="input input_wa" name="aname" value="$album[aname]" ></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">相册描述</td>
      <td class="td2"><textarea name="aintro" cols="30"  class="textarea">$album[aintro]</textarea></td>
    </tr>
    <tr class="tr1 vt">
        <td class="td1">可见度</td>
        <td class="td2">
        <select name="private" class="select_wa">
        <option value="0" $private_0>全站可见</option>
        <option value="1" $private_1>仅群内可见</option></select>
        </td>
    </tr>
  </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit" name="chkall" onclick="CheckAll(this.form)">提 交</button></span></span>
    <span class="bt"><span><button type="button" onclick="javascript:history.go(-1);">返 回</button></span></span>
   </div>
</form>
<!--
EOT;
}else{print <<<EOT
-->
<script language="JavaScript" src="js/date.js"></script>
<form action="$basename&action=album&" method="post">
  <input type="hidden" name="job" value="list">
  <h2 class="h1">相册搜索</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr1 vt">
      <td class="td1">群组分类</td>
      <td class="td2"><select name="cid" class="select_wa">
          <option value="">不限制</option>
<!--
EOT;
foreach ($o_classdb as $key => $value) {print <<<EOT
-->
          <option value="$key">$value</option>
<!--
EOT;
}print <<<EOT
-->
        </select>
      </td>
      <td class="td2">&nbsp;</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">群组名称</td>
      <td class="td2"><input type="text" name="cname" value="" class="input input_wa"></td>
      <td class="td2"><!--群组名称（可使用通配符“*”）--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">相册名称</td>
      <td class="td2"><input type="text" name="aname" value="" class="input input_wa"></td>
      <td class="td2"><!--相册名称（可使用通配符“*”）--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">创建时间</td>
      <td class="td2">
      <div class="input_img fl"><i class="input_time" title="选择时间">选择时间</i><input type="text" name="crtime_s" value="" id="crtime_s" onclick="javascript:ShowCalendar(this.id)"></div><span class="p_lr_10 fl">至</span><div class="input_img fl"><i class="input_time" title="选择时间">选择时间</i><input type="text" name="crtime_e" id="crtime_e" value="" onclick="javascript:ShowCalendar(this.id)"></div>
        </td>
        <td class="td2">&nbsp;</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">最后更新日期</td>
      <td class="td2">
      <div class="input_img fl"><i class="input_time" title="选择时间">选择时间</i><input type="text" name="lasttime_s" id="lasttime_s" value="" onclick="javascript:ShowCalendar(this.id)"></div><span class="p_lr_10 fl">至</span><div class="input_img fl"><i class="input_time" title="选择时间">选择时间</i><input type="text" name="lasttime_e" id="lasttime_e" value="" onclick="javascript:ShowCalendar(this.id)"></div>
        </td>
        <td class="td2">&nbsp;</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">可见度</td>
      <td class="td2"><select name="private" class="select_wa">
          <option value="-1">不限制</option>
          <option value="0">全站可见</option>
          <option value="1">仅群内可见</option>
        </select></td>
        <td class="td2">&nbsp;</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">排序</td>
      <td class="td2"><select name="orderway" class="select_wa fl mr20">
          <option value="crtime">按发表时间排序</option>
          <option value="lasttime">最后更新时间</option>
        </select>
          <ul class="cc list_80 fl list_A">
             <li><input type="radio" name="ordertype" value="asc">正序</li>
             <li><input type="radio" name="ordertype" value="desc" checked="checked">倒序</li>
           </ul>
        </td>
        <td class="td2">&nbsp;</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">每页显示条数</td>
      <td class="td2"><input type="text" name="lines" value="30" class="input input_wa"></td>
      <td class="td2">&nbsp;</td>
    </tr>
  </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<!--
EOT;
}}elseif($action == 'photos'){print<<<EOT
-->
<div class="nav3 mb10 ta">
    <ul class="cc">
      <li><a href="$basename&action=argument">帖子管理</a></li>
      <li><a href="$basename&action=album">相册管理</a></li>
      <li class="current"><a href="$basename&action=photos">相片管理</a></li>
    </ul>
</div>
<!--
EOT;
if ($job == 'list') {print <<<EOT
-->
<style>
.admin_appimg li{float:left;width:150px;height:200px;line-height:18px;}
.admin_appimg li img{width:100px;height:100px;padding:5px;border:1px solid #ccc;background:#fff;margin-bottom:3px;}
</style>
<form action="$basename&action=photos&" method="post">
  <input type="hidden" name="job" value="delete">
  <input type="hidden" name="aid" value="$aid">
  <input type="hidden" name="cid" value="$cid">
  <input type="hidden" name="aname" value="$aname">
  <input type="hidden" name="cname" value="$cname">
  <input type="hidden" name="pintro" value="$pintro">
  <input type="hidden" name="uptime_s" value="$uptime_s">
  <input type="hidden" name="uptime_e" value="$uptime_e">
  <input type="hidden" name="orderway" value="$orderway">
  <input type="hidden" name="ordertype" value="$ordertype">
  <input type="hidden" name="lines" value="$lines">
  <input type="hidden" name="page" value="$page">
  <h2 class="h1 mb10">相片列表</h2>
  <div>
    <ul class="admin_appimg">
<!--
EOT;
foreach ($cnpho as $key => $photo) {print <<<EOT
-->
      <li> <a href="mode.php?m=o&q=galbum&a=view&pid=$photo[pid]&cyid=$photo[ownerid]" target="_blank"><img src="$photo[path]" border="0" width="100" height="100" title="$photo[aname]"/> </a>
        <p class="lh_18">所属群组：<a href="mode.php?m=o&q=group&cyid=$photo[ownerid]" target="_blank" title="$photo[cname]">$photo[cname]</a></p>
        <p class="lh_18">所属相册:<a href="$basename&action=photos&job=list&aid=$photo[aid]" title="$photo[aname]">$photo[s_aname]</a></p>
        <!-- <p>
			<a href="$admin_file?adminjob=mode&admintype=o_comments&job=list&type=photo&typeid=$photo[pid]">相片评论（$photo[c_num]）</a></p> -->
        <p>选中
          <input type="checkbox" name="selid[]" value="$photo[pid]">
        </p>
      </li>
<!--
EOT;
}print <<<EOT
-->
    </ul>
  </div>
  <div class="c"></div>
  <div class="cc">$pages</div>
  <center>
    <input class="btn" type='button' name='chkall' value='全 选' onclick='CheckAll(this.form)'>
    <input type="submit" value='删 除' class="btn" onclick="return checkdel();">
  </center>
  <div class="mb10 tac">
    <span class="bt"><span><button type="button" name="chkall" onclick="CheckAll(this.form)">全 选</button></span></span>
    <span class="btn"><span><button type="submit" onclick="return checkdel();">删 除</button></span></span>
   </div>
</form>

<script language="JavaScript">
function checkdel(){
	if(confirm("确定要删除所选相片吗？" )){
		return true;
	}else{
		return false;
	}
}
</script>
<!--
EOT;
} else {print <<<EOT
-->
<script language="JavaScript" src="js/date.js"></script>
<form action="$basename&action=photos&" method="post">
  <input type="hidden" name="job" value="list">
  <h2 class="h1">相片搜索</h2>
  <div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr1 vt">
      <td class="td1">群组分类</td>
      <td class="td2"><select name="cid" class="select_wa">
          <option value="">不限制</option>
<!--
EOT;
foreach ($o_classdb as $key => $value) {print <<<EOT
-->
          <option value="$key">$value</option>
<!--
EOT;
}print <<<EOT
-->
        </select>
      </td>
      <td class="td2">&nbsp;</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">群组名称</td>
      <td class="td2"><input type="text" name="cname" value="" class="input input_wa"></td>
      <td class="td2"><!--群组名称（可使用通配符“*”）--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">所属相册名称</td>
      <td class="td2"><input type="text" name="aname" value="" class="input input_wa"></td>
      <td class="td2"><!--所属相册名称（可使用通配符“*”）--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">作者名称</td>
      <td class="td2"><input type="text" name="uploader" value="" class="input input_wa"></td>
      <td class="td2"><!--作者名称（可使用通配符“*”）--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">描述</td>
      <td class="td2"><input type="text" name="pintro" value="" class="input input_wa"></td>
      <td class="td2"><!--描述（可使用通配符“*”）--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">上传日期</td>
      <td class="td2">
      	<div class="input_img fl"><i class="input_time" title="选择时间">选择时间</i><input type="text" name="uptime_s" value="" id="uptime_s" onclick="javascript:ShowCalendar(this.id)"></div><span class="p_lr_10 fl">至</span><div class="input_img fl"><i class="input_time" title="选择时间">选择时间</i> <input type="text" name="uptime_e" id="uptime_e" value="" onclick="javascript:ShowCalendar(this.id)"></div>
       </td>
        <td class="td2"><!--上传日期--></td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">排序</td>
      <td class="td2"><select name="orderway" class="input input_wa mr20 fl">
          <option value="uptime">上传日期</option>
          <option value="hits">浏览数</option>
        </select>
        	<ul class="cc list_80 fl list_A">
                <li><input type="radio" name="ordertype" value="asc" />正序</li>
                <li><input type="radio" name="ordertype" value="desc" checked="checked" />倒序</li>
            </ul>
        </td>
        <td class="td2">&nbsp;</td>
    </tr>
    <tr class="tr1 vt">
      <td class="td1">每页显示条数</td>
      <td class="td2"><input type="text" name="lines" value="30" class="input input_wa"></td>
      <td class="td2">&nbsp;</td>
    </tr>
  </table>
  </div>
  <div class="mb10 tac">
    <span class="btn"><span><button type="submit">提 交</button></span></span>
   </div>
</form>
<!--
EOT;
}}include_once PrintEot('adminbottom');
?>-->
