+2004-10-03 Helge Hess <helge.hess@opengroupware.org>
+
+ * UIxMailMainFrame.wox: made toolbar floating (v0.9.10)
+
2004-10-02 Helge Hess <helge.hess@opengroupware.org>
* more work on UI (v0.9.9)
MailerUI_RESOURCE_FILES += \
uix.css \
mailer.css \
+ mailer.js \
MailerUI_RESOURCE_FILES += \
screenshots/*.png \
Images/tbtv_*.gif \
Images/icon_*.gif \
Images/tbtb_*.png \
+ Images/lori_32x32.png \
MailerUI_LOCALIZED_RESOURCE_FILES += \
default.strings
[self->sortedUIDs release]; self->sortedUIDs = nil;
[self->messages release]; self->messages = nil;
[self->message release]; self->message = nil;
- [self logWithFormat:@"SLEEP"];
[super sleep];
}
[self messageUidString]];
}
+/* JavaScript */
+
+- (NSString *)msgRowID {
+ return [@"row_" stringByAppendingString:[self messageUidString]];
+}
+- (NSString *)msgDivID {
+ return [@"div_" stringByAppendingString:[self messageUidString]];
+}
+
+- (NSString *)clickedMsgJS {
+ return [NSString stringWithFormat:@"clickedUid(this, '%@')",
+ [self messageUidString]];
+}
+- (NSString *)dblClickedMsgJS {
+ return [NSString stringWithFormat:@"doubleClickedUid(this, '%@')",
+ [self messageUidString]];
+}
+- (NSString *)highlightRowJS {
+ return [NSString stringWithFormat:@"highlightUid(this, '%@')",
+ [self messageUidString]];
+}
+- (NSString *)lowlightRowJS {
+ return [NSString stringWithFormat:@"lowlightUid(this, '%@')",
+ [self messageUidString]];
+}
+
/* actions */
- (id)defaultAction {
</tr>
<var:foreach list="messages" item="message">
- <tr class="tableview">
+ <tr class="tableview" var:id="msgRowID">
<td>
<var:if condition="isMessageRead">
- <div class="mailer_readmailsubject">
+ <div class="mailer_readmailsubject" var:id="msgDivID"
+ var:onclick="clickedMsgJS"
+ var:ondblclick="dblClickedMsgJS"
+ >
+ <var:string value="message.envelope.subject"
+ formatter="context.mailSubjectFormatter"/>
+<!--
<a var:href="messageViewURL" var:target="messageViewTarget">
<var:string value="message.envelope.subject"
formatter="context.mailSubjectFormatter"/>
</a>
+-->
</div>
</var:if>
<var:if condition="isMessageRead" const:negate="YES">
<div class="mailer_unreadmailsubject">
- <a var:href="messageViewURL" var:target="messageViewTarget">
+ <a var:href="messageViewURL" var:target="messageViewTarget"
+ var:onclick="messageViewJS">
<var:string value="message.envelope.subject"
formatter="context.mailSubjectFormatter"/>
</a>
<title>
<var:string value="title"/>
</title>
+
<meta name="description" content="SOGo Web Interface"/>
<meta name="author" content="SKYRIX Software AG"/>
<meta name="robots" content="stop"/>
+
+ <script rsrc:src="mailer.js" />
+
<link type="text/css" rel="stylesheet" rsrc:href="uix.css"/>
<link type="text/css" rel="stylesheet" rsrc:href="mailer.css"/>
<link href="mailto:info@skyrix.com" rev="made"/>
</head>
<body>
- <table border="0" width="100%" cellspacing="0" cellpadding="2">
+ <table border="0" width="100%" cellspacing="0" cellpadding="2"
+ style="position: fixed; height: 48px; z-index: 100;"
+ >
+ <!-- this table is required for right alignment -->
<tr>
<td valign="top" class="vertframerow">
-<!--
- Toolbar - different for the pages<br />
- Mail:
--->
<table border="0">
<tr>
<td class="tb_icon"
</table>
</td>
<td align="right" width="80" class="vertframerow">
- <!-- right: Thunderbird/OGo Icon? -->
- SOGo
+ <table border="0">
+ <tr>
+ <td class="tb_icon" style="width: 36px; padding-right: 8px;"
+ ><div class="tbicon_logo"> </div></td>
+ </tr>
+ </table>
</td>
</tr>
+ </table>
+ <div style="height: 58px; clear: both;"> </div> <!-- consume toolbar -->
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2"
+ >
<tr class="vertframerow">
<td width="100%" valign="top" class="vertframerow" colspan="2">
<var:if condition="hideFolderTree">
# $Id$
-SUBMINOR_VERSION:=9
+SUBMINOR_VERSION:=10
padding-right: 16px;
}
-td.tb_icon {
+.tb_icon {
text-align: center;
}
-td.tb_label {
- font-size: 9pt;
+.tb_label {
+ font-size: 11px;
font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
color: #000000;
text-align: center;
}
-td.tb_spacer {
+.tb_spacer {
width: 16px;
}
-td.tb_icon a {
+.tb_icon a {
width: 30px;
height: 30px;
margin: 0px auto;
display: block;
}
+.tbicon_logo {
+ background-image: url(lori_32x32.png);
+ width: 32px;
+ height: 32px;
+}
+
.tbicon_getmail { background-image: url(tbtb_getmail.png); }
.tbicon_compose { background-image: url(tbtb_compose.png); }
.tbicon_addressbook { background-image: url(tbtb_addressbook.png); }
--- /dev/null
+/* JavaScript for SOGo Mailer */
+
+/*
+ window.open('url to open','window name','attribute1,attribute2')
+ window.open('http://www.pageresource.com/jscript/jex5.htm','mywindow',
+ 'width=400,height=200')
+
+ width,height
+ resizable=yes or no
+ scrollbars=yes or no
+ toolbar=yes or no
+ location=yes or no
+ directories=yes or no
+ status=yes or no
+ menubar=yes or no
+ copyhistory=yes or no
+*/
+
+function clickedUid(sender, msguid) {
+ var urlstr;
+
+ urlstr = msguid + "/view?noframe=1&markread=1";
+ window.open(urlstr, "SOGo_msg_" + msguid,
+ "width=680,height=480,resizable=1,scrollbars=1,toolbar=0," +
+ "location=0,directories=0,status=0,menubar=0,copyhistory=0")
+ return true;
+}
+function doubleClickedUid(sender, msguid) {
+ alert("DOUBLE Clicked " + msguid);
+
+ return false;
+}
+
+function highlightUid(sender, msguid) {
+ // var row = document.getElementById(msguid);
+ // row.className="mailer_readmailsubject_high";
+ return true;
+}
+function lowlightUid(sender, msguid) {
+ // var row = document.getElementById(msguid);
+ // row.className="mailer_readmailsubject";
+ return true;
+}
publicResources = (
"uix.css",
"mailer.css",
-
+ "mailer.js",
+
+ "lori_32x32.png",
+
"tbtv_account_17x17.gif",
"tbtv_drafts_17x17.gif",
"tbtv_inbox_17x17.gif",