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

144 lines
6.9KB

  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. </head>
  11. <body>
  12. <div class="container-fluid">
  13. <ol class="breadcrumb">
  14. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  15. <li class="breadcrumb-item active">图片水印设置</li>
  16. </ol>
  17. <div class="card shadow-sm mb-3">
  18. <div class="card-header">图片水印设置</div>
  19. <div class="card-body">
  20. <form action="sys_info_mark.php" method="post" enctype="multipart/form-data">
  21. <input type="hidden" name="action" value="save">
  22. <input type="hidden" name="get_photo_markimg" value="<?php echo $photo_markimg?>">
  23. <div class="table-responsive">
  24. <table class="table table-borderless">
  25. <tbody>
  26. <tr>
  27. <td width="260">图片上传是否使用图片水印功能</td>
  28. <td>
  29. <label><input type="radio" value="1" name="get_photo_markup" <?php if ($photo_markup=='1') echo 'checked';?>> 开启</label>
  30. <label><input type="radio" value="0" name="get_photo_markup" <?php if ($photo_markup=='0') echo 'checked';?>> 关闭</label>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td>图片采集是否使用图片水印功能</td>
  35. <td>
  36. <label><input type="radio" value="1" name="get_photo_markdown" <?php if ($photo_markdown=='1') echo 'checked';?>> 开启</label>
  37. <label><input type="radio" value="0" name="get_photo_markdown" <?php if ($photo_markdown=='0') echo 'checked';?>> 关闭</label>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td>水印的文件类型</td>
  42. <td>
  43. <label><input type="radio" name="get_photo_marktype" value="0" <?php if ($photo_marktype == 0) echo 'checked'?>> gif</label>
  44. <label><input type="radio" name="get_photo_marktype" value="1" <?php if ($photo_marktype == 1) echo 'checked'?>> png</label>
  45. <label><input type="radio" name="get_photo_marktype" value="2" <?php if ($photo_marktype == 2) echo 'checked'?>> 文字</label>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td>水印图片大小控制</td>
  50. <td>
  51. <label>宽:<input name="get_photo_wwidth" type=text id="get_photo_wwidth" value="<?php echo $photo_wwidth?>" class="admin-input-sm"></label>
  52. <label>高:<input name="get_photo_wheight" type=text id="get_photo_wheight" value="<?php echo $photo_wheight?>" class="admin-input-sm"></label>
  53. <span>(0表示不限)</span>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td>水印图片文件名</td>
  58. <td>
  59. <img src="/data/mark/<?php echo $photo_markimg;?>">
  60. <span>(如果不存在,请使用文字水印)</span>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td>上传新图片</td>
  65. <td><input name="newimg" type="file" id="newimg" class="admin-input-lg">(支持gif和png图片格式)</td>
  66. </tr>
  67. <tr>
  68. <td>水印图片文字</td>
  69. <td><input type="text" name="get_photo_watertext" value="<?php echo $photo_watertext?>" class="admin-input-sm">(请检查/data/mark/simhei.ttf字体库是否存在,如果不存在,下载字体存放该文件夹)</td>
  70. </tr>
  71. <tr>
  72. <td>水印图片文字字体大小</td>
  73. <td><input name="get_photo_fontsize" type=text id="get_photo_fontsize" value="<?php echo $photo_fontsize?>" class="admin-input-sm"></td>
  74. </tr>
  75. <tr>
  76. <td>水印图片文字颜色</td>
  77. <td><input name="get_photo_fontcolor" type=text id="get_photo_fontcolor" value="<?php echo $photo_fontcolor?>" class="admin-input-sm"></td>
  78. </tr>
  79. <tr>
  80. <td>JPEG图附件添加水印后质量</td>
  81. <td><input type="text" name="get_photo_marktrans" id="get_photo_marktrans" value="<?php echo $photo_marktrans?>" class="admin-input-sm">(0-100,数值越大越质量,但尺寸也越大)</td>
  82. </tr>
  83. <tr>
  84. <td>GIF水印图片与原始图片透明度</td>
  85. <td><input name="get_photo_diaphaneity" type=text id="get_photo_diaphaneity" value="<?php echo $photo_diaphaneity?>" class="admin-input-sm">(0-100,数值越小越透明)</td>
  86. </tr>
  87. <tr>
  88. <td>水印位置</td>
  89. <td>
  90. <table class="table w-35">
  91. <tr>
  92. <td width="33%">
  93. <label><input type="radio" name="get_photo_waterpos" value="1" <?php if ($photo_waterpos==1) echo 'checked';?>> 顶部居左</label>
  94. </td>
  95. <td width="33%">
  96. <label><input type="radio" name="get_photo_waterpos" value="2" <?php if ($photo_waterpos==2) echo 'checked';?>> 顶部居中</label>
  97. </td>
  98. <td>
  99. <label><input type="radio" name="get_photo_waterpos" value="3" <?php if ($photo_waterpos==3) echo 'checked';?>> 顶部居右</label>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>
  104. <label><input type="radio" name="get_photo_waterpos" value="4" <?php if ($photo_waterpos==4) echo 'checked';?>> 左边居中</label>
  105. </td>
  106. <td>
  107. <label><input type="radio" name="get_photo_waterpos" value="5" <?php if ($photo_waterpos==5) echo 'checked';?>> 图片中心</label>
  108. </td>
  109. <td>
  110. <label><input type="radio" name="get_photo_waterpos" value="6" <?php if ($photo_waterpos==6) echo 'checked';?>> 右边居中</label>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td>
  115. <label><input type="radio" name="get_photo_waterpos" value="7" <?php if ($photo_waterpos==7) echo 'checked';?>> 底部居左</label>
  116. </td>
  117. <td>
  118. <label><input type="radio" name="get_photo_waterpos" value="8" <?php if ($photo_waterpos==8) echo 'checked';?>> 底部居中</label>
  119. </td>
  120. <td>
  121. <label><input type="radio" name="get_photo_waterpos" value="9" <?php if ($photo_waterpos==9) echo 'checked';?>> 底部居右</label>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td colspan="3"><label><input type="radio" name="get_photo_waterpos" value="0" <?php if ($photo_waterpos==0) echo 'checked';?>> 随机位置</label></td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. <tr>
  131. <td colspan="2" align="center">
  132. <button type="submit" class="btn btn-success btn-sm">保存</button>
  133. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  134. </td>
  135. </tr>
  136. </tbody>
  137. </table>
  138. </div>
  139. </form>
  140. </div>
  141. </div>
  142. </div>
  143. </body>
  144. </html>