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

172 lines
8.1KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>系统配置参数 - 图片水印设置</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href='css/base.css' rel='stylesheet' type='text/css'>
  10. </head>
  11. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  12. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3">
  13. <form action="sys_info_mark.php" method="post" enctype="multipart/form-data">
  14. <input type="hidden" name="action" value="save">
  15. <input type="hidden" name="get_photo_markimg" value="<?php echo $photo_markimg?>">
  16. <tr>
  17. <td height="26" colspan="2" bgcolor="#FFFFFF" background="images/tbg.gif" style="padding-left:10px;">
  18. <b>DedeCMS系统配置参数</b> - <strong>图片水印设置</strong> </td>
  19. </tr>
  20. <tr bgcolor="#FFFFFF">
  21. <td width="41%" height="24">上传的图片是否使用图片水印功能:<br> </td>
  22. <td width="59%">
  23. <label><input class="np" type="radio" value="1" name="get_photo_markup"
  24. <?php if($photo_markup=='1') echo ' checked';?>></label>
  25. 开启
  26. <label><input class="np" type="radio" value="0" name="get_photo_markup"
  27. <?php if($photo_markup=='0') echo ' checked';?>>
  28. 关闭</label>
  29. </td>
  30. </tr>
  31. <tr bgcolor="#FFFFFF">
  32. <td height="24">采集的图片是否使用图片水印功能:</td>
  33. <td>
  34. <label><input class="np" type="radio" value="1" name="get_photo_markdown"
  35. <?php if($photo_markdown=='1') echo ' checked';?>>
  36. 开启</label>
  37. <label><input class="np" type="radio" value="0" name="get_photo_markdown"
  38. <?php if($photo_markdown=='0') echo ' checked';?>>
  39. 关闭</label>
  40. </td>
  41. </tr>
  42. <tr bgcolor="#FFFFFF">
  43. <td height="24">选择水印的文件类型:</td>
  44. <td>
  45. <label><input name="get_photo_marktype" type="radio" value="0" <?php if($photo_marktype == 0) echo 'checked'?>>
  46. gif</label>
  47. &nbsp;
  48. <label><input type="radio" name="get_photo_marktype" value="1"
  49. <?php if($photo_marktype == 1) echo 'checked'?>> png </label>
  50. &nbsp;<label><input type="radio" name="get_photo_marktype" value="2"
  51. <?php if($photo_marktype == 2) echo 'checked'?>> 文字 </label>
  52. </td>
  53. </tr>
  54. <tr bgcolor="#FFFFFF">
  55. <td height="24">添加水印的图片大小控制(设置为0为不限):</td>
  56. <td> 宽:
  57. <input name="get_photo_wwidth" type=text id="get_photo_wwidth" value="<?php echo $photo_wwidth?>" size="5">
  58. 高:
  59. <input name="get_photo_wheight" type=text id="get_photo_wheight" value="<?php echo $photo_wheight?>" size="5">
  60. </td>
  61. </tr>
  62. <tr bgcolor="#FFFFFF">
  63. <td height="24">水印图片文件名(如果不存在,则使用文字水印):</td>
  64. <td><img src="../data/mark/<?php echo $photo_markimg; ?>" alt="dede"></td>
  65. </tr>
  66. <tr bgcolor="#FFFFFF">
  67. <td height="24">上传新图片:</td>
  68. <td>
  69. <input name="newimg" type="file" id="newimg" style="width:300">
  70. <br>
  71. <?php echo "支持的图片格式:gif png";?> </td>
  72. </tr>
  73. <tr bgcolor="#FFFFFF">
  74. <td height="24">水印图片文字:(请查看data\mark\simhei.ttf字体库是否存在)</td>
  75. <td> <input type="text" name="get_photo_watertext" value="<?php echo $photo_watertext?>"></td>
  76. </tr>
  77. <tr bgcolor="#FFFFFF">
  78. <td height="24">水印图片文字字体大小:</td>
  79. <td> <input name="get_photo_fontsize" type=text id="get_photo_fontsize" value="<?php echo $photo_fontsize?>">
  80. </td>
  81. </tr>
  82. <tr bgcolor="#FFFFFF">
  83. <td height="24">水印图片文字颜色(默认#FF0000为红色):</td>
  84. <td> <input name="get_photo_fontcolor" type=text id="get_photo_fontcolor" value="<?php echo $photo_fontcolor?>">
  85. </td>
  86. </tr>
  87. <tr bgcolor="#FFFFFF">
  88. <td height="24">设置 JPEG 类型的图片附件添加水印后质量参数,范围为 0~100 的整数,数值越大结果图片效果越好,但尺寸也越大。</td>
  89. <td>
  90. <input type="text" name="get_photo_marktrans" id="get_photo_marktrans" value="<?php echo $photo_marktrans?>">
  91. </td>
  92. </tr>
  93. <tr bgcolor="#FFFFFF">
  94. <td height="24">设置 GIF 类型水印图片与原始图片的融合度,水印透明度(0—100,值越小越透明):</td>
  95. <td><input name="get_photo_diaphaneity" type=text id="get_photo_diaphaneity"
  96. value="<?php echo $photo_diaphaneity?>"></td>
  97. </tr>
  98. <tr bgcolor="#FFFFFF">
  99. <td height="24">水印位置:</td>
  100. <td>
  101. <label><input class="np" type="radio" name="get_photo_waterpos" value="0"
  102. <?php if($photo_waterpos==0) echo ' checked';?>>
  103. 随机位置</label>
  104. <table width="300" border="1" cellspacing="0" cellpadding="0">
  105. <tr>
  106. <td width="33%">
  107. <label><input class="np" type="radio" name="get_photo_waterpos" value="1"
  108. <?php if($photo_waterpos==1) echo ' checked';?>>
  109. 顶部居左</label></td>
  110. <td width="33%">
  111. <label><input class="np" type="radio" name="get_photo_waterpos" value="2"
  112. <?php if($photo_waterpos==2) echo ' checked';?>>
  113. 顶部居中</label></td>
  114. <td>
  115. <label><input class="np" type="radio" name="get_photo_waterpos" value="3"
  116. <?php if($photo_waterpos==3) echo ' checked';?>>
  117. 顶部居右</label></td>
  118. </tr>
  119. <tr>
  120. <td>
  121. <label><input class="np" type="radio" name="get_photo_waterpos" value="4"
  122. <?php if($photo_waterpos==4) echo ' checked';?>>
  123. 左边居中</label></td>
  124. <td>
  125. <label><input class="np" type="radio" name="get_photo_waterpos" value="5"
  126. <?php if($photo_waterpos==5) echo ' checked';?>>
  127. 图片中心</label></td>
  128. <td>
  129. <label><input class="np" type="radio" name="get_photo_waterpos" value="6"
  130. <?php if($photo_waterpos==6) echo ' checked';?>>
  131. 右边居中</label></td>
  132. </tr>
  133. <tr>
  134. <td>
  135. <label><input class="np" type="radio" name="get_photo_waterpos" value="7"
  136. <?php if($photo_waterpos==7) echo ' checked';?>>
  137. 底部居左</label></td>
  138. <td>
  139. <label><input class="np" type="radio" name="get_photo_waterpos" value="8"
  140. <?php if($photo_waterpos==8) echo ' checked';?>>
  141. 底部居中</label></td>
  142. <td>
  143. <label><input name="get_photo_waterpos" type="radio" class="np" value="9"
  144. <?php if($photo_waterpos==9) echo ' checked';?>>
  145. 底部居右</label></td>
  146. </tr>
  147. </table>
  148. </td>
  149. </tr>
  150. <tr bgcolor="#F9FCEF">
  151. <td height="37" colspan="2">
  152. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  153. <tr>
  154. <td width="7%">&nbsp;</td>
  155. <td width="93%" align="center">
  156. <button type="submit" class="btn btn-secondary">确定</button>
  157.  &nbsp;
  158. <button type="reset" class="btn btn-secondary">重置</button> </td>
  159. </tr>
  160. </table>
  161. </td>
  162. </tr>
  163. </form>
  164. </table>
  165. </body>
  166. </html>