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

494 lines
21KB

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