static function rememberLogin($do) { if (Usr()->is()) { $E = D()->client_usr->Entry(array('usr_id' => Usr(), 'client_id' => Client())); $E->save_login = (int) $do; } }
<?php namespace qg; ?> <div id="qgCmsUserProfile"> <h2><?php echo L('Benutzer wechseln'); ?> </h2> <?php foreach (Client()->Usrs() as $ClientUsr) { ?> <?php if ($ClientUsr->usr_id == Usr()->id) { continue; } ?> <form method="post"> <table> <tr> <td style="width:20px" title="<?php echo L('eingeloggt bleiben'); ?> "> <input name="save_login" type=checkbox value=1 <?php echo $ClientUsr->save_login ? 'checked' : ''; ?> > <td style="width:40%">