Advertisement
Advertisement
| 10.06.2008 at 04:55AM PDT, ID: 23790098 |
|
[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: |
/* From the Main File */
<tr>
<td height="23" valign="middle" style="border-bottom:1px solid #cccccc">
<p><strong>Group: </strong></p>
<p> </p>
</td>
<td height="23" style="border-bottom:1px solid #cccccc">
<div class="style5" id="GrpSpot" >
<select name="GroupDropdown" size="1" style="font:8pt verdana" onChange="ShowBACEType(frmBACEStk.GroupDropdown.options.value);">
<!-- Line 130 Maybe -->
<!-- <select name="GroupDropdown" size="1" style="font:8pt verdana" onChange="htmlData('BACETypeQry.php', 'firstlvl=' + document.getElementById('CategoryDropdown').value + ' secondlvl=' + document.getElementById('GroupDropdown').value);"> -->
<!-- Line 132 Maybe -->
<option>Choose a Group...</option>
</select>
</div>
/* -------- From the JS Code File -----------*/
function ShowBACEType(Grppicked, Catpicked) { // Shows the pictures in that category.
//Need this to bridge to selecting from the database.
alert (" In ShowBACEType ");
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null) {
alert ("Browser does not support HTTP Request");
return;
}
var url="BACETypeQry.php"
url=url+"?q="+escape(Catpicked)+"&r="+escape(Grppicked);
url=url+"&sid="+Math.random();
//alert ("ShowBACEType url = " + url);
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
/*----------- The PHP query File -------------*/
<?php
require_once('Connections/BACEMySQL.php');
ini_set('display_errors', 1);
error_reporting(E_ALL);// List of Pictures-Stock Designs
mysqli_select_db($BACEMySQL, $database_BACEMySQL);
if ( ! $BACEMySQL) {
die( "Couldn't connect to MySQL: ".mysql.error() );
}
$q=$_GET["q"];
$r=$_GET["r"];
if ( $r == "0") {
$qryALL = "*";
} else {
$qryALL = $r;
}
//$query_rsBACEstkType = "SELECT sku, typepicture, stkdestitle, stkCategory, stkGroup, stkType, stkdesComment FROM stkdesigntypes WHERE stkCategory = $_REQUEST[firstlvl] AND stkGroup = $qryALL";
$query_rsBACEstkType = "SELECT sku, typepicture, stkdestitle, stkCategory, stkGroup, stkType, stkdesComment FROM stkdesigntypes WHERE stkCategoryIndex = '".$r."' AND stkGrpIndex = '".$qryALL."'";
$rsBACEstkType = mysqli_query($BACEMySQL, $query_rsBACEstkType ) or die(mysql_error());
$totalRows_rsBACEstkType = mysqli_num_rows($rsBACEstkType);
if($totalRows_rsBACEstkType > 0):
// if($result = mysql_query($query))
{
if($success = mysqli_num_rows($rsBACEstkType) > 0)
{
//echo "<select name='selBACEStkDes' onchange='submitForm();'>\n";
echo("<select name=\"selBACEStkDes\" onchange=\"ShowBACEPic(frmBACEStk.selBACEStkDes.options.selectedIndex);\">");
//echo "<option>-- Please select --</option>\n";
//Now fill the Select box with data
while ($row_rsBACEstkType = mysqli_fetch_assoc($rsBACEstkType)) {
// while ($row = mysql_fetch_array($result))
{
$SDsku = $row_rsBACEstkType['sku'];
$SDpicfile = $row_rsBACEstkType['typepicture'];
$SDTitle = $row_rsBACEstkType['stkdestitle'];
$SDstkCat = $row_rsBACEstkType['stkCategory'];
$SDstkGrp = $row_rsBACEstkType['stkGroup'];
$SDstktype = $row_rsBACEstkType['stkType'];
$SDstkcommnt = $row_rsBACEstkType['stkdesComment'];
// $Customername = $row['Customername'];
$type = $row['type'];
echo("<option value=\"$SDpicfile\">$SDTitle</option>");
MainArray[MainVar++] = new Fix($SDsku, $SDpicfile, $SDTitle, $SDstkCat, $SDstkGrp, $SDstktype, $SDstkcommnt)
}
echo("</select>";
}
elseif($debug)
{
die("retrieveQueryType(): No rows returned by query");
}
}
else
{
$success = FALSE;
if($debug)
{
die("retrieveQueryType(): query failed - ".mysql_error());
}
}
// return($success);
}
?>
/*--------------- The AJAX functions file -----------*/
function GetXmlHttpObject(handler)
{
var objXMLHttp=null;
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}
function stateChanged()
{
alert ( " IN stateChanged ");
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
<!-- document.getElementById("txtResult").innerHTML= xmlHttp.responseText; -->
<!--document.getElementById("typeList").innerHTML= xmlHttp.responseText; -->
document.getElementById("PicSpot").innerHTML= xmlHttp.responseText;
}
else {
//alert(xmlHttp.status);
}
}
/*--------------End ---------------------------*/
|