Changeset 811
- Timestamp:
- Aug 14, 2005, 1:55:35 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/ChangeLog
r810 r811 1 2005-08-14 Pierrick LE GALL 2 3 * new : ability to set an element as representant of its category 4 directly from picture.php screen. 5 6 * improvement : dedicated icon to add elements into caddie. Ths 7 icon is displayed in the category title bar. 8 1 9 2005-08-14 Pierrick LE GALL 2 10 -
trunk/picture.php
r803 r811 74 74 echo $lang['thumbnails'].'</a></div>'; 75 75 exit(); 76 } 77 //-------------------------------------------------------------- representative 78 if ('admin' == $user['status'] and isset($_GET['representative'])) 79 { 80 $query = ' 81 UPDATE '.CATEGORIES_TABLE.' 82 SET representative_picture_id = '.$_GET['image_id'].' 83 WHERE id = '.$page['cat'].' 84 ;'; 85 pwg_query($query); 86 87 $url = 88 PHPWG_ROOT_PATH 89 .'picture.php' 90 .get_query_string_diff(array('representative')); 91 redirect($url); 76 92 } 77 93 //---------------------------------------------------------- related categories … … 620 636 'HEIGHT_IMG'=>($full_height + 16) 621 637 )); 638 } 639 // button to set the current picture as representative 640 if ('admin' == $user['status'] and is_numeric($page['cat'])) 641 { 642 $template->assign_block_vars( 643 'representative', 644 array( 645 'URL' => 646 PHPWG_ROOT_PATH.'picture.php' 647 .get_query_string_diff(array()) 648 .'&representative=1' 649 ) 650 ); 622 651 } 623 652 //------------------------------------------------------- favorite manipulation -
trunk/template/default/category.tpl
r804 r811 89 89 <td style="padding:0px 10px 0px 10px; width:99%;" valign="top"> 90 90 <div class="home"> 91 <div class="titrePage">{TITLE}</div> 91 <div class="titrePage"> 92 <ul class="categoryActions"> 93 <!-- BEGIN caddie --> 94 <li><a href="{U_CADDIE}" title="{lang:add to caddie}"><img src="./template/default/theme/caddie_add.png" /></a></li> 95 <!-- END caddie --> 96 </ul> 97 {TITLE} 98 </div> 92 99 <!-- BEGIN calendar --> 93 100 <div class="navigationBar">{calendar.YEARS_NAV_BAR}</div> … … 124 131 </table> 125 132 <!-- END thumbnails --> 126 <!-- BEGIN caddie -->127 <br />128 <div class="navigationBar"><a href="{U_CADDIE}">add to caddie</a></div>129 <!-- END caddie -->130 133 <!-- BEGIN cat_infos --> 131 134 <!-- BEGIN navigation --> -
trunk/template/default/default.css
r809 r811 413 413 float: right; 414 414 margin-top: 5px; 415 } 416 417 div.titrePage ul.categoryActions { 418 float: right; 419 margin: 0; 415 420 } 416 421 -
trunk/template/default/picture.tpl
r803 r811 29 29 </a> 30 30 </div> 31 32 <!-- BEGIN representative --> 33 <div class="imgMenu" id="left"> 34 <a href="{representative.URL}" title="{lang:set as category representative}"> 35 <img src="template/default/theme/representative.png" alt="{lang:representative}" /> 36 </a> 37 </div> 38 <!-- END representative --> 39 31 40 <!-- BEGIN favorite --> 32 41 <div class="imgMenu" id="right">
Note: See TracChangeset
for help on using the changeset viewer.