1<table class="data"> 2 <caption class="tblHeaders"> 3 {{ 'Search results for "<em>%s</em>" %s:'|format( 4 criteria_search_string, 5 search_type_description 6 )|raw }} 7 </caption> 8 {% for row in rows %} 9 <tr class="noclick"> 10 <td> 11 {% set result_message %} 12 {% trans %} 13 %1$s match in <strong>%2$s</strong> 14 {% plural row.result_count %} 15 %1$s matches in <strong>%2$s</strong> 16 {% endtrans %} 17 {% endset %} 18 {{ result_message|format(row.result_count, row.table)|raw }} 19 </td> 20 {% if row.result_count > 0 %} 21 {% set url_params = { 22 'db': db, 23 'table': row.table, 24 'goto': 'db_sql.php', 25 'pos': 0, 26 'is_js_confirmed': 0 27 } %} 28 <td> 29 <a name="browse_search" 30 class="ajax browse_results" 31 href="sql.php{{ Url_getCommon(url_params) }}" 32 data-browse-sql="{{ row.new_search_sqls.select_columns }}" 33 data-table-name="{{ row.table }}"> 34 {% trans 'Browse' %} 35 </a> 36 </td> 37 <td> 38 <a name="delete_search" 39 class="ajax delete_results" 40 href="sql.php{{ Url_getCommon(url_params) }}" 41 data-delete-sql="{{ row.new_search_sqls.delete }}" 42 data-table-name="{{ row.table }}"> 43 {% trans 'Delete' %} 44 </a> 45 </td> 46 {% else %} 47 <td></td> 48 <td></td> 49 {% endif %} 50 </tr> 51 {% endfor %} 52</table> 53 54{% if criteria_tables|length > 1 %} 55 <p> 56 {% trans %} 57 <strong>Total:</strong> <em>{{ count }}</em> match 58 {% plural result_total %} 59 <strong>Total:</strong> <em>{{ count }}</em> matches 60 {% endtrans %} 61 </p> 62{% endif %} 63