當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Getlmname函數代碼示例

本文整理匯總了PHP中Getlmname函數的典型用法代碼示例。如果您正苦於以下問題:PHP Getlmname函數的具體用法?PHP Getlmname怎麽用?PHP Getlmname使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了Getlmname函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: session_start

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);
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:30,代碼來源:json_cj.php

示例2: GetSiteconfig

<?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'];
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:help_view.php

示例3: rnmagic

                <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>
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:v1choujiang_view.php

示例4: Getlmname

    ?>
 </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;
    ?>
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:register.php

示例5: Kmoney

                $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>
        
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:30,代碼來源:user_money.php

示例6: while

    </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'];
        ?>
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:uaj_duihuanlist.php

示例7: rnmagic

      <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>
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:v1list_view.php

示例8: GetSiteconfig

<?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'];
?>
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:task_report_view.php

示例9: Autoshenhe

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;
}
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:27,代碼來源:myfunction.php

示例10: url

<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'];
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:uaj_tasklist.php

示例11: json_encode

         }
     }
     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);
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:uaj_s_freelist_approval.php

示例12: Getlmname

<?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 = "操作失敗";
        }
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:user_money_jiesuan.php

示例13: or

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">
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:task_list.php

示例14: json_encode

                    //寫失敗原因,哪部分要求不符合。
                }
            }
        }
        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; }
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:uaj_s_wenzhang_action.php

示例15: trim

$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");
    //該值不得修改,否則軟件無法獲取信息
}
開發者ID:kwdwkiss,項目名稱:trial,代碼行數:31,代碼來源:bc_alipay_url.php


注:本文中的Getlmname函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。