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

Last change on this file since 7663 was 7663, checked in by LucMorizur, 13 years ago

Replace all " />" by ">" (see topic:16569 in english forum)

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