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

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

[Event Cats] Implement help banner

File size: 7.6 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, 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      {'Banner on'|@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      {'Banner off'|@translate}
19    </label>
20    &nbsp;&#151;&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<script type = "text/javascript"><!--
35  document.getElementById('ec_help_banner2').style.display = "none";
36//--></script>
37
38{* <!-- Form to view codes --> *}
39<form class = "filter" method = "post" name = "ec_view_codes" action = "">
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 
43  <div style = "text-align:center; font-weight:bold; font-size:120%;">
44    <a href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}">
45      <!--[if !IE]> <--> <label> <!--> <![endif]-->
46        {'Autolog entries'|@translate}
47      <!--[if !IE]> <--> </label> <!--> <![endif]-->
48      <!-- What we're able to do for our "prefered" browser |-( ...!  -->
49    </a><br />
50  </div><br />
51 
52  {* <!-- Table to show codes present in MySQL table --> *}
53  <table class = "table2" width = "97%">
54    <thead>
55      <tr class = "throw">
56        <td>{'Entry'|@translate}</td>
57        <td>{'Code'|@translate}</td>
58        <td>{'Username'|@translate}</td>
59        <td>{'Identification'|@translate}</td>
60        <td>{'Displayed page'|@translate}</td>
61        <td>{'Tools'|@translate}</td>
62      </tr>
63    </thead>
64   
65    {foreach from=$code_list item=code_line name=code_loop}
66      <tr class = "{if $smarty.foreach.code_loop.index is odd}row1{else}row2{/if}">
67        <td>
68          <input type = "radio" name = "ec_entry_sel" value = "{$code_line.id}" id = "selection-{$code_line.id}"
69           onclick = "ec_mark_line({$code_line.id});"
70          />
71          <label for = "selection-{$code_line.id}">{$code_line.id}</label>
72          <a id = "ec_url_id_{$code_line.id}" style = "display:none;" href = "{$code_line.code_URL}"></a>
73        </td>
74        <td>
75          <label for = "selection-{$code_line.id}" id = "ec_table_code_{$code_line.id}"
76             {if $comment_tooltip} title = "{$code_line.Comment}" {/if}
77          >
78            {$code_line.Code}
79            {if !$comment_tooltip and $code_line.Comment != ''}<br />{$code_line.Comment}{/if}
80          </label>
81        </td>
82        <td><label for = "selection-{$code_line.id}" id = "ec_table_usr_{$code_line.id}">{$code_line.Username}</label></td>
83        <td><label for = "selection-{$code_line.id}">{$code_line.Action}</label></td>
84        <td><label for = "selection-{$code_line.id}">{$code_line.Arg1}</label></td>
85        <td>
86          {if $code_line.log_OK}
87            <a href = "javascript:void(0);" onclick = "ec_check_ds({$code_line.id});">
88              <img src = "{$EVNTCATS_URLS.ROOT}icon/disable.png" class = "button"
89               alt = "{'Outdate entry ttip'|@translate}" title = "{'Outdate entry ttip'|@translate}" />
90            </a>
91            {if $code_line.Forced == 'true'}
92              <a href = "javascript:void(0);" title = "{'Unforce display ttip'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, false);">
93                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/forced.png"
94                 alt = "{'Unforce display ttip'|@translate}" title = "{'Unforce display ttip'|@translate}"
95                />
96              </a>
97            {else}
98              <a href = "javascript:void(0);" title = "{'Force display ttip'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, true);">
99                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/nforced.png"
100                 alt = "{'Force display ttip'|@translate}" title = "{'Force display ttip'|@translate}"/>
101              </a>
102              <a href = "javascript:void(0);" title = "{'Duplicate entry ttip'|@translate}" onclick = "ec_duplicate_entry({$code_line.id});">
103                <img src = "{$EVNTCATS_URLS.ROOT}icon/duplicate.png" class = "button" style = "border:none"
104                 alt = "{'Duplicate entry ttip'|@translate}" title = "{'Duplicate entry ttip'|@translate}" />
105              </a>
106            {/if}
107          {/if}
108        </td>
109      </tr>
110    {/foreach}
111  </table>
112 
113  {* <!-- This is not really a table, looks like a unique cell at the end of previous table,
114  to show URL for currently selected line in above table --> *}
115  <table class = "table2" width = "97%">
116    <tr class = "row2">
117      <td style = "padding-top:5px; padding-bottom:5px; font-weight:bold;">
118        {'Selected entry'|@translate}
119      </td>
120      <td style = "padding-top:5px; padding-bottom:5px;">
121        <label title = "{'Copy URL ttip'|@translate}">
122          {'URL'|@translate}
123          <input type = "text" id = "ec_show_URL" size = "100%" title = "{'Copy URL ttip'|@translate}" readonly = "readonly" />
124        </label><br />
125        <br />
126        <a
127         href = "javascript:void(0);" title = "{'Test URL ttip'|@translate}" alt = "{'Test URL ttip'|@translate}"
128         id = "ec_table_URL" onclick = "return ec_check_tst();" class = "ec_lower_tools"
129        />
130          <img src = "{$EVNTCATS_URLS.ROOT}icon/url2.png" class = "button"/>
131          {'Test'|@translate}
132        </a>
133        &nbsp;&nbsp;
134        <a href = "javascript:void(0);" onclick = "ec_check_dl();" id = "ec_del_link_id" class = "ec_lower_tools"
135         alt = "{'Delete entry ttip'|@translate}" title = "{'Delete entry ttip'|@translate}"
136        >
137          <img src = "{$EVNTCATS_URLS.ROOT}icon/delete.png" class = "button"/>
138          {'Delete'|@translate}
139        </a>
140        &nbsp;&nbsp;
141        <a href = "javascript:void(0);" onclick = "ec_check_m();" id = "ec_mod_link_id" class = "ec_lower_tools"
142         alt = "{'Modify entry ttip'|@translate}" title = "{'Modify entry ttip'|@translate}"
143        >
144          <img src = "{$EVNTCATS_URLS.ROOT}icon/modify.png" class = "button"/>
145          {'Modify'|@translate}
146        </a>
147      </td>
148    </tr>
149  </table><br />
150</form>
151
152{* <!-- JavaScript functions --> *}
153<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_entries.js"></script>
154<script type = "text/javascript">
155  ec_JS_message['ec_confirm_delete']  = "{'ec_confirm_delete'|@translate|@escape:javascript}";
156  ec_JS_message['ec_confirm_disable'] = "{'ec_confirm_disable'|@translate|@escape:javascript}";
157  ec_JS_message['ec_confirm_test']    = "{'ec_confirm_test'|@translate|@escape:javascript}";
158  ec_JS_message['ec_confirm_force']   = "{'ec_confirm_force'|@translate|@escape:javascript}";
159  ec_JS_message['ec_clk_entry_miss']  = "{'ec_clk_entry_miss'|@translate|@escape:javascript}";
160  ec_init();
161</script>
162
163{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
Note: See TracBrowser for help on using the repository browser.