Пример #1
0
 function __WDShowError($sError)
 {
     if (isset($_REQUEST["use_light_view"]) || isset($_REQUEST["use_hidden_view"])) {
         $GLOBALS['APPLICATION']->RestartBuffer();
         require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
         $popupWindow = new CJSPopup('', '');
         $popupWindow->ShowTitlebar(GetMessage("WD_UPLOAD_ERROR_TITLE"));
         $popupWindow->StartContent();
     }
     if (strpos($sError, "<") > 0) {
         echo "<p><font class=\"errortext\">" . $sError . "</font></p>\n";
     } else {
         ShowError($sError);
     }
     if (isset($_REQUEST["use_light_view"]) || isset($_REQUEST["use_hidden_view"])) {
         $popupWindow->ShowStandardButtons(array("close"));
         die;
     }
 }
Пример #2
0
<?php

$inDialog = isset($_REQUEST["dialog"]) && strtoupper($_REQUEST["dialog"]) == "Y";
if ($inDialog) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
    $GLOBALS['APPLICATION']->RestartBuffer();
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
} else {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php";
}
IncludeModuleLangFile(__FILE__);
if ($inDialog) {
    $popupWindow = new CJSPopup('', '');
    $popupWindow->ShowTitlebar(GetMessage("DAV_HELP_NAME"));
    $popupWindow->StartContent();
} else {
    $APPLICATION->SetTitle(GetMessage("DAV_HELP_NAME"));
}
echo str_replace("#SERVER#", $_SERVER["SERVER_NAME"], GetMessage('DAV_HELP_TEXT'));
if ($inDialog) {
    $popupWindow->StartButtons();
    $popupWindow->ShowStandardButtons(array('close'));
    $popupWindow->EndButtons();
} else {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php";
}
Пример #3
0
		{
			if (window.style_2 && window.style_2.parentNode)
				window.style_2.parentNode.removeChild(window.style_2);
			player_wind.style.visibility = 'visible';
			oPlaylistDialog._CloseDialog();
		};
	}
<?for($i = 1, $l = count($arTracks); $i <= $l; $i++):?>
	jsDD.registerDest(BX('bx_item_placement_<?php 
echo $i;
?>
'));
	var obEl = BX('bx_item_row_<?php 
echo $i;
?>
');
	obEl.onbxdragstart = BXDD_DragStart;
	obEl.onbxdragstop = BXDD_DragStop;
	obEl.onbxdraghover = BXDD_DragHover;
	jsDD.registerObject(obEl);
<?endfor;?>
	l = BX('bx_playlist_layout');
	l.ondrag = l.onselectstart = jsUtils.False;
	l.style.MozUserSelect = 'none';
	l.className = l.className; // hack for ie

	menuCheckIcons();
}
</script>
<?$obJSPopup->ShowStandardButtons(); ?>
<?require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/epilog_admin_js.php");?>
Пример #4
0
    }
    ?>
</table>
<script>
	function wdNoteShow(e)
	{
		var expand = (this.style.height == '3em');
		this.style.height = (expand ? 'auto' : '3em');
	}
	BX(function() {
		BX.bind(BX('wd_bp_notes'),'click', wdNoteShow);
	});
</script>
<div id='wd_bp_notes' style="background-color:#FEFDEA; margin-bottom:16px; margin-top:16px; border:1px solid #D7D6BA; width:679px; position: relative; display:block; padding: 0 4px; height:3em; cursor: pointer; overflow: hidden;">
<table class='notes' style='display:block;'>
<tr><td class='content'>
<?php 
    echo GetMessage("SN_BP_NOTE");
    ?>
</td></tr></table>
</div>
<?php 
}
$arWDRights = array("IBLOCK_ID" => $arParams["IBLOCK_ID"], "ENTITY_TYPE" => "SECTION", "ENTITY_ID" => $arLibrary['ID'], "TAB_ID" => 'tab_permissions', "SOCNET_TYPE" => $object, "SOCNET_ID" => $object_id, "SET_TITLE" => "N", "SET_NAV_CHAIN" => "N", "POPUP_DIALOG" => true);
if ($object == "group") {
    $arWDRights["SOCNET_GROUP_ID"] = $object_id;
}
$APPLICATION->IncludeComponent("bitrix:webdav.iblock.rights", ".default", $arWDRights, null, array("HIDE_ICONS" => "Y"));
$popupWindow->EndContent();
$popupWindow->ShowStandardButtons();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin_js.php";
Пример #5
0
	if (null == ta)
		ta = BX('bx-filesrc');
	if (null == border)
		border = parseInt(BX.style(ta, 'border-left-width')) + parseInt(BX.style(ta, 'border-right-width'));
	if (isNaN(border))
		border = 0;

	var add = BX('bx_additional_params');

	if (data.height)
		ta.style.height = (data.height - border - wnd.PARTS.HEAD.offsetHeight - (add ? add.offsetHeight : 0) - 35) + 'px';
	if (data.width)
		ta.style.width = (data.width - border - 10) + 'px';
}

BX.addCustomEvent(wnd, 'onWindowResizeExt', TAResize);
TAResize(wnd.GetInnerPos());

<?if ($ceid):?>
BX.addCustomEvent(window, 'OnCodeEditorReady', function(){TAResize(wnd.GetInnerPos());});
<?endif;?>
</script>

<?
$obJSPopup->StartButtons();
$obJSPopup->ShowStandardButtons(array('save', 'cancel'));
$obJSPopup->EndButtons();

require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/epilog_admin_js.php");
?>
Пример #6
0
try{
document.getElementById('BPSId5I').focus();
}catch(e)
{}
<?php 
} else {
    ?>
BPSHideShow('BPSId2');
try{
document.getElementById('BPSId2S').focus();
}catch(e)
{}
<?php 
}
?>
</script>
<?php 
$popupWindow->EndContent();
$popupWindow->StartButtons();
?>
<input type="button" value="<?php 
echo GetMessage("BIZPROC_SEL_INSERT");
?>
" onclick="BPSVInsert();" />
<?php 
$popupWindow->ShowStandardButtons(array('cancel'));
$popupWindow->EndButtons();
?>
</body>
<?php 
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin_js.php";
Пример #7
0
                    $res .= '\'">';
                } else {
                    if ($prop['ROWS'] > 1) {
                        $res .= '<textarea name="' . $ID . '" cols=' . $prop["COLS"] . '>' . htmlspecialcharsbx($val) . '</textarea>';
                    } else {
                        $res .= '<input name="' . $ID . '" size=' . $prop["COLS"] . ' value="' . htmlspecialcharsbx($val) . '" type="text">';
                    }
                }
                break;
        }
        if ($prop["REFRESH"] == "Y") {
            $res .= '<input type="button" value="OK" onclick="' . $obJSPopup->jsPopup . '.PostParameters(\'' . 'path=' . urlencode(CUtil::addslashes($_GET["path"])) . '&amp;template_id=' . urlencode(CUtil::addslashes($_GET["template_id"])) . '&amp;lang=' . LANGUAGE_ID . '&amp;src_path=' . urlencode(CUtil::addslashes($_GET["src_path"])) . '&amp;src_line=' . intval($_GET["src_line"]) . '&amp;action=refresh\');">';
        }
        echo $res;
        ?>
		</td>
	</tr>
<?php 
    }
    ?>
</table>
<?php 
    $obJSPopup->StartButtons();
    echo '<input id="btn_popup_save" name="btn_popup_save" type="button" value="' . GetMessage("JSPOPUP_SAVE_CAPTION") . '" onclick="' . $obJSPopup->jsPopup . '.PostParameters(\'action=save\');" title="' . GetMessage("JSPOPUP_SAVE_CAPTION") . '" />' . "\r\n";
    $obJSPopup->ShowStandardButtons(array('close'));
} else {
    //!empty($arTemplate["PARAMS"])
    $obJSPopup->ShowStandardButtons(array('close'));
}
//!empty($arTemplate["PARAMS"])
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin_js.php";
Пример #8
0
jsDD.Reset();
//jsDD.registerContainer(BX.findParent(window.structPopup.GetContent(), {tag: 'DIV'}));
jsDD.registerContainer(BX.WindowManager.Get().GetContent());

</script>

<?
$obJSPopup->ShowTitlebar();
$obJSPopup->StartDescription('bx-structure');
?>
<p><b><?echo GetMessage("pub_struct_desc_title")?></b></p>
<div class="bx-struct-settings" onclick="structShowSettingsMenu(this)" onmouseover="this.className+=' bx-struct-settings-over'" onmouseout="this.className=this.className.replace(/\s*bx-struct-settings-over/ig, '')" title="<?echo GetMessage("pub_struct_settings_title")?>"><?echo GetMessage("pub_struct_settings")?></div>
<div class="bx-struct-settings bx-struct-button" onclick="structOpenDirs(this)" onmouseover="this.className+=' bx-struct-settings-over'" onmouseout="this.className=this.className.replace(/\s*bx-struct-settings-over/ig, '')" title="<?echo GetMessage("pub_struct_folders_title")?>"><?echo GetMessage("pub_struct_folders_button")?></div>
<br />
<br style="clear:both;" />
<?
$obJSPopup->StartContent();
?>
<div id="structure_content">
<?
//display first level tree
$arRoot = __struct_get_file_info($DOC_ROOT, "/");
echo __struct_show_files(array($arRoot), $DOC_ROOT, "", _normalizePath($_GET["path"]));
?>
</div>
<?
$obJSPopup->ShowStandardButtons(array("close"));
?>
<?
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/epilog_admin_js.php");
?>