<? require "../../db/Connect.php"?>
<? include "../../include/authorizemanager.php"?>
<?
/**
 * @version		1.0
 * @package		HonoWeb->HonoBBS
 * @copyright	Copyright (C) HonoWeb. All rights reserved.
 * @Website		www.honoweb.com.
 */
 ?>
<?

	$status=$_POST['status'];
	$id="1";
	if($status=="edit")
	{
		$indate=date('Y-n-j H:i:s');
		$id=$_POST['id'];//
		
		$user_thumbnail_width=$_POST['user_thumbnail_width'];
		$user_thumbnail_height=$_POST['user_thumbnail_height'];
		
		
		$sql="update  ".$TableConfig." set ";
		
		$sql.="	user_thumbnail_width='".$user_thumbnail_width."',";
		$sql.="	user_thumbnail_height='".$user_thumbnail_height."'";
		
		$sql.="	  where id=".$id;
		$query=$db->query($sql);
		if(!empty($query))
		{
			$message="1";
		}
	}
	$sql="select * from  ".$TableConfig."  where id=".$id;
	$row=$db->getRow($sql);
?>
<html>
<head>
<title><?=$TitleName?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../../js/check.js"></script>
</head>
<script language="javascript">
	function back()
	{
		location="config.php";
	}

	function Check()
	{
		var form=form1;
		
		 form.status.value="edit";
		 form.submit();
  	}
</script>
<body>
<form action=""  method="post"  name="form1"  enctype="multipart/form-data">
  <table class="firsttable">
      <tr>
    	<td align="center" valign="top">
        	    <table class="centertable">
          	<tr>
            		<td></td>
          	</tr>
          	<tr>
            		<td align="center" class="addborder">
					<table  class="addTable"  border='0'  cellpadding='0'  cellspacing='1'>
								<tr  class='tr1'  >
								  <td colspan="2" align="center"   class="fontb"><font  class="message">
									<?
																	if($message=="1")
																	{
																		echo "提交成功";
																	}
															   ?>
								  </font></td>
							  </tr>
                                <tr  class='tr1'  >
									<td   class="fontb">用户:</td>
									<td >									</td>
								</tr>
								<tr  class='tr2'   >
									<td >用户小图片宽度 :</td>
							      <td ><input name="user_thumbnail_width" type="text" id="user_thumbnail_width"   value="<?=$row['user_thumbnail_width']?>" ></td>
								</tr>
								<tr  class='tr2'   >
									<td >用户小图片高度 :</td>
								    <td ><input name="user_thumbnail_height" type="text" id="user_thumbnail_height"   value="<?=$row['user_thumbnail_height']?>" ></td>
								</tr>
              				<tr  class='tr2' >
       				          <td colspan="2" align="center"><input type="button"  class='button' name="Button" value="提交" onClick="Check()"></td>
              				</tr>
           			  </table>
			  </td>
          		</tr>
          		<tr>
            		  <td></td>
          		</tr>
       	           </table>
    	   </td>
     </tr>
</table>
<input type="hidden" name="status" value="">
<input type="hidden" name="id" value=<?=$id?>>
</form>
</body>
</html>
<? $db->close_db();?>
 

