mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 14:11:29 +01:00
bigger window for main- or login-screen messages, if using fck
This commit is contained in:
parent
51f8d5b7b0
commit
b7b64d103b
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
function index()
|
function index()
|
||||||
{
|
{
|
||||||
$html =& CreateObject('phpgwapi.html');
|
|
||||||
$section = $_POST['section'];
|
$section = $_POST['section'];
|
||||||
$select_lang = $_POST['select_lang'];
|
$select_lang = $_POST['select_lang'];
|
||||||
$message = get_magic_quotes_gpc() ? stripslashes($_POST['message']) : $_POST['message'];
|
$message = get_magic_quotes_gpc() ? stripslashes($_POST['message']) : $_POST['message'];
|
||||||
@ -119,14 +118,14 @@
|
|||||||
if ($_POST['no-htmlarea']) $current_message = strip_tags($current_message);
|
if ($_POST['no-htmlarea']) $current_message = strip_tags($current_message);
|
||||||
if($_POST['htmlarea'] || strlen($current_message) > strlen(strip_tags($current_message)))
|
if($_POST['htmlarea'] || strlen($current_message) > strlen(strip_tags($current_message)))
|
||||||
{
|
{
|
||||||
$text_or_htmlarea=$html->htmlarea('message',$current_message,'advanced');
|
$text_or_htmlarea = html::fckEditorQuick('message','advanced',$current_message,'400px','800px');
|
||||||
$htmlarea_button='<input type="submit" name="no-htmlarea" onclick="self.location.href=\''.$GLOBALS['egw']->link('/index.php',
|
$htmlarea_button='<input type="submit" name="no-htmlarea" onclick="self.location.href=\''.$GLOBALS['egw']->link('/index.php',
|
||||||
'menuaction=admin.uimainscreen.index&htmlarea=true').'\'" value="'.lang('disable WYSIWYG-editor').'">';
|
'menuaction=admin.uimainscreen.index&htmlarea=true').'\'" value="'.lang('disable WYSIWYG-editor').'">';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$text_or_htmlarea='<textarea name="message" style="width:100%; min-width:350px; height:300px;" wrap="virtual">' .
|
$text_or_htmlarea='<textarea name="message" style="width:100%; min-width:350px; height:300px;" wrap="virtual">' .
|
||||||
$html->htmlspecialchars($current_message) . '</textarea>';
|
html::htmlspecialchars($current_message) . '</textarea>';
|
||||||
$htmlarea_button='<input type="submit" name="htmlarea" onclick="self.location.href=\''.
|
$htmlarea_button='<input type="submit" name="htmlarea" onclick="self.location.href=\''.
|
||||||
$GLOBALS['egw']->link('/index.php','menuaction=admin.uimainscreen.index&htmlarea=true').'\'" value="'.
|
$GLOBALS['egw']->link('/index.php','menuaction=admin.uimainscreen.index&htmlarea=true').'\'" value="'.
|
||||||
lang('activate WYSIWYG-editor').'">';
|
lang('activate WYSIWYG-editor').'">';
|
||||||
|
Loading…
Reference in New Issue
Block a user