目录深入PHP与jQuery开发源代码下载(Pro PHP and jQuery source code)

jquery下载  时间:2021-04-23  阅读:()

深入PHP与jQuery开发源代码下载Pro PHP andjQuerysource code

作者 [美] Jason Lengstorf著

人民邮电出版社

看完这本书后觉得内容挺不错的书中的代码基本上都能实现为方便广大同仁更好的学习和参考能以我个人的能力给大家做点贡献我也觉得非常荣幸欢迎大家踊跃下载本想免费供大家下载的可是为了同时也能让我下载更多的学习资料所以还是决定跟大家要点财富值吧嘿嘿

下面是这个项目的目录结构

下面是运行效果图

首先是app目录下的admin.php文件,代码如下<?php

/*

* Created on 2012-4-24 by xiongxuebing

*/include_once ' . ./system/core/init.inc.php' ;if ( !isset($_SESSION[ 'user' ] ) )

{header("Location: ./") ;exit;

}

/*

* Output the header

*/

$page_title = "Add/Edit Event";

$css_files = array("style.css", "admin.css") ;includ' ;

/*

* Load the calendar

*/

$cal = new Calendar($dbo) ;

?>

<div id="content">

<?php echo @$cal->displayForm( ) ; ?>

</div><!-- end #content -->

<?php

/*

* Output the footer

*/includ' ;

?>

下面是confirmdelete.php文件

<?php

/*

* Created on 2012-4-24 by xiongxuebing

*/include_once ' . ./system/core/init.inc.php' ;

/*

* Make sure the event ID was passed

*/if ( isset($_POST[ 'event_id' ] ) && isset($_SESSION[ 'user' ] ) ){

/*

* Collect the event ID from the URL string

*/

$id = (int) $_POST[ 'event_id' ] ;

}else

{

/*

* Send the user to the main page if no ID is supplied

*/header("Location: ./") ;exit;

}

$cal = new Calendar($dbo) ;

$markup = $cal->confirmDelete($id) ;

/*

* Output the header

*/

$page_title = "View Event";

$css_files = array("style.css", "admin.css") ;includ' ;

?>

<div id="content">

<?php echo $markup; ?>

</div><!-- end #content -->

<?php

/*

* Output the footer

*/include_once 'assets/common/footer.inc.php' ;

?>

Index.php

<?php

/*

* Created on 2012-4-24 by xiongxuebing

*/

/*

* Include necessary files

*/include_once ' . ./system/core/init.inc.php' ;

/*

* Load the calendar for January

*/

$cal = new Calendar($dbo, "2012-04-01 12:00:00") ;

$page_title = "Events Calendar";

$css_files = array( 'style.css' , 'admin.css' , 'ajax.css' ) ;includ' ;

?>

<div id="content">

<?phpecho $cal->buildCalendar( ) ;

?>

</div><!-- end #content -->

<p>

<?phpecho isset($_SESSION[ 'user' ] ) ? "欢迎您 " .$_SESSION[ 'user' ] [ 'name' ] . " ! " :

"还未登录 ";

?>

</p>

<?php

/*

* Include the footer

*/includ' ;

?>

Login.php

<?php

/*

* Created on 2012-4-25 by xiongxuebing

*/

/*

* Include necessary files

*/include_once ' . ./system/core/init.inc.php' ;

/*

* Output the header

*/

$page_title = "Please Log In";

$css_files = array("style.css", "admin.css") ;include_once 'assets/common/header.inc.php' ;

?>

<div id="content">

<form action="assets/inc/process.inc.php" method="post">

<fieldset>

<legend>Please Log In</legend>

<label for="uname">Username</label>

<input type="text" name="uname" id="uname" value="" /><label for="pword">Password</label>

<input type="password" name="pword" id="pword" value="" /><input type="hidden" name="token" value="<?php echo

$_SESSION[ 'token' ] ; ?>" />

<input type="hidden" name="action" value="user_login" /><input type="submit" name="login_submit" value="Log In" /> or<a href=" ./">cancel</a>

</fieldset>

</form>

</div><!-- end #content -->

<?php

/*

* Output the footer

*/include_once 'assets/common/footer.inc.php' ;

?>

View.php

<?php

/*

* Created on 2012-4-24 by xiongxuebing

*/if ( isset($_GET[ 'event_id' ] ) )

{

$id = preg_replace( '/[^0-9]/' , ' ' , $_GET[ 'event_id' ] ) ;if ( empty($id) )

{header("Location: ./") ;exit;

}

}else

{header("Location: ./") ;exit;

}include_once ' . ./system/core/init.inc.php' ;

$page_title = "View Event";

$css_files = array("style.css", "admin.css") ;includ' ;

$cal = new Calendar($dbo) ;

?>

<div id="content">

<?php echo $cal->displayEvent($id) ?>

<a href=" ./">&laquo; Back to the calendar</a>

</div><!-- end #content -->

<?phpinclude_once 'assets/common/footer.inc.php' ;

?>

下面是app目录assets目录下文件

首先是Commen目录

Footer.inc.php

<script type="text/javascript"src="assets/js/jquery-1.7.2. js"></script>

<script type="text/javascript" src="assets/js/valid-date. js"></script><script type="text/javascript" src="assets/js/init. js"></script></body>

</html>header.inc.php

<!DOCTYPE html

PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>

<meta http-equiv="Content-Type"content="text/html;charset=utf-8" />

<title><?php echo $page_title; ?></title>

<?php foreach ( $css_files as $css ) : ?>

<link rel="stylesheet" type="text/css" media="screen,projection"href="assets/css/<?php echo $css; ?>" />

<?php endforeach; ?>

</head>

<body>

Css目录

Admin.cssfieldset {border: 0;

}legend {font-size: 24px;

font-weight: bold;

}input[type=text] ,input[type=password] ,label {display: block;width: 70%;font-weight: bold;

}textarea {width: 99%;height: 200px;

}input[type=text] ,input[type=password] ,textarea {border: 1px solid #123;

-moz-border-radius: 6px;

-webkit-border-radius: 6px;border-radius: 6px;

-moz-box-shadow: inset 1px 2px 4px #789;

-webkit-box-shadow: inset 1px 2px 4px #789;box-shadow: inset 1px 2px 4px #789;padding: 4px;margin: 0 0 4px;font-size: 16px;font-family: georgia, serif;

}input[type=submit] {margin: 4px 0;padding: 4px;border: 1px solid #123;

-moz-border-radius: 6px;

-webkit-border-radius: 6px;border-radius: 6px;

-moz-box-shadow: inset -2px -1px 3px #345,inset 1px 1px 3px #BCF,

1px 2px 6px #789;

-webkit-box-shadow: inset -2px -1px 3px #345,inset 1px 1px 3px #BCF,

1px 2px 6px #789;box-shadow: inset -2px -1px 3px #345,inset 1px 1px 3px #BCF,

1px 2px 6px #789;background-color: #789;font-family: georgia, serif;text-transform: uppercase;font-weight: bold;

font-size: 14px;text-shadow: 0px 0px 1px #fff;

}

.admin-options {text-align: center;

}

.admin-options form, .admin-options p {display: inline;

}a.admin,a.link{display: inline-block;margin: 4px 0;padding: 4px;border: 1px solid #123;

-moz-border-radius: 6px;

-webkit-border-radius: 6px;border-radius: 6px;

-moz-box-shadow: inset -2px -1px 3px #345,inset 1px 1px 3px #BCF,

1px 2px 6px #789;

-webkit-box-shadow: inset -2px -1px 3px #345,inset 1px 1px 3px #BCF,

1px 2px 6px #789;box-shadow: inset -2px -1px 3px #345,inset 1px 1px 3px #BCF,

1px 2px 6px #789;background-color: #789;color: black;text-decoration: none;font-family: georgia, serif;text-transform: uppercase;font-weight: bold;font-size: 14px;text-shadow: 0px 0px 1px #fff;

}

Ajax.css

.modal-overlay {position: fixed;top: 0;left: 0;bottom: 0;width: 100%;

Buyvm:VPS/块存储补货1Gbps不限流量/$2起/月

BuyVM测评,BuyVM怎么样?BuyVM好不好?BuyVM,2010年成立的国外老牌稳定商家,Frantech Solutions旗下,主要提供基于KVM的VPS服务器,数据中心有拉斯维加斯、纽约、卢森堡,付费可选强大的DDOS防护(月付3美金),特色是1Gbps不限流量,稳定商家,而且卢森堡不限版权。1G或以上内存可以安装Windows 2012 64bit,无需任何费用,所有型号包括免费的...

选择Vultr VPS主机不支持支付宝付款的解决方案

在刚才更新Vultr 新年福利文章的时候突然想到前几天有网友问到自己有在Vultr 注册账户的时候无法用支付宝付款的问题,当时有帮助他给予解决,这里正好顺带一并介绍整理出来。毕竟对于来说,虽然使用的服务器不多,但是至少是见过世面的,大大小小商家的一些特性特征还是比较清楚的。在这篇文章中,和大家分享如果我们有在Vultr新注册账户或者充值购买云服务器的时候,不支持支付宝付款的原因。毕竟我们是知道的,...

NameCheap域名转入优惠再次来袭 搜罗今年到期域名续费

在上个月的时候也有记录到 NameCheap 域名注册商有发布域名转入促销活动的,那时候我也有帮助自己和公司的客户通过域名转入到NC服务商这样可以实现省钱续费的目的。上个月续费转入的时候是选择9月和10月份到期的域名,这不还有几个域名年底到期的,正好看到NameCheap商家再次发布转入优惠,所以打算把剩下的还有几个看看一并转入进来。活动截止到9月20日,如果我们需要转入域名的话可以准备起来。 N...

jquery下载为你推荐
LACADFandroid我的"点绛唇"浙江世纪华通集团股份有限公司勒索病毒win7补丁求问win7 64位旗舰版怎么预防勒索病毒联通版iphone4s怎么区分iphone4s电信版和联通版ipad上不了网平板电脑 能连接网络不能上网google搜图google的直接搜索图片的功能为什么没了ipad无法加入网络ipad无法加入网络但是手机能用苹果5.1.1越狱iphone5.1.1越狱老是越狱失败,说要抹掉数据,怎么抹掉数据不懂,接下来该怎么弄 求大神指教微信5.0是哪一年的微信是哪一年开始有的?
买域名 猫咪av永久最新域名 花生壳域名贝锐 debian6 eq2 我爱水煮鱼 怎么测试下载速度 刀片服务器的优势 网通服务器 lamp兄弟连 后门 葫芦机 聚惠网 winds 海外加速 server2008 studentmain 主机配置 主机响 服务器监测软件 更多