当前位置: 首页>>代码示例>>PHP>>正文


PHP CGroup::GetDropDownList方法代码示例

本文整理汇总了PHP中CGroup::GetDropDownList方法的典型用法代码示例。如果您正苦于以下问题:PHP CGroup::GetDropDownList方法的具体用法?PHP CGroup::GetDropDownList怎么用?PHP CGroup::GetDropDownList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CGroup的用法示例。


在下文中一共展示了CGroup::GetDropDownList方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: htmlspecialcharsbx

	<td><input type="text" name="find_name" value="<?echo htmlspecialcharsbx($find_name)?>" size="47"><?php 
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_F_KEYWORDS")?></td>
	<td><input type="text" name="find_keywords" value="<?echo htmlspecialcharsbx($find_keywords)?>" size="47"><?php 
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr valign="top">
	<td><?echo GetMessage("F_GROUP")?><br><img src="/freetrix/images/main/mouse.gif" width="44" height="21" border="0" alt=""></td>
	<td><?
	$z = CGroup::GetDropDownList("AND ID!=2");
	echo SelectBoxM("find_group_id[]", $z, $find_group_id, "", false, 10);
	?></td>
</tr>
<input type="hidden" name="FN" value="<?echo htmlspecialcharsbx($FN)?>">
<input type="hidden" name="FC" value="<?echo htmlspecialcharsbx($FC)?>">
<input type="hidden" name="JSFUNC" value="<?echo htmlspecialcharsbx($JSFUNC)?>">
<?
$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_popup_admin.php");
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:user_search.php

示例2: GetMessage

        ?>
</textarea><?php 
    }
    ?>
</td>
	</tr>
	<?php 
}
?>
	<tr>
		<td valign="top"><?php 
echo GetMessage("EXTRANET_USER_GROUP");
?>
</td>
		<td valign="middle"><?php 
echo SelectBox("EXTRANET_USER_GROUP_ID", CGroup::GetDropDownList("and ACTIVE='Y' and ID <> 2"), GetMessage("MAIN_NO"), htmlspecialcharsbx($EXTRANET_USER_GROUP_ID));
?>
</td>
	</tr>
<?php 
$tabControl->Buttons();
?>
<input type="submit" name="Update" value="<?php 
echo GetMessage("EXTRANET_SAVE");
?>
">
<input type="hidden" name="Update" value="Y">
<input type="reset" name="reset" value="<?php 
echo GetMessage("EXTRANET_RESET");
?>
">
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:options.php

示例3: array

// "type" => "html",
// "value" => "&nbsp;".GetMessage("FILEMAN_ADMIN_IN")."&nbsp;"
// );
// $arGrActionAr["copy1"] = array(
// "type" => "html",
// "value" => $strHTML
// );
// }
if ($logical != "Y") {
    $lAdmin->AddGroupActionTable($arGrActionAr, array());
}
$defaultEdit = COption::GetOptionString("fileman", "default_edit", "text");
if ($USER->CanDoOperation('view_groups') && $USER->CanDoFileOperation('fm_view_permission', $arPath)) {
    $arDDMenu = array();
    $isB = false;
    $dbRes = CGroup::GetDropDownList();
    while ($arRes = $dbRes->Fetch()) {
        if ($show_perms_for == $arRes["REFERENCE_ID"]) {
            $isB = true;
        }
        $arDDMenu[] = array("TEXT" => $arRes["REFERENCE"], "ACTION" => $lAdmin->ActionAjaxReload("fileman_admin.php?" . $addUrl_s . "&site=" . urlencode($site) . "&path=" . urlencode($path) . "&show_perms_for=" . $arRes["REFERENCE_ID"]) . ';return false;', "ICON" => $show_perms_for == $arRes["REFERENCE_ID"] ? "checked" : "");
    }
    $arDDMenu[] = array("TEXT" => GetMessage("FILEMAN_ADM_CUR_USER"), "ACTION" => $lAdmin->ActionAjaxReload("fileman_admin.php?" . $addUrl_s . "&site=" . urlencode($site) . "&path=" . urlencode($path) . "&show_perms_for=0") . ';return false;', "ICON" => !$isB ? "checked" : "");
}
$aContext = array();
if (!$bSearch) {
    if ($USER->CanDoOperation('fileman_admin_folders') && $USER->CanDoFileOperation('fm_create_new_folder', $arPath)) {
        $aContext[] = array("TEXT" => GetMessage("FILEMAN_ADMIN_ADD_FOLDER"), "ICON" => "btn_new_folder", "LINK" => "fileman_newfolder.php?" . $addUrl . "&site=" . $site . "&path=" . urlencode($path) . "", "TITLE" => GetMessage("FILEMAN_ADMIN_ADD_FOLDER"));
    }
    if ($USER->CanDoOperation('fileman_admin_files') && $USER->CanDoFileOperation('fm_create_new_file', $arPath)) {
        $aContext[] = array("TEXT" => GetMessage("FILEMAN_ADMIN_ADD_FILE"), "ICON" => "btn_new_file", "LINK" => $defaultEdit == 'html' ? "fileman_html_edit.php?" . $addUrl . "&site=" . $site . "&path=" . urlencode($path) . "&new=y" : ($defaultEdit == 'php' && $USER->IsAdmin() ? "fileman_file_edit.php?" . $addUrl . "&site=" . $site . "&full_src=Y&path=" . urlencode($path) . "&new=y" : "fileman_file_edit.php?" . $addUrl . "&site=" . $site . "&path=" . urlencode($path) . "&new=y"), "TITLE" => GetMessage("FILEMAN_ADMIN_ADD_FILE"));
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:fileman_admin.php

示例4: array

		</td>
	</tr>
	<?php 
}
//********************
//Access Tab
//********************
$tabControl->BeginNextTab();
?>

	<?php 
$arr_ref = array();
$arr_ref_id = array();
$arr_ref[] = GetMessage("FORM_OWNER");
$arr_ref_id[] = 0;
$z = CGroup::GetDropDownList("and ACTIVE='Y' and ID>1");
while ($zr = $z->Fetch()) {
    $reference_id = $zr["REFERENCE_ID"];
    $reference = $zr["REFERENCE"];
    if (strlen($reference_id) <= 0) {
        $reference_id = $zr["reference_id"];
    }
    if (strlen($reference) <= 0) {
        $reference = $zr["reference"];
    }
    $arr_ref[] = $reference;
    $arr_ref_id[] = $reference_id;
}
?>
	<tr>
		<td><?php 
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:form_status_edit.php

示例5: IncludeModuleLangFile

<?php

if ($USER->IsAdmin() && CModule::IncludeModule('iblock') && CModule::IncludeModule('lists')) {
    IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/options.php");
    IncludeModuleLangFile(__FILE__);
    $aTabs = array(array("DIV" => "permissions", "TAB" => GetMessage("LISTS_OPTIONS_TAB_PERMISSIONS"), "TITLE" => GetMessage("LISTS_OPTIONS_TAB_TITLE_PERMISSIONS"), "OPTIONS" => array()));
    if (IsModuleInstalled('socialnetwork')) {
        $aTabs[] = array("DIV" => "socnet", "TAB" => GetMessage("LISTS_OPTIONS_TAB_SOCNET"), "TITLE" => GetMessage("LISTS_OPTIONS_TAB_TITLE_SOCNET"), "OPTIONS" => array());
    }
    $arGroups = array("REFERENCE" => array(), "REFERENCE_ID" => array());
    $rsGroups = CGroup::GetDropDownList();
    while ($ar = $rsGroups->Fetch()) {
        $arGroups["REFERENCE"][] = $ar["REFERENCE"];
        $arGroups["REFERENCE_ID"][] = $ar["REFERENCE_ID"];
    }
    $arIBTypes = array("REFERENCE" => array(), "REFERENCE_ID" => array());
    $rsIBTypes = CIBlockType::GetList();
    while ($arIBType = $rsIBTypes->GetNext()) {
        $arIBTypes["REFERENCE"][] = $arIBType["~ID"];
        $arIBTypes["REFERENCE_ID"][] = $arIBType["~ID"];
    }
    $tabControl = new CAdminTabControl("tabControl", $aTabs);
    if ($REQUEST_METHOD == "POST" && strlen($Update . $Apply . $RestoreDefaults) > 0 && check_bitrix_sessid()) {
        if (strlen($RestoreDefaults) > 0) {
            COption::RemoveOption("lists");
        } else {
            $arRights = array();
            if (isset($_POST["type_right"]) && is_array($_POST["type_right"]) && isset($_POST["group_right"]) && is_array($_POST["group_right"])) {
                $keys = array_keys($_POST["type_right"]);
                foreach ($keys as $i) {
                    if (array_key_exists($i, $_POST["type_right"]) && array_key_exists($i, $_POST["group_right"])) {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:options.php

示例6: GetUserGroupSelect

 /**
  * Селектор юзергроупов
  * @static
  * @param  $sSelectName
  * @param  $aSelectedValues
  * @param  $bIsMultiple
  * @return void
  */
 public static function GetUserGroupSelect($sSelectName, $aSelectedValues = array(), $bIsMultiple = true)
 {
     if (!is_array($aSelectedValues)) {
         $aSelectedValues = array($aSelectedValues);
     }
     static $aUserGroups = array();
     if (empty($aUserGroups)) {
         $oUserGroups = CGroup::GetDropDownList();
         while ($aUG = $oUserGroups->Fetch()) {
             $aUserGroups[$aUG['REFERENCE_ID']] = $aUG['REFERENCE'];
         }
     }
     $sResult = '';
     if ($bIsMultiple) {
         $sResult .= '<select name="' . $sSelectName . '" multiple="multiple">';
     } else {
         $sResult .= '<select name="' . $sSelectName . '">';
     }
     if (!empty($aUserGroups)) {
         foreach ($aUserGroups as $sKey => $sOption) {
             $sResult .= '<option value="' . $sKey . '" ' . (in_array($sKey, $aSelectedValues) ? 'selected="selected"' : '') . ' >' . $sOption . '</option>';
         }
     }
     $sResult .= '</select>';
     return $sResult;
 }
开发者ID:ASDAFF,项目名称:BitrixGems,代码行数:34,代码来源:BitrixGemsHelper.class.php

示例7: GetMessage

		<td class="adm-detail-valign-top"><?php 
echo GetMessage('FLOW_MOVE_RIGHTS');
?>
<br><img src="/bitrix/images/workflow/mouse.gif" width="44" height="21" border=0 alt=""></td>
		<td><?php 
echo SelectBoxM("arPERMISSION_M[]", CGroup::GetDropDownList(""), $arPERMISSION_M, "", true, 8);
?>
</td>
	</tr>
	<tr>
		<td class="adm-detail-valign-top"><?php 
echo GetMessage('FLOW_EDIT_RIGHTS');
?>
<br><img src="/bitrix/images/workflow/mouse.gif" width="44" height="21" border=0 alt=""></td>
		<td><?php 
echo SelectBoxM("arPERMISSION_E[]", CGroup::GetDropDownList(""), $arPERMISSION_E, "", true, 8);
?>
</td>
	</tr>
	<tr>
		<td><label for="notify"><?php 
echo GetMessage("FLOW_NOTIFY");
?>
</label></td>
		<td><?php 
echo InputType("checkbox", "NOTIFY", "Y", $str_NOTIFY, false, "", 'id="notify"');
?>
</td>
	</tr>
<?php 
$tabControl->Buttons(array("disabled" => $WORKFLOW_RIGHT < "W", "back_url" => "workflow_status_list.php?lang=" . LANGUAGE_ID));
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:workflow_status_edit.php


注:本文中的CGroup::GetDropDownList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。