예제 #1
0
}

 loadVendue()
 checkTime()
 function viewDescAD(week) {
            var url = "uaj_info.php?do=Ad_about_activity&week="+week;
            showBigBox('查看广告位详细位置',url,1120,100);
        }
</script>
<?php 
        break;
        //*********************************************我的中标,返回html
    //*********************************************我的中标,返回html
    case "my_vendue":
        $page_size = 15;
        $GETSQL = GetCount('ad_paimai', "userid={$usidse}", 'status=2', 1);
        $Page = GetPage($page_size, 'ad_paimai', "userid={$usidse}", 'status=2');
        $sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
        $result = mysql_query($sql);
        ?>
 
	<div class="vendueListWrap">
        <table>
        	<thead>
            	<tr><th width="120">广告名称</th>
                	<th width="60">出价积分</th>
                	<th width="210">广告标题</th>
                    <th width="180">中标时间</th>
                    <th width="360">投放时间</th>
                </tr>
            </thead>
예제 #2
0
                <?php 
        if ($state == "notstart") {
            ?>
<td>选择</td><?php 
        }
        ?>
            </tr>
        </thead>
        <tbody>
            <?php 
        $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'];
예제 #3
0
파일: v1index.php 프로젝트: kwdwkiss/trial
</span><i>|</i><em>限量<?php 
    echo $Syrow['num'];
    ?>
份</em></p>
      </li>
      <?php 
}
?>
    </ul>
    <!-- 抢白菜 -->
    <ul class="tabcont J_ImgLoad" style="display:none">
      <?php 
$Syarr = GetTJRow('*', 'shiyong', "shiyongtype=2 and xianshi=3 and end_time>{$CCtimes}", 'order by id desc', 'limit 12');
$i = 0;
foreach ($Syarr as $Syrow) {
    $Cjcount = GetCount('user_shiyong', "shiyongid=" . $Syrow['id']);
    $i++;
    ?>
      <li> <a href="/v1song_view.php?id=<?php 
    echo $Syrow['id'];
    ?>
" title=""> <span class="sk-appBtn-span"><b>免费申请</b></span> <img data-url="<?php 
    echo $Syrow['pic_url'];
    ?>
" src="/img/blank.gif" alt="<?php 
    echo $Syrow['title'];
    ?>
">
        <h4 class="goods-tit"><?php 
    echo $Syrow['title'];
    ?>
예제 #4
0
function GetPage($pagesize, $table, $where1, $where2)
{
    $SK['page'] = $_GET["page"];
    $SK['page'] = $SK['page'] ? $SK['page'] : 1;
    $SK['prev'] = $SK['page'] == 1 ? 1 : $SK['page'] - 1;
    $page_size = $pagesize;
    $count = GetCount($table, $where1, $where2);
    $SK['end'] = ceil($count / $page_size);
    $SK['next'] = $SK['page'] + 1 > $SK['end'] ? $SK['end'] : $SK['page'] + 1;
    $SK['limit'] = ($SK['page'] - 1) * $page_size;
    return $SK;
}
예제 #5
0
function FindDefect($id)
{
    $query = GetDefectQueryUri($id);
    $searchresult = CallAPI($query);
    $count = GetCount($searchresult);
    if ($count == 0) {
        NotFound($id);
    }
    return GetFirstObjectFromSearchResult("Defect", $searchresult);
}
예제 #6
0
    if (!empty($djid)) {
        foreach ($djid as $bgid) {
            autosybg($bgid, $xj);
        }
    }
}
autobgjd(120);
$state = isset($_GET["state"]) ? $_GET["state"] : 0;
//当前列表状态
if ($state == 0) {
    $where = '1=1';
} else {
    $where = "status={$state}";
}
$page_size = 10;
$GETSQL = GetCount('user_shiyong', "userid=" . $user_row['id'], $where, 1);
$Page = GetPage($page_size, 'user_shiyong', "userid=" . $user_row['id'], $where);
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
/*
 *****************会员中心请用列表页,返回html******************
 */
//尾页
?>
<!-- 我参与的 积分兑换 活动 -->
<style>
.tablehead { background-color: #eaeaea; height: 40px; line-height: 40px; font-size: 12px; font-weight: bold; }
.tablehead span { float: left; white-space: nowrap; color: #666; }
.tablehead .td1 { width: 80px; margin-left: 20px; }
.tablehead .td2 { width: 383px; margin-right: 10px; }
.tablehead .td3 { width: 140px; }
예제 #7
0
<?php

include './include/ussession.php';
include './include/conn.php';
include './include/myfunction.php';
$siteweb = GetSiteconfig();
$usname = $_SESSION['usnamese'];
$page_size = 10;
$GETSQL = GetCount('jifen_log', "name='{$usname}'", '1=1', 1);
$Page = GetPage($page_size, 'jifen_log', "name='{$usname}'", '1=1');
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
?>



<style>
.sign_list {
    padding: 5px 0 20px 10px;
}
.sign_list ul li {
    clear: both;
    line-height: 30px;
    color: #666;
}
.sign_list ul li span {
    white-space: nowrap;
    overflow: hidden;
    float: left;
    display: block;
    width: 160px;
예제 #8
0
     if ($usrow['shiyongtype'] == 2) {
         $usrow['hongbao'] = $usrow['hongbao'] - $usrow['hs_price'];
     }
     $mingxiA = "您试用编号ID为:" . $aid . "的产品完成,平台给您退款" . $usrow['coupon_price'] + $usrow['hongbao'] . "元";
     $mingxiB = "用户" . $usrow['name'] . "试用您发布编号ID为:" . $usrow['id'] . "的产品完成,给该用户退款" . $usrow['coupon_price'] + $usrow['hongbao'] . "元";
     $count1 = Kmoney($usrow['name'], $usrow['coupon_price'], $mingxiA, 'transfer', 0, 1, 0);
     $count1 = Kmoney($usrow['name'], $usrow['hongbao'], $mingxiA, 'transfer', 0, 1, 0);
     $count2 = Jsmoney($usname, -$usrow['coupon_price'], $mingxiB, 'debited', 0, 1, 0, '', 0);
     $count2 = Jsmoney($usname, -$usrow['hongbao'], $mingxiB, 'debited', 0, 1, 0, '', 0);
     if ($usrow['pt_meney'] > 0) {
         $mingxiB3 = "用户" . $usrow['name'] . "参与您发布编号ID为:" . $usrow['id'] . "的活动完成,平台收取手续费" . $usrow['pt_meney'] . "元";
         $count2 = Jsmoney($usname, -$usrow['pt_meney'], $mingxiB3, 'debited', 0, 1, 0, '', 0);
     }
     Zbkupdate('user_shiyong', array('status' => 6, 'step6_time' => $CCtimes), "userid={$value} and shiyongid={$aid} and id=" . $usrow['usershiyongid']);
 }
 $CYren = GetCount('user_shiyong', "shiyongid={$aid} and status=6 and name='" . $usname . "'");
 $cymoney = ($usrow['coupon_price'] + $usrow['hongbao'] + $usrow['pt_meney']) * $usrow['num'] - $CYren * ($usrow['coupon_price'] + $usrow['hongbao'] + $usrow['pt_meney']);
 if ($usrow['pt_meney'] > 0) {
     $mingxiC = "您发布编号ID为:" . $usrow['id'] . "的产品结算完成,共给" . $CYren . "位用户及平台支付" . $CYren * ($usrow['coupon_price'] + $usrow['hongbao'] + $usrow['pt_meney']) . "元,余下的" . $cymoney . "元全部解冻";
 } else {
     $mingxiC = "您发布编号ID为:" . $usrow['id'] . "的产品结算完成,共给" . $CYren . "位用户支付" . $CYren * ($usrow['coupon_price'] + $usrow['hongbao'] + $usrow['pt_meney']) . "元,余下的" . $cymoney . "元全部解冻";
 }
 if ($usrow['shiyongtype'] == 2) {
     $cymoney = ($usrow['hongbao_1'] + $usrow['coupon_price_1'] + $usrow['pt_meney']) * $usrow['num'] - $CYren * ($usrow['hongbao_1'] + $usrow['coupon_price_1'] + $usrow['pt_meney'] - $usrow['hs_price']);
     if ($usrow['pt_meney'] > 0) {
         $mingxiC = "您发布编号ID为:" . $usrow['id'] . "的产品结算完成,共给" . $CYren . "位用户及平台支付" . $CYren * ($usrow['hongbao_1'] + $usrow['coupon_price_1'] + $usrow['pt_meney'] - $usrow['hs_price']) . "元,余下的" . $cymoney . "元全部解冻";
     } else {
         $mingxiC = "您发布编号ID为:" . $usrow['id'] . "的产品结算完成,共给" . $CYren . "位用户支付" . $CYren * ($usrow['hongbao_1'] + $usrow['coupon_price_1'] + $usrow['pt_meney'] - $usrow['hs_price']) . "元,余下的" . $cymoney . "元全部解冻";
     }
 }
 $countjs = Kmoney($usname, $cymoney, $mingxiC, 'balance', 1, 1, 0);
예제 #9
0
     $arry["id"] = 114;
     //返回代号,未登录:114,
     $arry["msg"] = "请登录后再从行操作";
     //返回信息
 } else {
     //已登录
     function GetTJRowUS($zd, $table, $where)
     {
         $sql = "select {$zd} from {$table} where {$where}";
         $result = mysql_query($sql);
         while ($row = mysql_fetch_assoc($result)) {
             $TJRow[] = $row[$zd];
         }
         return $TJRow;
     }
     if (GetCount('duihuan', "id={$aid} and create_user_id={$usidse} and xianshi>2 and xianshi<>5")) {
         $usidarrid = GetTJRowUS('cj_id', 'user_duihuan', "status in (1,4) and cj_gid={$aid}");
         if (!empty($usidarrid)) {
             foreach ($usidarrid as $cjusid) {
                 Autochoujiang('step1_time', 7, 1, $cjusid, -2, 'user_duihuan');
                 Autochoujiang('step4_time', 10, 4, $cjusid, 5, 'user_duihuan');
             }
         }
         $usidarr = GetTJRowUS('cj_id', 'user_duihuan', "status in (1,3,4,-4,-5) and cj_gid={$aid}");
         if (empty($usidarr)) {
             $sql = "select * from  duihuan where id={$aid}";
             $result = mysql_query($sql);
             $usrow = mysql_fetch_assoc($result);
             $cymoney = $usrow['coupon_price'] * $usrow['num'];
             $mingxiC = "您发布编号ID为:" . $usrow['id'] . "的兑换活动圆满结束,结算完成," . $cymoney . "元全部解冻";
             if (Zbkupdate('duihuan', array('xianshi' => 5, 'lasttime' => $CCtimes), "create_user_id={$usidse} and id={$aid}")) {
예제 #10
0
    $result = mysql_query($sql);
    $count = mysql_num_rows($result);
    return $count;
}
$siteweb = GetSiteconfig();
$usname = $_SESSION['usnamese'];
$user_row = Getuname($_SESSION['usnamese'], 1);
$state = isset($_GET["state"]) ? $_GET["state"] : 0;
//当前列表状态
if ($state == 0) {
    $where = '1=1';
} else {
    $where = "xianshi={$state}";
}
$page_size = 5;
$GETSQL = GetCount('gift', "create_user_id=" . $user_row['id'], $where, 1);
$Page = GetPage($page_size, 'gift', "create_user_id=" . $user_row['id'], $where);
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
/*

**************商家发布的试用活动列表页********************
接收参数 {
	
	page = 页码
	state :
		state = 0 显示全部状态列表
		state = 1 审核中
		state = 2 未发布
		state = 3 进行中
		state = 4 待结款
예제 #11
0
$siteweb = GetSiteconfig();
$usname = $_SESSION['usnamese'];
$user_row = Getuname($_SESSION['usnamese'], 1);
$state = isset($_GET["state"]) ? $_GET["state"] : 0;
//当前列表状态
if ($state == 0) {
    $where = '1=1';
} else {
    $where = "xianshi={$state}";
}
if (isset($_GET["shuatype"])) {
    $gshuatype = $_GET["shuatype"];
    $where = " shuatype={$gshuatype}";
}
$page_size = 5;
$GETSQL = GetCount('shiyong', "create_user_id=" . $user_row['id'], $where, 1);
$Page = GetPage($page_size, 'shiyong', "create_user_id=" . $user_row['id'], $where);
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
/*

**************商家发布的试用活动列表页********************
接收参数 {
	
	page = 页码
	state :
		state = 0 显示全部状态列表
		state = 1 审核中
		state = 2 未发布
		state = 3 进行中
		state = 4 待结款
예제 #12
0
<?php

include './include/ussession.php';
include './include/conn.php';
include './include/myfunction.php';
$siteweb = GetSiteconfig();
$usname = $_SESSION['usnamese'];
$page_size = 5;
$GETSQL = GetCount('remai', "yugao='{$usname}'", '1=1', 1);
$Page = GetPage($page_size, 'remai', "yugao='{$usname}'", '1=1');
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
?>

<style>
.tasklist ul li { position: relative; clear: both; margin-bottom: 2px; }
.tasklist .taskinfobox { float: left; width: 520px; margin-left: 10px; }
.tasklist .tasktitle { line-height: 28px; white-space: nowrap; overflow: hidden; }
.tasklist .taskcontrol { float: right; margin: 10px 0 0 8px; width: 200px; }
.tasklist .task_state { position: absolute; top: 2px; right: 256px; }
</style>

<div class="right_top_title">
    <a href="javascript:;" target="_self" onClick="auditTask(0);" style="float: right;margin-right: 10px;">查看全部未审</a>
    我发布的积分任务
</div>
<div class="right_list tasklist">
    <ul>
<?php 
if ($GETSQL['count'] > 0) {
    while ($row = mysql_fetch_assoc($result)) {
예제 #13
0
if (isset($_GET['searchtype'])) {
    $searchtype = $_GET['searchtype'];
}
if ($searchtype == 1) {
    $keysql = " num_iid='{$searchkey}'";
} else {
    if ($searchtype == 2) {
        $keysql = " nick='{$searchkey}'";
    } else {
        $keysql = " 1=1";
    }
}
$Getusid = Getlmname('id', 'user', "name='{$usname}'");
$Getusid = $Getusid['id'];
$page_size = 10;
$GETSQL = GetCount('goods_apply', "create_user_id={$Getusid}", $keysql, 1);
$Page = GetPage($page_size, 'goods_apply', "create_user_id={$Getusid}", $keysql);
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
?>

	<!-- 我发布的活动 -->
<style>
.action_tablehead { background-color: #e2e2e2; height: 30px; line-height: 30px; font-size: 12px; font-weight: bold; }
.action_tablehead span { float: left; white-space: nowrap; line-height: 25px; color: #666; }
.action_tablehead .td1 { width: 120px; text-align: center; }
.action_tablehead .td2 { width: 250px; padding-right: 10px; }
.action_tablehead .td3 { width: 80px; }
.action_tablehead .td4 { width: 80px; }
.action_tablehead .td5 { width: 50px; }
.action_tablehead .td6 { width: 35px; }
예제 #14
0
include './include/myfunction.php';
$siteweb = GetSiteconfig();
$usname = $_SESSION['usnamese'];
$searchtype == '';
if (isset($_GET['searchkey'])) {
    $searchkey = $_GET['searchkey'];
}
if ($searchkey != "") {
    $keysql = " title like '%{$searchkey}%'";
} else {
    $keysql = " 1=1";
}
$Getusid = Getlmname('id', 'user', "name='{$usname}'");
$Getusid = $Getusid['id'];
$page_size = 10;
$GETSQL = GetCount('wenzhang', "create_user_id={$Getusid}", $keysql, 1);
$Page = GetPage($page_size, 'wenzhang', "create_user_id={$Getusid}", $keysql);
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
?>

	<!-- 我发布的活动 -->
<style>
.controlb { width: 100%; background:#e2e2e2; height:40px;}
.controla {margin-bottom:15px;}
.controla a {line-height: 30px; margin-left:8px; padding:5px 5px; background:#F90; color:#FFF; border:1px solid #F90; border-radius:4px }
.controla .btn-del { background:#C30; color:#FFF; border:1px solid #C00; }
.controla .btn-edit { background:#09F; color:#fff; border:1px solid #069; }

.action_tablehead { background-color: #e2e2e2; height: 30px; line-height: 30px; font-size: 12px; font-weight: bold; }
.action_tablehead span { float: left; white-space: nowrap; line-height: 25px; color: #666; }
예제 #15
0
}
*/
$dataName = $_GET["dataName"];
//列表类型
if (isset($dataName)) {
    if ($dataName == 'allchange') {
        $where = "1=1";
    } else {
        $where = "type='{$dataName}'";
    }
} else {
    $where = "1=1";
}
$username = $Usidxx['name'];
$page_size = $SK['pagesize'];
$GETSQL = GetCount('money_log', "name='{$username}'", $where, 1);
$Page = GetPage($page_size, 'money_log', "name='{$username}'", $where);
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
?>

<table cellpadding="0" cellspacing="0" border="0" class="list_table">



<tr class="list_top">
        <td width="2%"></td>
        <td style="width: 50px;">交易号</td>
        <td style="width: 120px;">发起人昵称</td>
        <td style="width: 80px;">金额</td>
        <td style="width: 100px;">类型</td>
예제 #16
0
<?php

include './include/ussession.php';
include './include/conn.php';
include './include/myfunction.php';
$siteweb = GetSiteconfig();
$usname = $_SESSION['usnamese'];
$usidse = $_SESSION['usidse'];
$page_size = 10;
$GETSQL = GetCount('get_friend', "uid='{$usidse}'", '1=1', 1);
$Page = GetPage($page_size, 'get_friend', "uid='{$usidse}'", '1=1');
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
/*

**************商家发布的试用活动列表页********************
接收参数 {
	
	page = 页码 
}
*/
$page = isset($_GET["page"]) ? $_GET["page"] : 1;
//当前页
$prev = $page == 1 ? 1 : $page - 1;
//上一页
$next = $page + 1;
//下一页
$end = 118;
//尾页
?>
예제 #17
0
<?php

$topix = GetTopicByLiker($url[1], 10);
$smarty->assign('topix', $topix);
$r = TRelation::GetInstance();
$member['likes'] = $r->GetSourceCount($url[1], REALTION_LIKE);
$member['frinds'] = $r->GetSourceCount($url[1], REALTION_FRIEND);
$member['comz'] = GetCount('comment', ' comment_member_id = ' . (int) $_COOKIE['mid']);
$smarty->assign('member', $member);
$smarty->assign('frindz', GetFrienz($url[1]));
$idd = isset($_COOKIE['mid']) ? $_COOKIE['mid'] : 0;
$smarty->assign('is_f', $r->Has($idd, $url[1], REALTION_FRIEND));
예제 #18
0
        if ($status == -3) {
            $steptime = 4;
        }
        if ($status == -4) {
            $steptime = 3;
        }
        $huidawenti = $_POST['huidawenti'];
        $dingdanhao = $_POST['dingdanhao'];
        $star_a = $_POST['star_a'];
        $star_b = $_POST['star_b'];
        $star_c = $_POST['star_c'];
        $star_d = $_POST['star_d'];
        $rep_1 = $_POST['rep_1'];
        $rep_2 = $_POST['rep_2'];
        $rep_3 = $_POST['rep_3'];
        if (GetCount('free_report', "aid={$xxid}") > 0) {
            if (Zbkupdate('user_shiyong', array('status' => $status, 'huidawenti' => $huidawenti, 'dingdanhao' => $dingdanhao, 'step' . $steptime . '_time' => time(), 'lasttime' => time()), "id={$xxid}") || Zbkupdate('free_report', array('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), "aid={$xxid}")) {
                $updateMessage = '更新成功';
            } else {
                $updateMessage = '更新失败';
            }
        } else {
            if (Zbkupdate('user_shiyong', array('status' => $status, 'huidawenti' => $huidawenti, 'dingdanhao' => $dingdanhao, 'step' . $steptime . '_time' => time(), 'lasttime' => time()), "id={$xxid}")) {
                $updateMessage = '更新成功';
            } else {
                $updateMessage = '更新失败';
            }
        }
    }
}
if (isset($_GET['id'])) {
예제 #19
0
<?php

include './include/ussession.php';
include './include/conn.php';
include './include/myfunction.php';
$siteweb = GetSiteconfig();
$usname = $_SESSION['usnamese'];
$Usidxx = Getlmname('id', 'user', "name='{$usname}'");
$userid = $Usidxx['id'];
$page_size = $SK['pagesize'];
$GETSQL = GetCount('user_renwu', "userid={$userid}", '1=1', 1);
$Page = GetPage($page_size, 'user_renwu', "userid={$userid}", '1=1');
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
//echo $sql;
$result = mysql_query($sql);
?>


<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) {
예제 #20
0
require './libs/Smarty.class.php';
require './libs/TDatabasePDO.php';
$pdbc = new TModel('topic', 'topic_');
$model = new TModel('topic', 'topic_');
require_once './libs/TMagicFunctions.php';
require_once './inc/fnc.php';
$smarty = new Smarty();
$smarty->caching = 0;
$smarty->template_dir = './soh3il/template/';
$smarty->compile_dir = './soh3il/compile/';
$smarty->config_dir = './soh3il/config/';
$smarty->cache_dir = './soh3il/cash/';
//$smarty->debugging = true;
$reg = TRegistry::GetInstance();
$title = $reg->GetValue(ROOT_SYSTEM, 'title');
$footer = $reg->GetValue(ROOT_SYSTEM, 'footer');
$links = $reg->GetValue(ROOT_SYSTEM, 'links');
$smarty->assign('footer', $footer);
$smarty->assign('links', $links);
$cat = TCategory::GetInstance();
$smarty->assign('cat_list', $cat->CategoryUL());
$menu = new TDropDownMenu();
$tmp = $menu->DropDownUL();
$smarty->assign('menu', $tmp);
$smarty->assign('memberz', GetCount('member'));
$smarty->assign('likez', GetCount('relation', ' typ = 4 '));
$smarty->assign('frnz', GetCount('relation', ' typ = 5 '));
$smarty->assign('topiczz', GetCount('topic', ' topic_status > 0 '));
$smarty->assign('stopic', GetCount('topic', ' topic_status = 2 '));
$smarty->assign('comment', GetCount('comment'));
$smarty->assign('rtag', TagRandom());
예제 #21
0
    $result = mysql_query($sql);
    $count = mysql_num_rows($result);
    return $count;
}
$siteweb = GetSiteconfig();
$usname = $_SESSION['usnamese'];
$user_row = Getuname($_SESSION['usnamese'], 1);
$state = isset($_GET["state"]) ? $_GET["state"] : 0;
//当前列表状态
if ($state == 0) {
    $where = '1=1';
} else {
    $where = "xianshi={$state}";
}
$page_size = 5;
$GETSQL = GetCount('duihuan', "create_user_id=" . $user_row['id'], $where, 1);
$Page = GetPage($page_size, 'duihuan', "create_user_id=" . $user_row['id'], $where);
$sql = $GETSQL['sql'] . " limit " . $Page['limit'] . "," . $page_size;
$result = mysql_query($sql);
/*

**************商家发布的试用活动列表页********************
接收参数 {
	
	page = 页码
	state :
		state = 0 显示全部状态列表
		state = 1 审核中
		state = 2 未发布
		state = 3 进行中
		state = 4 待结款