<div class="clear"></div> </div> <!--box Popup : danh sach cac Bai giang (Lecture)--> <div id="myModal2" class="modal fade bs-example-modal-lg" > <div class="modal-dialog" style="margin-top: 0px !important; width:800px;"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Thêm bài giảng vào khóa học</h4> </div> <!--form search--> <div class="modal-body" > <label class="sr-only">Search</label> <input type="text" id="lacture_name" class="form-control" placeholder="Tên Lecture cần tìm" style="width: 180px;float: left;"> <?php echo Chtml::dropDownList('dataListLactureCat', 'id', Chtml::listData(LectureCat::model()->findAll(), "id", "cat_name"), array('empty' => 'Chọn danh mục Lecture', 'style' => 'width:215px;float:left;margin-left:10px', 'class' => 'form-control')); ?> <button type="button" onclick="return loadLuctureOption();" class="btn btn-primary" style="margin-left: 10px; float: left;">Search</button> <div id="bodyLectureList"></div> <div class="clear"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Close</button> </div> </div> </div> </div> <script type="text/javascript"> function showPopup(){ //if($('#bodyLectureList').html()==''){ loadLecture();
/** * Returns the static model of the specified AR class. * Please note that you should have this exact method in all your CActiveRecord descendants! * @param string $className active record class name. * @return WLectureCat the static model class */ public static function model($className = __CLASS__) { return parent::model($className); }
<div style="width:100%;float: left; margin-bottom: 5px;"> <label class="sr-only"><?php echo Yii::t('web/home', 'Search'); ?> </label> <input type="text" id="lacture_name" class="form-control" placeholder="<?php echo Yii::t('web/home', 'titleBoxAddLectureTextSearch'); ?> " style="width: 180px;float: left;"> <?php if (Yii::app()->session['group_id'] == 4) { echo Chtml::dropDownList('dataListTrainer', 'id', Chtml::listData(WUser::model()->findAll('user_group_id=:group_id', array(':group_id' => 1)), "id", "fullname"), array('empty' => Yii::t('web/home', 'Select a trainer'), 'style' => 'width:215px;float:left;margin-left:10px', 'class' => 'form-control')); } ?> <?php echo Chtml::dropDownList('dataListLactureCat', 'id', Chtml::listData(LectureCat::model()->findAll(), "id", "cat_name"), array('empty' => Yii::t('web/home', 'titleBoxAddLectureCategory'), 'style' => 'width:215px;float:left;margin-left:10px', 'class' => 'form-control')); ?> <button type="button" onclick="return loadLuctureOption();" class="btn btn-success" style="margin-left: 10px; float: left;"><?php echo Yii::t('web/home', 'Search'); ?> </button> </div> <div id="bg_box_lecture" style="width: 98%; float: left; display: none; position: absolute; z-index: 99999; height: 602px; background: white; opacity: 0.9; "></div> <div id="bodyLectureList" style="float: left; width: 100%"></div> <div class="clear"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-danger btn-sm" data-dismiss="modal"><?php echo Yii::t('web/home', 'Close'); ?> </button>