Mercurial > hg > fapweb
changeset 854:6ea0497101cd
Actual upload form code blurb.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 Nov 2014 08:41:22 +0200 |
parents | 8f55fa27719a |
children | 4a26a5c1df75 |
files | admajax.php |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Wed Nov 26 00:51:57 2014 +0200 +++ b/admajax.php Wed Nov 26 08:41:22 2014 +0200 @@ -193,6 +193,17 @@ if ($mode == 1) { + $handler = "admajax.php"; + $str .= + " ".stGetFormStart($type."UploadForm".$eid, $handler, FALSE, "enctype=\"multipart/form-data\" id=\"".$type."UploadForm".$eid."\""). + " ".stGetFormHiddenInput("action", "upload")."\n". + " ".stGetFormHiddenInput("type", $type)."\n". + " ".stGetFormHiddenInput("entry_id", $eid)."\n". + " <input type=\"file\" name=\"".$type."ToUpload".$eid."\" id=\"".$type."ToUpload".$eid."\">\n". + " ".stGetFormButtonInput($type."UploadButton", $eid, "", "Upload", + "jsStartFileUpload('".$type."UploadForm".$eid."','".$handler."','".$type."ToUpload".$eid. + "',".stGetSetting($type."MaxSize").", 'updateEntry(".$entry["compo_id"].",".$eid.")')")."\n". + " </form>\n"; } return $str."</div>\n";