Browse Source

错误点卡文字换积分

tags/6.2.5
叙述、别离 1 year ago
parent
commit
1c0ed6699f
11 changed files with 36 additions and 36 deletions
  1. +4
    -4
      src/admin/cards_make.php
  2. +1
    -1
      src/admin/cards_manage.php
  3. +2
    -2
      src/admin/cards_type.php
  4. +5
    -5
      src/admin/inc/inc_action_info.php
  5. +2
    -2
      src/admin/inc/inc_menu.php
  6. +7
    -7
      src/admin/templets/cards_make.htm
  7. +5
    -5
      src/admin/templets/cards_manmage.htm
  8. +2
    -2
      src/admin/templets/cards_type.htm
  9. +3
    -3
      src/install/sql-dfdata.txt
  10. +1
    -1
      src/user/buy_action.php
  11. +4
    -4
      src/user/templets/buy.htm

+ 4
- 4
src/admin/cards_make.php View File

@@ -1,6 +1,6 @@
<?php
/**
* 生成点卡
* 生成积分
*
* @version $id:cards_make.php 14:31 2010年7月12日 tianya $
* @package DedeBIZ.Administrator
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__)."/config.php");
CheckPurview('member_Card');
if (empty($dopost)) $dopost = '';
if ($dopost == '') include(DEDEADMIN."/templets/cards_make.htm");
//生成点卡
//生成积分
elseif ($dopost == 'make') {
$row = $dsql->GetOne("SELECT * FROM `#@__moneycard_record` ORDER BY aid DESC");
!is_array($row) ? $startid = 100000 : $startid = $row['aid'] + 100000;
@@ -48,8 +48,8 @@ elseif ($dopost == 'make') {
}
$inquery = "INSERT INTO `#@__moneycard_record` (ctid,cardid,uid,isexp,mtime,utime,money,num) VALUES ('$ctid','$cardid','0','0','$mtime','$utime','$money','$num'); ";
$dsql->ExecuteNoneQuery($inquery);
echo "成功生成点卡:{$cardid}<br>";
echo "成功生成积分:{$cardid}<br>";
}
echo "成功生成<span class='text-primary'>{$mnum}</span>个点卡";
echo "成功生成<span class='text-primary'>{$mnum}</span>个积分";
}
?>

+ 1
- 1
src/admin/cards_manage.php View File

@@ -1,6 +1,6 @@
<?php
/**
* 点卡管理
* 积分管理
*
* @version $id:cards_manage.php 14:31 2010年7月12日 tianya $
* @package DedeBIZ.Administrator


+ 2
- 2
src/admin/cards_type.php View File

@@ -1,6 +1,6 @@
<?php
/**
* 点卡类型
* 积分类型
*
* @version $id:cards_type.php 14:31 2010年7月12日 tianya $
* @package DedeBIZ.Administrator
@@ -43,7 +43,7 @@ if ($dopost == "save") {
$dsql->ExecuteNoneQuery($query);
}
header("Content-Type:text/html; charset={$cfg_soft_lang}");
ShowMsg("成功更新点卡产品分类表","cards_type.php");
ShowMsg("成功更新积分产品分类表","cards_type.php");
exit();
}
require_once(DEDEADMIN."/templets/cards_type.htm");

+ 5
- 5
src/admin/inc/inc_action_info.php View File

@@ -205,17 +205,17 @@ $actionSearch[5] = array(
);
$actionSearch[6] = array(
'title' => '支付工具',
'description' => '财务相关设置,包含点卡,商店订单等操作',
'description' => '财务相关设置,包含积分,商店订单等操作',
'soniterm' => array(
0 => array(
'title' => '点卡产品管理',
'description' => '网站点卡产品管理,可以在这里生成点卡以及查看点卡的当前状态',
'title' => '积分产品管理',
'description' => '网站积分产品管理,可以在这里生成积分以及查看积分的当前状态',
'purview' => 'sys_Data',
'linkurl' => 'cards_manage.php'
),
1 => array(
'title' => '点卡产品分类',
'description' => '网站点卡产品分类,可以添加不同点数的点卡产品类型',
'title' => '积分产品分类',
'description' => '网站积分产品分类,可以添加不同点数的积分产品类型',
'purview' => 'sys_Data',
'linkurl' => 'cards_type.php'
),


+ 2
- 2
src/admin/inc/inc_menu.php View File

@@ -51,8 +51,8 @@ if ($cuserLogin->getUserType() >= 10) {
<m:item name='自定义表单管理' link='diy_main.php' rank='c_List' target='main' />
</m:top>";
$adminMenu2 = "<m:top item='10_' name='支付工具' rank='sys_Data' icon='fa-credit-card'>
<m:item name='点卡产品管理' link='cards_manage.php' rank='sys_Data' target='main' />
<m:item name='点卡产品分类' link='cards_type.php' rank='sys_Data' target='main' />
<m:item name='积分产品管理' link='cards_manage.php' rank='sys_Data' target='main' />
<m:item name='积分产品分类' link='cards_type.php' rank='sys_Data' target='main' />
<m:item name='会员消费记录' link='member_operations.php' rank='sys_Data' target='main' />
<m:item name='会员产品分类' link='member_type.php' rank='sys_Data' target='main' />
<m:item name='支付接口设置' link='sys_payment.php' .php' rank='sys_Data' target='main' />


+ 7
- 7
src/admin/templets/cards_make.htm View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>点卡生成向导</title>
<title>积分生成向导</title>
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css">
@@ -16,17 +16,17 @@
<td bgcolor="#f5f5f5" colspan="4">
<table cellspacing="0" cellpadding="0" class="table table-borderless w-100">
<tr>
<td width="30%">点卡生成向导</td>
<td width="30%">积分生成向导</td>
<td width="70%" align="right">
<button type="button" name="ss1" onclick="location='cards_type.php';" class="btn btn-success btn-sm">点卡产品分类</button>
<button type="button" name="ss2" onclick="location='cards_manage.php';" class="btn btn-success btn-sm">点卡使用记录</button>
<button type="button" name="ss1" onclick="location='cards_type.php';" class="btn btn-success btn-sm">积分产品分类</button>
<button type="button" name="ss2" onclick="location='cards_manage.php';" class="btn btn-success btn-sm">积分使用记录</button>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="260">点卡类型:</td>
<td width="260">积分类型:</td>
<td>
<select name="cardtype" class="admin-input-sm">
<?php
@@ -43,7 +43,7 @@
<td><input name="mnum" type="text" id="mnum" class="admin-input-sm" value="100"></td>
</tr>
<tr>
<td>点卡前缀:</td>
<td>积分前缀:</td>
<td><input name="snprefix" type="text" id="snprefix" class="admin-input-sm" value="SN"></td>
<td>密码长度:</td>
<td><input name="pwdlen" type="text" id="pwdlen" class="admin-input-sm" value="4"></td>
@@ -58,7 +58,7 @@
<td><input name="pwdgr" type="text" id="pwdgr" class="admin-input-sm" value="3"></td>
</tr>
<tr>
<td colspan="4" bgcolor="#f5f5f5" align="center" align="py-2"><button type="submit" name="Submit" class="btn btn-success btn-sm">生成点卡</button></td>
<td colspan="4" bgcolor="#f5f5f5" align="center" align="py-2"><button type="submit" name="Submit" class="btn btn-success btn-sm">生成积分</button></td>
</tr>
</form>
<tr>


+ 5
- 5
src/admin/templets/cards_manmage.htm View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>点卡业务管理</title>
<title>积分业务管理</title>
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css">
@@ -44,14 +44,14 @@
<td bgcolor="#f5f5f5" colspan="7">
<table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless w-100">
<tr>
<td width="30%">点卡业务管理</td>
<td width="30%">积分业务管理</td>
<td width="70%" align="right">
<button type="button" onclick="location='cards_manage.php?isexp=0';" class="btn btn-success btn-sm">未使用</button>
<button type="button" onclick="location='cards_manage.php?isexp=1';" class="btn btn-success btn-sm">已售出</button>
<button type="button" onclick="location='cards_manage.php?isexp=-1';" class="btn btn-success btn-sm">已使用</button>
<button type="button" onclick="location='cards_manage.php';" class="btn btn-success btn-sm">全部</button>
<button type="button" onclick="location='cards_make.php';" class="btn btn-success btn-sm">生成点卡</button>
<button type="button" onclick="location='cards_type.php';" class="btn btn-success btn-sm">点卡产品分类</button>
<button type="button" onclick="location='cards_make.php';" class="btn btn-success btn-sm">生成积分</button>
<button type="button" onclick="location='cards_type.php';" class="btn btn-success btn-sm">积分产品分类</button>
</td>
</tr>
</table>
@@ -60,7 +60,7 @@
<tr bgcolor="#e9ecef" align="center">
<td width="6%">选择</td>
<td width="28%">卡号</td>
<td width="18%">点卡类型</td>
<td width="18%">积分类型</td>
<td width="12%">生成日期</td>
<td width="12%">使用日期</td>
<td width="6%">状态</td>


+ 2
- 2
src/admin/templets/cards_type.htm View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>点卡产品分类</title>
<title>积分产品分类</title>
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css">
@@ -13,7 +13,7 @@
<form name="form1" action="cards_type.php" method="post">
<input type="hidden" name="dopost" value="save">
<tr>
<td bgcolor="#f5f5f5" colspan="4">点卡产品分类</td>
<td bgcolor="#f5f5f5" colspan="4">积分产品分类</td>
</tr>
<tr bgcolor="#e9ecef">
<td width="30%" align="center">产品名称</td>


+ 3
- 3
src/install/sql-dfdata.txt
File diff suppressed because it is too large
View File


+ 1
- 1
src/user/buy_action.php View File

@@ -56,7 +56,7 @@ if ($product == 'member') {
$pname = $row['pname'];
$price = $row['money'];
} else if ($product == 'card') {
$ptype = "点卡购买";
$ptype = "积分购买";
$row = $dsql->GetOne("SELECT * FROM `#@__moneycard_type` WHERE tid='{$pid}'");
if (!is_array($row)) {
ShowMsg("无法识别您的订单", 'javascript:;');


+ 4
- 4
src/user/templets/buy.htm View File

@@ -45,12 +45,12 @@
</div>
<?php }?>
<div class="py-3">
<h4 class="mb-3">用点卡充值</h4>
<h4 class="mb-3">用积分充值</h4>
<form name="formrank" action="check_card.php" method="post">
<table width="100%" cellpadding="0" cellspacing="0" class="table">
<tbody>
<tr>
<td width="20%" align="right">点卡密码:</td>
<td width="20%" align="right">积分密码:</td>
<td><input type="text" name="cardid" id="cardid" class="form-control w-25"></td>
</tr>
<tr>
@@ -69,13 +69,13 @@
</form>
</div>
<div class="py-3">
<h4 class="mb-3">购买新点卡</h4>
<h4 class="mb-3">购买新积分</h4>
<form name="f1" action="buy_action.php" method="post">
<input type="hidden" name="product" value="card">
<table width="100%" cellpadding="0" cellspacing="0" class="table">
<tr>
<th width="10%">选择</th>
<th>点卡类型</th>
<th>积分类型</th>
<th width="16%">金币数量</th>
<th width="12%">购买价格</th>
</tr>


Loading…
Cancel
Save