本文整理汇总了PHP中Control::Controle_curso方法的典型用法代码示例。如果您正苦于以下问题:PHP Control::Controle_curso方法的具体用法?PHP Control::Controle_curso怎么用?PHP Control::Controle_curso使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Control
的用法示例。
在下文中一共展示了Control::Controle_curso方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Control
<!--[if !IE]>end section<![endif]-->
</div>
</div>
<div id="sidebar">
<div class="inner">
<?php
if (isset($_REQUEST['nu'])) {
?>
<div class="quick_info">
<div class="quick_info_top">
<h2>Capa da disciplina</h2>
</div>
<div class="quick_info_content">
<?php
$c = new Control();
$arr = $c->Controle_curso($_GET['nu'], $_GET['ed']);
for ($i = 0; $i < count($arr); $i++) {
?>
<table align="center">
<tr>
<td>
<a class="inline" href="#<?php
echo $arr[$i]->idcurso['idcurso'];
?>
" title="Alterar"><img src="<?php
echo $arr[$i]->capa['capa'];
?>
" alt="" width="160px" /></a>
<div style='display:none'>
<div id='<?php
echo $arr[$i]->idcurso['idcurso'];
示例2: Control
echo $arr[$i]->descricao['descricao'];
?>
</textarea>
</span>
<span class="system negative"></span>
</div>
</div>
<div class="row">
<label>Disciplina:</label>
<div class="inputs">
<span class="input_wrapper blank">
<select name="curso_idcurso" id="curso_idcurso" title="">
<option selected value="">---</option>
<?php
$c = new Control();
$arre = $c->Controle_curso($idi);
for ($j = 0; $j < count($arre); $j++) {
?>
<option value="<?php
print $arre[$j]->idcurso['idcurso'];
?>
" <?php
if ($arre[$j]->idcurso['idcurso'] == $arr[$i]->curso_idcurso['curso_idcurso']) {
echo "selected";
}
?>
><?php
print $arre[$j]->nome['nome'];
?>
</option>
<?php
示例3: Control
<div class="inputs">
<span class="input_wrapper textarea_wrapper">
<textarea rows="" cols="" class="text" name="descricao" title="Você tem que escrever uma descrição."></textarea>
</span>
<span class="system negative"></span>
</div>
</div>
<div class="row">
<label>Disciplina:</label>
<div class="inputs">
<span class="input_wrapper blank">
<select name="curso_idcurso" id="curso_idcurso" title="">
<option selected value="">---</option>
<?php
$c = new Control();
$arre = $c->Controle_curso($idi = null);
for ($j = 0; $j < count($arre); $j++) {
?>
<option value="<?php
print $arre[$j]->idcurso['idcurso'];
?>
"><?php
print $arre[$j]->nome['nome'];
?>
</option>
<?php
}
?>
</select>
</span>
<span class="system negative"></span>
示例4: Control
echo $arr[$i]->descricao['descricao'];
?>
</textarea>
</span>
<span class="system negative"></span>
</div>
</div>
<div class="row">
<label>Disciplina:</label>
<div class="inputs">
<span class="input_wrapper blank">
<select name="curso_idcurso" id="curso_idcurso" title="">
<option selected value="">---</option>
<?php
$c = new Control();
$arre = $c->Controle_curso($idi = null, $_GET["ed"]);
for ($j = 0; $j < count($arre); $j++) {
?>
<option value="<?php
print $arre[$j]->idcurso['idcurso'];
?>
" <?php
if ($arre[$j]->idcurso['idcurso'] == $arr[$i]->curso_idcurso['curso_idcurso']) {
echo "selected";
}
?>
><?php
print $arre[$j]->nome['nome'];
?>
</option>
<?php
示例5: Control
<thead>
<tr>
<th><a href="#" class="desc"></a></th>
<th><a href="#">Nome</a></th>
<th><a href="#">Concurso</a></th>
<th><a href="#">Valor</a></th>
<th><a href="#">Professor</a></th>
<th style="width: 96px;">Ações</th>
</tr>
</thead>
<tbody>
<?php
define('TABLE1', 'first');
define('TABLE2', 'second');
$c = new Control();
$arr = $c->Controle_curso($id = null);
for ($i = 0; $i < count($arr); $i++) {
?>
<tr class="<? if($i % 2){ echo TABLE1; }else{ echo TABLE2; }?>">
<td>#<?php
echo $arr[$i]->idcurso['idcurso'];
?>
</td>
<td><?php
echo $arr[$i]->nome['nome'];
?>
</td>
<td><?php
echo $arr[$i]->concursoNome['concursoNome'];
?>
</td>