国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

album_edit.htm 23KB

2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  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. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  12. <link rel="stylesheet" href="../static/web/css/cropper.min.css">
  13. <link rel="stylesheet" href="../static/web/css/jquery.fileupload.css">
  14. <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut; ?>';</script>
  15. <script src="../static/web/js/jquery.min.js"></script>
  16. <script src="../static/web/js/webajax.js"></script>
  17. <script src="../static/web/js/moment.min.js"></script>
  18. <script src="../static/web/js/daterangepicker.js"></script>
  19. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  20. <script src="js/main.js"></script>
  21. <script src="js/album.js"></script>
  22. <script src="js/handlers.js"></script>
  23. <script src="../static/web/js/cropper.min.js"></script>
  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{margin:0 10px;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%"><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="28" 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" 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" height="28" 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 colspan="4" class="bline">
  98. <table width="900" cellspacing="0" cellpadding="0">
  99. <tr>
  100. <td width="90"> 图集标题:</td>
  101. <td width="400"><input type="text" name="title" id="title" value="<?php echo $arcRow['title']; ?>" style="width:380px"></td>
  102. <td width="90"> 简略标题:</td>
  103. <td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:160px"></td>
  104. </tr>
  105. </table>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td width="100%" colspan="4" class="bline">
  110. <table width="900" cellspacing="0" cellpadding="0">
  111. <tr>
  112. <td width="90"> 自定义属性:</td>
  113. <td>
  114. <?php
  115. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  116. $dsql->Execute();
  117. while($trow = $dsql->GetObject())
  118. {
  119. if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  120. else $jumpclick = '';
  121. if(preg_match("#".$trow->att."#", $arcRow['flag']))
  122. echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>";
  123. else
  124. echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label>";
  125. }
  126. ?></td>
  127. </tr>
  128. </table>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td colspan="4" class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block'); ?>">
  133. <table width="900" cellspacing="0" cellpadding="0">
  134. <tr>
  135. <td width="90"> 跳转网址:</td>
  136. <td><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" style="width:300px"></td>
  137. </tr>
  138. </table>
  139. </td>
  140. </tr>
  141. <tr>
  142. <td width="100%" class="bline">
  143. <table width="900" cellspacing="0" cellpadding="0">
  144. <tr>
  145. <td width="90"> Tag标签:</td>
  146. <td><input type="text" name="tags" id="tags" value="<?php echo $tags; ?>" style="width:300px">(','号分开,单个标签小于12字节)</td>
  147. <td width="60">权重:</td>
  148. <td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight']; ?>" style="width:60px">(越小越靠前)</td>
  149. </tr>
  150. </table>
  151. </td>
  152. </tr>
  153. <tr id="pictable">
  154. <td colspan="4" class="bline">
  155. <table width="900" cellspacing="0" cellpadding="0">
  156. <tr>
  157. <td width="90" height="80"> 缩略图:</td>
  158. <td>
  159. <input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px">
  160. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label>
  161. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  162. <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  163. <button type="button" id="btnClearAll" class="btn btn-success btn-sm delete">清空</button>
  164. </td>
  165. <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>
  166. </tr>
  167. </table>
  168. </td>
  169. </tr>
  170. <tr>
  171. <td colspan="4" class="bline">
  172. <table width="900" cellspacing="0" cellpadding="0">
  173. <tr>
  174. <td width="90"> 来源:</td>
  175. <td width="260">
  176. <input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" style="width:160px">
  177. <button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
  178. </td>
  179. <td width="90">作者:</td>
  180. <td>
  181. <input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px">
  182. <button type="button"name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
  183. </td>
  184. </tr>
  185. </table>
  186. </td>
  187. </tr>
  188. <tr>
  189. <td colspan="4" class="bline">
  190. <table width="900" cellspacing="0" cellpadding="0">
  191. <tr>
  192. <td width="90"> 发布栏目:</td>
  193. <td width="360">
  194. <?php
  195. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  196. echo "<select name='typeid' id='typeid' style='width:160px'>";
  197. if($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类</option>";
  198. echo $typeOptions;
  199. echo '</select>';
  200. ?>
  201. <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>
  202. </td>
  203. <td width="90">消费金币:</td>
  204. <td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" style="width:160px"></td>
  205. </tr>
  206. </table>
  207. </td>
  208. </tr>
  209. <?php
  210. if($cfg_need_typeid2=='Y') {
  211. ?>
  212. <tr>
  213. <td class="bline">
  214. <table width="900" cellspacing="0" cellpadding="0">
  215. <tr>
  216. <td width="90"> 副栏目:</td>
  217. <td>
  218. <span id="typeid2ct"></span>
  219. <input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>" style="width:160px">
  220. <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>
  221. </td>
  222. </tr>
  223. </table>
  224. </td>
  225. </tr>
  226. <tr>
  227. <td class="bline">
  228. <table width="900" cellspacing="0" cellpadding="0">
  229. <tr>
  230. <td width="90"> 关键词:</td>
  231. <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td>
  232. </tr>
  233. </table>
  234. </td>
  235. </tr>
  236. <tr>
  237. <td class="bline">
  238. <table width="900" cellspacing="0" cellpadding="0">
  239. <tr>
  240. <td width="90"> 描述:</td>
  241. <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td>
  242. </tr>
  243. </table>
  244. </td>
  245. </tr>
  246. <?php
  247. }
  248. ?>
  249. <tr>
  250. <td>
  251. <?php
  252. PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');
  253. ?>
  254. </td>
  255. </tr>
  256. <tr>
  257. <td colspan="4" class="bline">
  258. <table width="900" cellspacing="0" cellpadding="0">
  259. <tr>
  260. <td width="90"> 图集内容:</td>
  261. <td><?php GetEditor("body",$body,450,"Diy"); ?></td>
  262. </tr>
  263. </table>
  264. </td>
  265. </tr>
  266. <tr>
  267. <td bgcolor="#f8f8f8" class="bline2"> 高级属性:</td>
  268. </tr>
  269. <tr>
  270. <td colspan="4" class="bline">
  271. <table width="900" cellspacing="0" cellpadding="0">
  272. <tr>
  273. <td width="90" width="260"> 评论选项:</td>
  274. <td width="260">
  275. <label><input type="radio" name="notpost" value="0" <?php if($arcRow['notpost']==0) echo "checked='1'"; ?>> 允许评论</label>
  276. <label><input type="radio" name="notpost" value="1" <?php if($arcRow['notpost']==1) echo "checked='1'"; ?>> 禁止评论</label>
  277. </td>
  278. <td width="90">发布选项:</td>
  279. <td>
  280. <label><input type="radio" name="ishtml" value="1" <?php if($arcRow["ismake"]!=-1) echo "checked"; ?>> 生成网页</label>
  281. <label><input type="radio" name="ishtml" value="0" <?php if($arcRow["ismake"]==-1) echo "checked"; ?>> 仅动态浏览</label>
  282. </td>
  283. </tr>
  284. </table>
  285. </tr>
  286. <tr>
  287. <td class="bline">
  288. <table width="900" cellspacing="0" cellpadding="0">
  289. <tr>
  290. <td width="90"> 文档排序:</td>
  291. <td width="260">
  292. <select name="sortup" id="sortup" style="width:160px">
  293. <?php
  294. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  295. echo "<option value='0'>正常排序</option>";
  296. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>";
  297. ?>
  298. <option value="7">置顶一周</option>
  299. <option value="30">置顶一个月</option>
  300. <option value="90">置顶三个月</option>
  301. <option value="180">置顶半年</option>
  302. <option value="360">置顶一年</option>
  303. </select></td>
  304. <td width="90">标题颜色:</td>
  305. <td>
  306. <input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" style="width:160px">
  307. <button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button>
  308. </td>
  309. </tr>
  310. </table>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td class="bline">
  315. <table width="900" cellspacing="0" cellpadding="0">
  316. <tr>
  317. <td width="90"> 阅读权限:</td>
  318. <td width="260">
  319. <select name="arcrank" id="arcrank" style="width:160px">
  320. <option value="<?php echo $arcRow['arcrank']?>"> <?php echo $arcRow["rankname"]?> </option>
  321. <?php
  322. $urank = $cuserLogin->getUserRank();
  323. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  324. $dsql->Execute();
  325. while($row = $dsql->GetObject()){
  326. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  327. }
  328. ?>
  329. </select>
  330. </td>
  331. <td width="90">文件名称:</td>
  332. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" style="width:160px">(不包括后缀名如.html等)</td>
  333. </tr>
  334. </table>
  335. </td>
  336. </tr>
  337. <tr>
  338. <td height="70" class="bline">
  339. <table width="900" cellspacing="0" cellpadding="0">
  340. <tr>
  341. <td width="90"> 发布时间:</td>
  342. <td width="260">
  343. <?php
  344. $nowtime = GetDateTimeMk(time());
  345. echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker' style='width:160px'>";
  346. ?>
  347. </td>
  348. <td width="90">浏览次数:</td>
  349. <td><input type="text" name="click" value="<?php echo $arcRow['click']; ?>" style="width:160px"></td>
  350. </tr>
  351. </table>
  352. </td>
  353. </tr>
  354. </table>
  355. <!--高级参数-->
  356. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;display:none">
  357. <tr>
  358. <td colspan="4" class="bline">
  359. <table width="900" cellspacing="0" cellpadding="0">
  360. <tr>
  361. <td width="90"> 表现方式:</td>
  362. <td>
  363. <label><input type="radio" name="pagestyle" id="pagestyle1" onClick="checkMuList()" value="1" <?php if($pagestyle==1) echo " checked='checked'"; ?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label>
  364. <label><input type="radio" name="pagestyle" id="pagestyle2" onClick="checkMuList()" value="2" <?php if($pagestyle==2) echo " checked='checked'"; ?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label>
  365. <label><input type="radio" name="pagestyle" id="pagestyle3" onClick="checkMuList()" value="3" <?php if($pagestyle==3) echo " checked='checked'"; ?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label>
  366. </td>
  367. </tr>
  368. </table>
  369. </td>
  370. </tr>
  371. <tr id="cfgmulist" style="<?php if($pagestyle!=3) echo 'display:none'; ?>">
  372. <td colspan="4" class="bline">
  373. <table width="900" cellspacing="0" cellpadding="0">
  374. <tr>
  375. <td width="260"> 多列式参数:</td>
  376. <td>
  377. 行&nbsp;<input type="text" name="row" id="row" value="<?php echo $irow; ?>" size="6">
  378. 列&nbsp;<input type="text" name="col" id="col" value="<?php echo $icol; ?>" size="6">
  379. 缩略图宽度限制:<input type="text" name="ddmaxwidth" id="ddmaxwidth" value="<?php echo $ddmaxwidth; ?>" size="6"> 像素
  380. </td>
  381. </tr>
  382. <tr>
  383. <td width="86" ></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 colspan="4" class="bline">
  391. <table width="900" cellspacing="0" cellpadding="0">
  392. <tr>
  393. <td width="90"> 每页图片数:</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 colspan="4" class="bline">
  401. <table width="900" cellspacing="0" cellpadding="0">
  402. <tr>
  403. <td width="90"> 限制宽度:</td>
  404. <td><input type="text" name="maxwidth" id="maxwidth" size="10" value="<?php echo $maxwidth?>">(防止图片太宽在模板页中溢出)</td>
  405. </tr>
  406. </table>
  407. </td>
  408. </tr>
  409. <tr>
  410. <td colspan="4" class="bline">
  411. <table width="900" cellspacing="0" cellpadding="0">
  412. <tr>
  413. <td width="90"> 上传方式:</td>
  414. <td><input type="hidden" name="isrm" id="isrm" value="1">
  415. <label><input type="checkbox" name="byhand" id="byhand" value="1" disabled="ture" checked> 手工上传</label>
  416. <label><input type="checkbox" name="formzip" id="formzip" value="1" onClick="showZipField(this,'zipff','htmlfield')"> 从ZIP压缩包中解压图片</label>
  417. </tr>
  418. </table>
  419. </td>
  420. </tr>
  421. <tr id="zipff" style="display:none">
  422. <td colspan="4" class="bline"><table width="900" cellspacing="0" cellpadding="0" height="100">
  423. <tr>
  424. <td width="90"> 压缩包文件:</td>
  425. <td><input type="text" name="zipfile" id="zipfile" style="width:260px">
  426. <button type="button" name="addon_bt" class="btn btn-success btn-sm" onClick="SelectSoft('form1.zipfile')">浏览</button>
  427. <label><input type="checkbox" name="delzip" id="delzip" value="1" checked="checked"> 处理后删除压缩文件</label>
  428. </td>
  429. </tr>
  430. </table>
  431. </td>
  432. </tr>
  433. <tr id="htmlfield" style="display:none">
  434. <td colspan="4" class="bline"><table width="900" cellspacing="0" cellpadding="0">
  435. <tr>
  436. <td width="90"> 网上复制:</td>
  437. <td>复制的源网址:
  438. <input type="text" name="copysource" value="http://" style="width:260px">(防盗链网站需填写您复制图片的其中一个网页网址)<br>
  439. 把图片从别的网页复制,在这里用Ctrl+V粘贴,提交后程序可直接获取这个区域的所有图片
  440. <input type="button" name="button" id="button" value="预览" onClick="LoadTestDiv()"><br>
  441. <div id="copyhtml" style="margin:10px 0;border:solid 1px #CCCCCC;width:96%;padding:6px;height:260px;width:100%" contenteditable="true">粘贴到这里</div>
  442. </td>
  443. </tr>
  444. </table>
  445. </td>
  446. </tr>
  447. <tr>
  448. <td colspan="4" class="bline">
  449. <table width="100%">
  450. <tr>
  451. <td>
  452. <div id="thumbnailsEdit">
  453. <?php
  454. $j = 1;
  455. if($imgurls!=""){
  456. $dtp = new DedeTagParse();
  457. $dtp->LoadSource($imgurls);
  458. if(is_array($dtp->CTags))
  459. {
  460. foreach($dtp->CTags as $ctag)
  461. {
  462. if($ctag->GetName()=="img")
  463. {
  464. $bigimg = trim($ctag->GetInnerText());
  465. if($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='')
  466. {
  467. $litimg = $ctag->GetAtt('ddimg');
  468. } else {
  469. $litimg = 'swfupload.php?dopost=ddimg&img='.$bigimg;
  470. }
  471. $fhtml = '';
  472. $fhtml .= "<div class='albCt albEdit' id='albold{$j}'>";
  473. $fhtml .= "<input type='hidden' name='imgurl{$j}' value='{$bigimg}'>";
  474. $fhtml .= "<input type='hidden' name='imgddurl{$j}' value='{$litimg}'>";
  475. $fhtml .= "<img src='{$litimg}'style='width:120px'><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-success btn-sm\">删除</a>";
  476. $fhtml .= "<div style='margin-top:10px'>名称:<input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."'></div>";
  477. $fhtml .= "<div style='margin-top:10px'>更换:<input type='file' name='imgfile{$j}' style='width:160px'></div>";
  478. $fhtml .= "</div>";
  479. echo $fhtml;
  480. $j++;
  481. }
  482. }
  483. }
  484. $dtp->Clear();
  485. }
  486. ?>
  487. </div>
  488. </td>
  489. </tr>
  490. </table>
  491. </td>
  492. </tr>
  493. <tr>
  494. <td bgcolor="#f8f8f8" colspan="4" class="bline">
  495. <table width="900" cellspacing="0" cellpadding="0">
  496. <tr>
  497. <td width="90"> 增加新图片:</td>
  498. <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>
  499. </tr>
  500. </table>
  501. </td>
  502. </tr>
  503. <tr>
  504. <td colspan="4">
  505. <table width="100%">
  506. <tr>
  507. <td>
  508. <div id="divFileProgressContainer"></div>
  509. <div id="thumbnails"></div>
  510. </td>
  511. </tr>
  512. </table>
  513. </td>
  514. </tr>
  515. </table>
  516. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3">
  517. <tr>
  518. <td align="center" class="py-3">
  519. <button type="submit" class="btn btn-success btn-sm">保存</button>
  520. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  521. </td>
  522. </tr>
  523. </table>
  524. </form>
  525. <script>InitPage();</script>
  526. </body>
  527. </html>