<?php
require_once('session.php');
require_once('../fun/funsql.php'); 
require_once('../fun/funlogic.php');
require_once('../fun/funuser.php');
if (isset($_GET["rel"])){$rel=$_GET["rel"];}else{$rel="";}
$userstr = new userstr($dbz);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Home</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../fun/adminjs.js"></script>
<body>

<?php if($rel=='user_config'){
$fp=openfile('../cache/userconfig.txt');
$fparr=split(",,",$fp);
?>
<div class='bodytitle'><div class='bodytitleleft'></div><div class='bodytitletxt'>会员配置</div></div>
<table width="96%" border="0" cellpadding="0" cellspacing="0" 
	align="center" style="margin-bottom:8px;display:block" id="td1" >
<tr> 
<td>
<form id="form1" name="form1" method="post" action="query.php?rel=user_config">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#E2F5BC" class="sysinfo">
<tr align="center" height="24">
<td height="30" colspan="3" align="left" bgcolor="#EDF9D5"><b>&nbsp;会员配置</b>    &nbsp;&nbsp;</td>
</tr>
<tr align="center"> 
<td width="20%" height="25" bgcolor="#FFFFFF">变量说明</td>
<td bgcolor="#FFFFFF">变量值</td>
<td width="30%" bgcolor="#FFFFFF">介绍</td>
</tr>
<tr align="center" height="24" bgcolor="#FFFFFF"> 
<td height="30" align="left" bgcolor="#FFFFFF"> 其它设置:</td>
<td align="left" bgcolor="#FFFFFF">
<?php if ($fparr[0]=='1'){?><input type="checkbox" name="yunxu" value="1" checked="checked" /><?php }else{?><input type="checkbox" name="yunxu" value="1" /><?php }?> 允许注册
</td>
<td align="left" bgcolor="#FFFFFF">其它</td>
</tr>
<tr align="center" height="24" bgcolor="#FFFFFF"> 
<td height="30" align="left" bgcolor="#FFFFFF"> 会员注册赠送积分:</td>
<td align="left" bgcolor="#FFFFFF">
<input type='text' name='regfens' value='<?php echo $fparr[1] ?>' style='width:60%'></td>
<td align="left" bgcolor="#FFFFFF">输入数字</td>
</tr>
<tr align="center" height="24" bgcolor="#FFFFFF"> 
<td height="30" align="left" bgcolor="#FFFFFF"> 推荐会员赠送积分:</td>
<td align="left" bgcolor="#FFFFFF">
<input type='text' name='vipfens' value='<?php echo $fparr[2] ?>' style='width:60%'></td>
<td align="left" bgcolor="#FFFFFF">输入数字</td>
</tr>
<tr align="center" height="24" bgcolor="#FFFFFF"> 
<td height="30" align="left" bgcolor="#FFFFFF"> 发布信息浏览一次赠送积分:</td>
<td align="left" bgcolor="#FFFFFF">
<input type='text' name='newsfens' value='<?php echo $fparr[3] ?>' style='width:60%'></td>
<td align="left" bgcolor="#FFFFFF">输入数字</td>
</tr>


</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#E2F5BC" class="sysinfo">
<tr align="center" height="24">
  <td height="30" colspan="3" align="left" bgcolor="#EDF9D5"><b>&nbsp;请按照说明设置.</b></td>
  </tr>
<tr align="center" height="24">
  <td height="30" colspan="3" align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="确定" />
    <input type="reset" name="Submit2" value="重置" /></td>
  </tr>
</table>
</form>
</td>
</tr>
</table>
<?php }?>
<?php if($rel=='user_vip'){?>

<?php }?>


<?php if($rel=='user_admin'){
$sql=query("select * from ".$dbz."user order by id desc");
if($row=fetch($sql)){
?>
<div class='bodytitle'><div class='bodytitleleft'></div><div class='bodytitletxt'>管理员管理</div></div>
<table width="96%" border="0" cellpadding="0" cellspacing="0" 
	align="center" style="margin-bottom:8px;display:block" id="td1" >
<tr> 
<td>
<form id="form1" name="form1" method="post" action="query.php?rel=user_admin">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#E2F5BC" class="sysinfo">
<tr align="center" height="24">
<td height="30" colspan="3" align="left" bgcolor="#EDF9D5"><b>&nbsp;管理员管理</b>    &nbsp;&nbsp;</td>
</tr>
<tr align="center"> 
<td width="20%" height="25" bgcolor="#FFFFFF">变量说明</td>
<td bgcolor="#FFFFFF">变量值</td>
<td width="30%" bgcolor="#FFFFFF">介绍</td>
</tr> 
<tr align="center" height="24" bgcolor="#FFFFFF"> 
<td height="30" align="left" bgcolor="#FFFFFF"> 用户名:</td>
<td align="left" bgcolor="#FFFFFF">
<input type='text' name='username' value='<?php echo $row["usernames"] ?>' style='width:60%' maxlength="20"></td>
<td align="left" bgcolor="#FFFFFF">20字符内</td>
</tr>
<tr align="center" height="24" bgcolor="#FFFFFF"> 
<td height="30" align="left" bgcolor="#FFFFFF"> 密码:</td>
<td align="left" bgcolor="#FFFFFF">
<input type='text' name='password' value='' style='width:60%' maxlength="20"></td>
<td align="left" bgcolor="#FFFFFF">20字符内</td>
</tr>
<tr align="center" height="24" bgcolor="#FFFFFF"> 
<td height="30" align="left" bgcolor="#FFFFFF"> 确认密码:</td>
<td align="left" bgcolor="#FFFFFF">
<input type='text' name='password2' value='' style='width:60%' maxlength="20"></td>
<td align="left" bgcolor="#FFFFFF">20字符内</td>
</tr>

</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#E2F5BC" class="sysinfo">
<tr align="center" height="24">
  <td height="30" colspan="3" align="left" bgcolor="#EDF9D5"><b>&nbsp;请按照说明设置.</b></td>
  </tr>
<tr align="center" height="24">
  <td height="30" colspan="3" align="center" bgcolor="#FFFFFF">
  <input type="hidden" name="id" value="<?php echo $row["id"] ?>" />
  <input type="submit" name="Submit" value="确定" />
    <input type="reset" name="Submit2" value="重置" /></td>
  </tr>
</table>
</form>

</td>
</tr>
</table>
<?php }}?>


<?php mysql_close();?>
</body>
</html>