当前位置: 首页>>代码示例>>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;未经允许,请勿转载。