本文整理汇总了PHP中CAdminFileDialog类的典型用法代码示例。如果您正苦于以下问题:PHP CAdminFileDialog类的具体用法?PHP CAdminFileDialog怎么用?PHP CAdminFileDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CAdminFileDialog类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: Array
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);
开发者ID:ASDAFF,项目名称:open_bx,代码行数:30,代码来源:menu_edit.php
示例2: htmlspecialcharsbx
$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);
开发者ID:spas-viktor,项目名称:books,代码行数:30,代码来源:component_props2.php
示例3: array
</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?>"> <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>
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:31,代码来源:options.php
示例4: BuildAddItemDialog
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));
}
开发者ID:andy-profi,项目名称:bxApiDocs,代码行数:28,代码来源:medialib.php
示例5: Array
"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();
开发者ID:ASDAFF,项目名称:open_bx,代码行数:32,代码来源:player_playlist_edit.php
示例6: BaseGetEditFormHTML
//.........这里部分代码省略.........
}
?>
<?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;
?>
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:67,代码来源:properties.php
示例7: GetMessage
<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>
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:iblock_xml_export.php
示例8: ConditionShow
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);
?>
"> <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);
//.........这里部分代码省略.........
开发者ID:ASDAFF,项目名称:open_bx,代码行数:101,代码来源:condition.php
示例9: InitFileDialogs
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
));
}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:61,代码来源:light_editor.php
示例10: GetMessage
<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>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:data_import.php
示例11: DisplayDialogs
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));
}
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:9,代码来源:file_input.php
示例12: RequestAction
//.........这里部分代码省略.........
$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);
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:101,代码来源:html_editor.php
示例13: GetMessage
</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
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:commerceml_setup.php
示例14: htmlspecialcharsbx
<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");
开发者ID:ASDAFF,项目名称:open_bx,代码行数:32,代码来源:user_import.php
示例15: GetMessage
$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({
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:fileman_admin.php
示例16: array
}
?>
</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;
?>
"> <input type="button" name="browse" value="..." onClick="BtnClick1()"></td>
</tr>
<tr>
<td><?php
echo GetMessage("FORM_TABLE_RESULT_TEMPLATE");
?>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:form_edit.php
示例17: IncludeModuleLangFile
IncludeModuleLangFile(__FILE__);
echo '<!--BX_FD_LOAD_OK-->';
if (!check_bitrix_sessid()) {
die('<!--BX_FD_DUBLICATE_ACTION_REQUEST' . bitrix_sessid() . '-->');
}
$action = isset($_GET['action']) ? $_GET['action'] : false;
if ($action == 'start') {
CAdminFileDialog::Start(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'lang' => isset($_GET['lang']) ? $_GET['lang'] : 'en', 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'load') {
CAdminFileDialog::LoadItems(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'loadRecursively' => intval($_GET['rec']) > 0, 'loadRoot' => intval($_GET['rec']) > 1, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'new_dir') {
CAdminFileDialog::MakeNewDir(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'name' => isset($_GET['name']) ? $_GET['name'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'remove') {
CAdminFileDialog::Remove(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'rename') {
CAdminFileDialog::Rename(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'old_name' => isset($_GET['old_name']) ? $_GET['old_name'] : '', 'name' => isset($_GET['name']) ? $_GET['name'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'set_config') {
CAdminFileDialog::SetUserConfig(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'view' => isset($_GET['view']) ? $_GET['view'] : 'list', 'sort' => isset($_GET['sort']) ? $_GET['sort'] : 'name', 'sort_order' => isset($_GET['sort_order']) ? $_GET['sort_order'] : 'asc'));
} elseif ($action == 'flash') {
CAdminFileDialog::PreviewFlash(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'width' => '86px', 'height' => '86px'));
} elseif ($action == 'uploader') {
if (isset($_REQUEST['cur_site'])) {
$curSite = $_REQUEST['cur_site'];
} elseif (isset($_REQUEST['site'])) {
$curSite = $_REQUEST['site'];
} else {
$curSite = false;
}
CAdminFileDialog::ShowUploadForm(array('lang' => isset($_REQUEST['lang']) ? $_REQUEST['lang'] : 'en', 'site' => $curSite, 'file' => isset($_FILES["load_file"]) ? $_FILES["load_file"] : false, 'path' => isset($_POST["path"]) ? $_POST["path"] : '', 'filename' => isset($_POST["filename"]) ? $_POST["filename"] : '', 'upload_and_open' => isset($_POST["upload_and_open"]) ? $_POST["upload_and_open"] : 'N', 'rewrite' => isset($_POST["rewrite"]) ? $_POST["rewrite"] : 'N'));
}
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_after.php";
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:file_dialog.php
示例18: GetMessage
{
?><tr class="heading">
<td colspan
|
请发表评论