本文整理汇总了PHP中helper_get_tab_index函数的典型用法代码示例。如果您正苦于以下问题:PHP helper_get_tab_index函数的具体用法?PHP helper_get_tab_index怎么用?PHP helper_get_tab_index使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了helper_get_tab_index函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: reportBugFormTop
function reportBugFormTop($p_event, $p_project_id)
{
# allow to change reporter_id (if access level is higher than defined)
$t_user_id = auth_get_current_user_id();
$t_access_level = user_get_access_level($t_user_id, $p_project_id);
if ($t_access_level >= plugin_config_get('select_threshold')) {
?>
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category" width="30%">
<?php
echo lang_get('reporter');
?>
</td>
<td width="70%">
<select <?php
echo helper_get_tab_index();
?>
name="reporter_id">
<?php
print_reporter_option_list($t_user_id, $p_project_id);
?>
</select>
</td>
</tr>
<?php
}
}
示例2: print_status_option_list_plugin
function print_status_option_list_plugin($p_select_label, $p_current_value = 0, $p_allow_close = false, $p_project_id = ALL_PROJECTS)
{
$t_current_auth = access_get_project_level($p_project_id);
#Changement de la fonction de récupération des statuts
$t_enum_list = get_status_option_list_plugin($t_current_auth, $p_current_value, true, $p_allow_close, $p_project_id);
if (count($t_enum_list) > 1) {
# resort the list into ascending order
ksort($t_enum_list);
reset($t_enum_list);
echo '<select ', helper_get_tab_index(), ' name="' . $p_select_label . '">';
foreach ($t_enum_list as $key => $val) {
#On ne veut pas afficher la valeur @0@
if ($val == '@0@') {
continue;
}
echo '<option value="' . $key . '"';
check_selected($key, $p_current_value, false);
#fix 1.3.0
echo '>' . $val . '</option>';
}
echo '</select>';
} else {
if (count($t_enum_list) == 1) {
echo array_pop($t_enum_list);
} else {
echo MantisEnum::getLabel(lang_get('status_enum_string'), $p_current_value);
}
}
}
示例3: bugnote_add_form
function bugnote_add_form($event, $bug_id)
{
if ($_SERVER['PHP_SELF'] !== '/bug_update_page.php') {
return;
}
echo '<tr><td class="center" colspan="6">';
echo '<input ', helper_get_tab_index(), ' name="slack_skip" type="checkbox" >' . plugin_lang_get('skip') . '</input>';
echo '</td></tr>';
}
示例4: Tracking
}
echo '</td></tr>';
}
# Time Tracking (if permitted)
if ( config_get('time_tracking_enabled') ) {
if ( access_has_bug_level( config_get( 'time_tracking_edit_threshold' ), $tpl_bug_id ) ) {
echo '<tr ', helper_alternate_class(), '>';
echo '<th class="category"><label for="time_tracking">' . lang_get( 'time_tracking' ) . '</label></th>';
echo '<td colspan="5"><input type="text" id="time_tracking" name="time_tracking" size="5" placeholder="hh:mm" /></td></tr>';
}
}
event_signal( 'EVENT_BUGNOTE_ADD_FORM', array( $tpl_bug_id ) );
# Submit Button
if ( $tpl_bottom_buttons_enabled ) {
echo '<tr><td class="center" colspan="6">';
echo '<input ', helper_get_tab_index(), ' type="submit" class="button" value="', lang_get( 'update_information_button' ), '" />';
echo '</td></tr>';
}
echo '</table></form>';
define( 'BUGNOTE_VIEW_INC_ALLOW', true );
include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'bugnote_view_inc.php' );
html_page_bottom();
last_visited_issue( $tpl_bug_id );
示例5: date
if ($t_can_update_due_date) {
$t_date_to_display = '';
if (!date_is_null($t_bug->due_date)) {
$t_date_to_display = date(config_get('calendar_date_format'), $t_bug->due_date);
}
?>
<!-- Due date -->
<tr>
<th class="category">
<?php
print_documentation_link('due_date');
?>
</th>
<td>
<?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 . '" />';
?>
</td>
</tr>
<?php
}
?>
<!-- Custom Fields -->
<?php
/** @todo thraxisp - I undid part of the change for #5068 for #5527
* We really need to say what fields are shown in which statusses. For now,
* this page will show required custom fields in update mode, or
* display or required fields on resolve or close
*/
$t_custom_status_label = 'update';
示例6: printBugUpdateSelectInput
/**
* @param $input
* @param $input_value
*/
public function printBugUpdateSelectInput($input, $input_value)
{
$storyboard_db_api = new storyboard_db_api();
$values = array();
$value_rows = $storyboard_db_api->select_all_types();
foreach ($value_rows as $value_row) {
$values[] = $value_row[1];
}
$this->printRow();
echo '<td class="category"><label for="' . $input . '">' . plugin_lang_get($input) . '</label></td>';
echo '<td colspan="5">';
echo '<span class="select">';
echo '<select ' . helper_get_tab_index() . ' id="' . $input . '" name="' . $input . '">';
echo '<option value=""></option>';
if (!is_null($values)) {
foreach ($values as $value) {
echo '<option value="' . $value . '"';
if ($value == $input_value) {
echo ' selected';
}
echo '>' . $value . '</option>';
}
}
echo '</select> ';
echo '</td>';
echo '</tr>';
}
示例7: print_status_option_list
function print_status_option_list($p_select_label, $p_current_value = 0, $p_allow_close = false, $p_project_id = ALL_PROJECTS)
{
$t_current_auth = access_get_project_level($p_project_id);
$t_enum_list = get_status_option_list($t_current_auth, $p_current_value, true, $p_allow_close, $p_project_id);
if (count($t_enum_list) > 1) {
# resort the list into ascending order
ksort($t_enum_list);
reset($t_enum_list);
echo '<select ' . helper_get_tab_index() . ' id="' . $p_select_label . '" name="' . $p_select_label . '">';
foreach ($t_enum_list as $key => $val) {
echo '<option value="' . $key . '"';
check_selected($key, $p_current_value);
echo '>' . string_html_specialchars($val) . '</option>';
}
echo '</select>';
} else {
if (count($t_enum_list) == 1) {
echo array_pop($t_enum_list);
} else {
echo MantisEnum::getLabel(lang_get('status_enum_string'), $p_current_value);
}
}
}
示例8: print_date_selection_set
/**
*
* @param string $p_name
* @param string $p_format
* @param int $p_date
* @param bool $p_default_disable
* @param bool $p_allow_blank
* @param int $p_year_start
* @param int $p_year_end
* @return null
* @access public
*/
function print_date_selection_set($p_name, $p_format, $p_date = 0, $p_default_disable = false, $p_allow_blank = false, $p_year_start = 0, $p_year_end = 0)
{
$t_chars = preg_split('//', $p_format, -1, PREG_SPLIT_NO_EMPTY);
if ($p_date != 0) {
$t_date = preg_split('/-/', date('Y-m-d', $p_date), -1, PREG_SPLIT_NO_EMPTY);
} else {
$t_date = array(0, 0, 0);
}
$t_disable = '';
if ($p_default_disable == true) {
$t_disable = ' disabled="disabled"';
}
$t_blank_line = '';
if ($p_allow_blank == true) {
$t_blank_line = "<option value=\"0\"></option>";
}
foreach ($t_chars as $t_char) {
if (strcmp($t_char, "M") == 0) {
echo "<select ", helper_get_tab_index(), " name=\"" . $p_name . "_month\"{$t_disable}>";
echo $t_blank_line;
print_month_option_list($t_date[1]);
echo "</select>\n";
}
if (strcmp($t_char, "m") == 0) {
echo "<select ", helper_get_tab_index(), " name=\"" . $p_name . "_month\"{$t_disable}>";
echo $t_blank_line;
print_numeric_month_option_list($t_date[1]);
echo "</select>\n";
}
if (strcasecmp($t_char, "D") == 0) {
echo "<select ", helper_get_tab_index(), " name=\"" . $p_name . "_day\"{$t_disable}>";
echo $t_blank_line;
print_day_option_list($t_date[2]);
echo "</select>\n";
}
if (strcasecmp($t_char, "Y") == 0) {
echo "<select ", helper_get_tab_index(), " name=\"" . $p_name . "_year\"{$t_disable}>";
echo $t_blank_line;
print_year_range_option_list($t_date[0], $p_year_start, $p_year_end);
echo "</select>\n";
}
}
}
示例9: cfdef_input_textbox
function cfdef_input_textbox($p_field_def, $t_custom_field_value)
{
echo '<input ', helper_get_tab_index(), ' type="text" name="custom_field_' . $p_field_def['id'] . '" size="80"';
if (0 < $p_field_def['length_max']) {
echo ' maxlength="' . $p_field_def['length_max'] . '"';
} else {
echo ' maxlength="255"';
}
echo ' value="' . string_attribute($t_custom_field_value) . '"></input>';
}
示例10: print_filter_tag_string
function print_filter_tag_string()
{
if (!access_has_global_level(config_get('tag_view_threshold'))) {
return;
}
global $t_filter;
$t_tag_string = $t_filter['tag_string'];
if ($t_filter['tag_select'] != 0) {
$t_tag_string .= is_blank($t_tag_string) ? '' : config_get('tag_separator');
$t_tag_string .= tag_get_field($t_filter['tag_select'], 'name');
}
?>
<input type="hidden" id="tag_separator" value="<?php
echo config_get('tag_separator');
?>
" />
<input type="text" name="tag_string" id="tag_string" size="40" value="<?php
echo $t_tag_string;
?>
" />
<select <?php
echo helper_get_tab_index();
?>
name="tag_select" id="tag_select">
<?php
print_tag_option_list();
?>
</select>
<?php
}
示例11: cfdef_input_textarea
function cfdef_input_textarea($p_field_def, $t_custom_field_value)
{
echo '<textarea ', helper_get_tab_index(), ' name="custom_field_' . $p_field_def['id'] . '"';
if (0 < $p_field_def['length_max']) {
echo ' maxlength="' . $p_field_def['length_max'] . '"';
} else {
echo ' maxlength="255"';
}
echo 'cols="70" rows="8">' . $t_custom_field_value . '</textarea>';
}
示例12: print_date_selection_set
/**
* Print <select> tag for selecting a date
* @param string $p_name Name for html select field attribute.
* @param string $p_format Date format e.g. YmD.
* @param integer $p_date Integer timestamp representing date.
* @param boolean $p_default_disable Whether date selector is disabled.
* @param boolean $p_allow_blank Whether blank/null date is allowed.
* @param integer $p_year_start First year to display in drop down.
* @param integer $p_year_end Last year to display in drop down.
* @return void
* @access public
*/
function print_date_selection_set($p_name, $p_format, $p_date = 0, $p_default_disable = false, $p_allow_blank = false, $p_year_start = 0, $p_year_end = 0)
{
$t_chars = preg_split('//', $p_format, -1, PREG_SPLIT_NO_EMPTY);
if ($p_date != 0) {
$t_date = preg_split('/-/', date('Y-m-d', $p_date), -1, PREG_SPLIT_NO_EMPTY);
} else {
$t_date = array(0, 0, 0);
}
$t_disable = '';
if ($p_default_disable == true) {
$t_disable = ' disabled="disabled"';
}
$t_blank_line = '';
if ($p_allow_blank == true) {
$t_blank_line = '<option value="0"></option>';
}
foreach ($t_chars as $t_char) {
if (strcmp($t_char, 'M') == 0) {
echo '<select ' . helper_get_tab_index() . ' name="' . $p_name . '_month"' . $t_disable . '>';
echo $t_blank_line;
print_month_option_list($t_date[1]);
echo "</select>\n";
}
if (strcmp($t_char, 'm') == 0) {
echo '<select ' . helper_get_tab_index() . ' name="' . $p_name . '_month"' . $t_disable . '>';
echo $t_blank_line;
print_month_option_list($t_date[1]);
echo '</select>' . "\n";
}
if (strcasecmp($t_char, 'D') == 0) {
echo '<select ' . helper_get_tab_index() . ' name="' . $p_name . '_day"' . $t_disable . '>';
echo $t_blank_line;
print_day_option_list($t_date[2]);
echo '</select>' . "\n";
}
if (strcasecmp($t_char, 'Y') == 0) {
echo '<select ' . helper_get_tab_index() . ' name="' . $p_name . '_year"' . $t_disable . '>';
echo $t_blank_line;
print_year_range_option_list($t_date[0], $p_year_start, $p_year_end);
echo '</select>' . "\n";
}
}
}
示例13: lang_get
<span class="label-style"></span>
</div>
<div class="field-container">
<label><span><?php echo lang_get( 'copy_from_parent' ) ?></span></label>
<span class="input">
<label><input <?php echo helper_get_tab_index() ?> type="checkbox" id="copy_notes_from_parent" name="copy_notes_from_parent" <?php check_checked( $f_copy_notes_from_parent ) ?> /> <?php echo lang_get( 'copy_notes_from_parent' ) ?></label>
<label><input <?php echo helper_get_tab_index() ?> type="checkbox" id="copy_attachments_from_parent" name="copy_attachments_from_parent" <?php check_checked( $f_copy_attachments_from_parent ) ?> /> <?php echo lang_get( 'copy_attachments_from_parent' ) ?></label>
</span>
<span class="label-style"></span>
</div>
<?php
}
?>
<div class="field-container">
<label><span><?php print_documentation_link( 'report_stay' ) ?></span></label>
<span class="input">
<label><input <?php echo helper_get_tab_index() ?> type="checkbox" id="report_stay" name="report_stay" <?php check_checked( $f_report_stay ) ?> /> <?php echo lang_get( 'check_report_more_bugs' ) ?></label>
</span>
<span class="label-style"></span>
</div>
<span class="submit-button">
<input <?php echo helper_get_tab_index() ?> type="submit" class="button" value="<?php echo lang_get( 'submit_report_button' ) ?>" />
</span>
</fieldset>
</form>
</div>
<?php
html_page_bottom();
示例14: config_get
print_user_option_list( $t_tag_row['user_id'], ALL_PROJECTS, config_get( 'tag_create_threshold' ) );
echo '</select></span>';
} else { ?>
<span class="display-label"><span><?php echo lang_get( 'tag_creator' ); ?></span></span>
<span class="display-value"><span><?php echo string_display_line( user_get_name($t_tag_row['user_id']) ); ?></span></span><?php
} ?>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<span class="display-label"><span><?php echo lang_get( 'tag_created' ) ?></span></span>
<span class="display-value"><span><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_created'] ) ?></span></span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<span class="display-label"><span><?php echo lang_get( 'tag_updated' ) ?></span></span>
<span class="display-value"><span><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_updated'] ) ?></span></span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="tag-description"><span><?php echo lang_get( 'tag_description' ) ?></span></label>
<span class="textarea"><textarea id="tag-description" name="description" <?php echo helper_get_tab_index() ?> cols="80" rows="6"><?php echo string_textarea( $t_description ) ?></textarea></span>
<span class="label-style"></span>
</div>
<span class="submit-button"><input <?php echo helper_get_tab_index() ?> type="submit" class="button" value="<?php echo lang_get( 'tag_update_button' ) ?>" /></span>
</fieldset>
</form>
</div>
<?php
html_page_bottom();
示例15: date
if (!date_is_null($t_bug->due_date)) {
$t_date_to_display = date(config_get('calendar_date_format'), $t_bug->due_date);
}
?>
<tr <?php
echo helper_alternate_class();
?>
>
<th class="category">
<?php
print_documentation_link('due_date');
?>
</th>
<td>
<?php
echo "<input " . helper_get_tab_index() . " type=\"text\" id=\"due_date\" name=\"due_date\" class=\"datetime\" size=\"20\" maxlength=\"10\" value=\"" . $t_date_to_display . "\" />";
?>
</td>
</tr>
<?php
}
?>
<!-- Custom Fields -->
<?php
/** @todo thraxisp - I undid part of the change for #5068 for #5527
* We really need to say what fields are shown in which statusses. For now,
* this page will show required custom fields in update mode, or
* display or required fields on resolve or close
*/
$t_custom_status_label = "update";