Exemple #1
0
include_once '../nyro_header.php';
$itemId = $_GET['proposalId'];
$itemInfo = objectQuery($conexion, $itemExtendedSelect, 'fakeitem JOIN fakeproject USING (fakeprojectId) JOIN supplier USING (supplierId) JOIN vendor USINg (vendorId) JOIN material USING (materialId)', 'fakeitemId = ' . $itemId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
/*echo createEditIcon('editTruck','../nyros/editTruck.php',"truckId=$truckId", "Truck");*/
?>
	<?php 
echo createDeleteIcon('deleteProposal', '../submit/deleteProposal.php', "proposalId={$itemId}", "Proposal");
?>
</div>
<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='2'>Item Information</th>
		</tr>
		<?php 
$flag = true;
$estimateLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_ESTIMATE, createGenericNyroableAttributesSmall($itemInfo['fakeprojectId'], 'estimate'));
$customerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_CUSTOMER, createGenericNyroableAttributesSmall($itemInfo['customerId'], 'customer'));
$supplierLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_SUPPLIER, createGenericNyroableAttributesSmall($itemInfo['supplierId'], 'supplier'));
$vendorLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_VENDOR, createGenericNyroableAttributesSmall($itemInfo['vendorId'], 'vendor'));
Exemple #2
0
$estimateInfo = objectQuery($conexion, '*', $estimateExtendedTables, 'fakeprojectId = ' . $estimateId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
echo createActionIcon(IMG_NEW_ITEM_PROPOSAL, 'addProposal', 'Add Proposal', '../nyros/newProposal.php', "estimateId=" . $estimateId . "&customerId=" . $estimateInfo['customerId'], 'show');
?>
	<?php 
/*echo createEditIcon('editProject','../nyros/editProject.php',"projectId=$projectId", "Project");*/
?>
	<?php 
echo createDeleteIcon('deleteProject', '../submit/deleteEstimate.php', "estimateId={$estimateId}", "Estimate");
?>
</div>
<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='2'>Estimate Information</th>
		</tr>
		<?php 
$flag = true;
$customerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_CUSTOMER, createGenericNyroableAttributesSmall($estimateInfo['customerId'], 'customer'));
echo printTuple($flag ? '' : "class='bg'", 'Customer', $estimateInfo['customerId'] . " " . $estimateInfo['customerName'], $customerLink);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Estimate ID', $estimateInfo['fakeprojectId']);
Exemple #3
0
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
echo createActionIcon(IMG_NEW_ITEM_PROPOSAL, 'addItemProposal', 'Add Item Proposal', '../nyros/newItemProposal.php', "projectId=" . $projectId . "&customerId=" . $projectInfo['customerId'], 'show');
?>
	<?php 
echo createActionIcon(IMG_NEW_ITEM, 'addItem', 'Add Item', '../nyros/newItem.php', "projectId=" . $projectId . "&customerId=" . $projectInfo['customerId'], 'show');
?>
	<?php 
echo createEditIcon('editProject', '../nyros/editProject.php', "projectId={$projectId}", "Project");
?>
	<?php 
echo createDeleteIcon('deleteProject', '../submit/deleteProject.php', "projectId={$projectId}", "Project");
?>
</div>
<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='2'>Project Information</th>
		</tr>
		<?php 
$flag = true;
$customerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_CUSTOMER, createGenericNyroableAttributesSmall($projectInfo['customerId'], 'customer'));
echo printTuple($flag ? '' : "class='bg'", 'Project Id', $projectInfo['projectId']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Project Name', $projectInfo['projectName']);
Exemple #4
0
include_once '../nyro_header.php';
$vendorId = $_GET['vendorId'];
$vendorInfo = objectQuery($conexion, '*', $vendorExtendedTables, 'vendorId = ' . $vendorId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
echo createEditIcon('editVendor', '../nyros/editVendor.php', "vendorId={$vendorId}", "Vendor");
?>
	<?php 
echo createDeleteIcon('deleteVendor', '../submit/deleteVendor.php', "vendorId={$vendorId}", "Vendor");
?>
</div>
<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='2'>Vendor Information</th>
		</tr>
		<?php 
$flag = true;
echo printTuple($flag ? '' : "class='bg'", 'Vendor Name', $vendorInfo['vendorName']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Vendor Information', $vendorInfo['vendorInfo']);
$flag = !$flag;
include_once '../nyro_header.php';
$customerSuperCheckId = $_GET['customerSuperCheckId'];
$customerSuperCheckInfo = objectQuery($conexion, "*, COALESCE(customerCreditAmount, '0') as checkCredit", 'customer_super_check JOIN customer USING (customerId) LEFT JOIN customer_credit USING (customerSuperCheckId)', 'customerSuperCheckId = ' . $customerSuperCheckId);
$payments = mysql_query("SELECT * FROM receiptcheques WHERE customerSuperCheckId = '{$customerSuperCheckId}' ORDER BY invoiceId desc", $conexion);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
/*echo createEditIcon('editSupplier','../nyros/editCustomerSuperCheck.php',"customerSuperCheckId=$customerSuperCheckId", "Supplier");*/
?>
	<?php 
echo createDeleteIcon('deleteSupplier', '../submit/deleteCustomerSuperCheck.php', "customerSuperCheckId={$customerSuperCheckId}", "Supplier");
?>
</div>
<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='2'>Customer Check Information</th>
		</tr>
		<?php 
$flag = true;
$customerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_VENDOR, createGenericNyroableAttributesSmall($customerSuperCheckInfo['customerId'], 'customer'));
echo printTuple($flag ? '' : "class='bg'", 'Customer', $customerSuperCheckInfo['customerName'], $customerLink);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Check Number', $customerSuperCheckInfo['customerSuperCheckNumber']);
Exemple #6
0
include_once '../nyro_header.php';
$truckId = $_GET['truckId'];
$truckInfo = objectQuery($conexion, '*', 'truck JOIN address ON (truck.addressId = address.addressId) 
		JOIN broker USING (brokerId)', 'truckId = ' . $truckId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
echo createEditIcon('editTruck', '../nyros/editTruck.php', "truckId={$truckId}", "Truck");
?>
	<?php 
echo createDeleteIcon('deleteTruck', '../submit/deleteTruck.php', "truckId={$truckId}", "Truck");
?>
</div>
<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='2'>Driver Information</th>
		</tr>
		<?php 
$flag = true;
$brokerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_BROKER, createGenericNyroableAttributesSmall($truckInfo['brokerId'], 'broker'));
echo printTuple($flag ? '' : "class='bg'", 'Truck Number', $truckInfo['brokerPid'] . " " . $truckInfo['truckNumber']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Broker', $truckInfo['brokerName'], $brokerLink);
Exemple #7
0
include_once '../nyro_header.php';
$brokerId = $_GET['brokerId'];
$brokerInfo = objectQuery($conexion, '*', $brokerExtendedTables, 'brokerId = ' . $brokerId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
echo createEditIcon('editBroker', '../nyros/editBroker.php', "brokerId={$brokerId}", "Broker");
?>
	<?php 
echo createDeleteIcon('deleteBroker', '../submit/deleteBroker.php', "brokerId={$brokerId}", "Broker");
?>
</div>
<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='2'>Broker Information</th>
		</tr>
		<?php 
$flag = true;
echo printTuple($flag ? '' : "class='bg'", 'Broker Name', $brokerInfo['brokerName']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Broker PID', $brokerInfo['brokerPid']);
$flag = !$flag;
Exemple #8
0
include_once '../nyro_header.php';
$fuelLoadId = $_GET['fuelLoadId'];
$fuelLoadInfo = objectQuery($conexion, '*', 'fuel_load JOIN broker ON (broker.brokerId = fuel_load.brokerId) LEFT JOIN truck USING (truckId)', 'fuelLoadId = ' . $fuelLoadId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
echo createEditIcon('editFuelLoad', '../nyros/editFuelLoad.php', "fuelLoadId={$fuelLoadId}", "FuelLoad");
?>
	<?php 
echo createDeleteIcon('deleteFuelLoad', '../submit/deleteFuelLoad.php', "fuelLoadId={$fuelLoadId}", "FuelLoad");
?>
</div>
<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='2'>FuelLoad Information</th>
		</tr>
		<?php 
$flag = true;
$brokerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_BROKER, createGenericNyroableAttributesSmall($fuelLoadInfo['brokerId'], 'broker'));
echo printTuple($flag ? '' : "class='bg'", 'Fuel Load Id', $fuelLoadInfo['fuelLoadId']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Broker', $fuelLoadInfo['brokerName'], $brokerLink);
Exemple #9
0
include_once '../nyro_header.php';
$itemId = $_GET['itemId'];
$itemInfo = objectQuery($conexion, $itemExtendedSelect, $itemExtendedTables, 'itemId = ' . $itemId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
/*echo createEditIcon('editTruck','../nyros/editTruck.php',"truckId=$truckId", "Truck");*/
?>
	<?php 
echo createDeleteIcon('deleteItem', '../submit/deleteItem.php', "itemId={$itemId}", "Item");
?>
</div>
<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='2'>Item Information</th>
		</tr>
		<?php 
$flag = true;
$projectLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_PROJECT, createGenericNyroableAttributesSmall($itemInfo['projectId'], 'project'));
$customerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_CUSTOMER, createGenericNyroableAttributesSmall($itemInfo['customerId'], 'customer'));
$supplierLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_SUPPLIER, createGenericNyroableAttributesSmall($itemInfo['supplierId'], 'supplier'));
$vendorLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_VENDOR, createGenericNyroableAttributesSmall($itemInfo['vendorId'], 'vendor'));
Exemple #10
0
$supplierInfo = objectQuery($conexion, '*', $supplierExtendedTables, 'supplierId = ' . $supplierId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
echo createActionIcon(IMG_MNG, 'managePriceList', 'Manage Price List', '../nyros/managePriceList.php', "supplierId={$supplierId}", 'show');
?>
	<?php 
echo createEditIcon('editSupplier', '../nyros/editSupplier.php', "supplierId={$supplierId}", "Supplier");
?>
	<?php 
echo createDeleteIcon('deleteSupplier', '../submit/deleteSupplier.php', "supplierId={$supplierId}", "Supplier");
?>
</div>
<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='2'>Supplier Information</th>
		</tr>
		<?php 
$flag = true;
$vendorLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_VENDOR, createGenericNyroableAttributesSmall($supplierInfo['vendorId'], 'vendor'));
echo printTuple($flag ? '' : "class='bg'", 'Supplier Name', $supplierInfo['supplierName']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Supplier Telephone', showPhoneNumber($supplierInfo['supplierTel']));
Exemple #11
0
include_once '../nyro_header.php';
$driverId = $_GET['driverId'];
$driverInfo = objectQuery($conexion, '*', $driverExtendedTables, 'driverId = ' . $driverId);
$brokerInfo = objectQuery($conexion, '*', 'broker', 'brokerId = ' . $driverInfo['brokerId']);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
echo createEditIcon('editDriver', '../nyros/editDriver.php', "driverId={$driverId}", "Driver");
?>
	<?php 
echo createDeleteIcon('deleteDriver', '../submit/deleteDriver.php', "driverId={$driverId}", "Driver");
?>
</div>
<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='2'>Driver Information</th>
		</tr>
		<?php 
$flag = true;
$brokerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_BROKER, createGenericNyroableAttributesSmall($driverInfo['brokerId'], 'broker'));
echo printTuple($flag ? '' : "class='bg'", 'Driver Name', $driverInfo['driverFirstName'] . " " . $driverInfo['driverLastName']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Broker', $brokerInfo['brokerName'], $brokerLink);
Exemple #12
0
include_once '../nyro_header.php';
$ticketId = $_GET['ticketId'];
$ticketInfo = objectQuery($conexion, '*', $ticketExtendedTables, 'ticketId = ' . $ticketId);
?>
<script type="text/javascript">
function deleteSuccess() {
	closeNM();
}
</script>
<div id='actions' class="top-bar">
	<?php 
/*echo createEditIcon('editTicket','../nyros/editTicket.php',"ticketId=$ticketId", "Ticket");*/
?>
	<?php 
echo createDeleteIcon('deleteTicket', '../submit/deleteTicket.php', "ticketId={$ticketId}", "Ticket");
?>
</div>
<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='2'>Ticket Information</th>
		</tr>
		<?php 
$flag = true;
$projectLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_PROJECT, createGenericNyroableAttributesSmall($ticketInfo['projectId'], 'project'));
$customerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_CUSTOMER, createGenericNyroableAttributesSmall($ticketInfo['customerId'], 'customer'));
$itemLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_ITEM, createGenericNyroableAttributesSmall($ticketInfo['itemId'], 'item'));
$supplierLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_SUPPLIER, createGenericNyroableAttributesSmall($ticketInfo['supplierId'], 'supplier'));