require_once dirname(__FILE__) . "/../include/common.inc.php"; require_once dirname(__FILE__) . "/../data/webinfo.php"; require_once dirname(__FILE__) . "/../include/email.class.php"; require_once SLINEINC . "/view.class.php"; $typeid = 5; //景点栏目 $typename = GetTypeName($typeid); //获取栏目名称 $pv = new View($typeid); if (empty($dopost)) { $info = getSpotInfo($spotid); $ticketinfo = getTicketInfo($ticketid); if (!isset($info)) { head404(); } $info['series'] = getSeries($info['id'], '05'); //编号 $info['productname'] = $info['title'] . "({$ticketinfo['title']})"; $info['ticketname'] = $ticketinfo['title']; //票的名称 $info['singleprice'] = $ticketinfo['ourprice']; $info['usedate'] = date('Y-m-d'); $info['ticketid'] = $ticketid; if (!empty($ticketinfo['dingjin'])) { $GLOBALS['condition']['_djsupport'] = 1; } //是否支持定金 if (!empty($ticketinfo['jifentprice'])) { $GLOBALS['condition']['_has_jifentprice'] = 1; } if (!empty($ticketinfo['jifencomment'])) {
<?php require_once "../header.php"; require_once "../functions.php"; require_once "../classes/Series.class.php"; ?> <?php $Series = new Series($mysqli, $_SESSION["logged_in_user_id"]); $keyword = ""; if (isset($_GET["keyword"])) { $keyword = $_GET["keyword"]; $series_array = getSeries($keyword); } else { //käivitan funktsiooni $series_array = getSeries(); } if (isset($_POST["createList"])) { // 1 seriaali id, 2 listi id //saveToList($_POST["add"], $_POST["new_dd_selection"]); // VAATA series.class rida 133 $Series->addToList($_POST["add"], $_POST["new_dd_selection"]); } ?> <h2>All added series</h2> <form action="home.php" method="get"> <input type="search" name="keyword" value="<?php echo $keyword;
<?php require_once dirname(__FILE__) . "/../include/common.inc.php"; require_once SLINEROOT . '/tongyong/func.php'; require_once dirname(__FILE__) . '/config.php'; require_once SLINEINC . "/view.class.php"; require_once SLINEINC . "/email.class.php"; $pv = new View($typeid); if (empty($dopost)) { $info = TongYong::getProductInfo($aid, $typeid); $suitinfo = TongYong::getSuitInfo($suitid); if (!isset($info)) { head404(); } $info['series'] = getSeries($info['id'], $typeid); //编号 $info['usedate'] = date('Y-m-d'); $info['singleprice'] = $suitinfo['ourprice']; if (!empty($suitinfo['dingjin'])) { $GLOBALS['condition']['_djsupport'] = 1; } //是否支持定金 if (!empty($suitinfo['jifentprice'])) { $GLOBALS['condition']['_has_jifentprice'] = 1; } if (!empty($suitinfo['jifencomment'])) { $GLOBALS['condition']['_has_jifencomment'] = 1; } if (!empty($suitinfo['jifenbook'])) { $GLOBALS['condition']['_has_jifenbook'] = 1; }
if (empty($price)) { $url = "{$GLOBALS['cfg_basehost']}/cars/show_{$order['productaid']}.html"; header("location:{$url}"); exit; } echo Helper_Archive::payOnline($order['ordersn'], $order['productname'], $price, $paytype); } $pv = new View($typeid); if (empty($suitid)) { Helper_Archive::showMsg("请选择套餐", -1, 0); } $row = $dsql->GetOne("select a.*,a.id as suitid,a.unit as suitunit, b.* from #@__car_suit a left join #@__car b on a.carid=b.id where a.id='{$suitid}'"); $userinfo = $User->getInfoByMid($User->uid); $row['carkind'] = getCarKind($row['carkindid'], 0); $row['carbrand'] = getCarBrand($row['carbrandid'], 0); $row['carnumber'] = getSeries($row['id'], '03'); //编号 $row['typename'] = GetTypeName($typeid); $price = getSuitPriceByDay($suitid, $usedate); $row['singleprice'] = $price; $row['usedate'] = $usedate; $row['title'] = $row['title'] . $row['suitname']; if (!empty($price)) { $row['price'] = $price; if (!empty($row['suitunit'])) { $row['price'] .= ' '; } else { $row['price']; } } else { $row['price'] = "电询";
require_once 'histou/database.php'; require_once 'histou/folder.php'; $lineEnd = ''; if (isset($argv[1]) && !empty($argv[1])) { $requestedTemplate = $argv[1]; $lineEnd = "\n"; } elseif (isset($_GET["filename"]) && !empty($_GET["filename"])) { $requestedTemplate = $_GET["filename"]; $lineEnd = '<br>'; } else { print_r("Arguement is missing!\nWhen used by URL pass the Templatefilename by the Postparameter 'filename'.\nOn Commandline pass it as the first argument"); exit(1); } parsIni('histou.ini'); $influx = new Influxdb(URL); $series = getSeries($influx); $availableTemplates = Folder::loadFolders(array(CUSTOM_TEMPLATE_FOLDER, DEFAULT_TEMPLATE_FOLDER)); $templatesToCheck = array(); foreach ($availableTemplates as $template) { if ($template->getSimpleFileName() == $requestedTemplate || $template->getFileName() == $requestedTemplate) { array_push($templatesToCheck, $template); } } if (count($templatesToCheck) == 0) { print_r('No template found with this name: ' . $requestedTemplate . $lineEnd); exit(0); } foreach ($templatesToCheck as $template) { $hits = array(); foreach ($series as $tablename) { if ($template->matchesTablename($tablename)) {
$row['thumblist'] = $pic_arr[1]; //获取后台满意度拼接% // $row['satisfyscore'] = !empty($row['satisfyscore'])?$row['satisfyscore'] : ""; if (!empty($row['satisfyscore'])) { if (strpos($row['satisfyscore'], '%') === false) { $row['satisfyscore'] = $row['satisfyscore'] . '%'; } } //$row['price']=!empty($row['lineprice'])?"<span class=\"rmb_1\">¥</span>".$row['lineprice']."</span>":"电询</span>"; $row['storeprice'] = !empty($row['storeprice']) ? $row['storeprice'] : "<span>无</span>"; $row['seodescription'] = !empty($row['description']) ? "<meta name=\"description\" content=\"" . $row['description'] . "\"/>" : ""; $row['seokeyword'] = !empty($row['keyword']) ? "<meta name=\"keywords\" content=\"" . $row['keyword'] . "\"/>" : ""; $row['seotitle'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title']; $row['sellnum'] = Helper_Archive::getSellNum($row['id'], 1) + $row['bookcount']; //销售数量 $row['lineseries'] = getSeries($row['id'], '01'); //编号 $row['pkname'] = get_par_value($row['kindlist'], $typeid); //上一级 //$row['pkname'] = getOrderKindlist($row['kindlist'],$typeid); $GLOBALS['lineattach'] = $row['linedoc'] ? $row['linedoc'] : ''; //支付方式 $paytypeArr = explode(',', $GLOBALS['cfg_pay_type']); if (in_array(1, $paytypeArr)) { $GLOBALS['condition']['_haszhifubao'] = 1; } if (in_array(2, $paytypeArr)) { $GLOBALS['condition']['_haskuaiqian'] = 1; } if (in_array(3, $paytypeArr)) { $GLOBALS['condition']['_hashuicao'] = 1;
$PatientName = $matches[1]; } if (strpos($line, "StudyInstanceUID") != FALSE) { $StudyInstanceUID = $matches[1]; } if (strpos($line, "StudyDate") != FALSE) { $StudyDate = $matches[1]; } if (strpos($line, "StudyTime") != FALSE) { $StudyTime = $matches[1]; } if (strpos($line, "(0020,0010)") != FALSE) { // last entry $StudyID = $matches[1]; // we assume that we got all the entries for this set $d = getSeries($StudyInstanceUID); $data[] = array("PatientID" => $PatientID, "PatientName" => $PatientName, "StudyInstanceUID" => $StudyInstanceUID, "StudyDate" => $StudyDate, "StudyTime" => $StudyTime, "Series" => $d); // we should ask for the series for this study next // findscu -v -aet DAICFIONA -aec CTIPMUCSD2 --study -k 0008,0052=SERIES -k "(0020,000d)=1.2.840.113619.6.374.194029215235239011834696280337568647621" 172.16.132.126 4006 } } } // sort by date and time usort($data, function ($a, $b) { $ad = DateTime::createFromFormat("Ymd His", $a['StudyDate'] . " " . explode(".", $a['StudyTime'])[0]); $bd = DateTime::createFromFormat("Ymd His", $b['StudyDate'] . " " . explode(".", $b['StudyTime'])[0]); if ($ad == $bd) { return 0; } return $ad < $bd ? 1 : -1; });
function lib_getlinelist(&$ctag, &$refObj) { global $startcity; global $dsql; include SLINEDATA . "/webinfo.php"; $attlist = "row|8,flag|,type|top,sonid|,limit|0,"; FillAttsDefault($ctag->CAttribute->Items, $attlist); extract($ctag->CAttribute->Items, EXTR_SKIP); $webid = 0; $innertext = trim($ctag->GetInnertext()); $revalue = ''; $basefield = "a.aid,a.id,a.webid,a.title,a.seotitle,a.sellpoint,a.litpic,a.storeprice,a.price,a.linedate,a.features,a.transport,a.lineday,a.startcity,a.overcity,a.shownum,a.satisfyscore,a.bookcount,a.attrid,a.kindlist,a.color,a.iconlist"; if ($type == 'top' && empty($flag)) { return ''; } //如果调用二级栏目则必须在显示类里指定sonid $limit = !empty($limit) ? $limit : 0; if ($type == 'startcity') { $sql = "select {$basefield} from #@__line as a left join #@__kindorderlist as c on (a.id=c.aid) where a.ishidden=0 and c.typeid=1 and startcity='{$startcity}' and c.classid={$sonid} and FIND_IN_SET({$sonid},a.kindlist) {$orderby} limit {$limit},{$row}"; } if ($type == 'mdd') { if ($flag == 'hot') { $orderby = 'order by case when c.displayorder is null then 9999 end,c.displayorder asc,a.modtime desc,a.addtime desc'; } else { if ($flag == 'recommend') { $orderby = 'order by case when c.displayorder is null then 9999 end,c.displayorder asc,a.modtime desc,a.addtime desc'; } else { if ($flag == 'specical') { $orderby = 'order by case when c.displayorder is null then 9999 end,c.displayorder asc,a.modtime desc,a.addtime desc '; } else { $orderby = 'order by case when c.displayorder is null then 9999 end,c.displayorder asc,a.modtime desc,a.addtime desc'; } } } $sonid = isset($definekind) ? $definekind : $refObj->Fields['kindid']; //这里增加子站的判断 if ($GLOBALS['sys_child_webid'] != 0) { $dest_id = $GLOBALS['sys_child_webid']; } $sonid = $sonid ? $sonid : $dest_id; $shownum = isset($row) ? $row : $refObj->Fields['shownum']; $shownum = empty($shownum) ? 6 : $shownum; if (isset($sonid)) { $number = isset($refObj->Fields['shownumber']) ? $refObj->Fields['shownumber'] : $row; //如果模块设置了显示数量则使用. $sql = "select {$basefield},c.isjian,c.istejia,c.isding from #@__line as a left join #@__kindorderlist as c on (c.classid={$sonid} and a.id=c.aid and c.typeid=1) where a.ishidden=0 and FIND_IN_SET({$sonid},a.kindlist) {$orderby} limit {$limit},{$shownum}"; } else { return ''; } } else { if ($type == 'searchrec') { if ($GLOBALS['childid'] != 0) { $kchild = $GLOBALS['childid']; $sql = "select distinct {$basefield} from #@__line as a left join #@__kindorderlist as c on (c.classid={$kchild} and a.id=c.aid and c.typeid=1) where a.ishidden=0 and c.isjian=1 and FIND_IN_SET({$kchild},a.kindlist) order by case when c.displayorder is null then 9999 end,c.displayorder asc,a.modtime desc,a.addtime desc limit 0,4"; } else { $sql = "select {$basefield} a from #@__line where a.ishidden=0 and a.isjian=1 order by a.displayorder asc,a.modtime desc,a.addtime desc limit {$limit},{$row}"; } } else { if ($type == 'destsearchrec') { if ($GLOBALS['destid'] != 0) { $kchild = $GLOBALS['destid']; $sql = "select {$basefield} from #@__line as a left join #@__kindorderlist as c on (c.classid={$kchild} and a.id=c.aid and c.typeid=1) where a.ishidden=0 and FIND_IN_SET({$kchild},a.kindlist) {$orderby} limit 0,4"; } else { $sql = "select {$basefield} from #@__line a where a.ishidden=0 and a.isjian=1 order by a.displayorder asc,a.modtime desc,a.addtime desc limit {$limit},{$row}"; } } else { if ($type == 'top') { if ($flag == 'recommend') { $sql = "select {$basefield},b.isding,b.istejia,b.displayorder from #@__line as a left join #@__allorderlist b on (a.id=b.aid and b.typeid=1) where a.ishidden=0 order by case when b.displayorder is null then 9999 end, b.displayorder asc,a.modtime desc,a.addtime desc limit {$limit},{$row}"; } else { if ($flag == 'specical') { $sql = "select {$basefield},b.isding,b.istejia,b.displayorder from #@__line as a left join #@__allorderlist b on (a.id=b.aid and b.typeid=1) where a.ishidden=0 order by b.displayorder asc,a.modtime desc,a.addtime desc limit {$limit},{$row}"; } else { if ($flag == 'hot') { $sql = "select {$basefield} from #@__line a where a.ishidden=0 order by a.shownum desc,a.modtime desc,a.addtime desc limit {$limit},{$row}"; } else { if ($flag == 'attribute') { if (empty($attrid)) { $attrid = $refObj->Fields['attrid']; } $sql = "select {$basefield} from #@__line a where FIND_IN_SET('{$attrid}',a.attrid) and a.ishidden=0 order by a.displayorder asc,a.modtime desc,a.addtime desc limit {$limit},{$row}"; } else { if ($flag == 'relative') { $kindlist = $refObj->Fields['kindlist']; $maxkindid = array_remove_value($kindlist); //最后一级. $maxkindid = empty($maxkindid) ? $GLOBALS['dest_id'] : $maxkindid; $maxkindid = empty($maxkindid) ? 0 : $maxkindid; $where = " FIND_IN_SET({$maxkindid},a.kindlist) "; $sql = "select {$basefield} from #@__line a where {$where} and a.ishidden=0 order by a.shownum desc,a.modtime desc,a.addtime desc limit 0,{$row}"; } else { if ($flag == 'listexcept') { $sql = "select aid from #@__line where isjian=1 and a.ishidden=0 order by isjian desc,displayorder asc limit 0,5"; $dsql->Execute("list", $sql); $a = ""; while ($str = $dsql->GetArray("list")) { $a .= $str["aid"] . ","; } $a = substr($a, 0, -1); if (!$a == "") { $a = "and aid not in ({$a})"; } $sql = "select {$basefield} from #@__line a where {$a} order by a.shownum desc limit {$limit},{$row}"; } } } } } } } else { if ($type == 'theme') { $themeid = $refObj->Fields['themeid']; if (empty($themeid)) { return ''; } $sql = "select {$basefield} from #@__line a where a.ishidden=0 and FIND_IN_SET({$themeid},a.themelist) order by a.modtime desc,a.addtime desc limit 0,{$row}"; } else { if ($type = "day") { $dayid = $refObj->Fields['groupid']; if (empty($dayid)) { return ''; } $sql = "select {$basefield} from #@__line a where a.ishidden=0 and a.lineday={$dayid} order by a.modtime desc,a.addtime desc limit 0,{$row}"; } } } } } } $dsql->SetQuery($sql); $dsql->Execute(); $ctp = new STTagParse(); $ctp->SetNameSpace("field", "[", "]"); $ctp->LoadSource($innertext); $GLOBALS['autoindex'] = 0; $num = 0; while ($row = $dsql->GetArray()) { $GLOBALS['autoindex']++; $webroot = GetWebURLByWebid($row['webid']); $url = $webroot . "/lines/show_{$row['aid']}.html"; $row['url'] = $url; $row['bookurl'] = "{$webroot}/lines/booking_{$row['aid']}.html"; $startcity = getStartCityName($row['startcity']); $startcity = !empty($startcity) ? "[{$startcity}出发]" : ''; if (!empty($GLOBALS['cfg_startcity_open'])) { $row['title'] = "{$startcity}{$row['title']}"; } else { $row['title'] = "{$row['title']}"; } $row['startcity'] = $startcity; $row['color'] = !empty($row['color']) ? "color:{$row['color']}" : ''; $real = getLineRealPrice($row['aid'], $row['webid']); $row['lineprice'] = $real ? $real : $row['price']; $row['commentnum'] = Helper_Archive::getCommentNum($row['id'], 1); //评论次数 $row['sellnum'] = Helper_Archive::getSellNum($row['id'], 1); //销售数量 //$row['satisfyscore']=Helper_Archive::getSatisfyScore($row['id'],1); //满意度 //获取后台满意度拼接% $row['satisfyscore'] = !empty($row['satisfyscore']) ? $row['satisfyscore'] . "%" : ""; if (!empty($row['lineprice']) && !empty($row['storeprice'])) { $row['discount'] = abs((int) $row['storeprice'] - (int) $row['price']); } else { $row['discount'] = 0; } $row['price'] = empty($row['lineprice']) ? '<span class="rmb_1">电询</span>' : "<span class='rmb_1'>¥</span><span class='rmb_2'>" . $row['lineprice'] . '</span>'; $row['price2'] = empty($row['lineprice']) ? '<span>电询</span>' : '<span>¥</span><strong>' . $row['lineprice'] . '</strong><i>起</i>'; $row['agentprice'] = intval($row['storeprice']); $row['sellprice'] = empty($row['lineprice']) ? '0' : $row['lineprice']; //没有HTML标识的价格 $row['storeprice'] = !empty($row['storeprice']) ? "<span class=\"rmb_2\">¥</span>" . $row['storeprice'] : "<span class=\"rmb_1\">电询</span>"; $row['lineseries'] = getSeries($row['id'], '01'); //$row['lit240']=getPicByName($row['linepic'],'lit240'); //$row['lit160']=getPicByName($row['linepic'],'lit160'); $row['litpic'] = getUploadFileUrl($row['litpic']); $row['lit240'] = getUploadFileUrl(str_replace('litimg', 'lit240', $row['litpic'])); $row['lit160'] = getUploadFileUrl(str_replace('litimg', 'lit160', $row['litpic'])); $row['jifentprice'] = !empty($row['jifentprice']) ? '¥' . $row['jifentprice'] : '无'; $row['startdate'] = getLine_StartDate($row); //团期 $row['jifentprice'] = MLine::getMinTprice($row['id']); $row['list'] = $num; foreach ($ctp->CTags as $tagid => $ctag) { if ($ctag->GetName() == 'array') { $ctp->Assign($tagid, $row); } else { $ctp->Assign($tagid, $row[$ctag->GetName()]); } } $revalue .= $ctp->GetResult(); } return $revalue; }
$typeid = 1; //线路栏目 $typename = GetTypeName($typeid); //获取栏目名称 $pv = new View($typeid); $lineid = Helper_Archive::pregReplace($lineid, 2); if (empty($dopost)) { $lineinfo = getLineInfo($lineid); $suitinfo = getLineSuitInfo($suitid); $priceinfo = getDayPrice($usedate, $suitid); if (!isset($lineinfo)) { head404(); } $lineinfo['insurances'] = empty($lineinfo['insuranceids']) ? null : getInsurances($lineinfo['insuranceids'], $lineinfo['lineday']); $insurances = $lineinfo['insurances']; $lineinfo['lineseries'] = getSeries($lineinfo['id'], '01'); //线路编号 $lineinfo['usedate'] = $usedate; //出团日期 $lineinfo['title'] = $lineinfo['title'] . "({$suitinfo['suitname']})"; $lineinfo['suitname'] = $suitinfo['suitname']; $lineinfo['roombalance'] = $priceinfo['roombalance']; $lineinfo['price'] = $priceinfo['adultprice']; //成人价格 $lineinfo['childprice'] = $priceinfo['childprice']; //小孩价格 $lineinfo['oldprice'] = $priceinfo['oldprice']; //老人价格 $lineinfo['dingnum'] = intval($adultnum) ? intval($adultnum) : 1; //数量 $lineinfo['childnum'] = intval($childnum) ? intval($childnum) : 0;
$row['startcity'] = $_startModule->getField('cityname', "id='{$row['startplaceid']}'"); $row['carkind'] = getCarKind($row['carkindid']); $row['brandid'] = getCarBrand($row['carbrandid']); $row['taglook'] = GetTagsLink($row['tagword']); $row['attrname'] = getCarAttrName($row['attrid'], '租车类型'); $row['tanknum'] = getCarAttrName($row['attrid'], '厢型'); $row['description'] = !empty($row['description']) ? "<meta name=\"description\" content=\"" . $row['description'] . "\"/>" : ""; $row['keyword'] = !empty($row['keyword']) ? "<meta name=\"keywords\" content=\"" . $row['keyword'] . "\"/>" : ""; $taocan = $_suitModule->getAll("carid={$row['id']}"); $pic_arr = getCarPicList($row['piclist'], $row['title'], $row['litpic']); //print_r($pic_arr); $row['litpic'] = getUploadFileUrl($row['litpic']); $row['thumbpic'] = $pic_arr['thumbpic']; $row['bigpic'] = $pic_arr['bigpic']; $row['commenthomeid'] = $row['id']; $row['carseries'] = getSeries($row['id'], '03'); //编号 foreach ($row as $k => $v) { $pv->Fields[$k] = $v; } } $pv->Fields['seotitle'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title']; $pv->Fields['arealist'] = getAreaList($aid); $pv->Fields['typename'] = GetTypeName($typeid); //获取栏目名称. $templets = $row['templet']; if (strpos($templets, 'uploadtemplets') !== false) { $templet = SLINETEMPLATE . '/smore/' . $templets . '/index.htm'; //使用自定义模板 } else { $templet = SLINETEMPLATE . "/" . $cfg_df_style . "/" . "cars/" . "car_show.htm";
if ($User->uid) { if ($userinfo['jifen'] >= $needjifen) { $exopen = 1; } else { $exopen = 0; } $userstatus = "(<span style='color:red'>当前积分:{$userinfo['jifen']}</span>)"; $islogin = 1; } else { $userstatus = "(<span style='color:red'><a style=\"color:red\" href=\"{$GLOBALS['cfg_cmsurl']}/member/login.php\">立即登陆</a></span>)"; $exopen = 0; $islogin = 0; } $jifenpricemsg = " <span style='color:orange'>使用{$needjifen}积分抵现{$row['jifentprice']}元</span> " . $userstatus; $row['jifenpricemsg'] = $jifenpricemsg; $row['needjifen'] = $needjifen; $row['exopen'] = $exopen; //优惠是否开启. $row['islogin'] = $islogin; $row['myjifen'] = $userinfo['jifen']; } $row['series'] = getSeries($row['id'], '13'); //编号 $row['singleprice'] = $row['price']; $row['usedate'] = date('Y-m-d'); foreach ($row as $k => $v) { $pv->Fields[$k] = $v; } $pv->SetTemplet(SLINETEMPLATE . "/" . $cfg_df_style . "/" . "tuan/" . "tuan_booking.htm"); $pv->Display(); exit;