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

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

[Event Cats] Add entry modification ability, as finally it is required for outdating

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