MySql_InsertExampleFreesn.sql 23.9 KB
--select "#### MySql_LOSP_MainDB ####";
\. MySql_LOSP_MainDB.sql
-- select "#### MySql_LOSP_SRequestDB ####";
-- \. MySql_LOSP_SRequestDB.sql

-- mensch.coop data
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName) VALUES ('1', 'Towns');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('100', 'Peking', 	'1');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('101', 'Shanghai', 		'1');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('102', 'Lagos', 		'1');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('103', 'Istanbul', 			'1');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('104', 'Karatschi', 	'1');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('105', 'Mumbai', 			'1');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('106', 'Sao Paulo', 		'1');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('107', 'Moskau', 		'1');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName) VALUES ('2', 'Rivers');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('200', 'Nil',			'2');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('201', 'Amazonas', 	'2');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('202', 'Jangtsekiang', 			'2');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('203', 'Mississippi', 		'2');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('204', 'Jenissei', 			'2');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName) VALUES ('3', 'Mountains');
 INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('300', 'Mount Everest',		'3');
 INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('301', 'Godwin Austen','3');
 INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('302', 'Qogir','3');
 INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('303', 'Kanchenjunga',		'3');
 INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('304', 'Kantschindschunga',	'3');

INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName) VALUES ('4', 'local');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('400', 'fromhere',			'4');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('401', 'forhere',			'4');

INSERT INTO losp_BasisElement_categorylist (BECategoryListID, BECategoryID) VALUES ('1', '1');
INSERT INTO losp_BasisElement_categorylist (BECategoryListID, BECategoryID) VALUES ('2', '2');
INSERT INTO losp_BasisElement_categorylist (BECategoryListID, BECategoryID) VALUES ('3', '3');
INSERT INTO losp_BasisElement_categorylist (BECategoryListID, BECategoryID) VALUES ('4', '4');
INSERT INTO losp_BasisElement_categorylist (BECategoryListID, BECategoryID) VALUES ('10', '1');
INSERT INTO losp_BasisElement_categorylist (BECategoryListID, BECategoryID) VALUES ('10', '2');
INSERT INTO losp_BasisElement_categorylist (BECategoryListID, BECategoryID) VALUES ('10', '3');

INSERT INTO losp_BasisElement_tagnamelist (TagID, TagName) VALUES ('1', 'OpenSource');
INSERT INTO losp_BasisElement_tagnamelist (TagID, TagName) VALUES ('2', 'Web2null');
INSERT INTO losp_BasisElement_tagnamelist (TagID, TagName) VALUES ('3', 'Linux');


INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('1', 'unreaded');
INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('2', 'readed');
INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('3', 'confirmed');
INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('4', 'unconfirmed');
INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('100', 'outbox');
INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('101', 'notice');
INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('102', 'draft');
INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('103', 'child');
INSERT INTO losp_BasisClipboard_state (StateID, State) VALUES ('1000', 'trash');


INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('1', 'DateBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('2', 'Blog');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('3', 'ThreadMessageBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('4', 'InBox');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('5', 'OutBox');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('1005', 'DraftBox');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('6', 'FriendList');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('7', 'LinkList');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('8', 'ThreadBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('9', 'AspirantWriteRight');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('20', 'ProfileBC') ;
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('26', 'GroupProfileBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('27', 'MemberProfileBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('100', 'NewsfeedItemBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('101', 'NewsfeedBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('102', 'NewsfeedBEImages');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('107', 'Clipboard');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('110', 'TopicBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('130', 'FileBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('190', 'UrlBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('500', 'SubProfileManagement');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('501', 'GroupProfileManagement');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('201', 'ThreadMessageUnderBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('202', 'FileUnderBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('203', 'FileUnderImageBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('210', 'CampaignBC');



INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('1', 'Forum');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('2', 'SubPages');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('3', 'Guestbook');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('4', 'Blog');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('5', 'Paper');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('6', 'ProfilePage');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('7', 'private');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('8', 'business');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('9', 'public');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('10', 'Threads');
INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('11', 'Image');
-- INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('11', 'SubProfileManagement');
-- INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('12', 'GroupProfileManagement');
-- INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('13', '');
-- INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('14', '');
-- INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('15', '');
-- INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('16', '');
-- INSERT INTO losp_BasisClipboard_category (CategoryID, CategoryName) VALUES ('17', '');


-- example data



select 'generate Accounts';
/*
*	accounts for the test system (password have to be test)
*/
												-- insertProfile(param_NickName varchar(20), param_EMail varchar(256), param_Fingerprint varchar(42), param_Jabber varchar(256), param_Url varchar(2048), param_Subject varchar(512), param_Text text, param_Name varchar(20), param_private boolean, param_Avatar varchar(2048), param_Signature text(2048))
	INSERT INTO losp_be_account (ID,Password,Firstname,SurName,ProfileID,EMail,Street,Streetnumber,City,ZipCode)
--																	insertProfile( 'GroupProfileBE',param_NickName, param_EMail, param_Fingerprint, param_Jabber, param_Url, param_Subject, param_Text, param_LanguageCode, param_Name, param_private, param_Avatar, param_Signature))
	VALUES ('1',   SHA1('xxxxxxxxx'), 'netz.coop', 'j', 	(SELECT insertProfile( 'Profile', 'netzcoop', 'kontakt@netz.coop', '', '', 'http://netz.coop','netz.coop e.G.','netz.coop Beschreibungstext', 'deu', 'liamPage', 0,'','')), 'netz@mensch.coop', 'Badeler Dorfstr.', '10', 'Kalbe M.', '39624');
	INSERT INTO losp_be_account (ID,Password,Firstname,SurName,ProfileID,EMail,Street,Streetnumber,City,ZipCode)
	VALUES ('2', SHA1('xxxxxxxxx'), 'Erna', 'Testing.', 	(SELECT insertProfile('Profile','test1', 'test1@mensch.coop', '', '', '','Erna Testing. Profile Subject','erna  bla bal bla text', 'deu', 'Test1Page',  0, '', '')), 'test1@mensch.coop', 'Teststr.', '212', 'Osnabrueck', '49088');
	INSERT INTO losp_be_account (ID,Password,Firstname,SurName,ProfileID,EMail,Street,Streetnumber,City,ZipCode)
	VALUES ('3', SHA1('xxxxxxxxx'), 'Paul', 'Testing.', 	(SELECT insertProfile('Profile','test2', 'test2@mensch.coop', '', '', '','Paul Testing. Profile Subject','Paul bla bal bla Beschreibungstext', 'deu', 'Test2Page', 0,'','')), 'test2@mensch.coop', 'Newmanstr.', '21', 'Osnabrueck', '49088');
	INSERT INTO losp_be_account (ID,Password,Firstname,SurName,ProfileID,EMail,Street,Streetnumber,City,ZipCode)
	VALUES ('4', SHA1('xxxxxxxxx'), 'Elfriede', 'Testing.', (SELECT insertProfile('Profile','test3','test3@mensch.coop', '', '', '','Elfriede Testing. Profile Subject','elfriede bla bal bla Beschreibungstext', 'deu', 'Test3Page', 0,'','' )), 'test3@mensch.coop', 'Newwomanstr.', '12', 'Hannover', '44023');
	INSERT INTO losp_be_account (ID,Password,Firstname,SurName,ProfileID,EMail,Street,Streetnumber,City,ZipCode)
	VALUES ('5', SHA1('xxxxxxxxx'), 'Dietrich', 'Testing.', (SELECT insertProfile('Profile','test4','test4@mensch.coop', '', '', '','Dietrich Testing. Profile Subject','Dietrich bla bal bla Beschreibungstext', 'deu', 'Test4Page', 0,'','' )), 'test4@mensch.coop', 'Newwomanstr.', '12', 'Hannover', '44023');

INSERT INTO losp_BEBasisClipboardsRightManagement (
`PartOfID` ,
`PartOfObjVarID` ,
`CategoryID` ,
`WriteAuthorisaton` ,
`ReadAuthorisation`
)
VALUES
	#	netz.coop Profile
	(	'1', '110', '0', 'r', 'a'	),	#	TopicBC
	(	'1', '6',	'0', 'u', 'a'	),	#	FriendList
	(	'1', '107', '0', 'r', 'a'	),	#	Clipboard
	(	'1', '500', '0', 'r', 'a'	),	#	SubProfileManagement
	(	'1', '2',	'3', 'a', 'a'	),	#	Blog::Guestbook
	(	'1', '3',	'4', 'r', 'a'	),	#	ThreadMessageBC::Blog
	(	'1', '3',	'1', 'r', 'a'	),	#	ThreadMessageBC::Forum
	(	'1', '8',	'0', 'r', 'a'	),	#	ThreadBC
	(	'1', '130', '0', 'r', 'a'	),	#	FileBC
	(	'1', '5',	'0', 'r', 'r'	),	#	OutBox
	(	'1', '4',	'0', 'u', 'r'	),	#	InBox
	(	'1', '1',	'0', 'r', 'a'	),	#	DateBC
	(	'1', '101', '0', 'r', 'a'	),	#	NewsfeedBC
	(	'1', '190', '0', 'r', 'a'	),	#	UrlBC
	(	'1', '300', '0', 'r', 'a'	),	#	LocationBC

	#	test Profile 1
	(	'2', '110', '0', 'r', 'a'	),	#	TopicBC
	(	'2', '6',	'0', 'u', 'a'	),	#	FriendList
	(	'2', '107', '0', 'r', 'a'	),	#	Clipboard
	(	'2', '500', '0', 'r', 'a'	),	#	SubProfileManagement
	(	'2', '2',	'3', 'a', 'a'	),	#	Blog::Guestbook
	(	'2', '3',	'4', 'r', 'a'	),	#	ThreadMessageBC::Blog
	(	'2', '3',	'1', 'r', 'a'	),	#	ThreadMessageBC::Forum
	(	'2', '8',	'0', 'r', 'a'	),	#	ThreadBC
	(	'2', '130', '0', 'r', 'a'	),	#	FileBC
	(	'2', '5',	'0', 'r', 'r'	),	#	OutBox
	(	'2', '4',	'0', 'u', 'r'	),	#	InBox
	(	'2', '1',	'0', 'r', 'a'	),	#	DateBC
	(	'2', '101', '0', 'r', 'a'	),	#	NewsfeedBC
	(	'2', '190', '0', 'r', 'a'	),	#	UrlBC
	(	'2', '300', '0', 'r', 'a'	),	#	LocationBC

	#	test Profile 2
	(	'3', '110', '0', 'r', 'a'	),	#	TopicBC
	(	'3', '6',	'0', 'u', 'a'	),	#	FriendList
	(	'3', '107', '0', 'r', 'a'	),	#	Clipboard
	(	'3', '500', '0', 'r', 'a'	),	#	SubProfileManagement
	(	'3', '2',	'3', 'a', 'a'	),	#	Blog::Guestbook
	(	'3', '3',	'4', 'r', 'a'	),	#	ThreadMessageBC::Blog
	(	'3', '3',	'1', 'r', 'a'	),	#	ThreadMessageBC::Forum
	(	'3', '8',	'0', 'r', 'a'	),	#	ThreadBC
	(	'3', '130', '0', 'r', 'a'	),	#	FileBC
	(	'3', '5',	'0', 'r', 'r'	),	#	OutBox
	(	'3', '4',	'0', 'u', 'r'	),	#	InBox
	(	'3', '1',	'0', 'r', 'a'	),	#	DateBC
	(	'3', '101', '0', 'r', 'a'	),	#	NewsfeedBC
	(	'3', '190', '0', 'r', 'a'	),	#	UrlBC
	(	'3', '300', '0', 'r', 'a'	),	#	LocationBC

	#	test Profile 3
	(	'4', '110', '0', 'r', 'a'	),	#	TopicBC
	(	'4', '6',	'0', 'u', 'a'	),	#	FriendList
	(	'4', '107', '0', 'r', 'a'	),	#	Clipboard
	(	'4', '500', '0', 'r', 'a'	),	#	SubProfileManagement
	(	'4', '2',	'3', 'a', 'a'	),	#	Blog::Guestbook
	(	'4', '3',	'4', 'r', 'a'	),	#	ThreadMessageBC::Blog
	(	'4', '3',	'1', 'r', 'a'	),	#	ThreadMessageBC::Forum
	(	'4', '8',	'0', 'r', 'a'	),	#	ThreadBC
	(	'4', '130', '0', 'r', 'a'	),	#	FileBC
	(	'4', '5',	'0', 'r', 'r'	),	#	OutBox
	(	'4', '4',	'0', 'u', 'r'	),	#	InBox
	(	'4', '1',	'0', 'r', 'a'	),	#	DateBC
	(	'4', '101', '0', 'r', 'a'	),	#	NewsfeedBC
	(	'4', '190', '0', 'r', 'a'	),	#	UrlBC
	(	'4', '300', '0', 'r', 'a'	),	#	LocationBC

	#	test Profile 4
	(	'5', '110', '0', 'r', 'a'	),	#	TopicBC
	(	'5', '6',	'0', 'u', 'a'	),	#	FriendList
	(	'5', '107', '0', 'r', 'a'	),	#	Clipboard
	(	'5', '500', '0', 'r', 'a'	),	#	SubProfileManagement
	(	'5', '2',	'3', 'a', 'a'	),	#	Blog::Guestbook
	(	'5', '3',	'4', 'r', 'a'	),	#	ThreadMessageBC::Blog
	(	'5', '3',	'1', 'r', 'a'	),	#	ThreadMessageBC::Forum
	(	'5', '8',	'0', 'r', 'a'	),	#	ThreadBC
	(	'5', '130', '0', 'r', 'a'	),	#	FileBC
	(	'5', '5',	'0', 'r', 'r'	),	#	OutBox
	(	'5', '4',	'0', 'u', 'r'	),	#	InBox
	(	'5', '1',	'0', 'r', 'a'	),	#	DateBC
	(	'5', '101', '0', 'r', 'a'	),	#	NewsfeedBC
	(	'5', '190', '0', 'r', 'a'	),	#	UrlBC
	(	'5', '300', '0', 'r', 'a'	)	#	LocationBC

;
select 'end generate Accounts';

INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (1, 'Profile', 1,'font-size:10;color:red;');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (1, 'cont_1','DateBC, ThreadMessageBC');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (1, 'cont_2','Menu, Sidebar');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (1, 'cont_3','');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (1, 'tmp','bla, blub');
update losp_BasisElement set BasisElementDesignID=1 where ID=1;
update losp_BasisElement set BasisElementDesignID=1 where ID=3;


INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (2, 'TopicBE', 1,'div.TopicBE{color:#18181;background-color:#292928;display:block;float:left;}div.TopicBE a{color:#7c7b7b;}div.TopicBE a:hover{color:#000000;}div.cont_1{background-color:#f3f3f3;background-image:url("");background-repeat:repeat;background-position:top;width:778px;height:120px;}div.cont_2{background-color:#ffffff;background-image:url("");background-repeat:repeat-y;background-position:top;width:75%;float:left;min-height:500px;}div.cont_2 div.headMenu{background-color:#f3f3f3;background-image:url("");background-repeat:repeat-x;background-position:top;border-color:#d0d1d0;}div.cont_2 .Headline{background-color:#f3f3f3;background-image:url("");background-repeat:repeat-y;background-position:top;border-color:#d0d1d0;}div.cont_3{width:25%;float:left;}');

INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (2, 'cont_1','SiteHead');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (2, 'cont_2','Content');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (2, 'cont_3','SiteMenu');

INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (3, 'ProfilePreferenceManager', 1,'div.cont_1{}');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (3, 'cont_1','Content');

INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (4, 'PostingManager', 1,"div.cont_1{}");
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (4, 'cont_1','Content');

INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (5, 'FileManager', 1,'div.cont_1{}');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (5, 'cont_1','Content');

INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (6, 'ResourceManager', 1,'div.cont_1{}');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (6, 'cont_1','DateBC, ThreadMessageBC');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (7, 'NetworkManager', 1,'div.cont_1{}');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (7, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (8, 'PostOffice', 1,'div.cont_1{}');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (8, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (9, 'OfficeManager', 1,'div.cont_1{}');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (9, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (10, 'IndirectManager', 1,"div.cont_1{background-repeat:repeat;}div.cont_1 a{color:#ed9925;}");
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (10, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (11, 'DirectManager', 1,"div.cont_1{background-repeat:repeat;width:75%;float:left;min-height:500px;}div.cont_1 a{color:#ed9925;}div.cont_2{width:25%;float:left;}div.cont_2 a{color:#ed9925;}");
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (11, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (11, 'cont_2','Category');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (12, 'EconomyIndirectManager', 1,"div.cont_1{background-repeat:repeat;}div.cont_1 a{color:#9dc120;}");
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (12, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (13, 'EconomyDirectManager', 1,"div.cont_1{background-repeat:repeat;width:75%;float:left;min-height:500px;}div.cont_1 a{color:#9dc120;}div.cont_2{width:25%float:left;}div.cont_2 a{color:#9dc120;}");
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (13, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (13, 'cont_2','Category');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (14, 'CultureIndirectManager', 1,"div.cont_1{background-repeat:repeat;}div.cont_1 a{color:#227eba;}");
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (14, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign 		(ID, BEClassName, Author_ProfileID, CSS ) 	VALUES (15, 'CultureDirectManager', 1,"div.cont_1{background-repeat:repeat;width:75%;float:left;min-height:500px;}div.cont_1 a{color:#227eba;}div.cont_2{width:25%;float:left;}div.cont_2 a{color:#227eba;}");
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (15, 'cont_1','Content');
INSERT INTO losp_BasisElementDesign_values 	(ID, VKey, VValue ) 				VALUES (15, 'cont_2','Category');



-- insertTreepart(param_Name varchar(20), param_Author_ProfileID int, param_Subject varchar(512), param_Text text, param_LanguageCode varchar(3), param_BECategoryChoiceBEID int(11), param_BECategoryListID int(11), param_AuthReadListID int, param_AuthWriteListID int, param_PCAuthReadListID int, param_PCAuthWriteListID int)

SELECT insertTreepart('Towns', '1', 	'Städte', 		'Städte', 'deu', 	1, 1, 	0, 1, 0, 0);
	UPDATE `losp_BasisElement` SET `BECategoryChoiceBEID` = '6' WHERE `losp_BasisElement`.`ID` =6 LIMIT 1 ;
SELECT insertTreepart('Rivers', 		'1', 	'Flüsse', 			'Flüsse und so weiter', 'deu',			2, 2, 	0, 1, 0, 0);
	UPDATE `losp_BasisElement` SET `BECategoryChoiceBEID` = '7' WHERE `losp_BasisElement`.`ID` =7 LIMIT 1 ;
SELECT insertTreepart('Mountains', 		'1', 	'Berge', 	'Berge ....', 'deu', 				3, 3, 	0, 1, 0, 0);
	UPDATE `losp_BasisElement` SET `BECategoryChoiceBEID` = '8' WHERE `losp_BasisElement`.`ID` =8 LIMIT 1 ;

INSERT INTO `losp_BEBasisClipboardsRightManagement` (
	`PartOfID` ,
	`PartOfObjVarID` ,
	`CategoryID` ,
	`WriteAuthorisaton` ,
	`ReadAuthorisation`
)
VALUES
	# 	Towns
	(	'6', '3',	'1', 'u', 'a'	),	#	ThreadMessageBC::Forum
	(	'6', '190', '0', 'u', 'a'	),	#	UrlBC
	(	'6', '101', '0', 'u', 'a'	),	#	NewsfeedBC
	(	'6', '3',	'4', 'u', 'a'	),	#	ThreadMessageBC::Blog
	(	'6', '110', '0', 'u', 'a'	),	#	TopicBC
	(	'6', '1',	'0', 'u', 'a'	),	#	DateBC
	#	Rivers
	(	'7', '3',	'4', 'u', 'a'	),	#	ThreadMessageBC::Blog
	(	'7', '110', '0', 'u', 'a'	),	#	TopicBC
	(	'7', '1',	'0', 'u', 'a'	),	#	DateBC
	#	Mountains
	(	'8', '3',	'1', 'u', 'a'	),	#	ThreadMessageBC::Forum
	(	'8', '3',	'4', 'u', 'a'	),	#	ThreadMessageBC::Blog
	(	'8', '110', '0', 'u', 'a'	),	#	TopicBC
	(	'8', '1',	'0', 'u', 'a'	)	#	DateBC
;
# 'ProfileBC
insert into losp_BEBasisClipboardsRightManagement (PartOfID, PartOfObjVarID, CategoryID, WriteAuthorisaton, ReadAuthorisation) values(6, 20,0,'u','a') ;
insert into losp_BEBasisClipboardsRightManagement (PartOfID, PartOfObjVarID, CategoryID, WriteAuthorisaton, ReadAuthorisation) values(7, 20,0,'u','a') ;
insert into losp_BEBasisClipboardsRightManagement (PartOfID, PartOfObjVarID, CategoryID, WriteAuthorisaton, ReadAuthorisation) values(8, 20,0,'u','a') ;


select insertMultimediaText(1, 'SoftwareCategoryMText', 'param_Text', 'deu', '', 1,0,0,'MultimediaText');
update losp_BasisElement set BECategoryListID=10, BECategoryChoiceBEID=9 where ID=9;
-- search
select insertMultimediaText(1, 'Search', 'Search', 'deu', '', 1,0,0,'MultimediaText');
update losp_BasisElement set  ClassID=22 where ID=10;
-- Logout Start
select insertMultimediaText(1, 'freesn', '<p>freesn: free Social Network </p>', 'deu', '', 1,0,0,'MultimediaText');
update losp_BasisElement set BECategoryListID=10, BECategoryChoiceBEID=9, ClassID=22 where ID=11;
-- Login Start
select insertMultimediaText(1, 'Wilkommen', '<p>freesn: free Social Network </p>', 'deu', '', 1,0,0,'MultimediaText');
update losp_BasisElement set BECategoryListID=10, BECategoryChoiceBEID=9, ClassID=22 where ID=12;
-- Help 
select insertMultimediaText(1, 'Hilfe', '<p>Hilfe </p>', 'deu', '', 1,0,0,'MultimediaText');
update losp_BasisElement set BECategoryListID=10, BECategoryChoiceBEID=9, ClassID=22 where ID=13;