Ejemplo n.º 1
0
			</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>
			</tr>
			<tr>
				<td><?php 
echo emptySelect("pathFinderProjectId", "Project/Estimate");
?>
</td>
			</tr>
			<?php 
Ejemplo n.º 2
0
						break;
				}
			} catch(e) {
				alert("Internal Error: Please contact the administrator.");
			}
		},
		async:	true
	});
}
</script>
<div id='formDiv' class='table'>
	<img src="/mfi/img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
	<img src="/mfi/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
	<table class="listing form" cellpadding="0" cellspacing="0">
		<tr>
			<th colspan='4'>Supplier Information</th>
		</tr>
		<?php 
$flag = true;
//$vendorLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_VENDOR, createGenericNyroableAttributesSmall($supplierInfo['vendorId'],'vendor'));
$materials = mysql_query("SELECT * FROM suppliermaterial JOIN material USING (materialId) WHERE supplierId = '{$supplierId}'", $conexion);
while ($material = mysql_fetch_assoc($materials)) {
    $delImg = createActionIcon(IMG_DELETE, 'delete' . $supplierId . "-" . $material['materialId'], 'Delete Price', '../submit/deleteSupplierMaterial.php', 'supplier=' . $supplierId . '&material=' . $material['materialId'], 'delete', " width='22' height='22'");
    echo printRow($flag ? "" : "class='bg'", array($material['materialName'], decimalPad($material['supplierMaterialPrice']), to_MDY($material['supplierMaterialLastModified']), $delImg));
    $flag = !$flag;
}
echo printRow(" id='newPriceListItem' " . ($flag ? "" : "class='bg'"), array(arrayToSelect(materialsArray($conexion), '0', 'newPriceListMaterial', 'Material'), createInputText('newPriceListPrice', '', ''), '', createSimpleButton('saveNewPriceList', 'Submit')));
?>
	</table>
</div>
Ejemplo n.º 3
0
echo createCheckbox('c_itemDescription', 'Description', 'itemDescription', 'headerName="Number" varType="string"');
?>
<br/>
				</td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo arrayToSelect(customersArray($conexion), 0, 'customerId', 'Customer');
?>
</td>
				<td><?php 
echo arrayToSelect(vendorsArray($conexion), 0, 'vendorId', 'Vendor');
?>
</td>
				<td><?php 
echo arrayToSelect(materialsArray($conexion), 0, 'materialId', 'Material');
?>
</td>
				<td><?php 
echo createInputText('searchItemId', '', "size='6px'");
?>
</td>
			</tr>
			<tr>
				<td class='first'>Project:</td>
				<td class='first'>Supplier:</td>
				<td class='first'>Type:</td>
				<td><?php 
echo createSimpleButton('exportButton', 'Export');
?>
</td>