PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
helpSystem
/
modules
/
admin
/
views
/
section
<div class="contain"> <div class="topiclist"> <ul id="myTab" class="nav nav-tabs"> <li class=""><?php echo CHtml::link("Topic", Yii::app()->createUrl("helpSystem/admin/topic"), array("title"=>"Topic"));?></li> <li class="active"><?php echo CHtml::link("Section", "#", array("title"=>"Section"));?></li> </ul> <div class="<?php echo $bootstrapClass->getBootstrapClass("section","span11Mtop20")?>"> <div class="row well"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'section-form', 'enableClientValidation'=>true, 'clientOptions'=>array( 'validateOnSubmit'=>true, 'validateOnChange'=>false, 'afterValidate' => 'js:disableSubmit' ), 'htmlOptions'=>array('class'=>'commonForm'), )); ?> <div class="<?php echo $bootstrapClass->getBootstrapClass("section","span2")?>" ><?php echo $form->label($sectiontextModel,'Name');?></div> <div class="<?php echo $bootstrapClass->getBootstrapClass("section","span3")?> "><?php echo $form->textField($sectiontextModel,'Name', array('class'=>$bootstrapClass->getBootstrapClass("section","formControl"))); echo $form->error($sectiontextModel,"Name",array( 'class'=>$bootstrapClass->getBootstrapClass("section","textError"))); ?> </div> <div class="<?php echo $bootstrapClass->getBootstrapClass("section","span5")?>"> <?php echo CHtml::submitButton("Save",array("class"=>"btn btn-primary saveButton","title"=>"Save"))?> <?php echo CHtml::link('Cancel',Yii::app()->createUrl("helpSystem/admin/section"), array('title'=>'Cancel', 'class'=>'btn btn-default') ); ?> </div> <?php $this->endWidget(); ?> </div> </div> <div class="<?php echo $bootstrapClass->getBootstrapClass("section","span11Mtop20")?>"> <div class="row"> <?php if(!empty($sectionList)){?> <table class="table table-bordered topiclist"> <tr> <th width="90%">Section</th> <th width="90%">Section Id</th> <th width="20%" class="text-center" colspan="2">Action</th> </tr> <?php foreach ($sectionList as $section){?> <tr> <td class="Wbreak"><?php echo CHtml::encode($section->sectionTexts[0]->Name);?></td> <td class="Wbreak"><?php echo CHtml::encode($section->SectionId);?></td> <td> <?php echo CHtml::link('Edit',Yii::app()->createUrl("helpSystem/admin/section/update", array("id"=>$section->SectionId)), array('title'=>'Edit', 'class'=>$bootstrapClass->getBootstrapClass("section","btnBtnPrimaryBtnMini")) );?></td> <td><?php if(empty($section->Topics)){?> <?php echo CHtml::link('Delete','javascript:void(0);', array('title'=> 'Delete', 'submit'=>array('section/delete','id'=>$section->SectionId), 'confirm' => ' Are you sure you want to delete this ?', 'class'=>$bootstrapClass->getBootstrapClass("section","btnBtnDangerBtnMini")) );?> <?php }?></td> </tr> <?php }?> </table> <?php }else{ echo "<h4>No records found.</h4>"; }?> </div> </div> <!-- Section tab closed --> </div> </div>
[+]
..
[-] index.php
[edit]