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

Revision 4171, 6.5 KB checked in by LucMorizur, 10 years ago (diff)

[Event Cats] Bug corrections

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}"><label>{'ec_entry_table_title'|@translate}</label></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          <label id = "ec_url_id_{$code_line.id}" style = "display:none;">{$code_line.code_URL}</label>
50        </td>
51        <td><label for = "selection-{$code_line.id}" id = "ec_table_code_{$code_line.id}">{$code_line.Code}</label></td>
52        <td><label for = "selection-{$code_line.id}" id = "ec_table_usr_{$code_line.id}">{$code_line.Username}</label></td>
53        <td><label for = "selection-{$code_line.id}">{$code_line.Action}</label></td>
54        <td><label for = "selection-{$code_line.id}">{$code_line.Arg1}</label></td>
55        <td>
56          {if $code_line.log_OK}
57            <a href = "javascript:void(0);" onclick = "ec_check_ds({$code_line.id});">
58              <img src = "{$EVNTCATS_URLS.ROOT}icon/disable.png" class = "button"
59               alt = "{'ec_url_disable'|@translate}" title = "{'ec_url_disable'|@translate}" />
60            </a>
61            {if $code_line.Forced == 'true'}
62              <a href = "javascript:void(0);" title = "{'ec_url_forced'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, false);">
63                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/forced.png"
64                 alt = "{'ec_url_forced'|@translate}" title = "{'ec_url_forced'|@translate}"
65                />
66              </a>
67            {else}
68              <a href = "javascript:void(0);" title = "{'ec_url_nforced'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, true);">
69                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/nforced.png"
70                 alt = "{'ec_url_nforced'|@translate}" title = "{'ec_url_nforced'|@translate}"/>
71              </a>
72              <a href = "javascript:void(0);" title = "{'ec_url_duplicate'|@translate}" onclick = "ec_duplicate_entry({$code_line.id});">
73                <img src = "{$EVNTCATS_URLS.ROOT}icon/duplicate.png" class = "button" style = "border:none"
74                 alt = "{'ec_url_duplicate'|@translate}" title = "{'ec_url_duplicate'|@translate}" />
75              </a>
76            {/if}
77          {/if}
78        </td>
79      </tr>
80    {/foreach}
81  </table>
82 
83  {* <!-- This is not really a table, looks like a unique cell at the end of previous table,
84  to show URL for currently selected line in above table --> *}
85  <table class = "table2" width = "97%">
86    <tr class = "row2">
87      <td style = "padding-top:5px; padding-bottom:5px; font-weight:bold;">
88        {'ec_lower_tools_desc'|@translate}
89      </td>
90      <td style = "{* text-align:center; *}padding-top:5px; padding-bottom:5px;">
91        <label title = "{'ec_url_tooltip'|@translate}">
92          {'ec_show_URL'|@translate}
93          <input type = "text" id = "ec_show_URL" size = "100%" title = "{'ec_url_tooltip'|@translate}" readonly = "readonly" />
94        </label><br>
95        <br>
96        <a
97         href = "javascript:void(0);" title = "{'ec_test_tooltip'|@translate}" alt = "{'ec_test_tooltip'|@translate}"
98         id = "ec_table_URL" onclick = "return ec_check_tst();" class = "ec_lower_tools"
99        />
100          <img src = "{$EVNTCATS_URLS.ROOT}icon/url2.png" class = "button"/>
101          {'ec_test_text'|@translate}
102        </a>
103        &nbsp;&nbsp;
104        <a href = "javascript:void(0);" onclick = "ec_check_dl();" id = "ec_del_link_id" class = "ec_lower_tools"
105         alt = "{'ec_url_delete'|@translate}" title = "{'ec_url_delete'|@translate}"
106        >
107          <img src = "{$EVNTCATS_URLS.ROOT}icon/delete.png" class = "button"/>
108          {'ec_delete_text'|@translate}
109        </a>
110        &nbsp;&nbsp;
111        <a href = "javascript:void(0);" onclick = "ec_check_m();" id = "ec_mod_link_id" class = "ec_lower_tools"
112         alt = "{'ec_modify_tooltip'|@translate}" title = "{'ec_modify_tooltip'|@translate}"
113        >
114          <img src = "{$EVNTCATS_URLS.ROOT}icon/modify.png" class = "button"/>
115          {'ec_modify_text'|@translate}
116        </a>
117      </td>
118    </tr>
119  </table><br>
120</form>
121
122{* <!-- JavaScript functions --> *}
123<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_entries.js"></script>
124<script type = "text/javascript"><!--
125  ec_JS_message['ec_confirm_delete']  = "{'ec_confirm_delete'|@translate|@escape:javascript}";
126  ec_JS_message['ec_confirm_disable'] = "{'ec_confirm_disable'|@translate|@escape:javascript}";
127  ec_JS_message['ec_confirm_test']    = "{'ec_confirm_test'|@translate|@escape:javascript}";
128  ec_JS_message['ec_confirm_force']   = "{'ec_confirm_force'|@translate|@escape:javascript}";
129  ec_JS_message['ec_clk_entry_miss']  = "{'ec_clk_entry_miss'|@translate|@escape:javascript}";
130  ec_init();
131//--></script>
132
133{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
134
135{* <!--
136--> *}
Note: See TracBrowser for help on using the repository browser.