<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>图片水印设置</title>
		<link rel="stylesheet" href="../static/web/font/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>
		<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?>">
			<table align="center" class="table maintable my-3">
				<tr>
					<td bgcolor="#f5f5f5" colspan="2">图片水印设置</td>
				</tr>
				<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">
						<span>（支持gif和png图片格式）</span>
					</td>
				</tr>
				<tr>
					<td>水印图片文字：</td>
					<td>
						<input type="text" name="get_photo_watertext" value="<?php echo $photo_watertext?>" class="admin-input-sm">
						<span>（查看/data/mark/simhei.ttf字体库是否存在）</span>
					</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">
						<span>（范围为0-100整数，数值越大结果图片效果越好，但尺寸也越大）</span>
					</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">
						<span>（0-100，值越小越透明）</span>
					</td>
				</tr>
				<tr>
					<td>水印位置：</td>
					<td class="table-borderless p-0">
						<table width="300">
							<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 bgcolor="#f5f5f5" 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>
			</table>
		</form>
	</body>
</html>