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

531 lines
24KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>修改图片集</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <link rel="stylesheet" href="css/albumupload.css">
  11. <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut; ?>';</script>
  12. <script src="../static/web/js/jquery.min.js"></script>
  13. <script src="../static/web/js/webajax.js"></script>
  14. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  15. <script src="../static/web/js/moment.min.js"></script>
  16. <script src="../static/web/js/daterangepicker.js"></script>
  17. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  18. <script src="js/main.js"></script>
  19. <script src="js/album.js"></script>
  20. <script src="js/handlers.js"></script>
  21. <link rel="stylesheet" href="../static/web/css/cropper.min.css">
  22. <script src="../static/web/js/cropper.min.js"></script>
  23. <link rel="stylesheet" href="../static/web/css/jquery.fileupload.css">
  24. <script>
  25. var swfu = null;
  26. var vcc = 0;
  27. var albums = [];
  28. $(document).ready(function () {
  29. //添加图片
  30. $("#iptAlbumImages").change(function (event) {
  31. var files = event.target.files;
  32. for (var i = 0, f; f = files[i]; i++) {
  33. //如果不是图片忽略
  34. if (!f.type.match('image.*')) {
  35. continue;
  36. }
  37. //将图片渲染到浏览器
  38. var reader = new FileReader();
  39. reader.onload = (function (theFile) {
  40. return function (e) {
  41. litpicImgSrc = e.target.result;
  42. addImage(litpicImgSrc, 0);
  43. };
  44. })(f);
  45. reader.readAsDataURL(f);
  46. }
  47. $("#iptAlbumImages").val("");
  48. });
  49. });
  50. </script>
  51. <style>
  52. body{background:#fff}
  53. img{vertical-align:baseline}
  54. table{border-collapse:separate}
  55. .albEdit {height:auto}
  56. </style>
  57. </head>
  58. <body>
  59. <form name="form1" action="album_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();">
  60. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  61. <input type="hidden" name="id" value="<?php echo $aid?>">
  62. <input type="hidden" name="imagebody" value="">
  63. <input type="hidden" name="dopost" value="save">
  64. <input type="hidden" id="albums" name="albums" value="">
  65. <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  66. <tr>
  67. <td width="70%" height="26"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&dopost=listArchives">图集列表</a> &gt; 修改图集</td>
  68. <td width="30%" align='right'><?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td>
  69. </tr>
  70. </table>
  71. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1">
  72. <tr>
  73. <td colspan="2">
  74. <table width="168" cellpadding="0" cellspacing="0">
  75. <tr>
  76. <td width="86" height="26" align="center" background="../static/web/img/itemnote1.gif">常规内容</td>
  77. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">图集图片</a></td>
  78. </tr>
  79. </table>
  80. </td>
  81. </tr>
  82. </table>
  83. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  84. <tr>
  85. <td colspan="2">
  86. <table width="168" height="26" cellpadding="0" cellspacing="0">
  87. <tr>
  88. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规内容</a></td>
  89. <td width="86" align="center" background="../static/web/img/itemnote1.gif">图集图片</td>
  90. </tr>
  91. </table>
  92. </td>
  93. </tr>
  94. </table>
  95. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6;">
  96. <tr>
  97. <td height="26" colspan="4" class="bline"><table width="900" cellspacing="0" cellpadding="0">
  98. <tr>
  99. <td width="90">&nbsp;图集标题:</td>
  100. <td width="400"><input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:380px"></td>
  101. <td width="90">&nbsp;简略标题:</td>
  102. <td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:160px"></td>
  103. </tr>
  104. </table>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td width="400%" height="26" colspan="4" class="bline">
  109. <table width="900" cellspacing="0" cellpadding="0">
  110. <tr>
  111. <td width="90">&nbsp;自定义属性:</td>
  112. <td>
  113. <?php
  114. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  115. $dsql->Execute();
  116. while($trow = $dsql->GetObject())
  117. {
  118. if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  119. else $jumpclick = '';
  120. if(preg_match("#".$trow->att."#", $arcRow['flag']))
  121. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> ";
  122. else
  123. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> ";
  124. }
  125. ?></td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. <tr>
  131. <td height="26" colspan="4" class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block'); ?>">
  132. <table width="900" cellspacing="0" cellpadding="0">
  133. <tr>
  134. <td width="90">&nbsp;跳转网址:</td>
  135. <td><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" style="width:300px"></td>
  136. </tr>
  137. </table>
  138. </td>
  139. </tr>
  140. <tr>
  141. <td width="400%" height="26" class="bline">
  142. <table width="900" cellspacing="0" cellpadding="0">
  143. <tr>
  144. <td width="90">&nbsp;Tag标签:</td>
  145. <td><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px">(','号分开,单个标签小于12字节)</td>
  146. <td width="60">权重:</td>
  147. <td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight']; ?>" style="width:60px">(越小越靠前)</td>
  148. </tr>
  149. </table>
  150. </td>
  151. </tr>
  152. <tr id="pictable">
  153. <td height="26" colspan="4" class="bline">
  154. <table width="900" cellspacing="0" cellpadding="0">
  155. <tr>
  156. <td width="90" height="80">&nbsp;缩略图:</td>
  157. <td>
  158. <input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px">
  159. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="np">&nbsp;远程</label>
  160. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  161. <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  162. <button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button>
  163. </td>
  164. <td align="center"><img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg'; ?>" style="max-width:100px;max-height:80px"></td>
  165. </tr>
  166. </table></td>
  167. </tr>
  168. <tr>
  169. <td height="26" colspan="4" class="bline"><table width="900" cellspacing="0" cellpadding="0">
  170. <tr>
  171. <td width="90">&nbsp;来源:</td>
  172. <td width="260">
  173. <input name="source" type="text" id="source" value="<?php echo $arcRow['source']?>" style="width:160px">
  174. <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button>
  175. </td>
  176. <td width="90">作者:</td>
  177. <td>
  178. <input name="writer" type="text" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px">
  179. <button name="selwriter" type="button" id="selwriter" class="btn btn-success btn-sm">选择</button>
  180. </td>
  181. </tr>
  182. </table>
  183. </td>
  184. </tr>
  185. <tr>
  186. <td height="26" colspan="4" class="bline">
  187. <table width="900" cellspacing="0" cellpadding="0">
  188. <tr>
  189. <td width="90">&nbsp;发布栏目:</td>
  190. <td width="360">
  191. <?php
  192. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  193. echo "<select name='typeid' id='typeid' style='width:160px'>";
  194. if($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类</option>";
  195. echo $typeOptions;
  196. echo '</select>';
  197. ?>
  198. <i class='btn btn-sm fa fa-search' style='cursor:pointer' onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid','<?php echo $arcRow['typeid']; ?>')" title='快捷选择'></i>
  199. </td>
  200. <td width="90">消费金币:</td>
  201. <td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" style="width:160px"></td>
  202. </tr>
  203. </table>
  204. </td>
  205. </tr>
  206. <?php
  207. if($cfg_need_typeid2=='Y') {
  208. ?>
  209. <tr>
  210. <td height="26" class="bline">
  211. <table width="900" cellspacing="0" cellpadding="0">
  212. <tr>
  213. <td width="90">&nbsp;副栏目:</td>
  214. <td>
  215. <span id='typeid2ct'></span>
  216. <input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:160px'>
  217. <i class='btn btn-sm fa fa-search' style='cursor:pointer' onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid2','<?php echo $arcRow['typeid2']; ?>')" title='选择副栏目'></i>
  218. </td>
  219. </tr>
  220. </table>
  221. </td>
  222. </tr>
  223. <tr>
  224. <td height="26" class="bline">
  225. <table width="900" cellspacing="0" cellpadding="0">
  226. <tr>
  227. <td width="90">&nbsp;关键词:</td>
  228. <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td>
  229. </tr>
  230. </table>
  231. </td>
  232. </tr>
  233. <tr>
  234. <td height="26" class="bline">
  235. <table width="900" cellspacing="0" cellpadding="0">
  236. <tr>
  237. <td width="90">&nbsp;描述:</td>
  238. <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td>
  239. </tr>
  240. </table>
  241. </td>
  242. </tr>
  243. <?php
  244. }
  245. ?>
  246. <tr>
  247. <td><?php
  248. PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');
  249. ?></td>
  250. </tr>
  251. <tr>
  252. <td height="26" colspan="4" class="bline"><table width="900" cellspacing="0" cellpadding="0">
  253. <tr>
  254. <td width="90">&nbsp;图集内容:</td>
  255. <td><?php GetEditor("body",$body,450,"Diy"); ?></td>
  256. </tr>
  257. </table>
  258. </td>
  259. </tr>
  260. <tr>
  261. <td height="26" bgcolor="#f8f8f8" class="bline2">&nbsp;高级属性:</td>
  262. </tr>
  263. <tr>
  264. <td height="26" colspan="4" class="bline">
  265. <table width="900" cellspacing="0" cellpadding="0">
  266. <tr>
  267. <td width="90" height="26" width="260">&nbsp;评论选项:</td>
  268. <td width="260">
  269. <label><input type='radio' name='notpost' class='np' value='0'<?php if($arcRow['notpost']==0) echo " checked='1' "; ?>/>
  270. 允许评论</label>
  271. &nbsp;
  272. <label><input type='radio' name='notpost' class='np' value='1'<?php if($arcRow['notpost']==1) echo " checked='1' "; ?>/>
  273. 禁止评论</label>
  274. </td>
  275. <td width="90">发布选项:</td>
  276. <td><label><input name="ishtml" type="radio" class="np" value="1"<?php if($arcRow["ismake"]!=-1) echo " checked"; ?>>
  277. 生成HTML</label>
  278. <label><input type="radio" name="ishtml" class="np" value="0"<?php if($arcRow["ismake"]==-1) echo " checked"; ?>>
  279. 仅动态浏览</label>
  280. </td>
  281. </tr>
  282. </table>
  283. </tr>
  284. <tr>
  285. <td height="26" class="bline">
  286. <table width="900" cellspacing="0" cellpadding="0">
  287. <tr>
  288. <td width="90">&nbsp;文档排序:</td>
  289. <td width="260">
  290. <select name="sortup" id="sortup" style="width:160px">
  291. <?php
  292. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  293. echo "<option value='0'>正常排序</option>";
  294. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>";
  295. ?>
  296. <option value="7">置顶一周</option>
  297. <option value="30">置顶一个月</option>
  298. <option value="90">置顶三个月</option>
  299. <option value="180">置顶半年</option>
  300. <option value="360">置顶一年</option>
  301. </select></td>
  302. <td width="90">标题颜色:</td>
  303. <td>
  304. <input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" style="width:160px">
  305. <button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button>
  306. </td>
  307. </tr>
  308. </table>
  309. </td>
  310. </tr>
  311. <tr>
  312. <td height="26" class="bline">
  313. <table width="900" cellspacing="0" cellpadding="0">
  314. <tr>
  315. <td width="90">&nbsp;阅读权限:</td>
  316. <td width="260">
  317. <select name="arcrank" id="arcrank" style="width:160px">
  318. <option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option>
  319. <?php
  320. $urank = $cuserLogin->getUserRank();
  321. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  322. $dsql->Execute();
  323. while($row = $dsql->GetObject()){
  324. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  325. }
  326. ?>
  327. </select>
  328. </td>
  329. <td width="90">文件名称:</td>
  330. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" style="width:160px">(不包括后缀名如.html等)</td>
  331. </tr>
  332. </table>
  333. </td>
  334. </tr>
  335. <tr>
  336. <td height="70" class="bline">
  337. <table width="900" cellspacing="0" cellpadding="0">
  338. <tr>
  339. <td width="90">&nbsp;发布时间:</td>
  340. <td width="260">
  341. <?php
  342. $nowtime = GetDateTimeMk(time());
  343. echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker' style='width:160px'>";
  344. ?>
  345. </td>
  346. <td width="90">浏览次数:</td>
  347. <td><input type="text" name="click" value="<?php echo $arcRow['click']; ?>" style="width:160px"></td>
  348. </tr>
  349. </table>
  350. </td>
  351. </tr>
  352. </table>
  353. <!--高级参数-->
  354. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;display:none">
  355. <tr>
  356. <td height="26" colspan="4" class="bline">
  357. <table width="900" cellspacing="0" cellpadding="0">
  358. <tr>
  359. <td width="90">&nbsp;表现方式:</td>
  360. <td>
  361. <label><input name="pagestyle" class="np" type="radio" id="pagestyle1" onClick="checkMuList()" value="1"<?php if($pagestyle==1) echo " checked='checked'"; ?> />
  362. <img src='../static/web/img/alb2.jpg' title='单页多图样式'></label>&nbsp;&nbsp;
  363. <label><input name="pagestyle" class="np" type="radio" id="pagestyle2" onClick="checkMuList()" value="2"<?php if($pagestyle==2) echo " checked='checked'"; ?> />
  364. <img src='../static/web/img/alb1.jpg' title='幻灯片样式'></label>&nbsp;&nbsp;
  365. <label><input name="pagestyle" class="np" type="radio" id="pagestyle3" onClick="checkMuList()" value="3"<?php if($pagestyle==3) echo " checked='checked'"; ?>/>
  366. <img src='../static/web/img/alb3.jpg' title='多缩略图样式'></label></td>
  367. </tr>
  368. </table>
  369. </td>
  370. </tr>
  371. <tr id='cfgmulist' style='<?php if($pagestyle!=3) echo 'display:none'; ?>'>
  372. <td height="26" colspan="4" class="bline">
  373. <table width="900" cellspacing="0" cellpadding="0">
  374. <tr>
  375. <td width="260">&nbsp;多列式参数:</td>
  376. <td>
  377. 行&nbsp;<input name="row" type="text" id="row" value="<?php echo $irow; ?>" size="6">
  378. 列&nbsp;<input name="col" type="text" id="col" value="<?php echo $icol; ?>" size="6">
  379. 缩略图宽度限制:<input name="ddmaxwidth" type="text" id="ddmaxwidth" value="<?php echo $ddmaxwidth; ?>" size="6">&nbsp;像素
  380. </td>
  381. </tr>
  382. <tr>
  383. <td width="86" height="26"></td>
  384. <td>(系统仅是每页输出&quot;行x列&quot;张图片,实现需自行控制样式表)</td>
  385. </tr>
  386. </table>
  387. </td>
  388. </tr>
  389. <tr id='spagelist' style='<?php if($pagestyle!=1) echo 'display:none'; ?>'>
  390. <td height="26" colspan="4" class="bline">
  391. <table width="900" cellspacing="0" cellpadding="0">
  392. <tr>
  393. <td width="90">&nbsp;每页图片数:</td>
  394. <td><input name='pagepicnum' id='pagpicnum' size='10' value='<?php echo $pagepicnum; ?>'> 单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图</td>
  395. </tr>
  396. </table>
  397. </td>
  398. </tr>
  399. <tr style='display:none'>
  400. <td height="26" colspan="4" class="bline">
  401. <table width="900" cellspacing="0" cellpadding="0">
  402. <tr>
  403. <td width="90">&nbsp;限制宽度:</td>
  404. <td><input name="maxwidth" type="text" id="maxwidth" size="10" value="<?php echo $maxwidth?>">(防止图片太宽在模板页中溢出)</td>
  405. </tr>
  406. </table>
  407. </td>
  408. </tr>
  409. <tr>
  410. <td height="26" colspan="4" class="bline">
  411. <table width="900" cellspacing="0" cellpadding="0">
  412. <tr>
  413. <td width="90">&nbsp;上传方式:</td>
  414. <td><input name="isrm" class="np" type="hidden" id="isrm" value="1" />
  415. <label><input name="byhand" class="np" type="checkbox" id="byhand" value="1" disabled="ture" checked />
  416. 手工上传</label>
  417. <label><input name="formzip" class="np" type="checkbox" id="formzip" value="1" onClick="showZipField(this,'zipff','htmlfield')">
  418. 从ZIP压缩包中解压图片</label>
  419. </tr>
  420. </table>
  421. </td>
  422. </tr>
  423. <tr id="zipff" style="display:none">
  424. <td height="26" colspan="4" class="bline"><table width="900" cellspacing="0" cellpadding="0" height="100">
  425. <tr>
  426. <td width="90">&nbsp;压缩包文件:</td>
  427. <td><input type='text' name='zipfile' id='zipfile' style='width:260px'>
  428. <button name='addon_bt' type='button' class='btn btn-success btn-sm' onClick="SelectSoft('form1.zipfile')">浏览</button>
  429. <label><input name="delzip" type="checkbox" id="delzip" value="1" checked="checked">
  430. 处理后删除压缩文件</label>
  431. </td>
  432. </tr>
  433. </table>
  434. </td>
  435. </tr>
  436. <tr id="htmlfield" style="display:none">
  437. <td height="26" colspan="4" class="bline"><table width="900" cellspacing="0" cellpadding="0">
  438. <tr>
  439. <td width="90">&nbsp;网上复制:</td>
  440. <td>复制的源网址:
  441. <input name='copysource' type='text' value='http://' style='width:260px'/>(防盗链网站需填写您复制图片的其中一个网页网址)
  442. <br>把图片从别的网页复制,在这里用Ctrl+V粘贴,提交后程序可直接获取这个区域的所有图片
  443. <input type="button" name="button" id="button" value="预览" onClick="LoadTestDiv()">
  444. <br>
  445. <div id='copyhtml' style='margin-top:6px;margin-bottom:6px;border:solid 1px #CCCCCC;width:96%;padding:6px;height:260px;width:100%' contenteditable="true">粘贴到这里</div>
  446. </td>
  447. </tr>
  448. </table>
  449. </td>
  450. </tr>
  451. <tr>
  452. <td height="26" colspan="4" class="bline">
  453. <table width='100%'>
  454. <tr>
  455. <td>
  456. <div id="thumbnailsEdit">
  457. <?php
  458. $j = 1;
  459. if($imgurls!=""){
  460. $dtp = new DedeTagParse();
  461. $dtp->LoadSource($imgurls);
  462. if(is_array($dtp->CTags))
  463. {
  464. foreach($dtp->CTags as $ctag)
  465. {
  466. if($ctag->GetName()=="img")
  467. {
  468. $bigimg = trim($ctag->GetInnerText());
  469. if($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='')
  470. {
  471. $litimg = $ctag->GetAtt('ddimg');
  472. } else {
  473. $litimg = 'swfupload.php?dopost=ddimg&img='.$bigimg;
  474. }
  475. $fhtml = '';
  476. $fhtml .= "<div class='albCt albEdit' id='albold{$j}'>";
  477. $fhtml .= "<input type='hidden' name='imgurl{$j}' value='{$bigimg}'>";
  478. $fhtml .= "<input type='hidden' name='imgddurl{$j}' value='{$litimg}'>";
  479. $fhtml .= "<img src='{$litimg}'style='width:120px'><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-success btn-sm\">删除</a>";
  480. $fhtml .= "<div style='margin-top:10px'>注释:<input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' style='width:160px'></div>";
  481. $fhtml .= "<div style='margin-top:10px'>更换:<input type='file' name='imgfile{$j}' size='18' style='width:160px'></div>";
  482. $fhtml .= "</div>";
  483. echo $fhtml;
  484. $j++;
  485. }
  486. }
  487. }
  488. $dtp->Clear();
  489. }
  490. ?>
  491. </div>
  492. </td>
  493. </tr>
  494. </table>
  495. </td>
  496. </tr>
  497. <tr>
  498. <td bgcolor="#f8f8f8" height="26" colspan="4" class="bline">
  499. <table width="900" cellspacing="0" cellpadding="0">
  500. <tr>
  501. <td width="90">&nbsp;增加新图片:</td>
  502. <td><span class="btn btn-success btn-sm fileinput-button"><i class="glyphicon glyphicon-plus"></i> 选择本地图片(支持多选)<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
  503. </tr>
  504. </table>
  505. </td>
  506. </tr>
  507. <tr>
  508. <td colspan="4" style="background:#fff url(../static/web/img/albviewbg.jpg) 0 20px no-repeat;">
  509. <table width='100%' height='160' style="margin:0 0 20px 0">
  510. <tr>
  511. <td>
  512. <div id="divFileProgressContainer" style="height:70px;"></div>
  513. <div id="thumbnails"></div>
  514. </td>
  515. </tr>
  516. </table>
  517. </td>
  518. </tr>
  519. </table>
  520. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3">
  521. <tr>
  522. <td align="center" class="py-3">
  523. <button type="submit" class="btn btn-success btn-sm">保存</button>
  524. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  525. </td>
  526. </tr>
  527. </table>
  528. </form>
  529. <script>InitPage();</script>
  530. </body>
  531. </html>