X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=fc116118698b23861ea16f09c155869ee9d0b69f;hp=2e491c5f4e4af4e2da07fa26ab98ded6faeb8c81;hb=d999f86819efb4d2e876a7d690a1306f6bc118fa;hpb=350ffa92282e6b5adf3dc2b854fbb2255c845b8e diff --git a/phpfspot.class.php b/phpfspot.class.php index 2e491c5..fc11611 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -304,7 +304,7 @@ class PHPFSPOT { } $meta_date = isset($meta['FileDateTime']) ? strftime("%a %x %X", $meta['FileDateTime']) : "n/a"; - $meta_make = isset($meta['Make']) ? $meta['Make'] ." ". $meta['Model'] : "n/a"; + $meta_make = isset($meta['Make']) ? $meta['Make'] ." / ". $meta['Model'] : "n/a"; $meta_size = isset($meta['FileSize']) ? round($meta['FileSize']/1024, 1) ."kbyte" : "n/a"; $extern_link = "index.php?mode=showp&id=". $photo; @@ -751,6 +751,15 @@ class PHPFSPOT { if(isset($_SESSION['searchfor']) && $_SESSION['searchfor'] != '') $this->tmpl->assign('searchfor', $_SESSION['searchfor']); + if(isset($_SESSION['from_date']) && isset($_SESSION['to_date'])) { + $this->tmpl->assign('from_date', $_SESSION['from_date']); + $this->tmpl->assign('to_date', $_SESSION['to_date']); + } + + if(isset($_SESSION['selected_tags']) && !empty($_SESSION['selected_tags'])) { + $this->tmpl->assign('tag_result', 1); + } + /* do we have to display the page selector ? */ if($this->cfg->rows_per_page != 0) { @@ -776,6 +785,8 @@ class PHPFSPOT { } } + $dotdot_made = 0; + for($i = 1; $i <= $last_page; $i++) { if($current_page == $i) @@ -810,12 +821,16 @@ class PHPFSPOT { $i == $current_page+3 || $i == $current_page+2 || $i == $current_page+1 /* three after */) { $page_select.= $select; + $dotdot_made = 0; continue; } } - $page_select.= "."; + if(!$dotdot_made) { + $page_select.= "......... "; + $dotdot_made = 1; + } } /* only show the page selector if we have more then one page */