當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BsHtml::Button方法代碼示例

本文整理匯總了PHP中BsHtml::Button方法的典型用法代碼示例。如果您正苦於以下問題:PHP BsHtml::Button方法的具體用法?PHP BsHtml::Button怎麽用?PHP BsHtml::Button使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BsHtml的用法示例。


在下文中一共展示了BsHtml::Button方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

			<td><?php 
    echo $model['usu_fono'];
    ?>
</td>
			<td><?php 
    echo $model['usu_email'];
    ?>
</td>
			<td><?php 
    echo $model['car_nombre'];
    ?>
</td>
			<td><?php 
    echo $model['emp_nombre'];
    ?>
</td>
			<td>
				<?php 
    echo BsHtml::Button(BsHtml::icon(BsHtml::GLYPHICON_TRASH) . ' Eliminar', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'size' => BsHtml::BUTTON_SIZE_SMALL, 'data-target' => '#Eliminar' . $key, 'data-toggle' => 'modal'));
    $this->widget('bootstrap.widgets.BsModal', array('id' => 'Eliminar' . $key, 'header' => "¿Desea eliminar a '" . $model['usu_nombre'] . "' ?", 'content' => "<p>Se quitara de la lista " . $model['usu_nombre'] . "</p>", 'footer' => array(BsHtml::Button('Eliminar de todos modos', array('onclick' => "window.location.href='deleted?rut=" . $model['usu_rut'] . "'", 'color' => BsHtml::BUTTON_COLOR_PRIMARY)), BsHtml::button('Cancelar', array('data-dismiss' => 'modal')))));
    ?>
					<?php 
    echo BsHtml::Button(BsHtml::icon(BsHtml::GLYPHICON_EDIT) . ' Modificar', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'size' => BsHtml::BUTTON_SIZE_SMALL, 'onclick' => "window.location.href='update?rut=" . $model['usu_rut'] . "'"));
    ?>
			</td>
		</tr>
	<?php 
}
?>
	</tbody>
</table>
開發者ID:Aprende-php,項目名稱:workshop,代碼行數:31,代碼來源:admin.php

示例2: array

    ?>
		<tr>
			<td><?php 
    echo $key + 1;
    ?>
</td>
			<td><?php 
    echo $model->emp_nombre;
    ?>
</td>
			<td><?php 
    echo $model->lic_fecha_creacion;
    ?>
</td>
			<td><?php 
    echo $model->lic_usos;
    ?>
</td>
			<td>
				<?php 
    echo BsHtml::Button(BsHtml::icon(BsHtml::GLYPHICON_TRASH) . ' Eliminar', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'size' => BsHtml::BUTTON_SIZE_SMALL, 'data-target' => '#Eliminar' . $key, 'data-toggle' => 'modal'));
    $this->widget('bootstrap.widgets.BsModal', array('id' => 'Eliminar' . $key, 'header' => "¿Desea eliminar a '{$model->emp_nombre}' ?", 'content' => "<p>Se quitara de la lista {$model->emp_nombre}</p>", 'footer' => array(BsHtml::Button('Eliminar de todos modos', array('onclick' => "window.location.href='deleteLI/{$model->lic_id}'", 'color' => BsHtml::BUTTON_COLOR_PRIMARY)), BsHtml::button('Cancelar', array('data-dismiss' => 'modal')))));
    echo BsHtml::Button(BsHtml::icon(BsHtml::GLYPHICON_EDIT) . ' Modificar', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'size' => BsHtml::BUTTON_SIZE_SMALL, 'onclick' => "window.location.href='updateLI/{$model->lic_id}'"));
    ?>
			</td>
		</tr>
	<?php 
}
?>
	</tbody>
</table>
開發者ID:Aprende-php,項目名稱:workshop,代碼行數:31,代碼來源:adminLI.php


注:本文中的BsHtml::Button方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。