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

Custom Pages administration ready;

BBcode help small fixes;
admin JS improvements
This commit is contained in:
secretr
2008-12-29 15:23:06 +00:00
parent 4d7acbdcae
commit 887df36f03
8 changed files with 344 additions and 246 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/bbcode_shortcodes.php,v $
| $Revision: 1.7 $
| $Date: 2008-06-02 18:55:32 $
| $Author: e107steved $
| $Revision: 1.8 $
| $Date: 2008-12-29 15:23:06 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -25,7 +25,7 @@ $bbcode_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
/*
SC_BEGIN BB
//FIXME - cachevars/getcachedvars!
global $pref, $eplug_bb, $bbcode_func, $bbcode_help, $bbcode_filedir, $bbcode_imagedir, $bbcode_helpactive, $bbcode_helptag, $register_bb, $imode;
if(e_WYSIWYG){ return; }
@@ -137,9 +137,11 @@ SC_END
SC_BEGIN BB_HELP
if(e_WYSIWYG){ return; }
global $bbcode_helpactive,$bbcode_helptag;
$bbcode_helptag = ($parm) ? $parm : "helpb";
if($parm) $bbcode_helptag = $parm;
elseif(!varset($bbcode_helptag)) $bbcode_helptag = 'helpb';
$bbcode_helpactive = TRUE;
return "<input id='{$bbcode_helptag}' class='helpbox' type='text' name='{$bbcode_helptag}' size='90' maxlength='100' />\n";
//FIXME - better bb help
return "<input id='{$bbcode_helptag}' class='helpbox' type='text' name='{$bbcode_helptag}' size='90' readonly='readonly' />\n";
SC_END

View File

@@ -1,4 +1,4 @@
// $Id: uploadfile.sc,v 1.1.1.1 2006-12-02 04:33:40 mcfly_e107 Exp $
// $Id: uploadfile.sc,v 1.2 2008-12-29 15:23:06 secretr Exp $
// Your <form> tag must include: enctype='multipart/form-data' - in order to work.
// parm is the path to the upload folder.
@@ -20,16 +20,19 @@ if($parm && !is_writable($parm))
}
$name = "file_userfile[]";
//FIXME - XHTML/JS standards
$text .="
<!-- Upload Shortcode -->
<div style='width:90%'><div id='up_container' >
<span id='upline' style='white-space:nowrap'>
<input class='tbox' type='file' name='$name' size='40' />
</span><br />
</div>
<span style='float:left;padding-top:3px'><input type='button' class='button' value=\"".LAN_UPLOAD_ADDFILE."\" onclick=\"duplicateHTML('upline','up_container');\" /></span>
<span style='float:right;padding-top:3px'><input class='button' type='submit' name='uploadfiles' value=\"".LAN_UPLOAD_FILES."\" onclick=\"return jsconfirm('".LAN_UPLOAD_CONFIRM."')\" /></span>
<div>
<div class='field-spacer'>
<button type='button' class='action duplicate' value=\"".LAN_UPLOAD_ADDFILE."\" onclick=\"duplicateHTML('upline','up_container');\"><span>".LAN_UPLOAD_ADDFILE."</span></button>
<button class='upload' type='submit' name='uploadfiles' value=\"".LAN_UPLOAD_FILES."\" onclick=\"return jsconfirm('".LAN_UPLOAD_CONFIRM."')\"><span>".LAN_UPLOAD_FILES."</span></button>
</div>
<div id='up_container'>
<div id='upline' class='nowrap'>
<input class='tbox' type='file' name='{$name}' size='40' />
</div>
</div>
</div>
<!-- End Upload Shortcode -->
";