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

album_edit.htm 25KB

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