本文整理汇总了PHP中SelectBoxFromArray函数的典型用法代码示例。如果您正苦于以下问题:PHP SelectBoxFromArray函数的具体用法?PHP SelectBoxFromArray怎么用?PHP SelectBoxFromArray使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SelectBoxFromArray函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __CrmFieldMultiEditRenderItem
function __CrmFieldMultiEditRenderItem($item, $mnemonic, $typeID, $referenceData, $editorID)
{
$itemID = isset($item['ID']) ? $item['ID'] : '';
$itemVal = isset($item['VALUE']) ? $item['VALUE'] : '';
?>
<div class="bx-crm-edit-fm-item">
<input type="text" class="bx-crm-edit-input" name="<?php
echo htmlspecialcharsbx($mnemonic);
?>
[<?php
echo htmlspecialcharsbx($typeID);
?>
][<?php
echo htmlspecialcharsbx($itemID);
?>
][VALUE]" value="<?php
echo htmlspecialcharsbx($itemVal);
?>
"><?php
echo SelectBoxFromArray(CUtil::JSEscape($mnemonic) . '[' . htmlspecialcharsbx($typeID) . '][' . htmlspecialcharsbx($itemID) . '][VALUE_TYPE]', $referenceData, isset($item['VALUE_TYPE']) ? $item['VALUE_TYPE'] : '', '', "class='bx-crm-edit-input bx-crm-edit-input-small'");
?>
<div class="delete-action" onclick="BX.CrmFieldMultiEditor.items['<?php
echo CUtil::addslashes($editorID);
?>
'].deleteItem('<?php
echo CUtil::addslashes($itemID);
?>
');" title="<?php
echo GetMessage('CRM_STATUS_LIST_DELETE');
?>
"></div>
</div><?php
}
示例2: GetSettingsHTML
public function GetSettingsHTML($arFields, $strHTMLControlName, &$arPropertyFields)
{
$arPropertyFields = array("HIDE" => array("ROW_COUNT", "COL_COUNT", "MULTIPLE_CNT"), 'USER_TYPE_SETTINGS_TITLE' => GetMessage('BT_UT_SKU_SETTING_TITLE'));
$arSettings = self::PrepareSettings($arFields);
$strResult = '<tr>
<td>' . GetMessage('BT_UT_SKU_SETTING_VIEW') . '</td>
<td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[VIEW]', self::GetPropertyViewsList(true), htmlspecialcharsbx($arSettings['VIEW'])) . '</td>
</tr>
<tr>
<td>' . GetMessage('BT_UT_SKU_SETTING_MAX_WIDTH') . '</td>
<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_WIDTH]" value="' . intval($arSettings['MAX_WIDTH']) . '"> ' . GetMessage('BT_UT_SKU_SETTING_COMMENT_MAX_WIDTH') . '</td>
</tr>
<tr>
<td>' . GetMessage('BT_UT_SKU_SETTING_MIN_HEIGHT') . '</td>
<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MIN_HEIGHT]" value="' . intval($arSettings['MIN_HEIGHT']) . '"> ' . GetMessage('BT_UT_SKU_SETTING_COMMENT_MIN_HEIGHT') . '</td>
</tr>
<tr>
<td>' . GetMessage('BT_UT_SKU_SETTING_MAX_HEIGHT') . '</td>
<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_HEIGHT]" value="' . intval($arSettings['MAX_HEIGHT']) . '"> ' . GetMessage('BT_UT_SKU_SETTING_COMMENT_MAX_HEIGHT') . '</td>
</tr>
<tr>
<td>' . GetMessage('BT_UT_SKU_SETTING_BAN_SYMBOLS') . '</td>
<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[BAN_SYM]" value="' . htmlspecialcharsbx($arSettings['BAN_SYM']) . '"></td>
</tr>
<tr>
<td>' . GetMessage('BT_UT_SKU_SETTING_REP_SYMBOL') . '</td>
<td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[REP_SYM]', parent::GetReplaceSymList(true), htmlspecialcharsbx($arSettings['REP_SYM'])) . ' <input type="text" name="' . $strHTMLControlName["NAME"] . '[OTHER_REP_SYM]" size="1" maxlength="1" value="' . $arSettings['OTHER_REP_SYM'] . '"></td>
</tr>';
return $strResult;
}
示例3: GetAdminListEditHTML
function GetAdminListEditHTML($arUserField, $arHtmlControl)
{
$ar = CCrmStatus::GetStatusList($arUserField['SETTINGS']['ENTITY_TYPE']);
foreach ($ar as $key => $name) {
$arr['reference'][] = $name;
$arr['reference_id'][] = $key;
}
return SelectBoxFromArray($arHtmlControl['NAME'], $arr, $arHtmlControl['VALUE']);
}
示例4: __GroupRightsShowRow
function __GroupRightsShowRow($titleCol, $groupID, $group_id, $ar, $v, $site_id_tmp, $arRightsUseSites, $arSites, $useDefault = true)
{
if ($groupID) {
$arUsedGroups[$groupID] = true;
}
?>
<tr>
<td width="40%"><?php
echo $titleCol;
?>
</td>
<td width="40%"><?php
echo '<input type="hidden" name="GROUPS[]" value="' . $group_id . '">';
$strReturnBox = '<select class="typeselect" name="RIGHTS[]" onchange="__GroupRightsChangeSite(this)" >';
$ref = $ar["reference"];
$ref_id = $ar["reference_id"];
if (!is_array($ref)) {
$ref = $ar["REFERENCE"];
}
if (!is_array($ref_id)) {
$ref_id = $ar["REFERENCE_ID"];
}
if ($useDefault) {
$strReturnBox .= '<option value="">' . GetMessage("MAIN_DEFAULT") . '</option>';
}
for ($i = 0, $n = count($ref); $i < $n; $i++) {
$strReturnBox .= '<option';
if (strcasecmp($ref_id[$i], htmlspecialcharsbx($v)) == 0) {
$strReturnBox .= ' selected';
}
$strReturnBox .= ' value="' . htmlspecialcharsbx($ref_id[$i]) . '">' . htmlspecialcharsbx($ref[$i]) . '</option>';
}
echo $strReturnBox . '</select>';
?>
</td><td width="20%"><span style="display: <?php
echo in_array($v, $arRightsUseSites) ? "inline-block" : "none";
?>
;"><?php
echo SelectBoxFromArray("SITES[]", $arSites, htmlspecialcharsbx($site_id_tmp), GetMessage("group_rights_sites_all"), "class='typeselect' style='width: 150px;'");
?>
</span></td>
<td width="0%"><a href="javascript:void(0)" onClick="__GroupRightsDeleteRow(this)"><img src="/bitrix/themes/.default/images/actions/delete_button.gif" border="0" width="20" height="20"></a></td>
</tr>
<?php
}
示例5: GetMessage
echo $bReadOnly ? ' disabled readonly' : '';
?>
/>
</td>
</tr>
<tr>
<td width="40%">
<?php
echo GetMessage("CAT_VAT");
?>
:
</td>
<td width="60%">
<?php
$arVATRef = CatalogGetVATArray(array(), true);
echo SelectBoxFromArray('CAT_VAT_ID', $arVATRef, $str_CAT_VAT_ID, "", $bReadOnly ? "disabled readonly" : '');
?>
</td>
</tr>
<tr>
<td width="40%"><label for="CAT_VAT_INCLUDED"><?php
echo GetMessage("CAT_VAT_INCLUDED");
?>
</label>:</td>
<td width="60%">
<input type="hidden" name="CAT_VAT_INCLUDED" id="CAT_VAT_INCLUDED_N" value="N">
<input type="checkbox" name="CAT_VAT_INCLUDED" id="CAT_VAT_INCLUDED" value="Y" <?php
echo $str_CAT_VAT_INCLUDED == 'Y' ? 'checked="checked"' : '';
?>
<?php
echo $bReadOnly ? 'disabled readonly' : '';
示例6: GetMessage
?>
</td>
</tr>
<tr>
<td><?echo GetMessage("MAIN_AGENT_FLT_LAST_EXEC")?>:</td>
<td><?echo CalendarDate("find_last_exec", htmlspecialcharsbx($find_last_exec), "find_form")?></td>
</tr>
<tr>
<td><?echo GetMessage("MAIN_AGENT_FLT_NEXT_EXEC")?>:</td>
<td><?echo CalendarDate("find_next_exec", htmlspecialcharsbx($find_next_exec), "find_form")?></td>
</tr>
<tr>
<td><?echo GetMessage("MAIN_AGENT_FLT_IS_PERIOD")?>:</td>
<td><?
$arr = array("reference"=>array(GetMessage("MAIN_YES"), GetMessage("MAIN_NO")), "reference_id"=>array("Y","N"));
echo SelectBoxFromArray("find_is_period", $arr, htmlspecialcharsbx($find_is_period), GetMessage('MAIN_ALL'));
?>
</td>
</tr>
<?
$oFilter->Buttons(array("table_id"=>$sTableID, "url"=>$APPLICATION->GetCurPage(), "form"=>"find_form"));
$oFilter->End();
?>
</form>
<?
$lAdmin->DisplayList();
require($_SERVER["DOCUMENT_ROOT"].FX_ROOT."/modules/main/include/epilog_admin.php");
?>
示例7: GetSettingsHTML
public function GetSettingsHTML($arFields, $strHTMLControlName, &$arPropertyFields)
{
$arPropertyFields = array("HIDE" => array("ROW_COUNT", "COL_COUNT", "MULTIPLE_CNT"), 'USER_TYPE_SETTINGS_TITLE' => Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_TITLE'));
$arSettings = self::PrepareSettings($arFields);
return '<tr>
<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_VIEW') . '</td>
<td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[VIEW]', self::GetPropertyViewsList(true), htmlspecialcharsbx($arSettings['VIEW'])) . '</td>
</tr>
<tr>
<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_SHOW_ADD') . '</td>
<td>' . InputType('checkbox', $strHTMLControlName["NAME"] . '[SHOW_ADD]', 'Y', htmlspecialcharsbx($arSettings["SHOW_ADD"])) . '</td>
</tr>
<tr>
<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_IBLOCK_MESS') . '</td>
<td>' . InputType('checkbox', $strHTMLControlName["NAME"] . '[IBLOCK_MESS]', 'Y', htmlspecialcharsbx($arSettings["IBLOCK_MESS"])) . '</td>
</tr>
<tr>
<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MAX_WIDTH') . '</td>
<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_WIDTH]" value="' . (int) $arSettings['MAX_WIDTH'] . '"> ' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MAX_WIDTH') . '</td>
</tr>
<tr>
<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MIN_HEIGHT') . '</td>
<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MIN_HEIGHT]" value="' . (int) $arSettings['MIN_HEIGHT'] . '"> ' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MIN_HEIGHT') . '</td>
</tr>
<tr>
<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MAX_HEIGHT') . '</td>
<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_HEIGHT]" value="' . (int) $arSettings['MAX_HEIGHT'] . '"> ' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MAX_HEIGHT') . '</td>
</tr>
<tr>
<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_BAN_SYMBOLS') . '</td>
<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[BAN_SYM]" value="' . htmlspecialcharsbx($arSettings['BAN_SYM']) . '"></td>
</tr>
<tr>
<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_REP_SYMBOL') . '</td>
<td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[REP_SYM]', self::GetReplaceSymList(true), htmlspecialcharsbx($arSettings['REP_SYM'])) . ' <input type="text" name="' . $strHTMLControlName["NAME"] . '[OTHER_REP_SYM]" size="1" maxlength="1" value="' . $arSettings['OTHER_REP_SYM'] . '"></td>
</tr>
';
}
示例8: GetMessage
</tr>
<?php
$displayTypes = CIBlockSectionPropertyLink::getDisplayTypes($arProperty["PROPERTY_TYPE"], $arProperty["USER_TYPE"]);
if ($displayTypes) {
?>
<tr id="tr_DISPLAY_TYPE" style="display: <?php
echo $arProperty['SECTION_PROPERTY'] != 'N' ? 'table-row' : 'none';
?>
">
<td width="40%"><?php
echo GetMessage("BT_ADM_IEP_PROP_DISPLAY_TYPE");
?>
</td>
<td>
<?php
echo SelectBoxFromArray('PROPERTY_DISPLAY_TYPE', array("REFERENCE_ID" => array_keys($displayTypes), "REFERENCE" => array_values($displayTypes)), $arProperty["DISPLAY_TYPE"], '', '');
?>
</td>
</tr>
<?php
}
?>
<tr id="tr_DISPLAY_EXPANDED" style="display: <?php
echo $arProperty['SECTION_PROPERTY'] != 'N' ? 'table-row' : 'none';
?>
">
<td width="40%"><label for="PROPERTY_DISPLAY_EXPANDED_Y"><?php
echo GetMessage("BT_ADM_IEP_PROP_DISPLAY_EXPANDED");
?>
</label></td>
<td>
示例9: htmlspecialcharsbx
<td><input type="text" name="find_subject" size="47" value="<?php
echo htmlspecialcharsbx($find_subject);
?>
"><?php
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("MAIN_F_BODY_TYPE");
?>
</td>
<td><?php
$arr = array("reference" => array(GetMessage("MAIN_TEXT"), GetMessage("MAIN_HTML")), "reference_id" => array("text", "html"));
echo SelectBoxFromArray("find_body_type", $arr, htmlspecialcharsbx($find_body_type), GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("MAIN_F_MESSAGE_BODY");
?>
</td>
<td><input type="text" name="find_body" size="47" value="<?php
echo htmlspecialcharsbx($find_body);
?>
"><?php
echo ShowFilterLogicHelp();
?>
</td>
示例10: GetMessage
<tr>
<td><?php
echo GetMessage("USERTYPE_EDIT_IN_LIST");
?>
:</td>
<td>
<?php
echo SelectBoxFromArray("find_edit_in_list", $arrYN, $find_edit_in_list, GetMessage("MAIN_ALL"), "");
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("USERTYPE_IS_SEARCHABLE");
?>
:</td>
<td>
<?php
echo SelectBoxFromArray("find_is_searchable", $arrYN, $find_is_searchable, GetMessage("MAIN_ALL"), "");
?>
</td>
</tr>
<?
$oFilter->Buttons(array("table_id"=>$sTableID,"url"=>$APPLICATION->GetCurPage(),"form"=>"find_form"));
$oFilter->End();
?>
</form>
<?$lAdmin->DisplayList();?>
<?require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/epilog_admin.php");?>
示例11: GetDropDownField
function GetDropDownField($FIELD_NAME, $arDropDown, $VALUE, $PARAM = "")
{
if (strlen($PARAM) <= 0) {
$PARAM = " class=\"inputselect\" ";
}
return SelectBoxFromArray("form_dropdown_" . $FIELD_NAME, $arDropDown, $VALUE, "", $PARAM);
}
示例12: htmlspecialcharsbx
echo htmlspecialcharsbx($arSites["NAME"]);
?>
</option><?php
}
?>
</select></td>
</tr>
<tr>
<td><?php
echo GetMessage("rub_f_is_public");
?>
:</td>
<td>
<?php
$arr = array("reference" => array(GetMessage("MAIN_YES"), GetMessage("MAIN_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("find_is_public", $arr, $find_is_public, GetMessage("MAIN_ALL"), "");
?>
</td>
</tr>
<?php
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form"));
$oFilter->End();
?>
</form>
<?php
$lAdmin->DisplayList();
?>
<?php
示例13: GetMessage
:</td><td style="text-align: left; width: 75%;"><input type="text" name="OF_IBLOCK_NAME" value="<?php
echo $str_OF_IBLOCK_NAME;
?>
" style="width: 100%;" /></td></tr>
<tr><td style="text-align: left; width: 100%;" colspan="2" class="field-name"><input type="radio" value="N" id="OF_CREATE_IBLOCK_TYPE_ID_N" name="OF_CREATE_IBLOCK_TYPE_ID" <?php
echo 'N' == $str_OF_CREATE_IBLOCK_TYPE_ID ? 'checked="checked"' : '';
?>
onclick="change_offers_ibtype(this);"><label for="CREATE_OFFERS_TYPE_N"><?php
echo GetMessage('IB_E_OF_PR_OLD_IBTYPE');
?>
</label></td></tr>
<tr><td style="text-align: right; width: 25%;" class="field-name"><?php
echo GetMessage('IB_E_OF_PR_OFFERS_TYPE');
?>
:</td><td style="text-align: left; width: 75%;"><?php
echo SelectBoxFromArray('OF_IBLOCK_TYPE_ID', array('REFERENCE' => $arIBlockTypeNameList, 'REFERENCE_ID' => $arIBlockTypeIDList), $str_OF_IBLOCK_TYPE_ID, '', 'N' == $str_OF_CREATE_IBLOCK_TYPE_ID ? '' : 'disabled="disabled"');
?>
</td></tr>
<tr><td style="text-align: left; width: 100%;" colspan="2" class="field-name"><input type="radio" value="Y" id="OF_CREATE_IBLOCK_TYPE_ID_Y" name="OF_CREATE_IBLOCK_TYPE_ID" <?php
echo 'Y' == $str_OF_CREATE_IBLOCK_TYPE_ID ? 'checked="checked"' : '';
?>
onclick="change_offers_ibtype(this);"><label for="CREATE_OFFERS_TYPE_Y"><?php
echo GetMessage('IB_E_OF_PR_OFFERS_NEW_IBTYPE');
?>
</label></td></tr>
<tr><td style="text-align: right; width: 25%;" class="field-name"><?php
echo GetMessage('IB_E_OF_PR_OFFERS_NEWTYPE');
?>
:</td><td style="text-align: left; width: 75%;"><input type="text" name="OF_NEW_IBLOCK_TYPE_ID" id="OF_NEW_IBLOCK_TYPE_ID" value="" style="width: 100%;" <?php
echo 'Y' == $str_OF_CREATE_IBLOCK_TYPE_ID ? '' : 'disabled="disabled"';
?>
示例14: foreach
foreach($arGROUPS as $group):
if($arUsedGroups[$group["ID"]] == true)
continue;
?>
<option value="<?php
echo $group["ID"];
?>
"><?php
echo $group["NAME"] . " [" . $group["ID"] . "]";
?>
</option>
<?endforeach?>
</select></td>
<td>
<?
echo SelectBoxFromArray("", $arTasks, "", GetMessage("MAIN_DEFAULT"), 'onchange="taskSelectOnchange(this)"');
?>
<div style="display:none">
<div style="padding:6px 0 6px 0"><?php
echo GetMessage('SUBORDINATE_GROUPS');
?>
:</div>
<select name="" multiple size="6">
<?
foreach($arGROUPS as $v_gr)
{
?><option value="<?php
echo $v_gr['ID'];
?>
"><? echo $v_gr['NAME'].' ['.$v_gr['ID'].']'?></option><?
}
示例15: htmlspecialcharsbx
<input type="text" name="find_name" size="47" value="<?php
echo htmlspecialcharsbx($find_name);
?>
">
</td>
</tr>
<tr>
<td><?php
echo GetMessage("sender_mailing_chain_adm_field_status");
?>
:</td>
<td>
<?php
$arStatus = \Bitrix\Sender\MailingChainTable::getStatusList();
$arr = array("reference" => array_values($arStatus), "reference_id" => array_keys($arStatus));
echo SelectBoxFromArray("find_status", $arr, $find_status, GetMessage("MAIN_ALL"), "");
?>
</td>
</tr>
<?php
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage() . "?MAILING_ID=" . $MAILING_ID, "form" => "find_form"));
$oFilter->End();
?>
</form>
<?php
//******************************
// Send mailing and show progress
//******************************
if ($_REQUEST['action'] == "send") {
$canSend = \Bitrix\Sender\MailingChainTable::isReadyToSend($ID);