<div class="row"> <?php echo $form->labelEx($model, 'punit'); ?> <?php echo $form->textField($model, 'punit'); ?> <?php echo $form->error($model, 'punit'); ?> <?php echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "package.png"), CController::createUrl($this->id . '/cargaprecios'), array('type' => 'POST', 'url' => CController::createUrl($this->id . '/cargaprecios'), "data" => array("codigoprove" => "js:codigoprove.value", "codigomaterial" => "js:Docompratemp_codart.value"), "update" => "#zona_precios")); ?> </div> <div class="row"> <div id="zona_precios"></div> </div>
?> <?php echo !$model->isNewRecord ? $moneda = $model->alkardex_alinventario->almacen->codmon : Almacendocs::model()->findByPk($idcabeza)->codalmacen0->codmon; ?> <?php echo $form->error($model, 'preciounit'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'um'); ?> <?php echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "filter.png"), CController::createUrl('Ums/cargaum'), array('type' => 'POST', 'url' => CController::createUrl('Ums/cargaum'), 'update' => '#Tempalkardex_um', 'data' => array('codigomaterial' => 'js:Tempalkardex_codart.value'))); ?> <?php if ($model->isNewRecord) { //$datos = CHtml::listData(Ums::model()->findAll(),'um','desum'); $datos = array(); echo $form->DropDownList($model, 'um', $datos, array('disabled' => in_array($model->codmov, $model->campoeditable()['um']) ? '' : 'disabled', 'maxlength' => 4)); ?> <?php } else { ?> <?php echo $form->DropDownList($model, 'um', Alconversiones::Listadoums($model->codart), array('empty' => '--Um--', 'disabled' => in_array($model->codmov, $model->campoeditable()['um']) ? '' : 'disabled', 'maxlength' => 4)); ?>
<div class="row"> <?php //if(!$model->isnewRecord) { ?> <?php echo $form->labelEx($model, 'idcontacto'); ?> <?php $criterio = new CDbCriteria(); $criterio->addcondition("c_hcod='" . $model->codpro . "'"); $datos1 = CHtml::listData(Contactos::model()->findAll($criterio), 'id', 'c_nombre'); echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "filter.png"), CController::createUrl('Contactos/Contactosporprove'), array('type' => 'POST', 'url' => CController::createUrl('Contactos/Contactosporprove'), 'update' => '#Ocompra_idcontacto', 'data' => array('codigoprov' => 'js:Ocompra_codpro.value'))); echo $form->DropDownList($model, 'idcontacto', $datos1, array('empty' => '--Seleccione Contacto--')); ?> <?php echo $form->error($model, 'idcontacto'); ?> <?php //} ?> </div> <?php echo $form->hiddenField($model, 'idguia');
<?php echo $form->textField($model, 'pttotal', array('value' => round($model->cantlibre * $model->punit, 2), 'disabled' => 'disabled')); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'ubicacion'); ?> <?php echo $form->textField($model, 'ubicacion', array('size' => 10, 'maxlength' => 10)); ?> <?php echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "package.png"), CController::createUrl($this->id . '/updateubicacion'), array('type' => 'POST', 'url' => CController::createUrl($this->id . '/updateubicacion'), "data" => array("codubicacion" => "js:Alinventario_ubicacion.value", "id" => "js:Alinventario_id.value"), "update" => "#zonamensajes")); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'lote'); ?> <?php echo $form->textField($model, 'lote', array('disabled' => 'disabled', 'size' => 10, 'maxlength' => 10)); ?> <?php echo $form->error($model, 'lote'); ?>
?> <?php } else { ?> <?php echo $form->DropDownList($model, 'um', Alconversiones::Listadoums($model->codart), array('empty' => '--Um--', 'disabled' => $habilitado, 'maxlength' => 4)); ?> <?php } ?> <?php echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "package.png"), CController::createUrl($this->id . '/stock'), array('type' => 'POST', 'url' => CController::createUrl($this->id . '/stock'), "data" => array("codiguito" => "js:Desolpe_codart.value", "centrito" => "js:Desolpe_codal.value", "almacencito" => "js:Desolpe_centro.value"), "update" => "#zonamaterial"), array('onClick' => 'Loading.show();Loading.hide(); return false;')); ?> <?php echo $form->error($model, 'um'); ?> </div> <?php /* echo CHtml::ajaxSubmitButton("Ver detalle material.",
} else { if ($singleAgenda->status == 'OPN') { echo '<tr><td>'; echo Chtml::ajaxLink($singleAgenda->topik, array("changeForm&id={$singleAgenda->id}" . $url), array('update' => '#meeting_form')); echo '</td><td width="10">'; echo '</td><td>'; echo $singleAgenda->status; echo '</td></tr>'; } } } } } echo '</table>'; echo '<b>Agenda to be discussed</b>'; echo '<table>'; foreach ($agendas as $singleAgenda) { if ($singleAgenda->status == 'NEW') { echo '<tr><td>'; echo Chtml::ajaxLink($singleAgenda->topik, array("changeForm&id={$singleAgenda->id}" . $url), array('update' => '#meeting_form')); echo '</td><td width="10">'; echo '</td><td>'; echo $singleAgenda->status; echo '</td></tr>'; } } echo '</table>'; echo '<b>Briefing from Rector</b></br>'; echo '<b>Miscellanous</b>'; ?> </table>