当前位置: 首页>>代码示例>>PHP>>正文


PHP CHtml::imageButton方法代码示例

本文整理汇总了PHP中CHtml::imageButton方法的典型用法代码示例。如果您正苦于以下问题:PHP CHtml::imageButton方法的具体用法?PHP CHtml::imageButton怎么用?PHP CHtml::imageButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CHtml的用法示例。


在下文中一共展示了CHtml::imageButton方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: formButton

 /**
  * @param array $options
  * @return string
  */
 public function formButton($options = array())
 {
     $form = CHtml::beginForm($this->url(), 'get');
     $form .= CHtml::hiddenField('business', $this->business);
     foreach (CMap::mergeArray($this->defaultOptions, $options) as $k => $v) {
         $form .= CHtml::hiddenField($k, $v);
     }
     $form .= CHtml::imageButton($this->image, array('border' => 0, 'alt' => $this->imageAltText));
     $form .= CHtml::endForm();
     return $form;
 }
开发者ID:cornernote,项目名称:yii-dressing,代码行数:15,代码来源:YdPayPalHelper.php

示例2: run

 public function run()
 {
     foreach ($this->botones as $clave => $arreglo) {
         //solo si sin son arrays no  vacios
         if (count($this->botones[$clave]) > 0) {
             if (in_array($this->status, $arreglo["visiblex"])) {
                 $this->iniciamarco();
                 $this->iniciaboton();
                 // $rutaimagenes=Yii::app()->getHomeUrl().'protected/extensions/toolbar/assets/img/'.$clave.$this->size.'.'.strtolower($this->extension);
                 //$rutaimagenes=substr(dirname(__FILE__).'/assets',strpos(dirname(__FILE__).'/assets',Yii::app()->getHomeUrl())).'/img/'.$clave.$this->size.'.'.strtolower($this->extension);
                 // $rutaimagenes=Yii::app()->baseUrl.'/assets/img/'.$clave.'.'.strtolower($this->extension);
                 $rutaimagenes = $this->ruta . '/img/' . $this->size . '/' . $clave . '.' . strtolower($this->extension);
                 $rutaimagenes_bajo = $this->ruta . '/img/' . $this->size . '/' . $clave . '_.' . strtolower($this->extension);
                 $rutaapunta = "";
                 if (count($arreglo["ruta"]) > 0) {
                     //si se han especificado elemtnos en el parametro ruta
                     $rutaapunta = yii::app()->createUrl($arreglo["ruta"][0], $arreglo["ruta"][1]);
                 } else {
                 }
                 $arrayestilolink = array('id' => $clave, 'class' => 'img_swap imagen', 'onMouseOver' => "this.src='" . $rutaimagenes_bajo . "'", 'onMouseOut' => "this.src='" . $rutaimagenes . "'", 'width' => $this->size - 1, 'height' => $this->size - 1);
                 $arrayestiloboton = array('value' => '', 'class' => 'boton_barrita', 'onMouseOver' => "this.src='" . $rutaimagenes_bajo . "'", 'onMouseOut' => "this.src='" . $rutaimagenes . "'", 'width' => $this->size - 1, 'height' => $this->size - 1);
                 switch ($arreglo['type']) {
                     //creamos el link de la ruta
                     case "A":
                         //Se trata de un boton simple POST
                         echo CHtml::imageButton($rutaimagenes, $arrayestiloboton);
                         break;
                     case "B":
                         echo CHtml::link(Chtml::image($rutaimagenes, '', $arrayestilolink), $rutaapunta);
                         break;
                     case "C":
                         echo CHtml::link(Chtml::image($rutaimagenes, '', $arrayestilolink), '#', array('onclick' => " \$('#" . $arreglo["frame"] . "').attr('src','" . $rutaapunta . "');\$('#" . $arreglo["dialog"] . "').dialog('open');"));
                         break;
                     case "D":
                         echo CHtml::AjaxLink(Chtml::image($rutaimagenes, '', $arrayestilolink), $rutaapunta, $arreglo["opajax"]);
                         break;
                 }
                 /*
                 
                                        if (is_array($arreglo)){ //SI ES UN ENLACE
                                            echo CHtml::link(Chtml::image($rutaimagenes,'',array(
                        'id'=>$clave,
                        'class'=>'img_swap imagen',
                     'onMouseOver'=>"this.src='". $rutaimagenes_bajo."'",
                    'onMouseOut'=>"this.src='". $rutaimagenes."'",
                    //'class'=>'imagen',
                    'width'=>$this->size-1,
                    'height'=>$this->size-1
                                                                    )
                                        ),$arreglo
                                );
                    } ELSE {  /// ES UN SUBMIT
                                            echo CHtml::imageButton($rutaimagenes,array('class'=>'boton',
                    'width'=>$this->size-1, 'height'=>$this->size-1,
                    //'onClick'=>'Loading.show();Loading.hide(); ',
                    'onMouseOver'=>"this.src='". $rutaimagenes_bajo."'",
                    'onMouseOut'=>"this.src='". $rutaimagenes."'",
                    'value'=>'Crear'));
                                        }
                 */
                 $this->cierradiv();
                 $this->cierradiv();
             }
         }
     }
 }
开发者ID:hipogea,项目名称:zega,代码行数:66,代码来源:Barra.php

示例3: render

 /**
  * Returns this button.
  * @return string the rendering result
  */
 public function render()
 {
     $attributes = $this->attributes;
     if (isset(self::$coreTypes[$this->type])) {
         $method = self::$coreTypes[$this->type];
         if ($method === 'linkButton') {
             if (!isset($attributes['params'][$this->name])) {
                 $attributes['params'][$this->name] = 1;
             }
         } elseif ($method === 'htmlButton') {
             $attributes['type'] = $this->type === 'htmlSubmit' ? 'submit' : ($this->type === 'htmlReset' ? 'reset' : 'button');
             $attributes['name'] = $this->name;
         } else {
             $attributes['name'] = $this->name;
         }
         if ($method === 'imageButton') {
             return CHtml::imageButton(isset($attributes['src']) ? $attributes['src'] : '', $attributes);
         } elseif ($method === 'ajaxSubmitButton') {
             //no work
             return CHtml::ajaxSubmitButton('Submit', '/', array('type' => 'POST', 'update' => '#needForm'), array('type' => 'submit'));
         } else {
             return CHtml::$method($this->label, $attributes);
         }
     } else {
         $attributes['name'] = $this->name;
         ob_start();
         $this->getParent()->getOwner()->widget($this->type, $attributes);
         return ob_get_clean();
     }
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:34,代码来源:FormButtonElement.php

示例4: displayScriptItem

 public function displayScriptItem($dataitem)
 {
     echo "<li class=\"scriptitem grid_15\" >";
     echo "<div class=\"scripttitle\">";
     $linkurl = 'http://' . Yii::app()->request->getServerName() . $this->baseurl . '/script/' . $dataitem['scriptid'] . '/' . $dataitem['urltitle'];
     echo CHtml::Link($dataitem['title'], $linkurl);
     echo "</div>";
     echo "<div class=\"updownvote\" id=\"updownvote_{$dataitem['scriptid']}\">";
     echo "<div class=\"vote upvoteicon\">" . CHtml::imageButton($this->baseurl . '/images/upvote1616.png', array('id' => 'upvote_' . $dataitem['scriptid'] . "_0", 'href' => 'javascript:void(0)', 'title' => 'Up Vote', 'value' => 'Up Vote')) . "</div>";
     echo "<div class=\"votes unvoted\" id=\"votes-unvoted_{$dataitem['scriptid']}\">" . $dataitem['votes'] . "</div>";
     echo "<div class=\"votes upvoted\" id=\"votes-upvoted_{$dataitem['scriptid']}\">" . ($dataitem['votes'] + 1) . "</div>";
     echo "<div class=\"votes downvoted\" id=\"votes-downvoted_{$dataitem['scriptid']}\" >" . ($dataitem['votes'] - 1) . "</div>";
     echo "<div class=\"vote downvoteicon\">" . CHtml::imageButton($this->baseurl . '/images/downvote1616.png', array('id' => 'downvote_' . $dataitem['scriptid'] . "_0", 'href' => 'javascript:void(0)', 'title' => 'Down Vote', 'value' => 'Down Vote')) . "</div>";
     $imageId = "starimg_" . $dataitem['scriptid'] . "_" . $dataitem['isfav'];
     $favImageSrc = "{$this->baseurl}/images/stariconset/star-black/star-black16.png";
     $notfavImageSrc = "{$this->baseurl}/images/stariconset/star-white/star-white16.png";
     if ($dataitem['isfav'] == 1) {
         $imageSrc = $favImageSrc;
     } else {
         $imageSrc = $notfavImageSrc;
     }
     $img = "<img id=\"{$imageId}\"  src=\"{$imageSrc}\"/>";
     echo "<div class=\"favstardiv\">" . CHtml::Link($img, 'javascript:void(0)', array('title' => 'Add to favorites', "class" => 'favstar')) . "</div>";
     echo "</div>";
     // end updownvote
     echo "<div class=\"scriptitemmiddleline\">";
     echo "<div class=\"scriptperson\">";
     echo "By: " . CHtml::Link($dataitem['membername'], 'http://' . Yii::app()->request->getServerName() . $this->baseurl . '/scripts/' . $dataitem['membername']) . " On " . date('M j, Y', $dataitem['lastmodifieddate']->sec);
     $tagurl = 'http://' . Yii::app()->request->getServerName() . $this->baseurl . '/scripts/tagged/';
     echo "<div class='scripttags'>";
     echo "<ul class='taglist'> ";
     //echo  "<li>".CHtml::Link($dataitem['category'],$tagurl.$dataitem['category'])."</li>";
     if (!empty($dataitem['tags'])) {
         foreach ($dataitem['tags'] as $tag) {
             if (!empty($tag)) {
                 echo "<li>" . CHtml::Link($tag, $tagurl . "{$tag}") . "</li>";
             }
         }
     }
     echo "</ul>";
     echo "</div>";
     echo "</div>";
     echo "<div class=\"scriptdesc\">";
     echo nl2br($dataitem['scriptdesc']);
     echo "&nbsp;<span class=\"smalltext viewscript\"  id=\"viewscript_{$dataitem['scriptid']}\"} >" . CHtml::Link("View Script &#9660;", 'javascript:void(0)') . " </span>";
     echo "</div>";
     echo "<div class=\"script\" id=\"showscript_{$dataitem['scriptid']}\">";
     echo nl2br($dataitem['script']);
     echo "</div>";
     echo "<div class=\"scriptlastline\">";
     echo "</div>";
     echo "</div>";
     // end scriptitemmiddleline
     echo "<hr>";
     echo "</li>";
 }
开发者ID:rgummadi,项目名称:ScriptOverflow,代码行数:56,代码来源:Controller.php

示例5: array

$parish = Parish::get();
if (isset($parish) and isset($parish->logo_src)) {
    echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl . $parish->logo_src, CHtml::encode(Yii::app()->name), array('width' => $parish->logo_width, 'height' => $parish->logo_height)), Yii::app()->request->baseUrl . '/');
} else {
    echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl . '/images/logo-new.gif', CHtml::encode(Yii::app()->name), array('width' => 200, 'height' => 100)), Yii::app()->request->baseUrl . '/');
}
?>
</div>
		<?php 
if (!Yii::app()->user->isGuest) {
    ?>
		<div id="search">
			<?php 
    $form = $this->beginWidget('CActiveForm', array('id' => 'search_form', 'action' => Yii::app()->createUrl('/parish/search'), 'method' => 'GET'));
    echo CHtml::textField('key', '', array('id' => 'search_key'));
    echo CHtml::imageButton(Yii::app()->request->baseUrl . '/images/search.png');
    $this->endWidget();
    Yii::app()->clientScript->registerScript('global-search', "\n\t\t\tkp = new Object;\n\t\t\t\$('#search_key').keyup(function(e) {\n\t\t\t\tdelete kp[e.which];\n\t\t\t} );\n\t\t\t\$('#search_key').keydown(function(e) {\n\t\t\t\tkp[e.which] = true;\n\t\t\t\tif (kp[17] && (e.which == 74 || e.which == 72)) {\n\t\t\t\t\twindow.location.href = '" . Yii::app()->createUrl('/family/search') . "?id=' + \$('#search_key').val();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} );\n\t\t\t\$('#search_form').submit(function() {\n\t\t\t\t\$.get(\$(this).attr('action'), {\n\t\t\t\t\t'key': \$('#search_key').val()\n\t\t\t\t}, function(data) {\n\t\t\t\t\t\$('#content').html(data);\n\t\t\t\t} );\n\t\t\t\treturn false;\n\t\t\t} );\n\t\t\t\$('#search_key').focus();\n\t\t\t");
    ?>
		</div>
		<?php 
}
?>
	</div><!-- header -->

	<div id="google_translate_element"></div>

	<div id="mainMbMenu">
		<?php 
$userMenu = array('label' => 'Users', 'url' => array('/user/admin'));
if (Yii::app()->user->checkAccess('Admin')) {
开发者ID:srinidg,项目名称:stbennos-parish,代码行数:31,代码来源:main.php

示例6: array

"> 
<?php 
echo $scriptdata['votes'] + 1;
?>
</div>
<div class="votes downvoted" id="votes-downvoted_<?php 
echo $scriptdata['scriptid'];
?>
" > 
<?php 
echo $scriptdata['votes'] - 1;
?>
</div>
<div class="vote downvoteicon">
<?php 
echo CHtml::imageButton($this->baseurl . '/images/downvote1616.png', array('id' => 'downvote_' . $scriptdata['scriptid'] . "_0", 'href' => '#', 'title' => 'Down Vote', 'value' => 'Down Vote'));
?>
</div>	
<?php 
$imageId = "starimg_" . $scriptdata['scriptid'] . "_" . $scriptdata['isfav'];
$favImageSrc = $this->baseurl . '/images/stariconset/star-black/star-black16.png';
$notfavImageSrc = $this->baseurl . '/images/stariconset/star-white/star-white16.png';
if ($scriptdata['isfav'] == 1) {
    $imageSrc = $favImageSrc;
} else {
    $imageSrc = $notfavImageSrc;
}
$img = "<img id=\"{$imageId}\"  src=\"{$imageSrc}\"/>";
?>
<div class="favstardiv"> <?php 
echo CHtml::Link($img, '#', array('title' => 'Add to favorites', "class" => 'favstar'));
开发者ID:rgummadi,项目名称:ScriptOverflow,代码行数:31,代码来源:view.php

示例7: array

        <i class="icon-user"></i> </div>
      <div class="field">
        <?php 
echo $form->passwordField($model, 'password', array('placeholder' => '****************', 'class' => 'field'));
?>
  
           <?php 
echo $form->error($model, 'password');
?>
        <i class="icon-unlock-alt"></i> </div>
      <div class="submit">
        <?php 
// echo CHtml::submitButton('Continue',array('class'=>'continue'));
?>
    <?php 
echo CHtml::imageButton(Yii::app()->theme->baseUrl . '/images/login_btn.png', array('id' => 'search-button'));
?>
      </div>
      <div class="terms">
          <p>I Agree to the <?php 
echo CHtml::link("terms of service:", array('/site/page', 'view' => 'terms-and-conditions'), array('target' => '_blank'));
?>
<br />
          <?php 
echo CHtml::link('Create an account', Yii::app()->createUrl('site/register'));
?>
</p> 
      </div>
      <?php 
$this->endWidget();
?>
开发者ID:brahmajiayatas,项目名称:getweiss,代码行数:31,代码来源:login.php

示例8: array

<div class="operaciones">
	<div class="left">
		<?php 
//echo CHtml::button('Atras', array('submit' => array('agregar', 'id'=>$id))).' ';
$imghtml = CHtml::image('images/Back.png', 'Atras', array('title' => 'Atras'));
echo CHtml::link($imghtml, array('create')) . '&nbsp;&nbsp;&nbsp;';
//echo CHtml::button('Modificar Destinatario y Fecha', array('submit' => array('update','id'=>$id, 'generando'=>1))).'<br/>';
//$imghtml2=CHtml::image('images/Modify.png','Modificar', array('title'=>'Modificar Destinatario y Fecha'));
//echo CHtml::link($imghtml2, array('update','id'=>$model->id, 'generando'=>1)).'&nbsp;';
?>
	</div>
	<div class="right">
	<?php 
//echo CHtml::button('Cancelar', array('submit' => array('delete', 'id'=>$id))).' ';
$imghtml2 = CHtml::image('images/no_mini.png', 'Cancelar', array('title' => 'Cancelar'));
echo CHtml::link($imghtml2, array('delete', 'id' => $model->id)) . '&nbsp;&nbsp;&nbsp;';
//echo CHtml::button('Guardar', array('submit' => array('enviar', 'id'=>$id),
//	'confirm'=>'¿Está seguro que desea crear y enviar el acta?'));
$form = $this->beginWidget('CActiveForm', array('id' => 'bm-traspaso-form', 'enableAjaxValidation' => false));
echo $form->hiddenField($model, 'id', array('tid' => $model->id));
echo CHtml::imageButton('images/Apply.png', array('title' => 'Guardar'), array('confirm' => '¿Está seguro que desea crear y enviar el acta?'));
$this->endWidget();
?>
	</div>
</div>





开发者ID:econesa,项目名称:sgbm_yii,代码行数:25,代码来源:enviar.php

示例9: array

echo CHtml::image(Yii::app()->getTheme()->baseUrl . '/img/pallet.png');
?>
        <h1>Crear movimiento</h1>

</div>
    </div>
<div class="division">
  <div class="wide form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'escoje-form', 'action' => Yii::app()->createUrl('/Almacendocs/create'), 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>

        <?php 
echo "<div class='botones'>";
echo CHtml::imageButton(Yii::app()->getTheme()->baseUrl . '/img/siga.png', array('value' => 'Crear'));
echo "</div>";
?>

	<div class="row">
		
		<?php 
$datos1 = CHtml::listData(Almacenmovimientos::model()->findAll(array('order' => 'movimiento')), 'codmov', 'movimiento');
echo CHtml::DropDownList('opciondocu', '', $datos1, array('empty' => '--Seleccione un movimiento--'));
?>
		
	</div>

	

	
开发者ID:hipogea,项目名称:zega,代码行数:27,代码来源:vw_escojer.php

示例10: array

	<b><?php 
echo CHtml::encode($data->nome);
?>
</b>
	<?php 
echo CHtml::imageButton(Yii::app()->request->baseUrl . "/images/update.png", array('submit' => array('update', 'id' => $data->cod_categoria)));
?>
	<?php 
echo CHtml::imageButton(Yii::app()->request->baseUrl . "/images/delete.png", array('submit' => array('delete', 'id' => $data->cod_categoria, 'returnUrl' => array($this->route)), 'confirm' => 'Deseja remover a categoria ' . $data->nome . '?'));
?>
	<br /> <br />

开发者ID:elikristina,项目名称:portalcegov,代码行数:11,代码来源:_view.php

示例11: testImageButton

 /**
  * @dataProvider providerImageButton
  *
  * @param string $src
  * @param array $htmlOptions
  * @param string $assertion
  */
 public function testImageButton($label, $htmlOptions, $assertion)
 {
     $this->assertEquals($assertion, CHtml::imageButton($label, $htmlOptions));
 }
开发者ID:robregonm,项目名称:yii,代码行数:11,代码来源:CHtmlTest.php

示例12: printmemberresumefirstline

function printmemberresumefirstline($script, $controller, $i)
{
    $root = $_SERVER['HTTP_HOST'] . "/adminscript";
    echo "<tr>";
    echo "<td class='colrow count'> {$i})";
    $baseUrl = Yii::app()->request->baseUrl;
    //echo $baseUrl;
    $imageId = "starimg_" . $script['scriptid'] . "_" . $script['isfav'];
    $favImageSrc = "{$baseUrl}/images/stariconset/star-black/star-black16.png";
    $notfavImageSrc = "{$baseUrl}/images/stariconset/star-white/star-white16.png";
    if ($script['isfav'] == 1) {
        $imageSrc = $favImageSrc;
    } else {
        $imageSrc = $notfavImageSrc;
    }
    $img = "<img id=\"{$imageId}\"  src=\"{$imageSrc}\"/>";
    $url = Yii::app()->createUrl('ajax/makeFav');
    echo CHtml::Link($img, '', array('href' => '#', 'class' => "favstar"));
    echo "</td>";
    echo "<td class='colrow title grid_12'>";
    echo CHtml::Link(CHtml::encode($script['title']), array('script/upload', 'scriptid' => $script['scriptid']));
    echo "</td>";
    echo "<td class='colrow'>" . date('m/d/Y', $script['lastmodifieddate']->sec) . "</td>";
    if ($script["isprivate"] == 1) {
        $private = 'private';
    } else {
        $private = 'public';
    }
    echo "<td class='colrow'> <input id='isprivate_" . $script['scriptid'] . "_" . $script["isprivate"] . "' type='button' class='{$private}' value=' {$private} &#9660;'></td>";
    echo "<td class='colrow delicon'>";
    echo CHtml::imageButton(Yii::app()->request->baseUrl . '/images/Black_Trash.png', array('id' => 'del_' . $script['scriptid'], 'href' => '#', 'title' => 'delete'));
    echo "</td>";
    echo "</tr>";
}
开发者ID:rgummadi,项目名称:ScriptOverflow,代码行数:34,代码来源:fav.php

示例13: or

# License, or (at your option) any later version.
#
# Alive Parish Software is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
?>

<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'findMatchForm', 'method' => 'GET'));
echo CHtml::label('', 'key');
echo CHtml::textField('key', '', array('id' => 'key'));
echo CHtml::link(CHtml::imageButton(Yii::app()->request->baseUrl . '/images/search.png'), '#', array('id' => 'find_match'));
$this->endWidget();
$this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $members, 'columns' => array(array('class' => 'CCheckBoxColumn', 'selectableRows' => 1, 'checkBoxHtmlOptions' => array('name' => 'person')), 'mid', 'fname', 'lname', 'dob', 'baptism_dt', 'profession', 'fathers_name', 'mothers_name')));
?>

    <div class="row buttons">
        <?php 
echo CHtml::submitButton('Select', array('id' => 'submitMatch'));
?>
    </div>                 

</div>
开发者ID:srinidg,项目名称:stbennos-parish,代码行数:30,代码来源:find_match.php

示例14: array

//$action = Yii::app()->createUrl('member/linkedin?action=new');
echo CHtml::beginForm('', 'post', array('id' => 'linkedinsubmitform'));
$imgsrc = Yii::app()->request->baseUrl . "/images/linkedin.png";
echo CHtml::imageButton($imgsrc, array('ajax' => array('type' => 'post', 'url' => Yii::app()->createUrl('ajax/islinkedinpresent'), 'dataType' => 'json', 'success' => 'js:function(j)
		{	
		 	if(j.ok)
			{
			$( "#linkedindialog").dialog({
			resizable: false,
			modal: true,
			buttons: {
				"Yes": function() {
					$(this).dialog( "close" );
					$("#linkedinsubmitform").attr("action","' . Yii::app()->createUrl('member/linkedin', array('action' => 'update')) . '");
					$("#linkedinsubmitform").submit();
				},
				"No": function() {
					$( this ).dialog( "close" );
				}
			}
		});
		$("#linkedindialog").dialog("open");
		}
			else
			 {  $("#linkedinsubmitform").attr("action","' . Yii::app()->createUrl('member/linkedin', array('action' => 'new')) . '");
			 	$("#linkedinsubmitform").submit();
			 }
		}')));
?>
</p>
<div id='linkedindialog' style='display:none' title='Loaded'> You already loaded your linked in profile.Do you want to update it. </div>
开发者ID:rgummadi,项目名称:ScriptOverflow,代码行数:31,代码来源:_importrightnav.php

示例15: array

		<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'guia-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true), 'enableAjaxValidation' => false));
?>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'hidvale');
?>
		<?php 
$datos1 = CHtml::listData(VwDespachogeneral::model()->findAll(), 'hidvale', 'numvale');
//echo $form->DropDownList($model,'hidvale',$datos1, array('empty'=>'--Seleccione un despacho--'))  ;
echo $form->DropDownList($model, 'hidvale', $datos1, array('ajax' => array('type' => 'POST', 'url' => CController::createUrl('guia/cargadespacho'), 'update' => '#zona'), 'empty' => '--Seleccione un despacho--'));
?>

	</div>
		<div class='botones'>
			<?php 
echo CHtml::imageButton(Yii::app()->getTheme()->baseUrl . '/img/siga.png', array('onClick' => 'Loading.show();Loading.hide(); ', 'value' => !$model->isNewRecord ? 'Crear' : 'Grabar'));
?>
		</div>

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


<div id="zona"></div>
开发者ID:hipogea,项目名称:zega,代码行数:29,代码来源:_form_despacho.php


注:本文中的CHtml::imageButton方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。