Changeset 764 for trunk/admin/include


Ignore:
Timestamp:
Apr 16, 2005, 6:56:32 PM (19 years ago)
Author:
plg
Message:
  • elements batch management : element_set page becomes the frontend to element_set_global and element_set_unit, infos_images (after a long time of use) become deprecated : the more powerful element_set is used instead. Consequently, batch management concerns caddie but also "normal categories".
  • refactoring code in admin.php to include the sub-file (clearer)
  • caddie : function fill_caddie replaces the code in category.php and can be used in admin/element_set.php
  • caddie : caddie table is added in delete_elements function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r680 r764  
    297297  $query = '
    298298DELETE FROM '.RATE_TABLE.'
     299  WHERE element_id IN (
     300'.wordwrap(implode(', ', $ids), 80, "\n").')
     301;';
     302  pwg_query($query);
     303
     304  // destruction of the rates associated to this element
     305  $query = '
     306DELETE FROM '.CADDIE_TABLE.'
    299307  WHERE element_id IN (
    300308'.wordwrap(implode(', ', $ids), 80, "\n").')
Note: See TracChangeset for help on using the changeset viewer.