added html tags to upload images into galleries

This commit is contained in:
messerbill 2013-12-18 14:58:24 +01:00
parent a390c467f5
commit 7e3f8b5769
2 changed files with 11 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/nbproject/private/
/nbproject/
/sai/modules/saimod_sys_img/nbproject/private/

View File

@ -3,15 +3,22 @@ namespace SYSTEM\SAI;
class saimod_sys_img extends \SYSTEM\SAI\SaiModule {
public static function sai_mod__SYSTEM_SAI_saimod_sys_img(){
$result = '';
//tt
$result = '';
$img_folders = \SYSTEM\IMG\img::get();
$result .= '<form action="upload.php" method="post" enctype="multipart/form-data">';
foreach($img_folders as $name=>$folder){
$cat = \SYSTEM\IMG\img::get($name);
$result .= "<h3>".$name."</h3>";
$result .= '<input type="file" name="datei"><br>
<input type="submit" class="btn" value="Hochladen">';
foreach($cat as $img){
$result .= '<img src="api.php?call=img&cat='.$name.'&id='.$img.'" alt="" />';
//$result .= '<img src="api.php?call=img&cat='.$name.'&id='.$img.'" alt="" />';
$result .= '<li><a href="api.php?call=img&cat='.$name.'&id='.$img.'">'.$img.'</a></li>';
}
}
$result .= "</form>";
return $result;
}