Citation :
<?php
$timestamp0 = time();
$timestamp1 = time() - 86400;
$timestamp2 = time() - 172800;
$timestamp3 = time() - 259200;
$timestamp4 = time() - 345600;
$timestamp5 = time() - 432000;
$timestamp6 = time() - 518400;
?>
<select name="date7jours" id="date7jours">
<option value="<?php echo $timestamp0; ?>"><?php echo gmdate('d/m/Y'); ?></option>
<option value="<?php echo $timestamp1; ?>"><?php echo gmdate('d/m/Y', $timestamp1); ?></option>
<option value="<?php echo $timestamp2; ?>"><?php echo gmdate('d/m/Y', $timestamp2); ?></option>
<option value="<?php echo $timestamp3; ?>"><?php echo gmdate('d/m/Y', $timestamp3); ?></option>
<option value="<?php echo $timestamp4; ?>"><?php echo gmdate('d/m/Y', $timestamp4); ?></option>
<option value="<?php echo $timestamp5; ?>"><?php echo gmdate('d/m/Y', $timestamp5); ?></option>
<option value="<?php echo $timestamp6; ?>"><?php echo gmdate('d/m/Y', $timestamp6); ?></option>
</select>
|