Ignore:
Timestamp:
Nov 15, 2006, 5:25:12 AM (17 years ago)
Author:
rvelices
Message:

completely replaced get_thumbnail_src it get_thumbnail_url
or get_thumbnail_path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_unit.php

    r1314 r1609  
    2929 * Management of elements set. Elements can belong to a category or to the
    3030 * user caddie.
    31  * 
     31 *
    3232 */
    33  
     33
    3434if (!defined('PHPWG_ROOT_PATH'))
    3535{
     
    5151{
    5252  $collection = explode(',', $_POST['list']);
    53  
     53
    5454  $datas = array();
    55  
     55
    5656  $query = '
    5757SELECT id, date_creation
     
    7676      }
    7777    }
    78    
     78
    7979    if ($conf['allow_html_descriptions'])
    8080    {
     
    104104      $data{'date_creation'} = $row['date_creation'];
    105105    }
    106    
     106
    107107    array_push($datas, $data);
    108108
     
    113113    }
    114114  }
    115  
     115
    116116  mass_updates(
    117117    IMAGES_TABLE,
     
    122122    $datas
    123123    );
    124  
     124
    125125  array_push($page['infos'], l10n('Picture informations updated'));
    126126}
     
    142142
    143143    'L_SUBMIT'=>$lang['submit'],
    144    
     144
    145145    'U_ELEMENTS_PAGE'
    146146    =>$base_url.get_query_string_diff(array('display','start')),
    147    
     147
    148148    'U_GLOBAL_MODE'
    149149    =>
     
    151151    .get_query_string_diff(array('mode','display'))
    152152    .'&mode=global',
    153    
     153
    154154    'F_ACTION'=>$base_url.get_query_string_diff(array()),
    155155    )
     
    191191  // tags
    192192  $all_tags = get_all_tags();
    193  
     193
    194194  $element_ids = array();
    195195
     
    203203  $result = pwg_query($query);
    204204
    205   while ($row = mysql_fetch_array($result))
     205  while ($row = mysql_fetch_assoc($result))
    206206  {
    207207    // echo '<pre>'; print_r($row); echo '</pre>';
    208208    array_push($element_ids, $row['id']);
    209    
    210     $src = get_thumbnail_src($row['path'], @$row['tn_ext']);
     209
     210    $src = get_thumbnail_url($row);
    211211
    212212    $query = '
     
    216216;';
    217217    $selected_tags = array_from_query($query, 'tag_id');
    218    
     218
    219219    // creation date
    220220    if (!empty($row['date_creation']))
     
    242242        '</p>';
    243243    }
    244    
     244
    245245    $template->assign_block_vars(
    246246      'element',
     
    259259        'DESCRIPTION' => @$row['comment'],
    260260        'DATE_CREATION_YEAR' => $year,
    261        
     261
    262262        'TAG_SELECTION' => $tag_selection,
    263263        )
    264264      );
    265    
     265
    266266    get_day_list('element.date_creation_day', $day);
    267267    get_month_list('element.date_creation_month', $month);
Note: See TracChangeset for help on using the changeset viewer.