Exemplo n.º 1
0
function pages($k, $t, $c, $d = null, $m = null, $b = null, $ks = null, $nk = null)
{
    $r = "<div class='row no-margin-bottom x-center m-left' style='border-bottom:solid 1px #ddd;'>\n\t<div class='x-100 m-50' style='height:80px;'>\n\t\t<div class='middle'>\n\t\t\t<div class='middle-wrapper'>\n\t\t\t\t<h3>{$t}</h3>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class='x-100 s-50 m-25 center' style='height:80px;'>\n\t\t<div class='middle'><div class='middle-wrapper'><div class='group-button full'>\n\t\t" . link_to_all('TODOS', 'button center', $m) . link_to_create('NOVO', 'button center', $m) . "</div></div></div></div>\n\t<div class='x-100 s-50 m-25' style='height:80px;'>\n\t\t<div class='middle'><div class='middle-wrapper'>" . search_form($c, $m) . "</div></div></div>\n</div>\n<div class='row'>\n\t<div class='x-100'>";
    if ($k == "index") {
        $r .= show_all($d, $ks, $nk);
    } elseif ($k == "read") {
        $r .= show_one($d, $ks, $nk, $b);
    } else {
        $r .= $d;
    }
    $r .= "</div></div>";
    return $r;
}
Exemplo n.º 2
0
<div class="row" style='height:80px; border-bottom:solid 1px #f1f2f3'>
	<div class="xs-6">
		<h3>USUÁRIOS</h3>
	</div>
	<div class='xs-6'>
		<div class="middle">
			<?php 
echo link_to_create(null, "Novo Usuário", "button");
?>
		</div>
		
	</div>
</div>
<div class="row">
	<div class="xs-12">
		<table class="center">
			<thead>
				<tr>
					<th>ID</th>
					<th>USUÁRIO</th>
					<th>ÚLTIMO LOGIN</th>
					<th>AÇÕES</th>
				</tr>
			</thead>
			<tbody>
		<?php 
if (!is_multidimensional($dados)) {
    $dados = array($dados);
}
foreach ($dados as $usuario) {
    extract($usuario);