1 | {* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *} |
---|
2 | |
---|
3 | {* <!-- Page title --> *} |
---|
4 | <div class = "titrePage" style="margin-top: -20px;"> |
---|
5 | <h2>{'ec_admin_page_title'|@translate} {$EVNTCATS_VERSION}</h2> |
---|
6 | </div> |
---|
7 | |
---|
8 | {* <!-- JavaScript warning message --> *} |
---|
9 | <div id = "ec_js_warn"> |
---|
10 | {'ec_javascript_needed'|@translate}<br><br> |
---|
11 | </div> |
---|
12 | <script type = "text/javascript"><!-- // Removes JavaScript warning message |
---|
13 | document.getElementById('ec_js_warn').innerHTML = ''; //--> |
---|
14 | </script> |
---|
15 | |
---|
16 | {* <!-- EC Presentation --> *} |
---|
17 | {if $ec_howto} |
---|
18 | <div> |
---|
19 | {'ec_admin_page_howto'|@translate} |
---|
20 | </div> |
---|
21 | {/if} |
---|
22 | |
---|
23 | <p> |
---|
24 | <hr width = 75% size = 3 /> |
---|
25 | </p> |
---|
26 | |
---|
27 | {* <!-- Whether plugin Additionnal Pages is active or not --> *} |
---|
28 | <div style = "text-align:right; font-style:italic;"> |
---|
29 | {if $ec_ap_ok} |
---|
30 | {'ec_plugin_ap_ok'|@translate} |
---|
31 | <script type = "text/javascript"><!-- |
---|
32 | var ec_ap_ok = true; //--> |
---|
33 | </script> |
---|
34 | {else} |
---|
35 | {'ec_plugin_ap_nok'|@translate} |
---|
36 | <script type = "text/javascript"><!-- |
---|
37 | var ec_ap_ok = false; //--> |
---|
38 | </script> |
---|
39 | {/if} |
---|
40 | </div> |
---|
41 | |
---|
42 | {* <!-- Form to view codes --> *} |
---|
43 | <form class = "filter" method = "post" name = "ec_view_codes" action = ""> |
---|
44 | <input type = "hidden" id = "ec_act1_id" name = "ec_act1" /> |
---|
45 | <input type = "radio" name = "ec_entry_sel" value = "-1" id = "selection--1" style = "display:none;"/> |
---|
46 | |
---|
47 | <div style = "text-align:center; font-weight:bold; font-size:120%;"> |
---|
48 | <a href = "#ec_top" name = "ec_top" title = "{'ec_top_title'|@translate}">{'ec_entry_table_title'|@translate}</a><br> |
---|
49 | </div><br> |
---|
50 | |
---|
51 | {* <!-- Table to show codes present in MySQL table --> *} |
---|
52 | <table class = "table2" width = "97%" {* id = "" *}> |
---|
53 | <thead> |
---|
54 | <tr class = "throw"> |
---|
55 | <td>{'ec_col_name_entry'|@translate}</td> |
---|
56 | <td>{'ec_col_name_code'|@translate}</td> |
---|
57 | <td>{'ec_col_name_user'|@translate}</td> |
---|
58 | <td>{'ec_col_name_bhvr'|@translate}</td> |
---|
59 | <td>{'ec_col_name_dspl'|@translate}</td> |
---|
60 | <td>{'ec_col_name_actn'|@translate}</td> |
---|
61 | </tr> |
---|
62 | </thead> |
---|
63 | |
---|
64 | {foreach from=$code_list item=code_line name=code_loop} |
---|
65 | <tr class = "{if $smarty.foreach.code_loop.index is odd}row1{else}row2{/if}"> |
---|
66 | <td> |
---|
67 | <input type = "radio" name = "ec_entry_sel" value = "{$code_line.id}" id = "selection-{$code_line.id}" |
---|
68 | onclick = "ec_mark_line({$code_line.id});" |
---|
69 | /> |
---|
70 | <label for = "selection-{$code_line.id}">{$code_line.id}</label> |
---|
71 | </td> |
---|
72 | <td><label for = "selection-{$code_line.id}" id = "ec_table_code_{$code_line.id}">{$code_line.Code}</label></td> |
---|
73 | <td><label for = "selection-{$code_line.id}" id = "ec_table_usr_{$code_line.id}">{$code_line.Username}</label></td> |
---|
74 | <td><label for = "selection-{$code_line.id}">{$code_line.Action|@translate}</label></td> |
---|
75 | <td><label for = "selection-{$code_line.id}">{$code_line.Arg1}</label></td> |
---|
76 | <td> |
---|
77 | <a |
---|
78 | href = "{$code_line.code_URL}" title = "{'ec_test_tooltip'|@translate}" |
---|
79 | id = "ec_table_URL_{$code_line.id}" onclick = "return ec_check_tst({$code_line.id});" |
---|
80 | /> |
---|
81 | <img src = "{$EVNTCATS_URLS.ROOT}icon/url2.png" class = "button" style = "border:none" |
---|
82 | alt = "{'ec_test_tooltip'|@translate}" title = "{'ec_test_tooltip'|@translate}" /> |
---|
83 | </a> |
---|
84 | <a href = "javascript:void();" onclick = "ec_check_d({$code_line.id}, 'delete');"> |
---|
85 | <img src = "{$EVNTCATS_URLS.ROOT}icon/delete.png" class = "button" |
---|
86 | alt = "{'ec_url_delete'|@translate}" title = "{'ec_url_delete'|@translate}" /> |
---|
87 | </a> |
---|
88 | {if $code_line.log_OK} |
---|
89 | <a href = "javascript:void();" onclick = "ec_check_d({$code_line.id}, 'disable');"> |
---|
90 | <img src = "{$EVNTCATS_URLS.ROOT}icon/disable.png" class = "button" |
---|
91 | alt = "{'ec_url_disable'|@translate}" title = "{'ec_url_disable'|@translate}" /> |
---|
92 | </a> |
---|
93 | {if $code_line.Forced == 'true'} |
---|
94 | <a href = "javascript:void()" title = "{'ec_url_forced'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, false);"> |
---|
95 | <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/forced.png" |
---|
96 | {if $code_line.f_pb} style = "border:solid medium red;" {/if} |
---|
97 | alt = "{'ec_url_forced'|@translate}" title = "{'ec_url_forced'|@translate}" |
---|
98 | /> |
---|
99 | </a> |
---|
100 | {else} |
---|
101 | <a href = "javascript:void()" title = "{'ec_url_nforced'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, true);"> |
---|
102 | <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/nforced.png" |
---|
103 | alt = "{'ec_url_nforced'|@translate}" title = "{'ec_url_nforced'|@translate}"/> |
---|
104 | </a> |
---|
105 | {if !$code_line.f_pb} |
---|
106 | <a href = "javascript:void()" title = "{'ec_url_duplicate'|@translate}" onclick = "ec_duplicate_entry({$code_line.id});"> |
---|
107 | <img src = "{$EVNTCATS_URLS.ROOT}icon/duplicate.png" class = "button" style = "border:none" |
---|
108 | alt = "{'ec_url_duplicate'|@translate}" title = "{'ec_url_duplicate'|@translate}" /> |
---|
109 | </a> |
---|
110 | {/if} |
---|
111 | {/if} |
---|
112 | {/if} |
---|
113 | </td> |
---|
114 | </tr> |
---|
115 | {/foreach} |
---|
116 | </table> |
---|
117 | |
---|
118 | {* <!-- This is not really a table, looks like a unique cell at the end of previous table, |
---|
119 | to show URL for currently selected line in above table --> *} |
---|
120 | <table class = "table2" width = "97%"> |
---|
121 | <tr class = "row2"> |
---|
122 | <td style = "text-align:center; padding-top:5px; padding-bottom:5px;"> |
---|
123 | <label title = "{'ec_url_tooltip'|@translate}"> |
---|
124 | {'ec_show_URL'|@translate} |
---|
125 | <input type = "text" id = "ec_show_URL" size = "100%" title = "{'ec_url_tooltip'|@translate}" readonly = "readonly" /> |
---|
126 | </label> |
---|
127 | </td> |
---|
128 | </tr> |
---|
129 | </table><br> |
---|
130 | </form> |
---|
131 | |
---|
132 | {* <!-- JavaScript functions --> *} |
---|
133 | <script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_entries.js"></script> |
---|
134 | <script type = "text/javascript"><!-- |
---|
135 | ec_JS_message['ec_confirm_disable'] = "{'ec_confirm_disable'|@translate|@escape:javascript}"; |
---|
136 | ec_JS_message['ec_confirm_delete'] = "{'ec_confirm_delete'|@translate|@escape:javascript}"; |
---|
137 | ec_JS_message['ec_confirm_test'] = "{'ec_confirm_test'|@translate|@escape:javascript}"; |
---|
138 | ec_JS_message['ec_confirm_force'] = "{'ec_confirm_force'|@translate|@escape:javascript}"; |
---|
139 | ec_init(); |
---|
140 | //--></script> |
---|
141 | |
---|
142 | {* <!-- {$test0tpl} --> *} |
---|
143 | <p>$_GET :</p> |
---|
144 | {$GET} |
---|
145 | <p>$_POST :</p> |
---|
146 | {$POST} |
---|
147 | <p>Autres :</p> |
---|
148 | {$test1tpl} |
---|
149 | {$test2tpl} |
---|
150 | {$test3tpl} |
---|
151 | |
---|
152 | {* <!-- |
---|
153 | --> *} |
---|
154 | |
---|