diff --git a/admin/admin_videos.php b/admin/admin_videos.php index c2d13697ca9908147713e92b572292b63ee21f47..f3a3d1e92368dcb9d9d6b26fa4185265b624822c 100644 --- a/admin/admin_videos.php +++ b/admin/admin_videos.php @@ -117,7 +117,7 @@ function dispAdminVideosByType($result, $video_type) { '.$video["video_name"].' '; if ($video["video_path_daily"]) { - $str .= ''; + $str .= ''; } $str .= ' @@ -692,4 +692,4 @@ return $str; } -?> \ No newline at end of file +?> diff --git a/public/home.php b/public/home.php index f04674595e01fb50649f9d4490d8eaf958db5b6b..6146210cd78854afdec4458a0b43ec64176727f9 100644 --- a/public/home.php +++ b/public/home.php @@ -186,14 +186,14 @@ function dispHomeLastPhotos(){ // DISP LAST PHOTOS BY TENDU $str .= dispWhenTendu($photo["photo_tendu"]); - $str .= '
  • '.$photo["photo_comment"].'\', \'#d3d3df\')"'; } $str .= '>'.$photo["photo_name"].' '; if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"] && photo_img_path != 0) { - $str .= '(zip)'; + $str .= '(zip)'; } $str .= ''; $str .= '   '.$photo["photo_size"]. ' Img diff --git a/public/photos.phpold b/public/photos.phpold deleted file mode 100644 index d011c03c202ef9de100f52b582d0690f7529c9f5..0000000000000000000000000000000000000000 --- a/public/photos.phpold +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - -
    - - - - - - -
    - - - - -
    - - - - - - - - -
    - - -  p h o t o s  - - -
    - - '; - -$str .= dispPhotosMenu(); - -$str .= ' -
    -
    -
    -
    - '; - - - -$str .= dispPhotosYear(); - -$str .= ' -
    -
    - - - - '; - - -echo $str; -} - - -function dispPhotosMenu(){ - - $str = ''; - - $str .= ' - - - - 2006 - - - - - - 2005 - - - - - - 2004 - - - - - 2003 - - - - - 2002 - - - - - Avant - - - - '; - - $str .= ' -
    - '; - - return ($str); -} - - -function dispPhotosYear(){ - - if ($_GET['year_page']) { - $year_page = $_GET['year_page']; - } - else - { - $year_page = 2006; - } - - $str = ''.$year_page.''; - - - if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"] ) { - $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 2); - $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 2); - $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 2); - } - else if ($_SESSION["user_right"] >= $GLOBALS["GUEST"] ) { - $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 1); - $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 1); - $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 1); - } - else { - $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 0); - $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 0); - $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 0); - } - - - if (mysql_num_rows($result_prod)) { - $str .= dispPhotosByType($result_prod, " e p t v   p r o d u c t i o n"); - } - - if (mysql_num_rows($result_bonus)) { - $str .= dispPhotosByType($result_bonus, " e p t v   b o n u s"); - } - - if (mysql_num_rows($result_adm)) { - $str .= dispPhotosByType($result_adm, " e p t v . a d m"); - } - - -return ($str); -} - - -function dispPhotosByType($result, $photo_type) { - - $str = ' - - - - -
    - - - - - - - - -
    - - - '.$photo_type.' - - -
    - - - - -
    - - - '; - - while ($photo = mysql_fetch_array($result)) { - - $str .= dispWhenTendu($photo["photo_tendu"]); - - $str .= ''.$photo["photo_comment"].'\', \'lightgray\')" ONMOUSEOUT="removeBox()"'; - } - $str .= '> - '.$photo["photo_name"].' - - - - - '; - } - -$str .= ' -
    - '.$photo["photo_date"].' - - '.$photo["photo_size"].' Img -
    -
    -
    -
    -
    - '; - - return ($str); - -} - -?> \ No newline at end of file