当前位置: 首页>>代码示例>>PHP>>正文


PHP Render::element方法代码示例

本文整理汇总了PHP中Render::element方法的典型用法代码示例。如果您正苦于以下问题:PHP Render::element方法的具体用法?PHP Render::element怎么用?PHP Render::element使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Render的用法示例。


在下文中一共展示了Render::element方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

            <div class="col-md-6 pull-right">
                <div class="col-md-8 col-sm-6 col-xs-6">
                    <input type="text" placeholder="Nome do convidado" class="form-control input-sm" id="nome-convidado">
                </div>
                <div class="col-md-4 col-sm-6  col-xs-6">
                    <button class="btn btn-primary btn-sm btn-block" id="btn-filtrar">Filtrar</button>
                </div>
            </div>
        </div>
        
        <div class="clearfix"></div>
        
        <div id="filtro-resultados">
            
            <?php 
echo Render::element('reservas_hostess', array('registros' => $registros));
?>
            
        </div>
        
    </div>
</div>



<div class="modal fade" id="modal-convidados" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel"> Lista de Convidados </h4>
开发者ID:brunoblauzius,项目名称:sistema,代码行数:31,代码来源:reservasDoDia.php

示例2: exportarLista

 public final function exportarLista()
 {
     $this->exportWord('minhaLista');
     $token = $_GET['param'];
     $convidados = $this->Reserva->listaConvidados($token);
     echo Render::element('Reservas/exportList', array('pessoas' => $convidados));
     exit;
 }
开发者ID:brunoblauzius,项目名称:sistema,代码行数:8,代码来源:ReservasController.php

示例3: array

<?php 
echo Render::element('Reservas/tabelaListaReservas', array('registros' => $registros, 'urlPDF' => $urlPDF));
?>


<script>
    $(document).ready(function() {

        $('#dynamic-table').dataTable({
            "language": {
                "url": web_root + "View/webroot/js/data-tables/json/DataTable-Portuguese-Brasil.json"
            }
        });
              
    });
</script>


开发者ID:brunoblauzius,项目名称:sistema,代码行数:16,代码来源:filtrar.php

示例4: catch

        /**
         * setando o meu destinatario para o envio
         */
        $email->setDestinatario($model->data['destinatario'], $model->data['nome_destinatario']);
        /**
         * setando uma cópia para o remetente (USUARIO)
         */
        $email->setCC($model->data['email'], $model->data['nome']);
        /**
         * setando as minhas variaveis para o corpo do email
         */
        $render->set($model->data);
        /**
         * setando o cordo do meu envio com o layout desejado
         */
        $email->setBody($render->element($model->data['layout']));
        /**
         * enviando meu email para o destinatario
         */
        if ($email->sendMail()) {
            echo json_encode(array('success' => true, 'style' => 'success', 'message' => 'Sucesso'));
        } else {
            echo json_encode(array('success' => false, 'style' => 'warning', 'message' => $email->getError()));
        }
    } else {
        echo json_encode(array_merge(array('success' => false, 'style' => 'warning'), $model->validateErros));
    }
} catch (Exception $ex) {
    //Utils::pre($ex->getTrace());
    echo json_encode(array('success' => false, 'style' => 'danger', 'message' => $ex->getMessage()));
}
开发者ID:brunoblauzius,项目名称:sistema,代码行数:31,代码来源:index.php

示例5: array

                <div class="col-xs-3 col-sm-3">
                    <strong class="text text-maroon"><?php 
echo Session::read('Empresa.nome_fantasia');
?>
</strong>
                </div>
                <div class="col-xs-5 col-sm-5">
                    <div class="col-xs-10 col-sm-10 col-md-10 marginNull pull-left pddnull" >
                        <input type="text" id="input-search" placeholder="Telefone ou Nome" class="form-control input-sm">
                    </div>
                    <div class="col-xs-2 col-sm-2 col-md-2 marginNull pull-right pddnull">
                        <a class="btn btn-primary btn-sm btn-input-search"> <i class="fa fa-search-plus marginNull"></i></a>
                    </div>
                </div>
                <div class="col-xs-4 col-sm-4">
                    
                </div>
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-12" id="carregar-lista" style="margin-top: 40px;">
                <?php 
echo Render::element('Eventos/lista-portaria', array('registros' => $registros));
?>
            </div>
        </div>
        
    </div> 
    <div class="panel-footer"></div>
</div>
开发者ID:brunoblauzius,项目名称:sistema,代码行数:31,代码来源:portaria.php

示例6: resumo

 public function resumo()
 {
     $registros = $this->Evento->relatorioResumoFuncionario($this->pessoas_id, Session::read('Form.eventos_id'));
     echo Render::element('Eventos/resumo', array('registros' => array_shift($registros)));
 }
开发者ID:brunoblauzius,项目名称:sistema,代码行数:5,代码来源:EventosController.php

示例7: procurarCliente

 public function procurarCliente()
 {
     try {
         $this->layout = 'null';
         $cliente = array();
         if ($this->is('POST')) {
             $busca = $_POST['busca'];
             $valor = trim($_POST['valor']);
             $cliente = $this->Cliente->buscarCliente($busca, $valor, $this->pessoas_id, Session::read('Usuario.roles_id'));
         } else {
             if ($this->is('GET')) {
                 $cliente = $this->Cliente->find('first', array('md5(id)' => $_GET['param']));
                 $cliente = array_shift($cliente[0]);
                 $array[0] = $cliente;
                 $cliente = $array;
             }
         }
         $saida = ['total' => (int) count($cliente), 'html' => Render::element('Clientes/procurarCliente', ['total' => (int) count($cliente), 'cliente' => $cliente])];
         echo json_encode($saida);
     } catch (Exception $ex) {
         echo $ex->getMessage();
     }
 }
开发者ID:brunoblauzius,项目名称:sistema,代码行数:23,代码来源:ClientesController.php


注:本文中的Render::element方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。