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

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

[Event Cats] Add character "é" in all files so to keep them coded in UTF-8 w/o BOM

File size: 6.9 KB
Line 
1{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
2
3{* <!-- Keeps file coded in UTF-8 without BOM : é --> *}
4
5{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
6
7{* <!-- Whether plugin Additionnal Pages is active or not --> *}
8<div style = "text-align:right; font-style:italic;">
9  {if $ec_ap_ok}
10    {'Additional Pages active'|@translate}
11    <script type = "text/javascript">
12      var ec_ap_ok = {if $ec_ap_ok2}true{else}false{/if};
13    </script>
14  {else}
15    {'Additional Pages inactive'|@translate}
16    <script type = "text/javascript">
17      var ec_ap_ok = false;
18    </script>
19  {/if}
20</div>
21
22{* <!-- Form to view codes --> *}
23<form class = "filter" method = "post" name = "ec_view_codes" action = "">
24  <input type = "hidden" id = "ec_act1_id" name = "ec_act1" />
25  <input type = "radio" name = "ec_entry_sel" value = "-1" id = "selection--1" style = "display:none;"/>
26 
27  <div style = "text-align:center; font-weight:bold; font-size:120%;">
28    <a href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}">
29      <!--[if !IE]> <--> <label> <!--> <![endif]-->
30        {'Autolog entries'|@translate}
31      <!--[if !IE]> <--> </label> <!--> <![endif]-->
32      <!-- What we're able to do for our "prefered" browser |-( ...!  -->
33    </a><br />
34  </div><br />
35 
36  {* <!-- Table to show codes present in MySQL table --> *}
37  <table class = "table2" width = "97%">
38    <thead>
39      <tr class = "throw">
40        <td>{'Entry'|@translate}</td>
41        <td>{'Code'|@translate}</td>
42        <td>{'Username'|@translate}</td>
43        <td>{'Identification'|@translate}</td>
44        <td>{'Displayed page'|@translate}</td>
45        <td>{'Tools'|@translate}</td>
46      </tr>
47    </thead>
48   
49    {foreach from=$code_list item=code_line name=code_loop}
50      <tr class = "{if $smarty.foreach.code_loop.index is odd}row1{else}row2{/if}">
51        <td>
52          <input type = "radio" name = "ec_entry_sel" value = "{$code_line.id}" id = "selection-{$code_line.id}"
53           onclick = "ec_mark_line({$code_line.id});"
54          />
55          <label for = "selection-{$code_line.id}">{$code_line.id}</label>
56          <a id = "ec_url_id_{$code_line.id}" style = "display:none;" href = "{$code_line.code_URL}"></a>
57        </td>
58        <td>
59          <label for = "selection-{$code_line.id}" id = "ec_table_code_{$code_line.id}"
60             {if $comment_tooltip} title = "{$code_line.Comment}" {/if}
61          >
62            {$code_line.Code}
63            {if !$comment_tooltip and $code_line.Comment != ''}<br />{$code_line.Comment}{/if}
64          </label>
65        </td>
66        <td><label for = "selection-{$code_line.id}" id = "ec_table_usr_{$code_line.id}">{$code_line.Username}</label></td>
67        <td><label for = "selection-{$code_line.id}">{$code_line.Action}</label></td>
68        <td><label for = "selection-{$code_line.id}">{$code_line.Arg1}</label></td>
69        <td>
70          {if $code_line.log_OK}
71            <a href = "javascript:void(0);" onclick = "ec_check_ds({$code_line.id});">
72              <img src = "{$EVNTCATS_URLS.ROOT}icon/disable.png" class = "button"
73               alt = "{'Outdate entry ttip'|@translate}" title = "{'Outdate entry ttip'|@translate}" />
74            </a>
75            {if $code_line.Forced == 'true'}
76              <a href = "javascript:void(0);" title = "{'Unforce display ttip'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, false);">
77                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/forced.png"
78                 alt = "{'Unforce display ttip'|@translate}" title = "{'Unforce display ttip'|@translate}"
79                />
80              </a>
81            {else}
82              <a href = "javascript:void(0);" title = "{'Force display ttip'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, true);">
83                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/nforced.png"
84                 alt = "{'Force display ttip'|@translate}" title = "{'Force display ttip'|@translate}"/>
85              </a>
86              <a href = "javascript:void(0);" title = "{'Duplicate entry ttip'|@translate}" onclick = "ec_duplicate_entry({$code_line.id});">
87                <img src = "{$EVNTCATS_URLS.ROOT}icon/duplicate.png" class = "button" style = "border:none"
88                 alt = "{'Duplicate entry ttip'|@translate}" title = "{'Duplicate entry ttip'|@translate}" />
89              </a>
90            {/if}
91          {/if}
92        </td>
93      </tr>
94    {/foreach}
95  </table>
96 
97  {* <!-- This is not really a table, looks like a unique cell at the end of previous table,
98  to show URL for currently selected line in above table --> *}
99  <table class = "table2" width = "97%">
100    <tr class = "row2">
101      <td style = "padding-top:5px; padding-bottom:5px; font-weight:bold;">
102        {'Selected entry'|@translate}
103      </td>
104      <td style = "padding-top:5px; padding-bottom:5px;">
105        <label title = "{'Copy URL ttip'|@translate}">
106          {'URL'|@translate}
107          <input type = "text" id = "ec_show_URL" size = "100%" title = "{'Copy URL ttip'|@translate}" readonly = "readonly" />
108        </label><br />
109        <br />
110        <a
111         href = "javascript:void(0);" title = "{'Test URL ttip'|@translate}" alt = "{'Test URL ttip'|@translate}"
112         id = "ec_table_URL" onclick = "return ec_check_tst();" class = "ec_lower_tools"
113        />
114          <img src = "{$EVNTCATS_URLS.ROOT}icon/url2.png" class = "button"/>
115          {'Test'|@translate}
116        </a>
117        &nbsp;&nbsp;
118        <a href = "javascript:void(0);" onclick = "ec_check_dl();" id = "ec_del_link_id" class = "ec_lower_tools"
119         alt = "{'Delete entry ttip'|@translate}" title = "{'Delete entry ttip'|@translate}"
120        >
121          <img src = "{$EVNTCATS_URLS.ROOT}icon/delete.png" class = "button"/>
122          {'Delete'|@translate}
123        </a>
124        &nbsp;&nbsp;
125        <a href = "javascript:void(0);" onclick = "ec_check_m();" id = "ec_mod_link_id" class = "ec_lower_tools"
126         alt = "{'Modify entry ttip'|@translate}" title = "{'Modify entry ttip'|@translate}"
127        >
128          <img src = "{$EVNTCATS_URLS.ROOT}icon/modify.png" class = "button"/>
129          {'Modify'|@translate}
130        </a>
131      </td>
132    </tr>
133  </table><br />
134</form>
135
136{* <!-- JavaScript functions --> *}
137<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_entries.js"></script>
138<script type = "text/javascript">
139  ec_JS_message['ec_confirm_delete']  = "{'ec_confirm_delete'|@translate|@escape:javascript}";
140  ec_JS_message['ec_confirm_disable'] = "{'ec_confirm_disable'|@translate|@escape:javascript}";
141  ec_JS_message['ec_confirm_test']    = "{'ec_confirm_test'|@translate|@escape:javascript}";
142  ec_JS_message['ec_confirm_force']   = "{'ec_confirm_force'|@translate|@escape:javascript}";
143  ec_JS_message['ec_clk_entry_miss']  = "{'ec_clk_entry_miss'|@translate|@escape:javascript}";
144  ec_init();
145</script>
146
147{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
Note: See TracBrowser for help on using the repository browser.