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


PHP smarty_modifier_capitalize函数代码示例

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


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

示例1: content_56689b325bfb56_72647711

    function content_56689b325bfb56_72647711($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_truncate')) {
            require_once '/home/ubuntu/workspace/resources/library/external/smarty/libs/plugins/modifier.truncate.php';
        }
        if (!is_callable('smarty_modifier_capitalize')) {
            require_once '/home/ubuntu/workspace/resources/library/external/smarty/libs/plugins/modifier.capitalize.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '193598146556689b32596490_76979314';
        ?>
<div class="card deck-card">
    <div class="deck-icon">
        <i class="fa fa-4x <?php 
        echo $_smarty_tpl->tpl_vars['icon']->value;
        ?>
"></i>
    </div>
    <div class="deck-title">
        <?php 
        echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
        ?>

    </div>
    <div class="deck-description">
        <?php 
        echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['description']->value, 256);
        ?>

    </div>
    <div class="deck_dropdown dropdown">
        <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
            Deck Action
            <i class="fa fa-caret-down"></i>
        </button>
        <ul class="dropdown-menu">
            <li><a href="view_deck.php?deckid=<?php 
        echo $_smarty_tpl->tpl_vars['deckid']->value;
        ?>
">View Deck</a></li>
            <?php 
        if ($_smarty_tpl->tpl_vars['userid']->value == $_SESSION['userid']) {
            ?>
            <li><a href="edit_deck.php?deckid=<?php 
            echo $_smarty_tpl->tpl_vars['deckid']->value;
            ?>
">Edit Deck</a></li>
            <?php 
        }
        ?>
            <li><a href="browse_decks.php?userid=<?php 
        echo $_smarty_tpl->tpl_vars['userid']->value;
        ?>
">Browse <?php 
        echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['usercopename']->value);
        ?>
's Decks</a></li>
        </ul>
    </div>
</div><?php 
    }
开发者ID:PercyODI,项目名称:copeappgames,代码行数:60,代码来源:69e329f43f4a1d8934699a941cd8a6565db1191d_0.file.deck_card.tpl.php

示例2: content_5661951d6a7e26_87694070

    function content_5661951d6a7e26_87694070($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_capitalize')) {
            require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.capitalize.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '271525661951d669619_76155043';
        ?>
    <?php 
        echo $_smarty_tpl->getSubTemplate("3/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('title' => 'foo'), 0);
        ?>


    User Information:<p>

        Name: <?php 
        echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['name']->value);
        ?>
<br>
        Address: <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['address']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
<br>

    </p>

    <?php 
        echo $_smarty_tpl->getSubTemplate("3/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
    }
开发者ID:SUDIP2222,项目名称:Smarty-Crash-Course,代码行数:28,代码来源:4d2622f512907a93bdeb5821bf5d66e9c59fee39_0.file.index.tpl.php

示例3: content_54d8bfe5aa5267_91162654

    function content_54d8bfe5aa5267_91162654($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_regex_replace')) {
            include '/home/mariposa/Desktop/webprojects/asterisk/app/lib/Smarty/plugins/modifier.regex_replace.php';
        }
        if (!is_callable('smarty_modifier_capitalize')) {
            include '/home/mariposa/Desktop/webprojects/asterisk/app/lib/Smarty/plugins/modifier.capitalize.php';
        }
        ?>
<nav class="navbar navbar-inverse">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Brand</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">

        <?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['navbar']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
            $_smarty_tpl->tpl_vars['item']->_loop = true;
            ?>
            <li><a href="http://127.0.0.1/<?php 
            echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['item']->value, "/\\.tpl/", '');
            ?>
"><?php 
            echo smarty_modifier_regex_replace(smarty_modifier_capitalize($_smarty_tpl->tpl_vars['item']->value), "/\\.Tpl/", '');
            ?>
</a></li>
        <?php 
        }
        ?>

      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav><?php 
    }
开发者ID:pinheirorb,项目名称:mvc,代码行数:52,代码来源:5b87eb091821b21a2c99f3eeb22df67776042ff3.file.navbar.tpl.php

示例4: content_5661e957cdad23_25722410

    function content_5661e957cdad23_25722410($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_capitalize')) {
            require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.capitalize.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '145415661e957c13972_48379557';
        echo $_smarty_tpl->tpl_vars['articleTitle']->value;
        ?>

<?php 
        echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['articleTitle']->value);
        ?>

<?php 
        echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['articleTitle']->value, true);
    }
开发者ID:SUDIP2222,项目名称:Smarty-Basic,代码行数:16,代码来源:7f20e36b33731c1443783c6f9a8fd2bbf3ec7103_0.file.index.tpl.php

示例5: content_56618bc47bdbe5_56508030

    function content_56618bc47bdbe5_56508030($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_capitalize')) {
            require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.capitalize.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.date_format.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '1339756618bc477b556_37012770';
        ?>
<html>

<head>
    <title>Info</title>
</head>

<body>
         <pre>
             User Information :

             Name : <?php 
        echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['name']->value);
        ?>

             Address : <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['address']->value, ENT_QUOTES, 'UTF-8', true);
        ?>

             Date : <?php 
        echo smarty_modifier_date_format(time(), "%b %e, %Y");
        ?>


         </pre>
</body>

</html><?php 
    }
开发者ID:SUDIP2222,项目名称:Smarty-Crash-Course,代码行数:38,代码来源:4566eb2cdf8f5d79925aecd2fb3f65451993b49e_0.file.index.tpl.php

示例6: is_array

                <td class="default"><?php 
        echo $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_call_from_lname'];
        ?>
, <?php 
        echo $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_call_from_fname'];
        ?>
</td>
                <td class="default"><?php 
        echo $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_call_to_lname'];
        ?>
, <?php 
        echo $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_call_to_fname'];
        ?>
</td>
                <td class="default"><?php 
        echo is_array($_tmp = $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_type']) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp);
        ?>
</td>
                <td class="default" nowrap><?php 
        echo $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phc_title'];
        ?>
</td>
                <td class="default" nowrap><?php 
        echo $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_phone_number'];
        ?>
 (<?php 
        echo $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_phone_type'];
        ?>
)</td>
              </tr>
              <?php 
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:%%666^%%6668270^phone_support.tpl.html.php

示例7: capitalize

 public static function capitalize($str, $lc_rest = true)
 {
     TemplateEngine::getInstance()->loadPlugin('smarty_modifier_capitalize');
     return smarty_modifier_capitalize($str, false, $lc_rest);
 }
开发者ID:logbon72,项目名称:pebble-movies-server,代码行数:5,代码来源:Utilities.php

示例8: content_56453e89398133_84829262

    function content_56453e89398133_84829262($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_capitalize')) {
            require_once '/var/www/html/smarty/libs/plugins/modifier.capitalize.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            require_once '/var/www/html/smarty/libs/plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_function_html_select_date')) {
            require_once '/var/www/html/smarty/libs/plugins/function.html_select_date.php';
        }
        if (!is_callable('smarty_function_html_select_time')) {
            require_once '/var/www/html/smarty/libs/plugins/function.html_select_time.php';
        }
        if (!is_callable('smarty_function_html_options')) {
            require_once '/var/www/html/smarty/libs/plugins/function.html_options.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '141063041656453e88eecc04_08919544';
        Smarty_Internal_Extension_Config::configLoad($_smarty_tpl, "test.conf", "setup", 'local');
        echo $_smarty_tpl->getSubTemplate("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, $_smarty_tpl->cache_lifetime, array('title' => 'foo'), 0);
        ?>


<PRE>


    <?php 
        if ($_smarty_tpl->getConfigVariable('bold')) {
            ?>
<b><?php 
        }
        ?>
        
        Title: <?php 
        echo smarty_modifier_capitalize($_smarty_tpl->getConfigVariable('title'));
        ?>

        <?php 
        if ($_smarty_tpl->getConfigVariable('bold')) {
            ?>
</b><?php 
        }
        ?>

    The current date and time is <?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d %H:%M:%S");
        ?>


    The value of global assigned variable $SCRIPT_NAME is <?php 
        echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value;
        ?>


    Example of accessing server environment variable SERVER_NAME: <?php 
        echo $_SERVER['SERVER_NAME'];
        ?>


    The value of {$Name} is <b><?php 
        echo '/*%%SmartyNocache:141063041656453e88eecc04_08919544%%*/<?php echo $_smarty_tpl->tpl_vars[\'Name\']->value;?>
/*/%%SmartyNocache:141063041656453e88eecc04_08919544%%*/';
        ?>
</b>

variable modifier example of {$Name|upper}

<b><?php 
        echo '/*%%SmartyNocache:141063041656453e88eecc04_08919544%%*/<?php echo mb_strtoupper($_smarty_tpl->tpl_vars[\'Name\']->value, \'UTF-8\');?>
/*/%%SmartyNocache:141063041656453e88eecc04_08919544%%*/';
        ?>
</b>


An example of a section loop:

    <?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['outer'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['name'] = 'outer';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['FirstName']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step'];
//.........这里部分代码省略.........
开发者ID:HarukiHashimoto,项目名称:htdocs,代码行数:101,代码来源:7a9dcff75315c538ac24344dee4c6dbfdf1725fc_0.file.index.tpl.cache.php

示例9: is_array

    $this->_sections['user']['total'] = 0;
}
if ($this->_sections['user']['show']) {
    for ($this->_sections['user']['index'] = $this->_sections['user']['start'], $this->_sections['user']['iteration'] = 1; $this->_sections['user']['iteration'] <= $this->_sections['user']['total']; $this->_sections['user']['index'] += $this->_sections['user']['step'], $this->_sections['user']['iteration']++) {
        $this->_sections['user']['rownum'] = $this->_sections['user']['iteration'];
        $this->_sections['user']['index_prev'] = $this->_sections['user']['index'] - $this->_sections['user']['step'];
        $this->_sections['user']['index_next'] = $this->_sections['user']['index'] + $this->_sections['user']['step'];
        $this->_sections['user']['first'] = $this->_sections['user']['iteration'] == 1;
        $this->_sections['user']['last'] = $this->_sections['user']['iteration'] == $this->_sections['user']['total'];
        ?>
        <tr>
            <td class="lb"><label for="<?php 
        echo $this->_tpl_vars['userInfo'][$this->_sections['user']['index']]['name'];
        ?>
"><?php 
        echo is_array($_tmp = $this->_tpl_vars['userInfo'][$this->_sections['user']['index']]['name']) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp);
        ?>
</label></td>
            <td><input type="<?php 
        echo $this->_tpl_vars['userInfo'][$this->_sections['user']['index']]['type'];
        ?>
" name="<?php 
        echo $this->_tpl_vars['userInfo'][$this->_sections['user']['index']]['name'];
        ?>
" value="<?php 
        echo $this->_tpl_vars['userInfo'][$this->_sections['user']['index']]['value'];
        ?>
" <?php 
        if ($this->_tpl_vars['userInfo'][$this->_sections['user']['index']]['name'] == 'username') {
            ?>
disabled="disabled"<?php 
开发者ID:sandin,项目名称:iMemo,代码行数:31,代码来源:%%0F^0F3^0F32EC2E%%index.tpl.php

示例10: content_5023bf71030c29_13757819

    function content_5023bf71030c29_13757819($_smarty_tpl)
    {
        if (!is_callable('smarty_function_validate')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.validate.php';
        }
        if (!is_callable('smarty_modifier_capitalize')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\modifier.capitalize.php';
        }
        echo $_smarty_tpl->getSubTemplate("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

<div id="content">
    <div class="clear">
        <div class="content-corner clear"><span><span></span></span></div>
        <div class="content">
            <div class="clear">
                <!--right-->
                <!--left-->
                <div id="left">
                    <div class="left-indent">
                        <div class="wrapper-box module_menu">
                            <div class="boxTitle">
                                <h2>m-Health Administrator Menu</h2>
                            </div>
                            <div class="boxIndent">
                                <div class="clear">
                                    <ul class="menu">

                                        <li class="item1"><a href="dashboard.php"><span>Dashboard</span></a></li>
                                        <li class="item1"><a href="user.php"><span>User Profile</span></a></li>
                                        <li class="item1"><a href="logout.php"><span>Log Out</span></a></li>

                                    </ul>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="container">
                    <div class="clear">
                        <table class="blog" cellpadding="0" cellspacing="0">
                            <tr>
                                <td valign="top"><table width="100%"  cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td valign="top" width="100%" class="article_column">        <div class="article-title">
                                                    <table class="contentpaneopen">
                                                        <tr>
                                                            <td class="contentheading" width="100%">
                                                                <div class="article-title-text">
                                                                    <?php 
        echo $_smarty_tpl->tpl_vars['topic']->value;
        ?>

                                                                </div>

                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>

                                                <div class="article-text-indent">
                                                    <div class="clear">
                                                        
                                                                    </div>
                

<?php 
        echo $_smarty_tpl->tpl_vars['view']->value;
        ?>
 <br/>
<style type="text/css">
    .desc { display: none; }
    .opt { padding: 10px;}
</style>
<a href="report.php"><strong> Back To Report</strong> </a>
<br>
<form id="form_name" action="" name="form_name" method="post">
    <ul>
        <li>
            <label for="name">Name:</label>
            <?php 
        echo $_smarty_tpl->tpl_vars['data']->value['name'];
        ?>

        </li>
        <li>
            <label for="name">Registration ID:</label>
            <?php 
        echo $_smarty_tpl->tpl_vars['data']->value['regid'];
        ?>

        </li>
        <li>
            <label for="name">E-mail:</label>
           <?php 
        echo $_smarty_tpl->tpl_vars['data']->value['email'];
        ?>


//.........这里部分代码省略.........
开发者ID:hiroyalty,项目名称:mhealth,代码行数:101,代码来源:4049c595b01b9287a77695f80d2436fd0dab6bc0.file.write_report.tpl.php

示例11: settype

        <?php 
    $_from = $this->_tpl_vars['mymenu']['primary_links'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']) {
            ?>
            <?php 
            if ($this->_tpl_vars['key'] > 0) {
                ?>
|<?php 
            }
            ?>
 &nbsp; <a href="<?php 
            echo $this->_tpl_vars['value']['path'];
            ?>
"><?php 
            echo is_array($_tmp = $this->_tpl_vars['value']['title']) ? $this->_run_mod_handler('capitalize', true, $_tmp, true) : smarty_modifier_capitalize($_tmp, true);
            ?>
</a>
        <?php 
        }
    }
    unset($_from);
    ?>
    </div>
    <?php 
}
?>
</div>
开发者ID:emmank,项目名称:cardiac,代码行数:31,代码来源:%%F7^F7F^F7F34188%%header.tpl.php

示例12: content_5622f7db26e879_53694960

    function content_5622f7db26e879_53694960($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_truncate')) {
            include 'D:\\Documents\\Desktop\\Code\\PSD1507\\9_Smarty\\day1017\\smarty\\plugins\\modifier.truncate.php';
        }
        if (!is_callable('smarty_modifier_capitalize')) {
            include 'D:\\Documents\\Desktop\\Code\\PSD1507\\9_Smarty\\day1017\\smarty\\plugins\\modifier.capitalize.php';
        }
        ?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>test1</title>
</head>
<body>
	hello world5
	
	<?php 
        echo $_smarty_tpl->tpl_vars['name1']->value;
        ?>

	<br /><br />
	<?php 
        echo $_smarty_tpl->tpl_vars['name2']->value;
        ?>

	<br /><br />
	<?php 
        echo $_smarty_tpl->tpl_vars['name3']->value;
        ?>

	<br /><br />
	<br /><br />
	<!-- 使用变量调节器 -->
	<?php 
        echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['name']->value, 20);
        ?>

	<br /><br />
	<?php 
        echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['name']->value, 20, '');
        ?>

	<br /><br />
	<?php 
        echo mb_strtoupper(smarty_modifier_truncate($_smarty_tpl->tpl_vars['name']->value, 20, ''), 'UTF-8');
        ?>

	<br /><br /><br /><br />
	
	<!-- 首字母大写 -->
	<?php 
        echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['name']->value);
        ?>

	
	
</body>
</html><?php 
    }
开发者ID:denson7,项目名称:phpstudy,代码行数:61,代码来源:5e2d7538ebf2e46b6731b56ab33fd737e3acf50c.file.test5.tpl.php

示例13: unset

unset($_template);
?>

<PRE>


<?php 
if ($_smarty_tpl->getConfigVariable('bold')) {
    ?>
<b><?php 
}
?>


Title: <?php 
echo smarty_modifier_capitalize($_smarty_tpl->getConfigVariable('title'));
?>

<?php 
if ($_smarty_tpl->getConfigVariable('bold')) {
    ?>
</b><?php 
}
?>


The current date and time is <?php 
echo smarty_modifier_date_format(time(), "%Y-%m-%d %H:%M:%S");
?>

开发者ID:ViniciusFelix,项目名称:ProjetoPadrao,代码行数:29,代码来源:749422d4cfc3eb5677cf499730392b6accd4d1c7.file.index.tpl.cache.php

示例14: content_501a4e393373d5_71446429

    function content_501a4e393373d5_71446429($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_capitalize')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\modifier.capitalize.php';
        }
        echo $_smarty_tpl->getSubTemplate("header3.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


                                                                  
  <div class="custom_blog" style="padding: 20px; ">
    <div ><h2><?php 
        echo $_smarty_tpl->tpl_vars['topic']->value;
        ?>
</h2></div>
                

<?php 
        echo $_smarty_tpl->tpl_vars['view']->value;
        ?>


<span class="error-message"><?php 
        echo $_smarty_tpl->tpl_vars['info']->value;
        ?>
</span>
<table class="tips">
    <thead>
    <td>Role Name</td>
    <td>Actions</td>

</thead>
<tbody>
<?php 
        $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['cat']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['category']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value) {
            $_smarty_tpl->tpl_vars['cat']->_loop = true;
            ?>
   <tr>
       <td><strong><?php 
            echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['cat']->value['name']);
            ?>
</strong></td>
       <td><a href="manage_role.php?item=<?php 
            echo $_smarty_tpl->tpl_vars['cat']->value['id'];
            ?>
"><img src="images/manage_icon.png" alt="Manage Access Level" title="Manage Access Level"></a>   <a href="roles.php?item=<?php 
            echo $_smarty_tpl->tpl_vars['cat']->value['id'];
            ?>
"><img src="images/delete.png" alt="Delete Role" title="Delete Role"></a> </td>
    </tr>
<?php 
        }
        ?>
<tbody>
</table>

<a href="#mydiv" rel="facebox"><strong>Add New Role</strong></a>
<div id="mydiv" style="display:none">
 <h2  style="text-align: center"> Add New Role <hr/></h2>
<form id="form_name" action="" method="post">
    <ul><li>
            <label for="role">Role Name*</label>
            <input type="text" name="role" id="role" class="required" />
        </li>
        <label for="level">Access Level*</label>
            <input type="text" name="level" id="level" class="required" />
        </li>

        <li>
            <input type="submit" name="add" value="Add Role" />
        </li>
    </ul>
</form>
</div>
<br style="clear: both"/>

</div>
                <?php 
        /*  Call merged included template "footer.tpl" */
        $_tpl_stack[] = $_smarty_tpl;
        $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '12584501a4e392c1f34-37677547');
        content_533a932a5a1012_07704955($_smarty_tpl);
        $_smarty_tpl = array_pop($_tpl_stack);
        /*  End of included template "footer.tpl" */
    }
开发者ID:hiroyalty,项目名称:mhealth,代码行数:91,代码来源:860eb6b82bae60d985f7c6b7987bd93c0bb8f52b.file.roles.tpl.php

示例15: Smarty_variable

  <?php 
    $_smarty_tpl->tpl_vars['kgoHasNavmenu'] = new Smarty_variable(count($_smarty_tpl->getVariable('navigationModules')->value) > 0, null, null);
    ?>
  <?php 
    $_smarty_tpl->tpl_vars['kgoHasNavbar'] = new Smarty_variable(!isset($_smarty_tpl->getVariable('customHeader', null, true, false)->value), null, null);
    ?>

<body class="<?php 
    echo smarty_modifier_capitalize($_smarty_tpl->getVariable('configModule')->value);
    ?>
Module<?php 
    if ($_smarty_tpl->getVariable('configModule')->value != $_smarty_tpl->getVariable('moduleID')->value) {
        ?>
 <?php 
        echo smarty_modifier_capitalize($_smarty_tpl->getVariable('moduleID')->value);
        ?>
Module<?php 
    }
    if ($_smarty_tpl->getVariable('moduleFillScreen')->value) {
        ?>
 fillscreen<?php 
    }
    if ($_smarty_tpl->getVariable('kgoHasNavmenu')->value) {
        ?>
 kgo-has-navmenu<?php 
    }
    if ($_smarty_tpl->getVariable('kgoHasNavbar')->value) {
        ?>
 kgo-has-navbar<?php 
    }
开发者ID:sponto,项目名称:msbm-mobile,代码行数:30,代码来源:compliant_android_unknown^84aa7bebb379a8b294a029ad3ca0fe7f9594aef1.findInclude.header.tpl.php


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