added html tags to upload images into galleries
This commit is contained in:
parent
a390c467f5
commit
7e3f8b5769
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/nbproject/private/
|
/nbproject/private/
|
||||||
/nbproject/
|
/nbproject/
|
||||||
|
/sai/modules/saimod_sys_img/nbproject/private/
|
||||||
@ -3,15 +3,22 @@ namespace SYSTEM\SAI;
|
|||||||
|
|
||||||
class saimod_sys_img extends \SYSTEM\SAI\SaiModule {
|
class saimod_sys_img extends \SYSTEM\SAI\SaiModule {
|
||||||
public static function sai_mod__SYSTEM_SAI_saimod_sys_img(){
|
public static function sai_mod__SYSTEM_SAI_saimod_sys_img(){
|
||||||
$result = '';
|
//tt
|
||||||
|
$result = '';
|
||||||
$img_folders = \SYSTEM\IMG\img::get();
|
$img_folders = \SYSTEM\IMG\img::get();
|
||||||
|
$result .= '<form action="upload.php" method="post" enctype="multipart/form-data">';
|
||||||
foreach($img_folders as $name=>$folder){
|
foreach($img_folders as $name=>$folder){
|
||||||
$cat = \SYSTEM\IMG\img::get($name);
|
$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){
|
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;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user