Ejemplo n.º 1
0
 function TSearch()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_diag' => &$actions['tstat']['view_diag'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('keyword' => array('Ключевое слово', 'Keyword'));
 }
Ejemplo n.º 2
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')));
 }
Ejemplo n.º 3
0
 function TPopular()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_diag' => &$actions['tstat']['view_diag'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('page' => array('URL страницы', 'Page URL'), 'viewed' => array('Просмотров', 'Viewed'));
 }
Ejemplo n.º 4
0
Archivo: cart.php Proyecto: romlg/cms36
 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')));
 }
Ejemplo n.º 5
0
 function TBrowsers()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_diag' => &$actions['tstat']['view_diag'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('browser' => array('Браузер', 'Browser'), 'visitors' => array('Посетители', 'Visitors'));
 }
Ejemplo n.º 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')));
 }
Ejemplo n.º 7
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')));
 }
Ejemplo n.º 8
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'];
 }
Ejemplo n.º 9
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'));
 }
Ejemplo n.º 10
0
 function TProcess()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('process' => array('Обработать', 'Process', 'link' => 'cnt.MyProcess()', 'img' => 'icon.save.gif', 'display' => 'block'));
     $str[get_class_name($this)] = $str['tstat'] + array('analyze' => array('Анализируется', 'It is analyzed'), 'not_process' => array('Не обработанная', 'Not processed'), 'total' => array('Всего', 'Total'), 'records' => array('записей', 'records'));
 }
Ejemplo n.º 11
0
 function TClients()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('ban' => array('Действие', 'Action'), 'client' => array('Имя пользователя (ID)', 'Client\'s name (ID)'), 'client_name' => array('Имя пользователя', 'Client\'s name'), 'client_id' => array('ID', 'ID'), 'sessions' => array('Сессий', 'Sessions'), 'confirm1' => array('Вы уверены, что хотите поместить клиента %s в черный список?', 'Are you sure you want to ban client %s?'), 'confirm2' => array('Вы уверены, что хотите удалить клиента %s из черного списка?', 'Are you sure you want to unban client %s?'), 'ban1' => array('Забанить клиента (все его IP адреса)', 'Ban client (all him IP addresses)'), 'ban2' => array('Отбанить клиента (все его IP адреса)', 'Unban client (all him IP addresses)'));
 }
Ejemplo n.º 12
0
 function TBanlist()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array();
     $str[get_class_name($this)] = $str['tstat'] + array('ip' => array('IP адрес', 'IP address'), 'unban' => array('Отбанить', 'Unban'), 'error' => array('Ошибка!', 'Error!'), 'saved' => array('Успешно сохранено', 'Save success'), 'confirm' => array('Вы уверены, что хотите удалить IP %s из черного списка?', 'Are you sure you want to delete IP %s from banlist?'));
 }
Ejemplo n.º 13
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'));
 }
Ejemplo n.º 14
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'));
 }
Ejemplo n.º 15
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')));
 }
Ejemplo n.º 16
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')));
 }
Ejemplo n.º 17
0
 function TRefServer()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_diag' => &$actions['tstat']['view_diag'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('domain' => array('Домен сервера', 'Server domain'), 'from_server' => array('Пришло с сервера', 'From server'));
 }
Ejemplo n.º 18
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('В свободной форме', 'Free 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'");
     }
 }
 function render()
 {
     $this->outer = get_class_name(PAGE_LOGIN);
     $this->inner_HTML = $this->generate_center_public_inner_html();
     $content = parent::render();
     return $content;
 }
Ejemplo n.º 20
0
 function TRobots()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_diag' => &$actions['tstat']['view_diag'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('name' => array('Название Поисковой Машины', 'SearchRobot\'s Name'), 'pages' => array('Количество проиндексированных страниц', 'Amount indexed pages'), 'time' => array('Время посещения', 'Visit time'), 'page' => array(' Адрес страницы', ' Page url'));
 }
Ejemplo n.º 21
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')));
 }
Ejemplo n.º 22
0
 function TExport()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array();
     $str[get_class_name($this)] = $str['tstat'] + array('date' => array('Дата', 'Date'), 'time' => array('Время', 'Time'), 'ip' => array('IP', 'IP'), 'address1' => array('Адрес запрошенной страницы', 'Request page'), 'address2' => array('Адрес ссылаемой страницы', 'Reference page'), 'host1' => array('Хост запрошенный', 'Request page'), 'host2' => array('Хост ссылаемый', 'Reference page'), 'agent' => array('Агент', 'Agent'), 'country' => array('Страна', 'Country'), 'search' => array('Поисковый запрос', 'Search request'), 'client' => array('Клиент', 'Client'));
 }
Ejemplo n.º 23
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')));
 }
Ejemplo n.º 24
0
 function TSearchPh()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_diag' => &$actions['tstat']['view_diag'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('search_ph' => array('Поисковые фразы', 'Search phrases'), 'others' => array('Другие', 'Others'));
 }
Ejemplo n.º 25
0
 function TIp()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('ban' => array('Действие', 'Action'), 'ips' => array('IP-адреса', 'IP-addresses'), 'viewed' => array('Просмотров', 'Viewed'), 'whois_server' => array('Whois-сервер', 'Whois-server'), 'showwhois' => array('Whois-сервер', 'Whois-server'), 'e_whois' => array('Whois Сервер не доступен!', 'Whois-server is not available!'), 'confirm1' => array('Вы уверены, что хотите поместить IP %s в черный список?', 'Are you sure you want to ban IP %s?'), 'confirm2' => array('Вы уверены, что хотите удалить IP %s из черного списка?', 'Are you sure you want to unban IP %s?'), 'ban1' => array('Забанить', 'Ban'), 'ban2' => array('Отбанить', 'Unban'));
 }
Ejemplo n.º 26
0
Archivo: fm2.php Proyecto: romlg/cms36
 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;
 }
Ejemplo n.º 27
0
 function TOuts()
 {
     global $str, $actions;
     TStat::TStat();
     $actions[str_replace('/', '__', $this->name)] = array('view_table' => &$actions['tstat']['view_table'], 'view_diag' => &$actions['tstat']['view_diag'], 'view_csv' => &$actions['tstat']['view_csv']);
     $str[get_class_name($this)] = $str['tstat'] + array('page' => array('URL страницы', 'Page URL'), 'visitors' => array('Посетители', 'Visitors'));
 }
Ejemplo n.º 28
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')));
 }
Ejemplo n.º 29
0
 function TTreeId()
 {
     TTree::TTree();
     global $str;
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Выберите раздел', 'Select page'), 'treeid' => array('Для указания ссылки необходимо выбрать элемент', 'For creating a link an item must be selected')));
     $this->hideInvisible = false;
 }
Ejemplo n.º 30
0
 function TNodeId()
 {
     TTree::TTree();
     global $str;
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Выберите раздел', 'Select page'), 'not_selected' => array('Не выбран раздел', 'Node is not selected')));
     //$this->hideInvisible = true;
 }