Advertisement
| Hall of Fame |
|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[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: |
0) { //echo "ECHO
"; for ($idx=0;$idx<$depth;$idx++){ $padding .=" "; } $depth++; if ($change_color) $tr_bgcolor = "#EFEFEF"; else $tr_bgcolor = "#FFFFFF"; while($db_rs = mysql_fetch_array($dbresult)) { //$ret_val .="\n"; $ret_val .=" \n"; for ($idx=0;$idx<=$dbrcount;$idx++) { if ($idx==$db_rs["rank"]) $isSelected = 'selected'; else $isSelected = ' '; $ret_val .="".$idx."\n"; } $ret_val .=" ".$db_rs["name"]."\n"; $ret_val .="\n"; $ret_val .=" \n"; //echo "is_general *".$db_rs["is_general"]."*
"; if ($db_rs["is_general"]=="true") { $tmp_axn = "false"; $prefix = ""; $alt_txt = "\ UNSET this field as a GENERAL SPECIFICATION"; } else { $tmp_axn = "true"; $prefix = "un"; $alt_txt = "\ SET this field as a GENERAL SPECIFICATION"; } $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .=" \n"; $ret_val .="
\n"; //$ret_val .=" \n"; //if ($parent_id!=$db_rs["id"]) //$depth++; $ret_val .= recurse_prod_fields_cms($db_rs["id"], $sModule, $depth, !$change_color, $highlight_color, $select_color); } } return $ret_val; } //********************************************* RECURSE PRODUCT FIELDS == FOR MAIN PAGE function recurse_prod_fields_pub($parent_id,$script_name, $depth) { $db_sql = "SELECT * FROM tshopcart_catalogfields where rank<>0 and parent=".$parent_id." order by rank"; $dbresult = mysql_query($db_sql); $dbrcount = mysql_num_rows($dbresult); //echo "*$dbrcount*"; //die(); //********************************************* RECURSE RECORDS if ($dbrcount>0) { for ($idx=0;$idx<$depth;$idx++){ $padding .=" "; } $depth++; while($db_rs = mysql_fetch_array($dbresult)) { $ret_val .= "\n"; $ret_val .= "".$padding."".$db_rs["name"]."\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= recurse_prod_fields_pub($db_rs["id"],$script_name, $depth); } } return $ret_val; } //********************************************* RECURSE CATEGORIES == FOR CMS function recurse_categories_cms($parent_id,$sModule, $depth, $change_color, $highlight_color, $select_color) { $db_sql = "SELECT * FROM tshopcart_categories where parent=".$parent_id." order by rank"; $dbresult = mysql_query($db_sql); $dbrcount = mysql_num_rows($dbresult); //echo "db_sql *$db_sql*
"; //echo "dbrcount *$dbrcount*
"; //********************************************* RECURSE RECORDS if ($dbrcount>0) { //echo "ECHO
"; for ($idx=0;$idx<$depth;$idx++){ $padding .=" "; } $depth++; if ($change_color) $tr_bgcolor = "#EFEFEF"; else $tr_bgcolor = "#FFFFFF"; while($db_rs = mysql_fetch_array($dbresult)) { $ret_val .="\n"; for ($idx=0;$idx<=$dbrcount;$idx++) { if ($idx==$db_rs["rank"]) $isSelected = 'selected'; else $isSelected = ' '; $ret_val .="".$idx."\n"; } $ret_val .=" ".$db_rs["name"]."\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; //if ($parent_id!=$db_rs["id"]) //$depth++; $ret_val .= recurse_categories_cms($db_rs["id"], $sModule, $depth, !$change_color, $highlight_color, $select_color); } } return $ret_val; } //********************************************* RECURSE CATEGORIES == FOR MAIN PAGE function recurse_categories_pub($parent_id,$script_name, $depth) { $db_sql = "SELECT * FROM tshopcart_categories where rank<>0 and parent=".$parent_id." order by rank"; $dbresult = mysql_query($db_sql); $dbrcount = mysql_num_rows($dbresult); //echo "*$dbrcount*"; //die(); //********************************************* RECURSE RECORDS if ($dbrcount>0) { for ($idx=0;$idx<$depth;$idx++){ $padding .=" "; } $depth++; while($db_rs = mysql_fetch_array($dbresult)) { $ret_val .= "\n"; $ret_val .= "".$padding."".$db_rs["name"]."\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= recurse_categories_pub($db_rs["id"],$script_name, $depth); } } return $ret_val; } //********************************************* RECURSE RECORDS == FOR CMS function recurse_aboutus_cms($parent_id,$sModule, $depth, $change_color, $highlight_color, $select_color) { $db_sql = "SELECT * FROM taboutus where parent=".$parent_id." order by rank"; $dbresult = mysql_query($db_sql); $dbrcount = mysql_num_rows($dbresult); //echo "db_sql
|