added templates selection

This commit is contained in:
seek3r 2001-01-10 02:03:16 +00:00
parent e7896e9bc5
commit a946c16b17
2 changed files with 6 additions and 4 deletions

View File

@ -356,8 +356,11 @@
if ($appname == ""){$appname = $phpgw_info["flags"]["currentapp"];}
if ($appname == "home" || $appname == "logout" || $appname == "login"){$appname = "phpgwapi";}
if ($phpgw_info["server"]["template_set"] == "user_choice" && isset($phpgw_info["user"]["preferences"]["template_set"])){
$phpgw_info["server"]["template_set"] = $phpgw_info["user"]["preferences"]["template_set"];
// Setting this for display of template choices in user preferences
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"])){
$phpgw_info["server"]["template_set"] = "default";
}

View File

@ -34,8 +34,7 @@
</td>
</tr>
<?php if ($phpgw_info["server"]["template_set"] == "user_choice"){ ?>
<?php if ($phpgw_info["server"]["usrtplchoice"] == "user_choice"){ ?>
<tr>
<?php $selected[$phpgw_info["user"]["preferences"]["common"]["template_set"]] = " selected"; ?>
<td>Interface/Template Selection:<br></td>