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

176 lines
9.1KB

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