Line 0
Link Here
|
|
|
1 |
--- templates/common.template.php.orig 2007-06-14 19:00:15 UTC |
2 |
+++ templates/common.template.php |
3 |
@@ -47,10 +47,10 @@ function showQuickLinks() { |
4 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
5 |
<tr> |
6 |
<td class="tableTitle" style="background-color:#0F93DF;"> |
7 |
- <?=translate('My Quick Links')?> |
8 |
+ <?php echo translate('My Quick Links')?> |
9 |
</td> |
10 |
<td class="tableTitle" style="background-color:#0F93DF;"><div align="right"> |
11 |
- <? $link->doLink("javascript: help('quick_links');", '?', '', 'color: #FFFFFF', translate('Help') . ' - ' . translate('My Quick Links')) ?> |
12 |
+ <?php $link->doLink("javascript: help('quick_links');", '?', '', 'color: #FFFFFF', translate('Help') . ' - ' . translate('My Quick Links')) ?> |
13 |
</div> |
14 |
</td> |
15 |
</tr> |
16 |
@@ -58,12 +58,12 @@ function showQuickLinks() { |
17 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
18 |
<tr style="padding: 5px;" class="cellColor"> |
19 |
<td colspan="2"> |
20 |
- <? echo "Quarantine Summary" == $_SESSION['sessionNav'] ? |
21 |
+ <?php echo "Quarantine Summary" == $_SESSION['sessionNav'] ? |
22 |
' <p class="selectedLink"><b>»</b>': |
23 |
" <p><b>›</b>\t"; |
24 |
$link->doLink('summary.php', translate('Quarantine Summary')) ?> |
25 |
</p> |
26 |
- <? echo "My Quarantine" == $_SESSION['sessionNav'] ? |
27 |
+ <?php echo "My Quarantine" == $_SESSION['sessionNav'] ? |
28 |
' <p class="selectedLink"><b>»</b>': |
29 |
" <p><b>›</b>\t"; |
30 |
$link->doLink('messagesIndex.php?ctype=A', translate('My Quarantine')); |
31 |
@@ -78,7 +78,7 @@ function showQuickLinks() { |
32 |
?> |
33 |
</p> |
34 |
<br> |
35 |
- <? if (Auth::isMailAdmin()) { |
36 |
+ <?php if (Auth::isMailAdmin()) { |
37 |
if ($conf['app']['siteSummary']) { |
38 |
echo "Site Quarantine Summary" == $_SESSION['sessionNav'] ? |
39 |
' <p class="selectedLink"><b>»</b>': |
40 |
@@ -108,11 +108,11 @@ function showQuickLinks() { |
41 |
} |
42 |
?> |
43 |
<p><b>›</b> |
44 |
- <? $link->doLink('javascript: help();', translate('Help')) ?> |
45 |
+ <?php $link->doLink('javascript: help();', translate('Help')) ?> |
46 |
</p> |
47 |
<br> |
48 |
<p><b>›</b> |
49 |
- <? $link->doLink('index.php?logout=true', translate('Log Out')) ?> |
50 |
+ <?php $link->doLink('index.php?logout=true', translate('Log Out')) ?> |
51 |
</p> |
52 |
</td> |
53 |
</tr> |
54 |
@@ -120,7 +120,7 @@ function showQuickLinks() { |
55 |
</td> |
56 |
</tr> |
57 |
</table> |
58 |
-<? |
59 |
+<?php |
60 |
} |
61 |
|
62 |
/** |
63 |
@@ -164,14 +164,14 @@ function startQuickLinksCol() { |
64 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
65 |
<tr> |
66 |
<td style="vertical-align:top; width:16%; border:solid 2px #0F93DF; background-color:#FFFFFF;"> |
67 |
-<? |
68 |
+<?php |
69 |
} |
70 |
|
71 |
function startDataDisplayCol() { |
72 |
?> |
73 |
</td> |
74 |
<td style="padding-left:5px; vertical-align:top;"> |
75 |
-<? |
76 |
+<?php |
77 |
} |
78 |
|
79 |
function endDataDisplayCol() { |
80 |
@@ -179,7 +179,7 @@ function endDataDisplayCol() { |
81 |
</td> |
82 |
</tr> |
83 |
</table> |
84 |
-<? |
85 |
+<?php |
86 |
} |
87 |
|
88 |
/** |
89 |
@@ -191,7 +191,7 @@ function printActionButtons( $printDeleteAll = true ) |
90 |
?> |
91 |
<table width="100%" border="0" cellspacing="1" cellpadding="0"> |
92 |
<tr> |
93 |
-<? |
94 |
+<?php |
95 |
echo "<td align=\"left\"><input type=\"submit\" class=\"button\" name=\"action\" value=\""; |
96 |
if ($_SESSION['sessionNav'] == "My Pending Requests") { |
97 |
echo ( Auth::isMailAdmin() ? translate('Release') : translate('Cancel Request') ); |
98 |
@@ -201,14 +201,14 @@ function printActionButtons( $printDeleteAll = true ) |
99 |
} |
100 |
echo "\"></td>"; |
101 |
?> |
102 |
- <td align="right"><input type="submit" class="button" name="action" value="<? echo translate('Delete'); ?>"> |
103 |
-<? if ( $printDeleteAll ) |
104 |
+ <td align="right"><input type="submit" class="button" name="action" value="<?php echo translate('Delete'); ?>"> |
105 |
+<?php if ( $printDeleteAll ) |
106 |
echo "<input type=\"submit\" class=\"button\" name=\"action\" value=\"".translate('Delete All')."\">"; |
107 |
?> |
108 |
</td> |
109 |
</tr> |
110 |
</table> |
111 |
-<? |
112 |
+<?php |
113 |
} |
114 |
|
115 |
/** |
116 |
@@ -223,17 +223,17 @@ function printReportButtons( $query_string, $error_arr |
117 |
<form name="error_report_form" action="sendErrorReport.php" method="POST"> |
118 |
<table width="100%" border="0" cellspacing="1" cellpadding="0"> |
119 |
<tr> |
120 |
- <input type="hidden" name="query_string" value="<? echo $query_string; ?> "> |
121 |
- <input type="hidden" name="serialized_error_array" value="<? echo $serialized_error_array; ?>"> |
122 |
- <input type="hidden" name="process_action" value="<? echo $process_action ;?>"> |
123 |
+ <input type="hidden" name="query_string" value="<?php echo $query_string; ?> "> |
124 |
+ <input type="hidden" name="serialized_error_array" value="<?php echo $serialized_error_array; ?>"> |
125 |
+ <input type="hidden" name="process_action" value="<?php echo $process_action ;?>"> |
126 |
<td><center> |
127 |
- <input type="submit" class="button" name="action" value="<? echo translate('Send report and go back'); ?>"> |
128 |
- <input type="submit" class="button" name="action" value="<? echo translate('Go back'); ?>"> |
129 |
+ <input type="submit" class="button" name="action" value="<?php echo translate('Send report and go back'); ?>"> |
130 |
+ <input type="submit" class="button" name="action" value="<?php echo translate('Go back'); ?>"> |
131 |
</center></td> |
132 |
</tr> |
133 |
</table> |
134 |
</form> |
135 |
-<? |
136 |
+<?php |
137 |
} |
138 |
|
139 |
/** |
140 |
@@ -243,10 +243,10 @@ function printReportButtons( $query_string, $error_arr |
141 |
function printMessage($message) { |
142 |
$id = urlencode($message); |
143 |
?> |
144 |
- <div align="center" id="<? echo $id; ?>" style="display:block;"> |
145 |
- <H4><? echo $message; ?></H4> |
146 |
+ <div align="center" id="<?php echo $id; ?>" style="display:block;"> |
147 |
+ <H4><?php echo $message; ?></H4> |
148 |
</div> |
149 |
-<? |
150 |
+<?php |
151 |
ob_flush(); |
152 |
flush(); |
153 |
} |