- Timestamp:
- Apr 5, 2006, 4:01:36 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_calendar.inc.php
r1109 r1125 38 38 ( isset($page['category']) and is_numeric($page['category']) ) ) 39 39 { // we will regenerate the items by including subcats elements 40 $page['cat_nb_images'] = 0;41 40 $page['items'] = array(); 42 41 $inner_sql .= ' … … 187 186 unset( 188 187 $page['thumbnails_include'], 189 $page['items'], 190 $page['cat_nb_images'] 188 $page['items'] 191 189 ); 192 190 … … 271 269 272 270 $page['items'] = array_from_query($query, 'id'); 273 $page['cat_nb_images'] = count($page['items']);274 271 $page['thumbnails_include'] = 'include/category_default.inc.php'; 275 272 } -
trunk/include/section_init.inc.php
r1120 r1125 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 5PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) … … 299 299 'cat_dir' => $result['dir'], 300 300 'cat_name' => $result['name'], 301 'cat_nb_images' => $result['nb_images'],302 301 'cat_site_id' => $result['site_id'], 303 302 'cat_uploadable' => $result['uploadable'], … … 365 364 $query = ' 366 365 SELECT image_id 367 FROM '.IMAGE_CATEGORY_TABLE.' 366 FROM '.IMAGE_CATEGORY_TABLE.' INNER JOIN '.IMAGES_TABLE.' ON image_id=id 368 367 WHERE image_id IN ('.implode(',', $items).') 369 AND '.$forbidden.' 368 AND '.$forbidden. 369 $conf['order_by'].' 370 370 ;'; 371 371 $items = array_unique( … … 512 512 array( 513 513 'title' => $lang['recent_cats_cat'], 514 'cat_nb_images' => 0,515 514 'thumbnails_include' => 'include/category_recent_cats.inc.php', 516 515 ) … … 592 591 ); 593 592 } 594 595 if (!isset($page['cat_nb_images']))596 {597 $page['cat_nb_images'] = count($page['items']);598 }599 593 } 600 594 … … 608 602 initialize_calendar(); 609 603 } 604 605 $page['cat_nb_images'] = isset($page['items']) ? count($page['items']) : 0; 610 606 611 607 if (basename($_SERVER['SCRIPT_FILENAME']) == 'picture.php' -
trunk/install/db/19-database.php
r1119 r1125 81 81 $tag_id[$keyword] = $current_id++; 82 82 } 83 83 84 84 if (!isset($tag_images[ $tag_id[$keyword] ])) 85 85 { … … 103 103 ); 104 104 } 105 if (!empty($datas)) 105 106 mass_inserts( 106 107 PREFIX_TABLE.'tags', … … 124 125 } 125 126 127 if (!empty($datas)) 126 128 mass_inserts( 127 129 PREFIX_TABLE.'image_tag', -
trunk/language/en_UK.iso-8859-1/common.lang.php
r1119 r1125 295 295 $lang['search_date_type'] = 'Kind of date'; 296 296 $lang['search_descending'] = 'Descending'; 297 $lang['search_explain'] = 'Use * as a wildcard for partial matches';298 297 $lang['search_keywords'] = 'Search for words'; 299 298 $lang['search_mode_and'] = 'Search for all terms '; -
trunk/language/en_UK.iso-8859-1/help/notification_by_mail.html
r1105 r1125 1 1 <h2>Notification by mail</h2> 2 2 3 <p>This screen allows to configure , to manage the notification to users of news sendinf mail.</p>3 <p>This screen allows to configure and manage email notifications to users of news on your site.</p> 4 4 5 5 <p>This screen is composed of 3 tabs:</p> … … 9 9 10 10 <h3>Subscribe</h3> 11 <p>Available only for webmasters, this tab manages subscri be/unsubscribe of notification by mail.</p>11 <p>Available only for webmasters, this tab manages subscription/unsubscription of users to email notifications.</p> 12 12 13 13 <h3>Envoi</h3> -
trunk/language/fr_FR.iso-8859-1/common.lang.php
r1119 r1125 295 295 $lang['search_date_type'] = 'Type de date'; 296 296 $lang['search_descending'] = 'Décroissant'; 297 $lang['search_explain'] = 'Utiliser * comme un joker pour une recherche partielle';298 297 $lang['search_keywords'] = 'Recherche de mot'; 299 298 $lang['search_mode_and'] = 'Rechercher tous les mots'; -
trunk/search.php
r1119 r1125 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 5PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) … … 73 73 ); 74 74 } 75 75 76 76 if ($_POST['search_author']) 77 77 { … … 177 177 178 178 $template->set_filenames( array('search'=>'search.tpl') ); 179 180 $available_tags = get_available_tags( 181 isset($user['forbidden_categories']) 182 ? explode(',', $user['forbidden_categories']) 183 : null 184 ); 185 usort( $available_tags, 'name_compare'); 186 179 187 $template->assign_vars(array( 180 'L_SEARCH_TITLE' => $lang['search_title'],181 'L_SEARCH_OPTIONS' => $lang['search_options'],182 'L_RETURN' => $lang['home'],183 'L_SUBMIT' => $lang['submit'],184 'L_RESET' => $lang['reset'],185 'L_SEARCH_KEYWORDS'=>$lang['search_keywords'],186 'L_SEARCH_ANY_TERMS'=>$lang['search_mode_or'],187 'L_SEARCH_ALL_TERMS'=>$lang['search_mode_and'],188 'L_SEARCH_AUTHOR'=>$lang['search_author'],189 'L_SEARCH_AUTHOR_HINT'=>$lang['search_explain'],190 'L_SEARCH_CATEGORIES'=>$lang['search_categories'],191 'L_SEARCH_SUBFORUMS'=>$lang['search_subcats_included'],192 'L_YES' => $lang['yes'],193 'L_NO' => $lang['no'],194 'L_SEARCH_DATE' => $lang['search_date'],195 'L_TODAY' => $lang['today'],196 'L_SEARCH_DATE_FROM'=>$lang['search_date_from'],197 'L_SEARCH_DATE_TO'=>$lang['search_date_to'],198 'L_DAYS'=>$lang['days'],199 'L_MONTH'=>$lang['w_month'],200 'L_SEARCH_DATE_TYPE'=>$lang['search_date_type'],201 'L_RESULT_SORT'=>$lang['search_sort'],202 'L_SORT_ASCENDING'=>$lang['search_ascending'],203 'L_SORT_DESCENDING'=>$lang['search_descending'],204 205 188 'TODAY_DAY' => date('d', time()), 206 189 'TODAY_MONTH' => date('m', time()), … … 211 194 212 195 'TAG_SELECTION' => get_html_tag_selection( 213 get_available_tags( 214 isset($user['forbidden_categories']) 215 ? explode(',', $user['forbidden_categories']) 216 : null 217 ), 196 $available_tags, 218 197 'tags', 219 198 isset($_POST['tags']) ? $_POST['tags'] : array() -
trunk/template/yoga/search.tpl
r1119 r1125 22 22 <table width="100%" align="center" cellpadding="2"> 23 23 <tr> 24 <td width="50%" colspan="2"><b>{ L_SEARCH_KEYWORDS} : </b>24 <td width="50%" colspan="2"><b>{lang:search_keywords} : </b> 25 25 <td colspan="2" valign="top"> 26 26 <input type="text" style="width: 300px" name="search_allwords" size="30" /> 27 27 <br /> 28 <input type="radio" name="mode" value="AND" checked="checked" /> { L_SEARCH_ALL_TERMS}<br />29 <input type="radio" name="mode" value="OR" /> { L_SEARCH_ANY_TERMS}28 <input type="radio" name="mode" value="AND" checked="checked" /> {lang:search_mode_and}<br /> 29 <input type="radio" name="mode" value="OR" /> {lang:search_mode_or} 30 30 </td> 31 31 </tr> 32 32 <tr> 33 <td colspan="2"><b>{ L_SEARCH_AUTHOR} :</b>33 <td colspan="2"><b>{lang:search_author} :</b> 34 34 <td colspan="2" valign="middle"> 35 35 <input type="text" style="width: 300px" name="search_author" size="30" /> 36 36 </td> 37 37 </tr> 38 38 39 39 <tr> 40 40 <td colspan="2"><b>{lang:Search tags} :</b></td> … … 45 45 </td> 46 46 </tr> 47 47 48 48 <tr> 49 <td colspan="2"><b>{ L_SEARCH_DATE} :</b>49 <td colspan="2"><b>{lang:search_date} :</b> 50 50 <td colspan="2" valign="middle"> 51 51 <table> 52 52 <tr> 53 <td>{ L_SEARCH_DATE_FROM} :</td>53 <td>{lang:search_date_from} :</td> 54 54 <td> 55 55 <select name="start_day"> … … 64 64 </select> 65 65 <input name="start_year" type="text" size="4" maxlength="4"> 66 <a href="#" name="#" onClick="document.post.start_day.value={TODAY_DAY};document.post.start_month.value={TODAY_MONTH};document.post.start_year.value={TODAY_YEAR};" />{ L_TODAY}</a>66 <a href="#" name="#" onClick="document.post.start_day.value={TODAY_DAY};document.post.start_month.value={TODAY_MONTH};document.post.start_year.value={TODAY_YEAR};" />{lang:today}</a> 67 67 </td> 68 68 </tr> 69 69 <tr> 70 <td>{ L_SEARCH_DATE_TO} :</td>70 <td>{lang:search_date_to} :</td> 71 71 <td> 72 72 <select name="end_day"> … … 81 81 </select> 82 82 <input name="end_year" type="text" size="4" maxlength="4"> 83 <a href="#" name="#" onClick="document.post.end_day.value={TODAY_DAY};document.post.end_month.value={TODAY_MONTH};document.post.end_year.value={TODAY_YEAR};" />{ L_TODAY}</a>83 <a href="#" name="#" onClick="document.post.end_day.value={TODAY_DAY};document.post.end_month.value={TODAY_MONTH};document.post.end_year.value={TODAY_YEAR};" />{lang:today}</a> 84 84 </td> 85 85 </tr> … … 88 88 </tr> 89 89 <tr class="admin"> 90 <th colspan="4">{ L_SEARCH_OPTIONS}</th>90 <th colspan="4">{lang:search_options}</th> 91 91 </tr> 92 92 <tr> 93 <td width="25%" ><b>{ L_SEARCH_CATEGORIES} : </b>93 <td width="25%" ><b>{lang:search_categories} : </b> 94 94 <td width="25%" nowrap="nowrap"> 95 95 <select style="width:200px" name="cat[]" multiple="multiple" size="8"> … … 99 99 </select> 100 100 </td> 101 <td width="25%" nowrap="nowrap"><b>{ L_SEARCH_SUBFORUMS} : </b></td>101 <td width="25%" nowrap="nowrap"><b>{lang:search_subcats_included} : </b></td> 102 102 <td width="25%" nowrap="nowrap"> 103 <input type="radio" name="subcats-included" value="1" checked="checked" />{ L_YES} 104 <input type="radio" name="subcats-included" value="0" />{ L_NO}103 <input type="radio" name="subcats-included" value="1" checked="checked" />{lang:yes} 104 <input type="radio" name="subcats-included" value="0" />{lang:no} 105 105 </td> 106 106 </tr> 107 107 <tr> 108 <td width="25%" nowrap="nowrap"><b>{ L_SEARCH_DATE_TYPE} : </b></td>108 <td width="25%" nowrap="nowrap"><b>{lang:search_date_type} : </b></td> 109 109 <td width="25%" nowrap="nowrap"> 110 110 <input type="radio" name="date_type" value="date_creation" checked="checked" />{lang:Creation date}<br /> 111 111 <input type="radio" name="date_type" value="date_available" />{lang:Post date} 112 112 </td> 113 <td><b>{ L_RESULT_SORT} : </b></td>113 <td><b>{lang:search_sort} : </b></td> 114 114 <td nowrap="nowrap"> 115 <input type="radio" name="sd" value="AND" />{ L_SORT_ASCENDING}<br />116 <input type="radio" name="sd" value="d" checked="checked" />{ L_SORT_DESCENDING}115 <input type="radio" name="sd" value="AND" />{lang:search_ascending}<br /> 116 <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending} 117 117 </td> 118 118 </tr> … … 126 126 </tr> 127 127 <tr> 128 <td><b>{ L_RESULT_SORT} : </b></td>128 <td><b>{lang:search_sort} : </b></td> 129 129 <td nowrap="nowrap"> 130 130 {S_SELECT_SORT_KEY}<br /> 131 <input type="radio" name="sd" value="a" />{ L_SORT_ASCENDING}<br />132 <input type="radio" name="sd" value="d" checked="checked" />{ L_SORT_DESCENDING}131 <input type="radio" name="sd" value="a" />{lang:search_ascending}<br /> 132 <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending} 133 133 </td> 134 134 <td nowrap="nowrap"><b>{L_DISPLAY_RESULTS} : </b></td> … … 141 141 <tr> 142 142 <td align="center" valign="bottom" colspan="4" height="38"> 143 <input type="submit" name="submit" value="{ L_SUBMIT}" class="bouton" /> 144 <input type="reset" value="{ L_RESET}" class="bouton" />143 <input type="submit" name="submit" value="{lang:submit}" class="bouton" /> 144 <input type="reset" value="{lang:reset}" class="bouton" /> 145 145 </td> 146 146 </table>
Note: See TracChangeset
for help on using the changeset viewer.