本文整理汇总了PHP中page::parse方法的典型用法代码示例。如果您正苦于以下问题:PHP page::parse方法的具体用法?PHP page::parse怎么用?PHP page::parse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类page
的用法示例。
在下文中一共展示了page::parse方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defAction
public function defAction()
{
if (file_exists(MODUL_DIR . '/users/template/settings.tpl')) {
include MODUL_DIR . '/users/template/settings.tpl';
}
ui::newButton(lang::get('BTN_SAVE_ONLY'), "javascript:sendForm('save');");
page::assignArray(lang::get('USERS_FORM_FIELD'));
page::assign('errorCountBlock', reg::getKey('/users/errorCountBlock'));
// page::assign('errorCountCapcha', reg::getKey('/users/errorCountCapcha'));
ui::CheckBox('gzip', 1, reg::getKey('/core/gzip'), lang::get('USERS_FORM_FIELD', 9));
ui::CheckBox('reg', 1, reg::getKey('/users/reg'), lang::get('USERS_FORM_FIELD', 11));
ui::CheckBox('activation', 1, reg::getKey('/users/activation'), lang::get('USERS_FORM_FIELD', 28));
ui::CheckBox('confirm', 1, reg::getKey('/users/confirm'), lang::get('USERS_FORM_FIELD', 35));
ui::CheckBox('ask_email', 1, reg::getKey('/users/ask_email'), lang::get('USERS_FORM_FIELD', 9));
//авторизация чере соц. сети
ui::CheckBox('twitter_bool', 1, reg::getKey('/users/twitter_bool'), lang::get('USERS_FORM_FIELD', 40));
page::assign('twitter_id', reg::getKey('/users/twitter_id'));
page::assign('twitter_secret', reg::getKey('/users/twitter_secret'));
ui::CheckBox('vk_bool', 1, reg::getKey('/users/vk_bool'), lang::get('USERS_FORM_FIELD', 42));
page::assign('vk_id', reg::getKey('/users/vk_id'));
page::assign('vk_secret', reg::getKey('/users/vk_secret'));
ui::CheckBox('ok_bool', 1, reg::getKey('/users/ok_bool'), lang::get('USERS_FORM_FIELD', 45));
page::assign('ok_id', reg::getKey('/users/ok_id'));
page::assign('ok_public', reg::getKey('/users/ok_public'));
page::assign('ok_secret', reg::getKey('/users/ok_secret'));
ui::CheckBox('facebook_bool', 1, reg::getKey('/users/facebook_bool'), lang::get('USERS_FORM_FIELD', 41));
page::assign('facebook_id', reg::getKey('/users/facebook_id'));
page::assign('facebook_secret', reg::getKey('/users/facebook_secret'));
ui::CheckBox('yandex_bool', 1, reg::getKey('/users/yandex_bool'), lang::get('USERS_FORM_FIELD', 43));
ui::CheckBox('google_bool', 1, reg::getKey('/users/google_bool'), lang::get('USERS_FORM_FIELD', 44));
return page::parse($TEMPLATE['frame']);
}
示例2: upd
function upd()
{
// Устанавливаем кнопки для формы
ui::setCancelButton('/comments/list');
ui::newButton(lang::get('BTN_SAVE'), "javascript:sendForm('save');");
ui::newButton(lang::get('BTN_APPLY'), "javascript:sendForm('apply');");
if (file_exists(MODUL_DIR . '/comments/template/comment.tpl')) {
include MODUL_DIR . '/comments/template/comment.tpl';
}
if (!($obj = comments::get(system::url(2)))) {
system::redirect('/comments/list');
}
if ($obj->getUserId() != 0 && user::issetRight('user_upd', 'users')) {
$url = system::au() . '/users/user_upd/' . $obj->getUserId();
page::assign('user_link', $url);
page::fParse('user_name', $TEMPLATE['user_link']);
} else {
page::fParse('user_name', $TEMPLATE['user_name']);
}
page::assign('obj.id', $obj->id());
page::assign('obj.username', $obj->getUserName());
page::assign('obj.email', $obj->getEmail());
page::assign('obj.text', $obj->getText());
page::assign('obj.date', date('d.m.Y H:i', strtotime($obj->getPublDate())));
page::assign('obj.parram', $obj->getParram());
ui::CheckBox('active', 1, $obj->isActive(), 'Проверен');
// Информация о странице
if ($page = ormPages::get($obj->getObjId())) {
page::assign('page.id', $page->id);
page::assign('page.url', $page->url);
page::assign('page.name', $page->name);
}
return page::parse($TEMPLATE['frame']);
}
示例3: form
/**
* @return stirng
* @param string $templ_name - Шаблон оформления
* @desc МАКРОС: Выводит форму подписки на рассылки
*/
function form($templ_name = 'default')
{
$templ_file = '/subscription/' . $templ_name . '.tpl';
$TEMPLATE = page::getTemplate($templ_file);
if (!is_array($TEMPLATE)) {
return page::errorNotFound('subscription.form', $templ_file);
}
$list = '';
$sel = new ormSelect('subscription');
$sel->where('lang', '=', languages::curId());
$sel->where('domain', '=', domains::curId());
$sel->where('active', '=', 1);
$num = 0;
while ($obj = $sel->getObject()) {
page::assign('obj.id', $obj->id);
page::assign('obj.name', $obj->name);
$num++;
page::assign('obj.num', $num);
page::assign('class-first', $num == 1 ? 'first' : '');
page::assign('class-last', $num == $sel->getObjectCount() ? 'last' : '');
page::assign('class-odd', $num % 2 == 0 ? 'odd' : '');
page::assign('class-even', $num % 2 != 0 ? 'even' : '');
page::assign('class-third', $num % 3 == 0 ? 'third' : '');
$list .= page::parse($TEMPLATE['list']);
}
// Парсим текст сообщения об ошибке
page::parseError('subscription');
if (empty($list)) {
return page::parse($TEMPLATE['empty']);
} else {
page::assign('list', $list);
return page::parse($TEMPLATE['frame']);
}
}
示例4: unsubscribeAction
public function unsubscribeAction()
{
if (system::issetUrl(2) && system::issetUrl(3)) {
if (($obj = ormObjects::get(system::url(2))) && $obj->isInheritor('subscription')) {
mailingProcess::delEmailById(system::url(3), $obj->id);
page::assign('name', $obj->name);
return page::parse(lang::get('SUBSCRIPTION_MSG2'));
}
}
return ormPages::get404();
}
示例5: view
function view()
{
// Устанавливаем кнопки для формы
ui::setCancelButton('/eshop/list');
ui::newButton(lang::get('BTN_SAVE'), "javascript:sendForm('save');");
ui::newButton(lang::get('BTN_APPLY'), "javascript:sendForm('apply');");
if (file_exists(MODUL_DIR . '/eshop/template/order.tpl')) {
include MODUL_DIR . '/eshop/template/order.tpl';
}
if (!($obj = ormObjects::get(system::url(2), 'eshop_order'))) {
system::redirect('/eshop/list');
}
$order = new eShopOrder($obj);
// Вывод информации о товарах
function getGoodsName($val, $obj)
{
if ($obj = ormPages::get($val, 'goods')) {
return '<a href="' . $obj->url . '" target="_blank">' . $obj->name . '</a>';
}
}
function getPrice($val, $obj)
{
return ' ' . $obj->cost * $obj->count . ' руб.';
}
$sel = new ormSelect('eshop_goods');
$sel->where('parents', '=', $obj->id);
$table = new ormMultiForm('goods');
$table->setData($sel);
$table->insideForm();
$table->addColumn('goods_id', 0, 400, 0, false, 'getGoodsName');
$table->addColumn('cost', 0, 100, 0, false);
$table->addColumn('count', 0, 100);
$table->addColumn('id', 'Общая стоимость', 100, 0, false, 'getPrice');
$table->withoutAdditions();
page::assign('goods_list', $table->getHTML());
page::assign('order.number', $order->getNumber());
page::assign('order.cost', $order->getCost());
page::assign('order.cost_all', $order->getTotalCost());
page::assign('order.delivery_price', $order->getDeliveryPrice());
page::assign('order.delivery', $order->_delivery);
$obj->parseAllFields();
page::assign('obj.id', $order->id);
page::assign('obj.date', date('d.m.Y в H:i', strtotime($obj->date)));
page::assign('user_link', '/mpanel/users/user_upd/' . $order->getUserId());
ui::SelectBox('state', ormObjects::getObjectsByClass('eshop_status'), $obj->state, 200);
ui::CheckBox('is_payment', 1, $obj->is_payment, 'Оплачено');
// Создаем форму и выводим ее на страницу
// $form = new ormEditForm($obj, $right);
//return $form->getHTML();
return page::parse($TEMPLATE['frame']);
}
示例6: createTree
private function createTree($parent, $TEMPLATE)
{
$items = '';
while ($obj = ormClasses::getInheritor($parent)) {
page::assign('subitem', $this->createTree($obj->id(), $TEMPLATE));
page::assign('obj.id', $obj->id());
page::assign('obj.url', system::au() . '/constructor/class_upd/' . $obj->id());
page::assign('obj.name', $obj->getName());
page::assign('obj.sname', $obj->getSName());
page::assign('obj.parent', $obj->getParentId());
$pach = '/css_mpanel/tree/images/classes/';
$ico = file_exists(ROOT_DIR . $pach . $obj->getSName() . '.png') ? $obj->getSName() . '.png' : 'file1.gif';
page::assign('obj.ico', $pach . $ico);
$rights = '';
reset($this->rights);
while (list($right, $pict) = each($this->rights)) {
$modul = $right == 'values' ? 'reference' : 'constructor';
if (user::issetRight($right, $modul) || $pict == 'empty') {
if ($pict == 'empty') {
$rights .= page::parse($TEMPLATE['empty_right']);
} else {
$parse = true;
if ($right == 'values') {
$parse = $obj->isInheritor('handbook') && $obj->getSName() != 'handbook';
}
if ($right == 'class_del') {
$parse = !$obj->isSystem();
}
if ($parse) {
$del_button = $right == 'class_del' ? 'class="del_button"' : '';
page::assign('del_button', $del_button);
page::assign('right.url', system::au() . '/' . $modul . '/' . $right);
page::assign('right.title', lang::right($right, $modul));
page::assign('right.class', $pict);
$rights .= page::parse($TEMPLATE['right']);
} else {
$rights .= page::parse($TEMPLATE['empty_right']);
}
}
}
}
page::assign('rights', $rights);
$items .= page::parse($TEMPLATE['item']);
}
if (!empty($items)) {
page::assign('items', $items);
return page::parse($TEMPLATE['frame_items']);
}
}
示例7: defAction
public function defAction()
{
if (file_exists(MODUL_DIR . '/search/template/forms.tpl')) {
include MODUL_DIR . '/search/template/forms.tpl';
ui::newButton(lang::get('SEARCH_BTN_INDEX'), "javascript:startIndex();");
ui::newButton(lang::get('SEARCH_BTN_CLEAR'), "javascript:sendForm('clear');");
page::assign('count_page', searchIndex::getCountPages());
page::assign('count_words', searchIndex::getCountWords());
$d = reg::getKey(ormPages::getPrefix('search') . '/index_date');
if (empty($d)) {
$d = '-';
}
page::assign('index_date', $d);
page::assign('text1', lang::get('SEARCH_TEXT_1'));
page::assign('text2', lang::get('SEARCH_TEXT_2'));
page::assign('text3', lang::get('SEARCH_TEXT_3'));
page::assign('text4', lang::get('SEARCH_TEXT_4'));
return page::parse($TEMPLATE['frame']);
}
}
示例8: upd
public function upd()
{
if (file_exists(MODUL_DIR . '/constructor/template/fgroup.tpl')) {
include MODUL_DIR . '/constructor/template/fgroup.tpl';
}
if (system::action() == "upd") {
// форма обновления информации
$group = new ormFieldsGroup(system::url(2));
if ($group->id() == '') {
system::stop();
}
page::assign('obj.group_name', $group->getName());
page::assign('obj.group_sname', $group->getSName());
page::assign('obj.id', $group->id());
$view = $group->getView();
$system = $group->getSystem();
page::assign('right', 'fgroup_proc_upd');
} else {
if (system::action() == "add") {
// форма добавления информации
if (system::issetUrl(2)) {
// Проверяем существует ли родитель?
$class = new ormClass(system::url(2));
if ($class->id() == '') {
system::stop();
}
}
$view = 1;
$system = 0;
page::assign('obj.id', system::url(2));
page::assign('right', 'fgroup_proc_add');
}
}
page::assignArray(lang::get('CONSTR_FORM_FIELD2'));
page::assignSavingPost();
ui::CheckBox('group_view', 1, $view, lang::get('CONSTR_FORM_FIELD2', 3));
ui::CheckBox('group_system', 1, $system, lang::get('CONSTR_FORM_FIELD2', 4));
echo page::parse($TEMPLATE['frame'], 1);
system::stop();
}
示例9: tags
/**
* @return HTML
* @param int $obj_id - ID раздела, для которого необходимо вывести теги.
* @param string $templ_name - Шаблон оформления.
* @desc МАКРОС: Выводит список тегов для указанной страницы.
*/
public function tags($obj_id, $templ_name = 'tags')
{
$templ_file = '/search/' . $templ_name . '.tpl';
$TEMPLATE = page::getTemplate($templ_file);
if (!is_array($TEMPLATE)) {
return page::errorNotFound('search.tags', $templ_file);
}
$tags = tags::getTagsForObject($obj_id);
$list = '';
while (list($num, $tag) = each($tags)) {
page::assign('obj.id', $tag['id']);
page::assign('obj.name', $tag['name']);
page::assign('obj.count', $tag['count']);
page::assign('obj.url', '/search/tag/' . $tag['id']);
$list .= !empty($num) ? page::parse($TEMPLATE['separator']) : '';
$list .= page::parse($TEMPLATE['list']);
}
if (!empty($list)) {
page::assign('list', $list);
return page::parse($TEMPLATE['frame']);
} else {
return page::parse($TEMPLATE['empty']);
}
}
示例10: upd
public function upd()
{
if (file_exists(MODUL_DIR . '/constructor/template/separator.tpl')) {
include MODUL_DIR . '/constructor/template/separator.tpl';
}
if (system::action() == "upd") {
// форма обновления информации
$obj = new ormField(system::url(2));
if ($obj->id() == '') {
system::stop();
}
page::assign('obj.fname', $obj->getName());
$max_size = $obj->getMaxSize() != '' ? $obj->getMaxSize() : 0;
page::assign('obj.max_size', $max_size);
page::assign('obj.id', $obj->id());
page::assign('right', 'separator_proc_upd');
} else {
if (system::action() == "add") {
// форма добавления информации
if (system::issetUrl(2)) {
// Проверяем существует ли родитель?
$group = new ormFieldsGroup(system::url(2));
if ($group->id() == '') {
system::stop();
}
}
page::assign('obj.id', system::url(2));
page::assign('right', 'separator_proc_add');
page::assign('obj.max_size', 0);
}
}
page::assignArray(lang::get('CONSTR_FORM_FIELD3'));
page::assignSavingPost();
echo page::parse($TEMPLATE['frame'], 1);
system::stop();
}
示例11: getListForObject
/**
* @return string HTML
* @param integer $obj - Экземпляр объекта (ormObject, ormPage)
* @param string $action - Тип действия: "upd" - изменение, "add" - добавление
* @desc Выводит форму изменения прав доступа для объекта
*/
public static function getListForObject($obj, $action)
{
if (file_exists(MODUL_DIR . '/users/template/right_list_object.tpl')) {
include MODUL_DIR . '/users/template/right_list_object.tpl';
}
if (isset($_POST['query'])) {
// Формируем список подсказок для пользователя
$sel = new ormSelect('user');
$sel->fields('login');
$sel->where('id', '<>', '29');
$sel->where('login', 'LIKE', '%' . $_POST['query'] . '%');
$users = '';
while ($user = $sel->getObject()) {
$zapi = $sel->getObjectNum() != 0 ? ', ' : '';
$users .= $zapi . "'" . $user->login . "'";
}
echo "{ query:'" . $_POST['query'] . "', suggestions:[" . $users . "], data:[] }";
system::stop();
} else {
if (isset($_POST['user_name'])) {
// Добавляем выбранного пользователя в список
$sel = new ormSelect('user');
$sel->fields('login');
$sel->where('id', '<>', '29');
$sel->where('login', '=', $_POST['user_name']);
$sel->limit(1);
$user = $sel->getObject();
if ($user instanceof ormObject) {
page::assign("group.id", $user->id);
page::assign("group.name", $user->login);
page::assign("checked_edit", '');
page::assign("checked_view", 'checked');
echo page::parse($TEMPLATE['group']);
}
system::stop();
}
}
// Выводим список групп
$sel = new ormSelect('user_group');
$sel->where('id', '<>', '32');
$sel->orderBy('name', asc);
$groups = $sel->getData();
$rights = array();
if ($action == 'upd') {
$users = db::q('SELECT o_id, login o_name
FROM <<rights>>, <<objects>>, <<__user>>
WHERE r_obj_id = "' . $obj->id . '" and
r_group_id = o_id and
obj_id = o_id and
o_class_id <> 33;', records);
$groups = array_merge($groups, $users);
$tmp = db::q('SELECT r_state, r_group_id FROM <<rights>> WHERE r_obj_id = "' . $obj->id . '";', records);
while (list($key, $right) = each($tmp)) {
$rights[$right['r_group_id']] = $right['r_state'];
}
$select_all = count($tmp) == 1 && empty($tmp[0]['r_group_id']) ? $tmp[0]['r_state'] : false;
} else {
$select_all = 2;
}
$items = '';
$num = $edit_num = $view_num = 0;
while (list($key, $group) = each($groups)) {
$state = isset($rights[$group['o_id']]) ? $rights[$group['o_id']] : 0;
if ($state == 2) {
$edit_num++;
}
$checked_edit = $state == 2 || $select_all == 2 ? 'checked' : '';
page::assign("checked_edit", $checked_edit);
if ($state > 0) {
$view_num++;
}
$checked_view = $state > 0 || $select_all > 0 ? 'checked' : '';
page::assign("checked_view", $checked_view);
page::assign("group.id", $group['o_id']);
page::assign("group.name", $group['o_name']);
$items .= page::parse($TEMPLATE['group']);
$num = $key + 1;
}
$checked_edit = $select_all == 2 || $num == $edit_num ? 'checked' : '';
page::assign("checked_edit", $checked_edit);
$checked_view = $select_all > 0 || $num == $view_num ? 'checked' : '';
page::assign("checked_view", $checked_view);
page::assign("text.all_user", lang::get('STRUCTURE_RIGHT_ALL_USER'));
page::assign("text.title", lang::get('STRUCTURE_RIGHT_TITLE'));
page::assign("groups", $items);
return page::parse($TEMPLATE['frame']);
}
示例12: showAuthForm
private function showAuthForm($error = 0)
{
if (file_exists(MODUL_DIR . '/mpanel/template/auth.tpl')) {
include MODUL_DIR . '/mpanel/template/auth.tpl';
page::assign('title', lang::get('CMF'));
if (user::isGuest()) {
// Пользователь не авторизован
page::assign('url', system::getCurrentUrl());
page::assign('login', lang::get('AUTHFORM_LOGIN'));
page::assign('passw', lang::get('AUTHFORM_PASSW'));
page::assign('enter', lang::get('AUTHFORM_ENTER'));
page::assign('error', $error);
echo page::parse($TEMPLATE['frame']);
} else {
// Пользователь авторизован, но не является админом
page::assign('exit_url', '/users/logout');
page::assign('user', user::get('name'));
page::assign('hello', lang::get('AUTHFORM_HELLO'));
page::assign('big_text', lang::get('AUTHFORM_BIG_TEXT'));
page::assign('exit_text', lang::get('AUTHFORM_EXIT_TEXT'));
echo page::parse($TEMPLATE['frame_no_admin']);
}
system::stop();
}
}
示例13: getHTML
public function getHTML($templ_name = 'filters')
{
if ($this->getCount() > 0 && file_exists(MODUL_DIR . '/mpanel/template/' . $templ_name . '.tpl')) {
include MODUL_DIR . '/mpanel/template/' . $templ_name . '.tpl';
$items = '';
$num = 0;
// Строим список фильтров
reset($this->filters);
while (list($key, $field) = each($this->filters)) {
$num++;
if (isset($this->new_filters[$num])) {
if ($this->new_filters[$num][2]) {
page::assign('field.name', $this->new_filters[$num][0]);
page::assign('field.content', $this->new_filters[$num][1]);
$items .= page::parse($TEMPLATE['field_spec']);
} else {
$items .= $this->new_filters[$num][1];
}
}
if (!isset($_SESSION['filters_' . $this->prefix][$field['f_sname']])) {
$_SESSION['filters_' . $this->prefix][$field['f_sname']] = '';
}
if (isset($this->show_filters[$field['f_sname']]) && !empty($this->show_filters[$field['f_sname']][0])) {
$field['f_name'] = $this->show_filters[$field['f_sname']][0];
}
page::assign('field.name', $field['f_name']);
if ($field['f_type'] == 50 || $field['f_type'] > 69 && $field['f_type'] < 96) {
// Выпадающий список
$data = array();
if ($field['f_type'] == 50) {
$data = lang::get('FILTER_BOOL');
} else {
if ($field['f_type'] > 69 && $field['f_type'] < 86) {
$data = lang::get('FILTER_ISSET');
} else {
if ($field['f_type'] == 90 || $field['f_type'] == 95) {
$data = ormObjects::getObjectsByClass($field['f_list_id']);
}
}
}
$element = ui::SelectBox($field['f_sname'], $data, $_SESSION['filters_' . $this->prefix][$field['f_sname']], 172, ' ', '', 'selectbox_mini');
page::assign('element', $element);
$items .= page::parse($TEMPLATE['field_select']);
} else {
if (isset($this->show_filters[$field['f_sname']]) && $this->show_filters[$field['f_sname']][1] || ($field['f_type'] == 25 || $field['f_type'] == 30 || $field['f_type'] == 32) && (!isset($this->show_filters[$field['f_sname']]) || $this->show_filters[$field['f_sname']][1] !== false)) {
// Выбор промежутка для чисел или дат
if (!isset($_SESSION['filters_' . $this->prefix][$field['f_sname'] . '_2'])) {
$_SESSION['filters_' . $this->prefix][$field['f_sname'] . '_2'] = '';
}
page::assign('field.sname', $field['f_sname']);
page::assign('field.value', $_SESSION['filters_' . $this->prefix][$field['f_sname']]);
page::assign('field.value2', $_SESSION['filters_' . $this->prefix][$field['f_sname'] . '_2']);
$items .= page::parse($TEMPLATE['field_period']);
} else {
// Обычный фильтр - текстовое поле
page::assign('field.sname', $field['f_sname']);
page::assign('field.value', $_SESSION['filters_' . $this->prefix][$field['f_sname']]);
$items .= page::parse($TEMPLATE['field']);
}
}
}
$all_count = $num + count($this->new_filters);
while ($num < $all_count) {
$num++;
if (isset($this->new_filters[$num])) {
if ($this->new_filters[$num][2]) {
page::assign('field.name', $this->new_filters[$num][0]);
page::assign('field.content', $this->new_filters[$num][1]);
$items .= page::parse($TEMPLATE['field_spec']);
} else {
$items .= $this->new_filters[$num][1];
}
}
}
page::assign('fields', $items);
return page::parse($TEMPLATE['frame']);
}
}
示例14: _parse
public static function _parse($page, $full = false)
{
return page::parse($page, $full);
}
示例15: tagAction
public function tagAction()
{
$templ_file = '/search/gettag.tpl';
$TEMPLATE = page::getTemplate($templ_file);
if (!is_array($TEMPLATE)) {
return page::errorNotFound('search.getTag', $templ_file);
}
if (system::issetUrl(2) && ($tag = tags::infoTag(system::url(2)))) {
$msg = lang::get('SEARCH_H1_TAGS') . ' "' . $tag['name'] . '"';
page::globalVar('h1', $msg);
page::globalVar('title', $msg);
// Получаем список классов
$classes_filter = array();
if (!empty($_POST['classes'])) {
$tmp = explode(",", $_POST['classes']);
$classes_filter = array();
foreach ($tmp as $v) {
$v = trim($v);
if (!empty($v)) {
$classes_filter[] = $v;
}
}
}
$max_count = reg::getKey(ormPages::getPrefix('search') . '/max_count');
$start = (system::getCurrentNavNum() - 1) * $max_count;
$result = tags::find(array($tag['id']), $max_count, $start, $classes_filter);
$list = '';
while (list($num, $val) = each($result['pages'])) {
if ($page = ormPages::get($val['page_id'])) {
page::assign('obj.id', $page->id);
page::assign('obj.num', $num + $start + 1);
page::assign('obj.name', $page->name);
page::assign('obj.url', $page->_url);
//page::assign('obj.content', $page->content);
$cn = $page->getClass()->getSName();
$block_name = isset($TEMPLATE['list_' . $cn]) ? 'list_' . $cn : 'list';
$list .= page::parse($TEMPLATE[$block_name]);
}
}
page::assign('count_page', ceil($result['count'] / $max_count));
} else {
$list = '';
$msg = lang::get('SEARCH_H1_TAGS2');
page::globalVar('h1', $msg);
page::globalVar('title', $msg);
}
if (!empty($list)) {
page::assign('list', $list);
page::fParse('list', $TEMPLATE['frame_list']);
} else {
page::fParse('list', $TEMPLATE['not_found']);
}
return page::parse($TEMPLATE['frame']);
}