Commit 070326fe authored by 's avatar

tweaks to add top frame menu

parent e4475950
......@@ -3,21 +3,22 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title><dtml-if title><dtml-var title></dtml-if></title>
<dtml-let ag="REQUEST.get('HTTP_USER_AGENT', '')"
is_nav4="ag[:9] == 'Mozilla/4' and _.string.find(ag, 'MSIE') < 0"
use_css="REQUEST.get('zmi_use_css', is_nav4 and 'inline' or '1')">
use_css="REQUEST.get('zmi_use_css', '1')">
<dtml-if use_css>
<dtml-if expr="use_css=='inline'">
<style type="text/css"><!--
<dtml-if is_nav4>
<style type="text/css">
<!--
<dtml-var manage_page_style.css>
<dtml-var manage_page_style.css>
--></style>
<dtml-else>
<link rel="stylesheet" type="text/css"
href="<dtml-var BASEPATH1>/manage_page_style.css">
</dtml-if>
-->
</style>
<dtml-else>
<link rel="stylesheet" type="text/css" href="<dtml-var
BASEPATH1>/manage_page_style.css">
</dtml-if>
</dtml-if>
</dtml-let>
......
......@@ -10,26 +10,34 @@
topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"
marginwidth="0" marginheight="0">
<table width="100%" cellpadding="0" cellspacing="0" border="0" hspace="0">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" align="left">
<td width="180" align="left" valign="top">
<a href="http://www.zope.org/" target="_new"><img src="<dtml-var
BASEPATH1>/p_/zopelogo_jpg" height="32" width="90" border="0"
alt="" />
</td>
<td valign="top" align="right" width="70%">
<div class="std-text">
Logged in as <strong><dtml-var
AUTHENTICATED_USER></strong>
<td align="right" valign="top" width="50%">
<div class="form-element">
<form action="<dtml-var BASEPATH1>" method="POST" target="manage_main">
<span class="std-text">Logged in as <strong><dtml-var
AUTHENTICATED_USER></strong></span> &nbsp;&nbsp;
<select class="form-element" name=":action" onChange="window.parent.manage_main.location.href='&dtml-BASEPATH1;/'+this.options[this.selectedIndex].value">
<option value="ZopeQuickStart">Zope Quick Start</option>
<dtml-if "AUTHENTICATED_USER.getUserName() != 'Anonymous User'">
| <a href="<dtml-var BASEPATH1>/manage_zmi_prefs"
target="manage_main">Preferences</a>
| <a href="<dtml-var BASEPATH1>/manage_logout" target="_top">Logout</a>
<option value="manage_zmi_prefs">Set Preferences</option>
<option value="manage_logout">Logout</option>
</dtml-if>
&nbsp;&nbsp;
</select>
<input class="form-element" type="submit" name="submit" value=" Go " />
&nbsp;
</form>
</div>
</td>
</tr>
</table>
</body>
</html>
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Preferences',
form_title='Browser Preferences',
help_product='OFSP',
help_topic='Preferences.stx'
)">
......@@ -34,48 +34,49 @@ button in order for some changes to take effect.
<tr>
<td align="left" valign="top">
<div class="form-label">
Top frame
Show Top Frame
</div>
</td>
<td align="left" valign="top">
<div class="form-text">
<dtml-let tf="REQUEST.get('zmi_top_frame', '1')">
<input type="radio" name="zmi_top_frame" value="1"
<dtml-if tf>checked="checked"</dtml-if>
/> On
/> Yes
<input type="radio" name="zmi_top_frame" value=""
<dtml-unless tf>checked="checked"</dtml-unless>
/> Off
/> No
</dtml-let>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Use style sheets
Use Style Sheets
</div>
</td>
<td align="left" valign="top">
<div class="form-text">
<dtml-let ag="REQUEST.get('HTTP_USER_AGENT', '')"
is_nav4="ag[:9] == 'Mozilla/4' and _.string.find(ag, 'MSIE') < 0"
use_css="REQUEST.get('zmi_use_css', is_nav4 and 'inline' or '1')">
use_css="REQUEST.get('zmi_use_css', '1')">
<input type="radio" name="zmi_use_css" value="1"
<dtml-if expr="use_css and use_css != 'inline'">checked="checked"</dtml-if>
/> Linked
<input type="radio" name="zmi_use_css" value="inline"
<dtml-if expr="use_css == 'inline'">checked="checked"</dtml-if>
/> Inline
/> Yes
<input type="radio" name="zmi_use_css" value=""
<dtml-if expr="not use_css">checked="checked"</dtml-if>
/> None
/> No
</dtml-let>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Text area columns
Text Area Width
</div>
</td>
<td align="left" valign="top">
......@@ -87,7 +88,7 @@ button in order for some changes to take effect.
<tr>
<td align="left" valign="top">
<div class="form-label">
Text area rows
Text Area Height
</div>
</td>
<td align="left" valign="top">
......
......@@ -13,7 +13,7 @@ td {
</style>
<table width="100%" cellspacing="0" border="0">
<tr>
<tr bgcolor="#000000">
<td valign="top" nowrap>
<dtml-if icon>
<a href="manage_workspace" target="manage_main"><img
......@@ -22,11 +22,13 @@ td {
</dtml-if>
<strong>
<a href="manage_workspace" target="manage_main">
<font color="#ffffff">
<dtml-if expr="URLPATH1==BASEPATH1">
Root Folder
<dtml-else>
<dtml-var id>
</dtml-if>
</font>
</a>
</strong>
</td>
......@@ -65,24 +67,31 @@ td {
<dtml-unless expr="REQUEST.get('zmi_top_frame', '1')">
<table width="100%" bgcolor="#6699cc">
<tr>
<td valign="top" align="left" colspan="2">
<td valign="top" align="center">
<div align="center">
<a href="http://www.zope.org/" target="_new"><img src="<dtml-var
BASEPATH1>/p_/zopelogo_jpg" height="32" width="90" border="0"
alt="" />
</div>
<div align="center" class="std-text">
Logged in as <strong><dtml-var
AUTHENTICATED_USER></strong>
<br />
<div class="form-element">
<form action="<dtml-var BASEPATH1>" method="POST" target="manage_main">
<span class="std-text">Logged in as <strong><dtml-var
AUTHENTICATED_USER></strong></span> &nbsp;&nbsp;
<select class="form-element" name=":action" onChange="window.parent.manage_main.location.href='&dtml-BASEPATH1;/'+this.options[this.selectedIndex].value">
<option value="ZopeQuickStart">Getting Started</option>
<dtml-if "AUTHENTICATED_USER.getUserName() != 'Anonymous User'">
<a href="<dtml-var BASEPATH1>/manage_zmi_prefs"
target="manage_main">Preferences</a>
| <a href="<dtml-var BASEPATH1>/manage_logout" target="_top">Logout</a>
<option value="manage_zmi_prefs">Preferences</option>
<option value="manage_logout">Logout</option>
</dtml-if>
</select>
<input class="form-element" type="submit" name="submit" value=" Go " />
&nbsp;
</form>
</div>
</td></tr></table>
</td>
</tr>
</table>
</dtml-unless>
<dtml-var manage_page_footer>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment