国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

525 рядки
24KB

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