Changeset 1677 for trunk/picture.php


Ignore:
Timestamp:
Dec 21, 2006, 10:38:20 PM (17 years ago)
Author:
rub
Message:

Feature Issue ID 0000601: Filter all public pages with only recent elements

It's a finalized version.
Obsolete code of draft are removed.

You can filter categories and images with recent date period on your screen selection.
In the future, filter could be easy done on other type data (plugin?)

You can flat categories and sub-categories with a recent date period of your choice.

Next, perhaps, a panel to choice recent date for the 2 features.

On draft, there have problem with MySql 5, be careful!

Css problem not resolved:

  • Menu "Categories" is bad centered
  • Icon on dark too on the top
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1627 r1677  
    249249    INNER JOIN '.CATEGORIES_TABLE.' ON category_id = id
    250250  WHERE image_id = '.$page['image_id'].'
    251     AND category_id NOT IN ('.$user['forbidden_categories'].')
     251'.get_sql_condition_FandF
     252  (
     253    array
     254      (
     255        'forbidden_categories' => 'category_id',
     256        'visible_categories' => 'category_id'
     257      ),
     258    'AND'
     259  ).'
    252260;';
    253261$result = pwg_query($query);
Note: See TracChangeset for help on using the changeset viewer.