FileManager

This commit is contained in:
Kevin Adametz 2020-03-07 19:45:39 +01:00
parent c8948338bb
commit f1e0900a7a
131 changed files with 5844 additions and 3081 deletions

View file

@ -1,6 +1,7 @@
<?php
namespace App\Services;
use App\Models\CMSAuthor;
use App\Models\Country;
use App\Models\Draft;
use App\Models\DraftType;
@ -210,6 +211,17 @@ class HTMLHelper
return $ret;
}
public static function getAuthorOptions($setId = false){
$options = CMSAuthor::orderBy('id', "DESC")->get();
$ret = "";
foreach ($options as $option){
$attr = ($option->id === $setId) ? 'selected="selected"' : '';
$ret .= '<option value="'.$option->id.'" '.$attr.'>'.$option->name.'</option>\n';
}
return $ret;
}
public static function getTravelClassOptions($programId = false, $setId = false){
$options = TravelClass::where('program_id', $programId)->get();
$ret = '<option value="">alle Kategorien</option>\n';