本文整理汇总了PHP中collapse_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP collapse_icon函数的具体用法?PHP collapse_icon怎么用?PHP collapse_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了collapse_icon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_bug
function display_bug($p_event, $p_bug_id)
{
require_once 'Source.ViewAPI.php';
$t_project_id = bug_get_field($p_bug_id, 'project_id');
$t_view_threshold = config_get('plugin_Source_view_threshold');
if (!access_has_project_level($t_view_threshold, $t_project_id)) {
return;
}
$t_changesets = $this->changesets;
if (count($t_changesets) < 1) {
return;
}
collapse_open('Source');
?>
<br/>
<a name="changesets"/>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title"><?php
collapse_icon('Source');
echo plugin_lang_get('related_changesets', 'Source');
?>
</td>
</tr>
<?php
Source_View_Changesets($t_changesets);
?>
</table>
<?php
collapse_closed('Source');
?>
<br/>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title"><?php
collapse_icon('Source');
echo plugin_lang_get('related_changesets', 'Source');
?>
</td>
</tr>
</table>
<?php
collapse_end('Source');
}
示例2: collapse_closed
</td>
</tr>
<?php
}
?>
</table>
<?php
collapse_closed('sponsorship');
?>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title">
<?php
collapse_icon('sponsorship');
echo lang_get('users_sponsoring_bug');
$t_details_url = lang_get('sponsorship_process_url');
if (!is_blank($t_details_url)) {
echo ' [<a href="' . $t_details_url . '" target="_blank">' . lang_get('sponsorship_more_info') . '</a>]';
}
if ($t_total_sponsorship > 0) {
echo ' <span style="font-weight: normal;">(';
echo sprintf(lang_get('total_sponsorship_amount'), sponsorship_format_amount($t_total_sponsorship));
echo ')</span>';
}
?>
</td>
</tr>
</table>
示例3: lang_get
<?php
echo lang_get('total_time');
?>
</td>
<td class="small-caption bold">
<?php
echo db_minutes_to_hhmm($t_sum_in_minutes);
?>
</td>
</tr>
</table>
<?php
}
# end if
collapse_closed('bugnotestats');
?>
<table class="width100" cellspacing="0">
<tr>
<td class="form-title" colspan="4">
<?php
collapse_icon('bugnotestats');
echo lang_get('time_tracking');
?>
</td>
</tr>
</table>
<?php
collapse_end('bugnotestats');
示例4: lang_get
echo lang_get('add_user_to_monitor');
?>
" />
</form>
<?php
}
?>
</td>
</tr>
</table>
<?php
collapse_closed('monitoring');
?>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="2"><?php
collapse_icon('monitoring');
?>
<?php
echo lang_get('users_monitoring_bug');
?>
</td>
</tr>
</table>
<?php
collapse_end('monitoring');
?>
<?php
}
# show monitor list
示例5: lang_get
<tr class="row-1">
<td class="category" width="15%">
<?php echo lang_get( 'select_file' ) ?><br />
<?php //FIXME: hard coded "k" in here. ?>
<span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) ?>k</span>
</td>
<td width="85%">
<input type="hidden" name="bug_id" value="<?php echo $f_bug_id ?>" />
<input type="hidden" name="max_file_size" value="<?php echo $t_max_file_size ?>" />
<input name="file" type="file" size="40" />
<input type="submit" class="button" value="<?php echo lang_get( 'upload_file_button' ) ?>" />
</td>
</tr>
</table>
</form>
<?php
collapse_closed( 'upload_form' );
?>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<?php
collapse_icon( 'upload_form' );
echo lang_get( 'upload_file' ) ?>
</td>
</tr>
</table>
<?php
collapse_end( 'upload_form' );
示例6: view_bug_time
/**
* Show TimeTracking information when viewing bugs.
* @param string Event name
* @param int Bug ID
*/
function view_bug_time($p_event, $p_bug_id)
{
$table = plugin_table('data');
$t_user_id = auth_get_current_user_id();
# Pull all Time-Record entries for the current Bug
if (access_has_bug_level(plugin_config_get('view_others_threshold'), $p_bug_id)) {
$query_pull_timerecords = "SELECT * FROM {$table} WHERE bug_id = {$p_bug_id} ORDER BY timestamp DESC";
} else {
if (access_has_bug_level(plugin_config_get('admin_own_threshold'), $p_bug_id)) {
$query_pull_timerecords = "SELECT * FROM {$table} WHERE bug_id = {$p_bug_id} and user = {$t_user_id} ORDER BY timestamp DESC";
} else {
// User has no access
return;
}
}
$result_pull_timerecords = db_query($query_pull_timerecords);
$num_timerecords = db_num_rows($result_pull_timerecords);
# Get Sum for this bug
$query_pull_hours = "SELECT SUM(hours) as hours FROM {$table} WHERE bug_id = {$p_bug_id}";
$result_pull_hours = db_query($query_pull_hours);
$row_pull_hours = db_fetch_array($result_pull_hours);
?>
<a name="timerecord" id="timerecord" /><br />
<?php
collapse_open('timerecord');
?>
<table class="width100" cellspacing="1">
<tr>
<td colspan="6" class="form-title">
<?php
collapse_icon('timerecord');
echo plugin_lang_get('title');
?>
</td>
</tr>
<tr class="row-category">
<td><div align="center"><?php
echo plugin_lang_get('user');
?>
</div></td>
<td><div align="center"><?php
echo plugin_lang_get('expenditure_date');
?>
</div></td>
<td><div align="center"><?php
echo plugin_lang_get('hours');
?>
</div></td>
<td><div align="center"><?php
echo plugin_lang_get('information');
?>
</div></td>
<td><div align="center"><?php
echo plugin_lang_get('entry_date');
?>
</div></td>
<td> </td>
</tr>
<?php
if (access_has_bug_level(plugin_config_get('admin_own_threshold'), $p_bug_id)) {
$current_date = explode("-", date("Y-m-d"));
?>
<form name="time_tracking" method="post" action="<?php
echo plugin_page('add_record');
?>
" >
<?php
echo form_security_field('plugin_TimeTracking_add_record');
?>
<input type="hidden" name="bug_id" value="<?php
echo $p_bug_id;
?>
">
<tr <?php
echo helper_alternate_class();
?>
>
<td><?php
echo user_get_name(auth_get_current_user_id());
?>
</td>
<td nowrap>
<div align="center">
<select tabindex="5" name="day"><?php
print_day_option_list($current_date[2]);
?>
//.........这里部分代码省略.........
示例7: print_bug_attachment
/**
* Prints information about a single attachment including download link, file
* size, upload timestamp and an expandable preview for text and image file
* types.
* @param array $p_attachment An attachment arrray from within the array returned by the file_get_visible_attachments() function
*/
function print_bug_attachment($p_attachment)
{
$t_show_attachment_preview = $p_attachment['preview'] && $p_attachment['exists'] && ($p_attachment['type'] == 'text' || $p_attachment['type'] == 'image');
if ($t_show_attachment_preview) {
$t_collapse_id = 'attachment_preview_' . $p_attachment['id'];
global $g_collapse_cache_token;
$g_collapse_cache_token[$t_collapse_id] = false;
collapse_open($t_collapse_id);
}
print_bug_attachment_header($p_attachment);
if ($t_show_attachment_preview) {
echo lang_get('word_separator');
collapse_icon($t_collapse_id);
if ($p_attachment['type'] == 'text') {
print_bug_attachment_preview_text($p_attachment);
} else {
if ($p_attachment['type'] === 'image') {
print_bug_attachment_preview_image($p_attachment);
}
}
collapse_closed($t_collapse_id);
print_bug_attachment_header($p_attachment);
echo lang_get('word_separator');
collapse_icon($t_collapse_id);
collapse_end($t_collapse_id);
}
}
示例8: filter_draw_selection_area2
//.........这里部分代码省略.........
?>
"
<?php
#echo $t_dynamic_filter_expander_class;
?>
>
<?php
echo lang_get('changed_label');
?>
</a>
</td>
<td class="small-caption" valign="top" id="highlight_changed_filter_target">
<?php
echo $t_filter[FILTER_PROPERTY_HIGHLIGHT_CHANGED];
?>
<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">
示例9: filter_draw_selection_area2
//.........这里部分代码省略.........
$t_this_name = lang_get('current');
} else {
$t_this_name = project_get_name($t_current, false);
}
if ($t_first_flag != true) {
$t_output = $t_output . '<br />';
} else {
$t_first_flag = false;
}
$t_output = $t_output . string_display_line($t_this_name);
}
echo $t_output;
}
?>
</td>
<?php
if ($t_filter_cols > 6) {
echo '<td class="small-caption" valign="top" colspan="' . ($t_filter_cols - 5) . '"> </td>';
}
} else {
if ($t_filter_cols > 3) {
echo '<td class="small-caption" valign="top" colspan="' . ($t_filter_cols - 2) . '"> </td>';
}
}
?>
</tr>
<?php
}
// expanded
?>
<tr>
<td colspan="2">
<?php
collapse_icon('filter');
echo lang_get('search') . ' ';
echo '<input type="text" size="16" name="', FILTER_PROPERTY_FREE_TEXT, '" value="', string_attribute($t_filter[FILTER_PROPERTY_FREE_TEXT]), '" />';
?>
<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);
}
?>
示例10: print_bug_attachment
/**
* Prints information about a single attachment including download link, file
* size, upload timestamp and an expandable preview for text and image file
* types.
* If $p_security_token is null, a token will be generated with form_security_token().
* If otherwise specified (i.e. not null), the parameter must contain
* a valid security token, previously generated by form_security_token().
* Use this to avoid performance issues when loading pages having many calls to
* this function, such as print_bug_attachments_list().
* @param array $p_attachment An attachment array from within the array returned by the file_get_visible_attachments() function.
* @param mixed $p_security_token Optional; null (default) or security token string.
* @see form_security_token()
* @return void
*/
function print_bug_attachment(array $p_attachment, $p_security_token = null)
{
$t_show_attachment_preview = $p_attachment['preview'] && $p_attachment['exists'] && ($p_attachment['type'] == 'text' || $p_attachment['type'] == 'image');
if ($t_show_attachment_preview) {
$t_collapse_id = 'attachment_preview_' . $p_attachment['id'];
global $g_collapse_cache_token;
$g_collapse_cache_token[$t_collapse_id] = false;
collapse_open($t_collapse_id);
}
# The same token is used for both links in the collapse section
if (null === $p_security_token) {
$p_security_token = form_security_token('bug_file_delete');
}
print_bug_attachment_header($p_attachment, $p_security_token);
if ($t_show_attachment_preview) {
echo lang_get('word_separator');
collapse_icon($t_collapse_id);
if ($p_attachment['type'] == 'text') {
print_bug_attachment_preview_text($p_attachment);
} else {
if ($p_attachment['type'] === 'image') {
print_bug_attachment_preview_image($p_attachment);
}
}
collapse_closed($t_collapse_id);
print_bug_attachment_header($p_attachment, $p_security_token);
echo lang_get('word_separator');
collapse_icon($t_collapse_id);
collapse_end($t_collapse_id);
}
}
示例11: helper_get_tab_index
<?php echo '<input ' . helper_get_tab_index() . ' type="text" id="due_date" name="due_date" class="datetime" size="20" maxlength="16" value="' . $t_date_to_display . '" />' ?>
</span>
<span class="label-style"></span>
</div>
<?php } ?>
<?php if( $t_show_platform || $t_show_os || $t_show_os_version ) { ?>
<div class="field-container">
<label><span><?php echo lang_get( 'select_profile' ) ?></span></label>
<span class="select">
<?php if( count( profile_get_all_for_user( auth_get_current_user_id() ) ) > 0 ) { ?>
<select <?php echo helper_get_tab_index() ?> id="profile_id" name="profile_id">
<?php print_profile_option_list( auth_get_current_user_id(), $f_profile_id ) ?>
</select>
<?php } ?>
<?php collapse_icon( 'profile' ); ?>
<?php echo lang_get( 'or_fill_in' ); ?>
</span>
<span class="label-style"></span>
</div>
<?php collapse_open( 'profile' ); ?>
<div class="field-container">
<label><span><?php echo lang_get( 'platform' ) ?></span></label>
<span class="input">
<?php if( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) { ?>
<select id="platform" name="platform">
<option value=""></option>
<?php print_platform_option_list( $f_platform ); ?>
</select>
<?php
示例12: print_os_build_option_list
if ( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) {
?>
<select id="os_build" name="os_build">
<option value=""></option>
<?php print_os_build_option_list( $f_os_build ); ?>
</select>
<?php
} else {
echo '<input type="text" id="os_build" name="os_build" class="autocomplete" size="16" maxlength="16" tabindex="' . helper_get_tab_index_value() . '" value="' . string_attribute( $f_os_build ) . '" />';
}
?>
</td>
</tr>
<?php if( ON == config_get( 'use_javascript' ) ) { ?>
</table>
<?php collapse_closed( 'profile' ); collapse_icon('profile'); echo lang_get( 'or_fill_in' );?>
<?php collapse_end( 'profile' ); ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php
if ( $tpl_show_product_version ) {
$t_product_version_released_mask = VERSION_RELEASED;
if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) {
$t_product_version_released_mask = VERSION_ALL;
}
?>
<tr <?php echo helper_alternate_class() ?>>
<th class="category">
示例13: lang_get
<!-- Submit Buttom -->
<tr>
<td class="center" colspan="2"><input type="submit" class="button"
value="<?php
echo lang_get('update_information_button');
?>
" />
<input type="hidden" name="bug_id" value="<?php
echo $f_bug_id;
?>
" size="4" />
</td>
</tr>
</table>
</form>
<?php
collapse_closed('medical_record_form');
?>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<?php
collapse_icon('medical_record_form');
echo lang_get('medical_record');
?>
</td>
</tr>
</table>
<?php
collapse_end('medical_record_form');
示例14: event_signal
?>
<tr class="spacer">
<td colspan="2"></td>
</tr>
<?php
}
# end for loop
event_signal('EVENT_VIEW_BUGNOTES_END', $f_bug_id);
?>
</table>
<?php
if ($t_total_time > 0 && access_has_bug_level(config_get('time_tracking_view_threshold'), $f_bug_id)) {
echo '<p class="time-tracking-total">', sprintf(lang_get('total_time_for_issue'), '<span class="time-tracked">' . db_minutes_to_hhmm($t_total_time) . '</span>'), '</p>';
}
collapse_closed('bugnotes');
?>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<?php
collapse_icon('bugnotes');
?>
<?php
echo lang_get('bug_notes_title');
?>
</td>
</tr>
</table>
<?php
collapse_end('bugnotes');
示例15: lang_get
?>
<tr>
<td class="center" colspan="2">
<input type="submit" class="button" value="<?php
echo lang_get('add_bugnote_button');
?>
" onclick="this.disabled=1;document.bugnoteadd.submit();" />
</td>
</tr>
</table>
</form>
<?php
collapse_closed('bugnote_add');
?>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<?php
collapse_icon('bugnote_add');
echo lang_get('add_bugnote_title');
?>
</td>
</tr>
</table>
<?php
collapse_end('bugnote_add');
?>
<?php
# Bugnote Add Form END
}