コード例 #1
0
ファイル: SettingsTbPanel.php プロジェクト: chaimvaid/linet3
 public function run()
 {
     TbPanel::begin(array('header' => $this->header));
     $col1 = $col = '';
     $print = true;
     foreach ($this->models as $sModel) {
         if ($sModel->priority >= $this->from && $sModel->priority <= $this->to) {
             $tmp = EAVHelper::addRow($sModel->id, $sModel->value, $sModel);
             if ($print) {
                 $col .= $tmp;
                 $print = false;
             } else {
                 $col1 .= $tmp;
                 $print = true;
             }
         }
     }
     echo "<div class='col-xs-6'>{$col1}</div><div class='col-xs-6'>{$col}</div>";
     TbPanel::end();
 }
コード例 #2
0
ファイル: _form.php プロジェクト: chaimvaid/linet3
        </div>
        <div class="col-md-4 col-sm-6">
            <?php 
TbPanel::begin(array('header' => Yii::t('app', "EAV Fields")));
///*
echo app\widgets\eavProp::Widget(array('model' => $model, 'name' => get_class($model), 'attr' => $model->getEavAttributes()));
//*/
TbPanel::end();
?>
            <?php 
?>
            <?php 
if (!$model->isNewRecord) {
    TbPanel::begin(array('header' => Yii::t('app', "Attached files")));
    echo \app\widgets\AttachedFiles::widget(['model' => $model, 'attribute' => 'Files']);
    TbPanel::end();
}
?>


        </div>
    </div>
    <?php 
//echo $form->labelEx($model,'owner');
?>
    <?php 
//echo $form->dropDownList($model,'owner',\yii\helpers\ArrayHelper::map(User::find()->All(), 'id', 'username'));
?>
    <?php 
//echo $form->error($model,'owner');
?>