Example #1
0
<?php

$element = QuestionElement::model()->findAll(array('select' => 'e_type,e_name', 'order' => 'id ASC'));
$label = array('0' => '其它类', '1' => '注册资料修改类', '2' => '密保解绑类');
$deptName = '';
if ($model->dept != '') {
    $deptModel = BasicDept::model()->getDeptById($model->dept);
    if ($deptModel != null) {
        $deptName = $deptModel->deptname;
    }
}
$updateDeptName = '';
if ($model->update_dept != '') {
    $deptModel = BasicDept::model()->getDeptById($model->update_dept);
    if ($deptModel != null) {
        $updateDeptName = $deptModel->deptname;
    }
}
$delayDeptName = '';
if ($model->delay_dept != '') {
    $deptModel = BasicDept::model()->getDeptById($model->delay_dept);
    if ($deptModel != null) {
        $delayDeptName = $deptModel->deptname;
    }
}
?>
<link rel="stylesheet" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/csms/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php 
Example #2
0
<?php

$element = CHtml::listData(QuestionElement::model()->getElemet(), 'id', 'e_name');
$verify = array('tel' => '手机号', 'id_card' => '身份证号', 'yes_only' => '必须选是');
?>
<link rel="stylesheet" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/csms/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/csms/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/csms/invalid.css" type="text/css" media="screen" />
<script type="text/javascript" src="<?php 
echo Yii::app()->request->baseUrl;
?>
/js/csms/simpla.jquery.configuration.js"></script>

<style type="text/css">
.row {
	margin-top:20px;
	margin-left:0px;
}
.row_label{
	line-height:22px;
	padding-right:10px;
}