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

2 роки тому
1 рік тому
1 рік тому
2 роки тому
2 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>修改图片</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  11. <link rel="stylesheet" href="../static/web/css/cropper.min.css">
  12. <link rel="stylesheet" href="../static/web/css/jquery.fileupload.css">
  13. <link rel="stylesheet" href="css/albumupload.min.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/bootstrap.bundle.min.js"></script>
  17. <script src="../static/web/js/webajax.js"></script>
  18. <script src="../static/web/js/moment.min.js"></script>
  19. <script src="../static/web/js/daterangepicker.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="admin-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="admin-border">
  72. <tr>
  73. <td class="admin-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="admin-input-lg"></td>
  78. <td width="90">简略标题:</td>
  79. <td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
  80. </tr>
  81. </table>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td class="admin-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-2'><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-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label>";
  101. }
  102. ?>
  103. </td>
  104. </tr>
  105. </table>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td class="admin-td" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>">
  110. <table cellspacing="0" cellpadding="0">
  111. <tr>
  112. <td width="90">跳转网址:</td>
  113. <td><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" class="admin-input-md"></td>
  114. </tr>
  115. </table>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td class="admin-td">
  120. <table cellspacing="0" cellpadding="0">
  121. <tr>
  122. <td width="90">标签:</td>
  123. <td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td>
  124. <td width="60">权重:</td>
  125. <td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. <tr id="pictable">
  131. <td class="admin-td">
  132. <table cellspacing="0" cellpadding="0">
  133. <tr>
  134. <td width="90">缩略图:</td>
  135. <td width="620">
  136. <input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-md">
  137. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label>
  138. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  139. <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  140. <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
  141. </td>
  142. <td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
  143. </tr>
  144. </table>
  145. </td>
  146. </tr>
  147. <tr>
  148. <td class="admin-td">
  149. <table cellspacing="0" cellpadding="0">
  150. <tr>
  151. <td width="90">来源:</td>
  152. <td width="260">
  153. <input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
  154. <button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
  155. </td>
  156. <td width="90">作者:</td>
  157. <td>
  158. <input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
  159. <button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
  160. </td>
  161. </tr>
  162. </table>
  163. </td>
  164. </tr>
  165. <tr>
  166. <td class="admin-td">
  167. <table cellspacing="0" cellpadding="0">
  168. <tr>
  169. <td width="90">发布栏目:</td>
  170. <td width="360">
  171. <?php
  172. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  173. echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
  174. if ($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类</option>";
  175. echo $typeOptions;
  176. echo '</select>';
  177. ?>
  178. <i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>')" title="快捷选择"></i>
  179. </td>
  180. <td width="90">需要金币:</td>
  181. <td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td>
  182. </tr>
  183. </table>
  184. </td>
  185. </tr>
  186. <?php if ($cfg_need_typeid2=='Y') {?>
  187. <tr>
  188. <td class="admin-td">
  189. <table cellspacing="0" cellpadding="0">
  190. <tr>
  191. <td width="90">副栏目:</td>
  192. <td>
  193. <span id="typeid2ct"></span>
  194. <input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
  195. <i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>')" title="选择副栏目"></i>
  196. </td>
  197. </tr>
  198. </table>
  199. </td>
  200. </tr>
  201. <tr>
  202. <td class="admin-td">
  203. <table cellspacing="0" cellpadding="0">
  204. <tr>
  205. <td width="90">关键词:</td>
  206. <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-md"></td>
  207. </tr>
  208. </table>
  209. </td>
  210. </tr>
  211. <tr>
  212. <td class="admin-td">
  213. <table cellspacing="0" cellpadding="0">
  214. <tr>
  215. <td width="90">描述:</td>
  216. <td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
  217. </tr>
  218. </table>
  219. </td>
  220. </tr>
  221. <?php }?>
  222. <tr>
  223. <td><?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');?></td>
  224. </tr>
  225. <tr>
  226. <td class="admin-td">
  227. <table cellspacing="0" cellpadding="0">
  228. <tr>
  229. <td width="90">表现方式:</td>
  230. <td>
  231. <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>
  232. <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>
  233. <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>
  234. </td>
  235. </tr>
  236. </table>
  237. </td>
  238. </tr>
  239. <tr id="cfgmulist" style="<?php if ($pagestyle!=3) echo 'display:none';?>">
  240. <td class="admin-td">
  241. <table cellspacing="0" cellpadding="0">
  242. <tr>
  243. <td width="90">多列式参数:</td>
  244. <td>
  245. 行 <input type="text" name="row" id="row" value="<?php echo $irow;?>" size="6">
  246. 列 <input type="text" name="col" id="col" value="<?php echo $icol;?>" size="6">
  247. 缩略图宽度限制:<input type="text" name="ddmaxwidth" id="ddmaxwidth" value="<?php echo $ddmaxwidth;?>" size="6"> 像素
  248. </td>
  249. </tr>
  250. <tr>
  251. <td></td>
  252. <td>(系统仅是每页输出&quot;行x列&quot;张图片,实现需自行控制样式表)</td>
  253. </tr>
  254. </table>
  255. </td>
  256. </tr>
  257. <tr id="spagelist" style="<?php if ($pagestyle!=1) echo 'display:none';?>">
  258. <td class="admin-td">
  259. <table cellspacing="0" cellpadding="0">
  260. <tr>
  261. <td width="90">每页图片数:</td>
  262. <td><input name="pagepicnum" id="pagpicnum" size="10" value="<?php echo $pagepicnum;?>"> 单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图</td>
  263. </tr>
  264. </table>
  265. </td>
  266. </tr>
  267. <tr style="display:none">
  268. <td class="admin-td">
  269. <table cellspacing="0" cellpadding="0">
  270. <tr>
  271. <td width="90">限制宽度:</td>
  272. <td><input type="text" name="maxwidth" id="maxwidth" size="10" value="<?php echo $maxwidth?>">(防止图片太宽在模板页中溢出)</td>
  273. </tr>
  274. </table>
  275. </td>
  276. </tr>
  277. <tr id="htmlfield" style="display:none">
  278. <td class="admin-td">
  279. <table cellspacing="0" cellpadding="0">
  280. <tr>
  281. <td width="90">网上复制:</td>
  282. <td>
  283. 复制的源网址:<input type="text" name="copysource" value="http://" class="admin-input-md">(防盗链网站需填写您复制图片的其中一个网页网址)<br>
  284. 把图片从别的网页复制,在这里用Ctrl+V粘贴,提交后程序可直接获取这个区域的所有图片
  285. <input type="button" name="button" id="button" value="预览" onClick="LoadTestDiv()"><br>
  286. <div id="copyhtml" style="margin:10px 0;border:solid 1px #CCCCCC;width:96%;padding:6px;height:260px;width:100%" contenteditable="true">粘贴到这里</div>
  287. </td>
  288. </tr>
  289. </table>
  290. </td>
  291. </tr>
  292. <tr>
  293. <td class="admin-td">
  294. <table width="100%">
  295. <tr>
  296. <td>
  297. <div id="thumbnailsEdit">
  298. <?php
  299. $j = 1;
  300. if ($imgurls!=""){
  301. $dtp = new DedeTagParse();
  302. $dtp->LoadSource($imgurls);
  303. if (is_array($dtp->CTags)) {
  304. foreach($dtp->CTags as $ctag)
  305. {
  306. if ($ctag->GetName()=="img") {
  307. $bigimg = trim($ctag->GetInnerText());
  308. if ($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='') {
  309. $litimg = $ctag->GetAtt('ddimg');
  310. } else {
  311. $litimg = 'swfupload.php?dopost=ddimg&img='.$bigimg;
  312. }
  313. $fhtml = '';
  314. $fhtml .= "<div class='albCt albEdit' id='albold{$j}'>";
  315. $fhtml .= "<input type='hidden' name='imgurl{$j}' value='{$bigimg}'>";
  316. $fhtml .= "<input type='hidden' name='imgddurl{$j}' value='{$litimg}'>";
  317. $fhtml .= "<img src='{$litimg}'>";
  318. $fhtml .= "<div class='mt-2'><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-success btn-sm mt-2\">删除</a></div>";
  319. $fhtml .= "<div class='mt-2'>名称:<input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' class='admin-input-sm'></div>";
  320. $fhtml .= "<div class='mt-2'>更换:<input type='file' name='imgfile{$j}' class='admin-input-sm'></div>";
  321. $fhtml .= "</div>";
  322. echo $fhtml;
  323. $j++;
  324. }
  325. }
  326. }
  327. $dtp->Clear();
  328. }
  329. ?>
  330. </div>
  331. </td>
  332. </tr>
  333. </table>
  334. </td>
  335. </tr>
  336. <tr>
  337. <td class="admin-td">
  338. <table cellspacing="0" cellpadding="0">
  339. <tr>
  340. <td width="90">增加新图片:</td>
  341. <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>
  342. </tr>
  343. </table>
  344. </td>
  345. </tr>
  346. <tr>
  347. <td class="admin-td">
  348. <table width="100%">
  349. <tr>
  350. <td>
  351. <div id="divFileProgressContainer"></div>
  352. <div id="thumbnails"></div>
  353. </td>
  354. </tr>
  355. </table>
  356. </td>
  357. </tr>
  358. <tr>
  359. <td class="admin-td">
  360. <table cellspacing="0" cellpadding="0">
  361. <tr>
  362. <td width="90">图片文档:</td>
  363. <td><?php GetEditor("body",$body,400,"Diy");?></td>
  364. </tr>
  365. </table>
  366. </td>
  367. </tr>
  368. <tr>
  369. <td class="admin-td">
  370. <table cellspacing="0" cellpadding="0">
  371. <tr>
  372. <td width="90">评论选项:</td>
  373. <td width="260">
  374. <label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label>
  375. <label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label>
  376. </td>
  377. <td width="90">发布选项:</td>
  378. <td>
  379. <label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo "checked";?>> 生成网页</label>
  380. <label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo "checked";?>> 仅动态浏览</label>
  381. </td>
  382. </tr>
  383. </table>
  384. </td>
  385. </tr>
  386. <tr>
  387. <td class="admin-td">
  388. <table cellspacing="0" cellpadding="0">
  389. <tr>
  390. <td width="90">文档排序:</td>
  391. <td width="260">
  392. <select name="sortup" id="sortup" class="admin-input-sm">
  393. <?php
  394. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  395. echo "<option value='0'>正常排序</option>";
  396. if ($subday>0) echo "<option value='$subday' selected>置顶<span class='text-primary'>$subday</span>天</option>";
  397. ?>
  398. <option value="7">置顶一周</option>
  399. <option value="30">置顶一个月</option>
  400. <option value="90">置顶三个月</option>
  401. <option value="180">置顶半年</option>
  402. <option value="360">置顶一年</option>
  403. </select>
  404. </td>
  405. <td width="90">标题颜色:</td>
  406. <td>
  407. <input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
  408. <button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button>
  409. </td>
  410. </tr>
  411. </table>
  412. </td>
  413. </tr>
  414. <tr>
  415. <td class="admin-td">
  416. <table cellspacing="0" cellpadding="0">
  417. <tr>
  418. <td width="90">阅读权限:</td>
  419. <td width="260">
  420. <select name="arcrank" id="arcrank" class="admin-input-sm">
  421. <option value="<?php echo $arcRow['arcrank']?>"><?php echo $arcRow["rankname"]?></option>
  422. <?php
  423. $urank = $cuserLogin->getUserRank();
  424. $dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank'");
  425. $dsql->Execute();
  426. while($row = $dsql->GetObject()){
  427. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  428. }
  429. ?>
  430. </select>
  431. </td>
  432. <td width="90">文件名称:</td>
  433. <td><input type="text" name="filename" id="filename"
  434. value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括后缀名如.html等)
  435. </td>
  436. </tr>
  437. </table>
  438. </td>
  439. </tr>
  440. <tr>
  441. <td class="admin-td">
  442. <table cellspacing="0" cellpadding="0">
  443. <tr>
  444. <td width="90">发布时间:</td>
  445. <td width="260">
  446. <?php
  447. $nowtime = GetDateTimeMk(time());
  448. echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker' class='admin-input-sm'>";
  449. ?>
  450. </td>
  451. <td width="90">浏览次数:</td>
  452. <td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
  453. </tr>
  454. </table>
  455. </td>
  456. </tr>
  457. </table>
  458. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f5f5f5" class="admin-border border-top-0 mb-3">
  459. <tr>
  460. <td align="center">
  461. <button type="submit" class="btn btn-success btn-sm">保存</button>
  462. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  463. </td>
  464. </tr>
  465. </table>
  466. </form>
  467. <script>InitPage();</script>
  468. </body>
  469. </html>