function constructor() { global $g_lang, $g_ini, $pid, $page; avTable::constructor(); $this->name = 'avnews'; $this->pid = 'category_id'; $this->parent = 'avnewscategory'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, '', 0); $this->controls[] = new avcLinkText(&$this, 'subject', $g_lang['news_subject'], '', 1, 1, 1, $g_lang['news_subject'], 1, 50, 'avcomments'); $this->controls[] = new avcTextArea(&$this, 'info', $g_lang['news_info'], '', 1, 1, 0, $g_lang['news_info'], 1, 50, 10); $this->controls[] = new avcTextArea_bbcode(&$this, 'full_text', $g_lang['news_full_text'], '', 0, 1, 0, '', 1, 40, 25); $this->controls[] = new avcDate(&$this, 'posted', $g_lang['news_date'], date('Y.m.d'), 1, 1, 1, $g_lang['news_date'], 1); $this->controls[] = new avcText(&$this, 'keywords', $g_lang['news_keywords'], '', 0, 0, 1, $g_lang['news_keywords'], 1, 40, 'avcomments'); $this->controls[] = new avcDbSelect(&$this, 'category_id', $g_lang['news_category'], '', 1, 1, 1, $g_lang['news_category'], 1, 'avnewscategory', 'id', 'name'); $this->controls[] = new avcDbSelect(&$this, 'submiter', $g_lang['news_author'], $GLOBALS['g_user_id'], 1, 1, 1, $g_lang['news_author'], 1, 'u_users', 'id', 'username'); // $this->controls[] = new avcImage( &$this, 'file', $g_lang['news_image'], '', 0, 1, 0, $g_lang['news_image'], 1, $g_ini->read_var('avnews', 'image_dir'), $g_ini->read_var('avnews', 'image_url'), 110, 210); $this->controls[] = new avcText(&$this, 'file', 'Paveiksliukas', '', 0, 1, 1, 'Failas', 1, 40); // $this->controls[] = new avcHidden( &$this, 'visible', 'Patvirtinta', 0, 0, 1, 1, 'Patvirtinta', 1); if ('list' == $page) { $this->controls[] = new avcDbSelect(&$this, 'authorizer', 'Tvirtintojas', $GLOBALS['g_user_id'], 1, 1, 1, 'Tvirtintojas', 1, 'u_users', 'id', 'username'); $this->controls[] = new avcDate(&$this, 'auth_date', 'Tvirtinimo data', date('Y.m.d'), 1, 1, 1, 'Tvirt. data', 1); $this->controls[] = new avcSelect(&$this, 'visible', 'Patvirtinta', 1, 0, 1, 1, 'Patvirtinta', 1, array('0' => 'ne', '1' => 'taip')); } $this->controls[] = new avcActions(&$this, 'actions', '', '', 0, 0, 1, 'Veiksmai', 0); if (empty($pid)) { $this->description = 'Nepatvirtintos naujienos'; } else { $this->description = $g_lang['news_description']; } $this->default_order = 'posted desc, id desc'; }
function constructor() { global $g_lang, $g_ini; avTable::constructor(); $this->name = 'menuitem'; $this->parent = 'avmenuitem'; $this->pid = 'pid'; $this->description = $g_lang['menuitem']; $this->default_order = 'sort_number'; $this->controls[] = new avcId(&$this, 'id', 'id', '', 0, 1, 1, 'id', 0); if (!empty($GLOBALS['pid'])) { $this->controls[] = new avcText(&$this, 'name', $g_lang['menuitem_name'], '', 0, 1, 1, $g_lang['menuitem_name'], 1, 40); } else { $this->controls[] = new avcLinkText(&$this, 'name', $g_lang['menuitem_name'], '', 0, 1, 1, $g_lang['menuitem_name'], 1, 40, 'avmenuitem'); } $this->controls[] = new avcText(&$this, 'iname', $g_lang['menuitem_iname'], '', 0, 1, 1, $g_lang['menuitem_iname'], 1, 40); $this->controls[] = new avcSelect(&$this, 'page', $g_lang['menuitem_page'], '', 0, 1, 1, $g_lang['menuitem_page'], 1, $this->list_pages()); $this->controls[] = new avcImage(&$this, 'file', $g_lang['menuitem_image'], '', 0, 1, 0, 'file', 1, $g_ini->read_var('avnews', 'image_dir'), $g_ini->read_var('avnews', 'image_url'), 110, 210); $this->controls[] = new avcSelect(&$this, 'type', $g_lang['menuitem_type'], '2', 0, 1, 1, $g_lang['menuitem_type'], 1, array('1' => 'nuoroda', '2' => 'html', '3' => 'blokas', '4' => 'failas', '5' => 'komponentas')); $this->controls[] = new avcText(&$this, 'link', $g_lang['menuitem_link'], '', 0, 1, 0, $g_lang['menuitem_link'], 1, 40); $this->controls[] = new avcTextArea(&$this, 'html', $g_lang['menuitem_html'], '', 0, 1, 0, $g_lang['menuitem_html'], 1, 60, 20); $this->controls[] = new avcDbSelect(&$this, 'block_id', $g_lang['menuitem_block'], '', 0, 1, 0, $g_lang['menuitem_block'], 1, 'avblock', 'name', 'title', '', '0'); $this->controls[] = new avcText(&$this, 'include', $g_lang['menuitem_include'], '', 0, 1, 0, $g_lang['menuitem_include'], 1, 40); $this->controls[] = new avcText(&$this, 'column_id', $g_lang['menuitem_component'], '', 0, 1, 0, $g_lang['menuitem_component'], 1, 40); $this->controls[] = new avcDbSelect(&$this, 'pid', $g_lang['menuitem_parent'], '', 0, 1, 1, $g_lang['menuitem_parent'], 1, 'menuitem', 'id', 'name', '', '0'); $this->controls[] = new avcText(&$this, 'sort_number', $g_lang['menuitem_sort'], '1', 0, 1, 1, $g_lang['menuitem_sort'], 1, 5); $this->controls[] = new avcSelect(&$this, 'visible', $g_lang['menuitem_visible'], 1, 0, 1, 1, $g_lang['menuitem_visible'], 1, array('0' => 'ne', '1' => 'taip')); $this->controls[] = new avcActions(&$this, '', '', '', 0, 0, 1, $g_lang['action'], 0); }
function constructor() { global $g_lang; avTable::constructor(); $this->name = 'u_module'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, '', 0); $this->controls[] = new avcLinkText(&$this, 'name', $g_lang['name'], '', 1, 1, 1, $g_lang['name'], 1, 20, 'page_permissions'); $this->controls[] = new avcText(&$this, 'info', $g_lang['info'], '', 1, 1, 1, $g_lang['info'], 1, 40); $this->controls[] = new avcActions(&$this, 'info', 'info', '', 0, 0, 1, $g_lang['list_rowactions'], 0); $this->description = $g_lang['modules_description']; }
function constructor() { global $g_lang; avTable::constructor(); $this->name = 'u_group'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, 'id', 0); $this->controls[] = new avcLinkText(&$this, 'name', $g_lang['name'], '', 1, 1, 1, $g_lang['name'], 1, 20, 'page_users'); $this->controls[] = new avcText(&$this, 'info', $g_lang['info'], '', 1, 1, 1, $g_lang['info'], 1, 40); $this->controls[] = new avcText(&$this, 'menu', $g_lang['groups_menu'], '', 1, 1, 0, $g_lang['groups_menu'], 1, 40); $this->controls[] = new avcCheckGroup(&$this, 'permissions', $g_lang['groups_permissions']); $this->controls[] = new avcActions(&$this, '', '', '', 0, 0, 1, $g_lang['list_rowactions'], 0); $this->description = $g_lang['groups_description']; }
function constructor() { global $g_lang; avTable::constructor(); $this->name = 'u_permission'; $this->pid = 'module_id'; $this->parent = 'page_modules'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, 'id', 0); $this->controls[] = new avcText(&$this, 'name', $g_lang['name'], '', 1, 1, 1, $g_lang['name'], 1, 20); $this->controls[] = new avcText(&$this, 'info', $g_lang['info'], '', 0, 1, 1, $g_lang['info'], 1, 40); $this->controls[] = new avcDbSelect(&$this, 'module_id', $g_lang['permissions_module'], '', 1, 1, 1, $g_lang['permissions_module'], 1, 'u_module', 'id', 'name'); $this->controls[] = new avcActions(&$this, '', '', '', 0, 0, 1, $g_lang['list_rowactions'], 0); $this->description = $g_lang['permissions_description']; }
function constructor() { global $g_lang; avTable::constructor(); $this->name = 'u_user_log'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 0, '', 0); $this->controls[] = new avcHidden(&$this, 'username', $g_lang['log.username'], '', 1, 1, 1, $g_lang['log.username'], 1, 20); $this->controls[] = new avcTimeStamp(&$this, 'logindate', $g_lang['log.logindate'], '', 0, 1, 1, $g_lang['log.logindate'], 1); $this->controls[] = new avcHidden(&$this, 'host', $g_lang['log.host'], '', 0, 1, 1, $g_lang['log.host'], 1); //$this->controls[] = new avcHidden( &$this, 'browser', $g_lang['log.browser'], '', 0, 1, 1, $g_lang['log.browser'], 1, 20); $this->controls[] = new avcBrowser_type(&$this, 'browser', $g_lang['log.browser'], '', 0, 1, 1, $g_lang['log.browser'], 1, 20); $this->description = $g_lang['log.description']; $this->default_order = 'logindate desc, id desc'; }
function constructor() { global $g_lang, $g_ini, $HTTP_USER_AGENT; avTable::constructor(); $this->name = 'avblock'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, '', 0); $this->controls[] = new avcText(&$this, 'name', $g_lang['name'], '', 1, 1, 1, $g_lang['name'], 1, 40); $this->controls[] = new avcText(&$this, 'title', $g_lang['blocks_title'], '', 1, 1, 1, $g_lang['blocks_title'], 1, 40); $this->controls[] = new avcTextArea(&$this, 'html', $g_lang['blocks_html'], '', 1, 1, 0, $g_lang['blocks_html'], 1, 70, 40); $this->controls[] = new avcText(&$this, 'template', $g_lang['blocks_template'], 'block.html', 1, 1, 1, $g_lang['blocks_template'], 1, 40); $this->controls[] = new avcSelect(&$this, 'visible', $g_lang['blocks_visible'], 1, 0, 1, 1, $g_lang['blocks_visible'], 1, array('0' => $g_lang['no'], '1' => $g_lang['yes'])); $this->controls[] = new avcActions(&$this, 'actions', '', '', 0, 0, 1, $g_lang['action'], 0); $this->description = $g_lang['blocks']; $this->default_order = 'id'; }
function constructor() { global $g_lang; avTable::constructor(); $this->name = 'avworkcategory'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, '', 0); $this->controls[] = new avcLinkText(&$this, 'name', $g_lang['news_subject'], '', 1, 1, 1, $g_lang['news_subject'], 1, 40, 'avworks'); $this->controls[] = new avcText(&$this, 'info', $g_lang['news_info'], '', 1, 1, 1, $g_lang['news_info'], 1, 60); $this->controls[] = new avcImage(&$this, 'file', $g_lang['news_image'], '', 0, 1, 0, $g_lang['news_image'], 1, 'd:\\localhost\\avms\\files', '../files/'); $this->controls[] = new avcText(&$this, 'sort_number', $g_lang['menuitem_sort'], '1', 0, 1, 1, $g_lang['menuitem_sort'], 1, 5); $this->controls[] = new avcActions(&$this, 'actions', '', '', 0, 0, 1, 'Veiksmai', 0); $this->description = 'Darbø kategorijos'; //$g_lang['news_description']; $this->default_order = 'sort_number'; }
function constructor() { global $g_lang, $link_table, $link_module, $module; empty($link_module) && ($link_module = $module); avTable::constructor(); $this->name = 'languages'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, '', 0); if (empty($link_table)) { $this->controls[] = new avcText(&$this, 'name', $g_lang['name'], '', 1, 1, 1, $g_lang['name'], 1, 20); } else { $this->controls[] = new avcLinkText(&$this, 'name', $g_lang['name'], '', 1, 1, 1, $g_lang['name'], 1, 20, $link_table, $link_module); } $this->controls[] = new avcText(&$this, 'lang_name', $g_lang['info'], '', 1, 1, 1, $g_lang['info'], 1, 40); $this->controls[] = new avcActions(&$this, '', '', '', 0, 0, 1, $g_lang['list_rowactions'], 0); $this->description = $g_lang['languages_description']; }
function constructor() { global $g_lang; avTable::constructor(); $this->name = 'avcomments'; $this->pid = 'parent_id'; $this->parent = 'avworks'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, 'id', 0); $this->controls[] = new avcText(&$this, 'subject', 'subjectas', '', 1, 1, 1, 'subjectas', 1, 20); $this->controls[] = new avcTextArea(&$this, 'info', 'info', '', 1, 1, 1, 'info', 1, 40, 5); $this->controls[] = new avcDate(&$this, 'posted', $g_lang['news_date'], date('Y.m.d'), 1, 1, 1, $g_lang['news_date'], 1); $this->controls[] = new avcDbSelect(&$this, 'parent_id', 'tetukas', '', 1, 1, 1, $g_lang['news_category'], 1, 'avnews', 'id', 'subject'); $this->controls[] = new avcDbSelect(&$this, 'user_id', 'useris', '', 1, 1, 1, 'useris', 1, 'u_users', 'id', 'username'); $this->controls[] = new avcHidden(&$this, 'table_name', '', $this->parent, 0, 1); $this->controls[] = new avcActions(&$this, '', '', '', 0, 0, 1, 'Veiksmai', 0); $this->description = 'Komentarai'; }
function constructor() { global $g_lang, $g_ini, $pid, $page; avTable::constructor(); $this->name = 'avworks_delete_log'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 0, '', 0); $this->controls[] = new avcDbText(&$this, 'admin_id', 'Trynikas', '', 1, 1, 1, 'Trynikas', 1, 'u_users', 'id', 'username'); $this->controls[] = new avcDate(&$this, 'posted', $g_lang['news_date'], date('Y.m.d'), 1, 1, 1, $g_lang['news_date'], 1); $this->controls[] = new avcDbSelect(&$this, 'work_category', 'Kategorija', '', 1, 1, 1, 'Kategorija', 1, 'avworkcategory', 'id', 'name'); $this->controls[] = new avcDbText(&$this, 'work_submiter', 'Autorius', $GLOBALS['g_user_id'], 1, 1, 1, 'Autorius', 1, 'u_users', 'id', 'username'); $this->controls[] = new avcHidden(&$this, 'work_subject', 'Pavadinimas', '', 0, 1, 1, 'Pavadinimas', 1); $this->controls[] = new avcDate(&$this, 'work_posted', 'Atsiustas', date('Y.m.d'), 1, 1, 1, 'Atsiustas', 1); $this->controls[] = new avcHidden(&$this, 'work_votecount', 'Balsai', '', 0, 1, 1, 'Balsai', 1); $this->controls[] = new avcHidden(&$this, 'work_summark', 'Suma', 0, 0, 1, 1, 'Suma', 1); $this->controls[] = new avcHidden(&$this, 'work_avgmark', 'Vid.', 0, 0, 1, 1, 'Vid.', 1); $this->description = 'Darbø trynimai'; $this->default_order = 'posted desc, id desc'; }
function constructor() { global $g_lang; avTable::constructor(); $this->name = 'avfaq'; $this->pid = 'lang_id'; $this->parent = 'page_language'; $this->parent_module = 'control'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, '', 0); $this->controls[] = new avcTextArea(&$this, 'question', $g_lang['faq_question'], '', 1, 1, 1, $g_lang['faq_question'], 0, 40, 5); $this->controls[] = new avcTextArea_bbcode(&$this, 'answer', $g_lang['faq_answer'], '', 0, 1, 1, $g_lang['faq_answer'], 0, 40, 10); $this->controls[] = new avcDate(&$this, 'posted', $g_lang['date'], date('Y.m.d'), 1, 1, 1, $g_lang['date'], 1); $this->controls[] = new avcText(&$this, 'name', $g_lang['faq_name'], '', 0, 1, 1, $g_lang['faq_name'], 1, 40); $this->controls[] = new avcText(&$this, 'email', $g_lang['faq_email'], '', 0, 1, 0, '', 1, 40); // $this->controls[] = new avcDbSelect( &$this, 'lang_id', 'lang', '', 1, 1, 1, 'Kalba', 1, 'languages', 'id', 'lang_name'); $this->controls[] = new avcSelect(&$this, 'visible', $g_lang['faq_visible'], 0, 0, 1, 1, $g_lang['faq_visible'], 1, array('0' => $g_lang['no'], '1' => $g_lang['yes'])); $this->controls[] = new avcActions(&$this, 'actions', '', '', 0, 0, 1, $g_lang['action'], 0); $this->description = $g_lang['faq_description']; $this->default_order = 'posted desc, id desc'; }
function constructor() { global $g_lang, $g_ini, $pid, $page; avTable::constructor(); $this->name = 'avworks'; $this->pid = 'category_id'; $this->parent = 'avworkcategory'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, '', 0); $this->controls[] = new avcLinkText(&$this, 'subject', $g_lang['news_subject'], '', 1, 1, 1, $g_lang['news_subject'], 1, 50, 'avcomments'); $this->controls[] = new avcTextArea_bbcode(&$this, 'info', 'Apraðymas', '', 1, 1, 0, 'Apraðymas', 1, 50, 10); $this->controls[] = new avcDate(&$this, 'posted', $g_lang['news_date'], date('Y.m.d'), 1, 1, 1, $g_lang['news_date'], 1); $this->controls[] = new avcDbSelect(&$this, 'category_id', $g_lang['news_category'], '', 1, 1, 1, $g_lang['news_category'], 1, 'avworkcategory', 'id', 'name'); $this->controls[] = new avcDbText(&$this, 'submiter', $g_lang['news_author'], $GLOBALS['g_user_id'], 1, 1, 1, $g_lang['news_author'], 1, 'u_users', 'id', 'username'); $this->controls[] = new avcImage(&$this, 'thumbnail', 'Thumbnail', '', 0, 1, 0, $g_lang['news_image'], 1, $g_ini->read_var('avworks', 'thumbnails_dir'), $g_ini->read_var('avworks', 'thumbnails_url'), 110, 210); $this->controls[] = new avcHidden(&$this, 'file', 'Failas', '', 0, 1, 0, 'Failas', 1); $this->controls[] = new avcHidden(&$this, 'views', 'Perþiûros', 0, 0, 1, 1, 'Perþiûros', 1); $this->controls[] = new avcHidden(&$this, 'score', 'Score', 0, 0, 1, 1, 'Score', 1); $this->controls[] = new avcText(&$this, 'color', 'Spalva', '', 0, 1, 1, 'Spalva', 1, 60); $this->controls[] = new avcActions(&$this, 'actions', '', '', 0, 0, 1, 'Veiksmai', 0); $this->description = 'Darbai'; $this->default_order = 'posted desc, id desc'; }
function constructor() { global $g_lang; avTable::constructor(); $this->name = 'u_users'; $this->pid = 'group_id'; $this->parent = 'page_groups'; $this->controls[] = new avcId(&$this, 'id', '', '0', 0, 1, 1, '', 0); $this->controls[] = new avcText(&$this, 'username', $g_lang['users_username'], '', 1, 1, 1, $g_lang['login.username'], 1, 20); $this->controls[] = new avcPassword(&$this, 'password', $g_lang['users_password'], '', 1, 1, 0, $g_lang['users_password'], 1, 15, 5); $this->controls[] = new avcDbSelect(&$this, 'group_id', $g_lang['users_group'], '', 1, 1, 1, $g_lang['users_group'], 1, 'u_group', 'id', 'name', ''); $this->controls[] = new avcSelect(&$this, 'active', $g_lang['users_active'], '1', 0, 1, 1, $g_lang['users_active'], 1, array('0' => 'ne', '1' => 'taip')); $this->controls[] = new avcText(&$this, 'email', $g_lang['users_email'], '', 0, 1, 1, $g_lang['users_email'], 1, 20); $this->controls[] = new avcTimeStamp(&$this, 'lastlogin', $g_lang['users_lastlogin'], '', 0, 1, 1, $g_lang['users_lastlogin'], 1); $this->controls[] = new avcHidden(&$this, 'lasthost', $g_lang['users_lasthost'], '', 0, 1, 1, $g_lang['users_lasthost'], 1); $this->controls[] = new avcText(&$this, 'del_works_admin', 'Adminai trynë darbø:', 0, 0, 1, 1, 'Trynë adminai', 1, 20); $this->controls[] = new avcText(&$this, 'del_works_system', 'Automatas trynë darbø:', 0, 0, 1, 1, 'Trynë automatas', 1, 20); $this->controls[] = new avcActions(&$this, '', '', '', 0, 0, 1, $g_lang['list_rowactions'], 0); $this->controls[] = new avcDatePlus(&$this, 'may_send_work_after', 'Darbai nuo', date('Y.m.d'), 1, 1, 0, 'temp', 1); $this->controls[] = new avcDatePlus(&$this, 'may_comment_after', 'Komentarai nuo', date('Y.m.d'), 1, 1, 0, 'temp', 1); $this->description = $g_lang['users_description']; }