|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
- <title>购买文档-会员中心-<?php echo $cfg_webname;?></title>
- <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script>
- <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css">
- <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css">
- <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css">
- </head>
- <body class="body-bg">
- <?php pasterTempletDiy('top.htm');?>
- <div class="container py-3">
- <div class="row">
- <?php
- $_menu_order = true;
- $_menu_orderstate = 0;
- ?>
- <?php include(DEDEMEMBER."/templets/menu.htm");?>
- <div class="col-md-9">
- <div class="pannel-main-container shadow-sm rounded">
- <div class="table-responsive">
- <table width="100%" cellpadding="0" cellspacing="0" class="table">
- <thead>
- <tr>
- <th width="6%"></th>
- <th width="10%">id</th>
- <th>标题</th>
- <th width="20%">需要金币</th>
- <th width="20%">消费时间</th>
- </tr>
- </thead>
- <form name="form1" action="mypay.php" method="post">
- <input type="hidden" name="dopost" value="del">
- <tbody>
- {dede:datalist}
- <tr>
- <td align="center"><input type="checkbox" name="deleteid" value="{dede:field.aid/}" /></td>
- <td align="center"><?php echo $fields['aid'];?></td>
- <td>
- <?php
- echo '<a href="../apps/view.php?aid='.str_replace('ARCHIVE', '', $fields['buyid']).'" target="_blank">'.$fields['oldinfo'].'</a>';
- ?>
- </td>
- <td align="center"><?php echo $fields['money'];?></td>
- <td align="center"><?php echo GetDateTimeMk($fields['mtime']);?></td>
- </tr>
- {/dede:datalist}
- <tr>
- <td colspan="6">
- <button type="button" id="checkedClick" class="btn btn-success btn-sm">全选</button>
- <button type="button" onclick="DoSubmit()" class="btn btn-danger btn-sm">删除</button>
- </td>
- </tr>
- </tbody>
- </form>
- </table>
- </div>
- {dede:pagelist listsize='6'/}
- </div>
- </div>
- </div>
- </div>
- <?php pasterTempletDiy('foot.htm');?>
- <script>
- //获得选中文件的文件名
- function GetCheckfolderItem() {
- var allSel = '';
- if (typeof document.form1.deleteid == "undefined") {
- return '';
- }
- if (document.form1.deleteid.value) return document.form1.deleteid.value;
- for (i = 0; i < document.form1.deleteid.length; i++) {
- if (document.form1.deleteid[i].checked) {
- if (allSel == '')
- allSel = document.form1.deleteid[i].value;
- else
- allSel = allSel + "," + document.form1.deleteid[i].value;
- }
- }
- return allSel;
- }
- function DoSubmit() {
- var selid = GetCheckfolderItem();
- if (selid == '') {
- ShowMsg("您没选中任何信息");
- return false;
- }
- DedeConfirm("您确定要删除这些消息吗?").then((v)=>{
- location = "mypay.php?dopost=del&ids=" + selid;
- }).catch((e)=>{
- console.log(e)
- });
- }
- </script>
- </body>
- </html>
|