Example #1
0
?>
" required>
                </div>
            </div>

            <div class="form-group">
                <label for="ReportCategoryId" class="col-md-4 control-label"><?php 
echo $model->labels()['ReportCategoryId'];
?>
</label>
                <div class="col-md-4">
                    <select class="form-control" id="ReportCategoryId" name="report[ReportCategoryId]">
                        <?php 
$this->load->model("entities/easol/Easol_ReportCategory", 'Easol_ReportCategory');
$reportCategories = new Easol_ReportCategory();
foreach ($reportCategories->findAll()->result() as $reportCategory) {
    ?>
                                <option value="<?php 
    echo $reportCategory->ReportCategoryId;
    ?>
" <?php 
    echo $model->ReportCategoryId == $reportCategory->ReportCategoryId ? "selected" : "";
    ?>
><?php 
    echo $reportCategory->ReportCategoryName;
    ?>
</option>
                            <?php 
}
?>
                    </select>