routeSQL : Add divs to allow 3 columns in top and bottom bars

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2012 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-03-11 21:16:58 +00:00
parent 03da60b64a
commit 23102f3cac

View File

@@ -303,7 +303,7 @@ class routeSQL
// Internal CSS
if ($this->enableInternalCSS === true)
{
$content .= "<style>\n";
$content .= "<style type='text/css' scoped='scoped'>\n";
$content .= ".routeSQL { width:95%; margin-left:auto; margin-right:auto; }\n";
$content .= ".routeSQL a { text-decoration:none; }\n";
$content .= ".routeSQL .topBar { display: block; overflow: auto; }\n";
@@ -332,20 +332,24 @@ class routeSQL
$content .= "<div class='routeSQL'>\n";
$content .= $this->showflash ();
$content .= " <div class='topBar'>\n";
$content .= " <div class='topleft'>\n";
$content .= $this->externalActions ();
$content .= $this->listNumberDisplayedEntries ($num);
$content .= $this->paginator($count, $page, $num, $search);
$content .= " </div>\n";
$content .= " <div class='topright'>\n";
$content .= $this->searchArea ($search);
$content .= $this->informationsArea ($count, $page, $num, $search);
$content .= " </div>\n";
$content .= " </div>\n"; // End of topBar
$content .= " <table>\n";
$content .= " <thead>\n";
$content .= " <tr>\n";
if ($this->displayActions && $this->actionsAtEnd === false)
$content .= " <th>".dgettext("domframework","Actions")."</th>\n";
foreach ($titles as $title)
$content .= " <th>".htmlentities ($title)."</th>\n";
if ($this->displayActions && $this->actionsAtEnd !== false)
$content .= " <th>".dgettext("domframework","Actions")."</th>\n";
$content .= " </tr>\n";
$content .= " </thead>\n";
$content .= " <tbody>\n";
if ($count === 0)
@@ -404,11 +408,12 @@ class routeSQL
$content .= " </tbody>\n";
$content .= " </table>\n";
$content .= " <div class='bottomBar'>\n";
$content .= $this->externalActions ();
$content .= $this->listNumberDisplayedEntries ($num);
$content .= $this->paginator($count, $page, $num, $search);
$content .= $this->searchArea ($search);
$content .= " <div class='bottomleft'>\n";
$content .= $this->informationsArea ($count, $page, $num, $search);
$content .= " </div>\n";
$content .= " <div class='bottomright'>\n";
$content .= $this->paginator($count, $page, $num, $search);
$content .= " </div>\n";
$content .= " </div>\n"; // End of bottomBar
$content .= "</div>\n";
echo $content;