echo CHtml::encode(BlogPosts::LabelsStatus($post->status_id)); ?> </h4> </div> </div> <div class="row"> <div class="col-md-3"> <h4 class="h4-label"><?php echo $post->getAttributeLabel('can_read'); ?> </h4> </div> <div class="col-md-9"> <h4><?php echo CHtml::encode(BlogPosts::LabelsRead($post->can_read)); ?> </h4> </div> </div> <div class="row"> <div class="col-md-3"> <h4 class="h4-label"><?php echo $post->lang->getAttributeLabel('description'); ?> </h4> </div> <div class="col-md-9"> <h4><?php echo CHtml::encode($post->lang->description);
echo CHtml::label(Yii::t('app', 'Статус'), 'body', array('class' => 'col-md-3 control-label', 'style' => 'float:left; padding:10px; width: 8%;')); ?> <div class="col-md-9" style = "float:left; padding:10px"> <?php echo CHtml::listBox('filterstatus', array_key_exists('filterstatus', $filter) ? $filter['filterstatus'] : (string) FALSE, BlogPosts::LabelsStatus(), array('empty' => '-', 'size' => (int) TRUE, 'class' => 'form-control input-large', 'style' => 'width:255px')); ?> </div> </div> <div class="clear"></div> <div class="form-group"> <?php echo CHtml::label(Yii::t('app', 'Могут читать'), 'body', array('class' => 'col-md-3 control-label', 'style' => 'float:left; padding:10px; width: 8%;')); ?> <div class="col-md-9" style = "float:left; padding:10px"> <?php echo CHtml::listBox('filtercanread', array_key_exists('filtercanread', $filter) ? $filter['filtercanread'] : (string) FALSE, BlogPosts::LabelsRead(), array('empty' => '-', 'size' => (int) TRUE, 'class' => 'form-control input-large', 'style' => 'width:255px')); ?> </div> </div> </div> <div class="clear"></div> <div class="form-actions" style = "padding:10px"> <?php echo CHtml::submitbutton(Yii::t('app', 'Применить'), array('name' => 'btn_filter', 'class' => 'btn green', 'onClick' => 'saveFilter()')); ?> <?php echo CHtml::button(Yii::t('app', 'Сбросить фильтр'), array('name' => 'btn_filter', 'class' => 'btn red', 'onClick' => 'location.href="' . $this->createUrl('/admin/blog/index/index') . '"')); ?> </div> </div> </div>