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


PHP smarty_modifier_date_format函数代码示例

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


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

示例1: content_56704886940ff7_31409707

    function content_56704886940ff7_31409707($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/Library/WebServer/Documents/SAMAP/librerias/smarty/plugins/modifier.date_format.php';
        }
        ?>
<div class="panel panel-info">
	<div class="panel-head">
		<h1>Reporte diario</h1>
	</div>
	<div class="panel-body">
		<div class="row">
			<label for="lstUsuarios" class="col-xs-4">Usuario</label>
			<div class="col-xs-8">
				<select id="lstUsuario" name="lstUsuario">
					<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['usuarios']->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;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
            ?>
						<option value="<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['idUsuario'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['nombre'];
            ?>

					<?php 
        }
        ?>
				</select>
			</div>
		</div>
		<div class="row">
			<label for="txtFecha" class="col-xs-4">Fecha</label>
			<div class="col-xs-4">
				<input type="text" value="<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
" id="txtFecha" name="txtFecha" placeholder="Y-m-d" />
			</div>
		</div>
    	<div class="btn-group pull-right">
    		<input type="button" value="Buscar" id="btnBuscar" name="btnBuscar" class="btn btn-success"/>
    	</div>
    </div>
</div>

<div id="dvLista"></div>

<?php 
        echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['PAGE']->value['rutaModulos'] . "modulos/reporte/ubicacion.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
开发者ID:hugooluisss,项目名称:SAMAP,代码行数:60,代码来源:b7fa4569d1c5dad4d9c9f93447ff6e54b31e817c.file.panel.tpl.php

示例2: content_5661face4fdeb2_88214568

    function content_5661face4fdeb2_88214568($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.date_format.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '53215661face3f05f6_51857202';
        echo smarty_modifier_date_format(time());
        ?>

<?php 
        echo smarty_modifier_date_format(time(), "%D");
        ?>

<?php 
        echo smarty_modifier_date_format(time(), $_smarty_tpl->tpl_vars['config']->value['date']);
        ?>

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

<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['yesterday']->value, "%A, %B %e, %Y");
        ?>

<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['yesterday']->value, $_smarty_tpl->tpl_vars['config']->value['time']);
    }
开发者ID:SUDIP2222,项目名称:Smarty-Basic,代码行数:28,代码来源:b2c13d7f20fc171937961d8764d8366950e647fd_0.file.index.tpl.php

示例3: smarty_modifier_cms_date_format

function smarty_modifier_cms_date_format($string, $format = '', $default_date = '')
{
    $gCms = cmsms();
    if ($format == '') {
        $format = get_site_preference('defaultdateformat');
        if ($format == '') {
            $format = '%b %e, %Y';
        }
        if (!isset($gCms->variables['page_id'])) {
            $uid = get_userid(false);
            if ($uid) {
                $tmp = get_preference($uid, 'date_format_string');
                if ($tmp != '') {
                    $format = $tmp;
                }
            }
        }
    }
    $config = $gCms->GetConfig();
    $fn = cms_join_path($config['root_path'], 'lib', 'smarty', 'plugins', 'modifier.date_format.php');
    if (!file_exists($fn)) {
        die;
    }
    require_once $fn;
    return smarty_modifier_date_format($string, $format, $default_date);
}
开发者ID:RTR-ITF,项目名称:usse-cms,代码行数:26,代码来源:modifier.cms_date_format.php

示例4: content_54eb80f372ee31_63985461

    function content_54eb80f372ee31_63985461($_smarty_tpl)
    {
        if (!is_callable('smarty_function_url')) {
            include 'D:\\apache\\skully-admin\\vendor\\skullyframework\\skully\\Skully\\App\\smarty\\plugins\\function.url.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include 'D:\\apache\\skully-admin\\vendor\\skullyframework\\skully\\Skully\\Library\\Smarty\\libs\\plugins\\modifier.date_format.php';
        }
        ?>
<div class="widget-fluid userInfo clearfix">
	<div class="name">Welcome, <?php 
        echo $_smarty_tpl->tpl_vars['adminUsername']->value;
        ?>
</div>
	<ul class="menuList">
		
		
		<li><a href="<?php 
        echo smarty_function_url(array('path' => 'admin/admins/logout'), $_smarty_tpl);
        ?>
"><span class="icon-share-alt"></span> Logoff</a></li>
	</ul>
	<div class="text"><b><?php 
        echo smarty_modifier_date_format(time(), $_smarty_tpl->tpl_vars['clientConfig']->value['serverFormDateTimeFormat']);
        ?>
</b>
	</div>
</div>
<?php 
    }
开发者ID:skullyframework,项目名称:skully-admin,代码行数:30,代码来源:11038a8d647c81616da95d3528ea5e6f2f641f4e.file._userInfo.tpl.php

示例5: content_560481dfdf57c7_00268306

    function content_560481dfdf57c7_00268306($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            require_once 'C:/xampp/htdocs/control-de-fabricacion/includes/libs/plugins/modifier.date_format.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '5078560481dfdd90b5_39613204';
        ?>
<form action="registrar/valores-fecha" method="POST">

<div class="form-group">
<input type="date" name="fecha" class="form-control" 
value="<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
" 
max="<?php 
        echo smarty_modifier_date_format(time(), "%Y-%m-%d");
        ?>
"
 required>
</div>

<div class="form-group">
<button class="btn btn-lg btn-primary btn-block">DEFINIR FECHA  Y CREAR REPORTE</button>
</div>


</form><?php 
    }
开发者ID:Overprime,项目名称:control-de-fabricacion,代码行数:29,代码来源:f0f73f421740cf5027d6adf848967b9eee452ceb_0.file.home.tpl.php

示例6: content_53e1d74365ced3_36624953

    function content_53e1d74365ced3_36624953($_smarty_tpl)
    {
        if (!is_callable('smarty_function_url')) {
            include '/media/jay/Data/apache/skully-admin/vendor/skullyframework/skully/Skully/App/smarty/plugins/function.url.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/media/jay/Data/apache/skully-admin/vendor/skullyframework/skully/Skully/Library/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<div class="widget-fluid userInfo clearfix">
	<div class="name">Welcome, <?php 
        echo $_smarty_tpl->tpl_vars['adminUsername']->value;
        ?>
</div>
	<ul class="menuList">
		
		
		<li><a href="<?php 
        echo smarty_function_url(array('path' => 'admin/admins/logout'), $_smarty_tpl);
        ?>
"><span class="icon-share-alt"></span> Logoff</a></li>
	</ul>
	<div class="text"><b><?php 
        echo smarty_modifier_date_format(time(), $_smarty_tpl->tpl_vars['clientConfig']->value['serverFormDateTimeFormat']);
        ?>
</b>
	</div>
</div>
<?php 
    }
开发者ID:skullyframework,项目名称:skully-admin,代码行数:30,代码来源:5edf9f42a301342cc135b44ef0080958fdfa8c57.file._userInfo.tpl.php

示例7: getValue

 /**
  * @see parent::getValue()
  */
 function getValue($object, $smarty = null, $params = array())
 {
     include_once $smarty->_get_plugin_filepath('modifier', 'date_format');
     $propValue = $object->{$this->fieldName};
     $format = CValue::first(@$params["format"], CAppUI::conf("time"));
     return $propValue ? smarty_modifier_date_format($propValue, $format) : "";
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:10,代码来源:CTimeSpec.class.php

示例8: content_565ed208394c14_40715141

    function content_565ed208394c14_40715141($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            require_once '/home/conrado/git/conrado/smarty/libs/plugins/modifier.date_format.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '55367588565ed208369f88_96275667';
        ?>
{
    "id":<?php 
        echo json_encode($_smarty_tpl->tpl_vars['comment']->value["id"]);
        ?>
,
    "ip":<?php 
        echo json_encode($_smarty_tpl->tpl_vars['comment']->value["ip"]);
        ?>
,
    "text":<?php 
        echo json_encode($_smarty_tpl->tpl_vars['comment']->value["text"]);
        ?>
,
    "parent":<?php 
        echo json_encode($_smarty_tpl->tpl_vars['comment']->value["parent"]);
        ?>
,
    "gcm":<?php 
        echo json_encode($_smarty_tpl->tpl_vars['comment']->value["gcm"]);
        ?>
,
    "date":<?php 
        echo json_encode(smarty_modifier_date_format($_smarty_tpl->tpl_vars['comment']->value["date"], "%d/%m/%Y %H:%M:%S"));
        ?>

}<?php 
    }
开发者ID:xandee1977,项目名称:ifeel-ws,代码行数:34,代码来源:563e9658b341ecb10e53a294a3c091b203589cf5_0.file.comment-save.tpl.php

示例9: content_56618a7829d360_16635803

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

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

     <body>
         <pre>
             User Information :

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

             Address : <?php 
        echo $_smarty_tpl->tpl_vars['address']->value;
        ?>

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

         </pre>
     </body>

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

示例10: content_569bd8ba82aa23_36415483

    function content_569bd8ba82aa23_36415483($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'C:\\wamp\\www\\estoque\\system\\libs\\smarty\\plugins\\modifier.date_format.php';
        }
        ?>
<footer class="container">
    <p>
        &copy;<?php 
        echo smarty_modifier_date_format(time(), '%Y');
        ?>
 Lucas MM Fonseca</br>
        Controle de Estoque
    </p>
</footer>
</body>
<?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['js']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                ?>
    <script type="text/javascript" src="<?php 
                echo $_smarty_tpl->tpl_vars['js']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];
                ?>
"></script>
<?php 
            }
        }
        ?>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</body>
</html><?php 
    }
开发者ID:LucasMMota,项目名称:estoque,代码行数:58,代码来源:a2b582472af9c0f22c50d9673c359a6faee9150f.file.footer.tpl.cache.php

示例11: content_5778af79145d48_31432732

    function content_5778af79145d48_31432732($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.date_format.php';
        }
        ?>
<style>
.tblHistoryBlock, .tblHistoryBlock TD{
	font-size:10pt;
}
</style>


<table border="0" cellspacing="0" cellpadding="0" class="tblHistoryBlock">
    <TR class="trTitleRow"> 
      <TD colspan="2" valign="top" ><strong></strong></TD>
    </TR>
    <?php 
        $_smarty_tpl->tpl_vars['r'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['r']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['status_history']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['r']->key => $_smarty_tpl->tpl_vars['r']->value) {
            $_smarty_tpl->tpl_vars['r']->_loop = true;
            ?>
 
    <TR> 
      <TD colspan="2" valign="top" class="tdValueColumn" >
	  <strong class="blue"><?php 
            echo smarty_modifier_date_format(($tmp = @$_smarty_tpl->tpl_vars['r']->value['time']) === null || $tmp === '' ? 0 : $tmp, '%m/%d/%y %I:%M:%S %p');
            ?>
 - <?php 
            echo $_smarty_tpl->tpl_vars['r']->value['StatusTitle'];
            ?>
</strong> 
      <br />
      <strong>Submitted By</strong>: <?php 
            echo $_smarty_tpl->tpl_vars['r']->value['adminName'];
            ?>
<br />
      <strong>Notes:</strong> <?php 
            echo $_smarty_tpl->tpl_vars['r']->value['description'];
            ?>
  </TD>
    </TR>
    <tr class="trOut"> 
      <td colspan="2" >&nbsp;</td>
    </tr>
    <?php 
        }
        ?>
 
</table><?php 
    }
开发者ID:doronl456,项目名称:TestGit,代码行数:56,代码来源:f6c39fdf265f6acd3f0ebbc11325db7f312974d7.file.history_block.html.php

示例12: getValue

 /**
  * @see parent::getValue()
  */
 function getValue($object, $smarty = null, $params = array())
 {
     if ($smarty) {
         include_once $smarty->_get_plugin_filepath('modifier', 'date_format');
     }
     $propValue = $object->{$this->fieldName};
     $format = CValue::first(@$params["format"], CAppUI::conf("date"));
     return $propValue && $propValue != "0000-00-00" ? $this->progressive ? $this->progressiveFormat($propValue) : smarty_modifier_date_format($propValue, $format) : "";
     // TODO: test and use strftime($format, strtotime($propValue)) instead of smarty
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:13,代码来源:CDateSpec.class.php

示例13: content_552ea93f0d7d55_96284352

    function content_552ea93f0d7d55_96284352($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'D:/webdev/PHP5/diderson.dev/anc-research/website/components/smarty/plugins\\modifier.date_format.php';
        }
        ?>
<p class="f-left">&copy; <?php 
        echo smarty_modifier_date_format(time(), "%Y");
        ?>
  ANC Research, All Rights Reserved &reg; </p><?php 
    }
开发者ID:ndumisom,项目名称:ANYC-Project,代码行数:11,代码来源:BACKEND_ADMIN^a47e60432708d13566a52c849e2935d3389ce80a.file.footer.tpl.php

示例14: content_5527d65f9535e3_19420243

    function content_5527d65f9535e3_19420243($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/home/diderson/webdev/PHP5/diderson.dev/anc-research/website/components/smarty/plugins/modifier.date_format.php';
        }
        ?>
<p class="f-left">&copy; <?php 
        echo smarty_modifier_date_format(time(), "%Y");
        ?>
  ANC Research, All Rights Reserved &reg; </p><?php 
    }
开发者ID:ndumisom,项目名称:ANYC-Project,代码行数:11,代码来源:BACKEND_ADMIN^9dacab3d013535907a744922f519323961b478c7.file.footer.tpl.php

示例15: content_4faa48983f322

    function content_4faa48983f322($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'I:\\home\\Smarty\\plugins\\modifier.date_format.php';
        }
        ?>
<div style="height: 2px; background-color:#413C3C;"></div>

<table width="100%" class="footerCopyrights">
	<tr>
		<td style="white-space: nowrap;">
			<?php 
        $_smarty_tpl->tpl_vars["year"] = new Smarty_variable(smarty_modifier_date_format(time(), "%Y"), null, 0);
        ?>
			engine Expert
			<span class="lastQuerys" style="cursor: default">&copy;</span>
			<a href="http://sd-group.org.ua/" target="_blank">SD-Group</a>
			<?php 
        echo $_smarty_tpl->tpl_vars['year']->value;
        ?>
 - <?php 
        echo $_smarty_tpl->tpl_vars['year']->value + 5;
        ?>

		</td>
		<td style="text-align: right;">
			<a href="<?php 
        echo $_smarty_tpl->tpl_vars['chpu']->value->createChpuUrl(@CONF_SCRIPT_URL . "index.php?ut=" . $_smarty_tpl->tpl_vars['user_type']->value . "&amp;do=rss");
        ?>
"><img src="<?php 
        echo @CONF_SCRIPT_URL;
        echo @TEMPLATE_PATH;
        ?>
images/rss_20.png" alt="RSS" style="background-color: #CC0000;"></a>
			<a href="http://www.php.net/" rel="nofollow"><img src="<?php 
        echo @CONF_SCRIPT_URL;
        echo @TEMPLATE_PATH;
        ?>
images/generic/php.gif" alt="Developed using PHP" title="Developed using PHP" style="background-color: #FFF;"></a>
			<a href="http://www.mysql.com/" rel="nofollow"><img src="<?php 
        echo @CONF_SCRIPT_URL;
        echo @TEMPLATE_PATH;
        ?>
images/generic/mysql.gif" alt="Developed using MySql" title="Developed using MySql" style="background-color: #FFF;"></a>
		</td>
	</tr>
</table>
<div id="overlay"></div>
<div id="dialog"><img src="<?php 
        echo @CONF_SCRIPT_URL;
        echo @TEMPLATE_PATH;
        ?>
images/loading.gif" alt=""></div><?php 
    }
开发者ID:innova-market,项目名称:JobExpert,代码行数:54,代码来源:ff012ae0b9941a604295f130fcfd8e779114e68b.file.block.site.foot.tpl.php


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