@@ -38,8 +38,8 @@ if($row['isexp']==-1) | |||||
} | } | ||||
$hasMoney = $row['num']; | $hasMoney = $row['num']; | ||||
$dsql->ExecuteNoneQuery("UPDATE #@__moneycard_record SET uid='".$cfg_ml->M_ID."',isexp='-1',utime='".time()."' WHERE cardid='$cardid' "); | |||||
$dsql->ExecuteNoneQuery("UPDATE #@__member SET money=money+$hasMoney WHERE mid='".$cfg_ml->M_ID."'"); | |||||
$dsql->ExecuteNoneQuery("UPDATE `#@__moneycard_record` SET uid='".$cfg_ml->M_ID."',isexp='-1',utime='".time()."' WHERE cardid='$cardid' "); | |||||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET money=money+$hasMoney WHERE mid='".$cfg_ml->M_ID."'"); | |||||
ShowMsg("充值成功,你本次增加的金币为:{$hasMoney} 个!",-1); | ShowMsg("充值成功,你本次增加的金币为:{$hasMoney} 个!",-1); | ||||
exit(); | exit(); |
@@ -1,59 +0,0 @@ | |||||
<?php | |||||
/** | |||||
* @version $Id: edit_space_info.php 1 8:38 2010年7月9日Z tianya $ | |||||
* @package DedeCMS.Member | |||||
* @copyright Copyright (c) 2007 - 2018, DesDev, Inc. | |||||
* @copyright Copyright (c) 2020, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license/v6 | |||||
* @link https://www.dedebiz.com | |||||
*/ | |||||
require_once(dirname(__FILE__)."/config.php"); | |||||
CheckRank(0,0); | |||||
$menutype = 'config'; | |||||
if(!isset($dopost)) $dopost = ''; | |||||
if($dopost=='save') | |||||
{ | |||||
$oldspacelogo=(empty($oldspacelogo))? "" : $oldspacelogo; | |||||
$spacelogo=(empty($spacelogo))? "" : $spacelogo; | |||||
$pagesize=(empty($pagesize))? "" : $pagesize; | |||||
$sign=(empty($sign))? "" : $sign; | |||||
$spacenews =(empty($spacenews))? "" : $spacenews; | |||||
$spacename =(empty($spacename))? "" : $spacename; | |||||
$maxlength = $cfg_max_face * 1024; | |||||
$userdir = $cfg_user_dir.'/'.$cfg_ml->M_ID; | |||||
$spacelogo = HtmlReplace($spacelogo, -1) ; | |||||
$pagesize = intval($pagesize); | |||||
if($pagesize<=0) | |||||
{ | |||||
ShowMsg('每页文档数不能小于0!','edit_space_info.php'); | |||||
exit(); | |||||
} | |||||
$spacename = cn_substrR(HtmlReplace($spacename, 2), 50); | |||||
$sign = cn_substrR(HtmlReplace($sign), 100); | |||||
$spacenews = HtmlReplace($spacenews, -1); | |||||
$query = "UPDATE `#@__member_space` SET `pagesize` = '$pagesize',`spacename`='$spacename' , spacelogo='$spacelogo', `sign` = '$sign' ,`spacenews`='$spacenews' WHERE mid='{$cfg_ml->M_ID}' "; | |||||
$dsql->ExecuteNoneQuery($query); | |||||
if($cfg_ml->M_Spacesta >= 0) | |||||
{ | |||||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET spacesta=1 WHERE mid='{$cfg_ml->M_ID}' And spacesta < 1 "); | |||||
} | |||||
ShowMsg('成功更新空间信息!','edit_space_info.php'); | |||||
exit(); | |||||
} else { | |||||
$row = $dsql->GetOne("SELECT * FROM `#@__member_space` WHERE mid='".$cfg_ml->M_ID."'"); | |||||
if(!is_array($row)) | |||||
{ | |||||
$inquery = "INSERT INTO `#@__member_space`(`mid` ,`pagesize` ,`matt` ,`spacename` ,`spacelogo` , `sign` ,`spacenews`) | |||||
Values('{$cfg_ml->M_ID}', '10', '0', '{$cfg_ml->M_UserName}的空间', '', '', ''); "; | |||||
$row['spacename'] = ''; | |||||
$row['sign'] = ''; | |||||
$row['pagesize'] = 10; | |||||
$row['spacestyle'] = 'person'; | |||||
$row['spacenews'] = ''; | |||||
} | |||||
extract($row); | |||||
include(dirname(__FILE__)."/templets/edit_space_info.htm"); | |||||
exit(); | |||||
} |
@@ -25,10 +25,7 @@ | |||||
<body> | <body> | ||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="row"> | <div class="row"> | ||||
@@ -27,8 +27,6 @@ | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="row"> | <div class="row"> | ||||
@@ -16,8 +16,6 @@ | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="row"> | <div class="row"> | ||||
@@ -16,7 +16,6 @@ | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
@@ -1,78 +0,0 @@ | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||||
<head> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | |||||
<title>空间设置 - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
<link href="templets/style/base.css" rel="stylesheet" type="text/css" /> | |||||
<script type="text/javascript" src="../static/js/jquery.js"></script> | |||||
<script type="text/javascript" src='templets/js/main.js'></script> | |||||
<script type="text/javascript" src="templets/js/load.js"></script> | |||||
<script type="text/javascript" src="templets/js/leftmenu.js"></script> | |||||
</head> | |||||
<body> | |||||
<div id="main"> | |||||
<?php include(DEDEMEMBER."/templets/head.htm"); ?> | |||||
<div id="content" class="w960 clearfix"> | |||||
<?php include(DEDEMEMBER."/templets/menu.php"); ?> | |||||
<div id="mcpmain"> | |||||
<div id="appTab"> | |||||
<ul> | |||||
<li><a href="mtypes.php">分类管理</a></li> | |||||
<li><a href="flink_main.php">书签管理</a></li> | |||||
<li class="thisTab"><a href="edit_space_info.php"><span>空间设置</span></a></li> | |||||
<li><a href="spaceskin.php">风格选择</a></li> | |||||
</ul> | |||||
</div> | |||||
<form action="edit_space_info.php" method="post" enctype="multipart/form-data" name="form1"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<div id="mainCp"> | |||||
<h3 class="meTitle"><strong>空间设置</strong></h3> | |||||
<div class="postForm"> | |||||
<p class="cellBg"> | |||||
<label>空间名称:</label> | |||||
<input name="spacename" type="text" id="spacename" value="<?php echo $spacename; ?>" maxlength="100" | |||||
class="intxt" /> | |||||
</p> | |||||
<p> | |||||
<label>每页文档数:</label> | |||||
<input name="pagesize" type="text" id="pagesize" value="<?php echo $pagesize; ?>" maxlength="100" | |||||
class="intxt" /> | |||||
</p> | |||||
<p class="cellBg"> | |||||
<label>个人签名:</label> | |||||
<textarea name="sign" cols="50" id="sign"><?php echo $sign; ?></textarea> 少于50中文字 | |||||
</p> | |||||
<p> | |||||
<label style="width:90px">远程Logo地址:</label> | |||||
<input name="spacelogo" type="text" id="spacelogo" maxlength="100" class="intxt" /> | |||||
</p> | |||||
<p class="cellBg" style="height:60px; margin-top:5px"> | |||||
<label>原有Logo:</label> | |||||
<?php | |||||
if($spacelogo!='') $logo = $spacelogo; | |||||
else $logo = 'templets/images/mylogo.jpg'; | |||||
echo "<img src='$logo' style='margin-top:5px;width:200px;height: 50px;'/> (规格为:200x50像素)\r\n"; | |||||
?> | |||||
</p> | |||||
<p> | |||||
<label>空间公告:</label> | |||||
<?php GetEditor("spacenews",$spacenews,250,"MemberLit"); ?> | |||||
</p> | |||||
<p class="cellBg"> | |||||
<button class="button2" type="submit">更新</button> | |||||
<button class="button2 ml10" type="reset">重设</button> | |||||
</p> | |||||
</div> | |||||
</div> | |||||
</form> | |||||
<!--主操作区域 --> | |||||
</div> | |||||
</div> | |||||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||||
</div> | |||||
</body> | |||||
</html> |
@@ -10,115 +10,137 @@ | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css"> | <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css"> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/member.css"> | <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/member.css"> | ||||
<title>会员中心 -<?php echo $cfg_webname; ?></title> | <title>会员中心 -<?php echo $cfg_webname; ?></title> | ||||
<style> | |||||
.member a.btn { | |||||
color: white; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="row"> | <div class="row"> | ||||
<?php | |||||
$_menu_home = true; // 展开编辑信息 | |||||
?> | |||||
<?php include(DEDEMEMBER."/templets/menu.htm"); ?> | <?php include(DEDEMEMBER."/templets/menu.htm"); ?> | ||||
<div class="pannel-main col-md-9 mt-3 mb-3"> | <div class="pannel-main col-md-9 mt-3 mb-3"> | ||||
<div class="pannel-main-container"> | <div class="pannel-main-container"> | ||||
<ul class="nav nav-tabs"> | |||||
<li class="nav-item"> | |||||
<a class="nav-link active" href="#">文章</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link" href="#">图集</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link" href="#">软件</a> | |||||
</li> | |||||
</ul> | |||||
<ul class="nav mt-2"> | |||||
<li class="nav-item"> | |||||
<a class="nav-link active" href="#">全部</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link" href="#">已审核</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link" href="#">未审核</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link" href="#">被退回</a> | |||||
</li> | |||||
</ul> | |||||
<div class="table-responsive"> | |||||
<table class="table"> | |||||
<thead> | |||||
<tr> | |||||
<th scope="col">文章标题</th> | |||||
<th scope="col">类目</th> | |||||
<th scope="col">状态</th> | |||||
<th scope="col">点击</th> | |||||
<th scope="col">发布时间</th> | |||||
<th scope="col">操作</th> | |||||
</tr> | |||||
</thead> | |||||
<tbody> | |||||
<tr> | |||||
<th scope="row">1</th> | |||||
<td>Mark</td> | |||||
<td>Otto</td> | |||||
<td>@mdo</td> | |||||
<td>@mdo</td> | |||||
<td>@mdo</td> | |||||
</tr> | |||||
<tr> | |||||
<th scope="row">2</th> | |||||
<td>Jacob</td> | |||||
<td>Thornton</td> | |||||
<td>@fat</td> | |||||
<td>@fat</td> | |||||
<td>@fat</td> | |||||
</tr> | |||||
<tr> | |||||
<th scope="row">3</th> | |||||
<td>Larry</td> | |||||
<td>the Bird</td> | |||||
<td>@twitter</td> | |||||
<td>@twitter</td> | |||||
<td>@twitter</td> | |||||
</tr> | |||||
</tbody> | |||||
</table> | |||||
<div class="media-body row"> | |||||
<div class="col-12 col-md-3 text-center"> | |||||
<a href="<?php echo $cfg_memberurl;?>/"><img class="member-logo" src="<?php echo $cfg_ml->fields['face']; ?>" class="mr-3" | |||||
alt="<?php echo $cfg_ml->M_MbType; ?>的头像"></a> | |||||
<div class="member-type"><span class="badge badge-success"><?php echo $cfg_ml->M_MbType; ?>用户</span> | |||||
</div> | |||||
</div> | |||||
<div class="col-12 col-md-9 title"> | |||||
<h3 class="mt-0 mb-3"><?php echo $cfg_ml->M_LoginID; ?></h3> | |||||
<p>积分:<span class="text-danger"><?php echo $cfg_ml->M_Scores;?></span> 金币:<span | |||||
class="text-danger"><?php echo $cfg_ml->M_Money;?></span> <a | |||||
href="<?php echo $cfg_memberurl;?>/buy.php" class="btn btn-danger btn-sm">充值</a></p> | |||||
</div> | |||||
</div> | </div> | ||||
<nav> | |||||
<ul class="pagination justify-content-center"> | |||||
<li class="page-item disabled"> | |||||
<span class="page-link">上一页</span> | |||||
</div> | |||||
<div class="pannel-main-container mt-3"> | |||||
<div class="media-body py-3"> | |||||
<ul class="row row-cols-3 row-cols-sm-4 row-cols-lg-6 row-cols-xl-8 list-unstyled list"> | |||||
<li class="col" data-tags="alarm clock"> | |||||
<a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=1"> | |||||
<div class="p-3 py-4 mb-2 bg-light text-center rounded"> | |||||
<i class="fa fa-list" aria-hidden="true" style="font-size: 2em;"></i> | |||||
</div> | |||||
<div class="name text-muted text-decoration-none text-center pt-1"> | |||||
内容管理 | |||||
</div> | |||||
</a> | |||||
</li> | </li> | ||||
<li class="page-item"><a class="page-link" href="#">1</a></li> | |||||
<li class="page-item active"> | |||||
<span class="page-link"> | |||||
2 | |||||
</span> | |||||
<li class="col" data-tags="alarm clock"> | |||||
<a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/pm.php?folder=inbox"> | |||||
<div class="p-3 py-4 mb-2 bg-light text-center rounded"> | |||||
<i class="fa fa-commenting-o" aria-hidden="true" style="font-size: 2em;"></i> | |||||
</div> | |||||
<div class="name text-muted text-decoration-none text-center pt-1"> | |||||
消息管理 | |||||
</div> | |||||
</a> | |||||
</li> | </li> | ||||
<li class="page-item"><a class="page-link" href="#">3</a></li> | |||||
<li class="page-item"> | |||||
<a class="page-link" href="#">下一页</a> | |||||
<li class="col" data-tags="alarm clock"> | |||||
<a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/buy.php"> | |||||
<div class="p-3 py-4 mb-2 bg-light text-center rounded"> | |||||
<i class="fa fa-credit-card-alt" aria-hidden="true" style="font-size: 2em;"></i> | |||||
</div> | |||||
<div class="name text-muted text-decoration-none text-center pt-1"> | |||||
钱包积分 | |||||
</div> | |||||
</a> | |||||
</li> | </li> | ||||
<li class="page-item"> | |||||
<a class="page-link" href="#">尾页</a> | |||||
<li class="col" data-tags="space align distribute"> | |||||
<a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/shops_orders.php"> | |||||
<div class="p-3 py-4 mb-2 bg-light text-center rounded"> | |||||
<i class="fa fa-shopping-cart" aria-hidden="true" style="font-size: 2em;"></i> | |||||
</div> | |||||
<div class="name text-muted text-decoration-none text-center pt-1"> | |||||
订单管理 | |||||
</div> | |||||
</a> | |||||
</li> | |||||
<li class="col" data-tags="space align distribute"> | |||||
<a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/mystow.php"> | |||||
<div class="p-3 py-4 mb-2 bg-light text-center rounded"> | |||||
<i class="fa fa-star" aria-hidden="true" style="font-size: 2em;"></i> | |||||
</div> | |||||
<div class="name text-muted text-decoration-none text-center pt-1"> | |||||
我的收藏 | |||||
</div> | |||||
</a> | |||||
</li> | |||||
<li class="col" data-tags="space align distribute"> | |||||
<a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/edit_baseinfo.php"> | |||||
<div class="p-3 py-4 mb-2 bg-light text-center rounded"> | |||||
<i class="fa fa-cog" aria-hidden="true" style="font-size: 2em;"></i> | |||||
</div> | |||||
<div class="name text-muted text-decoration-none text-center pt-1"> | |||||
账号安全 | |||||
</div> | |||||
</a> | |||||
</li> | </li> | ||||
</ul> | </ul> | ||||
</nav> | |||||
</div> | |||||
</div> | |||||
<div class="pannel-main-container mt-3"> | |||||
<div class="media-body row"> | |||||
<div class="col-12 py-3"> | |||||
<h5>最新内容</h5> | |||||
<div class="card ddcard"> | |||||
<ul class="list-group list-group-flush"> | |||||
<?php | |||||
foreach ($archives as $archive) | |||||
{ | |||||
?> | |||||
<li><a href="<?php echo $archive['htmlurl']; ?>" | |||||
title="<?php echo $archive['title']; ?>"><?php echo $archive['title']; ?></a></li> | |||||
<?php | |||||
} | |||||
?> | |||||
</ul> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
<?php include(DEDEMEMBER."/templets/footer.htm"); ?> | <?php include(DEDEMEMBER."/templets/footer.htm"); ?> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,6 +1,9 @@ | |||||
<div class="container"> | <div class="container"> | ||||
<div class="text-center member-info"> | <div class="text-center member-info"> | ||||
<img class="member-logo" src="<?php echo $cfg_ml->fields['face']; ?>" alt="<?php echo $cfg_ml->M_MbType; ?>的头像"> | |||||
<a href="<?php echo $cfg_memberurl;?>/"> | |||||
<img class="member-logo" src="<?php echo $cfg_ml->fields['face']; ?>" alt="<?php echo $cfg_ml->M_MbType; ?>的头像"> | |||||
</a> | |||||
<div class="member-type"><span class="badge badge-success"><?php echo $cfg_ml->M_MbType; ?>用户</span></div> | <div class="member-type"><span class="badge badge-success"><?php echo $cfg_ml->M_MbType; ?>用户</span></div> | ||||
<div> | <div> | ||||
<h4><?php echo $cfg_ml->M_LoginID; ?></h4> | <h4><?php echo $cfg_ml->M_LoginID; ?></h4> | ||||
@@ -8,6 +8,9 @@ while ($channel = $dsql->GetArray('addmod')) { | |||||
?> | ?> | ||||
<div class="member-menu col-md-3"> | <div class="member-menu col-md-3"> | ||||
<ul class="list-group list-group-flush mt-3 mb-3"> | <ul class="list-group list-group-flush mt-3 mb-3"> | ||||
<li class="list-group-item justify-content-between align-items-center<?php echo (isset($_menu_home) && $_menu_home===true)? ' active' : '';?>"> | |||||
<a href="<?php echo $cfg_memberurl;?>/">会员中心</a> | |||||
</li> | |||||
<li class="list-group-item justify-content-between align-items-center"> | <li class="list-group-item justify-content-between align-items-center"> | ||||
<div data-toggle="collapse" data-target="#collapseArchives">我的内容 <span class="dropdown"></span> | <div data-toggle="collapse" data-target="#collapseArchives">我的内容 <span class="dropdown"></span> | ||||
</div> | </div> | ||||
@@ -18,8 +18,6 @@ | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="row"> | <div class="row"> | ||||
@@ -16,7 +16,6 @@ | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
@@ -18,7 +18,6 @@ | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
@@ -55,7 +54,9 @@ | |||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
<tr> | <tr> | ||||
<td colspan="6"><button id="checkedClick" type="button" class="greenBtn1">全选</button><button type="button" onclick="DoSubmit()" class="greenBtn3">删除选中</button></td></tr> | |||||
<td colspan="6"> | |||||
<button id="checkedClick" type="button" class="btn btn-success btn-sm">全选</button> | |||||
<button type="button" onclick="DoSubmit()" class="btn btn-success btn-sm">删除选中</button></td></tr> | |||||
</form> | </form> | ||||
</tbody> | </tbody> | ||||
</table> | </table> | ||||
@@ -36,7 +36,6 @@ | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
@@ -19,7 +19,6 @@ | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
<main class="member"> | <main class="member"> | ||||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||||
<div class="container-fluid pannel"> | <div class="container-fluid pannel"> | ||||
<div class="container"> | <div class="container"> | ||||
@@ -33,8 +32,16 @@ | |||||
<div class="pannel-main-container"> | <div class="pannel-main-container"> | ||||
<div id="mainCp"> | <div id="mainCp"> | ||||
<!--内容消息提示 --> | <!--内容消息提示 --> | ||||
<h5 class="meTitle">商品订单</h5> | |||||
<div class="postForm" style="padding-bottom: 0px;"> | |||||
<ul class="nav nav-tabs"> | |||||
<li class="nav-item"> | |||||
<a class="nav-link active" href="shops_orders.php">商品订单</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link" href="shops_products.php">已购商品</a> | |||||
</li> | |||||
</ul> | |||||
<div class="postForm mt-3" style="padding-bottom: 0px;"> | |||||
<form name="form3" action="shops_products.php" method="get"> | <form name="form3" action="shops_products.php" method="get"> | ||||
<div class="input-group" style="margin-top:3px; padding-left: 130px;"> 订单号: | <div class="input-group" style="margin-top:3px; padding-left: 130px;"> 订单号: | ||||
<input class="form-control" type='text' name='oid' size="40" value='' /> | <input class="form-control" type='text' name='oid' size="40" value='' /> | ||||
@@ -72,12 +79,10 @@ | |||||
<td colspan="6"><button id="checkedClick" type="button" class="btn btn-success btn-sm">全选</button> | <td colspan="6"><button id="checkedClick" type="button" class="btn btn-success btn-sm">全选</button> | ||||
<button type="button" onclick="DoSubmit()" class="btn btn-success btn-sm">删除选中</button></td></tr></tbody> | <button type="button" onclick="DoSubmit()" class="btn btn-success btn-sm">删除选中</button></td></tr></tbody> | ||||
</form> | </form> | ||||
<tfoot> | |||||
<tr> | |||||
<td colspan="6"><div class="pageList">{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}</td> | |||||
</tr> | |||||
</tfoot> | |||||
</table> | </table> | ||||
<nav> | |||||
{dede:pagelist listsize=5 /} | |||||
</nav> | |||||
</div> | </div> | ||||
<!--主操作区域 --> | <!--主操作区域 --> | ||||
</div> | </div> | ||||
@@ -1,14 +1,148 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||||
<!doctype html> | |||||
<html lang="zh-CN"> | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | |||||
<title>我购买的商品 - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
<link href="templets/style/base.css" rel="stylesheet" type="text/css" /> | |||||
<script type="text/javascript" src="../static/js/jquery.js"></script> | |||||
<script type="text/javascript" src="templets/js/load.js"></script> | |||||
<script type="text/javascript" src="templets/js/leftmenu.js"></script> | |||||
<script type="text/javascript" src="templets/js/table_function.js"></script> | |||||
<script type="text/javascript"> | |||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/member.css"> | |||||
<title>我购买的商品 - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
</head> | |||||
<body> | |||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | |||||
<main class="member"> | |||||
<div class="container-fluid pannel"> | |||||
<div class="container"> | |||||
<div class="row"> | |||||
<?php | |||||
$_menu_order = true; // 展开编辑信息 | |||||
$_menu_orderstate = 1; | |||||
?> | |||||
<?php include(DEDEMEMBER."/templets/menu.htm"); ?> | |||||
<div class="pannel-main col-md-9 mt-3 mb-3"> | |||||
<div class="pannel-main-container"> | |||||
<div id="mainCp"> | |||||
<ul class="nav nav-tabs"> | |||||
<li class="nav-item"> | |||||
<a class="nav-link" href="shops_orders.php">商品订单</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link active" href="shops_products.php">已购商品</a> | |||||
</li> | |||||
</ul> | |||||
<?php if(!empty($oid)){ ?> | |||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table"> | |||||
<thead> | |||||
<tr> | |||||
<th colspan="2" ><strong>订单信息</strong></th> | |||||
</tr> | |||||
</thead> | |||||
<tbody> | |||||
<tr> | |||||
<td width="15%" align="right" valign="top">订单号:</td> | |||||
<td><strong><?php echo $oid?></strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">支付方式:</td> | |||||
<td><?php echo GetSta($row['state'],$oid)?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">单价(元/单位):</td> | |||||
<td><?php echo $row['uprice']?>元</td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">数量:</td> | |||||
<td><?php echo $row['cartcount']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">配送:</td> | |||||
<td><?echo $row['dname'];?> 费用:<?php echo $row['dprice']?>元</td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">总计:</td> | |||||
<td><?php echo $row['priceCount']?>元</td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">发生时间:</td> | |||||
<td><?php echo GetDateTimeMk($row['stime'])?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">收货人:</td> | |||||
<td><?php echo $row['consignee']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">地址:</td> | |||||
<td><?php echo $row['address']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">邮编:</td> | |||||
<td><?php echo $row['zip']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">联系电话:</td> | |||||
<td><?php echo $row['tel']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">邮箱:</td> | |||||
<td><?php echo $row['email']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">留言:</td> | |||||
<td><?php echo $row['des']?></td> | |||||
</tr> | |||||
</tbody> | |||||
</table> | |||||
<?php }?> | |||||
<table cellspacing="1" class="table"> | |||||
<thead> | |||||
<tr> | |||||
<th colspan="2" width="22%">订单号</th> | |||||
<th>名称</th> | |||||
<th width="10%"><span style="float:right;width: 75px;">单价(元/单位)</span></th> | |||||
<th width="8%" align="center">数量</th> | |||||
<th width="20%" align="center">购买时间</th> | |||||
</tr> | |||||
</thead> | |||||
<form name='form1' action="shops_products.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.oid/}"/></td> | |||||
<td align="center"><a href="shops_products.php?do=show&oid={dede:field.oid/}">{dede:field.oid/}</a></td> | |||||
<td align="center"><a href="<?php echo $cfg_cmspath;?>/plus/view.php?aid={dede:field.aid/}" target="_blank">{dede:field.title/}</a></td> | |||||
<td align="center"><strong>{dede:field.price/}</strong></td> | |||||
<td align="center">{dede:field.buynum/}</td> | |||||
<td align="center">{dede:field.oid function="carTime(@me)"/}</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr> | |||||
<td colspan="6"> | |||||
<button id="checkedClick" type="button" class="btn btn-success btn-sm">全选</button> | |||||
<button type="button" onclick="DoSubmit()" class="btn btn-success btn-sm">删除选中</button></td></tr></tbody> | |||||
</form> | |||||
</table> | |||||
<nav> | |||||
{dede:pagelist listsize=5 /} | |||||
</nav> | |||||
</div> | |||||
<!--主操作区域 --> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</main> | |||||
<?php include(DEDEMEMBER."/templets/footer.htm"); ?> | |||||
<script type="text/javascript"> | |||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function GetCheckfolderItem() | function GetCheckfolderItem() | ||||
{ | { | ||||
@@ -39,125 +173,7 @@ | |||||
location = "shops_products.php?dopost=del&ids="+selid; | location = "shops_products.php?dopost=del&ids="+selid; | ||||
} | } | ||||
} | } | ||||
</script> | |||||
</head> | |||||
<body> | |||||
<div id="main"> | |||||
<?php include(DEDEMEMBER."/templets/head.htm"); ?> | |||||
<div id="content" class="w960 clearfix"> | |||||
<?php include(DEDEMEMBER."/templets/menu.php"); ?> | |||||
<div id="mcpmain"> | |||||
<div id="appTab"> | |||||
<ul> | |||||
<li><a href="buy.php">会员升级/点卡充值</a></li> | |||||
<li><a href="operation.php">点卡/会员定单</a></li> | |||||
<li><a href="mypay.php" id="buy">我购买的文章</a></li> | |||||
<li><a href="shops_orders.php">商品定单</a></li> | |||||
<li class="thisTab"><a href="shops_products.php" id="buy">我购买的商品</a></li> | |||||
</ul> | |||||
</div> | |||||
<div id="mainCp"> | |||||
<h3 class="meTitle">购买的商品</h3> | |||||
<?php if(!empty($oid)){ ?> | |||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||||
<thead> | |||||
<tr> | |||||
<th colspan="2" ><strong>订单信息</strong></th> | |||||
</tr> | |||||
</thead> | |||||
<tbody> | |||||
<tr> | |||||
<td width="15%" align="right" valign="top">订单号:</td> | |||||
<td><strong><?php echo $oid?></strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">支付方式:</td> | |||||
<td><?php echo GetSta($row['state'],$oid)?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">单价(元/单位):</td> | |||||
<td><?php echo $row['uprice']?>元</td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">数量:</td> | |||||
<td><?php echo $row['cartcount']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">配送:</td> | |||||
<td><?echo $row['dname'];?> 费用:<?php echo $row['dprice']?>元</td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">总计:</td> | |||||
<td><?php echo $row['priceCount']?>元</td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">发生时间:</td> | |||||
<td><?php echo GetDateTimeMk($row['stime'])?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">收货人:</td> | |||||
<td><?php echo $row['consignee']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">地址:</td> | |||||
<td><?php echo $row['address']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">邮编:</td> | |||||
<td><?php echo $row['zip']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">联系电话:</td> | |||||
<td><?php echo $row['tel']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">邮箱:</td> | |||||
<td><?php echo $row['email']?></td> | |||||
</tr> | |||||
<tr> | |||||
<td align="right" valign="top">留言:</td> | |||||
<td><?php echo $row['des']?></td> | |||||
</tr> | |||||
</tbody> | |||||
</table> | |||||
<?php }?> | |||||
<table cellspacing="1" class="list mT10"> | |||||
<thead> | |||||
<tr> | |||||
<th colspan="2" width="22%">订单号</th> | |||||
<th>名称</th> | |||||
<th width="10%"><span style="float:right;width: 75px;">单价(元/单位)</span></th> | |||||
<th width="8%" align="center">数量</th> | |||||
<th width="20%" align="center">购买时间</th> | |||||
</tr> | |||||
</thead> | |||||
<form name='form1' action="shops_products.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.oid/}"/></td> | |||||
<td align="center"><a href="shops_products.php?do=show&oid={dede:field.oid/}">{dede:field.oid/}</a></td> | |||||
<td align="center"><a href="<?php echo $cfg_cmspath;?>/plus/view.php?aid={dede:field.aid/}" target="_blank">{dede:field.title/}</a></td> | |||||
<td align="center"><strong>{dede:field.price/}</strong></td> | |||||
<td align="center">{dede:field.buynum/}</td> | |||||
<td align="center">{dede:field.oid function="carTime(@me)"/}</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr> | |||||
<td colspan="6"><button id="checkedClick" type="button" class="greenBtn1">全选</button><button type="button" onclick="DoSubmit()" class="greenBtn3">删除选中</button></td></tr></tbody> | |||||
</form> | |||||
<tfoot> | |||||
<tr> | |||||
<td colspan="7"><div class="pageList">{dede:pagelist listsize=5/}</div></td> | |||||
</tr> | |||||
</tfoot> | |||||
</table> | |||||
</div> | |||||
<!--主操作区域 --> | |||||
</div> | |||||
</div> | |||||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||||
</div> | |||||
</script> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |