[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> 3 {literal} 4 <!-- 5 function checkAll() 6 { 7 8 if ( document.trashaction.selectall.value == "Select all" ) 9 10 { 11 12 document.trashaction.selectall.value = "Deselect all"; 13 14 with (document.trashaction) 15 { 16 for (var i=0; i < elements.length; i++) 17 { 18 if (elements[i].type == 'checkbox' && ( elements[i].name == 'SessionKeyArray[]' || elements[i].name == 'UserIDArray[]' ) ) 19 elements[i].checked = true; 20 } 21 } 22 } 23 else 24 { 25 26 document.trashaction.selectall.value = "Select all"; 27 28 with (document.trashaction) 29 { 30 for (var i=0; i < elements.length; i++) 31 { 32 if (elements[i].type == 'checkbox' && ( elements[i].name == 'SessionKeyArray[]' || elements[i].name == 'UserIDArray[]' ) ) 33 elements[i].checked = false; 34 } 35 } 36 } 37 } 38 39 //--> 40 {/literal} 41 </SCRIPT> 42 <form name="trashaction" method="post" action={concat( '/setup/session/', cond( $user_id, concat( $user_id, '/' ), '' ), cond( $view_parameters.offset|gt( 0 ), concat( '(offset)/', $view_parameters.offset ), '' ) )|ezurl}> 43 <h1>{"Session admin"|i18n( "design/standard/setup/session" )}</h1> 44 45 {section show=$sessions_removed} 46 <div class="feedback"> 47 {"The sessions were successfully removed."|i18n( "design/standard/setup/session" )} 48 </div> 49 {/section} 50 51 <div class="objectheader"> 52 <h2>{"Sessions"|i18n( "design/standard/setup/session" )}</h2> 53 </div> 54 <div class="object"> 55 <p>{"Total number of sessions"|i18n( "design/standard/setup/session" )}: {$sessions_active}<br/> 56 {let logged_in_count=fetch( user, logged_in_count ) 57 anonymous_count=fetch( user, anonymous_count )} 58 {'There are %logged_in_count registered and %anonymous_count anonymous users online.'|i18n( 'design/standard/setup/session',, 59 hash( '%logged_in_count', $logged_in_count, '%anonymous_count', $anonymous_count ) )} 60 {/let} 61 </p> 62 <p>{"Use the buttons below to delete the session entries that are present in the database."|i18n( "design/standard/setup/session" )}<br/> 63 {"WARNING! When removing sessions, users that are logged in will be thrown out from the system."|i18n( "design/standard/setup/session" )}</p> 64 65 <div class="buttonblock"> 66 <input type="submit" name="RemoveAllSessionsButton" value="{"Remove all sessions"|i18n( "design/standard/setup/session" )}" /> 67 <input type="submit" name="RemoveTimedOutSessionsButton" value="{"Remove timed out / old sessions"|i18n( "design/standard/setup/session" )}" /> 68 </div> 69 {section show=$user_id} 70 {let session_user=fetch( content,object, hash( 'object_id', $user_id ) )} 71 <p>{'Displaying sessions for %username'|i18n( 'design/standard/setup/session',, hash( '%username', $session_user.name ) )}</p> 72 {/let} 73 <div class="buttonblock"> 74 <input type="submit" name="ShowAllUsersButton" value="{"Show from all users"|i18n( "design/standard/setup/session" )}" /> 75 </div> 76 {section-else} 77 <label>{'Filter sessions'|i18n( 'design/standard/setup/session' )}:</label><br/> 78 <select class="combobox" name="FilterType"> 79 <option value="everyone"{cond( eq( $filter_type, 'everyone' ), ' selected="selected"', '' )}>{"Everyone"|i18n( "design/standard/setup/session" )}</option> 80 <option value="registered"{cond( eq( $filter_type, 'registered' ), ' selected="selected"', '' )}>{"Registered users"|i18n( "design/standard/setup/session" )}</option> 81 <option value="anonymous"{cond( eq( $filter_type, 'anonymous' ), ' selected="selected"', '' )}>{"Anonymous users"|i18n( "design/standard/setup/session" )}</option> 82 </select> 83 <input type="hidden" name="InactiveUsersCheckExists" /> 84 <input class="checkbox" type="checkbox" name="InactiveUsersCheck" id="InactiveUsersCheck" {cond( eq( $expiration_filter_type, 'all' ), ' checked="checked"', '' )} value="active" /> <label for="InactiveUsersCheck">{'Include inactive users'|i18n( 'design/standard/setup/session' )}</label><br/> 85 86 <div class="buttonblock"> 87 <input class="defaultbutton" type="submit" name="ChangeFilterButton" value="{"Update list"|i18n( "design/standard/setup/session" )}" /> 88 </div> 89 {/section} 90 91 </div> 92 93 <table class="list" width="100%" cellspacing="0" cellpadding="0" border="0"> 94 <th> 95 96 </th> 97 <th> 98 <a class="topline" href={concat( '/setup/session/(offset)/', $view_parameters.offset, '/(sortby)/login' )|ezurl}>{"Login"|i18n( "design/standard/setup/session" )}</a> 99 </th> 100 {section show=$user_id|not} 101 <th> 102 {"Count"|i18n( "design/standard/setup/session" )} 103 </th> 104 {/section} 105 <th> 106 <a class="topline" href={concat( '/setup/session/(offset)/', $view_parameters.offset, '/(sortby)/email' )|ezurl}>{"Email"|i18n( "design/standard/setup/session" )}</a> 107 </th> 108 <th> 109 <a class="topline" href={concat( '/setup/session/(offset)/', $view_parameters.offset, '/(sortby)/name' )|ezurl}>{"Full name"|i18n( "design/standard/setup/session" )}</a> 110 </th> 111 <th> 112 <a class="topline" href={concat( '/setup/session/(offset)/', $view_parameters.offset, '/(sortby)/idle' )|ezurl}>{"Idle time"|i18n( "design/standard/setup/session" )}</a> 113 </th> 114 <th> 115 <a class="topline" href={concat( '/setup/session/(offset)/', $view_parameters.offset, '/(sortby)/idle' )|ezurl}>{"Idle since"|i18n( "design/standard/setup/session" )}</a> 116 </th> 117 118 {section var=session loop=$sessions_list sequence=array('bgdark', 'bglight')} 119 <tr valign="top" class="{$session.sequence}"> 120 {let session_user=fetch( content,object, hash( 'object_id', $session.user_id ) )} 121 <td width="1%"> 122 {section show=$user_id} 123 <input type="checkbox" name="SessionKeyArray[]" value="{$session.session_key|wash}" /> 124 {section-else} 125 <input type="checkbox" name="UserIDArray[]" value="{$session.user_id}" /> 126 {/section} 127 </td> 128 <td width="15%"> 129 <a href={$session_user.main_node.url_alias|ezurl}>{$session.login}</a> 130 </td> 131 {section show=$user_id|not} 132 <td width="1%"> 133 <a href={concat( 'setup/session/', $session.user_id )|ezurl}>{$session.count}</a> 134 </td> 135 {/section} 136 <td width="15%"> 137 <a href="mailto:{$session.email|wash}">{$session.email|wash}</a> 138 </td> 139 <td width="30%"> 140 {$session_user.name|wash} 141 </td> 142 143 <td width="10%"> 144 {$session.idle.hour}:{$session.idle.minute}:{$session.idle.second} 145 </td> 146 <td width="19%"> 147 {section show=or($session.idle.minute|lt(0), $session.idle.hour|lt(0))} 148 {"Time skew detected"|i18n( "design/standard/setup/session")} 149 {section-else} 150 {$session.idle_time|l10n( shortdatetime )} 151 {/section} 152 </td> 153 154 {/let} 155 </tr> 156 {/section} 157 </table> 158 <table> 159 <tr> 160 <td> 161 <input type="submit" name="RemoveSelectedSessionsButton" value="{"Remove"|i18n( "design/standard/setup/session")}" /> 162 </td> 163 <td colspan="5"> 164 <input name="selectall" onclick=checkAll() type="button" value="Select all"> 165 </td> 166 </tr> 167 </table> 168 169 {include name=navigator 170 uri='design:navigator/google.tpl' 171 page_uri=concat( '/setup/session', cond( $user_id, concat( '/', $user_id ), '' ) ) 172 item_count=$sessions_count 173 view_parameters=$view_parameters 174 item_limit=$page_limit} 175 176 </form>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |