"; _pr($_SESSION); //echo $_SESSION['query']; $domain = 'sentier'; localize($domain); ?>
close session "; if (!isset($_GET['page'])) $page = 1; else $page = intval($_GET['page']); echo "_POST' . $req . '';
$query = "SELECT * FROM photos " . $req . "ORDER BY " . $column . " " . $sort_order . " " . "LIMIT ? OFFSET ?";
echo '' . $query . '';
$offset = $perpage * ($page -1);
$stmt = $conn->prepare($query);
$stmt->execute(array($perpage, $offset)); // (1,3...) 1=1ere valeur 3=valeur
// id 1 -> 3
//$stmt->execute(array(1, 3)); // WHERE id >= ? AND id <= ? ORDER BY date DESC";
//$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
//$count = $rows['count(*)'];
//echo count($result);
//_pr($rows);
$up_or_down = str_replace(array('ASC','DESC'), array('up','down'), $sort_order);
$asc_or_desc = $sort_order == 'ASC' ? 'desc' : 'asc';
$add_class = ' class="highlight"';
?>
';
echo '| ' . gettext('Id') . ' | ' . gettext('Thumb') . ' | ' . gettext('Filename') . ' | ' . gettext('Date') . ' | ' . gettext('Lens') . ' | ' . gettext('Speed') . ' | ' . gettext('Aperture') . ' | ' . gettext('Iso') . ' | ' . gettext('Width') . ' | ' . gettext('Height') . ' | '; echo '' . gettext('Model') . ' | ' . gettext('Latitude') . ' | ' . gettext('Longitude') . ' | ' . gettext('Alttitude') . ' | ' . gettext('Legende') . ' | ' . gettext('Copyright') . ' | ' . gettext('Title') . ' | '; echo '' . gettext('Creator') . ' | ' . gettext('Keywords') . ' | ' . gettext('Metering') . ' | ' . gettext('Flash') . ' | ' . gettext('Focal') . ' | ' . gettext('Wb') . ' | ' . gettext('Program') . ' | ' . gettext('Html') . ' | '; echo ''; echo ''; $nRows = 0; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); $full = host() . $row['filename']; echo '
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ' . $row['id'] . ' | ' . ' | ' . $row['filename'] . ' | ' . $row['dateoriginal'] . ' | ' . $row['lens'] . ' | ' . $row['speed'] . ' | ' . $row['aperture'] . ' | ' . $row['iso'] . ' | ' . $row['width'] . ' | ' . $row['height'] . ' | ' . $row['model'] . ' | ' . $row['lat'] . ' | ' . $row['long'] . ' | ' . $row['alt'] . ' | ' . $row['legende'] . ' | ' . $row['copyright'] . ' | ' . $row['title'] . ' | ' . $row['creator'] . ' | ' . $row['keywords'] . ' | ' . $row['metering'] . ' | ' . $row['flash'] . ' | ' . $row['focal'] . ' | ' . $row['wb'] . ' | ' . $row['program'] . ' | ' . $row['html'] . ' |
| ' . gettext("No image found !") .' | ||||||||||||||||||||||||
© 2013- sur-le-sentier.fr