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

150 lines
7.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/user.css">
  12. <script src="<?php echo $cfg_cmsurl;?>/static/web/js/member_album.js"></script>
  13. </head>
  14. <body>
  15. <?php pasterTempletDiy('top.htm');?>
  16. <main class="member">
  17. <div class="pannel">
  18. <div class="container py-3">
  19. <div class="row">
  20. <div class="pannel-main col-md-12">
  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">返回</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 class="text-danger">*</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. <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $abinfo->GetAtt('maxwidth');?>">
  81. <input name="prow" type="hidden" value="<?php echo $abinfo->GetAtt('row');?>">
  82. <input name="pcol" type="hidden" value="<?php echo $abinfo->GetAtt('col');?>">
  83. <input name="ddmaxwidth" type="hidden" value="<?php echo $abinfo->GetAtt('ddmaxwidth');?>">
  84. <div class="form-group">
  85. <label>表现方式:</label>
  86. <label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示(适用于QQ表情等)</label>
  87. <label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> 多页单图显示(幻灯)</label>
  88. <label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> 多行多列显示(缩略图)</label>
  89. <div id="spagelist" style="<?php if ($abinfo->GetAtt('value')!=2) echo 'display:none';?>">每页图片数:<input name="pagpicnum" id="pagpicnum" value="<?php echo $abinfo->GetAtt('pagpicnum');?>"></div>
  90. </div>
  91. <div class="form-group">
  92. <label>手工上传</label>
  93. 图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25">
  94. <button type="button" name="kkkup" id="kkkup2" class="btn btn-success" onclick="MakeUpload(0);">增加</button>(最大60幅)
  95. </div>
  96. <div id="uploadfield"></div>
  97. <?php
  98. $j = 1;
  99. if (is_array($dtp->CTags))
  100. {
  101. foreach($dtp->CTags as $ctag){
  102. if ($ctag->GetName()=="img"){
  103. ?>
  104. <table width="98%" align="center">
  105. <tr>
  106. <td><input type="checkbox" name="isokcheck<?php echo $j;?>" id="isokcheck<?php echo $j;?>" value="1" onclick="CheckSelTable(<?php echo $j;?>)" checked="1"> 显示隐藏图片[<?php echo $j;?>]的选框</td>
  107. </tr>
  108. </table>
  109. <table width="100%" id="seltb<?php echo $j;?>" align="center">
  110. <tr>
  111. <td colspan="2">图片</td>
  112. </tr>
  113. <tr>
  114. <td>本地上传:<input type="text" name="imgfile<?php echo $j;?>" style="width:200px" maxlength="100"></td>
  115. <td rowspan="3" align="center">
  116. <div id="divpicview<?php echo $j;?>" class="divpre"></div>
  117. <img src="<?php echo trim($ctag->GetInnerText());?>" id="picview<?php echo $j;?>" name="picview<?php echo $j;?>" style="width:128px;height:128px">
  118. </td>
  119. </tr>
  120. <input type="hidden" name="imgurl<?php echo $j;?>" value="<?php echo trim($ctag->GetInnerText())?>">
  121. <tr>
  122. <td height="56">简介:<textarea name="imgmsg<?php echo $j;?>" style="height:46px;width:200px"><?php echo trim($ctag->GetAtt('text'))?></textarea></td>
  123. </tr>
  124. </table>
  125. <?php
  126. $j++;
  127. }
  128. }
  129. }
  130. $dtp->Clear();
  131. ?>
  132. </p>
  133. <script>
  134. startNum = "<? php echo $j;?>";
  135. </script>
  136. <div class="text-center">
  137. <button type="submit" class="btn btn-success">提交</button>
  138. <button type="reset" class="btn btn-secondary" onclick="location.reload();">重置</button>
  139. </div>
  140. </div>
  141. </form>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </main>
  148. <?php pasterTempletDiy('foot.htm');?>
  149. </body>
  150. </html>