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

188 lines
9.2KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
  6. <title>修改图集:<?php echo $row['title']?> - 会员中心 - <?php echo $cfg_webname; ?></title>
  7. <link href="templets/style/base.css" rel="stylesheet" type="text/css" />
  8. <script type="text/javascript" src="../static/js/jquery.js"></script>
  9. <script type="text/javascript" src="templets/js/main.js"></script>
  10. <script type="text/javascript" src="templets/js/album.js"></script>
  11. <script type="text/javascript" src="templets/js/load.js"></script>
  12. <script type="text/javascript" src="templets/js/leftmenu.js"></script>
  13. <script type="text/javascript" src="templets/js/checkSubmit.js"></script>
  14. </head>
  15. <body>
  16. <div id="main">
  17. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  18. <div id="content" class="w960 clearfix">
  19. <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  20. <div id="mcpmain">
  21. <div id="appTab">
  22. <ul>
  23. <li class="thisTab"><a href="#"><span>修改图集</span></a></li>
  24. </ul>
  25. </div>
  26. <form name="addcontent" action="album_edit.php" method="post" enctype="multipart/form-data"
  27. onsubmit="return checkSubmit();">
  28. <input type="hidden" name="dopost" value="save" />
  29. <input type="hidden" name="aid" value="<?php echo $row['id']; ?>" />
  30. <input type="hidden" name="idhash" value="<?php echo hash('sha256', $row['id'].$cfg_cookie_encode); ?>" />
  31. <input type="hidden" name="channelid" value="<?php echo $row['channel']; ?>" />
  32. <input type="hidden" name="oldlitpic" value="<?php echo $row['litpic']; ?>" />
  33. <input type="hidden" name="sortrank" value="<?php echo $row['sortrank']; ?>" />
  34. <input type="hidden" name="imagebody" id="imagebody" value='' />
  35. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>" />
  36. <div id="mainCp">
  37. <h3 class="meTitle"><strong>修改图集</strong></h3>
  38. <div class="postForm">
  39. <p class="cellBg">
  40. <label>图集标题:</label>
  41. <input name="title" type="text" id="title" value="<?php echo $row['title']?>" maxlength="100"
  42. class="intxt" />
  43. </p>
  44. <p>
  45. <label>标签TAG:</label>
  46. <input name="tags" type="text" id="tags" value="<?php echo GetTags($row['id']); ?>" maxlength="100"
  47. class="intxt" />(用逗号分开)
  48. </p>
  49. <p class="cellBg">
  50. <label>作者:</label>
  51. <input type="text" name="writer" id="writer" value="<?php echo $cfg_ml->M_UserName?>" maxlength="100"
  52. class="intxt" style="width:219px" />
  53. </p>
  54. <p>
  55. <label>隶属栏目:</label>
  56. <?php
  57. $typeOptions = GetOptionList($row["typeid"],$row["channel"]);
  58. echo "<select name='typeid' size='1'>\r\n";
  59. echo $typeOptions;
  60. echo "</select>";
  61. ?>
  62. <span style="color:#F00">*</span>(不能选择带颜色的分类)
  63. </p>
  64. <p class="cellBg">
  65. <label>我的分类:</label>
  66. <?php
  67. $typeOptions = classification($cfg_ml->M_ID, $row['mtype'], $channelid);
  68. echo "<select name='mtypesid' size='1'>\r\n";
  69. echo "<option value='0' selected>请选择分类...</option>\r\n";
  70. echo $typeOptions;
  71. echo "</select>";
  72. ?>
  73. </p>
  74. <p>
  75. <label>图集简介:</label>
  76. <textarea name="description" id="description"><?php echo $row["description"]; ?></textarea>(内容的简要说明)
  77. </p>
  78. <?php
  79. //自定义字段
  80. PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');
  81. ?>
  82. </div>
  83. <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $abinfo->GetAtt('maxwidth'); ?>" />
  84. <input name="prow" type="hidden" value="<?php echo $abinfo->GetAtt('row'); ?>" />
  85. <input name="pcol" type="hidden" value="<?php echo $abinfo->GetAtt('col'); ?>" />
  86. <input name="ddmaxwidth" type="hidden" value="<?php echo $abinfo->GetAtt('ddmaxwidth'); ?>" />
  87. <h3 class="meTitle">图集内容</h3>
  88. <div class="contentShow postForm">
  89. <p class="cellBg">
  90. <label>表现方式:</label>
  91. <input name="pagestyle" type="radio" id="pagestyle1" onclick="checkMuList()" value="1"
  92. <?php if($cfg_album_style==1) echo " checked='checked'"; ?> /> 多页多图显示(适用于QQ表情等)
  93. <input name="pagestyle" type="radio" id="pagestyle2" onclick="checkMuList()" value="2"
  94. <?php if($cfg_album_style==2) echo " checked='checked'"; ?> />多页单图显示(幻灯)
  95. <input name="pagestyle" type="radio" id="pagestyle3" onclick="checkMuList()" value="3"
  96. <?php if($cfg_album_style==3) echo " checked='checked'"; ?> />多行多列显示(缩略图)
  97. <label>
  98. <div id="spagelist" style="<?php if($abinfo->GetAtt('value')!=2) echo "display:none"; ?>"> 每页图片数:
  99. </label>
  100. <input name="pagpicnum" id="pagpicnum" value="<?php echo $abinfo->GetAtt('pagpicnum'); ?>"
  101. maxlength="100" class="intxt" style="width:64px" />
  102. </div>
  103. </p>
  104. <p>
  105. <label>手工上传:</label>
  106. <input name="picnum" type="text" id="picnum" size="8" value="3" maxlength="100" class="intxt" />
  107. <button class="buttonGary2" name='kkkup' type='button' id='kkkup2' onclick="MakeUpload(0);">追加</button>
  108. (最大60幅)
  109. </p>
  110. <p>
  111. <div id="uploadfield"></div>
  112. <?php
  113. $j = 1;
  114. if(is_array($dtp->CTags))
  115. {
  116. foreach($dtp->CTags as $ctag){
  117. if($ctag->GetName()=="img"){
  118. ?>
  119. <table width='98%' align="center">
  120. <tr>
  121. <td height="18"><input type='checkbox' name='isokcheck<?php echo $j; ?>' id='isokcheck<?php echo $j; ?>'
  122. value='1' class='np' onclick='CheckSelTable(<?php echo $j; ?>)' checked='1' />
  123. 显示/隐藏图片[<?php echo $j; ?>]的选框 </td>
  124. </tr>
  125. </table>
  126. <table width="98%" border="0" id="seltb<?php echo $j; ?>" style="margin-bottom:6px;" align="center">
  127. <tr bgcolor="#F7F7F7">
  128. <td height="25" colspan="2"> <strong>图片</strong></td>
  129. </tr>
  130. <tr>
  131. <td width="310" height="25"> 本地上传:
  132. <input type="text" name='imgfile<?php echo $j; ?>' style="width:200px;" maxlength="100"
  133. class="intxt" />
  134. </td>
  135. <td width="322" rowspan="3" align="center">
  136. <div id='divpicview<?php echo $j; ?>' class='divpre' style="height:5px"></div>
  137. <img src="<?php echo trim($ctag->GetInnerText()); ?>" id="picview<?php echo $j; ?>"
  138. name="picview<?php echo $j; ?>" style="width: 128px; height: 128px;" />
  139. </td>
  140. </tr>
  141. <input type="hidden" name='imgurl<?php echo $j; ?>' value='<?php echo trim($ctag->GetInnerText())?>' />
  142. <tr>
  143. <td height="56"> 图片简介:
  144. <textarea name='imgmsg<?php echo $j; ?>'
  145. style="height:46px;width:200px"><?php echo trim($ctag->GetAtt('text'))?></textarea></td>
  146. </tr>
  147. </table>
  148. <?php
  149. $j++;
  150. }
  151. }
  152. }
  153. $dtp->Clear();
  154. ?>
  155. <span id='uploadfield'></span>
  156. <script language="JavaScript">
  157. startNum = <? php echo $j; ?>;
  158. </script>
  159. </p>
  160. <?php
  161. //游客强制加验证码,会员则判断后台开关
  162. if(preg_match("/3/",$safe_gdopen)){
  163. ?>
  164. <p class="cellBg">
  165. <label>验证码:</label>
  166. <input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt"
  167. style='width:50px;text-transform:uppercase;' />
  168. <img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer"
  169. onclick="this.src=this.src+'?'" />
  170. </p>
  171. <?php
  172. }
  173. ?>
  174. <p>
  175. <button type="submit" class="button2">提交</button>
  176. <button type="reset" onclick="location.reload();" class="button2 ml10">重置</button>
  177. </p>
  178. </div>
  179. </form>
  180. </div>
  181. </div>
  182. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  183. </div>
  184. </body>
  185. </html>