本文整理汇总了PHP中Select::statusSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP Select::statusSelect方法的具体用法?PHP Select::statusSelect怎么用?PHP Select::statusSelect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Select
的用法示例。
在下文中一共展示了Select::statusSelect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Select
<label for="linha" class="col-sm-2 control-label">Linha de apoio:</label>
<div class="col-sm-10">
<textarea class="form-control" name="linha_apoio" id="linha" rows="2" cols="40"><?php
echo $comp->linha_apoio;
?>
</textarea>
</div>
</div>
<div class="form-group">
<label for="status" class="col-sm-2 control-label">Status:</label>
<div class="col-sm-10">
<select class="form-control select2" name="status" id="status" style="width:100%;" required>
<option value=""></option>
<?php
$staSelect = new Select();
$staSelect->statusSelect($comp->status);
?>
</select>
</div>
</div>
<div class="form-group">
<?php
$_SESSION['categoria_edit'] = $comp->categoria;
?>
<span id="listagemCategorias"></span>
<div class="col-sm-2">
<button type="button" class="btn btn-info btn-flat" id="cadCat" name="button" style="width:100%;"><i class="fa fa-plus"></i> Adicionar Categoria </button>
</div>
</div>
<div id="resposta"></div>
<div class="form-group">
示例2: Select
</div>
</div>
<div class="form-group">
<label for="linha" class="col-sm-2 control-label">Linha de apoio:</label>
<div class="col-sm-10">
<textarea class="form-control" name="linha_apoio" id="linha" rows="2" cols="40"></textarea>
</div>
</div>
<div class="form-group">
<label for="status" class="col-sm-2 control-label">Status:</label>
<div class="col-sm-10">
<select class="form-control select2" name="status" id="status" style="width:100%;" required>
<option value=""></option>
<?php
$staSelect = new Select();
$staSelect->statusSelect();
?>
</select>
</div>
</div>
<div class="form-group">
<?php
if (isset($_SESSION['categoria_edit'])) {
unset($_SESSION['categoria_edit']);
}
?>
<span id="listagemCategorias"></span>
<div class="col-sm-2">
<button type="button" class="btn btn-info btn-flat" id="cadCat" name="button" style="width:100%;"><i class="fa fa-plus"></i> Categorias </button>
</div>
</div>