Code

Added status if a file is uploaded
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 07:59:30 +0000 (07:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 07:59:30 +0000 (07:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1475 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiTemplateEntry.inc
plugins/admin/fai/faiTemplateEntry.tpl

index c4e8dad3a3139ef49779d48df93405f1eaeca66d..a3096f17339dda451121671f50826e482b45b652 100644 (file)
@@ -49,6 +49,13 @@ class faiTemplateEntry extends plugin
       }
     
     }
+    
+    $status="<br>"._("No file uploaded");
+    if(strlen($this->Object_FAItemplateFile)){
+      $status="<br>".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));
     }
index 57d1d9e7317721d2901af0ef2231ab9242a0c193..6afe0286f7323f39e287d9e015899f105fef48c9 100644 (file)
@@ -37,6 +37,7 @@
                                                <td>
                                                        <input type="file" name="FAItemplateFile" value="{$Object_FAItemplateFile}" id="Object_FAItemplateFile">
                                                        <input type="submit" value="{t}upload{/t}" name="TmpFileUpload">
+                                                        {$status}
                                                </td>
                                        </tr>
                                        <tr>