Ejemplo n.º 1
0
            <label class="control-label">Source funding <?php 
echo text_danger_template('*');
?>
</label>

            <div class="controls">
                <select id="source_funding" class="span6 " data-placeholder="Choose a Category" tabindex="1">
                    <option selected value="<?php 
echo get_procurement_plan_entry_info($entry_id, 'source_funding_id');
?>
"><?php 
echo get_procurement_plan_entry_info($entry_id, 'source_funding');
?>
</option>
                    <?php 
foreach (get_active_source_funding() as $funding) {
    ?>
                        <option value="<?php 
    echo $funding['id'];
    ?>
"><?php 
    echo $funding['title'];
    ?>
</option>
                    <?php 
}
?>

                </select>
            </div>
        </div>
Ejemplo n.º 2
0
                            </div>
                        </div>
                        
                        <div class="control-group <?php 
echo in_array('funding_source', $requiredfields) ? 'error' : '';
?>
">
                            <label class="control-label">Source of funding <?php 
echo text_danger_template('*');
?>
</label>

                            <div class="controls">
                                <select id="funding-source" class="input-large" name="funding_source" data-placeholder="Choose a Category" tabindex="1">
                                    <?php 
echo get_select_options(get_active_source_funding(), 'id', 'title', !empty($formdata['funding_source']) ? $formdata['funding_source'] : '');
?>
                                </select>
                            </div>
                        </div>

                        <div class="control-group <?php 
echo in_array('procurement_method', $requiredfields) ? 'error' : '';
?>
">
                            <label class="control-label">Procurement method <?php 
echo text_danger_template('*');
?>
</label>

                            <div class="controls">