本文整理汇总了PHP中curso::listar方法的典型用法代码示例。如果您正苦于以下问题:PHP curso::listar方法的具体用法?PHP curso::listar怎么用?PHP curso::listar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类curso
的用法示例。
在下文中一共展示了curso::listar方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
?>
"/></td></tr>
</table>
</div>
<div class="box-header"><?php
echo $idioma['DatosInscripcionActual'];
?>
</div>
<div class="box-content">
<table class="table table-hover table-striped">
<tr><td><?php
echo $idioma['Curso'];
?>
</td><td>::</td><td><select name="curso">
<?php
foreach ($cur->listar() as $curso) {
?>
<option value="<?php
echo $curso['CodCurso'];
?>
" <?php
if ($al['CodCurso'] == $curso['CodCurso']) {
echo 'selected="selected"';
}
?>
><?php
echo mayuscula($curso['Nombre']);
?>
</option><?php
}
?>
示例2: alumno
include_once "../../class/curso.php";
include_once "../../class/config.php";
include_once "../../class/documento.php";
$alumno = new alumno();
$curso = new curso();
$conf = new config();
$documento = new documento();
$ma = $alumno->estadoTabla();
$confgKinder = $conf->mostrarConfig("MontoKinder");
$confgGeneral = $conf->mostrarConfig("MontoGeneral");
$doc = $documento->mostrarDocumento($CodAlumno);
$doc = array_shift($doc);
$al = $alumno->mostrarTodoDatos($CodAlumno);
$al = array_shift($al);
$cursovalor = array();
foreach ($curso->listar() as $cur) {
$cursovalor[$cur['CodCurso']] = $cur['Nombre'];
}
$sexovalor = array("1" => $idioma['Masculino'], "0" => $idioma['Femenino']);
$ciextvalor = array("LP" => "LP", "CH" => "CH", "SC" => "SC", "PA" => "PA", "BN" => "BN", "OR" => "OR", "PT" => "PT", "CQ" => "CQ", "TR" => "TR");
$sinovalor = array(0 => $idioma["No"], 1 => $idioma["Si"]);
include_once $folder . "cabecerahtml.php";
?>
<script language="javascript" type="text/javascript" src="../../js/alumno/inscripcion.js"></script>
<script language="javascript" type="text/javascript">
var MontoGeneral=0;
</script>
<?php
include_once $folder . "cabecera.php";
?>
<form action="../guardaralumno.php" method="post" onSubmit="if(this.Curso.value==0){alert('Selecciona el Curso');return false;}" enctype="multipart/form-data">