mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
Finish up reformatting
This commit is contained in:
parent
9a7c490aed
commit
41869acba8
@ -361,12 +361,19 @@
|
||||
for($i=0;$i<$c_monthnames;$i++)
|
||||
{
|
||||
$out .= '<option value="'.$i.'"';
|
||||
if($selected==$i) $out .= ' SELECTED';
|
||||
if($selected==$i)
|
||||
{
|
||||
$out .= ' SELECTED';
|
||||
}
|
||||
$out .= '>';
|
||||
if($this->monthnames[$i]!='')
|
||||
{
|
||||
$out .= lang($this->monthnames[$i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$out .= '';
|
||||
}
|
||||
$out .= '</option>'."\n";
|
||||
}
|
||||
$out .= '</select>'."\n";
|
||||
@ -379,9 +386,19 @@
|
||||
|
||||
for($i=0;$i<32;$i++)
|
||||
{
|
||||
if($i==0) $val = ''; else $val = $i;
|
||||
if($i==0)
|
||||
{
|
||||
$val = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$val = $i;
|
||||
}
|
||||
$out .= '<option value="'.$val.'"';
|
||||
if($selected==$i) $out .= ' SELECTED';
|
||||
if($selected==$i)
|
||||
{
|
||||
$out .= ' SELECTED';
|
||||
}
|
||||
$out .= '>'.$val.'</option>'."\n";
|
||||
}
|
||||
$out .= '</select>'."\n";
|
||||
@ -390,7 +407,6 @@
|
||||
|
||||
function getYears($name, $selected = 0, $startYear = 0, $endyear = 0)
|
||||
{
|
||||
|
||||
if (!$startYear)
|
||||
{
|
||||
$startYear = date('Y') - 2;
|
||||
@ -434,7 +450,10 @@
|
||||
for($i=0;$i<101;$i=$i+10)
|
||||
{
|
||||
$out .= "<option value=\"$i\"";
|
||||
if($selected==$i) $out .= " SELECTED";
|
||||
if($selected==$i)
|
||||
{
|
||||
$out .= " SELECTED";
|
||||
}
|
||||
$out .= ">$i%</option>\n";
|
||||
}
|
||||
$out .= "</select>\n";
|
||||
@ -466,9 +485,11 @@
|
||||
|
||||
function getAccessList($name, $selected="private")
|
||||
{
|
||||
$arr = array("private" => "Private",
|
||||
$arr = array(
|
||||
"private" => "Private",
|
||||
"public" => "Global public",
|
||||
"group" => "Group public");
|
||||
"group" => "Group public"
|
||||
);
|
||||
|
||||
if (ereg(",", $selected))
|
||||
{
|
||||
@ -480,7 +501,10 @@
|
||||
for(reset($arr);current($arr);next($arr))
|
||||
{
|
||||
$out .= '<option value="' . key($arr) . '"';
|
||||
if($selected==key($arr)) $out .= " SELECTED";
|
||||
if($selected==key($arr))
|
||||
{
|
||||
$out .= " SELECTED";
|
||||
}
|
||||
$out .= ">" . pos($arr) . "</option>\n";
|
||||
}
|
||||
$out .= "</select>\n";
|
||||
@ -492,16 +516,22 @@
|
||||
global $phpgw;
|
||||
|
||||
$out = '<select name="' . $name . '" multiple>';
|
||||
while (list($null,$group) = each($groups)) {
|
||||
while (list($null,$group) = each($groups))
|
||||
{
|
||||
$out .= '<option value="' . $group['account_id'] . '"';
|
||||
if (strtolower(gettype($selected)) == strtolower("array")) {
|
||||
for($i=0;$i<count($selected);$i++) {
|
||||
if ($group['account_id'] == $selected[$i]) {
|
||||
if (strtolower(gettype($selected)) == strtolower("array"))
|
||||
{
|
||||
for($i=0;$i<count($selected);$i++)
|
||||
{
|
||||
if ($group['account_id'] == $selected[$i])
|
||||
{
|
||||
$out .= " SELECTED";
|
||||
break;
|
||||
}
|
||||
}
|
||||
} elseif (ereg("," . $group['account_id'] . ",", $selected)) {
|
||||
}
|
||||
elseif (ereg("," . $group['account_id'] . ",", $selected))
|
||||
{
|
||||
$out .= " SELECTED";
|
||||
}
|
||||
$out .= ">" . $group['account_name'] . "</option>\n";
|
||||
@ -594,5 +624,4 @@
|
||||
{
|
||||
return($this->country_array[$selected]);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user