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


PHP Toolbar::addTitle方法代码示例

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


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

示例1:

?>

<?php 
$currentUser = Registry::getUser();
?>

<?php 
//Toolbar
if ($user->id) {
    $subtitle = "Editar usuario";
    $title = "Guardar";
} else {
    $subtitle = "Nuevo usuario";
    $title = "Crear";
}
Toolbar::addTitle("Usuarios", "glyphicon-user", $subtitle);
if ($user->id) {
    //Delete button
    Toolbar::addButton(array("title" => "Eliminar", "app" => "users", "action" => "delete", "class" => "danger", "spanClass" => "remove", "confirmation" => "¿Deseas realmente eliminar este usuario?", "noAjax" => true));
}
//Cancel button
Toolbar::addButton(array("title" => "Cancelar", "link" => Url::site("users"), "class" => "primary", "spanClass" => "chevron-left"));
//Save button
Toolbar::addButton(array("title" => $title, "app" => "users", "action" => "save", "class" => "success", "spanClass" => "ok"));
Toolbar::render();
?>

<form method="post" name="mainForm" id="mainForm" action="<?php 
echo Url::site();
?>
" class="form-horizontal ajax" role="form" autocomplete="off">
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:edit.view.php

示例2: defined

<?php

defined('_EXE') or die('Restricted access');
?>

<?php 
Toolbar::addTitle("Parrilla", "glyphicon-star");
//Export button
Toolbar::addButton(array("title" => "Exportar", "app" => "parrilla", "action" => "export", "class" => "primary", "spanClass" => "share-alt", "noAjax" => true));
Toolbar::render();
?>

<form method="post" name="mainForm" id="mainForm" action="<?php 
echo Url::site();
?>
" class="form-horizontal" role="form" autocomplete="off">
    <input type="hidden" name="app" id="app" value="parrilla">
    <input type="hidden" name="action" id="action" value="export">

    <div class="form-group">
        <label for="fecha" class="col-sm-2 control-label">
            Fecha
        </label>
        <div class="col-sm-3">
            <input type="text" name="fecha" class="form-control" id="fecha" value="<?php 
echo date("d-m-Y");
?>
" placeholder="Fecha">
        </div>
        <div class="col-sm-3">
            <input type="text" name="hour" class="form-control hourMask" id="hour" value="07:00" placeholder="Hora">
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:parrilla.view.php

示例3: defined

<?php

defined('_EXE') or die('Restricted access');
?>

<?php 
//Toolbar
Toolbar::addTitle("Moscas", "glyphicon-star", "Listar");
//New button
Toolbar::addButton(array("title" => "Nuevo", "app" => "moscas", "action" => "edit", "class" => "success", "spanClass" => "plus", "noAjax" => true));
Toolbar::render();
?>

<div class="main">
    <form method="post" action="<?php 
echo Url::site();
?>
" id="mainForm" name="mainForm" class="form-inline" role="form">
        <input type="hidden" name="app" id="app" value="moscas">
        <input type="hidden" name="action" id="action" value="">
        <!-- Results -->
        <?php 
if (count($results)) {
    ?>
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th><?php 
    echo Html::sortableLink("id", "Id");
    ?>
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:list.view.php

示例4: defined

<?php

defined('_EXE') or die('Restricted access');
?>

<?php 
//Toolbar
Toolbar::addTitle("Entradas", "glyphicon-star", "Listar");
//New button
Toolbar::addButton(array("title" => "Nueva", "app" => "entradas", "action" => "edit", "class" => "success", "spanClass" => "plus", "noAjax" => true));
Toolbar::render();
?>

<div class="main">
    <form method="post" action="<?php 
echo Url::site();
?>
" id="mainForm" name="mainForm" class="form-inline" role="form">
        <input type="hidden" name="fresh" value="true">
        <input type="hidden" name="app" id="app" value="entradas">
        <input type="hidden" name="action" id="action" value="">
        <!-- Filters -->
        <div class="row filters">
            <!-- Search -->
            <div class="col-sm-3 col-xs-6 filter">
                <?php 
echo Html::search();
?>
            </div>
            <!-- Vinculado -->
            <div class="col-sm-3 col-xs-6 filter">
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:list.view.php

示例5: defined

<?php

defined('_EXE') or die('Restricted access');
?>

<?php 
//Toolbar
Toolbar::addTitle("Usuarios", "glyphicon-user", "Listar");
//New button
Toolbar::addButton(array("title" => "Nuevo", "app" => "users", "action" => "edit", "class" => "success", "spanClass" => "plus", "noAjax" => true));
Toolbar::render();
?>

<div class="main">
    <form method="post" action="<?php 
echo Url::site();
?>
" id="mainForm" name="mainForm" class="form-inline" role="form">
        <input type="hidden" name="app" id="app" value="users">
        <input type="hidden" name="action" id="action" value="">
        <!-- Filters -->
        <div class="row filters">
            <!-- Search -->
            <div class="col-sm-3 col-xs-6 filter">
                <?php 
echo HTML::search();
?>
            </div>
            <!-- Estado -->
            <div class="col-sm-3 col-xs-6 col-md-2 filter">
                <?php 
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:list.view.php

示例6: defined

<?php

defined('_EXE') or die('Restricted access');
?>

<?php 
//Toolbar
if ($mosca->id) {
    $subtitle = "Editar mosca";
    $title = "Guardar";
} else {
    $subtitle = "Nuevo mosca";
    $title = "Crear";
}
Toolbar::addTitle("Moscas", "glyphicon-star", $subtitle);
if ($mosca->id) {
    //Delete button
    Toolbar::addButton(array("title" => "Eliminar", "app" => "moscas", "action" => "delete", "class" => "danger", "spanClass" => "remove", "confirmation" => "¿Deseas realmente eliminar esta mosca?", "noAjax" => true));
}
//Cancel button
Toolbar::addButton(array("title" => "Cancelar", "link" => Url::site("moscas"), "class" => "primary", "spanClass" => "chevron-left"));
//Save button
Toolbar::addButton(array("title" => $title, "app" => "moscas", "action" => "save", "class" => "success", "spanClass" => "ok"));
Toolbar::render();
?>

<form method="post" name="mainForm" id="mainForm" action="<?php 
echo Url::site();
?>
" class="form-horizontal ajax" role="form" autocomplete="off">
    <input type="hidden" name="app" id="app" value="moscas">
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:edit.view.php

示例7: defined

<?php

defined('_EXE') or die('Restricted access');
?>

<?php 
//Toolbar
if ($tipo->id) {
    $subtitle = "Editar tipo";
    $title = "Guardar";
} else {
    $subtitle = "Nuevo tipo";
    $title = "Crear";
}
Toolbar::addTitle("Tipos de entrada", "glyphicon-star", $subtitle);
if ($tipo->id) {
    //Delete button
    Toolbar::addButton(array("title" => "Eliminar", "app" => "tipos", "action" => "delete", "class" => "danger", "spanClass" => "remove", "confirmation" => "¿Deseas realmente eliminar este tipo de entrada?", "noAjax" => true));
}
//Cancel button
Toolbar::addButton(array("title" => "Cancelar", "link" => Url::site("tipos"), "class" => "primary", "spanClass" => "chevron-left"));
//Save button
Toolbar::addButton(array("title" => $title, "app" => "tipos", "action" => "save", "class" => "success", "spanClass" => "ok"));
Toolbar::render();
?>

<form method="post" name="mainForm" id="mainForm" action="<?php 
echo Url::site();
?>
" class="form-horizontal ajax" role="form" autocomplete="off">
    <input type="hidden" name="app" id="app" value="tipos">
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:edit.view.php

示例8: defined

<?php

defined('_EXE') or die('Restricted access');
?>

<?php 
//Toolbar
if ($entrada->id) {
    $subtitle = "Editar entrada";
    $title = "Guardar";
} else {
    $subtitle = "Nueva entrada";
    $title = "Crear";
}
Toolbar::addTitle("Entradas", "glyphicon-star", $subtitle);
if ($entrada->id) {
    //Delete button
    Toolbar::addButton(array("title" => "Eliminar", "app" => "entradas", "action" => "delete", "class" => "danger", "spanClass" => "remove", "confirmation" => "¿Deseas realmente eliminar esta entrada?", "noAjax" => true));
}
//Cancel button
Toolbar::addButton(array("title" => "Cancelar", "link" => Url::site("entradas"), "class" => "primary", "spanClass" => "chevron-left"));
//Save button
Toolbar::addButton(array("title" => $title, "app" => "entradas", "action" => "save", "class" => "success", "spanClass" => "ok"));
//Save & new button
Toolbar::addButton(array("title" => $title . " y nueva", "app" => "entradas", "action" => "saveNew", "class" => "success", "spanClass" => "ok"));
Toolbar::render();
?>

<form method="post" name="mainForm" id="mainForm" action="<?php 
echo Url::site();
?>
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:edit.view.php


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