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


PHP decorate_with函数代码示例

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


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

示例1: decorate_with

<?php decorate_with(dirname(__FILE__).'/defaultLayout.php') ?>

<div class="sfTMessageContainer sfTLock">
  <?php echo image_tag('/sf/sf_default/images/icons/lock48.png', array('alt' => 'credentials required', 'class' => 'sfTMessageIcon', 'size' => '48x48')) ?>
  <div class="sfTMessageWrap">
    <h1>Credentials Required</h1>
    <h5>This page is in a restricted area.</h5>
  </div>
</div>
<dl class="sfTMessageInfo">
  <dt>You do not have the proper credentials to access this page</dt>
  <dd>Even though you are already logged in, this page requires special credentials that you currently don't have. </dd>

  <dt>How to access this page</dt>
  <dd>You must ask a site administrator to grant you some special credentials.</dd>

  <dt>What's next</dt>
  <dd>
    <ul class="sfTIconList">
      <li class="sfTLinkMessage"><a href="javascript:history.go(-1)">Back to previous page</a></li>
    </ul>
  </dd>
</dl>
开发者ID:nationalfield,项目名称:symfony,代码行数:23,代码来源:secureSuccess.php

示例2: decorate_with

<?php

decorate_with(sfLoader::getTemplatePath('default', 'defaultLayout.php'));
?>

<div class="sfTMessageContainer sfTAlert"> 
  <?php 
echo image_tag('/sf/sf_default/images/icons/tools48.png', array('alt' => 'website unavailable', 'class' => 'sfTMessageIcon', 'size' => '48x48'));
?>
  <div class="sfTMessageWrap">
    <h1>We're Sorry!<br />The Metadata Registry is briefly unavailable</h1>
    <h5>This website has been temporarily disabled. Please try again later.</h5>
  </div>
</div>
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:14,代码来源:unavailableSuccess.php

示例3: decorate_with

<?php

decorate_with(false);
$options = $jotag->getBadgeOptions();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<?php 
include_http_metas();
include_metas();
use_stylesheet('i18n/badgeStyle');
sfContext::getInstance()->getResponse()->removeStylesheet("jotag/reset");
sfContext::getInstance()->getResponse()->removeStylesheet("i18n/style");
?>

<title>Jotag</title>
<!--[if IE]>
	<script type="text/javascript" src="<?php 
echo sfConfig::get("app_general_base_path");
?>
js/jotag/iepngfix_tilebg.js"></script>
<![endif]-->
 
</head>

<body>

<?php 
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:viewError.badge.php

示例4: decorate_with

<?php

decorate_with(__DIR__ . '/defaultLayout.php');
?>

<div class="sfTMessageContainer sfTLock"> 
  <?php 
echo image_tag('/sf/sf_default/images/icons/lock48.png', array('alt' => 'credentials required', 'class' => 'sfTMessageIcon', 'size' => '48x48'));
?>
  <div class="sfTMessageWrap">
    <h1>Credentials Required</h1>
    <h5>This page is in a restricted area.</h5>
  </div>
</div>
<dl class="sfTMessageInfo">
  <dt>You do not have the proper credentials to access this page</dt>
  <dd>Even though you are already logged in, this page requires special credentials that you currently don't have. </dd>

  <dt>How to access this page</dt>
  <dd>You must ask a site administrator to grant you some special credentials.</dd>

  <dt>What's next</dt>
  <dd>
    <ul class="sfTIconList">
      <li class="sfTLinkMessage"><a href="javascript:history.go(-1)">Back to previous page</a></li>
    </ul>
  </dd>
</dl>
开发者ID:yankeemedia,项目名称:symfony1,代码行数:28,代码来源:secureSuccess.php

示例5: use_helper

<?php use_helper('I18N') ?>

<?php decorate_with('login') ?>

<?php use_stylesheets_for_form( $form ) ?>
<?php slot('sf_apply_login') ?>
<?php end_slot() ?>

<?php slot('title') ?>
  Passwort vergessen?
<?php end_slot() ?>

  <p class="lead">Passwort vergessen?</p>
  
  <p>Kein Problem. Gib hier bitte deinen Benutzernamen <em>oder</em> deine Email-Adresse ein.
    Du erh&auml;ltst umgehend eine Email mit weiteren Anweisungen.</p>
    
<form method="POST" action="<?php echo url_for('sfApply/resetRequest') ?>"
  name="sf_apply_reset_request" id="sf_apply_reset_request">
   
    <?php echo $form->renderHiddenFields() ?>

    <?php echo $form->renderGlobalErrors() ?>
    
    <?php echo $form['username_or_email']->renderRow( array( 'class' => 'input-block' )) ?>
    
    <button type="submit" class="btn btn-danger btn-block"><?php echo __("Password Zur&uuml;cksetzen") ?></button>

      <?php echo link_to(__('Abbrechen'), sfConfig::get('app_sfApplyPlugin_after', '@homepage'), array('class'=>'btn btn-block')) ?>

</form>
开发者ID:romankallweit,项目名称:swingmachine,代码行数:31,代码来源:resetRequestSuccess.php

示例6: decorate_with

<?php

/**
 * @var sfWebResponse $sf_response
 * @var DecisionForm $form
 * @var string $value
 */
$sf_response->setTitle('Wizard Step 1');
decorate_with('wizard');
?>

<?php 
slot('navigation_links');
?>
<a id="next" class="steps-navigation step-next step-next-disabled wizard-steps-navigation" href="javascript:void(0)"><i
  class="fa fa-arrow-circle-o-right"></i></a>
<?php 
end_slot();
?>

<div class="row">
  <div class="col-md-12">
    <div class="wizard">
      <div class="table-row">
        <div class="table-cell">
          <form id="wizard" class="form col-md-offset-2 col-md-8" role="form" action="<?php 
echo url_for('@wizard\\decisionSave');
?>
" method="post">
            <!--
            <style media="all">
开发者ID:sensorsix,项目名称:app,代码行数:31,代码来源:indexSuccess.php

示例7: decorate_with

// get this page's absolute url.
<?php 
$url = $sf_context::getInstance()->getController()->genUrl(array(), true);
?>

render date time with doctrine model
<?php 
echo $object->getDateTimeObject('created_at')->format('Y-m-d H:i:s');
?>

//---------------------------------//
// HTML
//---------------------------------//
change layout to 'newLayout.php' in the global template dir.
<?php 
decorate_with('newLayout');
?>

add a new 'web/css/mystyle.css' style sheet file.
<?php 
use_stylesheet('mystyle.css');
?>

add a new 'web/js/myjs.js' javascript file.
<?php 
use_javascript('myjs.css');
?>

link tag
<?php 
echo link_to('click here', '@routing_name?name=' . $name);
开发者ID:brtriver,项目名称:exSymfonyForBiginner,代码行数:31,代码来源:_sample.php

示例8: decorate_with

<?php

/**
 * Шаблон для вывода ошибок
 *
 * @param  int    $code
 * @param  string $message
 */
decorate_with('layout.xml.php');
$xmlCode = isset($code) ? sprintf(' code="%d"', $code) : '';
?>

<error<?php 
echo $xmlCode;
?>
><?php 
echo $message;
?>
</error>
开发者ID:ru-easyfinance,项目名称:EasyFinance,代码行数:19,代码来源:syncInError.xml.php

示例9: decorate_with

<?php

//use_helper('opDiary', 'Text')
?>

<?php 
decorate_with('layoutC');
?>

<?php 
/* {{{ bbsDetailBox */
?>
<div class="dparts bbsDetailBox"><div class="parts">
<div class="partsHeading"><h3><?php 
echo __('Thread');
?>
</h3>

<?php 
if ($bbs->getPrevious() || $bbs->getNext()) {
    ?>
<div class="block prevNextLinkLine">
<?php 
    if ($bbs->getPrevious()) {
        ?>
<p class="prev"><?php 
        echo link_to(__('Previous Thread'), 'bbs_show', $bbs->getPrevious());
        ?>
</p>
<?php 
    }
开发者ID:uzura8,项目名称:opSimpleBbsPlugin,代码行数:31,代码来源:showSuccess.php

示例10: decorate_with

<?php

decorate_with('layout_desktop');
开发者ID:laiello,项目名称:tesiscdfeg12,代码行数:3,代码来源:indexSuccess.php

示例11: decorate_with

 * (at your option) any later version.
 *
 * Access to Memory (AtoM) is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Access to Memory (AtoM).  If not, see <http://www.gnu.org/licenses/>.
 */
// Forked from upstream to hide login fields outside login url
//
?>

<?php 
decorate_with('layout_1col');
use_helper('Javascript');
?>

<?php 
slot('content');
?>

  <div class="row">

    <div class="offset4 span4">

      <div id="content">

        <?php 
if ('user' != $sf_request->module || 'login' != $sf_request->action) {
开发者ID:Surfrdan,项目名称:sfDariahShibUserPlugin,代码行数:31,代码来源:loginSuccess.php

示例12: decorate_with

<?php

decorate_with('print');
?>
<a href="javascript:window.print();" class="print-button"><?php 
echo image_tag('/images/print.gif', array('style' => 'z-index:1000; position: absolute'));
?>
</a>
<div class="landscape">
  <table class="students">
    <?php 
foreach ($students as $student) {
    ?>
      <?php 
    if (!$student) {
        continue;
    }
    ?>
      <tr>
        <?php 
    for ($i = 0; $i < 100; $i++) {
        ?>
          <td><?php 
        echo $student;
        ?>
</td>
        <?php 
    }
    ?>
      </tr>
    <?php 
开发者ID:nightingailm,项目名称:TinyTotsList,代码行数:31,代码来源:printSuccess.php

示例13: decorate_with

 * (at your option) any later version.
 *
 * Access to Memory (AtoM) is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Access to Memory (AtoM).  If not, see <http://www.gnu.org/licenses/>.
 */
// Forked from upstream to remove password handling
//
?>

<?php 
decorate_with('layout_1col.php');
use_helper('Javascript');
?>

<?php 
slot('title');
?>
  <h1><?php 
echo __('User %1%', array('%1%' => render_title($resource)));
?>
</h1>
<?php 
end_slot();
?>

<?php 
开发者ID:Surfrdan,项目名称:sfDariahShibUserPlugin,代码行数:31,代码来源:editSuccess.php

示例14: foreach

<?php

/**
 * @var $decision Decision
 * @var $sf_request sfWebRequest
 * @var $sf_response sfWebResponse
 * @var $upload_widget laWidgetFileUpload
 */
foreach ($upload_widget->getStylesheets() as $stylesheet => $media) {
    use_stylesheet($stylesheet);
}
foreach ($upload_widget->getJavaScripts() as $script) {
    use_javascript($script);
}
decorate_with('steps_layout');
$sf_response->setTitle('Collaborate');
$form = new RoleForm();
use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>

<?php 
slot('sidebar');
?>
  <?php 
include_partial("global/leftSidebar", array('decision_id' => $decision->getId()));
end_slot();
?>

<?php 
slot('app_name');
开发者ID:sensorsix,项目名称:app,代码行数:31,代码来源:indexSuccess.php

示例15: use_helper

<?php

use_helper('I18N');
decorate_with('layout_wellcome');
?>
<div id="signin_form">
    <div id="container">
        <div id="welcome_message">
            <h1>Bienvenid@s</h1>
            <p>A ti que eres un l&iacute;der de &eacute;xito, a ti cuyo discipulado es ejemplar, a ti esta dedicada esta p&aacute;gina</p>
        </div>
        <form action="<?php 
echo url_for('@sf_guard_signin');
?>
" method="post">
            <h1 style="text-align: center;">Iniciar Sesi&oacute;n</h1>
            <table>
                <tbody>
                    <?php 
echo $form;
?>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="2" style="text-align: center;">
                            <input type="submit" value="<?php 
echo __('Signin', null, 'sf_guard');
?>
" />
                            <?php 
$routes = $sf_context->getRouting()->getRoutes();
开发者ID:laiello,项目名称:tesiscdfeg12,代码行数:31,代码来源:_signin_form.php


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