|
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
- <title>图片水印设置</title>
- <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
- <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="/static/web/css/admin.css">
- </head>
- <body>
- <div class="container-fluid">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
- <li class="breadcrumb-item active">图片水印设置</li>
- </ol>
- <div class="card shadow-sm mb-3">
- <div class="card-header">图片水印设置</div>
- <div class="card-body">
- <form action="sys_info_mark.php" method="post" enctype="multipart/form-data">
- <input type="hidden" name="action" value="save">
- <input type="hidden" name="get_photo_markimg" value="<?php echo $photo_markimg?>">
- <div class="table-responsive">
- <table class="table table-borderless">
- <tbody>
- <tr>
- <td width="260">图片上传是否使用图片水印功能</td>
- <td>
- <label><input type="radio" value="1" name="get_photo_markup" <?php if ($photo_markup=='1') echo 'checked';?>> 开启</label>
- <label><input type="radio" value="0" name="get_photo_markup" <?php if ($photo_markup=='0') echo 'checked';?>> 关闭</label>
- </td>
- </tr>
- <tr>
- <td>图片采集是否使用图片水印功能</td>
- <td>
- <label><input type="radio" value="1" name="get_photo_markdown" <?php if ($photo_markdown=='1') echo 'checked';?>> 开启</label>
- <label><input type="radio" value="0" name="get_photo_markdown" <?php if ($photo_markdown=='0') echo 'checked';?>> 关闭</label>
- </td>
- </tr>
- <tr>
- <td>水印的文件类型</td>
- <td>
- <label><input type="radio" name="get_photo_marktype" value="0" <?php if ($photo_marktype == 0) echo 'checked'?>> gif</label>
- <label><input type="radio" name="get_photo_marktype" value="1" <?php if ($photo_marktype == 1) echo 'checked'?>> png</label>
- <label><input type="radio" name="get_photo_marktype" value="2" <?php if ($photo_marktype == 2) echo 'checked'?>> 文字</label>
- </td>
- </tr>
- <tr>
- <td>水印图片大小控制</td>
- <td>
- <label>宽:<input name="get_photo_wwidth" type=text id="get_photo_wwidth" value="<?php echo $photo_wwidth?>" class="admin-input-sm"></label>
- <label>高:<input name="get_photo_wheight" type=text id="get_photo_wheight" value="<?php echo $photo_wheight?>" class="admin-input-sm"></label>
- <span>(0表示不限)</span>
- </td>
- </tr>
- <tr>
- <td>水印图片文件名</td>
- <td>
- <img src="/data/mark/<?php echo $photo_markimg;?>">
- <span>(如果不存在,请使用文字水印)</span>
- </td>
- </tr>
- <tr>
- <td>上传新图片</td>
- <td><input name="newimg" type="file" id="newimg" class="admin-input-lg">(支持gif和png图片格式)</td>
- </tr>
- <tr>
- <td>水印图片文字</td>
- <td><input type="text" name="get_photo_watertext" value="<?php echo $photo_watertext?>" class="admin-input-sm">(请检查/data/mark/simhei.ttf字体库是否存在,如果不存在,下载字体存放该文件夹)</td>
- </tr>
- <tr>
- <td>水印图片文字字体大小</td>
- <td><input name="get_photo_fontsize" type=text id="get_photo_fontsize" value="<?php echo $photo_fontsize?>" class="admin-input-sm"></td>
- </tr>
- <tr>
- <td>水印图片文字颜色</td>
- <td><input name="get_photo_fontcolor" type=text id="get_photo_fontcolor" value="<?php echo $photo_fontcolor?>" class="admin-input-sm"></td>
- </tr>
- <tr>
- <td>JPEG图附件添加水印后质量</td>
- <td><input type="text" name="get_photo_marktrans" id="get_photo_marktrans" value="<?php echo $photo_marktrans?>" class="admin-input-sm">(0-100,数值越大越质量,但尺寸也越大)</td>
- </tr>
- <tr>
- <td>GIF水印图片与原始图片透明度</td>
- <td><input name="get_photo_diaphaneity" type=text id="get_photo_diaphaneity" value="<?php echo $photo_diaphaneity?>" class="admin-input-sm">(0-100,数值越小越透明)</td>
- </tr>
- <tr>
- <td>水印位置</td>
- <td>
- <table class="table w-35">
- <tr>
- <td width="33%">
- <label><input type="radio" name="get_photo_waterpos" value="1" <?php if ($photo_waterpos==1) echo 'checked';?>> 顶部居左</label>
- </td>
- <td width="33%">
- <label><input type="radio" name="get_photo_waterpos" value="2" <?php if ($photo_waterpos==2) echo 'checked';?>> 顶部居中</label>
- </td>
- <td>
- <label><input type="radio" name="get_photo_waterpos" value="3" <?php if ($photo_waterpos==3) echo 'checked';?>> 顶部居右</label>
- </td>
- </tr>
- <tr>
- <td>
- <label><input type="radio" name="get_photo_waterpos" value="4" <?php if ($photo_waterpos==4) echo 'checked';?>> 左边居中</label>
- </td>
- <td>
- <label><input type="radio" name="get_photo_waterpos" value="5" <?php if ($photo_waterpos==5) echo 'checked';?>> 图片中心</label>
- </td>
- <td>
- <label><input type="radio" name="get_photo_waterpos" value="6" <?php if ($photo_waterpos==6) echo 'checked';?>> 右边居中</label>
- </td>
- </tr>
- <tr>
- <td>
- <label><input type="radio" name="get_photo_waterpos" value="7" <?php if ($photo_waterpos==7) echo 'checked';?>> 底部居左</label>
- </td>
- <td>
- <label><input type="radio" name="get_photo_waterpos" value="8" <?php if ($photo_waterpos==8) echo 'checked';?>> 底部居中</label>
- </td>
- <td>
- <label><input type="radio" name="get_photo_waterpos" value="9" <?php if ($photo_waterpos==9) echo 'checked';?>> 底部居右</label>
- </td>
- </tr>
- <tr>
- <td colspan="3"><label><input type="radio" name="get_photo_waterpos" value="0" <?php if ($photo_waterpos==0) echo 'checked';?>> 随机位置</label></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <button type="submit" class="btn btn-success btn-sm">保存</button>
- <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </form>
- </div>
- </div>
- </div>
- </body>
- </html>
|