include_once '../nyro_header.php'; $projectId = $_GET['projectId']; $projectInfo = objectQuery($conexion, '*', $projectExtendedTables, 'projectId = ' . $projectId); ?> <script type="text/javascript"> 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>
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>
<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'>Pay Cheques for Supplier Invoice [<?php echo $supplierInvoice['supplierInvoiceNumber']; ?> ]</th> </tr> <tr> <th>Number</th> <th>Date</th> <th>Amount</th> <th>Remove</th> </tr> <?php $cheques = mysql_query("select * from suppliercheque where supplierInvoiceId = {$reportId}", $conexion); //Truck $flag = true; while ($cheque = mysql_fetch_assoc($cheques)) { $flag = !$flag; echo "<tr " . ($flag ? "class='bg'" : "") . " id='paycheque" . $cheque['supplierchequeId'] . "'>"; echo "<td>" . $cheque['supplierchequeNumber'] . "</td>"; echo "<td>" . to_MDY($cheque['supplierchequeDate']) . "</td>"; echo "<td>" . decimalPad($cheque['supplierchequeAmount']) . "</td>"; echo "<td>" . createActionIcon(IMG_DELETE, '', 'Delete Payment', '../submit/deleteSupplierCheck.php', 'chequeId=' . $cheque['supplierchequeId'], 'delete', " width='22' height='22'") . "</td>"; echo "</tr>"; } ?> </table> </div>
<?php include_once '../nyro_header.php'; $estimateId = $_GET['estimateId']; $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;
$tbody.= "<td>".$invoice['reportId']."</td>"; $tbody.= "<td>".$invoice['brokerPid']."</td>"; $tbody.= "<td>".($invoice['driverFirstName']==null?'----':$invoice['driverLastName'].", ".$invoice['driverFirstName'])."</td>"; $tbody.= "<td>".to_MDY($invoice['reportDate'])."</td>"; $tbody.= "<td>".to_MDY($invoice['reportStartDate'])."</td>"; $tbody.= "<td>".to_MDY($invoice['reportEndDate'])."</td>"; $tbody.= "<td>".(date('m/d/Y', strtotime('+'.$invoice['termValue'].' days', strtotime($invoice['reportEndDate']))))."</td>"; $tbody.= "<td>".decimalPad($reportTotal)."</td>"; $tbody.= "<td>".decimalPad($paidTotal)."</td>"; $tbody.= "<td>".decimalPad($reportTotal - $paidTotal)."</td>"; if($paid == "Overpaid" || $paid == "Paid")$tbody.="<td></td>"; else $tbody.="<td>".createActionIcon(IMG_PAY,'pay'.$invoice['reportId'],'Pay Report','../nyros/payBrokerInvoice.php','reportId='.$invoice['reportId'],'show'," width='22' height='22'")."</td>"; if($paid == "Unpaid") { $tbody.= "<td>".createActionIcon(IMG_DELETE,'delete'.$invoice['reportId'],'Delete Invoice','../submit/deleteBrokerInvoice.php','reportId='.$invoice['reportId'],'delete'," width='22' height='22'")."</td>"; } else { $tbody.="<td>".createActionIcon(IMG_MNG,'','Manage Invoice','../nyros/manageBrokerInvoice.php','reportId='.$invoice['reportId'],'show'," width='22' height='22'")."</td>"; } $tbody.="</tr>"; } $tbody.="</table>"; $jsondata['objectId'] = 'brokerInvoicesTable'; $jsondata['table'] = $tbody; echo json_encode($jsondata); mysql_close(); ?>
function createDeleteIcon($iconId, $url, $params, $objectType = '') { return createActionIcon(IMG_DELETE, $iconId, 'Delete ' . $objectType, $url, $params, 'delete'); }
<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'>Manage Customer Invoice [<?php echo $reportId; ?> ]</th> </tr> <tr> <th>Number</th> <th>Date</th> <th>Amount</th> <th>Remove</th> </tr> <?php $cheques = mysql_query("select * from receiptcheques where invoiceId = '{$reportId}'", $conexion); $flag = true; while ($cheque = mysql_fetch_assoc($cheques)) { $flag = !$flag; echo "<tr " . ($flag ? "class='bg'" : "") . " id='paycheque" . $cheque['receiptchequesId'] . "'>"; echo "<td>" . $cheque['receiptchequeNumber'] . "</td>"; echo "<td>" . to_MDY($cheque['receiptchequesDate']) . "</td>"; echo "<td>" . decimalPad($cheque['receiptchequesAmount']) . "</td>"; echo "<td>" . createActionIcon(IMG_DELETE, '', 'Delete Payment', '../submit/deleteCustomerCheck.php', "checkId=" . $cheque['receiptchequesId'] . "", 'delete', " width='22' height='22'") . "</td>"; echo "</tr>"; } ?> </table> </div>
<?php include_once '../nyro_header.php'; $supplierId = $_GET['supplierId']; $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;
<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'>Manage Broker Invoice [<?php echo $reportId; ?> ]</th> </tr> <tr> <th>Number</th> <th>Date</th> <th>Amount</th> <th>Remove</th> </tr> <?php $cheques = mysql_query("select * from paidcheques where reportId = {$reportId}", $conexion); //Truck $flag = true; while ($cheque = mysql_fetch_assoc($cheques)) { $flag = !$flag; echo "<tr " . ($flag ? "class='bg'" : "") . " id='paycheque" . $cheque['paidchequesId'] . "'>"; echo "<td>" . $cheque['paidchequeNumber'] . "</td>"; echo "<td>" . to_MDY($cheque['paidchequesDate']) . "</td>"; echo "<td>" . decimalPad($cheque['paidchequesAmount']) . "</td>"; echo "<td>" . createActionIcon(IMG_DELETE, '', 'Delete Payment', '../submit/deleteBrokerCheck.php', 'paidchequesId=' . $cheque['paidchequesId'], 'delete', " width='22' height='22'") . "</td>"; echo "</tr>"; } ?> </table> </div>