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

133 lines
7.8KB

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