Example #1
0
require_once dirname(__FILE__) . "/../data/webinfo.php";
require_once dirname(__FILE__) . "/../include/email.class.php";
require_once SLINEINC . "/view.class.php";
require_once dirname(__FILE__) . "/visa.func.php";
$typeid = 8;
$typename = GetTypeName($typeid);
//获取栏目名称
$pv = new View($typeid);
if (empty($dopost)) {
    $info = getVisaInfo($visaid);
    if (!isset($info)) {
        head404();
    }
    $info['series'] = getSeries($info['id'], '08');
    //编号
    $info['visatype'] = getVisaType($info['visatype']);
    $info['singleprice'] = $info['price'];
    if (!empty($info['dingjin'])) {
        $GLOBALS['condition']['_djsupport'] = 1;
    }
    //是否支持定金
    if (!empty($info['jifentprice'])) {
        $GLOBALS['condition']['_has_jifentprice'] = 1;
    }
    if (!empty($info['jifencomment'])) {
        $GLOBALS['condition']['_has_jifencomment'] = 1;
    }
    if (!empty($info['jifenbook'])) {
        $GLOBALS['condition']['_has_jifenbook'] = 1;
    }
    //用户选择的预订数量
Example #2
0
if (!isset($aid)) {
    exit('Wrong Id');
}
$aid = RemoveXSS($aid);
//防止跨站攻击
updateVisit($aid, $typeid);
//更新访问次数
$row = getVisaInfo($aid);
if (empty($row['id'])) {
    head404();
}
$row['seotitle'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title'];
$row['seodescription'] = !empty($row['description']) ? "<meta name=\"description\" content=\"" . $row['description'] . "\"/>" : "";
$row['seokeyword'] = !empty($row['keyword']) ? "<meta name=\"keywords\" content=\"" . $row['keyword'] . "\"/>" : "";
$row['litpic'] = getUploadFileUrl($row['litpic']);
$row['visatype'] = getVisaType($row['visatype']);
$interview = $letter = '';
switch ($row['needinterview']) {
    case 0:
        $interview = '不需要';
        break;
    case 1:
        $interview = '需要';
        break;
    case 2:
        $interview = '领馆决定';
        break;
}
switch ($row['needletter']) {
    case 0:
        $letter = '不需要';
Example #3
0
    $pageno = intval(preg_replace("/[^\\d]/", '', $pageno));
}
//当前页
$countryid = !empty($countryid) ? Helper_Archive::pregReplace($countryid, 2) : 0;
$visatypeid = !empty($visatypeid) ? Helper_Archive::pregReplace($visatypeid, 2) : 0;
$cityid = !empty($cityid) ? Helper_Archive::pregReplace($cityid, 2) : 0;
//签证国家判断
if (!empty($countryid)) {
    $countryname = getAreaName($countryid);
    $where .= " and nationid='{$countryid}'";
    $navtitle .= $countryname;
}
//签证类型条件
if (!empty($visatypeid)) {
    $where .= " and visatype='{$visatypeid}'";
    $navtitle .= getVisaType($visatypeid);
}
//签证城市条件
if (!empty($cityid)) {
    $where .= " and cityid='{$cityid}'";
    $navtitle = getVisaCity($cityid) . '签发' . $navtitle;
}
$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['navtitle'] = $seoarr['searchtitle'] = $navtitle . "列表";
$seoarr['typename'] = GetTypeName($typeid);
$seoarr['pageno'] = !empty($pageno) ? '第' . $pageno . '页-' : "";
$pv = new ListView($typeid);
$pv->pagesize = 10;
//分页条数.