-
Notifications
You must be signed in to change notification settings - Fork 0
/
press.php
171 lines (151 loc) · 5.5 KB
/
press.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
require_once('includes/conn_mysql.inc.php');
//connect to DB:
$conn = dbConnect('admin');
$p_query = "SELECT * FROM press";
$p_rs = mysql_query($p_query, $conn) or die(mysql_error());
$q = "SELECT * FROM quotes";
$s = mysql_query($q, $conn);
?>
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/fontstyle.css" type="text/css" charset="utf-8">
<link href="css/galleria.css" rel="stylesheet" type="text/css" media="screen">
<link rel="stylesheet" media="all" type="text/css" href="css/dropdown.css" />
<!--[if lte IE 6]>
<link rel="stylesheet" media="all" type="text/css" href="css/dropdown_ie.css" />
<![endif]-->
<title>Solutions Bridal - Press</title>
<script src="scripts/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="scripts/jquery.galleria.pack.js"></script>
<script src="scripts/jquery.cycle.lite.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#bride_quote').cycle({
speed: 2000,
timeout: 5000,
cleartype: 1
});
})
jQuery(function($) {
$('.gallery_demo_unstyled').addClass('gallery_demo'); // adds new class name to maintain degradability
$('ul.gallery_demo').galleria({
history : true, // activates the history object for bookmarking, back-button etc.
clickNext : true, // helper for making the image clickable
insert : '#main_image', // the containing selector for our main image
onImage : function(image,caption,thumb) { // let's add some image effects for demonstration purposes
// fade in the image & caption
if(! ($.browser.mozilla && navigator.appVersion.indexOf("Win")!=-1) ) { // FF/Win fades large images terribly slow
image.css('display','none').fadeIn(1000);
}
caption.css('display','none').fadeIn(1000);
// fetch the thumbnail container
var _li = thumb.parents('li');
// fade out inactive thumbnail
_li.siblings().children('img.selected').fadeTo(500,0.3);
// fade in active thumbnail
thumb.fadeTo('fast',1).addClass('selected');
// add a title for the clickable image
image.attr('title','Next image >>');
},
onThumb : function(thumb) { // thumbnail effects goes here
// fetch the thumbnail container
var _li = thumb.parents('li');
// if thumbnail is active, fade all the way.
var _fadeTo = _li.is('.active') ? '1' : '0.3';
// fade in the thumbnail when finnished loading
thumb.css({display:'none',opacity:_fadeTo}).fadeIn(1500);
// hover effects
thumb.hover(
function() { thumb.fadeTo('fast',1); },
function() { _li.not('.active').children('img').fadeTo('fast',0.3); } // don't fade out if the parent is active
)
}
});
});
</script>
<style type="text/css" media="screen">
/* BEGIN DEMO STYLE */
h1,h2{font:bold 80% 'helvetica neue',sans-serif;letter-spacing:3px;text-transform:uppercase;}
a{color:#348;text-decoration:none;outline:none;}
a:hover{color:#67a;}
.caption{font-size:12px;color:#887;}
.demo{position:relative;margin-top:2em;}
.gallery_demo{
position:absolute;
left:35px;
top:250px;
width:230px;
margin:0 auto;
}
.gallery_demo li{width:68px;height:50px;border:1px solid #fff;margin: 4px;background:#000;}
.gallery_demo li div{left:240px}
.gallery_demo li div .caption{font:italic 0.7em/1.4 georgia,serif;}
#main_image{margin:0 auto 60px auto;height:438px;width:700px;}
#main_image img{margin-bottom:10px; background:none;}
.nav{padding-left:32px;padding-top:15px;clear:both;font:80% 'helvetica neue',sans-serif;letter-spacing:3px;text-transform:uppercase;}
.nav a{color:#DDD; text-decoration:none;}
.nav a:hover{text-decoration:underline;}
.info{text-align:left;width:700px;margin:30px auto;border-top:1px dotted #221;padding-top:30px;}
.info p{margin-top:1.6em;}
.galleria_wrapper{float:right;}
.galleria_container{
position:absolute;
left:270px;
top:125px;
}
.galleria_container li {
border:none;
}
.caption {
position:absolute;
width:450px;
top:400px;
left:5px;
color:#fff;
}
div#wrapper {
min-height:610px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="main">
<img src="images/sbheaderlogo.jpg" />
<div id="bride_quote">
<?php while($a = mysql_fetch_assoc($s)) { ?>
<div>
<p class="pretty"><?php echo $a['q_body']; ?></p>
<p class="quote_person"><?php echo $a['q_sig']; ?></p>
</div>
<?php } ?>
</div>
<div class="menu">
<?php
include('includes/menu.php');
?>
</div>
<div id="infodiv" style="top:220px">
<h1><img src="images/pressh1.png" /></h1>
</div>
<ul class="gallery_demo_unstyled">
<?php while($p_record = mysql_fetch_assoc($p_rs)) { ?>
<li><img src="press/<?php echo $p_record['press_img']; ?>" title="<?php echo $p_record['press_desc']; ?>" /></li>
<?php } ?>
</ul>
</div>
</div>
<div id="adwrapper">
<?php include('includes/ads.php'); ?>
</div>
<div id="footer">
<?php include('includes/footer.inc.php'); ?>
</div>
</body>
</html>