本文整理汇总了PHP中Chtml::ajaxLink方法的典型用法代码示例。如果您正苦于以下问题:PHP Chtml::ajaxLink方法的具体用法?PHP Chtml::ajaxLink怎么用?PHP Chtml::ajaxLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chtml
的用法示例。
在下文中一共展示了Chtml::ajaxLink方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<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>
示例2: CDbCriteria
<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');
示例3: array
<?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');
?>
示例4: array
} 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>