<!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=<?php echo $cfg_soft_lang; ?>" />
<title>更改头像 - 会员中心 - <?php echo $cfg_webname; ?></title>
<link href="/templets/default/diary/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" language='javascript'src='templets/js/main.js'></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
</head>
<body>
<table width="284" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="370" width="284" align="right">
      <table border="0" width="284" id="table8" cellspacing="0" cellpadding="0" height="370">
        <tr> 
          <td height="19" colspan="3">　</td>
        </tr>
        <tr> 
          <td height="19" colspan="3" align="center"><font color="#51300C"> 
            人物头像设置</font></td>
        </tr>
        <tr> 
          <td background="diary/linebg2.gif" colspan="3" height="1"><img border="0" src="diary/linebg2.gif" width="4" height="1"></td>
        </tr>
        <tr valign="top"> 
          <td width="284" colspan="3"> 
<form action="edit_face.php" method="post" enctype="multipart/form-data" name="form1">
               <input type="hidden" name="dopost" value="save" />
<?php
          if(defined('UC_API') && @include_once DEDEROOT.'/uc_client/client.php')
          {
            $data = uc_get_user($cfg_ml->M_LoginID);
            echo uc_avatar($data[0]);
          }
          else
          {
          ?>
          <p align=center>
手工填写网址<br>
            <input name='oldface' type='hidden' id='oldface' value='<?php echo $face; ?>' />
            <input name='faceurl' type='text' id='faceurl' size='35' class='intxt' style='width:250px' value='<?php echo $face; ?>' />
          <p align=center>
            <label style="width:100px">选择上传的文件：</label>
            <input name="face" type="file" id="face" size="45" /><br />注意：图片大小75x150像
          </p>
          <p align=center><br />
            <label style="width:90px"><b>原头像：</b> <a href="edit_face.php?dopost=delold&oldface=<?php echo urlencode($face); ?>">[删除旧头像]</a></label>
            <div id='faceview' class='overflow mTB10 litPic' style="width:270px;height:150px;text-align:center;vertical-align:middle;line-height:180px;display:table-cell;">
                 <?php
       					if($face!='') echo " <img class='' src='$face' style='_margin-top:expression(( 150 - this.height ) / 2);' />\r\n";
       			?>
              </div>
          </p>
          <p align=center>
        <input type="submit" name="Submit" value=" 提 交 ">
        <input type="reset" name="Submit2" value=" 重 置 ">
          </p>
<?php } ?>
            </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>
</html>
