本文整理汇总了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>
示例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>