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


PHP template_set函数代码示例

本文整理汇总了PHP中template_set函数的典型用法代码示例。如果您正苦于以下问题:PHP template_set函数的具体用法?PHP template_set怎么用?PHP template_set使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: isset

                                    case 4:
                                        $output .= "<h1><font class=\"error\">{$lang_edit['error_updating']}</font></h1>";
                                        break;
                                    default:
                                        //no error
                                        $output .= "<h1>Credits Panel</h1>";
                                }
                                $output .= "</div>";
                                $action = isset($_GET['action']) ? $_GET['action'] : NULL;
                                switch ($action) {
                                    case "doedit_user":
                                        doedit_user();
                                        break;
                                    case "lang_set":
                                        lang_set();
                                        break;
                                    case "template_set":
                                        template_set();
                                        break;
                                    default:
                                        edit_user();
                                }
                                require_once "footer.php";
                            }
                        }
                    }
                }
            }
        }
    }
}
开发者ID:TheProjecter,项目名称:mmfm,代码行数:31,代码来源:credit.php

示例2: template_set

<?php

template_set('title', 'Editar articulo');
?>
<div class="container-fluid " style="padding-top: 20px">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <?php 
echo validation_errors();
?>
                    <?php 
echo form_open('usuarios/editar/' . $id);
?>
                    <div class="form-group">
                        <?php 
echo form_label('Codigo:', 'codigo');
?>
                        <?php 
echo form_input('codigo', set_value('codigo', $codigo, FALSE), 'id="codigo" class="form-control"');
?>
                    </div>
                    <div class="form-group">
                        <?php 
echo form_label('Nombre:', 'nombre');
?>
                        <?php 
echo form_input('nombre', set_value('nombre', $nombre, FALSE), 'id="nombre" class="form-control"');
?>
                    </div>
开发者ID:seralcrey,项目名称:code,代码行数:31,代码来源:editar.php

示例3: template_set

function template_set(&$html, $varname, $varvalue, $varname2 = "", $varvalue2 = "", $varname3 = "", $varvalue3 = "", $varname4 = "", $varvalue4 = "")
{
    if (!$varname) {
        return;
    }
    $html = str_replace('{!' . $varname . '}', $varvalue, $html);
    $html = str_replace('$' . $varname, $varvalue, $html);
    if ($varname2) {
        template_set($html, $varname2, $varvalue2);
    }
    if ($varname3) {
        template_set($html, $varname3, $varvalue3);
    }
    if ($varname4) {
        template_set($html, $varname4, $varvalue4);
    }
}
开发者ID:NazarK,项目名称:sqp,代码行数:17,代码来源:bios.php

示例4: template_set

<?php

template_set('title', 'Editar un juegos');
?>

<?php 
echo miga_pan();
?>

<div class="container-fluid" style="padding-top:20px">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h3 class="panel-title">Editar artículo</h3>
        </div>
        <div class="panel-body">
          <?php 
if (!empty(error_array())) {
    ?>
            <div class="alert alert-danger" role="alert">
              <?php 
    echo validation_errors();
    ?>
            </div>
          <?php 
}
?>
          <?php 
echo form_open("backend/juegos/editar/{$id}");
?>
开发者ID:ricpelo,项目名称:steam,代码行数:31,代码来源:editar.php

示例5: template_set

<?php

template_set('title', 'Recordar contraseña');
?>
<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title">Login</h3>
      </div>
      <div class="panel-body">
        <?php 
if (count(error_array()) > 0) {
    ?>
          <div class="alert alert-danger" role="alert">
            <?php 
    echo validation_errors();
    ?>
          </div>
        <?php 
}
?>
        <?php 
echo form_open('usuarios/recordar');
?>
          <div class="form-group">
            <?php 
echo form_label('Nick:', 'nick');
?>
            <?php 
echo form_input('nick', set_value('nick', '', FALSE), 'id="nick" class="form-control"');
开发者ID:ricpelo,项目名称:code,代码行数:31,代码来源:recordar.php

示例6: template_set

<?php

template_set('title', 'Insertar un usuario');
?>

<?php 
echo miga_pan();
?>

<div class="row">
  <div class="col-md-8 col-md-offset-2">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title">Insertar usuario</h3>
      </div>
      <div class="panel-body">
        <?php 
if (count(error_array()) > 0) {
    ?>
          <div class="alert alert-danger" role="alert">
            <?php 
    echo validation_errors();
    ?>
          </div>
        <?php 
}
?>
        <?php 
echo form_open('usuarios/insertar');
?>
          <div class="form-group">
开发者ID:ricpelo,项目名称:steam,代码行数:31,代码来源:insertar.php

示例7: template_set

<?php

template_set('title', 'Perfil');
?>

<?php 
echo miga_pan();
?>

<div class="container-fluid" style="padding-top:20px">
  <div class="row">
    <div class="col-md-4 col-md-offset-4">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h3 class="panel-title">Perfil</h3>
        </div>
        <div class="panel-body">
          <?php 
if (!empty(error_array())) {
    ?>
            <div class="alert alert-danger" role="alert">
              <?php 
    echo validation_errors();
    ?>
            </div>
          <?php 
}
?>
          <?php 
echo form_open('usuarios/perfil/' . $id);
?>
开发者ID:ricpelo,项目名称:steam,代码行数:31,代码来源:perfil.php

示例8: template_set

<?php

template_set('title', 'Regenerar contraseña');
?>
<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title">Regenerar contraseña</h3>
      </div>
      <div class="panel-body">
        <?php 
if (count(error_array()) > 0) {
    ?>
          <div class="alert alert-danger" role="alert">
            <?php 
    echo validation_errors();
    ?>
          </div>
        <?php 
}
?>
        <?php 
echo form_open("usuarios/regenerar/{$usuario_id}/{$token}");
?>
          <div class="form-group">
            <?php 
echo form_label('Contraseña:', 'password');
?>
            <?php 
echo form_password('password', '', 'id="password" class="form-control"');
开发者ID:ricpelo,项目名称:code,代码行数:31,代码来源:regenerar.php

示例9: template_set

<?php

template_set('title', 'Ficha del juego');
?>

<?php 
echo miga_pan();
?>

<div class="container-fluid" style="padding-top: 20px">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">
      <div class="panel panel-custom">
        <div class="panel-body">
            <div class="ficha">
                <div>
                    <td><?php 
echo img('images/juegos/' . $juego['id'] . '.jpg');
?>
</td>
                </div>
                <div>
                    <h1><?php 
echo $juego['nombre'];
?>
</h1>
                    <h2><?php 
echo $juego['precio'];
?>
€</h2>
                    <p><?php 
开发者ID:ricpelo,项目名称:steam,代码行数:31,代码来源:ficha.php

示例10: template_set

<?php

template_set('title', 'Insertar un artículo');
echo validation_errors();
echo form_open('articulos/insertar');
?>
    <?php 
echo form_label('Código:', 'codigo');
?>
    <?php 
echo form_input('codigo', set_value('codigo', '', FALSE), 'id="codigo"');
?>
<br/>
    <?php 
echo form_label('Descripción:', 'descripcion');
?>
    <?php 
echo form_input('descripcion', set_value('descripcion', '', FALSE), 'id="descripcion"');
?>
<br/>
    <?php 
echo form_label('Precio:', 'precio');
?>
    <?php 
echo form_input('precio', set_value('precio', '', FALSE), 'id="precio"');
?>
<br/>
    <?php 
echo form_label('Existencias:', 'existencias');
?>
    <?php 
开发者ID:ricpelo,项目名称:code,代码行数:31,代码来源:insertar.php

示例11: template_set

<?php

template_set('title', 'Listado de articulo');
?>
<div class="container-fluid ">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <table class="table table-bordered table-hover table-condensed ">
                <th>ID</th>
                <th>Código</th>
                <th>Nombre</th>
                <th colspan="2">Acciones</th>
                <?php 
foreach ($filas as $fila) {
    ?>
                    <tr>
                        <td><?php 
    echo $fila['id'];
    ?>
</td>
                        <td><?php 
    echo $fila['codigo'];
    ?>
</td>
                        <td><?php 
    echo $fila['nombre'];
    ?>
</td>
                        <td><?php 
    echo anchor('/articulos/borrar/' . $fila['id'], "Borrar", 'class="btn btn-danger btn-xs" role="button" ');
    ?>
开发者ID:seralcrey,项目名称:code,代码行数:31,代码来源:index.php

示例12: template_set

<?php

template_set('title', 'Registro');
?>

<?php 
echo miga_pan();
?>

<div class="container-fluid" style="padding-top:20px">
  <div class="row">
    <div class="col-md-4 col-md-offset-4">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h3 class="panel-title">Registro</h3>
        </div>
        <div class="panel-body">
          <?php 
if (!empty(error_array())) {
    ?>
            <div class="alert alert-danger" role="alert">
              <?php 
    echo validation_errors();
    ?>
            </div>
          <?php 
}
?>
          <?php 
echo form_open('usuarios/registrar');
?>
开发者ID:ricpelo,项目名称:steam,代码行数:31,代码来源:registrar.php

示例13: template_set

<?php

template_set('title', 'Carrito');
?>

<?php 
echo miga_pan();
?>

<div class="container-fluid" style="padding-top: 20px">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h3 class="panel-title">Carrito de <?php 
echo $usuario['nick'];
?>
</h3>
        </div>
        <div class="panel-body">
            <div class="ficha">
                <div class="lista">
                    <?php 
if ($juegos === FALSE) {
    ?>
                        <p>
                            No hay juegos comprados.
                        </p>
                    <?php 
} else {
    ?>
开发者ID:ricpelo,项目名称:steam,代码行数:31,代码来源:comprar.php

示例14: template_set

<?php

template_set('title', 'Subir');
?>

<?php 
echo miga_pan();
?>

<div class="container-fluid" style="padding-top:20px">
  <div class="row">
    <div class="col-md-4 col-md-offset-4">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h3 class="panel-title">Subir Foto</h3>
        </div>
        <div class="panel-body">
          <?php 
if (!empty($error)) {
    ?>
            <div class="alert alert-danger" role="alert">
              <?php 
    echo $error;
    ?>
            </div>
          <?php 
}
?>
          <div class="alert alert-success" role="alert">

          </div>
开发者ID:ricpelo,项目名称:steam,代码行数:31,代码来源:subida.php

示例15: template_set

<?php

template_set('title', 'Recordar');
?>

<?php 
echo miga_pan();
?>

<div class="container-fluid" style="padding-top:20px">
  <div class="row">
    <div class="col-md-4 col-md-offset-4">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h3 class="panel-title">Login</h3>
        </div>
        <div class="panel-body">
          <?php 
if (!empty(error_array())) {
    ?>
            <div class="alert alert-danger" role="alert">
              <?php 
    echo validation_errors();
    ?>
            </div>
          <?php 
}
?>
          <?php 
echo form_open('usuarios/recordar');
?>
开发者ID:ricpelo,项目名称:steam,代码行数:31,代码来源:recordar.php


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