本文整理汇总了PHP中glyphicon函数的典型用法代码示例。如果您正苦于以下问题:PHP glyphicon函数的具体用法?PHP glyphicon怎么用?PHP glyphicon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了glyphicon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_arbol_categorias
/**
*
* @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;
}
示例2: get_menu_item
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);
}
示例3: index
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);
}
示例4: index
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);
}
示例5: index
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);
}
示例6: index
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);
}
示例7: index
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);
}
示例8: option
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"];
?>
示例9: site_url
<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"> </td>
<td valign="top">
<input type="submit" class="pea-button-save" value="Simpan" name="save_resources">
</td>
</tr>
</tfoot>
</table>
</div>
示例10: site_url
<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>
示例11: glyphicon
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>
<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;
}
?>
示例12: status_user
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>
示例13: element
<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
示例14: glyphicon
</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>
示例15: echo
</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
}