Пример #1
0
 private function pintaimagen($imagen)
 {
     $this->abrepanel();
     $nombreimagen = array_pop(explode(DIRECTORY_SEPARATOR, $imagen));
     $imagensola = substr($nombreimagen, 0, strpos($nombreimagen, "."));
     echo CHTml::Ajaxlink(CHTml::image($this->_baseUrl . '/tacho.png', '', array('width' => 18, 'height' => 20)), Yii::app()->createUrl($this->rutaborra, array("cualfoto" => $nombreimagen)), array('type' => 'GET', 'update' => '#division_' . $imagensola), array("onClick" => "Loading.show(); Loading.hide();"));
     $this->cierradiv();
     $this->abreborde($imagensola);
     echo CHTml::link(CHTml::image($this->rutaimagenes . $imagen, $imagensola, array('class' => 'imagen')), '#', array('onclick' => "document.images['" . $this->idimagen . "'].src='" . $this->rutaimagenes . $imagen . "';"));
     $this->cierradiv();
 }
Пример #2
0
<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'solpe-form', 'enableAjaxValidation' => false));
?>


<?php 
$comboList = array();
foreach (Yii::app()->user->um->listUsers() as $user) {
    $comboList[$user->primaryKey] = $user->username;
}
echo CHTml::dropDownList('iduser', '', $comboList, array('empty' => '--Seleccione usuario--'));
?>


<?php 
$prove = Centros::model()->search();
$this->widget('zii.widgets.grid.CGridView', array('id' => 'detalle-grid', 'dataProvider' => $prove, 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'summaryText' => '->', 'columns' => array(array('class' => 'CCheckBoxColumn', 'selectableRows' => 20, 'value' => '$data->codcen', 'checkBoxHtmlOptions' => array('name' => 'cajita[]')), array('name' => 'nomcen', 'header' => 'nombre', 'htmlOptions' => array('width' => 125)))));
?>

<?php 
echo CHtml::submitButton('Seleccionar');
$this->endWidget();
Пример #3
0
<?php

$prove = Dcajachica::model()->search_por_cargo_a_rendir($idcabecera, $idparent);
$this->widget('zii.widgets.grid.CGridView', array('id' => 'detalle-grid', 'dataProvider' => $prove, 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'summaryText' => '->', 'columns' => array(array('class' => 'CCheckBoxColumn', 'selectableRows' => 20, 'value' => '$data->id', 'checkBoxHtmlOptions' => array('name' => 'cajita[]')), array('name' => 'fecha', 'header' => 'Fecha', 'value' => 'date("d.m.Y", strtotime($data->fecha))', 'htmlOptions' => array('width' => 50)), array('name' => 'tipoflujo', 'header' => 'Tipo', 'value' => '$data->flujos->destipo', 'htmlOptions' => array('width' => 140)), array('name' => 'st.', 'header' => 'st', 'type' => 'raw', 'value' => '($data->tipoflujo=="102")?CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."rojo.png"):""'), array('name' => 'glosa', 'header' => 'Glosa', 'htmlOptions' => array('width' => 205)), array('name' => 'codocu', 'header' => 'Documento', 'value' => '$data->documentos->desdocu', 'htmlOptions' => array('width' => 200)), array('name' => 'referencia', 'header' => 'Ref.', 'htmlOptions' => array('width' => 205)), array('name' => 'debe', 'header' => 'Cargo', 'htmlOptions' => array('width' => 5)), array('name' => 'monedahaber', 'header' => 'Mon', 'htmlOptions' => array('width' => 5)), array('name' => 'monto', 'header' => 'Monto', 'type' => 'raw', 'value' => 'CHTml::openTag("span",array("style"=>"color:#ff6600;float:right;font-weight:bold;")).MiFactoria::Decimal($data->monto).CHTml::closeTag("span")', 'footer' => MiFactoria::Decimal(Dcajachica::getMonto($prove, 2)), 'htmlOptions' => array('width' => 5)), array('name' => 'Ceco', 'header' => 'Cc', 'type' => 'raw', 'value' => '$data->ceco', 'htmlOptions' => array('width' => 80), 'footer' => CHTml::openTag("span", array("style" => "color:#ff6600;float:right;font-weight:bold;")) . MiFactoria::decimal($model->debe - Dcajachica::getMonto($prove, 2)) . CHTml::closeTag("span")), array('name' => 'estado', 'header' => 'Estado', 'value' => '$data->estado->estado', 'htmlOptions' => array('width' => 100)), array('htmlOptions' => array('width' => 120), 'class' => 'CButtonColumn', 'buttons' => array('update' => array('visible' => 'true', 'url' => '$this->grid->controller->createUrl("trabajadores/actualizadetalle/",
										    array("id"=>$data->id,
                                                                                         "asDialog"=>1,
											"gridId"=>$this->grid->id,
											"ed"=>"si",

											)
									    )', 'click' => 'function(){
                                     $("#cru-dialog2").dialog("open");
							    		$("#cru-frame2").attr("src",$(this).attr("href"));
							     return false;
							 }', 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemaimagenes'] . 'lapicito.png', 'label' => 'Actualizar Item'), 'delete' => array('visible' => 'true', 'url' => '', 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemaimagenes'] . 'hand_point.png', 'label' => 'Ver detalle'), 'view' => array('visible' => 'true', 'url' => '', 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemaimagenes'] . 'borrador.png', 'label' => 'Reservar'))))));
<?php 
if (empty($_SESSION['message'])) {
    $_SESSION['message'] = '';
}
$_SESSION['message'] = $_SESSION['message'] . $message;
echo $_SESSION['message'];
if ($currentStep != 0 && $currentStep < 7) {
    $next_step = $currentStep + 1;
    $url = Yii::app()->baseUrl . '/index.php?r=/Setup/showUpdateProgress&curr_step=' . $next_step;
    //echo $url;
    echo "<SCRIPT LANGUAGE='javascript'>location.href='{$url}';</SCRIPT>";
} else {
    /*After printing the messages We are clearing the message variable, so that when update run again for next time gives us no error*/
    $_SESSION['message'] = '';
    echo "<br>";
    echo CHTml::link('Restart Browser', array(' '));
}
?>

</div><!-- content -->


<div id="footer">
	
	<table><tr><td>
	<?php 
echo CHtml::image($rapport_logo, "ballpop", array("width" => "170", "height" => "56.6"));
?>
	</td>
	<td style="text-align:right;">
		Copyright &copy; <?php 
Пример #5
0
	<div class="row">
		<?php 
echo CHTml::label('Usuario', 'Usuario');
?>
		<?php 
echo CHTml::textField('Usuario_c', $usuario->username, array('disabled' => 'disabled'));
?>

	</div>

	<div class="row">
		<?php 
echo CHTml::label('Email', 'Email');
?>
		<?php 
echo CHTml::textField('Email_c', $usuario->email, array('disabled' => 'disabled'));
?>

	</div>


<?php 
$this->endWidget();
?>

</div><!-- form -->


<?php 
$this->widget('zii.widgets.jui.CJuiTabs', array('tabs' => array('Valores' => array('id' => 'tab_general', 'content' => $this->renderPartial('tab_valores', array('model' => $model, 'form' => $form, 'usuario' => $usuario), TRUE)), 'Rangos' => array('id' => 'tab_logss', 'content' => $this->renderPartial('tab_rangos', array('model' => $model, 'form' => $form, 'usuario' => $usuario), TRUE))), 'options' => array('collapsible' => false, 'heightStyle' => 'auto'), 'id' => 'MyTabe'));
?>
<ul>
<?php 
foreach ($this->getRecentPosts() as $post) {
    ?>
<li>
<?php 
    echo CHtml::link(CHtml::encode($post->title), array('post/show', 'id' => $post->id));
    ?>
&nbsp;on&nbsp;
<?php 
    echo CHTml::link(date('M j', $post->createTime), array('post/PostedOnDate', 'time' => $post->createTime));
    ?>
</li>
<?php 
}
?>
</ul>
Пример #7
0
<?php

$this->menu = array(array('label' => 'Ver docs', 'url' => array('admin')));
$prove = VwStockPorTipos::model()->search_por_almacen($model->codalm, $model->codcen);
?>




<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'almacenes-grid', 'dataProvider' => $prove, 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'columns' => array('codcen', 'codtipo', 'destipo', array('name' => 'stocklibre', 'value' => 'MiFactoria::decimal($data->stocklibre)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(VwStockPorTipos::getTotal($prove)["libre"], 2) . CHTml::CloseTag("span")), array('name' => 'stockreservado', 'value' => 'MiFactoria::decimal($data->stockreservado)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(VwStockPorTipos::getTotal($prove)["reservado"], 2) . CHTml::CloseTag("span")), array('name' => 'stocktransito', 'value' => 'MiFactoria::decimal($data->stocktransito)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(VwStockPorTipos::getTotal($prove)["transito"], 2) . CHTml::CloseTag("span")), array('class' => 'CButtonColumn', 'template' => '{view}{update}'))));
Пример #8
0
	</div>
		<div class="row">
			<?php 
echo $form->label($model, 'txtmaterial');
?>
			<?php 
echo $form->textField($model, 'txtmaterial', array('size' => 40, 'maxlength' => 40));
?>
		</div>

		<div class="row">
			<?php 
echo $form->labelEx($model, 'estado');
?>
			<?php 
$datos111 = CHTml::listData(Estado::model()->findAll("codocu=:vcodocu", array(":vcodocu" => CODIGO_DOC_SOLPE)), 'codestado', 'estado');
?>

			<?php 
echo $form->dropDownList($model, 'estado', $datos111, array('empty' => '--Seleccione un estado--'));
?>

		</div>

		<div class="row">
			<?php 
echo $form->labelEx($model, 'escompra');
?>
			<?php 
$datos1 = CHtml::listData(Tiposolpe::model()->findAll(), 'codtipo', 'destipo');
echo $form->DropDownList($model, 'escompra', $datos1, array('empty' => '--Seleccione un tipo--', 'disabled' => !$model->isNewRecord ? 'disabled' : ''));
Пример #9
0
echo $form->label($model, 'nombrereporte');
?>
		<?php 
echo $form->textField($model, 'nombrereporte');
?>
	</div>




	<div class="row">
		<?php 
echo $form->label($model, 'codocu');
?>
		<?php 
$datos = CHTml::listData(Documentos::model()->findAll(), 'coddocu', 'desdocu');
?>
		<?php 
echo $form->dropDownList($model, 'codocu', $datos, array('prompt' => 'Seleccione un Documento'));
?>
	</div>


	<div class="row buttons">
		<?php 
echo CHtml::submitButton('Buscar', array('onClick' => 'Loading.show();Loading.hide();'));
?>
	</div>

<?php 
$this->endWidget();
Пример #10
0
<div class="row">
	<?php 
echo $form->labelEx($model, 'documentos_controlrecepcion');
?>
	<?php 
echo $form->checkBox($model, 'documentos_controlrecepcion');
?>

</div>








<div class="row">

<?php 
//echo Yii::getPathOfAlias('webroot').$model->documentos_archivo_sello_agua;
if (!is_null($model->documentos_archivo_sello_agua)) {
    $ruta = Yii::getPathOfAlias('webroot') . $model->documentos_archivo_sello_agua;
}
$this->widget('ext.coco.CocoWidget', array('id' => 'cocowidget1E', 'onCompleted' => 'function(id,filename,jsoninfo){  }', 'onCancelled' => 'function(id,filename){ alert("cancelled"); }', 'onMessage' => 'function(m){ alert(m); }', 'allowedExtensions' => array('JPEG', 'JPG', 'gif', 'PNG'), 'sizeLimit' => 2000000, 'uploadDir' => $ruta, 'buttonText' => 'Imagen APROBADA', 'receptorClassName' => 'application.models.Maestrocompo', 'methodName' => 'FileReceptor', 'userdata' => 'APROBADO', 'maxUploads' => 1, 'maxUploadsReachMessage' => 'No esta permitido cargar mas archivos', 'multipleFileSelection' => true, 'nombrealt' => ''));
echo CHTml::image(yii::app()->getBaseUrl(false) . $model->documentos_archivo_sello_agua . DIRECTORY_SEPARATOR . 'APROBADO.JPG', '', array('width' => 80, 'height' => 80));
?>
</div>


<BR>
Пример #11
0
<ul>
    <?php 
foreach ($this->getRecentPosts() as $post) {
    ?>
        <li>
            <?php 
    echo CHtml::link(CHtml::encode($post->title), array('post/show', 'slug' => $post->slug));
    ?>
            &rarr;
            <?php 
    echo CHTml::link(Yii::t('lan', date('F', $post->createTime)) . date(' j', $post->createTime), array('post/PostedOnDate', 'year' => date('Y', $post->createTime), 'month' => date('m', $post->createTime), 'day' => date('j', $post->createTime)));
    ?>
        </li>
    <?php 
}
?>
</ul>
Пример #12
0
<?php

/* @var $this AlmacenesController */
/* @var $model Almacenes */
$this->breadcrumbs = array('Almacenes' => array('index'), 'Manage');
$this->menu = array(array('label' => 'Ver docs', 'url' => array('admin')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#almacenes-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<?php 
$prove = $model->search();
?>


<h1><?php 
echo CHtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "chart_bar.png");
?>
 Almacenes</h1>

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'almacenes-grid', 'dataProvider' => $proveedor, 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'columns' => array('codcen', array('name' => 'codalm', 'type' => 'raw', 'value' => 'CHtml::link($data["codalm"],Yii::app()->createUrl("Almacenes/detalle",array("codalmacen"=>$data[\'codalm\'],"codcentro"=>$data[\'codcen\'])))'), 'nomal', array('name' => 'Libre', 'value' => 'MiFactoria::decimal($data["stock_cantlibre"])', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal($stocktotales['stock_cantlibre'], 2) . CHTml::CloseTag("span")), array('name' => 'Reservado', 'value' => 'MiFactoria::decimal($data["stock_cantres"])', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal($stocktotales['stock_cantres'], 2) . CHTml::CloseTag("span")), array('name' => 'Transito', 'value' => 'MiFactoria::decimal($data["stock_canttran"])', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal($stocktotales['stock_canttran'], 2) . CHTml::CloseTag("span")), array('name' => 'Total', 'value' => 'MiFactoria::decimal($data["stock_total"])', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal($stocktotales['stock_total'], 2) . CHTml::CloseTag("span")))));
Пример #13
0
echo $form->labelEx($model, 'insercion');
?>
		<?php 
if (!$model->insercion == '1') {
    ?>
		<?php 
    echo $form->checkBox($model, 'insercion', array('disabled' => $model->isNewRecord ? '' : 'disabled'));
    ?>
		<?php 
} else {
    ?>
			<?php 
    echo $form->hiddenField($model, 'insercion', array('value' => '1'));
    ?>
			<?php 
    echo CHTml::checkBox('chcbosinsercion', array('value' => '1', 'disabled' => 'disabled'));
    ?>
		<?php 
}
?>

		<?php 
echo $form->error($model, 'insercion');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'descripcion');
?>
		<?php 
Пример #14
0
echo $form->labelEx($model, 'activo');
?>
		<?php 
echo CHTml::textField('ieuereu', $modelin->codigoaf, array('disabled' => 'disabled'));
?>
		<?php 
echo CHTml::textField('ieureu', $modelin->descripcion, array('disabled' => 'disabled'));
?>
		<?php 
echo CHTml::textField('ieur343eu', $modelin->marca, array('disabled' => 'disabled'));
?>
		<?php 
echo CHTml::textField('ieur343eu', $modelin->modelo, array('disabled' => 'disabled'));
?>
		<?php 
echo CHTml::image(Yii::app()->params['rutafotosinventario_'] . $modelin->codigosap . '.JPG', '', array('height' => 90, 'width' => 90));
?>
		<?php 
echo $form->error($model, 'ccanterior');
?>
			</div>
			<div style='float: left; background-color :#CEF6F5; '>	
			<div id="<?php 
echo ucwords(strtolower(trim($this->id))) . '_idactivo_99';
?>
" >
					 <?php 
echo !$model->isNewRecord ? $model->inventario->descripcion : '';
?>
			</div>
			</div>
Пример #15
0
echo $form->labelEx($model, 'campototal');
?>
				<?php 
echo $form->dropDownList($model, 'campototal', $model->isNewRecord ? array() : $listacampos, array('prompt' => 'Seleccione un campo'));
?>
				<?php 
echo $form->error($model, 'campototal');
?>
			</div>



<div class="row">
<?php 
if (!$model->isNewRecord) {
    echo CHTml::link("Crear Detalle", yii::app()->createUrl('/coordocs/creadetalle', array("id" => $model->id)));
}
?>
		
		</DIV>

		</div>

	<div class="row buttons">
		<?php 
echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Grabar');
?>
	</div>

<?php 
$this->endWidget();
Пример #16
0
<?php

if ($news) {
    foreach ($news as $n) {
        $d = strtotime($n->date);
        $time = Yii::app()->dateFormatter->formatDateTime($d, null, "short");
        $date = Yii::app()->dateFormatter->formatDateTime($d, "medium", null);
        echo '<div class="post clearfix">';
        echo '<div class="title clearfix">';
        echo '<time>' . $date . ($time != "0:00" ? " в " . $time : "") . "</time>";
        echo CHTml::link(stripslashes($n->title), array("/news/news/show", "title" => $n->alias));
        echo "</div>";
        echo "<div class=\"content\">" . CHtml::decode(stripslashes($n->short_text)) . "</div>";
        echo "</div>";
    }
} else {
    echo "<h1>По данному запросу ничего не найдено</h1>";
}
Пример #17
0
<div style="position:absolute; left:<?php 
echo $xresumen;
?>
px; top:<?php 
echo $yresumen;
?>
px">

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'impuestos-grid', 'summaryText' => '', 'hideHeader' => true, 'dataProvider' => Yii::app()->impuestos->dataimpuestos($codocu, $idocu), 'columns' => array('descripcion', 'abreviatura', array('name' => 'valor', 'value' => '"(".round($data["valor"],0)."%)"', 'footer' => 'TOTAL : '), array('name' => 'valorap', 'value' => '$data["simbolo"]." ".MiFactoria::decimal($data["valorap"],2)', 'footer' => $data->simbolo . "  " . CHTml::openTag("span", array("style" => "font-size:13px;font-weight:bold;")) . MiFactoria::decimal($grantotal, 2) . CHTml::closeTag("span")))));
?>

	</div>
Пример #18
0
<script type="text/javascript">
  $(function () {
    
    date = new Date(2015, 11, 29);
    date1 = new Date(2015, 11, 30);    
    var myDatepicker = $('.datepicker-here').datepicker().data('datepicker');
    <?php 
for ($j = 0; $j < $count; $j++) {
    $n = explode('.', $a[$j]);
    echo 'date = new Date(' . $n[2] . ', ' . ($n[1] - 1) . ', ' . $n[0] . ');';
    echo 'myDatepicker.selectDate(date);';
}
?>
});

</script>
<?php 
echo CHtml::form();
echo CHtml::activeTextField($model, "day", array("class" => "datepicker-here", "data-multiple-dates-separator" => ", ", "data-multiple-dates" => "true", "data-inline" => "true", "style" => "width:282px"));
echo '<br />';
echo CHTml::submitButton('Изменить', array('name' => 'update'));
echo CHtml::endForm();
Пример #19
0
echo $form->labelEx($model, 'verprecios');
?>
		<?php 
echo $form->checkBox($model, 'verprecios');
?>
		<?php 
echo $form->error($model, 'verprecios');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'codmon');
?>
		<?php 
$datos = CHTml::listdata(Monedas::model()->FindAll(array("order" => "desmon ASC")), 'codmoneda', 'desmon');
?>
		<?php 
echo $form->DropdownList($model, 'codmon', $datos, array('empty' => '--Seleccione moneda--'));
?>
		<?php 
echo $form->error($model, 'codmon');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'novalorado');
?>
		<?php 
echo $form->checkBox($model, 'novalorado');
Пример #20
0
    echo CHtml::image($rutabase . '/img/clock.png', "hola");
    ?>
                     <?php 
    echo CHtml::link(" Quedan : " . Mifactoria::statusession()['minutosrestantes'] . "   Minutos", "#", "");
    ?>
                    <div class="progress progress-<?php 
    echo MiFactoria::getcolor(Mifactoria::statusession()['porcentaje'], 60, 80, 95);
    ?>
">
                        <div class="bar" style="width: <?php 
    echo 100 - Mifactoria::statusession()['porcentaje'] . "";
    ?>
%"></div>
                    </div>
                    </div>
                    <!--FINALIZA EL PORTLET DE USUARIO -->
                    <?php 
    $this->endWidget();
    ?>
                </div> <!--FINALIZA EL DIV USUARIO -->
            <?php 
}
?>
            <table class="table table-striped table-bordered">
          <tbody>
            <tr>
              <td width="50%">Ancho de banda usado</td>
              <td>
              	<div class="progress progress-right">
                  <div class="bar" style="width: 10%"></div>
                </div>
Пример #21
0
$this->widget('ext.matchcode.MatchCode', array('nombrecampo' => 'codprov', 'ordencampo' => 1, 'defol' => isset(Yii::app()->session['codprov']) ? Yii::app()->session['codprov'] : '', 'controlador' => $this->id, 'relaciones' => $model->relations(), 'tamano' => 6, 'model' => $model, 'form' => $form, 'nombredialogo' => 'cru-dialog3', 'nombreframe' => 'cru-frame3', 'nombrearea' => 'coci'));
?>
				
	</div>
	
	
	
	
			<div style='float: left; background-color :#CEF6F5; '>	
			<div id="<?php 
echo ucwords(strtolower(trim($this->id))) . '_codprov_99';
?>
" >
					 <?php 
if (!$model->isNewRecord) {
    echo CHTml::textField($model->clipro->despro, $model->clipro->despro, array('disabled' => 'disabled', 'size' => 40, 'maxlength' => 40));
}
?>
			</div>
			</div>
			<div style='float: left;'>
					<?php 
echo $form->error($model, 'codprov');
?>
			</div>

	
	
	
	
	
Пример #22
0


</div>

<div style="position:absolute; padding:1px; top:<?php 
echo $ylogo;
?>
px; left:<?php 
echo $xlogo;
?>
px; ">

				<div style="float:left">
					<?php 
echo CHTml::image(Yii::app()->baseUrl . yii::app()->params['imgreportes'] . $idreporte . ".JPG", '', array('border' => '1', 'width' => 150, 'height' => 100));
?>
				</div>

</div>
<div style="position:absolute;  padding:0px; float:left; left:<?php 
echo $xlogo + 100;
?>
px; top:<?php 
echo $ylogo + 10;
?>
px;">

							<span style="font-family:courier; font-size:10px !important;">
								<?php 
echo $model->dsocio;
Пример #23
0
<?php

if (strtolower($this->action->id) == 'verdocumento') {
    $proveedor = Docompra::model()->search_por_compra($filtro);
} else {
    $proveedor = Docompratemp::model()->search_por_compra($filtro);
}
$descuento = $model->descuento + 0;
//var_dump($descuento);yii::app()->end();
?>
<div id="AjFlash" class="flash-regular"></div>
<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'detalle-grid', 'dataProvider' => $proveedor, 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'summaryText' => '>', 'columns' => array(array('class' => 'CCheckBoxColumn', 'selectableRows' => 20, 'value' => '$data->idtemp', 'checkBoxHtmlOptions' => array('name' => 'cajita[]')), array('name' => 'st.', 'header' => 'st', 'type' => 'raw', 'value' => 'CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"].$data->coddocu.$data->estadodetalle.".png")'), 'codentro', 'codigoalma', 'item', 'cant', 'ums.desum', 'codart', 'descri', array('name' => 'texto', 'type' => 'raw', 'header' => 't', 'value' => '(!empty($data->detalle))?CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."texto.png","hola"):""'), 'punit', array('name' => 'Bruto', 'header' => 'Bruto', 'value' => 'Mifactoria::decimal($data->cant*($data->punit),2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["bruto"], 2) . CHTml::CloseTag("span")), array('name' => 'Descuento', 'visible' => $descuento > 0 ? true : false, 'header' => 'Dcto', 'value' => 'Mifactoria::decimal($data->cant*$data->punit*($data->ocompra->descuento/100),2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["descuento"], 2) . CHTml::CloseTag("span")), array('name' => 'potal', 'value' => 'Mifactoria::decimal(($data->punit*(1-$data->ocompra->descuento/100))*$data->cant,2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["total"], 2) . CHTml::CloseTag("span")), array('class' => 'CButtonColumn', 'buttons' => array('view' => array('visible' => 'false'), 'update' => array('visible' => $this->eseditable($model->{$this->campoestado}) ? 'false' : 'true', 'url' => '$this->grid->controller->createUrl("/Ocompra/Modificadetalle/",
										    array("id"=>$data->idtemp,
                                                                                         "asDialog"=>1,
											"gridId"=>$this->grid->id
											)
									    )', 'click' => 'function(){ 
							    $("#cru-detalle").attr("src",$(this).attr("href")); 
							    $("#cru-dialogdetalle").dialog("open");  
							     return false;
							 }', 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemagrid'] . 'update.png', 'label' => 'Actualizar Item'), 'delete' => array('visible' => $this->eseditable($model->{$this->campoestado}) ? 'false' : 'true', 'url' => '$this->grid->controller->createUrl("/Ocompra/borraitem", array("identi"=>$data->id,"idcabecera"=>$data->hidguia))', 'options' => array('ajax' => array('type' => 'GET', 'success' => "js:function() { \$.fn.yiiGridView.update('detalle-grid'); }", 'url' => 'js:$(this).attr("href")')), 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemaimagenes'] . 'borrador.png', 'label' => 'Borrary'))))));
Пример #24
0

<?php 
echo CHtml::link('Buscar', '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'clipro-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'columns' => array('codpro', 'despro', 'rucpro', 'telpro', 'emailpro', 'tipo', array('class' => 'CButtonColumn', 'template' => '{view}{update}', 'buttons' => array('template' => '{up}')))));
?>

<?php 
echo CHTml::link("Exportar", Yii::app()->createUrl('/clipro/admin', array('espe' => 1)));
?>

<?php 
//--------------------- begin new code --------------------------
// add the (closed) dialog for the iframe
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'cru-dialog', 'options' => array('title' => 'Detail view', 'autoOpen' => false, 'modal' => false, 'width' => 750, 'height' => 800)));
?>
<iframe id="cru-frame" width="100%" height="100%"></iframe>
<?php 
$this->endWidget();
//--------------------- end new code --------------------------
?>
</div>