当前位置: 首页>>代码示例>>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;未经允许,请勿转载。