Changeset 51
- Timestamp:
- Jul 28, 2003, 11:30:19 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r42 r51 36 36 $cat_directory = $page['cat_dir']; // by default 37 37 //------------------------------------- main picture information initialization 38 $query = 'SELECT id,date_available,comment,hit ';38 $query = 'SELECT id,date_available,comment,hit,keywords'; 39 39 $query.= ',author,name,file,date_creation,filesize,width,height,cat_id'; 40 40 $query.= ' FROM '.PREFIX_TABLE.'images'; … … 57 57 $page['height'] = $row['height']; 58 58 $page['cat_id'] = $row['cat_id']; 59 $page['keywords'] = $row['keywords']; 59 60 // retrieving the number of the picture in its category (in order) 60 61 $query = 'SELECT id'; … … 398 399 $vtp->setVar( $handle, 'info_line.content', $poids.' KB' ); 399 400 $vtp->closeSession( $handle, 'info_line' ); 401 // keywords 402 if ( $page['keywords'] != '' ) 403 { 404 $vtp->addSession( $handle, 'info_line' ); 405 $vtp->setVar( $handle, 'info_line.name', $lang['keywords'].' : ' ); 406 $keywords = explode( ',', $page['keywords'] ); 407 $content = ''; 408 $url = './category.php?cat=search&expand='.$_GET['expand']; 409 $url.= '&mode=OR&search='; 410 foreach ( $keywords as $i => $keyword ) { 411 $local_url = add_session_id( $url.$keyword ); 412 if ( $i > 0 ) $content.= ','; 413 $content.= '<a href="'.$local_url.'">'.$keyword.'</a>'; 414 } 415 $vtp->setVar( $handle, 'info_line.content', $content ); 416 $vtp->closeSession( $handle, 'info_line' ); 417 } 400 418 // number of visits 401 419 $vtp->addSession( $handle, 'info_line' );
Note: See TracChangeset
for help on using the changeset viewer.