Work to invoice
This commit is contained in:
parent
224bf9e951
commit
02e78e7255
101 changed files with 23483 additions and 154 deletions
|
|
@ -65,6 +65,39 @@ class HTMLHelper
|
|||
|
||||
}
|
||||
|
||||
public static function getCustomListOf($name, $select){
|
||||
$ret = "";
|
||||
if($name === 'day'){
|
||||
$start = 1;
|
||||
$end = 31;
|
||||
$values = range($start, $end);
|
||||
$ret = '<option value="">'.__('Tag').'</option>\n';
|
||||
foreach ($values as $value){
|
||||
$attr = ($value == $select) ? 'selected="selected"' : '';
|
||||
$ret .= '<option value="'.$value.'" '.$attr.'>'.$value.'</option>\n';
|
||||
}
|
||||
}
|
||||
if($name === 'month'){
|
||||
$ret = '<option value="">'.__('Monat').'</option>\n';
|
||||
foreach (self::$months as $key=>$value){
|
||||
$attr = ($key == $select) ? 'selected="selected"' : '';
|
||||
$ret .= '<option value="'.$key.'" '.$attr.'>'.$value.'</option>\n';
|
||||
}
|
||||
}
|
||||
if($name === 'year'){
|
||||
$start = date("Y", strtotime("-5 years", time()));
|
||||
$end = date("Y", strtotime("-90 years", time()));
|
||||
$values = range($start, $end);
|
||||
$ret = '<option value="">'.__('Jahr').'</option>\n';
|
||||
foreach ($values as $value){
|
||||
$attr = ($value == $select) ? 'selected="selected"' : '';
|
||||
$ret .= '<option value="'.$value.'" '.$attr.'>'.$value.'</option>\n';
|
||||
}
|
||||
}
|
||||
|
||||
return $ret;
|
||||
|
||||
}
|
||||
public static function setContentReadMore($content){
|
||||
|
||||
$sep = '##mehr lesen##';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue