本文整理匯總了PHP中Control::cadAula方法的典型用法代碼示例。如果您正苦於以下問題:PHP Control::cadAula方法的具體用法?PHP Control::cadAula怎麽用?PHP Control::cadAula使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Control
的用法示例。
在下文中一共展示了Control::cadAula方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: switch
<?php
include 'includes/auth.php';
require '../Controller/controller.php';
if (isset($_REQUEST['action'])) {
switch ($_REQUEST['action']) {
case "in":
$cad = new Control();
$cad->cadAula($_POST["nome"], $_POST["endereco_video"], $_POST["descricao"], $_POST["curso_idcurso"], $_SESSION['IdCliente']);
break;
}
}
include 'includes/head.php';
?>
<body>
<!--[if !IE]>start wrapper<![endif]-->
<div id="wrapper">
<!--[if !IE]>start head<![endif]-->
<div id="head">
<? include('includes/header.php') ?>
<div id="menus_wrapper">
<div id="main_menu">
<ul>
<li><a href="#" class="selected"><span><span>Home</span></span></a></li>
</ul>
</div>
<div id="sec_menu">
<ul>
<li><a href="index.php" class="sm5">Voltar</a></li>
</ul>
</div>
示例2: switch
<?php
include 'includes/auth.php';
require '../Controller/controller.php';
if (isset($_REQUEST['action'])) {
switch ($_REQUEST['action']) {
case "in":
$cad = new Control();
$cad->cadAula($_POST["nome"], $_POST["endereco_video"], $_POST["descricao"], $_POST["curso_idcurso"], $_POST['cliente_idcliente']);
break;
}
}
$c = new Control();
$arr = $c->Controle_cliente($_GET['ed']);
for ($i = 0; $i < count($arr); $i++) {
define("FOLDER", $arr[$i]->folder['folder']);
}
include 'includes/head.php';
?>
<body>
<!--[if !IE]>start wrapper<![endif]-->
<div id="wrapper">
<!--[if !IE]>start head<![endif]-->
<div id="head">
<? include('includes/header.php') ?>
<div id="menus_wrapper">
<div id="main_menu">
<ul>
<li><a href="index.php"><span><span>Home</span></span></a></li>
<li><a href="online.php" class="selected"><span><span>Curso-online</span></span></a></li>
<li><a href="simulado.php"><span><span>Simulado</span></span></a></li>