Ejemplo n.º 1
0
session_start();
include './include/conn.php';
include './include/myfunction.php';
$usname = $_SESSION['usnamese'];
$usid = $_SESSION['usidse'];
$user = Getlmname('*', 'user', "id={$usid}");
if (isset($_GET['gid'])) {
    $id = $_GET['gid'];
}
$wj = rand(1, 3);
$girow = GetRow("select * from  gift where id={$id} and xianshi=3 and begin_time<{$CCtimes} and end_time>{$CCtimes}", 1);
if (!$girow) {
    exit;
}
$Sjname = Getlmname('name', 'user', "id=" . $girow['create_user_id']);
$HongBao = $girow["HongBao" . $wj];
$jifen = $girow['jifen'];
$urlfile = '抽奖扣分' . time() . rand(99, 99999);
if (empty($_SESSION['usnamese'])) {
    header("Location:/");
    exit;
}
if ($jifen > $user['jifen']) {
    $arr['success'] = "1";
    $arr['g_type'] = "4";
} else {
    $mingxi = "参加ID编号为" . $id . "的抽奖活动扣除积分";
    $smingxi = "用户" . $usname . "参加ID编号为" . $id . "的抽奖活动";
    Kjifen($usname, -$jifen, $mingxi);
    Kjifen($Sjname['name'], $jifen, $smingxi);
Ejemplo n.º 2
0
<?php

include './include/conn.php';
include './include/myfunction.php';
include 'include/publish_function.php';
$siteweb = GetSiteconfig();
$id = isset($_GET['id']) ? $_GET['id'] : "";
$rmrow = Getlmname('*', 'article', "id={$id}");
$crow = Getlmname('*', 'help_category', "id=" . $rmrow['help_id']);
$cid = $rmrow['help_id'];
$clicks = $rmrow["clicks"] + 1;
$sql_c = "update article set clicks={$clicks} where id={$id}";
mysql_query($sql_c);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php 
echo $rmrow['title'];
?>
-帮助中心-<?php 
echo $siteweb['siteName'];
?>
</title>
<meta name="keywords" content="<?php 
echo $rmrow['keyword'];
?>
">
<meta name="description" content="<?php 
echo $rmrow['description'];
Ejemplo n.º 3
0
                <li data="3">中奖用户</li>
            </ul>
        </div>
        <div class="tab_menu">
        
        	<!--start: 切换·产品详请-->
            <div class="desc show">
               <?php 
echo rnmagic($row['description']);
?>
            </div>
        	<!--end: 切换·产品详请-->
            <!--s: 切换·试用规则-->
            <div class="desc">   
                <?php 
$GGcontent = Getlmname('content', 'article', "id=2");
echo rnmagic($GGcontent['content']);
?>
                
                
            </div>
            <!--e: 切换·试用规则-->
            <!--s: 切换·申请记录-->
            <div class="desc users clearfix">
            </div>
            <!--e: 切换·申请记录-->
            <!--s: 切换·试用报告-->
            <div class="desc reports clearfix">
            </div>
			<!--e: 切换·试用报告-->
        </div>
Ejemplo n.º 4
0
    ?>
 </div>
		
		
	</div><!--simTestContent end-->
	
</div>

<div class="margin_auto w1004 border_999 bg_white">

    <div class="fz_18 fw_700 bg_gray gray text_mid pad_top_10 pad_bottom_10">请选择会员类型后才能进行相关操作,请认真选择,选择后不能再更改会员类型!</div>

    <!-- <div class="pad_50">

       <?php 
    $GGcontent = Getlmname('content', 'article', "promote_id=24 order by id desc limit 1");
    echo $GGcontent['content'];
    ?>
 

    </div>--> 

<div id="content">
  <dl>
    <dd class="rightbar"> 
    	<div class="shikeebar">
        <h2>选择成为买家</h2>
        <p>我想要免费试用,体验商品带给我更多快乐,并将这份快乐传递给更多人!所以我是一名:试客</p>
        <a class="shikeebtn" href="register.php?step=2&exid=<?php 
    echo $exid;
    ?>
Ejemplo n.º 5
0
                $count = Kmoney($name, $money, $mingxi, $dataName, $dataarr['dongjie'], 1);
                if ($count > 0) {
                    $updateMessage = "操作成功";
                } else {
                    $updateMessage = "操作失败,用户金额不足";
                }
            }
        } else {
            $updateMessage = "操作金额、操作说明、金额操作类型不能为空";
        }
    }
}
if (isset($_GET['id'])) {
    $id = $_GET['id'];
}
$mnamexx = Getlmname('*', 'user', "id={$id}");
?>
<!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=utf-8" />
<title><?php 
echo $siteweb['siteTitle'];
?>
</title>
<link rel="stylesheet" href="css/zbkadmin.css">
</head>
<body>
<table class="admin-table" cellpadding="0" cellspacing="0" border="0">
    <tr>
        
Ejemplo n.º 6
0
    </span>
    <span class="td3">
        描述
    </span>
    <span class="td4">
        操作
    </span>
</div>
<div class="right_list actionlist">
    <ul>
    
        <!--这里的几个li代表不同的进度,嵌套php时注意判断--->
<?php 
if ($GETSQL['count'] > 0) {
    while ($row = mysql_fetch_assoc($result)) {
        $Hdxx = Getlmname('id,title,pic_url,jifen,create_user_id,coupon_price,detail_url', 'duihuan', "id=" . $row['cj_gid']);
        $HDidd = $Hdxx['id'];
        $rowstatus = GetRow("select b.xianshi from user_duihuan as a left join duihuan as b on a.cj_gid=b.id where b.id={$HDidd}", 1);
        ?>
    	<!--刚申请-->
        <li class="list_cj" id="li_<?php 
        echo $row['cj_id'];
        ?>
">
            <div class="cover">
                <a href="/v1duihuan_list.php?classid=<?php 
        echo $Hdxx['id'];
        ?>
" target="_blank" title="<?php 
        echo $Hdxx['title'];
        ?>
Ejemplo n.º 7
0
      <div class="tab_menu"> 
        
        <!--start: 切换·产品详请-->
        <div class="desc">
          <?php 
echo rnmagic($row['description']);
?>
        </div>
        <!--end: 切换·产品详请--> 
        <!--s: 切换·试用规则-->
        <div class="desc show">
          <div class="tryout">
            <h3>试用规则:</h3>
            <p>
              <?php 
$GGcontent = Getlmname('content', 'article', "tiaoyong_id='free'");
$str = stripslashes(rnmagic($GGcontent['content']));
echo $str;
?>
            </p>
            详细试用任务单,申请成功后可在对应的申请中获得。
          </div>
          <div class="tryout">
            <h3> 试用流程:</h3>
            <p> 1、申请试用,获得试用资格。<br>
              2、申请通过后,按照流程提示,以 <em><?php 
echo $row['coupon_price'];
?>
</em> 元去指定平台下单。<br>
              3、下单完成后,回找白菜填写购买付款的订单号。<br>
              4、等待收货 → 确认收货 → 给予宝贝评价,并填写试用报告。<br>
Ejemplo n.º 8
0
<?php

//***********程序作者Email:zhuanbaoke@qq.com  版权所有*******************
include './include/ussession.php';
include './include/conn.php';
include './include/myfunction.php';
$siteweb = GetSiteconfig();
$Tcurrnetpage = "task_list";
$renwuid = $_GET['id'];
$rmrow = Getlmname('*', 'user_renwu', "id={$renwuid}");
?>
<!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=utf-8" />
<title>用户<?php 
echo $rmrow['name'];
?>
提交的积分任务搞件</title>
</head>

<body>
<style>
.view_report { line-height:1.8; font-size:14px; padding:30px}
.view_report p { padding-top:10px}
</style>
<!--查看稿件页,用于"查看稿件",无头部和尾部,直接显示用户提交的内容就行。-->
<div class="view_report">
<?php 
echo $rmrow['contents'];
?>
Ejemplo n.º 9
0
function Autoshenhe($tableA, $tableB, $fields, $tid, $T_jieshu, $statusA = 'xianshi=0', $statusB = 'xianshi=1', $d = 1)
{
    global $SK;
    if ($d) {
        $AutoDate = date('Y-m-d H:i:s', strtotime('-7day'));
        $AutoDate = "'{$AutoDate}'";
    } else {
        $AutoDate = strtotime('-7day');
    }
    $sql = "select a.id,a.userid,b.mdnum from {$tableA} as a left join {$tableB} as b on b.id={$tid} where b.{$T_jieshu}<{$AutoDate} and a.{$fields}={$tid} and {$statusA} GROUP BY a.id";
    $result = mysql_query($sql);
    $count = mysql_num_rows($result);
    if ($count > 0) {
        while ($row = mysql_fetch_assoc($result)) {
            $Autoshenheid[] = $row['id'];
            $Autouserid[] = $row['userid'];
            $Automdnum[] = $row['mdnum'];
        }
        foreach ($Autoshenheid as $key => $values) {
            $count = GetUpdate($tableA, $statusB, $values, '1=1');
            $Usidxx = Getlmname('name', 'user', "id=" . $Autouserid[$key]);
            $Kjifen = Kjifen($Usidxx['name'], $Automdnum[$key], $SK['MingxiD']);
        }
        return true;
    }
    return false;
}
Ejemplo n.º 10
0
<style>
.tasklist .taskinfobox { float: left; width: 520px; margin-left: 10px; }
.tasklist .tasktitle { line-height: 28px; white-space: nowrap; overflow: hidden; }
.tasklist .taskinfo { clear: both; }
.tasklist .taskcontrol { float: right; margin: 20px 10px 0 0; }
.taskinfobox em.marleft { margin-left: 10px; }
.taskinfobox #taskmoney { background: url(images/bg_money.png) no-repeat; width: 130px; height: 26px; line-height: 26px; text-indent: 80px; color: #FF9c1c; }
</style>
<div class="right_top_title">我参与的任务:</div>
<div class="right_list tasklist">
    <ul>
<?php 
if ($GETSQL['count'] > 0) {
    while ($row = mysql_fetch_assoc($result)) {
        $renwuid = $row['renwuid'];
        $Qianming = Getlmname('*', 'remai', "id={$renwuid}");
        $rwusname = $Qianming['yugao'];
        ?>
 
        <li>
            <div class="taskinfobox">
                <div class="tasktitle">
                    <span class="nick"><?php 
        echo $Qianming['yugao'];
        ?>
:</span>
                    <a href="/v1task_list.php?status=<?php 
        echo $Qianming['id'];
        ?>
" target="_blank" title="查看任务详情"><?php 
        echo $Qianming['Qianming'];
Ejemplo n.º 11
0
         }
     }
     echo json_encode($arry);
     exit;
 case "pass_order":
     $bs_id = $_REQUEST["bs_id"];
     $pass = $_REQUEST["pass"];
     if ($_SESSION['usnamese'] == "") {
         $arry['id'] = 114;
         //未登录
         $arry['msg'] = "请先登录再进行操作";
     } else {
         $pass == 1 ? $pass = 4 : ($pass = -2);
         $aidarr = explode(',', $bs_id);
         foreach ($aidarr as $value) {
             $SYbuyus = Getlmname('userid', 'user_shiyong', "id={$value}");
             if (checkReoprtUser($SYbuyus['userid'], $value, 'status=3')) {
                 $count = EditstatusT('user_shiyong', "status={$pass}", "step4_time={$CCtimes},lasttime={$CCtimes}", "name='{$usname}'", $value);
             }
         }
         if ($count > 0) {
             $arry['id'] = 216;
             //提交成功
             $arry['msg'] = "提交成功";
         } else {
             $arry['id'] = 0;
             //失败
             $arry['msg'] = "提交失敗";
         }
     }
     echo json_encode($arry);
Ejemplo n.º 12
0
<?php

include './../../include/session.php';
include './../../include/conn.php';
include './../../include/myfunction.php';
$currentPage = 'user_money';
$manageGroup = 'userGroup';
if (isset($_GET['id'])) {
    $id = $_GET['id'];
    $getname = $_GET['name'];
}
$mnamexx = Getlmname('*', 'user', "name='{$getname}'");
$txxx = Getlmname('*', 'money_log', "id='{$id}'");
$dopost = isset($_POST['dopost']) ? $_POST['dopost'] : "";
if ($dopost == 'update') {
    $id = $_POST['xxid'];
    $dataName = $_POST['dataName'];
    $dingdanhao = $_POST['dingdanhao'];
    $name = $_POST['name'];
    $status = $_POST['status'];
    $shouxufei = $_POST['shouxufei'];
    $mingxi = trim($_POST['mingxi']);
    $money = round(trim($_POST['money']), 2);
    if (!empty($mingxi) && !empty($dingdanhao)) {
        $type = $_POST['type'];
        $count = Jsmoney($name, $money, $mingxi, $dataName, $id, $status, $shouxufei, $dingdanhao, 1);
        if ($count > 0) {
            $updateMessage = "操作成功";
        } else {
            $updateMessage = "操作失败";
        }
Ejemplo n.º 13
0
if ($status == 1) {
    $sql = "select * from remai where xianshi=1 and T_jieshu>'{$CCdates}' order by T_jieshu desc";
} else {
    if ($status == 3) {
        $sql = "select * from remai where xianshi=3 or (T_jieshu<'{$CCdates}' and xianshi<>2 and xianshi<>0)  order by T_jieshu desc";
    } else {
        $sql = "select * from remai where xianshi in (1,3)  order by T_jieshu desc";
    }
}
$result = mysql_query($sql);
$sum = mysql_num_rows($result);
$pages = new page($sum, $page_size, 5);
$sql = $sql . " limit {$pages->pagelimt},{$page_size}";
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)) {
    $usnamexx = Getlmname('name,logimg', 'user', "name='" . $row['yugao'] . "'");
    ?>
 
   
    <li>
        <img width="100" class="state" src="images/tasklist_state_<?php 
    if ($row['xianshi'] == 0 && strtotime($row['T_jieshu']) > $CCtimes) {
        echo '0';
    } elseif ($row['xianshi'] == 1 && strtotime($row['T_jieshu']) > $CCtimes) {
        echo '1';
    } else {
        echo '3';
    }
    ?>
.jpg" /><!--图片后边的数字_2 (1为待审,2为进行中,3为结束)-->
        <div class="cover">
Ejemplo n.º 14
0
                    //写失败原因,哪部分要求不符合。
                }
            }
        }
        echo json_encode($arry);
        exit;
        //********************************************* 表单·【编辑促销活动】,返回html
    //********************************************* 表单·【编辑促销活动】,返回html
    case "form_cx":
        $aidxx = $_GET['aid'];
        //get该促销活动的id
        if (isset($aidxx)) {
            if ($aidxx == 0) {
                $wzrow['tougao_id'] = 0;
            } else {
                $wzrow = Getlmname('*', 'wenzhang', "id={$aidxx} and status=0 and  create_user_id=" . $usid['id']);
            }
        }
        ?>
	
		<style>
        .add_action_form { margin: -20px 0 0 -10px; }
        .add_action_form ul li { line-height: 30px; clear: both; }
        .add_action_form ul li em { float: left; margin-right: 5px; font-size: 14px; }
        .add_action_form ul li .input_, .add_action_form ul li .text { float: left; }
        .add_action_form ul li .text { margin-right: 5px; }
        .add_action_form ul li .warning { float: left; font-size: 12px; margin-left: 86px; }
		.add_action_form ul li .des { height:70px; line-height: 15px;}
        .add_action_form ul li .readonly { background-color: #ddd; color: #666; }
        .add_action_form ul li .red { float: left; margin: 0 10px 0 5px; }
        .add_action_form ul li label { cursor: pointer; }
Ejemplo n.º 15
0
$ali_price = trim($_POST[PayJe]);
//订单价格
$ali_title = trim($_POST[PayMore]);
//订单标题(这里一般都是网站提交的订单号即支付宝的付款说明中的内容)
$pno = trim($_POST[PayNo]);
//支付宝交易号
$sign = trim($_POST[Key]);
//返回KEYS身份
//-------------------------------------------------------
if ($sign == $key) {
    //验证KEY和UID通过后执行即时到帐功能
    //--------------这里加入你自己的网站订单处理SQL语句-------------------
    //-----查询你的订单系统中$ali_title(支付宝付款说明中显示的订单号或者用户名)
    $out_trade_no = $ali_title;
    $trade_no = $pno;
    if (Zbkupdate('alipay_log', array('trade_no' => $trade_no, 'status' => 1, 'lasttime' => time()), "out_trade_no='{$out_trade_no}' and status=0")) {
        $alireturn = Getlmname('name,money,body,shouxufei', 'alipay_log', "out_trade_no='{$out_trade_no}'");
        $ali_rename = $alireturn['name'];
        $ali_remoney = $alireturn['money'];
        $ali_rebody = $alireturn['body'];
        $ali_reshouxufei = $alireturn['shouxufei'];
        $cmoney = $ali_remoney - $ali_reshouxufei;
        Kmoney($ali_rename, $cmoney, $ali_rebody, 'recharge', 0, 1, $ali_reshouxufei);
    }
    //----------------------SQL执行结束-------------------------------------
    exit("Success");
    //该值不得修改,否则软件无法获取信息
} else {
    exit("error");
    //该值不得修改,否则软件无法获取信息
}
Ejemplo n.º 16
0
         //申請提現成功,金额将在1~2天内到账
         $arry['msg'] = "申请提现成功,金额将在4个工作日内到账";
     } else {
         $arry['id'] = 0;
         //提現申請失败
         $arry['msg'] = "申请失败";
         //失败原因,你没有足够的资金提现???密码错误??等等
     }
     echo json_encode($arry);
     exit;
     //********************************************* 升级为vip,返回json
 //********************************************* 升级为vip,返回json
 case "up_type":
     $type = $_GET["type"];
     //1为升级为包月,2为升级为包年
     $mnamexx = Getlmname('*', 'user', "name='" . $_SESSION['usnamese'] . "'");
     if ($mnamexx['endtype'] < time()) {
         $mnamexx['endtype'] = time();
     }
     if ($type == 2) {
         $endtype = $mnamexx['endtype'] + 365 * 24 * 3600;
         $money = $SK['yearVIP'];
         $mingxi = "升级包年VIP";
         $jsum = $ZBK['vip_sy_year_sum'];
         $hssum = $ZBK['vip_hs_year_sum'];
     } else {
         if ($type == 3) {
             $endtype = $mnamexx['endtype'] + 10 * 365 * 24 * 3600;
             $money = '0';
             $mingxi = "升级终生VIP";
             $jsum = $ZBK['vip_sy_year_sum'];
Ejemplo n.º 17
0
            break;
    }
    return $url;
}
$Tcurrnetpage = "wenzhang";
$id = isset($_GET['id']) ? $_GET['id'] : "";
$rmrow = Getlmname('*', 'wenzhang', "id={$id}");
if ($rmrow['status'] == 0) {
    echo '文章正在审核中';
    exit;
}
if ($rmrow['status'] == -1) {
    echo '文章审核不通过';
    exit;
}
$crow = Getlmname('*', 'tougao_category', "id=" . $rmrow['tougao_id']);
$cid = $rmrow['tougao_id'];
$sql_c = "update wenzhang set click=click+1 where id={$id}";
mysql_query($sql_c);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php 
echo $rmrow['title'];
?>
-电商资讯-<?php 
echo $siteweb['siteName'];
?>
</title>
Ejemplo n.º 18
0
 
            
          </ul>  
            
         
                       
          </div>
        </div>
        
        
        
  </div>
  <?php 
if ($_GET['list'] == 1) {
    $channel = trim($_GET['channel']);
    $usidxx = Getlmname('id', 'user', "name='{$getname}'");
    $usidid = $usidxx['id'];
    switch ($channel) {
        case 'item':
            $table = 'goods';
            $cstatus = 1;
            $lmmin = "促销列表";
            $where = " and create_user_id={$usidid}";
            break;
        case 'free':
            $table = 'shiyong';
            $cstatus = '3,4,5';
            $lmmin = "试用列表";
            $where = " and create_user_id={$usidid}";
            break;
        case 'choujiang':
Ejemplo n.º 19
0
    $GGcontent = Getlmname('detail_url', 'shiyong', "id={$gtid}");
    echo rnmagic($GGcontent['detail_url']);
    ?>
" target="_blank">《点我进行购买》</a>,下单价<span style="color:#E53333;"><?php 
    echo $xdj;
    ?>
</span>元,返款<span style="color:#E53333;"><?php 
    echo $xdj - $hsj;
    ?>
</span>元的商品</span>
</strong> 
<?php 
    if ($type == 1) {
        echo '</div>';
    }
    ?>
<div class="boum">
<div class="boum1"><a onclick="hide_box(event,80,'movebox_1');" target="_self" href="javascript:;">我知道了</a>
</div>
<?php 
    $decontent = Getlmname('detail_url', 'shiyong', "id={$gtid}");
    ?>
<!--<div class="boum2"><a href="<?php 
    echo $decontent['detail_url'];
    ?>
" target="_blank">去淘宝看看</a></div>-->
</div>
</div>
</div>
<?php 
}
Ejemplo n.º 20
0
             //
             echo json_encode($arry);
             exit;
         }
     } else {
         //失败
         $arry['id'] = 0;
         // 失败
         $arry['msg'] = "修改失败,请确定您提交的内容与原来的不同";
         //
         echo json_encode($arry);
         exit;
     }
 } else {
     //添加
     $row_sy = Getlmname('shiyongid,userid', 'user_shiyong', "id={$aid}");
     $uid = $row_sy["userid"];
     $acid = $row_sy["shiyongid"];
     $array = array('uid' => $uid, 'aid' => $aid, 'acid' => $acid, 'star_a' => $star_a, 'star_b' => $star_b, 'star_c' => $star_c, 'star_d' => $star_d, 'rep_1' => $rep_1, 'rep_2' => $rep_2, 'rep_3' => $rep_3);
     $result = Zbkinsert("free_report", $array);
     $array_sy['step5_time'] = $CCtimes;
     $array_sy['status'] = 5;
     $result_sy = Zbkupdate("user_shiyong", $array_sy, "id={$aid}");
     if ($result && $result_sy) {
         $arry["id"] = 215;
         $arry["msg"] = "提交报告成功,请耐心等待审核";
         //返回信息
         echo json_encode($arry);
         exit;
     } else {
         $arry["id"] = 0;
Ejemplo n.º 21
0
	
    
		<style>
        .add_action_form { margin: -20px 0 0 -10px; }
        .add_action_form ul li { line-height: 30px; clear: both; }
        .add_action_form ul li em { float: left; margin-right: 5px; font-size: 14px; }
        .add_action_form ul li .input_, .add_action_form ul li .text { float: left; }
        .add_action_form ul li .text { margin-right: 5px; }
        .add_action_form ul li .warning { float: left; font-size: 12px; margin-left: 86px; }
        .add_action_form ul li .readonly { background-color: #ddd; color: #666; }
        .add_action_form ul li .red { float: left; margin: 0 10px 0 5px; }
        .add_action_form ul li label { cursor: pointer; }
        </style>
        <?php 
        $aid = $_GET["aid"];
        $shiyongrow = Getlmname('*', 'shiyong', "id={$aid}");
        ?>
        <div class="right_list add_action_form">
            <form id="actioninfo"  method="post">
                    <input name="action_id" id="action_id" value="<?php 
        echo $shiyongrow['id'];
        ?>
" type="hidden"  />            
                    <ul style="position: relative;">
                    <li>
                        <em class="w80">商品标题</em> <input id="gtitle" name="gtitle" class="input_ w400" type="text" maxlength="50" error="请输入商品标题!" reg="非空" value="<?php 
        echo $shiyongrow['title'];
        ?>
"/>
                        <span class="red">*</span>
                    </li>
Ejemplo n.º 22
0
    echo 'active';
}
?>
">试用完成</a></li>
    </ul>
  </div>
  我参与的抢白菜:</div>
<div class="tablehead clearfix"> <span class="td1"> &nbsp; 产品图 </span> <span class="td2"> 产品信息 </span> <span class="td3"> 活动进度 </span> <span class="td4"> 操作 </span> </div>
<div class="right_list actionlist">
  <ul>
    
    <!--这里的几个li代表不同的进度,嵌套php时注意判断--->
    <?php 
if ($GETSQL['count'] > 0) {
    while ($row = mysql_fetch_assoc($result)) {
        $Hdxx = Getlmname('id,title,pic_url,jifen,create_user_id,coupon_price,detail_url', 'shiyong', "id=" . $row['shiyongid']);
        $HDidd = $Hdxx['id'];
        $rowstatus = GetRow("select b.xianshi from user_shiyong as a left join shiyong as b on a.shiyongid=b.id where b.id={$HDidd}", 1);
        ?>
    <!--刚申请-->
    <li id="li_<?php 
        echo $row['id'];
        ?>
">
      <div class="cover"> <a href="/v1qiang_view.php?id=<?php 
        echo $Hdxx['id'];
        ?>
" target="_blank" title="<?php 
        echo $Hdxx['title'];
        ?>
"><img width="60" height="60" src="<?php 
Ejemplo n.º 23
0
$page_size = 10;
if (!isset($dopost) && isset($id)) {
    $sql = "select * from user_renwu where renwuid={$id}";
}
if (!isset($id) && !isset($dopost)) {
    $sql = "select * from user_renwu";
}
$result = mysql_query($sql);
$sum = mysql_num_rows($result);
$pages = new page($sum, $page_size, 5);
$sql = $sql . " limit {$pages->pagelimt},{$page_size}";
$result = mysql_query($sql);
if ($sum > 0) {
    while ($row = mysql_fetch_assoc($result)) {
        $usnamexx = Getlmname('name,logimg', 'user', "id=" . $row['userid']);
        $rmnam = Getlmname('Qianming', 'remai', "id=" . $row['renwuid']);
        ?>
                   
                   
                    <tr>
                            <td align="center">
                                <span><?php 
        echo $row['id'];
        ?>
</span>
                                <input type="hidden" name="id[<?php 
        echo $row['id'];
        ?>
]" value="<?php 
        echo $row['id'];
        ?>
Ejemplo n.º 24
0
          </ul>
            </dd>
      </dl>
          <?php 
}
//买家结束
?>
        </div>
  </div>
      <!--s:左側菜單-->
      
      <div id="root_right" class="new_right" >
    <?php 
if ($show == "shop_edit") {
    //用户店铺信息
    $shop_row = Getlmname('*', 'shop', "create_user_id=" . $_SESSION['usidse']);
    if ($_SESSION['us_type'] == 2) {
        ?>
    <style type="text/css">
        <!--
        .user_form { position: relative; }
        .user_form .user_cover { position: absolute; width: 100px; overflow: hidden; right: 30px; top: 10px; }
        .user_form .user_cover .upload_link { background-color: #bedeff; font-weight: bold; text-align: center; height: 26px; line-height: 26px; cursor: pointer; color: #4b64a5; border-radius: 4px; margin: 0 5px; border:none; width:90px }
        .user_form .input_ { width: 240px; }
        .user_form ul li { padding: 10px 0 10px 15px; }
        .user_form ul li em { float: left; display: block; width: 66px; text-align: right; line-height: 30px; margin-right: 15px; }
        .user_form ul li.line { border-bottom: 1px solid #ccc; height: 2px; margin-bottom: 10px; }
       
		.ke-upload-area { padding:0 10px}
        </style>
    <div class="right_top_title" style="position: relative;"> 店铺信息 </div>
Ejemplo n.º 25
0
        } else {
            $count = Kjifen($name, -$czjifen, $mingxi);
        }
        if ($count > 2) {
            $updateMessage = "操作成功";
        } else {
            $updateMessage = "操作失败";
        }
    } else {
        $updateMessage = "操作积分、操作说明、操作类型不能为空";
    }
}
if (isset($_GET['name'])) {
    $usname = trim($_GET['name']);
}
$mnamexx = Getlmname('*', 'user', "name='{$usname}'");
?>
<!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=utf-8" />
<title><?php 
echo $siteweb['siteTitle'];
?>
</title>
<link rel="stylesheet" href="css/zbkadmin.css">
</head>
<body>
<table class="admin-table" cellpadding="0" cellspacing="0" border="0">
    <tr>
        
Ejemplo n.º 26
0
        $page_size = 5;
        if ($state == "notstart") {
            $GETSQL = GetCount('user_renwu', "name='{$usname}' and renwuid={$tid}", 'xianshi=0', 1);
            $Page = GetPage($page_size, 'user_renwu', "name='{$usname}' and renwuid={$tid}", 'xianshi=0');
        } else {
            $GETSQL = GetCount('user_renwu', "name='{$usname}' and renwuid={$tid}", '1=1', 1);
            $Page = GetPage($page_size, 'user_renwu', "name='{$usname}' and renwuid={$tid}", '1=1');
        }
        $sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
        $result = mysql_query($sql);
        if ($GETSQL['count'] > 0) {
            while ($row = mysql_fetch_assoc($result)) {
                $renwuid = $row['renwuid'];
                $Qianming = Getlmname('id,Qianming', 'remai', "id={$renwuid}");
                $rwxxusid = $row['userid'];
                $usnamexx = Getlmname('name,logimg', 'user', "id={$rwxxusid}");
                ?>
            
            <!---->
            <tr id="aid_<?php 
                $row['id'];
                ?>
">
                <td>
                    <img src="<?php 
                echo $usnamexx['logimg'];
                ?>
" width="40" height="40">
                    <div class="nick"><?php 
                echo $usnamexx['name'];
                ?>
Ejemplo n.º 27
0
     }
 }
 if ($_SESSION['usnamese'] == "") {
     $arry['id'] = 114;
     //未登录
     $arry['msg'] = "请先登录再进行操作";
 } else {
     if ($gtitle == "" || $price == "" || $taobaourl == "") {
         $arry['id'] = 0;
         //失败
         $arry['msg'] = "标题\\白菜价\\产品连接不能为空";
         //写失败原因,哪部分要求不符合。
     } else {
         $datetime = date("Y-m-d H:i:s");
         $end_time = $CCtimes + 7 * 24 * 36000;
         $create_user_id = Getlmname('id', 'user', "name='{$usname}'");
         $sql = 'INSERT INTO `goods_apply` SET `num_iid`="' . $taobaoid . '", `title`="' . $gtitle . '", `pic_url`="' . $taobaoimgurl . '", `detail_url`="' . $taobaourl . '", `price`="' . $oldprice . '", `coupon_price`="' . $price . '", `num`="' . $num . '", `create_time`="' . $CCtimes . '", `begin_time`="' . $CCtimes . '", `nick`="' . $wangwang . '", `description`="' . $taobaoinfo . '", `category_id`="' . $goodstype . '", `miaosha_id`="' . $actiontype . '", `end_time`="' . $end_time . '", `freight_payer`="' . $ispostag . '", `ZheKou`="' . $iszhekou . '", `Vip`="' . $isvip . '", `invite`="' . $invite . '", `Taoortmall`="' . $taobaotype . '", `create_user_id`="' . $create_user_id['id'] . '", `ga_type`="0"';
         mysql_query($sql);
         $count = mysql_affected_rows();
         if ($count > 0) {
             $arry['id'] = 215;
             //提交成功
             $arry['msg'] = "发布活动成功";
         } else {
             $arry['id'] = 0;
             //失败
             $arry['msg'] = "发布活动失败";
             //写失败原因,哪部分要求不符合。
         }
     }
 }
Ejemplo n.º 28
0
        投稿栏目
    </span>
    
    <span class="td9">
        状态
    </span>
    <span class="td10">
        操作
    </span>
    </div>
    <div class="right_list actionlist">
        <ul>
<?php 
if ($GETSQL['count'] > 0) {
    while ($row = mysql_fetch_assoc($result)) {
        $lmname = Getlmname('name', 'tougao_category', "id=" . $row['tougao_id']);
        ?>
    	
        	<!---->
            <li id="li_<?php 
        echo $row['id'];
        ?>
">
            	<div class="actiontitle"><a  href="/wenzhangview.php?id=<?php 
        echo $row['id'];
        ?>
" target="_blank"><?php 
        echo substr($row['title'], 0, 130);
        ?>
</a></div>
            	<div class="gtype"><?php 
Ejemplo n.º 29
0
*****************用于 試用細覽頁的按鈕提交等******************

接收参数 {
	do :
		do = "check_score"  	 //驗證是否有資格申請,用积分申请,json
		do = "confirm_score"  		 //再次确认(积分申请),html、json
		do = "check_application"  	 //驗證是否有資格申請,普通申请,json		
		do = "confirm_application"  		 //再次确认(积分申请),html、json
*/
$do = $_GET['do'];
$aid = $_REQUEST["aid"];
//该活动的id
$mycount = Chengchushiyong('', 'userid=' . $usxx['id'], "shiyongid={$aid}");
$Hdxx = Getlmname('jifen,create_user_id,xianshi,end_time,detail_url,pic_url,shiyongtype,num', 'shiyong', "id={$aid}");
$SYadmin = Getlmname('name', 'user', "id='" . $Hdxx['create_user_id'] . "'");
$SYname = $SYadmin['name'];
switch ($do) {
    //********************************************* 驗證是否有資格申請,用积分申请,json
    case "check_score":
        if ($_SESSION['usnamese'] == "") {
            $arry["id"] = 114;
            //返回代号,未登录:114,
            $arry["msg"] = "操作错误(您还未登录)";
            //返回信息
            echo json_encode($arry);
            exit;
        }
        if ($_SESSION['us_type'] != 1) {
            $arry["id"] = 0;
            //返回代号,未登录:114,
Ejemplo n.º 30
0
        .review_form { margin: -10px 10px 0 0px; position: relative; }
        .review_form ul li { display: block; border-bottom: 1px solid #ddd; padding: 5px 0; clear: both; font-size: 12px; }
        .review_form ul li em { float: left; color: #b14e0f; display: block; width: 100px; margin-right: 5px; }
        .review_form ul li .price { font-size: 18px; font-weight: bold; color: #b11300; }
        .review_form .tit { font-weight: bold; font-size: 14px; color: #666; }
        .review_form .cover { position: absolute; right: 0px; top: 0px; }
        -->
        </style>
        <div class="right_list review_form">
            
            <ul>
            
            <?php 
        $hdrow = Getlmname('*', 'user_shiyong', "id={$aid}");
        $buyhdrow = Getlmname('*', 'shiyong', "id=" . $hdrow['shiyongid']);
        $SJrow = Getlmname('name', 'user', "id=" . $buyhdrow['create_user_id']);
        ?>
                <div class="cover">
                    <a href="<?php 
        echo $buyhdrow['detail_url'];
        ?>
" target="_blank"><img src="<?php 
        echo $buyhdrow['pic_url'];
        ?>
" width="200" height="200"></a>
                </div>
                <li class="tit"> <a href="/v1list_view.php?id=<?php 
        echo $buyhdrow['id'];
        ?>
" target="_blank"><?php 
        echo $buyhdrow['title'];