Styling fixes

This commit is contained in:
2015-06-28 01:36:03 +02:00
parent e02a16d7ac
commit f623367de5
2 changed files with 13 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ function RenderText($idText,$value){
$render='<div class="fieldContent">'."\n"; $render='<div class="fieldContent">'."\n";
$render.='<input type="text" id="'.$idTextFixed.'" name="'.$idTextFixed.'"'. $render.='<input type="text" id="'.$idTextFixed.'" name="'.$idTextFixed.'"'.
' value="'.$valueFixed.'" '. ' value="'.$valueFixed.'" '.
' class="textBox"/>'."\n"; ' class="textBox width100px"/>'."\n";
$render.="</div>\n"; $render.="</div>\n";
return $render; return $render;
} }
@@ -49,7 +49,7 @@ function RenderCheckText($idCheck,$checked,$idText,$value){
if($checked){ $render.=" checked "; } if($checked){ $render.=" checked "; }
$render.='class="check" />'."\n"; $render.='class="check" />'."\n";
$render.='<input type="text" id="'.$idTextFixed.'" name="'.$idTextFixed.'" '. $render.='<input type="text" id="'.$idTextFixed.'" name="'.$idTextFixed.'" '.
'value="'.$valueFixed.'" class="textBox" />'; 'value="'.$valueFixed.'" class="textBox width50px" />';
$render.="</input>\n"; $render.="</input>\n";
$render.="</div>\n"; $render.="</div>\n";
return $render; return $render;
@@ -59,7 +59,7 @@ function RenderCombo($id,$options,$selected){
$idFixed=htmlentities($id,ENT_HTML5, "UTF-8"); $idFixed=htmlentities($id,ENT_HTML5, "UTF-8");
$render='<div class="fieldContent">'."\n"; $render='<div class="fieldContent">'."\n";
$render.='<select id="'.$idFixed.'" name="'.$idFixed.'" '. $render.='<select id="'.$idFixed.'" name="'.$idFixed.'" '.
'class="combo">'."\n"; 'class="combo width100px">'."\n";
foreach ($options as $key => $value) { foreach ($options as $key => $value) {
$keyFixed=htmlentities($key,ENT_HTML5, "UTF-8"); $keyFixed=htmlentities($key,ENT_HTML5, "UTF-8");
$valueFixed=htmlentities($value,ENT_HTML5, "UTF-8"); $valueFixed=htmlentities($value,ENT_HTML5, "UTF-8");

View File

@@ -112,3 +112,13 @@ form{
height: calc(100% - 35px); height: calc(100% - 35px);
border: solid 1px rgb(32,32,32); border: solid 1px rgb(32,32,32);
} }
.width100px {
width: 100px;
max-width: 100%;
}
.width50px {
width: 50px;
max-width: 100%;
}