mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
Custom Pages administration ready;
BBcode help small fixes; admin JS improvements
This commit is contained in:
@@ -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 -->
|
||||
";
|
||||
|
Reference in New Issue
Block a user