|
<cfparam name="PageNum_rsPhoto" default="1"> <cfset CurrentPage=GetFileFromPath(GetBaseTemplatePath())> <cfquery name="rsPhoto" datasource="intheworksphotoco"> SELECT photos.PHOTONAME, photos.LARGEIMAGE, photos.DISCRIPTION FROM photos ORDER BY photos.PHOTOID </cfquery> <cfset MaxRows_rsPhoto=1> <cfset StartRow_rsPhoto=Min((PageNum_rsPhoto-1)*MaxRows_rsPhoto+1,Max(rsPhoto.RecordCount,1))> <cfset EndRow_rsPhoto=Min(StartRow_rsPhoto+MaxRows_rsPhoto-1,rsPhoto.RecordCount)> <cfset TotalPages_rsPhoto=Ceiling(rsPhoto.RecordCount/MaxRows_rsPhoto)> <cfset QueryString_rsPhoto=Iif(CGI.QUERY_STRING NEQ "",DE("&"&XMLFormat(CGI.QUERY_STRING)),DE(""))> <cfset tempPos=ListContainsNoCase(QueryString_rsPhoto,"PageNum_rsPhoto=","&")> <cfif tempPos NEQ 0> <cfset QueryString_rsPhoto=ListDeleteAt(QueryString_rsPhoto,tempPos,"&")> </cfif> <!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"> <!-- DW6 --> <head> <!-- Copyright 2005 Macromedia, Inc. All rights reserved. --> <title>Photo Gallery</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="../assets/intheworks.css" type="text/css" /> <script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head>
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="02021e"> <td colspan="4" rowspan="2" nowrap="nowrap"><img src="../assets/intheworks_pg_ban.jpg" alt="Header image" width="400" height="140" border="0" /></td> <td height="58" nowrap="nowrap" colspan="4" id="logo" valign="bottom">In The Works Photo Co.</td> </tr> <tr bgcolor="02021E"> <td height="57" nowrap="nowrap" colspan="4" id="tagline" valign="top">Photos By Independent Photographer Jermey Wilson</td> </tr> <tr> <td colspan="8" bgcolor="#cc3300"><img src="../assets/intheworks_spacer.gif" alt="" width="1" height="2" border="0" /></td> </tr>
<tr> <td colspan="8"><img src="../assets/intheworks_spacer.gif" alt="" width="1" height="2" border="0" /></td> </tr>
<tr> <td colspan="8" bgcolor="#cc3300"><img src="../assets/intheworks_spacer.gif" alt="" width="1" height="1" border="0" /></td> </tr>
<tr> <td colspan="8"> <br /> </td> </tr> <tr> <td width="160" valign="top" height="370"> <table border="0" cellspacing="0" cellpadding="0" width="155" id="navigation"> <tr> <td width="155" height="40"><a href="../index.html">Home</a></td> </tr> <tr> <td width="155" height="40"><a href="index.cfm">photo gallery</a></td> </tr> <tr> <td width="155" height="40"><a href="../aboutme/index.html">about me</a></td> </tr> <tr> <td width="155" height="40"><a href="../contactme/index.html">contact me</a></td> </tr> <tr> <td height="40"><a href="../login/index.cfm">login</a></td> </tr> </table> <br /></td> <td width="2" bgcolor="#445DA0"><img src="../assets/intheworks_spacer.gif" alt="" width="1" height="1" border="0" /></td> <th height="41" colspan="5" align="left" valign="top" nowrap="nowrap" class="pageName"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="37" class="pageName">Photo Gallery</td> </tr> </table> <br /> <cfoutput query="rsPhoto" startrow="#StartRow_rsPhoto#" maxrows="#MaxRows_rsPhoto#"> <table width="600" height="98" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="25" class="subHeader"> </td> <td width="575" height="36" class="subHeader">#rsPhoto.PHOTONAME# </td> </tr> <tr> <td height="31" colspan="2" align="center" class="bodyText"><img src="../images/#rsPhoto.LARGEIMAGE#" width="550" height="250" /></td> </tr> <tr> <td height="31" colspan="2" class="bodyText"><div align="left" class="bodyText"> <div align="center">#rsPhoto.DISCRIPTION#</div> </div></td> </tr> </table> <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="pictscan"> <tr> <td width="120" align="center"><a href="#CurrentPage#?PageNum_rsPhoto=1#QueryString_rsPhoto#">First </a></td> <td width="120" align="center"><a href="#CurrentPage#?PageNum_rsPhoto=#Max(DecrementValue(PageNum_rsPhoto),1)##QueryString_rsPhoto#">Previous</a></td> <td width="120" align="center">#StartRow_rsPhoto# Of #rsPhoto.RecordCount#</td> <td width="120" align="center"><a href="#CurrentPage#? PageNum_rsPhoto=#Min(IncrementValue(PageNum_rsPhoto),TotalPages_rsPhoto)##QueryS tring_rsPhoto#">Next</a></td> <td width="120" align="center"><a href="#CurrentPage#?PageNum_rsPhoto=#TotalPages_rsPhoto##QueryString_rsPhoto#">Last</a></td> </tr> </table> <br /> </cfoutput> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="center">This site designed & maintained by <a href="mailto:jstickel56@gmail.com">Joseph Stickel</a></div></td> </tr> </table> </th> <td width="207" valign="top"><table width="200" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" id="sidebarHeader" class="sidebarHeader" align="center">Side notes and/or latest info</td> </tr> <tr> <td width="45"><img src="../assets/intheworks_spacer.gif" alt="" width="40" height="1" border="0" /></td> <td width="110" id="sidebar" class="smallText"> <p><img src="" alt="Picture place holder" name="picture" width="110" height="110" id="picture" style="background-color: #99CCFF" /><br /> Discription<br /> <a href="java script:;">read more ></a></p> <p><img src="" alt="Picture place holder" name="picture" width="110" height="110" id="picture2" style="background-color: #99CCFF" /><br /> Discription<br /> <a href="java script:;">read more ></a></p> <p> </p></td> <td width="45"> </td> </tr> <tr> <td> </td> <td id="sidebar2" class="smallText"> </td> <td> </td> </tr> </table></td> </tr> <tr> <td width="160"> </td> <td width="2"></td> <td width="152"> </td> <td width="87"> </td> <td width="413"> </td> <td width="48"> </td> <td width="196"> </td> <td width="207"> </td> </tr> </table> </html>
|