<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
global $w_left,$imgurl;
$tdbackgroup=$imgurl.'mastermune.gif';
?>
<table cellpadding="0" cellspacing="0" align="center" class="mainbox tableborder" >
<tr>
<td width="20%" bgcolor="#D6EAF5" style="padding-left:2px;"><B><?=$lang['template2']?> <b><font color=
"#ff6600"><?=$membername?></font></b> <?=$lang['template3']?></font></B></td>
<td style="width:80%;background: #fff" bgcolor="#D6EAF5" >

<table cellpadding="0" cellspacing="0" align="center" class="mainbox tableborder" border="0">
<tr>
<td height="23" align="center" width="14%" <?if($action=='ads'){echo 'class="admin_boardset_css1"';}else{echo 'class="admin_boardset_css2"';}?>><a href="?action=ads&boardid=<?=$GLOBALS['boardid']?>"><?=$lang['template.pic1']?></a></td>
<td height="23" align="center" width="14%" <?if($action=='basicinfo'){echo 'class="admin_boardset_css1"';}else{echo 'class="admin_boardset_css2"';}?>><a href="?action=basicinfo&boardid=<?=$GLOBALS['boardid']?>"><?=$lang['template.pic2']?></a></td>
<td height="23" align="center" width="14%" <?if($action=='boardads'){echo 'class="admin_boardset_css1"';}else{echo 'class="admin_boardset_css2"';}?>><a href="?action=boardads&boardid=<?=$GLOBALS['boardid']?>"><?=$lang['template.pic3']?></a></td>
<td height="23" align="center" width="14%" <?if($action=='batch'){echo 'class="admin_boardset_css1"';}else{echo 'class="admin_boardset_css2"';}?>><a href="?action=batch&boardid=<?=$GLOBALS['boardid']?>"><?=$lang['template.pic6']?></a></td>
<td height="23" align="center" width="14%" <?if($action=='pager'){echo 'class="admin_boardset_css1"';}else{echo 'class="admin_boardset_css2"';}?>><a href="?action=pager&boardid=<?=$GLOBALS['boardid']?>"><?=$lang['template.pic5']?></a></td>
<td width="30%" align="center" bgcolor="#D6EAF5"></td>
</tr>
</table>

</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" align="center" class="mainbox tableborder">
<tr><th colspan="2" align="center" ><b><?=$lang['template.pic7']?></b></th></tr>
<tr><td colspan="2" align="center" height="23"><font color="#000"><?=$lang['template.pic8']?><?=$_DCACHE['all_forums']["{$boardid}"]['boardtype']
?></font></td></tr>
<tr><td class="mfont tablebody5" width="70%"><?=$lang['template.pic9']?></td><td class="mfont tablebody5" width="30%"><?=$forum_today?></td></tr>
<tr><td class="mfont tablebody5"><?=$lang['template.pic4']?></td><td class="mfont tablebody5"><?=$forum_topic?></td></tr>
<tr><td class="mfont tablebody5"><?=$lang['template5']?></td><td class="mfont tablebody5"><?=$forum_posts?></td></tr>
<tr><td style="padding-left:10px;" colspan="2" height="23"><font color="#000"><?=$lang['template.fileurl']?></font></td></tr>
<tr><th colspan="2" align="center" ><b><?=$lang['file.attribute1']?></b></th></tr>
<tr><td class="mfont tablebody5"><?=$lang['file.attribute2']?></td><td class="mfont tablebody5"><?if(intval($_DCACHE['forum_settings'][1]['setting'][43])==1){echo '<font color=green>'.$lang['tpl.htm.str25'].'</font>';}else{echo '<font color=red>'.$lang['tpl.htm.str26'].'</font>';}?></td></tr>
<tr><td class="mfont tablebody5"><?=$lang['file.attribute3']?></td><td class="mfont tablebody5"><?if(intval($_DCACHE['forum_settings'][1]['setting'][44])==1){echo '<font color=green>'.$lang['tpl.htm.str25'].'</font>';}else{echo '<font color=red>'.$lang['tpl.htm.str26'].'</font>';}?></td></tr>
<tr><td class="mfont tablebody5"><?=$lang['file.attribute4']?></td><td class="mfont tablebody5"><?if(intval($_DCACHE['forum_settings'][1]['setting'][45])==1){echo '<font color=green>'.$lang['tpl.htm.str25'].'</font>';}else{echo '<font color=red>'.$lang['tpl.htm.str26'].'</font>';}?></td></tr>
<tr><td style="padding-left:10px;padding-top:30px;" colspan="2" height="230" valign="top"><font color="#000"><?=$lang['file.attribute5']?></font></td></tr>
</table>
</td>
<td valign="top" class="mfont" style="padding:0px;padding-left:3px;">
<table cellpadding="0" cellspacing="0" align="center" width="100%">
<tr><td class="mtd" valign="top" style="padding:20px;padding-bottom:5px;"><?=$lang['file.attribute6']?></td></tr>
<?if($action=='ads'){?>
<tr><td><hr /></td></tr>
<tr><td style="padding:0px;">
	<iframe src="announcements.php?boardid=<?=$GLOBALS['boardid']?>&ahide=<?=base64_encode(THIS_ADMIN_HIDE)?>" height="400" width="100%" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" name ="ifadminboard3"  onload="document.all.ifadminboard3.height=document.frames['ifadminboard3'].document.body.scrollHeight"></iframe>
</td></tr>
<?
}elseif($action=='basicinfo'){
	$boardinfo= & currboardinfo();
	foreach ($boardinfo as $boardinfolist);
?>
<tr><td><hr /></td></tr>
<tr><td style="padding:20px;padding-top:10px;padding-bottom:33px;"><?=$lang['Error.information']?></td></tr>	
<tr><td>
<table cellPadding="0" cellSpacing="0" class="mainbox tableborder" align="center">
	<form action ="?action=saveeditinfo&boardid=<?=$GLOBALS['boardid']?>" method="post">
    <tr> 
    <th colspan="3" align="center"><b><?=$lang['template.pic2']?> </b> 
 
  <tr> 
      <td height=22  align="center"><?=$lang['dvbbs.lanstr5']?></td>
      <td >
	  <input type="text" name="boardtype" size="30" value="<?=htmlspecialchars($_DCACHE['all_forums']["{$boardid}"]['boardtype'])
?>">
	  </td>
    </tr>
    <tr> 
      <td height=22  align="center"><?=$lang['page.tr']?></td>
      <td >
      <textarea name="boardreadme" cols="80" rows="6"><?=htmlspecialchars($boardinfolist['readme'])?></textarea>
	  <br>
	  <?=$lang['tmp.info1']?>
      </td>
    </tr>
    <tr> 
      <td height=22  align="center"><?=$lang['tmp.info2']?></td>
      <td >
      <textarea name="boardrules" cols="80" rows="6"><?=htmlspecialchars($boardinfolist['rules'])?></textarea>
	  <br>
	  <?=$lang['tmp.info3']?>
      </td>
    </tr>
    <tr> 
      <td height=48  align="center"><?=$lang['tmp.info4']?></td>
      <td > 
        <input type="text" name="boardmaster" size="80" value="<?=htmlspecialchars($boardinfolist['boardmaster'])?>"><BR><?=$lang['tmp.info5']?>
      </td>
    </tr>
	<tr> 
      <td height=30 colspan="2" align="center"><input type="submit" name="Submit" 
<?
	if(!(boardmaster_limit()))
		if(boardmaster_parent()){
			if(intval($_DCACHE['forum_settings'][1]['setting'][43])!=1)
				echo 'disabled';
		}
?> value="<?=$lang['tpl.htm.str6']?>"></td>
    </tr>
	</form>
  </table>
</td></tr>
<?
}elseif($action=='boardads'){
	  $adslist=getads_project();
	  foreach ($adslist as $adsarr);
	  $adsinfoarr=explode('<>',$adsarr['setting']);
?>

<tr><td style="padding:20px;padding-top:10px;padding-bottom:33px;"><?=$lang['Error.information']?></td></tr>
<table cellPadding="0" cellSpacing="0" class="mainbox tableborder" align=center>
<form method="POST" action="?action=saveboardads&adsid=<?=$adsarr['id']?>">
<tr> 
<th colspan="2" align="center"><?=$lang['tmp.info6']?></th>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info7']?></B></font></td>
<td width="70%"> 
<textarea name="adsintotop" cols="50" rows="5" style="width:100%"><?=htmlspecialchars($adsinfoarr[0])?></textarea>
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info8']?></B></font></td>
<td width="70%"> 
<textarea name="adsintoend" cols="50" rows="5" style="width:100%"><?=htmlspecialchars($adsinfoarr[1])?></textarea>
</td>
</tr>
<tr> 
<th width="40%" class="tit1" colspan="2" align="center"><B><?=$lang['tmp.info9']?></B></font></th>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info10']?></B></font></td>
<td width="70%"> 
<input type=radio name="beopen_floatads" value=0 <?if(intval($adsinfoarr[2])==0){echo 'checked';}?>><?=$lang['tpl.htm.str26']?>&nbsp;
<input type=radio name="beopen_floatads" value=1 <?if(intval($adsinfoarr[2])==1){echo 'checked';}?>><?=$lang['tpl.htm.str25']?>&nbsp;
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info11']?></B></font></td>
<td width="70%"> 
<input type="text" name="float_adspic" size="35" value="<?=htmlspecialchars($adsinfoarr[3])?>">
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info12']?></B></font></td>
<td width="70%"> 
<input type="text" name="float_adsurl" size="35" value="<?=htmlspecialchars($adsinfoarr[4])?>">
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info13']?></B></font></td>
<td width="70%"> 
<input type="text" name="float_adswidth" size="3" value="<?=htmlspecialchars($adsinfoarr[5])?>">&nbsp;<?=$lang['tmp.info15']?>
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info14']?></B></font></td>
<td width="70%"> 
<input type="text" name="float_adsheight" size="3" value="<?=htmlspecialchars($adsinfoarr[6])?>">&nbsp;<?=$lang['tmp.info15']?>
</td>
</tr>
<tr> 
<th width="30%" colspan="2" align="center"><B><?=$lang['tmp.info16']?></B></font></th>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info17']?></B></font></td>
<td width="70%"> 
<input type=radio name="beopen_fixupads" value=0 <?if(intval($adsinfoarr[7])==0){echo 'checked';}?>><?=$lang['tpl.htm.str26']?>&nbsp;
<input type=radio name="beopen_fixupads" value=1 <?if(intval($adsinfoarr[7])==1){echo 'checked';}?>><?=$lang['tpl.htm.str25']?>&nbsp;
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info18']?></B></font></td>
<td width="70%"> 
<input type="text" name="fixupadspic" size="35" value="<?=htmlspecialchars($adsinfoarr[8])?>">
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info19']?></B></font></td>
<td width="70%"> 
<input type="text" name="fixupadsurl" size="35" value="<?=htmlspecialchars($adsinfoarr[9])?>" >
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info20']?></B></font></td>
<td width="70%"> 
<input type="text" name="fixupadswidth" size="3" value="<?=htmlspecialchars($adsinfoarr[10])?>" >&nbsp;<?=$lang['tmp.info15']?>
</td>
</tr>
<tr> 
<td width="30%"><B><?=$lang['tmp.info21']?></B></font></td>
<td width="70%"> 
<input type="text" name="fixupadsheight" size="3" value="<?=htmlspecialchars($adsinfoarr[11])?>">&nbsp;<?=$lang['tmp.info15']?>
</td>
</tr>
<tr> 
<th  colspan="2" align="center"><B><?=$lang['tmp.info22']?></B></th>
</tr>
<tr> 
<td width="200"><B><?=$lang['tmp.info23']?></B></td>
<td width="*"> 
<input type=radio name="beopenmiddle" value=0 <?if(intval($adsinfoarr[12])==0){echo 'checked';}?>><?=$lang['tpl.htm.str26']?>&nbsp;
<input type=radio name="beopenmiddle" value=1 <?if(intval($adsinfoarr[12])==1){echo 'checked';}?>><?=$lang['tpl.htm.str25']?>&nbsp;
</td>
</tr>
<tr> 
<td width="*" valign="top" colspan=2><?=$lang['tmp.info24']?></td>
</tr>
<tr>
<td width="*" colspan=2> 
<textarea name="forum_adscode" style="width:100%" rows="8" ><?=htmlspecialchars($adsinfoarr[13])?></textarea>
</td>
</tr>
<tr> 
<td width="200"><B><?=$lang['tmp.info25']?></B></td>
<td width="*"> 
<input type=radio name="beopen_wordads" value=0 <?if(intval($adsinfoarr[14])==0){echo 'checked';}?>><?=$lang['tpl.htm.str26']?>&nbsp;
<input type=radio name="beopen_wordads" value=1 <?if(intval($adsinfoarr[14])==1){echo 'checked';}?>><?=$lang['tpl.htm.str25']?>&nbsp;
</td>
</tr>
<tr> 
<td width="200"><?=$lang['tpl.str1']?></td>
<td width="*"> 
<input type=radio name="adsplace" value=0 <?if(intval($adsinfoarr[15])==0){echo 'checked';}?>><?=$lang['tpl.str2']?>&nbsp;
<input type=radio name="adsplace" value=1 <?if(intval($adsinfoarr[15])==1){echo 'checked';}?>><?=$lang['tpl.str3']?>&nbsp;
<input type=radio name="adsplace" value=2 <?if(intval($adsinfoarr[15])==2){echo 'checked';}?>><?=$lang['tpl.htm.str1']?>&nbsp;
<input type=radio name="adsplace" value=3 <?if(intval($adsinfoarr[15])==3){echo 'checked';}?>><?=$lang['tpl.htm.str2']?>&nbsp;
<input type="hidden" name="forum_ads17" size="3" value="4">
</td>
</tr>
<tr> 
<td width="200"><B><?=$lang['tpl.htm.str3']?></B></td>
<td width="*"> 
<input type="text" name="adsnum" size="20" value="<?=htmlspecialchars($adsinfoarr[16])?>"><?=$lang['tpl.htm.str4']?>
</td>
</tr>
<tr> 
<td width="*" valign="top" colspan=2><?=$lang['tpl.htm.str5']?></td>
</tr>
<tr>
<td width="*" colspan=2> 
<textarea name="wordadsinfo" style="width:100%" rows="8"><?=htmlspecialchars($adsinfoarr[17])?></textarea>
</td>
</tr>
<tr> 
<td colspan="2" align="center">
<input type="submit" name="Submit" 
<?
	if(boardmaster_parent()){
		if(intval($_DCACHE['forum_settings'][1]['setting'][44])!=1)
			echo 'disabled';
	}
	else{
		if(intval($_DCACHE['forum_settings'][1]['setting'][45])!=1)
			echo 'disabled';
		else if(!(boardmaster_limit()))
			echo 'disabled';
	}
?> value="<?=$lang['tpl.htm.str6']?>"></td>
</tr>
</form>
</table>
<?}elseif($action=='batch'){?>

<tr><td style="padding-right:4px;">
	<iframe src="index.php?action=batch&boardid=<?=$GLOBALS['boardid']?>&ahide=<?=base64_encode(THIS_ADMIN_HIDE)?>" height="400" width="100%" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" id = "ifadminboard1" name ="ifadminboard1"  onload="document.all.ifadminboard1.height=document.frames['ifadminboard1'].document.body.scrollHeight"></iframe>
</td></tr>
<?}elseif($action=='pager'){?>

<tr><td style="padding-right:4px;">
	<iframe src="infolist.php?action=pager&t=paper&boardid=<?=$GLOBALS['boardid']?>&ahide=<?=base64_encode(THIS_ADMIN_HIDE)?>" height="400" width="100%" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"  id = "ifadminboard2" name ="ifadminboard2"  onload="document.all.ifadminboard2.height=document.frames['ifadminboard2'].document.body.scrollHeight"></iframe>
</td></tr>
<?}?>
</table>
</td>
</tr>
</table>