本文整理汇总了PHP中Select::cursoSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP Select::cursoSelect方法的具体用法?PHP Select::cursoSelect怎么用?PHP Select::cursoSelect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Select
的用法示例。
在下文中一共展示了Select::cursoSelect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Select
<div class="modal fade" id="myModal" tabindex="0" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Listagem de disciplinas</h4>
</div>
<div class="modal-body">
<div class="form-group">
<form class="" action="ViewDisciplinasObj.php" method="post">
<label for="curso">Curso:</label>
<select class="form-control" name="curso" id="curso">
<option value="">Selecione um curso para continuar</option>
<?php
$cursoSelect = new Select();
$cursoSelect->cursoSelect();
?>
</select>
</div>
</div>
<div class="modal-footer">
<button type="submit" name='pesquisar' value='pesquisar' class="btn btn-info btn-flat btn-lg btn-block"><i class="fa fa-search"></i> Pesquisar </button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div>
</div><!-- /.box -->
<!-- general form elements disabled -->
</div>
</div> <!-- /.row -->
示例2: Select
<label for="disciplina" class="col-sm-2 control-label">Disciplina:</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="disciplina" id="disciplina" placeholder="Digite o categoria aqui" value="<?php
echo $comp->disciplina;
?>
" required>
</div>
</div>
<div class="form-group">
<label for="curso" class="col-sm-2 control-label">Curso:</label>
<div class="col-sm-10">
<select class="form-control select2" name="curso" id="curso" style="width: 100%;">
<option value=""></option>
<?php
$cursoSelect = new Select();
$cursoSelect->cursoSelect($comp->curso);
?>
</select>
</div>
</div>
</div><!-- /.box-body -->
<div class="box-footer">
<input type="hidden" name="id" value="<?php
echo $comp->id;
?>
"/>
<button type="submit" name="atualizar" value="atualizar" class="btn btn-success btn-flat btn-block"><i class="fa fa-check"></i> Atualizar </button>
<br>
<button type="button" name="cancelar" value="cancelar" onclick="location.href='ViewDisciplinasObj.php'" class="btn btn-default btn-flat btn-block btn-sm"><i class="fa fa-magic"></i> Cancelar </button>
</div><!-- /.box-footer -->
</form>