$flag = !$flag; //parking address echo createFormRowTextField('Parking Address', 'editSupplierAddressLine1', $flag ? 'class="bg"' : '', false, "size='25px' value='" . $supplierInfo['addressLine1'] . "'"); $flag = !$flag; echo createFormRowTextField('Address Line 2', 'editSupplierAddressLine2', $flag ? 'class="bg"' : '', false, "size='25px' value='" . $supplierInfo['addressLine2'] . "'"); $flag = !$flag; echo createFormRowTextField('City', 'editSupplierAddressCity', $flag ? 'class="bg"' : '', false, "size='25px' value='" . $supplierInfo['addressCity'] . "'"); $flag = !$flag; //state echo createFormRow('State', $flag ? 'class="bg"' : '', false, createStateSelect($conexion, 'editSupplierAddressState', $supplierInfo['addressState'])); $flag = !$flag; echo createFormRowTextField('Zip', 'editSupplierAddressZip', $flag ? 'class="bg"' : '', false, "size='25px' value='" . $supplierInfo['addressZip'] . "'"); $flag = !$flag; echo createFormRowTextField('P.O.Box', 'editSupplierAddressBox', $flag ? 'class="bg"' : '', false, "size='25px' value='" . $supplierInfo['addressPOBox'] . "'"); $flag = !$flag; echo createFormRowTextField('Dumptime', 'editSupplierDumptime', $flag ? 'class="bg"' : '', false, "size=25px value='" . showPhoneNumber($supplierInfo['supplierDumptime']) . "'"); $flag = !$flag; echo createFormRow('Additional Information', $flag ? 'class="bg"' : '', false, createInputTextArea('editSupplierInfo', '', 'rows="3" cols="32"', $supplierInfo['supplierInformation'])); $flag = !$flag; ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitEditSupplierButton', 'Submit'); ?> </td> </tr> </table> </div>
echo createFormRow('State', $flag ? 'class="bg"' : '', false, createStateSelect($conexion, 'editDriverAddressState', $driverInfo['addressState'])); $flag = !$flag; echo createFormRowTextField('Zip', 'editDriverAddressZip', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $driverInfo['addressZip'] . "'"); $flag = !$flag; echo createFormRowTextField('P.O.Box', 'editDriverAddressBox', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $driverInfo['addressPOBox'] . "'"); $flag = !$flag; // echo createFormRow('Payment Terms', $flag ? 'class="bg"' : '', true, createTermSelect($conexion, 'editDriverTermId', $driverInfo['termId'])); $flag = !$flag; echo createFormRowTextField('Percentage', 'editDriverPercentage', $flag ? 'class="bg"' : '', true, "size='10px' value='" . $driverInfo['driverPercentage'] . "'"); $flag = !$flag; echo createFormRowTextField('Driver Start Date', 'editDriverStartDate', $flag ? 'class="bg"' : '', false, "size='10px' value='" . to_MDY($driverInfo['driverStartDate']) . "'"); $flag = !$flag; echo createFormRow('Gender', $flag ? 'class="bg"' : '', true, arrayToSelect(array("0" => "--Select Gender--", "male" => "Male", "female" => "Female"), $driverInfo['driverGender'], 'editDriverGender', 'Gender', true)); $flag = !$flag; echo createFormRow('Ethnicity', $flag ? 'class="bg"' : '', true, createEthnicitySelect($conexion, 'editDriverEthnicId', $driverInfo['ethnicId'])); $flag = !$flag; echo createFormRow('Class', $flag ? 'class="bg"' : '', true, arrayToSelect(array("--Select Class--", "Class 1", "Class 2", "Class 3", "Class 4"), $driverInfo['driverClass'], 'editDriverClass', 'Class', true)); $flag = !$flag; ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitEditDriverButton', 'Submit'); ?> </td> </tr> </table> </div>
echo createFormRowTextField('Parking Address', 'addressLine1', $flag ? 'class="bg"' : '', false, 'size=10px'); $flag = !$flag; echo createFormRowTextField('Address Line 2', 'addressLine2', $flag ? 'class="bg"' : '', false, 'size=10px'); $flag = !$flag; echo createFormRowTextField('City', 'addressCity', $flag ? 'class="bg"' : '', false, 'size=10px'); $flag = !$flag; //state echo createFormRow('State', $flag ? 'class="bg"' : '', false, createStateSelect($conexion, 'addressState')); $flag = !$flag; echo createFormRowTextField('Zip', 'addressZip', $flag ? 'class="bg"' : '', false, 'size=10px'); $flag = !$flag; echo createFormRowTextField('P.O.Box', 'addressBox', $flag ? 'class="bg"' : '', false, 'size=10px'); $flag = !$flag; echo createFormRow('Additional Information', $flag ? 'class="bg"' : '', false, createInputTextArea('truckInfo', '', 'rows="2" cols="43"')); $flag = !$flag; echo createFormRow('Feautres', $flag ? 'class="bg"' : '', false, featureArrayToCheckBoxes(objectArray($conexion, 'feature', 'featureName', 'featureId', 'featureName'), 5)); ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitButton', 'Submit'); ?> </td> </tr> </table> </div> </div> <?include_once '../news.php';?> </div>
</tr> <?php $flag = true; echo createFormRowTextField('Vendor Name', 'editVendorName', $flag ? 'class="bg"' : '', true, "size='14px' value='" . $vendorInfo['vendorName'] . "'"); $flag = !$flag; echo createFormRowTextField('Vendor Phone', 'editVendorTel', $flag ? 'class="bg"' : '', false, "size='14px' value='" . showPhoneNumber($vendorInfo['vendorTel']) . "'"); $flag = !$flag; echo createFormRowTextField('Vendor Fax', 'editVendorFax', $flag ? 'class="bg"' : '', false, "size='14px' value='" . showPhoneNumber($vendorInfo['vendorFax']) . "'"); $flag = !$flag; echo createFormRowTextField('Address', 'editVendorAddressLine1', $flag ? 'class="bg"' : '', false, "size='14px' value='" . $vendorInfo['addressLine1'] . "'"); $flag = !$flag; echo createFormRowTextField('Address Line 2', 'editVendorAddressLine2', $flag ? 'class="bg"' : '', false, "size='14px' value='" . $vendorInfo['addressLine2'] . "'"); $flag = !$flag; echo createFormRowTextField('City', 'editVendorAddressCity', $flag ? 'class="bg"' : '', false, "size='14px' value='" . $vendorInfo['addressCity'] . "'"); $flag = !$flag; echo createFormRow('State', $flag ? 'class="bg"' : '', false, createStateSelect($conexion, 'editVendorAddressState', $vendorInfo['addressState'])); $flag = !$flag; echo createFormRowTextField('Zip', 'editVendorAddressZip', $flag ? 'class="bg"' : '', false, "size='14px' value='" . $vendorInfo['addressZip'] . "'"); $flag = !$flag; echo createFormRowTextField('P.O.Box', 'editVendorAddressBox', $flag ? 'class="bg"' : '', false, "size='14px' value='" . $vendorInfo['addressPOBox'] . "'"); $flag = !$flag; ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitEditVendor', 'Submit'); ?> </td> </tr> </table>
dataArray['amount'] = getVal('newCustomerCheckAmount'); dataArray['date'] = evalDate(getVal('newCustomerCheckDate')); return arrayToDataString(dataArray); } </script> <div id="center-column"> <div class="table"> <table class="listing form" cellpadding="0" cellspacing="0"> <tr> <th class="full" colspan="2">New Customer Check</th> </tr> <?php $flag = true; echo createFormRow('Customer', $flag ? 'class="bg"' : '', true, arrayToSelect(customersArray($conexion), isset($_GET['customerId']) ? $_GET['customerId'] : 0, 'newCustomerCheckCustomer', 'Customer')); $flag = !$flag; echo createFormRowTextField('Number', 'newCustomerCheckNumber', $flag ? 'class="bg"' : '', true, 'size=10px'); $flag = !$flag; echo createFormRowTextField('Amount', 'newCustomerCheckAmount', $flag ? 'class="bg"' : '', true, 'size=10px'); $flag = !$flag; echo createFormRowTextField('Date', 'newCustomerCheckDate', $flag ? 'class="bg"' : '', true, 'size=10px'); $flag = !$flag; ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitNewCustomerSuperCheck', 'Submit'); ?> </td>
<tr> <th class="full" colspan="2">New Estimate</th> </tr> <?php $flag = true; echo createFormRow('Customer', $flag ? 'class="bg"' : '', true, arrayToSelect(customersArray($conexion), 0, 'newEstimateCustomer', 'Customer')); $flag = !$flag; echo createFormRowTextField("Name", 'newEstimateName', $flag ? 'class="bg"' : '', true, 'size=25px'); $flag = !$flag; echo createFormRowTextField('Address', 'newEstimateAddressLine1', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRowTextField('Address Line 2', 'newEstimateAddressLine2', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRowTextField('City', 'newEstimateAddressCity', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRow('State', $flag ? 'class="bg"' : '', false, createStateSelect($conexion, 'newEstimateAddressState')); $flag = !$flag; echo createFormRowTextField('Zip', 'newEstimateAddressZip', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRowTextField('P.O.Box', 'newEstimateAddressBox', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitNewEstimateButton', 'Submit'); ?> </td> </tr> </table>
echo createFormRowTextField('Tel', 'newVendorTel', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRowTextField('Fax', 'newVendorFax', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRowTextField('Address', 'newVendorAddressLine1', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRowTextField('Address Line 2', 'newVendorAddressLine2', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRowTextField('City', 'newVendorAddressCity', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRow('State', $flag ? 'class="bg"' : '', false, createStateSelect($conexion, 'newVendorAddressState')); $flag = !$flag; echo createFormRowTextField('Zip', 'newVendorAddressZip', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRowTextField('P.O.Box', 'newVendorAddressBox', $flag ? 'class="bg"' : '', false, 'size=25px'); $flag = !$flag; echo createFormRow('Additional Information', $flag ? 'class="bg"' : '', false, createInputTextArea('newVendorInfo', '', 'rows="3" cols="32"')); $flag = !$flag; ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitNewVendorButton', 'Submit'); ?> </td> </tr> </table> </div> </div>
function createFormRowTextField($fieldName, $id, $class = '', $strict = false, $attributes = '') { return createFormRow($fieldName, $class, $strict, createInputText($id, $id, $attributes)); //return "<tr $class><td class='first'><strong>$fieldName</strong>".($strict?'<span style="color:red;">*</span>':"")."</td><td class='last'>".createInputText($id, $id, $attributes)."</td></tr>"; }
} else { echo createFormRow('Material', $flag ? 'class="bg"' : '', true, arrayToSelect(materialBySupplierArray($conexion, $supplier), $material, "newItemMaterialId", "Material")); } $flag = !$flag; echo createFormRowTextField("From <img id='newItemReverse' src='/trucking/img/48.png' width='18px'/>", 'newItemFromDisplay', $flag ? 'class="bg"' : '', false, "size=25px value=\"{$displayFrom}\""); $flag = !$flag; echo createFormRowTextField('To', 'newItemToDisplay', $flag ? 'class="bg"' : '', false, "size=25px value=\"{$displayTo}\""); $flag = !$flag; echo createFormRowTextField('Material Price', 'newItemMaterialPrice', $flag ? 'class="bg"' : '', true, "size=10px value=\"{$materialPrice}\""); $flag = !$flag; echo createFormRowTextField('Broker Cost', 'newItemBrokerCost', $flag ? 'class="bg"' : '', true, 'size=10px'); $flag = !$flag; echo createFormRowTextField('Customer Cost', 'newItemCustomerCost', $flag ? 'class="bg"' : '', true, 'size=10px'); $flag = !$flag; echo createFormRow('Type', $flag ? 'class="bg"' : '', true, arrayToRadio(array("Loads", "Tons", "hours"), "0", "newItemType", "")); $flag = !$flag; echo createFormRow('Description', $flag ? 'class="bg"' : '', false, createInputTextArea('newItemDescription', '', 'rows="2" cols="43"')); $flag = !$flag; ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitNewItem', 'Submit'); ?> </td> </tr> </table> </div> </div>
echo createFormRowTextField('Tire Size', 'editTruckTireSize', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['truckTireSize'] . "'"); $flag = !$flag; //parking address echo createFormRowTextField('Parking Address', 'editTruckAddressLine1', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['addressLine1'] . "'"); $flag = !$flag; echo createFormRowTextField('Address Line 2', 'editTruckAddressLine2', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['addressLine2'] . "'"); $flag = !$flag; echo createFormRowTextField('City', 'editTruckAddressCity', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['addressCity'] . "'"); $flag = !$flag; //state echo createFormRow('State', $flag ? 'class="bg"' : '', false, createStateSelect($conexion, 'editTruckAddressState', $truckInfo['addressState'])); $flag = !$flag; echo createFormRowTextField('Zip', 'editTruckAddressZip', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['addressZip'] . "'"); $flag = !$flag; echo createFormRowTextField('P.O.Box', 'editTruckAddressBox', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['addressPOBox'] . "'"); $flag = !$flag; echo createFormRow('Additional Information', $flag ? 'class="bg"' : '', false, createInputTextArea('editTruckInfo', '', 'rows="2" cols="43"', $truckInfo['truckInfo'])); $flag = !$flag; echo createFormRow('Features', $flag ? 'class="bg"' : '', false, featureArrayToCheckBoxes(objectArray($conexion, 'feature', 'featureName', 'featureId', 'featureName'), 5, getTruckCheckedFeatures($conexion, $truckId))); ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitEditTruckButton', 'Submit'); ?> </td> </tr> </table> </div>
$flag = !$flag; echo createFormRowTextField('WC Expiration Date', 'editBrokerWcExpire', $flag ? 'class="bg"' : '', true, "size='14px' value='" . to_MDY($brokerInfo['brokerWcExpire']) . "'"); $flag = !$flag; echo createFormRowTextField('Automovile Liability', 'editBrokerInsLiability', $flag ? 'class="bg"' : '', true, "size='14px' value='" . $brokerInfo['brokerInsuranceLiability'] . "'"); $flag = !$flag; echo createFormRowTextField('Expiration Date', 'editBrokerLbExpire', $flag ? 'class="bg"' : '', true, "size='14px' value='" . to_MDY($brokerInfo['brokerLbExpire']) . "'"); $flag = !$flag; echo createFormRowTextField('General Liability', 'editBrokerGeneralLiability', $flag ? 'class="bg"' : '', false, "size='14px' value='" . $brokerInfo['brokerGeneralLiability'] . "'"); $flag = !$flag; echo createFormRowTextField('Expiration Date', 'editBrokerGlExp', $flag ? 'class="bg"' : '', false, "size='14px' value='" . to_MDY($brokerInfo['brokerGlExp']) . "'"); $flag = !$flag; echo createFormRowTextField('Percentage', 'editBrokerPercentage', $flag ? 'class="bg"' : '', false, "size='14px' value='" . $brokerInfo['brokerPercentage'] . "'"); $flag = !$flag; echo createFormRowTextField('Broker Start Date', 'editBrokerStartDate', $flag ? 'class="bg"' : '', false, "size='14px' value='" . to_MDY($brokerInfo['brokerStartDate']) . "'"); $flag = !$flag; echo createFormRow('Gender', $flag ? 'class="bg"' : '', true, arrayToSelect(array("0" => "Select Gender", "male" => "Male", "female" => "Female"), $brokerInfo['brokerGender'], 'editBrokerGender', 'Gender', true)); $flag = !$flag; echo createFormRow('Ethnicity', $flag ? 'class="bg"' : '', true, createEthnicitySelect($conexion, 'editBrokerEthnicId', $brokerInfo['ethnicId'])); $flag = !$flag; ?> </table> <table> <tr> <td><?php echo createSimpleButton('submitButton', 'Submit'); ?> </td> </tr> </table> </div>