当前位置: 首页>>代码示例>>PHP>>正文


PHP curso::listar方法代码示例

本文整理汇总了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 
    }
    ?>
开发者ID:anthonycab15,项目名称:colegio,代码行数:31,代码来源:registro.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">
开发者ID:anthonycab15,项目名称:colegio,代码行数:31,代码来源:inscribir.php


注:本文中的curso::listar方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。