コード例 #1
0
ファイル: config_api.php プロジェクト: mikemol/EmailReporting
function ERP_custom_function_print_tag_attach_option_list($p_sel_value)
{
    require_api('tag_api.php');
    $t_rows = tag_get_candidates_for_bug(0);
    foreach ($t_rows as $row) {
        $t_string = $row['name'];
        if (!empty($row['description'])) {
            $t_string .= ' - ' . utf8_substr($row['description'], 0, 20);
        }
        echo '<option value="', $row['id'], '" title="', string_attribute($row['name']), '"';
        check_selected((array) $p_sel_value, (int) $row['id']);
        echo '>', string_attribute($t_string), '</option>';
    }
}
コード例 #2
0
ファイル: print_api.php プロジェクト: nextgens/mantisbt
/**
 * Print the dropdown combo-box of existing tags.
 * When passed a bug ID, the option list will not contain any tags attached to the given bug.
 * @param integer Bug ID
 */
function print_tag_option_list($p_bug_id = 0)
{
    $t_rows = tag_get_candidates_for_bug($p_bug_id);
    echo '<option value="0">', string_html_specialchars(lang_get('tag_existing')), '</option>';
    foreach ($t_rows as $row) {
        $t_string = $row['name'];
        if (!empty($row['description'])) {
            $t_string .= ' - ' . utf8_substr($row['description'], 0, 20);
        }
        echo '<option value="', $row['id'], '" title="', string_attribute($row['name']), '">', string_attribute($t_string), '</option>';
    }
}
コード例 #3
0
ファイル: print_api.php プロジェクト: spring/spring-website
/**
 * Print the drop-down combo-box of existing tags.
 * When passed a bug ID, the option list will not contain any tags attached to the given bug.
 * @param integer $p_bug_id A bug identifier.
 * @return void
 */
function print_tag_option_list($p_bug_id = 0)
{
    $t_rows = tag_get_candidates_for_bug($p_bug_id);
    echo '<option value="0">', string_html_specialchars(lang_get('tag_existing')), '</option>';
    foreach ($t_rows as $t_row) {
        echo '<option value="', $t_row['id'], '" title="', string_attribute($t_row['description']);
        echo '">', string_attribute($t_row['name']), '</option>';
    }
}