fixed some hickups in summary templating
[citadel.git] / webcit / static / t / summary / page.html
1 <?=("summary_header")>
2 <div id="banner" class="banner">
3   <table border=0><tr>
4       <td><img src="static/webcit_icons/essen/32x32/summary.png"></td>
5       <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>
6   <div id="actiondiv">
7     <ul class="room_actions">
8       <li class="start_page"><?OFFERSTARTPAGE></li></ul>
9   </div>
10 </div>
11
12 <?--("
13 * You guessed it ... were going to refresh using ajax.
14 * In the future we might consider updating individual sections of the summary
15 * instead of the whole thing.
16 ")>
17 <div id="content" class="service">
18   summary_inner_div();
19 </div>
20 <script type="text/javascript">
21  new Ajax.PeriodicalUpdater('msg_inner', 'new_messages_html',
22                             { method: 'get', frequency: 60 }  );
23  new Ajax.PeriodicalUpdater('tasks_inner', 'tasks_inner_html',
24                             { method: 'get', frequency: 120 }  );
25  new Ajax.PeriodicalUpdater('calendar_inner', 'calendar_inner_html',
26                             { method: 'get', frequency: 90 }  );
27  new Ajax.PeriodicalUpdater('do_template', 'template=who_summary',
28                             { method: 'get', frequency: 30 }  );
29 </script>
30
31 <table width="98%%" cellspacing="3" cellpadding="0">
32   <tr valign=top>
33     <td width=33%>
34       <div class="box"> 
35         <div class="boxlabel">  
36           <?_("Messages")>
37         </div><div class="boxcontent">  
38           <div id="msg_inner">
39             <?SUMMARY:NEWMESSAGES_SELECTION>
40       </div></div></div>
41     </td>
42     <td width=33%>
43       <div class="box"> 
44         <div class="boxlabel">  
45           <?_("Tasks")>
46         </div><div class="boxcontent">  
47           <div id="tasks_inner">        
48             <?SUMMARY:TASKSSECTION)>
49       </div></div></div>
50     </td>
51     <td width=33%>
52       <div class="box"> 
53         <div class="boxlabel">  
54         <?_("Today&nbsp;on&nbsp;your&nbsp;calendar")>
55         </div><div class="boxcontent">  
56           <div id="calendar_inner">
57             <?SUMMARY:CALENDAR_SECTION)
58                </div></div></div>
59     </td>
60     
61   </tr><tr valign=top>
62
63     <td colspan=2>
64       <div class="box"> 
65         <div class="boxlabel">  
66           <?_("Who's&nbsp;online&nbsp;now")>
67         </div><div class="boxcontent">
68           <div id="who_inner"><?=("who_summary")></div></div></div>
69     </td>
70     <td width=33%>
71       <div class="box"> 
72         <div class="boxlabel">  
73           <?_("About&nbsp;this&nbsp;server")>
74         </div><div class="boxcontent">  
75           <div id="info_inner"> 
76                 <?_("You are connected to")> <?SERV:HUMANNODE>,
77                 <?_("running")> <?SERV:SOFTWARE> 
78                 <?_("with")> <?PACKAGESTRING>, 
79                 <?("server build")> <?SERV:REV_LEVEL>
80                 <?("and located in")> <?SERV:BBS_CITY>.
81                 <?("Your system administrator is")> <?SERV:ADMIN>
82       </div></div></div>
83     </td>
84 </tr></table>
85 <?=("summary_trailer")>