Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
070326fe
Commit
070326fe
authored
Jan 15, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaks to add top frame menu
parent
e4475950
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
44 deletions
+63
-44
lib/python/App/dtml/manage_page_header.dtml
lib/python/App/dtml/manage_page_header.dtml
+11
-10
lib/python/App/dtml/manage_top_frame.dtml
lib/python/App/dtml/manage_top_frame.dtml
+18
-10
lib/python/App/dtml/manage_zmi_prefs.dtml
lib/python/App/dtml/manage_zmi_prefs.dtml
+14
-13
lib/python/App/dtml/menu.dtml
lib/python/App/dtml/menu.dtml
+20
-11
No files found.
lib/python/App/dtml/manage_page_header.dtml
View file @
070326fe
...
...
@@ -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>
...
...
lib/python/App/dtml/manage_top_frame.dtml
View file @
070326fe
...
...
@@ -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>
<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>
</select>
<input
class=
"form-element"
type=
"submit"
name=
"submit"
value=
" Go "
/>
</form>
</div>
</td>
</tr>
</table>
</body>
</html>
lib/python/App/dtml/manage_zmi_prefs.dtml
View file @
070326fe
<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 f
rame
Show Top F
rame
</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 s
heets
Use
Style S
heets
</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>
/> No
ne
/> 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">
...
...
lib/python/App/dtml/menu.dtml
View file @
070326fe
...
...
@@ -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>
<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 " />
</form>
</div>
</td></tr></table>
</td>
</tr>
</table>
</dtml-unless>
<dtml-var manage_page_footer>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment