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

177 lines
10KB

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