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


PHP Select::categoriaSelect方法代码示例

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


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

示例1: Select

                        <label class="col-sm-2 control-label" for="evento"> Evento: </label>
                        <div class="col-sm-10">
                           <input type="text" class="form-control" id="evento" name="evento" placeholder="Nome do Evento" value="<?php 
        echo $comp->evento;
        ?>
" required>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="categoria" class="col-sm-2 control-label">Categorias do evento:</label>
                        <div class="col-sm-10">
                          <select class="form-control select2" id="categoria" name="categoria" placeholder="Selecione a categoria" required>
                            <option value=""></option>
                            <?php 
        $catSelect = new Select();
        $catSelect->categoriaSelect($comp->categoria);
        ?>
                          </select>
                        </div>
                      </div>
                      <div class="form-group">
                         <label for="dataInicio" class="col-sm-2 control-label">Data de inicio do evento:</label>
                         <div class="col-sm-10">
                           <input type="text" class="form-control" name="dataInicio" id="dataInicio" value="<?php 
        echo date('d/m/Y', strtotime($comp->dataInicio));
        ?>
" required data-inputmask="'alias': 'dd/mm/yyyy'" data-mask>
                         </div>
                      </div>
                      <div class="form-group">
                         <label for="dataFim" class="col-sm-2 control-label">Data de término do evento:</label>
开发者ID:AlexJMercer,项目名称:Projeto-TD,代码行数:31,代码来源:EditEventoObj.php

示例2: a

                <form class="form-horizontal" name="evento" method="post" action="CrudEventos.php" enctype="multipart/form-data">
                  <div class="box-body">
                      <div class="form-group">
                        <label class="col-sm-2 control-label" for="evento"> Evento: </label>
                        <div class="col-sm-10">
                           <input type="text" class="form-control" title="Campo Obrigatório!" id="evento" name="evento" placeholder="Nome do Evento" required>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="categoria" class="col-sm-2 control-label"> Categorias do evento: </label>
                        <div class="col-sm-10">
                          <select class="form-control select2" title="Campo Obrigatório!" id="categoria" name="categoria" placeholder="Selecione a(s) categoria(s)" required>
                            <option value=""></option>
                            <?php 
$catSelect = new Select();
$catSelect->categoriaSelect();
?>
                          </select>
                        </div>
                      </div>
                      <div class="form-group">
                         <label for="dataInicio" class="col-sm-2 control-label"> Data de inicio do evento: </label>
                         <div class="col-sm-10">
                           <input type="text" class="form-control" title="Campo Obrigatório!" name="dataInicio" id="dataInicio" required placeholder="dd/mm/yyyy" data-inputmask="'alias': 'dd/mm/yyyy'" data-mask>
                         </div>
                      </div>
                      <div class="form-group">
                         <label for="dataFim" class="col-sm-2 control-label"> Data de término do evento: </label>
                         <div class="col-sm-10">
                           <input type="text" class="form-control" name="dataFim" id="dataFim" placeholder="dd/mm/yyyy" data-inputmask="'alias': 'dd/mm/yyyy'" data-mask onchange="validar_datas()">
                         </div>
开发者ID:AlexJMercer,项目名称:Projeto-TD,代码行数:31,代码来源:EventoObj.php


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