$value) { $r = "id = '" . $value . "' OR "; $rr .= $r; } $req = substr($rr, 0, -4); $req_edit = "SELECT * FROM photos WHERE " . $req . " ORDER BY id"; } else { $url = "view_bdd.php?message=" . urlencode(gettext("No images select !")); header("location: $url"); } } else { $url = "view_bdd.php?message=" . urlencode(gettext("No images select !")); header("location: $url"); } } else { $url = "admin.php?message=" . urlencode(gettext("Please log in !")); header("location: $url"); } ?> <?php echo gettext('View photos in Sqlite base'); ?> ' . gettext('Edit database') . ': ' . $base . '
'; echo '

' . $msg . '

'; try { $conn = new PDO('sqlite:db_photo.sqlite3'); $stmt = $conn->prepare($req_edit); $stmt->execute(); ?> '; echo ''; echo ''; echo ''; echo ''; echo ''; 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 ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; //echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $nRows++; } echo '
' . gettext('Id') . '' . gettext('Thumb') . '' . gettext('Filename') . '' . gettext('Date') . ' ' . gettext('Speed') . '' . gettext('Iso') . '' . gettext('Aperture') . '' . gettext('Expo. correct') . '' . gettext('Model') . '' . gettext('Lens') . '' . gettext('Focal') . '' . gettext('Metering') . '' . gettext('Program') . '' . gettext('Wb') . '' . gettext('Flash') . '' . gettext('Software') . '' . gettext('Keywords') . '' . gettext('Title') . '' . gettext('Creator') . '' . gettext('City') . '' . gettext('Department') . '' . gettext('Code') . '' . gettext('Country') . '' . gettext('Copyright') . '' . gettext('Legende') . '
' . $row['id'] . '' . '' . '' . $row['filename'] . '' . $row['dateoriginal'] . '' . $row['speed'] . '' . $row['iso'] . '' . $row['aperture'] . '' . $row['correctexpo'] . '' . $row['model'] . '' . $row['focal'] . '' . $row['metering'] . '' . $row['program'] . '' . $row['wb'] . '' . $row['flash'] . '' . $row['software'] . '
'; echo ''; echo ''; $conn = null; } catch(PDOException $e) { echo $e->getMessage(); } ?>

© 2013- sur-le-sentier.fr