本文整理汇总了PHP中smarty_function_assign函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_assign函数的具体用法?PHP smarty_function_assign怎么用?PHP smarty_function_assign使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_assign函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_assign
$this->_sections['d']['total'] = $this->_sections['d']['loop'];
if ($this->_sections['d']['total'] == 0) {
$this->_sections['d']['show'] = false;
}
} else {
$this->_sections['d']['total'] = 0;
}
if ($this->_sections['d']['show']) {
for ($this->_sections['d']['index'] = $this->_sections['d']['start'], $this->_sections['d']['iteration'] = 1; $this->_sections['d']['iteration'] <= $this->_sections['d']['total']; $this->_sections['d']['index'] += $this->_sections['d']['step'], $this->_sections['d']['iteration']++) {
$this->_sections['d']['rownum'] = $this->_sections['d']['iteration'];
$this->_sections['d']['index_prev'] = $this->_sections['d']['index'] - $this->_sections['d']['step'];
$this->_sections['d']['index_next'] = $this->_sections['d']['index'] + $this->_sections['d']['step'];
$this->_sections['d']['first'] = $this->_sections['d']['iteration'] == 1;
$this->_sections['d']['last'] = $this->_sections['d']['iteration'] == $this->_sections['d']['total'];
if ($this->_tpl_vars['defines'][$this->_sections['files']['index']]['defines'][$this->_sections['d']['index']]['conflicts']) {
echo smarty_function_assign(array('var' => 'defineconflict', 'value' => true), $this);
}
}
}
?>
<tgroup cols="<?php
if ($this->_tpl_vars['defineconflict']) {
?>
4<?php
} else {
?>
3<?php
}
?>
">
<thead>
示例2: smarty_function_assign
for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1; $this->_sections['i']['iteration'] <= $this->_sections['i']['total']; $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++) {
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first'] = $this->_sections['i']['iteration'] == 1;
$this->_sections['i']['last'] = $this->_sections['i']['iteration'] == $this->_sections['i']['total'];
?>
<?php
echo smarty_function_assign(array('var' => 'time_val', 'value' => $this->_sections['i']['index']), $this);
?>
<?php
if ($this->_tpl_vars['time_val'] < 10) {
?>
<?php
echo smarty_function_assign(array('var' => 'time_val', 'value' => is_array($_tmp = '0') ? $this->_run_mod_handler('cat', true, $_tmp, $this->_sections['i']['index']) : smarty_modifier_cat($_tmp, $this->_sections['i']['index'])), $this);
?>
<?php
}
?>
<option value="<?php
echo $this->_tpl_vars['time_val'];
?>
" <?php
if ($this->_tpl_vars['time_val'] == $this->_tpl_vars['dtls'][0]['iEndAfterMin']) {
?>
selected<?php
}
?>
><?php
示例3: smarty_function_assign
<span style='display:inline-block; height:10px; width:50px; padding:1px; margin:0px; text-align:right;display: none;' class="ox"><?php
echo smarty_function_assign(array('var' => 'ot', 'value' => $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fOtherTax1'] * $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fAmount'] / 100), $this);
echo is_array($_tmp = $this->_tpl_vars['ot']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
?>
<input type="hidden" name="fOtherTax1<?php
echo $this->_sections['i']['index'];
?>
" id="fOtherTax1<?php
echo $this->_sections['i']['index'];
?>
" value="<?php
echo $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fOtherTax1'];
?>
" /> </span>
<span style='display:inline-block; height:10px; width:80px; padding:1px; margin:0px; text-align:right;' class="wt"><?php
echo smarty_function_assign(array('var' => 'wt', 'value' => $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fWithHoldingTax'] * $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fAmount'] / 100), $this);
echo is_array($_tmp = $this->_tpl_vars['wt']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
?>
<input type="hidden" name="fWithHoldingTax<?php
echo $this->_sections['i']['index'];
?>
" id="fWithHoldingTax<?php
echo $this->_sections['i']['index'];
?>
" value="<?php
echo $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fWithHoldingTax'];
?>
" /> </span>
<span style='display:inline-block; height:10px; width:155px; padding:1px; margin:0px; text-align:right;' class="lt"><?php
echo is_array($_tmp = $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fLineTotal']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
?>
示例4: smarty_function_assign
<?php
} else {
?>
</ul>
<li><?php
echo $this->_tpl_vars['toc'][$this->_sections['toc']['index']]['link'];
?>
</li>
<?php
}
?>
<?php
}
?>
<?php
echo smarty_function_assign(array('var' => 'lastcontext', 'value' => $this->_tpl_vars['toc'][$this->_sections['toc']['index']]['tagname']), $this);
?>
<?php
} else {
?>
<li><?php
echo $this->_tpl_vars['toc'][$this->_sections['toc']['index']]['link'];
?>
</li>
<?php
}
?>
<?php
}
}
示例5: smarty_core_load_plugins
<?php
/* Smarty version 2.6.0, created on 2004-01-18 23:01:11
compiled from toc.tpl */
require_once SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'assign', 'toc.tpl', 6, false))), $this);
?>
<pdffunction:ezStopPageNumbers arg="1" arg="1" />
<pdffunction:ezInsertMode arg="1" arg="1" arg="after" />
<newpage />
<text size="26" justification="centre">Contents
</text>
<?php
echo smarty_function_assign(array('var' => 'xpos', 'value' => '520'), $this);
?>
<?php
if (count($_from = (array) $this->_tpl_vars['contents'])) {
foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']) {
if ($this->_tpl_vars['v'][2] == '1') {
?>
<text size="16" aright="<?php
echo $this->_tpl_vars['xpos'];
?>
"><c:ilink:toc<?php
echo $this->_tpl_vars['k'];
?>
><?php
echo $this->_tpl_vars['v'][0];
?>
</c:ilink><C:dots:3<?php
示例6: smarty_function_assign
?>
<?php
if ((is_array($_tmp = $this->_tpl_vars['rfq2awrdacptsts'][$this->_sections['l']['index']]['iStatusID']) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['rfq2awrdacpt']) : in_array($_tmp, $this->_tpl_vars['rfq2awrdacpt'])) && $this->_tpl_vars['rfq2awrdacptsts'][$this->_sections['l']['index']]['vStatus_en'] != 'Accepted') {
?>
<?php
if ($this->_tpl_vars['an'] == 'y') {
?>
,<?php
}
?>
<?php
echo $this->_tpl_vars['rfq2awrdacptsts'][$this->_sections['l']['index']]['vStatus'];
?>
<?php
echo smarty_function_assign(array('var' => 'an', 'value' => 'y'), $this);
?>
<?php
}
?>
<?php
}
}
?>
<br /> <br />
</td>
</tr>
<?php
}
?>
示例7: smarty_function_eval
echo smarty_function_eval(array('var' => $this->_tpl_vars['compiledclassindex']), $this);
?>
<?php
}
?>
<?php
}
?>
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<?php
if (!$this->_tpl_vars['hasel']) {
echo smarty_function_assign(array('var' => 'hasel', 'value' => false), $this);
}
if ($this->_tpl_vars['hasel']) {
?>
<h1><?php
echo is_array($_tmp = $this->_tpl_vars['eltype']) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp);
?>
: <?php
echo $this->_tpl_vars['class_name'];
?>
</h1>
Source Location: <?php
echo $this->_tpl_vars['source_location'];
?>
<br /><br />
<?php
示例8: smarty_function_assign
?>
<a title="<?php
echo $this->_tpl_vars['LBL_PRINT'];
?>
" style="cursor:pointer" class="colorboxfile" rel="<?php
echo $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iPurchaseOrderID'];
?>
"><img src="<?php
echo $this->_tpl_vars['SITE_IMAGES'];
?>
report.png" alt="" border="0" style="vertical-align:middle;" /></a>
<?php
}
?>
<?php
echo smarty_function_assign(array('var' => 'iex', 'value' => $this->_tpl_vars['poObj']->chkinvex($this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iPurchaseOrderID'])), $this);
?>
<?php
if ($this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iaStatusID'] == $this->_tpl_vars['acptsts'] && $this->_tpl_vars['iex'] == 'y' && ($this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iInvoiceID'] < 1 || (is_array($_tmp = $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iInvoiceID']) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)) != '')) {
?>
<img src="<?php
echo $this->_tpl_vars['SITE_IMAGES'];
?>
create_new_icon.png" title="<?php
echo $this->_tpl_vars['LBL_CREATE_INVOICE'];
?>
" alt="" border="0" onclick="return ci('<?php
echo $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iPurchaseOrderID'];
?>
');" style="vertical-align:middle; cursor:pointer;" />
示例9: smarty_function_assign
<span style='display:inline-block; height:10px; width:70px; padding:1px; margin:0px; text-align:right;' class='fv'><?php
echo smarty_function_assign(array('var' => 'vt', 'value' => $this->_tpl_vars['poData'][$this->_sections['i']['index']]['fVAT'] * $this->_tpl_vars['poData'][$this->_sections['i']['index']]['fAmount'] / 100), $this);
echo is_array($_tmp = $this->_tpl_vars['vt']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
?>
<input type="hidden" name="fVAT<?php
echo $this->_sections['i']['index'];
?>
" id="fVAT<?php
echo $this->_sections['i']['index'];
?>
" value="<?php
echo $this->_tpl_vars['poData'][$this->_sections['i']['index']]['fVAT'];
?>
" /></span>
<span style='display:inline-block; height:10px; width:90px; padding:1px; margin:0px; text-align:right;' class='ox'><?php
echo smarty_function_assign(array('var' => 'ot', 'value' => $this->_tpl_vars['poData'][$this->_sections['i']['index']]['fOtherTax1'] * $this->_tpl_vars['poData'][$this->_sections['i']['index']]['fAmount'] / 100), $this);
echo is_array($_tmp = $this->_tpl_vars['ot']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
?>
<input type="hidden" name="fOtherTax1<?php
echo $this->_sections['i']['index'];
?>
" id="fOtherTax1<?php
echo $this->_sections['i']['index'];
?>
" value="<?php
echo $this->_tpl_vars['poData'][$this->_sections['i']['index']]['fOtherTax1'];
?>
" /> </span>
<span style='display:inline-block; height:10px; width:125px; padding:1px; margin:0px; text-align:right;' class='lt'><?php
echo is_array($_tmp = $this->_tpl_vars['poData'][$this->_sections['i']['index']]['fLineTotal']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
?>
示例10: smarty_function_assign
echo $this->_tpl_vars['secQuestion2'];
?>
<!--<input type="text" name="Data[iSecretQuestion2ID]" class="input-rag" id="textfield18" style="width:228px;" /> -->
</td>
</tr>
<tr>
<td><?php
echo $this->_tpl_vars['LBL_ANSWER'];
?>
</td>
<td>:</td>
<td>
<?php
if ((is_array($_tmp = $this->_tpl_vars['userData']['vAnwser']) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)) != '' && $this->_tpl_vars['view'] == 'edit') {
echo smarty_function_assign(array('var' => 'ans2', 'value' => "##########"), $this);
?>
<input type="text" name="vAnwser" value="<?php
echo $this->_tpl_vars['ans2'];
?>
" class="input-rag" id="vAnwser" style="width:228px;" title="<?php
echo $this->_tpl_vars['LBL_ENTER_ANSWER'];
?>
" readonly="readonly" />
<?php
if ($this->_tpl_vars['userData']['iSecretQuestion2ID'] > 0) {
?>
<a href="<?php
echo $this->_tpl_vars['SITE_URL_DUM'];
?>
示例11: smarty_function_assign
?>
</b>
</td>
<td width="74" align="center">
<?php
if ($this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['status'] == 'Rejected') {
?>
<?php
echo smarty_function_assign(array('var' => 'ondelete', 'value' => is_array($_tmp = is_array($_tmp = "Delete('delete','") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iInvoiceID']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iInvoiceID'])) ? $this->_run_mod_handler('cat', true, $_tmp, "')") : smarty_modifier_cat($_tmp, "')")), $this);
?>
<?php
} else {
?>
<?php
echo smarty_function_assign(array('var' => 'ondelete', 'value' => "alert('" . $this->_tpl_vars['MSG_REJECTED_INVOICE_DEL'] . "')"), $this);
?>
<?php
}
?>
<!-- <a href="#"><img src="<?php
echo $this->_tpl_vars['SITE_IMAGES'];
?>
sm_images/icon-pen.gif" alt="" border="0" style="vertical-align:middle;" /></a> -->
<a href="<?php
echo $this->_tpl_vars['SITE_URL_DUM'];
?>
invoiceview/<?php
echo $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['iInvoiceID'];
?>
示例12: smarty_function_assign
?>
</a></li> <li><a href="<?php
echo $this->_tpl_vars['SITE_URL_DUM'];
?>
creategroup" <?php
if ((is_array($_tmp = '/(.*)(creategroup)(.*)/') ? $this->_run_mod_handler('preg_match', true, $_tmp, $this->_tpl_vars['currentUrl']) : preg_match($_tmp, $this->_tpl_vars['currentUrl'])) || (is_array($_tmp = '/(.*)(groupview)(.*)/') ? $this->_run_mod_handler('preg_match', true, $_tmp, $this->_tpl_vars['currentUrl']) : preg_match($_tmp, $this->_tpl_vars['currentUrl']))) {
?>
class="active"<?php
}
?>
><?php
echo $this->_tpl_vars['LBL_CREATE_GROUP'];
?>
</a></li>
<?php
echo smarty_function_assign(array('var' => 'linkurl', 'value' => is_array($_tmp = $this->_tpl_vars['SITE_URL_DUM']) ? $this->_run_mod_handler('cat', true, $_tmp, 'grouplist') : smarty_modifier_cat($_tmp, 'grouplist')), $this);
?>
<li><a href="<?php
echo $this->_tpl_vars['SITE_URL_DUM'];
?>
grouplist" <?php
if ((is_array($_tmp = $this->_tpl_vars['currentUrl']) ? $this->_run_mod_handler('strpos', true, $_tmp, $this->_tpl_vars['linkurl']) : strpos($_tmp, $this->_tpl_vars['linkurl'])) !== false) {
?>
class="active"<?php
}
?>
><?php
echo $this->_tpl_vars['LBL_GROUP_LIST'];
?>
</a></li>
示例13: smarty_function_assign
}
?>
>No</option>
<option <?php
if ($this->_tpl_vars['smdata'][0]['eEmailNotification'] == 'Yes') {
?>
selected<?php
}
?>
>Yes</option>
</select> -->
<?php
if ($this->_tpl_vars['userData']['eEmailNotification'] == 'Yes') {
?>
<?php
echo smarty_function_assign(array('var' => 'email', 'value' => 'checked'), $this);
?>
<?php
}
?>
<input type="checkbox" id="eEmailNotification" value="Yes" name="Data[eEmailNotification]" <?php
echo $this->_tpl_vars['email'];
?>
>
</td>
</tr>
<tr>
<td><?php
示例14: smarty_function_assign
<tr>
<td> </td>
</tr>
</table>
</form>
</div>
</div>
<div> </div>
</div>
</div>
<span id="spn" style="display:hidden;"></span>
<span id="vldms" style="display:none;"></span>
</div>
<?php
if ((is_array($_tmp = $this->_tpl_vars['invitems']) ? $this->_run_mod_handler('is_array', true, $_tmp) : is_array($_tmp)) && count($this->_tpl_vars['invitems']) > 1) {
echo smarty_function_assign(array('var' => 'cnt', 'value' => count($this->_tpl_vars['invitems'])), $this);
?>
<?php
}
?>
<script type="text/javascript" src="<?php
echo $this->_tpl_vars['SITE_CONTENT_JS'];
?>
money_format.js"></script>
<?php
echo '
<script type="text/javascript">
var sbt = \'n\';
var cnt = \'';
echo $this->_tpl_vars['cnt'];
示例15: smarty_function_assign
}
?>
<?php
}
?>
</ul>
</li>
<?php
}
?>
<?php
if ($this->_tpl_vars['ENABLE_AUCTION'] == 'Yes') {
?>
<?php
echo smarty_function_assign(array('var' => 'invu', 'value' => 'invacptlist'), $this);
?>
<li <?php
if (is_array($_tmp = '/(.*)(rfq2)(.*)/') ? $this->_run_mod_handler('preg_match', true, $_tmp, $this->_tpl_vars['currentUrl']) : preg_match($_tmp, $this->_tpl_vars['currentUrl'])) {
?>
<?php
} else {
?>
style="display:none;"<?php
}
?>
>
<a href="#" class="dropdown-toggle">
<i class="fa fa-file-o"></i>
<span><?php