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:
27
routeSQL.php
27
routeSQL.php
@@ -303,7 +303,7 @@ class routeSQL
|
|||||||
// Internal CSS
|
// Internal CSS
|
||||||
if ($this->enableInternalCSS === true)
|
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 { width:95%; margin-left:auto; margin-right:auto; }\n";
|
||||||
$content .= ".routeSQL a { text-decoration:none; }\n";
|
$content .= ".routeSQL a { text-decoration:none; }\n";
|
||||||
$content .= ".routeSQL .topBar { display: block; overflow: auto; }\n";
|
$content .= ".routeSQL .topBar { display: block; overflow: auto; }\n";
|
||||||
@@ -332,20 +332,24 @@ class routeSQL
|
|||||||
$content .= "<div class='routeSQL'>\n";
|
$content .= "<div class='routeSQL'>\n";
|
||||||
$content .= $this->showflash ();
|
$content .= $this->showflash ();
|
||||||
$content .= " <div class='topBar'>\n";
|
$content .= " <div class='topBar'>\n";
|
||||||
|
$content .= " <div class='topleft'>\n";
|
||||||
$content .= $this->externalActions ();
|
$content .= $this->externalActions ();
|
||||||
$content .= $this->listNumberDisplayedEntries ($num);
|
$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->searchArea ($search);
|
||||||
$content .= $this->informationsArea ($count, $page, $num, $search);
|
$content .= " </div>\n";
|
||||||
$content .= " </div>\n"; // End of topBar
|
$content .= " </div>\n"; // End of topBar
|
||||||
$content .= " <table>\n";
|
$content .= " <table>\n";
|
||||||
$content .= " <thead>\n";
|
$content .= " <thead>\n";
|
||||||
|
$content .= " <tr>\n";
|
||||||
if ($this->displayActions && $this->actionsAtEnd === false)
|
if ($this->displayActions && $this->actionsAtEnd === false)
|
||||||
$content .= " <th>".dgettext("domframework","Actions")."</th>\n";
|
$content .= " <th>".dgettext("domframework","Actions")."</th>\n";
|
||||||
foreach ($titles as $title)
|
foreach ($titles as $title)
|
||||||
$content .= " <th>".htmlentities ($title)."</th>\n";
|
$content .= " <th>".htmlentities ($title)."</th>\n";
|
||||||
if ($this->displayActions && $this->actionsAtEnd !== false)
|
if ($this->displayActions && $this->actionsAtEnd !== false)
|
||||||
$content .= " <th>".dgettext("domframework","Actions")."</th>\n";
|
$content .= " <th>".dgettext("domframework","Actions")."</th>\n";
|
||||||
|
$content .= " </tr>\n";
|
||||||
$content .= " </thead>\n";
|
$content .= " </thead>\n";
|
||||||
$content .= " <tbody>\n";
|
$content .= " <tbody>\n";
|
||||||
if ($count === 0)
|
if ($count === 0)
|
||||||
@@ -389,7 +393,7 @@ class routeSQL
|
|||||||
$content .= " onclick=\"return confirm('".
|
$content .= " onclick=\"return confirm('".
|
||||||
dgettext("domframework",
|
dgettext("domframework",
|
||||||
"Are you sure to delete this entry?")."')\"";
|
"Are you sure to delete this entry?")."')\"";
|
||||||
$content .= "class='delete'>".$this->textDelete."</a>";
|
$content .= " class='delete'>".$this->textDelete."</a>";
|
||||||
$content .= "</td>";
|
$content .= "</td>";
|
||||||
}
|
}
|
||||||
if ($this->actionsAtEnd === false)
|
if ($this->actionsAtEnd === false)
|
||||||
@@ -404,11 +408,12 @@ class routeSQL
|
|||||||
$content .= " </tbody>\n";
|
$content .= " </tbody>\n";
|
||||||
$content .= " </table>\n";
|
$content .= " </table>\n";
|
||||||
$content .= " <div class='bottomBar'>\n";
|
$content .= " <div class='bottomBar'>\n";
|
||||||
$content .= $this->externalActions ();
|
$content .= " <div class='bottomleft'>\n";
|
||||||
$content .= $this->listNumberDisplayedEntries ($num);
|
|
||||||
$content .= $this->paginator($count, $page, $num, $search);
|
|
||||||
$content .= $this->searchArea ($search);
|
|
||||||
$content .= $this->informationsArea ($count, $page, $num, $search);
|
$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"; // End of bottomBar
|
||||||
$content .= "</div>\n";
|
$content .= "</div>\n";
|
||||||
echo $content;
|
echo $content;
|
||||||
|
|||||||
Reference in New Issue
Block a user