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

520 lines
25KB

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