forked from extern/egroupware
added templates selection
This commit is contained in:
parent
e7896e9bc5
commit
a946c16b17
@ -356,8 +356,11 @@
|
|||||||
if ($appname == ""){$appname = $phpgw_info["flags"]["currentapp"];}
|
if ($appname == ""){$appname = $phpgw_info["flags"]["currentapp"];}
|
||||||
if ($appname == "home" || $appname == "logout" || $appname == "login"){$appname = "phpgwapi";}
|
if ($appname == "home" || $appname == "logout" || $appname == "login"){$appname = "phpgwapi";}
|
||||||
|
|
||||||
if ($phpgw_info["server"]["template_set"] == "user_choice" && isset($phpgw_info["user"]["preferences"]["template_set"])){
|
// Setting this for display of template choices in user preferences
|
||||||
$phpgw_info["server"]["template_set"] = $phpgw_info["user"]["preferences"]["template_set"];
|
if ($phpgw_info["server"]["template_set"] == "user_choice" ){$phpgw_info["server"]["usrtplchoice"] = "user_choice"; }
|
||||||
|
|
||||||
|
if ($phpgw_info["server"]["template_set"] == "user_choice" && isset($phpgw_info["user"]["preferences"]["common"]["template_set"])){
|
||||||
|
$phpgw_info["server"]["template_set"] = $phpgw_info["user"]["preferences"]["common"]["template_set"];
|
||||||
}elseif ($phpgw_info["server"]["template_set"] == "user_choice" || !isset($phpgw_info["server"]["template_set"])){
|
}elseif ($phpgw_info["server"]["template_set"] == "user_choice" || !isset($phpgw_info["server"]["template_set"])){
|
||||||
$phpgw_info["server"]["template_set"] = "default";
|
$phpgw_info["server"]["template_set"] = "default";
|
||||||
}
|
}
|
||||||
|
@ -34,8 +34,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<?php if ($phpgw_info["server"]["usrtplchoice"] == "user_choice"){ ?>
|
||||||
<?php if ($phpgw_info["server"]["template_set"] == "user_choice"){ ?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<?php $selected[$phpgw_info["user"]["preferences"]["common"]["template_set"]] = " selected"; ?>
|
<?php $selected[$phpgw_info["user"]["preferences"]["common"]["template_set"]] = " selected"; ?>
|
||||||
<td>Interface/Template Selection:<br></td>
|
<td>Interface/Template Selection:<br></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user