#.'<div class="btn-group-vertical mx-auto">'
.'<div class="db buttons btn-group form-group mx-auto d-table bottom">'
.( empty($_SERVER['HTTP_REFERER']) ? '' : '<input type="button" class="btn btn-danger" onclick="document.location=document.referrer" value="Cancel" />')
- .'<input class="btn btn-secondary" type="reset" />'
+ .'<input class="btn btn-warning" type="reset" />'
.'<input class="btn btn-primary" type="submit" />'
.'</div>'.NB_EOL
#.'</div>'.NB_EOL
#$r .= '<input id="skill" type="range" min="1" max="100" value="0" />';
#$r .= '<input id="startdate" name="startdate" min="2012-01-01" max="2013-01-01" type="date" />';
+ $options = (bool)($this->p('table-menu-options')!=='0');
//
// Options
//
- $options = (bool)($this->p('table-menu-options')!=='0');
if ($options) {
$option_html = '';
}
- //
- // Hidden
- //
- if ($this->show_hidden_params) $r .= ''#.print_r(self::$params,true)
- .self::form_hidden($form_hidden_ignore)
- // Embed for no html format (rent)
-# NB 08.06.18 .'<input type="'.($this->p('debug') ? 'text' : 'hidden').'" name="download" value="0"/>';
- ;
-
//
// Criterias
//
;
}
-
if (!$options) $r .= $buttons;
$r .= '</div>'; # < Criterias
- ///
- // Bye
- ///
+ //
+ // Hidden
+ //
+ if ($this->show_hidden_params) $r .= ''#.print_r(self::$params,true)
+ .self::form_hidden($form_hidden_ignore)
+ // Embed for no html format (rent)
+# NB 08.06.18 .'<input type="'.($this->p('debug') ? 'text' : 'hidden').'" name="download" value="0"/>';
+ ;
+
+ //
+ // End menu
+ //
$r .= '</form>'.NB_EOL;
return $r;
}
$bottom = [];
- if ($this->http->user()) {
- $bottom[] = '<a href="' . $this->base . '/logout"'
- .(
- ( !empty($this->db->conf['ldap']) and $this->http->user() )
- ? ' style="background:url(\'' . $this->base . '/ldap/me.jpg?w=20\') right no-repeat;padding-right:22px"'
- : ''
- )
- .'>Logout: '
- .$this->http->user()
- .' (can: '.$this->perm2h().')'
- .'</a>';
- }
+ $this->page_bottom();
+ $this->page->end();
+ }
- if ($this->perm >= self::ADMIN and !empty($this->db->pdo)) {
- $r = [
- '/(^|;)password=[^;]*/' => '',
- '/;/' => ' ',
- ];
- $bottom[] = 'Database: '.preg_replace(array_keys($r),$r,$this->db->pdo);
- }
+ exit;
+ }
- if ($bottom and $this->is_html) echo $this->page->tag('div class="block bottom card"',join('<br />'.NB_EOL,$bottom));
+ private function page_bottom() {
+ if ($this->http->user()) {
+ $bottom[] = '<a href="' . $this->base . '/logout"'
+ .(
+ ( !empty($this->db->conf['ldap']) and $this->http->user() )
+ ? ' style="background:url(\'' . $this->base . '/ldap/me.jpg?w=20\') right no-repeat;padding-right:22px"'
+ : ''
+ )
+ .'>Logout: '
+ .$this->http->user()
+ .' (can: '.$this->perm2h().')'
+ .'</a>';
+ }
- $this->page->end();
+
+ if ($this->perm >= self::ADMIN and !empty($this->db->pdo)) {
+ $r = [
+ '/(^|;)password=[^;]*/' => '',
+ '/;/' => ' ',
+ ];
+ $bottom[] = 'Database: '.preg_replace(array_keys($r),$r,$this->db->pdo);
}
- exit;
+ if ($bottom and $this->is_html) echo $this->page->tag('div class="block bottom border rounded p-2 d-table"',join('<br />'.NB_EOL,$bottom));
}
public function user() {
$r = $this->ar_unshift($r,'view',''
.'<form action="'.$this->table->base.'/vi'.'" method="post" class="vi">'
- .'<a class="button select vi btn btn-primary" href="'.$this->table->base.'/vi'.'" onclick="parentNode.submit();return false;">View</a>'
+ .'<a class="button select vi btn btn-sm btn-primary" href="'.$this->table->base.'/vi'.'" onclick="parentNode.submit();return false;">View</a>'
.$hidden
.'</form>'
);
$rm = $this->uri_add_referer($this->table->base.'/rm');
$r['delete'] = ''
.'<form action="'.$rm.'" method="post" class="rm">'
- .'<a class="button rm btn btn-danger" href="'.$rm.'" onclick="parentNode.submit();return false;">Delete</a>'
+ .'<a class="button rm btn btn-sm btn-danger" href="'.$rm.'" onclick="parentNode.submit();return false;">Delete</a>'
.$hidden
.'</form>'
;