From: Chuck Scott Date: Mon, 26 Jan 2015 14:05:56 +0000 (-0500) Subject: More user elements working, more corrections to database abstract, and database updates. X-Git-Tag: v1.0.0~72 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0768e9698ed983c792119404f209f84ddbb16b1b;p=WP-Plugins%2Fglm-member-db.git More user elements working, more corrections to database abstract, and database updates. --- diff --git a/activate.php b/activate.php index ef29d27d..e16009a7 100644 --- a/activate.php +++ b/activate.php @@ -42,7 +42,7 @@ class glmMembersPluginActivate extends glmPluginSupport * @access private */ private $dbVersions = array( - '0.1' => array('version' => '0.1', 'tables' => 22) + '0.1' => array('version' => '0.1', 'tables' => 24) ); /** diff --git a/classes/data/dataAccommodationTypes.php b/classes/data/dataAccommodationTypes.php new file mode 100644 index 00000000..76b76330 --- /dev/null +++ b/classes/data/dataAccommodationTypes.php @@ -0,0 +1,157 @@ + + * @license http://www.gaslightmedia.com Gaslightmedia + * @release SVN: $Id: dataMemberType.php,v 1.0 2011/01/25 19:31:47 cscott Exp $ + */ + +/** + * EventManagementDataAccommodationTypes class + * + * PHP version 5 + * + * @category Data + * @package EventManagement + * @author Chuck Scott + * @license http://www.gaslightmedia.com Gaslightmedia + * @release SVN: $Id: dataMembers.php,v 1.0 2011/01/25 19:31:47 cscott + * Exp $ + * @link http://www.visitgreatlakesbay.org/ + */ +abstract class GlmDataAccommodationTypes extends GlmDataAbstract +{ + + /** + * WordPress Database Object + * + * @var $wpdb + * @access public + */ + public $wpdb; + /** + * Plugin Configuration Data + * + * @var $config + * @access public + */ + public $config; + /** + * Field definitions + * + * @var $ini + * @access public + */ + public $table; + + /** + * Field definitions + * + * 'type' is type of field as defined by the application + * text Regular text field + * pointer Pointer to an entry in another table + * 'filters' is the filter name for a particular filter ID in PHP filter + * functions + * See PHP filter_id() + * + * 'use' is when to use the field + * l = List + * g = Get + * n = New + * i = Insert + * e = Edit + * u = Update + * d = Delete + * a = All + * + * @var $ini + * @access public + */ + public $fields = false; + + /** + * Constructor + * + * @param object $d + * database connection + * + * @return void + * @access public + */ + function __construct ($wpdb, $config) + { + parent::__construct($wpdb, $config); + + // Save WordPress Database object + $this->wpdb = $wpdb; + + // Save plugin configuration object + $this->config = $config; + + /* + * Table Name + */ + $this->table = GLM_MEMBERS_PLUGIN_DB_PREFIX . 'accommodation_types'; + + /* + * Table Data Fields + */ + $this->fields = array( + + 'id' => array( + 'field' => 'id', + 'type' => 'integer', + 'view_only' => true, + 'use' => 'a' + ), + + // Facility Type + 'facility_type' => array ( + 'field' => 'facility_type', + 'type' => 'list', + 'list' => $this->config['facility_type'], + 'required' => true, + 'use' => 'a' + ), + + // Name + 'name' => array( + 'field' => 'name', + 'type' => 'text', + 'required' => true, + 'unique' => true, + 'use' => 'a' + ), + + // Description + 'descr' => array( + 'field' => 'descr', + 'type' => 'text', + 'use' => 'a' + ), + + // Short Description + 'short_descr' => array( + 'field' => 'short_descr', + 'type' => 'text', + 'use' => 'a' + ) + + + ); + + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { + glmMembersAdmin::addNotice($this->fields, 'DataBlock', 'Table Fields: '.$this->table); + } + + } +} + +?> \ No newline at end of file diff --git a/classes/data/dataCategories.php b/classes/data/dataCategories.php new file mode 100644 index 00000000..66c8ee5d --- /dev/null +++ b/classes/data/dataCategories.php @@ -0,0 +1,161 @@ + + * @license http://www.gaslightmedia.com Gaslightmedia + * @release SVN: $Id: dataMemberType.php,v 1.0 2011/01/25 19:31:47 cscott Exp $ + */ + +/** + * EventManagementDataCategories class + * + * PHP version 5 + * + * @category Data + * @package EventManagement + * @author Chuck Scott + * @license http://www.gaslightmedia.com Gaslightmedia + * @release SVN: $Id: dataMembers.php,v 1.0 2011/01/25 19:31:47 cscott + * Exp $ + * @link http://www.visitgreatlakesbay.org/ + */ +abstract class GlmDataCategories extends GlmDataAbstract +{ + + /** + * WordPress Database Object + * + * @var $wpdb + * @access public + */ + public $wpdb; + /** + * Plugin Configuration Data + * + * @var $config + * @access public + */ + public $config; + /** + * Field definitions + * + * @var $ini + * @access public + */ + public $table; + + /** + * Field definitions + * + * 'type' is type of field as defined by the application + * text Regular text field + * pointer Pointer to an entry in another table + * 'filters' is the filter name for a particular filter ID in PHP filter + * functions + * See PHP filter_id() + * + * 'use' is when to use the field + * l = List + * g = Get + * n = New + * i = Insert + * e = Edit + * u = Update + * d = Delete + * a = All + * + * @var $ini + * @access public + */ + public $fields = false; + + /** + * Constructor + * + * @param object $d + * database connection + * + * @return void + * @access public + */ + function __construct ($wpdb, $config) + { + parent::__construct($wpdb, $config); + + // Save WordPress Database object + $this->wpdb = $wpdb; + + // Save plugin configuration object + $this->config = $config; + + /* + * Table Name + */ + $this->table = GLM_MEMBERS_PLUGIN_DB_PREFIX . 'categories'; + + /* + * Table Data Fields + */ + $this->fields = array( + + 'id' => array( + 'field' => 'id', + 'type' => 'integer', + 'view_only' => true, + 'use' => 'a' + ), + + // Name + 'name' => array( + 'field' => 'name', + 'type' => 'text', + 'required' => true, + 'unique' => true, + 'use' => 'a' + ), + + // Parent + 'parent' => array( + 'field' => 'parent', + 'type' => 'pointer', + 'p_table' => GLM_MEMBERS_PLUGIN_DB_PREFIX . 'categories', + 'p_field' => 'name', + 'p_orderby' => 'name', + 'p_blank' => true, + + 'required' => false, + 'use' => 'a' + ), + + // Description + 'descr' => array( + 'field' => 'descr', + 'type' => 'text', + 'use' => 'a' + ), + + // Short Description + 'short_descr' => array( + 'field' => 'short_descr', + 'type' => 'text', + 'use' => 'a' + ) + + + ); + + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { + glmMembersAdmin::addNotice($this->fields, 'DataBlock', 'Table Fields: '.$this->table); + } + + } +} + +?> \ No newline at end of file diff --git a/controllers/admin.php b/controllers/admin.php index 67b05eb9..5347f073 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -44,8 +44,10 @@ $GLOBALS['glmMembersAdminValidActions'] = array( 'configure' => array( 'index', 'memberTypes', + 'categories', 'cities', - 'regions' + 'regions', + 'accommodationTypes' ), 'error' => array( 'index', diff --git a/css/admin.css b/css/admin.css index dcaf0523..420ff1fd 100644 --- a/css/admin.css +++ b/css/admin.css @@ -65,6 +65,14 @@ } /* Admin table additions */ +.glm-admin-table { + border: 3px #ddd solid !important; +} +.glm-admin-table thead th{ + border-bottom: 3px #ddd solid !important; + font-size: 15px; + font-weight: bold; +} .glm-table-fieldname { text-align: left; vertical-align: top; @@ -73,6 +81,9 @@ } /* Overlay dialog box */ +.glm-dialog-box { + display: none; +} .ui-dialog { background: #fff; border: 1px black solid; diff --git a/lib/GlmDataAbstract/DataAbstract.php b/lib/GlmDataAbstract/DataAbstract.php index f16ec2c2..ac6c02ac 100755 --- a/lib/GlmDataAbstract/DataAbstract.php +++ b/lib/GlmDataAbstract/DataAbstract.php @@ -570,12 +570,22 @@ abstract class GlmDataAbstract $field_val = 'COALESCE(sum('.$field_val.'), 0) '; } - $field = "( - SELECT ".$field_val." - FROM ".$f['p_table']." - $from - WHERE $where - ) "; + // Check for "as" option + $as = $f['field']; + if (isset($f['as']) && $f['as'] != '') { + $as = $f['as']; + } + + $field = " + COALESCE( + ( + SELECT ".$field_val." + FROM ".$f['p_table']." + $from + WHERE $where + ), null + ) AS $as + "; return $field; } @@ -604,7 +614,7 @@ abstract class GlmDataAbstract { // If the operation is Edit then we need to also get the options for select (unless it's p_static) - if ($forEdit && !($f['p_static'] === true)) { + if ($forEdit && !(isset($f['p_static']) && $f['p_static'] === true)) { // Get current value of pointer if ($id) { @@ -613,8 +623,8 @@ abstract class GlmDataAbstract FROM ".$this->table." WHERE $idfield = $id "; - $d = $this->wpdb->get_results($sql, ARRAY_A); - $p_value = $d['id']; + $p_data = $this->wpdb->get_row($sql, ARRAY_A); + $p_value = $p_data['id']; } // Get pointer options from specified table @@ -625,7 +635,7 @@ abstract class GlmDataAbstract // Get picklist options from other table $where = ''; - if ($f['p_where']) { + if (isset($f['p_where']) && $f['p_where']) { $where = 'WHERE '.$f['p_where']; } @@ -657,7 +667,7 @@ abstract class GlmDataAbstract $pick_list[0] = array( 'value' => '', 'name' => $blankText, - 'default' => ($p['p_id'] == '') + 'default' => (!$p_value) ); } @@ -785,10 +795,9 @@ abstract class GlmDataAbstract // Build pick select table $pick_select = false; $selected_name = ''; + $pick_list = array(); if (count($p_list) > 0) { - $pick_list = array(); - // Deal with optional blank entry $blankText = ''; if (isset($f['p_blank_text']) && $f['p_blank_text'] != '') { diff --git a/misc/databaseScripts/create_database_V0.1.sql b/misc/databaseScripts/create_database_V0.1.sql index 91a93fe0..fe331695 100644 --- a/misc/databaseScripts/create_database_V0.1.sql +++ b/misc/databaseScripts/create_database_V0.1.sql @@ -6,6 +6,18 @@ -- To permit each query below to be executed separately, -- all queries must be separated by a line with ---- +CREATE TABLE {prefix}members ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, + date_created TIMESTAMP NULL, + name TINYTEXT NULL, + data_records INT NULL, + PRIMARY KEY (id), + INDEX(name(20)) +); + +---- + CREATE TABLE {prefix}member_type ( id INT NOT NULL AUTO_INCREMENT, name TINYTEXT NULL, @@ -34,11 +46,11 @@ CREATE TABLE {prefix}regions ( ---- -CREATE TABLE {prefix}members ( +CREATE TABLE {prefix}member_data ( id INT NOT NULL AUTO_INCREMENT, + member INT NULL, status INT NULL, member_type INT NULL, - name TINYTEXT NULL, descr TEXT NULL, short_descr TINYTEXT NULL, addr1 TINYTEXT NULL, @@ -56,17 +68,23 @@ CREATE TABLE {prefix}members ( logo TINYTEXT NULL, cc_type INT NULL, join_date DATE NULL, - notex TEXT NULL, + notes TEXT NULL, create_time TIMESTAMP NULL, modify_time TIMESTAMP NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(status), + INDEX(city), + INDEX(zip(10)), + INDEX(lat), + INDEX(lon), + INDEX(region) ); ---- CREATE TABLE {prefix}locations ( id INT NOT NULL AUTO_INCREMENT, - status INT NULL, + active BOOLEAN NULL, location_type INT NULL, member INT NULL, name TINYTEXT NULL, @@ -88,14 +106,20 @@ CREATE TABLE {prefix}locations ( notes TEXT NULL, create_time TIMESTAMP NULL, modify_time TIMESTAMP NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(city), + INDEX(zip(10)), + INDEX(lat), + INDEX(lon), + INDEX(region) ); ---- CREATE TABLE {prefix}facilities ( id INT NOT NULL AUTO_INCREMENT, - status INT NULL, + active BOOLEAN NULL, facility_type INT NULL, location INT NULL, name TINYTEXT NULL, @@ -116,15 +140,20 @@ CREATE TABLE {prefix}facilities ( notes TEXT NULL, create_time TIMESTAMP NULL, modify_time TIMESTAMP NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(city), + INDEX(zip(10)), + INDEX(lat), + INDEX(lon) ); ---- CREATE TABLE {prefix}activties ( id INT NOT NULL AUTO_INCREMENT, - status INT NULL, - activity_type TINYTEXT NULL, + active BOOLEAN NULL, + activity_type INT NULL, facility INT NULL, name TINYTEXT NULL, descr TEXT NULL, @@ -136,15 +165,33 @@ CREATE TABLE {prefix}activties ( modify_time TIMESTAMP NULL, ref_type INT NULL, ref_dest INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(activity_type), + INDEX(name(20)), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +CREATE TABLE {prefix}accommodation_types ( + id INT NOT NULL AUTO_INCREMENT, + facility_type INT NULL, + name TINYTEXT NULL, + descr TEXT NULL, + short_descr TINYTEXT NULL, + PRIMARY KEY (id), + INDEX(facility_type), + INDEX(name(20)) ); ---- CREATE TABLE {prefix}accommodations ( id INT NOT NULL AUTO_INCREMENT, - status INT NULL, + active BOOLEAN NULL, name TINYTEXT NULL, + accommodation_type INT NULL, descr TEXT NULL, short_descr TINYTEXT NULL, quant INT NULL, @@ -153,14 +200,18 @@ CREATE TABLE {prefix}accommodations ( year_round TINYINT(1) NULL, ref_type INT NULL, ref_dest INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(accommodation_type), + INDEX(name(20)), + INDEX(ref_type), + INDEX(ref_dest) ); ---- CREATE TABLE {prefix}golf ( id INT NOT NULL AUTO_INCREMENT, - status INT NULL, + active BOOLEAN NULL, name TINYTEXT NULL, descr TEXT NULL, short_descr TINYTEXT NULL, @@ -173,15 +224,31 @@ CREATE TABLE {prefix}golf ( reservation_url TINYTEXT NULL, ref_type INT NULL, ref_dest INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +CREATE TABLE {prefix}restaurant_types ( + id INT NOT NULL AUTO_INCREMENT, + active TINYINT(1) NULL, + name TINYTEXT NULL, + descr TEXT NULL, + short_descr TINYTEXT NULL, + PRIMARY KEY (id), + INDEX(name(20)) ); ---- CREATE TABLE {prefix}restaurants ( id INT NOT NULL AUTO_INCREMENT, - status INT NULL, + active BOOLEAN NULL, name TINYTEXT NULL, + restaurant_type INT NULL, descr TEXT NULL, short_descr TINYTEXT NULL, menu TEXT NULL, @@ -195,14 +262,18 @@ CREATE TABLE {prefix}restaurants ( notes TEXT NULL, ref_type INT NULL, ref_dest INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(restaurant_type), + INDEX(name(20)), + INDEX(ref_type), + INDEX(ref_dest) ); ---- CREATE TABLE {prefix}meals ( id INT NOT NULL AUTO_INCREMENT, - status INT NULL, + active BOOLEAN NULL, name TINYTEXT NULL, descr TEXT NULL, short_descr TINYTEXT NULL, @@ -248,16 +319,17 @@ CREATE TABLE {prefix}meals ( sat_end_time TIME NULL, sat_res_req TINYINT(1) NULL, restaurant INT NULL, - PRIMARY KEY (id) + ref_type INT NULL, + ref_dest INT NULL, + PRIMARY KEY (id), + INDEX(name(20)) ); ---- CREATE TABLE {prefix}contacts ( id INT NOT NULL AUTO_INCREMENT, - status INT NULL, - ref_type INT NULL, - ref_dest INT NULL, + active BOOLEAN NULL, fname TINYTEXT NULL, lname TINYTEXT NULL, contact_type INT NULL, @@ -283,7 +355,16 @@ CREATE TABLE {prefix}contacts ( notes TEXT NULL, create_time TIMESTAMP NULL, modify_time TIMESTAMP NULL, - PRIMARY KEY (id) + ref_type INT NULL, + ref_dest INT NULL, + PRIMARY KEY (id), + INDEX(fname(20)), + INDEX(lname(20)), + INDEX(city), + INDEX(zip(10)), + INDEX(lat), + INDEX(lon), + INDEX(email(20)) ); ---- @@ -295,7 +376,8 @@ CREATE TABLE {prefix}amenities ( descr TEXT NULL, short_descr TINYTEXT NULL, facility_type INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(name(20)) ); ---- @@ -310,23 +392,28 @@ CREATE TABLE {prefix}social_media ( ---- -CREATE TABLE {prefix}social_media_member ( +CREATE TABLE {prefix}social_media_ref ( id INT NOT NULL AUTO_INCREMENT, ref_type INT NULL, ref_dest INT NULL, social_media INT NULL, url TINYTEXT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(ref_type), + INDEX(ref_dest), + INDEX(social_media) ); ---- -CREATE TABLE {prefix}amenity_member ( +CREATE TABLE {prefix}amenity_ref ( id INT NOT NULL AUTO_INCREMENT, amenity INT NULL, ref_type INT NULL, ref_dest INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(ref_type), + INDEX(ref_dest) ); ---- @@ -336,7 +423,8 @@ CREATE TABLE {prefix}accounts ( member INT NULL, payment_type INT NULL, invoice_delivery INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(member) ); ---- @@ -354,11 +442,14 @@ CREATE TABLE {prefix}categories ( CREATE TABLE {prefix}category_member ( id INT NOT NULL AUTO_INCREMENT, - cateogory INT NULL, - main_category TINYINT(1) NULL, + category INT NULL, + main_category INT NULL, ref_type INT NULL, ref_dest INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(category), + INDEX(ref_type), + INDEX(ref_dest) ); ---- @@ -374,7 +465,11 @@ CREATE TABLE {prefix}files ( create_date DATE NULL, ref_type INT NULL, ref_dest INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(file_name(20)), + INDEX(ref_type), + INDEX(ref_dest) ); ---- @@ -389,5 +484,9 @@ CREATE TABLE {prefix}images ( position INT NULL, ref_type INT NULL, ref_dest INT NULL, - PRIMARY KEY (id) + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(file_name(20)), + INDEX(ref_type), + INDEX(ref_dest) ); diff --git a/misc/smarty/templates_c/06926788f51c1a5a54be2a368556f9c37e2780da.file.badAction.html.php b/misc/smarty/templates_c/06926788f51c1a5a54be2a368556f9c37e2780da.file.badAction.html.php index 88044165..6e45c643 100644 --- a/misc/smarty/templates_c/06926788f51c1a5a54be2a368556f9c37e2780da.file.badAction.html.php +++ b/misc/smarty/templates_c/06926788f51c1a5a54be2a368556f9c37e2780da.file.badAction.html.php @@ -1,29 +1,29 @@ - -decodeProperties(array ( 'file_dependency' => array ( '06926788f51c1a5a54be2a368556f9c37e2780da' => array ( 0 => '/var/www/server/wordpress/wp-content/plugins/glm-member-db/views/admin/error/badAction.html', - 1 => 1421285081, + 1 => 1421691086, 2 => 'file', ), ), - 'nocache_hash' => '210264866954b42dd4bbc715-16113482', + 'nocache_hash' => '105358588254c05121d677a6-75784395', 'function' => array ( ), - 'version' => 'Smarty-3.1.21-dev', - 'unifunc' => 'content_54b42dd4c09430_68496846', 'variables' => array ( 'errorMsg' => 0, ), 'has_nocache_code' => false, + 'version' => 'Smarty-3.1.21-dev', + 'unifunc' => 'content_54c05121d71ab3_37928404', ),false); /*/%%SmartyHeaderCode%%*/?> -getSubTemplate ('admin/error/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> +getSubTemplate ('admin/error/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

Sorry, we've had an error.

diff --git a/misc/smarty/templates_c/081a36d97cdf30d438a1e104c26a275acc180da0.file.index.html.php b/misc/smarty/templates_c/081a36d97cdf30d438a1e104c26a275acc180da0.file.index.html.php index 6f74ae14..71330b67 100644 --- a/misc/smarty/templates_c/081a36d97cdf30d438a1e104c26a275acc180da0.file.index.html.php +++ b/misc/smarty/templates_c/081a36d97cdf30d438a1e104c26a275acc180da0.file.index.html.php @@ -1,30 +1,30 @@ - -decodeProperties(array ( 'file_dependency' => array ( '081a36d97cdf30d438a1e104c26a275acc180da0' => array ( 0 => '/var/www/server/wordpress/wp-content/plugins/glm-member-db/views/admin/members/index.html', - 1 => 1421288544, + 1 => 1421691086, 2 => 'file', ), ), - 'nocache_hash' => '206413157254b42f2535e168-27938613', + 'nocache_hash' => '43313958054c05ab60b0587-71987387', 'function' => array ( ), - 'version' => 'Smarty-3.1.21-dev', - 'unifunc' => 'content_54b42f25390269_82355360', 'variables' => array ( 'numbMembers' => 0, 'thisURL' => 0, ), 'has_nocache_code' => false, + 'version' => 'Smarty-3.1.21-dev', + 'unifunc' => 'content_54c05ab60bb1c1_03470573', ),false); /*/%%SmartyHeaderCode%%*/?> -getSubTemplate ('admin/members/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> +getSubTemplate ('admin/members/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

Members Dashboard

diff --git a/misc/smarty/templates_c/15f83071407dddb0b3c23ae1a70b66cefbd681db.file.header.html.php b/misc/smarty/templates_c/15f83071407dddb0b3c23ae1a70b66cefbd681db.file.header.html.php index 76a16384..a080e005 100644 --- a/misc/smarty/templates_c/15f83071407dddb0b3c23ae1a70b66cefbd681db.file.header.html.php +++ b/misc/smarty/templates_c/15f83071407dddb0b3c23ae1a70b66cefbd681db.file.header.html.php @@ -1,22 +1,20 @@ - -decodeProperties(array ( 'file_dependency' => array ( '15f83071407dddb0b3c23ae1a70b66cefbd681db' => array ( 0 => '/var/www/server/wordpress/wp-content/plugins/glm-member-db/views/admin/members/header.html', - 1 => 1421281076, + 1 => 1421691086, 2 => 'file', ), ), - 'nocache_hash' => '81165772654b46f32298020-09293550', + 'nocache_hash' => '41614071154c05ab60be091-67045844', 'function' => array ( ), - 'version' => 'Smarty-3.1.21-dev', - 'unifunc' => 'content_54b46f322c0910_93147809', 'variables' => array ( 'thisURL' => 0, @@ -24,8 +22,10 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 'thisAction' => 0, ), 'has_nocache_code' => false, + 'version' => 'Smarty-3.1.21-dev', + 'unifunc' => 'content_54c05ab60d1510_45219092', ),false); /*/%%SmartyHeaderCode%%*/?> -
+

Your Members

Cities

+

Regions

- +
@@ -48,16 +54,8 @@ - - - - - - - - -{if $haveCities} +{if $haveRegions} {assign var="i" value="0"} {foreach $regions as $t} {if $i++ is odd by 1} @@ -102,10 +100,6 @@ $('#newRegionButton').click( function() { $("#newRegionDialog").dialog("open"); }); - $('#newRegionConfirm').click( function() { - $("#newRegionDialog").dialog("close"); - window.location.href = "{$thisURL}?page={$thisPage}&glm_action=regions&option=addNew"; - }); $('#newRegionCancel').click( function() { $("#newRegionDialog").dialog("close"); }); diff --git a/views/admin/member/index.html b/views/admin/member/index.html index a2dc6e5e..39602edd 100644 --- a/views/admin/member/index.html +++ b/views/admin/member/index.html @@ -23,6 +23,7 @@ +
Region 
RegionDescriptionShort Description 
Member Name:{$member.name}
Type:{$member.member_type}
Description:{$member.descr}
Short Description:{$member.short_descr}
diff --git a/views/admin/members/list.html b/views/admin/members/list.html index 941e6f0f..a4114c70 100644 --- a/views/admin/members/list.html +++ b/views/admin/members/list.html @@ -2,19 +2,14 @@

List of Members

- +
+ - - - - - - {if $haveMembers} {assign var="i" value="0"} @@ -28,7 +23,10 @@ {$m.name} + {/foreach}
Member NameType  
Member Name 
- (nothing here yet) + {$m.member_type} + + Manage