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);
    }
    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']);
    }
Exemplo n.º 3
0
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);
}
    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 
    }
    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 
    }
    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 
    }
Exemplo n.º 7
0
 /**
  * @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) : "";
 }
    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 
    }
    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 
    }
    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 
    }
    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 
    }
Exemplo n.º 12
0
 /**
  * @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
 }
    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 
    }
    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 
    }
    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 
    }
    function content_56cd5b64d72376_07160605($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            require_once '/Applications/MAMP/bin/php/php5.6.10/lib/php/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
今日は<?php 
        echo smarty_modifier_date_format(time(), '%Y年%m月%d日');
        ?>
です。
<?php 
    }
    function content_560b184b353642_96163695($_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'] = '20582560b184b2a8599_39861502';
        ?>
<form action="registrar/valores-fecha" method="POST">

<?php 
        if ($_SESSION[1] == 1) {
            ?>
<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>

<?php 
        } else {
            ?>
<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>

<?php 
        }
        ?>

<div class="form-group">
<button class="btn btn-lg btn-primary btn-block">
<i class="fa fa-hand-paper-o fa-2x"></i></button>
</div>


</form><?php 
    }
Exemplo n.º 18
0
function smarty_modifier_month_declination($dt)
{
    require_once SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php';
    if ($dt != '' && $dt != '0000-00-00' && $dt != '0000-00-00 00:00:00' && $dt) {
        $timestamp = smarty_make_timestamp($dt);
    } else {
        return '';
    }
    $str = smarty_modifier_date_format($timestamp, "%B");
    $month = intval(date("m", $timestamp));
    $str = $month == 3 || $month == 8 ? $str . 'а' : mb_substr($str, 0, mb_strlen($str) - 1) . 'я';
    return $str;
}
Exemplo n.º 19
0
/**
* date tag
*/
function smarty_function_date($params, &$smarty)
{
    require_once $smarty->_get_plugin_filepath('modifier', 'date_format');
    $format = isset($params['format']) ? $params['format'] : "%B %e, %Y";
    $date = $smarty->get_template_vars('date');
    $day = smarty_modifier_date_format($date, $format);
    if ($smarty->get_template_vars('prev_entry_day') != $day) {
        $smarty->assign('prev_entry_day', $day);
        $ret = isset($params['html']) ? sprintf($params['html'], $day) : $day;
        return $ret;
    }
    return '';
}
    function content_560b2504cfb774_23884577($_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'] = '13338560b2504c4e133_28034558';
        ?>
<form action="registrar/valores-fecha" method="POST">

<?php 
        if ($_smarty_tpl->tpl_vars['Permiso']->value == 2) {
            ?>

<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>

<?php 
        } else {
            ?>

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


<?php 
        }
        ?>

<div class="form-group">
<button class="btn btn-lg btn-primary btn-block">
<i class="fa fa-hand-paper-o fa-2x"></i></button>
</div>


</form><?php 
    }
    function content_560ebcfe0e2c25_13014775($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            require_once '/var/www/control-de-fabricacion/includes/libs/plugins/modifier.date_format.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '1912152531560ebcfe0afac9_54476379';
        ?>
<form action="registrar/valores-fecha" method="POST">

<?php 
        if ($_smarty_tpl->tpl_vars['Permiso']->value == 2) {
            ?>

<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>

<?php 
        } else {
            ?>

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


<?php 
        }
        ?>

<div class="form-group">
<button class="btn btn-lg btn-primary btn-block">
<i class="fa fa-hand-paper-o fa-2x"></i></button>
</div>


</form><?php 
    }
    function content_56cd63facb8c35_34633410($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            require_once '/Applications/MAMP/bin/php/php5.6.10/lib/php/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<html>
<meta charset="utf-8">
今日は<?php 
        echo smarty_modifier_date_format(time(), '%Y年%m月%d日');
        ?>
です。
</html><?php 
    }
    function content_55a5d74689a602_01768427($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/a/domains/ys.vip8.org/public_html/yfcms/framework/librarys/Smarty/libs/plugins/modifier.date_format.php';
        }
        ?>
<div class="zuobi">
    <a href="#">云扫除</a> > <a href="#">会员中心</a></span>
</div>


<!----------member---------->
<div class="member">
    <div class="member_left">
        <?php 
        echo $_smarty_tpl->getSubTemplate("modules/home_top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

        <div class="member_left_jd">
            <ul>
                <?php 
        $_smarty_tpl->tpl_vars['dl'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['dl']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['my_domain_list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['dl']->key => $_smarty_tpl->tpl_vars['dl']->value) {
            $_smarty_tpl->tpl_vars['dl']->_loop = true;
            ?>

                <li><em><?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['dl']->value['createTime'], "%Y-%m-%d %H:%M:%S");
            ?>
</em> 在 <a href="/home/article/">老生常谈</a> 投稿了 <a href="#">我爱一个网盟推广作弊网站</a><span>未审核</span></li>
                <?php 
        }
        ?>

            </ul>
        </div>
    </div>
    <?php 
        echo $_smarty_tpl->getSubTemplate("modules/home_ad.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

</div>
<?php 
    }
 /**
  * @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 = CMbArray::extract($params, "format", CAppUI::conf("datetime"));
     if ($format === "relative") {
         $relative = CMbDate::relative($propValue, CMbDT::dateTime());
         return $relative["count"] . " " . CAppUI::tr($relative["unit"] . ($relative["count"] > 1 ? "s" : ""));
     }
     $date = CMbArray::extract($params, "date");
     if ($date && CMbDT::date($propValue) == $date) {
         $format = CAppUI::conf("time");
     }
     return $propValue && $propValue != "0000-00-00 00:00:00" ? smarty_modifier_date_format($propValue, $format) : "";
 }
    function content_5625255313c888_45132117($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/var/www/ikkf05.ru/html/includes/smarty-3.1.15/plugins/modifier.date_format.php';
        }
        ?>
Дата сообщения: <?php 
        echo smarty_modifier_date_format(time(), "%d/%m/%Y %H:%M");
        ?>
 
 
<?php 
        if ($_smarty_tpl->tpl_vars['post']->value['name']) {
            ?>
Имя: <?php 
            echo $_smarty_tpl->tpl_vars['post']->value['name'];
        }
        ?>
 
<?php 
        if ($_smarty_tpl->tpl_vars['post']->value['phone']) {
            ?>
Телефон: <?php 
            echo $_smarty_tpl->tpl_vars['post']->value['phone'];
        }
        ?>
 
<?php 
        if ($_smarty_tpl->tpl_vars['post']->value['email']) {
            ?>
Email: <?php 
            echo $_smarty_tpl->tpl_vars['post']->value['email'];
        }
        ?>
 
	
<?php 
        if ($_smarty_tpl->tpl_vars['post']->value['message']) {
            ?>
Сообщение: <?php 
            echo $_smarty_tpl->tpl_vars['post']->value['message'];
        }
        ?>
 <?php 
    }
    function content_528cecc31d8771_35064732($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'D:\\OpenServer\\domains\\ikkf05\\includes\\smarty-3.1.15\\plugins\\modifier.date_format.php';
        }
        ?>
Дата сообщения: <?php 
        echo smarty_modifier_date_format(time(), "%d/%m/%Y %H:%M");
        ?>
 
 
<?php 
        if ($_smarty_tpl->tpl_vars['post']->value['name']) {
            ?>
Имя: <?php 
            echo $_smarty_tpl->tpl_vars['post']->value['name'];
        }
        ?>
 
<?php 
        if ($_smarty_tpl->tpl_vars['post']->value['phone']) {
            ?>
Телефон: <?php 
            echo $_smarty_tpl->tpl_vars['post']->value['phone'];
        }
        ?>
 
<?php 
        if ($_smarty_tpl->tpl_vars['post']->value['email']) {
            ?>
Email: <?php 
            echo $_smarty_tpl->tpl_vars['post']->value['email'];
        }
        ?>
 
	
<?php 
        if ($_smarty_tpl->tpl_vars['post']->value['message']) {
            ?>
Сообщение: <?php 
            echo $_smarty_tpl->tpl_vars['post']->value['message'];
        }
        ?>
 <?php 
    }
Exemplo n.º 27
0
function smarty_modifier_newmark($time, $format = '')
{
    static $now, $period, $count;
    $time = is_numeric($time) ? (int) $time : strToTime($time);
    $retval = $format == '' ? '' : smarty_modifier_date_format($time, $format);
    if ($now == null) {
        $now = time();
        $day = 60 * 60 * 24;
        $period = array($day, $day * 7);
        $count = count($period);
    }
    for ($i = 0; $i < $count; ++$i) {
        if ($now < $time + $period[$i]) {
            $retval .= sprintf('<em class="new%d">new!</em>', $i + 1);
            break;
        }
    }
    return $retval;
}
    function content_546606132276e4_49963347($_smarty_tpl)
    {
        $_smarty = $_smarty_tpl->smarty;
        if (!is_callable('smarty_modifier_date_format')) {
            include 'E:\\amp\\wwwroot\\demo\\blog\\framework\\libraries\\smarty\\plugins\\modifier.date_format.php';
        }
        ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>个人博客网站</title>
	
	<style type="text/css">
	#nav{width:730px; height:90px;background-color:lightblue;}
	#main{width:730px;height: 300px;background-color:pink;}
	#fool{width:730px;height: 90px;background-color:lightblue;}
	#left{width:230px;height: 300px;background-color:lightgreen; float:left;}
	#right{width:450px;height: 300px;background-color:lightgray;float:right;}
	</style>
	
</head>
<body>
	<div id='nav'>
		首页、博文、美图、分享
	</div>
	<div id='main'>
	

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



	</div>
	<div id='fool'>
		版权
	</div>
</body>
</html><?php 
    }
    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 
    }
/**
 * Smarty date_format modifier plugin
 *
 * Type:     modifier<br>
 * Name:     cms_date_format<br>
 * Purpose:  format datestamps via strftime<br>
 * Input:<br>
 *          - string: input date string
 *          - format: strftime format for output
 *          - default_date: default date if $string is empty
 *
 * @link http://www.smarty.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual)
 * @author Monte Ohrt <monte at ohrt dot com>
 * @param string $string       input date string
 * @param string $format       strftime format for output
 * @param string $default_date default date if $string is empty
 * @param string $formatter    either 'strftime' or 'auto'
 * @return string |void
 * @uses smarty_make_timestamp()
 *
 * Modified by Tapio Löytty <*****@*****.**>
 */
function smarty_cms_modifier_cms_date_format($string, $format = '', $default_date = '')
{
    if ($format == '') {
        $format = get_site_preference('defaultdateformat');
        if ($format == '') {
            $format = '%b %e, %Y';
        }
        if (!cmsms()->is_frontend_request()) {
            if ($uid = get_userid(false)) {
                $tmp = get_preference($uid, 'date_format_string');
                if ($tmp != '') {
                    $format = $tmp;
                }
            }
        }
    }
    $fn = cms_join_path(SMARTY_PLUGINS_DIR, 'modifier.date_format.php');
    if (!file_exists($fn)) {
        die;
    }
    require_once $fn;
    return smarty_modifier_date_format($string, $format, $default_date);
}