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


PHP smarty_modifier_regex_replace函数代码示例

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


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

示例1: content_56729157bec70

    function content_56729157bec70($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_regex_replace')) {
            include 'D:\\wamp\\www\\vtigercrm-debug\\libraries\\Smarty\\libs\\plugins\\modifier.regex_replace.php';
        }
        ?>


<?php 
        $_smarty_tpl->tpl_vars['MODULE'] = new Smarty_variable('PBXManager', null, 0);
        $_smarty_tpl->tpl_vars['MODULEMODEL'] = new Smarty_variable(Vtiger_Module_Model::getInstance($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);
        $_smarty_tpl->tpl_vars['FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);
        if ($_smarty_tpl->tpl_vars['MODULEMODEL']->value && $_smarty_tpl->tpl_vars['MODULEMODEL']->value->isActive() && $_smarty_tpl->tpl_vars['FIELD_VALUE']->value) {
            ?>
    <?php 
            $_smarty_tpl->tpl_vars['PERMISSION'] = new Smarty_variable(PBXManager_Server_Model::checkPermissionForOutgoingCall(), null, 0);
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['PERMISSION']->value) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_VALUE']->value, null, 0);
                ?>
        <?php 
                $_smarty_tpl->tpl_vars['PHONE_NUMBER'] = new Smarty_variable(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE']->value, "/[-()\\s]/", ''), null, 0);
                ?>
        <a class="phoneField" data-value="<?php 
                echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value;
                ?>
" record="<?php 
                echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();
                ?>
" onclick="Vtiger_PBXManager_Js.registerPBXOutboundCall('<?php 
                echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value;
                ?>
',<?php 
                echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();
                ?>
)"><?php 
                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');
                ?>
</a>
    <?php 
            } else {
                ?>
        <?php 
                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), $_smarty_tpl->tpl_vars['RECORD']->value->getId(), $_smarty_tpl->tpl_vars['RECORD']->value);
                ?>

    <?php 
            }
        } else {
            ?>
    <?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), $_smarty_tpl->tpl_vars['RECORD']->value->getId(), $_smarty_tpl->tpl_vars['RECORD']->value);
            ?>

<?php 
        }
    }
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:60,代码来源:eec83eb637465077bcf1cc2a05c0af7ba8ad8722.file.PhoneDetailView.tpl.php

示例2: if

<?php if ($_valid && !is_callable('content_56059e5cf22c6')) {function content_56059e5cf22c6($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include '/var/www/kulturedkitsch.info/public_html/vtigercrm/libraries/Smarty/libs/plugins/modifier.regex_replace.php';
?>


<?php $_smarty_tpl->tpl_vars['MODULE'] = new Smarty_variable('PBXManager', null, 0);?>
<?php $_smarty_tpl->tpl_vars['MODULEMODEL'] = new Smarty_variable(Vtiger_Module_Model::getInstance($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>
<?php $_smarty_tpl->tpl_vars['FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['MODULEMODEL']->value&&$_smarty_tpl->tpl_vars['MODULEMODEL']->value->isActive()&&$_smarty_tpl->tpl_vars['FIELD_VALUE']->value){?>
    <?php $_smarty_tpl->tpl_vars['PERMISSION'] = new Smarty_variable(PBXManager_Server_Model::checkPermissionForOutgoingCall(), null, 0);?>
    <?php if ($_smarty_tpl->tpl_vars['PERMISSION']->value){?>
        <?php $_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_VALUE']->value, null, 0);?>
        <?php $_smarty_tpl->tpl_vars['PHONE_NUMBER'] = new Smarty_variable(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE']->value,"/[-()\s]/",''), null, 0);?>
        <a class="phoneField" data-value="<?php echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value;?>
" record="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" onclick="Vtiger_PBXManager_Js.registerPBXOutboundCall('<?php echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value;?>
',<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
)"><?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');?>
</a>
    <?php }else{ ?>
        <?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'),$_smarty_tpl->tpl_vars['RECORD']->value->getId(),$_smarty_tpl->tpl_vars['RECORD']->value);?>

    <?php }?>
<?php }else{ ?>
    <?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'),$_smarty_tpl->tpl_vars['RECORD']->value->getId(),$_smarty_tpl->tpl_vars['RECORD']->value);?>

<?php }?>
<?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:27,代码来源:9976c977e73b6271856d0c7818da279e8a74a215.file.PhoneDetailView.tpl.php

示例3: content_566d926eb26c93_81512452

    function content_566d926eb26c93_81512452($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_regex_replace')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.regex_replace.php';
        }
        ?>

<?php 
        $_smarty_tpl->tpl_vars['module_name'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['module_name']->value, ENT_QUOTES, 'UTF-8', true), null, 0);
        $_smarty_tpl->_capture_stack[0][] = array('default', null, null);
        ob_start();
        echo '/&module_name=' . $_smarty_tpl->tpl_vars['module_name']->value . '/';
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        if (isset($_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) && $_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) {
            ?>
<div class="bootstrap panel">
	<h3><i class="icon-cogs"></i> <?php 
            echo smartyTranslate(array('s' => 'Configuration'), $_smarty_tpl);
            ?>
</h3>
	<input type="checkbox" name="activateModule" value="1"<?php 
            if ($_smarty_tpl->tpl_vars['module']->value->isEnabledForShopContext()) {
                ?>
 checked="checked"<?php 
            }
            ?>
 
		onclick="location.href = '<?php 
            echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['current_url']->value, Smarty::$_smarty_vars['capture']['default'], '');
            ?>
&amp;module_name=<?php 
            echo $_smarty_tpl->tpl_vars['module_name']->value;
            ?>
&amp;enable=' + (($(this).attr('checked')) ? 1 : 0);" />
	<?php 
            echo smartyTranslate(array('s' => 'Activate module for this shop context: %s.', 'sprintf' => $_smarty_tpl->tpl_vars['shop_context']->value), $_smarty_tpl);
            ?>

</div>
<?php 
        }
    }
开发者ID:isshean,项目名称:prestashop,代码行数:53,代码来源:a05bed12c197e2f618cb1505d479e57f859db916.file.configuration_bar.tpl.php

示例4: 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

示例5: content_5662a9c71ece32_31689154

    function content_5662a9c71ece32_31689154($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_regex_replace')) {
            require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.regex_replace.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '26105662a9c710e380_18250450';
        ?>

    

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

    <?php 
        echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['articleTitle']->value, "/[\r\t\n]/", " ");
    }
开发者ID:SUDIP2222,项目名称:Smarty-Basic,代码行数:17,代码来源:3c52721ad90d23eaf096fb822bc3d4feef44bdd8_0.file.index.tpl.php

示例6: content_535564996d29d6_08779982

    function content_535564996d29d6_08779982($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_regex_replace')) {
            include '/Applications/MAMP/htdocs/prestashopPrueba/tools/smarty/plugins/modifier.regex_replace.php';
        }
        ?>
<div class="bootstrap panel">
	<h3><i class="icon-cogs"></i> <?php 
        echo smartyTranslate(array('s' => 'Configuration'), $_smarty_tpl);
        ?>
</h3>
	<div class="input-group">
		<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
			<i class="icon-flag"></i>
			<?php 
        echo smartyTranslate(array('s' => 'Manage translations'), $_smarty_tpl);
        ?>

			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
			<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['module_languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
			<li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['trad_link']->value;
            echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
            ?>
#<?php 
            echo $_smarty_tpl->tpl_vars['module_name']->value;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['language']->value['name'];
            ?>
</a></li>
			<?php 
        }
        ?>
		</ul>
	</div>
	<?php 
        $_smarty_tpl->tpl_vars['module_name'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['module_name']->value, ENT_QUOTES, 'UTF-8', true), null, 0);
        ?>
	<?php 
        $_smarty_tpl->_capture_stack[0][] = array('default', null, null);
        ob_start();
        echo '/&module_name=' . $_smarty_tpl->tpl_vars['module_name']->value . '/';
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
	<?php 
        if (isset($_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) && $_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) {
            ?>
	<input type="checkbox" name="activateModule" value="1"<?php 
            if ($_smarty_tpl->tpl_vars['module']->value->isEnabledForShopContext()) {
                ?>
 checked="checked"<?php 
            }
            ?>
 
		onclick="location.href = '<?php 
            echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['current_url']->value, Smarty::$_smarty_vars['capture']['default'], '');
            ?>
&module_name=<?php 
            echo $_smarty_tpl->tpl_vars['module_name']->value;
            ?>
&enable=' + (($(this).attr('checked')) ? 1 : 0);" />
	<?php 
            echo smartyTranslate(array('s' => 'Activate module for'), $_smarty_tpl);
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['shop_context']->value;
            ?>

	<?php 
        }
        ?>
</div><?php 
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:96,代码来源:fd23a367cbf7436b75b7811ba2fa3fd028420865.file.configuration_bar.tpl.php

示例7: content_535564a42a6286_06602921

    function content_535564a42a6286_06602921($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_regex_replace')) {
            include '/Applications/MAMP/htdocs/prestashopPrueba/tools/smarty/plugins/modifier.regex_replace.php';
        }
        ?>
<!-- Block languages module -->
<?php 
        if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
            ?>
	<div id="languages-block-top" class="languages-block">
		<?php 
            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['language']->_loop = false;
            $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['languages']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                $_smarty_tpl->tpl_vars['language']->_loop = true;
                $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key;
                ?>
			<?php 
                if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] == $_smarty_tpl->tpl_vars['lang_iso']->value) {
                    ?>
				<div class="current">
					<span><?php 
                    echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['language']->value['name'], "/\\s.*" . "\$" . "/", '');
                    ?>
</span>
				</div>
			<?php 
                }
                ?>
		<?php 
            }
            ?>
		<ul id="first-languages" class="languages-block_ul toogle_content">
			<?php 
            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['language']->_loop = false;
            $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['languages']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                $_smarty_tpl->tpl_vars['language']->_loop = true;
                $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key;
                ?>
				<li <?php 
                if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] == $_smarty_tpl->tpl_vars['lang_iso']->value) {
                    ?>
class="selected"<?php 
                }
                ?>
>
				<?php 
                if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] != $_smarty_tpl->tpl_vars['lang_iso']->value) {
                    ?>
					<?php 
                    $_smarty_tpl->tpl_vars['indice_lang'] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['id_lang'], null, 0);
                    ?>
					<?php 
                    if (isset($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value])) {
                        ?>
						<a href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value], ENT_QUOTES, 'UTF-8', true);
                        ?>
" title="<?php 
                        echo $_smarty_tpl->tpl_vars['language']->value['name'];
                        ?>
">
					<?php 
                    } else {
                        ?>
						<a href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getLanguageLink($_smarty_tpl->tpl_vars['language']->value['id_lang']), ENT_QUOTES, 'UTF-8', true);
                        ?>
" title="<?php 
                        echo $_smarty_tpl->tpl_vars['language']->value['name'];
                        ?>
">
					<?php 
                    }
                    ?>
				<?php 
                }
                ?>
						<span><?php 
                echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['language']->value['name'], "/\\s.*" . "\$" . "/", '');
                ?>
</span>
				<?php 
                if ($_smarty_tpl->tpl_vars['language']->value['iso_code'] != $_smarty_tpl->tpl_vars['lang_iso']->value) {
                    ?>
					</a>
				<?php 
                }
//.........这里部分代码省略.........
开发者ID:dev-lav,项目名称:htdocs,代码行数:101,代码来源:dc702910836d692e3837c918a45caf4aad0e9ba8.file.blocklanguages.tpl.php

示例8: content_566719ab5152a4_13849677

    function content_566719ab5152a4_13849677($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/srv/www/helveti/helveti.cz/tools/smarty/plugins/modifier.escape.php';
        }
        if (!is_callable('smarty_modifier_regex_replace')) {
            include '/srv/www/helveti/helveti.cz/tools/smarty/plugins/modifier.regex_replace.php';
        }
        ?>

<?php 
        if (!$_smarty_tpl->tpl_vars['ps_16']->value) {
            $_smarty_tpl->_capture_stack[0][] = array('path', null, null);
            ob_start();
            ?>
<a href="<?php 
            echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true);
            ?>
"><?php 
            echo smartyTranslate(array('s' => 'My account'), $_smarty_tpl);
            ?>
</a><span class="navigation-pipe"><?php 
            echo $_smarty_tpl->tpl_vars['navigationPipe']->value;
            ?>
</span><?php 
            echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>


<h1><?php 
            echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl);
            ?>
</h1>
<p><?php 
            echo smartyTranslate(array('s' => 'Here are the orders you have placed since the creation of your account'), $_smarty_tpl);
            ?>
.</p>

<?php 
            if ($_smarty_tpl->tpl_vars['slowValidation']->value) {
                ?>
<p class="warning"><?php 
                echo smartyTranslate(array('s' => 'If you have just placed an order, it may take a few minutes for it to be validated. Please refresh this page if your order is missing.'), $_smarty_tpl);
                ?>
</p><?php 
            }
            ?>

<div class="block-center" id="block-history">
	<?php 
            if ($_smarty_tpl->tpl_vars['orders']->value && count($_smarty_tpl->tpl_vars['orders']->value)) {
                ?>
	<table id="order-list" class="std">
		<thead>
			<tr>
				<th class="first_item"><?php 
                echo smartyTranslate(array('s' => 'Order Reference'), $_smarty_tpl);
                ?>
</th>
				<th class="item"><?php 
                echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl);
                ?>
</th>
				<th class="item"><?php 
                echo smartyTranslate(array('s' => 'Total price'), $_smarty_tpl);
                ?>
</th>
				<th class="item"><?php 
                echo smartyTranslate(array('s' => 'Payment'), $_smarty_tpl);
                ?>
</th>
				<th class="item"><?php 
                echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl);
                ?>
</th>
				<th class="item"><?php 
                echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl);
                ?>
</th>
				<th class="last_item" style="width:65px">&nbsp;</th>
			</tr>
		</thead>
		<tbody>
		<?php 
                $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['order']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['orders']->value;
//.........这里部分代码省略.........
开发者ID:h0n24,项目名称:leodig,代码行数:101,代码来源:c8d6ff54efab832f920de2331df9da6d9fda3ac6.file.history.tpl.php

示例9: is_array

    ?>
<span style="font-size:10px"><?php 
    if ($this->_tpl_vars['lifetime'] > time()) {
        ?>
Сайт активирован до: <?php 
        echo is_array($_tmp = $this->_tpl_vars['lifetime']) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d.%m.%Y") : smarty_modifier_date_format($_tmp, "%d.%m.%Y");
    } else {
        ?>
Сайт заблокирован<?php 
    }
    ?>
</span><?php 
} else {
    ?>
v.<?php 
    echo is_array($_tmp = $this->_tpl_vars['options']['version']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/([0-9][0-9])\$/", ".\\1") : smarty_modifier_regex_replace($_tmp, "/([0-9][0-9])\$/", ".\\1");
}
?>
&nbsp;</td>
-->
</tr>
<!-- fix end-->
</table>
</td>
</tr>
<tr >
<td width="100%" height="26" align="left">
<table border="0" bgcolor="#2f2f2f"  cellspacing="0" cellpadding="0" width="100%">
<tr height="42px">
<?php 
if ($this->_tpl_vars['auth']->isExpert()) {
开发者ID:procivam,项目名称:s-mir-new,代码行数:31,代码来源:%%BA^BA0^BA03F1D3%%_mheader.tpl.php

示例10: content_56277f85ed24d4_90701549

    function content_56277f85ed24d4_90701549($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include '/home/u481889647/public_html/tools/smarty/plugins/modifier.replace.php';
        }
        if (!is_callable('smarty_function_counter')) {
            include '/home/u481889647/public_html/tools/smarty/plugins/function.counter.php';
        }
        if (!is_callable('smarty_modifier_regex_replace')) {
            include '/home/u481889647/public_html/tools/smarty/plugins/modifier.regex_replace.php';
        }
        if (isset($_smarty_tpl->tpl_vars['order']->value)) {
            if (isset($_smarty_tpl->tpl_vars['reorderingAllowed']->value) && $_smarty_tpl->tpl_vars['reorderingAllowed']->value) {
                ?>
<div class="box box-small clearfix">
	<form id="submitReorder" action="<?php 
                if (isset($_smarty_tpl->tpl_vars['opc']->value) && $_smarty_tpl->tpl_vars['opc']->value) {
                    echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc', true);
                } else {
                    echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order', true);
                }
                ?>
" method="post" class="submit">
			<input type="hidden" value="<?php 
                echo $_smarty_tpl->tpl_vars['order']->value->id;
                ?>
" name="id_order"/>
			<input type="hidden" value="" name="submitReorder"/>

				<a href="#" onclick="$(this).closest('form').submit(); return false;" class="button btn btn-default button-medium pull-right"><span><?php 
                echo smartyTranslate(array('s' => 'Reorder'), $_smarty_tpl);
                ?>
<i class="icon-chevron-right right"></i></span></a>
			<p class="dark">
				<strong><?php 
                echo smartyTranslate(array('s' => 'Order Reference %s - placed on', 'sprintf' => $_smarty_tpl->tpl_vars['order']->value->getUniqReference()), $_smarty_tpl);
                ?>
 <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value->date_add, 'full' => 0), $_smarty_tpl);
                ?>
</strong>
			</p>

	</form>
</div>
<?php 
            }
            ?>
<div class="info-order box">
	<?php 
            if ($_smarty_tpl->tpl_vars['carrier']->value->id) {
                ?>
<p><strong class="dark"><?php 
                echo smartyTranslate(array('s' => 'Carrier'), $_smarty_tpl);
                ?>
</strong> <?php 
                if ($_smarty_tpl->tpl_vars['carrier']->value->name == "0") {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['shop_name']->value, ENT_QUOTES, 'UTF-8', true);
                } else {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['carrier']->value->name, ENT_QUOTES, 'UTF-8', true);
                }
                ?>
</p><?php 
            }
            ?>
	<p><strong class="dark"><?php 
            echo smartyTranslate(array('s' => 'Payment method'), $_smarty_tpl);
            ?>
</strong> <span class="color-myaccount"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value->payment, ENT_QUOTES, 'UTF-8', true);
            ?>
</span></p>
	<?php 
            if ($_smarty_tpl->tpl_vars['invoice']->value && $_smarty_tpl->tpl_vars['invoiceAllowed']->value) {
                ?>
	<p>
		<i class="icon-file-text"></i>
		<a target="_blank" href="<?php 
                echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-invoice', true);
                ?>
?id_order=<?php 
                echo intval($_smarty_tpl->tpl_vars['order']->value->id);
                if ($_smarty_tpl->tpl_vars['is_guest']->value) {
                    ?>
&amp;secure_key=<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value->secure_key, ENT_QUOTES, 'UTF-8', true);
                }
                ?>
"><?php 
                echo smartyTranslate(array('s' => 'Download your invoice as a PDF file.'), $_smarty_tpl);
                ?>
</a>
	</p>
	<?php 
            }
            ?>
	<?php 
            if ($_smarty_tpl->tpl_vars['order']->value->recyclable) {
                ?>
	<p><i class="icon-repeat"></i>&nbsp;<?php 
//.........这里部分代码省略.........
开发者ID:zangles,项目名称:lennyba,代码行数:101,代码来源:88531654c0e77ff68107529df5292a67a56eec38.file.order-detail.tpl.php

示例11: content_56277f885bfb19_05408508

    function content_56277f885bfb19_05408508($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_regex_replace')) {
            include '/home/u481889647/public_html/tools/smarty/plugins/modifier.regex_replace.php';
        }
        ?>
<tbody>
	<?php 
        $_smarty_tpl->tpl_vars['tr'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['tr']->_loop = false;
        $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['tr']->key => $_smarty_tpl->tpl_vars['tr']->value) {
            $_smarty_tpl->tpl_vars['tr']->_loop = true;
            $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['tr']->key;
            ?>
		<tr
		<?php 
            if ($_smarty_tpl->tpl_vars['position_identifier']->value) {
                ?>
id="tr_<?php 
                echo $_smarty_tpl->tpl_vars['id_category']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['tr']->value['position']['position'];
                ?>
"<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['tr']->value['color']) && $_smarty_tpl->tpl_vars['color_on_bg']->value) {
                ?>
style="background-color: <?php 
                echo $_smarty_tpl->tpl_vars['tr']->value['color'];
                ?>
"<?php 
            }
            ?>
 >
			<?php 
            if ($_smarty_tpl->tpl_vars['bulk_actions']->value && $_smarty_tpl->tpl_vars['has_bulk_actions']->value) {
                ?>
				<td class="text-center">
					<?php 
                $_smarty_tpl->tpl_vars['bulkActionPossible'] = new Smarty_variable(true, null, 0);
                ?>
					<?php 
                $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['value']->_loop = false;
                $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['list_skip_actions']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                    $_smarty_tpl->tpl_vars['value']->_loop = true;
                    $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
                    ?>
						<?php 
                    if (in_array($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value], $_smarty_tpl->tpl_vars['value']->value) == true) {
                        ?>
							<?php 
                        $_smarty_tpl->tpl_vars['bulkActionPossible'] = new Smarty_variable(false, null, 0);
                        ?>
						<?php 
                    }
                    ?>
					<?php 
                }
                ?>
					<?php 
                if ($_smarty_tpl->tpl_vars['bulkActionPossible']->value == true) {
                    ?>
						<input type="checkbox" name="<?php 
                    echo $_smarty_tpl->tpl_vars['table']->value;
                    ?>
Box[]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];
                    ?>
" class="noborder" />
					<?php 
                }
                ?>
				</td>
			<?php 
            }
            ?>
			<?php 
            $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['params']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['fields_display']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
//.........这里部分代码省略.........
开发者ID:zangles,项目名称:lennyba,代码行数:101,代码来源:1755af6d3b2349a1782feaa7093daf47289bd108.file.list_content.tpl.php

示例12: foreach

        foreach ($_from as $this->_tpl_vars['sqlkey'] => $this->_tpl_vars['showtable']) {
            ?>
		<tr class=b align="center">
		<?php 
            $_from = $this->_tpl_vars['showtable'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            if (count($_from)) {
                foreach ($_from as $this->_tpl_vars['file']) {
                    ?>
		<td><textarea name="sqltext[<?php 
                    echo $this->_tpl_vars['sqlkey'];
                    ?>
]"><?php 
                    echo is_array($_tmp = $this->_tpl_vars['file']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/[\r\t\n]/", '') : smarty_modifier_regex_replace($_tmp, "/[\r\t\n]/", '');
                    ?>
</textarea></td>
		<?php 
                }
            }
            unset($_from);
            ?>
		</tr>
	<?php 
        }
    }
    unset($_from);
    ?>
	<tr><td colspan=24 align="center"><?php 
    echo $this->_tpl_vars['fpageup'];
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:%%5E^5E2^5E2E9E19%%sqladmin.htm.php

示例13: content_56fb07cfb00857_87035871

    function content_56fb07cfb00857_87035871($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_regex_replace')) {
            include 'E:\\www\\etec\\terceiro-modulo\\MKT\\Aula05\\prestashop\\tools\\smarty\\plugins\\modifier.regex_replace.php';
        }
        $_smarty_tpl->_capture_stack[0][] = array('path', null, null);
        ob_start();
        ?>
	<a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true);
        ?>
">
		<?php 
        echo smartyTranslate(array('s' => 'My account'), $_smarty_tpl);
        ?>

	</a>
	<span class="navigation-pipe"><?php 
        echo $_smarty_tpl->tpl_vars['navigationPipe']->value;
        ?>
</span>
	<span class="navigation_page"><?php 
        echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl);
        ?>
</span>
<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<h1 class="page-heading bottom-indent"><?php 
        echo smartyTranslate(array('s' => 'Order history'), $_smarty_tpl);
        ?>
</h1>
<p class="info-title"><?php 
        echo smartyTranslate(array('s' => 'Here are the orders you\'ve placed since your account was created.'), $_smarty_tpl);
        ?>
</p>
<?php 
        if ($_smarty_tpl->tpl_vars['slowValidation']->value) {
            ?>
	<p class="alert alert-warning"><?php 
            echo smartyTranslate(array('s' => 'If you have just placed an order, it may take a few minutes for it to be validated. Please refresh this page if your order is missing.'), $_smarty_tpl);
            ?>
</p>
<?php 
        }
        ?>
<div class="block-center" id="block-history">
	<?php 
        if ($_smarty_tpl->tpl_vars['orders']->value && count($_smarty_tpl->tpl_vars['orders']->value)) {
            ?>
		<table id="order-list" class="table table-bordered footab">
			<thead>
				<tr>
					<th class="first_item" data-sort-ignore="true"><?php 
            echo smartyTranslate(array('s' => 'Order reference'), $_smarty_tpl);
            ?>
</th>
					<th class="item"><?php 
            echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl);
            ?>
</th>
					<th data-hide="phone" class="item"><?php 
            echo smartyTranslate(array('s' => 'Total price'), $_smarty_tpl);
            ?>
</th>
					<th data-sort-ignore="true" data-hide="phone,tablet" class="item"><?php 
            echo smartyTranslate(array('s' => 'Payment'), $_smarty_tpl);
            ?>
</th>
					<th class="item"><?php 
            echo smartyTranslate(array('s' => 'Status'), $_smarty_tpl);
            ?>
</th>
					<th data-sort-ignore="true" data-hide="phone,tablet" class="item"><?php 
            echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl);
            ?>
</th>
					<th data-sort-ignore="true" data-hide="phone,tablet" class="last_item">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
				<?php 
            $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['order']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['orders']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
//.........这里部分代码省略.........
开发者ID:edilsonribeiro,项目名称:ETEC,代码行数:101,代码来源:8bc30e6cf5c281d503ab69c6443da183bff00824.file.history.tpl.php

示例14: smarty_modifier_regex_replace

						"<?php 
        echo $_smarty_tpl->tpl_vars['roomPlan']->value['RoomMaxPersons'];
        ?>
", "<?php 
        echo $_smarty_tpl->tpl_vars['roomPlan']->value['zaiku'];
        ?>
",
                        "<?php 
        echo $_smarty_tpl->tpl_vars['roomPlan']->value['liaojin'];
        ?>
", "<?php 
        echo $_smarty_tpl->tpl_vars['roomPlan']->value['RoomSize'];
        ?>
",
						"<?php 
        echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['roomPlan']->value['RoomPlanDescription'], "/\r\n/", '\\n');
        ?>
", "<?php 
        echo $_smarty_tpl->tpl_vars['roomPlan']->value['Breakfast'];
        ?>
", 
						"<?php 
        echo $_smarty_tpl->tpl_vars['roomPlan']->value['Dinner'];
        ?>
", "<?php 
        echo $_smarty_tpl->tpl_vars['roomPlan']->value['UseCon'];
        ?>
", "<?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['roomPlan']->value['ConFromTime'], "%Y-%m-%d");
        ?>
", 
开发者ID:khuyennd,项目名称:dev-tasagent,代码行数:31,代码来源:0b2910eab96ac984c8ef1d075e87dd24098d5196.file.roomplanedit.tpl.php

示例15: content_555da72d894037_71189998

    function content_555da72d894037_71189998($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include '/home/matej/webapps/webshop/tools/smarty/plugins/modifier.replace.php';
        }
        if (!is_callable('smarty_modifier_regex_replace')) {
            include '/home/matej/webapps/webshop/tools/smarty/plugins/modifier.regex_replace.php';
        }
        ?>

<div class="leadin"></div>


	<script type="text/javascript">
	var admin_order_tab_link = "<?php 
        echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders'));
        ?>
";
	var id_order = <?php 
        echo $_smarty_tpl->tpl_vars['order']->value->id;
        ?>
;
	var id_lang = <?php 
        echo $_smarty_tpl->tpl_vars['current_id_lang']->value;
        ?>
;
	var id_currency = <?php 
        echo $_smarty_tpl->tpl_vars['order']->value->id_currency;
        ?>
;
	var id_customer = <?php 
        echo intval($_smarty_tpl->tpl_vars['order']->value->id_customer);
        ?>
;
	<?php 
        $_smarty_tpl->tpl_vars['PS_TAX_ADDRESS_TYPE'] = new Smarty_variable(Configuration::get('PS_TAX_ADDRESS_TYPE'), null, 0);
        ?>
	var id_address = <?php 
        echo $_smarty_tpl->tpl_vars['order']->value->{$_smarty_tpl->tpl_vars['PS_TAX_ADDRESS_TYPE']->value};
        ?>
;
	var currency_sign = "<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->sign;
        ?>
";
	var currency_format = "<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->format;
        ?>
";
	var currency_blank = "<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->blank;
        ?>
";
	var priceDisplayPrecision = <?php 
        echo intval(@constant('_PS_PRICE_DISPLAY_PRECISION_'));
        ?>
;
	var use_taxes = <?php 
        if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_INC')) {
            ?>
true<?php 
        } else {
            ?>
false<?php 
        }
        ?>
;
	var stock_management = <?php 
        echo intval($_smarty_tpl->tpl_vars['stock_management']->value);
        ?>
;
	var txt_add_product_stock_issue = "<?php 
        echo smartyTranslate(array('s' => 'Are you sure you want to add this quantity?', 'js' => 1), $_smarty_tpl);
        ?>
";
	var txt_add_product_new_invoice = "<?php 
        echo smartyTranslate(array('s' => 'Are you sure you want to create a new invoice?', 'js' => 1), $_smarty_tpl);
        ?>
";
	var txt_add_product_no_product = "<?php 
        echo smartyTranslate(array('s' => 'Error: No product has been selected', 'js' => 1), $_smarty_tpl);
        ?>
";
	var txt_add_product_no_product_quantity = "<?php 
        echo smartyTranslate(array('s' => 'Error: Quantity of products must be set', 'js' => 1), $_smarty_tpl);
        ?>
";
	var txt_add_product_no_product_price = "<?php 
        echo smartyTranslate(array('s' => 'Error: Product price must be set', 'js' => 1), $_smarty_tpl);
        ?>
";
	var txt_confirm = "<?php 
        echo smartyTranslate(array('s' => 'Are you sure?', 'js' => 1), $_smarty_tpl);
        ?>
";
	var statesShipped = new Array();
	var has_voucher = <?php 
        if (count($_smarty_tpl->tpl_vars['discounts']->value)) {
            ?>
1<?php 
//.........这里部分代码省略.........
开发者ID:blaz1988,项目名称:presta,代码行数:101,代码来源:12b3e62206caa9b619ae5782c3939d409e907d4e.file.view.tpl.php


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