国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
3.1KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
  5. <title>更改头像 - 会员中心 - <?php echo $cfg_webname; ?></title>
  6. <link href="templets/style/base.css" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="../static/js/jquery.js"></script>
  8. <script type="text/javascript" language='javascript'src='templets/js/main.js'></script>
  9. <script type="text/javascript" src="templets/js/load.js"></script>
  10. <script type="text/javascript" src="templets/js/leftmenu.js"></script>
  11. </head>
  12. <body>
  13. <div id="main">
  14. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  15. <div id="content" class="w960 clearfix">
  16. <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  17. <div id="mcpmain">
  18. <div id="appTab">
  19. <ul>
  20. <li><a href="edit_baseinfo.php">基本资料</a></li>
  21. <li><a href="edit_fullinfo.php">详细资料</a></li>
  22. <li class="thisTab"><a href="edit_face.php">头像设置</a></li>
  23. </ul>
  24. </div>
  25. <form action="edit_face.php" method="post" enctype="multipart/form-data" name="form1">
  26. <input type="hidden" name="dopost" value="save" />
  27. <div id="mainCp">
  28. <h3 class="meTitle"><strong>用户头像</strong></h3>
  29. <?php
  30. if(defined('UC_API') && @include_once DEDEROOT.'/uc_client/client.php')
  31. {
  32. $data = uc_get_user($cfg_ml->M_LoginID);
  33. echo uc_avatar($data[0]);
  34. }
  35. else
  36. {
  37. ?>
  38. <div class="postForm">
  39. <p class="cellBg">
  40. <label style="width:90px">手工填写网址:</label>
  41. <input name='oldface' type='hidden' id='oldface' value='<?php echo $face; ?>' />
  42. <input name='faceurl' type='text' id='faceurl' size='35' class='intxt' style='width:250px' value='<?php echo $face; ?>' />
  43. <p>
  44. <label style="width:100px">选择上传的文件:</label>
  45. <input name="face" type="file" id="face" size="45" /> 大小180x180像
  46. </p>
  47. <p class="cellBg">
  48. <label style="width:90px"><b>原来的头像:</b><br />
  49. <a href="edit_face.php?dopost=delold&oldface=<?php echo urlencode($face); ?>">[删除旧头像]</a></label>
  50. <div id='faceview' class='overflow mTB10 litPic' style="width:180px;height:180px;text-align:center;vertical-align:middle;line-height:180px;display:table-cell;">
  51. <?php
  52. if($face!='') echo " <img class='' src='$face' style='_margin-top:expression(( 180 - this.height ) / 2);' />\r\n";
  53. ?>
  54. </div>
  55. </p>
  56. <p>
  57. <button class="button2" type="submit">更新</button>
  58. <button class="button2 ml10" type="reset">重设</button>
  59. </p>
  60. </div>
  61. <?php } ?>
  62. </div>
  63. </form>
  64. <!--主操作区域 -->
  65. </div>
  66. </div>
  67. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  68. </div>
  69. </body>
  70. </html>