| 
                        123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 | 
                        - <!DOCTYPE html>
 - <html>
 - <head>
 -   <meta charset="<?php echo $cfg_soft_lang;?>">
 -   <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
 - 	<title>修改文件</title>
 - 	<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
 - 	<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
 - 	<link rel="stylesheet" href="../static/web/css/admin.css">
 - 	<script src="../static/web/js/jquery.min.js"></script>
 - 	<script src="../static/web/js/bootstrap.bundle.min.js"></script>
 - 	<script src="js/main.js"></script>
 - 	<style>
 - 		.coolbg2 {
 - 			border: 1px solid #000000;
 - 			background: #F2F5E9;
 - 			height: 18px
 - 		}
 - 	</style>
 - 	<script>
 - 		function CheckSubmit() {
 - 			if (document.form1.title.value == "") {
 - 				ShowMsg("请设置标题");
 - 				document.form1.title.focus();
 - 				return false;
 - 			}
 - 		}
 - 	</script>
 - </head>
 - <body>
 - 	<table width="98%" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3 mb-3">
 - 		<tr>
 - 			<td bgcolor="#f8f8f8">
 - 				<table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
 - 					<tr>
 - 						<td width="30%">修改媒体</td>
 - 						<td width="70%" align="right"><a href="media_main.php" class="btn btn-success btn-sm">附件媒体数据管理</a></td>
 - 					</tr>
 - 				</table>
 - 			</td>
 - 		</tr>
 - 		<tr>
 - 			<td>
 - 				<div class="alert alert-info mb-0">图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)</div>
 - 			</td>
 - 		</tr>
 - 		<tr>
 - 			<td align="center">
 - 				<table width="100%" cellpadding="0" cellspacing="0">
 - 					<form enctype="multipart/form-data" name="form1" action="media_edit.php" method="POST" onSubmit="return CheckSubmit();">
 - 						<input type="hidden" name="dopost" value="save">
 - 						<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
 - 						<input type="hidden" name="aid" value="<?php echo $aid?>">
 - 						<tr>
 - 							<td width="15%" align="left" class="bline">媒体类型:</td>
 - 							<td width="85%" align="left" class="bline">
 - 								<label><input type="radio" name="mediatype" value="1" <?php if($myrow['mediatype']==1) echo "checked";?>> 图片</label>
 - 								<label><input type="radio" name="mediatype" value="2" <?php if($myrow['mediatype']==2) echo "checked";?>> FLASH</label>
 - 								<label><input type="radio" name="mediatype" value="3" <?php if($myrow['mediatype']==3) echo "checked";?>> 视频音频</label>
 - 								<label><input type="radio" name="mediatype" value="4" <?php if($myrow['mediatype']==4) echo "checked";?>> 附件其它</label>
 - 							</td>
 - 						</tr>
 - 						<tr>
 - 							<td class="bline">说明标题:</td>
 - 							<td class="bline"><input type="text" name="title" id="title" value="<?php echo $myrow['title']?>" style="width:300px"></td>
 - 						</tr>
 - 						<tr>
 - 							<td class="bline">参数说明:</td>
 - 							<td class="bline" colspan="2">图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义</td>
 - 						</tr>
 - 						<tr>
 - 							<td class="bline">附加参数:</td>
 - 							<td class="bline">
 - 								宽:<input type="text" name="mediawidth" id="mediawidth" value="<?php echo $myrow['width']?>" style="width:60px">(像素)
 - 								高:<input type="text" name="mediaheight" id="mediaheight" value="<?php echo $myrow['height']?>" style="width:60px">(像素)
 - 								播放时间:<input type="text" name="playtime" id="playtime" value="<?php echo $myrow['playtime']?>" style="width:60px">(分钟)
 - 							</td>
 - 						</tr>
 - 						<tr>
 - 							<td class="bline">原文件:</td>
 - 							<td class="bline">
 - 								<input type="text" name="filename" id="filename" value="<?php echo $myrow['url']?>" style="width:260px">
 - 								<a href="<?php echo $myrow['url']?>" target="_blank">[查看]</a>
 - 							</td>
 - 						</tr>
 - 						<?php
 - 						if($myrow['mediatype']==1)
 - 						{
 - 							$fullfilename = $cfg_basedir.$myrow['url'];
 - 							if(file_exists($fullfilename)){
 - 								$info = "";
 - 								$sizes = getimagesize($fullfilename,$info);
 - 								if(is_array($sizes)){
 - 									if($sizes[0]>200) $w=200;
 - 									else $w = $sizes[0];
 - 						?>
 - 						<tr>
 - 							<td class="bline">预览:</td>
 - 							<td class="bline"><a href="<?php echo $myrow['url']?>" target="_blank"><img src="<?php echo $myrow['url'].'?q='.time()?>" width="<?php echo $w?>" id="picview"></a></td>
 - 						</tr>
 - 						<?php } } } ?>
 - 						<tr>
 - 							<td class="bline">修改文件:</td>
 - 							<td class="bline">
 - 								<input name="upfile" type="file" id="upfile" style="width:260px">
 - 							</td>
 - 						</tr>
 - 						<tr>
 - 							<td colspan="2" class="bline">
 - 								<table width="100%" cellspacing="0" cellpadding="0" class="table table-borderless">
 - 									<tr>
 - 										<td align="center" class="py-2"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
 - 									</tr>
 - 								</table>
 - 							</td>
 - 						</tr>
 - 					</form>
 - 				</table>
 - 			</td>
 - 		</tr>
 - 	</table>
 - </body>
 - </html>
 
 
  |