diff --git a/ieducar/intranet/include/clsListagem.inc.php b/ieducar/intranet/include/clsListagem.inc.php
index e4b6e45..2287347 100755
--- a/ieducar/intranet/include/clsListagem.inc.php
+++ b/ieducar/intranet/include/clsListagem.inc.php
@@ -29,6 +29,7 @@
*/
require_once 'include/clsCampos.inc.php';
+require_once 'include/localizacaoSistema.php';
if (class_exists('clsPmiajudaPagina')) {
require_once 'include/pmiajuda/clsPmiajudaPagina.inc.php';
@@ -252,27 +253,7 @@ class clsListagem extends clsCampos
'pos_atual', -1, TRUE);
return NULL;
- }
-
- function breadcrumbs($separator = ' » ', $home = 'Home') {
-
- $path = array_filter(explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));
- $base_url = ($_SERVER['HTTPS'] ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/';
- $breadcrumbs = array("$home");
-
- $last = end(array_keys($path));
-
- foreach ($path AS $x => $crumb) {
- $title = ucwords(str_replace(array('.php', '_'), Array('', ' '), $crumb));
- if ($x != $last){
- $breadcrumbs[] = '$title';
- }else{
- $breadcrumbs[] = $title;
- }
- }
-
- return implode($separator, $breadcrumbs);
-}
+ }
function RenderHTML()
{
@@ -324,8 +305,15 @@ class clsListagem extends clsCampos
$enderecoPagina = $_SERVER['PHP_SELF'];
//$barra = 'Localizacao: http://'.$server.$endereco.'
';
- $barra = 'Localizacao:'. $enderecoPagina .'
';
- $barra .= 'Filtros de busca';
+ //$barra = '
|
+ |
{$localizacao->montar()} | +|
{$barra} | diff --git a/ieducar/intranet/include/localizacaoSistema.php b/ieducar/intranet/include/localizacaoSistema.php new file mode 100644 index 0000000..f914584 --- /dev/null +++ b/ieducar/intranet/include/localizacaoSistema.php @@ -0,0 +1,74 @@ +protocolo = $this->getProtocoloHttp(); + $this->url = $this->getUrl(); + $this->localizacao = $this->url( $this->url ); + $this->montarLocalizacao(); + } + + public function entradaCaminhos( array $localizacao ) { + $this->localizacao = $localizacao; + $this->montarLocalizacao(); + } + + public function get() { + return $this->localizacao; + } + + public function getProtocoloHttp() { + if( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] === 'on' ) { + $protocolo = 'https://'; + } else { + $protocolo = 'http://'; + } + return $protocolo; + } + + public function getUrl() { + return $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; + } + + public function url( $url ) { + $fragments = array(); + $localizacao = array(); + $_url = preg_replace( array( "/[http]s?:\/\//", "/\/$/" ), array( "", "" ), $url ); + $fragments = explode( "/", $_url ); + + foreach( $fragments as $fragment ) { + $localizacao[$fragment] = $fragment; + } + + return $localizacao; + } + + private function montarLocalizacao() { + $href = ''; + $localizacao_count = sizeof( $this->localizacao ); + $i = 1; + + $this->html = ''; + } + + public function montar() { + echo $this->html; + } +} +?> \ No newline at end of file diff --git a/ieducar/intranet/styles/localizacaoSistema.css b/ieducar/intranet/styles/localizacaoSistema.css new file mode 100644 index 0000000..8b7f566 --- /dev/null +++ b/ieducar/intranet/styles/localizacaoSistema.css @@ -0,0 +1,70 @@ +#localizacao{ + overflow: hidden; + width: 100%; +} + +#localizacao li{ + float: left; + margin: 0 .5em 0 1em; +} + +#localizacao a{ + font-family: tahoma,verdana,sans-serif; + font-size: 12px; + font-style: normal; + font-variant: normal; + letter-spacing: 0pt; + line-height: normal; + background: #BECCD6; + padding: .7em 1em; + float: left; + text-decoration: none; + color: #ffffff; + text-shadow: 0 1px 0 rgba(255,255,255,.5); + position: relative; +} + +#localizacao a:hover{ + background: #184e7f; +} + +#localizacao a::before{ + content: ""; + position: absolute; + top: 50%; + margin-top: -1.5em; + border-width: 1.5em 0 1.5em 1em; + border-style: solid; + border-color: #BECCD6 #BECCD6 #BECCD6 transparent; + left: -1em; +} + +#localizacao a:hover::before{ + border-color: #184e7f #184e7f #184e7f transparent; +} + +#localizacao a::after{ + content: ""; + position: absolute; + top: 50%; + margin-top: -1.5em; + border-top: 1.5em solid transparent; + border-bottom: 1.5em solid transparent; + border-left: 1em solid #BECCD6; + right: -1em; +} + +#localizacao a:hover::after{ + border-left-color: #184e7f; +} + +#localizacao .current, +#localizacao .current:hover{ + font-weight: bold; + background: none; +} + +#localizacao .current::after, +#localizacao .current::before{ + content: normal; +} \ No newline at end of file diff --git a/ieducar/intranet/styles/novo.css b/ieducar/intranet/styles/novo.css index 70a3b35..ad1143e 100755 --- a/ieducar/intranet/styles/novo.css +++ b/ieducar/intranet/styles/novo.css @@ -639,3 +639,74 @@ opacity:1; width:19px; } +#localizacao{ + overflow: hidden; + width: 100%; +} + +#localizacao li{ + float: left; + margin: 0 .5em 0 1em; +} + +#localizacao a{ + font-family: tahoma,verdana,sans-serif; + font-size: 12px; + font-style: normal; + font-variant: normal; + letter-spacing: 0pt; + line-height: normal; + background: #BECCD6; + padding: .7em 1em; + float: left; + text-decoration: none; + color: #ffffff; + text-shadow: 0 1px 0 rgba(255,255,255,.5); + position: relative; +} + +#localizacao a:hover{ + background: #184e7f; +} + +#localizacao a::before{ + content: ""; + position: absolute; + top: 50%; + margin-top: -1.5em; + border-width: 1.5em 0 1.5em 1em; + border-style: solid; + border-color: #BECCD6 #BECCD6 #BECCD6 transparent; + left: -1em; +} + +#localizacao a:hover::before{ + border-color: #184e7f #184e7f #184e7f transparent; +} + +#localizacao a::after{ + content: ""; + position: absolute; + top: 50%; + margin-top: -1.5em; + border-top: 1.5em solid transparent; + border-bottom: 1.5em solid transparent; + border-left: 1em solid #BECCD6; + right: -1em; +} + +#localizacao a:hover::after{ + border-left-color: #184e7f; +} + +#localizacao .current, +#localizacao .current:hover{ + font-weight: bold; + background: none; +} + +#localizacao .current::after, +#localizacao .current::before{ + content: normal; +} + -- libgit2 0.21.2