getvisa($vid); //取得酒店信息 $c = new content(); $r = $c->get($vid); if(!$r || $r['status'] != 99) showmessage('您要查看的信息不存在或者还未通过审批!'); $allow_priv = true; //预存在临时订单表中,字段 predate(时间),preinfo(预定信息),precontact(预定联系人),preinfo(预定说明),preaddtime(预定时间,这个可以作为唯一识别码) if($r['groupids_view']) { if(!$priv_group->check('contentid', $vid, 'view', $_groupid)) $allow_priv = false; } $C = cache_read('category_'.$r['catid'].'.php'); $attachment = new attachment($mod, $r['catid']); if(!$priv_group->check('catid', $r['catid'], 'view', $_groupid)) showmessage('您没有浏览权限'); $out = new content_output(); $data = $out->get($r); extract($data); //查询该签证所属国家信息 $v_area = $visa->getarea($r['areaid']); $title = strip_tags($title); $head['title'] = $v_area['name'].''.$title.'_'.$C['catname'].'_'.$PHPCMS['sitename']; $head['keywords'] = str_replace(' ', ',', $r['keywords']); $head['description'] = $r['description']; if($submit) //提交确认 { //print_r($_GET);print_r($_POST);exit; $savePre = new hotelroom(); $v_area['enname'] = str_replace("\r", '', $v_area['enname']); $note = "预计使用时间:{$avadate}
".$note; //把详细价格写在时间中 $predata = array(); $predata[] = $v_area['name']."(".$v_area['enname'].")"."-".$r['title']."-预定|".$contentid."|".$v_area['areaid']; $predata[] = $avadate."|"; //预定信息:有效期|最多停留|预计工作日|服务费(单价)|申请数量|其它说明 $predata[] = $v_detail['validity']."|".$v_detail['staydate']."|".$v_detail['workday']."|".$v_detail['price']."|".$v_number."|".$v_introduction; $predata[] = $c_name."|".$c_mobile."|".$c_telephone."|".$c_email."|".$c_address."|".$c_ensure_info."|".$c_passno."|".$c_pinyin."|".$c_qq; $predata[] = $note; $predata[] = "visa_"; $preOrderId = $goodsid = $savePre->savePreOrder($predata); //为订单模板设定参数值 $goodsname = trim($v_area['name'])."(".trim($v_area['enname']).")"."-".trim($r['title'])."-预定"; $goodsurl = $url; $unit = "人"; $number = $v_number; $carriage = 0; //运费 //生成加密段:预先订单id、国家id、签证类型id、商品标题、服务费(单价)、申请数量、商品URL 、单位 $verify = md5(AUTH_KEY.$goodsid.$v_area['areaid'].$contentid.$goodsname.$v_detail['price'].$number.$goodsurl.$unit); include template('order', "book_visa2"); } else { include template('order', "book_visa"); } ?>