本文整理汇总了PHP中db_minutes_to_hhmm函数的典型用法代码示例。如果您正苦于以下问题:PHP db_minutes_to_hhmm函数的具体用法?PHP db_minutes_to_hhmm怎么用?PHP db_minutes_to_hhmm使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了db_minutes_to_hhmm函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: event_signal
</tr>
<?php
event_signal('EVENT_VIEW_BUGNOTE', array($f_bug_id, $t_bugnote->id, VS_PRIVATE == $t_bugnote->view_state));
?>
<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>
示例2: mci_get_time_tracking_from_note
/**
* Returns time tracking information from a bug note.
*
* @param integer $p_issue_id The id of the issue.
* @param array $p_note A note as passed to the soap api methods.
*
* @return String the string time entry to be added to the bugnote, in 'HH:mm' format
*/
function mci_get_time_tracking_from_note($p_issue_id, array $p_note)
{
if (!access_has_bug_level(config_get('time_tracking_view_threshold'), $p_issue_id)) {
return '00:00';
}
if (!isset($p_note['time_tracking'])) {
return '00:00';
}
return db_minutes_to_hhmm($p_note['time_tracking']);
}
示例3: lang_get
?>
</td>
</tr>
<?php
}
# end for loop
?>
<tr class="row-category2">
<td class="small-caption bold">
<?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
示例4: lang_get
<?php
}
?>
</tr>
<?php
}
?>
<tr class="row-category2">
<td class="small-caption bold">
<?php
echo lang_get('total_time');
?>
</td>
<td class="small-caption bold">
<?php
echo db_minutes_to_hhmm($t_bugnote_stats['total']['minutes']);
?>
</td>
<?php
if ($t_cost_col) {
?>
<td class="small-caption bold right">
<?php
echo string_attribute(number_format($t_bugnote_stats['total']['cost'], 2));
?>
</td>
<?php
}
?>
</tr>
</table>
示例5: string_display_links
}
echo string_display_links($t_bugnote->note);
?>
</td>
</tr>
<?php
event_signal('EVENT_VIEW_BUGNOTE', array($f_bug_id, $t_bugnote->id, VS_PRIVATE == $t_bugnote->view_state));
?>
<tr class="spacer">
<td colspan="2"></td>
</tr>
<?php
}
# end for loop
if ($t_total_time > 0 && access_has_bug_level(config_get('time_tracking_view_threshold'), $f_bug_id)) {
echo '<tr><td colspan="2">', sprintf(lang_get('total_time_for_issue'), db_minutes_to_hhmm($t_total_time)), '</td></tr>';
}
event_signal('EVENT_VIEW_BUGNOTES_END', $f_bug_id);
?>
</table>
<?php
collapse_closed('bugnotes');
?>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<?php
collapse_icon('bugnotes');
?>
示例6: bugnote_get_all_visible_as_string
/**
* Build a string that captures all the notes visible to the logged in user along with their
* metadata. The string will contain information about each note including reporter, timestamp,
* time tracking, view state. This will result in multi-line string with "\n" as the line
* separator.
*
* @param integer $p_bug_id A bug identifier.
* @param integer $p_user_bugnote_order Sort order.
* @param integer $p_user_bugnote_limit Number of bugnotes to display to user.
* @param integer $p_user_id An user identifier.
* @return string The string containing all visible notes.
* @access public
*/
function bugnote_get_all_visible_as_string($p_bug_id, $p_user_bugnote_order, $p_user_bugnote_limit, $p_user_id = null)
{
$t_notes = bugnote_get_all_visible_bugnotes($p_bug_id, $p_user_bugnote_order, $p_user_bugnote_limit, $p_user_id);
$t_date_format = config_get('normal_date_format');
$t_show_time_tracking = access_has_bug_level(config_get('time_tracking_view_threshold'), $p_bug_id);
$t_output = '';
foreach ($t_notes as $t_note) {
$t_note_string = '@' . user_get_name($t_note->reporter_id);
if ($t_note->view_state != VS_PUBLIC) {
$t_note_string .= ' (' . lang_get('private') . ')';
}
$t_note_string .= ' ' . date($t_date_format, $t_note->date_submitted);
if ($t_show_time_tracking && $t_note->note_type == TIME_TRACKING) {
$t_time_tracking_hhmm = db_minutes_to_hhmm($t_note->time_tracking);
$t_note_string .= ' ' . lang_get('time_tracking_time_spent') . ' ' . $t_time_tracking_hhmm;
}
$t_note_string .= "\n" . $t_note->note . "\n";
if (!empty($t_output)) {
$t_output .= "---\n";
}
$t_output .= $t_note_string;
}
return $t_output;
}
示例7: auth_get_current_user_id
# Check if the current user is allowed to edit the bugnote
$t_user_id = auth_get_current_user_id();
$t_reporter_id = bugnote_get_field($f_bugnote_id, 'reporter_id');
if ($t_user_id != $t_reporter_id || OFF == config_get('bugnote_allow_user_edit_delete')) {
access_ensure_bugnote_level(config_get('update_bugnote_threshold'), $f_bugnote_id);
}
# Check if the bug is readonly
if (bug_is_readonly($t_bug_id)) {
error_parameters($t_bug_id);
trigger_error(ERROR_BUG_READ_ONLY_ACTION_DENIED, ERROR);
}
$t_bugnote_text = string_textarea(bugnote_get_text($f_bugnote_id));
# No need to gather the extra information if not used
if (config_get('time_tracking_enabled') && access_has_bug_level(config_get('time_tracking_edit_threshold'), $t_bug_id)) {
$t_time_tracking = bugnote_get_field($f_bugnote_id, "time_tracking");
$t_time_tracking = db_minutes_to_hhmm($t_time_tracking);
}
# Determine which view page to redirect back to.
$t_redirect_url = string_get_bug_view_url($t_bug_id);
html_page_top(bug_format_summary($t_bug_id, SUMMARY_CAPTION));
?>
<br />
<div align="center">
<form method="post" action="bugnote_update.php">
<?php
echo form_security_field('bugnote_update');
?>
<table class="width75" cellspacing="1">
<tr>
<td class="form-title">
<input type="hidden" name="bugnote_id" value="<?php
示例8: billing_rows_to_array
/**
* Converts an array of bugnotes to array of billing rows
*
* @param array $p_bugnotes Array of bugnotes
* @return array Array of billing rows
* @access private
*/
function billing_rows_to_array($p_bugnotes)
{
$t_billing_rows = array();
foreach ($p_bugnotes as $t_note) {
$t_row = array();
$t_row['id'] = $t_note['id'];
$t_row['minutes'] = $t_note['minutes'];
$t_row['duration'] = db_minutes_to_hhmm($t_note['minutes']);
$t_row['note'] = $t_note['note'];
$t_row['reporter_id'] = $t_note['reporter_id'];
$t_row['reporter_username'] = user_get_name($t_note['reporter_id']);
$t_row['reporter_realname'] = user_get_realname($t_note['reporter_id']);
$t_row['date_submitted'] = $t_note['date_submitted'];
if (is_blank($t_row['reporter_realname'])) {
$t_row['reporter_realname'] = $t_row['reporter_username'];
}
$t_row['bug_id'] = $t_note['bug_id'];
$t_row['bug_summary'] = $t_note['bug_summary'];
$t_row['cost'] = $t_note['cost'];
$t_billing_rows[] = $t_row;
}
return $t_billing_rows;
}
示例9: lang_get
>
<td class="small-caption">
<?php
echo lang_get('total_time');
?>
(<?php
echo bug_format_id($t_bug_key);
?>
)
</td>
<td class="small-caption">
<?php
echo number_format($t_bug_value, 2, '.', ',');
?>
(<?php
echo db_minutes_to_hhmm($t_bug_value * 60);
?>
)
</td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
</form>
示例10: view_bug_time
//.........这里部分代码省略.........
<td><div align="center"><input type="text" name="time_info"></div></td>
<td> </td>
<td><input name="<?php
echo plugin_lang_get('submit');
?>
" type="submit" value="<?php
echo plugin_lang_get('submit');
?>
"></td>
</tr>
</form>
<?php
}
# END Access Control
for ($i = 0; $i < $num_timerecords; $i++) {
$row = db_fetch_array($result_pull_timerecords);
?>
<tr <?php
echo helper_alternate_class();
?>
>
<td><?php
echo user_get_name($row["user"]);
?>
</td>
<td><div align="center"><?php
echo date(config_get("short_date_format"), strtotime($row["expenditure_date"]));
?>
</div></td>
<td><div align="right"><?php
echo db_minutes_to_hhmm($row["hours"] * 60);
?>
</div></td>
<td><div align="center"><?php
echo string_display_links($row["info"]);
?>
</div></td>
<td><div align="center"><?php
echo date(config_get("complete_date_format"), strtotime($row["timestamp"]));
?>
</div></td>
<?php
$user = auth_get_current_user_id();
if ($user == $row["user"] && access_has_bug_level(plugin_config_get('admin_own_threshold'), $p_bug_id) || access_has_bug_level(plugin_config_get('admin_threshold'), $p_bug_id)) {
?>
<td><a href="<?php
echo plugin_page('delete_record');
?>
&bug_id=<?php
echo $p_bug_id;
?>
&delete_id=<?php
echo $row["id"];
echo form_security_param('plugin_TimeTracking_delete_record');
?>
"><?php
echo plugin_lang_get('delete');
?>
</a></td>
示例11: implode
}
echo implode(', ', $t_to) . '</strong></p>';
echo $t_note;
break;
case TIME_TRACKING:
if ($t_show_time_tracking) {
echo '<p><strong>', lang_get('time_tracking_time_spent') . ' ' . $t_time, '</strong></p>';
}
echo $t_note;
break;
default:
echo $t_note;
break;
}
?>
</td>
</tr>
</table>
</td>
</tr>
<?php
}
# end for loop
}
# end else
?>
</table>
<?php
if ($t_total_time > 0 && $t_show_time_tracking) {
echo '<p align="right">', sprintf(lang_get('total_time_for_issue'), '<strong>' . db_minutes_to_hhmm($t_total_time) . '</strong>'), '</p>';
}