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


PHP CExtranet::IsExtranetSocNetGroup方法代码示例

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


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

示例1: __GCEGetGroup

 function __GCEGetGroup(&$group_id, &$arGroupProperties = array(), &$arGroupTmp = array(), $tab = false)
 {
     if (!CModule::IncludeModule("socialnetwork")) {
         $group_id = 0;
         return;
     }
     $arGroup = CSocNetGroup::GetByID($group_id);
     if ($arGroup && ($tab == "edit" && ($arGroup["OWNER_ID"] == $GLOBALS["USER"]->GetID() || CSocNetUser::IsCurrentUserModuleAdmin()) || $tab == "invite" && (CSocNetUser::IsCurrentUserModuleAdmin() || CSocNetGroup::CanUserInitiate($GLOBALS["USER"]->GetID(), $group_id)))) {
         $arGroupTmp["NAME"] = $arGroup["NAME"];
         $arGroupTmp["DESCRIPTION"] = $arGroup["DESCRIPTION"];
         $arGroupTmp["IMAGE_ID_DEL"] = "N";
         $arGroupTmp["SUBJECT_ID"] = $arGroup["SUBJECT_ID"];
         $arGroupTmp["VISIBLE"] = $arGroup["VISIBLE"];
         $arGroupTmp["OPENED"] = $arGroup["OPENED"];
         $arGroupTmp["CLOSED"] = $arGroup["CLOSED"];
         $arGroupTmp["KEYWORDS"] = $arGroup["KEYWORDS"];
         $arGroupTmp["OWNER_ID"] = $arGroup["OWNER_ID"];
         $arGroupTmp["INITIATE_PERMS"] = $arGroup["INITIATE_PERMS"];
         $arGroupTmp["SPAM_PERMS"] = $arGroup["SPAM_PERMS"];
         $arGroupTmp["IMAGE_ID"] = $arGroup["IMAGE_ID"];
         $arGroupTmp["IMAGE_ID_FILE"] = CFile::GetFileArray($arGroup["IMAGE_ID"]);
         $arGroupTmp["IMAGE_ID_IMG"] = '<img src="' . ($arGroupTmp["IMAGE_ID_FILE"] != false ? $arGroupTmp["IMAGE_ID_FILE"]["SRC"] : "/bitrix/images/1.gif") . '" height="60" class="sonet-group-create-popup-image" id="sonet_group_create_popup_image" border="0">';
         foreach ($arGroupProperties as $field => $arUserField) {
             if (array_key_exists($field, $arGroup)) {
                 $arGroupProperties[$field]["VALUE"] = $arGroup["~" . $field];
                 $arGroupProperties[$field]["ENTITY_VALUE_ID"] = $arGroup["ID"];
             }
         }
         $arGroupTmp["IS_EXTRANET_GROUP"] = "N";
         if (CModule::IncludeModule("extranet") && CExtranet::IsExtranetSocNetGroup($group_id)) {
             $arGroupTmp["IS_EXTRANET_GROUP"] = "Y";
         }
     } else {
         $arGroupTmp["VISIBLE"] = "Y";
         $arGroupTmp["IS_EXTRANET_GROUP"] = "N";
         $group_id = 0;
     }
 }
开发者ID:webgksupport,项目名称:alpina,代码行数:38,代码来源:include.php

示例2: BuildDialog


//.........这里部分代码省略.........
					<td class="bxec-scale-cont"><label for="<?php 
        echo $id;
        ?>
_plan_scale_sel"><?php 
        echo GetMessage('EC_SCALE');
        ?>
:</label>
						<select id="<?php 
        echo $id;
        ?>
_plan_scale_sel">
							<option value="0">30 <?php 
        echo GetMessage('EC_EDEV_REM_MIN');
        ?>
</option>
							<option value="1">1 <?php 
        echo GetMessage('EC_PL_DUR_HOUR1');
        ?>
</option>
							<option value="2">2 <?php 
        echo GetMessage('EC_PL_DUR_HOUR2');
        ?>
</option>
							<option value="3">1 <?php 
        echo GetMessage('EC_JS_DAY_P');
        ?>
</option>
						</select>
					</td>
					<td class="bxec-separator-gr" rowSpan="2"></td>
					<td rowSpan="2"><div class="bxec-grid-cont-title"></div></td>
				</tr>
				<tr class="bxec-header">
					<td class="bxec-user">
						<div><?php 
        echo GetMessage('EC_EDEV_GUESTS');
        ?>
							<span id="<?php 
        echo $id;
        ?>
pl-count"></span>
							<i class="bxplan-del bxplan-del-all" id="<?php 
        echo $id;
        ?>
_planner_del_all" title="<?php 
        echo GetMessage('EC_DEL_ALL_GUESTS_TITLE');
        ?>
"></i>
						</div>
					</td>
				</tr>
				<tr>
					<td><div class="bxec-user-list-div"><div class="bxec-empty-list"> <?php 
        echo GetMessage('EC_NO_ATTENDEES');
        ?>
</div></div></td>
					<td class="bxec-separator"></td>
					<td><div class="bxec-grid-cont"><div class="bxec-gacc-cont"></div>
						<div class="bxecp-selection" id="<?php 
        echo $id;
        ?>
_plan_selection"  title="<?php 
        echo GetMessage('EC_PL_EVENT');
        ?>
"><img src="/bitrix/images/1.gif" class="bxecp-sel-left" title="<?php 
        echo GetMessage('EC_PL_EVENT_MOVE_LEFT');
        ?>
" /><img src="/bitrix/images/1.gif" class="bxecp-sel-right" title="<?php 
        echo GetMessage('EC_PL_EVENT_MOVE_RIGHT');
        ?>
" /><img src="/bitrix/images/1.gif" class="bxecp-sel-mover" title="<?php 
        echo GetMessage('EC_PL_EVENT_MOVE');
        ?>
" /></div>
					</div>
					<div class="bxec-empty-list2"><?php 
        echo GetMessage('EC_NO_GUEST_MESS');
        ?>
</div>
					</td>
				</tr>
			</table>
		</div>
		</div>
		</td>
	</tr>
</table>
<script>
function BXPlannerAttendeeOnchange(arUsers){BX.onCustomEvent(window, 'onPlannerAttendeeOnChange', [arUsers]);}
</script>
<?php 
        $isExtranetGroup = false;
        if ($Params["bSocNet"] && $Params["type"] == "group" && intval($Params["ownerId"]) > 0 && CModule::IncludeModule("extranet")) {
            $isExtranetGroup = CExtranet::IsExtranetSocNetGroup($Params["ownerId"]);
        }
        $APPLICATION->IncludeComponent("bitrix:intranet.user.selector.new", "", array("MULTIPLE" => "Y", "NAME" => "BXPlannerUserSelect", "VALUE" => array(), "POPUP" => "Y", "ON_CHANGE" => "BXPlannerAttendeeOnchange", "SITE_ID" => SITE_ID, "NAME_TEMPLATE" => CCalendar::GetUserNameTemplate(), "SHOW_EXTRANET_USERS" => $isExtranetGroup ? "FROM_EXACT_GROUP" : "NONE", "EX_GROUP" => $isExtranetGroup ? $Params["ownerId"] : ""), null, array("HIDE_ICONS" => "Y"));
        ?>
</div>
<?php 
    }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:101,代码来源:calendar_planer.php

示例3: DialogSuperpose

    public static function DialogSuperpose($Params)
    {
        global $APPLICATION;
        $id = $Params['id'];
        $arTypes = array(array("TITLE" => "EC_SUPERPOSE_GR_USER", "ID" => "user"));
        ?>
<div id="bxec_superpose_<?php 
        echo $id;
        ?>
" class="bxec-popup bxec-popup-sp-dialog">
	<div class="bxc-spd-type">
		<div class="bxc-spd-type-title" onclick="BX.toggleClass(this.parentNode, 'bxc-spd-type-collapsed');">
			<span class="bxc-spd-type-title-plus"></span>
			<span class="bxc-spd-type-title-inner"><?php 
        echo GetMessage("EC_SUPERPOSE_GR_USER");
        ?>
</span>
			<a href="javascript:void(0);" class="bxc-spd-del-cat" title="<?php 
        echo GetMessage('EC_DELETE_ALL_USER_CALENDARS');
        ?>
" style="display: none;" id="bxec_sp_dell_all_sp_<?php 
        echo $id;
        ?>
"><?php 
        echo GetMessage('EC_DELETE_DYN_SP_GROUP');
        ?>
</a>
		</div>
		<div class="bxc-spd-type-cont" id="bxec_sp_type_user_cont_<?php 
        echo $id;
        ?>
"></div>
		<?php 
        $isExtranetGroup = false;
        if ($Params["bSocNet"] && $Params["type"] == "group" && intval($Params["ownerId"]) > 0 && CModule::IncludeModule("extranet")) {
            $isExtranetGroup = CExtranet::IsExtranetSocNetGroup($Params["ownerId"]);
        }
        $APPLICATION->IncludeComponent("bitrix:intranet.user.selector.new", "", array("MULTIPLE" => "Y", "NAME" => "BXCalUserSelectSP", "VALUE" => array(), "POPUP" => "Y", "ON_CHANGE" => "bxcUserSelectorOnchange", "NAME_TEMPLATE" => CCalendar::GetUserNameTemplate(), "SITE_ID" => SITE_ID, "SHOW_EXTRANET_USERS" => $isExtranetGroup ? "FROM_EXACT_GROUP" : "NONE", "EX_GROUP" => $isExtranetGroup ? $Params["ownerId"] : ""), null, array("HIDE_ICONS" => "Y"));
        ?>
		<span class="bxc-add-guest-link bxc-add-guest-link-sp"  id="<?php 
        echo $id;
        ?>
_user_control_link_sp"><i></i><span><?php 
        echo GetMessage('EC_USER_ADD_SP_TRACKING');
        ?>
</span></span>
		<div id="<?php 
        echo $id;
        ?>
_sp_user_nf_notice" class="bxec-sprpose-users-nf"><?php 
        echo GetMessage('EC_SP_DIALOG_USERS_NOT_FOUND');
        ?>
</div>
	</div>
	<div class="bxc-spd-type" id="bxec_sp_type_group_<?php 
        echo $id;
        ?>
" style="display: none;">
		<div class="bxc-spd-type-title" onclick="BX.toggleClass(this.parentNode, 'bxc-spd-type-collapsed');">
			<span class="bxc-spd-type-title-plus"></span>
			<span class="bxc-spd-type-title-inner"><?php 
        echo GetMessage("EC_SUPERPOSE_GR_GROUP");
        ?>
</span>
		</div>
		<div class="bxc-spd-type-cont" id="bxec_sp_type_group_cont_<?php 
        echo $id;
        ?>
"></div>
	</div>
	<div  class="bxc-spd-type-com" id="bxec_sp_type_common_<?php 
        echo $id;
        ?>
" style="display: none;"></div>
</div>
<?php 
    }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:77,代码来源:calendar_sceleton.php


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