本文整理汇总了PHP中smarty_modifier_nl2br函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_modifier_nl2br函数的具体用法?PHP smarty_modifier_nl2br怎么用?PHP smarty_modifier_nl2br使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_modifier_nl2br函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: is_array
<em class="required">※</em><?php
}
?>
</dt>
<dd><?php
echo $this->_tpl_vars['app_ne']['form'];
?>
<?php
echo $this->_tpl_vars['app']['params']['suffix'];
?>
</dd>
<?php
if ($this->_tpl_vars['app']['params']['example']) {
?>
<dd><?php
echo is_array($_tmp = $this->_tpl_vars['app']['params']['example']) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</dd>
<?php
}
?>
</dl>
</fieldset>
</form>
<?php
}
?>
<form action="<?php
echo $this->_tpl_vars['script'];
?>
" method="post">
开发者ID:hiroki-namekawa,项目名称:test-upr,代码行数:31,代码来源:ad75993c285b3a096b8feb9eb97dbb28^%%2F^2F4^2F463188%%formModify.tpl.php
示例2: smarty_function_dataform2
//.........这里部分代码省略.........
} else {
$_tmp = '--';
}
break;
case 'image':
if ($_val) {
if (THUMBNAILING) {
$_tmp = '<a href="javascript:openimage(\'' . URL . '/files/' . $table . '/' . $_val . '\',\'Imagen: ' . $_val . '\')"><img src="' . URL . '/' . ALM_URI . '/pic/50/' . $table . '/' . $_val . '" alt="' . $_val . '" width="50" border="0" /></a>';
} else {
$_tmp = '<a href="javascript:openimage(\'/files/' . $table . '/' . $_val . '\',\'Imagen: ' . $_val . '\')"><img src="' . URL . '/' . ALM_URI . '/pic/50/' . $table . '/' . $_val . '" alt="' . $_val . '" width="50" border="0" /></a>';
}
} else {
$_tmp = '--';
}
break;
case 'hidden':
case 'serial':
$hidden = true;
$_tmp = '';
break;
default:
if ($dd[$_key]['extra']['list_values']) {
$_options = $dd[$_key]['extra']['list_values'];
$_val = $_options[trim($_val)];
}
if ($_preset[$_key]) {
$_tmp = '';
if (!empty($_pre)) {
$_pre .= ',';
}
$_pre .= $_key . '=' . $_preset[$_key];
} else {
$_tmp = smarty_modifier_wordwrap($_val);
$_tmp = smarty_modifier_nl2br($_tmp);
}
}
if (!$_preset[$_key]) {
$_tmp = preg_replace('/_FCELL_/', qdollar($_tmp), FROW);
$_tmp = preg_replace('/_LABEL_/', $labels[$_key], $_tmp);
}
if (!$hidden) {
$_html_rows .= $_tmp;
}
$hidden = false;
}
$_html_cmd = preg_replace('/{_ID_}/', $row[$key], FCMD);
if (!empty($_pre)) {
$_pre = '<input type="hidden" name="preset" value="' . $_pre . '" />';
}
}
if ($type == 2) {
$_html_cmd = FCMDADD;
$action = "add";
}
if ($type == 1) {
$_html_cmd = FCMDMOD;
$action = "save";
}
if ($type == 0) {
$_html_cmd = FCMD;
$action = "edit";
}
//if ($cmd)
$_html_rows .= $_html_cmd;
$_i++;
$_tmp = FROW;
示例3: is_array
<?php
} else {
?>
<?php
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['price02_min']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('n2s', true, $_tmp) : smarty_modifier_n2s($_tmp);
?>
~<?php
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['price02_max']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('n2s', true, $_tmp) : smarty_modifier_n2s($_tmp);
?>
<?php
}
?>
円</span></p>
<p class="mini"><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrItem']['comment']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</p>
</div>
</div> <?php
if ((is_array($_tmp = $this->_foreach['arrRecommend']['iteration']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) % 2 === 0) {
?>
<div class="clear"></div>
<?php
}
?>
<?php
}
}
unset($_from);
?>
示例4: smarty_function_backendUserUrl
</span>
<a href="<?php
echo smarty_function_backendUserUrl(array('user' => $this->_tpl_vars['note']['User']), $this);
?>
"><?php
echo $this->_tpl_vars['note']['User']['fullName'];
?>
</a>
</div>
<div class="noteDate">
<?php
echo $this->_tpl_vars['note']['formatted_time']['date_full'];
?>
<?php
echo $this->_tpl_vars['note']['formatted_time']['time_full'];
?>
</div>
<div class="clear"></div>
<div class="noteText">
<?php
echo is_array($_tmp = $this->_tpl_vars['note']['text']) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</div>
</li>
示例5: is_array
<?php
if (is_null($this->_tpl_vars['input']['end_minute'])) {
?>
--
<?php
} else {
echo is_array($_tmp = smarty_modifier_t_escape($this->_tpl_vars['input']['end_minute'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%02d") : smarty_modifier_string_format($_tmp, "%02d");
?>
<?php
}
?>
分
</td></tr>
<tr><th>詳 細</th><td><?php
echo is_array($_tmp = smarty_modifier_t_escape($this->_tpl_vars['input']['body'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</td></tr>
<?php
if (!$this->_tpl_vars['is_unused_schedule']) {
?>
<tr><th>お知らせメール</th><td>
<?php
if ($this->_tpl_vars['input']['is_receive_mail']) {
?>
受け取る
<?php
} else {
?>
受け取らない
<?php
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:31,代码来源:dft_pc_templates^%%A6^A6F^A6F51104%%h_schedule_edit_confirm.tpl.php
示例6: smarty_function_t_img_url
?>
<li><a href="<?php
echo smarty_function_t_img_url(array('filename' => smarty_modifier_t_escape($this->_tpl_vars['item']['image_filename3'])), $this);
?>
" target="_blank"><img src="<?php
echo smarty_function_t_img_url(array('filename' => smarty_modifier_t_escape($this->_tpl_vars['item']['image_filename3']), 'w' => 120, 'h' => 120), $this);
?>
" alt="" /></a></li><?php
}
?>
</ul>
<?php
}
?>
<p class="text"><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = smarty_modifier_t_escape($this->_tpl_vars['item']['body'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)) ? $this->_run_mod_handler('t_url2cmd', true, $_tmp, 'community', smarty_modifier_t_escape($this->_tpl_vars['item']['c_member_id'])) : smarty_modifier_t_url2cmd($_tmp, 'community', smarty_modifier_t_escape($this->_tpl_vars['item']['c_member_id']))) ? $this->_run_mod_handler('t_cmd', true, $_tmp, 'community') : smarty_modifier_t_cmd($_tmp, 'community');
?>
</p>
</div>
<?php
if ($this->_tpl_vars['item']['filename'] && @OPENPNE_USE_FILEUPLOAD) {
?>
<div class="block attachFile"><ul>
<li><a href="<?php
echo smarty_function_t_url(array('m' => 'pc', 'a' => 'do_c_file_download'), $this);
?>
&target_c_commu_topic_comment_id=<?php
echo smarty_modifier_t_escape($this->_tpl_vars['item']['c_commu_topic_comment_id']);
?>
&sessid=<?php
echo smarty_modifier_t_escape($this->_tpl_vars['PHPSESSID']);
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:31,代码来源:dft_pc_templates^%%7D^7DB^7DBB9D59%%c_topic_detail.tpl.php
示例7: is_array
?>
<!--商品ステータス-->
<!--アイコン-->
<!--★商品名★-->
<h3>
<a href="<?php
echo is_array($_tmp = @DETAIL_P_HTML) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
echo is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['product_id']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
"><?php
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['name']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
?>
</a>
</h3>
<p class="listcomment"><!--★コメント★--><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['main_list_comment']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</p>
<p>
<span class="pricebox">価格<span class="mini">(税込)</span>:
<span class="price">
<?php
if ((is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['price02_min']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) == (is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['price02_max']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp))) {
?>
<?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['price02_min']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('sfPreTax', true, $_tmp, is_array($_tmp = $this->_tpl_vars['arrSiteInfo']['tax']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), is_array($_tmp = $this->_tpl_vars['arrSiteInfo']['tax_rule']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) : SC_Utils_Ex::sfPreTax($_tmp, is_array($_tmp = $this->_tpl_vars['arrSiteInfo']['tax']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), is_array($_tmp = $this->_tpl_vars['arrSiteInfo']['tax_rule']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp))) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp);
?>
<?php
} else {
?>
示例8: is_array
if ($this->_tpl_vars['profile']['is_required']) {
?>
<strong>※</strong><?php
}
?>
</th>
<td>
<?php
if ($this->_tpl_vars['prof']['profile'][$this->_tpl_vars['profile']['name']]['value']) {
?>
<?php
if ($this->_tpl_vars['profile']['form_type'] == 'textarea') {
?>
<?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = smarty_modifier_t_escape($this->_tpl_vars['prof']['profile'][$this->_tpl_vars['profile']['name']]['value'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)) ? $this->_run_mod_handler('t_url2cmd', true, $_tmp, 'profile', smarty_modifier_t_escape($this->_tpl_vars['u'])) : smarty_modifier_t_url2cmd($_tmp, 'profile', smarty_modifier_t_escape($this->_tpl_vars['u']))) ? $this->_run_mod_handler('t_cmd', true, $_tmp, 'profile') : smarty_modifier_t_cmd($_tmp, 'profile');
?>
<?php
} elseif ($this->_tpl_vars['profile']['form_type'] == 'checkbox') {
?>
<?php
echo smarty_modifier_t_implode(smarty_modifier_t_escape($this->_tpl_vars['prof']['profile'][$this->_tpl_vars['profile']['name']]['value']), ", ");
?>
<?php
} else {
?>
<?php
echo smarty_modifier_t_escape($this->_tpl_vars['prof']['profile'][$this->_tpl_vars['profile']['name']]['value']);
?>
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:31,代码来源:dft_pc_templates^%%2C^2C1^2C1B2E96%%h_config_prof_confirm.tpl.php
示例9: smarty_modifier_t_escape
月<?php
echo smarty_modifier_t_escape($this->_tpl_vars['event']['open_date_day']);
?>
日 <?php
echo smarty_modifier_t_escape($this->_tpl_vars['event']['open_date_comment']);
?>
</td></tr>
<tr><th>開催場所</th><td><?php
echo smarty_modifier_t_escape($this->_tpl_vars['event']['open_pref_value']);
?>
<?php
echo smarty_modifier_t_escape($this->_tpl_vars['event']['open_pref_comment']);
?>
</td></tr>
<tr><th>詳細</th><td><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = smarty_modifier_t_escape($this->_tpl_vars['event']['detail'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)) ? $this->_run_mod_handler('t_url2cmd', true, $_tmp, 'community', smarty_modifier_t_escape($this->_tpl_vars['u'])) : smarty_modifier_t_url2cmd($_tmp, 'community', smarty_modifier_t_escape($this->_tpl_vars['u']))) ? $this->_run_mod_handler('t_cmd', true, $_tmp, 'community') : smarty_modifier_t_cmd($_tmp, 'community');
?>
</td></tr>
<tr><th>募集期限</th><td>
<?php
if ($this->_tpl_vars['event']['invite_period_year'] && $this->_tpl_vars['event']['invite_period_month'] && $this->_tpl_vars['event']['invite_period_day']) {
echo smarty_modifier_t_escape($this->_tpl_vars['event']['invite_period_year']);
?>
年<?php
echo smarty_modifier_t_escape($this->_tpl_vars['event']['invite_period_month']);
?>
月<?php
echo smarty_modifier_t_escape($this->_tpl_vars['event']['invite_period_day']);
?>
日
<?php
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:31,代码来源:dft_pc_templates^%%04^04E^04E57430%%c_event_add_confirm.tpl.php
示例10: is_array
<a class="white_link" href="javascript:void(null);" onClick="javascript:openRawHeaders();">Blocked Message Raw Headers</a>
<?php
}
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="<?php
echo $this->_tpl_vars['light_color'];
?>
" id="email_message" class="default">
<?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['note']['message']) ? $this->_run_mod_handler('highlight_quoted', true, $_tmp) : smarty_modifier_highlight_quoted($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)) ? $this->_run_mod_handler('activateLinks', true, $_tmp) : Link_Filter::activateLinks($_tmp);
?>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="<?php
echo $this->_tpl_vars['internal_color'];
?>
" align="center">
<input class="button" type="button" value="Reply" onClick="javascript:reply(<?php
echo $_GET['id'];
?>
, <?php
echo $this->_tpl_vars['issue_id'];
?>
示例11: is_array
?>
<?php
if ($this->_tpl_vars['currentJournal']->getSetting('metaCitations')) {
?>
<div id="citations">
<h4><?php
echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.citations"), $this);
?>
</h4>
<table width="100%" class="data">
<tr valign="top">
<td width="20%" class="label"><?php
echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.citations"), $this);
?>
</td>
<td width="80%" class="value"><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['submission']->getCitations()) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : String::stripUnsafeHtml($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)) ? $this->_run_mod_handler('default', true, $_tmp, "—") : smarty_modifier_default($_tmp, "—");
?>
</td>
</tr>
</table>
</div>
<?php
}
?>
</div><!-- metadata -->
示例12: is_array
?>
" class="default_white">
<nobr><b><?php
echo $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_title'];
?>
:</b> </nobr>
</td>
<td class="default" width="100%" bgcolor="<?php
echo $this->_tpl_vars['row_color'];
?>
">
<?php
if ($this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_type'] == 'textarea') {
?>
<?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['icf_value']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) ? $this->_run_mod_handler('activateLinks', true, $_tmp, 'link') : Link_Filter::activateLinks($_tmp, 'link')) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
<?php
} else {
?>
<?php
echo is_array($_tmp = $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['icf_value']) ? $this->_run_mod_handler('formatCustomValue', true, $_tmp, $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_id'], $_GET['id'], true) : Custom_Field::formatValue($_tmp, $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_id'], $_GET['id'], true);
?>
<?php
}
?>
</td>
</tr>
<?php
示例13: is_array
?>
<?php
if (!empty($this->_tpl_vars['journalSettings']['contactAffiliation'])) {
?>
<?php
echo is_array($_tmp = $this->_tpl_vars['journalSettings']['contactAffiliation']) ? $this->_run_mod_handler('escape', true, $_tmp) : $this->_plugins['modifier']['escape'][0][0]->smartyEscape($_tmp);
?>
<br />
<?php
}
?>
<?php
if (!empty($this->_tpl_vars['journalSettings']['contactMailingAddress'])) {
?>
<?php
echo is_array($_tmp = $this->_tpl_vars['journalSettings']['contactMailingAddress']) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
<br />
<?php
}
?>
<?php
if (!empty($this->_tpl_vars['journalSettings']['contactPhone'])) {
?>
<?php
echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "about.contact.phone"), $this);
?>
: <?php
echo is_array($_tmp = $this->_tpl_vars['journalSettings']['contactPhone']) ? $this->_run_mod_handler('escape', true, $_tmp) : $this->_plugins['modifier']['escape'][0][0]->smartyEscape($_tmp);
?>
<br />
示例14: is_array
<tr>
<th>Payment method</th>
<td><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrOrder']['law_term03']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</td>
</tr>
<tr>
<th>Payment deadline</th>
<td><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrOrder']['law_term04']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</td>
</tr>
<tr>
<th>Delivery period</th>
<td><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrOrder']['law_term05']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</td>
</tr>
<tr>
<th>Returns and exchanges</th>
<td><?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrOrder']['law_term06']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</td>
</tr>
</table>
</div>
</div>
示例15: is_array
?>
info<?php
}
?>
">Alert</strong>
<?php
}
?>
<?php
if ($this->_tpl_vars['result']->url_redirect != null) {
?>
</a>
<?php
}
?>
</h4>
<p>
<?php
echo is_array($_tmp = $this->_tpl_vars['result']->name) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
<br/>
<?php
echo is_array($_tmp = $this->_tpl_vars['result']->description) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
</p>
</div>
<?php
}
}
unset($_from);