<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?><!--<?php
print <<<EOT
-->
<style>
.tableborder1 { width:98%; border:1px solid #C6D2E3;}
</style>
<script>
//单选表单选取 Obj 表单名，VAL所选的值
function chkradio(Obj,Val)
{
	if (Obj)
	{
	for (i=0;i<Obj.length;i++){
		if (Obj[i].value==Val){
		Obj[i].checked=true;
		break;
		}
	}
	}
}

function ShowAppForm(showflag){
	var appformhtml;
	var appgroupformobject = document.getElementById('appgroupform');
	if (showflag!='0' && showflag!=''){
		appformhtml = "<form method=\"post\" action=\"?action=appgroup\" name=\"appform\" id=\"appform\" onsubmit=\"javascript:return submitappform();\" target=\"hiddenframe\">\\n";
		appformhtml = appformhtml+"<div style=\"float:left;\">{$lang['tpl.str5']}: </div><div><input type=\"text\" name=\"GroupName\" size=\"40\" />&nbsp;<span id=\"groupnamestr\"></span></div>\\n";
		appformhtml = appformhtml+"<div style=\"float:left;\">{$lang['tpl.str13']}: </div><div style=\"padding-top:2px;\"><textarea row=\"6\" cols=\"40\" name=\"GroupInfo\"></textarea></div>\\n";
		appformhtml = appformhtml+"<div style=\"float:left;\">{$lang['tpl.str14']}: </div><div style=\"padding-top:2px;\"><input type=\"radio\" class=\"radio\" value=\"0\" name=\"Locked\" checked/>{$lang['tpl.str15']}	<input type=\"radio\" class=\"radio\" value=\"1\" name=\"Locked\"/>{$lang['tpl.str16']}</div>\\n";
		appformhtml = appformhtml+"<div style=\"float:left;\">{$lang['tpl.str17']}: </div><div style=\"padding-top:2px;\"><input type=\"radio\" class=\"radio\" value=\"0\" name=\"ViewFlag\" checked/>{$lang['tpl.str18']}	<input type=\"radio\" class=\"radio\" value=\"1\" name=\"ViewFlag\"/>{$lang['tpl.str19']}</div>\\n";
		appformhtml = appformhtml+"<div>{$lang['tpl.str20']}</div>\\n";
		appformhtml = appformhtml+"<div style=\"padding-left:55px;height:21px;\">&nbsp;<button onMousemove=\"button_move(this)\" onMouseout=\"button_out(this)\" type=\"submit\" name=\"submit1\" > {$lang['tpl.str21']} </button></div>\\n";
		appformhtml =appformhtml+"</form>\\n";
		appgroupformobject.innerHTML = appformhtml;
	}else{
		appgroupformobject.innerHTML = "<font color=\"#FF0000\">{$lang['tpl.str22']}</font>{$lang['tpl.str23']}<a href=\"login.php\">{$lang['tpl.str24']}</a>";
	}
	if (appgroupformobject.style.display=='none'){
		appgroupformobject.style.display='block';
	}else{
		appgroupformobject.style.display='none';
	}
}

function submitappform(){//alert('aaaa');
	var formobject=document.appform;
	if (formobject.GroupName.value==''){
		document.getElementById('groupnamestr').innerHTML="<font color=\"#FF0000\">{$lang['tpl.str33']}</font>";
		formobject.GroupName.focus();
	}else{
		if (formobject.GroupName.value.length > 50){
			document.getElementById('groupnamestr').innerHTML="<font color=\"#FF0000\">{$lang['tpl.str34']}</font>";
			formobject.GroupName.focus();
		}else{
			document.getElementById('appgroupform').style.display='none';
			return true;
		}
	}
	return false;
}

function information(str){
	alert(str);
}

function submitappjion(appjionflag,groupid){
	if(appjionflag!='0' && appjionflag!=''){
		document.getElementById("hiddenframe").src="?action=appjiongroup&groupid="+groupid
	}else{
		alert("{$lang['tpl.str35']}");
	}
}
</script>
<style>
DIV.info {
	BORDER-RIGHT: #95b0cd 1px dotted; PADDING-RIGHT: 5px; BORDER-TOP: #95b0cd 1px dotted; PADDING-LEFT: 5px; BACKGROUND: #eff7ff; PADDING-BOTTOM: 5px; BORDER-LEFT: #95b0cd 1px dotted; LINE-HEIGHT: normal; PADDING-TOP: 5px; BORDER-BOTTOM: #95b0cd 1px dotted
}
DIV.info UL.info {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
DIV.info UL.info LI {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN: 2px; PADDING-TOP: 2px; BACKGROUND-COLOR: #d7ebf7
}
.tablebody1 {
	LINE-HEIGHT: normal; BACKGROUND-COLOR: #fff
}
.tablebody2 {
	LINE-HEIGHT: normal; BACKGROUND-COLOR: #FCFDFE
}
.tablebody3 {
	BACKGROUND-COLOR: #6e98c5
}
.td1{
	BACKGROUND-COLOR: #fff;padding:10px;

}
</style>
<table class="tableborder1" cellSpacing="1" cellPadding="5" align="center">
{$statelist}
</table>

<TABLE class="tablebox border" cellSpacing=0 cellPadding=0 align=center >
	<TBODY>
	<TR>
	<TH align=middle colSpan=2>{$lang['tpl.str27']}</TH></TR>
	<TR>
		<TD vAlign=top width=200>
		<div style="background:#fff;">
		  <ul>
		    <li style="background:#F1F7FB;padding:6px;margin:1px"><A href="?action=info&amp;groupid={$_GET['groupid']}">{$lang['tpl.str28']}</A>&nbsp;[<A href="?action=infoedit&amp;groupid={$_GET['groupid']}">{$lang['tpl.str29']}</A>] </li>
			<li style="background:#F1F7FB;padding:6px;margin:1px"><A href="?action=board&amp;groupid={$_GET['groupid']}">{$lang['tpl.str30']}</A> </li>
			<li style="background:#F1F7FB;padding:6px;margin:1px"><A href="?action=boardmanage&amp;groupid={$_GET['groupid']}">{$lang['tpl.str31']}</A></li>
			<li style="background:#F1F7FB;padding:6px;margin:1px"><A href="?action=user&amp;groupid={$_GET['groupid']}">{$lang['tpl.str32']}</A></li>
			<li style="background:#F1F7FB;padding:6px;margin:1px"><A href="?action=updatedata&amp;groupid={$_GET['groupid']}">{$lang['tpl.str33']}</A></li>
		  </ul>
		</div>


	</TD>
<!--
EOT;
if(($_GET["action"] == '') || ($_GET["action"] == 'info')){
				print <<<EOT
-->
    <TD  vAlign=top>
		<TABLE style="WIDTH: 100%; WORD-BREAK: break-all;background:#D3E4ED;" cellSpacing=1 cellPadding=3>
		<TBODY>
			<TR>
				<TD class=tablebody2 width="80%" colSpan=6 height=24><B>{$lang['tpl.str34']} </B></TD>
				<td width="40%" class=tablebody2 rowspan="6"><img src="{$group_info['groupface']}" width=120></td>
			</TR>
			<TR>
				<TD class=tablebody2 width="10%" height=24>{$lang['tpl.str35']}</TD>
				<TD class=tablebody2 width="20%">{$group_info["groupname"]}</TD>
				<TD class=tablebody2 width="10%">{$lang['tpl.str36']}</TD>
				<TD class=tablebody2 width="20%"><FONT color=red>{$group_info["todaynum"]}</FONT></TD>
				<TD class=tablebody2 width="10%">{$lang['tpl.str37']}</TD>
				<TD class=tablebody2 width="20%">{$group_info["limituser"]}</TD></TR>
			<TR>
				<TD class=tablebody2 height=24>{$lang['tpl.str38']}</TD>
				<TD class=tablebody2>{$group_info["appusername"]}</TD>
				<TD class=tablebody2>{$lang['tpl.str39']}</TD>
				<TD class=tablebody2>{$group_info["topicnum"]}</TD>
				<TD class=tablebody2>{$lang['tpl.str40']}</TD>
				<TD class=tablebody2>{$viewflag}</TD></TR>
			<TR>
				<TD class=tablebody2 height=24>{$lang['tpl.str41']}</TD>
				<TD class=tablebody2><A 
				href="http://localhost/dvbbs8/dispuser.asp?id=3" 
				target=_black>{$group_info["appusername"]}</A> </TD>
				<TD class=tablebody2>{$lang['tpl.str42']}</TD>
				<TD class=tablebody2>{$group_info["postnum"]}</TD>
				<TD class=tablebody2>{$lang['tpl.str43']}</TD>
				<TD class=tablebody2>{$stats}</TD></TR>
			<TR>
				<TD class=tablebody2 colSpan=2 height=24>{$lang['tpl.str44']}</TD>
				<TD class=tablebody2 height=24>{$lang['tpl.str45']}</TD>
				<TD class=tablebody2>{$group_info["appdate"]}</TD>
				<TD class=tablebody2 height=24>{$lang['tpl.str46']}</TD>
				<TD class=tablebody2>{$locked}</TD></TR>
			<TR>
				<TD class=tablebody2 colSpan=6>{$group_info["groupinfo"]}</TD>
			</TR>
		</TBODY>
		</TABLE>
	</TD>
</TR>
<!--
EOT;
}
else if($_GET["action"] == 'infoedit'){
print <<<EOT
-->
<TD class=tablebody2 id="edittd" name="edittd" valign=top>
	<TABLE style="WIDTH: 100%; WORD-BREAK: break-all;background:#D3E4ED;" cellSpacing=1 
	cellPadding=0 border=0>
	<TBODY>
		<form method="post" action="?action=infosave&groupid={$_GET['groupid']}" name="infoForm" onsubmit="return submitform();" enctype="multipart/form-data" target="hiddenframe">
		<TR>
			<TD class=tablebody2 width="100%" colSpan=6 height=24 ><B>{$lang['tpl.str5']} </B></TD>
		</TR>
			<input type="hidden" name="groupid" value="{$group_info['id']}">
			<tr> 
				<td width="10%" class=td1><nobr>{$lang['tpl.str6']}</nobr></td>
				<td width="50%" class=td1>
				<input type="text" name="GroupName" size="35" value="{$group_info['groupname']}"><span id="groupnamestr"></span>
				</td>
				<td width="40%" rowspan="9" class=td1 align=center><img src="{$group_info['groupface']}"></td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str8']}</td>
				<td class=td1>
				<textarea rows="4" cols="35" name="GroupInfo">{$group_info['groupinfo']}</textarea>
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str8_1']}</td>
				<td class=td1>
				<input type="file" name="groupface" onmouseover="this.className='TextBoxFocus'" size="40" onmouseout="this.className='TextBox'" />
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str15']}</td>
				<td class=td1>
				<select name="appid">
<!--
EOT;
	if(!empty($manage_list)):
		if(is_array($manage_list)):
			foreach($manage_list as $muser_list):
print <<<EOT
--> 
				<option value="{$muser_list['userid']}">{$muser_list['username']}</option>
<!--
EOT;
			endforeach;
		endif;
	endif;
print <<<EOT
--> 
				</select>
				</td>
			</tr>

			<tr> 
				<td class=td1>{$lang['tpl.str11']}</td>
				<td class=td1>
					<div style="float:left;"><input type="radio" name="GroupStats" value="1" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_1']}</div>
					<div style="float:left;"><input type="radio" name="GroupStats" value="2" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_2']}</div>
					<div style="float:left;"><input type="radio" name="GroupStats" value="0" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_3']}</div>
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str12']}</td>
				<td class=td1>
					<div style="float:left;"><input type="radio" name="Locked" value="0" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_4']}</div>
					<div style="float:left;"><input type="radio" name="Locked" value="1" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_5']}</div>
				</td>
			</tr>
			<tr>
				<td class=td1>{$lang['tpl.str13']}</td>
				<td class=td1>
					<div style="float:left;"><input type="radio" name="ViewFlag" value="0" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_6']}</div>
					<div style="float:left;"><input type="radio" name="ViewFlag" value="1" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_7']}</div>
				</td>
			</tr>
			<tr><td colspan="2"  class=td1>{$lang['tpl.str14']}</td></tr>
			<tr>
				<td height="23" colspan="2" class=td1>
				<button onMousemove="button_move(this)" onMouseout="button_out(this)" type="submit" name="submit" id="submit"> {$lang['submit']} </button>
			</td>
			</tr>
		</form>
		</TBODY>
		</TABLE>
	</TD>
</TR>
<script language="JavaScript">
	chkradio(document.infoForm.GroupStats,"{$group_info['stats']}");
	chkradio(document.infoForm.Locked,"{$group_info['locked']}");
	chkradio(document.infoForm.ViewFlag,"{$group_info['viewflag']}");

	function submitform(){
		var formobject=document.infoForm;
		if (formobject.GroupName.value==''){
			document.getElementById('groupnamestr').innerHTML="<font color='#ff0000'>{$lang['tpl.str47']}</font>";
			formobject.GroupName.focus();
			return false;
		}else{
			if (formobject.GroupName.value.length > 50){
				document.getElementById('groupnamestr').innerHTML="<font color='#ff0000'>{$lang['tpl.str65']}</font>";
				formobject.GroupName.focus();
				return false;
			}
		}
	}
	function submitform_suc(){
		document.getElementById('edittd').innerHTML="<b>{$lang['tpl.str48']}</b><li>{$lang['tpl.str49']}[<a href=\"?groupid={$_GET['groupid']}\">{$lang['tpl.str50']}</a>]</li>";
	}
</script>
<!--
EOT;
}
else if($_GET["action"] == 'boardmanage'){
print <<<EOT
-->
<TD class=tablebody2 id="edittd" name="edittd" valign=top>
	<TABLE style="WIDTH: 100%; WORD-BREAK: break-all;background:#D3E4ED;" cellSpacing=1 
	cellPadding=0>
	<TBODY>
		<form method="post" action="?action=newboard&groupid={$_GET['groupid']}" name="infoForm" onsubmit="return submitform();" target="hiddenframe">
		<TR>
			<TD class=tablebody2 width="100%" colSpan=6 height=24><B>{$lang['tpl.str16']} </B></TD>
		</TR>
			<input type="hidden" name="groupid" value="{$_GET['groupid']}">
			<tr> 
				<td width="10%" class=td1><nobr>{$lang['tpl.str17']}</nobr></td>
				<td width="90%" class=td1>
				<input type="text" name="boardname" size="35" value="{$group_info['boardname']}"><span id="groupnamestr"></span>
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str18']}</td>
				<td class=td1>
				<textarea rows="4" cols="35" name="boardinfo">{$group_info['boardinfo']}</textarea>
				</td>
			</tr>
			<tr> 
				<td width="10%" class=td1><nobr>{$lang['tpl.str19']}</nobr></td>
				<td width="90%" class=td1>
				<input type="text" name="indeximg" size="35" value="{$group_info['indeximg']}">
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str20']}</td>
				<td class=td1>
				<textarea rows="4" cols="35" name="boardrules">{$group_info['boardrules']}</textarea>
				</td>
			</tr>
			<tr>
				<td class=td1>{$lang['tpl.str21']}</td>
				<td class=td1>
					<div style="float:left;"><input type="radio" name="boardstats" value="1" style="margin:3px;" checked/></div>
					<div style="float:left;">{$lang['item_type_9']}</div>
					<div style="float:left;"><input type="radio" name="boardstats" value="0" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_10']}</div>
				</td>
			</tr>
			<tr>
				<td height="23" colspan="2" class=td1><button onMousemove="button_move(this)" onMouseout="button_out(this)" type="submit" name="submit" id="submit"> {$lang['submit']} </button>

			</td>
			</tr>
		</form>
		</TBODY>
		</TABLE>
	</TD>
</TR>
<script language="JavaScript">
	function submitform(){
		var formobject=document.infoForm;
		if (formobject.boardname.value==''){
			document.getElementById('groupnamestr').innerHTML="<font color='#ff0000'>{$lang['tpl.str51']}</font>";
			formobject.boardname.focus();
			return false;
		}else{
			if (formobject.boardname.value.length > 50){
				document.getElementById('groupnamestr').innerHTML="<font color='#ff0000'>{$lang['tpl.str52']}</font>";
				formobject.boardname.focus();
				return false;
			}
		}
	}
	function submitform_suc(){
		document.getElementById('edittd').innerHTML="<b>栏目</b><li>{$lang['tpl.str53']}[<a href=\"?groupid={$_GET['groupid']}\">{$lang['tpl.str54']}</a>]</li>";
	}
</script>
<!--
EOT;
}
else if($_GET["action"] == 'board'){
print <<<EOT
-->
<TD class=tablebody2 id="edittd" name="edittd" valign=top>
	<TABLE style="WIDTH: 100%; WORD-BREAK: break-all;background:#D3E4ED;" cellSpacing=1 
	cellPadding=3>
	<TBODY>
		<TR>
			<TD class=tablebody2 width="100%" colSpan=6 height=24><B>{$lang['tpl.str22']} </B></TD>
		</TR>
<!--
EOT;
	if(!empty($board_list)):
		if(is_array($board_list)):
			foreach($board_list as $b_list):
print <<<EOT
--> 
		<tr> 
			<td width="10%" class=td1>
				<a href="indivgroup_index.php?groupid={$b_list['rootid']}&groupboardid={$b_list['id']}">{$b_list['boardname']}</a>
				({$lang['tpl.str55']}{$b_list['todaynum']}，{$lang['tpl.str56']}{$b_list['topicnum']}，{$lang['tpl.str57']}{$b_list['postnum']}) 
				[<a href="?action=boardedit&groupid={$b_list['rootid']}&groupboardid={$b_list['id']}">{$lang['tpl.str58']}</a>]
				[<a href="?action=boarddel&groupid={$b_list['rootid']}&groupboardid={$b_list['id']}">{$lang['tpl.str59']}</a>]
			</td>
		</tr>
<!--
EOT;
			endforeach;
		endif;
	endif;
print <<<EOT
--> 
		</TBODY>
		</TABLE>
	</TD>
</TR>
<!--
EOT;
}
else if($_GET["action"] == 'boardedit'){
print <<<EOT
-->
<TD class=tablebody2 id="edittd" name="edittd" valign=top>
	<TABLE style="WIDTH: 100%; WORD-BREAK: break-all;background:#D3E4ED;" cellSpacing=1 
	cellPadding=0>
	<TBODY>
		<form method="post" action="?action=boardeditsave&groupid={$_GET['groupid']}" name="infoForm" onsubmit="return submitform();" target="hiddenframe">
		<TR>
			<TD class=tablebody2 width="100%" colSpan=6 height=24><B>{$lang['tpl.str16']} </B></TD>
		</TR>
			<input type="hidden" name="groupid" value="{$_GET['groupid']}">
			<input type="hidden" name="groupboardid" value="{$board_info['id']}">
			<tr> 
				<td width="10%" class=td1><nobr>{$lang['tpl.str17']}</nobr></td>
				<td width="90%" class=td1>
				<input type="text" name="boardname" size="35" value="{$board_info['boardname']}"><span id="groupnamestr"></span>
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str18']}</td>
				<td class=td1>
				<textarea rows="4" cols="35" name="boardinfo">{$board_info['boardinfo']}</textarea>
				</td>
			</tr>
			<tr> 
				<td width="10%" class=td1><nobr>{$lang['tpl.str19']}</nobr></td>
				<td width="90%" class=td1>
				<input type="text" name="indeximg" size="35" value="{$board_info['indeximg']}">
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str20']}</td>
				<td class=td1>
				<textarea rows="4" cols="35" name="boardrules">{$board_info['rules']}</textarea>
				</td>
			</tr>
			<tr>
				<td class=td1>{$lang['tpl.str21']}</td>
				<td class=td1>
					<div style="float:left;"><input type="radio" name="boardstats" value="1" style="margin:3px;" checked/></div>
					<div style="float:left;">{$lang['item_type_9']}</div>
					<div style="float:left;"><input type="radio" name="boardstats" value="0" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_10']}</div>
				</td>
			</tr>
			<tr>
				<td height="23" colspan="2" class=td1><button onMousemove="button_move(this)" onMouseout="button_out(this)" type="submit" name="submit" id="submit"> {$lang['submit']} </button>

			</td>
			</tr>
		</form>
		</TBODY>
		</TABLE>
	</TD>
</TR>
<script language="JavaScript">
	chkradio(document.infoForm.boardstats,"{$board_info['boardstats']}");
	function submitform(){
		var formobject=document.infoForm;
		if (formobject.boardname.value==''){
			document.getElementById('groupnamestr').innerHTML="<font color='#ff0000'>{$lang['tpl.str51']}</font>";
			formobject.boardname.focus();
			return false;
		}else{
			if (formobject.boardname.value.length > 50){
				document.getElementById('groupnamestr').innerHTML="<font color='#ff0000'>{$lang['tpl.str52']}</font>";
				formobject.boardname.focus();
				return false;
			}
		}
	}
</script>
<!--
EOT;
}
else if(($_GET["action"] == 'user') || ($_GET["action"] == 'usersetadmin') || ($_GET["action"] == 'userdel')){
print <<<EOT
-->
<TD class=tablebody1 id="edittd" name="edittd" valign="top">
	<TABLE style="WIDTH: 100%; WORD-BREAK: break-all;background:#D3E4ED;" cellSpacing=1 
	cellPadding=0>
	<TBODY>
		<TR>
			<TD class=tablebody2 width="100%" colSpan=3 height=35>
				&nbsp;<button onMousemove="button_move(this)" onMouseout="button_out(this)" onclick="document.location.href='?action=user&groupid={$_GET['groupid']}&mode=0'"  name="button1" type="button"> 全部成员 </button>
				&nbsp;<button onMousemove="button_move(this)" onMouseout="button_out(this)" onclick="document.location.href='?action=user&groupid={$_GET['groupid']}&mode=1'"  name="button2" type="button"> 待审核成员 </button>
				&nbsp;<button onMousemove="button_move(this)" onMouseout="button_out(this)" onclick="document.location.href='?action=user&groupid={$_GET['groupid']}&mode=2'"  name="button3" type="button"> 普通成员 </button>
				&nbsp;<button onMousemove="button_move(this)" onMouseout="button_out(this)" onclick="document.location.href='?action=user&groupid={$_GET['groupid']}&mode=3'"  name="button3" type="button"> 管理员 </button>
			</TD>
		</TR>
		<tr align=left height=20>
			<th>　{$lang['tpl.str24']}</th>
			<th>　{$lang['tpl.str25']}</th>
			<th>　{$lang['tpl.str60']}</th>
		</tr>
<!--
EOT;
	$i= 0;
	if(!empty($user_list)):
		if(is_array($user_list)):
			foreach($user_list as $u_row):
				$i++;
print <<<EOT
--> 
		<tr> 
			<td class=td1>　<a target="_blank" href="dispuser.php?id={$u_row['userid']}">{$u_row['username']}</a></td>
			<td class=td1>　{$u_row['itemislock']}</td>
			<td class=td1>　
				[<a href="?action=useredit&groupid={$u_row['groupid']}&id={$u_row['id']}">{$lang['tpl.str58']}</a>]
				[<a href="?action=userdel&groupid={$u_row['groupid']}&id={$u_row['id']}&page={$_GET['page']}&mode={$_GET['mode']}">{$lang['tpl.str59']}</a>]
				[<a href="?action=usersetadmin&groupid={$u_row['groupid']}&id={$u_row['id']}&page={$_GET['page']}&mode={$_GET['mode']}">{$lang['tpl.str61']}</a>]
			</td>
		</tr>
<!--
EOT;
			endforeach;
		endif;
	endif;
	if($i==0):
print <<<EOT
--> 
		<tr> 
			<td class=tablebody2 colspan='3'>　{$lang['tpl.str62']}</td>
		</tr>
<!--
EOT;
	endif;
$multipage= pagelist($total,$page_size,$page,"indivgroup_manage.php",count($u_row),$page_count,"groupid={$_GET['groupid']}&mode={$_GET['mode']}&action=user");
print <<<EOT
--> 
		<tr>
			<td colspan='3' class=td1>
				<div style="margin-top :4px;height : 26px;">
				<div style="float:left;">
				<form action="?boardid={$boardid}&amp;action=&amp;topicmode={$topicmode}" method="post" name="PageForm" target="">
				{$multipage}
				</form>
				</div>
				</div>
			</td>
		</tr>
		</TBODY>
		</TABLE>
	</TD>
</TR>
<!--
EOT;
}
else if($_GET["action"] == 'useredit'){
print <<<EOT
-->
<TD class=tablebody2 id="edittd" name="edittd" valign=top>
	<TABLE style="WIDTH: 100%; WORD-BREAK: break-all;background:#D3E4ED;" cellSpacing=1 
	cellPadding=0>
	<TBODY>
		<form method="post" action="?action=usereditsave&groupid={$_GET['groupid']}" name="infoForm" onsubmit="return submitform();" target="hiddenframe">
		<TR>
			<TD class=tablebody2 width="100%" colSpan=6 height=24><B>{$lang['tpl.str23']} </B></TD>
		</TR>
			<input type="hidden" name="groupid" value="{$user_info['groupid']}">
			<input type="hidden" name="id" value="{$user_info['id']}">
			<tr> 
				<td width="10%" class=td1><nobr>{$lang['tpl.str24']}</nobr></td>
				<td width="90%" class=td1>
				<input type="text" name="username" size="35" value="{$user_info['username']}" disabled><span id="groupnamestr"></span>
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str25']}</td>
				<td class=td1>
					<div style="float:left;"><input type="radio" name="islock" value="1" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_11']}</div>
					<div style="float:left;"><input type="radio" name="islock" value="2" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_12']}</div>
					<div style="float:left;"><input type="radio" name="islock" value="0" style="margin:3px;"/></div>
					<div style="float:left;">{$lang['item_type_13']}</div>
				</td>
			</tr>
			<tr> 
				<td class=td1>{$lang['tpl.str26']}</td>
				<td class=td1>
				<textarea rows="4" cols="35" name="intro">{$user_info['intro']}</textarea>
				</td>
			</tr>
			<tr>
				<td height="23" colspan="2" class=td1>&nbsp;<button onMousemove="button_move(this)" onMouseout="button_out(this)" type="submit" name="submit" id="submit"> {$lang['submit']} </button>

			</td>
			</tr>
		</form>
		</TBODY>
		</TABLE>
	</TD>
</TR>
<script language="JavaScript">
	chkradio(document.infoForm.islock,"{$user_info['islock']}");

	function submitform_suc(){
		document.getElementById('edittd').innerHTML="<b>{$lang['tpl.str63']}</b><li>{$lang['tpl.str64']}</li>";
	}
</script>
<!--
EOT;
}
print <<<EOT
-->
</TBODY>
</TABLE>
<BR>
<IFRAME style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 0px; BORDER-BOTTOM: 0px; HEIGHT: 0px" name=hiddenframe src="about:blank"></IFRAME>
<!--
EOT;
?>-->