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

121 lines
6.7KB

  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. <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 class="body-bg">
  15. <?php pasterTempletDiy('top.htm');?>
  16. <div class="container py-3">
  17. <div class="row">
  18. <div class="col-md-12">
  19. <div class="pannel-main-container shadow-sm rounded">
  20. <nav class="navbar navbar-expand-lg mb-3 p-0">
  21. <ol class="breadcrumb mr-auto">
  22. <li class="breadcrumb-item"><a href="<?php echo $cfg_memberurl;?>/">会员中心</a></li>
  23. <li class="breadcrumb-item">修改<?php echo $row['title']?></li></li>
  24. </ol>
  25. <span class="navbar-text"><a href="javascript:history.back(-1);" class="btn btn-outline-success">返回</a></span>
  26. </nav>
  27. <form name="addcontent" action="album_edit.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
  28. <input type="hidden" name="dopost" value="save">
  29. <input type="hidden" name="aid" value="<?php echo $row['id'];?>">
  30. <input type="hidden" name="idhash" value="<?php echo hash('sha256', $row['id'].$cfg_cookie_encode);?>">
  31. <input type="hidden" name="channelid" value="<?php echo $row['channel'];?>">
  32. <input type="hidden" name="oldlitpic" value="<?php echo $row['litpic'];?>">
  33. <input type="hidden" name="sortrank" value="<?php echo $row['sortrank'];?>">
  34. <input type="hidden" name="imagebody" id="imagebody" value="">
  35. <div class="form-group row">
  36. <label class="col-sm-2 col-form-label">标题</label>
  37. <div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div>
  38. </div>
  39. <div class="form-group row">
  40. <label class="col-sm-2 col-form-label">标签</label>
  41. <div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div>
  42. </div>
  43. <div class="form-group row">
  44. <label class="col-sm-2 col-form-label">作者</label>
  45. <div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div>
  46. </div>
  47. <div class="form-group row">
  48. <label class="col-sm-2 col-form-label">发布栏目</label>
  49. <div class="col-sm-10">
  50. <?php
  51. $typeOptions = GetOptionList($row["typeid"],$row["channel"]);
  52. echo "<select name='typeid' class='form-control'>";
  53. echo $typeOptions;
  54. echo "</select>";
  55. ?>
  56. <span class="text-danger">*</span>(不能选择带颜色的分类)
  57. </div>
  58. </div>
  59. <div class="form-group row">
  60. <label class="col-sm-2 col-form-label">描述</label>
  61. <div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div>
  62. </div>
  63. <?php
  64. //自定义字段
  65. PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');
  66. ?>
  67. <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $abinfo->GetAtt('maxwidth');?>">
  68. <input name="prow" type="hidden" value="<?php echo $abinfo->GetAtt('row');?>">
  69. <input name="pcol" type="hidden" value="<?php echo $abinfo->GetAtt('col');?>">
  70. <input name="ddmaxwidth" type="hidden" value="<?php echo $abinfo->GetAtt('ddmaxwidth');?>">
  71. <div class="form-group">
  72. <label>表现方式:</label>
  73. <label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示(适用于表情等)</label>
  74. <label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> 多页单图显示(幻灯)</label>
  75. <label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> 多行多列显示(缩略图)</label>
  76. <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>
  77. </div>
  78. <div class="form-group">
  79. <label>手工上传</label>
  80. <span>图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25"></span>
  81. <button type="button" name="kkkup" id="kkkup2" class="btn btn-success" onclick="MakeUpload(0);">增加</button>(最大60幅)
  82. </div>
  83. <div id="uploadfield"></div>
  84. <?php
  85. $j = 1;
  86. if (is_array($dtp->CTags))
  87. {
  88. foreach($dtp->CTags as $ctag){
  89. if ($ctag->GetName()=="img"){
  90. ?>
  91. <div><label><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;?>选框</label></div>
  92. <div id="seltb<?php echo $j;?>">
  93. <p>本地上传:<input type="text" name="imgfile<?php echo $j;?>" class="form-control"></p>
  94. <p>
  95. <div id="divpicview<?php echo $j;?>" class="divpre"></div>
  96. <img src="<?php echo trim($ctag->GetInnerText());?>" id="picview<?php echo $j;?>" name="picview<?php echo $j;?>">
  97. </p>
  98. <p>简介:<textarea name="imgmsg<?php echo $j;?>" class="form-control"><?php echo trim($ctag->GetAtt('text'))?></textarea></p>
  99. </div>
  100. <?php
  101. $j++;
  102. }
  103. }
  104. }
  105. $dtp->Clear();
  106. ?>
  107. <script>
  108. startNum = <?php echo $j;?>;
  109. </script>
  110. <div class="text-center">
  111. <button type="submit" class="btn btn-success">提交</button>
  112. <button type="reset" class="btn btn-outline-success" onclick="location.reload();">重置</button>
  113. </div>
  114. </form>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <?php pasterTempletDiy('foot.htm');?>
  120. </body>
  121. </html>