本文整理汇总了PHP中CSite::SelectBox方法的典型用法代码示例。如果您正苦于以下问题:PHP CSite::SelectBox方法的具体用法?PHP CSite::SelectBox怎么用?PHP CSite::SelectBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSite
的用法示例。
在下文中一共展示了CSite::SelectBox方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CAdminFilter
<form name="find_form" method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
?">
<?php
$oFilter = new CAdminFilter($sTableID . "_filter", array(GetMessage("FFAN_ACTIVE"), GetMessage("FFAN_GROUP_ID")));
$oFilter->Begin();
?>
<tr>
<td><b><?php
echo GetMessage("FFAN_SITE_ID");
?>
:</b></td>
<td>
<?php
echo CSite::SelectBox("filter_site_id", $filter_site_id, "(" . GetMessage("FFAN_ALL") . ")");
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("FFAN_ACTIVE");
?>
:</td>
<td>
<select name="filter_active">
<option value=""><?php
echo htmlspecialcharsex("(" . GetMessage("FFAN_ALL") . ")");
?>
</option>
<option value="Y"<?php
示例2: GetMessage
</tr>
<?
$tabControl->EndCustomField("EXTERNAL_AUTH_ID", '<input type="hidden" name="EXTERNAL_AUTH_ID" value="'.$str_EXTERNAL_AUTH_ID.'">');
endif;
endif;
?>
<?
if($USER->CanDoOperation('view_subordinate_users') || $USER->CanDoOperation('view_all_users')):
$tabControl->BeginCustomField("LID", GetMessage("MAIN_DEFAULT_SITE"));
?>
<tr>
<td><?echo $tabControl->GetCustomLabelHTML()?></td>
<?if(!$canSelfEdit) $dis = " disabled"?>
<td><?php
echo CSite::SelectBox("LID", $str_LID, "", "", $dis);
?>
</td>
</tr>
<?
$tabControl->EndCustomField("LID", '<input type="hidden" name="LID" value="'.$str_LID.'">');
$tabControl->AddCheckBoxField("user_info_event", GetMessage('INFO_FOR_USER'), false, "Y", ($user_info_event=="Y"), (!$canSelfEdit? array("disabled"):array()));
endif;
if(CTimeZone::Enabled())
{
$tabControl->AddSection("USER_TIME_ZONE", GetMessage("user_edit_time_zones"));
$tabControl->AddDropDownField("AUTO_TIME_ZONE", GetMessage("user_edit_time_zones_auto"), false, array(""=>GetMessage("user_edit_time_zones_auto_def"), "Y"=>GetMessage("user_edit_time_zones_auto_yes"), "N"=>GetMessage("user_edit_time_zones_auto_no")), $str_AUTO_TIME_ZONE, array('onchange="this.form.TIME_ZONE.disabled=(this.value != \'N\')"'));
$tabControl->AddDropDownField("TIME_ZONE", GetMessage("user_edit_time_zones_zones"), false, CTimeZone::GetZones(), $str_TIME_ZONE, ($str_AUTO_TIME_ZONE<>"N"? array('disabled') : array()));
}
示例3: GetMessage
}
?>
<?php
}
?>
<?php
if (CSite::IsDistinctDocRoots()) {
?>
<tr class="adm-detail-required-field">
<td><?php
echo GetMessage("FLOW_EDIT_SITE");
?>
</td>
<td><?php
echo CSite::SelectBox("SITE_ID", $str_SITE_ID);
?>
</td>
</tr>
<?php
}
?>
<tr class="adm-detail-required-field">
<td><?php
echo GetMessage("FLOW_FULL_FILENAME");
?>
</td>
<td>
<input type="text" id="FILENAME" name="FILENAME" size="30" maxlength="255" value="<?php
echo $str_FILENAME;
?>
示例4: GetMessage
?>
</td>
</tr>
<tr valign="top" class="heading">
<td colspan="2"><?php
echo GetMessage("STAT_CONDITIONS");
?>
</td>
</tr>
<tr valign="top">
<td align="right"><?php
echo GetMessage("STAT_SITE");
?>
:</td>
<td><?php
echo CSite::SelectBox("SITE_ID", $str_SITE_ID, GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr valign="top">
<td align="right"><?php
echo GetMessage("STAT_MASK");
?>
</td>
<td><input type="text" name="MASK_1" size="3" maxlength="3" value="<?php
echo $str_MASK_1;
?>
"> <input type="text" name="MASK_2" size="3" maxlength="3" value="<?php
echo $str_MASK_2;
?>
"> <input type="text" name="MASK_3" size="3" maxlength="3" value="<?php
示例5: GetMessage
echo CSite::SelectBox("FILTER_MASKS[{$i}][SITE_ID]", $arMask["SITE_ID"], GetMessage("MAIN_ALL"), "");
?>
<br>
</td></tr>
<?php
}
?>
<?php
if (!$bVarsFromForm) {
?>
<tr class="security-addable-row"><td nowrap style="padding-bottom: 3px;">
<input type="text" size="45" name="FILTER_MASKS[n0][MASK]" value=""> <?php
echo GetMessage("SEC_FILTER_SITE");
?>
<?php
echo CSite::SelectBox("FILTER_MASKS[n0][SITE_ID]", "", GetMessage("MAIN_ALL"), "");
?>
<br>
</td></tr>
<?php
}
?>
<tr><td>
<br><input type="button" id="add-button" value="<?php
echo GetMessage("SEC_FILTER_ADD");
?>
">
</td></tr>
</table>
</td>
</tr>
示例6: CAdminFilter
?>
<form name="find_form" method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
?">
<?php
$oFilter = new CAdminFilter($sTableID . "_filter", array(GetMessage("SONET_FILTER_SUBJECT_ID"), GetMessage("SONET_GROUP_NAME"), GetMessage("SONET_OWNER_USER"), GetMessage("SONET_OWNER_ID")));
$oFilter->Begin();
?>
<tr>
<td><?php
echo GetMessage("SONET_FILTER_SITE_ID");
?>
</td>
<td><?php
echo CSite::SelectBox("filter_site_id", $filter_site_id, GetMessage("SONET_SPT_ALL"));
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("SONET_FILTER_SUBJECT_ID");
?>
:</td>
<td>
<select name="filter_subject_id">
<option value="NOT_REF"><?php
echo htmlspecialcharsex(GetMessage("SONET_SPT_ALL"));
?>
</option>
<?php
示例7: GetMessage
</label><br>
<?php
echo CSite::SelectBox("SITE_MESSAGE_LINK_E_SITE", $SITE_MESSAGE_LINK_E_SITE, "", "", $SITE_MESSAGE_LINK != "E" ? 'disabled' : '');
?>
<br>
<input type="radio"<?php
if ($SITE_MESSAGE_LINK == "C") {
echo " checked";
}
?>
name="SITE_MESSAGE_LINK" id="SITE_MESSAGE_LINK_c" value="C" onClick="if(this.checked){document.bform.SITE_MESSAGE_LINK_E_SITE.disabled=true; document.bform.SITE_MESSAGE_LINK_C_SITE.disabled=false}"><label for="SITE_MESSAGE_LINK_c"> <?php
echo GetMessage("MAIN_SITE_CREATE_MESS_TEPL_COPY");
?>
</label><br>
<?php
echo CSite::SelectBox("SITE_MESSAGE_LINK_C_SITE", $SITE_MESSAGE_LINK_C_SITE, "", "", $SITE_MESSAGE_LINK != "C" ? 'disabled' : '');
?>
<br />
</td>
</tr>
<?php
}
?>
<?php
ConditionJS();
?>
<tr class="heading">
<td colspan="2"><?php
echo GetMessage("MAIN_SITE_EDIT_TEMPLATE");
?>
示例8: CAdminFilter
?>
<form name="find_form" method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
?">
<?php
$oFilter = new CAdminFilter($sTableID . "_filter", array(GetMessage("SAP1_ACTIVE")));
$oFilter->Begin();
?>
<tr>
<td><?php
echo GetMessage("SAP1_SITE1");
?>
</td>
<td><?php
echo CSite::SelectBox("filter_site_id", $filter_site_id, GetMessage("SAP1_ALL"));
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("SAP1_ACTIVE1");
?>
</td>
<td>
<select name="filter_active">
<option value=""><?php
echo htmlspecialcharsex(GetMessage("SAP1_ALL"));
?>
</option>
<option value="Y"<?php
示例9: BeginNote
echo BeginNote();
if(defined("FX_UTF"))
echo GetMessage("MAIN_TEMPLATE_LOAD_WARN_UTF");
else
echo GetMessage("MAIN_TEMPLATE_LOAD_WARN_NON_UTF");
echo EndNote();
?></td>
</tr>
<tr>
<td><?echo GetMessage("MAIN_TEMPLATE_LOAD_ID")?></td>
<td><input type="text" name="ID" Id="ID" size="20" maxlength="255" value="<? echo $str_ID?>"></td>
</tr>
<tr>
<td><?echo GetMessage("MAIN_TEMPLATE_LOAD_SITE_ID")?></td>
<td><?php
echo CSite::SelectBox("SITE_ID", $str_SITE_ID, GetMessage("MAIN_TEMPLATE_LOAD_SITE_ID_N"));
?>
</td>
</tr>
<tr>
<td><?echo GetMessage("MAIN_TEMPLATE_LOAD_GOTO_EDIT")?></td>
<td><input type="checkbox" name="goto_edit" value="Y"></td>
</tr>
<?
$tabControl->Buttons();
?>
<input type="hidden" name="action" value="import">
<input <?if(!$isAdmin) echo "disabled" ?> type="submit" name="import" value="<?echo GetMessage("MAIN_TEMPLATE_LOAD_SUBMIT")?>" class="adm-btn-save">
<?
$tabControl->End();
?>
示例10: array
?">
<?php
$arFindFields = array(GetMessage("STORE_SITE_ID"));
$entityId = "CAT_STORE";
$USER_FIELD_MANAGER->AddFindFields($entityId, $arFindFields);
$oFilter = new CAdminFilter($sTableID . "_filter", $arFindFields);
$oFilter->Begin();
?>
<tr>
<td><?php
echo GetMessage("STORE_SITE_ID");
?>
:</td>
<td>
<?php
echo CSite::SelectBox("filter_site_id", $filter_site_id, "(" . GetMessage("STORE_SITE_ID") . ")");
?>
</td>
</tr>
<?php
$USER_FIELD_MANAGER->AdminListShowFilter($entityId);
?>
<?php
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form"));
$oFilter->End();
?>
</form>
<?php
$lAdmin->DisplayList();
示例11: GetMessage
for (var i = 0; i < arSitesArray.length; i++)
{
if (arSitesArray[i] == val)
{
currency = arCurrenciesArray[i];
break;
}
}
document.getElementById('DIV_PAID_SUM_CURRENCY').innerHTML = currency;
document.getElementById('DIV_PENDING_SUM_CURRENCY').innerHTML = currency;
}
//-->
</script>
<?php
echo CSite::SelectBox("SITE_ID", $str_SITE_ID, "", "OnChangeSite(this[this.selectedIndex].value)");
?>
</td>
</tr>
<tr class="adm-detail-required-field">
<td><?php
echo GetMessage("SAE_USER");
?>
</td>
<td>
<?php
$userName = "";
if ($str_USER_ID > 0) {
$dbUser = CUser::GetByID($str_USER_ID);
if ($arUser = $dbUser->Fetch()) {
$userName = "[<a class=\"tablebodylink\" title=\"" . GetMessage("SAE_PROFILE") . "\" href=\"/bitrix/admin/user_edit.php?lang=" . LANGUAGE_ID . "&ID=" . $str_USER_ID . "\">" . $str_USER_ID . "</a>] (" . htmlspecialcharsex($arUser["LOGIN"]) . ") " . htmlspecialcharsex($arUser["NAME"]) . " " . htmlspecialcharsex($arUser["LAST_NAME"]);
示例12: GetMessage
</tr>
<?
$tabControl->EndCustomField("EXTERNAL_AUTH_ID", '<input type="hidden" name="EXTERNAL_AUTH_ID" value="'.$str_EXTERNAL_AUTH_ID.'">');
endif;
endif;
?>
<?
if($USER->CanDoOperation('view_subordinate_users') || $USER->CanDoOperation('view_all_users')):
$tabControl->BeginCustomField("LID", GetMessage("MAIN_DEFAULT_SITE"));
?>
<tr>
<td><?echo $tabControl->GetCustomLabelHTML()?></td>
<?if(!$canSelfEdit) $dis = " disabled"?>
<td><?php
echo CSite::SelectBox("LID", $str_LID, "", "", "style=\"width:220px\"" . $dis);
?>
</td>
</tr>
<?
$tabControl->EndCustomField("LID", '<input type="hidden" name="LID" value="'.$str_LID.'">');
$params = array('id="bx_user_info_event"');
if(!$canSelfEdit || $str_EXTERNAL_AUTH_ID <> '')
{
$params[] = "disabled";
}
$tabControl->AddCheckBoxField("user_info_event", GetMessage('INFO_FOR_USER'), false, "Y", ($_REQUEST["user_info_event"]=="Y"), $params);
endif;
if(CTimeZone::Enabled())
示例13: GetMessage
GetMessage("CAT_DOC_TYPE"),
GetMessage("CAT_DOC_DATE"),
GetMessage("CAT_DOC_CONTRACTOR"),
GetMessage("CAT_DOC_STATUS"),
)
);
$oFilter->Begin();
?>
<tr>
<td><?php
echo GetMessage("CAT_DOC_SITE_ID");
?>
:</td>
<td>
<?echo CSite::SelectBox("filter_site_id", $filter_site_id, "(".GetMessage("CAT_DOC_SITE_ID").")"); ?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("CAT_DOC_TYPE");
?>
:</td>
<td>
<select name="filter_doc_type">
<option value=""><?php
echo htmlspecialcharsex("(" . GetMessage("CAT_DOC_TYPE") . ")");
?>
</option>
<?
示例14: htmlspecialcharsbx
"FRAME_MASK" => htmlspecialcharsbx($ar["FRAME_MASK"]),
);
}
?>
<tr>
<td class="adm-detail-valign-top" width="40%"><?echo GetMessage("SEC_FRAME_MASKS")?></td>
<td width="60%">
<table cellpadding="0" cellspacing="0" border="0" class="nopadding" width="100%" id="tbFRAME_MASKS">
<?foreach($arMasks as $i => $arMask):?>
<tr><td nowrap style="padding-bottom: 3px;">
<input type="text" size="45" name="FRAME_MASKS[<?echo $i?>][MASK]" value="<?echo $arMask["FRAME_MASK"]?>"> <?echo GetMessage("SEC_FRAME_SITE")?> <?echo CSite::SelectBox("FRAME_MASKS[$i][SITE_ID]", $arMask["SITE_ID"], GetMessage("MAIN_ALL"), "");?><br>
</td></tr>
<?endforeach;?>
<?if(!$bVarsFromForm):?>
<tr><td nowrap style="padding-bottom: 3px;">
<input type="text" size="45" name="FRAME_MASKS[n0][MASK]" value=""> <?echo GetMessage("SEC_FRAME_SITE")?> <?echo CSite::SelectBox("FRAME_MASKS[n0][SITE_ID]", "", GetMessage("MAIN_ALL"), "");?><br>
</td></tr>
<?endif;?>
<tr><td>
<br><input type="button" value="<?echo GetMessage("SEC_FRAME_ADD")?>" onClick="addNewRow('tbFRAME_MASKS')">
</td></tr>
</table>
</td>
</tr>
<?
$tabControl->Buttons(
array(
"disabled"=>(!$canWrite),
"back_url"=>$_GET["return_url"]? $_GET["return_url"]: "security_iprule_list.php?lang=".LANG,
)
);
示例15: ShowExactMatchCheckbox
?>
" size="47"><?php
echo ShowExactMatchCheckbox("find_modified_user_id");
?>
<?php
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("FLOW_LIST_SITE");
?>
:</td>
<td><?php
echo CSite::SelectBox("find_site_id", $find_site_id, GetMessage("FLOW_LIST_SITE_ALL"));
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("FLOW_F_FILENAME");
?>
:</td>
<td><input type="text" name="find_filename" value="<?php
echo htmlspecialcharsbx($find_filename);
?>
" size="47"><?php
echo ShowExactMatchCheckbox("find_filename");
?>
<?php