/**
  *
  * @param array $datas Array de elementos
  * @param int | array $selected Valor del option seleccionado o array de valores seleccionados
  * @param int $depth [optional | def = 1]
  * @param int $parent [optional | def = 0]
  * @return string
  */
 function render_arbol_categorias($datas, $selected, $depth = 1, $parent = 0)
 {
     if ($depth > 1000) {
         return '';
     }
     // Make sure not to have an endless recursion
     $tree = '<ul>';
     for ($i = 0, $ni = count($datas); $i < $ni; $i++) {
         if ($datas[$i]['id_padre'] == $parent) {
             $id_categoria = $datas[$i]['id_mm_categoria'];
             $li_selected = '';
             if (is_array($selected)) {
                 $li_selected = in_array($id_categoria, $selected) ? 'class="selected"' : '';
             } else {
                 $li_selected = (int) $id_categoria === (int) $selected ? 'class="selected"' : '';
             }
             $tree .= '<li ' . $li_selected . ' ><a class="dummy">';
             $tree .= $datas[$i]['nombre'] . '</a> <a class="js-link-filtro" data-id_categoria="' . $datas[$i]["id_mm_categoria"] . '" href="' . current_url() . '?categoria=' . $datas[$i]["id_mm_categoria"] . '">' . glyphicon("filter") . '</a>';
             $tree .= render_arbol_categorias($datas, $selected, $depth + 1, $id_categoria);
             $tree .= '</li>';
         }
     }
     $tree .= '</ul>';
     return $tree;
 }
Exemple #2
0
 private function get_menu_item($menu_id)
 {
     $this->load->library('table');
     $this->load->model('menu_item');
     $content_vars = array();
     // Template da tabela
     $this->table->set_template(array('table_open' => '<table class="table table-striped table-bordered">'));
     $this->table->set_heading('Label', 'Ordem', 'Tipo', 'Link', 'Ações');
     $query = $this->menu_item->get_by_field('menu_id', $menu_id, array('field' => 'ordem', 'order' => 'asc'));
     foreach ($query->result() as $row) {
         switch ($row->tipo) {
             case 'post':
                 $link = $this->get_titulo_postagem($row->href);
                 break;
             case 'posts':
                 $link = $this->get_titulo_categoria($row->href);
                 break;
             case 'link':
                 $link = $row->href;
                 break;
             case 'funcional':
                 $link = humanize($row->href);
                 break;
             case 'submenu':
                 $link = $this->get_titulo_menu($row->href);
                 break;
         }
         $this->table->add_row($row->label, $row->ordem, humanize($row->tipo), $link, div(array('class' => 'btn-group btn-group-sm')) . anchor('admin/menuitens/edit/' . $row->id, glyphicon('edit'), array('class' => 'btn btn-default')) . '<button class="btn btn-default" onClick="return confirmar(\'' . site_url('admin/menuitens/delete/' . $row->id) . '\');">' . glyphicon('trash') . '</button>' . div(null, true));
     }
     $content_vars['menu_id'] = $menu_id;
     $content_vars['listagem'] = $this->table->generate();
     return $this->load->view('menuitens/index', $content_vars, TRUE);
 }
Exemple #3
0
 public function index()
 {
     $this->load->library('table');
     $this->table->set_template(array('table_open' => '<table id="grid" class="table table-striped">'));
     $this->table->set_heading('Id', 'Titulo', 'Descricao', 'Status', 'Ações');
     $query = $this->video->get_list()->result();
     foreach ($query as $row) {
         $this->table->add_row($row->id, $row->titulo, $row->descricao, status_post($row->status), div(array('class' => 'btn-group btn-group-sm')) . anchor('admin/videos/edit/' . $row->id, glyphicon('edit'), array('class' => 'btn btn-default')) . '<button class="btn btn-default" onClick="return confirmar(\'' . site_url('admin/videos/delete/' . $row->id) . '\');">' . glyphicon('trash') . '</button>' . div(null, true));
     }
     $this->content_vars['listagem'] = $this->table->generate();
     $this->wpanel->load_view('videos/index', $this->content_vars);
 }
Exemple #4
0
 public function index()
 {
     $this->load->model('categoria');
     $this->load->library('table');
     $layout_vars = array();
     $content_vars = array();
     // Template da tabela
     $this->table->set_template(array('table_open' => '<table id="grid" class="table table-striped">'));
     $this->table->set_heading('#', 'Título', 'Categoria-pai', 'Visão', 'Ações');
     $query = $this->categoria->get_list();
     foreach ($query->result() as $row) {
         $this->table->add_row($row->id, $row->title, $this->categoria->get_title_by_id($row->category_id), $row->view, div(array('class' => 'btn-group btn-group-sm')) . anchor('admin/categorias/edit/' . $row->id, glyphicon('edit'), array('class' => 'btn btn-default')) . '<button class="btn btn-default" onClick="return confirmar(\'' . site_url('admin/categorias/delete/' . $row->id) . '\');">' . glyphicon('trash') . '</button>' . div(null, true));
     }
     $content_vars['listagem'] = $this->table->generate();
     $this->wpanel->load_view('categorias/index', $content_vars);
 }
Exemple #5
0
 public function index()
 {
     $this->load->model('post');
     $this->load->library('table');
     $layout_vars = array();
     $content_vars = array();
     // Template da tabela
     $this->table->set_template(array('table_open' => '<table id="grid" class="table table-striped">'));
     $this->table->set_heading('#', 'Título', 'Data', 'Status', 'Ações');
     $query = $this->post->get_by_field('page', '1');
     foreach ($query->result() as $row) {
         $this->table->add_row($row->id, $row->title, mdate('%d/%m/%Y', strtotime($row->created)), status_post($row->status), div(array('class' => 'btn-group btn-group-sm')) . anchor('admin/pages/edit/' . $row->id, glyphicon('edit'), array('class' => 'btn btn-default')) . '<button class="btn btn-default" onClick="return confirmar(\'' . site_url('admin/pages/delete/' . $row->id) . '\');">' . glyphicon('trash') . '</button>' . div(null, true));
     }
     $content_vars['listagem'] = $this->table->generate();
     $this->wpanel->load_view('pages/index', $content_vars);
 }
Exemple #6
0
 public function index()
 {
     $this->load->model('album');
     $this->load->library('table');
     $layout_vars = array();
     $content_vars = array();
     // Template da tabela
     $this->table->set_template(array('table_open' => '<table id="grid" class="table table-striped">'));
     $this->table->set_heading('#', 'Capa', 'Título', 'Data', 'Status', 'Ações');
     $query = $this->album->get_list();
     foreach ($query->result() as $row) {
         $capa_properties = array('src' => base_url() . '/media/capas/' . $row->capa, 'class' => 'img-responsive', 'width' => '120', 'alt' => $row->titulo);
         $capa = img($capa_properties);
         $this->table->add_row($row->id, $capa, anchor('admin/fotos/index/' . $row->id, glyphicon('picture') . $row->titulo), mdate('%d/%m/%Y - %H:%i', strtotime($row->created)), status_post($row->status), div(array('class' => 'btn-group btn-group-sm')) . anchor('admin/fotos/index/' . $row->id, glyphicon('picture'), array('class' => 'btn btn-default')) . anchor('admin/albuns/edit/' . $row->id, glyphicon('edit'), array('class' => 'btn btn-default')) . '<button class="btn btn-default" onClick="return confirmar(\'' . site_url('admin/albuns/delete/' . $row->id) . '\');">' . glyphicon('trash') . '</button>' . div(null, true));
     }
     $content_vars['listagem'] = $this->table->generate();
     $this->wpanel->load_view('albuns/index', $content_vars);
 }
Exemple #7
0
 public function index($album_id)
 {
     $this->load->model('album');
     $this->load->model('foto');
     $this->load->library('table');
     $layout_vars = array();
     $content_vars = array();
     // Dados do álbum
     // $query_album = $this->album->get_by_id($album_id)->row();
     // Template da tabela
     $this->table->set_template(array('table_open' => '<table id="grid" class="table table-striped">'));
     $this->table->set_heading('#', 'Imagem', 'Descricao', 'Data', 'Status', 'Ações');
     $query = $this->foto->get_by_field('album_id', $album_id, array('field' => 'created', 'order' => 'desc'));
     foreach ($query->result() as $row) {
         $capa_properties = array('src' => base_url() . '/media/albuns/' . $album_id . '/' . $row->filename, 'class' => 'img-responsive', 'width' => '120', 'alt' => $row->descricao);
         $imagem = img($capa_properties);
         $this->table->add_row($row->id, $imagem, $row->descricao, mdate('%d/%m/%Y - %H:%i', strtotime($row->created)), status_post($row->status), div(array('class' => 'btn-group btn-group-sm')) . anchor('admin/fotos/edit/' . $row->id, glyphicon('edit'), array('class' => 'btn btn-default')) . '<button class="btn btn-default" onClick="return confirmar(\'' . site_url('admin/fotos/delete/' . $row->id) . '\');">' . glyphicon('trash') . '</button>' . div(null, true));
     }
     $content_vars['album_id'] = $album_id;
     $content_vars['listagem'] = $this->table->generate();
     $this->wpanel->load_view('fotos/index', $content_vars);
 }
        echo option($tabla, $tabla, "");
        ?>
                                <?php 
    }
    ?>
                            </select>
                            <label>Alias</label>
                            <input class="form-control js-ipt-alias-tabla-join" type="text" name='campos[<?php 
    echo $columna["name"];
    ?>
][join][alias_tabla]' value="" placeholder="AS alias" disabled />
                            <a href="javascript:void(0);" class="js-toggle-habilitar-join" data-columna="<?php 
    echo $columna["name"];
    ?>
"><?php 
    echo glyphicon("edit");
    ?>
</a>
                        </td>

                        <td><input class="form-control" type="text" name='campos[<?php 
    echo $columna["name"];
    ?>
][join][on]' value="" placeholder="alias.columna = <?php 
    echo "{$alias_tabla}.{$columna["name"]}";
    ?>
" /><br/></td>
                        <td>
                            <select class="form-control" name='campos[<?php 
    echo $columna["name"];
    ?>
<a href="<?php 
echo site_url('_cpanel/admin/resources/add/');
?>
" class="general-button"><?php 
echo glyphicon('glyphicon-plus');
?>
Tambah resources</a>
<br /><br />
<div id="peaBoxContent">
<table cellspacing="0" cellpadding="0" border="0" class="formTbl">
    <thead>
        <tr class="title">
            <td id="formTblHead" colspan="2"><strong>Tambah resources</strong></td>
        </tr>
     <tbody
        <?php 
echo table_resources($resources);
?>
    </tbody>
    
    <tfoot>
        <tr class="title">
            <td valign="top">&nbsp;</td>
            <td valign="top">
                <input type="submit" class="pea-button-save" value="Simpan" name="save_resources">
            </td>
        </tr>
    </tfoot>
    </table>
</div>
Exemple #10
0
<section class="content-header">
    <h1>
        Álbuns de foto
        <small>Gerencie os álbuns de foto do site aqui.</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="<?php 
echo site_url('admin/dashboard');
?>
"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><i class="fa fa-camera"></i> Álbuns</li>
    </ol>
</section>

<section class="content">
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Lista de álbuns</h3>
            <div class="box-tools pull-right">
                <?php 
echo anchor('admin/albuns/add', glyphicon('plus-sign') . 'Novo álbum', array('class' => 'btn btn-sm btn-primary'));
?>
            </div>
        </div>
        <div class="box-body">
            <?php 
echo $listagem;
?>
        </div>
    </div>
</section>
Exemple #11
0
<section class="content-header">
	<h1>
		Videos
		<small>Painel de gerenciamento de Videos.</small>
	</h1>
	<ol class="breadcrumb">
		<li><a href="<?php 
echo site_url('admin/dashboard');
?>
"><i class="fa fa-dashboard"></i> Dashboard</a></li>
		<li><i class="fa fa-tag"></i> Videos</li>
	</ol>
</section>
<section class="content">
	<div class="box">
		<div class="box-header with-border">
			<h3 class="box-title">Listagem de videos</h3>
			<div class="box-tools pull-right">
				<?php 
echo anchor('admin/videos/add', glyphicon('plus-sign') . 'Novo cadastro', array('class' => 'btn btn-sm btn-primary'));
?>
			</div>
		</div>
		<div class="box-body">
			<?php 
echo $listagem;
?>
		</div>
	</div>
</section>
if (isset($filtros_metadata)) {
    echo $filtros_metadata;
}
?>
                    </div>
                    <div class="row">
                        <div class='col-lg-12 text-right'>
                            <a href="<?php 
echo $url_listado;
?>
" class="btn btn-default " ><?php 
echo glyphicon("trash");
?>
 Limpiar</a> &nbsp;
                            <button type="submit" class="btn btn-primary " ><?php 
echo glyphicon("search");
?>
 Buscar</button>
                        </div>
                    </div>
                </fieldset>
            </form>
        </div>
        <br>
        <br>
        <div class="col-lg-12">
            <?php 
if (isset($view_elementos)) {
    echo $view_elementos;
}
?>
Exemple #13
0
    echo $row->name;
    ?>
</td>
                            <td><?php 
    echo $row->email;
    ?>
</td>
                            <td>
                                <?php 
    echo status_user($row->status);
    ?>
                            </td>
                            <td>
                                <div class="btn-group btn-group-sm">
                                    <?php 
    echo anchor('admin/usuarios/edit/' . $row->id, '<span class="glyphicon glyphicon-edit"></span>', array('class' => 'btn btn-default'));
    ?>
                                    <?php 
    echo '<button class="btn btn-default" onClick="return confirmar(\'' . site_url('admin/usuarios/delete/' . $row->id) . '\');">' . glyphicon('trash') . '</button>';
    ?>
                                </div>
                            </td>
                        </tr>
                    <?php 
}
?>
                </tbody>
            </table>
        </div>
    </div>
</section>
Exemple #14
0
        Menus
        <small>Gerencie os menús e opções de navegação do site aqui.</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="<?php 
echo site_url('admin/dashboard');
?>
"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><i class="fa fa-reorder"></i> Menus</li>
    </ol>
</section>

<section class="content">
    <div class="box box-solid">
        <div class="box-header with-border">
            <h3 class="box-title">Lista de menus</h3>
            <div class="box-tools pull-right">
                <?php 
echo anchor('admin/menus/add', glyphicon('plus-sign') . 'Novo menu', array('class' => 'btn btn-sm btn-primary'));
?>
            </div>
        </div>
        <div class="box-body">
            <ul class="list-group">
		        <?php 
echo $listagem;
?>
		    </ul>
        </div>
    </div>
</section>
<td><?php 
    echo element($row, 'cod_postal', '');
    ?>
</td>
<td><?php 
    echo element($row, 'activo', '');
    ?>
</td>
<td class='text-center'><div class='btn-group'>     <a data-toggle='tooltip' title='editar' class='btn btn-xs btn-default' href='/ciudad/editar/<?php 
    echo element($row, 'id_ciudad', 0);
    ?>
'><?php 
    echo glyphicon('edit');
    ?>
</a>     <a href='javascript:void(0)' data-toggle='tooltip' title='eliminar' class='btn btn-xs btn-danger'><?php 
    echo glyphicon('trash');
    ?>
</a></div></td>
</tr>

                <?php 
}
?>
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="8">
                        <div class="btn-group btn-group-sm pull-right">
                            <nav>
                                <ul class="pagination">
                                    <?php 
                </div>
                <div class="form-group">
                    <label class="">Nombre original:</label>
                    <input type="text" name="nombre_original" id="nombre_original" value="<?php 
echo $data_elemento["nombre_original"];
?>
"placeholder="Nombre original de la foto" class="form-control" />
                </div>
                <?php 
if (isset($form_editar_metadata)) {
    echo $form_editar_metadata;
}
?>

            </div>
            <div class="col-lg-7 col-md-7">
                <?php 
if (isset($preview_elemento)) {
    echo $preview_elemento;
}
?>
            </div>
            <div class="col-lg-12 col-md-12 text-center">
                <button class="btn btn-primary" name="guardar" type="submit"><?php 
echo glyphicon("disk");
?>
 Guardar</button>
            </div>
        </div>
    </form>
</div>
                    </div>
                </td>
                <td  class="col-md-2"><?php 
    echo $elemento["titulo"];
    ?>
</td>
                <td  class="col-md-1"><?php 
    echo $elemento["duracion"];
    ?>
</td>
                <td  class="col-md-1"><?php 
    echo $elemento["resolucion"];
    ?>
</td>
                <td  class="col-md-1 text-center"><?php 
    echo (int) $elemento["es_hd"] === 1 ? glyphicon("ok-circle", 'text-success') : glyphicon("remove-circle", 'text-danger');
    ?>
</td>
                <td  class="col-md-2"><?php 
    echo mysql_to_human_datetime($elemento["fecha_subida"]);
    ?>
</td>
                <td  class="col-md-2 text-center">
                    <?php 
    $data_acciones = array("elemento" => "video", "id_elemento" => $elemento["id_mm_video"], "id_archivo" => $elemento["id_mm_archivo"]);
    $this->load->view("/mm/archivos/partials/_btn_acciones_listado", $data_acciones);
    ?>
                </td>
            </tr>
        <?php 
}
<div class="col-lg-8 col-lg-offset-2">
    <div class="alert alert-warning">
        <p>
            <?php 
echo glyphicon("warning");
?>
 &iexcl;Atenci&oacute;n!:
            Si elimina esta categor&iacute;a, las categor&iacute;as descendientes quedar&aacute;n asignadas a la categor&iacute;a "Ra&iacute;z"
        </p>
    </div>
    <form class="form-horizontal" action="/mm/categorias/eliminar" method="POST">
        <input type="hidden" name="id_mm_categoria" value="<?php 
echo element("id_mm_categoria", $data, 0);
?>
" />
        <div class="form-group">
            <label class="col-sm-2 control-label">Padre</label>
            <div class="col-sm-10">
                <p class="form-control-static"><?php 
echo (string) element("padre", $data, "") === "" ? "Ra&iacute;z" : element("padre", $data, "");
?>
</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">Nombre</label>
            <div class="col-sm-10">
                <p class="form-control-static"><?php 
echo element("nombre", $data);
?>
</p>
                    <div class="form-group">
                        <label>Text</label><br>
                        <input type="text"  style="width:100px" class="form-control" name="text_field" id="text_field" />
                    </div>
                    <div class="form-group">
                        <label>Posicion</label><br>
                        <input type="number"  style="width:50px" placeholder="1" class="form-control" name="posicion" id="posicion" />
                    </div>
                    <div class="checkbox"><br>
                        <label>
                            <input type="checkbox" value="1" name="selected" id="selected" /> Selected
                        </label>
                    </div>
                    <div class="form-group pull-right"><br>
                        <button class="btn btn-sm btn-success " id="btn-agregar-option" type="button"><?php 
echo glyphicon("plus");
?>
</button>
                    </div>
                </form>
                <br>
                <h4>Options agregadas</h4>
                <div id="contenedor-options-select">

                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                <button type="button" class="btn btn-primary js-btn-guardar-cambios">Guardar cambios</button>
            </div>
        </div>
<a href="/mm/archivos/editar/<?php 
echo $elemento;
?>
/<?php 
echo $id_elemento;
?>
" class="btn btn-default btn-xs" role="button"><?php 
echo glyphicon("edit");
?>
</a>
<a href="#" class="btn btn-danger btn-xs js-eliminar-registro" data-id_archivo="<?php 
echo $id_archivo;
?>
" role="button"><?php 
echo glyphicon("trash");
?>
</a>
<a href="#" class="btn btn-success btn-xs js-seleccionar-archivo js-btn-seleccionar" data-id_archivo="<?php 
echo $id_archivo;
?>
" role="button"><?php 
echo glyphicon("check");
?>
</a>
Exemple #21
0
<section class="content-header">
    <h1>
        Páginas
        <small>Gerencie as páginas fixas do site aqui.</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="<?php 
echo site_url('admin/dashboard');
?>
"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><i class="fa fa-files-o"></i> Páginas</li>
    </ol>
</section>

<section class="content">
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Lista de páginas</h3>
            <div class="box-tools pull-right">
                <?php 
echo anchor('admin/pages/add', glyphicon('plus-sign') . 'Nova página', array('class' => 'btn btn-sm btn-primary'));
?>
            </div>
        </div>
        <div class="box-body">
            <?php 
echo $listagem;
?>
        </div>
    </div>
</section>
Exemple #22
0
echo div(array('class' => 'form-group'));
echo form_label('Conteúdo', 'content');
echo form_textarea(array('name' => 'content', 'value' => set_value('content'), 'class' => 'form-control', 'id' => 'editor'));
echo form_error('content');
echo close_div();
echo row();
echo col(3);
echo div(array('class' => 'form-group'));
echo form_label('Imagem de capa', 'userfile');
echo form_input(array('name' => 'userfile', 'type' => 'file'));
echo close_div(2);
echo col(3);
echo div(array('class' => 'form-group'));
echo form_label('Categorias ', 'category_id');
echo form_multiselect('category_id[]', $categorias, null, null, 'form-control');
echo anchor('admin/categorias', glyphicon('share') . ' Cadastro de categorias');
echo close_div(2);
echo col(3);
echo div(array('class' => 'form-group'));
echo form_label('Palavras-chave (Separe com vírgula)', 'tags');
echo form_textarea(array('name' => 'tags', 'value' => set_value('tags'), 'class' => 'form-control', 'rows' => '5'));
echo close_div(2);
// Opções de status
$options = array('0' => 'Rascunho', '1' => 'Publicado');
echo col(3);
echo div(array('class' => 'form-group'));
echo form_label('Status', 'status');
echo form_dropdown('status', $options, null, null, 'form-control');
echo close_div(3);
echo hr();
echo row();
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">&times;</button>
                <h4 class="modal-title" id="myModalLabel">&Aacute;rbol de categor&iacute;as</h4>
            </div>
            <!-- Modal Body -->
            <div class="modal-body">
                <div class="arbol-categorias">
                    <ul>
                        <li <?php 
echo $this->input->get("categoria") === "0" ? 'class="selected"' : '';
?>
 >
                            <a class="dummy" href="#">Ra&iacute;z</a><a class='js-link-filtro' data-id_categoria='0' href="<?php 
echo current_url();
?>
/?categoria=0&busqueda_avanzada=1"><?php 
echo glyphicon("filter");
?>
</a>
                            <?php 
echo render_arbol_categorias($categorias, $selected);
?>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- END Modal Adicionales Eliminar -->
        </div>
    </div>
</div>
<!-- END User Settings -->
                            <small class="text-danger" ng-show="archivoSeleccionado.fallado">{{archivoSeleccionado.msj_error_subida}}</small>
                            <button type="button" class="btn btn-success btn-xs" ng-hide="archivoSeleccionado.subido || archivoSeleccionado.fallado" ng-click="uploaderCtrl.subirArchivo(archivoSeleccionado);" ng-hide="archivoSeleccionado.fallado" ng-disabled="archivoSeleccionado.subido || archivoSeleccionado.subiendo">
                                <?php 
echo glyphicon("upload");
?>
 Subir
                            </button>
                            <button type="button" class="btn btn-warning btn-xs" ng-hide="archivoSeleccionado.subido || archivoSeleccionado.fallado" ng-click="uploaderCtrl.cancelarArchivo(archivoSeleccionado);" ng-hide="archivoSeleccionado.fallado" ng-disabled="archivoSeleccionado.subido || archivoSeleccionado.cancelado || archivoSeleccionado.fallado">
                                <?php 
echo glyphicon("ban-circle");
?>
 Cancelar
                            </button>
                            <button type="button" class="btn btn-danger btn-xs" ng-hide="archivoSeleccionado.subido" ng-click="uploaderCtrl.quitarArchivo(archivoSeleccionado);" ng-disabled="(archivoSeleccionado.subido || archivoSeleccionado.subiendo) && !archivoSeleccionado.fallado" >
                                <?php 
echo glyphicon("trash");
?>
 Quitar
                            </button>
                            <a type="button" class="btn btn-default btn-xs" ng-show="archivoSeleccionado.subido" ng-click="uploaderCtrl.editarArchivo('<?php 
echo $elemento;
?>
', archivoSeleccionado);" href="#" >
                                <span class="glyphicon glyphicon-edit"></span> Editar
                            </a>
                        </td>
                    </tr>
                </tbody>
            </table>

            <div ng-show="uploaderCtrl.archivosSeleccionados.length > 0" >
Exemple #25
0
										<small>Cadastrado em <?php 
echo datetime_for_user($this->wpanel->get_from_user('created'), false);
?>
</small>
									</p>
								</li>
								<!-- Menu Footer-->
								<li class="user-footer">
									<div class="pull-left">
										<?php 
echo anchor('admin/usuarios/profile', glyphicon('user') . 'Perfil', array('class' => 'btn btn-primary btn-flat'));
?>
									</div>
									<div class="pull-right">
										<?php 
echo anchor('/admin/logout', glyphicon('off') . 'Sair', array('class' => 'btn btn-danger btn-flat'));
?>
									</div>
								</li>
							</ul>
						</li>
					</ul>
				</div>
			</nav>
		</header>

		<!-- Left side column. contains the sidebar -->
		<aside class="main-sidebar">
			<!-- sidebar: style can be found in sidebar.less -->
			<section class="sidebar">
				<!-- Sidebar user panel -->
            <option value="asc" data-icon="glyphicon-arrow-up" <?php 
echo strtolower($sentido) === "asc" ? "selected" : "";
?>
 >ASC</option>
            <option value="desc" data-icon="glyphicon-arrow-down" <?php 
echo strtolower($sentido) === "desc" ? "selected" : "";
?>
>DESC</option>
        </select>
    </div>
</form>
<?php 
if (empty($elementos)) {
    ?>
    <p class='alert alert-info'><?php 
    echo glyphicon("info-sign");
    ?>
 No hay elementos en el repositorio</p>
<?php 
} else {
    ?>
    <table class="table table-hover table-responsive" data-jsfiles="['listado_documentos.js']">
        <thead>
            <tr class="bg-primary">
                <th class="col-md-1">#</th>
                <th class="col-md-2">Preview</th>
                <th class="col-md-2">Autor</th>
                <th class="col-md-2">Nombre</th>
                <th class="col-md-2">Descripci&oacute;n</th>
                <th class="col-md-2">Fecha subida</th>
                <th class="col-md-1">Acciones</th>
Exemple #27
0
        <li><a href="<?php 
echo site_url('admin/albuns');
?>
"><i class="fa fa-camera"></i> Álbuns</a></li>
        <li>Fotos</li>
    </ol>
</section>

<section class="content">
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Lista de fotos</h3>
            <div class="box-tools pull-right">
                <?php 
echo anchor('admin/albuns', glyphicon('chevron-left') . 'Voltar', array('class' => 'btn btn-sm btn-primary'));
?>
                <?php 
echo anchor('admin/fotos/add/' . $album_id, glyphicon('plus-sign') . 'Adicionar foto', array('class' => 'btn btn-sm btn-primary'));
?>
                <?php 
echo anchor('admin/fotos/addmass/' . $album_id, glyphicon('plus-sign') . 'Adicionar foto em massa', array('class' => 'btn btn-sm btn-primary'));
?>
            </div>
        </div>
        <div class="box-body">
            <?php 
echo $listagem;
?>
        </div>
    </div>
</section>
                    <?php 
echo render_arbol_options_categorias($categorias, element("id_padre", $data, 0));
?>
                </select>
                <button type="button" class="btn btn-sm btn-default" id="btn-ver-arbol-categorias"><?php 
echo glyphicon("tree-conifer");
?>
</button>
            </div>
            <div class="form-group">
                <label class="control-label">Nombre:</label>
                <input type="text" class="form-control" name="nombre" id="nombre" value="<?php 
echo element("nombre", $data, "");
?>
"/>

            </div>
            <button type="submit" name="guardar" value="1" class="btn btn-success" ><?php 
echo glyphicon("ok");
?>
&nbsp;Guardar</button>
            <button type="submit" name="guardar_volver" value="1" class="btn btn-primary" ><?php 
echo glyphicon("repeat");
?>
&nbsp;Guardar e ir al listado</button>
            <a href="/mm/categorias/listado" class="btn btn-default  pull-right">Cancelar</a>
        </form>
    </div>
</div>
<?php 
$this->load->view("/mm/archivos/modales/modal_arbol_categorias", array("categorias" => $categorias, "selected" => $this->input->get("padre")));
Exemple #29
0
<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">Itens de menu</h3>
        <div class="box-tools pull-right">
            <?php 
echo anchor('admin/menuitens/add/' . $menu_id, glyphicon('plus-sign') . 'Novo ítem de menu', array('class' => 'btn btn-sm btn-warning'));
?>
        </div>
    </div>
    <div class="box-body">
        <?php 
echo $listagem;
?>
    </div>
</div>
Exemple #30
0
<section class="content-header">
    <h1>
        Agendas de eventos
        <small>Gerencie os eventos que serão exibidos no site aqui.</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="<?php 
echo site_url('admin/dashboard');
?>
"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><i class="fa fa-calendar"></i> Agendas</li>
    </ol>
</section>

<section class="content">
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Lista de eventos</h3>
            <div class="box-tools pull-right">
                <?php 
echo anchor('admin/agendas/add', glyphicon('plus-sign') . 'Novo evento', array('class' => 'btn btn-sm btn-primary'));
?>
            </div>
        </div>
        <div class="box-body">
            <?php 
echo $listagem;
?>
        </div>
    </div>
</section>