Ejemplo n.º 1
0
    <div class="form-group">
        <label class="col-md-2 control-label">Title</label>

        <div class="col-md-8">
            <input required="" type="text" name="title" class="form-control" value="<?= $title ?>"/>
        </div>
    </div>
    <div class="form-group">

        <label class="col-md-2 control-label">File type</label>

        <div class="col-md-8">
            <select id="file_type" name="file_type" class="form-control select" data-style="btn-default">
                <option selected class="text-info"
                        value="<?= $type ?>"> <?= get_file_type_info_by_id($type, 'title') ?></option>
                <?php
                foreach (get_active_file_types() as $type) {
                    ?>
                    <option value="<?= $type['id'] ?>"> <?= $type['title'] ?></option>
                <?php
                }
                ?>

            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">File category</label>
Ejemplo n.º 2
0
                                               video</a>
                                           <?php
                                           break;
                                       //others
                                       case '3':
                                           ?>
                                           <a href="<?= base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/download/' . $row['fileurl'] ?>"><i
                                                   class="fa fa-download"></i> <?= $row['fileurl'] ?>
                                           </a>
                                           <?php
                                           break;
                                   }
                                   ?>
                               </td>

                               <td><?= get_file_type_info_by_id($row['file_type'], 'title') ?></td>

                           </tr>
                       <?php
                       }



                   }

                   //if files available but categories are trashed
                   if (count($active_parent_categories) == 0) {
                       echo info_template('Some files can nit be displayed since their categories are trashed');
                   }
                   ?>