Пример #1
0
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;
}
Пример #2
0
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;
}
Пример #3
0
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;
}
Пример #4
0
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;
}
Пример #5
0
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;
}
Пример #6
0
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;
}
Пример #7
0
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;
}
Пример #8
0
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;
}
Пример #9
0
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;
}
Пример #10
0
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;
}
Пример #11
0
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;
}
Пример #12
0
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;
}
Пример #13
0
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;
}
Пример #14
0
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;
}
Пример #15
0
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;
    }
}
Пример #16
0
function MemberCentLog()
{
    global $msql, $fsql, $strCentFormAdmin;
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $memberid = $_COOKIE["MEMBERID"];
    //模板解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    //取出当前积分
    $msql->query("select * from {P}_member where memberid='" . $_COOKIE["MEMBERID"] . "'");
    if ($msql->next_record()) {
        $cent1 = $msql->f('cent1');
        $cent2 = $msql->f('cent2');
        $cent3 = $msql->f('cent3');
        $cent4 = $msql->f('cent4');
        $cent5 = $msql->f('cent5');
    }
    $cw1 = MemberCentWidth($cent1);
    $cw2 = MemberCentWidth($cent2);
    $cw3 = MemberCentWidth($cent3);
    $cw4 = MemberCentWidth($cent4);
    $cw5 = MemberCentWidth($cent5);
    $var = array('centname1' => $GLOBALS["MEMBERCONF"]["centname1"], 'centname2' => $GLOBALS["MEMBERCONF"]["centname2"], 'centname3' => $GLOBALS["MEMBERCONF"]["centname3"], 'centname4' => $GLOBALS["MEMBERCONF"]["centname4"], 'centname5' => $GLOBALS["MEMBERCONF"]["centname5"], 'cw1' => $cw1, 'cw2' => $cw2, 'cw3' => $cw3, 'cw4' => $cw4, 'cw5' => $cw5, 'cent1' => $cent1, 'cent2' => $cent2, 'cent3' => $cent3, 'cent4' => $cent4, 'cent5' => $cent5);
    $str = ShowTplTemp($TempArr["start"], $var);
    $scl = " memberid='{$memberid}' ";
    include ROOTPATH . "includes/pages.inc.php";
    $pages = new pages();
    $totalnums = TblCount("_member_centlog", "id", $scl);
    $pages->setvar(array("key" => $key));
    $pages->set(20, $totalnums);
    $pagelimit = $pages->limit();
    $msql->query("select * from {P}_member_centlog where {$scl} order by dtime desc limit {$pagelimit}");
    while ($msql->next_record()) {
        $id = $msql->f('id');
        $event = $msql->f('event');
        $dtime = $msql->f('dtime');
        $cent1 = $msql->f('cent1');
        $cent2 = $msql->f('cent2');
        $cent3 = $msql->f('cent3');
        $cent4 = $msql->f('cent4');
        $cent5 = $msql->f('cent5');
        $memo = $msql->f('memo');
        if ($event == "0") {
            $eventname = $memo;
        } else {
            $fsql->query("select name from {P}_member_centrule where event='{$event}' ");
            if ($fsql->next_record()) {
                $eventname = $fsql->f('name');
            }
        }
        $dtime = date("Y/m/d H:i:s", $dtime);
        $var = array('id' => $id, 'eventname' => $eventname, 'dtime' => $dtime, 'cent1' => $cent1, 'cent2' => $cent2, 'cent3' => $cent3, 'cent4' => $cent4, 'cent5' => $cent5);
        $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;
}
Пример #17
0
function FeedBackSmallForm()
{
    global $fsql, $tsql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('coltitle' => $coltitle);
    $str = ShowTplTemp($TempArr["start"], $var);
    //调用表单
    $fsql->query("select * from {P}_feedback where groupid='{$groupid}' and use_field = '1' order by xuhao");
    while ($fsql->next_record()) {
        $field_caption = $fsql->f('field_caption');
        $field_type = $fsql->f('field_type');
        $field_size = $fsql->f('field_size');
        $field_name = $fsql->f('field_name');
        $field_value = $fsql->f('field_value');
        $field_null = $fsql->f('field_null');
        $field_value_repeat = $fsql->f('value_repeat');
        $field_intro = $fsql->f('field_intro');
        $field_null = $field_null == "1" ? $mustfill = "<font style='color:red'>*</font>" : ($mustfill = "");
        if ($field_type == "5") {
            if ($step == "send") {
                $nowvalue = $_POST[$field_name];
            }
            $fieldvalue = explode(";", $field_value);
            $nums = count($fieldvalue);
            for ($i = 0; $i < $nums; $i++) {
                if ($fieldvalue[$i] == $nowvalue) {
                    $checked_select = "selected";
                } else {
                    $checked_select = "";
                }
                $list .= "<option value=" . $fieldvalue[$i] . " " . $checked_select . ">" . $fieldvalue[$i] . "</option>";
            }
            $var = array('title' => $field_caption, 'size' => $field_size, 'fieldname' => $field_name, 'fieldvalue' => $field_value, 'mustfill' => $mustfill, 'list' => $list, 'intro' => $field_intro);
            $str .= ShowTplTemp($TempArr["list"], $var);
            $list = "";
        } elseif ($field_type == "2") {
            if ($step == "send") {
                $field_value = $_POST[$field_name];
            }
            $var = array('title' => $field_caption, 'size' => $field_size, 'fieldname' => $field_name, 'fieldvalue' => $field_value, 'mustfill' => $mustfill, 'intro' => $field_intro);
            $str .= ShowTplTemp($TempArr["textarea"], $var);
        } else {
            if ($step == "send") {
                $field_value = $_POST[$field_name];
            } elseif ($field_name == "title" && $_GET["rel"] != "") {
                $field_value = $_GET["rel"];
            }
            $var = array('title' => $field_caption, 'size' => $field_size, 'fieldname' => $field_name, 'fieldvalue' => $field_value, 'mustfill' => $mustfill, 'intro' => $field_intro);
            $str .= ShowTplTemp($TempArr["input"], $var);
        }
    }
    $var = array('groupid' => $groupid);
    $str .= ShowTplTemp($TempArr["end"], $var);
    return $str;
}
Пример #18
0
function PageTitleList()
{
    global $fsql, $msql;
    //插件设置
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $shownums = $GLOBALS["PLUSVARS"]["shownums"];
    $cutword = $GLOBALS["PLUSVARS"]["cutword"];
    $target = $GLOBALS["PLUSVARS"]["target"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    if ($groupid != 0 && $groupid != "") {
        $fsql->query("select folder from {P}_page_group where id='{$groupid}'");
        if ($fsql->next_record()) {
            $folder = $fsql->f('folder');
        }
    } else {
        $str = "NO GROUPID";
        return $str;
    }
    //模版解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('coltitle' => $coltitle);
    $str = ShowTplTemp($TempArr["start"], $var);
    $fsql->query("select * from {P}_page where groupid='{$groupid}' order by xuhao limit 0,{$shownums}");
    while ($fsql->next_record()) {
        $id = $fsql->f('id');
        $title = $fsql->f('title');
        $url = $fsql->f('url');
        $pagefolder = $fsql->f('pagefolder');
        //链接,如果有跳转网址则优先跳转 20090503
        if (strlen($url) > 1) {
            if (substr($url, 0, 7) == "http://") {
                $link = $url;
            } else {
                $link = ROOTPATH . $url;
            }
        } else {
            //如果有独立页,优先独立页
            if ($pagefolder != "" && file_exists(ROOTPATH . "page/" . $folder . "/" . $pagefolder . ".php")) {
                $link = ROOTPATH . "page/" . $folder . "/" . $pagefolder . ".php";
            } else {
                if ($GLOBALS["CONF"]["CatchOpen"] == "1" && file_exists(ROOTPATH . "page/" . $folder . "/" . $id . ".html")) {
                    $link = ROOTPATH . "page/" . $folder . "/" . $id . ".html";
                } else {
                    $link = ROOTPATH . "page/" . $folder . "/?" . $id . ".html";
                }
            }
        }
        if ($cutword != "0") {
            $title = csubstr($title, 0, $cutword);
        }
        //模版标签解释
        $var = array('title' => $title, 'link' => $link, 'target' => $target);
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}
Пример #19
0
function MemberLogin()
{
    global $msql, $fsql, $SiteUrl;
    global $strLoginNotice1, $strLoginNotice2, $strLoginNotice3, $strLoginNotice4;
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $Temp = LoadTemp($tempname);
    return $Temp;
}
Пример #20
0
function ResetPass()
{
    global $msql, $SiteUrl;
    global $strLostpassNtc1, $strLostpassNtc2, $strLostpassNtc3, $strLostpassNtc4, $strLostpassNtc5;
    global $strLostpassNtc6, $strLostpassNtc7, $strLostpassNtc8, $strLostpassNtc9;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $Temp = LoadTemp($tempname);
    $step = $_REQUEST["step"];
    if ($step == "checkmail") {
        $codestr = $_GET["codestr"];
        $username = $_GET["username"];
        $tm = $_GET["tm"];
        if (!isset($_COOKIE["NEWPASSWD"]) || $_COOKIE["NEWPASSWD"] == "") {
            $PageMain = err($strLostpassNtc7, "lostpass.php", "");
            return $PageMain;
        }
        $md5 = md5($username . "Z(o)C~LoSbZ8Tj7MvBAs(8)!nn^Lp^12345^Pm" . $_COOKIE["NEWPASSWD"] . $tm);
        if ($md5 == $codestr) {
            $mdpass = md5($_COOKIE["NEWPASSWD"]);
            $msql->query("update {P}_member set password='******' where user='******'");
            $PageMain = SayOk($strLostpassNtc8, "login.php", "");
            return $PageMain;
        } else {
            $PageMain = err($strLostpassNtc9, "lostpass.php", "");
            return $PageMain;
        }
    } elseif ($step == "2") {
        $username = $_POST["username"];
        $newpass = $_POST["newpass"];
        if (!isset($username) || $username == "" || $newpass == "") {
            $str = err($strLostpassNtc1, "", "");
            return $str;
        } else {
            $msql->query("select email from {P}_member where user='******'");
            if ($msql->next_record()) {
                $email = $msql->f('email');
                $tm = time();
                setCookie("NEWPASSWD", $newpass, time() + 7200);
                $md5 = md5($username . "Z(o)C~LoSbZ8Tj7MvBAs(8)!nn^Lp^12345^Pm" . $newpass . $tm);
                $link = $SiteUrl . "lostpass.php?step=checkmail&username="******"&codestr=" . $md5 . "&tm=" . $tm;
                $message = $username . $strLostpassNtc2 . "\r\n \r\n" . $strLostpassNtc3 . "\r\n \r\n" . $link . "\r\n \r\n" . $GLOBALS["CONF"]["SiteName"] . "\r\n" . $GLOBALS["CONF"]["SiteHttp"];
                include ROOTPATH . "includes/ebmail.inc.php";
                ebmail($email, $GLOBALS["CONF"]["SiteEmail"], $strLostpassNtc4, $message);
                $str = SayOk($strLostpassNtc5 . "<br><br>" . $email, "", "");
                return $str;
            } else {
                $str = err($strLostpassNtc6, "", "");
                return $str;
            }
        }
    } else {
        $var = array('coltitle' => $coltitle);
        $str = ShowTplTemp($Temp, $var);
        return $str;
    }
}
Пример #21
0
function MemberTags()
{
    global $fsql, $msql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $shownums = $GLOBALS["PLUSVARS"]["shownums"];
    $target = $GLOBALS["PLUSVARS"]["target"];
    $tags = $GLOBALS["PLUSVARS"]["tags"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $picw = $GLOBALS["PLUSVARS"]["picw"];
    $pich = $GLOBALS["PLUSVARS"]["pich"];
    //模版解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('coltitle' => $coltitle);
    $str = ShowTplTemp($TempArr["start"], $var);
    //查询条件
    $scl = " memberid!='0' ";
    //判断匹配标签
    if ($tags != "") {
        $tags = $tags . ",";
        $scl .= " and tags regexp '{$tags}' ";
    }
    //积分名称
    $msql->query("select * from {P}_member_centset");
    if ($msql->next_record()) {
        $centname1 = $msql->f('centname1');
        $centname2 = $msql->f('centname2');
        $centname3 = $msql->f('centname3');
        $centname4 = $msql->f('centname4');
        $centname5 = $msql->f('centname5');
    }
    $picnum = 1;
    $fsql->query("select * from {P}_member where {$scl} order by cent1 desc limit 0,{$shownums}");
    while ($fsql->next_record()) {
        $mid = $fsql->f('memberid');
        $pname = $fsql->f('pname');
        $nowface = $fsql->f('nowface');
        $tags = $fsql->f('tags');
        $cent1 = $fsql->f('cent1');
        $cent2 = $fsql->f('cent2');
        $cent3 = $fsql->f('cent3');
        $cent4 = $fsql->f('cent4');
        $cent5 = $fsql->f('cent5');
        $memberurl = ROOTPATH . "member/home.php?mid=" . $mid;
        $face = ROOTPATH . "member/face/" . $nowface . ".gif";
        $tagsArr = explode(",", $tags);
        $tag1 = $tagsArr[0];
        $tag2 = $tagsArr[1];
        $tag3 = $tagsArr[2];
        //模版标签解释
        $var = array('pname' => $pname, 'face' => $face, 'picw' => $picw, 'pich' => $pich, 'tag1' => $tag1, 'tag2' => $tag2, 'tag3' => $tag3, 'memberurl' => $memberurl, 'centname1' => $centname1, 'centname2' => $centname2, 'centname3' => $centname3, 'centname4' => $centname4, 'centname5' => $centname5, 'cent1' => $cent1, 'cent2' => $cent2, 'cent3' => $cent3, 'cent4' => $cent4, 'cent5' => $cent5, 'target' => $target, 'picnum' => $picnum);
        $str .= ShowTplTemp($TempArr["list"], $var);
        $picnum++;
    }
    $str .= $TempArr["end"];
    return $str;
}
Пример #22
0
function DiyMovi()
{
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $movi = $GLOBALS["PLUSVARS"]["movi"];
    $Temp = LoadTemp($tempname);
    $var = array('movi' => $movi);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
Пример #23
0
function JianFan()
{
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $Temp = LoadTemp($tempname);
    $var = array('coltitle' => $coltitle);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
Пример #24
0
function RegDetail()
{
    global $msql, $fsql;
    $memberid = $_COOKIE["MEMBERID"];
    //获取会员资料
    $msql->query("select * from {P}_member where memberid='{$memberid}'");
    if ($msql->next_record()) {
        $name = $msql->f('name');
        $company = $msql->f('company');
        $sex = $msql->f('sex');
        $birthday = $msql->f('birthday');
        $zoneid = $msql->f('zoneid');
        $url = $msql->f('url');
        $passtype = $msql->f('passtype');
        $passcode = $msql->f('passcode');
        $bz = $msql->f('bz');
        $membertypeid = $msql->f('membertypeid');
        $membergroupid = $msql->f('membergroupid');
    }
    //不同会员类型不同模板
    switch ($membergroupid) {
        case "1":
            $tempname = "tpl_reg_detail.htm";
            break;
        case "2":
            $tempname = "tpl_reg_detail_company.htm";
            break;
        default:
            $tempname = "tpl_reg_detail.htm";
            break;
    }
    //表单数据处理
    $yy = substr($birthday, 0, 4);
    $mm = substr($birthday, 4, 2);
    $dd = substr($birthday, 6, 2);
    $BirthYear = BirthYear($yy);
    $BirthMonth = BirthMonth($mm);
    $BirthDay = BirthDay($dd);
    $PassList = PassList($passtype);
    $ZONE = ZoneList($zoneid);
    $ZoneList = $ZONE["str"];
    $Province = $ZONE["pr"];
    if ($url == "") {
        $url = "http://";
    }
    if ($sex == "1") {
        $CHKman = " checked";
    }
    if ($sex == "2") {
        $CHKwoman = " checked";
    }
    $var = array('membertypeid' => $membertypeid, 'BirthYear' => $BirthYear, 'CHKman' => $CHKman, 'CHKwoman' => $CHKwoman, 'BirthMonth' => $BirthMonth, 'BirthDay' => $BirthDay, 'ZoneList' => $ZoneList, 'Province' => $Province, 'PassList' => $PassList, 'name' => $name, 'company' => $company, 'zoneid' => $zoneid, 'url' => $url, 'passcode' => $passcode, 'bz' => $bz);
    //模版解释
    $Temp = LoadTemp($tempname);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
Пример #25
0
function PhotoFabu()
{
    global $msql, $fsql, $tsql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $memberid = $_COOKIE["MEMBERID"];
    $memberid = htmlspecialchars($memberid);
    //个人分类
    $fsql->query("select * from {P}_photo_pcat where memberid='{$memberid}' order by xuhao");
    while ($fsql->next_record()) {
        $pcatid = $fsql->f("catid");
        $pcat = $fsql->f("cat");
        $pcatlist .= "<option value='" . $pcatid . "'>" . $pcat . "</option>";
    }
    //获取公共分类授权
    $secureset = SecureClass("156");
    //公共分类
    $fsql->query("select * from {P}_photo_cat order by catpath");
    while ($fsql->next_record()) {
        $lpid = $fsql->f("pid");
        $lcatid = $fsql->f("catid");
        $cat = $fsql->f("cat");
        $catpath = $fsql->f("catpath");
        $lcatpath = explode(":", $catpath);
        //当主分类有授权时读取下级分类
        if (strstr($secureset, ":" . intval($lcatpath[0]) . ":")) {
            for ($i = 0; $i < sizeof($lcatpath) - 2; $i++) {
                $lcatpath[$i] = intval($lcatpath[$i]);
                $tsql->query("select catid,cat from {P}_photo_cat where catid='{$lcatpath[$i]}'");
                if ($tsql->next_record()) {
                    $ncatid = $tsql->f('cat');
                    $ncat = $tsql->f('cat');
                    $ppcat .= $ncat . "/";
                }
            }
            if ($pid == $lcatid) {
                $catlist .= "<option value='" . $lcatid . "' selected>" . $ppcat . $cat . "</option>";
            } else {
                $catlist .= "<option value='" . $lcatid . "'>" . $ppcat . $cat . "</option>";
            }
            $ppcat = "";
        }
    }
    //专题
    $fsql->query("select * from {P}_photo_proj order by id desc");
    while ($fsql->next_record()) {
        $projid = $fsql->f("id");
        $project = $fsql->f("project");
        $NowPath = fmpath($projid);
        $musellist .= "<option value=" . $NowPath . ">" . $project . "</option>";
    }
    //模版解释
    $Temp = LoadTemp($tempname);
    $var = array('pname' => $_COOKIE["MEMBERPNAME"], 'catlist' => $catlist, 'pcatlist' => $pcatlist, 'musellist' => $musellist);
    $str .= ShowTplTemp($Temp, $var);
    return $str;
}
Пример #26
0
function BgSource()
{
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $sourceurl = $GLOBALS["PLUSVARS"]["sourceurl"];
    $Temp = LoadTemp($tempname);
    $var = array('sourceurl' => $sourceurl);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
Пример #27
0
function MemberComment()
{
    global $fsql, $tsql;
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $memberid = $_COOKIE["MEMBERID"];
    $scl = " pid='0' and memberid='{$memberid}' ";
    //模板解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $str = $TempArr["start"];
    include ROOTPATH . "includes/pages.inc.php";
    $pages = new pages();
    $totalnums = TblCount("_comment", "id", $scl);
    $pages->setvar(array("key" => $key));
    $pages->set(20, $totalnums);
    $pagelimit = $pages->limit();
    $fsql->query("select * from {P}_comment where {$scl} order by uptime desc limit {$pagelimit}");
    while ($fsql->next_record()) {
        $id = $fsql->f('id');
        $title = $fsql->f('title');
        $iffb = $fsql->f('iffb');
        $rid = $fsql->f('rid');
        $catid = $fsql->f('catid');
        $dtime = $fsql->f('dtime');
        $uptime = $fsql->f('uptime');
        $cl = $fsql->f('cl');
        $lastname = $fsql->f('lastname');
        $lastmemberid = $fsql->f('lastmemberid');
        $backcount = $fsql->f('backcount');
        $title = csubstr($title, 0, 23);
        //是否今日新贴
        if ($uptime > time() - 86400) {
            $querycss = "binew";
        } else {
            $querycss = "bi";
        }
        $dtime = date("Y-m-d", $dtime);
        $uptime = date("Y-m-d", $uptime);
        if ($GLOBALS["CONF"]["CatchOpen"] == "1" && file_exists(ROOTPATH . "comment/html/" . $id . ".html")) {
            $link = ROOTPATH . "comment/html/" . $id . ".html";
        } else {
            $link = ROOTPATH . "comment/html/?" . $id . ".html";
        }
        //回复者网址
        if ($lastmemberid == "-1") {
            $lastmemberurl = "#";
        } else {
            $lastmemberurl = ROOTPATH . "member/home.php?mid=" . $lastmemberid;
        }
        $var = array('id' => $id, 'title' => $title, 'dtime' => $dtime, 'uptime' => $uptime, 'backcount' => $backcount, 'querycss' => $querycss, 'cl' => $cl, 'link' => $link, 'lastname' => $lastname, 'lastmemberurl' => $lastmemberurl, 'face' => $face);
        $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;
}
Пример #28
0
function MemberInfo()
{
    global $msql;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $msql->query("select * from {P}_member where memberid='" . $_COOKIE["MEMBERID"] . "'");
    if ($msql->next_record()) {
        $user = $msql->f('user');
        $memberid = $msql->f('memberid');
        $membertypeid = $msql->f('membertypeid');
        $membergroupid = $msql->f('membergroupid');
        $name = $msql->f('name');
        $pname = $msql->f('pname');
        $sex = $msql->f('sex');
        $birthday = $msql->f('birthday');
        $zoneid = $msql->f('zoneid');
        $addr = $msql->f('addr');
        $tel = $msql->f('tel');
        $mov = $msql->f('mov');
        $postcode = $msql->f('postcode');
        $email = $msql->f('email');
        $url = $msql->f('url');
        $passtype = $msql->f('passtype');
        $passcode = $msql->f('passcode');
        $qq = $msql->f('qq');
        $msn = $msql->f('msn');
        $maillist = $msql->f('maillist');
        $bz = $msql->f('bz');
        $regtime = date("Y-m-d H:i:s", $msql->f('regtime'));
        $account = $msql->f('account');
        $paytotal = $msql->f('paytotal');
        $buytotal = $msql->f('buytotal');
        $cent1 = $msql->f('cent1');
        $cent2 = $msql->f('cent2');
        $cent3 = $msql->f('cent3');
        $cent4 = $msql->f('cent4');
        $cent5 = $msql->f('cent5');
        $memberface = $msql->f('memberface');
        $nowface = $msql->f('nowface');
        $ip = $msql->f('ip');
        $logincount = $msql->f('logincount');
        $logintime = date("Y-m-d H:i:s", $msql->f('logintime'));
        $loginip = $msql->f('loginip');
        $exptime = $msql->f('exptime');
        if ($exptime == "0") {
            $exptime = "---";
        } else {
            $exptime = date("Y-m-d H:i:s", $msql->f('exptime'));
        }
    }
    $memberurl = ROOTPATH . "member/home.php?mid=" . $memberid;
    $Temp = LoadTemp($tempname);
    $var = array('user' => $user, 'name' => $name, 'pname' => $pname, 'account' => $account, 'logincount' => $logincount, 'memberurl' => $memberurl, 'ip' => $ip, 'logintime' => $logintime, 'loginip' => $loginip, 'regtime' => $regtime, 'exptime' => $exptime);
    $str = ShowTplTemp($Temp, $var);
    return $str;
}
Пример #29
0
function MVMenu()
{
    global $msql, $fsql;
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $tempcolor = $GLOBALS["PLUSVARS"]["tempcolor"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    //模版解释
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('tempcolor' => $tempcolor);
    $str .= ShowTplTemp($TempArr["start"], $var);
    $msql->query("select * from {P}_menu where ifshow='1' and groupid='{$groupid}' and pid='0' order by xuhao ");
    while ($msql->next_record()) {
        $topid = $msql->f("id");
        $topmenu = $msql->f("menu");
        $menustr = "";
        $fsql->query("select * from {P}_menu where ifshow='1' and  pid='{$topid}' order by xuhao ");
        while ($fsql->next_record()) {
            $id = $fsql->f("id");
            $menu = $fsql->f("menu");
            $linktype = $fsql->f('linktype');
            $coltype = $fsql->f('coltype');
            $folder = $fsql->f('folder');
            $url = $fsql->f('url');
            $target = $fsql->f('target');
            switch ($linktype) {
                case "1":
                    $menuurl = ROOTPATH . $folder;
                    break;
                case "2":
                    $menuurl = $url;
                    break;
                default:
                    if ($coltype == "index") {
                        if ($GLOBALS["CONF"]["CatchOpen"] == "1") {
                            $menuurl = ROOTPATH;
                        } else {
                            $menuurl = ROOTPATH . "index.php";
                        }
                    } else {
                        if ($GLOBALS["CONF"]["CatchOpen"] == "1") {
                            $menuurl = ROOTPATH . $coltype . "/";
                        } else {
                            $menuurl = ROOTPATH . $coltype . "/index.php";
                        }
                    }
                    break;
            }
            $menustr .= "<li><a href='" . $menuurl . "' target='" . $target . "'>" . $menu . "</a></li>";
        }
        $var = array('menustr' => $menustr, 'topmenu' => $topmenu);
        $str .= ShowTplTemp($TempArr["list"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}
Пример #30
0
function TopMenu()
{
    global $msql, $SiteUrl;
    $coltitle = $GLOBALS["PLUSVARS"]["coltitle"];
    $groupid = $GLOBALS["PLUSVARS"]["groupid"];
    $shownums = $GLOBALS["PLUSVARS"]["shownums"];
    $tempname = $GLOBALS["PLUSVARS"]["tempname"];
    $Temp = LoadTemp($tempname);
    $TempArr = SplitTblTemp($Temp);
    $var = array('coltitle' => $coltitle);
    $str = ShowTplTemp($TempArr["start"], $var);
    $msql->query("select * from {P}_menu where ifshow='1' and groupid='{$groupid}' order by xuhao limit 0,{$shownums}");
    while ($msql->next_record()) {
        $id = $msql->f('id');
        $menu = $msql->f('menu');
        $linktype = $msql->f('linktype');
        $coltype = $msql->f('coltype');
        $folder = $msql->f('folder');
        $url = $msql->f('url');
        $target = $msql->f('target');
        switch ($linktype) {
            //1=内部链接
            case "1":
                $menuurl = ROOTPATH . $folder;
                break;
                //2=外部链接
            //2=外部链接
            case "2":
                $menuurl = $url;
                break;
                //链接到模块
            //链接到模块
            default:
                if ($coltype == "index") {
                    //首页特殊处理
                    if ($GLOBALS["CONF"]["CatchOpen"] == "1") {
                        $menuurl = ROOTPATH;
                    } else {
                        $menuurl = ROOTPATH . "index.php";
                    }
                } else {
                    //正常模块链接
                    if ($GLOBALS["CONF"]["CatchOpen"] == "1") {
                        $menuurl = ROOTPATH . $coltype . "/";
                    } else {
                        $menuurl = ROOTPATH . $coltype . "/index.php";
                    }
                }
                break;
        }
        $var = array('menu' => $menu, 'menuurl' => $menuurl, 'target' => $target);
        $str .= ShowTplTemp($TempArr["menu"], $var);
    }
    $str .= $TempArr["end"];
    return $str;
}