Exemplo n.º 1
0
        $firstpic = $dsql->GetOne("select * from #@__photo_picture where id={$imgid}");
        $prevpic = $dsql->GetOne("select * from #@__photo_picture where pid='{$row['id']}' and id<'{$imgid}' order by id desc");
        $nextpic = $dsql->GetOne("select * from #@__photo_picture where pid='{$row['id']}' and id>'{$imgid}' order by id asc");
    }
    $imgid = $firstpic['id'];
    $row['prepichtml'] = $prevpic['id'];
    $row['nextpichtml'] = !empty($nextpic) ? "<div class=\"ad-next\" onclick=\"window.open('/photos/show_{$aid}_{$nextpic['id']}.html','_self')\" style=\"cursor: url({$GLOBALS['cfg_templets_skin']}/images/img_next.cur), auto; height: 100%;\"><div class=\"ad-next-image\" style=\"opacity: 0.7; display: none;\"></div></div>" : '';
    $row['prevpichtml'] = !empty($prevpic) ? "<div class=\"ad-prev\" onclick=\"window.open('/photos/show_{$aid}_{$prevpic['id']}.html','_self')\" style=\"cursor: url({$GLOBALS['cfg_templets_skin']}/images/img_pre.cur), auto; height: 100%;\"><div class=\"ad-prev-image\" style=\"opacity: 0.7; display: none;\"></div></div>" : '';
    $row['bigpic'] = empty($firstpic['bigpic']) ? str_replace('litimg', 'allimg', $firstpic['litpic']) : $firstpic['bigpic'];
    $row['pkname'] = get_par_value($row['kindlist'], $typeid);
    //获取相邻相册
    $prephoto = getPhotoSibling($aid, 0, 0);
    $nextphoto = getPhotoSibling($aid, 0, 1, $prephoto['aid']);
    foreach ($row as $k => $v) {
        $pv->Fields[$k] = $v;
    }
}
$typename = GetTypeName($typeid);
//获取栏目名称.
$pv->Fields['typename'] = $typename;
$pv->Fields['tagword'] = $row['tagword'];
$pv->Fields['title'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title'];
//获取上级开启了导航的目的地
getTopNavDest($row['kindlist']);
//$articletitle="第({$pv->Fields['imgthis']})张";
//$pv->Fields['title'].=$articletitle;
$templet = Helper_Archive::getUseTemplet('photo_show');
//获取首页使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "photos/" . "photo_show.htm";
$pv->SetTemplet($templet);
$pv->Display();
Exemplo n.º 2
0
}
$sql = "select a.* from #@__visa a left join #@__allorderlist b on (a.id=b.aid and b.typeid={$typeid} and a.webid=b.webid) where a.ishidden=0 {$where} order by case when b.displayorder is null then 9999 end,b.displayorder asc,a.modtime desc,a.addtime desc";
$seoarr = array();
//seo信息数组
$seoarr['typename'] = GetTypeName($typeid);
$seoarr['pageno'] = !empty($pageno) ? '第' . $pageno . '页-' : "";
$seoarr['seotitle'] = $countryinfo['seotitle'] ? $countryinfo['seotitle'] : $countryinfo['kindname'];
$seoarr['seodescription'] = !empty($countryinfo['description']) ? "<meta name=\"description\" content=\"" . $countryinfo['description'] . "\"/>" : "";
$seoarr['seokeyword'] = !empty($countryinfo['keyword']) ? "<meta name=\"keywords\" content=\"" . $countryinfo['keyword'] . "\"/>" : "";
$seoarr['jieshao'] = $countryinfo['jieshao'];
$seoarr['litpic_guoqi'] = $countryinfo['countrypic'] ? $countryinfo['countrypic'] : getDefaultImage();
$seoarr['bigpic'] = $countryinfo['bigpic'] ? $countryinfo['bigpic'] : '/templets/smore/images/guojia_bg.jpg';
$seoarr['countryname'] = $countryinfo['kindname'];
$pv = new ListView($typeid);
$pv->pagesize = 8;
//分页条数.
$pv->SetSql($sql);
//seo变量赋值
foreach ($seoarr as $k => $v) {
    $pv->Fields[$k] = $v;
}
$pv->SetParameter('countrypy', $countrypy);
$pv->SetParameter('cityid', $cityid);
//模板选择
$templet = Helper_Archive::getUseTemplet('visa_list');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "visa/list.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
exit;
Exemplo n.º 3
0
    $sql = "select a.* from sline_model_archive a left join sline_allorderlist b on(a.id=b.aid and b.typeid={$typeid} ) {$where} order by b.displayorder asc, a.modtime desc,a.addtime desc ";
}
$destinfo = TongYong::getDestSeoInfo($module_dest_table, $dest_id);
//目的地优化信息;
$seoinfo = TongYong::getSeoInfo($destinfo, $attrid, $typeid);
//组合搜索标题
//下级目的地
$destlist = Helper_Archive::getChildDest($dest_id, $typeid);
$pv = new ListView($typeid);
$pv->pagesize = 16;
//分页条数.
$pv->SetSql($sql);
//seo变量赋值
foreach ($destinfo as $k => $v) {
    $pv->Fields[$k] = $v;
}
foreach ($seoinfo as $k => $v) {
    $pv->Fields[$k] = $v;
}
$pv->Fields['typeid'] = $typeid;
$pv->Fields['modulename'] = $module_name;
$pv->Fields['modulepinyin'] = $module_pinyin;
$pv->SetParameter('destid', $dest_id);
$pv->SetParameter('attrid', $attrid);
$templet = Helper_Archive::getUseTemplet('line_list');
//获取使用模板
$templet = SLINETEMPLATE . "/" . $cfg_df_style . "/tongyong/tongyong_index.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
exit;
Exemplo n.º 4
0
    $pv->Fields['seodescription'] = !empty($destinfo['description']) ? "<meta name=\"description\" content=\"" . $destinfo['description'] . "\"/>" : "";
    $pv->Fields['seotitle'] = !empty($destinfo['seotitle']) ? $destinfo['seotitle'] : $pv->Fields['seotitle'];
}
if (!empty($dest_id)) {
    $where .= " and find_in_set({$dest_id},a.kindlist)";
}
if (!empty($attrid)) {
    $attrid_arr = explode(',', $attrid);
    foreach ($attrid_arr as $k => $v) {
        $where .= " and find_in_set({$v},a.attrid)";
    }
}
$mianbao = getTuanMianBao($dest_id);
$destlist = getTuanChildDest($dest_id);
//获取上级开启了导航的目的地
getTopNavDest($dest_id);
$virtual_arr = $dsql->GetOne("select sum(ifnull(virtualnum,0)) as number from #@__tuan");
$booknum = Helper_Archive::getSellNum(0, 13) + $virtual_arr['number'];
$sql = "select a.* from #@__tuan a left join #@__allorderlist b on (a.id=b.aid and b.typeid={$typeid} and a.webid=b.webid) where {$where} order by ifnull(b.displayorder,9999) asc,a.addtime desc";
$pv->pagesize = 16;
//分页条数.
$pv->SetSql($sql);
$pv->SetParameter('dest_id', $dest_id);
$pv->SetParameter('status', $status);
$pv->SetParameter('attrid', $attrid);
$templet = Helper_Archive::getUseTemplet('tuan_index');
//获取首页使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "tuan/" . "tuan_index.htm";
$pv->SetTemplet($templet);
$pv->Display();
exit;
Exemplo n.º 5
0
}
foreach ($seoarr as $k => $v) {
    $pv->Fields[$k] = $v;
}
$pv->Fields['searchname'] = empty($pv->Fields['dest_name']) ? $keyword : $pv->Fields['dest_name'];
$pv->Fields['searchname'] = empty($pv->Fields['searchname']) ? '全部' : $pv->Fields['searchname'];
//分页搜索条件
$pv->SetParameter('dest_id', $dest_id);
$pv->SetParameter('priceid', $priceid);
$pv->SetParameter('sorttype', $sorttype);
$pv->SetParameter('keyword', $keyword);
$pv->SetParameter('attrid', $attrid);
//获取上级开启了导航的目的地
getTopNavDest($dest_id);
//模板选择
$templet = Helper_Archive::getUseTemplet('spot_list');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "spots/" . "spot_search.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
exit;
//本页面用到的函数
/**
 *  获得档目名称
 *
 * @access    private
 * @return    arr
 */
function getDestInfo($typeid, $childid = 0)
{
Exemplo n.º 6
0
$dopost = empty($dopost) ? 'login' : $dopost;
$ucfile = SLINEDATA . '/ucenter.php';
if (file_exists($ucfile)) {
    require_once $ucfile;
}
$headurl = getenv("HTTP_REFERER");
$headurl = !empty($headurl) ? $headurl : $_SERVER['HTTP_REFERER'];
$pv = new View(0);
//登陆界面
if ($dopost == 'login') {
    @session_start();
    $fromurl = $_SERVER['HTTP_REFERER'];
    //来源地址
    $fromurl = strpos($fromurl, 'login') || strpos($fromurl, 'findpass') ? $GLOBALS['cfg_basehost'] : $fromurl;
    $_SESSION['login_referer'] = $fromurl;
    $templet = Helper_Archive::getUseTemplet('member_login');
    //获取使用模板
    $templet = !empty($templet) ? $templet : MEMBERTEMPLET . 'login.htm';
    $pv->SetTemplet($templet);
    $pv->Display();
    exit;
}
//登陆验证
if ($dopost == 'dologin') {
    $ucsynlogin = '';
    $User = new Member(7 * 3600);
    $flag = $User->login($loginname, $password, 1);
    #api{{
    if (defined('UC_API') && (include_once SLINEROOT . '/uc_client/client.php')) {
        //检查帐号
        list($uid, $loginname, $password, $email) = uc_user_login($loginname, $password);
Exemplo n.º 7
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
$typeid = 2;
//酒店栏目
require_once SLINEINC . "/view.class.php";
$html = dirname(__FILE__) . '/index.html';
if (file_exists($html) && $genpage != 1) {
    include $html;
    exit;
} else {
    $pv = new View($typeid);
    $pv->GetChannelKeywords($typeid);
    //根据栏目类型获取关键词.介绍,栏目名称
    $templet = Helper_Archive::getUseTemplet('hotel_index');
    //获取首页使用模板
    $templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "hotels/" . "hotel_index.htm";
    $pv->SetTemplet($templet);
    $pv->Display();
}
Exemplo n.º 8
0
//其他栏目URL
if (empty($dest_id)) {
    $dest_url = $GLOBALS['cfg_basehost'] . '/destination/';
    $hotel_url = $GLOBALS['cfg_basehost'] . '/hotels/';
    $raider_url = $GLOBALS['cfg_basehost'] . '/raiders/';
    $photo_url = $GLOBALS['cfg_basehost'] . '/photos/';
} else {
    $pinyin = Helper_Archive::getDestPinyin($dest_id);
    $pinyin = !empty($pinyin) ? $pinyin : $dest_id;
    $dest_url = $GLOBALS['cfg_basehost'] . '/' . $pinyin . '/';
    $hotel_url = $GLOBALS['cfg_basehost'] . '/hotels/' . $pinyin . '/';
    $raider_url = $GLOBALS['cfg_basehost'] . '/raiders/' . $pinyin . '/';
    $photo_url = $GLOBALS['cfg_basehost'] . '/photos/' . $pinyin . '/';
}
//模板选择
$templet = Helper_Archive::getUseTemplet('hotel_list');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/hotels/hotel_search.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
exit;
/**
 *  获得档目名称
 *
 * @access    private
 * @return    arr
 */
function getDestInfo($typeid, $childid = 0)
{
    global $dsql, $cfg_hotel_title, $cfg_hotel_desc;
Exemplo n.º 9
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once SLINEINC . "/view.class.php";
require_once SLINEDATA . "/webinfo.php";
$typeid = 5;
//景点栏目
$html = dirname(__FILE__) . '/index.html';
if (file_exists($html) && $genpage != 1) {
    include $html;
    exit;
} else {
    $pv = new View($typeid);
    $pv->GetChannelKeywords($typeid);
    //根据栏目类型获取关键词.介绍,栏目名称
    $templet = Helper_Archive::getUseTemplet('spot_index');
    //获取首页使用模板
    $templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "spots/" . "spot_index.htm";
    $pv->SetTemplet($templet);
    $pv->Display();
    exit;
}
Exemplo n.º 10
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once dirname(__FILE__) . "/destination.index.class.php";
require_once SLINEINC . "/view.class.php";
$typeid = 12;
$pv = new View($typeid);
//$dest = new DestinationCache();
$pv->GetChannelKeywords(12);
//根据栏目类型获取关键词.介绍,栏目名称
$pv->Fields['seokeyword'] = !empty($pv->Fields['seokeyword']) ? "<meta name=\"keywords\" content=\"" . $pv->Fields['seokeyword'] . "\"/>" : "";
$pv->Fields['seodescription'] = !empty($pv->Fields['seodescription']) ? "<meta name=\"description\" content=\"" . $pv->Fields['seodescription'] . "\"/>" : "";
//$pv->Fields['list'] = $dest->getCacheDest();
$templet = Helper_Archive::getUseTemplet('dest_boot');
//获取目的地引导页使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "destination/" . "index.htm";
$pv->SetTemplet($templet);
$pv->Display();
//功能函数
//获取目的地下级HTML
function getDestChildHtml($pid)
{
    Helper_Archive::loadModule('common');
    $model = new CommonModule('#@__destinations');
    $arr = $model->getAll("pid='{$pid}' and isopen=1", "displayorder asc");
    $out = '';
    foreach ($arr as $row) {
        $num = $model->getCount("pid='{$row['id']}'");
        $class = $num ? " class='haschild'" : "";
        $url = $GLOBALS['cfg_basehost'] . '/' . $row['pinyin'] . '/';
        $out .= '<dd><a href="' . $url . '" target="_blank"' . $class . ' data-id="' . $row['id'] . '">' . $row['kindname'] . '</a></dd>';
Exemplo n.º 11
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
$typeid = 8;
//签证栏目
require_once SLINEINC . "/view.class.php";
require_once dirname(__FILE__) . "/visa.func.php";
require_once SLINEDATA . "/webinfo.php";
$html = dirname(__FILE__) . '/index.html';
if (file_exists($html) && $genpage != 1) {
    include $html;
    exit;
}
//获取上级开启了导航的目的地
getTopNavDest($dest_id);
$pv = new View($typeid);
$pv->GetChannelKeywords($typeid);
//根据栏目类型获取关键词.介绍,栏目名称
$templet = Helper_Archive::getUseTemplet('visa_index');
//获取首页使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "visa/index.htm";
$pv->SetTemplet($templet);
$pv->Display();
exit;
Exemplo n.º 12
0
//下级目的地
$destlist = Helper_Archive::getChildDest($dest_id, $typeid);
//seo变量赋值
foreach ($seoarr as $k => $v) {
    $pv->Fields[$k] = $v;
}
$jieshao = $destinfo['jieshao'];
$pv->SetParameter('jieshao', $jieshao);
$pv->SetParameter('dest_id', $dest_id);
$pv->SetParameter('startplaceid', $startplaceid);
$pv->SetParameter('carkindid', $carkindid);
$pv->SetParameter('displayorder', $displayorder);
$pv->SetParameter('attrid', $attrid);
getTopNavDest($dest_id);
//模板选择
$templet = Helper_Archive::getUseTemplet('car_list');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "cars/" . "car_search.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
/**
*  生成searchtitle,keyword,description等信息.
*
* @access    private
* @return    array
*/
function GenerateInfo()
{
    global $carkindname, $searchkey, $startcityname, $carkindtitle, $attrid, $seatnum, $destinfo;
    $arr = array();
Exemplo n.º 13
0
<?php

/*--
接收一个参数:serverid,副导航id.

*/
require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once dirname(__FILE__) . "/../data/webinfo.php";
$typeid = 0;
if (!isset($aid)) {
    ShowMsg('非法操作', '-1', 1);
}
$sql = "select * from #@__serverlist where webid=0 and aid={$aid}";
$row = $dsql->GetOne($sql);
require_once SLINEINC . "/view.class.php";
$pv = new View($typeid);
//副导航基本信息
foreach ($row as $k => $v) {
    $pv->Fields[$k] = $v;
}
$templet = Helper_Archive::getUseTemplet('footer_show');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "servers/" . "index.htm";
$pv->SetTemplet($templet);
$pv->Display();
Exemplo n.º 14
0
        $GLOBALS['condition']['_hasdest'] = 1;
    }
    foreach ($row as $k => $v) {
        $pv->Fields[$k] = $v;
    }
}
$pv->Fields['typeid'] = $typeid;
$pv->Fields['modulename'] = $module_name;
$pv->Fields['modulepinyin'] = $module_pinyin;
$piclist = TongYong::handlePicture($row['piclist']);
$firstpic = isset($piclist) ? array($piclist[0]) : array('litpic' => getDefaultImage(), 'desc' => $row['title']);
unset($piclist[0]);
//获取上级开启了导航的目的地
getTopNavDest($row['kindlist']);
$typename = GetTypeName($typeid);
//获取栏目名称.
$pv->Fields['typename'] = $typename;
$pv->Fields['title'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title'];
$pv->Fields['addtime'] = empty($row['modtime']) ? $row['addtime'] : $row['modtime'];
//兼容win linux
$filename = str_replace("\\", '/', dirname(__FILE__));
//获取当前文件夹名
$filename = explode("/", $filename);
$key = count($filename) - 1;
$url = $filename[$key] . "_show";
$templet = Helper_Archive::getUseTemplet($url);
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "tongyong/" . "tongyong_show.htm";
$pv->SetTemplet($templet);
$pv->Display();
exit;
Exemplo n.º 15
0
$id = $_GET['id'];
if (!is_numeric($id)) {
    exit('wrong ID');
}
$html = dirname(__FILE__) . '/questions_show.html';
if (file_exists($html) && $genpage != 1) {
    include $html;
    exit;
}
require_once SLINEINC . "/listview.class.php";
$pv = new View($typeid);
Helper_Archive::loadModule('common');
$_leaveModule = new CommonModule('sline_question');
$row = $_leaveModule->getOne('id=' . $id);
$where = 'status=1 and webid=' . $GLOBALS['sys_child_webid'];
$count = $_leaveModule->getCount($where);
$totalcount = $_leaveModule->getCount("id is not null and webid={$GLOBALS['sys_child_webid']}");
$row['title'] = $row['questype'] == 0 ? get_productname($row['typeid'], $row['productid']) : $row['title'];
$pv->Fields['seotitle'] = $row['title'];
foreach ($row as $k => $v) {
    $pv->Fields[$k] = $v;
    //模板变量赋值
}
//模板选择
$templet = Helper_Archive::getUseTemplet('questions_show');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "questions/" . "questions_show.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
exit;
Exemplo n.º 16
0
    foreach ($row as $k => $v) {
        $pv->Fields[$k] = $v;
        //模板变量赋值
    }
}
//$linecontent = getLineContent($row,$rowext['istemplets']);//线路介绍分类
//获取上级开启了导航的目的地
getTopNavDest($row['kindlist']);
$typename = GetTypeName($typeid);
//获取栏目名称.
$pv->Fields['typename'] = $typename;
if (strpos($templets, 'uploadtemplets') !== false) {
    $templet = SLINETEMPLATE . '/smore/' . $templets . '/index.htm';
    //使用自定义模板
} else {
    $templet = Helper_Archive::getUseTemplet('line_show');
    //获取系统默认使用模板
    $templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "lines/" . $templets;
    //系统标准模板
}
$pv->SetTemplet($templet);
$pv->Display();
exit;
//加载自定义函数(用于用户上传模板
function loadUserFunc($templet)
{
    $templet_path = explode('/', $templet);
    array_pop($templet_path);
    array_push($templet_path, 'php/function.php');
    $function_file = SLINETEMPLATE . '/smore/lines/' . implode('/', $templet_path);
    if (file_exists($function_file)) {
Exemplo n.º 17
0
getTopNavDest($dest_id);
//当前页数->title里面使用
$seoarr['pageno'] = !empty($pageno) ? '第' . $pageno . '页-' : "";
$pv = new ListView($typeid);
$dest_pinyin = getArticleDestPinyin($dest_id);
$dest_url = empty($dest_pinyin) ? '/destination/' : '/' . $dest_pinyin . '/';
//目的地列表
$destlist = getArticleChildDest($dest_id);
//目的地面包
$mianbao = getArticleMianbaoHtml($dest_id);
$destname = Helper_Archive::getDestName($dest_id);
$pv->Fields['destjieshao'] = getArticleDestJieshao($dest_id);
$pv->Fields['kindid'] = $dest_id;
$pv->Fields['tagwords'] = $tagwords;
$pv->pagesize = 15;
//分页条数.
$pv->SetSql($sql);
//seo变量赋值
foreach ($seoarr as $k => $v) {
    $pv->Fields[$k] = $v;
}
//注意以下这两句与伪静态规则有关系,不能写反了.
$pv->SetParameter('dest_id', $dest_id);
$pv->SetParameter('attrid', $attrid);
//模板选择
$templet = Helper_Archive::getUseTemplet('article_list');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "raiders/" . "article_search.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
Exemplo n.º 18
0
        //短信验证码
        $GLOBALS['condition']['_txtcode'] = 0;
        //文字验证码
    } else {
        $GLOBALS['condition']['_msgcode'] = 0;
        //短信验证码
        $GLOBALS['condition']['_txtcode'] = 1;
        //文字验证码
    }
    $emailInfo = Helper_Archive::getEmailMsgConfig('reg_msgcode');
    if (!empty($emailInfo) && $emailInfo['isopen'] == 1) {
        $GLOBALS['condition']['_emailcode'] = 1;
    } else {
        $GLOBALS['condition']['_emailtxtcode'] = 1;
    }
    $templet = Helper_Archive::getUseTemplet('member_reg');
    //获取使用模板
    $templet = !empty($templet) ? $templet : MEMBERTEMPLET . 'reg.htm';
    $pv->Fields['stoken'] = $token;
    $pv->SetTemplet(MEMBERTEMPLET . 'reg.htm');
    $pv->Display();
    exit;
}
//用户注册
if ($dopost == 'doreg') {
    @session_start();
    $pwd = md5($password);
    $jointime = time();
    $joinip = GetIP();
    $jifen = empty($cfg_reg_jifen) ? 0 : $cfg_reg_jifen;
    //网上注册赠送积分
Exemplo n.º 19
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once SLINEINC . "/view.class.php";
$typeid = 3;
//车务栏目
$html = dirname(__FILE__) . '/index.html';
if (file_exists($html) && $genpage != 1) {
    include $html;
    exit;
} else {
    //获取上级开启了导航的目的地
    getTopNavDest($dest_id);
    $pv = new View($typeid);
    $pv->GetChannelKeywords($typeid);
    //根据栏目类型获取关键词.介绍,栏目名称
    $templet = Helper_Archive::getUseTemplet('car_index');
    //获取首页使用模板
    $templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "cars/" . "car_index.htm";
    $pv->SetTemplet($templet);
    $pv->Display();
    exit;
}
Exemplo n.º 20
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
$typeid = 4;
//酒店栏目
require_once SLINEINC . "/view.class.php";
$html = dirname(__FILE__) . '/index.html';
if (file_exists($html) && $genpage != 1) {
    include $html;
    exit;
} else {
    $pv = new View($typeid);
    $pv->GetChannelKeywords($typeid);
    //根据栏目类型获取关键词.介绍,栏目名称
    $templet = Helper_Archive::getUseTemplet('article_index');
    //获取首页使用模板
    $templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "raiders/" . "article_index.htm";
    $pv->SetTemplet($templet);
    $pv->Display();
    exit;
}
Exemplo n.º 21
0
$leftnavinfo = getLeftNav($wh, $typeid);
$whereor = empty($whereor) ? $where : $whereor;
/*if($typeid)
{
    //  $wh.='('.$wh.')'." and typeid=$typeid";
    //  $whereor.=" and typeid=$typeid";
    // $where.=" and typeid=$typeid";
}*/
$sql = "select a.* from (select *,case when {$where} then 1 when {$whereor} then 2 end as neworder from #@__search where ({$wh})" . $w . ") a order by neworder";
$pv = new ListView(0);
$pv->pagesize = 25;
//分页条数.
$pv->SetSql($sql);
$pv->SetParameter('typeid', $typeid);
$pv->SetParameter('keyword', $keyword);
$templet = Helper_Archive::getUseTemplet('cloudsearch_index');
//获取首页使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "" . "cloudsearch.htm";
$pv->SetTemplet($templet);
$pv->Display();
exit;
//获取图片html
function getLitPicHtml($row)
{
    $litpic = $row['litpic'];
    $url = getSearchUrl($row);
    if (!empty($litpic)) {
        $litpic = getUploadFileUrl(str_replace('litpic', 'lit240', $litpic));
        $out = '<li class="li_img"><a href="' . $url . '" target="_blank"><img src="' . $litpic . '" width="118" height="90"  /></a></li>';
    }
    return $out;
Exemplo n.º 22
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
$typeid = 1;
//线路栏目
require_once SLINEINC . "/view.class.php";
$html = dirname(__FILE__) . '/index.html';
if (file_exists($html) && $genpage != 1) {
    include $html;
    exit;
} else {
    $pv = new View($typeid);
    $pv->GetChannelKeywords($typeid);
    //根据栏目类型获取关键词.介绍,栏目名称
    $templet = Helper_Archive::getUseTemplet('line_index');
    //获取首页使用模板
    $templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "lines/" . "line_index.htm";
    $pv->SetTemplet($templet);
    $pv->Display();
    exit;
}
Exemplo n.º 23
0
//每页数量
$pageno = empty($pageno) ? 1 : $pageno;
//第几页
$offset = ($pageno - 1) * $pagesize;
$count = $_photoModule->getCount($where);
$photolist = $_photoModule->getAll($where, $tableorder, "{$offset},{$pagesize}", "a.*", $join);
$page = getPhotoPage($count, $pageno, $pagesize, array('dest_id' => $dest_id, 'attrid' => $attrid));
//获取分页结果
foreach ($photolist as $k => $v) {
    $weburl = GetWebURLByWebid($v['webid']);
    $photolist[$k]['pic'] = getUploadFileUrl(str_replace('litimg', 'allimg', $v['litpic']));
    $photolist[$k]['url'] = $weburl . '/photos/show_' . $v['aid'] . '.html';
}
$destname = !empty($dest_id) ? Helper_Archive::getDestName($dest_id) : '全部';
foreach ($attrid_arr as $k => $v) {
    $attrname .= !empty($v) ? getPhotoAttrName($v) . '-' : '';
}
$attrname = trim($attrname, '-');
$seotitle = $pageno > 1 ? "第{$pageno}页" : '';
if ((!empty($destname) || !empty($attrname)) && $destname != '全部') {
    $seotitle .= $attrname;
    $pv->Fields['seotitle'] .= '-' . $seotitle;
}
//模板选择
$templet = Helper_Archive::getUseTemplet('photo_index');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "photos/" . "photo_index.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
exit;
Exemplo n.º 24
0
    ShowMsg('非法操作', '-1', 1);
}
$sql = "select * from #@__help where webid={$sys_webid} and aid={$aid}";
$row = $dsql->GetOne($sql);
$kindarr = getHelpkind($aid);
$kindid = $kindarr['kindid'];
$kindname = $kindarr['kindname'];
$pv = new View($typeid);
//帮助基本信息
foreach ($row as $k => $v) {
    $pv->Fields[$k] = $v;
}
//帮助分类信息
$pv->Fields['kindid'] = $kindid;
$pv->Fields['kindname'] = $kindname;
$templet = Helper_Archive::getUseTemplet('help_show');
//获取首页使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "help/" . "help_show.htm";
$pv->SetTemplet($templet);
$pv->Display();
/**
 *  根据帮助id获得帮助分类名称
 *
 * @access    private
 * @return    arr
 */
function getHelpkind($aid)
{
    global $dsql;
    $kindname = array();
    $sql = "select a.id as kindid,a.kindname from #@__help_kind a inner join #@__help b on a.id=b.kindid where a.webid=0 and b.aid={$aid}";
Exemplo n.º 25
0
$pv->Fields['seodescription'] = !empty($pv->Fields['seodescription']) ? "<meta name=\"description\" content=\"" . $pv->Fields['seodescription'] . "\"/>" : "";
$pv->Fields['seotitle'] = !empty($pv->Fields['seotitle']) ? $pv->Fields['seotitle'] : $pv->Fields['shortname'];
Helper_Archive::loadModule('common');
$typename = GetTypeName($typeid);
$_leaveModule = new CommonModule('sline_question');
//获取结果集
$where = 'status=1 and webid=' . $GLOBALS['sys_child_webid'];
$tableorder = "replytime desc";
$pagesize = 12;
//每页数量
$pageno = empty($pageno) ? 1 : $pageno;
//第几页
$offset = ($pageno - 1) * $pagesize;
$count = $_leaveModule->getCount($where);
$totalcount = $_leaveModule->getCount("id is not null and webid={$GLOBALS['sys_child_webid']}");
$list = $_leaveModule->getAll($where, $tableorder, "{$offset},{$pagesize}");
foreach ($list as $k => $v) {
    $list[$k]['title'] = $v['questype'] == 0 ? get_productname($v['typeid'], $v['productid']) : $v['title'];
}
$pagestr = page($count, $pageno, $pagesize, '/questions/{page}', 5, '/questions');
if ($User->IsLogin()) {
    $userinfo = $User->getInfoByMid($User->uid);
}
//模板选择
$templet = Helper_Archive::getUseTemplet('questions_index');
//获取使用模板
$templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "questions/" . "questions_index.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
exit;