国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

142 行
6.7KB

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