source: extensions/whois_online/config.tpl @ 32901

Last change on this file since 32901 was 32643, checked in by plg, 3 years ago

slightly modernized code for compatibility with Piwigo 12

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 8.3 KB
Line 
1{combine_css path="plugins/whois_online/online.css"}
2
3<form method="post" action="{$F_ACTION}" class="Whois_Online properties {$themeconf.name}">
4
5{if $page == 'config'}
6<fieldset>
7        <legend>{'Options'|@translate}</legend>
8
9        <ul>
10                <li>
11                        <span class="property">{'Active capture'|@translate}</span>
12                        <input type="radio" value="1" name="Active" {if ($Option.Active==1)} checked="checked" {/if}/>{'Yes'|@translate}
13                        <input type="radio" value="0" name="Active" {if ($Option.Active==0)} checked="checked" {/if}/>{'No'|@translate}
14                </li>
15                <li>
16                        <span class="property">{'Delete level [10-200] (ratio between obsolete and active)'|@translate}</span>
17                        <input type="text" id="Level" maxlength="3" size="8" name="Level" value="{$Option.Level}" />
18                </li>
19                <li>
20                        <span class="property">{'Obsolete limit [20-100] (obsolete data count)'|@translate}</span>
21                        <input type="text" id="Limit" maxlength="3" size="8" name="Limit" value="{$Option.Limit}" />
22                </li>
23                <li>
24                        <span class="property">{'Add link to Plugins menu'|@translate}</span>
25                        <input type="radio" value="1" name="Plugins_menu" {if ($Option.Plugins_menu==1)} checked="checked" {/if}/>{'Yes'|@translate}
26                        <input type="radio" value="0" name="Plugins_menu" {if ($Option.Plugins_menu==0)} checked="checked" {/if}/>{'No'|@translate}
27                </li>
28                <li>
29                        <span class="property">{'Add icon to History'|@translate}</span>
30                        <input type="radio" value="1" name="History_icon" {if ($Option.History_icon==1)} checked="checked" {/if}/>{'Yes'|@translate}
31                        <input type="radio" value="0" name="History_icon" {if ($Option.History_icon==0)} checked="checked" {/if}/>{'No'|@translate}
32                </li>
33                <li>
34                        <span class="property">{'Keep data even if plugin is deactivated/uninstall'|@translate}</span>
35                        <input type="radio" value="1" name="Keep_data" {if ($Option.Keep_data==1)} checked="checked" {/if}/>{'Yes'|@translate}
36                        <input type="radio" value="0" name="Keep_data" {if ($Option.Keep_data==0)} checked="checked" {/if}/>{'No'|@translate}
37                </li>
38                <li>
39                        <span class="property" title="{'Advanced users: template vars are available in all cases and might be included in your extensions'|@translate}" >{'Default display'|@translate}</span>
40                        <input type="radio" value="1" name="Display" {if ($Option.Display==1)} checked="checked" {/if}/>{'Yes'|@translate}
41                        <input type="radio" value="0" name="Display" {if ($Option.Display==0)} checked="checked" {/if}/>{'No'|@translate}
42                </li>
43                <li>
44                        <span class="property" title="{'Users with image cluetips [10-200]'|@translate}" >{'Radar limit'|@translate}</span>
45                        <input type="text" maxlength="2" size="8" id="Radar_limit" name="Radar_limit" value="{$Option.Radar_limit}"  title="{'Default %s'|@translate|@sprintf:'25'}"/>
46                </li>
47                <li>
48                        <span class="property" title="{'Default as anybody'|@translate}" >{'Webmasters management:'|@translate}</span>
49                        <input type="radio" value="0" name="Webmaster_management" {if ($Option.Webmasters==0)} checked="checked" {/if}/>{'Exclude'|@translate}
50                        <input type="radio" value="1" name="Webmaster_management" {if ($Option.Webmasters==1)} checked="checked" {/if}/>{'Hidden'|@translate}
51                        <input type="radio" value="2" name="Webmaster_management" {if ($Option.Webmasters==2)} checked="checked" {/if}/>{'As anybody'|@translate}
52                </li>
53                <li>
54                        <span class="property" title="{'Default as anybody'|@translate}" >{'Administrators management:'|@translate}</span>
55                        <input type="radio" value="0" name="Administrator_management" {if ($Option.Administrators==0)} checked="checked" {/if}/>{'Exclude'|@translate}
56                        <input type="radio" value="1" name="Administrator_management" {if ($Option.Administrators==1)} checked="checked" {/if}/>{'Hidden'|@translate}
57                        <input type="radio" value="2" name="Administrator_management" {if ($Option.Administrators==2)} checked="checked" {/if}/>{'As anybody'|@translate}
58                </li>
59
60        </ul>
61        <input type="submit" value="{'Submit'|@translate}" name="submit" class="submit"/>
62        <div><input type="hidden" name="from" value="config" /></div>
63</fieldset>
64{/if}
65
66{if $page == 'monitor'}
67
68<fieldset>
69        <legend>{'Your `%s` table summary'|@translate|@sprintf:$WO_status.table}</legend>
70        <p>
71                {if ($WO_status.spacef > 0)}<a href="{$WO_status.url}&amp;tab=monitor&amp;check">{'Compress it!'|@translate}</a>
72                {' => Delete old guests access (over 3 days), and optimize table and index.'|@translate}<br />{/if}
73      <table class="table1">
74                                <tr class="row2"><td style="padding:7px; width: 45%">{'Space used: %s'|@translate|@sprintf:$WO_status.size}</td>
75                                <td style="padding:7px; width: 45%">{'Unused allocated space: <strong>%s</strong>'|@translate|@sprintf:$WO_status.spacef}</td></tr>
76                                <tr class="row2"><td>{'Traced sessions: %s'|@translate|@sprintf:$WO_status.Rows}</td>
77                                <td>{'Altered/created since: %s'|@translate|@sprintf:$WO_status.Create_time}</td></tr>
78                        </table>
79                </p>
80</fieldset>
81
82
83<fieldset>
84        <legend>{'Permanence/Durability of user monitoring'|@translate}</legend>
85    {$DOUBLE_SELECT}
86                <div><input type="hidden" name="from" value="monitor" /></div>
87</fieldset>
88<fieldset>
89        <legend>{'Clearing'|@translate}</legend>
90        <p>{'Clear temporary users (minimal delay is 6 minutes). To clean any permanent users, switch them before in the right list above.'|@translate}</p>
91      <select class="CleaningList" name="prs_remove[]" multiple="multiple">
92        {html_options options=$present_remove selected=$present_remove_selected}
93      </select>
94      <p><input class="submit" type="submit" value="{'Delete'|@translate}" name="prs_delete" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
95                <div><input type="hidden" name="from" value="monitor" /></div>
96</fieldset>
97{literal}
98<script type="text/javascript">// <![CDATA[
99  jQuery().ready(function(){
100    // Resize possible for double select list
101    jQuery("select.CleaningList").resizable({
102      handles: "n",
103      animate: true,
104      animateDuration: "slow",
105      animateEasing: "swing",
106      preventDefault: true,
107      preserveCursor: true,
108      autoHide: true,
109      ghost: true
110    });
111  });
112// ]]>
113</script>
114{/literal}
115{/if}
116
117
118{if $page == 'report'}
119<fieldset>
120        <legend>{'Members summary'|@translate}</legend>
121<p>{'Registration counter: %s'|@translate|sprintf:$Members.count} - {'Most members ever online was %s on %s'|@Whois_most:$Members.max:$Members.When:'Y-m-d H:i'}</p> 
122</fieldset>
123{if !empty($search_results) }
124<fieldset>
125        <legend>{'Available filters'|@translate}</legend>
126        <p>
127                <a href="{$Whois_url}reload.php?req=members"            class="load"    id="members" title="{'Monitored members'|@translate}">{'Members'|@translate}</a> -
128                <a href="{$Whois_url}reload.php?req=guest"                      class="load"    id="guest" title="{'Captured guests'|@translate}">{'Guests'|@translate}</a> -
129                <a href="{$Whois_url}reload.php?req=less_24"            class="load"    id="less_24" title="{'Last 24h accesses'|@translate}">{'Recents (less 24h)'|@translate}</a> -
130                <a href="{$Whois_url}reload.php?req=over_24"            class="load"    id="over_24" title="{'More than 24h accesses'|@translate}">{'More than 24h'|@translate}</a> -
131                <a href="{$Whois_url}reload.php?req=pics"                               class="load"    id="pics" title="{'Pictures accesses'|@translate}">{'On pictures'|@translate}</a> -
132                <a href="{$Whois_url}reload.php?req=no_pic"                     class="load"    id="no_pic" title="{'No picture accesses'|@translate}">{'Categories only'|@translate}</a> -
133                <a href="{$Whois_url}reload.php?req=no_country" class="load"    id="no_country" title="{'Unidentifed countries'|@translate}">{'No country'|@translate}</a> -
134                <a href="{$Whois_url}reload.php?req=single"                     class="load"    id="single" title="{'Only one day accesses'|@translate}">{'One day'|@translate}</a> -
135                <a href="{$Whois_url}reload.php?req=multi"                      class="load"    id="multi" title="{'Several days accesses or over midnight'|@translate}">{'Several days'|@translate}</a> -
136                <a href="{$Whois_url}reload.php?req=IPs"                                class="load"    id="IPs" title="{'Several identified IPs (Only the first one is kept)'|@translate}">{'Several IPs'|@translate}</a>
137        </p>
138</fieldset>
139
140<fieldset>
141        <legend>{'User access details'|@translate}</legend><!-- {$Whois_Smarty}/report.tpl -->
142<div id="reloadable">
143{include file="`$Whois_Smarty`/report.tpl"}
144</div>
145</fieldset>
146{else}
147{'No data available'|@translate}
148{/if}
149
150{html_head}
151{literal}
152<script type="text/javascript">// <![CDATA[
153jQuery(document).ready(function () { 
154  jQuery("a.load")
155  .click(function() {
156  jQuery("#reloadable").load(this.href);
157    return false;
158  });
159});
160// ]]>
161</script>
162{/literal}
163{/html_head}
164
165{/if}
166</form>
Note: See TracBrowser for help on using the repository browser.