|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
- <title>修改<?php echo $row['title']?>-会员中心-<?php echo $cfg_webname;?></title>
- <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
- <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="/static/web/css/style.css">
- </head>
- <body class="body-bg">
- <?php obtaintheme('top.htm');?>
- <main class="container py-3">
- <div class="pannel-main-container shadow-sm rounded">
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="/">首页</a></li>
- <li class="breadcrumb-item"><a href="<?php echo $cfg_memberurl;?>/">会员中心</a></li>
- <li class="breadcrumb-item">修改<?php echo $row['title']?></li></li>
- </ol>
- </nav>
- <form name="addcontent" action="<?php echo $cfg_memberurl;?>/album_edit.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
- <input type="hidden" name="dopost" value="save">
- <input type="hidden" name="aid" value="<?php echo $row['id'];?>">
- <input type="hidden" name="idhash" value="<?php echo hash('sha256', $row['id'].$cfg_cookie_encode);?>">
- <input type="hidden" name="channelid" value="<?php echo $row['channel'];?>">
- <input type="hidden" name="oldlitpic" value="<?php echo $row['litpic'];?>">
- <input type="hidden" name="sortrank" value="<?php echo $row['sortrank'];?>">
- <input type="hidden" name="imagebody" id="imagebody">
- <input type="hidden" id="litpic" name="litpic" value="<?php echo $row['litpic'];?>">
- <div class="form-group row">
- <label class="col-sm-2 col-form-label" for="title">标题</label>
- <div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div>
- </div>
- <div class="form-group row">
- <label class="col-sm-2 col-form-label" for="tags">标签</label>
- <div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div>
- </div>
- <div class="form-group row">
- <span class="col-sm-2 col-form-label">缩略图</span>
- <div class="col-sm-10">
- <img id="imgLitpic" src="<?php echo empty($row['litpic'])? $cfg_staticurl.'/web/img/thumbnail.jpg' : $row['litpic'];?>" class="thumbnail-md mr-3">
- <span class="btn btn-success btn-sm" id="btnUploadLitpic">修改缩略图</span>
- <input id="iptLitpic" type="file" name="iptLitpic" class="d-none">
- </div>
- </div>
- <div class="form-group row">
- <label class="col-sm-2 col-form-label" for="writer">作者</label>
- <div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div>
- </div>
- <div class="form-group row">
- <label class="col-sm-2 col-form-label" for="typeid">发布栏目</label>
- <div class="col-sm-10">
- <?php
- $typeOptions = GetOptionList($row["typeid"],$row["channel"]);
- echo "<select name='typeid' id='typeid' class='form-control'>";
- echo $typeOptions;
- echo "</select>";
- ?>
- </div>
- </div>
- <div class="form-group row">
- <label class="col-sm-2 col-form-label" for="description">描述</label>
- <div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div>
- </div>
- <?php PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');?>
- <div class="form-group row">
- <span class="col-sm-2 col-form-label">正文</span>
- <div class="col-sm-10"><?php GetEditor("body",$addRow['body'],400,"Member");?></div>
- </div>
- <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $abinfo->GetAtt('maxwidth');?>">
- <input name="prow" type="hidden" value="<?php echo $abinfo->GetAtt('row');?>">
- <input name="pcol" type="hidden" value="<?php echo $abinfo->GetAtt('col');?>">
- <input name="ddmaxwidth" type="hidden" value="<?php echo $abinfo->GetAtt('ddmaxwidth');?>">
- <div class="form-group">
- <span class="input-text">表现方式:<span>
- <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>
- <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>
- <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>
- <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>
- </div>
- <div class="form-group">
- <span>图片数目:</span>
- <input type="text" name="picnum" value="5" id="picnum" class="form-control w-25 mr-2">
- <button type="button" name="kkkup" id="kkkup2" class="btn btn-success btn-sm" onclick="MakeUpload(0);">添加</button>
- </div>
- <?php
- $j = 1;
- if (is_array($dtp->CTags))
- {
- foreach($dtp->CTags as $ctag){
- if ($ctag->GetName()=="img") {
- ?>
- <div class="mb-3">
- <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>
- </div>
- <div id="seltb<?php echo $j;?>" class="mb-3">
- <div class="mb-3"><img src="<?php echo trim($ctag->GetInnerText());?>" class="thumbnail-md"></div>
- <span>图片<?php echo $j;?>上传:</span>
- <div class="input-group mb-3">
- <input type="text" name="imgfile<?php echo $j;?>" class="form-control" value="<?php echo trim($ctag->GetInnerText());?>" placeholder="请输入网址">
- <div class="input-group-append"><span class="btn btn-success btn-sm btn-send" onclick="SelectImage('addcontent.imgfile<?php echo $j;?>', 'big')">选择</span></div>
- </div>
- <span>图片<?php echo $j;?>简介:</span>
- <textarea name="imgmsg<?php echo $j;?>" class="form-control"><?php echo trim($ctag->GetAtt('text'))?></textarea>
- </div>
- <?php
- $j++;
- }
- }
- }
- $dtp->Clear();
- ?>
- <div id="uploadfield"></div>
- <div class="text-center">
- <button type="submit" class="btn btn-success btn-sm">提交</button>
- <button type="reset" class="btn btn-outline-success btn-sm" onclick="location.reload();">重置</button>
- <a href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=<?php echo $channelid;?>" class="btn btn-outline-success btn-sm">返回</a>
- </div>
- </form>
- </div>
- </main>
- <?php obtaintheme('foot.htm');?>
- <script src="/static/web/js/user.main.js"></script>
- <script src="/static/web/js/user.album.js"></script>
- <script>startNum = <?php echo $j;?>;</script>
- <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?>
- </body>
- </html>
|