PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
admin
/
views
/
config
<?php echo CHtml::form(); ?> <div class=""> <div class="row"> <?php echo CHtml::errorSummary($model); ?> <?php if (Yii::app()->user->hasFlash('config_save_success')): ?> <div class="alert alert-success"> <?php echo Yii::app()->user->getFlash('config_save_success'); ?> </div> <?php endif; ?> <div class="form-group"> <button type="submit" class="btn btn-primary">Save</button> </div> <?php foreach($modules as $module){ ?> <div class="panel panel-default"> <div class="panel-title"><?php echo $module->title; ?></div> <div class="panel-body"> <?php foreach($module->settings() as $key=>$value) { ?> <div class="form-group"> <label class="control-label"><?php echo Yii::app()->lang->term($value['label']); ?></label> <div class="controls"> <?php $type = (isset($value['type']) ? $value['type'] : 'text'); if($type=='text') echo CHtml::activeTextField($model, $module->getPrefix().'_'.$key, array('class' => 'form')); if($type=='password') echo CHtml::activePasswordField($model, $module->getPrefix().'_'.$key, array('class' => 'form')); if($type=='checkbox') echo CHtml::activeCheckbox($model, $module->getPrefix().'_'.$key, array('class' => 'form')); if($type=="select") echo CHtml::activeDropDownList($model, $module->getPrefix().'_'.$key, $value['values'], array('class' => 'form')) ?> </div> </div> <?php } ?> </div> </div> <?php } ?> <div class="form-group"> <button type="submit" class="btn btn-primary">Save</button> </div> </div> </div> </div> <?php echo CHtml::endForm(); ?>
[+]
..
[-] payment.php
[edit]
[-] index.php
[edit]
[-] hosting.php
[edit]
[-] mail.php
[edit]