国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

90 satır
4.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>修改附件</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. <script src="/static/web/js/jquery.min.js"></script>
  11. <script src="/static/web/js/bootstrap.min.js"></script>
  12. <script src="/static/web/js/admin.main.js"></script>
  13. </head>
  14. <body>
  15. <ol class="breadcrumb">
  16. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  17. <li class="breadcrumb-item"><a href="media_main.php">附件管理</a></li>
  18. <li class="breadcrumb-item active">修改附件</li>
  19. </ol>
  20. <div class="card shadow-sm">
  21. <div class="card-header">修改附件</div>
  22. <div class="card-body">
  23. <form name="form1" action="media_edit.php" method="post" enctype="multipart/form-data">
  24. <input type="hidden" name="dopost" value="save">
  25. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  26. <input type="hidden" name="aid" value="<?php echo $aid?>">
  27. <div class="table-responsive">
  28. <table class="table table-borderless">
  29. <tbody>
  30. <tr>
  31. <td width="260">附件类型</td>
  32. <td>
  33. <label><input type="radio" name="mediatype" value="1" <?php if ($myrow['mediatype']==1) echo 'checked';?>> 图片</label>
  34. <label><input type="radio" name="mediatype" value="2" <?php if ($myrow['mediatype']==2) echo 'checked';?>> FLASH</label>
  35. <label><input type="radio" name="mediatype" value="3" <?php if ($myrow['mediatype']==3) echo 'checked';?>> 视频音频</label>
  36. <label><input type="radio" name="mediatype" value="4" <?php if ($myrow['mediatype']==4) echo 'checked';?>> 附件其它</label>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td>附件标题</td>
  41. <td><input type="text" name="title" id="title" value="<?php echo $myrow['title']?>" class="admin-input-lg" required></td>
  42. </tr>
  43. <tr>
  44. <td>附加参数</td>
  45. <td>
  46. <label>宽:<input type="text" name="mediawidth" id="mediawidth" value="<?php echo $myrow['width']?>" class="admin-input-sm" placeholder="附件像素宽度"></label>
  47. <label>高:<input type="text" name="mediaheight" id="mediaheight" value="<?php echo $myrow['height']?>" class="admin-input-sm" placeholder="附件像高宽度"></label>
  48. <label>播放时间:<input type="text" name="playtime" id="playtime" value="<?php echo $myrow['playtime']?>" class="admin-input-sm" placeholder="附件播放分钟"></label>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td>源文件</td>
  53. <td>
  54. <input type="text" name="filename" id="filename" value="<?php echo $myrow['url']?>" class="admin-input-lg">
  55. <a href="<?php echo $myrow['url']?>" target="_blank" class="btn btn-success btn-sm">查看</a>
  56. </td>
  57. </tr>
  58. <?php
  59. if ($myrow['mediatype'] == 1) {
  60. $fullfilename = $cfg_basedir.$myrow['url'];
  61. if (file_exists($fullfilename)) {
  62. $info = '';
  63. $sizes = getimagesize($fullfilename,$info);
  64. if (is_array($sizes)) {
  65. if ($sizes[0]>200) $w=200;
  66. else $w = $sizes[0];
  67. ?>
  68. <tr>
  69. <td>预览</td>
  70. <td><a href="<?php echo $myrow['url']?>" target="_blank"><img src="<?php echo $myrow['url'].'?q='.time()?>" width="<?php echo $w?>" id="picview"></a></td>
  71. </tr>
  72. <?php }}}?>
  73. <tr>
  74. <td>修改附件</td>
  75. <td><input type="file" name="upfile" id="upfile" class="admin-input-lg"></td>
  76. </tr>
  77. <tr>
  78. <td colspan="2" align="center">
  79. <button type="submit" class="btn btn-success btn-sm">保存</button>
  80. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  81. </td>
  82. </tr>
  83. </tbody>
  84. </table>
  85. </div>
  86. </form>
  87. </div>
  88. </div>
  89. </body>
  90. </html>