@@ -0,0 +1,123 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">发布新商品</li>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:94px;background-color:#FF9933" href="{tsUrl('shop','cart')}">购物车</a>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="{tsUrl('shop','myorder')}">我的订单</a>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-8" style="max-width:100%;flex:100%;">
|
||||
|
||||
|
||||
|
||||
<form method="POST" action="{SITE_URL}index.php?app=shop&ac=do" enctype="multipart/form-data">
|
||||
|
||||
<div class="form-group">
|
||||
<label>标题</label>
|
||||
<input name="title" type="text" class="form-control" required="required" value="">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>封面图片:</label>
|
||||
|
||||
<div>
|
||||
<input type="file" name="photo" accept="image/jpeg,image/png"> <span class="fs12 c9">(支持jpg,png格式;大小640*400px)</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>类型</label>
|
||||
|
||||
<select name="type" class="form-control">
|
||||
|
||||
<option value="1">MD5注册</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>公钥</label>
|
||||
<input name="comkey" type="text" class="form-control" value="">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>内容</label>
|
||||
<div id="tseditor"></div>
|
||||
<div style="display: none;">
|
||||
<textarea name="content"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>支付类型</label>
|
||||
|
||||
<select name="pay_type" class="form-control">
|
||||
|
||||
<option value="1">积分</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>价格(积分型只能用整数)</label>
|
||||
<input name="pay" type="text" class="form-control" value="" required="required" oninput = "value=value.replace(/[^\d]/g,'')">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>存货</label>
|
||||
<input name="stock" type="text" class="form-control" value="" required="required" oninput = "value=value.replace(/[^\d]/g,'')">
|
||||
</div>
|
||||
|
||||
{if $TS_SITE['isauthcode']}
|
||||
<div class="form-group">
|
||||
<label>验证码</label>
|
||||
|
||||
<div class="offset-0">
|
||||
<input class="form-control form-control-sm w-auto float-left mr-1" name="authcode" />
|
||||
<img class="mt-1" src="{SITE_URL}index.php?app=pubs&ac=code" onclick="javascript:newgdcode(this,this.src);" title="点击刷新验证码" alt="点击刷新验证码" style="cursor:pointer;"/>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<button class="btn btn-sm btn-info" type="submit">点击发布</button>
|
||||
|
||||
|
||||
|
||||
<p></p>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{php doAction('tseditor')}
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,135 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
|
||||
<li class="breadcrumb-item active" aria-current="page">{$strshop[title]}</li>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:94px;background-color:#FF9933" href="{tsUrl('shop','cart')}">购物车</a>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="{tsUrl('shop','myorder')}">我的订单</a>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="shopping">
|
||||
<form action="{tsUrl('shop','buy')}" method="post">
|
||||
<input name="ts" value="do" hidden></input>
|
||||
<input name="shopid" value="$strshop[shopid]" hidden></input>
|
||||
<table class="table table-hover table-bordered">
|
||||
<thead class="thead-light">
|
||||
<tr><th>商品</th><th>价格</th><th>数量</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<img class="mw100" src="{if $strshop[photo] == ''}{SITE_URL}app/{$app}/skins/{$skin}/photo_album.png{else}{php echo tsXimg($strshop[photo],'shop',50,'50',$strshop[path],1)}{/if}" alt="{$strshop[title]}">
|
||||
<a target="_blank" href="{tsUrl('shop','show',array('id'=>$strshop[shopid]))}">{$strshop[title]}</a>
|
||||
</td>
|
||||
<td> <n id="pay_{$strshop[shopid]}">{$strshop[pay]}</n>{if $strshop[pay_type] == '1'}积分{/if}</td><td>
|
||||
|
||||
<a href="javascript:void('0');" onclick="jian('{$strshop[shopid]}')">-</a> <input id="number_{$strshop[shopid]}" style="width:50px;" name="much" value="{$much}" > <a href="javascript:void('0');" onclick="jia('{$strshop[shopid]}')">+</a>
|
||||
|
||||
</td></tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<div class="shopping_total">应付总额:<h1><n id="needpay_{$strshop[shopid]}">{$strshop[pay]}</n>{if $strshop[pay_type] == '1'}积分{/if}</h1></div>
|
||||
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr bgcolor="#f0f0f0"><th>收货信息</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<h4>地址</h4>
|
||||
<textarea name="address" style="width:100%;height:100px;overflow:scroll;"></textarea>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<div class="text-right"><button class="btn btn-lg btn-danger" type="submit">提交订单</button></div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
function buyadd()
|
||||
{
|
||||
var sl=$('#number_{$strshop[shopid]}').val();
|
||||
var s2=$('#pay_{$strshop[shopid]}').text();
|
||||
s2=parseInt(s2);
|
||||
|
||||
var s3=sl*s2;
|
||||
$('#number_{$strshop[shopid]}').val(sl);
|
||||
$('#needpay_{$strshop[shopid]}').text(s3);
|
||||
}
|
||||
setInterval(buyadd,500);
|
||||
function jia(shopid){
|
||||
var sl=$('#number_'+shopid).val();
|
||||
|
||||
if(sl)
|
||||
{
|
||||
sl=parseInt(sl)+1;
|
||||
$('#number_'+shopid).val(sl);
|
||||
}else
|
||||
{
|
||||
$('#number_'+shopid).val(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function jian(shopid){
|
||||
var sl=$('#number_'+shopid).val();
|
||||
|
||||
if (sl>1){
|
||||
sl=parseInt(sl)-1;
|
||||
$('#number_'+shopid).val(sl);
|
||||
}else
|
||||
{
|
||||
$('#number_'+shopid).val(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,125 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">修改商品信息</li>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:94px;background-color:#FF9933" href="{tsUrl('shop','cart')}">购物车</a>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="{tsUrl('shop','myorder')}">我的订单</a>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-8" style="max-width:100%;flex:100%;">
|
||||
|
||||
|
||||
|
||||
<form method="POST" action="{SITE_URL}index.php?app=shop&ac=editdo" enctype="multipart/form-data">
|
||||
<input name="shopid" value="{$stredit[shopid]}" hidden></input>
|
||||
<div class="form-group">
|
||||
<label>标题</label>
|
||||
<input name="title" type="text" class="form-control" required="required" value="{$stredit[title]}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>封面图片:</label>
|
||||
<div>
|
||||
<a href="/uploadfile/shop/{$stredit[photo]}"><img class="mw100" src="{if $stredit[photo] == ''}{SITE_URL}app/{$app}/skins/{$skin}/photo_album.png{else}{php echo tsXimg($stredit[photo],'shop',320,'320',$stredit[path],1)}{/if}"></img></a>
|
||||
</div>
|
||||
<div>
|
||||
<input type="file" name="photo" accept="image/jpeg,image/png"> <span class="fs12 c9">(支持jpg,png格式;大小640*400px)</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>类型</label>
|
||||
|
||||
<select name="type" class="form-control">
|
||||
|
||||
<option value="1">MD5注册</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>公钥</label>
|
||||
<input name="comkey" type="text" class="form-control" value="{$stredit[note]}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>内容</label>
|
||||
<div id="tseditor">{$stredit[content]}</div>
|
||||
<div style="display: none;">
|
||||
<textarea name="content" >{$stredit[content]}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>支付类型</label>
|
||||
|
||||
<select name="pay_type" class="form-control">
|
||||
|
||||
<option value="1">积分</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>价格(积分型只能用整数)</label>
|
||||
<input name="pay" type="text" class="form-control" value="{$stredit[pay]}" required="required" oninput = "value=value.replace(/[^\d]/g,'')">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>存货</label>
|
||||
<input name="stock" type="text" class="form-control" value="{$stredit[stock]}" required="required" oninput = "value=value.replace(/[^\d]/g,'')">
|
||||
</div>
|
||||
|
||||
{if $TS_SITE['isauthcode']}
|
||||
<div class="form-group">
|
||||
<label>验证码</label>
|
||||
|
||||
<div class="offset-0">
|
||||
<input class="form-control form-control-sm w-auto float-left mr-1" name="authcode" />
|
||||
<img class="mt-1" src="{SITE_URL}index.php?app=pubs&ac=code" onclick="javascript:newgdcode(this,this.src);" title="点击刷新验证码" alt="点击刷新验证码" style="cursor:pointer;"/>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<button class="btn btn-sm btn-info" type="submit">提交修改</button>
|
||||
|
||||
|
||||
|
||||
<p></p>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{php doAction('tseditor')}
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,56 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:170px;background-color:#006600" href="{tsUrl('shop','add')}">添加商品</a>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:94px;background-color:#FF9933" href="{tsUrl('shop','cart')}">购物车</a>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="{tsUrl('shop','myorder')}">我的订单</a>
|
||||
</ol>
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="row">
|
||||
{loop $arrAlbum $key $item}
|
||||
<div class="col-6 col-md-2 mb-3">
|
||||
<a href="{tsUrl('shop','show',array('id'=>$item[shopid]))}">
|
||||
<img class="mw100" src="{if $item[photo] == ''}{SITE_URL}app/{$app}/skins/{$skin}/photo_album.png{else}{php echo tsXimg($item[photo],'shop',320,'320',$item[path],1)}{/if}" alt="{$item[title]}">
|
||||
</a>
|
||||
|
||||
<div class="caption">
|
||||
<div class="title-cut mt-2">{$item[title]}</div>
|
||||
<div class="c9 fs12"> 价格:{$item[pay]} {if $item[pay_type] == '1'}积分{/if}</div>
|
||||
<div class="c9 fs12"> 库存:{$item[stock]} </div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{/loop}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,76 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">我的订单</li>
|
||||
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<a class="btn btn-sm btn-outline-secondary" href="">我买到的</a>
|
||||
<a class="btn btn-sm text-secondary" href="{tsUrl('shop','sellout')}">我卖出的</a>
|
||||
</div>
|
||||
<div class="shopping">
|
||||
|
||||
<table class="table table-hover table-bordered">
|
||||
|
||||
<thead class="thead-light">
|
||||
|
||||
<tr><th>订单ID</th><th>Title</th><th>卖家</th><th>价格</th><th>数量</th><th>总额</th><th>订单状态</th><th>日期</th><th>操作</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{loop $strmyoder $key $item}
|
||||
<tr>
|
||||
<td>
|
||||
{$item[orderid]}
|
||||
</td>
|
||||
<td>
|
||||
{$item[title]}
|
||||
</td>
|
||||
<td>
|
||||
{$item[sellusername]}
|
||||
</td>
|
||||
<td> {$item[pay]}{if $item[pay_type] == '1'}积分{/if}</td>
|
||||
<td>
|
||||
{$item[much]}
|
||||
</td>
|
||||
<td>
|
||||
{$item[needpay]}{if $item[pay_type] == '1'}积分{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $item[state] == '1'}交易完成{/if}
|
||||
</td>
|
||||
<td>
|
||||
{$item[addtime]}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{tsUrl('shop','order',array('id'=>$item[orderid]))}">查看</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/loop}
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,111 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('shop','myorder')}">我的订单</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">订单ID:{$stroder[orderid]}</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">订单ID:{$stroder[orderid]}<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="javascript:history.back(-1);">返回</a></div>
|
||||
<div class="card-body">
|
||||
|
||||
<div class="shopping">
|
||||
|
||||
|
||||
<table class="table table-hover table-bordered">
|
||||
<thead class="thead-light">
|
||||
<tr><th>Title</th><th>价格</th><th>数量</th><th>总额</th><th>订单状态</th><th>买家</th><th>卖家</th><th>日期</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{$stroder[title]}
|
||||
</td>
|
||||
<td> {$stroder[pay]}{if $stroder[pay_type] == '1'}积分{/if}</td>
|
||||
<td>
|
||||
{$stroder[much]}
|
||||
</td>
|
||||
<td>
|
||||
{$needpay}{if $stroder[pay_type] == '1'}积分{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $stroder[state] == '1'}交易完成{/if}
|
||||
</td>
|
||||
<td>
|
||||
{$buyuser[username]}
|
||||
</td>
|
||||
<td>
|
||||
{$selluser[username]}
|
||||
</td>
|
||||
<td>
|
||||
{$stroder[addtime]}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr bgcolor="#f0f0f0"><th>收货信息</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{$stroder[address]}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered">
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr bgcolor="#f0f0f0"><th>反单</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{$stroder[reorder]}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered">
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr bgcolor="#f0f0f0"><th>交易快照</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{$stroder[content]}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,72 @@
|
||||
{php include pubTemplate("header")}
|
||||
|
||||
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">我的订单</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<a class="btn btn-sm text-secondary" href="{tsUrl('shop','myorder')}">我买到的</a>
|
||||
<a class="btn btn-sm btn-outline-secondary" href="">我卖出的</a>
|
||||
</div>
|
||||
<div class="shopping">
|
||||
|
||||
<table class="table table-hover table-bordered">
|
||||
<thead class="thead-light">
|
||||
<tr><th>订单ID</th><th>Title</th><th>买家</th><th>价格</th><th>数量</th><th>总额</th><th>订单状态</th><th>日期</th><th>操作</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{loop $strmyoder $key $item}
|
||||
<tr>
|
||||
<td>
|
||||
{$item[orderid]}
|
||||
</td>
|
||||
<td>
|
||||
{$item[title]}
|
||||
</td>
|
||||
<td>
|
||||
{$item[buyusername]}
|
||||
</td>
|
||||
<td> {$item[pay]}{if $item[pay_type] == '1'}积分{/if}</td>
|
||||
<td>
|
||||
{$item[much]}
|
||||
</td>
|
||||
<td>
|
||||
{$item[needpay]}{if $item[pay_type] == '1'}积分{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $item[state] == '1'}交易完成{/if}
|
||||
</td>
|
||||
<td>
|
||||
{$item[addtime]}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{tsUrl('shop','order',array('id'=>$item[orderid]))}">查看</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/loop}
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,287 @@
|
||||
{php include pubTemplate("header")}
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
|
||||
<li class="breadcrumb-item active" aria-current="page">{$strshop[title]}</li>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:94px;background-color:#FF9933" href="{tsUrl('shop','cart')}">购物车</a>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="{tsUrl('shop','myorder')}">我的订单</a>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-8">
|
||||
|
||||
{if $strshop['tags']}
|
||||
<div class="mb-3 mt-3">
|
||||
{loop $strshop[tags] $key $strshop}
|
||||
<a class="badge badge-secondary fw300 mr-2" href="{tsUrl('shop','tag',array('id'=>$strshop['tagname']))}">{$strshop[tagname]}</a>
|
||||
{/loop}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{/if}
|
||||
|
||||
|
||||
<hr />
|
||||
<form action="{tsUrl('shop','buy')}" method="post">
|
||||
<div class="media mt-3 mb-3">
|
||||
<input name="ts" value="cheack" hidden></input>
|
||||
<input name="shopid" value="{$strshop[shopid]}" hidden></input>
|
||||
<div>
|
||||
<a href="/uploadfile/shop/{$strshop[photo]}"><img class="mw100" src="{if $strshop[photo] == ''}{SITE_URL}app/{$app}/skins/{$skin}/photo_album.png{else}{php echo tsXimg($strshop[photo],'shop',320,'320',$strshop[path],1)}{/if}"></img></a>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div><h1 class="h3 pb-3 fw400">{$strshop[title]}</h1></div>
|
||||
<div class="h5"> 价格:{$strshop[pay]} {if $strshop[pay_type] == '1'}积分{/if}</div>
|
||||
<div class="h5"> 库存:{$strshop[stock]} </div>
|
||||
<div><a href="javascript:void('0');" onclick="jian('{$strshop[shopid]}')">-</a> <input id="number_{$strshop[shopid]}" style="width:50px;" name="much" value="1"> <a href="javascript:void('0');" onclick="jia('{$strshop[shopid]}')">+</a></div><br />
|
||||
{if $strshop[type]==1}<button class="btn btn-sm btn-info position-absolute" style="background-color:#999999" disabled="value">虚拟产品</button>{/if}
|
||||
|
||||
<br /><br />
|
||||
{if $strshop[stock]!=0}
|
||||
<button name="buy" value="1" class="btn btn-sm btn-info position-absolute" style="background-color:#F77F0D" type="submit">购买</button>
|
||||
{else}
|
||||
<button class="btn btn-sm btn-info position-absolute" style="background-color:#999999" disabled="value">库存不足</button>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
|
||||
|
||||
|
||||
<div>{php doAction('group_topic_footer')}</div>
|
||||
|
||||
|
||||
|
||||
<hr />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header">卖家信息</div>
|
||||
<div class="card-body">
|
||||
<div class="facebox">
|
||||
<div class="face">
|
||||
<a href="{tsUrl('user','space',array('id'=>$arrshopuser['userid']))}"><img class="rounded-circle" title="{$arrshopuser[username]}" alt="{$arrshopuser[username]}" src="{$arrshopuser[face]}" width="36" height="36"></a>
|
||||
</div>
|
||||
<div class="info">
|
||||
{$arrshopuser[username]}
|
||||
<div>
|
||||
<a class="fs12 text-info" href="{tsUrl('shop','shop',array('id'=>$arrshopuser['userid']))}"><i class="far fa-user-circle"></i>进入ta的店铺</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<ul class="other">
|
||||
<div class="mt-2 text-right">
|
||||
{if $arrshopuser[userid] != $TS_USER[userid]}
|
||||
{if $arrshopuser[isfollow]}
|
||||
<a class="btn btn-outline-secondary btn-sm" href="javascript:void('0');" onclick="unfollow('{$arrshopuser['userid']}','{$_SESSION['token']}');">取消关注</a>
|
||||
{else}
|
||||
<a class="btn btn-info btn-sm" href="javascript:void('0')" onclick="follow('{$arrshopuser['userid']}','{$_SESSION['token']}');">关注</a>
|
||||
{/if}
|
||||
<a href="{tsUrl('user','message',array(ts=>add,touserid=>$arrshopuser[userid]))}" rel="nofollow" class="btn btn-outline-secondary btn-sm">联系卖家</a>
|
||||
{/if}
|
||||
</div>
|
||||
</ul>
|
||||
<ul class="other"></ul>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-header">商品详细</div>
|
||||
{if $TS_USER[isadmin]==1 || $TS_USER['userid']==$strshop['userid']}
|
||||
<div class="float-right text-right">
|
||||
|
||||
<a class="btn btn-outline-secondary btn-sm" href="{tsUrl('shop','edit',array('shopid'=>$strshop[shopid]))}"><i class="far fa-edit"></i> 修改</a>
|
||||
<a onclick="return confirm('确定删除?')" class="btn btn-outline-secondary btn-sm" href="{SITE_URL}index.php?app=shop&ac=delete&shopid={$strshop[shopid]}&token={$_SESSION['token']}"><i class="far fa-trash-alt"></i> 删除</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="shop_show_content lh30 common-content">
|
||||
|
||||
<!---视频处理开始--->
|
||||
{if $TS_APP['isshopvideo']}
|
||||
|
||||
{if $arrVideo}
|
||||
<div class="shop_video pb-0">
|
||||
{loop $arrVideo $key $strshop}
|
||||
<div>
|
||||
{if $strshop['siteid']==1 || $strshop['siteid']==2 || $strshop['siteid']==3}
|
||||
<iframe frameborder="0" src="{$strshop['iframe']}" allowFullScreen="true"></iframe>
|
||||
{if $TS_USER['userid']==$strshop['userid'] || $TS_USER['isadmin']==1}
|
||||
<div class="text-right mb-2"><a class="btn btn-outline-info btn-sm" onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=shop&ac=delete&ts=video&shopid={$shopid}&videoid={$strshop['videoid']}">删除</a></div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/loop}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $TS_USER['userid']==$strshop['userid'] || $TS_USER['isadmin']==1}
|
||||
<div class="shop_video">
|
||||
<div class="text-center"><a class="btn btn-link" href="{tsUrl('video','upload',array('ts'=>'network','shopid'=>$shopid))}"> <i class="fas fa-plus-circle"></i> 插入视频</a></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{php
|
||||
doAction('gobad','content_top')
|
||||
}
|
||||
{$strshop[content]}
|
||||
|
||||
{$tpUrl}
|
||||
|
||||
<div class="fs12 c9">{php doAction('gobad','468')
|
||||
}</div>
|
||||
<div class="of mt-3">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{if $TS_USER[isadmin]==1 || $TS_USER['userid']==$strshop['userid']}
|
||||
<div class="float-right text-right">
|
||||
|
||||
<a class="btn btn-outline-secondary btn-sm" href="{tsUrl('shop','edit',array('shopid'=>$strshop[shopid]))}"><i class="far fa-edit"></i> 修改</a>
|
||||
<a onclick="return confirm('确定删除?')" class="btn btn-outline-secondary btn-sm" href="{SITE_URL}index.php?app=shop&ac=delete&shopid={$strshop[shopid]}&token={$_SESSION['token']}"><i class="far fa-trash-alt"></i> 删除</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header">买家评论</div>
|
||||
<div class="card-body">
|
||||
|
||||
{if $arrComment}
|
||||
<div class="comment">
|
||||
<ul>
|
||||
{loop $arrComment $key $strshop}
|
||||
<li class="clearfix">
|
||||
<div class="user-face">
|
||||
<a href="{tsUrl('user','space',array('id'=>$strshop[user][userid]))}"><img class="rounded-circle" title="{$strshop[user][username]}" alt="{$strshop[user][username]}" src="{$strshop[user][face]}" width="48" /></a>
|
||||
</div>
|
||||
<div class="reply-doc">
|
||||
<h4>
|
||||
|
||||
<a class="c9" href="{tsUrl('user','space',array('id'=>$strshop[userid]))}">{$strshop[user][username]}</a>
|
||||
</h4>
|
||||
<p>{$strshop[content]}</p>
|
||||
<h4>{php echo date('Y-m-d H:i:s',$strshop[addtime])}</h4>
|
||||
{if $TS_USER[userid] == $strshop[userid] ||
|
||||
$TS_USER['isadmin']==1}
|
||||
<div class="mb-2 text-right">
|
||||
<a class="fs12 text-secondary" href="{SITE_URL}index.php?app=shop&ac=comment&ts=delete&commentid={$strshop['commentid']}"><i class="far fa-trash-alt"></i> 删除</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</li> {/loop}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="page">{$pageUrl}</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<div>
|
||||
{if intval($TS_USER[userid])==0}
|
||||
<div class="pd20 tac">
|
||||
<a href="{tsUrl('user','login')}">登录</a> | <a href="{tsUrl('user','register')}">注册</a>
|
||||
</div>
|
||||
{else}
|
||||
<form method="POST" action="{SITE_URL}index.php?app=shop&ac=comment&ts=do">
|
||||
|
||||
|
||||
<div id="tseditor"></div>
|
||||
|
||||
<div style="display: none"><textarea name="content"></textarea></div>
|
||||
|
||||
|
||||
|
||||
<div class="mt-2 of">
|
||||
|
||||
|
||||
<div class="float-left">
|
||||
{if $TS_SITE['isauthcode']}
|
||||
验证码:<input name="authcode" />
|
||||
<img align="absmiddle" src="{tsUrl('pubs','code')}" onclick="javascript:newgdcode(this,this.src);" title="点击刷新验证码" alt="点击刷新验证码" style="cursor:pointer;"/>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="float-right">
|
||||
<input type="hidden" name="shopid" value="{$strshop[shopid]}" />
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
|
||||
<button class="btn btn-sm btn-info" type="submit">评论</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{php doAction('tseditor','mini')}
|
||||
{php include pubTemplate("footer")}
|
||||
<script>
|
||||
|
||||
function jia(shopid){
|
||||
var sl=$('#number_'+shopid).val();
|
||||
if(sl)
|
||||
{
|
||||
sl=parseInt(sl)+1;
|
||||
$('#number_'+shopid).val(sl);
|
||||
}else
|
||||
{
|
||||
$('#number_'+shopid).val(0);
|
||||
}
|
||||
}
|
||||
|
||||
function jian(shopid){
|
||||
var sl=$('#number_'+shopid).val();
|
||||
if (sl>1){
|
||||
sl=parseInt(sl)-1;
|
||||
$('#number_'+shopid).val(sl);
|
||||
}else
|
||||
{
|
||||
$('#number_'+shopid).val(1);
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user