+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title><?CURRENT_ROOM> - <?SERV:HUMANNODE></title>
+ <meta name="MSSmartTagsPreventParsing" content="TRUE" >
+ <meta name="keywords" content="groupware messaging collaboration" >
+ <link href="static/styles/webcit.css" rel="stylesheet" type="text/css">
+ <link href="static/styles/datepicker.css" rel="stylesheet" type="text/css">
+ <link href="do_template?template=iconbar_user" rel="stylesheet" type="text/css">
+ <link href="static/styles/iconbaricns.css" rel="<?%("COND:ICONBAR:ACTIVE", 1, 0, #"ib_displayas", "", "alternate ")>stylesheet" type="text/css" id="style_iconbar_icns" title="Default iconbar">
+ <link href="static/styles/iconbarpiconly.css" rel="<?%("COND:ICONBAR:ACTIVE", 1, 1, #"ib_displayas", "","alternate ")>stylesheet" type="text/css" id="style_iconbar_piconly" title="Iconbar without text">
+ <?CSSLOCAL>
+
+ <script type="text/javascript" src="static/prototype.js"></script>
+ <script type="text/javascript" src="static/scriptaculous.js"></script>
+ <script type="text/javascript" src="static/datepicker-dev.js"></script>
+ <script type="text/javascript" src="static/wcpref.js"></script>
+ <script type="text/javascript" src="static/table.js"></script>
+ <script type="text/javascript" src="static/wclib.js"></script>
+ <script type="text/javascript" src="static/authmethods.js"></script>
+ <script type="text/javascript" src="static/roomops.js"></script>
+ <script type="text/javascript" src="static/ctdldragdrop.js"></script>
+ <script type="text/javascript" src="static/modal.js"></script>
+ </head>
+<body>
+<div id="is_logged_in" style="display:none"><?%("COND:LOGGEDIN", 1, 1, 1, "no", "yes")></div>
+<?ICONBAR>
+<div id="global">
+
+<?=("paging_anchor")>
+
+<!--("end head.html")-->
+
<!-- begin summary_header.html -->
<script language="javascript" type="text/javascript">
document.onkeydown = CtdlMsgListKeyPress;
<div id="banner" class="banner">
<table border=0><tr>
<td><img src="static/webcit_icons/essen/32x32/summary.png"></td>
- <td><h1><?_("Summary page for ")><??("COND:LOGGEDIN", 1)><?CURRENT_USER("X")><??("X", 1)><?!("COND:LOGGEDIN", 2)><?SERV:HUMANNODE("X")><??("X", 2)></h1><h2><?TIME:NOW)></h2></td></tr></table>
+ <td><h1><?_("Summary page for ")><??("COND:LOGGEDIN", 1)><?CURRENT_USER("X")><??("X", 1)><?!("COND:LOGGEDIN", 2)><?SERV:HUMANNODE("X")><??("X", 2)></h1><h2><?TIME:NOW></h2></td></tr></table>
<div id="actiondiv">
<ul class="room_actions">
<li class="start_page"><?OFFERSTARTPAGE></li></ul>
* instead of the whole thing.
")>
<div id="content" class="service">
- summary_inner_div();
+ <table width="98%" cellspacing="3" cellpadding="0">
+ <tr valign=top>
+ <td width=33%>
+ <div class="box">
+ <div class="boxlabel">
+ <?_("Messages")>
+ </div><div class="boxcontent">
+ <div id="msg_inner">
+ <?SUMMARY:NEWMESSAGES_SELECTION>
+ </div></div></div>
+ </td>
+ <td width=33%>
+ <div class="box">
+ <div class="boxlabel">
+ <?_("Tasks")>
+ </div><div class="boxcontent">
+ <div id="tasks_inner">
+ <?SUMMARY:TASKSSECTION>
+ </div></div></div>
+ </td>
+ <td width=33%>
+ <div class="box">
+ <div class="boxlabel">
+ <?_("Today on your calendar")>
+ </div><div class="boxcontent">
+ <div id="calendar_inner">
+ <?SUMMARY:CALENDAR_SECTION>
+ </div></div></div>
+ </td>
+
+ </tr><tr valign=top>
+
+ <td colspan=2>
+ <div class="box">
+ <div class="boxlabel">
+ <?_("Who‘s online now")>
+ </div><div class="boxcontent">
+ <div id="who_inner"><?=("who_summary")></div></div></div>
+ </td>
+ <td width=33%>
+ <div class="box">
+ <div class="boxlabel">
+ <?_("About this server")>
+ </div><div class="boxcontent">
+ <div id="info_inner">
+ <?_("You are connected to")> <?SERV:HUMANNODE>,
+ <?_("running")> <?SERV:SOFTWARE>
+ <?_("with")> <?PACKAGESTRING>,
+ <?_("server build")> <?SERV:REV_LEVEL>
+ <?_("and located in")> <?SERV:BBS_CITY>.
+ <?_("Your system administrator is")> <?SERV:ADMIN>
+ </div></div></div>
+ </td>
+ </tr></table>
+
</div>
<script type="text/javascript">
new Ajax.PeriodicalUpdater('msg_inner', 'new_messages_html',
new Ajax.PeriodicalUpdater('do_template', 'template=who_summary',
{ method: 'get', frequency: 30 } );
</script>
-
-<table width="98%%" cellspacing="3" cellpadding="0">
- <tr valign=top>
- <td width=33%>
- <div class="box">
- <div class="boxlabel">
- <?_("Messages")>
- </div><div class="boxcontent">
- <div id="msg_inner">
- <?SUMMARY:NEWMESSAGES_SELECTION>
- </div></div></div>
- </td>
- <td width=33%>
- <div class="box">
- <div class="boxlabel">
- <?_("Tasks")>
- </div><div class="boxcontent">
- <div id="tasks_inner">
- <?SUMMARY:TASKSSECTION)>
- </div></div></div>
- </td>
- <td width=33%>
- <div class="box">
- <div class="boxlabel">
- <?_("Today on your calendar")>
- </div><div class="boxcontent">
- <div id="calendar_inner">
- <?SUMMARY:CALENDAR_SECTION)
- </div></div></div>
- </td>
-
- </tr><tr valign=top>
-
- <td colspan=2>
- <div class="box">
- <div class="boxlabel">
- <?_("Who's online now")>
- </div><div class="boxcontent">
- <div id="who_inner"><?=("who_summary")></div></div></div>
- </td>
- <td width=33%>
- <div class="box">
- <div class="boxlabel">
- <?_("About this server")>
- </div><div class="boxcontent">
- <div id="info_inner">
- <?_("You are connected to")> <?SERV:HUMANNODE>,
- <?_("running")> <?SERV:SOFTWARE>
- <?_("with")> <?PACKAGESTRING>,
- <?("server build")> <?SERV:REV_LEVEL>
- <?("and located in")> <?SERV:BBS_CITY>.
- <?("Your system administrator is")> <?SERV:ADMIN>
- </div></div></div>
- </td>
-</tr></table>
<?=("summary_trailer")>
<hr>
</div>
<div id="preview_pane">
+<!-- start trailing.html -->
+ <noscript><div id="noscript_warning">
+ <?_("WARNING: You have JavaScript disabled in your web browser. Many functions of this system will not work properly.")>
+ </div></noscript>
+ <script type="text/javascript"><?TRAILING_JAVASCRIPT></script>
+ </body>
+</html>
/*
* New messages section
*/
-void new_messages_section(StrBuf *Target, WCTemplputParams *TP) {
+void new_messages_section(void) {
char buf[SIZ];
char room[SIZ];
int i;
/*
* Task list section
*/
-void tasks_section(StrBuf *Target, WCTemplputParams *TP) {
+void tasks_section(void) {
int num_msgs = 0;
HashPos *at;
const char *HashKey;
/*
* Calendar section
*/
-void calendar_section(StrBuf *Target, WCTemplputParams *TP) {
+void calendar_section(void) {
char cmd[SIZ];
int num_msgs = 0;
HashPos *at;
__calendar_Cleanup(&v);
}
+void tmplput_new_messages_section(StrBuf *Target, WCTemplputParams *TP) {
+ new_messages_section();
+}
+void tmplput_tasks_section(StrBuf *Target, WCTemplputParams *TP) {
+ tasks_section();
+}
+void tmplput_calendar_section(StrBuf *Target, WCTemplputParams *TP) {
+ calendar_section();
+}
+
void
InitModule_SUMMARY
(void)
{
RegisterNamespace("TIME:NOW", 0, 0, tmplput_output_date, NULL, CTX_NONE);
- RegisterNamespace("SUMMARY:NEWMESSAGES_SELECTION", 0, 0, new_messages_section, NULL, CTX_NONE);
- RegisterNamespace("SUMMARY:TASKSSECTION", 0, 0, tasks_section, NULL, CTX_NONE);
- RegisterNamespace("SUMMARY:CALENDAR_SECTION", 0, 0, calendar_section, NULL, CTX_NONE);
+ RegisterNamespace("SUMMARY:NEWMESSAGES_SELECTION", 0, 0, tmplput_new_messages_section, NULL, CTX_NONE);
+ RegisterNamespace("SUMMARY:TASKSSECTION", 0, 0, tmplput_tasks_section, NULL, CTX_NONE);
+ RegisterNamespace("SUMMARY:CALENDAR_SECTION", 0, 0, tmplput_calendar_section, NULL, CTX_NONE);
+
+ WebcitAddUrlHandler(HKEY("new_messages_html"), "", 0, new_messages_section, AJAX);
+ WebcitAddUrlHandler(HKEY("tasks_inner_html"), "", 0, tasks_section, AJAX);
+ WebcitAddUrlHandler(HKEY("calendar_inner_html"), "", 0, calendar_section, AJAX);
+ WebcitAddUrlHandler(HKEY("mini_calendar"), "", 0, ajax_mini_calendar, AJAX);
+
}