fixed / get it working again

- Mainscreen Message
- some space between the portal-boxes
- added disable-output-escapeing to msgbox-data
This commit is contained in:
Ralf Becker 2003-04-21 08:37:17 +00:00
parent cad7e38029
commit 33c30dc147
3 changed files with 16 additions and 7 deletions

View File

@ -60,13 +60,15 @@
$extra_vars .= '&' . $name . '=' . urlencode($value);
}
}
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link($GLOBALS['phpgw_forward'],$extra_vars));
$GLOBALS['phpgw']->redirect_link($GLOBALS['phpgw_forward'],$extra_vars);
}
$GLOBALS['phpgw']->translation->add_app('mainscreen');
if (lang('mainscreen_message') != 'mainscreen_message'.lang_char())
{
echo '<center>' . stripslashes(lang('mainscreen_message')) . '</center>';
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array(
'mainscreen_message' => stripslashes(lang('mainscreen_message'))
));
}
if ((isset($GLOBALS['phpgw_info']['user']['apps']['admin']) &&
@ -212,6 +214,7 @@
}
$GLOBALS['phpgw']->preferences->save_repository();
}
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'home'; // has been changed by hook_home's
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->portalbox->output);
}

View File

@ -17,7 +17,7 @@
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</img><xsl:text> </xsl:text>
<xsl:value-of select="msgbox_text"/>
<xsl:value-of disable-output-escaping="yes" select="msgbox_text"/>
</td>
</tr>
</table>

View File

@ -1,6 +1,11 @@
<!-- $Id$ -->
<xsl:template name="portal">
<xsl:choose>
<xsl:when test="mainscreen_message != ''">
<xsl:value-of disable-output-escaping="yes" select="mainscreen_message"/>
</xsl:when>
</xsl:choose>
<xsl:apply-templates select="portal_data"/>
</xsl:template>
@ -49,6 +54,7 @@
</td>
</tr>
</table>
<br/>
</xsl:template>
<xsl:template match="control_link">