1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Maintenance administration - ajax implementation;

Solved number of bbcode issues (lot more to do);
e_form::bbarea method added (automated bb textarea creation);
admin_theme for blank theme
This commit is contained in:
secretr
2009-01-07 15:40:06 +00:00
parent 320da6645e
commit bd228fc99f
10 changed files with 304 additions and 114 deletions

View File

@@ -9,8 +9,8 @@
* Form Handler
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
* $Revision: 1.13 $
* $Date: 2008-12-30 13:51:41 $
* $Revision: 1.14 $
* $Date: 2009-01-07 15:40:06 $
* $Author: secretr $
*
*/
@@ -100,6 +100,28 @@ class e_form
return "<textarea name='{$name}' rows='{$rows}' cols='{$cols}'".$this->get_attributes($options, $name).">{$value}</textarea>";
}
function bbarea($name, $value, $help_mod = '', $help_tagid='')
{
$options = array('class' => 'tbox large');
if(!defsettrue('e_WYSIWYG'))
{
require_once(e_HANDLER."ren_help.php");
$options['other'] = "onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'";
$bbbar = display_help($help_tagid, $help_mod);
}
$ret = "
<div class='bbarea'>
<div class='field-spacer'>
".$this->textarea($name, $value, 15, 50, $options)."
</div>
{$bbbar}
</div>
";
return $ret;
}
function checkbox($name, $value, $checked = false, $options = array())
{
$options['checked'] = $checked; //comes as separate argument just for convenience