Advertisement
Advertisement
| 02.12.2008 at 10:15PM PST, ID: 23158822 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
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: |
<?php require_once('Connections/FlowerGallery.php'); ?>
<?php
// Load the tNG classes
require_once('includes/tng/tNG.inc.php');
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_FlowerGallery, $FlowerGallery);
$query_getimages = "SELECT * FROM image_img";
$getimages = mysql_query($query_getimages, $FlowerGallery) or die(mysql_error());
$row_getimages = mysql_fetch_assoc($getimages);
$totalRows_getimages = mysql_num_rows($getimages);
mysql_select_db($database_FlowerGallery, $FlowerGallery);
$query_rsGetColor = "SELECT DISTINCT image_img.color_id FROM image_img ORDER BY image_img.color_id ASC";
$rsGetColor = mysql_query($query_rsGetColor, $FlowerGallery) or die(mysql_error());
$row_rsGetColor = mysql_fetch_assoc($rsGetColor);
$totalRows_rsGetColor = mysql_num_rows($rsGetColor);
mysql_select_db($database_FlowerGallery, $FlowerGallery);
$query_rsGetSeasons = "SELECT DISTINCT image_img.season FROM image_img ORDER BY image_img.season ASC";
$rsGetSeasons = mysql_query($query_rsGetSeasons, $FlowerGallery) or die(mysql_error());
$row_rsGetSeasons = mysql_fetch_assoc($rsGetSeasons);
$totalRows_rsGetSeasons = mysql_num_rows($rsGetSeasons);
// Show Dynamic Thumbnail
$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");
$objDynamicThumb1->setFolder("flowers/");
$objDynamicThumb1->setRenameRule("{getimages.filename_img}");
$objDynamicThumb1->setResize(150, 150, true);
$objDynamicThumb1->setWatermark(false);
// Show Dynamic Thumbnail
$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");
$objDynamicThumb1->setFolder("flowers/");
$objDynamicThumb1->setRenameRule("{getimages.filename_img}");
$objDynamicThumb1->setResize(50, 50, true);
$objDynamicThumb1->setWatermark(false);
?><!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">
<link href="nav.css" rel="stylesheet" type="text/css" />
<link href="main.css" rel="stylesheet" type="text/css" />
<link href="form.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="gallery.js"></script>
<div id="mainContent">
<div id="formWrap">
<div id="title">
<h3 align="left"> <img src="images/welcomeImg.jpg" width="225" height="160" /></h3>
<h3 align="left">Welcome</h3>
<p><img src="images/gallery.jpg" width="241" height="14" /></p>
<div id="mainpic"></div>
<p> <img src="<?php echo tNG_showDynamicImage("", "flowers/", "{getimages.filename_img}");?>" /><br />
<?php echo $row_getimages['description_img']; ?></p>
</div><div id="thumbs">
<form id="form1" name="form1" method="post" action="gallery.php">
<p>Select a Color
<select name="color" id="color">
<?php
do {
?>
<option value="<?php echo $row_rsGetColor['color_id']?>"><?php echo $row_rsGetColor['color_id']?></option>
<?php
} while ($row_rsGetColor = mysql_fetch_assoc($rsGetColor));
$rows = mysql_num_rows($rsGetColor);
if($rows > 0) {
mysql_data_seek($rsGetColor, 0);
$row_rsGetColor = mysql_fetch_assoc($rsGetColor);
}
?>
</select>
<input type="submit" name="submit_color" id="submit_color" value="Submit" />
</p>
<p>Select a Season
<select name="season" id="season">
<?php
do {
?>
<option value="<?php echo $row_rsGetSeasons['season']?>"><?php echo $row_rsGetSeasons['season']?></option>
<?php
} while ($row_rsGetSeasons = mysql_fetch_assoc($rsGetSeasons));
$rows = mysql_num_rows($rsGetSeasons);
if($rows > 0) {
mysql_data_seek($rsGetSeasons, 0);
$row_rsGetSeasons = mysql_fetch_assoc($rsGetSeasons);
}
?>
</select>
<input type="submit" name="submit_season" id="submit_season" value="Submit" />
</p>
</form>
<table border="0" align="center">
<tr>
<?php
do { // horizontal looper version 3
?>
<td><a href="flowers/<?php echo $row_getimages['filename_img']; ?>"onclick="showImage(this);return false;"><img src="<?php echo $objDynamicThumb1->Execute(); ?>" border="0" /></a></td>
<?php
$row_getimages = mysql_fetch_assoc($getimages);
if (!isset($nested_getimages)) {
$nested_getimages= 1;
}
if (isset($row_getimages) && is_array($row_getimages) && $nested_getimages++ % 4==0) {
echo "</tr><tr>";
}
} while ($row_getimages); //end horizontal looper version 3
?>
</tr>
</table>
</div>
</div>
<?php
mysql_free_result($getimages);
mysql_free_result($rsGetColor);
mysql_free_result($rsGetSeasons);
?>
|