Changeset 1059 for trunk/include/functions_category.inc.php
- Timestamp:
- Feb 28, 2006, 5:28:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_category.inc.php
r1052 r1059 29 29 * Provides functions to handle categories. 30 30 * 31 * 31 * 32 32 */ 33 33 … … 68 68 { 69 69 global $page,$user; 70 70 71 71 $infos = array(''); 72 72 73 73 $query = ' 74 74 SELECT name,id,date_last,nb_images,global_rank … … 120 120 ;'; 121 121 list($total) = mysql_fetch_array(pwg_query($query)); 122 122 123 123 return $total; 124 124 } … … 136 136 * - id_uppercat 137 137 * - site_id 138 * - 138 * - 139 139 * 140 140 * @param int category id … … 146 146 ,'dir','date_last','uploadable','status','visible' 147 147 ,'representative_picture_id','uppercats','commentable'); 148 148 149 149 $query = ' 150 150 SELECT '.implode(',', $infos).' … … 197 197 $cat['name'][$cat_id] = $names[$cat_id]; 198 198 } 199 199 200 200 return $cat; 201 201 } … … 275 275 global $conf; 276 276 return array( 277 array( 'Default', '', true),277 array(l10n('default_sort'), '', true), 278 278 array(l10n('Average rate'), 'average_rate DESC', $conf['rate']), 279 279 array(l10n('most_visited_cat'), 'hit DESC', true), 280 280 array(l10n('Creation date'), 'date_creation DESC', true), 281 array(l10n(' Availabilitydate'), 'date_available DESC', true),281 array(l10n('Post date'), 'date_available DESC', true), 282 282 array(l10n('File name'), 'file ASC', true) 283 283 ); … … 311 311 $option.= '- '.$category['name']; 312 312 } 313 313 314 314 $template->assign_block_vars( 315 315 $blockname,
Note: See TracChangeset
for help on using the changeset viewer.