<?php
include_once("inc/config.php");
include_once("inc/ftbbsdbclass.php");
include_once("inc/publicfun.php");
include_once("conn.php");
include_once("checkuser.php");
include_once("bbsuser.php");

$userid=intval($_GET["userid"]);
$mb=ftbbs_request($_POST["mb"]);
if ($mb!=""){
  $modcssfile=$mb;
  $sql="update {$tablepre}clubuser set cssfile='".$modcssfile."' where clubuser_id=".$userid;
  mysql_query($sql);
}
include_once("memberinfo.php");
?>
<html><head><meta http-equiv=content-type content="text/html; charset=utf-8>">
</head>
<script language="javascript" src="js/publicfun.js"></script>
<body>
<center>
<title><?=$username?>的个人博客风格设置</title>
<link rel="stylesheet" type="text/css" href="<?=$cssfile?>">
<?
include_once("usernav.php");
include_once("bokerhead.php");
$arr=explode("/",$cssfile);
$cssname=$arr[1];
?>
<div class="stage">
<div class="stagepad">
<div style="width:100%">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
	<tr><td class="modtl" width="7">&nbsp;</td>
	<td class="modtc" nowrap>
		<table border="0" cellspacing="0" cellpadding="0"><tr><td>
		<div class="modhead"><span class="modtit">风格选择</span> </div>
		</td></tr></table>
	</td>
	<td class="modtc" nowrap align="right"></td>
	<td class="modtr" width="7">&nbsp;</td>
	</tr></table>
<div class="modbox">
<div style="width:100%">
	        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="modact">
              <form action="" method="post" name="form1">
                <tr> 
                  <td align="center" valign="bottom" width="33%"><img src="mbpicture/1_1.gif" width="180" height="142"><br>
                    <input type="radio" name="mb" value="1.css" <? if ($cssname=="1.css"){?>checked<? }?>> 
                  </td>
                  <td align="center" valign="middle" width="34%"><img src="mbpicture/2_2.gif" width="180" height="142"><br>
                    <input name="mb" type="radio" value="2.css" <? if ($cssname=="2.css"){?>checked<? }?>> 
                  </td>
                  <td align="center" valign="middle" width="33%"><img src="mbpicture/3_3.gif" width="180" height="118"><br>
                    <input type="radio" name="mb" value="3.css" <? if ($cssname=="3.css"){?>checked<? }?>> 
                  </td>
                </tr>
                <tr> 
                  <td align="center" valign="bottom" width="33%"><img src="mbpicture/4_4.gif" width="180" height="142"><br>
                    <input type="radio" name="mb" value="4.css" <? if ($cssname=="4.css"){?>checked<? }?>> 
                  </td>
                  <td align="center" valign="middle" width="34%"><img src="mbpicture/5_5.gif" width="180" height="142"><br>
                    <input name="mb" type="radio" value="5.css" <? if ($cssname=="5.css"){?>checked<? }?>> 
                  </td>
                  <td align="center" valign="middle" width="33%"><img src="mbpicture/6_6.gif" width="180" height="118"><br>
                    <input type="radio" name="mb" value="6.css" <? if ($cssname=="6.css"){?>checked<? }?>> 
                  </td>
                </tr>
                <tr> 
                  <td align="center" valign="bottom" width="33%"><img src="mbpicture/7_7.gif" width="180" height="142"><br>
                    <input type="radio" name="mb" value="7.css" <? if ($cssname=="7.css"){?>checked<? }?>> 
                  </td>
                  <td align="center" valign="middle" width="34%"><img src="mbpicture/8_8.gif" width="180" height="142"><br>
                    <input name="mb" type="radio" value="8.css" <? if ($cssname=="8.css"){?>checked<? }?>> 
                  </td>
                  <td align="center" valign="middle" width="33%"><img src="mbpicture/9_9.gif" width="180"><br>
                    <input name="mb" type="radio" value="9.css" <? if ($cssname=="9.css"){?>checked<? }?>></td>
                </tr>
                <tr> 
                  <td align="center" valign="bottom" width="33%"><img src="mbpicture/10_10.gif" width="180"><br>
                    <input type="radio" name="mb" value="10.css" <? if ($cssname=="10.css"){?>checked<? }?>> 
                  </td>
                  <td align="center" valign="middle" width="34%"><img src="mbpicture/11_11.gif" width="180"><br>
                    <input type="radio" name="mb" value="11.css" <? if ($cssname=="11.css"){?>checked<? }?>></td>
                  <td align="center" valign="middle" width="33%"><img src="mbpicture/12_12.gif" width="180"><br>
                    <input type="radio" name="mb" value="12.css" <? if ($cssname=="12.css"){?>checked<? }?>></td>
                </tr>
                <tr> 
                  <td align="center" valign="bottom" width="33%"><img src="mbpicture/13_13.gif" width="180"><br>
                    <input type="radio" name="mb" value="13.css" <? if ($cssname=="13.css"){?>checked<? }?>> 
                  </td>
                <td align="center" valign="middle" width="34%"><img src="mbpicture/14_14.gif" width="180"><br>
                    <input type="radio" name="mb" value="14.css" <? if ($cssname=="14.css"){?>checked<? }?>>
                </td>
                <td align="center" valign="middle" width="33%"><br>
                  <img src="mbpicture/15_15.gif" width="180"><br> <input type="radio" name="mb" value="15.css" <? if ($cssname=="15.css"){?>checked<? }?>> 
                </td>
                </tr>
                <tr align=center> 
                  <td colspan="17"><input type="submit" name="Submit" value="修改模板"> 
                  </td>
                </tr>
              </form>
            </table>
            <br>
</div>
</div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8">
	<tr><td class="modbl" width="7">&nbsp;</td>
	<td class="modbc">&nbsp;</td>
	<td class="modbr" width="7">&nbsp;</td>
	</tr></table>
</div>
</div>
</div>
</div>
<br>
<center>
<?
include_once("tail.php");
?>
</center>
</body></html>