示例#1
0
<?php

StdLib::Functions();
Flashes::render();
$prefix = $_REQUEST["prefix"];
$num = $_REQUEST["num"];
$title = Yii::app()->db->createCommand()->select("title")->from("course_syllabi")->where("prefix = :prefix AND num = :num", array(":prefix" => $prefix, ":num" => $num))->queryScalar();
$department = Yii::app()->db->createCommand()->select("label")->from("departments")->where("id = :prefix", array(":prefix" => $prefix))->queryScalar();
$classes = Yii::app()->db->createCommand()->select("id")->from("course_syllabi")->where("prefix = :prefix AND num = :num", array(":prefix" => $prefix, ":num" => $num))->order("year DESC, (term = 'Fall') DESC, (term = 'Summer') DESC, (term = 'Spring') DESC")->queryAll();
$COREUSER = !Yii::app()->user->isGuest ? new UserObj(Yii::app()->user->name) : new UserObj();
?>

<ul class="breadcrumb">
    <li><a href="<?php 
echo Yii::app()->homeUrl;
?>
">Home</a></li>
    <li><a href="<?php 
echo Yii::app()->homeUrl;
?>
?prefix=<?php 
echo $prefix;
?>
"><?php 
echo $department;
?>
</a></li>
    <li class="active"><?php 
echo $prefix . " " . $num . " - " . $title;
?>
</li>
示例#2
0
<?php

/**
 * Login page
 */
$this->pageTitle = Yii::app()->name . ' - Login';
$imager = new Imager(LOCAL_IMAGE_LIBRARY . "lock.png");
$imager->width = "16px";
$imager->height = "16px";
$imager->attributes["title"] = "This password is passed through 256-bit encryption for authentication.";
$flashes = new Flashes();
$flashes->render();
?>
<style>
div.authen-container {
    margin:auto;
    width:480px;
    border:1px solid #ccc;
    padding:8px;
}
div.authen-title {
    padding:5px;
    margin-bottom:12px;
}
form#login-form div.input-container input {
    font-family: Verdana, Geneva, sans-serif;
    font-size:12px;
    padding:5px;
    letter-spacing:1px;
    margin-bottom:5px;
    width: 300px;