Changeset 1609 for trunk/admin/element_set_unit.php
- Timestamp:
- Nov 15, 2006, 5:25:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_unit.php
r1314 r1609 29 29 * Management of elements set. Elements can belong to a category or to the 30 30 * user caddie. 31 * 31 * 32 32 */ 33 33 34 34 if (!defined('PHPWG_ROOT_PATH')) 35 35 { … … 51 51 { 52 52 $collection = explode(',', $_POST['list']); 53 53 54 54 $datas = array(); 55 55 56 56 $query = ' 57 57 SELECT id, date_creation … … 76 76 } 77 77 } 78 78 79 79 if ($conf['allow_html_descriptions']) 80 80 { … … 104 104 $data{'date_creation'} = $row['date_creation']; 105 105 } 106 106 107 107 array_push($datas, $data); 108 108 … … 113 113 } 114 114 } 115 115 116 116 mass_updates( 117 117 IMAGES_TABLE, … … 122 122 $datas 123 123 ); 124 124 125 125 array_push($page['infos'], l10n('Picture informations updated')); 126 126 } … … 142 142 143 143 'L_SUBMIT'=>$lang['submit'], 144 144 145 145 'U_ELEMENTS_PAGE' 146 146 =>$base_url.get_query_string_diff(array('display','start')), 147 147 148 148 'U_GLOBAL_MODE' 149 149 => … … 151 151 .get_query_string_diff(array('mode','display')) 152 152 .'&mode=global', 153 153 154 154 'F_ACTION'=>$base_url.get_query_string_diff(array()), 155 155 ) … … 191 191 // tags 192 192 $all_tags = get_all_tags(); 193 193 194 194 $element_ids = array(); 195 195 … … 203 203 $result = pwg_query($query); 204 204 205 while ($row = mysql_fetch_a rray($result))205 while ($row = mysql_fetch_assoc($result)) 206 206 { 207 207 // echo '<pre>'; print_r($row); echo '</pre>'; 208 208 array_push($element_ids, $row['id']); 209 210 $src = get_thumbnail_ src($row['path'], @$row['tn_ext']);209 210 $src = get_thumbnail_url($row); 211 211 212 212 $query = ' … … 216 216 ;'; 217 217 $selected_tags = array_from_query($query, 'tag_id'); 218 218 219 219 // creation date 220 220 if (!empty($row['date_creation'])) … … 242 242 '</p>'; 243 243 } 244 244 245 245 $template->assign_block_vars( 246 246 'element', … … 259 259 'DESCRIPTION' => @$row['comment'], 260 260 'DATE_CREATION_YEAR' => $year, 261 261 262 262 'TAG_SELECTION' => $tag_selection, 263 263 ) 264 264 ); 265 265 266 266 get_day_list('element.date_creation_day', $day); 267 267 get_month_list('element.date_creation_month', $month);
Note: See TracChangeset
for help on using the changeset viewer.