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

Last change on this file since 4228 was 4228, checked in by LucMorizur, 14 years ago

[Event Cats] Begin duplication management

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