source: extensions/event_cats/admin/template/autolog_entries.tpl @ 4002

Last change on this file since 4002 was 4002, checked in by LucMorizur, 15 years ago

[Event Cats] ≈ finish existing/new entries separation

File size: 6.3 KB
Line 
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%;">{'ec_entry_table_title'|@translate}</div><br>
48 
49  {* <!-- Table to show codes present in MySQL table --> *}
50  <table class = "table2" width = "97%" {* id = "" *}>
51    <thead>
52      <tr class = "throw">
53        <td>{'ec_col_name_entry'|@translate}</td>
54        <td>{'ec_col_name_code'|@translate}</td>
55        <td>{'ec_col_name_user'|@translate}</td>
56        <td>{'ec_col_name_bhvr'|@translate}</td>
57        <td>{'ec_col_name_dspl'|@translate}</td>
58        <td>{'ec_col_name_actn'|@translate}</td>
59      </tr>
60    </thead>
61   
62    {foreach from=$code_list item=code_line name=code_loop}
63      <tr class = "{if $smarty.foreach.code_loop.index is odd}row1{else}row2{/if}">
64        <td>
65          <input type = "radio" name = "ec_entry_sel" value = "{$code_line.id}" id = "selection-{$code_line.id}"
66           onclick = "ec_mark_line({$code_line.id});"
67          />
68          <label for = "selection-{$code_line.id}">{$code_line.id}</label>
69        </td>
70        <td><label for = "selection-{$code_line.id}" id = "ec_table_code_{$code_line.id}">{$code_line.Code}</label></td>
71        <td><label for = "selection-{$code_line.id}" id = "ec_table_usr_{$code_line.id}">{$code_line.Username}</label></td>
72        <td><label for = "selection-{$code_line.id}">{$code_line.Action|@translate}</label></td>
73        <td><label for = "selection-{$code_line.id}">{$code_line.Arg1}</label></td>
74        <td>
75          <a
76           href = "{$code_line.code_URL}" title = "{'ec_test_tooltip'|@translate}"
77           id = "ec_table_URL_{$code_line.id}" onclick = "return ec_check_tst({$code_line.id});"
78          />
79            <img src = "{$EVNTCATS_URLS.ROOT}icon/url2.png" class = "button" style = "border:none"
80             alt = "{'ec_test_tooltip'|@translate}" title = "{'ec_test_tooltip'|@translate}" />
81          </a>
82          <a href = "javascript:void();" onclick = "ec_check_d({$code_line.id}, 'delete');">
83            <img src = "{$EVNTCATS_URLS.ROOT}icon/delete.png" class = "button"
84             alt = "{'ec_url_delete'|@translate}" title = "{'ec_url_delete'|@translate}" />
85          </a>
86          {if $code_line.log_OK}
87            <a href = "javascript:void();" onclick = "ec_check_d({$code_line.id}, 'disable');">
88              <img src = "{$EVNTCATS_URLS.ROOT}icon/disable.png" class = "button"
89               alt = "{'ec_url_disable'|@translate}" title = "{'ec_url_disable'|@translate}" />
90            </a>
91            {if $code_line.Forced == 'true'}
92              <a href = "javascript:void()" title = "{'ec_url_forced'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, false);">
93                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/forced.png"
94                 {if $code_line.f_pb} style = "border:solid medium red;" {/if}
95                 alt = "{'ec_url_forced'|@translate}" title = "{'ec_url_forced'|@translate}"
96                />
97              </a>
98            {else}
99              <a href = "javascript:void()" title = "{'ec_url_nforced'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, true);">
100                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/nforced.png"
101                 alt = "{'ec_url_nforced'|@translate}" title = "{'ec_url_nforced'|@translate}"/>
102              </a>
103              {if !$code_line.f_pb}
104                <a href = "javascript:void()" title = "{'ec_url_duplicate'|@translate}" onclick = "ec_duplicate_entry({$code_line.id});">
105                  <img src = "{$EVNTCATS_URLS.ROOT}icon/duplicate.png" class = "button" style = "border:none"
106                   alt = "{'ec_url_duplicate'|@translate}" title = "{'ec_url_duplicate'|@translate}" />
107                </a>
108              {/if}
109            {/if}
110          {/if}
111        </td>
112      </tr>
113    {/foreach}
114  </table>
115 
116  {* <!-- This is not really a table, looks like a unique cell at the end of previous table,
117  to show URL for currently selected line in above table --> *}
118  <table class = "table2" width = "97%">
119    <tr class = "row2">
120      <td style = "text-align:center; padding-top:5px; padding-bottom:5px;">
121        <label title = "{'ec_url_tooltip'|@translate}">
122          {'ec_show_URL'|@translate}
123          <input type = "text" id = "ec_show_URL" size = "100%" title = "{'ec_url_tooltip'|@translate}" readonly = "readonly" />
124        </label>
125      </td>
126    </tr>
127  </table><br>
128</form>
129
130{* <!-- JavaScript functions --> *}
131<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_entries.js"></script>
132<script type = "text/javascript"><!--
133  ec_JS_message['ec_confirm_disable']   = "{'ec_confirm_disable'|@translate|@escape:javascript}";
134  ec_JS_message['ec_confirm_delete']    = "{'ec_confirm_delete'|@translate|@escape:javascript}";
135  ec_JS_message['ec_confirm_test']      = "{'ec_confirm_test'|@translate|@escape:javascript}";
136  ec_JS_message['ec_confirm_force']     = "{'ec_confirm_force'|@translate|@escape:javascript}";
137  ec_init();
138//--></script>
139
140{* <!-- {$test0tpl} --> *}
141<p>$_GET :</p>
142{$GET}
143<p>$_POST :</p>
144{$POST}
145<p>Autres :</p>
146{$test1tpl}
147{$test2tpl}
148{$test3tpl}
149
150{* <!--
151--> *}
152
Note: See TracBrowser for help on using the repository browser.