当前位置: 首页>>代码示例>>PHP>>正文


PHP relationship_list_box函数代码示例

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


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

示例1: print_filter_relationship_type

/**
 * print relationship fields
 * @return void
 */
function print_filter_relationship_type()
{
    global $g_filter;
    $c_reltype_value = $g_filter[FILTER_PROPERTY_RELATIONSHIP_TYPE];
    if (!$c_reltype_value) {
        $c_reltype_value = -1;
    }
    relationship_list_box($c_reltype_value, 'relationship_type', true);
    echo '<input type="text" name="', FILTER_PROPERTY_RELATIONSHIP_BUG, '" size="5" maxlength="10" value="', $g_filter[FILTER_PROPERTY_RELATIONSHIP_BUG], '" />';
}
开发者ID:vipjaven,项目名称:mantisbt,代码行数:14,代码来源:filter_api.php

示例2: Relationship

		</td>
	</tr>
<?php 
}
# Relationship (in case of cloned bug creation...)
if ($f_master_bug_id > 0) {
    ?>
	<tr>
		<th class="category">
			<?php 
    echo lang_get('relationship_with_parent');
    ?>
		</th>
		<td>
			<?php 
    relationship_list_box(config_get('default_bug_relationship_clone'), 'rel_type', false, true);
    ?>
			<?php 
    echo '<strong>' . lang_get('bug') . ' ' . bug_format_id($f_master_bug_id) . '</strong>';
    ?>
		</td>
	</tr>

	<tr>
		<td class="category">
			<?php 
    echo lang_get('copy_from_parent');
    ?>
		</td>
		<td>
			<label><input <?php 
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:bug_report_page.php

示例3: relationship_view_box

/**
 * print HTML relationship form
 * @param integer $p_bug_id A bug identifier.
 * @return void
 */
function relationship_view_box($p_bug_id)
{
    ?>
<br/>

<?php 
    collapse_open('relationships');
    ?>
<table class="width100" cellspacing="1">
<tr class="row-2">
	<td width="15%" class="form-title" colspan="2">
		<?php 
    collapse_icon('relationships');
    echo lang_get('bug_relationships');
    if (ON == config_get('relationship_graph_enable')) {
        ?>
		<span class="small"><?php 
        print_bracket_link('bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=relation', lang_get('relation_graph'));
        ?>
</span>
		<span class="small"><?php 
        print_bracket_link('bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=dependency', lang_get('dependency_graph'));
        ?>
</span>
		<?php 
    }
    ?>
	</td>
</tr>
<?php 
    # bug not read-only and user authenticated
    if (!bug_is_readonly($p_bug_id)) {
        # user access level at least updater
        if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) {
            ?>
<tr class="row-1">
	<th class="category"><?php 
            echo lang_get('add_new_relationship');
            ?>
</th>
	<td><?php 
            echo lang_get('this_bug');
            ?>
		<form method="post" action="bug_relationship_add.php">
		<?php 
            echo form_security_field('bug_relationship_add');
            ?>
		<input type="hidden" name="src_bug_id" value="<?php 
            echo $p_bug_id;
            ?>
" size="4" />
		<?php 
            relationship_list_box(config_get('default_bug_relationship'));
            ?>
		<input type="text" name="dest_bug_id" value="" />
		<input type="submit" name="add_relationship" class="button" value="<?php 
            echo lang_get('add_new_relationship_button');
            ?>
" />
		</form>
	</td></tr>
<?php 
        }
    }
    ?>
<tr>
	<td colspan="2"><?php 
    echo relationship_get_summary_html($p_bug_id);
    ?>
</td>
</tr>
</table>

<?php 
    collapse_closed('relationships');
    ?>
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title">
		<?php 
    collapse_icon('relationships');
    echo lang_get('bug_relationships');
    ?>
	</td>
</tr>
</table>

<?php 
    collapse_end('relationships');
}
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:95,代码来源:relationship_api.php

示例4: Relationship

<!-- Relationship (in case of cloned bug creation...) -->
<?php 
if ($f_master_bug_id > 0) {
    ?>
<tr <?php 
    echo helper_alternate_class();
    ?>
>
	<td class="category">
		<?php 
    echo lang_get('relationship_with_parent');
    ?>
	</td>
	<td>
		<?php 
    relationship_list_box(-2, "rel_type", false, true);
    ?>
		<?php 
    print '<b>' . lang_get('bug') . ' ' . bug_format_id($f_master_bug_id) . '</b>';
    ?>
	</td>
</tr>
<?php 
}
?>

<!-- Report Stay (report more bugs) -->
<tr <?php 
echo helper_alternate_class();
?>
>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:bug_report_page.php

示例5: Relationship

<!-- Relationship (in case of cloned bug creation...) -->
<?php 
if ($f_master_bug_id > 0) {
    ?>
<tr <?php 
    echo helper_alternate_class();
    ?>
>
	<td class="category">
		<?php 
    echo lang_get('relationship_with_parent');
    ?>
	</td>
	<td>
		<?php 
    relationship_list_box(BUG_BLOCKS);
    ?>
		<?php 
    print '<b>' . lang_get('bug') . ' ' . bug_format_id($f_master_bug_id) . '</b>';
    ?>
	</td>
</tr>
<?php 
}
?>

<!-- Report Stay (report more bugs) -->
<tr <?php 
echo helper_alternate_class();
?>
>
开发者ID:centaurustech,项目名称:BenFund,代码行数:31,代码来源:bug_report_page.php

示例6: print_filter_relationship_type

function print_filter_relationship_type()
{
    global $t_filter;
    $c_reltype_value = $t_filter['relationship_type'];
    if (!$c_reltype_value) {
        $c_reltype_value = -1;
    }
    relationship_list_box($c_reltype_value, "relationship_type", true);
    ?>
		<input type="text" name="relationship_bug" size="5" maxlength="10" value="<?php 
    echo $t_filter['relationship_bug'];
    ?>
" />
		<?php 
}
开发者ID:amjadtbssm,项目名称:website,代码行数:15,代码来源:filter_api.php

示例7: helper_get_tab_index

		<td>
			<label><input <?php echo helper_get_tab_index() ?> type="radio" name="view_state" value="<?php echo VS_PUBLIC ?>" <?php check_checked( $f_view_state, VS_PUBLIC ) ?> /> <?php echo lang_get( 'public' ) ?></label>
			<label><input <?php echo helper_get_tab_index() ?> type="radio" name="view_state" value="<?php echo VS_PRIVATE ?>" <?php check_checked( $f_view_state, VS_PRIVATE ) ?> /> <?php echo lang_get( 'private' ) ?></label>
		</td>
	</tr>
	<?php
	}
	//Relationship (in case of cloned bug creation...)
	if( $f_master_bug_id > 0 ) {
?>
	<tr <?php echo helper_alternate_class() ?>>
		<th class="category">
			<?php echo lang_get( 'relationship_with_parent' ) ?>
		</th>
		<td>
			<?php relationship_list_box( /* none */ -2, "rel_type", false, true ) ?>
			<?php echo '<strong>' . lang_get( 'bug' ) . ' ' . bug_format_id( $f_master_bug_id ) . '</strong>' ?>
		</td>
	</tr>

	<tr <?php echo helper_alternate_class() ?>>
		<td class="category">
			<?php echo lang_get( 'copy_from_parent' ) ?>
		</td>
		<td>
			<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>
		</td>
	</tr>
<?php
	}
开发者ID:rombert,项目名称:mantisbt,代码行数:31,代码来源:bug_report_page.php


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