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

193 lines
10KB

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