国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

142 řádky
6.2KB

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