Changeset 1845
- Timestamp:
- Feb 21, 2007, 1:20:02 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions.inc.php
r1837 r1845 4 4 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 5 5 // +-----------------------------------------------------------------------+ 6 // | branch : BSF (Best So Far)7 6 // | file : $Id$ 8 7 // | last update : $Date$ … … 244 243 } 245 244 245 /** 246 * returns an array of image attributes that are to be encoded as xml attributes 247 * instead of xml elements 248 */ 249 function ws_std_get_image_xml_attributes() 250 { 251 return array( 252 'id','tn_url','element_url','high_url', 'file','width','height','hit' 253 ); 254 } 246 255 247 256 /** … … 395 404 ), 396 405 WS_XML_CONTENT => new PwgNamedArray($images, 'image', 397 array('id', 'tn_url', 'element_url', 'file','width','height','hit') )406 ws_std_get_image_xml_attributes() ) 398 407 ) 399 408 ); … … 439 448 $query = ' 440 449 SELECT id, name, uppercats, global_rank, 441 max_date_last, count_images AS nb_images, count_categories AS nb_categories 450 nb_images, count_images AS total_nb_images, 451 date_last, max_date_last, count_categories AS nb_categories 442 452 FROM '.CATEGORIES_TABLE.' 443 453 INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' ON id=cat_id … … 458 468 ) 459 469 ); 460 foreach( array('id','nb_images',' nb_categories') as $key)470 foreach( array('id','nb_images','total_nb_images','nb_categories') as $key) 461 471 { 462 472 $row[$key] = (int)$row[$key]; … … 468 478 'categories' => 469 479 new PwgNamedArray($cats,'category', 470 array('id','url','nb_images',' nb_categories','max_date_last')480 array('id','url','nb_images','total_nb_images','nb_categories','date_last','max_date_last') 471 481 ) 472 482 ); … … 502 512 return new PwgError(999, "image_id not found"); 503 513 } 504 array_merge( $image_row, ws_std_get_urls($image_row) );514 $image_row = array_merge( $image_row, ws_std_get_urls($image_row) ); 505 515 506 516 //-------------------------------------------------------- related categories … … 601 611 unset($ret['path']); 602 612 unset($ret['storage_category_id']); 613 603 614 return new PwgNamedStruct('image',$ret, null, array('name','comment') ); 604 615 } … … 712 723 ), 713 724 WS_XML_CONTENT => new PwgNamedArray($images, 'image', 714 array('id', 'tn_url', 'element_url', 'file','width','height','hit') )725 ws_std_get_image_xml_attributes() ) 715 726 ) 716 727 ); … … 946 957 ), 947 958 WS_XML_CONTENT => new PwgNamedArray($images, 'image', 948 array('id', 'tn_url', 'element_url', 'file','width','height','hit') )959 ws_std_get_image_xml_attributes() ) 949 960 ) 950 961 ); -
trunk/template/yoga/default-colors.css
r1842 r1845 1 1 /* $Id$ */ 2 #content, #menubar, #thePicturePage #the_page { background-color: #eef; } 2 3 3 /* others */ 4 4 .pleaseNote {
Note: See TracChangeset
for help on using the changeset viewer.