if ( ! defined('BASEPATH')) exit('No direct script access allowed'); foreach($category_info as $info) { $id=$info['id']; } ?> <div class="block"> <form class="form-horizontal"> <div class="form-group"> <label for="usertype" class="col-sm-3 control-label">Category name</label> <div class="col-sm-6"> <input type="text" value="<?=get_file_category_info_by_id($id,'title')?>" class="form-control" id="title" placeholder="category..."> </div> </div> <div class="form-group"> <label for="selector1" class="col-sm-3 control-label">Tags</label> <div class="col-sm-6"> <select id="tags" name="tags[]" multiple="" style="width:100%" class="populate profiletype"> <optgroup label="Current actions"> <?php
<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> <div class="col-md-8"> <select class="form-control select" name="file_category" data-live-search="true"> <option selected class="text-info" value="<?= $category ?>"> <?= get_file_category_info_by_id($category, 'title') ?></option> <?php foreach (get_active_file_categories() as $category) { ?> <option value="<?= $category['id'] ?>"><?= $category['title'] ?></option> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-md-2 control-label">Access type</label> <div class="col-md-8"> <select id="access_type" name="access_type" class="form-control select" data-style="btn-default">
//videos case '2': ?> <a target="_blank" href="<?= $row['fileurl'] ?>">See video</a> <?php break; //others case '3': ?> <span class="label label-danger">Work in progress</span> <?php break; } ?> </td> <td><?= get_file_category_info_by_id($row['file_category'], 'title') ?></td> <td><?= get_file_type_info_by_id($row['file_type'], 'title') ?></td> </tr> <?php } ?> </tbody> </table> </div><!--end .card-body --> </div>
<tr> <th>Title</th> <th>Preview</th> <th>File type</th> </tr> </thead> <tbody> <?php //print_array($all_houses_paginated); $active_parent_categories = array(); foreach ($all_files as $row) { $active_parent_categories[] = $row['id']; //if the trash ias active if (get_file_category_info_by_id($row['file_category'], 'trash') == 'n') { ?> <tr> <td> <?php //if user has permission if (check_my_access('delete_files')) { ?> <a class="action_btn" href="" data-id="<?= $row['id'] ?>" data-action="delete_file" data-title="Delete <?= ucwords($row['title']) ?>" data-toggle="modal" data-target="#myModal"><i class="fa fa-trash-o text-danger"></i></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> <a href="<?= base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/category/' . encryptValue($row['file_category']) ?>"><?= get_file_category_info_by_id($row['file_category'], 'title') ?></a> </td> <td><?= get_file_type_info_by_id($row['file_type'], 'title') ?></td> </tr> <?php } } ?> </tbody> </table> </div>