-- https://www.phpmyadmin.net/
--




--
-- Database: `ticket_quota_laos`
--

-- --------------------------------------------------------

--
-- Table structure for table `agent`
--

CREATE TABLE `agent` (
  `Id` int(11) NOT NULL,
  `Name` varchar(100) NOT NULL DEFAULT '',
  `Email` varchar(100) NOT NULL DEFAULT '',
  `Acc` varchar(100) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=tis620;

--
-- Dumping data for table `agent`
--

INSERT INTO `agent` (`Id`, `Name`, `Email`, `Acc`) VALUES
(1, 'VTELR250E - Joy Travel', 'piyabute@thaiamadeus.com', 'petuey'),
(2, 'VTELR250P - Lao Air Service', 'piyabute@thaiamadeus.com', 'petuey'),
(3, 'VTELR250F - Thai\'s Express', 'piyabute@thaiamadeus.com', 'petuey'),
(4, 'VTELR2517 - Kian Min Laos', 'piyabute@thaiamadeus.com', 'petuey'),
(5, 'VTELR250C - Trans Express', 'kulwong@thaiamadeus.com', 'kulwong'),
(6, 'VTELR2523 - Keomany Air Booking', 'kulwong@thaiamadeus.com', 'kulwong'),
(7, 'VTELR250H - All Time Travel', 'kulwong@thaiamadeus.com', 'kulwong'),
(8, 'VTELR2518 - Scenic Travel', 'piyabute@thaiamadeus.com', 'petuey'),
(9, 'VTELR2525 - Oudomsin Trading & Travel', 'piyabute@thaiamadeus.com', 'petuey'),
(10, 'VTELR250E - Joy Travel', 'joytrvl@laotel.com', 'add_quota_qv'),
(11, 'VTELR250P - Lao Air Service', 'laoairservice1@etllao.com', 'add_quota_qv'),
(12, 'VTELR250F - Thai?s Express', 'thais.express@gmail.com', 'add_quota_qv'),
(13, 'VTELR2517 - Kian Min Laos', 'kianminlaos@yahoo.com', 'add_quota_qv'),
(14, 'VTELR250C - Trans Express', 'info@trans-express-lao.com', 'tg_lao_pdr'),
(15, 'VTELR2523 - Keomany Air Booking', 'kascan@etllao.com', 'tg_lao_pdr'),
(16, 'VTELR250H - All Time Travel Service', 'alltime@etllao.com', 'tg_lao_pdr'),
(17, 'VTELR2518 - Scenic Travel', 'scenic.travel@laopdr.com', 'add_quota_qv'),
(18, 'VTELR2525 - Oudomsin Trading & Travel', 'thanongsako@hotmail.com', 'add_quota_qv'),
(24, 'VTELR250F - Thai\'s Express', 'thais.express@gmail.com', 'tg_lao_pdr'),
(23, 'VTELR2533 - Lao American Enterprise', 'sengdragon@yahoo.com', 'tg_lao_pdr'),
(22, 'VTELR250P - Lao Air Service Ltd.', 'laoairservice1@etllao.com', 'tg_lao_pdr'),
(25, 'VTELR2517 - Kian Min Laos', 'kianminlaos@yahoo.com', 'tg_lao_pdr'),
(26, 'VTELR250D - Bluebird Ticketing Service', 'bluebird@etllao.com', 'tg_lao_pdr'),
(27, 'VTELR250E - Joy Travel Co.,Ltd', 'joytrvl@laotel.com', 'tg_lao_pdr'),
(28, 'VTELR250S - Diethelm Travel', 'dtlls@diethelmlaos.com', 'tg_lao_pdr'),
(29, 'LPQLR2511 - Lao American Enterprise', 'noy_laoamerican@etllao.com', 'tg_lao_pdr'),
(30, 'LPQLR2520 - Viva Travel Express', 'vivatravellaos@gmail.com', 'tg_lao_pdr'),
(31, 'VTELR250M - Vientiane Ticketing Service', 'info-vts@kcgrouplaos.com', 'tg_lao_pdr'),
(32, 'PKZLR2502 - Daoheuang Air Booking Co., Ltd.', 'lanevong@hotmail.com', 'tg_lao_pdr'),
(33, 'VTELR2522 - Lao Sky Air Booking Co., Ltd.', 'laosky01@hotmail.com', 'tg_lao_pdr'),
(34, 'LPQLR250A - All Lao Service Co., Ltd.', 'elephant@alllaoservice.com', 'tg_lao_pdr'),
(35, 'VTELR2525 - Oudomsin Trading & Travel Service', 'thanongsako@hotmail.com', 'tg_lao_pdr'),
(38, 'VTELR2518 - Scenic Travel', 'scenic.travel@laopdr.com', 'tg_lao_pdr'),
(39, 'VTELR2523 - Keomany Air Booking', 'kascan@etllao.com', 'add_quota_qv'),
(40, 'VTELR250H - All Time Travel Service', 'alltime@etllao.com', 'add_quota_qv'),
(41, 'VTELR2529 - Leego Air Service', 'leegokao@hotmail.com', 'add_quota_qv'),
(42, 'VTELR2524 - Experienced Ticketing', 'experiencedtnt@yahoo.com', 'add_quota_qv'),
(43, 'VTELR2530 - Star Air Service', 'starair@laopdr.com', 'add_quota_qv'),
(44, 'VTELR250T - Lao Air Booking', 'laoairbooking@yaoo.com', 'add_quota_qv'),
(45, 'VTELR2521 - Nancy Travel Center', 'ravellao@hotmail.com', 'add_quota_qv'),
(46, 'LPQLR2523 - Treasure travel', 'smsnth_kenkeo@yahoo.com', 'add_quota_qv'),
(47, 'LPQLR2512 - Mala Travel', 'malatravel@yahoo.com', 'add_quota_qv'),
(48, 'LPQLR2529 - Discovery Tour', 'discoverytour@yahoo.com', 'add_quota_qv'),
(49, 'LPQLR2548 - Lao Siri Ticketing', 'laosiri.ticketing@gmail.com', 'add_quota_qv'),
(50, 'LPQLR2513 - Lao Paris', 'ninthala@yahoo.com', 'add_quota_qv'),
(51, 'RGNGK2514 - Sun Far Travel & Tour', 'reservation@sunfar.com.mm', 'moe2'),
(52, 'RGNGK2511 - Columbus Travel & Tour', 'columbus@mptmail.net.mm', 'moe2'),
(53, 'RGNGK2512 - Saw Pornphan Travels', 'sppygn@myanmar.com.mm', 'moe2'),
(54, 'RGNGK250T - Nice Fares Travels', 'nicefare@myanmar.com.mm', 'moe2'),
(55, 'VTELR250D - Bluebird Ticketing', 'bluebird@etllao.com', 'add_quota_qv'),
(56, 'VTELR250S - Diethelm Travel', 'dtlls@diethelmlaos.com', 'add_quota_qv'),
(57, 'VTELR2533 - Lao American Enterprise', 'sengdragon@yahoo.com', 'add_quota_qv'),
(58, 'VTELR250M - Vientiane Ticketing Service', 'info-vts@kcgrouplaos.com', 'add_quota_qv'),
(59, 'VTELR2522 - Lao Sky Air Booking', 'laosky01@hotmail.com', 'add_quota_qv'),
(60, 'LPQLR2520 - Viva Travel - LPQ', 'vivatravellaos@gmail.com', 'add_quota_qv'),
(61, 'LPQLR2511 - Lao American Enterprise - LPQ', 'noy_laoamerican@etllao.com', 'add_quota_qv'),
(62, 'LPQLR250A - All Lao Service - LPQ', 'elephant@alllaoservice.com', 'add_quota_qv'),
(63, 'PKZLR2502 - Dao Heuang Air Booking - PKZ', 'lanevong@hotmail.com', 'add_quota_qv'),
(64, 'VTELR250C - Trans Express', 'info@trans-express-lao.com', 'add_quota_qv'),
(65, 'VTELR2500 - Amadeus Travel', 'amadeus@thaiamadeus.com', 'kulwong'),
(66, 'VTELR2500 - Amadeus Travel', 'piyabute@thaiamadeus.com', 'airline'),
(67, 'LPQLR250A - All Lao Services', 'elephant@alllaoservice.com', 'apinuch'),
(68, 'PKZLR2502 - Dao Heuang Air Booking', 'lanevong@hotmail.com', 'apinuch'),
(69, 'VTELR250S - Diethelm Travel', 'dtlls@diethelmlaos.com', 'apinuch'),
(70, 'VTELR2533 - Lao American Enterprise', 'sengdragon@yahoo.com', 'apinuch'),
(71, 'LPQLR2511 - Lao American Enterprise', 'noy_laoamerican@etllao.com', 'apinuch'),
(72, 'VTELR250F - Thai?s Express', 'thais.express@gmail.com', 'apinuch'),
(73, 'VTELR250C - Trans?s Express', 'info@trans-express-lao.com', 'apinuch');

-- --------------------------------------------------------

--
-- Table structure for table `mos_banner`
--

CREATE TABLE `mos_banner` (
  `bid` int(11) NOT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `type` varchar(10) NOT NULL DEFAULT 'banner',
  `name` varchar(50) NOT NULL DEFAULT '',
  `imptotal` int(11) NOT NULL DEFAULT '0',
  `impmade` int(11) NOT NULL DEFAULT '0',
  `clicks` int(11) NOT NULL DEFAULT '0',
  `imageurl` varchar(100) NOT NULL DEFAULT '',
  `clickurl` varchar(200) NOT NULL DEFAULT '',
  `date` datetime DEFAULT NULL,
  `showBanner` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `editor` varchar(50) DEFAULT NULL,
  `custombannercode` text
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_banner`
--

INSERT INTO `mos_banner` (`bid`, `cid`, `type`, `name`, `imptotal`, `impmade`, `clicks`, `imageurl`, `clickurl`, `date`, `showBanner`, `checked_out`, `checked_out_time`, `editor`, `custombannercode`) VALUES
(3, 2, '', 'Mambo Needs You!', 0, 2433, 0, 'RecruitmentBanner.gif', 'http://source.mambo-foundation.org/content/view/9/28/', '2005-11-18 20:55:34', 1, 0, '0000-00-00 00:00:00', NULL, NULL),
(4, 2, '', 'Support Mambo Foundation', 0, 2553, 0, 'SupportMFBanner.gif', 'http://mambo-foundation.org/content/view/22/9/', '2005-11-18 20:58:11', 1, 0, '0000-00-00 00:00:00', NULL, NULL),
(5, 2, '', 'Mambo Foundation (Clean)', 0, 2610, 0, 'mamboFoundation_468_60.gif', 'http://mambo-foundation.org/content/category/4/2/3/', '2005-11-18 20:59:07', 1, 0, '0000-00-00 00:00:00', NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mos_bannerclient`
--

CREATE TABLE `mos_bannerclient` (
  `cid` int(11) NOT NULL,
  `name` varchar(60) NOT NULL DEFAULT '',
  `contact` varchar(60) NOT NULL DEFAULT '',
  `email` varchar(60) NOT NULL DEFAULT '',
  `extrainfo` text NOT NULL,
  `checked_out` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out_time` time DEFAULT NULL,
  `editor` varchar(50) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_bannerclient`
--

INSERT INTO `mos_bannerclient` (`cid`, `name`, `contact`, `email`, `extrainfo`, `checked_out`, `checked_out_time`, `editor`) VALUES
(2, 'Mambo Foundation', 'Mambo Foundation', 'info@mambo-foundation.org', '', 0, '00:00:00', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mos_bannerfinish`
--

CREATE TABLE `mos_bannerfinish` (
  `bid` int(11) NOT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `type` varchar(10) NOT NULL DEFAULT '',
  `name` varchar(50) NOT NULL DEFAULT '',
  `impressions` int(11) NOT NULL DEFAULT '0',
  `clicks` int(11) NOT NULL DEFAULT '0',
  `imageurl` varchar(50) NOT NULL DEFAULT '',
  `datestart` datetime DEFAULT NULL,
  `dateend` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mos_categories`
--

CREATE TABLE `mos_categories` (
  `id` int(11) NOT NULL,
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `title` varchar(50) NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `image` varchar(100) NOT NULL DEFAULT '',
  `section` varchar(50) NOT NULL DEFAULT '',
  `image_position` varchar(10) NOT NULL DEFAULT '',
  `description` text NOT NULL,
  `published` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `editor` varchar(50) DEFAULT NULL,
  `ordering` int(11) NOT NULL DEFAULT '0',
  `access` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
  `count` int(11) NOT NULL DEFAULT '0',
  `params` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_categories`
--

INSERT INTO `mos_categories` (`id`, `parent_id`, `title`, `name`, `image`, `section`, `image_position`, `description`, `published`, `checked_out`, `checked_out_time`, `editor`, `ordering`, `access`, `count`, `params`) VALUES
(2, 0, 'Mambo', 'Mambo', 'clock.jpg', 'com_weblinks', 'left', 'A selection of links that are all related to the Mambo project.', 1, 0, '0000-00-00 00:00:00', NULL, 0, 0, 0, ''),
(3, 0, 'Newsflash', 'Newsflash', '', '2', 'left', '<strong><em>:: Explanatory Note</em></strong> -- <em>This </em><em>Category, </em><em>and its parent </em><em>Section, </em><em>are not linked\r\nto any menu and therefore are directly viewable on the front end of the\r\nwebsite. Rather the Content Items contained inside this Category are only used to feed items into the NewFlash Module. <u>See also</u>, MODULES&gt;SITE MODULES&gt;NEWSFLASH&nbsp;<strong> </strong></em><strong>::</strong>', 1, 0, '0000-00-00 00:00:00', '', 1, 0, 0, ''),
(4, 0, 'Mambo', 'Mambo', '', 'com_newsfeeds', 'left', '', 1, 0, '0000-00-00 00:00:00', NULL, 4, 0, 0, ''),
(14, 0, 'Web Development', 'Web Development', '', 'com_newsfeeds', 'left', '', 1, 0, '0000-00-00 00:00:00', NULL, 2, 0, 0, ''),
(10, 0, 'Linux', 'Linux', '', 'com_newsfeeds', 'left', '<br />\r\n', 1, 0, '0000-00-00 00:00:00', NULL, 5, 0, 0, ''),
(13, 0, 'Open Source', 'Open Source', '', 'com_newsfeeds', 'left', '', 1, 0, '0000-00-00 00:00:00', NULL, 3, 0, 0, ''),
(12, 0, 'Contacts', 'Contacts', '', 'com_contact_details', 'left', 'Contact Details for this website', 1, 0, '0000-00-00 00:00:00', NULL, 0, 0, 0, ''),
(15, 0, 'General Interest', 'General Interest', '', 'com_newsfeeds', 'left', '', 1, 0, '0000-00-00 00:00:00', NULL, 1, 0, 0, ''),
(16, 0, 'Getting Started', 'Getting Started', '', '4', 'left', '<span class=\"contentheading\">Getting Started</span>\r\n<p><em><strong>:: </strong><strong>Explanatory Note</strong></em> -- This set of content items is\r\nbeing used to demonstrate one way to order content logically and\r\ndisplay it on the page. You see here an example of a &quot;flat&quot; hierarchy\r\nof content. There is only one level of content items, so we created a\r\nSection named &quot;Getting Started&quot; and then we created within that Section\r\na Category with the same name (&quot;Getting Started&quot;). We loaded the\r\ncontent items into the category and then created a Main Menu item named\r\n&quot;Getting Started&quot;. When we created that Menu Item we chose the &quot;Table -\r\nContent Category&quot; format option, which gives us the table layout\r\ncontaining the content items, below. On the Content Items in this\r\nCategory we have used the Content Items Parameters tab to enable the\r\nItem Rating option. Note the Content Item <em>Getting the Most Out of Your Mambo Site</em> demonstrates how to create multi-page content. <em><strong>::</strong></em></p>\r\n\r\n<p>&nbsp;</p>', 1, 0, '0000-00-00 00:00:00', NULL, 1, 0, 0, ''),
(17, 0, 'Managing Users', 'Managing Users', 'taking_notes.jpg', '3', 'left', '<span class=\"contentheading\">Managing Users</span>\r\n<p><em><strong>:: Explanatory Note</strong></em> -- <em>The Main Menu link &quot;Managing Users&quot; is a child of the parent &quot;FAQs&quot;. Mambo enables you to\r\ncreate sub-menus automatically when you make a new menu\r\nitem. The format selected for this Menu Item is &quot;Table - Content\r\nCategory&quot; which displays a list of the Content Items in a Category in table format.&nbsp; </em><em>Order </em><em>and Filter options are\r\ncontrolled by the Parameters setting for this Menu Item. Throughout\r\nthe Section we use Parameters settings for each Content Item\r\nto display the Back button and to hide the PDF and Print icons.</em> <em><strong>::</strong></em></p>\r\n\r\n<p>&nbsp;</p>', 1, 0, '0000-00-00 00:00:00', NULL, 3, 0, 0, ''),
(19, 0, 'Managing Content', 'Managing Content', 'articles.jpg', '3', 'left', '<span class=\"contentheading\">Managing Content</span>\r\n<p><em><strong>:: Explanatory Note</strong></em> -- <em>The Main Menu link &quot;Managing Content&quot; is a child of the parent &quot;FAQs&quot;. Mambo enables you to\r\ncreate sub-menus automatically when you make a new menu\r\nitem. The format selected for this Menu Item is &quot;Table - Content\r\nCategory&quot; which displays a list of the Content Items in a Category in table format.&nbsp; </em><em>Order </em><em>and Filter options are\r\ncontrolled by the Parameters setting for this Menu Item. Throughout\r\nthe Section we use Parameters settings for each Content Item\r\nto display the Back button and to hide the PDF and Print icons.</em> <em><strong>::</strong></em></p>\r\n\r\n<p><em><strong /></em></p>\r\n\r\n<p><strong><strong><strong><strong><strong><strong><strong>&nbsp;</strong></strong></strong></strong></strong></strong></strong></p>', 1, 0, '0000-00-00 00:00:00', NULL, 2, 0, 0, ''),
(18, 0, 'Mambo and Security', 'Mambo and Security', 'key.jpg', '3', 'left', '<span class=\"contentheading\">Mambo and Security</span>\r\n<p><em><strong>:: Explanatory Note</strong></em> -- <em>The Main Menu link &quot;Mambo and\r\nSecurity&quot; is a child of the parent &quot;FAQs&quot;. Mambo enables you to\r\ncreate sub-menus automatically when you make a new menu\r\nitem. The format selected for this Menu Item is &quot;Table - Content\r\nCategory&quot; which displays a list of the Content Items in a Category in table format.&nbsp; Order and Filter options are\r\ncontrolled by the Parameters setting for this Menu Item. Throughout\r\nthe Section we use Parameters settings for each Content Item\r\nto display the Back button and to hide the PDF and Print icons.</em> <em><strong>::</strong></em></p>\r\n\r\n<p>&nbsp;</p>', 1, 0, '0000-00-00 00:00:00', NULL, 1, 0, 0, '');

-- --------------------------------------------------------

--
-- Table structure for table `mos_comment`
--

CREATE TABLE `mos_comment` (
  `id` int(11) NOT NULL,
  `articleid` int(11) NOT NULL DEFAULT '0',
  `ip` varchar(15) NOT NULL DEFAULT '',
  `name` varchar(30) NOT NULL DEFAULT '',
  `comments` text NOT NULL,
  `startdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `published` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mos_components`
--

CREATE TABLE `mos_components` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL DEFAULT '',
  `link` varchar(255) NOT NULL DEFAULT '',
  `menuid` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `parent` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `admin_menu_link` varchar(255) NOT NULL DEFAULT '',
  `admin_menu_alt` varchar(255) NOT NULL DEFAULT '',
  `option` varchar(50) NOT NULL DEFAULT '',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `admin_menu_img` varchar(255) NOT NULL DEFAULT '',
  `iscore` tinyint(4) NOT NULL DEFAULT '0',
  `params` text
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_components`
--

INSERT INTO `mos_components` (`id`, `name`, `link`, `menuid`, `parent`, `admin_menu_link`, `admin_menu_alt`, `option`, `ordering`, `admin_menu_img`, `iscore`, `params`) VALUES
(1, 'Banners', '', 0, 0, '', 'Banner Management', 'com_banners', 0, 'js/ThemeOffice/component.png', 0, ''),
(2, 'Manage Banners', '', 0, 1, 'option=com_banners', 'Manage Banners', 'com_banners', 1, 'js/ThemeOffice/edit.png', 0, ''),
(3, 'Manage Clients', '', 0, 1, 'option=com_banners&task=listclients', 'Manage Clients', 'com_banners', 2, 'js/ThemeOffice/categories.png', 0, ''),
(4, 'Web Links', 'option=com_weblinks', 0, 0, '', 'Manage Web Links', 'com_weblinks', 0, 'js/ThemeOffice/globe2.png', 0, ''),
(5, 'Manage Items', '', 0, 4, 'option=com_weblinks', 'Manage Web Links', 'com_weblinks', 1, 'js/ThemeOffice/edit.png', 0, ''),
(6, 'Manage Categories', '', 0, 4, 'option=com_categories&section=com_weblinks', 'Manage Web Link Categories', '', 2, 'js/ThemeOffice/categories.png', 0, ''),
(7, 'Contacts', 'option=com_contact', 0, 0, '', 'Manage Contacts', 'com_contact', 0, 'js/ThemeOffice/user.png', 1, ''),
(8, 'Manage Items', '', 0, 7, 'option=com_contact', 'Manage Contacts', 'com_contact', 0, 'js/ThemeOffice/edit.png', 1, ''),
(9, 'Manage Categories', '', 0, 7, 'option=categories&section=com_contact_details', 'Manage Contact Categories', '', 2, 'js/ThemeOffice/categories.png', 1, ''),
(10, 'FrontPage', 'option=com_frontpage', 0, 0, '', 'Manage Front Page Items', 'com_frontpage', 0, 'js/ThemeOffice/component.png', 1, ''),
(11, 'Polls', 'option=com_poll', 0, 0, 'option=com_poll', 'Manage Polls', 'com_poll', 0, 'js/ThemeOffice/component.png', 0, ''),
(12, 'News Feeds', 'option=com_newsfeeds', 0, 0, '', 'Manage News Feeds', 'com_newsfeeds', 0, 'js/ThemeOffice/component.png', 0, ''),
(13, 'Manage Items', '', 0, 12, 'option=com_newsfeeds', 'Manage News Feeds', 'com_newsfeeds', 1, 'js/ThemeOffice/edit.png', 0, ''),
(14, 'Manage Categories', '', 0, 12, 'option=com_categories&section=com_newsfeeds', 'Manage News Feeds Categories', '', 2, 'js/ThemeOffice/categories.png', 0, ''),
(15, 'Login', 'option=com_login', 0, 0, '', '', 'com_login', 0, '', 1, ''),
(16, 'Search', 'option=com_search', 0, 0, '', '', 'com_search', 0, '', 1, ''),
(17, 'Syndicate', '', 0, 0, 'option=com_syndicate&hidemainmenu=1', 'Manage Syndication Settings', 'com_syndicate', 0, 'js/ThemeOffice/component.png', 0, ''),
(18, 'Mass Mail', '', 0, 0, 'option=com_massmail&hidemainmenu=1', 'Send Mass Mail', 'com_massmail', 0, 'js/ThemeOffice/mass_email.png', 0, ''),
(19, 'MOStlyCE Admin', 'option=com_mostlyce', 0, 0, 'option=com_mostlyce', 'MOStlyCE Admin', 'com_mostlyce', 0, 'js/ThemeOffice/component.png', 0, ''),
(21, 'MOStlyDBAdmin DB Tools', 'option=com_mostlydbadmin', 0, 0, 'option=com_mostlydbadmin', 'MOStlyDBAdmin DB Tools', 'com_mostlydbadmin', 0, 'js/ThemeOffice/component.png', 0, ''),
(22, 'Backup Database', '', 0, 21, 'option=com_mostlydbadmin&act=option=com_mostlydbadmin&task=dbBackup', 'Backup Database', 'com_mostlydbadmin', 0, 'js/ThemeOffice/component.png', 0, ''),
(23, 'Restore Database', '', 0, 21, 'option=com_mostlydbadmin&act=option=com_mostlydbadmin&task=dbRestore', 'Restore Database', 'com_mostlydbadmin', 1, 'js/ThemeOffice/component.png', 0, ''),
(24, 'Query Database', '', 0, 21, 'option=com_mostlydbadmin&act=option=com_mostlydbadmin&task=xquery', 'Query Database', 'com_mostlydbadmin', 2, 'js/ThemeOffice/component.png', 0, ''),
(25, 'Comment', 'option=com_comment', 0, 0, 'option=com_comment', 'Comment', 'com_comment', 0, 'js/ThemeOffice/mainmenu.png', 0, ''),
(26, 'View Comments', '', 0, 25, 'option=com_comment&task=comments', 'View Comments', 'com_comment', 0, 'js/ThemeOffice/edit.png', 0, ''),
(27, 'Edit Settings', '', 0, 25, 'option=com_comment&task=settings', 'Edit Settings', 'com_comment', 1, 'js/ThemeOffice/config.png', 0, ''),
(28, 'mostlyce_frontend', '', 0, 0, '', '', 'com_mostlyce_frontend', 0, '', 0, ''),
(29, 'FacileForms', 'option=com_facileforms', 0, 0, '', 'FacileForms', 'com_facileforms', 0, 'js/ThemeOffice/component.png', 0, ''),
(30, 'Manage Records', '', 0, 29, 'option=com_facileforms&act=managerecs', 'Manage Records', 'com_facileforms', 0, 'js/ThemeOffice/checkin.png', 0, ''),
(31, 'Manage Backend Menus', '', 0, 29, 'option=com_facileforms&act=managemenus', 'Manage Backend Menus', 'com_facileforms', 1, 'js/ThemeOffice/mainmenu.png', 0, ''),
(32, 'Manage Forms', '', 0, 29, 'option=com_facileforms&act=manageforms', 'Manage Forms', 'com_facileforms', 2, 'js/ThemeOffice/content.png', 0, ''),
(33, 'Manage Scripts', '', 0, 29, 'option=com_facileforms&act=managescripts', 'Manage Scripts', 'com_facileforms', 3, 'js/ThemeOffice/controlpanel.png', 0, ''),
(34, 'Manage Pieces', '', 0, 29, 'option=com_facileforms&act=managepieces', 'Manage Pieces', 'com_facileforms', 4, 'js/ThemeOffice/controlpanel.png', 0, ''),
(35, 'Configuration', '', 0, 29, 'option=com_facileforms&act=configuration', 'Configuration', 'com_facileforms', 5, 'js/ThemeOffice/config.png', 0, ''),
(47, 'Pizza shop', '', 0, 45, 'option=com_facileforms&act=run&ff_name=SamplePizzaShop&ff_frame=1&ff_border=1', 'Pizza shop', 'com_facileforms', 2, 'js/ThemeOffice/credits.png', 1, ''),
(45, 'FacileForms Sample Menu', '', 0, 0, '', 'FacileForms Sample Menu', 'com_facileforms', 0, 'js/ThemeOffice/tux.png', 1, ''),
(46, 'Contact form', '', 0, 45, 'option=com_facileforms&act=run&ff_name=SampleContactForm&ff_border=1', 'Contact form', 'com_facileforms', 1, 'js/ThemeOffice/user.png', 1, '');

-- --------------------------------------------------------

--
-- Table structure for table `mos_contact_details`
--

CREATE TABLE `mos_contact_details` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL DEFAULT '',
  `con_position` varchar(50) DEFAULT NULL,
  `address` text,
  `suburb` varchar(50) DEFAULT NULL,
  `state` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `postcode` varchar(10) DEFAULT NULL,
  `telephone` varchar(25) DEFAULT NULL,
  `fax` varchar(25) DEFAULT NULL,
  `misc` mediumtext,
  `image` varchar(100) DEFAULT NULL,
  `imagepos` varchar(20) DEFAULT NULL,
  `email_to` varchar(100) DEFAULT NULL,
  `default_con` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `published` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `checked_out` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `params` text NOT NULL,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `catid` int(11) NOT NULL DEFAULT '0',
  `access` tinyint(3) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_contact_details`
--

INSERT INTO `mos_contact_details` (`id`, `name`, `con_position`, `address`, `suburb`, `state`, `country`, `postcode`, `telephone`, `fax`, `misc`, `image`, `imagepos`, `email_to`, `default_con`, `published`, `checked_out`, `checked_out_time`, `ordering`, `params`, `user_id`, `catid`, `access`) VALUES
(1, 'Name', 'Position', 'Street', 'Suburb', 'State', 'Country', 'Zip Code', 'Telephone', 'Fax', 'Miscellanous info', 'asterisk.png', 'top', 'email@email.com', 1, 1, 0, '0000-00-00 00:00:00', 1, '', 0, 12, 0);

-- --------------------------------------------------------

--
-- Table structure for table `mos_containers`
--

CREATE TABLE `mos_containers` (
  `id` int(11) NOT NULL,
  `parentid` int(11) NOT NULL DEFAULT '0',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `published` smallint(6) NOT NULL DEFAULT '0',
  `childcount` int(11) NOT NULL DEFAULT '0',
  `name` varchar(100) NOT NULL DEFAULT '',
  `title` varchar(100) NOT NULL DEFAULT '',
  `windowtitle` varchar(50) NOT NULL DEFAULT '',
  `keywords` varchar(255) NOT NULL DEFAULT '',
  `icon` varchar(25) NOT NULL DEFAULT '',
  `description` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mos_content`
--

CREATE TABLE `mos_content` (
  `id` int(11) UNSIGNED NOT NULL,
  `title` varchar(100) NOT NULL DEFAULT '',
  `title_alias` varchar(100) NOT NULL DEFAULT '',
  `introtext` mediumtext NOT NULL,
  `fulltext` mediumtext NOT NULL,
  `state` tinyint(3) NOT NULL DEFAULT '0',
  `sectionid` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `mask` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `catid` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_by` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `created_by_alias` varchar(100) NOT NULL DEFAULT '',
  `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `modified_by` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `checked_out` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `images` text NOT NULL,
  `urls` text NOT NULL,
  `attribs` text NOT NULL,
  `version` int(11) UNSIGNED NOT NULL DEFAULT '1',
  `parentid` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `metakey` text NOT NULL,
  `metadesc` text NOT NULL,
  `access` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `hits` int(11) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_content`
--

INSERT INTO `mos_content` (`id`, `title`, `title_alias`, `introtext`, `fulltext`, `state`, `sectionid`, `mask`, `catid`, `created`, `created_by`, `created_by_alias`, `modified`, `modified_by`, `checked_out`, `checked_out_time`, `publish_up`, `publish_down`, `images`, `urls`, `attribs`, `version`, `parentid`, `ordering`, `metakey`, `metadesc`, `access`, `hits`) VALUES
(22, 'Can I show different users different content?', 'Can I show different users different content?', 'Within limits. The Mambo User Manager currently only supports a few\r\nlevels (&quot;groups&quot;) of users. You can show different content to different\r\ngroups, but you cannot show each individual user a unique set of\r\ncontent. Put another way, every user in the group will see the same\r\ncontent as the other users in the group. If you really need this\r\nfunctionality, there are some third party components which add\r\nadditional flexibility.<br />', '', 1, 3, 0, 17, '2005-11-22 02:16:17', 62, '', '2005-11-22 07:42:06', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=0\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 4, 0, 2, '', '', 0, 1),
(23, 'Can users edit content from the front end?', 'Can users edit content from the front end?', 'Yes, if they are registered users who are logged into the system, and\r\nif you have given them permission. There are three user levels which\r\nhave this power:<br />\r\n<ul>\r\n  <li>Author - This group allows a user to post content, usually via a link in the User Menu.</li>\r\n  <li>Editor - This group allows a user to post and edit any content item from the Front-end.</li>\r\n  <li>Publisher - This group allows a user to post, edit and publish any content item from the Front-end.</li>\r\n</ul>', '', 1, 3, 0, 17, '2005-11-22 02:49:48', 62, '', '2005-11-22 07:41:41', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 4, 0, 1, '', '', 0, 3),
(2, 'Need Help With Mambo?', '', 'New to Mambo? Looking for help or more information? Visit <a href=\"http://docs.mambo-foundation.org\" title=\"Mambo help documentation site\" target=\"_blank\">Mambo\'s\r\nofficial online help center</a> or join the\r\ndiscussions at <a href=\"http://forum.mambo-foundation.org\" title=\"Mambo forums\" target=\"_blank\">the Mambo Forums.</a>', '', 1, 2, 0, 3, '2004-08-09 08:30:34', 62, '', '2005-11-19 21:06:57', 62, 0, '0000-00-00 00:00:00', '2004-08-09 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=\ncreatedate=\nmodifydate=\npdf=\nprint=\nemail=\nkeyref=\ndocbook_type=', 6, 0, 1, '', '', 0, 0),
(3, 'Extending Mambo', '', 'You can extend the functionality of your Mambo site by installing new\r\nmodules, components or mambots. Additional languages can also be\r\nenabled by installing language packs.<br />', '', 1, 2, 0, 3, '2004-08-09 08:30:34', 62, '', '2005-11-19 21:06:32', 62, 0, '0000-00-00 00:00:00', '2004-08-09 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=\ncreatedate=\nmodifydate=\npdf=\nprint=\nemail=\nkeyref=\ndocbook_type=', 5, 0, 2, '', '', 0, 1),
(4, 'OSI Certified', '', 'Mambo is OSI certified Open Source software. It is free of charge and\r\nis governed by the General Public License (GPL). Learn more about Open\r\nSource and the OSI at <a href=\"http://www.opensource.org\" target=\"_blank\" title=\"Opensource.org\">the Open Source Initiative (OSI) website</a>.', '', 1, 2, 0, 3, '2004-08-09 08:30:34', 62, '', '2005-11-19 21:08:20', 62, 0, '0000-00-00 00:00:00', '2004-08-09 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=\ncreatedate=\nmodifydate=\npdf=\nprint=\nemail=\nkeyref=\ndocbook_type=', 4, 0, 3, '', '', 0, 2),
(12, 'Get Involved', '', 'Would you like to be involved in the Mambo Open Source project? Join\r\nthe Mambo Foundation or become a member of Team Mambo. Learn more by\r\nvisiting <a href=\"http://www.mambo-foundation.org\" target=\"_blank\" title=\"Mambo Foundation site\">Mambo-Foundation.org.</a>', '', 1, 2, 0, 3, '2005-11-13 16:27:27', 62, '', '2005-11-19 21:09:33', 62, 0, '0000-00-00 00:00:00', '2005-11-13 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=\ncreatedate=\nmodifydate=\npdf=\nprint=\nemail=\nkeyref=\ndocbook_type=', 4, 0, 4, '', '', 0, 0),
(5, 'Mambo License Guidelines', '', '<p><em><strong>:: Explanatory Note</strong></em> -- This page is an example of a\r\nStatic Content Item. The page does not belong to any Section or\r\nCategory. It is found in the Admin system inside the Static Content\r\nManager <em><strong>::</strong></em></p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n{mosimage}<p>&nbsp;</p>\r\n<p>Mambo\r\nis free software released under the GNU General Public License. A copy\r\nof this license is included with your copy of Mambo and can also be\r\nfound at <a href=\"http://www.fsf.org/licenses/gpl.html\" target=\"_blank\">http://www.fsf.org/licenses/gpl.html</a>. Unofficial translations can also be found at <a href=\"http://www.fsf.org/licenses/translations.html\" target=\"_blank\">http://www.fsf.org/licenses/translations.html</a>.</p>\r\n      \r\n<p><br />\r\n&nbsp;</p>\r\n      \r\n<p><strong>1. Who owns the copyright to Mambo?</strong><br />\r\nThe copyright to the Mambo brand and logo is held by Mambo Foundation,\r\na non profit corporation organized under the laws of Australia and run\r\nby the membership. Copyrights in the code are owned by the authors. You\r\nshould be aware that under the GPL who holds the copyright to the code\r\nbears little relation to the use of the code. The terms of the GPL,\r\nrather than copyright law, spell out how the code may be used,\r\nmodified, and distributed.<br />\r\n</p>\r\n      \r\n<p><strong>2. Are there any restrictions to your use of Mambo?</strong><br />\r\n        The GNU GPL grants you the freedom to use the software for whatever purpose you see fit.</p>\r\n      \r\n<p><strong>3. May I charge money to distribute Mambo?</strong><br />\r\nThe GPL allows everyone the freedom to do this. The right to charge\r\nmoney to distribute Mambo is part of the definition of &quot;free&quot; software.\r\nWhen people think of &quot;selling software&quot;, they usually imagine doing it\r\nthe way most companies do it, making the software \'proprietary\' rather\r\nthan free. So to avoid ambiguity, you may charge to distribute the\r\nsoftware and any other service you provide along the way. You may not\r\ncharge for the software itself. Remember if someone pays your fee, the\r\nGPL also gives him or her the freedom to pass on the software with or\r\nwithout a fee.</p>\r\n      \r\n<p><strong>4. May I remove &quot;powered by Mambo, Copyright Mambo Foundation&rdquo; from the footer?</strong><br />\r\n        Yes you can, although, we would hope that you would retain it to help spread the word about Mambo.</p>\r\n      \r\n<p><strong>5. May I remove the &quot;copyright&quot; statements from the source code to Mambo?</strong><br />\r\n    No, you must keep all copyright notices and credits in the source code.</p>\r\n      \r\n<p><strong>6. Does the GPL mean that my web site content is also GPL?</strong><br />\r\nNo. The copyright and license of Mambo does not cover the content that\r\nyou create. Using Mambo does not place any restrictions, legally, on\r\nthe license or copyright you use for the content of your web site.</p>\r\n      \r\n<p><strong>7. I have modified Mambo for my own web site. Do I have to release these modifications?</strong><br />\r\nThe GPL permits anyone to make a modified version for their own use\r\nwithout the requirement to distribute it or pass on those changes to\r\nothers.</p>\r\n      \r\n<p><strong>8. I have made a modification (hack) to the Mambo core code. Do I have to release it under the GPL?</strong><br />\r\nIf you chose to distribute your modifications to others it must be\r\nreleased under the same terms that you received the original code. So\r\nyour modifications must be released under the GPL. You may of course in\r\nthis case modify the headers for the source code to include your own\r\ncopyright statement after the original copyright statements. If you do\r\nso, you must clearly annotate in the source code your amendments,\r\nchanges or additions.</p>\r\n      \r\n<p><strong>9. I have written a Component, Module, Template for Mambo. Do I have to release it under the GPL?</strong><br />\r\nNo. The GPL allows you to write your own extensions for Mambo and to\r\nrelease those extensions under whatever license you choose.</p>\r\n      \r\n<p><strong>10.\r\nI have written a Component, Module, Template for Mambo and released it\r\nunder the GPL and I charge a fee for it, but web site X is giving it\r\naway for free! Is that right?</strong><br />\r\n Remember if someone pays your\r\nfee, the GPL also gives him or her the freedom to pass on the software\r\nwith or without a fee because the GNU GPL license must go along with\r\nthe distribution of the software.</p>\r\n      \r\n<p><strong>11. May I purchase a copy of Mambo, which has the copyright statements removed?</strong><br />\r\n        No. Some GPL products are distributed that way (often called &ldquo;dual licensing&rdquo;) but Mambo is not.</p>\r\n      \r\n<p><strong>12. I believe someone is in breach of the GPL, what should I do?</strong><br />\r\n    We would ask you to report it, but please first check all the facts before you send an e-mail to us at: <a href=\"mailto:license-violation@mambo-foundation.org\">license-violation@mambo-foundation.org</a>.</p>\r\n      \r\n<p><strong>13. Who has the power to enforce the GNU GPL license of Mambo?</strong><br />\r\nOnly the copyright holder, Mambo Foundation, has the power to do this.\r\nIf the Mambo Development Team finds, or is made aware of, a breach of\r\nthe GPL, they will report it to the Foundation for them to take any\r\nnecessary action.</p>\r\n      \r\n<p><strong>14.\r\nWeb site X is using or offering my non-GPL Component, Module, Template\r\nwithout my permission, or in breach of its license, can you help me?</strong><br />\r\nWhilst this is not within the remit or responsibility of Mambo, we are\r\nwilling to act as intermediaries in this on your behalf. In most cases\r\nthese situations arise out of simple misunderstandings and can be\r\nsettled amicably. You should e-mail full details to <a href=\"mailto:license-violation@mambo-foundation.org\">license-violation@mambo-foundation.org</a>.</p>\r\n      \r\n<p><strong>15. What about translations of Mambo? Who owns those?</strong><br />\r\n    All translation files, as they are derived works of the original Mambo files, are licensed under the GNU/GPL.<br />\r\n            </p>\r\n      \r\n<p><em>DISCLAIMER<br />\r\nThis document refers to the software program Mambo, Version 4.x and all\r\nsubsequent versions, released under the GNU General Public License and\r\ncopyrighted Mambo Foundation.</em></p>\r\n      \r\n<p><em>This document is subject to additions, modifications and other changes at any time without notice.</em></p>\r\n      \r\n<p><em>A\r\nlawyer has not prepared this document. You should consult a lawyer\r\nexperienced in copyright, licensing and intellectual property for\r\nclarification.</em></p>\r\n      \r\n<p>Document Rev. 1.4 - 16 Nov 2005</p>', '', 1, 0, 0, 0, '2004-08-19 20:11:07', 62, '', '2005-11-22 08:19:31', 62, 0, '0000-00-00 00:00:00', '2004-08-19 00:00:00', '0000-00-00 00:00:00', 'opensource-110x95.png|left|OSI Certified|0||bottom||', '', 'menu_image=-1\nitem_title=1\npageclass_sfx=\nback_button=\nrating=\nauthor=\ncreatedate=\nmodifydate=\npdf=\nprint=\nemail=', 1, 0, 11, '', '', 0, 21),
(13, 'Getting the Most Out of Your Mambo Site', 'Getting the Most Out of Your Mambo Site', '<em>An introduction to Components, Modules &amp; Mambots</em><br />\r\n<p>The default installation of Mambo includes a variety of features\r\nwhich are available for your use at the click of a mouse. Without\r\ninstalling any additional software, you can manage banners, set up\r\nsurveys and polls, syndicate your content, and do many other common\r\ntasks. </p>\r\n<p>The tools that make these functions possible are called Components, Modules and Mambots.</p>', '<strong>What is the distinction among Components, Modules &amp; Mambots?</strong>\r\n\r\n\r\n<ul>\r\n<li>You can consider a <strong>Component</strong> as a full application\r\nthat runs inside Mambo. Components extend Mambo and give it extra\r\nfunctionality. The output of a component is displayed inside the main\r\ncontent area.</li><li><strong>Modules</strong> are smaller, generally\r\n&ldquo;helper&rdquo; applications. Some run autonomously, others work in\r\ncooperation with Components. They are generally displayed around the\r\nedges of the main content area, in places defined inside the templates\r\n(called &ldquo;module positions&rdquo;).</li><li><strong>Mambots</strong> are small\r\npieces of code that enable a new feature across the entire site. There\r\nare two types of Mambots: Those that have a visual effect (like\r\n{mosimage}), and those that affect the way Mambo behaves but without\r\nadding any true visual impact (like the search Mambots).</li>\r\n</ul>\r\n\r\n\r\n<p>Just to make things a bit more confusing, sometimes a function will\r\nrequire a combination of these tools. For example, the Banners and the\r\nPolls functions include both a Component and a Module.</p>\r\n\r\n\r\n<p>While the technical distinction between these items is useful\r\ninformation, the most important points concern what they can do, and\r\nhow you can use them. To assist with that, we have provided below a\r\nquick summary of the Components and Modules bundled in your Mambo\r\npackage.{mospagebreak}<br />\r\n</p>\r\n\r\n\r\n<p><strong>A Quick Overview of the Bundled Components</strong></p>\r\n\r\n\r\n<ol>\r\n<li><strong>Banners</strong>: Controls the Banner ads on your site. This\r\ncomponent allows you to manage the banners, while the display is\r\nhandled by the Banners Module.</li><li><strong>Mass Mail</strong>: Allows you to send email to all registered users.</li><li><strong>News Feeds</strong>: A tool for managing News Feeds (RSS) to display on your site.</li><li><strong>Polls</strong>: Allows you to create a Poll (Survey) for the visitors to your site. Works in conjunction with the Polls Module.</li><li><strong>Syndicate</strong>: Use this component to format the RSS syndication of your site&rsquo;s contents.</li>\r\n<li><strong>Web Links</strong>: A component for creating and maintaining\r\na &ldquo;Links&rdquo; page for your site.<br />\r\n </li>\r\n</ol>\r\n{mospagebreak}\r\n\r\n\r\n<p><strong>A Quick Overview of the Bundled Modules </strong></p>\r\n\r\n\r\n<p>Mambo provides for two types of Modules: Site Modules and\r\nAdministrator Modules. The difference between the two has to do with\r\nwhere the modules are displayed. Site Modules are displayed on the\r\nfront end of the site, visible to your visitors. Administrator Modules\r\nare visible only when logged into the Administrator system and are\r\nprimarily intended to make the Admin interface friendlier and more\r\nuseful. We discuss here only the Site Modules. If you wish to learn\r\nmore about the Administrator Modules, please visit our Help Site. </p>\r\n\r\n\r\n<p><strong>Site Modules</strong></p>\r\n\r\n\r\n<ol>\r\n<li><strong>Banners</strong>: The Banners module will display banners from the Banners component.</li><li><strong>Main Menu</strong>: This is the module that controls the menu on your site named &ldquo;Main&rdquo;.</li><li><strong>Latest News</strong>: This module shows a list of the most recently published Items.</li><li><strong>User Menu</strong>: This is the module that controls the menu on your site named &ldquo;User&rdquo;.</li><li><strong>Other Menu</strong>: This is the module that controls the menu on your site named &ldquo;Other&rdquo;.</li><li><strong>Login Form</strong>: This module displays a Username and Password login form.</li><li><strong>Syndicate</strong>: The Syndicate module will display a link whereby people can syndicate your site contents (typically via RSS).</li><li><strong>Statistics</strong>: The Statistics module shows information about your server installation and statistics on the web site.</li><li><strong>Template Chooser</strong>:\r\nThe Template Chooser module allows a visitor to change the site\r\ntemplate on the fly from the front-end via a drop down selection list.</li><li><strong>Archive</strong>: This module shows a list of the calendar months which contain Archived items.</li><li><strong>Sections</strong>: The Section module shows a list of all Sections configured in your database.</li><li><strong>Related Items</strong>: This module displays other Content Items that are related to the Item currently displayed.</li><li><strong>Wrapper</strong>: This module will display an iFrame window in a specified location.</li><li><strong>Polls</strong>: This module compliments the Polls component. It is used to display the Polls.</li><li><strong>Who&rsquo;s Online</strong>: The Who\'s Online module displays the number of users that are currently accessing the web site.</li><li><strong>Random Image</strong>: This module displays a random image from a directory.</li><li><strong>Newsflash</strong>: The Newsflash module randomly selects one of the published items from a category upon each page refresh.</li><li><strong>Popular</strong>: This module shows a list of the currently published Items that have been viewed the most.</li><li><strong>Top Menu</strong>: This is the module that controls the menu on your site named &ldquo;Top&rdquo;.</li><li><strong>Search</strong>: This module will display a search box.{mospagebreak}<br />\r\n  </li>\r\n</ol>\r\n\r\n\r\n<p><strong>A Quick Overview of Mambots </strong></p>\r\n\r\n\r\n<p>As Mambots are a bit more technical, we ask that you refer to the\r\nHelp site to learn more about what these are and how you can extend the\r\nfunctionality of your site through the use of Mambots.</p>\r\n\r\n<strong>How Do I Install Additional Components, Modules or Mambots? </strong>\r\n<p>Mambo users enjoy access to a wide variety of extensions for their\r\nsites. Many are free, others are commercial. All can be installed\r\neasily by anyone, without the need for programming skills.<br />\r\n</p>\r\n\r\n\r\n<p><strong>Where Can I Find More Information?</strong></p>\r\n\r\n\r\n<ul>\r\n<li>Team Mambo maintains a useful Help site: <a target=\"_blank\" href=\"http://docs.mambo-foundation.org\">http://docs.mambo-foundation.org</a> </li><li>A wide selection of free Components, Modules and Mambots can be found all over the Internet.</li><li>Visit our Forums to get answers to questions and to discuss Mambo issues with the community: <a target=\"_blank\" href=\"http://forum.mambo-foundation.org\">http://forum.mambo-foundation.org</a></li>\r\n</ul>\r\n\r\n<p><br />\r\n </p>', 1, 4, 0, 16, '2005-11-19 07:25:47', 62, '', '2005-12-21 22:07:24', 62, 0, '0000-00-00 00:00:00', '2005-11-19 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=1\nauthor=\ncreatedate=\nmodifydate=\npdf=\nprint=\nemail=\nkeyref=', 11, 0, 2, '', '', 0, 23),
(21, 'How do I keep track of security advisories?', 'How do I keep track of security advisories?', 'Visit the Forums regularly and subscribe to the Mambo Security Announcements  <a href=\"http://mambo-foundation.org/mailman/listinfo/security-notification_mambo-foundation.org\" target=\"_blank\">mailing list.</a>.<br />', '', 1, 3, 0, 18, '2005-11-22 02:08:13', 62, '', '2005-11-22 07:34:04', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 5, 0, 1, '', '', 0, 11),
(16, 'What is Static Content?', 'What is Static Content?', 'Static Content is simply a content item which is not part of a Section\r\nor a Category. Static Content cannot be added to a Blog, a Section or a\r\nCategory. Static Content is, in other words, an independent, stand alone\r\npage. Static Content pages can be created, edited and deleted in the\r\nStatic Content Manager. In the sample content you have installed with\r\nMambo, the Main Menu choice &quot;The Mambo License&quot; shows an example of a\r\nStatic Content page.', '', 1, 3, 0, 19, '2005-11-22 01:45:07', 62, '', '2005-11-22 07:41:22', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 11, 0, 5, '', '', 0, 10),
(17, 'Do I have to keep this sample content?', 'Do I have to keep this sample content?', 'No. This sample content appears because it was selected as an option\r\nduring the installation process. The information contained in the site\r\nis intended to assist new users in learning the system and to help them\r\nget started using Mambo immediately. We have inserted the content using\r\na variety of formats and options to help users get some idea of the\r\nchoices available to them. You may delete any of this content without\r\ncausing any problems to the site installation.<br />', '', 1, 3, 0, 19, '2005-11-22 01:53:08', 62, '', '2005-11-22 07:36:23', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 4, 0, 4, '', '', 0, 1),
(18, 'What\'s the difference between a Section and a Category?', 'What\'s the difference between a Section and a Category?', 'A Category is a subset of a Section. Content Items belong to\r\nCategories; Categories belong to Sections. The only exception to this\r\nhierarchy is Static Content, which exists outside of the Sections &gt;\r\nCategories structure.<br />', '', 1, 3, 0, 19, '2005-11-22 01:55:35', 62, '', '2005-11-22 07:35:41', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 5, 0, 3, '', '', 0, 6),
(19, 'Why can\'t I delete a Section / Category?', 'Why can\'t I delete a Section / Category?', 'A Category must be empty of all Content Items before it can be deleted.\r\nA Section must be empty of all Categories before it can be deleted.\r\nRemember, in Mambo, when you delete an item, it moves to the Trash\r\nManager. To delete it permanently, you must go to the Trash Manager and\r\ndelete the items a second time; only then can you delete the related\r\nCategory / Section.<br />', '', 1, 3, 0, 19, '2005-11-22 01:58:30', 62, '', '2005-11-22 07:35:03', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 5, 0, 2, '', '', 0, 6),
(20, 'How do I secure my Mambo site?', 'How do I secure my Mambo site?', 'A simple question with a complex answer! It is complex because security\r\nissues arise from a variety of sources: your code, your server, the\r\nother things running on your server, the users, etc. While Mambo itself\r\nis relatively secure, you may still experience problems if the server\r\nis compromised or if a user gives up a password. The basic steps you\r\nshould take however include:<br />\r\n<ul>\r\n  <li>Do not unnecessarily leave directories open with CHMOD set at 777 (configuration.php in particular should be set to chmod 644)</li>\r\n  <li>Delete your old installation directory (don\'t just rename it!).</li>\r\n  <li>Implement HTTP access controls for your admin login.</li>\r\n  <li>Make all your admin passwords at least 8 characters and containing symbols and numbers as well as letters.</li>\r\n</ul>\r\nThere\'s more that you can do, but it is outside the scope of this FAQ.<br />', '', 1, 3, 0, 18, '2005-11-22 02:06:51', 62, '', '2005-11-22 07:34:45', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 8, 0, 2, '', '', 0, 7),
(24, 'Can I change the format of the Home Page?', 'Can I change the format of the Home Page?', 'Yes, and it is very easy to do. The formatting of the Home Page -- the\r\nnumber of columns, the number of articles, etc. -- is controlled by the\r\nParameters tab found on the Main Menu Item &quot;Home&quot;. GoTo:\r\nMENU&gt;MAINMENU and select HOME. In the right column you will see the\r\nParameters...<br />', '', 1, 3, 0, 19, '2005-11-22 07:58:52', 62, '', '2005-11-22 08:00:27', 62, 0, '0000-00-00 00:00:00', '2005-11-22 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=1\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=\nauthor=0\ncreatedate=0\nmodifydate=0\npdf=0\nprint=0\nemail=\nkeyref=\ndocbook_type=', 2, 0, 1, '', '', 0, 1),
(14, 'Using Templates Effectively', 'Using Templates Effectively', '<p>Your Mambo installation comes bundled with a default template and CSS. The template that displays when you first install the site is optimized for screen displays of 1024 x 768 and higher. In addition, we have included a second version of this template optimized for 800 x 600 displays.</p>\r\n<p>Mambo supports a number of options which allow you to change the display of the content on your site, enabling you to achieve a personalized look and feel without having to modify the template file. </p>', '<p>The default installation with the sample data is designed to demonstrate a variety of different techniques for formatting information and displaying content. It is a virtual sampler of some of the different tools and techniques made possible by the Mambo system. We have included at the top of most pages ::Explanatory Text:: which helps you understand how that particular page, section or category was created.</p>\r\n<p>Since our goal is to show you ways to use the system, we have not optimized the settings for the most attractive appearance. Moreover, not every site will need the same options we have selected to show you in this sampler.</p>\r\n<p>As a means of extending the examples we have given, here are some changes you might want to consider to help make your site more attractive:\r\n</p>\r\n<ul>\r\n<li>The &quot;Top Menu&quot; can be hidden (it\'s a bit redundant at present,\r\ngiven the choices included and how close they are to the Main Menu)</li>\r\n<li>The &quot;Latest News&quot;and &quot;Popular&quot; modules can be hidden to give the Home Page a cleaner, simpler look.</li>\r\n<li>Experiment with the Parameters controlling the Front Page Component to change the number of articles, columns or links that appear on the Home Page.</li>\r\n<li>Vary the number and types of modules included in the left and right columns and make the selections relevant to the content of the pages on which they appear.</li>\r\n<li>If you use the 800 x 600 version of the template, you may not want to use the &quot;Table - Content Category&quot; or &quot;Table - Content Section&quot; layout options, as the center column becomes very crowded.\r\n</li>\r\n</ul>\r\n<p>If you wish to change the company logo space (&quot;Water &amp; Stone&quot; -\r\nat the top of the template), it is very simple. The present header is an image. The easiest way to replace it is to overwrite the image file via FTP or by using the Media Manager (that is, upload a new file with the same name). If you do not wish to use an image for the company logo, then you will need to edit the template file directly. Changing the image at the top of the template (the wide picture) can be achieved in the same manner.</p>\r\n\r\n<p>If you wish to change the colors of the template you will have to be able to use an image editing program to create new background images (which are tiled to give many of the effects on this template). Changing fonts and font colors is easier as they are all controlled by the CSS.</p>\r\n<p>Note that the template files and the CSS include numerous comment tags that are intended to help make modifying the files faster and easier. The best way to learn how to create or edit Mambo templates is to open one up and experiment. Make copies of the original before you start and you won\'t have any serious problems.</p>\r\n<p>Good Luck and Welcome to Mambo!</p>', 1, 4, 0, 16, '2005-11-19 07:34:35', 62, '', '2005-11-29 21:46:55', 62, 0, '0000-00-00 00:00:00', '2005-11-19 00:00:00', '0000-00-00 00:00:00', '', '', 'pageclass_sfx=\nback_button=\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=1\nauthor=\ncreatedate=\nmodifydate=\npdf=\nprint=\nemail=\nkeyref=', 6, 0, 3, '', '', 0, 0),
(15, 'Welcome to Mambo!', 'Welcome to Mambo!', '<p>{mosimage}Thank you for choosing Mambo. You have completed successfully the\r\ninstallation of the Mambo files and are now viewing part of the sample\r\ncontent that is included in the default Mambo installation. You can\r\ndelete all of this information and replace it with your own contents\r\nvery easily. However, before you do that, we recommend that you review\r\nthese sample files, as they contain some information you might find to\r\nbe helpful.</p>\r\n\r\n<p>Included in the sample content you will find:</p>\r\n<ul>\r\n<li>An overview of Mambo (this content item)</li>\r\n<li>An introduction to Components &amp; Modules</li>\r\n<li>A summary of the templates that are included in this release, and</li>\r\n<li>Information about Mambo&rsquo;s Licensing Terms (GPL)</li>\r\n</ul>', '<p>It is quite literally true to say that Mambo is an Open Source\r\nsuccess story. The original program was developed by the Australian\r\nsoftware company <a href=\"http://www.miro.com.au\" target=\"_blank\">Miro</a>,\r\nwho released the code to the Open Source community under the terms of\r\nthe GNU GPL in March of 2001. Until August of 2005, the development of\r\nMambo was controlled by a loosely organized community of volunteers.\r\nDuring the course of development, Mambo grew in complexity and ability\r\nand won a number of awards together with a wide following of loyal\r\nusers. Version 4.5.2 of Mambo was downloaded 1.8 million times!</p>\r\n<p>In August 2005, the <a href=\"http://www.mambo-foundation.org\" target=\"_blank\">Mambo Foundation</a>\r\nwas formed, signaling a new era for the system. The Foundation is a\r\nnon-profit corporation whose sole purpose is the growth and development\r\nof Mambo. The Foundation is run by the members of the community.\r\nMembership in the Foundation is open to all and entitles members to\r\nelect their representatives on the Board of Directors and to\r\nparticipate more fully in matters affecting the development of the\r\nproject. </p>\r\n<p>Non-profit structures like the Mambo Foundation have been used successfully by <a href=\"http://foundation.gnome.org/\" target=\"_blank\">GNOME</a>, <a href=\"http://www.eclipse.org/org/index.html\" target=\"_blank\">Eclipse</a>, <a href=\"http://www.mozilla.org/foundation/\" target=\"_blank\">Mozilla</a>\r\nand many other Open Source projects. The non-profit corporate structure\r\nis popular, at least part, because it adds a level of stability and\r\naccountability absent in ad hoc community driven projects. The\r\nexistence of the Mambo Foundation means that users of Mambo can be\r\nassured that the code will remain Open Source, will remain backed by a\r\ntransparent and accountable organization, and will have the ongoing\r\nsupport and promotion that gives developers and business users the\r\nconfidence to choose Mambo over other systems.</p>\r\n<p>If you would like to become involved in the development of Mambo and\r\nbe a part of the dynamic Mambo community, please contact us at <a href=\"mailto:membership@mambo-foundation.org\">membership@mambo-foundation.org</a><br />\r\n</p>', 1, 4, 0, 16, '2005-11-19 07:52:18', 62, '', '2005-11-22 07:01:22', 62, 0, '0000-00-00 00:00:00', '2005-11-19 00:00:00', '0000-00-00 00:00:00', 'asterisk.png|left|Mambo Logo|0||bottom||', '', 'pageclass_sfx=\nback_button=\nitem_title=1\nlink_titles=\nintrotext=1\nsection=0\nsection_link=0\ncategory=0\ncategory_link=0\nrating=1\nauthor=\ncreatedate=\nmodifydate=\npdf=\nprint=\nemail=\nkeyref=\ndocbook_type=', 11, 0, 1, '', '', 0, 8);

-- --------------------------------------------------------

--
-- Table structure for table `mos_content_frontpage`
--

CREATE TABLE `mos_content_frontpage` (
  `content_id` int(11) NOT NULL DEFAULT '0',
  `ordering` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mos_content_rating`
--

CREATE TABLE `mos_content_rating` (
  `content_id` int(11) NOT NULL DEFAULT '0',
  `rating_sum` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `rating_count` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `lastip` varchar(50) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mos_core_acl_aro`
--

CREATE TABLE `mos_core_acl_aro` (
  `aro_id` int(11) NOT NULL,
  `section_value` varchar(240) NOT NULL DEFAULT '0',
  `value` varchar(240) NOT NULL DEFAULT '',
  `order_value` int(11) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `hidden` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_core_acl_aro`
--

INSERT INTO `mos_core_acl_aro` (`aro_id`, `section_value`, `value`, `order_value`, `name`, `hidden`) VALUES
(10, 'users', '62', 0, 'Administrator', 0),
(11, 'users', '71', 0, 'PK', 0),
(14, 'users', '74', 0, 'petuey', 0),
(15, 'users', '75', 0, 'Piyabute Kasemsuwan', 0),
(16, 'users', '76', 0, 'Piyabute Kasemsuwan', 0),
(17, 'users', '77', 0, 'pbk', 0),
(29, 'users', '89', 0, 'PeTuey', 0),
(30, 'users', '90', 0, 'Piyabute Kasemsuwan', 0);

-- --------------------------------------------------------

--
-- Table structure for table `mos_core_acl_aro_groups`
--

CREATE TABLE `mos_core_acl_aro_groups` (
  `group_id` int(11) NOT NULL,
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `lft` int(11) NOT NULL DEFAULT '0',
  `rgt` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_core_acl_aro_groups`
--

INSERT INTO `mos_core_acl_aro_groups` (`group_id`, `parent_id`, `name`, `lft`, `rgt`) VALUES
(17, 0, 'ROOT', 1, 22),
(28, 17, 'USERS', 2, 21),
(29, 28, 'Public Frontend', 3, 12),
(18, 29, 'Registered', 4, 11),
(19, 18, 'Author', 5, 10),
(20, 19, 'Editor', 6, 9),
(21, 20, 'Publisher', 7, 8),
(30, 28, 'Public Backend', 13, 20),
(23, 30, 'Manager', 14, 19),
(24, 23, 'Administrator', 15, 18),
(25, 24, 'Super Administrator', 16, 17);

-- --------------------------------------------------------

--
-- Table structure for table `mos_core_acl_aro_sections`
--

CREATE TABLE `mos_core_acl_aro_sections` (
  `section_id` int(11) NOT NULL,
  `value` varchar(230) NOT NULL DEFAULT '',
  `order_value` int(11) NOT NULL DEFAULT '0',
  `name` varchar(230) NOT NULL DEFAULT '',
  `hidden` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_core_acl_aro_sections`
--

INSERT INTO `mos_core_acl_aro_sections` (`section_id`, `value`, `order_value`, `name`, `hidden`) VALUES
(10, 'users', 1, 'Users', 0);

-- --------------------------------------------------------

--
-- Table structure for table `mos_core_acl_groups_aro_map`
--

CREATE TABLE `mos_core_acl_groups_aro_map` (
  `group_id` int(11) NOT NULL DEFAULT '0',
  `section_value` varchar(240) NOT NULL DEFAULT '',
  `aro_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mos_core_acl_groups_aro_map`
--

INSERT INTO `mos_core_acl_groups_aro_map` (`group_id`, `section_value`, `aro_id`) VALUES
(18, '', 11),
(18, '', 14),
(18, '', 15),
(25, '', 10),
(25, '', 16),
(25, '', 17),
(25, '', 29),
(25, '', 30);

-- --------------------------------------------------------

--
-- Table structure for table `mos_core_log_items`
--

CREATE TABLE `mos_core_log_items` (
  `time_stamp` date NOT NULL DEFAULT '0000-00-00',
  `item_table` varchar(50) NOT NULL DEFAULT '',
  `item_id` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `hits` int(11) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mos_core_log_searches`
--

CREATE TABLE `mos_core_log_searches` (
  `search_term` varchar(128) NOT NULL DEFAULT '',
  `hits` int(11) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `mos_facileforms_compmenus`
--

CREATE TABLE `mos_facileforms_compmenus` (
  `id` int(11) NOT NULL,
  `package` varchar(30) NOT NULL DEFAULT '',
  `parent` int(11) NOT NULL DEFAULT '0',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `published` tinyint(1) NOT NULL DEFAULT '0',
  `img` varchar(255) NOT NULL DEFAULT '',
  `title` varchar(50) NOT NULL DEFAULT '',
  `name` varchar(30) NOT NULL DEFAULT '',
  `page` int(11) NOT NULL DEFAULT '1',
  `frame` tinyint(1) NOT NULL DEFAULT '0',
  `border` tinyint(1) NOT NULL DEFAULT '0',
  `params` text
) ENGINE=MyISAM DEFAULT CHARSET=tis620;

--
-- Dumping data for table `mos_facileforms_compmenus`
--

INSERT INTO `mos_facileforms_compmenus` (`id`, `package`, `parent`, `ordering`, `published`, `img`, `title`, `name`, `page`, `frame`, `border`, `params`) VALUES
(1, 'Samples', 0, 0, 1, 'js/ThemeOffice/tux.png', 'FacileForms Sample Menu', '', 1, 0, 0, ''),
(2, 'Samples', 1, 1, 1, 'js/ThemeOffice/user.png', 'Contact form', 'SampleContactForm', 1, 0, 1, ''),
(3, 'Samples', 1, 2, 1, 'js/ThemeOffice/credits.png', 'Pizza shop', 'SamplePizzaShop', 1, 1, 1, '');

-- --------------------------------------------------------

--
-- Table structure for table `mos_facileforms_config`
--

CREATE TABLE `mos_facileforms_config` (
  `id` varchar(30) NOT NULL DEFAULT '',
  `value` text
) ENGINE=MyISAM DEFAULT CHARSET=tis620;

--
-- Dumping data for table `mos_facileforms_config`
--

INSERT INTO `mos_facileforms_config` (`id`, `value`) VALUES
('stylesheet', '1'),
('wysiwyg', '0'),
('areasmall', '4'),
('areamedium', '12'),
('arealarge', '20'),
('limitdesc', '100'),
('emailadr', 'piyabute@thaiamadeus.com'),
('images', '{mossite}/components/com_facileforms/images'),
('uploads', '{mospath}/components/com_facileforms/uploads'),
('movepixels', '10'),
('compress', '1'),
('livesite', '0'),
('getprovider', '0'),
('gridshow', '1'),
('gridsize', '10'),
('gridcolor1', '#e0e0ff'),
('gridcolor2', '#ffe0e0'),
('viewed', '0'),
('exported', '0'),
('archived', '0'),
('formname', ''),
('menupkg', ''),
('formpkg', 'Tickets'),
('scriptpkg', 'FF'),
('piecepkg', 'FF');

-- --------------------------------------------------------

--
-- Table structure for table `mos_facileforms_elements`
--

CREATE TABLE `mos_facileforms_elements` (
  `id` int(11) NOT NULL,
  `form` int(11) NOT NULL DEFAULT '0',
  `page` int(11) NOT NULL DEFAULT '1',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `published` tinyint(1) NOT NULL DEFAULT '0',
  `name` varchar(30) NOT NULL DEFAULT '',
  `title` varchar(50) NOT NULL DEFAULT '',
  `type` varchar(50) NOT NULL DEFAULT '',
  `class1` varchar(30) DEFAULT NULL,
  `class2` varchar(30) DEFAULT NULL,
  `logging` tinyint(1) NOT NULL DEFAULT '1',
  `posx` int(11) DEFAULT NULL,
  `posxmode` tinyint(1) NOT NULL DEFAULT '0',
  `posy` int(11) DEFAULT NULL,
  `posymode` tinyint(1) NOT NULL DEFAULT '0',
  `width` int(11) DEFAULT NULL,
  `widthmode` tinyint(1) NOT NULL DEFAULT '0',
  `height` int(11) DEFAULT NULL,
  `heightmode` tinyint(1) NOT NULL DEFAULT '0',
  `flag1` tinyint(1) NOT NULL DEFAULT '0',
  `flag2` tinyint(1) NOT NULL DEFAULT '0',
  `data1` text,
  `data2` text,
  `data3` text,
  `script1cond` tinyint(1) NOT NULL DEFAULT '0',
  `script1id` int(11) DEFAULT NULL,
  `script1code` text,
  `script1flag1` tinyint(1) NOT NULL DEFAULT '0',
  `script1flag2` tinyint(1) NOT NULL DEFAULT '0',
  `script2cond` tinyint(1) NOT NULL DEFAULT '0',
  `script2id` int(11) DEFAULT NULL,
  `script2code` text,
  `script2flag1` tinyint(1) NOT NULL DEFAULT '0',
  `script2flag2` tinyint(1) NOT NULL DEFAULT '0',
  `script2flag3` tinyint(1) NOT NULL DEFAULT '0',
  `script2flag4` tinyint(1) NOT NULL DEFAULT '0',
  `script2flag5` tinyint(1) NOT NULL DEFAULT '0',
  `script3cond` tinyint(1) NOT NULL DEFAULT '0',
  `script3id` int(11) DEFAULT NULL,
  `script3code` text,
  `script3msg` text
) ENGINE=MyISAM DEFAULT CHARSET=tis620;

--
-- Dumping data for table `mos_facileforms_elements`
--

INSERT INTO `mos_facileforms_elements` (`id`, `form`, `page`, `ordering`, `published`, `name`, `title`, `type`, `class1`, `class2`, `logging`, `posx`, `posxmode`, `posy`, `posymode`, `width`, `widthmode`, `height`, `heightmode`, `flag1`, `flag2`, `data1`, `data2`, `data3`, `script1cond`, `script1id`, `script1code`, `script1flag1`, `script1flag2`, `script2cond`, `script2id`, `script2code`, `script2flag1`, `script2flag2`, `script2flag3`, `script2flag4`, `script2flag5`, `script3cond`, `script3id`, `script3code`, `script3msg`) VALUES
(1, 1, 1, 1, 1, 'cf_title', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 13, 0, 400, 0, 100, 0, 0, 0, '<center><h1 style=\"line-height:1;padding:0;margin:0;\">Contact Form</h1></center>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(2, 1, 1, 2, 1, 'cf_name', 'Name', 'Text', '', '', 1, 51, 0, 48, 0, 300, 1, 255, 0, 0, 0, '', '', '', 1, 6, NULL, 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your name.'),
(3, 1, 1, 3, 1, 'cf_nametext', 'Name:', 'Static Text/HTML', '', '', 1, 5, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Name:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(4, 1, 1, 4, 1, 'cf_email', 'Email', 'Text', '', '', 1, 51, 0, 78, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 37, NULL, 'Please enter your valid email address.'),
(5, 1, 1, 5, 1, 'cf_emailtext', 'Email:', 'Static Text/HTML', '', '', 1, 5, 0, 80, 0, 0, 0, 0, 0, 0, 0, 'Email:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(6, 1, 1, 6, 1, 'cf_note', 'Note', 'Tooltip', '', '', 1, 367, 0, 80, 0, 0, 0, 0, 0, 0, 0, '', 'We confirm that your email address will be only used for handling this contact request, and it will not be made availabe to any 3rd party.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(7, 1, 1, 7, 1, 'cf_messagetext', 'Your message:', 'Static Text/HTML', '', '', 1, 5, 0, 108, 0, 0, 0, 0, 0, 0, 0, 'Your Message:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(8, 1, 1, 8, 1, 'cf_message', 'Message', 'Textarea', '', '', 1, 10, 0, 128, 0, 380, 1, 180, 1, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your message.'),
(9, 1, 1, 9, 1, 'cf_submit', 'Submit', 'Regular Button', '', '', 1, -5, 0, 321, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(10, 1, 1, 10, 1, 'seccode', 'Security Code', 'Text', '', 'inputbox', 1, 245, 0, 322, 0, 5, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 22, NULL, ''),
(11, 1, 1, 11, 1, 'secimage', 'Security Image', 'Static Text/HTML', '', '', 1, 10, 0, 324, 0, 0, 0, 0, 0, 0, 0, '<?php return ff_securityImage(); ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(12, 1, 1, 12, 1, 'seclabel', 'Security Label', 'Static Text/HTML', '', '', 1, 87, 0, 325, 0, 0, 0, 0, 0, 0, 0, 'Enter security code:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(13, 2, 1, 1, 1, 'pane1page1', 'Page 1', 'Rectangle', '', '', 1, 10, 0, 10, 0, 450, 0, 400, 0, 0, 0, '1px solid #aaaaaa', '#eeeeee', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(14, 2, 1, 2, 1, 'pane1page2', 'Page 2', 'Rectangle', '', '', 1, 160, 0, 10, 0, 151, 0, 30, 0, 0, 0, '1px solid #aaaaaa', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(15, 2, 1, 3, 1, 'pane1page3', 'Page 3', 'Rectangle', '', '', 1, 309, 0, 10, 0, 151, 0, 30, 0, 0, 0, '1px solid #aaaaaa', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(16, 2, 1, 4, 1, 'pane1legend1', 'Legend 1', 'Static Text/HTML', '', '', 1, 55, 0, 17, 0, 0, 0, 0, 0, 0, 0, 'Welcome', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(17, 2, 1, 5, 1, 'pane1legend2', 'Legend 2', 'Static Text/HTML', '', '', 1, 210, 0, 17, 0, 0, 0, 0, 0, 0, 0, '<a href=\"javascript:ff_switchpage(2)\">Details</a>', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(18, 2, 1, 6, 1, 'pane1legend3', 'Legend 3', 'Static Text/HTML', '', '', 1, 360, 0, 17, 0, 0, 0, 0, 0, 0, 0, '<a href=\"javascript:ff_switchpage(3)\">The Rest</a>', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(19, 2, 1, 7, 1, 'pane1intro', 'Intro', 'Static Text/HTML', '', '', 1, 30, 0, 70, 0, 410, 0, 300, 0, 0, 0, '<h1>Tab Sample</h1>\r\n<p>This demonstrates how you can build a dialogue with tabs for each page. It also shows another reasonable use of rectangles besides framing and highlighting contents.</p>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(20, 2, 1, 8, 1, 'pane1next', 'Next', 'Icon', '', '', 1, 415, 0, 345, 0, 0, 0, 0, 0, 1, 0, '{mossite}/administrator/images/next.png', '<font size=\"2\"><strong>Next</strong></font>', '{mossite}/administrator/images/next_f2.png', 0, NULL, NULL, 0, 0, 1, 13, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(21, 2, 2, 9, 1, 'pane2page2', 'Page 2', 'Rectangle', '', '', 1, 10, 0, 10, 0, 450, 0, 400, 0, 0, 0, '1px solid #aaaaaa', '#eeeeee', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(22, 2, 2, 10, 1, 'pane2page1', 'Page 1', 'Rectangle', '', '', 1, 10, 0, 10, 0, 151, 0, 30, 0, 0, 0, '1px solid #aaaaaa', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(23, 2, 2, 11, 1, 'pane2page3', 'Page 3', 'Rectangle', '', '', 1, 309, 0, 10, 0, 151, 0, 30, 0, 0, 0, '1px solid #aaaaaa', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(24, 2, 2, 12, 1, 'pane2legend1', 'Legend 1', 'Static Text/HTML', '', '', 1, 55, 0, 17, 0, 0, 0, 0, 0, 0, 0, '<a href=\"javascript:ff_switchpage(1)\">Welcome</a>', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(25, 2, 2, 13, 1, 'pane2legend2', 'Legend 2', 'Static Text/HTML', '', '', 1, 210, 0, 17, 0, 0, 0, 0, 0, 0, 0, 'Details', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(26, 2, 2, 14, 1, 'pane2legend3', 'Legend 3', 'Static Text/HTML', '', '', 1, 360, 0, 17, 0, 0, 0, 0, 0, 0, 0, '<a href=\"javascript:ff_switchpage(3)\">The Rest</a>', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(27, 2, 2, 15, 1, 'pane2picture', 'Picture', 'Image', '', '', 1, 100, 0, 100, 0, 200, 0, 200, 0, 0, 0, '{mossite}/administrator/images/credits.png', 'Credits', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(28, 2, 2, 16, 1, 'pane2next', 'Next', 'Icon', '', '', 1, 415, 0, 345, 0, 0, 0, 0, 0, 1, 0, '{mossite}/administrator/images/next.png', '<font size=\"2\"><strong>Next</strong></font>', '{mossite}/administrator/images/next_f2.png', 0, NULL, NULL, 0, 0, 1, 13, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(29, 2, 2, 17, 1, 'pane2back', 'Back', 'Icon', '', '', 1, 20, 0, 345, 0, 0, 0, 0, 0, 1, 0, '{mossite}/administrator/images/back.png', '<font size=\"2\"><strong>Back</strong></font>', '{mossite}/administrator/images/back_f2.png', 0, NULL, NULL, 0, 0, 1, 17, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(30, 2, 3, 18, 1, 'pane3page3', 'Page 3', 'Rectangle', '', '', 1, 10, 0, 10, 0, 450, 0, 400, 0, 0, 0, '1px solid #aaaaaa', '#eeeeee', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(31, 2, 3, 19, 1, 'pane3page1', 'Page 1', 'Rectangle', '', '', 1, 10, 0, 10, 0, 151, 0, 30, 0, 0, 0, '1px solid #aaaaaa', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(32, 2, 3, 20, 1, 'pane3page2', 'Page 2', 'Rectangle', '', '', 1, 159, 0, 10, 0, 151, 0, 30, 0, 0, 0, '1px solid #aaaaaa', '#dddddd', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(33, 2, 3, 21, 1, 'pane3legend1', 'Legend 1', 'Static Text/HTML', '', '', 1, 55, 0, 17, 0, 0, 0, 0, 0, 0, 0, '<a href=\"javascript:ff_switchpage(1)\">Welcome</a>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(34, 2, 3, 22, 1, 'pane3legend2', 'Legend 2', 'Static Text/HTML', '', '', 1, 210, 0, 17, 0, 0, 0, 0, 0, 0, 0, '<a href=\"javascript:ff_switchpage(2)\">Details</a>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(35, 2, 3, 23, 1, 'pane3legend3', 'Legend 3', 'Static Text/HTML', '', '', 1, 360, 0, 17, 0, 0, 0, 0, 0, 0, 0, 'The Rest', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(36, 2, 3, 24, 1, 'pane3text', 'Text', 'Static Text/HTML', '', '', 1, 130, 0, 100, 0, 0, 0, 0, 0, 0, 0, '<h3>....will go here.</h3>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(37, 2, 3, 25, 1, 'pane3back', 'Back', 'Icon', '', '', 1, 20, 0, 345, 0, 0, 0, 0, 0, 1, 0, '{mossite}/administrator/images/back.png', '<font size=\"2\"><strong>Back</strong></font>', '{mossite}/administrator/images/back_f2.png', 0, NULL, NULL, 0, 0, 1, 17, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(38, 3, 1, 1, 1, 'CselHeading', 'Heading', 'Static Text/HTML', '', '', 1, 5, 0, 0, 0, 310, 0, 100, 0, 0, 0, '<h3>Advanced Country Selection</h3>\r\n<p>This sample demonstrates the interaction between logically connected select lists, as well as dynamic replacement of select list options.</p>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(39, 3, 1, 2, 1, 'CselRegionCaption', 'Region:', 'Static Text/HTML', '', '', 1, 5, 0, 130, 0, 0, 0, 0, 0, 0, 0, '<strong>Region:</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(40, 3, 1, 3, 1, 'CselRegion', 'Region', 'Select List', '', '', 0, 145, 0, 128, 0, 150, 0, 0, 0, 0, 0, '1', '1;Select Region;none\r\n0;Asia;asia\r\n0;Africa;africa\r\n0;Australia;australia\r\n0;Europe;europe\r\n0;Middle East;middleeast\r\n0;Latin America;lamerica\r\n0;North America;namerica\r\n0;South America;samerica', '', 1, 6, NULL, 1, 0, 2, NULL, 'function ff_CselRegion_action(element, action)\r\n{\r\n    country = ff_getElementByName(\'CselCountry\');\r\n    state   = ff_getElementByName(\'CselState\');\r\n\r\n    var africaArray = new Array(\r\n        \'Ethiopia\', \'Somalia\', \'South Africa\', \'Other\'\r\n    );\r\n\r\n    var middleeastArray = new Array(\r\n        \'Egypt\', \'Iran\', \'Israel\', \'Kuwait\', \'Lebanon\', \'Morocco\',\r\n        \'Saudi Arabia\', \'Syria\', \'Turkey\', \'U.A.Emirates\', \'Other\'\r\n    );\r\n\r\n    var asiaArray = new Array(\r\n        \'Armenia\', \'Bangladesh\', \'Cambodia\', \'China\', \'India\', \'Indonesia\',\r\n        \'Japan\', \'Malaysia\', \'Myanmar\', \'Nepal\', \'Pakistan\', \'Philippines\',\r\n        \'Singapore\', \'South Korea\', \'Sri Lanka\', \'Taiwan\', \'Thailand\',\r\n        \'Uzbekistan\', \'Vietnam\', \'Other\'\r\n    );\r\n\r\n    var europeArray = new Array(\r\n        \'Albania\', \'Austria\', \'Belarus\', \'Belgium\', \'Bosnia\', \'Bulgaria\',\r\n        \'Croatia\', \'Cyprus\', \'Czech Rep.\', \'Denmark\', \'Estonia\', \'Finland\',\r\n        \'France\', \'Germany\', \'Greece\', \'Hungary\', \'Iceland\', \'Ireland\',\r\n        \'Italy\', \'Latvia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\',\r\n        \'Macedonia\', \'Malta\', \'Monaco\', \'Netherlands\', \'Norway\', \'Poland\',\r\n        \'Portugal\', \'Romania\', \'Russia\', \'Slovakia\', \'Slovenia\', \'Spain\',\r\n        \'Sweden\', \'Switzerland\', \'Ukraine\', \'United Kingdom\', \'Other\'\r\n    );\r\n\r\n    var australiaArray = new Array(\'Australia\', \'New Zealand\', \'Other\');\r\n\r\n    var lamericaArray = new Array(\r\n        \'Costa Rica\', \'Cuba\', \'El Salvador\', \'Guatemala\', \'Haiti\', \'Jamaica\',\r\n        \'Mexico\', \'Panama\', \'Other\'\r\n    );\r\n\r\n    var namericaArray =  new Array(\'Canada\', \'USA\', \'Other\');\r\n\r\n    var samericaArray =  new Array(\r\n        \'Argentina\', \'Bolivia\', \'Brazil\', \'Chile\', \'Colombia\', \'Ecuador\',\r\n        \'Paraguay\', \'Peru\', \'Suriname\', \'Uruguay\', \'Venezuela\', \'Other\'\r\n    );\r\n\r\n    if (element.value == \'none\') {\r\n        // drop countries\r\n        while (country.options.length > 0)\r\n            country.options[country.options.length-1] = null;\r\n    } else {\r\n        // get the matching array\r\n        var selectedArray = eval(element.value+\'Array\');\r\n\r\n        // drop supernumerous option\r\n        while (selectedArray.length < country.options.length-1)\r\n            country.options[country.options.length-1] = null;\r\n\r\n        // add the new options\r\n        country.options[0] = new Option(\'Select Country\', \'none\', true, true);\r\n        for (var i=0; i < selectedArray.length; i++)\r\n            country.options[i+1] =\r\n                new Option(selectedArray[i], selectedArray[i]);\r\n    } // if\r\n\r\n    // drop states\r\n    while (state.options.length > 0)\r\n        state.options[state.options.length-1] = null;\r\n} // ff_CselRegion_action', 0, 0, 1, 0, 0, 2, NULL, 'function ff_CselRegion_validation(element, message)\r\n{\r\n    if (element.value==\'none\') {\r\n        if (message==\'\') message = \"Please select region.\\n\";\r\n        ff_validationFocus(element.name);\r\n        return message;\r\n    }\r\n    return \'\';\r\n}', ''),
(41, 3, 1, 4, 1, 'CselCountryCaption', 'Country:', 'Static Text/HTML', '', '', 1, 5, 0, 155, 0, 0, 0, 0, 0, 0, 0, '<strong>Country:</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(42, 3, 1, 5, 1, 'CselCountry', 'Country', 'Select List', '', '', 0, 145, 0, 153, 0, 150, 0, 0, 0, 0, 0, '1', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_CselCountry_action(element, action)\r\n{\r\n    state   = ff_getElementByName(\'CselState\');\r\n\r\n    var stateArray = new Array(\r\n        \'Alabama\', \'Alaska\', \'Arizona\', \'Arkansas\', \'California\', \'Colorado\',\r\n        \'Connecticut\', \'Delaware\', \'Columbia\', \'Florida\', \'Georgia\', \'Hawaii\',\r\n        \'Idaho\', \'Illinois\', \'Indiana\', \'Iowa\', \'Kansas\', \'Kentucky\',\r\n        \'Louisiana\', \'Maine\', \'Maryland\', \'Massachusetts\', \'Michigan\',\r\n        \'Minnesota\', \'Mississippi\', \'Missouri\', \'Montana\', \'Nebraska\',\r\n        \'Nevada\', \'New Hampshire\', \'New Jersey\', \'New Mexico\', \'New York\',\r\n        \'North Carolina\', \'North Dakota\', \'Ohio\', \'Oklahoma\', \'Oregon\',\r\n        \'Pennsylvania\', \'Rhode Island\', \'South Carolina\', \'South Dakota\',\r\n        \'Tennessee\', \'Texas\', \'Utah\', \'Vermont\', \'Virginia\', \'Washington\',\r\n        \'West Virginia\', \'Wisconsin\', \'Wyoming\'\r\n    );\r\n    if (element.value==\'USA\') {\r\n        // drop supernumerous option\r\n        while (stateArray.length < state.options.length-1)\r\n            state.options[state.options.length-1] = null;\r\n\r\n        // add the new options\r\n	    state.options[0] = new Option(\'Select State\', \'none\', true, true);\r\n        for (var i=0; i < stateArray.length; i++)\r\n            state.options[i+1] = new Option(stateArray[i], stateArray[i]);\r\n    } else {\r\n        while (state.options.length > 0)\r\n            state.options[(state.options.length - 1)] = null;\r\n    } // if\r\n} //ff_CselCountry_action', 0, 0, 1, 0, 0, 2, NULL, 'function ff_CselCountry_validation(element, message)\r\n{\r\n    if (element.value==\'none\' || element.value==\'\') {\r\n        if (message==\'\') message = \"Please select country.\\n\";\r\n        ff_validationFocus(element.name);\r\n        return message;\r\n    }\r\n    return \'\';\r\n}', ''),
(43, 3, 1, 6, 1, 'CselStateCaption', 'State:', 'Static Text/HTML', '', '', 1, 5, 0, 180, 0, 0, 0, 0, 0, 0, 0, '<strong>State (USA only):</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(44, 3, 1, 7, 1, 'CselState', 'State', 'Select List', '', '', 0, 145, 0, 178, 0, 150, 0, 0, 0, 0, 0, '1', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_CselState_validation(element, message)\r\n{\r\n    if (ff_getElementByName(\'CselCountry\').value==\'USA\')\r\n        if (element.value==\'none\' || element.value==\'\') {\r\n            if (message==\'\') message = \"Please select state.\\n\";\r\n            ff_validationFocus(element.name);\r\n            return message;\r\n        }\r\n    return \'\';\r\n}', ''),
(45, 3, 1, 8, 1, 'CselValidateButton', 'Validate Button', 'Regular Button', '', '', 1, 50, 0, 210, 0, 0, 0, 0, 0, 0, 0, '', 'Validate Country Selection', '', 0, NULL, NULL, 0, 0, 1, 35, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(46, 4, 1, 1, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 10, 0, 0, 0, 0, 0, 0, 0, 'Email to:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(47, 4, 1, 2, 1, 'email', 'Recipient', 'Text', '', '', 1, 10, 0, 25, 0, 51, 0, 128, 0, 0, 0, '', '', '', 1, 6, NULL, 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 37, NULL, 'Please enter a valid email address.'),
(48, 4, 1, 3, 1, 'subject_txt', 'Subject:', 'Static Text/HTML', '', '', 1, 10, 0, 55, 0, 0, 0, 0, 0, 0, 0, 'Subject:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(49, 4, 1, 4, 1, 'subject', 'Subject', 'Text', '', '', 1, 10, 0, 70, 0, 51, 0, 128, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the subject.'),
(50, 4, 1, 5, 1, 'message_txt', 'Message:', 'Static Text/HTML', '', '', 1, 10, 0, 100, 0, 0, 0, 0, 0, 0, 0, 'Message:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(51, 4, 1, 6, 1, 'message', 'Message', 'Textarea', '', '', 1, 10, 0, 115, 0, 38, 0, 15, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the message.'),
(52, 4, 1, 7, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 370, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(53, 5, 1, 1, 1, 'welcome', 'Welcome', 'Static Text/HTML', '', '', 1, 10, 0, 10, 0, 0, 0, 0, 0, 0, 0, '<h2>Welcome <?php \r\nglobal $my; \r\nif ($my->name != \'\') return $my->name; else return \'Visitor\';\r\n?></h2>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(54, 5, 1, 2, 1, 'userlist', 'Userlist', 'Select List', '', '', 1, 10, 0, 75, 0, 0, 0, 0, 0, 0, 0, '10', '1;Select user;none\r\n<?php\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$users = ff_select(\"select name, username from #__users order by name\");\r\n$options = \'\';\r\nif ($users)\r\n    foreach ($users as $user) \r\n        $options .= \"0;$user->name;$user->username\\n\";\r\nreturn $options;\r\n?>', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_userlist_validation(element, message)\r\n{\r\n    if (element.value==\'none\' || element.value==\'\') {\r\n        ff_validationFocus(element.name);\r\n        return message;\r\n    } // if\r\n    return \'\';\r\n} // ff_userlist_validation', 'Please select a mambo user!'),
(55, 5, 1, 3, 1, 'submit', 'Submit', 'Regular Button', '', '', 1, 10, 0, 260, 0, 0, 0, 0, 0, 0, 0, '5', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(56, 5, 1, 4, 1, 'username', 'Username', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\n    global $my; \r\n    return $my->username; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(57, 6, 1, 1, 1, 'psi_lights', 'Lights', 'Image', '', '', 1, 0, 0, 0, 0, 400, 0, 100, 0, 0, 0, '{ff_images}/pizzashop/lights.jpg', 'Lights Picture', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(58, 6, 1, 2, 1, 'psi_ticker', 'Ticker', 'Static Text/HTML', '', '', 1, 10, 0, 100, 0, 0, 0, 0, 0, 0, 0, '<marquee scrollamount=\"3\" scrolldelay=\"10\">  <b>+++ Happy hours monday to friday from 4 a.m. to 6 a.m +++ Every pizza half price! +++ Dont miss this! +++</b>  </marquee>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(59, 6, 1, 3, 1, 'psi_standard', 'Standard Pizzas', 'Graphic Button', '', '', 1, 40, 0, 150, 0, 0, 0, 0, 0, 1, 0, '{ff_images}/pizzashop/quattro.jpg', '<strong>Order standard pizzas</strong>', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_psi_standard_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_switchpage(ff_getPageByName(\'pss_title\'));\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_psi_standard_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(60, 6, 1, 4, 1, 'psi_custom', 'Custom Pizzas', 'Graphic Button', '', '', 1, 190, 0, 275, 0, 0, 0, 0, 0, 1, 0, '{ff_images}/pizzashop/design.jpg', '<strong>Create my own pizza</strong>', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_psi_custom_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_switchpage(ff_getPageByName(\'psc_title\'));\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_psi_custom_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(61, 6, 2, 5, 1, 'pss_title', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 0, 0, 400, 0, 30, 0, 0, 0, '<center><h1>Our Standard Pizzas</h1><h1></h1></center>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(62, 6, 2, 6, 1, 'pss_regular', 'Regular', 'Static Text/HTML', '', '', 1, 280, 0, 60, 0, 0, 0, 0, 0, 0, 0, '<strong>Regular</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(63, 6, 2, 7, 1, 'pss_large', 'Large', 'Static Text/HTML', '', '', 1, 350, 0, 60, 0, 0, 0, 0, 0, 0, 0, '<strong>Large</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(64, 6, 2, 8, 1, 'pss_margherita_image', 'Margherita Image', 'Image', '', '', 1, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, '{ff_images}/pizzashop/margherita.jpg', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(65, 6, 2, 9, 1, 'pss_margherita_text', 'Margherita Text', 'Static Text/HTML', '', '', 1, 110, 0, 100, 0, 100, 0, 0, 0, 0, 0, '<strong>Margherita</strong><br>  <font size=\"-2\">Pizza sauce, Mozarella</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(66, 6, 2, 10, 1, 'pss_margherita_regular_price', 'Margherita Regular Price', 'Static Text/HTML', '', '', 1, 280, 0, 100, 0, 0, 0, 0, 0, 0, 0, '$5.99', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(67, 6, 2, 11, 1, 'pss_margherita_regular', 'Margherita Regular Order', 'Text', '', '', 1, 280, 0, 120, 0, 2, 0, 2, 0, 0, 0, '', '', '', 1, 6, NULL, 0, 1, 2, NULL, 'function ff_pss_margherita_regular_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_pss_calculate();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_pss_margherita_regular_action', 0, 0, 1, 0, 0, 1, 12, NULL, 'Please enter a number for margherita regular.'),
(68, 6, 2, 12, 1, 'pss_margherita_large_price', 'Martgherita Large Price', 'Static Text/HTML', '', '', 1, 350, 0, 100, 0, 0, 0, 0, 0, 0, 0, '$8.99', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(69, 6, 2, 13, 1, 'pss_margherita_large', 'Margherita Large Order', 'Text', '', '', 1, 350, 0, 120, 0, 2, 0, 2, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_pss_margherita_large_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_pss_calculate();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_pss_margherita_large_action', 0, 0, 1, 0, 0, 1, 12, NULL, 'Please enter a number for margherita large.'),
(70, 6, 2, 14, 1, 'pss_quattro_image', 'Quattro Image', 'Image', '', '', 1, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, '{ff_images}/pizzashop/quattro.jpg', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(71, 6, 2, 15, 1, 'pss_quattro_text', 'Quattro Text', 'Static Text/HTML', '', '', 1, 110, 0, 200, 0, 120, 0, 0, 0, 0, 0, '<strong>Quattro Staggione</strong><br>  <font size=\"-2\">Pizza sauce, Mozarella, Pepperoni, Mushrooms, Garlic</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(72, 6, 2, 16, 1, 'pss_quattro_regular_price', 'Quattro Regular Price', 'Static Text/HTML', '', '', 1, 280, 0, 200, 0, 0, 0, 0, 0, 0, 0, '$7.99', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(73, 6, 2, 17, 1, 'pss_quattro_regular', 'Quattro Regular Order', 'Text', '', '', 1, 280, 0, 220, 0, 2, 0, 2, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_pss_quattro_regular_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_pss_calculate();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_pss_quattro_regular_action', 0, 0, 1, 0, 0, 1, 12, NULL, 'Please enter a number for quattro regular.'),
(74, 6, 2, 18, 1, 'pss_quattro_large_price', 'Quattro Large Price', 'Static Text/HTML', '', '', 1, 350, 0, 200, 0, 0, 0, 0, 0, 0, 0, '$10.99', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(75, 6, 2, 19, 1, 'pss_quattro_large', 'Quattro Large Order', 'Text', '', '', 1, 350, 0, 220, 0, 2, 0, 2, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_pss_quattro_large_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_pss_calculate();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_pss_quattro_large_action', 0, 0, 1, 0, 0, 1, 12, NULL, 'Please enter a number for quattro large.'),
(76, 6, 2, 20, 1, 'pss_amount_text', 'Total Amount:', 'Static Text/HTML', '', '', 1, 150, 0, 320, 0, 0, 0, 0, 0, 0, 0, '<strong>Your total amount is:</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(77, 6, 2, 21, 1, 'pss_amount', 'Total Amount', 'Text', '', '', 0, 280, 0, 320, 0, 10, 0, 10, 0, 0, 1, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_pss_amount_validation(element, message)\r\n{\r\n    ff_pss_calculate();\r\n    if (element.value==0) {\r\n        ff_validationFocus(\'pss_margherita_regular\');\r\n        return message;\r\n    } // if\r\n    return \'\';\r\n} // ff_pss_amount_validation\r\n\r\nfunction ff_pss_calculate()\r\n{\r\n    var amount = 0;\r\n    var order;\r\n\r\n    order = ff_getElementByName(\'pss_margherita_regular\').value;\r\n    if (order != \'\') amount += parseInt(order) * 5.99;\r\n\r\n    order = ff_getElementByName(\'pss_margherita_large\').value;\r\n    if (order != \'\') amount += parseInt(order) * 8.99;\r\n\r\n    order = ff_getElementByName(\'pss_quattro_regular\').value;\r\n    if (order != \'\') amount += parseInt(order) * 7.99;\r\n\r\n    order = ff_getElementByName(\'pss_quattro_large\').value;\r\n    if (order != \'\') amount += parseInt(order) * 10.99;\r\n\r\n    ff_getElementByName(\'pss_amount\').value = Math.round(amount*100)/100;\r\n} // ff_pss_calculate', 'Please enter your order first!'),
(78, 6, 2, 22, 1, 'pss_order', 'Order Now', 'Regular Button', '', '', 1, 280, 0, 350, 0, 0, 0, 0, 0, 0, 0, '', 'Order Now', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_pss_order_action(element, action)\r\n{\r\n    var error;\r\n    switch (action) {\r\n        case \'click\':\r\n            error = ff_validation(ff_currentpage);\r\n            if (error != \'\') {\r\n                alert(error);\r\n                ff_validationFocus();\r\n            } else\r\n                ff_switchpage(ff_getPageByName(\'psa_title\'));\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_pss_order_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(79, 6, 3, 23, 1, 'psc_title', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 0, 0, 400, 0, 30, 0, 0, 0, '<center><h1>Create My Own Pizza</h1><h1></h1></center>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(80, 6, 3, 24, 1, 'psc_regular', 'Regular', 'Static Text/HTML', '', '', 1, 280, 0, 60, 0, 0, 0, 0, 0, 0, 0, '<strong>Regular</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(81, 6, 3, 25, 1, 'psc_large', 'Large', 'Static Text/HTML', '', '', 1, 350, 0, 60, 0, 0, 0, 0, 0, 0, 0, '<strong>Large</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(82, 6, 3, 26, 1, 'psc_image', 'Custom Image', 'Image', '', '', 1, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, '{ff_images}/pizzashop/design.jpg', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(83, 6, 3, 27, 1, 'psc_custom_text', 'Custom Text', 'Static Text/HTML', '', '', 1, 110, 0, 100, 0, 100, 0, 0, 0, 0, 0, '<strong>Basic Pizza</strong><br>  <font size=\"-2\">With pizza sauce</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(84, 6, 3, 28, 1, 'psc_custom_regular_price', 'Custom Regular Price', 'Static Text/HTML', '', '', 1, 280, 0, 100, 0, 0, 0, 0, 0, 0, 0, '$5.99', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(85, 6, 3, 29, 1, 'psc_custom_regular', 'Custom Regular Order', 'Text', '', '', 1, 280, 0, 120, 0, 2, 0, 2, 0, 0, 0, '', '', '', 1, 6, NULL, 0, 1, 2, NULL, 'function ff_psc_custom_regular_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_psc_calculate();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_psc_custom_regular_action', 0, 0, 1, 0, 0, 1, 12, NULL, 'Please enter a number for regular size.'),
(86, 6, 3, 30, 1, 'psc_custom_large_price', 'Custom Large Price', 'Static Text/HTML', '', '', 1, 350, 0, 100, 0, 0, 0, 0, 0, 0, 0, '$8.99', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(87, 6, 3, 31, 1, 'psc_custom_large', 'Custom Large Order', 'Text', '', '', 1, 350, 0, 120, 0, 2, 0, 2, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_psc_custom_large_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_psc_calculate();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_psc_custom_large_action', 0, 0, 1, 0, 0, 1, 12, NULL, 'Please enter a number for large size.'),
(88, 6, 3, 32, 1, 'psc_extras_text', 'Extras Text', 'Static Text/HTML', '', '', 1, 240, 0, 155, 0, 0, 0, 0, 0, 0, 0, 'Add $0.49 for every extra', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(89, 6, 3, 33, 1, 'psc_adds', 'Extras', 'Checkbox', '', '', 1, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 'Mozzarella', 'Mozzarella', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_psc_adds_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_psc_calculate();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_psc_adds_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(90, 6, 3, 34, 1, 'psc_adds', 'Pepperoni', 'Checkbox', '', '', 1, 100, 0, 200, 0, 0, 0, 0, 0, 0, 0, 'Pepperoni', 'Pepperoni', '', 0, NULL, NULL, 0, 0, 2, NULL, '// This is just dummy, function must be defined in first psc_adds only.\r\n// Nonetheless action of all psc_adds_only must be \"Custom Code\" with\r\n// \"Click\"', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(91, 6, 3, 35, 1, 'psc_adds', 'Mushrooms', 'Checkbox', '', '', 1, 200, 0, 200, 0, 0, 0, 0, 0, 0, 0, 'Mushrooms', 'Mushrooms', '', 0, NULL, NULL, 0, 0, 2, NULL, '// This is just dummy, function must be defined in first psc_adds only.\r\n// Nonetheless action of all psc_adds_only must be \"Custom Code\" with\r\n// \"Click\"', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(92, 6, 3, 36, 1, 'psc_adds', 'Garlic', 'Checkbox', '', '', 1, 300, 0, 200, 0, 0, 0, 0, 0, 0, 0, 'Garlic', 'Garlic', '', 0, NULL, NULL, 0, 0, 2, NULL, '// This is just dummy, function must be defined in first psc_adds only.\r\n// Nonetheless action of all psc_adds_only must be \"Custom Code\" with\r\n// \"Click\"', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(93, 6, 3, 37, 1, 'psc_adds', 'Chedar', 'Checkbox', '', '', 1, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 'Chedar', 'Chedar', '', 0, NULL, NULL, 0, 0, 2, NULL, '// This is just dummy, function must be defined in first psc_adds only.\r\n// Nonetheless action of all psc_adds_only must be \"Custom Code\" with\r\n// \"Click\"', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(94, 6, 3, 38, 1, 'psc_adds', 'Tomatos', 'Checkbox', '', '', 1, 100, 0, 220, 0, 0, 0, 0, 0, 0, 0, 'Tomatos', 'Tomatos', '', 0, NULL, NULL, 0, 0, 2, NULL, '// This is just dummy, function must be defined in first psc_adds only.\r\n// Nonetheless action of all psc_adds_only must be \"Custom Code\" with\r\n// \"Click\"', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(95, 6, 3, 39, 1, 'psc_adds', 'Vegetables', 'Checkbox', '', '', 1, 200, 0, 220, 0, 0, 0, 0, 0, 0, 0, 'Vegetables', 'Vegetables', '', 0, NULL, NULL, 0, 0, 2, NULL, '// This is just dummy, function must be defined in first psc_adds only.\r\n// Nonetheless action of all psc_adds_only must be \"Custom Code\" with\r\n// \"Click\"', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(96, 6, 3, 40, 1, 'psc_adds', 'Anchovies', 'Checkbox', '', '', 1, 300, 0, 220, 0, 0, 0, 0, 0, 0, 0, 'Anchovies', 'Anchovies', '', 0, NULL, NULL, 0, 0, 2, NULL, '// This is just dummy, function must be defined in first psc_adds only.\r\n// Nonetheless action of all psc_adds_only must be \"Custom Code\" with\r\n// \"Click\"', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(97, 6, 3, 41, 1, 'psc_alladds', 'All Extras', 'Checkbox', '', '', 0, 0, 0, 250, 0, 0, 0, 0, 0, 0, 0, 'yes', 'Don\'t steal my time, I want them ALL!', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_psc_alladds_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            for (var i = 0; i < ff_elements.length; i++)\r\n                if (ff_elements[i][2]==\'psc_adds\') \r\n                    ff_getElementByIndex(i).checked = element.checked;\r\n            ff_psc_calculate();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_psc_alladds_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(98, 6, 3, 42, 1, 'psc_amount_text', 'Total Amount:', 'Static Text/HTML', '', '', 1, 150, 0, 320, 0, 0, 0, 0, 0, 0, 0, '<strong>Your total amount is:</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(99, 6, 3, 43, 1, 'psc_amount', 'Total Amount', 'Text', '', '', 0, 280, 0, 320, 0, 10, 0, 10, 0, 0, 1, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_psc_amount_validation(element, message)\r\n{\r\n    ff_psc_calculate();\r\n    if (ff_getElementByName(\'psc_custom_regular\').value == \'\' &&\r\n        ff_getElementByName(\'psc_custom_large\').value == \'\') {\r\n        ff_validationFocus(\'psc_custom_regular\');\r\n        return message;\r\n    } // if\r\n    return \'\';\r\n} // ff_psc_amount_validation\r\n\r\nfunction ff_psc_calculate()\r\n{\r\n    var amount = 0;\r\n    var order;\r\n    var count = 0;\r\n\r\n    // add base amout of regular size\r\n    order = ff_getElementByName(\'psc_custom_regular\').value;\r\n    if (order != \'\') {\r\n        order = parseInt(order);\r\n        count += order;\r\n        amount += order * 5.99;\r\n    } // if\r\n \r\n    // add base amount of large size\r\n    order = ff_getElementByName(\'psc_custom_large\').value;\r\n    if (order != \'\') {\r\n        order = parseInt(order);\r\n        count += order;\r\n        amount += order * 8.99;\r\n    }\r\n\r\n    // count number of adds\r\n    var adds = 0;\r\n    for (var i = 0; i < ff_elements.length; i++)\r\n        if (ff_elements[i][2]==\'psc_adds\') \r\n            if (ff_getElementByIndex(i).checked) adds++;\r\n    amount += count * adds * 0.49;\r\n\r\n    // show result\r\n    ff_getElementByName(\'psc_amount\').value = Math.round(amount*100)/100;\r\n} // ff_psc_calculate', 'You must order one basic pizza at least!'),
(100, 6, 3, 44, 1, 'psc_order', 'Order Now', 'Regular Button', '', '', 1, 280, 0, 350, 0, 10, 0, 10, 0, 0, 0, '', 'Order Now', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_psc_order_action(element, action)\r\n{\r\n    var error;\r\n    switch (action) {\r\n        case \'click\':\r\n            error = ff_validation(ff_currentpage);\r\n            if (error != \'\') {\r\n                alert(error);\r\n                ff_validationFocus();\r\n            } else\r\n                ff_switchpage(ff_getPageByName(\'psa_title\'));\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_psc_order_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(101, 6, 4, 45, 1, 'psa_title', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 0, 0, 400, 0, 30, 0, 0, 0, '<center><h1>Delivery Address</h1><h1></h1></center>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(102, 6, 4, 46, 1, 'psa_name_text', 'Name:', 'Static Text/HTML', '', '', 1, 5, 0, 100, 0, 0, 0, 0, 0, 0, 0, 'Your Name:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(103, 6, 4, 47, 1, 'psa_name', 'Name', 'Text', '', '', 1, 80, 0, 100, 0, 45, 0, 255, 0, 0, 0, '', '', '', 1, 6, NULL, 0, 1, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your name.'),
(104, 6, 4, 48, 1, 'psa_address_text', 'Address:', 'Static Text/HTML', '', '', 1, 5, 0, 130, 0, 0, 0, 0, 0, 0, 0, 'Address:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(105, 6, 4, 49, 1, 'psa_address', 'Address', 'Text', '', '', 1, 80, 0, 130, 0, 45, 0, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your address.'),
(106, 6, 4, 50, 1, 'psa_phone_text', 'Phone:', 'Static Text/HTML', '', '', 1, 5, 0, 160, 0, 0, 0, 0, 0, 0, 0, 'Phone:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(107, 6, 4, 51, 1, 'psa_phone', 'Phone', 'Text', '', '', 1, 80, 0, 160, 0, 45, 0, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your phone number.'),
(108, 6, 4, 52, 1, 'pss_submit', 'Submit Order', 'Regular Button', '', '', 1, 120, 0, 220, 0, 10, 0, 10, 0, 0, 0, '', 'Submit order, I\'m hungry now!', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_pss_submit_action(element, action)\r\n{\r\n    var error;\r\n    switch (action) {\r\n        case \'click\':\r\n            error = ff_validation(ff_currentpage);\r\n            if (error != \'\') {\r\n                alert(error);\r\n                ff_validationFocus();\r\n            } else {\r\n                ff_switchpage(ff_getPageByName(\'psx_submitting\'));\r\n                ff_submitForm();\r\n            } // if\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_pss_submit_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(109, 6, 5, 53, 1, 'psx_submitting', 'Submitting...', 'Static Text/HTML', '', '', 1, 50, 0, 100, 0, 300, 0, 200, 0, 0, 0, '<h2>Your order is being submitted, please stand by....</h2>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(110, 6, 6, 54, 1, 'pst_picture', 'Picture', 'Image', '', '', 1, 100, 0, 50, 0, 0, 0, 0, 0, 0, 0, '{ff_images}/pizzashop/delivery.jpg', 'Lights Picture', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(111, 6, 6, 55, 1, 'pst_text', 'Text', 'Static Text/HTML', '', '', 1, 20, 0, 200, 0, 360, 0, 100, 0, 0, 0, '<h1>Thank you for your order!</h1>\r\n<p>Please expect our delivery in half an hour from now. Prepare the necessary amount please.<p>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(112, 7, 1, 1, 1, 'title', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 10, 0, 100, 1, 0, 0, 0, 0, '<center><h3>Rock\'N\'Roll Dance Contest Registration Form</h3></center>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(113, 7, 1, 2, 1, 'couple_capt', 'Couple Caption', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Couple:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(114, 7, 1, 3, 1, 'couple', 'Couple', 'Text', '', '', 1, 10, 0, 67, 0, 50, 0, 50, 0, 0, 0, '<?php global $record; if ($record) return $record->couple; ?>', '', '', 1, 6, NULL, 0, 1, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter couple names'),
(115, 7, 1, 4, 1, 'age', 'Junior', 'Radio Button', '', '', 1, 10, 0, 100, 0, 0, 0, 0, 0, 0, 0, '1', 'Junior Class', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_age_validation(element, message)\r\n{\r\n    var age = 0;\r\n    for (var i = 0; i < ff_elements.length; i++)\r\n        if (ff_elements[i][2]==\'age\') \r\n            if (ff_getElementByIndex(i).checked) age++;\r\n    if (age==0) {\r\n        ff_validationFocus(element.name);\r\n        return \'Please select age class\\n\';\r\n    } // if\r\n    return \'\';\r\n} // ff_age_validation', ''),
(116, 7, 1, 5, 1, 'age', 'Adult', 'Radio Button', '', '', 1, 110, 0, 100, 0, 0, 0, 0, 0, 0, 0, '0', 'Adult Class', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(117, 7, 1, 6, 1, 'acro', 'Acrobatic', 'Checkbox', '', '', 1, 10, 0, 130, 0, 0, 0, 0, 0, 0, 0, '1', 'Acrobatic Rock\'N\'Roll', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_acro_validation(element, message)\r\n{\r\n    if (!ff_getElementByName(\'acro\').checked &&\r\n        !ff_getElementByName(\'fun\').checked &&\r\n        !ff_getElementByName(\'boogie\').checked) {\r\n        ff_validationFocus(element.name);\r\n        return \'Please select at least one category\\n\';\r\n    } // if\r\n    return \'\';\r\n} // ff_acro_validation', ''),
(118, 7, 1, 7, 1, 'fun', 'Fun', 'Checkbox', '', '', 1, 10, 0, 150, 0, 0, 0, 0, 0, 0, 0, '1', 'Fun Rock\'N\'Roll', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(119, 7, 1, 8, 1, 'boogie', 'Boogie', 'Checkbox', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, '1', 'Boogie-Woogie', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(120, 7, 1, 9, 1, 'submit', 'Submit', 'Icon', '', '', 1, 200, 0, 130, 0, 0, 0, 0, 0, 1, 0, '{mossite}/administrator/images/save.png', '<font size=\"2\"><strong>Submit Registration</strong></font>', '{mossite}/administrator/images/save_f2.png', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(121, 7, 1, 10, 1, 'userid', 'User ID', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->id; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(122, 7, 1, 11, 1, 'recordid', 'Record ID', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $record; if ($record) return $record->id; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(123, 7, 2, 12, 1, 'message', 'Message', 'Static Text/HTML', '', '', 1, 10, 1, 50, 0, 80, 1, 0, 0, 0, 0, '<h2>You need to log in as site member to registrate for the contest.</h2>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(124, 8, 1, 1, 1, 'update', 'New/Update', 'Icon', '', '', 1, 10, 0, 10, 0, 0, 0, 0, 0, 4, 0, '{mossite}/administrator/images/edit.png', '<strong>New/Update Registration</strong>', '{mossite}/administrator/images/edit_f2.png', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_update_action(element, action)\r\n{\r\n    ff_redirectParent(\r\n        \'<?php return ff_makeFormUrl(\"RnrContestRegist\"); ?>\'\r\n    );\r\n} // ff_update_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(125, 8, 1, 2, 1, 'revoke', 'Revoke', 'Icon', '', '', 1, 220, 0, 10, 0, 0, 0, 0, 0, 4, 0, '{mossite}/administrator/images/delete.png', '<strong>Revoke Registration</strong>', '{mossite}/administrator/images/delete_f2.png', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_revoke_action(element, action)\r\n{\r\n    // check if user is logged in\r\n    var userid = ff_getElementByName(\'userid\').value;\r\n    if (userid == 0) {\r\n        alert(\'You are not logged in to the site.\');\r\n        return;\r\n    } // if\r\n\r\n    // search if userid is in the list\r\n    var listid = ff_getIdByName(\'participants\');\r\n    var qrows = ff_queryRows[listid];\r\n    var cnt = qrows.length;\r\n    var i;\r\n    var rowid = 0;\r\n    for (i = 0; i < cnt; i++)\r\n        if (qrows[i][1] == userid) {\r\n            rowid = qrows[i][0];\r\n            break;\r\n        } // if\r\n    if (rowid == 0) {\r\n        alert(\'You have currently no registration.\');\r\n        return;\r\n    } // if\r\n\r\n    if (!confirm(\'Do you really want to revoke your registration?\')) return;\r\n    ff_getElementByName(\'deleteid\').value = rowid;\r\n    ff_submitForm();\r\n} // ff_revoke_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(126, 8, 1, 3, 1, 'participants', 'Participants', 'Query List', 'ff_titlebar', 'ff_querylist;adminlist', 1, 2, 1, 60, 0, 96, 1, 20, 0, 1, 0, '0\r\n2\r\n1\r\n\r\ndata1;row0\r\ndata2;row1\r\nfooter;adminheading\r\nfooter;pagenav\r\n1', '$rows = ff_select(\r\n    \"select \".\r\n        \"c.id as id, \".\r\n        \"c.userid as userid, \".\r\n        \"u.name as user, \".\r\n        \"c.couple as couple, \".\r\n        \"c.age as age, \".\r\n        \"c.acro as acro, \".\r\n        \"c.fun as fun, \".\r\n        \"c.boogie as boogie \".\r\n    \"from #__rnr_contest as c \".\r\n    \"left join #__users as u on c.userid = u.id \".\r\n    \"order by user, couple\"\r\n);', 'ID&id&&&&&0&0&2&0&0&2&0&0&\\x3C?php return $value; ?\\x3E\r\nUser ID&userid&&&&&0&0&2&0&0&2&0&0&\\x3C?php return $value; ?\\x3E\r\nUser&user&&&&80&0&1&1&0&0&0&0&0&\\x3C?php return $value; ?\\x3E\r\nCouple&couple&&&&150&0&1&1&0&0&0&0&0&\\x3C?php return htmlentities($value); ?\\x3E\r\nAge&age&&&&40&0&1&1&0&0&0&0&0&\\x3C?php if ($value==1) return \\x22Junior\\x22; else return \\x22Adult\\x22; ?\\x3E\r\nAcro RnR&acro&&&&30&0&1&2&0&0&2&0&0&\\x3C?php\\nif ($value)\\n  return\\n    \\x27\\x3Cimg src=\\x22{mossite}/administrator/images/tick.png\\x22/\\x3E\\x27;\\n?\\x3E\r\nFun RnR&fun&&&&30&0&1&2&0&0&2&0&0&\\x3C?php\\nif ($value)\\n  return\\n    \\x27\\x3Cimg src=\\x22{mossite}/administrator/images/tick.png\\x22/\\x3E\\x27;\\n?\\x3E\r\nBoogie Woogie&boogie&&&&30&0&1&2&0&0&2&0&0&\\x3C?php\\nif ($value)\\n  return\\n    \\x27\\x3Cimg src=\\x22{mossite}/administrator/images/tick.png\\x22/\\x3E\\x27;\\n?\\x3E', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(127, 8, 1, 4, 1, 'userid', 'User ID', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->id ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(128, 8, 1, 5, 1, 'deleteid', 'Delete ID', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(129, 9, 1, 1, 1, 'name_label', 'Name Label', 'Static Text/HTML', '', '', 1, 10, 0, 10, 0, 0, 0, 0, 0, 0, 0, '<strong>Name</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(130, 9, 1, 2, 1, 'name', 'Name', 'Text', '', 'inputbox', 1, 10, 0, 30, 0, 200, 1, 30, 0, 0, 0, '<?php \r\nglobal $my; \r\nif ($my->id>0)\r\n   return $my->name; \r\nelse\r\n   return ff_getParam(\'ff_param_name\', \'\');\r\n?>', '', '', 2, NULL, 'function ff_name_init(element, condition)\r\n{\r\n<?php\r\n    // make readonly for registred users\r\n    global $my;\r\n    if ($my->id) return \"element.readOnly = true;\";\r\n?>\r\n} // ff_name_init', 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your name.'),
(131, 9, 1, 3, 1, 'section', 'Section', 'Select List', '', '', 1, 10, 0, 60, 0, 200, 0, 0, 0, 0, 0, '1', '<?php\r\n$section = ff_getParam(\'ff_param_section\', 0);\r\n$rows = ff_select(\r\n            \"select id, title from #__sections \".\r\n            \"where published = 1 order by title\"\r\n        );\r\n$flag = 0;\r\n$list = \'\';\r\nif (!is_null($rows))\r\n    foreach ($rows as $row)\r\n        if ($row->id==$section) {\r\n            $flag = 1;\r\n            $list .= \"1;$row->title;$row->id\\r\\n\";\r\n        } else\r\n            $list .= \"0;$row->title;$row->id\\r\\n\";\r\n\r\nif ($flag) return $list; \r\nreturn \"1;Select Section;\'\'\\r\\n\".$list;\r\n?>', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_section_action(element, action)\r\n{\r\n    // reload this form and pass the id of the new selected\r\n    // section so the category list can get reloaded\r\n    ff_redirectParent(\r\n        \'<?php return ff_makeSelfUrl(); ?>\'+\r\n        \'&ff_param_section=\'+element.value+\r\n        \'&ff_param_name=\'+escape(ff_getElementByName(\'name\').value)+\r\n        \'&ff_param_title=\'+escape(ff_getElementByName(\'title\').value)+\r\n        \'&ff_param_text=\'+escape(ff_getElementByName(\'text\').value)\r\n    );\r\n} // ff_section_action', 0, 0, 1, 0, 0, 1, 38, NULL, 'Please select the section.'),
(132, 9, 1, 4, 1, 'category', 'Category', 'Select List', '', '', 1, 10, 0, 90, 0, 200, 0, 0, 0, 0, 0, '1', '<?php\r\n$section  = ff_getParam(\'ff_param_section\', 0);\r\n$category = ff_getParam(\'ff_param_category\', 0);\r\n$rows = ff_select(\r\n    \"select id, title from #__categories \".\r\n    \"where section=\'$section\' and published=1\"\r\n);\r\n$list = \'\';\r\n$sel = 1;\r\nif (!is_null($rows)) {\r\n    foreach ($rows as $row) {\r\n        if ($row->id==$category) {\r\n            $list .= \"1;$row->title;$row->id\\r\\n\";\r\n            $sel = 0;\r\n        } else\r\n            $list .= \"0;$row->title;$row->id\\r\\n\";\r\n    } // foreach\r\n} // if\r\nreturn $sel.\";Select Category;\'\'\\r\\n\".$list;\r\n?>', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please select the category.');
INSERT INTO `mos_facileforms_elements` (`id`, `form`, `page`, `ordering`, `published`, `name`, `title`, `type`, `class1`, `class2`, `logging`, `posx`, `posxmode`, `posy`, `posymode`, `width`, `widthmode`, `height`, `heightmode`, `flag1`, `flag2`, `data1`, `data2`, `data3`, `script1cond`, `script1id`, `script1code`, `script1flag1`, `script1flag2`, `script2cond`, `script2id`, `script2code`, `script2flag1`, `script2flag2`, `script2flag3`, `script2flag4`, `script2flag5`, `script3cond`, `script3id`, `script3code`, `script3msg`) VALUES
(133, 9, 1, 5, 1, 'title_label', 'Title Label', 'Static Text/HTML', '', '', 1, 10, 0, 120, 0, 0, 0, 0, 0, 0, 0, '<strong>Title</strong>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(134, 9, 1, 6, 1, 'title', 'Title', 'Text', '', 'inputbox', 1, 10, 0, 140, 0, 400, 1, 100, 0, 0, 0, '<?php \r\n$title = ff_getParam(\'ff_param_title\', \'\');\r\n$title = stripslashes(stripslashes($title));\r\nreturn htmlentities($title); \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the title.'),
(135, 9, 1, 7, 1, 'text_label', 'Text Label', 'Static Text/HTML', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, '<strong>Text</strong> (Please use <a href=\"http://daringfireball.net/projects/markdown/syntax\" target=\"_blank\">Markdown</a> for text formatting!)', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(136, 9, 1, 8, 1, 'text', 'Text', 'Textarea', '', 'inputbox', 1, 10, 0, 190, 0, 400, 1, 270, 1, 0, 0, '<?php \r\n$text = ff_getParam(\'ff_param_text\', \'\');\r\n$text = stripslashes(stripslashes($text));\r\nreturn htmlentities($text); \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the text.'),
(137, 9, 1, 9, 1, 'preview_button', 'Preview Button', 'Regular Button', '', 'button', 1, 10, 0, 470, 0, 0, 0, 0, 0, 0, 0, '', 'Preview', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_preview_button_action(element, action)\r\n{\r\n    window.open(\r\n        \'{mossite}/index2.php?option=com_facileforms\'+\r\n        \'&ff_name=SubmitContentPreview\'+\r\n        \'&ff_param_title=\'+escape(ff_getElementByName(\'title\').value)+\r\n        \'&ff_param_text=\'+escape(ff_getElementByName(\'text\').value),\r\n        \'Preview\',\r\n        \'dependent,scrollbars,resizable,\'+\r\n        \'width=600,height=500,left=50,top=50\'\r\n    );\r\n} // ff_preview_button_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(138, 9, 1, 10, 1, 'submit_button', 'Submit Button', 'Regular Button', '', 'button', 1, -10, 0, 470, 0, 0, 0, 0, 0, 0, 0, '', 'Submit Content', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(139, 9, 2, 11, 1, 'registration', 'Registration', 'Static Text/HTML', '', '', 1, 0, 0, 80, 0, 500, 0, 300, 0, 0, 0, '<?php \r\n$text = \"<h4>To submit an article you need to register</h4>\";\r\nreturn $text;\r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(140, 9, 3, 12, 1, 'thankyou', 'Thank You', 'Static Text/HTML', '', '', 1, 0, 0, 30, 0, 500, 0, 100, 0, 0, 0, '<?php\r\n\r\nreturn \"<h4>Thank you for your article</h4>\";\r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(141, 10, 1, 1, 1, 'closewindow', 'Close Button', 'Regular Button', '', 'button', 1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, '', 'Close Preview', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_closewindow_action(element, action)\r\n{\r\n    window.close();\r\n} // ff_closewindow_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(142, 10, 1, 2, 1, 'text', 'Text', 'Static Text/HTML', '', '', 1, 1, 1, 20, 0, 98, 1, 0, 0, 0, 0, '<?php\r\n    $title = ff_getParam(\'ff_param_title\', \'Sample Title\', _MOS_NOTRIM|_MOS_ALLOWHTML);\r\n    $text  = ff_getParam(\'ff_param_text\',  \'Sample Text\',  _MOS_NOTRIM|_MOS_ALLOWHTML);\r\n    return \'<h2>\'.stripslashes($title).\'</h2>\'.\r\n           ff_markdown(stripslashes($text));\r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(143, 11, 1, 1, 1, 'QryAddCurrentQuota_txt', 'Add Current Quota', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Add Current Quota', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(144, 11, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(145, 11, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(146, 11, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(147, 11, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>\r\n\r\n', '', 1, 6, '', 1, 0, 2, 13, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, '', 'Please select agency.'),
(148, 11, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(149, 11, 1, 7, 0, 'subject_txt', 'Subject:', 'Static Text/HTML', '', '', 1, 10, 0, 95, 0, 0, 0, 0, 0, 0, 0, 'Subject:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(150, 11, 1, 8, 0, 'subject', 'Subject', 'Text', '', '', 1, 10, 0, 110, 0, 51, 0, 128, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the subject.'),
(151, 11, 1, 9, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 10, 0, 130, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter ticket amount.'),
(152, 11, 1, 10, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 10, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'Ticket amount to be added:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(153, 11, 1, 11, 1, 'remark', 'Remark', 'Textarea', '', '', 1, 10, 0, 195, 0, 38, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(154, 11, 1, 12, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(155, 11, 1, 13, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 290, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(156, 12, 1, 1, 1, 'QryAddPermanentQuota_txt', 'Add Permanent Quota', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Add Permanent Quota', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(157, 12, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(158, 12, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(159, 12, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(160, 12, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>', '', 1, 6, NULL, 1, 0, 2, NULL, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, NULL, 'Please select agency.'),
(161, 12, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(162, 12, 1, 7, 0, 'subject_txt', 'Subject:', 'Static Text/HTML', '', '', 1, 10, 0, 95, 0, 0, 0, 0, 0, 0, 0, 'Subject:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(163, 12, 1, 8, 0, 'subject', 'Subject', 'Text', '', '', 1, 10, 0, 110, 0, 51, 0, 128, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the subject.'),
(164, 12, 1, 9, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 10, 0, 130, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter ticket amount.'),
(165, 12, 1, 10, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 10, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'Ticket amount to be added:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(166, 12, 1, 11, 1, 'remark', 'Remark', 'Textarea', '', '', 1, 10, 0, 195, 0, 38, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(167, 12, 1, 12, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(168, 12, 1, 13, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 290, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(169, 13, 1, 1, 1, 'QryAddPermanentQuota_txt', 'Test System', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Test System', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(170, 13, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(171, 13, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(172, 13, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'BKKTG2700 - Test send email to THAI-Amadeus', '', '', 0, 6, '', 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(173, 13, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '0;BKKTG2700 - Test send email to THAI-Amadeus;helpdesk@thaiamadeus.com', '', 1, 6, '', 1, 0, 2, 13, 'ff_getElementByName(\'agent2\').value = element.value;', 1, 0, 0, 0, 0, 1, 37, '', 'Please select agency.'),
(182, 14, 1, 1, 1, 'QryAddNewAgent_txt', 'Add New Agent', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Add New Agent', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(183, 14, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(184, 14, 1, 3, 0, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(185, 14, 1, 4, 0, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(186, 14, 1, 5, 0, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>\r\n\r\n', '', 1, 6, '', 1, 0, 2, 13, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, '', 'Please select agency.'),
(174, 13, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'TEST SYSTEM', '', '', 0, 6, '', 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(175, 13, 1, 7, 0, 'subject_txt', 'Subject:', 'Static Text/HTML', '', '', 1, 10, 0, 95, 0, 0, 0, 0, 0, 0, 0, 'Subject:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(176, 13, 1, 8, 0, 'subject', 'Subject', 'Text', '', '', 1, 10, 0, 110, 0, 51, 0, 128, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the subject.'),
(177, 13, 1, 9, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 10, 0, 130, 0, 6, 0, 6, 0, 0, 0, 'XXX', '', '', 0, 6, '', 0, 0, 0, 13, '', 0, 0, 0, 0, 0, 1, 38, '', 'Please enter ticket amount.'),
(178, 13, 1, 10, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 10, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'Ticket amount to be added:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(179, 13, 1, 11, 1, 'remark', 'Remark', 'Textarea', '', '', 1, 10, 0, 195, 0, 38, 0, 5, 0, 0, 0, 'Test System', '', '', 0, 6, '', 0, 0, 0, 13, '', 0, 0, 0, 0, 0, 0, 1, '', ''),
(180, 13, 1, 12, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(181, 13, 1, 13, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 290, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(187, 14, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for add new agent has been submitted.', '', '', 0, 6, '', 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(188, 14, 1, 7, 1, 'name_txt', 'Name:', 'Static Text/HTML', '', '', 1, 10, 0, 55, 0, 0, 0, 0, 0, 0, 0, 'Name:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(189, 14, 1, 8, 1, 'name', 'Name', 'Text', '', '', 1, 10, 0, 80, 0, 50, 0, 100, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, '', 0, 0, 0, 0, 0, 1, 38, '', 'Please enter agent name.'),
(190, 14, 1, 10, 1, 'officeid', 'Office ID', 'Text', '', 'inputbox', 1, 10, 0, 130, 0, 50, 0, 100, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, '', 0, 0, 0, 0, 0, 1, 38, '', 'Please enter office id.'),
(191, 14, 1, 9, 1, 'officeid_txt', 'Office ID:', 'Static Text/HTML', '', '', 1, 10, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'Office ID:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(192, 14, 1, 14, 1, 'remark', 'Remark', 'Textarea', '', '', 1, 10, 0, 245, 0, 38, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(193, 14, 1, 13, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 220, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(194, 14, 1, 15, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 340, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(197, 15, 1, 1, 1, 'QryAddCurrentQuota_txt', 'Add Current Quota', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Add Current Quota', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(195, 14, 1, 11, 1, 'email_txt', 'Email:', 'Static Text/HTML', '', '', 1, 10, 0, 160, 0, 0, 0, 0, 0, 0, 0, 'Email:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(196, 14, 1, 12, 1, 'email', 'Email', 'Text', '', 'inputbox', 1, 10, 0, 180, 0, 50, 0, 100, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, '', 0, 0, 0, 0, 0, 1, 38, '', 'Please enter email.'),
(198, 15, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(199, 15, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(200, 15, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(201, 15, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>\r\n\r\n', '', 1, 6, '', 1, 0, 2, 13, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, '', 'Please select agency.'),
(202, 15, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(205, 15, 1, 10, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 10, 0, 130, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter ticket amount.'),
(206, 15, 1, 9, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 10, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'Ticket amount to be added:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(207, 15, 1, 12, 1, 'remark', 'Remark', 'Textarea', '', '', 1, 10, 0, 215, 0, 45, 0, 5, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, 'function ff_remark_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            var remarkv;\r\n            if (remarkv == \'shutdown\')\r\n              remarktxt = \'Kindly temporarily suspend the ticketing issuance of agent Lao Sky Airl / VETxxxxxx with immediate effect.\';\r\n            else\r\n                 if (v == \'reactivate\']\r\n                      remarktxt = \'Agents balance currently submitted with Thai Airlines, please reactivate its ticketing system with immediate effect.\';\r\n            break;\r\n    } // switch\r\n\r\nff_getElementByName(\'remark\').value = \'remarktxt\';\r\n} // ff_butikknavn_action', 1, 1, 1, 1, 1, 0, 1, '', ''),
(208, 15, 1, 11, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(209, 15, 1, 14, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 310, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(217, 15, 1, 18, 1, 'RemarkL', 'remshutdown', 'Radio Button', '', '', 0, 110, 0, 190, 0, NULL, 0, NULL, 0, 0, 0, 'Kindly temporarily suspend the ticketing issuance of this agent with immediate effect.', 'Temporary Shut Down', NULL, 0, 6, '', 1, 0, 2, 13, 'function ff_RemarkL_action(element, action)\r\n{\r\n    ff_getElementByName(\'remark\').value = element.value;\r\n} // ff_RemarkL_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(297, 22, 1, 2, 1, 'fldsel', 'Field Selection', 'Select List', '', 'inputbox', 1, 231, 0, 18, 0, 0, 0, 0, 0, 0, 0, '1', '1;0;0\r\n0;1;1\r\n0;2;2\r\n0;3;3', '', 2, NULL, 'function ff_fldsel_init(element, condition)\r\n{\r\n    for (var i = 1; i <= 3; i++) {\r\n        ff_getDivByName(\'label\'+i).style.display = \'none\';\r\n        ff_getElementByName(\'text\'+i).style.display = \'none\';\r\n    } // for\r\n} // ff_fldsel_init', 1, 0, 2, NULL, 'function ff_fldsel_action(element, action)\r\n{\r\n    for (var i = 1; i <= 3; i++) {\r\n        var disp = \'none\';\r\n        if (i <= element.value) disp = \'\';\r\n        ff_getDivByName(\'label\'+i).style.display = disp;\r\n        ff_getElementByName(\'text\'+i).style.display = disp;\r\n    } // for\r\n    if (element.value > 0) ff_switchpage(2);\r\n} // ff_fldsel_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(295, 21, 1, 2, 1, 'sel', 'My Select List', 'Select List', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, '4', '1;Select Color;none\r\n0;Red;red\r\n0;Green;green\r\n0;Blue;blue', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_sel_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_getElementByName(\'cb\').checked = element.value != \'none\';\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_sel_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(214, 15, 1, 15, 1, 'RemarkL', 'remfreetext', 'Radio Button', '', '', 0, 10, 0, 190, 0, NULL, 0, NULL, 0, 1, 0, '', 'Free Text', NULL, 0, 6, '', 1, 0, 2, 13, 'function ff_RemarkL_action(element, action)\r\n{\r\n    ff_getElementByName(\'remark\').value = element.value;\r\n} // ff_RemarkL_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(218, 15, 1, 19, 1, 'RemarkL', 'remreactivate', 'Radio Button', '', '', 0, 290, 0, 190, 0, NULL, 0, NULL, 0, 0, 0, 'Agents balance currently submitted with us, please reactivate its ticketing system with immediate effect.', 'Reactivate', NULL, 0, 6, '', 1, 0, 2, 13, 'function ff_RemarkL_action(element, action)\r\n{\r\n    ff_getElementByName(\'remark\').value = element.value;\r\n} // ff_RemarkL_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(296, 22, 1, 1, 1, 'fldsellabel', 'Field Selector Label', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Select the desired number of fields:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(332, 25, 1, 4, 1, 'display', 'display', 'Text', '', 'ff_mandatory', 1, 130, 0, 70, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(333, 25, 1, 5, 1, 'textfield', 'textfield', 'Text', '', 'ff_mandatory', 1, 10, 0, 110, 0, 40, 0, 40, 0, 0, 0, 'You must have pressed Yes', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(334, 25, 1, 6, 1, 'selected', 'selected', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hiddeninput', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_which_radio()\r\n{\r\n  var theone = 0;\r\n  for (var i = 0; i < ff_elements.length; i++) // test for the buttons\r\n    if (ff_elements[i][2]==\'amount\')  // change name to your button group\r\n      if (ff_getElementByIndex(i).checked) theone = i;\r\n      // now we know which radiobutton is checked!\r\n  \r\n  // show the value of the button in the display field\r\n  ff_getElementByName(\'display\').value = ff_getElementByIndex(theone).value;\r\n\r\n  if (ff_getElementByIndex(theone).value == \'yes\') // show the field\r\n     ff_getDivByName(\'textfield\').style.display = \'block\';\r\n  \r\n  if (ff_getElementByIndex(theone).value == \'no\')  // hide the field\r\n     ff_getDivByName(\'textfield\').style.display = \'none\';\r\n\r\n}', ''),
(271, 19, 1, 7, 0, 'subject_txt', 'Subject:', 'Static Text/HTML', '', '', 1, 10, 0, 95, 0, 0, 0, 0, 0, 0, 0, 'Subject:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(272, 19, 1, 8, 0, 'subject', 'Subject', 'Text', '', '', 1, 10, 0, 110, 0, 51, 0, 128, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the subject.'),
(273, 19, 1, 9, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 10, 0, 130, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter ticket amount.'),
(274, 19, 1, 10, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 10, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'New permanent quota:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(275, 19, 1, 11, 1, 'remark', 'Remark', 'Textarea', '', '', 1, 10, 0, 195, 0, 38, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(276, 19, 1, 12, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(277, 19, 1, 13, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 290, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(294, 21, 1, 1, 1, 'cb', 'My Checkbox', 'Checkbox', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'cb', 'Checkbox', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_cb_action(element, action)\r\n{\r\n    var options = ff_getElementByName(\'sel\').options;\r\n    switch (action) {\r\n        case \'click\':\r\n            if (element.checked) {\r\n                if (options[0].selected)\r\n                    options[1].selected = true;\r\n            } else\r\n                options[0].selected = true;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_cb_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(270, 19, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for additional permanent quota has been submitted.', '', '', 0, 6, '', 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(268, 19, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(269, 19, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>\r\n\r\n', '', 1, 6, '', 1, 0, 2, 13, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, '', 'Please select agency.'),
(267, 19, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(331, 25, 1, 3, 1, 'amount', 'amount', 'Radio Button', '', '', 1, 10, 0, 70, 0, 0, 0, 0, 0, 1, 0, 'no', 'No', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n          \r\n        case \'change\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 1, 0, 1, 0, 0, 0, NULL, NULL, ''),
(265, 19, 1, 1, 1, 'QryAddPermanentQuota_txt', 'Add Pernament Quota', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Permanent Quota Adjustment', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(266, 19, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(326, 24, 1, 4, 0, 'submit', 'submit', 'Regular Button', '', 'button', 1, 10, 0, 160, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(327, 24, 1, 5, 1, 'selected', 'selected', 'Text', '', 'ff_mandatory', 1, 10, 0, 150, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_which_radio()\r\n{\r\nvar theone = 0;\r\n    for (var i = 0; i < ff_elements.length; i++)\r\n        if (ff_elements[i][2]==\'amount\') \r\n            if (ff_getElementByIndex(i).checked) theone = i;\r\n\r\nff_getElementByName(\'selected\').value = ff_getElementByIndex(theone).value ;\r\n}', 'xxxxx'),
(328, 24, 1, 6, 0, 'verplicht', 'verplicht', 'Static Text/HTML', 'ff_mandatory', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, '&nbsp;Deze velden zijn verplicht&nbsp;', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(329, 25, 1, 1, 1, 'show', 'show', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Show textfield?', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(330, 25, 1, 2, 1, 'amount', 'amount', 'Radio Button', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'yes', 'Yes', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(359, 27, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(360, 27, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>\r\n\r\n', '', 1, 6, '', 1, 0, 2, 13, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, '', 'Please select agency.'),
(325, 24, 1, 3, 1, 'amount', 'amount', 'Radio Button', '', '', 1, 10, 0, 90, 0, 0, 0, 0, 0, 0, 0, '100', '$ 100', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            \r\n       \r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(319, 23, 1, 11, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 310, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(318, 23, 1, 9, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(323, 24, 1, 1, 1, 'amount', 'amount', 'Radio Button', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, '40', '$ 40', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(324, 24, 1, 2, 1, 'amount', 'amount', 'Radio Button', '', '', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '80', '$ 80', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n          \r\n        case \'change\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 1, 0, 1, 0, 0, 0, NULL, NULL, ''),
(298, 22, 2, 3, 1, 'label1', 'Label 1', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Text 1:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(299, 22, 2, 4, 1, 'text1', 'Text 1', 'Text', '', 'inputbox', 1, 70, 0, 20, 0, 300, 1, 255, 0, 0, 0, '', '', '', 1, 6, NULL, 1, 1, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(300, 22, 2, 5, 1, 'label2', 'Label 2', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Text 2:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(301, 22, 2, 6, 1, 'text2', 'Text 2', 'Text', '', 'inputbox', 1, 70, 0, 50, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(302, 22, 2, 7, 1, 'label3', 'Label 3', 'Static Text/HTML', '', '', 1, 10, 0, 80, 0, 0, 0, 0, 0, 0, 0, 'Text 3:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(303, 22, 2, 8, 1, 'text3', 'Text 3', 'Text', '', 'inputbox', 1, 70, 0, 80, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(304, 22, 2, 9, 1, 'back', 'Back Button', 'Regular Button', '', 'button', 1, 10, 0, 120, 0, 0, 0, 0, 0, 0, 0, '', '<< Back', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_back_action(element, action)\r\n{\r\n    ff_getElementByName(\'fldsel\').value = 0;\r\n    ff_switchpage(1);\r\n} // ff_back_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(305, 22, 2, 10, 1, 'submit', 'Submit Button', 'Regular Button', '', 'button', 1, -10, 0, 120, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_submit_action(element, action)\r\n{\r\n    var flds = ff_getElementByName(\'fldsel\').value;\r\n    var info = \'You have entered this:\\n\\n\';\r\n    for (var i = 1; i <= flds; i++) {\r\n        var e = ff_getElementByName(\'text\'+i);\r\n        if (e.value == \'\') {\r\n            alert(\'Please enter something into Text \'+i);\r\n            e.focus();\r\n            return;\r\n        } // if\r\n        info += \'Text \'+i+\': \'+e.value+\'\\n\';\r\n    } // for\r\n    info += \'Do you want to submit now?\';\r\n    if (confirm(info)) ff_validate_submit();\r\n} // ff_submit_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(309, 23, 1, 1, 1, 'QryAddCurrentQuota_txt', 'Test Add Current Quota', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Add Current Quota', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(310, 23, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(311, 23, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(312, 23, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(313, 23, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>\r\n\r\n', '', 1, 6, '', 1, 0, 2, 13, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, '', 'Please select agency.'),
(314, 23, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(315, 23, 1, 8, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 10, 0, 130, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter ticket amount.'),
(316, 23, 1, 7, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 10, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'Ticket amount to be added:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(317, 23, 1, 10, 1, 'remark', 'Remark', 'Textarea', '', '', 1, 10, 0, 215, 0, 45, 0, 5, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, 'function ff_remark_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            var remarkv;\r\n            if (remarkv == \'shutdown\')\r\n              remarktxt = \'Kindly temporarily suspend the ticketing issuance of agent Lao Sky Airl / VETxxxxxx with immediate effect.\';\r\n            else\r\n                 if (v == \'reactivate\']\r\n                      remarktxt = \'Agents balance currently submitted with Thai Airlines, please reactivate its ticketing system with immediate effect.\';\r\n            break;\r\n    } // switch\r\n\r\nff_getElementByName(\'remark\').value = \'remarktxt\';\r\n} // ff_butikknavn_action', 1, 1, 1, 1, 1, 0, 1, '', ''),
(335, 26, 1, 1, 1, 'amount', 'amount', 'Radio Button', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'yes', 'Yes', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(336, 26, 1, 2, 1, 'amount', 'amount', 'Radio Button', '', '', 1, 10, 0, 70, 0, 0, 0, 0, 0, 1, 0, 'no', 'No', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n          \r\n        case \'change\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 1, 0, 1, 0, 0, 0, NULL, NULL, ''),
(337, 26, 1, 3, 1, 'display', 'display', 'Text', '', 'ff_mandatory', 1, 130, 0, 70, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(338, 26, 1, 4, 1, 'textfield', 'textfield', 'Text', '', 'ff_mandatory', 1, 10, 0, 110, 0, 40, 0, 40, 0, 0, 0, 'You must have pressed Yes', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(339, 26, 1, 5, 1, 'selected', 'selected', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hiddeninput', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, NULL, 'function ff_which_radio()\r\n{\r\n  var theone = 0;\r\n  for (var i = 0; i < ff_elements.length; i++) // test for the buttons\r\n    if (ff_elements[i][2]==\'amount\')  // change name to your button group\r\n      if (ff_getElementByIndex(i).checked) theone = i;\r\n      // now we know which radiobutton is checked!\r\n  \r\n  // show the value of the button in the display field\r\n  ff_getElementByName(\'display\').value = ff_getElementByIndex(theone).value;\r\n\r\n  if (ff_getElementByIndex(theone).value == \'yes\') {// show the field\r\n     ff_getDivByName(\'textfield\').style.display = \'block\';\r\n     ff_getDivByName(\'check1\').style.display = \'none\';\r\n     ff_getDivByName(\'check2\').style.display = \'block\';\r\n  }\r\n  \r\n  if (ff_getElementByIndex(theone).value == \'no\') { // hide the field\r\n     ff_getDivByName(\'textfield\').style.display = \'none\';\r\n     ff_getDivByName(\'check2\').style.display = \'none\';\r\n     ff_getDivByName(\'check1\').style.display = \'block\';\r\n  }\r\n\r\n}', ''),
(340, 26, 1, 6, 1, 'check1', 'check1', 'Checkbox', '', '', 1, 10, 0, 150, 0, 0, 0, 0, 0, 0, 0, 'cb1', 'Checkbox1', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(341, 26, 1, 7, 1, 'check2', 'check2', 'Checkbox', '', '', 1, 10, 0, 150, 0, 0, 0, 0, 0, 0, 0, 'cb2', 'Checkbox2', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(345, 23, 1, 13, 1, 'amount', 'amount', 'Radio Button', '', '', 0, 110, 0, 190, 0, 0, 0, 0, 0, 0, 0, 'shutdown', 'Temporary Shut Down', '', 0, 6, '', 0, 0, 2, 13, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 1, 0, 1, 0, 0, 0, 1, '', ''),
(358, 27, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(357, 27, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(348, 23, 1, 15, 1, 'selected', 'selected', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hiddeninput', '', '', 0, 6, '', 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 2, 1, 'function ff_which_radio()\r\n{\r\n  var theone = 0;\r\n  for (var i = 0; i < ff_elements.length; i++) // test for the buttons\r\n    if (ff_elements[i][2]==\'amount\')  // change name to your button group\r\n      if (ff_getElementByIndex(i).checked) theone = i;\r\n      // now we know which radiobutton is checked!\r\n  \r\n  // show the value of the button in the display field\r\n  ff_getElementByName(\'display\').value = ff_getElementByIndex(theone).value;\r\n\r\n  if (ff_getElementByIndex(theone).value == \'freetext\')\r\n  {\r\n     ff_getElementByName(\'subject\').value = \'Your request for additional ticket quota has been submitted.\';\r\n     ff_getElementByName(\'remark\').value = \'\';\r\n     ff_getElementByName(\'textfield2\').value = \'\';\r\n  }\r\n  \r\n  if (ff_getElementByIndex(theone).value == \'shutdown\')\r\n  {\r\n     ff_getElementByName(\'subject\').value = \'Your request for temporary suspend has been submitted.\';\r\n     ff_getElementByName(\'remark\').value = \'Kindly temporarily suspend the ticketing issuance of this agent with immediate effect.\';\r\n     ff_getElementByName(\'textfield2\').value = \'suspend\';\r\n  }\r\n\r\n  if (ff_getElementByIndex(theone).value == \'reactivate\')\r\n  {\r\n     ff_getElementByName(\'subject\').value = \'Your request for reactivate has been submitted.\';\r\n     ff_getElementByName(\'remark\').value = \'Agents balance currently submitted with us, please reactivate its ticketing system with immediate effect.\';\r\n     ff_getElementByName(\'textfield2\').value = \'reactivate\';\r\n  }\r\n\r\n}', ''),
(344, 23, 1, 12, 1, 'amount', 'amount', 'Radio Button', '', '', 0, 10, 0, 190, 0, 0, 0, 0, 0, 1, 0, 'freetext', 'Free Text', '', 0, 6, '', 0, 0, 2, 13, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 0, 0, 1, 0, 0, 0, 1, '', ''),
(349, 23, 1, 14, 1, 'amount', 'amount', 'Radio Button', '', '', 0, 290, 0, 190, 0, 0, 0, 0, 0, 0, 0, 'reactivate', 'Reactivate', '', 0, 6, '', 0, 0, 2, 13, 'function ff_amount_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n          \r\n        case \'change\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_amount_action', 1, 0, 1, 0, 0, 0, 1, '', ''),
(354, 23, 1, 16, 1, 'display', 'display', 'Hidden Input', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0, 0, 0, 'Hiddeninput', NULL, NULL, 0, 6, '', 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(356, 27, 1, 1, 1, 'QryAddCurrentQuota_txt', 'Add Current Quota', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Add Current Quota', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(355, 23, 1, 17, 0, 'subject', 'subject', 'Text', '', 'inputbox', 1, 80, 0, 310, 0, 45, 0, 100, 0, 0, 0, '', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(352, 23, 1, 18, 0, 'textfield2', 'textfield2', 'Textarea', '', 'inputbox', 0, 80, 0, 330, 0, 45, 0, 2, 0, 0, 0, '', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(362, 27, 1, 8, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 115, 0, 110, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter ticket amount.'),
(363, 27, 1, 7, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 190, 0, 113, 0, 0, 0, 0, 0, 0, 0, 'tickets', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(364, 27, 1, 25, 1, 'remark', 'remark', 'Textarea', '', '', 1, 10, 0, 235, 0, 45, 0, 5, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, 'function ff_remark_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            var remarkv;\r\n            if (remarkv == \'shutdown\')\r\n              remarktxt = \'Kindly temporarily suspend the ticketing issuance of agent Lao Sky Airl / VETxxxxxx with immediate effect.\';\r\n            else\r\n                 if (v == \'reactivate\']\r\n                      remarktxt = \'Agents balance currently submitted with Thai Airlines, please reactivate its ticketing system with immediate effect.\';\r\n            break;\r\n    } // switch\r\n\r\nff_getElementByName(\'remark\').value = \'remarktxt\';\r\n} // ff_butikknavn_action', 1, 1, 1, 1, 1, 0, 1, '', ''),
(365, 27, 1, 9, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 210, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(366, 27, 1, 26, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 330, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, '', 1, 0, 0, 0, 0, 0, NULL, NULL, '');
INSERT INTO `mos_facileforms_elements` (`id`, `form`, `page`, `ordering`, `published`, `name`, `title`, `type`, `class1`, `class2`, `logging`, `posx`, `posxmode`, `posy`, `posymode`, `width`, `widthmode`, `height`, `heightmode`, `flag1`, `flag2`, `data1`, `data2`, `data3`, `script1cond`, `script1id`, `script1code`, `script1flag1`, `script1flag2`, `script2cond`, `script2id`, `script2code`, `script2flag1`, `script2flag2`, `script2flag3`, `script2flag4`, `script2flag5`, `script3cond`, `script3id`, `script3code`, `script3msg`) VALUES
(370, 27, 1, 10, 1, 'remarkr', 'remarkr', 'Radio Button', '', '', 0, 10, 0, 110, 0, 0, 0, 0, 0, 1, 0, 'addquota', 'Add Quota', '', 0, 6, '', 0, 0, 2, 13, 'function ff_remarkr_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_remarkr_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(371, 27, 1, 11, 1, 'remarkr', 'remarkr', 'Radio Button', '', '', 1, 10, 0, 140, 0, 0, 0, 0, 0, 0, 0, 'suspend', 'Temporary Suspend', '', 0, 6, '', 0, 0, 2, 13, 'function ff_remarkr_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_remarkr_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(372, 27, 1, 13, 0, 'display', 'display', 'Text', '', 'ff_mandatory', 0, 70, 0, 207, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, '', 0, 0, 0, 0, 0, 0, 1, '', ''),
(603, 27, 1, 23, 1, 'msg_office', 'msg_office', 'Text', '', 'inputbox', 1, 60, 0, 289, 0, 6, 0, 6, 0, 0, 0, 'add quota', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(374, 27, 1, 17, 1, 'selected', 'selected', 'Hidden Input', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hiddeninput', '', '', 2, 6, 'function ff_which_radio()\r\n{\r\n  var theone = 0;\r\n  for (var i = 0; i < ff_elements.length; i++) // test for the buttons\r\n    if (ff_elements[i][2]==\'remarkr\')  // change name to your button group\r\n      if (ff_getElementByIndex(i).checked) theone = i;\r\n      // now we know which radiobutton is checked!\r\n  \r\n  // show the value of the button in the display field\r\n  // ff_getElementByName(\'display\').value = ff_getElementByIndex(theone).value;\r\n\r\n  if (ff_getElementByIndex(theone).value == \'addquota\') // show the field\r\n  {\r\n     ff_getDivByName(\'message\').style.display = \'block\';\r\n     ff_getDivByName(\'message_txt\').style.display = \'block\';\r\n     ff_getElementByName(\'message\').value = \'\';\r\n     ff_getElementByName(\'remark\').value = \'\';\r\n     ff_getElementByName(\'subj_agt\').value = \'A request for additional ticket quota has been submitted.\';\r\n     ff_getElementByName(\'msg_agt\').value = \'add ticket quota\';\r\n     ff_getElementByName(\'msg_agt2\').value = \'The additional tickets will be added into agent current quota shortly.\';\r\n     ff_getElementByName(\'subj_al\').value = \'Your request for additional ticket quota has been submitted.\';\r\n     ff_getElementByName(\'msg_al\').value = \'add quota\';\r\n//     ff_getElementByName(\'msg_al\').value = \'A request to add <b>\'.ff_getSubmit(\'message\').\'</b> tickets for <b>\'.ff_getSubmit(\'agent2\').\'</b> has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\';\r\n     ff_getElementByName(\'subj_office\').value = \'A request for additional ticket quota has been submitted.\';\r\n     ff_getElementByName(\'msg_office\').value = \'add quota\';\r\n  }\r\n\r\n\r\n  if (ff_getElementByIndex(theone).value == \'suspend\')  // hide the field\r\n    {\r\n       ff_getDivByName(\'message\').style.display = \'none\';\r\n       ff_getDivByName(\'message_txt\').style.display = \'none\';\r\n       ff_getElementByName(\'message\').value = \'---\';\r\n       ff_getElementByName(\'remark\').value = \'Kindly temporarily suspend the ticketing issuance of this agent with immediate effect.\';\r\n     ff_getElementByName(\'subj_agt\').value = \'A request for temporary suspend has been submitted.\';\r\n     ff_getElementByName(\'msg_agt\').value = \'temporary suspend\';\r\n     ff_getElementByName(\'msg_agt2\').value = \'\';\r\n     ff_getElementByName(\'subj_al\').value = \'Your request for temporary suspend has been submitted.\';\r\n     ff_getElementByName(\'msg_al\').value = \'temporary suspend\';\r\n     ff_getElementByName(\'subj_office\').value = \'A request for temporary suspend has been submitted.\';\r\n     ff_getElementByName(\'msg_office\').value = \'temporary suspend\';\r\n    }\r\n\r\n  if (ff_getElementByIndex(theone).value == \'reactivate\')  // hide the field\r\n    {\r\n       ff_getDivByName(\'message\').style.display = \'none\';\r\n       ff_getDivByName(\'message_txt\').style.display = \'none\';\r\n       ff_getElementByName(\'message\').value = \'---\';\r\n       ff_getElementByName(\'remark\').value = \'Agents balance currently submitted with us, please reactivate its ticketing system with immediate effect.\';\r\n     ff_getElementByName(\'subj_agt\').value = \'A request for reactivate has been submitted.\';\r\n     ff_getElementByName(\'msg_agt\').value = \'reactivate\';\r\n     ff_getElementByName(\'msg_agt2\').value = \'\';\r\n     ff_getElementByName(\'subj_al\').value = \'Your request for reactivate has been submitted.\';\r\n     ff_getElementByName(\'msg_al\').value = \'reactivate\';\r\n     ff_getElementByName(\'subj_office\').value = \'A request for reactivate has been submitted.\';\r\n     ff_getElementByName(\'msg_office\').value = \'reactivate\';\r\n\r\n    }\r\n\r\n}', 1, 1, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, 'function ff_which_radio()\r\n{\r\n  var theone = 0;\r\n  for (var i = 0; i < ff_elements.length; i++) // test for the buttons\r\n    if (ff_elements[i][2]==\'remarkr\')  // change name to your button group\r\n      if (ff_getElementByIndex(i).checked) theone = i;\r\n      // now we know which radiobutton is checked!\r\n  \r\n  // show the value of the button in the display field\r\n  ff_getElementByName(\'display\').value = ff_getElementByIndex(theone).value;\r\n\r\n  if (ff_getElementByIndex(theone).value == \'addquota\') // show the field\r\n  {\r\n     ff_getDivByName(\'message\').style.display = \'block\';\r\n     ff_getDivByName(\'message_txt\').style.display = \'block\';\r\n     ff_getElementByName(\'remark\').value = \'\';\r\n  }\r\n\r\n\r\n  if (ff_getElementByIndex(theone).value == \'suspend\')  // hide the field\r\n    {\r\n       ff_getDivByName(\'message\').style.display = \'none\';\r\n       ff_getDivByName(\'message_txt\').style.display = \'none\';\r\n       ff_getElementByName(\'message\').value = \'XX\';\r\n       ff_getElementByName(\'remark\').value = \'Kindly temporarily suspend the ticketing issuance of this agent with immediate effect.\';\r\n    }\r\n\r\n  if (ff_getElementByIndex(theone).value == \'reactivate\')  // hide the field\r\n    {\r\n       ff_getDivByName(\'message\').style.display = \'none\';\r\n       ff_getDivByName(\'message_txt\').style.display = \'none\';\r\n       ff_getElementByName(\'message\').value = \'XX\';\r\n       ff_getElementByName(\'remark\').value = \'Agents balance currently submitted with us, please reactivate its ticketing system with immediate effect.\';\r\n    }\r\n\r\n}', 'OK'),
(375, 27, 1, 12, 1, 'remarkr', 'remarkr', 'Radio Button', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'reactivate', 'Reactivate', '', 0, 6, '', 0, 0, 2, 13, 'function ff_remarkr_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_remarkr_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(591, 27, 1, 14, 0, 'msg_agt', 'msg_agt', 'Hidden Input', NULL, NULL, 1, NULL, 0, NULL, 0, NULL, 0, NULL, 0, 0, 0, 'HiddenInput', NULL, NULL, 0, 6, '', 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(569, 29, 4, 91, 1, 'previewnext', 'Preview next page', 'Regular Button', '', 'button', 1, -2, 0, -2, 0, 0, 0, 0, 0, 0, 0, '', 'Preview', '', 0, NULL, NULL, 0, 0, 2, NULL, '// send preview of submitted data to next page\r\n   function ff_previewnext_action(element, action)\r\n   {\r\n\r\n// validate current page before preview\r\n   var error = ff_validation(ff_currentpage);\r\n   if (error != \'\') {\r\n      alert(error);\r\n      ff_validationFocus();\r\n      return;\r\n   } // if\r\n\r\n//get user input values from form fields\r\n   var terms   = ff_getElementByName(\'terms\').value;\r\n   var name    = ff_getElementByName(\'name\').value;\r\n   var email   = ff_getElementByName(\'email\').value;\r\n   var addy    = ff_getElementByName(\'addy\').value;\r\n   var zipco   = ff_getElementByName(\'zipco\').value;\r\n   var count   = ff_getElementByName(\'count\').value;\r\n   var phday   = ff_getElementByName(\'phday\').value;\r\n   var phnite  = ff_getElementByName(\'phnite\').value;\r\n   var phcell  = ff_getElementByName(\'phcell\').value;\r\n   var phfax   = ff_getElementByName(\'phfax\').value;\r\n   var altcon  = ff_getElementByName(\'altcon\').value;\r\n   var arrive  = ff_getElementByName(\'StartDate\').value;\r\n   var depart  = ff_getElementByName(\'EndDate\').value;\r\n   var adult   = ff_getElementByName(\'numadult\').value;\r\n   var child   = ff_getElementByName(\'numchild\').value;\r\n   var needs   = ff_getElementByName(\'needs\').value;\r\n   var paymnt  = ff_getElementByName(\'selectpay\').value;\r\n\r\n// write to static text element on next page\r\n    var summary = ff_getDivByName(\'summary\');\r\n    	summary.innerHTML = \'<table width=\"520\" height=\"340\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin:0px;\">\'+\r\n		\'<tr valign=\"top\"><td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Name:</b>&nbsp;&nbsp;\'+name+\'</td>\'+\r\n		\'<td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Email:</b>&nbsp;&nbsp;\'+email+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"40\" colspan=\"2\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Address:</b>&nbsp;&nbsp;\'+addy+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Postal Code:</b>&nbsp;&nbsp;\'+zipco+\'</td>\'+\r\n		\'<td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Country:</b>&nbsp;&nbsp;\'+count+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Day phone:</b>&nbsp;&nbsp;\'+phday+\'</td>\'+\r\n		\'<td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Night phone:</b>&nbsp;&nbsp;\'+phnite+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Cell phone:</b>&nbsp;&nbsp;\'+phcell+\'</td>\'+\r\n		\'<td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Fax number:</b>&nbsp;&nbsp;\'+phfax+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"40\" colspan=\"2\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Alternative contact:</b>&nbsp;&nbsp;\'+altcon+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Arrive:</b>&nbsp;&nbsp;\'+arrive+\'</td>\'+\r\n		\'<td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Depart:</b>&nbsp;&nbsp;\'+depart+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Number of adults:</b>&nbsp;&nbsp;\'+adult+\'</td>\'+\r\n		\'<td height=\"25\" width=\"50%\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Number of children:</b>&nbsp;&nbsp;\'+child+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"25\" colspan=\"2\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Payment method:</b>&nbsp;&nbsp;\'+paymnt+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"70\" colspan=\"2\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>Special requirements:</b>&nbsp;&nbsp;\'+needs+\'</td></tr>\'+\r\n		\'<tr valign=\"top\"><td height=\"15\" colspan=\"2\" style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\"><b>I understand and agree to your Terms & Conditions:</b>&nbsp;&nbsp;\'+terms+\'</td></tr>\'+\r\n		\'</table>\';\r\n\r\n// switch to next page\r\n   ff_nextpage();\r\n} // ff_previewnext_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(568, 29, 4, 90, 1, 'previous', 'Previous page', 'Regular Button', '', '', 1, 2, 0, -2, 0, 0, 0, 0, 0, 0, 0, '', 'Previous', '', 0, NULL, NULL, 0, 0, 1, 17, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(567, 29, 4, 89, 1, 'heardtext', 'Heard about', 'Static Text/HTML', '', '', 1, 5, 0, 420, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n  * How did you hear about the Heartbreak Hotel?\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(566, 29, 4, 88, 1, 'heardabout', 'I heard about you:', 'Select List', '', 'inputbox', 1, 299, 0, 418, 0, 210, 0, 0, 0, 0, 0, '1', '1;;\'\'\r\n0;From a travel publication;From a travel publication\r\n0;From a newspaper article;From a newspaper article\r\n0;From my travel agency;From my travel agency\r\n0;From an internet search;From an internet search\r\n0;From another hotel;From another hotel\r\n0;From a friend;From a friend\r\n0;From another source;From a source other than you mention', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Oops, you forgot to say how you heard about us.'),
(565, 29, 4, 87, 1, 'confaxtext', 'Contact fax', 'Static Text/HTML', '', '', 1, 55, 0, 387, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nSend me a fax\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(564, 29, 4, 86, 1, 'contact', 'Contact me:', 'Checkbox', '', '', 1, 32, 0, 386, 0, 0, 0, 0, 0, 0, 0, 'With fax confirmation', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(558, 29, 4, 80, 1, 'contact', 'Contact me:', 'Checkbox', '', '', 1, 32, 0, 308, 0, 0, 0, 0, 0, 0, 0, 'On my night phone number', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(559, 29, 4, 81, 1, 'connitetext', 'Contact night', 'Static Text/HTML', '', '', 1, 55, 0, 309, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nCall my night number\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(560, 29, 4, 82, 1, 'contact', 'Contact me:', 'Checkbox', '', '', 1, 32, 0, 334, 0, 0, 0, 0, 0, 0, 0, 'On my cell phone number', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(561, 29, 4, 83, 1, 'concelltext', 'Contact cellphone', 'Static Text/HTML', '', '', 1, 55, 0, 335, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nCall my cell phone\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(562, 29, 4, 84, 1, 'contact', 'Contact me:', 'Checkbox', '', '', 1, 32, 0, 360, 0, 0, 0, 0, 0, 0, 0, 'By regular mail', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 1, NULL, 'Oops, it looks like you forgot to select your contact method.'),
(563, 29, 4, 85, 1, 'conmailtext', 'Contact snailmail', 'Static Text/HTML', '', '', 1, 55, 0, 361, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nSend regular mail\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(556, 29, 4, 78, 1, 'contact', 'Contact me:', 'Checkbox', '', '', 1, 32, 0, 282, 0, 0, 0, 0, 0, 0, 0, 'On my day phone number', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(557, 29, 4, 79, 1, 'condaytext', 'Contact day', 'Static Text/HTML', '', '', 1, 55, 0, 283, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nCall my day number\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(554, 29, 4, 76, 1, 'contact', 'Contact me:', 'Checkbox', '', '', 1, 32, 0, 256, 0, 0, 0, 0, 0, 0, 0, 'By email provided', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(555, 29, 4, 77, 1, 'conemailtext', 'Contact email', 'Static Text/HTML', '', '', 1, 55, 0, 257, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nReply by email\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(552, 29, 4, 74, 1, 'othertext', 'Other payment', 'Static Text/HTML', '', '', 1, 55, 0, 201, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nOther payment\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(553, 29, 4, 75, 1, 'context', 'Contact method', 'Static Text/HTML', '', '', 1, 5, 0, 233, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n  * By what methods would you prefer us to contact you?\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(551, 29, 4, 73, 1, 'payment', 'Payment:', 'Radio Button', '', '', 1, 31, 0, 200, 0, 0, 0, 0, 0, 0, 0, 'By other method', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_payment_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_payment_action', 0, 0, 1, 0, 0, 1, 1, NULL, 'Oops, it looks like you forgot to select your payment method.'),
(550, 29, 4, 72, 1, 'banktext', 'Bank transfer', 'Static Text/HTML', '', '', 1, 55, 0, 175, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nBank transfer\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(548, 29, 4, 70, 1, 'cheqtext', 'Personal cheque', 'Static Text/HTML', '', '', 1, 55, 0, 149, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nPersonal cheque\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(549, 29, 4, 71, 1, 'payment', 'Payment:', 'Radio Button', '', '', 1, 31, 0, 174, 0, 0, 0, 0, 0, 0, 0, 'By bank transfer', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_payment_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_payment_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(547, 29, 4, 69, 1, 'payment', 'Payment:', 'Radio Button', '', '', 1, 31, 0, 148, 0, 0, 0, 0, 0, 0, 0, 'By personal cheque', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_payment_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_payment_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(546, 29, 4, 68, 1, 'ccardtext', 'Credit card', 'Static Text/HTML', '', '', 1, 55, 0, 123, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nCredit card\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(545, 29, 4, 67, 1, 'ccardnote', 'Credit Card Payments', 'Tooltip', '', '', 1, 131, 0, 122, 0, 0, 0, 0, 0, 0, 0, '', 'Please note that we accept all major credit cards, however due to increasing bank \r\nrates any payments made by credit card will be charged an additional 4% fee.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(544, 29, 4, 66, 1, 'payment', 'Payment:', 'Radio Button', '', '', 1, 31, 0, 122, 0, 0, 0, 0, 0, 0, 0, 'By credit card', '', '', 0, NULL, NULL, 0, 0, 2, NULL, 'function ff_payment_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n           ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_payment_action', 0, 0, 1, 0, 0, 0, NULL, NULL, ''),
(543, 29, 4, 65, 1, 'selectpay', 'Selected payment', 'Hidden Input', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(542, 29, 4, 64, 1, 'paytext', 'Payment method', 'Static Text/HTML', '', '', 1, 5, 0, 98, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n  * By what method will you wish to be paying for your accomodation?\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(541, 29, 4, 63, 1, 'confirm', 'Confirm', 'Static Text/HTML', '', '', 1, 0, 0, 26, 0, 540, 0, 100, 0, 0, 0, '<p style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n    When you have completed this page, please click the \"Preview\" button to move to a new \r\n    page where you will have a chance to review all the details you have provided before \r\n    you submit this booking enquiry. Fields marked with an asterisk (*) are compulsory.\r\n</p>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(540, 29, 4, 62, 1, 'title4', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, '<div class=\"componentheading\" style=\"margin-top:2px;\">Payment And Contact</div>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(539, 29, 3, 61, 1, 'continue', 'Continue next', 'Regular Button', '', '', 1, -2, 0, -2, 0, 0, 0, 0, 0, 0, 0, '', 'Continue', '', 0, NULL, NULL, 0, 0, 1, 34, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(538, 29, 3, 60, 1, 'previous', 'Previous page', 'Regular Button', '', '', 1, 2, 0, -2, 0, 0, 0, 0, 0, 0, 0, '', 'Previous', '', 0, NULL, NULL, 0, 0, 1, 17, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(536, 29, 3, 58, 1, 'needs', 'Special needs:', 'Textarea', '', 'inputbox', 1, 0, 0, 351, 0, 512, 1, 95, 1, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(537, 29, 3, 59, 1, 'altconote', 'Special Requirements', 'Tooltip', '', '', 1, 520, 0, 354, 0, 0, 0, 0, 0, 0, 0, '', 'Please use this field to advise of any special travel requirements \r\nyou may have, any special food needs or allergies, and any medical \r\ncondition that might be affected during your stay with us.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(534, 29, 3, 56, 1, 'checktour', 'Please arrange:', 'Checkbox', '', '', 1, 32, 0, 302, 0, 0, 0, 0, 0, 0, 0, 'Local tour guide', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(535, 29, 3, 57, 1, 'needstext', 'Requirements', 'Static Text/HTML', '', '', 1, 0, 0, 332, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nPlease advise us of any special requirements for your stay:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(533, 29, 3, 55, 1, 'tourguitext', 'Tour guide', 'Static Text/HTML', '', '', 1, 57, 0, 303, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nLocal tour guide\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(530, 29, 3, 52, 1, 'checkfish', 'Please arrange:', 'Checkbox', '', '', 1, 32, 0, 250, 0, 0, 0, 0, 0, 0, 0, 'Mini-bar in my room', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(531, 29, 3, 53, 1, 'laundrytext', 'Laundry service', 'Static Text/HTML', '', '', 1, 57, 0, 277, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nLaundry service\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(532, 29, 3, 54, 1, 'checklaund', 'Please arrange:', 'Checkbox', '', '', 1, 32, 0, 276, 0, 0, 0, 0, 0, 0, 0, 'Laundry service', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(529, 29, 3, 51, 1, 'minbartext', 'Mini bar', 'Static Text/HTML', '', '', 1, 57, 0, 251, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nMini-bar in my room\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(527, 29, 3, 49, 1, 'courtcartext', 'Courtesy car', 'Static Text/HTML', '', '', 1, 57, 0, 225, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nCourtesy car at airport\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(528, 29, 3, 50, 1, 'checkcar', 'Please arrange:', 'Checkbox', '', '', 1, 32, 0, 224, 0, 0, 0, 0, 0, 0, 0, 'Courtesy car at airport', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(526, 29, 3, 48, 1, 'arrange', 'Arrange', 'Static Text/HTML', '', '', 1, 16, 0, 196, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nWhich of the following do you require the hotel to arrange for you?\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(524, 29, 3, 46, 1, 'childtext', 'Party children', 'Static Text/HTML', '', '', 1, 16, 0, 167, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nHow many children in your party?\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(525, 29, 3, 47, 1, 'numchild', 'Children in party:', 'Text', '', 'inputbox', 1, 246, 0, 164, 0, 2, 0, 2, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(523, 29, 3, 45, 1, 'numadult', 'Adults in party:', 'Text', '', 'inputbox', 1, 246, 0, 135, 0, 2, 0, 2, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 19, NULL, 'Oops, you forgot to enter the number of adults in your travel party.'),
(522, 29, 3, 44, 1, 'adulttext', '* Party adults', 'Static Text/HTML', '', '', 1, 5, 0, 138, 0, 540, 0, 100, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n* How many adults in your travel party?\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(521, 29, 3, 43, 1, 'arrivenote', 'Select Departure Date', 'Tooltip', '', '', 1, 520, 0, 106, 0, 0, 0, 0, 0, 0, 0, '', 'Click on the \"Select\" button and a small calendar window will \r\npop up where you can choose your preferred departure date.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(519, 29, 3, 41, 1, 'EndDate', 'Depart date', 'Text', '', 'inputbox', 1, 246, 0, 106, 0, 200, 1, 29, 0, 0, 2, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Oops. it looks like you forgot to enter your departure date.'),
(520, 29, 3, 42, 1, 'SelectDate2', 'Select depart date', 'Regular Button', '', '', 1, 454, 0, 105, 0, 0, 0, 0, 0, 0, 0, '', 'Select', '', 0, NULL, NULL, 0, 0, 2, NULL, '// When button clicked, call the javascript function to show the calendar\r\n// and pass the value back to the input text field.  \r\n// NB: the value \"EndDate\" below must match the input text field name\r\n\r\nfunction ff_SelectDate2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            return showCalendar(ff_getElementByName(\'EndDate\').id, \'d-m-Y\');\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_SelectDate_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(518, 29, 3, 40, 1, 'departtext', '* Departure', 'Static Text/HTML', '', '', 1, 5, 0, 109, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n* Choose your preferred departure date:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(517, 29, 3, 39, 1, 'arrivenote', 'Select Arrival Date', 'Tooltip', '', '', 1, 520, 0, 77, 0, 0, 0, 0, 0, 0, 0, '', 'Click on the \"Select\" button and a small calendar window will \r\npop up where you can choose your preferred arrival date.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(516, 29, 3, 38, 1, 'SelectDate1', 'Select arrive date', 'Regular Button', '', '', 1, 454, 0, 76, 0, 0, 0, 0, 0, 0, 0, '', 'Select', '', 0, NULL, NULL, 0, 0, 2, NULL, '// When button clicked, call the javascript function to show the calendar\r\n// and pass the value back to the input text field.  \r\n// NB: the value \"StartDate\" below must match the input text field name\r\n\r\nfunction ff_SelectDate1_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            return showCalendar(ff_getElementByName(\'StartDate\').id, \'d-m-Y\');\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_SelectDate_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(515, 29, 3, 37, 1, 'StartDate', 'Arrive date', 'Text', '', 'inputbox', 1, 246, 0, 77, 0, 200, 1, 29, 0, 0, 2, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Oops. it looks like you forgot to enter your arrival date.'),
(514, 29, 3, 36, 1, 'arrivetext', '* Arrival', 'Static Text/HTML', '', '', 1, 5, 0, 80, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n* Choose your preferred arrival date:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(513, 29, 3, 35, 1, 'accom', 'Accomodation', 'Static Text/HTML', '', '', 1, 0, 0, 26, 0, 540, 0, 100, 0, 0, 0, '<p style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n  Please fill out the form below to indicate your accomodation requirements and the \r\n  preferred dates of your stay. Fields marked with an asterisk (*) are compulsory.\r\n</p>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(512, 29, 3, 34, 1, 'title3', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, '<div class=\"componentheading\" style=\"margin-top:2px;\">Accomodation Requirements</div>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(511, 29, 2, 33, 1, 'confirmnext', 'Continue next', 'Regular Button', '', '', 1, -2, 0, -2, 0, 0, 0, 0, 0, 0, 0, '', 'Continue', '', 0, NULL, NULL, 0, 0, 2, NULL, '// validate at least 1 number provided\r\n   function ff_confirmnext_action(element, action)\r\n   {\r\n\r\n//define element input values\r\n    var day = ff_getElementByName(\'phday\').value;\r\n    var nit = ff_getElementByName(\'phnite\').value;\r\n    var cel = ff_getElementByName(\'phcell\').value;\r\n    var fax = ff_getElementByName(\'phfax\').value;\r\n    var sub = 0 //sub total\r\n\r\n//calculates if inputs have a value then add to sub total\r\n    if (day != \'\') sub += parseInt(day);\r\n    if (nit != \'\') sub += parseInt(nit);\r\n    if (cel != \'\') sub += parseInt(cel);\r\n    if (fax != \'\') sub += parseInt(fax);\r\n\r\n// check to make sure sub has a value of more than 0\r\n   if (sub != 0) {\r\n      ff_validate_nextpage();\r\n      } else {\r\n      alert (\'Oops, it looks like you forgot to enter a phone number.\');\r\n      }//if\r\n    } // ff_confirmnext_action', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(510, 29, 2, 32, 1, 'altconote', 'Alternative Contact', 'Tooltip', '', '', 1, 520, 0, 401, 0, 0, 0, 0, 0, 0, 0, '', 'If your travel party has an alternative contact person, then \r\nplease enter their name and contact details in this field', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(483, 29, 1, 5, 1, 'terms', 'I understand and agree to your Terms & Conditions:', 'Checkbox', '', '', 1, 0, 0, 433, 0, 0, 0, 0, 0, 0, 0, 'Confirmed', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 2, NULL, 'You must confirm that you agree to our terms and conditions before you proceed.'),
(484, 29, 1, 6, 1, 'proceed', 'Proceed', 'Regular Button', '', '', 1, -2, 0, -2, 0, 0, 0, 0, 0, 0, 0, '', 'Proceed', '', 0, NULL, NULL, 0, 0, 1, 34, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(485, 29, 2, 7, 1, 'title2', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, '<div class=\"componentheading\" style=\"margin-top:2px;\">Your Contact Details</div>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(486, 29, 2, 8, 1, 'details', 'Details', 'Static Text/HTML', '', '', 1, 0, 0, 26, 0, 540, 0, 100, 0, 0, 0, '<p style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n   Please enter your personal details below so Heartbreak Hotel can contact you to \r\n   confirm your booking enquiry. Fields marked with an asterisk (*) are compulsory.\r\n</p>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(487, 29, 2, 9, 1, 'privacy', 'Email Privacy', 'Tooltip', '', '', 1, 406, 0, 111, 0, 0, 0, 0, 0, 0, 0, '', 'Please be assured that the email address you provide here will only be used for handling this contact request and Heartbreak Hotel will never pass your private details along to any 3rd party.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(488, 29, 2, 10, 1, 'nametext', '* Your name:', 'Static Text/HTML', '', '', 1, 5, 0, 83, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n* Your name:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(489, 29, 2, 11, 1, 'name', 'My name:', 'Text', '', 'inputbox', 1, 96, 0, 80, 0, 300, 1, 255, 0, 0, 0, '', '', '', 1, 6, NULL, 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Oops, it looks like you forgot to enter your name.'),
(490, 29, 2, 12, 1, 'emailtext', '* Your email:', 'Static Text/HTML', '', '', 1, 5, 0, 112, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n* Your email:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(491, 29, 2, 13, 1, 'email', 'Email address:', 'Text', '', 'inputbox', 1, 96, 0, 109, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 37, NULL, 'Oops, it looks like you forgot to enter your email.'),
(492, 29, 2, 14, 1, 'addytext', '* Address:', 'Static Text/HTML', '', '', 1, 5, 0, 141, 0, 80, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n* Address:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(493, 29, 2, 15, 1, 'addy', 'Mail address:', 'Textarea', '', 'inputbox', 1, 96, 0, 138, 0, 415, 1, 75, 1, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Oops, it looks like you forgot to enter your address.'),
(494, 29, 2, 16, 1, 'altconote', 'Regular Mail Address', 'Tooltip', '', '', 1, 520, 0, 141, 0, 0, 0, 0, 0, 0, 0, '', 'Please enter in this field the address where where we can send regular \r\nsurface mail, should we need to post information to you.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(495, 29, 2, 17, 1, 'zipcotext', 'Postal code', 'Static Text/HTML', '', '', 1, 16, 0, 227, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nPostal code:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(496, 29, 2, 18, 1, 'zipco', 'Postal code:', 'Text', '', 'inputbox', 1, 96, 0, 224, 0, 110, 1, 10, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(497, 29, 2, 19, 1, 'countext', '* Country:', 'Static Text/HTML', '', '', 1, 5, 0, 255, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n* Country:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(498, 29, 2, 20, 1, 'count', 'Country:', 'Text', '', 'inputbox', 1, 96, 0, 253, 0, 200, 1, 36, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(499, 29, 2, 21, 1, 'altconote', 'Contact Phone Number', 'Tooltip', '', '', 1, 215, 0, 283, 0, 0, 0, 0, 0, 0, 0, '', 'Please provide at least one phone number where we can contact you. \r\nWe <i>prefer</i> that you provide us an alternative contact number where we can reach \r\nyou at other times of the day, in case you reside in a different time zone to ours,\r\nand include your country calling code.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(500, 29, 2, 22, 1, 'dayphotext', 'Day phone:', 'Static Text/HTML', '', '', 1, 16, 0, 285, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nDay phone:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(501, 29, 2, 23, 1, 'phday', 'Day phone:', 'Text', '', 'inputbox', 1, 96, 0, 282, 0, 110, 1, 18, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(502, 29, 2, 24, 1, 'nitephotext', 'Night phone:', 'Static Text/HTML', '', '', 1, 16, 0, 314, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nNight phone:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(503, 29, 2, 25, 1, 'phnite', 'Night phone:', 'Text', '', 'inputbox', 1, 96, 0, 311, 0, 110, 1, 18, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(504, 29, 2, 26, 1, 'cellphotext', 'Cell phone:', 'Static Text/HTML', '', '', 1, 16, 0, 343, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nCell phone:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(505, 29, 2, 27, 1, 'phcell', 'Cell phone:', 'Text', '', 'inputbox', 1, 96, 0, 340, 0, 110, 1, 18, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(506, 29, 2, 28, 1, 'faxphotext', 'Fax number', 'Static Text/HTML', '', '', 1, 16, 0, 372, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nFax number:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(507, 29, 2, 29, 1, 'phfax', 'Fax number:', 'Text', '', 'inputbox', 1, 96, 0, 369, 0, 110, 1, 18, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(508, 29, 2, 30, 1, 'altcontext', 'Alt contact', 'Static Text/HTML', '', '', 1, 16, 0, 402, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nAlternative<br>\r\ncontact:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(509, 29, 2, 31, 1, 'altcon', 'Alternative contact:', 'Textarea', '', 'inputbox', 1, 96, 0, 399, 0, 415, 1, 46, 1, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(481, 29, 1, 3, 1, 'termscond', 'Terms & Conditions', 'Static Text/HTML', '', '', 1, 0, 0, 136, 0, 538, 0, 280, 0, 0, 0, '<IFRAME SRC=\"components/com_facileforms/uploads/termcond.html\" WIDTH=\"538px\" HEIGHT=\"280px\"\r\nTITLE=\"Heartbreak Hotel Terms And Conditions\">\r\n<!-- Alternate content for non-supporting browsers -->\r\n</IFRAME>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(482, 29, 1, 4, 1, 'policies', 'Agreement', 'Static Text/HTML', '', '', 1, 24, 0, 435, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nI understand and agree to these terms and conditions.\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(480, 29, 1, 2, 1, 'booking', 'Bookings', 'Static Text/HTML', '', '', 1, 0, 0, 26, 0, 540, 0, 65, 0, 0, 0, '<p style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nPlease use this form if you wish to enquire about availabilty of \r\naccomodation at Heartbreak Hotel. You will be asked to submit details \r\nabout your travel party, preferred arrival and departure dates, and \r\npersonal contact details, then Heartbreak Hotel will contact you at \r\ntheir earliest possible convenience to confirm your enquiry.\r\n</p>\r\n<p style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nPlease examine our terms and conditions below before you proceed.\r\n</p>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(479, 29, 1, 1, 1, 'title1', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, '<div class=\"componentheading\" style=\"margin-top:2px;\">Heartbreak Hotel Booking</div>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(595, 27, 1, 18, 1, 'subj_agt', 'subj_agt', 'Text', '', 'inputbox', 1, 25, 0, 245, 0, 6, 0, 6, 0, 0, 0, 'A request for additional ticket quota has been submitted.', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(596, 27, 1, 19, 1, 'subj_al', 'subj_al', 'Text', '', 'inputbox', 1, 25, 0, 267, 0, 6, 0, 6, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(570, 29, 5, 92, 1, 'title5', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, '<div class=\"componentheading\" style=\"margin-top:2px;\">Preview Your Booking</div>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(571, 29, 5, 93, 1, 'previewinfo', 'Preview Info', 'Static Text/HTML', '', '', 1, 0, 0, 26, 0, 540, 0, 0, 0, 0, 0, '<p style=\"font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\n   Here is a preview of the booking enquiry you are about to send to Heartbreak Hotel.\r\n   If you need to revise any of your details please click \"Edit Booking\" to return \r\n   to the previous pages, otherwise click \"Send Booking\" and our Hotel Manager will be \r\n   in touch with you shortly.\r\n</p>\r\n<hr style=\"width:100%; padding:0px; 1px solid;\">', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(572, 29, 5, 94, 1, 'summary', 'Summary Table', 'Static Text/HTML', '', '', 1, 10, 0, 105, 0, 520, 0, 340, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(573, 29, 5, 95, 1, 'editbook', 'Edit booking', 'Regular Button', '', '', 1, 2, 0, -2, 0, 0, 0, 0, 0, 0, 0, '', 'Edit Booking', '', 0, NULL, NULL, 0, 0, 1, 17, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(574, 29, 5, 96, 1, 'secimage', 'Security image', 'Static Text/HTML', '', '', 1, 121, 0, -3, 0, 0, 0, 0, 0, 0, 0, '<?php return ff_securityImage(); ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(575, 29, 5, 97, 1, 'secinfotext', 'Security info text', 'Static Text/HTML', '', '', 1, 188, 0, 462, 0, 0, 0, 0, 0, 0, 0, '<font style=\"font-size:11px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;\">\r\nEnter this security code here:\r\n</font>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(576, 29, 5, 98, 1, 'seccode', 'Security code entry', 'Text', '', 'inputbox', 1, 362, 0, -3, 0, 5, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 22, NULL, 'Oops, your security code is missing or incorrectly entered.'),
(577, 29, 5, 99, 1, 'sendbook', 'Send booking', 'Regular Button', '', '', 1, -2, 0, -2, 0, 0, 0, 0, 0, 0, 0, '', 'Send Booking', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(608, 30, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(609, 30, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(610, 30, 1, 1, 1, 'QryAddCurrentQuota_txt', 'Add Current Quota', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Add Current Quota', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(611, 30, 1, 8, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 115, 0, 110, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter ticket amount.'),
(612, 30, 1, 7, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 190, 0, 113, 0, 0, 0, 0, 0, 0, 0, 'tickets', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(613, 30, 1, 25, 1, 'remark', 'remark', 'Textarea', '', '', 1, 10, 0, 235, 0, 45, 0, 5, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, 'function ff_remark_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            var remarkv;\r\n            if (remarkv == \'shutdown\')\r\n              remarktxt = \'Kindly temporarily suspend the ticketing issuance of agent Lao Sky Airl / VETxxxxxx with immediate effect.\';\r\n            else\r\n                 if (v == \'reactivate\']\r\n                      remarktxt = \'Agents balance currently submitted with Thai Airlines, please reactivate its ticketing system with immediate effect.\';\r\n            break;\r\n    } // switch\r\n\r\nff_getElementByName(\'remark\').value = \'remarktxt\';\r\n} // ff_butikknavn_action', 1, 1, 1, 1, 1, 0, 1, '', ''),
(614, 30, 1, 9, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 210, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(615, 30, 1, 26, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 330, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, '', 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(616, 30, 1, 10, 1, 'remarkr', 'remarkr', 'Radio Button', '', '', 0, 10, 0, 110, 0, 0, 0, 0, 0, 1, 0, 'addquota', 'Add Quota', '', 0, 6, '', 0, 0, 2, 13, 'function ff_remarkr_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_remarkr_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(617, 30, 1, 11, 1, 'remarkr', 'remarkr', 'Radio Button', '', '', 1, 10, 0, 140, 0, 0, 0, 0, 0, 0, 0, 'suspend', 'Temporary Suspend', '', 0, 6, '', 0, 0, 2, 13, 'function ff_remarkr_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_remarkr_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(618, 30, 1, 13, 0, 'display', 'display', 'Text', '', 'ff_mandatory', 0, 70, 0, 207, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, 6, '', 0, 0, 0, 13, '', 0, 0, 0, 0, 0, 0, 1, '', ''),
(619, 30, 1, 23, 1, 'msg_office', 'msg_office', 'Text', '', 'inputbox', 1, 60, 0, 289, 0, 6, 0, 6, 0, 0, 0, 'add quota', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', '');
INSERT INTO `mos_facileforms_elements` (`id`, `form`, `page`, `ordering`, `published`, `name`, `title`, `type`, `class1`, `class2`, `logging`, `posx`, `posxmode`, `posy`, `posymode`, `width`, `widthmode`, `height`, `heightmode`, `flag1`, `flag2`, `data1`, `data2`, `data3`, `script1cond`, `script1id`, `script1code`, `script1flag1`, `script1flag2`, `script2cond`, `script2id`, `script2code`, `script2flag1`, `script2flag2`, `script2flag3`, `script2flag4`, `script2flag5`, `script3cond`, `script3id`, `script3code`, `script3msg`) VALUES
(620, 30, 1, 17, 1, 'selected', 'selected', 'Hidden Input', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hiddeninput', '', '', 2, 6, 'function ff_which_radio()\r\n{\r\n  var theone = 0;\r\n  for (var i = 0; i < ff_elements.length; i++) // test for the buttons\r\n    if (ff_elements[i][2]==\'remarkr\')  // change name to your button group\r\n      if (ff_getElementByIndex(i).checked) theone = i;\r\n      // now we know which radiobutton is checked!\r\n  \r\n  // show the value of the button in the display field\r\n  // ff_getElementByName(\'display\').value = ff_getElementByIndex(theone).value;\r\n\r\n  if (ff_getElementByIndex(theone).value == \'addquota\') // show the field\r\n  {\r\n     ff_getDivByName(\'message\').style.display = \'block\';\r\n     ff_getDivByName(\'message_txt\').style.display = \'block\';\r\n     ff_getElementByName(\'message\').value = \'\';\r\n     ff_getElementByName(\'remark\').value = \'\';\r\n     ff_getElementByName(\'subj_agt\').value = \'A request for additional ticket quota has been submitted.\';\r\n     ff_getElementByName(\'msg_agt\').value = \'add ticket quota\';\r\n     ff_getElementByName(\'msg_agt2\').value = \'The additional tickets will be added into agent current quota shortly.\';\r\n     ff_getElementByName(\'subj_al\').value = \'Your request for additional ticket quota has been submitted.\';\r\n     ff_getElementByName(\'msg_al\').value = \'add quota\';\r\n//     ff_getElementByName(\'msg_al\').value = \'A request to add <b>\'.ff_getSubmit(\'message\').\'</b> tickets for <b>\'.ff_getSubmit(\'agent2\').\'</b> has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\';\r\n     ff_getElementByName(\'subj_office\').value = \'A request for additional ticket quota has been submitted.\';\r\n     ff_getElementByName(\'msg_office\').value = \'add quota\';\r\n  }\r\n\r\n\r\n  if (ff_getElementByIndex(theone).value == \'suspend\')  // hide the field\r\n    {\r\n       ff_getDivByName(\'message\').style.display = \'none\';\r\n       ff_getDivByName(\'message_txt\').style.display = \'none\';\r\n       ff_getElementByName(\'message\').value = \'---\';\r\n       ff_getElementByName(\'remark\').value = \'Kindly temporarily suspend the ticketing issuance of this agent with immediate effect.\';\r\n     ff_getElementByName(\'subj_agt\').value = \'A request for temporary suspend has been submitted.\';\r\n     ff_getElementByName(\'msg_agt\').value = \'temporary suspend\';\r\n     ff_getElementByName(\'msg_agt2\').value = \'\';\r\n     ff_getElementByName(\'subj_al\').value = \'Your request for temporary suspend has been submitted.\';\r\n     ff_getElementByName(\'msg_al\').value = \'temporary suspend\';\r\n     ff_getElementByName(\'subj_office\').value = \'A request for temporary suspend has been submitted.\';\r\n     ff_getElementByName(\'msg_office\').value = \'temporary suspend\';\r\n    }\r\n\r\n  if (ff_getElementByIndex(theone).value == \'reactivate\')  // hide the field\r\n    {\r\n       ff_getDivByName(\'message\').style.display = \'none\';\r\n       ff_getDivByName(\'message_txt\').style.display = \'none\';\r\n       ff_getElementByName(\'message\').value = \'---\';\r\n       ff_getElementByName(\'remark\').value = \'Agents balance currently submitted with us, please reactivate its ticketing system with immediate effect.\';\r\n     ff_getElementByName(\'subj_agt\').value = \'A request for reactivate has been submitted.\';\r\n     ff_getElementByName(\'msg_agt\').value = \'reactivate\';\r\n     ff_getElementByName(\'msg_agt2\').value = \'\';\r\n     ff_getElementByName(\'subj_al\').value = \'Your request for reactivate has been submitted.\';\r\n     ff_getElementByName(\'msg_al\').value = \'reactivate\';\r\n     ff_getElementByName(\'subj_office\').value = \'A request for reactivate has been submitted.\';\r\n     ff_getElementByName(\'msg_office\').value = \'reactivate\';\r\n\r\n    }\r\n\r\n}', 1, 1, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, 'function ff_which_radio()\r\n{\r\n  var theone = 0;\r\n  for (var i = 0; i < ff_elements.length; i++) // test for the buttons\r\n    if (ff_elements[i][2]==\'remarkr\')  // change name to your button group\r\n      if (ff_getElementByIndex(i).checked) theone = i;\r\n      // now we know which radiobutton is checked!\r\n  \r\n  // show the value of the button in the display field\r\n  ff_getElementByName(\'display\').value = ff_getElementByIndex(theone).value;\r\n\r\n  if (ff_getElementByIndex(theone).value == \'addquota\') // show the field\r\n  {\r\n     ff_getDivByName(\'message\').style.display = \'block\';\r\n     ff_getDivByName(\'message_txt\').style.display = \'block\';\r\n     ff_getElementByName(\'remark\').value = \'\';\r\n  }\r\n\r\n\r\n  if (ff_getElementByIndex(theone).value == \'suspend\')  // hide the field\r\n    {\r\n       ff_getDivByName(\'message\').style.display = \'none\';\r\n       ff_getDivByName(\'message_txt\').style.display = \'none\';\r\n       ff_getElementByName(\'message\').value = \'XX\';\r\n       ff_getElementByName(\'remark\').value = \'Kindly temporarily suspend the ticketing issuance of this agent with immediate effect.\';\r\n    }\r\n\r\n  if (ff_getElementByIndex(theone).value == \'reactivate\')  // hide the field\r\n    {\r\n       ff_getDivByName(\'message\').style.display = \'none\';\r\n       ff_getDivByName(\'message_txt\').style.display = \'none\';\r\n       ff_getElementByName(\'message\').value = \'XX\';\r\n       ff_getElementByName(\'remark\').value = \'Agents balance currently submitted with us, please reactivate its ticketing system with immediate effect.\';\r\n    }\r\n\r\n}', 'OK'),
(606, 30, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(607, 30, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>\r\n\r\n', '', 1, 6, '', 1, 0, 2, 13, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, '', 'Please select agency.'),
(592, 27, 1, 15, 0, 'msg_al', 'msg_al', 'Hidden Input', NULL, NULL, 1, NULL, 0, NULL, 0, NULL, 0, NULL, 0, 0, 0, 'HiddenInput', NULL, NULL, 0, 6, '', 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(593, 27, 1, 16, 0, 'msg_office', 'msg_office', 'Hidden Input', NULL, NULL, 1, NULL, 0, NULL, 0, NULL, 0, NULL, 0, 0, 0, 'HiddenInput', NULL, NULL, 0, 6, '', 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(594, 27, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', '', '', 0, 6, '', 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(597, 27, 1, 20, 1, 'subj_office', 'subj_office', 'Text', '', 'inputbox', 1, 25, 0, 289, 0, 6, 0, 6, 0, 0, 0, 'A request for additional ticket quota has been submitted.', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(601, 27, 1, 21, 1, 'msg_agt', 'msg_agt', 'Text', '', 'inputbox', 1, 60, 0, 245, 0, 6, 0, 6, 0, 0, 0, 'add quota', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(602, 27, 1, 22, 1, 'msg_al', 'msg_al', 'Text', '', 'inputbox', 1, 60, 0, 267, 0, 6, 0, 6, 0, 0, 0, 'add quota', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(605, 27, 1, 24, 1, 'msg_agt2', 'msg_agt2', 'Text', '', 'inputbox', 1, 100, 0, 245, 0, 6, 0, 6, 0, 0, 0, 'The additional tickets will be added into agent current quota shortly.', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(621, 30, 1, 12, 1, 'remarkr', 'remarkr', 'Radio Button', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'reactivate', 'Reactivate', '', 0, 6, '', 0, 0, 2, 13, 'function ff_remarkr_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'change\':\r\n            ff_which_radio();\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_remarkr_action', 1, 0, 0, 0, 0, 0, 1, '', ''),
(622, 30, 1, 14, 0, 'msg_agt', 'msg_agt', 'Hidden Input', NULL, NULL, 1, NULL, 0, NULL, 0, NULL, 0, NULL, 0, 0, 0, 'HiddenInput', NULL, NULL, 0, 6, '', 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(623, 30, 1, 18, 1, 'subj_agt', 'subj_agt', 'Text', '', 'inputbox', 1, 25, 0, 245, 0, 6, 0, 6, 0, 0, 0, 'A request for additional ticket quota has been submitted.', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(624, 30, 1, 19, 1, 'subj_al', 'subj_al', 'Text', '', 'inputbox', 1, 25, 0, 267, 0, 6, 0, 6, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(625, 30, 1, 15, 0, 'msg_al', 'msg_al', 'Hidden Input', NULL, NULL, 1, NULL, 0, NULL, 0, NULL, 0, NULL, 0, 0, 0, 'HiddenInput', NULL, NULL, 0, 6, '', 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(626, 30, 1, 16, 0, 'msg_office', 'msg_office', 'Hidden Input', NULL, NULL, 1, NULL, 0, NULL, 0, NULL, 0, NULL, 0, 0, 0, 'HiddenInput', NULL, NULL, 0, 6, '', 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(627, 30, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', '', '', 0, 6, '', 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, '', ''),
(628, 30, 1, 20, 1, 'subj_office', 'subj_office', 'Text', '', 'inputbox', 1, 25, 0, 289, 0, 6, 0, 6, 0, 0, 0, 'A request for additional ticket quota has been submitted.', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(629, 30, 1, 21, 1, 'msg_agt', 'msg_agt', 'Text', '', 'inputbox', 1, 60, 0, 245, 0, 6, 0, 6, 0, 0, 0, 'add quota', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(630, 30, 1, 22, 1, 'msg_al', 'msg_al', 'Text', '', 'inputbox', 1, 60, 0, 267, 0, 6, 0, 6, 0, 0, 0, 'add quota', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(631, 30, 1, 24, 1, 'msg_agt2', 'msg_agt2', 'Text', '', 'inputbox', 1, 100, 0, 245, 0, 6, 0, 6, 0, 0, 0, 'The additional tickets will be added into agent current quota shortly.', NULL, NULL, 0, 6, '', 1, 0, 0, 13, '', 1, 0, 0, 0, 0, 0, 1, '', ''),
(632, 31, 1, 1, 1, 'QryAddCurrentQuota_txt', 'Add Current Quota', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Add Current Quota', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(633, 31, 1, 2, 1, 'From', 'From', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php global $my; return $my->username; ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(634, 31, 1, 3, 1, 'email_txt', 'Recipient:', 'Static Text/HTML', '', '', 1, 10, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Select an agency:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(635, 31, 1, 4, 1, 'agent2', 'Agent', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '<?php \r\nglobal $agent2 ; \r\nreturn $agent2 ; \r\n?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(636, 31, 1, 5, 1, 'email2', 'Email', 'Select List', '', 'inputbox', 1, 10, 0, 70, 0, 0, 0, 0, 0, 0, 0, '1', '<?php \r\nglobal $database;\r\nglobal $my;\r\nglobal $agent2;\r\nglobal $email2;\r\n\r\n$this->execPieceByName(\'ff_InitLib\');//This is important! - without this line, it doesn\'t work!\r\n\r\n/*\r\n  This php code is executed while the page is created.\r\n  It queries the userlist by sql and creates options for the select list.\r\n*/\r\n$titles = ff_select(\"select * from agent where Acc = \'$my->username\' order by Name\");\r\n\r\n$email2 = \'\';\r\n\r\nif ($titles)\r\n    foreach ($titles as $title) \r\n        $email2 .= \"0;$title->Name;$title->Email\\n\";\r\n        \r\nreturn \"1;Select agency \\r\\n\".$email2;\r\n\r\n?>', '', 1, 6, NULL, 1, 0, 2, NULL, 'function ff_email2_action(element, action)\r\n{\r\n    switch (action) {\r\n        case \'click\':\r\n            ff_getElementByName(\'agent2\').value = element.options[element.selectedIndex].text;\r\n            break;\r\n        default:;\r\n    } // switch\r\n} // ff_nazione_action', 1, 0, 0, 0, 0, 1, 37, NULL, 'Please select agency.'),
(637, 31, 1, 6, 1, 'subject', 'Subject', 'Hidden Input', '', '', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Your request for additional ticket quota has been submitted.', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(638, 31, 1, 7, 0, 'subject_txt', 'Subject:', 'Static Text/HTML', '', '', 1, 10, 0, 95, 0, 0, 0, 0, 0, 0, 0, 'Subject:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(639, 31, 1, 8, 0, 'subject', 'Subject', 'Text', '', '', 1, 10, 0, 110, 0, 51, 0, 128, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter the subject.'),
(640, 31, 1, 9, 1, 'message', 'No of Tickets', 'Text', '', 'inputbox', 1, 10, 0, 130, 0, 6, 0, 6, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter ticket amount.'),
(641, 31, 1, 10, 1, 'message_txt', 'No of Tickets:', 'Static Text/HTML', '', '', 1, 10, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'Ticket amount to be added:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(642, 31, 1, 11, 1, 'remark', 'Remark', 'Textarea', '', '', 1, 10, 0, 195, 0, 38, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(643, 31, 1, 12, 1, 'remark_txt', 'Remark:', 'Static Text/HTML', '', '', 1, 10, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'Remark:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(644, 31, 1, 13, 1, 'submit_mail', 'Submit', 'Regular Button', '', '', 1, 10, 0, 290, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(828, 42, 1, 1, 1, 'Rectangle1', 'Rectangle1', 'Rectangle', '', '', 1, 85, 0, 50, 0, 450, 0, 350, 0, 0, 0, '1px solid black', '#eeeeee', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(829, 42, 1, 2, 1, 'reissue_title', 'Title', 'Static Text/HTML', '', '', 1, 5, 0, 13, 0, 400, 0, 100, 0, 0, 0, '<center><h1 style=\"line-height:1;padding:0;margin:0;\"> Reissue Form</h1></center>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(830, 42, 1, 3, 1, 'reissue_officeid', 'Office ID', 'Text', '', '', 1, 211, 0, 68, 0, 300, 1, 9, 0, 0, 0, '', '', '', 1, 6, NULL, 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your Office ID.'),
(831, 42, 1, 4, 1, 'reissue_officeidtext', 'Office ID:', 'Static Text/HTML', '', '', 1, 95, 0, 70, 0, 0, 0, 0, 0, 0, 0, 'Office ID:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(832, 42, 1, 5, 1, 'reissue_agentname', 'Agent\'s Name', 'Text', '', '', 1, 211, 0, 98, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your agent\'s name.'),
(833, 42, 1, 6, 1, 'reissue_agentnametext', 'Agent\'s Name:', 'Static Text/HTML', '', '', 1, 95, 0, 100, 0, 0, 0, 0, 0, 0, 0, 'Company\'s Name:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(834, 42, 1, 7, 1, 'reissue_terminaladdress', 'Terminal Address', 'Text', '', '', 1, 211, 0, 128, 0, 300, 1, 8, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your terminal address.'),
(835, 42, 1, 8, 1, 'reissue_terminalnotext', 'Terminal Address:', 'Static Text/HTML', '', '', 1, 95, 0, 130, 0, 0, 0, 0, 0, 0, 0, 'Terminal Address:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(836, 42, 1, 9, 1, 'reissue_cidno', 'CID No.', 'Text', '', '', 1, 211, 0, 158, 0, 300, 1, 12, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(837, 42, 1, 10, 1, 'reissue_cidnotext', 'CID No.:', 'Static Text/HTML', '', '', 1, 95, 0, 160, 0, 0, 0, 0, 0, 0, 0, 'CID No.:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(838, 42, 1, 11, 1, 'reissue_name', 'Name', 'Text', '', '', 1, 211, 0, 188, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your name.'),
(839, 42, 1, 12, 1, 'reissue_nametext', 'Name:', 'Static Text/HTML', '', '', 1, 95, 0, 190, 0, 0, 0, 0, 0, 0, 0, 'Your Name:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(840, 42, 1, 13, 1, 'reissue_telno', 'Tel No.', 'Text', '', '', 1, 211, 0, 218, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your tel no.'),
(841, 42, 1, 14, 1, 'reissue_tellnotext', 'Tel No.:', 'Static Text/HTML', '', '', 1, 95, 0, 220, 0, 0, 0, 0, 0, 0, 0, 'Tel No.:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(842, 42, 1, 15, 1, 'reissue_email', 'Email', 'Text', '', '', 1, 211, 0, 248, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 37, NULL, 'Please enter your valid email address.'),
(843, 42, 1, 16, 1, 'reissue_emailtext', 'Email:', 'Static Text/HTML', '', '', 1, 95, 0, 250, 0, 0, 0, 0, 0, 0, 0, 'Email:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(844, 42, 1, 17, 0, 'reissue_note', 'Note', 'Tooltip', '', '', 1, 57, 0, 230, 0, 0, 0, 0, 0, 0, 0, '', 'We confirm that your email address will be only used for handling this contact request, and it will not be made availabe to any 3rd party.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(845, 42, 1, 18, 1, 'reissue_messagetext', 'Your message:', 'Static Text/HTML', '', '', 1, 95, 0, 278, 0, 0, 0, 0, 0, 0, 0, 'Your Message:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(846, 42, 1, 19, 1, 'reissue_message', 'Message', 'Textarea', '', '', 1, 100, 0, 298, 0, 410, 1, 50, 1, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(847, 42, 1, 20, 1, 'seccode', 'Security Code', 'Text', '', 'inputbox', 1, 335, 0, 362, 0, 5, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 22, NULL, ''),
(848, 42, 1, 21, 1, 'secimage', 'Security Image', 'Static Text/HTML', '', '', 1, 100, 0, 364, 0, 0, 0, 0, 0, 0, 0, '<?php return ff_securityImage(); ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(849, 42, 1, 22, 1, 'seclabel', 'Security Label', 'Static Text/HTML', '', '', 1, 177, 0, 365, 0, 0, 0, 0, 0, 0, 0, 'Enter security code:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(850, 42, 1, 23, 1, 'reissue_submit', 'Submit', 'Regular Button', '', '', 1, -131, 0, 361, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, ''),
(851, 42, 1, 24, 1, 'banner', 'banner', 'Image', '', '', 1, 0, 0, 575, 0, 640, 0, 128, 0, 0, 0, '{ff_images}/banner.gif', 'banner', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(852, 42, 1, 25, 1, 'Text1', 'Text1', 'Static Text/HTML', '', '', 1, 10, 0, 450, 0, 0, 0, 0, 0, 0, 0, '- การขอ Re issue CID นั้น ตัวแทนจำหน่ายฯ จะต้องแจ้งให้ทาง THAI-Amadeus ทราบล่วงหน้าอย่างน้อย 2 วัน ก่อนที่ตัวแทนจำหน่ายฯ จะนำเครื่องคอมพิวเตอร์ที่ลงระบบไว้ไป Format หรือกระทำการใดๆ ที่จะทำให้ระบบหายไปจากเครื่องฯ', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(853, 42, 1, 26, 1, 'Text2', 'Text2', 'Static Text/HTML', '', '', 1, 10, 0, 493, 0, 0, 0, 0, 0, 0, 0, '- ตัวแทนจำหน่ายจะต้องกรอกข้อมูลให้ครบถ้วน เพื่อความสะดวกและรวดเร็วในการ Re issue', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(854, 42, 1, 27, 1, 'Text3', 'Text3', 'Static Text/HTML', '', '', 1, 10, 0, 520, 0, 0, 0, 0, 0, 0, 0, '- ตัวแทนจำหน่ายควรทำการบันทึกหมายเลข CID และ Terminal Address ไว้ ณ เครื่องคอมพิวเตอร์ ที่ตัวแทนทำการลงระบบเรียบร้อยแล้ว เพื่อความสะดวกในการขอ Re issue หรือในกรณีที่ท่านต้องการ CID ใหม่', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(855, 42, 1, 28, 1, 'remark', 'remark', 'Static Text/HTML', '', '', 1, 10, 0, 420, 0, 0, 0, 0, 0, 0, 0, '<u>Remark</u>:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(856, 42, 1, 29, 0, 'remark2', 'remark2', 'Static Text/HTML', '', '', 1, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, '*', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(857, 43, 1, 1, 1, 'reissue_title', 'Title', 'Static Text/HTML', '', '', 1, 0, 0, 13, 0, 400, 0, 100, 0, 0, 0, '<center><h1 style=\"line-height:1;padding:0;margin:0;\">Reissue Form</h1></center>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(858, 43, 1, 2, 1, 'reissue_officeid', 'Office ID', 'Text', '', '', 1, 121, 0, 48, 0, 300, 1, 9, 0, 0, 0, '', '', '', 1, 6, NULL, 1, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your Office ID.'),
(859, 43, 1, 3, 1, 'reissue_officeidtext', 'Office ID:', 'Static Text/HTML', '', '', 1, 5, 0, 50, 0, 0, 0, 0, 0, 0, 0, 'Office ID:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(860, 43, 1, 4, 1, 'reissue_agentname', 'Agent\'s Name', 'Text', '', '', 1, 121, 0, 78, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your agent\'s name.'),
(861, 43, 1, 5, 1, 'reissue_agentnametext', 'Agent\'s Name:', 'Static Text/HTML', '', '', 1, 5, 0, 80, 0, 0, 0, 0, 0, 0, 0, 'Agent\'s Name:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(862, 43, 1, 6, 1, 'reissue_terminaladdress', 'Terminal Address', 'Text', '', '', 1, 121, 0, 108, 0, 300, 1, 8, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your terminal address.'),
(863, 43, 1, 7, 1, 'reissue_terminalnotext', 'Terminal Address:', 'Static Text/HTML', '', '', 1, 5, 0, 110, 0, 0, 0, 0, 0, 0, 0, 'Terminal Address:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(864, 43, 1, 8, 1, 'reissue_cidno', 'CID No.', 'Text', '', '', 1, 121, 0, 138, 0, 300, 1, 12, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(865, 43, 1, 9, 1, 'reissue_cidnotext', 'CID No.:', 'Static Text/HTML', '', '', 1, 5, 0, 140, 0, 0, 0, 0, 0, 0, 0, 'CID No.:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(866, 43, 1, 10, 1, 'reissue_name', 'Name', 'Text', '', '', 1, 121, 0, 168, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your name.'),
(867, 43, 1, 11, 1, 'reissue_nametext', 'Name:', 'Static Text/HTML', '', '', 1, 5, 0, 170, 0, 0, 0, 0, 0, 0, 0, 'Name:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(868, 43, 1, 12, 1, 'reissue_telno', 'Tel No.', 'Text', '', '', 1, 121, 0, 198, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 38, NULL, 'Please enter your tel no.'),
(869, 43, 1, 13, 1, 'reissue_tellnotext', 'Tel No.:', 'Static Text/HTML', '', '', 1, 5, 0, 200, 0, 0, 0, 0, 0, 0, 0, 'Tel No.:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(870, 43, 1, 14, 1, 'reissue_email', 'Email', 'Text', '', '', 1, 121, 0, 228, 0, 300, 1, 255, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 37, NULL, 'Please enter your valid email address.'),
(871, 43, 1, 15, 1, 'reissue_emailtext', 'Email:', 'Static Text/HTML', '', '', 1, 5, 0, 230, 0, 0, 0, 0, 0, 0, 0, 'Email:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(872, 43, 1, 16, 0, 'reissue_note', 'Note', 'Tooltip', '', '', 1, 57, 0, 230, 0, 0, 0, 0, 0, 0, 0, '', 'We confirm that your email address will be only used for handling this contact request, and it will not be made availabe to any 3rd party.', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(873, 43, 1, 17, 1, 'reissue_messagetext', 'Your message:', 'Static Text/HTML', '', '', 1, 5, 0, 258, 0, 0, 0, 0, 0, 0, 0, 'Your Message:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(874, 43, 1, 18, 1, 'reissue_message', 'Message', 'Textarea', '', '', 1, 10, 0, 278, 0, 410, 1, 50, 1, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(875, 43, 1, 19, 1, 'seccode', 'Security Code', 'Text', '', 'inputbox', 1, 245, 0, 342, 0, 5, 0, 5, 0, 0, 0, '', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 1, 22, NULL, ''),
(876, 43, 1, 20, 1, 'secimage', 'Security Image', 'Static Text/HTML', '', '', 1, 10, 0, 344, 0, 0, 0, 0, 0, 0, 0, '<?php return ff_securityImage(); ?>', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(877, 43, 1, 21, 1, 'seclabel', 'Security Label', 'Static Text/HTML', '', '', 1, 87, 0, 345, 0, 0, 0, 0, 0, 0, 0, 'Enter security code:', '', '', 0, NULL, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, NULL, ''),
(878, 43, 1, 22, 1, 'reissue_submit', 'Submit', 'Regular Button', '', '', 1, -41, 0, 341, 0, 0, 0, 0, 0, 0, 0, '', 'Submit', '', 0, NULL, NULL, 0, 0, 1, 36, NULL, 1, 0, 0, 0, 0, 0, NULL, NULL, '');

-- --------------------------------------------------------

--
-- Table structure for table `mos_facileforms_forms`
--

CREATE TABLE `mos_facileforms_forms` (
  `id` int(11) NOT NULL,
  `package` varchar(30) NOT NULL DEFAULT '',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `published` tinyint(1) NOT NULL DEFAULT '0',
  `runmode` tinyint(1) NOT NULL DEFAULT '0',
  `name` varchar(30) NOT NULL DEFAULT '',
  `title` varchar(50) NOT NULL DEFAULT '',
  `description` text,
  `class1` varchar(30) DEFAULT NULL,
  `class2` varchar(30) DEFAULT NULL,
  `width` int(11) NOT NULL DEFAULT '0',
  `widthmode` tinyint(1) NOT NULL DEFAULT '0',
  `height` int(11) NOT NULL DEFAULT '0',
  `heightmode` tinyint(1) NOT NULL DEFAULT '0',
  `pages` int(11) NOT NULL DEFAULT '1',
  `emailntf` tinyint(1) NOT NULL DEFAULT '1',
  `emaillog` tinyint(1) NOT NULL DEFAULT '1',
  `emailxml` tinyint(1) NOT NULL DEFAULT '0',
  `emailadr` varchar(50) DEFAULT NULL,
  `dblog` tinyint(1) NOT NULL DEFAULT '1',
  `script1cond` tinyint(1) NOT NULL DEFAULT '0',
  `script1id` int(11) DEFAULT NULL,
  `script1code` text,
  `script2cond` tinyint(1) NOT NULL DEFAULT '0',
  `script2id` int(11) DEFAULT NULL,
  `script2code` text,
  `piece1cond` tinyint(1) NOT NULL DEFAULT '0',
  `piece1id` int(11) DEFAULT NULL,
  `piece1code` text,
  `piece2cond` tinyint(1) NOT NULL DEFAULT '0',
  `piece2id` int(11) DEFAULT NULL,
  `piece2code` text,
  `piece3cond` tinyint(1) NOT NULL DEFAULT '0',
  `piece3id` int(11) DEFAULT NULL,
  `piece3code` text,
  `piece4cond` tinyint(1) NOT NULL DEFAULT '0',
  `piece4id` int(11) DEFAULT NULL,
  `piece4code` text,
  `prevmode` tinyint(1) NOT NULL DEFAULT '2',
  `prevwidth` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=tis620;

--
-- Dumping data for table `mos_facileforms_forms`
--

INSERT INTO `mos_facileforms_forms` (`id`, `package`, `ordering`, `published`, `runmode`, `name`, `title`, `description`, `class1`, `class2`, `width`, `widthmode`, `height`, `heightmode`, `pages`, `emailntf`, `emaillog`, `emailxml`, `emailadr`, `dblog`, `script1cond`, `script1id`, `script1code`, `script2cond`, `script2id`, `script2code`, `piece1cond`, `piece1id`, `piece1code`, `piece2cond`, `piece2id`, `piece2code`, `piece3cond`, `piece3id`, `piece3code`, `piece4cond`, `piece4id`, `piece4code`, `prevmode`, `prevwidth`) VALUES
(1, 'Samples', 1, 1, 0, 'SampleContactForm', 'Contact form', 'This sample is a basic contact form everybody should be able to master. It does not require any scripting skills to make such a form.', '', '', 400, 0, 350, 0, 1, 1, 1, 0, '', 0, 0, NULL, NULL, 1, 31, NULL, 1, 11, NULL, 0, NULL, NULL, 2, NULL, '// load the standard FacileForms library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// check attempt to post with invalid security code\r\nif (ff_getSubmit(\'seccode\') != $_SESSION[\'ff_seccode\']) {\r\n    $this->status = 1000; // our custom error code\r\n    $this->message = \"Invalid security code.\";\r\n} // if', 0, NULL, NULL, 2, 0),
(2, 'Samples', 2, 1, 0, 'SampleTabNavigation', 'Using tabs for page navigation', 'Demonstrates how you can build a dialog with tabs for each page. It also shows another reasonable use of rectangles besides framing and highlighting contents.', '', '', 470, 0, 420, 0, 3, 0, 0, 0, '', 0, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, 0),
(3, 'Samples', 3, 1, 0, 'SampleCountrySelect', 'Country selection', 'Shows the interaction between logically connected select lists, as well as dynamic replacement of select list options. Not really stuff for rookies.', '', '', 320, 0, 240, 0, 1, 0, 0, 0, '', 0, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, 0),
(4, 'Samples', 4, 1, 0, 'SamplePieceApp', 'Piece sending mail', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 350, 0, 400, 0, 1, 0, 0, 0, '', 0, 0, NULL, NULL, 1, 29, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, NULL, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname;\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email\'),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, NULL, 2, 0),
(5, 'Samples', 5, 1, 0, 'SampleEmbeddedCode', 'Embedded php code', 'Demonstrates the use of embedded php code in various ways.', '', '', 180, 0, 300, 0, 1, 0, 1, 0, '', 0, 2, NULL, 'function ff_SampleEmbeddedCode_init()\r\n{\r\n    alert(\r\n        \'This sample shows some applications of embedded php code:\\n\'+\r\n        \'\\n\'+\r\n        \'- Code in static text as personalized welcome\\n\'+\r\n        \'- Options of the select list are populated by a sql query\\n\'+\r\n        \'- A hidden input submitting the user id\\n\'+\r\n        \'\\n\'+\r\n        \'Embedded php code can be used in parameters of forms, elements \'+\r\n        \'and scripts that have a multiline textarea for editing.\'\r\n    );\r\n} // ff_SampleEmbeddedCode_init', 1, 29, NULL, 1, 11, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, 0),
(6, 'Samples', 6, 1, 0, 'SamplePizzaShop', 'Pizza shop', 'A complete pizza order form with all bells and whistles. Only the selection of pizzas is very limited. And dont blame me if it doesn\'t arrive in time ;)', '', '', 400, 0, 400, 0, 6, 0, 1, 0, '', 1, 0, NULL, NULL, 2, NULL, 'function ff_SamplePizzaShop_submitted(status)\r\n{\r\n    if (status != 0) {\r\n        alert(\r\n            \"Sorry, but submission of you entries unfotunately failed.\\n\"+\r\n            \"We will check this problem and hope on your understanding.\\n\"+\r\n            \"You will be redirected to the home page now.\"\r\n        );\r\n        ff_returnHome();\r\n    } else\r\n        ff_switchpage(ff_getPageByName(\'pst_picture\')); // thank you\r\n} // ff_SamplePizzaShop_submitted', 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, 0),
(7, 'Samples', 7, 1, 0, 'RnrContestRegist', 'Rock\'N\'Roll dance contest registration', 'This is the registration form for the Rock\'N\'Roll dance contest. Every site member can make one registration only in this sample. Existing registrations can be edited.', '', '', 350, 0, 200, 0, 2, 0, 1, 1, '', 0, 2, NULL, 'function ff_RnrContestRegist_init()\r\n{\r\n    if (ff_getElementByName(\'userid\').value==\'0\') ff_switchpage(2);\r\n} // ff_RnrContestRegist_init', 0, NULL, NULL, 2, NULL, '//+trace dis\r\n\r\n// load the standard form creation utilities\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// create table if it does not yet exist\r\nff_query(\r\n    \"CREATE TABLE IF NOT EXISTS `#__rnr_contest` (\".\r\n        \"`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,\".\r\n        \"`userid` INT( 11 ) DEFAULT \'0\' NOT NULL ,\".\r\n        \"`couple` VARCHAR( 50 ) NOT NULL ,\".\r\n        \"`age` TINYINT( 1 ) DEFAULT \'0\' NOT NULL ,\".\r\n        \"`acro` TINYINT( 1 ) DEFAULT \'0\' NOT NULL ,\".\r\n        \"`fun` TINYINT( 1 ) DEFAULT \'0\' NOT NULL ,\".\r\n        \"`boogie` TINYINT( 1 ) DEFAULT \'0\' NOT NULL,\".\r\n        \"PRIMARY KEY  (`id`)\".\r\n    \") TYPE=MyISAM AUTO_INCREMENT=1\"\r\n);\r\n\r\n// load old record if any\r\nglobal $record, $my;\r\n$rows = ff_select(\"select * from `#__rnr_contest` where userid=$my->id\");\r\nif (count($rows)) {\r\n   $record = $rows[0];\r\n   ff_setChecked(\'age\', $record->age);\r\n   if ($record->acro  ) ff_setChecked(\'acro\'  ,\'1\');\r\n   if ($record->fun   ) ff_setChecked(\'fun\'   ,\'1\');\r\n   if ($record->boogie) ff_setChecked(\'boogie\',\'1\');\r\n} else\r\n   $record = NULL;', 0, NULL, NULL, 2, NULL, '//+trace dis\r\nglobal $my; \r\n\r\n// load the standard submit utilities\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// retrieve the submitted values\r\n$recordid = ff_getSubmit(\'recordid\');\r\n$userid   = $my->id;\r\n$couple   = ff_getSubmit(\'couple\', \'\');\r\n$age      = ff_getSubmit(\'age\',    0);\r\n$acro     = ff_getSubmit(\'acro\',   0);\r\n$fun      = ff_getSubmit(\'fun\',    0);\r\n$boogie   = ff_getSubmit(\'boogie\', 0);\r\n\r\nif (is_numeric($recordid))\r\n    // update existing record\r\n    ff_query(\r\n        \"update `#__rnr_contest` \".\r\n           \"set `couple` = \'$couple\', \".\r\n               \"`age`    = \'$age\', \".\r\n               \"`acro`   = \'$acro\', \".\r\n               \"`fun`    = \'$fun\', \".\r\n               \"`boogie` = \'$boogie\' \".\r\n         \"where `id`     = $recordid\"\r\n    );\r\nelse\r\n    // save new record\r\n    ff_query(\r\n        \"insert into `#__rnr_contest` \".\r\n            \"(`userid`, `couple`, `age`, `acro`, `fun`, `boogie`) \".\r\n        \"values (\'$userid\', \'$couple\', \'$age\', \'$acro\', \'$fun\', \'$boogie\')\"\r\n    );', 2, NULL, 'ff_redirectForm(\"RnrContestList\");', 2, 0),
(8, 'Samples', 8, 1, 0, 'RnrContestList', 'Rock\'N\'Roll dance contest partipicant list', 'Partipicants list for the Rock\'N\'Roll dance contest. \r\n(Please run registration first in order to automaticly create tables)', '', '', 95, 1, 10, 1, 1, 0, 1, 0, '', 0, 0, NULL, NULL, 0, NULL, NULL, 1, 11, NULL, 0, NULL, NULL, 2, NULL, '//+trace dis\r\n\r\n// load the standard submit utilities\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// get the userid to delete\r\n$deleteid = 0;\r\nforeach ($this->submitdata as $data)\r\n    if ($data[_FF_DATA_NAME]==\'deleteid\') {\r\n        $deleteid = $data[_FF_DATA_VALUE];\r\n        break;\r\n    } // if\r\n\r\n// delete the record if userid found\r\nif ($deleteid > 0)\r\n    ff_query(\"delete from `#__rnr_contest` where id=$deleteid\");', 0, NULL, NULL, 2, 450),
(9, 'Samples', 9, 1, 0, 'SubmitContent', 'Submit Content', 'This form shows how content can be submitted by users.', 'content_outline', '', 420, 0, 500, 0, 3, 0, 1, 0, '', 0, 0, NULL, NULL, 0, NULL, NULL, 2, NULL, '//+trace dis\r\n\r\n// configuration variables\r\n$register = 1;  // 0 = public access, 1 = registred users only\r\n\r\n// declare globals used in this piece\r\nglobal $my;\r\n\r\n// load the standard piece library\r\n$this->execPieceByName(\'ff_InitLib\');  \r\n\r\n// check for registred users\r\nif ($register && !$my->id) $this->page = 2;', 0, NULL, NULL, 2, NULL, '//+trace dis\r\n\r\n// configuration variables\r\n$moderate = 1;  // 0 = publish directly, 1 = leave unpublished\r\n\r\n// declare globals used in this piece\r\nglobal $Itemid, $my;\r\n\r\n// load the standard piece library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// get values from submission\r\n$name     = ff_getSubmit(\'name\',     \'\');\r\n$title    = ff_getSubmit(\'title\',    \'\');\r\n$text     = ff_getSubmit(\'text\',     \'\');\r\n$section  = ff_getSubmit(\'section\',  0);\r\n$category = ff_getSubmit(\'category\', 0);\r\n\r\n// get the userid of a superadministrator. the article will be created\r\n// by the superadmin, but use as author alias the name of the person\r\n// who submitted it.\r\n$creator = ff_select(\"select id, email, sendEmail from #__users where gid=25\");\r\n$creator = $creator[0]; // take first row\r\n\r\n// format text, date and state\r\n$text = ff_markdown($text);\r\n$date = date( \"Y-m-d H:i:s\" );\r\nif ($moderate) $state = 0; else $state = 1;\r\n\r\n// save new submission into #__content table\r\nff_query(\r\n    \"insert into #__content \".\r\n        \"(title, title_alias, introtext, state, sectionid, \".\r\n         \"catid, created, created_by, created_by_alias) \".\r\n    \"values \".\r\n        \"(\'$title\', \'$title\', \'$text\', \'$state\', \'$section\', \".\r\n         \"\'$category\', \'$date\', \'$creator->id\', \'$name\')\"\r\n);\r\n\r\n// get section and cat name\r\n$section_name = ff_selectValue(\"select title from #__sections where id=\'$section\'\");\r\n$cat_name = ff_selectValue(\"select title from #__categories where id=\'$category\'\");\r\n\r\n// update #__messages table for backend notices\r\n$subject = \"New content submitted\";\r\n$message = \"A new product was submitted by [$name] \".\r\n           \"titled [$title] in section [$section_name] and category [$cat_name]\";\r\nff_query(\r\n    \"insert into #__messages (user_id_from, user_id_to, date_time, subject,message) \".\r\n    \"values (\'$my->id\', \'$creator->id\', \'$date\', \'$subject\',\'$message\')\"\r\n);\r\n\r\n// send a mail notice to superadmin\r\nif ($creator->sendEmail) {\r\n    // if sent by unregistred we dont know the email\r\n    if ($my->id) $from = $my->email; else $from = \"somebody@unknown.com\";\r\n    $this->sendMail(\r\n        $from,              // senders email\r\n        $name,              // senders name\r\n        $creator->email,    // recipient email\r\n        $subject,           // subject line\r\n        $message            // the message\r\n    );\r\n} // if\r\n\r\nff_redirectSelf(\"&ff_page=3\"); // show thank you page', 0, NULL, NULL, 2, 0),
(10, 'Samples', 10, 1, 0, 'SubmitContentPreview', 'Submit Content Preview', 'This is the preview form for the content submit piece. \r\nIt is not meant to be called directly, but by form\r\nSubmitContent.', 'content_outline', '', 100, 1, 10, 1, 1, 0, 1, 0, '', 0, 0, NULL, NULL, 0, NULL, NULL, 1, 11, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, 400),
(11, 'Tickets', 11, 0, 0, 'QryAddCurrentQuotaOriginal', 'Add Current Quota Original', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'helpdesk@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from an airline to add your ticket quota of \'.ff_getSubmit(\'message\').\' tickets has been received.<br>\'.\'The additional tickets will be added into your current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'rungkiat@thaiamadeus.com\',\'piyabute@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to add ticket quota has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br><The additional tickets will be added into agent current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add <b>\'.ff_getSubmit(\'message\').\'</b> tickets for <b>\'.ff_getSubmit(\'agent2\').\'</b> has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',             // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n    array( \'rungkiat@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(12, 'Tickets', 12, 0, 0, 'QryAddPermanentQuotaOriginal', 'Add Permanent Quota Original', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'piyabute@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from an airline to add your ticket quota of \'.ff_getSubmit(\'message\').\' tickets has been received.<br>\'.\'The additional tickets will be added into your permanent quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for \'.$email2.\' has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',             // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(13, 'Tickets', 14, 1, 0, 'QryTestSystem', 'Test System', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'piyabute@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message - Test System\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from an airline to add your ticket quota of \'.ff_getSubmit(\'message\').\' tickets has been received.<br>\'.\'The additional tickets will be added into your permanent quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message - Test System\',   // name of submitter (1)\r\n    array( \'helpdesk@thaiamadeus.com\',\'piyabute@thaiamadeus.com\' ),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from an airline to add your ticket quota of \'.ff_getSubmit(\'message\').\' tickets for \'.ff_getSubmit(\'agent2\').\' has been received.<br>\'.\'The additional tickets will be added into your current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message - Test System\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for BKKTG2700 - Test send email to THAI-Amadeus has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',             // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(14, 'Tickets', 13, 1, 0, 'QryAddNewAgent', 'Add New Agent', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'piyabute@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request for add new agent of <b>\'.ff_getSubmit(\'name\').\'</b> has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',             // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'helpdesk@thaiamadeus.com\',\'etdirect@thaiamadeus.com\',\'piyabute@thaiamadeus.com\' ),             // email of recipient (2)\r\n    \'A request from \'.$mosConfig_fromname.\' for add new agent\',            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> for add new agent to E-Ticket Direct adding current quota website has been received.<br><br>Name : <b>\'.ff_getSubmit(\'name\').\'</b><br>Office ID : <b>\'.ff_getSubmit(\'officeid\').\'</b><br>Email : <b>\'.ff_getSubmit(\'email\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n    array( \'rungkiat@thaiamadeus.com\',\'nattapol@thaiamadeus.com\',\'helpdesk@thaiamadeus.com\',\'piyabute@thaiamadeus.com\' ),             // email of recipient (2)\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(15, 'Tickets', 15, 0, 0, 'QryAddCurrentQuotaOriginal2', 'Add Current Quota Original 2', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'helpdesk@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from an airline to add your ticket quota of \'.ff_getSubmit(\'message\').\' tickets has been received.<br>\'.\'The additional tickets will be added into your current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'rungkiat@thaiamadeus.com\',\'piyabute@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to add ticket quota has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br><The additional tickets will be added into agent current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add <b>\'.ff_getSubmit(\'message\').\'</b> tickets for <b>\'.ff_getSubmit(\'agent2\').\'</b> has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',             // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n    array( \'rungkiat@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(30, 'Tickets', 25, 0, 0, 'TestQryAddCurrentQuota2', 'Test Add Current Quota', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'piyabute@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2, $subj_agt, $subj_al, $subj_office, $msg_agt, $msg_agt2, $msg_al, $msg_office; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail to agent\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subj_agt\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to <b>\'.ff_getSubmit(\'msg_agt\').\'</b> has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br><br>\'.ff_getSubmit(\'msg_agt2\').\'<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n// send the mail to office\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'piyabute@thaiamadeus.com\',\'nattapol@thaiamadeus.com\', ),             // email of recipient (2)\r\n    ff_getSubmit(\'subj_office\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to <b>\'.ff_getSubmit(\'msg_office\').\'</b> has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br><br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n// send the mail to airline\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subj_al\'),            // subject of the mail (3)\r\n    \'A request to <b>\'.ff_getSubmit(\'msg_al\').\'</b> has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br><br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',    // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n    array( \'rungkiat@thaiamadeus.com\',\'piyabute@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),            // email of recipient (2)\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n\r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(19, 'Tickets', 16, 1, 0, 'QryAddPermanentQuota', 'Add Permanent Quota', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'piyabute@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from an airline to add your permanent quota of \'.ff_getSubmit(\'message\').\' tickets has been received.<br>\'.\'The additional tickets will be added into your permanent quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'helpdesk@thaiamadeus.com\',\'etdirect@thaiamadeus.com\' ),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to add permanent quota has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br><The additional tickets will be added into agent permanent quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add <b>\'.ff_getSubmit(\'message\').\'</b> tickets for <b>\'.ff_getSubmit(\'agent2\').\'</b> has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',             // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n    array( \'rungkiat@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(24, 'rb_sample', 20, 1, 0, 'test1', 'test1', '', 'content_outline', '', 100, 1, 400, 0, 1, 0, 1, 0, '', 0, 2, NULL, 'function ff_test1_init()\r\n{\r\nff_getElementByName(\'t_amount\').disabled = \'true\';\r\n} // ff_test1_init', 1, 29, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, NULL, '// load the standard submit utilities\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\nprint ff_getsubmit(\'amount\');\r\n\r\nexit;', 0, NULL, NULL, 2, 400),
(25, 'rb_sample', 21, 1, 0, 'test2', 'test2', 'This sample displays (or not) a text field based on which radiobutton was selected...', 'content_outline', '', 100, 1, 400, 0, 1, 0, 1, 0, '', 0, 2, NULL, 'function ff_test2_init()\r\n{\r\n//ff_getElementByName(\'textfield\').visible = \'false\';\r\nff_getDivByName(\'textfield\').style.display = \'none\';\r\n} // ff_test1_init', 1, 29, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, NULL, '// load the standard submit utilities\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\nprint ff_getsubmit(\'amount\');\r\n\r\nexit;', 0, NULL, NULL, 2, 400);
INSERT INTO `mos_facileforms_forms` (`id`, `package`, `ordering`, `published`, `runmode`, `name`, `title`, `description`, `class1`, `class2`, `width`, `widthmode`, `height`, `heightmode`, `pages`, `emailntf`, `emaillog`, `emailxml`, `emailadr`, `dblog`, `script1cond`, `script1id`, `script1code`, `script2cond`, `script2id`, `script2code`, `piece1cond`, `piece1id`, `piece1code`, `piece2cond`, `piece2id`, `piece2code`, `piece3cond`, `piece3id`, `piece3code`, `piece4cond`, `piece4id`, `piece4code`, `prevmode`, `prevwidth`) VALUES
(23, 'Tickets', 19, 0, 0, 'TestQryAddCurrentQuota', 'Test Add Current Quota', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'piyabute@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail to agent\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from an airline to add your ticket quota of \'.ff_getSubmit(\'message\').\' tickets has been received.<br>\'.\'The additional tickets will be added into your current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n// send the mail to office\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'rungkiat@thaiamadeus.com\',\'piyabute@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to add ticket quota has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'amount\').\'</b><br><br><The additional tickets will be added into agent current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n// send the mail to airline\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add <b>\'.ff_getSubmit(\'message\').\'</b> tickets for <b>\'.ff_getSubmit(\'agent2\').\'</b> has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',             // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n    array( \'rungkiat@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n\r\n\r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(21, '', 17, 1, 0, 'CbSelSamp', 'Checkbox - Select - Sample', 'Show interaction between checkbox and select list', '', '', 200, 0, 200, 0, 1, 1, 1, 0, '', 1, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, 0),
(22, 'Test', 18, 1, 0, 'varinput', 'Variable Inputs', '', 'content_outline', '', 400, 0, 160, 0, 2, 0, 1, 0, '', 0, 0, NULL, NULL, 1, 29, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, 0),
(26, 'rb_sample', 22, 1, 0, 'test3', 'test3', 'This sample displays (or not) a checkbox based on which radiobutton was selected...', 'content_outline', '', 100, 1, 400, 0, 1, 0, 1, 0, '', 0, 2, NULL, 'function ff_test3_init()\r\n{\r\n//ff_getElementByName(\'textfield\').visible = \'false\';\r\nff_getDivByName(\'textfield\').style.display = \'none\';\r\nff_getDivByName(\'check2\').style.display = \'none\';\r\n} // ff_test1_init', 1, 29, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, NULL, '// load the standard submit utilities\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\nprint ff_getsubmit(\'amount\');\r\n\r\nexit;', 0, NULL, NULL, 2, 400),
(27, 'Tickets', 23, 1, 0, 'QryAddCurrentQuota', 'Add Current Quota', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'piyabute@thaiamadeus.com', 2, 0, 28, '', 1, 29, '', 0, 3, '', 0, NULL, '', 2, 4, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2, $subj_agt, $subj_al, $subj_office, $msg_agt, $msg_agt2, $msg_al, $msg_office; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail to agent\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subj_agt\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to <b>\'.ff_getSubmit(\'msg_agt\').\'</b> has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br><br>\'.ff_getSubmit(\'msg_agt2\').\'<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n// send the mail to office\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'helpdesk@thaiamadeus.com\',\'etdirect@thaiamadeus.com\',\'piyabute@thaiamadeus.com\' ),             // email of recipient (2)\r\n    ff_getSubmit(\'subj_office\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to <b>\'.ff_getSubmit(\'msg_office\').\'</b> has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br><br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n// send the mail to airline\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subj_al\'),            // subject of the mail (3)\r\n    \'A request to <b>\'.ff_getSubmit(\'msg_al\').\'</b> has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br><br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',    // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n    array( \'rungkiat@thaiamadeus.com\',\'piyabute@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),            // email of recipient (2)\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n\r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, '', 2, 0),
(29, 'Hotel Booking Form', 24, 1, 0, 'Hotel_Booking', 'Heartbreak Hotel Bookings', 'Sample booking form for the Heartbreak Hotel, with preview page. \r\nThis form would not have been possible without the tech support \r\nand coding genius of Boldee and FVDS from Facile Forms Forums.', '', '', 540, 0, 480, 0, 5, 2, 1, 0, 'manager@heartbreakhotel.com', 1, 2, NULL, '// Custom script initialise form\r\nfunction ff_Hotel_Booking_init()\r\n{\r\n} // ff_Hotel_Booking_init\r\n\r\n// Custom script get radio button selection\r\nfunction ff_getpayment_init()\r\n{\r\nff_getElementByName(\'t_payment\').disabled = \'true\';\r\n} // ff_getpayment_init\r\n\r\nfunction ff_which_radio()\r\n{\r\nvar theone = 0;\r\n    for (var i = 0; i < ff_elements.length; i++)\r\n        if (ff_elements[i][2]==\'payment\') \r\n            if (ff_getElementByIndex(i).checked) theone = i;\r\n\r\nff_getElementByName(\'selectpay\').value = ff_getElementByIndex(theone).value ;\r\n}', 1, 29, NULL, 2, NULL, '// load the standard FacileForms library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// include the javascript functions for dates\r\necho (\'\r\n  <script language=\"javascript\" src=\"{mossite}/includes/js/mambojavascript.js\" type=\"text/javascript\"></script>\r\n  <script type=\"text/javascript\" src=\"{mossite}/includes/js/jscalendar-1.0/calendar_stripped.js\"></script>\r\n  <script type=\"text/javascript\" src=\"{mossite}/includes/js/jscalendar-1.0/calendar-setup_stripped.js\"></script>\r\n  <script type=\"text/javascript\" src=\"{mossite}/includes/js/jscalendar-1.0/lang/calendar-en.js\"></script>\r\n  <link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"{mossite}/includes/js/jscalendar-1.0/calendar-system.css\">\r\n\');', 2, NULL, '// include to configure calendar behaviour\r\necho (\'\r\n  <script type=\"text/javascript\">\r\n    Calendar.setup(\r\n      {\r\n        inputField  : \"ff_elem647\",    // ID of the input field\r\n        ifFormat    : \"%A, %d %B, %Y\", // the date format\r\n        button      : \"ff_elem648\",    // ID of the button\r\n        singleClick : true,            // close popup on single click\r\n        firstDay    : 1,               // Monday as first day of the week\r\n        range       : [2006,2016]      // min and max years allowed\r\n      }\r\n    );\r\n    Calendar.setup(\r\n      {\r\n        inputField  : \"ff_elem651\",    // ID of the input field\r\n        ifFormat    : \"%A, %d %B, %Y\", // the date format\r\n        button      : \"ff_elem652\",    // ID of the button\r\n        singleClick : true,            // close popup on single click\r\n        firstDay    : 1,               // Monday as first day of the week\r\n        range       : [2006,2016]      // min and max years allowed\r\n      }\r\n    );\r\n  </script>\r\n\');', 2, NULL, '// load the standard FacileForms library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// Get the date entered\r\n$startdate = \'\';\r\n$enddate = \'\';\r\nforeach ($this->submitdata as $data)\r\n    switch ($data[1]) {\r\n        case \'StartDate\' : $startdate = date(\"l, d F, Y\",strtotime($data[4]));\r\n                              break;\r\n        case \'EndDate\'   : $enddate   = date(\"l, d F, Y\",strtotime($data[4]));\r\n                              break;\r\n        default          : break;\r\n    } // switch\r\n\r\n// check attempt to post with invalid security code\r\nif (ff_getSubmit(\'seccode\') != $_SESSION[\'ff_seccode\']) {\r\n    $this->status = 1000; // our custom error code\r\n    $this->message = \"The security code you entered is missing or incorrect.\";\r\n} // if', 0, NULL, NULL, 2, 0),
(31, 'Tickets2', 26, 1, 0, 'QryAddCurrentQuotaOriginal', 'Add Current Quota Original', 'Shows how a piece can be used to send a mail to an arbitraty address. \r\nIt takes the fields email, subject and message from the form to send a mail.', '', '', 400, 0, 400, 0, 1, 2, 2, 0, 'helpdesk@thaiamadeus.com', 2, 0, NULL, NULL, 1, 29, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, NULL, '// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname, $my, $agent2, $email2; \r\n\r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    ff_getSubmit(\'email2\'),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from an airline to add your ticket quota of \'.ff_getSubmit(\'message\').\' tickets has been received.<br>\'.\'The additional tickets will be added into your current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'rungkiat@thaiamadeus.com\',\'piyabute@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request from <b>\'.$my->name.\'</b> to add ticket quota has been received.<br><br>Agent : <b>\'.ff_getSubmit(\'agent2\').\'</b><br>Ticket amount : <b>\'.ff_getSubmit(\'message\').\'</b><br>Remark : <b>\'.ff_getSubmit(\'remark\').\'</b><br><br><The additional tickets will be added into agent current quota shortly.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',           // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add <b>\'.ff_getSubmit(\'message\').\'</b> tickets for <b>\'.ff_getSubmit(\'agent2\').\'</b> has been received.<br><br>\'.\'Kind regards,<br>\'.\'Thai-Amadeus\',             // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n\r\n);\r\n\r\n\r\n\r\n/*--------------------------------------------------------------------\r\nNotes:\r\n\r\n    array( \'rungkiat@thaiamadeus.com\',\'nattapol@thaiamadeus.com\' ),             // email of recipient (2)\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    $my->email,                         // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    \'A request to add \'.ff_getSubmit(\'message\').\' tickets for xxx has been received.  Kind regards, Thai-Amadeus\'             // body of the mail (3)\r\n);\r\n\r\n\'<?php global $my; return $my->email; ?>\'\r\n\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Message\',   // name of submitter (1)\r\n    array( ff_getSubmit(\'email2\'), \'petuey@hotmail.com\' ),              // email of recipient (2)\r\n    ff_getSubmit(\'subject\'),            // subject of the mail (3)\r\n    ff_getSubmit(\'message\')             // body of the mail (3)\r\n);\r\n\r\n\r\n\r\n(1) In this sample we use the site admin as submitter of the email,\r\n    but basicly you could use anything. Note that many mail servers \r\n    however impose constraints about the submitters email address and\r\n    in case refuse to sent the mail to prevent from spamming. (This\r\n    will mostly be reported as \'relaying denied\').\r\n\r\n(2) Recipient can also be an array of email addresses if you want to \r\n    send the same mail to multiple recipients. Note that all email\r\n    adresses will however be visible to all recipients, so maybe\r\n    it is better to call $this->sendMail for each recipient \r\n    individually.\r\n\r\n(3) Subject and body could of cause also be composed here in the \r\n    piece instead of taking it completely from the submitted values.\r\n--------------------------------------------------------------------*/', 0, NULL, NULL, 2, 0),
(42, '1a', 27, 1, 0, 'ReissueForm', 'Reissue', 'This sample is a basic contact form everybody should be able to master. It does not require any scripting skills to make such a form.', '', '', 640, 0, 700, 0, 1, 1, 2, 0, '', 2, 0, NULL, NULL, 2, NULL, 'function ff_ReissueForm_submitted(status, message)\r\n{\r\n    alert(message);\r\n    window.opener = self;\r\n    window.close();\r\n} // ff_ReissueForm_submitted', 1, 11, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, NULL, '// load the standard FacileForms library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// check attempt to post with invalid security code\r\nif (ff_getSubmit(\'seccode\') != $_SESSION[\'ff_seccode\']) {\r\n    $this->status = 1000; // our custom error code\r\n    $this->message = \"Invalid security code.\";\r\n} // if\r\n\r\n// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname; \r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail to office\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    ff_getSubmit(\'reissue_officeid\').\' - \'.ff_getSubmit(\'reissue_agentname\'),   // name of submitter (1)\r\n    array( \'reissue@thaiamadeus.com\'),             // email of recipient (2)\r\n    \'Reissue Request - Ref ID : \'.$this->record_id,          // subject of the mail (3)\r\n    \'Office ID: \'.ff_getSubmit(\'reissue_officeid\'). \"\\n\" .\r\n    \'Agent Name: \'.ff_getSubmit(\'reissue_agentname\'). \"\\n\" .\r\n    \'Terminal Address: \'.ff_getSubmit(\'reissue_terminaladdress\'). \"\\n\" .\r\n    \'CID No.: \'.ff_getSubmit(\'reissue_cidno\'). \"\\n\" .\r\n    \'Name: \'.ff_getSubmit(\'reissue_name\'). \"\\n\" .\r\n    \'Tel No.: \'.ff_getSubmit(\'reissue_telno\'). \"\\n\" .\r\n    \'Email: \'.ff_getSubmit(\'reissue_email\'). \"\\n\" .\r\n    \'Message: \'.ff_getSubmit(\'reissue_message\'). \"\\n\" \r\n,       // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    FALSE                                // ** HTML-format\r\n\r\n\r\n);', 2, 0),
(43, '1a', 28, 1, 0, 'ReissueForm_ok', 'Reissue_ok', 'This sample is a basic contact form everybody should be able to master. It does not require any scripting skills to make such a form.', '', '', 450, 0, 400, 0, 1, 1, 2, 0, '', 2, 2, NULL, 'function ff_ReissueForm_init()\r\n{\r\n    window.resizeTo(480, 500)\r\n} // ff_ReissueForm_init', 2, NULL, 'function ff_ReissueForm_submitted(status, message)\r\n{\r\n    alert(message);\r\n    window.opener = self;\r\n    window.close();\r\n\r\n\r\n\r\n} // ff_ReissueForm_submitted', 1, 11, NULL, 0, NULL, NULL, 0, NULL, NULL, 2, NULL, '// load the standard FacileForms library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// check attempt to post with invalid security code\r\nif (ff_getSubmit(\'seccode\') != $_SESSION[\'ff_seccode\']) {\r\n    $this->status = 1000; // our custom error code\r\n    $this->message = \"Invalid security code.\";\r\n} // if\r\n\r\n// declare globals used in this piece\r\nglobal $mosConfig_mailfrom, $mosConfig_fromname; \r\n\r\n// include FacileForms standard library\r\n$this->execPieceByName(\'ff_InitLib\');\r\n\r\n// send the mail to office\r\n$this->sendMail(\r\n    $mosConfig_mailfrom,                // email addr of submitter (1)\r\n    $mosConfig_fromname.\' - Auto Message\',   // name of submitter (1)\r\n    array( \'reissue@thaiamadeus.com\'),             // email of recipient (2)\r\n    \'Reissue Request - Ref ID : \'.$this->record_id,          // subject of the mail (3)\r\n    \'Office ID: \'.ff_getSubmit(\'reissue_officeid\').\'<br><br>\'.\r\n    \'Agent Name: \'.ff_getSubmit(\'reissue_agentname\').\'<br><br>\'.\r\n    \'Terminal Address: \'.ff_getSubmit(\'reissue_terminaladdress\').\'<br><br>\'.\r\n    \'CID No.: \'.ff_getSubmit(\'reissue_cidno\').\'<br><br>\'.\r\n    \'Name: \'.ff_getSubmit(\'reissue_name\').\'<br><br>\'.\r\n    \'Tel No.: \'.ff_getSubmit(\'reissue_telno\').\'<br><br>\'.\r\n    \'Email: \'.ff_getSubmit(\'reissue_email\').\'<br><br>\'.\r\n    \'Message: \'.ff_getSubmit(\'reissue_message\').\'<br><br>\'\r\n,       // body of the mail (3)\r\n    NULL,                               // ** no attachments\r\n    TRUE                                // ** HTML-format\r\n);', 2, 0);

-- --------------------------------------------------------

--
