<!DOCTYPE HTML>
<html>
<head>
<title>photo_style_two</title>
<meta name="description" content="website description" />
<meta name="keywords" content="website keywords, website keywords" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!-- modernizr enables HTML5 elements and feature detects -->
<script type="text/javascript" src="js/modernizr-1.5.min.js"></script>
</head>
<body>
<div id="main">
<header>
<div id="logo">
<div id="logo_text">
<!-- class="logo_colour", allows you to change the colour of the text -->
<h1><a href="index.html">photo<span class="logo_colour">_style_two</span></a></h1>
<h2>Simple. Contemporary. Website Template.</h2>
</div>
</div>
<nav>
<ul class="sf-menu" id="nav">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Me</a></li>
<li><a href="portfolio.html">My Portfolio</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="#">Example Drop Down</a>
<ul>
<li><a href="#">Drop Down One</a></li>
<li><a href="#">Drop Down Two</a>
<ul>
<li><a href="#">Sub Drop Down One</a></li>
<li><a href="#">Sub Drop Down Two</a></li>
<li><a href="#">Sub Drop Down Three</a></li>
<li><a href="#">Sub Drop Down Four</a></li>
<li><a href="#">Sub Drop Down Five</a></li>
</ul>
</li>
<li><a href="#">Drop Down Three</a></li>
<li><a href="#">Drop Down Four</a></li>
<li><a href="#">Drop Down Five</a></li>
</ul>
</li>
<li class="selected"><a href="contact.php">Contact Us</a></li>
</ul>
</nav>
</header>
<div id="site_content">
<div id="sidebar_container">
<div id="gallery">
<ul class="images">
<li class="show"><img width="450" height="450" src="images/1.jpg" alt="photo_one" /></li>
<li><img width="450" height="450" src="images/2.jpg" alt="photo_two" /></li>
<li><img width="450" height="450" src="images/3.jpg" alt="photo_three" /></li>
<li><img width="450" height="450" src="images/4.jpg" alt="photo_four" /></li>
<li><img width="450" height="450" src="images/5.jpg" alt="photo_five" /></li>
</ul>
</div>
</div>
<div id="content">
<h1>Contact</h1>
<?php
// This PHP Contact Form is offered "as is" without warranty of any kind, either expressed or implied.
// David Carter at www.css3templates.co.uk shall not be liable for any loss or damage arising from, or in any way
// connected with, your use of, or inability to use, the website templates (even where David Carter has been advised
// of the possibility of such loss or damage). This includes, without limitation, any damage for loss of profits,
// loss of information, or any other monetary loss.
// Set-up these 3 parameters
// 1. Enter the email address you would like the enquiry sent to
// 2. Enter the subject of the email you will receive, when someone contacts you
// 3. Enter the text that you would like the user to see once they submit the contact form
$to = 'enter email address here';
$subject = 'Enquiry from the website';
$contact_submitted = 'Your message has been sent.';
// Do not amend anything below here, unless you know PHP
function email_is_valid($email) {
return preg_match('/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i',$email);
}
if (!email_is_valid($to)) {
echo '<p style="color: red;">You must set-up a valid (to) email address before this contact page will work.</p>';
}
if (isset($_POST['contact_submitted'])) {
$return = "\r";
$youremail = trim(htmlspecialchars($_POST['your_email']));
$yourname = stripslashes(strip_tags($_POST['your_name']));
$yourmessage = stripslashes(strip_tags($_POST['your_message']));
$contact_name = "Name: ".$yourname;
$message_text = "Message: ".$yourmessage;
$user_answer = trim(htmlspecialchars($_POST['user_answer']));
$answer = trim(htmlspecialchars($_POST['answer']));
$message = $contact_name . $return . $message_text;
$headers = "From: ".$youremail;
if (email_is_valid($youremail) && !eregi("\r",$youremail) && !eregi("\n",$youremail) && $yourname != "" && $yourmessage != "" && substr(md5($user_answer),5,10) === $answer) {
mail($to,$subject,$message,$headers);
$yourname = '';
$youremail = '';
$yourmessage = '';
echo '<p style="color: blue;">'.$contact_submitted.'</p>';
}
else echo '<p style="color: red;">Please enter your name, a valid email address, your message and the answer to the simple maths question before sending your message.</p>';
}
$number_1 = rand(1, 9);
$number_2 = rand(1, 9);
$answer = substr(md5($number_1+$number_2),5,10);
?>
<form id="contact" action="contact.php" method="post">
<div class="form_settings">
<p><span>Name</span><input class="contact" type="text" name="your_name" value="<?php echo $yourname; ?>" /></p>
<p><span>Email Address</span><input class="contact" type="text" name="your_email" value="<?php echo $youremail; ?>" /></p>
<p><span>Message</span><textarea class="contact textarea" rows="5" cols="50" name="your_message"><?php echo $yourmessage; ?></textarea></p>
<p style="padding: 10px 0; line-height: 2em;">To help prevent spam, please enter the answer to this question:</p>
<p><span><?php echo $number_1; ?> + <?php echo $number_2; ?> = ?</span><input type="text" name="user_answer" /><input type="hidden" name="answer" value="<?php echo $answer; ?>" /></p>
<p style="padding-top: 15px"><span> </span><input class="submit" type="submit" name="contact_submitted" value="send" /></p>
</div>
</form>
</div>
</div>
<footer>
<p>© 2012 photo_style_two. All Rights Reserved. | <a href="http://www.moobnn.com">模板在线</a> <a href="http://guantaow.taobao.com" target="_blank">厚朴网络 淘宝店</a></p>
</footer>
</div>
<!-- javascript at the bottom for fast page loading -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.easing-sooper.js"></script>
<script type="text/javascript" src="js/jquery.sooperfish.js"></script>
<script type="text/javascript" src="js/image_fade.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('ul.sf-menu').sooperfish();
});
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
灰色网格背景个人图片博客css3模板_黑色 个人 博客 标准 摄影 相册 个人 整站 菜单 html5 css3 幻灯.rar
共26个文件
js:6个
html:5个
jpg:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 72 浏览量
2021-11-06
12:51:45
上传
评论
收藏 767KB RAR 举报
温馨提示
灰色网格背景个人图片博客css3模板_黑色 个人 博客 标准 摄影 相册 个人 整站 菜单 html5 css3 幻灯
资源推荐
资源详情
资源评论
收起资源包目录
灰色网格背景个人图片博客css3模板_黑色 个人 博客 标准 摄影 相册 个人 整站 菜单 html5 css3 幻灯.rar (26个子文件)
灰色网格背景个人图片博客css3模板_黑色 个人 博客 标准 摄影 相册 个人 整站 菜单 html5 css3 幻灯
tcu_photostyle
contact.php 7KB
portfolio.html 4KB
documentation
index.html 7KB
js
modernizr-1.5.min.js 11KB
jquery.sooperfish.js 4KB
jquery.kwicks-1.5.1.js 6KB
jquery.easing-sooper.js 5KB
jquery.js 70KB
image_fade.js 2KB
css
style.css 10KB
index.html 4KB
about.html 4KB
images
2.jpg 192KB
1.jpg 127KB
pattern.png 156B
5.jpg 185KB
arrows-white.png 938B
calendar.png 1KB
bullet.png 761B
3.jpg 53KB
4.jpg 36KB
blog.html 4KB
fonts
YanoneKaffeesatz-Regular.ttf 85KB
NewsCycle-Regular.eot 14KB
NewsCycle-Regular.ttf 98KB
YanoneKaffeesatz-Regular.eot 28KB
共 26 条
- 1
资源评论
半抹灯芯
- 粉丝: 74
- 资源: 1075
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功