138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
@ </div>
}
@ <div class="content">
cgi_destination(CGI_BODY);
/* Put the footer at the bottom of the page.
*/
@ </div><br clear="both"/>
zFooter = db_get("footer", (char*)zDefaultFooter);
if( g.thTrace ) Th_Trace("BEGIN_FOOTER<br />\n", -1);
Th_Render(zFooter);
if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1);
/* Render trace log if TH1 tracing is enabled. */
if( g.thTrace ){
|
|
|
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
@ </div>
}
@ <div class="content">
cgi_destination(CGI_BODY);
/* Put the footer at the bottom of the page.
*/
@ </div><div style="clear: both;" />
zFooter = db_get("footer", (char*)zDefaultFooter);
if( g.thTrace ) Th_Trace("BEGIN_FOOTER<br />\n", -1);
Th_Render(zFooter);
if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1);
/* Render trace log if TH1 tracing is enabled. */
if( g.thTrace ){
|
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
@ </head>
@ <body>
@ <div class="header">
@ <div class="logo">
@ <img src="$baseurl/logo" alt="logo">
@ </div>
@ <div class="title"><small>$<project_name></small><br />$<title></div>
@ <div class="status"><nobr><th1>
@ if {[info exists login]} {
@ puts "Logged in as $login"
@ } else {
@ puts "Not logged in"
@ }
@ </th1></nobr></div>
@ </div>
@ <div class="mainmenu"><th1>
@ html "<a href='$baseurl$index_page'>Home</a> "
@ if {[anycap jor]} {
@ html "<a href='$baseurl/timeline'>Timeline</a> "
@ }
@ if {[hascap oh]} {
|
|
|
|
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
@ </head>
@ <body>
@ <div class="header">
@ <div class="logo">
@ <img src="$baseurl/logo" alt="logo">
@ </div>
@ <div class="title"><small>$<project_name></small><br />$<title></div>
@ <div class="status"><th1>
@ if {[info exists login]} {
@ puts "Logged in as $login"
@ } else {
@ puts "Not logged in"
@ }
@ </th1></div>
@ </div>
@ <div class="mainmenu"><th1>
@ html "<a href='$baseurl$index_page'>Home</a> "
@ if {[anycap jor]} {
@ html "<a href='$baseurl/timeline'>Timeline</a> "
@ }
@ if {[hascap oh]} {
|
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
|
@ display: table-cell;
@ font-size: 2em;
@ font-weight: bold;
@ text-align: center;
@ padding: 0 0 0 1em;
@ color: #558195;
@ vertical-align: bottom;
@ width: 100%;
@ }
@
@ /* The login status message in the top right-hand corner */
@ div.status {
@ display: table-cell;
@ text-align: right;
@ vertical-align: bottom;
@ color: #558195;
@ font-size: 0.8em;
@ font-weight: bold;
@ min-width: 200px;
@ }
@
@ /* The header across the top of the page */
@ div.header {
@ display: table;
@ width: 100%;
@ }
@
@ /* The main menu bar that appears at the top of the page beneath
@ ** the header */
@ div.mainmenu {
@ padding: 5px 10px 5px 10px;
@ font-size: 0.9em;
|
|
>
|
|
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
@ display: table-cell;
@ font-size: 2em;
@ font-weight: bold;
@ text-align: center;
@ padding: 0 0 0 1em;
@ color: #558195;
@ vertical-align: bottom;
@ width: 100% ;
@ }
@
@ /* The login status message in the top right-hand corner */
@ div.status {
@ display: table-cell;
@ text-align: right;
@ vertical-align: bottom;
@ color: #558195;
@ font-size: 0.8em;
@ font-weight: bold;
@ min-width: 200px;
@ white-space: nowrap;
@ }
@
@ /* The header across the top of the page */
@ div.header {
@ display: table;
@ width: 100% ;
@ }
@
@ /* The main menu bar that appears at the top of the page beneath
@ ** the header */
@ div.mainmenu {
@ padding: 5px 10px 5px 10px;
@ font-size: 0.9em;
|
489
490
491
492
493
494
495
496
497
498
499
500
501
502
|
const char zSpanWikiError[] =
@ /* the format for wiki errors */
@ span.wikiError {
@ font-weight: bold;
@ color: red;
@ }
@
;
const struct strctCssDefaults {
char const * const name;
char const * const value;
} cssDefaultList[] = {
{ "", zDefaultCSS },
{ "table.label-value", zTableLabelValueCSS },
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
|
const char zSpanWikiError[] =
@ /* the format for wiki errors */
@ span.wikiError {
@ font-weight: bold;
@ color: red;
@ }
@
;
const char zSpanInfoTagCancelled[] =
@ /* the format for wiki errors */
@ span.infoTagCancelled {
@ font-weight: bold;
@ text-decoration: line-through;
@ }
@
;
const char zSpanInfoTag[] =
@ /* the format for wiki errors */
@ span.infoTag {
@ font-weight: bold;
@ }
@
;
const char zSpanWikiTagCancelled[] =
@ /* the format for wiki errors */
@ span.wikiTagCancelled {
@ text-decoration: line-through;
@ }
@
;
const char zTableBrowser[] =
@ /* the format for wiki errors */
@ table.browser {
@ width: 100%;
@ border: 0;
@ }
@
;
const char zTdBrowser[] =
@ /* the format for wiki errors */
@ td.browser {
@ width: 25%;
@ vertical-align: top;
@ }
@
;
const char zUlBrowser[] =
@ /* the format for wiki errors */
@ ul.browser {
@ margin-left: 0.5em;
@ padding-left: 0.5em;
@ }
@
;
const struct strctCssDefaults {
char const * const name;
char const * const value;
} cssDefaultList[] = {
{ "", zDefaultCSS },
{ "table.label-value", zTableLabelValueCSS },
|
510
511
512
513
514
515
516
517
518
519
520
521
522
523
|
{ "span.timelineLeaf", zSpanTimelineLeaf },
{ "a.timelineHistLink", zATimelineHistLink },
{ "span.timelineHistDsp", zSpanTimelineHistDsp },
{ "td.timelineTime", zTdTimelineTime },
{ "a.tagLink", zATagLink },
{ "span.tagDsp", zSpanTagDsp },
{ "span.wikiError", zSpanWikiError },
{ 0, 0 }
};
void cgi_append_default_css(void) {
int i;
for (i=0;cssDefaultList[i].name;i++)
|
>
>
>
>
>
>
|
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
|
{ "span.timelineLeaf", zSpanTimelineLeaf },
{ "a.timelineHistLink", zATimelineHistLink },
{ "span.timelineHistDsp", zSpanTimelineHistDsp },
{ "td.timelineTime", zTdTimelineTime },
{ "a.tagLink", zATagLink },
{ "span.tagDsp", zSpanTagDsp },
{ "span.wikiError", zSpanWikiError },
{ "span.infoTagCancelled", zSpanInfoTagCancelled },
{ "span.infoTag", zSpanInfoTag },
{ "span.wikiTagCancelled", zSpanWikiTagCancelled },
{ "table.browser", zTableBrowser },
{ "td.browser", zTdBrowser },
{ "ul.browser", zUlBrowser },
{ 0, 0 }
};
void cgi_append_default_css(void) {
int i;
for (i=0;cssDefaultList[i].name;i++)
|