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


PHP CUtil::GetPopupSize方法代码示例

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


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

示例1: GetHTMLEditorSettings


//.........这里部分代码省略.........
SETTINGS['<?php 
                echo $edname;
                ?>
'].arTaskbarSettings["<?php 
                echo $tname;
                ?>
"] = {show: <?php 
                echo $tskbr['show'] ? 'true' : 'false';
                ?>
, set: <?php 
                echo $tskbr['set'] == 2 ? 2 : 3;
                ?>
, active: <?php 
                echo $tskbr['active'] ? 'true' : 'false';
                ?>
};<?php 
                if ($tskbr['show'] && in_array($tname, $arTaskbars)) {
                    switch ($tname) {
                        case 'BXSnippetsTaskbar':
                            $loadParams .= 's';
                            break;
                        case 'BXComponents2Taskbar':
                            $loadParams .= 'c2';
                            break;
                    }
                }
            }
        } else {
            if (in_array('BXSnippetsTaskbar', $arTaskbars)) {
                $loadParams .= 's';
            }
            if (in_array('BXComponents2Taskbar', $arTaskbars)) {
                $loadParams .= 'c2';
            }
        }
        //Get taskbarset settings
        $taskbarset = CUserOptions::GetOption("fileman", "taskbarset_settings_" . $edname, false);
        if ($taskbarset !== false && CheckSerializedData($taskbarset, 10)) {
            $taskbarset = unserialize($taskbarset);
        } else {
            $taskbarset = false;
        }
        if (is_array($taskbarset)) {
            ?>
SETTINGS['<?php 
            echo $edname;
            ?>
'].arTBSetsSettings = [];<?php 
            foreach ($taskbarset as $iNum => $tskbrset) {
                if ($iNum != 2) {
                    $iNum = 3;
                }
                ?>
SETTINGS['<?php 
                echo $edname;
                ?>
'].arTBSetsSettings["<?php 
                echo intVal($iNum);
                ?>
"] = {show: <?php 
                echo $tskbrset['show'] ? 'true' : 'false';
                ?>
, size: <?php 
                echo intVal($tskbrset['size']);
                ?>
};
			<?php 
            }
        }
        $show_tooltips = CUserOptions::GetOption("fileman", "show_tooltips" . $edname, "Y");
        $visualEffects = CUserOptions::GetOption("fileman", "visual_effects" . $edname, "Y");
        $arC2DS = CUtil::GetPopupSize("bx_edc2_" . $edname, array("width" => 650, "height" => 450));
        ?>

			SETTINGS['<?php 
        echo $edname;
        ?>
'].showTooltips4Components = <?php 
        echo $show_tooltips == "N" ? "false" : "true";
        ?>
;
			SETTINGS['<?php 
        echo $edname;
        ?>
'].visualEffects = <?php 
        echo $visualEffects == "N" ? "false" : "true";
        ?>
;

			window.comp2_dialog_size = {width: '<?php 
        echo $arC2DS['width'];
        ?>
', height: '<?php 
        echo $arC2DS['height'];
        ?>
'};
		</script>
		<?php 
        //return $str_res;
    }
开发者ID:Satariall,项目名称:izurit,代码行数:101,代码来源:fileman.php

示例2: array

.FieldEdit()"></div>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</div>

</div>
<?php 
}
?>

<?php 
$variables = array("mess" => array("collapseTabs" => GetMessage("interface_form_close_all"), "expandTabs" => GetMessage("interface_form_show_all"), "settingsTitle" => GetMessage("intarface_form_settings"), "settingsSave" => GetMessage("interface_form_save"), "tabSettingsTitle" => GetMessage("intarface_form_tab"), "tabSettingsSave" => "OK", "tabSettingsName" => GetMessage("intarface_form_tab_name"), "tabSettingsCaption" => GetMessage("intarface_form_tab_title"), "fieldSettingsTitle" => GetMessage("intarface_form_field"), "fieldSettingsName" => GetMessage("intarface_form_field_name"), "sectSettingsTitle" => GetMessage("intarface_form_sect"), "sectSettingsName" => GetMessage("intarface_form_sect_name")), "ajax" => array("AJAX_ID" => $arParams["AJAX_ID"], "AJAX_OPTION_SHADOW" => $arParams["AJAX_OPTION_SHADOW"] == "Y"), "settingWndSize" => CUtil::GetPopupSize("InterfaceFormSettingWnd"), "tabSettingWndSize" => CUtil::GetPopupSize("InterfaceFormTabSettingWnd", array('width' => 400, 'height' => 200)), "fieldSettingWndSize" => CUtil::GetPopupSize("InterfaceFormFieldSettingWnd", array('width' => 400, 'height' => 150)), "component_path" => $component->GetRelativePath(), "template_path" => $this->GetFolder(), "sessid" => bitrix_sessid(), "current_url" => $APPLICATION->GetCurPageParam("", array("bxajaxid", "AJAX_CALL")), "GRID_ID" => $arParams["THEME_GRID_ID"]);
?>
<script type="text/javascript">
var formSettingsDialog<?php 
echo $arParams["FORM_ID"];
?>
;
bxForm_<?php 
echo $arParams["FORM_ID"];
?>
 = new BxCrmInterfaceForm('<?php 
echo $arParams["FORM_ID"];
?>
', <?php 
echo CUtil::PhpToJsObject(array_keys($arResult["TABS"]));
?>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php

示例3: GetPopupLink

 function GetPopupLink($arUrl)
 {
     CUtil::InitJSCore(array('window', 'ajax'));
     if (class_exists('CUserOptions') && (!is_array($arUrl['PARAMS']) || !isset($arUrl['PARAMS']['resizable']) || $arUrl['PARAMS']['resizable'] !== false)) {
         $pos = strpos($arUrl['URL'], '?');
         if ($pos === false) {
             $check_url = $arUrl['URL'];
         } else {
             $check_url = substr($arUrl['URL'], 0, $pos);
         }
         $arPos = CUtil::GetPopupSize($check_url, $arUrl['PARAMS']);
         if ($arPos['width']) {
             if (!is_array($arUrl['PARAMS'])) {
                 $arUrl['PARAMS'] = array();
             }
             $arUrl['PARAMS']['width'] = $arPos['width'];
             $arUrl['PARAMS']['height'] = $arPos['height'];
         }
     }
     $dialog_class = 'CDialog';
     if (isset($arUrl['PARAMS']['dialog_type']) && $arUrl['PARAMS']['dialog_type']) {
         switch ($arUrl['PARAMS']['dialog_type']) {
             case 'EDITOR':
                 $dialog_class = 'CEditorDialog';
                 break;
             case 'ADMIN':
                 $dialog_class = 'CAdminDialog';
                 break;
             default:
                 $dialog_class = 'CDialog';
         }
     } elseif (strpos($arUrl['URL'], 'bxpublic=') !== false) {
         $dialog_class = 'CAdminDialog';
     }
     $arDialogParams = array('content_url' => $arUrl['URL'], 'width' => null, 'height' => null);
     if (isset($arUrl['PARAMS']['width'])) {
         $arDialogParams['width'] = intval($arUrl['PARAMS']['width']);
     }
     if (isset($arUrl['PARAMS']['height'])) {
         $arDialogParams['height'] = intval($arUrl['PARAMS']['height']);
     }
     if (isset($arUrl['PARAMS']['min_width'])) {
         $arDialogParams['min_width'] = intval($arUrl['PARAMS']['min_width']);
     }
     if (isset($arUrl['PARAMS']['min_height'])) {
         $arDialogParams['min_height'] = intval($arUrl['PARAMS']['min_height']);
     }
     if (isset($arUrl['PARAMS']['resizable']) && $arUrl['PARAMS']['resizable'] === false) {
         $arDialogParams['resizable'] = false;
     }
     if (isset($arUrl['POST']) && $arUrl['POST']) {
         $arDialogParams['content_post'] = $arUrl['POST'];
     }
     return '(new BX.' . $dialog_class . '(' . CUtil::PhpToJsObject($arDialogParams) . ')).Show()';
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:55,代码来源:main.php

示例4: array

        ?>
.DeleteFilter(this.form.filters_list.value)"></div>
	</div>
</div>
</div>
<?php 
    }
    ?>

</div>
<?php 
}
?>

<?php 
$variables = array("mess" => array("calend_title" => GetMessage("interface_grid_date"), "for_all_confirm" => GetMessage("interface_grid_del_confirm"), "settingsTitle" => GetMessage("interface_grid_settings_title"), "settingsSave" => GetMessage("interface_grid_settings_save"), "viewsTitle" => GetMessage("interface_grid_views_title"), "viewsApply" => GetMessage("interface_grid_views_apply"), "viewsApplyTitle" => GetMessage("interface_grid_views_apply_title"), "viewsNoName" => GetMessage("interface_grid_view_noname"), "viewsNewView" => GetMessage("interface_grid_views_new"), "viewsDelete" => GetMessage("interface_grid_del_view"), "viewsFilter" => GetMessage("interface_grid_filter_sel"), "filtersTitle" => GetMessage("interface_grid_filter_saved"), "filtersApply" => GetMessage("interface_grid_apply"), "filtersApplyTitle" => GetMessage("interface_grid_filter_apply_title"), "filtersNew" => GetMessage("interface_grid_filter_new"), "filtersDelete" => GetMessage("interface_grid_filter_del"), "filterSettingsTitle" => GetMessage("interface_grid_filter_title"), "filterHide" => GetMessage("interface_grid_to_head_1"), "filterShow" => GetMessage("interface_grid_from_head_1"), "filterApplyTitle" => GetMessage("interface_grid_filter_apply"), "renameTitle" => GetMessage("interface_grid_name_title")), "ajax" => array("AJAX_ID" => $arParams["AJAX_ID"], "AJAX_OPTION_SHADOW" => $arParams["AJAX_OPTION_SHADOW"] == "Y"), "settingWndSize" => CUtil::GetPopupSize("InterfaceGridSettingWnd"), "viewsWndSize" => CUtil::GetPopupSize("InterfaceGridViewsWnd", array('height' => 350, 'width' => 500)), "filtersWndSize" => CUtil::GetPopupSize("InterfaceGridFiltersWnd", array('height' => 350, 'width' => 500)), "filterSettingWndSize" => CUtil::GetPopupSize("InterfaceGridFilterSettingWnd"), "renameWndSize" => CUtil::GetPopupSize("InterfaceGridRenameWnd", array('height' => 150, 'width' => 500)), "calendar_image" => $this->GetFolder() . "/images/calendar.gif", "server_time" => time() + date("Z") + CTimeZone::GetOffset(), "component_path" => $component->GetRelativePath(), "template_path" => $this->GetFolder(), "sessid" => bitrix_sessid(), "current_url" => $arResult["CURRENT_URL"], "user_authorized" => $USER->IsAuthorized());
?>

<script type="text/javascript">
var settingsDialog<?php 
echo $arParams["GRID_ID"];
?>
;
var viewsDialog<?php 
echo $arParams["GRID_ID"];
?>
;
var filtersDialog<?php 
echo $arParams["GRID_ID"];
?>
;
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:template.php

示例5: array

		"filtersApplyTitle"=>GetMessage("interface_grid_filter_apply_title"),
		"filtersNew"=>GetMessage("interface_grid_filter_new"),
		"filtersDelete"=>GetMessage("interface_grid_filter_del"),
		"filterSettingsTitle"=>GetMessage("interface_grid_filter_title"),
		"filterHide"=>GetMessage("interface_grid_to_head_1"),
		"filterShow"=>GetMessage("interface_grid_from_head_1"),
		"filterApplyTitle"=>GetMessage("interface_grid_filter_apply"),
	),
	"ajax"=>array(
		"AJAX_ID"=>$arParams["AJAX_ID"],
		"AJAX_OPTION_SHADOW"=>($arParams["AJAX_OPTION_SHADOW"] == "Y"),
	),
	"settingWndSize"=>CUtil::GetPopupSize("InterfaceGridSettingWnd"),
	"viewsWndSize"=>CUtil::GetPopupSize("InterfaceGridViewsWnd", array('height' => 350, 'width' => 500)),
	"filtersWndSize"=>CUtil::GetPopupSize("InterfaceGridFiltersWnd", array('height' => 350, 'width' => 500)),
	"filterSettingWndSize"=>CUtil::GetPopupSize("InterfaceGridFilterSettingWnd"),
	"calendar_image"=>$this->GetFolder()."/images/calendar.gif",
	"server_time"=>(time()+date("Z")+CTimeZone::GetOffset()),
	"component_path"=>$component->GetRelativePath(),
	"template_path"=>$this->GetFolder(),
	"sessid"=>freetrix_sessid(),
	"current_url"=>$arResult["CURRENT_URL"],
	"user_authorized"=>$USER->IsAuthorized(),
);
?>

<script type="text/javascript">
var settingsDialog<?php 
echo $arParams["GRID_ID"];
?>
;
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:template.php

示例6: InitJS

 function InitJS($Params)
 {
     global $APPLICATION, $USER;
     CUtil::InitJSCore(array('window', 'ajax'));
     $APPLICATION->AddHeadScript('/bitrix/js/fileman/sticker.js');
     $APPLICATION->SetAdditionalCSS('/bitrix/js/fileman/sticker.css');
     $pageUrl = $APPLICATION->GetCurPage();
     $pageTitle = $APPLICATION->GetTitle();
     if ($pageTitle == '') {
         $pageTitle = $pageUrl;
     }
     $listSize = CUtil::GetPopupSize("bx_sticker_list_resize_id", array("width" => 800, "height" => 450));
     $size = explode("_", COption::GetOptionString("fileman", "stickers_start_sizes", "350_200"));
     $min_width = 280;
     $min_height = 160;
     $JSConfig = array("access" => CSticker::CanDoOperation('sticker_edit') ? "W" : "R", "sessid_get" => bitrix_sessid_get(), "start_width" => $size[0] > $min_width ? $size[0] : $min_width, "start_height" => $size[1] > $min_height ? $size[1] : $min_height, "min_width" => $min_width, "min_height" => $min_height, "start_color" => CUserOptions::GetOption('fileman', "stickers_last_color", 0), "zIndex" => 800, "curUserName" => CSticker::GetUserName(), "curUserId" => $USER->GetId(), "pageUrl" => $pageUrl, "pageTitle" => $pageTitle, "bShowStickers" => $Params['bInit'], "listWidth" => $listSize['width'], "listHeight" => $listSize['height'], "listNaviSize" => CUserOptions::GetOption('fileman', "stickers_navi_size", 5), "useHotkeys" => COption::GetOptionString('fileman', "stickers_use_hotkeys", "Y") == "Y", "filterParams" => CSticker::GetFilterParams(), "bHideBottom" => COption::GetOptionString("fileman", "stickers_hide_bottom", "Y") == "Y", "focusOnSticker" => isset($_GET['show_sticker']) ? intVal($_GET['show_sticker']) : 0, "strDate" => FormatDate("j F", time() + CTimeZone::GetOffset()), "curPageCount" => $Params['curPageCount'], "site_id" => SITE_ID);
     if (!is_array($Params['stickers'])) {
         $Params['stickers'] = array();
     }
     self::$Params = array("JSCONFIG" => $JSConfig, "STICKERS" => $Params['stickers']);
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:21,代码来源:sticker.php

示例7: array

		"tabSettingsTitle"=>GetMessage("intarface_form_tab"),
		"tabSettingsSave"=>"OK",
		"tabSettingsName"=>GetMessage("intarface_form_tab_name"),
		"tabSettingsCaption"=>GetMessage("intarface_form_tab_title"),
		"fieldSettingsTitle"=>GetMessage("intarface_form_field"),
		"fieldSettingsName"=>GetMessage("intarface_form_field_name"),
		"sectSettingsTitle"=>GetMessage("intarface_form_sect"),
		"sectSettingsName"=>GetMessage("intarface_form_sect_name"),
	),
	"ajax"=>array(
		"AJAX_ID"=>$arParams["AJAX_ID"],
		"AJAX_OPTION_SHADOW"=>($arParams["AJAX_OPTION_SHADOW"] == "Y"),
	),
	"settingWndSize"=>CUtil::GetPopupSize("InterfaceFormSettingWnd"),
	"tabSettingWndSize"=>CUtil::GetPopupSize("InterfaceFormTabSettingWnd", array('width'=>400, 'height'=>200)),
	"fieldSettingWndSize"=>CUtil::GetPopupSize("InterfaceFormFieldSettingWnd", array('width'=>400, 'height'=>150)),
	"component_path"=>$component->GetRelativePath(),
	"template_path"=>$this->GetFolder(),
	"sessid"=>bitrix_sessid(),
	"current_url"=>$APPLICATION->GetCurPageParam("", array("bxajaxid", "AJAX_CALL")),
	"GRID_ID"=>$arParams["THEME_GRID_ID"],
);
?>
<script type="text/javascript">
var formSettingsDialog<?php 
echo $arParams["FORM_ID"];
?>
;

bxForm_<?php 
echo $arParams["FORM_ID"];
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:template.php


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