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

174 lines
8.2KB

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