本文整理汇总了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>
示例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>