Commit 070326fe authored by 's avatar

tweaks to add top frame menu

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