国内流行的内容管理系统(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.

78 lines
2.4KB

  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 language="javascript">
  8. <!--
  9. function checkSubmit()
  10. {
  11. if(document.form1.title.value=='') {
  12. alert("标题不能为空!");
  13. document.form1.title.focus();
  14. return false;
  15. }
  16. }
  17. -->
  18. </script>
  19. </head>
  20. <body>
  21. <form name="form1" action="uploads_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
  22. <input type="hidden" name="f" value="<?php echo $f; ?>" />
  23. <input type="hidden" name="mediatype" value="<?php echo $mediatype; ?>" />
  24. <input type="hidden" name="keyword" value="<?php echo $keyword; ?>" />
  25. <input type="hidden" name="dopost" value="save" />
  26. <table cellspacing="1" class="submit">
  27. <thead>
  28. <tr>
  29. <th colspan="2" >上传附件</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <tr>
  34. <td width="21%" align="right" valign="top">允许的类型:</td>
  35. <td width="79%"><?php
  36. if($mediatype==1){
  37. echo $cfg_imgtype;
  38. }
  39. else if($mediatype==2){
  40. echo "swf";
  41. }
  42. else if($mediatype==3){
  43. echo $cfg_mediatype;
  44. }
  45. else{
  46. echo $cfg_mb_addontype;
  47. }
  48. ?></td>
  49. </tr>
  50. <tr>
  51. <td align="right" valign="top">注释标题:</td>
  52. <td><input name="title" type="text" id="title" size="30" class="text" value="" /></td>
  53. </tr>
  54. <tr>
  55. <td align="right" valign="top">选择文件:</td>
  56. <td><input name="addonfile" type="file" id="addonfile" style="width:300px" <?php if($mediatype==1) echo " onChange=\"SeePicNew('divpicview',this);\" "; ?> /></td>
  57. </tr>
  58. <?php if($mediatype==1) { ?>
  59. <tr>
  60. <td align="right" valign="top">预览区:</td>
  61. <td><div id='divpicview' class='divpre'></div></td>
  62. </tr>
  63. <?php } ?>
  64. </tbody>
  65. <tfoot>
  66. <tr>
  67. <td height="45">&nbsp;</td>
  68. <td height="45"><button class="button2" type="submit" >提交</button></td>
  69. </tr>
  70. </tfoot>
  71. </table>
  72. </form>
  73. </body>
  74. </html>