Restore blog behavior with three tables

This commit is contained in:
leosw
2019-01-30 21:03:48 +01:00
parent 2e2a79ed76
commit fa8f50a3d9
4 changed files with 55 additions and 46 deletions

View File

@@ -15,7 +15,7 @@
<select id="bloghistory">
<? $i = 0;
foreach ($blogHistory->objs as $row) { ?>
<option <?=$row->id==$blogArticle->id?'selected':''?> value="<?=$i?>"><?=$row->is_archive=="f"?'&bull; ':''?><? echo strftime('%d/%m/%Y %H:%M:%S',strtotime($row->update_date)) ?></option>
<option <?=$row->version_id==$blogArticle->version_id?'selected':''?> value="<?=$i?>"><?=$row->is_archive=="f"?'&bull; ':''?><? echo strftime('%d/%m/%Y %H:%M:%S',strtotime($row->update_date)) ?></option>
<? $i++;
} ?>
</select>