本文整理汇总了PHP中arrayToSelect函数的典型用法代码示例。如果您正苦于以下问题:PHP arrayToSelect函数的具体用法?PHP arrayToSelect怎么用?PHP arrayToSelect使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了arrayToSelect函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createInputText
<tr>
<td><strong>Date:</strong></td>
<td><strong>Broker/Truck:</strong></td>
<td><strong>Driver:</strong></td>
<td><strong>Start:</strong></td>
<td><strong>Finish:</strong></td>
<td><strong>Registered:</strong></td>
<td><strong>Miles:</strong></td>
</tr>
<tr class='bg'>
<td><?php
echo createInputText('newFuelLoadDate', '', "size='6px' tabindex='1'");
?>
</td>
<td><?php
echo arrayToSelect(brokersArray($conexion), '0', 'newFuelLoadBroker', "Broker", false, "tabindex='2'");
?>
</td>
<td><?php
echo createInputText('newFuelLoadDriver', '', "size='6px' tabindex='4'");
?>
</td>
<td><?php
echo createInputText('newFuelLoadStart', '', "size='6px' tabindex='5'");
?>
</td>
<td><?php
echo createInputText('newFuelLoadFinish', '', "size='6px' tabindex='6'");
?>
</td>
<td><?php
示例2: createCheckbox
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'>
示例3: createFormRow
echo createFormRow('State', $flag ? 'class="bg"' : '', false, createStateSelect($conexion, 'editDriverAddressState', $driverInfo['addressState']));
$flag = !$flag;
echo createFormRowTextField('Zip', 'editDriverAddressZip', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $driverInfo['addressZip'] . "'");
$flag = !$flag;
echo createFormRowTextField('P.O.Box', 'editDriverAddressBox', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $driverInfo['addressPOBox'] . "'");
$flag = !$flag;
//
echo createFormRow('Payment Terms', $flag ? 'class="bg"' : '', true, createTermSelect($conexion, 'editDriverTermId', $driverInfo['termId']));
$flag = !$flag;
echo createFormRowTextField('Percentage', 'editDriverPercentage', $flag ? 'class="bg"' : '', true, "size='10px' value='" . $driverInfo['driverPercentage'] . "'");
$flag = !$flag;
echo createFormRowTextField('Driver Start Date', 'editDriverStartDate', $flag ? 'class="bg"' : '', false, "size='10px' value='" . to_MDY($driverInfo['driverStartDate']) . "'");
$flag = !$flag;
echo createFormRow('Gender', $flag ? 'class="bg"' : '', true, arrayToSelect(array("0" => "--Select Gender--", "male" => "Male", "female" => "Female"), $driverInfo['driverGender'], 'editDriverGender', 'Gender', true));
$flag = !$flag;
echo createFormRow('Ethnicity', $flag ? 'class="bg"' : '', true, createEthnicitySelect($conexion, 'editDriverEthnicId', $driverInfo['ethnicId']));
$flag = !$flag;
echo createFormRow('Class', $flag ? 'class="bg"' : '', true, arrayToSelect(array("--Select Class--", "Class 1", "Class 2", "Class 3", "Class 4"), $driverInfo['driverClass'], 'editDriverClass', 'Class', true));
$flag = !$flag;
?>
</table>
<table>
<tr>
<td><?php
echo createSimpleButton('submitEditDriverButton', 'Submit');
?>
</td>
</tr>
</table>
</div>
示例4: getVal
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;
示例5: arrayToSelect
</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
示例6: createCheckbox
echo createCheckbox('c_fuelLoadRegistered', 'Registered', 'fuelLoadRegistered', 'headerName="Registered" varType="string"');
?>
<br/>
<?php
echo createCheckbox('c_fuelLoadMileage', 'Mileage', 'fuelLoadMileage', 'headerName="Mileage" varType="string"');
?>
<br/>
</td>
</tr>
<tr class='bg'>
<td> <?php
echo createInputText('searchFuelLoadId', '', "size='10px'");
?>
</td>
<td> <?php
echo arrayToSelect(brokersArray($conexion), 0, 'searchFuelLoadBroker', 'Broker');
?>
</td>
<td> <?php
echo emptySelect('searchFuelLoadTruck', 'Truck');
?>
</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'>
示例7: arrayToSelect
</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
echo createSimpleButton('searchButton', 'Search', '');
?>
</td>
</tr>
<tr>
<td><?php
echo emptySelect("projectId", "Project");
?>
</td>
</tr>
<?php
?>
示例8: createStateSelect
function createStateSelect($handler, $name = 'stateId', $selected = "0")
{
$stateArray = objectArray($handler, 'state', 'stateName asc', 'stateId', 'stateName');
return arrayToSelect($stateArray, $selected, $name, 'State');
}
示例9: while
`catId`,`catName`
FROM
`categories`
ORDER BY `catId` ASC
');
if ($getСatsList->num_rows) {
while ($result = $dbConnection->assoc($getСatsList)) {
$catsList[$result['catId']] = $result['catName'];
}
}
$catsListDisplay = arrayToSelect($catsList, 0, '<option value="0">Категория</option>', 'name="eventCatId"');
$getSubСatsList = $dbConnection->mq('
SELECT
`subCatId`,`subCatName`, `subCatCatId`
FROM
`subCategories`
ORDER BY `subCatId` ASC
');
if ($getSubСatsList->num_rows) {
while ($result = $dbConnection->assoc($getSubСatsList)) {
$subCatsList[$result['subCatCatId']][$result['subCatId']] = $result['subCatName'];
}
}
$subCatToUserSelect = $subCatsList;
foreach ($subCatsList as $key => $value) {
$subCatsList[$key] = arrayToSelect($subCatsList[$key], 0, '<option value="0">Подкатегория</option>', 'name="eventSubCatId"');
}
$subCatsList[0] = arrayToSelect(array(), 0, '<option value="0">Подкатегория</option>', 'name="eventSubCatId"');
$subCatsDisplay = arrayToSelect(array(), 0, '<option value="0">Подкатегория</option>', 'name="eventSubCatId"');
$subCatsJs = json_encode($subCatsList);
$eventsList = eventsCabinetEdit($userId, $dbConnection, $catsList, $subCatToUserSelect);
示例10: createSimpleButton
<tr>
<td class='first'>Gender:</td>
<td class='first'>Ethnicity:</td>
<td class='first'></td>
<td> <?php
echo createSimpleButton('printButton', 'Print');
?>
</td>
</tr>
<tr class='bg'>
<td><?php
echo arrayToSelect(array("0" => "Any", "male" => "Male", "female" => "Female"), "0", 'driverGender', 'Gender', true);
?>
</td>
<td><?php
echo arrayToSelect(ethnicsArray($conexion), 0, 'ethnicId', 'Ethnic');
?>
</td>
<td></td>
<td> <?php
echo createSimpleButton('searchButton', 'Search');
?>
</td>
</tr>
</table>
</div>
<div class='table' id='driversTable' ></div>
</div>
<?include_once '../news.php';?>
</div>
示例11: arrayToSelect
</script>
<div id="center-column">
<div class="table">
<table class="listing form" cellpadding="0" cellspacing="0">
<tr>
<th class="full" colspan="4">View Broker Balance</th>
</tr>
<tr>
<td><strong>Vendor:</strong><span style="color:red;">*</span></td>
<td><strong>Invoice #:</strong><span style="color:red;">*</span></td>
<td><strong>Date:</strong><span style="color:red;">*</span></td>
<td><strong>Amount:</strong><span style="color:red;">*</span></td>
</tr>
<tr class='bg'>
<td><?php
echo arrayToSelect(vendorsArray($conexion), 0, 'vendorId', 'Vendor');
?>
</td>
<td><?php
echo createInputText('invoiceNumber', '', "size='10px'");
?>
</td>
<td><?php
echo createInputText('invoiceDate', '', "size='10px'");
?>
</td>
<td><?php
echo createInputText('invoiceAmount', '', "size='10px'");
?>
</td>
</tr>
示例12: createFormRow
<?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;
echo createFormRowTextField("From <img id='newItemReverse' src='/trucking/img/48.png' width='18px'/>", 'newItemFromDisplay', $flag ? 'class="bg"' : '', false, "size=25px value=\"{$displayFrom}\"");
$flag = !$flag;
echo createFormRowTextField('To', 'newItemToDisplay', $flag ? 'class="bg"' : '', false, "size=25px value=\"{$displayTo}\"");
$flag = !$flag;
echo createFormRowTextField('Material Price', 'newItemMaterialPrice', $flag ? 'class="bg"' : '', true, "size=10px value=\"{$materialPrice}\"");
$flag = !$flag;
echo createFormRowTextField('Broker Cost', 'newItemBrokerCost', $flag ? 'class="bg"' : '', true, 'size=10px');
$flag = !$flag;
echo createFormRowTextField('Customer Cost', 'newItemCustomerCost', $flag ? 'class="bg"' : '', true, 'size=10px');
$flag = !$flag;
echo createFormRow('Type', $flag ? 'class="bg"' : '', true, arrayToRadio(array("Loads", "Tons", "hours"), "0", "newItemType", ""));
$flag = !$flag;
echo createFormRow('Description', $flag ? 'class="bg"' : '', false, createInputTextArea('newItemDescription', '', 'rows="2" cols="43"'));
示例13: htmlspecialchars
<form class="editSpot hide">
<input type="hidden" name="type" value="editSpot">
<input type="hidden" name="userId" value="<?php
echo $companyInfo['companyId'];
?>
">
<input type="hidden" name="spotId" value="<?php
echo $spots[$i]['spotId'];
?>
">
<input type="text" name = "spotName" placeholder = "Название" value="<?php
echo htmlspecialchars($spots[$i]['spotName']);
?>
">
<?php
echo arrayToSelect($cities, $spots[$i]['spotCityId'], '<option value="0">Выберите город</option>', 'name="spotCityId"');
?>
<input type="text" name = "spotShopAddress" placeholder = "Адрес" value="<?php
echo htmlspecialchars($spots[$i]['spotShopAddress']);
?>
">
<input type="text" name = "spotCoords" placeholder = "Координаты точки" value="<?php
echo htmlspecialchars($spots[$i]['spotCoords']);
?>
">
<input type="text" name = "spotPhone" placeholder = "Телефон №1" value="<?php
echo htmlspecialchars($spots[$i]['spotPhone']);
?>
">
<input type="text" name = "spotPhone2" placeholder = "Телефон №2" value="<?php
echo htmlspecialchars($spots[$i]['spotPhone2']);
示例14: createFormRow
}
//console.log(data);
return data;
}
</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='2'>Edit Broker</th>
</tr>
<?php
//Truck
$flag = true;
echo createFormRow('Broker', $flag ? 'class="bg"' : '', true, arrayToSelect(brokersArray($conexion), $truckInfo['brokerId'], 'editTruckBrokerId', 'Broker'));
$flag = !$flag;
echo createFormRowTextField('Truck Number', 'editTruckNumber', $flag ? 'class="bg"' : '', true, "size='10px' value='" . $truckInfo['truckNumber'] . "'");
$flag = !$flag;
echo createFormRowTextField('Driver', 'editTruckDriver', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['truckDriver'] . "'");
$flag = !$flag;
echo createFormRowTextField('Plates', 'editTruckPlates', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['truckPlates'] . "'");
$flag = !$flag;
echo createFormRowTextField('Truck Brand', 'editTruckBrand', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['truckBrand'] . "'");
$flag = !$flag;
echo createFormRowTextField('Truck Year Model', 'editTruckYear', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['truckYear'] . "'");
$flag = !$flag;
echo createFormRowTextField('Serial Number', 'editTruckSerial', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['truckSerial'] . "'");
$flag = !$flag;
echo createFormRowTextField('Tire Size', 'editTruckTireSize', $flag ? 'class="bg"' : '', false, "size='10px' value='" . $truckInfo['truckTireSize'] . "'");
$flag = !$flag;
示例15: createSimpleButton
</td>
</tr>
<tr>
<td class='first'></td>
<td class='first'></td>
<td class='first'>Payment Method:</td>
<td> <?php
echo createSimpleButton('printButton', 'Print');
?>
</td>
</tr>
<tr class='bg'>
<td></td>
<td></td>
<td><?php
echo arrayToSelect(termsArray($conexion), 0, 'searchCustomerTerm', 'Payment');
?>
</td>
<td> <?php
echo createSimpleButton('searchButton', 'Search');
?>
</td>
</tr>
</table>
</div>
<div class='table' id='customersTable' ></div>
</div>
<?include_once '../news.php';?>
</div>
<?