Changeset 1119 for trunk/search_rules.php
- Timestamp:
- Apr 3, 2006, 12:26:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/search_rules.php
r1113 r1119 84 84 } 85 85 86 if (isset($search['fields']['tags'])) 87 { 88 $template->assign_block_vars( 89 'tags', 90 array( 91 'LIST_INTRO' => ($search['fields']['tags']['mode'] == 'AND') 92 ? l10n('All tags must match') 93 : l10n('At least one tag must match') 94 ) 95 ); 96 97 $query = ' 98 SELECT name 99 FROM '.TAGS_TABLE.' 100 WHERE id IN ('.implode(',', $search['fields']['tags']['words']).') 101 ;'; 102 $result = pwg_query($query); 103 while ($row = mysql_fetch_array($result)) 104 { 105 $template->assign_block_vars( 106 'tags.tag', 107 array( 108 'NAME' => $row['name'], 109 ) 110 ); 111 } 112 } 113 86 114 if (isset($search['fields']['author'])) 87 115 {
Note: See TracChangeset
for help on using the changeset viewer.