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

580 lines
27KB

  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. <!--
  8. body {
  9. background-image: url(images/allbg.gif);
  10. }
  11. -->
  12. </style>
  13. <link href="css/base.css" rel="stylesheet" type="text/css">
  14. <link href="css/swfupload.css" rel="stylesheet" type="text/css" />
  15. <script type="text/javascript" src="../static/swfupload/swfupload.js"></script>
  16. <script type="text/javascript" src="js/calendar/calendar.js"></script>
  17. <script type="text/javascript" src="../static/js/dedeajax2.js"></script>
  18. <script type="text/javascript" src="js/main.js"></script>
  19. <script type="text/javascript" src="js/album.js"></script>
  20. <script type="text/javascript" src="js/handlers.js"></script>
  21. <script language="javascript" type="text/javascript">
  22. var swfu = null;
  23. var vcc = 0;
  24. function LoadTestDiv()
  25. {
  26. var posLeft = 100; var posTop = 100;
  27. var newobj = $Obj('_myhtml');
  28. $Obj('imagebody').value = $Obj('copyhtml').innerHTML;
  29. var dfstr = '粘贴到这里...';
  30. if($Obj('imagebody').value.length <= dfstr.length)
  31. {
  32. alert('您还没有粘贴任何东西到编辑框哦!');
  33. return;
  34. }
  35. if(!newobj){
  36. newobj = document.createElement("DIV");
  37. newobj.id = '_myhtml';
  38. newobj.style.position='absolute';
  39. newobj.className = "dlg2";
  40. newobj.style.top = posTop;
  41. newobj.style.left = posLeft;
  42. document.body.appendChild(newobj);
  43. }
  44. else{
  45. newobj.style.display = "block";
  46. }
  47. var myajax = new DedeAjax(newobj,false,true,'-','-','...');
  48. var v = $Obj('imagebody').value;
  49. vcc++;
  50. <?php
  51. if(strtolower(substr($cfg_soft_lang, 0, 3)) == 'utf') {
  52. ?>
  53. //utf8
  54. myajax.AddKeyUtf8('myhtml',v);
  55. myajax.AddKeyUtf8('vcc',vcc);
  56. myajax.SendPost2('album_testhtml.php');
  57. <?php
  58. }
  59. elseif (strtolower(substr($cfg_soft_lang, 0, 2)) == 'gb') {
  60. ?>
  61. //gbk
  62. myajax.SendGet2("album_testhtml.php?vcc="+vcc+"&myhtml="+v);
  63. <?php
  64. }
  65. ?>
  66. DedeXHTTP = null;
  67. }
  68. window.onload = function ()
  69. {
  70. swfu = new SWFUpload(
  71. {
  72. // Backend Settings
  73. upload_url: "swfupload.php",
  74. post_params: {"PHPSESSID": "<?php echo session_id(); ?>", "dopost" : ""},
  75. // File Upload Settings
  76. file_size_limit : "2 MB", // 2MB
  77. file_types : "*.jpg; *.gif; *.png",
  78. file_types_description : "选择 JPEG/GIF/PNG 格式图片",
  79. file_upload_limit : "0",
  80. file_queue_error_handler : fileQueueError,
  81. file_dialog_complete_handler : fileDialogComplete,
  82. upload_progress_handler : uploadProgress,
  83. upload_error_handler : uploadError,
  84. upload_success_handler : uploadSuccess,
  85. upload_complete_handler : uploadComplete,
  86. button_image_url : "../static/SmallSpyGlassWithTransperancy_17x18.png",
  87. button_placeholder_id : "spanButtonPlaceholder",
  88. button_width: 250,
  89. button_height: 18,
  90. button_text : '<span class="button">选择本地图片 <span class="buttonSmall">(单图最大为 2 MB,支持多选)</span></span>',
  91. button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',
  92. button_text_top_padding: 0,
  93. button_text_left_padding: 18,
  94. button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
  95. button_cursor: SWFUpload.CURSOR.HAND,
  96. // Flash Settings
  97. flash_url : "../static/swfupload/swfupload.swf",
  98. custom_settings : {
  99. upload_target : "divFileProgressContainer"
  100. },
  101. // Debug Settings
  102. debug: false
  103. });
  104. };
  105. </script>
  106. </head>
  107. <body topmargin="8">
  108. <form name="form1" action="album_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();">
  109. <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  110. <input type="hidden" name="id" value="<?php echo $aid?>" />
  111. <input type="hidden" name="imagebody" value="" />
  112. <input type="hidden" name="dopost" value="save" />
  113. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  114. <tr>
  115. <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"><u>图集列表</u></a> &gt;&gt; 更改图集</td>
  116. <td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a>&nbsp;</td>
  117. </tr>
  118. </table>
  119. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  120. <tr>
  121. <td colspan="2"><table width="168" border="0" cellpadding="0" cellspacing="0">
  122. <tr>
  123. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规内容&nbsp;</td>
  124. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>图集图片</u></a>&nbsp;</td>
  125. </tr>
  126. </table></td>
  127. </tr>
  128. </table>
  129. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  130. <tr>
  131. <td colspan="2"><table width="168" height="24" border="0" cellpadding="0" cellspacing="0">
  132. <tr>
  133. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem1()"><u>常规内容</u></a>&nbsp;</td>
  134. <td width="84" align="center" background="images/itemnote1.gif">图集图片&nbsp;</td>
  135. </tr>
  136. </table></td>
  137. </tr>
  138. </table>
  139. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  140. <tr>
  141. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  142. <tr>
  143. <td width="90">&nbsp;图集标题:</td>
  144. <td width='408'><input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:388px"></td>
  145. <td width="90">&nbsp;简略标题:</td>
  146. <td><input name="shorttitle" type="text" id="shorttitle" style="width:150px" value="<?php echo $arcRow['shorttitle']; ?>"></td>
  147. </tr>
  148. </table></td>
  149. </tr>
  150. <tr>
  151. <td width="400%" height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  152. <tr>
  153. <td width="90">&nbsp;自定义属性:</td>
  154. <td><?php
  155. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  156. $dsql->Execute();
  157. while($trow = $dsql->GetObject())
  158. {
  159. if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  160. else $jumpclick = '';
  161. if(preg_match("#".$trow->att."#", $arcRow['flag']))
  162. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' />{$trow->attname}[{$trow->att}]";
  163. else
  164. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} />{$trow->attname}[{$trow->att}]";
  165. }
  166. ?></td>
  167. </tr>
  168. </table></td>
  169. </tr>
  170. <tr>
  171. <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">
  172. <tr>
  173. <td width="90">&nbsp;跳转网址:</td>
  174. <td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow["redirecturl"]?>" /></td>
  175. </tr>
  176. </table></td>
  177. </tr>
  178. <tr>
  179. <td width="400%" height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  180. <tr>
  181. <td width="90">&nbsp;TAG标签:</td>
  182. <td width="536"><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px" />
  183. (','号分开,单个标签小于12字节) </td>
  184. <td width="40">权重:</td>
  185. <td width="141"><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $arcRow['weight'];?>" />
  186. (越小越靠前)</td>
  187. </tr>
  188. </table></td>
  189. </tr>
  190. <tr id="pictable">
  191. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  192. <tr>
  193. <td width="90" height="81">&nbsp;缩 略 图:<br/></td>
  194. <td><input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow["litpic"]?>">
  195. <input type="button" name="Submit" value="浏览..." style="width:60" onClick="SelectImage('form1.picname','');">
  196. <input type="button" name="Submit2" value="裁剪" style="margin-left:8px;" onClick="imageCut('picname');" class='np coolbg'/>
  197. <input type='checkbox' class='np' name='ddisremote' value='1' />
  198. 远程 </td>
  199. <td align="center"><img src="<?php if($arcRow["litpic"]!="") echo $arcRow["litpic"]; else echo "images/pview.gif";?>" width="150" height="100" id="picview" name="picview"></td>
  200. </tr>
  201. </table></td>
  202. </tr>
  203. <tr>
  204. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  205. <tr>
  206. <td width="90">&nbsp;图片来源:</td>
  207. <td width="240"><input name="source" type="text" id="source" style="width:200" value="<?php echo $arcRow["source"]?>"></td>
  208. <td width="90">作者:</td>
  209. <td><input name="writer" type="text" id="writer" style="width:120" value="<?php echo $arcRow["writer"]?>"></td>
  210. </tr>
  211. </table></td>
  212. </tr>
  213. <tr>
  214. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  215. <tr>
  216. <td width="90">&nbsp;图集主栏目:</td>
  217. <td><?php
  218. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  219. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  220. if($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类...</option>\r\n";
  221. echo $typeOptions;
  222. echo '</select>';
  223. ?>
  224. <img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' />
  225. <?php
  226. if($cfg_remote_site=='Y')
  227. {
  228. ?>
  229. <input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>
  230. 是否同步远程发布
  231. <?php GetFtp();?>
  232. <?php
  233. }
  234. ?></td>
  235. </tr>
  236. </table></td>
  237. </tr>
  238. <?php
  239. if($cfg_need_typeid2=='Y') {
  240. ?>
  241. <tr>
  242. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  243. <tr>
  244. <td width="90">&nbsp;图集副栏目:</td>
  245. <td><span id='typeid2ct'></span>
  246. <input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' />
  247. <img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" alt='选择副栏目' title='选择副栏目' /></td>
  248. </tr>
  249. </table></td>
  250. </tr>
  251. <?php } ?>
  252. <tr>
  253. <td><?php
  254. PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');
  255. ?></td>
  256. </tr>
  257. <tr>
  258. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  259. <tr>
  260. <td width="90">&nbsp;图集内容:</td>
  261. <td><?php GetEditor("body",$body,450,"Diy"); ?></td>
  262. </tr>
  263. </table></td>
  264. </tr>
  265. <tr>
  266. <td height="24" bgcolor="#F9FCEF" class="bline2">&nbsp;<strong>高级属性:</strong></td>
  267. </tr>
  268. <tr>
  269. <td height="24" colspan="4" class="bline">
  270. <table width="800" border="0" cellspacing="0" cellpadding="0">
  271. <tr>
  272. <td width="90" height="22" width="240">
  273. &nbsp;评论选项:
  274. </td>
  275. <td width="250"><input type='radio' name='notpost' class='np' value='0'<?php if($arcRow['notpost']==0) echo " checked='1' "; ?>/>
  276. 允许评论
  277. &nbsp;
  278. <input type='radio' name='notpost' class='np' value='1'<?php if($arcRow['notpost']==1) echo " checked='1' "; ?>/>
  279. 禁止评论 </td>
  280. <td width="90">浏览次数:</td>
  281. <td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td>
  282. </tr>
  283. </table>
  284. </tr>
  285. <tr>
  286. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  287. <tr>
  288. <td width="90">&nbsp;文档排序:</td>
  289. <td width="250"><select name="sortup" id="sortup" style="width:150">
  290. <?php
  291. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  292. echo "<option value='0'>正常排序</option>\r\n";
  293. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
  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><input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>">
  303. <input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)"></td>
  304. </tr>
  305. </table></td>
  306. </tr>
  307. <tr>
  308. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  309. <tr>
  310. <td width="90">&nbsp;阅读权限:</td>
  311. <td width="250"><select name="arcrank" id="arcrank" style="width:150">
  312. <option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option>
  313. <?php
  314. $urank = $cuserLogin->getUserRank();
  315. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  316. $dsql->Execute();
  317. while($row = $dsql->GetObject()){
  318. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  319. }
  320. ?>
  321. </select></td>
  322. <td width="90">发布选项:</td>
  323. <td><input name="ishtml" type="radio" class="np" value="1"<?php if($arcRow["ismake"]!=-1) echo " checked";?>>
  324. 生成HTML
  325. <input type="radio" name="ishtml" class="np" value="0"<?php if($arcRow["ismake"]==-1) echo " checked";?>>
  326. 仅动态浏览 </td>
  327. </tr>
  328. </table></td>
  329. </tr>
  330. <tr>
  331. <td height="75" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  332. <tr>
  333. <td width="90">&nbsp;发布时间:</td>
  334. <td width="250"><?php
  335. $nowtime = GetDateTimeMk(time());
  336. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200\">";
  337. ?>
  338. <script language="javascript" type="text/javascript">
  339. var showX = getElementLeft($Obj("pubdate")) - 130;
  340. var showY = (window.navigator.userAgent.indexOf("MSIE") >=1 )? getElementTop($Obj("pubdate")) + 465 : getElementTop($Obj("pubdate")) + 435;
  341. if((window.navigator.userAgent.indexOf("MSIE 7.0") >=1 )) {
  342. showX = getElementLeft($Obj("pubdate"))+105;
  343. showY = getElementTop($Obj("pubdate"))+1000;
  344. }
  345. if(window.navigator.userAgent.indexOf("MSIE 6.0")>=1)
  346. {
  347. Calendar.setup({
  348. inputField : "pubdate",
  349. ifFormat : "%Y-%m-%d %H:%M:%S",
  350. showsTime : true,
  351. timeFormat : "24"
  352. });
  353. } else {
  354. Calendar.setup({
  355. inputField : "pubdate",
  356. ifFormat : "%Y-%m-%d %H:%M:%S",
  357. showsTime : true,
  358. position : [showX, showY],
  359. timeFormat : "24"
  360. });
  361. }
  362. </script> </td>
  363. <td width="92">消费金币:</td>
  364. <td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow["money"]?>" size="10"></td>
  365. </tr>
  366. </table></td>
  367. </tr>
  368. <tr>
  369. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  370. <tr>
  371. <td width="90" height="51">&nbsp;关键字:</td>
  372. <td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>" /></td>
  373. </tr>
  374. </table></td>
  375. </tr>
  376. <tr>
  377. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  378. <tr>
  379. <td width="90" height="51">&nbsp;图集内容摘要:</td>
  380. <td><textarea name="description" rows="3" id="description" style="width:60%"><?php echo $arcRow["description"]?></textarea></td>
  381. </tr>
  382. </table></td>
  383. </tr>
  384. <tr>
  385. <td height="24" colspan="4"><table width="800" border="0" cellspacing="0" cellpadding="0">
  386. <tr>
  387. <td width="90">&nbsp;自定义文件名:</td>
  388. <td width="449"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" />
  389. (不包括后缀名如.html等)</td>
  390. <td width="261">&nbsp;</td>
  391. </tr>
  392. </table></td>
  393. </tr>
  394. </table>
  395. <!-- //高级参数 -->
  396. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #cfcfcf;background:#ffffff;display:none">
  397. <tr>
  398. <td height="24" bgcolor="#F9FCEF" class="bline2">&nbsp;<strong>图集选项:</strong></td>
  399. </tr>
  400. <tr>
  401. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  402. <tr>
  403. <td width="90">&nbsp;表现方式:</td>
  404. <td><input name="pagestyle" class="np" type="radio" id="pagestyle1" onClick="checkMuList()" value="1"<?php if($pagestyle==1) echo " checked='checked'"; ?> />
  405. <img src='images/alb2.gif' alt='单页多图样式' title='单页多图样式' /> &nbsp;&nbsp;
  406. <input name="pagestyle" class="np" type="radio" id="pagestyle2" onClick="checkMuList()" value="2"<?php if($pagestyle==2) echo " checked='checked'"; ?> />
  407. <img src='images/alb1.gif' alt='幻灯片样式' title='幻灯片样式' /> &nbsp;&nbsp;
  408. <input name="pagestyle" class="np" type="radio" id="pagestyle3" onClick="checkMuList()" value="3"<?php if($pagestyle==3) echo " checked='checked'"; ?>/>
  409. <img src='images/alb3.gif' alt='多缩略图样式' title='多缩略图样式' /></td>
  410. </tr>
  411. </table></td>
  412. </tr>
  413. <tr id='cfgmulist' style='<?php if($pagestyle!=3) echo 'display:none'; ?>'>
  414. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  415. <tr>
  416. <td height="26">&nbsp;多列式参数:</td>
  417. <td>行
  418. <input name="row" type="text" id="row" value="<?php echo $irow; ?>" size="6">
  419. <input name="col" type="text" id="col" value="<?php echo $icol; ?>" size="6">
  420. 缩略图宽度限制:
  421. <input name="ddmaxwidth" type="text" id="ddmaxwidth" value="<?php echo $ddmaxwidth; ?>" size="6">
  422. 像素</td>
  423. </tr>
  424. <tr>
  425. <td width="80" height="26">&nbsp;</td>
  426. <td><strong>(系统仅是每页输出&quot;行x列&quot;张图片,实现需自行控制样式表)</strong></td>
  427. </tr>
  428. </table></td>
  429. </tr>
  430. <tr id='spagelist' style='<?php if($pagestyle!=1) echo 'display:none'; ?>'>
  431. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  432. <tr>
  433. <td width="95">&nbsp;每页图片数:</td>
  434. <td><input name='pagepicnum' id='pagpicnum' size='10' value='<?php echo $pagepicnum; ?>' />
  435. 单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图。 </td>
  436. </tr>
  437. </table></td>
  438. </tr>
  439. <tr style='display:none'>
  440. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  441. <tr>
  442. <td width="90">&nbsp;限制宽度:</td>
  443. <td><input name="maxwidth" type="text" id="maxwidth" size="10" value="<?php echo $maxwidth?>">
  444. (防止图片太宽在模板页中溢出) </td>
  445. </tr>
  446. </table></td>
  447. </tr>
  448. <tr>
  449. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  450. <tr>
  451. <td width="90">&nbsp;上传方式:</td>
  452. <td><input name="isrm" class="np" type="hidden" id="isrm" value="1" />
  453. <input name="byhand" class="np" type="checkbox" id="byhand" value="1" disabled="ture" checked />
  454. 手工上传
  455. <input name="formzip" class="np" type="checkbox" id="formzip" value="1" onClick="showZipField(this,'zipff','htmlfield');" />
  456. 从ZIP压缩包中解压图片
  457. <input name="formhtml" class="np" type="checkbox" id="formhtml" value="1" onClick="showHtmlField(this,'htmlfield','zipff');" />
  458. 网上复制图片 </td>
  459. </tr>
  460. </table></td>
  461. </tr>
  462. <tr id="zipff" style="display:none">
  463. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0" height="100">
  464. <tr>
  465. <td width="90">&nbsp;压缩包文件:</td>
  466. <td><input type='text' name='zipfile' id='zipfile' style='width:300px'>
  467. <input name='addon_bt' type='button' class='inputbut' value='浏览...' onClick="SelectSoft('form1.zipfile')">
  468. <input name="delzip" type="checkbox" id="delzip" value="1" checked="checked" />
  469. 处理后删除压缩文件 </td>
  470. </tr>
  471. </table></td>
  472. </tr>
  473. <tr id="htmlfield" style="display:none">
  474. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  475. <tr>
  476. <td width="90">&nbsp;网上复制:</td>
  477. <td> 复制的源网址:
  478. <input name='copysource' type='text' value='http://' style='width:250px'/>
  479. (防盗链网站需填写您复制图片的其中一个网页网址) <br />
  480. 把图片从别的网页复制,在这里用Ctrl+V粘贴,提交后程序可直接获取这个区域的所有图片
  481. <input type="button" name="button" id="button" value="预览" onClick="LoadTestDiv()">
  482. <br />
  483. <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>
  484. </tr>
  485. </table></td>
  486. </tr>
  487. <tr>
  488. <td height="24" bgcolor="#F9FCEF" class="bline2">&nbsp;<b>原有图片:</b></td>
  489. </tr>
  490. <tr>
  491. <td height="24" colspan="4" class="bline"><table width='100%'>
  492. <tr>
  493. <td><div id="thumbnailsEdit">
  494. <?php
  495. $j = 1;
  496. if($imgurls!=""){
  497. $dtp = new DedeTagParse();
  498. $dtp->LoadSource($imgurls);
  499. if(is_array($dtp->CTags))
  500. {
  501. foreach($dtp->CTags as $ctag)
  502. {
  503. if($ctag->GetName()=="img")
  504. {
  505. $bigimg = trim($ctag->GetInnerText());
  506. if($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='')
  507. {
  508. $litimg = $ctag->GetAtt('ddimg');
  509. }
  510. else
  511. {
  512. $litimg = 'swfupload.php?dopost=ddimg&img='.$bigimg;
  513. }
  514. $fhtml = '';
  515. $fhtml .= "<div class='albCt albEdit' id='albold{$j}'>\r\n";
  516. $fhtml .= " <input type='hidden' name='imgurl{$j}' value='{$bigimg}' />\r\n";
  517. $fhtml .= " <input type='hidden' name='imgddurl{$j}' value='{$litimg}' />\r\n";
  518. $fhtml .= " <img src='{$litimg}' width='120' /><a href=\"javascript:delAlbPicOld('$bigimg', $j)\">[删除]</a>\r\n";
  519. $fhtml .= " <div style='margin-top:10px'>注释:<input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' style='width:190px;' /></div>\r\n";
  520. $fhtml .= " <div style='margin-top:10px'>更换:<input type='file' name='imgfile{$j}' size='18' style='width:190px' /></div>\r\n";
  521. $fhtml .= "</div>\r\n";
  522. echo $fhtml;
  523. $j++;
  524. }
  525. }
  526. }
  527. $dtp->Clear();
  528. }
  529. ?>
  530. </div></td>
  531. </tr>
  532. </table></td>
  533. </tr>
  534. <tr>
  535. <td height="24" colspan="4" class="bline" style="background:#F9FCEF;"><table width="800" border="0" cellspacing="0" cellpadding="0">
  536. <tr>
  537. <td width="90">&nbsp;<b>增加新图片:</b></td>
  538. <td><div style="display: inline; border: solid 1px #7FAAFF; background-color: #C5D9FF; padding: 2px;"> <span id="spanButtonPlaceholder"></span> </div></td>
  539. </tr>
  540. </table></td>
  541. </tr>
  542. <tr>
  543. <td colspan="4" style="background:#fff url(images/albviewbg.gif) 0 20px no-repeat;"><table width='100%' height='160' style="margin:0 0 20px 0">
  544. <tr>
  545. <td><div id="divFileProgressContainer" style="height:75px;"></div>
  546. <div id="thumbnails"></div></td>
  547. </tr>
  548. </table></td>
  549. </tr>
  550. </table>
  551. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  552. <tr>
  553. <td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1">
  554. <tr>
  555. <td width="10%">&nbsp;</td>
  556. <td><table width="214" border="0" cellspacing="0" cellpadding="0">
  557. <tr>
  558. <td width="115"><input name="imageField2" type="image" class="np" src="images/button_ok.gif" width="60" height="22" border="0" style="cursor:ponter" /></td>
  559. <td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:ponter" /></td>
  560. </tr>
  561. </table></td>
  562. </tr>
  563. </table></td>
  564. </tr>
  565. </table>
  566. </form>
  567. <script language='javascript'>InitPage();</script>
  568. </body>
  569. </html>