예제 #1
0
 public function actionDisplay($lang, $module_dispatch, $categorie, $type, $HelperPhoto, $album, $titre, $photo, $page)
 {
     $DetailPhoto = new DetailPhoto();
     $DeletePhoto = new DeletePhoto();
     $UpdatePhoto = new UpdatePhoto();
     $AddPhoto = new AddPhoto();
     $layout = "";
     if ($photo != "") {
         $HelperPhoto->readConfigFile($HelperPhoto->albumPath . '/' . $album . '/' . $HelperPhoto->pictureConfig);
         $description = stripslashes(isset($HelperPhoto->config[$photo . '_desc']) ? $HelperPhoto->config[$photo . '_desc'] : '');
         $legend = stripslashes(isset($HelperPhoto->config[$photo . '_title']) ? $HelperPhoto->config[$photo . '_title'] : '');
         $date = stripslashes(isset($HelperPhoto->config[$photo . '_date']) ? $HelperPhoto->config[$photo . '_date'] : '');
         $show = $HelperPhoto->config[$photo . '_show'] == 'on' ? "showtrue" : "showfalse";
         $image = $HelperPhoto->albumPath . '/' . $album . '/original/' . $photo;
         if ($type == DETAIL) {
             $layout .= $DetailPhoto->detail($lang, $module_dispatch, $legend, $description, $date, $image, $show);
         } elseif ($type == UPDATE) {
             $show = $HelperPhoto->config[$photo . '_show'];
             $layout .= $UpdatePhoto->update($lang, $module_dispatch, $categorie, $album, $titre, $legend, $description, $date, $show, $photo, $page);
         } elseif ($type == DELETE) {
             $layout .= $DeletePhoto->delete($lang, $module_dispatch, $categorie, $album, $titre, $legend, $description, $date, $image, $show, $photo, $page);
         }
     } elseif ($type == ADD) {
         $layout .= $AddPhoto->add($lang, $module_dispatch, $categorie, $page, $album, $titre);
     }
     return $layout;
 }
예제 #2
0
파일: photo.php 프로젝트: WebPassions/2013
            if ($i % 2 != 0) {
                $var->module_output .= $HelperLayout->listevaleurTr($i);
            } else {
                $var->module_output .= $HelperLayout->listeValeurTr($i, ' class="odd"');
            }
            if ($var->photo == $file['file']) {
                $var->module_output .= $HelperLayout->selectedLineInBlue($i);
            }
            $var->module_output .= $ListingPhoto->listing($legend, $date, $show, $full);
            // Ajout des actions possibles
            $var->module_output .= $ListingPhoto->listeValeurAction($lang, $module_dispatch, $var->categorie, $var->album, $var->titre, $file['file'], $var->page, $var->sort, $var->order, $var->search);
        }
        // Pagination
        $var->module_output .= $Pagination->wrapper($lang, $module_dispatch, $var->page, $HelperPhoto->nbrePages, $var->categorie, $var->ss_categorie, $var->search, $var->sort, $var->order);
        // Affichage des actions disponibles
        $var->module_output .= $Action->actionDisplay($lang, $module_dispatch, $var->categorie, $var->type, $HelperPhoto, $var->album, $var->titre, $var->photo, $var->page);
    } elseif ($var->type == ADD) {
        // Fin test data
        $var->module_output .= $HelperData->noDataWithoutSSCategorie($lang, $module_dispatch);
        $var->module_output .= $AddPhoto->add($lang, $module_dispatch, $var->categorie, $var->page, $var->album, $var->titre);
    } else {
        // Fin test data
        $var->module_output .= $HelperData->noDataWithoutSSCategorie($lang, $module_dispatch);
    }
} else {
    // Fin test catégorie
    $var->module_output .= $HelperData->noCategory($lang);
}
$var->module_output .= "</div>";
?>