Changeset 1120
- Timestamp:
- Apr 4, 2006, 2:35:12 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_global.php
r1119 r1120 93 93 pwg_query($query); 94 94 } 95 95 96 96 if ($_POST['associate'] != 0 and count($collection) > 0) 97 97 { … … 331 331 ); 332 332 333 // remove tags 334 $query = ' 335 SELECT tag_id, name, url_name, count(*) counter 336 FROM '.IMAGE_TAG_TABLE.' 337 INNER JOIN '.TAGS_TABLE.' ON tag_id = id 338 WHERE image_id IN ('.implode(',', $page['cat_elements_id']).') 339 GROUP BY tag_id 340 ORDER BY name ASC 341 ;'; 342 $result = pwg_query($query); 343 344 $tags = array(); 345 while($row = mysql_fetch_array($result)) 346 { 347 array_push($tags, $row); 348 } 349 350 $template->assign_vars( 351 array( 352 'DEL_TAG_SELECTION' => get_html_tag_selection($tags, 'del_tags'), 353 ) 354 ); 355 333 if (count($page['cat_elements_id']) > 0) 334 { 335 // remove tags 336 $query = ' 337 SELECT tag_id, name, url_name, count(*) counter 338 FROM '.IMAGE_TAG_TABLE.' 339 INNER JOIN '.TAGS_TABLE.' ON tag_id = id 340 WHERE image_id IN ('.implode(',', $page['cat_elements_id']).') 341 GROUP BY tag_id 342 ORDER BY name ASC 343 ;'; 344 $result = pwg_query($query); 345 346 $tags = array(); 347 while($row = mysql_fetch_array($result)) 348 { 349 array_push($tags, $row); 350 } 351 352 $template->assign_vars( 353 array( 354 'DEL_TAG_SELECTION' => get_html_tag_selection($tags, 'del_tags'), 355 ) 356 ); 357 } 356 358 // creation date 357 359 $day = -
trunk/include/config_default.inc.php
r1119 r1120 449 449 // tags_levels: number of levels to use for display. Each level is bind to a 450 450 // CSS class tagLevelX. 451 $conf['tags_levels'] = 10;451 $conf['tags_levels'] = 5; 452 452 453 453 // +-----------------------------------------------------------------------+ -
trunk/include/page_header.php
r1085 r1120 49 49 50 50 'CONTENT_ENCODING' => $lang_info['charset'], 51 'PAGE_TITLE' => $title,51 'PAGE_TITLE' => strip_tags($title), 52 52 'LANG'=>$lang_info['code'], 53 53 'DIR'=>$lang_info['direction'], -
trunk/include/section_init.inc.php
r1119 r1120 162 162 } 163 163 } 164 164 165 165 array_push( 166 166 $page['tags'], … … 306 306 'uppercats' => $result['uppercats'], 307 307 308 'title' => get_cat_display_name($result['name'], null, false),308 'title' => get_cat_display_name($result['name'], '', false), 309 309 ) 310 310 ); … … 361 361 // reachable to the connected user, we need to check category 362 362 // associations 363 if (!empty($user['forbidden_categories']) )363 if (!empty($user['forbidden_categories']) and !empty($items) ) 364 364 { 365 365 $query = ' … … 382 382 $result = pwg_query($query); 383 383 $tag_infos = array(); 384 384 385 385 while ($row = mysql_fetch_array($result)) 386 386 { … … 429 429 include_once( PHPWG_ROOT_PATH .'include/functions_search.inc.php' ); 430 430 431 $query = ' 431 $search_items = get_search_items($page['search']); 432 if ( !empty($search_items) ) 433 { 434 $query = ' 432 435 SELECT DISTINCT(id) 433 436 FROM '.IMAGES_TABLE.' 434 437 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id 435 WHERE id IN ('.implode(',', get_search_items($page['search'])).')438 WHERE id IN ('.implode(',', $search_items).') 436 439 AND '.$forbidden.' 437 440 '.$conf['order_by'].' 438 ;'; 441 ;'; 442 $page['items'] = array_from_query($query, 'id'); 443 } 444 else 445 { 446 $page['items'] = array(); 447 } 439 448 440 449 $page = array_merge( … … 442 451 array( 443 452 'title' => $lang['search_result'], 444 'items' => array_from_query($query, 'id'),445 453 'thumbnails_include' => 'include/category_default.inc.php', 446 454 ) -
trunk/index.php
r1119 r1120 111 111 $template->set_filenames( array('index'=>'index.tpl') ); 112 112 //-------------------------------------------------------------- category title 113 if (isset($page['category'])) 114 { 115 $template_title = get_cat_display_name( $page['cat_name'], '', false ); 116 } 117 else 118 { 119 $template_title = $page['title']; 120 } 121 113 $template_title = $page['title']; 122 114 if (isset($page['cat_nb_images']) and $page['cat_nb_images'] > 0) 123 115 { … … 226 218 { 227 219 $template->assign_block_vars('tags', array()); 228 220 229 221 // display tags associated to currently tagged items, less current tags 230 $query = ' 222 $tags = array(); 223 224 if ( !empty($page['items']) ) 225 { 226 $query = ' 231 227 SELECT tag_id, name, url_name, count(*) counter 232 228 FROM '.IMAGE_TAG_TABLE.' … … 237 233 ORDER BY name ASC 238 234 ;'; 239 $result = pwg_query($query); 240 241 $tags = array(); 242 243 while($row = mysql_fetch_array($result)) 244 { 245 array_push($tags, $row); 235 $result = pwg_query($query); 236 while($row = mysql_fetch_array($result)) 237 { 238 array_push($tags, $row); 239 } 246 240 } 247 241 … … 277 271 ) 278 272 ), 279 273 280 274 'NAME' => $tag['name'], 281 275 282 276 'TITLE' => l10n('See pictures linked to this tag only'), 283 277 … … 286 280 $tag['counter'] 287 281 ), 288 282 289 283 'CLASS' => 'tagLevel'.$tag['level'] 290 284 ) -
trunk/language/en_UK.iso-8859-1/admin.lang.php
r1119 r1120 259 259 $lang['nbm_content_new_elements'] = 'New elements were added on %s'; 260 260 $lang['nbm_content_new_elements_between'] = 'New elements were added between %s and %s'; 261 $lang['nbm_content_subscribe_by_admin'] = ' You are subcribed by webmaster for the notificationby mail';262 $lang['nbm_content_subscribe_by_himself'] = 'You are subcribed for the notificationby mail';261 $lang['nbm_content_subscribe_by_admin'] = 'The webmaster has subcribed you for receiving notifications by mail'; 262 $lang['nbm_content_subscribe_by_himself'] = 'You have subcribed to receiving notifications by mail'; 263 263 $lang['nbm_content_subscribe_link'] = 'To subscribe, click on %s .'; 264 $lang['nbm_content_subscribe_unsubscribe_contact'] = ' On problems or questions,send a message to %s.';265 $lang['nbm_content_unsubscribe_by_admin'] = ' You are unsubcribed by webmaster for the notificationby mail';266 $lang['nbm_content_unsubscribe_by_himself'] = 'You are unsubcribed for the notificationby mail';264 $lang['nbm_content_subscribe_unsubscribe_contact'] = 'If you encounter problems or have any question, please send a message to %s.'; 265 $lang['nbm_content_unsubscribe_by_admin'] = 'The webmaster has unsubcribed you from receiving notifications by mail'; 266 $lang['nbm_content_unsubscribe_by_himself'] = 'You have unsubcribed from receiving notifications by mail'; 267 267 $lang['nbm_content_unsubscribe_link'] = 'To unsubscribe, click on %s .'; 268 268 $lang['nbm_info_send_mail_as'] = 'With blank value, gallery title will be used'; … … 275 275 $lang['nbm_no_mail_to_send'] = 'No mail to send.'; 276 276 $lang['nbm_no_user_available_to_send_L1'] = 'No user are available in order to send mail.'; 277 $lang['nbm_no_user_available_to_send_L2'] = 'A user is available, if the are newselements to notify';277 $lang['nbm_no_user_available_to_send_L2'] = 'A user is available, if there are new elements to notify'; 278 278 $lang['nbm_no_user_to send_notifications_by_mail'] = 'No user to send notifications by mail.'; 279 279 $lang['nbm_object_news'] = 'New elements added'; 280 $lang['nbm_object_subcribe'] = 'Subcribe ofnotification by mail';281 $lang['nbm_object_unsubcribe'] = 'Unsubcribe ofnotification by mail';280 $lang['nbm_object_subcribe'] = 'Subcribe to notification by mail'; 281 $lang['nbm_object_unsubcribe'] = 'Unsubcribe from notification by mail'; 282 282 $lang['nbm_param_mode'] = 'Parameter'; 283 283 $lang['nbm_send_check_all'] = 'Check All'; … … 293 293 $lang['nbm_subscribe_mode'] = 'Subscribe'; 294 294 $lang['nbm_title_param'] = 'Parameters'; 295 $lang['nbm_title_send'] = 'Select sendings';296 $lang['nbm_title_subscribe'] = 'Subscribe/uns cribe users';295 $lang['nbm_title_send'] = 'Select recipients'; 296 $lang['nbm_title_subscribe'] = 'Subscribe/unsubscribe users'; 297 297 $lang['nbm_unsubscribe_col'] = 'Unsubcribed'; 298 298 $lang['nbm_updated_param_count'] = '%d parameters are updated.'; 299 299 $lang['nbm_user_change_enabled_error_on_updated_data_count'] = '%d user(s) are not updated.'; 300 $lang['nbm_user_change_enabled_false'] = 'User %s [%s] removed of subscribelist.';301 $lang['nbm_user_change_enabled_true'] = 'User %s [%s] added to subscribelist.';300 $lang['nbm_user_change_enabled_false'] = 'User %s [%s] removed from the subscription list.'; 301 $lang['nbm_user_change_enabled_true'] = 'User %s [%s] added to the subscription list.'; 302 302 $lang['nbm_user_change_enabled_updated_data_count'] = '%d user(s) are updated.'; 303 $lang['nbm_user_not_change_enabled_false'] = 'User %s [%s] not removed of subscribelist.';304 $lang['nbm_user_not_change_enabled_true'] = 'User %s [%s] not added to subscribelist.';303 $lang['nbm_user_not_change_enabled_false'] = 'User %s [%s] not removed from the subscription list.'; 304 $lang['nbm_user_not_change_enabled_true'] = 'User %s [%s] not added to the subscription list.'; 305 305 $lang['nbm_user_x_added'] = 'User %s [%s] added.'; 306 $lang['nbm_warning_subscribe_unsubcribe'] = 'Warning , subscribe or unscribesend mails to users';306 $lang['nbm_warning_subscribe_unsubcribe'] = 'Warning: subscribing or unsubcribing will send mails to users'; 307 307 $lang['no_write_access'] = 'no write access'; 308 308 $lang['order_by'] = 'order by'; -
trunk/tags.php
-
Property
eol-style
set to
native
-
Property
keywords
set to
Author Date Id Revision
r1119 r1120 37 37 } 38 38 39 return ($a['counter'] < $b['counter']) ? -1 :1;39 return ($a['counter'] < $b['counter']) ? +1 : -1; 40 40 } 41 41 … … 103 103 ) 104 104 ), 105 105 106 106 'NAME' => $tag['name'], 107 107 'TITLE' => $tag['counter'], -
Property
eol-style
set to
-
trunk/template/yoga/default-layout.css
r1119 r1120 271 271 white-space: nowrap; 272 272 } 273 274 #fullTagCloud { font-size: 140%; } 275 276 #fullTagCloud LI { display: inline; } 277 278 .tagLevel5 { font-size: 150%; } 279 .tagLevel4 { font-size: 140%; } 280 .tagLevel3 { font-size: 120%; } 281 .tagLevel2 { font-size: 100%; } 282 .tagLevel1 { font-size: 90%; }
Note: See TracChangeset
for help on using the changeset viewer.