-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php20151101
executable file
·263 lines (183 loc) · 8.69 KB
/
header.php20151101
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<html>
<head>
<link rel="SHORTCUT ICON" href="Pictures/ucc_f.ico">
<link href="css/ukieriRai.css" rel="stylesheet" type="text/css">
<title>UCC</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript" src="galleria-1.2.9.min.js"></script>
<script type="text/javascript" src="plugins/facebook/galleria.facebook.js"></script>
<script type="text/javascript" src="plugins/flickr/galleria.flickr.min.js"></script>
</head>
<body>
<div id="contain"> <!-- container starts -->
<!--so many days left for abstract submission -->
<?php
$total_days_jan=cal_days_in_month(CAL_GREGORIAN,1,2012);
$total_days_feb=cal_days_in_month(CAL_GREGORIAN,2,2012);
$total_days_march=cal_days_in_month(CAL_GREGORIAN,3,2012);
$total_days=$total_days_jan+$total_days_feb+$total_days_march;
//echo "jan=".$total_days_jan." ";
//echo "feb=".$total_days_feb." ";
//echo "march=".$total_days_march." ";
//echo "total days=".$total_days." ";
$current_date=date('z');
//echo "current day=".$current_date." ";
$lastdate=$total_days-$current_date;
$show_lastdate= "$lastdate days left for abstract submission!";
//echo $show_lastdate;
?>
<?php
include 'mysql.php';
include 'rai.php';
$tablename="Config";
$HeaderHeigth="100";
$Date = "2 - 5 November 2015 Jalandhar Punjab India";
$result = mysql_query("SELECT * FROM $tablename");
$PathImage = "Pictures/";
while($row = mysql_fetch_array($result))
{
$item[0].= "";
$item[0].= "<div class=\"bg\" ><div id=\"header\" >";
$item[0].= "<div class='headerPadding'> <table><tr style=\"\"><td style=\"width:55px; \">";
$item[0] .= "<a href='http://ukiericoncretecongress.com'> <img src=\"";
$item[0] .= $PathImage . $row['image'] . "\" width = \"$HeaderHeigth\" alt=\"logo\"></a>";
$item[0].= "</td><td style=\"background:url('images/baner.jpg') no-repeat;\">";
$item[0] .= "<div class=\"headh2\">" . $row['confName'];
$item[0] .= "</div><div class=\"headh1\">" . $row['conf_theme'] ;
$item[0] .= "</div><div class=\"headh2\">" . $Date . "</div>";
$item[0] .= "</td></tr></table></div><div class=\"navigator\"><ul class=\"semiopaquemenu\">
<li><a href=\"http://ukiericoncretecongress.com/Home\">Home</a></li>
<li><a href=\"?refNo=27&fileRef=TradeFair\">Conferences</a></li>
<!--<li><a href=\"?refNo=26&fileRef=TradeFair\">Registration</a></li>-->
<!--<li><a href=\"?refNo=23&fileRef=Submit\">Submit Paper</a></li>-->
<li><a href=\"?refNo=22&fileRef=TradeFair\">Downloads</a></li>
</ul> </div>";
echo $item[0];
}
?>
<!--<div id='scrollText'>
<div id='imageScroller'>
<div id="viewer" class="js-disabled"><b id="r"><a class="wrapper" id="nonoo" href="#">Registration details will be updated soon...</b></a>
<a class="wrapper" id="nonoo" href="#" ><b id="r">
</b>-->
<?php echo "<script type=\"text/javascript\">
var arMessage = new Array(
'Thanks for overwhelming response'
);
var ind = Math.floor(Math.random() * 1);
document.getElementById(\"r\").innerHTML=arMessage[ind];
</script>"; ?> </a>
</div>
</div>
</div>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function() {
//remove js-disabled class
$("#viewer").removeClass("js-disabled");
//create new container for images
$("<div>").attr("id", "container").css({ position:"absolute"}).width($(".wrapper").length * 470).height(30).appendTo("div#viewer");
//add images to container
$(".wrapper").each(function() {
$(this).appendTo("div#container");
});
//work out duration of anim based on number of images (1 second for each image)
var duration = $(".wrapper").length * 15500;
//store speed for later (distance / time)
var speed = (parseInt($("div#container").width()) + parseInt($("div#viewer").width())) / duration;
//set direction
var direction = "rtl";
//set initial position and class based on direction
(direction == "rtl") ? $("div#container").css("left", $("div#viewer").width()).addClass("rtl") : $("div#container").css("left", 0 - $("div#container").width()).addClass("ltr") ;
//animator function
var animator = function(el, time, dir) {
//which direction to scroll
if(dir == "rtl") {
//add direction class
el.removeClass("ltr").addClass("rtl");
//animate the el
el.animate({ left:"-" + el.width() + "px" }, time, "linear", function() {
//reset container position
$(this).css({ left:$("div#imageScroller").width(), right:"" });
//restart animation
animator($(this), duration, "rtl");
//hide controls if visible
($("div#controls").length > 0) ? $("div#controls").slideUp("slow").remove() : null ;
});
} else {
//add direction class
el.removeClass("rtl").addClass("ltr");
//animate the el
el.animate({ left:$("div#viewer").width() + "px" }, time, "linear", function() {
//reset container position
$(this).css({ left:0 - $("div#container").width() });
//restart animation
animator($(this), duration, "ltr");
//hide controls if visible
($("div#controls").length > 0) ? $("div#controls").slideUp("slow").remove() : null ;
});
}
}
//start anim
animator($("div#container"), duration, direction);
//pause on mouseover
$("a.wrapper").live("mouseover", function() {
//stop anim
$("div#container").stop(true);
//show controls
($("div#controls").length == 0) ? $("<div>").attr("id", "controls").appendTo("div#outerContainer").css({ opacity:0.7 }).slideDown("slow") : null ;
($("a#rtl").length == 0) ? $("<a>").attr({ id:"rtl", href:"#", title:"rtl" }).appendTo("#controls") : null ;
($("a#ltr").length == 0) ? $("<a>").attr({ id:"ltr", href:"#", title:"ltr" }).appendTo("#controls") : null ;
//variable to hold trigger element
var title = $(this).attr("title");
//add p if doesn't exist, update it if it does
($("p#title").length == 0) ? $("<p>").attr("id", "title").text(title).appendTo("div#controls") : $("p#title").text(title) ;
});
//restart on mouseout
$("a.wrapper").live("mouseout", function(e) {
//hide controls if not hovering on them
(e.relatedTarget == null) ? null : (e.relatedTarget.id != "controls") ? $("div#controls").slideUp("slow").remove() : null ;
//work out total travel distance
var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
//work out distance left to travel
var distanceLeft = ($("div#container").hasClass("ltr")) ? totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width())) : totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left")))) ;
//new duration is distance left / speed)
var newDuration = distanceLeft / speed;
//restart anim
animator($("div#container"), newDuration, $("div#container").attr("class"));
});
//handler for ltr button
$("#ltr").live("click", function() {
//stop anim
$("div#container").stop(true);
//swap class names
$("div#container").removeClass("rtl").addClass("ltr");
//work out total travel distance
var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
//work out remaining distance
var distanceLeft = totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width()));
//new duration is distance left / speed)
var newDuration = distanceLeft / speed;
//restart anim
animator($("div#container"), newDuration, "ltr");
});
//handler for rtl button
$("#rtl").live("click", function() {
//stop anim
$("div#container").stop(true);
//swap class names
$("div#container").removeClass("ltr").addClass("rtl");
//work out total travel distance
var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
//work out remaining distance
var distanceLeft = totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left"))));
//new duration is distance left / speed)
var newDuration = distanceLeft / speed;
//restart anim
animator($("div#container"), newDuration, "rtl");
});
});
</script>
<?php echo "</div>
</div>" ?>