Example #1
0
$editTab->Begin();
$editTab->BeginNextTab();
?>
<tr valign="top">
	<td width="100%" colspan="2">
		<textarea cols="60" name="query" id="query" rows="15" wrap="OFF" style="width:100%;"><?echo htmlspecialcharsbx($_REQUEST['query']); ?></textarea><br />
	</td>
</tr>
<?$editTab->Buttons();
?>
<input<?if(!$isAdmin) echo " disabled"?> type="button" accesskey="x" name="execute" value="<?echo GetMessage("php_cmd_button")?>" onclick="return __FPHPSubmit();" class="adm-btn-save">
<input type="reset" value="<?echo GetMessage("php_cmd_button_clear")?>">
<?
$editTab->End();
?>
</form>

<?
if(COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y" && CModule::IncludeModule('fileman'))
{
	CCodeEditor::Show(array(
		'textareaId' => 'query',
		'height' => 350,
		'forceSyntax' => 'php',
	));
}
?>
<div id="result_div"></div>
<?
require($_SERVER["DOCUMENT_ROOT"].FX_ROOT."/modules/main/include/epilog_admin.php");
?>
		BX.focus(BX('bx-filesrc'));
	});


	return BX.PreventDefault(e || window.event);
}

BX.ready(function() {
	BX.bind(document.forms.ffilemanedit.apply, 'click', AjaxApply);
});
</script>

<?php 
    if (COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y") {
        $forceSyntax = false;
        $ext = strtolower(CFileMan::GetFileExtension($path));
        if ($ext == 'sql') {
            $forceSyntax = 'sql';
        } elseif ($ext == 'js') {
            $forceSyntax = 'js';
        }
        CCodeEditor::Show(array('textareaId' => 'bx-filesrc', 'height' => 500, 'forceSyntax' => $forceSyntax));
    }
    // $hkInst = CHotKeys::getInstance();
    // $arExecs = $hkInst->GetCodeByClassName("admin_file_edit_apply");
    // echo $hkInst->PrintJSExecs($arExecs);
    ?>

<?php 
}
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
Example #3
0
	if (isset($filename2))
		$filename = $filename2;
	?>
	<input type="text" name="filename" style="width:100%" size="40" maxlength="255" value="<?echo htmlspecialcharsbx($filename)?>"><br><br>
</div>
<?endif;?>

<textarea id="bx-filesrc" name="filesrc" style="height: 99%; width: 100%;"><?php 
echo htmlspecialcharsbx($filesrc);
?>
</textarea>

<?
$ceid = false;
if(COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y" && CModule::IncludeModule('fileman'))
	$ceid = CCodeEditor::Show(array('textareaId' => 'bx-filesrc'));
?>

<script type="text/javascript">
var border = null, ta = null, wnd = BX.WindowManager.Get();

function TAResize(data)
{
	<?if ($ceid):?>
		var CE = window.BXCodeEditors['<?php 
echo $ceid;
?>
'];
		if (CE && CE.Resize)
		{
			CE.Resize(data.width - 10, data.height - 60);
Example #4
0
	</tr>
	<tr>
		<td><?echo GetMessage("SITE_TEMPL_EDIT_SORT")?></td>
		<td><input type="text" name="SORT" size="20" value="<? echo $str_SORT?>"></td>
	</tr>
	<tr class="heading">
		<td colspan="2"><?echo GetMessage("MAIN_T_EDIT_CONTENT", array("#WORK_AREA#"=>'<a href="javascript:void(0)" onclick="document.bform.CONTENT.value+=\'#WORK_AREA#\';" title="'.GetMessage("MAIN_T_EDIT_INSERT_WORK_AREA").'">#WORK_AREA#</a>'))?></td>
	</tr>

	<tr>
		<td align="center" colspan="2">
			<?if(COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y")
			{
				CCodeEditor::Show(
					array(
						'textareaId' => 'bxed_CONTENT',
						'height' => 500
					));
			}?>

			<textarea rows="28" cols="60" style="width:100%" id="bxed_CONTENT" name="CONTENT" wrap="off"><?echo htmlspecialcharsbx(htmlspecialcharsback($str_CONTENT))?></textarea>

		</td>
	</tr>
<?
$tabControl->BeginNextTab();
?>
	<tr>
		<td align="center" colspan="2"><textarea rows="25" cols="60" style="width:100%" id="__STYLES" name="STYLES" wrap="off"><?echo $str_STYLES?></textarea></td>
	</tr>
	<tr class="heading">
Example #5
0
<?php 
$ceid = false;
if (COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y" && CModule::IncludeModule('fileman')) {
    $forceSyntax = false;
    if ($path) {
        $ext = strtolower(CFileMan::GetFileExtension($path));
        if ($ext == 'sql') {
            $forceSyntax = 'sql';
        } elseif ($ext == 'js') {
            $forceSyntax = 'js';
        } elseif ($ext == 'css') {
            $forceSyntax = 'css';
        }
    }
    $ceid = CCodeEditor::Show(array('textareaId' => 'bx-filesrc', 'forceSyntax' => $forceSyntax));
}
?>
<script type="text/javascript">
var border = null, ta = null, wnd = BX.WindowManager.Get();

function TAResize(data)
{
	<?php 
if ($ceid) {
    ?>
		var CE = window.BXCodeEditors['<?php 
    echo $ceid;
    ?>
'];
		if (CE && CE.Resize)
?>
<input type="hidden" name="lang" value="<?php 
echo LANGUAGE_ID;
?>
">
<?php 
if ($ID > 0) {
    ?>
	<input type="hidden" name="ID" value="<?php 
    echo $ID;
    ?>
">
	<input type="hidden" name="delete" id="delete" value="">
<?php 
}
if ($back_url != '') {
    ?>
	<input type="hidden" name="back_url" value="<?php 
    echo htmlspecialcharsbx($back_url);
    ?>
">
<?php 
}
?>
<input type="hidden" value="Y" name="apply">
</form>
<?php 
if (COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y" && CModule::IncludeModule('fileman')) {
    CCodeEditor::Show(array('textareaId' => 'COMMAND', 'height' => 350, 'forceSyntax' => 'php'));
}
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin.php";
Example #7
0
echo htmlspecialcharsbx($query);
?>
</textarea><br />	</td>
</tr>
<?php 
$editTab->Buttons();
?>
<input <?php 
if (!$isAdmin) {
    echo "disabled";
}
?>
 type="button" accesskey="x" name="execute" value="<?php 
echo GetMessage("SQL_EXECUTE");
?>
" onclick="return __FSQLSubmit();" class="adm-btn-save">
<input type="reset" value="<?php 
echo GetMessage("SQL_RESET");
?>
">
<?php 
$editTab->End();
?>
</form>

<?php 
if (COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y" && CModule::IncludeModule('fileman')) {
    CCodeEditor::Show(array('textareaId' => 'sql', 'height' => 350, 'forceSyntax' => 'sql'));
}
$lAdmin->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin.php";
	</tr>
	<tr>
		<td><textarea style="width:100%" rows="15" wrap="OFF" name="UNINSTALL_PHP" id="UNINSTALL_PHP"><?php 
echo $str_UNINSTALL_PHP;
?>
</textarea></td>
	</tr>
<?php 
if (count($USER_FIELD_MANAGER->GetUserFields($ENTITY_ID)) > 0 || $USER_FIELD_MANAGER->GetRights($ENTITY_ID) >= "W") {
    $tabControl->BeginNextTab();
    $USER_FIELD_MANAGER->EditFormShowTab($ENTITY_ID, is_object($message), $ID);
}
$tabControl->EndTab();
?>

<?php 
$tabControl->Buttons(array("back_url" => "controller_group_admin.php?lang=" . LANGUAGE_ID));
$tabControl->End();
?>
<input type="hidden" value="Y" name="apply">
</form>
<?php 
if (COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y" && CModule::IncludeModule('fileman')) {
    CCodeEditor::Show(array('textareaId' => 'INSTALL_PHP', 'height' => 250, 'forceSyntax' => 'php'));
    CCodeEditor::Show(array('textareaId' => 'UNINSTALL_PHP', 'height' => 250, 'forceSyntax' => 'php'));
}
$tabControl->ShowWarnings("form1", $message);
?>

<?php 
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin.php";