本文整理汇总了PHP中_close函数的典型用法代码示例。如果您正苦于以下问题:PHP _close函数的具体用法?PHP _close怎么用?PHP _close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_close函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _open
<?php
echo $form->renderGlobalErrors(), _open('div.dm_tabbed_form'), _tag('ul.tabs', _tag('li', _link('#' . $baseTabId . '_medias')->text(__('Medias'))) . _tag('li', _link('#' . $baseTabId . '_thumbnails')->text(__('Thumbnails'))) . _tag('li', _link('#' . $baseTabId . '_effects')->text(__('Effects'))) . _tag('li', _link('#' . $baseTabId . '_advanced')->text(__('Advanced')))), _tag('div#' . $baseTabId . '_medias.drop_zone', _tag('ol.medias_list', array('json' => array('medias' => $medias, 'delete_message' => __('Remove this media'))), '') . _tag('div.dm_help.no_margin', __('Drag & drop images here from the right MEDIA panel'))), _tag('div#' . $baseTabId . '_thumbnails', _tag('ul', _tag('li.dm_form_element.multi_inputs.thumbnail.clearfix', $form['width']->renderError() . $form['height']->renderError() . _tag('label', __('Dimensions')) . $form['width']->render() . 'x' . $form['height']->render() . $form['method']->label(null, array('class' => 'ml10 mr10 fnone'))->field('.dm_media_method')->error()) . _tag('li.dm_form_element.multi_inputs.background.clearfix.none', $form['width']->renderError() . $form['background']->label()->field()->error()) . _tag('li.dm_form_element.quality.clearfix', $form['quality']->label(__('JPG quality'))->field()->error() . _tag('p.dm_help', __('Leave empty to use default quality')))) . _tag('div.dm_help.no_margin', '<hr />' . __('These settings will apply on all images'))), _tag('div#' . $baseTabId . '_effects', _tag('ul', _tag('li.dm_form_element.animation.clearfix', $form['animation']->label(__('Animation'))->field()->error() . _tag('p.dm_help', __('Set to custom to write your own animation'))) . _tag('li.dm_form_element.delay.clearfix', $form['delay']->label(__('Delay'))->field()->error() . _tag('p.dm_help', __('Delay in seconds between transitions')) . _tag('p.dm_help', __('Leave empty to disable transitions'))) . _tag('li.dm_form_element.show_pager.clearfix', $form['show_pager']->label(__('Show pager'))->field()->error() . _tag('p.dm_help', __('Check this box to enable the pager')) . _tag('p.dm_help', __('Make sure to add the path to the full jQuery cycle library in your apps.yml') . ': ') . _tag('p.dm_help', "all:<br/> dmWidgetGalleryPlugin:<br/> js: cycle/jquery.cycle.min")))), _tag('div#' . $baseTabId . '_advanced', _tag('ul.dm_form_elements', $form['cssClass']->renderRow())), _close('div');
//div.dm_tabbed_form
示例2: _open
<?php
echo $form->renderGlobalErrors(), _open('div.dm_tabbed_form'), _tag('ul.tabs', _tag('li', _link('#' . $baseTabId . '_text')->text(__('Text'))) . _tag('li', _link('#' . $baseTabId . '_media')->text(__('Media'))) . _tag('li', _link('#' . $baseTabId . '_links')->text(__('Links'))) . _tag('li', _link('#' . $baseTabId . '_advanced')->text(__('Presentation')))), _tag('div#' . $baseTabId . '_text', _tag('ul.dm_form_elements', $form['title']->renderRow() . $form['text']->render(array('class' => 'dm_markdown')))), _tag('div#' . $baseTabId . '_media', $sf_context->get('helper')->renderPartial('dmWidget', 'forms/dmWidgetContentImage', array('form' => $form, 'hasMedia' => $hasMedia, 'skipCssClass' => true))), _tag('div#' . $baseTabId . '_links', _tag('ul.dm_form_elements', _tag('li.dm_form_element.clearfix', $form['titleLink']->label(__('Title'))->field()->error() . _tag('p.dm_help', __('Add a link to the text title') . '<br />' . __('Drag & Drop a page or enter an url'))) . _tag('li.dm_form_element.clearfix', $form['titleLinkTarget']->label(__('Target'))->field()->error() . _tag('p.dm_help', __('Target window for title link'))) . _tag('li.dm_form_element.clearfix', $form['mediaLink']->label(__('Media'))->field()->error() . _tag('p.dm_help', __('Add a link to the text media') . '<br />' . __('Drag & Drop a page or enter an url'))) . _tag('li.dm_form_element.clearfix', $form['mediaLinkTarget']->label(__('Target'))->field()->error() . _tag('p.dm_help', __('Target window for media link'))))), _tag('div#' . $baseTabId . '_advanced', _tag('ul.dm_form_elements', $form['cssClass']->renderRow() . $form['titlePosition']->renderRow())), _close('div');
//div.dm_tabbed_form
示例3: _open
<?php
if ($form->getObject()->getDmModule() && $form->getObject()->getDmModule()->getOption('has_admin')) {
echo _open('a', array('href' => $sf_context->getServiceContainer()->getService('controller')->genUrl(array('sf_route' => $form->getObject()->getRecord()->getDmModule()->getUnderscore(), 'action' => 'edit', 'pk' => $form->getObject()->getPrimaryKey()))));
?>
<?php
echo __('See in Admin');
echo _close('a');
}
示例4: _open
<?php
echo _open('ul');
foreach ($dm_layout->get('Areas') as $area) {
if (!$area->get('Zones')->count()) {
continue;
}
$widgets = array();
foreach ($area->get('Zones') as $zone) {
foreach ($zone->get('Widgets') as $widget) {
try {
$widgetType = $sf_context->get('widget_type_manager')->getWidgetType($widget);
$widgets[] = __($widgetType->getPublicName());
} catch (dmException $e) {
$widgets[] = $e->getMessage();
}
}
}
if (!empty($widgets)) {
echo _tag('li.mb5', _tag('strong', __(ucfirst($area->type)) . ': ') . implode(' | ', $widgets));
}
}
echo _close('li');
示例5: _tag
_tag('div#'.$baseTabId.'_items.drop_zone',
_tag('ol.items_list', array('json' => array(
'items' => $items,
'extended_show_message' => __('Show extended options'),
'extended_hide_message' => __('Hide extended options'),
'delete_message' => __('Remove'),
'text_message' => __('Text'),
'link_message' => __('Link'),
'secure_message' => __('Requires authentication'),
'nofollow_message' => __('No follow'),
'depth_message' => __('Depth'),
'click_message' => __('Click to edit, drag to sort')
)), '').
_tag('div.dm_help.no_margin',
__('Drag & drop links here from the left PAGE panel').
'<br />'.
_tag('a.external_link', __('or create an external link'))
)
),
_tag('div#'.$baseTabId.'_advanced',
_tag('ul.dm_form_elements',
$form['cssClass']->renderRow().
$form['ulClass']->renderRow().
$form['liClass']->renderRow().
(isset($form['menuClass']) ? $form['menuClass']->renderRow() : '')
)
),
_close('div'); //div.dm_tabbed_form
示例6: _tag
<?php
if (!$pager) {
echo _tag('h2', __('No results'));
return;
}
//include_partial('pager', array('pager' => $pager));
echo _tag('h2', __('%1% - %2% of %3%', array('%1%' => $pager->getFirstIndice(), '%2%' => $pager->getLastIndice(), '%3%' => $pager->getNbResults())));
echo _open("ol.search_results.clearfix start=" . $pager->getFirstIndice());
foreach ($pager->getResults() as $result) {
echo _tag("li.search_result.ml20.mb5", _tag("span.score.mr10", round(100 * $result->getScore()) . "%") . _link('app:front/' . $result->getPage()->slug)->text(_tag('strong', $result->getPage()->name) . _tag('span.ml10', $result->getPage()->description)));
}
echo _close("ol");
//include_partial('pager', array('pager' => $pager));
示例7: _alert_back
if (!isset($_COOKIE['username'])) {
_alert_back('请先登录!');
}
//批删除花朵
if ($_GET['action'] == 'delete' && isset($_POST['ids'])) {
$_clean = array();
$_clean['ids'] = _mysql_string(implode(',', $_POST['ids']));
//为了防止cookies伪造,还要比对一下唯一标识符uniqid()
if (!!($_rows = _fetch_array("SELECT\n tg_uniqid\n FROM\n tg_user\n WHERE\n tg_username='{$_COOKIE['username']}'\n LIMIT\n 1"))) {
_uniqid($_rows['tg_uniqid'], $_COOKIE['uniqid']);
_query("DELETE FROM\n\t tg_flower\n\t WHERE\n\t tg_id\n\t IN\n\t ({$_clean['ids']})");
if (_affected_rows()) {
_close();
_location('花朵删除成功', 'member_flower.php');
} else {
_close();
_alert_back('花朵删除失败');
}
} else {
_alert_back('非法登录');
}
}
//分页模块
global $_pagesize, $_pagenum;
_page("SELECT tg_id FROM tg_flower WHERE tg_touser='{$_COOKIE['username']}'", 15);
//第一个参数获取总条数,第二个参数,指定每页多少条
$_result = _query("SELECT\n tg_id,tg_fromuser,tg_flower,tg_content,tg_date\n FROM\n tg_flower\n WHERE\n tg_touser='{$_COOKIE['username']}'\n ORDER BY\n tg_date DESC\n LIMIT\n {$_pagenum},{$_pagesize}\n ");
?>
<!DOCTYPE HTML>
<html>
示例8: _tagC
function _tagC($name)
{
return _close($name);
}
示例9: _tag
<?php
/*
* Variables available :
* - $query (string) the searched query
* - $form (mySearchForm) the search form
* - $pager (dmSearchPager) the search pager
*/
if (!$pager) {
echo _tag('h1', __('No results for "%1%"', array('%1%' => escape($query))));
return;
}
echo _tag('h1', __('Results %1% to %2% of %3%', array('%1%' => $pager->getFirstIndice(), '%2%' => $pager->getLastIndice(), '%3%' => $pager->getNbResults())));
echo _open('ol.search_results start=' . $pager->getFirstIndice());
foreach ($pager as $result) {
$page = $result->getPage();
echo _tag('li.search_result', _tag('span.score', ceil(100 * $result->getScore()) . '%') . _link($page)->text(_tag('span.page_name', escape($page->name)) . ($page->description ? _tag('span.page_description', $page->description) : '')));
}
echo _close('ol');
示例10: foreach
<?php
$html = '';
foreach (array('info', 'notice', 'alert', 'error') as $log_type) {
foreach (array('dm_log_', '') as $prefix) {
if (count($messages = (array) $sf_user->getFlash($prefix . $log_type))) {
$class = $log_type === 'notice' ? 'info' : $log_type;
$html .= _open("ul.flashs." . $class . 's');
foreach ($messages as $message) {
$html .= _tag("li.flash.ui-corner-all." . $class, _tag('span.icon.fleft.mr5.s16block.s16_' . $class) . nl2br(__($message, array(), 'admin')));
}
$html .= _close("ul");
}
}
}
if ($html) {
echo _tag("div#flash", $html);
}
示例11: use_helper
<?php
use_helper('Date');
use_javascript('retweet');
/*
* Action for Article : Show
* Vars : $article
*/
echo _open('article.article.show');
echo _tag('div.clearfix', _link('@blog_rss')->text('Diem blog syndication')->title('Subscribe to the blog feed')->set('.rss_link') . _tag('h1.t_big', $article->name));
echo _tag('p.article_infos', _tag('span', format_date($article->createdAt, 'D')) . ' by ' . $article->CreatedBy);
echo markdown($article->text);
echo _link($sf_context->getPage())->text('♻')->set('.retweet')->title($article->name)->currentSpan(false);
echo _close('article');
示例12: _open
<?php
echo _open('div.dm_variables');
echo _tag('div.dm_info.ui-corner-all', _tag('span.s16block.s16_help.fleft.mr5') . ' ' . __('Variables you can use here:'));
echo _open('ul.dm_modules.dm_accordion.mt10');
foreach ($modules as $module) {
echo _open('li.dm_module');
echo _tag('h3.dm_module_name', _tag('a href=#', __($module->getName())));
echo _open('ul.dm_variables');
foreach ($module->getTable()->getSeoColumns() as $variable) {
echo _tag('li.dm_variable', $seoSynchronizer->wrap($module->getUnderscore() . '.' . $variable));
}
echo _close('ul'), _close('li');
}
echo _close('ul'), _close('div');
示例13: htmlspecialchars
* 修改表单处理
*/
if (!empty($_POST['submit'])) {
$id = htmlspecialchars(addslashes($_GET['id'] + 0));
$name = htmlspecialchars(addslashes($_POST['username']));
$kemu = htmlspecialchars(addslashes($_POST['kemu']));
$fenshu = htmlspecialchars(addslashes($_POST['fenshu']));
$data = array('id' => $id, 'name' => $name, 'kemu' => $kemu, 'fenshu' => $fenshu);
_connect();
$ok = _update('stu', $data);
if ($ok) {
echo '修改成功';
} else {
echo '修改失败';
}
_close($link);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>数据库修改表单</title>
</head>
<body>
<a href="05.php">返回</a>
<form action="" method="post">
<table>
<tr>
<td align="right">ID:</td>
<td><input type="text" name="id" value="<?php
示例14: _tag
<?php
if ($sf_user->getFlash('busqueda_form_valid')) {
echo _tag('p.felicitaciones', 'Felicitaciones!!! Su usuario ha sido creado satisfactoriamente, usted puede pasar a utilizar los servicios');
}
if ($sf_user->isAuthenticated()) {
$image = $sf_user->getUser()->get('Image');
_open('p.image.usuario');
echo _media($image)->size(50, 60);
_close('p');
echo _tag('p.ya_registrado', __('Usted ya se encuentra registrado como "%username%", si no es "%username%" por favor cierre la sesión e intente registrarse de nuevo', array('%username%' => $sf_user->getUsername())));
return;
}
echo $form;
示例15: _close
function £c($name)
{
return _close($name);
}