code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<cfsetting enablecfoutputonly="Yes">
<!---
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* ColdFusion integration.
* Note this module is created for use with Coldfusion 4.52 and above.
* For a cfc version for coldfusion mx check the fckeditor.cfc.
*
* Syntax:
*
* <cfmodule name="path/to/cfc/fckeditor"
* instanceName="myEditor"
* toolbarSet="..."
* width="..."
* height="..:"
* value="..."
* config="..."
* >
--->
<!--- ::
* Attribute validation
:: --->
<cfparam name="attributes.instanceName" type="string">
<cfparam name="attributes.width" type="string" default="100%">
<cfparam name="attributes.height" type="string" default="200">
<cfparam name="attributes.toolbarSet" type="string" default="Default">
<cfparam name="attributes.value" type="string" default="">
<cfparam name="attributes.basePath" type="string" default="/fckeditor/">
<cfparam name="attributes.checkBrowser" type="boolean" default="true">
<cfparam name="attributes.config" type="struct" default="#structNew()#">
<cfinclude template="fckutils.cfm">
<!--- ::
* check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true
:: --->
<cfscript>
if( attributes.checkBrowser )
{
isCompatibleBrowser = FCKeditor_IsCompatibleBrowser();
}
else
{
// If we should not check browser compatibility, assume true
isCompatibleBrowser = true;
}
</cfscript>
<cfif isCompatibleBrowser>
<!--- ::
* show html editor area for compatible browser
:: --->
<cfscript>
// try to fix the basePath, if ending slash is missing
if( len( attributes.basePath) and right( attributes.basePath, 1 ) is not "/" )
attributes.basePath = attributes.basePath & "/";
// construct the url
sURL = attributes.basePath & "editor/fckeditor.html?InstanceName=" & attributes.instanceName;
// append toolbarset name to the url
if( len( attributes.toolbarSet ) )
sURL = sURL & "&Toolbar=" & attributes.toolbarSet;
// create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded)
/**
* CFML doesn't store casesensitive names for structure keys, but the configuration names must be casesensitive for js.
* So we need to find out the correct case for the configuration keys.
* We "fix" this by comparing the caseless configuration keys to a list of all available configuration options in the correct case.
* changed 20041206 hk@lwd.de (improvements are welcome!)
*/
lConfigKeys = "";
lConfigKeys = lConfigKeys & "CustomConfigurationsPath,EditorAreaCSS,ToolbarComboPreviewCSS,DocType";
lConfigKeys = lConfigKeys & ",BaseHref,FullPage,Debug,AllowQueryStringDebug,SkinPath";
lConfigKeys = lConfigKeys & ",PreloadImages,PluginsPath,AutoDetectLanguage,DefaultLanguage,ContentLangDirection";
lConfigKeys = lConfigKeys & ",ProcessHTMLEntities,IncludeLatinEntities,IncludeGreekEntities,ProcessNumericEntities,AdditionalNumericEntities";
lConfigKeys = lConfigKeys & ",FillEmptyBlocks,FormatSource,FormatOutput,FormatIndentator";
lConfigKeys = lConfigKeys & ",StartupFocus,ForcePasteAsPlainText,AutoDetectPasteFromWord,ForceSimpleAmpersand";
lConfigKeys = lConfigKeys & ",TabSpaces,ShowBorders,SourcePopup,ToolbarStartExpanded,ToolbarCanCollapse";
lConfigKeys = lConfigKeys & ",IgnoreEmptyParagraphValue,FloatingPanelsZIndex,TemplateReplaceAll,TemplateReplaceCheckbox";
lConfigKeys = lConfigKeys & ",ToolbarLocation,ToolbarSets,EnterMode,ShiftEnterMode,Keystrokes";
lConfigKeys = lConfigKeys & ",ContextMenu,BrowserContextMenuOnCtrl,FontColors,FontNames,FontSizes";
lConfigKeys = lConfigKeys & ",FontFormats,StylesXmlPath,TemplatesXmlPath,SpellChecker,IeSpellDownloadUrl";
lConfigKeys = lConfigKeys & ",SpellerPagesServerScript,FirefoxSpellChecker,MaxUndoLevels,DisableObjectResizing,DisableFFTableHandles";
lConfigKeys = lConfigKeys & ",LinkDlgHideTarget ,LinkDlgHideAdvanced,ImageDlgHideLink ,ImageDlgHideAdvanced,FlashDlgHideAdvanced";
lConfigKeys = lConfigKeys & ",ProtectedTags,BodyId,BodyClass,DefaultLinkTarget,CleanWordKeepsStructure";
lConfigKeys = lConfigKeys & ",LinkBrowser,LinkBrowserURL,LinkBrowserWindowWidth,LinkBrowserWindowHeight,ImageBrowser";
lConfigKeys = lConfigKeys & ",ImageBrowserURL,ImageBrowserWindowWidth,ImageBrowserWindowHeight,FlashBrowser,FlashBrowserURL";
lConfigKeys = lConfigKeys & ",FlashBrowserWindowWidth ,FlashBrowserWindowHeight,LinkUpload,LinkUploadURL,LinkUploadWindowWidth";
lConfigKeys = lConfigKeys & ",LinkUploadWindowHeight,LinkUploadAllowedExtensions,LinkUploadDeniedExtensions,ImageUpload,ImageUploadURL";
lConfigKeys = lConfigKeys & ",ImageUploadAllowedExtensions,ImageUploadDeniedExtensions,FlashUpload,FlashUploadURL,FlashUploadAllowedExtensions";
lConfigKeys = lConfigKeys & ",FlashUploadDeniedExtensions,SmileyPath,SmileyImages,SmileyColumns,SmileyWindowWidth,SmileyWindowHeight";
sConfig = "";
for( key in attributes.config )
{
iPos = listFindNoCase( lConfigKeys, key );
if( iPos GT 0 )
{
if( len( sConfig ) )
sConfig = sConfig & "&";
fieldValue = attributes.config[key];
fieldName = listGetAt( lConfigKeys, iPos );
sConfig = sConfig & urlEncodedFormat( fieldName ) & '=' & urlEncodedFormat( fieldValue );
}
}
</cfscript>
<cfoutput>
<input type="hidden" id="#attributes.instanceName#" name="#attributes.instanceName#" value="#HTMLEditFormat(attributes.value)#" style="display:none" />
<input type="hidden" id="#attributes.instanceName#___Config" value="#sConfig#" style="display:none" />
<iframe id="#attributes.instanceName#___Frame" src="#sURL#" width="#attributes.width#" height="#attributes.height#" frameborder="0" scrolling="no"></iframe>
</cfoutput>
<cfelse>
<!--- ::
* show plain textarea for non compatible browser
:: --->
<cfscript>
// append unit "px" for numeric width and/or height values
if( isNumeric( attributes.width ) )
attributes.width = attributes.width & "px";
if( isNumeric( attributes.height ) )
attributes.height = attributes.height & "px";
</cfscript>
<!--- Fixed Bug ##1075166. hk@lwd.de 20041206 --->
<cfoutput>
<textarea name="#attributes.instanceName#" rows="4" cols="40" style="WIDTH: #attributes.width#; HEIGHT: #attributes.height#">#HTMLEditFormat(attributes.value)#</textarea>
</cfoutput>
</cfif>
<cfsetting enablecfoutputonly="No"><cfexit method="exittag">
| 10npsite | trunk/guanli/system/fckeditor/fckeditor.cfm | ColdFusion | asf20 | 7,024 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$MenuId=$_REQUEST["MenuId"];
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"Update");//检查登陆权限
if(strlen(MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>产品展示</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/productsys/Index.php | PHP | asf20 | 1,064 |
<?php
//===============================
// 栏目管理/菜单管理
//===============================
$ClassFields=array(5);
$MyClassDB=new YYBDB();
$MyClassDB->TableName=$SystemTablename[0];
$ListPropertyPageTdNum=1;//显示字段总数
$arrlistTitleNum[]=array();
$shangjiId=0;
//显示上面的标题
function getTitle($mydb,$MenuId)
{
$mydb->TableName=reTableName($mydb,$MenuId);
$MenuIdnum=$mydb->getMenuIdNum($MenuId);
if($MenuId=="") return "";
global $SystemTablename;
global $SystemConest;
global $ListPropertyPageTdNum;
global $arrlistTitleNum;
global $shangjiId;
$k=0;
$rsc=$mydb->db_query("Select * From ".$SystemConest[7].$SystemTablename[0]." Where ".$SystemTablename[0]."2=".$Fid." and ".$SystemTablename[0].$MenuIdnum."=" .$MenuId. " Order by ".$SystemTablename[0]."3");
$StrListConfig=GetListConfig($mydb,$MenuId);
if(is_null($StrListConfig)==true)
{
$ArrListConfig=explode(",",",,,");
}
else
{
$ArrListConfig=explode(",",$StrListConfig);
}
$Titlefields=explode("|",$ArrListConfig[0]);
$titleFieldNumArr=array();
foreach($Titlefields as $values )
{
$temp=explode("/",$values);
$titleFieldNumArr[]=$temp[0];
}
$rsM=$mydb->db_query("select * from ".$SystemConest[7].$SystemTablename[2]." where ".$SystemTablename[2]."0 =".$MenuId);
if($rst=$mydb->db_fetch_array($rsM))
{
$Arr_configlist=explode(",",$rst[7]);
$kk=0;
foreach($Arr_configlist as $v)
{
$va2=explode("|",$v);
if($va2[0]=="上级栏目")
{
$shangjiId=$kk;
break;
}
$kk++;
}
for($i=0;$i<count($titleFieldNumArr);$i++)
{
for($j=1;$j<count($Arr_configlist);$j++)
{
$FieldsC=explode("|",$Arr_configlist[$j]);
if($titleFieldNumArr[$i]==$j and $FieldsC[0] !="")
{
$strReturn=$strReturn."<td style='color:#FFF' align='center'>".$FieldsC[0]."</td>";
$ListPropertyPageTdNum=$ListPropertyPageTdNum+1;
$arrlistTitleNum[$k]=$j;
$k++;
}
}
}
}
return $strReturn."<td style='color:#FFF' align='center'>操作</td>";
}
//显示一级栏目列表
function ClassSys_ShowClass1List($mypage,$MenuId,$Fid,$lenvo,$inLenvo,$fanyenum="1000")
{
$mypage->TableName=reTableName($mypage,$MenuId);
$MenuIdnum=$mypage->getMenuIdNum($MenuId);
if($MenuId=="") return "";
global $SystemTablename;
global $SystemConest;
$bsnum=0;
$sqlstr="Select * From ".$SystemConest[7].$SystemTablename[0]." Where ".$SystemTablename[0]."2=".$Fid." and ".$SystemTablename[0].$MenuIdnum."=" .$MenuId. " Order by ".$SystemTablename[0]."3 ";
if($fanyenum!="1000"){
$mypage->pagecount=$fanyenum;
$mypage->StrPage="p";
$mypage->otherUrl="&MenuId=".$_REQUEST["MenuId"];//若有值请以"&"开始
$mypage->numShowStyle=0;//显示分页样式
$mypage->sql=$mypage->FenyeSql($sqlstr);//查询的条件
$bsnum=$mypage->ReturnBeginNumber();//用于那个循环的sql语句的起始记录
}
$rsc=$mypage->db_query($sqlstr." limit $bsnum,".$fanyenum);
$StrListConfig=GetListConfig($mypage,$MenuId);
if(is_null($StrListConfig)==true)
{
$ArrListConfig=explode(",",",,,");
}
else
{
$ArrListConfig=explode(",",$StrListConfig);
}
$ArrHead=explode("|",$ArrListConfig[0]);
$FormConfig1=GetFormConfig($mypage,$MenuId);
if(is_null($FormConfig1)==true) return "";
$ArrFormConfig=explode(",",$FormConfig1);
?></p>
<tr>
<?php
for($i=0;$i<count($ArrHead);$i++)
{
$Rs=explode("/",$ArrHead[$i]);
?>
<?php if(count($Rs)>0){ ?>
<?php if(str_replace(" ","",$rs[1])<>""){ ?> width="<?php echo $Rs[1];?>" <? }?>
<?php }?>
<?
$arr=explode("|",$ArrFormConfig[$Rs[0]]);
}
?>
<?
if($mypage->db_num_rows($rsc)<1)
{
return "";
}
while($Menu1Rs=$mypage->db_fetch_array($rsc))
{
if($Fid!=$MaxClassID) $tt="";
for($j=$inLenvo;$j<$lenvo;$j++)
{
$tt=$tt." ";
}
?>
<tr <? if($lenvo==1)
{
echo "class='YKTtr'";
}
else
{
echo " bgcolor='#ffffff'";
}
?> Height="25">
<?
for($i=0;$i<count($ArrHead);$i++)
{
$Rs=explode("/",$ArrHead[$i]);
if($Rs[2]=="")
{
$align="center" ;
}
else
{
$align=$Rs[2];
}
?>
<td class="YKTtd" ><div align="<? echo $align;?>">
<?
$arrspan="";
if($Fid>1)
{
$arrspan=" ";
}
echo $arrspan.$tt;
$FieldType_arr=explode("|",$ArrFormConfig[$Rs[0]]);
$FieldType=$FieldType_arr[1];
if($FieldType==2 || $FieldType==3)
{
echo GetClassName($mypage,$Menu1Rs[(int)($Rs[0])],$Rs[0]);
}
else{
if(GetInputType($FormConfig1,(int)($Rs[0]))==10){
if(is_null($Menu1Rs[(int)($Rs[0])])==false){
$Arr1=explode("|",$Menu1Rs[(int)($Rs[0])]);
$A=$Arr1[0];
if($A=="1"){
echo "已审核";
}
else{
echo "未审核";
}
}
else{
echo "未审核";
}
}
else
{
$aa=str_replace(" ","",$Rs[0]);
echo $Menu1Rs[(int)($aa)];
}
}
?>
</div></td>
<? } ?>
<td class="YKTtd"><div align="center">
<a href="../menusys/Sys_Add.php?MenuId=<? echo $_REQUEST["MenuId"];?>&CMID=<? echo $_REQUEST["CMID"];?>&PMID=<? echo $_REQUEST["PMID"];?>&OwerID=<? echo $Menu1Rs[0];?>" class="Link12">添加下级</a> |
<a href="../menusys/Sys_Update.php?MenuId=<? echo $_REQUEST["MenuId"];?>&CMID=<? echo $_REQUEST["CMID"];?>&PMID=<? echo $_REQUEST["PMID"];?>&OwerID=<? echo $Menu1Rs[0];?>&ID=<? echo $Menu1Rs[0];?>" class="Link12">修改</a> | <a href="../menusys/Sys_Delete.php?MenuId=<? echo $_REQUEST["MenuId"];?>&CMID=<? echo $_REQUEST["CMID"];?>&PMID=<? echo $_REQUEST["PMID"];?>&OwerID=<? echo $Menu1Rs[0];?>&ID=<? echo $Menu1Rs[0];?>" class="Link12">删除</a></div></td>
</tr>
<?
ClassSys_ShowClass1List($mypage,$MenuId,$Menu1Rs[0],$lenvo+1,$inLenvo);//递归调用下级目录
}
}
//获取二级栏数
function ClassSys_GetClass2Num($mydb,$Menu1ID)
{
global $SystemTablename;
global $SystemConest;
if($Menu1ID=="") return "";
$rsc=$mydb->db_query("Select Count(*) From ".$SystemConest[7].$SystemTablename[0]." Where ".$SystemTablename[0]."2=".$Menu1ID);
$MenuRs=$mydb->db_fetch_array($rsc);
$num=$mydb->db_num_rows($rsc);
if($num>0)
{
return $MenuRs[0];
}
}
//获取分类名称
function GetClassName($mydb,$ClassID,$dnum)
{
if($ClassID=="") return "";
global $SystemTablename;
global $SystemConest;
$sqlrs="Select ".$SystemTablename[0]."1 From ".$SystemConest[7].$SystemTablename[0]." Where ".$SystemTablename[0]."0=" .$ClassID;
$rsc=$mydb->db_query($sqlrs);
$num=$mydb->db_num_rows($rsc);
$MenuRs=$mydb->db_fetch_array($rsc);
if($num>0)
{
$urlq="MenuId=".$_REQUEST["MenuId"]."&";
return "<a href='?".$urlq.$SystemTablename[0]."_".$dnum."_id=".$ClassID."'>".$MenuRs[0]."</a>";
}
else
{
return "";
}
}
//获取大类ID
function GetMaxClassID($mydb,$ClassID)
{
if($ClassID=="") return -1;
global $SystemTablename;
global $SystemConest;
$ClassID=getkuohaostr($ClassID,"/([\d]+)/");
$sqlrs="Select ".$SystemTablename[0]."2 From ".$SystemConest[7].$SystemTablename[0]." Where ".$SystemTablename[0]."0=" .$ClassID;
$rsc=$mydb->db_query($sqlrs);
$num=$mydb->db_num_rows($rsc);
$MenuRs=$mydb->db_fetch_array($rsc);
if($num>0)
{
if($MenuRs[0]==0)
{
return $ClassID;
}
else
{
return $MenuRs[0];
}
}
else
{
return -1;
}
}
?>
| 10npsite | trunk/guanli/system/classsys/function.php | PHP | asf20 | 7,929 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require "function.php";
$mypage=new RsPage();
//权限检查
$TableName= $mypage->getTableName($MenuId);
CheckRule($MenuId,$mypage,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分类管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
$configlist=GetListConfig($mypage,$MenuId);
$configarr=explode(",",$configlist);
$pagecount=$configarr[2]==""?500:$configarr[2];
if(!is_numeric($pagecount)) $pagecount=500;
?>
<p><a href="../menusys/Sys_Add.php?MenuId=<?php echo $_REQUEST["MenuId"];?>" target="_self" class="Link12">添加<?php echo $ArrListConfig[3];?></a>
<table width="99%" align="Left" border="0" cellspacing="1" class="YKTtable" >
<tr ><? echo getTitle($mypage,$_GET["MenuId"]);?></tr>
<?
ClassSys_ShowClass1List($mypage,$_GET["MenuId"],"0",1,1,$pagecount);
?>
<tr>
<td colspan="5" style="background-color:#FFF"><div align="right" style="margin-right:50px;"><?php echo $mypage->showFenPage();?></div></td>
</tr>
</table>
</body>
</html>
| 10npsite | trunk/guanli/system/classsys/Index.php | PHP | asf20 | 1,595 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>单位会员</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<? ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd"); ?>
</body>
</html>
| 10npsite | trunk/guanli/system/cmenbersys/Index.php | PHP | asf20 | 1,022 |
<?php
include_once("../../../global.php");
/**
因为这是记录后台的操作记录,所以,里面的字段不能完全确认,必须得在后台功能配置完成后再修改这里
*/
function addlog($mydb,$username,$content)
{
global $SystemConest;
$tablename="log";
$sql="insert into ".$SystemConest[7].$tablename."(log1,log2,log3,log4) value('".$username."','".$content."',546,".time().")";
$rs=$mydb->db_query($sql);
}
?> | 10npsite | trunk/guanli/system/log/addlog.php | PHP | asf20 | 451 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>日志管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/log/Index.php | PHP | asf20 | 1,027 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>酒店管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/hotel/Index.php | PHP | asf20 | 1,029 |
<? session_start();?>
<!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" />
<title>无标题文档</title>
</head>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
<body>
<?
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/"."inc/ActionFile.Class.php";
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$myfile=new ActionFile();
$FileArray=$myfile->listDirTree($SystemConest[0]."/template","");
?>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<? for($i=0;$i<count($FileArray);$i++)
{
if($i % 4 ==0)
{
?>
<tr>
<? }?>
<td height="78" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="list.php?path=<? echo "/template/".$FileArray[$i];?>"><img src="<? echo "/".$SystemConest[1]."/Iamges/";?>folder.gif" alt="模板风格<? echo $FileArray[$i];?>" border="0"></a></td>
</tr>
<tr>
<td align="center"><? echo $FileArray[$i];?></td>
</tr>
</table>
</td>
<? if($i % 4 !=0)
{?>
</tr>
<?
}
}
?>
</table>
</body>
</html> | 10npsite | trunk/guanli/system/template/index.php | PHP | asf20 | 1,636 |
<? session_start();?>
<!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><link href="../../Inc/Css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<p>当前位置:模板管理>编辑模板页面</p>
<p>
<?
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/"."inc/ActionFile.Class.php";
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$myfile=new ActionFile();
//==================================================当为修改操作时
$action =$_REQUEST["action"];
$path==$_REQUEST["path"];
if($action=="edit")
{
$myfile->CreatFile($_REQUEST["dir"].$_REQUEST["filename"],$myfile->turnWrite($_REQUEST["content"]));
MessgBox("/".$SystemConest[1]."/Iamges/Right.jpg","修改成功!","/".$SystemConest[1]."/system/template") ;
die;
}
if($action!="add")
{
$file=$_REQUEST["file"];
if(!is_file($SystemConest[0].$file))
{
if(is_dir($SystemConest[0].$file))
{
//转入相关文件夹下
gourl("list.php?path=".$file."",1);
}
else
{
die("这不是一个正确的文件");
}
};
$filename=explode("/",$file);
$content=$myfile->turnRead($myfile->readFileContent($SystemConest[0].$file,"1"));
$dir=str_replace($filename[count($filename)-1],"",$file);
}
else
{
$dir=$_REQUEST["dir"];
}
?>
<table width="73%" border="0" cellspacing="0" cellpadding="0" align="center">
<form action="editfilecode.php?action=edit" method="post"><tr>
<td width="21%" height="32">文件名:</td>
<td width="79%"><input name="filename" type="text" value="<? echo $filename[count($filename)-1];?>"> <input type="hidden" value="<? echo $dir;?>" name="dir"></td>
</tr>
<tr>
<td height="169">内容</td>
<td>
<textarea name="content" id="content" cols="80" rows="20"><? echo $content;?></textarea>
</td>
</tr>
<tr>
<td height="25"> </td>
<td height="25"><label>
<input type="submit" name="button" id="button" value="修改" />
</label></td>
</tr>
</form>
</table>
</body>
</html> | 10npsite | trunk/guanli/system/template/editfilecode.php | PHP | asf20 | 2,622 |
<? session_start();?>
<!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><link href="../../Inc/Css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<p>当前位置:模板管理>模板页面</p>
<p>
<?
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/"."inc/ActionFile.Class.php";
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$retuestPath=$_REQUEST["path"];
if ($retuestPath=="" || !is_dir($SystemConest[0].$retuestPath)) die("路径不正确");
$myfile=new ActionFile();
$FileArray=$myfile->listDirTree($SystemConest[0].$retuestPath,"");?>
<a href="editfilecode.php?action=add&dir=<? echo $retuestPath;?>/">添加新文件</a>
<?
for($i=0;$i<count($FileArray);$i++)
{
?>
<div style="line-height:25px; height:25px; margin-left:20px;" align="left">
·<a href="editfilecode.php?file=<? echo $retuestPath."/".$FileArray[$i];?>&path=<? echo $retuestPath;?>"><? echo $FileArray[$i];?></a></td
></div>
<?
}
?>
</body>
</html> | 10npsite | trunk/guanli/system/template/list.php | PHP | asf20 | 1,571 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$MenuId=$_REQUEST["MenuId"];
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>其它栏目管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/columnsys/Index.php | PHP | asf20 | 1,067 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图片管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/pic/Index.php | PHP | asf20 | 1,029 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>支付管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/pay/Index.php | PHP | asf20 | 1,030 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen(MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>统计管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/tongjisys/Index.php | PHP | asf20 | 1,030 |
<? session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.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" />
<title>无标题文档</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$MenuId=$_REQUEST["MenuId"];
//response.write CurrPosition(Cint(MenuId),MyConn.Conn)
$CurrMenuId=$_REQUEST["CurrMenuId"];
if($CurrMenuId=="")
echo ">添加一级栏目";
else
echo ">添加二级栏目";
?>
</p>
<form id="form1" name="form1" method="post" action="Add_Save.php?CurrMenuId=<? echo $CurrMenuId;?>&MenuId=<? echo $_REQUEST["MenuId"];?>">
<p> </p>
<p> </p>
<p> </p>
<table width="95%" border="0" align="center">
<? if($CurrMenuId<>"")
{
?>
<tr>
<td width="35%"><div align="right">一级栏目:</div></td>
<td width="65%"><label>
<? echo $_REQUEST["Menu1Name"];?>
</label></td>
</tr>
<? } ?>
<tr>
<td width="35%"><div align="right">栏目名称:</div></td>
<td width="65%"><label>
<input name="SysMenu1" type="text" size="30" />
</label></td>
</tr>
<tr>
<td><div align="right">栏目功能:</div></td>
<td><? SystemList("","SysMenu2");?></td>
</tr>
<tr>
<td align="right">链接地址:</td>
<td> <input name="urllinks" type="text" size="30" /></td>
</tr>
<tr>
<td><div align="right">排序:</div></td>
<td><label>
<input name="SysMenu3" type="text" value="1" size="10" />
</label></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="保存" />
<input type="button" name="Submit2" value="取消" onClick="window.history.back();"/>
</label></td>
</tr>
</table>
</form>
<div style="margin-left:100px;">1、当链接地址有值时。左边的栏目的链接为此值。</div>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Add.php | PHP | asf20 | 2,565 |
<? session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$CurrMenuId=$_REQUEST["CurrMenuId"];
if($CurrMenuId=="")
$CurrMenuId=0;
$MenuName=$_REQUEST["SysMenu1"];
$MenuOrder=$_REQUEST["SysMenu3"];
if($MenuOrder=="")
$MenuOrder=1;
$StrTemp=$_REQUEST["SysMenu2"];
if(strlen($StrTemp)>0)
{
$MenuSysFile_arr=explode("|",$StrTemp);
$MenuSysFile=$MenuSysFile_arr[0];
$MenuSysName=$MenuSysFile_arr[1];
$MenuSysConfigFile=$MenuSysFile_arr[2];
$TableName=$MenuSysFile_arr[3];
}
$MenuFields[1]=$MenuName;
$MenuFields[2]=$MenuSysFile;
$MenuFields[3]=$CurrMenuId;
$MenuFields[4]=$MenuOrder;
$MenuFields[5]=$MenuSysName;
$MenuFields[6]=$MenuSysConfigFile;
$MenuFields[9]=$TableName;
$MenuFields[12]=$_REQUEST["urllinks"];//栏目链接
//$filesConent="'".$MenuName."','".$MenuSysFile."',".$CurrMenuId.",".$MenuOrder.",'".$MenuSysName."',"."'','','','','',''";
$MyMenuDB=new YYBDB();
$MyMenuDB->TableName="menusys";
$MyMenuDB->ArrFields=$MenuFields;
$MyMenuDB->Add();
//$Returns=$MyMenuDB->db_update_query($MyMenuDB->sCreateSQL);
if($MyMenuDB->Returns>0)
echo "栏目添加成功,<a href=Index.php?MenuId=" .$_REQUEST["MenuId"] . ">返回</a>!";
else
echo "栏目添加失败,<a href=Index.php?MenuId=".$_REQUEST["MenuId"]. ">返回</a>!";
?>
<script language="javascript">
<!--
window.parent.frames.item("leftFrame").location.reload();
-->
</script>
| 10npsite | trunk/guanli/system/menusys/Add_Save.php | PHP | asf20 | 1,822 |
<script src="/Public/jsLibrary/jquery/jquery.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="/<?php echo $SystemConest[1];?>/system/ckeditor/ckeditor.js"></script>
<?php
require_once("UserFunction.php");//加载特定项目函数库
//请在 文件$dirname."/".$guanliDir."/UIFunction/adminClass.php";后引用
$MenuId=isset($_REQUEST["MenuId"])?$_REQUEST["MenuId"]:"";
//获取表单列表配置
function GetListConfig($mydb,$MenuId)
{
if($MenuId=="") return "";
global $SystemTablename;
global $SystemConest;
$result=$mydb->db_select_query("Select ".$SystemTablename[2]."10 from ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=".$MenuId);
$rs=$mydb->db_fetch_array($result);
if($rs) return $rs[0];
}
/**
* 获取menuid所在的字段列号
*/
function getMenuidofFieldNum($mydb,$MenuId)
{
global $SystemTablename;
global $SystemConest;
$tl="";
$result=$mydb->db_select_query("select * from ".$SystemConest[7]."menusys where menusys0=".$MenuId);
//die("select * from ".$SystemConest[7]."menusys where menusys0=".$MenuId);
if($result) $rs=$mydb->db_fetch_array($result);
if($rs) $tl=$rs[7];
if($tl!="")
{
$arr=explode(",", $tl);
foreach($arr as $k=>$v)
{
if(strstr($v,"MenuId|")) return $k;
}
}
return 0;
}
//显示一级栏目列表
function ShowMenu1List($MenuId)
{
$myclass=new YYBDB();
global $SystemTablename;
global $SystemConest;
$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=0 Order by ".$SystemTablename[2]."4 Asc";
$rsc=$myclass->db_select_query($sqlrs);
//$MenuId=$MenuId;
?>
<table width="99%" align="Left" border="0" cellspacing="1" class="YKTtable">
<tr style="background-image:url(../../Iamges/Top_3_Line.jpg); color:#CCC" Height="25">
<th width="7%"><div align="center">ID</div></th>
<th width="15%"><div align="center">栏目名称[序号]</div></th>
<th width="25%"><div align="center">系统名称</div></th>
<th ><div align="center">系统入口</div></th>
<th ><div align="center">操作</div></th>
</tr>
<?
while($rs=$myclass->db_fetch_array($rsc))
{
?>
<tr class="YKTtr" Height="25">
<td><div align="center"><? echo $rs[0];?></div></td>
<td> <? echo $rs[1];?>[<? echo $rs[4]; ?>] </td>
<td><? echo $rs[5]; ?> </td>
<td><? echo $rs[2]; ?> </td>
<td ><div align="center"><a href="Add.php?MenuId=<? echo $MenuId; ?>&CurrMenuId=<? echo $rs[0];?>&Menu1Name=<? echo $rs[1];?>" class="Linktr12">添加二级栏目</a> | <a href="Update.php?MenuId=<? echo $MenuId;?>&CurrMenuId=<? echo $rs[0];?>&Menu1Name=<? echo $rs[1];?>" class="Linktr12">修改</a> | <a href="Delete.php?MenuId=<? echo $MenuId;?>&CurrMenuId=<? echo $rs[0];?>&Menu1Name=<? echo $rs[1];?>" class="Linktr12">删除</a></div></td>
</tr>
<?
//显示二级栏目列表
ShowMenu2List($MenuId,$rs[0],$rs[1]);
}
echo "</table>";
}
//显示二级栏目列表函数
function ShowMenu2List($MenuId,$Menu1id,$Menu1Name)
{
//Sub ShowMenu2List(MenuId,Conn,Menu1Name)
if(strlen($MenuId)<1)
return;//退出
$myclass=new YYBDB();
global $SystemConest;
global $SystemTablename;
$sqlrs2="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=".$Menu1id." Order by ".$SystemTablename[2]."4 ASC";
$rsc2=$myclass->db_select_query($sqlrs2);
while($rs2=$myclass->db_fetch_array($rsc2))
{
if(strlen($rs2[2])<1)
{
?>
<tr class="YKTtd" Height="25">
<td><div align="center"><? echo $rs2[0];?></div></td>
<td> <? echo $rs2[1];?>[<? echo $rs2[4];?>] </td>
<td> </td>
<td> </td>
<td><div align="center"> <a href="Update.php?MenuId=<? echo $rs2[3];?>&CurrMenuId=<? echo $rs2[0];?>&Menu1Name=<? echo $Menu1Name;?>" class="Link12">修改</a> | <a href="Delete.php?MenuId=<? echo $rs2[3];?>&CurrMenuId=<? echo $rs2[0];?>&Menu1Name=<? echo $Menu1Name;?>" class="Link12">删除</a> | 设置 | 复制栏目 </div></td>
</tr>
<? }
else
{
?>
<tr class="YKTtd" Height="25">
<td><div align="center"><? echo $rs2[0];?></div></td>
<td> <? echo $rs2[1];?>[<? echo $rs2[4];?>] </td>
<td> <? echo $rs2[5];?> </td>
<td> <? echo $rs2[2];?> </td>
<td><div align="center"> <a href="Update.php?MenuId=<? echo $rs2[3];?>&CurrMenuId=<? echo $rs2[0];?>&Menu1Name=<? echo $Menu1Name;?>" class="Link12">修改</a> | <a href="Delete.php?MenuId=<? echo $rs2[3];?>&CurrMenuId=<? echo $rs2[0];?>&Menu1Name=<? echo $Menu1Name;?>" class="Link12">删除</a> |<a href="Config.php?CurrMenuId=<? echo $rs2[0];?>&DBName=<? echo $rs2[9];?>" class="Link12">设置</a> |<a href="CopyColumn.php?Id=<? echo $rs2[0];?>" class="Link12">复制栏目</a> </div></td>
</tr>
<?
}
}
}
//获得一级类别下是否有二级栏目
function GetMenu2Num($CurrMenuId)
{
$mydb=new YYBDB();
global $SystemTablename;
global $SystemConest;
$sqlrs="select * from ".$SystemConest[7].$SystemTablename[2]." where ".$SystemTablename[2]."3=".$CurrMenuId;
$rs=$mydb->db_select_query($sqlrs);
return $mydb->db_num_rows($rs);
}
//生成表单配置
function CreateAllConfig($FieldCount)
{
$sCreateAllConfig="";
if($FieldCount==0)
return "";
for($i=0;$i<$FieldCount;$i++)
{
$sCreateAllConfig=$sCreateAllConfig . CreateConfig($i) . ",";
}
$sCreateAllConfig=substr($sCreateAllConfig,0,-1);
return $sCreateAllConfig;
}
//生成表单配置
function CreateConfig($i)
{
$TabelName=$_REQUEST["Name_".$i];
$InputType=$_REQUEST["Input_" .$i];
$ClassType=$_REQUEST["Class_" .$i];
$Mark=$_REQUEST["Mark_" .$i];
$Show=$_REQUEST["Show_".$i];
$Check=$_REQUEST["Check_" .$i];
$TabelName=str_replace(",","",$TabelName);
$TabelName=str_replace("|","",$TabelName);
$Mark=str_replace(",",",",$Mark);
$Mark=str_replace("|","|",$Mark);
$Check=str_replace(",","",$Check);
$Check=str_replace("|","",$Check);
$sCreateConfig=$TabelName . "|" . $InputType . "|" . $ClassType . "|" . $Mark . "|" . $Show . "|" . $Check ;
return $sCreateConfig;
}
//生成列表配置
function CreateInfoList()
{
$InfoFieldList=$_REQUEST["FieldList"];
$InfoFieldList=str_replace(",","",$InfoFieldList);
$InfoAdd=$_REQUEST["checkbox1"];
$InfoUpdate=$_REQUEST["checkbox2"];
$InfoDelete=$_REQUEST["checkbox3"];
$InfoShenHe=$_REQUEST["checkbox4"];
$InfoListPage=$_REQUEST["checkbox5"];
$InfoPageSize=$_REQUEST["PageSize"];
$InfoPageSize=str_replace(",","",$InfoPageSize);
$FieldsPaixu=$_REQUEST["FieldsPaixu"];
$listPaixu=$_REQUEST["listPaixu"];
$editgotourl=$_REQUEST["editgotourl"];
if(is_numeric($InfoPageSize)==false)
$InfoPageSize=10;
$InfoTitle=$_REQUEST["InfoTitle"];
$InfoTitle=str_replace(",","",$InfoTitle);
$sCreateInfoList=$InfoFieldList . ",". $InfoAdd . "|" . $InfoUpdate . "|" . $InfoDelete . "|" .$InfoShenHe ."|". $InfoListPage . "," . $InfoPageSize . "," . $InfoTitle .",".$FieldsPaixu.",".$listPaixu.",".$editgotourl;
return $sCreateInfoList;
}
//获取表单配置
function GetFormConfig($mydb,$MenuId)
{
$sGetFormConfig="";
if($MenuId=="")
return "";
global $SystemTablename;
global $SystemConest;
$sqlrs="Select ".$SystemTablename[2]."7 from ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=" .$MenuId;
$rsc=$mydb->db_select_query($sqlrs);
$rs=$mydb->db_fetch_array($rsc);
if($mydb->db_num_rows($rsc)>0)
return $rs[0];
else
return "";
}
//获取表单配置表里的任意一字段的值
function GetFormConfigAnyOne($mydb,$MenuId,$field)
{
//$field 为想要返回的字段序号或字段名称
$sGetFormConfig="";
if($MenuId=="")
return "";
global $SystemTablename;
global $SystemConest;
$sqlrs="Select * from ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=" .$MenuId;
$rsc=$mydb->db_select_query($sqlrs);
$rs=$mydb->db_fetch_array($rsc);
if($mydb->db_num_rows($rsc)>0)
return $rs[$field];
else
return "";
}
//获取字段元素数组排序
function getFieldsPaixuArr($mydb,$MenuId)
{
$Fieldspaixu=GetFormConfigAnyOne($mydb,$MenuId,10);
if(strlen($Fieldspaixu)>0)
{
$FieldsPArr=explode(",",$Fieldspaixu);
$Fieldspaixu=$FieldsPArr[4];
$FeildsArr=explode("/",$Fieldspaixu);
return $FeildsArr;
}
else
{
return "";
}
}
/*================================================
' 表单配置相关函数
' --------------------------
'
' '加载空白表单
'================================================
*/
function LoadBankForm($mydb,$DBName)
{
if($DBName=="") return "";
global $SystemConest;
$sqlrs="Select * from ".$SystemConest[7].$DBName." limit 1";
$rsc=$mydb->db_select_query($sqlrs);
$result=$mydb->db_query($sqlrs);
$fieldsCount=$mydb->db_num_fields($result);
?>
<input type="hidden" name="FieldCount" value="<? echo $fieldsCount;?>"/>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="YKTtable">
<tr>
<td width="30" height="25" class="YKTth"><div align="center">序号</div></td>
<td height="25" class="YKTth"><div align="center">名称</div></td>
<td width="79" height="25" class="YKTth"><div align="center">输入类型</div></td>
<td width="50" height="25" class="YKTth"><div align="center">关联数据</div></td>
<td height="25" class="YKTth"><div align="center">说明</div></td>
<td width="70" height="25" class="YKTth"><div align="center">字段名</div></td>
<td width="50" height="25" class="YKTth"><div align="center">字段类型</div></td>
<td width="40" height="25" class="YKTth"><div align="center">开/关</div></td>
<td height="25" class="YKTth"><div align="center">数据验证</div></td>
</tr>
<?
for($i=0;$i<$fieldsCount;$i++)
{
$Fields=$mydb->db_fetch_field($result);
if($Fields->primary_key!=1)
{
?>
<tr onMouseOver = "this.style.backgroundColor = '#EEEEEE'" onMouseOut = "this.style.backgroundColor = ''">
<td height="25" class="YKTtd"><div align="center"><? echo $i;?></Div></td>
<td height="25" class="YKTtd"><label>
<div align="center">
<input type="text" name="<? echo "Name_" . $i; ?>" value="" size="10"/>
</div>
</label></td>
<td height="25" class="YKTtd"><label>
<div align="center">
<select name="<? echo "Input_" . $i; ?>" onchange="javascript:GetClassList(<? echo "Div_" . $i;?>,this.value,'<? echo "Class_". $i; ?>');" >
<option value="1" >文本框</option>
<? if($Fields->type=="int")
{ ?>
<option value="3" >单选框</option>
<option value="2" >下拉框</option>
<option value="9" >新建ID</option>
<option value="18" >列表属性</option>
<? }?>
<? if($Fields->type=="string" || $Fields->type=="blob")
{
?>
<option value="4" >复选框</option>
<option value="5" >上传框</option>
<option value="6" >编辑器</option>
<option value="10" >审核ID</option>
<option value="17" >文本域</option> <!-- { 审核状态(0/1)|审核人ID|审核时间 } -->
<option value="19" >模板文件</option>
<option value="20" >静态地址</option>
<option value="21" >单项多分</option>
<? }?>
<? if($Fields->type=="string" || $Fields->type=="blob" || $Fields->type=="datetime")
{ ?>
<option value="8" >日期值</option>
<? }?>
<option value="7" >隐藏值</option>
<option value="11" >栏目ID</option>
<option value="14" >主表ID</option>
<option value="15" >从表ID</option>
<option value="16" >密码框</option>
</select>
</div>
</label></td>
<td height="25" class="YKTtd"><div align="center" id="<? echo "Div_" . $i;?>" date=""></div></td>
<td height="25" class="YKTtd"><div align="center">
<input type="text" name="<? echo "Mark_" . $i; ?>" value=""/>
</div></td>
<td height="25" class="YKTtd"><div align="center"><? echo $Fields->name;?></div></td>
<td height="25" class="YKTtd"><div align="center"><? echo GetFieldType($Fields->type);?></div></td>
<td height="25" class="YKTtd"><div align="center">
<select name="<? echo "Show_" . $i; ?>">
<option value="1">关</option>
<option value="0">开</option>
</select>
</div></td>
<td height="25" class="YKTtd"><div align="center">
<input type="text" name="<? echo "Check_" . $i; ?>" value="" size="20"/>
</div></td>
</tr>
<?
}
}
?>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="YKTtable">
<tr>
<td width="18%" class="YKTtd"><div align="right">显示的字段列表:</div></td>
<td colspan="2" class="YKTtd"><input name="FieldList" type="text" id="FieldList" size="50">
形式 字段1/宽度/对齐方式|字段n/宽度/对齐方式</td>
</tr>
<tr>
<td class="YKTtd"><div align="right">功能列表:</div></td>
<td width="47%" class="YKTtd"><label>
<input name="checkbox1" type="checkbox" value="1">
添加
<input type="checkbox" name="checkbox2" value="1">
修改
<input type="checkbox" name="checkbox3" value="1">
删除
<input type="checkbox" name="checkbox4" value="1">
审核
<input type="checkbox" name="checkbox5" value="1">
翻页</label></td>
<td width="35%" class="YKTtd"><label>
<input name="PageSize" type="text" id="PageSize" size="6" value="10">
</label>
条/页 *每页显示的记录条数 </td>
</tr>
<tr>
<td class="YKTtd"><div align="right">在各页面显示的标题</div></td>
<td colspan="2" class="YKTtd"><input name="InfoTitle" type="text" id="InfoTitle" size="50"></td>
</tr>
<tr><td height="21" align="right" class="YKTtd">字段排序:</td><td><span class="YKTtd">
<input name="FieldsPaixu" type="text" id="FieldsPaixu" size="50" value="" />
</span></td>
<td class="YKTtd">最前面的排在第一位如“1/2/3/4/5”不需要的可以不写</td></tr>
</table>
</p>
<div align="center">
<label>
<input type="submit" name="Submit" value=" 保存 " />
<input type="button" name="Submit2" value="取消" onClick="javascript:window.history.back();"/>
</label>
</div>
<p> </p>
<?
}
//加载修改表单
function LoadUpdateForm($mydb,$MenuId,$arrFormConfig,$DBName)
{
global $SystemConest;
global $SystemTablename;
if($DBName=="") return "";
$sqlrs="Select * from ".$SystemConest[7].$DBName." order by ".$DBName."0 limit 1";
$rsc=$mydb->db_query($sqlrs);
$fieldsCount=$mydb->db_num_fields($rsc);
$i=0;
?>
<input type="hidden" name="FieldCount" value="<?php echo $fieldsCount;?>"/>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="YKTtable">
<tr>
<td width="30" height="25" class="YKTth"><div align="center">序号</div></td>
<td height="25" class="YKTth"><div align="center">名称</div></td>
<td width="79" height="25" class="YKTth"><div align="center">输入类型</div></td>
<td width="50" height="25" class="YKTth"><div align="center">关联数据</div></td>
<td height="25" class="YKTth"><div align="center">说明</div></td>
<td width="70" height="25" class="YKTth"><div align="center">字段名</div></td>
<td width="50" height="25" class="YKTth"><div align="center">字段类型</div></td>
<td width="40" height="25" class="YKTth"><div align="center">开/关</div></td>
<td height="25" class="YKTth"><div align="center">数据验证</div></td>
</tr>
<?php
for($i=0;$i<$fieldsCount;$i++)
{
$FieldName=$mydb->db_fetch_field($rsc);
if($FieldName->primary_key!=1)
{
if($i>count($arrFormConfig))
{
$ArrField=explode("|"," | | | | |");
}
else
{
if($arrFormConfig[$i]!="")
{
$ArrField=explode("|",$arrFormConfig[$i]);
}
}
?>
<tr onMouseOver = "this.style.backgroundColor = '#cccccc'" onMouseOut = "this.style.backgroundColor = ''" >
<td height="25" class="YKTtd"><div align="center"><?php echo $i;?></Div></td>
<td height="25" class="YKTtd"><label>
<div align="center">
<input type="text" name="<?php echo "Name_$i";?>" value="<?php echo $ArrField[0];?>" size="10"/>
</div>
</label></td>
<td height="25" class="YKTtd"><label>
<div align="center">
<select name="<?php echo "Input_$i"; ?>" onchange="javascript:GetClassList(<?php echo "Div_$i";?>,this.value,'<?php echo "Class_$i"; ?>');" >
<option value="1" <?php if($ArrField[1]=="1") echo "selected='selected'"; ?> >文本框</option>
<?php if($FieldName->type=="int")
{?>
<option value="3" <? if($ArrField[1]=="3") echo "selected='selected'"; ?>>单选框</option>
<option value="2" <? if($ArrField[1]=="2") echo "selected='selected'"; ?>>下拉框</option>
<option value="9" <? if($ArrField[1]=="9") echo "selected='selected'"; ?>>发布ID</option>
<option value="18" <? if($ArrField[1]=="18") echo "selected='selected'"; ?>>列表属性</option>
<option value="8" <? if($ArrField[1]=="8") echo "selected='selected'"; ?>>日期值</option>
<option value="22" <? if($ArrField[1]=="22") echo "selected='selected'"; ?>>模块列表</option>
<? }?>
<? if($FieldName->type=="string" || $FieldName->type=="blob" )
{
?>
<option value="4" <? if($ArrField[1]=="4") echo "selected='selected'"; ?>>复选框</option>
<option value="5" <? if($ArrField[1]=="5") echo "selected='selected'"; ?>>上传框</option>
<option value="6" <? if($ArrField[1]=="6") echo "selected='selected'"; ?>>编辑器</option>
<option value="10" <? if($ArrField[1]=="10") echo "selected='selected'"; ?>>审核ID</option>
<option value="17" <? if($ArrField[1]=="17") echo "selected='selected'"; ?>>文本域</option>
<option value="19" <? if($ArrField[1]=="19") echo "selected='selected'"; ?>>模板文件</option>
<option value="20" <? if($ArrField[1]=="20") echo "selected='selected'"; ?>>静态地址</option>
<option value="21" <? if($ArrField[1]=="21") echo "selected='selected'"; ?>>单项多分</option>
<option value="23" <? if($ArrField[1]=="23") echo "selected='selected'"; ?>>标识框</option>
<option value="24" <? if($ArrField[1]=="24") echo "selected='selected'"; ?>>地图坐标框</option>
<option value="25" <? if($ArrField[1]=="25") echo "selected='selected'"; ?>>价格日历框</option>
<? }?>
<?php if($FieldName->type=="string" || $FieldName->type=="blob" || $FieldName->type=="datetime" || $FieldName->type=="real")
{
?>
<option value="8" <? if($ArrField[1]=="8") echo "selected='selected'"; ?>>日期值</option>
<?php }?>
<option value="7" <? if($ArrField[1]=="7") echo "selected='selected'"; ?>>隐藏值</option>
<option value="11" <? if($ArrField[1]=="11") echo "selected='selected'"; ?>>栏目ID</option>
<option value="14" <? if($ArrField[1]=="14") echo "selected='selected'"; ?>>主表ID</option>
<option value="15" <? if($ArrField[1]=="15") echo "selected='selected'"; ?>>从表ID</option>
<option value="16" <? if($ArrField[1]=="16") echo "selected='selected'"; ?>>密码框</option>
</select>
</div>
</label></td>
<td height="25" class="YKTtd"><div align="center" id="<?php echo "Div_$i"; ?>" date=""><?php
if($ArrField[1]=="2" || $ArrField[1]=="3" || $ArrField[1]=="4"){
echo CreateClassList($mydb,"Class_" .$i,$ArrField[2]);
}
if($ArrField[1].""=="18"){
echo CreateClassList($mydb,"Class_" .$i,$ArrField[2],$SystemTablename[5]);
}
if($ArrField[1]=="22"){
echo CreateClassList($mydb,"Class_" .$i,$ArrField[2],$SystemTablename[4]);
}
?></div></td>
<td height="25" class="YKTtd"><div align="center">
<input type="text" name="<?php echo "Mark_".$i; ?>" id="<?php echo "Mark_".$i; ?>" value="<?php echo htmlspecialchars($ArrField[3],ENT_QUOTES);?>"/>
</div></td>
<td height="25" class="YKTtd"><div align="center"><?php echo $FieldName->name;?></div></td>
<td height="25" class="YKTtd"><div align="center"><?php echo GetFieldType($FieldName->type);?></div></td>
<td height="25" class="YKTtd"><div align="center">
<select name="<?php echo "Show_" .$i; ?>">
<option value="0" <?php if( $ArrField[4]=="0")
{
echo "selected='selected'";
} ?>>开</option>
<option value="1" <?php if( $ArrField[4]=="1")
{
echo "selected='selected'";
} ?>>关</option>
</select>
</div></td>
<td height="25" class="YKTtd"><div align="center">
<input type="text" name="<?php echo "Check_" .$i; ?>" value="<?php echo $ArrField[5];?>" size="20"/>
</div></td>
</tr>
<?php
}
//End IF
}
?>
</table>
<?php
$StrListConfig=GetListConfig($mydb,$MenuId);
if($StrListConfig==NULL)
{
$ArrListConfig=explode(",",",,,,,");
$ArrPower=explode("|","||||");
}
else
{
$ArrListConfig=explode(",",$StrListConfig);
$ArrPower=explode("|",$ArrListConfig[1]);
}
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="YKTtable">
<tr>
<td width="18%" class="YKTtd"><div align="right">显示的字段列表:</div></td>
<td colspan="2" class="YKTtd"><input name="FieldList" type="text" id="FieldList" size="50" value="<? echo $ArrListConfig[0];?>">
形式 字段1/宽度/对齐方式|字段n/宽度/对齐方式</td>
</tr>
<tr>
<td class="YKTtd"><div align="right">功能列表:</div></td>
<td width="47%" class="YKTtd"><label>
<input name="checkbox1" type="checkbox" value="1" <? if($ArrPower[0]=="1") echo "checked='checked'" ?>>
添加
<input type="checkbox" name="checkbox2" value="1" <? if($ArrPower[1]=="1") echo "checked='checked'" ?>>
修改
<input type="checkbox" name="checkbox3" value="1" <? if($ArrPower[2]=="1") echo "checked='checked'" ?>>
删除
<input type="checkbox" name="checkbox4" value="1" <? if($ArrPower[3]=="1") echo "checked='checked'" ?>>
审核
<input type="checkbox" name="checkbox5" value="1" <? if($ArrPower[4]=="1") echo "checked='checked'" ?>>
翻页</label></td>
<td width="35%" class="YKTtd"><label>
<input name="PageSize" type="text" id="PageSize" size="6" value="<? echo $ArrListConfig[2];?>">
</label>
条/页 *每页显示的记录条数 </td>
</tr>
<tr>
<td class="YKTtd"><div align="right">在各页面显示的标题</div></td>
<td colspan="2" class="YKTtd"><input name="InfoTitle" type="text" id="InfoTitle" size="50" value="<? echo $ArrListConfig[3];?>">
<label>
<input name="MenuShow" checked="checked" type="radio" value="0">
在栏目中显示 <input name="MenuShow" <? if(IsMenuShow($mydb,$MenuId)==false) echo "checked='checked'";?> type="radio" value="1">
不在栏目中显示
</label> </td>
</tr>
<tr><td height="21" align="right" class="YKTtd">字段排序:</td><td class="YKTtd"><span class="YKTtd">
<input name="FieldsPaixu" type="text" id="FieldsPaixu" size="50" value="<? echo $ArrListConfig[4];?>" />
</span></td><td class="YKTtd">最前面的排在第一位如“1/2/3/4/5”不需要的可以不写</td></tr>
<tr><td height="21" align="right" class="YKTtd">列表排序:</td><td class="YKTtd"><span class="YKTtd">
<input name="listPaixu" type="text" id="listPaixu" size="50" value="<? echo $ArrListConfig[5];?>" />
</span></td>
<td class="YKTtd">就是后台记录列表时的order by的排序如:news1 desc/news2 desc</td></tr>
<tr>
<td height="21" align="right" class="YKTtd">修改或添加提交跳转地址:</td>
<td class="YKTtd"><span class="YKTtd">
<input name="editgotourl" type="text" id="editgotourl" size="50" value="<? echo $ArrListConfig[6];?>" />
</span></td>
<td class="YKTtd">在记录修改或添加提交后跳转到的地址,其中"@"表示当前这条记录,"{MenuId}"表示Menuid,{PMID}表示PMID的值,值中不能有逗号</td></tr>
</table>
</p>
<div align="center">
<label>
<input type="submit" name="Submit" value=" 保存 " />
<input type="button" name="Submit2" value="取消" onClick="javascript:window.history.back();"/>
</label>
</div>
<p> </p>
<?
}
//======================================================================================
//是否在栏目中显示
function IsMenuShow($mydb,$MenuId)
{
$IsMenuShow=true;
global $SystemTablename;
global $SystemConest;
$sqlrs="Select ".$SystemTablename[2]."11 from ".$SystemConest[7].$SystemTablename[2]." where ".$SystemTablename[2]."0=" .$MenuId;
$rsc=$mydb->db_select_query($sqlrs);
$rs=$mydb->db_fetch_array($rsc);
if($mydb->db_num_rows($rsc)>0)
{
if($rs[0]=="1") $IsMenuShow=false;
}
return $IsMenuShow;
}
function GetFieldType($typeanme)
{
$FieldTypeName="";
switch ($typeanme) {
case "int":
$FieldTypeName="数字";
break;
case "real":
$FieldTypeName="长数字";
break;
case "string":
$FieldTypeName="文本";
break;
case "blob":
$FieldTypeName="备注";
break;
case "datetime":
$FieldTypeName="日期";
break;
}
return $FieldTypeName;
}
//保存表单配置
function FormConfigSave($mydb,$MenuId,$ConfigValue,$MenuShow)
{
global $SystemTablename;
global $SystemConest;
if($MenuId=="") return "";
$MenuFields[0]=$MenuId;
$MenuFields[7]=$ConfigValue;
$MenuFields[10]=CreateInfoList();
$MenuFields[11]=$MenuShow;
$FieldsCount=count($MenuFields);
$mydb->ArrFields=array_values($MenuFields);
$mydb->TableName=reTableName($mydb,$MenuId);
$mydb->countTableName=$SystemTablename[2];
$mydb->filesConent=$FieldCount-1;
$sqlrs="update ".$SystemConest[7].$mydb->countTableName." set ".$SystemTablename[2]."7='".$MenuFields[7]."',".$SystemTablename[2]."10='".$MenuFields[10]."',".$SystemTablename[2]."11='".$MenuFields[11]."' where ".$SystemTablename[2]."0=".$MenuFields[0];
$mydb->db_update_query($sqlrs);
}
//返回模块数据库表名
function reTableName($mydb,$MenuId)
{
global $SystemTablename;
global $SystemConest;
$sqlrs="Select ".$SystemTablename[2]."0,".$SystemTablename[2]."9 From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=$MenuId Order by ".$SystemTablename[2]."0";
$rsc=$mydb->db_select_query($sqlrs);
$rs=$mydb->db_fetch_array($rsc);
if($mydb->db_num_rows($rsc)>0)
{
return $rs["".$SystemTablename[2]."9"];
}
else
return "";
}
//获取菜单数
function GetMenuNum($MenuId,$mydb,$UserID)
{
global $SystemTablename;
global $SystemConest;
$GetMenuNum=-1;
if(strlen($MenuId)==0)
{
return $GetMenuNum;
}
$GetMenuNum=0;
$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=" . $MenuId;
$rsc=$mydb->db_select_query($sqlrs);
$GetMenuNum=$mydb->db_num_rows($rsc);
return $GetMenuNum;
}
//显示左边菜单 MenuSys3=0 表示是一级栏目
function ShowMenu($mydb,$UserID)
{
global $SystemTablename;
global $SystemConest;
$i=1;
$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=0 Order by ".$SystemTablename[2]."4";
$rsc=$mydb->db_select_query($sqlrs);
while($rs1=$mydb->db_fetch_array($rsc))
{
if(Menu2ReadRule($rs1[0],$mydb,$UserID))
{
?>
<div align="left"><A href="#" onClick="javascript:expandIt(<? echo $i;?>); return false"><table width="130" border="0" cellpadding="0" cellspacing="0" style=" cursor:hand; margin-top:3px; margin-left:-3px;">
<tr>
<td class="menu_1"> <img src="Iamges/tubiao_yudian.gif" width="7" height="7" /> <? echo $rs1[1];?></td>
</tr>
</table>
</A></div>
<?
ShowMenu2($rs1[0],$mydb,$i,$UserID);
$i=$i+1;
}
}
//=========================================================================增加其它管理菜单开始
?>
<div id="System_Child_<? echo $i;?>" class="child" style="margin-top:3px;"></div>
<?
//$i=$i+1;
//============================================================================增加其它管理菜单结束
return $i;
}
//获取用户权限值
function GetUserRule($strRules,$UserID)
{
$GetUserRule=0;
if($strRules=="")
return false;
if(strlen($strRules)>1)
{
$ArrRules=explode(",",$strRules);
foreach($ArrRules as $Rule)
{
$ArrRuleItem=explode("|",$Rule);
if($ArrRuleItem[0]==$UserID)
$GetUserRule=$ArrRuleItem[1];
}
}
return $GetUserRule;
}
//显示2级菜单
function ShowMenu2($MenuId,$mydb,$i,$UserID)
{
global $SystemConest;
global $SystemTablename;
if($MenuId=="")
return;
$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=$MenuId Order by ".$SystemTablename[2]."4";
$rsc=$mydb->db_select_query($sqlrs);?>
<div id="System_Child_<? echo $i;?>" class="child"><table width="120" border="0" cellpadding="2" cellspacing="0" style="margin-top:3px;">
<?php
while($Menu2Rs=$mydb->db_fetch_array($rsc))
{
if(GetReadRule(GetUserRule($Menu2Rs[8],$UserID)) || $_SESSION["Login"][1]==$SystemConest[2])
{
if(strlen(trim($Menu2Rs[2]))==0)
{
?>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="12" align="center" class="Menu12W"> <img src="Iamges/tubiao_yudian.png" width="7" height="7" /> <?php $Menu2Rs[1];?></td>
</tr>
</table>
</td>
</tr>
<?php
}
else
{
?>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="12" align="center"> <img src="Iamges/tubiao_yudian.png" width="7" height="7" />
<?php
global $SystemConest;
$temp=$Menu2Rs[2]."?MenuId=".$Menu2Rs[0];
if(strlen($Menu2Rs[12])>4) $temp=str_replace("{houtaipath}",$SystemConest[1],$Menu2Rs[12]);
?>
<a href="<?php echo $temp; ?>" target="mainFrame" class="Menu12W"><?php echo $Menu2Rs[1];?></a></td>
</tr>
</table>
</td>
</tr>
<?php
}
}
}?>
</table>
</div>
<?php
}
//显示当前位置
function CurrPosition($MenuId,$mydb)
{
global $SystemTablename;
global $SystemConest;
if(strlen($MenuId)<1) return "";
$MenuFields[0]=(int)($MenuId);
$mydb->ArrFields=$MenuFields;
$rsc=$mydb->db_select_query("select * from ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=".$MenuId);
$num=$mydb->db_num_rows($rsc);
if($num==0) return "";
$rs=$mydb->db_fetch_array($rsc);
if($rs[3]<>0)
{
return "当前位置:".CurrPrePosition((int)($rs[3]),$mydb).">".$rs[1];
}
else
{
return $rs[1];
}
}
//获取上级位置
function CurrPrePosition($MenuId,$mydb)
{
global $SystemTablename;
global $SystemConest;
if(strlen($MenuId)==0) return "";
$MenuFields[0]=$MenuId;
$mydb->ArrFields=$MenuFields;
$rsc=$mydb->db_select_query("Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=".$MenuId);
$num=$mydb->db_num_rows($rsc);
if($num==0) return "";
$rs=$mydb->db_fetch_array($rsc);
return $rs[1];
}
//=============================================
// 创建表单字段
//---------------------------------------------
//' StrField 字段配置参数
//' Conn 数据库连接
//' FieldName 字段名称
//' i 相同字段第几个
//' FieldValue 字段值
//'=============================================
function CreateField($StrField,$mydb,$FieldName,$i,$FieldValue,$width1,$width2,$Style,$Style1,$rsid="")
{
$HiddenValue="";
$FieldTypeArr=explode("|",$StrField);
$FieldType=$FieldTypeArr[1];
switch ($FieldType)
{
case "1":
TextBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1,$rsid);
break;
case "2":
ListBox($StrField,$mydb,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "3":
RadioBox($StrField,$mydb,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "4":
Checkbox($StrField,$mydb,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "5":
PictureBox($StrField,$FieldName,$i,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "6":
EditBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "7":
HiddenBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "8":
DateBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "9":
FaBuIDBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "10":
ShenHeIDBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "11":
MenuIdBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "14":
ZhubiaoBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "16":
PasswordBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "17":
TextAreaBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "18":
ListProperty($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "19":
Moban($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "20":
JingTaihtml($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "21":
danxiangduofen($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "22":
Pricelist($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "23":
biaozhikuang($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "24":
dituzhubiaozhi($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
case "25":
jiagerili($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1);
break;
}
}
//价格日历框-25
function jiagerili($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1,$thisrsid="")
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<? echo $Style;?>">
<input type="button" value="点击显示日历编辑" id="show_<?php echo $FieldName;?>_rili">
<div style="display:none" id="<?php echo $FieldName;?>_rili" name="<?php echo $FieldName;?>_rili">
<iframe width="800" height="380" src="/inc/calendarprice.php?MenuId=<?php echo $_REQUEST["MenuId"];?>&tid=<?php echo $_REQUEST["ID"];?>&fieldid=<?php echo getsubstr($FieldName,"/[\d]+$/");?>" frameborder="0" scrolling="no" ></iframe>
<br><span id="<?php echo $FieldName;?>_Msg"> <?php echo $ArrField[3];?></span>
</div>
</td>
</tr>
<script language="javascript">
$(document).ready(function(){
$("#show_<?php echo $FieldName;?>_rili").bind("click",function(){
if($("#<?php echo $FieldName;?>_rili").is(":visible")){
$("#<?php echo $FieldName;?>_rili").hide("slow");
$(this).attr("value","点击显示日历编辑");
}else{
$("#<?php echo $FieldName;?>_rili").show("slow");
$(this).attr("value","点击关闭日历编辑");
}
});
});
</script>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//地图坐标值-24
function dituzhubiaozhi($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1,$thisrsid="")
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<? echo $Style;?>">
<input type="text" onclick="showcooseditu('<?php echo $FieldName;?>')" class="<?php echo $Style1;?>" value="<?php echo $FieldValue;?>" name="<?php echo $FieldName?>" id="<?php echo $FieldName?>">
<span id="<?php echo $FieldName;?>_Msg"> <?php echo $ArrField[3];?></span>
调用google地图
<div>
<div id="map_canvas_<?php echo $FieldName;?>" style="width : 400px;height : 300px; display:none;"></div>
<script type="text/javascript">
function showcooseditu(){
$("#map_canvas_<?php echo $FieldName;?>").show();
$("#sekword_<?php echo $FieldName;?>").show();
initialize("<?php echo $FieldName;?>","<?php echo $FieldValue;?>");
}
</script>
<div style="display:none" id="sekword_<?php echo $FieldName;?>">输入地名搜索:<input type="text" value="" name="kwordditu_<?php echo $FieldName;?>" id="kwordditu_<?php echo $FieldName;?>">
<input type="button" value="搜 索" name="sditu_<?php echo $FieldName;?>" id="sditu_<?php echo $FieldName;?>" onclick="searchAddress('<?php echo $FieldName;?>')">
</div>
</div>
</td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//标识框-23
function biaozhikuang($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1,$thisrsid="")
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<? echo $Style;?>">
<?php
TturntoFunandField($ArrField[5],$FieldName,$value,$FieldValue,$Style1,$FieldType,$thisrsid);//生成表单属性项
?>
<span id="<?php echo $FieldName;?>_Msg"> <?php echo $ArrField[3];?></span></td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//单项多分---21 像线路的出行天数,第一天的标题是什么内容是什么,第二天的标题是什么内容是什么,第三天的标题是什么内容是什么..... 但内容都在一个字段里
function danxiangduofen($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
global $SystemConest;
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td class="<? echo $Style;?>" valign="top"><br><div align="right"><? echo $ArrField[0];?>:</div>
<div align="right">
<span id="<? echo $FieldName;?>_Msg" name="<? echo $FieldName;?>_Msg"> <?php echo $ArrField[3];?></span>
</div>
</td>
<td class="<? echo $Style;?>">
<?
//分析天数
//转换默认值,仅当字段值为空时生效
if($FieldValue=="")
{
$FieldValue=getturntoFunandField($ArrField[5],$FieldName,$value,$FieldValue);
$temp2moren=stripslashes($FieldValue);//规定其它项的默认值
}
$tarr=explode(DanxuangduofenC,$FieldValue);
for($i=0;$i<count($tarr);$i++)
{
//折分每一项的标题和内容$tarr[$i]其它属性选项
$juti=explode(DanxuangduofenT,$tarr[$i])
?>
<div id='geshi<? echo $FieldName."_".($i+1);?>'>
<span id="dantitle_<?php echo $FieldName."_".($i+1);?>">第<?php echo $i+1;?>天,</span> <span id="deldanx_<?php echo $FieldName."_".($i+1);?>">取消第<?php echo $i+1;?>天</span><br>
标题:<input name="<?php echo $FieldName."title_".$i;?>" id="<?php echo $FieldName."title_".$i;?>" type="text" value="<? echo stripslashes($juti[0]);?>" / > 关链图片<input name="<?php echo $FieldName."pic_".$i;?>" id="<?php echo $FieldName."pic_".$i;?>" type="text" value="<? echo stripslashes($juti[2]?$juti[2]:"");?>" />多个关键字用逗号分隔<br>
<textarea cols="80" id="<?php echo $FieldName."_".$i;?>" name="<?php echo $FieldName."_".$i;?>" rows="10"><?php echo stripslashes($juti[1]?$juti[1]:"");?></textarea>
<script type="text/javascript">
CKEDITOR.replace( '<?php echo $FieldName."_".$i;?>', {
extraPlugins : 'autogrow',
autoGrow_maxHeight : 400
});
</script>
</div>
<?php }
?>
<span id="<?php $FieldName?>rongqi"></span>
<input type="hidden" value="" name="<?php echo $FieldName;?>" id="<?php echo $FieldName;?>">
<br> <span id="adddanxiang"> 添加下一天</span>
<script language="javascript">
$("#adddanxiang").bind("click",function(){
aaa=$("#<?php $FieldName?>rongqi").html();
tnum=$("textarea[id^='<?php echo $FieldName."_";?>']").length;
thisnum=tnum+1;
temp2moren="<?php echo $temp2moren;?>"
bbb="<div id='geshi<? echo $FieldName;?>_"+thisnum+"'><span id='dantitle_<?php echo $FieldName;?>_"+thisnum +"'>第"+thisnum +"项</span> <span id='deldanx_<? echo $FieldName;?>_"+thisnum +"'>取消第"+thisnum +"项</span><br>"
bbb=bbb+"标题:<input name='<?php echo $FieldName."title_";?>"+tnum+"' id='<?php echo $FieldName."title_";?>"+tnum+"' type='text' value='' /> 关链图片<input name='<?php echo $FieldName."pic_";?>"+tnum+"' id='<?php echo $FieldName."pic_";?>"+tnum+"' type='text' value='' />多个图片之间用逗号分隔"
bbb=bbb+"<br> <textarea name='<?php echo $FieldName."_";?>"+tnum+"' id='<?php echo $FieldName."_";?>"+tnum+"' cols='60' rows='8'>"+temp2moren+"</textarea></div>";
$("#<?php $FieldName?>rongqi").html(aaa+bbb);
CKEDITOR.replace( "<?php echo $FieldName."_";?>"+tnum, {
extraPlugins : 'autogrow',
autoGrow_maxHeight : 400
});
});
$("span[id^='deldanx_<? echo $FieldName;?>_']").live("click",function(index){
thisid=$(this).attr("id");
thisid=thisid.replace("deldanx_","");
$("#geshi"+thisid).hide('fast');
$("#geshi"+thisid).remove();
alert("取消成功,这一天数据清除,后面的依次递减一天");
//对现有的节点重新命名一次,因为中间的节点不存在了,命名会冲突
$("textarea[id^='<?php echo $FieldName."_";?>']").each(function(index){
$(this).attr("id","<? echo $FieldName;?>_"+index);
$(this).attr("name","<? echo $FieldName;?>_"+index);
});
$("span[id^='geshi<? echo $FieldName;?>_']").each(function(index){
$(this).attr("id","geshi<? echo $FieldName;?>_"+(index+1));
});
$("span[id^='dantitle_<? echo $FieldName;?>_']").each(function(index){
$(this).attr("id","dantitle_<? echo $FieldName;?>_"+(index+1));
$(this).html("第"+(index+1)+"项");
});
$("span[id^='deldanx_<? echo $FieldName;?>_']").each(function(index){
$(this).attr("id","deldanx_<? echo $FieldName;?>_"+(index+1));
$(this).html("取消第"+(index+1)+"项");
});
});
</script>
</td>
</tr>
<?
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//静态地址---20 为了生成产品列表的静态页的静态地址,
function JingTaihtml($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<? echo $Style;?>">
<?php
TturntoFunandField($ArrField[5],$FieldName,$value,$FieldValue,$Style1,"20");//生成表单属性项
?><span id="<?php echo $FieldName;?>_Msg"> <?php echo $ArrField[3];?></span>
</td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
// 模板框 --19 为了生成产品列表的静态页的模板框,其值在配置表单的时候赋值,其余时间不得修改
function Moban($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<? echo $Style;?>">
<?php
TturntoFunandField($ArrField[5],$FieldName,$value,$FieldValue,$Style1,"19");//生成表单属性项
?>
</td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//文本框-1
function TextBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1,$thisrsid="")
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<? echo $Style;?>">
<?php
TturntoFunandField($ArrField[5],$FieldName,$value,$FieldValue,$Style1,$FieldType,$thisrsid);//生成表单属性项
?>
<span id="<?php echo $FieldName;?>_Msg"> <?php echo $ArrField[3];?></span></td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//价格列表-22 比如多价格列表模式,这个列表中又有其它模式时
function Pricelist($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
//此模式只在修改的时候显示
if($_GET["OwerID"] !="")
{
$ArrField=explode("|",$StrField);
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<?php echo $Style;?>" align="right"><?php echo $ArrField[0];?>:</td>
<td width="<?php echo $width2;?>" class="<?php echo $Style;?>">
<iframe id="ifr_<? echo $FieldName;?>" style="top:2px" src="../price/Index.php?MenuId=<?php echo $ArrField[2];?>&PMID=<? echo $_REQUEST["ID"];?>&StrField=<?php echo $StrField;?>&FieldName=<?php echo $FieldName;?>&FieldValue=<?php $FieldValue?>&width1=<?php echo $width1;?>&width2=<?php echo $width2;?>&Style=<?php echo $Style;?>&Style1=<?php echo $Style1;?>" frameborder=0 scrolling="auto" width="100%" height="250"></iframe>
</td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//列表属性-18 比如它的这个性性要用一个列表来表示时
function ListProperty($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
//此模式只在修改的时候显示
if($_GET["OwerID"] !="")
{
$ArrField=explode("|",$StrField);
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<?php echo $Style;?>" align="right"><?php echo $ArrField[0];echo $ArrField[5];?>:</td>
<td width="<?php echo $width2;?>" class="<?php echo $Style;?>"><iframe style="top:2px" ID="mycityhot" src="Action_ListProperty.php?cid=<? echo $_REQUEST["ID"];?>&StrField=<?php echo $StrField;?>&FieldName=<?php echo $FieldName;?>&FieldValue=<?php $FieldValue?>&width1=<?php echo $width1;?>&width2=<?php echo $width2;?>&Style=<?php echo $Style;?>&Style1=<?php echo $Style1;?>" frameborder=0 width="100%" height="150"></iframe>
</td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//密码框-16
function PasswordBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<?php echo $Style;?>"><div align="right"><?php echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<?php echo $Style;?>"> <input name="<?php echo $FieldName;?>" id="<?php echo $FieldName;?>" type="password" value="<?php echo $FieldValue;?>" class="<?php echo $Style1;?>"><span id="<?php echo $FieldName;?>_Msg"> <?php echo $ArrField[3];?></span></td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//下拉框-2
function ListBox($StrField,$mydb,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
global $SystemTablename;
global $mydb;
global $SystemConest;
$ArrField=explode("|",$StrField);
$ClassID=$ArrField[2];
if($ClassID=="") return "";
$strSelect="";
if($ArrField[4]==0)
{
$OptionItem="";
$MenuIdnum=$mydb->getMenuIdNum($ClassID);
$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[0]." Where ".$SystemTablename[0]."2=0 And ".$SystemTablename[0].$MenuIdnum."=".$ClassID;
$rsc=$mydb->db_select_query($sqlrs);
$temp=GetMaxClassID($mydb,$FieldValue);
while($rs=$mydb->db_fetch_array($rsc))
{
$OptionItem=$OptionItem. "<option " .$strSelect . " value='".$rs[0] ."' MinClass='". $temp1 ."' onSelect='alert(this.MinClass);'>" . $rs[1]. "</option>";
}
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<?php echo $Style;?>"><div align="right"><?php echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<?php echo $Style;?>">
<script language="javascript">
$(document).ready(function(){
$("#<?php echo $FieldName;?>").bind("change",function(){
aa=$("#<?php echo $FieldName;?>").val();
$("#<?php echo $FieldName;?>_class").val(aa);
$.ajax({
url: "showClass_select.php?fid="+aa+"&MenuId=<?php echo $ClassID?>&FieldName=<?php echo $FieldName?>",//目标页地址,暂不支持跨域获取
beforeSend: function(){},
cache: false,//是否开启客户端缓存
success: function(html){
//过虑翻页代码
//$("#<?php echo $FieldName;?>_Span_c").html(html);
document.getElementById("<?php echo $FieldName;?>_Span_c").innerHTML=html;
getxclass("<?php echo $FieldName;?>",aa,"<?php echo $ClassID?>");
html="";
}
});
});
});
</script>
<input type="hidden" value="<? echo $FieldValue;?>" name="<? echo $FieldName."_class"?>" id="<? echo $FieldName."_class"?>"/>
<select name="<?php echo $FieldName;?>" id="<?php echo $FieldName;?>" class="<?php echo $Style1;?>" >
<option value="" >请选择...</option>
<?php echo $OptionItem;?>
</select>
<span id="<?php echo $FieldName;?>_Span_c"></span>
<span id="syscontesp<?php echo $FieldName;?>"></span>
<span id="<?php echo $FieldName;?>_Msg"> <?php echo $ArrField[3];?></span></td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//单选框-3
function RadioBox($StrField,$mydb,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
global $SystemTablename;
global $SystemConest;
$ArrField=explode("|",$StrField);
$ClassID=$ArrField[2];
if($ArrField[4]==0)
{
$OptionItem="";
$sqls="Select * From ".$SystemConest[7].$SystemTablename[0]." Where ".$SystemTablename[0]."2=0 And ".$SystemTablename[0].$mydb->getMenuIdNum($ClassID)."=".$ClassID;
$rsc=$mydb->db_select_query($sqls);
$FormConfigValue=GetFormConfig($mydb,$ArrField[2]);
$ganlx=GetInputTypeIndex($FormConfigValue,"23");//获取标识符所在的字段号
$ganlianstr="";
while($ClassRs=$mydb->db_fetch_array($rsc))
{
if($ClassRs[0].""== $FieldValue)
{
$OptionItem=$OptionItem . "<input name='" . $FieldName . "' id='" . $FieldName . "' type='radio' checked='checked' value='". $ClassRs[0] ."' biaozhistr='".$ClassRs[$SystemTablename[0]."".$ganlx]."'>" . $ClassRs[1] . "</input>";
}
else
{
$OptionItem=$OptionItem . "<input name='". $FieldName . "' id='". $FieldName . "' type='radio' value='". $ClassRs[0] ."' biaozhistr='".$ClassRs[$SystemTablename[0]."".$ganlx]."'>". $ClassRs[1] . "</input>";
}
if($ganlx.""!="") $ganlianstr=$ganlianstr.$ClassRs[$SystemTablename[0]."".$ganlx].",";
}
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<?php echo $Style;?>"><div align="right"><?php echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<?php echo $Style;?>">
<?php echo $OptionItem;?> <span id="<?php echo $FieldName;?>_Msg"><?php echo $ArrField[3];?></span>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
//并把动作执行的结果返回到表单里的第num字段去
if($ganlianstr!="" && $_REQUEST["PMID"]!="")
{
$ganlianstr=substr($ganlianstr,0,-1);
//获取周出发所以要放的字段序号地方
$xuhaozhifile_week=getkuohaostr($ganlianstr,"/week\|([\d]+)/");
$xuhaozhifile_anydate=getkuohaostr($ganlianstr,"/anydate\|([\d]+)/");
?>
<div id="<?php echo $FieldName;?>xuan_week" style="display:none">
选择发团周星期:
<input name="<?php echo $FieldName;?>week[]" type="checkbox" value="周一" />周一
<input name="<?php echo $FieldName;?>week[]" type="checkbox" value="周二" />周二
<input name="<?php echo $FieldName;?>week[]" type="checkbox" value="周三" />周三
<input name="<?php echo $FieldName;?>week[]" type="checkbox" value="周四" />周四
<input name="<?php echo $FieldName;?>week[]" type="checkbox" value="周五" />周五
<input name="<?php echo $FieldName;?>week[]" type="checkbox" value="周六" />周六
<input name="<?php echo $FieldName;?>week[]" type="checkbox" value="周日" />周日
<hr size="1" width="100%"> </div>
<div id="<?php echo $FieldName;?>xuan_anydate" style="display:none; margin-top:5px; margin-bottom:5px;"><a id="<?php echo $FieldName;?>_choolesdate">更选时间[点击选择]</a></div>
<input type="hidden" id="<?php echo $FieldName;?>_choolesdate_temp" value="">
<input type="hidden" id="<?php echo $FieldName;?>_chooleweek_temp" value="">
<script src="/jsLibrary/cdate_py_z.js"></script>
<script language="javascript">
//初始化勾选状态
$(document).ready(function(){
var initdatexiu="<?php echo $FieldName;?>".replace(/[\d]+$/,"");
//初始化周发团模式的值
var initdatexiucontent=$("#"+initdatexiu+"<?php echo $xuhaozhifile_week?>").val()+"";
if(initdatexiucontent.search("周")>-1) $("#<?php echo $FieldName;?>_chooleweek_temp").val(initdatexiucontent);
//初始化任意发团模式的值
var initanyd=$("#"+initdatexiu+"<?php echo $xuhaozhifile_anydate?>").val()+"";
if(initanyd.search("201")>-1) $("#<?php echo $FieldName;?>_choolesdate_temp").val(initanyd);
$("input[name^='<?php echo $FieldName;?>week']").each(function(){
if(initdatexiucontent.search($(this).val())>-1) {
$(this).attr("checked",true)};
});
});
$("input[id^='<?php echo $FieldName ; ?>']").bind("click", function(){
//先隐藏附属内容
$("div[id^='<?php echo $FieldName;?>xuan_']").hide();
var biaozhistr=$(this).attr("biaozhistr");
var faction=biaozhistr.replace(/\|[\d]+$/,"");
tonum=biaozhistr.replace(/^[\w]+\|/,"");
typed="<?php echo $FieldName;?>";
addtoname=typed.replace(/[\d]+$/,"")+tonum;
if(faction=="week")
{
//调用星期复选框
ctemp=$("#<?php echo $FieldName;?>_chooleweek_temp").val()
$("#"+addtoname).val(ctemp);
$("#<?php echo $FieldName;?>xuan_week").fadeIn(500);
$("input[name^='<?php echo $FieldName;?>week']").bind("click", function(){
//调用一个函数,把日期里的值存入 addtoname
var temp="";
$("#"+addtoname).val(temp);
$("input[name^='<?php echo $FieldName;?>week']").each(function(){
if($(this).attr("checked")) temp+=$(this).val() +",";
});
if(temp!="") temp=temp.replace(/,$/,"");
$("#<?php echo $FieldName;?>_chooleweek_temp").val(temp)
$("#"+addtoname).val(temp);
});
}
if(faction=="anydate")
{
//调用日历复选框,实现能够,多选时间
ctemp=$("#<?php echo $FieldName;?>_choolesdate_temp").val()
$("#"+addtoname).val(ctemp);
$("#<?php echo $FieldName;?>xuan_anydate").fadeIn(500);
$("#<?php echo $FieldName;?>_choolesdate").bind("click",function(){
temp=$("#<?php echo $FieldName;?>_choolesdate_temp").val();
url="guanli=mzl&rydate=anydate&indate="+temp;
cdate_show("<?php echo $FieldName;?>_choolesdate_temp",url)
$(document).bind("focusin",function(){
cvl=$("#<?php echo $FieldName;?>_choolesdate_temp").val();
$("#"+addtoname).val(cvl);
});
});
}
if(faction+""=="")
{
$("#"+addtoname).val("");
}
});
</script>
<?php
}
?>
</td>
</tr>
<?php
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//复选框-4
function Checkbox($StrField,$mydb,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
global $SystemTablename;
global $SystemConest;
$ArrField=explode("|",$StrField);
$ClassID=$ArrField[2];
if(is_null($FieldValue));
if($ArrField[4]=="0")
{
$OptionItem="";
$rsc=$mydb->db_select_query("Select * From ".$SystemConest[7].$SystemTablename[0]." Where ".$SystemTablename[0]."2=0 And ".$SystemTablename[0].$mydb->getMenuIdNum($ClassID)."=" .$ClassID);
while($ClassRs=$mydb->db_fetch_array($rsc))
{
if(strstr($FieldValue."",",".$ClassRs[0].","))
{
$OptionItem=$OptionItem . "<input name='" . $FieldName. "[]' id='" . $FieldName . "' type='checkbox' checked='checked' value='". $ClassRs[0] ."'>" . $ClassRs[1] . "</input>";
}
else
{
$OptionItem=$OptionItem. "<input name='" . $FieldName . "[]' id='" . $FieldName . "' type='checkbox' value='".$ClassRs[0] ."'>" . $ClassRs[1] . "</input>";
}
$i++;
}
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<?php echo $Style;?>"><div align="right"><?php echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<?php echo $Style;?>"> <?php echo $OptionItem;?> <span id="<?php echo $FieldName;?>_Msg"><?php echo $ArrField[3];?></span></td>
</tr>
<?
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
function IsChecked($FieldValue,$CheckValue)
{
$ArrCheck=explode(",",$FieldValue);
foreach($ArrCheck as $v)
{
if(str_replace(" ","",$v."")==$CheckValue) return true;
}
return false;
}
//图片框-5
function PictureBox($StrField,$FieldName,$i,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<?php echo $width1;?>" class="<?php echo $Style;?>"><div align="right"><?php echo $ArrField[0];?>:</div></td>
<td width="<?php echo $width2;?>" class="<?php echo $Style;?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%" align="left" valign="middle"><input type="text" name="<?php echo $FieldName;?>" id="<?php echo $FieldName;?>" usemap="<?php echo $FieldValue;?>" class="<?php echo $Style1;?>" value="<? echo $FieldValue;?>">
<iframe id="<?php echo $FieldName;?>_File" name="<?php echo $FieldName;?>_File" height="23" width="320" src="/inc/Up_file.php?getelementId=<?php echo $FieldName;?>&formId=MyForm" frameborder="0" scrolling="no"></iframe>
</td>
<td width="80%" align="left" valign="middle" class="<?php echo $Style;?>"><span id="<?php echo $FieldName;?>_Msg" ><?php echo $ArrField[3];?></span></td>
</tr>
</table>
</td>
</tr>
<?
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//编辑框-6
function EditBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
global $SystemConest;
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td class="<? echo $Style;?>">
<div style="width:600px;height:300px;">
<textarea cols="80" id="<?php echo $FieldName;?>" name="<?php echo $FieldName;?>" rows="10"><?php echo stripslashes($FieldValue);?></textarea>
<script type="text/javascript">
CKEDITOR.replace( '<?php echo $FieldName;?>', {
extraPlugins : 'autogrow',
autoGrow_maxHeight : 400
});
</script>
</div>
</td>
</tr>
<?
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//隐藏值-7
function HiddenBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
TturntoFunandField($ArrField[5],$FieldName,$value,$FieldValue,$Style1,"7");//生成表单属性项
}
}
//隐藏值主表值-7
function ZhubiaoBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
?><input name="<? echo $FieldName;?>" id="<? echo $FieldName;?>" type="hidden" value="<? echo ($FieldValue!="")?$FieldValue:$_REQUEST["PMID"];?>" class="<?php echo $Style1;?>">
<?
}
//日期值-8
function DateBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<? echo $width1;?>" class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td width="<? echo $width2;?>" class="<? echo $Style;?>">
<?php
$FieldValue=($FieldValue!="")?date("Y-m-d H:i:s",$FieldValue):date("Y-m-d H:i:s");
TturntoFunandField($ArrField[5],$FieldName,$value,$FieldValue,$Style1,"8");//生成表单属性项 ?>
<!--<input type="text" name="<? echo $FieldName;?>" id="<? echo $FieldName;?>" value="<? echo ($FieldValue!="")?date("Y-m-d H:i:s",$FieldValue):date("Y-m-d H:i:s");?>" class="<? echo $Style1;?>" onClick="showCal(<? echo $FieldName;?>);">
--><span id="<? echo $FieldName;?>_Msg"> <? echo $ArrField[3];?></span>
<script language="javascript">
$("#<?php echo $FieldName;?>").bind("click",function(){
showCal(this);
});
</script>
</td>
</tr>
<?
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
//发布ID-9
function FaBuIDBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<input name="<? echo $FieldName;?>" type="hidden" value="<? echo $FieldValue;?>" class="<?php echo $Style1;?>">
<?
}
}
//审核ID-10
function ShenHeIDBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<input name="<? echo $FieldName;?>" type="hidden" value="<? echo $FieldValue;?>" class="<? echo $Style1;?>">
<?
}
}
//栏目ID-11
function MenuIdBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<input name="<? echo $FieldName;?>" type="hidden" value="<? echo $FieldValue;?>" class="<? echo $Style1;?>">
<?
}
}
//textarea
function TextAreaBox($StrField,$FieldName,$FieldValue,$width1,$width2,$Style,$Style1)
{
$ArrField=explode("|",$StrField);
if($ArrField[4]==0)
{
?>
<tr id="tr_<?php echo $FieldName;?>">
<td width="<? echo $width1;?>" class="<? echo $Style;?>"><div align="right"><? echo $ArrField[0];?>:</div></td>
<td width="<? echo $width2;?>" class="<? echo $Style;?>"><textarea name="<? echo $FieldName;?>" id="<? echo $FieldName;?>" rows="10" cols="50" ><? echo htmlspecialchars($FieldValue);?></textarea><span id="<? echo $FieldName;?>_Msg"> <? echo $ArrField[3];?></span></td>
</tr>
<?
//加载能操作栏目的函数
if($ArrField[5]!="") loadlanmuAction($ArrField[5],$FieldName);
}
}
function MessgBox($PicPath,$Msg,$URL)
{ global $SystemConest;?>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="555" height="180"><div align="right"><img src="<? echo $PicPath;?>" width="227" height="119" /></div></td>
<td width="13"></td>
<td width="358" valign="bottom" ><p class="TDLine"><? echo $Msg;?> </p>
<p> </p></td>
</tr>
<tr>
<td colspan="3"><div align="center"> <a href="<? echo $URL;?>"><img src="/<? echo $SystemConest[1];?>/Iamges/Back.jpg" width="171" height="52" border="0" /></a></div></td>
</tr>
</table>
<? }
//生成关联数据列表
function CreateClassList($mydb,$SelectName,$SelectItem,$modname="")
{
return "<select name='".$SelectName . "'>". GetClassList($mydb,$SelectItem,$modname) . "</select>";
}
//获取关联分类ID
function GetClassList($mydb,$SelectItem,$modname="")
{
global $SystemTablename;
global $SystemConest;
$newmodename=($modname=="")?$SystemTablename[0]:$modname;
//当有多个$newmodename值时,分解,一般格式是以逗号分隔
$temparr=explode(",", $newmodename);
$subsql="";
foreach ($temparr as $v){
$subsql.=" ".$SystemTablename[2]."2='System/".$v."/Index.php' or";
}
$subsql=substr($subsql, 0,-2);
//Dim MenuRs,StrTemp1,StrTemp2,StrTemp3
$StrTemp2="";
//StrTemp3="</select>"
$rsc=$mydb->db_query("Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$subsql." Order by ".$SystemTablename[2]."4 ASC");
while($MenuRs=$mydb->db_fetch_array($rsc))
{
if($SelectItem.""==$MenuRs[0].""){
$StrTemp2=$StrTemp2 . "<option value='" . $MenuRs[0] . "' selected='selected'>".$MenuRs[1] . "</option>";
}
else{
$StrTemp2=$StrTemp2 . "<option value='". $MenuRs[0] . "' >" . $MenuRs[1] . "</option>";
}
}
if($StrTemp2=="")
{
return "请添加分类";
}
else
{
return $StrTemp2;
}
}
//获取表的字段数
function GetTableFieldCount($mydb,$TableName)
{
global $SystemConest;
$sqlrs=$mydb->db_query("select * from ".$SystemConest[7]."$TableName order by ".$TableName."0 limit 1" );
return $mydb->db_num_fields($sqlrs);
}
//保存所有权限 CmdType的值为 Add-添加权限保存 Delete-删除权限保存
function AllRuleSave($mydb,$UserID,$CmdType)
{
global $SystemTablename;
global $SystemConest;
$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=0 Order by ".$SystemTablename[2]."4 ASC";
$rsc=$mydb->db_query($sqlrs);
$rs=$mydb->db_fetch_array($rsc);
$num=$mydb->db_num_rows($rsc);
if($num>0)
{
AllRule2Save($rs[0],$mydb,$UserID,$CmdType);
}
}
//保存2级菜单权限 CmdType的值为 Add-添加权限保存 Delete-删除权限保存
function AllRule2Save($MenuId,$mydb,$UserID,$CmdType)
{
if($MenuId=="") return NULL;
global $SystemTablename;
global $SystemConest;
$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3<>0 Order by ".$SystemTablename[2]."4 ASC";
$rsc=$mydb->db_query($sqlrs);
$num=$mydb->db_num_rows($rsc);
if($num>0)
{
while($rs=$mydb->db_fetch_array($rsc))
{
if($CmdType=="Add")
{
RuleSave($mydb,$rs[0],CreateUserRule($rs[8],CreateRule($UserID,$rs[0]),$UserID));
}
if($CmdType=="Delete")
{
RuleSave($mydb,$rs[0],DeleteUserAllRules($rs[8],$UserID));
}
}
}
}
//保存单个菜单权限
function RuleSave($mydb,$MenuId,$RuleValue)
{
global $SystemTablename;
$MenuFields=array();
if($MenuId=="") return NULL;
$MenuFields[0]=$MenuId;
$MenuFields[8]=$RuleValue;
$mydb->TableName=$SystemTablename[2];
$mydb->ArrFields=$MenuFields;
$mydb->Update();
}
//生成用户权限字符串
function CreateUserRule($OldRule,$NewRule,$UserID)
{
if(strlen($OldRule)==0 || is_null($OldRule)==true)
{
return $NewRule;
}
$ArrRules=explode(",",$OldRule);
$i=0;
foreach($ArrRules as $Rule)
{
if(is_null($Rule)==false)
{
$ArrRuleItem=explode("|",$Rule);
if($ArrRuleItem[0]==$UserID)
{
$CheckUser=true;
}
}
$i=$i+1;
}
if($CheckUser==1)
{
$MiddleRule=explode(",",$OldRule);
foreach($MiddleRule as $Rules)
{
$m2=$Rules;
if(strstr($Rules,$UserID."|"))
{
$m2=$NewRule;
}
$CreateUserRule=$CreateUserRule.$m2.",";
}
$CreateUserRule=substr($CreateUserRule,0,-1);
}
else
{
$CreateUserRule=$OldRule . "," .$NewRule;
}
return $CreateUserRule;
}
//检查是否是操作栏目的动作
/**
加载能操作栏目的函数
*/
function loadlanmuAction($Afild5,$FieldName)
{
if(strstr($Afild5,"lanmu/"))
{
$tmp1=explode("/",$Afild5);
if($tmp1[1]!="")
{
$ttype=getkuohaostr($tmp1[1],"/^([\w]+)\:/");//获取类别
$taction=getkuohaostr($tmp1[1],"/\>([\S]+)$/");//获取行为,就是函数名函数里可以是参数
$act=getkuohaostr($tmp1[1],"/\:([\S]+)\>/");
if($ttype=="js"){
$taction=str_replace("(","('",$taction);
$taction=str_replace(")","')",$taction);
if($act!=""){?>
<script language='javascript'>
$(document).ready(function(){
$("input[name^='<?php echo $FieldName;?>']").bind('<?php echo $act;?>',function(){
<?php
echo $taction;?>
});
});
</script>
<? } else {?>
<script language='javascript'>$(document).ready(function(){ <?php echo $taction;?> });</script>
<? }
}
}
}
}
//从字符中清除指定用户的所有权限
function DeleteUserAllRules($strRules,$UserID)
{
$DeleteUserAllRules="";
if(strlen(strRules)==0 && strstr($strRules,","))
{
return "";
}
//Dim ArrRules,Rule,ArrRuleItem,i,j,CheckUser
$ArrRules=explode(",",$strRules);
$i=0;
$CheckUser=false;
foreach($ArrRules as $Rule)
{
if(is_null($Rule)==false)
{
$ArrRuleItem=explode("|",$Rule);
if((int)($ArrRuleItem[0])==(int)($UserID))
{
$CheckUser=true;
return;
}
}
$i=$i+1;
}
$j=0;
if($CheckUser==true)
{
foreach($ArrRules as $Rule)
{
if( $j!= $i) $DeleteUserAllRules=$DeleteUserAllRules . $Rule . ",";
$j=$j+1;
}
if($DeleteUserAllRules!="")
{
$DeleteUserAllRules=substr(eleteUserAllRules,1,-1);
}
}
else
{
$DeleteUserAllRules=$strRules;
}
return $DeleteUserAllRules;
}
function CreateRule($UserID,$ItemID)
{
$intSelect=$_REQUEST["ID".$ItemID ."1"];
$intAdd=$_REQUEST["ID".$ItemID ."2"];
$intUpdate=$_REQUEST["ID".$ItemID ."3"];
$intDelete=$_REQUEST["ID".$ItemID ."4"];
$intShenHe=$_REQUEST["ID".$ItemID ."5"];
$ddaa= $UserID."|".((int)($intSelect)+(int)($intAdd)+(int)($intUpdate)+(int)($intDelete)+(int)($intShenHe));
return $ddaa ;
}
//2级菜单是否有阅读权限
function Menu2ReadRule($MenuId,$mydb,$UserID)
{
global $SystemTablename;
global $SystemConest;
if($MenuId=="") return "";
$rsc=$mydb->db_query("Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=" .$MenuId . " Order by ".$SystemTablename[2]."4 ASC");
while($rs=$mydb->db_fetch_array($rsc))
{
if(GetReadRule(GetUserRule($rs[8],$UserID))==true || $_SESSION["Login"][1]==$SystemConest[2] ) //检查用户权限
{
return true;
}
}
}
//获取指定菜单的权限
//从数据库中获取指定用户的操作权限值
function GetUserMenuRuleValue($MenuId,$mydb,$UserID)
{
global $SystemTablename;
global $SystemConest;
if($MenuId=="") return "";
$rsc=$mydb->db_query("Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=" .$MenuId);
$rs=$mydb->db_fetch_array($rsc);
$num=$mydb->db_num_rows($rsc);
if($num>0)
{
return GetUserRule($rs[8],$UserID);
}
else
{
return "";
}
}
//显示一级栏目
function ShowMenuTile($mydb,$UserID)
{
global $SystemTablename;
global $SystemConest;
$rsc=$mydb->db_query("Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=0 Order by ".$SystemTablename[2]."4 ASC")
?>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<? while($Menu1Rs=$mydb->db_fetch_array($rsc))
{
?>
<tr>
<td height="26" class="TdLineBG"><? echo $Menu1Rs[1]?></td>
</tr>
<tr>
<td height="26">
<?
ShowMenuItem($mydb,$Menu1Rs[0],$UserID);
?>
</td>
</tr>
<?
$i=$i+1;
}
?>
</table>
<?
}
//显示二级栏目
function ShowMenuItem($mydb,$MenuId,$UserID)
{
global $SystemTablename;
global $SystemConest;
if($MenuId=="") return "";
$rsc=$mydb->db_query("Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."3=" . $MenuId. " Order by ".$SystemTablename[2]."4 ASC");
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
<?
while($Menu2Rs=$mydb->db_fetch_array($rsc))
{
$Rule=GetUserRule($Menu2Rs[8],$UserID);
?>
<tr>
<td height="26" class="TdLine"><? echo $Menu2Rs[1];?></td>
<td width="100" height="26" class="TdLine"><label>
<input type="checkbox" name="ID<? echo $Menu2Rs[0];?>1" value="1" <? if( GetReadRule($Rule)==true) echo "checked='checked'" ?> />
浏览</label></td>
<td width="100" height="26" class="TdLine"><input type="checkbox" name="ID<? echo $Menu2Rs[0];?>2" value="2" <? if(GetAddRule($Rule)==true) echo "checked='checked'" ?>/>
添加</td>
<td width="100" height="26" class="TdLine"><input type="checkbox" name="ID<? echo $Menu2Rs[0];?>3" value="4" <? if(GetUpdateRule($Rule)==true) echo "checked='checked'"; ?>/>
修改</td>
<td width="100" height="26" class="TdLine"><input type="checkbox" name="ID<? echo $Menu2Rs[0]?>4" value="8" <? if(GetDeleteRule($Rule)==true) echo "checked='checked'" ?>/>
删除</td>
<td width="100" height="26" class="TdLine"><input type="checkbox" name="ID<? echo $Menu2Rs[0]?>5" value="16" <? if(GetShenHeRule($Rule)==true) echo "checked='checked'" ?>/>
审核</td>
</tr>
<?
}
?>
</table>
<?
}
//SysType 12-单会ID 13-个会ID 14-主表ID 15-从表ID
//分类ID|13|||0|85/管理职位
function GetMenuIndex($mydb,$CurrMenuId,$SysType)
{
$FormConfig=GetFormConfig($mydb,$CurrMenuId);
if(is_null($FormConfig)) return NULL;
$ArrFormConfig=explode(",",$FormConfig);
$i=0;
foreach($ArrFormConfig as $ConfigItem )
{
$ArrItem=explode("|",$ConfigItem);
if(count($ArrItem)==6)
{
if($ArrItem[1]==$SysType."")
{
$GetMenuIndex=$i;
return $i;
}
}
$i=$i+1;
}
return -1;
}
//'获取指定输入类型第一个位置
// 'FormConfigValue 表单配置
// 'InputType 输入类型
function GetInputTypeIndex($FormConfigValue,$InputType)
{
if(is_null($FormConfigValue)==true)
{
return -1;
}
$ArrFC=explode(",",$FormConfigValue);
for($i=0;$i<count($ArrFC);$i++)
{
$FC=explode("|",$ArrFC[$i]);
if($FC[1].""==$InputType)
{
return $i;
}
}
return -1;
}
//获取输入类型
function GetInputType($FormConfigValue,$FieldIndex)
{
if(is_null($FormConfigValue)==true) return -1;
$ArrFC=explode(",",$FormConfigValue);
$FC=explode("|",$ArrFC[$FieldIndex]);
return $FC[1]."";
}
//=========================================================================================================
// 显示信息列表
// -----------------------------
// Conn 数据库连接
// MenuId 栏目ID
// CurrPage 当前页
// StrWhere 搜索条件
// CssTable 表格的样式
// CssTH 表头的样式
// CssTD 表格记录样式
//==========================================================================================================
function ShowList($mydb,$MenuId,$CurrPage,$StrWhere,$CssTable,$CssTH,$CssTD)
{
global $SystemConest;
global $SystemTablename;
if($MenuId=="") return "";
$TableName=reTableName($mydb,$MenuId);
$MyRsPage=new RsPage();
$TemCmd=(isset($_REQUEST["Cmd"]))?"".$_REQUEST["Cmd"]:"";
if($TemCmd=="ShenHe")
{
//权限控制
if(GetShenHeRule(GetUserMenuRuleValue($MenuId,$mydb,$_SESSION["Login"][0]))==false && $_SESSION["Login"][1]<>$SystemConest[2])
{
MessgBox("/".$SystemConest[1]."/Iamges/Error.jpg","您没有操作权限!", "/".$SystemConest[1]."/system/".$TableName . "/Index.asp?MenuId=". $MenuId);
}
ShenHe($mydb,$MenuId,$_REQUEST["ID"],$_REQUEST["shValue"]. "|" . $_REQUEST["Login"][1]);//审核数据
}
$StrListConfig=GetListConfig($mydb,$MenuId);
if(is_null($StrListConfig))
{
$ArrListConfig=explode(",",",,,,,");
$ArrPower=explode("|","||||");
}
else
{
$ArrListConfig=explode(",",$StrListConfig);
$ArrPower=explode("|",$ArrListConfig[1]);
}
$FormConfig1=GetFormConfig($mydb,$MenuId);
if(is_null($FormConfig1)) die;
$ArrFormConfig=explode(",",$FormConfig1);
$OtherColumn= array();
$nn=0;
foreach($ArrFormConfig as $valuse)
{
$Va2=explode("|",$valuse);
foreach($Va2 as $key=>$valus2)
{
if(strstr($valus2,"url/"))
{
$OtherColumn[$nn]=$valus2."/".$nn;
}
}
$nn=$nn+1;
}
$MenuIdIndex=GetInputTypeIndex($FormConfig1,11);
$zhubiaoid=GetInputTypeIndex($FormConfig1,14);//获取主表id所在字段
if($MenuIdIndex>0)
{
$sWhere=$TableName . $MenuIdIndex . "=" . $MenuId;
}
else
{
$sWhere="";
}
if($MenuIdIndex>0)
{
if(strlen($CurrPage)==0)
{
$CurrPage=1;
}
//传入url分析组合
$query_s=$_SERVER['QUERY_STRING'];
$query_s_array=explode("&",$query_s);
$furl1="";
foreach($query_s_array as $valudes)
{
if(strstr($valudes,$SystemTablename[0]."_"))
{
$furl1=$furl1."&".$valudes;
}
}
$MyRsPage->StrPage="CurrPage";
$MyRsPage->otherUrl="&MenuId=".$MenuId.$furl1;
if(is_numeric ($ArrListConfig[2])==true)
{
$MyRsPage->pagecount=$ArrListConfig[2];
}
else
{
$MyRsPage->pagecount=10;
}
$MyRsPage->TableName=$TableName;
if(strlen($StrWhere)==0)
{
$sWhereSql=$sWhere;
}
else
{
$sWhereSql=$StrWhere . " And ". $sWhere;
}
//分析搜索相同目类的信息列表
$turl=$_SERVER['QUERY_STRING'];
if($turl!="")
{
$turl_arr=explode("&",$turl);
foreach($turl_arr as $values)
{
if(strstr($values,$SystemTablename[0]) )
{
$urlc_arr=explode("=",$values);
$urlclass_arr=explode("_",$urlc_arr[0]);
$url_classid=$url_classid." and ".$TableName.$urlclass_arr[1]."=".$urlc_arr[1];
}
}
if($zhubiaoid!="" && $_REQUEST["PMID"]!="") $url_classid=$url_classid." and ".$TableName.$zhubiaoid."=".$_REQUEST["PMID"];
}
//分析搜索关键字
$keyword=isset($_REQUEST["keyword"])?$_REQUEST["keyword"]:"";
$search_sql="";
if($keyword!="")
{
$result=$MyRsPage->db_query("select * from ".$SystemConest[7]."$TableName order by ".$TableName."0 desc limit 0,1");
$fields_num=$MyRsPage->db_num_fields($result);
for($i=0;$i<$fields_num;$i++)
{
if($mydb->db_field_type($result,$i)=="string")
{
$search_sql=$search_sql." ".$TableName.$i.$mydb->file_type_chaValues($result,$i,"%"," like ",$keyword)." or";
}
}
$search_sql=" and (".substr($search_sql,0,-2).")";
}
$sql="select * from ".$SystemConest[7].$TableName." where ".$sWhereSql.$search_sql.$url_classid;
if($ArrListConfig[5]!="" && $ArrListConfig[5]!=null) $sql=$sql." order by ".str_replace("/",",",$ArrListConfig[5]);
$MyRsPage->sql=$MyRsPage->FenyeSql($sql);
$ArrHead=explode("|",$ArrListConfig[0]);
if($ArrPower[0]=="1")
{
?>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" >
<Tr><TD>
<a href="../menusys/Sys_Add.php?MenuId=<?php echo $_REQUEST["MenuId"]?>&OwerID=<?php echo $_REQUEST["OwerID"]?>&PMID=<?php echo $_REQUEST["PMID"]?>&Title=添加<?php echo $ArrListConfig[3]?>" target="_self" class="Link12">添加<? echo $ArrListConfig[3]?></a>
</td></tr>
</table>
<?
}
?>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<form action="?<? echo $_SERVER["QUERY_STRING"];?>" method="post" name="rform"> <tr>
<td width="43%">关键字:<input name="keyword" type="text" /> <input name="搜索" type="submit" value="搜索" /></td>
<td width="54%"></td>
<td width="3%"> </td>
</tr>
</form>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class="<? echo $CssTable;?>">
<tr >
<?
for($i=0;$i<count($ArrHead);$i++)
{
$Rs=explode("/",$ArrHead[$i]);
?>
<td
<? if(count($Rs)>0 ) {?>
<? if(str_replace(" ","",$Rs[1])<>"") {?> width="<? echo $Rs[1]?>" <? } ?>
<? } ?>
class="<? echo $CssTH ?>"><div align="center"><?
$demoArr= explode("|",$ArrFormConfig[$Rs[0]]);
echo $demoArr[0];
?>
</div>
</td>
<? }
if(!($ArrPower[1]<>"1" and $ArrPower[2]<>"1" and $ArrPower[3]<>"1"))
{
?>
<td class="<? echo $CssTH ?>"><div align="center">操 作</div></td>
<? }?>
</tr>
<?
$FieldIndex=0;
$beginNUmId=$MyRsPage->ReturnBeginNumber();//获取开始数
$sql="select * from ".$SystemConest[7]."$TableName where ".$sWhereSql.$search_sql.$url_classid." order by ".$TableName."0 desc limit $beginNUmId,".$MyRsPage->pagecount;
$rscc=$mydb->db_query($sql);
while($PageRs=$mydb->db_fetch_array($rscc)) {
?>
<tr>
<?
for($i=0;$i<count($ArrHead);$i++)
{
$Rs=explode("/",$ArrHead[$i]);
if(count($Rs)==2){
$align="center";
}else{
$align=$Rs[2];
}
?>
<td class="<? echo $CssTD; ?>" ><div align="<? echo $align ?>">
<?
$tempv="";
$tempArr=explode("|",$ArrFormConfig[$Rs[0]]);
$FieldType=$tempArr[1];
$PageRs_0=$PageRs[$Rs[0]];
if($FieldType=="2" || $FieldType=="3"){
$tempv= GetClassName($mydb,$PageRs_0,$Rs[0]);
}
else{
//die;
if(GetInputType($FormConfig1,(int)($Rs[0]))==10){
if(is_null($PageRs_0)==false){
$tempArr=explode("|",$PageRs_0);
if($tempArr[0]=="1"){
$tempv= "已审核";
}
else{
$tempv="未审核";
}
}
else{
$tempv="未审核";
}
}
else{
$isPrintFalg=false;
if(str_replace(" ","",$PageRs_0)<>"0"){
//进行特殊操作
foreach($OtherColumn as $vas){
$vas2=explode("/",$vas);
if($Rs[0]==$vas2[1]){
if($vas2[0]=="url"){
$tempv= "<a href='".$PageRs[$vas2[2]].$PageRs[0]."' target='_blank'>".$PageRs[$vas2[1]]."</a>";
$isPrintFalg=true;
}
}
}
if(!$isPrintFalg) $tempv= ($tempArr[1]=="8")?date("Y-m-d H:i:s",$PageRs_0):$PageRs_0;
}
}
}
//当有默认值设置时显示默认值
echo ($tempv=="")?getDVvalue($tempArr[5],$PageRs[0]):$tempv;
?>
</div>
</td>
<? }
if(!($ArrPower[1]<>"1" and $ArrPower[2]<>"1" and $ArrPower[3]<>"1"))
{
?>
<td class="<? echo $CssTD; ?>"><div align="center">
<?
$tempArr=explode("|",$ArrFormConfig[$FieldIndex]);//关联表信息
$CBInfo=$tempArr[5];
if(count(explode("/",$CBInfo))==1)
{
$tempArr=explode("/",$CBInfo);
$CBID=$tempArr[0];
$CBTitle=$tempArr[1];
}
?>
<a href="../menusys/Index_List.php?MenuId=<? echo $CBID;?>&ID=<? echo $PageRs[0];?>&CMID=<? echo $_GET["CMID"]?>&PMID=<? echo $PageRs[0];?>&OwerID=<? echo $PageRs_0;?>"><? echo $CBTitle?></a>
<?
if($ArrPower[1]=="1")
{
?>
<a href="../menusys/Sys_Update.php?MenuId=<? echo $_GET["MenuId"];?>&ID=<? echo $PageRs[0];?>&CMID=<? echo $_GET["CMID"];?>&PMID=<? echo $_GET["PMID"];?>&OwerID=<? echo $PageRs[0];?>&Title=修改<? echo $ArrListConfig[3];?>&CurrPage=<? $CurrPage;?>">修改</a>
<? }?>
<?
$SHIndex=GetInputTypeIndex($FormConfig1,10);
if($ArrPower[3]=="1" and $SHIndex>0 and is_null($PageRs_0)==false)
{
$tempArr=explode("|",$PageRs_0);
if($tempArr[0]=="1")
{
?>
| <a href="?MenuId=<? echo $MenuId?>&ID=<? echo $PageRs[0]?>&Cmd=ShenHe&shValue=0&CMID=<? echo $_GET["CMID"];?>&PMID=<? echo $_GET["PMID"]?>&OwerID=<? echo $PageRs[0];?>">取消审核</a>
<?
}
else
{
?>
| <a href="?MenuId=<? echo $MenuId?>&ID=<? echo $PageRs[0];?>&Cmd=ShenHe&shValue=1&CMID=<? echo $_GET["CMID"];?>&PMID=<? echo $_GET["PMID"]?>&OwerID=<? echo $PageRs[0];?>">我要审核</a>
<?
}
}
else
{
if($SHIndex>0)
{
?>
| <a href="?MenuId=<? echo $MenuId?>&ID=<? echo $PageRs[0];?>&Cmd=ShenHe&shValue=1&CMID=<? echo $_GET["CMID"];?>&PMID=<? echo $_GET["PMID"]?>&OwerID=<? echo $PageRs[0];?>">我要审核</a>
<?
}
} ?>
<? if($ArrPower[2]=="1")
?>
| <a href="../menusys/Sys_Delete.php?MenuId=<? echo $MenuId?>&ID=<? echo $PageRs[0];?>&CMID=<? echo $_GET["CMID"];?>&PMID=<? echo $_GET["PMID"]?>&OwerID=<? echo $PageRs[0];?>&Title=删除<? echo $ArrListConfig[3]?>">删除</a>
<? }?>
</div></td>
<? }?>
</tr>
<?
$FieldIndex=$FieldIndex+1;
}
?>
</table>
<? if( $ArrPower[0]=="1")
{
//显示分页信息
echo "<div align='right'>".$MyRsPage->showFenPage()."</div>";
?>
<?
}
}
function CheckAdmin()
{//权限检查用户登陆及权限
global $SystemConest;
global $MenuId;
$MyUser=new ADMINClass();
$MyUser->guanliDir=$SystemConest[1];
$MyUser->MyUser=$_SESSION["Login"][1];//登陆的用户名
$MyUser->loginCheck($MenuId);
}
function CheckRule($MenuId,$mydb,$TableName,$type)
{
//权限控制
global $SystemConest;
$myClass=new ADMINClass();
switch($type)
{
case "View":
if(GetReadRule(GetUserMenuRuleValue($MenuId,$mydb,$_SESSION["Login"][0]))==false and $_SESSION["Login"][1]<>$SystemConest[2])
{
$myClass=new ADMINClass();
$myClass->smPicPath="/".$SystemConest[1]."/Iamges/Error.jpg";
$myClass->smMsg="您没有查看的权限!";
$myClass->smURL="/".$SystemConest[1]."/system/".$TableName."/Index.php?MenuId=".$MenuId;
$myClass->MessgBox();
die;
}
break;
case "Add":
if(GetAddRule(GetUserMenuRuleValue($MenuId,$mydb,$_SESSION["Login"][0]))==false and $_SESSION["Login"][1]<>$SystemConest[2])
{
$myClass=new ADMINClass();
$myClass->smPicPath="/".$SystemConest[1]."/Iamges/Error.jpg";
$myClass->smMsg="您没有添加操作权限!";
$myClass->smURL="/".$SystemConest[1]."/system/".$TableName."/Index.php?MenuId=".$MenuId;
$myClass->MessgBox();
die;
}
break;
case "Del":
//权限控制
if( GetDeleteRule(GetUserMenuRuleValue($MenuId,$mydb,$_SESSION["Login"][0]))==false and $_SESSION["Login"][1]<>$SystemConest[2])
{
$myClass->smPicPath="/".$SystemConest[1]."/Iamges/Error.jpg";
$myClass->smMsg="您没有删除操作权限!";
$myClass->smURL="/".$SystemConest[1]."/system/".$TableName."/Index.php?MenuId=".$MenuId;
$myClass->MessgBox();
die;
}
break;
case "Update":
//更新权限
if(GetUpdateRule(GetUserMenuRuleValue($MenuId,$mydb,$_SESSION["Login"][0]))==false && $_SESSION["Login"][1]<>$SystemConest[2])
{
$myClass->smPicPath="/".$SystemConest[1]."/Iamges/Error.jpg";
$myClass->smMsg="您没有更新操作权限!";
$myClass->smURL="/".$SystemConest[1]."/system/".$TableName."/Index.php?MenuId=".$MenuId;
$myClass->MessgBox();
die;
}
break;
case "";
//只验证管理员是否登陆
if(!isset($_SESSION["Login"]))
{
$myClass->smMsg="您没有登陆或不是管理员";
$myClass->smURL= "/".$SystemConest[1]."/main.php";
$myClass->smPicPath="/".$SystemConest[1]."/Iamges/Error.jpg";
$myClass->MessgBox($smPicPath,$smMsg,$smURL);
die;
}
break;
}
}
function turnstring($str)
{
$temp="";
if($str!="")
{
$temp=str_replace("'","''",$str);
}
return $temp;
}
/**对arr1中的元素按$arr2指定的顺序重新排列
* 比如$arr2[0]=2,$arr2[1]=6,$arr[3]=4 即把$arr1的第2个元素排到第一,$arr1的第6个元素排到第二,第四个元素第到第三
$maxl 表示新顺序从$arr1的第几个开始 ,黑认为从第一个开始
* Enter description here ...
* @param $arr1
* @param $arr2
* @param $maxl
*/
function getArrpaixu($a,$b,$l=0)
{
$c=array();
if(is_array($b))
{
//对 字段显示顺序按要求排序,没有写上的按原来默认排序
array_unshift($b,"0");
$temp="";
$j=$ml;
for($n=0;$n<count($b);$n++)
{
$c[$n]=$a[$b[$n]];
$a[$b[$n]]=null;
}
}
$cnum=count($c);
$i=0;
foreach($a as $v)
{
if($v!=null)
{
$c[$cnum+$i]=$v;
$i++;
}
}
return $c;
}
//返回字段值的实际序号 $s1为未排序前的.$s2为未排序后的.
/**
对编辑的字段排序
*/
function getxufileds($ole1,$new2)
{
$i=0;
foreach($new2 as $v)
{
if($v==$ole1) return $i;
$i++;
}
return $i;
}
//生成
function CheckForm($FormConfig)
{
?>
<script language="javascript">
function CheckForm()
{
<?
$ArrConfig=explode(",",$FormConfig);
$i=0;
foreach($ArrConfig as $Config)
{
$FieldType_arr=explode("|",$Config);
$FieldType=$FieldType_arr[1];
$strCheck=$FieldType_arr[5];
$Check=explode("/",$strCheck);
if($FieldType_arr[4]=="0")
{
switch($FieldType)
{
case "1":
if(count($Check)==3)
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(<? echo $Check[0];?>($("#FieldName_<? echo $i;?>").val(),<? echo $Check[1];?>,<? echo $Check[2];?>,"<? echo $FieldType_arr[3];?>"));
<?
}
else
{ ?>
$("#FieldName_<? echo $i;?>_Msg").html(CharLen($("#FieldName_<? echo $i;?>").val(),0,999999,"<? echo $FieldType_arr[3];?>"));
<?
}
break;
case "2":
?>
$("#FieldName_<? echo $i;?>_Msg").html(Check_ListBox($("#FieldName_<? echo $i;?>").val(),"<? echo $FieldType_arr[3];?>"));
<?
break;
case "3":
if(count($Check)==3)
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(<?php echo $Check[0];?>(MyForm.FieldName_<? echo $i;?>,<? echo $Check[1];?>,<? echo $Check[2];?>,"<? echo $FieldType_arr[3];?>"));
<?
}
else
{
?>
$("#FieldName_<? echo $i;?>_Msg").html("");
<?
}
break;
case "4":
if(count($Check)==3)
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(<?php echo $Check[0];?>(MyForm.FieldName_<? echo $i;?>,<? echo $Check[1];?>,<? echo $Check[2];?>,"<? echo $FieldType_arr[3];?>"));
<?
}
else
{
?>
$("#FieldName_<? echo $i;?>_Msg").html("");
<?
}
break;
case "6" :
if(count($check)==3)
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(<? echo $Check[0];?>($("#FieldName_<? echo $i;?>_WebEditor").html(),<? echo $Check[1];?>,<? echo $Check[2];?>,"<? echo $FieldType_arr[3];?>"));
<?
}
else
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(CharLen($("#FieldName_<? echo $i;?>_WebEditor").html(),0,999990000,"<? echo $FieldType_arr[3];?>"));
<?
}
break;
case "8" :
$check2=explode("/",$strCheck);
if(count($check2)==3)
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(<? echo $Check[0];?>($("#FieldName_<? echo $i;?>").val(),"<? echo $Check[1];?>","<? echo $Check[2];?>","<? echo $FieldType_arr[3];?>"));
<?php
}
else
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(CharLen($("#FieldName_<? echo $i;?>").val(),0,999999,"<? echo $FieldType_arr[3];?>"));
<?
}
break;
case "17":
if(count($Check)==3)
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(<? echo $Check[0];?>($("#FieldName_<? echo $i;?>").val(),<? echo $Check[1];?>,<? echo $Check[2];?>,"<? echo $FieldType_arr[3];?>"));
<?
}
else
{ ?>
$("#FieldName_<? echo $i;?>_Msg").html(CharLen($("#FieldName_<? echo $i;?>").val(),0,999999,"<? echo $FieldType_arr[3];?>"));
<?
}
break;
case "21" :
if(count($Check)==3)
{
?>
$("#FieldName_<? echo $i;?>_Msg").html(<? echo $Check[0];?>($("#FieldName_<? echo $i;?>_0").val(),<? echo $Check[1];?>,<? echo $Check[2];?>,"<? echo $FieldType_arr[3];?>"));
<?
}
else
{ ?>
$("#FieldName_<? echo $i;?>_Msg").html(CharLen($("#FieldName_<? echo $i;?>_0").val(),0,9999999,"<? echo $FieldType_arr[3];?>"));
<?
}
?>
//组合单项多分的每个项的值,每一项包含得有标题和内容值
htmlc="";
fengefu="<?php echo DanxuangduofenC;?>";
fengefuT="<?php echo DanxuangduofenT;?>";
$("textarea[id^='FieldName_<? echo $i;?>_']").each(function(index){
var oEditor = eval("CKEDITOR.instances.FieldName_<? echo $i;?>_"+index);
if(oEditor.getData()!=""){
htmlc=htmlc+$("#FieldName_<? echo $i;?>title_"+index).val()+fengefuT+oEditor.getData()+""+fengefuT+$("#FieldName_<? echo $i;?>pic_"+index).val()+fengefu;
}
});
htmlc=htmlc.substring(0,htmlc.length - fengefu.length);
$("#FieldName_<? echo $i;?>").val(htmlc);
<?
break;
}
if( $FieldType=="1" || $FieldType=="2" || $FieldType=="3" || $FieldType=="4" || $FieldType=="6" || $FieldType=="8" || $FieldType=="17" || $FieldType=="21")
{
?>
if( $("#FieldName_<? echo $i;?>_Msg").html()!="")
{
alert($("#FieldName_<? echo $i;?>_Msg").html());
<? if( $FieldType=="3" || $FieldType=="4")
{
?>
$("#FieldName_<? echo $i;?>")[0].focus();
return false;
<? }
else
if( $FieldType==6)
{
?>
$("#FieldName_<? echo $i;?>_WebEditor").focus();
return false;
<? }
elseif($FieldType==21)
{
?>
$("#FieldName_<? echo $i;?>_0").focus();
return false;
<?php }
else
{
?>
$("#FieldName_<? echo $i;?>").focus();
return false;
<?
}
?>
}
<?
}
}
$i=$i+1;
} ?>
return true;
}
</script>
<?
}
?>
<script language="javascript">
function getxclass(FieldName,fid,ClassID)
{
temp=$("#syscontesp"+FieldName).val();
temp=temp+"<span id='"+FieldName+fid+"_Span_c'></span>";
$("#syscontesp"+FieldName).html(temp);
$("#st"+FieldName+fid).bind("change",function(){
xaa=$("#st"+FieldName+fid).val();
$.ajax({
url: "showClass_select3.php?fid="+xaa+"&MenuId="+ClassID+"&FieldName="+FieldName,//目标页地址,暂不支持跨域获取
beforeSend: function(){},
cache: false,//是否开启客户端缓存
success: function(html){
//过虑翻页代码
$("#"+FieldName+"_class").val(xaa);
document.getElementById(""+FieldName+fid+"_Span_c").innerHTML=html;
html="";
}
});
});
}
function ckeditoradd(str){
CKEDITOR.replace( str, {
extraPlugins : 'autogrow',
autoGrow_maxHeight : 400
});
}
var map;
var marker;
var infowindow;
var geocoder;
var markersArray = [];
function initialize(dname,initport) {
geocoder = new google.maps.Geocoder();
zoomnum=13;
flag="";
if(initport==""){
flag="init";
initport="34.196450627437024,109.00205624682621";
zoomnum=5;
}
iparr=initport.split(",")
var myLatlng = new google.maps.LatLng(parseFloat(iparr[0]),parseFloat(iparr[1]));
var myOptions = {
zoom: zoomnum,
center: myLatlng,
navigationControl: true,
streetViewControl: true,
panControl: true, //方向盘
scaleControl: true, //比例尺
mapTypeControl: false, //可以选的地图类型,下面是配置
streetViewControl:false,//街头小人
zoomControl: true, //放大按钮,下面是配置
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById("map_canvas_"+dname), myOptions);
if(flag!="init") placeMarker(myLatlng,"");
google.maps.event.addListener(map, 'click', function(event) {
placeMarker(event.latLng,dname);
});
}
function placeMarker(location,dname) {
clearOverlays(infowindow);
var clickedLocation = new google.maps.LatLng(location);
marker = new google.maps.Marker({
position: location,
ico:"http://maps.gstatic.com/mapfiles/ridefinder-images/mm_20_red.png",
title:"这里是位置",
map: map
});
markersArray.push(marker);
//map.setCenter(location);
var point = location.lat() + "," + location.lng();
if(dname!="") $("#"+dname).val(point);
}
function clearOverlays(infowindow) {
if (markersArray) {
for (i in markersArray) {
markersArray[i].setMap(null);
}
markersArray.length = 0;
}
if (infowindow){
infowindow.close();
}
}
function setlocation(location, title) {
map.setCenter(location);
marker = new google.maps.Marker({
map: map,
position: location,
title: title
});
}
//地址解析
function searchAddress(fname)
{
address = $("#kwordditu_"+fname).val();
if(address=="") {alert("请输入目标地址");return;}
geocoder.geocode( {'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
target = results[0].geometry.location;
setlocation(target, address);
} else {
alert("由于以下原因未正确找到地理位置信息: " + status);
}
});
}
</script>
| 10npsite | trunk/guanli/system/menusys/function.php | PHP | asf20 | 100,365 |
<? session_start();
require "../../../global.php";
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
$mydb=new YYBDB();
$TableName=reTableName($mydb,$MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
$CurrMenuId=$_REQUEST["CurrMenuId"];
if(strlen($CurrMenuId)<1)
$CurrMenuId=0
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>删除栏目</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css">
</head>
<body>
确定要删除本栏目? <a href="Delete_Save.php?CurrMenuId=<? echo $CurrMenuId;?>&MenuId=<? echo MenuId;?>">[确定]</a> <a href="Index.php?MenuId=<? echo $MenuId;?>">[返回]</a>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Delete.php | PHP | asf20 | 961 |
<?php
session_start();
//此页为列表属性的显示页
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require "../classsys/function.php";
$StrField=$_GET["StrField"];
$FieldName=$_GET["FieldName"];
$StrFieldArr=explode("|",$StrField);
$mydb=new YYBDB();
$MenuId=$StrFieldArr[2];
$TableName= $mydb->getTableName($MenuId);
CheckRule($StrFieldArr[2],$mydb,$TableName,"");//检查登陆权限
$FormConfig1=GetFormConfig($mydb,$MenuId);
$ArrField=explode("|",$StrField);
//获取上级栏目的属性是放在第几个字段里
$shangjiId=GetInputTypeIndex($FormConfig1,"14");
?>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="TableLine">
<tr class="YKTtable"><? echo getTitle($mydb,$StrFieldArr[2]);?></tr>
<?
//为验证输入框的类型准备数据
$sqlcheck="select * from ".$SystemConest[7].$SystemTablename[2]." where ".$SystemTablename[2]."0=".$StrFieldArr[2];
$RsCheck=$mydb->db_query($sqlcheck);
$RsCT=$mydb->db_fetch_array($RsCheck);
$CheckStr=$RsCT[7];
$CheckList[]=array();
$k=0;
$ArrCheckStr=explode(",",$CheckStr);
foreach($ArrCheckStr as $values)
{
$CheckList[$k]=explode("|",$values);
$k++;
}
$MenuIdnum= $mydb->getMenuIdNum($StrFieldArr[2]);
$sql="select * from ".$SystemConest[7].$TableName." where ".$TableName.$MenuIdnum."=".$StrFieldArr[2]." and ".$TableName.$shangjiId."=".$_REQUEST["cid"];
$rsc=$mydb->db_query($sql);
$strlist="";
$k=0;
while($rs=$mydb->db_fetch_array($rsc))
{
$k++;
?>
<form action="Action_ListProperty_save.php?<?php echo $_SERVER["QUERY_STRING"];?>" method="post" name="MyForm<?php echo $k;?>" id="MyForm<?php echo $k;?>">
<tr>
<?php
for($i=0;$i<$ListPropertyPageTdNum-1;$i++)
{?>
<td align="center"><input type="text" name="FieldName_<?php echo $arrlistTitleNum[$i];?>" value="<?php echo $rs[$arrlistTitleNum[$i]];?>" size="8" ><div style="font-size:12px; margin-left:20px;" align="center">
<span id="FieldName_<?php echo $arrlistTitleNum[$i];?>_Msg"><?php echo $CheckList[$arrlistTitleNum[$i]][3];?></span></div>
</td>
<?php }
?>
<td align="center">
<input type="hidden" name="id" id="id" value="<?php echo $rs[0];?>">
<input name="edit" type="submit" value="修改" onClick="return CheckForm()"> <input name="del" type="button" value="删除" onClick="javascript:if(confirm('确实要删除吗?'))location='Action_ListProperty_del.php?<?php echo $_SERVER["QUERY_STRING"];?>&delc=del&id=<?php echo $rs[0];?>'"></td>
</tr>
<?
foreach($arrlistTitleNum as $value)
{
$strlist=$strlist.$value.",";
}
$strlist=substr($strlist,0,strlen($strlist)-1);
?>
<input type="hidden" value="<?php echo $strlist;?>" name="fieldsTitleNumerical">
<input type="hidden" value="<? echo $shangjiId;?>" name="shangjiId">
<input type="hidden" value="<? echo $_REQUEST["cid"];?>" name="cid">
</form> <?php
}
?>
<form action="Action_ListProperty_save.php?<?php echo $_SERVER["QUERY_STRING"];?>" method="post" name="formAdd">
<tr>
<?php
for($i=0;$i<$ListPropertyPageTdNum-1;$i++)
{
foreach($arrlistTitleNum as $value)
{
$strlist=$strlist.$value.",";
}
$strlist=substr($strlist,0,strlen($strlist)-1);
?>
<td align="center"><input type="text" name="FieldName_<?php echo $arrlistTitleNum[$i];?>" value="" size="8"><div style="font-size:12px; margin-left:20px;" align="center">
<span id="FieldName_<?php echo $arrlistTitleNum[$i];?>_Msg"><?php echo $CheckList[$arrlistTitleNum[$i]][3];?></span></div>
</td>
<?php }
?>
<td align="center"><input name="edit" type="submit" value="增加" onClick="return CheckForm()" /> </td>
</tr>
<input type="hidden" value="<?php echo $strlist;?>" name="fieldsTitleNumerical">
<input type="hidden" value="" name="id">
<input type="hidden" value="<? echo $shangjiId;?>" name="shangjiId">
<input type="hidden" value="<? echo $_REQUEST["cid"];?>" name="cid">
</form>
</table>
<?
Form_check();
CheckForm($FormConfig1);
?>
| 10npsite | trunk/guanli/system/menusys/Action_ListProperty.php | PHP | asf20 | 4,666 |
<?php
session_start();
//此页为价格属性的显示页
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require "../classsys/function.php";
$StrField=$_GET["StrField"];
$FieldName=$_GET["FieldName"];
$StrFieldArr=explode("|",$StrField);
$mydb=new YYBDB();
$MenuId=$StrFieldArr[2];
$TableName= $SystemTablename[4];
CheckRule($StrFieldArr[2],$mydb,$TableName,"");//检查登陆权限
$FormConfig1=GetFormConfig($mydb,$MenuId);
$ArrField=explode("|",$StrField);
?>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="TableLine">
<tr class="YKTtable"><? echo getTitle($mydb,$StrFieldArr[2]);?></tr>
<?
//为验证输入框的类型准备数据
$sqlcheck="select * from ".$SystemConest[7].$SystemTablename[2]." where ".$SystemTablename[2]."0=".$StrFieldArr[2];
$RsCheck=$mydb->db_query($sqlcheck);
$RsCT=$mydb->db_fetch_array($RsCheck);
$CheckStr=$RsCT[7];
$CheckList[]=array();
$k=0;
$ArrCheckStr=explode(",",$CheckStr);
foreach($ArrCheckStr as $values)
{
$CheckList[$k]=explode("|",$values);
$k++;
}
$MenuIdnum= $mydb->getMenuIdNum($StrFieldArr[2]);
$sql="select * from ".$SystemConest[7].$TableName." where ".$TableName.$MenuIdnum."=".$StrFieldArr[2]." and ".$TableName.$shangjiId."=".$_REQUEST["cid"];
$rsc=$mydb->db_query($sql);
$strlist="";
$k=0;
while($rs=$mydb->db_fetch_array($rsc))
{
$k++;
?>
<form action="Action_ListProperty_save.php?<?php echo $_SERVER["QUERY_STRING"];?>" method="post" name="MyForm<?php echo $k;?>" id="MyForm<?php echo $k;?>">
<tr>
<?php
for($i=0;$i<$ListPropertyPageTdNum-1;$i++)
{?>
<td align="center"><input type="text" name="FieldName_<?php echo $arrlistTitleNum[$i];?>" id="FieldName_<?php echo $arrlistTitleNum[$i];?>" value="<?php echo $rs[$arrlistTitleNum[$i]];?>" size="8" ><div style="font-size:12px; margin-left:20px;" align="center">
<span id="FieldName_<?php echo $arrlistTitleNum[$i];?>_Msg"><?php echo $CheckList[$arrlistTitleNum[$i]][3];?></span></div>
</td>
<?php }
?>
<td align="center">
<input type="hidden" name="id" id="id" value="<?php echo $rs[0];?>">
<input name="edit" type="submit" value="修改" onClick="return CheckForm()"> <input name="del" id="del" type="button" value="删除" onClick="javascript:if(confirm('确实要删除吗?'))location='Action_ListProperty_del.php?<?php echo $_SERVER["QUERY_STRING"];?>&delc=del&id=<?php echo $rs[0];?>'"></td>
</tr>
<?
foreach($arrlistTitleNum as $value)
{
$strlist=$strlist.$value.",";
}
$strlist=substr($strlist,0,strlen($strlist)-1);
?>
<input type="hidden" value="<?php echo $strlist;?>" name="fieldsTitleNumerical">
<input type="hidden" value="<? echo $shangjiId;?>" name="shangjiId" id="shangjiId">
<input type="hidden" value="<? echo $_REQUEST["cid"];?>" name="cid" id="cid">
</form> <?php
}
?>
<form action="Action_PriceProperty_save.php?<?php echo $_SERVER["QUERY_STRING"];?>" method="post" name="formAdd">
<tr>
<?php
for($i=0;$i<$ListPropertyPageTdNum-1;$i++)
{
foreach($arrlistTitleNum as $value)
{
$strlist=$strlist.$value.",";
}
$strlist=substr($strlist,0,strlen($strlist)-1);
?>
<td align="center"><input type="text" name="FieldName_<?php echo $arrlistTitleNum[$i];?>" id="FieldName_<?php echo $arrlistTitleNum[$i];?>" value="" size="8"><div style="font-size:12px; margin-left:20px;" align="center">
<span id="FieldName_<?php echo $arrlistTitleNum[$i];?>_Msg"><?php echo $CheckList[$arrlistTitleNum[$i]][3];?></span></div>
</td>
<?php }
?>
<td align="center"><input name="edit" id="edit" type="submit" value="增加" onClick="return CheckForm()" /> </td>
</tr>
<input type="hidden" value="<?php echo $strlist;?>" name="fieldsTitleNumerical" id="fieldsTitleNumerical">
<input type="hidden" value="" name="id">
<input type="hidden" value="<? echo $shangjiId;?>" name="shangjiId" id="shangjiId">
<input type="hidden" value="<? echo $_REQUEST["cid"];?>" name="cid" id="cid">
</form>
</table>
<?
Form_check();
CheckForm($FormConfig1);
?>
| 10npsite | trunk/guanli/system/menusys/Action_PriceProperty.php | PHP | asf20 | 4,744 |
<? session_start();
?>
<script language="javascript" src="/jsLibrary/clienthint_ajax.js"></script>
<?php
require "../../../global.php";
require RootDir."/"."inc/config.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
$mydb=new YYBDB();
$fid=$_GET['fid'];
$MenuId=$_GET['MenuId'];
$FieldName=$_GET['FieldName'];
$sql="select * from ".$SystemConest[7].$SystemTablename[0]." where ".$SystemTablename[0].getMenuidofFieldNum($mydb,$MenuId)."=$MenuId and ".$SystemTablename[0]."2=$fid";
$result=$mydb->db_query($sql);
$num=$mydb->db_num_rows($result);
if($num<1) die;
echo "<input type='hidden' value='".$FieldName.$fid."' name='".$FieldName."_Min'>";
?>
<select name="st<? echo $FieldName.$fid;?>">
<option value='-1' selected>请选择分类</option>
<?php
while($row=mysql_fetch_row($result)){
echo "<option value='$row[0]'>".htmlspecialchars($row[1])."</option>";
}
?>
</select>
<?php echo "<span id='".$FieldName.$fid."'></span>";?>
<script language="javascript">
$(document).ready(function(){
$("#st<? echo $FieldName.$fid;?>").live("change", function(){
var temp=$(this).val();
alert(temp+"三");
$("#<?php echo $FieldName."_class";?>").val(temp+"");
});
});
</script> | 10npsite | trunk/guanli/system/menusys/showClass_select3.php | PHP | asf20 | 1,346 |
<?php
//显示默认值,如果内容用含有"@" 降被替换成本条记录的id,适用于已知本条id的情况下
function getDVvalue($str,$thisid){
if(getsubstr($str,"/^DV\//")=="DV/"){
$temp=str_ireplace("@", $thisid, $str);
return preg_replace("/^DV\//", "", $temp);
}
return "";
}
//特定项目指定函数
//配置文件里要调用的函数,写入这个类里
class UserFunction
{
//====================================默认值中可能会用到的函数
function Variable()
{
$name ="";
$this->$name(); // This calls the Bar() method
}
/**
*
* @param $usernames
*/
function usereditfiles($usernames)
{
if($usernames!="")
{
global $SystemConest;
global $flagisread;//生明一个全局的变量,标识字段是否能编辑
$flagisread=(strstr($usernames.",".$SystemConest[2], $_SESSION["Login"][1]))?"":" readonly='readonly'";
}
}
/**
*特殊用途函数, 组合字段的值生成一个值返回
* @param $str 字符串参数 式:表名_可以修改的用户列表_@ 例如 tour_updateuser_@ 其中@会替换成:@本条记录的id
* @return 返回组合成新字符串 一般用于生成新的字符串
*/
function gettourtitle($str)
{
global $SystemConest;
$a=explode("_", $str);
if(count($a)!=3) return "";
global $flagisread;//生明一个全局的变量,标识字段是否能编辑
$flagisread=(strstr($a[1].",".$SystemConest[2], $_SESSION["Login"][1]))?"":" readonly='readonly'";
require_once $_SERVER['DOCUMENT_ROOT'].'/global.php';
global $SystemConest;
require_once $_SERVER['DOCUMENT_ROOT'].'/inc/dabase_mysql.php';
$myd=new YYBDB();
$tablename=$a[0];
$thisid=getkuohaostr($str,"/\@([\d]+)/");//获取这条记录的id号
$returns="";//最后返回的字符串
if($thisid=="") return "";
$sql="select * from ".$SystemConest[7].$tablename." where ".$tablename."0=".$thisid;
$res=$myd->db_query($sql);
if($rs=$myd->db_fetch_array($res))
{
//获取这条线路的出发地
$sqlc="select * from ".$SystemConest[7]."classsys where classsys0=".$rs[9];
$resc=$myd->db_query($sqlc);
$returns=$rs[1];
if($rsc=$myd->db_fetch_array($resc))
{
$returns=$rs[1]."-".$rsc[1]."出发".",梦之旅";
}
return $returns;
//@todo 这里的线路标题业务生成逻辑以后再来完善.类似的还有keyword等
}
}
function getAdmin()
{
return $_SESSION["Login"][1];
}
function getThisTime()
{
return date("Y-m-d H:i:s");
}
function sublinkfang($str){
return "test".getsubstr($str, "/[\d]+$/");
}
function getThisTimenum()
{
return time();
}
function getuser()
{
return $_SESSION["Login"][1];
}
/**
* 生成优惠劵号码
*/
function createyouhuijuan()
{
$temp=date("Y-m-d h:i:s");
$temp=substr(md5($temp), 0,10);
return strtoupper($temp);
}
/**
* 通过表名和记录id生成调用的代码
* @param $FieldName
* @param $id
* @return string
*/
function getiframecode($FieldName,$id)
{
require_once $_SERVER['DOCUMENT_ROOT'].'/global.php';
global $SystemConest;
require_once $_SERVER['DOCUMENT_ROOT'].'/inc/dabase_mysql.php';
$sql="select * from ".$SystemConest[7]."sysset";
$myd=new YYBDB();
$res=$myd->db_query($sql);
$hosturl="";//广告网址
if($rs=$myd->db_fetch_array($res))
{
$hosturl=$rs["sysset6"];
}
if($id && $FieldName)
{
$temp="";
if($id && $FieldName) $temp="<script language='javascript' src='".$hosturl."/".Q."show_iads_id_".$id."'></script>";
return temp;
}
}
//==================================================================================
}
/**
* 转换默认值 参数可以是函数
* @param unknown_type $ArrField5
* @param unknown_type $FieldName
* @param unknown_type $value
* @param unknown_type $FieldValue
* @param unknown_type $Style1
* @param unknown_type $FieldType
* @param unknown_type $thisrsid
*/
function TturntoFunandField($ArrField5,$FieldName,$value,$FieldValue,$Style1,$FieldType,$thisrsid="")
{
$ArrField5=mysql_real_escape_string($ArrField5);
if($FieldType=="19")
{
$editflag=" readonly='readonly' ";
}
$dometype="text";
if($FieldType=="7") $dometype="hidden";
if(strstr($ArrField5,"DV/"))
{
$value="";
$tempDv=substr($ArrField5,3);
preg_match("/\([\S]+\)/",$tempDv,$arr);
$args=preg_replace("/[\(|\)]/","",$arr[0]);
//$thisrsid=preg_replace("/[^\d]{1,}/","",$tempDv);
if(strstr($tempDv,"()"))
{
$myuserC=new UserFunction();
$tempfun=str_replace("()","",$tempDv);
$value=$myuserC->$tempfun();
global $flagisread;
if($flagisread!="") $editflag=" readonly='readonly' ";
$flagisread="";
}
elseif($arr[0])
{
$myuserC=new UserFunction();
$tempfun=str_replace($arr[0],"",$tempDv);
$args=str_replace("@", "@".$thisrsid, $args);//参数里的@替换成这条记录的id
$value=$myuserC->$tempfun($args);
global $flagisread;
if($flagisread!="") $editflag=" readonly='readonly' ";
$flagisread="";
}
else
{
$value=$tempDv;
}
if(trim($FieldValue)!="" and $FieldType!="19" and $FieldType!="7")
{
$value=$FieldValue;
}
?>
<input name="<? echo $FieldName;?>" id="<? echo $FieldName;?>" type="<?php echo $dometype;?>" value="<? echo $value;?>" <?php echo $editflag;?> class="<? echo $Style1;?>">
<?php
}
//UV表示每次编辑时都从函数里获取值,并覆盖掉以前的值 其它的和以前一样的用法
elseif (strstr($ArrField5,"UV/"))
{
$value="";
$tempDv=substr($ArrField5,3);
preg_match("/\([\S]+\)/",$tempDv,$arr);
$args=preg_replace("/[\(|\)]/","",$arr[0]);
//$thisrsid=preg_replace("/[^\d]{1,}/","",$tempDv);
if(strstr($tempDv,"()"))
{
$myuserC=new UserFunction();
$tempfun=str_replace("()","",$tempDv);
$value=$myuserC->$tempfun();
global $flagisread;
if($flagisread!="") $editflag=" readonly='readonly' ";
$flagisread="";
}
elseif($arr[0])
{
$myuserC=new UserFunction();
$tempfun=str_replace($arr[0],"",$tempDv);
$args=str_replace("@", "@".$thisrsid, $args);//参数里的@替换成这条记录的id
$value=$myuserC->$tempfun($args);
global $flagisread;
if($flagisread!="") $editflag=" readonly='readonly' ";
$flagisread="";
}
else
{
$value=$tempDv;
}
if($FieldType=="8") $value=Date("Y-m-d h:i",$value);
?>
<input name="<? echo $FieldName;?>" id="<? echo $FieldName;?>" type="<?php echo $dometype;?>" value="<? echo $value;?>" <?php echo $editflag;?> class="<? echo $Style1;?>">
<?php
}
else
{
echo "<input name='".$FieldName."' id='".$FieldName."' type='".$dometype."' value='".$FieldValue."' ".$editflag." class='".$Style1."'>";
}
if($FieldType=="19")
{
?>
<input type="hidden" name="moban" id="moban" value="<? echo $value;?>">
<? }
if($FieldType=="20")
{
echo "<input type='hidden' name='JingTaihtml' id='JingTaihtml' value='".$FieldName."'>";
}
}
/**
* 获取字段的默认值
* @param unknown_type $ArrField5
* @param unknown_type $FieldName
* @param unknown_type $value
* @param unknown_type $FieldValue
*/
function getturntoFunandField($ArrField5,$FieldName,$value,$FieldValue,$thisrsid="")
{
$ArrField5=mysql_real_escape_string($ArrField5);
if(strstr($ArrField5,"DV/"))
{
$value="";
$tempDv=substr($ArrField5,3);
preg_match("/\([a-zA-Z]{2,}\_\@\)/",$tempDv,$arr);
$tablename=preg_replace("/[^a-zA-Z]+/","",$arr[0]);
//$thisrsid=preg_replace("/[^\d]{1,}/","",$tempDv);
if(strstr($tempDv,"()"))
{
$myuserC=new UserFunction();
$tempfun=str_replace("()","",$tempDv);
$value=$myuserC->$tempfun();
}
elseif($arr[0])
{
$myuserC=new UserFunction();
$tempfun=str_replace($arr[0],"",$tempDv);
$value=$myuserC->$tempfun($tablename,$thisrsid);
}
else
{
$value=$tempDv;
}
if($FieldValue!="" and $FieldType!="19" and $FieldType!="7")
{
$value=$FieldValue;
}
return $value;
}
return $FieldValue;
}
?> | 10npsite | trunk/guanli/system/menusys/UserFunction.php | PHP | asf20 | 8,559 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/Function.Libary.php";
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
require RootDir."/".$SystemConest[1]."/system/log/addlog.php";
FunPostGetFilter(2);//过滤非法信息
$mydb=new YYBDB();
$PMID=$_REQUEST["PMID"];
$TableName=reTableName($mydb,$MenuId);
CheckRule($MenuId,$mydb,$TableName,"Update");//检查登陆权限
$FormConfig1=GetFormConfig($mydb,$MenuId);
$sql="select ".$SystemTablename[2]."10 from ".DQ.$SystemTablename[2]." where ".$SystemTablename[2]."0=".$MenuId;
$rsc=$mydb->db_query($sql);
if($rs=$mydb->db_fetch_array($rsc)){
$Configother=explode(",",$rs[$SystemTablename[2]."10"]);
}
if(strlen($FormConfig1)<1) die;
$ArrFormConfig=explode(",",$FormConfig1);
$configarr=array();
$i=0;
foreach($ArrFormConfig as $k=>$v)
{
$arr=explode("|",$v);
$configarr[$i]=$arr;
$i++;
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>保存修改</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
$ID=$_REQUEST["ID"];
if(strlen($MenuId)<1)
{
$MenuId=-1;
}
echo CurrPosition((int)($MenuId),$mydb);
$FieldCount=GetTableFieldCount($mydb,$TableName);
$myFields=array();
for($i=1;$i<$FieldCount;$i++){
if($_REQUEST["FieldName_".$i."_class"] =="" && $_REQUEST["FieldName_".$i] !=""){
if($_REQUEST["FieldName_".$i."_Min"]!=""){
$temp="";
$temp=$_REQUEST["st".$_REQUEST["FieldName_".$i."_Min"]];//当是无限级下拉菜单时
if($temp!=""){
$myFields[$i]=$temp;
}
else{
$myFields[$i]=$_REQUEST["FieldName_".$i."_Min"];
}
}
else{
$tempqwe=$_REQUEST["FieldName_".$i.""];
if(is_array($tempqwe)){
foreach($tempqwe as $t){
$myFields[$i]=$myFields[$i].$t.",";
}
$myFields[$i]=",".$myFields[$i];
}
else{
$myFields[$i]=$tempqwe;
}
//当是数字型时,转化为数字
if($configarr[$i]["1"]=="8"){
$myFields[$i]=strtotime($myFields[$i]);
}
unset($tempqwe);
}
}
else{
$temp=$_REQUEST["st".$_REQUEST["FieldName_".$i.""]];//当是无限级下拉菜单时
if($temp!=""){
$myFields[$i]=$temp;
}
else{
if($_REQUEST["FieldName_".$i."_class"]!="")
{
$myFields[$i]=$_REQUEST["FieldName_".$i."_class"];
}else{
$myFields[$i]=$_REQUEST["FieldName_".$i.""];
}
}
}
}
$myFields[0]=$ID;
$mydb->TableName=$TableName;
$mydb->ArrFields=$myFields;
$mydb->Update();
//======================================若有模板选项,生成静态文件件
$temp1="生成选项没有执行";
if($_REQUEST["moban"]!="" and $_REQUEST["JingTaihtml"]!="" and strstr($_REQUEST[$_REQUEST["JingTaihtml"]],"."))
{
require_once(RootDir."/"."inc/ActionFile.Class.php");
$myFile=new ActionFile();
if($myFile->CreateAnyPageToPage("http://".$_SERVER['HTTP_HOST']."/".Q.$_REQUEST["moban"]."".$ID,RootDir.$_REQUEST[$_REQUEST["JingTaihtml"]]))
{
$temp1=",生成静态文件成功!";
}
else
{
$temp1=",生成静态文件失败!";
}
}
//=================================================================
$turngotourl=$Configother[6];
if(strlen($turngotourl)>7){
$turngotourl=str_replace("{MenuId}",$MenuId,$turngotourl);
$turngotourl=str_replace("{PMID}",$PMID,$turngotourl);
$turngotourl=str_replace("@",$ID,$turngotourl);
}
else{
$turngotourl="/".$SystemConest[1]."/system/".$TableName."/Index.php?MenuId=$MenuId&PMID=". $_REQUEST["PMID"]."&CurrPage=" .$_REQUEST["CurrPage"]."" ;
}
if($mydb->Returns >0)
{
addlog($mydb,$_SESSION["Login"][1],"更新".$TableName."记录id".$ID);
MessgBox("/".$SystemConest[1]."/Iamges/Right.jpg","数据保存成功!$temp1",$turngotourl) ;
}
else
{
MessgBox("/".$SystemConest[1]."/Iamges/Error.jpg","数据保存失败!$temp1",$turngotourl) ;
}
?>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Sys_Update_Save.php | PHP | asf20 | 4,319 |
<? session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
$mydb=new YYBDB();
CheckRule($MenuId,$mydb,$SystemTablename[2],"");//检查登陆权限
$CurrMenuId=$_REQUEST["CurrMenuId"];
if(strlen($CurrMenuId)<1)
$CurrMenuId=0;
if(GetMenu2Num($CurrMenuId)<1)
{
$mydb=new YYBDB();
$sqlrs="delete from ".$SystemConest[7].$SystemTablename[2]." where ".$SystemTablename[2]."0=".$CurrMenuId;
$returnNum=$mydb->db_update_query($sqlrs);
if($returnNum>0)
MessgBox("/".$SystemConest[1]."/Iamges/Right.jpg","删除成功!","Index.php");
else
MessgBox("/".$SystemConest[1]."/Iamges/Error.jpg","删除失败!","Index.php");
}
else
{
MessgBox("/".$SystemConest[1]."/Iamges/Error.jpg","请先删除子栏目!","Index.php");
}
?>
<script language="javascript">
window.parent.frames.item("leftFrame").location.reload();
</script> | 10npsite | trunk/guanli/system/menusys/Delete_Save.php | PHP | asf20 | 1,144 |
<?php
session_start();
require_once "../../../global.php";//$dirname."/".
require_once RootDir."/"."inc/config.php";
require_once RootDir."/"."inc/Function.Libary.php";
require_once RootDir."/"."inc/Uifunction.php";
require_once RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require_once RootDir."/".$SystemConest[1]."/system/Config.php";
require_once RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require_once RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
$TableName=$mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"Add");//检查登陆权限
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加产品</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css">
</head>
<body>
<?
$myClass=new ADMINClass();
$PMID = $_REQUEST["PMID"];
$OwerID=$_REQUEST["OwerID"];
if(strlen($MenuId)<1)
{
$MenuId=-1;
}
echo CurrPosition((int)($MenuId),$mydb);
//权限控制
CheckRule($MenuId,$mydb,$TableName,"Add");//检查登陆权限
$FormConfig1=GetFormConfig($mydb,$MenuId);
if(is_null($FormConfig1)) die;
$ArrFormConfig=explode(",",$FormConfig1);
//暂时不启用字段的排序
//$FieldsPaixuArr=getFieldsPaixuArr($mydb,$MenuId);
//$ArrFormConfig=getArrpaixu($ArrFormConfig,$FieldsPaixuArr,1);
//显示表单
?>
<form id="MyForm" name="MyForm" action="Sys_Add_Save.php?MenuId=<? echo $_REQUEST["MenuId"];?>&CMID=<? echo $_REQUEST["CMID"];?>&PMID=<? echo $_REQUEST["PMID"]?>&OwerID=<? echo $_REQUEST["OwerID"];?>" method="post">
<table width="95%" align=center>
<Tr><Td class="TdLine"><? echo $_REQUEST["Title"];?></Td></Tr>
</table>
<table width="95%" align=center cellspacing=3 class="TableLine">
<?
$i=0;
// $FieldsPaixuArr=getFieldsPaixuArr($mydb,$MenuId);
// $ArrFormConfig=getArrpaixu($ArrFormConfig,$FieldsPaixuArr,1);
foreach($ArrFormConfig as $FormConfig)
{
$FormConfig_arr=explode("|",$FormConfig);
if($FormConfig_arr[1]<>"7")
{
if($FormConfig_arr[1]<>"11")
{
if($FormConfig_arr[1]=="14")
{
CreateField($FormConfig,$mydb,"FieldName_" .$i,$i,$_REQUEST["OwerID"],159,737,"TdLine","InputNone");
}
else
{
CreateField($FormConfig,$mydb,"FieldName_" .$i,$i,"",159,737,"TdLine","InputNone");
}
}
else
{
CreateField($FormConfig,$mydb,"FieldName_" . $i,$i,"",159,737,"TdLine","InputNone");
}
}
else
{
CreateField($FormConfig,$mydb,"FieldName_".$i,$i,$FormConfig_arr[5],159,737,"TdLine","InputNone");
}
$i=$i+1;
}
?>
</table>
<label>
<div align="center"><br>
<input type="submit" name="Submit2" value=" 保存 " onClick="return CheckForm()" id="Submit2">
<input type="button" name="Submit3" value=" 取消 " onClick="javascript:window.history.back();">
</div>
</label>
</form>
</body>
</html>
<?
Form_check();
CheckForm($FormConfig1);
require_once RootDir."/"."inc/Calendar.php";
?>
| 10npsite | trunk/guanli/system/menusys/Sys_Add.php | PHP | asf20 | 3,213 |
<?php
session_start();
//此页为列表属性的显示页
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require "../classsys/function.php";
require RootDir."/"."inc/Function.Libary.php";
FunPostGetFilter(2);//过滤非法信息
$StrField=$_GET["StrField"];
$StrFieldArr=explode("|",$StrField);
$mydb=new YYBDB();
$MenuId=$StrFieldArr[2];
$TableName= $mydb->getTableName($MenuId);
$FieldsValues[]=array();
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
$querystr=$_SERVER["QUERY_STRING"];//获取所有的URL地址参数
$arr=explode("&",$querystr);
$temstr="";
for($i=0;$i<count($arr)-2;$i++)
{
$temstr=$temstr.$arr[$i]."&";
}
$querystr=substr($temstr,0,strlen($temstr)-1);
if($_GET["delc"]=="del")
{
$FieldsValues[0]=$_GET["id"];
$mydb->TableName=$TableName;
$mydb->ArrFields=$FieldsValues;
$num=$mydb->Delete();
if($mydb->Returns >0)
{
$string="删除成功";
}
else
{
$string="删除失败";
}
}
alert("Action_ListProperty.php?".$querystr,2,$string);
?> | 10npsite | trunk/guanli/system/menusys/Action_ListProperty_del.php | PHP | asf20 | 1,307 |
<?
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$CurrMenuId=$_REQUEST["CurrMenuId"];
$MenuId=$_REQUEST["CurrMenuId"];
$DBName=$_REQUEST["DBName"];
$MenuShow=$_REQUEST["MenuShow"];
$FieldCount=$_REQUEST["FieldCount"];
if(strlen($CurrMenuId)<1)
$CurrMenuId=0;
if(strlen($MenuId)<1)
$MenuId=0;
if(strlen($MenuShow)<1)
$MenuShow=0;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>表单设置</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<?
$mydb=new YYBDB();
$FieldCount=$_REQUEST["FieldCount"];
if($_REQUEST["Submit"]!="")
{
FormConfigSave($mydb,$CurrMenuId,CreateAllConfig((int)$FieldCount),$MenuShow);
}
$FormConfigValue=GetFormConfig($mydb,$MenuId);
if($FormConfigValue!="")
{
$arrFormConfig=explode(",",$FormConfigValue);
LoadUpdateForm($mydb,$MenuId,$arrFormConfig,$DBName);
}
else
LoadBankForm($mydb,$DBName);
?>
</form>
<table width="90%" height="132" border="0" align="center" cellpadding="0" cellspacing="0" class="YKTtable">
<tr class="YKTtr">
<td align="left" valign="top" class="YKTtd"><p>1、 数据验证 数据长度函数 CharLen/最小长度/最大长度 如: CharLen/2/12 <br>
数字判断 IsNum/最小值/最大值 如: IsNum/0/6000<br>
邮件地址 IsMail/最小长度/最大长度 如: IsMail/10/20<br>
日期判断 IsDateTime/最小值/最大值 如: IsDateTime/1988-10-12/2010-10-20<br>
复选框验证 Check_SelectBox/最小选择数/最大选择数 如: Check_SelectBox/1/10<br>
url连接地址 url/字段序号1/字段序号2 如:url/1/2 表示为<? echo htmlspecialchars("<a href='字段2的值+本条记录id值'>字段1的值</a>")?><br>
默认值 DV/字符串(或函数) 如:DV/我是默认值 或 DV/getstr() 或DV/getthisid(adssys_@)(原型:函数名称(表名_更新操作时的记录id值)),默认在列表显示时也会发生作用,默认值里的@符号也会替换成当前那一条的记录id.,里面不要添加双引号内容.<br>函数集在menusys/UserFunction.php文件里 <br>
复选框、单选框、下拉框在说明栏填写内容后,将为必添项;数据长度、数字判断、日期判断、 邮件地址在说明栏填写内容<br>
后,将为必添项。<br>
UV和DV的用法基本上一样,不同在于UV每次提交都会更新字段的值.而不管以前有没值。DV则是字段值是空值时才执行并替换掉.<br>
2、文件上传 文件大小/文件格式1\文件格式n/保存路经 如: 800/jpg\jpge\png\bmp\gif/\yybGuanLi\System\UpFile\</p>
<br> 3、单项多分属性就像线路中的第一天内容,第二天内容,第三天内容 但实际上,他们的内容都存在同一个字段里
<br> 4、价格列表属性的数据库默认存在price表里.可以在配置文件里更改
<br> 5、类别属性里的标识属性,当有系统默认的标识时会触发某个动作,并把返回的结果赋值给主表的第几个字段,格式如下:
选项时,有特定标识时触发的动作,格式中的num表示动作完成后的值返回给关联表的第几个字段,默认有"week|num","anydate|num"<br>
6 一些字段只能给特殊的员工帐号编辑功能 DV/usereditfiles(zs) 表示这个字段就只能是张三才能编辑.
<br>
7、栏目操作函数 lanmu/js:click>showoneid(50) 表示这一栏绑定个js的click函数(click可以换成其它的事件),这个click调用的是showoneid(50)函数 50表示这个showoneid要用到的字段号
<p> </p></td>
</tr>
</table>
<script language="javascript">
function GetClassList(DivName,i,SelectName)
{
if(i==2 || i==3 || i==4 )
{
if(DivName.date!="")
{
DivName.innerHTML=DivName.date;
}
else
{
DivName.innerHTML="<select name='"+ SelectName + "' id='"+ SelectName + "'><? echo GetClassList($mydb,0) ?></select>";
}
}
else if(i==22)
{
if(DivName.date!="")
{
DivName.innerHTML=DivName.date;
}
else
{
DivName.innerHTML="<select name='"+ SelectName + "' id='"+ SelectName + "'><? echo GetClassList($mydb,0,$SystemTablename[4]) ?></select>";
}
}
else if(i==18)
{
if(DivName.date!="")
{
DivName.innerHTML=DivName.date;
}
else
{
DivName.innerHTML="<select name='"+ SelectName + "' id='"+ SelectName + "'><? echo GetClassList($mydb,0,$SystemTablename[5]) ?></select>";
}
}
else
{
DivName.date=DivName.innerHTML;
DivName.innerHTML="";
}
}
</script>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Config.php | PHP | asf20 | 5,529 |
<?
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p><?
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$MenuId=$_REQUEST["MenuId"];
if(strlen($MenuId)<1)
$MenuId="0";
//response.write CurrPosition(Cint($MenuId),MyConn.Conn)
?></p>
<a href="Add.php?MenuId=<? echo $_REQUEST["MenuId"];?>" class="Link12">添加一级栏目</a>
<?
ShowMenu1List($MenuId);
?>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Index.php | PHP | asf20 | 1,065 |
<?
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$MyMenuDB=new YYBDB();
//CheckRule($MenuId,$MyMenuD,$SystemTablename[2],"Update");//检查登陆权限
$myClass=new ADMINClass();
$CurrMenuId=$_REQUEST["CurrMenuId"];
$MenuId=$_REQUEST["MenuId"];
if(strlen($CurrMenuId)<1)
{
$CurrMenuId=0;
}
if(strlen($MenuId)<1)
{
$MenuId=0;
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改栏目</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
$MenuName=$_REQUEST["SysMenu1"];
$MenuOrder=$_REQUEST["SysMenu3"];
if(strlen($MenuOrder)<1) $MenuOrder=1;
$StrTemp=$_REQUEST["SysMenu2"];
if(strlen($StrTemp)>0)
{
$MenuSysFile_arr=explode("|",$StrTemp);
$MenuSysFile=$MenuSysFile_arr[0];
$MenuSysName=$MenuSysFile_arr[1];
$MenuSysConfigFile=$MenuSysFile_arr[2];
$TableName=$MenuSysFile_arr[3];
}
$MenuFields[0]=$CurrMenuId;
$MenuFields[2]=$MenuSysFile;
$MenuFields[1]=$MenuName;
$MenuFields[4]=$MenuOrder;
$MenuFields[5]=str_replace(" ","",$MenuSysName);
$MenuFields[6]=str_replace(" ","",$MenuSysConfigFile);
$MenuFields[9]=str_replace(" ","",$TableName);
$MenuFields[12]=$_REQUEST["urllinks"];//栏目链接
$MyMenuDB->TableName=$SystemTablename[2];
$MyMenuDB->ArrFields=$MenuFields;
$MyMenuDB->Update();
echo "栏目修改成功,<a href=Index.php>返回</a>!";
?>
<script language="javascript">
<!--
window.parent.frames.item("leftFrame").location.reload();
-->
</script>
</body>
</html> | 10npsite | trunk/guanli/system/menusys/Update_Save.php | PHP | asf20 | 1,964 |
<?php
session_start();
require_once "../../../global.php";//$dirname."/".
require_once RootDir."/"."inc/config.php";
require_once RootDir."/"."inc/Uifunction.php";
require_once RootDir."/"."inc/Function.Libary.php";
require_once RootDir."/".$SystemConest[1]."/system/Config.php";
require_once RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require_once RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require_once RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
$TableName=$mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改产品</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
$PMID = $_REQUEST["PMID"];
if(strlen($MenuId)<1)
{
$MenuId=-1;
}
echo CurrPosition((int)($MenuId),$mydb);
$ID=$_REQUEST["ID"];
if($ID=="") die;
$FormConfig1=GetFormConfig($mydb,$MenuId);
if(strlen($FormConfig1)<1) die;
$ArrFormConfig=explode(",",$FormConfig1);
$FieldsPaixuArr=getFieldsPaixuArr($mydb,$MenuId);
if($FieldsPaixuArr!="") $ArrFormConfig_new=getArrpaixu($ArrFormConfig,$FieldsPaixuArr,1);
$sqlrs="Select * From " .$SystemConest[7].$TableName . " Where " .$TableName . "0=" .$ID;
$rsc=$mydb->db_select_query($sqlrs);
$rs=$mydb->db_fetch_array($rsc);
//显示表单
?>
<form id="MyForm" name="MyForm" action="Sys_Update_Save.php?MenuId=<? echo $MenuId;?>&ID=<? echo $ID;?>&PMID=<?php echo $PMID;?>&CurrPage=<?php echo $_REQUEST["CurrPage"];?>" method="post">
<table width="95%" align=center>
<Tr><Td class="TdLine"><?php echo $_REQUEST["Title"];?></Td></Tr>
</table>
<table width="95%" align=center cellspacing=3 class="TableLine">
<?php
for($i=1;$i<count($ArrFormConfig_new);$i++)
{
$n=$i;
if($FieldsPaixuArr!="") $n=getxufileds($ArrFormConfig_new[$i],$ArrFormConfig);
CreateField($ArrFormConfig[$n],$mydb,"FieldName_" .$n,$n,$rs[$n],159,737,"TdLine","InputNone",$ID);
}
?>
</table>
<label>
<div align="center"><br>
<input type="submit" name="Submit2" value=" 保存 " onClick="return CheckForm()" id="Submit2">
<input type="button" name="Submit3" value=" 取消 " onClick="javascript:window.history.back();">
</div>
</label>
</form>
<?
Form_check();
CheckForm($FormConfig1);
require_once RootDir.'/inc/Calendar.php';//加载日期控件
?>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Sys_Update.php | PHP | asf20 | 2,595 |
<?php
session_start();
//此页为列表属性的显示页
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require "../classsys/function.php";
require RootDir."/"."inc/Function.Libary.php";
FunPostGetFilter(2);//过滤非法信息
$StrField=$_GET["StrField"];
$shangjiId=$_REQUEST["shangjiId"]; //价格列表里的线路外键所在字段序号
$cid=$_REQUEST["cid"]; //当前价格所在的线路ID
$StrFieldArr=explode("|",$StrField);
$mydb=new YYBDB();
//权限检查
$MenuId=$StrFieldArr[2];
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
$querystr=$_SERVER["QUERY_STRING"];//获取所有的URL地址参数
$fieldsTitleNumerical=$_POST["fieldsTitleNumerical"];
$arrPoststrings=explode(",",$fieldsTitleNumerical);
$FieldsValues[]=array();
$ID=$_POST["id"];
foreach($arrPoststrings as $key=> $values)
{
$FieldsValues[$values]=$_POST["FieldName_".$values];
}
if($shangjiId!="")
{
$FieldsValues[$shangjiId]=$cid;
}
if($ID!="")
{
$FieldsValues[0]=$ID;
$mydb->TableName=$TableName;
$mydb->ArrFields=$FieldsValues;
$mydb->Update();
if($mydb->Returns >0)
{
$string="修改成功";
}
else
{
$string="修改失败";
}
}
else
{
$MenuIdAt=$mydb->getMenuIdNum($MenuId);//MenuId所在字段
if($MenuIdAt>0) $FieldsValues[$MenuIdAt]=$MenuId;
$mydb->TableName=$TableName;
$mydb->ArrFields=$FieldsValues;
$mydb->Add();
if($mydb->Returns >0)
{
$string="添加成功";
}
else
{
$string="添加失败";
}
}
alert("Action_ListProperty.php?".$querystr,2,$string);
?>
| 10npsite | trunk/guanli/system/menusys/Action_ListProperty_save.php | PHP | asf20 | 1,912 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require $dirname."/"."inc/config.php";
require $dirname."/"."inc/Uifunction.php";
require $dirname."/".$guanliDir."/UIFunction/adminClass.php";
require $dirname."/".$guanliDir."/System/Config.php";
require $dirname."/".$guanliDir."/System/MenuSys/function.php";
require $dirname."/".$guanliDir."/System/ClassSys/function.php";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>保存修改</title>
<link href="../../../Inc/Css.css" rel="stylesheet" type="text/css">
</head>
<body>
<?
$myClass=new ADMINClass();
$myClass->loginCheck();//验证管理员是否登陆
$myClass->guanliDir=$guanliDir;
$myClass->loginAdminCheck($chaojizhanghao);//验证超级管理员登陆
$MenuId=$_REQUEST["MenuId"];
$ID=$_REQUEST["ID"];
$mydb=new YYBDB();
$TableName=reTableName($mydb,$MenuId);
if(strlen($MenuId)<1)
{
$MenuId=-1;
}
echo CurrPosition((int)($MenuId),$mydb);
//权限控制
if(GetUpdateRule(GetUserMenuRuleValue($MenuId,$mydb,$_SESSION["Login"][0]))==false and $_SESSION["Login"][1]<>$chaojizhanghao)
{
$myClass->smPicPath="../../Iamges/Error.jpg";
$myClass->smMsg="您没有操作权限!";
$myClass->smURL="/".$guanliDir."/System/".$TableName."/Index.php?MenuId=".$MenuId;
$myClass->MessgBox();
die;
}
$FieldCount=GetTableFieldCount($mydb,$TableName);
$myFields=array();
for($i=1;$i<$FieldCount;$i++)
{
if($_REQUEST["FieldName_".$i]!="")
{
echo $_REQUEST["FieldName_$i_Min"]."-----$i"."<br>";
if($_REQUEST["FieldName_$i_Min"]!="")
{
$myFields[$i]=$_REQUEST["FieldName_$i_Min"];
}
else
{
$myFields[$i]=$_REQUEST["FieldName_$i"];
}
}
else
{
$myFields[$i]="";
}
}
foreach($myFields as $k1)
{
echo $k1."<br>";
}
die;
$myFields[0]=$ID;
$mydb->TableName=$TableName;
$mydb->ArrFields=$myFields;
$mydb->Update();
$myClass=new ADMINClass();
$myClass->smPicPath=$dirname."/".$guanliDir."/Iamges/Right.jpg";
$myClass->smMsg="操作成功!";
$myClass->smURL="/".$guanliDir."/System/".$TableName."/Index.php?MenuId=$MenuId&PMID=". $_REQUEST["PMID"]."&CurrPage=" .$_REQUEST["CurrPage"]."";
$myClass->MessgBox();
?>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Sys_Update_Save_bak.php | PHP | asf20 | 2,328 |
<? session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/".$SystemConest[1]."/system/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$mydb=new YYBDB();
$id=$_REQUEST["Id"];
$rsc=$mydb->db_query("select * from ".$SystemConest[7].$SystemTablename[2]." where ".$SystemTablename[2]."0=".$id);
$sql="";
$numRsFields=$mydb->db_num_fields($rsc);
$myFields=array();
$rs=$mydb->db_fetch_array($rsc);
for($i=1;$i<$numRsFields;$i++)
{
$myFields[$i]=$rs[$i];
}
$mydb->TableName=$SystemTablename[2];
$mydb->ArrFields=$myFields;
$mydb->Add();
if($mydb->Returns>0)
{
MessgBox("/".$SystemConest[1]."/Iamges/Right.jpg","操作成功!","/".$SystemConest[1]."/system/menusys/Index.php?MenuId=$MenuId&PMID=". $_REQUEST["PMID"]."&CurrPage=" .$_REQUEST["CurrPage"]."&OwerID=".$_REQUEST["OwerID"]) ;
}
else
{
MessgBox("/".$SystemConest[1]."/Iamges/Error.jpg","操作失败!","/".$SystemConest[1]."/system/menusys/Index.php?MenuId=$MenuId&PMID=". $_REQUEST["PMID"]."&CurrPage=" .$_REQUEST["CurrPage"]."&OwerID=".$_REQUEST["OwerID"]) ;
}
?>
<script language="javascript">
<!--
window.parent.frames.item("leftFrame").location.reload();
-->
</script> | 10npsite | trunk/guanli/system/menusys/CopyColumn.php | PHP | asf20 | 1,490 |
<?php
session_start();
require "../../../global.php";
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Function.Libary.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
require RootDir."/".$SystemConest[1]."/system/log/addlog.php";
FunPostGetFilter(2);//过滤非法信息
$PMID=$_REQUEST["PMID"];
$mydb=new YYBDB();
$TableName=$mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"Add");//检查登陆权限
$FormConfig1=GetFormConfig($mydb,$MenuId);
$sql="select ".$SystemTablename[2]."10 from ".DQ.$SystemTablename[2]." where ".$SystemTablename[2]."0=".$MenuId;
$rsc=$mydb->db_query($sql);
if($rs=$mydb->db_fetch_array($rsc)){
$Configother=explode(",",$rs[$SystemTablename[2]."10"]);
}
if(strlen($FormConfig1)<1) die;
$ArrFormConfig=explode(",",$FormConfig1);
$configarr=array();
$i=0;
foreach($ArrFormConfig as $k=>$v)
{
$arr=explode("|",$v);
$configarr[$i]=$arr;
$i++;
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新增保存</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
$PMID = $_REQUEST["PMID"];
$OwerID=$_REQUEST["OwerID"];
if(strlen($MenuId)<1)
{
$MenuId=-1;
}
//权限控制
CheckRule($MenuId,$mydb,$TableName,"Add");
$FieldCount=GetTableFieldCount($mydb,$TableName);
$myFields=array();
for($i=1;$i<$FieldCount;$i++)
{
if($_REQUEST["FieldName_".$i]!="")
{
if($_REQUEST["FieldName_".$i."_Min"]!="")
{
$temp="";
$temp=$_REQUEST["st".$_REQUEST["FieldName_".$i."_Min"]];//当是无限级下拉菜单时
if($temp!="")
{
$myFields[$i]=$temp;
}
else
{
$myFields[$i]=($_REQUEST["FieldName_".$i."_Min"]);
}
}
else
{
$tempqwe=$_REQUEST["FieldName_".$i.""];
if(is_array($tempqwe))
{
foreach($tempqwe as $t)
{
$myFields[$i]=$myFields[$i].$t.",";
}
$myFields[$i]=substr($myFields[$i],0,-1);
}
else
{
$myFields[$i]=$tempqwe;
}
//当是数字型时,转化为数字
if($configarr[$i]["1"]=="8")
{
$myFields[$i]=strtotime($myFields[$i]);
}
unset($tempqwe);
}
}
else
{
if($_REQUEST["FieldName_".$i."_class"]!="")
{
$myFields[$i]=mysql_real_escape_string($_REQUEST["FieldName_".$i."_class"]);
}
}
}
$MenuIdAt=$mydb->getMenuIdNum($MenuId);//MenuId所在字段
if($MenuIdAt>0) $myFields[$MenuIdAt]=$MenuId;
$mydb->TableName=$TableName;
$mydb->ArrFields=$myFields;
$mydb->Add();
//========================================================若有模板选项,生成静态文件件
$temp1="";
$turngotourl=$Configother[6];
if(strlen($turngotourl)>7){
$turngotourl=str_replace("{MenuId}",$MenuId,$turngotourl);
$turngotourl=str_replace("{PMID}",$PMID,$turngotourl);
$turngotourl=str_replace("@",$ID,$turngotourl);
}
else{
$turngotourl="/".$SystemConest[1]."/system/".$TableName."/Index.php?MenuId=$MenuId&PMID=". $_REQUEST["PMID"]."&CurrPage=" .$_REQUEST["CurrPage"]."" ;
}
if($mydb->Returns >0)
{
addlog($mydb,$_SESSION["Login"][1],"添加"+$TableName."记录".$MenuId);//添加日志
MessgBox("/".$SystemConest[1]."/Iamges/Right.jpg","操作成功!$temp1",$turngotourl);
}
else
{
MessgBox("/".$SystemConest[1]."/Iamges/Error.jpg","操作失败!$temp1",$turngotourl);
}
?>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Sys_Add_Save.php | PHP | asf20 | 3,736 |
<?php
session_start();
//此页为列表属性的显示页
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require "../classsys/function.php";
require RootDir."/"."inc/Function.Libary.php";
FunPostGetFilter(2);//过滤非法信息
$StrField=$_GET["StrField"];
$shangjiId=$_REQUEST["shangjiId"]; //价格列表里的线路外键所在字段序号
$cid=$_REQUEST["cid"]; //当前价格所在的线路ID
$StrFieldArr=explode("|",$StrField);
$mydb=new YYBDB();
//权限检查
$MenuId=$StrFieldArr[2];
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"Save");//检查登陆权限
$querystr=$_SERVER["QUERY_STRING"];//获取所有的URL地址参数
$fieldsTitleNumerical=$_POST["fieldsTitleNumerical"];
$arrPoststrings=explode(",",$fieldsTitleNumerical);
$FieldsValues[]=array();
$ID=$_POST["id"];
foreach($arrPoststrings as $key=> $values)
{
$FieldsValues[$values]=$_POST["FieldName_".$values];
}
if($shangjiId!="")
{
$FieldsValues[$shangjiId]=$cid;
}
if($ID!="")
{
$FieldsValues[0]=$ID;
$mydb->TableName=$TableName;
$mydb->ArrFields=$FieldsValues;
$mydb->Update();
if($mydb->Returns >0)
{
$string="修改成功";
}
else
{
$string="修改失败";
}
}
else
{
$MenuIdAt=$mydb->getMenuIdNum($MenuId);//MenuId所在字段
if($MenuIdAt>0) $FieldsValues[$MenuIdAt]=$MenuId;
$mydb->TableName=$TableName;
$mydb->ArrFields=$FieldsValues;
$mydb->Add();
if($mydb->Returns >0)
{
$string="添加成功";
}
else
{
$string="添加失败";
}
}
alert("Action_PriceProperty.php?".$querystr,2,$string);
?>
| 10npsite | trunk/guanli/system/menusys/Action_PriceProperty_save.php | PHP | asf20 | 1,915 |
<? session_start();
?>
<script language="javascript" src="/jsLibrary/clienthint_ajax.js"></script>
<?php
require "../../../global.php";
require RootDir."/"."inc/config.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
$mydb=new YYBDB();
$fid=$_GET['fid'];
$MenuId=$_GET['MenuId'];
$FieldName=$_GET['FieldName'];
$sql="select * from ".$SystemConest[7].$SystemTablename[0]." where ".$SystemTablename[0].getMenuidofFieldNum($mydb,$MenuId)."=$MenuId and ".$SystemTablename[0]."2=$fid";
$result=$mydb->db_query($sql);
$num=$mydb->db_num_rows($result);
if($num<1) die;
echo "<input type='hidden' value='".$FieldName.$fid."' id='".$FieldName."_Min'>";
?>
<select id="st<? echo $FieldName.$fid;?>" name="st<? echo $FieldName.$fid;?>">
<option value='-1' selected>请选择分类</option>
<?php
while($row=mysql_fetch_row($result)){
echo "<option value='$row[0]'>".htmlspecialchars($row[1])."</option>";
}
?>
</select>
<?php echo "<span id='".$FieldName.$fid."'></span>";?>
<span id="<?php echo $FieldName.$fid;?>_Span_c"></span>
<script language="javascript">
$(document).ready(function(){
$("#st<? echo $FieldName.$fid;?>").live("change", function(){
var temp=$(this).val();
alert(temp+"g");
$("#<?php echo $FieldName."_class";?>").val(temp+"");
});
});
</script>
| 10npsite | trunk/guanli/system/menusys/showClass_select.php | PHP | asf20 | 1,454 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
$TableName=reTableName($mydb,$MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
?>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>删除信息</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
$MenuId=$_REQUEST["MenuId"];
$PMID = $_REQUEST["PMID"];
$OwerID=$_REQUEST["OwerID"];
$ID=$_REQUEST["ID"];
if(strlen($MenuId)<1)
{
$MenuId=-1;
}
//权限控制
CheckRule($MenuId,$mydb,$TableName,"Update");
if(str_replace(" ","",$ID)=="") $ID=0;
?>
确定要删除本条信息? <a href="Sys_Delete_Save.php?ID=<? echo $ID?>&MenuId=<? echo $MenuId?>&PMID=<? echo $PMID;?>">[确定]</a> <a href="#" onClick="javascript:window.history.back();">[返回]</a>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Sys_Delete.php | PHP | asf20 | 1,276 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
require RootDir."/".$SystemConest[1]."/system/log/addlog.php";
$mydb=new YYBDB();
$TableName=reTableName($mydb,$MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
$sql="select ".$SystemTablename[2]."10 from ".DQ.$SystemTablename[2]." where ".$SystemTablename[2]."0=".$MenuId;
$rsc=$mydb->db_query($sql);
if($rs=$mydb->db_fetch_array($rsc)){
$Configother=explode(",",$rs[$SystemTablename[2]."10"]);
}
?>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>删除信息</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
$MenuId=$_REQUEST["MenuId"];
$PMID = $_REQUEST["PMID"];
$OwerID=$_REQUEST["OwerID"];
$ID=$_REQUEST["ID"];
if(strlen($MenuId)<1)
{
$MenuId=-1;
}
//权限控制
CheckRule($MenuId,$mydb,$TableName,"Del");//检查登陆权限
$turngotourl=$Configother[6];
if(strlen($turngotourl)>7){
$turngotourl=str_replace("{MenuId}",$MenuId,$turngotourl);
$turngotourl=str_replace("{PMID}",$PMID,$turngotourl);
$turngotourl=str_replace("@",$ID,$turngotourl);
}
else{
$turngotourl="/".$SystemConest[1]."/system/".$TableName."/Index.php?MenuId=$MenuId&PMID=". $_REQUEST["PMID"]."&CurrPage=" .$_REQUEST["CurrPage"]."" ;
}
$myFields[0]=$ID;
$mydb->TableName=$TableName;
$mydb->ArrFields=$myFields;
$mydb->Delete();
if($mydb->Returns >0)
{
addlog($mydb,$_SESSION["Login"][1],"删除".$TableName."记录id".$ID);//添加日志功能
MessgBox("/".$SystemConest[1]."/Iamges/Right.jpg","删除成功!",$turngotourl) ;
}
else
{
MessgBox("/".$SystemConest[1]."/Iamges/Error.jpg","删除失败!",$turngotourl) ;
}
?>
</body>
</html> | 10npsite | trunk/guanli/system/menusys/Sys_Delete_Save.php | PHP | asf20 | 2,155 |
<?
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
if($_SESSION["Login"][1]<>$SystemConest[2])
{
die("你不是超级管理员,没有权限设置");
}
$CurrMenuId=$_REQUEST["CurrMenuId"];
$MenuId=$_REQUEST["MenuId"];
if(strlen($CurrMenuId)<1)
$CurrMenuId=0;
if(strlen($MenuId)<1)
$MenuId=0;
$Menu1Name=$_REQUEST["Menu1Name"];
?>
<!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" />
<title>修改栏目</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
$myc=new YYBDB();
echo CurrPosition($CurrMenuId,$myc)." > 栏目修改";
$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=".$CurrMenuId;
$rsc=$myc->db_select_query($sqlrs);
$rs=$myc->db_fetch_array($rsc);
?>
</p>
<form id="form1" name="form1" method="post" action="Update_Save.php?CurrMenuId=<? echo $CurrMenuId;?>&MenuId=<? echo $_REQUEST["MenuId"];?>">
<p> </p>
<p> </p>
<p> </p>
<table width="95%" border="0" align="center">
<tr>
<td width="35%"><div align="right">栏目名称:</div></td>
<td width="65%"><label>
<input name="SysMenu1" type="text" value="<? echo $rs[1];?>" size="30" />
</label></td>
</tr>
<tr>
<td><div align="right">栏目功能:</div></td>
<td>
<? echo SystemList($rs[2],"SysMenu2"); ?></td>
</tr>
<tr>
<td align="right">链接地址:</td>
<td> <input name="urllinks" type="text" size="30" value="<? echo $rs[12];?>"/></td>
</tr>
<tr>
<td><div align="right">排序:</div></td>
<td><label>
<input name="SysMenu3" type="text" value="<? echo $rs[4];?>" size="10" />
</label></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="保存" />
<input type="button" name="Submit2" value="取消" onClick="window.history.back();"/>
</label></td>
</tr>
</table>
</form>
<div style="margin-left:100px;">1、当链接地址有值时。左边的栏目的链接为此值。后台路径的文件夹名请用“{houtaipath}”代替</div>
</body>
</html>
| 10npsite | trunk/guanli/system/menusys/Update.php | PHP | asf20 | 2,707 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>关系系统</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<? ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd"); ?>
</body>
</html>
| 10npsite | trunk/guanli/system/connectsys/Index.php | PHP | asf20 | 1,024 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>评论管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/pinglun/Index.php | PHP | asf20 | 1,030 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>友情链接管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/friendlinks/Index.php | PHP | asf20 | 1,037 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>物业租购系统</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/zhugousys/Index.php | PHP | asf20 | 1,033 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>招聘职位</title>
<link href="../../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/worksys/Index.php | PHP | asf20 | 1,034 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/messagesys/Index.php | PHP | asf20 | 1,029 |
<?php if (!defined('THINK_PATH')) exit();?>
<script src="/Public/jsLibrary/jquery/jquery.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="/Public/jsLibrary/Jslibary.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>房型管理</title>
<link href="/guanli/Inc/Css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
a {
font-size: 12px;
}
</style>
</head>
<body>
客栈列表<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" >
<Tr><TD>
<a href="/guanli/system/menusys/Sys_Add.php?MenuId=<?php echo ($MenuId); ?>&OwerID=&PMID=<?php echo ($_GET['PMID']); ?>&Title=添加客栈列表" target="_self" class="Link12">添加房型</a>
<a href="/guanli/system/price/Index.php?MenuId=612&PMID=<?php echo ($hid); ?>">进入时间段设置与管理</a>
</td></tr>
</table>
<div style="margin-left:50px;">
<div>请选择下面的时间段:
<select name="choosetime" id="choosetime">
<?php if(is_array($pricers)): $i = 0; $__LIST__ = $pricers;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voprice): $mod = ($i % 2 );++$i;?><option
<?php if($pid == $voprice['price0']): ?>selected<?php endif; ?>
value="<?php echo ($voprice['price0']); ?>::<?php echo ($voprice["price19"]); ?>"><?php echo ($voprice["price1"]); echo (date("Y-m-d",$voprice["price13"])); ?>至<?php echo (date("Y-m-d",$voprice["price14"])); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
</div>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<form > <tr>
<td width="30%">关键字:<input name="keyword" type="text" /> <input name="搜索" type="submit" value="搜索" /></td>
<td width="67%"></td>
<td width="3%"> </td>
</tr>
</form>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class="YKTtable">
<tr >
<td width="45" class="YKTth"><div align="center">ID</div></td>
<td width="178" class="YKTth">名称(房间类型)</td>
<td width="58" class="YKTth">市场价</td>
<td width="61" class="YKTth">梦之旅价</td>
<td width="75" class="YKTth">提前预定天数</td>
<td width="91" class="YKTth">定金支付比例</td>
<td width="111" class="YKTth">库存数</td>
<td width="111" class="YKTth">底价</td>
<td width="165" class="YKTth"><div align="center">日历价格设置</div></td>
<td width="168" class="YKTth"><div align="center">操 作</div></td>
</tr>
<form action="<?php echo U('price/saveroomprice');?>" method="post" name="rform" id="rform">
<?php if(is_array($rs)): $i = 0; $__LIST__ = $rs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr id="price<?php echo ($vo["hotelroom0"]); ?>" data="">
<td class="YKTtd" ><div align="">
<?php echo ($vo["hotelroom0"]); ?> </div>
</td>
<td class="YKTtd" ><div align=""><?php echo ($vo["hotelroom1"]); ?>
(<?php if($vo["hotelroom4"] == '5755'): ?>多床间<?php else: ?>标准间<?php endif; ?>)
</div>
</td>
<td class="YKTtd" ><div align=""><input name="marktprice<?php echo ($vo["hotelroom0"]); ?>" id="marktprice<?php echo ($vo["hotelroom0"]); ?>" type="text" size="4"></div>
</td>
<td class="YKTtd" ><div align=""><input name="mzlprice<?php echo ($vo["hotelroom0"]); ?>" id="mzlprice<?php echo ($vo["hotelroom0"]); ?>" type="text" size="4"></div>
</td>
<td class="YKTtd" ><div align=""><input name="tiqianyudin<?php echo ($vo["hotelroom0"]); ?>" id="tiqianyudin<?php echo ($vo["hotelroom0"]); ?>" type="text" size="4"></div>
</td>
<td class="YKTtd" ><div align=""><input name="zhifubili<?php echo ($vo["hotelroom0"]); ?>" id="zhifubili<?php echo ($vo["hotelroom0"]); ?>" type="text" size="4"></div>
</td>
<td class="YKTtd" ><div align=""><input value="" name="kucunshu<?php echo ($vo["hotelroom0"]); ?>" id="kucunshu<?php echo ($vo["hotelroom0"]); ?>" type="text" size="4"></div>
</td>
<td class="YKTtd" ><div align=""><input name="dijia<?php echo ($vo["hotelroom0"]); ?>" id="dijia<?php echo ($vo["hotelroom0"]); ?>" type="text" size="4"></div>
</td>
<td class="YKTtd" ><div align="">
<a href="/inc/calendarprice.php?MenuId=<?php echo ($MenuId); ?>&hid=<?php echo ($hid); ?>&tid=<?php echo ($vo["hotelroom0"]); ?>&fieldid=12">日历价格设置</a> </div>
</td>
<td class="YKTtd" ><div align="center">
<a href="/guanli/system/menusys/Sys_Update.php?MenuId=<?php echo ($MenuId); ?>&ID=<?php echo ($vo["hotelroom0"]); ?>&CMID=&PMID=<?php echo ($hid); ?>&OwerID=<?php echo ($vo["hotelroom0"]); ?>&Title=修改客栈列表&CurrPage=">修改房型</a>
| <a href="/guanli/system/menusys/Sys_Delete.php?MenuId=<?php echo ($MenuId); ?>&ID=<?php echo ($vo["hotelroom0"]); ?>&CMID=&PMID=<?php echo ($hid); ?>&OwerID=<?php echo ($vo["hotelroom0"]); ?>&Title=删除客栈列表">删除房型</a>
</div></td><?php endforeach; endif; else: echo "" ;endif; ?>
<input type="hidden" value="<?php echo ($pid); ?>" name="thispid" id="thispid">
<input type="hidden" value="<?php echo ($hid); ?>" name="hid" id="hid">
<input type="hidden" value="<?php echo ($MenuId); ?>" name="MenuId" id="MenuId">
<input type="hidden" value="<?php echo ($_GET['PMID']); ?>" name="PMID" id="PMID">
<input type="hidden" value="" name="zv" id="zv">
</form>
</table>
<div align='right' style="margin-right:200px;"><input type="button" name="mysave" id="mysave" value="保 存">
</div>
<script>
$(document).ready(function(){
//========================每次选择后就重新加载
$("#choosetime").change(function(){
checkIndex=$("#choosetime").val();
tt=getkuohaostr(checkIndex,/^([\d]+)/);
window.location.href="<?php echo U('hotelroom/listroom');?>/MenuId/<?php echo ($MenuId); ?>/hid/<?php echo ($hid); ?>/pid/"+tt+"/PMID/<?php echo ($_GET['PMID']); ?>";
});
//添加保存时的数据检查
$("#mysave").bind("click",function(){
var falg=0;//是否通过检查标识
$("input[id^='marktprice']").each(function(){
falg=0;
id=$(this).attr("id");
if(!nzeletype(id,"请输入正确的市场价","float")) return false;
falg=1;
});
$("input[id^='mzlprice']").each(function(){
falg=0;
id=$(this).attr("id");
if(!nzeletype(id,"请输入正确的梦之价","float")) return false;
falg=1;
});
if(falg==0){
return false;
}
//=============================================组合值
zvs="";//组合后的字符串
$("tr[id^='price']").each(function(){
pid=$(this).attr("id");
pid=pid.replace("price","");
zvs=zvs+"{id:"+pid+"}{scj:"+$("#marktprice"+pid).val()+"}{mzlj:"+$("#mzlprice"+pid).val()+"}{tiqianyudin:"+$("#tiqianyudin"+pid).val()+"}{zfbl:"+$("#zhifubili"+pid).val()+"}{dijia:"+$("#dijia"+pid).val()+"}{kucunshu:"+$("#kucunshu"+pid).val()+"},";
});
zvs=zvs.replace(/,$/,"");
if(!zvs.match(/^[\{\w\:\.\,}]+$/)){
alert("格式不对,请认真填写");
return false;
}
$("#zv").val(zvs);
$("#rform").submit();
});
//当没有选定的时间段值时,初始化默认第一个的值
pid="<?php echo ($pid); ?>";
//var checkText=$("#chufaduan").find("option:selected").text();//获取选中的值,以便于右边计算
if(pid!="0"){
initsrr="<?php echo ($initarr["price19"]); ?>";
inum=-1;
if(initsrr!=""){
initarr=initsrr.split(",");
inum=initarr.length;
}
//=====================循环给相应的dom赋值
$("input[id^='marktprice']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("marktprice","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{scj:([\d\.]+)\}/));
}
});
$("input[id^='mzlprice']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("mzlprice","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{mzlj:([\d\.]+)\}/));
}
});
$("input[id^='dijia']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("dijia","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{dijia:([\d\.]+)\}/));
}
});
$("input[id^='zhifubili']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("zhifubili","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{zfbl:([\d\.]+)\}/));
}
});
$("input[id^='tiqianyudin']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("tiqianyudin","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{tiqianyudin:([\d\.]+)\}/));
}
});
$("input[id^='kucunshu']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("kucunshu","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{kucunshu:([\d\.]+)\}/));
}
});
}
if(pid=="0"){
var firststr =$("#choosetime").get(0).options[0].value;//获取第一项的值
inum=-1;
$("#thispid").val(getkuohaostr(firststr,/^([\d]+)/));
if(firststr!=""){
firststr=firststr.replace(/^[\d]+\:\:/,"");
initarr=firststr.split(",");
inum=initarr.length;
}
//=====================循环给相应的dom赋值
$("input[id^='marktprice']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("marktprice","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{scj:([\d\.]+)\}/));
}
});
$("input[id^='mzlprice']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("mzlprice","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{mzlj:([\d\.]+)\}/));
}
});
$("input[id^='dijia']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("dijia","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{dijia:([\d\.]+)\}/));
}
});
$("input[id^='zhifubili']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("zhifubili","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{zfbl:([\d\.]+)\}/));
}
});
$("input[id^='tiqianyudin']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("tiqianyudin","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{tiqianyudin:([\d\.]+)\}/));
}
});
$("input[id^='kucunshu']").each(function(){
for(i=0;i<inum;i++){
thisid=$(this).attr("id");
thisid=thisid.replace("kucunshu","");
temp=getkuohaostr(initarr[i],/\{id:([\d\.]+)\}/);
if(temp==thisid) $(this).val(getkuohaostr(initarr[i],/\{kucunshu:([\d\.]+)\}/));
}
});
}
//默认库存数,当没有库存数时,就默认房型里填写的值 显示格式为{id:值1}
strl="{<?php if(is_array($rs)): $i = 0; $__LIST__ = $rs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; echo ($vo["hotelroom0"]); ?>:<?php echo ($vo["hotelroom8"]); ?>,<?php endforeach; endif; else: echo "" ;endif; ?>}";
$("input[id^='kucunshu']").each(function(){
v=$(this).val();
if(v==""){
id=$(this).attr("id");
id=id.replace("kucunshu","");
aa=strl.match(/[\d]+\:[\d\.]*/g);
if(aa!=null){
numx=aa.length;
for(k=0;k<numx;k++){
tempjs=aa[k].match(/[\d]*$/);
idn=getkuohaostr(aa[k],/([\d]+)\:/);
if(idn==id && tempjs!=""){
$(this).val(tempjs);
}
}
}
}
});
});
</script>
</body>
</html> | 10npsite | trunk/guanli/Runtime/Cache/f38afde4bde247f57e6b0a50f63eb0a0.php | PHP | asf20 | 12,875 |
<?php if (!defined('THINK_PATH')) exit();?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../Inc/Css.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body,td,th {
font-size: 12px;
}
</style>
</head>
<body>
<script language="javascript" src="/jsLibrary/jquery/jquery.js"></script>
<script language="javascript" src="/jsLibrary/jquery/jquery.contextmenu.r2.js"></script>
<script language="javascript" src="/jsLibrary/clearbox.js"></script>
<script language="javascript">
$(document).ready(function(){
//把所有的输入框放是1970年的值清空
});
</script>
<style>
.titletdbg{background-color:#EAEAEA;}
</style>
<table width="800" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="33%" height="38" align="center" style="font-size:16px; font-weight:bold">旅游产品客栈订单处理
</td>
</tr>
</table>
<table width="800" border="1" cellspacing="0" cellpadding="0" align="center">
<form action="__URL__<?php echo (FGF); ?>hotelsaveisdo" method="post" name="form1">
<tr>
<td width="117" height="39" align="center" class="titletdbg"><strong>订单号</strong></td>
<td width="278"> <?php echo ($rs["orderform3"]); ?></td>
<td width="92" align="center" class="titletdbg"><strong>产品名称</strong></td>
<td width="303"> <a href="__KZURL__/hotel/view-id-<?php echo ($rs["orderform1"]); ?>" target="_blank"><?php echo ($rs["chotel1"]); ?></a></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg"><strong>下单日期</strong></td>
<td> <?php echo (date("Y-m-d H:i:s",$rs["orderform6"])); ?></td>
<td align="center" class="titletdbg"><strong>预定日期</strong></td>
<td> <?php echo (date("Y-m-d H:i:s",$rs["orderform9"])); ?></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg"><strong>电子邮件</strong></td>
<td> <?php echo ($rs["orderform26"]); ?></td>
<td align="center" class="titletdbg"><strong>联系人</strong></td>
<td> <?php echo ($rs["orderform5"]); ?></td>
</tr>
<tr>
<td height="161" align="center" class="titletdbg"><strong>订单内容</strong></td>
<td colspan="3"> <?php echo ($rs["orderform10"]); ?>
</td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">确认书</td>
<td colspan="3"><a target="_blank" href="__GROUP__/affirm/hotelzhifu/orderid/<?php echo ($rs["orderform3"]); ?>">支付确认书</a></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg"><strong>是否处理该订单</strong></td>
<td colspan="3"> <?php echo (ui_checkbox_shenghe("orderform11",$rs["orderform11"])); ?>(√表示已处理)</td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg"><strong>处理意见</strong></td>
<td colspan="3">
<input type="radio" name="orderform12" id="orderform12" value="1" <?php echo (echochecked("1",$rs["orderform12"])); ?> >
欢迎你预定本产品,你的定单已接受,受理情况或部份变动请参考我们的处理意见<br>
<input type="radio" name="orderform12" id="orderform12" value="2" <?php echo (echochecked("2",$rs["orderform12"])); ?>>
欢迎你预定本产品,你指定的服务不能成行,推荐预定以下相近产品或服务<br>
<input type="radio" name="orderform12" id="orderform12" value="3" <?php echo (echochecked("3",$rs["orderform12"])); ?> >
对不起你的订单已失效,欢迎再次定购本网产品,谢谢你的支持</td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">综合处理意见及理由</td>
<td colspan="3">
<textarea name="orderform13" id="orderform13" cols="60" rows="7"><?php echo ($rs["orderform13"]); ?></textarea></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">总金额:</td>
<td colspan="3">
<input type="text" name="orderform16" id="orderform16" size="8" value="<?php echo ($rs["orderform16"]); ?>">
元, 定金:
<input type="text" name="orderform17" id="orderform17" size="8" value="<?php echo ($rs["orderform17"]); ?>">
元,支付期限<input type="text" name="orderform18" id="orderform18" onClick="showCal(orderform18);" size="12" value="<?php echo (date("Y-m-d",$rs["orderform18"])); ?>"> 之前支付 </td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">余款支付金额:</td>
<td colspan="3"><input type="text" name="orderform19" id="orderform19" size="8" value="<?php echo ($rs["orderform19"]); ?>">
元,支付期限:<input type="text" name="orderform20" id="orderform20" onClick="showCal(orderform20);" size="12" value="<?php echo (date("Y-m-d",$rs["orderform20"])); ?>">
之前支付</td>
</tr>
<tr>
<td height="39" colspan="4" align="center" class="titletdbg">工作人员:<input readonly type="text" name="orderform22" id="orderform22" value="<?php echo ($_SESSION['Login']['1']); ?>">
<input type="hidden" name="orderform28" id="orderform28" value="<?php echo (date("Y-m-d H:i:s",$rs["orderform28"])); ?>">
<input name="issendmail" id="issendmail" type="checkbox" value="1">
是否发送邮件,上一次处理时间:<?php echo (date("Y-m-d H:i:s",$rs["orderform28"])); ?> <br>
上次处理工作人员:<?php echo ($rs["orderform22"]); ?>
<input name="mysubmit1" id="mysubmit1" type="submit" value="保存并提交回复"
<?php if(($rs["orderform11"] == 1) and ($adminname != 'admin') ): ?>disabled="disabled"<?php endif; ?>
>
<input type="hidden" id="orderform0" name="orderform0" value="<?php echo ($rs["orderform0"]); ?>">
<input type="hidden" id="tomail" name="tomail" value="<?php echo ($rs["orderform26"]); ?>">
</td>
</tr>
</form>
<form action="orderform_savekccycontent" method="post" name="formotherchili">
<tr>
<td height="39" colspan="4" align="center" class="titletdbg">
</td>
</tr>
</form>
<form action="__GROUP__/pay/savedingjing" method="post" name="pay_savedingjing">
<tr>
<td height="39" align="center" class="titletdbg">订金确认</td>
<td colspan="3"><?php if($rs["pay6"] == 1): ?>已确认
<?php else: ?>
未确认<?php endif; ?>
</td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">订金金额</td>
<td>
<input type="text" name="pay3" id="pay3" value="<?php echo ($rs["pay3"]); ?>"></td>
<td class="titletdbg"> 是否确认</td>
<td >
<?php echo (ui_checkbox_shenghe("pay6",$rs["pay6"],"1")); ?>(若确认请打上勾)
</td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">支付方式</td>
<td> <?php echo (ui_select_paytype("pay5",$rs["pay5"])); ?></td>
<td class="titletdbg">支付时间</td>
<td>
<input type="text" name="pay4" id="pay4" onClick="showCal(pay4);" value="<?php echo (date('Y-m-d H:i:s',$rs["pay4"])); ?>"></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">备注</td>
<td colspan="3">
<textarea name="pay11" id="pay11" cols="70" rows="5"><?php echo ($rs["pay11"]); ?></textarea></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg"> </td>
<td colspan="3"><input type="submit" name="djmybutton" id="djmybutton" value="提 交"
<?php if($rs["pay6"] == 1): ?>disabled="disabled"<?php endif; ?>
>
<input type="hidden" id="pay13" name="pay13" value="<?php echo ($_SESSION['Login']['1']); ?>">
<input type="hidden" id="pay0" name="pay0" value="<?php echo ($rs["pay0"]); ?>">
<input type="hidden" id="orderid" name="orderid" value="<?php echo ($rs["orderform0"]); ?>">
<input type="hidden" id="orderno" name="orderno" value="<?php echo ($rs["orderform3"]); ?>">
</td>
</tr>
</form>
<form action="__GROUP__/pay/saveyukuan" method="post" name="formd">
<tr>
<td height="39" align="center" class="titletdbg">余款确认</td>
<td colspan="3"> <?php if($rs["pay10"] == 1): ?>已确认
<?php else: ?>
未确认<?php endif; ?></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">余款金金额</td>
<td>
<input type="text" name="pay7" id="pay7" value="<?php echo ($rs["pay7"]); ?>"></td>
<td class="titletdbg"> 余款确认</td>
<td >
<?php echo (ui_checkbox_shenghe("pay10",$rs["pay10"],"1")); ?>(若确认请打上勾)
</tr>
<tr>
<td height="39" align="center" class="titletdbg">支付方式</td>
<td> <?php echo (ui_select_paytype("pay9",$rs["pay9"])); ?></td>
<td class="titletdbg">支付时间</td>
<td>
<input type="text" name="pay8" id="pay8" onClick="showCal(pay8);" value="<?php echo (date('Y-m-d H:i:s',$rs["pay8"])); ?>"></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg">备注</td>
<td colspan="3">
<textarea name="pay12" id="pay12" cols="70" rows="5"><?php echo ($rs["pay12"]); ?></textarea></td>
</tr>
<tr>
<td height="39" align="center" class="titletdbg"> </td>
<td colspan="3"><input type="submit" name="dmybutton" id="dmybutton" value="提 交"
<?php if($rs["pay10"] == 1): ?>disabled="disabled"<?php endif; ?>
>
<input type="hidden" id="pay14" name="pay14" value="<?php echo ($_SESSION['Login']['1']); ?>">
<input type="hidden" id="pay0" name="pay0" value="<?php echo ($rs["pay0"]); ?>">
<input type="hidden" id="orderid" name="orderid" value="<?php echo ($rs["orderform0"]); ?>">
</td>
</tr>
</form>
</table>
<script language="javascript">
$("#djmybutton").bind("click", function(){
djdpaytime=$("#paytimeearnestmoney").val();
if(!djdpaytime.match(/^[\d]{4}\-[\d]{1,2}\-[\d]{1,2}/))
{
alert("订金的支付时间不能为空");
$("#paytimeearnestmoney").focus();
return false;
}
return true;
});
</script>
</body>
</html> | 10npsite | trunk/guanli/Runtime/Cache/8b18ecd292d5d22ffa1a9059409456d8.php | PHP | asf20 | 10,247 |
<?php if (!defined('THINK_PATH')) exit();?>
<!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" />
<title>订单管理</title>
<script src="/jsLibrary/jquery/jquery.js"></script>
</head>
<body>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr bgcolor="#E0E0D3">
<td width="8%" height="37">订单号</td>
<td width="10%">客栈名称</td>
<td width="4%">姓名</td>
<td width="6%">下单时间</td>
<td width="7%">生效日</td>
<td width="8%">定金通知</td>
<td width="9%">定金支付结果/方式</td>
<td width="13%">定金支付时间</td>
<td width="10%">余款支付金额/方式</td>
<td width="13%">余款支付时间</td>
<td width="12%">操作</td>
</tr>
<?php if(is_array($rs)): $i = 0; $__LIST__ = $rs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$order): $mod = ($i % 2 );++$i;?><tr>
<td width="8%" height="37"><a href="__URL__<?php echo (C("URL_PATHINFO_DEPR")); ?>hoteleditorder<?php echo (C("URL_PATHINFO_DEPR")); ?>id<?php echo (C("URL_PATHINFO_DEPR")); echo ($order["orderform0"]); ?>"><?php echo ($order["orderform3"]); ?></a></td>
<td width="10%"> <?php echo ($order["chotel1"]); ?></td>
<td width="4%"> <?php echo ($order["orderform5"]); ?></td>
<td width="6%"> <?php echo (date("Y-m-d H:i:s",$order["orderform6"])); ?></td>
<td width="7%"> <?php echo (date("Y-m-d",$order["orderform9"])); ?></td>
<td width="8%"> <?php echo ($order["orderform17"]); ?></td>
<td width="9%">
<?php if($order["pay6"] == 1): echo ($order["pay3"]); ?>/<?php endif; echo ($order["pay5"]); ?>
</td>
<td width="13%"> <?php echo (date("Y-m-d H:i:s",$order["pay4"])); ?></td>
<td width="10%">  <?php if($order["pay10"] == 1): echo ($order["pay7"]); endif; ?>/<?php echo ($order["pay9"]); ?> </td>
<td width="13%"> <?php echo (date("Y-m-d",$order["pay8"])); ?></td>
<td width="12%"> <a href="#">删除</a></td>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<div><?php echo ($show); ?></div>
</body>
</html> | 10npsite | trunk/guanli/Runtime/Cache/299210a6a3c6e5f3083bcbaf8de531a8.php | PHP | asf20 | 2,488 |
<?php if (!defined('THINK_PATH')) exit();?>
<!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" />
<title>订单管理</title>
<script src="/jsLibrary/jquery/jquery.js"></script>
</head>
<body>
<link href="/guanli/Inc/Css.css" rel="stylesheet" type="text/css" />
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr bgcolor="#E0E0D3">
<td width="8%" height="37">订单号</td>
<td width="10%">产品名称</td>
<td width="4%">姓名</td>
<td width="6%">下单时间</td>
<td width="7%">生效日</td>
<td width="8%">定金通知</td>
<td width="9%">定金支付结果/方式</td>
<td width="13%">定金支付时间</td>
<td width="10%">余款支付金额/方式</td>
<td width="13%">余款支付时间</td>
<td width="12%">操作</td>
</tr>
<?php if(is_array($rs)): $i = 0; $__LIST__ = $rs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$order): $mod = ($i % 2 );++$i;?><tr>
<td width="8%" height="37"><a href="orderform<?php echo (C("URL_PATHINFO_DEPR")); ?>editorder<?php echo (C("URL_PATHINFO_DEPR")); ?>id<?php echo (C("URL_PATHINFO_DEPR")); echo ($order["orderform0"]); ?>"><?php echo ($order["orderform3"]); ?></a></td>
<td width="10%"> <?php echo ($order["orderform4"]); ?></td>
<td width="4%"> <?php echo ($order["orderform5"]); ?></td>
<td width="6%"> <?php echo (date("Y-m-d H:i:s",$order["orderform6"])); ?></td>
<td width="7%"> <?php echo (date("Y-m-d",$order["orderform9"])); ?></td>
<td width="8%"> <?php echo ($order["orderform17"]); ?></td>
<td width="9%">
<?php if($order["pay6"] == 1): echo ($order["pay3"]); ?>/<?php endif; echo ($order["pay5"]); ?>
</td>
<td width="13%"> <?php echo (date("Y-m-d H:i:s",$order["pay4"])); ?></td>
<td width="10%">  <?php if($order["pay10"] == 1): echo ($order["pay7"]); endif; ?>/<?php echo ($order["pay9"]); ?> </td>
<td width="13%"> <?php echo (date("Y-m-d",$order["pay8"])); ?></td>
<td width="12%"> <a href="#">删除</a></td>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<div><?php echo ($show); ?></div>
</body>
</html> | 10npsite | trunk/guanli/Runtime/Cache/b024513be76fa7adb1f247f468eb4b6e.php | PHP | asf20 | 2,490 |
<?php
global $SystemConest;
global $SYS_config;
return array(
//'配置项'=>'配置值'
'DB_TYPE' => "mysql", // 数据库类型
'DB_HOST' => $SystemConest[9], // 服务器地址
'DB_NAME' => $SystemConest[10], // 数据库名
'DB_USER' => $SystemConest[11], // 用户名
'DB_PWD' => $SystemConest[12], // 密码
'DB_PORT' => $SystemConest[13], // 端口
'DB_PREFIX' => $SystemConest[7], // 数据库表前缀
'SHOW_PAGE_TRACE' =>true, // 显示页面Trace信息
'URL_ROUTER_ON' => true, // 是否开启URL路由
'URL_PATHINFO_DEPR' => '/', // PATHINFO模式下,各参数之间的分割符号
'TMPL_CACHE_ON' => false, // 是否开启模板编译缓存,设为false则每次都会重新编译
'TMPL_TEMPLATE_SUFFIX' => '.htm', // 默认模板文件后缀
'URL_PATHINFO_DEPR_CAN' =>'/', //PATHINFO模式下,各参数之间的分割符号
'TMPL_L_DELIM' => '<{', // 模板引擎普通标签开始标
'TMPL_R_DELIM' => '}>', // 模板引擎普通标签结束标记
'TMPL_PARSE_STRING' => array("__APP__"=>Q), // 模板引擎要自动替换的字符串,必须是数组形式。
'HTML_FILE_SUFFIX' => '.htm',// 默认静态文件后缀
'DEFAULT_THEME' => $SystemConest[6], // 默认模板主题名称
'HTML_CACHE_ON' => false, // 是否开启静态缓存
'HTML_CACHE_TIME' => 21600, // 静态缓存有效期 单位秒
'HTML_READ_TYPE' => 0,//缓存方式
'HTML_FILE_SUFFIX' => '.htm',// 默认静态文件后缀
'APP_AUTOLOAD_PATH' =>'@.TagLib',//自动加载自定义的标签库
'URL_MODEL' => 1,
'TMPL_PARSE_STRING' => array(
'__UCENTER__' => $SYS_config["siteurl"].'/ducenter', //UCenter路径
'__UCHOME__' => $SYS_config["siteurl"].'/user', //UCHOME路径
'__LOGIN_ACTION__' => 'b0466004e24c639be7d0b44bbdf0ad29',//UCHOME登录动作别名
'__REGISTER_ACTION__' => '3702346a8d772e51de2956bc12eec8bd',//UCHOME登录动作别名
'__KZURL__'=>$SystemConest["KZURL"] //客栈的二级域名
)
);
?> | 10npsite | trunk/guanli/Conf/config.php | PHP | asf20 | 2,254 |
<?php
/**
* 初始化类,其它操作可以继承此类
* @author jroam
*
*/
class globalAction extends Action{
Public function _initialize() {
global $SYS_config;
$this->assign("SYS_config",$SYS_config);
}
}
?> | 10npsite | trunk/guanli/Lib/Action/globalAction.class.php | PHP | asf20 | 248 |
<?php
class orderformAction extends Action {
public function index(){
//建立查询
global $SystemConest;
$m=M("orderform");
$sql="select * from ".$SystemConest[7]."orderform as a left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1 where a.orderform2=554 order by a.orderform0 desc";
$rs=fanye($m,$sql,50,2,"");
$this->assign("rs",$rs["rs"]);
$this->assign("show",$rs["show"]);
$this->display();
}
/**
* 客栈订单列表
*/
function innlist(){
global $SystemConest;
$m=M("orderform");
$sql="select *,c.hotel1 as chotel1 from ".$SystemConest[7]."orderform as a
left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1 left join ".$SystemConest[7]."hotel as c on a.orderform1=c.hotel0
where a.orderform2=618 order by a.orderform0 desc";
$rs=fanye($m,$sql,50,2,"");
$this->assign("rs",$rs["rs"]);
$this->assign("show",$rs["show"]);
$this->display();
}
public function editorder()
{
$id=$_GET["id"];//获取这条订单的id
if (!is_numeric($id)) die("请输入正确的参数");
global $SystemConest;
$mr=M("orderform");
$sql="select * from ".$SystemConest[7]."orderform as a left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1 where a.orderform0=".$id." order by a.orderform0 desc";
$rs=$mr->query($sql);
if($rs[0]["orderform1"]!="")
{
$tourmr=A("tour");
//@todo: 不能跨项目调用
$trs=$tourmr->getrsone("tour0=".$rs[0]["orderform1"]);
}
$this->assign("rs",$rs[0]);
$this->assign("trs",$trs);
$this->assign("adminname",$SystemConest[2]);
$this->assign("Login",$_SESSION["Login"]);
$this->display();
require_once RootDir.'/inc/Calendar.php';
}
function hoteleditorder()
{
$id=$_GET["id"];//获取这条订单的id
if (!is_numeric($id)) die("请输入正确的参数");
global $SystemConest;
$mr=M("orderform");
$sql="select *,c.hotel1 as chotel1 from ".$SystemConest[7]."orderform as a
left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1
left join ".$SystemConest[7]."hotel as c on a.orderform1=c.hotel0
where a.orderform0=".$id." order by a.orderform0 desc";
$rs=$mr->query($sql);
if($rs[0]["orderform1"]!="")
{
$tourmr=A("hotel");
//@todo: 不能跨项目调用
$trs=$tourmr->getrsone("hotel0=".$rs[0]["orderform1"]);
}
$this->assign("rs",$rs[0]);
$this->assign("trs",$trs);
$this->assign("adminname",$SystemConest[2]);
$this->assign("Login",$_SESSION["Login"]);
$this->display();
require_once RootDir.'/inc/Calendar.php';
}
function saveisdo()
{
$myt=D("orderform");
$oid=$_REQUEST["orderform0"];//订单表的id
if($myt->create())
{
$num=$myt->save();
if($num)
{
//dosomething如发邮件
$issendmail=$_POST["issendmail"];//是否发送邮件标识
if($issendmail=="1")
{
require_once RootDir."/inc/MailClass.php";
$contenthtml=file_get_contents("http://".$_SERVER['SERVER_NAME']."/sendmail/ReceiveOrder/orderid/".$oid);
if(sendmymail($_REQUEST["tomail"],"mzl","梦之旅提醒您,您的订单已经授理",$contenthtml));
{
$temp=",邮件发送成功";
}
}
alert(__APP__."/editorder/id/".$oid,2,"保存成功".$temp);
}
else
{
alert(__APP__."/orderform/editorder/id/".$oid,2,"保存失败");
}
}
}
/**
* 保存酒店订单操作
*/
function hotelsaveisdo()
{
$myt=D("orderform");
$oid=$_REQUEST["orderform0"];//订单表的id
if($myt->create())
{
$num=$myt->save();
if($num)
{
//dosomething如发邮件
$issendmail=$_POST["issendmail"];//是否发送邮件标识
if($issendmail=="1")
{
require_once RootDir."/inc/MailClass.php";
$contenthtml=file_get_contents("http://".$_SERVER['SERVER_NAME']."/sendmail/ReceiveOrder/orderid/".$oid);
if(sendmymail($_REQUEST["tomail"],"mzl","梦之旅提醒您,您的订单已经授理",$contenthtml));
{
$temp=",邮件发送成功";
}
}
alert(__APP__."/orderform/hoteleditorder/id/".$oid,2,"保存成功".$temp);
}
else
{
alert(__APP__."/orderform/hoteleditorder/id/".$oid,2,"保存失败");
}
}
}
function savekccycontent()
{
$id=$_REQUEST["id"];
if(!is_numeric($id)) die("请传入正确的参数");
$mr=M("orderform");
$contet="{@客内:".$_REQUEST["orderform24kn"]."@}";
$contet.="{@客名:".$_REQUEST["orderform24km"]."@}";
$contet.="{@客时:".$_REQUEST["orderform24ks"]."@}";
$contet.="{@操内:".$_REQUEST["orderform24cn"]."@}";
$contet.="{@操名:".$_REQUEST["orderform24cm"]."@}";
$contet.="{@操时:".$_REQUEST["orderform24cs"]."@}";
$contet.="{@财内:".$_REQUEST["orderform24cain"]."@}";
$contet.="{@财名:".$_REQUEST["orderform24caim"]."@}";
$contet.="{@财时:".$_REQUEST["orderform24cais"]."@}";
$contet.="{@产内:".$_REQUEST["orderform24cann"]."@}";
$contet.="{@产名:".$_REQUEST["orderform24canm"]."@}";
$contet.="{@产时:".$_REQUEST["orderform24cans"]."@}";
if($mr->where('orderform0='.$id)->setField('orderform24',$contet))
{
alert("orderform_editorder_id_".$id,2,"保存成功");
}
else
{
alert("orderform_editorder_id_".$id,2,"保存失败");
}
}
}
?> | 10npsite | trunk/guanli/Lib/Action/orderformAction.class.php | PHP | asf20 | 5,811 |
<?php
class tourAction extends Action
{
/**
* 获取并返回线路类的多条记录
* @param $wheresql 查询的sql语句
* @return 返回新闻类的多条记录 失败返回null
*/
public function getRsList($wheresql)
{
$rsc=M("tour");
$rs= $rsc->where($wheresql)->select();
return ($rs)?$rs:"";
}
/**
* 获取并返回线路类的一条记录
* @param $wheresql 查询的sql语句
* @return 返回线路类的单条记录 失败返回null
*/
public function getrsone($wheresql)
{
$rsc=M("tour");
$rs= $rsc->where($wheresql)->find();
mydie($wheresql);
$this->assign("rs",$rs);
return ($rs)?$rs:"";
}
}
?> | 10npsite | trunk/guanli/Lib/Action/tourAction.class.php | PHP | asf20 | 693 |
<?php
class hotelAction extends Action{
/**
* 客栈列表
*/
function hotellist(){
$mr=M("hotel");
$MenuId=585;//定义本栏目的MenuId
//获取这个表的配置信息
$sql="select * from ".DQ."menusys where menusys0=".$MenuId;
$rsm=$mr->query($sql);
if($rsm[0]){
//分解配置的参数
$subsql="";
}
$sql="select *,
(select classsys1 from ".DQ."classsys where classsys0=a.hotel4) as kzclass,
(select classsys1 from ".DQ."classsys where classsys0=a.hotel22) as hezuofs,
(select classsys1 from ".DQ."classsys where classsys0=a.hotel5) as areav,
(select classsys1 from ".DQ."classsys where classsys0=a.hotel23) as isshenhe
from ".DQ."hotel as a order by hotel0 desc";
$rs=fanye($mr,$sql,3,$type="2");
$this->assign("rs",$rs["rs"]);
$this->assign("MenuId",$MenuId);
$this->assign("show",$rs["show"]);
$this->display();
}
/**
* 获取并返回线路类的一条记录
* @param $wheresql 查询的sql语句
* @return 返回线路类的单条记录 失败返回null
*/
public function getrsone($wheresql)
{
$rsc=M("hotel");
$rs= $rsc->where($wheresql)->find();
$this->assign("rs",$rs);
return ($rs)?$rs:"";
}
}
?> | 10npsite | trunk/guanli/Lib/Action/hotelAction.class.php | PHP | asf20 | 1,258 |
<?php
/**
* 价格表类
* @author jroam
*
*/
class priceAction extends Action{
/**
* 保存每个时间段的价格设置
*/
function saveroomprice(){
$pid=$_REQUEST["thispid"];//价格表的ID
$zv=$_REQUEST["zv"];//更改后的价格值
$PMID=$_REQUEST["PMID"];
$MenuId=$_REQUEST["MenuId"];
$hid=$_REQUEST["hid"];//客栈ID
if(!is_numeric($pid)) die("传入id值不对");
if($zv=="") die("内容不能不空");
$mr=M("price");
$data["price19"]=$zv;
if($mr->where("price0=".$pid)->save($data)){
//更新最低价
$umin=A("hotelroom");
$umin->updateroomminprice($hid);
alert("", 0, "修改成功");
gourl(U("/hotelroom/listroom")."/hid/".$hid."/pid/".$pid."/MenuId/".$MenuId."/PMID/".$PMID,1);
}else{
alert("", 1, "修改失败");
}
}
/**
* 管理时间段的页面,可以添加修改
*/
function timeduanhtm(){
$hid=$_REQUEST["hid"];//客栈ID
$action=$_REQUEST["action"];//操作类型
$pid=$_REQUEST["pid"];//价格表id
if($pid=="") $pid="0";
if(!is_numeric($pid)) die("价格类型不对");
if(!is_numeric($hid)) die("传入参数不正确");
$mr=M("price");
//获取祝栈信息
$sql="select * from ".DQ."hotel where hotel0=".$hid;
$hotelrs=$mr->query($sql);
//获取所有的字间段记录
$sql="select * from ".DQ."price where price4=$hid and price3=612 order by price18 desc";
$pricers=$mr->query($sql);
if($pricers) $this->assign("pricers",$pricers);
$this->assign("hid",$hid);
$this->assign("pid",$pid);
$this->assign("hotelrs",$hotelrs[0]);
$this->display();
}
/**
* 保存房型修改后的价格值
*/
function saveroomprice22(){
$pid=$_REQUEST["thisindex"];//修改的价格表id
$rid=$_REQUEST["rid"];//房型的id值
$MenuId=$_REQUEST["MenuId"];
$PMID=$_REQUEST["PMID"];
if(!is_numeric($rid)){
alert("", 1, "传入参数不正确1");
die;
}
if($pid=="") $pid=0;
if(!is_numeric($pid)) {
alert("", 1, "传入参数不正确2");
die;
}
$data["price1"]=$_REQUEST["chufaname"];
$data["price13"]=strtotime($_REQUEST["starttime"]);
$data["price14"]=strtotime($_REQUEST["overtime"]);
$data["price8"]=$_REQUEST["martkprice"];
$data["price9"]=$_REQUEST["myprice"];
$data["price11"]=$_REQUEST["fangcha"];
$data["price12"]=$_REQUEST["kucun"];
$data["price3"]=612;
$mr=M("price");
if($pid>0){
if($mr->where("price0=".$pid)->save($data)){
alert("", 0, "修改成功");
gourl(U("hotelroom/edithotelprice")."/MenuId/".$MenuId."/rid/".$rid."/pid/".$pid."/PMID/$PMID",1);
}
else {
alert("", 1, "修改失败");
}
}else {
$data["price4"]=$rid;
if($mr->add($data)){
alert("", 0, "添加成功");
gourl(U("hotelroom/edithotelprice")."/MenuId/".$MenuId."/rid/".$rid."/pid/".$pid."/PMID/$PMID",1);
}else{
alert("", 1, "添加失败");
}
}
}
}
?> | 10npsite | trunk/guanli/Lib/Action/priceAction.class.php | PHP | asf20 | 3,078 |
<?php
// 本类由系统自动生成,仅供测试用途
class IndexAction extends Action {
public function index(){
header("Content-Type:text/html; charset=utf-8");
echo '<div style="font-weight:normal;color:blue;float:left;width:345px;text-align:center;border:1px solid silver;background:#E8EFFF;padding:8px;font-size:14px;font-family:Tahoma">^_^ Hello,欢迎使用<span style="font-weight:bold;color:red">ThinkPHP</span></div>';
}
} | 10npsite | trunk/guanli/Lib/Action/IndexAction.class.php | PHP | asf20 | 467 |
<?php
/**
* 邮件发送模板类
作用是把要发送的内容返回给调用者
* @author jroam
*
*/
class SendmailAction extends Action
{
/**
* 当后台工作人员确认此订单时发送
*/
function ReceiveOrder()
{
$ordrid=$_REQUEST["orderid"];
if(!is_numeric($ordrid)) return "";
$this->display();
//$this->fetch("Sendmail:ReceiveOrder");
}
}
?> | 10npsite | trunk/guanli/Lib/Action/SendmailAction.class.php | PHP | asf20 | 396 |
<?php
/**
* 支付类
* @author jroam
*
*/
class payAction extends Action
{
/**
* 保存订金的修改
*/
function savedingjing()
{
$mr=M("pay");
$pay0=$_REQUEST["pay0"];
$orderid=$_REQUEST["orderid"];
$data["pay3"]=$_REQUEST["pay3"];
$data["pay11"]=$_REQUEST["pay11"];
$data["pay4"]=$_REQUEST["pay4"];
$data["pay5"]=$_REQUEST["pay5"];
if($data["pay4"]!="") $data["pay4"]=formattime($data["pay4"]);
if($_REQUEST["pay6"]=="1"){
$data["pay6"]=1;
$data["pay13"]=$_REQUEST["pay13"];//员工确认支付成功时的名字
}
if($pay0==""){
$data["pay1"]=$_REQUEST["orderno"];//订单号
$flag=$mr->add($data);
}else{
$flag=$mr->where("pay0=".$pay0)->save($data);
}
if($flag){
alert(__APP__."/orderform/hoteleditorder/id/".$orderid,2,"订金修改成功");
}
else{
alert(__APP__."/orderform/hoteleditorder/id/".$orderid,2,"订金修改失败");
}
}
/**
*
*/
function saveyukuan()
{
$mr=M("pay");
$pay0=$_REQUEST["pay0"];
$orderid=$_REQUEST["orderid"];
$data["pay7"]=$_REQUEST["pay7"];
$data["pay12"]=$_REQUEST["pay12"];
$data["pay8"]=$_REQUEST["pay8"];
$data["pay9"]=$_REQUEST["pay9"];
if($data["pay8"]!="") $data["pay8"]=formattime($data["pay8"]);
if($_REQUEST["pay10"]=="1")
{
$data["pay10"]=1;
$data["pay14"]=$_REQUEST["pay14"];//员工确认余款支付成功时的名字
}
if($mr->where("pay0=".$pay0)->save($data))
{
alert(__APP__."/orderform/hoteleditorder/id/".$orderid,2,"余款修改成功");
//$this->display();
}
else
{
alert(__APP__."orderform/hoteleditorder/id/".$orderid,2,"余款修改失败");
}
}
}
?> | 10npsite | trunk/guanli/Lib/Action/payAction.class.php | PHP | asf20 | 1,740 |
<?php
/**
* 后台支付的模型类
* @author jroam
*
*/
class payModel extends Model
{
}
?> | 10npsite | trunk/guanli/Lib/Action/payModel.class.php | PHP | asf20 | 110 |
<?php
/**
* 房型类
* @author jroam
*
*/
class hotelroomAction extends Action{
/**
* 显示这个客栈的所有房型,关编辑时间段价格
*/
function listroom(){
$hid=$_REQUEST["hid"];//客栈ID
$pid=$_REQUEST["pid"];//pid为价格的id值
$MenuId=$_REQUEST["MenuId"];
$PMID=$_REQUEST["PMID"];
if(!is_numeric($hid)) die("传入参数不对");
if($pid=="") $pid=0;
if(!is_numeric($pid)) die("传入价格参数不对");
$mr=M("hotelroom");
$sql="select * from ".DQ."hotelroom where hotelroom2=$hid order by hotelroom18 desc";
$rs=$mr->query($sql);
//获取这个酒店的时间段设置值
$sql="select * from ".DQ."price where price4=$hid and price3=612 order by price18 desc";
$pricers=$mr->query($sql);
//初始化值,当为0时,默认第一个
$arr=array();
if($pid>0){
foreach ($pricers as $v){
if($v["price0"]==$pid){
$arr=$v;
}
}
}
$this->assign("pid",$pid);
$this->assign("rs",$rs);
$this->assign("hid",$hid);
$this->assign("pricers",$pricers);
$this->assign("initarr",$arr);
$this->assign("MenuId",$MenuId);
$this->display();
}
/**
* 修改酒店类型
*/
function edithotelprice(){
$rid=$_REQUEST["rid"];
$pid=$_REQUEST["pid"];//priceid
if(!is_numeric($rid)) die("传入参数不正确");
$mr=M("hotelroom");
$sql="select * from ".DQ."hotelroom where hotelroom0=$rid order by hotelroom18 desc";
$rs=$mr->query($sql);
//获取时间段表内容
$sql="select * from ".DQ."price where price4=".$rs[0]["hotelroom0"]." and price3=612";
$rsprice=$mr->query($sql);
//当pid不为空时,默认选择的值进行修改
$thisv=array();
if($pid!=""){
foreach ($rsprice as $v){
if($v["price0"]==$pid) $thisv=$v;
}
}
$this->assign("rid",$rid);
$this->assign("rs",$rs[0]);
$this->assign("rsprice",$rsprice);
$this->assign("thisv",$thisv);
$this->assign("pid",$pid);
$this->display();
require RootDir."/inc/Calendar.php";
}
/**
*
* 自动计算这个客栈的每个房型的最低价,以方便排序
* @param $hid 客栈
*/
function updateroomminprice(){
//客栈id
$hid=$_REQUEST["hid"];
if(!is_numeric($hid)) return false;
$mr=M("hotelroom");
//获取他的所有时间段值,在这些时间段中选出最低价
$sql="select * from ".DQ."price where price4=".$hid;
$prs=$mr->query($sql);
//获取这个酒店的所有房型
$rrs=$mr->where("hotelroom2=".$hid)->select();
$minv=9999999;//初始值
$rarr=array();//存放最后计算的结果
foreach($rrs as $v){
if($prs){
foreach ($prs as $v2){
if(strlen($v2["price19"])>3){
$temp="";
$temp=getkuohaostr($v2["price19"],"/{id:".$v["hotelroom0"]."}[\{\}\w\.\:]*{mzlj:([\d\.]+)}/");
if($temp<$minv and $temp!=""){
if($rarr[$v["hotelroom0"]]){
if($temp<$rarr[$v["hotelroom0"]]) $rarr[$v["hotelroom0"]]=$temp;
}
else{
$rarr[$v["hotelroom0"]]=$temp;
}
}
if(strlen($v["hotelroom12"])>4){
//$temp2=getkuohaostr($v2["price19"],"/[\d]{4}\-[\d]{1,2}\-[\d]\|[\d\.]*\|([\d\.]+)/");
preg_match("/[\d]{4}\-[\d]{1,2}\-[\d]{1,2}\|[\d\.]*\|[\d\.]+/",$v["hotelroom12"],$marr);
foreach($marr as $d ){
$temp2=getsubstr($d, "/[\d\.]+$/");
if($temp2<$temp and $temp2!=""){
$rarr[$v["hotelroom0"]]=$temp2;
if($rarr[$v["hotelroom0"]]){
if($temp2<$rarr[$v["hotelroom0"]]) $rarr[$v["hotelroom0"]]=$temp2;
}
else{
$rarr[$v["hotelroom0"]]=$temp2;
}
}
}
}
}
}
}
}
$sqlsub="";
foreach($rarr as $k=> $v){
$sqlsub="update ".DQ."hotelroom set hotelroom7=".$v." where hotelroom0=".$k;
$mr->execute($sqlsub);
}
// print_r($rarr);
return true;
}
/**
*
*/
function updateurlpricemin(){
$hid=$_REQUEST["hid"];//客栈id
$flag=$this->updateroomminprice($hid);
echo $flag?"更新成功":"更新失败";
}
}
?> | 10npsite | trunk/guanli/Lib/Action/hotelroomAction.class.php | PHP | asf20 | 4,326 |
<?php
/**
* 各种确认书界面
* @author Administrator
*
*/
class affirmAction extends globalAction
{
/**
* 支付确认书
* 显示支付的确认书,
* 每个员工只能查看自己的确认书,工作人员可以查看所有的
*
*/
function zhifu()
{
$orderid=$_REQUEST["orderid"];//订单号
$mr=D("orderform");
global $SystemConest;
//@todo: 以后再添加会员只能查看自己的订单,管理人员可以查看所有的.
$sql="select * from ".$SystemConest[7]."orderform as a left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1 where a.orderform3='".$orderid."' order by a.orderform0 desc";
$rs=$mr->query($sql);
//获取是哪一条线路
if($rs[0]["orderform1"]!="")
{
$tourmr=A("tour");
$trs=$tourmr->getrsone("tour0=".$rs[0]["orderform1"]);
}
$this->assign("tourrs",$trs);//所订的线路信息
$this->assign("rs",$rs[0]);
$this->display();
}
/**
* 支付确认书
* 显示支付的确认书,
* 每个员工只能查看自己的确认书,工作人员可以查看所有的
*
*/
function hotelzhifu()
{
$orderid=$_REQUEST["orderid"];//订单号
$mr=D("Home/orderform");
global $SystemConest;
//@todo: 以后再添加会员只能查看自己的订单,管理人员可以查看所有的.
$sql="select * from ".$SystemConest[7]."orderform as a left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1 where a.orderform3='".$orderid."' order by a.orderform0 desc";
$rs=$mr->query($sql);
//获取是哪一条线路
if($rs[0]["orderform1"]!="")
{
$tourmr=A("hotel");
$trs=$tourmr->getrsone("hotel0=".$rs[0]["orderform1"]);
}
$this->assign("hotelrs",$trs);//所订的线路信息
$this->assign("rs",$rs[0]);
$this->display();
}
/**
* 出团通知书界面
*/
function chutuantongzhi()
{
$orderid=$_REQUEST["orderid"];//订单号
$showedit=$_REQUEST["showedit"];//是否显示html样式 值为ye时显示html样式
$sendflag=$_REQUEST["sendflag"];//是否显示发送标识
$mr=D("orderform");
global $SystemConest;
//@todo: 以后再添加会员只能查看自己的订单,管理人员可以查看所有的.
$sql="select * from ".$SystemConest[7]."orderform as a left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1 where a.orderform3='".$orderid."' order by a.orderform0 desc";
$rs=$mr->query($sql);
//获取是哪一条线路
if($rs[0]["orderform1"]!="")
{
$tourmr=A("tour");
$trs=$tourmr->getrsone("tour0=".$rs[0]["orderform1"]);
}
//用数组格化化需要的信息
$ac=array(
"jiejisongji"=>getformcontent($rs[0]["orderform29"],"集合接送"),
"chutuhao"=>getformcontent($rs[0]["orderform29"],"团号"),
"yukuanzhifu"=>getformcontent($rs[0]["orderform29"],"余款支付信息"),
"dangdilvyousang"=>getformcontent($rs[0]["orderform29"],"供应商"),
"contactinfo"=>getformcontent($rs[0]["orderform29"],"梦之旅联系信息"),
);
$this->assign("tourrs",$trs);//所订的线路信息
$this->assign("sendflag",$sendflag);
$this->assign("ac",$ac);
$this->assign("showedit",$showedit);
$this->assign("rs",$rs[0]);
$this->display();
}
/**
* 国内合同模板
*/
function guoleihetong()
{
$orderid=$_REQUEST["orderid"];
$mr=D("orderform");
global $SystemConest;
$sql="select * from ".$SystemConest[7]."orderform as a left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1 where a.orderform3='".$orderid."' order by a.orderform0 desc";
$rs=$mr->query($sql);
if($rs[0]["orderform1"]!="")
{
$tourmr=A("tour");
$trs=$tourmr->getrsone("tour0=".$rs[0]["orderform1"]);
}
//获取合同里的各项值
$hetong=$rs[0]["orderform32"];
$ac=array(
"jiafangname"=>getformcontent($hetong,"jiafangname"),//甲方名称
"Youraddress"=>getformcontent($hetong,"Youraddress"),//甲方地址
"jiaemail"=>getformcontent($hetong,"jiaemail"),////甲方电子邮件
"Yourtel"=>getformcontent($hetong,"Yourtel"),//甲方电话
"YiafangName"=>getformcontent($hetong,"YiafangName"),//乙方名称
"jinyunXuKeZheng"=>getformcontent($hetong,"jinyunXuKeZheng"),//许可证编号
"jinyunhuanwei"=>getformcontent($hetong,"jinyunhuanwei"),//经营范围
"Yitel"=>getformcontent($hetong,"Yitel"),//乙方电话
"tuanno"=>getformcontent($hetong,"tuanno"),//团号
"protname"=>getformcontent($hetong,"protname"),//旅游线路
"cfsd"=>getformcontent($hetong,"cfsd"),//出发时间地址
"JiaoTongJiBiaoZhun"=>getformcontent($hetong,"JiaoTongJiBiaoZhun"),//交通及标准
"zylsd"=>getformcontent($hetong,"zylsd"),//行程
"ycsbz"=>getformcontent($hetong,"ycsbz"),//用餐次数及标准
"zxbz"=>getformcontent($hetong,"zxbz"),//住宿标准
"gwanpai"=>getformcontent($hetong,"gwanpai"),//购物安排
"ZhiFeiXiangMu"=>getformcontent($hetong,"ZhiFeiXiangMu"),//自费项目
"daoyoufeiy"=>getformcontent($hetong,"daoyoufeiy"),//导游及费用
"fyzfbf"=>getformcontent($hetong,"fyzfbf"),//旅游费用
"zhifubanf"=>getformcontent($hetong,"zhifubanf"),//支付办法
"qtyy"=>getformcontent($hetong,"qtyy"),//不成团时转旅行社
"ZhuanBinTuanTravel"=>getformcontent($hetong,"ZhuanBinTuanTravel"),//转并团信息
"DiJieTravel"=>getformcontent($hetong,"DiJieTravel"),//地接社信息
"beizhu"=>getformcontent($hetong,"beizhu"),//备注
"BaoXianGSLianXiRen"=>getformcontent($hetong,"BaoXianGSLianXiRen"),//保险公司联系人
"LvYouFeiYongShuoMing1"=>getformcontent($hetong,"LvYouFeiYongShuoMing1"),//旅游交通费1
"LvYouFeiYongShuoMing2"=>getformcontent($hetong,"LvYouFeiYongShuoMing2"),//旅游交通费2
"QiTaFeiYong"=>getformcontent($hetong,"QiTaFeiYong"),//其它费用
"xdwp"=>getformcontent($hetong,"xdwp"),//携带证件
"SuangYueDing"=>getformcontent($hetong,"SuangYueDing"),//约定1
"SuangYueDingYiZ"=>getformcontent($hetong,"SuangYueDingYiZ"),//约定2
"cfrq"=>getformcontent($hetong,"cfrq"),//提前通知天数
"other1"=>getformcontent($hetong,"other1"),//其它条款1
"other2"=>getformcontent($hetong,"other2"),//
"other3"=>getformcontent($hetong,"other3"),//
"other4"=>getformcontent($hetong,"other4"),//
"other5"=>getformcontent($hetong,"other5"),//
"jiafangAllPersren"=>getformcontent($hetong,"jiafangAllPersren"),//甲方所有人员名单及证件
"jiafangrenydb"=>getformcontent($hetong,"jiafangrenydb"),//甲方人员代表
"yifangrenydb"=>getformcontent($hetong,"yifangrenydb"),//乙方人员代表
"qanyuedate"=>getformcontent($hetong,"qanyuedate"),//签定日期
);
$this->assign("Login",$_SESSION["Login"]);
$this->assign("rs",$rs[0]);
$this->assign("ddr","hello");
$this->assign("showedit",$_REQUEST["showedit"]);
$this->assign("sendflag",$_REQUEST["sendflag"]);
$this->assign("trs",$trs);
$this->assign("ac",$ac);
$this->display();
}
/**
* 出境合同模板
*/
function chujinghetong()
{
$orderid=$_REQUEST["orderid"];
$mr=D("orderform");
global $SystemConest;
$sql="select * from ".$SystemConest[7]."orderform as a left join ".$SystemConest[7]."pay as b on a.orderform3=b.pay1 where a.orderform3='".$orderid."' order by a.orderform0 desc";
$rs=$mr->query($sql);
if($rs[0]["orderform1"]!="")
{
$tourmr=A("tour");
$trs=$tourmr->getrsone("tour0=".$rs[0]["orderform1"]);
}
//获取合同里的各项值
$hetong=$rs[0]["orderform32"];
$ac=array(
"hetongbianhao"=>getformcontent($hetong,"hetongbianhao"),//合同编号
"jiafangName"=>getformcontent($hetong,"jiafangName"),//甲方名称
"Youraddress"=>getformcontent($hetong,"Youraddress"),//住所或单位地址
"Email_send"=>getformcontent($hetong,"Email_send"),//
"Yourtel"=>getformcontent($hetong,"Yourtel"),//
"YifangName"=>getformcontent($hetong,"YifangName"),//
"YicompanyAddress"=>getformcontent($hetong,"YicompanyAddress"),//
"jinyunhuanwei"=>getformcontent($hetong,"jinyunhuanwei"),//
"jinyunXuKeZheng"=>getformcontent($hetong,"jinyunXuKeZheng"),//
"Yitel"=>getformcontent($hetong,"Yitel"),//
"tuanno"=>getformcontent($hetong,"tuanno"),//
"CountryAndArea"=>getformcontent($hetong,"CountryAndArea"),//
"chufaTimeSTuan"=>getformcontent($hetong,"chufaTimeSTuan"),//
"JiaoTongJiBiaoZhun"=>getformcontent($hetong,"JiaoTongJiBiaoZhun"),//
"zylsd"=>getformcontent($hetong,"zylsd"),//
"ycsbz"=>getformcontent($hetong,"ycsbz"),//
"zxbz"=>getformcontent($hetong,"zxbz"),//
"gwanpai"=>getformcontent($hetong,"gwanpai"),//
"ZhiFeiXiangMu"=>getformcontent($hetong,"ZhiFeiXiangMu"),//
"daoyoufeiy"=>getformcontent($hetong,"daoyoufeiy"),//
"fyzfbf"=>getformcontent($hetong,"fyzfbf"),//
"LvYouFeiYongBaoHanXuan"=>getformcontent($hetong,"LvYouFeiYongBaoHanXuan"),//
"jiaotongfeiyong"=>getformcontent($hetong,"jiaotongfeiyong"),//
"youleifeiy"=>getformcontent($hetong,"youleifeiy"),//
"jiedaifeiyong"=>getformcontent($hetong,"jiedaifeiyong"),//
"chanyingzhushu"=>getformcontent($hetong,"chanyingzhushu"),//
"lvyoufuwufei"=>getformcontent($hetong,"lvyoufuwufei"),//
"qitafeiyong"=>getformcontent($hetong,"qitafeiyong"),//
"zfbf"=>getformcontent($hetong,"zfbf"),//
"JiaoNaFangSi_zt"=>getformcontent($hetong,"JiaoNaFangSi_zt"),//
"JiaoNaFangSi_xyk"=>getformcontent($hetong,"JiaoNaFangSi_xyk"),//
"JiaoNaFangSi_qita"=>getformcontent($hetong,"JiaoNaFangSi_qita"),//
"JiaoNaFangSi_xj"=>getformcontent($hetong,"JiaoNaFangSi_xj"),//
"zhuanbit"=>getformcontent($hetong,"zhuanbit"),//
"bunenfatian"=>getformcontent($hetong,"bunenfatian"),//
"ZhuanBinTuanTravel"=>getformcontent($hetong,"ZhuanBinTuanTravel"),//
"DiJieTravel"=>getformcontent($hetong,"DiJieTravel"),//
"beizhu"=>getformcontent($hetong,"beizhu"),//
"BaoXianGSLianXiRen"=>getformcontent($hetong,"BaoXianGSLianXiRen"),//
"LvYouFeiYongShuoMing1"=>getformcontent($hetong,"LvYouFeiYongShuoMing1"),//
"LvYouFeiYongShuoMing2"=>getformcontent($hetong,"LvYouFeiYongShuoMing2"),//
"QiTaFeiYong"=>getformcontent($hetong,"QiTaFeiYong"),//
"xdwpchuy"=>getformcontent($hetong,"xdwpchuy"),//
"SuangYueDing"=>getformcontent($hetong,"SuangYueDing"),//
"SuangYueDingYiZ"=>getformcontent($hetong,"SuangYueDingYiZ"),//
"cfrq"=>getformcontent($hetong,"cfrq"),//
"other1"=>getformcontent($hetong,"other1"),//
"other2"=>getformcontent($hetong,"other2"),//
"other3"=>getformcontent($hetong,"other3"),//
"other4"=>getformcontent($hetong,"other4"),//
"other5"=>getformcontent($hetong,"other5"),//
"jiafangAllPersren"=>getformcontent($hetong,"jiafangAllPersren"),//
"jiafangdaibiao"=>getformcontent($hetong,"jiafangdaibiao"),//
"jiafangshengfengzheng"=>getformcontent($hetong,"jiafangshengfengzheng"),//
"jiafangtelfax"=>getformcontent($hetong,"jiafangtelfax"),//
"jiafengemail"=>getformcontent($hetong,"jiafengemail"),//
"y_name"=>getformcontent($hetong,"y_name"),//
"y_tel"=>getformcontent($hetong,"y_tel"),//
"y_addr"=>getformcontent($hetong,"y_addr"),//
"y_email"=>getformcontent($hetong,"y_email"),//
"y_date"=>getformcontent($hetong,"y_date"),//
);
$ac['jiaotongfeiyong']="1";
$showedit=$_REQUEST["showedit"];
$sendflag=$_REQUEST["sendflag"];
$this->assign("Login",$_SESSION["Login"]);
$this->assign("rs",$rs[0]);
$this->assign("showedit",$_REQUEST["showedit"]);
$this->assign("sendflag",$sendflag);
$this->assign("trs",$trs);
$this->assign("ac",$ac);
$this->display();
}
}
?> | 10npsite | trunk/guanli/Lib/Action/affirmAction.class.php | PHP | asf20 | 11,813 |
<?php
/**
* 订单操作Model类
* @author jroam
*
*/
class orderformModel extends Model
{
protected $_auto = array (
array("orderform18","formattime",3,"function"),//把字符形式的时间值转成数字形的
array("orderform20","formattime",3,"function"),
array("orderform28","time",2,"function"),//修正第一次的时间
array("orderform11","getis0orit",2,"function")//修正复选框不选时更新不到值
);
}
?> | 10npsite | trunk/guanli/Lib/Model/orderformModel.class.php | PHP | asf20 | 463 |
<?php
// +-----------------------------------------------------------
// | ThinkPHP
// +------------------------------------------------------------
// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
// +------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +------------------------------------------------------------
// $Id: TagLibArticle.class.php 2601 2012-01-15 04:59:14Z liu21st $
//修改 jroam 2012-4-28
class TagLibArticle extends TagLib {
// 标签定义
protected $tags = array(
// 标签定义:
//attr 属性列表 close 是否闭合(0 或者1 默认1) alias 标签别名 level 嵌套层次
/**
* name 表示表的名称,不加前缀
* field 查询的字段名
* limit 查询的限制条件,
* where 查询的条件,用于模型的where部份
* sql 原生态语句查询 当name值为空时生效.
* key表示模板循环的变量,默认就能量名为i
* mod表示取模时的变量,通常在并列列时用来计算,默认它的值为2 <eq name="mod" value="1"><tr></eq>
*/
'article' => array('attr' => 'name,field,limit,order,where,sql,key,mod', 'level' => 3),
);
//定义查询数据库标签
public function _article($attr, $content) {
$tag = $this->parseXmlAttr($attr, 'article');
$result = !empty($tag['result']) ? $tag['result'] : 'article'; //定义数据查询的结果存放变量
$key = !empty($tag['key']) ? $tag['key'] : 'i';
$mod = isset($tag['mod']) ? $tag['mod'] : '2';
if ($tag['name']) { //根据用户输入的值拼接查询条件
$sql = "M('{$tag['name']}')->";
$sql .= ($tag['field']) ? "field({$tag['field']})->" : '';
$sql .= ($tag['order']) ? "order(\"{$tag['order']}\")->" : '';
$sql .= ($tag['where']) ? "where(\"{$tag['where']}\")->" : '';
$sql .= "select()";
} else {
if (!$tag['sql'])
return ''; //排除没有指定model名称,也没有指定sql语句的情况
$sql .= "M()->query(\"{$tag['sql']}\")";
}
//下面拼接输出语句
$parsestr = '<?php $_result=' . $sql . '; if ($_result): $' . $key . '=0;';
$parsestr .= 'foreach($_result as $key=>$' . $result . '):';
$parsestr .= '++$' . $key . ';$mod = ($' . $key . ' % ' . $mod . ' );?>';
$parsestr .= $content; //解析在article标签中的内容
$parsestr .= '<?php endforeach; endif;?>';
return $parsestr;
//return $sql;
}
}
?> | 10npsite | trunk/guanli/Lib/TagLib/TagLibArticle.class.php | PHP | asf20 | 2,862 |
<?php Menu_JS($MenuNum)
{
?>
<script language="javascript" type="text/javascript">
<!--
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
function expandIt(index){//-----------------------------------------
var menuitem=new Array()
<?php
for($i=1;$i<=$MenuNum;$i++)
{
?>
menuitem[<?php echo $i;?>]=System_Child_<?php echo $i;?>
<?
}
?>
if (menuitem[index].style.display=="block"){
displayall()
}
else {
displayall()
menuitem[index].style.display="block"
}
}
function displayall(){//-----------------------------------------------------------
<?php
for($i=1;$i<=$MenuNum;$i++)
{
?>
System_Child_<?php echo $i;?>.style .display ="none"
<?php
}
?>
}
function arrange() {
nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height;
for (i=firstInd+1; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.visibility != "hide") {
whichEl.pageY = nextY;
nextY += whichEl.document.height;
}
}
}
function initIt(){
if (!ver4) return;
if (NS4) {
for (i=0; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
}
arrange();
}
else {
divColl = document.all.tags("DIV");
for (i=0; i<divColl.length; i++) {
whichEl = divColl(i);
if (whichEl.className == "child") whichEl.style.display = "none";
}
}
}
onload = initIt;
//-->
</script>
<?php
?
?> | 10npsite | trunk/guanli/Inc/Menu_Js.php | PHP | asf20 | 1,648 |
@charset "utf-8";
img{ border:0px; behavior:url(\Inc\pngbehavior.htc); }
.input2 {border: medium solid 1px #CC3300; background-color:#ED3796; font-size:12px; color:#FFFFFF; padding-top:4px;}
.YKTtable {
font-size: 12px;
line-height: 1.5;
background-color: #000000;
}
table,td,th{ font-size:12px;}
.TableLine {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: double;
border-right-style: none;
border-left-style: none;
border-top-color: F7761A;
border-right-color: F7761A;
border-bottom-color: F7761A;
border-left-color: F7761A;
}
body {
font-size: 12px;
line-height: 1.5;
color:#000000;
SCROLLBAR-FACE-COLOR: #ED3796;
SCROLLBAR-HIGHLIGHT-COLOR: #ED3796;
SCROLLBAR-SHADOW-COLOR: #fcfcfc;
SCROLLBAR-3DLIGHT-COLOR: #fcfcfc;
SCROLLBAR-ARROW-COLOR: #ffffff;
SCROLLBAR-TRACK-COLOR: #fcfcfc;
SCROLLBAR-DARKSHADOW-COLOR: #ffffff;
SCROLLBAR-BASE-COLOR: #ED3796;
}
.YKTth {
background-image: url(/YKTGuanLi/Iamges/THBG.jpg);
color: #FFFFFF;
padding: 5px;
background-repeat: repeat-x;
}
.YKTtd {
background-color: #FFFFFF;
padding: 5px;
}
.YKTtr{
background-color: #ffffff;
padding: 2px;
}
.Font12W {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}
.Menu12W {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
line-height: 1.5;
}
.Link12 {
font-size: 12px;
color: #000000;
text-decoration: none;
line-height: 1.5;
border-bottom:medium solid 1px #000000;
}.Input_1 {
font-size: 12px;
color: #000000;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-image: url(/YKTGuanLi/Iamges/InputBG.gif);
}
.Input_2 {
font-size: 12px;
border:medium solid 1px #EE4091;
color:#000000
}
.InputNone {
font-size: 12px;
color:#000000;
padding-top:3px;
padding-left:10px;
background-position: left center;
text-align: left;
background:url(../YKTGuanLi/Iamges/input_bg.gif) no-repeat; width: 288px;
border:0px;
height:19px;
}
.TdLine { background:url(../YKTGuanLi/Iamges/line_001.gif) bottom repeat-x;font-size: 12px;
}
.TdLineBG {
font-size: 12px;
background:url(../YKTGuanLi/Iamges/line_001.gif) bottom repeat-x;
height: 25px;
}
.menu_1 {border: medium solid 1px #ffffff; height:21px; text-align:center; background-color:#ED3796; color:#FFFFFF; font-size:12px;}
文字竖排样式
.tnt {
Writing-mode:tb-rl;
Text-align:left;
font-size:12pt;
line-height: 160%;
} Select {
font-size: 12px;
color: #AA4400;
height: auto;
width: auto;
}
a:link {color: #000000; text-decoration:underline}
a:visited {color: #000000; text-decoration:underline}
a:hover {color: #ED3796; text-decoration:underline}
a:active {color: #000000; text-decoration:underline}
a.a1:link {color: #ffffff; text-decoration:none}
a.a1:visited {color: #ffffff; text-decoration:none}
a.a1:hover {color: #ffffff; text-decoration:none}
a.a1:active {color: #ffffff; text-decoration:none}
| 10npsite | trunk/guanli/Inc/CssBACK2.css | CSS | asf20 | 3,090 |
<!--
'下拉框检查'
Function Check_ListBox(Value,ErrMsg)
If value<1 Then
Check_ListBox=ErrMsg
Else
Check_ListBox=""
End If
End Function
'单/复选框检查'
Function Check_SelectBox(RadioObject,ErrMsg)
Dim Radio,blCheck
blCheck=False
For Each Radio in RadioObject
If Radio.checked=True Then
blCheck=True
End if
Next
If blCheck=False Then
Check_SelectBox=ErrMsg
Else
Check_SelectBox=""
End If
End Function
'字符长度验证'
Function CharLen(Value,MinLen,MaxLen,ErrMsg)
If Len(value)<MinLen Or Len(value)>MaxLen Then
CharLen=ErrMsg
Else
CharLen=""
End If
End Function
'数字验证'
Function IsNum(Value,MinValue,MaxValue,ErrMsg)
If isNumeric(Value)=false Then
IsNum=ErrMsg
Else
If CCur(Value)>=CCur(MinValue) and CCur(Value)<=CCur(MaxValue) Then
IsNum=""
Else
IsNum=ErrMsg
End IF
End If
End Function
'日期验证'
Function IsDateTime(Value,MinValue,MaxValue,ErrMsg)
If isDate(Value)=false Then
IsDateTime=ErrMsg
Else
IsDateTime=""
End If
End Function
'邮箱验证'
Function IsMail(Value,MinLen,MaxLen,ErrMsg)
Dim Regu,Re,Matches,InfoCout
Regu="^(([0-9a-zA-Z]+)|([0-9a-zA-Z]+[_.0-9a-zA-Z-]*[0-9a-zA-Z]+))@([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|NET|com|COM|gov|GOV|mil|MIL|org|ORG|edu|EDU|int|INT)$"
Set Re = new RegExp
Re.Pattern =Regu
Re.Global = True '设置全局可用性。'
Set Matches = Re.Execute(Value) '执行搜索。'
InfoCout=Matches.count
If InfoCout =0 Then
IsMail=ErrMsg
Else
IsMail=""
End If
Set Re =Nothing
End Function
sub MinClassBox(strMinValue,SpanID,SelectName,FieldValue)
If strMinValue="" Then
SpanID.innerHTML=""
Exit Sub
End IF
Dim ArrMinClass,MinClass,strSelect,strSelected
ArrMinClass=Split(strMinValue,",")
For Each MinClass in ArrMinClass
IF FieldValue=Split(MinClass,"|")(0) Then
strSelected="selected=""selected"""
else
strSelected=""
End IF
strSelect=strSelect & "<option " & strSelected & " value=""" & Split(MinClass,"|")(0) & """>" & Split(MinClass,"|")(1) & "</option>"
Next
SpanID.innerHTML=" 小类:<select name=""" & SelectName & """ >" & strSelect & "</select>"
End sub
--> | 10npsite | trunk/guanli/Inc/BaseFunction.js | JavaScript | asf20 | 2,384 |
function atCalendarControl(){
var calendar=this;
this.calendarPad=null;
this.prevMonth=null;
this.nextMonth=null;
this.prevYear=null;
this.nextYear=null;
this.goToday=null;
this.calendarClose=null;
this.calendarAbout=null;
this.head=null;
this.body=null;
this.today=[];
this.currentDate=[];
this.sltDate;
this.target;
this.source;
/************** 加入日历底板及阴影 *********************/
this.addCalendarPad=function(){
document.write("<div id='divCalendarpad' style='position:absolute;top:100;left:0;width:255;height:187;display:none;'>");
document.write("<iframe frameborder=0 height=189 width=250></iframe>");
document.write("<div style='position:absolute;top:2;left:2;width:250;height:187;background-color:#336699;'></div>");
document.write("</div>");
calendar.calendarPad=document.all.divCalendarpad;
}
/************** 加入日历面板 *********************/
this.addCalendarBoard=function(){
var BOARD=this;
var divBoard=document.createElement("div");
calendar.calendarPad.insertAdjacentElement("beforeEnd",divBoard);
divBoard.style.cssText="position:absolute;top:0;left:0;width:250;height:187;border:0 outset;background-color:buttonface;";
var tbBoard=document.createElement("table");
divBoard.insertAdjacentElement("beforeEnd",tbBoard);
tbBoard.style.cssText="position:absolute;top:2;left:2;width:248;height:10;font-size:9pt;";
tbBoard.cellPadding=0;
tbBoard.cellSpacing=1;
/************** 设置各功能按钮的功能 *********************/
/*********** Calendar About Button ***************/
trRow = tbBoard.insertRow(0);
calendar.calendarAbout=calendar.insertTbCell(trRow,0,"-","center");
calendar.calendarAbout.title="帮助 快捷键:H";
calendar.calendarAbout.onclick=function(){calendar.about();}
/*********** Calendar Head ***************/
tbCell=trRow.insertCell(1);
tbCell.colSpan=5;
tbCell.bgColor="#99CCFF";
tbCell.align="center";
tbCell.style.cssText = "cursor:default";
calendar.head=tbCell;
/*********** Calendar Close Button ***************/
tbCell=trRow.insertCell(2);
calendar.calendarClose = calendar.insertTbCell(trRow,2,"x","center");
calendar.calendarClose.title="关闭 快捷键:ESC或X";
calendar.calendarClose.onclick=function(){calendar.hide();}
/*********** Calendar PrevYear Button ***************/
trRow = tbBoard.insertRow(1);
calendar.prevYear = calendar.insertTbCell(trRow,0,"<<","center");
calendar.prevYear.title="上一年 快捷键:↑";
calendar.prevYear.onmousedown=function(){
calendar.currentDate[0]--;
calendar.show(calendar.target,calendar.returnTime,calendar.currentDate[0]+"-"+calendar.formatTime(calendar.currentDate[1])+"-"+calendar.formatTime(calendar.currentDate[2]),calendar.source);
}
/*********** Calendar PrevMonth Button ***************/
calendar.prevMonth = calendar.insertTbCell(trRow,1,"<","center");
calendar.prevMonth.title="上一月 快捷键:←";
calendar.prevMonth.onmousedown=function(){
calendar.currentDate[1]--;
if(calendar.currentDate[1]==0){
calendar.currentDate[1]=12;
calendar.currentDate[0]--;
}
calendar.show(calendar.target,calendar.returnTime,calendar.currentDate[0]+"-"+calendar.formatTime(calendar.currentDate[1])+"-"+calendar.formatTime(calendar.currentDate[2]),calendar.source);
}
/*********** Calendar Today Button ***************/
calendar.goToday = calendar.insertTbCell(trRow,2,"今天","center",3);
calendar.goToday.title="选择今天 快捷键:T";
calendar.goToday.onclick=function(){
if(calendar.returnTime)
calendar.sltDate=calendar.today[0]+"-"+calendar.formatTime(calendar.today[1])+"-"+calendar.formatTime(calendar.today[2])+" "+calendar.formatTime(calendar.today[3])+":"+calendar.formatTime(calendar.today[4])
else
calendar.sltDate=calendar.today[0]+"-"+calendar.formatTime(calendar.today[1])+"-"+calendar.formatTime(calendar.today[2]);
calendar.target.value=calendar.sltDate;
calendar.hide();
//calendar.show(calendar.target,calendar.today[0]+"-"+calendar.today[1]+"-"+calendar.today[2],calendar.source);
}
/*********** Calendar NextMonth Button ***************/
calendar.nextMonth = calendar.insertTbCell(trRow,3,">","center");
calendar.nextMonth.title="下一月 快捷键:→";
calendar.nextMonth.onmousedown=function(){
calendar.currentDate[1]++;
if(calendar.currentDate[1]==13){
calendar.currentDate[1]=1;
calendar.currentDate[0]++;
}
calendar.show(calendar.target,calendar.returnTime,calendar.currentDate[0]+"-"+calendar.formatTime(calendar.currentDate[1])+"-"+calendar.formatTime(calendar.currentDate[2]),calendar.source);
}
/*********** Calendar NextYear Button ***************/
calendar.nextYear = calendar.insertTbCell(trRow,4,">>","center");
calendar.nextYear.title="下一年 快捷键:↓";
calendar.nextYear.onmousedown=function(){
calendar.currentDate[0]++;
calendar.show(calendar.target,calendar.returnTime,calendar.currentDate[0]+"-"+calendar.formatTime(calendar.currentDate[1])+"-"+calendar.formatTime(calendar.currentDate[2]),calendar.source);
}
trRow = tbBoard.insertRow(2);
var cnDateName = new Array("日","一","二","三","四","五","六");
for (var i = 0; i < 7; i++) {
tbCell=trRow.insertCell(i)
tbCell.innerText=cnDateName[i];
tbCell.align="center";
tbCell.width=35;
tbCell.style.cssText="cursor:default;border:1 solid #99CCCC;background-color:#99CCCC;";
}
/*********** Calendar Body ***************/
trRow = tbBoard.insertRow(3);
tbCell=trRow.insertCell(0);
tbCell.colSpan=7;
tbCell.height=97;
tbCell.vAlign="top";
tbCell.bgColor="#F0F0F0";
var tbBody=document.createElement("table");
tbCell.insertAdjacentElement("beforeEnd",tbBody);
tbBody.style.cssText="position:relative;top:0;left:0;width:245;height:103;font-size:9pt;"
tbBody.cellPadding=0;
tbBody.cellSpacing=1;
calendar.body=tbBody;
/*********** Time Body ***************/
trRow = tbBoard.insertRow(4);
tbCell=trRow.insertCell(0);
calendar.prevHours = calendar.insertTbCell(trRow,0,"-","center");
calendar.prevHours.title="小时调整 快捷键:Home";
calendar.prevHours.onmousedown=function(){
calendar.currentDate[3]--;
if(calendar.currentDate[3]==-1) calendar.currentDate[3]=23;
calendar.bottom.innerText=calendar.formatTime(calendar.currentDate[3])+":"+calendar.formatTime(calendar.currentDate[4]);
}
tbCell=trRow.insertCell(1);
calendar.nextHours = calendar.insertTbCell(trRow,1,"+","center");
calendar.nextHours.title="小时调整 快捷键:End";
calendar.nextHours.onmousedown=function(){
calendar.currentDate[3]++;
if(calendar.currentDate[3]==24) calendar.currentDate[3]=0;
calendar.bottom.innerText=calendar.formatTime(calendar.currentDate[3])+":"+calendar.formatTime(calendar.currentDate[4]);
}
tbCell=trRow.insertCell(2);
tbCell.colSpan=3;
tbCell.bgColor="#99CCFF";
tbCell.align="center";
tbCell.style.cssText = "cursor:default";
calendar.bottom=tbCell;
tbCell=trRow.insertCell(3);
calendar.prevMinutes = calendar.insertTbCell(trRow,3,"-","center");
calendar.prevMinutes.title="分钟调整 快捷键:PageUp";
calendar.prevMinutes.onmousedown=function(){
calendar.currentDate[4]--;
if(calendar.currentDate[4]==-1) calendar.currentDate[4]=59;
calendar.bottom.innerText=calendar.formatTime(calendar.currentDate[3])+":"+calendar.formatTime(calendar.currentDate[4]);
}
tbCell=trRow.insertCell(4);
calendar.nextMinutes = calendar.insertTbCell(trRow,4,"+","center");
calendar.nextMinutes.title="分钟调整 快捷键:PageDown";
calendar.nextMinutes.onmousedown=function(){
calendar.currentDate[4]++;
if(calendar.currentDate[4]==60) calendar.currentDate[4]=0;
calendar.bottom.innerText=calendar.formatTime(calendar.currentDate[3])+":"+calendar.formatTime(calendar.currentDate[4]);
}
}
/************** 加入功能按钮公共样式 *********************/
this.insertTbCell=function(trRow,cellIndex,TXT,trAlign,tbColSpan){
var tbCell=trRow.insertCell(cellIndex);
if(tbColSpan!=undefined) tbCell.colSpan=tbColSpan;
var btnCell=document.createElement("button");
tbCell.insertAdjacentElement("beforeEnd",btnCell);
btnCell.value=TXT;
btnCell.style.cssText="width:100%;border:1 outset;background-color:buttonface;";
btnCell.onmouseover=function(){
btnCell.style.cssText="width:100%;border:1 outset;background-color:#F0F0F0;";
}
btnCell.onmouseout=function(){
btnCell.style.cssText="width:100%;border:1 outset;background-color:buttonface;";
}
// btnCell.onmousedown=function(){
// btnCell.style.cssText="width:100%;border:1 inset;background-color:#F0F0F0;";
// }
btnCell.onmouseup=function(){
btnCell.style.cssText="width:100%;border:1 outset;background-color:#F0F0F0;";
}
btnCell.onclick=function(){
btnCell.blur();
}
return btnCell;
}
this.setDefaultDate=function(){
var dftDate=new Date();
calendar.today[0]=dftDate.getYear();
calendar.today[1]=dftDate.getMonth()+1;
calendar.today[2]=dftDate.getDate();
calendar.today[3]=dftDate.getHours();
calendar.today[4]=dftDate.getMinutes();
}
/****************** Show Calendar *********************/
this.show=function(targetObject,returnTime,defaultDate,sourceObject){
if(targetObject==undefined) {
alert("未设置目标对象. \n方法: ATCALENDAR.show(obj 目标对象,boolean 是否返回时间,string 默认日期,obj 点击对象);\n\n目标对象:接受日期返回值的对象.\n默认日期:格式为\"yyyy-mm-dd\",缺省为当前日期.\n点击对象:点击这个对象弹出calendar,默认为目标对象.\n");
return false;
}
else calendar.target=targetObject;
if(sourceObject==undefined) calendar.source=calendar.target;
else calendar.source=sourceObject;
if(returnTime) calendar.returnTime=true;
else calendar.returnTime=false;
var firstDay;
var Cells=new Array();
if((defaultDate==undefined) || (defaultDate=="")){
var theDate=new Array();
calendar.head.innerText = calendar.today[0]+"-"+calendar.formatTime(calendar.today[1])+"-"+calendar.formatTime(calendar.today[2]);
calendar.bottom.innerText = calendar.formatTime(calendar.today[3])+":"+calendar.formatTime(calendar.today[4]);
theDate[0]=calendar.today[0]; theDate[1]=calendar.today[1]; theDate[2]=calendar.today[2];
theDate[3]=calendar.today[3]; theDate[4]=calendar.today[4];
}
else{
var Datereg=/^\d{4}-\d{1,2}-\d{2}$/
var DateTimereg=/^(\d{1,4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/
if((!defaultDate.match(Datereg)) && (!defaultDate.match(DateTimereg))){
alert("默认日期(时间)的格式不正确!\t\n\n默认可接受格式为:\n1、yyyy-mm-dd \n2、yyyy-mm-dd hh:mm\n3、(空)");
calendar.setDefaultDate();
return;
}
if(defaultDate.match(Datereg)) defaultDate=defaultDate+" "+calendar.today[3]+":"+calendar.today[4];
var strDateTime=defaultDate.match(DateTimereg);
var theDate=new Array(4)
theDate[0]=strDateTime[1];
theDate[1]=strDateTime[2];
theDate[2]=strDateTime[3];
theDate[3]=strDateTime[4];
theDate[4]=strDateTime[5];
calendar.head.innerText = theDate[0]+"-"+calendar.formatTime(theDate[1])+"-"+calendar.formatTime(theDate[2]);
calendar.bottom.innerText = calendar.formatTime(theDate[3])+":"+calendar.formatTime(theDate[4]);
}
calendar.currentDate[0]=theDate[0];
calendar.currentDate[1]=theDate[1];
calendar.currentDate[2]=theDate[2];
calendar.currentDate[3]=theDate[3];
calendar.currentDate[4]=theDate[4];
theFirstDay=calendar.getFirstDay(theDate[0],theDate[1]);
theMonthLen=theFirstDay+calendar.getMonthLen(theDate[0],theDate[1]);
//calendar.setEventKey();
calendar.calendarPad.style.display="";
var theRows = Math.ceil((theMonthLen)/7);
//清除旧的日历;
while (calendar.body.rows.length > 0) {
calendar.body.deleteRow(0)
}
//建立新的日历;
var n=0;day=0;
for(i=0;i<theRows;i++){
theRow=calendar.body.insertRow(i);
for(j=0;j<7;j++){
n++;
if(n>theFirstDay && n<=theMonthLen){
day=n-theFirstDay;
calendar.insertBodyCell(theRow,j,day);
}
else{
var theCell=theRow.insertCell(j);
theCell.style.cssText="background-color:#F0F0F0;cursor:default;";
}
}
}
//****************调整日历位置**************//
var offsetPos=calendar.getAbsolutePos(calendar.source);//计算对象的位置;
if((document.body.offsetHeight-(offsetPos.y+calendar.source.offsetHeight-document.body.scrollTop))<calendar.calendarPad.style.pixelHeight){
var calTop=offsetPos.y-calendar.calendarPad.style.pixelHeight;
}
else{
var calTop=offsetPos.y+calendar.source.offsetHeight;
}
if((document.body.offsetWidth-(offsetPos.x+calendar.source.offsetWidth-document.body.scrollLeft))>calendar.calendarPad.style.pixelWidth){
var calLeft=offsetPos.x;
}
else{
var calLeft=calendar.source.offsetLeft+calendar.source.offsetWidth;
}
//alert(offsetPos.x);
calendar.calendarPad.style.pixelLeft=calLeft;
calendar.calendarPad.style.pixelTop=calTop;
}
/****************** 计算对象的位置 *************************/
this.getAbsolutePos = function(el) {
var r = { x: el.offsetLeft, y: el.offsetTop };
if (el.offsetParent) {
var tmp = calendar.getAbsolutePos(el.offsetParent);
r.x += tmp.x;
r.y += tmp.y;
}
return r;
};
//************* 插入日期单元格 **************/
this.insertBodyCell=function(theRow,j,day,targetObject){
var theCell=theRow.insertCell(j);
if(j==0) var theBgColor="#FF9999";
else var theBgColor="#FFFFFF";
if(day==calendar.currentDate[2]) var theBgColor="#CCCCCC";
if(day==calendar.today[2]) var theBgColor="#99FFCC";
theCell.bgColor=theBgColor;
theCell.innerText=day;
theCell.align="center";
theCell.width=35;
theCell.style.cssText="border:1 solid #CCCCCC;cursor:hand;";
theCell.onmouseover=function(){
theCell.bgColor="#FFFFCC";
theCell.style.cssText="border:1 outset;cursor:hand;";
}
theCell.onmouseout=function(){
theCell.bgColor=theBgColor;
theCell.style.cssText="border:1 solid #CCCCCC;cursor:hand;";
}
theCell.onmousedown=function(){
theCell.bgColor="#FFFFCC";
theCell.style.cssText="border:1 inset;cursor:hand;";
}
theCell.onclick=function(){
if(calendar.returnTime)
calendar.sltDate=calendar.currentDate[0]+"-"+calendar.formatTime(calendar.currentDate[1])+"-"+calendar.formatTime(day)+" "+calendar.formatTime(calendar.currentDate[3])+":"+calendar.formatTime(calendar.currentDate[4])
else
calendar.sltDate=calendar.currentDate[0]+"-"+calendar.formatTime(calendar.currentDate[1])+"-"+calendar.formatTime(day);
calendar.target.value=calendar.sltDate;
calendar.hide();
}
}
/************** 取得月份的第一天为星期几 *********************/
this.getFirstDay=function(theYear, theMonth){
var firstDate = new Date(theYear,theMonth-1,1);
return firstDate.getDay();
}
/************** 取得月份共有几天 *********************/
this.getMonthLen=function(theYear, theMonth) {
theMonth--;
var oneDay = 1000 * 60 * 60 * 24;
var thisMonth = new Date(theYear, theMonth, 1);
var nextMonth = new Date(theYear, theMonth + 1, 1);
var len = Math.ceil((nextMonth.getTime() - thisMonth.getTime())/oneDay);
return len;
}
/************** 隐藏日历 *********************/
this.hide=function(){
//calendar.clearEventKey();
calendar.calendarPad.style.display="none";
}
/************** 从这里开始 *********************/
this.setup=function(defaultDate){
calendar.addCalendarPad();
calendar.addCalendarBoard();
calendar.setDefaultDate();
}
/************** 格式化时间 *********************/
this.formatTime = function(str) {
str = ("00"+str);
return str.substr(str.length-2);
}
/************** 关于AgetimeCalendar *********************/
this.about=function(){
var strAbout = "\nWeb 日历选择输入控件操作说明:\n\n";
strAbout+="-\t: 关于\n";
strAbout+="x\t: 隐藏\n";
strAbout+="<<\t: 上一年\n";
strAbout+="<\t: 上一月\n";
strAbout+="今日\t: 返回当天日期\n";
strAbout+=">\t: 下一月\n";
strAbout+="<<\t: 下一年\n";
strAbout+="\nWeb日历选择输入控件\tVer:v1.0\t\nDesigned By:wxb \t\t2004.11.22\t\n";
alert(strAbout);
}
document.onkeydown=function(){
if(calendar.calendarPad.style.display=="none"){
window.event.returnValue= true;
return true ;
}
switch(window.event.keyCode){
case 27 : calendar.hide(); break; //ESC
case 37 : calendar.prevMonth.onmousedown(); break;//←
case 38 : calendar.prevYear.onmousedown();break; //↑
case 39 : calendar.nextMonth.onmousedown(); break;//→
case 40 : calendar.nextYear.onmousedown(); break;//↓
case 84 : calendar.goToday.onclick(); break;//T
case 88 : calendar.hide(); break; //X
case 72 : calendar.about(); break; //H
case 36 : calendar.prevHours.onmousedown(); break;//Home
case 35 : calendar.nextHours.onmousedown(); break;//End
case 33 : calendar.prevMinutes.onmousedown();break; //PageUp
case 34 : calendar.nextMinutes.onmousedown(); break;//PageDown
}
window.event.keyCode = 0;
window.event.returnValue= false;
}
calendar.setup();
}
var CalendarWebControl = new atCalendarControl(); | 10npsite | trunk/guanli/Inc/Calendar.js | JavaScript | asf20 | 17,164 |
@charset "utf-8";
img{ border:0px; behavior:url(\Inc\pngbehavior.htc); }
.YKTtable {
font-size: 12px;
line-height: 1.5;
background-color: #4169E1;
}
.TableLine {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: double;
border-right-style: none;
border-left-style: none;
border-top-color: 4169E1;
border-right-color: 4169E1;
border-bottom-color: 4169E1;
border-left-color: 4169E1;
}
body {
font-size: 12px;
line-height: 1.5;
color: Black;
}
.YKTth {
color: #FFFFFF;
padding: 5px;
background-repeat: repeat-x;
}
.YKTtd {
background-color: #FFFFFF;
padding: 5px;
color:#000;
}
.YKTtr{
background-color: #4169E1;
padding: 2px;
color:#CCC;
}
.Font12W {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}
.Menu12W {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
line-height: 1.5;
}
.Link12 {
font-size: 12px;
color: #4169E1;
text-decoration: none;
line-height: 1.5;
}
.Linktr12 {
font-size: 12px;
color: #cccccc;
text-decoration: none;
line-height: 1.5;
}
.Input_1 {
font-size: 12px;
color: Black;
height:18px;
width:163px;
color: Black;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
padding-top: 8px;
padding-left: 10px;
padding-right: 10px;
}
.InputNone {
font-size: 12px;
color: Black;
padding-top:3px;
padding-left:10px;
background-position: left center;
text-align: left;
background:url(../Iamges/input_bg.gif) no-repeat; width: 288px;
border:0px;
height:19px;
}
.TdLine { background:url(../Iamges/line_001.gif) bottom repeat-x;font-size: 12px;
}
.TdLineBG {
font-size: 12px;
background:url(../Iamges/line_001.gif) bottom repeat-x;
height: 25px;
}
.menu_1 {border: medium solid 1px #091867; height:21px; text-align:center; background-color:#2A43C4; color:#FFFFFF; font-size:12px;}
文字竖排样式
.tnt {
Writing-mode:tb-rl;
Text-align:left;
font-size:12pt;
line-height: 160%;
} Select {
font-size: 12px;
color: #4169E1;
height: auto;
width: auto;
}
| 10npsite | trunk/guanli/Inc/Css.css | CSS | asf20 | 2,213 |
<!--
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
function expandIt(index){//-----------------------------------------
var menuitem=new Array()
menuitem[1]=System_Child_1
menuitem[2]=System_Child_2
menuitem[3]=System_Child_3
if (menuitem[index].style.display=="block"){
displayall()
}
else {
displayall()
menuitem[index].style.display="block"
}
}
function displayall(){//-----------------------------------------------------------
System_Child_1.style .display ="none"
System_Child_2.style .display ="none"
System_Child_3.style .display ="none"
}
function arrange() {
nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height;
for (i=firstInd+1; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.visibility != "hide") {
whichEl.pageY = nextY;
nextY += whichEl.document.height;
}
}
}
function initIt(){
if (!ver4) return;
if (NS4) {
for (i=0; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
}
arrange();
}
else {
divColl = document.all.tags("DIV");
for (i=0; i<divColl.length; i++) {
whichEl = divColl(i);
if (whichEl.className == "child") whichEl.style.display = "none";
}
}
}
onload = initIt;
//--> | 10npsite | trunk/guanli/Iamges/menu.js | JavaScript | asf20 | 1,511 |
<?php
//后台公共函数库
require_once $SystemConest[0]."/inc/Uifunction.php";
//检查是否是管理员登陆
//if($_SESSION["Login"][1]=="" or $_SESSION["Login"][1]==null) die("你不是工作人员或没有登陆!");
?> | 10npsite | trunk/guanli/Common/common.php | PHP | asf20 | 244 |
<?php require "../global.php";
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
$adminname=$_REQUEST["UserName"];
$password=$_REQUEST["PassWord"];
$MyadminClass=new ADMINClass();
$MyadminClass->adminname=$adminname;
$MyadminClass->password=md5($password);
$MyadminClass->login();
if(isset($_SESSION["Login"])){
gourl("Main.html",1);//登陆成功前往
}
else{
//die("用户名或密码错误");
alert("index.php",1,"用户名或密码错误");
}
?> | 10npsite | trunk/guanli/Login.php | PHP | asf20 | 597 |
<?php
class ADMINClass
{//管理员登陆操作类
var $adminname;
var $password;
var $url;
var $type;
var $Sstring;
var $Su_url;
var $su_type;
var $smPicPath;// 用于MessgBox()
var $smMsg;// 用于MessgBox()
var $smURL;// 用于MessgBox()
var $guanliDir;
var $chaojizhanghao;
var $UserName; //登陆的管理员用户名
function login()
{
$Mydb=new YYBDB();
global $SystemConest;
$sqlrs="select * from ".$SystemConest[7]."sysadmin where sysadmin1='".$this->adminname."' and sysadmin2='".$this->password."'";
$rsc=$Mydb->db_select_query($sqlrs);
if($rsc)
{
$rs=$Mydb->db_fetch_array($rsc);
if($Mydb->db_num_rows($rsc)>0)
{
$_SESSION["Login"]=$rs;
}
}
}
function loginCheck($MenuId)//验证管理员是否登陆
{
global $SystemConest;
if(!isset($_SESSION["Login"]))
{
$this->smMsg="您没有登陆或无权限";
$this->smURL= "/".$SystemConest[1]."/main.php";
$this->smPicPath="/".$SystemConest[1]."/Iamges/Error.jpg";
$this->MessgBox($smPicPath,$smMsg,$smURL);
die;
}
//更新权限
if(GetUpdateRule(GetUserMenuRuleValue($MenuId,$mydb,$_SESSION["Login"][0]))==false && $_SESSION["Login"][1]<>$SystemConest[2])
{
$this->smPicPath="/".$SystemConest[1]."/Iamges/Error.jpg";
$this->smMsg="您没有操作权限!";
$this->smURL="/".$SystemConest[1]."/main.php";
$this->MessgBox();
die;
}
}
function MessgBox()
{
//需要三个值 $smPicPath,$smMsg,$smURL
global $SystemConest;
?>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="555" height="180"><div align="right"><img src="<?php echo $this->smPicPath;?>" width="227" height="119" /></div></td>
<td width="13"></td>
<td width="358" valign="bottom"><p class="TDLine"><?php echo $this->smMsg;?> </p>
<p> </p></td>
</tr>
<tr>
<td colspan="3"><div align="center"><a href="<?php echo $this->smURL;?>"><img src="/<?php echo $SystemConest[1];?>/Iamges/Back.jpg" width="171" height="52" border="0" /></a></div></td>
</tr>
</table>
<?php
}
}//类结束
?> | 10npsite | trunk/guanli/UIFunction/adminClass.php | PHP | asf20 | 2,169 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站管理后台</title>
</head>
<frameset rows="115,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="Top.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset cols="146,*" frameborder="no" border="0" framespacing="0">
<frame src="Left.php" name="leftFrame" scrolling="auto" noresize="noresize" id="leftFrame" title="leftFrame" />
<frameset rows="436,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="Main.php" name="mainFrame" id="mainFrame" title="mainFrame" style="scrolling-x:no"/>
<frame src="bottom.php" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
</frameset>
</frameset>
<noframes><body>
</body>
</noframes></html>
| 10npsite | trunk/guanli/Main.html | HTML | asf20 | 1,055 |
<div class="bottom">
<div class="footer">
<!--常见帮助 start-->
<div class="help">
<ul>
<li class="help_title">预订常见问题</li>
<li><a href="" target="_blank">纯玩是什么意思?</a></li><li><a href="" target="_blank">单房差是什么?</a></li> </ul><ul>
<li class="help_title">付款和发票</li>
</ul><ul>
<li class="help_title">签署旅游合同</li>
<li><a href="" target="_blank">有哪几种合同</a></li> </ul><ul>
<li class="help_title">优惠政策及活动</li>
</ul><ul>
<li class="help_title">其他问题</li>
</ul></div> <!--常见帮助 end-->
<!--友情链接 start-->
<div class="friend">
<ul>
<li class="blue bold">合作伙伴:</li>
<li class="sj">
<a href="" target="_blank">新浪旅游</a>
<a href="" target="_blank">搜狐旅游</a>
<a href="" target="_blank">网易旅游</a>
<a href="" target="_blank">央视旅游</a>
<a href="" target="_blank">雅虎旅游</a>
<a href="" target="_blank">凤凰卫视</a>
<a href="" target="_blank">旅游光明</a>
<a href="" target="_blank">日报旅游中</a>
<a href="" target="_blank">国日报旅游</a>
<a href="" target="_blank">中华网旅游环球</a>
<a href="" target="_blank">网旅游中</a>
<a href="" target="_blank">央广播电台</a>
</li>
</ul>
<ul>
<li class="blue bold">友情链接:</li>
<li class="sj">
<a href="" target="_blank">中国新闻网</a>
<a href="" target="_blank">百度</a>
<a href="" target="_blank">奇艺</a>
<a href="" target="_blank">同程网</a>
<a href="" target="_blank">游多多</a>
<a href="" target="_blank">自助游</a>
<a href="" target="_blank">劲旅网易</a>
<a href="" target="_blank">观网酷讯</a>
<a href="" target="_blank">去哪儿</a>
<a href="" target="_blank">poco旅游</a>
<a href="" target="_blank">绿野户</a>
<a href="" target="_blank">外网火车网</a>
<a href="" target="_blank">住哪网</a>
<a href="" target="_blank">峨眉山</a>
<a href="" target="_blank">格林豪泰</a>
<a href="" target="_blank">特价酒店西</a>
<a href="" target="_blank">藏旅游西</a>
<a href="" target="_blank">藏旅游邮</a>
<a href="" target="_blank">编网北京</a>
<a href="" target="_blank">旅行社</a>
</li>
</ul>
<ul>
<li><a href="" target="_blank"><img src="/Public/images/yl.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/cft.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/kq.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/zfb.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/hk.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/xh.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/xy.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/kx.jpg" /></a></li>
</ul>
<ul class="ks">
<li><a href="" target="_blank">关于梦之旅</a></li>
<li><a href="" target="_blank">联系梦之旅</a></li>
<li><a href="" target="_blank">诚邀合作</a></li>
<li><a href="" target="_blank">广告招标</a></li>
<li><a href="" target="_blank">网站地图</a></li>
<li><a href="" target="_blank">快速支付</a></li>
<li><a href="" target="_blank">支付安全</a></li>
<li><a href="" target="_blank">法律声明</a></li>
<li style="border:none;"><a href="" target="_blank">新手指南</a></li>
</ul>
</div>
<!--友情链接 end-->
<!--版权信息 start-->
<div class="bqxx">
<li>Copyright © 1997-2012 梦之旅 版权所有</li>
<li style="float:right;">国际旅行社经营许可证注册号:L-SC-CJ00014 蜀ICP备08007806号 京公网安备1101055404号</li>
</div>
<!--版权信息 end-->
</div>
</div> | 10npsite | trunk/Index/html/pagehelpfoot.htm | HTML | asf20 | 5,712 |
<div class="bottom">
<div class="footer">
<!--常见帮助 start-->
<div class="help">
<ul>
<li class="help_title">预订常见问题</li>
<li><a href="" target="_blank">纯玩是什么意思?</a></li><li><a href="" target="_blank">单房差是什么?</a></li> </ul><ul>
<li class="help_title">付款和发票</li>
</ul><ul>
<li class="help_title">签署旅游合同</li>
<li><a href="" target="_blank">有哪几种合同</a></li> </ul><ul>
<li class="help_title">优惠政策及活动</li>
</ul><ul>
<li class="help_title">其他问题</li>
</ul></div> <!--常见帮助 end-->
<!--友情链接 start-->
<div class="friend">
<ul>
<li class="blue bold">合作伙伴:</li>
<li class="sj">
<a href="" target="_blank">新浪旅游</a>
<a href="" target="_blank">搜狐旅游</a>
<a href="" target="_blank">网易旅游</a>
<a href="" target="_blank">央视旅游</a>
<a href="" target="_blank">雅虎旅游</a>
<a href="" target="_blank">凤凰卫视</a>
<a href="" target="_blank">旅游光明</a>
<a href="" target="_blank">日报旅游中</a>
<a href="" target="_blank">国日报旅游</a>
<a href="" target="_blank">中华网旅游环球</a>
<a href="" target="_blank">网旅游中</a>
<a href="" target="_blank">央广播电台</a>
</li>
</ul>
<ul>
<li class="blue bold">友情链接:</li>
<li class="sj">
<a href="" target="_blank">中国新闻网</a>
<a href="" target="_blank">百度</a>
<a href="" target="_blank">奇艺</a>
<a href="" target="_blank">同程网</a>
<a href="" target="_blank">游多多</a>
<a href="" target="_blank">自助游</a>
<a href="" target="_blank">劲旅网易</a>
<a href="" target="_blank">观网酷讯</a>
<a href="" target="_blank">去哪儿</a>
<a href="" target="_blank">poco旅游</a>
<a href="" target="_blank">绿野户</a>
<a href="" target="_blank">外网火车网</a>
<a href="" target="_blank">住哪网</a>
<a href="" target="_blank">峨眉山</a>
<a href="" target="_blank">格林豪泰</a>
<a href="" target="_blank">特价酒店西</a>
<a href="" target="_blank">藏旅游西</a>
<a href="" target="_blank">藏旅游邮</a>
<a href="" target="_blank">编网北京</a>
<a href="" target="_blank">旅行社</a>
</li>
</ul>
<ul>
<li><a href="" target="_blank"><img src="/Public/images/yl.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/cft.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/kq.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/zfb.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/hk.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/xh.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/xy.jpg" /></a></li>
<li><a href="" target="_blank"><img src="/Public/images/kx.jpg" /></a></li>
</ul>
<ul class="ks">
<li><a href="" target="_blank">关于梦之旅</a></li>
<li><a href="" target="_blank">联系梦之旅</a></li>
<li><a href="" target="_blank">诚邀合作</a></li>
<li><a href="" target="_blank">广告招标</a></li>
<li><a href="" target="_blank">网站地图</a></li>
<li><a href="" target="_blank">快速支付</a></li>
<li><a href="" target="_blank">支付安全</a></li>
<li><a href="" target="_blank">法律声明</a></li>
<li style="border:none;"><a href="" target="_blank">新手指南</a></li>
</ul>
</div>
<!--友情链接 end-->
<!--版权信息 start-->
<div class="bqxx">
<li>Copyright © 1997-2012 梦之旅 版权所有</li>
<li style="float:right;">国际旅行社经营许可证注册号:L-SC-CJ00014 蜀ICP备08007806号 京公网安备1101055404号</li>
</div>
<!--版权信息 end-->
</div>
</div> | 10npsite | trunk/Index/html/foot.htm | HTML | asf20 | 5,712 |
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
<title>提示信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script>
var waitTime = {$waitSecond};
handle = setInterval("tryJump()", 1000);
function tryJump() {
waitTime--;
if (waitTime <= 0) {
clearInterval(handle);
<present name="closeWin" >windowclose();return;</present>
window.location.href = '{$jumpUrl}';
} else {
document.getElementById("timer").innerHTML = waitTime;
}
}
function windowclose() {
var browserName = navigator.appName;
if (browserName=="Netscape") {
window.open('', '_self', '');
window.close();
}
else {
if (browserName == "Microsoft Internet Explorer"){
window.opener = "whocares";
window.opener = null;
window.open('', '_top');
window.close();
}
}
}
</script>
<style type="text/css">
body{
margin:0;
padding:0;
width:100%;
height:100%;
}
#wrap {
position:absolute;
width:500px;
height:300px;
top:50%;
left:50%;
margin-top:-150px;
margin-left:-250px;
border:1px solid #69BA26;
}
#content{
margin:35px;
font-size:14px;
color:#888;
}
a{
color:#61C422;
text-decoration:none;
}
#errorTitle {
background:transparent url(__PUBLIC__/images/error.gif) no-repeat scroll left center;
color:#E26000;
padding:15px 0px 15px 60px;
}
#errorMsg, #successMsg {
padding:15px 0px 15px 60px;
height:100px;
line-height:1.6em;
}
#successTitle {
background:transparent url(__PUBLIC__/images/success.gif) no-repeat scroll left center;
padding:15px 0px 15px 60px;
}
#timer {
color:#F87F15;font-weight:bold;
}
</style>
</head>
<body>
<div id="wrap">
<div id="content">
<!-- 成功-->
<eq name="status" value="1">
<present name="message" >
<h2 id="successTitle">{$msgTitle}</h3>
<h4 id="successMsg">{$message}</h4>
</present>
</eq>
<!--失败-->
<eq name="status" value="0">
<present name="error" >
<h2 id="errorTitle">{$msgTitle}</h3>
<h4 id="errorMsg">{$error}</h4>
</present>
</eq>
<present name="closeWin" >
<div id="jumper">系统将在 <span id="timer">{$waitSecond}</span> 秒后自动关闭,如果不想等待,直接点击 <A HREF="{$jumpUrl}">关闭</A></div>
</present>
<notpresent name="closeWin">
<div id="jumper">系统将在 <span id="timer">{$waitSecond}</span> 秒后自动跳转,如果不想等待,直接点击 <A HREF="{$jumpUrl}">这里</A> 跳转</div>
</notpresent>
</div>
</div>
</body>
</html> | 10npsite | trunk/Index/Tpl/message.html | HTML | asf20 | 2,694 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx{
padding:0px;
margin:0;
font-size:12px;
color:#000;
line-height:20px;
}
.sjht_fd table .jtxx{
text-align:right;
width:100px;
*width:13%;
}
.sjht_fd table td{
height:25px;
color:#535353;
}
.sjht_fd table td .jtxx_title{
background:#E8F9FF;
border-left:3px solid #34AFC1;
color:#535353;
font-size:14px;
font-weight:bold;
height:32px;
line-height:32px;
width:765px;
padding-left:10px;
margin:10px 0px 5px 0px;
}
</style>
<div class="content"> <include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<div class="sjht_xx">
<!--具体信息左边 start-->
<div class="sjht_fd">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<div class="jtxx_title" style="margin:0px 0px 5px 0px;">订单信息</div>
</td>
</tr>
<tr>
<td class="jtxx">订单号:</td>
<td><{$orderDetails.orderNum}></td>
</tr>
<tr>
<td class="jtxx">订单类别:</td>
<td><eq name='orderDetails[orderType]' value='即'>即时预定<else/>非即时预定</eq></td>
</tr>
<tr>
<td class="jtxx">产品名称:</td>
<td><{$orderDetails.innName}></td>
</tr>
<tr>
<td class="jtxx">下单时间:</td>
<td><{$orderDetails.orderTime|date='Y-m-d H:i:s',###}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">款项</div>
</td>
</tr>
<tr>
<td class="jtxx">总金额:</td>
<td><{$orderDetails.totalAmount}></td>
</tr>
<tr>
<td class="jtxx">订金金额:</td>
<td><{$orderDetails.depositAmount}></td>
</tr>
<tr>
<td class="jtxx">已付订金:</td>
<td><empty name="orderDetails['depositConfirm']">未支付<else/><{$orderDetails.depositPay}></empty></td>
</tr>
<tr>
<td class="jtxx">订金支付方式:</td>
<td><{$orderDetails.depositType}></td>
</tr>
<tr>
<td class="jtxx">订金支付时间:</td>
<td><notempty name="orderDetails['depositConfirm']"><{$orderDetails.depositTime|date='Y-m-d H:i:s',###}></notempty></td>
</tr>
<tr>
<td class="jtxx">定金支付期限:</td>
<td><{$orderDetails.depositDate|date='Y-m-d H:i:s',###}></td>
</tr>
<tr><td colspan='2'></td></tr>
<tr>
<td class="jtxx">余款金额:</td>
<td><{$orderDetails.balanceAmount}></td>
</tr>
<tr>
<td class="jtxx">已付余款:</td>
<td><empty name="orderDetails['balanceConfirm']">未支付<else/><{$orderDetails.balancePay}></empty></td>
</tr>
<tr>
<td class="jtxx">余款支付方式:</td>
<td><{$orderDetails.balanceType}></td>
</tr>
<tr>
<td class="jtxx">余款支付时间:</td>
<td><notempty name="orderDetails['balanceConfirm']"><{$orderDetails.balanceTime|date='Y-m-d H:i:s',###}></notempty></td>
</tr>
<tr>
<td class="jtxx">余款支付期限:</td>
<td><{$orderDetails.balanceDate|date='Y-m-d H:i:s',###}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">入住信息</div>
</td>
</tr>
<tr>
<td class="jtxx">房间/床位数:</td>
<td><{$orderDetails.roomcount}></td>
</tr>
<tr>
<td class="jtxx">入住人数:</td>
<td><{$orderDetails.personCount}></td>
</tr>
<tr>
<td class="jtxx">入住日期:</td>
<td><{$orderDetails.checkinDate|date='Y-m-d',###}></td>
</tr>
<tr>
<td class="jtxx">离店时间:</td>
<td><gt name="orderDetails['checkoutDate']" value="$orderDetails['checkinDate']"><{$orderDetails.checkoutDate|date='Y-m-d',###}></gt></td>
</tr>
<tr>
<td class="jtxx">订单内容:</td>
</tr>
<tr>
<td class="jtxx"></td>
<td><{$orderDetails.textContent}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">联系方式</div>
</td>
</tr>
<tr>
<td class="jtxx">联系人姓名:</td>
<td><{$orderDetails.contact}></td>
</tr>
<tr>
<td class="jtxx">电子邮件:</td>
<td><{$orderDetails.email}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">客服处理</div>
</td>
</tr>
<tr>
<td colspan='2'>
<eq name='orderDetails[orderType]' value='即'>
即时预定类订单无需人工处理
<else/>
<switch name="orderDetails['status']" >
<case value="2">已拒绝 [<{$orderDetails.replyTime|date='Y-m-d H:i:s',###}>]</case>
<case value="1">已接受 [<{$orderDetails.replyTime|date='Y-m-d H:i:s',###}>]</case>
<default />
等待处理
<a href='__KZURL__/book/accept-id-<{$_GET[id]}>'>接受</a>
<a href='__KZURL__/book/reject-id-<{$_GET[id]}>'>拒绝</a>
</switch>
</eq>
</td>
</tr>
</table>
</div>
<!--具体信息左边 end-->
</div>
<!--具体信息 end-->
</div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/book/details.htm | HTML | asf20 | 6,305 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx{
padding-top:0px;
margin:0;
font-size:12px;
color:#000;
line-height:15px;
}
.sjht_fd table{
border-top:2px solid #35AFC1;
border-left:1px solid #e0e0e0;
text-align:center;
}
.sjht_fd table td{
border-right:1px solid #e0e0e0;
border-bottom:1px solid #e0e0e0;
padding:5px;
}
.sjht_fd table .title{
height:33px;
background:url(__PUBLIC__/images/tr_bg.png);
}
.sjht_fd table .title td{
padding:0;
}
.sjht_fd a{
color:#0069CA;
}
</style>
<div class="content">
<include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<div class="sjht_xx">
<!--具体信息左边 start-->
<div class="sjht_fd">
<script type='text/javascript'>
function do_search() {
uri = '__KZURL__/book/index';
contact = $("#searchForm input[name='contact']").val();
if(contact !='') uri += '-contact-' + contact;
mobile = $("#searchForm input[name='mobile']").val();
if(mobile !='') uri += '-mobile-' + mobile;
email = $("#searchForm input[name='email']").val();
if(email !='') uri += '-email-' + email;
orderNum = $("#searchForm input[name='orderNum']").val();
if(orderNum !='') uri += '-orderNum-' + orderNum;
selectType = $("#searchForm input[name='selectType']:checked").val();
if(selectType =='uncheckin') uri += '-selectType-' + selectType;
window.location.href = uri;
}
</script>
<div id='searchForm'>
订单查询<br>
联系人姓名:<input type='text' name='contact' value="<{$_REQUEST['contact']}>" />
手机:<input type='text' name='mobile' value="<{$_REQUEST['mobile']}>" />
邮件:<input type='text' name='email' value="<{$_REQUEST['email']}>" />
<br>订单号:<input type='text' name='orderNum' value="<{$_REQUEST['orderNum']}>" />
筛选范围:<input type='radio' name='selectType' value='all' <neq name="_REQUEST['selectType']" value='uncheckin'>checked</neq>>所有订单
<input type='radio' name='selectType' value='uncheckin' <eq name="_REQUEST['selectType']" value='uncheckin'>checked</eq>>未入住订单
<input type='button' value='查询' onclick='do_search()' />
</div>
<div>
<span>订单名称颜色区分</span>
<span style='color:orange'>[黄:等待处理]</span>
<span style='color:green'>[绿:已接受]</span>
<span style='color:red'>[红:已拒绝]</span>
<span style='color:black'>[黑:即时预定型订单,不需要主动处理]</span>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="title">
<td width="">订单号</td>
<td width="">名称</td>
<td width="">订金</td>
<td width="">订金支付方式</td>
<td width="">余款</td>
<td width="">余款支付方式</td>
<td width="">床位/房间</td>
<td width="">人数</td>
<td width=""><eq name="_REQUEST['selectType']" value='uncheckin'>入住<else/>下单</eq>时间</td>
</tr>
<assign name="dateGroup" value="" />
<volist name='orderList' id='vo'>
<php>$orderDate = date('Y年m月d日',$_REQUEST['selectType']=='uncheckin' ? $vo['checkinDate'] : $vo['orderTime']);</php>
<neq name='dateGroup' value='$orderDate'>
<assign name="dateGroup" value="$orderDate" />
<tr><td colspan='10'><{$dateGroup}></td></tr>
</neq>
<tr>
<td>
<a href="__KZURL__/book/details-id-<{$vo.id}>"><{$vo.orderNum}></a>
<br />
<eq name="vo['status']" value='2'>
<img src='http://www.dreams-travel.com/pay/order/quxiaodingdan/已取消.gif'>
</eq>
</td>
<td>
<!--即时预定判断-->
<eq name='vo[orderType]' value='即'>
<span style='border:1px solid blue;color:blue;'><{$vo.orderType}></span>
<else/>
<span style='border:1px solid green;color:green'><{$vo.orderType}></span>
</eq>
<!--状态颜色区分[黄:等待处理; 绿:已接受; 红:已拒绝; 黑:即时预定,不需要主动处理]-->
<a href="__KZURL__/book/details-id-<{$vo.id}>">
<eq name='vo[orderType]' value='即'>
<span style='color:black'><{$vo.innName}></span>
<else/>
<switch name="vo['status']" >
<case value="2"><span style='color:red'></case>
<case value="1"><span style='color:green'></case>
<default /><span style='color:orange'>
</switch>
<{$vo.innName}></span>
</eq>
</a>
</td>
<td><{$vo.depositAmount}></td>
<td><empty name="vo['depositConfirm']"><span style='color:gray'>未支付</span><else/><span style='color:green'><{$vo.depositType}></span></empty></td>
<td><{$vo.balanceAmount}></td>
<td><empty name="vo['balanceConfirm']"><span style='color:gray'>未支付</span><else/><span style='color:green'><{$vo.balanceType}></span></empty></td>
<td><{$vo.roomcount}></td>
<td><{$vo.personCount}></td>
<td><eq name="_REQUEST['selectType']" value='uncheckin'><{$vo.checkinDate|date='H:m',###}><else/><{$vo.orderTime|date='H:m',###}></eq></td>
</tr>
</volist>
</table>
<{$pageBar}>
</div>
<!--具体信息左边 end-->
</div>
<!--具体信息 end-->
</div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/book/index.htm | HTML | asf20 | 6,836 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx { padding-top:0px; margin:0; font-size:12px; color:#000; line-height:15px; }
.sjht_fd table { border-top:2px solid #35AFC1; border-left:1px solid #e0e0e0; text-align:center; }
.sjht_fd table td { border-right:1px solid #e0e0e0; border-bottom:1px solid #e0e0e0; padding:5px; }
.sjht_fd table .title { height:33px; background:url(__PUBLIC__/images/tr_bg.png); }
.sjht_fd table .title td { padding:0px; }
.sjht_fd a { color:#0069CA; }
</style>
<script type='text/javascript'>
function reply(msg_id) {
var content = prompt('请输入回复内容:');
if(content != null && content != '') {
alert('回复功能暂未实现!');
}
}
function formValidate() {
if( $('select[name=BatMethod]').val() == 0 ) {
alert('请选择您要执行的操作');
return false;
} else if(confirm('是否确定执行所选操作?')) {
return true;
} else
return false;
}
function checkAll(name) {
$(':checkbox[name="'+name+'"]').attr('checked',true);
}
function reverseCheck(name) {
checked = $(':checked[name="'+name+'"]');
checkAll(name);
checked.attr('checked',false);
}
function uncheckAll(name) {
$(':checkbox[name="'+name+'"]').attr('checked',false);
}
</script>
<div class="content">
<include file="public:innleft" />
<div class="sjht_right">
<div class="sjht_xx">
<div class="sjht_fd">
<form action='__KZURL__/message/batch' method='post' onsubmit="return formValidate();">
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="title">
<td> </td>
<td width='200'>客栈名称</td>
<td width='60'>会员</td>
<td>留言内容</td>
<td width='80'>时间</td>
<td width='40'>显示</td>
<td width='40'>操作</td>
</tr>
<volist name='messageList' id='vo'>
<tr>
<td><input type='checkbox' name='BatKey[]' value='<{$vo.msg_id}>' /></td>
<td><{$myInn[$vo[inn_id]]}></td>
<td><{$vo.uid}></td>
<td><{$vo.content}></td>
<td><{$vo.add_time|date='Y-m-d H:i:s',###}></td>
<td><eq name='vo[display]' value='1212'>
<span style='color:green'>是</span>
<else/>
<span style='color:red'>否</span>
</eq>
</td>
<td><input type='button' onclick='reply(<{$vo.msg_id}>)' value='回复' /></td>
</tr>
</volist>
<tr>
<td colspan='7'>
<a href="javascript:;" onclick="checkAll('BatKey[]')">全选</a>
<a href="javascript:;" onclick="reverseCheck('BatKey[]')">反选</a>
<a href="javascript:;" onclick="uncheckAll('BatKey[]')">取消</a>
选中项:
<select name='BatMethod'>
<option value='0'>----</option>
<option value='show'>显示</option>
<option value='hide'>隐藏</option>
<option value='delete'>删除</option>
</select>
<input type='submit' value='确定'></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
<include file='./Index/Tpl/Home/default/public/footer.htm' /> | 10npsite | trunk/Index/Tpl/Inn/default/Message/index.htm | HTML | asf20 | 3,667 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx{
padding:0px;
margin:0;
font-size:12px;
color:#000;
line-height:20px;
}
.sjht_fd table .jtxx{
text-align:right;
width:100px;
*width:13%;
}
.sjht_fd table td{
height:25px;
color:#535353;
}
.sjht_fd table td .jtxx_title{
background:#E8F9FF;
border-left:3px solid #34AFC1;
color:#535353;
font-size:14px;
font-weight:bold;
height:32px;
line-height:32px;
width:765px;
padding-left:10px;
margin:10px 0px 5px 0px;
}
</style>
<div class="content"> <include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<div class="sjht_xx">
<!--具体信息左边 start-->
<div class="sjht_fd">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<div class="jtxx_title" style="margin:0px 0px 5px 0px;">点评信息</div>
</td>
</tr>
<tr>
<td class="jtxx">点评对象:</td>
<td><{$myInn[$reviews[product_id]]}></td>
</tr>
<tr>
<td class="jtxx">相关订单:</td>
<td><a href='__KZURL__/book/index-orderNum-<{$reviews.order_num}>' target='_blank'><{$reviews.order_num}></a></td>
</tr>
<tr>
<td class="jtxx">点评者姓名:</td>
<td><{$reviews.msg_name}></td>
</tr>
<tr>
<td class="jtxx">是否显示姓名:</td>
<td><{$reviews.msg_name_show}></td>
</tr>
<tr>
<td class="jtxx">相关会员:</td>
<td>
<empty name='reviews[msg_uid]'>
非会员
<else/>
<a href='__UCHOME__/space.php?uid=<{$reviews[msg_uid]}>' target='_blank'>
<img src='__UCENTER__/avatar.php?uid=<{$reviews[msg_uid]}>' />
<{$reviews[msg_uid]}>
</a>
</empty>
</td>
</tr>
<tr>
<td class="jtxx">点评来自地区:</td>
<td><{$reviews.msg_from}></td>
</tr>
<tr>
<td class="jtxx">评语:</td>
<td><{$reviews.msg_inn}></td>
</tr>
<tr>
<td class="jtxx">提交时间:</td>
<td><{$reviews.msg_time|date='Y-m-d H:i:s',###}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">评分情况</div>
</td>
</tr>
<tr>
<td class="jtxx">特色:</td>
<td><{$reviews.score_tese}></td>
</tr>
<tr>
<td class="jtxx">位置:</td>
<td><{$reviews.score_place}></td>
</tr>
<tr>
<td class="jtxx">趣味:</td>
<td><{$reviews.score_interest}></td>
</tr>
<tr>
<td class="jtxx">清洁:</td>
<td><{$reviews.score_clean}></td>
</tr>
<tr>
<td class="jtxx">员工:</td>
<td><{$reviews.score_staff}></td>
</tr>
<tr>
<td class="jtxx">安全:</td>
<td><{$reviews.score_security}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">回复</div>
</td>
</tr>
<tr>
<td class="jtxx">回复内容:</td>
<td><textarea name='reply'></textarea><input type='submit' value='提交'></td>
</tr>
</table>
</div>
<!--具体信息左边 end-->
</div>
<!--具体信息 end-->
</div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/Reviews/details.htm | HTML | asf20 | 4,045 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx{
padding-top:0px;
margin:0;
font-size:12px;
color:#000;
line-height:15px;
}
.sjht_fd table{
border-top:2px solid #35AFC1;
border-left:1px solid #e0e0e0;
text-align:center;
}
.sjht_fd table td{
border-right:1px solid #e0e0e0;
border-bottom:1px solid #e0e0e0;
padding:5px;
}
.sjht_fd table .title{
height:33px;
background:url(__PUBLIC__/images/tr_bg.png);
}
.sjht_fd table .title td{
padding:0px;
}
.sjht_fd a{
color:#0069CA;
}
</style>
<div class="content">
<include file="public:innleft" />
<div class="sjht_right">
<div class="sjht_xx">
<div class="sjht_fd">
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="title">
<td width='200'>点评对象</td>
<td width='60'>姓名</td>
<td width='60'>会员</td>
<td>评语</td>
<td width='80'>时间</td>
<td width='40'>操作</td>
</tr>
<volist name='reviewsList' id='vo'>
<tr>
<td><{$myInn[$vo[product_id]]}></td>
<td><{$vo.msg_name}></td>
<td><{$vo.msg_uid}></td>
<td><{$vo.msg_inn}></td>
<td><{$vo.msg_time|date='Y-m-d H:i:s',###}></td>
<td>
<a href="__KZURL__/reviews/details-id-<{$vo.rv_id}>">详情</a>
</td>
</tr>
</volist>
</table>
</div>
</div>
</div>
</div>
<include file='./Index/Tpl/Home/default/public/footer.htm' /> | 10npsite | trunk/Index/Tpl/Inn/default/Reviews/index.htm | HTML | asf20 | 1,646 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<div class="content">
<include file="public:innleft" />
<div class="sjht_right"><div class="sjht_xx"><div class="sjht_fd">
<ul>
<li class="jt_title">
[<a href='__KZURL__/room/index-innId-<{$inn.id}>'>房型管理</a>]
[<a href='__KZURL__/price/index-innId-<{$inn.id}>'>价格管理</a>]
</li>
</ul>
<h2 style='line-height:40px;'><{$inn.name}></h2>
<h2 style='line-height:40px;'><{$room.name}></h2>
<iframe style='width:100%;height:500px;' src='__ROOT__/inc/calendarprice.php?MenuId=601&hid=<{$inn.id}>&tid=<{$room.id}>&fieldid=12'></iframe>
</div></div></div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/price/dayprice.htm | HTML | asf20 | 918 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx{
padding-top:0px;
margin:0;
font-size:12px;
color:#000;
line-height:15px;
}
.sjht_fd table{
border-top:2px solid #35AFC1;
border-left:1px solid #e0e0e0;
text-align:center;
}
.sjht_fd table td{
border-right:1px solid #e0e0e0;
border-bottom:1px solid #e0e0e0;
padding:5px;
}
.sjht_fd table .title{
height:33px;
background:url(__PUBLIC__/images/tr_bg.png);
}
.sjht_fd table .title td{
padding:0px;
}
.sjht_fd a{
color:#0069CA;
}
</style>
<script src="http://cdn.jquerytools.org/1.2.7/form/jquery.tools.min.js"></script>
<script type="text/javascript">
(function($){
$(function(){
$("form.vali").validator({
messageClass:"yellow",
position:"bottom left"
});
});
})(jQuery);
</script>
<link href="__PUBLIC__/jsLibrary/jquerytools/dateinput/skin1.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
(function($){
$(function(){
$.tools.dateinput.localize("zh-cn", {
months: '一月,二月,三月,四月,五月,六月,七月,' +
'八月,九月,十月,十一月,十二月',
shortMonths: '一月,二月,三月,四月,五月,六月,七月,' +
'八月,九月,十月,十一月,十二月',
days: '周日,周一,周二,周三,周四,周五,周六',
shortDays: '日,一,二,三,四,五,六'
});
$("input[name='begin'],input[name='end']").dateinput({
lang: 'zh-cn',
format: 'yyyy-mm-dd',
offset: [0, 0],
selectors: true
});
$("#myform").validator({
messageClass:"yellow",
position:"bottom left"
});
$("#myform input").focus(function(){
$(this).addClass('input_hover');
}).blur(function(){
$(this).removeClass('input_hover');
});
});
})(jQuery);
</script>
<div class="content">
<include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right"><div class="sjht_xx"><div class="sjht_fd">
<ul>
<li class="jt_title">
<a href='__KZURL__/room/index-innId-<{$inn.id}>'>[房型管理]</a>
<a href='__KZURL__/price/index-innId-<{$inn.id}>'>[价格管理]</a>
</li>
</ul>
<h2 style='line-height:40px;'><{$inn.name}></h2>
<div style='float:left;width:30%'>
<form class="vali" method='post' action='__KZURL__/price/op-innId-<{$inn.id}>'>
名称:<input type='text' name='name' required="required" data-message="请填写时间段名称!" />
起始日期:<input type='text' name='begin' required="required" data-message="请填写起始日期!" />
截止日期:<input type='text' name='end' required="required" data-message="请填写截止日期!" />
<input type='submit' name='add' value='添加' />
</form>
<ul>
<volist name='prices' id='vo'>
<li><a href="__KZURL__/price/index-innId-<{$inn.id}>-pid-<{$vo.id}>"><{$vo.name}></a></li>
</volist>
</ul>
</div>
<div style='float:left;width:69%'>
<empty name='price'>
请点击左边的时间段列表进行详细价格设置
<else/>
<form class="vali" method='post' action='__KZURL__/price/op-innId-<{$inn.id}>'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>名称</td>
<td><input type="text" name='name' value='<{$price.name}>' required="required" data-message="请填写时间段名称!" /></td></tr>
<tr>
<td>起始日期</td>
<td><input type="text" name='begin' value='<{$price.begin|date="Y-m-d",###}>' required="required" data-message="请填写起始日期!" /></td></tr>
<tr>
<td>截止日期</td>
<td><input type="text" name='end' value='<{$price.end|date="Y-m-d",###}>' required="required" data-message="请填写截止日期!" /></td></tr>
<tr>
<td>排序</td>
<td><input type="text" name='display_order' value='<{$price.display_order}>' /></td></tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<caption><h2 style='line-height:40px;'>详细价格设置</h2></caption>
<tr class="title">
<td>房型名称</td>
<td>市场价</td>
<td>梦之旅价</td>
<td>提前预定天数</td>
<td>定金支付比例</td>
<td>库存数</td>
<td>按天设置价格</td>
</tr>
<volist name='roomList' id='vo'>
<tr>
<td><{$vo.name}></td>
<td><input type='text' size='5' name='prices[<{$vo.id}>][scj]' value='<{$vo.priceSet.scj}>' /></td>
<td><input type='text' size='5' name='prices[<{$vo.id}>][mzlj]' value='<{$vo.priceSet.mzlj}>' /></td>
<td><input type='text' size='5' name='prices[<{$vo.id}>][tiqianyudin]' value='<{$vo.priceSet.tiqianyudin}>' /></td>
<td><input type='text' size='5' name='prices[<{$vo.id}>][zfbl]' value='<{$vo.priceSet.zfbl}>' /></td>
<td><input type='text' size='5' name='prices[<{$vo.id}>][kucunshu]' value='<{$vo.priceSet.kucunshu}>' /></td>
<td>
<a href="__KZURL__/price/dayprice-innId-<{$inn.id}>-roomid-<{$vo.id}>">按天设置价格</a>
</td>
</tr>
</volist>
</table>
<input type="hidden" value='<{$price.id}>' name='id'>
<input class="jx" type="submit" name='modify' value="保存设置" />
<input class="jx" type="button" onclick='if(confirm("删除数据不可恢复,是否确认删除?"))window.location.href="__KZURL__/price/op-innId-<{$inn.id}>-delete-<{$price.id}>"' value="删除数据" />
</form>
</empty>
</div>
</div></div></div>
</div>
<include file='./Index/Tpl/Home/default/public/footer.htm' /> | 10npsite | trunk/Index/Tpl/Inn/default/price/index.htm | HTML | asf20 | 6,860 |
<tagLib name="html"/>
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
* {
font-size:12px;
}
.sjht_xx{
padding:0px;
margin:0;
font-size:12px;
color:#000;
line-height:20px;
}
.sjht_fd table .jtxx{
text-align:right;
width:100px;
*width:13%;
}
.sjht_fd table td{
height:25px;
color:#535353;
}
.sjht_fd table td .jtxx_title{
background:#E8F9FF;
border-left:3px solid #34AFC1;
color:#535353;
font-size:14px;
font-weight:bold;
height:32px;
line-height:32px;
width:765px;
padding-left:10px;
margin:10px 0px 5px 0px;
}
</style>
<div class="content">
<div class="sjht_right"><div class="sjht_xx"><div class="sjht_fd">
<<<a href="__KZURL__/mybook/index">返回订单列表</a>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<div class="jtxx_title" style="margin:0px 0px 5px 0px;">订单信息</div>
</td>
</tr>
<tr>
<td class="jtxx">订单号:</td>
<td><{$orderDetails.orderNum}></td>
</tr>
<tr>
<td class="jtxx">订单类别:</td>
<td><eq name='orderDetails[orderType]' value='即'>即时预定<else/>非即时预定</eq></td>
</tr>
<tr>
<td class="jtxx">产品名称:</td>
<td><{$orderDetails.innName}></td>
</tr>
<tr>
<td class="jtxx">下单时间:</td>
<td><{$orderDetails.orderTime|date='Y-m-d H:i:s',###}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">款项</div>
</td>
</tr>
<tr>
<td class="jtxx">总金额:</td>
<td><{$orderDetails.totalAmount}></td>
</tr>
<tr>
<td class="jtxx">订金金额:</td>
<td><{$orderDetails.depositAmount}></td>
</tr>
<tr>
<td class="jtxx">已付订金:</td>
<td><empty name="orderDetails['depositConfirm']"><a href='__KZURL__/pay/Payment-orderNum-<{$orderDetails.orderNum}>-fortype-a' target='_blank'>尚未支付,立即在线支付>></a><else/><{$orderDetails.depositPay}></empty></td>
</tr>
<tr>
<td class="jtxx">订金支付方式:</td>
<td><{$orderDetails.depositType}></td>
</tr>
<tr>
<td class="jtxx">订金支付时间:</td>
<td><notempty name="orderDetails['depositConfirm']"><{$orderDetails.depositTime|date='Y-m-d H:i:s',###}></notempty></td>
</tr>
<tr>
<td class="jtxx">定金支付期限:</td>
<td><{$orderDetails.depositDate|date='Y-m-d H:i:s',###}></td>
</tr>
<tr><td colspan='2'></td></tr>
<tr>
<td class="jtxx">余款金额:</td>
<td><{$orderDetails.balanceAmount}></td>
</tr>
<tr>
<td class="jtxx">已付余款:</td>
<td>
<empty name="orderDetails['balanceConfirm']">
请先支付订金,之后才能支付余款!
<else/>
<empty name="orderDetails['balanceConfirm']">
<a href='__KZURL__/pay/Payment-orderNum-<{$orderDetails.orderNum}>-fortype-b' target='_blank'>尚未支付,立即在线支付>></a>
<else/>
<{$orderDetails.balancePay}>
</empty></td>
</empty>
</tr>
<tr>
<td class="jtxx">余款支付方式:</td>
<td><{$orderDetails.balanceType}></td>
</tr>
<tr>
<td class="jtxx">余款支付时间:</td>
<td><notempty name="orderDetails['balanceConfirm']"><{$orderDetails.balanceTime|date='Y-m-d H:i:s',###}></notempty></td>
</tr>
<tr>
<td class="jtxx">余款支付期限:</td>
<td><{$orderDetails.balanceDate|date='Y-m-d H:i:s',###}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">入住信息</div>
</td>
</tr>
<tr>
<td class="jtxx">房间/床位数:</td>
<td><{$orderDetails.roomcount}></td>
</tr>
<tr>
<td class="jtxx">入住人数:</td>
<td><{$orderDetails.personCount}></td>
</tr>
<tr>
<td class="jtxx">入住日期:</td>
<td><{$orderDetails.checkinDate|date='Y-m-d',###}></td>
</tr>
<tr>
<td class="jtxx">离店时间:</td>
<td><gt name="orderDetails['checkoutDate']" value="$orderDetails['checkinDate']"><{$orderDetails.checkoutDate|date='Y-m-d',###}></gt></td>
</tr>
<tr>
<td class="jtxx">订单内容:</td>
</tr>
<tr>
<td class="jtxx"></td>
<td><{$orderDetails.textContent}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">联系方式</div>
</td>
</tr>
<tr>
<td class="jtxx">联系人姓名:</td>
<td><{$orderDetails.contact}></td>
</tr>
<tr>
<td class="jtxx">电子邮件:</td>
<td><{$orderDetails.email}></td>
</tr>
<tr>
<td colspan="2">
<div class="jtxx_title">客服处理</div>
</td>
</tr>
<tr>
<td colspan='2'>
<eq name='orderDetails[orderType]' value='即'>
您的信息已提交!
<else/>
<switch name="orderDetails['status']" >
<case value="2">已拒绝 [<{$orderDetails.replyTime|date='Y-m-d H:i:s',###}>]</case>
<case value="1">已接受 [<{$orderDetails.replyTime|date='Y-m-d H:i:s',###}>]</case>
<default />
正在等待处理……
</switch>
</eq>
</td>
</tr>
</table>
</div></div></div>
</div>
| 10npsite | trunk/Index/Tpl/Inn/default/mybook/details.htm | HTML | asf20 | 6,454 |
<tagLib name="html"/>
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
* {
font-size:12px;
}
.sjht_xx{
padding-top:0px;
margin:0;
font-size:12px;
color:#000;
line-height:15px;
}
.sjht_fd table{
border-top:2px solid #35AFC1;
border-left:1px solid #e0e0e0;
text-align:center;
}
.sjht_fd table td{
border-right:1px solid #e0e0e0;
border-bottom:1px solid #e0e0e0;
padding:5px;
}
.sjht_fd table .title{
height:33px;
background:url(__PUBLIC__/images/tr_bg.png);
}
.sjht_fd table .title td{
padding:0;
}
.sjht_fd a{
color:#0069CA;
}
</style>
<div class="content">
<div class="sjht_right"><div class="sjht_xx"><div class="sjht_fd">
<script type='text/javascript'>
function do_search() {
uri = '__KZURL__/mybook/index';
contact = $("#searchForm input[name='contact']").val();
if(contact !='') uri += '-contact-' + contact;
mobile = $("#searchForm input[name='mobile']").val();
if(mobile !='') uri += '-mobile-' + mobile;
email = $("#searchForm input[name='email']").val();
if(email !='') uri += '-email-' + email;
orderNum = $("#searchForm input[name='orderNum']").val();
if(orderNum !='') uri += '-orderNum-' + orderNum;
selectType = $("#searchForm input[name='selectType']:checked").val();
if(selectType =='uncheckin') uri += '-selectType-' + selectType;
window.location.href = uri;
}
</script>
<div id='searchForm'>
订单查询<br>
联系人姓名:<input type='text' name='contact' value="<{$_REQUEST['contact']}>" />
手机:<input type='text' name='mobile' value="<{$_REQUEST['mobile']}>" />
邮件:<input type='text' name='email' value="<{$_REQUEST['email']}>" />
<br>订单号:<input type='text' name='orderNum' value="<{$_REQUEST['orderNum']}>" />
筛选范围:<input type='radio' name='selectType' value='all' <neq name="_REQUEST['selectType']" value='uncheckin'>checked</neq>>所有订单
<input type='radio' name='selectType' value='uncheckin' <eq name="_REQUEST['selectType']" value='uncheckin'>checked</eq>>未入住订单
<input type='button' value='查询' onclick='do_search()' />
</div>
<div>
<span>订单名称颜色区分</span>
<span style='color:orange'>[黄:等待处理]</span>
<span style='color:green'>[绿:已接受]</span>
<span style='color:red'>[红:已拒绝]</span>
<span style='color:black'>[黑:即时预定型订单,不需要主动处理]</span>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="title">
<td width="">订单号</td>
<td width="">名称</td>
<td width="">订金</td>
<td width="">订金支付方式</td>
<td width="">余款</td>
<td width="">余款支付方式</td>
<td width="">床位/房间</td>
<td width="">人数</td>
<td width=""><eq name="_REQUEST['selectType']" value='uncheckin'>入住<else/>下单</eq>时间</td>
</tr>
<assign name="dateGroup" value="" />
<volist name='orderList' id='vo'>
<php>$orderDate = date('Y年m月d日',$_REQUEST['selectType']=='uncheckin' ? $vo['checkinDate'] : $vo['orderTime']);</php>
<neq name='dateGroup' value='$orderDate'>
<assign name="dateGroup" value="$orderDate" />
<tr><td colspan='10'><{$dateGroup}></td></tr>
</neq>
<tr>
<td>
<a href="__KZURL__/mybook/details-id-<{$vo.id}>"><{$vo.orderNum}></a>
<br />
<eq name="vo['status']" value='2'>
<img src='http://www.dreams-travel.com/pay/order/quxiaodingdan/已取消.gif'>
</eq>
</td>
<td>
<!--即时预定判断-->
<eq name='vo[orderType]' value='即'>
<span style='border:1px solid blue;color:blue;'><{$vo.orderType}></span>
<else/>
<span style='border:1px solid green;color:green'><{$vo.orderType}></span>
</eq>
<!--状态颜色区分[黄:等待处理; 绿:已接受; 红:已拒绝; 黑:即时预定,不需要主动处理]-->
<a href="__KZURL__/mybook/details-id-<{$vo.id}>">
<eq name='vo[orderType]' value='即'>
<span style='color:black'><{$vo.innName}></span>
<else/>
<switch name="vo['status']" >
<case value="2"><span style='color:red'></case>
<case value="1"><span style='color:green'></case>
<default /><span style='color:orange'>
</switch>
<{$vo.innName}></span>
</eq>
</a>
</td>
<td><{$vo.depositAmount}></td>
<td><empty name="vo['depositConfirm']"><span style='color:gray'>未支付</span><else/><span style='color:green'><{$vo.depositType}></span></empty></td>
<td><{$vo.balanceAmount}></td>
<td><empty name="vo['balanceConfirm']"><span style='color:gray'>未支付</span><else/><span style='color:green'><{$vo.balanceType}></span></empty></td>
<td><{$vo.roomcount}></td>
<td><{$vo.personCount}></td>
<td><eq name="_REQUEST['selectType']" value='uncheckin'><{$vo.checkinDate|date='H:m',###}><else/><{$vo.orderTime|date='H:m',###}></eq></td>
</tr>
</volist>
</table>
<{$pageBar}>
</div></div></div>
</div>
| 10npsite | trunk/Index/Tpl/Inn/default/mybook/index.htm | HTML | asf20 | 6,538 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<script src="http://cdn.jquerytools.org/1.2.7/form/jquery.tools.min.js"></script>
<script type="text/javascript">
(function($){
$(function(){
$("#myform").validator({
messageClass:"yellow",
position:"bottom left"
});
$("#myform input").focus(function(){
$(this).addClass('input_hover');
}).blur(function(){
$(this).removeClass('input_hover');
});
});
window.selectfile = function(field) {
$("input[name='"+field+"']").click();
}
window.fileselected = function(field) {
path = $("input[name='"+field+"']").val();
$("#"+field).val(path);
}
})(jQuery);
</script>
<div class="content">
<include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<!--会员资料 start-->
<div class="hyzl">
<li><a href='__KZURL__/innAdm/index-id-<{$inn.id}>'>会员资料</a></li>
<li class="hyzl_hover"><a href='__KZURL__/innAdm/base-id-<{$inn.id}>'>客栈基本信息</a></li>
<li><a href='__KZURL__/innAdm/details-id-<{$inn.id}>'>客栈详情</a></li>
<li><a href='__KZURL__/innAdm/images-id-<{$inn.id}>'>客栈图集</a></li>
<li><a href='__KZURL__/innAdm/other-id-<{$inn.id}>'>其它信息</a></li>
</div>
<!--会员资料 end-->
<!--具体信息 start-->
<div class="sjht_xx">
<!--具体信息左边 start-->
<div class="sjht_fd">
<form id="myform" method='post' action='__KZURL__/innAdm/submit'>
<ul>
<li class="jt_title">客栈资料</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">客栈名称</span>
<span><{$inn.name}></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">客栈等级</span>
<span class="dx">
<html:radio name='class' radios='InnClassList' checked="InnClass" />
</span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">开业时间</span>
<span><input type="text" name='openTime' value='<{$inn.openTime}>' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">房间数量</span>
<span><input type="text" name='roomCount' value='<{$inn.roomCount}>' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">客栈设施</span>
<span class="dx">
<html:checkbox name='facility' checkboxes='InnFacilityList' checked="InnFacility" />
</span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">交通信息</span>
<span><html:editor id="traffic" name="traffic" style="" ><{$inn.traffic}></html:editor></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">[客栈位置]</span>
<span><input type="text" /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">地址详情</span>
<span><input type="text" name='address' value='<{$inn.address}>' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">[客栈地图]</span>
<span><input type="text" /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">地理位置特征</span>
<span><html:editor id="location" name="location" style="" ><{$inn.location}></html:editor></span>
</p>
</li>
</ul>
<ul class="kt_next_two">
<li>
<span>*放心上传您的资料,本资料严格保密,不会用于其它用途!</span>
</li>
<li>
<input type="hidden" value='<{$inn.id}>' name='id'>
<input class="jx" type="submit" name='baseSubmit' value="保存基本信息" />
</li>
</ul>
</form>
</div>
<!--具体信息左边 end-->
</div>
<!--具体信息 end-->
</div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/innAdm/base.htm | HTML | asf20 | 5,953 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/inn-adm-base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/jsLibrary/uploadify/uploadify.css" />
<script src="__PUBLIC__/jsLibrary/uploadify/jquery.uploadify-3.1.min.js"></script>
<script type='text/javascript'>
function del(id) {
if(confirm('确定要删除此图片?')) {
$.post('__KZURL__/innAdm/delimages', { "id": <{$inn["id"]}>, "imgid":id },
function(data){
if(data!=1)
alert(data);
else
$('#innimages'+id).remove();
}, "text");
}
}
$(function() {
$("#images_upload").uploadify({
swf : '__PUBLIC__/jsLibrary/uploadify/uploadify.swf',
uploader : '__KZURL__/innAdm/upimages',
height : 30,
width : 120,
buttonText: '选择图片',
fileTypeExts: '*.gif;*.jpg;*.jpeg;*.png',
fileSizeLimit: '1024KB',
formData: {
"id":"<{$inn.id}>"
},
onUploadSuccess: function (file, data, response) {
if (data.indexOf('错误提示:') > -1) {
alert(data);
} else {
data = eval('(' + data + ')');
domStr = "<span id='innimages"+data.picid+"'>";
domStr += " <em class='del'>";
domStr += " <a href='javascript:;'>";
domStr += " <img src='__PUBLIC__/images/sc.png' onclick='del("+data.picid+")' />";
domStr += " </a>";
domStr += " </em>";
domStr += " <em>";
domStr += " <img src='"+data.picpath+"' width='100' />";
domStr += " </em>";
domStr += "</span>";
$("li.tpj").append(domStr);
}
},
onUploadError: function (file, errorCode, errorMsg, errorString) {
alert('文件:' + file.name + ' 上传失败: ' + errorString);
}
});
});
</script>
<div class="content">
<include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<!--会员资料 start-->
<div class="hyzl">
<li><a href='__KZURL__/innAdm/index-id-<{$inn.id}>'>会员资料</a></li>
<li><a href='__KZURL__/innAdm/base-id-<{$inn.id}>'>客栈基本信息</a></li>
<li><a href='__KZURL__/innAdm/details-id-<{$inn.id}>'>客栈详情</a></li>
<li class="hyzl_hover"><a href='__KZURL__/innAdm/images-id-<{$inn.id}>'>客栈图集</a></li>
<li><a href='__KZURL__/innAdm/other-id-<{$inn.id}>'>其它信息</a></li>
</div>
<!--会员资料 end-->
<!--具体信息 start-->
<div class="sjht_xx">
<!--具体信息左边 start-->
<div class="sjht_fd">
<ul>
<li class="jt_title">客栈图集</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">客栈图集</span>
<span><input type="file" name='images_upload' id='images_upload' /></span>
</p>
</li>
<li class="tpj">
<volist name='InnImagesList' id='vo'>
<span id='innimages<{$vo.id}>'>
<em class="del"><a href='javascript:;'><img src="__PUBLIC__/images/sc.png" onclick='del(<{$vo.id}>)' /></a></em>
<em><img src="<{$vo.path}>" width="100" /></em>
</span>
</volist>
</li>
</ul>
</div>
<!--具体信息左边 end-->
</div>
<!--具体信息 end-->
</div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/innAdm/images.htm | HTML | asf20 | 4,109 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<div class="content">
<include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<!--会员资料 start-->
<div class="hyzl">
<li><a href='__KZURL__/innAdm/index-id-<{$inn.id}>'>会员资料</a></li>
<li><a href='__KZURL__/innAdm/base-id-<{$inn.id}>'>客栈基本信息</a></li>
<li class="hyzl_hover"><a href='__KZURL__/innAdm/details-id-<{$inn.id}>'>客栈详情</a></li>
<li><a href='__KZURL__/innAdm/images-id-<{$inn.id}>'>客栈图集</a></li>
<li><a href='__KZURL__/innAdm/other-id-<{$inn.id}>'>其它信息</a></li>
</div>
<!--会员资料 end-->
<!--具体信息 start-->
<div class="sjht_xx">
<!--具体信息左边 start-->
<div class="sjht_fd">
<form id="myform" method='post' enctype='multipart/form-data' action='__KZURL__/innAdm/submit'>
<ul>
<li class="jt_title">客栈详情</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">幻灯图片1</span>
<span><input type="file" name='pic1' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">幻灯图片2</span>
<span><input type="file" name='pic2' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">幻灯图片3</span>
<span><input type="file" name='pic3' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">幻灯图片4</span>
<span><input type="file" name='pic4' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">幻灯图片5</span>
<span><input type="file" name='pic5' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="kzjs">
<span class="zc_xx_title">客栈介绍</span>
<span class="bjk"><html:editor id="introduction" name="introduction" style="" ><{$inn.introduction}></html:editor></span>
</p>
</li>
</ul>
<ul class="kt_next_two">
<li>
<span>*放心上传您的资料,本资料严格保密,不会用于其它用途!</span>
</li>
<li>
<input type="hidden" value='<{$inn.id}>' name='id'>
<input class="jx" type="submit" name='detailsSubmit' value="保存客栈详情" />
</li>
</ul>
</form>
</div>
<!--具体信息左边 end-->
</div>
<!--具体信息 end-->
</div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/innAdm/details.htm | HTML | asf20 | 3,775 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<div class="content">
<include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<!--会员资料 start-->
<div class="hyzl">
<li class="hyzl_hover"><a href='__KZURL__/innAdm/index-id-<{$inn.id}>'>会员资料</a></li>
<li><a href='__KZURL__/innAdm/base-id-<{$inn.id}>'>客栈基本信息</a></li>
<li><a href='__KZURL__/innAdm/details-id-<{$inn.id}>'>客栈详情</a></li>
<li><a href='__KZURL__/innAdm/images-id-<{$inn.id}>'>客栈图集</a></li>
<li><a href='__KZURL__/innAdm/other-id-<{$inn.id}>'>其它信息</a></li>
</div>
<!--会员资料 end-->
<!--具体信息 start-->
<div class="sjht_xx">
<!--具体信息左边 start-->
<div class="sjht_fd">
<form id="myform" method='post' enctype='multipart/form-data' action='__KZURL__/innAdm/submit'>
<ul>
<li class="jt_title">基本资料</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">店主姓名</span>
<span><input type="text" name='truename' value='<{$inn.truename}>' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">手机号码</span>
<span><input type="text" name='mobile' value='<{$inn.mobile}>' /></span>
<span>请输入手机号码</span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">电子邮箱</span>
<span><input type="text" name='email' value='<{$inn.email}>' /></span>
<span>请输入手机号码</span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">身份证号</span>
<span><input type="text" name='idcard_number' value='<{$inn.idcard_number}>' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">证件扫描上传</span>
<span><input type="file" name='idcard_pic' /></span>
</p>
</li>
</ul>
<ul>
<li class="jt_title">公司资料</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">单位名称</span>
<span><input type="text" name='orgname' value='<{$inn.orgname}>' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">办公电话</span>
<span><input type="text" name='officephone' value='<{$inn.officephone}>' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">营业证号</span>
<span><input type="text" name='biz_number' value='<{$inn.biz_number}>' /></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="zc_xx">
<span class="zc_xx_title">证件扫描上传</span>
<span><input type="file" name='biz_pic' /></span>
</p>
</li>
</ul>
<ul class="kt_next_two">
<li>
<span>*放心上传您的资料,本资料严格保密,不会用于其它用途!</span>
</li>
<li>
<input type="hidden" value='<{$inn.id}>' name='id'>
<input class="jx" type="submit" name='indexSubmit' value="保存会员资料" />
</li>
</ul>
</form>
</div>
<!--具体信息左边 end-->
</div>
<!--具体信息 end-->
</div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/innAdm/index.htm | HTML | asf20 | 5,051 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<div class="content">
<include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<!--会员资料 start-->
<div class="hyzl">
<li><a href='__KZURL__/innAdm/index-id-<{$inn.id}>'>会员资料</a></li>
<li><a href='__KZURL__/innAdm/base-id-<{$inn.id}>'>客栈基本信息</a></li>
<li><a href='__KZURL__/innAdm/details-id-<{$inn.id}>'>客栈详情</a></li>
<li><a href='__KZURL__/innAdm/images-id-<{$inn.id}>'>客栈图集</a></li>
<li class="hyzl_hover"><a href='__KZURL__/innAdm/other-id-<{$inn.id}>'>其它信息</a></li>
</div>
<!--会员资料 end-->
<!--具体信息 start-->
<div class="sjht_xx">
<!--具体信息左边 start-->
<div class="sjht_fd">
<form id="myform" method='post' action='__KZURL__/innAdm/submit'>
<ul>
<li class="jt_title">预订须知</li>
<li class="sjht_jtxx">
<p class="kzjs">
<span class="zc_xx_title">预订须知</span>
<span class="bjk"><html:editor id="bookingPolicy" name="bookingPolicy" style="" ><{$inn.bookingPolicy}></html:editor></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="kzjs">
<span class="zc_xx_title">优惠政策</span>
<span class="bjk"><html:editor id="preferential" name="preferential" style="" ><{$inn.preferential}></html:editor></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="kzjs">
<span class="zc_xx_title">取消及更改规则</span>
<span class="bjk"><html:editor id="rules" name="rules" style="" ><{$inn.rules}></html:editor></span>
</p>
</li>
<li class="sjht_jtxx">
<p class="kzjs">
<span class="zc_xx_title">财务信息</span>
<span class="bjk"><html:editor id="financial" name="financial" style="" ><{$inn.financial}></html:editor></span>
</p>
</li>
</ul>
<ul class="kt_next_two">
<li>
<span>*一旦确定提交,不可修改。若需修改,需致函到梦之旅财务部确认。</span>
</li>
<li>
<input type="hidden" value='<{$inn.id}>' name='id'>
<input class="jx" type="submit" name='otherSubmit' value="保存其他信息" />
</li>
</ul>
</form>
</div>
<!--具体信息左边 end-->
</div>
<!--具体信息 end-->
</div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" /> | 10npsite | trunk/Index/Tpl/Inn/default/innAdm/other.htm | HTML | asf20 | 3,364 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx{
padding-top:0px;
margin:0;
font-size:12px;
color:#000;
line-height:15px;
}
.sjht_fd table{
border-top:2px solid #35AFC1;
border-left:1px solid #e0e0e0;
text-align:center;
}
.sjht_fd table td{
border-right:1px solid #e0e0e0;
border-bottom:1px solid #e0e0e0;
padding:5px;
}
.sjht_fd table .title{
height:33px;
background:url(__PUBLIC__/images/tr_bg.png);
}
.sjht_fd table .title td{
padding:0px;
}
.sjht_fd a{
color:#0069CA;
}
</style>
<div class="content"> <include file="public:innleft" />
<!--商家后台右边 start-->
<div class="sjht_right">
<div class="sjht_xx">
<div class="sjht_fd">
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="title">
<td>客栈名称</td>
<td width='80'>客栈类别</td>
<td width='140'>加入时间</td>
<td width='100'>合作方式</td>
<td width='50'>审核</td>
<td width='190'>操作</td>
</tr>
<volist name='innList' id='vo'>
<tr>
<td><a href="__KZURL__/innAdm/index-id-<{$vo.id}>"><{$vo.name}></a></td>
<td> <{$vo.type}> </td>
<td><{$vo.addTime|date='Y-m-d H:i:s',###}></td>
<td><{$vo.cooperation}></td>
<td><eq name='vo[status]' value='1212'>已审核<else/>未审核</eq></td>
<td><a href="__KZURL__/innAdm/index-id-<{$vo.id}>">修改客栈信息</a>
<a href="__KZURL__/room/index-innId-<{$vo.id}>">管理房型</a>
<a href="__KZURL__/price/index-innId-<{$vo.id}>">管理价格</a></td>
</tr>
</volist>
</table>
</div>
</div>
</div>
</div>
<include file='./Index/Tpl/Home/default/public/footer.htm' /> | 10npsite | trunk/Index/Tpl/Inn/default/list/index.htm | HTML | asf20 | 1,923 |
<!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" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>s_index_梦之旅客首页</title>
<link href="__PUBLIC__/css/index.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="iepng.js" type="text/javascript"></script>
<script type="text/javascript">
EvPNG.fix('img,div,ul,li,a');
</script>
<![endif]-->
</head>
<body>
<!--top start-->
<!--顶部信息 start-->
<div class="header">
<div class="head">
<div class="head_left">
<li>
动态:热烈欢迎"<a href="" target="_blank">我是背包客</a>"入住梦之旅
</li>
</div>
<div class="head_right">
<li>
<a href="" target="_blank">社区</a>
</li>
<li>
<a href="" target="_blank">游记攻略</a>
</li>
<li>
<a href="" target="_blank">旅游相册</a>
</li>
<li>
<a href="" target="_blank">活动</a>
</li>
<li>
<a href="" target="_blank">小组</a>
</li>
<li>
<a href="" target="_blank">景点</a>
</li>
<li onmouseover="this.className='active_2'" onmouseout="this.className=''">
<span class="more"><a href="" target="_blank" class="more">更多</a></span>
<span class="more_xl">
<a href="" target="_blank">附近转转</a>
<a href="" target="_blank">国内走走</a>
<a href="" target="_blank">国内走走</a>
</span>
</li>
</div>
</div>
</div>
<!--顶部信息 end-->
<!--菜单栏 start-->
<div class="menu">
<div class="logo">
<ul><a href="" target="_blank"><img src="images/logo.jpg" /></a></ul>
<ul class="city">
<li>成都出发</li>
<li><a>[切换城市]</a></li>
</ul>
</div>
<div class="nav">
<li><a href="" target="_blank" class="index">首页</a></li>
<li onmouseover="this.className='active_2'" onmouseout="this.className=''">
<span><a href="" target="_blank">我要去旅游</a></span>
<span class="xl">
<a href="" target="_blank">附近转转</a>
<a href="" target="_blank">国内走走</a>
<a href="" target="_blank">出国看看</a>
<a href="" target="_blank">包团游</a>
<a href="" target="_blank">客栈</a>
<a href="" target="_blank">自由行</a>
<a href="" target="_blank">背包游</a>
</span>
</li>
<li onmouseover="this.className='active_2'" onmouseout="this.className=''">
<span><a href="" target="_blank">旅游服务</a></span>
<span class="xl">
<a href="" target="_blank">签证</a>
<a href="" target="_blank">梦想团</a>
<a href="" target="_blank">机票</a>
<a href="" target="_blank">门票</a>
<a href="" target="_blank">景区表演票</a>
<a href="" target="_blank">投诉</a>
</span>
</li>
<li onmouseover="this.className='active_2'" onmouseout="this.className=''">
<span><a href="" target="_blank">社区</a></span>
<span class="xl1">
<a href="" target="_blank">旅途吼吼</a>
<a href="" target="_blank">游记攻略</a>
<a href="" target="_blank">旅游相册</a>
<a href="" target="_blank">投票</a>
<a href="" target="_blank">活动</a>
<a href="" target="_blank">景点</a>
<a href="" target="_blank">小组</a>
</span>
</li>
</div>
<div class="yd">
<div class="tel">
<li class="tel_title">预订热线</li>
<li class="telphone">
<span class="yellow">40000</span>
<span class="q_blue">-</span>
<span class="yellow">51706</span>
</li>
</div>
<div class="yh">
<li>
<span><img src="images/tx.jpg" /><a href="" target="_blank" class="gray">Hexing</a></span>
<span><img src="images/jb.jpg" /><a href="" target="_blank">933</a></span>
</li>
<li>
<span><a href="" target="_blank">订单</a></span>
<span><a href="" target="_blank">邀请</a></span>
<span><a href="" target="_blank">任务</a></span>
<span><a href="" target="_blank">道具</a></span>
<span><a href="" target="_blank">设置</a></span>
<span><a href="" target="_blank">退出</a></span>
</li>
</div>
</div>
</div>
<!--菜单栏 end-->
<!--搜索 start-->
<div class="search">
<div class="search_content">
<ul>
<li class="bq">
<p><span><input type="text" value="黄龙" onBlur="if(this.value==''){this.value='黄龙'}" onFocus="if(this.value=='黄龙'){this.value=''}"/></span></p>
<p onmouseover="this.className='active_2 chose_xx'" onmouseout="this.className='chose_xx'" class="chose_xx">
<span class="search_chose"><a>线路</a></span>
<span class="chose_xl">
<a href="">找人</a>
<a href="">攻略</a>
<a href="">客栈</a>
</span>
</p>
<p><span class="button"><input type="button" /></span></p>
</li>
<li class="rm">
<span>热门搜索:</span>
<span>
<a href="" target="_blank">厦门</a>
<a href="" target="_blank">马尔代夫</a>
<a href="" target="_blank">海南</a>
<a href="" target="_blank">迪拜</a>
<a href="" target="_blank">欧洲</a>
<a href="" target="_blank">普吉岛</a>
<a href="" target="_blank">美国</a>
<a href="" target="_blank">海南</a>
<a href="" target="_blank">迪拜</a>
<a href="" target="_blank">欧洲</a>
</span>
</li>
<li class="gwc">
<span class="gw"><a href="" target="_blank" class="black">购物车</a></span>
<span>(</span>
<span class="blue1">2</span>
<span>)</span>
</li>
</ul>
</div>
</div>
<!--搜索 end-->
<!--top end-->
<!--主体内容 start-->
<div class="kz_list_content">
<div class="content">
<!--搜索客栈 start-->
<div class="searchkz_s">
<div class="kzlist_left_title">
<ul class="white">搜索客栈</ul>
</div>
<div class="skz_s_nr">
<div class="mn">
<ul><input type="text" value="城市名:成都市" />
</ul>
<ul class="mn_xl">
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
</ul>
</div>
<div class="search_gjc">
<ul>
<li>热门城市:</li>
<li class="search_gjc_nr">
<a href="">北京</a>
<a href="">北京</a>
<a href="">北京</a>
<a href="">北京</a>
<a href="">北京</a>
<a href="">北京</a>
</li>
</ul>
</div>
<div class="gjz">
<ul><input type="text" value="输入关键字" /></ul>
</div>
<div class="mn">
<div class="year">
<ul><input type="text" value="入住时间选择" />
</ul>
<ul class="mn_xl">
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
</ul>
</div>
<div class="yf">
<ul><input type="text" value="住几晚" />
</ul>
<ul class="mn_xl">
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
</ul>
</div>
<div class="yf">
<ul><input type="text" value="选择人数" />
</ul>
<ul class="mn_xl">
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
<li><a href="">中国</a></li>
</ul>
</div>
<div class="kz_s_ss">
<ul><button> </button></ul>
</div>
</div>
</div>
</div>
<!--搜索客栈 start-->
<!--最经济实惠的客栈集中地 start-->
<div class="zjj">
<ul class="zjj_title">最经济实惠的客栈集中地</ul>
<ul class="zjj_nr">
<li>
<span class="green">今日入住:</span>
</li>
<li>
<span class="green">客栈共计:</span>
</li>
<li>
<span class="green">在线人数:</span>
</li>
<li>
<span class="green">话题</span><span class="yellow">9</span>
</li>
<li>
<span class="green">累计已有</span><span class="yellow">10</span><span class="green">预订</span>
</li>
</ul>
</div>
<!--最经济实惠的客栈集中地 end-->
<div class="clear"></div>
<!--kzlist_left start-->
<div class="kzlist_left">
<!--英文 start-->
<div class="yw_s">
<li><img src="images/yw.jpg" /></li>
</div>
<!--英文 end-->
<div class="clear"></div>
<!--保障服务 start-->
<div class="k4">
<ul class="jdxx_title">保障服务</ul>
<ul class="ll_before">
<li>
<span><a href="" target="_blank">A.预订不成功,立即还款</a></span>
</li>
<li>
<span><a href="" target="_blank">B.提前预订,旅行无忧</a></span>
</li>
</ul>
</div>
<!--保障服务 end-->
<div class="clear"></div>
<!--本月热门客栈 start-->
<div class="k4">
<ul class="jdxx_title">本月热门客栈</ul>
<ul class="ll_before">
<li>
<a href="" target="_blank">丽江精选</a>|
<a href="" target="_blank">阳朔</a>|
<a href="" target="_blank">泸沽湖</a>|
<a href="" target="_blank">南宁</a>|
<a href="" target="_blank">平遥</a>|
<a href="" target="_blank">西双版纳</a>|
<a href="" target="_blank">乳山</a>|
<a href="" target="_blank">西江</a>|
<a href="" target="_blank">乌镇</a>|
<a href="" target="_blank">阿拉善</a>|
<a href="" target="_blank">朱家角</a>|
<a href="" target="_blank">文昌</a>|
<a href="" target="_blank">洱海</a>|
<a href="" target="_blank">太鲁阁</a>|
<a href="" target="_blank">十渡</a>
</li>
</ul>
</div>
<!--本月热门客栈 end-->
<div class="clear"></div>
<!--本月热门城市 start-->
<div class="k4">
<ul class="jdxx_title">本月热门城市</ul>
<ul class="ll_before">
<li>
<a href="" target="_blank">成都市</a>|
<a href="" target="_blank">阳朔</a>|
<a href="" target="_blank">泸沽湖</a>|
<a href="" target="_blank">北京</a>|
<a href="" target="_blank">平遥</a>|
<a href="" target="_blank">西双版纳</a>|
<a href="" target="_blank">乳山</a>|
<a href="" target="_blank">西江</a>|
<a href="" target="_blank">乌镇</a>|
<a href="" target="_blank">阿拉善</a>|
<a href="" target="_blank">朱家角</a>|
<a href="" target="_blank">文昌</a>|
<a href="" target="_blank">洱海</a>|
<a href="" target="_blank">太鲁阁</a>|
<a href="" target="_blank">十渡</a>
</li>
</ul>
</div>
<!--本月热门城市 end-->
<div class="clear"></div>
<!--推荐客栈 start-->
<div class="k4">
<ul class="jdxx_title">推荐客栈</ul>
<ul class="tj_kz">
<li>
<span>
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
<span>
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
<span class="ma_none">
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
</li>
<li>
<span>
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
<span>
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
<span class="ma_none">
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
</li>
<li>
<span>
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
<span>
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
<span class="ma_none">
<a href="" target="_blank"><img src="images/tj_tp1.jpg" /></a>
<a href="" target="_blank">丽江精选</a>
</span>
</li>
</ul>
</div>
<!--推荐客栈 end-->
<!--逛逛店,申请掌柜 start-->
<div class="ggd">
<li><a href="" target="_blank"><img src="images/ggd.jpg" /></a></li>
<li class="f1"><a href="" target="_blank"><img src="images/szg.jpg" /></a></li>
</div>
<!--逛逛店,申请掌柜 end-->
</div>
<!--kzlist_left end-->
<!--kzlist_right start-->
<div class="kzlist_right">
<!--特卖客栈 start-->
<div class="kz_list_tj">
<ul class="kztj_title">
<li>特卖客栈</li>
<li class="gdtj"><a href="" target="_blank">更多…</a></li>
</ul>
<ul class="kzlist_tj_nr bg_gray1">
<li><a href=""><img src="images/jrtj.jpg" width="66" height="66" /></a></li>
<li class="kz_tj_jd kzsy">
<p>
<span><a href="" target="_blank">Day and Night Hostel</a></span>
<span class="yellow">¥115.44</span>
<span class="blue">好评 79%</span>
</p>
<p>
<span><a href="" target="_blank">Day and Night Hostel</a></span>
<span class="yellow">¥115.44</span>
<span class="blue">好评 79%</span>
</p>
<p>
<span><a href="" target="_blank">Day and Night Hostel</a></span>
<span class="yellow">¥115.44</span>
<span class="blue">好评 79%</span>
</p>
<p>
<span><a href="" target="_blank">Day and Night Hostel</a></span>
<span class="yellow">¥115.44</span>
<span class="blue">好评 79%</span>
</p>
</li>
</ul>
</div>
<!--特卖客栈 end-->
<div class="clear"></div>
<!--排行榜 start-->
<div class="kz_list_tj mt15">
<ul class="kztj_title">
<li>排行榜</li>
<li class="gdtj"><a href="" target="_blank">更多…</a></li>
</ul>
<ul class="kzlist_tj_nr">
<li><a href=""><img src="images/jrtj.jpg" width="66" height="66" /></a></li>
<li class="kz_tj_jd kzsy">
<p>
<span><a href="" target="_blank">Day and Night Hostel</a></span>
<span class="yellow">¥115.44</span>
<span class="blue">好评 79%</span>
</p>
<p>
<span><a href="" target="_blank">Day and Night Hostel</a></span>
<span class="yellow">¥115.44</span>
<span class="blue">好评 79%</span>
</p>
<p>
<span><a href="" target="_blank">Day and Night Hostel</a></span>
<span class="yellow">¥115.44</span>
<span class="blue">好评 79%</span>
</p>
<p>
<span><a href="" target="_blank">Day and Night Hostel</a></span>
<span class="yellow">¥115.44</span>
<span class="blue">好评 79%</span>
</p>
</li>
</ul>
</div>
<!--排行榜 end-->
<div class="clear"></div>
<!--客栈首页广告 start-->
<div class="sy_gg">
<a href="" target="_blank"><img src="images/sy_gg.jpg" /></a>
</div>
<!--客栈首页广告 end-->
<div class="clear"></div>
<!--最新加入 start-->
<div class="new_add">
<ul class="jdxx_title">最新加入</ul>
<ul>
<li>
<a href="" target="_blank">丽江精选</a>|
<a href="" target="_blank">阳朔</a>|
<a href="" target="_blank">泸沽湖</a>|
<a href="" target="_blank">南宁</a>|
<a href="" target="_blank">平遥</a>|
<a href="" target="_blank">西双版纳</a>|
<a href="" target="_blank">乳山</a>|
<a href="" target="_blank">西江</a>|
<a href="" target="_blank">乌镇</a>|
<a href="" target="_blank">阿拉善</a>|
<a href="" target="_blank">朱家角</a>|
<a href="" target="_blank">文昌</a>|
<a href="" target="_blank">洱海</a>|
<a href="" target="_blank">太鲁阁</a>|
<a href="" target="_blank">十渡</a>|
<a href="" target="_blank">无锡</a>|
<a href="" target="_blank">西安</a>|
<a href="" target="_blank">黔东南</a>|
<a href="" target="_blank">蓬莱</a>|
<a href="" target="_blank">肇兴</a>|
<a href="" target="_blank">西递</a>|
<a href="" target="_blank">日照</a>|
<a href="" target="_blank">橄榄坝</a>|
<a href="" target="_blank">国家大剧院</a>|
<a href="" target="_blank">云南</a>|
<a href="" target="_blank">晋中</a>|
<a href="" target="_blank">郭亮</a>|
<a href="" target="_blank">南迦巴瓦峰</a>|
<a href="" target="_blank">迪庆</a>|
<a href="" target="_blank">雪乡</a>|
<a href="" target="_blank">绍兴</a>|
<a href="" target="_blank">深圳</a>|
<a href="" target="_blank">婺源</a>|
<a href="" target="_blank">贵阳</a>|
<a href="" target="_blank">南昌</a>|
<a href="" target="_blank">香港</a>|
<a href="" target="_blank">焦作</a>|
<a href="" target="_blank">额济纳旗</a>|
<a href="" target="_blank">双桥沟</a>|
<a href="" target="_blank">江山</a>|
<a href="" target="_blank">北京市</a>|
<a href="" target="_blank">珠海</a>|
<a href="" target="_blank">布尔津</a>|
<a href="" target="_blank">威海</a>|
<a href="" target="_blank">苏州</a>|
<a href="" target="_blank">牡丹江</a>|
<a href="" target="_blank">湘西</a>|
<a href="" target="_blank">荔波</a>|
<a href="" target="_blank">泰山</a>|
<a href="" target="_blank">烟台</a>|
<a href="" target="_blank">南澳</a>|
<a href="" target="_blank">布城</a>|
<a href="" target="_blank">雨崩</a>|
<a href="" target="_blank">东西冲</a>|
<a href="" target="_blank">烟墩角</a>|
<a href="" target="_blank">北欧</a>|
<a href="" target="_blank">瑞丽</a>|
<a href="" target="_blank">峨眉山</a>|
<a href="" target="_blank">上海</a>|
<a href="" target="_blank">林芝</a>|
<a href="" target="_blank">乌鲁木齐</a>|
<a href="" target="_blank">武汉</a>|
<a href="" target="_blank">新都桥</a>|
<a href="" target="_blank">束河</a>|
<a href="" target="_blank">马来西亚</a>|
<a href="" target="_blank">四川省</a>|
<a href="" target="_blank">旺角</a>|
<a href="" target="_blank">红山军马场</a>|
<a href="" target="_blank">诺邓</a>|
<a href="" target="_blank">慕田峪长城</a>|
<a href="" target="_blank">木兰围场</a>|
<a href="" target="_blank">拉萨</a>|
<a href="" target="_blank">稻城</a>|
<a href="" target="_blank">韶关</a>|
<a href="" target="_blank">沈阳</a>|
<a href="" target="_blank">洛阳</a>|
<a href="" target="_blank">涠洲岛</a>|
<a href="" target="_blank">三清山</a>|
<a href="" target="_blank">丰宁坝上</a>|
<a href="" target="_blank">福建</a>|
<a href="" target="_blank">双廊</a>|
<a href="" target="_blank">上饶</a>|
<a href="" target="_blank">黟县</a>|
<a href="" target="_blank">潮州</a>|
<a href="" target="_blank">昆明</a>|
<a href="" target="_blank">兴城</a>|
<a href="" target="_blank">武夷山</a>|
<a href="" target="_blank">喀什</a>|
<a href="" target="_blank">开封</a>|
<a href="" target="_blank">黄姚古镇</a>|
<a href="" target="_blank">镇远</a>|
<a href="" target="_blank">天安门</a>|
<a href="" target="_blank">和顺</a>|
<a href="" target="_blank">清迈</a>|
<a href="" target="_blank">南浔</a>|
<a href="" target="_blank">普罗旺斯</a>|
<a href="" target="_blank">尖沙咀</a>|
<a href="" target="_blank">丽江</a>|
<a href="" target="_blank">凤凰</a>|
<a href="" target="_blank">敦煌</a>|
<a href="" target="_blank">怀柔</a>|
<a href="" target="_blank">禾木</a>|
<a href="" target="_blank">黄龙</a>|
<a href="" target="_blank">庐山</a>|
<a href="" target="_blank">承德</a>|
<a href="" target="_blank">长岛</a>|
<a href="" target="_blank">北海</a>|
<a href="" target="_blank">凯里</a>|
<a href="" target="_blank">衡山</a>|
<a href="" target="_blank">台北</a>|
<a href="" target="_blank">雀儿山</a>|
<a href="" target="_blank">北京</a>|
<a href="" target="_blank">三亚</a>|
<a href="" target="_blank">扬州</a>|
<a href="" target="_blank">泰安</a>|
<a href="" target="_blank">南疆</a>|
<a href="" target="_blank">康定</a>|
<a href="" target="_blank">开平</a>|
<a href="" target="_blank">长白山</a>|
<a href="" target="_blank">天津市</a>|
<a href="" target="_blank">临安</a>|
<a href="" target="_blank">恭王府</a>|
<a href="" target="_blank">南靖</a>|
<a href="" target="_blank">嵊泗</a>|
<a href="" target="_blank">浙西大峡谷</a>|
<a href="" target="_blank">天津</a>|
<a href="" target="_blank">西塘</a>|
<a href="" target="_blank">秦皇岛</a>|
<a href="" target="_blank">泉州</a>|
<a href="" target="_blank">青海湖</a>|
<a href="" target="_blank">嘉兴</a>|
<a href="" target="_blank">房山</a>|
<a href="" target="_blank">巴塞罗那</a>|
<a href="" target="_blank">少林寺</a>|
<a href="" target="_blank">哈尔滨</a>|
<a href="" target="_blank">丹霞山</a>|
<a href="" target="_blank">牛背山</a>|
<a href="" target="_blank">葫芦岛</a>|
<a href="" target="_blank">湛江</a>|
<a href="" target="_blank">南京</a>|
<a href="" target="_blank">北戴河</a>|
<a href="" target="_blank">张家界</a>|
<a href="" target="_blank">腾冲</a>|
<a href="" target="_blank">乐山</a>|
<a href="" target="_blank">大兴安岭</a>|
<a href="" target="_blank">龙胜</a>|
<a href="" target="_blank">南锣鼓巷</a>|
<a href="" target="_blank">塔下</a>|
<a href="" target="_blank">巴马</a>|
<a href="" target="_blank">南投</a>|
<a href="" target="_blank">海口</a>|
<a href="" target="_blank">意大利</a>|
<a href="" target="_blank">成都</a>|
<a href="" target="_blank">西宁</a>|
<a href="" target="_blank">肇庆</a>|
<a href="" target="_blank">阿坝</a>|
<a href="" target="_blank">张掖</a>|
<a href="" target="_blank">银川</a>|
<a href="" target="_blank">野山坡</a>|
<a href="" target="_blank">孟屯河谷</a>|
<a href="" target="_blank">同里</a>|
<a href="" target="_blank">泰国</a>|
<a href="" target="_blank">广州</a>|
<a href="" target="_blank">甘孜</a>|
<a href="" target="_blank">绥中</a>|
<a href="" target="_blank">密云水库</a>|
<a href="" target="_blank">杭州</a>|
<a href="" target="_blank">鼓浪屿</a>|
<a href="" target="_blank">龙岩</a>|
<a href="" target="_blank">甘肃省</a>|
<a href="" target="_blank">祁连山</a>|
<a href="" target="_blank">重庆</a>|
<a href="" target="_blank">九华山</a>|
<a href="" target="_blank">丹巴</a>|
<a href="" target="_blank">合肥</a>|
<a href="" target="_blank">花莲</a>|
<a href="" target="_blank">兰州</a>|
<a href="" target="_blank">庆源</a>|
<a href="" target="_blank">川藏线</a>|
<a href="" target="_blank">北部弯</a>|
<a href="" target="_blank">长沙</a>|
<a href="" target="_blank">黄山</a>|
<a href="" target="_blank">九寨沟</a>|
<a href="" target="_blank">曲阜</a>|
<a href="" target="_blank">香格里拉</a>|
<a href="" target="_blank">世博</a>|
<a href="" target="_blank">瑞安</a>|
<a href="" target="_blank">山东</a>|
<a href="" target="_blank">室韦</a>|
<a href="" target="_blank">上里</a>|
<a href="" target="_blank">首尔</a>|
<a href="" target="_blank">尼泊尔</a>|
<a href="" target="_blank">郎木寺</a>|
<a href="" target="_blank">保山</a>|
<a href="" target="_blank">大理</a>|
<a href="" target="_blank">普陀山</a>|
<a href="" target="_blank">漳州</a>|
<a href="" target="_blank">青岛</a>|
<a href="" target="_blank">额尔古纳</a>|
<a href="" target="_blank">赣州</a>|
<a href="" target="_blank">呼伦贝尔</a>|
<a href="" target="_blank">恩施</a>|
<a href="" target="_blank">平谷</a>|
<a href="" target="_blank">安徽</a>|
<a href="" target="_blank">喀纳斯</a>|
<a href="" target="_blank">贺州</a>|
<a href="" target="_blank">云台山</a>|
<a href="" target="_blank">大连</a>|
<a href="" target="_blank">厦门</a>|
<a href="" target="_blank">漠河</a>|
<a href="" target="_blank">桂林</a>|
<a href="" target="_blank">海螺沟</a>|
<a href="" target="_blank">梅里雪山</a>|
<a href="" target="_blank">宏村</a>|
<a href="" target="_blank">云南省</a>|
<a href="" target="_blank">四姑娘山</a>|
<a href="" target="_blank">哈巴雪山</a>|
<a href="" target="_blank">广西</a>|
<a href="" target="_blank">南澳岛</a>|
<a href="" target="_blank">北疆</a>|
<a href="" target="_blank">五台山</a>|
<a href="" target="_blank">朱家尖</a>|
</li>
</ul>
</div>
<!--最新加入 end-->
</div>
<!--kzlist_right end-->
</div>
</div>
<!--主体内容 end-->
<div class="clear"></div>
<!--底部部分 start-->
<div class="bottom">
<div class="footer">
<!--常见帮助 start-->
<div class="help">
<ul>
<li class="help_title">预订常见问题</li>
<li><a href="" target="_blank">纯玩是什么意思?</a></li>
<li><a href="" target="_blank">单房差是什么?</a></li>
<li><a href="" target="_blank">双飞、双卧都是什么意思?</a></li>
<li><a href="" target="_blank">满意度是怎么计算的?</a></li>
</ul>
<ul>
<li class="help_title">付款和发票</li>
<li><a href="" target="_blank">纯玩是什么意思?</a></li>
<li><a href="" target="_blank">单房差是什么?</a></li>
<li><a href="" target="_blank">双飞、双卧都是什么意思?</a></li>
<li><a href="" target="_blank">满意度是怎么计算的?</a></li>
</ul>
<ul>
<li class="help_title">签署旅游合同</li>
<li><a href="" target="_blank">纯玩是什么意思?</a></li>
<li><a href="" target="_blank">单房差是什么?</a></li>
<li><a href="" target="_blank">双飞、双卧都是什么意思?</a></li>
<li><a href="" target="_blank">满意度是怎么计算的?</a></li>
</ul>
<ul>
<li class="help_title">优惠政策及活动</li>
<li><a href="" target="_blank">纯玩是什么意思?</a></li>
<li><a href="" target="_blank">单房差是什么?</a></li>
<li><a href="" target="_blank">双飞、双卧都是什么意思?</a></li>
<li><a href="" target="_blank">满意度是怎么计算的?</a></li>
</ul>
<ul>
<li class="help_title">其他问题</li>
<li><a href="" target="_blank">纯玩是什么意思?</a></li>
<li><a href="" target="_blank">单房差是什么?</a></li>
<li><a href="" target="_blank">双飞、双卧都是什么意思?</a></li>
<li><a href="" target="_blank">满意度是怎么计算的?</a></li>
</ul>
</div>
<!--常见帮助 end-->
<!--友情链接 start-->
<div class="friend">
<ul>
<li class="blue bold">合作伙伴:</li>
<li class="sj">
<a href="" target="_blank">新浪旅游</a>
<a href="" target="_blank">搜狐旅游</a>
<a href="" target="_blank">网易旅游</a>
<a href="" target="_blank">央视旅游</a>
<a href="" target="_blank">雅虎旅游</a>
<a href="" target="_blank">凤凰卫视</a>
<a href="" target="_blank">旅游光明</a>
<a href="" target="_blank">日报旅游中</a>
<a href="" target="_blank">国日报旅游</a>
<a href="" target="_blank">中华网旅游环球</a>
<a href="" target="_blank">网旅游中</a>
<a href="" target="_blank">央广播电台</a>
</li>
</ul>
<ul>
<li class="blue bold">友情链接:</li>
<li class="sj">
<a href="" target="_blank">中国新闻网</a>
<a href="" target="_blank">百度</a>
<a href="" target="_blank">奇艺</a>
<a href="" target="_blank">同程网</a>
<a href="" target="_blank">游多多</a>
<a href="" target="_blank">自助游</a>
<a href="" target="_blank">劲旅网易</a>
<a href="" target="_blank">观网酷讯</a>
<a href="" target="_blank">去哪儿</a>
<a href="" target="_blank">poco旅游</a>
<a href="" target="_blank">绿野户</a>
<a href="" target="_blank">外网火车网</a>
<a href="" target="_blank">住哪网</a>
<a href="" target="_blank">峨眉山</a>
<a href="" target="_blank">格林豪泰</a>
<a href="" target="_blank">特价酒店西</a>
<a href="" target="_blank">藏旅游西</a>
<a href="" target="_blank">藏旅游邮</a>
<a href="" target="_blank">编网北京</a>
<a href="" target="_blank">旅行社</a>
</li>
</ul>
<ul>
<li><a href="" target="_blank"><img src="images/yl.jpg" /></a></li>
<li><a href="" target="_blank"><img src="images/cft.jpg" /></a></li>
<li><a href="" target="_blank"><img src="images/kq.jpg" /></a></li>
<li><a href="" target="_blank"><img src="images/zfb.jpg" /></a></li>
<li><a href="" target="_blank"><img src="images/hk.jpg" /></a></li>
<li><a href="" target="_blank"><img src="images/xh.jpg" /></a></li>
<li><a href="" target="_blank"><img src="images/xy.jpg" /></a></li>
<li><a href="" target="_blank"><img src="images/kx.jpg" /></a></li>
</ul>
<ul class="ks">
<li><a href="" target="_blank">关于梦之旅</a></li>
<li><a href="" target="_blank">联系梦之旅</a></li>
<li><a href="" target="_blank">诚邀合作</a></li>
<li><a href="" target="_blank">广告招标</a></li>
<li><a href="" target="_blank">网站地图</a></li>
<li><a href="" target="_blank">快速支付</a></li>
<li><a href="" target="_blank">支付安全</a></li>
<li><a href="" target="_blank">法律声明</a></li>
<li style="border:none;"><a href="" target="_blank">新手指南</a></li>
</ul>
</div>
<!--友情链接 end-->
<!--版权信息 start-->
<div class="bqxx">
<li>Copyright © 1997-2012 梦之旅 版权所有</li>
<li style="float:right;">国际旅行社经营许可证注册号:L-SC-CJ00014 蜀ICP备08007806号 京公网安备1101055404号</li>
</div>
<!--版权信息 end-->
</div>
</div>
<!--底部部分 end-->
</body>
</html>
| 10npsite | trunk/Index/Tpl/Inn/default/index/kz.htm | HTML | asf20 | 46,431 |
<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/new/css/new_kz.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/jsLibrary/jquery/jquery.divselect.js"></script>
<script type="text/javascript">
(function($){
$(function(){
//模拟下拉列表
$.divselect("#citySelect","#cityValue");
$.divselect("#typeSelect","#typeValue");
$("div.ph_left_title").tabs("div.ph_content > div", {tabs: 'li',current:'qh_hover'});
//轮播
$("div.kz_banner").scrollable({
items: 'div.tp',
circular: true
}).navigator({
navi: 'div.sz',
activeClass: 'sz_hover'
}).autoscroll({
autoplay: true
});
})
})(jQuery);
defaultKeyWord = "输入关键字";
function innSearch() {
keyword = $("#innSearchForm input[name='keyword']").val();
city = $("#innSearchForm input[name='city']").val();
type = $("#innSearchForm input[name='type']").val();
url = "__KZURL__/hotel/hotellist";
if(city!="")
url += "-c-" + city;
if(keyword!="" && keyword!=defaultKeyWord)
url += "-k-" + keyword;
if(type!="")
url += "-s-" + type;
window.location.href = url;
}
</script>
<!--main start-->
<div class="kz_main">
<!--搜索+广告 start-->
<div class="kz_search">
<!--搜索 start-->
<div class="left_search">
<div><img src="__PUBLIC__/new/kz/images/search_left_bg.jpg" /></div>
<div class="search_center">
<div class="search_top">
<div class="top_title">最经济实惠的客栈集中地</div>
<form action="" onsubmit="return false;" id="innSearchForm" method="post">
<div class="top_center">
<div id="citySelect" class="cs"> <cite>选择城市</cite>
<ul>
<volist name='innCity' id='city'>
<li><a href="javascript:;" value="<{$city.id}>"><{$city.name}></a></li>
</volist>
</ul>
</div>
<input name="city" id="cityValue" type="hidden" value=""/>
<div id="typeSelect" class="cs"> <cite>选择类型</cite>
<ul>
<volist name='innTypeList' id='innType'>
<li><a href="javascript:;" value="<{$innType.id}>"><{$innType.name}></a></li>
</volist>
</ul>
</div>
<input name="type" id="typeValue" type="hidden" value=""/>
<div class="sr">
<input type="text" name="keyword" value="输入关键字" onfocus='if(this.value==defaultKeyWord)this.value=""' onblur='if(this.value=="")this.value=defaultKeyWord'/>
</div>
</div>
<div class="center_right">
<input type="button" onclick="innSearch()" />
</div>
</form>
</div>
<div class="search_bottom">
<table cellpadding="0" cellspacing="0" border="0" width="459" height="44">
<tr align="center" class="bs_title">
<td>今日入住</td>
<td>客栈共计</td>
<td>在线人数</td>
<td>话题</td>
<td>累计预定</td>
</tr>
<tr align="center">
<td><{$innStat.checkin}></td>
<td><{$innStat.inncount}></td>
<td><{$innStat.vister}></td>
<td><{$innStat.subject}></td>
<td><{$innStat.order}></td>
</tr>
</table>
</div>
</div>
<div style="float:right;"><img src="__PUBLIC__/new/kz/images/search_right_bg.jpg" /></div>
</div>
<!--搜索 end-->
<!--广告 start-->
<div class="kz_banner">
<div class="tp">
<div class="item"> <a href="" target="_blank"><img src="__PUBLIC__/new/kz/images/kz_right_banner.jpg" /></a> </div>
<div class="item"> <a href="" target="_blank"><img src="__PUBLIC__/new/kz/images/kz_right_banner.jpg" /></a> </div>
<div class="item"> <a href="" target="_blank"><img src="__PUBLIC__/new/kz/images/kz_right_banner.jpg" /></a> </div>
<div class="item"> <a href="" target="_blank"><img src="__PUBLIC__/new/kz/images/kz_right_banner.jpg" /></a> </div>
<div class="item"> <a href="" target="_blank"><img src="__PUBLIC__/new/kz/images/kz_right_banner.jpg" /></a> </div>
<div class="item"> <a href="" target="_blank"><img src="__PUBLIC__/new/kz/images/kz_right_banner.jpg" /></a> </div>
</div>
<div class="sz">
<li class="sz_hover"><a href="javascript:;">1</a></li>
<li><a href="javascript:;">2</a></li>
<li><a href="javascript:;">3</a></li>
<li><a href="javascript:;">4</a></li>
<li><a href="javascript:;">5</a></li>
<li><a href="javascript:;">6</a></li>
</div>
</div>
<!--广告 end-->
</div>
<!--搜索+广告 end-->
<!--热门+排行 start-->
<div class="kz_ph">
<!--排行 left start-->
<div class="ph_left">
<!--切换列表 start-->
<div class="qh_lb">
<div class="ph_left_title">
<ul>
<li class="qh_hover"><a href="javascript:void(0);">特卖客栈</a></li>
<li><a href="javascript:void(0);">排行榜</a></li>
</ul>
</div>
<div class="ph_content">
<!--特卖客栈内容 start-->
<div id="ph1" class="ph_1">
<volist name="innSpecialList" id="vo">
<ul>
<li class="ph_1_left"> <a href="/hotel/view-id-<{$vo.id}>" target="_blank"><img src="<{$vo.pic1}>" width='66' height='52' onerror="this.onerror=null;this.src='__PUBLIC__/new/kz/images/kz_left_tp1.jpg'" /></a> </li>
<li class="ph_1_center">
<p> <span><a href="/hotel/view-id-<{$vo.id}>" target="_blank" class="mc_title"><{$vo.name}></a></span> </p>
<p> <span> <em class="hp">好评度:</em> <em class="hp_x"><em style='width:<{$vo["reviews_score"] * 13 / 20}>px;' title='综合评分:<{$vo["reviews_score"]}>%'></em></em> </span> <span class="pl"> <em class="hp">评论:</em> <em class="pl_ts"><{$vo.reviews_count}>条</em> </span> </p>
</li>
<li class="ph_1_right"> <span class="j_3"><{$vo.min_price|intval}></span> <span class="j_2">¥</span> <span class="j_1">起价</span> </li>
</ul>
</volist>
</div>
<!--特卖客栈内容 end-->
<!--排行榜内容 start-->
<div id="ph2" class="ph_1">
<volist name="innTopList" id="vo">
<ul>
<li class="ph_1_left"> <a href="/hotel/view-id-<{$vo.id}>" target="_blank"><img src="<{$vo.pic1}>" width='66' height='52' onerror="this.onerror=null;this.src='__PUBLIC__/new/kz/images/kz_left_tp1.jpg'" /></a> </li>
<li class="ph_1_center">
<p> <span><a href="/hotel/view-id-<{$vo.id}>" target="_blank" class="mc_title"><{$vo.name}></a></span> </p>
<p> <span> <em class="hp">好评度:</em> <em class="hp_x"><em style='width:<{$vo["reviews_score"] * 13 / 20}>px;' title='综合评分:<{$vo["reviews_score"]}>%'></em></em> </span> <span class="pl"> <em class="hp">评论:</em> <em class="pl_ts"><{$vo.reviews_count}>条</em> </span> </p>
</li>
<li class="ph_1_right"> <span class="j_3"><{$vo.min_price|intval}></span> <span class="j_2">¥</span> <span class="j_1">起价</span> </li>
</ul>
</volist>
</div>
<!--排行榜内容 end-->
</div>
</div>
<!--切换列表 end-->
<!--客栈左边广告 start-->
<div class="ph_gg">
<li><a href="" target="_blank"><img src="__PUBLIC__/new/kz/images/kz_gg.jpg" /></a></li>
</div>
<!--客栈左边广告 end-->
</div>
<!--排行 left end-->
<!--排行 right start-->
<div class="ph_right">
<!--本月热门客栈 start-->
<div class="month">
<ul class="font_title yellow">
本月热门客栈
</ul>
<ul>
<volist name="innHotList" id="vo">
<li> <span class="img_bg"><a href="/hotel/view-id-<{$vo.id}>" target="_blank"><img src="<{$vo.pic1}>" width='133' height='88' onerror="this.onerror=null;this.src='__PUBLIC__/new/kz/images/kz_right_tp.jpg'" /></a></span> <span class="kz_mc"> <a href="/hotel/view-id-<{$vo.id}>"><{$vo.name}></a> </span></li>
</volist>
</ul>
</div>
<!--本月热门客栈 end-->
<!--本月热门城市 start-->
<div class="hot_city">
<ul class="font_title blue">
本月热门城市
</ul>
<ul class="hot_nr">
<volist name="cityHotList" id="vo">
<li><a href="__KZURL__/hotel/hotellist-c-<{$vo.id}>" target="_blank"><{$vo.name}></a></li>
</volist>
</ul>
</div>
<!--本月热门城市 end-->
</div>
<!--排行 right end-->
</div>
<!--热门+排行 end-->
<div class="clear"></div>
<!--热门客栈推荐 start-->
<div class="kz_tj">
<ul class="kz_tj_title">
<li class="font_title yellow">热门客栈推荐</li>
<li class="dashes"></li>
</ul>
<ul class="tj_nr">
<volist name="innRecommendList" id="vo">
<li>
<p> <span><a href="/hotel/view-id-<{$vo.id}>" target="_blank"><img src="<{$vo.pic1}>" width='230' height='169' onerror="this.onerror=null;this.src='__PUBLIC__/new/kz/images/kz_rm.jpg'" /></a></span> <span class="th"> <em>特惠价</em> <em><i class="jgfh">¥</i><i class="font24"><{$vo.min_price|intval}></i></em> <em>起</em> </span> </p>
<p class="jd_mc"><span><a href="/hotel/view-id-<{$vo.id}>" target="_blank"><{$vo.name}></a></span></p>
</li>
</volist>
</ul>
</div>
<!--热门客栈推荐 end-->
<!--最新加入客栈 start-->
<div class="kz_tj">
<ul class="kz_tj_title">
<li class="font_title blue">最新加入客栈</li>
<li class="dashes"></li>
</ul>
<ul class="tj_nr">
<volist name="innNewList" id="vo">
<li>
<p> <span><a href="/hotel/view-id-<{$vo.id}>" target="_blank"><img src="<{$vo.pic1}>" width='230' height='169' onerror="this.onerror=null;this.src='__PUBLIC__/new/kz/images/kz_rm.jpg'" /></a></span> <span class="th"> <em>特惠价</em> <em><i class="jgfh">¥</i><i class="font24"><{$vo.min_price|intval}></i></em> <em>起</em> </span> </p>
<p class="jd_mc"><span><a href="/hotel/view-id-<{$vo.id}>" target="_blank"><{$vo.name}></a></span></p>
</li>
</volist>
</ul>
</div>
<!--最新加入客栈 end-->
</div>
<!--main end-->
<div class="clear"></div>
<{:W('foot',array('linkid'=>1282))}> | 10npsite | trunk/Index/Tpl/Inn/default/index/index.htm | HTML | asf20 | 11,132 |
<!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" />
<title>预定<{$hotelrs.hotel1}> <{$Think.SYS_SITENAME}></title>
<link href="__PUBLIC__/css/orderstyle.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/jsLibrary/Jslibary.js"></script>
</head>
<body>
<!--顶部-->
<include file="./Index/Tpl/Home/default/public/header.htm" />
<div class="containet">
<div class="containet_left"></div>
<div class="containet_cont"></div>
<div class="containet_right"></div>
<div class="frame">
<form action="/order/view2" method="post" name="orderform" id="orderform">
<div class="frame_content">
<div class="frame_content_top"> 编辑订单</div>
<div class="frame_content_list">
<div class="list"><{$hotelrs.hotel1}></div>
<input type="hidden" name="checkdatepflag" id="checkdatepflag" value="0">
<div class="dd_jtxx">
<ul class="dd_list_name">
<li>房间名称:</li>
<li class="list_selert">
<select name="roomtypeid" id="roomtypeid">
<volist name="roomrs" id="vo">
<option <if condition="$_GET['rid'] eq $vo['hotelroom0']"> selected </if>
value="<{$vo.hotelroom0}>"><{$vo.hotelroom1}></option>
</volist>
</select>
</li>
</ul>
<ul class="dd_list_name">
<li>房间数量:</li>
<li class="list_selert">
<select name="croomnum" id="croomnum" >
<php>for($i=1;$i<=20;$i++){</php><option value="<php> echo $i;</php>"><php> echo $i;</php>间</option><php> }</php>
</select>
</li>
</ul>
</div>
<div class="list_name">人数:</div>
<div class="list_selert"> <select name="chengrens" id="chengrens" class="selert">
<php>for($i=1;$i<=30;$i++){</php><option value="<php> echo $i;</php>"><php> echo $i;</php></option><php> }</php>
</select></div>
<div class="list_name">抵达时间:</div>
<div class="list_selert"><select name="didianshijian" id="didianshijian" class="selert">
<php>for($i=0;$i<=23;$i++){</php><option value="<php> echo $i;</php>:00"><php> echo $i;</php>:00</option><php> }</php>
</select></div>
<div class="list_name">入住日期:</div>
<div class="list_text"><input type="text" class="selert2" name="startdate" id="startdate" onClick="javascript:cdate_show('startdate');" value="<{$tconfig.startdate}>" /></div>
<div class="list_txt">离店日期</div>
<div class="list_text"><input type="text" onkeyup="return checkdateyoux();" class="selert2" name="enddate" id="enddate" onClick="javascript:cdate_show('enddate');" value="<{$tconfig.enddate}>" /></div>
</div>
<div class="frame2">
<div class="list_name">价格明细:</div> <br><br />
<div class="table_box" id="showsearchhtml">
</div>
</div>
<div class="times" id="passnotehtml" style="display:none;"> 很抱歉,部分日期内没有空余房间了,您可以 <font color="#294E5E">选择时间</font> 或 <font color="#294E5E">修改房型</font></div>
<div class="box_2" id="totalpricenum" style="display:none;">
<div class="gross">小计:</div><span id="sp_totalnum"></span>元</div>
<div class="box_3"> 预订人信息</div>
<!--表单信息-->
<div class="input_frame">
<div class="from_box">
<div class="list_left">会员名称</div>
<div class="list_midd"><input type="text" class="sty" name="userid" id="userid" value="<{$Think.const.__USERNAME__}>" /></div
><div class="list_left">可以兑换金额数</div>
<div class="list_midd"><input type="text" class="sty" readonly="readonly" name="duihuanje" id="duihuanje" value="0" /> 是否兑换<input type="checkbox" id="isduihuan" name="isduihuan" checked="checked" value="1"></div>
<div class="list_left"></div>
<div class="list_midd"> </div>
<div class="list_left">电子邮箱</div>
<div class="list_midd"><input type="text" class="sty" name="useremail" id="useremail" /></div>
<div class="list_left">确认邮箱</div>
<div class="list_midd"><input type="text" class="sty" name="reuseremail" id="reuseremail"/></div>
<div class="list_left">预订人姓名</div>
<div class="list_midd"><input type="text" class="sty" name="username" id="username" /></div>
<div class="list_left">入住人姓名</div>
<div class="list_midd"><input type="text" class="sty" name="zhuname" id="zhuname" /> </div>
<div class="list_left">来自</div>
<div class="list_midd"><input type="text" class="sty" name="formarea" id="formarea" /></div>
<div class="list_left">联系电话</div>
<div class="list_midd"><input type="text" class="sty" name="tel" id="tel" /></div>
<div class="list_left">其它说明</div>
<div class="fowllow"><textarea name="othersuom" id="othersuom" cols="35" rows="8"></textarea></div>
<div class="yzm">输入验证码</div>
<div class="veri1"><input type="text" class="veri" name="verify" id="verify" /></div>
<div class="numbers"><img id="checkcode" src="/common/verify" /></div>
<div class="veri1_number"><span id="reloadcm" style="cursor:pointer;">换一个</a></div>
</div>
<!--表单说明-->
<div class="explan_box">
<div class="explan ">
<span style="width:auto; float:left;"><font color="#FF0000">你有积分数:</span>
<span id="havejf"><{:uc_user_getcredit(1, __USERID__, 'credit')}></span></font>
</div>
<div class="explan "><font color="#FF0000">单位:人民币元</font></font></div>
<div class="explan "><font>人民币:元</font></div>
<div class="explan">*请输入正确的邮箱地址!</div>
<div class="explan">*</div>
<div class="explan"></font></div>
<div class="explan"> 可以填写多个入住人姓名</div>
<div class="explan">最后是手机号,以便及时联系和接收订单信息</div>
<div class="explan2"></div>
</div>
</div>
<div class="box_2" id="overdnumjie">
<div class="gross">总计:</div>
<div style="width:auto; line-height:40px; float:left;"><span id="overtotalnum"></span>元 - 积分兑换金额</div>
<div style="width:auto; line-height:40px; float:left;"><span id="jifendiyongje"></span>元 = </div><span id="orderje"> </span>元
</div>
<input type="hidden" id="orderjingje" name="orderjingje" value="0">
<input type="hidden" id="hid" name="hid" value="<{$Think.get.hid}>">
<input type="hidden" id="zfbl" name="zfbl" value="100">
<input type="hidden" id="proname" name="proname" value="<{$hotelrs.hotel1}>">
</form>
</div>
</div>
<div class="foot">
</div>
<div class="btn"><img src="__PUBLIC__/images/btn.jpg" style="cursor:pointer;" name="mysubmit" id="mysubmit" /></div>
<script src="__PUBLIC__/jsLibrary/cdate_py_z.js"></script>
<script language="javascript">
$(document).ready(function(){
$("#croomnum").bind("change",function(){
checkdateyoux();
});
$("#isduihuan").bind("click",function(){
checkdateyoux();
});
$("#roomtypeid").bind("change",function(){
window.location.href="/order/view1-hid-<{$Think.get.hid}>-rid-"+$("#roomtypeid").val();
});
$("#reloadcm").bind("click",function(){
$("#checkcode").attr("src","/common/verify-"+Math.random());
});
//验证表单
$("#mysubmit").bind("click",function(){
dd=$("#checkdatepflag").val();
if(dd!="1"){
alert("请选择正确的时间入住");
$("#checkdatepflag").focus();
return false;
}
if(!nzeletype("useremail","请输入正确的电子邮件","email")) return false;
if(!nzeletype("reuseremail","请输入正确的电子邮件","email")) return false;
if($("#useremail").val()!=$("#reuseremail").val()){
alert("您两次的邮件地址不一样,请重新输入");
$("#reuseremail").focus();
return false;
}
checkcode=$("#verify").val();
if(checkcode.length!=4){
alert("请输入正确的验证码.");
$("#verify").focus();
return false;
}
$("#orderform").submit();
});
checkdateyoux();//初始化值
});
function checkdateyoux(){
$("#passnotehtml").hide();
$("#totalpricenum").hide();
//$("#duihuanje").val(0);
$("#overdnumjie").hide();
var startdate=$("#startdate").val();
if(!startdate.match(/^[\d]{4}\-[\d]{1,2}\-[\d]{1,2}$/)){
alert("请选择正确的入住时间");
$("#startdate").focus();
return false;
}
var enddate=$("#enddate").val();
if(!startdate.match(/^[\d]{4}\-[\d]{1,2}\-[\d]{1,2}$/)){
alert("请选择正确的离店时间");
$("#enddate").focus();
return false;
}
if(enddate<=startdate){
alert("离店时间不能小于入住时间");
$("#enddate").focus();
return false;
}
//获取实时的房间信息
startdate=startdate.replace(/\-/g,"_");
enddate=enddate.replace(/\-/g,"_");
$.ajax({
url: "/hotelroom/checkdateyoux-hid-<{$Think.get.hid}>-rid-<{$Think.get.rid}>-startdate-"+startdate+"-enddate-"+enddate+"-n-"+$("#croomnum").val(),
cache: true,
beforeSend: function(){
$("#showsearchhtml").html("正在查询请稍后.....");
},
success: function(html){
temp=html.replace(/\{[\d]+\}/g,"");
temp=temp.replace(/\@[\d]+\@/g,"")
$("#showsearchhtml").html(temp);
//如果有满房提示他重新选择
if(html.indexOf("满房")>0){
$("#passnotehtml").show("slow");
}else{
$("#totalpricenum").show();
$("#checkdatepflag").val("1");//是否是选择了正确的时间和是否有房
}
//计算总的价格
totalnum=getkuohaostr(html,/\{([\d]+)\}/);
zfbl=getkuohaostr(html,/\@([\d]+)\@/);
$("#sp_totalnum").html(totalnum);
$("#zfbl").val(zfbl);
//计算积分兑换后的价
if($("#isduihuan").attr("checked")=="checked"){
xfsjfnumdy1jenum=<{$SYS_config.xfsjfnumdy1jenum}>;
thistnum=parseInt(totalnum)*<{$SYS_config.maxjifenduije}>;
jingbi=$("#havejf").html();//拥有的金币数
jingbinum=parseInt(jingbi);
if(jingbinum/xfsjfnumdy1jenum>thistnum){
maydinum= parseInt(thistnum);
}else{
maydinum=parseInt(jingbinum/xfsjfnumdy1jenum);
}
$("#duihuanje").val(maydinum);
$("#overdnumjie").show();
$("#overtotalnum").html(totalnum);
$("#jifendiyongje").html($("#duihuanje").val());
$("#orderje").html(totalnum-maydinum);
$("#orderjingje").val(totalnum-maydinum);
}
}
});
}
</script>
</body>
</html>
| 10npsite | trunk/Index/Tpl/Inn/default/order/view1.htm | HTML | asf20 | 11,812 |
<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>订单生成成功 在线支付 <{$Think.SYS_SITENAME}></title>
<link href="__PUBLIC__/css/kzzf.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquerytools/1.2.5/jquery.tools.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/jsLibrary/jquery/jquery.cookie.js"></script>
<!--[if IE 6]>
<script src="iepng.js" type="text/javascript"></script>
<script type="text/javascript">
EvPNG.fix('img,div,ul,li,a,span');
</script>
<![endif]-->
<body>
<!--top start-->
<include file="./Index/Tpl/Home/default/public/header.htm" />
<!--top end-->
<!--content start-->
<div class="content_lc">
<div class="w1000">
<!--流程头部 start-->
<div class="lc">
<ul><img src="__PUBLIC__/images/kz_lc_title.jpg" /></ul>
<ul class="lc_lb">
<li class="lb_bt">购物车列表</li>
<li class="lc_tb">
<span class="num1_gray"></span>
<span class="num2"></span>
<span class="num3_gray"></span>
</li>
</ul>
</div>
<!--流程头部end-->
<!--操作提示 start-->
<div class="czts">
<li>
<span class="font12 bold">操作小提示:</span>
<span>小提示:恭喜!订单生成成功。</span>
</li>
</div>
<!--操作提示end-->
<!--购物车列表 start-->
<div class="gwc_lb">
<!--客栈购物车流程1 start-->
<div class="kz_gwc_two">
<li>尊敬的<{$data.orderform5}>,您好,你的订单信息如下:</li>
<li>
<span>订单号为</span>
<span class="bold yellow font14"><{$orderno}></span>
<span>(<{$hotelrs.hotel1}>的<{$roomrs.hotelroom1}>),总金额为:</span>
<span class="bold yellow font14"><{$data.orderform16}></span>
<span>元,本次请于<{$data.orderform18|date="Y-m-d H:i",###}>之前支付定金</span>
<span class="bold yellow font14"><{$data.orderform17}></span>元,<br>
<span>还有余款</span>
<span class="bold yellow font14"><{$data.orderform19}></span>
<span>元,请于<{$data.orderform18|date="Y-m-d H:i",###}>前支付</span>
</li>
<li>
<span style="cursor:pointer;"><img src="__PUBLIC__/images/crmgotopay.jpg" id="btnzhifuqueren"></span>
</li>
</div>
<!--客栈购物车流程1 end-->
<div class="clear"></div>
<!--购物车价格 start-->
<div class="zj">
<li class="sum">
<span class="dark_green bold">
</span>
</li>
</div>
<!--购物车价格 end-->
<!--选择支付方式 start-->
<div class="chose_zffs" id="zhifufangshid" style="display:none">
<div class="chose_title">请选择支付方式:</div>
<!--选择start-->
<div class="chose_bg">
<div class="chosefn_xx">
<ul class="kzzf_fn">
<li id="chtitle_alipay" class="kzzf_fn_hover"><a>支付宝</a></li>
<li id="chtitle_zhuangzhangrmb"><a>转帐支付</a></li>
<li id="chtitle_CardOnlineRmb"><a>中国信用卡</a></li>
</ul>
</div>
<div class="kzzf_xx">
<div class="Content1" id="co_alipay">
<div class="kzzf_xx">
<{$paytypehtm.alipay}>
</div>
</div>
<div class="Content1" style="display:none" id="co_zhuangzhangrmb">
<div class="wsyh">
<{$paytypehtm.zhuangzhangrmb}>
</div>
</div>
<div class="Content1" style="display:none" id="co_CardOnlineRmb">
<div class="wsyh">
<{$paytypehtm.CardOnlineRmb}>
</div>
</div>
</div>
</div>
<!--选择end-->
</div>
<!--选择支付方式 end-->
</div>
<!--购物车列表 end-->
</div>
</div>
<!--content end-->
<!--底部部分 start-->
<div class="bottom">
<div class="footer">
<!--友情链接 start-->
<!--友情链接 end-->
<!--版权信息 start-->
<div class="bqxx">
<li>Copyright © 1997-2012 梦之旅 版权所有</li>
<li style="float:right;">国际旅行社经营许可证注册号:L-SC-CJ00014 蜀ICP备08007806号 京公网安备1101055404号</li>
</div>
<!--版权信息 end-->
</div>
</div>
<!--底部部分 end-->
<script language="javascript">
$(document).ready(function(){
$("#btnzhifuqueren").bind("click",function(){
if($("#zhifufangshid").is(":hidden")){
$("#zhifufangshid").show("slow");
$(this).hide();
//更新标识
$.ajax({
url: "/order/yudingqueren-orderno-<{$orderno}>-tel-<{$telphone}>-uid-<{$data.orderform7}>-n-<{$data.orderform33}>-pname-<{$kezhanname}>-tomail-<{$data.orderform26}>",
cache: true,
success: function(html){
}
});
}else{
$("#zhifufangshid").hide();
}
});
//绑定切换事件
$("li[id^='chtitle_']").bind("click",function(){
$("li[id^='chtitle_']").attr("class","");
$(this).attr("class","kzzf_fn_hover");
//显示内容
id=$(this).attr("id");
id=id.replace("chtitle_","");
$("div[id^='co_']").hide();
$("#co_"+id).show("slow");
});
});
</script>
</body>
</html>
| 10npsite | trunk/Index/Tpl/Inn/default/order/view2.htm | HTML | asf20 | 7,685 |
<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>订单生成成功 在线支付 <{$Think.SYS_SITENAME}></title>
<link href="__PUBLIC__/css/kzzf.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquerytools/1.2.5/jquery.tools.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/jsLibrary/jquery/jquery.cookie.js"></script>
<!--[if IE 6]>
<script src="iepng.js" type="text/javascript"></script>
<script type="text/javascript">
EvPNG.fix('img,div,ul,li,a,span');
</script>
<![endif]-->
<body>
<!--top start-->
<include file="./Index/Tpl/Home/default/public/header.htm" />
<!--top end-->
<!--content start-->
<div class="content_lc">
<div class="w1000">
<!--流程头部 start-->
<div class="lc">
<ul><img src="__PUBLIC__/images/kz_lc_title.jpg" /></ul>
<ul class="lc_lb">
<li class="lb_bt">购物车列表</li>
<li class="lc_tb">
<span class="num1_gray"></span>
<span class="num2"></span>
<span class="num3_gray"></span>
</li>
</ul>
</div>
<!--流程头部end-->
<!--操作提示 start-->
<div class="czts">
<li>
<span class="font12 bold">操作小提示:</span>
<span>小提示:恭喜!订单生成成功。</span>
</li>
</div>
<!--操作提示end-->
<!--购物车列表 start-->
<div class="gwc_lb">
<!--客栈购物车流程1 start-->
<div class="kz_gwc_two">
<li>尊敬的<{$data.orderform5}>,您好,你的订单信息如下:</li>
<li>
<span>订单号为</span>
<span class="bold yellow font14"><{$orderno}></span>
<span>(<{$hotelrs.hotel1}>),总金额为:</span>
<span class="bold yellow font14"><{$data.orderform16}></span>
<span>元,本次请于<{$data.orderform18|date="Y-m-d H:i",###}>之前支付定金</span>
<span class="bold yellow font14"><{$data.orderform17}></span>元,<br>
<span>还有余款</span>
<span class="bold yellow font14"><{$data.orderform19}></span>
<span>元,请于<{$data.orderform18|date="Y-m-d H:i",###}>前支付</span>
</li>
<li>
<span style="cursor:pointer;"><img src="__PUBLIC__/images/crmgotopay.jpg" id="btnzhifuqueren"></span>
</li>
</div>
<!--客栈购物车流程1 end-->
<div class="clear"></div>
<!--购物车价格 start-->
<div class="zj">
<li class="sum">
<span class="dark_green bold">
</span>
</li>
</div>
<!--购物车价格 end-->
<!--选择支付方式 start-->
<div class="chose_zffs" id="zhifufangshid">
<div class="chose_title">请选择支付方式:</div>
<!--选择start-->
<div class="chose_bg">
<div class="chosefn_xx">
<ul class="kzzf_fn">
<li><a>网上银行</a></li>
<li><a>支付宝</a></li>
<li><a>中国信用卡</a></li>
</ul>
</div>
<div class="kzzf_xx">
<div class="Content1">
<div class="wsyh">
<ul>
<li class="dark_green font14">网上银行在线支付(通过环迅第三方平台)</li>
<li>应付定金:260.8元</li>
<li>手续费:无</li>
<li>支付成功后可获得积分916点</li>
<li>选择网上银行在线支付,需要您有各类银行卡(包括信用卡、借记卡、储蓄卡等),并确定这些卡开通了在线支付功能:</li>
<li>
<span>1、点击"确定支付"按纽,进入第三方支付平台(我们无法收集帐号信息),按要求填写相关内容,提交;</span>
<span>2、支付成功后,您会得到相关的提示,包括支付成功页面,邮件及短信等;</span>
<span>3、请进入您的订单获取支付成功确认信及旅游合同,安全须知等;您可保存打及打印作为您的凭据;</span>
<span>4、出团通知书会出团前一天以上发送到您的订单及邮箱内,请注意查收。</span>
</li>
</ul>
<ul class="ddxq">
<li class="dark_green font14 bold">0158167 号订单的身份核实</li>
<li>
<table cellpadding="0" cellspacing="0" class="ddxx_lb">
<tr class="font14 black">
<td>用户名</td>
<td>联系电话</td>
<td>电子邮箱</td>
<td>出团日期</td>
</tr>
<tr>
<td>测试</td>
<td>15423145324</td>
<td>12314@qq.com</td>
<td>2012-10-17</td>
</tr>
</table>
<span class="qrzf"><a href="" target="_blank">确认支付</a></span>
</li>
</ul>
</div>
</div>
<div class="Content2">
<div class="wsyh">
<ul class="ddxq" style="margin:0;">
<li class="dark_green font14 bold">0158167 号订单的身份核实</li>
<li>
<table cellpadding="0" cellspacing="0" class="ddxx_lb">
<tr class="font14 black">
<td>用户名</td>
<td>联系电话</td>
<td>电子邮箱</td>
<td>出团日期</td>
</tr>
<tr>
<td>测试</td>
<td>15423145324</td>
<td>12314@qq.com</td>
<td>2012-10-17</td>
</tr>
</table>
<span class="qrzf"><a href="" target="_blank">确认支付</a></span>
</li>
</ul>
</div>
</div>
<div class="Content3">
<div class="wsyh">
<ul>
<li class="dark_green font14">贝宝在线支付</li>
<li>应付定金:260.8元</li>
<li>手续费:无</li>
<li>支付成功后可获得积分916点</li>
<li>
<span>1、点击"确定支付"按纽,进入贝宝支付平台(我们无法收集帐号信息),按要求填写相关内容,提交;</span>
<span>2、支付成功后,您会得到相关的提示,包括支付成功页面,邮件及短信等;</span>
<span>3、请进入您的订单获取支付成功确认信及旅游合同,安全须知等,您可保存打及打印作为您的凭据;</span>
<span>4、出团通知书会出团前一天以上发送到您的订单及邮箱内,请注意查收。</span>
</li>
</ul>
<ul class="ddxq">
<li class="dark_green font14 bold">0158167 号订单的身份核实</li>
<li>
<table cellpadding="0" cellspacing="0" class="ddxx_lb">
<tr class="font14 black">
<td>用户名</td>
<td>联系电话</td>
<td>电子邮箱</td>
<td>出团日期</td>
</tr>
<tr>
<td>测试</td>
<td>15423145324</td>
<td>12314@qq.com</td>
<td>2012-10-17</td>
</tr>
</table>
<span class="qrzf"><a href="" target="_blank">确认支付</a></span>
</li>
</ul>
</div>
</div>
<div class="Content4">
<div class="wsyh">
<ul>
<li class="dark_green font14">中国信用卡在线支付</li>
<li>应付定金:260.8元</li>
<li>手续费:无</li>
<li>支付成功后可获得积分916点</li>
<li>国信用卡是指中国境内各银行发行的信用卡或贷记卡,包括visa,Master卡等:</li>
<li>
<span>1、点击"确定支付"按纽,进入第三方环讯支付平台(我们无法收集帐号信息),按要求填写内容,提交;</span>
<span>2、支付成功后,您会得到相关的提示,包括支付成功页面,邮件及短信等;</span>
<span>3、请进入您的订单获取支付成功确认信及旅游合同,安全须知等,您可保存打及打印作为您的凭据;</span>
<span>4、出团通知书会出团前一天以上发送到您的订单及邮箱内,请注意查收。</span>
</li>
</ul>
<ul class="ddxq">
<li class="dark_green font14 bold">0158167 号订单的身份核实</li>
<li>
<table cellpadding="0" cellspacing="0" class="ddxx_lb">
<tr class="font14 black">
<td>持卡人姓名</td>
<td>证件类型</td>
<td>持卡人证件号码</td>
<td>持卡人电话</td>
<td>网关类型</td>
</tr>
<tr>
<td><input type="text" /></td>
<td>
<select>
<option>身份证</option>
<option>护照</option>
<option>军官证</option>
<option>回乡证</option>
<option>台胞证</option>
<option>港澳通行证</option>
<option>国际海员证</option>
<option>外国人永久居住证</option>
<option>其他</option>
</select>
</td>
<td><input type="text" /></td>
<td><input type="text" /></td>
<td>
<select>
<option>中国信用卡</option>
<option>国际信用卡</option>
</select>
</td>
</tr>
</table>
<span class="qrzf"><a href="" target="_blank">确认支付</a></span>
</li>
</ul>
</div>
</div>
<div class="Content5">
<div class="wsyh">
<ul>
<li class="dark_green font14">国际信用卡在线支付</li>
<li>应付定金:260.8元</li>
<li>手续费:无</li>
<li>支付成功后可获得积分916点</li>
<li>国际信用卡指的是中国境外银行发行的信用卡(Creidit Card)或贷记卡(Debit Card)),包括Visa,Master卡等:</li>
<li>
<span>1、填写下面的表格,提交;</span>
<span>2、支付成功后,您会得到相关的提示,包括支电话,邮件及短信等;</span>
<span>3、请进入您的订单获取支付成功确认信及旅游合同,安全须知等,您可保存打及打印作为您的凭据;</span>
<span>4、出团通知书会出团前一天以上发送到您的订单及邮箱内,请注意查收。</span>
</li>
</ul>
<ul class="ddxq">
<li class="dark_green font14 bold">0158167 号订单的身份核实</li>
<li>
<table cellpadding="0" cellspacing="0" class="ddxx_lb">
<tr class="font14 black">
<td>持卡人姓名</td>
<td>证件类型</td>
<td>持卡人证件号码</td>
<td>持卡人电话</td>
<td>网关类型</td>
</tr>
<tr>
<td><input type="text" /></td>
<td>
<select>
<option>身份证</option>
<option>护照</option>
<option>军官证</option>
<option>回乡证</option>
<option>台胞证</option>
<option>港澳通行证</option>
<option>国际海员证</option>
<option>外国人永久居住证</option>
<option>其他</option>
</select>
</td>
<td><input type="text" /></td>
<td><input type="text" /></td>
<td>
<select>
<option>国际信用卡</option>
<option>中国信用卡</option>
</select>
</td>
</tr>
</table>
<span class="qrzf"><a href="" target="_blank">确认支付</a></span>
</li>
</ul>
</div>
</div>
<div class="Content6">
<div class="wsyh">
<ul>
<li class="dark_green font14">支付宝在线支付</li>
<li>应付定金:260.8元</li>
<li>手续费:无</li>
<li>支付成功后可获得积分916点</li>
<li>选择支付宝支付,需要您有支付宝帐户,帐户中有足够余额:</li>
<li>
<span>1、点击"确定支付"按纽,进入支付宝支付平台(我们无法收集帐号信息),按要求填写相关内容,提交;</span>
<span>2、支付成功后,您会得到相关的提示,包括支付成功页面,邮件及短信等;</span>
<span>3、请进入您的订单获取支付成功确认信及旅游合同,安全须知等,您可保存打及打印作为您的凭据;</span>
<span>4、出团通知书会出团前一天以上发送到您的订单及邮箱内,请注意查收。</span>
</li>
</ul>
<ul class="ddxq">
<li class="dark_green font14 bold">0158167 号订单的身份核实</li>
<li>
<table cellpadding="0" cellspacing="0" class="ddxx_lb">
<tr class="font14 black">
<td>用户名</td>
<td>联系电话</td>
<td>电子邮箱</td>
<td>出团日期</td>
</tr>
<tr>
<td>测试</td>
<td>15423145324</td>
<td>12314@qq.com</td>
<td>2012-10-17</td>
</tr>
</table>
<span class="qrzf"><a href="" target="_blank">确认支付</a></span>
</li>
</ul>
</div>
</div>
<div class="Content7">
<div class="wsyh">
<ul>
<li class="dark_green font14">银行转帐支付</li>
<li>转账支付说明:转帐支付需要您提交订单后, 在规定时间内去银行转帐,并通知我们:</li>
<li class="dark_green font14 bold">转帐</li>
<li class="zztz">
<span>1、选择下面列出的帐号(个人卡号或公司帐号)并准确记录下来;</span>
<span>2、去前往相关银行转帐或直接在网上转帐、或在ATM机上转帐,一般可以立即到帐,但需要您通知我们,我们才能查询;</span>
</li>
<li class="dark_green font14 bold">通知</li>
<li class="zztz">
<span>转帐完成后请务必通知我们,点击<a href="" target="_blank">订单通知</a>(此订单通知可到梦之旅支付系统中的转帐页面去找),填写转帐信息(订单号一定要填写正确),提交即可,也可 在首页利用订单查询的方式进入您的订单,点击"转帐通知"按纽,填写相关信息后通知我们;</span>
</li>
<li class="dark_green font14 bold">核实</li>
<li class="zztz">
<span>我方收到您的转帐通知后,会根据您填写的相关信息进行查证,然后在订单上确认您的转帐,您可再进入订单查询处理结果;</span>
</li>
<li class="dark_green font14 bold">确认</li>
<li class="zztz">
<span>1、请进入您的订单获取支付成功确认信及旅游合同,安全须知等,您可保存打及打印作为您的凭据;</span>
<span>2、出团通知书会出团前一天以上发送到您的订单及邮箱内,请注意查收;</span>
</li>
</ul>
<ul class="ddxq">
<li>
<table cellpadding="0" cellspacing="0" class="zztz_tab">
<tr>
<td colspan="2">
<p class="dark_green font14"><span class="bold">梦之旅成都总部对私账号(对私帐号是本公司财务后勤人员按公司要求开设的专用帐号)</span></p>
</td>
</tr>
<tr>
<td>
<p>
<span><em class="blue bold">招商银行"一卡通"</em></span><br />
<span><em class="black">卡号:</em><em class="blue bold">6225 8802 8833 4189</em></span><br />
<span><em class="black">开户行:招商成都分行小天支行 收款人:</em><em class="blue bold">陈 伟</em></span>
</p>
</td>
<td>
<p>
<span><em class="blue bold">建设银行"龙卡"</em></span><br />
<span><em class="black">卡号:</em><em class="blue bold">6227 0038 1114 0402 298 </em></span><br />
<span><em class="black">开户行:建行成都市高新支行 收款人:</em><em class="blue bold">陈 伟</em></span>
</p>
</td>
</tr>
<tr>
<td>
<p>
<span><em class="blue bold">交通银行"太平洋卡"</em></span><br />
<span><em class="black">卡号:</em><em class="blue bold">622260 0530 0050 18837</em></span><br />
<span><em class="black">开户行:交行四川省分行成都华西支行 收款人:</em><em class="blue bold">陈 伟</em></span>
</p>
</td>
<td>
<p>
<span><em class="blue bold">农业银行"金穗通宝卡"</em></span><br />
<span><em class="black">卡号:</em><em class="blue bold">622848 0461 1194 05912</em></span><br />
<span><em class="black">开户行:中国农业银行成都市芳草街分理处 收款人:</em><em class="blue bold">陈 伟</em></span>
</p>
</td>
</tr>
<tr>
<td>
<p>
<span><em class="blue bold">中国银行"长城电子借记卡"</em></span><br />
<span><em class="black">卡号:</em><em class="blue bold">6013 8231 0007 4972 886 </em></span><br />
<span><em class="black">开户行:中行成都武侯支行营业部 收款人:</em><em class="blue bold">陈 伟</em></span>
</p>
</td>
<td>
<p>
<span><em class="blue bold">中国工商银行</em></span><br />
<span><em class="black">卡号:</em><em class="blue bold">622202 4402 0170 48418 </em></span><br />
<span><em class="black">开户行:工行成都市浆洗街支行 收款人:</em><em class="blue bold">陈 伟</em></span>
</p>
</td>
</tr>
<tr>
<td>
<p>
<span><em class="black">注:以上卡根据不同城市,汇款方式有两种</em></span><br />
<span><em class="black">1 直接填写存款单,写入以上卡号、收款人、金额即可。</em></span><br />
<span><em class="black">2 如果不能用以上方式的城市,请用个人电子汇款方式填写电汇凭证。</em></span><br />
<span><em class="black">(填写内容请咨询银行业务人员)</em></span>
</p>
</td>
<td>
<p>
<span><em class="black">注:以上卡用个人电子汇款方式,填写电汇凭证(填写内容请咨询银行业务人员)</em></span>
</p>
</td>
</tr>
<tr>
<td colspan="2">
<p class="dark_green font14"><span class="bold">梦之旅成都总部公司帐户(以下帐号只接受国内各地人民币RMB汇款) 神州国旅北京分社账号如下:</span></p>
</td>
</tr>
<tr>
<td>
<p>
<span><em class="black">公司全称:</em><em class="blue bold">成都市神州国际旅行社有限公司</em></span><br />
<span><em class="black">汇款帐号:</em><em class="blue bold">281082686510001</em></span><br />
<span><em class="black">开户行:招商银行成都分行小天支行</em></span><br />
<span><em class="black">--------------------------------------------------------</em></span><br /><br />
<span><em class="black">公司全称:</em><em class="blue bold">成都市神州国际旅行社有限公司</em></span><br />
<span><em class="black">汇款帐号:</em><em class="blue bold">083983120100304006864</em></span><br />
<span><em class="black">开户行:中国光大银行成都武侯支行</em></span><br />
<span><em class="black">--------------------------------------------------------</em></span><br /><br />
<span><em class="black">公司全称:</em><em class="blue bold">成都市神州国际旅行社有限公司</em></span><br />
<span><em class="black">汇款帐号:</em><em class="blue bold">4402264219006805453</em></span><br />
<span><em class="black">开户行:工商银行成都春熙支行高升桥分理处</em></span><br />
</p>
</td>
<td>
<p>
<span><em class="blue bold">对公账户:</em></span><br />
<span><em class="black">户名:成都市神州国际旅行社有限公司北京分社</em></span><br />
<span><em class="black">账号:0200001109020171623</em></span><br />
<span><em class="black">开户银行:工商银行北京安定门支行</em></span><br />
<span><em class="black">--------------------------------------------------------</em></span><br /><br />
<span><em class="blue bold">对私账户:</em></span><br />
<span><em class="black">工商银行</em></span><br />
<span><em class="black">户名:石月林 </em></span><br />
<span><em class="black">账号:621226 020000 1725460 </em></span><br />
<span><em class="black">开户行:工商银行北京交道口支行</em></span><br /><br />
</p>
</td>
</tr>
<tr>
<td colspan="2">
<p>
<span><em class="blue bold">美国公司账号: (美元)</em></span><br />
<span><em class="black">银行:The bank of America</em></span><br />
<span><em class="black">帐号:0701624623</em></span><br />
<span><em class="black">公司名称:America Dreams Travel Inc.</em></span><br />
<span><em class="black">美国国内汇款路径:026009593</em></span><br />
<span><em class="black">美国国外汇款路径(swift):BOFAU53N</em></span><br />
<span><em class="black">银行地址:100w.33rd ST.New York,NY10001</em></span><br />
<span><em class="black">银行电话:626 299 3960 </em></span><br /><br />
</p>
</td>
</tr>
</table>
</li>
</ul>
</div>
</div>
<div class="Content8">
<div class="wsyh">
<ul>
<li class="dark_green font14">暂不支付定金</li>
<li class="dark_green font14">我有疑问,我选择暂不支付定金</li>
<li>如果您仍然有疑问,您可选择暂不支付定金,并将您的问题填写在下面表格中,我们的客服人员 会尽快回复您的问题,如果您对我们的回复满意,您可再次进入您的订单进行支付,用这种方式您的支付仍然是有效的!</li>
</ul>
<ul>
<li>
<span><textarea></textarea></span>
<span class="qrzf" style="margin:10px 0px;"><a href="" target="_blank">确定</a></span>
</li>
</ul>
</div>
</div>
</div>
</div>
<!--选择end-->
<script type="text/javascript">
(function($){
$(function(){
$("ul.kzzf_fn").tabs("div.kzzf_xx > div", {tabs: 'li',current:'kzzf_fn_hover'});
})
})(jQuery)
</script>
</div>
<!--选择支付方式 end-->
</div>
<!--购物车列表 end-->
</div>
</div>
<!--content end-->
<!--底部部分 start-->
<div class="bottom">
<div class="footer">
<!--友情链接 start-->
<div class="friend">
<ul>
<li class="blue bold">合作伙伴:</li>
<li class="sj">
<a href="" target="_blank">新浪旅游</a>
<a href="" target="_blank">搜狐旅游</a>
<a href="" target="_blank">网易旅游</a>
<a href="" target="_blank">央视旅游</a>
<a href="" target="_blank">雅虎旅游</a>
<a href="" target="_blank">凤凰卫视</a>
<a href="" target="_blank">旅游光明</a>
<a href="" target="_blank">日报旅游中</a>
<a href="" target="_blank">国日报旅游</a>
<a href="" target="_blank">中华网旅游环球</a>
<a href="" target="_blank">网旅游中</a>
<a href="" target="_blank">央广播电台</a>
</li>
</ul>
<ul>
<li class="blue bold">友情链接:</li>
<li class="sj">
<a href="" target="_blank">中国新闻网</a>
<a href="" target="_blank">百度</a>
<a href="" target="_blank">奇艺</a>
<a href="" target="_blank">同程网</a>
<a href="" target="_blank">游多多</a>
<a href="" target="_blank">自助游</a>
<a href="" target="_blank">劲旅网易</a>
<a href="" target="_blank">观网酷讯</a>
<a href="" target="_blank">去哪儿</a>
<a href="" target="_blank">poco旅游</a>
<a href="" target="_blank">绿野户</a>
<a href="" target="_blank">外网火车网</a>
<a href="" target="_blank">住哪网</a>
<a href="" target="_blank">峨眉山</a>
<a href="" target="_blank">格林豪泰</a>
<a href="" target="_blank">特价酒店西</a>
<a href="" target="_blank">藏旅游西</a>
<a href="" target="_blank">藏旅游邮</a>
<a href="" target="_blank">编网北京</a>
<a href="" target="_blank">旅行社</a>
</li>
</ul>
<ul>
<li><a href="" target="_blank"><img src="__PUBLIC__/images/yl.jpg" /></a></li>
<li><a href="" target="_blank"><img src="__PUBLIC__/images/cft.jpg" /></a></li>
<li><a href="" target="_blank"><img src="__PUBLIC__/images/kq.jpg" /></a></li>
<li><a href="" target="_blank"><img src="__PUBLIC__/images/zfb.jpg" /></a></li>
<li><a href="" target="_blank"><img src="__PUBLIC__/images/hk.jpg" /></a></li>
<li><a href="" target="_blank"><img src="__PUBLIC__/images/xh.jpg" /></a></li>
<li><a href="" target="_blank"><img src="__PUBLIC__/images/xy.jpg" /></a></li>
<li><a href="" target="_blank"><img src="__PUBLIC__/images/kx.jpg" /></a></li>
</ul>
<ul class="ks">
<li><a href="" target="_blank">关于梦之旅</a></li>
<li><a href="" target="_blank">联系梦之旅</a></li>
<li><a href="" target="_blank">诚邀合作</a></li>
<li><a href="" target="_blank">广告招标</a></li>
<li><a href="" target="_blank">网站地图</a></li>
<li><a href="" target="_blank">快速支付</a></li>
<li><a href="" target="_blank">支付安全</a></li>
<li><a href="" target="_blank">法律声明</a></li>
<li style="border:none;"><a href="" target="_blank">新手指南</a></li>
</ul>
</div>
<!--友情链接 end-->
<!--版权信息 start-->
<div class="bqxx">
<li>Copyright © 1997-2012 梦之旅 版权所有</li>
<li style="float:right;">国际旅行社经营许可证注册号:L-SC-CJ00014 蜀ICP备08007806号 京公网安备1101055404号</li>
</div>
<!--版权信息 end-->
</div>
</div>
<!--底部部分 end-->
<script language="javascript">
$(document).ready(function(){
$("#btnzhifuqueren").bind("click",function(){
if($("#zhifufangshid").is(":hidden")){
$("#zhifufangshid").show("slow");
$(this).hide();
}else{
$("#zhifufangshid").hide();
}
});
});
</script>
</body>
</html>
| 10npsite | trunk/Index/Tpl/Inn/default/order/view2_bak.htm | HTML | asf20 | 45,886 |
<div class="k4">
<ul class="jdxx_title">推荐客栈</ul>
<ul class="tj_kz">
<volist name="rs" id="rsjn" mod="3">
<eq name="mod" value="0"> <li></eq>
<span>
<a href="/hotel/view-id-<{$rsjn.hotel0}>" target="_blank"><img height="80" width="70" src="<{$rsjn.hotel15}>" /></a>
<a href="/hotel/view-id-<{$rsjn.hotel0}>" target="_blank"><{$rsjn.hotel1}></a>
</span>
<eq name="mod" value="3"> </li></eq>
</volist>
</ul>
</div>
| 10npsite | trunk/Index/Tpl/Inn/default/hotel/gettuijianhotel.htm | HTML | asf20 | 770 |
<php>foreach($rs as $k=>$v){</php>
<span><a href="/hotel-view-id-<php>echo $k;</php>" target="_blank"><php>echo $v;</php></a></span>
<php> }</php> | 10npsite | trunk/Index/Tpl/Inn/default/hotel/getbrowerhotebycookie.htm | HTML | asf20 | 148 |
<div class="k4">
<ul class="jdxx_title">本月热门客栈</ul>
<ul class="ll_before">
<li>
<volist name="rs" id="rhn">
<a href="/hotel/view-id-<{$rhn.hotel0}>" target="_blank"><{$rhn.hotel1}></a>|
</volist>
</li>
</ul>
</div> | 10npsite | trunk/Index/Tpl/Inn/default/hotel/getrenqipaihang.htm | HTML | asf20 | 437 |