Пример #1
0
 function Torders()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create_order' => array('Создать заказ', 'Create order', 'link' => 'cnt.createOrder()', 'img' => 'icon.orders.gif', 'display' => 'block', 'show_title' => true));
     ########## STATUSES #########
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Заказы', 'orders'), 'title_one' => array('Заказ', 'order'), 'total' => array('Сумма', 'Total'), 'name' => array('Имя', 'Name'), 'id' => array('№', 'id'), 'company' => array('Компания', 'company'), 'status' => array('Статус', 'status'), 'no_paid' => array('Не оплачен', 'no paid'), 'order_date' => array('Дата заказа', 'order_date'), 'saved' => array('Сохранение прошло успешно', 'Good save'), 'bill' => array('Счет', 'Bill'), 'all' => array('не важно', 'all'), 'client_id' => array('ID клиента', 'Client ID'), 'Cache' => array('Наличные', 'Cache'), 'Bank' => array('Банковский перевод', 'Bank'), 'client_comment' => array('Комментарий', 'Comment'), 'address' => array('Адрес доставки', 'Address'), 'shipping' => array('Доставка', 'Shipping'), 'new' => array('выставлен', 'new'), 'paid' => array('оплачен', 'paid'), 'canceled' => array('аннулирован', 'canceled')));
     //все статусы заказа(следть за последовательностью здесь и экшенов)
     $this->statuses = array('New' => array('Новый', 'New'), 'ProcessingAwaitingPaiment' => array('В обработке (ждет оплаты)', 'ProcessingAwaitingPaiment'), 'CompletePaid' => array('Комплектуется (оплачен)', 'CompletePaid'), 'CompleteAwaitingPaiment' => array('Комплектуется (ждет оплаты)', 'CompleteAwaitingPaiment'), 'ReadyAwaitingPaiment' => array('готов (ждет оплаты)', 'ReadyAwaitingPaiment'), 'ReadyPaid' => array('готов (оплачен)', 'ReadyPaid'), 'Delivered' => array('Доставлен', 'Delivered'), 'Canceled' => array('Отменен', 'Canceled'));
     //статусы в которые можно перейти без проверки баланса
     $this->normal_status = array('New', 'CompleteAwaitingPaiment', 'ReadyAwaitingPaiment', 'ProcessingAwaitingPaiment', 'Canceled');
     // возможные события для разных типов заказа.
     // чтобы иногда перейти из недостаточно средств в достаточно, необходимо дублирование логик.
     // 0 - если не достаточно средств
     // 1 - если достаточно средств
     $this->actions = array('Cache' => array('0' => array('New' => array('CompleteAwaitingPaiment', 'Canceled'), 'CompleteAwaitingPaiment' => array('ReadyAwaitingPaiment', 'Canceled'), 'ReadyAwaitingPaiment' => array('Delivered', 'Canceled'), 'Delivered' => array(''), 'Canceled' => array('')), '1' => array('New' => array('CompletePaid', 'Canceled'), 'CompleteAwaitingPaiment' => array('ReadyPaid', 'Canceled'), 'CompletePaid' => array('ReadyPaid', 'Canceled'), 'ReadyAwaitingPaiment' => array('Delivered', 'Canceled'), 'ReadyPaid' => array('Delivered', 'Canceled'), 'Delivered' => array(''), 'Canceled' => array(''))), 'Bank' => array('0' => array('New' => array('ProcessingAwaitingPaiment', 'Canceled'), 'ProcessingAwaitingPaiment' => array('CompletePaid', 'Canceled'), 'CompletePaid' => array('ReadyPaid', 'Canceled'), 'ReadyPaid' => array('Delivered', 'Canceled'), 'Delivered' => array(''), 'Canceled' => array('')), '1' => array('New' => array('CompletePaid', 'Canceled'), 'ProcessingAwaitingPaiment' => array('CompletePaid', 'Canceled'), 'CompletePaid' => array('ReadyPaid', 'Canceled'), 'ReadyPaid' => array('Delivered', 'Canceled'), 'Delivered' => array(''), 'Canceled' => array(''))));
     $str[get_class_name($this)] += $this->statuses;
     // экшены для формы редактирования
     $actions[$this->name . '.editform'] = array('AddProducts' => array('Добавить товары', 'Add Products', 'link' => 'cnt.AddProducts()', 'img' => 'icon.create.gif', 'display' => 'block', 'show_title' => false), 'Delete' => array('Удалить', 'Delete', 'link' => 'cnt.Del()', 'img' => 'icon.delete.gif', 'display' => 'block', 'show_title' => false), 'apply' => array('Применить', 'Apply', 'link' => 'cnt.ApplySubmit();cnt.ApplySubmit2()', 'img' => 'icon.kb.gif', 'display' => 'block', 'show_title' => false));
     //Экшены для счетов
     $this->bill_actions = array('printbill' => array('Распечатать счет', 'Print bill', 'link' => 'cnt.PrintSubmit()', 'img' => 'icon.print.gif', 'display' => 'block', 'show_title' => true), 'deletebill' => array('Аннулировать счет', 'Create bill', 'link' => 'cnt.DelBill()', 'img' => 'icon.vat.gif', 'display' => 'block', 'show_title' => true), 'createbill' => array('Выписать счет', 'Create bill', 'link' => 'cnt.CreateSubmit()', 'img' => 'icon.vat.gif', 'display' => 'block', 'show_title' => true));
     //Экшены для состояния заказов
     $this->order_actions = array('New' => array('Новый', 'New', 'link' => 'cnt.Switch(\'New\')', 'img' => 'icon.desc.gif', 'display' => 'block', 'show_title' => true), 'ProcessingAwaitingPaiment' => array('В обработку (ждет оплаты)', 'Processing Awaiting Paiment', 'link' => 'cnt.Switch(\'ProcessingAwaitingPaiment\')', 'img' => 'icon.desc.gif', 'display' => 'block', 'show_title' => true), 'CompletePaid' => array('Комплектуется (оплачен)', 'Complete Paid', 'link' => 'cnt.Switch(\'CompletePaid\')', 'img' => 'icon.desc.gif', 'display' => 'block', 'show_title' => true), 'CompleteAwaitingPaiment' => array('Комплектуется (ждет оплаты)', 'Complete Awaiting Paiment', 'link' => 'cnt.Switch(\'CompleteAwaitingPaiment\')', 'img' => 'icon.desc.gif', 'display' => 'block', 'show_title' => true), 'ReadyAwaitingPaiment' => array('Готов (ждет оплаты)', 'Ready Awaiting Paiment', 'link' => 'cnt.Switch(\'ReadyAwaitingPaiment\')', 'img' => 'icon.desc.gif', 'display' => 'block', 'show_title' => true), 'ReadyPaid' => array('Готов (оплачен)', 'Ready Paid', 'link' => 'cnt.Switch(\'ReadyPaid\')', 'img' => 'icon.desc.gif', 'display' => 'block', 'show_title' => true), 'Delivered' => array('Доставлен', 'Delivered', 'link' => 'cnt.Switch(\'Delivered\')', 'img' => 'icon.desc.gif', 'display' => 'block', 'show_title' => true), 'Canceled' => array('Отменить', 'Canceled', 'link' => 'cnt.Switch(\'Canceled\')', 'img' => 'icon.desc.gif', 'display' => 'block', 'show_title' => true));
     // подключаем экшены состояния заказа
     $actions[$this->name . '.editform'] += $this->order_actions;
     // подключаем экшены счетов
     $actions[$this->name . '.editform'] += $this->bill_actions;
     $actions[$this->name . '.editformfromclients'] = $actions[$this->name . '.editform'];
 }
Пример #2
0
 function TSiteGroups()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Группы пользователей сайта', 'Site User Groups'), 'name' => array('Название группы', 'Group Title'), 'user_name' => array('Имя пользователя', 'User Name'), 'user_login' => array('Логин', 'Login'), 'discount_type' => array('Тип скидочной группы', 'Discount type'), 'saved' => array('Данные успешно сохранены', 'Data has been saved successfully'), 'privs_added' => array('Группе добавлены %d привилегий', 'Added %d privileges to group'), 'privs_deleted' => array('У группы удалено %d привилегий', 'Deleted %d privileges from group')));
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'moveup' => &$actions['table']['moveup'], 'movedown' => &$actions['table']['movedown'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\')', 'img' => 'icon.delete.gif', 'display' => 'none'), 'users' => array('Пользователи группы', 'Group Users', 'link' => 'cnt.editGroupUsers()', 'img' => 'icon.user_groups.gif', 'display' => 'none'), 'rights' => array('Права группы', 'Group Rights', 'link' => 'cnt.editGroupPrivs()', 'img' => 'icon.users.gif', 'display' => 'none'));
 }
Пример #3
0
 function TCSVTools()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array('download' => array('Скачать', 'Download', 'link' => 'cnt.tmpcsv_tools.location=\'page.php?page=csv_tools&do=download&id=\'+cnt.ID+\'\'', 'img' => 'icon.cascade.gif', 'display' => 'none'), 'upload' => array('Загрузить', 'upload', 'link' => 'cnt.upload()', 'img' => 'icon.download.gif', 'display' => 'none'));
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('CSV импорт/экспорт ', 'CSV import/export '), 'table' => array('Название раздела', 'Name'), 'upload_title' => array('Загрузка CSV файла в таблицу ', 'Upload CSV file into the table '), 'upload' => array('Выберите файл', 'Slect file')));
 }
Пример #4
0
 function TVersions()
 {
     global $str;
     TTable::TTable();
     # языковые константы
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('ВЕРСИИ ТЕКСТА', 'VERSIONS'), 'uptime' => array('Дата', 'Date'), 'datasize' => array('Размер', 'Size'), 'empty' => array('<i>Нет версий текста</i>', '<i>No texts available</i>'), 'lang' => array('Язык', 'Language')));
 }
Пример #5
0
 function TSubscribed()
 {
     global $actions, $str;
     // обязательно вызывать
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Подписчики', 'Subscribers'), 'email' => array('E-mail', 'E-mail'), 'type' => array('Тип', 'Type')));
 }
Пример #6
0
 function TReklama_Obj()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[str_replace('/', '__', $this->name)] = array('create' => &$actions['table']['create'], 'edit' => &$actions['table']['edit'], 'delete' => array('Удалить', 'Delete', 'link' => "cnt.deleteItems('" . $this->name . "',null,1)", 'img' => 'icon.delete.gif', 'display' => 'none'));
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Рекламные кампании', 'Advertising campaigns'), 'name' => array('Название', 'Name'), 'budget' => array('Бюджет', 'Budget'), 'start_date' => array('Дата начала', 'Start date'), 'end_date' => array('Дата окончания', 'End date'), 'root_id' => array('Сайт', 'Site'), 'saved' => array('Рекламные кампании были сохранены', 'The advertising campaigns list has been saved')));
 }
Пример #7
0
 function TObjDirection()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Направления', 'Directions'), 'name' => array('Название', 'Title'), 'saved' => array('Данные успешно сохранены', 'Data has been saved successfully'), 'all' => array('нет', 'none')));
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\')', 'img' => 'icon.delete.gif', 'display' => 'none'), 'moveup' => &$actions['table']['moveup'], 'movedown' => &$actions['table']['movedown']);
 }
Пример #8
0
 function TStat()
 {
     global $str, $actions;
     TTable::TTable();
     $this->selector = false;
     // активируем менюшку слева для окна stat
     $GLOBALS['_elems'] = true;
     // Общие слова для всех файлов статистики
     $actions['tstat'] = array('view_table' => array('Таблица', 'Table', 'link' => 'cnt.ViewIn(\'table\')', 'img' => 'icon.table.gif', 'display' => 'block'), 'view_grapf' => array('График', 'Graph', 'link' => 'cnt.ViewIn(\'graph\')', 'img' => 'icon.graph.gif', 'display' => 'block'), 'view_bargrapf' => array('Гистограмма', 'Bar graph', 'link' => 'cnt.ViewIn(\'bargraph\')', 'img' => 'icon.bargraph.gif', 'display' => 'block'), 'view_diag' => array('Диаграмма', 'Diagram', 'link' => 'cnt.ViewIn(\'diag\')', 'img' => 'icon.diag.gif', 'display' => 'block'), 'view_csv' => array('Экспорт в CSV', 'Export in CSV', 'link' => 'cnt.ViewIn(\'csv\')', 'img' => 'xls.gif', 'display' => 'block'));
     $str['tstat'] = array('stat' => array('Статистика', 'Statistics'), 't_from_server' => array('пользователи с сервера "%s"', 'visitors from server "%s"'), 't_from_search_ph' => array('пользователи по поисковой фразе "%s"', 'visitors from search phrase "%s"'), 't_points' => array('пользователи с входом со страницы "%s"', 'visitors from enter page "%s"'), 't_outs' => array('пользователи с последней страницей "%s"', 'visitors with last page "%s"'), 't_ip' => array('посетители с ip "%s"', 'visitors with ip "%s"'), 't_robot' => array('поисковая машина: "%s"', 'search machine: "%s"'), 't_client' => array('пользователь "#%u"', 'client "#%u"'), 't_country' => array('пользователи из страны "%s"', 'visitors from country "%s"'), 't_path' => array('путь "%s"', 'path "%s"'), 't_ref_page' => array('пользователи, пришедшие со страницы "%s"', 'visitors from reference page "%s"'), 't_see_page' => array('пользователи, просмотревшие страниц "%s"', 'visitors who viewed pages "%s"'), 't_reklama' => array('рекламная кампания "%s"', 'advertising campaign "%s"'), 'no_data' => array('Нет данных', 'No data'), 'total_period' => array('Всего за данный период', 'Summary for this period'), 'csv_file' => array('Скачать CSV файл', 'Download CSV file'), 'percent' => array('Процент от всех', 'Percent from all'), 'amount' => array('Кол-во', 'Amount'), 'more' => array('подробнее...', 'more...'), 'compare' => array('сравнить...', 'compare...'), 'reports' => array('Отчеты', 'Reports'), 'settings' => array('Настройки', 'Settings'), 'others' => array('Остальные', 'Others'), 'count_rows' => array('Всего', 'Count rows'), 'show_from' => array('C', 'From'), 'show_to' => array('по', 'to'), 'nav_period' => array('Период', 'Period'), 'nav_more' => array('Дополнительно', 'More'), 'nav_select_period' => array('Выбор периода', 'Select period'), 'nav_today' => array('за сегодня', 'today'), 'nav_today_title' => array('Смотреть статистику за сегодня по часам', 'View statistic for today by hours'), 'nav_yesterday' => array('вчера', 'yesterday'), 'nav_yesterday_title' => array('Смотреть статистику за вчера по часам', 'View statistic for yesterday by hours'), 'nav_week' => array('за неделю', 'last week'), 'nav_week_title' => array('Смотреть статистику за прошедшую неделю по дням', 'View statistic for the last week by days'), 'nav_month' => array('за месяц', 'last month'), 'nav_month_title' => array('Смотреть статистику за прошедший месяц по дням', 'View statistic for the last month by days'), 'nav_all' => array('за все время', 'all time'), 'nav_all_title' => array('Смотреть статистику за все время по месяцам', 'View statistic for all time by months'), 'nav_analyze_page' => array('Просмотры выбранной страницы', 'Analyzing page'), 'select_date' => array('Выбрать дату', 'Select date'), 'nav_use_filter' => array('использовать фильтр', 'use filter'), 'nav_edit_filter' => array('настроить', 'edit'), 'nav_show' => array('показать', 'show'), 'dayweek_0' => array('Понедельник', 'Monday'), 'dayweek_1' => array('Вторник', 'Tuesday'), 'dayweek_2' => array('Среда', 'Wednesday'), 'dayweek_3' => array('Четверг', 'Thursday'), 'dayweek_4' => array('Пятница', 'Friday'), 'dayweek_5' => array('Суббота', 'Saturday'), 'dayweek_6' => array('Воскресенье', 'Sunday'), 'sm_dayweek_0' => array('Пон', 'Mon'), 'sm_dayweek_1' => array('Вт', 'Tue'), 'sm_dayweek_2' => array('Ср', 'Wed'), 'sm_dayweek_3' => array('Чет', 'Thu'), 'sm_dayweek_4' => array('Пят', 'Fri'), 'sm_dayweek_5' => array('Суб', 'Sat'), 'sm_dayweek_6' => array('Вос', 'Sun'), 'month_1' => array('Январь', 'January'), 'month_2' => array('Февраль', 'February'), 'month_3' => array('Март', 'March'), 'month_4' => array('Апрель', 'April'), 'month_5' => array('Май', 'May'), 'month_6' => array('Июнь', 'June'), 'month_7' => array('Июль', 'July'), 'month_8' => array('Август', 'August'), 'month_9' => array('Сентябрь', 'September'), 'month_10' => array('Октябрь', 'October'), 'month_11' => array('Ноябрь', 'November'), 'month_12' => array('Декабрь', 'December'), 'sm_month_1' => array('Янв', 'Jan'), 'sm_month_2' => array('Фев', 'Feb'), 'sm_month_3' => array('Мар', 'Mar'), 'sm_month_4' => array('Апр', 'Apr'), 'sm_month_5' => array('Май', 'May'), 'sm_month_6' => array('Июн', 'Jun'), 'sm_month_7' => array('Июл', 'Jul'), 'sm_month_8' => array('Авг', 'Aug'), 'sm_month_9' => array('Сен', 'Sep'), 'sm_month_10' => array('Окт', 'Oct'), 'sm_month_11' => array('Ноя', 'Nov'), 'sm_month_12' => array('Дек', 'Dec'), 'ok' => array('  OK  ', '  OK  '), 'reset' => array('Сброс', 'Reset'), 'find' => array('Найти', 'Find'), 'search' => array('Поиск', 'Search'), 'help' => array('Поиск ведется по шаблону для выражения LIKE', 'Search by the template for LIKE statement'), 'count_find' => array('Всего найдено', 'Find sum total'), 'not_find' => array('По Вашему запросу ничего не найдено', 'Nothing was found'), 'all' => array('-- все --', '-- all --'), 'alias_for' => array('алиас для', 'alias for'), 'site_selection' => array('Выбор сайта', 'Site selection'), 'site' => array('Сайт', 'Site'));
     // Определяем дополнительные отчеты:
     $reklama_str = "";
     if (isset($_GET['adv']['reklama'])) {
         $identifiers = explode(', ', $_GET['adv']['reklama']);
         $reklama_str = " (";
         foreach ($identifiers as $k2 => $v2) {
             $reklama_str .= "page.uri like '***from=" . $v2 . "'";
             if ($k2 < count($identifiers) - 1) {
                 $reklama_str .= " OR ";
             }
         }
         $reklama_str .= ")";
     }
     $advanced = array('server' => array('title' => 't_from_server', 'exclude' => array('stat/stat_ref_server', 'stat/stat_robots', 'stat/stat_settings', 'stat/stat_now'), 'join' => "", 'where' => "sess.host='%s'"), 'search_ph' => array('title' => 't_from_search_ph', 'exclude' => array('stat/stat_search_ph', 'stat/stat_robots', 'stat/stat_settings', 'stat/stat_now'), 'join' => "LEFT JOIN " . STAT_PAGES_TABLE . " AS pag ON pag.id=sess.ref_id", 'where' => "pag.search_ph='%s'"), 'points' => array('title' => 't_points', 't_name' => "SELECT CONCAT('http://', host, uri) FROM " . STAT_PAGES_TABLE . " WHERE id=%u", 'exclude' => array('stat/stat_points', 'stat/stat_robots', 'stat/stat_settings', 'stat/stat_now'), 'join' => '', 'where' => "sess.first_page='%u'"), 'outs' => array('title' => 't_outs', 't_name' => "SELECT CONCAT('http://', host, uri) FROM " . STAT_PAGES_TABLE . " WHERE id=%u", 'exclude' => array('stat/stat_outs', 'stat/stat_robots', 'stat/stat_settings', 'stat/stat_now'), 'join' => '', 'where' => "sess.last_page='%u'"), 'ip' => array('title' => 't_ip', 'exclude' => array('stat/stat_ip', 'stat/stat_robots', 'stat/stat_settings', 'stat/stat_now'), 'join' => '', 'where' => "IF(ip<0, INET_NTOA(ip+4294967296), INET_NTOA(ip))='%s'"), 'robot' => array('title' => 't_robot', 'exclude' => array(), 'join' => '', 'where' => ''), 'client' => array('title' => 't_client', 'exclude' => array('stat/stat_clients', 'stat/stat_robots', 'stat/stat_settings', 'stat/stat_now'), 'join' => '', 'where' => "sess.client_id='%u'"), 'country' => array('title' => 't_country', 't_name' => "SELECT name_" . (Lang() == 'ru' ? 'ru' : 'en') . " FROM " . STAT_COUNTRIES_TABLE . " WHERE country_id='%s'", 'exclude' => array('stat/stat_geography', 'stat/stat_robots', 'stat/stat_settings', 'stat/stat_now'), 'join' => '', 'where' => "sess.country='%s'"), 'robots' => array('title' => 't_robots', 't_name' => "SELECT name_" . (Lang() == 'ru' ? 'ru' : 'en') . " FROM " . STAT_COUNTRIES_TABLE . " WHERE country_id='%s'", 'exclude' => array('stat/stat_geography', 'stat/stat_robots', 'stat/stat_settings', 'stat/stat_now'), 'join' => '', 'where' => "sess.country='%s'"), 'path' => array('title' => 't_path', 'exclude' => array('stat/stat_popular', 'stat/stat_pathes', 'stat/stat_points', 'stat/stat_outs', 'stat/stat_robots', 'stat/stat_now'), 'join' => "", 'where' => "sess.path = '%s'"), 'ref_page' => array('title' => 't_ref_page', 'exclude' => array('stat/stat_ref_server', 'stat/stat_ref_pages', 'stat/stat_popular', 'stat/stat_robots', 'stat/stat_now'), 'join' => "LEFT JOIN " . STAT_PAGES_TABLE . " AS pag ON pag.id=sess.ref_id", 'where' => "sess.ref_id <> 0 AND CONCAT(pag.host,pag.uri) = '%s'"), 'see_page' => array('title' => 't_see_page', 'exclude' => array(), 'join' => "", 'where' => "LENGTH(sess.path)-LENGTH(REPLACE(sess.path,' ',''))+1 %s"), 'reklama' => array('title' => 't_reklama', 'exclude' => array('stat/stat_reklama', 'stat/stat_robots', 'stat/stat_error', 'stat/stat_popular'), 'join' => "LEFT JOIN " . STAT_PAGES_TABLE . " AS page ON page.id=sess.first_page", 'where' => $reklama_str));
     // Если есть дополнительный отчет
     $this->MakeAdvanced($advanced);
 }
Пример #9
0
 function TMysqlDump()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array();
     $str[get_class_name($this)] = array('title' => array('MySQL: дамп', 'MySQL: dump'), 'head' => array('MySQL: экспорт и импорт данных', 'MySQL: data export & import'), 'filelist' => array('Список файлов', 'Backup\'s File List'), 'files' => array('Файл данных', 'Data file'), 'size' => array('Размер, байт', 'Size, byte'), 'create' => array('Создать дамп данных', 'Create backup'), 'as' => array('Результат', 'Action'), 'data' => array('Показать в броузере', 'Show in browser'), 'drop' => array('Удалять', 'Remove'), 'nodrop' => array('Не удалять', 'Not remove'), 'dropoptions' => array('Если таблица существует', 'If table exists'), 'file' => array('Записать в sql файл', 'Save as sql'), 'gzip' => array('Записать в файл и сжать в gzip', 'Save and gzip'), 'bzip' => array('Записать в файл и сжать в bzip2', 'Save and bzip2'), 'einsert' => array('INSERT', 'INSERT'), 'eupdate' => array('UPDATE', 'UPDATE'), 'ereplace' => array('REPLACE', 'REPLACE'), 'options' => array('Что сохранять', 'What to save'), 'exptype' => array('Тип экспорта', 'Export type'), 'no_data' => array('Только структура', 'Structure only'), 'all' => array('Структура и данные', 'Structure and data'), 'no_create_info' => array('Только данные', 'Data only'), 'xml' => array('В XML формате', 'as XML'), 'add' => array('Дополнительно', 'Additionally'), 'send' => array('Выдать файл на скачивание броузеру', 'Download file'), 'submit' => array('Создать', 'Create'), 'e_not_writable' => array('Невозможно создать дамп: нет прав на запись в директорию "%s".', 'Unable to create file: directory "%s" is not writable.'), 'status' => array('Общая статистика по базе данных', 'Database summary'), 'table_count' => array('Всего таблиц', 'Total tables'), 'table_rows' => array('Всего строк', 'Total rows'), 'table_data' => array('Данные', 'Data size'), 'table_index' => array('Индексы', 'Index size'), 'table_date' => array('Последнее обновление', 'Last update'), 'import' => array('Импорт данных', 'Restore'), 'import_head' => array('Импорт', 'Import'), 'ask_import' => array('Импортировать данные из этого файла?', 'Do you really want import data from this file?'), 'upload_file' => array('Закачать файл', 'Upload file'), 'upload' => array('Отправить', 'Upload'), 'exec' => array('Автоматически запустить импорт данных после закачки файла', 'Import data after uploading'), 'upload_del' => array('Удалять закачанный файл после импорта данных', 'Delete imported data file'), 'c_del' => array('Данный файл будет удален с сервера. Продолжить?', 'This file will be deleted. Continue?'));
 }
Пример #10
0
 function TObjDistricts()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Районы', 'Districts'), 'name' => array('Название района', 'District Title'), 'saved' => array('Данные успешно сохранены', 'Data has been saved successfully'), 'parent' => array('Родительский район', 'Parent district'), 'pixels' => array('Пиксели на image map', 'Pixels on image map'), 'image' => array('Картинка', 'Image'), 'district' => array('Район', 'District'), 'city' => array('Город', 'City'), 'belong' => array('Округ', 'Belong'), 'all' => array('Все', 'All'), 'none' => array('нет', 'none'), 'pid1' => array('Уровень 1', 'Level 1'), 'pid2' => array('Уровень 2', 'Level 2'), 'pid3' => array('Уровень 3', 'Level 3'), 'pid4' => array('Уровень 4', 'Level 4')));
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\')', 'img' => 'icon.delete.gif', 'display' => 'none'));
 }
Пример #11
0
 function TObjects_stars()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Звездность объектов', 'Comfort of objects'), 'stars' => array('Количество звезд', 'Count of stars'), 'storey' => array('Этажность', 'Storeys'), 'material' => array('Материал стен', 'Material of wall'), 'area' => array('Общая площадь', 'Total area')));
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\')', 'img' => 'icon.delete.gif', 'display' => 'none'));
 }
Пример #12
0
 function TOrders()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'delete' => array('Удалить', 'Delete', 'link' => "cnt.deleteItems('" . $this->name . "',null,1)", 'img' => 'icon.delete.gif', 'display' => 'none'));
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Заявки', 'Orders'), 'name' => array('ФИО', 'Name'), 'date' => array('Дата', 'Date'), 'contacts' => array('Контакты', 'Contacts'), 'info' => array('Дополнительная информация', 'Info'), 'lot_id' => array('Лот', 'Lot'), 'flat_id' => array('Квартира', 'Flat')));
 }
Пример #13
0
 function THelp_generator()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Инструкция по системе администрирования', 'Help generator')));
 }
Пример #14
0
 function TBalcony()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Балконы', 'Balcony'), 'name' => array('Заголовок', 'Title')));
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\')', 'img' => 'icon.delete.gif', 'display' => 'none'));
 }
Пример #15
0
 function TUnknown()
 {
     global $actions, $str;
     TTable::TTable();
     $actions[$this->name] = array();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Ошибка модуля', 'Module error'), 'e_module_disabled' => array('Модуль отключен', 'Module disabled'), 'e_module_forbidden' => array('Модуль не разрешен к использованию', 'Module forbidden')));
 }
Пример #16
0
 function TSurveys()
 {
     global $actions, $str;
     TTable::TTable();
     $actions[$this->name] = array('create' => &$actions['table']['create'], 'edit' => &$actions['table']['edit'], 'delete' => &$actions['table']['delete'], 'copy' => array(0 => 'Копировать', 1 => 'Copy', 'link' => 'copyItem', 'img' => 'icon.copy.gif', 'display' => 'block', 'multiaction' => 'false'));
     $actions[$this->name . '.editform'] = array('apply' => array('title' => array('ru' => 'Сохранить', 'en' => 'Save'), 'onclick' => 'document.forms[\'editform\'].elements[\'do\'].value=\'apply\'; document.forms[\'editform\'].submit(); return false;', 'img' => 'icon.save.gif', 'display' => 'block', 'show_title' => true), 'save_close' => array('title' => array('ru' => 'Сохранить и закрыть', 'en' => 'Save'), 'onclick' => 'document.forms[\'editform\'].elements[\'do\'].value=\'save\'; document.forms[\'editform\'].submit(); return false;', 'img' => 'icon.save.gif', 'display' => 'block', 'show_title' => true), 'cancel' => array('title' => array('ru' => 'Отмена', 'en' => 'Cancel'), 'onclick' => 'window.location=\'/admin/?page=' . $this->name . '\'', 'img' => 'icon.close.gif', 'display' => 'block', 'show_title' => true));
     if ((int) $_GET['id']) {
         $temp = sql_getValue("SELECT name FROM " . $this->table . " WHERE id=" . (int) $_GET['id']);
     } else {
         $temp = "Новый опрос";
     }
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Опросы', 'Surveys'), 'title_editform' => array("Опрос: " . $temp, 'Survey: ' . $temp), 'name' => array('Название', 'Title'), 'date_from' => array('Начало опроса', 'Date start'), 'date_till' => array('Окончание опроса', 'Date till'), 'closed' => array('Закрыт', 'Closed'), 'type' => array('Тип вопроса', 'Type'), 'multi' => array('С множественным выбором', 'Multi'), 'single' => array('С единственным выбором', 'Single'), 'author' => array('Кто проводит опрос', 'Author'), 'show_comments' => array('Показать комментарии', 'Show comments'), 'show_popup' => array('Всплывающее окно на главной', 'Show popup window at home page'), 'comments' => array('Комментарии', 'Сomments'), 'description' => array('Описание', 'Description'), 'questions' => array('Список вопросов', 'Questions'), 'quest' => array('Вопрос', 'Question'), 'answers' => array('Ответы', 'Answers'), 'add_question' => array('Добавить вопрос', 'Add question'), 'add_answer' => array('Добавить ответ', 'Add answer'), 'del_question' => array('Удалить вопрос', 'Delete question'), 'del_answer' => array('Удалить ответ', 'Delete answer'), 'free_form' => array('В&nbsp;свободной&nbsp;форме', 'Free&nbsp;form'), 'results' => array('Результаты', 'Results'), 'export' => array('Экспорт', 'Export'), 'back' => array('Назад', 'Back'), 'result_percnt' => array('Показывать в %', 'Show in %'), 'result_cnt' => array('Показывать число проголосовавших', 'Show quantity of voted people'), 'r_on_quest' => array('На вопрос', 'On question'), 'r_answered' => array('ответили', 'answered'), 'r_from' => array('из них', 'from them'), 'dopaste' => array('Вставить из буфера', 'Paste from buffer'), 'show_at_sites' => array('Показывать также на сайтах', 'Show at sites'), 'show_results' => array('Показывать результаты на сайте', 'Show results'), 'export_number' => array('Номер', 'Number'), 'export_date' => array('Дата', 'Date'), 'export_ip' => array('IP', 'IP'), 'export_city' => array('Город', 'City'), 'export_region' => array('Регион', 'Region'), 'export_district' => array('Район', 'District'), 'export_country' => array('Страна', 'Country'), 'export_cb_no_answer' => array('--', '--'), 'export_cb_answer' => array('++', '++'), 'saved' => array('Даные были успешно сохранены', 'Data has been saved successfully')));
     // есть ли привязку к сайту
     $is_root_id = sql_getValue("SHOW COLUMNS FROM " . $this->table . " LIKE 'root_id'");
     if ($is_root_id == 'root_id') {
         $this->selector = true;
     } else {
         $this->selector = false;
     }
     $cols = sql_getRows("SHOW COLUMNS FROM surveys_quests", true);
     if (!isset($cols['req'])) {
         sql_query("ALTER TABLE surveys_quests ADD req INT( 1 ) UNSIGNED NOT NULL DEFAULT '1'");
     }
     if ($cols['type'] != 'varchar(30)') {
         sql_query("ALTER TABLE surveys_quests CHANGE type type VARCHAR( 30 ) CHARACTER SET cp1251 COLLATE cp1251_general_ci NOT NULL DEFAULT 'multi'");
     }
 }
Пример #17
0
 function TObjTypes()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Типы объектов', 'Object types'), 'name' => array('Название', 'Title'), 'Path' => array('Путь', 'Path'), 'variety' => array('Принадлежит', 'Variety'), 'transaction' => array('Вид сделки', 'Transaction'), 'saved' => array('Данные успешно сохранены', 'Data has been saved successfully'), 'all' => array('нет', 'none')));
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\')', 'img' => 'icon.delete.gif', 'display' => 'none'), 'moveup' => &$actions['table']['moveup'], 'movedown' => &$actions['table']['movedown']);
 }
Пример #18
0
 function TFm2()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Файловый менеджер', 'File Manager')));
     $field = get('field', false, 'gp');
     if ($field) {
         $actions[$this->name]['return'] = array('OK', 'OK', 'link' => "cnt.sendValues(); ", 'img' => '../third/restore_f2.png', 'display' => 'none');
     }
     $actions[$this->name]['load'] = array('Загрузить', 'Load', 'link' => "\n\t\t\t\t \t  cnt.document.getElementById('createForm').style.visibility='hidden';\n\t\t\t\t  \t  cnt.direction = -1;\n\t\t\t\t\t  cnt.startMainLoad();\n\t\t\t\t\t  cnt.showDownloadFrom();\n\t\t\t\t  ", 'img' => '../third/filesave.png', 'display' => 'none');
     $actions[$this->name]['create'] = array('Создать директорию', 'Create', 'link' => "\n\t\t\t\t \t  cnt.document.getElementById('downloadForm').style.visibility='hidden';\n\t\t\t\t  \t  cnt.direction = -1;\n\t\t\t\t\t  cnt.startMainLoad();\n\t\t\t\t\t  cnt.showCreateFrom();", 'img' => '../third/add_section.png', 'display' => 'none');
     $actions[$this->name]['delete'] = array('Удалить', 'Delete', 'link' => "cnt.Delete();", 'img' => '../third/cancel_f2.png', 'display' => 'none');
     $actions[$this->name]['rename'] = array('Переименовать', 'Rename', 'link' => "\n\t\t\t\t \t  cnt.document.getElementById('changenameForm').style.visibility='hidden';\n\t\t\t\t  \t  cnt.direction = -1;\n\t\t\t\t\t  cnt.startMainLoad();\n\t\t\t\t\t  cnt.showChangenameForm();", 'img' => '../third/menu.png', 'display' => 'none');
     $data = $this->ReadIni('modules/' . $this->name . '/module.ini');
     if (isset($data['module']['watermark']) && $data['module']['watermark']) {
         $actions[$this->name]['watermark'] = array('Водяной знак', 'Water Mark', 'link' => "\n\t\t\t\t\t \t  cnt.document.getElementById('watermarkForm').style.visibility='hidden';\n\t\t\t\t\t  \t  cnt.direction = -1;\n\t\t\t\t\t\t  cnt.startMainLoad();\n\t\t\t\t\t\t  cnt.showWatermarkForm();", 'img' => '../third/generic.png', 'display' => 'block');
     }
     $data['dirs'] = array();
     $data['defaults'] = array();
     $dir = FILES_DIR . domainRootId();
     if (!is_dir($dir) || is_root()) {
         $dir = FILES_DIR;
     }
     $data['dirs'][] = $dir;
     $data['defaults']['dir'] = $dir;
     $this->config = $data;
 }
Пример #19
0
 function TLog_change()
 {
     global $actions, $str;
     TTable::TTable();
     $actions[$this->name] = array('Clear' => array('Очистить журнал', 'Delete', 'link' => 'cnt.ClearItems()', 'img' => 'icon.delete.gif', 'display' => 'none'));
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Журнал изменений', 'Change log'), 'user' => array('Логин', 'Login'), 'date' => array('Дата', 'Date'), 'object' => array('Таблица', 'Table'), 'action' => array('Вид', 'Type'), 'description' => array('Описание', 'Description'), 'show_from' => array('C', 'From'), 'show_to' => array('по', 'to'), 'nav_period' => array('Период', 'Period'), 'nav_more' => array('Дополнительно', 'More'), 'nav_select_period' => array('Выбор периода', 'Select period'), 'nav_today' => array('за сегодня', 'today'), 'nav_today_title' => array('Смотреть статистику за сегодня', 'View statistic for today'), 'nav_yesterday' => array('вчера', 'yesterday'), 'nav_yesterday_title' => array('Смотреть статистику за вчера', 'View statistic for yesterday'), 'nav_week' => array('за неделю', 'last week'), 'nav_week_title' => array('Смотреть статистику за неделю', 'View statistic for the last week'), 'nav_month' => array('за месяц', 'last month'), 'nav_month_title' => array('Смотреть статистику за месяц', 'View statistic for the last month'), 'nav_all' => array('за все время', 'all time'), 'nav_all_title' => array('Смотреть статистику за все время', 'View statistic for all time'), 'select_date' => array('Выбрать дату', 'Select date'), 'nav_show' => array('показать', 'show')));
 }
Пример #20
0
 function Tdiscounts()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array('save' => array('—охранить изменени¤', 'Save Changes', 'link' => 'cnt.document.forms[this.formname].actions.value=\'editchanges\';cnt.document.forms[this.formname].submit();', 'img' => 'icon.save.gif', 'display' => 'none'), 'create' => &$actions['table']['create'], 'delete' => array('”далить', 'Delete', 'link' => 'cnt.deleteItems()', 'img' => 'icon.delete.gif', 'display' => 'none'));
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('—кидки', 'Discounts'), 'title_one' => array('—кидка', 'Discount'), 'volume' => array('ќбъЄм', 'Volume'), 'upvolume' => array('¬ерхний предел', 'upVolume'), 'discount' => array('«начение, %', 'Value, %'), 'product_group' => array('—кидочные группы', 'Discount groups'), 'discount_group' => array('—кидки дл¤ группы клиентов', 'Discount for user group'), 'saved' => array('—кидка была сохранена', 'The discount has been saved'), 'discount_saved' => array('—кидки сохранены', 'Discounts has been saved')));
 }
Пример #21
0
 function TObjMetroStations()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Станции метро', 'Metro stations'), 'name' => array('Станция', 'Stations'), 'okrug' => array('Округ(а)', 'Region(s)'), 'okrug1' => array('СЗАО', 'SZAO'), 'okrug2' => array('САО', 'SAO'), 'okrug3' => array('СВАО', 'SVAO'), 'okrug4' => array('ЗАО', 'ZAO'), 'okrug5' => array('ЦАО', 'CAO'), 'okrug6' => array('ВАО', 'VAO'), 'okrug7' => array('ЮЗАО', 'UZAO'), 'okrug8' => array('ЮАО', 'UAO'), 'okrug9' => array('ЮВАО', 'UVAO')));
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\')', 'img' => 'icon.delete.gif', 'display' => 'none'));
 }
Пример #22
0
 function TSolutionsTypes()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'moveup' => &$actions['table']['moveup'], 'movedown' => &$actions['table']['movedown'], 'delete' => array('Удалить', 'Delete', 'link' => "cnt.deleteItems('" . $this->name . "',null,1)", 'img' => 'icon.delete.gif', 'display' => 'none'));
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Типы сборок', 'Solutions types'), 'title_one' => array('Тип сборки', 'Solution type'), 'name' => array('Название типа', 'Type name'), 'title_editform' => array('Название типа', 'Type name'), 'description' => array('Описание', 'Description'), 'saved' => array('Тип продукта был сохранен', 'The product groupp has been saved'), 'param_saved' => array('Название параметра было сохранено', 'The parma name has been saved'), 'param_names' => array('Список параметров для типа', 'Paramы list 4 type'), 'param_name' => array('Название параметра', 'Param name'), 'visible' => array('Показывать', 'Visible'), 'generator' => array('Показывать в конструкторе', 'Visible'), 'add_parameter' => array('Добавить параметр', 'Add param'), 'add_range' => array('Добавить диапазон', 'Add range')));
 }
Пример #23
0
 function TAboutBlank()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('restore' => array('Восстановить', 'Restore')));
     $actions[$this->name] = array('delete' => array('Восстановить', 'Restore', 'link' => 'if(frames.cnt && frames.cnt.document.forms.restoreform)frames.cnt.document.forms.restoreform.subm.click();window.open(\'act.php?' . base64_decode(get('src', '')) . '\', \'act\')', 'img' => 'icon.close.gif', 'display' => 'block'));
 }
Пример #24
0
 function Tcart()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Проданные товары', 'Sold products'), 'name' => array('Название', 'Product name'), 'product_name' => array('Название', 'Product name'), 'serial' => array('Серийный номер', 'Serial #'), 'order_date' => array('Дата покупки', 'Order Date'), 'order_id' => array('Номер заказа', 'Order ID'), 'status' => array('Статус', 'Status'), 'status_3' => array('Оплачен', 'Paid'), 'status_4' => array('Доставлен', 'Shipped'), 'quantity' => array('Количество', 'Quantity'), 'price' => array('Стоимость', 'Total Price'), 'customer_price' => array('Стоимость со скидкой', 'Customer Price'), 'art' => array('Код товара', 'Product Code'), 'art2' => array('Артикул', 'Manufacturer Code'), 'manufacturer' => array('Производитель', 'Manufacturer'), 'catalog' => array('Каталог', 'Catalog'), 'nav_period' => array('Экспорт в CSV', 'Period'), 'select_date' => array('Выбрать дату', 'Select date'), 'nav_show' => array('Экспорт в CSV', 'show')));
 }
Пример #25
0
 function Tproduct_type_params()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'moveup' => &$actions['table']['moveup'], 'movedown' => &$actions['table']['movedown'], 'delete' => array('Удалить', 'Delete', 'link' => "cnt.deleteItems('" . $this->name . "',null,1)", 'img' => 'icon.delete.gif', 'display' => 'none'));
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Типы продуктов', 'Product types'), 'title_one' => array('Тип продукта', 'Product type'), 'name' => array('Название типа', 'Type name'), 'url' => array('URL', 'URL'), 'title_editform' => array('Название типа', 'Type name'), 'description' => array('Описание', 'Description'), 'saved' => array('Тип продукта был сохранен', 'The product groupp has been saved'), 'param_saved' => array('Название параметра было сохранено', 'The parma name has been saved'), 'param_names' => array('Список параметров для типа', 'Paramы list 4 type'), 'param_name' => array('Название параметра', 'Param name'), 'visible' => array('Показывать', 'Visible'), 'add' => array('Добавить параметр', 'Add param'), 'title_edit_param' => array('Редактировать параметр', 'Edit param')));
 }
Пример #26
0
 function TFmanager()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('‘айлы и изображени¤', 'Files and images')));
     $actions[$this->name] = array();
 }
Пример #27
0
 function TSupportCategories()
 {
     global $str, $actions;
     TTable::TTable();
     $actions[$this->name] = array('edit' => &$actions['table']['edit'], 'create' => &$actions['table']['create'], 'moveup' => &$actions['table']['moveup'], 'movedown' => &$actions['table']['movedown'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\')', 'img' => 'icon.delete.gif', 'display' => 'none'));
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Категории проблем', 'Problem Categories'), 'title_one' => array('Категория проблемы', 'Problem Category'), 'name' => array('Имя', 'Name'), 'title_editform' => array('Заголовок', 'Title'), 'saved' => array('Категория была сохранена', 'The category has been saved')));
 }
Пример #28
0
 function TObjects_Room()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Квартиры, комнаты', 'Rooms'), 'comment' => array('Комментарий', 'Comment'), 'room' => array('Кол-во комнат', 'Room count'), 'visible' => array('Показывать', 'Visible'), 'lot' => array('Лот', 'lot'), 'address' => array('Адрес', 'Address'), 'manager' => array('Контактное лицо', 'Manager'), 'update_time' => array('Дата обновления', 'date update'), 'url_ref' => array('Связанный объект', 'Reference object'), 'credit' => array('Рассрочка', 'Credit'), 'sell' => array('Продано', 'Sell'), 'avance' => array('Аванс', 'Avance'), 'status' => array('Статус', 'Status')));
     $actions[$this->name] = array('create' => &$actions['table']['create'], 'edit' => &$actions['table']['edit'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\', \'\', -1)', 'img' => 'icon.delete.gif', 'display' => 'none'), 'recycle' => array('Корзина', 'Recycle Bin', 'link' => 'cnt.showRecycle()', 'img' => 'icon.trash.gif', 'display' => 'block'));
     $actions[$this->name]['print'] = array('Напечатать выбранное', 'Print', 'link' => 'cnt.PrintSelected()', 'img' => 'icon.print.gif', 'display' => 'block');
 }
Пример #29
0
 function TObjects_Newbuild()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Новостройки', 'Newbuilds'), 'room' => array('Кол-во комнат', 'Newbuild count'), 'visible' => array('Показывать', 'Visible'), 'lot' => array('Лот', 'lot'), 'address' => array('Адрес', 'Address'), 'update_time' => array('Дата обновления', 'date update'), 'credit' => array('Рассрочка', 'Credit'), 'sell' => array('Продано', 'Sell'), 'avance' => array('Аванс', 'Avance'), 'status' => array('Статус', 'Status')));
     $actions[$this->name] = array('create' => &$actions['table']['create'], 'edit' => &$actions['table']['edit'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\', \'\', -1)', 'img' => 'icon.delete.gif', 'display' => 'none'), 'recycle' => array('Корзина', 'Recycle Bin', 'link' => 'cnt.showRecycle()', 'img' => 'icon.trash.gif', 'display' => 'block'));
     $actions[$this->name]['print'] = array('Напечатать выбранное', 'Print', 'link' => 'cnt.PrintSelected()', 'img' => 'icon.print.gif', 'display' => 'block');
 }
Пример #30
0
 function TObjects()
 {
     global $str, $actions;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('address' => array('Адрес', 'Address'), 'all' => array('-- Все --', ' -- All --'), 'basic' => array('Основные поля', 'Basic fields'), 'basic_caption' => array('Объект недвижимости', 'Object'), 'city' => array('Город', 'City'), 'delete' => array('Удалить', 'Delete'), 'district' => array('Район', 'District'), 'group_str' => array('Групповое обновление', 'Groups'), 'group_submit' => array('Обновить', 'Update'), 'hot' => array('Горячий', 'Hot'), 'visible' => array('Показывать', 'Visible'), 'lot' => array('Лот', 'lot'), 'ipix' => array('Трехмерный просмотр', 'IPIX'), 'manager' => array('Менеджер', 'Manager'), 'metrostation' => array('Станция метро', 'Metro station'), 'price' => array('Цена', 'Price'), 'recycle' => array('Корзина', 'Recycle Bin'), 'restore' => array('Восстановить', 'Restore'), 'saved' => array('Данные успешно сохранены', 'Data has been saved successfully'), 'send' => array('Рассылка', 'Send'), 'square' => array('Площадь', 'Square'), 'st_prodat' => array('Продажи', 'To sell'), 'st_arenda' => array('Аренды', 'For rent'), 'title' => array('Объекты недвижимости', 'Objects'), 'tolet' => array('Свободные площади', 'Free area'), 'type' => array('Тип', 'Type'), 'update_time' => array('Дата обновления', 'date update')));
     $actions[$this->name] = array('create' => &$actions['table']['create'], 'edit' => &$actions['table']['edit'], 'delete' => array('Удалить', 'Delete', 'link' => 'cnt.deleteItems(\'' . $this->name . '\', \'\', -1)', 'img' => 'icon.delete.gif', 'display' => 'none'), 'recycle' => array('Корзина', 'Recycle Bin', 'link' => 'cnt.showRecycle()', 'img' => 'icon.trash.gif', 'display' => 'block'));
     $actions[$this->name . '.editform'] = array('save' => array('Сохранить', 'Save', 'link' => 'closeTab(\'save\');return false;', 'img' => 'icon.save.gif', 'display' => 'block'), 'close' => array('Закрыть', 'Close', 'link' => 'closeTab(\'cancel\');return false;', 'img' => 'icon.close.gif', 'display' => 'block'));
 }