color style
This commit is contained in:
+106
-7
@@ -49,6 +49,7 @@ ALTER TABLE members ADD profile_completed timestamp without time zone DEFAULT NU
|
||||
ALTER TABLE members ADD option_name VARCHAR(100) REFERENCES subscription_options(option_name);
|
||||
ALTER TABLE members ADD next_billing timestamp without time zone;
|
||||
ALTER TABLE members ADD trial_end timestamp without time zone;
|
||||
ALTER TABLE members ADD last_login timestamp without time zone DEFAULT now();
|
||||
-- bALTER TABLE members ADD option_name VARCHAR(100) REFERENCES subscription_options(option_name);
|
||||
|
||||
CREATE TABLE members_profile(
|
||||
@@ -111,6 +112,22 @@ CREATE TABLE products (
|
||||
|
||||
ALTER TABLE products ADD start_url VARCHAR(100);
|
||||
|
||||
ALTER TABLE products ADD list_order INT DEFAULT 0;
|
||||
ALTER TABLE products ADD contacts INT DEFAULT 0;
|
||||
ALTER TABLE products ADD comments INT DEFAULT 0;
|
||||
|
||||
|
||||
UPDATE products SET contacts = 1 WHERE product_id IN ('A000001','A000002');
|
||||
UPDATE products SET comments = 1 WHERE product_id IN ('A000003','A000004');
|
||||
|
||||
ALTER TABLE products ADD blog_product_id VARCHAR(25);
|
||||
UPDATE products SET blog_product_id='A000003' WHERE product_id = 'A000001';
|
||||
UPDATE products SET blog_product_id='A000004' WHERE product_id = 'A000002';
|
||||
|
||||
--- initial set
|
||||
UPDATE products SET list_order = 10*id;
|
||||
UPDATE products SET name='Open-EMR' WHERE product_id = 'A000005';
|
||||
|
||||
--- DEVELOPMENT
|
||||
UPDATE products SET start_url = 'A1.devprov.mermsemr.com' WHERE product_id = 'A000001';
|
||||
UPDATE products SET start_url = 'A2.devprov.mermsemr.com' WHERE product_id = 'A000002';
|
||||
@@ -248,6 +265,53 @@ merms_panel=# select product_id,description from products;
|
||||
A000005 | Get Open EMR for practice management
|
||||
(5 rows)
|
||||
|
||||
|
||||
CREATE TABLE products_colorstyle (
|
||||
id SERIAL,
|
||||
uid uuid DEFAULT uuid_generate_v4(),
|
||||
product_id VARCHAR(25) REFERENCES products(product_id),
|
||||
name VARCHAR(55) NOT NULL,
|
||||
color_style VARCHAR(55) NOT NULL,
|
||||
color_code VARCHAR(9) NOT NULL,
|
||||
status INT DEFAULT 0,
|
||||
added timestamp without time zone DEFAULT now()
|
||||
);
|
||||
ALTER TABLE ONLY products_colorstyle
|
||||
ADD CONSTRAINT products_colorstyle_id_key UNIQUE (id);
|
||||
|
||||
ALTER TABLE products_colorstyle OWNER TO merms_panel;
|
||||
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Blue','blue-theme.css','0000FF');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Crocus','crocus-theme.css','9172EC');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Green','green-theme.css','00FF00');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Magenta','magenta-theme.css','FF00FF');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Pink','pink-theme.css','FFC0CB');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Purple','purple-theme.css','800080');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Skyblue','skyblue-theme.css','87CEEB');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Red','red-theme.css','FF0000');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000001','Violet','violet-theme.css','8F00FF');
|
||||
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Blue','blue-theme.css','0000FF');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Crocus','crocus-theme.css','9172EC');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Green','green-theme.css','00FF00');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Magenta','magenta-theme.css','FF00FF');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Pink','pink-theme.css','FFC0CB');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Purple','purple-theme.css','800080');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Skyblue','skyblue-theme.css','87CEEB');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Red','red-theme.css','FF0000');
|
||||
INSERT INTO products_colorstyle (product_id, name, color_style, color_code ) VALUES ('A000002','Violet','violet-theme.css','8F00FF');
|
||||
|
||||
|
||||
|
||||
{`nav-link ${(activeTab == value.controls || (index == 0 & !activeTab)) && 'active show'}`}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE products_templates (
|
||||
id SERIAL,
|
||||
uid uuid DEFAULT uuid_generate_v4(),
|
||||
@@ -264,6 +328,9 @@ merms_panel=# select product_id,description from products;
|
||||
ALTER TABLE products_templates OWNER TO merms_panel;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
INSERT INTO products_templates(product_id,name,provision_name,status)
|
||||
VALUES(
|
||||
'A000001',
|
||||
@@ -350,22 +417,52 @@ INSERT INTO products (name,description,status,product_id, banner) VALUES ('Perso
|
||||
INSERT INTO products (name,description,status,product_id, banner) VALUES ('Professional Blog','Booster your practice with engaging contents',1,'A000004', 'banner.jpg');
|
||||
INSERT INTO products (name,description,status,product_id, banner) VALUES ('Practice EMR','Get Open EMR for practice management',1,'A000005', 'banner.jpg');
|
||||
|
||||
INSERT INTO products (name,description,status,product_id, banner) VALUES ('Mers Practice','Get Open EMR for practice management',1,'A000006', 'banner.jpg');
|
||||
UPDATE products SET start_url = 'm.ehr.mermsemr.com' WHERE product_id = 'A000006';
|
||||
-- NEW PRODUCT------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
INSERT INTO products (name,description,status,product_id, banner, start_url)
|
||||
VALUES ('MERMs Practice',
|
||||
'Get Merms EMR for your Practice Management',
|
||||
5,
|
||||
'A000006',
|
||||
'p6.jpg',
|
||||
'm.ehr.mermsemr.com');
|
||||
|
||||
-- UPDATE products SET start_url = 'm.ehr.mermsemr.com' WHERE product_id = '';
|
||||
|
||||
INSERT INTO products_details (product_id,details) VALUES ('A000006', '
|
||||
<p><b>OpenEMR</b> is the most popular open source electronic health records and medical practice management solution. OpenEMR is a community of passionate volunteers and contributors dedicated to guarding OpenEMR status as a free, open source software solution for medical practices with a commitment to openness, kindness and cooperation.
|
||||
<p><b>OpenEMR</b> is the most popular open source electronic health records and medical practice management solution. Merms EMR is a community of passionate volunteers and contributors dedicated to guarding OpenEMR status as a free, open source software solution for medical practices with a commitment to openness, kindness and cooperation.
|
||||
</p><p>
|
||||
Activate to deploy OpenEMR for your practice
|
||||
</p><p>
|
||||
URL: https://www.open-emr.org/ </p>');
|
||||
Activate to deploy MERMS Emr for your practice
|
||||
</p>');
|
||||
|
||||
UPDATE products_details SET sale_text =
|
||||
'<br>
|
||||
<hr>
|
||||
Start free for 1 month, and customize your product with additional features as you see fit. You''re in control-you can cancel anytime.
|
||||
<hr>
|
||||
<br>' WHERE product_id= 'products_details';
|
||||
<br>' WHERE product_id= 'A000006';
|
||||
|
||||
|
||||
INSERT INTO products_templates(product_id,name,provision_name,status)
|
||||
VALUES(
|
||||
'A000006',
|
||||
'Template F01',
|
||||
'registry.chiefsoft.com/products/merms-emr-001:latest',
|
||||
1);
|
||||
|
||||
INSERT INTO products_templates(product_id,name,provision_name,status)
|
||||
VALUES(
|
||||
'A000006',
|
||||
'Template F02',
|
||||
'registry.chiefsoft.com/products/merms-emr-002:latest',
|
||||
1);
|
||||
|
||||
|
||||
-- UPDATE products SET start_url = 'm.ehr.mermsemr.com' WHERE product_id = 'A000006';
|
||||
-- UPDATE products SET status = 5 WHERE product_id = 'A000006';
|
||||
-- END 000 Product --------------------------------------------------
|
||||
|
||||
|
||||
|
||||
@@ -670,6 +767,8 @@ CREATE TABLE office_users(
|
||||
ALTER TABLE ONLY office_users
|
||||
ADD CONSTRAINT office_users_id_key UNIQUE (id);
|
||||
|
||||
ALTER TABLE office_users ALTER COLUMN password TYPE VARCHAR(250);
|
||||
|
||||
ALTER TABLE office_users OWNER TO merms_panel;
|
||||
|
||||
INSERT INTO office_users (username, password, firstname, lastname, acc_level) VALUES ('mermsadmin','password','Merms','Admin',1000);
|
||||
|
||||
Reference in New Issue
Block a user