Example #1
0
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Criar personagem</title>
        <link rel="stylesheet" href="../CSS/mainStyle.css">
    </head>
    <body>
        <form action="insertCharacter.php" method="post" enctype="multipart/form-data">
			<?php 
require "../Classes/quickElements.php";
createInputText("Nome: ", "name");
createInputText("Classe: ", "class");
createInputImage("Imagem: ", "img");
?>
            <input type="submit" value="Cadastrar" name="submit"><br>
            <!-- DOING: Implement photo support -->
			<?php 
checkForError();
?>
        </form>
        <a href="characters.php" class="greenLink">Ir até a página de personagens</a>
    </body>
</html>
Example #2
0
				<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>
			</tr>
			<tr>
				<td><?php 
echo emptySelect("pathFinderProjectId", "Project/Estimate");
Example #3
0
			</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>
			</tr>
			<tr class='bg'>
				<td> <?php 
echo emptySelect("projectId", "Project");
Example #4
0
</td>
				<td></td>
			</tr>
			<tr>
				<td class='first'>After Date:</td>
				<td class='first'>Before Date:</td>
				<td class='first'></td>
				<td></td>
			</tr>
			<tr class='bg'>
				<td> <?php 
echo createInputText('searchFuelLoadStart', '', "size='10px'");
?>
</td>
				<td> <?php 
echo createInputText('searchFuelLoadEnd', '', "size='10px'");
?>
</td>
				<td></td>
				<td> <?php 
echo createSimpleButton('exportButton', 'Export');
?>
</td>
			</tr>
			<tr>
				<td class='first'></td>
				<td class='first'></td>
				<td class='first'></td>
				<td> <?php 
echo createSimpleButton('printButton', 'Print');
?>
Example #5
0
?>
</td>
				<td><?php 
echo createInputText('editFuelLoadStart', '', "size='6px' tabindex='5' value='" . $fuelLoadInfo['fuelLoadStart'] . "'");
?>
</td>
				<td><?php 
echo createInputText('editFuelLoadFinish', '', "size='6px' tabindex='6' value='" . $fuelLoadInfo['fuelLoadFinish'] . "'");
?>
</td>
				<td><?php 
echo createInputText('editFuelLoadRegistered', '', "size='6px' tabindex='7' value='" . $fuelLoadInfo['fuelLoadRegistered'] . "'");
?>
</td>
				<td><?php 
echo createInputText('editFuelLoadMiles', '', "size='6px' tabindex='8' value='" . $fuelLoadInfo['fuelLoadMileage'] . "'");
?>
</td>
			</tr>
			<tr>
				<td></td>
				<td><?php 
echo arrayToSelect(trucksArray($conexion, $fuelLoadInfo['brokerId']), $fuelLoadInfo['truckId'], 'editFuelLoadTruck', "Truck", false, "tabindex='3'");
?>
</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td><?php 
echo createSimpleButton('submitEditFuelLoadButton', 'Submit', '', "tabindex='9'");
Example #6
0
?>
</td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo arrayToSelect(array("0" => "Any", "male" => "Male", "female" => "Female"), "0", 'gender', 'Gender', true);
?>
</td>
				<td>
				<?php 
$ethnicArray = ethnicsArray($conexion);
echo arrayToSelect($ethnicArray, 0, 'ethnicId', 'Ethnic');
?>
				</td>
				<td><?php 
echo createInputText('searchBrokerPhone', '', "size='10px'");
?>
</td>
				<td> <?php 
echo createSimpleButton('searchButton', 'Search');
?>
</td>
			</tr>
		</table>
	</div>
	
	<div class='table' id='brokersTable' ></div>
</div>
<?include_once '../news.php';?>
</div>
<?
Example #7
0
echo createSimpleButton('exportButton', 'Export');
?>
</td>
			</tr>
			<tr>
				<td class='first'>Truck Year:</td>
				<td class='first'></td>
				<td class='first'></td>
				<td> <?php 
echo createSimpleButton('printButton', 'Print');
?>
</td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo createInputText('truckYear', '', "size='10px'");
?>
</td>
				<td></td>
				<td></td>
				<td> <?php 
echo createSimpleButton('searchButton', 'Search');
?>
</td>
			</tr>
		</table>
	</div>
	
	<div class='table' id='trucksTable' ></div>
</div>
<?include_once '../news.php';?>
Example #8
0
				<td class='first'>City:</td>
				<td class='first'>State:</td>
				<td class='first'>Zip Code:</td>
				<td></td>
			</tr>
			<tr class='bg'>
				<td> <?php 
echo createInputText('addressCity', '', "size='10px'");
?>
</td>
				<td> <?php 
echo createStateSelect($conexion);
?>
</td>
				<td> <?php 
echo createInputText('addressZipCode', '', "size='10px'");
?>
</td>
				<td> <?php 
echo createSimpleButton('exportButton', 'Export');
?>
</td>
			</tr>
			<tr>
				<td class='first'>Gender:</td>
				<td class='first'>Ethnicity:</td>
				<td class='first'></td>
				<td> <?php 
echo createSimpleButton('printButton', 'Print');
?>
</td>
Example #9
0
			</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('searchProposalId', '', "size='6px'");
?>
</td>
			</tr>
			<tr>
				<td class='first'>Project</td>
				<td class='first'>Supplier</td>
				<td></td>
				<td><?php 
echo createSimpleButton('exportButton', 'Export');
?>
</td>
			</tr>
			<tr class='bg'>
				<td> <?php 
echo emptySelect("projectId", "Project");
Example #10
0
</td>
			</tr>
			<tr>
				<td><?php 
echo emptySelect('newTicketProject', 'Project', "tabindex='2'");
?>
</td>
				<td><?php 
echo emptySelect('newTicketTruck', 'Truck', "tabindex='5'");
?>
</td>
				<td></td>
				<td></td>
				<td></td>
				<td><?php 
echo createInputText('newTicketBrokerAmount', '', "size='6px' tabindex='11'");
?>
</td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo emptySelect('newTicketItem', 'Item', "tabindex='3'");
?>
</td>
				<td><?php 
echo emptySelect('newTicketDriver', 'Driver', "tabindex='6'");
?>
</td>
				<td></td>
				<td></td>
				<td><?php 
Example #11
0
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>";
}
Example #12
0
				<td><?php 
echo createInputText('startDate', '', "size='10px'");
?>
</td>
				<td><strong>Ticket Count:</strong></td>
				<td id='amountCount'></td>
			</tr>
			<tr class='bg'>
				<td><strong>End Date:</strong></td>
				<td><?php 
echo createInputText('endDate', '', "size='10px'");
?>
</td>
				<td><strong>Project #:</strong></td>
				<td><?php 
echo createInputText('projectId', '', "size='10px'");
?>
</td>
			</tr>
			<tr>
				<td><?php 
echo createSimpleButton('submitNewVendorInvoice', 'Submit');
?>
</td>
				<td></td>
				<td>
					<input type='radio' name='inInvoice' value='no' id='noInInvoice' checked ><label for='noInInvoice'>Not in invoice</label><br/>
					<input type='radio' name='inInvoice' value='yes' id='yesInInvoice' ><label for='yesInInvoice'>In invoice</label><br/>
					<input type='radio' name='inInvoice' value='all' id='allInInvoice' ><label for='allInInvoice'>All</label><br/>
				</td>
				<td><?php 
Example #13
0
?>
</td>
				<td><?php 
echo createInputText('newFuelLoadStart', '', "size='6px' tabindex='5'");
?>
</td>
				<td><?php 
echo createInputText('newFuelLoadFinish', '', "size='6px' tabindex='6'");
?>
</td>
				<td><?php 
echo createInputText('newFuelLoadRegistered', '', "size='6px' tabindex='7'");
?>
</td>
				<td><?php 
echo createInputText('newFuelLoadMiles', '', "size='6px' tabindex='8'");
?>
</td>
			</tr>
			<tr>
				<td></td>
				<td><?php 
echo emptySelect('newFuelLoadTruck', 'Truck', "tabindex='3'");
?>
</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td><?php 
echo createSimpleButton('submitNewFuelLoad', 'Submit', '', "tabindex='9'");
</td>
				<td></td>
			</tr>
			<tr>
				<td>After Date:</td>
				<td>Before Date:</td>
				<td></td>
				<td></td>
			</tr>
			<tr class='bg'>
				<td> <?php 
echo createInputText('searchSuperCheckAfterDate', '', "size='10px'");
?>
</td>
				<td> <?php 
echo createInputText('searchSuperCheckBeforeDate', '', "size='10px'");
?>
</td>
				<td></td>
				<td> <?php 
echo createSimpleButton('exportButton', 'Export');
?>
</td>
			</tr>
			<tr>
				<td class='first'></td>
				<td class='first'></td>
				<td class='first'></td>
				<td> <?php 
echo createSimpleButton('printButton', 'Print');
?>
Example #15
0
				<td> <?php 
echo createSimpleButton('exportButton', 'Export');
?>
</td>
			</tr>
			<tr class='bg'>
				<td> <?php 
echo createInputText('invoiceNumber', '', "size='6px'");
?>
</td>
				<td> <?php 
echo createInputText('reportNumber', '', "size='6px'");
?>
</td>
				<td> <?php 
echo createInputText('supplierInvoiceNumber', '', "size='6px'");
?>
</td>
				<td> <?php 
echo createSimpleButton('printButton', 'Print');
?>
</td>
			</tr>
			<tr>
				<td><?php 
echo arrayToSelect(array("Any", "Invoiced", "Not Invoiced"), 0, 'inInvoice', 'Invoice', true);
?>
</td>
				<td><?php 
echo arrayToSelect(array("Any", "Invoiced", "Not Invoiced"), 0, 'inReport', 'Report', true);
?>
Example #16
0
			<tr>
				<th class="full" colspan="4">View Fuel Report</th>
			</tr>
			<tr>
				<td>Starting Date:</td>
				<td>Ending Date:</td>
				<td></td>
				<td></td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo createInputText('startDate', '', "size='10px'");
?>
</td>
				<td><?php 
echo createInputText('endDate', '', "size='10px'");
?>
</td>
				<td><?php 
echo createSimpleButton('previewButton', 'Preview');
?>
</td>
				<td><?php 
echo createSimpleButton('printButton', 'Print');
?>
</td>
			</tr>
			<?php 
?>
		</table>
	</div>
Example #17
0
			<th>Amount to Pay</th>
			<th>Date</th>
			<th></th>
		</tr>
		<?php 
$reportTotal = getInvoiceTotal($reportId, $conexion);
$paidTotal = getInvoicePaid($reportId, $conexion);
$balance = decimalPad($reportTotal - $paidTotal);
$invoiceInfo = getCustomerInvoiceInfo($conexion, $reportId);
//Truck
$flag = true;
$credits = mysql_query("SELECT * FROM customer_credit JOIN customer_super_check USING (customerSuperCheckId) WHERE\tcustomerId = '" . $invoiceInfo['customerId'] . "'", $conexion);
while ($credit = mysql_fetch_assoc($credits)) {
    $creditValue = decimalPad($credit['customerCreditAmount']);
    echo printRow(($flag ? "class='bg'" : "") . " rowId='F" . $reportId . "W" . $credit['customerSuperCheckId'] . "' ", array($credit['customerSuperCheckNumber'], $creditValue, createInputText("paymentF" . $reportId . "W" . $credit['customerSuperCheckId'], '', "size='10px'", decimalPad($creditValue > $balance ? $balance : $creditValue)), createInputText("dateF" . $reportId . "W" . $credit['customerSuperCheckId'], "", "size='10px'", to_MDY($credit['customerSuperCheckDate'])), createInputHidden("checkF" . $reportId . "W" . $credit['customerSuperCheckId'], "", "size='10px'", $credit['customerSuperCheckId']) . " " . createInputHidden("numberF" . $reportId . "W" . $credit['customerSuperCheckId'], "", "size='10px'", $credit['customerSuperCheckNumber']) . " " . printImgLink(IMG_PAY, "customerPayable", "Pay with check " . $credit['customerSuperCheckNumber'], ' width="22" height="22"')));
    $flag = !$flag;
    //createInputText($id, $name = '', $attributes = '', $startingValue ='')
}
echo printRow(($flag ? "class='bg'" : "") . " rowId='F" . $reportId . "W0' ", array("Cash", "N/A", createInputText("paymentF" . $reportId . "W0", '', "size='10px'", decimalPad($balance)), createInputText("dateF" . $reportId . "W0", "", "size='10px'", date('m/d/Y')), createInputHidden("checkF" . $reportId . "W0", '', "size='10px'", "0") . " " . createInputHidden("numberF" . $reportId . "W0", '', "size='10px'", "Cash") . " " . printImgLink(IMG_PAY, "customerPayable", "Pay with cash", ' width="22" height="22"')));
?>
	</table>
	<table>
		<tr>
			<td><?php 
echo createSimpleButton('submitButton', 'Submit');
?>
</td>
		</tr>
	</table>
</div>
Example #18
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>
Example #19
0
				<td><?php 
echo createSimpleButton('submitButton', 'Submit', '', 'disabled="disabled"');
?>
</td>
			</tr>
			<tr class='bg'>
				<td><?php 
echo arrayToSelect(customersArray($conexion), 0, 'customerId', 'Customer');
?>
</td>
				<td rowspan='2'><?php 
echo createInputText('invoiceStartDate', '', "size='10px'");
?>
</td>
				<td rowspan='2'><?php 
echo createInputText('invoiceEndDate', '', "size='10px'");
?>
</td>
				<td rowspan='2'><?php 
echo createSimpleButton('previewButton', 'Preview', '', 'disabled="disabled"');
?>
</td>
			</tr>
			<tr>
				<td><?php 
echo emptySelect("projectId", "Project");
?>
</td>
			</tr>
			<tr>
				<td>Filter</td>