Here's a link to the site thus far:
Mobile Site Testing
I'm attempting to make a mobile version of our company website that focuses on a contest voting system that we currently have in place.
Since it's going to be formatted for mobile devices, I want to change certain aspects from the websites voting system in order to translate it effectively.
Here's the coding for 1 of the desktop browser voting pages:
And here's the condensed coding for 1 of the mobile device browser voting pages:
Since I won't be using any Lightbox technology with this mobile version of the site, I need to find a way for the name, photo and school information of an individual to be fed into a template voting page...and this is where I need help.
Mobile Site Testing
I'm attempting to make a mobile version of our company website that focuses on a contest voting system that we currently have in place.
Since it's going to be formatted for mobile devices, I want to change certain aspects from the websites voting system in order to translate it effectively.
Here's the coding for 1 of the desktop browser voting pages:
PHP Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.0;" />
<meta name="author" content="Brandon Moner" />
<script type="text/javascript" type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<link href='http://fonts.googleapis.com/css?family=Droid+Serif:700italic' rel='stylesheet' type='text/css' />
<title>Ruth Olson Photography</title>
</head>
<body>
<header>
<div class="top">
<div class="contents">
<h1><a href="index.php">Ruth Olson Photography</a></h1>
</div>
</div>
</header>
<div id="query">
<?php
include("../templates/mysql_connect.php");
//FOR LETTER: A
$query = "SELECT * FROM seniors WHERE last_name LIKE 'A%' ORDER BY last_name ASC";
$result = @mysql_query ($query);
echo '<table><tr>
<td>
<p><span class="style19"><u>-A-</u></span><br />';
while ($row = mysql_fetch_array ($result)){
echo "<a href=\"$row[pic_url]\" rel=\"lightbox[seniors]\"
title=\" <form action ="/sencha-tallyvote.php?sen_id=$row[sen_id]" method="post">
$row[first_name] $row[last_name] - $row[school] <br />
<input name="submit" align="right" type="submit" value="Vote" >
</form> \">$row[last_name], $row[first_name]</a><br/>";
}
echo '</p>';
?>
<?php
//FOR LETTER: B
$query = "SELECT * FROM seniors WHERE last_name LIKE 'B%' ORDER BY last_name ASC";
$result = @mysql_query ($query);
echo '<td><p><span class="style19"><u>-B-</u></span><br />';
while ($row = mysql_fetch_array ($result)){
echo "<a href=\"$row[pic_url]\" rel=\"lightbox[seniors]\"
title=\" <form action ="/sencha-tallyvote.php?sen_id=$row[sen_id]" method="post">
$row[first_name] $row[last_name] - $row[school]
<input name="submit" type="submit" value="Vote" >
</form> \">$row[last_name], $row[first_name]</a><br/>";
}
echo '</p></td>';
?>
<?php
//FOR LETTER: C
$query = "SELECT * FROM seniors WHERE last_name LIKE 'C%' ORDER BY last_name ASC";
$result = @mysql_query ($query);
echo '<td><p><span class="style19"><u>-C-</u></span><br />';
while ($row = mysql_fetch_array ($result)){
echo "<a href=\"$row[pic_url]\" rel=\"lightbox[seniors]\"
title=\" <form action ="/sencha-tallyvote.php?sen_id=$row[sen_id]" method="post">
$row[first_name] $row[last_name] - $row[school]
<input name="submit" type="submit" value="Vote" >
</form> \">$row[last_name], $row[first_name]</a><br/>";
}
echo '</p></td></tr>';
?>
<?php
//FOR LETTER: D
$query = "SELECT * FROM seniors WHERE last_name LIKE 'D%' ORDER BY last_name ASC";
$result = @mysql_query ($query);
echo '<tr><td><p><span class="style19"><u>-D-</u></span><br />';
while ($row = mysql_fetch_array ($result)){
echo "<a href=\"$row[pic_url]\" rel=\"lightbox[seniors]\"
title=\" <form action ="/sencha-tallyvote.php?sen_id=$row[sen_id]" method="post">
$row[first_name] $row[last_name] - $row[school]
<input name="submit" type="submit" value="Vote" >
</form> \">$row[last_name], $row[first_name]</a><br/>";
}
echo '</p></td>';
?>
<?php
//FOR LETTER: E
$query = "SELECT * FROM seniors WHERE last_name LIKE 'E%' ORDER BY last_name ASC";
$result = @mysql_query ($query);
echo '<td><p><span class="style19"><u>-E-</u></span><br />';
while ($row = mysql_fetch_array ($result)){
echo "<a href=\"$row[pic_url]\" rel=\"lightbox[seniors]\"
title=\" <form action ="/sencha-tallyvote.php?sen_id=$row[sen_id]" method="post">
$row[first_name] $row[last_name] - $row[school]
<input name="submit" type="submit" value="Vote" >
</form> \">$row[last_name], $row[first_name]</a><br/>";
}
echo '</p></td>';
?>
<?php
//FOR LETTER: F
$query = "SELECT * FROM seniors WHERE last_name LIKE 'F%' ORDER BY last_name ASC";
$result = @mysql_query ($query);
echo '<td><p><span class="style19"><u>-F-</u></span><br />';
while ($row = mysql_fetch_array ($result)){
echo "<a href=\"$row[pic_url]\" rel=\"lightbox[seniors]\"
title=\" <form action ="/sencha-tallyvote.php?sen_id=$row[sen_id]" method="post">
$row[first_name] $row[last_name] - $row[school]
<input name="submit" type="submit" value="Vote" >
</form> \">$row[last_name], $row[first_name]</a><br/>";
}
echo '</p></td></tr>';
?>
</table>
</div>
</body>
</html>
PHP Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.0;" />
<meta name="author" content="Brandon Moner" />
<script type="text/javascript" type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/Javascript" src="js/script.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Ruth Olson Photography</title>
</head>
<body>
<header>
<div class="top">
<div class="contents">
<h1><a href="index.php">Ruth Olson Photography</a></h1>
</div>
</div>
</header>
<div id="query">
<?php
include("templates/mysql_connect.php");
//FOR LETTERS: A-F
$query = "SELECT * FROM seniors WHERE last_name BETWEEN 'A%' and 'FZ%' ORDER BY last_name ASC";
$result = @mysql_query ($query);
echo
'<div class="bigmenu" alt="Results A-F"><u>A-F</u></div><br />';
while ($row = mysql_fetch_array ($result)){
echo "<a href=\"$row[pic_url]\" rel=\"lightbox[seniors]\"
title=\" <form action ="/tally.php?sen_id=$row[sen_id]" method="post">
$row[first_name] $row[last_name] - $row[school] <br />
<input name="submit" align="right" type="submit" value="Vote" >
</form> \">$row[last_name], $row[first_name]</a><br/>";
}
echo '</p>';
?>
</div>
<footer class="contents">
<p>© Copyright 2003 - <?php echo date("Y") ?> Ruth Olson Photography</p>
</footer>
</body>
</html>
Comment