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

130 lines
7.5KB

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