From: hickert Date: Wed, 5 Oct 2005 07:59:30 +0000 (+0000) Subject: Added status if a file is uploaded X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3a339cfe8635143248e65d10bf1b7b4dae065c9;p=gosa.git Added status if a file is uploaded git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1475 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiTemplateEntry.inc b/plugins/admin/fai/class_faiTemplateEntry.inc index c4e8dad3a..a3096f173 100644 --- a/plugins/admin/fai/class_faiTemplateEntry.inc +++ b/plugins/admin/fai/class_faiTemplateEntry.inc @@ -49,6 +49,13 @@ class faiTemplateEntry extends plugin } } + + $status="
"._("No file uploaded"); + if(strlen($this->Object_FAItemplateFile)){ + $status="
".sprintf(_("File uploaded, size : %s byte"),strlen($this->Object_FAItemplateFile)); + } + $smarty->assign("status",$status); + foreach($this->attributes as $attrs){ $smarty->assign($attrs,stripslashes($this->$attrs)); } diff --git a/plugins/admin/fai/faiTemplateEntry.tpl b/plugins/admin/fai/faiTemplateEntry.tpl index 57d1d9e73..6afe0286f 100644 --- a/plugins/admin/fai/faiTemplateEntry.tpl +++ b/plugins/admin/fai/faiTemplateEntry.tpl @@ -37,6 +37,7 @@ + {$status}