目录深入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%;

麻花云-香港CN2云服务器,安徽BGP线路,安徽移动大带宽!全系6折!

一、麻花云官网点击直达麻花云官方网站二、活动方案优惠码:专属优惠码:F1B07B 享受85折优惠。点击访问活动链接最新活动 :五一狂欢 惠战到底 香港云主机 1.9折起香港特价体验云主机CN2 云服务器最新上线KVM架构,,默认40G SSD,+10G自带一个IPv4,免费10Gbps防御,CPU内存带宽价格购买1核1G1M19元首月链接2核2G 2M92元/3个月链接2核4G3M112元/3个月...

VirtVPS抗投诉瑞士VPS上线10美元/月

专心做抗投诉服务器的VirtVPS上线瑞士机房,看中的就是瑞士对隐私的保护,有需要欧洲抗投诉VPS的朋友不要错过了。VirtVPS这次上新的瑞士服务器采用E-2276G处理器,Windows/Linux操作系统可选。VirtVPS成立于2018年,主营荷兰、芬兰、德国、英国机房的离岸虚拟主机托管、VPS、独立服务器、游戏服务器和外汇服务器业务。VirtVPS 提供世界上最全面的安全、完全受保护和私...

港云网络(¥1/月活动机器),香港CN2 4核4G 1元/月 美国CN2

港云网络官方网站商家简介港云网络成立于2016年,拥有IDC/ISP/云计算资质,是正规的IDC公司,我们采用优质硬件和网络,为客户提供高速、稳定的云计算服务。公司拥有一流的技术团队,提供7*24小时1对1售后服务,让您无后顾之忧。我们目前提供高防空间、云服务器、物理服务器,高防IP等众多产品,为您提供轻松上云、安全防护。点击进入港云网络官方网站港云网络中秋福利1元领【每人限量1台】,售完下架,活...

jquery下载为你推荐
basedcss支持ipad支持ipad支持ipad支持ipadwindows键是哪个windows 快捷键 大全勒索病毒win7补丁为了防勒索病毒,装了kb4012212补丁,但出现关机蓝屏的问题了,开机正常127.0.0.1传奇服务器非法网关连接: 127.0.0.1google图片搜索如何使用google图片搜索引擎?chromeframeicharts 怎么支持ie8
怎样申请域名 budgetvm 阿云浏览器 电影服务器 免费cdn加速 七夕促销 789电视 国外代理服务器软件 流量计费 vip购优惠 能外链的相册 七夕快乐英语 万网空间 稳定空间 rewritecond hdsky 第八届中美互联网论坛 最新优惠 web是什么意思 wannacry勒索病毒 更多