本文整理汇总了PHP中Select::localSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP Select::localSelect方法的具体用法?PHP Select::localSelect怎么用?PHP Select::localSelect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Select
的用法示例。
在下文中一共展示了Select::localSelect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Select
<option value=""></option>
<?php
$semestreSelect = new Select();
$semestreSelect->semestreSelect();
?>
</select>
</div>
</div>
<div class="form-group">
<label for="sala" class="col-sm-2 control-label">Sala:</label>
<div class="col-sm-10">
<select class="form-control select2" name="sala" id="sala" style="width: 100%;">
<option value=""></option>
<?php
$localSelect = new Select();
$localSelect->localSelect();
?>
</select>
</div>
</div>
<div class="form-group">
<label for="info" class="col-sm-2 control-label">Informações adicionais:</label>
<div class="col-sm-10">
<textarea class="form-control" name="info" rows="6" placeholder="Digite aqui..."></textarea>
</div>
</div>
</div><!-- /.box-body -->
<div class="box-footer">
<button type="submit" name="enviar" value="enviar" class="btn btn-success btn-lg btn-flat btn-block"><i class="fa fa-check"></i> Enviar </button>
<br>
<button type="reset" class="btn btn-default btn-flat btn-block btn-sm "> <i class="fa fa-magic"></i> Limpar </button>
示例2: Select
<option value=""></option>
<?php
$semestreSelect = new Select();
$semestreSelect->semestreSelect($comp->semestre);
?>
</select>
</div>
</div>
<div class="form-group">
<label for="sala" class="col-sm-2 control-label">Sala:</label>
<div class="col-sm-10">
<select class="form-control select2" name="sala" id="sala" style="width: 100%;">
<option value=""></option>
<?php
$localSelect = new Select();
$localSelect->localSelect($comp->sala);
?>
</select>
</div>
</div>
<div class="form-group">
<label for="info" class="col-sm-2 control-label">Informações adicionais:</label>
<div class="col-sm-10">
<textarea class="form-control" name="info" rows="4" placeholder="Digite aqui..."><?php
echo $comp->info;
?>
</textarea>
</div>
</div>
</div><!-- /.box-body -->
<div class="box-footer">