• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP string_display_links函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中string_display_links函数的典型用法代码示例。如果您正苦于以下问题:PHP string_display_links函数的具体用法?PHP string_display_links怎么用?PHP string_display_links使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了string_display_links函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: display_commit_message

 function display_commit_message($event, $bugid)
 {
     if (!$bugid) {
         return;
     }
     $t_fields = config_get('bug_view_page_fields');
     $t_fields = columns_filter_disabled($t_fields);
     $tpl_show_id = in_array('id', $t_fields);
     $tpl_show_description = in_array('description', $t_fields);
     $tpl_show_status = in_array('status', $t_fields);
     if ($tpl_show_id && $tpl_show_description && $tpl_show_status) {
         bug_ensure_exists($bugid);
         $bug = bug_get($bugid, true);
         access_ensure_bug_level(VIEWER, $bugid);
         $tpl_description = string_display_links($bug->summary);
         $tpl_status = get_enum_element('status', $bug->status);
         $tpl_link = config_get('path') . string_get_bug_view_url($bugid, null);
         $message = sprintf('%s - #JJ%d: %s<br/>%s', strtoupper($tpl_status), $bugid, $tpl_description, $tpl_link);
         echo '<tr ', helper_alternate_class(), '>';
         echo '<td class="category">', plugin_lang_get('commit_message'), '</td>';
         echo '<td colspan="5">' . $message . '</td>';
         echo '</tr>';
     }
 }
开发者ID:jon48,项目名称:webtrees-tools,代码行数:24,代码来源:PersoDevTools.php


示例2: foreach

</td>
		</tr>
	<?php 
if (!empty($teams)) {
    foreach ($teams as $num => $row) {
        ?>
	<tr <?php 
        echo helper_alternate_class();
        ?>
>
			<td><?php 
        echo string_display_line_links($row['name']);
        ?>
</td>
			<td><?php 
        echo string_display_links($row['description']);
        ?>
</td>
			<td><?php 
        echo string_display_line_links($agilemantis_team->getTeamBacklog($row['product_backlog']));
        ?>
</td>
			<td><?php 
        echo $agilemantis_team->getProductOwner($row['id']);
        ?>
</td>
			<td><?php 
        echo $agilemantis_team->getScrumMaster($row['id']);
        ?>
</td>
			<td class="right" width="205">
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:teams.php


示例3: print_column_additional_information

/**
 * Print column content for column additional information
 *
 * @param BugData $p_bug bug object
 * @param int $p_columns_target see COLUMNS_TARGET_* in constant_inc.php
 * @return null
 * @access public
 */
function print_column_additional_information($p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
    $t_additional_information = string_display_links($p_bug->additional_information);
    echo '<td class="column-additional-information">', $t_additional_information, '</td>';
}
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:13,代码来源:columns_api.php


示例4: print_news_entry

function print_news_entry($p_headline, $p_body, $p_poster_id, $p_view_state, $p_announcement, $p_date_posted)
{
    $t_headline = string_display_links($p_headline);
    $t_body = string_display_links($p_body);
    $t_date_posted = date(config_get('normal_date_format'), $p_date_posted);
    if (VS_PRIVATE == $p_view_state) {
        $t_news_css = 'news-heading-private';
    } else {
        $t_news_css = 'news-heading-public';
    }
    $output = '<div align="center">';
    $output .= '<table class="width75" cellspacing="0">';
    $output .= '<tr>';
    $output .= "<td class=\"{$t_news_css}\">";
    $output .= "<span class=\"bold\">{$t_headline}</span> - ";
    $output .= "<span class=\"italic-small\">{$t_date_posted}</span> - ";
    echo $output;
    /** @todo eventually we should replace print's with methods to construct the strings. */
    print_user($p_poster_id);
    $output = '';
    if (1 == $p_announcement) {
        $output .= ' <span class="small">';
        $output .= '[' . lang_get('announcement') . ']';
        $output .= '</span>';
    }
    if (VS_PRIVATE == $p_view_state) {
        $output .= ' <span class="small">';
        $output .= '[' . lang_get('private') . ']';
        $output .= '</span>';
    }
    $output .= '</td>';
    $output .= '</tr>';
    $output .= '<tr>';
    $output .= "<td class=\"news-body\">{$t_body}</td>";
    $output .= '</tr>';
    $output .= '</table>';
    $output .= '</div>';
    echo $output;
}
开发者ID:Tarendai,项目名称:spring-website,代码行数:39,代码来源:print_api.php


示例5: lang_get

        case REMINDER:
            echo '<em>' . lang_get('reminder_sent_to') . ' ';
            $t_note_attr = utf8_substr($t_bugnote->note_attr, 1, utf8_strlen($t_bugnote->note_attr) - 2);
            $t_to = array();
            foreach (explode('|', $t_note_attr) as $t_recipient) {
                $t_to[] = prepare_user_name($t_recipient);
            }
            echo implode(', ', $t_to) . '</em><br /><br />';
            break;
        case TIME_TRACKING:
            if (access_has_bug_level(config_get('time_tracking_view_threshold'), $f_bug_id)) {
                echo '<div class="time-tracked">', lang_get('time_tracking_time_spent') . ' ' . $t_time_tracking_hhmm, '</div>';
            }
            break;
    }
    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
event_signal('EVENT_VIEW_BUGNOTES_END', $f_bug_id);
?>
</table>
开发者ID:nextgens,项目名称:mantisbt,代码行数:31,代码来源:bugnote_view_inc.php


示例6: string_display_line

$t_date_submitted = $t_show_date_submitted ? string_display_line(date(config_get('normal_date_format'), $t_bug->date_submitted)) : '';
$t_last_updated = $t_show_last_updated ? string_display_line(date(config_get('normal_date_format'), $t_bug->last_updated)) : '';
$t_platform = string_display_line($t_bug->platform);
$t_os = string_display_line($t_bug->os);
$t_os_version = string_display_line($t_bug->os_build);
$t_is = string_display_line($t_bug->os);
$t_status = string_display_line(get_enum_element('status', $t_bug->status));
$t_priority = string_display_line(get_enum_element('priority', $t_bug->priority));
$t_resolution = string_display_line(get_enum_element('resolution', $t_bug->resolution));
$t_product_build = string_display_line($t_bug->build);
$t_projection = string_display_line(get_enum_element('projection', $t_bug->projection));
$t_eta = string_display_line(get_enum_element('eta', $t_bug->eta));
$t_summary = string_display_line_links(bug_format_summary($f_bug_id, SUMMARY_FIELD));
$t_description = string_display_links($t_bug->description);
$t_steps_to_reproduce = string_display_links($t_bug->steps_to_reproduce);
$t_additional_information = string_display_links($t_bug->additional_information);
$t_view_state = $t_show_view_state ? get_enum_element('view_state', $t_bug->view_state) : '';
if ($t_show_due_date) {
    if (!date_is_null($t_bug->due_date)) {
        $t_due_date = date(config_get('normal_date_format'), $t_bug->due_date);
    } else {
        $t_due_date = '';
    }
}
$t_product_version = $t_show_product_version ? string_display_line(prepare_version_string($t_bug->project_id, version_get_id($t_bug->version, $t_bug->project_id))) : '';
$t_target_version = $t_show_target_version ? string_display_line(prepare_version_string($t_bug->project_id, version_get_id($t_bug->target_version, $t_bug->project_id))) : '';
$t_fixed_in_version = $t_show_fixed_in_version ? string_display_line(prepare_version_string($t_bug->project_id, version_get_id($t_bug->fixed_in_version, $t_bug->project_id))) : '';
html_page_top1(bug_format_summary($f_bug_id, SUMMARY_CAPTION));
html_head_end();
html_body_begin();
echo '<br />';
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:print_bug_page.php


示例7: string_custom_field_value

/**
 * Prepare a string containing a custom field value for display
 * @param array   $p_def      Contains the definition of the custom field.
 * @param integer $p_field_id Contains the id of the field.
 * @param integer $p_bug_id   Contains the bug id to display the custom field value for.
 * @return string
 * @access public
 */
function string_custom_field_value(array $p_def, $p_field_id, $p_bug_id)
{
    $t_custom_field_value = custom_field_get_value($p_field_id, $p_bug_id);
    if ($t_custom_field_value === null) {
        return '';
    }
    global $g_custom_field_type_definition;
    if (isset($g_custom_field_type_definition[$p_def['type']]['#function_string_value'])) {
        return call_user_func($g_custom_field_type_definition[$p_def['type']]['#function_string_value'], $t_custom_field_value);
    }
    return string_display_links($t_custom_field_value);
}
开发者ID:hamx0r,项目名称:mantisbt,代码行数:20,代码来源:custom_field_api.php


示例8: string_custom_field_value

 function string_custom_field_value($p_field_def, $p_node_id, $p_value_field = 'value')
 {
     $t_custom_field_value = htmlspecialchars($p_field_def[$p_value_field]);
     switch ($this->custom_field_types[$p_field_def['type']]) {
         case 'email':
             return "<a href=\"mailto:{$t_custom_field_value}\">{$t_custom_field_value}</a>";
             break;
         case 'enum':
         case 'list':
         case 'multiselection list':
         case 'checkbox':
             return str_replace('|', ', ', $t_custom_field_value);
             break;
         case 'date':
             if ($t_custom_field_value != null) {
                 // must remove %
                 $t_date_format = str_replace("%", "", config_get('date_format'));
                 $xdate = date($t_date_format, $t_custom_field_value);
                 return $xdate;
             }
             break;
         case 'datetime':
             if ($t_custom_field_value != null) {
                 // must remove %
                 // $t_date_format=str_replace("%","",config_get( 'timestamp_format'));
                 // $datetime_format=$t_date_format;
                 $t_date_format = str_replace("%", "", config_get('date_format'));
                 $cfg = config_get('gui');
                 $datetime_format = $t_date_format . " " . $cfg->custom_fields->time_format;
                 $xdate = date($datetime_format, $t_custom_field_value);
                 return $xdate;
             }
             break;
         case 'text area':
             if ($t_custom_field_value != null) {
                 return nl2br($t_custom_field_value);
             }
             break;
         default:
             // 20071027 - franciscom
             // This code manages URLs
             return string_display_links($t_custom_field_value);
             // return($t_custom_field_value);
     }
 }
开发者ID:moraesmv,项目名称:testlink-code,代码行数:45,代码来源:cfield_mgr.class.php


示例9: bug_prepare_display

function bug_prepare_display($p_bug_data)
{
    $p_bug_data->category = string_display_line($p_bug_data->category);
    $p_bug_data->date_submitted = string_display_line($p_bug_data->date_submitted);
    $p_bug_data->last_updated = string_display_line($p_bug_data->last_updated);
    $p_bug_data->os = string_display_line($p_bug_data->os);
    $p_bug_data->os_build = string_display_line($p_bug_data->os_build);
    $p_bug_data->platform = string_display_line($p_bug_data->platform);
    $p_bug_data->version = string_display_line($p_bug_data->version);
    $p_bug_data->build = string_display_line($p_bug_data->build);
    $p_bug_data->target_version = string_display_line($p_bug_data->target_version);
    $p_bug_data->fixed_in_version = string_display_line($p_bug_data->fixed_in_version);
    $p_bug_data->summary = string_display_line_links($p_bug_data->summary);
    $p_bug_data->sponsorship_total = string_display_line($p_bug_data->sponsorship_total);
    $p_bug_data->sticky = string_display_line($p_bug_data->sticky);
    $p_bug_data->description = string_display_links($p_bug_data->description);
    $p_bug_data->steps_to_reproduce = string_display_links($p_bug_data->steps_to_reproduce);
    $p_bug_data->additional_information = string_display_links($p_bug_data->additional_information);
    return $p_bug_data;
}
开发者ID:jin255ff,项目名称:company_website,代码行数:20,代码来源:bug_api.php


示例10: nl2br

    echo nl2br(string_display_links($usSumText[0]['steps_to_reproduce']));
    ?>
			</td>
		</tr>
		<tr <?php 
    echo helper_alternate_class();
    ?>
>
			<td class="category">
				<?php 
    echo lang_get('additional_information');
    ?>
			</td>
			<td colspan="9">
			  <?php 
    echo nl2br(string_display_links($usSumText[0]['additional_information']));
    ?>
			</td>
		</tr>
	</table>
</div>
<br>
<div class="table-container">
	<table align="center" class="width100" cellspacing="1">
		<tr>
			<td class="form-title" colspan="6">Tasks - <span
				style="font-weight: bold; color: grey;">"<?php 
    echo string_display_line_links($usSumText[0]['summary']);
    ?>
"</span>
			</td>
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:task_page.php


示例11: html_page_top1

require "css_faq.php";
html_page_top1();
if (OFF == plugin_config_get('faq_view_window')) {
    html_page_top2();
}
$f_id = gpc_get_int('f_id');
# Select the faq posts
$query = "SELECT *, UNIX_TIMESTAMP(date_posted) as date_posted\n\t\t\tFROM {$g_mantis_faq_table}\n\t\t\tWHERE  id='{$f_id}'";
$result = db_query_bound($query);
$faq_count = db_num_rows($result);
# Loop through results
for ($i = 0; $i < $faq_count; $i++) {
    $row = db_fetch_array($result);
    extract($row, EXTR_PREFIX_ALL, "v");
    $v_headline = string_display($v_headline);
    $v_answere = string_display_links($v_answere);
    $v_date_posted = date($g_normal_date_format, $v_date_posted);
    $t_poster_name = user_get_name($v_poster_id);
    $t_poster_email = user_get_email($v_poster_id);
    $t_project_name = "Sitewide";
    if ($v_project_id != 0) {
        $t_project_name = project_get_field($v_project_id, "name");
    }
    ?>
<p>
<div align="center">
<table class="width75" cellspacing="0">
<tr>
	<td class="faq-heading">
		<span class="faq-question"><?php 
    echo $v_question;
开发者ID:xxNull-lsk,项目名称:faq,代码行数:31,代码来源:faq_view_page.php


示例12: string_display

						<a href="manage_proj_edit_page.php?project_id=<?php echo $t_subproject['id'] ?>"><?php echo string_display( $t_subproject['name'] ) ?></a>
					</td>
					<td class="center">
						<?php echo get_enum_element( 'project_status', $t_subproject['status'] ) ?>
					</td>
					<td class="center">
						<?php echo trans_bool( $t_subproject['enabled'] ) ?>
					</td>
					<td class="center">
						<input type="checkbox" name="inherit_child_<?php echo $t_subproject_id ?>" <?php echo ( $t_inherit_parent ? 'checked="checked"' : '' ) ?> />
					</td>
					<td class="center">
						<?php echo get_enum_element( 'project_view_state', $t_subproject['view_state'] ) ?>
					</td>
					<td>
						<?php echo string_display_links( $t_subproject['description'] ) ?>
					</td>
					<td class="center"><?php
					print_bracket_link( 'manage_proj_edit_page.php?project_id=' . $t_subproject['id'], lang_get( 'edit_link' ) ); ?>
					</td>
					<td class="center"><?php
					print_bracket_link( "manage_proj_subproj_delete.php?project_id=$f_project_id&subproject_id=" . $t_subproject['id'] . form_security_param( 'manage_proj_subproj_delete' ), lang_get( 'unlink_link' ) );
				?>
					</td>
				</tr><?php
				} # End of foreach loop over subprojects ?>
			</table>
			<span class="submit-button"><input type="submit" value="<?php echo lang_get( 'update_subproject_inheritance' ) ?>" /></span>
		</fieldset>
	</form><?php
	} # End of hiding subproject listing if there are no subprojects ?>
开发者ID:rombert,项目名称:mantisbt,代码行数:31,代码来源:manage_proj_edit_page.php


示例13: format_value

 function format_value($bug, $field_name)
 {
     $values = array('id' => function ($bug) {
         return sprintf('%s <%s>', $bug->id, string_get_bug_view_url_with_fqdn($bug->id));
     }, 'project_id' => function ($bug) {
         return project_get_name($bug->project_id);
     }, 'reporter_id' => function ($bug) {
         return '@' . user_get_name($bug->reporter_id);
     }, 'handler_id' => function ($bug) {
         return empty($bug->handler_id) ? plugin_lang_get('no_user') : '@' . user_get_name($bug->handler_id);
     }, 'duplicate_id' => function ($bug) {
         return sprintf('%s <%s>', $bug->duplicate_id, string_get_bug_view_url_with_fqdn($bug->duplicate_id));
     }, 'priority' => function ($bug) {
         return get_enum_element('priority', $bug->priority);
     }, 'severity' => function ($bug) {
         return get_enum_element('severity', $bug->severity);
     }, 'reproducibility' => function ($bug) {
         return get_enum_element('reproducibility', $bug->reproducibility);
     }, 'status' => function ($bug) {
         return get_enum_element('status', $bug->status);
     }, 'resolution' => function ($bug) {
         return get_enum_element('resolution', $bug->resolution);
     }, 'projection' => function ($bug) {
         return get_enum_element('projection', $bug->projection);
     }, 'category_id' => function ($bug) {
         return category_full_name($bug->category_id, false);
     }, 'eta' => function ($bug) {
         return get_enum_element('eta', $bug->eta);
     }, 'view_state' => function ($bug) {
         return $bug->view_state == VS_PRIVATE ? lang_get('private') : lang_get('public');
     }, 'sponsorship_total' => function ($bug) {
         return sponsorship_format_amount($bug->sponsorship_total);
     }, 'os' => function ($bug) {
         return $bug->os;
     }, 'os_build' => function ($bug) {
         return $bug->os_build;
     }, 'platform' => function ($bug) {
         return $bug->platform;
     }, 'version' => function ($bug) {
         return $bug->version;
     }, 'fixed_in_version' => function ($bug) {
         return $bug->fixed_in_version;
     }, 'target_version' => function ($bug) {
         return $bug->target_version;
     }, 'build' => function ($bug) {
         return $bug->build;
     }, 'summary' => function ($bug) {
         return HipChatPlugin::clean_summary(bug_format_summary($bug->id, SUMMARY_FIELD));
     }, 'last_updated' => function ($bug) {
         return date(config_get('short_date_format'), $bug->last_updated);
     }, 'date_submitted' => function ($bug) {
         return date(config_get('short_date_format'), $bug->date_submitted);
     }, 'due_date' => function ($bug) {
         return date(config_get('short_date_format'), $bug->due_date);
     }, 'description' => function ($bug) {
         return string_display_links($bug->description);
     }, 'steps_to_reproduce' => function ($bug) {
         return string_display_links($bug->steps_to_reproduce);
     }, 'additional_information' => function ($bug) {
         return string_display_links($bug->additional_information);
     });
     // Discover custom fields.
     $t_related_custom_field_ids = custom_field_get_linked_ids($bug->project_id);
     foreach ($t_related_custom_field_ids as $t_id) {
         $t_def = custom_field_get_definition($t_id);
         $values['custom_' . $t_def['name']] = function ($bug) use($t_id) {
             return custom_field_get_value($t_id, $bug->id);
         };
     }
     if (isset($values[$field_name])) {
         $func = $values[$field_name];
         return $func($bug);
     } else {
         return sprintf(plugin_lang_get('unknown_field'), $field_name);
     }
 }
开发者ID:aversag,项目名称:MantisBT-HipChat,代码行数:76,代码来源:HipChat.php


示例14: view_bug_time


//.........这里部分代码省略.........
            ?>
" 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>

<?php 
            } else {
                ?>
      <td>&nbsp;</td>
开发者ID:Hacho25,项目名称:timetracking,代码行数:67,代码来源:TimeTracking.php


示例15: helper_alternate_class

    ?>
</td>
		<?php 
}
?>
	</tr>
		<tr <?php 
echo helper_alternate_class();
?>
>
			<td><?php 
echo string_display_line_links($product_backlog);
?>
</td>
			<td><?php 
echo nl2br(string_display_links($pb_info[0]['description']));
?>
</td>
		<?php 
if ($agilemantis_pb->checkProductBacklogMoreOneTeam($product_backlog)) {
    ?>
		<td><?php 
    echo $team_info[0]['name'];
    ?>
</td>
			<td><?php 
    echo $agilemantis_team->getUserName($agilemantis_team->getTeamProductOwner());
    ?>
</td>
			<td><?php 
    echo $agilemantis_team->getUserName($agilemantis_team->getTeamScrumMaster());
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:product_backlog_actions.php


示例16: foreach

    if (!empty($backlogs)) {
        foreach ($backlogs as $num => $row) {
            ?>
	<?php 
            $agilemantis_pb->productBacklogHasStoriesLeft($row['name']);
            ?>
	<tr <?php 
            echo helper_alternate_class();
            ?>
>
		<td><?php 
            echo string_display_line_links($row['name']);
            ?>
</td>
		<td><?php 
            echo nl2br(string_display_links($row['description']));
            ?>
</td>
		<td class="right" width="205">
			<form action="<?php 
            echo plugin_page('edit_product_backlog.php');
            ?>
" method="post">
				<input type="submit" name="edit[<?php 
            echo $row['id'];
            ?>
]" 
					value="<?php 
            echo plugin_lang_get('button_edit');
            ?>
" style="width:100px;" />
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:product_backlogs.php


示例17: config_get

		<?php 
echo $v2_additional_information;
?>
	</td>
</tr>
<?php 
# account profile description
if ($v_profile_id > 0) {
    $t_user_prof_table = config_get('mantis_user_profile_table');
    $query = "SELECT description\n\t\t\t\tFROM {$t_user_prof_table}\n\t\t\t\tWHERE id='{$v_profile_id}'";
    $result = db_query($query);
    $t_profile_description = '';
    if (db_num_rows($result) > 0) {
        $t_profile_description = db_result($result, 0);
    }
    $t_profile_description = string_display_links($t_profile_description);
    ?>
<tr class="print">
	<td class="print-category">
		<?php 
    echo lang_get('system_profile');
    ?>
:
	</td>
	<td class="print" colspan="5">
		<?php 
    echo $t_profile_description;
    ?>
	</td>
</tr>
<?php 
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:print_bug_page.php


示例18: print_bug

 /**
  * Prints a bug into the document
  *
  * @param $chapter_index
  * @param $sub_chapter_index
  * @param $bug_data
  * @param $option_show_duration
  * @param $print_flag
  */
 public function print_bug($chapter_index, $sub_chapter_index, $bug_data, $option_show_duration, $print_flag)
 {
     $this->print_bug_head($chapter_index, $sub_chapter_index, $bug_data, $option_show_duration, $print_flag);
     $this->print_bug_infos(string_display_links(trim($bug_data[2])));
     $this->print_bug_infos(string_display_links(trim($bug_data[3])));
     $this->print_bug_infos(string_display_links(trim($bug_data[4])));
     if (!empty($bug_data[5])) {
         $this->print_bug_attachments($bug_data[0]);
     }
     if (!is_null($bug_data[6]) && $bug_data[6] != 0) {
         $this->print_bugnote_note($bug_data[6]);
     }
 }
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:22,代码来源:specmanagement_editor_api.php


示例19: in_array

$tpl_show_priority = in_array('priority', $t_fields);
$tpl_priority = $tpl_show_priority ? string_display_line(get_enum_element('priority', $tpl_bug->priority)) : '';
$tpl_show_severity = in_array('severity', $t_fields);
$tpl_severity = $tpl_show_severity ? string_display_line(get_enum_element('severity', $tpl_bug->severity)) : '';
$tpl_show_reproducibility = in_array('reproducibility', $t_fields);
$tpl_reproducibility = $tpl_show_reproducibility ? string_display_line(get_enum_element('reproducibility', $tpl_bug->reproducibility)) : '';
$tpl_show_status = in_array('status', $t_fields);
$tpl_status = $tpl_show_status ? string_display_line(get_enum_element('status', $tpl_bug->status)) : '';
$tpl_show_resolution = in_array('resolution', $t_fields);
$tpl_resolution = $tpl_show_resolution ? string_display_line(get_enum_element('resolution', $tpl_bug->resolution)) : '';
$tpl_show_summary = in_array('summary', $t_fields);
$tpl_show_description = in_array('description', $t_fields);
$tpl_summary = $tpl_show_summary ? bug_format_summary($f_bug_id, SUMMARY_FIELD) : '';
$tpl_description = $tpl_show_description ? string_display_links($tpl_bug->description) : '';
$tpl_steps_to_reproduce = $tpl_show_steps_to_reproduce ? string_display_links($tpl_bug->steps_to_reproduce) : '';
$tpl_additional_information = $tpl_show_additional_information ? string_display_links($tpl_bug->additional_information) : '';
$tpl_links = event_signal('EVENT_MENU_ISSUE', $f_bug_id);
#
# Start of Template
#
echo '<br />';
echo '<table class="width100" cellspacing="1">';
echo '<thead><tr class="bug-nav">';
# Form Title
echo '<td class="form-title" colspan="', $t_bugslist ? '3' : '4', '">';
echo $tpl_form_title;
echo '&#160;<span class="small">';
# Jump to Bugnotes
print_bracket_link("#bugnotes", lang_get('jump_to_bugnotes'), false, 'jump-to-bugnotes');
# Send Bug Reminder
if ($tpl_show_reminder_link) {
开发者ID:nextgens,项目名称:mantisbt,代码行数:31,代码来源:bug_view_inc.php


示例20: string_custom_field_value

 function string_custom_field_value($p_field_def, $p_node_id, $p_value_field = 'value')
 {
     $t_value = isset($p_field_def[$p_value_field]) ? $p_field_def[$p_value_field] : null;
     $cfValue = htmlspecialchars($t_value);
     switch ($this->custom_field_types[intval($p_field_def['type'])]) {
         case 'email':
             return "<a href=\"mailto:{$cfValue}\">{$cfValue}</a>";
             break;
         case 'enum':
         case 'list':
         case 'multiselection list':
         case 'checkbox':
             return str_replace('|', ', ', $cfValue);
             break;
         case 'date':
             if ($cfValue != null) {
                 // must remove %
                 $t_date_format = str_replace("%", "", config_get('date_format'));
                 $xdate = date($t_date_format, $cfValue);
                 return $xdate;
             }
             break;
         case 'datetime':
             if ($cfValue != null) {
                 // must remove %
                 // $t_date_format=str_replace("%","",config_get( 'timestamp_format'));
                 // $datetime_format=$t_date_format;
                 $t_date_format = str_replace("%", "", config_get('date_format'));
                 $cfg = config_get('gui');
                 $datetime_format = $t_date_format . " " . $cfg->custom_fields->time_format;
                 $xdate = date($datetime_format, $cfValue);
                 return $xdate;
             }
             break;
         case 'text area':
             if ($cfValue != null) {
                 return nl2br($cfValue);
             }
             break;
         case 'string':
             return string_display_links($cfValue);
             break;
         default:
             // done this way in order to be able to debug if needed
             return string_display_links($cfValue);
             break;
     }
 }
开发者ID:mweyamutsvene,项目名称:testlink,代码行数:48,代码来源:cfield_mgr.class.php



注:本文中的string_display_links函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP string_get_bug_report_url函数代码示例发布时间:2022-05-23
下一篇:
PHP string_display_line_links函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap