Esempio n. 1
0
			</tr>
			<tr>
				<td>Type:</td>
				<td>Customer/Project:</td>
				<td>Estimate Dumptime:</td>
				<td>Material:</td>
				<td>Load:</td>
				<td></td>
			</tr>
			<tr class='bg'>
				<td rowspan='2'><?php 
echo arrayToSelect(array("Projects", "Estimates"), 0, 'projectType', '', true);
?>
</td>
				<td><?php 
echo arrayToSelect(customersArray($conexion), 0, 'pathFinderCustomerId', 'Customer');
?>
</td>
				<td rowspan='2'><?php 
echo createInputText('additionalDumptime', '', "size='4px'");
?>
</td>
				<td rowspan='2'><?php 
echo arrayToSelect(materialsArray($conexion), "0", 'pathFinderMaterialId', 'Material', false);
?>
</td>
				<td rowspan='2'><input type="checkbox" id="byLoad" name="byLoad" /><label for="byLoad" >By Load</label></td>
				<td rowspan='2'><?php 
echo createSimpleButton('searchButton', 'Search', '');
?>
</td>
echo createCheckbox('c_checkDate', 'Date', 'customerSuperCheckDate', 'headerName="Date" varType="date"');
?>
<br/>
					<?php 
echo createCheckbox('c_checkCredit', 'Credit', 'checkCredit', 'headerName="Credit" varType="double"');
?>
<br/>
				</td>
			</tr>
			<tr class='bg'>
				<td> <?php 
echo createInputText('searchSuperCheckId', '', "size='10px'");
?>
</td>
				<td> <?php 
echo arrayToSelect(customersArray($conexion), 0, 'searchSuperCheckCustomer', 'Customer');
?>
</td>
				<td> <?php 
echo createInputText('searchSuperCheckNumber', '', "size='10px'");
?>
</td>
				<td></td>
			</tr>
			<tr>
				<td>After Date:</td>
				<td>Before Date:</td>
				<td></td>
				<td></td>
			</tr>
			<tr class='bg'>
	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>
Esempio n. 4
0
	dataArray['state'] = getVal('newEstimateAddressState');
	dataArray['zip'] = getVal('newEstimateAddressZip');
	dataArray['box'] = getVal('newEstimateAddressBox');
	
	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 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;
<div id="center-column">
	<div class="table">
		<table class="listing form" cellpadding="0" cellspacing="0">
			<tr>
				<th class="full" colspan="5">View Customer Balance</th>
			</tr>
			<tr>
				<td>Customer/Project:</td>
				<td>End date After Date:</td>
				<td>End date Before Date:</td>
				<td>Paid/Unpaid:</td>
				<td></td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo arrayToSelect(customersArray($conexion), 0, 'customerId', 'Customer');
?>
</td>
				<td rowspan='2'><?php 
echo createInputText('startDate', '', "size='10px'");
?>
</td>
				<td rowspan='2'><?php 
echo createInputText('endDate', '', "size='10px'");
?>
</td>
				<td rowspan='2'><?php 
echo arrayToSelect(array("0" => "All", "1" => "Paid", "2" => "Unpaid"), "0", 'paid', 'Payment', true);
?>
</td>
				<td rowspan='2'><?php 
Esempio n. 6
0
echo createSimpleButton('exportButton', 'Export');
?>
</td>
			</tr>
			<tr>
				<td class='first'>Customer:</td>
				<td class='first'>Contact:</td>
				<td class='first'></td>
				<td> <?php 
echo createSimpleButton('printButton', 'Print');
?>
</td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo arrayToSelect(customersArray($conexion), 0, 'searchProjectCustomer', 'Customer');
?>
</td>
				<td><?php 
echo emptySelect('searchProjectContact', 'Contact');
?>
</td>
				<td></td>
				<td> <?php 
echo createSimpleButton('searchButton', 'Search');
?>
</td>
			</tr>
		</table>
	</div>
	
Esempio n. 7
0
?>
<br/>
					<?php 
echo createCheckbox('c_reportId', 'Broker Invoice', 'reportId', 'headerName="Broker Invoice" varType="string"');
?>
<br/>
					<?php 
echo createCheckbox('c_supplierInvoceId', 'Supplier Invoice', 'supplierInvoiceId', 'headerName="Supplier Invoice" varType="string"');
?>
<br/>
				</td>
			</tr>
			<tr class='bg'>
				<td>
				<?php 
$customerArray = customersArray($conexion);
echo arrayToSelect($customerArray, 0, 'customerId', 'Customer');
?>
				</td>
				<td>
				<?php 
$brokerArray = brokersArray($conexion);
echo arrayToSelect($brokerArray, 0, 'brokerId', 'Broker');
?>
				</td>
				<td>
				<?php 
$vendorArray = vendorsArray($conexion);
echo arrayToSelect($vendorArray, 0, 'vendorId', 'Vendor');
?>
				</td>
Esempio n. 8
0
	<div class="table">
		<table class="listing form" cellpadding="0" cellspacing="0">
			<tr>
				<th colspan='7'>New Fuel Load</th>
			</tr>
			<tr>
				<td><strong>Customer/Project/Item:</strong></td>
				<td><strong>Broker/Truck/Driver:</strong></td>
				<td><strong>Date:</strong></td>
				<td><strong>MFI:</strong></td>
				<td><strong>Dump/Material:</strong></td>
				<td><strong>Amount/Broker Amount:</strong></td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo arrayToSelect(customersArray($conexion), '0', 'newTicketCustomer', "Customer", false, "tabindex='1'");
?>
</td>
				<td><?php 
echo arrayToSelect(brokersArray($conexion), '0', 'newTicketBroker', "Broker", false, "tabindex='4'");
?>
</td>
				<td><?php 
echo createInputText('newTicketDate', '', "size='6px' tabindex='7'");
?>
</td>
				<td><?php 
echo createInputText('newTicketMfi', '', "size='6px' tabindex='8'");
?>
</td>
				<td><?php 
Esempio n. 9
0
				alert("Internal Error: Please contact the administrator.");
			}
		},
		async:	true
	});
}
</script>
<div id="center-column">
	<div class="table">
		<table class="listing form" cellpadding="0" cellspacing="0">
			<tr>
				<th class="full" colspan="2">New Item</th>
			</tr>
			<?php 
$flag = true;
echo createFormRow('Customer', $flag ? 'class="bg"' : '', true, arrayToSelect(customersArray($conexion), $customer, 'newItemCustomerId', 'Customer'));
$flag = !$flag;
if ($customer == 0) {
    echo createFormRow('Project', $flag ? 'class="bg"' : '', true, emptySelect("newItemProjectId", "Project"));
} else {
    echo createFormRow('Project', $flag ? 'class="bg"' : '', true, arrayToSelect(projectsArray($conexion, $customer), $project, "newItemProjectId", "Project"));
}
$flag = !$flag;
echo createFormRow('Supplier', $flag ? 'class="bg"' : '', true, arrayToSelect(suppliersArray($conexion), $supplier, 'newItemSupplierId', 'Supplier'));
$flag = !$flag;
if ($supplier == 0) {
    echo createFormRow('Material', $flag ? 'class="bg"' : '', true, emptySelect("newItemMaterialId", "Material"));
} else {
    echo createFormRow('Material', $flag ? 'class="bg"' : '', true, arrayToSelect(materialBySupplierArray($conexion, $supplier), $material, "newItemMaterialId", "Material"));
}
$flag = !$flag;