/* Add the operations list for the first row with a column span of size $frmPartElementCount */ /* A list of operations that have been added for this part */ if ($idx == 0) { print("\t<td>"); print("Operations added:<br>"); print("\t</td>"); } if ($idx == 1) { print("\t<td valign=\"top\" rowspan=\"$frmPartElementCount\">"); print("<select id = \"operationList\" size = \"$frmPartElementCount\" style=\"width:250\">\n"); print("</select>"); print("<br>"); writeButton("addOperation", "Create Operation", "javascript:showAddOperation();"); writeButton("addOperation", "Delete Operation", "javascript:deleteSelectedOperation();"); print("\t</td>"); } print("\t</tr>\n"); } /* A hidden textbox to store the Operations for posting */ writeTextBox("operationStore", ""); writeTextBox("customerStore", ""); writeTextBox("operationDeleteList", ""); print("</table>\n"); writeSubmit("addPart", "Add part"); print("</form>\n"); print("</div>\n"); ?>
print("<table border=\"$mainTableBorder\" width = \"$frmSupplierTableWidth\">\n"); } else { print("<table border=\"$mainTableBorder\" width = \"$masterTableWidth\">\n"); } for ($idx = 0; $idx < $frmSupplierElementCount; $idx++) { print("\t<tr width = \"$supplierTableRowWidth\">\n"); print("\t<td width = $supplierTableColWidth>"); print("$frmSupplierElementText[$idx]"); print("\t</td>\n"); print("\t<td width = \"$supplierTableColWidth\">"); $fieldName = $frmSupplierElementNames[$idx]; $fieldType = $frmSupplierElementTypes[$idx]; $fieldValue = ""; writeTextBox($fieldName, $fieldValue); print("\t</td>"); print("\t</tr>\n"); } print("\t<tr>\n"); print("\t<td>"); writeSubmit("addSupplier", "Add Supplier"); print("\t</td>"); print("\t</tr>\n"); print("</table>\n"); print("</form>\n"); print("</div>\n"); ?>
for ($paramIdx = 0; $paramIdx < $numParams; $paramIdx++) { if ($paramIdx == 0) { print("<td class = \"toolUsagePartNumber\">\n"); } else { print("<td>\n"); } if ($paramIdx == 1) { $name = $toolUsageRows[$idx][0] . $inStoreSuffix; writeTextBox($name, $toolUsageRows[$idx][$paramIdx]); } else if ($paramIdx == 2) { $name = $toolUsageRows[$idx][0] . $inUseSuffix; writeTextBox($name, $toolUsageRows[$idx][$paramIdx]); } else { print($toolUsageRows[$idx][$paramIdx]); } print("</td>\n"); } print("</tr>"); print("\n"); } print("</table>\n"); print("<p>"); writeSubmit("updateAll", "Update/Commit changes"); print("</p>"); writeHidden("toolUpdateStore", ""); print("</form>\n"); print("</div>\n"); ?>
} if ($idx == 1) { print("\t<td valign=\"top\" rowspan=\"$frmToolElementCount\">"); writeSelectAndAdd("insertSelect", $insertPartNumbers, 250, "createInsert", "Create Insert", "javascript:showAddInsert();"); writeButton("addInsert", "Add Insert", "javascript:addInsertToList();"); print("<select id = \"insertList\" size = \"$frmToolElementCount\" style=\"width:250\">\n"); print("</select>"); print("<br>"); print("\t</td>"); } print("\t</td>"); print("\t</tr>\n"); } print("\t<tr>\n"); print("\t<td>"); writeSubmit("addTool", "Insert Tool"); /* A hidden textbox to store the tools for posting */ print("\t<input type = \"hidden\" id = \"insertStore\" name = \"insertStore\" />\n"); print("\t<input type = \"hidden\" id = \"insertsForToolStore\" name = \"insertsForToolStore\" />\n"); print("\t<input type = \"hidden\" id = \"supplierStore\" name = \"supplierStore\" />\n"); print("\t</td>"); print("\t</tr>\n"); print("</table>\n"); print("</form>\n"); print("</div>\n"); ?>