@@ -28,7 +28,7 @@ DedeCMS v6.x是一个LTS版本,支持将到2022年10月截止 | |||
- 🔨 优化内置的模块插件,增强用户体验; | |||
- 🔨 调整会员中心UI,移除对文件上传的支持,增加系统安全性; | |||
- ✅ 调整会员中心UI,移除对文件上传的支持,增加系统安全性; | |||
- ✅ 移除对Flash的依赖支持,今后版本采用HTML5相关特性; | |||
@@ -38,7 +38,7 @@ DedeCMS v6.x是一个LTS版本,支持将到2022年10月截止 | |||
- ✅ 系统支持HTTPS; | |||
- 🔨 默认模板重新设计制作,采用响应式布局; | |||
- ✅ 默认模板重新设计制作,采用响应式布局; | |||
- ❌ 官方网站页面调整,调整部分内容以适应未来的版本更新; | |||
@@ -68,6 +68,8 @@ MySQL扩展库 | |||
系统函数 —— phpinfo、dir | |||
OpenSSL:支持DedeBIZ商业支持 | |||
4.基本目录结构 | |||
``` | |||
@@ -1,50 +0,0 @@ | |||
---------------------------------------- | |||
| DedeCMS 产品使用说明 | | |||
---------------------------------------- | |||
一、平台需求 | |||
1.Windows 平台: | |||
IIS/Apache/Nginx + PHP5/PHP7 + MySQL4/5 | |||
如果在windows环境中使用,建议用DedeCMS提供的DedeAMPZ套件以达到最佳使用性能。 | |||
2.Linux/Unix 平台 | |||
Apache/Nginx + PHP5/PHP7 + MySQL4/5 (PHP必须在非安全模式下运行) | |||
建议使用平台:Linux + Apache2.2 + PHP7.1 + MySQL5.0 | |||
3.PHP必须环境或启用的系统函数: | |||
allow_url_fopen | |||
GD扩展库 | |||
MySQL扩展库 | |||
系统函数 —— phpinfo、dir | |||
4.基本目录结构 | |||
/ | |||
..../install 安装程序目录,安装完后可删除[安装时必须有可写入权限] | |||
..../dede 默认后台管理目录(可任意改名) | |||
..../include 类库文件目录 | |||
..../plus 附助程序目录 | |||
..../member 会员目录 | |||
..../images 系统默认模板图片存放目录 | |||
..../uploads 默认上传目录[必须可写入] | |||
..../a 默认HTML文件存放目录[必须可写入] | |||
..../templets 系统默认内核模板目录 | |||
..../data 系统缓存或其它可写入数据存放目录[必须可写入] | |||
..../special 专题目录[生成一次专题后可以删除special/index.php,必须可写入] | |||
5.PHP环境容易碰到的不兼容性问题 | |||
(1)data目录没写入权限,导致系统session无法使用,这将导致无法登录管理后台(直接表现为验证码不能正常显示); | |||
(2)php的上传的临时文件夹没设置好或没写入权限,这会导致文件上传的功能无法使用; | |||
(3)出现莫名的错误,如安装时显示空白,这样能是由于系统没装载mysql扩展导致的,对于初级用户,可以下载dede的php套件包,以方便简单的使用。 | |||
二、程序安装使用 | |||
1.下载程序解压到本地目录; | |||
2.上传程序目录中的/uploads到网站根目录 | |||
3.运行http://www.yourname.com/install/index.php(yourname表示你的域名),按照安装提速说明进行程序安装 | |||
三、相关资源 | |||
DedeCMS官方主站 www.dedecms.com | |||
织梦维基 docs.dedecms.com | |||
客服中心 service.dedecms.com | |||
技术支持论坛 bbs.dedecms.com | |||
上海卓卓网络科技 www.desdev.cn |
@@ -5,15 +5,6 @@ | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>更改内容模型</title> | |||
<style type="text/css"> | |||
body { | |||
background-image: url(images/allbg.gif); | |||
} | |||
.STYLE2 { | |||
color: #666666; | |||
} | |||
</style> | |||
<script language="javascript"> | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
@@ -209,7 +209,7 @@ class MemberShops | |||
$i = 0; $result = ''; | |||
$string_length = strlen($string); | |||
for ($i = 0; $i < $string_length; $i++){ | |||
$result .= chr(ord($string{$i}) ^ ord($keys{$i % 32})); | |||
$result .= chr(ord($string[$i]) ^ ord($keys[$i % 32])); | |||
} | |||
if($operation == 'ENCODE') { | |||
return $runtokey . str_replace('=', '', base64_encode($result)); | |||
@@ -1,4 +1,5 @@ | |||
<?php | |||
/** | |||
* @version $Id: index.php 1 9:23 2010-11-11 tianya $ | |||
* @package DedeCMS.Site | |||
@@ -7,34 +8,30 @@ | |||
* @license https://www.dedebiz.com/license/v6 | |||
* @link https://www.dedebiz.com | |||
*/ | |||
if(!file_exists(dirname(__FILE__).'/data/common.inc.php')) | |||
{ | |||
if (!file_exists(dirname(__FILE__) . '/data/common.inc.php')) { | |||
header('Location:install/index.php'); | |||
exit(); | |||
} | |||
//自动生成HTML版 | |||
if(isset($_GET['upcache']) || !file_exists('index.html')) | |||
{ | |||
require_once (dirname(__FILE__) . "/include/common.inc.php"); | |||
require_once DEDEINC."/arc.partview.class.php"; | |||
if (isset($_GET['upcache']) || !file_exists('index.html')) { | |||
require_once(dirname(__FILE__) . "/include/common.inc.php"); | |||
require_once DEDEINC . "/arc.partview.class.php"; | |||
$GLOBALS['_arclistEnv'] = 'index'; | |||
$row = $dsql->GetOne("SELECT * FROM `#@__homepageset`"); | |||
$row['templet'] = MfTemplet($row['templet']); | |||
$pv = new PartView(); | |||
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); | |||
$row['showmod'] = isset($row['showmod'])? $row['showmod'] : 0; | |||
if ($row['showmod'] == 1) | |||
{ | |||
$pv->SaveToHtml(dirname(__FILE__).'/index.html'); | |||
include(dirname(__FILE__).'/index.html'); | |||
$row['showmod'] = isset($row['showmod']) ? $row['showmod'] : 0; | |||
if ($row['showmod'] == 1) { | |||
$pv->SaveToHtml(dirname(__FILE__) . '/index.html'); | |||
include(dirname(__FILE__) . '/index.html'); | |||
exit(); | |||
} else { | |||
} else { | |||
$pv->Display(); | |||
exit(); | |||
} | |||
} | |||
else | |||
{ | |||
} else { | |||
header('HTTP/1.1 301 Moved Permanently'); | |||
header('Location:index.html'); | |||
} |
@@ -58,7 +58,7 @@ else if($dopost=='save') | |||
include(DEDEMEMBER.'/inc/archives_check_edit.php'); | |||
//分析处理附加表数据 | |||
$inadd_f = ''; | |||
$inadd_f = $inadd_m = ''; | |||
if(!empty($dede_addonfields)) | |||
{ | |||
$addonfields = explode(';',$dede_addonfields); | |||
@@ -1,4 +1,5 @@ | |||
<?php | |||
/** | |||
* @version $Id: buy_action.php 1 8:38 2010年7月9日Z tianya $ | |||
* @package DedeCMS.Member | |||
@@ -7,74 +8,62 @@ | |||
* @license https://www.dedebiz.com/license/v6 | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckRank(0,0); | |||
require_once(dirname(__FILE__) . "/config.php"); | |||
CheckRank(0, 0); | |||
$menutype = 'mydede'; | |||
$menutype_son = 'op'; | |||
require_once DEDEINC.'/dedetemplate.class.php'; | |||
require_once DEDEINC . '/dedetemplate.class.php'; | |||
$product = isset($product) ? trim(HtmlReplace($product,1)) : ''; | |||
$product = isset($product) ? trim(HtmlReplace($product, 1)) : ''; | |||
$mid = $cfg_ml->M_ID; | |||
$ptype = ''; | |||
$pname = ''; | |||
$price = ''; | |||
$mtime = time(); | |||
if(isset($pd_encode) && isset($pd_verify) && md5("payment".$pd_encode.$cfg_cookie_encode) == $pd_verify) | |||
{ | |||
if (isset($pd_encode) && isset($pd_verify) && md5("payment" . $pd_encode . $cfg_cookie_encode) == $pd_verify) { | |||
$result = json_decode(mchStrCode($pd_encode, 'DECODE')); | |||
parse_str(mchStrCode($pd_encode,'DECODE'),$mch_Post); | |||
$product = preg_replace("#[^0-9a-z]#i", "", $mch_Post['product']); | |||
$pid = preg_replace("#[^0-9a-z]#i", "", $mch_Post['pid']); | |||
$product = preg_replace("#[^0-9a-z]#i", "", $result->product); | |||
$pid = preg_replace("#[^0-9a-z]#i", "", $result->pid); | |||
$row = $dsql->GetOne("SELECT * FROM #@__member_operation WHERE mid='$mid' And sta=0 AND product='$product'"); | |||
if(!isset($row['buyid'])) | |||
{ | |||
$row = $dsql->GetOne("SELECT * FROM `#@__member_operation` WHERE mid='$mid' AND sta=0 AND product='$product'"); | |||
if (!isset($row['buyid'])) { | |||
ShowMsg("请不要重复提交表单!", 'javascript:;'); | |||
exit(); | |||
} | |||
if(!isset($paytype)) | |||
{ | |||
if (!isset($paytype)) { | |||
ShowMsg("请选择支付方式!", 'javascript:;'); | |||
exit(); | |||
exit(); | |||
} | |||
$buyid = $row['buyid']; | |||
}else{ | |||
$buyid = 'M'.$mid.'T'.$mtime.'RN'.mt_rand(100,999); | |||
} else { | |||
$buyid = 'M' . $mid . 'T' . $mtime . 'RN' . mt_rand(100, 999); | |||
//删除用户旧的未付款的同类记录 | |||
if(!empty($product)) | |||
{ | |||
$dsql->ExecuteNoneQuery("Delete From #@__member_operation WHERE mid='$mid' And sta=0 And product='$product'"); | |||
if (!empty($product)) { | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_operation` WHERE mid='$mid' AND sta=0 AND product='$product'"); | |||
} | |||
} | |||
if(empty($product)) | |||
{ | |||
if (empty($product)) { | |||
ShowMsg("请选择一个产品!", 'javascript:;'); | |||
exit(); | |||
} | |||
$pid = isset($pid) && is_numeric($pid) ? $pid : 0; | |||
if($product=='member') | |||
{ | |||
if ($product == 'member') { | |||
$ptype = "会员升级"; | |||
$row = $dsql->GetOne("SELECT * FROM #@__member_type WHERE aid='{$pid}'"); | |||
if(!is_array($row)) | |||
{ | |||
$row = $dsql->GetOne("SELECT * FROM `#@__member_type` WHERE aid='{$pid}'"); | |||
if (!is_array($row)) { | |||
ShowMsg("无法识别你的订单!", 'javascript:;'); | |||
exit(); | |||
} | |||
$pname = $row['pname']; | |||
$price = $row['money']; | |||
} | |||
else if ($product == 'card') | |||
{ | |||
} else if ($product == 'card') { | |||
$ptype = "点卡购买"; | |||
$row = $dsql->GetOne("SELECT * From #@__moneycard_type WHERE tid='{$pid}'"); | |||
if(!is_array($row)) | |||
{ | |||
$row = $dsql->GetOne("SELECT * From `#@__moneycard_type` WHERE tid='{$pid}'"); | |||
if (!is_array($row)) { | |||
ShowMsg("无法识别你的订单!", 'javascript:;'); | |||
exit(); | |||
} | |||
@@ -82,91 +71,86 @@ else if ($product == 'card') | |||
$price = $row['money']; | |||
} | |||
if(!isset($paytype)) | |||
{ | |||
$inquery = "INSERT INTO #@__member_operation(`buyid` , `pname` , `product` , `money` , `mtime` , `pid` , `mid` , `sta` ,`oldinfo`) | |||
if (!isset($paytype)) { | |||
$inquery = "INSERT INTO `#@__member_operation`(`buyid` , `pname` , `product` , `money` , `mtime` , `pid` , `mid` , `sta` ,`oldinfo`) | |||
VALUES ('$buyid', '$pname', '$product' , '$price' , '$mtime' , '$pid' , '$mid' , '0' , '$ptype'); | |||
"; | |||
$isok = $dsql->ExecuteNoneQuery($inquery); | |||
if(!$isok) | |||
{ | |||
echo "数据库出错,请重新尝试!".$dsql->GetError(); | |||
if (!$isok) { | |||
echo "数据库出错,请重新尝试!" . $dsql->GetError(); | |||
exit(); | |||
} | |||
if($price=='') | |||
{ | |||
if ($price == '') { | |||
echo "无法识别你的订单!"; | |||
exit(); | |||
} | |||
//获取支付接口列表 | |||
$payment_list = array(); | |||
$dsql->SetQuery("SELECT * FROM #@__payment WHERE enabled='1' ORDER BY rank ASC"); | |||
$dsql->SetQuery("SELECT * FROM `#@__payment` WHERE enabled='1' ORDER BY rank ASC"); | |||
$dsql->Execute(); | |||
$i = 0 ; | |||
while($row = $dsql->GetArray()) | |||
{ | |||
$i = 0; | |||
while ($row = $dsql->GetArray()) { | |||
$payment_list[] = $row; | |||
$i++; | |||
} | |||
unset($row); | |||
$pr_encode = ''; | |||
foreach($_REQUEST as $key => $val) | |||
{ | |||
if (!in_array($key, array('product','pid'))) { | |||
$pr_encode = array(); | |||
foreach ($_REQUEST as $key => $val) { | |||
if (!in_array($key, array('product', 'pid'))) { | |||
continue; | |||
} | |||
$val = preg_replace("#[^0-9a-z]#i", "", $val); | |||
$pr_encode .= $pr_encode ? "&$key=$val" : "$key=$val"; | |||
$pr_encode[$key] = $val; | |||
} | |||
$pr_encode = str_replace('=', '', mchStrCode($pr_encode)); | |||
$pr_verify = md5("payment".$pr_encode.$cfg_cookie_encode); | |||
$pr_encode = str_replace('=', '', mchStrCode(json_encode($pr_encode))); | |||
$pr_verify = md5("payment" . $pr_encode . $cfg_cookie_encode); | |||
$tpl = new DedeTemplate(); | |||
$tpl->LoadTemplate(DEDEMEMBER.'/templets/buy_action_payment.htm'); | |||
$tpl->LoadTemplate(DEDEMEMBER . '/templets/buy_action_payment.htm'); | |||
$tpl->Display(); | |||
}else{ | |||
} else { | |||
$rs = $dsql->GetOne("SELECT * FROM `#@__payment` WHERE id='$paytype' "); | |||
$rs['code'] = preg_replace("#[^0-9a-z]#i", "", $rs['code']); | |||
if (!file_exists(DEDEINC.'/payment/'.$rs['code'].'.php')) { | |||
ShowMsg("未发现支付接口文件,请到后台配置!",'javascript:;'); | |||
if (!file_exists(DEDEINC . '/payment/' . $rs['code'] . '.php')) { | |||
ShowMsg("未发现支付接口文件,请到后台配置!", 'javascript:;'); | |||
exit(); | |||
} | |||
require_once DEDEINC.'/payment/'.$rs['code'].'.php'; | |||
require_once DEDEINC . '/payment/' . $rs['code'] . '.php'; | |||
$pay = new $rs['code']; | |||
$payment=""; | |||
if($rs['code']=="cod" || $rs['code']=="bank") { | |||
$order=$buyid; | |||
$payment="member"; | |||
} | |||
else{ | |||
$order=array( 'out_trade_no' => $buyid, | |||
'price' => sprintf("%01.2f", $price) | |||
$payment = ""; | |||
if ($rs['code'] == "cod" || $rs['code'] == "bank") { | |||
$order = $buyid; | |||
$payment = "member"; | |||
} else { | |||
$order = array( | |||
'out_trade_no' => $buyid, | |||
'price' => sprintf("%01.2f", $price) | |||
); | |||
require_once DEDEDATA.'/payment/'.$rs['code'].'.php'; | |||
require_once DEDEDATA . '/payment/' . $rs['code'] . '.php'; | |||
} | |||
$button=$pay->GetCode($order,$payment); | |||
$button = $pay->GetCode($order, $payment); | |||
$dtp = new DedeTemplate(); | |||
$carts = array( 'orders_id' => $buyid, | |||
'cart_count' => '1', | |||
'price_count' => sprintf("%01.2f", $price) | |||
); | |||
$row = $dsql->GetOne("SELECT pname,money FROM #@__member_operation WHERE buyid='{$buyid}'"); | |||
$dtp->SetVar('pay_name',$row['pname']); | |||
$dtp->SetVar('price',$row['money']); | |||
$dtp->SetVar('pay_way',$rs['name']); | |||
$dtp->SetVar('description',$rs['description']); | |||
$dtp->SetVar('button',$button); | |||
$dtp->Assign('carts',$carts); | |||
$dtp->LoadTemplate(DEDEMEMBER.'/templets/shops_action_payment.htm'); | |||
$carts = array( | |||
'orders_id' => $buyid, | |||
'cart_count' => '1', | |||
'price_count' => sprintf("%01.2f", $price) | |||
); | |||
$row = $dsql->GetOne("SELECT pname,money FROM `#@__member_operation` WHERE buyid='{$buyid}'"); | |||
$dtp->SetVar('pay_name', $row['pname']); | |||
$dtp->SetVar('price', $row['money']); | |||
$dtp->SetVar('pay_way', $rs['name']); | |||
$dtp->SetVar('description', $rs['description']); | |||
$dtp->SetVar('button', $button); | |||
$dtp->Assign('carts', $carts); | |||
$dtp->LoadTemplate(DEDEMEMBER . '/templets/shops_action_payment.htm'); | |||
$dtp->Display(); | |||
exit(); | |||
} | |||
@@ -179,7 +163,7 @@ if(!isset($paytype)) | |||
* @param string $operation 操作 | |||
* @return string | |||
*/ | |||
function mchStrCode($string, $operation = 'ENCODE') | |||
function mchStrCode($string, $operation = 'ENCODE') | |||
{ | |||
$key_length = 4; | |||
$expiry = 0; | |||
@@ -188,20 +172,21 @@ function mchStrCode($string, $operation = 'ENCODE') | |||
$egiskeys = md5(substr($fixedkey, 16, 16)); | |||
$runtokey = $key_length ? ($operation == 'ENCODE' ? substr(md5(microtime(true)), -$key_length) : substr($string, 0, $key_length)) : ''; | |||
$keys = md5(substr($runtokey, 0, 16) . substr($fixedkey, 0, 16) . substr($runtokey, 16) . substr($fixedkey, 16)); | |||
$string = $operation == 'ENCODE' ? sprintf('%010d', $expiry ? $expiry + time() : 0).substr(md5($string.$egiskeys), 0, 16) . $string : base64_decode(substr($string, $key_length)); | |||
$string = $operation == 'ENCODE' ? sprintf('%010d', $expiry ? $expiry + time() : 0) . substr(md5($string . $egiskeys), 0, 16) . $string : base64_decode(substr($string, $key_length)); | |||
$i = 0; $result = ''; | |||
$i = 0; | |||
$result = ''; | |||
$string_length = strlen($string); | |||
for ($i = 0; $i < $string_length; $i++){ | |||
$result .= chr(ord($string{$i}) ^ ord($keys{$i % 32})); | |||
for ($i = 0; $i < $string_length; $i++) { | |||
$result .= chr(ord($string[$i]) ^ ord($keys[$i % 32])); | |||
} | |||
if($operation == 'ENCODE') { | |||
if ($operation == 'ENCODE') { | |||
return $runtokey . str_replace('=', '', base64_encode($result)); | |||
} else { | |||
if((substr($result, 0, 10) == 0 || substr($result, 0, 10) - time() > 0) && substr($result, 10, 16) == substr(md5(substr($result, 26).$egiskeys), 0, 16)) { | |||
if ((substr($result, 0, 10) == 0 || substr($result, 0, 10) - time() > 0) && substr($result, 10, 16) == substr(md5(substr($result, 26) . $egiskeys), 0, 16)) { | |||
return substr($result, 26); | |||
} else { | |||
return ''; | |||
} | |||
} | |||
} | |||
} |
@@ -15,12 +15,10 @@ include_once(DEDEINC . '/image.func.php'); | |||
include_once(DEDEINC . '/oxwindow.class.php'); | |||
$svali = GetCkVdValue(); | |||
if (preg_match("/3/", $safe_gdopen)) { | |||
if (strtolower($vdcode) != $svali || $svali == '') { | |||
ResetVdValue(); | |||
ShowMsg('验证码错误!', '-1'); | |||
exit(); | |||
} | |||
if (strtolower($vdcode) != $svali || $svali == '') { | |||
ResetVdValue(); | |||
ShowMsg('验证码错误!', '-1'); | |||
exit(); | |||
} | |||
// 校验CSRF | |||
@@ -18,12 +18,10 @@ $flag = ''; | |||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | |||
$userip = GetIP(); | |||
$svali = GetCkVdValue(); | |||
if (preg_match("/3/", $safe_gdopen)) { | |||
if (strtolower($vdcode) != $svali || $svali == '') { | |||
ResetVdValue(); | |||
ShowMsg('验证码错误!', '-1'); | |||
exit(); | |||
} | |||
if (strtolower($vdcode) != $svali || $svali == '') { | |||
ResetVdValue(); | |||
ShowMsg('验证码错误!', '-1'); | |||
exit(); | |||
} | |||
if ($typeid == 0) { | |||
ShowMsg('请指定文档隶属的栏目!', '-1'); | |||
@@ -1,4 +1,5 @@ | |||
<?php | |||
/** | |||
* @version $Id: index.php 1 8:24 2010年7月9日Z tianya $ | |||
* @package DedeCMS.Member | |||
@@ -7,35 +8,30 @@ | |||
* @license https://www.dedebiz.com/license/v6 | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
require_once(dirname(__FILE__) . "/config.php"); | |||
$uid=empty($uid)? "" : RemoveXSS($uid); | |||
if(empty($action)) $action = ''; | |||
if(empty($aid)) $aid = ''; | |||
$uid = empty($uid) ? "" : RemoveXSS($uid); | |||
if (empty($action)) $action = ''; | |||
if (empty($aid)) $aid = ''; | |||
$menutype = 'mydede'; | |||
//会员后台 | |||
if($uid=='') | |||
{ | |||
if ($uid == '') { | |||
$iscontrol = 'yes'; | |||
if(!$cfg_ml->IsLogin()) | |||
{ | |||
include_once(dirname(__FILE__)."/templets/index-notlogin.htm"); | |||
} | |||
else | |||
{ | |||
$minfos = $dsql->GetOne("SELECT * FROM `#@__member_tj` WHERE mid='".$cfg_ml->M_ID."'; "); | |||
if (!$cfg_ml->IsLogin()) { | |||
include_once(dirname(__FILE__) . "/templets/index-notlogin.htm"); | |||
} else { | |||
$minfos = $dsql->GetOne("SELECT * FROM `#@__member_tj` WHERE mid='" . $cfg_ml->M_ID . "'; "); | |||
$minfos['totaluse'] = $cfg_ml->GetUserSpace(); | |||
$minfos['totaluse'] = number_format($minfos['totaluse']/1024/1024,2); | |||
if($cfg_mb_max > 0) { | |||
$ddsize = ceil( ($minfos['totaluse']/$cfg_mb_max) * 100 ); | |||
} | |||
else { | |||
$minfos['totaluse'] = number_format($minfos['totaluse'] / 1024 / 1024, 2); | |||
if ($cfg_mb_max > 0) { | |||
$ddsize = ceil(($minfos['totaluse'] / $cfg_mb_max) * 100); | |||
} else { | |||
$ddsize = 0; | |||
} | |||
require_once(DEDEINC.'/channelunit.func.php'); | |||
require_once(DEDEINC . '/channelunit.func.php'); | |||
/* 最新文档8条 */ | |||
$archives = array(); | |||
@@ -47,43 +43,31 @@ if($uid=='') | |||
ORDER BY arc.sortrank DESC LIMIT 8"; | |||
$dsql->SetQuery($sql); | |||
$dsql->Execute(); | |||
while ($row = $dsql->GetArray()) | |||
{ | |||
while ($row = $dsql->GetArray()) { | |||
$row['htmlurl'] = GetFileUrl($row['id'], $row['typeid'], $row['senddate'], $row['title'], $row['ismake'], $row['arcrank'], $row['namerule'], $row['typedir'], $row['money'], $row['filename'], $row['moresite'], $row['siteurl'], $row['sitepath']); | |||
$archives[] = $row; | |||
} | |||
/** 调用访客记录 **/ | |||
$_vars['mid'] = $cfg_ml->M_ID; | |||
if(empty($cfg_ml->fields['face'])) | |||
{ | |||
$cfg_ml->fields['face']=($cfg_ml->fields['sex']=='女')? 'templets/images/dfgirl.png' : 'templets/images/dfboy.png'; | |||
if (empty($cfg_ml->fields['face'])) { | |||
$cfg_ml->fields['face'] = ($cfg_ml->fields['sex'] == '女') ? 'templets/images/dfgirl.png' : 'templets/images/dfboy.png'; | |||
} | |||
/** 我的收藏 **/ | |||
$favorites = array(); | |||
$dsql->Execute('fl',"SELECT * FROM `#@__member_stow` WHERE mid='{$cfg_ml->M_ID}' LIMIT 5"); | |||
while($arr = $dsql->GetArray('fl')) | |||
{ | |||
$dsql->Execute('fl', "SELECT * FROM `#@__member_stow` WHERE mid='{$cfg_ml->M_ID}' LIMIT 5"); | |||
while ($arr = $dsql->GetArray('fl')) { | |||
$favorites[] = $arr; | |||
} | |||
/** 欢迎新朋友 **/ | |||
$sql = "SELECT * FROM `#@__member` ORDER BY mid DESC LIMIT 3"; | |||
$newfriends = array(); | |||
$dsql->SetQuery($sql); | |||
$dsql->Execute(); | |||
while ($row = $dsql->GetArray()) { | |||
$newfriends[] = $row; | |||
} | |||
/** 有没新短信 **/ | |||
$pms = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__member_pms` WHERE toid='{$cfg_ml->M_ID}' AND `hasview`=0 AND folder = 'inbox'"); | |||
$pms = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__member_pms` WHERE toid='{$cfg_ml->M_ID}' AND `hasview`=0 AND folder = 'inbox'"); | |||
$dpl = new DedeTemplate(); | |||
$tpl = dirname(__FILE__)."/templets/index.htm"; | |||
$tpl = dirname(__FILE__) . "/templets/index.htm"; | |||
$dpl->LoadTemplate($tpl); | |||
$dpl->display(); | |||
} | |||
} | |||
} |
@@ -1,127 +1,144 @@ | |||
<!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> | |||
<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> | |||
<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> | |||
<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 class="thisTab"><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><a href="shops_products.php" id="buy">我购买的商品</a></li> | |||
</ul> | |||
</div> | |||
<div id="mainCp"> | |||
<div class="appMsg"> | |||
<p class="tips"><?php echo $cfg_ml->GetSta($dsql); ?></p> | |||
</div> | |||
<!--内容消息提示 --> | |||
<?php | |||
if($cfg_money_scores > 0) { | |||
?> | |||
<div class="postForm"> | |||
<h3 class="meTitle"> | |||
<?php | |||
$canCav = floor($cfg_ml->fields['scores'] / $cfg_money_scores); | |||
?> | |||
<strong>用积分兑换金币</strong> (<?php echo "兑换价格:{$cfg_money_scores} 积分/个,你目前可兑换金币数量:{$canCav} 个"; ?>)</h3> | |||
<form name="formrank" action="index_do.php?dopost=money2s&fmdo=user" method="post"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||
<tbody> | |||
<tr> | |||
<td width="15%" align="right" valign="top">兑换数量:</td> | |||
<td width="35%"><input name="money" type="text" id="money" size="38" class="intxt" value="<?php echo $canCav; ?>" style="width:200px"/></td> | |||
<td align='left'><button class="button2" type="submit">兑换</button></td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</form> | |||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | |||
<main class="member"> | |||
<div class="container-fluid pannel"> | |||
<div class="container"> | |||
<div class="row"> | |||
<div class="pannel-main col-md-12 mt-3 mb-3"> | |||
<div class="pannel-main-container"> | |||
<nav class="navbar navbar-expand-lg"> | |||
<ol class="breadcrumb mb-0 mr-auto"> | |||
<li class="breadcrumb-item"><a href="<?php echo $cfg_memberurl;?>/">会员中心</a></li> | |||
<li class="breadcrumb-item">钱包积分</li> | |||
</li> | |||
</ol> | |||
<span class="navbar-text"> | |||
<a href="javascript:history.back(-1);" class="btn btn-sm">返回</a> | |||
</span> | |||
</nav> | |||
<div id="mainCp"> | |||
<div class="alert alert-success" role="alert"> | |||
<?php echo $cfg_ml->GetSta($dsql); ?> | |||
</div> | |||
<!--内容消息提示 --> | |||
<?php | |||
if($cfg_money_scores > 0) { | |||
?> | |||
<div class="postForm"> | |||
<?php | |||
$canCav = floor($cfg_ml->fields['scores'] / $cfg_money_scores); | |||
?> | |||
<h5>用积分兑换金币 (<?php echo "兑换价格:{$cfg_money_scores} 积分/个,你目前可兑换金币数量:{$canCav} 个"; ?>)</h5> | |||
<form name="formrank" action="index_do.php?dopost=money2s&fmdo=user" method="post"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table"> | |||
<tbody> | |||
<tr> | |||
<td width="15%" align="right" valign="top">兑换数量:</td> | |||
<td width="35%"> | |||
<input name="money" type="text" id="money" size="38" class="form-control" | |||
value="<?php echo $canCav; ?>" /></td> | |||
<td align='left'><button class="btn btn-success" type="submit">兑换</button></td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</form> | |||
</div> | |||
<?php } ?> | |||
<div class="postForm"> | |||
<h5 class="meTitle">用点卡充值</h3> | |||
<form name="formrank" action="check_card.php" method="post"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table"> | |||
<tbody> | |||
<tr> | |||
<td width="15%" align="right" valign="top">点卡密码:</td> | |||
<td><input name="cardid" type="text" id="cardid" size="38" class="form-control" | |||
style="width:200px" /></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top">验证码:</td> | |||
<td><input name="vdcode" type="text" id="vdcode" size="8" class="intxt" | |||
style='width:50px;text-transform:uppercase;' /> | |||
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" | |||
onclick="this.src=this.src+'?'" /> | |||
</td> | |||
</tr> | |||
</tbody> | |||
<tfoot> | |||
<tr> | |||
<td align="right" valign="top"> </td> | |||
<td><button class="btn btn-success" type="submit">充值</button></td> | |||
</tr> | |||
</tfoot> | |||
</table> | |||
</form> | |||
</div> | |||
<div class="postForm"> | |||
<h5 class="meTitle">购买新点卡:</h3> | |||
<form name="f1" action="buy_action.php" method="post"> | |||
<input type="hidden" name="product" value="card" /> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table"> | |||
<tr style='height:28px;background:#F9FEE9;'> | |||
<th width="10%">选择</th> | |||
<th>点卡类型</th> | |||
<th width="15%">金币数量</th> | |||
<th width="15%">购买价格</th> | |||
</tr> | |||
<tbody> | |||
<?php echo $moneycards;?> | |||
</tbody> | |||
</table> | |||
<button class="btn btn-success" type="submit">购买</button> | |||
</form> | |||
</div> | |||
<div class="postForm mt-3"> | |||
<h5 class="meTitle">会员升级</h5> | |||
<form name="f1" action="buy_action.php" method="post"> | |||
<input type="hidden" name="product" value="member" /> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table"> | |||
<thead> | |||
<tr> | |||
<th colspan='5' style='text-align:left;padding-left:10px;height:24px;line-height:24px;'>会员升级: | |||
</th> | |||
</tr> | |||
</thead> | |||
<tr style='height:28px;background:#F9FEE9;'> | |||
<th width="10%">选择</th> | |||
<th>产品名称</th> | |||
<th width="12%">会员类型</th> | |||
<th width="12%">时限(天)</th> | |||
<th width="10%">价格</th> | |||
</tr> | |||
<tbody> | |||
<?php echo $membertypes?> | |||
</tbody> | |||
</table> | |||
<button class="btn btn-success" type="submit">购买</button> | |||
</form> | |||
</div> | |||
</div> | |||
<!--主操作区域 --> | |||
</div> | |||
</div> | |||
</div> | |||
<?php } ?> | |||
<div class="postForm"> | |||
<h3 class="meTitle">用点卡充值</h3> | |||
<form name="formrank" action="check_card.php" method="post"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||
<tbody> | |||
<tr> | |||
<td width="15%" align="right" valign="top">点卡密码:</td> | |||
<td><input name="cardid" type="text" id="cardid" size="38" class="intxt" style="width:200px"/></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top">验证码:</td> | |||
<td><input name="vdcode" type="text" id="vdcode" size="8" class="intxt" style='width:50px;text-transform:uppercase;' /> | |||
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /> | |||
</td> | |||
</tr> | |||
</tbody> | |||
<tfoot> | |||
<tr> | |||
<td align="right" valign="top"> </td> | |||
<td><button class="button2 mt5" type="submit">充值</button></td> | |||
</tr> | |||
</tfoot> | |||
</table> | |||
</form> | |||
</div> | |||
<div class="postForm"> | |||
<h3 class="meTitle">购买新点卡:</h3> | |||
<form name="f1" action="buy_action.php" method="post"> | |||
<input type="hidden" name="product" value="card" /> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||
<tr style='height:28px;background:#F9FEE9;'> | |||
<th width="10%">选择</th> | |||
<th >点卡类型</th> | |||
<th width="15%">金币数量</th> | |||
<th width="15%">购买价格</th> | |||
</tr> | |||
<tbody> | |||
<?php echo $moneycards;?> | |||
</tbody> | |||
</table> | |||
<button class="button2 mt5" type="submit">购买</button> | |||
</form> | |||
</div> | |||
<div class="postForm"> | |||
<h3 class="meTitle">会员升级</h3> | |||
<form name="f1" action="buy_action.php" method="post"> | |||
<input type="hidden" name="product" value="member" /> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||
<thead> | |||
<tr> | |||
<th colspan='5' style='text-align:left;padding-left:10px;height:24px;line-height:24px;'>会员升级:</th> | |||
</tr> | |||
</thead> | |||
<tr style='height:28px;background:#F9FEE9;'> | |||
<th width="10%">选择</th> | |||
<th >产品名称</th> | |||
<th width="12%">会员类型</th> | |||
<th width="12%">时限(天)</th> | |||
<th width="10%">价格</th> | |||
</tr> | |||
<tbody> | |||
<?php echo $membertypes?> | |||
</tbody> | |||
</table> | |||
<button class="button2 mt5" type="submit">购买</button> | |||
</form> | |||
</div> | |||
</div> | |||
<!--主操作区域 --> | |||
</div> | |||
</div> | |||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||
</div> | |||
</main> | |||
<?php include(DEDEMEMBER."/templets/footer.htm"); ?> | |||
</body> | |||
</html> | |||
</html> |
@@ -1,85 +1,98 @@ | |||
<!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> | |||
<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> | |||
<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> | |||
<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 class="thisTab"><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><a href="shops_products.php" id="buy">我购买的商品</a></li> | |||
</ul> | |||
<div class="tabOther doPost" style="margin-top:5px"> <a href="buy.php">购买点卡/会员服务</a> </div> | |||
</div> | |||
<div id="mainCp"> | |||
<h3 class="meTitle">订单确认</h3> | |||
<div class="appMsg"> | |||
<p class="tips">* 你申请购买的产品如下,确认无误后请点击“购买并支付”按钮,进行网上支付,如果支付失败,请与管理员联系其它支付方式:</p> | |||
</div> | |||
<div class="postForm"> | |||
<h3 class="meTitle" style="padding-top: 20px;">购买点卡/会员服务</h3> | |||
<form method="post" name="E_FORM" action="buy_action.php" target="_blank"> | |||
<input type="hidden" name="pd_encode" value="<?php echo $pr_encode;?>"> | |||
<input type="hidden" name="pd_verify" value="<?php echo $pr_verify;?>"> | |||
<input type="hidden" name="aid" value="<?php echo $buyid;?>"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||
<tbody> | |||
<tr> | |||
<td width="15%" align="right" valign="top">订单编号:</td> | |||
<td><?php echo $buyid?></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top">产品类型:</td> | |||
<td><?php echo $ptype?></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top">产品名称:</td> | |||
<td><?php echo $pname?></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top"><span class="td1">产品价格:</span></td> | |||
<td><?php echo $price;?>元</td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top"><span class="td1">支付方式:</span></td> | |||
<td><table border="0" cellpadding="0" cellspacing="0"> | |||
{dede:array.payment_list} | |||
<tr onMouseMove="javascript:this.bgColor='#F8F8F8';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||
<td width="10%" align="right" style="vertical-align:middle;">{dede:if value.code=="cod" || value.code=="bank"} <input name="paytype" type="radio" value="{dede:value.id/}" disabled="disabled"/>{else}<input name="paytype" type="radio" value="{dede:value.id/}"/>{/dede:if}</td> | |||
<td width="20%" valign="middle" style="vertical-align:middle;"> {dede:value.name/} </td> | |||
<td width="60%"> {dede:value.description/} </td> | |||
<td width="10%" align="center"><span class="fc-f60">{dede:value.fee/}元</span></td> | |||
</tr> | |||
{/dede:array} | |||
</table></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top"> </td> | |||
<td><button class="button5" type="submit">购买并支付</button> | |||
<button class="buttonGary2 ml10" type="button" onclick="location='buy.php'">返回</button></td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</form> | |||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | |||
<main class="member"> | |||
<div class="container-fluid pannel"> | |||
<div class="container"> | |||
<div class="row"> | |||
<div class="pannel-main col-md-12 mt-3 mb-3"> | |||
<div class="pannel-main-container"> | |||
<nav class="navbar navbar-expand-lg"> | |||
<ol class="breadcrumb mb-0 mr-auto"> | |||
<li class="breadcrumb-item"><a href="<?php echo $cfg_memberurl;?>/">会员中心</a></li> | |||
<li class="breadcrumb-item"><a href="<?php echo $cfg_memberurl;?>/buy.php">钱包积分</a></li> | |||
<li class="breadcrumb-item">确认订单</li> | |||
</li> | |||
</ol> | |||
<span class="navbar-text"> | |||
<a href="javascript:history.back(-1);" class="btn btn-sm">返回</a> | |||
</span> | |||
</nav> | |||
<div id="mainCp"> | |||
<h5 class="meTitle">订单确认</h5> | |||
<div class="alert alert-success" role="alert"> | |||
你申请购买的产品如下,确认无误后请点击“购买并支付”按钮,进行网上支付,如果支付失败,请与管理员联系其它支付方式: | |||
</div> | |||
<div class="postForm"> | |||
<h5 class="meTitle" style="padding-top: 20px;">购买点卡/会员服务</h5> | |||
<form method="post" name="E_FORM" action="buy_action.php" target="_blank"> | |||
<input type="hidden" name="pd_encode" value="<?php echo $pr_encode;?>"> | |||
<input type="hidden" name="pd_verify" value="<?php echo $pr_verify;?>"> | |||
<input type="hidden" name="aid" value="<?php echo $buyid;?>"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table"> | |||
<tbody> | |||
<tr> | |||
<td width="15%" align="right" valign="top">订单编号:</td> | |||
<td><?php echo $buyid?></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top">产品类型:</td> | |||
<td><?php echo $ptype?></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top">产品名称:</td> | |||
<td><?php echo $pname?></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top"><span class="td1">产品价格:</span></td> | |||
<td><?php echo $price;?>元</td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top"><span class="td1">支付方式:</span></td> | |||
<td><table border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||
{dede:array.payment_list} | |||
<tr onMouseMove="javascript:this.bgColor='#F8F8F8';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||
<td width="10%" align="right" style="vertical-align:middle;">{dede:if value.code=="cod" || value.code=="bank"} <input name="paytype" type="radio" value="{dede:value.id/}" disabled="disabled"/>{else}<input name="paytype" type="radio" value="{dede:value.id/}"/>{/dede:if}</td> | |||
<td width="20%" valign="middle" style="vertical-align:middle;"> {dede:value.name/} </td> | |||
<td width="60%"> {dede:value.description/} </td> | |||
<td width="10%" align="center"><span class="fc-f60">{dede:value.fee/}元</span></td> | |||
</tr> | |||
{/dede:array} | |||
</table></td> | |||
</tr> | |||
<tr> | |||
<td align="right" valign="top"> </td> | |||
<td><button class="btn btn-success" type="submit">购买并支付</button> | |||
<button class="btn btn-secondary" type="button" onclick="location='buy.php'">返回</button></td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</form> | |||
</div> | |||
</div> | |||
<!--主操作区域 --> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<!--主操作区域 --> | |||
</div> | |||
</div> | |||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||
</div> | |||
</main> | |||
<?php include(DEDEMEMBER."/templets/footer.htm"); ?> | |||
</body> | |||
</html> | |||
</html> |
@@ -1,152 +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/caicai.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"> | |||
$(document).ready(function(){ | |||
$("div[class*='good'],div[class*='bad']").bind("click", function(){ | |||
var type = $(this).attr('class'),aid = $(this).attr('id'); | |||
var saveId = getCookie('diggid'); | |||
if(saveId != null) | |||
{ | |||
var saveIds = saveId.split(','); | |||
var hasId = false; | |||
j = 1;saveId = ''; | |||
for(i=saveIds.length-1;i>=0;i--) | |||
{ | |||
if(saveIds[i]==aid && hasId) continue; | |||
else | |||
{ | |||
if(saveIds[i]==aid && !hasId) hasId = true; | |||
saveId += (saveId=='' ? saveIds[i] : ','+saveIds[i]); | |||
j++; | |||
if(j==20 && hasId) break; | |||
if(j==19 && !hasId) break; | |||
} | |||
} | |||
if(hasId) { alert("您已经顶过该帖,请不要重复顶帖 !"); return false; } | |||
else saveId += ','+aid; | |||
setCookie('diggid',saveId,1); | |||
} | |||
else | |||
{ | |||
setCookie('diggid',aid,1); | |||
} | |||
$.ajax({type: 'POST',url: "../plus/feedback.php", | |||
data: "formurl=caicai&action="+type+"&aid="+aid, | |||
dataType: 'text', | |||
success: function(result){$("#"+type+aid).html(result);} | |||
}); | |||
}); | |||
}); | |||
//读写cookie函数 | |||
function getCookie(c_name) | |||
{ | |||
if (document.cookie.length > 0) | |||
{ | |||
c_start = document.cookie.indexOf(c_name + "=") | |||
if (c_start != -1) | |||
{ | |||
c_start = c_start + c_name.length + 1; | |||
c_end = document.cookie.indexOf(";",c_start); | |||
if (c_end == -1) | |||
{ | |||
c_end = document.cookie.length; | |||
} | |||
return unescape(document.cookie.substring(c_start,c_end)); | |||
} | |||
} | |||
return null | |||
} | |||
function setCookie(c_name,value,expiredays) | |||
{ | |||
var exdate = new Date(); | |||
exdate.setDate(exdate.getDate() + expiredays); | |||
document.cookie = c_name + "=" +escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); //使设置的有效时间正确。增加toGMTString() | |||
} | |||
function postBadGood(type,id){} | |||
</script> | |||
</head> | |||
<body> | |||
<div id="main"> | |||
<?php include(DEDEMEMBER."/templets/head.htm"); ?> | |||
<div id="content" class="w960 clearfix"> | |||
<!--<div id="temDiv" style="clear:both"></div> --> | |||
<div id="listbox"> | |||
<ul> | |||
{dede:datalist} | |||
<li> | |||
<a href='{dede:field.arcurl /}' target='_blank' class="preview"><img src='{dede:field.litpic /}' alt='{dede:field.title /}' width="80" height="72"/></a> | |||
<div class="cbody"> | |||
<a href='{dede:field.arcurl /}' target='_blank' class="title">{dede:field.title /}</a> | |||
<span class="endpl">最后评论:<small>{dede:field.lastpost /}</small></span> | |||
<p class="intro">{dede:field.description function="cn_substr(@me, 130)" /}...</p> | |||
<span class="info"> | |||
<small class="view">浏览:</small>{dede:field.click/} | |||
<small class="hpd">好评度:</small>{dede:field.scores/} | |||
<small class="pl"><a href="../plus/feedback.php?aid={dede:field.id/}">评论</a></small> | |||
</span> | |||
</div> | |||
<div class="caicai"> | |||
<div class='good' title='好评' id="{dede:field.id/}"> <span id='good{dede:field.id/}'>{dede:field.goodpost/}</span> </div> | |||
<div class='bad' title='差评' id="{dede:field.id/}"> <span id='bad{dede:field.id/}'>{dede:field.badpost/}</span> </div> | |||
</div> | |||
</li> | |||
{/dede:datalist} | |||
</ul> | |||
<div class="pageList"><span>{dede:pagelist listsize=4 listitem='info,index,end,pre,next,pageno'/}</span></div> | |||
</div> | |||
<!--左侧内容 --> | |||
<div id="sidebar"> | |||
<div class="s_border"> | |||
<div class="s_title">最受好评的文章 »</div> | |||
<ul> | |||
{dede:list bind='GetSortArc' order='goodpost' orderway='desc'} | |||
<li><a href='{dede:field name='arcurl'/}'>{dede:field name='title'/}</a></li> | |||
{/dede:list} | |||
</ul> | |||
</div> <!--最爱好评的文章 --> | |||
<div class="s_border mt10"> | |||
<div class="s_title">最受争议文章 »</div> | |||
<ul> | |||
{dede:list bind='GetSortArc' order='badpost' orderway='desc'} | |||
<li><a href='{dede:field name='arcurl'/}'>{dede:field name='title'/}</a></li> | |||
{/dede:list} | |||
</ul> | |||
</div> | |||
<div class="s_border mt10"> | |||
<div class="s_title">最热门的文章 »</div> | |||
<ul> | |||
{dede:list bind='GetSortArc' order='click' orderway='desc'} | |||
<li><a href='{dede:field name='arcurl'/}'>{dede:field name='title'/}</a></li> | |||
{/dede:list} | |||
</ul> | |||
</div> <!--最爱好评的文章 --> | |||
<div class="s_member mt10"> | |||
<div class="s_title">活跃会员列表 »</div> | |||
<ul> | |||
{dede:memberlist row='15'} | |||
<li><a href='{dede:field name='spaceurl'/}' target='_blank'><img src='{dede:field.face/}' alt="{dede:field.spacename/}" height="44" width="44" /><br />{dede:field.uname/}</a></li> | |||
{/dede:memberlist} | |||
</ul> | |||
</div> <!--最爱好评的文章 --> | |||
</div> | |||
<div id="temDiv" style="clear:both"></div> | |||
<!--右侧相关 --> | |||
</div> | |||
</div> | |||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||
</div> | |||
</body> | |||
</html> |
@@ -1,159 +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> | |||
<script type="text/javascript" language="javascript"> | |||
<!-- | |||
var reMethod = "<?php echo ($cfg_soft_lang == 'utf-8') ? 'POST' : 'GET';?>"; | |||
//增加链接 | |||
function AddnewLink(){ | |||
var taget_obj = $Obj('linkList'); | |||
var linktype,getquery; | |||
getquery = ""; | |||
if($Obj('title').value==''){ | |||
alert('链接标题不能为空!'); | |||
return false; | |||
} | |||
getquery += "&title="+$Obj('title').value; | |||
if($Obj('url').value==''){ | |||
alert('链接网址不能为空!'); | |||
return false; | |||
} | |||
getquery += "&url="+$Obj('url').value; | |||
$("#linkList").html("正在处理..!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载列表</u></a>."); | |||
$.ajax({ | |||
type: reMethod, | |||
url: "flink_main.php", | |||
data: "dopost=addnew"+getquery, | |||
dataType: 'html', | |||
success: function(result) | |||
{ | |||
$("#linkList").html(result); | |||
} | |||
}); | |||
} | |||
//更新类目 | |||
function UpdateType(tid){ | |||
var taget_obj = $Obj('linkList'); | |||
var linktype,getquery; | |||
getquery = ""; | |||
if($Obj('title'+tid).value==''){ | |||
alert('链接标题不能为空!'); | |||
return false; | |||
} | |||
getquery += "&title="+$Obj('title'+tid).value; | |||
if($Obj('url'+tid).value==''){ | |||
alert('链接网址不能为空!'); | |||
return false; | |||
} | |||
getquery += "&url="+$Obj('url'+tid).value; | |||
$("#linkList").html("正在处理..!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载列表</u></a>."); | |||
$.ajax({ | |||
type: reMethod, | |||
url: "flink_main.php", | |||
data: "dopost=update&aid="+tid+getquery, | |||
dataType: 'html', | |||
success: function(result) | |||
{ | |||
$("#linkList").html(result); | |||
} | |||
}); | |||
} | |||
//删除链接 | |||
function DelType(tid){ | |||
var taget_obj = $Obj('linkList'); | |||
var titlename = $Obj('title'+tid).value; | |||
if(!window.confirm('你确定要删除链接:'+titlename+' 吗?')){ return false; } | |||
$("#linkList").html("正在处理..!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载列表</u></a>."); | |||
$.ajax({ | |||
type: reMethod, | |||
url: "flink_main.php", | |||
data: "dopost=del&aid="+tid, | |||
dataType: 'html', | |||
success: function(result) | |||
{ | |||
$("#linkList").html(result); | |||
} | |||
}); | |||
} | |||
//重载类目 | |||
function ReLoadList(oby){ | |||
var taget_obj = $Obj('typeList'); | |||
$.ajax({ | |||
type: reMethod, | |||
url: "flink_main.php", | |||
data: "dopost=reload", | |||
dataType: 'html', | |||
success: function(result) | |||
{ | |||
$("#linkList").html(result); | |||
} | |||
}); | |||
} | |||
--> | |||
</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 class="thisTab"><a href="flink_main.php">书签管理</a></li> | |||
<li><a href="edit_space_info.php"><span>空间设置</span></a></li> | |||
<li><a href="spaceskin.php">风格选择</a></li> | |||
</ul> | |||
</div> | |||
<script type="text/javascript" src="js/table_function.js"></script> | |||
<div id="mainCp" class="postForm"> | |||
<h3 class="meTitle"><strong>书签管理</strong></h3> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0"> | |||
<thead> | |||
<tr> | |||
<td width="20%" align="right">链接名称:</td> | |||
<td><input name="title" type="text" id="title" class="intxt" style="width:170px;" /> | |||
<button class="button2 ml5" type="submit" onclick='AddnewLink()'>增加</button></td> | |||
</tr> | |||
</thead> | |||
<thead> | |||
<tr> | |||
<td height="10"></td> | |||
</tr> | |||
</thead> | |||
<tbody> | |||
<tr> | |||
<td width="20%" align="right">链接网址:</td> | |||
<td><input name="url" type="text" id="url" class="intxt" value="http://" /></td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
<h3 class="meTitle" style="padding-top: 10px;"><strong>已有链接管理</strong></h3> | |||
<div id="linkList" class="postForm doPost"> | |||
<?php GetLinkList($dsql); ?> | |||
</div> | |||
<!--主操作区域 --> | |||
</div> | |||
</div> | |||
</div> | |||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||
</div> | |||
</body> | |||
</html> |
@@ -1,10 +0,0 @@ | |||
<script language="javascript" type="text/javascript"> | |||
window.onload=function (){ | |||
setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000); | |||
} | |||
</script> | |||
<div id="footer"> | |||
<div class="fLeft">Copyright © 2004-2020 DedeCMS. 织梦科技 版权所有</div> | |||
<div id="time" class="fRight"></div> | |||
</div> |
@@ -1,167 +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" language='javascript' src='templets/js/main.js'></script> | |||
<script type="text/javascript" language="javascript" src="../static/js/dedeajax2.js"></script> | |||
<script type="text/javascript" src="templets/js/table_function.js"></script> | |||
<script type="text/javascript" src="templets/js/leftmenu.js"></script> | |||
<script type="text/javascript"> | |||
var reMethod = "<?php echo ($cfg_soft_lang == 'utf-8') ? 'POST' : 'GET';?>"; | |||
var pageno = 1; | |||
var totalrow = <?php echo $totalRow; ?>; | |||
var pagesize = <?php echo $pagesize; ?>; | |||
var selitem = 0; | |||
//加载列表 | |||
function ReloadPage(){ | |||
$("#rslist").html("加载中...<br>[<a href=\"javascript:LoadPage('"+pageno+"')\"><u>点击此重新加载列表</u></a>]"); | |||
$.ajax({type: reMethod,url: "guestbook_admin.php", | |||
data: "dopost=getlist&pageno="+pageno, | |||
dataType: 'html', | |||
success: function(result){$("#rslist").html(result);} | |||
}); | |||
} | |||
//载入指定页的列表 | |||
function LoadPage(npage){ | |||
pageno = npage; | |||
ReloadPage(); | |||
ReloadPageNum(pageno); | |||
} | |||
//删除留言 | |||
function DelNote(nid){ | |||
if(!window.confirm('你确定要删除这则留言吗?')) | |||
{ | |||
return false; | |||
} | |||
totalrow = totalrow - 1; | |||
var pagenum = Math.ceil(totalrow/pagesize); | |||
if(pagenum<=pageno) pageno = pagenum; | |||
$("#rslist").html("加载中...<br>[<a href=\"javascript:LoadPage('"+pageno+"')\"><u>点击此重新加载列表</u></a>]"); | |||
$.ajax({type: reMethod,url: "guestbook_admin.php", | |||
data: "dopost=del&aid="+nid+"&pageno="+pageno, | |||
dataType: 'html', | |||
success: function(result){$("#rslist").html(result);} | |||
}); | |||
LoadPage(pageno); | |||
} | |||
//获得选中文项的ID | |||
function getCheckboxItem() | |||
{ | |||
var allSel=""; | |||
selitem = 0; | |||
if(document.form1.ids.value){ | |||
selitem++; | |||
return document.form1.ids.value; | |||
} | |||
for(i=0;i<document.form1.ids.length;i++){ | |||
if(document.form1.ids[i].checked){ | |||
if(allSel=="") allSel=document.form1.ids[i].value; | |||
else allSel=allSel+","+document.form1.ids[i].value; | |||
selitem++; | |||
} | |||
} | |||
return allSel; | |||
} | |||
//批量删除留言 | |||
function DelNotes(){ | |||
var listArea = $Obj('rslist'); | |||
var aids = getCheckboxItem(); | |||
if(selitem==0) | |||
{ | |||
alert("你没选中任何内容!"); | |||
return false; | |||
} | |||
if(!window.confirm('你确定要删除这些留言吗?')) | |||
{ | |||
return false; | |||
} | |||
totalrow = totalrow - selitem; | |||
var pagenum = Math.ceil(totalrow/pagesize); | |||
if(pagenum<=pageno) pageno = pagenum; | |||
$("#rslist").html("加载中...<br>[<a href=\"javascript:LoadPage('"+pageno+"')\"><u>点击此重新加载列表</u></a>]"); | |||
$.ajax({type: reMethod,url: "guestbook_admin.php", | |||
data: "dopost=del&ids="+aids+"&pageno="+pageno, | |||
dataType: 'html', | |||
success: function(result){$("#rslist").html(result);} | |||
}); | |||
LoadPage(pageno); | |||
} | |||
//重新加载分页列表 | |||
function ReloadPageNum(startnum){ | |||
var pagenum = Math.ceil(totalrow/pagesize); | |||
var listsize = 3; | |||
var ahtml = ""; | |||
var startloop = 1; | |||
var endnum = 0; | |||
ahtml += "<span>共:"+totalrow+" 条记录/"+pagenum+"页</span> "; | |||
if(pageno>1) ahtml += "<a href='#' onclick='LoadPage("+(pageno-1)+")'>↑上页</a> "; | |||
if(startnum >= pagenum-listsize){ | |||
startloop = pagenum-(listsize*2); | |||
if(startloop<1) startloop = 1; | |||
for(i=startloop;i<=pagenum;i++){ | |||
if(i==pageno) ahtml += "<span style='color:#555;font-weight:bold;'>"+i+"</span>"; | |||
else ahtml += "<a href='#' onclick='LoadPage("+i+")'>"+i+"</a> "; | |||
} | |||
} | |||
else if(pagenum < listsize){ | |||
for(i=1;i<=pagenum;i++){ | |||
if(i==pageno) ahtml += "<span style='background:#006600; color:#FFFFFF;'>"+i+"</span>"; | |||
else ahtml += "<a href='#' onclick='LoadPage("+i+")'>"+i+"</a> "; | |||
} | |||
} | |||
else{ | |||
startloop = startnum-listsize; | |||
if(startloop<1){ startloop=1; endnum = startloop + (listsize*2); } | |||
else{ endnum = startnum+listsize; } | |||
if(endnum >= pagenum) endnum = pagenum; | |||
for(i=startloop;i<=endnum;i++){ | |||
if(i==pageno) ahtml += "<span style='background:#006600; color:#FFFFFF;'>"+i+"</span>"; | |||
else ahtml += "<a href='#' onclick='LoadPage("+i+")'>"+i+"</a> "; | |||
} | |||
} | |||
if(pageno<pagenum) ahtml += "<a href='#' onclick='LoadPage("+(pageno+1)+")'>下页↓</a> "; | |||
$('#pagelist').html(ahtml); | |||
} | |||
</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 class="thisTab"><a href="#"><span>留言板</span></a></li> | |||
</ul> | |||
<div class="tabOther"> | |||
<button id="checkedClick" type="button" class="greenBtn1">全选</button> | |||
<button type="button" onclick="DelNotes()" class="greenBtn3">删除选中</button> | |||
</div> | |||
</div> | |||
<div id="mainCp"> | |||
<form name="form1"> | |||
<span id='rslist'> | |||
<?php GetList($dsql,$pageno,$pagesize,'aid'); ?> | |||
</span> | |||
</form> | |||
<div id="pagelist"></div> | |||
<!--主操作区域 --> | |||
<script type="text/javascript"> | |||
ReloadPageNum(1); | |||
</script> | |||
</div> | |||
</div> | |||
</div> | |||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||
</div> | |||
</body> | |||
</html> |
@@ -1,100 +0,0 @@ | |||
<?php | |||
//未登录显示的head | |||
if(!$cfg_ml->IsLogin()) { | |||
?> | |||
<div id="header"> | |||
<div id="siteNav"> | |||
<div class="innerWrap"> | |||
<div id="loginInfo"> | |||
<script type="text/javascript"> | |||
var now=(new Date()).getHours(); | |||
if(now>0&&now<=6){ | |||
document.write("午夜好,"); | |||
}else if(now>6&&now<=11){ | |||
document.write("早上好,"); | |||
}else if(now>11&&now<=14){ | |||
document.write("中午好,"); | |||
}else if(now>14&&now<=18){ | |||
document.write("下午好,"); | |||
}else{ | |||
document.write("晚上好,"); | |||
} | |||
</script> | |||
游客 | |||
</div> | |||
<ul id="quickMenu"> | |||
<li><a title="网站主页" href="../">网站主页</a> </li> | |||
<li><a title="注册" href="../member/index_do.php?fmdo=user&dopost=regnew">注册</a> </li> | |||
<li><a title="登录" href="../member/login.php">登录</a> </li> | |||
<li class="help"> <a title="DEDECMS 帮助中心" href="http://help.dedecms.com" target="_blank">帮助</a> </li> | |||
</ul> | |||
</div> | |||
</div> | |||
</div> | |||
<?php | |||
} | |||
//登录后显示的head | |||
else { | |||
?> | |||
<div id="header"> | |||
<div id="siteNav"> | |||
<div class="innerWrap"> | |||
<div id="loginInfo"> | |||
<script type="text/javascript"> | |||
var now=(new Date()).getHours(); | |||
if(now>0&&now<=6){ | |||
document.write("午夜好,"); | |||
}else if(now>6&&now<=11){ | |||
document.write("早上好,"); | |||
}else if(now>11&&now<=14){ | |||
document.write("中午好,"); | |||
}else if(now>14&&now<=18){ | |||
document.write("下午好,"); | |||
}else{ | |||
document.write("晚上好,"); | |||
} | |||
</script> | |||
<a href="#" class="userName"><?php echo $cfg_ml->M_UserName?></a> <a href="../member/index_do.php?fmdo=login&dopost=exit#">[退出]</a> | |||
<?php | |||
$pms = $dsql->GetOne("SELECT COUNT(*) AS nums FROM #@__member_pms WHERE toid='{$cfg_ml->M_ID}' AND `hasview`=0 AND folder = 'inbox'"); | |||
if($pms['nums'] > 0) | |||
{ | |||
echo "<a href='/member/pm.php' target='_blank'>短消息 [<font color='#FF0000'>{$pms['nums']}</font>]</a>"; | |||
} | |||
elseif($pms['nums']==0) | |||
{ | |||
echo "<a href='/member/pm.php' target='_blank'>短消息</a>"; | |||
} | |||
?> | |||
</div> | |||
<ul id="quickMenu"> | |||
<li class="home"><a href="../" title="会员中心首页">主页</a></li> | |||
<li><a href="#">内容中心</a></li> | |||
<li><a href="<?php echo $myurl; ?>" title="会员空间">会员空间</a></li> | |||
<li><a href="../member/mystow.php" title="收藏夹">收藏夹</a></li> | |||
<li class="help"><a href="http://help.dedecms.com" title="DEDECMS 帮助中心">帮助</a></li> | |||
</ul> | |||
</div> | |||
</div> | |||
<!--顶部导航 --> | |||
<div id="topPic"> <a href="../member/"><img alt="会员中心" src="../member/templets/images/m_logo.gif" class="topLogo"/></a> </div> | |||
<div id="topNav"> | |||
<ul id="appIterm"> | |||
<li <?php echo ($menutype == 'content')? 'class="thisApp"' : "" ;?>><a href="../member/content_list.php?channelid=1">内容中心</a></li> | |||
<li <?php echo ($menutype == 'mydede')? 'class="thisApp"' : "" ;?>><a href="../member/" title="我的织梦">我的织梦</a></li> | |||
<li <?php echo ($menutype == 'config')? 'class="thisApp"' : "" ;?>><a href="../member/edit_baseinfo.php" title="系统设置">系统设置</a></li> | |||
</ul> | |||
<!--程序导航列表 --> | |||
<div id="channel"> | |||
<ul> | |||
<li <?php echo ($menutype_son == 'pm')? 'class="thisApp"' : "" ;?>><a href="../member/pm.php" title="短消息"><span>短消息</span></a></li> | |||
<li <?php echo ($menutype_son == 'gu')? 'class="thisApp"' : "" ;?>><a href="../member/guestbook_admin.php" title="留言板"><span>留言板</span></a></li> | |||
<li <?php echo ($menutype_son == 'op')? 'class="thisApp"' : "" ;?>><a href="../member/operation.php" title="消费中心"><span>消费中心</span></a></li> | |||
</ul> | |||
</div> | |||
<!--导航栏目项 --> | |||
</div> | |||
</div> | |||
<?php | |||
} | |||
?> |
@@ -1 +0,0 @@ | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> |
@@ -8,7 +8,6 @@ | |||
<div class="member-rank text-danger">积分:<?php echo $cfg_ml->M_Scores;?> | |||
金币:<?php echo $cfg_ml->M_Money;?> <a href="buy.php" class="btn btn-danger btn-sm">充值</a> | |||
</div> | |||
<div class="member-des text-secondary">本年度累计学习 0 分钟,已登录 12天 </div> | |||
<ul class="nav justify-content-center"> | |||
<li class="nav-item"> | |||
<a class="nav-link" href="pm.php">短消息</a> | |||
@@ -46,20 +46,20 @@ while ($channel = $dsql->GetArray('addmod')) { | |||
<a href="<?php echo $cfg_memberurl;?>/mystow.php">我的收藏</a> | |||
</li> | |||
<li class="list-group-item justify-content-between align-items-center"> | |||
<a href="javascript:;">钱包积分</a> | |||
<a href="<?php echo $cfg_memberurl;?>/buy.php">钱包积分</a> | |||
</li> | |||
<li class="list-group-item justify-content-between align-items-center"> | |||
<div data-toggle="collapse" data-target="#collapseOrder">订单详情<span class="dropdown"></span></div> | |||
<div id="collapseOrder" class="collapse mt-3"> | |||
<div id="collapseOrder" class="collapse mt-3<?php echo (isset($_menu_order) && $_menu_order===true)? ' show' : '';?>"> | |||
<ul class="list-group list-group-flush"> | |||
<li class="list-group-item justify-content-between align-items-center"> | |||
<a href="javascript:;">购买内容</a> | |||
<li class="list-group-item justify-content-between align-items-center<?php if(isset($_menu_orderstate) && $_menu_orderstate === 0) echo ' active';?>"> | |||
<a href="<?php echo $cfg_memberurl;?>/mypay.php">购买内容</a> | |||
</li> | |||
<li class="list-group-item justify-content-between align-items-center"> | |||
<a href="javascript:;">购买商品</a> | |||
<li class="list-group-item justify-content-between align-items-center<?php if(isset($_menu_orderstate) && $_menu_orderstate === 1) echo ' active';?>"> | |||
<a href="<?php echo $cfg_memberurl;?>/shops_orders.php">购买商品</a> | |||
</li> | |||
<li class="list-group-item justify-content-between align-items-center"> | |||
<a href="javascript:;">金币订单</a> | |||
<li class="list-group-item justify-content-between align-items-center<?php if(isset($_menu_orderstate) && $_menu_orderstate === 2) echo ' active';?>"> | |||
<a href="<?php echo $cfg_memberurl;?>/operation.php">金币订单</a> | |||
</li> | |||
</ul> | |||
</div> | |||
@@ -1,135 +0,0 @@ | |||
<?php | |||
$add_channel_menu = array(); | |||
//如果为游客访问,不启用左侧菜单 | |||
if (!empty($cfg_ml->M_ID)) { | |||
$channelInfos = array(); | |||
$dsql->Execute('addmod', "SELECT id,nid,typename,useraddcon,usermancon,issend,issystem,usertype,isshow FROM `#@__channeltype` "); | |||
while ($menurow = $dsql->GetArray('addmod')) { | |||
$channelInfos[$menurow['nid']] = $menurow; | |||
//禁用的模型 | |||
if ($menurow['isshow'] == 0) { | |||
continue; | |||
} | |||
//其它情况 | |||
if ( | |||
$menurow['issend'] != 1 || $menurow['issystem'] == 1 | |||
|| (!preg_match("#" . $cfg_ml->M_MbType . "#", $menurow['usertype']) && trim($menurow['usertype']) != '') | |||
) { | |||
continue; | |||
} | |||
$menurow['ddcon'] = empty($menurow['useraddcon']) ? 'archives_add.php' : $menurow['useraddcon']; | |||
$menurow['list'] = empty($menurow['usermancon']) ? 'content_list.php' : $menurow['usermancon']; | |||
$add_channel_menu[] = $menurow; | |||
} | |||
unset($menurow); | |||
?> | |||
<div id="mcpsub"> | |||
<div class="topGr"></div> | |||
<div id="menuBody"> | |||
<!-- 内容中心菜单--> | |||
<?php | |||
if ($menutype == 'content') { | |||
?> | |||
<h2 class="menuTitle" onclick="menuShow('menuFirst')" id="menuFirst_t"><b></b>系统模型内容</h2> | |||
<ul id="menuFirst"> | |||
<?php | |||
//是否启用文章投稿 | |||
if ($channelInfos['article']['issend'] == 1 && $channelInfos['article']['isshow'] == 1) { | |||
?> | |||
<li class="articles"><a href="../member/content_list.php?channelid=1" title="已发布的文章"><b></b>文章</a><a href="../member/article_add.php" class="act" title="发表新文章">发表</a></li> | |||
<?php | |||
} | |||
//是否启用图集投稿 | |||
if ( | |||
$channelInfos['image']['issend'] == 1 && $cfg_mb_album == 'Y' && $channelInfos['image']['isshow'] == 1 | |||
&& ($channelInfos['image']['usertype'] == '' || preg_match("#" . $cfg_ml->fields['mtype'] . "#", $channelInfos['image']['usertype'])) | |||
) { | |||
?> | |||
<li class="photo"><a href="../member/content_list.php?channelid=2" title="管理图集"><b></b>图集</a><a href="../member/album_add.php" class="act" title="新建图集">新建</a></li> | |||
<?php | |||
} | |||
//是否启用软件投稿 | |||
if ( | |||
$channelInfos['soft']['issend'] == 1 && $channelInfos['soft']['isshow'] == 1 | |||
&& ($channelInfos['image']['usertype'] == '' || preg_match("#" . $cfg_ml->fields['mtype'] . "#", $channelInfos['image']['usertype'])) | |||
) { | |||
?> | |||
<li class="soft"><a href="../member/content_list.php?channelid=3" title="已发布的软件"><b></b>软件</a><a href="../member/soft_add.php" title="上传软件" class="act">上传</a></li> | |||
<?php | |||
} | |||
?> | |||
</ul> | |||
<?php | |||
//是否允许对自定义模型投稿 | |||
if ($cfg_mb_sendall == 'Y') { | |||
?> | |||
<h2 class="menuTitle" onclick="menuShow('menuSec')" id="menuSec_t"><b></b>自定义内容</h2> | |||
<ul id="menuSec"> | |||
<?php | |||
foreach ($add_channel_menu as $nnarr) { | |||
?> | |||
<li class="<?php echo $nnarr['nid']; ?>"><a href="../member/<?php echo $nnarr['list']; ?>?channelid=<?php echo $nnarr['id']; ?>" title="已发布的<?php echo $nnarr['typename']; ?>"><b></b><?php echo $nnarr['typename']; ?></a><a href='archives_do.php?dopost=addArc&channelid=<?php echo $nnarr['id']; ?>' class="act" title="发表新文章">发表</a></li> | |||
<?php | |||
} | |||
} | |||
?> | |||
</ul> | |||
<?php | |||
} | |||
?> | |||
<!-- 我的织梦菜单--> | |||
<?php | |||
if ($menutype == 'mydede') { | |||
?> | |||
<h2 class="menuTitle" onclick="menuShow('menuFirst')" id="menuFirst_t"><b></b>会员互动</h2> | |||
<ul id="menuFirst"> | |||
<li class="icon mystow"><a href="../member/mystow.php"><b></b>我的收藏夹</a></li> | |||
<?php | |||
if ($cfg_feedback_forbid == 'N') { | |||
//<li class="icon feedback"><a href='../member/myfeedback.php'>我的评论</a></li> | |||
} | |||
$dsql->Execute('nn', 'Select indexname,indexurl From `#@__sys_module` where ismember=1 '); | |||
while ($nnarr = $dsql->GetArray('nn')) { | |||
@preg_match("/\/(.+?)\//is", $nnarr['indexurl'], $matches); | |||
$nnarr['class'] = isset($matches[1]) ? $matches[1] : 'channel'; | |||
$nnarr['indexurl'] = str_replace("**", "=", $nnarr['indexurl']); | |||
?> | |||
<li class="<?php echo $nnarr['class']; ?>"><a href="<?php echo $nnarr['indexurl']; ?>"><b></b><?php echo $nnarr['indexname']; ?>模块</a></li> | |||
<?php | |||
} | |||
?> | |||
</ul> | |||
<?php | |||
} | |||
?> | |||
<!-- 系统设置菜单--> | |||
<?php | |||
if ($menutype == 'config') { | |||
?> | |||
<h2 class="menuTitle" onclick="menuShow('menuFirst')" id="menuFirst_t"><b></b><?php echo $cfg_ml->M_MbType; ?>资料</a></h2> | |||
<ul id="menuFirst"> | |||
<li class="icon baseinfo"><a href="../member/edit_baseinfo.php"><b></b>基本资料</a></li> | |||
<li class="icon myinfo"><a href="../member/edit_fullinfo.php"><b></b><?php echo $cfg_ml->M_MbType; ?>资料</a></li> | |||
<li class="icon face"><a href="../member/edit_face.php"><b></b>头像设置</a></li> | |||
</ul> | |||
<h2 class="menuTitle" onclick="menuShow('menuSec')" id="menuSec_t"><b></b>空间管理</h2> | |||
<ul id="menuSec"> | |||
<li class="icon mtypes"><a href="../member/mtypes.php"><b></b>分类管理</a></li> | |||
<li class="icon flink"><a href="../member/flink_main.php"><b></b>书签管理</a></li> | |||
<li class="icon info"><a href="../member/edit_space_info.php"><b></b>空间设置</a></li> | |||
<li class="icon spaceskin"><a href="../member/spaceskin.php"><b></b>风格选择</a></li> | |||
</ul> | |||
<?php | |||
} | |||
?> | |||
<!--<h2 class="menuTitle"><b class="showMenu"></b>操作主菜单项</h2> --> | |||
</div> | |||
<div class="buttomGr"></div> | |||
</div> | |||
<?php | |||
} | |||
?> | |||
<!--左侧操作菜单项 --> |
@@ -1,14 +1,81 @@ | |||
<!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> | |||
<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"> | |||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||
<div class="container-fluid pannel"> | |||
<div class="container"> | |||
<div class="row"> | |||
<?php | |||
$_menu_order = true; // 展开编辑信息 | |||
$_menu_orderstate = 0; | |||
?> | |||
<?php include(DEDEMEMBER."/templets/menu.htm"); ?> | |||
<div class="pannel-main col-md-9 mt-3 mb-3"> | |||
<div class="pannel-main-container"> | |||
<div class="table-responsive"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table"> | |||
<thead> | |||
<tr> | |||
<th width="5%"></th> | |||
<th width="5%">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="../plus/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 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> | |||
</div> | |||
<nav> | |||
{dede:pagelist listsize=5 /} | |||
</nav> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</main> | |||
<?php include(DEDEMEMBER."/templets/footer.htm"); ?> | |||
<script type="text/javascript"> | |||
//获得选中文件的文件名 | |||
function GetCheckfolderItem() | |||
{ | |||
@@ -39,65 +106,7 @@ | |||
location = "mypay.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 class="thisTab"><a href="mypay.php" id="buy">我购买的文章</a></li> | |||
<li><a href="shops_orders.php">商品定单</a></li> | |||
<li><a href="shops_products.php" id="buy">我购买的商品</a></li> | |||
</ul> | |||
</div> | |||
<div id="mainCp"> | |||
<h3 class="meTitle">我购买的文章</h3> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||
<thead> | |||
<tr> | |||
<th width="5%"></th> | |||
<th width="5%">ID</th> | |||
<th >标题</th> | |||
<th width="10%">消费金币</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="../plus/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 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/}</td> | |||
</tr> | |||
</tfoot> | |||
</table> | |||
</div> | |||
<!--主操作区域 --> | |||
</div> | |||
</div> | |||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||
</div> | |||
</script> | |||
</body> | |||
</html> | |||
</html> |
@@ -1,102 +1,108 @@ | |||
<!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> | |||
<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/table_function.js"></script> | |||
<script type="text/javascript" src="templets/js/leftmenu.js"></script> | |||
<script type="text/javascript"> | |||
//获得选中文件的文件名 | |||
function GetCheckfolderItem() | |||
{ | |||
var allSel=''; | |||
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=='') { | |||
alert("你没选中任何信息!"); | |||
return false; | |||
} | |||
if(window.confirm("你确定要删除这些消息么?")) | |||
{ | |||
location = "operation.php?dopost=del&ids="+selid; | |||
} | |||
} | |||
</script> | |||
<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> | |||
<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 class="thisTab"><a href="operation.php">点卡/会员定单</a></li> | |||
<li><a href="mypay.php" id="buy">我购买的文章</a></li> | |||
<li><a href="shops_orders.php">商品定单</a></li> | |||
<li><a href="shops_products.php" id="buy">我购买的商品</a></li> | |||
</ul> | |||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | |||
<main class="member"> | |||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||
<div class="container-fluid pannel"> | |||
<div class="container"> | |||
<div class="row"> | |||
<?php | |||
$_menu_order = true; // 展开编辑信息 | |||
$_menu_orderstate = 2; | |||
?> | |||
<?php include(DEDEMEMBER."/templets/menu.htm"); ?> | |||
<div class="pannel-main col-md-9 mt-3 mb-3"> | |||
<div class="pannel-main-container"> | |||
<div class="table-responsive"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table"> | |||
<thead> | |||
<tr> | |||
<th width="25%" colspan="2">订单号</th> | |||
<th width="25%">产品</th> | |||
<th>详细状态信息</th> | |||
<th width="15%">状态</th> | |||
<th width="10%">时间</th> | |||
</tr> | |||
</thead> | |||
<tbody> | |||
<form name='form1' action="operation.php" method="post"> | |||
<input type='hidden' name='ftype' value='del' /> | |||
{dede:datalist} | |||
<tr> | |||
<td align="center"><input type="checkbox" name="deleteid" value="{dede:field.aid/}"/></td> | |||
<td>{dede:field.buyid/}</td> | |||
<td><?php echo $fields['pname']; ?></td> | |||
<td align="center"><?php echo $fields['oldinfo']; ?></td> | |||
<td align="center">{dede:field.sta function="GetSta(@me)" /}</td> | |||
<td align="center">{dede:field.mtime function="GetDateMk(@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> | |||
</form> | |||
</tbody> | |||
</table> | |||
</div> | |||
<nav> | |||
{dede:pagelist listsize=5 /} | |||
</nav> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div id="mainCp"> | |||
<!--内容消息提示 --> | |||
<h3 class="meTitle">点卡/会员定单</h3> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||
<thead> | |||
<tr> | |||
<th width="25%" colspan="2">订单号</th> | |||
<th width="25%">产品</th> | |||
<th>详细状态信息</th> | |||
<th width="10%">状态</th> | |||
<th width="10%">时间</th> | |||
</tr> | |||
</thead> | |||
<tbody> | |||
<form name='form1' action="operation.php" method="post"> | |||
<input type='hidden' name='ftype' value='del' /> | |||
{dede:datalist} | |||
<tr> | |||
<td align="center"><input type="checkbox" name="deleteid" value="{dede:field.aid/}"/></td> | |||
<td align="center">{dede:field.buyid/}</td> | |||
<td align="center"><?php echo $fields['pname']; ?></td> | |||
<td align="center"><?php echo $fields['oldinfo']; ?></td> | |||
<td align="center">{dede:field.sta function="GetSta(@me)" /}</td> | |||
<td align="center">{dede:field.mtime function="GetDateMk(@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> | |||
</form> | |||
</tbody> | |||
<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> | |||
</main> | |||
<?php include(DEDEMEMBER."/templets/footer.htm"); ?> | |||
<script type="text/javascript"> | |||
//获得选中文件的文件名 | |||
function GetCheckfolderItem() | |||
{ | |||
var allSel=''; | |||
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; | |||
} | |||
if(window.confirm("你确定要删除这些消息么?")) | |||
{ | |||
location = "operation.php?dopost=del&ids="+selid; | |||
} | |||
} | |||
</script> | |||
</body> | |||
</html> | |||
</html> |
@@ -20,7 +20,9 @@ | |||
if (result.code === 200) { | |||
ShowMsg(`<b>标题:</b><p>${result.data.subject}</p> | |||
<b>时间:</b><p>${result.data.sendtime}</p> | |||
<b>内容</b><p>${result.data.subject}</p>`); | |||
<b>内容</b><p>${result.data.subject}</p>`,{ | |||
title : "查看短消息", | |||
}); | |||
$(`.pm-read-status[for='${id}']`).html("已阅读"); | |||
} else { | |||
ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | |||
@@ -1,14 +1,93 @@ | |||
<!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> | |||
<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"> | |||
<?php include(DEDEMEMBER."/templets/info.htm"); ?> | |||
<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"> | |||
<!--内容消息提示 --> | |||
<h5 class="meTitle">商品订单</h5> | |||
<div class="postForm" style="padding-bottom: 0px;"> | |||
<form name="form3" action="shops_products.php" method="get"> | |||
<div class="input-group" style="margin-top:3px; padding-left: 130px;"> 订单号: | |||
<input class="form-control" type='text' name='oid' size="40" value='' /> | |||
<div class="input-group-append"> | |||
<button class="btn btn-success btn-sm" type="submit">搜索</button> | |||
</div> | |||
</div> | |||
</form> | |||
</div> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table mt-3"> | |||
<thead> | |||
<tr> | |||
<th colspan="2" width="25%">订单号</th> | |||
<th>状态 </th> | |||
<th width="10%">数量 </th> | |||
<th width="10%">总计(元)</th> | |||
<th width="20%">时间 </th> | |||
</tr> | |||
</thead> | |||
<form name='form1' action="shops_orders.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"><?php echo GetSta($fields["state"],$fields["oid"])?></td> | |||
<td align="center">{dede:field.cartcount/}</td> | |||
<td align="center"><strong>{dede:field.priceCount/}</strong></td> | |||
<td align="center">{dede:field.stime function="Mydate('Y-m-d h:i:s',@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> | |||
<tfoot> | |||
<tr> | |||
<td colspan="6"><div class="pageList">{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}</td> | |||
</tr> | |||
</tfoot> | |||
</table> | |||
</div> | |||
<!--主操作区域 --> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</main> | |||
<?php include(DEDEMEMBER."/templets/footer.htm"); ?> | |||
<script type="text/javascript"> | |||
//获得选中文件的文件名 | |||
function GetCheckfolderItem() | |||
{ | |||
@@ -39,71 +118,7 @@ | |||
location = "shops_orders.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 class="thisTab"><a href="shops_orders.php">商品定单</a></li> | |||
<li><a href="shops_products.php" id="buy">我购买的商品</a></li> | |||
</ul> | |||
</div> | |||
<div id="mainCp"> | |||
<!--内容消息提示 --> | |||
<h3 class="meTitle">商品订单</h3> | |||
<div class="postForm" style="padding-bottom: 0px;"> | |||
<form name="form3" action="shops_products.php" method="get"> | |||
<div class="fLeft" style="margin-top:3px; padding-left: 130px;"> 订单号: | |||
<input class="intxt" type='text' name='oid' size="40" value='' /> | |||
<button class="button2" type="submit">搜索</button> | |||
</div> | |||
</form> | |||
</div> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list"> | |||
<thead> | |||
<tr> | |||
<th colspan="2" width="25%">订单号</th> | |||
<th>状态 </th> | |||
<th width="10%">数量 </th> | |||
<th width="10%">总计(元)</th> | |||
<th width="20%">时间 </th> | |||
</tr> | |||
</thead> | |||
<form name='form1' action="shops_orders.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"><?php echo GetSta($fields["state"],$fields["oid"])?></td> | |||
<td align="center">{dede:field.cartcount/}</td> | |||
<td align="center"><strong>{dede:field.priceCount/}</strong></td> | |||
<td align="center">{dede:field.stime function="Mydate('Y-m-d h:i:s',@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="6"><div class="pageList">{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}</td> | |||
</tr> | |||
</tfoot> | |||
</table> | |||
</div> | |||
<!--主操作区域 --> | |||
</div> | |||
</div> | |||
<?php include(DEDEMEMBER."/templets/foot.htm"); ?> | |||
</div> | |||
</script> | |||
</body> | |||
</html> |
@@ -1,6 +1,7 @@ | |||
<nav class="site-nav bg-light py-2"> | |||
<div class="container"> | |||
<div class="row"> | |||
<div class="col-12 d-flex justify-content-end user" id="_login"> | |||
<a href="<?php echo $cfg_memberurl;?>/login.php">登录</a> | |||
<a class="ml-3" href="<?php echo $cfg_memberurl;?>/index_do.php?fmdo=user&dopost=regnew">注册</a> | |||
@@ -4,12 +4,25 @@ | |||
<div class="col-12 col-sm-6 logo"><a href="<?php echo $cfg_cmsurl;?>/"><img | |||
src="<?php echo $cfg_cmsurl;?>/static/img/logo.gif" alt="<?php echo $cfg_webname;?>"></a></div> | |||
<div class="col-12 col-sm-6 d-flex justify-content-end member-actions"> | |||
<a href="javascript:;" class="cart" title="订单管理"><i class="fa fa-shopping-cart" aria-hidden="true"></i></a> | |||
<a href="pm.php" title="消息管理" class="message"> | |||
<a href="<?php echo $cfg_memberurl;?>/shops_orders.php" class="cart" title="订单管理"><i class="fa fa-shopping-cart" aria-hidden="true"></i></a> | |||
<a href="<?php echo $cfg_memberurl;?>/pm.php" title="消息管理" class="message"> | |||
消息 <span class="badge badge-danger"><?php echo $pms['nums'];?></span> | |||
</a> | |||
<a> | |||
<?php echo $cfg_ml->M_LoginID; ?> | |||
<script type="text/javascript"> | |||
var now = (new Date()).getHours(); | |||
if (now > 0 && now <= 6) { | |||
document.write("午夜好,"); | |||
} else if (now > 6 && now <= 11) { | |||
document.write("早上好,"); | |||
} else if (now > 11 && now <= 14) { | |||
document.write("中午好,"); | |||
} else if (now > 14 && now <= 18) { | |||
document.write("下午好,"); | |||
} else { | |||
document.write("晚上好,"); | |||
} | |||
</script><?php echo $cfg_ml->M_LoginID; ?> | |||
</a> | |||
<a href="<?php echo $cfg_cmsurl;?>/member/index_do.php?fmdo=login&dopost=exit#" title="退出"> | |||
<i class="fa fa-sign-out" aria-hidden="true"></i> | |||
@@ -7,18 +7,16 @@ | |||
* @license https://www.dedebiz.com/license/v6 | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/../include/common.inc.php"); | |||
require_once(DEDEINC."/arc.specview.class.php"); | |||
if(strlen($art_shortname) > 6) exit("art_shortname too long!"); | |||
$specfile = dirname(__FILE__)."spec_1".$art_shortname; | |||
require_once(dirname(__FILE__) . "/../include/common.inc.php"); | |||
require_once(DEDEINC . "/arc.specview.class.php"); | |||
if (strlen($art_shortname) > 6) exit("art_shortname too long!"); | |||
$specfile = dirname(__FILE__) . "spec_1" . $art_shortname; | |||
//如果已经编译静态列表,则直接引入第一个文件 | |||
if(file_exists($specfile)) | |||
{ | |||
include($specfile); | |||
exit(); | |||
} | |||
else | |||
{ | |||
if (file_exists($specfile)) { | |||
include($specfile); | |||
exit(); | |||
} else { | |||
$sp = new SpecView(); | |||
$sp->Display(); | |||
} | |||
} |
@@ -56,6 +56,7 @@ main.login-from { | |||
.member .member-logo { | |||
border-radius: 50%; | |||
max-width: 72px; | |||
min-height: 72px; | |||
} | |||
.member-actions a { | |||
@@ -1,4 +1,5 @@ | |||
<?php | |||
/** | |||
* @version $Id: tags.php 1 2010-06-30 11:43:09Z tianya $ | |||
* @package DedeCMS.Site | |||
@@ -7,25 +8,22 @@ | |||
* @license https://www.dedebiz.com/license/v6 | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once (dirname(__FILE__) . "/include/common.inc.php"); | |||
require_once (DEDEINC . "/arc.taglist.class.php"); | |||
require_once(dirname(__FILE__) . "/include/common.inc.php"); | |||
require_once(DEDEINC . "/arc.taglist.class.php"); | |||
$PageNo = 1; | |||
if(isset($_SERVER['QUERY_STRING'])) | |||
{ | |||
if (isset($_SERVER['QUERY_STRING'])) { | |||
$tag = trim($_SERVER['QUERY_STRING']); | |||
$tags = explode('/', $tag); | |||
if(isset($tags[1])) $tag = $tags[1]; | |||
if(isset($tags[2])) $PageNo = intval($tags[2]); | |||
} | |||
else | |||
{ | |||
if (isset($tags[1])) $tag = $tags[1]; | |||
if (isset($tags[2])) $PageNo = intval($tags[2]); | |||
} else { | |||
$tag = ''; | |||
} | |||
$tag = FilterSearch(urldecode($tag)); | |||
if($tag != addslashes($tag)) $tag = ''; | |||
if($tag == '') $dlist = new TagList($tag, 'tag.htm'); | |||
if ($tag != addslashes($tag)) $tag = ''; | |||
if ($tag == '') $dlist = new TagList($tag, 'tag.htm'); | |||
else $dlist = new TagList($tag, 'taglist.htm'); | |||
$dlist->Display(); | |||
exit(); | |||
exit(); |
@@ -4,7 +4,6 @@ | |||
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" /> | |||
<title>搜索结果页 - <?php echo $cfg_webname;?></title> | |||
<style type="text/css"> | |||
<!-- | |||
*{ | |||
padding:0px; | |||
margin:0px; | |||
@@ -130,7 +129,6 @@ input,select,textarea{ | |||
.footer span{ | |||
color:#060; | |||
} | |||
--> | |||
</style> | |||
</head> | |||
<body> | |||