code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /* $Id: class.nusoap_base.php,v 1.43 2005/08/04 01:27:42 snichol Exp $ NuSOAP - Web Services Toolkit for PHP Copyright (c) 2002 NuSphere Corporation This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the F...
PHP
<?php /* +----------------------------------------------------------------------+ | Sofee Framework For PHP4 | +----------------------------------------------------------------------+ | Copyright (c) 2004-2005 The Sofee Development Team | +-...
PHP
<?php /** * parses an XML Schema, allows access to it's data, other utility methods * no validation... yet. * very experimental and limited. As is discussed on XML-DEV, I'm one of the people * that just doesn't have time to read the spec(s) thoroughly, and just have a couple of trusty * tutorials I refer ...
PHP
<? require "../../../global.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php require_once('./lib/chinaban...
PHP
<?php require "../../../../global.php"; require RootDir."/inc/Uifunction.php"; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <?php /** *功能:付完款后跳转的页面(页面跳转同步通知页面) *版本:3.1 *日期:2010-10-29 '说明: '以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 '该代...
PHP
<?php /** *功能:支付宝接口公用函数 *详细:该页面是请求、通知返回两个文件所调用的公用函数核心处理文件,不需要修改 *版本:3.1 *修改日期:2010-10-29 '说明: '以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 '该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 */ /**生成签名结果 *$array要签名的数组 *return 签名结果字符串 */ function build_mysign($sort_array,$key,$sign_type = "MD5") { ...
PHP
<?php /** *类名:alipay_service *功能:支付宝外部服务接口控制 *详细:该页面是请求参数核心处理文件,不需要修改 *版本:3.1 *修改日期:2010-10-29 '说明: '以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 '该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 */ require_once("alipay_function.php"); class alipay_service { var $gateway; //网关地址 var $_ke...
PHP
<?php /* *类名:alipay_notify *功能:付款过程中服务器通知类 *详细:该页面是通知返回核心处理文件,不需要修改 *版本:3.1 *修改日期:2010-10-29 '说明: '以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 '该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 */ ////////////////////注意///////////////////////// //调试通知返回时,可查看或改写log日志的写入TXT里的数据,来检查通知返回是否正常 ////////////////...
PHP
<?php /* *功能:快速付款入口模板页 *详细:该页面是针对不涉及到购物车流程、充值流程等业务流程,只需要实现买家能够快速付款给卖家的付款功能。 *版本:3.1 *日期:2010-10-29 *说明: *以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 *该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 */ require_once("alipay_config.php"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <H...
PHP
<?php /** *功能:支付宝主动通知调用的页面(服务器异步通知页面) *版本:3.1 *日期:2010-10-29 '说明: '以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 '该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 */ ///////////页面功能说明/////////////// //创建该页面文件时,请留心该页面文件中无任何HTML代码及空格。 //该页面不能在本机电脑测试,请到服务器上做测试。请确保外部可以访问该页面。 //该页面调试工具请使用写文本函数log_result,该函数已被默认关闭...
PHP
<? require "../../../../global.php";?> <?php /** *功能:设置商品有关信息(确认订单支付宝在线购买入口页) *详细:该页面是接口入口页面,生成支付时的URL *版本:3.1 *修改日期:2010-10-29 '说明: '以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 '该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 */ ////////////////////注意///////////////////////// //如果您在接口集成过程中遇到问题, //您可以...
PHP
<?php /** *功能:设置帐户有关信息及返回路径(基础配置页面) *版本:3.1 *日期:2010-10-29 '说明: '以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 '该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 */ /** 提示:如何获取安全校验码和合作身份者ID 1.访问支付宝商户服务中心(b.alipay.com),然后用您的签约支付宝账号登陆. 2.访问“技术服务”→“下载技术集成文档”(https://b.alipay.com/support/helperApply.htm?action=s...
PHP
<? //支付失败处理页面 ?>
PHP
<?php header("Content-type:text/html; charset=utf-8"); //提交地址 //$form_url = 'https://pay.ips.net.cn/ipayment.aspx'; //测试 $form_url = 'https://pay.ips.com.cn/ipayment.aspx'; //正式 //商户号 $Mer_code = "014740"; //商户证书:登陆http://merchant.ips.com.cn/商户后台下载的商户证书内容 $Mer_key = "3645162090185606597026933005324618184...
PHP
<?php require "../../../../global.php"; //---------------------------------------------------- // 接收数据 // Receive the data //---------------------------------------------------- $billno = $_GET['billno']; $amount = $_GET['amount']; $mydate = $_GET['date']; $succ = $_GET['succ']; $msg = $_GET['msg']; $a...
PHP
<?php ?>
PHP
<?php /** * 公共资源服务 * Created by Tinico */ class apiAction extends Action { private $dao; public function _initialize() { parent::_initialize(); $this->dao = M('classsys'); } public function district() { $dist = intval($_GET['dist']); ...
PHP
<?php /** * 订单表 * @author Administrator * */ class orderformAction extends Action{ /** * 生成订单号 * @param $data 参数数组 * @return 成功返回订单号,失败返回false */ function addorder($data){ if(!$data) return false; $mr=M("orderform"); //========计算订单号 //获取最近的一个订单号 $rs=$mr->order("orde...
PHP
<?php /** * 客栈列表 */ class listAction extends globalAction { private $dao; public function _initialize() { parent::_initialize(); parent::_loginRequire(); $this->dao = D('Inn'); } public function index() { $innList = $this->dao ->field($this...
PHP
<?php /** * 点评管理 */ class ReviewsAction extends globalAction { private $reviewsDao, $innDao, $myInn; public function _initialize() { parent::_initialize(); parent::_loginRequire(); $this->reviewsDao = D('InnReviews'); $this->innDao = D('Inn'); $fi...
PHP
<?php class hotelAction extends globalAction{ public function _initialize() { parent::_initialize(); $this->assign('moduleTitle', '客栈'); } public function test(){ echo GROUP_NAME; } /** * 获取推荐客栈栏目 暂以排序值排 */ public function gettuijianhotel(){ $imr=M("hotel"); $sqlrs="s...
PHP
<?php /** * 会员订单管理 */ class mybookAction extends globalAction { private $orderDao, $orderViewDao; public function _initialize() { parent::_initialize(); parent::_loginRequire(); $this->orderDao = D('Order'); $this->orderViewDao = $this->orderDao->switchModel("View",arra...
PHP
<?php /** * 价格设置 */ class PriceAction extends globalAction { private $dao, $inn, $prices; public function _initialize() { parent::_initialize(); parent::_loginRequire(); //客栈管理权限验证 $innId = intval($_GET['innId']); if(empty($innId)) parent::_message('err...
PHP
<?php class IndexAction extends globalAction{ private $innDao; public function _initialize() { parent::_initialize(); $this->innDao = D('Inn'); } function index() { /*********************************************************************** * 特卖客栈 ...
PHP
<?php /** * 公共模块库 一些公共的功能写入此,供其它模块调用 * @author jroam * */ class commonAction extends Action{ function top(){ $hmoemr=A("Home/public"); echo "dfdf"; } /** * 显示google地图 */ function showgooglemap(){ $zbz=$_REQUEST["zbz"];//google地图坐标值 $hotelname=$_REQUEST["hname"]; $widthpx=$...
PHP
<?php /** * 留言管理类 * @author jroam * */ class messagesysAction extends Action{ /** * 获取某一个客栈的留言列表 */ function getmlistofhotel($hid){ if(!is_numeric($hid)) die(""); $sql="select * from ".DQ."messagesys where messagesys10=".$hid." and messagesys11=1212 order by messagesys8 desc limit 20"; $mr=...
PHP
<?php /** * 客栈申请 */ class applyAction extends globalAction { public function index() { $this->display(); } public function agreement() { $this->display(); } public function getChildType() { $typeId = intval($_GET['typeId']); if(empty($typeId)) d...
PHP
<?php /** * 点评管理 */ class MessageAction extends globalAction { private $messageDao, $myInn; public function _initialize() { parent::_initialize(); parent::_loginRequire(); $this->messageDao = D('InnMessage'); $innDao = D('Inn'); $field = array( ...
PHP
<?php /** * 预定流程类 * @author Administrator * */ class orderAction extends globalAction { /** * 预定第一步界面, */ function view1(){ $hid=$_REQUEST["hid"];//客栈id $rid=$_REQUEST["rid"];//房型id //die(__USERID__); //初始化判断 if(!is_numeric($hid)) die("客栈id不能为空"); if(!is_numeric($ri...
PHP
<?php /** * 支付网关 * @author Administrator * */ class payAction extends globalAction { public function _initialize() { parent::_initialize(); parent::_loginRequire(); $this->orderDao = D('Order'); $this->orderViewDao = $this->orderDao->switchModel("View",array("viewFie...
PHP
<?php /** * 客栈老板订单管理 */ class bookAction extends globalAction { private $orderDao, $orderViewDao; public function _initialize() { parent::_initialize(); parent::_loginRequire(); $this->orderDao = D('Order'); $this->orderViewDao = $this->orderDao->switchModel("View",arra...
PHP
<?php /** * 系统类别 * @author Administrator * */ class classsysAction extends Action{ /** * 获取一个酒店的基础设施选项,传入id值,查找出中文名称 * @param $strid 传入的id值,多个id用逗号分隔 * @param $returnfiledid 返回的字段id号 * @return 返回查询后的数组 */ function getidtoname($strid,$returnfiledid){ if($strid=="") return ""; $sear...
PHP
<?php class picAction extends Action{ /** * 获取某一个客栈的图片列表 */ function getpiclist($pid){ if(!is_numeric($pid)) return ""; $mr=M("pic"); $rs=$mr->field("pic1,pic4")->where("pic2=".$pid)->order("pic6 desc")->select(); return $rs?$rs:""; } } ?>
PHP
<?php /** * 房型类 * @author jroam * */ class hotelroomAction extends Action{ /** * 检查一个时间内的日期,每一天这个房间的状态,是否有房,可以住几人,价格是多少 (暂时不启用) @return 返回格式2012-09-10|可以入住人数|价格值, */ function checkdateyoux(){ $startdate=$_REQUEST["startdate"];//入住日期,由于url中的分隔符是-所以这里替换为_ $enddate=$_REQUEST["enddate"]...
PHP
<?php /** * 客栈列表 */ class roomAction extends globalAction { private $dao, $inn; public function _initialize() { parent::_initialize(); parent::_loginRequire(); /*********************************************************************** * 客栈管理权限验证 ***********...
PHP
<?php /* * 评论类 */ class pinglunAction extends Action { /** * 显示html页面 */ function add(){ $this->display(); } /** * 获取客栈评论的列表 */ function getpinglunlist($hid){ if(!is_numeric($hid)) return ""; $mr=M("pinglun"); $sql="select * from ".DQ."pinglun where pinglun2=".$hi...
PHP
<?php /** * 客栈申请 */ class innAdmAction extends globalAction { private $_inn, $innDao, $upload; public function _initialize() { parent::_initialize(); parent::_loginRequire(); //获取客栈ID $innId = intval($_REQUEST['id']); if(empty($innId)) ...
PHP
<?php class orderformAction extends Action { /** * 工作人员修改出团通知书后的保存操作 */ function savechutuanzzs() { if($_SESSION["Login"][1]=="" or $_SESSION["Login"][1]==null) die("您不是工作人员或没有登陆"); $orderid=$_REQUEST["orderid"]; $str="{@团号:".$_REQUEST["chutuhao"]."@}"; $str.="{@集合接送:".$_REQUEST["jiejisong...
PHP
<?php /** * 线路类 * @author jroam * */ class tourAction extends globalAction { /** * 线路列表 */ function search() { $field = array( '*', "(select count(*) from ".C("DB_PREFIX")."pinglun where pinglun2=tour0)" => "pinglunnum" ); $order = ar...
PHP
<?php class paytypeAction extends globalAction { /** * 构建支付宝支付功能页面 * @param $arr 参数值数组 * $arr["out_trade_no"] str商户的订单号 * $arr["aliorder"] 订单名称,显示在支付宝收银台里的“商品名称”里,显示在支付宝的交易管理的“商品名称”的列表里。 * $arr["alibody"] 订单描述、订单详细、订单备注,显示在支付宝收银台里的“商品描述”里 * $arr["alimoney"] 订单总金额,显示在支付宝收银台里的“应付总额”里 * $arr["je...
PHP
<?php /** * 邮件模板类 * @author jroam * */ class mailAction extends Action{ /** * */ function createorder($info,$orderlist){ global $SYS_config; $this->assign("SYS_config",$SYS_config); $this->assign("info",$info); $this->assign("orderlist",$orderlist); return $this->fetch...
PHP
<?php // 本类由系统自动生成,仅供测试用途 class IndexAction extends globalAction { function test(){ $TMPL_PARSE_STRING = C('TMPL_PARSE_STRING'); echo $TMPL_PARSE_STRING['__UCHOME__']; } public function index() { /** //周边游索引 $this->assign('ZhouBianYouIndex', ZhouBianYouIndex(__FromDestID__)); ...
PHP
<?php /** * 发送邮件的类 * @author jroam * */ class sendmailAction extends globalAction { /** * 发送出团通知书页面给客户,需要以url的方式分层协议 递订单号,发送到的邮箱,订单的id */ function chutuantzs() { $orderid=$_REQUEST["orderid"];//订单号 $tomail=ui_huanyuanxiahuax($_REQUEST["tomail"]);//发送到的邮箱 $oid=$_REQUEST["id"]; if(!...
PHP
<?php class domesticAction extends Action { //国内游首页 public function index(){ $public=A("public"); $tophtml=$public->top(); //获取左边的栏目导航的类别 $classsys=A("classsys"); $cladhtm=$classsys->getteshe(); $countpunlun="(select count(*) from ".DQ."pinglun where pinglun2=tour0) as pinglunnum";...
PHP
<?php class payAction extends Action { /** * 显示购物车主列表, * 购物车每个选项的值在用户没有登陆之前用cookie * cookie格式:cart["tour_idnum1"]["price"] 价格 * cookie格式cart["tour_idnum1"]["erprice"] 儿童价 * cookie格式cart["tour_idnum2"]["price"] 价格 * cookie格式cart["tour_idnum2"]["erprice"] 儿童价 */ public function cart(){ //获取...
PHP
<?php /** * 新闻表类 * @author jroam *@time 2012-4-5 */ class newsAction extends Action { /** * 获取并返回新闻类的多条记录 * @param $wheresql 查询的sql语句 * @return 返回新闻类的多条记录 失败返回null */ function getRsList($wheresql) { $rsc=M("news"); $rs= $rsc->where($wheresql)->select(); return ($rs)?$rs:""; }...
PHP
<?php class classsysAction extends Action { /** * 获取目的地,输出为json,供社区调用 */ function getmididi() { $pid=$_REQUEST["pid"]; if($pid=="") $pid="0"; if(!is_numeric($pid)) { $temp="{'success':false}"; die($temp); } $mr=M("classsys"); $rs=$mr->where("classsys2=".$pid." and (classsys3=...
PHP
<?php class guanzhuAction extends Action { /** * 会员想去时添加值 */ function add() { $uid=$_COOKIE["uchome_uid"]; $tid=$_REQUEST["tid"]; $uchome_auth=$_COOKIE["uchome_auth"]; if(!$uchome_auth) die("会员没有登陆"); $mr=M("guanzhu"); $rs=$mr->where("guanzhu1=$uid and guanzhu2=$tid")->find()...
PHP
<?php /** * * @author jroam * */ class onepageAction extends Action { /** * 获取并返回单页类的多条记录 * @param $wheresql 查询的sql语句 * @return 返回产品类的多条记录 失败返回null */ function getRsList($wheresql) { $rsc=M("onepage"); $rs= $rsc->where($wheresql)->select(); return ($rs)?$rs:null; } /** ...
PHP
<?php /** * 短息发送模块 * @author jroam * */ class smsAction extends Action{ /** * 发送单条短息 * @param $data $data["phoneno"]手机号 $data["content"]发送内容 * @return 成功返回 true 失败返回false */ function sendsms($data){ //验证数据 /** if(!$data) return false; if(!preg_match("/^1[\d]{10}$/", $data["...
PHP
<?php /** * 用于获取用户社区信息的类 * @author jroam * */ class userAction extends Action { /** * 根据sql查询并返回查询的结果记录集 * @param $sql * @return 如果数据非法或者查询错误则返回false 否则返回查询结果数据集(同select方法) */ function getRsListBySql($sql) { require_once RootDir."/inc/mysql_userdb.php";//加载社区配置文件 $mr=new USERDB(); ...
PHP
<?php class pinglunAction extends Action { function add() { $uid=$_COOKIE["uchome_uid"]; $uchome_auth=$_COOKIE["uchome_auth"]; if(!$uchome_auth) die("会员没有登陆"); $content=$_REQUEST["yingxiangcontent"];//应像内容 $tid=$_REQUEST["tid"];//线路的id $mr=M("pinglun"); //获取这个用户的最大数,如果没有达到最大数就添加 gl...
PHP
<?php class baseAction extends Action{ /** * 显示验证码 */ Public function verify(){ import("@.ORG.Util.Image"); //Image::buildImageVerify(); Image::buildImageVerify ( 5, 5, "gif" ); } /** * 获取当前购物车商品的数量 */ function getcartnum() { $syscookie=unserialize($_COOKIE["syscookie"]); ...
PHP
<?php class infoAction extends Action{ /** * 获取页面底部的帮助信息 */ function getpagefootlist(){ //获取帮助底部信息 $sql="select classsys0,classsys1 from ".DQ."classsys where classsys3=611 order by classsys4 desc"; $crs=M()->query($sql); $rarr=array(); $i=0; foreach ($crs as $v){ $sql="select info0,i...
PHP
<?php /** * 公共类处理函数 * @author jqrr * */ class publicAction extends Action { function top() { global $_SC; $myuser=new USERDB(); $cmr=new Model(); $classsys=A("classsys"); /*********************************************************************** *自动获取当前出发地 ...
PHP
<?php /** * 各种确认书界面 * @author Administrator * */ class affirmAction extends Action { /** * 支付确认书 * 显示支付的确认书, * 每个员工只能查看自己的确认书,工作人员可以查看所有的 * */ function zhifu() { $orderid=$_REQUEST["orderid"];//订单号 $mr=D("orderform"); global $SystemConest; //@todo: 以后再添加会员只能查看自己的订单,管理人员可以查...
PHP
<?php /** * 获取游记列表 */ class LastScrollDataWidget extends Widget { public function render($data) { //获取最后注册的会员 $sql="select uid,username from ".UHDQ."space order by uid desc limit 5"; $data["newuser"] = M()->query($sql); //获取最后发表的游记 $sql="select blogid,uid,username,s...
PHP
<?php /** * 获取游记列表 */ class BlogSideListWidget extends Widget { public function render($data) { $sql = "select * from ".UHDQ."blog as a left join ".UHDQ."space as b on a.uid=b.uid left join ".UHDQ."blogfield as c on a.blogid=c.blogid where c.message like '%<img %' ...
PHP
<?php /** * 页面底部 * @author jqrr * */ class footWidget extends Widget { public function render($data) { //获取友情链接 $sql="select * from ".DQ."connectsys where connectsys7=".$data["linkid"]; $data["rslink"]=M()->query($sql); //获取帮助信息 $sql="select classsys0,classsys1 from ".DQ."classsys whe...
PHP
<?php class LinkWidget extends Widget{ /** */ public function render($data) { $sql="select * from ".DQ."connectsys where connectsys7=".$data["cid"]; $data["rs"]=M()->query($sql); $c= $this->renderFile("Linkoffoot", $data); return $c; } } ?>
PHP
<?php /*~ class.smtp.php .---------------------------------------------------------------------------. | Software: PHPMailer - PHP email class | | Version: 5.1 | | Contact: via sourceforge.net support pages (also www...
PHP
<?php /*~ class.phpmailer.php .---------------------------------------------------------------------------. | Software: PHPMailer - PHP email class | | Version: 5.1 | | Contact: via sourceforge.net support pages (als...
PHP
<?php /** * 时间段模型 */ class InnBatPriceModel extends AutoMapModel { protected $tableName = 'price'; protected $patchValidate = true; public $_map = array( 'id' => 'price0', //类型ID 'name' => 'price1', //时间段名称 'menuId' => 'price3', //分类标志612 'innId' ...
PHP
<?php /** * 点评模型 */ class InnReviewsModel extends AutoMapModel { protected $tableName = 'pinglun'; protected $patchValidate = true; public $_map = array( 'rv_id' => 'pinglun0', //ID 'order_num' => 'pinglun1', //订单号 'product_id' => 'pinglun2', //产品...
PHP
<?php /** * 房型图集表模型 */ class InnRoomImagesModel extends AutoMapModel { protected $tableName = 'pic'; protected $patchValidate = true; public $_map = array( 'id' => 'pic0', //图片ID 'name' => 'pic1', //图片名称 'roomId' => 'pic2', //所属房型ID...
PHP
<?php /** * 客栈类型表模型 */ class InnTypeModel extends AutoMapModel { protected $tableName = 'classsys'; protected $patchValidate = true; public $_map = array( 'id' => 'classsys0', //类型ID 'name' => 'classsys1', //类型名称 'parent' => 'classsys2', //上级ID 'm...
PHP
<?php /** * 客栈信息表模型 */ class InnRoomModel extends AutoMapModel { protected $tableName = 'hotelroom'; public $_map = array( 'id' => 'hotelroom0', //房型ID 'name' => 'hotelroom1', //房型名称 'innId' => 'hotelroom2', //所属酒店id 'menuId' ...
PHP
<?php /** * 点评模型 */ class InnMessageModel extends AutoMapModel { protected $tableName = 'messagesys'; protected $patchValidate = true; public $_map = array( 'msg_id' => 'messagesys0', //ID 'content' => 'messagesys5', //内容 'menu_id' => 'messagesys7', //...
PHP
<?php /** * 订单模型 */ class OrderModel extends AutoMapModel { protected $tableName = 'orderform'; public $_map = array( 'id' => 'orderform0', //订单ID 'innId' => 'orderform1', //客栈ID 'menuId' => 'orderform2', //分类标志618 'orderNum' ...
PHP
<?php /** * 客栈图集表模型 */ class InnImagesModel extends AutoMapModel { protected $tableName = 'pic'; protected $patchValidate = true; public $_map = array( 'id' => 'pic0', //图片ID 'name' => 'pic1', //图片名称 'innId' => 'pic2', //所属客栈ID 'menuId' => 'pic3'...
PHP
<?php /** * 房型类型表模型 */ class InnRoomOrderTypeModel extends AutoMapModel { protected $tableName = 'classsys'; public $_map = array( 'id' => 'classsys0', //类型ID 'name' => 'classsys1', //类型名称 'parent' => 'classsys2', //上级ID 'menuId' ...
PHP
<?php /** * 客栈设施表模型 */ class InnFacilityModel extends AutoMapModel { protected $tableName = 'classsys'; protected $patchValidate = true; public $_map = array( 'id' => 'classsys0', //设施ID 'name' => 'classsys1', //设施名称 'parent' => 'classsys2', //上级ID ...
PHP
<?php /** * 客栈类型表模型 */ class InnAreaModel extends AutoMapModel { protected $tableName = 'classsys'; public $_map = array( 'id' => 'classsys0', //类型ID 'name' => 'classsys1', //类型名称 'parent' => 'classsys2', //上级ID 'menuId' => 'classsys3', //分类标志590 ...
PHP
<?php /** * 客栈主题表模型 */ class InnSubjectModel extends AutoMapModel { protected $tableName = 'classsys'; protected $patchValidate = true; public $_map = array( 'id' => 'classsys0', //主题ID 'name' => 'classsys1', //主题名称 'parent' => 'classsys2', //上级ID ...
PHP
<?php /** * 客栈等级表模型 */ class InnClassModel extends AutoMapModel { protected $tableName = 'classsys'; protected $patchValidate = true; public $_map = array( 'id' => 'classsys0', //设施ID 'name' => 'classsys1', //设施名称 'parent' => 'classsys2', //上级ID '...
PHP
<?php /** * 客栈信息表模型 */ class InnModel extends AutoMapModel { protected $tableName = 'hotel'; protected $patchValidate = true; public $_map = array( 'id' => 'hotel0', //客栈ID 'name' => 'hotel1', //客栈名称 'menuId' => 'hotel2', //分类标志5...
PHP
<?php class pinglunModel extends Model{ protected $_validate = array( array('pinglun1', 'require', '订单号不能为空!', 1),//1为必须验证 ); protected $_auto = array ( array('pinglun8','time',1,'function') , // 自动添加时间 ); } ?>
PHP
<?php /** * 客栈合作方式模型 */ class InnCooperationModel extends AutoMapModel { protected $tableName = 'classsys'; public $_map = array( 'id' => 'classsys0', //合作方式ID 'name' => 'classsys1', //合作方式名称 'parent' => 'classsys2', //上级ID 'menuId' => 'classsys3', //分...
PHP
<?php /** * 房型类型表模型 */ class InnRoomTypeModel extends AutoMapModel { protected $tableName = 'classsys'; public $_map = array( 'id' => 'classsys0', //类型ID 'name' => 'classsys1', //类型名称 'parent' => 'classsys2', //上级ID 'menuId' ...
PHP
<?php /** * [全功能映射模型] * 只要配置了映射表($this->_map),则自动验证表和自动完成表均可使用映射后的字段名 * 针对parseFieldsMap只能反射解析单行数据,特增加了parseFieldsMapMulti方法 * Created by Tinico */ class AutoMapModel extends Model { public $_map_flip;//字段反射,可以在连贯查询中传入field()方法 public function _initialize() { parent::_initiali...
PHP
<?php /** * 客栈预定方式表模型 */ class InnBookTypeModel extends AutoMapModel { protected $tableName = 'classsys'; protected $patchValidate = true; public $_map = array( 'id' => 'classsys0', //预定方式ID 'name' => 'classsys1', //预定方式名称 'parent' => 'classsys2', //上级ID ...
PHP
<?php /** * 掌柜申请表模型 */ class InnApplyModel extends AutoMapModel { protected $tableName = 'info'; protected $patchValidate = true; public $_map = array( 'id' => 'info0', //申请单ID 'username' => 'info1', //会员名 'userid' => 'info2', //会员ID ...
PHP
<?php /** * 客栈推荐方式表模型 */ class InnRecommendModel extends AutoMapModel { protected $tableName = 'classsys'; protected $patchValidate = true; public $_map = array( 'id' => 'classsys0', //推荐方式ID 'name' => 'classsys1', //推荐方式名称 'parent' => 'classsys2', //上级ID ...
PHP
<?php // +----------------------------------------------------------- // | ThinkPHP // +------------------------------------------------------------ // | Copyright (c) 2009 http://thinkphp.cn All rights reserved. // +------------------------------------------------------------ // | Licensed ( http://www.apache....
PHP
<?php /** +------------------------------- * Html标签库驱动 +------------------------------- */ class TagLibHtml extends TagLib{ // 标签定义 protected $tags = array( // 标签定义: attr 属性列表 close 是否闭合(0 或者1 默认1) alias 标签别名 level 嵌套层次 'editor' => array('attr'=>'id,name,style,width,heig...
PHP
<?php require_once $SystemConest[0]."/inc/Uifunction.php"; require_once "./api/uc.php"; /******************************************************************************* * 通用函数 ******************************************************************************/ /** * 构建一维简单数组(主要用于构造适用于html:radio和html:checkbox标签的数...
PHP
<?php require "global.php";//加载主站配置文件 define('UPLOAD_PATH', './upfiles/'); define("APP_DEBUG", $SYS_config["tiaoshi"]); //是否开启调式 define('APP_NAME', 'xdreams'); define('APP_PATH', './Index/'); define('THINK_PATH', './DThinkPHP/'); require THINK_PATH. "ThinkPHP.php"; ?>
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage UnitTester * @version $Id: exceptions.php 1882 2009-07-01 14:30:05Z lastcraft $ */ /**#@+ * Include required SimpleTest files */ require_once dirname(__FILE__) . '/invoker.php'; require_once dirname(__FILE__) . '/expectat...
PHP
<?php /** * adapter for SimpleTest to use PEAR PHPUnit test cases * @package SimpleTest * @subpackage Extensions * @version $Id: pear_test_case.php 1836 2008-12-21 00:02:26Z edwardzyang $ */ /**#@+ * include SimpleTest files */ require_once(dirname(__FILE__) . '/../du...
PHP
<?php // $Id: test.php 1748 2008-04-14 01:50:41Z lastcraft $ require_once dirname(__FILE__) . '/../../autorun.php'; require_once dirname(__FILE__) . '/../testdox.php'; // uncomment to see test dox in action //SimpleTest::prefer(new TestDoxReporter()); class TestOfTestDoxReporter extends UnitTestCase { function te...
PHP
<?php /** * Extension for a TestDox reporter * @package SimpleTest * @subpackage Extensions * @version $Id: testdox.php 2004 2010-10-31 13:44:14Z jsweat $ */ /** * TestDox reporter * @package SimpleTest * @subpackage Extensions */ class TestDoxReporter extends SimpleReporter { var $_test_case_pattern = ...
PHP
<?php /** * base include file for eclipse plugin * @package SimpleTest * @subpackage Eclipse * @version $Id: eclipse.php 2011 2011-04-29 08:22:48Z pp11 $ */ /**#@+ * simpletest include files */ include_once 'unit_tester.php'; include_once 'test_case.php'; include_once 'invoker.php'; include_once 'socke...
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage MockObjects * @version $Id: mock_objects.php 1973 2009-12-22 01:16:59Z lastcraft $ */ /**#@+ * include SimpleTest files */ require_once(dirname(__FILE__) . '/expectation.php'); require_once(dirname(__FILE__) . '/simpletes...
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage UnitTester * @version $Id: dumper.php 1909 2009-07-29 15:58:11Z dgheath $ */ /** * does type matter */ if (! defined('TYPE_MATTERS')) { define('TYPE_MATTERS', true); } /** * Displays variables as text and does dif...
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage WebTester * @version $Id: http.php 2011 2011-04-29 08:22:48Z pp11 $ */ /**#@+ * include other SimpleTest class files */ require_once(dirname(__FILE__) . '/socket.php'); require_once(dirname(__FILE__) . '/cookies.php'); r...
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage UnitTester * @version $Id: xml.php 1787 2008-04-26 20:35:39Z pp11 $ */ /**#@+ * include other SimpleTest class files */ require_once(dirname(__FILE__) . '/scorer.php'); /**#@-*/ /** * Creates the XML needed for remo...
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage UnitTester * @version $Id: dumper.php 1909 2009-07-29 15:58:11Z dgheath $ */ /** * Parses the command line arguments. * @package SimpleTest * @subpackage UnitTester */ class SimpleArguments { private $al...
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage UnitTester * @version $Id: unit_tester.php 1882 2009-07-01 14:30:05Z lastcraft $ */ /**#@+ * include other SimpleTest class files */ require_once(dirname(__FILE__) . '/test_case.php'); require_once(dirname(__FILE__) . '/...
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage UnitTester * @version $Id: reflection_php5.php 2011 2011-04-29 08:22:48Z pp11 $ */ /** * Version specific reflection API. * @package SimpleTest * @subpackage UnitTester */ class SimpleReflection { private $...
PHP
<?php /** * base include file for SimpleTest * @package SimpleTest * @subpackage WebTester * @version $Id: php_parser.php 1911 2009-07-29 16:38:04Z lastcraft $ */ /** * Builds the page object. * @package SimpleTest * @subpackage WebTester */ class SimpleTidyPageBuilder { private $page; ...
PHP