//NOTAS ADICIONALES if ($i == 9 or $i == 10 or $i == 12 or $i == 70 or $i == 85) { if ($i == 9) { $ni1 = '<tr><td class="title-field">' . RequirementsFields::model()->findByPk($requirementsHasRequirementsField->requirements_fields_id)->name . '</td><tr>' . '<tr><td class="description">' . $requirementsHasRequirementsField->description1 . '</td></tr>'; } if ($i == 10) { $ni2 = '<tr><td class="title-field">' . RequirementsFields::model()->findByPk($requirementsHasRequirementsField->requirements_fields_id)->name . '</td><tr>' . '<tr><td class="description">' . $requirementsHasRequirementsField->description1 . '</td></tr>'; } if ($i == 12) { $ni3 = '<tr><td class="title-field">' . RequirementsFields::model()->findByPk($requirementsHasRequirementsField->requirements_fields_id)->name . '</td><tr>' . '<tr><td class="description">' . $requirementsHasRequirementsField->description1 . '</td></tr>'; } if ($i == 70) { $ni4 = '<tr><td class="title-field">' . RequirementsFields::model()->findByPk($requirementsHasRequirementsField->requirements_fields_id)->name . '</td><tr>' . '<tr><td class="description">' . $requirementsHasRequirementsField->description1 . '</td></tr>'; } if ($i == 85) { $ni5 = '<tr><td class="title-field">' . RequirementsFields::model()->findByPk($requirementsHasRequirementsField->requirements_fields_id)->name . '</td><tr>' . '<tr><td class="description">' . $requirementsHasRequirementsField->description1 . '</td></tr>'; } if ($title_n == 0) { $html_title_notes .= '<tr><td class="title-field">NOTAS ADICIONALES:</td><tr>'; $title_n = 1; } $notes_items_ordered = $ni1 . $ni4 . $ni2 . $ni5 . $ni3; $html_notes = $html_title_notes . $notes_items_ordered; } if ($i == 48) { $html_misc .= '<tr><td class="title-field">MISCELANEOS</td><tr>' . '<tr><td class="description">' . $requirementsHasRequirementsField->description1 . '</td></tr>'; } ?> <?php }
<tr><td> <legend> <!--<a href="#" onclick="$('#description<?php //echo $id; ?> ').toggle('slow');"><i class="fa fa-chevron-down"></i></a>--> <a href="#" id="mostrar<?php echo $id; ?> "><i class="fa fa-chevron-down"></i></a> <a href="#" id="ocultar<?php echo $id; ?> " style="display: none;"><i class="fa fa-chevron-up"></i></a> <?php echo RequirementsFields::model()->findByPk($requirementsHasRequirementsField->requirements_fields_id)->name; ?> </legend> </td></tr> <tr><td> <script src="<?php echo Yii::app()->baseUrl . '/ckeditor/ckeditor.js'; ?> "></script> <?php if ($requirementsHasRequirementsField->requirements_fields_id != 1) { /*$this->beginWidget('yiiwheels.widgets.box.WhBox', array( 'title' => 'description', 'headerIcon' => 'icon-th-list', 'headerButtons' => array(
'inputOptions' => array('class' => 'input-medium'), 'value' => date("Y-m-d"), ));*/ ?> <?php echo $form->hiddenField($model, 'create_date', array('type' => "hidden", 'value' => date("Y-m-d"))); ?> <p>Campos para elaborar el requisito</p> <?php $Options = array(); foreach ($model->requirementsHasRequirementsFields as $requirementsHasRequirementsField) { $Options[$requirementsHasRequirementsField->requirements_fields_id] = array('selected' => 'selected'); } $form->widget('yiiwheels.widgets.multiselect.WhMultiSelect', array('name' => 'requirementsFields', 'data' => CHtml::listData(RequirementsFields::model()->findAll(array('order' => 'name ASC')), 'id', 'name'), 'pluginOptions' => array('includeSelectAllOption' => false, 'enableFiltering' => true, 'enableCaseInsensitiveFiltering' => true, 'maxHeight' => '300'), 'htmlOptions' => array('options' => $Options))); ?> <?php //echo CHtml::error($model,'id'); ?> <div class="form-actions"> <?php echo TbHtml::submitButton($model->isNewRecord ? 'Agregar' : 'Guardar', array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_DEFAULT)); ?> </div> <?php $this->endWidget(); ?>