- Timestamp:
- Jan 27, 2006, 11:40:51 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/category.php
r1014 r1015 166 166 ) 167 167 ); 168 169 if (isset($page['cat']) and 'search' == $page['cat']) 170 { 171 $template->assign_block_vars( 172 'search_rules', 173 array( 174 'URL' => PHPWG_ROOT_PATH.'/search_rules.php?search_id='.$_GET['search'], 175 ) 176 ); 177 } 168 178 //-------------------------------------------------------------- external links 169 179 if (count($conf['links']) > 0) -
trunk/include/functions.inc.php
r1012 r1015 774 774 775 775 /** 776 * returns the SQL clause from a search identifier 777 * 778 * Search rules are stored in search table as a serialized array. This array 779 * need to be transformed into an SQL clause to be used in queries. 776 * returns search rules stored into a serialized array in "search" 777 * table. Each search rules set is numericaly identified. 780 778 * 781 779 * @param int search_id 782 * @return string783 */ 784 function get_s ql_search_clause($search_id)780 * @return array 781 */ 782 function get_search_array($search_id) 785 783 { 786 784 if (!is_numeric($search_id)) … … 792 790 SELECT rules 793 791 FROM '.SEARCH_TABLE.' 794 WHERE id = '.$ _GET['search'].'792 WHERE id = '.$search_id.' 795 793 ;'; 796 794 list($serialized_rules) = mysql_fetch_row(pwg_query($query)); 797 795 798 $search = unserialize($serialized_rules); 799 800 // echo '<pre>'; 801 // print_r($search); 802 // echo '</pre>'; 803 796 return unserialize($serialized_rules); 797 } 798 799 /** 800 * returns the SQL clause from a search identifier 801 * 802 * Search rules are stored in search table as a serialized array. This array 803 * need to be transformed into an SQL clause to be used in queries. 804 * 805 * @param int search_id 806 * @return string 807 */ 808 function get_sql_search_clause($search_id) 809 { 810 $search = get_search_array($search_id); 811 804 812 // SQL where clauses are stored in $clauses array during query 805 813 // construction -
trunk/language/en_UK.iso-8859-1/common.lang.php
r949 r1015 42 42 $lang['%d waiting elements'] = '%d waiting elements'; 43 43 $lang['About'] = 'About'; 44 $lang['At least one listed rule must be satisfied.'] = 'At least one listed rule must be satisfied.'; 44 45 $lang['Author'] = 'Author'; 45 46 $lang['Average rate'] = 'Average rate'; … … 48 49 $lang['Close this window'] = 'Close this window'; 49 50 $lang['Confirm Password'] = 'Confirm Password'; 51 $lang['Connection settings'] = 'Connection settings'; 50 52 $lang['Connection'] = 'Connection'; 51 $lang['Quick connect'] = 'Quick connect';52 $lang['Connection settings'] = 'Connection settings';53 53 $lang['Contact webmaster'] = 'Contact webmaster'; 54 54 $lang['Create a new account'] = 'Create a new account'; … … 57 57 $lang['Dimensions'] = 'Dimensions'; 58 58 $lang['Display'] = 'Display'; 59 $lang['Each listed rule must be satisfied.'] = 'Each listed rule must be satisfied.'; 59 60 $lang['Email address is missing'] = 'Email address is missing'; 60 61 $lang['Email address'] = 'Email address'; … … 86 87 $lang['PhpWebGallery Help'] = 'PhpWebGallery Help'; 87 88 $lang['Profile'] = 'Profile'; 89 $lang['Quick connect'] = 'Quick connect'; 88 90 $lang['RSS feed'] = 'RSS feed'; 89 91 $lang['Register'] = 'Register'; … … 92 94 $lang['Reset'] = 'Reset'; 93 95 $lang['Retrieve password'] = 'Retrieve password'; 96 $lang['Search rules'] = 'Search rules'; 94 97 $lang['Search'] = 'Search'; 95 98 $lang['Send new password'] = 'Send new password'; … … 109 112 $lang['add_favorites_hint'] = 'Add this picture to your favorites'; 110 113 $lang['admin'] = 'Administration'; 114 $lang['all'] = 'all'; 111 115 $lang['all_categories'] = 'all categories'; 112 116 $lang['already_rated'] = 'You\'ve already rated this item'; 117 $lang['ascending'] = 'ascending'; 118 $lang['author(s) : %s'] = 'author(s) : %s'; 113 119 $lang['auto_expand'] = 'Expand all categories'; 120 $lang['became available after %s (%s)'] = 'became available after %s (%s)'; 121 $lang['became available before %s (%s)'] = 'became available before %s (%s)'; 122 $lang['became available between %s (%s) and %s (%s)'] = 'became available between %s (%s) and %s (%s)'; 123 $lang['became available on %s'] = 'became available on %s'; 114 124 $lang['best_rated_cat'] = 'best rated'; 115 125 $lang['best_rated_cat_hint'] = 'displays best rated items'; … … 119 129 $lang['calendar_picture_hint'] = 'displays pictures added on '; 120 130 $lang['categories'] = 'Categories'; 131 $lang['comment date'] = 'comment date'; 121 132 $lang['comment'] = 'Comment'; 122 133 $lang['comment_added'] = 'Your comment has been registered'; … … 129 140 $lang['comments_title'] = 'Comments from the users of the site'; 130 141 $lang['confirm_password_hint'] = 'You only have to confirm your new password if you wish to change it.'; 142 $lang['created after %s (%s)'] = 'created after %s (%s)'; 143 $lang['created before %s (%s)'] = 'created before %s (%s)'; 144 $lang['created between %s (%s) and %s (%s)'] = 'created between %s (%s) and %s (%s)'; 145 $lang['created on %s'] = 'created on %s'; 131 146 $lang['customize'] = 'Customize'; 132 147 $lang['customize_page_title'] = 'Your Gallery Customization '; … … 143 158 $lang['del_favorites_hint'] = 'Delete this picture from your favorites'; 144 159 $lang['delete'] = 'Delete'; 160 $lang['descending'] = 'descending'; 145 161 $lang['download'] = 'download'; 146 162 $lang['download_hint'] = 'download this file'; … … 148 164 $lang['edit'] = 'edit'; 149 165 $lang['err_date'] = 'wrong date'; 166 $lang['excluded'] = 'excluded'; 150 167 $lang['favorite_cat'] = 'My favorites'; 151 168 $lang['favorite_cat_hint'] = 'display my favorites pictures'; … … 169 186 $lang['identification'] = 'Identification'; 170 187 $lang['images_available'] = 'images in this category'; 188 $lang['included'] = 'included'; 171 189 $lang['invalid_pwd'] = 'Invalid password!'; 172 190 $lang['language']='Language'; … … 211 229 $lang['password_hint'] = 'You only have to give your password if you wish to change your e-mail'; 212 230 $lang['periods_error'] = 'Recent period must be a positive integer value'; 231 $lang['picture'] = 'picture'; 213 232 $lang['picture_high'] = 'Click on the picture to see it in high definition'; 214 233 $lang['picture_show_metadata'] = 'Show file metadata'; … … 259 278 $lang['search_subcats_included'] = 'Search in subcategroies'; 260 279 $lang['search_title'] = 'Search'; 280 $lang['searched words : %s'] = 'searched words : %s'; 261 281 $lang['send_mail'] = 'Contact'; 262 282 $lang['set as category representative'] = 'set as category representative'; … … 300 320 $lang['w_month'] = 'Month'; 301 321 $lang['yes'] = 'Yes'; 302 303 $lang['descending'] = 'descending';304 $lang['all'] = 'all';305 $lang['ascending'] = 'ascending';306 $lang['comment date'] = 'comment date';307 $lang['picture'] = 'picture';308 322 ?> -
trunk/language/fr_FR.iso-8859-1/common.lang.php
r969 r1015 41 41 $lang['%d new users'] = '%d nouveaux utilisateurs'; 42 42 $lang['About'] = 'À propos'; 43 $lang['At least one listed rule must be satisfied.'] = 'Au moins un des critères doit être satisfait.'; 43 44 $lang['Author'] = 'Auteur'; 44 45 $lang['Average rate'] = 'Note moyenne'; … … 47 48 $lang['Close this window'] = 'Fermer cette fenêtre'; 48 49 $lang['Confirm Password'] = 'Confirmer le mot de passe'; 50 $lang['Connection settings'] = 'Paramètres de connexion'; 49 51 $lang['Connection'] = 'Connexion'; 50 $lang['Quick connect'] = 'Connexion rapide';51 $lang['Connection settings'] = 'Paramètres de connexion';52 52 $lang['Contact webmaster'] = 'Contacter le webmestre'; 53 53 $lang['Create a new account'] = 'Créer un nouveau compte'; … … 56 56 $lang['Dimensions'] = 'Dimensions'; 57 57 $lang['Display'] = 'Affichage'; 58 $lang['Each listed rule must be satisfied.'] = 'Chaque critère doit être satisfait'; 58 59 $lang['Email address is missing'] = 'L\'adresse e-mail manque'; 59 60 $lang['Email address'] = 'Adresse e-mail'; … … 85 86 $lang['PhpWebGallery Help'] = 'Aide de PhpWebGallery'; 86 87 $lang['Profile'] = 'Profil'; 88 $lang['Quick connect'] = 'Connexion rapide'; 87 89 $lang['RSS feed'] = 'flux RSS'; 88 90 $lang['Register'] = 'S\'enregistrer'; … … 91 93 $lang['Reset'] = 'Annuler'; 92 94 $lang['Retrieve password'] = 'Récupérer un mot de passe'; 95 $lang['Search rules'] = 'Critères de recherche'; 93 96 $lang['Search'] = 'Rechercher'; 94 97 $lang['Send new password'] = 'Envoyer le nouveau mot de passe'; … … 112 115 $lang['already_rated'] = 'Vous avez déjà voté pour cette image'; 113 116 $lang['ascending'] = 'croissant'; 117 $lang['author(s) : %s'] = 'auteur(s) : %s'; 114 118 $lang['auto_expand'] = 'Développer toutes les catégories'; 119 $lang['became available after %s (%s)'] = 'mis à disposition après le %s (%s)'; 120 $lang['became available before %s (%s)'] = 'mis à disposition avant le %s (%s)'; 121 $lang['became available between %s (%s) and %s (%s)'] = 'mis à disposition entre le %s (%s) et le %s (%s)'; 122 $lang['became available on %s'] = 'mis à disposition le %s'; 115 123 $lang['best_rated_cat'] = 'Mieux notées'; 116 124 $lang['best_rated_cat_hint'] = 'affiche les images les mieux notées'; … … 131 139 $lang['comments_title'] = 'Commentaires des utilisateurs'; 132 140 $lang['confirm_password_hint'] = 'Vous n\'avez à confirmer votre mot de passe que si vous désirez en changer.'; 141 $lang['created after %s (%s)'] = 'créée après le %s (%s)'; 142 $lang['created before %s (%s)'] = 'créée avant le %s (%s)'; 143 $lang['created between %s (%s) and %s (%s)'] = 'créée entre le %s (%s) et le %s (%s)'; 144 $lang['created on %s'] = 'créée le %s'; 133 145 $lang['customize'] = 'Personnaliser'; 134 146 $lang['customize_page_title'] = 'Personnalisation de votre affichage '; … … 151 163 $lang['edit'] = 'éditer'; 152 164 $lang['err_date'] = 'date erronée'; 165 $lang['excluded'] = 'exclus'; 153 166 $lang['favorite_cat'] = 'Mes favorites'; 154 167 $lang['favorite_cat_hint'] = 'afficher mes images favorites'; … … 172 185 $lang['identification'] = 'Identification'; 173 186 $lang['images_available'] = 'images dans cette catégorie'; 187 $lang['included'] = 'inclus'; 174 188 $lang['invalid_pwd'] = 'Mot de passe invalide !'; 175 189 $lang['language'] = 'Langue'; … … 263 277 $lang['search_subcats_included'] = 'Rechercher dans les sous-catégories'; 264 278 $lang['search_title'] = 'Recherche'; 279 $lang['searched words : %s'] = 'mots recherchés : %s'; 265 280 $lang['send_mail'] = 'Contacter'; 266 281 $lang['set as category representative'] = 'élire comme représentant de cette catégorie'; -
trunk/search.php
r1009 r1015 65 65 { 66 66 $search['fields']['author'] = array( 67 'words' => array($_POST['search_author']), 67 'words' => preg_split( 68 '/\s+/', 69 $_POST['search_author'] 70 ), 71 'mode' => 'OR', 68 72 ); 69 73 } -
trunk/template/yoga/category.tpl
r972 r1015 108 108 <ul class="categoryActions"> 109 109 <li> </li> 110 110 111 <!-- BEGIN caddie --> 111 112 <li><a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a></li> 112 113 <!-- END caddie --> 114 113 115 <!-- BEGIN edit --> 114 116 <li><a href="{edit.URL}" title="{lang:edit category informations}"><img src="{themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li> 115 117 <!-- END edit --> 118 119 <!-- BEGIN search_rules --> 120 <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}"><img src="{themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li> 121 <!-- END search_rules --> 122 116 123 </ul> 117 <h2>{TITLE}</h2> 118 </div> 124 125 <h2>{TITLE}</h2> 126 127 </div> <!-- content --> 128 119 129 <!-- BEGIN calendar --> 120 130 <div class="navigationBar">{calendar.YEARS_NAV_BAR}</div>
Note: See TracChangeset
for help on using the changeset viewer.