当前位置: 首页>>代码示例>>PHP>>正文


PHP LoadTemp函数代码示例

本文整理汇总了PHP中LoadTemp函数的典型用法代码示例。如果您正苦于以下问题:PHP LoadTemp函数的具体用法?PHP LoadTemp怎么用?PHP LoadTemp使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了LoadTemp函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: AdvsSlides

function AdvsSlides()
{
    global $msql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $shownums = $GLOBALS["PLUSVARS"]["shownums"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    //Ä£°æ½âÊÍ
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('coltitle' => $coltitle);
    $str .= ShowTplTemp($TempArr["start"], $var);
    $n = 0;
    $msql->query("select * from {P}_advs_lb  where groupid='{$groupid}' order by xuhao limit 0,{$shownums}");
    while ($msql->next_record()) {
        $id = $msql->f('id');
        $src = $msql->f('src');
        $url = $msql->f('url');
        $title = $msql->f('title');
        $text = $msql->f('text');
        $src = ROOTPATH . $src;
        $var = array('n' => $n, 'src' => $src, 'url' => $url);
        $str .= ShowTplTemp($TempArr["list"], $var);
        $n++;
    }
    $str .= $TempArr["end"];
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:28,代码来源:AdvsSlides.php

示例2: MemberNewsClass

function MemberNewsClass()
{
    global $msql, $fsql;
    $target = $GLOBALS["PLUSVARS"]["target"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    //地址栏参数
    if (isset($_GET["mid"]) && $_GET["mid"] != "" && $_GET["mid"] != "0") {
        $mid = $_GET["mid"];
    } else {
        return "";
    }
    $mid = htmlspecialchars($mid);
    $scl = "  memberid='{$mid}' ";
    //模版解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $str = $TempArr["start"];
    $msql->query("select * from {P}_news_pcat where {$scl} order by xuhao");
    while ($msql->next_record()) {
        $catid = $msql->f("catid");
        $cat = $msql->f("cat");
        $link = ROOTPATH . "news/membernews.php?mid=" . $mid . "&pcatid=" . $catid;
        $var = array('link' => $link, 'cat' => $cat, 'target' => $target);
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:28,代码来源:MemberNewsClass.php

示例3: RegContact

function RegContact()
{
    global $msql, $fsql;
    $memberid = $_COOKIE["MEMBERID"];
    $tempname = "tpl_reg_contact.htm";
    //获取会员资料
    $msql->query("select * from {P}_member where memberid='{$memberid}'");
    if ($msql->next_record()) {
        $name = $msql->f('name');
        $sex = $msql->f('sex');
        $addr = $msql->f('addr');
        $tel = $msql->f('tel');
        $mov = $msql->f('mov');
        $postcode = $msql->f('postcode');
        $email = $msql->f('email');
        $qq = $msql->f('qq');
        $msn = $msql->f('msn');
        $membertypeid = $msql->f('membertypeid');
        $membergroupid = $msql->f('membergroupid');
    }
    $var = array('membertypeid' => $membertypeid, 'name' => $name, 'addr' => $addr, 'tel' => $tel, 'mov' => $mov, 'postcode' => $postcode, 'email' => $email, 'qq' => $qq, 'msn' => $msn);
    //模版解释
    $Temp = LoadTemp($tempname);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:26,代码来源:RegContact.php

示例4: NewsProject

function NewsProject()
{
    global $msql, $fsql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $target = $GLOBALS["PLUSVARS"]["target"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $cutword = $GLOBALS["PLUSVARS"]["cutword"];
    //模版解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    //循环开始
    $var = array('coltitle' => $coltitle);
    $str = ShowTplTemp($TempArr["start"], $var);
    $msql->query("select * from {P}_news_proj order by id desc");
    while ($msql->next_record()) {
        $id = $msql->f("id");
        $project = $msql->f("project");
        $folder = $msql->f("folder");
        if ($cutword != "0") {
            $project = csubstr($project, 0, $cutword);
        }
        $link = ROOTPATH . "news/project/" . $folder . "/";
        $var = array('link' => $link, 'project' => $project, 'target' => $target);
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:28,代码来源:NewsProject.php

示例5: PhotoSearchForm

function PhotoSearchForm()
{
    global $msql, $fsql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    //µØÖ·À¸²ÎÊý
    if (strstr($_SERVER["QUERY_STRING"], ".html")) {
        $Arr = explode(".html", $_SERVER["QUERY_STRING"]);
        $nowcatid = $Arr[0];
    } elseif ($_GET["catid"] > 0) {
        $nowcatid = $_GET["catid"];
    } else {
        $nowcatid = 0;
    }
    $nowcatid = htmlspecialchars($nowcatid);
    $key = htmlspecialchars($_GET["key"]);
    $myord = htmlspecialchars($_GET["myord"]);
    $myshownums = htmlspecialchars($_GET["myshownums"]);
    $fsql->query("select * from {P}_photo_cat where pid='0'");
    while ($fsql->next_record()) {
        $cat = $fsql->f('cat');
        $catid = $fsql->f('catid');
        if ($nowcatid == $catid) {
            $catlist .= "<option value='" . $catid . "' selected>" . $cat . "</option>";
        } else {
            $catlist .= "<option value='" . $catid . "'>" . $cat . "</option>";
        }
    }
    //Ä£°æ½âÊÍ
    $Temp = LoadTemp($tempname);
    $var = array('coltitle' => $coltitle, 'myshownums' => $myshownums, 'myord' => $myord, 'key' => $key, 'catlist' => $catlist);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:34,代码来源:PhotoSearchForm.php

示例6: MemberNewsSearchForm

function MemberNewsSearchForm()
{
    global $msql, $fsql;
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    //地址栏参数
    if (isset($_GET["mid"]) && $_GET["mid"] != "" && $_GET["mid"] != "0") {
        $mid = $_GET["mid"];
    } else {
        return "";
    }
    $mid = htmlspecialchars($mid);
    $key = htmlspecialchars($_GET["key"]);
    $myord = htmlspecialchars($_GET["myord"]);
    $myshownums = htmlspecialchars($_GET["myshownums"]);
    $pcatid = htmlspecialchars($_GET["pcatid"]);
    $fsql->query("select * from {P}_news_pcat where memberid='{$mid}'  order by xuhao");
    while ($fsql->next_record()) {
        $cat = $fsql->f('cat');
        $catid = $fsql->f('catid');
        if ($pcatid == $catid) {
            $catlist .= "<option value='" . $catid . "' selected>" . $cat . "</option>";
        } else {
            $catlist .= "<option value='" . $catid . "'>" . $cat . "</option>";
        }
    }
    //模版解释
    $Temp = LoadTemp($tempname);
    $var = array('coltitle' => $coltitle, 'myshownums' => $myshownums, 'myord' => $myord, 'key' => $key, 'mid' => $mid, 'catlist' => $catlist);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:31,代码来源:MemberNewsSearchForm.php

示例7: ToolsQqCs

function ToolsQqCs()
{
    global $msql;
    $showtj = $GLOBALS["PLUSVARS"]["showtj"];
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $scl = " cat='qq' and iffb='1' ";
    if ($showtj != "" && $showtj != "0") {
        $scl .= " and tj='1' ";
    }
    //模版解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $str = $TempArr["start"];
    $msql->query("select * from {P}_tools_code where {$scl} order by xuhao");
    while ($msql->next_record()) {
        $id = $msql->f("id");
        $qq = $msql->f("qq");
        $name = $msql->f('name');
        $position = $msql->f('position');
        $tel = $msql->f('tel');
        $phone = $msql->f('phone');
        $memo = $msql->f('memo');
        $code = $msql->f("code");
        $xuhao = $msql->f("xuhao");
        $var = array('id' => $id, 'qq' => $qq, 'name' => $name, 'position' => $position, 'tel' => $tel, 'phone' => $phone, 'memo' => $memo, 'code' => $code, 'xuhao' => $xuhao);
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:31,代码来源:ToolsQqCs.php

示例8: LinkPic

function LinkPic()
{
    global $fsql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    $shownums = $GLOBALS["PLUSVARS"]["shownums"];
    $target = $GLOBALS["PLUSVARS"]["target"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $scl = " groupid='{$groupid}' and src!='' ";
    //Ä£°æ½âÊÍ
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('coltitle' => $coltitle, 'morelink' => $morelink);
    $str = ShowTplTemp($TempArr["start"], $var);
    $fsql->query("select * from {P}_advs_link where {$scl} order by xuhao limit 0,{$shownums}");
    while ($fsql->next_record()) {
        $id = $fsql->f('id');
        $name = $fsql->f('name');
        $link = $fsql->f('url');
        $pic = $fsql->f('src');
        $src = ROOTPATH . $pic;
        $var = array('name' => $name, 'link' => $link, 'src' => $src, 'target' => $target);
        if (substr($pic, -4) == ".swf") {
            $str .= ShowTplTemp($TempArr["menu"], $var);
        } else {
            $str .= ShowTplTemp($TempArr["list"], $var);
        }
    }
    $str .= $TempArr["end"];
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:31,代码来源:LinkPic.php

示例9: AdvsFixed

function AdvsFixed()
{
    global $msql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    $pdv = $GLOBALS["PLUSVARS"]["pdv"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $msql->query("select * from {P}_advs_pic where id='{$groupid}'");
    if ($msql->next_record()) {
        $src = $msql->f('src');
        $link = $msql->f('url');
    }
    $src = ROOTPATH . $src;
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('coltitle' => $coltitle, 'src' => $src, 'pdv' => $pdv, 'link' => $link);
    $str = ShowTplTemp($TempArr["start"], $var);
    if (substr($src, -4) == ".swf") {
        $str .= ShowTplTemp($TempArr["menu"], $var);
    } else {
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $str .= ShowTplTemp($TempArr["end"], $var);
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:25,代码来源:AdvsFixed.php

示例10: Logo

function Logo()
{
    global $msql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    $w = $GLOBALS["PLUSVARS"]["w"];
    $h = $GLOBALS["PLUSVARS"]["h"];
    $showborder = $GLOBALS["PLUSVARS"]["showborder"];
    $padding = $GLOBALS["PLUSVARS"]["padding"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $msql->query("select * from {P}_advs_logo where id='{$groupid}'");
    if ($msql->next_record()) {
        $src = $msql->f('src');
        $link = $msql->f('url');
    }
    $src = ROOTPATH . $src;
    $w = $w - $padding;
    $h = $h - $padding;
    if ($showborder != "none") {
        $w = $w - 1;
        $h = $h - 1;
    }
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('coltitle' => $coltitle, 'src' => $src, 'w' => $w, 'h' => $h, 'link' => $link);
    $str = ShowTplTemp($TempArr["start"], $var);
    if (substr($src, -4) == ".swf") {
        $str .= ShowTplTemp($TempArr["menu"], $var);
    } else {
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:34,代码来源:Logo.php

示例11: AdvsMovi

function AdvsMovi()
{
    global $msql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    $w = $GLOBALS["PLUSVARS"]["w"];
    $h = $GLOBALS["PLUSVARS"]["h"];
    $showborder = $GLOBALS["PLUSVARS"]["showborder"];
    $padding = $GLOBALS["PLUSVARS"]["padding"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $msql->query("select * from {P}_advs_movi where id='{$groupid}'");
    if ($msql->next_record()) {
        $src = $msql->f('src');
    }
    $Temp = LoadTemp($tempname);
    $w = $w - $padding;
    $h = $h - $padding;
    if ($showborder != "none") {
        $w = $w - 1;
        $h = $h - 1;
    }
    $var = array('src' => $src, 'w' => $w, 'h' => $h, 'coltitle' => $coltitle);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:25,代码来源:AdvsMovi.php

示例12: JobNavPath

function JobNavPath()
{
    global $msql;
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $pagename = $GLOBALS["PLUSVARS"]["pagename"];
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('sitename' => $GLOBALS["CONF"]["SiteName"]);
    $str = ShowTplTemp($TempArr["start"], $var);
    if ($pagename == "detail") {
        $str .= ShowTplTemp($TempArr["col"], $var);
        //获取地址栏参数
        if (strstr($_SERVER["QUERY_STRING"], ".html")) {
            $idArr = explode(".html", $_SERVER["QUERY_STRING"]);
            $id = $idArr[0];
        } elseif (isset($_GET["id"]) && $_GET["id"] != "") {
            $id = $_GET["id"];
        }
        $msql->query("select jobname from {P}_job where id='{$id}'");
        if ($msql->next_record()) {
            $jobname = $msql->f('jobname');
        }
        $var = array('nav' => $jobname);
        $str .= ShowTplTemp($TempArr["con"], $var);
        $GLOBALS["pagetitle"] = $jobname;
    } else {
        $str .= ShowTplTemp($TempArr["col"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:31,代码来源:JobNavPath.php

示例13: ProductSameClass

function ProductSameClass()
{
    global $msql, $fsql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $shownums = $GLOBALS["PLUSVARS"]["shownums"];
    $showtj = $GLOBALS["PLUSVARS"]["showtj"];
    $target = $GLOBALS["PLUSVARS"]["target"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    //地址栏参数
    if (strstr($_SERVER["QUERY_STRING"], ".html")) {
        $Arr = explode(".html", $_SERVER["QUERY_STRING"]);
        $nowcatid = $Arr[0];
    } elseif ($_GET["catid"] > 0) {
        $nowcatid = $_GET["catid"];
    } else {
        $nowcatid = 0;
    }
    $nowcatid = htmlspecialchars($nowcatid);
    if ($nowcatid != "0") {
        $msql->query("select pid from {P}_product_cat where catid='{$nowcatid}'");
        if ($msql->next_record()) {
            $pid = $msql->f("pid");
        } else {
            $pid = 0;
        }
    } else {
        $pid = 0;
    }
    $scl = " pid='{$pid}' ";
    if ($showtj != "" && $showtj != "0") {
        $scl .= " and tj='1' ";
    }
    //模版解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    //循环开始
    $var = array('coltitle' => $coltitle);
    $str = ShowTplTemp($TempArr["start"], $var);
    $msql->query("select * from {P}_product_cat where {$scl} order by xuhao");
    while ($msql->next_record()) {
        $pid = $msql->f("pid");
        $catid = $msql->f("catid");
        $cat = $msql->f("cat");
        $catpath = $msql->f("catpath");
        $ifchannel = $msql->f('ifchannel');
        if ($ifchannel == "1") {
            $link = ROOTPATH . "product/class/" . $catid . "/";
        } else {
            if ($GLOBALS["CONF"]["CatchOpen"] == "1" && file_exists(ROOTPATH . "product/class/" . $catid . ".html")) {
                $link = ROOTPATH . "product/class/" . $catid . ".html";
            } else {
                $link = ROOTPATH . "product/class/?" . $catid . ".html";
            }
        }
        $var = array('link' => $link, 'cat' => $cat, 'target' => $target);
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:60,代码来源:ProductSameClass.php

示例14: MemberFav

function MemberFav()
{
    global $fsql, $tsql;
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $memberid = $_COOKIE["MEMBERID"];
    $scl = " memberid='{$memberid}' ";
    //Ä£°å½âÊÍ
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $str = $TempArr["start"];
    include ROOTPATH . "includes/pages.inc.php";
    $pages = new pages();
    $totalnums = TblCount("_member_fav", "id", $scl);
    $pages->setvar(array("key" => $key));
    $pages->set(20, $totalnums);
    $pagelimit = $pages->limit();
    $fsql->query("select * from {P}_member_fav where {$scl} order by id desc limit {$pagelimit}");
    while ($fsql->next_record()) {
        $id = $fsql->f('id');
        $title = $fsql->f('title');
        $url = $fsql->f('url');
        $var = array('id' => $id, 'title' => $title, 'url' => $url);
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $pagesinfo = $pages->ShowNow();
    $var = array('showpages' => $pages->output(1), 'pagestotal' => $pagesinfo["total"], 'pagesnow' => $pagesinfo["now"], 'pagesshownum' => $pagesinfo["shownum"], 'pagesfrom' => $pagesinfo["from"], 'pagesto' => $pagesinfo["to"], 'totalnums' => $totalnums);
    $str .= ShowTplTemp($TempArr["end"], $var);
    return $str;
}
开发者ID:noikiy,项目名称:cxe,代码行数:29,代码来源:MemberFav.php

示例15: MemberReg

function MemberReg()
{
    global $msql, $fsql;
    $step = $_REQUEST["step"];
    switch ($step) {
        case "person":
            include "module/RegPerson.php";
            return ShowActive(RegPerson());
            break;
        case "detail":
            include "module/RegDetail.php";
            return ShowActive(RegDetail());
            break;
        case "contact":
            include "module/RegContact.php";
            return ShowActive(RegContact());
            break;
        default:
            $tempname = $GLOBALS["PLUSVARS"]["tempname"];
            $Temp = LoadTemp($tempname);
            $var = array('typelist' => MemberTypeList());
            $str = ShowTplTemp($Temp, $var);
            return $str;
            break;
    }
}
开发者ID:noikiy,项目名称:cxe,代码行数:26,代码来源:MemberReg.php


注:本文中的LoadTemp函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。