李腾飞OA系统综合资料
李腾飞OA系统综合资料 包括很多的JAVA应用技术。
是很好的OA系统学习资料 。
oracle 10g教程 pdf
很不错的oracle 10g基础教程,希望对大家的学习有所帮助。
java基础教程pdf
很不错的JAVA基础教程,希望对大家的学习有所帮助。
Spring教程 pdf
很不错的Spring教程,希望对大家的学习有所帮助。
Hibernate 教程 pdf
很不错的Hibernate教程,希望对大家的学习有所帮助
struts2教程 pdf
一个很不错的Struts2.x教程,希望对大家的学习有所帮助。
企业后台管理系统界面(E——mail)
企业后台管理系统界面(E——mail)后台管理系统,框架很不错的资源。希望大家看一看。
进销存管理系统软件-安装
商业进销存管理系统软件,安装版。很好用的软件。
商业进销存管理系统软件,安装版。很好用的软件。
进销存管理系统功能分析-进销存管理系统功能分析
进销存管理系统功能结构分析,很好的资源,希望大家看一看。
进销存管理系统-进销存管理系统
进销存管理系统这是一个比较好的资源,想做开发的朋友希望来看看。
商业进销存管理系统——进销存管理系统
进销存管理系统是一个比较好的系统,希望想学习开发的朋友看一看。
ajax API 文档
<?php
/**
* @name 用户注册页面
* @since 2007-05-04
* @author BianJiang
* @link liuxingyuyuni.cublog.cn
* @history 需要对数据库操作进行封装
* */
//开启会话
session_start();
//基本设置
@$dbHost = "www.xxx.com";
@$dbUser = "root";
@$dbPass = "xxx";
@$dbOne = "xxx";
@$dbTwo = "xxx";
$rootPath = str_replace(''\\'',''/'',dirname(__FILE__)."/");
require_once($rootPath."lib/xajax/xajax.inc.php");
require_once($rootPath."lib/smarty/Smarty.class.php");
$tpl = new Smarty();
$tpl->template_dir = $rootPath.''templates'';
$tpl->compile_dir = $rootPath.''templates_c'';
$tpl->config_dir = $rootPath.''lib/smarty/configs'';
$tpl->cache_dir = $rootPath.''lib/smarty/cache'';
$tpl->debugging = false;
$tpl->caching = false;
$tpl->left_delimiter = ''{#'';
$tpl->right_delimiter = ''#}'';
$xajax = new xajax();
/**
* @name getIP
* @param None
* @desc get client ip address
* @return String
* */
function getIP()
{
if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown"))
$ip = getenv("HTTP_CLIENT_IP");
else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown"))
$ip = getenv("HTTP_X_FORWARDED_FOR");
else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown"))
$ip = getenv("REMOTE_ADDR");
else if (isset($_SERVER[''REMOTE_ADDR'']) && $_SERVER[''REMOTE_ADDR''] && strcasecmp($_SERVER[''REMOTE_ADDR''], "unknown"))
$ip = $_SERVER[''REMOTE_ADDR''];
else
$ip = "127.0.0.1";
return($ip);
}
/**
* @name isValidUser
* @param String $username
* @desc XAJAX注册函数:对注册用户名称进行检查
* @return $xajaxResponse->getXML()
* */
function isValidUser($username)
{
$username=iconv("utf-8", "gb2312", $username);
global $dbHost, $dbUser, $dbPass, $dbOne;
$xajaxResponse = new xajaxResponse();
$xajaxResponse->addAlert($username);
$conn = mysql_connect($dbHost, $dbUser, $dbPass);
if(!$conn)
die("connect db error");
if(!mysql_select_db($dbOne,$conn))
die("cant not select db");
$sql = "select * from xxx where username=''".$username."''";
$rs = mysql_query($sql, $conn);
$num = mysql_num_rows($rs);
if($num > 0)
{
$xajaxResponse->addAssign(''layUsername'', ''innerHTML'', "<font color=''red''=><b>对不起!用户名已存在!</b></font>");
$xajaxResponse->addAssign(''username'',"style.background", "#CCCCCC");
$xajaxResponse->addAssign("Submit2","disabled", true);
}
else if(strlen($username) > 14 || strlen($username) < 4)
{
$xajaxResponse->addAssign(''layUsername'', ''innerHTML'', "<font color=''red''=><b>用户名长度不符合规定!</b></font>");
$xajaxResponse->addAssign(''username'',"style.background", "#CCCCCC");
$xajaxResponse->addAssign("Submit2","disabled", true);
}
else
{
$xajaxResponse->addAssign(''layUsername'', ''innerHTML'', "<font color=''blue''=><b>恭喜!可以使用!</b></font>");
$xajaxResponse->addAssign(''username'',"style.background", "#66FFFF");
$xajaxResponse->addAssign("Submit2","disabled", false);
}
return $xajaxResponse->getXML();
}
/**
* @name isValidPass
* @param String $pass
* @param String $pass2
* @desc XAJAX调用函数:用户密码检查
* @return $xajaxResponse->getXML()
* */
function isValidPass($pass, $pass2)
{
$xajaxResponse = new xajaxResponse();
if((strlen($pass) < 5) || (strlen($pass2 ) < 5))//修改模改,只判断$pass2
{
struts API文档
下载还是很快的
Abstract base class for comparison tags.
ConditionalTagBase Abstract base class for the various conditional evaluation tags.
EmptyTag Evalute the nested body content of this tag if the specified value is empty for this request.
EqualTag Evaluate the nested body content of this tag if the specified variable and value are equal.
ForwardTag Perform a forward or redirect to a page that is looked up in the configuration information associated with our application.
GreaterEqualTag Evaluate the nested body content of this tag if the specified variable is greater than or equal to the specified value.
GreaterThanTag Evaluate the nested body content of this tag if the specified variable is greater than the specified value.
IterateTag Custom tag that iterates the elements of a collection, which can be either an attribute or the property of an attribute.
IterateTei Implementation of TagExtraInfo for the iterate tag, identifying the scripting object(s) to be made visible.
LessEqualTag Evaluate the nested body content of this tag if the specified variable is less than or equal to the specified value.
LessThanTag Evaluate the nested body content of this tag if the specified variable is less than the specified value.
MatchTag Evalute the nested body content of this tag if the specified value is a substring of the specified variable.
MessagesNotPresentTag Evalute the nested body content of this tag if the specified value is not present for this request.
MessagesPresentTag Evalute to true if an ActionMessages class or a class that can be converted to an ActionMessages class is in request scope under the specified key and there is at least one message in the class or for the property specified.
NotEmptyTag Evalute the nested body content of this tag if the specified value is not empty for this request.
NotEqualTag Evaluate the nested body content of this tag if the specified variable and value are not equal.
NotMatchTag Evalute the nested body content of this tag if the specified value is not a substring of the specified variable.
NotPresentTag Evalute the nested body content of this tag if the specified value is not present for this request.
PresentTag Evalute the nested body content of this tag if the specified value is present for this request.
RedirectTag Generate a URL-encoded redirect to the specified URI.