国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

122 rindas
7.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/style.css">
  10. </head>
  11. <body>
  12. <?php ThemeInclude('top.htm');?>
  13. <main class="container py-3">
  14. <div class="pannel-main-container shadow-sm rounded">
  15. <form name="addcontent" action="<?php echo $cfg_memberurl;?>/album_edit.php" method="post" enctype="multipart/form-data">
  16. <input type="hidden" name="dopost" value="save">
  17. <input type="hidden" name="aid" value="<?php echo $row['id'];?>">
  18. <input type="hidden" name="idhash" value="<?php echo hash('sha256', $row['id'].$cfg_cookie_encode);?>">
  19. <input type="hidden" name="channelid" value="<?php echo $row['channel'];?>">
  20. <input type="hidden" name="oldlitpic" value="<?php echo $row['litpic'];?>">
  21. <input type="hidden" name="sortrank" value="<?php echo $row['sortrank'];?>">
  22. <input type="hidden" name="imagebody" id="imagebody">
  23. <input type="hidden" id="litpic" name="litpic" value="<?php echo $row['litpic'];?>">
  24. <div class="form-group row">
  25. <label class="col-sm-2 col-form-label" for="title">标题</label>
  26. <div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div>
  27. </div>
  28. <div class="form-group row">
  29. <label class="col-sm-2 col-form-label" for="tags">标签</label>
  30. <div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div>
  31. </div>
  32. <div class="form-group row">
  33. <span class="col-sm-2 col-form-label">缩略图</span>
  34. <div class="col-sm-10">
  35. <img id="imgLitpic" src="<?php echo empty($row['litpic'])? $cfg_staticurl.'/web/img/thumbnail.jpg' : $row['litpic'];?>" class="thumbnail-md mr-3">
  36. <span class="btn btn-success btn-sm" id="btnUploadLitpic">修改缩略图</span>
  37. <input id="iptLitpic" type="file" name="iptLitpic" class="d-none">
  38. </div>
  39. </div>
  40. <div class="form-group row">
  41. <label class="col-sm-2 col-form-label" for="writer">作者</label>
  42. <div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div>
  43. </div>
  44. <div class="form-group row">
  45. <label class="col-sm-2 col-form-label" for="typeid">发布栏目</label>
  46. <div class="col-sm-10">
  47. <?php
  48. $typeOptions = GetOptionList($row["typeid"],$row["channel"]);
  49. echo "<select name='typeid' id='typeid' class='form-control'>";
  50. echo $typeOptions;
  51. echo "</select>";
  52. ?>
  53. </div>
  54. </div>
  55. <div class="form-group row">
  56. <label class="col-sm-2 col-form-label" for="description">描述</label>
  57. <div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div>
  58. </div>
  59. <?php PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');?>
  60. <div class="form-group row">
  61. <span class="col-sm-2 col-form-label">正文</span>
  62. <div class="col-sm-10"><?php GetEditor("body",$addRow['body'],350,"Member");?></div>
  63. </div>
  64. <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $abinfo->GetAtt('maxwidth');?>">
  65. <input name="prow" type="hidden" value="<?php echo $abinfo->GetAtt('row');?>">
  66. <input name="pcol" type="hidden" value="<?php echo $abinfo->GetAtt('col');?>">
  67. <input name="ddmaxwidth" type="hidden" value="<?php echo $abinfo->GetAtt('ddmaxwidth');?>">
  68. <div class="form-group">
  69. <span class="input-text">表现方式:<span>
  70. <label class="input-text mb-0"><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList();" value="1" <?php if ($cfg_album_style==1) echo 'checked';?>> 多页多图显示</label>
  71. <label class="input-text mb-0"><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList();" value="2" <?php if ($cfg_album_style==2) echo 'checked';?>> 多页单图显示</label>
  72. <label class="input-text mb-0"><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList();" value="3" <?php if ($cfg_album_style==3) echo 'checked';?>> 多行多列显示</label>
  73. <label id="spagelist" class="input-text mb-0" style="<?php if ($abinfo->GetAtt('value')!=1) echo 'display:none';?>">每页图片数:<input name="pagpicnum" id="pagpicnum" class="form-control w-25" value="<?php echo $abinfo->GetAtt('pagpicnum');?>"></label>
  74. </div>
  75. <div class="form-group">
  76. <span>图片数目:</span>
  77. <input type="text" name="picnum" value="5" id="picnum" class="form-control w-25 mr-2">
  78. <button type="button" name="kkkup" id="kkkup2" class="btn btn-success btn-sm" onclick="MakeUpload(0);">添加</button>
  79. </div>
  80. <?php
  81. $j = 1;
  82. if (is_array($dtp->CTags))
  83. {
  84. foreach($dtp->CTags as $ctag){
  85. if ($ctag->GetName()=="img") {
  86. ?>
  87. <div class="mb-3">
  88. <label class="mb-0"><input type="checkbox" name="isokcheck<?php echo $j;?>" id="isokcheck<?php echo $j;?>" value="1" onclick="CheckSelTable(<?php echo $j;?>)" checked> 显示图片<?php echo $j;?>上传框</label>
  89. </div>
  90. <div id="seltb<?php echo $j;?>" class="mb-3">
  91. <div class="mb-3"><img src="<?php echo trim($ctag->GetInnerText());?>" class="thumbnail-md"></div>
  92. <span>图片<?php echo $j;?>上传:</span>
  93. <div class="input-group mb-3">
  94. <input type="text" name="imgfile<?php echo $j;?>" class="form-control" value="<?php echo trim($ctag->GetInnerText());?>" placeholder="请输入网址">
  95. <div class="input-group-append"><span class="btn btn-success btn-sm btn-send" onclick="SelectImage('addcontent.imgfile<?php echo $j;?>', 'big')">选择</span></div>
  96. </div>
  97. <span>图片<?php echo $j;?>简介:</span>
  98. <textarea name="imgmsg<?php echo $j;?>" class="form-control"><?php echo trim($ctag->GetAtt('text'))?></textarea>
  99. </div>
  100. <?php
  101. $j++;
  102. }
  103. }
  104. }
  105. $dtp->Clear();
  106. ?>
  107. <div id="uploadfield"></div>
  108. <div class="text-center">
  109. <button type="submit" class="btn btn-success btn-sm">提交</button>
  110. <button type="reset" class="btn btn-outline-success btn-sm" onclick="location.reload();">重置</button>
  111. <a href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=<?php echo $channelid;?>" class="btn btn-outline-success btn-sm">返回</a>
  112. </div>
  113. </form>
  114. </div>
  115. </main>
  116. <?php ThemeInclude('foot.htm');?>
  117. <script src="/static/web/js/user.main.js"></script>
  118. <script src="/static/web/js/user.album.js"></script>
  119. <script>startNum = parseInt('<?php echo $j;?>');</script>
  120. <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?>
  121. </body>
  122. </html>