break; case "add_unit_make": $ignore_return = addUnitMake ($_GET['unit'],$_GET['make_id']); header("Location: system_editor_unit_makes.php?rd=".urlencode($_GET['rd'])."&unit=".$_GET['unit']); exit(0); break; case "remove_unit_make": $ignore_return = removeUnitMake ($_GET['unit'],$_GET['make_id']); header("Location: system_editor_unit_makes.php?rd=".urlencode($_GET['rd'])."&unit=".$_GET['unit']); exit(0); break; case "component_edit": if ($_GET["component_id"] == "0") { //should force entry of driveline_series and steel_driveshaft_tube_od if (strlen($_GET["driveline_series"]) < 1 || strlen($_GET["steel_driveshaft_tube_od"]) < 1) { f_OutputErrorNow("Driveline Series and Steel Driveshaft Tube OD are required"); } $ignore_return = insertPtsComponent($_GET); } else { $ignore_return = updateComponent($_GET); } break; case "unit_component_indent": $ignore_return = setComponentIndent($_GET['component_id'],$_GET['indent']); break; case "edit_assembly_name": $ignore_return = updateAssemblyName($_GET['assembly_id'],$_GET['assembly_name']); break; case "assembly_delete": $ignore_return = deleteAssembly($_GET['assembly_id']); break;
//dont need this data } elseif ($intCounter > $end_position) { //dont need this data } else { //in range so store that data for($i = 0;$i <= $intNumColumns;$i++){ $arrTableData[$i][$intCounter] = $row[$i]; //echo "arrTableData[" . $i . "][" . $intCounter . "]=" . $arrTableData[$i][$intCounter] . "<BR>"; } //echo "<BR>"; } } } Else { $strErrorMessage = "Table not found or table is empty."; f_OutputErrorNow ($strErrorMessage); //terminates page } //E-----Get table contents //echo "intIdOrdinal=" & $intIdOrdinal & "<BR>"; //echo "intDisplayOrdinal=" & $intDisplayOrdinal & "<BR>"; ?> <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"> <TITLE><?php echo $strTableName; ?> Table Contents</TITLE>
$strBodyHeader = ""; $strBodyFooter = ""; //$strBodyHeader = "<HTML><BODY BGCOLOR=#FFFFFF>" . $company_name . "<BR>" . date ("Y-m-d H:i:s") . "<BR>Changes made to " . $page_used . ":<BR>\n<TABLE BGCOLOR=#CCCCCC><TR><TD align=center bgcolor=#BBBBBB><B>Field Name</B></TD><TD align=center bgcolor=#BBBBBB><B>New</B></TD><TD align=center bgcolor=#BBBBBB><B>Old</B></TD></TR>"; //$strBodyFooter = "</TABLE></BODY></HTML>"; $strSubject = "North Real Estate Error"; $strBodyMain = "The " . $arrTableData[$x][0] . " field is of and Unknown type on property_edit_exe.php in the North Real Estate Project."; mail($strTo, $strSubject, ($strBodyHeader . $strBodyMain . $strBodyFooter),$strHeaders); break; } } //Output any errors if ($strErrorMessage != "") { f_OutputErrorNow ($strErrorMessage); } //E-----Get the input //DEBUG // for ($x = 0;$x <= $TableEdit_intNumColumns;$x++) { // echo "arrTableData(" . $x . ",0)=" . $arrTableData[$x][0] . "<BR>"; // echo "arrTableData(" . $x . ",1)=" . $arrTableData[$x][1] . "<BR>"; // echo "arrTableData(" . $x . ",2)=" . $arrTableData[$x][2] . "<BR>"; // echo "arrTableData(" . $x . ",3)=" . $arrTableData[$x][3] . "<BR>"; // echo "arrTableData(" . $x . ",4)=" . $arrTableData[$x][4] . "<BR><BR>"; // } //S-----Create the SQL for updating or inserting