<!--<?php
include_once PrintEot('m_header');
print <<<EOT
-->
<div class="bgA">
<div class="wrapB cc" style="padding-top:10px;">
<div class="p10">
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td width="100" class="tac" style="padding-right:10px;">
                <img src="{$cnimg}" onload="imgResize(this,150)" />
            </td>
            <td valign="top" style="line-height:2">
														<p class="b f14">
				<span class="fr f12 fn"><a class="a-reply" href="#" onclick="shareOtherType('share_group');return false;">分享<span>+</span></a></span>
                $colony[cname]
                </p>
                <p class="f12">
<!--
EOT;
if ($colony[ifcyer]) {print <<<EOT
-->
					<a href="{$basename}q=$q&a=out&cyid=$cyid" onclick="return ajaxurl(this);" class="fr gray">退出群组</a>
<!--
EOT;
}else{print <<<EOT
-->
					<a href="{$basename}q=$q&a=join&cyid=$cyid" onclick="return ajaxurl(this);" class="fr">加入群组</a>
<!--
EOT;
}if (isset($o_classdb[$colony['classid']])) {print <<<EOT
-->
                分类：<a href="{$basename}q=groups&a=all&cid=$colony[classid]">{$o_classdb[$colony[classid]]}</a>
<!--
EOT;
}print <<<EOT
-->				
				</p>
    <p>成员：$colony[members]
				</p>
                <p>群相册：$colony[albumnum]</p>
                <div style="overflow:hidden;width:700px;height:20px;">$colony[descrip]</div>
            </td>
        </tr>
    </table>
</div>

<div id="share_group" style="display:none;">
	<div style="width:450px;">
		<div class="h" style="cursor:move" onmousedown="read.move(event);">
			<div class="pr cc" style="height:30px;">
			<div class="fl threadlist" style="padding-left:10px;">
			<a href="javascript:;" class="current b">分享</a>
			<a href="javascript:;" onclick="shareOtherType('recommend_group');return false;">推荐</a>
			</div>
			</div>
		</div>
		<ul class="nemu-list cc">
			<li>
				<div>摘要：</div>
				<div class="exp bgB">
					分享了一个群组 <b>$colony[cname]</b>
				</div>
			</li>
		</ul>
		<div class="c"></div>
		<ul class="nemu-list cc">
			<li>
				<div>描述：</div>
				<textarea  style="width:98%;height:110px;"></textarea>
			</li>
		</ul>
		<div class="menu-bt tac">
			<input class="bt3" type="button" value=" 确 定 " style="width:80px;" onclick="postShareOtherType('group','$cyid');">&nbsp;<input class="bt" type="button" value="取消" onclick="closep();"/>
		</div>
	</div>
</div>

<div id="recommend_group" style="display:none">
	<form method="post" action="mode.php?m=o&q=share&see=recommend&ajax=1" onsubmit="return false;">
	<input type="hidden" name="step" value="2" />
	<div style="width:450px;">
		<div class="h" style="cursor:move" onmousedown="read.move(event);">
			<div class="pr cc" style="height:30px;">
			<div class="fl threadlist" style="padding-left:10px;">
			<a href="javascript:;" onclick="shareOtherType('share_group');return false;">分享</a>
			<a href="javascript:;" class="current b">推荐</a>
			</div>
			</div>
		</div>
	<div style="padding:5px 20px 0;">
	<table width="100%" cellspacing="0" cellpadding="5">
		<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><div style="text-align:center;padding:10px 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();"/></div>
	</div>
	</div>
	</form>
</div>

		<div id="person-nav" class="cc" style="margin-top:10px;">
			<ul style="width:500px;overflow:hidden;">
				<li id="g_index"><a href="{$basename}q=$q&cyid=$cyid">首页</a></li>
				<li id="g_thread"><a href="{$basename}q=$q&a=thread&cyid=$cyid">讨论区</a></li>
				<li id="g_galbum"><a href="{$basename}q=galbum&cyid=$cyid">群组相册</a></li>
				<li id="g_member"><a href="{$basename}q=$q&a=member&cyid=$cyid">成员列表</a></li>
<!--
EOT;
if ($colony[ifcyer]) {print <<<EOT
-->
				<li id="g_uintro"><a href="{$basename}q=$q&a=uintro&cyid=$cyid&job=set">我的通讯录</a></li>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if ($ifadmin) {print <<<EOT
-->
				<li id="g_set"><a href="{$basename}q=$q&a=set&cyid=$cyid">群组设置</a></li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
		</div>
	<div class="contentC cc fl">

		<div class="c"></div>
<script language="JavaScript">
function imgResize(o, size) {
	if (o.width > o.height) {
		if (o.width > size) o.width = size;
	} else {
		if (o.height > size) o.height = size;
	}
}
function ajaxurl(o) {
	read.obj = o;
	ajax.send(o.href,'',ajax.get);
	return false;
}

function sendurl(o,id) {
	read.obj = o;
	sendmsg(o.href,'',id);
	return false;
}

setCurrent('g_{$a_key}','g_index','current');

function showAnnouce(){
	var annouce = getObj('annouce_div');
	if (annouce.style.display == 'none') {
		annouce.style.display = '';
	} else {
		annouce.style.display = 'none';
	}
}
function showConInfo(uid,cyid){
	ajax.send('mode.php?m=o&q=group&a=uintro&cyid='+cyid+'&uid='+uid,'',ajax.get);
}
</script>
<!--
EOT;
if (empty($a)) {print <<<EOT
-->
		<div class="pd8"><a style="cursor: pointer;" onclick="showAnnouce();">公告：{$colony[annouce_temp]}</a></div>
		<div class="pdD boxA" id="annouce_div" style="display:none">
        	<a style="cursor: pointer;" onclick="showAnnouce();" class="fr">隐藏</a>
        	<div class="p10" style="overflow:hidden;">{$colony[annouce]}</div>
        </div>
		<h4 class="h5A mt8">
			<span><b>群组相册</b></span>
			<small><a href="{$basename}q=galbum&a=upload&cyid=$cyid">添加新照片</a></small>
		</h4>
		<div class="list-img list-img-A cc">
			<ul>
<!--
EOT;
if($newphoto){
foreach ($newphoto as $value) {print <<<EOT
-->
				<li><a href="{$basename}q=galbum&a=view&cyid=$cyid&pid=$value[pid]"><img alt="" width="80" src="$value[path]" /></a></li>
<!--
EOT;
}} else {print <<<EOT
-->
				<li>暂无群组相册信息</li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
		</div>
			<div class="pdtb3 cc"><span class="more fr"><a href="{$basename}q=galbum&cyid=$cyid">查看更多</a></span></div>
		<div class="c"></div>
		<h4 class="h5A mt8">
			<span class="b">近期关注</span>
			<small><a href="{$basename}q=$q&a=post&cyid=$cyid">发表新话题</a></small>
		</h4>
		<div class="bdtA">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--
EOT;
if($argdb){print <<<EOT
-->
				<tr class="tr2">
					<td>标题</td>
					<td>作者</td>
					<td>最后发表时间</td>
				</tr>
<!--
EOT;
foreach ($argdb as $value) {print <<<EOT
-->
				<tr class="tr3">
					<td><a href="{$basename}q=$q&a=read&cyid=$cyid&tid=$value[tid]" class="pdr">$value[subject]</a></td>
					<td><a href="{$basename}q=user&u=$value[authorid]">$value[author]</a></td>
					<td><span class="pdr">$value[lastpost]</span></td>
				</tr>
<!--
EOT;
}}else{print <<<EOT
-->
				<tr><td style="padding:12px 20px;">群组近期暂无关注内容</td></tr>
<!--
EOT;
}print <<<EOT
-->
			</table>
		</div>
		<div class="pdtb3">
			<span class="more fr"><a href="{$basename}q=$q&a=thread&cyid=$cyid">查看更多</a></span>
		</div>
<!--
EOT;
} elseif ($a == 'thread') {print <<<EOT
-->
		<div class="bdtA mt8">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--
EOT;
if($argdb){print <<<EOT
-->
				<tr class="tr2">
					<td>标题</td>
					<td>作者</td>
					<td>最后发表时间</td>
				</tr>
<!--
EOT;
foreach ($argdb as $value) {print <<<EOT
-->
				<tr class="tr3">
					<td><a href="{$basename}q=$q&a=read&cyid=$cyid&tid=$value[tid]" class="pdr">$value[subject]</a></td>
					<td><a href="{$basename}q=user&u=$value[authorid]">$value[author]</a></td>
					<td><span class="pdr">$value[lastpost]</span></td>
				</tr>
<!--
EOT;
}}else{print <<<EOT
-->
				<tr class="tr3"><td>群组近期暂无关注内容</td></tr>
<!--
EOT;
}print <<<EOT
-->
			</table>$pages
		</div>
		<br />
		<h4 class="h5A mt8">
			<span class="b">快速发表</span>
		</h4>
		<div class="table-list">
			<form action="{$basename}q=$q&a=post&cyid=$cyid" method="post">
			<input type="hidden" name="step" value="3" />
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td width="15%" class="gray2">标题</td>
					<td><input type="text" name="subject" size="35" /></td>
				</tr>
				<tr>
					<td class="gray2">内容</td>
					<td><textarea name="content" style="width:400px;height:120px"></textarea></td>
				</tr>
				<tr>
					<td></td>
					<td><input class="bt3" type="submit" value="提 交" /></td>
				</tr>
			</table>
			</form>
		</div>
<!--
EOT;
} elseif ($a == 'read') {print <<<EOT
-->
		<div style="margin:20px auto;">
			<div class="list-dlA list-dlA-A" style="overflow:hidden;">
<!--
EOT;
foreach ($readdb as $key => $read) {print <<<EOT
-->
				<dl class="cc" id="lou_{$read[tid]}">
					<dt class="fl"><img src="$read[icon]" /></dt>
					<dd class="title1 bdbA">
						<p>
<!--
EOT;
if ($ifadmin || $read['authorid'] == $winduid) {print <<<EOT
-->
							<span class="fr"><a href="javascript:;" id="read_$read[lou]" class="a-reply">操作<span>▼</span></a></span>
							<div id="read_1_$read[lou]" class="menu menu-post cc" style="display:none;">
							<div class="menu-b cc">
								<a href="{$basename}q=$q&a=del&cyid=$cyid&tid=$read[tid]" style="float:right;margin-right:5px" onclick="return sendurl(this,'read_$read[lou]');">删除</a>
								<a href="{$basename}q=$q&a=edit&cyid=$cyid&tid=$read[tid]" style="float:right;margin-right:5px" onclick="return sendurl(this,'read_$read[lou]');">编辑</a>
							</div></div>
<!--
EOT;
}print <<<EOT
-->
							#$read[lou] <a href="{$basename}q=user&u=$read[authorid]" class="b blue  pdr">$read[author]</a>
<!--
EOT;
if ($read['lou'] == 0) {print <<<EOT
-->
							<a href="{$basename}q=group&a=read&cyid=$cyid&tid=$tid" class="b blue f16" id="subject_tpc">$read[subject]</a>
<!--
EOT;
}print <<<EOT
-->
							&nbsp;<span class="gray small">{$read[postdate]}</span>
						</p>
						<p class="text f14" style="line-height:1.8" id="read_{$read[tid]}">$read[content]</p>
					</dd>
				</dl>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>$pages
		<div class="table-list">
			<form action="{$basename}q=$q&a=reply&cyid=$cyid" method="post">
			<input type="hidden" name="tid" value="$tid" />
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td width="15%" class="gray2">快速发表</td>
					<td><textarea name="content" style="width:400px;height:120px"></textarea></td>
				</tr>
				<tr>
					<td></td>
					<td><input class="bt3" type="submit" value="提 交" /></td>
				</tr>
			</table>
			</form>
		</div>
<!--
EOT;
} elseif ($a == 'post') {print <<<EOT
-->
		<div class="table-list">
			<form action="{$basename}q=$q&a=$a&cyid=$cyid" method="post">
			<input type="hidden" name="step" value="3" />
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td width="15%" class="gray2">标题</td>
					<td><input type="text" name="subject" size="35" /></td>
				</tr>
				<tr>
					<td class="gray2">内容</td>
					<td><textarea name="content" style="width:400px;height:120px"></textarea></td>
				</tr>
				<tr>
					<td></td>
					<td><input class="bt3" type="submit" value="提 交" /></td>
				</tr>
			</table>
			</form>
		</div>
<!--
EOT;
} elseif ($a == 'member') {print <<<EOT
-->
		<div class="bdtA mt8">
			<form action="{$basename}q=$q&a=$a&cyid=$cyid" method="post">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr class="tr2">
					<td></td>
					<td>会员</td>
					<td>真实姓名</td>
					<td>身份</td>
					<td>性别</td>
					<td>通讯录</td>
					<td>短信</td>
					<td>加好友</td>
<!--
EOT;
if ($ifadmin){print <<<EOT
-->
					<td>操作</td>
<!--
EOT;
}print <<<EOT
-->
				</tr>
<!--
EOT;
foreach ($memdb as $key => $value) {print <<<EOT
-->
				<tr class="tr3">
					<td><img src="$value[icon]" onload="imgResize(this,50)" /></td>
					<td><b>$value[username]</b></td>
					<td>$value[realname]</td>
					<td>
<!--
EOT;
if ($colony['admin'] == $value['username']) {print <<<EOT
-->
						群主
<!--
EOT;
} elseif ($value['ifadmin'] == '1') {print <<<EOT
-->
						管理员
<!--
EOT;
} elseif ($value['ifadmin'] == '-1') {print <<<EOT
-->
						未验证
<!--
EOT;
} else {print <<<EOT
-->
						群员
<!--
EOT;
}print <<<EOT
-->
					</td>
					<td>
<!--
EOT;
if ($value['gender'] == '1') {print <<<EOT
-->
						男
<!--
EOT;
} elseif ($value['gender'] == '2') {print <<<EOT
-->
						女
<!--
EOT;
} else {print <<<EOT
-->
						保密
<!--
EOT;
}print <<<EOT
-->
					</td>
					<td><a style="cursor: pointer;" onclick="showConInfo('$value[uid]','$cyid')">查看</a></td>
					<td><a href="pw_ajax.php?action=msg&touid=$value[uid]" onclick="return ajaxurl(this);"><img src="$imgpath/$stylepath/read/email.gif" /></a></td>
					<td><a href="{$db_bbsurl}/pw_ajax.php?action=addfriend&touid=$value[uid]" onclick="return ajaxurl(this);"><img src="$imgpath/$stylepath/u-adf.gif" /></a></td>
<!--
EOT;
if ($ifadmin){print <<<EOT
-->
					<td><input type="checkbox" name="selid[]" value="$value[uid]" /></td>
<!--
EOT;
}print <<<EOT
-->
				</tr>
<!--
EOT;
}print <<<EOT
-->
			</table>{$pages}
<!--
EOT;
if ($ifadmin) {print <<<EOT
-->
			<div style="margin-top:1em;text-align:center">
<!--
EOT;
if ($colony['admin'] == $windid) {print <<<EOT
-->
				<input type="radio" name="step" value="addadmin" />设为管理
				<input type="radio" name="step" value="deladmin" />取消管理
<!--
EOT;
}print <<<EOT
-->
				<input type="radio" name="step" value="check" checked />审核会员
				<input type="radio" name="step" value="del" />踢出本群
				<input class="bt" type="button" name="chkall" value="全 选" onclick="CheckAll(this.form)" />
				<input class="btn" type="submit" value="提 交" />
			</div>
<script language="JavaScript">
var ifcheck = true;
function CheckAll(form) {
	for (var i = 0; i < form.elements.length - 2; i++) {
		var e = form.elements[i];
		if (e.type == 'checkbox') e.checked = ifcheck;
	}
	ifcheck = ifcheck == true ? false : true;
}
</script>
<!--
EOT;
}print <<<EOT
-->
			</form>
		</div>
<!--
EOT;
} elseif ($a == 'uintro') {
print <<<EOT
-->
		<div>
			<form action="{$basename}q=$q&a=$a" method="post">
			<input type="hidden" name="step" value="3" />
			<input type="hidden" name="cyid" value="$cyid" />
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr class="tr3">
					<td width="30%" align="right">用户</td>
					<td>$uinfo[username]</td>
				</tr>
				<tr class="tr3">
					<td align="right">真实姓名</td>
					<td><input type="text" class="input" name="realname" value="$uinfo[realname]" /></td>
				</tr>
				<tr class="tr3">
					<td align="right">性别</td>
					<td>
						<select name="gender">
							<option value="0" $select_0>保密</option>
							<option value="1" $select_1>男</option>
							<option value="2" $select_2>女</option>
						</select>
					</td>
				</tr>
				<tr class="tr3">
					<td align="right">电话</td>
					<td><input type="text" class="input" name="tel" value="$uinfo[tel]" /></td>
				</tr>
				<tr class="tr3">
					<td align="right">邮箱</td>
					<td><input type="text" class="input" name="email" value="$uinfo[email]" /></td>
				</tr>
				<tr class="tr3">
					<td align="right">联系地址</td>
					<td><input type="text" class="input" name="address" size="40" value="$uinfo[address]" /></td>
				</tr>
				<tr class="tr3">
					<td align="right">介绍说明</td>
					<td><textarea name="introduce" style="width:300px;height:80px">$uinfo[introduce]</textarea></td>
				</tr>
				<tr class="tr3">
					<td align="right"></td>
					<td><input type="submit" value="提 交" class="bt3" /></td>
				</tr>
			</table>
			</form>
		</div>
<!--
EOT;
} elseif ($a == 'set') {print <<<EOT
-->
		<div>
			<form action="{$basename}q=$q&a=$a" enctype="multipart/form-data" method="post">
			<input type="hidden" name="step" value="3" />
			<input type="hidden" name="cyid" value="$cyid" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr class="tr3">
					<td width="30%" align="right">群组名称</td>
					<td><input type="text" name="cname" id="cname" value="$colony[cname]" />&nbsp;<span id="cname_warn" class="gray">限 20 字节</span></td>
				</tr>
				<tr class="tr3">
					<td align="right">群组分类</td>
					<td><select name="cid">$options</select></td>
				</tr>
				<tr class="tr3">
					<td align="right">群组LOGO</td>
					<td>
<!--
EOT;
if($cnimg){print <<<EOT
-->
						<img src="$cnimg" onload="imgResize(this,150)" align="absmiddle" />&nbsp;
<!--
EOT;
}print <<<EOT
-->
						<input type="file" name="cnimg" />
					</td>
				</tr>
				<tr class="tr3">
					<td align="right">加入权限</td>
					<td>
						<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="tr3">
					<td align="right">公开群组内容</td>
					<td><input type="radio" name="ifopen" value="1" $ifopen_Y />是 <input type="radio" name="ifopen" value="0" $ifopen_N />否</td>
				</tr>
				<tr class="tr3">
					<td align="right">公开群组相册</td>
					<td><input type="radio" name="albumopen" value="1" $albumopen_Y />是 <input type="radio" name="albumopen" value="0" $albumopen_N />否</td>
				</tr>
				<tr class="tr3">
					<td align="right">群组公告</td>
					<td>
						<textarea name="annouce" id="annouce" style="width:350px;height:70px">{$colony[annouce]}</textarea>
						<span id="annouce_warn" class="gray fr" style="margin-right:110px;">限 255 字节</span>
					</td>
				</tr>
				<tr class="tr3">
					<td align="right">群组描述</td>
					<td>
						<textarea name="descrip" id="descrip" style="width:350px;height:70px">{$colony[descrip]}</textarea>
						<span id="descrip_warn" class="gray fr" style="margin-right:110px;">限 255 字节</span>
					</td>
				</tr>
				<tr class="tr3">
					<td></td>
					<td><input class="bt3" type="submit" value="保存设置" /></td>
				</tr>
			</table>
			</form>
		</div>
<script language="JavaScript">
var charset = '$db_charset';
initCheckTextNum('cname','cname_warn',20);
initCheckTextNum('annouce','annouce_warn',255);
initCheckTextNum('descrip','descrip_warn',255);
</script>
<!--
EOT;
}print <<<EOT
-->
	</div>
<!--
EOT;
if (empty($a)) {print <<<EOT
-->
	<div class="sidebarC fr cc">
    <h4 class="h5A mt8">
    	<a href="{$basename}q=groups" class="fr">我的群组</a>
        <span class="b">我的信息</span>
    </h4>
	<div class="list-F list-fen">
		<ul>
<!--
EOT;
if ($colony['ifcyer']) {print <<<EOT
-->
            <li><a>我的身份：<span class="gray">
<!--
EOT;
if($colony['admin'] == $windid){print <<<EOT
-->
群主
<!--
EOT;
}elseif($colony['ifadmin'] == 1){print <<<EOT
-->
管理员
<!--
EOT;
}elseif($colony['ifadmin'] == 0){print <<<EOT
-->
普通成员
<!--
EOT;
}else{print <<<EOT
-->
未验证成员
<!--
EOT;
}print <<<EOT
-->
				</span></a>
			</li>
<!--
EOT;
if($ifadmin){print <<<EOT
-->
			<li><a href="{$basename}q=galbum&a=create&cyid=$cyid">创建群组相册</a></li>
<!--
EOT;
}print <<<EOT
-->
			<li><a href="{$basename}q=$q&a=uintro&job=set&cyid=$cyid">编辑我的通讯录</a></li>
<!--
EOT;
}print <<<EOT
-->
		</ul>
	</div>
		<div class="boxB bgB pr" style="margin-top:2em"><span class="cirA1"></span><span class="cirA2"></span><span class="cirA3"></span><span class="cirA4"></span>
		<div class="list-F list-cheng pdD">
			<h2 class="b">成员列表</h2>
			<ul>
<!--
EOT;
foreach ($memdb as $value) {print <<<EOT
-->
				<li><a href="{$basename}q=user&u=$value[uid]">$value[username]</a></li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
		</div>
		<div class="pdD">
			<span class="more fr"><a href="{$basename}q=group&a=member&cyid=$cyid">查看更多</a></span>
		</div><br />
	</div></div>
<!--
EOT;
}print <<<EOT
-->
</div>
<!--内容 end-->
</div>
</div>
<!--
EOT;
?>-->