本文整理汇总了PHP中string_display_line函数的典型用法代码示例。如果您正苦于以下问题:PHP string_display_line函数的具体用法?PHP string_display_line怎么用?PHP string_display_line使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了string_display_line函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayResultsCore
function displayResultsCore($query, $fields)
{
$result = db_query_bound($query);
$nbRows = 0;
while ($row = db_fetch_array($result)) {
$nbRows++;
$t_bug = bug_get($row['id']);
print "<tr> \n";
print '<td><a href="' . string_get_bug_view_url($row['id']) . '">' . bug_format_id($row['id']) . '</a></td>';
//print "<td> ".string_get_bug_view_url( ))." </td>\n";
print "<td> " . string_display_line(get_enum_element('status', $t_bug->status)) . " </td>\n";
print "<td> " . category_get_row($t_bug->category_id)['name'] . " </td>\n";
print "<td> " . $t_bug->summary . " </td>\n";
print "<td> " . user_get_field($t_bug->reporter_id, 'username') . " </td>\n";
if ($t_bug->handler_id != null) {
print "<td> " . user_get_field($t_bug->handler_id, 'username') . " </td>\n";
}
if (sizeof($fields) > 0) {
for ($i = 0; $i < sizeof($fields); $i++) {
print "<td> " . $row[$fields[$i]] . " </td>\n";
}
}
print "</tr>\n";
}
return $nbRows;
}
示例2: prepare_user_name
/**
* prepares the name of the user given the id. also makes it an email link.
* @param int $p_user_id
* @return string
*/
function prepare_user_name($p_user_id)
{
# Catch a user_id of NO_USER (like when a handler hasn't been assigned)
if (NO_USER == $p_user_id) {
return '';
}
$t_username = user_get_name($p_user_id);
if (user_exists($p_user_id) && user_get_field($p_user_id, 'enabled')) {
$t_username = string_display_line($t_username);
// WK/BFE: Original-Zeile auskommentiert: , LB/BFE 2015
// return '<a href="' . string_sanitize_url( 'view_user_page.php?id=' . $p_user_id, true ) . '">' . $t_username . '</a>';
// ersetzt durch: (Link auf view_user_page nur wenn globale Rolle mindestens $g_manage_user_threshold
if (user_is_administrator(auth_get_current_user_id())) {
return '<a href="' . string_sanitize_url('view_user_page.php?id=' . $p_user_id, true) . '">' . $t_username . '</a>';
} else {
return $t_username;
}
// WK/BFE: Ende der Modifikation
} else {
$t_result = '<font STYLE="text-decoration: line-through">';
$t_result .= string_display_line($t_username);
$t_result .= '</font>';
return $t_result;
}
}
示例3: display
function display($p_filter_value)
{
plugin_push_current('CustomerManagement');
if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
return string_display_line($p_filter_value == 1 ? lang_get('yes') : lang_get('no'));
}
plugin_pop_current();
}
示例4: display
function display($p_filter_value)
{
plugin_push_current('CustomerManagement');
if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
if (is_numeric($p_filter_value)) {
$group = CustomerManagementDao::getGroup((int) $p_filter_value);
return string_display_line($group['name']);
}
}
plugin_pop_current();
}
示例5: display
public function display($p_bug, $p_columns_target)
{
plugin_push_current('CustomerManagement');
if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
$bugData = CustomerManagementDao::getBugData($p_bug->id);
if (count($bugData) > 0) {
$isBillable = CustomerManagementDao::getService($bugData['is_billable']);
echo string_display_line($isBillable ? lang_get('yes') : lang_get('no'));
}
}
plugin_pop_current();
}
示例6: display
public function display($p_bug, $p_columns_target)
{
plugin_push_current('CustomerManagement');
if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
$bugData = CustomerManagementDao::getBugData($p_bug->id);
if (count($bugData) > 0) {
$group = CustomerManagementDao::getGroupForCustomer($bugData['customer_id']);
echo string_display_line($group['name']);
}
}
plugin_pop_current();
}
示例7: prepare_user_name
/**
* prepares the name of the user given the id. also makes it an email link.
* @param int $p_user_id
* @return string
*/
function prepare_user_name( $p_user_id ) {
# Catch a user_id of NO_USER (like when a handler hasn't been assigned)
if( NO_USER == $p_user_id ) {
return '';
}
$t_username = user_get_name( $p_user_id );
$t_username = string_display_line( $t_username );
if( user_exists( $p_user_id ) && user_get_field( $p_user_id, 'enabled' ) ) {
return '<a class="user" href="' . string_sanitize_url( 'view_user_page.php?id=' . $p_user_id, true ) . '">' . $t_username . '</a>';
} else {
return '<del class="user">' . $t_username . '</del>';
}
}
示例8: prepare_user_name
/**
* prepares the name of the user given the id. also makes it an email link.
* @param int $p_user_id
* @return string
*/
function prepare_user_name($p_user_id)
{
# Catch a user_id of NO_USER (like when a handler hasn't been assigned)
if (NO_USER == $p_user_id) {
return '';
}
$t_username = user_get_name($p_user_id);
if (user_exists($p_user_id) && user_get_field($p_user_id, 'enabled')) {
$t_username = string_display_line($t_username);
return '<a href="' . string_sanitize_url('view_user_page.php?id=' . $p_user_id, true) . '">' . $t_username . '</a>';
} else {
$t_result = '<font STYLE="text-decoration: line-through">';
$t_result .= string_display_line($t_username);
$t_result .= '</font>';
return $t_result;
}
}
示例9: print_version_header
function print_version_header($p_version_row)
{
$t_project_id = $p_version_row['project_id'];
$t_version_id = $p_version_row['id'];
$t_version_name = $p_version_row['version'];
$t_project_name = project_get_field($t_project_id, 'name');
$t_release_title = '<a href="roadmap_page.php?project_id=' . $t_project_id . '">' . string_display_line($t_project_name) . '</a> - <a href="roadmap_page.php?version_id=' . $t_version_id . '">' . string_display_line($t_version_name) . '</a>';
if (config_get('show_roadmap_dates')) {
$t_version_timestamp = $p_version_row['date_order'];
$t_scheduled_release_date = ' (' . lang_get('scheduled_release') . ' ' . string_display_line(date(config_get('short_date_format'), $t_version_timestamp)) . ')';
} else {
$t_scheduled_release_date = '';
}
echo '<tt>';
echo '<br />', $t_release_title, $t_scheduled_release_date, lang_get('word_separator'), print_bracket_link('view_all_set.php?type=1&temporary=y&' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&' . filter_encode_field_and_value(FILTER_PROPERTY_TARGET_VERSION, $t_version_name), lang_get('view_bugs_link')), '<br />';
$t_release_title_without_hyperlinks = $t_project_name . ' - ' . $t_version_name . $t_scheduled_release_date;
echo utf8_str_pad('', utf8_strlen($t_release_title_without_hyperlinks), '='), '<br />';
}
示例10: print_tbody
/**
* Print table body
* @param $status_cols
*/
function print_tbody($status_cols)
{
$storyboard_db_api = new storyboard_db_api();
$project_spec_bug_ids = $storyboard_db_api->get_bugarray_by_project(helper_get_current_project());
$types = $storyboard_db_api->select_all_types();
echo '<tbody>';
foreach ($types as $type) {
echo '<tr>';
echo '<td class="category">' . $type[1] . '</td>';
foreach ($status_cols as $status_col) {
echo '<td class="story_baord">';
foreach ($project_spec_bug_ids as $project_spec_bug_id) {
$card = $storyboard_db_api->select_story_card($project_spec_bug_id);
if ($card[2] == $type[0]) {
$bug_status = bug_get_field($project_spec_bug_id, 'status');
if ($bug_status == $status_col) {
echo '<a href="' . string_get_bug_view_url($project_spec_bug_id) . '" class="rcv_tooltip">';
echo '<div class="story_card">';
echo string_display_line(bug_format_id($project_spec_bug_id));
echo '<span>';
print_story_card_title($project_spec_bug_id);
print_story_card_info('summary', bug_get_field($project_spec_bug_id, 'summary'), false);
print_story_card_info('description', bug_get_text_field($project_spec_bug_id, 'description'), false);
print_story_card_info('card_risk', $card[3], true);
print_story_card_info('card_story_pt', $card[4], true);
print_story_card_info('card_story_pt_post', $card[5], true);
print_story_card_info('card_acc_crit', $card[6], true);
echo '</span>';
echo '</div>';
echo '</a><br/><br/><br/>';
}
}
}
echo '</td>';
}
echo '</tr>';
}
echo '</tbody>';
}
示例11: renderLists
function renderLists()
{
$content = '';
$status_codes = config_get('status_enum_string');
$t_status_array = MantisEnum::getAssocArrayIndexedByValues($status_codes);
foreach ($t_status_array as $status => $statusCode) {
if ($statusCode != "backlog" && $statusCode != "closed") {
$issues = $this->renderIssues($status);
$statusName = string_display_line(get_enum_element('status', $status));
$content .= '<div class="column">
<div class="inside"
style="background-color: ' . get_status_color($status) . '"
id="' . $status . '">
<h5 title="' . $status . '">' . $statusName . ' (' . sizeof($issues) . ')</h5>';
$content .= implode("\n", $issues);
$content .= '</div>';
// inside
$content .= '</div>';
// column
}
}
return $content;
}
示例12: helper_alternate_class
$t_user_name = '';
}
?>
<!-- Repeated Info Row -->
<tr <?php
echo helper_alternate_class();
?>
>
<td>
<?php
echo string_display(category_full_name($t_category['id'], $t_inherited, $f_project_id));
?>
</td>
<td>
<?php
echo string_display_line($t_user_name);
?>
</td>
<td class="center">
<?php
if (!$t_inherited) {
$t_id = urlencode($t_id);
$t_project_id = urlencode($f_project_id);
print_button('manage_proj_cat_edit_page.php?id=' . $t_id . '&project_id=' . $t_project_id, lang_get('edit_link'));
echo ' ';
print_button('manage_proj_cat_delete.php?id=' . $t_id . '&project_id=' . $t_project_id, lang_get('delete_link'));
}
?>
</td>
</tr>
<?php
示例13: cfdef_input_radio
function cfdef_input_radio($p_field_def, $p_custom_field_value)
{
$t_values = explode('|', custom_field_prepare_possible_values($p_field_def['possible_values']));
$t_len = strlen($p_custom_field_value);
if ($t_len >= 2 && $p_custom_field_value[0] == '|' && $p_custom_field_value[$t_len - 1] == '|') {
$t_checked_value = substr($p_custom_field_value, 1, $t_len - 2);
} else {
$t_checked_value = $p_custom_field_value;
}
foreach ($t_values as $t_option) {
echo '<input ', helper_get_tab_index(), ' type="radio" name="custom_field_' . $p_field_def['id'] . '"';
if ($t_option == $t_checked_value) {
echo ' value="' . string_attribute($t_option) . '" checked="checked"> ' . string_display_line($t_option) . '  ';
} else {
echo ' value="' . string_attribute($t_option) . '"> ' . string_display_line($t_option) . '  ';
}
}
}
示例14: helper_alternate_class
<!-- Email -->
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<?php
echo lang_get('email');
?>
</td>
<td>
<?php
// With LDAP
if ($t_ldap && ON == config_get('use_ldap_email')) {
echo string_display_line(user_get_email($t_user_id));
} else {
print_email_input('email', $t_user['email']);
}
?>
</td>
</tr>
<!-- Access Level -->
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<?php
echo lang_get('access_level');
示例15: lang_get
echo '<td class="print-category">' . lang_get('bug_relationships') . '</td>';
echo '<td class="print" colspan="5">' . relationship_get_summary_html_preview($f_bug_id) . '</td></tr>';
if ($t_show_attachments) {
echo '<tr class="print">';
echo '<th class="print-category">', lang_get('attached_files'), '</th>';
echo '<td class="print" colspan="5">';
$t_attachments = file_get_visible_attachments($f_bug_id);
$t_first_attachment = true;
$t_path = config_get_global('path');
foreach ($t_attachments as $t_attachment) {
if ($t_first_attachment) {
$t_first_attachment = false;
} else {
echo '<br />';
}
$c_filename = string_display_line($t_attachment['display_name']);
$c_download_url = $t_path . htmlspecialchars($t_attachment['download_url']);
$c_filesize = number_format($t_attachment['size']);
$c_date_added = date(config_get('normal_date_format'), $t_attachment['date_added']);
if (isset($t_attachment['icon'])) {
echo '<img src="', $t_attachment['icon']['url'], '" alt="', $t_attachment['icon']['alt'], '" /> ';
}
echo $c_filename . ' (' . $c_filesize . ') <span class="italic">' . $c_date_added . '</span><br />' . $c_download_url;
if ($t_attachment['preview'] && $t_attachment['type'] == 'image') {
echo '<br /><img src="', $t_attachment['download_url'], '" alt="', $t_attachment['alt'], '" /><br />';
}
}
echo '</td></tr>';
}
#
# Issue History