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

166 lines
8.7KB

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