{* $Id$ *} {$headerlib->add_jsfile("lib/jquery_tiki/tiki-admin_actionlog.js")} {title help="Action log"}{tr}Action Log{/tr}{/title} {tabset name="admin_actionlog"} {tab name="{tr}Report{/tr}"}

{tr}Report{/tr}

{* no ticket needed as this form doesn't change the database *}

{tr}Filter{/tr}

{if empty($nbViewedConfs)} {button _text="{tr}Please select some actions to be reported.{/tr}" href="#" _onclick="showTab(2); return true;"} {else}
{tr}Date{/tr}
{html_select_date time=$startDate prefix="startDate_" start_year="-10" field_order=$prefs.display_field_order} {html_select_time use_24_hours=true time=$startDate}
{html_select_date time=$endDate prefix="endDate_" start_year="-10" field_order=$prefs.display_field_order} {html_select_time use_24_hours=true time=$endDate prefix="end_"}
{tr}Users and Groups{/tr} {if $tiki_p_list_users eq 'y'}
{else} {/if} {if $groups|@count >= 1}
{/if}
{tr}Category{/tr}
{tr}Misc.{/tr}
{if $prefs.feature_contribution eq 'y'}
{if $prefs.feature_jpgraph eq 'y'}
{tr}Group Bar Plot:{/tr} {tr}Accumulated Bar Plot:{/tr}
{tr}Background color:{/tr} {tr}Legend background color:{/tr}
{*tr}Save graphs to image gallery:{/tr*} {* TODO ImageGalleryRemoval23.x *} {/if}
{/if}
{if $tiki_p_admin eq 'y'} {/if} {/if}
{if isset($actionlogs)}

{tr}List{/tr}

{if $selectedUsers}  —  {tr}User:{/tr} {foreach key=ix item=auser from=$users} {if $selectedUsers[$ix] eq 'y'} {$auser|username}{/if} {/foreach} {/if} {if $selectedGroups}  —  {tr}Group:{/tr} {foreach key=ix item=group from=$groups} {if $selectedGroups[$group] eq 'y'} {$group|escape}{/if} {/foreach} {/if} {if $reportCategory}  — {tr}Category:{/tr} {$reportCateg} {/if} {if $maxRecords gt 0} {if $cant gt $maxRecords} {self_link max=-1}{tr}All{/tr}{/self_link} {/if} {else} {self_link max=$prefs.maxRecords}{tr}Pagination{/tr}{/self_link} {/if} {pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links} {tr}Records:{/tr} {$cant} {if !empty($actionlogs)} {tr}See Statistics{/tr}
{/if}
{ticket} {query _type='form_input'}
{* table-responsive class cuts off css drop-down menus *} {if $prefs.feature_banning eq 'y'} {/if} {if !$reportCateg and $showCateg eq 'y'} {/if} {if $prefs.feature_contribution eq 'y'} {/if} {if $prefs.feature_contributor_wiki eq 'y'} {/if} {if $tiki_p_admin eq 'y' and ($prefs.feature_contribution eq 'y' or $prefs.feature_categories eq 'y')} {/if} {foreach from=$actionlogs item=actionlog} {if $prefs.feature_banning eq 'y'} {/if} {if !$reportCateg and $showCateg eq 'y'} {/if} {if $prefs.feature_contribution eq 'y'} {if $prefs.feature_contributor_wiki eq 'y'} {/if} {/if} {if $tiki_p_admin eq 'y' and ($prefs.feature_contribution eq 'y' or $prefs.feature_categories eq 'y')} {/if} {/foreach}
{select_all checkbox_names='checked[]'} {assign var=numbercol value=$numbercol+1} {tr}User{/tr} {tr}Date{/tr} {tr}Action{/tr} {tr}Type{/tr} {tr}Object{/tr} {tr}Category{/tr} {tr}IP{/tr} +{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if} -{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if} {tr}contribution{/tr}{tr}contributor{/tr}
{if $actionlog.user}{$actionlog.user|username}{else}{tr}Anonymous{/tr}{/if} {$actionlog.lastModif|tiki_short_datetime} {tr}{$actionlog.action|escape}{/tr} {if $actionlog.action eq 'Categorized' || $actionlog.action eq 'Uncategorized'}/{$actionlog.comment|replace:"categId=":""}{/if} {tr}{$actionlog.objectType}{/tr} {if $actionlog.link} {$actionlog.object|escape} {else} {$actionlog.object|escape} {/if} {assign var=ic value=$actionlog.categId}{$categNames[$ic]|escape}{tr}{$actionlog.ip}{/tr} {if $actionlog.add or $actionlog.add eq '0'}{$actionlog.add}{else} {/if} {if $actionlog.del or $actionlog.del eq '0'}{$actionlog.del}{else} {/if} {foreach name=contribution from=$actionlog.contributions item=contribution} {if !$smarty.foreach.contribution.first}, {/if} {$contribution.name|escape} {/foreach} {foreach name=contributor from=$actionlog.contributors item=contributor} {if !$smarty.foreach.contributor.first}, {/if} {$contributor.login} {/foreach} {if $actionlog.actionId} {actions} {strip} {icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {icon name='delete' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/strip} {/actions} {/if}
{pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links} {if $prefs.feature_banning eq 'y'}
{/if}
{/if} {* close if isset actionlogs *} {if $action}

{tr}Edit Action{/tr}

{ticket} {if $selectedUsers}{/if} {if $selectedGroups}{/if} {if $startDate}{/if} {if $endDate}{/if} {$action.action} / {$action.objectType} / {$action.object}
{if $prefs.feature_contribution eq 'y'} {include file='contribution.tpl' section=$action.objectType} {/if} {if $prefs.feature_categories eq 'y'} {include file='categorize.tpl'} {/if}
 
{/if} {if isset($userActions)}

{tr}Statistics{/tr} {if $selectedUsers}  —  {tr}User:{/tr} {foreach key=ix item=auser from=$users} {if $selectedUsers[$ix] eq 'y'} {$auser|username} {/if} {/foreach} {/if} {if $selectedGroups}  —  {tr}Group:{/tr} {foreach key=ix item=group from=$groups} {if $selectedGroups[$group] eq 'y'} {$group|escape} {/if} {/foreach} {/if} {if $reportCategory}  —  {tr}Category:{/tr} {$reportCateg} {/if}

{tr}Volumes are equally distributed on each contributors/author{/tr} {if $showLogin eq 'y' and $logTimes|@count ne 0}
{if $selectedUsers|@count gt 0} {/if} {foreach key=auser item=time from=$logTimes} {if $selectedUsers|@count gt 0} {/if} {/foreach}
{tr}Log in{/tr}
{tr}User{/tr}{tr}connection time{/tr} {tr}connection seconds{/tr} {tr}Log in{/tr}
{$auser|username} {$time.days} {tr}days{/tr} {$time.hours} {tr}hours{/tr} {$time.mins} {tr}mns{/tr} {$time.time} {$time.nbLogins}
{/if} {if $showCateg eq 'y' and $volCateg|@count ne 0 and $tiki_p_admin eq 'y'}
{foreach item=type from=$typeVol} {/foreach} {foreach key=categId item=vol from=$volCateg} {foreach item=type from=$typeVol} {/foreach} {/foreach}
{tr}Volume per category{/tr}
{tr}Category{/tr}{$type} (+{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if}) {$type} (-{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if}) {$type} ({if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if})
{$vol.category}{if $vol[$type].add}{$vol[$type].add}{else}0{/if} {if $vol[$type].del}{$vol[$type].del}{else}0{/if} {if $vol[$type].dif}{$vol[$type].dif}{else}0{/if}
{/if} {if $showCateg eq 'y' and $volUserCateg|@count ne 0}
{foreach item=type from=$typeVol} {/foreach} {foreach key=categId item=vol from=$volUserCateg} {foreach item=type from=$typeVol} {/foreach} {/foreach}
{tr}Volume per category and per user{/tr}
{tr}Category{/tr} {tr}User{/tr}{$type} (+{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if}) {$type} (-{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if}) {$type} ({if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if})
{$vol.category} {$vol.user}{if $vol[$type].add}{$vol[$type].add}{else}0{/if} {if $vol[$type].del}{$vol[$type].del}{else}0{/if} {if $vol[$type].dif}{$vol[$type].dif}{else}0{/if}
{/if} {if $userActions|@count ne 0}
{foreach key=title item=nb from=$userActions.0} {if $title ne 'user'} {/if} {/foreach} {foreach item=stat from=$userActions name=userActions} {foreach key=a item=nb from=$stat} {if $a ne 'user'} {/if} {/foreach} {/foreach}
{tr}Number of actions per user{/tr}
{tr}User{/tr}{$title|replace:"/":" "|escape}
{$stat.user|username}{$nb}
{tr}Total number of users:{/tr} {$smarty.foreach.userActions.total} {/if} {if $objectActions|@count ne 0}
{foreach key=title item=nb from=$objectActions[0]} {if $title ne 'object' and $title ne 'link'} {/if} {/foreach} {foreach item=stat from=$objectActions name=objectActions} {foreach key=a item=nb from=$stat} {if $a ne 'object' and $a ne 'link'} {/if} {/foreach} {/foreach}
{tr}Number of actions per object{/tr}
{tr}Object{/tr}{$title|replace:"/":" "|escape}
{if $stat.link} {$stat.object|escape} {else} {$stat.object|escape} {/if} {$nb}
{tr}Total number of objects:{/tr} {$smarty.foreach.objectActions.total} {/if} {if $showbigbluebutton eq 'y' and $stay_in_big_Times|@count ne 0}
{foreach key=user item=room from=$stay_in_big_Times} {foreach key=room_name item=values from=$room} {foreach key=inc item=value from=$values} {/foreach} {/foreach} {/foreach}
{tr}Bigbluebutton{/tr}
{tr}User{/tr} {tr}Object{/tr} {tr}Time in bigbluebutton (in minutes){/tr}
{$user} {$room_name} {$value|default:'0'}
{if $tiki_p_admin eq 'y'}
{/if}
{/if} {if $showCateg eq 'y' and $tiki_p_admin eq 'y'}
{foreach key=title item=nb from=$statCateg[0]} {if $title ne 'category'} {/if} {/foreach} {foreach key=categId item=stat from=$statCateg} {foreach key=a item=nb from=$statCateg[$categId]} {if $a ne 'category'} {/if} {/foreach} {/foreach}
{tr}Number of actions per category{/tr}
{tr}Category{/tr}{$title|replace:"/":" "|escape}
{$stat.category|escape}{$nb}
{/if} {if $showCateg eq 'y' && $statUserCateg|@count ne 0}
{foreach key=title item=nb from=$userActions[0]} {if $title ne 'user'} {/if} {/foreach} {foreach key=categUser item=stat from=$statUserCateg} {foreach key=a item=nb from=$stat} {if $a ne 'category' and $a ne 'user'} {/if} {/foreach} {/foreach}
{tr}Number of actions per category and per user{/tr}
{tr}Category{/tr} {tr}User{/tr}{$title|replace:"/":" "}
{$stat.category|escape} {$stat.user|username}{$nb}
{/if} {if $prefs.feature_contribution eq 'y' && isset($groupContributions) && $groupContributions|@count >= 1}
{foreach from=$groupContributions key=group item=contributions} {foreach from=$contributions key=contribution item=stat} {/foreach} {/foreach}
{if $selectedUsers} {tr}Volume per the users' group and per contribution{/tr} {else} {tr}Volume per group and per contribution{/tr} {/if}
{tr}Group{/tr} {tr}Contribution{/tr} +{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if} -{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if}
{$group|escape} {$contribution|escape} {$stat.add} {$stat.del}
{/if} {if $prefs.feature_contribution eq 'y' && isset($userContributions) && $userContributions|@count >= 1}
{foreach from=$userContributions key=user item=contributions} {foreach from=$contributions key=contribution item=stat} {/foreach} {/foreach}
{tr}Volume per user and per contribution{/tr}
{tr}User{/tr} {tr}Contribution{/tr} +{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if} -{if $unit eq 'kb'}{tr}kb{/tr}{else}{tr}bytes{/tr}{/if}
{$user|username} {$stat.name|escape} {$stat.stat.add} {$stat.stat.del}
{/if} {if $prefs.feature_contribution eq 'y' && isset($contributionStat)}
{section name=foo start=0 loop=$contributionNbCols} {/section} {foreach from=$contributionStat key=contributionId item=contribution} {foreach from=$contribution.stat item=stat} {/foreach} {/foreach}
{if $selectedUsers}{tr}Volume per users' contribution and time{/tr}{else}{tr}Volume per contribution and time{/tr}{/if}
{tr}Contribution{/tr} {if $contribTime eq 'd'}{tr}Days{/tr}{else}{tr}Weeks{/tr}{/if}
{$smarty.section.foo.index+1}
{$contribution.name|escape} {if !empty($stat.add)}{$stat.add}{/if}
{if !empty($stat.del)}{$stat.del}{/if}
{if !empty($stat.del) || !empty($stat.add)}{math equation=x-y x=$stat.add y=$stat.del}{/if}
{/if} {/if} {* close if isset userActions *} {/tab} {* -------------------------------------------------- tab with setting --- *} {tab name="{tr}Settings{/tr}"}

{tr}Settings{/tr}

{remarksbox type="tip" title="{tr}How{/tr}"} {tr}You need to check out the recorded box for each action type we may be interested to have some report later. To see a report of some action types, select the reported checkboxes of these action types, goto the Report tab and select additional filters. The report will only contains the actions that occurred since the action type has been set to recorded.{/tr} {tr}Wiki page actions except viewed will always be recorded but can be not reported.{/tr} {/remarksbox}
{ticket} {if !empty($sort_mode)}{/if}
{tr}Filter{/tr}

{*
*}
{if $tiki_p_admin eq 'y'} {/if} {if $tiki_p_admin eq 'y'} {/if} {foreach from=$action_log_conf_selected item=actionlog} {if $tiki_p_admin eq 'y'} {/if} {if $tiki_p_admin eq 'y' or $actionlog.status eq 'y' or $actionlog.status eq 'v'} {/if} {/foreach}
{tr}Recorded{/tr}{tr}Reported{/tr} {tr}Action{/tr} {tr}Type{/tr}
{tr}All{/tr} {tr}All{/tr}
{tr}{$actionlog.action}{/tr} {tr}{$actionlog.objectType}{/tr}
{*
*}
{/tab} {/tabset}