<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?>
<br>
<iframe width="260" height="165" id="colourPalette" src="../images/post/nc_selcolor.htm" style="visibility:hidden; position: absolute; left: 0px; top: 0px;border:1px gray solid" frameborder="0" scrolling="no" ></iframe>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
	<tr> 
	<td width="100%" class="tit1" colspan="13"><b><?=$lang['space.info255']?><?echo($lang['space.info4'])?></b></td>
	</tr>
	<tr>
	<td class="forumrow" height="25" colspan="13">
		<?=($lang['space.info5'])?>
		<BR><?=($lang['space.info6'])?>
		<BR><?=($lang['space.info7'])?>
	</td>
	</tr>
	<tr>
		<td <?if($action=='lan_edit' && $t==1 or $action=='lan_edit' && $t==2 or $action=='tmp_edit'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> height="25"><B><font color="<?if($action=='lan_edit' && $t==1 or $action=='lan_edit' && $t==2 or $action=='tmp_edit'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info8'])?></font></B></td>
		<td height="25" <?if($action==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="spaceadmin.php"><font color="<?if($action==''){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info9'])?></font></a>
		</td>
		<td height="25" <?if($action=='lanmu' && $t==1  or $action=='lanmu_add' && $t==1){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=lanmu&t=1"><font color="<?if($action=='lanmu' && $t==1  or $action=='lanmu_add' && $t==1){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info10'])?></font></a>
		</td>
		<td height="25" <?if($action=='lanmu' && $t==2 or $action=='lanmu_add' && $t==2){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=lanmu&t=2"><font color="<?if($action=='lanmu' && $t==2 or $action=='lanmu_add' && $t==2){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info11'])?></font></a>
		</td>
		<td height="25" <?if($action=='user_manage' or $action=='user_edit'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=user_manage"><font color="<?if($action=='user_manage' or $action=='user_edit'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info12'])?></font></a>
		</td>
		<td height="25" <?if($action=='user_lanmu'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=user_lanmu"><font color="<?if($action=='user_lanmu'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info13'])?></font></a>
		</td>
		<td height="25" <?if($action=='ad_manage'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=ad_manage"><font color="<?if($action=='ad_manage'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info14'])?></font></a>
		</td>
		<td height="25" <?if($action=='file'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=file"><font color="<?if($action=='file'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info15'])?></font></a>
		</td>
		<td height="25" <?if($action=='key_word'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=key_word"><font color="<?if($action=='key_word'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info16_0'])?></font></a>
		</td> 
		<td height="25" <?if($action=='tmplate'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=tmplate"><font color="<?if($action=='tmplate'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info17'])?></font></a>
		</td> 
		<td height="25" <?if($action=='data'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=data"><font color="<?if($action=='data'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info18'])?></font></a>
		</td>
		<td height="25" <?if($action=='today_recommend'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=today_recommend"><font color="<?if($action=='today_recommend'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info258'])?></font></a>
		</td>
		<td height="25" <?if($action=='today_star'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> ><a href="?action=today_star"><font color="<?if($action=='today_star'){echo 'red';}else{echo '#000000';}?>"><?=($lang['space.info262'])?></font></a>
		</td>
	</tr>
</table>
<?if($action=="lanmu"){
	if(intval($GLOBALS['t'])==1){
		$option_str=$lang['space.info108'];
	}
	else{
		$option_str=$lang['space.info109'];
	}
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
	<form name="form2" method="post" action="">
  <tr>
    <td class="tdtit" colspan="6"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info107'].$option_str.$lang['space.info110']." | "?><a href="?action=lanmu_add&t=<?=$GLOBALS['t']?>"><?=$lang['space.info111'].$option_str?></font></a></td>
    </tr>
  <tr>
    <td colspan="6" class="forumrow" height="25"><b><?=$lang['space.info21']?></b><?=$lang['space.info114']?></td>
    </tr>
  <tr class="forumrow1">
    <td style="text-align:center;"><?=$option_str?></td>
    <td style="text-align:center;"><?=$lang['space.info115']?></td>
    <td style="text-align:center;"><?=$lang['space.info116']?></td>
    <td style="text-align:center;"><?=$lang['space.info117']?></td>
    <td style="text-align:center;"><?=$lang['space.info118']?></td>
    <td style="text-align:center;"><?=$lang['space.info119']?> </td>
  </tr>
  <?
	if(!empty($list_info)){
		if(is_array($list_info)){
			foreach($list_info as $list_arr){
			
 ?>
  <tr class="forumrow">
    <td height="25" style="text-align:center;"><?=$list_arr['scattitle']?></td>
    <td height="25" style="text-align:center;"><?=$list_arr['todaynum']?></td>
    <td height="25" style="text-align:center;"><?=$list_arr['topicnum']?></td>
    <td height="25" style="text-align:center;"><?=$list_arr['postnum']?></td>
    <td height="25" style="text-align:center;"><?=$list_arr['ucatnum']?> <?=$lang['space.info283']?></td>
    <td height="25" style="text-align:center;">
	<a href="?action=lan_edit&id=<?=$list_arr['scatid']?>&t=<?=$GLOBALS['t']?>"><?=$lang['space.info120']?></a> | <?=$lang['space.info9']?> | 
	<?
		If (intval($list_arr['ucatnum'])==0 and intval($list_arr['topicnum'])==0){
	?>
	<a href="?action=lan_del&id=<?=$list_arr['scatid']?>&t=<?=$GLOBALS['t']?>" onclick="{if(confirm('<?=$lang['space.info160'].$option_str.$lang['space.info161']?>')){return true;}return false;}"><?=$lang['space.info121']?></a>
	<?
		}else{
	?>
	<a href="#" onclick="{if(confirm('<?=$lang['space.info122']?>')){return true;}return false;}"><?=$lang['space.info121']?></a>
	<?
		}
	?>
</td>
  </tr>
  <?
			}
		}
	}
  ?>
  </form>
</table>
<?
}
if($action=="lan_edit"){
	if(intval($GLOBALS['t'])==1){
		$option_str=$lang['space.info108'];
	}
	else{
		$option_str=$lang['space.info109'];
	}
	if(!empty($lanmu_edit_list)){
		if(is_array($lanmu_edit_list)){
			foreach($lanmu_edit_list as $lanmu_edit_arr){
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td width="100%"  class="tdtit" colspan="6"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info107']?><?=$option_str?><?=$lang['space.info110']?> | </font><a href="?t=<?=$GLOBALS['t']?>&action=lanmu_add"><?=$lang['space.info111']?><?=$option_str?></a>
</td>
</tr>
<FORM METHOD=POST ACTION="?t=<?=$GLOBALS['t']?>&id=<?=$lanmu_edit_arr['scatid']?>&action=lanmu_editok">
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<b><?=$option_str?></b><?=$lang['space.info124']?>
</td>
<td class="forumrow" width="65%">
<input type="text" name="title" size="50" value="<?=$lanmu_edit_arr['scattitle']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<B><?=$option_str?></B><?=$lang['space.info21']?>
</td>
<td class="forumrow" width="65%">
<textarea name="note" cols="50" rows="5"><?=$lanmu_edit_arr['scatnote']?></textarea>
</td>
</tr>
<tr align="center">
<td class="forumrow1" height="25" colspan="6" style="text-align:center;">
<input type="submit" class="button" name="submit" value="<?=$lang['space.info125']?><?=$option_str?>">
</td>
</tr>
</FORM>
</table>

<?
			}
		}
	}
}
if($action=="lanmu_add"){
	if(intval($GLOBALS['t'])==1){
		$option_str=$lang['space.info108'];
	}
	else{
		$option_str=$lang['space.info109'];
	}
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td width="100%" class="tdtit" colspan="6"><?=$lang['space.info255']?><?=$lang['space.info107']?><?=$option_str?><?=$lang['space.info110']?> | <a href="?t=<?=$GLOBALS['t']?>&action=lanmu_add"><?=$lang['space.info111']?><?=$option_str?></a>
</td>
</tr>
<FORM method="post" action="?t=<?=$GLOBALS['t']?>&action=lanmu_addok">
<tr>
<td class="forumrow2" style="text-align:center;" height="25" colspan="6">
<B><?=$lang['space.info126']?><?=$option_str?></B>
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<B><?=$option_str?></B><?=$lang['space.info124']?>
</td>
<td class="forumrow" width="65%">
<input type="text" name="title" size="50">
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<B><?=$option_str?></B><?=$lang['space.info124']?>
</td>
<td class="forumrow" width="65%">
<textarea name="note" cols="50" rows="5"></textarea>
</td>
</tr>
<tr align="center">
<td class="forumrow1" height="25" colspan=6 style="text-align:center;">
<input type="submit" class="button"  name="submit" value="<?=$lang['space.info127']?><?=$option_str?>">
</td>
</tr>
</FORM>
</table>
<?
}if($action=="user_manage" or $action=="user_search"){
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr> 
<th width="100%" class="tdtit" colspan="6"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info128']?></font>
</th>
</tr>
<FORM method="post" action="?action=user_search">
<tr>
<td class="forumrow" colspan="6" height="30">
<?=$lang['space.info129']?><input type="text" size="30" value="" name="keyword">
<input type="submit" class="button"  name="submit" value="<?=$lang['space.info165']?>"><?=$lang['space.info130']?></td>
</tr>
</FORM>
<tr class="forumrow1">
<td height="25" align="left">
&nbsp;<B><?=$lang['space.info131']?></B>
</td>
<td align=center>
<B><?=$lang['space.info132']?></B>
</td>
<td align=center>
<B><?=$lang['space.info115']?></B>
</td>
<td align=center>
<B><?=$lang['space.info116']?></B>
</td>
<td align=center>
<B><?=$lang['space.info133']?></B>
</td>
<td align=center>
<B><?=$lang['space.info119']?></B>
</td>
</tr>
  <?
	if(!empty($userinfo_list))	{
		if(is_array($userinfo_list)){
			foreach($userinfo_list as $userinfo_arr){
 ?>
  <tr class="forumrow">
    <td height="25" style="text-align:center;"><? echo htmlspecialchars($userinfo_arr['username'])?>(<?echo htmlspecialchars($userinfo_arr['spacename'])?>)</td>
    <td height="25" style="text-align:center;"><?=$userinfo_arr['scattitle']?></td>
    <td height="25" style="text-align:center;"><?=$userinfo_arr['todaynum']?></td>
    <td height="25" style="text-align:center;"><?=$userinfo_arr['topicnum']?></td>
    <td height="25" style="text-align:center;"><?=$userinfo_arr['postnum']?></td>
    <td height="25" style="text-align:center;">
		<a href="?action=user_edit&id=<?=$userinfo_arr['userid']?>"><?=$lang['space.info120']?></a> | 
		<?
		If (intval($userinfo_arr['topicnum']==0)){
		?>
		<a href="?action=user_del&id=<?=$userinfo_arr['userid']?>" onclick="{if(confirm('<?=$lang['space.info134']?>')){return true;}return false;}"><?=$lang['space.info121']?></a>
		<?
		}else{
		?>
		<a href="#" onclick="{if(confirm('<?=$lang['space.info135']?>')){return true;}return false;}"><?=$lang['space.info121']?></a>
		<?
		}
		?>
	</td>
  </tr>
  <?
			}
		}
	}
 ?>
  <tr>
    <td colspan="6" class="forumrow">
	<?
		if($total!=0){
			$p = new page;
			$p->setall($page,$total,$page_size,$lang['log.info40'],$lang['log.info41'],'100%','center','biz');
			print $p->printpage(null,1);		
		}
	?>
</td>
  </tr>
</table>
<?
}
if($action=="user_edit"){
	if(!empty($user_info)){
		if(is_array($user_info)){
			foreach($user_info as $user_arr){
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
	<form name="form1" method="post" action="?action=user_editok&id=<?=$user_arr['userid']?>">
<tr>
<td  class="tdtit" colspan="6">
<font color="red"><B><?=$lang['space.info137']?></B> | </font><a href="user.php?action=modify&userid=<?=$user_arr['userid']?>"><?=$lang['space.info136']?></a>
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info138']?>:</td>
<td class="forumrow" colspan="5" height="25">
<select Name="syscatid" Size="1">
	<?
		$sys_sql=$db->query("SELECT scatid,scattitle,scatnote,ucatnum,topicnum,postnum,todaynum,stype,lastuptime FROM {$dv}space_syscat order by scatid");
		while($sys_arr=$db->fetch_array($sys_sql)){
	?>
		<option value="<?=$sys_arr['scatid']?>" <?if($sys_arr['scatid']==$user_arr['syscatid'])echo "selected"?>><?=$sys_arr['scattitle']?></option>
	<?
		}
	?>
</Select>
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info139']?>:</td>
<td class="forumrow" colspan="5" height="25">
<Select Name="skinid" Size="1">
	<?
		$skin_sql=$db->query("SELECT s_id,s_skinname,s_path,s_viewpic,s_info,s_builder FROM {$dv}space_skins order by s_id");
		while($skin_arr=$db->fetch_array($skin_sql)){
	?>
		<option value="<?=$skin_arr['s_id']?>" <?if($skin_arr['s_id']==$user_arr['skinid'])echo "selected"?>><?=$skin_arr['s_skinname']?></option>
	<?
		}
	?>
</Select>
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="20%">
<?=$lang['space.info140']?></td>
<td class="forumrow" colspan="5" height="25">
<?=$user_arr['username']?>
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info141']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="spacename" value="<?=$user_arr['spacename']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info142']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="nickname" value="<?=$user_arr['nickname']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info143']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="password" value="">
<?=$lang['space.info144']?>
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info145']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="spacetitle" value="<?=$user_arr['spacetitle']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info146']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="spacechildtitle" value="<?=$user_arr['spacechildtitle']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info147']?></td>
<td class="forumrow" colspan="5" height="25">
<textarea name="spacenote" rows="4" cols="80"><?=$user_arr['spacenote']?></textarea>
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info148']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="joinspacetime" value="<?=gmdate('Y-m-d H:i:s', $user_arr['joinspacetime']+getUserTimeZoneOffset())?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info149']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="todaynum" value="<?=$user_arr['todaynum']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info150']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="topicnum" value="<?=$user_arr['topicnum']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info151']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="postnum" value="<?=$user_arr['postnum']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info152']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="favnum" value="<?=$user_arr['favnum']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info153']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="photonum" value="<?=$user_arr['photonum']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info154']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="trackbacks" value="<?=$user_arr['trackbacks']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info155']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="pageview" value="<?=$user_arr['pageview']?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25"><?=$lang['space.info156']?></td>
<td class="forumrow" colspan="5" height="25">
<input type=text name="spacesize" value="<?=$user_arr['spacesize']?>">-1 <?=$lang['space.info157']?></td>
</tr>
<tr>
<td class="forumrow1" height="25"></td>
<td class="forumrow1" colspan="5" height="25">
<input type="submit" class="button"  name="submit" value="<?=$lang['space.info159']?>">
</td>
</tr>
  </form>
</table>
<?
			}
		}
	}
}
if($action=="user_lanmu" or $action=="user_lanmu_search"){
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<FORM METHOD="post" name="userform" action="?action=user_lanmu_search">
<tr> 
<th width="100%" class="tdtit" colspan="6"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info167']?></font>
</th>
</tr>
<tr>
<td class="forumrow" colspan=6 height="25">
<B><?=$lang['space.info21']?>:</B><?=$lang['space.info168']?>
</td>
</tr>
<tr>
<td class="forumrow" colspan=6 height="25">
<B><?=$lang['space.info129']?>:</B><input type="text" value="" name="keyword">
<input type="submit"  class="button" name="submit" value="<?=$lang['space.info165']?>">
<?=$lang['space.info169']?>
</td>
</tr>
<tr align="center" class="forumrow1">
<td height="25" align="left">&nbsp;
<B><?=$lang['space.info170']?></B>
</td>
<td align="center">
<B><?=$lang['space.info171']?></B>
</td>
<td align="center">
<B><?=$lang['space.info115']?></B>
</td>
<td align="center">
<B><?=$lang['space.info116']?></B>
</td>
<td align="center">
<B><?=$lang['space.info133']?></B>
</td>
<td align="center">
<B><?=$lang['space.info119']?></B>
</td>
</tr>
</FORM>
  <?
	if(!empty($userinfo_list))	{
		if(is_array($userinfo_list)){
			foreach($userinfo_list as $userinfo_arr){
 ?>
  <tr class="forumrow">
    <td height="25" style="text-align:center;"><? echo htmlspecialchars($userinfo_arr['username'])?>(<?echo htmlspecialchars($userinfo_arr['spacename'])?>)</td>
    <td height="25" style="text-align:center;"><?=$userinfo_arr['ucattitle']?></td>
    <td height="25" style="text-align:center;"><?=$userinfo_arr['todaynum']?></td>
    <td height="25" style="text-align:center;"><?=$userinfo_arr['topicnum']?></td>
    <td height="25" style="text-align:center;"><?=$userinfo_arr['postnum']?></td>
    <td height="25" style="text-align:center;">
		<a href="?action=useritem_edit&id=<?=$userinfo_arr['ucatid']?>"><?=$lang['space.info120']?></a> | 
		<?
		If (intval($userinfo_arr['topicnum']==0)){
		?>
		<a href="?action=useritem_del&id=<?=$userinfo_arr['ucatid']?>" onclick="{if(confirm('<?=$lang['space.info134']?>')){return true;}return false;}"><?=$lang['space.info121']?></a>
		<?
		}else{
		?>
		<a href="#" onclick="{if(confirm('<?=$lang['space.info135']?>')){return true;}return false;}"><?=$lang['space.info121']?></a>
		<?
		}
		?>
	</td>
  </tr>
  <?
			}
		}
	}
 ?>
  <tr>
    <td colspan="6" class="forumrow">
	<?
		if($total!=0){
			$p = new page;
			$p->setall($page,$total,$page_size,$lang['log.info40'],$lang['log.info41'],'100%','center','biz');
			print $p->printpage(null,1);		
		}
	?>
</td>
  </tr>
</table>
<?}if($action=="useritem_edit"){
	if(!empty($lanmu_edit_list)){
		if(is_array($lanmu_edit_list)){
			foreach($lanmu_edit_list as $lanmu_edit_arr){
?>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
<FORM method="post" name="itemeditform" action="?action=item_editok">
<tr align="center">
<td class="tit1" height="25" colspan="6">
<B><?=$lang['space.info172']?></B>
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<?=$lang['space.info171']?>
</td>
<td class="forumrow" width="65%">
<input type="text" name="title" size="50" value="<?echo htmlspecialchars($lanmu_edit_arr['ucattitle'])?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<?=$lang['space.info173']?>
</td>
<td class="forumrow" width="65%">
<textarea name="note" cols="50" rows="5"><?echo htmlspecialchars($lanmu_edit_arr['ucatnote'])?></textarea>
</td>
</tr>
<tr align="center">
<td class="forumrow1" height="25" width="35%" align="right"></td>
<td class="forumrow1" height="25">
<input type="submit" class="button"  name="submit" value="<?=$lang['space.info174']?>">
</td>
</tr>
</FORM>
</table>
<?			}
		}
	}
}
if($action=="ad_manage"){
	if(!empty($ad_info)){
		if(is_array($ad_info)){
			foreach($ad_info as $ad_arr){
?>
	<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
	  <form method="post" action="?action=ad_edit&ad_type=1">
	<tr> 
	<td  class="tdtit" colspan="2"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info166']?></font>
	</td>
	</tr>
	<tr>
	<td class="forumrow"><?=$lang['space.info175']?>:</td>
	<td class="forumrow">
	<textarea name="spacetopnews" rows="0" cols="0" style="display:none;"><?echo $ad_arr['s_topnews']?></textarea>
	<iframe id="EditFrame" src="../space/edit_plus/fckeditor/editor/fckeditor.html?InstanceName=spacetopnews&Toolbar=Default" width="100%" height="200" frameborder="no" scrolling="no"></iframe>
	<input type="submit" class="button"  name="submit" value="<?=$lang['space.info101']?>">
	</td>
	</tr>
	</form>
	</table>
	<br>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableborder">
      <form method="post" action="?action=ad_edit&ad_type=2">
      <tr>
        <td class="tit1" colspan="2" height="25"><?=$lang['space.info255']?><?=$lang['space.info176']?> </td>
      </tr>
        <tr>
          <td class="forumrow"><?=$lang['space.info177']?>: </td>
          <td class="forumrow">
              <textarea name="spacemanagenews" rows="0" cols="0" style="display:none;"><?echo $ad_arr['s_managenews']?></textarea>
              <iframe id="EditFrame" src="../space/edit_plus/fckeditor/editor/fckeditor.html?InstanceName=spacemanagenews&Toolbar=Default" width="100%" height="200" frameborder="no" scrolling="no"></iframe>
              <input type="submit" class="button"  name="submit" value="<?=$lang['space.info101']?>">
          </td>
        </tr>
      </form>
    </table>
<?			}
		}
	}
}
if($action=="key_word" or $action=="keyword_search"){
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr><td colspan="4">
<table border="0" cellspacing="0" cellpadding="0"  align="center">
<FORM METHOD="post" name="kw_form1" action="?action=keyword_search">
<tr> 
	<td width="100%" class="tdtit" colspan="4"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info178']?></font></td>
</tr>
<tr>
	<td class="forumrow" colspan="4" height="25">
		<?=$lang['space.info129']?><input type="text" value="" name="keyword">
		<input type="submit"  class="button" name="submit" value="<?=$lang['space.info165']?>">
		<?=$lang['space.info179']?>
	</td>
</tr>
<tr align="center" class="forumrow1">
	<td height="25" align="center">	&nbsp;<B><?=$lang['space.info170']?></B></td>
	<td align="center"><B><?=$lang['space.info16']?></B></td>
	<td align="center"><B><?=$lang['space.info183']?></B></td>
	<td align="center"><B><?=$lang['space.info119']?></B></td>
</tr>
</FORM>
</table>
</tr></td>
  <?
	if(!empty($userinfo_list))	{
		if(is_array($userinfo_list)){
			foreach($userinfo_list as $keyword_arr){
 ?>
<FORM METHOD="post" name="kw_form2" action="?action=kw_del">
<tr class="forumrow">
<td height="25" align="center">
<? echo htmlspecialchars($keyword_arr['username'])?>(<? echo htmlspecialchars($keyword_arr['spacename'])?>)
</td>
<td height="25" align="center">
<? echo htmlspecialchars($keyword_arr['keyword'])?>(<? echo htmlspecialchars($keyword_arr['nkeyword'])?>)
</td>
<td height="25" align="center">
<a href="<? echo htmlspecialchars($keyword_arr['linkurl'])?>" target="_blank " title="<? echo htmlspecialchars($keyword_arr['linktitle'])?>"><? echo htmlspecialchars($keyword_arr['linkurl'])?></a>
</td>
<td height="25" align="center">
<input type="checkbox" name="keyid[]" value="<?=$keyword_arr['keyid']?>">
<a href="?action=kw_edit&keyid=<?=$keyword_arr['keyid']?>"><?=$lang['space.info120']?></a>
</td>
</tr>
<?			}
		}
	}
?>
<tr class="forumrow1">
<td colspan="4" align="right">
<input type="submit" class="button"  name="submit" value="<?=$lang['space.info121']?>">
&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
</form>
<tr><td colspan="4" class="forumrow">
	<?
		if($total!=0){
			$p = new page;
			$p->setall($page,$total,$page_size,$lang['log.info40'],$lang['log.info41'],'100%','center','biz');
			print $p->printpage(null,1);		
		}
	?>
</td></tr>
</table>
<?
}
if($action=="kw_edit"){
	if(!empty($lanmu_edit_list)){
		if(is_array($lanmu_edit_list)){
			foreach($lanmu_edit_list as $kwedit_arr){
?>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
<FORM method="post" action="?action=kw_editok&keyid=<?=$kwedit_arr['keyid']?>">
<tr align="center">
<td class="tit1" colspan="6"><?=$lang['space.info255']?><?=$lang['space.info181']?>
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<?=$lang['space.info16']?>
</td>
<td class="forumrow" width="65%">
<input type="text" name="keyword" size="50" value="<?echo htmlspecialchars($kwedit_arr['keyword'])?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<?=$lang['space.info182']?>
</td>
<td class="forumrow" width="65%">
<input type="text" name="nkeyword" size="50" value="<?echo htmlspecialchars($kwedit_arr['nkeyword'])?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<?=$lang['space.info183']?>
</td>
<td class="forumrow" width="65%">
<input type="text" name="linkurl" size="50" value="<?echo htmlspecialchars($kwedit_arr['linkurl'])?>">
</td>
</tr>
<tr>
<td class="forumrow" height="25" width="35%" align="right">
<?=$lang['space.info184']?>
</td>
<td class="forumrow" width="65%">
<input type="text" name="linktitle" size="50" value="<?echo htmlspecialchars($kwedit_arr['linktitle'])?>">
<input type="checkbox" name="newwindows" value="<?=$kwedit_arr['newwindows']?>" <?if(intval($kwedit_arr['newwindows'])==1) echo "checked"?>><?=$lang['space.info185']?></td>
</tr>
<tr>
<td class="forumrow1" height="25" width="35%" align="right"></td>
<td class="forumrow1" height="25">
<input type="submit" class="button"  name="submit" value="<?=$lang['space.info186']?>">
</td>
</tr>
</FORM>
</table>
<?			}
		}
	}
}
if($action=="file"){
	GLOBAL $spacedir_s_setting;
	$spacedir_s_setting=$db->scalar("select s_setting from {$dv}space_system");
	$spacedir_s_setting=explode(",",$spacedir_s_setting);
	$spacedir_s_setting=explode("|",$spacedir_s_setting[12]);
	$spacedir_s_setting=ROOT_PATH.$uploaddir.'/'.$spacedir_s_setting[19]."/";
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td class="tdtit"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info187']?></font></td>
</tr>
<tr><td class="forumrow"><?=$lang['space.info21']?>
<li><font color="red"><?=$lang['space.info188']?></font><?=$lang['space.info189']?></li>
</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
<tr> 
<td width="100%" class="tit1" colspan="5"><?=$lang['space.info255']?><?=$lang['space.info190']?></td>
</tr>
<tr class="forumrow1">
<td height="25" align=center><?=$lang['space.info191']?></td>
<td height="25" align=center><?=$lang['space.info192']?></td>
<td height="25" align=center><?=$lang['space.info193']?></td>
<td height="25" align=center><?=$lang['space.info194']?></td>
<td height="25" align=center><?=$lang['space.info119']?></td>
</tr>
<?
	if(!empty($file_list)){
		if(is_array($file_list)){
			foreach($file_list as $file_arr){
				$view_file=$file_arr['previewimage'];
				if($view_file==""){
					$view_file=$systemUpSetting[19].$file_arr['filename'];
				}
				$view_file=$view_file;
				$file_arr['dateandtime'] = gmdate('Y-m-d H:i:s', $file_arr['dateandtime']+getUserTimeZoneOffset());
?>
<tr class="forumrow">
<td height="25" align=center>
<?if(intval($file_arr['filetype'])==1)echo "<a href=\"".$spacedir_s_setting.$view_file."\" target=\"_blank\"><img src=\"".$spacedir_s_setting.$view_file."\" border=\"1\" width=\"80\" height=\"60\"></a>";else echo $lang['space.info195'];?>
</td>
<td height="25" align=center><?=$lang['space.info284']?><b><?=$file_arr['title']?></b><?=$lang['space.info285']?><br><u><?=$file_arr['filename']?></u>
</td>
<td height="25" align=center><?=$file_arr['username']?></td>
<td height="25" align=center><?=$file_arr['dateandtime']?></td>
<td height="25" align=center>
<?if(intval($file_arr['islock'])==4)echo "<font color=\"red\">".$lang['space.info188']."</font>";else echo "<a href=\"../space.php?userid_".$file_arr['spaceuserid'].".showtopic.".$file_arr['topicid'].".html\" target=\"_blank\">".$lang['space.info196']."</a>";?> | <a href="?action=f_del&fid=<?=$file_arr['id']?>"><?=$lang['space.info121']?></a>
</td>
</tr>
<?
			}
		}
	}
?>
<tr><td colspan="5" class="forumrow">
	<?
		if($total!=0){
			$p = new page;
			$p->setall($page,$total,$page_size,$lang['log.info40'],$lang['log.info41'],'100%','center','biz');
			print $p->printpage(null,1);		
		}
	?>
</td></tr>
</table>
<?}
if($action=="data"){
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<form name="theform" method="post" action="">
<input type="hidden" name="doaction" value="">
  <tr>
    <td colspan="2" class="tdtit"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info214']?></font></td>
  </tr>
  <tr>
    <td colspan="2" style="text-height:50px;" class="forumrow"><?=$lang['space.info21']?>:</td>
    </tr>
  <tr>
    <td width="20%" style="text-height:50" class="forumrow">
	<input type="submit" class="button"  name="Submit" value="<?=$lang['space.info220']?>" onclick="this.form.doaction.value='user_count'"></td>
    <td width="80%" align="left" class="forumrow"><?=$lang['space.info215']?></td>
  </tr>
  <tr>
    <td width="20%" style="text-height:50px;" class="forumrow">
	<input type="submit" class="button"  name="Submit" value="<?=$lang['space.info221']?>" onclick="this.form.doaction.value='index_data'"></td>
    <td width="80%" align="left" class="forumrow"><?=$lang['space.info216']?></td>
  </tr>
  <tr>
    <td width="20%" style="text-height:50px;" class="forumrow">
	<input type="submit" class="button"  name="Submit" value="<?=$lang['space.info222']?>" onclick="this.form.doaction.value='topic_data'"></td>
    <td width="80%" align="left" class="forumrow"><?=$lang['space.info217']?></td>
  </tr>
  <tr>
    <td width="20%" style="text-height:50px;" class="forumrow">
	<input type="submit" class="button"  name="Submit" value="<?=$lang['space.info223']?>" onclick="this.form.doaction.value='total_data'"></td>
    <td width="80%" align="left" class="forumrow"><?=$lang['space.info218']?></td>
  </tr>
  <tr>
    <td width="20%"style="text-height:50px;" class="forumrow">
	<input type="submit" class="button"  name="Submit" value="<?=$lang['space.info224']?>"  onclick="this.form.doaction.value='total_updata'"></td>
    <td width="80%" align="left" class="forumrow"><?=$lang['space.info219']?></td>
  </tr>
</form>
</table>
<?}
if($action=="tmplate"){
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<form name="tmpform" method="post" action="?action=add_tmpok">
  <tr>
    <td colspan="2" class="tdtit"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info225']?></font></td>
    </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info226']?></td>
    <td width="80%" class="forumrow"><input type="text" name="tmp_name" size="20" value="<?=$tmp_edit_list['s_skinname']?>"></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info227']?></td>
    <td width="80%" class="forumrow"><input type="text" name="provide" size="20" value="<?=$tmp_edit_list['s_builder']?>"></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info228']?></td>
    <td width="80%" class="forumrow"><input name="tmp_path" type="text" size="50" value="<?=$tmp_edit_list['s_path']?>"></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info229']?></td>
    <td width="80%" class="forumrow"><input name="demo_pic" type="text" size="50" value="<?=$tmp_edit_list['s_viewpic']?>"></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info230']?></td>
    <td width="80%" class="forumrow"><textarea name="info_explain" cols="50" rows="8"> <?=$tmp_edit_list['s_info']?></textarea></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow1">&nbsp;</td>
    <td width="80%" height="25" class="forumrow1">
	<input type="submit" class="button"  name="Submit" value=" <?=$lang['space.info231']?> "></td>
  </tr>
</form>
</table>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <tr>
    <td colspan="5" class="tit1"><?=$lang['space.info255']?><?=$lang['space.info232']?></td>
  </tr>
  <tr class="forumrow1">
    <td align=center><?=$lang['space.info191']?></td>
    <td align=center><?=$lang['space.info192']?></td>
    <td align=center><?=$lang['space.info227']?> </td>
    <td align=center><?=$lang['space.info230']?> </td>
    <td align=center><?=$lang['space.info119']?> </td>
  </tr>
  <?
	if(!empty($tmp_list)){
		if(is_array($tmp_list)){
			foreach($tmp_list as $tmp_arr){
  ?>
  <tr class="forumrow">
    <td height="25" align=center><img src="../<?=$tmp_arr['s_viewpic']?>" border="0"></td>
    <td height="25" align=center><?=$tmp_arr['s_skinname']?><br><?=$tmp_arr['s_path']?></td>
    <td height="25" align=center><?=$tmp_arr['s_builder']?></td>
    <td height="25" align=center><?=$tmp_arr['s_info']?></td>
    <td height="25" align=center><a href="?action=tmp_edit&id=<?=$tmp_arr['s_id']?>"><?=$lang['space.info120']?></a> | <a href="?action=tmp_del&id=<?=$tmp_arr['s_id']?>"><?=$lang['space.info121']?></a> | <a href="?action=tmp_sysdef&s_name=<?=$tmp_arr['s_skinname']?>&id=<?=$tmp_arr['s_id']?>"><?=$lang['space.info233']?></a></td>
  </tr>
  <?
			}
		}
	}
  ?>
  <tr>
    <td colspan="5" class="forumrow">
	<?
	if($total!=0){
		$p = new page;
		$p->setall($page,$total,$page_size,$lang['space.info240'],$lang['space.info241'],'100%','center','biz');
		print $p->printpage(null,1);		
	}
	?>
</td>
  </tr>
</table>
<?}
	if($action=="tmp_edit"){
	$edit_sql=$db->query("SELECT s_id,s_skinname,s_path,s_viewpic,s_info,s_builder FROM {$dv}space_skins WHERE s_id=".intval($id)."");
	$tmp_edit_list=$db->fetch_array($edit_sql);
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<form name="tmpeditform" method="post" action="?action=edit_tmpok&id=<?=$tmp_edit_list['s_id']?>">
  <tr>
    <td colspan="2" class="tdtit"><font color="red"><?=$lang['space.info255']?><?=$lang['space.info225']?> </font></td>
    </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info226']?></td>
    <td width="80%" class="forumrow"><input type="text" name="tmp_name" size="20" value="<?=$tmp_edit_list['s_skinname']?>"></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info227']?></td>
    <td width="80%" class="forumrow"><input type="text" name="provide" size="20" value="<?=$tmp_edit_list['s_builder']?>"></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info228']?></td>
    <td width="80%" class="forumrow"><input name="tmp_path" type="text" size="50" value="<?=$tmp_edit_list['s_path']?>"></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info229']?></td>
    <td width="80%" class="forumrow"><input name="demo_pic" type="text" size="50" value="<?=$tmp_edit_list['s_viewpic']?>"></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow"><?=$lang['space.info230']?></td>
    <td width="80%" class="forumrow"><textarea name="info_explain" cols="50" rows="8"> <?=$tmp_edit_list['s_info']?></textarea></td>
  </tr>
  <tr>
    <td width="20%" height="25" class="forumrow1">&nbsp;</td>
    <td width="80%" height="25" class="forumrow1">
	<input type="submit" class="button"  name="Submit" value=" <?=$lang['space.info257']?> "></td>
  </tr>
</form>
</table>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <tr>
    <td colspan="5" class="tit1"><?=$lang['space.info255']?><?=$lang['space.info232']?></td>
  </tr>
  <tr class="forumrow1">
    <td align=center><?=$lang['space.info191']?></td>
    <td align=center><?=$lang['space.info192']?></td>
    <td align=center><?=$lang['space.info227']?> </td>
    <td align=center><?=$lang['space.info230']?> </td>
    <td align=center><?=$lang['space.info119']?> </td>
  </tr>
  <?
	if(!empty($tmp_list)){
		if(is_array($tmp_list)){
			foreach($tmp_list as $tmp_arr){
  ?>
  <tr class="forumrow">
    <td height="25" align=center><img src="../<?=$tmp_arr['s_viewpic']?>" border="0"></td>
    <td height="25" align=center><?=$tmp_arr['s_skinname']?><br><?=$tmp_arr['s_path']?></td>
    <td height="25" align=center><?=$tmp_arr['s_builder']?></td>
    <td height="25" align=center><?=$tmp_arr['s_info']?></td>
    <td height="25" align=center><a href="?action=tmp_edit&id=<?=$tmp_arr['s_id']?>"><?=$lang['space.info120']?></a> | <a href="?action=tmp_del&id=<?=$tmp_arr['s_id']?>"><?=$lang['space.info121']?></a> | <a href="?action=tmp_sysdef&s_name=<?=$tmp_arr['s_skinname']?>&id=<?=$tmp_arr['s_id']?>"><?=$lang['space.info233']?></a></td>
  </tr>
  <?
			}
		}
	}
  ?>
  <tr>
    <td colspan="5" class="forumrow">
	<?
	if($total!=0){
		$p = new page;
		$p->setall($page,$total,$page_size,$lang['space.info240'],$lang['space.info241'],'100%','center','biz');
		print $p->printpage(null,1);		
	}
	?>
</td>
  </tr>
</table>
<?}
if($action=="weather"){
?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
 <form name="form_weather" method="post" action="?action=weather_save">
 <tr>
    <td colspan="2" class="tit1"><?=$lang['space.info248']?>[<a href="#top"><?=$lang['space.info249']?></a>]
	</td>
  </tr>
  <tr>
    <td colspan="2" class="td1" height="30">
	<?=$lang['space.info250']?>
	</td>
    </tr>
 	<?
		if(!empty($top_arr)){
			if(is_array($top_arr)){
				foreach($top_arr as $top_list){
					$space_setting=$top_list['s_setting'];
					if($space_setting=="" or is_null($space_setting)){
						$space_setting=$lang['space.info1'];
					}
					$space_setting=explode(",",$space_setting);
					if(count($space_setting)<100){
						$space_setting=explode(",",$lang['space.info2']);
					}
					$weather_a=explode("|",$space_setting[13]);
					$weather_b=explode("|",$space_setting[14]);
					$w_count=count($weather_a);
					for($i=0;$i<$w_count;$i++){
	?>
					  <tr>
						<td width="50%" class="td1" height="25"><?=$lang['space.info251']?></td>
						<td width="50%" class="td1" height="25">
						<input type="text" name="weather_a[]" size="15" value="<?=$weather_a[$i]?>">
						<?=$lang['space.info252']?>
						<input type="text" name="weather_b[]" size="15" value="<?=$weather_b[$i]?>">
						<img src="<?=$lang['space.info253']?><?=$weather_b[$i]?>">
						</td>
					  </tr>
					  <tr><td height="1" colspan="2" bgcolor="#ffffff"></td></tr>
  <?
					}
				}
			}
		}
?>
<?
	for($j=0;$j<12;$j++){
?>
<input type="hidden" value="<?=$space_setting[$j]?>" name="str_space_setting[]">
<?
chr(13);
}
?>
	<input type="hidden" name="spacename" value="<?=$top_list['s_name']?>">
	<input type="hidden" name="spaceurl" value="<?=$top_list['s_url']?>">
	<input type="hidden" name="spacedomain" value="<?=$top_list['s_sdomain']?>">
	<input type="hidden" name="weathernum" value="<? echo $w_count?>">
  <tr><td height="1" colspan="2" bgcolor="#0000ff"></td></tr>
  <tr>
	<td width="50%" class="td1" height="25"><?=$lang['space.info251']?></td>
	<td width="50%" class="td1" height="25">
	<input type="text" name="nweather_a" size="15" value="">
	<?=$lang['space.info252']?>
	<input type="text" name="nweather_b" size="15" value="">
	</td>
  </tr>
  <tr>
    <td colspan="2" class="td1" height="30" style="text-align:center;">
	<input type="submit" class="button"  name="Submit" value="<?=$lang['space.info254']?>">
	</td>
  </tr>
  </form>
</table>
<?}
if($action=="today_recommend"){
	global $db_today_recommend;
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
	<form id="form1" name="form1" method="post" action="?">
	<input type="hidden" name="doaction" value="do_today_recommend" />
  <tr>
    <td colspan="2" class="tdtit"><font color=
	"red"><?=$lang['space.info255'].$lang['space.info258']?></font></td>
  </tr>
  <tr>
    <td height="30" class="forumrow"><?=$lang['space.info260']?><input type="text" style="width:50%;" name="arr_today_recommend[0][0]" value="<?=$db_today_recommend[0][0]?>" /> </td>
    <td height="30" class="forumrow"><?=$lang['space.info261']?><input type="text" style="width:50%;" name="arr_today_recommend[0][1]" value="<?=$db_today_recommend[0][1]?>" /></td>
  </tr>
  <tr>
    <td height="30" class="forumrow1"><?=$lang['space.info260']?><input type="text" style="width:50%;" name="arr_today_recommend[1][0]" value="<?=$db_today_recommend[1][0]?>" /></td>
    <td height="30" class="forumrow1"><?=$lang['space.info261']?><input type="text" style="width:50%;" name="arr_today_recommend[1][1]" value="<?=$db_today_recommend[1][1]?>" /></td>
  </tr>
  <tr>
    <td height="30" class="forumrow"><?=$lang['space.info260']?><input type="text" style="width:50%;" name="arr_today_recommend[2][0]" value="<?=$db_today_recommend[2][0]?>" /></td>
    <td height="30" class="forumrow"><?=$lang['space.info261']?><input type="text" style="width:50%;" name="arr_today_recommend[2][1]" value="<?=$db_today_recommend[2][1]?>" /></td>
  </tr>
  <tr>
    <td height="30" class="forumrow1"><?=$lang['space.info260']?><input type="text" style="width:50%;" name="arr_today_recommend[3][0]" value="<?=$db_today_recommend[3][0]?>" /></td>
    <td height="30" class="forumrow1"><?=$lang['space.info261']?><input type="text" style="width:50%;" name="arr_today_recommend[3][1]" value="<?=$db_today_recommend[3][1]?>" /></td>
  </tr>
  <tr>
    <td height="30" class="forumrow"><?=$lang['space.info260']?><input type="text" style="width:50%;" name="arr_today_recommend[4][0]" value="<?=$db_today_recommend[4][0]?>" /></td>
    <td height="30" class="forumrow"><?=$lang['space.info261']?><input type="text" style="width:50%;" name="arr_today_recommend[4][1]" value="<?=$db_today_recommend[4][1]?>" /></td>
  </tr>
  <tr>
    <td colspan="2" height="30" class="forumrow1" style="text-align:center;"><input type="submit" name="Submit" class="button"  value="<?=$lang['space.info259']?>" /></td>
  </tr>
	</form>
</table>
<?
}
if($action=="today_star"){
	global $upload_setting, $forum_setting, $todaystarinfo;
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<form id="formstar" name="formstar" method="post" action="?action=do_today_star">
	<input type="hidden" name="doaction" value="" />
  <tr>
    <td colspan="5" class="tdtit"><font color="red"><?=$lang['space.info255'].$lang['space.info262']?></font></td>
  </tr>
  <tr class="forumrow1">
    <td width="15%" style="text-align:center;"><?=$lang['space.info263']?></td>
    <td width="8%"><?=$lang['space.info265']?></td>
    <td width="8%"><?=$lang['space.info266']?></td>
    <td width="8%"><?=$lang['space.info272']?></td>
    <td width="*"><?=$lang['space.info264']?></td>
    </tr>
<?php
if (!empty($todaystarinfo['ResultSet']) AND is_array($todaystarinfo['ResultSet'])) {
	if (empty($upload_setting)) {
		require CACHE_PATH.'space/space_config.php';
		$spaceConfig_System =& $_DCACHE['spaceConfig_system'];
		$spaceSystemSetting = explode(',',$spaceConfig_System['s_setting']);
		$upload_setting = explode('|',$spaceSystemSetting[12]);
	}
	$forumuploadname = (false !== strrpos($forum_setting[76], '/') ? $forum_setting[76] : $forum_setting[76].'/');
	$spaceuploadname = (false !== strrpos($upload_setting[19], '/') ?$upload_setting[19] : $upload_setting[19].'/');
	$path = ROOT_PATH.$forumuploadname.$spaceuploadname;
	$today_star_audit_count = 0;
	foreach ($todaystarinfo['ResultSet'] AS $dbinfo) {
		$applydate = gmdate('Y-m-d', $dbinfo['apply_timestamp']+getUserTimeZoneOffset());
		$photopath = (!empty($dbinfo['user_preview_photo']) ? $dbinfo['user_preview_photo'] : $dbinfo['user_photo']);
		if (!empty($photopath)) {
			$photopath = '<a href="'.$path.$dbinfo['user_photo'].'" target="_blank"><img src="'.$path.$photopath.'" alt="" border="0" width="89" height="75" /></a>';
		} else {
			$photopath = '<img alt="" border="0" width="89" height="75" />';
		}
		if (0 == $dbinfo['status']) {
			$apply_status = $lang['space.info274'];
			$checked = '';
		} else {
			$apply_status = $lang['space.info273'];
			$checked = ' checked="checked" ';
			$today_star_audit_count++;
		}
?>
	<tr class="forumrow">
		<td style="text-align:center;"><input type="checkbox" class="button" name="today_star_del_userid[]" value="<?=$dbinfo['userid']?>" /><?=$lang['space.info271']?><input type="checkbox" class="button" name="today_star_audit_userid[]" value="<?=$dbinfo['userid']?>" onclick="return today_star_setaudit(this)" <?=$checked?> /><?=$lang['space.info267']?></td>
		<td><a href="<?=ROOT_PATH?>space.php?UserID_<?=$dbinfo['userid']?>.index.html" target="_blank"><?=$dbinfo['nickname']?></a></td>
		<td><?=$applydate?></td>
		<td><?=$apply_status?></td>
		<td><?=$photopath?></td>
	</tr>
<?php
	}//end foreach
	print '<tr><td colspan="5" align="left"><div style="width:350px;float:left;">'.pagelist($todaystarinfo['RecordCount'],$todaystarinfo['PageSize'],$todaystarinfo['AbsolutePage'],'?action=today_star',count($todaystarinfo['ResultSet'])).'</div></td></tr>';
}
?>
  <tr>
    <td colspan="5" style="height:30px;" class="forumrow1">
	<input type="hidden" name="today_star_audit_count" value="<?=$today_star_audit_count?>">
	<input type="checkbox" class="button" name="checkbox2" onclick="un(this)" value="checkbox" /><?=$lang['space.info268']?>
      <input type="button" class="button" name="audit_btn" value="<?=$lang['space.info269']?>" onclick="this.form.doaction.value='submitaudit';this.form.submit();" />&nbsp;&nbsp;
      <input type="button" class="button" name="delbtn" value="<?=$lang['space.info271_2']?>" onclick="this.form.doaction.value='delselected';this.form.submit();" />&nbsp;&nbsp;
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" class="button" value="<?=$lang['space.info271']?>" onclick="if(isNaN(parseInt(this.form.del_day.value)) || this.form.del_day.value<0){alert('<?=$lang['space.info280']?>');this.form.del_day.value=0;return false;}if(confirm('<?=$lang['space.info281']?>')){this.form.doaction.value='delbyday';this.form.submit();}" />&nbsp;<input type="text" name="del_day" value="7" size="5" style="padding-left: 5px;" /><?=$lang['space.info282']?>
	  </td>
    </tr>
</form>
</table>
<?
}
if($action==""){
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td width="100%" class="tdtit"  colspan="6"><font color="red"><?=$lang['space.info255']?><?=($lang['space.info19'])?></font></td>
</tr>
<a name="top"></a>
<tr>
<td class="forumrow" height="25" colspan="6" height="25">
<a href="forum_settings.php?doaction=plus"><?=($lang['space.info20'])?></a> | <a href="?#setting1"><?=($lang['space.info25'])?></a> | <a href="?#setting2"><?=($lang['space.info22'])?></a> | <a href="?#setting3"><?=($lang['space.info23'])?></a> | <a href="?action=weather"><?=($lang['space.info24'])?></a>
</td>
</tr>
</table>
<br>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
	<form name="form1" method="post" action="?action=save">
  <tr>
    <td>
	<?
		if(!empty($top_arr)){
			if(is_array($top_arr)){
				foreach($top_arr as $top_list){
					if($top_list['s_setting']=="" or is_null($top_list['s_setting'])){
						$space_set=$lang['space.info1'];
					}
					else{
						$space_set=$top_list['s_setting'];
					}
					$space_setting=explode(",",$space_set);
					if(count($space_setting)<100){
						$space_setting=explode(",",$lang['space.info2']);
					}
					$upload_setting=explode("|",$space_setting[12]);
					if(count($upload_setting)<2){
						$upload_setting=explode("|",$lang['space.info3']);
					}
	?>
		<a name="setting1"></a>
		<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
		<tr> 
		<td width="100%" colspan="3" class="tit1" height="25"><b><?=$lang['space.info255']?><?=($lang['space.info25'])?></b>[<a href="#top"><?=($lang['space.info26'])?></a>]
		</td></tr>
		<tr> 
		<td width="50%" class="forumrow"> <?=($lang['space.info27'])?></td>
		<td width="50%" class="forumrow">  
		<input type="text" name="spacename" size="35" value="<?=$top_list['s_name']?>">
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow1"> <?=($lang['space.info28'])?></td>
		<td width="50%" class="forumrow1">  
		<textarea name="space_setting17" cols="50" style="width:99%;"rows="3"><?=htmlspecialchars($space_setting[17]."")?></textarea>
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow"><?=$lang['space.info29']?><BR><?=$lang['space.info30']?></td>
		<td width="50%" class="forumrow">  
		<input type="text" name="spaceurl" size="35" value="<?=$top_list['s_url']?>">
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow1"> <?=$lang['space.info31']?><BR><?=$lang['space.info32']?></td>
		<td width="50%" class="forumrow1" height="25">  
		<input type="text" name="spacedomain" size="35" value="<?=$top_list['s_sdomain']?>">
		</td>
		</tr>
		</table>
		<br>
		<a name="setting2"></a>		
		<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
		<tr> 
		<td width="100%" colspan="3" class="tit1"><b><?=$lang['space.info255']?><?=$lang['space.info22']?></b>[<a href="#top"><?=$lang['space.info26']?></a>]</td>
		</tr>
		<tr> 
		<td width="50%" class="forumrow" height="25"> <?=$lang['space.info33']?></td>
		<td width="50%" class="forumrow" height="25">  
		<input type="radio" name="space_setting0" value="0" <?if($space_setting[0]==0)echo "checked"?> /><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="space_setting0" value="1" <?if($space_setting[0]==1)echo "checked"?> /><?=$lang['space.info35']?>&nbsp;
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow1" height="25"> <?=$lang['space.info36']?></td>
		<td width="50%" class="forumrow1" height="25">  
		<input type="radio" name="space_setting1" value="0" <?if($space_setting[1]==0)echo "checked"?> /><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="space_setting1" value="1" <?if($space_setting[1]==1)echo "checked"?> /><?=$lang['space.info35']?>&nbsp;
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow" height="25"> <?=$lang['space.info37']?></td>
		<td width="50%" class="forumrow" height="25">  
		<input type="radio" name="space_setting2" value="0" <?if($space_setting[2]==0)echo "checked"?> /><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="space_setting2" value="1" <?if($space_setting[2]==1)echo "checked"?> /><?=$lang['space.info35']?>&nbsp;
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow1" height="25"> <?=$lang['space.info38']?></td>
		<td width="50%" class="forumrow1" height="25">  
		<input type="radio" name="space_setting3" value="0" <?if($space_setting[3]==0)echo "checked"?> /><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="space_setting3" value="1" <?if($space_setting[3]==1)echo "checked"?> /><?=$lang['space.info35']?>&nbsp;
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow" height="25"> <?=$lang['space.info39']?></td>
		<td width="50%" class="forumrow" height="25">  
		<input type="radio" name="space_setting4" value="0" <?if($space_setting[4]==0)echo "checked"?> /><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="space_setting4" value="1" <?if($space_setting[4]==1)echo "checked"?> /><?=$lang['space.info35']?>&nbsp;
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow1" height="25"> <?=$lang['space.info40']?></td>
		<td width="50%" class="forumrow1" height="25">  
		<input type="radio" name="space_setting5" value="0" <?if($space_setting[5]==0)echo "checked"?> /><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="space_setting5" value="1" <?if($space_setting[5]==1)echo "checked"?> /><?=$lang['space.info35']?>&nbsp;
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow" height="25"> <?=$lang['space.info41']?></td>
		<td width="50%" class="forumrow" height="25">  
		<input type="text" name="space_setting6" size="35" value="<?=$space_setting[6]?>"> <?=$lang['space.info43']?>
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow1" height="25"> <?=$lang['space.info42']?></td>
		<td width="50%" class="forumrow1" height="25">  
		<input type="text" name="space_setting7" size="35" value="<?=$space_setting[7]?>"> <?=$lang['space.info44']?>
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow" height="25"> <?=$lang['space.info46']?></td>
		<td width="50%" class="forumrow" height="25">  
		<input type="text" name="space_setting8" size="35" value="<?=$space_setting[8]?>"> <?=$lang['space.info45']?>
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow1" height="25"> <?=$lang['space.info47']?></td>
		<td width="50%" class="forumrow1" height="25">  
		<input type="text" name="space_setting9" size="35" value="<?=$space_setting[9]?>"> <?=$lang['space.info45']?>
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow" height="25"> <?=$lang['space.info48']?></td>
		<td width="50%" class="forumrow" height="25">  
		<input type="radio" name="space_setting10" value="0" <?if($space_setting[10]==0)echo "checked"?> /><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="space_setting10" value="1" <?if($space_setting[10]==1)echo "checked"?> /><?=$lang['space.info35']?>&nbsp;
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow1" height="25"> <?=$lang['space.info49']?></td>
		<td width="50%" class="forumrow1" height="25">  
		<input type="radio" name="space_setting11" value="0" <?if($space_setting[11]==0)echo "checked"?> /><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="space_setting11" value="1" <?if($space_setting[11]==1)echo "checked"?> /><?=$lang['space.info35']?>&nbsp;
		</td>
		</tr>
		
		<tr> 
		<td width="50%" class="forumrow" height="25"> <?=$lang['space.info50']?></td>
		<td width="50%" class="forumrow" height="25">  
		<input type="text" name="space_setting15" value="<?=$space_setting[15]?>">MB <?=$lang['space.info51']?>
		</td>
		</tr>
		</table>
		<br>
		<a name="setting3"></a>
		<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
		<tr> 
		<td width="100%" colspan=3 class="tit1"><b><?=$lang['space.info255']?><?=$lang['space.info52']?></b>[<a href="#top"><?=$lang['space.info26']?></a>]
		</td>
		</tr>
		<tr> 
			<td width="50%" class="forumrow" height="25"> <?=$lang['space.info53']?><BR><?=$lang['space.info54']?></td>
			<td width="43%" class="forumrow" height="25">
			<input type="radio" name="upload_setting0" value="0" <?if($upload_setting[0]==0)echo "checked"?> /><?=$lang['space.info56']?>&nbsp;
			<input type="radio" name="upload_setting0" value="1" <?if($upload_setting[0]==1)echo "checked"?> /><?=$lang['space.info55']?>&nbsp;
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow1" height="25"><?=$lang['space.info57']?><BR><?=$lang['space.info58']?></td>
			<td class="forumrow1" height="25"> 
			<input type="text" name="upload_setting1" size="6" value="<?=$upload_setting[1]?>">&nbsp;K
			</td>
		</tr>
		
		<tr> 
		<td class="forumrow" height="25"> <?=$lang['space.info59']?><br><?=$lang['space.info60']?></td>
		<td class="forumrow" height="25">  
		<input type="text" name="space_setting16" value="<?=$space_setting[16]?>" size="40">
		</td>
		</tr>
		
		<tr> 
			<td class="forumrow1" height="25"><?=$lang['space.info61']?>:</td>
			<td class="forumrow1" height="25">
				<?=$lang['space.info62']?>:<INPUT TYPE="text" name="upload_setting14" size="10" value="<?=$upload_setting[14]?>"> <?=$lang['space.info64']?>
				<?=$lang['space.info63']?>:<INPUT TYPE="text" name="upload_setting15" size="10" value="<?=$upload_setting[15]?>"> <?=$lang['space.info64']?>
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow" height="25" height="25"> <?=$lang['space.info65']?>:</td>
			<td class="forumrow" height="25" height="25"> 
				<SELECT name="upload_setting16" id="upload_setting16">
				<OPTION value="0" <? if($upload_setting[16]==0) echo "selected"?>><?=$lang['space.info66']?></OPTION>
				<OPTION value="1" <? if($upload_setting[16]==1) echo "selected"?>><?=$lang['space.info67']?></OPTION>
				</SELECT>
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow1" height="25"><?=$lang['space.info68']?>:</td>
			<td class="forumrow1" height="25"> 
				<SELECT name="upload_setting17" id="upload_setting17">
				<OPTION value="0" <? if($upload_setting[17]==0) echo "selected"?>><?=$lang['space.info69']?></OPTION>
				<OPTION value="1" <? if($upload_setting[17]==1) echo "selected"?>><?=$lang['space.info70']?></OPTION>
				<OPTION value="2" <? if($upload_setting[17]==2) echo "selected"?>><?=$lang['space.info71']?></OPTION>
				</SELECT>
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow" height="25" height="25"><?=$lang['space.info72']?>:</td>
			<td class="forumrow" height="25" height="25"> 
			<INPUT TYPE="text" NAME="upload_setting4" size=40 value="<?=$upload_setting[4]?>">
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow1" height="25"><?=$lang['space.info73']?></td>
			<td class="forumrow1" height="25"> 
			<INPUT TYPE="text" NAME="upload_setting5" size=10 value="<?=$upload_setting[5]?>"> <b><?=$lang['space.info64']?></b>
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow" height="25" height="25"><?=$lang['space.info74']?></td>
			<td class="forumrow" height="25" height="25">
			<input type="hidden" name="upload_setting6" id="upload_setting6" value="<?=$upload_setting[6]?>">
			<img border=0 src="../images/post/rect.gif" style="cursor:pointer;background-Color:<?=$upload_setting[6]?>;" onclick="Getcolor(this,'upload_setting6');" title="<?=$lang['space.info75']?>">
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow1" height="25"><?=$lang['space.info76']?>:</td>
			<td class="forumrow1" height="25">
			<SELECT name="upload_setting7" id="upload_setting7">
			<?
				if (is_array($lang['ArrayFont'])){
					for ($i=0;$i<sizeof($lang['ArrayFont']);$i++){
						?>
						<option value="<?=$lang['ArrayFont'][$i]?>" <?if($upload_setting[7]==$lang['ArrayFont'][$i])echo "selected"?> ><?=$lang['ArrayFont'][$i]?></option>
						<?
					}
				}
			?>
			</SELECT>
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow" height="25" height="25"><?=$lang['space.info77']?>:</td>
			<td class="forumrow" height="25" height="25"> 
				<SELECT name="upload_setting8" id="upload_setting8">
				<OPTION value="0" <? if($upload_setting[8]==0) echo "selected"?>><?=$lang['space.info56']?></OPTION>
				<OPTION value="1" <? if($upload_setting[8]==1) echo "selected"?>><?=$lang['space.info55']?></OPTION>
				</SELECT>
			</td>
		</tr>
		
		<!-- 上传图片添加水印LOGO图片定义 -->
		<tr> 
			<td class="forumrow1" height="25"><?=$lang['space.info78']?>:<br><?=$lang['space.info81']?></td>
			<td class="forumrow1" height="25"> 
			<INPUT TYPE="text" NAME="upload_setting9" size="40" value="<?echo strtolower($upload_setting[9])?>">
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow" height="25" height="25"><?=$lang['space.info82']?>:</td>
			<td class="forumrow" height="25" height="25"> 
			<INPUT TYPE="text" NAME="upload_setting10" size=10 value="<?=$upload_setting[10]?>"> <?=$lang['space.info83']?>
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow1" height="25" height="25"><?=$lang['space.info84']?>:<br><?=$lang['space.info85']?></td>
			<td class="forumrow1" height="25" height="25"> 
			<INPUT TYPE="text" name="upload_setting18" ID="upload_setting18" size=10 value="<?=$upload_setting[18]?>"> 
			<img border=0 src="../images/post/rect.gif" style="cursor:pointer;background-Color:<?=$upload_setting[18]?>;" onclick="Getcolor(this,'upload_setting18');" title="<?=$lang['space.info75']?>">
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow" height="25"><?=$lang['space.info86']?>:<br><?=$lang['space.info87']?></td>
			<td class="forumrow" height="25"> 
			<?=$lang['space.info62']?>:<INPUT TYPE="text" NAME="upload_setting11" size=10 value="<?=$upload_setting[11]?>"> <?=$lang['space.info64']?>
			<?=$lang['space.info63']?>:<INPUT TYPE="text" NAME="upload_setting12" size=10 value="<?=$upload_setting[12]?>"> <?=$lang['space.info64']?>
			</td>
		</tr>
		
		<tr> 
			<td class="forumrow1" height="25" height="25"><?=$lang['space.info88']?>:</td>
			<td class="forumrow1" height="25" height="25">
			<SELECT NAME="upload_setting13" id="upload_setting13">
				<option <? if($upload_setting[13]==0) echo "selected"?> value="0"><?=$lang['space.info89_1']?></option>
				<option <? if($upload_setting[13]==1) echo "selected"?> value="1"><?=$lang['space.info89']?></option>
				<option <? if($upload_setting[13]==2) echo "selected"?> value="2"><?=$lang['space.info90']?></option>
				<option <? if($upload_setting[13]==3) echo "selected"?> value="3"><?=$lang['space.info91']?></option>
				<option <? if($upload_setting[13]==4) echo "selected"?> value="4"><?=$lang['space.info92']?></option>
				<option <? if($upload_setting[13]==5) echo "selected"?> value="5"><?=$lang['space.info93']?></option>
				<option <? if($upload_setting[13]==6) echo "selected"?> value="6"><?=$lang['space.info93_1']?></option>
				<option <? if($upload_setting[13]==7) echo "selected"?> value="7"><?=$lang['space.info93_2']?></option>
				<option <? if($upload_setting[13]==8) echo "selected"?> value="8"><?=$lang['space.info93_3']?></option>
				<option <? if($upload_setting[13]==9) echo "selected"?> value="9"><?=$lang['space.info93_4']?></option>
			</SELECT>
			</td>
		</tr>
		<!-- 上传图片添加水印LOGO图片定义 -->
		<?
			global $forum_setting;
			if(is_dir(ROOT_PATH.$forum_setting[76].'/'.$upload_setting[19])){
				$uptopdir = ((false === strrpos($forum_setting[76], '/')) ? $forum_setting[76].'/' : $forum_setting[76]);
		?>
		<tr> 
		<td class="forumrow" height="25"><?=$lang['space.info94']?></td>
		<td class="forumrow" height="25">
		<input type="radio" name="upload_setting20" value="0" <?if($upload_setting[20]==0)echo "checked"?>><?=$lang['space.info34']?>&nbsp;
		<input type="radio" name="upload_setting20" value="1" <?if($upload_setting[20]==1)echo "checked"?>><?=$lang['space.info104']?>&nbsp;
		</td>
		</tr>
		<tr> 
		<td class="forumrow1" height="25" height="25"><?=$lang['space.info102']?></td>
		<td class="forumrow1" height="25" height="25">
		<span style="border: 2px inset;">&nbsp;<?=$uptopdir?><input type=text name="upload_setting19" value="<?=$upload_setting[19]?>" style="border: 0px;"></span><?=$lang['space.info103']?>
		</td>
		</tr>
		<?}else{?>
		<input type=hidden name="upload_setting20" value=<?=$upload_setting[20]?>>
		<input type=hidden name="upload_setting19" value=<?=$upload_setting[19]?>>
		<?}?>
		<!--天气-->
		<input type="hidden" name="space_setting13" value="<?=$space_setting[13]?>">
		<input type="hidden" name="space_setting14" value="<?=$space_setting[14]?>">
		<!--天气-->
		<tr> 
		<td class="forumrow" height="25"></td>
		<td class="forumrow" height="25">
		<input type="submit" class="button"  name="submit" value="<?=$lang['space.info101']?>">
		</td>
		</tr>
		</table>
		<?
				}
			}
		}
		?>
    </td>
  </tr>
  </form>
</table>
<?}?>
