Patrick Anders
2014-12-09 f7ec00b2f8ba3efc5bdeacef9c813f8a826ae3be
interface/web/sites/list/aps_installedpackages.list.php
@@ -29,8 +29,15 @@
*/
$liste['name'] = 'aps_instances'; // Name of the list
$liste['table'] = 'aps_instances,aps_packages'; // Database table
$liste['table'] = 'aps_instances'; // Database table
$liste['table_idx'] = 'id'; // Table index
// if multiple tables are involved, list the additional tables here (comma separated)
$liste["additional_tables"] = "aps_packages";
// if multiple tables are involved, specify sql to join these tables
$liste["join_sql"] = " aps_instances.package_id = aps_packages.id";
$liste["search_prefix"] = 'search_'; // Search field prefix
$liste['records_per_page'] = 15; // Records per page
$liste['file'] = 'aps_installedpackages_list.php'; // Script file for this list
@@ -41,24 +48,26 @@
// Search fields
$liste["item"][] = array('field'    => 'name',
                         'datatype' => 'VARCHAR',
                         'formtype' => 'TEXT',
                         'op'       => 'LIKE',
                         'prefix'   => '%',
                         'suffix'   => '%',
                         'width'    => '',
                         'value'    => '');
   'datatype' => 'VARCHAR',
   'formtype' => 'TEXT',
   'op'       => 'LIKE',
   'prefix'   => '%',
   'suffix'   => '%',
   'width'    => '',
   'value'    => '',
   'table' => 'aps_packages');
$liste["item"][] = array('field'    => 'version',
                         'datatype' => 'VARCHAR',
                         'formtype' => 'TEXT',
                         'op'       => 'like',
                         'prefix'   => '%',
                         'suffix'   => '%',
                         'width'    => '',
                         'value'    => '');
 /*
   'datatype' => 'VARCHAR',
   'formtype' => 'TEXT',
   'op'       => 'like',
   'prefix'   => '%',
   'suffix'   => '%',
   'width'    => '',
   'value'    => '',
   'table' => 'aps_packages');
/*
$liste["item"][] = array('field'    => 'customer_id',
                         'datatype' => 'INTEGER',
                         'formtype' => 'SELECT',
@@ -68,16 +77,17 @@
                         'width'    => '',
                         'value'    => '');
*/
$liste["item"][] = array('field'    => 'instance_status',
                         'datatype' => 'VARCHAR',
                         'formtype' => 'SELECT',
                         'op'       => '=',
                         'prefix'   => '',
                         'suffix'   => '',
                         'width'    => '',
                         'value'    => array(INSTANCE_INSTALL => $app->lng('Installation_task'),
                                             INSTANCE_ERROR => $app->lng('Installation_error'),
                                             INSTANCE_SUCCESS => $app->lng('Installation_success'),
                                             INSTANCE_REMOVE => $app->lng('Installation_remove')));
?>
   'datatype' => 'VARCHAR',
   'formtype' => 'SELECT',
   'op'       => '=',
   'prefix'   => '',
   'suffix'   => '',
   'width'    => '',
   'value'    => array(INSTANCE_INSTALL => $app->lng('Installation_task'),
      INSTANCE_ERROR => $app->lng('Installation_error'),
      INSTANCE_SUCCESS => $app->lng('Installation_success'),
      INSTANCE_REMOVE => $app->lng('Installation_remove')),
   'table' => 'aps_instances');
?>