<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Customers'); $page = 'admin/table'; $table = new AdminTable('customers', 'customer'); $table->new_link_label = t('New Customer'); $table->add([['name' => 'customer_name', 'label' => 'Name'], ['name' => 'customer_email', 'label' => 'E-mail'], ['name' => 'customer_failed_attempts', 'label' => 'Failed Logins']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Languages'); $page = 'admin/table'; $table = new AdminTable('languages', 'language'); $table->add([['name' => 'language_name', 'label' => 'Name'], ['name' => 'language_code', 'label' => 'Code']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Administrators'); $page = 'admin/table'; $table = new AdminTable('users', 'user'); $table->add([['name' => 'user_login', 'label' => 'Login'], ['name' => 'user_email', 'label' => 'E-mail'], ['name' => 'user_last_login', 'label' => 'Last Login']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Currencies'); $page = 'admin/table'; $table = new AdminTable('currencies', 'currency'); $table->add([['name' => 'currency_name', 'label' => 'Name'], ['name' => 'currency_format', 'label' => 'Format'], ['name' => 'currency_value', 'label' => 'Value']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Orders'); $page = 'admin/table'; $table = new AdminTable('viewOrders', 'order'); $table->add([['name' => 'order_created', 'label' => 'Date', 'type' => 'date'], ['name' => 'order_state_name', 'label' => 'Status'], ['name' => 'customer_name', 'label' => 'Customer'], ['name' => 'order_payment_code', 'label' => 'Payment Code']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Categories'); $page = 'admin/table'; $table = new AdminTable('categories', 'category'); $table->add([['name' => 'category_name', 'label' => 'Name']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Failed Attempts'); $page = 'admin/table'; $table = new AdminTable('ip_failed_attempts', 'ip_failed_attempt'); $table->add([['name' => 'ip_failed_attempt_ip', 'label' => 'IP'], ['name' => 'ip_failed_attempt_count', 'label' => 'Counter'], ['name' => 'ip_failed_attempt_first', 'label' => 'First failed attempt'], ['name' => 'ip_failed_attempt_last', 'label' => 'Last failed attempt']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Roles'); $page = 'admin/table'; $table = new AdminTable('roles', 'role'); $table->add([['name' => 'role_name', 'label' => 'Name'], ['name' => 'role_description', 'label' => 'Description']]); $table->prepare($db);
<?php require_once $home_dir . 'models/translation.m.php'; require_once $home_dir . 'classes/tables.php'; $page_title = t('Translations'); $page = 'admin/table'; $table = new AdminTable('viewTranslations', 'translation'); $table->addLink('admin/trans_import', 'Import'); $table->add([['name' => 'translation_name', 'label' => 'Name'], ['name' => 'translation_translation', 'label' => 'Translation'], ['name' => 'language_name', 'label' => 'Language']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Aliases'); $page = 'admin/table'; $table = new AdminTable('aliases', 'alias'); $table->add([['name' => 'alias_url', 'label' => 'URL'], ['name' => 'alias_path', 'label' => 'Path']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Delivery types'); $page = 'admin/table'; $table = new AdminTable('delivery_types', 'delivery_type'); $table->add([['name' => 'delivery_type_name', 'label' => 'Name']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Payment types'); $page = 'admin/table'; $table = new AdminTable('payment_types', 'payment_type'); $table->add([['name' => 'payment_type_name', 'label' => 'Name']]); $table->prepare($db);
<?php require_once $home_dir . 'classes/tables.php'; $page_title = t('Products'); $page = 'admin/table'; $table = new AdminTable('viewProducts', 'product'); $table->add([['name' => 'product_id', 'label' => 'ID'], ['name' => 'product_name', 'label' => 'Name'], ['name' => 'category_name', 'label' => 'Category']]); $table->prepare($db);