routeSQL : CSS add rounded corners to navigation and complete button clickable for Action

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2063 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-03-25 15:51:28 +00:00
parent aa83ac633e
commit df55fa2503

View File

@@ -167,13 +167,19 @@ class routeSQL
$prePage = false;
$postPage = false;
$content = " <div class='paginatorArea'>\n";
$content .= "<ul class='paginatorArea'>\n";
$displayedNumbers = 0;
for ($i = 1 ; $i < (1+$nbentries/($num)) ; $i++)
{
$content .= "<li";
if ($page == $i)
$content .= " class='selected'";
$content .= ">";
if ($i < ($page - $maxClickPaginator/2))
{
if ($prePage === false)
$content .= " ...\n";
$content .= "</li>\n";
$prePage = true;
continue;
}
@@ -181,6 +187,7 @@ class routeSQL
{
if ($postPage === false)
$content .= " ...\n";
$content .= "</li>\n";
$postPage = true;
continue;
}
@@ -190,17 +197,21 @@ class routeSQL
if ($page == $i)
$content .= " class='selected'";
$content .= ">$i</a>\n";
$content .= "</li>\n";
}
if ($displayedNumbers === 0)
{
$content .= "<li class='selected'>";
$i = 1;
$content .= " <a href='".$route->baseURL().$this->url_prefix.
"?page=$i&amp;num=$num&amp;search=".urlencode($search)."'";
if ($page == $i)
$content .= " class='selected'";
$content .= ">$i</a>\n";
$content .= "</li>\n";
}
$content .= " </ul>\n";
$content .= " </div>\n";
return $content;
}
@@ -759,15 +770,22 @@ class routeSQL
$content .= ".routeSQL .bottomBar { display: block; overflow: auto; }\n";
$content .= ".routeSQL .bottomBar .bottomleft { display: inline; float:left; }\n";
$content .= ".routeSQL .bottomBar .bottomright { display: inline; float:right; }\n";
$content .= ".routeSQL .actionExtern { border:1px solid #ddd; border-radius:5px; padding:10px; margin:3px; float:left; }\n";
$content .= ".routeSQL .actionExtern { border:1px solid #ddd; border-radius:5px; padding:0px; margin:3px; float:left; }\n";
$content .= ".routeSQL .actionExtern a { display: block; padding : 9px; }\n";
$content .= ".routeSQL .numberEntryByDisplayArea { border:1px solid #ddd; border-radius:5px; padding:10px; margin:3px; float:left; }\n";
$content .= ".routeSQL .searchArea { border:1px solid #ddd; border-radius:5px; padding:10px; margin:3px; float:left; }\n";
$content .= ".routeSQL .searchArea form { margin:-1px; }\n";
$content .= ".routeSQL .numberEntryByDisplayArea form { margin:-3px; }\n";
$content .= ".routeSQL .informationsArea { border:1px solid #ddd; border-radius:5px; padding:10px; margin:3px; float:left; }\n";
$content .= ".routeSQL .paginatorArea { border:1px solid #ddd; border-radius:5px; padding:10px; margin:3px; float:left; }\n";
$content .= ".routeSQL .paginatorArea a { border:1px solid grey; border-radius:5px; padding:3px; }\n";
$content .= ".routeSQL .paginatorArea .selected { background-color:#04d; color:white;font-weight:bold; }\n";
$content .= ".routeSQL div.paginatorArea { float:left; }\n";
$content .= ".routeSQL div.paginatorArea>ul>li>a { display: block; }\n";
$content .= ".routeSQL ul.paginatorArea { list-style-type:none; margin: 0px; padding:0px; border:1px solid #ddd; border-radius:5px; }\n";
$content .= ".routeSQL ul.paginatorArea li.selected { background-color: #04d; padding:0px;}\n";
$content .= ".routeSQL ul.paginatorArea li.selected:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px;}\n";
$content .= ".routeSQL ul.paginatorArea li.selected:last-child { border-top-right-radius: 5px; border-bottom-right-radius: 5px;}\n";
$content .= ".routeSQL ul.paginatorArea li.selected a { padding : 10px;color:white; font-weight:bold; }\n";
$content .= ".routeSQL ul.paginatorArea li a { padding : 10px }\n";
$content .= ".routeSQL ul.paginatorArea li { display: inline-block; }\n";
$content .= ".routeSQL table { width:100%;overflow:auto; border-collapse:collapse; }\n";
$content .= ".routeSQL table tr { border-top:1px solid #ccc;}\n";
$content .= ".routeSQL table th { border-bottom:3px solid #ccc; border-top:1px solid #fff; padding:9px 5px 9px 1px; }\n";