Fixed frames

This commit is contained in:
jengo 2000-12-18 21:22:02 +00:00
parent 9ca521458c
commit 96791d2cad
3 changed files with 13 additions and 6 deletions

View File

@ -34,8 +34,8 @@
"frame_navbar" => "frames_navbar.tpl"
));
$tpl->set_var("navbar_link",$phpgw->link("index.php?navbarframe=True"));
$tpl->set_var("body_link",$phpgw->link("index.php?framebody=True"));
$tpl->set_var("navbar_link",$phpgw->link("index.php","navbarframe=True"));
$tpl->set_var("body_link",$phpgw->link("index.php","framebody=True"));
if ($phpgw_info["user"]["preferences"]["common"]["frame_navbar_location"] == "bottom") {
$tpl->set_var("frame_size","*,60");

View File

@ -221,8 +221,14 @@
function delete($app_name,$var)
{
global $phpgw_info;
unset($phpgw_info["user"]["preferences"][$app_name][$var]);
unset($phpgw_info["user"]["preferences"][$app_name][$var]);
}
// This will kill all preferences within a certain app
function reset($app_name)
{
global $phpgw_info;
$phpgw_info["user"]["preferences"][$app_name] = array();
}
} //end of preferences class

View File

@ -20,7 +20,7 @@
include("../header.inc.php");
if (! $submit) {
if ($phpgw_info["server"]["useframes"] == "allowed") {
if ($phpgw_info["server"]["useframes"] != "never") {
$target = ' target="_top"';
}
?>
@ -56,7 +56,7 @@
</tr>
<?php
}
if ($phpgw_info["server"]["useframes"] == "always") {
if ($phpgw_info["server"]["useframes"] != "never") {
?>
<tr>
<td><?php echo lang("Navigation bar frame location"); ?>: </td>
@ -202,6 +202,7 @@
$phpgw->common->phpgw_footer();
} else {
$phpgw->preferences->reset("common");
while ($setting = each($settings)) {
$phpgw->preferences->change("common",$setting[0],$setting[1]);
}