Пример #1
0
    public function ShowHTML()
    {
        global $APPLICATION;
        $arP = array();
        foreach ($this->arGroups as $group_id => $group_params) {
            $arP[$group_params['TAB']][$group_id] = array();
        }
        if (is_array($this->arOptions)) {
            foreach ($this->arOptions as $option => $arOptParams) {
                $val = $this->arCurOptionValues[$option];
                if ($arOptParams['SORT'] < 0 || !isset($arOptParams['SORT'])) {
                    $arOptParams['SORT'] = 0;
                }
                $label = isset($arOptParams['TITLE']) && $arOptParams['TITLE'] != '' ? $arOptParams['TITLE'] : '';
                $opt = htmlspecialchars($option);
                switch ($arOptParams['TYPE']) {
                    case 'DATE':
                        $input = '<input type="text" name="' . $opt . '" id="' . $opt . '" value="' . $val . '" /><script>$(\'#' . $opt . '\').datetimepicker({lang:"en",format:"F d, Y H:i", step:"30"});</script>';
                        break;
                    case 'CHECKBOX':
                        $input = '<input type="checkbox" name="' . $opt . '" id="' . $opt . '" value="Y"' . ($val == 'Y' ? ' checked' : '') . ' ' . ($arOptParams['REFRESH'] == 'Y' ? 'onclick="document.forms[\'' . $this->module_id . '\'].submit();"' : '') . ' />';
                        break;
                    case 'TEXT':
                        if (!isset($arOptParams['COLS'])) {
                            $arOptParams['COLS'] = 25;
                        }
                        if (!isset($arOptParams['ROWS'])) {
                            $arOptParams['ROWS'] = 5;
                        }
                        $input = '<textarea rows="' . $type[1] . '" cols="' . $arOptParams['COLS'] . '" rows="' . $arOptParams['ROWS'] . '" name="' . $opt . '">' . htmlspecialchars($val) . '</textarea>';
                        if ($arOptParams['REFRESH'] == 'Y') {
                            $input .= '<input type="submit" name="refresh" value="OK" />';
                        }
                        break;
                    case 'SELECT':
                        $input = SelectBoxFromArray($opt, $arOptParams['VALUES'], $val, '', '', $arOptParams['REFRESH'] == 'Y' ? true : false, $arOptParams['REFRESH'] == 'Y' ? $this->module_id : '');
                        if ($arOptParams['REFRESH'] == 'Y') {
                            $input .= '<input type="submit" name="refresh" value="OK" />';
                        }
                        break;
                    case 'MSELECT':
                        $input = SelectBoxMFromArray($opt . '[]', $arOptParams['VALUES'], $val);
                        if ($arOptParams['REFRESH'] == 'Y') {
                            $input .= '<input type="submit" name="refresh" value="OK" />';
                        }
                        break;
                    case 'COLORPICKER':
                        if (!isset($arOptParams['FIELD_SIZE'])) {
                            $arOptParams['FIELD_SIZE'] = 25;
                        }
                        ob_start();
                        echo '<input id="__CP_PARAM_' . $opt . '" name="' . $opt . '" size="' . $arOptParams['FIELD_SIZE'] . '" value="' . htmlspecialchars($val) . '" type="text" style="float: left;" ' . ($arOptParams['FIELD_READONLY'] == 'Y' ? 'readonly' : '') . ' />
                                <script>
                                    function onSelect_' . $opt . '(color, objColorPicker)
                                    {
                                        var oInput = BX("__CP_PARAM_' . $opt . '");
                                        oInput.value = color;
                                    }
                                </script>';
                        $APPLICATION->IncludeComponent('bitrix:main.colorpicker', '', array('SHOW_BUTTON' => 'Y', 'ID' => $opt, 'NAME' => 'Выбор цвета', 'ONSELECT' => 'onSelect_' . $opt), false);
                        $input = ob_get_clean();
                        if ($arOptParams['REFRESH'] == 'Y') {
                            $input .= '<input type="submit" name="refresh" value="OK" />';
                        }
                        break;
                    case 'FILE':
                        if (!isset($arOptParams['FIELD_SIZE'])) {
                            $arOptParams['FIELD_SIZE'] = 25;
                        }
                        if (!isset($arOptParams['BUTTON_TEXT'])) {
                            $arOptParams['BUTTON_TEXT'] = '...';
                        }
                        CAdminFileDialog::ShowScript(array('event' => 'BX_FD_' . $opt, 'arResultDest' => array('FUNCTION_NAME' => 'BX_FD_ONRESULT_' . $opt), 'arPath' => array(), 'select' => 'F', 'operation' => 'O', 'showUploadTab' => true, 'showAddToMenuTab' => false, 'fileFilter' => '', 'allowAllFiles' => true, 'SaveConfig' => true));
                        $input = '<input id="__FD_PARAM_' . $opt . '" name="' . $opt . '" size="' . $arOptParams['FIELD_SIZE'] . '" value="' . htmlspecialchars($val) . '" type="text" style="float: left;" ' . ($arOptParams['FIELD_READONLY'] == 'Y' ? 'readonly' : '') . ' />
                                    <input value="' . $arOptParams['BUTTON_TEXT'] . '" type="button" onclick="window.BX_FD_' . $opt . '();" />
                                    <script>
                                        setTimeout(function(){
                                            if (BX("bx_fd_input_' . strtolower($opt) . '"))
                                                BX("bx_fd_input_' . strtolower($opt) . '").onclick = window.BX_FD_' . $opt . ';
                                        }, 200);
                                        window.BX_FD_ONRESULT_' . $opt . ' = function(filename, filepath)
                                        {
                                            var oInput = BX("__FD_PARAM_' . $opt . '");
                                            if (typeof filename == "object")
                                                oInput.value = filename.src;
                                            else
                                                oInput.value = (filepath + "/" + filename).replace(/\\/\\//ig, \'/\');
                                        }
                                    </script>';
                        if ($arOptParams['REFRESH'] == 'Y') {
                            $input .= '<input type="submit" name="refresh" value="OK" />';
                        }
                        break;
                    case 'CUSTOM':
                        $input = $arOptParams['VALUE'];
                        break;
                    default:
                        if (!isset($arOptParams['SIZE'])) {
                            $arOptParams['SIZE'] = 25;
                        }
                        if (!isset($arOptParams['MAXLENGTH'])) {
                            $arOptParams['MAXLENGTH'] = 255;
                        }
                        $input = '<input type="' . ($arOptParams['TYPE'] == 'INT' ? 'number' : 'text') . '" size="' . $arOptParams['SIZE'] . '" maxlength="' . $arOptParams['MAXLENGTH'] . '" value="' . htmlspecialchars($val) . '" name="' . htmlspecialchars($option) . '" />';
                        if ($arOptParams['REFRESH'] == 'Y') {
                            $input .= '<input type="submit" name="refresh" value="OK" />';
                        }
                        break;
                }
                if (isset($arOptParams['NOTES']) && $arOptParams['NOTES'] != '') {
                    $input .= '<div class="notes">
                                    <table cellspacing="0" cellpadding="0" border="0" class="notes">
                                        <tbody>
                                            <tr class="top">
                                                <td class="left"><div class="empty"></div></td>
                                                <td><div class="empty"></div></td>
                                                <td class="right"><div class="empty"></div></td>
                                            </tr>
                                            <tr>
                                                <td class="left"><div class="empty"></div></td>
                                                <td class="content">
                                                    ' . $arOptParams['NOTES'] . '
                                                </td>
                                                <td class="right"><div class="empty"></div></td>
                                            </tr>
                                            <tr class="bottom">
                                                <td class="left"><div class="empty"></div></td>
                                                <td><div class="empty"></div></td>
                                                <td class="right"><div class="empty"></div></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>';
                }
                $arP[$this->arGroups[$arOptParams['GROUP']]['TAB']][$arOptParams['GROUP']]['OPTIONS'][] = $label != '' ? '<tr><td valign="top" width="40%">' . $label . '</td><td valign="top" nowrap>' . $input . '</td></tr>' : '<tr><td valign="top" colspan="2" align="center">' . $input . '</td></tr>';
                $arP[$this->arGroups[$arOptParams['GROUP']]['TAB']][$arOptParams['GROUP']]['OPTIONS_SORT'][] = $arOptParams['SORT'];
            }
            $tabControl = new CAdminTabControl('tabControl', $this->arTabs);
            $tabControl->Begin();
            echo '<form name="' . $this->module_id . '" method="POST" action="' . $APPLICATION->GetCurPage() . '?mid=' . $this->module_id . '&lang=' . LANGUAGE_ID . '" enctype="multipart/form-data">' . bitrix_sessid_post();
            foreach ($arP as $tab => $groups) {
                $tabControl->BeginNextTab();
                foreach ($groups as $group_id => $group) {
                    if (sizeof($group['OPTIONS_SORT']) > 0) {
                        echo '<tr class="heading"><td colspan="2">' . $this->arGroups[$group_id]['TITLE'] . '</td></tr>';
                        array_multisort($group['OPTIONS_SORT'], $group['OPTIONS']);
                        foreach ($group['OPTIONS'] as $opt) {
                            echo $opt;
                        }
                    }
                }
            }
            if ($this->need_access_tab) {
                $tabControl->BeginNextTab();
                $module_id = $this->module_id;
                require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/admin/group_rights.php";
            }
            $tabControl->Buttons();
            ?>
     <input type="hidden" name="update" value="Y" />
                    <input type="submit" name="save" value="<?php 
            echo GetMessage("ICS_BS");
            ?>
" />
                    <input type="reset" name="reset" value="<?php 
            echo GetMessage("ICS_BR");
            ?>
" />
                    </form>
			<?php 
            $tabControl->End();
        }
    }
Пример #2
0
                                $res .= '<input type="text" name="' . $ID . '[]" size=' . $prop["COLS"] . ' value="">';
                            }
                        }
                        $res .= '<input type="button" value="+" onClick="var span = document.createElement(\'SPAN\'); this.parentNode.insertBefore(span, this); span.innerHTML=\'' . '<br>';
                        if ($prop['ROWS'] > 1) {
                            $res .= '<textarea name=\\\'' . $ID . '[]\\\' cols=\\\'' . $prop["COLS"] . '\\\'></textarea>';
                        } else {
                            $res .= '<input type=\\\'text\\\' name=\\\'' . $ID . '[]\\\' size=\\\'' . $prop["COLS"] . '\\\'>';
                        }
                        $res .= '\'">';
                    } else {
                        if ($prop['ROWS'] > 1) {
                            $res .= '<textarea name="' . $ID . '" cols=' . $prop["COLS"] . '>' . htmlspecialcharsbx($val) . '</textarea>';
                        } else {
                            if ($prop["TYPE"] == 'FILE') {
                                CAdminFileDialog::ShowScript(array("event" => "BX_FD_" . $ID, "arResultDest" => array("FUNCTION_NAME" => "BX_FD_ONRESULT_" . $ID), "arPath" => array(), "select" => isset($prop['FD_TARGET']) ? $prop['FD_TARGET'] : 'F', "operation" => 'O', "showUploadTab" => isset($prop['FD_UPLOAD']) && $prop['FD_UPLOAD'] && $prop['FD_TARGET'] == 'F', "showAddToMenuTab" => false, "fileFilter" => isset($prop['FD_EXT']) ? $prop['FD_EXT'] : '', "allowAllFiles" => true, "SaveConfig" => true));
                                $bML = isset($prop['FD_USE_MEDIALIB']) && $prop['FD_USE_MEDIALIB'];
                                $res .= '<input id="__FD_PARAM_' . $ID . '" name="' . $ID . '" size=' . $prop["COLS"] . ' value="' . htmlspecialcharsbx($val) . '" type="text" ' . ($bML ? 'style="float:left;"' : '') . '>';
                                // Using medialib
                                if ($bML) {
                                    $res .= "<div>" . CMedialib::ShowBrowseButton(array('mode' => $prop['FD_USE_ONLY_MEDIALIB'] ? 'medialib' : 'select', 'value' => '...', 'event' => "BX_FD_" . $ID, 'id' => "bx_fd_input_" . strtolower($ID), 'MedialibConfig' => array("event" => "bx_ml_event_" . $ID, "arResultDest" => array("FUNCTION_NAME" => "BX_FD_ONRESULT_" . $ID), "types" => is_array($prop['FD_MEDIALIB_TYPES']) ? $prop['FD_MEDIALIB_TYPES'] : false), 'bReturnResult' => true)) . "</div>";
                                } else {
                                    // Use old good file dialog
                                    $res .= '<input size=' . $prop["COLS"] . ' value="..." type="button" onclick="window.BX_FD_' . $ID . '();">';
                                }
                                $res .= '<script>
					setTimeout(function(){
						if (BX("bx_fd_input_' . strtolower($ID) . '"))
							BX("bx_fd_input_' . strtolower($ID) . '").onclick = window.BX_FD_' . $ID . ';
					}, 200);
Пример #3
0
</option>
			</select>
		</td>
	</tr>
	<tr>
		<td width="40%">
		<?
		$yandex_agent_file = Option::get('catalog', 'yandex_agent_file');
		CAdminFileDialog::ShowScript
		(
			Array(
				"event" => "BtnClick",
				"arResultDest" => array("FORM_NAME" => "ara", "FORM_ELEMENT_NAME" => "yandex_agent_file"),
				"arPath" => array("PATH" => GetDirPath($yandex_agent_file)),
				"select" => 'F',// F - file only, D - folder only
				"operation" => 'O',// O - open, S - save
				"showUploadTab" => true,
				"showAddToMenuTab" => false,
				"fileFilter" => 'php',
				"allowAllFiles" => true,
				"SaveConfig" => true,
			)
		);
		?>
		<?echo Loc::getMessage("CAT_AGENT_FILE")?></td>
		<td width="60%"><input type="text" name="yandex_agent_file" size="50" maxlength="255" value="<?echo $yandex_agent_file?>">&nbsp;<input type="button" name="browse" value="..." onClick="BtnClick()"></td>
	</tr>
	<tr class="heading">
		<td colspan="2"><?echo Loc::getMessage("CO_PAR_IE_CSV") ?></td>
	</tr>
	<tr>
Пример #4
0
    public static function BuildAddItemDialog($Params)
    {
        ?>
		<div id="mlsd_item" class="mlsd"><table class="mlsd-frame"><tr>
		<td class="ml-title-cell">
			<table onmousedown="jsFloatDiv.StartDrag(arguments[0], document.getElementById('mlsd_item'));"><tr><td style="width: 10px; padding-left: 3px;"><img class="ml-iconkit ml-dd-dot" src="/bitrix/images/1.gif" /></td><td class="ml-diad-title"><span id="mlsd_item_title"></span></td><td id="mlsd_item_close" class="ml-close" title="<?php 
        echo GetMessage('ML_CLOSE');
        ?>
"><img src="/bitrix/images/1.gif"></td></tr></table>
		</td></tr>
		<tr><td class="ml-content-cell">
			<div id="mlsd_item_upload" style="overflow: hidden;"><iframe class="mlsd-iframe" id="mlsd_iframe_upload" src="javascript:''" frameborder="0"></iframe></div>
		</td></tr>
		<tr><td class="ml-buttons-cell">
			<input id="mlsd_item_save" type="button" value="<?php 
        echo GetMessage('ML_SAVE');
        ?>
">
			<input id="mlsd_item_cancel" type="button" value="<?php 
        echo GetMessage('ML_CANCEL');
        ?>
">
		</td></tr>
		</table>
		</div>
		<?php 
        CAdminFileDialog::ShowScript(array("event" => "mlOpenFileDialog", "arResultDest" => array("FUNCTION_NAME" => "mlOnFileDialogSave"), "arPath" => array(), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => CMedialib::GetMediaExtentions(), "allowAllFiles" => false, "SaveConfig" => true));
    }
Пример #5
0
		"showAddToMenuTab" => false,
		"fileFilter" => 'wmv,wma,flv,vp6,mp3,mp4,aac',
		"allowAllFiles" => true,
		"SaveConfig" => true,
		"zIndex" => 3200
	)
);

CAdminFileDialog::ShowScript(
	Array
	(
		"event" => "OpenFD_playlist_image",
		"arResultDest" => Array("FUNCTION_NAME" => 'BXSaveImagePath'),
		"arPath" => Array("SITE" => $site, 'PATH' => $aMenuLinksItem[1]),
		"select" => 'F',// F - file only, D - folder only
		"operation" => 'O',// O - open, S - save
		"showUploadTab" => true,
		"showAddToMenuTab" => false,
		"fileFilter" => 'jpg,jpeg,gif,png',
		"allowAllFiles" => true,
		"SaveConfig" => true,
		"zIndex" => 3200
	)
);
?>

<script type="text/javascript">
window.onload = function ()
{
	if (!window.oPlaylistDialog)
	{
		window.oPlaylistDialog = BX.WindowManager.Get();
Пример #6
0
    function BaseGetEditFormHTML($set, $val, $name, $controlMode = false)
    {
        global $APPLICATION;
        $id = str_replace(array("[", "]", ":"), "_", $name);
        $path = $val["path"];
        if (intVal($val['width']) <= 0) {
            $val['width'] = 400;
        }
        if (intVal($val['height']) <= 0) {
            $val['height'] = 300;
        }
        ob_start();
        ?>
<div style="padding: 5px;">
<style>
table.bx-video-prop-tbl{border-collapse: collapse! important; border: 1px solid #E0E4F1;}
table.bx-video-prop-tbl td{padding: 3px 5px! important; border-bottom: 1px dotted #BABABA !important;}
table.bx-video-prop-tbl tr.bx-prop-main-title td{background: #E0E4F1! important; color: #525355! important; font-weight: bold! important; text-align: center! important; border-bottom-width: 0px !important; padding: 5px! important;}
table.bx-video-prop-tbl tr.bx-prop-sub-title td{background: #E2E1E0! important; color: #525355! important; font-weight: bold! important; text-align: left! important; border-bottom-width: 0px !important;}
table.bx-video-prop-tbl td.bx-pr-title{text-align: right! important; vertical-align: top! important; padding-top: 8px !important;}
div.bx-path-div a{float: right !important;}
div.bx-path-div a.bx-leave{display: none;}
div.bx-path-div-changed a.bx-leave{display: block !important;}
div.bx-path-div-changed a.bx-change{display: none !important;}
div.bx-path-div input.bx-path{color: #525355 !important;}
div.bx-path-div-changed input.bx-path{text-decoration: line-through !important;}
table.bx-video-prop-tbl img.spacer{display:block;float:left;height:1px;margin-top:-2px;width:220px;}
</style>

<table class="bx-video-prop-tbl">
	<tr class="bx-prop-main-title"><td colSpan="2"><?php 
        echo GetMessage('IBLOCK_PROP_VIDEO_PARAMS_TITLE');
        ?>
</td></tr>
	<?php 
        if ($controlMode != "iblock_element_admin") {
            ?>
		<?php 
            if (strlen($path) > 0) {
                ?>
			<tr class="heading"><td colSpan="2"><?php 
                echo GetMessage('IBLOCK_PROP_VIDEO_PARAMS_TITLE_VIEW');
                ?>
</td></tr>
			<tr>
				<td colSpan="2" style="text-align: center;">
		<?php 
                $APPLICATION->IncludeComponent("bitrix:player", "", array("PLAYER_TYPE" => "auto", "PATH" => $path, "WIDTH" => $val['width'], "HEIGHT" => $val['height'], "FILE_TITLE" => $val['title'], "FILE_DURATION" => intVal($val['duration']), "FILE_AUTHOR" => $val['author'], "FILE_DATE" => $val['date'], "FILE_DESCRIPTION" => $val['desc'], "SKIN_PATH" => CVideoProperty::GetSkinPath(), "SKIN" => $set["SKIN"], "CONTROLBAR" => $set["CONTROLBAR"], "WMODE" => $set["WMODE_FLV"], "WMODE_WMV" => $set["WMODE_WMV"], "SHOW_CONTROLS" => $set["CONTROLBAR"] != 'none' ? "Y" : "N", "CONTROLS_BGCOLOR" => $set["CONTROLS_BGCOLOR"], "CONTROLS_COLOR" => $set["CONTROLS_COLOR"], "CONTROLS_OVER_COLOR" => $set["CONTROLS_OVER_COLOR"], "SCREEN_COLOR" => $set["SCREEN_COLOR"], "AUTOSTART" => $set["AUTOSTART"], "VOLUME" => $set["VOLUME"], "ADDITIONAL_FLASHVARS" => $set["FLASHVARS"], "BUFFER_LENGTH" => $set["BUFFER_LENGTH"], "ADDITIONAL_WMVVARS" => $set["SILVERVARS"], "ALLOW_SWF" => "N", "LOGO_POSITION" => "none"), false, array('HIDE_ICONS' => 'Y'));
                ?>
				</td>
			</tr>
		<?php 
            }
            ?>

		<tr><td class="bx-pr-title" style="width: 300px;"></td><td style="width: 240px;"></td></tr>

		<tr class="heading"><td colSpan="2"><?php 
            echo GetMessage('IBLOCK_PROP_VIDEO_PARAMS_TITLE_MAIN');
            ?>
</td></tr>

		<?php 
            if (strlen($path) > 0) {
                ?>
			<tr>
				<td class="bx-pr-title"><?php 
                echo GetMessage('IBLOCK_PROP_VIDEO_FILE');
                ?>
:</td>
				<td>
					<div id="bx_video_path_div_<?php 
                echo $id;
                ?>
" class="bx-path-div">
					<input type="hidden" value="<?php 
                echo $path;
                ?>
" name= "<?php 
                echo $name;
                ?>
[CUR_PATH]" />
					<input id="bx_video_b_new_file_<?php 
                echo $id;
                ?>
" type="hidden" value="N" name= "<?php 
                echo $name;
                ?>
[B_NEW_FILE]" />
					<input class="bx-path" readonly="readonly" value="<?php 
                echo htmlspecialcharsex($path);
                ?>
" size="30" />
					<br />
					<a href="javascript: void(0)" onclick="return ChangeOrLeaveFile<?php 
                echo $id;
                ?>
(true);" class="bx-change" id="bx-change"><?php 
                echo GetMessage('IBLOCK_PROP_VIDEO_FILE_CHANGE');
                ?>
</a>
					<a href="javascript: void(0)" onclick="return ChangeOrLeaveFile<?php 
                echo $id;
                ?>
(false);"  class="bx-leave"><?php 
                echo GetMessage('IBLOCK_PROP_VIDEO_FILE_LEAVE');
                ?>
</a>
					</div>
				</td>
			</tr>
			<?php 
                if (CVideoProperty::CheckFileInUploadDir($path)) {
                    ?>
				<tr id="bx_video_del_row_<?php 
                    echo $id;
                    ?>
" style="display: none;">
					<td class="bx-pr-title"></td>
					<td>
						<input type="checkbox" value="Y" id="bx_video_del_<?php 
                    echo $id;
                    ?>
" checked="checked" name= "<?php 
                    echo $name;
                    ?>
[DEL_CUR_FILE]" /><label for="bx_video_del_<?php 
                    echo $id;
                    ?>
"><?php 
                    echo GetMessage('IBLOCK_PROP_VIDEO_DEL_FILE');
                    ?>
</label>
					</td>
				</tr>
			<?php 
                }
                ?>
		<?php 
            }
            ?>

		<tr id="bx_video_new_path_row_<?php 
            echo $id;
            ?>
" <?php 
            if (strlen($path) > 0) {
                echo 'style="display: none;"';
            }
            ?>
>
			<td class="bx-pr-title" style="width: 300px;"><?php 
            echo GetMessage(strlen($path) > 0 ? 'IBLOCK_PROP_VIDEO_PATH_NEW' : 'IBLOCK_PROP_VIDEO_PATH');
            ?>
:</td>
			<td style="width: 240px;">
			<img src="/bitrix/images/1.gif" class="spacer" />
			<div id="bx_video_path_cont1_<?php 
            echo $id;
            ?>
" style="display: none;">
			<input type="text" size="30" value="" id="bx_video_path_<?php 
            echo $id;
            ?>
"  style="float:left;" name= "<?php 
            echo $name;
            ?>
[PATH]" />
			<?php 
            CAdminFileDialog::ShowScript(array("event" => "OpenFileBrowser_" . $id, "arResultDest" => array("FUNCTION_NAME" => "SetVideoPath" . $id), "arPath" => array(), "select" => 'F', "operation" => 'O', "showUploadTab" => false, "showAddToMenuTab" => false, "fileFilter" => 'flv,mp4,mp3,wmv', "allowAllFiles" => true, "SaveConfig" => true));
            CMedialib::ShowBrowseButton(array("id" => 'OpenFileBrowser_but_' . $id, "event" => "OpenFileBrowser_" . $id, 'MedialibConfig' => array("event" => "OpenFileBrowser_ml_" . $id, "arResultDest" => array("FUNCTION_NAME" => "SetVideoPath" . $id))));
            ?>
			<br />
			<a href="javascript: void(0)" onclick="return DisplayCont('bx_video_path_cont2_<?php 
            echo $id;
            ?>
', 'bx_video_path_cont1_<?php 
            echo $id;
            ?>
');" style="float: right;"><?php 
            echo GetMessage('IBLOCK_PROP_VIDEO_PATH_FROM_PC');
            ?>
</a>
			</div>
			<div id="bx_video_path_cont2_<?php 
            echo $id;
            ?>
">
				<input type="file" value="" id="bx_video_path_<?php 
            echo $id;
            ?>
" name= "<?php 
            echo $name;
            ?>
[FILE]" />
				<br />
				<a href="javascript: void(0)" onclick="return DisplayCont('bx_video_path_cont1_<?php 
            echo $id;
            ?>
', 'bx_video_path_cont2_<?php 
            echo $id;
            ?>
');" style="float: right;"><?php 
            echo GetMessage('IBLOCK_PROP_VIDEO_PATH_FROM_FD');
            ?>
</a>
			</div>
			</td>
		</tr>
	<?php 
        } else {
            ?>
		<tr>
			<td class="bx-pr-title"><?php 
            echo GetMessage('IBLOCK_PROP_VIDEO_FILE');
            ?>
:</td>
			<td>
				<div id="bx_video_path_div_<?php 
            echo $id;
            ?>
" class="bx-path-div">
					<input type="text" size="25" value="<?php 
            echo htmlspecialcharsex($path);
            ?>
" size="30" name="<?php 
            echo $name;
            ?>
[PATH]"/>
				</div>
			</td>
		</tr>
	<?php 
        }
        ?>

	<tr>
		<td class="bx-pr-title"><?php 
        echo GetMessage('IBLOCK_PROP_VIDEO_SIZE');
        ?>
:</td>
		<td>
			<input  id="bx_video_width_<?php 
        echo $id;
        ?>
" type="text" size="10" style="width: 70px;" value="<?php 
        echo $val['width'];
        ?>
" name= "<?php 
        echo $name;
        ?>
[WIDTH]" />
			x
			<input id="bx_video_height_<?php 
        echo $id;
        ?>
" type="text" size="10" style="width: 70px;" value="<?php 
        echo $val['height'];
        ?>
" name= "<?php 
        echo $name;
        ?>
[HEIGHT]" />
		</td>
	</tr>
	<tr class="heading"><td colSpan="2"><?php 
        echo GetMessage('IBLOCK_PROP_VIDEO_PARAMS_TITLE_INFO');
        ?>
</td></tr>
	<tr>
		<td class="bx-pr-title"><?php 
        echo GetMessage('IBLOCK_PROP_VIDEO_TITLE');
        ?>
:</td>
		<td><input id="bx_video_title_<?php 
        echo $id;
        ?>
" type="text" size="30" value="<?php 
        echo $val['title'];
        ?>
" name="<?php 
        echo $name;
        ?>
[TITLE]" /></td>
	</tr>
	<tr>
		<td class="bx-pr-title"><?php 
        echo GetMessage('IBLOCK_PROP_VIDEO_DURATION');
        ?>
:</td>
		<td><input id="bx_video_duration_<?php 
        echo $id;
        ?>
" type="text" size="30" value="<?php 
        echo $val['duration'];
        ?>
" name="<?php 
        echo $name;
        ?>
[DURATION]"/></td>
	</tr>
	<tr>
		<td class="bx-pr-title"><?php 
        echo GetMessage('IBLOCK_PROP_VIDEO_AUTHOR');
        ?>
:</td>
		<td><input id="bx_video_author_<?php 
        echo $id;
        ?>
" type="text" size="30" value="<?php 
        echo $val['author'];
        ?>
" name="<?php 
        echo $name;
        ?>
[AUTHOR]"/></td>
	</tr>
	<tr>
		<td class="bx-pr-title"><?php 
        echo GetMessage('IBLOCK_PROP_VIDEO_DATE');
        ?>
:</td>
		<td><input id="bx_video_date_<?php 
        echo $id;
        ?>
" type="text" size="30" value="<?php 
        echo $val['date'];
        ?>
" name="<?php 
        echo $name;
        ?>
[DATE]" /></td>
	</tr>
	<tr>
		<td class="bx-pr-title"><?php 
        echo GetMessage('IBLOCK_PROP_VIDEO_DESC');
        ?>
:</td>
		<td><input id="bx_video_desc_<?php 
        echo $id;
        ?>
" type="text" size="30" value="<?php 
        echo $val['desc'];
        ?>
" name="<?php 
        echo $name;
        ?>
[DESC]"/></td>
	</tr>
</table>
<script>
function DisplayCont(id1, id2)
{
	var
		el1 = document.getElementById(id1),
		el2 = document.getElementById(id2);

	if (el1 && el2)
	{
		el1.style.display = "block";
		el2.style.display = "none";
	}
	return false;
}

function SetVideoPath<?php 
        echo $id;
        ?>
(filename, path, site)
{
	var
		url,
		srcInput = document.getElementById("bx_video_path_<?php 
        echo $id;
        ?>
");

	if (typeof filename == 'object') // Using medialibrary
	{
		url = filename.src;
		document.getElementById("bx_video_title_<?php 
        echo $id;
        ?>
").value = filename.name || '';
		document.getElementById("bx_video_desc_<?php 
        echo $id;
        ?>
").value = filename.description || '';
	}
	else // Using file dialog
	{
		url = (path == '/' ? '' : path) + '/'+filename;
	}

	srcInput.value = url;
	if(srcInput.onchange)
		srcInput.onchange();
	srcInput.focus();
	srcInput.select();
}

function ChangeOrLeaveFile<?php 
        echo $id;
        ?>
(bChange)
{
	var
		pDiv = document.getElementById("bx_video_path_div_<?php 
        echo $id;
        ?>
"),
		pDelRow = document.getElementById("bx_video_del_row_<?php 
        echo $id;
        ?>
"),
		pBNewFile = document.getElementById("bx_video_b_new_file_<?php 
        echo $id;
        ?>
"),
		pNewFileRow = document.getElementById("bx_video_new_path_row_<?php 
        echo $id;
        ?>
"),
		_display = jsUtils.IsIE() ? "inline" : "table-row";

	if (pBNewFile)
		pBNewFile.value = bChange ? "Y" : "N";

	if (pDelRow)
		pDelRow.style.display = bChange ? _display : 'none';

	if (pNewFileRow)
		pNewFileRow.style.display = bChange ? _display : 'none';

	pDiv.className = bChange ? "bx-path-div bx-path-div-changed" : "bx-path-div";

	return false;
}
</script>
</div>
<?php 
        $s = ob_get_contents();
        ob_end_clean();
        return $s;
    }
	<tr>
		<td width="40%"><?php 
echo GetMessage("IBLOCK_CML2_URL_DATA_FILE");
?>
:</td>
		<td width="60%">
			<input type="text" id="URL_DATA_FILE" name="URL_DATA_FILE" size="30" value="<?php 
echo htmlspecialcharsbx($URL_DATA_FILE);
?>
">
			<input type="button" value="<?php 
echo GetMessage("IBLOCK_CML2_OPEN");
?>
" OnClick="BtnClick()">
			<?php 
CAdminFileDialog::ShowScript(array("event" => "BtnClick", "arResultDest" => array("FORM_NAME" => "form1", "FORM_ELEMENT_NAME" => "URL_DATA_FILE"), "arPath" => array("SITE" => SITE_ID, "PATH" => "/upload"), "select" => 'F', "operation" => 'S', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'xml', "allowAllFiles" => true, "SaveConfig" => true));
?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("IBLOCK_CML2_IBLOCK_ID");
?>
:</td>
		<td>
			<?php 
echo GetIBlockDropDownList($IBLOCK_ID, 'IBLOCK_TYPE_ID', 'IBLOCK_ID', false, 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"');
?>
		</td>
	</tr>
	<tr>
Пример #8
0
 private static function DisplayDialogs()
 {
     if (self::$bUseMedialib) {
         CMedialib::ShowDialogScript(array("event" => "OpenMedialibDialog" . self::$jsId, "arResultDest" => array("FUNCTION_NAME" => "SetValueFromMedialib" . self::$jsId)));
     }
     if (self::$bUseFileDialog) {
         CAdminFileDialog::ShowScript(array("event" => "OpenFileDialog" . self::$jsId, "arResultDest" => array("FUNCTION_NAME" => "SetValueFromFileDialog" . self::$jsId), "arPath" => array("SITE" => SITE_ID, "PATH" => "/upload"), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "allowAllFiles" => true, "SaveConfig" => true));
     }
 }
Пример #9
0
function ConditionShow($arArgs=array())
{
	global $strCondition, $APPLICATION, $arGroupsNames, $arDisplay, $arConditionTypes, $strFolder, $strUrl_param, $strUrl_value, $arSelGroups, $strPer_start, $strPer_end, $CurType, $USER;

	$i=$arArgs['i'];
	$field_name=$arArgs['field_name'];
	$form=$arArgs['form'];
?>
	<div style="display:<?php 
echo $arDisplay['empty'];
?>
" id="type_empty<?php 
echo $i;
?>
"><?php 
echo GetMessage("TYPES_EMPTY_COND");
?>
</div>
<?if (isset($arConditionTypes['false'])):?>
<div style="display:<?php 
echo $arDisplay['false'];
?>
" id="type_false<?php 
echo $i;
?>
"><?php 
echo GetMessage("TYPES_FALSE_COND");
?>
</div>
<?endif;?>
	<div style="display:<?php 
echo $arDisplay['folder'];
?>
" value="<?php 
echo htmlspecialcharsbx($strFolder);
?>
" id="type_folder<?php 
echo $i;
?>
">
	<?
	CAdminFileDialog::ShowScript(Array
		(
			"event" => "BtnClick$i",
			"arResultDest" => Array("ELEMENT_ID" => "fname$i"),
			"arPath" => Array("PATH" => '/'),
			"select" => 'DF', // F - file only, D - folder only,
			"operation" => 'O',// O - open, S - save
			"showUploadTab" => true,
			"saveConfig" => true,
		)
	);
	?><input title="<?php 
echo GetMessage("MAIN_PATH");
?>
" type="text" size="25" id="fname<?php 
echo $i;
?>
" name="<?php 
echo $field_name;
?>
[CONDITION_folder]" value="<?php 
echo htmlspecialcharsbx($strFolder);
?>
">&nbsp;<input type="button" name="browse" value="..." onClick="BtnClick<?php 
echo $i;
?>
()">
	</div>
	<div style="display:<?php 
echo $arDisplay['ugroups'];
?>
" id="type_ugroups<?php 
echo $i;
?>
">
		<select title="<?php 
echo GetMessage("MAIN_USERGROUPS");
?>
" multiple size=5 style="width:100%" name="<?php 
echo $field_name;
?>
[CONDITION_ugroups][]"><?
		reset($arGroupsNames);
		while ($e=each($arGroupsNames))
			echo '<option value="'.$e[0].'"'.(in_array($e[0], $arSelGroups)?" selected":"").'>'.htmlspecialcharsbx($e[1]).'</option>';
		?></select>
	</div>
	<div style="display:<?php 
echo $arDisplay['period'];
?>
" id="type_period<?php 
echo $i;
?>
">
		<input title="<?php 
echo GetMessage("MAIN_PERIOD_FROM");
?>
" type="text" size="10" value="<?php 
echo htmlspecialcharsbx($strPer_start);
?>
" name="<?php 
echo $field_name;
?>
[CONDITION_period_start]" id="<?php 
echo $field_name;
?>
[CONDITION_period_start]">
		<?php 
echo Calendar($field_name . "[CONDITION_period_start]", $form);
?>
		-
		<input title="<?php 
echo GetMessage("MAIN_PERIOD_TO");
?>
" type="text" size="10" value="<?php 
echo htmlspecialcharsbx($strPer_end);
?>
" name="<?php 
echo $field_name;
?>
[CONDITION_period_end]">
		<?php 
echo Calendar($field_name . "[CONDITION_period_end]", $form);
?>
		<span class="required"></span>
	</div>
	<div style="display:<?php 
echo $arDisplay['url'];
?>
" id="type_url<?php 
echo $i;
?>
">
		<input title="<?php 
echo GetMessage("MAIN_URL_FIELD");
?>
" type="text" size="10" name="<?php 
echo $field_name;
?>
[CONDITION_url_param]" value="<?php 
echo htmlspecialcharsbx($strUrl_param);
?>
">
		=
		<input title="<?php 
echo GetMessage("MAIN_URL_VALUE");
?>
" type="text" size="10" name="<?php 
echo $field_name;
?>
[CONDITION_url_value]" value="<?php 
echo htmlspecialcharsbx($strUrl_value);
?>
">
	</div>
	<div style="display:<?php 
echo $arDisplay['php'];
?>
" id="type_php<?php 
echo $i;
?>
"><input type="text" style="width:100%" size="25" name="<?php 
echo $field_name;
?>
[CONDITION_php]" value="<?php 
echo htmlspecialcharsex($strCondition);
?>
" <?echo ((!$USER->CanDoOperation('edit_php')) ? 'disabled' : '');?>></div>
<?
}
Пример #10
0
 public static function RequestAction($action = '')
 {
     global $USER, $APPLICATION;
     $result = array();
     switch ($action) {
         case "load_site_template":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             $siteTemplate = $_REQUEST['site_template'];
             $siteId = isset($_REQUEST['site_id']) ? $_REQUEST['site_id'] : SITE_ID;
             $result = self::GetSiteTemplateParams($siteTemplate, $siteId);
             break;
         case "load_components_list":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             $siteTemplate = $_REQUEST['site_template'];
             $componentFilter = isset($_REQUEST['componentFilter']) ? $_REQUEST['componentFilter'] : false;
             $result = self::GetComponents($siteTemplate, true, $componentFilter);
             break;
         case "video_oembed":
             $result = self::GetVideoOembed($_REQUEST['video_source']);
             break;
             // Snippets actions
         // Snippets actions
         case "load_snippets_list":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             $template = $_REQUEST['site_template'];
             $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template, $_REQUEST['clear_cache'] == 'Y')));
             break;
         case "edit_snippet":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             // Update
             if ($_REQUEST['current_path']) {
                 $result = CSnippets::Update(array('template' => $template, 'path' => $_REQUEST['path'], 'code' => $_REQUEST['code'], 'title' => $_REQUEST['name'], 'current_path' => $_REQUEST['current_path'], 'description' => $_REQUEST['description']));
             } else {
                 $result = CSnippets::Add(array('template' => $template, 'path' => $_REQUEST['path'], 'code' => $_REQUEST['code'], 'title' => $_REQUEST['name'], 'description' => $_REQUEST['description']));
             }
             if ($result && $result['result']) {
                 $result['snippets'] = array($template => self::GetSnippets($template));
             }
             break;
         case "remove_snippet":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             $res = CSnippets::Remove(array('template' => $template, 'path' => $_REQUEST['path']));
             if ($res) {
                 $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template)));
             } else {
                 $result = array('result' => false);
             }
             break;
         case "snippet_add_category":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             $res = CSnippets::CreateCategory(array('template' => $template, 'name' => $_REQUEST['category_name'], 'parent' => $_REQUEST['category_parent']));
             if ($res) {
                 $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template)));
             } else {
                 $result = array('result' => false);
             }
             break;
         case "snippet_remove_category":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             $res = CSnippets::RemoveCategory(array('template' => $template, 'path' => $_REQUEST['category_path']));
             if ($res) {
                 $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template)));
             } else {
                 $result = array('result' => false);
             }
             break;
         case "snippet_rename_category":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             $res = CSnippets::RenameCategory(array('template' => $template, 'path' => $_REQUEST['category_path'], 'new_name' => $_REQUEST['category_new_name']));
             if ($res) {
                 $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template)));
             } else {
                 $result = array('result' => false);
             }
             break;
             // END *** Snippets actions
             // spellcheck
         // END *** Snippets actions
         // spellcheck
         case "spellcheck_words":
         case "spellcheck_add_word":
             CUtil::JSPostUnEscape();
             $spellChecker = new CSpellchecker(array("lang" => $_REQUEST['lang'], "skip_length" => 2, "use_pspell" => $_REQUEST['use_pspell'] !== "N", "use_custom_spell" => $_REQUEST['use_custom_spell'] !== "N", "mode" => PSPELL_FAST));
             if ($action == "spellcheck_words") {
                 $words = isset($_REQUEST['words']) && is_array($_REQUEST['words']) ? $_REQUEST['words'] : array();
                 $result = array('words' => $spellChecker->checkWords($words));
             } else {
                 $word = CFileMan::SecurePathVar($_REQUEST['word']);
                 $spellChecker->addWord($word);
             }
             break;
             // END *** spellcheck
         // END *** spellcheck
         case "load_file_dialogs":
             $editorId = $_REQUEST['editor_id'];
             $editorId = preg_replace("/[^a-zA-Z0-9_-]/is", "_", $editorId);
             CAdminFileDialog::ShowScript(array("event" => "BxOpenFileBrowserWindFile" . $editorId, "arResultDest" => array("FUNCTION_NAME" => "OnFileDialogSelect" . $editorId), "arPath" => array("SITE" => SITE_ID), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'image', "allowAllFiles" => true, "SaveConfig" => true));
             CMedialib::ShowBrowseButton(array('value' => '...', 'event' => "BxOpenFileBrowserWindFile" . $editorId, 'button_id' => "bx-open-file-link-medialib-but-" . $editorId, 'id' => "bx_open_file_link_medialib_button_" . $editorId, 'MedialibConfig' => array("event" => "BxOpenFileBrowserFileMl" . $editorId, "arResultDest" => array("FUNCTION_NAME" => "OnFileDialogSelect" . $editorId)), 'useMLDefault' => false));
             CMedialib::ShowBrowseButton(array('value' => '...', 'event' => "BxOpenFileBrowserWindFile" . $editorId, 'button_id' => "bx-open-file-medialib-but-" . $editorId, 'id' => "bx_open_file_medialib_button_" . $editorId, 'MedialibConfig' => array("event" => "BxOpenFileBrowserImgFileMl" . $editorId, "arResultDest" => array("FUNCTION_NAME" => "OnFileDialogImgSelect" . $editorId), "types" => array('image'))));
             $result = array('result' => true);
             break;
     }
     self::ShowResponse(intVal($_REQUEST['reqId']), $result);
 }
Пример #11
0
	<tr>
		<td width="40%"><?php 
    echo GetMessage("IBLOCK_ADM_IMP_DATA_FILE");
    ?>
</td>
		<td width="60%">
			<input type="text" name="URL_DATA_FILE" value="<?php 
    echo htmlspecialcharsbx($URL_DATA_FILE);
    ?>
" size="30">
			<input type="button" value="<?php 
    echo GetMessage("IBLOCK_ADM_IMP_OPEN");
    ?>
" OnClick="BtnClick()">
			<?php 
    CAdminFileDialog::ShowScript(array("event" => "BtnClick", "arResultDest" => array("FORM_NAME" => "dataload", "FORM_ELEMENT_NAME" => "URL_DATA_FILE"), "arPath" => array("SITE" => SITE_ID, "PATH" => "/" . COption::GetOptionString("main", "upload_dir", "upload")), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'csv', "allowAllFiles" => true, "SaveConfig" => true));
    ?>
		</td>
	</tr>

	<tr>
		<td><?php 
    echo GetMessage("IBLOCK_ADM_IMP_INFOBLOCK");
    ?>
</td>
		<td>
			<?php 
    echo GetIBlockDropDownList($IBLOCK_ID, 'IBLOCK_TYPE_ID', 'IBLOCK_ID', false, 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"');
    ?>
		</td>
	</tr>
Пример #12
0
	</tr>
	<tr>
		<td valign="top" width="40%"><?php 
    echo GetMessage("CICML_F_DATAFILE2");
    ?>
</td>
		<td valign="top" width="60%">
			<input type="text" name="URL_FILE_1C" size="40" value="<?php 
    echo htmlspecialcharsbx($URL_FILE_1C);
    ?>
">
			<input type="button" value="<?php 
    echo GetMessage("CICML_F_BUTTON_CHOOSE");
    ?>
" onclick="cmlBtnSelectClick();"><?php 
    CAdminFileDialog::ShowScript(array("event" => "cmlBtnSelectClick", "arResultDest" => array("FORM_NAME" => "dataload", "FORM_ELEMENT_NAME" => "URL_FILE_1C"), "arPath" => array("PATH" => "/upload/catalog", "SITE" => SITE_ID), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'xml', "allowAllFiles" => true, "SaveConfig" => true));
    ?>
</td>
	</tr>
	<tr>
		<td valign="top" width="40%"><?php 
    echo GetMessage("CICML_F_IBLOCK");
    ?>
</td>
		<td valign="top" width="60%">
			<select name="IBLOCK_TYPE_ID"><?php 
    if (!isset($IBLOCK_TYPE_ID)) {
        $IBLOCK_TYPE_ID = '';
    }
    ?>
<option value="">- <?php 
Пример #13
0
		<td><input type="text" name="pathToImages" size="30" value="<?php 
echo htmlspecialcharsbx($pathToImages);
?>
">
		<input type="button" value="<?php 
echo GetMessage("USER_IMPORT_OPEN_DIALOG");
?>
" onclick="SelectImagePath()">
		<?
		CAdminFileDialog::ShowScript
		(
			array(
				"event" => "SelectImagePath",
				"arResultDest" => array("FORM_NAME" => "import_user_form", "FORM_ELEMENT_NAME" => "pathToImages"),
				"arPath" => array("SITE" => SITE_ID, "PATH" =>"/upload"),
				"select" => 'D',// F - file only, D - folder only
				"operation" => 'O',// O - open, S - save
				"showUploadTab" => false,
				"showAddToMenuTab" => false,
				"allowAllFiles" => false,
				"SaveConfig" => true,
			)
		)
			?>
		</td>
	</tr>
<?
if(CModule::IncludeModule("iblock")):
?>
	<tr>
		<td><?php 
echo GetMessage("USER_IMPORT_ATTACH_TO_IBLOCK");
Пример #14
0
	document.getElementById('bx_menu_layout').appendChild(obPlacement);

	var obRow = BX.create('DIV', {props: {className: 'bx-edit-menu-item', id: 'bx_menu_row_' + nums}});
	obPlacement.appendChild(obRow);

	<?
	ob_start();
	CAdminFileDialog::ShowScript(
		Array
		(
			"event" => "OpenFileBrowserWindFile____NUMS___",
			"arResultDest" => Array("FUNCTION_NAME" => 'setLink'),
			"arPath" => Array("SITE" => $site, 'PATH' => $path),
			"select" => 'F',// F - file only, D - folder only, DF - files & dirs
			"operation" => 'O',// O - open, S - save
			"showUploadTab" => false,
			"showAddToMenuTab" => false,
			"fileFilter" => 'php, html',
			"allowAllFiles" => true,
			"SaveConfig" => true
		)
	);
	$out = ob_get_contents();
	ob_end_clean();
	$out = trim($out);
	$unscript_pos = strpos($out, '</script>');
	$out = substr($out, 8, $unscript_pos-8);
	$out = trim($out);

	$out = CUtil::JSEscape($out);
Пример #15
0
            $id = GetFileName($path);
            $aMenu[] = array("TEXT" => GetMessage("FILEMAN_FILE_DELETE"), "LINK" => "javascript:if(confirm('" . GetMessage("FILEMAN_FILE_DELETE_CONFIRM") . "')) window.location='/bitrix/admin/fileman_admin.php?ID=" . urlencode($id) . "&action=delete&" . $addUrl . "&site=" . urlencode($site) . "&path=" . urlencode($folder_path) . "&" . bitrix_sessid_get() . "';", "TITLE" => GetMessage("FILEMAN_FILE_DELETE"));
        }
    }
    $context = new CAdminContextMenu($aMenu);
    $context->Show();
    global $__fd_path;
    $__fd_path = $bEdit ? $arParsedPath["PREV"] : $path;
    $arContextTemplates = array();
    $arTemplates = CFileman::GetFileTemplates(LANGUAGE_ID, array($site_template));
    $cntTempl = count($arTemplates);
    for ($i = 0; $i < $cntTempl; $i++) {
        $arContextTemplates[] = array("TEXT" => htmlspecialcharsbx($arTemplates[$i]["name"]), "ONCLICK" => "__NewDocTempl('" . AddSlashes(htmlspecialcharsbx($arTemplates[$i]["file"])) . "')");
    }
    $u = new CAdminPopup("new_doc_list", "new_doc_list", $arContextTemplates);
    CAdminFileDialog::ShowScript(array("event" => "__bx_fd_save_as", "arResultDest" => array("FUNCTION_NAME" => "OnSaveAs"), "arPath" => array('SITE' => $site, 'PATH' => $_REQUEST['path']), "select" => 'F', "operation" => 'S', "showUploadTab" => false, "showAddToMenuTab" => true, "fileFilter" => 'php,html,htm,phtml', "allowAllFiles" => true, "saveConfig" => false));
    ?>
<script type="text/javascript">
BX.addCustomEvent(window, 'onAfterFileDialogShow', function(){
	var _filenameDialogInput = BX("__bx_file_path_bar");
	var _filenamePageInput = BX('filename');
	if(_filenamePageInput && _filenameDialogInput)
		_filenameDialogInput.value = _filenamePageInput.value;
});
</script>
<?php 
    $u->Show();
    ?>
<form action="fileman_html_edit.php?lang=<?php 
    echo LANG;
    ?>
Пример #16
0
	function InitFileDialogs()
	{
		// Link
		CAdminFileDialog::ShowScript(Array(
			"event" => "LHED_Link_FDOpen",
			"arResultDest" => Array("ELEMENT_ID" => "lhed_link_href"),
			"arPath" => Array("SITE" => SITE_ID),
			"select" => 'F',
			"operation" => 'O',
			"showUploadTab" => true,
			"showAddToMenuTab" => false,
			"fileFilter" => 'php, html',
			"allowAllFiles" => true,
			"SaveConfig" => true
		));

		// Image
		CAdminFileDialog::ShowScript(Array
		(
			"event" => "LHED_Img_FDOpen",
			"arResultDest" => Array("FUNCTION_NAME" => "LHED_Img_SetUrl"),
			"arPath" => Array("SITE" => SITE_ID),
			"select" => 'F',
			"operation" => 'O',
			"showUploadTab" => true,
			"showAddToMenuTab" => false,
			"fileFilter" => 'image',
			"allowAllFiles" => true,
			"SaveConfig" => true
		));

		// video path
		CAdminFileDialog::ShowScript(Array
		(
			"event" => "LHED_VideoPath_FDOpen",
			"arResultDest" => Array("FUNCTION_NAME" => "LHED_Video_SetPath"),
			"arPath" => Array("SITE" => SITE_ID),
			"select" => 'F',
			"operation" => 'O',
			"showUploadTab" => true,
			"showAddToMenuTab" => false,
			"fileFilter" => 'wmv,wma,flv,vp6,mp3,mp4,aac,jpg,jpeg,gif,png',
			"allowAllFiles" => true,
			"SaveConfig" => true
		));

		// video preview
		CAdminFileDialog::ShowScript(Array
		(
			"event" => "LHED_VideoPreview_FDOpen",
			"arResultDest" => Array("ELEMENT_ID" => "lhed_video_prev_path"),
			"arPath" => Array("SITE" => SITE_ID),
			"select" => 'F',
			"operation" => 'O',
			"showUploadTab" => true,
			"showAddToMenuTab" => false,
			"fileFilter" => 'image',
			"allowAllFiles" => true,
			"SaveConfig" => true
		));
	}
Пример #17
0
            }
            ?>
</td>
					</tr>
				</table>
			<?php 
        }
        ?>
		</td>
	</tr>
	<?php 
    }
    ?>
		<?php 
    CAdminFileDialog::ShowScript(array("event" => "BtnClick1", "arResultDest" => array("FORM_NAME" => "form1", "FORM_ELEMENT_NAME" => "FILTER_RESULT_TEMPLATE"), "arPath" => array("PATH" => '/'), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "saveConfig" => true));
    CAdminFileDialog::ShowScript(array("event" => "BtnClick2", "arResultDest" => array("FORM_NAME" => "form1", "FORM_ELEMENT_NAME" => "TABLE_RESULT_TEMPLATE"), "arPath" => array("PATH" => '/'), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "saveConfig" => true));
    ?>
	<tr>
		<td><?php 
    echo GetMessage("FORM_FILTER_RESULT_TEMPLATE");
    ?>
</td>
		<td><input type="text" name="FILTER_RESULT_TEMPLATE" size="37" value="<?php 
    echo $str_FILTER_RESULT_TEMPLATE;
    ?>
">&nbsp;<input type="button" name="browse" value="..." onClick="BtnClick1()"></td>
	</tr>
	<tr>
		<td><?php 
    echo GetMessage("FORM_TABLE_RESULT_TEMPLATE");
    ?>
Пример #18
0
$chain = $lAdmin->CreateChain();
if ($bSearch) {
    $title = $bReplace ? GetMessage("FILEMAN_REPLACE_RES") : GetMessage("FILEMAN_SEARCH_RES");
    $chain->AddItem(array("TEXT" => $title, "LINK" => ""));
} else {
    foreach ($arParsedPath["AR_PATH"] as $chainLevel) {
        $chain->AddItem(array("TEXT" => htmlspecialcharsex($chainLevel["TITLE"]), "LINK" => strlen($chainLevel["LINK"]) > 0 ? $chainLevel["LINK"] : "", "ONCLICK" => strlen($chainLevel["LINK"]) > 0 ? $lAdmin->ActionAjaxReload($chainLevel["LINK"]) . ';return false;' : ""));
    }
}
$lAdmin->ShowChain($chain);
$lAdmin->CheckListMode();
/***********  MAIN PAGE **********/
$APPLICATION->SetTitle($title);
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
//File Dialog Init
CAdminFileDialog::ShowScript(array("event" => "DRList", "arResultDest" => array("FUNCTION_NAME" => "DRListAct"), "arPath" => array("SITE" => $site, "PATH" => ''), "select" => 'D', "operation" => 'O', "showUploadTab" => false, "showAddToMenuTab" => false, "fileFilter" => '', "allowAllFiles" => true, "SaveConfig" => true));
?>

<?php 
include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/fileman/classes/general/fileman_utils.php";
CFilemanUtils::InitScript(array('initSearch' => true, 'initCopy' => true, 'initPack' => true, 'viewMsFilePath' => "fileman_file_view.php?path=#PATH#&" . $addUrl . "&site=", 'viewMsFolderPath' => "fileman_admin.php?path=#PATH#&" . $addUrl . "&site=", 'site' => $site, 'arCurValues' => array()));
?>

<script>
window.InitQuickPath = function()
{
	var pInput = BX("quick_path");
	if (!pInput)
		return setTimeout(top.InitQuickPath, 50);

	new BXFMInpSel({
Пример #19
0
{
	?><tr class="heading">
		<td colspan="2"><? echo GetMessage("CATI_DATA_LOADING"); ?></td>
	</tr>
	<tr>
		<td valign="top" width="40%"><? echo GetMessage("CATI_DATA_FILE_SITE"); ?>:</td>
		<td valign="top" width="60%">
			<input type="text" name="URL_DATA_FILE" size="40" value="<? echo htmlspecialcharsbx($URL_DATA_FILE); ?>">
			<input type="button" value="<? echo GetMessage("CATI_BUTTON_CHOOSE")?>" onclick="cmlBtnSelectClick();"><?
CAdminFileDialog::ShowScript(
	array(
		"event" => "cmlBtnSelectClick",
		"arResultDest" => array("FORM_NAME" => "dataload", "FORM_ELEMENT_NAME" => "URL_DATA_FILE"),
		"arPath" => array("PATH" => "/upload/catalog", "SITE" => SITE_ID),
		"select" => 'F',// F - file only, D - folder only, DF - files & dirs
		"operation" => 'O',// O - open, S - save
		"showUploadTab" => true,
		"showAddToMenuTab" => false,
		"fileFilter" => 'csv',
		"allowAllFiles" => true,
		"SaveConfig" => true
	)
);
		?></td>
	</tr>
	<tr>
		<td valign="top" width="40%"><? echo GetMessage("CATI_INFOBLOCK"); ?>:</td>
		<td valign="top" width="60%"><?
			if (!isset($IBLOCK_ID))
				$IBLOCK_ID = 0;
			echo GetIBlockDropDownListEx(
				$IBLOCK_ID,
function ShowFileDialogsScripts()
{
    global $arFD;
    $l = count($arFD);
    if ($l < 1) {
        return;
    }
    for ($i = 0; $i < $l; $i++) {
        if ($arFD[$i]['USE_ML']) {
            $MLRes = CMedialib::ShowBrowseButton(array('mode' => $arFD[$i]['ONLY_ML'] ? 'medialib' : 'select', 'value' => '...', 'event' => "BX_FD_" . $arFD[$i]['NAME'], 'id' => "bx_fd_input_" . strtolower($arFD[$i]['NAME']), 'MedialibConfig' => array("event" => "bx_ml_event_" . $arFD[$i]['NAME'], "arResultDest" => array("FUNCTION_NAME" => "BX_FD_ONRESULT_" . $arFD[$i]['NAME']), "types" => $arFD[$i]['ML_TYPES']), 'bReturnResult' => true));
            ?>
			<script>window._bxMlBrowseButton_<?php 
            echo strtolower($arFD[$i]['NAME']);
            ?>
 = '<?php 
            echo CUtil::JSEscape($MLRes);
            ?>
';</script>
			<?php 
        }
        CAdminFileDialog::ShowScript(array("event" => "BX_FD_" . $arFD[$i]['NAME'], "arResultDest" => array("FUNCTION_NAME" => "BX_FD_ONRESULT_" . $arFD[$i]['NAME']), "arPath" => array(), "select" => $arFD[$i]['TARGET'], "operation" => 'O', "showUploadTab" => $arFD[$i]['UPLOAD'], "showAddToMenuTab" => false, "fileFilter" => $arFD[$i]['EXT'], "allowAllFiles" => true, "SaveConfig" => true));
    }
}
Пример #21
0
                    echo GetMessage("IB_E_FIELD_PICTURE_WATERMARK_TEXT");
                    ?>
:&nbsp;<input
						name="FIELDS[<?php 
                    echo $FIELD_ID;
                    ?>
][DEFAULT_VALUE][WATERMARK_TEXT]"
						type="text"
						value="<?php 
                    echo htmlspecialcharsbx($arFields[$FIELD_ID]["DEFAULT_VALUE"]["WATERMARK_TEXT"]);
                    ?>
"
						size="35"
					>
					<?php 
                    CAdminFileDialog::ShowScript(array("event" => "BtnClickFont" . $FIELD_ID, "arResultDest" => array("ELEMENT_ID" => "FIELDS_" . $FIELD_ID . "__DEFAULT_VALUE__WATERMARK_TEXT_FONT_"), "arPath" => array("PATH" => GetDirPath($arFields[$FIELD_ID]["DEFAULT_VALUE"]["WATERMARK_TEXT_FONT"])), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'ttf', "allowAllFiles" => false, "SaveConfig" => true));
                    ?>
				</div>
				<div class="adm-list-item"
					id="SETTINGS[<?php 
                    echo $FIELD_ID;
                    ?>
][DEFAULT_VALUE][WATERMARK_TEXT_FONT]"
					style="padding-left:16px;display:<?php 
                    if ($arFields[$FIELD_ID]["DEFAULT_VALUE"]["USE_WATERMARK_TEXT"] === "Y") {
                        echo 'block';
                    } else {
                        echo 'none';
                    }
                    ?>
"
Пример #22
0
 /**
  * @deprecated Use CAdminFileDialog::ShowScript instead
  */
 function ShowFileSelectDialog($event, $arResultDest, $arPath = array(), $fileFilter = "", $bAllowFolderSelect = False)
 {
     CAdminFileDialog::ShowScript(array("event" => $event, "arResultDest" => $arResultDest, "arPath" => $arPath, "select" => $bAllowFolderSelect ? 'DF' : 'F', "fileFilter" => $fileFilter, "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "allowAllFiles" => true, "SaveConfig" => true));
 }
Пример #23
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
CMedialib::ShowDialogScript(array("event" => "LHED_Img_MLOpen", "arResultDest" => array("FUNCTION_NAME" => "LHED_Img_SetUrl")));
CAdminFileDialog::ShowScript(array("event" => "LHED_Link_FDOpen", "arResultDest" => array("ELEMENT_ID" => "lhed_link_href"), "arPath" => array("SITE" => SITE_ID), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'php, html', "allowAllFiles" => true, "SaveConfig" => true));
CAdminFileDialog::ShowScript(array("event" => "LHED_Img_FDOpen", "arResultDest" => array("FUNCTION_NAME" => "LHED_Img_SetUrl"), "arPath" => array("SITE" => SITE_ID), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'image', "allowAllFiles" => true, "SaveConfig" => true));
Пример #24
0
    public static function BuildDialogContent($site)
    {
        global $APPLICATION;
        $actUri = $APPLICATION->GetCurPage() . "?search=Y&ssess=" . CFilemanSearch::GetSearchSess();
        $s = DeleteParam(array('search', 'ssess'));
        if ($s != '') {
            $actUri .= '&' . $s;
        }
        $defMask = COption::GetOptionString("fileman", "search_mask", "*.php");
        // Search dialog
        $aTabs[] = array("DIV" => "bx_fm_tab_search", "TAB" => GetMessage("FM_UTIL_FIND"), "ICON" => "", "TITLE" => GetMessage("FM_UTIL_FIND_TITLE"), "ONSELECT" => "window.oFMSearch.SetTab('search');");
        $aTabs[] = array("DIV" => "bx_fm_tab_replace", "TAB" => GetMessage("FM_UTIL_REPLACE"), "ICON" => "", "TITLE" => GetMessage("FM_UTIL_REPLACE_TITLE"), "ONSELECT" => "window.oFMSearch.SetTab('replace');");
        $searchTabControl = new CAdmintabControl("searchTabControl", $aTabs, false, true);
        $searchTabControl->SetPublicMode('oSearchDialog');
        $searchTabControl->Begin();
        ?>
		<?php 
        $searchTabControl->BeginNextTab();
        ?>
		<tr><td>
		<div id="bx_search_cont" class="bxfm-search-cont"><form name="bx_search_form" action="<?php 
        echo $actUri;
        ?>
" method="POST">
		<table  id="bx_fms_tbl" class="bxfm-d-params bxfm-d-params-add-hide">
			<tr id="bx_search_in_res_tr">
				<td class="bxfm-d-label"><input  id="bx_search_in_res" type="checkbox" value="Y" checked="checked" /></td>
				<td class="bxfm-d-value"><label for="bx_search_in_res" style="font-weight: bold;"><?php 
        echo GetMessage("FM_UTIL_IN_SEARCH_RESULT");
        ?>
</label></td>
			</tr>
			<tr title='<?php 
        echo GetMessage("FM_UTIL_FILE_NAME_TITLE");
        ?>
'>
				<td class="bxfm-d-label"><label for="bx_search_file"><?php 
        echo GetMessage("FM_UTIL_FILE_NAME");
        ?>
:</label></td>
				<td class="bxfm-d-value"><input id="bx_search_file" name="bx_search_file" value="<?php 
        echo $defMask;
        ?>
" style="width: 220px;" type="text"/></td>
			</tr>
			<tr title="<?php 
        echo GetMessage("FM_UTIL_PHRASE_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_search_phrase"><?php 
        echo GetMessage("FM_UTIL_PHRASE");
        ?>
:</label></td>
				<td class="bxfm-d-value"><input id="bx_search_phrase" name="bx_search_phrase" value="" style="width: 220px;" type="text"/></td>
			</tr>
			<tr class="bxfm-d-only-replace" title="<?php 
        echo GetMessage("FM_UTIL_REPLACE_INP_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_replace_phrase"><?php 
        echo GetMessage("FM_UTIL_REPLACE_INP");
        ?>
:</label></td>
				<td class="bxfm-d-value"><input id="bx_replace_phrase" name="bx_replace_phrase" value=""  style="width: 220px;" type="text"/></td>
			</tr>

			<tr title="<?php 
        echo GetMessage("FM_UTIL_DIR_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_search_dir"><?php 
        echo GetMessage("FM_UTIL_DIR");
        ?>
:</label></td>
				<td class="bxfm-d-value"><input id="bx_search_dir" name="bx_search_dir" value="" style="width: 220px;" type="text"/> <input id="bx_search_fd_but" type="button" value="..." title="<?php 
        echo GetMessage('FD_OPEN_DIR');
        ?>
" onclick="FMFD_SearchDirOpen(true, {site: window.oFMSearch.oSiteSel.value, path: window.oFMSearch.pSearchDir.value});" /><span class="bxfm-site-sel" id="bx_search_site_sel"></span></td>
			</tr>
			<tr>
				<td class="bxfm-d-label"><label for="bx_search_subdir"><?php 
        echo GetMessage("FM_UTIL_INCLUDE_SUBFOLDER");
        ?>
</label></td>
				<td class="bxfm-d-value"><input id="bx_search_subdir" name="bx_search_subdir" type="checkbox" value="Y" checked="checked" /></td>
			</tr>
			<tr class="bxfm-d-title">
				<td colSpan="2">
				<a class="bxfm-add-link" id="bx_fms_add_lnk" href="javascript: void(0);"><?php 
        echo GetMessage("FM_UTIL_ADDITIONAL");
        ?>
 <span class="bxfm-d-span-hide">(<?php 
        echo GetMessage("FM_UTIL_HIDE");
        ?>
)</span></a>
				</td>
			</tr>
			<tr class="bxfm-add-hide" title="<?php 
        echo GetMessage("FM_UTIL_DATE_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_search_date_sel"><?php 
        echo GetMessage("FM_UTIL_DATE");
        ?>
:</label></td>
				<td class="bxfm-d-value">
					<select id="bx_search_date_sel" name="bx_search_date_sel">
						<option value=""> - <?php 
        echo GetMessage("FM_UTIL_NO_VAL");
        ?>
 - </option>
						<option value="day"><?php 
        echo GetMessage("FM_UTIL_DAY");
        ?>
</option>
						<option value="week"><?php 
        echo GetMessage("FM_UTIL_WEEK");
        ?>
</option>
						<option value="month"><?php 
        echo GetMessage("FM_UTIL_MONTH");
        ?>
</option>
						<option value="year"><?php 
        echo GetMessage("FM_UTIL_YEAR");
        ?>
</option>
						<option value="set"><?php 
        echo GetMessage("FM_UTIL_SET_EXACTLY");
        ?>
</option>
					</select>
					<div id="bx_search_date_div" class="bxfm-d-adjust-div">
					<?php 
        echo GetMessage("FM_UTIL_FROM");
        ?>
: <input name="bx_search_date_from" id="bx_search_date_from" value="" style="width: 90px;" type="text"/><?php 
        echo CAdminCalendar::Calendar("bx_search_date_from", "bx_search_form");
        ?>
					<?php 
        echo GetMessage("FM_UTIL_TO");
        ?>
: <input name="bx_search_date_to" id="bx_search_date_to" value="" style="width: 90px;" type="text"/><?php 
        echo CAdminCalendar::Calendar("bx_search_date_to", "bx_search_form");
        ?>
					</div>
				</td>
			</tr>
			<tr class="bxfm-add-hide" title="<?php 
        echo GetMessage("FM_UTIL_SIZE_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_search_size_sel"><?php 
        echo GetMessage("FM_UTIL_SIZE");
        ?>
:</label></td>
				<td class="bxfm-d-value">
				<select id="bx_search_size_sel" name="bx_search_size_sel">
					<option value=""> - <?php 
        echo GetMessage("FM_UTIL_NO_VAL");
        ?>
 - </option>
					<option value="100"><?php 
        echo GetMessage("FM_UTIL_SIZE_100");
        ?>
</option>
					<option value="100_500"><?php 
        echo GetMessage("FM_UTIL_SIZE_100_500");
        ?>
</option>
					<option value="500"><?php 
        echo GetMessage("FM_UTIL_SIZE_500");
        ?>
</option>
					<option value="set"><?php 
        echo GetMessage("FM_UTIL_SET_EXACTLY");
        ?>
</option>
				</select>
				<div id="bx_search_size_div" class="bxfm-d-adjust-div">
				<?php 
        echo GetMessage("FM_UTIL_SIZE_FROM");
        ?>
: <input id="bx_search_size_from" name="bx_search_size_from" value="" style="width: 70px;" type="text"/><?php 
        echo GetMessage("FM_UTIL_KB");
        ?>
 &nbsp;
				<?php 
        echo GetMessage("FM_UTIL_SIZE_TO");
        ?>
: <input id="bx_search_size_to" name="bx_search_size_to" value="" style="width: 70px;" type="text"/><?php 
        echo GetMessage("FM_UTIL_KB");
        ?>
				</div>
				</td>
			</tr>
			<tr class="bxfm-add-hide bxfm-d-only-search">
				<td class="bxfm-d-label"><label for="bx_search_dirs_too"><?php 
        echo GetMessage("FM_UTIL_SEARCH_DIRS");
        ?>
</label></td>
				<td class="bxfm-d-value"><input id="bx_search_dirs_too" name="bx_search_dirs_too" type="checkbox" value="Y" checked="checked" /></td>
			</tr>
			<tr class="bxfm-add-hide-TEMP" style="display: none;">
				<td class="bxfm-d-label"><label for="bx_search_entire"><?php 
        echo GetMessage("FM_UTIL_ENTIRE");
        ?>
</label></td>
				<td class="bxfm-d-value"><input  id="bx_search_entire" type="checkbox" value="Y" /></td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label"><label for="bx_search_case"><?php 
        echo GetMessage("FM_UTIL_CASE_SENS");
        ?>
</td>
				<td class="bxfm-d-value"><input id="bx_search_case" name="bx_search_case" type="checkbox" value="Y" /></label></td>
			</tr>
		</table>
		<input type="hidden" name="search" value="Y" />
		<div id="bx_search_res_cont"></div>
<?php 
        CAdminFileDialog::ShowScript(array("event" => "FMFD_SearchDirOpen", "arResultDest" => array("ELEMENT_ID" => "bx_search_dir"), "arPath" => array("SITE" => $site, "PATH" => "/"), "select" => 'D', "operation" => 'O', "showUploadTab" => false, "showAddToMenuTab" => false, "allowAllFiles" => false, "SaveConfig" => true));
        ?>
		</form></div>
		</td></tr>
		<?php 
        $searchTabControl->BeginNextTab();
        ?>
		<tr><td>
		<div id="bx_replace_cont" class="bxfm-replace-cont"></div>
		</td></tr>
		<?php 
        $searchTabControl->End();
        // ***  Copy / move dialog ***
        ?>
		<div id="bx_copy_dialog" class="bx-copy-cont">
		<table class="bx-copy-cont-tbl bx-copy-cont-tbl-add-hide" id="bx_copy_table" style="width: 470px;">
			<tr>
				<td class="bxfm-d-label"><label for="bx_copy_file_list"><?php 
        echo GetMessage("FM_UTIL_FILE");
        ?>
:</label></td>
				<td class="bxfm-d-value"><div id="bx_copy_file_list" style="margin-top: 2px;"><div></td>
			</tr>
			<tr>
				<td class="bxfm-d-label"><label for="bx_copy_to"><?php 
        echo GetMessage("FM_COPY_TO");
        ?>
:</label></td>
				<td class="bxfm-d-value">
					<div style="width: 340px;">
						<input id="bx_copy_to" style="width: 255px;" value="/" type="text" /><input type="button" value="..." title="<?php 
        echo GetMessage('FD_OPEN_DIR');
        ?>
" onclick="FMFD_CopyMoveOpen(true, {site: window.oBXFMCopy.oSiteSel.value, path: window.oBXFMCopy.oCopyTo.pInput.value});"  />
						<span class="bxfm-site-sel" id="bx_copy_site_sel"></span>
					</div>
				</td>
			</tr>

			<tr class="bx-copy-d-title">
				<td colSpan="2">
				<a class="bx-copy-add-link" id="bx_copy_add_lnk" href="javascript: void(0);"><?php 
        echo GetMessage("FM_UTIL_ADDITIONAL");
        ?>
 <span class="bx-copy-d-span-hide">(<?php 
        echo GetMessage("FM_UTIL_HIDE");
        ?>
)</span></a>
				</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td colSpan="2" style="padding: 5px 0 5px 120px !important;"><?php 
        echo GetMessage("FM_COPY_COINCID");
        ?>
:</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label">
					<input id="bx_copy_ask_user" type="radio" name="bx_copy_coincidence" value="ask" checked="checked"/>
				</td>
				<td class="bxfm-d-value">
					<label for="bx_copy_ask_user"><?php 
        echo GetMessage("FM_COPY_ASK_USER");
        ?>
</label>
				</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label">
					<input id="bx_copy_replace" type="radio" name="bx_copy_coincidence" value="replace" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_copy_replace"><?php 
        echo GetMessage("FM_COPY_REPLACE");
        ?>
</label>
				</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label">
					<input id="bx_copy_auto_rename" type="radio" name="bx_copy_coincidence" value="auto_rename" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_copy_auto_rename"><?php 
        echo GetMessage("FM_COPY_AUTO_RENAME");
        ?>
</label>
				</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label">
					<input id="bx_copy_skip" type="radio" name="bx_copy_coincidence" value="skip" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_copy_skip"><?php 
        echo GetMessage("FM_COPY_SKIP");
        ?>
</label>
				</td>
			</tr>
		</table>
<?php 
        CAdminFileDialog::ShowScript(array("event" => "FMFD_CopyMoveOpen", "arResultDest" => array("ELEMENT_ID" => "bx_copy_to"), "arPath" => array("SITE" => $GLOBALS['site'], "PATH" => "/"), "select" => 'D', "operation" => 'O', "showUploadTab" => false, "showAddToMenuTab" => false, "allowAllFiles" => false, "SaveConfig" => true));
        ?>
		</div>
		<div id="bx_copy_ask_dialog" class="bx-copy-cont">
		<div style="margin: 0 70px 0 70px; width: 460px; padding: 10px 0 5px;">
		<?php 
        echo GetMessage("FM_UTIL_FILE_EXIST", array("#NAME#" => "<span id='bx_copy_ask_file_name'>#NAME#</span>", "#FOLDER#" => "<span id='bx_copy_ask_folder'>#FOLDER#</span>"));
        ?>
:
		</div>
		<div style="margin: 0 50px;">
		<table  class="bx-copy-compare-tbl">
			<tr class="bx-copy-title">
				<td><?php 
        echo GetMessage("FM_UTIL_NEW_FILE");
        ?>
:</td>
				<td rowSpan="4" class="bx-copy-sep-td"></td>
				<td><?php 
        echo GetMessage("FM_UTIL_ORIGINAL_FILE");
        ?>
:</td>
			</tr>
			<tr>
				<td>
				<div class="bx-copy-name-cnt">
				<a id="bx_copy_ask_file1" href="javascript:void();">file1</a>
				<div id="bxc_ask_nn_cont1" class="bx-copy-new-name bxcnn-0"></div>
				</div>
				</td>
				<td>
				<div class="bx-copy-name-cnt"><a id="bx_copy_ask_file2" href="javascript:void();">file2</a></div>
				</td>
			</tr>
			<tr id="bx_copy_ask_size_row">
				<td><?php 
        echo GetMessage("FM_UTIL_SIZE");
        ?>
: <span id="bx_copy_ask_size1"></span></td>
				<td><?php 
        echo GetMessage("FM_UTIL_SIZE");
        ?>
: <span id="bx_copy_ask_size2"></span></td>
			</tr>
			<tr class="bx-copy-bottom">
				<td><?php 
        echo GetMessage("FM_UTIL_DATE");
        ?>
: <span id="bx_copy_ask_date1"></span></td>
				<td><?php 
        echo GetMessage("FM_UTIL_DATE");
        ?>
: <span id="bx_copy_ask_date2"></span></td>
			</tr>
		</table>
		</div>
		</div>
		<?php 
        $searchTabControl->BeginNextTab();
        // ***  Pack / unpack dialog ***
        ?>
		<div id="bx_pack_dialog" class="bx-pack-cont">
		<table class="bx-pack-cont-tbl bx-pack-cont-tbl-add-hide" id="bx_pack_table" style="width: 470px;">
			<tr>
				<td class="bxfm-d-label"><label for="bx_pack_file_list"><?php 
        echo GetMessage("FM_PACK_FILE");
        ?>
:</label></td>
				<td class="bxfm-d-value"><div id="bx_pack_file_list" style="margin-top: 2px;"><div></td>
			</tr>
			<tr id="bxfm-arctype-line">
				<td class="bxfm-d-label"><label for="bx_pack_arc_type"><?php 
        echo GetMessage("FM_PACK_ARC_TYPE");
        ?>
:</label></td>
				<td class="bxfm-d-value"><div id="bx_pack_arc_type" class="bxfm-arctype-sel" style="margin-top: 4px;"><div></td>
			</tr>
			<tr>
				<!-- if pack "to archive", if not - "to folder" -->
				<td class="bxfm-d-label"><label for="bx_pack_to"><?php 
        echo GetMessage("FM_PACK_TO");
        ?>
:</label></td>
				<td class="bxfm-d-value">
					<div style="width: 340px;">
						<input id="bx_pack_to" style="width: 260px;" value="/" type="text"/>&nbsp;<input type="button" value="..." title="<?php 
        echo GetMessage('FD_OPEN_DIR');
        ?>
" onclick="FMFD_PackUnpackOpen(true, {site: window.oBXFMPack.oSiteSel.value, path: window.oBXFMPack.GetFolderPath(window.oBXFMPack.oPackTo.pInput.value)});"  />
						<span class="bxfm-site-sel" id="bx_pack_site_sel"></span>
					</div>
				</td>
			</tr>
			<tr class="bx-pack-d-title" id="bx-pack-d-title-label">
				<td></td>
				<td><?php 
        echo GetMessage("FM_PACK_ADDITIONAL");
        ?>
</td>
			</tr>
			<!--<tr class="bxfm-add-hide" id="bxfm-pack-option-ask">
				<td class="bxfm-d-label">
					<input id="bx_pack_ask_user" type="radio" name="bx_pack_coincidence" value="ask" checked="checked"/>
				</td>
				<td class="bxfm-d-value">
					<label for="bx_pack_ask_user"><?php 
        echo GetMessage("FM_PACK_ASK_USER");
        ?>
</label>
				</td>
			</tr>-->
			<tr class="bxfm-add-hide" id="bxfm-pack-option-replace">
				<td class="bxfm-d-label">
					<input id="bx_pack_replace" type="radio" name="bx_pack_coincidence" value="replace" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_pack_replace"><?php 
        echo GetMessage("FM_PACK_REPLACE");
        ?>
</label>
				</td>
			</tr>
			<!--<tr class="bxfm-add-hide" id="bxfm-pack-option-rename">
				<td class="bxfm-d-label">
					<input id="bx_pack_auto_rename" type="radio" name="bx_pack_coincidence" value="auto_rename" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_pack_auto_rename"><?php 
        echo GetMessage("FM_PACK_AUTO_RENAME");
        ?>
</label>
				</td>
			</tr>-->
			<tr class="bxfm-add-hide" id="bxfm-pack-option-skip">
				<td class="bxfm-d-label">
					<input id="bx_pack_skip" type="radio" name="bx_pack_coincidence" value="skip" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_pack_skip"><?php 
        echo GetMessage("FM_PACK_SKIP");
        ?>
</label>
				</td>
			</tr>
		</table>
<?php 
        CAdminFileDialog::ShowScript(array("event" => "FMFD_PackUnpackOpen", "arResultDest" => array("FUNCTION_NAME" => "MakeArchivePathFromFolderPath"), "arPath" => array("SITE" => $GLOBALS['site'], "PATH" => "/"), "select" => 'D', "operation" => 'O', "showUploadTab" => false, "showAddToMenuTab" => false, "allowAllFiles" => false, "SaveConfig" => true));
        ?>
		</div>
		<script type="text/javascript">
			function MakeArchivePathFromFolderPath(filename, path, site)
			{
				var
					oldArchivePath = BX('bx_pack_to').value,
					newArchivePath,
					archiveName;

				archiveName = oldArchivePath.substr(oldArchivePath.lastIndexOf('/') + 1);
				newArchivePath = "/" + path + "/" + filename + "/" + archiveName;

				newArchivePath = newArchivePath.replace(/[\/]+$/g, "");
				newArchivePath = newArchivePath.replace(/[\/]+/g, '/');
				newArchivePath = newArchivePath.replace(/[\\]+/g, '/');

				if (newArchivePath == '')
					newArchivePath = '/';

				BX('bx_pack_to').value = newArchivePath;
			}
		</script>
		<div id="bx_pack_ask_dialog" class="bx-pack-cont">
		<div style="margin: 0 20px 0 20px; width: 450px; padding: 10px 0 5px;">
		<?php 
        echo GetMessage("FM_UTIL_FILE_EXIST", array("#NAME#" => "<span id='bx_pack_ask_file_name'>#NAME#</span>", "#FOLDER#" => "<span id='bx_pack_ask_folder'>#FOLDER#</span>"));
        ?>
:
		</div>
		<table style="margin: 0 20px 0 20px">
			<tr>
				<td>
					<div class="bx-pack-name-cnt">
					<a id="bx_pack_ask_file2" href="javascript:void('');">file1</a>
					<div id="bxc_ask_nn_cont2" class="bx-pack-new-name bxcnn-0"></div>
					</div>
				</td>
			</tr>
			<tr id="bx_pack_ask_size_row">
				<td><?php 
        echo GetMessage("FM_UTIL_SIZE");
        ?>
: <span id="bx_pack_ask_size2"></span></td>
			</tr>
			<tr class="bx-pack-bottom">
				<td><?php 
        echo GetMessage("FM_UTIL_DATE");
        ?>
: <span id="bx_pack_ask_date2"></span></td>
			</tr>
		</table>
		<br/>
		</div><?php 
    }
Пример #25
0
	function BuildSceleton($display = true)
	{
		$width = isset($this->jsConfig['width']) && intval($this->jsConfig['width']) > 0 ? $this->jsConfig['width'] : "100%";
		$height = isset($this->jsConfig['height']) && intval($this->jsConfig['height']) > 0 ? $this->jsConfig['height'] : "100%";

		$widthUnit = strpos($width, "%") === false ? "px" : "%";
		$heightUnit = strpos($height, "%") === false ? "px" : "%";
		$width = intval($width);
		$height = intval($height);

		?>
		<div class="bx-html-editor" id="bx-html-editor-<?php 
echo $this->id;
?>
" style="width:<?php 
echo $width . $widthUnit;
?>
; height:<?php 
echo $height . $heightUnit;
?>
; <?php 
echo $display ? '' : 'display: none;';
?>
">
			<div class="bxhtmled-toolbar-cnt" id="bx-html-editor-tlbr-cnt-<?php 
echo $this->id;
?>
">
				<div class="bxhtmled-toolbar" id="bx-html-editor-tlbr-<?php 
echo $this->id;
?>
"></div>
			</div>
			<div class="bxhtmled-search-cnt" id="bx-html-editor-search-cnt-<?php 
echo $this->id;
?>
" style="display: none;"></div>
			<div class="bxhtmled-area-cnt" id="bx-html-editor-area-cnt-<?php 
echo $this->id;
?>
">
				<div class="bxhtmled-iframe-cnt" id="bx-html-editor-iframe-cnt-<?php 
echo $this->id;
?>
"></div>
				<div class="bxhtmled-textarea-cnt" id="bx-html-editor-ta-cnt-<?php 
echo $this->id;
?>
"></div>
				<div class="bxhtmled-resizer-overlay" id="bx-html-editor-res-over-<?php 
echo $this->id;
?>
"></div>
				<div id="bx-html-editor-split-resizer-<?php 
echo $this->id;
?>
"></div>
			</div>
			<div class="bxhtmled-nav-cnt" id="bx-html-editor-nav-cnt-<?php 
echo $this->id;
?>
" style="display: none;"></div>
			<div class="bxhtmled-taskbar-cnt bxhtmled-taskbar-hidden" id="bx-html-editor-tskbr-cnt-<?php 
echo $this->id;
?>
">
				<div class="bxhtmled-taskbar-top-cnt" id="bx-html-editor-tskbr-top-<?php 
echo $this->id;
?>
"></div>
				<div class="bxhtmled-taskbar-resizer" id="bx-html-editor-tskbr-res-<?php 
echo $this->id;
?>
">
					<div class="bxhtmled-right-side-split-border">
						<div data-bx-tsk-split-but="Y" class="bxhtmled-right-side-split-btn"></div>
					</div>
				</div>
				<div class="bxhtmled-taskbar-search-nothing" id="bxhed-tskbr-search-nothing-<?php 
echo $this->id;
?>
"><?php 
echo GetMessage('HTMLED_SEARCH_NOTHING');
?>
</div>
				<div class="bxhtmled-taskbar-search-cont" id="bxhed-tskbr-search-cnt-<?php 
echo $this->id;
?>
" data-bx-type="taskbar_search">
					<div class="bxhtmled-search-alignment" id="bxhed-tskbr-search-ali-<?php 
echo $this->id;
?>
">
						<input type="text" class="bxhtmled-search-inp" id="bxhed-tskbr-search-inp-<?php 
echo $this->id;
?>
" placeholder="<?php 
echo GetMessage('HTMLED_SEARCH_PLACEHOLDER');
?>
"/>
					</div>
					<div class="bxhtmled-search-cancel" data-bx-type="taskbar_search_cancel" title="<?php 
echo GetMessage('HTMLED_SEARCH_CANCEL');
?>
"></div>
				</div>
			</div>
		</div>
		<div style="display: none;">
			<?
			CAdminFileDialog::ShowScript(Array
				(
					"event" => "BxOpenFileBrowserWindFile".$this->id,
					"arResultDest" => Array("FUNCTION_NAME" => "OnFileDialogSelect".$this->id),
					"arPath" => Array("SITE" => SITE_ID),
					"select" => 'F',
					"operation" => 'O',
					"showUploadTab" => true,
					"showAddToMenuTab" => false,
					"fileFilter" => '',
					"allowAllFiles" => true,
					"SaveConfig" => true
				)
			);

			CAdminFileDialog::ShowScript(Array
				(
					"event" => "BxOpenFileBrowserImgFile".$this->id,
					"arResultDest" => Array("FUNCTION_NAME" => "OnFileDialogImgSelect".$this->id),
					//"arPath" => Array("SITE" => $_GET["site"], "PATH" =>(strlen($str_FILENAME) > 0 ? GetDirPath($str_FILENAME) : '')),
					"select" => 'F',
					"operation" => 'O',
					"showUploadTab" => true,
					"showAddToMenuTab" => false,
					"fileFilter" => 'image',
					"allowAllFiles" => true,
					"SaveConfig" => true
				)
			);

			CMedialib::ShowBrowseButton(
				array(
					'value' => '...',
					'event' => "BxOpenFileBrowserImgFile".$this->id,
					'button_id' => "bx-open-file-medialib-but-".$this->id,
					'id' => "bx_open_file_medialib_button_".$this->id,
					'MedialibConfig' => array(
						"event" => "BxOpenFileBrowserImgFileMl".$this->id,
						"arResultDest" => Array("FUNCTION_NAME" => "OnFileDialogImgSelect".$this->id),
						"types" => array('image')
					)
				)
			);
			?>
		</div>
	<?
	}
Пример #26
0
		<script>
		function setFile(filename, path, site)
		{
			if(filename == path)
			{
				document.getElementById('ffilename').value = filename;
			}
			else
			{
				if(path != '/')
					path += '/';
				document.getElementById('ffilename').value = path + filename;
			}
		}
		</script><?php 
CAdminFileDialog::ShowScript(array("event" => "OpenFileBrowserWindFile", "arResultDest" => array("FUNCTION_NAME" => 'setFile'), "select" => 'DF', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => true, "allowAllFiles" => true, "SaveConfig" => true));
?>
<input type="button" onclick="OpenFileBrowserWindFile();" value="<?php 
echo GetMessage("CTRLR_UPLOAD_OPEN_FILE_BUTTON");
?>
">
	</td>
</tr>
<tr>
	<td>
		<?php 
echo GetMessage('CTRLR_UPLOAD_SEND_FILE_TO');
?>
	</td>
	<td>
		<input type="text" id="fpath_to" name="fpath_to">
Пример #27
0
$aContext = array(array("ICON" => "btn_list", "TEXT" => GetMessage("MAIN_ADMIN_MENU_LIST"), "LINK" => "learn_question_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_"), "TITLE" => GetMessage("LEARNING_QUESTION_LIST")));
if (!$bBadCourse) {
    if ($ID > 0) {
        $arContextPopup = array(array("TEXT" => GetMessage('LEARNING_SINGLE_CHOICE'), "ACTION" => "window.location='learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_", false) . "&QUESTION_TYPE=S" . ($from == "learn_admin" ? "&from=learn_admin" : "") . "'"), array("TEXT" => GetMessage('LEARNING_MULTIPLE_CHOICE'), "ACTION" => "window.location='learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_", false) . "&QUESTION_TYPE=M" . ($from == "learn_admin" ? "&from=learn_admin" : "") . "'"), array("TEXT" => GetMessage('LEARNING_SORTING'), "ACTION" => "window.location='learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_", false) . "&QUESTION_TYPE=R" . ($from == "learn_admin" ? "&from=learn_admin" : "") . "'"), array("TEXT" => GetMessage('LEARNING_TEXT_ANSWER'), "ACTION" => "window.location='learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_", false) . "&QUESTION_TYPE=T" . ($from == "learn_admin" ? "&from=learn_admin" : "") . "'"));
        $aContext[] = array("ICON" => "btn_new", "TEXT" => GetMessage("MAIN_ADMIN_MENU_CREATE"), "MENU" => $arContextPopup, "TITLE" => GetMessage("LEARNING_ADD"));
        $aContext[] = array("ICON" => "btn_delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "LINK" => "javascript:if(confirm('" . GetMessage("LEARNING_CONFIRM_DEL_MESSAGE") . "'))window.location='learn_question_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&action=delete&ID=" . $ID . "&" . bitrix_sessid_get() . urlencode(GetFilterParams("filter_", false)) . "';");
    }
    $context = new CAdminContextMenu($aContext);
    $context->Show();
    if ($message) {
        echo $message->Show();
    }
    ?>

<?php 
    CAdminFileDialog::ShowScript(array("event" => "OpenFileBrowserWindMedia", "arResultDest" => array("FUNCTION_NAME" => "SetUrl"), "arPath" => array("SITE" => $_GET["site"], "PATH" => strlen($str_FILENAME) > 0 ? GetDirPath($str_FILENAME) : ''), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'wmv,flv,mp4,wma,mp3', "allowAllFiles" => true, "SaveConfig" => true));
    function CustomizeEditor()
    {
        ob_start();
        ?>
	<div class="bxed-dialog">
		<table class="bx-image-dialog-tbl">
			<tr>
				<td class="bx-par-title"><?php 
        echo GetMessage("LEARNING_PATH_TO_FILE");
        ?>
:</td>
				<td class="bx-par-val" colspan="3">
					<input type="text" size="30" id="mediaPath" />
					<input type="button" value="..." id="OpenFileBrowserWindMedia_button">
				</td>
Пример #28
0
	</tr>
	<tr>
		<td><?echo GetMessage("user_sett_sounds_play")?></td>
		<td><input type="checkbox" name="sound" value="Y"<?if($aUserOpt["sound"] == "Y") echo " checked"?>></td>
	</tr>
	<tr>
		<td><?echo GetMessage("user_sett_sounds_login")?></td>
		<td>
<?
CAdminFileDialog::ShowScript(
	Array
	(
		"event" => "OpenFileBrowserWindFile",
		"arResultDest" => Array("FORM_NAME" => "form1", "FORM_ELEMENT_NAME" => "sound_login"),
		"arPath" => Array('PATH' => '/freetrix/sounds/main/'),
		"select" => 'F',// F - file only, D - folder only
		"operation" => 'O',// O - open, S - save
		"showUploadTab" => true,
		"fileFilter" => 'wma,mp3,aac',
		"allowAllFiles" => true,
		"SaveConfig" => true
	)
);
?>
			<input type="text" name="sound_login" value="<?echo htmlspecialcharsbx($aUserOpt["sound_login"])?>" size="40">
			<input type="button" value="..." title="<?echo GetMessage("user_sett_sounds_button_title")?>" onclick="OpenFileBrowserWindFile()">
		</td>
	</tr>

	<tr class="heading">
		<td colspan="2"><?echo GetMessage("user_sett_mess_head")?></td>
	</tr>
Пример #29
0
<div id="dump_result_div"></div>
<? 
if (defined('DUMP_DEBUG_MODE'))
	echo '<div style="color:red">DEBUG MODE</div>
	<input type=button value=Next onclick="AjaxSend(\'?process=Y&'.bitrix_sessid_get().'\')">';
echo BeginNote();
echo GetMessage("MAIN_DUMP_HEADER_MSG");
echo EndNote();

CAdminFileDialog::ShowScript(
	Array
	(
		"event" => "__bx_select_dir",
		"arResultDest" => Array("FUNCTION_NAME" => "mnu_SelectValue"),
		"arPath" => Array('PATH'=>"/"),
		"select" => 'D',
		"operation" => 'O',
		"showUploadTab" => false,
		"showAddToMenuTab" => false,
		"allowAllFiles" => true,
		"SaveConfig" => true 
	)
);		
?>
<script language="JavaScript">
function GetLicenseInfo()
{
	ShowWaitWindow();
	CHttpRequest.Action = function(result)
	{
		CloseWaitWindow();
		document.getElementById('license_info').innerHTML = result;
Пример #30
0
		<?php 
CAdminFileDialog::ShowScript(array("event" => "BtnClick", "arResultDest" => array("FORM_NAME" => "form", "FORM_ELEMENT_NAME" => "EDIT_FILE_BEFORE"), "arPath" => array("SITE" => SITE_ID, "PATH" => GetDirPath($str_EDIT_FILE_BEFORE)), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'php', "allowAllFiles" => true, "SaveConfig" => true));
?>
		<?php 
echo GetMessage("IBTYPE_E_FILE_BEFORE");
?>
</td>
		<td><input type="text" name="EDIT_FILE_BEFORE" size="50"  maxlength="255" value="<?php 
echo $str_EDIT_FILE_BEFORE;
?>
">&nbsp;<input type="button" name="browse" value="..." onClick="BtnClick()"></td>
	</tr>
	<tr>
		<td>
		<?php 
CAdminFileDialog::ShowScript(array("event" => "BtnClick2", "arResultDest" => array("FORM_NAME" => "form", "FORM_ELEMENT_NAME" => "EDIT_FILE_AFTER"), "arPath" => array("SITE" => SITE_ID, "PATH" => GetDirPath($str_EDIT_FILE_AFTER)), "select" => 'F', "operation" => 'O', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'php', "allowAllFiles" => true, "SaveConfig" => true));
?>
		<?php 
echo GetMessage("IBTYPE_E_FILE_AFTER");
?>
</td>
		<td><input type="text" name="EDIT_FILE_AFTER" size="50"  maxlength="255" value="<?php 
echo $str_EDIT_FILE_AFTER;
?>
">&nbsp;<input type="button" name="browse" value="..." onClick="BtnClick2()"></td>
	</tr>


<?php 
$tabControl->Buttons(array("disabled" => false, "back_url" => $back_url));
$tabControl->End();