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

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

[Event Cats] Some debugging ; adapt certain labels so that it can be recognized in other modules

(See http://fr.piwigo.org/forum/viewtopic.php?pid=122608#p122608 ) mainly

File size: 6.6 KB
RevLine 
[3999]1{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
2
[4048]3{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
[3999]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}
[4181]9    <script type = "text/javascript">
10      var ec_ap_ok = true;
[3999]11    </script>
12  {else}
13    {'ec_plugin_ap_nok'|@translate}
[4181]14    <script type = "text/javascript">
15      var ec_ap_ok = false;
[3999]16    </script>
17  {/if}
18</div>
19
[4002]20{* <!-- Form to view codes --> *}
21<form class = "filter" method = "post" name = "ec_view_codes" action = "">
[3999]22  <input type = "hidden" id = "ec_act1_id" name = "ec_act1" />
[4002]23  <input type = "radio" name = "ec_entry_sel" value = "-1" id = "selection--1" style = "display:none;"/>
[3999]24 
[4011]25  <div style = "text-align:center; font-weight:bold; font-size:120%;">
[4181]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>
[4011]32  </div><br>
[3999]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>
[4092]54          <label id = "ec_url_id_{$code_line.id}" style = "display:none;">{$code_line.code_URL}</label>
[3999]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>
[4170]58        <td><label for = "selection-{$code_line.id}">{$code_line.Action}</label></td>
[3999]59        <td><label for = "selection-{$code_line.id}">{$code_line.Arg1}</label></td>
60        <td>
61          {if $code_line.log_OK}
[4092]62            <a href = "javascript:void(0);" onclick = "ec_check_ds({$code_line.id});">
[3999]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'}
[4058]67              <a href = "javascript:void(0);" title = "{'ec_url_forced'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, false);">
[3999]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}
[4058]73              <a href = "javascript:void(0);" title = "{'ec_url_nforced'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, true);">
[3999]74                <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/nforced.png"
75                 alt = "{'ec_url_nforced'|@translate}" title = "{'ec_url_nforced'|@translate}"/>
76              </a>
[4092]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>
[3999]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">
[4092]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;">
[3999]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" />
[4092]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>
[3999]122      </td>
123    </tr>
124  </table><br>
125</form>
126
127{* <!-- JavaScript functions --> *}
[4002]128<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_entries.js"></script>
[4181]129<script type = "text/javascript">
[4092]130  ec_JS_message['ec_confirm_delete']  = "{'ec_confirm_delete'|@translate|@escape:javascript}";
[4171]131  ec_JS_message['ec_confirm_disable'] = "{'ec_confirm_disable'|@translate|@escape:javascript}";
[4092]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}";
[3999]135  ec_init();
[4181]136</script>
[3999]137
[4048]138{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
[3999]139
140{* <!--
141--> *}
Note: See TracBrowser for help on using the repository browser.