本文整理汇总了PHP中filter_db_get_available_queries函数的典型用法代码示例。如果您正苦于以下问题:PHP filter_db_get_available_queries函数的具体用法?PHP filter_db_get_available_queries怎么用?PHP filter_db_get_available_queries使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了filter_db_get_available_queries函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: filter_draw_selection_area2
//.........这里部分代码省略.........
?>
<input type="hidden"
name="<?php
echo FILTER_PROPERTY_HIGHLIGHT_CHANGED;
?>
"
value="<?php
echo string_attribute($t_filter[FILTER_PROPERTY_HIGHLIGHT_CHANGED]);
?>
"
/>
</td>
<td colspan="4"> </td>
</tr>
</table>
<?php
}
# expanded
collapse_icon('filter');
echo '<div class="search-box">';
echo '<label>';
echo lang_get('search') . ' ';
echo '<input type="text" size="16" name="', FILTER_PROPERTY_SEARCH, '" value="', string_attribute($t_filter[FILTER_PROPERTY_SEARCH]), '" />';
echo '</label>';
echo '</div>';
?>
<div class="submit-query"><input type="submit" name="filter" value="<?php
echo lang_get('filter_button');
?>
" /></div>
</form>
<?php
$t_stored_queries_arr = filter_db_get_available_queries();
if (access_has_project_level(config_get('stored_query_create_threshold'))) {
?>
<div class="save-query">
<form method="post" name="save_query" action="query_store_page.php">
<?php
# CSRF protection not required here - form does not result in modifications
?>
<input type="submit" name="save_query_button" class="button-small" value="<?php
echo lang_get('save_query');
?>
" />
</form>
</div><?php
}
if (count($t_stored_queries_arr) > 0) {
?>
<div class="manage-queries">
<form method="post" name="open_queries" action="query_view_page.php">
<?php
# CSRF protection not required here - form does not result in modifications
?>
<input type="submit" name="switch_to_query_button" class="button-small" value="<?php
echo lang_get('open_queries');
?>
" />
</form>
</div>
<div class="stored-queries">
<form method="get" name="list_queries<?php
echo $t_form_name_suffix;
?>
" action="view_all_set.php">
开发者ID:vipjaven,项目名称:mantisbt,代码行数:67,代码来源:filter_api.php
示例2: require_api
require_api('constant_inc.php');
require_api('filter_api.php');
require_api('form_api.php');
require_api('gpc_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
auth_ensure_user_authenticated();
compress_enable();
html_page_top();
?>
<br />
<div align="center">
<?php
$t_query_to_store = filter_db_get_filter(gpc_get_cookie(config_get('view_all_cookie'), ''));
$t_query_arr = filter_db_get_available_queries();
# Let's just see if any of the current filters are the
# same as the one we're about the try and save
foreach ($t_query_arr as $t_id => $t_name) {
if (filter_db_get_filter($t_id) == $t_query_to_store) {
print lang_get('query_exists') . ' (' . $t_name . ')<br />';
}
}
# Check for an error
$t_error_msg = strip_tags(gpc_get_string('error_msg', null));
if ($t_error_msg != null) {
print "<br />{$t_error_msg}<br /><br />";
}
print lang_get('query_name_label') . lang_get('word_separator');
?>
<form method="post" action="query_store.php">
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:query_store_page.php
示例3: filter_draw_selection_area2
//.........这里部分代码省略.........
print string_html_specialchars($t_filter['search']);
?>
" />
<input type="submit" name="filter" class="button-small" value="<?php
print lang_get('filter_button');
?>
" />
</td>
</form>
<td class="center" colspan="<?php
echo $t_filter_cols - 6;
?>
"> <!-- use this label for padding -->
<?php
if (ON == config_get('dhtml_filters')) {
$f_switch_view_link = 'view_all_set.php?type=6&view_type=';
} else {
$f_switch_view_link = 'view_filters_page.php?view_type=';
}
if (SIMPLE_ONLY != config_get('view_filters') && ADVANCED_ONLY != config_get('view_filters')) {
if ('advanced' == $t_view_type) {
print_bracket_link($f_switch_view_link . 'simple', lang_get('simple_filters'));
} else {
print_bracket_link($f_switch_view_link . 'advanced', lang_get('advanced_filters'));
}
print_bracket_link('permalink_page.php?url=' . urlencode(filter_get_url($t_filter)), lang_get('create_filter_link'), true);
}
?>
</td>
<td class="right" colspan="4">
<?php
$t_stored_queries_arr = array();
$t_stored_queries_arr = filter_db_get_available_queries();
if (count($t_stored_queries_arr) > 0) {
?>
<form method="get" name="list_queries<?php
echo $t_form_name_suffix;
?>
" action="view_all_set.php">
<input type="hidden" name="type" value="3" />
<?php
if (ON == config_get('use_javascript')) {
echo "<select name=\"source_query_id\" onchange=\"document.forms.list_queries{$t_form_name_suffix}.submit();\">";
} else {
print '<select name="source_query_id">';
}
?>
<option value="-1"><?php
print '[' . lang_get('reset_query') . ']';
?>
</option>
<option value="-1"></option>
<?php
foreach ($t_stored_queries_arr as $t_query_id => $t_query_name) {
print '<option value="' . $t_query_id . '">' . $t_query_name . '</option>';
}
?>
</select>
<input type="submit" name="switch_to_query_button" class="button-small" value="<?php
print lang_get('use_query');
?>
" />
</form>
<form method="post" name="open_queries" action="query_view_page.php">
<input type="submit" name="switch_to_query_button" class="button-small" value="<?php
开发者ID:amjadtbssm,项目名称:website,代码行数:67,代码来源:filter_api.php
示例4: category_get_all_rows
# Improve performance by caching category data in one pass
category_get_all_rows(helper_get_current_project());
compress_enable();
# don't index my view page
html_robots_noindex();
html_page_top1(plugin_lang_get('title'));
if (current_user_get_pref('refresh_delay') > 0) {
html_meta_redirect(plugin_page('dashboard', true), current_user_get_pref('refresh_delay') * 60);
}
html_page_top2();
print_recently_visited();
$f_page_number = gpc_get_int('page_number', 1);
$t_per_page = config_get('my_view_bug_count');
$t_bug_count = null;
$t_page_count = null;
$t_filters = filter_db_get_available_queries();
$t_config_boxes = plugin_config_get('boxes');
$t_boxes = array();
if (is_array($t_config_boxes) && sizeof($t_config_boxes) > 0) {
$t_result = asort($t_config_boxes);
foreach ($t_config_boxes as $t_filter_id => $t_box_position) {
if ($t_box_position > 0 && array_key_exists($t_filter_id, $t_filters)) {
$t_boxes[$t_filter_id] = $t_filters[$t_filter_id];
}
}
} else {
// Show all filters
$t_boxes = $t_filters;
}
$t_project_id = helper_get_current_project();
?>
开发者ID:rolfkleef,项目名称:mantisbt-dashboard,代码行数:31,代码来源:dashboard.php
示例5: filter_draw_selection_area2
//.........这里部分代码省略.........
<input type="submit" name="filter" class="button-small" value="<?php
echo lang_get('filter_button');
?>
" />
</td>
</form>
<td class="center" colspan="<?php
echo $t_filter_cols - 6;
?>
"> <!-- use this label for padding -->
<?php
if (ON == config_get('dhtml_filters')) {
$f_switch_view_link = 'view_all_set.php?type=6&view_type=';
} else {
$f_switch_view_link = 'view_filters_page.php?view_type=';
}
$t_view_filters = config_get('view_filters');
if (SIMPLE_ONLY != $t_view_filters && ADVANCED_ONLY != $t_view_filters) {
if ('advanced' == $t_view_type) {
print_bracket_link($f_switch_view_link . 'simple', lang_get('simple_filters'));
} else {
print_bracket_link($f_switch_view_link . 'advanced', lang_get('advanced_filters'));
}
}
if (access_has_project_level(config_get('create_permalink_threshold'))) {
print_bracket_link('permalink_page.php?url=' . urlencode(filter_get_url($t_filter)), lang_get('create_filter_link'), true);
}
?>
</td>
<td class="right" colspan="4">
<?php
$t_stored_queries_arr = array();
$t_stored_queries_arr = filter_db_get_available_queries();
if (count($t_stored_queries_arr) > 0) {
?>
<form method="get" name="list_queries<?php
echo $t_form_name_suffix;
?>
" action="view_all_set.php">
<?php
# CSRF protection not required here - form does not result in modifications
?>
<input type="hidden" name="type" value="3" />
<?php
if (ON == config_get('use_javascript')) {
echo "<select name=\"source_query_id\" onchange=\"document.forms.list_queries{$t_form_name_suffix}.submit();\">";
} else {
echo '<select name="source_query_id">';
}
?>
<option value="-1"><?php
echo '[' . lang_get('reset_query') . ']';
?>
</option>
<option value="-1"></option>
<?php
foreach ($t_stored_queries_arr as $t_query_id => $t_query_name) {
echo '<option value="' . string_attribute($t_query_id) . '">' . string_display_line($t_query_name) . '</option>';
}
?>
</select>
<input type="submit" name="switch_to_query_button" class="button-small" value="<?php
echo lang_get('use_query');
?>
" />
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:67,代码来源:filter_api.php
注:本文中的filter_db_get_available_queries函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论