-- http://www.phpmyadmin.net
--




--
-- Database: `ProjectManagement`
--

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

--
-- Table structure for table `Calendar`
--

CREATE TABLE IF NOT EXISTS `Calendar` (
  `CalId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique calendar identifier',
  `UserId` int(11) DEFAULT NULL COMMENT 'Type of calendar entry',
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date the entry was created',
  `CalType` varchar(20) NOT NULL DEFAULT 'PTO' COMMENT 'Type of event',
  `Description` varchar(2048) DEFAULT NULL COMMENT 'Detail description of the calendar event',
  `StartDate` datetime DEFAULT NULL COMMENT 'Date the event started',
  `EndDate` datetime DEFAULT NULL COMMENT 'Date the event ended',
  `Recurs` varchar(15) NOT NULL DEFAULT 'Never' COMMENT 'Event recurs',
  `RecursTill` datetime NOT NULL COMMENT 'Event recurs until this date',
  `IsDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Is the event deleted or not',
  `ProjectId` varchar(32) NOT NULL DEFAULT '0' COMMENT 'Project identifier',
  `Url` varchar(255) DEFAULT NULL COMMENT 'URL to link to for details',
  UNIQUE KEY `CalId` (`CalId`),
  KEY `ixUserId` (`UserId`),
  KEY `ixProjectId` (`ProjectId`),
  KEY `ixStartDate` (`StartDate`),
  KEY `Recurs` (`Recurs`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='User Id who created the calendar entry' AUTO_INCREMENT=659 ;

--
-- Dumping data for table `Calendar`
--


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

--
-- Stand-in structure for view `CalendarView`
--
CREATE TABLE IF NOT EXISTS `CalendarView` (
`CalId` int(11)
,`UserId` int(11)
,`ProjectId` varchar(32)
,`DateCreated` timestamp
,`CalType` varchar(20)
,`Description` varchar(2048)
,`Url` varchar(255)
,`StartDate` datetime
,`EndDate` datetime
,`Recurs` varchar(15)
,`RecursTill` datetime
,`IsDeleted` tinyint(4)
,`FirstName` varchar(50)
,`LastName` varchar(50)
,`Email` varchar(100)
,`Unit` varchar(50)
,`UserName` varchar(100)
,`RoleId` smallint(6)
);
-- --------------------------------------------------------

--
-- Table structure for table `Changes`
--

CREATE TABLE IF NOT EXISTS `Changes` (
  `cUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `rUnique` int(11) NOT NULL COMMENT 'Response row indentifier',
  `OldValue` varchar(1024) NOT NULL COMMENT 'Value before change',
  `NewValue` varchar(1024) NOT NULL COMMENT 'Value after change (current)',
  `uID` varchar(32) NOT NULL COMMENT 'User ID who changed the value',
  `Reason` varchar(1024) NOT NULL COMMENT 'Reason change was made',
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date time when created',
  `isDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Marks the row as deleted',
  UNIQUE KEY `rUnique` (`cUnique`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Contains a row for each change to the data' AUTO_INCREMENT=1 ;

--
-- Dumping data for table `Changes`
--


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

--
-- Table structure for table `DeBug`
--

CREATE TABLE IF NOT EXISTS `DeBug` (
  `dUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `dDateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Date time created',
  `dTail` varchar(4000) DEFAULT NULL COMMENT 'Debug detail',
  `dUserId` int(11) DEFAULT NULL COMMENT 'User ID generating the debug line',
  `dProjectId` int(11) DEFAULT NULL COMMENT 'Project for which debug entry made',
  PRIMARY KEY (`dUnique`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Debug information' AUTO_INCREMENT=1 ;

--
-- Dumping data for table `DeBug`
--


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

--
-- Table structure for table `FormQuestions`
--

CREATE TABLE IF NOT EXISTS `FormQuestions` (
  `fqUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `fID` varchar(32) NOT NULL COMMENT 'Form ID',
  `qID` varchar(32) NOT NULL COMMENT 'Question ID',
  `qOrder` float NOT NULL COMMENT 'Question order in form',
  `qDisplayOnly` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Display the value only - no entry/update',
  `fqIsDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Row is deleted',
  `ProjectId` int(11) NOT NULL COMMENT 'Project identifier',
  `LastUpdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date time of last update',
  `UserId` int(11) NOT NULL COMMENT 'User ID who changed the value',
  UNIQUE KEY `fqUnique` (`fqUnique`),
  KEY `ixfId` (`fID`),
  KEY `ixqId` (`qID`),
  KEY `ixProjectId` (`ProjectId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each Form Question combination (order)' AUTO_INCREMENT=2023 ;

--
-- Dumping data for table `FormQuestions`
--

INSERT INTO `FormQuestions` (`fqUnique`, `fID`, `qID`, `qOrder`, `qDisplayOnly`, `fqIsDeleted`, `ProjectId`, `LastUpdate`, `UserId`) VALUES
(1, 'RE_ListingDetail', 'RE_Street', 1.5, 0, 1, 0, '2012-03-05 08:42:20', 12),
(2, 'RE_ListingDetail', 'RE_City', 2, 0, 1, 0, '2012-03-05 08:42:24', 12),
(3, 'RE_ListingDetail', 'RE_State', 3, 0, 1, 0, '2012-03-05 08:42:27', 12),
(4, 'RE_ListingDetail', 'RE_Zip', 4, 0, 1, 0, '2012-03-05 08:42:32', 12),
(5, 'RE_ListingDetail', 'RE_ShortDescription', 5, 0, 0, 0, '2008-02-19 17:27:09', 12),
(6, 'RE_ListingDetail', 'RE_Pictures', 6, 0, 0, 0, '2008-02-19 17:27:09', 12),
(7, 'RE_ListingDetail', 'RE_PurchasePrice', 7, 0, 0, 0, '2008-02-19 17:27:09', 12),
(8, 'RE_ListingDetail', 'RE_SalePrice', 8, 0, 0, 0, '2008-02-19 17:27:09', 12),
(9, 'RE_ListingDetail', 'RE_Expenses', 9, 0, 0, 0, '2008-02-19 17:27:09', 12),
(10, 'RE_ListingDetail', 'RE_ExpensesTotal', 10, 0, 0, 0, '2008-02-19 17:27:09', 12),
(11, 'RE_ListingDetail', 'RE_ForSale', 11, 0, 0, 0, '2008-02-19 17:27:09', 12),
(12, 'RE_ListingDetail', 'RE_ForRent', 12, 0, 0, 0, '2008-02-19 17:27:09', 12),
(13, 'RE_ListingDetail', 'RE_RentPerMonth', 13, 0, 0, 0, '2008-02-19 17:27:09', 12),
(14, 'RE_ListingDetail', 'RE_RentInclusion', 14, 0, 0, 0, '2008-02-19 17:27:09', 12),
(15, 'RE_ListingDetail', 'RE_Available', 15, 0, 0, 0, '2008-02-19 17:27:09', 12),
(16, 'RE_ListingDetail', 'RE_PurchaseDate', 7.5, 0, 0, 0, '2008-02-19 17:27:09', 12),
(17, 'RE_ListingDetail', 'RE_SellRentDate', 16, 0, 0, 0, '2008-02-19 17:27:09', 12),
(18, 'RE_ListingDetail', 'RE_Notes', 17, 0, 1, 0, '2012-03-05 09:13:51', 12),
(19, 'RE_ListingDetail', 'CaseID', 0, 0, 1, 0, '2012-03-05 08:44:31', 12),
(20, 'RE_ListingDetail', 'RE_Map', 4.5, 0, 0, 0, '2008-02-19 17:27:09', 12),
(21, 'VendorClient_Listing', 'RE_Listing', 0, 0, 1, 0, '2012-03-05 11:09:00', 12),
(22, 'VendorClient_Listing', 'CaseID', 1.1, 0, 1, 0, '2011-12-27 15:32:36', 12),
(23, 'RE_ListingLocator', 'RE_Listing', 1, 0, 0, 0, '2012-03-05 11:09:00', 12),
(24, 'RE_ListingLocator', 'RE_NewCase', 2, 0, 0, 0, '2012-03-05 11:06:40', 12),
(25, 'RE_ListingDetail', 'RE_Id', 1, 0, 1, 0, '2012-03-05 08:42:14', 12),
(26, 'RE_ListingDetail', 'RE_Picture', 5.5, 0, 0, 0, '2008-02-19 17:27:09', 12),
(27, 'VendorClient_Listing', 'tmpRE_Id', 1, 0, 1, 0, '2011-12-27 15:32:36', 12),
(28, 'Transaction_Detail', 'RE_X_Category', 2, 0, 0, 0, '2011-12-27 15:33:14', 12),
(29, 'Transaction_Detail', 'RE_X_Description', 3, 0, 0, 0, '2011-12-27 15:33:14', 12),
(30, 'Transaction_Detail', 'CaseID', 0, 0, 1, 0, '2012-03-05 15:13:56', 12),
(31, 'Transaction_Detail', 'RE_Id', 1, 1, 1, 0, '2012-03-05 15:13:30', 12),
(32, 'Transaction_Detail', 'RE_X_Date', 4, 0, 0, 0, '2011-12-27 15:33:14', 12),
(33, 'Transaction_Detail', 'RE_X_Amount', 5, 0, 0, 0, '2011-12-27 15:33:14', 12),
(34, 'Transaction_Detail', 'RE_X_Note', 6, 0, 0, 0, '2011-12-27 15:33:14', 12),
(35, 'Transaction_Detail', 'RE_X_Paid', 5.5, 0, 0, 0, '2011-12-27 15:33:14', 12),
(36, 'Transaction_Listing', 'tmpREselect', 2, 0, 0, 0, '2013-09-05 09:19:32', 12),
(37, 'CS_Processes', 'CS_Proc_Create', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(38, 'CS_Processes', 'CS_Proc_Modify', 2, 0, 1, 0, '2008-02-19 17:27:09', 12),
(39, 'CS_Processes', 'CS_Proc_Delete', 3, 0, 1, 0, '2008-02-19 17:27:09', 12),
(40, 'CS_Process_Edit', 'CS_Proc_ID', 1, 1, 1, 0, '2008-02-19 17:27:09', 12),
(41, 'CS_Process_Edit', 'CS_Proc_Desc', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(42, 'CS_Process_Edit', 'CS_Proc_Events', 2, 0, 0, 0, '2008-02-19 17:27:09', 12),
(43, 'CS_Process_Edit', 'CS_Proc_EventOrder', 3, 0, 0, 0, '2008-02-19 17:27:09', 12),
(44, 'CS_Events', 'CS_Event_Create', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(45, 'CS_Event_Edit', 'CS_Event_Desc', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(46, 'CS_Event_Edit', 'CS_Event_Power', 2, 0, 0, 0, '2008-02-19 17:27:09', 12),
(47, 'CS_Event_Edit', 'CS_Event_Order', 3, 1, 0, 0, '2008-02-19 17:27:09', 12),
(48, 'CS_Event_Edit', 'CS_Event_Duration', 4, 0, 0, 0, '2008-02-19 17:27:09', 12),
(49, 'CS_Event_Edit', 'CS_Event_Path', 5, 0, 0, 0, '2008-02-19 17:27:09', 12),
(50, 'CS_Event_Edit', 'CS_Event_Exclusive', 6, 0, 0, 0, '2008-02-19 17:27:09', 12),
(51, 'CS_Event_Edit', 'CS_Event_Logic', 7, 0, 0, 0, '2008-02-19 17:27:09', 12),
(52, 'CS_Events_Order', 'CS_Events_Ordering', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(53, 'CS_Event_Console', 'CS_Process_Select', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(54, 'CS_Event_Console', 'CS_Event_Select', 2, 0, 0, 0, '2008-02-19 17:27:09', 12),
(55, 'CS_Event_Console', 'CS_Cases_Entry', 3, 0, 0, 0, '2008-02-19 17:27:09', 12),
(56, 'CS_Case_Console', 'TEFAPHHsize', 1, 0, 0, 0, '2015-11-17 00:25:14', 12),
(57, 'CS_Case_Console', 'CS_Search_Field', 2, 0, 1, 0, '2015-10-23 14:30:12', 12),
(58, 'CS_Case_Console', 'CS_Search_Go', 3, 0, 0, 0, '2008-02-19 17:27:09', 12),
(59, 'CS_Case_Console', 'CS_Search_Results', 4, 0, 0, 0, '2008-02-19 17:27:09', 12),
(60, 'CS_Case_Console', 'CS_Case_Create', 5, 0, 0, 0, '2008-02-19 17:27:09', 12),
(61, 'CS_Case_Console', 'CS_Console_End', 6, 0, 0, 0, '2008-02-19 17:27:09', 12),
(62, 'CS_Case_Detail', 'CaseID', 1, 1, 0, 0, '2008-02-19 17:27:09', 12),
(63, 'CS_Case_Detail', 'CaseFirstName', 2, 0, 0, 0, '2008-02-19 17:27:09', 12),
(64, 'CS_Case_Detail', 'CaseLastName', 3, 0, 0, 0, '2008-02-19 17:27:09', 12),
(65, 'CS_Case_Detail', 'CaseGender', 4, 0, 1, 0, '2008-02-19 17:27:09', 12),
(66, 'CS_Case_Detail', 'CaseEthnicity', 6, 0, 1, 0, '2012-03-05 07:27:05', 12),
(67, 'CS_Case_Detail', 'CaseSSN', 6, 0, 1, 0, '2008-02-19 17:27:09', 12),
(68, 'CS_Case_Detail', 'CaseDOB', 4.5, 0, 0, 0, '2012-03-05 07:30:06', 12),
(69, 'CS_Case_Detail', 'CasePhone', 8, 0, 1, 0, '2012-03-05 09:30:03', 12),
(70, 'CS_Case_Detail', 'CasePhoneWork', 9, 0, 1, 0, '2008-02-19 17:27:09', 12),
(71, 'CS_Case_Detail', 'CasePhoneCell', 14.5, 0, 1, 0, '2012-03-05 09:35:08', 12),
(72, 'CS_Case_Detail', 'CaseAddress1', 11, 0, 0, 32, '2015-11-10 16:17:27', 12),
(73, 'CS_Case_Detail', 'CaseAddress2', 12, 0, 1, 0, '2008-02-19 17:27:09', 12),
(74, 'CS_Case_Detail', 'CaseCity', 13, 0, 0, 0, '2008-02-19 17:27:09', 12),
(75, 'CS_Case_Detail', 'CaseState', 14, 0, 0, 0, '2008-02-19 17:27:09', 12),
(1864, 'AccountRequest', 'LastName', 2, 0, 0, 0, '2011-01-03 08:19:38', 0),
(1863, 'AccountRequest', 'FirstName', 1, 0, 0, 0, '2011-01-03 08:18:49', 0),
(78, 'CS_Case_Detail', 'CaseZIP', 14.1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(79, 'CS_Report_Console', 'CS_Rpt_Console', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(80, 'CS_Event_Edit', 'CS_Proc_Desc', 0.9, 1, 1, 0, '2008-02-19 17:27:09', 12),
(81, 'CS_Event_Edit', 'CaseID', 1, 1, 1, 0, '2008-02-19 17:27:09', 12),
(82, 'CS_Case_Detail', 'CS_Case_History', 16, 0, 0, 0, '2008-02-19 17:27:09', 12),
(83, 'EditResolution0', 'EditCase', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(84, 'EditResolutionQ', 'EditQuestion', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(85, 'EditResolution', 'ER_Intro', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(86, 'EditResolutionLoop', 'EditResLoop1', 1, 0, 0, 0, '2008-02-19 17:27:09', 12),
(87, 'EditResolutionBatch', 'BatchEditGo', 0, 0, 0, 0, '2008-02-19 17:27:09', 12),
(88, 'CS_Event_Console', 'CS_Post_Events', 4, 0, 0, 0, '2008-02-19 17:27:09', 12),
(89, 'RE_Renter_Detail', 'RE_RenterName', 2, 0, 1, 0, '2012-03-02 08:16:23', 0),
(90, 'RE_Renter_Detail', 'RE_Id', 1, 1, 1, 0, '2012-03-02 08:17:23', 0),
(91, 'RE_Renter_Detail', 'RE_RenterContactName', 4, 0, 1, 0, '2012-03-02 08:16:36', 0),
(92, 'RE_Renter_Detail', 'RE_RenterPhone', 3, 0, 1, 0, '2012-03-02 08:16:30', 0),
(93, 'RE_Renter_Detail', 'RE_RenterContactPhone', 5, 0, 1, 0, '2012-03-02 08:16:42', 0),
(94, 'RE_Renter_Detail', 'RE_RenterDateIn', 6, 0, 1, 0, '2012-03-02 08:16:49', 0),
(95, 'RE_Renter_Detail', 'RE_RenterDateOut', 7, 0, 1, 0, '2012-03-02 08:17:09', 0),
(96, 'RE_Renter_Detail', 'RE_RenterNote', 12, 0, 1, 0, '2012-03-02 08:17:03', 0),
(97, 'RE_Renter_Listing', 'tmpRErenter', 1, 0, 1, 0, '2012-03-02 08:15:39', 0),
(98, 'RE_Renter_Detail', 'RE_RenterAmount', 8, 0, 1, 0, '2012-03-02 08:16:55', 0),
(1852, 'GB_Console', 'GB_C_Name', 1, 0, 0, 0, '2009-10-06 14:47:28', 0),
(1853, 'GB_Console', 'GB_C_Email', 2, 0, 0, 0, '2009-10-06 14:48:21', 0),
(1854, 'GB_Console', 'GB_C_Website', 3, 0, 0, 0, '2009-10-06 14:49:11', 0),
(1855, 'GB_Console', 'GB_C_Message', 4, 0, 0, 0, '2009-10-06 14:50:00', 0),
(1856, 'GB_Console', 'GB_C_DateTime', 5, 0, 0, 0, '2009-10-06 21:02:10', 0),
(1857, 'Q_Loop1', 'Q_Loop1_1', 1, 0, 0, 0, '2009-11-27 20:28:06', 0),
(1858, 'Q_Loop1', 'Q_Loop1_2', 2, 0, 0, 0, '2009-11-27 20:29:35', 0),
(1859, 'Q_Loop1', 'Q_Loop1_3', 3, 0, 0, 0, '2009-11-27 20:30:41', 0),
(1860, 'Q_Loop1', 'Q_Loop1_4', 4, 0, 0, 0, '2009-11-27 20:32:05', 0),
(1861, 'Q_Loop1', 'Q_Loop1_5', 5, 1, 0, 0, '2009-11-27 20:36:46', 0),
(1862, 'Q_Loop1', 'Q_Loop1_End', 6, 0, 0, 0, '2009-11-27 20:34:30', 0),
(1865, 'AccountRequest', 'UserName', 3, 0, 0, 0, '2011-01-03 08:20:25', 0),
(1866, 'AccountRequest', 'Email', 4, 0, 0, 0, '2011-01-03 08:22:13', 0),
(1867, 'AccountRequest', 'Affiliation', 5, 0, 0, 0, '2011-01-03 08:23:23', 0),
(1868, 'AccountRequest', 'ReasonAccount', 6, 0, 1, 0, '2015-11-19 21:16:17', 0),
(1869, 'VendorClient_Detail', 'VC_Name', 1, 0, 1, 0, '2012-03-03 08:01:39', 0),
(1870, 'VendorClient_Detail', 'VC_Address1', 2, 0, 1, 0, '2012-03-05 09:15:59', 0),
(1871, 'VendorClient_Detail', 'VC_Address2', 3, 0, 1, 0, '2012-03-05 09:16:24', 0),
(1872, 'VendorClient_Detail', 'VC_City', 4, 0, 1, 0, '2012-03-05 09:16:16', 0),
(1873, 'VendorClient_Detail', 'VC_State', 5, 0, 1, 0, '2012-03-05 09:16:36', 0),
(1874, 'VendorClient_Detail', 'VC_Zip', 7, 0, 1, 0, '2012-03-05 09:16:44', 0),
(1875, 'VendorClient_Detail', 'VC_Phone', 7, 0, 1, 0, '2012-03-05 09:16:51', 0),
(1876, 'VendorClient_Detail', 'VC_Fax', 8, 0, 1, 0, '2012-03-05 09:17:25', 0),
(1877, 'VendorClient_Detail', 'VC_Email', 9, 0, 1, 0, '2012-03-05 09:17:14', 0),
(1878, 'VendorClient_Detail', 'VC_CEO', 10, 0, 0, 0, '2011-12-27 15:42:29', 0),
(1879, 'VendorClient_Detail', 'VC_ContactSales', 11, 0, 0, 0, '2011-12-27 15:42:47', 0),
(1880, 'VendorClient_Detail', 'VC_ContactAccounts', 12, 0, 0, 0, '2011-12-27 15:43:01', 0),
(1881, 'VendorClient_Detail', 'CaseNotes', 13, 0, 0, 0, '2012-03-05 09:08:37', 0),
(1882, 'VendorClient_Detail', 'VC_Type', 0, 0, 1, 0, '2012-03-05 09:15:23', 0),
(1883, 'Transaction_Detail', 'RE_X_Type', 1.5, 0, 0, 0, '2011-12-27 15:33:14', 0),
(1884, 'Configuration', 'RE_X_VendorClient', 0, 0, 1, 0, '2012-03-05 21:28:38', 0),
(1885, 'Transaction_Detail', 'RE_X_VendorClient', 1.8, 0, 0, 0, '2011-12-27 16:38:58', 0),
(1886, 'Configuration', 'tmpVendorSelect', 0, 0, 1, 0, '2012-03-05 21:28:44', 0),
(1887, 'VendorClient_Listing', 'tmpVendorSelect', 0, 0, 0, 0, '2011-12-27 15:32:36', 0),
(1888, 'VendorClient_Detail', 'VC_Price', 12.2, 0, 0, 0, '2012-03-02 08:01:08', 0),
(1889, 'VendorClient_Detail', 'VC_DateBeg', 12.2, 0, 0, 0, '2012-03-02 08:02:21', 0),
(1890, 'VendorClient_Detail', 'VC_DateEnd', 12.3, 0, 0, 0, '2012-03-02 08:03:12', 0),
(1891, 'CS_Case_Detail', 'CaseGender', 4, 0, 0, 0, '2012-03-05 16:27:05', 0),
(1892, 'CS_Case_Detail', 'CaseEthnicity', 6, 0, 0, 0, '2012-03-05 07:27:05', 0),
(1893, 'CS_Case_Detail', 'CaseAddress2', 12, 0, 0, 0, '2012-03-05 07:30:49', 0),
(1894, 'CS_Case_Detail', 'CaseType', 1.5, 0, 0, 0, '2012-03-05 07:37:17', 0),
(1895, 'RE_ListingDetail', 'CaseID', 0, 0, 0, 0, '2012-03-05 08:44:31', 0),
(1896, 'RE_ListingDetail', 'CaseCity', 0.6, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1897, 'RE_ListingDetail', 'CaseState', 0.7, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1898, 'RE_ListingDetail', 'CaseZIP', 0.8, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1899, 'CS_Case_Detail', 'CaseNotes', 14.9, 0, 0, 0, '2012-03-05 09:33:10', 0),
(1900, 'RE_ListingDetail', 'CaseNotes', 17, 0, 0, 0, '2012-03-05 09:14:33', 0),
(1901, 'VendorClient_Detail', 'CaseType', 2.1, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1902, 'VendorClient_Detail', 'CaseID', 0, 0, 0, 0, '2012-03-05 09:18:17', 0),
(1903, 'VendorClient_Detail', 'CaseAddress1', 2.22, 0, 0, 0, '2012-03-05 15:50:50', 0),
(1904, 'VendorClient_Detail', 'CaseAddress2', 2.3, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1905, 'VendorClient_Detail', 'CaseCity', 2.4, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1906, 'VendorClient_Detail', 'CaseState', 2.5, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1907, 'VendorClient_Detail', 'CaseZIP', 2.6, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1908, 'CS_Case_Detail', 'CasePhoneHome', 14.2, 0, 0, 0, '2012-03-05 09:30:45', 0),
(1909, 'CS_Case_Detail', 'CasePhoneWork', 9, 0, 0, 0, '2012-03-05 16:28:45', 0),
(1910, 'CS_Case_Detail', 'CasePhoneCell', 14.5, 0, 1, 0, '2012-03-05 09:35:08', 0),
(1911, 'CS_Case_Detail', 'CaseFAX', 14.6, 0, 0, 0, '2012-03-05 09:34:14', 0),
(1912, 'CS_Case_Detail', 'CasePhoneCell', 14.5, 0, 1, 0, '2012-03-05 09:35:08', 0),
(1913, 'CS_Case_Detail', 'CasePhoneCell', 14.5, 0, 0, 0, '2012-03-05 09:35:08', 0),
(1914, 'RE_ListingDetail', 'CaseType', 0.1, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1915, 'RE_ListingDetail', 'CaseFirstName', 0.2, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1916, 'Transaction_Detail', 'CaseID', 0, 0, 1, 0, '2012-03-05 16:20:26', 0),
(1917, 'VendorClient_Detail', 'CaseFirstName', 2.2, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1918, 'VendorClient_Detail', 'CaseLastName', 2.21, 0, 0, 0, '2012-03-05 15:50:39', 0),
(1919, 'Transaction_Detail', 'CaseFirstName', 0.1, 0, 0, 0, '0000-00-00 00:00:00', 0),
(1920, 'Configuration', 'PM_DEBUG', 1, 0, 0, 0, '2012-03-05 21:49:33', 0),
(1921, 'Configuration', 'PM_OWNER', 2, 0, 0, 0, '2012-03-05 21:49:47', 0),
(1922, 'Configuration', 'PM_VERSION', 3, 0, 0, 0, '2012-03-05 21:49:58', 0),
(1923, 'Configuration', 'PMROOT', 4, 0, 0, 0, '2012-03-05 21:49:18', 0),
(1924, 'Configuration', 'PM_BASE', 4, 0, 0, 0, '2012-03-05 21:50:35', 0),
(1925, 'Configuration', 'PM_HEADER_BG', 5, 0, 0, 0, '2012-03-05 21:51:27', 0),
(1926, 'Configuration', 'PM_LITTLEdark_BG', 6, 0, 0, 0, '2012-03-05 21:52:16', 0),
(1927, 'Configuration', 'PM_LITTLElight_BG', 7, 0, 0, 0, '2012-03-05 21:53:37', 0),
(1928, 'Configuration', 'PM_MENU_BG', 8, 0, 0, 0, '2012-03-05 21:54:34', 0),
(1929, 'Configuration', 'PM_CONTENT_BG', 9, 0, 0, 0, '2012-03-05 21:55:10', 0),
(1930, 'MV_Options', 'MV_Year', 1, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1931, 'MV_Options', 'MV_Season', 2, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1932, 'MV_Options', 'Country', 3, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1933, 'MV_Options', 'State', 4, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1934, 'MV_Options', 'MV_Activity', 5, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1935, 'MV_Options', 'MV_Sports', 6, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1936, 'MV_Options', 'MV_Concerts', 7, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1937, 'MV_Options', 'MV_Accomodations', 8, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1938, 'MV_Options', 'MV_Travel', 9, 0, 0, 0, '2012-09-18 13:06:21', 0),
(1939, 'MV_Vacations', 'MV_Title', 0, 0, 1, 0, '2012-09-18 14:31:47', 0),
(1941, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1940, 'MV_Options', 'MV_Title', 0, 0, 0, 0, '2012-09-18 16:43:46', 0),
(1942, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1943, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1944, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1945, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1946, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1947, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1948, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1949, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1950, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1951, 'MV_Vacations', 'CaseFirstName', 0.1, 0, 1, 0, '2012-09-18 13:38:54', 0),
(1952, 'MV_Vacations', 'MV_Title', 0, 0, 1, 0, '2012-09-18 14:33:15', 0),
(1953, 'MV_Vacations', 'MV_Title', 0, 0, 1, 0, '2012-09-18 14:53:05', 0),
(1954, 'MV_Vacations', 'MV_Select', 1, 0, 0, 0, '2012-09-18 14:52:49', 0),
(1955, 'MV_Vacations', 'MV_New', 2, 0, 0, 0, '2012-09-18 14:54:03', 0),
(1956, 'CS_Case_Detail', 'CaseFolder', 14.8, 0, 0, 0, '2013-06-07 15:39:06', 0),
(1957, 'RE_ListingDetail', 'CaseFolder', 16.5, 0, 0, 0, '2013-06-07 15:43:00', 0),
(1958, 'Transaction_Listing', 'tmpREyear', 1, 0, 0, 0, '2013-09-05 10:50:20', 0),
(1959, 'Transaction_Listing', 'tmpREcases', 1.5, 0, 0, 0, '2014-01-16 21:12:51', 0),
(1960, 'VendorClient_Detail', 'CasePhoneCell', 2.7, 0, 0, 0, '2014-07-04 17:01:57', 0),
(1961, 'CS_Case_Detail', 'CaseCounty', 13.5, 0, 0, 0, '2015-11-10 13:27:02', 0),
(1998, 'TEFAPreceipt', 'TEFAPyearly', 7, 0, 0, 32, '2015-11-10 16:34:05', 0),
(1997, 'TEFAPreceipt', 'TEFAPfns', 6, 0, 0, 32, '2015-11-10 16:32:36', 0),
(1996, 'TEFAPreceipt', 'TEFAPclientSigV', 5, 0, 0, 32, '2015-11-10 16:31:22', 0),
(1993, 'TEFAPreceipt', 'CaseID', 1.1, 0, 1, 32, '2015-11-11 16:26:17', 0),
(1992, 'TEFAPreceipt', 'TEFAPdate', 4, 0, 0, 32, '2015-11-10 16:29:36', 0),
(1968, 'TEFAPdetail', 'CaseID', 0.1, 0, 0, 32, '2015-11-11 11:14:09', 0),
(1970, 'TEFAPdetail', 'CaseFirstName', 0.2, 0, 0, 32, '2015-11-11 11:14:09', 0),
(1971, 'TEFAPdetail', 'CaseLastName', 0.3, 0, 0, 32, '2015-11-11 11:14:09', 0),
(2002, 'TEFAPconsole', 'TEFAPcreate', 4, 0, 1, 32, '2015-11-10 17:28:06', 0),
(2001, 'TEFAPreceipt', 'TEFAPagentSig', 11, 0, 0, 32, '2015-11-10 16:39:34', 0),
(2000, 'TEFAPreceipt', 'TEFAPweekly', 10, 0, 0, 32, '2015-11-10 16:37:16', 0),
(1999, 'TEFAPreceipt', 'TEFAPmonthly', 9, 0, 0, 32, '2015-11-10 16:36:18', 0),
(1994, 'TEFAPreceipt', 'CaseFirstName', 1.2, 0, 1, 32, '2015-11-11 16:26:25', 0),
(1995, 'TEFAPreceipt', 'CaseLastName', 1.3, 0, 1, 32, '2015-11-11 16:26:31', 0),
(1985, 'TEFAPdetail', 'CaseCity', 4.2, 0, 0, 32, '2015-11-11 11:14:09', 0),
(1986, 'TEFAPdetail', 'CaseCounty', 4.3, 0, 0, 32, '2015-11-11 11:14:09', 0),
(1987, 'TEFAPdetail', 'TEFAPHHsize', 4.4, 0, 0, 32, '2015-11-11 11:14:09', 0),
(1988, 'TEFAPdetail', 'TEFAPverified', 4.5, 0, 0, 32, '2015-11-11 11:14:09', 0),
(1989, 'TEFAPdetail', 'TEFAPauth1', 4.6, 0, 0, 32, '2015-11-11 11:14:09', 0),
(1990, 'TEFAPdetail', 'TEFAPauth2', 4.7, 0, 0, 32, '2015-11-11 11:14:09', 0),
(1991, 'TEFAPdetail', 'TEFAPclientSig', 4.8, 0, 0, 32, '2015-11-11 11:14:09', 0),
(2003, 'TEFAPconsole', 'TEFAPHHsize', 0, 0, 1, 32, '2015-11-17 00:30:58', 0),
(2004, 'TEFAPconsole', 'CS_Search_Go', 2, 0, 0, 32, '2015-11-10 17:19:59', 0),
(2005, 'TEFAPconsole', 'CS_Search_Results', 3, 0, 0, 32, '2015-11-10 17:20:15', 0),
(2006, 'TEFAPconsole', 'CS_Case_Create', 4, 0, 1, 32, '2015-11-10 17:30:09', 0),
(2007, 'TEFAPconsole', 'CS_Events_Ordering', 0.4, 0, 1, 32, '2015-11-10 17:18:32', 0),
(2008, 'TEFAPconsole', 'CS_Console_End', 5, 0, 0, 32, '2015-11-10 17:20:54', 0),
(2009, 'TEFAPconsole', 'TEFAPcreate', 4, 0, 1, 32, '2015-11-11 10:01:49', 0),
(2010, 'TEFAPconsole', 'TEFAPvewrec', 4.1, 0, 1, 32, '2015-11-11 11:37:46', 0),
(2011, 'TEFAPconsole', 'CS_Case_Create', 4, 0, 1, 32, '2015-11-12 13:59:41', 0),
(2012, 'TEFAPconsole', 'CS_Case_Create', 4, 0, 0, 32, '2015-11-12 13:59:41', 0),
(2013, 'TEFAPdetail', 'TEFAPvewrec', 20, 0, 0, 32, '2015-11-11 11:37:46', 0),
(2014, 'TEFAPrecHist', 'TEFAPtmpHist', 1, 0, 0, 32, '2015-11-11 13:00:33', 0),
(2015, 'TEFAPrecHist', 'TEFAPtmpCreate', 5, 0, 1, 32, '2015-11-11 13:31:13', 0),
(2016, 'TEFAPdetail', 'TEFAPbaseFNS', 4.35, 0, 0, 32, '2015-11-16 23:59:36', 0),
(2017, 'TEFAPdetail', 'CS_Search_String', 0, 0, 1, 32, '2015-11-18 14:17:46', 0),
(2018, 'TEFAPconsole', 'CS_Search_Field', 0.1, 0, 1, 32, '2015-11-17 00:34:07', 0),
(2019, 'TEFAPconsole', 'CS_Search_String', 0, 0, 0, 32, '2015-11-18 14:17:46', 0),
(2020, 'TEFAPdetail', 'CaseAddress1', 3, 0, 0, 32, '2015-11-17 12:44:13', 0),
(2021, 'TEFAPdetail', 'TEFAPclientSigDate', 6, 0, 0, 32, '2015-11-17 12:57:16', 0),
(2022, 'TEFAPdetail', 'TEFAPtmpHist', 20.1, 0, 0, 32, '0000-00-00 00:00:00', 0);

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

--
-- Table structure for table `Forms`
--

CREATE TABLE IF NOT EXISTS `Forms` (
  `fUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `fID` varchar(32) NOT NULL COMMENT 'Form ID',
  `fDescription` varchar(100) DEFAULT NULL COMMENT 'Form description',
  `fPreLogic` varchar(2048) DEFAULT NULL COMMENT 'Form pre-logic',
  `fPostLogic` varchar(2048) DEFAULT NULL COMMENT 'Form post-logic',
  `fHelp` varchar(2048) DEFAULT NULL COMMENT 'Form help',
  `fIsDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Row is deleted',
  `fFormat` varchar(40) NOT NULL DEFAULT '&Ftmp=&Ctmp=' COMMENT 'Display format for the form',
  `ProjectId` int(11) NOT NULL COMMENT 'Project identifier',
  `LastUpdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date time of last update',
  `UserId` int(11) NOT NULL COMMENT 'User ID who changed the value',
  UNIQUE KEY `fUnique` (`fUnique`),
  KEY `ixfId` (`fID`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each Form' AUTO_INCREMENT=126 ;

--
-- Dumping data for table `Forms`
--

INSERT INTO `Forms` (`fUnique`, `fID`, `fDescription`, `fPreLogic`, `fPostLogic`, `fHelp`, `fIsDeleted`, `fFormat`, `ProjectId`, `LastUpdate`, `UserId`) VALUES
(1, 'RE_ListingDetail', 'Real Estate Listing Detail', '', '', 'This form is used for creating and updating a property listing.  ', 0, '&Ftmp=&Ctmp=', 0, '2008-02-19 17:27:24', 12),
(2, 'VendorClient_Listing', 'Vendor and Client Listing', 'echo ~<script language=javascript>~;\r\necho ~function Xsel(id)~;\r\necho ~{window.document.content.VendorSelect.value=id; DoPostBack(0,0);}~;\r\necho ~</script>~;\r\n', '', 'This form shows all the vendors and clients in the system. <p> If you wish to add a new vendor or client, click on the <b>New Vendon/Client</b> button.', 0, '&Ftmp=&Ctmp=free', 0, '2011-12-27 16:09:32', 12),
(3, 'RE_ListingLocator', 'Real Estate Listing Locator', '', '', 'Use this form to locate a specific real-estate listing.  You can select the item from the drop-down list or specify a search value.<p>You may also create a new property.', 0, '&Ftmp=&Ctmp=free', 0, '2012-03-05 11:17:43', 12),
(4, 'Transaction_Detail', 'Transaction Detail', '$CaseId=$_SESSION[`CaseId`]; \r\n$Instance=$_SESSION[`Instance`]; \r\necho ~\r\n~;\r\necho ~<script language=javascript>\r\n~; \r\necho ~function BackUp()\r\n~; \r\necho ~   {\r\n~; \r\necho ~    window.parent.SetInstanceCaseForm(`$Instance`,`$CaseId`,`Transaction_Listing`,`&Ftmp=&Ctmp=free`);\r\n~; \r\necho ~   }\r\n~; \r\necho ~</script>\r\n~;\r\n\r\n', '', 'Enter transaction records for the business operation after selecting the business operation of interest.', 0, '&Ftmp=&Ctmp=', 0, '2012-03-05 19:17:46', 12),
(5, 'Transaction_Listing', 'Transaction Listing', 'echo ~<script language=javascript>~;\r\necho ~function Xsel(id)~;\r\necho ~{window.document.content.ExpenseSelect.value=id; DoPostBack(0,0);}~;\r\necho ~function Csel()~;\r\necho ~{~;\r\necho `var sval = document.content.elements[1].value;`;\r\necho ~  window.parent.SetCase(sval);~;\r\necho ~  return false;~;\r\necho ~}~;\r\necho ~</script>~;\r\n', '', 'You must have previously selected a business operation for this form.<p>  If the selected business operation has any transactions, you will see them in the transaction list. <p> You can select a transaction from the list by clicking on the detail button to access the detail for that transaction. <p> If you wish to add a new transaction, click on the <b>New Transaction</b> button.', 0, '&Ftmp=&Ctmp=free', 0, '2014-01-16 22:35:22', 12),
(6, 'CS_Processes', 'Control System Processes', 'echo `<script language=javascript>`;\r\necho `function DeleteMe(id)`;\r\necho `{`;\r\necho `//  alert("in DeleteMe id="+id);\r\n`;\r\necho `  var agree=confirm("Are you sure you want to delete this item?");`;\r\necho `  if (!agree) `;\r\necho `    return false;`;\r\necho `  DoPostBack("-"+id,"CS_Proc_Delete");`;\r\necho `}`;\r\necho `</script>`;\r\n', '', 'The Processes form allows you to create, delete and modify control system processes.<p>  It also provides an entry point to the Event form for creating, deleting and modifying events for the selected process.', 0, '&Ftmp=&Ctmp=free', 0, '2008-03-13 18:39:14', 12),
(7, 'CS_Process_Edit', 'Edit Control System Process', '', '', 'Update the selected control system process.', 0, '&Ftmp=&Ctmp=qrn', 0, '2008-02-19 17:27:24', 12),
(8, 'CS_Events', 'Control System Events for the Current Process', 'echo `<script language=javascript>`;\r\necho `function DeleteIt(id)`;\r\necho `{`;\r\necho `//  alert("in DeleteIt id="+id);\r\n`;\r\necho `  var agree=confirm("Are you sure you want to delete this item?");`;\r\necho `  if (!agree) `;\r\necho `    return false;`;\r\necho `  DoPostBack("-"+id,"CS_Proc_Delete");`;\r\necho `}`;\r\necho `</script>`;\r\n', '', 'This is a listing of all the events for the selected process. <p> From here you can select a specific event to modify or delete. <p> You can also create a new event for the process.', 0, '&Ftmp=&Ctmp=free', 0, '2008-02-19 17:27:24', 12),
(9, 'CS_Event_Edit', 'Edit Control System Process Event', '$CS_Proc_Id=$_SESSION[`CS_Proc_Id`];\r\n$CS_Proc_Desc=ShowQueryResultScalar("select rValue from Responses where CaseID=`$CS_Proc_Id` and qID=`CS_Proc_Desc`");', '', 'Update the selected control system process event.', 0, '&Ftmp=&Ctmp=qr', 0, '2008-02-19 17:27:24', 12),
(10, 'CS_Events_Order', 'Control System Events for the Current Process - Ordering', 'echo `<script language=javascript>`;\r\necho `function MoveIt(id,dir)`;\r\necho `{`;\r\necho `  DoPostBack("-"+id,dir);`;\r\necho `}`;\r\necho `function BackUp()`;\r\necho `{`;\r\necho `//  alert("in BackUp");\r\n`;\r\n$sql="select fFormat from Forms where fID=`CS_Process_Edit`";\r\n$fmt=ShowQueryResultScalar($sql);\r\n$CaseId=$_SESSION[`CaseId`];\r\necho "window.parent.SetInstanceCaseForm(`0`,`$CaseId`,`CS_Process_Edit`,`$fmt`)";\r\necho `}`;\r\necho `</script>`;\r\n', '', 'This form allows you to reorder the events. <p> Click on an event and then click either the up arrow or down arrow to move it in the list.', 0, '&Ftmp=&Ctmp=free', 0, '2008-02-19 17:27:24', 12),
(11, 'CS_Event_Console', 'Control System Event Console', 'include "CS_functions.php";', '', 'The control system event console allows you to set events for one or more cases.\r\n<ol>\r\n<li>Select a <b>process</b>\r\n<li>Select an <b>event</b>\r\n<li>Enter the affected <b>cases</b>\r\n<li>Click on <b>Save</b>\r\n</ol>', 0, '&Ftmp=&Ctmp=free', 0, '2008-02-19 17:27:24', 12),
(12, 'CS_Case_Console', 'Control System Case Console', 'include "CS_functions.php";', '', 'The control system case console allows you to <ol><li>search for cases<li>create new cases<li>review a case`s event history<li>update a case`s status</ol>\r\n', 0, '&Ftmp=&Ctmp=free', 0, '2008-02-19 17:27:24', 12),
(13, 'CS_Case_Detail', 'Control System Case Detail', 'include ~CS_functions.php~;\r\necho `<script language=javascript>`;\r\necho `function BackUp()`;\r\necho `{`;\r\necho `//  alert(~in BackUp~);\r\n`;\r\necho ~window.parent.SetForm(`CS_Case_Console`,`&Ftmp=&Ctmp=free`);~;\r\necho `}`;\r\necho `</script>`;\r\n$_SESSION[`Instance`]=0;\r\n', '', '', 0, '&Ftmp=&Ctmp=', 0, '2012-03-05 07:33:47', 12),
(14, 'CS_Report_Console', 'Control System Report Console', 'include "CS_functions.php";', '', 'The following standard reports are available from the Control System Report Console:\r\n<ul>\r\n<li>Current Status\r\n<li>Ever At\r\n<li>Pending Cases\r\n<li>Delinquent Cases\r\n</ul>', 0, '&Ftmp=&Ctmp=free', 0, '2008-02-19 17:27:24', 12),
(15, 'EditResolution0', 'Edit Resolution', '', '', 'The Edit Resolution form allows you to select a case for which there is one or more fail edits.  Once you click on the go button you will be able to select a fail-edit question.', 0, '&Ftmp=&Ctmp=free', 0, '2008-02-19 17:27:24', 12),
(16, 'EditResolutionQ', 'EditResolution Question selector', '', '', '', 0, '&Ftmp=&Ctmp=', 0, '2008-02-19 17:27:24', 12),
(17, 'EditResolution', 'Edit Resolution', '', '', 'The Edit Resolution form allows you to work the selected case for which an edit failure\r\nhas occurred. <p> You should: <ol> <li>enter the appropriate value for the problematic\r\nresponse value and a <li>reason for the change and then <li>click on UPDATE </ol> The new\r\nresponse value will be inserted into the Responses table and the form will be re-edited.  \r\nIt is possible that the value you enter does not correct the problem.  It is also possible \r\nthat the value you enter results in a pass edit for that item but sets another item on \r\nthe form to fail edit. <p> A Changes record will be created for the transaction logging \r\nthe old and new values for the response as well as who made the change and when it was made. \r\n<p>\r\n\r\nWhen all the problematic responses have been processed for the case the form notifies you with one\r\nof two prompts: `to work the next case` or `that there are no more cases with edit failures`.\r\nClicking on the prompt to work the next case will display the list of cases with one or more fail edits.<p> The table at the\r\nbottom of the form is a listing of all the form elements where the current edit resolution \r\nitems originated.  You may click on one of these items to set the fail-edit flag for that item to `ON`.  This will allow you to edit that item in the case that it is in error.\r\n', 0, '&Ftmp=&Ctmp=free', 0, '2008-02-19 17:27:24', 12),
(18, 'EditResolutionLoop', 'Edit Resolution Loop', '', '', '', 0, '&Ftmp=null&Ctmp=free', 0, '2008-02-19 17:27:24', 12),
(19, 'EditResolutionBatch', 'Batch Edit Tool', '', '', 'The Batch Edit Tool allows you to reapply edit logic to every form having one or more edit failures.  Use this tool if you have made changes to any Question PostLogic for which data has been entered.', 0, '&Ftmp=&Ctmp=', 0, '2008-02-19 17:27:24', 12),
(20, 'RE_Renter_Detail', 'Real Estate Renter Detail', 'echo ~<script language=javascript>\r\n~;\r\necho ~function BackUp()\r\n~;\r\necho ~{\r\n~;\r\necho ~//  alert(`in BackUp`);\r\n~;\r\necho ~window.parent.SetForm(`RE_Renter_Listing`,`&Ftmp=&Ctmp=free`);\r\n~;\r\necho ~}\r\n~;\r\necho ~</script>\r\n~;\r\n', '', 'Enter renter information for the renter after selecting the property from the RenterLocator tool.', 1, '&Ftmp=&Ctmp=', 0, '2012-03-02 08:17:32', 0),
(21, 'RE_Renter_Listing', 'Real Estate Renter Listing', 'echo "<script language=javascript>";\r\necho "function Xsel(id)";\r\necho "{window.document.content.RenterSelect.value=id; DoPostBack(0,0);}";\r\necho "</script>";\r\n', '', 'You must have previously selected a listing for this form.<p>  If the selected listing has any renters, you will see them in the renter list. <p> You can select an renter from the list by clicking on the detail button to access the detail for that renter. <p> If you wish to add a new renter, click on the <b>New Renter</b> button.', 1, '&Ftmp=&Ctmp=free', 0, '2012-03-02 08:15:49', 0),
(115, 'GB_Console', 'Guest Book Console', '', '', 'The Guest Book Console enables internet users to comment on the site.\r\n<p>\r\nWhen you have entered the information on this form, click on the diskette at the bottom to save your entry.', 0, '&Ftmp=&Ctmp=qrh', 0, '2009-10-26 21:49:02', 0),
(116, 'Q_Loop1', 'Question loop form 1', '', '', '<br>\r\nThis is the help for Q_Loop1_1\r\n<p>\r\nThis is the help for Q_Loop1_2\r\n<p>\r\nThis is the help for Q_Loop1_3', 0, '&Ftmp=&Ctmp=free', 0, '2009-11-27 20:37:07', 0),
(117, 'AccountRequest', 'Request a ProMan account', '', '$sql=~select count(*) from Users where username=`~ . $_REQUEST[~UserName~] . ~`~;\r\nif (ShowQueryResultScalar($sql) == 0)\r\n  {\r\n    $sql = ~insert into Users(lastname,firstname,email,username,password,isdeleted,unit) ~ . ~select `~ . $_REQUEST[~LastName~] . ~`,`~ . $_REQUEST[~FirstName~] . \r\n~`,`~ . $_REQUEST[~Email~] . ~`,`~ . $_REQUEST[~UserName~] . ~`,`temp4pwd`,`1`,`~ . $_REQUEST[~Affiliation~] . ~`~;\r\n\r\n    $stat=ExecuteSQL($sql);\r\n    $stat=MailSend($_SESSION[`PM_EMAIL`], $_SESSION[`PM_EMAIL`], ~ProMan account request~, $sql . ~: ~ . $_SESSION[~ProjectId~]);\r\n    $stat=MailSend($_SESSION[`PM_EMAIL`], $_REQUEST[~Email~], ~ProMan account request~, ~Your Account Request for username `~ . $_REQUEST[~UserName~] . ~` was submitted to the ProMan administrator.\r\nYour password is `temp4pwd`\r\nYou will receive another email when the account is activated.\r\n  Thank you.~);\r\n  \r\n    AlertCustom(`Mail`, ~<h2>Your account request has been submitted.<p>An email has been sent to your address.<p>Thank you.</h2>~);\r\n\r\n    $stat=1;\r\n  }\r\nelse\r\n  {\r\n    AlertCustom(`Mail ERROR`,~<h2>ID: <b><u>~ . $_REQUEST[~UserName~] . ~</u></b> has already been taken.<p>~);\r\n    $stat=0;\r\n  }\r\n', 'If you do not already have a ProMan account use this form to request one.  Once you have submitted the form the account will need to be approved.  <p>Once your account is approved you will receive an email letting you know the account is ready for use.', 0, '&Ftmp=&Ctmp=qrh', 0, '2015-11-19 21:14:03', 0),
(118, 'VendorClient_Detail', 'Vendor/Client Detail', 'echo ~<script language=javascript>\r\n~;\r\necho ~function BackUp()\r\n~;\r\necho ~{\r\n~;\r\necho ~//  alert(`in BackUp`);\r\n~;\r\necho ~window.parent.SetForm(`VendorClient_Listing`,`&Ftmp=&Ctmp=free`);\r\n~;\r\necho ~}\r\n~;\r\necho ~</script>\r\n~;\r\n', '', 'Enter as much information as is available to describe the vendor or client.   Some fields may not be applicable.', 0, '&Ftmp=&Ctmp=', 0, '2011-12-27 16:32:13', 0),
(119, 'Configuration', 'Configuration', '', '', 'The configuration form enables session control from a central place. <p>The session control variables are loaded when a session is created and when the refresh button is clicked.', 0, '&Ftmp=&Ctmp=', 0, '2012-03-05 21:40:34', 0),
(120, 'MV_Options', 'Max Vacs Options', 'echo chr(10),chr(13);\r\necho ~<script language=javascript>~,chr(10),chr(13); \r\necho ~function BackUp()~,chr(10),chr(13); \r\necho ~   {window.parent.SetInstanceCaseForm(`0`,`-1`,`MV_Vacations`,`&Ftmp=null&Ctmp=free&HFtmp=null&Borders=0&iprmid=-1`);}~,chr(10),chr(13); \r\necho ~</script>~,chr(10),chr(13);\r\n', '', 'MaxVacs enables you to configure your ideal vacation across different areas of interest.  This include season of the year, activities, concerts, games, etc.<p>Simply select as many options as you like and click on the save button (blue diskette) at the bottom left of the screen.', 0, '&Ftmp=&Ctmp=qrh', 0, '2012-09-20 10:47:14', 0),
(121, 'MV_Vacations', 'Max Vacs Vacations', 'echo `<script language=javascript>`,chr(10),chr(13);\r\n\r\necho `function DelCase(cid,des)`,chr(10),chr(13);\r\necho `{`,chr(10),chr(13);\r\necho `//	alert(~DelCase with cid=~ + cid);`,chr(10),chr(13);\r\necho `	answer=confirm(~Do you really want to permanently delete ~+des+~?~)`, chr(10),chr(13);\r\necho `	if (answer==true)`,chr(10),chr(13);\r\necho `		{`,chr(10),chr(13);\r\necho `			DoPostBack(99,cid);`,chr(10),chr(13);\r\necho `			return false;`,chr(10),chr(13);\r\necho `		}`,chr(10),chr(13);\r\necho `}`,chr(10),chr(13);\r\necho `</script>`,chr(10),chr(13);\r\n\r\n$prm=$_REQUEST[`prm`];\r\n$act=$_REQUEST[`act`];\r\n\r\n//echo ~act=$act prm=$prm~;\r\n\r\nif ($act==99) delcas($prm);\r\n\r\nfunction delcas($cid)\r\n{\r\n  ExecuteSQL(~delete from Responses where CaseId=`$cid`~);\r\n  return true;\r\n}\r\n\r\n', '', 'Select a vacation from the list below to see the detail for the vacation and explore other options.\r\n<p>\r\nClick on <font color=red>New Vacation</font> to add a new vacation to your possibilities.', 0, '&Ftmp=null&Ctmp=free', 0, '2012-10-02 11:54:06', 0),
(122, 'TEFAPdetail', 'TEFAP Case Detail', 'include ~CS_functions.php~;\r\necho `<script language=javascript>`;\r\necho `function BackUp()`;\r\necho `{`;\r\necho `//  alert(~in BackUp~);\r\n`;\r\necho ~window.parent.SetForm(`TEFAPconsole`,`&Ftmp=&Ctmp=free&HFtmp=null`);~;\r\necho `}`;\r\necho `</script>`;\r\n\r\n$_SESSION[`Instance`]=1;\r\n\r\n', '', 'The U.S. Department of Agriculture (USDA) prohibits discrimination\r\nagainst its customers, employees, and applicants for employment on\r\nthe bases of race, color, national origin, age, disability, sex,\r\ngender identity, religion, reprisal, and where applicable, political\r\nbeliefs, marital status, familial or parental status, sexual\r\norientation, or if all or part of an individual`s income is derived\r\nfrom any public assistance program, or protected genetic information\r\nin employment or in any program or activity conducted or funded by\r\nthe Department. (Not all prohibited bases will apply to all programs\r\nand/or employment activities.) \r\n<P>\r\nIf you wish to file a Civil Rights program complaint of discrimination,\r\ncomplete the USDA Program  Discrimination Complaint Form, found online at  http://www.ascr.usda.gov/complaint_filing_cust.html,\r\nor at any USDA office, or call (866) 632-9992 to request the form.\r\nYou may also write a letter containing all of the information\r\nrequested in the form. Send your completed complaint form or letter\r\nto us by mail at U.S. Department of Agriculture, Director, Office of\r\nAdjudication, 1400 Independence Avenue, S.W., Washington, D.C.\r\n20250-9410, by fax (202) 690-7442 or email at program.intake@usda.gov\r\n\r\n<P>\r\nIndividuals who are deaf, hard of hearing or have speech disabilities may contact\r\nUSDA through the Federal Relay  Service at (800) 877-8339; or (800)\r\n845-6136 (in Spanish). USDA is an equal opportunity provider and\r\nemployer.\r\n', 0, '&Ftmp=null&Ctmp=htm', 32, '2015-11-29 14:48:16', 0),
(123, 'TEFAPreceipt', 'TEFAP Food Receipt', 'include ~CS_functions.php~;\r\necho `<script language=javascript>`;\r\necho `function BackUp()`;\r\necho `{`;\r\necho `//  alert(~in BackUp~);\r\n`;\r\n$bfrm=`TEFAPdetail`;\r\n$fmt=ShowQueryResultScalar(~select fFormat from Forms where fID=`$bfrm`~);\r\n\r\necho ~  window.parent.SetInstanceCaseForm(1,~.$CaseId.~,`$bfrm`,`$fmt`);~;\r\n\r\n//echo ~window.parent.SetForm(`$bfrm`,`$fmt`);~;\r\necho `}`;\r\necho `</script>`;\r\n\r\n', '', 'Both the client and program agent must sign the form.\r\n<p>\r\nOne of the income field should be filled in.', 0, '&Ftmp=&Ctmp=', 32, '2015-11-17 17:03:27', 0),
(124, 'TEFAPconsole', 'TEFAP Console', 'include ~CS_functions.php~;\r\n$_SESSION[`PM_TransFrm`]=`TEFAPdetail`;', '', '<br><ol>\r\n<li>Enter the last name of the client in the search field.  If you are unsure of spelling enter the part you are sure of.  You can also street name or number.  However, do not enter more than one piece of information as the pieces are <i>anded</i> which means only records which have both pieces will be shown.  To see a listing of all cases enter a literal space in the search field.  <p>\r\n<li>Click go.  This will result in the screen being updated with a list of all mstching client records.<p>  If you see a record in the listing that matches your client click on the GO button for that record to go to the detail screen for the client.<p>\r\n<li>If you do not see the specific client in the list try another search.  Once you are satisfied the client is not in the system, click on the <b>Create A New Case</b> button.  \r\n</ol>', 0, '&Ftmp=&Ctmp=free', 32, '2015-11-29 14:37:15', 0),
(125, 'TEFAPrecHist', 'TEFAP Receipt History', 'include ~CS_functions.php~;\r\n\r\n$CaseId=$_SESSION[`CaseId`];\r\n\r\necho `<script language=javascript>`;\r\necho ~\r\n~;\r\necho `function BackUp()`;\r\necho `{`;\r\necho `//  alert(~in BackUp~);\r\n`;\r\n$fmt=ShowQueryResultScalar(~select fFormat from Forms where fID=`TEFAPdetail`~);\r\necho ~window.parent.SetForm(`TEFAPdetail`,`$fmt`);~;\r\necho `}`;\r\n\r\necho ~\r\n~;\r\n\r\necho `function SetInstance(inst)`;\r\necho `{`;\r\necho `//  alert(~in prelogic SetInstance~);\r\n`;\r\necho ~  window.parent.SetInstanceCaseForm(inst,~.$CaseId.~,`TEFAPreceipt`,`&Ftmp=&Ctmp=`);~;\r\n//echo ~  window.parent.parent.SetInstanceCaseForm(inst,~.$CaseId.~,`TEFAPreceipt`,`&Ftmp=&Ctmp=`);~;\r\necho `}`;\r\n\r\necho ~\r\n~;\r\n\r\necho `</script>`;\r\n$_SESSION[`Instance`]=1;\r\n', '', 'Food receipts for this client are listed from first to last.  In the beginning the list will be empty.\r\n<p>\r\nYou may update a food receipt record by clicking on the pencil.\r\n<p>\r\nYou may add a new receipt record by clicking on the `Create A New Receipt Record` button.', 0, '&Ftmp=&Ctmp=free', 32, '2015-11-17 16:01:38', 0);

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

--
-- Table structure for table `GuestBook`
--

CREATE TABLE IF NOT EXISTS `GuestBook` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `email` varchar(50) NOT NULL,
  `url` varchar(50) DEFAULT NULL,
  `message` text NOT NULL,
  `entry_date` date NOT NULL,
  `ProjectId` int(11) NOT NULL COMMENT 'Project which the user was accessing',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `GuestBook`
--


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

--
-- Table structure for table `InstrumentForms`
--

CREATE TABLE IF NOT EXISTS `InstrumentForms` (
  `ifUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `iID` varchar(32) NOT NULL COMMENT 'Instrument ID',
  `fID` varchar(32) NOT NULL COMMENT 'Form ID',
  `fOrder` float DEFAULT NULL COMMENT 'Form order within instrument',
  `ifIsDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Row is deleted',
  `ProjectId` int(11) NOT NULL COMMENT 'Project identifier',
  `LastUpdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date time of last update',
  `UserId` int(11) NOT NULL COMMENT 'User ID who changed the value',
  UNIQUE KEY `ifUnique` (`ifUnique`),
  KEY `ixiID` (`iID`),
  KEY `ixfId` (`fID`),
  KEY `ixProjectId` (`ProjectId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each Instrument Form combination (order)' AUTO_INCREMENT=124 ;

--
-- Dumping data for table `InstrumentForms`
--

INSERT INTO `InstrumentForms` (`ifUnique`, `iID`, `fID`, `fOrder`, `ifIsDeleted`, `ProjectId`, `LastUpdate`, `UserId`) VALUES
(1, 'Business', 'RE_ListingDetail', 3, 0, 0, '2011-12-27 15:28:25', 12),
(2, 'Business', 'VendorClient_Listing', 9, 0, 0, '2011-12-27 15:32:36', 12),
(3, 'Business', 'RE_ListingLocator', 1, 0, 0, '2014-02-04 14:44:16', 12),
(4, 'Business', 'Transaction_Detail', 5, 0, 0, '2011-12-27 15:33:14', 12),
(5, 'Business', 'Transaction_Listing', 4, 0, 0, '2011-12-27 15:32:58', 12),
(6, 'ControlSystem', 'CS_Processes', 1, 0, 0, '2008-02-19 17:27:39', 12),
(7, 'ControlSystem', 'CS_Process_Edit', 2, 0, 0, '2008-02-19 17:27:39', 12),
(8, 'ControlSystem', 'CS_Events_Order', 5, 0, 0, '2008-02-19 17:27:39', 12),
(9, 'ControlSystem', 'CS_Events', 3, 0, 0, '2008-02-19 17:27:39', 12),
(10, 'ControlSystem', 'CS_Event_Edit', 4, 0, 0, '2008-02-19 17:27:39', 12),
(11, 'ControlSystem', 'CS_Event_Console', 6, 0, 0, '2008-02-19 17:27:39', 12),
(12, 'ControlSystem', 'CS_Case_Console', 7, 0, 0, '2008-02-19 17:27:39', 12),
(13, 'ControlSystem', 'CS_Case_Detail', 8, 0, 0, '2008-02-19 17:27:39', 12),
(14, 'ControlSystem', 'CS_Report_Console', 9, 0, 0, '2008-02-19 17:27:39', 12),
(15, 'EditResolution', 'EditResolution0', 1, 0, 0, '2008-02-19 17:27:39', 12),
(16, 'EditResolution', 'EditResolutionQ', 2, 0, 0, '2008-02-19 17:27:39', 12),
(17, 'EditResolution', 'EditResolution', 3, 0, 0, '2008-02-19 17:27:39', 12),
(18, 'EditResolution', 'EditResolutionLoop', 4, 0, 0, '2008-02-19 17:27:39', 12),
(19, 'EditResolution', 'EditResolutionBatch', 5, 0, 0, '2008-02-19 17:27:39', 12),
(20, 'Business', 'RE_Renter_Detail', 7, 1, 0, '2012-03-02 08:17:32', 0),
(21, 'Business', 'RE_Renter_Listing', 6, 1, 0, '2012-03-02 08:15:49', 0),
(113, 'GuestBook', 'GB_Console', 1, 0, 0, '2009-12-31 20:19:42', 0),
(114, 'Q_Loop', 'Q_Loop1', 1, 0, 0, '2009-11-27 20:26:45', 0),
(115, 'AccountRequest', 'AccountRequest', 1, 0, 0, '2011-01-03 08:18:49', 0),
(116, 'Business', 'VendorClient_Detail', 10, 0, 0, '2011-12-27 15:35:08', 0),
(117, 'Administration', 'Configuration', 1, 0, 0, '2012-03-05 21:23:14', 0),
(118, 'MaxVac$', 'MV_Options', 1, 0, 0, '2012-09-24 08:55:31', 0),
(119, 'MaxVac$', 'MV_Vacations', 0, 0, 0, '2012-09-24 08:55:31', 0),
(120, 'TEFAP', 'TEFAPdetail', 5, 0, 32, '2015-11-11 11:14:09', 0),
(121, 'TEFAP', 'TEFAPreceipt', 7, 0, 32, '2015-11-11 11:31:17', 0),
(122, 'TEFAP', 'TEFAPconsole', 1, 0, 32, '2015-11-10 16:42:57', 0),
(123, 'TEFAP', 'TEFAPrecHist', 6, 0, 32, '2015-11-11 12:58:00', 0);

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

--
-- Table structure for table `Instruments`
--

CREATE TABLE IF NOT EXISTS `Instruments` (
  `iUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique role identifier',
  `iID` varchar(32) NOT NULL COMMENT 'Instrument ID',
  `iDescription` varchar(100) NOT NULL COMMENT 'Instrument description',
  `iIsDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Row is deleted',
  `ProjectId` int(11) NOT NULL COMMENT 'Project identifier',
  `LastUpdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date time of last update',
  `UserId` int(11) NOT NULL COMMENT 'User ID who changed the value',
  UNIQUE KEY `iUnique` (`iUnique`),
  KEY `ixiID` (`iID`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each Instrument' AUTO_INCREMENT=29 ;

--
-- Dumping data for table `Instruments`
--

INSERT INTO `Instruments` (`iUnique`, `iID`, `iDescription`, `iIsDeleted`, `ProjectId`, `LastUpdate`, `UserId`) VALUES
(1, 'Business', 'Business Tools', 0, 0, '2011-12-27 15:28:25', 12),
(2, 'ControlSystem', 'Control System Forms', 0, 0, '2008-02-19 17:27:50', 12),
(3, 'EditResolution', 'Edit Resolution', 0, 0, '2008-02-19 17:27:50', 12),
(23, 'GuestBook', 'Guest Book', 0, 0, '2009-10-06 14:43:28', 0),
(24, 'Q_Loop', 'Question loop example', 0, 0, '2009-11-27 20:25:46', 0),
(25, 'AccountRequest', 'Request a ProMan account', 0, 0, '2011-01-03 08:18:02', 0),
(26, 'Administration', 'Administration', 0, 0, '2012-03-05 21:22:54', 0),
(27, 'MaxVac$', 'Maximum Vacations', 0, 0, '2012-09-24 08:55:31', 0),
(28, 'TEFAP', 'TEFAP Forms', 0, 32, '2015-11-10 14:30:03', 0);

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

--
-- Table structure for table `IssueComments`
--

CREATE TABLE IF NOT EXISTS `IssueComments` (
  `CommentId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique comment identifier',
  `IssueId` int(11) NOT NULL,
  `Comment` varchar(4000) NOT NULL,
  `UserId` int(11) NOT NULL,
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `IsDeleted` tinyint(4) DEFAULT '0',
  UNIQUE KEY `CommentId` (`CommentId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='User who created this comment' AUTO_INCREMENT=7 ;

--
-- Dumping data for table `IssueComments`
--

INSERT INTO `IssueComments` (`CommentId`, `IssueId`, `Comment`, `UserId`, `DateCreated`, `IsDeleted`) VALUES
(2, 50, 'Test', 12, '2008-01-18 14:13:35', 0),
(3, 51, 'Develop a function which takes a single parameter identifying the Questionnaire form from which a dynamic view will be created which may be used in subsequent SQL statements to select specific rows.', 12, '2008-01-28 09:07:13', 0),
(4, 79, 'tmpl* issues have been created and the ProjectManagement page has some work done.  Need to complete the insert step.  Need to add text to the tmpl issues.', 12, '2008-03-06 15:48:55', 0),
(5, 56, 'Prepare the budget for both internal and external use.', 12, '2008-03-06 16:16:18', 0),
(6, 54, 'Email and telephone conversations with corporate and/or client staff.', 12, '2008-03-06 16:19:03', 0);

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

--
-- Table structure for table `IssueHistory`
--

CREATE TABLE IF NOT EXISTS `IssueHistory` (
  `HistoryId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique history identifier',
  `IssueId` int(11) NOT NULL,
  `HistoryUserId` int(11) NOT NULL,
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ActionPerformed` varchar(500) DEFAULT NULL,
  UNIQUE KEY `HistoryId` (`HistoryId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Issue ID which owns this history record' AUTO_INCREMENT=157 ;

--
-- Dumping data for table `IssueHistory`
--

INSERT INTO `IssueHistory` (`HistoryId`, `IssueId`, `HistoryUserId`, `DateCreated`, `ActionPerformed`) VALUES
(33, 40, 12, '2007-06-20 22:06:50', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(32, 45, 12, '2007-04-21 14:23:32', 'Created by AddChild'),
(3, 32, 12, '2007-03-14 21:19:09', 'Updated  old IssuePriorityId=0 old IssueMilestoneId=0 old DateNeeded= old StartDate= old EndDate='),
(4, 33, 12, '2007-03-14 21:19:17', 'Created by New Project'),
(5, 33, 12, '2007-03-14 21:19:37', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(6, 34, 12, '2007-03-15 07:17:58', 'Created by New Project'),
(7, 34, 12, '2007-03-15 07:21:46', 'Updated  old IssuePriorityId=0 old IssueMilestoneId=0 old DateNeeded= old StartDate= old EndDate='),
(8, 34, 12, '2007-03-15 07:21:46', 'Updated  old DateNeeded=1969-12-31 00:00:00 old StartDate=2007-03-15 00:00:00 old EndDate=1969-12-31 00:00:00'),
(9, 35, 12, '2007-03-15 07:21:55', 'Created by New Project'),
(10, 35, 12, '2007-03-15 07:22:19', 'Updated  old IssuePriorityId=0 old IssueMilestoneId=0 old DateNeeded= old StartDate= old EndDate='),
(11, 36, 12, '2007-03-15 10:06:19', 'Created by New Project'),
(12, 36, 12, '2007-03-15 10:06:40', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(13, 36, 12, '2007-03-15 10:06:40', 'Updated  old DateNeeded=1969-12-31 00:00:00 old StartDate=2007-03-15 00:00:00 old EndDate=1969-12-31 00:00:00'),
(14, 37, 12, '2007-03-15 10:06:52', 'Created by New Project'),
(15, 37, 12, '2007-03-15 10:07:04', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(16, 37, 12, '2007-03-15 10:07:04', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(17, 38, 12, '2007-03-15 21:14:36', 'Created by New Project'),
(18, 38, 12, '2007-03-15 21:15:03', 'Updated old IssueTitle= old DateNeeded= old StartDate= old EndDate='),
(19, 39, 12, '2007-03-18 18:12:39', 'Created by New Project'),
(20, 39, 12, '2007-03-18 18:13:06', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(21, 39, 12, '2007-03-18 18:13:06', 'Updated  old DateNeeded=1969-12-31 00:00:00 old StartDate=2007-03-18 00:00:00 old EndDate=1969-12-31 00:00:00'),
(22, 40, 12, '2007-03-18 18:13:10', 'Created by New Project'),
(23, 40, 12, '2007-03-18 18:13:23', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(24, 40, 12, '2007-03-18 18:13:24', 'Updated  old DateNeeded=1969-12-31 00:00:00 old StartDate=2007-03-18 00:00:00 old EndDate=1969-12-31 00:00:00'),
(25, 41, 12, '2007-03-22 13:21:03', 'Created by AddChild'),
(26, 42, 12, '2007-03-22 13:25:46', 'Created by AddChild'),
(27, 43, 12, '2007-03-22 22:05:01', 'Created by New Project'),
(28, 43, 12, '2007-03-22 22:05:29', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(29, 43, 12, '2007-03-22 22:05:29', 'Updated  old DateNeeded=2010-03-22 00:00:00 old StartDate=2007-03-22 00:00:00 old EndDate=2010-03-22 00:00:00'),
(30, 44, 12, '2007-03-22 22:05:43', 'Created by New Project'),
(31, 44, 12, '2007-03-22 22:06:12', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(34, 40, 12, '2007-06-20 22:06:51', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(35, 40, 12, '2007-06-20 22:07:09', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(36, 39, 12, '2007-06-20 22:07:35', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(37, 46, 12, '2007-12-14 00:01:30', 'Created by AddChild'),
(38, 46, 12, '2007-12-14 00:02:06', 'Updated old IssueTitle=Child of 33 old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(39, 47, 12, '2007-12-30 17:42:52', 'Created by AddChild'),
(40, 48, 12, '2008-01-10 09:44:49', 'Created by New Project'),
(41, 49, 12, '2008-01-10 12:15:05', 'Created by New Project'),
(42, 50, 12, '2008-01-18 14:12:41', 'Created by AddChild'),
(43, 50, 12, '2008-01-18 14:13:35', 'Updated old IssueTitle=Child of 35 old IssuePriorityId=39 old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00 comment added'),
(44, 50, 12, '2008-01-18 14:14:47', 'Updated  old IssueAssignedId=12'),
(45, 49, 12, '2008-01-27 18:23:50', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(46, 48, 12, '2008-01-27 18:24:18', 'Updated  old DateNeeded= old StartDate= old EndDate='),
(47, 51, 12, '2008-01-28 09:05:38', 'Created by AddChild'),
(48, 51, 12, '2008-01-28 09:07:13', 'Updated old IssueTitle=Child of 48 comment added'),
(49, 51, 12, '2008-02-16 09:57:25', 'Updated  old DateNeeded=2010-12-31 00:00:00'),
(50, 51, 12, '2008-02-16 10:01:38', 'Updated  old DateNeeded=2007-12-31 00:00:00'),
(51, 35, 12, '2008-02-18 23:30:47', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(52, 34, 12, '2008-02-18 23:31:09', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(53, 52, 12, '2008-03-06 15:15:06', 'Created by AddChild'),
(54, 52, 12, '2008-03-06 15:16:16', 'Updated old IssueTitle=Child of 49'),
(55, 52, 12, '2008-03-06 15:16:54', 'Updated old IssueTitle=tmpManagement'),
(56, 52, 12, '2008-03-06 15:17:43', 'Updated old IssueTitle=tplManagement'),
(57, 53, 12, '2008-03-06 15:18:12', 'Created by AddChild'),
(58, 53, 12, '2008-03-06 15:18:50', 'Updated old IssueTitle=Child of 52'),
(59, 54, 12, '2008-03-06 15:19:19', 'Created by AddChild'),
(60, 54, 12, '2008-03-06 15:19:51', 'Updated old IssueTitle=Child of 52'),
(61, 55, 12, '2008-03-06 15:20:02', 'Created by AddChild'),
(62, 55, 12, '2008-03-06 15:20:20', 'Updated old IssueTitle=Child of 52'),
(63, 56, 12, '2008-03-06 15:20:51', 'Created by AddChild'),
(64, 56, 12, '2008-03-06 15:21:01', 'Updated old IssueTitle=Child of 52'),
(65, 57, 12, '2008-03-06 15:21:35', 'Created by AddChild'),
(66, 57, 12, '2008-03-06 15:21:48', 'Updated old IssueTitle=Child of 52'),
(67, 58, 12, '2008-03-06 15:22:28', 'Created by AddChild'),
(68, 58, 12, '2008-03-06 15:22:39', 'Updated old IssueTitle=Child of 52'),
(69, 59, 12, '2008-03-06 15:24:05', 'Created by AddChild'),
(70, 59, 12, '2008-03-06 15:24:13', 'Updated old IssueTitle=Child of 52'),
(71, 60, 12, '2008-03-06 15:25:01', 'Created by AddChild'),
(72, 60, 12, '2008-03-06 15:25:10', 'Updated old IssueTitle=Child of 52'),
(73, 61, 12, '2008-03-06 15:27:03', 'Created by AddChild'),
(74, 61, 12, '2008-03-06 15:27:14', 'Updated old IssueTitle=Child of 49'),
(75, 62, 12, '2008-03-06 15:27:29', 'Created by AddChild'),
(76, 62, 12, '2008-03-06 15:29:19', 'Updated old IssueTitle=Child of 61'),
(77, 63, 12, '2008-03-06 15:29:31', 'Created by AddChild'),
(78, 63, 12, '2008-03-06 15:30:06', 'Updated old IssueTitle=Child of 61'),
(79, 64, 12, '2008-03-06 15:30:38', 'Created by AddChild'),
(80, 64, 12, '2008-03-06 15:31:02', 'Updated old IssueTitle=Child of 61'),
(81, 63, 12, '2008-03-06 15:31:27', 'Updated old IssueTitle=tmplProductConceptDocument'),
(82, 65, 12, '2008-03-06 15:31:38', 'Created by AddChild'),
(83, 65, 12, '2008-03-06 15:31:46', 'Updated old IssueTitle=Child of 61'),
(84, 66, 12, '2008-03-06 15:31:54', 'Created by AddChild'),
(85, 66, 12, '2008-03-06 15:32:10', 'Updated old IssueTitle=Child of 61'),
(86, 67, 12, '2008-03-06 15:32:19', 'Created by AddChild'),
(87, 67, 12, '2008-03-06 15:32:39', 'Updated old IssueTitle=Child of 61'),
(88, 68, 12, '2008-03-06 15:32:45', 'Created by AddChild'),
(89, 68, 12, '2008-03-06 15:32:53', 'Updated old IssueTitle=Child of 61'),
(90, 69, 12, '2008-03-06 15:33:00', 'Created by AddChild'),
(91, 69, 12, '2008-03-06 15:34:56', 'Updated old IssueTitle=Child of 61'),
(92, 70, 12, '2008-03-06 15:35:25', 'Created by AddChild'),
(93, 70, 12, '2008-03-06 15:35:37', 'Updated old IssueTitle=Child of 61'),
(94, 71, 12, '2008-03-06 15:39:33', 'Created by AddChild'),
(95, 71, 12, '2008-03-06 15:39:47', 'Updated old IssueTitle=Child of 61'),
(96, 72, 12, '2008-03-06 15:40:39', 'Created by AddChild'),
(97, 72, 12, '2008-03-06 15:40:47', 'Updated old IssueTitle=Child of 49'),
(98, 73, 12, '2008-03-06 15:41:00', 'Created by AddChild'),
(99, 73, 12, '2008-03-06 15:41:28', 'Updated old IssueTitle=Child of 72'),
(100, 74, 12, '2008-03-06 15:41:35', 'Created by AddChild'),
(101, 74, 12, '2008-03-06 15:41:46', 'Updated old IssueTitle=Child of 72'),
(102, 75, 12, '2008-03-06 15:41:56', 'Created by AddChild'),
(103, 75, 12, '2008-03-06 15:42:09', 'Updated old IssueTitle=Child of 72'),
(104, 76, 12, '2008-03-06 15:42:25', 'Created by AddChild'),
(105, 76, 12, '2008-03-06 15:42:39', 'Updated old IssueTitle=Child of 72'),
(106, 77, 12, '2008-03-06 15:43:09', 'Created by AddChild'),
(107, 77, 12, '2008-03-06 15:43:23', 'Updated old IssueTitle=Child of 72'),
(108, 78, 12, '2008-03-06 15:45:12', 'Created by AddChild'),
(109, 78, 12, '2008-03-06 15:45:20', 'Updated old IssueTitle=Child of 72'),
(110, 79, 12, '2008-03-06 15:47:01', 'Created by AddChild'),
(111, 79, 12, '2008-03-06 15:48:55', 'Updated old IssueTitle=Child of 48 old DateNeeded=2010-12-31 00:00:00 old EndDate=2010-12-31 00:00:00 comment added'),
(112, 56, 12, '2008-03-06 16:16:18', 'Updated  comment added'),
(113, 54, 12, '2008-03-06 16:19:03', 'Updated  comment added'),
(114, 80, 12, '2008-03-06 16:51:30', 'Created by New Project'),
(115, 33, 12, '2008-03-22 16:25:58', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(116, 32, 12, '2008-03-22 16:26:34', 'Updated  old DateNeeded=1969-12-31 00:00:00 old EndDate=1969-12-31 00:00:00'),
(117, 79, 12, '2008-06-09 00:13:50', 'Updated  old DateNeeded=2008-04-30 00:00:00 old EndDate=2008-04-30 00:00:00'),
(118, 81, 12, '2009-02-20 09:48:11', 'Created by Add Child '),
(119, 81, 12, '2009-02-20 09:49:44', 'Updated old IssueTitle=Child of 49 old IssueAssignedId=12'),
(120, 81, 12, '2009-02-20 21:29:33', 'Updated  old IssueMilestoneId=34'),
(121, 81, 12, '2009-02-20 23:05:10', 'Updated  old IssueMilestoneId=36'),
(122, 81, 12, '2009-02-21 00:00:14', 'Updated  old IssueMilestoneId=35'),
(123, 81, 12, '2009-02-21 00:01:19', 'Updated  old IssueMilestoneId=34'),
(124, 81, 12, '2009-02-21 00:01:28', 'Updated  old IssueMilestoneId=36'),
(125, 81, 12, '2009-02-21 00:11:51', 'Updated  old IssueMilestoneId=34'),
(126, 81, 12, '2009-03-01 15:00:14', 'Updated  old IssueMilestoneId=34'),
(127, 81, 12, '2009-03-01 15:55:58', 'Updated  old IssueMilestoneId=36'),
(128, 81, 12, '2009-03-01 17:38:11', 'Updated  old IssueMilestoneId=35'),
(129, 81, 12, '2009-03-01 17:42:08', 'Updated  old IssueMilestoneId=36'),
(130, 81, 12, '2009-03-01 17:47:42', 'Updated  old IssueMilestoneId=34'),
(131, 81, 12, '2009-03-01 17:55:45', 'Updated  old IssueMilestoneId=35'),
(132, 81, 12, '2009-03-01 18:09:00', 'Updated  old IssueMilestoneId=36'),
(133, 81, 12, '2009-03-01 18:10:55', 'Updated  old IssueMilestoneId=34'),
(134, 81, 12, '2009-03-01 18:12:58', 'Updated  old IssueMilestoneId=35'),
(135, 81, 12, '2009-03-01 18:15:36', 'Updated  old IssueMilestoneId=37'),
(136, 81, 12, '2009-03-01 18:18:10', 'Updated  old IssueMilestoneId=34'),
(137, 81, 12, '2009-03-01 18:25:28', 'Updated  old IssueMilestoneId=35'),
(138, 81, 12, '2009-03-01 18:29:27', 'Updated  old IssueMilestoneId=36'),
(139, 81, 12, '2009-03-01 18:31:02', 'Updated  old IssueMilestoneId=34'),
(140, 81, 12, '2009-03-01 18:33:21', 'Updated  old IssueMilestoneId=35'),
(141, 81, 12, '2009-03-01 18:36:19', 'Updated  old IssueMilestoneId=36'),
(142, 81, 12, '2009-04-14 07:45:57', 'Updated  old DateNeeded=2010-12-31 00:00:00 old StartDate=2006-01-01 00:00:00 old EndDate=2010-12-31 00:00:00'),
(143, 81, 12, '2009-04-14 07:49:41', 'Updated  old DateNeeded=1901-12-13 15:12:52 old StartDate=1901-12-13 15:12:52 old EndDate=1901-12-13 15:12:52'),
(144, 81, 12, '2009-04-14 07:52:40', 'Updated  old DateNeeded=2010-12-31 00:00:00 old StartDate=2006-01-01 00:00:00 old EndDate=2010-12-31 00:00:00'),
(145, 81, 12, '2009-04-18 09:47:35', 'Updated  old DateNeeded=2010-12-31 00:00:00 old StartDate=2006-01-01 00:00:00 old EndDate=2010-12-31 00:00:00'),
(146, 81, 12, '2009-04-18 09:52:01', 'Updated  old DateNeeded=2010-12-31 00:00:00 old StartDate=2006-01-01 00:00:00 old EndDate=2010-12-31 00:00:00'),
(147, 81, 12, '2009-04-18 09:52:10', 'Updated  old DateNeeded=2010-12-31 00:00:00 old StartDate=2006-01-01 00:00:00 old EndDate=2010-12-31 00:00:00'),
(148, 81, 12, '2009-04-18 09:55:45', 'Updated  old DateNeeded=2010-12-31 00:00:00 old StartDate=2006-01-01 00:00:00 old EndDate=2010-12-31 00:00:00'),
(149, 81, 12, '2009-04-18 09:56:04', 'Updated  old DateNeeded=2010-12-31 05:00:00 old StartDate=2006-01-01 04:30:00 old EndDate=2010-12-31 04:45:00'),
(150, 81, 12, '2009-05-23 01:12:57', 'Updated  old IssueMilestoneId=37 old DateNeeded=2010-12-31 06:00:00 old StartDate=2006-01-01 05:00:00 old EndDate=2010-12-31 07:00:00'),
(151, 81, 12, '2009-05-23 01:25:04', 'Updated  old IssueMilestoneId=34 old DateNeeded=2010-12-31 06:00:00 old StartDate=2006-01-01 05:00:00 old EndDate=2010-12-31 07:00:00'),
(152, 81, 12, '2009-05-23 01:28:06', 'Updated  old IssueMilestoneId=35 old DateNeeded=2010-12-31 06:00:00 old StartDate=2006-01-01 05:00:00 old EndDate=2010-12-31 07:00:00'),
(153, 81, 12, '2009-05-23 08:25:59', 'Updated  old IssueMilestoneId=36 old DateNeeded=2010-12-31 06:00:00 old StartDate=2006-01-01 05:00:00 old EndDate=2010-12-31 07:00:00'),
(154, 81, 12, '2009-05-23 08:29:35', 'Updated  old IssueMilestoneId=37 old DateNeeded=2010-12-31 06:00:00 old StartDate=2006-01-01 05:00:00 old EndDate=2010-12-31 07:00:00'),
(155, 81, 12, '2009-05-24 17:43:52', 'Updated  old IssueMilestoneId=34 old DateNeeded=2010-12-31 06:00:00 old StartDate=2006-01-01 05:00:00 old EndDate=2010-12-31 07:00:00'),
(156, 82, 12, '2014-07-03 16:57:42', 'Created by New Project');

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

--
-- Table structure for table `Issues`
--

CREATE TABLE IF NOT EXISTS `Issues` (
  `IssueId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique issue identifier',
  `ProjectId` int(11) NOT NULL,
  `IssueTitle` varchar(255) NOT NULL,
  `IssueCategoryId` int(11) NOT NULL,
  `IssueMilestoneId` int(11) NOT NULL,
  `IssuePriorityId` int(11) NOT NULL,
  `IssueCreatorId` int(11) NOT NULL,
  `IssueOwnerId` int(11) NOT NULL,
  `IssueAssignedId` int(11) NOT NULL,
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `Disabled` tinyint(1) NOT NULL DEFAULT '0',
  `DateNeeded` datetime DEFAULT NULL,
  `LevelOfEffort` float DEFAULT '0',
  `StartDate` datetime DEFAULT NULL,
  `EndDate` datetime DEFAULT NULL,
  UNIQUE KEY `IssueId` (`IssueId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Date issue was started' AUTO_INCREMENT=1 ;

--
-- Dumping data for table `Issues`
--


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

--
-- Stand-in structure for view `IssuesView`
--
CREATE TABLE IF NOT EXISTS `IssuesView` (
`IssueId` int(11)
,`ProjectId` int(11)
,`IssueTitle` varchar(255)
,`IssueCategoryId` int(11)
,`IssueMilestoneId` int(11)
,`IssuePriorityId` int(11)
,`IssueCreatorId` int(11)
,`IssueOwnerId` int(11)
,`IssueAssignedId` int(11)
,`DateCreated` timestamp
,`Disabled` tinyint(1)
,`DateNeeded` datetime
,`LevelOfEffort` float
,`StartDate` datetime
,`EndDate` datetime
,`ProjectName` varchar(255)
,`PriorityName` varchar(50)
,`MilestoneName` varchar(50)
,`AssignedDisplayName` varchar(101)
,`OwnerDisplayName` varchar(101)
,`CreatorDisplayName` varchar(101)
,`CreatorUser` varchar(100)
,`OwnerUser` varchar(100)
,`AssignedUser` varchar(100)
,`CategoryName` varchar(20)
,`CreatorUnit` varchar(50)
);
-- --------------------------------------------------------

--
-- Table structure for table `ProjectCategories`
--

CREATE TABLE IF NOT EXISTS `ProjectCategories` (
  `CategoryId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique category identifier',
  `CategoryName` varchar(20) NOT NULL,
  `ProjectId` int(11) NOT NULL,
  `CategoryTitle` varchar(100) DEFAULT NULL,
  UNIQUE KEY `CategoryId` (`CategoryId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Project which owns the category' AUTO_INCREMENT=51 ;

--
-- Dumping data for table `ProjectCategories`
--

INSERT INTO `ProjectCategories` (`CategoryId`, `CategoryName`, `ProjectId`, `CategoryTitle`) VALUES
(31, 'Management', 8, NULL),
(32, 'Management', 9, NULL),
(39, 'Management', 16, NULL),
(28, 'Management', 5, NULL),
(30, 'Management', 7, NULL),
(29, 'Management', 6, NULL),
(10, 'Feedback', 0, 'Feedback'),
(38, 'Management', 15, NULL),
(37, 'Management', 14, NULL),
(36, 'Management', 13, NULL),
(35, 'Management', 12, NULL),
(27, 'Management', 4, NULL),
(33, 'Management', 10, NULL),
(34, 'Management', 11, NULL),
(40, 'Management', 17, NULL),
(41, 'Management', 18, NULL),
(42, 'Management', 19, NULL),
(43, 'Management', 20, NULL),
(44, 'Management', 21, NULL),
(45, 'Management', 22, NULL),
(46, 'Management', 23, NULL),
(47, 'Management', 28, NULL),
(48, 'Management', 30, NULL),
(49, 'Management', 31, NULL),
(50, 'Management', 32, NULL);

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

--
-- Table structure for table `ProjectMembers`
--

CREATE TABLE IF NOT EXISTS `ProjectMembers` (
  `UserId` int(11) NOT NULL,
  `ProjectId` int(11) DEFAULT NULL,
  `Trail` varchar(4000) DEFAULT NULL COMMENT 'Tab trail arrays'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='User ID who is assigned to the project';

--
-- Dumping data for table `ProjectMembers`
--

INSERT INTO `ProjectMembers` (`UserId`, `ProjectId`, `Trail`) VALUES
(12, 0, '529,0,LucasCo,0<br>5,121,ProMan,0<br>1688,0,CS_Case_Console,0<br>2129,0,GuestBookReport,0<br>1609,2107,Time,0<br>1609,2064,Abortion,0<br>1609,2374,Candidate Quotes,0<br>1609,2049,Eco-Hysteria,0<br>1609,2118,Effeminism ,0<br>1,52,Home,0<br>1603,0,Alex Salem,0<br>2163,0,Test,0<br>1818,0,DeBug_View,0<br>1819,0,DeBug_Clear,0<br>527,0,NLPC,0<br>2136,0,DataDictionary,0<br>13,0,ProjectAdmin,0<br>2,0,Admin,0<br>2108,0,Search,0<br>10,0,Tabs,0<br>10,2276,FTP,0<br>10,2760,Email,0<br>5,549,Randy Lucas,0<br>2139,0,HotForms,0<br>545,0,7L Productions,0<br>1596,0,Lucas Properties,0<br>1609,0,Blog,0<br>1609,2867,Quran,0<br>62,0,Contacts,0<br>2760,0,Email,0<br>2969,0,Sunday Worship Service,0<br>6,0,Login/Logout,0<br>121,0,ProMan,0<br>4,0,Database,0<br>2431,0,SessionControl,0<br>544,0,System,0<br>1686,0,ControlSystem,0<br>1631,0,SystemInfo,0<br>1595,0,Questionnaire,0<br>61,0,AccountRequest,0<br>2978,0,BAMA,0<br>205,0,Links,0<br>549,0,Randy Lucas,0<br>17,0,Calendar,0<br>1,121,ProMan,0<br>5,0,Projects,0<br>5,527,NLPC,0<br>1,undefined,Home,0<br>1,0,Home,0<br>52,121,ProMan*,0'),
(12, 4, '1655,0,News Letter,0<br>1652,0,Tour,0<br>1664,0,Pastor,0<br>2862,0,Prayer List - 2015-02-22 10:04:12 - rl,0<br>2863,0,Prayer List - 2015-02-22 10:19:25 - rl,0<br>2859,0,Prayer List - 2015-02-22 09:58:54 - rl - 2015-02-22 09:59:07 - rl,0<br>2856,0,Prayer List - 2015-02-22 09:55:07 - rl,0<br>2857,0,Prayer List - 2015-02-22 09:57:40 - rl,0<br>2860,0,Prayer List - 2015-02-22 09:59:46 - rl,0<br>2861,0,Prayer List - 2015-02-22 10:00:17 - rl,0<br>2858,0,Prayer List - 2015-02-22 09:58:54 - rl,0<br>2276,0,FTP,0<br>535,0,Individuals,0<br>5,527,NLPC,0<br>532,0,Businesses,0<br>1596,1596,Lucas Properties,0<br>52,17,Help*,0<br>61,0,AccountRequest,0<br>52,61,Help*,0<br>7,0,Reports,0<br>7,1810,GuestBook List,0<br>52,52,Help*,0<br>2047,0,Announcement,0<br>550,0,GuestBook,0<br>52,550,Help*,0<br>1810,0,GuestBook List,0<br>205,0,Links,0<br>205,1661,Ministry,0<br>205,2527,Christ Transformation,0<br>2108,0,Search,0<br>2760,0,Email,0<br>2296,0,Prayer List,0<br>62,0,Contacts,0<br>1,undefined,Home,0<br>13,0,ProjectAdmin,0<br>13,527,NLPC,0<br>13,549,Randy Lucas,0<br>1,527,NLPC,0<br>1596,0,Lucas Properties,0<br>6,0,Login/Logout,0<br>1,52,Home,0<br>2279,0,Services,0<br>2032,0,Dotster,0<br>17,0,Calendar,0<br>2978,0,BAMA,0<br>1,0,Home,0<br>52,527,NLPC*,0<br>1656,0,Worship Service,0<br>5,0,Projects,0<br>549,0,Randy Lucas,0'),
(49, 4, ''),
(49, 5, ''),
(12, 5, '52,1708,CS_Cases*<br>1810,0,GuestBook List<br>58,0,MyProfile<br>17,0,Calendar<br>59,0,Feedback<br>62,0,Contacts<br>205,0,Links<br>108,1594,Calendar Viewer<br>104,0,Tools<br>108,0,ToolAdmin<br>108,1813,Test tool<br>108,1888,GooglePurchase<br>121,0,ProMan<br>1,0,Home<br>52,529,LucasCo*<br>549,0,Randy Lucas<br>10,1596,Lucas Properties,0<br>10,11,Schedule,0<br>1,13,Home,0<br>6,0,Login/Logout,0<br>1819,0,DeBug_Clear,0<br>13,1596,Lucas Properties,0<br>1818,0,DeBug_View,0<br>3,0,Users,0<br>11,0,Schedule,0<br>2,0,Admin,0<br>10,1576,Purchase,0<br>544,0,System,0<br>1888,0,GooglePurchase,0<br>13,549,Randy Lucas,0<br>13,0,ProjectAdmin,0<br>13,529,LucasCo,0<br>58,0,MyProfile,0<br>62,0,Contacts,0<br>545,0,7L Productions,0<br>545,545,7L Productions,0<br>1810,0,GuestBook List,0<br>4,0,Database,0<br>10,0,Tabs,0<br>10,4,Database,0<br>549,0,Randy Lucas,0<br>121,0,ProMan,0<br>1596,0,Lucas Properties,0<br>530,0,eRacer,0<br>535,0,Individuals,0<br>5,0,Projects,0<br>5,530,eRacer,0<br>2479,2479,MaxVac$,0<br>1,0,Home,0<br>52,529,LucasCo*,0'),
(12, 6, '62,0,Contacts,0<br>61,0,AccountRequest,0<br>1576,1623,Let Me Tell You About Jesus,0<br>52,2441,Head studs*,0<br>1581,0,PurchaseAdmin,0<br>1589,1589,Ignition,0<br>1584,0,Drive Train,0<br>52,2461,SVO*,0<br>52,1589,Ignition*,0<br>52,2460,SVO 428*,0<br>52,2462,ORIGINAL*,0<br>52,1593,Boss 302 stroker*,0<br>52,2463,MSD*,0<br>2460,2460,SVO 428,0<br>58,0,MyProfile,0<br>1576,2460,SVO 428,0<br>1593,0,Boss 302 stroker,0<br>1583,0,Engines,0<br>1593,1593,Boss 302 stroker,0<br>2460,0,SVO 428,0<br>531,0,Wild Blue Yonder,0<br>1576,0,Purchase,0<br>1576,1593,Boss 302 stroker,0<br>1576,1583,Engines,0<br>52,1583,Engines*,0<br>52,2465,EFI stuff*,0<br>51,530,eRacer,0<br>2465,0,EFI stuff,0<br>52,2471,EFI*,0<br>1,52,Home,0<br>549,0,Randy Lucas,0<br>1586,0,Accessories,0<br>52,530,eRacer*,0<br>205,1633,Weather,0<br>206,0,LinkAdmin,0<br>52,2481,Drag Links*,0<br>52,1577,Yahoo*,0<br>52,1579,Dirt Links*,0<br>1592,0,LMS Asphalt Chassis,0<br>52,2520,LM*,0<br>1888,0,GooglePurchase,0<br>1,0,Home,0<br>5,0,Projects,0<br>532,0,Businesses,0<br>529,0,LucasCo,0<br>1596,0,Lucas Properties,0<br>1589,0,Ignition,0<br>1609,0,Blog,0<br>205,0,Links,0<br>205,1599,Pictures,0'),
(49, 6, ''),
(49, 7, ''),
(12, 7, '<br>1,0,Home<br>52,531,Wild Blue Yonder*<br>1596,0,Lucas Properties<br>545,0,7L Productions,undefined<br>1,0,Home,<br>52,531,Wild Blue Yonder*,undefined<br>1596,0,Lucas Properties,undefined<br>62,0,Contacts,0<br>1637,0,ProjectContact,0<br>58,0,MyProfile,0<br>13,1596,Lucas Properties,0<br>13,549,Randy Lucas,0<br>121,0,ProMan,0<br>13,0,ProjectAdmin,0<br>13,531,Wild Blue Yonder,0<br>52,2456,BlueGrassGospelJam*,0<br>1596,0,Lucas Properties,0<br>530,0,eRacer,0<br>17,0,Calendar,0<br>2048,2456,BlueGrassGospelJam,0<br>2047,2456,AccousticGospelJam,0<br>2048,0,AnnouncementAdmin,0<br>2048,2456,AccousticGospelJam,0<br>1,0,Home,0<br>52,531,Wild Blue Yonder*,0<br>2047,0,Announcement,0'),
(12, 8, '<br>1601,0,Roger Lucas,0<br>549,0,Randy Lucas,0<br>1596,0,Lucas Properties,0<br>121,0,ProMan,0<br>205,2128,Games,0<br>205,1662,Eddie Lucas Family,0<br>205,2077,Music,0<br>1576,0,Purchase,0<br>5,549,Randy Lucas,0<br>5,0,Projects,0<br>6,0,Login/Logout,0<br>1,0,Home,0<br>52,536,Eddie Lucas Family*,0<br>1663,0,Pictures,0<br>546,0,Huguenots,0<br>550,0,GuestBook,0<br>61,0,AccountRequest,0<br>58,0,MyProfile,0<br>1810,0,GuestBook List,0<br>542,0,Mom`s Property,0<br>52,1635,Mom`s Property*,0<br>1598,0,Shop Expenses,0<br>52,1636,Shop*,0<br>62,0,Contacts,0<br>1637,0,ProjectContact,0<br>205,0,Links,0<br>205,546,Huguenots,0<br>205,1663,Pictures,0'),
(49, 8, ''),
(12, 10, '<br>1641,0,Randy Lucas<br>52,1821,Randy`s Gospel Music*<br>545,0,7L Productions<br>1596,0,Lucas Properties<br>549,0,Randy Lucas<br>1,0,Home<br>52,545,7L Productions*<br>5,0,Projects<br>121,0,ProMan<br>1,0,Home,<br>52,545,7L Productions*,undefined<br>121,0,ProMan,undefined<br>17,0,Calendar,0<br>1551,0,Michael Lucas,0<br>1615,0,Artists,0<br>1670,0,Movies,0<br>549,0,Randy Lucas,0<br>1667,0,Liz Salem,0<br>1641,0,Randy Lucas,0<br>5,0,Projects,0<br>1,0,Home,0<br>52,545,7L Productions*,0<br>1596,0,Lucas Properties,0'),
(49, 10, ''),
(49, 11, ''),
(12, 11, '52,549,Randy Lucas*,0<br>1609,2238,Way,0<br>1609,2302,Vision,0<br>52,2989,copy of Vision*,0<br>52,2838,Restoration*,0<br>1609,2838,Restoration,0<br>1609,2507,Integrity,0<br>52,2989,Imagination*,0<br>2981,0,Clients,0<br>61,0,AccountRequest,0<br>534,0,Families,0<br>535,0,Individuals,0<br>532,0,Businesses,0<br>1813,0,VectorGraphicsChart,0<br>2060,0,Diagnostics,0<br>2032,0,Dotster,0<br>1628,0,Personal,0<br>527,0,NLPC,0<br>1661,0,Ministry,0<br>104,0,Tools,0<br>2,0,Admin,0<br>544,0,System,0<br>205,2981,Clients,0<br>2152,0,Poetry,0<br>2991,0,JESUSSEVENL,0<br>2986,0,NRA,0<br>1609,2442,Notes,0<br>1829,0,BookMarks,0<br>2972,0,SetTab,0<br>51,0,Wiki,0<br>205,0,Links,0<br>205,2032,Dotster,0<br>205,1628,Personal,0<br>246,0,HowTo,0<br>5,0,Projects,0<br>5,2978,BAMA,0<br>2760,0,Email,0<br>2969,0,Sunday Worship Service,0<br>1860,0,Songs,0<br>2125,0,Messages,0<br>1609,0,Blog,0<br>1609,2989,Imagination,0<br>1609,2335,Salvation,0<br>2870,2870,Save,0<br>52,2335,Salvation*,0<br>17,0,Calendar,0<br>2376,0,NetFlix,0<br>2978,0,BAMA,0<br>1,0,Home,0<br>6,0,Login/Logout,0'),
(12, 32, '6,0,Login/Logout,0<br>1,0,Home,0<br>2981,0,Clients,0<br>5,0,Projects,0<br>5,532,Businesses,0<br>5,121,ProMan,0'),
(12, 12, ''),
(49, 12, ''),
(49, 13, ''),
(12, 13, ''),
(50, 5, ''),
(50, 4, ''),
(50, 8, ''),
(50, 11, '<br>1609,1769,Harleys<br>1609,1822,Department of Motor Vehicles<br>1551,0,Michael Lucas<br>1,0,Home<br>52,549,Randy Lucas*<br>1609,0,Blog<br>6,0,Login/Logout'),
(49, 14, ''),
(50, 14, '<br>1609,1609,Blog<br>6,0,Login/Logout<br>1,0,Home<br>52,1551,Michael Lucas*<br>1764,0,BlogAdmin<br>1609,0,Blog<br>5,0,Projects<br>549,0,Randy Lucas'),
(12, 14, '<br>121,0,ProMan<br>1,1551,Michael Lucas<br>6,0,Login/Logout<br>1,0,Home<br>52,1551,Michael Lucas*<br>5,0,Projects<br>549,0,Randy Lucas<br>536,0,Eddie Lucas Family,0<br>5,121,ProMan,0<br>13,0,ProjectAdmin,0<br>13,535,Individuals,0<br>13,1551,Michael Lucas,0<br>1888,0,GooglePurchase,0<br>549,0,Randy Lucas,0<br>1609,0,Blog,0<br>205,0,Links,0<br>1,0,Home,0<br>52,1551,Michael Lucas*,0<br>5,0,Projects,0<br>5,549,Randy Lucas,0'),
(51, 6, ''),
(49, 15, ''),
(50, 15, ''),
(12, 18, '<br>1,0,Home<br>52,1603,Alex Salem*<br>5,0,Projects<br>1596,0,Lucas Properties<br>206,0,LinkAdmin,0<br>206,2109,About Alex,0<br>5,121,ProMan,0<br>549,0,Randy Lucas,0<br>2109,0,About Alex,0<br>1605,0,Elliman,0<br>5,549,Randy Lucas,0<br>5,1603,Alex Salem,0<br>1,0,Home,0<br>52,1603,Alex Salem*,0<br>5,0,Projects,0<br>535,0,Individuals,0<br>549,549,Randy Lucas,0'),
(49, 18, ''),
(50, 18, ''),
(12, 17, '<br>1,0,Home<br>52,1601,Roger Lucas*<br>5,0,Projects<br>549,0,Randy Lucas<br>5,549,Randy Lucas,0<br>5,121,ProMan,0<br>1,0,Home,0<br>52,1601,Roger Lucas*,0<br>5,0,Projects,0<br>549,0,Randy Lucas,0'),
(50, 17, ''),
(49, 17, ''),
(12, 20, '<br>1637,0,ProjectContact<br>1,0,Home<br>52,1639,Judy`s Day Care*<br>5,0,Projects<br>549,0,Randy Lucas<br>5,1639,Judy`s Day Care,0<br>52,1639,Judy`s Day Care*,0<br>1640,0,LampLite,0<br>73,0,DocAdmin,0<br>73,2103,WakeTech Class,0<br>1637,0,ProjectContact,0<br>19,2103,WakeTech Class,0<br>19,0,Documents,0<br>2103,0,WakeTech Class,0<br>549,0,Randy Lucas,0<br>1,0,Home,0<br>52,1639,Judy Lucas*,0<br>5,0,Projects,0<br>5,549,Randy Lucas,0'),
(49, 20, ''),
(12, 21, '<br>1,0,Home<br>52,1640,LampLite*<br>549,0,Randy Lucas<br>121,0,ProMan,0<br>52,1845,ProManSoftware*,0<br>52,1848,ProManSupport*,0<br>549,0,Randy Lucas,0<br>52,121,ProMan*,0<br>52,549,Randy Lucas*,0<br>52,2479,MaxVacs*,0<br>5,0,Projects,0<br>5,121,ProMan,0<br>13,0,ProjectAdmin,0<br>13,2479,MaxVacs,0<br>2479,0,MaxVacs,0<br>1,0,Home,0<br>52,1640,LampLite*,0<br>527,0,NLPC,0'),
(12, 22, '<br>1576,0,Purchase<br>1644,0,In Eire<br>121,0,ProMan<br>1,0,Home<br>52,1642,Liz Lucas Salem*<br>549,0,Randy Lucas<br>1644,0,In Eire,0<br>1609,0,Blog,0<br>58,0,MyProfile,0<br>2,0,Admin,0<br>1595,0,Questionnaire,0<br>549,0,Randy Lucas,0<br>1,0,Home,0<br>52,1642,Liz Lucas Salem*,0<br>1637,0,ProjectContact,0'),
(49, 22, ''),
(50, 22, ''),
(52, 22, ''),
(52, 17, ''),
(52, 11, ''),
(52, 14, ''),
(50, 6, ''),
(52, 6, ''),
(52, 10, NULL),
(52, 4, ''),
(52, 5, ''),
(52, 7, ''),
(52, 8, ''),
(52, 15, ''),
(52, 21, ''),
(52, 18, ''),
(52, 20, ''),
(51, 5, ''),
(12, 24, NULL),
(12, 15, '1,undefined,Home,0<br>2464,0,MortgageCalculator,0<br>52,1646,ViewProperty*,0<br>7,2638,Cash Flow,0<br>74,1597,777 Summary,0<br>74,2638,Cash Flow,0<br>7,0,Reports,0<br>7,2638,Income/Expense,0<br>7,2782,copy of Cash Flow,0<br>74,2782,copy of Cash Flow,0<br>74,2638,Income/Expense,0<br>74,2783,copy of Income/Expense,0<br>74,2111,ExpensesByTypeByYear,0<br>74,2783,Income/Expense,0<br>1646,CaseId=8908,ViewProperty,0<br>2157,0,OfferToPurchase,0<br>62,0,Contacts,0<br>550,0,GuestBook,0<br>58,0,MyProfile,0<br>1646,CaseId=11482,ViewProperty,0<br>2111,0,ExpensesByTypeByYear,0<br>1595,0,Questionnaire,0<br>61,0,AccountRequest,0<br>10,0,Tabs,0<br>10,1645,Properties,0<br>1646,CaseId=2719,ViewProperty,0<br>1646,0,ViewProperty,0<br>1646,CaseId=9621,ViewProperty,0<br>121,0,ProMan,0<br>1645,0,Properties,0<br>1646,CaseId=51,ViewProperty,0<br>4,0,Database,0<br>74,0,ReportAdmin,0<br>74,1635,Mom`s Property,0<br>2409,0,Vendors/Clients,0<br>13,0,ProjectAdmin,0<br>13,1596,Lucas Properties,0<br>1636,0,Shop,0<br>2638,0,Cash Flow,0<br>2783,0,Income/Expense,0<br>2760,0,Email,0<br>1,17,Home,0<br>17,0,Calendar,0<br>1635,0,Mom`s Property,0<br>6,0,Login/Logout,0<br>1850,0,RentalAgreement,0<br>1,0,Home,0<br>52,1596,Lucas Properties*,0<br>1646,CaseId=2,ViewProperty,0<br>1763,0,Transactions,0'),
(51, 0, NULL),
(12, 30, '<br>52,1,Help*,0<br>51,0,Wiki,0<br>52,1888,GooglePurchase*,0<br>52,1640,LampLite*,0<br>550,0,GuestBook,0<br>1637,0,ProjectContact,0<br>5,549,Randy Lucas,0<br>549,0,Randy Lucas,0<br>52,1861,Jesus*,0<br>5,0,Projects,0<br>1551,0,Michael Lucas,0<br>1,0,Home,0'),
(49, 30, NULL),
(50, 30, NULL),
(51, 30, NULL),
(52, 30, NULL),
(12, 28, NULL),
(53, 4, NULL),
(67, 0, NULL),
(57, 4, NULL),
(58, 4, NULL),
(59, 4, NULL),
(60, 4, NULL),
(66, 4, NULL),
(54, 4, NULL),
(55, 4, NULL),
(56, 4, NULL),
(61, 4, NULL),
(62, 4, NULL),
(63, 4, NULL),
(64, 4, NULL),
(65, 4, NULL),
(12, 31, '<br>549,0,Randy Lucas,0<br>13,549,Randy Lucas,0<br>13,0,ProjectAdmin,0<br>13,2479,MaxVacs,0<br>2108,0,Search,0<br>1595,0,Questionnaire,0<br>10,13,ProjectAdmin,0<br>2431,0,SessionControl,0<br>1,2479,MaxVacs,0<br>52,52,Help*,0<br>10,2479,MaxVacs,0<br>17,0,Calendar,0<br>1,52,Home,0<br>10,2479,MaxVac$,0<br>1,10,Home,0<br>10,0,Tabs,0<br>10,1,Home,0<br>5,527,NLPC,0<br>5,531,Wild Blue Yonder,0<br>550,0,GuestBook,0<br>61,0,AccountRequest,0<br>5,0,Projects,0<br>5,121,ProMan,0<br>1,0,Home,0'),
(69, 4, NULL),
(68, 4, '<br>7,0,Reports,0<br>3,0,Users,0<br>1664,0,Pastor,0<br>17,0,Calendar,0<br>205,1860,Songs,0<br>205,1652,Tour,0<br>1656,1656,Worship Service,0<br>205,2279,Services,0<br>205,2645,Rest Home Sing,0<br>52,0,*,0<br>5,0,Projects,0<br>5,527,NLPC,0<br>205,0,Links,0<br>205,1656,Worship Service,0<br>52,2586,Church*,0<br>1,0,Home,0<br>52,527,NLPC*,0<br>52,2304,Praise*,0<br>2276,0,FTP,0<br>1656,0,Worship Service,0<br>58,0,MyProfile,0<br>6,0,Login/Logout,0'),
(68, 11, '<br>1,0,Home,0<br>6,0,Login/Logout,0'),
(71, 32, '2981,0,Clients,0<br>6,0,Login/Logout,0'),
(72, 32, NULL),
(73, 32, NULL);

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

--
-- Table structure for table `ProjectMilestones`
--

CREATE TABLE IF NOT EXISTS `ProjectMilestones` (
  `MilestoneId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique milestone identifier',
  `ProjectId` int(11) NOT NULL,
  `MilestoneName` varchar(50) NOT NULL,
  `MilestoneImageUrl` varchar(255) DEFAULT NULL,
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `DefaultSelected` tinyint(1) DEFAULT '0',
  `ActionSP` varchar(100) DEFAULT NULL,
  `MileStoneDescription` varchar(255) DEFAULT NULL,
  `EarnedValue` decimal(6,2) NOT NULL DEFAULT '0.00' COMMENT 'Earned value percent',
  `Category` int(11) NOT NULL DEFAULT '0' COMMENT 'Category ',
  `MilestoneOrder` varchar(4) NOT NULL DEFAULT '1' COMMENT 'Milestone order',
  UNIQUE KEY `MilestoneId` (`MilestoneId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Project which owns the milestone' AUTO_INCREMENT=172 ;

--
-- Dumping data for table `ProjectMilestones`
--

INSERT INTO `ProjectMilestones` (`MilestoneId`, `ProjectId`, `MilestoneName`, `MilestoneImageUrl`, `DateCreated`, `DefaultSelected`, `ActionSP`, `MileStoneDescription`, `EarnedValue`, `Category`, `MilestoneOrder`) VALUES
(6, 2, 'Queued', '1', '2007-03-14 21:09:56', 1, '', 'Item has not been assigned for work', 0.00, 0, '1'),
(7, 2, 'Assigned', '1', '2007-03-14 21:09:29', 0, '', 'Item has been assigned for action', 0.00, 0, '1'),
(8, 2, 'In Progress', '1', '2007-03-14 21:09:29', 0, '', 'Work has begun by the responsible person', 0.00, 0, '1'),
(9, 2, 'Addressed', '1', '2007-03-14 21:09:29', 0, '', 'Person responsible has taken action on the item', 0.00, 0, '1'),
(10, 2, 'Completed', '1', '2007-03-14 21:09:29', 0, '', 'Item has been completed (closed)', 0.00, 0, '1'),
(34, 0, 'Queued', '1', '2007-03-14 21:09:56', 1, '', '', 0.00, 0, '1'),
(35, 0, 'Assigned', '1', '2007-03-14 21:09:29', 0, '', '', 0.00, 0, '1'),
(36, 0, 'In Progress', '1', '2007-03-14 21:09:29', 0, '', '', 0.00, 0, '1'),
(37, 0, 'Addressed', '1', '2007-03-14 21:09:29', 0, '', '', 0.00, 0, '1'),
(38, 0, 'Completed', '1', '2007-03-14 21:09:29', 0, '', '', 0.00, 0, '1'),
(57, 4, 'Completed', NULL, '2007-03-14 21:09:29', 0, '', 'Completed - usually set by the person who created the issue', 0.00, 0, '1'),
(56, 4, 'Addressed', NULL, '2007-03-14 21:09:29', 0, '', 'Addressed by the assigned to person', 0.00, 0, '1'),
(55, 4, 'Assigned', NULL, '2007-03-14 21:09:29', 0, '', 'Assigned to user', 0.00, 0, '1'),
(54, 4, 'Queued', NULL, '2007-03-14 21:09:56', 1, '', 'Created but not yes assigned for work', 0.00, 0, '1'),
(58, 5, 'Queued', NULL, '2007-03-15 07:19:07', 0, '', '', 0.00, 0, '1'),
(59, 5, 'Assigned', NULL, '2007-03-15 07:18:57', 0, '', '', 0.00, 0, '1'),
(60, 5, 'Addressed', NULL, '2007-03-15 07:19:21', 0, '', '', 0.00, 0, '1'),
(61, 5, 'Completed', NULL, '2007-03-15 07:19:57', 0, '', '', 0.00, 0, '1'),
(62, 6, 'Queued', NULL, '2007-03-15 09:45:01', 1, NULL, NULL, 0.00, 0, '1'),
(63, 6, 'Assigned', NULL, '2007-03-15 09:45:01', 0, NULL, NULL, 0.00, 0, '1'),
(64, 6, 'In Progress', NULL, '2007-03-15 09:45:01', 0, NULL, NULL, 0.00, 0, '1'),
(65, 6, 'Addressed', NULL, '2007-03-15 09:45:01', 0, NULL, NULL, 0.00, 0, '1'),
(66, 6, 'Completed', NULL, '2007-03-15 09:45:01', 0, NULL, NULL, 0.00, 0, '1'),
(67, 7, 'Queued', NULL, '2007-03-15 10:05:40', 1, NULL, NULL, 0.00, 0, '1'),
(68, 7, 'Assigned', NULL, '2007-03-15 10:05:40', 0, NULL, NULL, 0.00, 0, '1'),
(69, 7, 'In Progress', NULL, '2007-03-15 10:05:40', 0, NULL, NULL, 0.00, 0, '1'),
(70, 7, 'Addressed', NULL, '2007-03-15 10:05:40', 0, NULL, NULL, 0.00, 0, '1'),
(71, 7, 'Completed', NULL, '2007-03-15 10:05:40', 0, NULL, NULL, 0.00, 0, '1'),
(72, 8, 'Queued', NULL, '2007-03-15 21:14:07', 1, NULL, NULL, 0.00, 0, '1'),
(73, 8, 'Assigned', NULL, '2007-03-15 21:14:07', 0, NULL, NULL, 0.00, 0, '1'),
(74, 8, 'In Progress', NULL, '2007-03-15 21:14:07', 0, NULL, NULL, 0.00, 0, '1'),
(75, 8, 'Addressed', NULL, '2007-03-15 21:14:07', 0, NULL, NULL, 0.00, 0, '1'),
(76, 8, 'Completed', NULL, '2007-03-15 21:14:07', 0, NULL, NULL, 0.00, 0, '1'),
(77, 9, 'Queued', NULL, '2007-03-20 00:04:30', 1, NULL, NULL, 0.00, 0, '1'),
(78, 9, 'Assigned', NULL, '2007-03-20 00:04:30', 0, NULL, NULL, 0.00, 0, '1'),
(79, 9, 'In Progress', NULL, '2007-03-20 00:04:30', 0, NULL, NULL, 0.00, 0, '1'),
(80, 9, 'Addressed', NULL, '2007-03-20 00:04:30', 0, NULL, NULL, 0.00, 0, '1'),
(81, 9, 'Completed', NULL, '2007-03-20 00:04:30', 0, NULL, NULL, 0.00, 0, '1'),
(82, 10, 'Queued', NULL, '2007-03-22 22:03:09', 1, NULL, NULL, 0.00, 0, '1'),
(83, 10, 'Assigned', NULL, '2007-03-22 22:03:09', 0, NULL, NULL, 0.00, 0, '1'),
(84, 10, 'In Progress', NULL, '2007-03-22 22:03:09', 0, NULL, NULL, 0.00, 0, '1'),
(85, 10, 'Addressed', NULL, '2007-03-22 22:03:09', 0, NULL, NULL, 0.00, 0, '1'),
(86, 10, 'Completed', NULL, '2007-03-22 22:03:09', 0, NULL, NULL, 0.00, 0, '1'),
(87, 11, 'Queued', NULL, '2007-04-14 14:13:53', 1, NULL, NULL, 0.00, 0, '1'),
(88, 11, 'Assigned', NULL, '2007-04-14 14:13:53', 0, NULL, NULL, 0.00, 0, '1'),
(89, 11, 'In Progress', NULL, '2007-04-14 14:13:53', 0, NULL, NULL, 0.00, 0, '1'),
(90, 11, 'Addressed', NULL, '2007-04-14 14:13:53', 0, NULL, NULL, 0.00, 0, '1'),
(91, 11, 'Completed', NULL, '2007-04-14 14:13:53', 0, NULL, NULL, 0.00, 0, '1'),
(92, 12, 'Queued', NULL, '2007-04-14 17:19:08', 1, NULL, NULL, 0.00, 0, '1'),
(93, 12, 'Assigned', NULL, '2007-04-14 17:19:08', 0, NULL, NULL, 0.00, 0, '1'),
(94, 12, 'In Progress', NULL, '2007-04-14 17:19:08', 0, NULL, NULL, 0.00, 0, '1'),
(95, 12, 'Addressed', NULL, '2007-04-14 17:19:08', 0, NULL, NULL, 0.00, 0, '1'),
(96, 12, 'Completed', NULL, '2007-04-14 17:19:08', 0, NULL, NULL, 0.00, 0, '1'),
(97, 13, 'Queued', NULL, '2007-04-14 17:28:00', 1, NULL, NULL, 0.00, 0, '1'),
(98, 13, 'Assigned', NULL, '2007-04-14 17:28:00', 0, NULL, NULL, 0.00, 0, '1'),
(99, 13, 'In Progress', NULL, '2007-04-14 17:28:00', 0, NULL, NULL, 0.00, 0, '1'),
(100, 13, 'Addressed', NULL, '2007-04-14 17:28:00', 0, NULL, NULL, 0.00, 0, '1'),
(101, 13, 'Completed', NULL, '2007-04-14 17:28:00', 0, NULL, NULL, 0.00, 0, '1'),
(102, 14, 'Queued', NULL, '2007-04-14 20:19:07', 1, NULL, NULL, 0.00, 0, '1'),
(103, 14, 'Assigned', NULL, '2007-04-14 20:19:07', 0, NULL, NULL, 0.00, 0, '1'),
(104, 14, 'In Progress', NULL, '2007-04-14 20:19:07', 0, NULL, NULL, 0.00, 0, '1'),
(105, 14, 'Addressed', NULL, '2007-04-14 20:19:07', 0, NULL, NULL, 0.00, 0, '1'),
(106, 14, 'Completed', NULL, '2007-04-14 20:19:07', 0, NULL, NULL, 0.00, 0, '1'),
(107, 15, 'Queued', NULL, '2007-10-03 10:58:55', 1, NULL, NULL, 0.00, 0, '1'),
(108, 15, 'Assigned', NULL, '2007-10-03 10:58:55', 0, NULL, NULL, 0.00, 0, '1'),
(109, 15, 'In Progress', NULL, '2007-10-03 10:58:55', 0, NULL, NULL, 0.00, 0, '1'),
(110, 15, 'Addressed', NULL, '2007-10-03 10:58:55', 0, NULL, NULL, 0.00, 0, '1'),
(111, 15, 'Completed', NULL, '2007-10-03 10:58:55', 0, NULL, NULL, 0.00, 0, '1'),
(112, 16, 'Queued', NULL, '2007-10-03 11:03:05', 1, NULL, NULL, 0.00, 0, '1'),
(113, 16, 'Assigned', NULL, '2007-10-03 11:03:05', 0, NULL, NULL, 0.00, 0, '1'),
(114, 16, 'In Progress', NULL, '2007-10-03 11:03:05', 0, NULL, NULL, 0.00, 0, '1'),
(115, 16, 'Addressed', NULL, '2007-10-03 11:03:05', 0, NULL, NULL, 0.00, 0, '1'),
(116, 16, 'Completed', NULL, '2007-10-03 11:03:05', 0, NULL, NULL, 0.00, 0, '1'),
(117, 17, 'Queued', NULL, '2007-10-22 05:35:07', 1, NULL, NULL, 0.00, 0, '1'),
(118, 17, 'Assigned', NULL, '2007-10-22 05:35:07', 0, NULL, NULL, 0.00, 0, '1'),
(119, 17, 'In Progress', NULL, '2007-10-22 05:35:07', 0, NULL, NULL, 0.00, 0, '1'),
(120, 17, 'Addressed', NULL, '2007-10-22 05:35:07', 0, NULL, NULL, 0.00, 0, '1'),
(121, 17, 'Completed', NULL, '2007-10-22 05:35:07', 0, NULL, NULL, 0.00, 0, '1'),
(122, 18, 'Queued', NULL, '2007-11-05 10:27:37', 1, NULL, NULL, 0.00, 0, '1'),
(123, 18, 'Assigned', NULL, '2007-11-05 10:27:37', 0, NULL, NULL, 0.00, 0, '1'),
(124, 18, 'In Progress', NULL, '2007-11-05 10:27:37', 0, NULL, NULL, 0.00, 0, '1'),
(125, 18, 'Addressed', NULL, '2007-11-05 10:27:37', 0, NULL, NULL, 0.00, 0, '1'),
(126, 18, 'Completed', NULL, '2007-11-05 10:27:37', 0, NULL, NULL, 0.00, 0, '1'),
(127, 19, 'Queued', NULL, '2007-11-20 21:30:10', 1, NULL, NULL, 0.00, 0, '1'),
(128, 19, 'Assigned', NULL, '2007-11-20 21:30:10', 0, NULL, NULL, 0.00, 0, '1'),
(129, 19, 'In Progress', NULL, '2007-11-20 21:30:10', 0, NULL, NULL, 0.00, 0, '1'),
(130, 19, 'Addressed', NULL, '2007-11-20 21:30:10', 0, NULL, NULL, 0.00, 0, '1'),
(131, 19, 'Completed', NULL, '2007-11-20 21:30:10', 0, NULL, NULL, 0.00, 0, '1'),
(132, 20, 'Queued', NULL, '2007-12-20 10:18:06', 1, NULL, NULL, 0.00, 0, '1'),
(133, 20, 'Assigned', NULL, '2007-12-20 10:18:06', 0, NULL, NULL, 0.00, 0, '1'),
(134, 20, 'In Progress', NULL, '2007-12-20 10:18:06', 0, NULL, NULL, 0.00, 0, '1'),
(135, 20, 'Addressed', NULL, '2007-12-20 10:18:06', 0, NULL, NULL, 0.00, 0, '1'),
(136, 20, 'Completed', NULL, '2007-12-20 10:18:06', 0, NULL, NULL, 0.00, 0, '1'),
(137, 21, 'Queued', NULL, '2007-12-20 21:43:17', 1, NULL, NULL, 0.00, 0, '1'),
(138, 21, 'Assigned', NULL, '2007-12-20 21:43:17', 0, NULL, NULL, 0.00, 0, '1'),
(139, 21, 'In Progress', NULL, '2007-12-20 21:43:17', 0, NULL, NULL, 0.00, 0, '1'),
(140, 21, 'Addressed', NULL, '2007-12-20 21:43:17', 0, NULL, NULL, 0.00, 0, '1'),
(141, 21, 'Completed', NULL, '2007-12-20 21:43:17', 0, NULL, NULL, 0.00, 0, '1'),
(142, 22, 'Queued', NULL, '2007-12-21 11:22:18', 1, NULL, NULL, 0.00, 0, '1'),
(143, 22, 'Assigned', NULL, '2007-12-21 11:22:18', 0, NULL, NULL, 0.00, 0, '1'),
(144, 22, 'In Progress', NULL, '2007-12-21 11:22:18', 0, NULL, NULL, 0.00, 0, '1'),
(145, 22, 'Addressed', NULL, '2007-12-21 11:22:18', 0, NULL, NULL, 0.00, 0, '1'),
(146, 22, 'Completed', NULL, '2007-12-21 11:22:18', 0, NULL, NULL, 0.00, 0, '1'),
(147, 23, 'Queued', NULL, '2008-01-24 22:21:32', 1, NULL, NULL, 0.00, 0, '1'),
(148, 23, 'Assigned', NULL, '2008-01-24 22:21:32', 0, NULL, NULL, 0.00, 0, '1'),
(149, 23, 'In Progress', NULL, '2008-01-24 22:21:32', 0, NULL, NULL, 0.00, 0, '1'),
(150, 23, 'Addressed', NULL, '2008-01-24 22:21:32', 0, NULL, NULL, 0.00, 0, '1'),
(151, 23, 'Completed', NULL, '2008-01-24 22:21:32', 0, NULL, NULL, 0.00, 0, '1'),
(152, 28, 'Queued', NULL, '2009-01-18 19:58:15', 1, NULL, NULL, 0.00, 0, '1'),
(153, 28, 'Assigned', NULL, '2009-01-18 19:58:15', 0, NULL, NULL, 0.00, 0, '1'),
(154, 28, 'In Progress', NULL, '2009-01-18 19:58:15', 0, NULL, NULL, 0.00, 0, '1'),
(155, 28, 'Addressed', NULL, '2009-01-18 19:58:15', 0, NULL, NULL, 0.00, 0, '1'),
(156, 28, 'Completed', NULL, '2009-01-18 19:58:15', 0, NULL, NULL, 0.00, 0, '1'),
(157, 30, 'Queued', NULL, '2009-03-17 21:45:19', 1, NULL, NULL, 0.00, 0, '1'),
(158, 30, 'Assigned', NULL, '2009-03-17 21:45:19', 0, NULL, NULL, 0.00, 0, '1'),
(159, 30, 'In Progress', NULL, '2009-03-17 21:45:19', 0, NULL, NULL, 0.00, 0, '1'),
(160, 30, 'Addressed', NULL, '2009-03-17 21:45:19', 0, NULL, NULL, 0.00, 0, '1'),
(161, 30, 'Completed', NULL, '2009-03-17 21:45:19', 0, NULL, NULL, 0.00, 0, '1'),
(162, 31, 'Queued', NULL, '2012-09-17 18:19:31', 1, NULL, NULL, 0.00, 0, '1'),
(163, 31, 'Assigned', NULL, '2012-09-17 18:19:31', 0, NULL, NULL, 0.00, 0, '1'),
(164, 31, 'In Progress', NULL, '2012-09-17 18:19:31', 0, NULL, NULL, 0.00, 0, '1'),
(165, 31, 'Addressed', NULL, '2012-09-17 18:19:31', 0, NULL, NULL, 0.00, 0, '1'),
(166, 31, 'Completed', NULL, '2012-09-17 18:19:31', 0, NULL, NULL, 0.00, 0, '1'),
(167, 32, 'Queued', NULL, '2015-10-20 16:14:26', 1, NULL, NULL, 0.00, 0, '1'),
(168, 32, 'Assigned', NULL, '2015-10-20 16:14:26', 0, NULL, NULL, 0.00, 0, '1'),
(169, 32, 'In Progress', NULL, '2015-10-20 16:14:26', 0, NULL, NULL, 0.00, 0, '1'),
(170, 32, 'Addressed', NULL, '2015-10-20 16:14:26', 0, NULL, NULL, 0.00, 0, '1'),
(171, 32, 'Completed', NULL, '2015-10-20 16:14:26', 0, NULL, NULL, 0.00, 0, '1');

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

--
-- Table structure for table `ProjectPriorities`
--

CREATE TABLE IF NOT EXISTS `ProjectPriorities` (
  `PriorityId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique priority identifier',
  `ProjectId` int(11) NOT NULL,
  `PriorityName` varchar(50) NOT NULL,
  `PriorityImageUrl` varchar(255) DEFAULT NULL,
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `DefaultSelected` tinyint(1) DEFAULT '0',
  UNIQUE KEY `PriorityId` (`PriorityId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Project which owns the priority entry' AUTO_INCREMENT=131 ;

--
-- Dumping data for table `ProjectPriorities`
--

INSERT INTO `ProjectPriorities` (`PriorityId`, `ProjectId`, `PriorityName`, `PriorityImageUrl`, `DateCreated`, `DefaultSelected`) VALUES
(69, 12, 'High', NULL, '2007-04-14 17:19:08', 0),
(67, 12, 'Low', NULL, '2007-04-14 17:19:08', 0),
(68, 12, 'Medium', NULL, '2007-04-14 17:19:08', 1),
(19, 0, 'Low', '1', '2006-07-31 00:00:00', 0),
(20, 0, 'Medium', '1', '2007-03-14 21:11:49', 1),
(21, 0, 'High', '1', '2006-07-31 00:00:00', 0),
(22, 0, 'Deliverable', '1', '2006-07-31 00:00:00', 0),
(38, 4, 'Low', NULL, '2007-03-14 21:11:21', 0),
(37, 4, 'Medium', NULL, '2007-03-14 21:11:49', 1),
(36, 4, 'High', NULL, '2007-03-14 21:11:21', 0),
(35, 4, 'Deliverable', NULL, '2007-03-14 21:11:21', 0),
(39, 5, 'Deliverable', NULL, '2007-03-15 07:20:22', 0),
(40, 5, 'High', NULL, '2007-03-15 07:20:53', 0),
(41, 5, 'Medium', NULL, '2007-03-15 07:21:01', 0),
(42, 5, 'Low', NULL, '2007-03-15 07:21:12', 0),
(43, 6, 'Low', NULL, '2007-03-15 09:45:01', 0),
(44, 6, 'Medium', NULL, '2007-03-15 09:45:01', 1),
(45, 6, 'High', NULL, '2007-03-15 09:45:01', 0),
(46, 6, 'Deliverable', NULL, '2007-03-15 09:45:01', 0),
(47, 7, 'Low', NULL, '2007-03-15 10:05:40', 0),
(48, 7, 'Medium', NULL, '2007-03-15 10:05:40', 1),
(49, 7, 'High', NULL, '2007-03-15 10:05:40', 0),
(50, 7, 'Deliverable', NULL, '2007-03-15 10:05:40', 0),
(51, 8, 'Low', NULL, '2007-03-15 21:14:07', 0),
(52, 8, 'Medium', NULL, '2007-03-15 21:14:07', 1),
(53, 8, 'High', NULL, '2007-03-15 21:14:07', 0),
(54, 8, 'Deliverable', NULL, '2007-03-15 21:14:07', 0),
(55, 9, 'Low', NULL, '2007-03-20 00:04:30', 0),
(56, 9, 'Medium', NULL, '2007-03-20 00:04:30', 1),
(57, 9, 'High', NULL, '2007-03-20 00:04:30', 0),
(58, 9, 'Deliverable', NULL, '2007-03-20 00:04:30', 0),
(59, 10, 'Low', NULL, '2007-03-22 22:03:09', 0),
(60, 10, 'Medium', NULL, '2007-03-22 22:03:09', 1),
(61, 10, 'High', NULL, '2007-03-22 22:03:09', 0),
(62, 10, 'Deliverable', NULL, '2007-03-22 22:03:09', 0),
(63, 11, 'Low', NULL, '2007-04-14 14:13:53', 0),
(64, 11, 'Medium', NULL, '2007-04-14 14:13:53', 1),
(65, 11, 'High', NULL, '2007-04-14 14:13:53', 0),
(66, 11, 'Deliverable', NULL, '2007-04-14 14:13:53', 0),
(70, 12, 'Deliverable', NULL, '2007-04-14 17:19:08', 0),
(71, 13, 'Low', NULL, '2007-04-14 17:28:00', 0),
(72, 13, 'Medium', NULL, '2007-04-14 17:28:00', 1),
(73, 13, 'High', NULL, '2007-04-14 17:28:00', 0),
(74, 13, 'Deliverable', NULL, '2007-04-14 17:28:00', 0),
(75, 14, 'Low', NULL, '2007-04-14 20:19:07', 0),
(76, 14, 'Medium', NULL, '2007-04-14 20:19:07', 1),
(77, 14, 'High', NULL, '2007-04-14 20:19:07', 0),
(78, 14, 'Deliverable', NULL, '2007-04-14 20:19:07', 0),
(79, 15, 'Low', NULL, '2007-10-03 10:58:55', 0),
(80, 15, 'Medium', NULL, '2007-10-03 10:58:55', 1),
(81, 15, 'High', NULL, '2007-10-03 10:58:55', 0),
(82, 15, 'Deliverable', NULL, '2007-10-03 10:58:55', 0),
(83, 16, 'Low', NULL, '2007-10-03 11:03:05', 0),
(84, 16, 'Medium', NULL, '2007-10-03 11:03:05', 1),
(85, 16, 'High', NULL, '2007-10-03 11:03:05', 0),
(86, 16, 'Deliverable', NULL, '2007-10-03 11:03:05', 0),
(87, 17, 'Low', NULL, '2007-10-22 05:35:07', 0),
(88, 17, 'Medium', NULL, '2007-10-22 05:35:07', 1),
(89, 17, 'High', NULL, '2007-10-22 05:35:07', 0),
(90, 17, 'Deliverable', NULL, '2007-10-22 05:35:07', 0),
(91, 18, 'Low', NULL, '2007-11-05 10:27:37', 0),
(92, 18, 'Medium', NULL, '2007-11-05 10:27:37', 1),
(93, 18, 'High', NULL, '2007-11-05 10:27:37', 0),
(94, 18, 'Deliverable', NULL, '2007-11-05 10:27:37', 0),
(95, 19, 'Low', NULL, '2007-11-20 21:30:10', 0),
(96, 19, 'Medium', NULL, '2007-11-20 21:30:10', 1),
(97, 19, 'High', NULL, '2007-11-20 21:30:10', 0),
(98, 19, 'Deliverable', NULL, '2007-11-20 21:30:10', 0),
(99, 20, 'Low', NULL, '2007-12-20 10:18:06', 0),
(100, 20, 'Medium', NULL, '2007-12-20 10:18:06', 1),
(101, 20, 'High', NULL, '2007-12-20 10:18:06', 0),
(102, 20, 'Deliverable', NULL, '2007-12-20 10:18:06', 0),
(103, 21, 'Low', NULL, '2007-12-20 21:43:17', 0),
(104, 21, 'Medium', NULL, '2007-12-20 21:43:17', 1),
(105, 21, 'High', NULL, '2007-12-20 21:43:17', 0),
(106, 21, 'Deliverable', NULL, '2007-12-20 21:43:17', 0),
(107, 22, 'Low', NULL, '2007-12-21 11:22:18', 0),
(108, 22, 'Medium', NULL, '2007-12-21 11:22:18', 1),
(109, 22, 'High', NULL, '2007-12-21 11:22:18', 0),
(110, 22, 'Deliverable', NULL, '2007-12-21 11:22:18', 0),
(111, 23, 'Low', NULL, '2008-01-24 22:21:32', 0),
(112, 23, 'Medium', NULL, '2008-01-24 22:21:32', 1),
(113, 23, 'High', NULL, '2008-01-24 22:21:32', 0),
(114, 23, 'Deliverable', NULL, '2008-01-24 22:21:32', 0),
(115, 28, 'Low', NULL, '2009-01-18 19:58:15', 0),
(116, 28, 'Medium', NULL, '2009-01-18 19:58:15', 1),
(117, 28, 'High', NULL, '2009-01-18 19:58:15', 0),
(118, 28, 'Deliverable', NULL, '2009-01-18 19:58:15', 0),
(119, 30, 'Low', NULL, '2009-03-17 21:45:19', 0),
(120, 30, 'Medium', NULL, '2009-03-17 21:45:19', 1),
(121, 30, 'High', NULL, '2009-03-17 21:45:19', 0),
(122, 30, 'Deliverable', NULL, '2009-03-17 21:45:19', 0),
(123, 31, 'Low', NULL, '2012-09-17 18:19:31', 0),
(124, 31, 'Medium', NULL, '2012-09-17 18:19:31', 1),
(125, 31, 'High', NULL, '2012-09-17 18:19:31', 0),
(126, 31, 'Deliverable', NULL, '2012-09-17 18:19:31', 0),
(127, 32, 'Low', NULL, '2015-10-20 16:14:26', 0),
(128, 32, 'Medium', NULL, '2015-10-20 16:14:26', 1),
(129, 32, 'High', NULL, '2015-10-20 16:14:26', 0),
(130, 32, 'Deliverable', NULL, '2015-10-20 16:14:26', 0);

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

--
-- Table structure for table `Projects`
--

CREATE TABLE IF NOT EXISTS `Projects` (
  `ProjectId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'UNique project identifier',
  `ProjectName` varchar(255) NOT NULL,
  `ProjectDescription` varchar(255) NOT NULL,
  `ProjectCreatorId` int(11) NOT NULL,
  `ProjectManagerId` int(11) NOT NULL,
  `ProjectCreationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ProjectDisabled` tinyint(4) NOT NULL DEFAULT '0',
  `ProjectPage` varchar(2048) DEFAULT NULL,
  `ProjectIssue` int(11) DEFAULT NULL,
  `ProjectRootDir` varchar(100) DEFAULT NULL,
  `FeedbackIssue` int(11) DEFAULT NULL,
  `DocMgrId` int(11) DEFAULT NULL,
  `TabId` int(11) DEFAULT NULL,
  `ProjectStyle` varchar(32) NOT NULL COMMENT 'Project style - menu',
  `ProjectConfig` varchar(510) DEFAULT NULL COMMENT 'Project configuration session variables',
  UNIQUE KEY `ProjectId` (`ProjectId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Tab ID for accessing the project' AUTO_INCREMENT=33 ;

--
-- Dumping data for table `Projects`
--

INSERT INTO `Projects` (`ProjectId`, `ProjectName`, `ProjectDescription`, `ProjectCreatorId`, `ProjectManagerId`, `ProjectCreationDate`, `ProjectDisabled`, `ProjectPage`, `ProjectIssue`, `ProjectRootDir`, `FeedbackIssue`, `DocMgrId`, `TabId`, `ProjectStyle`, `ProjectConfig`) VALUES
(0, 'ProMan', '<img src=../images/ProMan.jpg width=25> <b style={font-size:25;}>Project Management Portal</b> ', 12, 12, '2012-09-18 13:02:52', 0, '<body onload="javascript:window.parent.SetTab(52,121);">', 49, 'ProMan', 48, 12, 121, 'menuh', ''),
(32, 'BAMA', '<font size=6>Benson Area Ministerial Association</font>', 12, 12, '2015-11-13 16:53:48', 0, '<?\r\necho `\r\n<center>\r\n<table border=0 width=100% cellspacing=10>\r\n<tr>\r\n<td width=70% align=center>\r\n<iframe name=rFrame frameborder=0 scrolling=no seamless \r\n   src=../inc/slideshow.php?dir=../upload/BAMA/homeslides&speed=8000&height=350&ttl=BAMA&go=1&controls=0\r\n   width=100% height=450>\r\n</iframe>\r\n</td>\r\n<td width=30% style=~background-color: #000000;~>\r\n<div style=~height:450; overflow:auto; background-color: #ffffee;~> <table border=0 cellspacing=5><tr><td>\r\nThis is text about BAMA\r\n</td></tr></table>\r\n</div>\r\n</td>\r\n</tr>\r\n</table>\r\n`;\r\n\r\n?>', NULL, 'BAMA', NULL, 12, 2978, 'menuh', '//$_SESSION[`PM_CONTENT_BG`]=`../upload/BAMA/homeslides/TownMap.png`;');

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

--
-- Table structure for table `ProjectTabs`
--

CREATE TABLE IF NOT EXISTS `ProjectTabs` (
  `ProjectId` int(11) NOT NULL COMMENT 'Project identifier',
  `TabId` int(11) NOT NULL COMMENT 'Tab Identifier',
  UNIQUE KEY `ProTab` (`ProjectId`,`TabId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ProjectTabs`
--

INSERT INTO `ProjectTabs` (`ProjectId`, `TabId`) VALUES
(0, 1),
(0, 2),
(0, 5),
(0, 6),
(0, 7),
(0, 11),
(0, 17),
(0, 19),
(0, 58),
(0, 59),
(0, 61),
(0, 62),
(0, 104),
(0, 205),
(0, 236),
(0, 246),
(0, 550),
(0, 1630),
(0, 1637),
(4, 1),
(4, 2),
(4, 5),
(4, 7),
(4, 17),
(4, 61),
(4, 62),
(4, 205),
(4, 550),
(4, 1637),
(4, 2047),
(4, 2108),
(4, 2276),
(4, 2760),
(5, 1),
(5, 2),
(5, 5),
(5, 6),
(5, 7),
(5, 11),
(5, 17),
(5, 19),
(5, 58),
(5, 59),
(5, 61),
(5, 62),
(5, 104),
(5, 205),
(5, 236),
(5, 246),
(5, 550),
(5, 1630),
(5, 1637),
(6, 1),
(6, 2),
(6, 5),
(6, 6),
(6, 58),
(6, 61),
(6, 62),
(6, 205),
(6, 550),
(6, 1576),
(6, 1637),
(7, 1),
(7, 2),
(7, 5),
(7, 6),
(7, 7),
(7, 17),
(7, 58),
(7, 59),
(7, 61),
(7, 62),
(7, 205),
(7, 550),
(7, 1576),
(7, 1609),
(7, 1630),
(7, 1637),
(7, 1829),
(7, 2047),
(8, 1),
(8, 2),
(8, 5),
(8, 6),
(8, 7),
(8, 58),
(8, 61),
(8, 62),
(8, 205),
(8, 550),
(8, 1637),
(10, 1),
(10, 2),
(10, 5),
(10, 6),
(10, 7),
(10, 17),
(10, 58),
(10, 61),
(10, 62),
(10, 205),
(10, 550),
(10, 1630),
(10, 1637),
(11, 1),
(11, 2),
(11, 5),
(11, 7),
(11, 11),
(11, 17),
(11, 51),
(11, 61),
(11, 62),
(11, 104),
(11, 205),
(11, 246),
(11, 550),
(11, 1576),
(11, 1609),
(11, 1613),
(11, 1637),
(11, 1694),
(11, 1829),
(11, 2108),
(11, 2276),
(11, 2760),
(14, 1),
(14, 205),
(14, 1609),
(15, 1),
(15, 2),
(15, 5),
(15, 7),
(15, 11),
(15, 17),
(15, 58),
(15, 61),
(15, 62),
(15, 205),
(15, 550),
(15, 1630),
(15, 1637),
(15, 2760),
(17, 1),
(17, 205),
(18, 1),
(18, 205),
(20, 1),
(20, 19),
(20, 1637),
(20, 2760),
(21, 1),
(21, 2),
(21, 5),
(21, 6),
(21, 7),
(21, 17),
(21, 58),
(21, 62),
(21, 205),
(21, 550),
(21, 1576),
(21, 1630),
(21, 1637),
(22, 1),
(22, 2),
(22, 5),
(22, 58),
(22, 205),
(22, 550),
(22, 1576),
(22, 1609),
(22, 1637),
(30, 1),
(30, 550),
(30, 1637),
(31, 1),
(31, 2),
(31, 17),
(31, 61),
(31, 550),
(31, 2108),
(32, 1),
(32, 2),
(32, 5),
(32, 7),
(32, 17),
(32, 61),
(32, 62),
(32, 205),
(32, 2108),
(32, 2276);

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

--
-- Table structure for table `Questions`
--

CREATE TABLE IF NOT EXISTS `Questions` (
  `qUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `qID` varchar(32) NOT NULL COMMENT 'Question identifier',
  `qDescription` varchar(100) DEFAULT NULL COMMENT 'Question description',
  `qText` varchar(4096) DEFAULT NULL COMMENT 'Question text',
  `qType` varchar(32) DEFAULT NULL COMMENT 'Question type',
  `qFormat` varchar(32) DEFAULT NULL COMMENT 'Question format',
  `qPreLogic` varchar(4096) DEFAULT NULL COMMENT 'Question pre-logic',
  `qPostLogic` varchar(4096) DEFAULT NULL COMMENT 'Question post-logic',
  `qHelp` varchar(4096) DEFAULT NULL COMMENT 'Question help text',
  `qIsDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Row is deleted',
  `qStore` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Store the response',
  `qPublish` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Indicates whether the question may be published or not',
  `qGlobal` tinyint(4) NOT NULL COMMENT 'Question is global - rInstance is unique',
  `ProjectId` int(11) NOT NULL COMMENT 'Project identifier',
  `LastUpdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date time of last update',
  `UserId` int(11) NOT NULL COMMENT 'User ID who changed the value',
  `qAudio` varchar(100) DEFAULT NULL COMMENT 'Audio file',
  `qDefault` varchar(100) DEFAULT NULL COMMENT 'Default value',
  `qAlias` varchar(32) DEFAULT NULL COMMENT 'Permanent questionn to which this question points',
  UNIQUE KEY `qUnique` (`qUnique`),
  KEY `ixqId` (`qID`),
  KEY `ixqType` (`qType`),
  KEY `ixqFormat` (`qFormat`),
  KEY `ixProjectId` (`ProjectId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each Question' AUTO_INCREMENT=1894 ;

--
-- Dumping data for table `Questions`
--

INSERT INTO `Questions` (`qUnique`, `qID`, `qDescription`, `qText`, `qType`, `qFormat`, `qPreLogic`, `qPostLogic`, `qHelp`, `qIsDeleted`, `qStore`, `qPublish`, `qGlobal`, `ProjectId`, `LastUpdate`, `UserId`, `qAudio`, `qDefault`, `qAlias`) VALUES
(1, 'RE_Street', 'Real estate street location', 'Street', 'TEXT', '50', '', '', '', 0, 1, 1, 0, 0, '2009-12-31 20:14:19', 12, '', '', NULL),
(2, 'RE_City', 'Real estate city location', 'City', 'TEXT', '40', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(3, 'RE_State', 'Real estate state location', 'State', 'TEXT', '2', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(4, 'RE_Zip', 'Real estate zip location', 'Zip', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(5, 'RE_ShortDescription', 'Real estate short description', 'Short Description', 'TEXTAREA', '255', '', '', 'This field should use standard abbreviations such as: br (bedroom), ba (bath), ac (acreage), etc.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(6, 'RE_Pictures', 'Real estate picture location', 'Pictures address', 'TEXT', '255', '', '', 'This field identifies the URL of pictures for the property in the form of href=../inc/DirList.php?dir=../upload/LucasProperties/`property folder`', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(7, 'RE_PurchasePrice', 'Real estate purchase price', 'Purchase price', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(8, 'RE_SalePrice', 'Real estate sale price', 'Sale price', 'TEXT', '12', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(9, 'RE_Expenses', 'Real estate expenses', 'Expenses detail', 'TEXTAREA', '255', '', '', 'This field should contain a listing of the types of expenses incurred ABOVE the original purchase price.<p>\r\nThis is descriptive.  Actual enumeration of expenses should be done using the PropertyExpenses tab.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(10, 'RE_ExpensesTotal', 'Real estate expenses total', 'Expenses total', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(11, 'RE_ForSale', 'Real estate for sell', 'For sale', 'YesNo', 'RADIO', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(12, 'RE_ForRent', 'Real estate for rent', 'For rent', 'YesNo', 'RADIO', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(13, 'RE_RentPerMonth', 'Real estate rent per month', 'Rent per month', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(14, 'RE_RentInclusion', 'Real estate rent inclusion', 'Rental fee includes', 'TEXTAREA', '255', '', '', 'This field should clearly state what is included in the rent amount.  By default, items not listed are NOT included in the rent.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(15, 'RE_Available', 'Real estate available', 'Available', 'YesNo', 'RADIO', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(16, 'RE_PurchaseDate', 'Real estate purchase date', 'Purchase date', 'DATE', '10', '', '<?DateCheck(`2006-01-01`,$val,NOW());?>', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(17, 'RE_SellRentDate', 'Real estate sold/rented date', 'Date sold/rented', 'DATE', '10', '', 'if (GetVal(`RE_Available`)==`2`) \r\n   $stat=DateCheck(`2006-01-01`,`$val`,NOW());\r\nelse \r\n   $stat=1;\r\n', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(18, 'RE_Notes', 'Real estate notes', 'Notes', 'TEXTAREA', '2048', '', '', 'This field contains private notes not to be shared with the general public.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(19, 'CaseID', 'Case Identifier', 'Unique Identifier', 'TEXT', '30', '', 'if (NewCase(`$val`)==1)\r\n{\r\n   $sql=~insert into Responses (CaseID, qID, rValue, uID, rOK) ~ . \r\n        ~values (`$val`,`RE_Id`,`$val`,`~ . \r\n        $_SESSION[`UserId`] . ~`, `2`)~;\r\n   $stat=ExecuteSQL($sql);\r\n   SetCaseForm(`$val`,`RE_ListingDetail`);\r\n   return 1;\r\n}', 'This is the unique identifier for the entity.  It is associated each attribute for the entity.', 0, 1, 1, 1, 0, '2012-03-05 08:44:31', 12, '', '', NULL),
(20, 'RE_Map', 'Real estate map link', 'Map link', 'TEXT', '1024', '', '', 'This field may contain a Google Maps link or local link to a map of the property.', 0, 1, 1, 0, 0, '2010-01-16 19:12:41', 12, '', '', NULL),
(21, 'RE_Listing', 'Real estate listing', '', 'NULL', '30', 'echo `<b style={font-size=15;}>Lucas Properties</b> is a Lucas Company focusing on real estate properties.<p><center>`;global $NOSORT;$NOSORT=1;$dq=`~`;\r\n\r\n$sql=~select concat(`<a href=~ . $dq . ~javascript:SetTab(1646,``CaseId=`,CaseID,```,0);~ . $dq . ~>`, rValue,`</a>`) as Property from Responses where qID=`CaseFirstName` and CaseID in (select CaseID from Responses where qID=`CaseType` and \r\nrValue=`P`) and isDeleted=0 order by rValue~;\r\n\r\nShowQueryResult($sql);\r\n\r\necho `<br><p>`;', '', '', 0, 0, 0, 0, 0, '2015-02-20 18:28:42', 12, '', '', ''),
(22, 'RE_NewCase', 'Real estate new case button', 'Create a New Property', 'Button', 'BUTTON', '', 'if ($prm==`RE_NewCase`)\r\n   {\r\n      $UserId=$_SESSION[`UserId`];\r\n      $ProjectId=$_SESSION[`ProjectId`];\r\n      ExecuteSQL(~insert into Responses (CaseID,qID,uID,ProjectId) select `New Case`, `CaseID`,$UserId,$ProjectId~);\r\n      $CaseId=ShowQueryResultScalar(~select rUnique from Responses where CaseID=`New Case` and qID=`CaseID`~); \r\n      ExecuteSQL(~update Responses set CaseID=$CaseId, rValue=$CaseId, rOK=2 where rUnique=$CaseId~);\r\n      $_SESSION[`CaseId`]=$CaseId;\r\n      SetForm(RE_ListingDetail);\r\n   }\r\n$stat=1;', 'Clicking on this button will create a new property', 0, 0, 0, 0, 0, '2012-03-05 11:22:36', 12, '', '', NULL),
(23, 'RE_Id', 'Identfier', 'Identifier', 'TEXT', '30', '', '', '', 0, 1, 1, 1, 0, '2012-03-02 08:17:49', 12, '', '', NULL),
(24, 'RE_Picture', 'Real estate main picture', 'Picture URL', 'TEXT', '80', '', '', 'This should be in the form:  img src = address', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(25, 'tmpRE_Id', 'temporary Real Estate ID', 'Unique Identifier', 'TEXT', '30', '', 'if (NewCase(`$val`)==1)\r\n{\r\n   $sql="insert into Responses (CaseID, qID, rValue, uID, rOK, ProjectId) " . \r\n        "values (`$val`,`RE_Id`,`$val`,`" . \r\n        $_SESSION[`UserId`] . "`, `2`,`" . $_SESSION[`ProjectId`] ."`)";\r\n   $stat=ExecuteSQL($sql);\r\n   SetCaseForm(`$val`,`RE_ListingDetail`);\r\n   return 1;\r\n}', 'The ID should be a brief descriptor of the property such as the street address.', 0, 0, 0, 0, 0, '2009-04-03 12:18:35', 12, '', NULL, NULL),
(26, 'RE_X_Category', 'Real estate expense category', 'Category', 'RE_X_Cat', 'DROPDOWN', '', '', '', 0, 1, 1, 0, 0, '2012-03-01 10:18:06', 12, '../upload/ProMan/Trumpet1.wav', '', NULL),
(27, 'RE_X_Description', 'Real estate expense description', 'Description', 'TEXT', '40', '', '', 'Short description citing payee.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(28, 'RE_X_Date', 'Real estate expense date', 'Date', 'DATE', '10', '', '<?DateCheck(`2006-09-01`,$val,NOW());?>', 'Date the expense occurred or payement due.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(29, 'RE_X_Amount', 'Real estate expense amount', 'Amount', 'TEXT', '12', '', '<?IsNumber($val);?>', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(30, 'RE_X_Note', 'Real estate expense note', 'Note', 'TEXTAREA', '255', '', '', 'Comments, explanations, caveats, links to external detail.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(31, 'RE_X_Paid', 'Real estate expense paid', 'Paid', 'YesNo', 'RADIO', '', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(32, 'tmpREselect', 'Real estate espense category selection', 'New Transaction', 'Button', 'BUTTON', 'GLOBAL $LINENUMBERS;\r\n$LINENUMBERS=0;\r\n\r\nglobal $FCOLOR;\r\n$FCOLOR=`RED`;\r\n\r\n$CaseId=$_SESSION[`CaseId`];\r\n\r\n$sel=$_REQUEST[`ExpenseSelect`];\r\nif ($sel!=~~)\r\n{\r\n   $_SESSION[`Instance`]=ShowQueryResultScalar(~select rInstance from Responses where rUnique=`$sel` and isDeleted=0~);\r\n   SetForm(`Transaction_Detail`);\r\n}\r\n\r\necho ~<input type=hidden name=ExpenseSelect>~;\r\n\r\n$tmpREyear=$_SESSION[`PM_REyear`];\r\n//$tmpREyear=$_POST[`tmpREyear`];\r\n\r\nif ($tmpREyear==~All years~ or $tmpREyear==``) $Yfilter=``;\r\nelse\r\n  {\r\n     $Yfilter=~ and substring(rValue,1,4)=`$tmpREyear` ~;\r\n  }\r\n\r\n//echo ~<br>tmpREyear=$tmpREyear Yfilter=$Yfilter<br>~;\r\n\r\n$tmpREcase=$_REQUEST[`tmpREcase`];\r\nif ($tmoREcase*=``) \r\n {\r\n  $CaseId=$tmpREcase;\r\n  $_SESSION[`CaseId`]=$CaseId;\r\n }\r\n\r\n//echo ~<h4><u>$CaseId</u> Transactions</h4> ~;\r\n\r\n/*\r\n  ExecuteSQL(~create temporary table a as (select rUnique,tText as Category,rInstance from Responses,ResponseType where qID=`RE_X_Category` and CaseID=`$CaseId` and isDeleted=0 and tID=`RE_X_Categories` and tValue=rValue) ~);\r\n*/\r\n\r\nExecuteSQL(~create temporary table b as (select rUnique,rValue as Description,rInstance from Responses where qID=`RE_X_Description` and CaseID=`$CaseId` and isDeleted=0) ~);\r\nExecuteSQL(~create temporary table c as (select rUnique,rValue as Date,rInstance from Responses where qID=`RE_X_Date` and CaseID=`$CaseId` and isDeleted=0 $Yfilter) ~);\r\nExecuteSQL(~create temporary table d as (select rUnique,cast(rValue as decimal(8,2)) as Amount,rInstance from Responses where qID=`RE_X_Amount` and CaseID=`$CaseId` and isDeleted=0) ~);\r\n\r\n/*\r\n  ExecuteSQL(~create temporary table e as (select rUnique,tText as Paid,rInstance from Responses,ResponseType where qID=`RE_X_Paid` and CaseID=`$CaseId` and isDeleted=0 and tID=`YesNo` and tValue=rValue ) ~);\r\n  ExecuteSQL(~create temporary table f as (select rUnique,rValue as VendorClient from Responses where qID=`VC_Name`) ~);\r\n  ExecuteSQL(~create temporary table g as (select rUnique,rValue as Vid,rInstance from Responses where qID=`RE_X_VendorClient` and CaseID=`$CaseId` and isDeleted=0) ~);\r\n  $ttl=ShowQueryResultScalar(~select sum(Amount) from d~);\r\n*/\r\n\r\n$ttl=ShowQueryResultScalar(~select sum(Amount) from d,c where d.rInstance=c.rInstance~);\r\n\r\necho `<div style=~height:`.($_SESSION[`PM_wHit`]/1.55).`; overflow: scroll;~>`;\r\nShowQueryResult(~select distinct concat(`<input type=button value=`,substring(replace(cast(100000+cast(b.rInstance as unsigned) as char(6)),` `,`0`),2,5),` onclick=javascript:Xsel(`,b.rUnique,`);>`) as Detail,/* Category,VendorClient,*/Description,Date,Amount from b,c,d where /*b.rInstance=a.rInstance and */ \r\nc.rInstance=b.rInstance and d.rInstance=b.rInstance /*and e.rInstance=b.rInstance and g.rInstance=b.rInstance and f.rUnique=g.Vid*/ order by Date DESC~);\r\necho ~</div>~;\r\n\r\necho ~<p>~;\r\necho ~Total Expenses: <b style=`color:red;`>$~,number_format($ttl,2),~</b>   ~;\r\n', '$CaseId=$_SESSION[`CaseId`];\r\n$UserId=$_SESSION[`UserId`];\r\n\r\n$Instance=ShowQueryResultScalar(~select rUnique from Responses where CaseID=`$CaseId` and rInstance=`Expense`~);\r\n\r\nif ($Instance==~~)\r\n   {\r\n      ExecuteSQL(~insert into Responses (CaseID,qID,uID,rInstance,ProjectId) select `$CaseId`,`RE_X_Category`,`$UserId`,`Expense`,`~.$_SESSION[`ProjectId`].~`~);\r\n      $Instance=ShowQueryResultScalar(~select rUnique from Responses where CaseID=`$CaseId` and rInstance=`Expense`~);\r\n      ExecuteSQL(~update Responses set rInstance=`$Instance` where rUnique=`$Instance`~);\r\n   }\r\n$_SESSION[`Instance`]=$Instance;\r\nSetForm(`Transaction_Detail`);\r\n\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2014-01-16 17:30:50', 12, '', '', ''),
(1810, 'Q_Loop1_1', 'Question loop form 1 question 1', '<p><table border=0 cellpadding=5><tr valign=top>\r\n<td class=tdblueS>\r\n<b class=tdQuestion>Q_Loop1_1</b><br>\r\nThis is the text for Q_Loop1_1\r\n<p><table border=0 cellpadding=5><tr>\r\n<td>\r\n<b class=tdQuestion>Q_Loop1_1</b><br>\r\n', 'TEXT', '10', 'echo `<center><table border=6 bordercolor=#993333 cellpadding=10 bgcolor=white><tr><td class=tdtanV><b>QUESTION AND RESPONSE OPTIONS</b>`;\r\nif (ShowQueryResultScalar("select count(*) from Responses where CaseID=`$CaseId` and qID=`Q_Loop1_1`")>0)\r\n{\r\necho `<p><table border=0 width=100%><tr><td align=center>`;\r\necho `<b class=tdsmall>HISTORY: Click <img src=../images/edit.gif height=12> to correct information.</b>`;\r\n\r\necho `<div style="height:100px; overflow:auto;">`;\r\n\r\n$CaseId=$_SESSION[`CaseId`];\r\n$vars = array(`Q_Loop1_1`, `Q_Loop1_2`, `Q_Loop1_3`);\r\nShowResponsesI($CaseId,$vars,1);\r\n\r\necho `</div>`;\r\necho `</td></tr></table>`;\r\n}\r\n\r\n', '', 'This is the help for Q_Loop1_1', 0, 1, 1, 0, 0, '2009-11-27 21:09:19', 0, '', '', NULL),
(33, 'CS_Proc_Create', 'Create a new Control System Process', 'New Process', 'Button', 'BUTTON', 'echo "<br>";\r\nglobal $TABLEBGCOLOUR;\r\nglobal $TABLEFGCOLOUR;\r\nglobal $CELLBGCOLOUR;\r\nglobal $CELLFGCOLOUR;\r\nglobal $TABLEBORDER;\r\nglobal $CELLPADDING;\r\nglobal $CELLSPACING;\r\nglobal $HEADFONTSIZE;\r\nglobal $BODYFONTSIZE;\r\nglobal $LINENUMBERS;\r\n$TABLEBGCOLOUR="#0080C0";\r\n$TABLEFGCOLOUR="WHITE";\r\n$CELLBGCOLOUR="#fffff8";\r\n$CELLFGCOLOUR="BLACK";\r\n$TABLEBORDER=6;\r\n$CELLPADDING=2;\r\n$CELLSPACING=1;\r\n$HEADFONTSIZE=1;\r\n$BODYFONTSIZE=1;\r\n$LINENUMBERS=0;\r\nglobal $NOSORT;\r\n$NOSORT=1;\r\nif ($prm==`CS_Proc_Delete`)\r\n{\r\n  $sql="update Responses set isDeleted=1 where qID=`CS_Proc_Desc` and CaseID=`".abs($act)."`";\r\n  ExecuteSQL($sql);\r\n}\r\n$fmt=ShowQueryResultScalar("select fFormat from Forms where fID=`CS_Process_Edit`");\r\n$sql="select CaseID as ProcessId, rValue as Process, concat(`<input type=button value=Edit onclick=window.parent.SetCaseForm(`,cast(CaseID as char(10)),`,``CS_Process_Edit``,``$fmt``)>`) as EditIt, concat(`<input type=button value=Delete onclick=DeleteMe(`,cast(CaseID as char(10)),`)>`) as DeleteIt from Responses where qID=`CS_Proc_Desc` and isDeleted=0";\r\nShowQueryResult($sql);\r\necho "<p>";', 'if ($prm==`CS_Proc_Create`)\r\n{\r\n  $UserId=$_SESSION[`UserId`];\r\n  $sql="insert into Responses (qID,rValue,uID,rInstance)" . \r\n       " select `CS_Proc_Desc`,`New Process`,`$UserId`,`0`";\r\n  ExecuteSQL($sql);\r\n  $CaseId=ShowQueryResultScalar("select max(rUnique) from Responses where qID=`CS_Proc_Desc`");\r\n  ExecuteSQL("update Responses set CaseID=$CaseId where rUnique=$CaseId");\r\n  $_SESSION[`CaseId`]=$CaseId;\r\n  SetForm(`CS_Process_Edit`);\r\n}\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2008-03-13 18:39:58', 12, NULL, NULL, NULL),
(34, 'CS_Proc_Modify', 'Modify the selected control system process', 'Modify', 'Button', 'BUTTON', '', '', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(35, 'CS_Proc_Delete', 'Delete the selected control system process', 'Delete', 'Button', 'BUTTON', '', '', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(36, 'CS_Proc_ID', 'Control System Process ID', 'Process ID', 'TEXT', '10', '', '', 'This is a unique identifier for the process. It is assigned when the process is created. It is used to index other descriptive values for process.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(37, 'CS_Proc_Desc', 'Control System Process description', 'Process Description', 'TEXT', '100', 'echo "<br>";\r\necho `<script language=javascript>`;\r\necho `function BackUp()`;\r\necho `{`;\r\necho `//  alert("in BackUp");\r\n`;\r\n$sql="select fFormat from Forms where fID=`CS_Processes`";\r\n$fmt=ShowQueryResultScalar($sql);\r\necho "window.parent.SetInstanceCaseForm(`0`,`-1`,`CS_Processes`,`$fmt`)";\r\necho `}`;\r\necho `</script>`;\r\n', '$_SESSION[`CS_Proc_Desc`]=`$val`;\r\n$_SESSION[`CS_Proc_Id`]=$_SESSION[`CaseId`];\r\n$stat=1;', 'This is a short description of the process to be used for reporting.', 0, 1, 1, 1, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(38, 'CS_Proc_Events', 'View All Events for this Process', 'View All Events for this Process', 'Button', 'BUTTON', 'echo "<tr><td></td></tr>";', 'if ($prm==`CS_Proc_Events`) SetForm(`CS_Events`);\r\n$stat=1;', 'See all the events for the current process.  Create, modify and delete events.', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(39, 'CS_Proc_EventOrder', 'Order Events for this Process', 'Order Events for this Process', 'Button', 'BUTTON', 'echo "<tr><td></td></tr>";', 'if ($prm==`CS_Proc_EventOrder`) SetForm(`CS_Events_Order`);\r\n$stat=1;', 'Order the events for the current process.', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(40, 'CS_Event_Create', 'Create a new event for the selected process', 'New Event', 'Button', 'BUTTON', 'echo `<script language=javascript>`;\r\necho `function BackUp()`;\r\necho `{`;\r\necho `//  alert("in BackUp");\r\n`;\r\n$sql="select fFormat from Forms where fID=`CS_Process_Edit`";\r\n$fmt=ShowQueryResultScalar($sql);\r\n$CaseId=$_SESSION[`CaseId`];\r\necho "window.parent.SetInstanceCaseForm(`0`,`$CaseId`,`CS_Process_Edit`,`$fmt`)";\r\necho `}`;\r\necho `</script>`;\r\n\r\necho "<br><h3>Process: <i>", \r\n$_SESSION[`CS_Proc_Desc`], "</i></h3><br>";\r\nglobal $TABLEBGCOLOUR;\r\nglobal $TABLEFGCOLOUR;\r\nglobal $CELLBGCOLOUR;\r\nglobal $CELLFGCOLOUR;\r\nglobal $TABLEBORDER;\r\nglobal $CELLPADDING;\r\nglobal $CELLSPACING;\r\nglobal $HEADFONTSIZE;\r\nglobal $BODYFONTSIZE;\r\nglobal $LINENUMBERS;\r\n$TABLEBGCOLOUR="#0080C0";\r\n$TABLEFGCOLOUR="WHITE";\r\n$CELLBGCOLOUR="#fffff8";\r\n$CELLFGCOLOUR="BLACK";\r\n$TABLEBORDER=6;\r\n$CELLPADDING=2;\r\n$CELLSPACING=1;\r\n$HEADFONTSIZE=1;\r\n$BODYFONTSIZE=1;\r\n$LINENUMBERS=0;\r\nglobal $NOSORT;\r\n$NOSORT=1;\r\nif ($prm==`CS_Event_Delete`)\r\n{\r\n  $sql="update Responses set isDeleted=1 where substring(qID,1,8)=`CS_Event` and CaseID=`".abs($act)."`";\r\n  ExecuteSQL($sql);\r\n}\r\n$Instance=$_SESSION[`CaseId`];\r\n$_SESSION[`Instance`]=$Instance;\r\n$fmt=ShowQueryResultScalar("select fFormat from Forms where fID=`CS_Event_Edit`");\r\n$sql="select CaseID as EventId, rValue as Event, concat(`<input type=button value=Edit onclick=window.parent.SetCaseForm(`,cast(CaseID as char(10)),`,``CS_Event_Edit``,``$fmt``)>`) as EditIt, concat(`<input type=button value=Delete onclick=DeleteIt(`,cast(CaseID as char(10)),`)>`) as DeleteIt from Responses where rInstance=$Instance and qID=`CS_Event_Desc`";\r\nShowQueryResult($sql);\r\necho "<p>";', 'if ($prm==`CS_Event_Create`)\r\n{\r\n  $UserId=$_SESSION[`UserId`];\r\n  $CaseId=$_SESSION[`CaseId`];\r\n  $sql="insert into Responses (qID,rValue,uID,rInstance)" . \r\n       " select `CS_Event_Desc`,`New Event`,`$UserId`,`$CaseId`";\r\n  ExecuteSQL($sql);\r\n  $ord=ShowQueryResultScalar("select count(*) from Responses where rInstance=`$CaseId` and qID=`CS_Event_Desc`");\r\n  $_SESSION[`Instance`]=$CaseId;\r\n  $inst=$CaseId;\r\n  $tId=ShowQueryResultScalar("select max(rUnique) from Responses where rInstance=`$CaseId` and qID=`CS_Event_Desc`");\r\n  ExecuteSQL("update Responses set CaseID=`$tId` where rUnique=`$tId` and qID=`CS_Event_Desc`");\r\n  $CaseId=$tId;\r\n  $_SESSION[`CaseId`]=$CaseId;  \r\n  $sql="insert into Responses (CaseID,qID,rValue,uID,rInstance)" . \r\n       " select `$CaseId`,`CS_Event_Order`,`$ord`,`$UserId`,`$inst`";\r\n  ExecuteSQL($sql);\r\n  SetForm(`CS_Event_Edit`);\r\n}\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(41, 'CS_Event_Desc', 'Control System Process Event Description', 'Event Description', 'TEXT', '100', 'echo `<script language=javascript>`;\r\necho `function BackUp()`;\r\necho `{`;\r\necho `//  alert("in BackUp");\r\n`;\r\n$sql="select fFormat from Forms where fID=`CS_Events`";\r\n$fmt=ShowQueryResultScalar($sql);\r\n$Instance=$_SESSION[`Instance`];\r\necho "window.parent.SetInstanceCaseForm(`0`,`$Instance`,`CS_Events`,`$fmt`)";\r\necho `}`;\r\necho `</script>`;\r\n', '', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(42, 'CS_Event_Power', 'Control System Process Event Power Property', 'Event Power Property', 'CSPower', 'RADIO', '', '', 'It is best to use only <b>None</b> and <b>Final Event</b> to minimize inconsistencies in case processing.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(43, 'CS_Event_Exclusive', 'Control System Process Event Exclusive', 'Exclusive Event List', 'TEXT', '100', '', '', 'Use this area to identify those EVENTs neither of WHICH may have preceeded the incoming EVENT for the case. For example, if EVENTs 10 and 20 are identified as mutually exclusive, then the presence of EVENT 10 in the event history will automatically prevent EVENT 20 from being posted and vice-versa.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(44, 'CS_Event_Order', 'Control System Process Event Order', 'Event Order', 'TEXT', '3', '', '', 'The event order specifies the allowed sequence for the process events.  The control system enforced the order to prevent reverting back to earlier states.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(45, 'CS_Event_Duration', 'Control System Process Event Duration', 'The amount of time for the next Event to occur', 'TEXT', '5', '', '', 'Any EVENT which is not a FINAL EVENT should have a DURATION specified.  This number identifies the MAXIMUM number of DAYS for which a temporary EVENT is valid.  After the DURATION has elapsed the CONTROL SYSTEM will start reporting the case as delinquent requiring intervention.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(46, 'CS_Event_Path', 'Control System Process Event Path', 'Event Path List', 'TEXT', '100', '', '', 'Use this area to identify those EVENTs ONE OF WHICH must \r\npreceed the incoming EVENT in the event history.  For example, if 10 and 20 are EVENT numbers in the PATH of EVENT 30 then EVENT 30 will be posted if EITHER of EVENT 10 or 20 have EVER been posted.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(47, 'CS_Event_Logic', 'Control System Process Event Logic', 'Event Logic', 'TEXTAREA', '2048', '', '', 'This area provides for PHP code to take customized action when the event is posted.', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(48, 'CS_Events_Ordering', 'Control System Eventi Ordering', '', 'NULL', '1', 'global $TABLEBGCOLOUR;\r\nglobal $TABLEFGCOLOUR;\r\nglobal $TABLEBORDER;\r\nglobal $LINENUMBERS;\r\n$TABLEBGCOLOUR="#0080C0";\r\n$TABLEFGCOLOUR="WHITE";\r\n$TABLEBORDER=6;\r\n$LINENUMBERS=0;\r\nglobal $NOSORT;\r\n$NOSORT=1;\r\nif ($prm==`UP` or $prm==`DOWN`)\r\n{\r\n  $evt=abs($act);\r\n  $inst=ShowQueryResultScalar("select rInstance from Responses where qID=`CS_Event_Order` and CaseID=`$evt`");\r\n  $ord=ShowQueryResultScalar("select rValue from Responses where qID=`CS_Event_Order` and CaseID=`$evt`");\r\n  if ($prm==`UP`) $tord=$ord-1;\r\n  else $tord=$ord+1;\r\n  $tevt=ShowQueryResultScalar("select CaseID from Responses where qID=`CS_Event_Order` and rInstance=`$inst` and rValue=`$tord`");\r\n  if ($tevt!="")\r\n     {\r\n	  ExecuteSQL("update Responses set rValue=$tord where qID=`CS_Event_Order` and CaseID=`$evt`");\r\n	  ExecuteSQL("update Responses set rValue=$ord  where qID=`CS_Event_Order` and CaseID=`$tevt`");\r\n     }\r\n}\r\n\r\necho "<br><h3>Process: <i>", \r\n$_SESSION[`CS_Proc_Desc`], "</i></h3><br>";\r\n$Instance=$_SESSION[`CaseId`];\r\n$_SESSION[`Instance`]=$Instance;\r\n\r\n$lblEvent=$_REQUEST[`lblEvent`];\r\n\r\nExecuteSQL("CREATE TEMPORARY TABLE tmpk1 (EventId char(15), Event char(255)) TYPE=MEMORY");\r\nExecuteSQL("CREATE TEMPORARY TABLE tmpk2 (EventId char(15), EvtOrder char(255)) TYPE=MEMORY");\r\n\r\nExecuteSQL("insert into tmpk1 (EventId,Event) select CaseID as EventId, rValue as Event from Responses where rInstance=$Instance and qID=`CS_Event_Desc`");\r\nExecuteSQL("insert into tmpk2 (EventId,EvtOrder) select CaseID as EventId, rValue as EvtOrder from Responses where rInstance=$Instance and qID=`CS_Event_Order`");\r\n\r\n$sql="select tmpk2.EvtOrder, tmpk1.EventId, tmpk1.Event, " .\r\n"concat(`<input type=image src=../images/up.gif onclick=MoveIt(`,cast(tmpk1.EventId as char(10)),`,``UP``)>" .\r\n"<input type=image src=../images/dn.gif onclick=MoveIt(`,cast(tmpk1.EventId as char(10)),`,``DOWN``)>`) as Direction " .\r\n"from tmpk1,tmpk2 where tmpk1.EventId=tmpk2.EventId order by EvtOrder";\r\n\r\nShowQueryResult($sql);\r\n', '', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(49, 'CS_Process_Select', 'Control System Process Selector', '', 'NULL', '1', 'echo "<br><p>";\r\necho "1. Select a <b>process</b>: ";\r\nif ($prm=="SetProcess")\r\n{\r\n$lblProcess=$_REQUEST[`lblProcess`];\r\n$_SESSION[`CS_Process`]=$lblProcess;\r\n$_SESSION[`CS_Event`]=``;\r\n}\r\nelse $lblProcess=$_SESSION[`CS_Process`];\r\necho "<select name=lblProcess size=1 class=input200 onchange=DoPostBack(0,`SetProcess`);>";\r\necho "<option value=` `> </option>";\r\n$sql="select CaseID as ProcessId, rValue as Process from Responses where qID=`CS_Proc_Desc` and isDeleted=0 order by CaseID";\r\n$res=GetResultset($sql);\r\nif(!$row = mysql_fetch_assoc($res))\r\n{\r\n   return false;\r\n}\r\ndo\r\n{\r\n    if ($lblProcess == $row["ProcessId"])\r\n       echo "<option selected=`yes` value=`" , $row["ProcessId"] , "`>" , $row["ProcessId"] ," - " , $row["Process"] , "\r\n";\r\n    else\r\n       echo "<option value=`" , $row["ProcessId"] , "`>" , $row["ProcessId"] ," - " , $row["Process"] , "\r\n";\r\n    }\r\nwhile ($row = mysql_fetch_assoc($res));\r\n\r\necho "</select>";\r\n', '', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(50, 'CS_Event_Select', 'Control System Event Selector', '', 'NULL', 'RADIO', '$CS_Process=$_SESSION[CS_Process];\r\n\r\nif ($CS_Process>0)\r\n{\r\necho "<br><p>";\r\necho "2. Select an <b>event</b>: ";\r\nif ($prm=="SetEvent")\r\n{\r\n   $lblEvent=$_REQUEST[`lblEvent`];\r\n   $_SESSION[`CS_Event`]=$lblEvent;\r\n}\r\nelse $lblEvent=$_SESSION[`CS_Event`];\r\n\r\necho "<select name=lblEvent size=1 class=input200 onchange=DoPostBack(0,`SetEvent`);>";\r\n\r\necho "<option value=``> </option>";\r\n\r\n$sql="select CaseID as EventId, rValue as Event from Responses where qID=`CS_Event_Desc` and isDeleted=0 and rInstance=`$CS_Process` order by CaseID";\r\n$res=GetResultset($sql);\r\nif(!$row = mysql_fetch_assoc($res))\r\n{\r\n   return false;\r\n}\r\ndo\r\n{\r\n    if ($lblEvent == $row["EventId"])\r\n       echo "<option selected=`yes` value=`" , $row["EventId"] , "`>" , $row["EventId"] ," - " , $row["Event"] , "\r\n";\r\n    else\r\n       echo "<option value=`" , $row["EventId"] , "`>" , $row["EventId"] ," - " , $row["Event"] , "\r\n";\r\n    }\r\nwhile ($row = mysql_fetch_assoc($res));\r\n\r\necho "</select>";\r\n}', '', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(51, 'CS_Cases_Entry', 'Control System Cases Entry', '', 'NULL', '1', '$CS_Event=$_SESSION[`CS_Event`];if ($CS_Event!=""){   echo "<p><br>3. Enter the <b>cases</b> for which the selected event is to be applied (one case per line):<p>";   $lblCases=$_REQUEST[`lblCases`];   echo "<TEXTAREA name=lblCases COLS=10 ROWS=10>$lblCases</TEXTAREA>";}', '$lblCases=$_REQUEST[`lblCases`];if ($lblCases!=``){  $CS_EventId=$_SESSION[`CS_Event`];  $UserId=$_SESSION[`UserId`];  $cases = explode("", $lblCases);  for ($i=0; $i<count($cases); $i++)  {    $case=$cases[$i];    if ($case!="") $stat=CSpostEvent($case,$CS_EventId);  }  $_SESSION["MsgTxt"]="Events have been posted for these cases";}$stat=1;', '', 0, 0, 0, 0, 0, '2008-02-21 17:15:56', 12, NULL, NULL, NULL),
(53, 'CS_Search_Field', 'Control System Case Search Field', '', 'NULL', '1', 'echo "<p><br>";\r\n$CS_Search_Field=$_REQUEST[`CS_Search_Field`];\r\nif ($CS_Search_Field=="") $CS_Search_Field="CaseID";\r\necho "<li><b>Search which field:</b><br><dir>";\r\n$cols=CSactFields();\r\nfor($i=0; $i<count($cols); $i++)\r\n  {\r\n     $var=$cols[$i];\r\n     if ($CS_Search_Field==$var)\r\n       echo "<input type=RADIO name=CS_Search_Field id=CS_SearchField value=`$var` CHECKED >$var<br>";\r\n     else\r\n       echo "<input type=RADIO name=CS_Search_Field id=CS_SearchField value=`$var`>$var<br>";\r\n  }\r\necho "</dir>";', '', 'Use the radio button to select a specific field to be searched for the value you provided above.', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(54, 'CS_Search_Go', 'Control System Case Search Go Button', 'Go Search for Cases', 'Button', 'BUTTON', 'echo ~<p><br><li>~;', '', 'Click on the <b>Go</b> button to perform the search.  Results will appear below.', 0, 0, 0, 0, 0, '2015-11-10 17:39:26', 12, '', '', ''),
(55, 'CS_Search_Results', 'Control System Case Search Results', '', 'NULL', '1', 'echo ~<p>~;\r\n\r\n$tfrm=$_SESSION[`PM_TransFrm`];\r\n\r\n$string=$_REQUEST[`CS_Search_String`];\r\nif ($string!=~~)\r\n{\r\n  $tValue=$_REQUEST[`CS_Search_Field`];\r\n/*\r\n  if ($tValue==`CaseID`)\r\n    $where=~ ( INSTR(CaseID,`$string`)>0 or (qID=`$tValue` and INSTR(rValue,`$string`)>0)) ~;\r\n  else\r\n    $where=~ qID=`$tValue` and INSTR(rValue,`$string`)>0 ~;\r\n*/\r\n\r\n//$where=~ INSTR($tValue,`$string`)>0 ~;\r\n$where=~ INSTR(rValue,`$string`)>0 ~;\r\n\r\n  $extracols=array();\r\n  echo ~<table border=5 bgcolor=lightblue><tr><td>~;\r\n//  echo ~<hr>~;\r\n  CSsearchCases(1,0,``,~$where~,$tfrm,$xtracols);\r\n  echo ~</td></tr></table>~;\r\n//  echo ~<hr><br>~;\r\n}', '', 'Enter a value to search.  This may be a case ID, first name or last name.  Whatever value is entered must be an exact substring of the fields to be searched.', 0, 0, 0, 0, 0, '2015-11-20 12:22:47', 12, '', '', ''),
(1816, 'FirstName', 'First name', 'First name', 'TEXT', '30', '', '<?Required($val);?>', 'Your first name.', 0, 0, 0, 0, 0, '2011-01-03 08:35:17', 0, '', '', NULL),
(57, 'CS_Case_Create', 'Control System Case Creation', 'Create A New Case', 'Button', 'BUTTON', 'echo ~<br><li>~;', 'if ($prm==`CS_Case_Create`)\r\n   {\r\n      $UserId=$_SESSION[`UserId`];\r\n      $ProjectId=$_SESSION[`ProjectId`];\r\n      ExecuteSQL(~insert into Responses (CaseID,qID,uID,ProjectId) select `New Case`, `CaseID`,$UserId,$ProjectId~);\r\n      $CaseId=ShowQueryResultScalar(~select rUnique from Responses where CaseID=`New Case` and qID=`CaseID`~); \r\n      ExecuteSQL(~update Responses set CaseID=$CaseId, rValue=$CaseId, rOK=2 where rUnique=$CaseId~);\r\n      $_SESSION[`CaseId`]=$CaseId;\r\n      $_SESSION[`Instance`]=`1`;\r\n      SetForm($_SESSION[`PM_TransFrm`]);\r\n   }\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2015-11-12 14:17:40', 12, '', '', ''),
(58, 'CS_Console_End', 'Control System Console End', '', 'NULL', 'RADIO', 'echo ~<br><br></td></tr></table></td></tr></table></td></tr></table></td></tr></table><p><br><p><br>~;', '', '', 0, 0, 0, 0, 0, '2015-11-29 15:07:07', 12, '', '', ''),
(59, 'CaseFirstName', 'First name', 'First Name', 'TEXT', '25', '', '', '<font color=red>If the name of the client is non-missing and needs to be changed (other than spelling) you should return to the search screen and create a new case.</font>', 0, 1, 1, 1, 0, '2015-11-16 23:37:11', 12, '', '', ''),
(60, 'CaseLastName', 'Last name', 'Last Name', 'TEXT', '25', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:26:49', 12, '', '', NULL),
(61, 'CaseGender', 'Gender', 'Gender', 'Gender', 'RADIO', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:27:05', 12, '', '', NULL),
(62, 'CaseEthnicity', 'Ethnicity', 'Ethnicity', 'Ethnicity', 'RADIO', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:27:27', 12, '', '', NULL),
(63, 'CaseSSN', 'Social Security Number', 'Social Security Number', 'TEXT', '9', '', '<?NumChars($val,9);?>', '', 0, 1, 1, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(64, 'CaseDOB', 'Date of Birth', 'Date of Birth', 'DATE', '10', '', '<?DateCheck(`1900-01-01`,$val,Now());?>', '', 0, 1, 1, 1, 0, '2012-03-05 16:26:57', 12, '', '', NULL),
(65, 'CasePhoneHome', 'Home Phone Number', 'Home Phone Number', 'TEXT', '14', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:28:38', 12, '', '', NULL),
(66, 'CasePhoneWork', 'Work Phone Number', 'Work Phone Number', 'TEXT', '14', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:28:45', 12, '', '', NULL),
(67, 'CasePhoneCell', 'Cell Phone Number', 'Cell Phone Number', 'TEXT', '14', '', '', '', 0, 1, 1, 1, 0, '2014-07-04 17:01:57', 12, '', '', ''),
(68, 'CaseAddress1', 'Address line 1', 'Address line 1', 'TEXT', '50', '', '', '', 0, 1, 1, 1, 0, '2015-11-10 15:53:10', 12, '', '', ''),
(69, 'CaseAddress2', 'Address line 2', 'Address line 2', 'TEXT', '50', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:27:48', 12, '', '', NULL),
(70, 'CaseCity', 'City', 'City', 'TEXT', '25', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:27:54', 12, '', '', NULL),
(71, 'CaseState', 'State', 'State', 'State', 'DROPDOWN', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:28:04', 12, '', '', NULL),
(72, 'CaseZIP', 'ZIP Code', 'ZIP Code', 'TEXT', '10', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:28:11', 12, '', '', NULL),
(73, 'CS_Rpt_Console', 'Control System Report Console', '', 'NULL', 'BUTTON', '$con=$_REQUEST["CS_Rpt_Console"];\r\n$cs=""; \r\n$ea=""; \r\n$pc=""; \r\n$dc="";\r\nif ($con=="Current Status") $cs="checked";\r\nif ($con=="Ever At") $ea="checked";\r\nif ($con=="Pending Cases") $pc="checked";\r\nif ($con=="Delinquent Cases") $dc="checked";\r\necho "<br><table border=0><tr><td>";\r\necho "<font size=3><b>";\r\necho "<input type=radio name=CS_Rpt_Console value=`Current Status` $cs onclick=SaveIt(`CS_Rpt_Console`); >Current Status   ";\r\necho "<input type=radio name=CS_Rpt_Console value=`Ever At` $ea onclick=SaveIt(`CS_Rpt_Console`);>Ever At   ";\r\necho "<input type=radio name=CS_Rpt_Console value=`Pending Cases` $pc onclick=SaveIt(`CS_Rpt_Console`);>Pending Cases   ";\r\necho "<input type=radio name=CS_Rpt_Console value=`Delinquent Cases` $dc onclick=SaveIt(`CS_Rpt_Console`);>Delinquent Cases   ";\r\necho "</b></font></td></tr></table>";\r\necho "<hr>";\r\nif ($con=="Current Status") CS_Current_Status();\r\nif ($con=="Ever At") CS_Ever_At();\r\nif ($con=="Pending Cases") CS_Pending_Cases();\r\nif ($con=="Delinquent Cases") CS_Delinquent_Cases();', '', 'The current status report tabulates all cases by the most recently posted event by process.  It shows counts and percentages.', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(74, 'CS_Case_History', 'Control System Case History', '', 'NULL', '1', '$CaseId=$_SESSION[`CaseId`];\r\necho "<tr><td></td><td align=center><b><font size=4>Event History:</font></b></td><td>";\r\nCScaseHistory($CaseId);\r\necho "</td></tr>";', '', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(75, 'EditCase', 'Edit a case', 'Go Edit the Selected Case', 'Button', 'BUTTON', 'echo "<p>";\r\n\r\n$sql="select distinct CaseID from Responses where rOK=0 and isDeleted=0 order by CaseID";\r\n\r\n$resq=GetResultset($sql);\r\nif(!$row = mysql_fetch_assoc($resq))\r\n   {\r\n       echo "<h3>There are no fail-edit cases</h3>";\r\n       return false;\r\n   }\r\nelse\r\n   {\r\n      echo "<br><br><h4>Select a Subject from the list below</h4><center>";\r\n      echo "<select name=CaseSelect>";\r\n      echo "<option value=``> </option>";\r\n      do\r\n	{\r\n	    echo "<option value=" , $row["CaseID"] , ">" , $row["CaseID"] , "</option>";\r\n	}\r\n\r\n      while ($row = mysql_fetch_assoc($resq));\r\n\r\n      DisConnect();\r\n\r\n      echo "</select> ";\r\n      echo "<p>";\r\n   }\r\n', '$CaseId=$_REQUEST[`CaseSelect`];\r\nif ($CaseId=="")\r\n   echo "<br><br><center><h3>Please select a case...<h3></center>";\r\nelse\r\n   {\r\n	$_SESSION[`CaseId`]=$CaseId;\r\n	SetForm(EditResolutionQ);\r\n   }\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(76, 'EditQuestion', 'Edit Question', 'Go Edit the selected question', 'Button', 'BUTTON', 'echo "<br><br><center><h2>Edit Resolution</h2>";\r\necho "<p>";\r\n\r\n$CaseId=$_SESSION[`CaseId`];\r\n\r\n$sql="select distinct qID from Responses where rOK=0 and CaseID=$CaseId and isDeleted=0 order by qID";\r\n\r\n$resq=GetResultset($sql);\r\nif(!$row = mysql_fetch_assoc($resq))\r\n   {\r\n       die("<h3>There are no fail-edit cases</h3>");\r\n       return false;\r\n   }\r\necho "<br><br><h4>Select a Question from the list below</h4><center>";\r\necho "<select name=QSelect>";\r\necho "<option value=``> </option>";\r\ndo\r\n	{\r\n	    echo "<option value=" , $row["qID"] , ">" , $row["qID"] , "</option>";\r\n	}\r\n\r\nwhile ($row = mysql_fetch_assoc($resq));\r\n\r\nDisConnect();\r\n\r\necho "</select> ";\r\necho "<p>";\r\n', '$CaseId=$_SESSION[`CaseId`];\r\n$qId=$_REQUEST[`QSelect`];\r\n$rUnique=ShowQueryResultScalar("select rUnique from Responses where CaseID=`$CaseId` and qID=`$qId` and rOK=0");\r\n$_SESSION["rUnique"]=$rUnique;\r\nif ($qId=="")\r\n   echo "<br><br><center><h3>Please select a question...<h3></center>";\r\nelse\r\n   {\r\n	$_SESSION["CaseId"]=$CaseId;\r\n	$_SESSION["qId"]=$qId;\r\n	$_SESSION["Instance"]=ShowQueryResultScalar("select rInstance from Responses where rUnique=`$rUnique`");\r\n	$sql="select rValue from Responses where CaseID=`$CaseId` and qID=`VisitDate` and rInstance=".$_SESSION[`Instance`];\r\n	$_SESSION[`VisitDate`]=ShowQueryResultScalar($sql);\r\n	SetForm(EditResolution);\r\n   }\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(77, 'ER_Intro', 'Edit Resolution Template', '', 'NULL', 'RADIO', 'doEditList();', '$rUnique=$_SESSION["rUnique"];\r\n$CaseId=$_SESSION["CaseId"];\r\n$rInstance=$_SESSION["Instance"];\r\n$OldVal=$_REQUEST["OldVal"];\r\n$qID=$_REQUEST["qst"];\r\n$NewVal=$_REQUEST[$qID];\r\nCleanText($NewVal);\r\n$UserId=$_SESSION["UserId"];\r\n$Reason=$_REQUEST["Reason"];\r\nCleanText($Reason);\r\n\r\n$sql="update Responses set rValue=`".$NewVal."`, rOK=3 where rUnique=`$rUnique`";\r\nExecuteSQL($sql);\r\n\r\n$sql="insert into Changes (rUnique,OldValue,NewValue,uID,Reason) " .\r\n	"select `".$rUnique."`,`".$OldVal."`,`".$NewVal."`,`".$UserId."`,`".$Reason."`";\r\nExecuteSQL($sql);\r\n\r\n$sql="select distinct fID from FormQuestions where qID=`".$qID."`";\r\n$frm=ShowQueryResultScalar($sql);\r\n\r\n$_SESSION[`DE_MODE`]="E";\r\nSaveGo($frm);\r\n$_SESSION[`DE_MODE`]="O";\r\n\r\n$rUnique=ShowQueryResultScalar("select rUnique from Responses where Caseid=`$CaseId` and rOK=0");\r\nif ($rUnique=="") SetForm(EditResolutionLoop);\r\n$_SESSION["rUnique"]=$rUnique;\r\n$_SESSION["Instance"]=ShowQueryResultScalar("select rInstance from Responses where rUnique=`$rUnique`");\r\n$sql="select rValue from Responses where CaseID=`$CaseId` and qID=`VisitDate` and rInstance=".$_SESSION[`Instance`];\r\n$_SESSION[`VisitDate`]=ShowQueryResultScalar($sql);\r\n\r\n$stat=1;\r\n', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(78, 'EditResLoop1', 'EditResLoop1', 'Click here to go to the next case with an edit failure', 'Button', 'BUTTON', 'echo "<br><h3>There are no more edit failures for ",$_SESSION[`CaseId`],"</h3><p>";', '$rUnique=ShowQueryResultScalar("select rUnique from Responses where rOK=0 LIMIT 1");\r\n$_SESSION["rUnique"]=$rUnique;\r\n$CaseId=ShowQueryResultScalar("select CaseID from Responses where rUnique=`$rUnique`");\r\nif ($CaseId=="") die( "<h2>No cases have fail edits<h2>");\r\n$_SESSION["CaseId"]=$CaseId;\r\n$_SESSION["Instance"]=ShowQueryResultScalar("select rInstance from Responses where rUnique=`$rUnique`");\r\n$stat=1;\r\nSetForm(EditResolution0); \r\n', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(79, 'BatchEditGo', 'Batch Edit Go Button', 'Click to Apply Edits', 'Button', 'BUTTON', 'echo "<br><br><p>";', '$res=GetResultset("select CaseID,fID from ICARR_Subjects_Form_Questions_Failed");\r\n\r\nif(!$trow = mysql_fetch_assoc($res)) \r\n    echo "<center><h3>No edit failures to review</h3><br>";\r\nelse\r\n{\r\n    $_SESSION[`DE_MODE`]="E";\r\n\r\n    do\r\n     {\r\n	   echo "Processing Subject: ", $trow[`CaseID`], " Form: " , $trow[`fID`], "...<br>\r\n";\r\n	   $_SESSION[`CaseId`]=$trow[`CaseID`];\r\n	   $_SESSION["Instance"]=$trow[`rInstance`];\r\n	   $frm=$trow[`fID`];\r\n	   SaveGo($frm);\r\n     }\r\n    while ($trow = mysql_fetch_assoc($res));\r\n\r\n    $_SESSION[`DE_MODE`]="O";\r\n}\r\necho "<h2>Batch Editing Completed</h2></center>";\r\n\r\n$_SESSION[`CaseId`]=`-1`;\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(80, 'CS_Post_Events', 'Control System Post Events', 'Post the Events', 'Button', 'BUTTON', 'echo "<p><br>4. ";\r\n', '', '', 0, 0, 0, 0, 0, '2008-02-19 17:28:13', 12, NULL, NULL, NULL),
(81, 'RE_RenterName', 'Real Estate renter`s name', 'Renter name', 'TEXT', '30', '', '', '', 0, 1, 1, 0, 0, '2009-12-31 20:16:04', 0, '', '', NULL),
(82, 'RE_RenterContactName', 'Real Estate renter`s contact name', 'Renter contact name', 'TEXT', '30', '', '', '', 0, 1, 1, 0, 0, '2008-12-16 19:25:10', 0, '', NULL, NULL),
(83, 'RE_RenterPhone', 'Real Estate renter`s phone', '<dir>Renter phone</dir>', 'TEXT', '14', '', '', '', 0, 1, 1, 0, 0, '2008-12-16 19:35:11', 0, '', NULL, NULL),
(84, 'RE_RenterContactPhone', 'Real Estate renter`s contact phone', '<dir>Renter contact phone</dir>', 'TEXT', '14', '', '', '', 0, 1, 1, 0, 0, '2008-12-16 19:35:03', 0, '', NULL, NULL),
(85, 'RE_RenterDateIn', 'Real Estate renter start date', 'Rental start date', 'DATE', '10', '', '<?DateCheck(`2006-07-01`,$val,NOW());?>', '', 0, 1, 1, 0, 0, '2008-12-16 19:32:02', 0, '', NULL, NULL),
(86, 'RE_RenterDateOut', 'Real Estate renter end date', 'Rental end date', 'DATE', '10', '', '<?DateCheck(`2006-07-01`,$val,NOW());?>', '', 0, 1, 1, 0, 0, '2008-12-16 19:32:10', 0, '', NULL, NULL),
(87, 'RE_RenterNote', 'Real Estate renter note', 'Renter note', 'TEXTAREA', '2048', '', '', '', 0, 1, 1, 0, 0, '2008-12-16 18:27:25', 0, '', NULL, NULL),
(88, 'tmpRErenter', 'Select a renter', 'New Renter', 'Button', 'BUTTON', 'GLOBAL $LINENUMBERS;\r\nGLOBAL $TABLEBGCOLOUR;\r\n\r\n$LINENUMBERS=0;\r\n$TABLEBGCOLOUR="#0080C0";\r\n\r\n$CaseId=$_SESSION[`CaseId`];\r\n\r\n$sel=$_REQUEST[`RenterSelect`];\r\nif ($sel!="")\r\n{\r\n   $_SESSION[`Instance`]=ShowQueryResultScalar("select rInstance from Responses where rUnique=`$sel` and isDeleted=0");\r\n   SetForm(`RE_Renter_Detail`);\r\n}\r\n\r\necho "<input type=hidden name=RenterSelect>";\r\n\r\necho "<br><h4><u>$CaseId</u> Renters</h4> ";\r\n\r\nExecuteSQL("create temporary table a as (select rUnique,rValue as Name,rInstance from Responses where qID=`RE_RenterName` and CaseID=`$CaseId` and isDeleted=0) ");\r\nExecuteSQL("create temporary table b as (select rUnique,rValue as Phone,rInstance from Responses where qID=`RE_RenterPhone` and CaseID=`$CaseId` and isDeleted=0) ");\r\nExecuteSQL("create temporary table c as (select rUnique,rValue as DateIn,rInstance from Responses where qID=`RE_RenterDateIn` and CaseID=`$CaseId` and isDeleted=0) ");\r\nExecuteSQL("create temporary table d as (select rUnique,rValue as DateOut,rInstance from Responses where qID=`RE_RenterDateOut` and CaseID=`$CaseId` and isDeleted=0) ");\r\n\r\necho `<div style="height:275; overflow: scroll;">`;\r\nShowQueryResult("select distinct concat(`<input type=button value=`,substring(replace(cast(100000+cast(a.rInstance as unsigned) as char(6)),` `,`0`),2,5),` onclick=javascript:Xsel(`,a.rUnique,`);>`) as Detail, Name,Phone,DateIn,DateOut from a,b,c,d where b.rInstance=a.rInstance and c.rInstance=a.rInstance and d.rInstance=a.rInstance order by DateIn DESC ");\r\necho "</div>";\r\n\r\necho "<p>";\r\n', '$CaseId=$_SESSION[`CaseId`];\r\n$UserId=$_SESSION[`UserId`];\r\n$ProjectId=$_SESSION[`ProjectId`];\r\n\r\n$Instance=ShowQueryResultScalar("select rUnique from Responses where CaseID=`$CaseId` and rInstance=`Renter`");\r\n\r\nif ($Instance=="")\r\n   {\r\n      ExecuteSQL("insert into Responses (CaseID,qID,uID,rInstance,ProjectId) select `$CaseId`,`RE_RenterName`,`$UserId`,`Renter`,`$ProjectId`");\r\n      $Instance=ShowQueryResultScalar("select rUnique from Responses where CaseID=`$CaseId` and rInstance=`Renter`");\r\n      ExecuteSQL("update Responses set rInstance=`$Instance` where rUnique=`$Instance`");\r\n   }\r\n$_SESSION[`Instance`]=$Instance;\r\nSetForm(`RE_Renter_Detail`);\r\n\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2009-10-06 13:10:40', 0, '', NULL, NULL),
(89, 'RE_RenterAmount', 'Real Estate renter`s amount', 'Rental amount', 'TEXT', '8', '', '<?IsNumber($val);?>', '', 0, 1, 1, 0, 0, '2008-12-16 19:37:23', 0, '', NULL, NULL),
(1806, 'GB_C_Email', 'Guest Book Email', 'Email', 'TEXT', '50', '', '', 'Provide your email address so that we can keep you posted on developments.', 0, 1, 1, 0, 0, '2009-10-06 14:57:02', 0, '', NULL, NULL),
(1807, 'GB_C_Website', 'Guest Book Website', 'Website (URL)', 'TEXT', '80', '', '', 'Enter your home page URL.', 0, 1, 1, 0, 0, '2009-10-06 14:57:50', 0, '', NULL, NULL),
(1805, 'GB_C_Name', 'Guest Book Name', 'Name', 'TEXT', '50', '', '$CaseId=$_SESSION[`CaseId`];\r\n$ProjectId=$_SESSION[`ProjectId`];\r\n$UserId=$_SESSION[`UserId`];\r\n\r\nif ($CaseId==-1)\r\n  {\r\n    $rUnique=ShowQueryResultScalar("select max(rUnique) from Responses where qID=`GB_C_Name` and CaseID=`-1`");\r\n    $_SESSION[`CaseId`]=$rUnique;\r\n    ExecuteSQL("update Responses set CaseID=`$rUnique` where rUnique=`$rUnique`");\r\n    $_SESSION[`MsgTxt`]=`Your questbook entry has been logged.  Thanks!`;\r\n  }\r\n$stat=1;', 'Enter your name so we can know who you are.', 0, 1, 1, 0, 0, '2009-10-06 15:30:22', 0, '', NULL, NULL),
(1808, 'GB_C_Message', 'Guest Book Message', 'Message', 'TEXTAREA', '255', '', '', 'A brief message to us.', 0, 1, 1, 0, 0, '2009-10-06 14:57:58', 0, '', NULL, NULL),
(1809, 'GB_C_DateTime', 'Guest Book Date Time', 'Date and time entered', 'DATE', '20', '', '', '', 0, 1, 1, 0, 0, '2009-10-06 17:59:23', 0, '', 'date(`Y-m-d H:i:s`);', NULL),
(1811, 'Q_Loop1_2', 'Question loop form 1 question 2', '</td><td>\r\n<b class=tdQuestion>Q_Loop1_2</b><br>\r\n', 'TEXT', '10', '', '', 'This is the help for Q_Loop1_2', 0, 1, 1, 0, 0, '2009-11-27 21:04:13', 0, '', '', NULL),
(1812, 'Q_Loop1_3', 'Question loop form 1 question 3', '</td>\r\n</tr></table>\r\n</td>\r\n<td class=tdblueS>\r\n<b class=tdQuestion>Q_Loop1_3</b><br>\r\nThis is the text for Q_Loop1_3\r\n<p><table border=0 cellpadding=5><tr>\r\n<td>\r\n<b class=tdQuestion>Q_Loop1_3</b><br>\r\n', 'TEXT', '10', '', '', 'This is the help for Q_Loop1_3', 0, 1, 1, 0, 0, '2009-11-27 21:04:26', 0, '', '', NULL),
(1813, 'Q_Loop1_4', 'Question loop form 1 question 4', '</td>\r\n</tr></table>\r\n</td></tr></table>\r\n<p>\r\nAny more loops?', 'YesNo', 'RADIO', '', 'if (`$val`==1)\r\n  {\r\n     $CaseId=$_SESSION[`CaseId`];\r\n     $ProjectId=$_SESSION[`ProjectId`];\r\n     ExecuteSQL("insert into Responses (CaseID,qID,ProjectId) select $CaseId, `Q_Loop1_1`, $ProjectId");\r\n     $rInstance=ShowQueryResultScalar("select max(rUnique) from Responses where qID=`Q_Loop1_1` and ProjectId=$ProjectId");\r\n     ExecuteSQL("update Responses set rInstance=$rInstance where rUnique=$rInstance");\r\n     $_SESSION[`Instance`]=$rInstance;\r\n  }\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2009-11-27 20:37:37', 0, '', '', NULL),
(1814, 'Q_Loop1_5', 'Question loop form 1 question 5', '<p>\r\n<table border=0 class=tdyelloworangeV width=100%><tr><td>\r\nSome instruction to the user\r\n</td></tr></table>\r\n<p>\r\n<b>Text for Q_Loop1_5</b>\r\n     ', 'TEXT', '10', '$CaseId=$_SESSION[`CaseId`];\r\n$prm=ShowQueryResultScalar("select sum(rValue) from Responses where CaseID=$CaseId and qID=`Q_Loop1_3` and isDeleted=0");\r\n', '', '', 0, 0, 0, 0, 0, '2009-11-27 21:05:17', 0, '', '', NULL),
(1815, 'Q_Loop1_End', 'Question loop form 1 end the loop', '</tr></table>', 'NULL', 'RADIO', '', '', '', 0, 0, 0, 0, 0, '2009-11-27 20:34:52', 0, '', '', NULL),
(1817, 'LastName', 'Last name', 'Last name', 'TEXT', '30', '', '<?Required($val);?>', 'Your last name.', 0, 0, 0, 0, 0, '2011-01-03 08:35:42', 0, '', '', NULL),
(1818, 'UserName', 'User name', 'User name', 'TEXT', '30', '', '<?Required($val);?>', 'It is recommended that you provide your most common username here.', 0, 0, 0, 0, 0, '2011-01-03 08:56:48', 0, '', '', NULL),
(1819, 'Email', 'Email address', 'Email address', 'TEXT', '50', '', '<?Required($val);?>', 'Your email address.', 0, 0, 0, 0, 0, '2011-01-03 08:36:06', 0, '', '', NULL),
(1820, 'Affiliation', 'Affiliation', 'Affiliation', 'TEXT', '50', '', '', 'This field is optional but lets us know if you are affiliated with a specific organization.', 0, 0, 0, 0, 0, '2011-01-03 08:30:34', 0, '', '', NULL),
(1821, 'ReasonAccount', 'Reason for account request', 'Reason for request', 'TEXT', '255', '', '', 'This field is optional but lets us know how you plan to use your ProMan account.', 0, 0, 0, 0, 0, '2011-01-03 08:31:20', 0, '', '', NULL),
(1822, 'VC_Name', 'Vendor name', 'Name', 'TEXT', '80', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:39:22', 0, '', '', NULL),
(1823, 'VC_Address1', 'Vendor address 1', 'Address 1', 'TEXT', '80', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:39:38', 0, '', '', NULL),
(1824, 'VC_Address2', 'Vendor address 2', 'Address 2', 'TEXT', '80', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:39:53', 0, '', '', NULL),
(1825, 'VC_City', 'Vendor city', 'City', 'TEXT', '40', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:40:08', 0, '', '', NULL),
(1826, 'VC_State', 'Vendor state', 'State', 'State', 'DROPDOWN', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:40:27', 0, '', '', NULL),
(1827, 'VC_Zip', 'Vendor zip code', 'Zip code', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:40:48', 0, '', '', NULL),
(1828, 'VC_Phone', 'Vendor phone', 'Phone', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:41:09', 0, '', '', NULL),
(1829, 'VC_Fax', 'Vendor fax', 'Fax', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:41:25', 0, '', '', NULL),
(1830, 'VC_Email', 'Vendor email', 'Email', 'TEXT', '50', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:41:46', 0, '', '', NULL),
(1831, 'VC_CEO', 'Vendor CEO', 'CEO', 'TEXT', 'CHECKBOX', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:42:29', 0, '', '', NULL),
(1832, 'VC_ContactSales', 'Vendor sales contact', 'Sales contact', 'TEXT', '50', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:42:47', 0, '', '', NULL);
INSERT INTO `Questions` (`qUnique`, `qID`, `qDescription`, `qText`, `qType`, `qFormat`, `qPreLogic`, `qPostLogic`, `qHelp`, `qIsDeleted`, `qStore`, `qPublish`, `qGlobal`, `ProjectId`, `LastUpdate`, `UserId`, `qAudio`, `qDefault`, `qAlias`) VALUES
(1833, 'VC_ContactAccounts', 'Vendor accounts contact', 'Accounts contact', 'TEXT', '50', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:43:01', 0, '', '', NULL),
(1834, 'CaseNotes', 'Notes', 'Notes', 'TEXTAREA', '2048', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:29:31', 0, '', '', NULL),
(1835, 'VC_Type', 'Vendor or Client', 'Type', 'Vendor/Client', 'DROPDOWN', '', '', '', 0, 1, 1, 0, 0, '2011-12-27 15:55:41', 0, '', '', NULL),
(1836, 'RE_X_Type', 'Type of transaction', 'Type', 'Rec/Pay', 'DROPDOWN', '', '', '', 0, 1, 1, 0, 0, '2012-03-01 10:17:32', 0, '', '', NULL),
(1837, 'RE_X_VendorClient', 'Vendor or Client', '<a href=~javascript:popitup(`../Questionnaire/index.php?Instrument=Business&Form=VendorClient_Listing&Ftmp=&Ctmp=free&HFtmp=OK`,100,125,550,900);~>Vendor or Client</a>\r\n', 'Query', 'DROPDOWN', '$Q_PreLogic=~select rUnique as tValue,rValue as tText,`` as rAudio \r\nfrom Responses\r\nwhere qId=`CaseFirstName`~;', '', '', 0, 1, 1, 0, 0, '2012-04-23 22:44:08', 0, '', '', NULL),
(1838, 'tmpVendorSelect', 'temporary vendor selection', 'New Vendor or Client', 'Button', 'BUTTON', 'GLOBAL $LINENUMBERS;\r\n$LINENUMBERS=0;\r\n\r\nglobal $FCOLOR;\r\n$FCOLOR=`RED`;\r\n\r\n$ProjectId=$_SESSION[`ProjectId`];\r\n\r\n$sel=$_REQUEST[`VendorSelect`];\r\nif ($sel!=~~)\r\n{\r\n   $_SESSION[`Instance`]=ShowQueryResultScalar(~select rInstance from Responses where rUnique=`$sel` and isDeleted=0~);\r\n/*\r\n   SetForm(`VendorClient_Detail`);\r\n*/\r\n   $CaseId=ShowQueryResultScalar(~select CaseID from Responses where rUnique=`$sel` and isDeleted=0~);\r\n/*\r\n   SetInstanceCaseForm($_SESSION[`Instance`],$CaseId,`VendorClient_Detail`);\r\n*/\r\n   SetCaseForm($CaseId,`VendorClient_Detail`);\r\n}\r\n\r\necho ~<input type=hidden name=VendorSelect>~;\r\n\r\necho ~<h4>Vendors and Clients</h4> ~;\r\n\r\nExecuteSQL(~create temporary table b as (select CaseID,rValue as Name,rInstance from Responses where qID=`CaseFirstName` and ProjectId=`$ProjectId` and isDeleted=0) ~);\r\n\r\nExecuteSQL(~create temporary table a as (select CaseID,tText as Type, rInstance from Responses,ResponseType where qID=`CaseType` and rValue in (`V`,`C`) and ProjectId=`$ProjectId` and isDeleted=0 and tID=`CSType` and tValue=rValue) ~);\r\n\r\necho `<div style=~height:295; overflow: scroll;~>`;\r\nShowQueryResult(~select distinct concat(`<input type=button value=`,substring(replace(cast(100000+cast(a.CaseID as unsigned) as char(6)),` `,`0`),2,5),` onclick=javascript:Xsel(`,a.CaseID,`);>`) as Detail, Type, Name from a,b where b.CaseID=a.CaseID order by Name ~);\r\necho ~</div>~;\r\n\r\necho ~<p>~;', '\r\nSetInstrumentForm(`ControlSystem`,`CS_Case_Console`);\r\n\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2012-04-23 22:19:59', 0, '', '', NULL),
(1839, 'VC_Price', 'Price of the commodity', 'Price', 'TEXT', '12', '', '', '', 0, 1, 1, 0, 0, '2012-03-02 08:00:45', 0, '', '', NULL),
(1840, 'VC_DateBeg', 'Beginning date', 'Beginning date', 'DATE', '10', '', '', '', 0, 1, 1, 0, 0, '2012-03-02 08:02:36', 0, '', '', NULL),
(1841, 'VC_DateEnd', 'Ending date', 'Ending date', 'DATE', '10', '', '', '', 0, 1, 1, 0, 0, '2012-03-02 08:22:09', 0, '', '', NULL),
(1842, 'CaseGender', 'Gender', 'Gender', 'Gender', 'RADIO', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:27:05', 0, '', '', NULL),
(1843, 'CaseEthnicity', 'Ethnicity', 'Ethnicity', 'Ethnicity', 'RADIO', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:27:27', 0, '', '', NULL),
(1844, 'CaseAddress2', 'Address line 2', 'Address line 2', 'TEXT', '50', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:27:48', 0, '', '', NULL),
(1845, 'CaseType', 'Type of case', 'Type', 'CSType', 'DROPDOWN', '', '', 'The type item distinguishes different types of cases for subsequent processing.', 0, 1, 1, 1, 0, '2015-11-10 14:22:15', 0, '', 'C', ''),
(1846, 'CaseFAX', 'Fax', 'Fax', 'TEXT', '10', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 16:29:17', 0, '', '', NULL),
(1847, 'PM_DEBUG', 'DEBUG', 'Debug', 'YesNo', 'RADIO', '', '', 'This variable controls whether the debug function outputs log entries.', 0, 1, 1, 1, 0, '2012-03-05 21:49:33', 0, '', '', NULL),
(1848, 'PM_OWNER', 'Owner', 'Owner', 'TEXT', '50', '', '', 'Site owner', 0, 1, 1, 1, 0, '2012-03-05 21:58:02', 0, '', '', NULL),
(1849, 'PM_VERSION', 'Version', 'Version', 'TEXT', '10', '', '', 'Software version', 0, 1, 1, 1, 0, '2012-03-05 22:00:07', 0, '', '', NULL),
(1850, 'PMROOT', 'Root', 'Root', 'TEXT', '80', '', '', 'Root folder where user folders are located', 0, 1, 1, 1, 0, '2012-03-05 22:00:42', 0, '', '', NULL),
(1851, 'PM_BASE', 'Base', 'Base', 'TEXT', '80', '', '', 'HTTP starting directory', 0, 1, 1, 1, 0, '2012-03-05 22:01:18', 0, '', '', NULL),
(1852, 'PM_HEADER_BG', 'Bid header', 'Big header', 'TEXT', '80', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 21:51:36', 0, '', '', NULL),
(1853, 'PM_LITTLEdark_BG', 'Little dark background', 'Little dark background', 'TEXT', '80', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 21:53:04', 0, '', '', NULL),
(1854, 'PM_LITTLElight_BG', 'Little light background', 'Little light background', 'TEXT', '80', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 21:53:44', 0, '', '', NULL),
(1855, 'PM_MENU_BG', 'Big menu', 'Big menu', 'TEXT', '80', '', '', '', 0, 1, 1, 1, 0, '2012-03-05 21:54:39', 0, '', '', NULL),
(1856, 'PM_CONTENT_BG', 'Big content', 'Big content', 'TEXT', '80', '', '', 'Background image for the content pane', 0, 1, 1, 1, 0, '2012-03-05 21:59:38', 0, '', '', NULL),
(1857, 'MV_Year', 'Max Vac Year', 'Year:', 'TEXT', '4', 'if ($val==``) $val=Now();', '', 'Select the year in which you wish to vacation.', 0, 1, 1, 0, 0, '2012-09-18 16:44:02', 0, '', '', ''),
(1858, 'MV_Season', 'Max Vac Season', 'Season:', 'Season', 'RADIO', '', '', 'Select the season in which you wish to vacation.  (Select <font color=red>Any</font> if you have no preference.)', 0, 1, 1, 0, 0, '2012-09-18 16:44:13', 0, '', '', ''),
(1859, 'Country', 'Country', 'Country:', 'Country', 'DROPDOWN', '', '', 'Select the country you wish to vacation. (Select <font color=red>Any</font> if you have no preference.)', 0, 1, 1, 0, 0, '2012-09-18 16:44:22', 0, '', '', ''),
(1860, 'State', 'State', 'State:', 'State', 'DROPDOWN', '', '', 'Select the state you wish to vacation. (Select <font color=red>Any</font> if you have no preference.)', 0, 1, 1, 0, 0, '2012-09-18 16:44:32', 0, '', '', ''),
(1861, 'MV_Activity', 'Max Vac Activities', 'Activities', 'MV_Activity', 'CHECKBOX', '', '', 'Select the activities you wish to enjoy on your vacation.', 0, 1, 1, 0, 0, '2012-09-18 16:44:47', 0, '', '', ''),
(1862, 'MV_Sports', 'Max Vac Sporting Events', 'Sporting Events:', 'MV_Sports', 'RADIO', '', '', 'Select the sporting events you would like to attend on your vacation. (Select <font color=red>Any</font> if you have no preference.)', 0, 1, 1, 0, 0, '2012-09-18 16:44:58', 0, '', '', ''),
(1863, 'MV_Concerts', 'Max Vac Concerts', 'Concerts:', 'MV_Concerts', 'CHECKBOX', '', '', 'Select the concerts you would like to take in on your vacation.  (Select <font color=red>Any</font> if you have no preference.)', 0, 1, 1, 0, 0, '2012-09-18 16:45:07', 0, '', '', ''),
(1864, 'MV_Accomodations', 'Max Vac Accomodations', 'Accomodations:', 'MV_Accomodations', 'RADIO', '', '', 'Select the type of accomodations for your vacation.', 0, 1, 1, 0, 0, '2012-09-18 16:45:17', 0, '', '', ''),
(1865, 'MV_Travel', 'Max Vac Travel', 'Travel:', 'MV_Travel', 'RADIO', '', '', 'Select the means of travel to your vacation.  ', 0, 1, 1, 0, 0, '2012-09-18 16:45:32', 0, '', '', ''),
(1866, 'MV_Title', 'Max Vac Title', 'Title:', 'TEXT', '80', '', '', 'Enter a descriptive title for this vacation - example `Camping and bluegrass`.', 0, 0, 0, 0, 0, '2012-09-18 14:40:40', 0, '', '', 'CaseFirstName'),
(1867, 'MV_Title', 'Max Vac Title', 'Title:', 'TEXT', '80', '', '', 'Enter a descriptive title for this vacation - example `Camping and bluegrass`.', 0, 0, 0, 0, 0, '2012-09-18 14:40:40', 0, '', '', 'CaseFirstName'),
(1868, 'MV_Select', 'Max Vac Select', '', 'NULL', 'RADIO', '$alttit=$_SESSION[`PM_AltTitle`];\r\n\r\necho `<h3 style=~-moz-border-radius: 15px;-webkit-border-radius: 15px; border-radius: 15px; border: 1px solid blue;padding: 12px;width:400px; BACKGROUND-COLOR: #DFFFFF;~ class=tdbluetanV ><ol><li>Select a vacation from the list below to see the detail for the vacation and explore other options or\r\n<br><br>\r\n<li>Click on <font color=red>New Vacation</font> to add a new vacation to your possibilities.</ol></h3><br>`;\r\n\r\nExecuteSQL(~create temporary table a as (select CaseID, rInstance from Responses where qID=`CaseType` and rValue=`M` and isDeleted=0) ~);\r\n\r\nExecuteSQL(~create temporary table b as (select CaseID, rValue as Description from Responses where qID=`CaseFirstName` and isDeleted=0) ~);\r\n\r\necho `<div style=~height:250; overflow: ~>`;\r\n\r\nShowQueryResult(~select distinct concat(`<input type=button value=`,char(34),Description,char(34),` $alttit=`,char(34),`Click to access vacation detail`,char(34),` onclick=javascript:window.parent.SetInstanceCaseForm(`,char(39),a.rInstance,char(39),`,`,char(39),a.CaseID,char(39),`,`,char(39),`MV_Options`,char(39),`,`,char(39),`&Ftmp=&Ctmp=qrh&HFtmp=OK&Borders=1`,char(39),`);>`) as Vacation, concat(` <input type=image onclick=`,char(34),`javascript:  return DelCase(`,char(39),a.CaseId,char(39),`,`,char(39),Description,char(39),`); `,char(34),`  src=../images/delete2.gif $alttit =`,char(34),`Delete vacation: `,char(39),Description,char(39),char(34),` height=20 width=18>`) as Del from a,b where b.CaseID=a.CaseID order by Description DESC~);\r\n\r\necho ~</div>~;\r\n\r\necho `<p><br>`;\r\n', '', '', 0, 0, 0, 0, 0, '2012-10-02 11:22:46', 0, '', '', ''),
(1869, 'MV_New', 'Max Vac New Vacation', 'New Vacation', 'Button', 'BUTTON', '', '$UserId=$_SESSION[`UserId`];\r\n\r\n$CaseId=str_replace(` `,``,ShowQueryResultScalar(~select concat(UserId,`-vac-`,NOW()) as CaseId from Users where UserId=`$UserId`~));\r\n\r\n$Instance=ShowQueryResultScalar(~select rUnique from Responses where CaseID=`$CaseId`~);\r\n\r\nif ($Instance==~~)\r\n   {\r\n      ExecuteSQL(~insert into Responses (CaseID,qID,rValue,uID,rInstance,ProjectId) select `$CaseId`,`CaseID`,`$CaseId`,`$UserId`,`1`,`~.$_SESSION[`ProjectId`].~`~);\r\n      ExecuteSQL(~insert into Responses (CaseID,qID,rValue,uID,rInstance,ProjectId) select `$CaseId`,`CaseType`,`M`,`$UserId`,`1`,`~.$_SESSION[`ProjectId`].~`~);\r\n\r\n      $Instance=1;\r\n   }\r\n$_SESSION[`Instance`]=$Instance;\r\n$_SESSION[`CaseId`]=$CaseId;\r\nSetForm(`MV_Options`);\r\n\r\n$stat=1;', '', 0, 0, 0, 0, 0, '2012-09-18 18:50:28', 0, '', '', ''),
(1870, 'CaseFolder', 'Case folder for documents and other material', 'Case Folder', 'TEXT', '80', '', '', '', 0, 1, 1, 0, 0, '2013-06-07 15:37:59', 0, '', '', ''),
(1871, 'tmpREyear', 'temp for selecting year', '', 'NULL', 'DROPDOWN', 'echo `<table border=0 width=50%><tr><td align=center>`;\r\n\r\n$CaseId=$_SESSION[`CaseId`];\r\n\r\n$tmpREyear=$_POST[`tmpREyear`];\r\nif ($tmpREyear==``) $tmpREyear=$_SESSION[`PM_REyear`];\r\nif ($tmpREyear==``) $tmpREyear=date(~Y~);\r\n$_SESSION[`PM_REyear`]=$tmpREyear;\r\n\r\necho ~Year: <select name=tmpREyear size=1 onchange=`DoPostBack(0,tmpREyear);`>~;\r\necho `<option value=~All years~>All years</option>`;\r\n\r\nOptionQueryResult(~select distinct substring(rValue,1,4), substring(rValue,1,4) from Responses where CaseID=`$CaseId` and IsDeleted=0 and rValue<>`` and qID=`RE_X_Date` order by rValue desc ~,$tmpREyear);\r\n\r\necho `</select>`;\r\n\r\necho `</td>`;', '', '', 0, 0, 0, 0, 0, '2015-11-11 12:29:11', 0, '', '', ''),
(1872, 'tmpREcases', 'temp for selecting case', '', 'NULL', 'RADIO', 'echo `<td align=center>`;\r\n\r\n$CaseId=$_SESSION[`CaseId`];\r\n\r\necho ~Property: <select id=tmpREcase size=1 onchange=`Csel();`>~;\r\n\r\nOptionQueryResult(~select CaseID, rValue from Responses where qID=`CaseFirstName` and CaseID in (select CaseID from Responses where qID=`CaseType` and rValue=`P`) and isDeleted=0 order by rValue;~,$CaseId);\r\n\r\necho `</select>`;\r\n\r\necho `</td></tr></table>`;\r\n', '', '', 0, 1, 0, 0, 0, '2014-01-16 22:39:41', 0, '', '', ''),
(1873, 'CaseCounty', 'Case county of residence', 'County', 'TEXT', '25', '', '', '', 0, 1, 1, 1, 0, '2015-11-10 13:28:29', 0, '', '', ''),
(1874, 'TEFAPHHsize', 'Case household size', '<table border=1 cellspacing=3>\r\n<tr align=center bgcolor=white><td><b>Household Size</b></td><td><b>Per Year</b></td><td><b>Per Month</b></td><td><b>Per Week</b></td></tr>\r\n<tr align=center><td>1</td><td>$23,544</td><td>$1,962</td><td>$453</td></tr>\r\n<tr align=center><td>2</td><td>$31,872</td><td>$2,656</td><td>$613</td></tr>\r\n<tr align=center><td>3</td><td>$40,200</td><td>$3,350</td><td>$773</td></tr>\r\n<tr align=center><td>4</td><td>$48,504</td><td>$4,042</td><td>$933</td></tr>\r\n<tr align=center><td>5</td><td>$56,832</td><td>$4,736</td><td>$1,093</td></tr>\r\n<tr align=center><td>6</td><td>$65,160</td><td>$5,430</td><td>$1,253</td></tr>\r\n<tr align=center><td>7</td><td>$73,464</td><td>$6,122</td><td>$1,413</td></tr>\r\n<tr align=center><td>8</td><td>$81,792</td><td>$6,816</td><td>$1,573</td></tr>\r\n<tr align=center><td>Each Additional<br>Family Member</td><td>$8,328</td><td>$694</td><td>$160</td></tr>\r\n</table>', 'TEXT', '2', '', '$stat=IsBlank(~$val~);\r\nif($stat==0) $stat=IsNumber($val);', 'Effective October 1, 2015 through September 30, 2016<br>\r\n(Household gross income must be at or below for appropriate size household.)<p>\r\nThe table to the left shows a gross income for each family size.  If you household income is <b>at or below</b> the income listed for the number of people in your household, you are eligible to receive food.  A household is defined as a group of people who live together and share money and other resources in order to get food.  Please look at the income scale to the left to determine if your household is eligible for TEFAP.\r\n<p>\r\n<center>OR</center>\r\n<b><u>\r\nNote:\r\n</u></b>\r\nThe above may be read to persons who are unable to read.  People who are unable to sign their name may sign by using an X.', 0, 1, 1, 0, 0, '2015-11-17 12:54:14', 0, '', '', ''),
(1875, 'TEFAPverified', 'TEFAP hard copy form signed', 'Verfication that hard copy TEFAP form signed and on file', 'YesNo', 'RADIO', '', '', '<u><b>\r\nThe section below is only for homebound individuals.\r\n</b></u>\r\n', 0, 1, 1, 0, 0, '2015-11-16 23:31:50', 0, '', '', ''),
(1876, 'TEFAPauth1', 'TFAP authorized signature 1', 'Authorized signature 1', 'SIGNATURE', 'SIGNATURE', '', '', 'The following persons are authorized to pick up my food (if applicable):', 0, 1, 1, 0, 0, '2015-11-17 11:53:47', 0, '', '', ''),
(1877, 'TEFAPauth2', 'TFAP authorized signature 2', 'Authorized signature 2', 'SIGNATURE', 'SIGNATURE', '', '', '', 0, 1, 1, 0, 0, '2015-11-16 14:52:43', 0, '', '', ''),
(1878, 'TEFAPclientSig', 'TFAP client signature', 'Client signature', 'SIGNATURE', 'SIGNATURE', '', '', '<u><b>\r\nPlease read the following statement carefully, then sign the form and write in today`s date.\r\n</b></u><br>\r\nI understand that any misrepresentation of need, sale, or misuse of the foods I have received is prohibited and could result in a fine, imprisonment, or both.  (Sec. 211 E, PL 96-494 and Sec. 4C, PL 93-86 as amended.)\r\n', 0, 1, 1, 0, 0, '2015-11-16 23:35:42', 0, '', '', ''),
(1879, 'TFAPid', 'Case Identifier', 'Unique Identifier', 'TEXT', '30', '', 'if (NewCase(`$val`)==1)\r\n{\r\n   $sql=~insert into Responses (CaseID, qID, rValue, uID, rOK) ~ . \r\n        ~values (`$val`,`RE_Id`,`$val`,`~ . \r\n        $_SESSION[`UserId`] . ~`, `2`)~;\r\n   $stat=ExecuteSQL($sql);\r\n   SetCaseForm(`$val`,`RE_ListingDetail`);\r\n   return 1;\r\n}', 'This is the unique identifier for the entity.  It is associated each attribute for the entity.', 0, 1, 1, 1, 32, '2015-11-10 14:54:18', 0, '', '', ''),
(1880, 'TEFAPdate', 'TEFAP food receipt date', 'Date', 'DATE', '25', '', '<?DateCheck(`2015-01-01`,`$val`,`2015-12-31`);?>', '', 0, 1, 1, 0, 32, '2015-11-17 17:24:54', 0, '', '', ''),
(1881, 'TEFAPclientSigV', 'TEFAP food receipt signature client', 'Client signature', 'SIGNATURE', 'SIGNATURE', '', '', '', 0, 1, 1, 0, 32, '2015-11-17 17:23:12', 0, '', '', ''),
(1882, 'TEFAPfns', 'TEFAP FNS', 'FNS', 'YesNo', 'RADIO', '', '', 'If you do not receive FNS Benefits (i.e. food stamps), write in your yearly, monthly, or weekly income.', 0, 1, 1, 0, 32, '2015-11-16 23:19:04', 0, '', '', ''),
(1883, 'TEFAPyearly', 'TEFAP yearly income', 'Yearly income', 'TEXT', 'RADIO', '', '', '', 0, 1, 1, 0, 32, '2015-11-11 17:50:51', 0, '', '', ''),
(1884, 'TEFAPmonthly', 'TEFAP monthly income', 'Monthly income', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 32, '2015-11-11 17:51:10', 0, '', '', ''),
(1885, 'TEFAPweekly', 'TEFAP weekly income', 'Weekly income', 'TEXT', '10', '', '', '', 0, 1, 1, 0, 32, '2015-11-11 17:51:21', 0, '', '', ''),
(1886, 'TEFAPagentSig', 'TEFAP agency representative signature', 'Agency representative signature', 'SIGNATURE', 'SIGNATURE', '', '', '', 0, 1, 1, 0, 32, '2015-11-17 17:23:25', 0, '', '', ''),
(1887, 'TEFAPcreate', 'TEFAP create new client', 'Create a New Case', 'Button', 'BUTTON', 'echo ~<br><li>~;', 'if ($prm==`CS_Case_Create`)\r\n   {\r\n      $UserId=$_SESSION[`UserId`];\r\n      $ProjectId=$_SESSION[`ProjectId`];\r\n      ExecuteSQL(~insert into Responses (CaseID,qID,uID,ProjectId) select `New Case`, `CaseID`,$UserId,$ProjectId~);\r\n      $CaseId=ShowQueryResultScalar(~select rUnique from Responses where CaseID=`New Case` and qID=`CaseID`~); \r\n      ExecuteSQL(~update Responses set CaseID=$CaseId, rValue=$CaseId, rOK=2 where rUnique=$CaseId~);\r\n      $_SESSION[`CaseId`]=$CaseId;\r\n      $_SESSION[`Instance`]=`1`;\r\n      SetForm(CS_Case_Detail);\r\n   }\r\n$stat=1;', '', 0, 0, 0, 0, 32, '2015-11-11 09:55:47', 0, '', '', ''),
(1888, 'TEFAPvewrec', 'TEFAP view receipts', 'View Receipt History', 'Button', 'BUTTON', '', 'if ($prm==`TEFAPvewrec`)\r\n   {\r\n      SetForm(`TEFAPrecHist`);\r\n   }\r\n$stat=1;', '', 0, 0, 0, 0, 32, '2015-11-12 14:22:42', 0, '', '', ''),
(1889, 'TEFAPtmpHist', 'TEFAP receipt history', 'Create A New Receipt Record', 'Button', 'BUTTON', '$caseid=$_SESSION[`CaseId`];\r\n$cases=array();\r\n$cases[0]=$caseid;\r\n$vars=CSfrmFields(`TEFAPreceipt`);\r\necho `<table border=5 bgcolor=red><tr><td>`;\r\nShowResponsesI($cases,$vars,$vars,1,1);\r\necho `</td></tr></table><p>`;', 'if ($prm==`TEFAPtmpHist`)\r\n{\r\n  $CaseId=$_SESSION[`CaseId`];\r\n  $UserId=$_SESSION[`UserId`];\r\n  $ProjectId=$_SESSION[`ProjectId`];\r\n\r\n  $Instance=ShowQueryResultScalar(~select rUnique from Responses where CaseID=`$CaseId` and rInstance=`Receipt` and ProjectId=`$ProjectId`~);\r\n\r\n  if ($Instance==~~)\r\n     {\r\n        ExecuteSQL(~insert into Responses (CaseID,qID,uID,rInstance,ProjectId) select `$CaseId`,`TEFAPdate`,`$UserId`,`Receipt`,`$ProjectId`~);\r\n        $Instance=ShowQueryResultScalar(~select rUnique from Responses where CaseID=`$CaseId` and rInstance=`Receipt` and ProjectId=`$ProjectId`~);\r\n        ExecuteSQL(~update Responses set rInstance=`$Instance` where rUnique=`$Instance`~);\r\n     }\r\n  $_SESSION[`Instance`]=$Instance;\r\n\r\n  SetInstanceCaseForm($Instance,$CaseId,`TEFAPreceipt`);\r\n}\r\n\r\n$stat=1;', '', 0, 0, 0, 0, 32, '2015-11-20 11:59:27', 0, '', '', ''),
(1890, 'TEFAPtmpCreate', 'TEFAP create new receipt record', 'Create A New Receipt Record', 'Button', 'BUTTON', '', '', '', 0, 0, 0, 0, 32, '2015-11-11 13:27:42', 0, '', '', ''),
(1891, 'TEFAPbaseFNS', 'TEFAP baseline FNS', 'FNS', 'YesNo', 'RADIO', '', '', '<b><u>\r\nIf you currently participate in a Foor & Nutrition &nbsp;Services Program (i.e. Food Stamps) you are automatically eligible to receive TEFAP nd do not need to look at the income scale.\r\n</u></b>', 0, 1, 1, 0, 32, '2015-11-17 00:04:13', 0, '', '', ''),
(1892, 'CS_Search_String', 'Control System Case Search String', '', 'NULL', '25', '$CS_Search_String=$_REQUEST[`CS_Search_String`];\r\n//echo `Srch_Str=~`,$CS_Search_String,`~ sess Srch_Str=`,$_SESSION[`CS_Search_String`];\r\nif($CS_Search_String==``) $CS_Search_String=$_SESSION[`CS_Search_String`];\r\nelse $_SESSION[`CS_Search_String`]=$CS_Search_String;\r\necho ~<p><br><br><center><table border=1 bordercolor=black bgcolor=darkgrey><tr><td><table border=5 bgcolor=darkgrey bordercolor=grey><tr><td><table border=10 cellpadding=10 bordercolor=orange><tr><td class=tdtanblueS><table border=0><tr><td><br><ol><li><h2>Search for: ~;\r\necho ~<input type=text name=CS_Search_String id=CS_Search_String size=25 value=`$CS_Search_String` ></h2>~;\r\n', '', 'Enter a value to search.  This may be a case ID, first name or last name.  Whatever value is entered must be an exact substring of the fields to be searched.', 0, 0, 0, 0, 32, '2015-11-29 15:14:01', 0, '', '', ''),
(1893, 'TEFAPclientSigDate', 'TEFAP client signature date', 'Date', 'DATE', '10', '', '', '', 0, 1, 1, 0, 32, '2015-11-17 14:05:24', 0, '', '', '');

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

--
-- Table structure for table `RelatedIssues`
--

CREATE TABLE IF NOT EXISTS `RelatedIssues` (
  `PrimaryIssueId` int(11) NOT NULL,
  `SecondaryIssueId` int(11) NOT NULL,
  `RelationType` int(11) NOT NULL,
  `Conflict` varchar(3) NOT NULL DEFAULT 'no' COMMENT 'Conflict in dates'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Child issue ID';

--
-- Dumping data for table `RelatedIssues`
--


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

--
-- Table structure for table `ResponseFormat`
--

CREATE TABLE IF NOT EXISTS `ResponseFormat` (
  `rfUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `rfFormat` varchar(32) NOT NULL COMMENT 'Response Format Type',
  `rfIsDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Row is deleted',
  UNIQUE KEY `rfUnique` (`rfUnique`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each Response Format' AUTO_INCREMENT=60 ;

--
-- Dumping data for table `ResponseFormat`
--

INSERT INTO `ResponseFormat` (`rfUnique`, `rfFormat`, `rfIsDeleted`) VALUES
(1, 'RADIO', 0),
(2, 'CHECKBOX', 0),
(3, 'DROPDOWN', 0),
(4, '1', 0),
(5, '2', 0),
(6, '3', 0),
(7, '4', 0),
(8, '5', 0),
(9, '6', 0),
(10, '7', 0),
(11, '8', 0),
(12, '9', 0),
(13, '10', 0),
(14, '11', 0),
(15, '12', 0),
(16, '13', 0),
(17, '14', 0),
(18, '15', 0),
(19, '20', 0),
(20, '25', 0),
(21, '30', 0),
(22, '40', 0),
(23, '50', 0),
(24, '80', 0),
(25, '100', 0),
(26, '255', 0),
(27, '1024', 0),
(28, '2048', 0),
(29, 'BUTTON', 0),
(30, 'RADIO', 1),
(31, 'CHECKBOX', 1),
(32, 'DROPDOWN', 1),
(33, '1', 1),
(34, '2', 1),
(35, '3', 1),
(36, '4', 1),
(37, '5', 1),
(38, '6', 1),
(39, '7', 1),
(40, '8', 1),
(41, '9', 1),
(42, '10', 1),
(43, '11', 1),
(44, '12', 1),
(45, '13', 1),
(46, '14', 1),
(47, '15', 1),
(48, '20', 1),
(49, '25', 1),
(50, '30', 1),
(51, '40', 1),
(52, '50', 1),
(53, '80', 1),
(54, '100', 1),
(55, '255', 1),
(56, '1024', 1),
(57, '2048', 1),
(58, 'BUTTON', 1),
(59, 'SIGNATURE', 0);

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

--
-- Table structure for table `Responses`
--

CREATE TABLE IF NOT EXISTS `Responses` (
  `rUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `CaseID` varchar(32) NOT NULL COMMENT 'Case ID',
  `qID` varchar(32) NOT NULL COMMENT 'Question ID',
  `rValue` varchar(1024) NOT NULL COMMENT 'Response value',
  `uID` varchar(32) NOT NULL COMMENT 'User ID who entered value',
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date time when created',
  `rOK` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Response value is OK',
  `isDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Marks the row as deleted',
  `rInstance` varchar(10) NOT NULL COMMENT 'Associates the response with a specific instance',
  `ProjectId` int(11) NOT NULL COMMENT 'Project identifier',
  UNIQUE KEY `rUnique` (`rUnique`),
  KEY `ixCaseId` (`CaseID`),
  KEY `ixqId` (`qID`),
  KEY `ixRunique` (`CaseID`,`qID`,`rInstance`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each data point (storage)' AUTO_INCREMENT=17893 ;

--
-- Dumping data for table `Responses`
--

INSERT INTO `Responses` (`rUnique`, `CaseID`, `qID`, `rValue`, `uID`, `DateCreated`, `rOK`, `isDeleted`, `rInstance`, `ProjectId`) VALUES
(1070, '1', 'CS_Proc_Desc', 'Test Process 1', '12', '2008-06-20 02:44:33', 1, 0, '0', 0),
(1071, '2', 'CS_Event_Desc', 'Test Event 1', '-1', '2007-08-14 02:39:35', 1, 0, '1', 0),
(1072, '2', 'CS_Event_Order', '1', '-1', '2007-08-14 04:37:22', 1, 0, '1', 0),
(1073, '2', 'CS_Event_Power', '0', '-1', '2007-08-14 02:39:35', 1, 0, '1', 0),
(1074, '2', 'CS_Event_Duration', '7', '-1', '2007-08-14 02:39:35', 1, 0, '1', 0),
(1075, '2', 'CS_Event_Path', '', '-1', '2007-08-14 02:39:35', 1, 0, '1', 0),
(1076, '2', 'CS_Event_Exclusive', '', '-1', '2007-08-14 02:39:35', 1, 0, '1', 0),
(1077, '2', 'CS_Event_Logic', '', '-1', '2007-08-14 02:39:35', 1, 0, '1', 0),
(1078, '9', 'CS_Event_Desc', 'Test Event 2', '-1', '2007-08-14 02:39:44', 1, 0, '1', 0),
(1079, '9', 'CS_Event_Order', '2', '-1', '2007-08-14 04:37:22', 1, 0, '1', 0),
(1080, '9', 'CS_Event_Power', '0', '-1', '2007-08-14 02:39:44', 1, 0, '1', 0),
(1081, '9', 'CS_Event_Duration', '14', '-1', '2007-08-14 02:39:44', 1, 0, '1', 0),
(1082, '9', 'CS_Event_Path', '', '-1', '2007-08-14 02:39:44', 1, 0, '1', 0),
(1083, '9', 'CS_Event_Exclusive', '', '-1', '2007-08-14 02:39:44', 1, 0, '1', 0),
(1084, '9', 'CS_Event_Logic', '', '-1', '2007-08-14 02:39:44', 1, 0, '1', 0),
(1085, '16', 'CS_Event_Desc', 'Test Event 3', '-1', '2007-08-14 02:36:55', 1, 0, '1', 0),
(1086, '16', 'CS_Event_Order', '3', '-1', '2007-08-14 04:34:42', 1, 0, '1', 0),
(1087, '16', 'CS_Event_Power', '0', '-1', '2007-08-14 02:36:55', 1, 0, '1', 0),
(1088, '16', 'CS_Event_Duration', '21', '-1', '2007-08-14 02:36:55', 1, 0, '1', 0),
(1089, '16', 'CS_Event_Path', '', '-1', '2007-08-14 02:36:55', 1, 0, '1', 0),
(1090, '16', 'CS_Event_Exclusive', '', '-1', '2007-08-14 02:36:55', 1, 0, '1', 0),
(1091, '16', 'CS_Event_Logic', '', '-1', '2007-08-14 02:36:55', 1, 0, '1', 0),
(1092, '23', 'CS_Event_Desc', 'Test Event 4', '-1', '2007-08-21 15:47:03', 1, 0, '1', 0),
(1093, '23', 'CS_Event_Order', '4', '-1', '2007-08-14 04:34:42', 1, 0, '1', 0),
(1094, '23', 'CS_Event_Power', '3', '-1', '2007-08-21 15:47:03', 1, 0, '1', 0),
(1095, '23', 'CS_Event_Duration', '', '-1', '2007-08-21 15:47:03', 1, 0, '1', 0),
(1096, '23', 'CS_Event_Path', '', '-1', '2007-08-21 15:47:03', 1, 0, '1', 0),
(1097, '23', 'CS_Event_Exclusive', '', '-1', '2007-08-21 15:47:03', 1, 0, '1', 0),
(1098, '23', 'CS_Event_Logic', '', '-1', '2007-08-21 15:47:03', 1, 0, '1', 0),
(1099, '30', 'CS_Proc_Desc', 'Test Process 2', '12', '2007-08-22 00:06:20', 1, 0, '0', 0),
(1100, '31', 'CS_Event_Desc', 'New Event for process 2', '-1', '2007-08-14 04:36:20', 1, 0, '30', 0),
(1101, '31', 'CS_Event_Order', '1', '-1', '2007-08-14 13:13:23', 1, 0, '30', 0),
(1102, '31', 'CS_Event_Power', '0', '-1', '2007-08-14 04:36:20', 1, 0, '30', 0),
(1103, '31', 'CS_Event_Duration', '6', '-1', '2007-08-14 04:36:20', 1, 0, '30', 0),
(1104, '31', 'CS_Event_Path', '', '-1', '2007-08-14 04:36:20', 1, 0, '30', 0),
(1105, '31', 'CS_Event_Exclusive', '', '-1', '2007-08-14 04:36:20', 1, 0, '30', 0),
(1106, '31', 'CS_Event_Logic', '', '-1', '2007-08-14 04:36:20', 1, 0, '30', 0),
(1107, '38', 'CS_Event_Desc', 'New Event 2 for Process 2', '-1', '2007-08-14 04:36:43', 1, 0, '30', 0),
(1108, '38', 'CS_Event_Order', '2', '-1', '2007-08-14 13:13:23', 1, 0, '30', 0),
(1109, '38', 'CS_Event_Power', '2', '-1', '2007-08-14 04:36:43', 1, 0, '30', 0),
(1110, '38', 'CS_Event_Duration', '3', '-1', '2007-08-14 04:36:43', 1, 0, '30', 0),
(1111, '38', 'CS_Event_Path', '', '-1', '2007-08-14 04:36:43', 1, 0, '30', 0),
(1112, '38', 'CS_Event_Exclusive', '', '-1', '2007-08-14 04:36:43', 1, 0, '30', 0),
(1113, '38', 'CS_Event_Logic', '', '-1', '2007-08-14 04:36:43', 1, 0, '30', 0),
(1114, '1000', 'CaseZIP', '27502', '-1', '2007-08-17 21:24:50', 1, 0, '0', 0),
(1115, '1000', 'CaseState', 'NC', '-1', '2007-08-17 21:24:50', 1, 0, '0', 0),
(1116, '1000', 'CaseCity', 'Apex', '-1', '2007-08-17 21:24:50', 1, 0, '0', 0),
(1117, '1000', 'CaseAddress1', '321 Sycamore Lane', '-1', '2007-08-17 21:24:50', 1, 0, '0', 0),
(1118, '1000', 'CaseID', '1000', '-1', '2007-08-17 01:19:13', 1, 0, '0', 0),
(1119, '1000', 'CasePhoneHome', '919-555-1212', '-1', '2007-08-17 21:24:50', 1, 0, '0', 0),
(1120, '1000', 'CaseDOB', '1960-01-01', '-1', '2007-08-17 21:24:50', 1, 0, '0', 0),
(1121, '1000', 'CS_EventId30', '38', '-1', '2007-08-17 01:47:10', 1, 0, '0', 0),
(1122, '1000', 'CS_EventId1', '2', '-1', '2007-08-11 15:01:06', 1, 0, '0', 0),
(1124, '1000', 'CaseFirstName', 'John', '-1', '2012-03-05 21:21:46', 2, 0, '0', 0),
(1125, '1000', 'CaseLastName', 'Doe', '-1', '2007-08-17 21:24:50', 1, 0, '0', 0),
(1127, '97', 'CaseFirstName', 'John', '12', '2012-03-05 21:21:46', 2, 0, '0', 0),
(1128, '97', 'CaseLastName', 'Brown', '12', '2007-11-16 22:17:13', 1, 0, '0', 0),
(1129, '97', 'CaseDOB', '2000-11-16', '12', '2007-11-16 22:17:13', 1, 0, '0', 0),
(1130, '97', 'CasePhoneHome', '123-123-1234', '12', '2007-11-16 22:17:13', 1, 0, '0', 0),
(1131, '97', 'CaseAddress1', '13', '12', '2007-11-16 22:17:13', 1, 0, '0', 0),
(1132, '97', 'CaseCity', 'Apex', '12', '2007-11-16 22:17:13', 1, 0, '0', 0),
(1133, '97', 'CaseState', 'NC', '12', '2007-11-16 22:17:13', 1, 0, '0', 0),
(1134, '97', 'CaseZIP', '27502', '12', '2007-11-16 22:17:13', 1, 0, '0', 0),
(1135, '116', 'CaseID', '116', '12', '2007-11-16 22:32:52', 2, 0, '', 0),
(1136, '107', 'CaseID', '107', '12', '2007-11-16 22:09:18', 2, 0, '', 0),
(1137, '107', 'CaseFirstName', 'Jane', '12', '2012-03-05 21:21:46', 2, 0, '0', 0),
(1138, '107', 'CaseLastName', 'Doe', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1139, '107', 'CaseDOB', '1991-11-16', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1140, '107', 'CasePhoneHome', '', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1141, '107', 'CaseAddress1', '', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1142, '107', 'CaseCity', '', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1143, '107', 'CaseState', '', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1144, '107', 'CaseZIP', '', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1145, '116', 'CaseFirstName', 'Alfred', '12', '2012-03-05 21:21:46', 2, 0, '0', 0),
(1146, '116', 'CaseLastName', 'Smith', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1147, '116', 'CaseDOB', '1977-11-22', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1148, '116', 'CasePhoneHome', '123-123-1345', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1149, '116', 'CaseAddress1', '14', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1150, '116', 'CaseCity', 'Dunn', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1151, '116', 'CaseState', 'NC', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1152, '116', 'CaseZIP', '27777', '12', '0000-00-00 00:00:00', 1, 0, '0', 0),
(1261, '1261', 'CS_Proc_Desc', 'New Process', '12', '2008-03-13 22:40:15', 1, 1, '0', 0),
(1588, '28', 'RE_X_Description', 'Johnston Co Dept of Pub Util', '12', '2012-03-05 19:12:16', 1, 0, '1587', 0),
(1589, '28', 'RE_X_Date', '2008-06-25', '12', '2012-03-05 19:12:16', 1, 0, '1587', 0),
(1590, '28', 'RE_X_Amount', '18', '12', '2012-03-05 19:12:16', 1, 0, '1587', 0),
(1591, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1587', 0),
(1592, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1587', 0),
(1594, '2', 'RE_X_Description', 'Town of Benson', '12', '2012-03-05 19:12:16', 1, 0, '1593', 0),
(1595, '2', 'RE_X_Date', '2008-07-10', '12', '2012-03-05 19:12:16', 1, 0, '1593', 0),
(1596, '2', 'RE_X_Amount', '232.5', '12', '2012-03-05 19:12:16', 1, 0, '1593', 0),
(1597, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1593', 0),
(1598, '2', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1593', 0),
(1600, '2', 'RE_X_Description', 'Town of Benson', '12', '2012-03-05 19:12:16', 1, 0, '1599', 0),
(1601, '2', 'RE_X_Date', '2008-07-10', '12', '2012-03-05 19:12:16', 1, 0, '1599', 0),
(1602, '2', 'RE_X_Amount', '70.47', '12', '2012-03-05 19:12:16', 1, 0, '1599', 0),
(1603, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1599', 0),
(1604, '2', 'RE_X_Note', 'Shop', '12', '2012-03-05 19:12:16', 1, 0, '1599', 0),
(1606, '28', 'RE_X_Description', 'Progress Energy', '12', '2012-03-05 19:12:16', 1, 0, '1605', 0),
(1607, '28', 'RE_X_Date', '2008-04-29', '12', '2012-03-05 19:12:16', 1, 0, '1605', 0),
(1608, '28', 'RE_X_Amount', '25.01', '12', '2012-03-05 19:12:16', 1, 0, '1605', 0),
(1609, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1605', 0),
(1610, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1605', 0),
(1612, '2', 'RE_X_Description', 'Embarq', '12', '2012-03-05 19:12:16', 1, 0, '1611', 0),
(1613, '2', 'RE_X_Date', '2008-07-16', '12', '2012-03-05 19:12:16', 1, 0, '1611', 0),
(1614, '2', 'RE_X_Amount', '58.73', '12', '2012-03-05 19:12:16', 1, 0, '1611', 0),
(1615, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1611', 0),
(1616, '2', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1611', 0),
(1618, '2', 'RE_X_Description', 'Gary Godwin lawn', '12', '2012-03-05 19:12:16', 1, 0, '1617', 0),
(1619, '2', 'RE_X_Date', '2008-07-30', '12', '2012-03-05 19:12:16', 1, 0, '1617', 0),
(1620, '2', 'RE_X_Amount', '225', '12', '2012-03-05 19:12:16', 1, 0, '1617', 0),
(1621, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1617', 0),
(1622, '2', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1617', 0),
(1624, '2', 'RE_X_Description', 'Charter', '12', '2012-03-05 19:12:16', 1, 0, '1623', 0),
(1625, '2', 'RE_X_Date', '2008-08-01', '12', '2012-03-05 19:12:16', 1, 0, '1623', 0),
(1626, '2', 'RE_X_Amount', '34.15', '12', '2012-03-05 19:12:16', 1, 0, '1623', 0),
(1627, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1623', 0),
(1628, '2', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1623', 0),
(1630, '2', 'RE_X_Description', 'Charter', '12', '2012-03-05 19:12:16', 1, 0, '1629', 0),
(1631, '2', 'RE_X_Date', '2008-08-01', '12', '2012-03-05 19:12:16', 1, 0, '1629', 0),
(1632, '2', 'RE_X_Amount', '24.99', '12', '2012-03-05 19:12:16', 1, 0, '1629', 0),
(1633, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1629', 0),
(1634, '2', 'RE_X_Note', 'Shop', '12', '2012-03-05 19:12:16', 1, 0, '1629', 0),
(1636, '2', 'RE_X_Description', 'Embarq', '12', '2012-03-05 19:12:16', 1, 0, '1635', 0),
(1637, '2', 'RE_X_Date', '2008-08-16', '12', '2012-03-05 19:12:16', 1, 0, '1635', 0),
(1638, '2', 'RE_X_Amount', '58.76', '12', '2012-03-05 19:12:16', 1, 0, '1635', 0),
(1639, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1635', 0),
(1640, '2', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1635', 0),
(1642, '2', 'RE_X_Description', 'Town of Benson', '12', '2012-03-05 19:12:16', 1, 0, '1641', 0),
(1643, '2', 'RE_X_Date', '2008-08-10', '12', '2012-03-05 19:12:16', 1, 0, '1641', 0),
(1644, '2', 'RE_X_Amount', '197.49', '12', '2012-03-05 19:12:16', 1, 0, '1641', 0),
(1645, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1641', 0),
(1646, '2', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1641', 0),
(1648, '2', 'RE_X_Description', 'Town of Benson', '12', '2012-03-05 19:12:16', 1, 0, '1647', 0),
(1649, '2', 'RE_X_Date', '2008-08-10', '12', '2012-03-05 19:12:16', 1, 0, '1647', 0),
(1650, '2', 'RE_X_Amount', '43.74', '12', '2012-03-05 19:12:16', 1, 0, '1647', 0),
(1651, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1647', 0),
(1652, '2', 'RE_X_Note', 'Shop', '12', '2012-03-05 19:12:16', 1, 0, '1647', 0),
(1654, '28', 'RE_X_Description', 'Lowes', '12', '2012-03-05 19:12:16', 1, 0, '1653', 0),
(1655, '28', 'RE_X_Date', '2008-04-10', '12', '2012-03-05 19:12:16', 1, 0, '1653', 0),
(1656, '28', 'RE_X_Amount', '1136.57', '12', '2012-03-05 19:12:16', 1, 0, '1653', 0),
(1657, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1653', 0),
(1658, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1653', 0),
(1660, '28', 'RE_X_Description', 'Lewis Parker', '12', '2012-03-05 19:12:16', 1, 0, '1659', 0),
(1661, '28', 'RE_X_Date', '2008-04-15', '12', '2012-03-05 19:12:16', 1, 0, '1659', 0),
(1662, '28', 'RE_X_Amount', '125', '12', '2012-03-05 19:12:16', 1, 0, '1659', 0),
(1663, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1659', 0),
(1664, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1659', 0),
(1666, '28', 'RE_X_Description', 'Lewis Parker', '12', '2012-03-05 19:12:16', 1, 0, '1665', 0),
(1667, '28', 'RE_X_Date', '2008-05-16', '12', '2012-03-05 19:12:16', 1, 0, '1665', 0),
(1668, '28', 'RE_X_Amount', '85', '12', '2012-03-05 19:12:16', 1, 0, '1665', 0),
(1669, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1665', 0),
(1670, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1665', 0),
(1672, '28', 'RE_X_Description', 'Morgan Mowing Service', '12', '2012-03-05 19:12:16', 1, 0, '1671', 0),
(1673, '28', 'RE_X_Date', '2008-05-23', '12', '2012-03-05 19:12:16', 1, 0, '1671', 0),
(1674, '28', 'RE_X_Amount', '345', '12', '2012-03-05 19:12:16', 1, 0, '1671', 0),
(1675, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1671', 0),
(1676, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1671', 0),
(1678, '28', 'RE_X_Description', 'Progress Energy', '12', '2012-03-05 19:12:16', 1, 0, '1677', 0),
(1679, '28', 'RE_X_Date', '2008-05-29', '12', '2012-03-05 19:12:16', 1, 0, '1677', 0),
(1680, '28', 'RE_X_Amount', '22.68', '12', '2012-03-05 19:12:16', 1, 0, '1677', 0),
(1681, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1677', 0),
(1682, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1677', 0),
(1684, '28', 'RE_X_Description', 'Lewis Parker', '12', '2012-03-05 19:12:16', 1, 0, '1683', 0),
(1685, '28', 'RE_X_Date', '2008-03-15', '12', '2012-03-05 19:12:16', 1, 0, '1683', 0),
(1686, '28', 'RE_X_Amount', '225', '12', '2012-03-05 19:12:16', 1, 0, '1683', 0),
(1687, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1683', 0),
(1688, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1683', 0),
(1690, '28', 'RE_X_Description', 'SBS Mobile Home Repairs', '12', '2012-03-05 19:12:16', 1, 0, '1689', 0),
(1691, '28', 'RE_X_Date', '2008-04-20', '12', '2012-03-05 19:12:16', 1, 0, '1689', 0),
(1692, '28', 'RE_X_Amount', '6044.45', '12', '2012-03-05 19:12:16', 1, 0, '1689', 0),
(1693, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1689', 0),
(1694, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1689', 0),
(1697, '28', 'RE_X_Description', 'Spells Mechanical Service', '12', '2012-03-05 19:12:16', 1, 0, '1696', 0),
(1698, '28', 'RE_X_Date', '2008-04-01', '12', '2012-03-05 19:12:16', 1, 0, '1696', 0),
(1699, '28', 'RE_X_Amount', '3080.00', '12', '2012-03-05 19:12:16', 1, 0, '1696', 0),
(1700, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1696', 0),
(1701, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1696', 0),
(1703, '28', 'RE_X_Description', 'Lisa', '12', '2012-03-05 19:12:16', 1, 0, '1702', 0),
(1704, '28', 'RE_X_Date', '2008-07-01', '12', '2012-03-05 19:12:16', 1, 0, '1702', 0),
(1705, '28', 'RE_X_Amount', '-650.00', '12', '2012-03-05 19:12:16', 1, 0, '1702', 0),
(1706, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1702', 0),
(1707, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1702', 0),
(1709, '28', 'RE_X_Description', 'Lisa', '12', '2012-03-05 19:12:16', 1, 0, '1708', 0),
(1710, '28', 'RE_X_Date', '2008-08-01', '12', '2012-03-05 19:12:16', 1, 0, '1708', 0),
(1711, '28', 'RE_X_Amount', '-650.00', '12', '2012-03-05 19:12:16', 1, 0, '1708', 0),
(1712, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1708', 0),
(1713, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1708', 0),
(1715, '28', 'RE_X_Description', 'Lisa', '12', '2012-03-05 19:12:16', 1, 0, '1714', 0),
(1716, '28', 'RE_X_Date', '2008-09-01', '12', '2012-03-05 19:12:16', 1, 0, '1714', 0),
(1717, '28', 'RE_X_Amount', '-650.00', '12', '2012-03-05 19:12:16', 1, 0, '1714', 0),
(1718, '28', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1714', 0),
(1719, '28', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1714', 0),
(1721, '2', 'RE_X_Description', 'Charter', '12', '2012-03-05 19:12:16', 1, 0, '1720', 0),
(1722, '2', 'RE_X_Date', '2008-09-01', '12', '2012-03-05 19:12:16', 1, 0, '1720', 0),
(1723, '2', 'RE_X_Amount', '32.06', '12', '2012-03-05 19:12:16', 1, 0, '1720', 0),
(1724, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1720', 0),
(1725, '2', 'RE_X_Note', '', '12', '2012-03-05 19:12:16', 1, 0, '1720', 0),
(1727, '2', 'RE_X_Description', 'Charter', '12', '2012-03-05 19:12:16', 1, 0, '1726', 0),
(1728, '2', 'RE_X_Date', '2008-09-01', '12', '2012-03-05 19:12:16', 1, 0, '1726', 0),
(1729, '2', 'RE_X_Amount', '24.99', '12', '2012-03-05 19:12:16', 1, 0, '1726', 0),
(1730, '2', 'RE_X_Paid', '1', '12', '2012-03-05 19:12:16', 1, 0, '1726', 0),
(1731, '2', 'RE_X_Note', 'Shop', '12', '2012-03-05 19:12:16', 1, 0, '1726', 0),
(2137, '28', 'RE_X_Category', '', '12', '2012-03-05 19:12:16', 1, 1, '2137', 0),
(5300, '28', 'RE_X_VendorClient', '4158', '12', '2012-03-05 19:12:16', 1, 0, '1587', 0),
(5269, '2', 'RE_X_VendorClient', '4200', '12', '2012-03-05 19:12:16', 1, 0, '1617', 0),
(5241, '2', 'RE_X_VendorClient', '4088', '12', '2012-03-05 19:12:16', 1, 0, '1726', 0),
(5240, '2', 'RE_X_VendorClient', '4088', '12', '2012-03-05 19:12:16', 1, 0, '1720', 0),
(5239, '2', 'RE_X_VendorClient', '4088', '12', '2012-03-05 19:12:16', 1, 0, '1629', 0),
(5238, '2', 'RE_X_VendorClient', '4088', '12', '2012-03-05 19:12:16', 1, 0, '1623', 0),
(5040, '2', 'RE_X_VendorClient', '4074', '12', '2012-03-05 19:12:16', 1, 0, '1647', 0),
(5039, '2', 'RE_X_VendorClient', '4074', '12', '2012-03-05 19:12:16', 1, 0, '1641', 0),
(5038, '2', 'RE_X_VendorClient', '4074', '12', '2012-03-05 19:12:16', 1, 0, '1599', 0),
(5037, '2', 'RE_X_VendorClient', '4074', '12', '2012-03-05 19:12:16', 1, 0, '1593', 0),
(5540, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1587', 0),
(5541, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1593', 0),
(5542, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1599', 0),
(5543, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1605', 0),
(5544, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1611', 0),
(5545, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1617', 0),
(5546, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1623', 0),
(5547, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1629', 0),
(5548, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1635', 0),
(5549, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1641', 0),
(5550, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1647', 0),
(5551, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1653', 0),
(5552, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1659', 0),
(5553, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1665', 0),
(5554, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1671', 0),
(5555, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1677', 0),
(5556, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1683', 0),
(5557, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1689', 0),
(5558, '28', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1696', 0),
(5559, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1720', 0),
(5560, '2', 'RE_X_Type', 'P', '12', '2012-03-05 19:12:16', 1, 0, '1726', 0),
(5853, '28', 'RE_X_Type', 'R', '12', '2012-03-05 19:12:16', 1, 0, '1702', 0),
(5854, '28', 'RE_X_Type', 'R', '12', '2012-03-05 19:12:16', 1, 0, '1708', 0),
(5855, '28', 'RE_X_Type', 'R', '12', '2012-03-05 19:12:16', 1, 0, '1714', 0),
(6016, '2', 'RE_X_VendorClient', '4102', '12', '2012-03-05 19:12:16', 1, 0, '1611', 0),
(6017, '2', 'RE_X_VendorClient', '4102', '12', '2012-03-05 19:12:16', 1, 0, '1635', 0),
(6052, '28', 'RE_X_VendorClient', '4312', '12', '2012-03-05 19:12:16', 1, 0, '1653', 0),
(6501, '28', 'RE_X_VendorClient', '6169', '12', '2012-03-05 19:12:16', 1, 0, '1702', 0),
(6502, '28', 'RE_X_VendorClient', '6169', '12', '2012-03-05 19:12:16', 1, 0, '1708', 0),
(6503, '28', 'RE_X_VendorClient', '6169', '12', '2012-03-05 19:12:16', 1, 0, '1714', 0),
(6576, '28', 'RE_X_VendorClient', '6057', '12', '2012-03-05 19:12:16', 1, 0, '1605', 0),
(6577, '28', 'RE_X_VendorClient', '6057', '12', '2012-03-05 19:12:16', 1, 0, '1677', 0),
(6584, '28', 'RE_X_VendorClient', '4382', '12', '2012-03-05 19:12:16', 1, 0, '1659', 0),
(6585, '28', 'RE_X_VendorClient', '4382', '12', '2012-03-05 19:12:16', 1, 0, '1665', 0),
(6586, '28', 'RE_X_VendorClient', '4382', '12', '2012-03-05 19:12:16', 1, 0, '1683', 0),
(8391, '-1', 'PM_HEADER_BG', '../images/masthead12.jpg', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8392, '-1', 'PM_LITTLEdark_BG', '../images/masthead00.jpg', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8386, '-1', 'PM_DEBUG', '2', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8387, '-1', 'PM_OWNER', 'Lucas Companies', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8390, '-1', 'PM_BASE', '/var/www/html', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8388, '-1', 'PM_VERSION', '3.2', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8389, '-1', 'PMROOT', '/var/www/html/upload', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8393, '-1', 'PM_LITTLElight_BG', '../images/masthead8.jpg', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8395, '-1', 'PM_CONTENT_BG', '../images/lavalake.jpg', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8394, '-1', 'PM_MENU_BG', '../images/lakemary.jpg', '12', '2015-11-19 19:26:36', 1, 0, '0', 0),
(8480, '8480', 'CaseID', '8480', '12', '2012-04-24 02:27:46', 2, 0, '', 0),
(8516, '8516', 'CaseID', '8516', '12', '2012-04-24 12:47:50', 2, 0, '', 0),
(8533, '8533', 'CaseID', '8533', '12', '2012-04-24 12:48:45', 2, 0, '', 0),
(8550, '8550', 'CaseID', '8550', '12', '2012-04-24 12:50:47', 2, 0, '', 0),
(8567, '8567', 'CaseID', '8567', '12', '2012-04-24 12:52:59', 2, 0, '', 0),
(8584, '8584', 'CaseID', '8584', '12', '2012-04-24 12:53:54', 2, 0, '', 0),
(8601, '8601', 'CaseID', '8601', '12', '2012-04-24 12:54:40', 2, 0, '', 0),
(8618, '8618', 'CaseID', '8618', '12', '2012-04-24 12:55:19', 2, 0, '', 0),
(8764, '8764', 'CaseID', '8764', '12', '2012-05-12 11:32:14', 2, 0, '', 0),
(8814, '8814', 'CaseID', '8814', '12', '2012-05-24 14:36:15', 2, 0, '', 0),
(8846, '8846', 'CaseID', '8846', '', '2012-05-28 03:00:27', 1, 0, '', 0),
(9000, '9000', 'CaseID', '9000', '12', '2012-07-30 14:19:46', 2, 0, '', 0),
(9057, '9057', 'CaseID', '9057', '12', '2012-07-30 14:47:39', 2, 0, '', 0),
(9147, '9147', 'CaseID', '9147', '', '2012-09-05 11:41:01', 1, 0, '', 0),
(9148, '9148', 'CaseID', '9148', '', '2012-09-06 20:41:34', 1, 0, '', 0),
(9149, '2', 'RE_X_Category', '', '', '2012-09-11 11:47:32', 1, 0, '9149', 0),
(9240, '12-vac-2012-10-0212:01:50', 'CaseID', '12-vac-2012-10-0212:01:50', '12', '2012-10-02 16:01:50', 1, 0, '1', 0),
(9241, '12-vac-2012-10-0212:01:50', 'CaseType', 'M', '12', '2012-10-02 16:01:50', 1, 0, '1', 0),
(9242, '12-vac-2012-10-0212:04:56', 'CaseID', '12-vac-2012-10-0212:04:56', '12', '2012-10-02 16:04:56', 1, 0, '1', 0),
(9243, '12-vac-2012-10-0212:04:56', 'CaseType', 'M', '12', '2012-10-02 16:04:56', 1, 0, '1', 0),
(9273, '9273', 'CaseID', '9273', '12', '2012-10-04 16:05:01', 2, 0, '', 0),
(9299, '9299', 'CaseID', '9299', '12', '2012-10-04 16:07:51', 2, 0, '', 0),
(9357, '9357', 'CaseID', '9357', '12', '2012-10-04 16:18:42', 2, 0, '', 0),
(9399, '9399', 'CaseID', '9399', '12', '2012-10-04 16:31:06', 2, 0, '', 0),
(9438, '9438', 'CaseID', '9438', '12', '2012-10-04 16:35:21', 2, 0, '', 0),
(9480, '9480', 'CaseID', '9480', '12', '2012-10-04 16:40:29', 2, 0, '', 0),
(9505, '9505', 'CaseID', '9505', '12', '2012-10-04 16:42:15', 2, 0, '', 0),
(9531, '9531', 'CaseID', '9531', '12', '2012-10-04 16:45:31', 2, 0, '', 0),
(9556, '9556', 'CaseID', '9556', '12', '2012-10-04 16:47:34', 2, 0, '', 0),
(11145, '11145', 'CaseID', '11145', '12', '2013-04-10 15:00:24', 2, 0, '', 0),
(11143, '11143', 'CaseID', '11143', '', '2013-04-09 15:55:17', 1, 0, '', 0),
(9675, '9675', 'CaseID', '9675', '12', '2012-10-04 17:18:24', 2, 0, '', 0),
(9803, '9803', 'CaseID', '9803', '12', '2012-10-17 15:31:39', 2, 0, '', 0),
(9837, '9837', 'CaseID', '9837', '12', '2012-10-26 12:33:02', 2, 0, '', 0),
(9894, '9894', 'CaseID', '9894', '12', '2012-10-30 13:50:15', 2, 0, '', 0),
(9911, '9911', 'CaseID', '9911', '12', '2012-10-30 13:53:00', 2, 0, '', 0),
(9928, '9928', 'CaseID', '9928', '12', '2012-10-30 13:53:23', 2, 0, '', 0),
(9945, '9945', 'CaseID', '9945', '12', '2012-10-30 13:53:47', 2, 0, '', 0),
(9962, '9962', 'CaseID', '9962', '12', '2012-10-30 13:54:59', 2, 0, '', 0),
(10085, '10085', 'CaseID', '10085', '12', '2012-10-30 14:21:04', 2, 0, '', 0),
(10126, '10126', 'CaseID', '10126', '', '2012-11-03 03:40:57', 1, 0, '', 0),
(10127, '10127', 'CaseID', '10127', '', '2012-11-05 21:49:13', 1, 0, '', 0),
(10128, '10128', 'CaseID', '10128', '', '2012-11-05 21:49:21', 1, 0, '', 0),
(10129, '10129', 'CaseID', '10129', '', '2012-11-13 15:55:54', 1, 0, '', 0),
(10194, '10194', 'CaseID', '10194', '', '2012-11-28 04:40:34', 1, 0, '', 0),
(10227, '10227', 'CaseID', '10227', '', '2012-12-10 14:00:47', 1, 0, '', 0),
(10228, '10228', 'CaseID', '10228', '', '2012-12-17 22:35:21', 1, 0, '', 0),
(10229, '10229', 'CaseID', '10229', '', '2012-12-18 18:07:41', 1, 0, '', 0),
(10230, '10230', 'CaseID', '10230', '', '2012-12-31 03:32:12', 1, 0, '', 0),
(10231, '10231', 'CaseID', '10231', '', '2012-12-31 04:02:11', 1, 0, '', 0),
(10297, '10297', 'CaseID', '10297', '12', '2013-01-03 15:38:07', 2, 0, '', 0),
(10347, '10347', 'CaseID', '10347', '12', '2013-01-03 15:49:12', 2, 0, '', 0),
(10437, '10437', 'CaseID', '10437', '12', '2013-01-15 14:51:33', 2, 0, '', 0),
(10503, '10503', 'CaseID', '10503', '12', '2013-01-15 14:58:59', 2, 0, '', 0),
(10545, '10545', 'CaseID', '10545', '12', '2013-01-15 15:03:57', 2, 0, '', 0),
(10595, '10595', 'CaseID', '10595', '12', '2013-01-15 15:09:13', 2, 0, '', 0),
(10629, '10629', 'CaseID', '10629', '12', '2013-01-15 15:11:50', 2, 0, '', 0),
(10656, '10656', 'CaseID', '10656', '', '2013-01-18 09:09:25', 1, 0, '', 0),
(10657, '10657', 'CaseID', '10657', '', '2013-01-19 07:34:13', 1, 0, '', 0),
(10658, '10658', 'CaseID', '10658', '', '2013-01-20 05:22:03', 1, 0, '', 0),
(10659, '10659', 'CaseID', '10659', '', '2013-02-02 09:12:14', 1, 0, '', 0),
(10661, '10661', 'CaseID', '10661', '12', '2013-02-02 17:14:36', 2, 0, '', 0),
(10695, '10695', 'CaseID', '10695', '12', '2013-02-02 17:19:11', 2, 0, '', 0),
(10808, '10808', 'CaseID', '10808', '', '2013-02-04 05:13:41', 1, 0, '', 0),
(10809, '10809', 'CaseID', '10809', '', '2013-02-17 09:09:31', 1, 0, '', 0),
(10819, '10819', 'CaseID', '10819', '12', '2013-02-18 19:50:03', 2, 0, '', 0),
(10852, '10852', 'CaseID', '10852', '', '2013-02-19 05:06:57', 1, 0, '', 0),
(10870, '10870', 'CaseID', '10870', '12', '2013-03-02 12:30:56', 2, 0, '', 0),
(10911, '10911', 'CaseID', '10911', '', '2013-03-04 09:10:17', 1, 0, '', 0),
(10912, '10912', 'CaseID', '10912', '', '2013-03-06 05:11:39', 1, 0, '', 0),
(10929, '10929', 'CaseID', '10929', '', '2013-03-19 09:11:39', 1, 0, '', 0),
(10939, '10939', 'CaseID', '10939', '12', '2013-03-21 01:14:35', 2, 0, '', 0),
(10956, '10956', 'CaseID', '10956', '12', '2013-03-21 01:15:30', 2, 0, '', 0),
(10989, '10989', 'CaseID', '10989', '', '2013-03-21 05:06:48', 1, 0, '', 0),
(11022, '11022', 'CaseID', '11022', '12', '2013-04-04 13:28:04', 2, 0, '', 0),
(11054, '11054', 'CaseID', '11054', '', '2013-04-05 05:07:24', 1, 0, '', 0),
(11055, '11055', 'CaseID', '11055', '', '2013-04-05 15:47:54', 1, 0, '', 0),
(11170, '11170', 'CaseID', '11170', '12', '2013-04-10 15:03:10', 2, 0, '', 0),
(11203, '11203', 'CaseID', '11203', '', '2013-04-18 08:45:43', 1, 0, '', 0),
(11204, '11204', 'CaseID', '11204', '', '2013-04-19 13:46:55', 1, 0, '', 0),
(11205, '11205', 'CaseID', '11205', '', '2013-04-20 05:08:02', 1, 0, '', 0),
(11238, '11238', 'CaseID', '11238', '', '2013-05-05 05:02:38', 1, 0, '', 0),
(11288, '11288', 'CaseID', '11288', '12', '2013-05-14 10:57:41', 2, 0, '', 0),
(11313, '11313', 'CaseID', '11313', '', '2013-05-20 04:43:51', 1, 0, '', 0),
(11314, 'PlaceHolder', 'CaseID', 'PlaceHolder', '', '2013-05-23 03:50:04', 1, 0, '', 0),
(11315, '11315', 'CaseID', '11315', '', '2013-05-23 03:50:04', 1, 0, '', 0),
(11316, '11316', 'CaseID', '11316', '', '2013-05-24 08:28:15', 1, 0, '', 0),
(11357, '11357', 'CaseID', '11357', '', '2013-06-04 05:03:06', 1, 0, '', 0),
(11367, '11367', 'CaseID', '11367', '12', '2013-06-04 11:20:37', 2, 0, '', 0),
(11433, '11433', 'CaseID', '11433', '12', '2013-06-04 11:34:04', 2, 0, '', 0),
(11623, '11623', 'CaseID', '11623', '', '2013-06-19 05:01:14', 1, 0, '', 0),
(11624, '11624', 'CaseID', '11624', '', '2013-06-22 23:39:56', 1, 0, '', 0),
(11650, '11650', 'CaseID', '11650', '12', '2013-06-27 20:39:36', 2, 0, '', 0),
(11708, '11708', 'CaseID', '11708', '', '2013-06-30 20:14:28', 1, 0, '', 0),
(11709, '11709', 'CaseID', '11709', '12', '2013-07-01 19:39:23', 2, 0, '', 0),
(11727, '11727', 'CaseID', '11727', '12', '2013-07-01 19:40:30', 2, 0, '', 0),
(11890, '11890', 'CaseID', '11890', '12', '2013-07-19 14:00:23', 2, 0, '', 0),
(11974, '11974', 'CaseID', '11974', '12', '2013-08-01 14:25:23', 2, 0, '', 0),
(12041, '12041', 'CaseID', '12041', '12', '2013-08-07 12:26:11', 2, 0, '', 0),
(12460, '12460', 'CaseID', '12460', '12', '2013-10-24 13:19:05', 2, 0, '', 0),
(12503, '12503', 'CaseID', '12503', '12', '2013-10-24 13:26:58', 2, 0, '', 0),
(12530, '12530', 'CaseID', '12530', '12', '2013-10-24 13:32:14', 2, 0, '', 0),
(12565, '12565', 'CaseID', '12565', '12', '2013-10-24 13:39:49', 2, 0, '', 0),
(12681, '12681', 'CaseID', '12681', '12', '2013-11-16 16:12:01', 2, 0, '', 0),
(12715, '12715', 'CaseID', '12715', '12', '2013-11-16 16:16:22', 2, 0, '', 0),
(12750, '12750', 'CaseID', '12750', '12', '2013-11-16 16:21:26', 2, 0, '', 0),
(12808, '12808', 'CaseID', '12808', '', '2013-11-22 08:41:33', 1, 0, '', 0),
(12809, '12809', 'CaseID', '12809', '', '2013-11-22 20:19:57', 1, 0, '', 0),
(12834, '12834', 'CaseID', '12834', '', '2013-12-09 01:44:54', 1, 0, '', 0),
(12835, '12835', 'CaseID', '12835', '', '2013-12-30 11:59:49', 1, 0, '', 0),
(13014, '13014', 'CaseID', '13014', '12', '2014-01-07 14:47:42', 2, 0, '', 0),
(13049, '13049', 'CaseID', '13049', '12', '2014-01-07 14:55:04', 2, 0, '', 0),
(13372, '13372', 'CaseID', '13372', '12', '2014-01-16 20:55:31', 2, 0, '', 0),
(13487, '13487', 'CaseID', '13487', '12', '2014-01-16 21:11:04', 2, 0, '', 0),
(13627, '13627', 'CaseID', '13627', '12', '2014-01-17 23:22:01', 2, 0, '', 0),
(13766, '13766', 'CaseID', '13766', '', '2014-02-09 05:31:54', 1, 0, '', 0),
(13767, '13767', 'CaseID', '13767', '', '2014-02-14 20:55:18', 1, 0, '', 0),
(13768, '13768', 'CaseID', '13768', '', '2014-02-24 11:14:47', 1, 0, '', 0),
(13769, '13769', 'CaseID', '13769', '', '2014-02-26 10:16:04', 1, 0, '', 0),
(14041, '14041', 'CaseID', '14041', '12', '2014-03-05 15:49:09', 2, 0, '', 0),
(14166, '14166', 'CaseID', '14166', '', '2014-03-21 09:50:57', 1, 0, '', 0),
(14219, '14219', 'CaseID', '14219', '', '2014-03-28 09:22:47', 1, 0, '', 0),
(14303, '14303', 'CaseID', '14303', '', '2014-04-25 21:24:24', 1, 0, '', 0),
(14304, '14304', 'CaseID', '14304', '', '2014-04-27 17:15:16', 1, 0, '', 0),
(14305, '14305', 'CaseID', '14305', '', '2014-04-30 06:12:21', 1, 0, '', 0),
(14499, '14499', 'CaseID', '14499', '', '2014-06-11 08:17:51', 1, 0, '', 0),
(14500, '14500', 'CaseID', '14500', '', '2014-06-11 22:01:32', 1, 0, '', 0),
(14501, '14501', 'CaseID', '14501', '12', '2014-06-14 17:30:48', 2, 0, '', 0),
(14564, '14564', 'CaseID', '14564', '', '2014-06-16 12:39:33', 1, 0, '', 0),
(14565, '14565', 'CaseID', '14565', '', '2014-06-17 10:44:41', 1, 0, '', 0),
(14702, '14702', 'CaseID', '14702', '12', '2014-07-03 20:36:33', 2, 0, '', 0),
(14737, '14737', 'CaseID', '14737', '12', '2014-07-03 20:39:37', 2, 0, '', 0),
(14764, '14764', 'CaseID', '14764', '12', '2014-07-04 13:04:41', 2, 0, '', 0),
(14811, '14811', 'CaseID', '14811', '', '2014-07-17 06:54:43', 1, 0, '', 0),
(14812, '14812', 'CaseID', '14812', '', '2014-08-09 10:57:37', 1, 0, '', 0),
(14813, '14813', 'CaseID', '14813', '', '2014-08-11 22:45:13', 1, 0, '', 0),
(14814, '14814', 'CaseID', '14814', '', '2014-08-21 20:47:52', 1, 0, '', 0),
(14815, '14815', 'CaseID', '14815', '', '2014-08-22 04:17:29', 1, 0, '', 0),
(14978, '14978', 'CaseID', '14978', '', '2014-09-12 09:37:59', 1, 0, '', 0),
(14979, '14979', 'CaseID', '14979', '', '2014-09-13 10:20:33', 1, 0, '', 0),
(14980, '14980', 'CaseID', '14980', '', '2014-09-19 19:59:15', 1, 0, '', 0),
(15106, '15106', 'CaseID', '15106', '', '2014-09-29 16:34:47', 1, 0, '', 0),
(15107, '15107', 'CaseID', '15107', '', '2014-10-02 17:46:12', 1, 0, '', 0),
(15108, '15108', 'CaseID', '15108', '', '2014-10-05 12:21:11', 1, 0, '', 0),
(15197, '15197', 'CaseID', '15197', '', '2014-10-25 18:39:41', 1, 0, '', 0),
(15198, '15198', 'CaseID', '15198', '', '2014-11-03 05:36:36', 1, 0, '', 0),
(15586, '15586', 'CaseID', '15586', '', '2014-12-07 03:30:09', 1, 0, '', 0),
(15587, '15587', 'CaseID', '15587', '', '2014-12-17 06:59:47', 1, 0, '', 0),
(15588, '15588', 'CaseID', '15588', '', '2014-12-24 08:01:58', 1, 0, '', 0),
(15589, '15589', 'CaseID', '15589', '', '2015-01-15 05:38:36', 1, 0, '', 0),
(15590, '15590', 'CaseID', '15590', '', '2015-01-18 17:13:30', 1, 0, '', 0),
(16662, '16662', 'CaseID', '16662', '', '2015-02-22 15:12:09', 1, 0, '', 0),
(16663, '16663', 'CaseID', '16663', '', '2015-02-22 16:45:09', 1, 0, '', 0),
(16664, '16664', 'CaseID', '16664', '', '2015-03-07 20:35:47', 1, 0, '', 0),
(16665, '16665', 'CaseID', '16665', '', '2015-03-11 12:35:09', 1, 0, '', 0),
(16666, '16666', 'CaseID', '16666', '', '2015-03-15 09:35:37', 1, 0, '', 0),
(17118, '17118', 'CaseID', '17118', '12', '2015-09-08 17:21:55', 2, 0, '', 0),
(17415, '17415', 'CaseID', '17415', '12', '2015-09-08 18:01:19', 2, 0, '', 0),
(17442, '17442', 'CaseID', '17442', '', '2015-09-09 16:30:55', 1, 0, '', 0),
(17443, '17443', 'CaseID', '17443', '', '2015-09-10 11:42:39', 1, 0, '', 0),
(17444, '17444', 'CaseID', '17444', '', '2015-09-26 00:04:12', 1, 0, '', 0),
(17446, '17446', 'CaseID', '17446', '12', '2015-09-28 10:39:30', 2, 0, '', 0),
(17464, '17464', 'CaseID', '17464', '12', '2015-09-28 10:41:04', 2, 0, '', 0),
(17502, '17502', 'CaseID', '17502', '12', '2015-09-28 10:47:27', 2, 0, '', 0),
(17520, '17520', 'CaseID', '17520', '12', '2015-09-28 10:50:29', 2, 0, '', 0),
(17538, '17538', 'CaseID', '17538', '12', '2015-09-28 13:15:23', 2, 0, '', 0),
(17612, '17612', 'CaseID', '17612', '12', '2015-10-21 13:23:08', 2, 0, '', 0),
(17613, '17613', 'CaseID', '17613', '12', '2015-10-21 14:03:22', 2, 0, '', 0),
(17614, '17614', 'CaseID', '17614', '12', '2015-10-21 14:03:35', 2, 0, '', 0),
(17615, '17615', 'CaseID', '17615', '12', '2015-10-23 13:48:24', 2, 0, '', 32),
(17812, '17791', 'TEFAPmonthly', '', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17617, '17615', 'CaseFirstName', 'Test', '71', '2015-12-01 18:10:33', 1, 0, '0', 32),
(17618, '17615', 'CaseLastName', 'Smith', '71', '2015-12-01 18:10:33', 1, 0, '0', 32),
(17666, '-1', 'CaseLastName', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17665, '-1', 'CaseFirstName', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17664, '17633', 'TEFAPclientSig', '', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17663, '17633', 'TEFAPauth2', '', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17811, '17791', 'TEFAPyearly', '56999', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17625, '17615', 'CaseCity', 'Benson', '71', '2015-12-01 18:10:33', 1, 0, '0', 32),
(17662, '17633', 'TEFAPauth1', '', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17829, '17791', 'TEFAPbaseFNS', '2', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17661, '17633', 'TEFAPverified', '', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17660, '17633', 'TEFAPHHsize', '7', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17633, '17633', 'CaseID', '17633', '12', '2015-10-23 14:00:28', 2, 0, '', 32),
(17810, '17791', 'TEFAPfns', '1', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17635, '17633', 'CaseFirstName', 'Test2', '71', '2015-12-01 14:06:16', 1, 0, '0', 32),
(17636, '17633', 'CaseLastName', 'Jones', '71', '2015-12-01 14:06:16', 1, 0, '0', 32),
(17659, '17633', 'CaseCounty', 'Johnston', '71', '2015-12-01 14:06:16', 1, 0, '0', 32),
(17658, '17615', 'TEFAPclientSig', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17657, '17615', 'TEFAPauth2', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17656, '17615', 'TEFAPauth1', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17809, '17791', 'TEFAPclientSigV', '../upload/BAMA/signatures/17791_17808_TEFAPclientSigV.png', '12', '2015-11-16 21:38:09', 1, 0, '17808', 32),
(17643, '17633', 'CaseCity', 'Benson', '71', '2015-12-01 14:06:16', 1, 0, '0', 32),
(17655, '17615', 'TEFAPverified', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17828, '17791', 'TEFAPbaseFNS', '', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17847, '17791', 'TEFAPfns', '2', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17654, '17615', 'TEFAPHHsize', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17653, '17615', 'CaseCounty', 'Johnston', '71', '2015-12-01 18:10:33', 1, 0, '0', 32),
(17808, '17791', 'TEFAPdate', '2015-11-09', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17667, '-1', 'CaseCity', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17668, '-1', 'CaseCounty', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17669, '-1', 'TEFAPHHsize', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17670, '-1', 'TEFAPverified', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17671, '-1', 'TEFAPauth1', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17672, '-1', 'TEFAPauth2', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17673, '-1', 'TEFAPclientSig', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17674, '17615', 'TEFAPdate', '2015-11-11', '12', '2015-11-11 16:01:06', 1, 0, '17674', 32),
(17675, '17615', 'TEFAPclientSigV', '../upload/BAMA/signatures/17615_17674_TEFAPclientSigV.png', '12', '2015-11-16 21:58:30', 1, 0, '17674', 32),
(17676, '17615', 'TEFAPfns', '2', '12', '2015-11-11 16:01:06', 1, 0, '17674', 32),
(17677, '17615', 'TEFAPyearly', '10000', '12', '2015-11-11 16:01:06', 1, 0, '17674', 32),
(17678, '17615', 'TEFAPmonthly', '', '12', '2015-11-12 17:54:07', 1, 0, '17674', 32),
(17679, '17615', 'TEFAPweekly', '', '12', '2015-11-12 17:54:07', 1, 0, '17674', 32),
(17680, '17615', 'TEFAPagentSig', '../upload/BAMA/signatures/17615_17674_TEFAPagentSig.png', '12', '2015-11-16 21:58:30', 1, 0, '17674', 32),
(17797, '17791', 'TEFAPverified', '-1', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17760, '17633', 'TEFAPyearly', '123000', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17761, '17633', 'TEFAPmonthly', '', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17762, '17633', 'TEFAPweekly', '', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17763, '17633', 'TEFAPagentSig', '../upload/BAMA/signatures/17633_17757_TEFAPagentSig.png', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17798, '17791', 'TEFAPauth1', '', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17690, '17633', 'TEFAPdate', '2015-11-08', '12', '2015-11-12 13:47:07', 1, 0, '17690', 32),
(17691, '17633', 'TEFAPclientSigV', '../upload/BAMA/signatures/17633_17690_TEFAPclientSigV.png', '12', '2015-11-16 21:43:06', 1, 0, '17690', 32),
(17692, '17633', 'TEFAPfns', '1', '12', '2015-11-12 13:47:07', 1, 0, '17690', 32),
(17693, '17633', 'TEFAPyearly', '', '12', '2015-11-12 17:54:07', 1, 0, '17690', 32),
(17694, '17633', 'TEFAPmonthly', '2000', '12', '2015-11-12 17:54:07', 1, 0, '17690', 32),
(17695, '17633', 'TEFAPweekly', '', '12', '2015-11-12 17:54:07', 1, 0, '17690', 32),
(17696, '17633', 'TEFAPagentSig', '../upload/BAMA/signatures/17633_17690_TEFAPagentSig.png', '12', '2015-11-16 21:43:06', 1, 0, '17690', 32),
(17794, '17791', 'CaseCity', 'Benson', '12', '2015-11-20 10:37:33', 1, 0, '0', 32),
(17795, '17791', 'CaseCounty', 'Johnston', '12', '2015-11-20 10:37:33', 1, 0, '0', 32),
(17796, '17791', 'TEFAPHHsize', '5', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17757, '17633', 'TEFAPdate', '2015-11-12', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17758, '17633', 'TEFAPclientSigV', '../upload/BAMA/signatures/17633_17757_TEFAPclientSigV.png', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17759, '17633', 'TEFAPfns', '-2', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17793, '17791', 'CaseLastName', 'Johnson', '12', '2015-11-20 10:37:33', 1, 0, '0', 32),
(17792, '17791', 'CaseFirstName', 'test3', '12', '2015-11-20 10:37:33', 1, 0, '0', 32),
(17791, '17791', 'CaseID', '17791', '12', '2015-11-12 17:29:12', 2, 0, '', 32),
(17790, '17790', 'CaseID', '17790', '12', '2015-11-12 17:28:39', 2, 0, '', 32),
(17789, '17789', 'CaseID', '17789', '12', '2015-11-12 17:27:02', 2, 0, '', 32),
(17775, '17765', 'TEFAPdate', '2015-11-09', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17776, '17765', 'TEFAPclientSigV', '', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17777, '17765', 'TEFAPfns', '-1', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17778, '17765', 'TEFAPyearly', '', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17779, '17765', 'TEFAPmonthly', '4302', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17780, '17765', 'TEFAPweekly', '', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17781, '17765', 'TEFAPagentSig', '', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17782, '17765', 'TEFAPdate', '2015-11-06', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17783, '17765', 'TEFAPclientSigV', '', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17784, '17765', 'TEFAPfns', '-2', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17785, '17765', 'TEFAPyearly', '', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17786, '17765', 'TEFAPmonthly', '', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17787, '17765', 'TEFAPweekly', '434', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17788, '17765', 'TEFAPagentSig', '', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17799, '17791', 'TEFAPauth2', '', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17800, '17791', 'TEFAPclientSig', '', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17801, '17791', 'TEFAPdate', '2015-11-03', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17802, '17791', 'TEFAPclientSigV', '../upload/BAMA/signatures/17791_17801_TEFAPclientSigV.png', '12', '2015-11-16 21:36:33', 1, 0, '17801', 32),
(17803, '17791', 'TEFAPfns', '2', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17804, '17791', 'TEFAPyearly', '', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17805, '17791', 'TEFAPmonthly', '', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17806, '17791', 'TEFAPweekly', '5553', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17807, '17791', 'TEFAPagentSig', '../upload/BAMA/signatures/17791_17801_TEFAPagentSig.png', '12', '2015-11-16 21:36:33', 1, 0, '17801', 32),
(17813, '17791', 'TEFAPweekly', '', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17814, '17791', 'TEFAPagentSig', '../upload/BAMA/signatures/17791_17808_TEFAPagentSig.png', '12', '2015-11-16 21:38:09', 1, 0, '17808', 32),
(17815, '17791', '', '', '12', '2015-11-16 21:34:50', 1, 0, '0', 32),
(17845, '17791', 'TEFAPdate', '2015-11-16', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17846, '17791', 'TEFAPclientSigV', '../upload/BAMA/signatures/17791_17845_TEFAPclientSigV.png', '12', '2015-11-17 18:16:43', 0, 0, '17845', 32),
(17832, '17791', 'CaseAddress1', '301 Elm St', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17816, '17615', 'TEFAPdate', '2015-11-16', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17817, '17615', 'TEFAPclientSigV', '../upload/BAMA/signatures/17615_17816_TEFAPclientSigV.png', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17818, '17615', 'TEFAPfns', '2', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17819, '17615', 'TEFAPyearly', '', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17820, '17615', 'TEFAPmonthly', '435', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17821, '17615', 'TEFAPweekly', '', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17822, '17615', 'TEFAPagentSig', '../upload/BAMA/signatures/17615_17816_TEFAPagentSig.png', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17830, '17615', 'TEFAPbaseFNS', '1', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17848, '17791', 'TEFAPyearly', '', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17831, '17633', 'TEFAPbaseFNS', '2', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17823, '17791', 'TEFAPauth1', '../upload/BAMA/signatures/17791_1_TEFAPauth1.png', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17852, '17791', 'TEFAPdate', '', '12', '2015-11-17 18:05:02', 1, 0, '17852', 32),
(17824, '17791', 'TEFAPauth2', '../upload/BAMA/signatures/17791_1_TEFAPauth2.png', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17825, '17791', 'TEFAPclientSig', '../upload/BAMA/signatures/17791_1_TEFAPclientSig.png', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17833, '17791', 'TEFAPclientSigDate', '', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17826, '17791', 'TEFAPHHsize', '5', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17827, '17791', 'TEFAPverified', '', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17834, '17791', 'TEFAPclientSigDate', '', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17835, '-1', 'CaseAddress1', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17836, '-1', 'TEFAPbaseFNS', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17837, '-1', 'TEFAPclientSigDate', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17838, '17791', 'TEFAPbaseFNS', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17839, '17791', 'TEFAPHHsize', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17840, '17791', 'TEFAPverified', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17841, '17791', 'TEFAPauth1', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17842, '17791', 'TEFAPauth2', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17843, '17791', 'TEFAPclientSig', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17844, '17791', 'TEFAPclientSigDate', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17849, '17791', 'TEFAPmonthly', '', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17850, '17791', 'TEFAPweekly', '435', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17851, '17791', 'TEFAPagentSig', '../upload/BAMA/signatures/17791_17845_TEFAPagentSig.png', '12', '2015-11-17 18:16:43', 0, 0, '17845', 32),
(17853, '17633', 'TEFAPauth1', '../upload/BAMA/signatures/17633_1_TEFAPauth1.png', '71', '2015-12-01 14:07:54', 1, 0, '1', 32),
(17858, '17633', 'TEFAPauth2', '../upload/BAMA/signatures/17633_1_TEFAPauth2.png', '71', '2015-12-01 14:07:54', 1, 0, '1', 32),
(17854, '17633', 'CaseAddress1', '501 Oak St', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17855, '17633', 'TEFAPbaseFNS', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17856, '17633', 'TEFAPHHsize', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17857, '17633', 'TEFAPverified', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17859, '17633', 'TEFAPclientSig', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17860, '17633', 'TEFAPclientSigDate', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17861, '17633', 'TEFAPdate', '', '12', '2015-11-17 18:18:08', 1, 0, '17861', 32),
(17862, '17633', 'TEFAPdate', '', '12', '2015-11-17 18:18:33', 1, 0, '17862', 32),
(17863, '17615', 'TEFAPauth1', '../upload/BAMA/signatures/17615_1_TEFAPauth1.png', '71', '2015-12-01 18:12:00', 1, 0, '1', 32),
(17864, '17615', 'TEFAPauth2', '../upload/BAMA/signatures/17615_1_TEFAPauth2.png', '71', '2015-12-01 18:12:00', 1, 0, '1', 32),
(17869, '17615', 'TEFAPclientSig', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17865, '17615', 'CaseAddress1', '8434 Hill Blvd', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17866, '17615', 'TEFAPbaseFNS', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17867, '17615', 'TEFAPHHsize', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17868, '17615', 'TEFAPverified', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17870, '17615', 'TEFAPclientSigDate', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17872, '17615', 'TEFAPclientSigV', '../upload/BAMA/signatures/17615_17871_TEFAPclientSigV.png', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17871, '17615', 'TEFAPdate', '2015-11-12', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17873, '17615', 'TEFAPfns', '1', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17874, '17615', 'TEFAPyearly', '', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17875, '17615', 'TEFAPmonthly', '', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17876, '17615', 'TEFAPweekly', '', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17877, '17615', 'TEFAPagentSig', '../upload/BAMA/signatures/17615_17871_TEFAPagentSig.png', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17886, '17615', 'TEFAPdate', '2015-11-25', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17887, '17615', 'TEFAPclientSigV', '../upload/BAMA/signatures/17615_17886_TEFAPclientSigV.png', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17880, '17633', 'TEFAPclientSigV', '../upload/BAMA/signatures/17633_17879_TEFAPclientSigV.png', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17878, '17633', 'TEFAPdate', '', '12', '2015-11-20 21:02:15', 1, 0, '17878', 32),
(17879, '17633', 'TEFAPdate', '2015-12-01', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17881, '17633', 'TEFAPfns', '2', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17882, '17633', 'TEFAPyearly', '', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17883, '17633', 'TEFAPmonthly', '1234', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17884, '17633', 'TEFAPweekly', '', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17885, '17633', 'TEFAPagentSig', '../upload/BAMA/signatures/17633_17879_TEFAPagentSig.png', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17888, '17615', 'TEFAPfns', '1', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17889, '17615', 'TEFAPyearly', '', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17890, '17615', 'TEFAPmonthly', '', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17891, '17615', 'TEFAPweekly', '', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17892, '17615', 'TEFAPagentSig', '../upload/BAMA/signatures/17615_17886_TEFAPagentSig.png', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32);

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

--
-- Stand-in structure for view `ResponsesDecoded`
--
CREATE TABLE IF NOT EXISTS `ResponsesDecoded` (
`rUnique` int(11)
,`CaseID` varchar(32)
,`qID` varchar(32)
,`rValue` longtext
,`uID` varchar(32)
,`DateCreated` timestamp
,`rOK` tinyint(4)
,`isDeleted` tinyint(4)
,`rInstance` varchar(10)
,`ProjectId` int(11)
,`tText` longtext
);
-- --------------------------------------------------------

--
-- Table structure for table `ResponsesX`
--

CREATE TABLE IF NOT EXISTS `ResponsesX` (
  `rUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique row identifier',
  `CaseID` varchar(32) NOT NULL COMMENT 'Case ID',
  `qID` varchar(32) NOT NULL COMMENT 'Question ID',
  `rValue` varchar(1024) NOT NULL COMMENT 'Response value',
  `uID` varchar(32) NOT NULL COMMENT 'User ID who entered value',
  `DateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date time when created',
  `rOK` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Response value is OK',
  `isDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Marks the row as deleted',
  `rInstance` varchar(10) NOT NULL COMMENT 'Associates the response with a specific instance',
  `ProjectId` int(11) NOT NULL COMMENT 'Project identifier',
  UNIQUE KEY `rUnique` (`rUnique`),
  KEY `ixCaseId` (`CaseID`),
  KEY `ixqId` (`qID`),
  KEY `ixRunique` (`CaseID`,`qID`,`rInstance`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each data point (storage)' AUTO_INCREMENT=17893 ;

--
-- Dumping data for table `ResponsesX`
--

INSERT INTO `ResponsesX` (`rUnique`, `CaseID`, `qID`, `rValue`, `uID`, `DateCreated`, `rOK`, `isDeleted`, `rInstance`, `ProjectId`) VALUES
(17615, '17615', 'CaseID', '17615', '12', '2015-10-23 13:48:24', 2, 0, '', 32),
(17812, '17791', 'TEFAPmonthly', '', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17617, '17615', 'CaseFirstName', 'Test', '71', '2015-12-01 18:10:33', 1, 0, '0', 32),
(17618, '17615', 'CaseLastName', 'Smith', '71', '2015-12-01 18:10:33', 1, 0, '0', 32),
(17666, '-1', 'CaseLastName', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17665, '-1', 'CaseFirstName', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17664, '17633', 'TEFAPclientSig', '', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17663, '17633', 'TEFAPauth2', '', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17811, '17791', 'TEFAPyearly', '56999', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17625, '17615', 'CaseCity', 'Benson', '71', '2015-12-01 18:10:33', 1, 0, '0', 32),
(17662, '17633', 'TEFAPauth1', '', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17829, '17791', 'TEFAPbaseFNS', '2', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17661, '17633', 'TEFAPverified', '', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17660, '17633', 'TEFAPHHsize', '7', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17633, '17633', 'CaseID', '17633', '12', '2015-10-23 14:00:28', 2, 0, '', 32),
(17810, '17791', 'TEFAPfns', '1', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17635, '17633', 'CaseFirstName', 'Test2', '71', '2015-12-01 14:06:16', 1, 0, '0', 32),
(17636, '17633', 'CaseLastName', 'Jones', '71', '2015-12-01 14:06:16', 1, 0, '0', 32),
(17659, '17633', 'CaseCounty', 'Johnston', '71', '2015-12-01 14:06:16', 1, 0, '0', 32),
(17658, '17615', 'TEFAPclientSig', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17657, '17615', 'TEFAPauth2', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17656, '17615', 'TEFAPauth1', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17809, '17791', 'TEFAPclientSigV', '../upload/BAMA/signatures/17791_17808_TEFAPclientSigV.png', '12', '2015-11-16 21:38:09', 1, 0, '17808', 32),
(17643, '17633', 'CaseCity', 'Benson', '71', '2015-12-01 14:06:16', 1, 0, '0', 32),
(17655, '17615', 'TEFAPverified', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17828, '17791', 'TEFAPbaseFNS', '', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17847, '17791', 'TEFAPfns', '2', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17654, '17615', 'TEFAPHHsize', '', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17653, '17615', 'CaseCounty', 'Johnston', '71', '2015-12-01 18:10:33', 1, 0, '0', 32),
(17808, '17791', 'TEFAPdate', '2015-11-09', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17667, '-1', 'CaseCity', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17668, '-1', 'CaseCounty', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17669, '-1', 'TEFAPHHsize', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17670, '-1', 'TEFAPverified', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17671, '-1', 'TEFAPauth1', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17672, '-1', 'TEFAPauth2', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17673, '-1', 'TEFAPclientSig', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17674, '17615', 'TEFAPdate', '2015-11-11', '12', '2015-11-11 16:01:06', 1, 0, '17674', 32),
(17675, '17615', 'TEFAPclientSigV', '../upload/BAMA/signatures/17615_17674_TEFAPclientSigV.png', '12', '2015-11-16 21:58:30', 1, 0, '17674', 32),
(17676, '17615', 'TEFAPfns', '2', '12', '2015-11-11 16:01:06', 1, 0, '17674', 32),
(17677, '17615', 'TEFAPyearly', '10000', '12', '2015-11-11 16:01:06', 1, 0, '17674', 32),
(17678, '17615', 'TEFAPmonthly', '', '12', '2015-11-12 17:54:07', 1, 0, '17674', 32),
(17679, '17615', 'TEFAPweekly', '', '12', '2015-11-12 17:54:07', 1, 0, '17674', 32),
(17680, '17615', 'TEFAPagentSig', '../upload/BAMA/signatures/17615_17674_TEFAPagentSig.png', '12', '2015-11-16 21:58:30', 1, 0, '17674', 32),
(17797, '17791', 'TEFAPverified', '-1', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17760, '17633', 'TEFAPyearly', '123000', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17761, '17633', 'TEFAPmonthly', '', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17762, '17633', 'TEFAPweekly', '', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17763, '17633', 'TEFAPagentSig', '../upload/BAMA/signatures/17633_17757_TEFAPagentSig.png', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17798, '17791', 'TEFAPauth1', '', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17690, '17633', 'TEFAPdate', '2015-11-08', '12', '2015-11-12 13:47:07', 1, 0, '17690', 32),
(17691, '17633', 'TEFAPclientSigV', '../upload/BAMA/signatures/17633_17690_TEFAPclientSigV.png', '12', '2015-11-16 21:43:06', 1, 0, '17690', 32),
(17692, '17633', 'TEFAPfns', '1', '12', '2015-11-12 13:47:07', 1, 0, '17690', 32),
(17693, '17633', 'TEFAPyearly', '', '12', '2015-11-12 17:54:07', 1, 0, '17690', 32),
(17694, '17633', 'TEFAPmonthly', '2000', '12', '2015-11-12 17:54:07', 1, 0, '17690', 32),
(17695, '17633', 'TEFAPweekly', '', '12', '2015-11-12 17:54:07', 1, 0, '17690', 32),
(17696, '17633', 'TEFAPagentSig', '../upload/BAMA/signatures/17633_17690_TEFAPagentSig.png', '12', '2015-11-16 21:43:06', 1, 0, '17690', 32),
(17794, '17791', 'CaseCity', 'Benson', '12', '2015-11-20 10:37:33', 1, 0, '0', 32),
(17795, '17791', 'CaseCounty', 'Johnston', '12', '2015-11-20 10:37:33', 1, 0, '0', 32),
(17796, '17791', 'TEFAPHHsize', '5', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17757, '17633', 'TEFAPdate', '2015-11-12', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17758, '17633', 'TEFAPclientSigV', '../upload/BAMA/signatures/17633_17757_TEFAPclientSigV.png', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17759, '17633', 'TEFAPfns', '-2', '12', '2015-11-16 21:44:36', 1, 0, '17757', 32),
(17793, '17791', 'CaseLastName', 'Johnson', '12', '2015-11-20 10:37:33', 1, 0, '0', 32),
(17792, '17791', 'CaseFirstName', 'test3', '12', '2015-11-20 10:37:33', 1, 0, '0', 32),
(17791, '17791', 'CaseID', '17791', '12', '2015-11-12 17:29:12', 2, 0, '', 32),
(17790, '17790', 'CaseID', '17790', '12', '2015-11-12 17:28:39', 2, 0, '', 32),
(17789, '17789', 'CaseID', '17789', '12', '2015-11-12 17:27:02', 2, 0, '', 32),
(17775, '17765', 'TEFAPdate', '2015-11-09', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17776, '17765', 'TEFAPclientSigV', '', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17777, '17765', 'TEFAPfns', '-1', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17778, '17765', 'TEFAPyearly', '', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17779, '17765', 'TEFAPmonthly', '4302', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17780, '17765', 'TEFAPweekly', '', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17781, '17765', 'TEFAPagentSig', '', '12', '2015-11-12 14:53:36', 1, 0, '17775', 32),
(17782, '17765', 'TEFAPdate', '2015-11-06', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17783, '17765', 'TEFAPclientSigV', '', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17784, '17765', 'TEFAPfns', '-2', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17785, '17765', 'TEFAPyearly', '', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17786, '17765', 'TEFAPmonthly', '', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17787, '17765', 'TEFAPweekly', '434', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17788, '17765', 'TEFAPagentSig', '', '12', '2015-11-12 17:20:16', 1, 0, '17782', 32),
(17799, '17791', 'TEFAPauth2', '', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17800, '17791', 'TEFAPclientSig', '', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17801, '17791', 'TEFAPdate', '2015-11-03', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17802, '17791', 'TEFAPclientSigV', '../upload/BAMA/signatures/17791_17801_TEFAPclientSigV.png', '12', '2015-11-16 21:36:33', 1, 0, '17801', 32),
(17803, '17791', 'TEFAPfns', '2', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17804, '17791', 'TEFAPyearly', '', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17805, '17791', 'TEFAPmonthly', '', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17806, '17791', 'TEFAPweekly', '5553', '12', '2015-11-16 20:29:52', 1, 0, '17801', 32),
(17807, '17791', 'TEFAPagentSig', '../upload/BAMA/signatures/17791_17801_TEFAPagentSig.png', '12', '2015-11-16 21:36:33', 1, 0, '17801', 32),
(17813, '17791', 'TEFAPweekly', '', '12', '2015-11-16 20:30:17', 1, 0, '17808', 32),
(17814, '17791', 'TEFAPagentSig', '../upload/BAMA/signatures/17791_17808_TEFAPagentSig.png', '12', '2015-11-16 21:38:09', 1, 0, '17808', 32),
(17815, '17791', '', '', '12', '2015-11-16 21:34:50', 1, 0, '0', 32),
(17845, '17791', 'TEFAPdate', '2015-11-16', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17846, '17791', 'TEFAPclientSigV', '../upload/BAMA/signatures/17791_17845_TEFAPclientSigV.png', '12', '2015-11-17 18:16:43', 0, 0, '17845', 32),
(17832, '17791', 'CaseAddress1', '301 Elm St', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17816, '17615', 'TEFAPdate', '2015-11-16', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17817, '17615', 'TEFAPclientSigV', '../upload/BAMA/signatures/17615_17816_TEFAPclientSigV.png', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17818, '17615', 'TEFAPfns', '2', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17819, '17615', 'TEFAPyearly', '', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17820, '17615', 'TEFAPmonthly', '435', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17821, '17615', 'TEFAPweekly', '', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17822, '17615', 'TEFAPagentSig', '../upload/BAMA/signatures/17615_17816_TEFAPagentSig.png', '12', '2015-11-16 22:02:03', 1, 0, '17816', 32),
(17830, '17615', 'TEFAPbaseFNS', '1', '12', '2015-11-17 01:37:05', 1, 0, '0', 32),
(17848, '17791', 'TEFAPyearly', '', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17831, '17633', 'TEFAPbaseFNS', '2', '12', '2015-11-17 01:37:20', 1, 0, '0', 32),
(17823, '17791', 'TEFAPauth1', '../upload/BAMA/signatures/17791_1_TEFAPauth1.png', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17852, '17791', 'TEFAPdate', '', '12', '2015-11-17 18:05:02', 1, 0, '17852', 32),
(17824, '17791', 'TEFAPauth2', '../upload/BAMA/signatures/17791_1_TEFAPauth2.png', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17825, '17791', 'TEFAPclientSig', '../upload/BAMA/signatures/17791_1_TEFAPclientSig.png', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17833, '17791', 'TEFAPclientSigDate', '', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17826, '17791', 'TEFAPHHsize', '5', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17827, '17791', 'TEFAPverified', '', '12', '2015-11-20 10:37:33', 1, 0, '1', 32),
(17834, '17791', 'TEFAPclientSigDate', '', '12', '2015-11-17 15:27:18', 1, 0, '0', 32),
(17835, '-1', 'CaseAddress1', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17836, '-1', 'TEFAPbaseFNS', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17837, '-1', 'TEFAPclientSigDate', '', '12', '2015-11-17 15:50:02', 1, 0, '0', 32),
(17838, '17791', 'TEFAPbaseFNS', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17839, '17791', 'TEFAPHHsize', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17840, '17791', 'TEFAPverified', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17841, '17791', 'TEFAPauth1', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17842, '17791', 'TEFAPauth2', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17843, '17791', 'TEFAPclientSig', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17844, '17791', 'TEFAPclientSigDate', '', '12', '2015-11-17 16:57:15', 1, 0, '17801', 32),
(17849, '17791', 'TEFAPmonthly', '', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17850, '17791', 'TEFAPweekly', '435', '12', '2015-11-17 18:16:43', 1, 0, '17845', 32),
(17851, '17791', 'TEFAPagentSig', '../upload/BAMA/signatures/17791_17845_TEFAPagentSig.png', '12', '2015-11-17 18:16:43', 0, 0, '17845', 32),
(17853, '17633', 'TEFAPauth1', '../upload/BAMA/signatures/17633_1_TEFAPauth1.png', '71', '2015-12-01 14:07:54', 1, 0, '1', 32),
(17858, '17633', 'TEFAPauth2', '../upload/BAMA/signatures/17633_1_TEFAPauth2.png', '71', '2015-12-01 14:07:54', 1, 0, '1', 32),
(17854, '17633', 'CaseAddress1', '501 Oak St', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17855, '17633', 'TEFAPbaseFNS', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17856, '17633', 'TEFAPHHsize', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17857, '17633', 'TEFAPverified', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17859, '17633', 'TEFAPclientSig', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17860, '17633', 'TEFAPclientSigDate', '', '71', '2015-12-01 14:06:16', 1, 0, '1', 32),
(17861, '17633', 'TEFAPdate', '', '12', '2015-11-17 18:18:08', 1, 0, '17861', 32),
(17862, '17633', 'TEFAPdate', '', '12', '2015-11-17 18:18:33', 1, 0, '17862', 32),
(17863, '17615', 'TEFAPauth1', '../upload/BAMA/signatures/17615_1_TEFAPauth1.png', '71', '2015-12-01 18:12:00', 1, 0, '1', 32),
(17864, '17615', 'TEFAPauth2', '../upload/BAMA/signatures/17615_1_TEFAPauth2.png', '71', '2015-12-01 18:12:00', 1, 0, '1', 32),
(17869, '17615', 'TEFAPclientSig', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17865, '17615', 'CaseAddress1', '8434 Hill Blvd', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17866, '17615', 'TEFAPbaseFNS', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17867, '17615', 'TEFAPHHsize', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17868, '17615', 'TEFAPverified', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17870, '17615', 'TEFAPclientSigDate', '', '71', '2015-12-01 18:10:33', 1, 0, '1', 32),
(17872, '17615', 'TEFAPclientSigV', '../upload/BAMA/signatures/17615_17871_TEFAPclientSigV.png', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17871, '17615', 'TEFAPdate', '2015-11-12', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17873, '17615', 'TEFAPfns', '1', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17874, '17615', 'TEFAPyearly', '', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17875, '17615', 'TEFAPmonthly', '', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17876, '17615', 'TEFAPweekly', '', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17877, '17615', 'TEFAPagentSig', '../upload/BAMA/signatures/17615_17871_TEFAPagentSig.png', '12', '2015-11-17 18:27:55', 1, 0, '17871', 32),
(17886, '17615', 'TEFAPdate', '2015-11-25', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17887, '17615', 'TEFAPclientSigV', '../upload/BAMA/signatures/17615_17886_TEFAPclientSigV.png', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17880, '17633', 'TEFAPclientSigV', '../upload/BAMA/signatures/17633_17879_TEFAPclientSigV.png', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17878, '17633', 'TEFAPdate', '', '12', '2015-11-20 21:02:15', 1, 0, '17878', 32),
(17879, '17633', 'TEFAPdate', '2015-12-01', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17881, '17633', 'TEFAPfns', '2', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17882, '17633', 'TEFAPyearly', '', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17883, '17633', 'TEFAPmonthly', '1234', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17884, '17633', 'TEFAPweekly', '', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17885, '17633', 'TEFAPagentSig', '../upload/BAMA/signatures/17633_17879_TEFAPagentSig.png', '71', '2015-12-01 14:07:51', 1, 0, '17879', 32),
(17888, '17615', 'TEFAPfns', '1', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17889, '17615', 'TEFAPyearly', '', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17890, '17615', 'TEFAPmonthly', '', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17891, '17615', 'TEFAPweekly', '', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32),
(17892, '17615', 'TEFAPagentSig', '../upload/BAMA/signatures/17615_17886_TEFAPagentSig.png', '71', '2015-12-01 18:11:55', 1, 0, '17886', 32);

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

--
-- Table structure for table `ResponseType`
--

CREATE TABLE IF NOT EXISTS `ResponseType` (
  `rtUnique` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Row identifier',
  `tID` varchar(32) NOT NULL COMMENT 'Response Type ID',
  `tText` varchar(100) NOT NULL COMMENT 'Response type text',
  `tValue` varchar(8) NOT NULL DEFAULT '0' COMMENT 'Response type value',
  `tOrder` float NOT NULL COMMENT 'Response type order',
  `rtIsDeleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Row is deleted',
  `rAudio` varchar(100) DEFAULT NULL COMMENT 'Audio file',
  UNIQUE KEY `tUnique` (`rtUnique`),
  KEY `ixtId` (`tID`),
  KEY `ixtText` (`tText`),
  KEY `ixtValue` (`tValue`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Contains a row for each Response Type Option' AUTO_INCREMENT=638 ;

--
-- Dumping data for table `ResponseType`
--

INSERT INTO `ResponseType` (`rtUnique`, `tID`, `tText`, `tValue`, `tOrder`, `rtIsDeleted`, `rAudio`) VALUES
(1, 'YesNo', 'Yes', '1', 1, 0, ''),
(2, 'YesNo', 'No', '2', 2, 0, NULL),
(3, 'YesNo', 'Don`t Know', '-1', 3, 0, NULL),
(4, 'YesNo', 'Refused', '-2', 4, 0, NULL),
(5, 'Gender', 'Male', '1', 1, 0, NULL),
(6, 'Gender', 'Female', '2', 2, 0, NULL),
(7, 'NULL', 'NULL', '0', 0, 0, ''),
(8, 'Button', '', '0', 0, 0, ''),
(233, 'TEXT', 'TEXT', '0', 0, 0, ''),
(234, 'TEXTAREA', 'TEXTAREA', '0', 0, 0, NULL),
(235, 'RE_X_Cat', 'Power', '1', 10.5, 0, ''),
(236, 'RE_X_Cat', 'Maintenance', '2', 8, 0, ''),
(237, 'RE_X_Cat', 'Repairs', '3', 13, 0, ''),
(238, 'RE_X_Cat', 'Taxes', '4', 14, 0, ''),
(239, 'RE_X_Cat', 'Water', '5', 15, 0, ''),
(240, 'RE_X_Cat', 'Purchase', '6', 11, 0, ''),
(241, 'RE_X_Cat', 'Legal', '7', 7, 0, NULL),
(242, 'RE_X_Cat', 'Marketing', '8', 9, 0, ''),
(243, 'RE_X_Cat', 'Insurance', '9', 6, 0, ''),
(244, 'RE_X_Cat', 'Inspections', '10', 5, 0, ''),
(245, 'DATE', 'DATE', '0', 0, 0, ''),
(246, 'RE_X_Cat', 'TV', '11', 14.5, 0, ''),
(247, 'RE_X_Cat', 'Broadband', '12', 1, 0, ''),
(248, 'RE_X_Cat', 'Phone', '13', 10, 0, ''),
(249, 'RE_X_Cat', 'Rent', '14', 12, 0, ''),
(250, 'RE_X_Cat', 'Gas', '15', 4, 0, ''),
(258, 'CS_Reports', 'Delinquent Cases', '4', 4, 0, NULL),
(259, 'CS_Reports', 'Pending Cases', '3', 3, 0, NULL),
(260, 'CS_Reports', 'Ever At', '2', 2, 0, NULL),
(261, 'CS_Reports', 'Current Status ', '1', 1, 0, NULL),
(263, 'Ethnicity', 'Asian or Pacific Islander', '4', 4, 0, NULL),
(264, 'Ethnicity', 'American Indian/Alaskan Native', '3', 3, 0, NULL),
(265, 'Ethnicity', 'Black', '2', 2, 0, NULL),
(266, 'Ethnicity', 'White', '1', 1, 0, NULL),
(267, 'CSSearch', 'CaseEthnicity', '13', 2.5, 0, NULL),
(268, 'CSSearch', 'CaseGender', '12', 2.3, 0, NULL),
(269, 'CSSearch', 'CaseFirstName', '11', 1.5, 0, NULL),
(270, 'CSSearch', 'CaseZIP', '10', 10, 0, NULL),
(271, 'CSSearch', 'CaseState', '9', 9, 0, NULL),
(272, 'CSSearch', 'CaseCity', '8', 8, 0, NULL),
(273, 'CSSearch', 'CasePhoneCell', '7', 7, 0, NULL),
(274, 'CSSearch', 'CasePhoneWork', '6', 6, 0, NULL),
(275, 'CSSearch', 'CasePhoneHome', '5', 5, 0, NULL),
(276, 'CSSearch', 'CaseDOB', '4', 4, 0, NULL),
(277, 'CSSearch', 'CaseSSN', '3', 3, 0, NULL),
(278, 'CSSearch', 'CaseLastName', '2', 2, 0, NULL),
(279, 'CSSearch', 'CaseID', '0', 1, 0, NULL),
(281, 'CSPower', 'Final Event', '3', 4, 0, NULL),
(282, 'CSPower', 'Duplicable', '2', 3, 0, NULL),
(283, 'CSPower', 'Revertable', '1', 2, 0, NULL),
(284, 'CSPower', 'None', '0', 1, 0, NULL),
(285, 'State', 'Alabama', 'AL', 1, 0, ''),
(286, '', 'New Value', '0', 0, 0, NULL),
(287, 'RE_X_Cat', 'Furniture', '16', 3, 0, ''),
(288, 'State', 'Alaska', 'AK', 2, 0, ''),
(289, 'State', 'Arizona', 'AZ', 3, 0, ''),
(290, 'State', 'Arkansas', 'AR', 4, 0, ''),
(291, 'State', 'California', 'CA', 5, 0, ''),
(292, 'State', 'Colorado', 'CO', 6, 0, ''),
(293, 'State', 'Connecticut', 'CT', 7, 0, ''),
(294, 'State', 'Delaware', 'DE', 8, 0, ''),
(295, 'State', 'Florida', 'FL', 9, 0, ''),
(296, 'State', 'Georgia', 'GA', 10, 0, ''),
(297, 'State', 'Hawaii', 'HI', 11, 0, ''),
(298, 'State', 'Idaho', 'ID', 12, 0, ''),
(299, 'State', 'Illinois', 'IL', 13, 0, ''),
(300, 'State', 'Indiana', 'IN', 14, 0, ''),
(301, 'State', 'Iowa', 'IA', 15, 0, ''),
(302, 'State', 'Kansas', 'KS', 16, 0, ''),
(303, 'State', 'Kentucky', 'KY', 17, 0, ''),
(304, 'State', 'Louisiana', 'LA', 18, 0, ''),
(305, 'State', 'Maine', 'ME', 19, 0, ''),
(306, 'State', 'Maryland', 'MD', 20, 0, ''),
(307, 'State', 'Massachusetts', 'MA', 21, 0, ''),
(308, 'State', 'Michigan', 'MI', 22, 0, ''),
(309, 'State', 'Mississippi', 'MS', 24, 0, ''),
(310, 'State', 'Missouri', 'MO', 25, 0, ''),
(311, 'State', 'Montana', 'MT', 26, 0, ''),
(312, 'State', 'Nebraska', 'NE', 27, 0, ''),
(313, 'State', 'Nevada', 'NV', 28, 0, ''),
(314, 'State', 'New Hampshire', 'NH', 29, 0, ''),
(315, 'State', 'New Jersey', 'NJ', 30, 0, ''),
(316, 'State', 'New Mexico', 'NM', 31, 0, ''),
(317, 'State', 'New York', 'NY', 32, 0, ''),
(318, 'State', 'North Carolina', 'NC', 33, 0, ''),
(319, 'State', 'North Dakota', 'ND', 34, 0, ''),
(320, 'State', 'Ohio', 'OH', 35, 0, ''),
(321, 'State', 'Oklahoma', 'OK', 36, 0, ''),
(322, 'State', 'Oregon', 'OR', 37, 0, ''),
(323, 'State', 'Pennsylvania', 'PA', 38, 0, ''),
(324, 'State', 'South Carolina', 'SC', 40, 0, ''),
(325, 'State', 'South Dakota', 'SD', 41, 0, ''),
(326, 'State', 'Tennessee', 'TN', 42, 0, ''),
(327, 'State', 'Texas', 'TX', 43, 0, ''),
(328, 'State', 'Utah', 'UT', 44, 0, ''),
(329, 'State', 'Vermont', 'VT', 45, 0, ''),
(330, 'State', 'Virginia', 'VA', 46, 0, ''),
(331, 'State', 'Washington', 'WA', 47, 0, ''),
(332, 'State', 'Wisconsin', 'WI', 49, 0, ''),
(333, 'State', 'Wyoming', 'WY', 50, 0, ''),
(334, 'State', 'American Samoa', 'AS', 51, 0, ''),
(335, 'State', 'District of Columbia', 'DC', 52, 0, ''),
(336, 'State', 'Federated States of Micronesia', 'FM', 53, 0, ''),
(337, 'State', 'Guam', 'DU', 54, 0, ''),
(338, 'State', 'Marshall Islands', 'MH', 55, 0, ''),
(339, 'State', 'Northern Mariana Islands', 'MP', 56, 0, ''),
(340, 'State', 'Palau', 'PW', 57, 0, ''),
(341, 'State', 'Puerto Rico', 'PR', 58, 0, ''),
(342, 'State', 'Virgin Islands', 'VI', 59, 0, ''),
(343, 'Vendor/Client', 'Vendor', 'V', 1, 0, ''),
(344, 'Vendor/Client', 'Client', 'C', 2, 0, ''),
(345, 'Rec/Pay', 'Receivable', 'R', 1, 0, ''),
(346, 'Rec/Pay', 'Payable', 'P', 2, 0, ''),
(347, 'Query', 'Q_PreLogic', '0', 0, 0, ''),
(348, 'CSType', 'Property', 'P', 1, 0, ''),
(349, 'CSType', 'Vendor', 'V', 2, 0, ''),
(350, 'CSType', 'Client', 'C', 3, 0, ''),
(351, 'Season', 'Spring', '1', 1, 0, ''),
(352, 'Season', 'Summer', '2', 2, 0, ''),
(353, 'Season', 'Fall', '3', 3, 0, ''),
(354, 'Season', 'Winter', '4', 4, 0, ''),
(355, 'Season', 'Any', '0', 0, 0, ''),
(356, 'Country', 'Afghanistan', 'af', 1, 0, NULL),
(357, 'Country', 'Åland Islands', 'ax', 2, 0, NULL),
(358, 'Country', 'Albania', 'al', 3, 0, NULL),
(359, 'Country', 'Algeria', 'dz', 4, 0, NULL),
(360, 'Country', 'American Samoa', 'as', 5, 0, NULL),
(361, 'Country', 'Andorra', 'ad', 6, 0, NULL),
(362, 'Country', 'Angola', 'ao', 7, 0, NULL),
(363, 'Country', 'Anguilla', 'ai', 8, 0, NULL),
(364, 'Country', 'Antarctica', 'aq', 9, 0, NULL),
(365, 'Country', 'Antigua and Barbuda', 'ag', 10, 0, NULL),
(366, 'Country', 'Argentina', 'ar', 11, 0, NULL),
(367, 'Country', 'Armenia', 'am', 12, 0, NULL),
(368, 'Country', 'Aruba', 'aw', 13, 0, NULL),
(369, 'Country', 'Australia', 'au', 14, 0, NULL),
(370, 'Country', 'Austria', 'at', 15, 0, NULL),
(371, 'Country', 'Azerbaijan', 'az', 16, 0, NULL),
(372, 'Country', 'Bahamas', 'bs', 17, 0, NULL),
(373, 'Country', 'Bahrain', 'bh', 18, 0, NULL),
(374, 'Country', 'Bangladesh', 'bd', 19, 0, NULL),
(375, 'Country', 'Barbados', 'bb', 20, 0, NULL),
(376, 'Country', 'Belarus', 'by', 21, 0, NULL),
(377, 'Country', 'Belgium', 'be', 22, 0, NULL),
(378, 'Country', 'Belize', 'bz', 23, 0, NULL),
(379, 'Country', 'Benin', 'bj', 24, 0, NULL),
(380, 'Country', 'Bermuda', 'bm', 25, 0, NULL),
(381, 'Country', 'Bhutan', 'bt', 26, 0, NULL),
(382, 'Country', 'Bolivia', 'bo', 27, 0, NULL),
(383, 'Country', 'Bosnia and Herzegovina', 'ba', 28, 0, NULL),
(384, 'Country', 'Botswana', 'bw', 29, 0, NULL),
(385, 'Country', 'Bouvet Island', 'bv', 30, 0, NULL),
(386, 'Country', 'Brazil', 'br', 31, 0, NULL),
(387, 'Country', 'British Indian Ocean Territory', 'io', 32, 0, NULL),
(388, 'Country', 'Brunei Darussalam', 'bn', 33, 0, NULL),
(389, 'Country', 'Bulgaria', 'bg', 34, 0, NULL),
(390, 'Country', 'Burkina Faso', 'bf', 35, 0, NULL),
(391, 'Country', 'Burundi', 'bi', 36, 0, NULL),
(392, 'Country', 'Cambodia', 'kh', 37, 0, NULL),
(393, 'Country', 'Cameroon', 'cm', 38, 0, NULL),
(394, 'Country', 'Canada', 'ca', 39, 0, NULL),
(395, 'Country', 'Cape Verde', 'cv', 40, 0, NULL),
(396, 'Country', 'Cayman Islands', 'ky', 41, 0, NULL),
(397, 'Country', 'Central African Republic', 'cf', 42, 0, NULL),
(398, 'Country', 'Chad', 'td', 43, 0, NULL),
(399, 'Country', 'Chile', 'cl', 44, 0, NULL),
(400, 'Country', 'China', 'cn', 45, 0, NULL),
(401, 'Country', 'Christmas Island', 'cx', 46, 0, NULL),
(402, 'Country', 'Cocos (Keeling) Islands', 'cc', 47, 0, NULL),
(403, 'Country', 'Colombia', 'co', 48, 0, NULL),
(404, 'Country', 'Comoros', 'km', 49, 0, NULL),
(405, 'Country', 'Congo', 'cg', 50, 0, NULL),
(406, 'Country', 'Congo, The Democratic Republic of The', 'cd', 51, 0, NULL),
(407, 'Country', 'Cook Islands', 'ck', 52, 0, NULL),
(408, 'Country', 'Costa Rica', 'cr', 53, 0, NULL),
(409, 'Country', 'Cote D`ivoire', 'ci', 54, 0, NULL),
(410, 'Country', 'Croatia', 'hr', 55, 0, NULL),
(411, 'Country', 'Cuba', 'cu', 56, 0, NULL),
(412, 'Country', 'Cyprus', 'cy', 57, 0, NULL),
(413, 'Country', 'Czech Republic', 'cz', 58, 0, NULL),
(414, 'Country', 'Denmark', 'dk', 59, 0, NULL),
(415, 'Country', 'Djibouti', 'dj', 60, 0, NULL),
(416, 'Country', 'Dominica', 'dm', 61, 0, NULL),
(417, 'Country', 'Dominican Republic', 'do', 62, 0, NULL),
(418, 'Country', 'Ecuador', 'ec', 63, 0, NULL),
(419, 'Country', 'Egypt', 'eg', 64, 0, NULL),
(420, 'Country', 'El Salvador', 'sv', 65, 0, NULL),
(421, 'Country', 'Equatorial Guinea', 'gq', 66, 0, NULL),
(422, 'Country', 'Eritrea', 'er', 67, 0, NULL),
(423, 'Country', 'Estonia', 'ee', 68, 0, NULL),
(424, 'Country', 'Ethiopia', 'et', 69, 0, NULL),
(425, 'Country', 'Falkland Islands (Malvinas)', 'fk', 70, 0, NULL),
(426, 'Country', 'Faroe Islands', 'fo', 71, 0, NULL),
(427, 'Country', 'Fiji', 'fj', 72, 0, NULL),
(428, 'Country', 'Finland', 'fi', 73, 0, NULL),
(429, 'Country', 'France', 'fr', 74, 0, NULL),
(430, 'Country', 'French Guiana', 'gf', 75, 0, NULL),
(431, 'Country', 'French Polynesia', 'pf', 76, 0, NULL),
(432, 'Country', 'French Southern Territories', 'tf', 77, 0, NULL),
(433, 'Country', 'Gabon', 'ga', 78, 0, NULL),
(434, 'Country', 'Gambia', 'gm', 79, 0, NULL),
(435, 'Country', 'Georgia', 'ge', 80, 0, NULL),
(436, 'Country', 'Germany', 'de', 81, 0, NULL),
(437, 'Country', 'Ghana', 'gh', 82, 0, NULL),
(438, 'Country', 'Gibraltar', 'gi', 83, 0, NULL),
(439, 'Country', 'Greece', 'gr', 84, 0, NULL),
(440, 'Country', 'Greenland', 'gl', 85, 0, NULL),
(441, 'Country', 'Grenada', 'gd', 86, 0, NULL),
(442, 'Country', 'Guadeloupe', 'gp', 87, 0, NULL),
(443, 'Country', 'Guam', 'gu', 88, 0, NULL),
(444, 'Country', 'Guatemala', 'gt', 89, 0, NULL),
(445, 'Country', 'Guernsey', 'gg', 90, 0, NULL),
(446, 'Country', 'Guinea', 'gn', 91, 0, NULL),
(447, 'Country', 'Guinea-bissau', 'gw', 92, 0, NULL),
(448, 'Country', 'Guyana', 'gy', 93, 0, NULL),
(449, 'Country', 'Haiti', 'ht', 94, 0, NULL),
(450, 'Country', 'Heard Island and Mcdonald Islands', 'hm', 95, 0, NULL),
(451, 'Country', 'Holy See (Vatican City State)', 'va', 96, 0, NULL),
(452, 'Country', 'Honduras', 'hn', 97, 0, NULL),
(453, 'Country', 'Hong Kong', 'hk', 98, 0, NULL),
(454, 'Country', 'Hungary', 'hu', 99, 0, NULL),
(455, 'Country', 'Iceland', 'is', 100, 0, NULL),
(456, 'Country', 'India', 'in', 101, 0, NULL),
(457, 'Country', 'Indonesia', 'id', 102, 0, NULL),
(458, 'Country', 'Iran, Islamic Republic of', 'ir', 103, 0, NULL),
(459, 'Country', 'Iraq', 'iq', 104, 0, NULL),
(460, 'Country', 'Ireland', 'ie', 105, 0, NULL),
(461, 'Country', 'Isle of Man', 'im', 106, 0, NULL),
(462, 'Country', 'Israel', 'il', 107, 0, NULL),
(463, 'Country', 'Italy', 'it', 108, 0, NULL),
(464, 'Country', 'Jamaica', 'jm', 109, 0, NULL),
(465, 'Country', 'Japan', 'jp', 110, 0, NULL),
(466, 'Country', 'Jersey', 'je', 111, 0, NULL),
(467, 'Country', 'Jordan', 'jo', 112, 0, NULL),
(468, 'Country', 'Kazakhstan', 'kz', 113, 0, NULL),
(469, 'Country', 'Kenya', 'ke', 114, 0, NULL),
(470, 'Country', 'Kiribati', 'ki', 115, 0, NULL),
(471, 'Country', 'Korea, Democratic People`s Republic', 'kp', 116, 0, NULL),
(472, 'Country', 'Korea, Republic of', 'kr', 117, 0, NULL),
(473, 'Country', 'Kuwait', 'kw', 118, 0, NULL),
(474, 'Country', 'Kyrgyzstan', 'kg', 119, 0, NULL),
(475, 'Country', 'Lao People`s Democratic Republic', 'la', 120, 0, NULL),
(476, 'Country', 'Latvia', 'lv', 121, 0, NULL),
(477, 'Country', 'Lebanon', 'lb', 122, 0, NULL),
(478, 'Country', 'Lesotho', 'ls', 123, 0, NULL),
(479, 'Country', 'Liberia', 'lr', 124, 0, NULL),
(480, 'Country', 'Libyan Arab Jamahiriya', 'ly', 125, 0, NULL),
(481, 'Country', 'Liechtenstein', 'li', 126, 0, NULL),
(482, 'Country', 'Lithuania', 'lt', 127, 0, NULL),
(483, 'Country', 'Luxembourg', 'lu', 128, 0, NULL),
(484, 'Country', 'Macao', 'mo', 129, 0, NULL),
(485, 'Country', 'Macedonia', 'mk', 130, 0, NULL),
(486, 'Country', 'Madagascar', 'mg', 131, 0, NULL),
(487, 'Country', 'Malawi', 'mw', 132, 0, NULL),
(488, 'Country', 'Malaysia', 'my', 133, 0, NULL),
(489, 'Country', 'Maldives', 'mv', 134, 0, NULL),
(490, 'Country', 'Mali', 'ml', 135, 0, NULL),
(491, 'Country', 'Malta', 'mt', 136, 0, NULL),
(492, 'Country', 'Marshall Islands', 'mh', 137, 0, NULL),
(493, 'Country', 'Martinique', 'mq', 138, 0, NULL),
(494, 'Country', 'Mauritania', 'mr', 139, 0, NULL),
(495, 'Country', 'Mauritius', 'mu', 140, 0, NULL),
(496, 'Country', 'Mayotte', 'yt', 141, 0, NULL),
(497, 'Country', 'Mexico', 'mx', 142, 0, NULL),
(498, 'Country', 'Micronesia, Federated States of', 'fm', 143, 0, NULL),
(499, 'Country', 'Moldova, Republic of', 'md', 144, 0, NULL),
(500, 'Country', 'Monaco', 'mc', 145, 0, NULL),
(501, 'Country', 'Mongolia', 'mn', 146, 0, NULL),
(502, 'Country', 'Montenegro', 'me', 147, 0, NULL),
(503, 'Country', 'Montserrat', 'ms', 148, 0, NULL),
(504, 'Country', 'Morocco', 'ma', 149, 0, NULL),
(505, 'Country', 'Mozambique', 'mz', 150, 0, NULL),
(506, 'Country', 'Myanmar', 'mm', 151, 0, NULL),
(507, 'Country', 'Namibia', 'na', 152, 0, NULL),
(508, 'Country', 'Nauru', 'nr', 153, 0, NULL),
(509, 'Country', 'Nepal', 'np', 154, 0, NULL),
(510, 'Country', 'Netherlands', 'nl', 155, 0, NULL),
(511, 'Country', 'Netherlands Antilles', 'an', 156, 0, NULL),
(512, 'Country', 'New Caledonia', 'nc', 157, 0, NULL),
(513, 'Country', 'New Zealand', 'nz', 158, 0, NULL),
(514, 'Country', 'Nicaragua', 'ni', 159, 0, NULL),
(515, 'Country', 'Niger', 'ne', 160, 0, NULL),
(516, 'Country', 'Nigeria', 'ng', 161, 0, NULL),
(517, 'Country', 'Niue', 'nu', 162, 0, NULL),
(518, 'Country', 'Norfolk Island', 'nf', 163, 0, NULL),
(519, 'Country', 'Northern Mariana Islands', 'mp', 164, 0, NULL),
(520, 'Country', 'Norway', 'no', 165, 0, NULL),
(521, 'Country', 'Oman', 'om', 166, 0, NULL),
(522, 'Country', 'Pakistan', 'pk', 167, 0, NULL),
(523, 'Country', 'Palau', 'pw', 168, 0, NULL),
(524, 'Country', 'Palestinian Territory, Occupied', 'ps', 169, 0, NULL),
(525, 'Country', 'Panama', 'pa', 170, 0, NULL),
(526, 'Country', 'Papua New Guinea', 'pg', 171, 0, NULL),
(527, 'Country', 'Paraguay', 'py', 172, 0, NULL),
(528, 'Country', 'Peru', 'pe', 173, 0, NULL),
(529, 'Country', 'Philippines', 'ph', 174, 0, NULL),
(530, 'Country', 'Pitcairn', 'pn', 175, 0, NULL),
(531, 'Country', 'Poland', 'pl', 176, 0, NULL),
(532, 'Country', 'Portugal', 'pt', 177, 0, NULL),
(533, 'Country', 'Puerto Rico', 'pr', 178, 0, NULL),
(534, 'Country', 'Qatar', 'qa', 179, 0, NULL),
(535, 'Country', 'Reunion', 're', 180, 0, NULL),
(536, 'Country', 'Romania', 'ro', 181, 0, NULL),
(537, 'Country', 'Russian Federation', 'ru', 182, 0, NULL),
(538, 'Country', 'Rwanda', 'rw', 183, 0, NULL),
(539, 'Country', 'Saint Helena', 'sh', 184, 0, NULL),
(540, 'Country', 'Saint Kitts and Nevis', 'kn', 185, 0, NULL),
(541, 'Country', 'Saint Lucia', 'lc', 186, 0, NULL),
(542, 'Country', 'Saint Pierre and Miquelon', 'pm', 187, 0, NULL),
(543, 'Country', 'Saint Vincent and The Grenadines', 'vc', 188, 0, NULL),
(544, 'Country', 'Samoa', 'ws', 189, 0, NULL),
(545, 'Country', 'San Marino', 'sm', 190, 0, NULL),
(546, 'Country', 'Sao Tome and Principe', 'st', 191, 0, NULL),
(547, 'Country', 'Saudi Arabia', 'sa', 192, 0, NULL),
(548, 'Country', 'Senegal', 'sn', 193, 0, NULL),
(549, 'Country', 'Serbia', 'rs', 194, 0, NULL),
(550, 'Country', 'Seychelles', 'sc', 195, 0, NULL),
(551, 'Country', 'Sierra Leone', 'sl', 196, 0, NULL),
(552, 'Country', 'Singapore', 'sg', 197, 0, NULL),
(553, 'Country', 'Slovakia', 'sk', 198, 0, NULL),
(554, 'Country', 'Slovenia', 'si', 199, 0, NULL),
(555, 'Country', 'Solomon Islands', 'sb', 200, 0, NULL),
(556, 'Country', 'Somalia', 'so', 201, 0, NULL),
(557, 'Country', 'South Africa', 'za', 202, 0, NULL),
(558, 'Country', 'South Georgia, South Sandwich Islands', 'gs', 203, 0, NULL),
(559, 'Country', 'Spain', 'es', 204, 0, NULL),
(560, 'Country', 'Sri Lanka', 'lk', 205, 0, NULL),
(561, 'Country', 'Sudan', 'sd', 206, 0, NULL),
(562, 'Country', 'Suriname', 'sr', 207, 0, NULL),
(563, 'Country', 'Svalbard and Jan Mayen', 'sj', 208, 0, NULL),
(564, 'Country', 'Swaziland', 'sz', 209, 0, NULL),
(565, 'Country', 'Sweden', 'se', 210, 0, NULL),
(566, 'Country', 'Switzerland', 'ch', 211, 0, NULL),
(567, 'Country', 'Syrian Arab Republic', 'sy', 212, 0, NULL),
(568, 'Country', 'Taiwan, Province of China', 'tw', 213, 0, NULL),
(569, 'Country', 'Tajikistan', 'tj', 214, 0, NULL),
(570, 'Country', 'Tanzania, United Republic of', 'tz', 215, 0, NULL),
(571, 'Country', 'Thailand', 'th', 216, 0, NULL),
(572, 'Country', 'Timor-leste', 'tl', 217, 0, NULL),
(573, 'Country', 'Togo', 'tg', 218, 0, NULL),
(574, 'Country', 'Tokelau', 'tk', 219, 0, NULL),
(575, 'Country', 'Tonga', 'to', 220, 0, NULL),
(576, 'Country', 'Trinidad and Tobago', 'tt', 221, 0, NULL),
(577, 'Country', 'Tunisia', 'tn', 222, 0, NULL),
(578, 'Country', 'Turkey', 'tr', 223, 0, NULL),
(579, 'Country', 'Turkmenistan', 'tm', 224, 0, NULL),
(580, 'Country', 'Turks and Caicos Islands', 'tc', 225, 0, NULL),
(581, 'Country', 'Tuvalu', 'tv', 226, 0, NULL),
(582, 'Country', 'Uganda', 'ug', 227, 0, NULL),
(583, 'Country', 'Ukraine', 'ua', 228, 0, NULL),
(584, 'Country', 'United Arab Emirates', 'ae', 229, 0, NULL),
(585, 'Country', 'United Kingdom', 'gb', 230, 0, NULL),
(586, 'Country', 'United States', 'us', 231, 0, NULL),
(587, 'Country', 'United States Minor Outlying Islands', 'um', 232, 0, NULL),
(588, 'Country', 'Uruguay', 'uy', 233, 0, NULL),
(589, 'Country', 'Uzbekistan', 'uz', 234, 0, NULL),
(590, 'Country', 'Vanuatu', 'vu', 235, 0, NULL),
(591, 'Country', 'Venezuela', 've', 236, 0, NULL),
(592, 'Country', 'Viet Nam', 'vn', 237, 0, NULL),
(593, 'Country', 'Virgin Islands, British', 'vg', 238, 0, NULL),
(594, 'Country', 'Virgin Islands, U.S.', 'vi', 239, 0, NULL),
(595, 'Country', 'Wallis and Futuna', 'wf', 240, 0, NULL),
(596, 'Country', 'Western Sahara', 'eh', 241, 0, NULL),
(597, 'Country', 'Yemen', 'ye', 242, 0, NULL),
(598, 'Country', 'Zambia', 'zm', 243, 0, NULL),
(599, 'Country', 'Zimbabwe', 'zw', 244, 0, NULL),
(600, 'Country', 'Any', '0', 0, 0, ''),
(601, 'State', 'Any', '0', 0, 0, ''),
(602, 'MV_Activity', 'Swimming', 'sw', 1, 0, ''),
(603, 'MV_Activity', 'Hiking', 'hi', 2, 0, ''),
(604, 'MV_Activity', 'Golfing', 'go', 3, 0, ''),
(605, 'MV_Activity', 'Hunting', 'hu', 4, 0, ''),
(606, 'MV_Activity', 'Biking', 'bi', 5, 0, ''),
(607, 'MV_Activity', 'Snow skiing', 'ss', 6, 0, ''),
(608, 'MV_Activity', 'Water skiing', 'ws', 7, 0, ''),
(609, 'MV_Activity', 'Climbing', 'cl', 8, 0, ''),
(610, 'MV_Sports', 'Football', 'fb', 1, 0, ''),
(611, 'MV_Sports', 'Basketball', 'ba', 2, 0, ''),
(612, 'MV_Sports', 'Baseball', 'bb', 3, 0, ''),
(613, 'MV_Sports', 'Golf', 'go', 4, 0, ''),
(614, 'MV_Sports', 'Soccer', 'so', 5, 0, ''),
(615, 'MV_Concerts', 'Bluegrass', 'bg', 1, 0, ''),
(616, 'MV_Concerts', 'Country', 'co', 2, 0, ''),
(617, 'MV_Concerts', 'Opera', 'op', 3, 0, ''),
(618, 'MV_Concerts', 'Pop', 'po', 4, 0, ''),
(619, 'MV_Concerts', 'Rock', 'ro', 5, 0, ''),
(620, 'MV_Concerts', 'Plays', 'pl', 6, 0, ''),
(621, 'MV_Accomodations', 'Hotel - medium', 'hm', 1, 0, ''),
(622, 'MV_Accomodations', 'Hotel - high', 'hh', 2, 0, ''),
(623, 'MV_Accomodations', 'Camping - basic', 'cb', 3, 0, ''),
(624, 'MV_Accomodations', 'Camping - hookups', 'ch', 4, 0, ''),
(625, 'MV_Travel', 'Air', 'ai', 1, 0, ''),
(626, 'MV_Travel', 'Train', 'tr', 2, 0, ''),
(627, 'MV_Travel', 'Bus', 'bu', 3, 0, ''),
(628, 'MV_Travel', 'Car', 'ca', 4, 0, ''),
(629, 'MV_Travel', 'Motorcycle', 'mo', 5, 0, ''),
(630, 'CSType', 'Vacation', 'M', 4, 0, ''),
(631, 'RE_X_Cat', 'Interest', '17', 6.5, 0, ''),
(632, 'RE_X_Cat', 'Payment', '18', 9.5, 0, ''),
(633, 'RE_X_Cat', 'Sell', '19', 13.1, 0, ''),
(634, 'RE_X_Cat', 'Buy', '20', 2, 0, ''),
(635, 'RE_X_Cat', 'Transportation', '21', 14.1, 0, ''),
(636, 'RE_X_Cat', 'Donation', '22', 2.7, 0, ''),
(637, 'SIGNATURE', 'Url', '0', 0, 0, '');

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

--
-- Table structure for table `Roles`
--

CREATE TABLE IF NOT EXISTS `Roles` (
  `RoleID` int(11) NOT NULL COMMENT 'Unique role identifier',
  `RoleName` varchar(50) NOT NULL,
  `Description` varchar(1000) DEFAULT NULL,
  `AutoAssignment` tinyint(4) NOT NULL DEFAULT '0',
  `IsDisabled` tinyint(4) DEFAULT '0',
  UNIQUE KEY `RoleID` (`RoleID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Brief name for the role';

--
-- Dumping data for table `Roles`
--

INSERT INTO `Roles` (`RoleID`, `RoleName`, `Description`, `AutoAssignment`, `IsDisabled`) VALUES
(3, 'Registered NON-RTI', 'This role is to be assigned to EVERY ProMan account for NON-RTI users', 0, 1),
(2, 'Systems', 'Programmers and systems staff', 0, 0),
(1, 'Registered User', 'Users with logins who are functioning members of at least one project', 1, 0),
(0, 'Administrator', 'Portal Administration', 0, 0),
(4, 'Registered  NON-US', 'Registered users not US citizens', 0, 1);

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

--
-- Table structure for table `SavedQuery`
--

CREATE TABLE IF NOT EXISTS `SavedQuery` (
  `Queryid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique query identifier',
  `QueryName` varchar(100) DEFAULT NULL,
  `QueryText` text,
  `StaffNo` int(11) DEFAULT NULL,
  `CreateDate` timestamp NULL DEFAULT NULL,
  `QueryType` varchar(10) NOT NULL DEFAULT 'SQL' COMMENT 'SQL,PHP',
  UNIQUE KEY `Queryid` (`Queryid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='User who created the entry' AUTO_INCREMENT=7 ;

--
-- Dumping data for table `SavedQuery`
--

INSERT INTO `SavedQuery` (`Queryid`, `QueryName`, `QueryText`, `StaffNo`, `CreateDate`, `QueryType`) VALUES
(1, 'Questions import from ImportSpecs', 'insert into Questions (qID, qDescription, QText, qType, qFormat, qHelp)\r\nselect variable_name, Definition, Field_name, ''TEXT'', length, dependencies from ImportSpecs\r\nwhere variable_name not in (select qID from Questions);\r\nupdate `ImportSpecs` \r\nset variable_name=Field_name where variable_name=''''\r\n', 12, '2007-03-06 12:55:54', 'SQL'),
(2, 'fq import', 'CREATE TEMPORARY TABLE IF NOT EXISTS tmpk (RowNumber int KEY AUTO_INCREMENT, qID char(32)) TYPE=MEMORY; \r\nINSERT tmpk (qID) SELECT variable_name FROM ImportSpecs;\r\ninsert into FormQuestions (fID,qID)\r\nselect ''med_opinions'',variable_name \r\nfrom ImportSpecs;\r\nupdate FormQuestions,tmpk\r\nset qOrder=RowNumber\r\nwhere fID=''med_opinions'' and FormQuestions.qID=tmpk.qID;\r\n', NULL, '2007-03-06 12:26:39', 'SQL'),
(3, 'Tab Type renaming', 'update Tabs set TabType="Proj" where TabType=`PROJECT`;\r\nupdate Tabs set TabType="Doc" where TabType=`DOCUMENT`;\r\nupdate Tabs set TabType="Tool" where TabType=`TOOL`;\r\nupdate Tabs set TabType="Tab" where TabType=`TAB`;\r\nupdate Tabs set TabType="Rpt" where TabType=`REPORT`;\r\nupdate Tabs set TabType="Link" where TabType=`LINK`;\r\nupdate Tabs set TabType="Wiki" where TabType=`WIKI`;\r\nupdate Tabs set TabType="Blog" where TabType=`BLOG`;\r\nupdate Tabs set TabType=`Sell` where TabType=`FORSALE`', 12, NULL, 'SQL'),
(4, 'Duplicate Tab Names', 'select * from Tabs,\r\n(SELECT TabName,count(*) as Freq FROM `Tabs` group by TabName) as a where Freq>1 and a.TabName=Tabs.TabName', NULL, '2008-01-19 18:51:58', 'SQL'),
(5, 'Tabulate a column', 'select TabType, count(*) as Freq from Tabs group by TabType order by TabType', NULL, '2008-01-22 21:26:06', 'SQL'),
(6, 'ResponseInsert', 'insert into Responses(CaseID,qID,rValue,uID,DateCreated,rOK,isDeleted,\r\nrInstance,ProjectId)\r\nselect CaseID,`RE_X_VendorClient`,`4074`,uID,DateCreated,rOK,isDeleted,\r\nrInstance,ProjectId from Responses where qId=`RE_X_Description` and instr(rValue,`Benson`)>0;\r\n\r\nselect * from Responses where rValue=`4074`;\r\n\r\n/*SELECT * FROM `Responses` WHERE qId=`VC_Name`*/\r\n\r\ndrop table tmpA;\r\ncreate table tmpA as \r\nselect rUnique,CaseID,qId,rValue,uId,DateCreated,rOK,isDeleted,rInstance,ProjectId from Responses where qId=`RE_X_Description` and isDeleted=0 ;\r\n\r\ndrop table tmpB;\r\ncreate table tmpB as \r\nselect rUnique,CaseID,qId,rValue,uId,DateCreated,rOK,isDeleted,rInstance,ProjectId from Responses where qId=`RE_X_VendorClient` and isDeleted=0 ;\r\n\r\ndrop table tmpC;\r\ncreate table tmpC as\r\nselect tmpA.*,tmpB.qId as tqId,tmpB.rValue as tValue from tmpA left join tmpB on tmpB.CaseId=tmpA.CaseId and tmpB.rInstance=tmpA.rInstance;\r\n\r\nselect * from tmpC where tqId is null;\r\n', 12, NULL, 'SQL');

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

--
-- Table structure for table `StateTimeZone`
--

CREATE TABLE IF NOT EXISTS `StateTimeZone` (
  `State` char(2) NOT NULL,
  `TimeZone` char(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `StateTimeZone`
--

INSERT INTO `StateTimeZone` (`State`, `TimeZone`) VALUES
('AL', 'CST'),
('AK', 'AST'),
('AZ', 'MST'),
('AR', 'CST'),
('CA', 'PST'),
('CO', 'MST'),
('CT', 'EST'),
('DC', 'EST'),
('DE', 'EST'),
('FL', 'EST'),
('GA', 'EST'),
('HI', 'HST'),
('ID', 'PST'),
('IL', 'CST'),
('IN', 'EST'),
('IA', 'CST'),
('KS', 'CST'),
('KY', 'EST'),
('LA', 'CST'),
('ME', 'EST'),
('MD', 'EST'),
('MA', 'EST'),
('MI', 'EST'),
('MN', 'CST'),
('MS', 'CST'),
('MO', 'CST'),
('MT', 'MST'),
('NE', 'CST'),
('NV', 'PST'),
('NH', 'EST'),
('NJ', 'EST'),
('NM', 'MST'),
('NY', 'EST'),
('NC', 'EST'),
('ND', 'CST'),
('OH', 'EST'),
('OK', 'CST'),
('OR', 'MST'),
('PA', 'EST'),
('RI', 'EST'),
('SC', 'EST'),
('SD', 'CST'),
('TN', 'EST'),
('TX', 'CST'),
('UT', 'MST'),
('VT', 'EST'),
('VA', 'EST'),
('WA', 'PST'),
('WV', 'EST'),
('WI', 'CST'),
('WY', 'MST');

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

--
-- Table structure for table `TableDoc`
--

CREATE TABLE IF NOT EXISTS `TableDoc` (
  `TableId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique table identifier',
  `TableName` varchar(100) NOT NULL,
  `TableDescription` varchar(255) DEFAULT NULL,
  `TableCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `TableCreator` int(11) DEFAULT NULL,
  `IsDeleted` tinyint(4) NOT NULL DEFAULT '0',
  UNIQUE KEY `TableId` (`TableId`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Actual table name' AUTO_INCREMENT=16 ;

--
-- Dumping data for table `TableDoc`
--

INSERT INTO `TableDoc` (`TableId`, `TableName`, `TableDescription`, `TableCreated`, `TableCreator`, `IsDeleted`) VALUES
(1, 'Calendar', 'Calendar events', '2006-11-20 12:49:00', 12, 0),
(2, 'IssueComments', 'Comments related to issues', '2014-12-09 21:10:08', 12, 0),
(3, 'IssueHistory', 'Log of updates to issues', '2014-12-09 21:10:08', 12, 0),
(4, 'Issues', 'Issues requiring action', '2014-12-09 21:10:08', 12, 0),
(5, 'ProjectCategories', 'Categories of activities', '2014-12-09 21:10:08', 12, 0),
(6, 'ProjectMembers', 'Members of projects', '2014-12-09 21:10:08', 12, 0),
(7, 'ProjectMilestones', 'Milestones associated with project issues', '2014-12-09 21:10:08', 12, 0),
(9, 'Projects', 'Projects using issuetracker', '2014-12-09 21:10:08', 12, 0),
(10, 'RelatedIssues', 'Parent-child ordered pairs relating issues', '2014-12-09 21:10:08', 12, 0),
(11, 'Roles', 'Roles which may be assigned to users', '2006-11-20 12:57:00', 12, 0),
(12, 'SavedQuery', 'Queries defined and stored by users', '2006-11-20 12:58:00', 12, 0),
(13, 'TableDoc', 'This table - documents other tables', '2006-11-20 12:58:00', 12, 0),
(14, 'Tabs', 'Portal tabs for role-based access', '2006-11-20 12:59:00', 12, 0),
(15, 'Users', 'Users having portal accounts', '2006-11-20 12:59:00', 12, 0),
(8, 'ProjectPriorities', 'Priorities associated with project issues', '2014-12-09 21:10:08', 12, 0);

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

--
-- Table structure for table `Tabs`
--

CREATE TABLE IF NOT EXISTS `Tabs` (
  `TabID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique tab identifier',
  `TabOrder` int(11) NOT NULL DEFAULT '0',
  `ProjectID` int(11) DEFAULT NULL,
  `TabName` varchar(100) NOT NULL,
  `AuthorizedRoles` varchar(256) DEFAULT NULL,
  `IsVisible` tinyint(4) NOT NULL DEFAULT '1',
  `ParentId` int(11) DEFAULT '0',
  `ImageList` varchar(4000) DEFAULT NULL COMMENT 'Comma delimited list of image files to display',
  `Title` varchar(200) DEFAULT NULL,
  `Description` mediumtext,
  `IsDeleted` tinyint(4) NOT NULL DEFAULT '0',
  `TabTarget` varchar(200) DEFAULT NULL,
  `TabType` varchar(20) DEFAULT 'TAB',
  `TabOwner` int(11) DEFAULT NULL,
  `LastUpdate` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Date time of last update',
  `DateCreated` datetime DEFAULT NULL COMMENT 'Date/time created',
  `Keywords` varchar(255) DEFAULT NULL COMMENT 'Keywords for internet search engines',
  UNIQUE KEY `TabID` (`TabID`),
  KEY `TabName` (`TabName`),
  KEY `ProjectID` (`ProjectID`),
  KEY `TabID_2` (`TabID`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='Full name of the tab' AUTO_INCREMENT=2994 ;

--
-- Dumping data for table `Tabs`
--

INSERT INTO `Tabs` (`TabID`, `TabOrder`, `ProjectID`, `TabName`, `AuthorizedRoles`, `IsVisible`, `ParentId`, `ImageList`, `Title`, `Description`, `IsDeleted`, `TabTarget`, `TabType`, `TabOwner`, `LastUpdate`, `DateCreated`, `Keywords`) VALUES
(532, 285, 0, 'Businesses', '', 1, 5, NULL, 'Businesses (money changes hands)', 'This area is set aside for legitimate businesses to provide a web interface to their business operations.  Operations include management activities as well as those directed to their clients.<p>A business site may have areas that are private to the business as well as areas which are open to the public. <p>Role and user based access control to the business web portal tabs is tightly enforced. ', 0, '', 'Proj', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Businesses (money changes hands)'),
(550, 760, 0, 'GuestBook', '', 1, 0, NULL, 'Guest Book', 'The Guest Book allows web Users to make comments or ask questions about a ProMan project.\r\n<p>\r\n<center><img src=../images/GuestBook.jpg></center>', 0, '../Questionnaire/index.php?Instrument=GuestBook&Form=GB_Console&CaseId=-1&Ftmp=&Ctmp=qrh&HFtmp=OK&qprmid=-1&Instance=0&scroll=no', 'Tab', 12, '2012-09-27 14:46:32', '2009-11-23 21:06:35', 'Guest Book'),
(1829, 766, 0, 'BookMarks', '0;4;3;1;2;', 1, 0, NULL, 'Book Marks', 'The BookMarks tab allows you to store your bookmarks on the ProMan portal.  So, you will always have access to your bookmarks when working on different machines.\r\n<p>\r\nWhen you bookmark using the <img src=../images/BookMark.png> button, the tab name is appended with your userid.\r\n<p>\r\nUnlike Links , BookMarks are only available to the bookmark owner regardless of the tab security that is set.\r\n<p>\r\n BookMarks are available to the bookmark owner across projects.\r\n<p>\r\nThere are two types of BookMarks - internal and external:\r\n<ul>\r\n<li>To create an <b>internal</b> bookmark click on the <img src=../images/BookMark.png> button\r\n<li>To create an <b>external</b> bookmark you will need two browser sessions going (either as separate windows or as tabs).\r\n<ol>\r\n<li>In one session you must be logged in to ProMan .\r\n<li>In the other session, browse to the URL you wish to bookmark.  \r\n<li>Copy the URL from the address bar in that session.\r\n<li>Move to the ProMan session and click on the <img src=../images/BookMark.png> button.  \r\n<li>Paste the URL that was previously copied into the Target field.\r\n<li>Give your tab a meaningful name (other than the default).\r\n<li>Give your tab a title.\r\n<li>Click on the <img src=../images/disk.gif> button to save your bookmark.\r\n</ol>\r\n</ul>', 0, 'BookMarks.php?scroll=no', 'Book', 12, '2012-09-27 14:27:06', '2008-12-12 01:59:48', 'Book Marks'),
(533, 301, 0, 'Churches', '', 1, 5, NULL, 'Churches', 'This area is set aside for Christian churches to provide a web interface to their church operations.  Operations include management activities as well as those directed to the public.<p>A church site may have areas that are private to the church as well as areas which are open to the public. <p>Role and user based access control to the church web portal tabs is tightly enforced.', 0, '', 'Proj', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Churches'),
(534, 303, 0, 'Families', '', 1, 5, NULL, 'Families', 'This area is set aside for families to provide a web interface to their members.<p>A family site may have areas that are private to the family as well as areas which are open to the public.<p>Role and user based access control to the family web portal tabs is tightly enforced.', 0, '', 'Proj', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Families'),
(108, 751, 0, 'ToolAdmin', '0;4;3;1;2;', 1, 104, '', 'Tool Admin', 'The ToolAdmin tab enables adding, removing and re-ordering tools by users assigned the Programmer role. \r\n<P>You can publish any tool by referencing the tool in the target field. \r\n<P>The left panel of the ToolAdmin form enables you to see all the tools defined for your project.You can add new Tools by doing the following: \r\n<OL>\r\n<LI>Click on the <B>Add</B> button \r\n<LI>An item called <I>New Tool</I> will appear at the bottom of the menu panel. \r\n<LI>Click on <I>New Tool</I> to select it \r\n<LI>You can then edit any of the attributes of the tool tab \r\n<LI>To save your updates, click on <B>Update</B> \r\n<LI>The Description field also serves as <I>help</I> content. So, make sure that it is sufficient for that purpose. Use HTML to format the description. \r\n<LI>Use the lower portion of the right panel to control where the tool will appear in the project sitemap. You can move the tab to a different parent. You can also move it to a particular place under a parent with multiple children using the up and down arrows. \r\n<LI>Lastly, make sure the role-based security is set appropriately for the tool. </LI></OL>\r\n<p>\r\nThe ToolAdmin is similar to the Tabs Admin shown below:\r\n<p>\r\n<center><img src=../images/Tabs.jpg></center>', 0, 'ToolsAdmin.php?scroll=no', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Tool Admin'),
(74, 242, 0, 'ReportAdmin', '0;4;1;3;2;', 1, 7, '', 'View or modify details and add new report tabs', 'The ReportAdmin tab enables adding, removing and re-ordering reports by users assigned the Programmer role. \r\n<p>\r\nYou can publish any report by referencing the report in the target field.\r\n<p>\r\nThe left panel of the ReportAdmin form enables you to see all the reports defined for your project.<br>\r\nYou can add new Reports by doing the following:\r\n<ol>\r\n<li>Click on the <b>Add</b> button\r\n<li>An item called <i>New Tab</i> will appear at the bottom of the menu panel.\r\n<li>The <i>New Tab</i> is automatically selected for editing.\r\n<li>You can then enter or change any of the attributes of the report tab\r\n<li>To upload a report and associate it with your new tab:\r\n<ul>\r\n<li>Click on the binoculars\r\n<li>A <i>File Upload</i> dialog will pop up.\r\n<li>Click on <i>Browse</i> to locate the document you wish to updload\r\n<li>Click on <i>Upload</i> to upload the document to the project upload site\r\n<li>Click on <i>Continue</i> after the file has been uploaded\r\n<li>Click on <i>Update</i> to save the uploaded file name to the tab\r\n<ul>\r\n<li>Once a file name appears in the target field clicking on the binoculars will display the target\r\n<li>To upload a new file, you must clear the target field and click on <i>Update</i>.\r\n</ul>\r\n</ul>\r\n<li>To save your updates, click on <b>Update</b>.\r\n<li>The Description field also serves as <i>help</i> content.  So, make sure that it is sufficient for that purpose.  Use HTML to format the description.\r\n<li>Use the lower portion of the right panel to control where the report will appear in the project sitemap.  You can move the tab to a different parent.  You can also move it to a particular place under a parent with multiple children using the up and down arrows.\r\n<li>Lastly, make sure the role-based security is set appropriately for the report.\r\n</ol>\r\n<p>\r\nThe ReportAdmin is similar to the Tabs Admin shown below:\r\n<p>\r\n<center><img src=../images/Tabs.jpg></center>', 0, 'ReportsAdmin.php?scroll=no', 'Tab', 12, '2008-08-22 07:50:01', '2008-08-22 07:50:01', 'View or modify details and add new report tabs'),
(121, 305, 0, 'ProMan', '', 1, 5, '', '<img src=../images/ProMan.jpg width=25> <b style={font-size:25;}>Project Management Portal</b> ', '<center>\r\n<table border=0 background="../images/lavalake.jpg" width=100% >\r\n  <tr>\r\n    <td align=center><br>\r\n      <table width=85% style="background-color:transparent" border=0 >  \r\n        <tr>    \r\n          <td valign=top>      \r\n            <table border=0 bgcolor=336699>        \r\n              <tr>          \r\n                <td>\r\n                  <table border=0 CELLPADDING=10>\r\n                    <tr>\r\n                      <td  class=tdtanV>\r\n                          <b style="font-size:20;color:black"><i> ProMan </i></b>is a web-based CMS / WebTop providing the framework for this web portal.  It is also the name of one of the Projects defined in the ProMan framework.  The ProMan project is where base level Tabs are defined and managed.<p>New Projects are defined and configured from the ProMan ProjectAdmin interface.  Once the new project is ready, it is published (made <i>visible</i> to the public).  The new project can be further configured by one or more project Users with Admin privileges. See ProMan_Architecture .\r\n                      </td>\r\n                    </tr>\r\n                  </table>\r\n                </td>\r\n              </tr>\r\n            </table>\r\n          </td>\r\n          <td>\r\n<iframe id=ifrm  FRAMEBORDER=0\r\nsrc=menu.php?tabnum=5      \r\nallowtransparency="true" width=225 height=265>   \r\n</iframe>\r\n          </td>\r\n        </tr>\r\n      </table>\r\n    </td>\r\n  </tr>\r\n\r\n</table>', 0, 'ProjectSelect.php?projectid=0', 'Proj', 12, '2009-11-23 10:14:17', '2009-11-23 10:14:17', '<img src=../images/ProMan.jpg width=25> <b style={font-size:25;}>Project Management Portal</b> '),
(535, 293, 0, 'Individuals', '', 1, 5, NULL, 'Individuals', 'This area is set aside for individuals to provide a web interface to their friends and the general public.<p>An individual site may have areas that are private to the individual as well as areas which are open to the public.<p>Role and user based access control to the individual web portal tabs is tightly enforced.', 0, '', 'Proj', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Individuals'),
(64, 748, 0, 'IssueEdit', '0;2;1;3;4;', 0, 0, '', 'View or modify information about a specific issue', 'The IssueEdit tab is a hidden tab allowing a link to a specific issue. \r\n<p> \r\nIssues are activities which feed into the project Schedule as well as the Calendar . \r\n<p> \r\nThe IssueEdit form allows you to view and edit the following attributes of the issue: \r\n<ul> \r\n<li>Title \r\n<li>Priority \r\n<li>Milestone \r\n<li>Category \r\n<li>Owner \r\n<li>Assignee \r\n<li>Level-of-effort \r\n<li>Start date \r\n<li>End date \r\n<li>Needed-by date \r\n<li>Add new comments \r\n<ul> \r\n<li>Use plain text or HTML to format text in the comment area <li>You can place links to other tabs in the comment field by: <ul> <li>Clicking on the <img src="../images/computer.gif" heigth=20 width=20> (computer) icon to open a new window to the portal \r\n<li>Locate the item you wish to link to in the new window <li>Copy the URL from the \r\n<i>Address Bar</i> \r\n<li>Go back to the window with your issue comment \r\n<li>Paste the URL into your comment between the anchor mark-up. \r\n<li>Make sure you enter " target=_blank" at the end of the URL to open a new window on click \r\n</ul> \r\n</ul> \r\n<li>Edit <i>your</i> old comments \r\n<ul> \r\n<li>Click on your username for a comment in the current comment list \r\n<li>You will be placed in a new window where you can edit the old comment <li>When you save the updates in the edit window the date for the comment is updated \r\n</ul> \r\n<li>Email a comment to project staff \r\n<ul> \r\n<li>Click on the <img src="../images/email.jpg" width=20 height=20> icon\r\n<li>Use the roles drop-down to choose specific roles \r\n<li>Click on a user in the users drop-down to add them to the email list <li>Edit the comment or send it as is </ul> <li>Change the parent issue <li>Add new child issues (pre-existing) \r\n<li>Make new child issues \r\n</ul> \r\nFunctions: \r\n<ul> \r\n<li><b>Update</b> button will commit all changes to the database. It will also Since the IssueEdit form may be activated from several different places in the system, you should use the browser `BACK` button to return to the starting point. \r\n<li><b>Delete</b> button will delete the issue.\r\n<li><b>Print</b> button displays a printable summary of the IssueEdit\r\n<li><b>Exit</b> button exits IssueEdit and returns to the form from which it was referenced\r\n</ul>\r\n<p>\r\n<img src=../images/IssueEdit.jpg>', 0, 'IssueEdit.php', 'Tab', 12, '2009-03-01 15:52:38', '2009-03-01 15:52:38', 'View or modify information about a specific issue'),
(51, 492, 0, 'Wiki', '', 1, 0, '', 'The ProMan Wiki', 'The ProMan Wiki is a simple but powerful CMS tightly integrated into the ProMan_Architecture framework.\r\n<p>\r\n<b>How it works</b>\r\n<dir>\r\nThe ProMan Wiki is Tabs based, i.e. ProMan Wiki pages are Tabs .  All ProMan content is either stored directly in a Tabs record in the Database or in the case of external content, referenced as Links from ProMan Tabs .  When the ProMan Wiki is processing Tabs descriptions it looks for WikiWords and inserts links to existing WikiWords and creates Tabs for WikiWords not found.\r\n</dir>\r\n<b>Navigation</b>\r\n<dir>\r\nFor forward movement through the ProMan Wiki simply click on the Links in the current page.<p>\r\nTo move backward use the Browser <b>Back</b> button.\r\n<p>\r\nTo go to the Wiki Home page click on the <img src=../images/view.gif width=25> button on the top left ProMan button pane or, if you are on the Wiki search page, the <img src=../images/view.gif width=25> button next to the search text field.<p>\r\nTo go to the Wiki search page while maintaining the current page view click on the <img src=../images/view.gif width=25> button under <i>Detail</i> on the current page.\r\n</dir>\r\n<b>Searching</b>\r\n<dir>\r\nYou can access the ProMan Wiki search tool in various ways:\r\n<ul>\r\n<li>by clicking on the Wiki menu tab - this takes you to the Wiki Home \r\n<li>by clicking on the <img src=../images/view.gif width=25> button - this also takes you to the Wiki Home \r\n<li>by clicking on the <img src=../images/help.gif width=25> button - this takes you into the Wiki area associated with the currently selected ProMan tab\r\n</ul>\r\n<p>\r\nTo begin a search type in a single word to search for.  Then click on the binoculars.\r\n<p>\r\nWhen the search is performed only Database Tabs titles and descriptions are scanned.  Neither internal nor external Links are searched.  \r\n<p>\r\nAll Tabs containing the search <i>word</i> will be displayed in the sitemap menu.  The first tab containing the search <i>word</i> will be displayed in the Wiki page.  The search <i>word</i> will be highlighted in <font color=red>RED</font>.\r\n<p>\r\nIf the search <i>word</i> is not found a hyperlink to Wikipedia will be provided.\r\n</dir>\r\n<b>Editing content</b>\r\n<dir>\r\nThe Wiki Tab <b>name</b> (or page name) appears on the top line of a Wiki page.\r\nIf the Wiki Tab <b>name</b> is a link (i.e. clickable), you can edit the page or delete the page by clicking on the Wiki Tab <b>name</b>.  This opens the page for editing.\r\n<p>\r\nUse HTML syntax to add or update page content.  You can create a new link by\r\nplacing a literal link in the text (using HTML anchor syntax) or you can use the WikiWords feature to intialize a new ProMan Wiki Tabs record for documening the reference.\r\n<p>\r\nSometimes the ProMan Wiki will create a new page (i.e. initiate new WikiWords ) as a result of a typo in one of its pages.  Correct the typo in the parent page.  Locate the bad WikiWords page, clicking on the Tabs <b>name</b>. Then use the Tabs <i>Delete</i> button to delete the bad WikiWords Tabs record.\r\n</dir> \r\n<b>Wiki integration with ProMan Tools</b> \r\n<dir>\r\nAll ProMan Tools are defined as Tabs .  So, Tools documentation is provided for at the time the Tools are publshed on the ProMan portal.  Even if documentation is not provided at the time Tools are published, any reference to the Tools in the Wiki result in references back to the Tools documentation serving as a reminder to document them each time the reference link is used.\r\n</dir>\r\n<p>\r\n<img src=../images/Wiki.jpg>', 0, 'Wiki.php?scroll=no', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'The ProMan Wiki'),
(6, 744, 0, 'Login/Logout', '', 1, 0, '', 'Login, logout, change your password or get new password', 'The Login/Logout tab enables Users to log into ProMan . It is accessed using the <img src=/images/lock.gif height=20 width=20> button. <p> From the login screen: \r\n<ul> \r\n<li>you can change your password \r\n<li>you can request a password reminder \r\n</ul>\r\nOnce logged in, the ProMan portal menus are updated to show all the Tabs accessible for the logged in user based on the Roles of the Tabs with respect to the user`s role.\r\n<p>\r\n<img src=../images/Login.jpg>', 0, 'Login.php', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Login, logout, change your password or get new password'),
(236, 226, 0, 'Assignments', '0;4; 3; 1;2;', 1, 11, '', 'Pending Assignments - Counts and Listings', 'The ProMan Assignments tool is a three-tiered application which:\r\n<ul>\r\n<li>reports on counts of pending Schedule issues for all Users on a project (tier 1)\r\n<ul>\r\n<li>by creator\r\n<li>by owner\r\n<li>by assigned-to\r\n</ul>\r\n<li>lists all pending issues for a user selected user (tier 2)\r\n<li>allows updating the selected issue IssueEdit (tier 3)\r\n</ul>\r\n<p>\r\n<center><img src=../images/Assignments.jpg></center>', 0, 'PendingCountsByUser.php', 'Tab', 12, '2009-07-05 17:01:39', '2009-07-05 17:01:39', 'Pending Assignments - Counts and Listings'),
(104, 750, 0, 'Tools', '0; 3;1;4;2;', 1, 0, '', 'Custom tools for performing project-specific activities', 'The Tools tab is the root folder for all project specific applications. \r\n<dir><i>\r\n Tools Tabs provide Links to the Projects applications requiring input from Users .  Questionnaire forms and the like are typical Tools .  Do not use the Tools tab for external Links or links to Documents or Reports .\r\n</i></dir>\r\nUse the ToolAdmin tab to create new or modify attributes of Tools . ', 0, 'Tools.php?scroll=no', 'Tool', 12, '2012-09-27 14:26:40', '2008-12-12 01:59:48', 'Custom tools for performing project-specific activities'),
(18, 255, 0, 'Roles', '0;', 1, 2, '', 'View, modify or add roles', 'The <b>Roles</b> tab enables administrators to add, modify or disable roles.\r\n<dir><i>\r\nA role defines the scope of a Users range in the ProMan portal.  Users have only one role assigned to them.  Tabs may have none or several Roles assigned to them.  ProMan provides a custom interface to Users based on the role assigned to them and the Roles assigned to set of all possible Tabs .\r\n</i></dir>\r\n <p> Since roles are global admins should <i>not</i> delete existing roles. <p> Adding a multitude of roles complicates security administration for each tab since a single user account has exactly 1 role assigned to it. \r\n<p>\r\n<center><img src=../images/Roles.jpg></center>', 0, 'Roles.php?scroll=no', 'Tab', 12, '2012-09-27 14:51:37', '2008-06-20 20:40:33', 'View, modify or add roles'),
(17, 240, 0, 'Calendar', '', 1, 0, '', 'Project Calendar with Issues and Out-of-Office Events', 'The <b>Calendar</b> tool provides the following: <ul> <li>enables users to enter <b>out-of-ofice</b> events. <li>enables users to enter <b>meeting</b> events. <li>enables users to enter <b>general</b> events <li>view project issues by issue end date <li>single point of out-of-office entry for all projects </ul> <p> To add a new out-of-office or meeting event click on the day of the month that the event occurs. <p> To view the details or modify an out-of-office event click on the event <p> To view the details or modify a schedule issue event click on the event <p> The default view shows only your out-of-office events and only your pending events. <p> Click on the <img src=../images/base.gif height=20 width=20> icon to see all events including deliverables. This is the default. <p> Click on the <img src=../images/exclamation.gif height=20 width=20> icon to see deliverable events only. <p> Click on the <img src=../images/working.gif height=20 width=20> icon to see pending events only. This is the default. <p> Click on the <img src=../images/world.gif height=20 width=20> icon to see all your events including completed. <p> Click on the <img src=../images/me.jpg height=20 width=20> icon to see only events belonging to you. This is the default. <p> Click on the <img src=../images/people.gif height=20 width=20> icon to see all events for the project. <p> Click on the <img src=../images/house.gif height=20 width=20> icon to return to today. <hr>Notes:<ul><li><b>Out-of-office</b> events are available to all Users logged into ProMan <li><b>Meeting</b> events are stored in the Project Schedule and are available only to Users who are Project Members <li><b>General</b> events are available to the public.</ul><p><center><img src=../images/Calendar.jpg></center>', 0, 'CalendarEvent.php?align=center', 'Tab', 12, '2012-10-29 14:44:24', '2008-06-20 20:40:33', 'Project Calendar with Issues and Out-of-Office Events'),
(246, 759, 0, 'HowTo', '0;', 1, 0, '', 'How To Help Guide', 'This tab contains references to basic user features that typically appear in FAQ.\r\n<br>\r\nIt points you to information on HowTo : \r\n<ul> \r\n<li> Download Documents (or other content) \r\n<li> Print Documents (or other content) \r\n<li> Upload Documents (or other content) \r\n<li> Access Help on the content pane application\r\n<li> Provide Feedback to the ProManAdmin\r\n<li> Add Content: Documents Reports Tools Links BookMarks Wiki Blog\r\n<li> Navigate ProMan \r\n<li> Admin -istrate ProMan Users , Roles , and Tabs \r\n<li> Administrate Projects \r\n<li> Schedule work and monitor Assignments \r\n<li> Build and deploy a Questionnaire \r\n<li> Configure the ControlSystem\r\n<li> Monitor data quality via DataEdits  \r\n<li> Add Reports to the ProMan menu\r\n<li> Use the Wiki \r\n<li> Use the Blog \r\n<li> Make BookMarks \r\n</ul>', 0, '', 'Tab', 12, '2014-09-13 10:28:23', '2008-12-12 01:59:48', 'How To Help Guide'),
(19, 222, 0, 'Documents', '0;1;2;3;4;', 1, 0, '', 'Documents Tree', 'This is the root tab for all Documents . <dir><i> Documents Tabs are used to define Links to Projects Documents .  You should not include Reports or Tools or external Links here.</i></dir><p> Documents may be added or removed from the site via the DocAdmin tab. <p> If you wish to download a document click on the <img src=../images/web.gif width=20 height=20> button in the top left panel. This will open the document into a separate browser window. Use the <b>File Save As</b> option to save a copy of the document to your local machine. <p> ', 0, 'Documents.php?scroll=no', 'Doc', 12, '2012-10-16 09:51:13', '2008-08-22 07:49:15', 'Documents Tree'),
(11, 225, 0, 'Schedule', '0;1;2;3;4;', 1, 0, '', 'Project Schedule of Tasks, Activities, Status and Assignments', 'The Schedule tool offers the ability to organize project activities in a work-flow environment. Project Tasks and associated activities are referred to as Issues . \r\n<P>The ProMan Schedule tool integrates Users and project activities via a dynamic email communication protocol supported by a MySQL Database backend. The Schedule is also integrated with the ProMan Calendar and the Assignments tool.\r\n<P>The ProMan Schedule tool offers the following features:\r\n<UL>\r\n<LI>Single and multiple Issues editing \r\n<LI>Customizable views \r\n<LI>Export to CSV \r\n<LI>GanTT chart \r\n<LI>Standard Reports \r\n<UL>\r\n<LI>Single Issue Summary \r\n<LI>Project Overview \r\n<LI>Project Detail \r\n<LI>Document View \r\n</UL>\r\n<LI>Telescope in and out \r\n<UL>\r\n<LI>by task \r\n<LI>by summary or detail \r\n<LI>by pending or all\r\n</UL>\r\n<LI>Edit the Schedule \r\n<UL>\r\n<LI>via individual IssueEdit form \r\n<LI>via grid form \r\n<LI>by copying issues \r\n<LI>by disabling issues \r\n<LI>by creating child issues \r\n<LI>by assigning dependencies \r\n<LI>by assigning responsibility \r\n<LI>by changing need-by date \r\n<LI>by assigning level of effort\r\n</UL>\r\n</UL>\r\n<B>Functions:</B>\r\n<UL>\r\n<LI>Click on the <B>page title</B> to edit the parent issue\r\n<LI>Click on <B>Id</B> to edit the issue\r\n<LI>Click on <B>Title</B> to drill down\r\n<LI>Click on <B>Status</B> to view issue summary\r\n<LI>Click on <B>Assigned</B> to view pending Issues for the user\r\n<LI>Click on <B>Create Child Issue</B> to create a new child issue under the current title \r\n<LI>Click on <B>Go To Parent Issue</B> to go to the current issue`s parent \r\n<LI>Click on the <B>Full Edit</B> to edit all rows simultaneously\r\n<LI>Click on <B>Assigned to Me</B> to subset to your Issues \r\n<LI>Click on <B>Sort Columns</B> to replace buttons with text \r\n<LI>Click on <B>Children Only</B> to show only Issues with no child Issues \r\n<LI>Click in <B>box</B> next to Needed By date to update the date from child Issues\r\n<LI>Click in <B>box</B> next to Level-of-effort to update parent level of effort from children\r\n<LI>Click on <B>Brief</B> to reduce the number of columns in the table \r\n<LI>Specify <B>From</B> and <B>To</B> dates to show Issues which have been worked during that period\r\n</UL>\r\n<p>\r\n<img src=../images/Schedule.jpg>', 0, 'Schedule.php?align=center', 'Tab', 12, '2012-10-29 14:47:12', '2009-12-03 00:33:16', 'Project Schedule of Tasks, Activities, Status and Assignments'),
(73, 223, 0, 'DocAdmin', '0;2; 3;1;4;', 1, 19, '', 'Add, update or delete document tabs', 'The DocAdmin tab enables adding, removing and re-ordering documents by all registered users.<p>Users with Admin Roles as well as the person assigned as the Document Manager for the project have control over all Documents .  Other registered Users may add Documents .  However, unless the document is placed in a folder which they own, the document may only be published by the Document Manager or Users with the Admin role.<p>New Documents added by Users which are not automatically published generate an email notice to the Document Manager that a new document has been added.  The Document Manager will then coordinate with the user who added the document to determine whether to publish or not.<p>Once a registered user has a published folder which they own, they can publish Documents under that folder without assistance from the Document Manager or Users with the Admin role.<p>You can publish any document that has been loaded into the project upload folder.<p><font color=red>Note: Documents must not have names containing `BLANKS` - replace `BLANKS` with `UNDERSCORES` for publishing.</font><p>The left panel of the form enables you to see all the Documents defined for your project.<br>You can add a Documents by doing the following:<ol><li>Click on the <b>Add</b> button<li>An item called <i>New Tab</i> will appear at the bottom of the menu panel.<li>The <i>New Tab</i> is automatically selected for editing.<li>You can then enter or change any of the attributes of the document tab<li>To upload a document and associate it with your new tab:<ul><li>Click on the binoculars<li>A <i>File Upload</i> dialog will pop up.<li>Click on <i>Browse</i> to locate the document you wish to upload<li>Click on <i>Upload</i> to upload the document to the project upload site<li>Click on <i>Continue</i> after the file has been uploaded<li>Click on <i>Update</i> to save the uploaded file name to the tab<ul><li>Once a file name appears in the target field clicking on the binoculars will display the target<li>To upload a new file, you must clear the target field and click on <i>`Update`</i>. </ul></ul><li>To save your updates, click on <b>`Update`</b> <li>The Description field also serves as Wiki content.  So, make sure that it is sufficient for that purpose.  Use HTML to format the description.<li>Use the lower portion of the right panel to control where the document will appear in the project sitemap.  You can move the tab to a different parent.  You can also move it to a particular place under a parent with multiple children using the up and down arrows.<li>Lastly, make sure the appropriate Roles are set for the document.</ol><p>The DocAdmin is similar to the Tabs Admin shown below:<p><center><img src=../images/Tabs.jpg></center>', 0, 'DocumentsAdmin.php?scroll=no', 'Tab', 12, '2008-08-22 07:49:26', '2008-08-22 07:49:26', 'Add, update or delete document tabs'),
(13, 284, 0, 'ProjectAdmin', '0;', 1, 5, '', 'Administer the current project or create a new project', 'The <b>ProjectAdmin</b> tab enables users with Admin privileges to create, modify and disable ProMan Projects .\r\n<p>\r\nAn Admin can:\r\n<ul>\r\n<li>Add or remove Users as project members\r\n<li>Add or modify Help text\r\n<li>Set up a Schedule \r\n<li>Set up a Feedback area\r\n<li>Add or modify Milestones\r\n<li>Add or modify Priorities\r\n<li>Add or modify Categories\r\n<li>Set the Documents root\r\n<li>Set up the Home page\r\n</ul>\r\n<p>\r\nThe first screen of the ProjectAdmin is similare to the Tabs Admin screen shown below:\r\n<center><img src=../images/Tabs.jpg></center>\r\n<p>\r\nThe project detail screen allows for further customization of the project tab:\r\n<center>\r\n<img src=../images/ProjectAdmin1.jpg><br>\r\n<img src=../images/ProjectAdmin2.jpg><br>\r\n<img src=../images/ProjectAdmin3.jpg><br>\r\n</center>', 0, 'ProjectsAdmin.php?scroll=no', 'Tab', 12, '2012-09-27 14:50:13', '2008-08-22 07:50:25', 'Administer the current project or create a new project'),
(62, 747, 0, 'Contacts', '0;1;2;3;4;', 1, 0, '', 'See all the users with accounts for the current project', '<?\r\n/*\r\nThe Contacts tab provides a list of contacts ( Users with ProMan accounts) for the selected project. \r\n<P>You can send email to a project member by clicking on their email address in the listing. \r\n<P>You can send email to the entire project team by clicking on Contacts at the top of the listing. \r\n Users in theÂ contact list may update their personal informationÂ via the MyProfile tab. \r\n<p>\r\n<img src=../images/Contacts.jpg>\r\n*/\r\nglobal $rID;\r\nglobal $rstring;\r\n\r\n$mSubj=`Contacts`;\r\n\r\n$rID=$_REQUEST[~RolesAvailable~];\r\nif ($rID == ~~)\r\n	$rID=999;\r\n\r\nif ($rID==999)\r\n	$rstring=~ ~;\r\nelse\r\n	$rstring=~ and RoleId=~ . $rID . ~ ~;\r\n\r\n//echo ~RolesAvailable=~ , $rID;\r\n\r\n$NOSORT=1;\r\n\r\n$sql=~select LastName, Firstname, UserName, Unit as Organization, TelePhone, ~ .\r\n		~concat(`<a href=mailto:`,email,`>`,email,`</a>`) as EmailAddress ~ .\r\n		~from Users where isDeleted=0 and UserID in ~ .\r\n		~(select UserID from ProjectMembers ~ .\r\n		~where projectid=~ . $_SESSION[~ProjectId~] . ~) ~ .\r\n		$rstring .\r\n		~order by LastName, FirstName~;\r\n\r\n//echo ~sql:~ , $sql , ~~;\r\n\r\nfunction ToAll()\r\n{\r\n	global $rstring;\r\n\r\n	$sql = ~select email from Users where isDeleted=0 and UserID in ~ .\r\n		~(select UserID from ProjectMembers ~ .\r\n		~where projectid=~ . $_SESSION[~ProjectId~] . ~) ~ .\r\n		$rstring .\r\n		~order by LastName, FirstName~;\r\n\r\n	$res=GetResultset($sql);\r\n\r\n    if(!$row = mysql_fetch_assoc($res))\r\n    {\r\n        return false;\r\n    }\r\n\r\n	$tComma=~~;\r\n    do\r\n    {\r\n 		$tList= $tList . $tComma . $row[~email~];\r\n 		$tComma=~;~;\r\n    }\r\n    while ($row = mysql_fetch_assoc($res));\r\n\r\n	DisConnect();\r\n\r\n	return $tList;\r\n}\r\n\r\nfunction loadRoles()\r\n{\r\n	global $rID;\r\n\r\n	echo ~<option value=999>All Roles</option>~;\r\n\r\n	$sql = ~Select RoleId,RoleName from Roles where isDisabled=0 order by RoleName~;\r\n\r\n	$res=GetResultset($sql);\r\n\r\n    if(!$row = mysql_fetch_assoc($res))\r\n    {\r\n        return false;\r\n    }\r\n\r\n    do\r\n    {\r\n		if ($row[~RoleId~] == $rID)\r\n			echo `<option selected=~yes~ value=~` , $row[~RoleId~] , `~>` ,   $row[~RoleName~], `</option>`;\r\n		else\r\n			echo `<option value=~` , $row[~RoleId~] , `~>` ,  $row[~RoleName~], `</option>`;\r\n    }\r\n    while ($row = mysql_fetch_assoc($res));\r\n\r\n	DisConnect();\r\n}\r\necho `<table class=tdblueS><tr><td>`;\r\necho `<table border=0 width=100%><tr><td align=middle>`;\r\n\r\necho `<a href=mailto:`, ToAll(), `><font size=5>Contacts</font></a>`;\r\necho `</td>`;\r\necho `<td align=right>`;\r\necho `<select name=~RolesAvailable~ class=~NormalTextBox~ style=~width:180px;~ onchange=~ReLoadPage();~>`;\r\n\r\nloadRoles();\r\n\r\necho `</select>`;\r\necho `</td>`;\r\necho `</tr></table>`;\r\n$CELLPADDING=10;\r\n$CELLSPACING=0;\r\nShowQueryResult($sql);\r\necho `<br><font size=1>(Only portal account holders appear in the above list)</font>`;\r\necho `</td></tr></table>`;\r\necho `<p>`;\r\n\r\necho `</center>`;\r\n\r\n?>', 0, '', 'Tab', 12, '2015-11-19 21:05:19', '2008-12-12 01:59:48', 'See all the users with accounts for the current project'),
(10, 253, 0, 'Tabs', '0;', 1, 2, '', 'View or modify details or add new tabs to the portal', 'The Tabs tool enables Users with Admin privileges to add, modify or disable Tabs . <p><dir><i>A Tab is an item on the ProMan portal menu which should contain at a minimum, some help text, and may have internal or external Links associated with it.  It has other attributes identifying where in the project menu it appears as well as what Users through their Roles have access to it.  The project Admin has privilege to all Tabs.  However, other Users have privilege to add and modify Tabs in a controlled fashion (see Documents , Reports , Links , Tools ).</i></dir><p>This is the primary tool the Admin uses to shape the project`s ProMan site. <p> You can: <ul> <li>Add, `Update` or `Delete` tabs <li>Move them in the project menu <li>Disable or enable them <li>Make them visible or invisible <li>Enter Help text about the tab module <li>Identify the Roles that may access the tab </ul> To add a new tab: <ol> <li>Click on the <b>Add</b> button <li>An item called <i>New Tab</i> will appear at the bottom of the menu panel. <li>The <i>New Tab</i> is automatically selected for editing. <li>You can then enter or change any of the attributes of the tab <li>To upload a document or program and associate it with your new tab: <ul> <li>Click on the binoculars <li>A <i>File Upload</i> dialog will pop up. <li>Click on <i>Browse</i> to locate the file you wish to updload <li>Click on <i>Upload</i> to upload the file to the project upload site <li>Click on <i>Continue</i> after the file has been uploaded <li>Click on <i>Update</i> to save the uploaded file name to the tab <ul> <li>Once a file name appears in the target field clicking on the binoculars will display the target <li>To upload a new file, you must clear the target field and click on <i>Update</i>. </ul> </ul> <li>To save your updates, click on <b>Update</b> <li>The Description field also serves as <i>help</i> content. So, make sure that it is sufficient for that purpose. Use HTML to format the description. <li>Use the lower portion of the right panel to control where the document will appear in the project sitemap. You can move the tab to a different parent. You can also move it to a particular place under a parent with multiple children using the up and down arrows. <li>Lastly, make sure the role-based security is set appropriately for the document. </ol>  Tabs are stored in the ProMan Database .<p><center><img src=../images/Tabs.jpg></center>', 0, 'Tabs.php?scroll=no', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'View or modify details or add new tabs to the portal'),
(61, 746, 0, 'AccountRequest', '', 1, 0, '', 'Request an account to the ProMan portal', 'The AccountRequest tab enables the public to request ProMan accounts. <p> The account is created upon submission. However, it is marked as disabled. The admin is notified of the account request and enables the account under a protocol provided by the project manager. <p> You need only 1 account to access any project in ProMan. \r\n<p>\r\n<img src=../images/AccountRequest.jpg>', 0, '../Questionnaire/index.php?Instrument=AccountRequest&Form=AccountRequest&CaseId=-1&Ftmp=&Ctmp=qrh&HFtmp=OK&iprmid=-1&Instance=0&scroll=no&qprimid=-1', 'Tab', 12, '2015-02-20 20:04:57', '2008-12-12 01:59:48', 'Request an account to the ProMan portal'),
(3, 254, 0, 'Users', '0;', 1, 2, '', 'Add, modify, activate, deactivate user accounts', 'The Users tab enables the Admin to create, modify and disable user accounts.\r\n<dir><i>\r\nA user corresponds to an individual.  Users may be registered through the AccountRequest process or they may remain unregistered.  Limited access to the ProMan portal is available to unregistered Users .  Registered Users Roles determine the extent of their access in the ProMan portal.  Users must also be members of Projects for access to project-specific ProMan areas.\r\n</i></dir>\r\n<p>\r\nFrom this tab, the Admin may view all Users .\r\n<p>\r\nFrom the list of all Users , the Admin may select a user account and modify it as needed.\r\n<p>\r\nThe Users tab is also used to reset passwords and to deactivate and re-activate accounts for Users .\r\n<p>\r\n<b>Process:</b>\r\n<ol>\r\n<li> AccountRequest tab is used to create a new user account.\r\n<ul>\r\n<li>The account is created immediately.  \r\n<li>However, it is marked as deleted.\r\n<li>The Admin gets an email regarding the new AccountRequest .\r\n</ul>\r\n<li>The Admin opens the Users tab to:\r\n<ul>\r\n<li>verify that the AccountRequest is legitimate\r\n<li>assign a ProMan Roles to the user\r\n<li>assign the user to one or more Projects \r\n<li>activate the user account (an account must be active in order for the user to log in)\r\n</ul>\r\n</ol>\r\n\r\n<p>\r\n<center><img src=../images/Users.jpg></center>', 0, 'Users.php?scroll=no', 'Tab', 12, '2012-10-16 09:52:43', '2008-06-20 20:40:33', 'Add, modify, activate, deactivate user accounts'),
(1859, 522, 0, 'WebTop', '', 0, 51, NULL, 'Web Based Desk Top Environment', 'A WebTop is a web browser based desktop environment, designed to provide the functionality and, to the extent possible, the usability of a traditional desktop environment. \r\n<p> \r\nSee <a href=http://en.wikipedia.org/wiki/Web_desktop>Wikipedia</a>.\r\n<p>\r\nRelated items: <a href=http://en.wikipedia.org/wiki/SaaS>SaaS</a>, <a href=http://en.wikipedia.org/wiki/Web_2>Web 2.0</a>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Web Based Desk Top Environment'),
(50, 743, 0, 'Privacy', '', 0, 0, '', 'Privacy Statement', '<iframe name=tFrame\r\nsrc=Privacy.htm\r\nwidth=600 height=400>\r\n</iframe>', 0, 'Privacy.htm', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Privacy Statement'),
(49, 741, 0, 'Terms of use', '', 0, 0, '', 'Terms of use', '<iframe name=tFrame\r\nsrc=TermsOfUse.htm\r\nwidth=600 height=400>\r\n</iframe>', 0, 'TermsOfUse.htm', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Terms of use'),
(7, 241, 0, 'Reports', '0;2;1;3;4;', 1, 0, '', 'Reports Tree', 'This is the root tab for all reports. \r\n<dir><i>\r\nReports are Tabs which link to static or dynamically generated report output  containing Database summary information.  Reports Tabs should not be used to provide links to static Documents \r\n</i></dir>\r\n<p>\r\n Reports may be added or removed using the ReportAdmin tab available to authorized Users . ', 0, 'Reports.php?scroll=no', 'Rpt', 12, '2012-09-27 14:28:57', '2008-08-22 07:49:40', 'Reports Tree'),
(205, 631, 0, 'Links', '', 1, 0, '', 'Internal and External Links', 'The <b>Links</b> tab is the root folder for all links related to the current project. \r\n<p>\r\nUse the LinkAdmin tab to create new or modify attributes of Links . ', 0, 'Links.php?scroll=no', 'Link', 12, '2012-09-27 14:25:38', '2008-12-12 01:59:48', 'Internal and External Links'),
(206, 653, 0, 'LinkAdmin', '0; 2; 4; 3;1;', 1, 205, '', 'Link Administrator', 'The LinkAdmin tab enables adding, removing and re-ordering Links by users assigned the Programmer role. <p> You can publish any Link by referencing the Link in the target field. <p> The left panel of the LinkAdmin form enables you to see all the Links defined for your project.<br> You can add new Links by doing the following: <ol> <li>Click on the <b>Add</b> button <li>An item called <i>New Link</i> will appear at the bottom of the menu panel. <li>Click on <i>New Link</i> to select it <li>You can then edit any of the attributes of the Link tab <li>To save your updates, click on <b>Update</b> <li>The Description field also serves as <i>help</i> content. So, make sure that it is sufficient for that purpose. Use HTML to format the description. <li>Use the lower portion of the right panel to control where the Link will appear in the project sitemap. You can move the tab to a different parent. You can also move it to a particular place under a parent with multiple children using the up and down arrows. <li>Lastly, make sure the role-based security is set appropriately for the Link. </ol> \r\n<p>\r\nThe LinkAdmin is similar to the Tabs Admin shown below:\r\n<p>\r\n<center><img src=../images/Tabs.jpg></center>', 0, 'LinksAdmin.php?scroll=no', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Link Administrator'),
(59, 745, 0, 'Feedback', '0;2;1;3;4;', 1, 0, '', 'Report bugs, request features and provide feedback', 'The Feedback tab enables users to provide input regarding ProMan and project-specific application bugs, features and documentation in the form of Issues . \r\n<p>\r\nThe initial screen is a report listing of all Feedback issues in the system. <p>\r\n Users can edit existing issues (by clicking on the issue <b>Id</b>) or add new issues (by clicking on the <b>Create Child Issue</b> button) as appropriate. <p>\r\nFeedback issues are tracked in exactly the same manner as project schedule issues. This means there is a <i>creator, owner</i> and <i>assigned-to</i> user who receives notifications about updates to the issue. Milestones move from <i>Queued</i> to <i>Completed</i> at which point the Feedback issue is closed. \r\n<p>\r\n<img src=../images/Feedback.jpg>', 0, 'Feedback.php', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Report bugs, request features and provide feedback'),
(58, 740, 0, 'MyProfile', '0;2;1;4;3;', 1, 0, '', 'View or update contact information for your account', 'The MyProfile tab allows users to view and update their profiles. \r\n<p> \r\nThe information updated via the Profile tab is presented in the Contacts tab. \r\n<p> \r\nYou can update the following data using this tab: \r\n<ul> \r\n<li>Name \r\n<li>Address \r\n<ul> \r\n<li>Street \r\n<li>City \r\n<li>State \r\n<li>ZIP \r\n<li>Country \r\n</ul> \r\n<li>Phone number \r\n<li>Email \r\n<li>Unit (organization) \r\n</ul>\r\n<p>\r\n<img src=../images/MyProfile.jpg>', 0, 'Profile.php', 'Tab', 12, '2009-03-27 21:15:54', '2009-03-27 21:15:54', 'View or update contact information for your account'),
(52, 742, 0, 'Help', '', 0, 0, '', 'Wiki text on the current tab in the content pane', 'By clicking on the <img src=/images/help.gif height=20 width=20> button in the ProMan button pane you can view Wiki style documentation of the current item in the content pane.\r\n<p>\r\nIf you click twice on the <img src=/images/help.gif height=20 width=20> button you see this text.\r\n<p>\r\nIf the Wiki text for the current content pane item is insufficient or inaccurate, you can open the item for editing while viewing the Wiki Help .  This assumes you have appropriate Wiki editing privileges to the item.  Privileges equate to Roles which are assigned to registered ProMan Users .\r\n<p>\r\nUse the browser back button to refresh the content pane. \r\n<p>\r\n<img src=../images/Help.jpg>', 0, 'Help.php', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Wiki text on the current tab in the content pane'),
(5, 283, 0, 'Projects', '', 1, 0, '', 'List of ProMan Projects <img src=../images/ProMan.jpg width=18>', 'The Projects tab enables Users to select the ProMan project of interest.\r\n<dir><i>\r\nA project is a set of one or more activities requiring resources for the purpose of achieving one or more objectives.  ProMan provides computing resources giving the project a web presence, facilitating information disimination as well as addressing the project Schedule - all toward accomplishing the <b>project objectives</b>.\r\n</i></dir>\r\nThe public has access to the Home , Projects , Login/Logout and AccountRequest Tabs . \r\n<p> \r\n Users who are account holders may see additional Tabs once they are added as project members. <p> New Projects may be added to the list by Users with Admin privileges via the ProjectAdmin tab.\r\n<p>\r\n<center>\r\n   <iframe name=pframe frameborder=0\r\n      src=menu.php?tabnum=5\r\n      allowtransparency=~true~ width=240 height=265>\r\n   </iframe>\r\n<p>\r\n', 0, 'Projects.php?scroll=no', 'Proj', 12, '2012-09-27 14:49:15', '2010-09-21 22:34:16', 'List of ProMan Projects <img src=../images/ProMan.jpg width=18>'),
(4, 256, 0, 'Database', '0;', 1, 2, '', 'Administer the Database', 'The <b>Database</b> tab enables administrators to access the ProMan database from the web.  \r\n<dir><i>\r\nA Database is a collection of Tables where information are stored in an organized retrievable fashion.\r\n</i></dir>\r\n<a href=http://www.phpmyadmin.net>phpMyAdmin<a> is used for accessing the ProMan MySQL database.\r\n<p>\r\nSince this interface accesses the production database, care should be taken on any updates performed.\r\n<p>\r\nFor more information see the ProMan_Architecture and Database discussion. \r\n<p>\r\n<center><img src=../images/Database.jpg></center>', 0, '../phpMyAdmin/index.php&export=_BLANK', 'Tab', 12, '2010-01-03 16:09:01', '2010-01-03 16:09:01', 'Administer the Database'),
(2, 252, 0, 'Admin', '0;', 1, 0, '', 'Portal Adminstration Tools', 'The Admin tab provides a gateway by which administrator-only Tabs are accessed. When Tools are added to ProMan which should be restricted to User with Admin privileges, make them child tabs under Admin .\r\n<p>\r\n ProMan Users with Admin privilges have access to the following Tools under the Admin tab: \r\n<ul> \r\n<li>Create and modify Users accounts \r\n<li>Create and modify Tabs \r\n<li>Create and modify Roles \r\n<li>Administer the ProMan Database\r\n<li>Administer the ProMan System\r\n<li>Access the Questionnaire builder tool\r\n<li>Access the ControlSystem Tools\r\n<li>Access the DataEdits Tools\r\n</ul> \r\nNote: Projects are administered via the ProjectAdmin tab ', 0, '', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Portal Adminstration Tools'),
(1, 2, 0, 'Home', '', 1, 0, '', 'Portal Home Page by <b><i>ProMan</a></b> <img src=../images/ProMan.jpg width=20>', ' ProMan (short for <b>Pro</b>ject <b>Man</b>agement Portal) is designed to provide a high-performance standardized CMS / WebTop oriented web site for projects.\r\n<p>\r\nThe ProMan_Architecture takes advantage of LAMP technology making it fast, easy to deploy and easily extended.\r\n<p>\r\n ProMan offers several key `off-the-shelf` features served up to public as well as credentialized Users having specific Roles : \r\n<ol> \r\n<li><b>Public</b> (no account necessary) \r\n<ol> \r\n<li> Home \r\n<li> Projects \r\n<li> AccountRequest \r\n<li> Login/Logout \r\n<li> Links \r\n<li> Wiki \r\n</ol> \r\n<li><b>Registered Users</b> (holding a ProMan account) \r\n<ol> \r\n<li> Schedule \r\n<li> Calendar \r\n<li> Documents publisher \r\n<li> Reports publisher \r\n<li> Contacts List \r\n<li> Feedback \r\n<li> Tools \r\n<li> Links \r\n</ol> \r\n<li><b>Administrators</b> (super users via the Admin master tab) \r\n<ol>\r\n<li> Tabs manager \r\n<li> Users manager \r\n<li> Roles manager \r\n<li> Projects manager \r\n<li> Database \r\n<li> System \r\n<li> Questionnaire \r\n<li> DatabaseQuery \r\n<li> ControlSystem \r\n<li> DataEdits \r\n</ol> \r\n</ol> \r\nThese features are immediately available for loading a Projects content, i.e. no low-level PHP or Database programming required. \r\n<p> \r\nThe ProMan Admin assigns Roles to its username-password authenticated Users and assigns the Users to one or more Projects to allow or deny access as appropriate to the ProMan information and toolset. \r\n<p> \r\nIn order to heighten security on tab content, ProMan displays virtually all content in its content panel. \r\n<p> \r\nYou should use the browser`s back button to navigate back to previous windows when the tab you are working with has multiple content tiers. Clicking on the tab will return you to the bottom tier. \r\n<p>\r\n<img src=../images/Home.jpg>', 0, 'HomePage.php?scroll=no', 'Tab', 12, '2012-09-27 14:21:47', '2008-02-22 17:56:25', 'Portal Home Page by <b><i>ProMan</a></b> <img src=../images/ProMan.jpg width=20>'),
(544, 260, 0, 'System', '0;', 1, 2, NULL, 'WebMin System Administration', 'The System tab accesses the WebMin System Admin tool.\r\n<p>\r\n<center><img src=../images/System.jpg></center>', 0, 'https://www.lucasco.info:10000/&export=_BLANK', 'Tab', 12, '2010-01-03 16:13:00', '2010-01-03 16:13:00', 'WebMin System Administration'),
(213, 762, 0, 'Print', NULL, 0, 0, NULL, 'Print the content pane', 'In order to print the content pane click on the ProMan <img src=../images/print.jpg height=20> button.', 0, '', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Print the content pane'),
(1552, 257, 0, 'DatabaseQuery', '0;', 1, 4, NULL, 'Database Query Tool', 'The DatabaseQuery tab enables administrators to access the ProMan Database from the web.  Unlike the Database tool which has Admin privileges, DatabaseQuery may be made available to registered Users since it only allows read access to the Database . \r\n<p> \r\nSince this interface accesses the production Database, care should be taken on any updates performed. \r\n<p>\r\n<center><img src=../images/DatabaseQuery.jpg></center>', 0, 'GeneralQuery.php', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Database Query Tool'),
(1576, 12, 0, 'Purchase', '', 1, 0, NULL, 'Items for Purchase', '', 0, 'Purchases.php?scroll=no', 'Sell', 12, '2013-07-15 09:31:55', '2008-08-22 08:04:42', 'Items for Purchase');
INSERT INTO `Tabs` (`TabID`, `TabOrder`, `ProjectID`, `TabName`, `AuthorizedRoles`, `IsVisible`, `ParentId`, `ImageList`, `Title`, `Description`, `IsDeleted`, `TabTarget`, `TabType`, `TabOwner`, `LastUpdate`, `DateCreated`, `Keywords`) VALUES
(1581, 175, 0, 'PurchaseAdmin', '0;1;', 1, 1576, NULL, 'Purchase Admin', 'The PurchaseAdmin tab enables adding, removing and re-ordering purchaseable items by Registered users. <p> You can publish any Purchase item by referencing the item in the target field. <p> The left panel of the PurchaseAdmin form enables you to see all the items defined for your project.<br> You can add a new item by doing the following: <ol> <li>Click on the <b>Add</b> button <li>An item called <i>New Item</i> will appear at the bottom of the menu panel. <li>Click on <i>New Item</i> to select it <li>You can then edit any of the attributes of the tab <li>To save your updates, click on <b>Update</b> <li>The Description field also serves as <i>help</i> content. So, make sure that it is sufficient for that purpose. Use HTML to format the description. <li>Use the lower portion of the right panel to control where the item will appear in the project sitemap. You can move the tab to a different parent. You can also move it to a particular place under a parent with multiple children using the up and down arrows. <li>Lastly, make sure the role-based security is set appropriately for the item. </ol>\r\nThe PurchaseAdmin is similar to the Tabs admin shown below:<p>\r\n<center><img src=../images/Tabs.jpg></center>', 0, 'PurchasesAdmin.php?scroll=no', 'Tab', 12, '2008-08-22 08:04:33', '2008-08-22 08:04:33', 'Purchase Admin'),
(1595, 265, 0, 'Questionnaire', '0;', 1, 2, NULL, 'Web Forms Building Tool', 'The <b>Questionnaire</b> tab invokes the Questionnaire Builder tool for modifying or creating new forms.\r\n<p>\r\n<img src=../images/Questionnaire.jpg>\r\n<p>\r\n<iframe name=qFrame\r\nsrc=../Questionnaire/BuilderHelp.php\r\nwidth=500 height=400>\r\n</iframe>\r\n<p>\r\nTo install a Questionnaire form, create a Tab and reference the Questionnaire driver program in the target field.\r\n<p>\r\nExample: ../Questionnaire/index.php?Instrument=<i>your instrument</i>&Form=<i>your form</i>', 0, '../Questionnaire/builder.php&export=_BLANK', 'Tab', 12, '2012-03-01 09:35:57', '2008-06-20 20:40:33', 'Web Forms Building Tool'),
(1805, 527, 0, 'WikiListing', '', 0, 51, NULL, 'Custom Wiki Listing', '<?\r\n$tabid=$_SESSION[`TabId`];\r\n$Sstr=$_SESSION[`Sstring`];\r\nif ($Sstr <> "")\r\n   $SCond = " and (instr(Tabs.Description,`$Sstr`)>0 " .\r\n   	       "or instr(Tabs.Title,`$Sstr`)>0 " .\r\n   	       "or instr(Tabs.TabName,`$Sstr`)>0 " .\r\n   	         ") ";\r\nelse\r\n   $SCond = " ";\r\n$mw=$_SESSION[`Smw`];\r\n$filter=$SCond . $mw;\r\n$bycat="no";\r\necho "<iframe name=bframe scrolling=automatic";\r\necho " src=BlogList.php?tabid=$tabid,&filter=$filter&bycat=$bycat";\r\necho " width=100% height=400 >";\r\necho "</iframe>";\r\n?>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Custom Wiki Listing'),
(2440, 282, 0, 'SiteExplorer', '0;', 1, 2, NULL, 'Explore ProMan site', '<?\r\n$exte=$_REQUEST[`exte`];\r\n$clean=$_REQUEST[`clean`];\r\n$thit=$_SESSION[`PM_wHit`];\r\nif ($exte==1 and $clean==1) {$thit=$thit*1.3; $twid=600;}\r\nelseif ($exte==1) {$thit=$thit*1.15; $twid=600;} \r\nelseif ($clean==1) {$thit=$thit*.9; $twid=600;}\r\nelse {$thit=$thit/1.32; $twid=600;}\r\n//echo ~exte=$exte thit=$thit~;\r\n\r\necho `<iframe name=bFrame frameborder=0 src=../inc/DirList.php?dir=HTML&showdirs=TRUE&allowuploads=TRUE&allowedit=TRUE&exte=`,$exte,`&clean=`,$clean,`&divhit=` , $thit-120 , `px  scrolling=~no~ width=`,$twid,`px height=` , $thit , `px> </iframe>`;\r\n\r\n?>\r\n', 0, '', 'Tab', 12, '2014-12-23 20:26:27', '2013-04-15 08:14:49', 'Explore ProMan site'),
(247, 763, 0, 'Download', '0;', 0, 0, NULL, 'Save the content pane to a file', 'In order to save the content pane to disk click on the ProMan <img src=../images/disk.gif> button in the button pane at the top left of the portal.', 0, '', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Save the content pane to a file'),
(1629, 1, NULL, '', NULL, 1, 0, NULL, NULL, NULL, 0, NULL, 'Tab', 12, '2008-01-17 16:11:03', '2008-01-17 16:11:03', NULL),
(1631, 264, 0, 'SystemInfo', '0;', 1, 544, NULL, 'System Information', '<?\r\necho `<body style=~background-color:transparent~>`;\r\nphpinfo();\r\necho `<pre>`;\r\nPrint_r ($_SESSION);\r\necho `</pre>`;\r\n?>', 0, '', 'Tab', 12, '2015-11-13 21:34:47', '2008-06-20 20:40:33', 'System Information'),
(1637, 764, 0, 'ProjectContact', '', 1, 0, NULL, 'Project Contact Information', '<?\r\n$TABLEBORDER=0;\r\n$CELLPADDING=3;\r\n//$TABLEBGCOLOUR=`transparent`;\r\necho `<center><p><table border=0 bgcolor=DARKGREY><tr><td>`;\r\nif ($_SESSION[`UserId`]==~~)\r\nShowQueryResultBlock(~select ProjectName,ProjectDescription,FirstName,LastName,concat(`<a href=mailto:`,Email,`>`,Email,`<a>`) as Email from ProjectManagement.Projects,ProjectManagement.Users where\r\nProjectID=`$_SESSION[ProjectId]` and UserID=ProjectManagerId~);\r\nelse\r\nShowQueryResultBlock(~select ProjectName,ProjectDescription,FirstName,LastName,Street,City,Region,PostalCode,Country,concat(`<a href=mailto:`,Email,`>`,Email,`<a>`) as Email,Telephone from ProjectManagement.Projects,ProjectManagement.Users where\r\nProjectID=`$_SESSION[ProjectId]` and UserID=ProjectManagerId~);\r\necho `</td></tr></table>`;\r\n?>', 0, '', 'Tab', 12, '2012-10-01 10:23:56', '2010-12-12 00:43:39', 'Project Contact Information'),
(2431, 263, 0, 'SessionControl', '0;', 1, 544, NULL, 'Session control variable settings', '', 0, '../Questionnaire/index.php?Instrument=Administration&Form=Configuration&CaseId=-1&Ftmp=&Ctmp=&HFtmp=OK&iprmid=-1&Instance=0&scroll=no', 'Tab', 12, '2012-10-04 11:25:06', '2012-10-04 11:25:06', 'Session control variable settings'),
(1676, 544, 0, 'PHP', '', 0, 51, NULL, 'PHP Programming Language', '<iframe \r\nsrc=http://www.php.net\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'PHP Programming Language'),
(1681, 538, 0, 'MySQL', '', 0, 51, NULL, 'MySQL Database Server', '<iframe\r\nsrc=http://www.mysql.com\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'MySQL Database Server'),
(1682, 540, 0, 'ZIP', '', 0, 51, NULL, 'ZIP Code', '<iframe\r\nsrc=http://www.zipinfo.com/search/zipcode.htm\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'ZIP Code'),
(1683, 543, 0, 'URL', '', 0, 51, NULL, 'Uniform Resource Locator', '<iframe\r\nsrc=http://en.wikipedia.org/wiki/Uniform_Resource_Locator\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Uniform Resource Locator'),
(1679, 533, 0, 'CSV', '', 0, 51, NULL, 'Comma Separated Values', 'A file format where each column of data is separated by a comma.  In general use, the field separator may be a tab, pipe or other character.', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Comma Separated Values'),
(1680, 539, 0, 'GanTT', '', 0, 51, NULL, 'GanTT Chart', '<iframe\r\nsrc=http://en.wikipedia.org/wiki/Gantt_chart \r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'GanTT Chart'),
(1678, 535, 0, 'SQLServer', '', 0, 51, NULL, 'Microsoft SQL Server Database Server', '<iframe\r\nsrc=http://www.microsoft.com/sql/default.mspx\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Microsoft SQL Server Database Server'),
(1684, 542, 0, 'LAMP', '', 0, 51, NULL, '<b>L</b>inux <b>A</a>pache <b>M</b>ySQL <b>P</b>HP', ' LAMP is a bundle of system and service level software providing the foundation of some of the most powerful websites on the internet.\r\n<ul>\r\n<li><a href=http://www.linux.org>Linux</a> \r\n<li><a href=http://www.apache.org>Apache</a>  \r\n<li><a href=http://www.mysql.com>MySQL</a>  \r\n<li><a href=http://www.php.net>PHP</a>  \r\n</ul>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', '<b>L</b>inux <b>A</a>pache <b>M</b>ySQL <b>P</b>HP'),
(1686, 270, 0, 'ControlSystem', '0;', 1, 2, NULL, 'ProMan Control System', 'The ControlSystem tab enables\r\n<ul>\r\n<li> CS_Configuration for configuring the control system \r\n<li> CS_Case_Console for creating cases and updating case information \r\n<li> CS_Event_Console for updating case status \r\n<li> CS_Report_Console for accessing standard reports \r\n</ul>', 0, '', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'ProMan Control System'),
(1687, 271, 0, 'CS_Configuration', '0;', 1, 1686, NULL, 'Control System Configuration', 'The ControlSystem CS_Configuration tab enables CS_Processes and CS_Process_Events to be defined.  See the CS_Example .<p><center><img src=../images/CS_Configuration.jpg></center>', 0, '../Questionnaire/index.php?Instrument=ControlSystem&Form=CS_Processes&Ctmp=free', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Control System Configuration'),
(1688, 272, 0, 'CS_Case_Console', '0;', 1, 1686, NULL, 'Control System Case Console', 'The ControlSystem CS_Case_Console tab enables CS_Cases to be added, updated or deleted from the ControlSystem.<p><center><img src=../images/CS_Case_Console.jpg></center>', 0, '../Questionnaire/index.php?Instrument=ControlSystem&Form=CS_Case_Console&Ctmp=free', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Control System Case Console'),
(1689, 273, 0, 'CS_Event_Console', '0;', 1, 1686, NULL, 'Control System Event Console', 'The ControlSystem CS_Event_Console tab enables CS_Cases to be updated by one or more of the CS_Process_Events .<p><img src=../images/CS_Event_Console.jpg>', 0, '../Questionnaire/index.php?Instrument=ControlSystem&Form=CS_Event_Console&Ctmp=free', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Control System Event Console'),
(1690, 274, 0, 'CS_Report_Console', '0;', 1, 1686, NULL, 'Control System Report Console', 'The ControlSystem CS_Report_Console tab provides standard reports for CS_Cases relative to CS_Processes and CS_Process_Events.\r\n<p>\r\nSome of the standard reports are:\r\n<ul>\r\n<li>Current Status \r\n<li>Ever At \r\n<li>Pending Cases \r\n<li>Delinquent Cases\r\n</ul>\r\n<p>\r\n<img src=../images/CS_Report_Console.jpg>', 0, '../Questionnaire/index.php?Instrument=ControlSystem&Form=CS_Report_Console&Ctmp=free', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Control System Report Console'),
(1691, 275, 0, 'DataEdits', '0;', 1, 2, NULL, 'Data Edits', 'The DataEdits tab provides access to:\r\n<ul>\r\n<li>the DataEditFailures report,\r\n<li>the EditCase tool for resolving edits on a per case per question basis, and\r\n<li>the ReapplyEdits tool for resolving edits across all cases. \r\n</ul>\r\n<p>\r\n', 0, '', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Data Edits'),
(1692, 277, 0, 'EditCase', '0;', 1, 1691, NULL, 'Edit Fail-Edit Items for a Case', 'The DataEdits EditCase tool allows you to access a fail-edit item for a case, update a problematic response value and reapply the edit logic to reset edit failure flags.', 0, '../Questionnaire/index.php?Instrument=EditResolution&Form=EditResolution0&Ftmp=&Ctmp=free', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Edit Fail-Edit Items for a Case'),
(1693, 278, 0, 'ReapplyEdits', '0;', 1, 1691, NULL, 'Reapply Edits', 'The DataEdits ReapplyEdits tool enable administrators to reapply edits to fail-edit cases after a modification to edit logic has been done. \r\n<p>\r\nEach case with one or more fail-edits will be processed.  Cases which had no fail-edits will be ignored.', 0, '../Questionnaire/index.php?Instrument=EditResolution&Form=EditResolutionBatch&Ftmp=&Ctmp=free', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Reapply Edits'),
(1609, 306, 0, 'Blog', '', 1, 0, NULL, 'ProMan Blog', '<b>General</b><dir>The ProMan Blog is built on the same technology as the ProMan Wiki using Tabs as the basic unit of information.</dir><b>Entries</b><dir>In the ProMan Blog there are several Blog categories that have been set up by the System Admin .  Categories may be added, modified or deleted using the BlogAdmin tool.<p> Blog entries may be added by registered Users under any of the pre-defined categories.<p>Registered Users may add comments to any Blog entry by clicking on the <img src=../images/new.gif> button.  To register click on the AccountRequest tab at the top.</dir><p>See the Wiki documentation for information on searching, editing and adding new entries in the Blog .', 0, 'Blog.php?scroll=no', 'Blog', 12, '2012-11-16 10:43:49', '2008-06-20 20:40:33', 'ProMan Blog'),
(1695, 545, 0, 'HTML', '', 0, 51, NULL, 'Hyper Text Markup Language', '<iframe\r\nsrc=~http://en.wikipedia.org/wiki/HTML~\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2014-10-01 06:35:32', '2008-12-12 01:59:48', 'HyperText Markup Language'),
(1697, 541, 0, 'MSProject', '', 0, 51, NULL, 'Microsoft Project', '<iframe\r\nsrc=http://en.wikipedia.org/wiki/Microsoft_Project\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Microsoft Project'),
(1808, 526, 0, 'WikiAdmin', '0;', 1, 51, NULL, 'Wiki Adminstration Tool', 'The WikiAdmin tab enables adding, removing and re-ordering Wiki items by Users assigned the Programmer role. \r\n<p>\r\nThe left panel of the WikiAdmin form enables you to see all the Wiki items defined for your project.<br>\r\nYou can add new Wiki items by doing the following:\r\n<ol>\r\n<li>Click on the <b>Add</b> button\r\n<li>An item called <i>New Tab</i> will appear at the bottom of the menu panel.\r\n<li>The <i>New Tab</i> is automatically selected for editing.\r\n<li>You can then enter or change any of the attributes of the Wiki tab\r\n<li>To upload a Wiki document and associate it with your new tab:\r\n<ul>\r\n<li>Click on the binoculars\r\n<li>A <i>File Upload</i> dialog will pop up.\r\n<li>Click on <i>Browse</i> to locate the document you wish to updload\r\n<li>Click on <i>Upload</i> to upload the document to the project upload site\r\n<li>Click on <i>Continue</i> after the file has been uploaded\r\n<li>Click on <i>Update</i> to save the uploaded file name to the tab\r\n<ul>\r\n<li>Once a file name appears in the target field clicking on the binoculars will display the target\r\n<li>To upload a new file, you must clear the target field and click on <i>Update</i>.\r\n</ul>\r\n</ul>\r\n<li>To save your updates, click on <b>Update</b>.\r\n<li>The Description field also serves as <i>help</i> content.  So, make sure that it is sufficient for that purpose.  Use HTML to format the description.\r\n<li>Use the lower portion of the right panel to control where the report will appear in the project sitemap.  You can move the tab to a different parent.  You can also move it to a particular place under a parent with multiple children using the up and down arrows.\r\n<li>Lastly, make sure the role-based security is set appropriately for the report.\r\n</ol>\r\n<p>\r\nThe WikiAdmin is similar to the Tabs Admin shown below:\r\n<p>\r\n<center><img src=../images/Tabs.jpg></center>', 0, 'WikiAdmin.php?scroll=no', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Wiki Adminstration Tool'),
(53, 765, 0, 'EditTab', '0;', 0, 0, NULL, 'ProMan tab editor', ' EditTab is an invisible tab which opens a ProMan tab for editing.  It is invoked by the various ProMan Admin tools for the following entities: Tabs , Documents , Reports , Links , Projects , Tools and Blog .', 0, 'EditTab.php', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'ProMan tab editor'),
(1734, 562, 0, 'CMS', '', 0, 51, NULL, 'Content Management System', '<iframe name=cFrame\r\nsrc=http://en.wikipedia.org/wiki/Content_management_system \r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Content Management System'),
(1706, 547, 0, 'CS_Processes', '', 0, 51, NULL, 'Control System Processes', 'A process in ControlSystem usage is a set of CS_Process_Events which occur over time for which CS_Cases move. A CS_Example is available.\r\n', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Processes'),
(1707, 546, 0, 'CS_Process_Events', '', 0, 51, NULL, 'Control System Process Event', 'A CS_Processes event involves a distinct orchestrated action that occurs with respect to one or more CS_Cases . <p>\r\n CS_Process_Events have the following attributes:\r\n<ul>\r\n<li> CS_Event_ID  \r\n<li> CS_Event_Description \r\n<li> CS_Process_ID \r\n<li> CS_Event_Power \r\n<li> CS_Event_Order \r\n<li> CS_Event_Duration \r\n<li> CS_Event_Path \r\n<li> CS_Event_Exclusive \r\n<li> CS_Event_Logic \r\n</ul>\r\n<p>\r\nSee the CS_Example .', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Process Event'),
(1708, 552, 0, 'CS_Cases', '', 0, 51, NULL, 'Control System Cases', 'ControlSystem cases are entities which are intitiated, processed and closed out with respect to CS_Processes and their associated CS_Process_Events .  See the CS_Example .', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Cases'),
(1709, 551, 0, 'CS_Example', '', 0, 51, NULL, 'Control System Example', '<table border=1>\r\n<tr>\r\n<td>Process:</td><td> <b>Make a sale</b></td>\r\n</tr>\r\n<tr>\r\n<td>\r\nEvents:\r\n</td>\r\n<td>\r\n<ul>\r\n<li>Contact a client\r\n<li>Place an order\r\n<li>Develop the product\r\n<li>Ship the product\r\n<li>Follow up with the client\r\n</ul>\r\n</td>\r\n</tr>\r\n</table>\r\n<hr>\r\nOf course, there are many other steps involved which the ControlSystem may be configured to monitor. ', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Example'),
(1710, 550, 0, 'CS_Event_ID', '', 0, 51, NULL, 'Control System Event Identifier', 'The ControlSystem event identifier is a unique integer assigned to CS_Process_Events .', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Event Identifier'),
(1711, 549, 0, 'CS_Event_Description', '', 0, 51, NULL, 'Control System Event Description', 'The ControlSystem event description explains the action performed on CS_Cases .', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Event Description'),
(1712, 548, 0, 'CS_Process_ID', '', 0, 51, NULL, 'Control System Process Identifier', 'The ControlSystem process identfier is a unique identifier associated with each of the CS_Processes.  Each of the CS_Process_Events is associated with exactly one of the CS_Processes .', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Process Identifier'),
(1713, 558, 0, 'CS_Event_Power', '', 0, 51, NULL, 'Control System Event Power', 'Each of the ControlSystem CS_Process_Events has a power attribute with the following values:\r\n<ul>\r\n<li>0 - <b>no power</b> - (pending event which must obey the process order with no duplication and no reverting)\r\n<li>1 - <b>revertible</b> - (pending event which may update a later event in the process)\r\n<li>2 - <b>duplicable</b> - (pending event which may repeat, looping back to an earlier state)\r\n<li>3 - <b>final</b> - (final event - nothing more happens to the case)\r\n</ul>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Event Power'),
(1714, 557, 0, 'CS_Event_Order', '', 0, 51, NULL, 'Control System Event Order', 'The ControlSystem event order describes the chronological occurrence of CS_Process_Events within CS_Processes .  This order is enforced by the ControlSystem event validator at time of posting.', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Event Order'),
(1715, 556, 0, 'CS_Event_Duration', '', 0, 51, NULL, 'Control System Event Duration', 'The ControlSystem event duration represents the number of days for which CS_Process_Events may be current before they expire.  \r\n<p>\r\nThe CS_Report_Console provides a reporting listing all the CS_Cases that have expired by each of the CS_Processes for each of the pending CS_Process_Events .', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Event Duration'),
(1716, 555, 0, 'CS_Event_Path', '', 0, 51, NULL, 'Control System Event Path', 'The ControlSystem event path is a list of CS_Process_Events which <i>must</i> have occurred before the <b>event in question</b> may be posted to CS_Cases .  \r\n<p>\r\nThe ControlSystem checks the CS_Process_Events history to see if the one of the CS_Event_Path events has occurred.  If it has, the <b>event in question</b> may be posted.  Otherwise, the <b>event in question</b> is rejected with <i>Path Violation</i> error.', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Event Path'),
(1717, 554, 0, 'CS_Event_Exclusive', '', 0, 51, NULL, 'Control System Event Exclusive', 'The ControlSystem event exclusive list of CS_Process_Events which <i>must not</i> have occurred before the <b>event in question</b> may be posted to CS_Cases .\r\n<p>\r\nThe ControlSystem checks the CS_Process_Events history to see if the and of the CS_Event_Exclusive events have occurred.  If none have, the <b>event in question</b> may be posted.  Otherwise, the <b>event in question</b> is rejected with <i>Exclusive Violation</i> error.', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Event Exclusive'),
(1718, 553, 0, 'CS_Event_Logic', '', 0, 51, NULL, 'Control System Event Logic', 'The ControlSystem event logic is PHP programming code which further checks the validity of incoming CS_Process_Events before the <b>event in question</b> may be posted to CS_Cases .\r\n<p>\r\nThe ControlSystem executes the CS_Event_Logic for the incoming event.  If the logic check passes, the <b>event in question</b> may be posted.  Otherwise, the <b>incoming event</b> is rejected with <i>Logic Violation</i> error.', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Control System Event Logic'),
(1719, 276, 0, 'DataEditFailures', '0;', 1, 1691, NULL, 'Data Edit Failure Listing', '<?\r\nglobal $LINENUMBERS;$LINENUMBERS=1;\r\n$orderby=$_REQUEST[`orderby`];\r\nif ($orderby==~~) $orderby=~ CaseID, fID, qOrder  ~;\r\necho ~<center>As of: <b>~,Now().~</b></center>~;\r\nif (ShowQueryResultScalar(~SELECT count(*) from  Responses WHERE isDeleted=0 and rOK=0 and CaseID<>-1~)==0)   echo ~<p>There are no edit failures~;\r\nelse   ShowQueryResult(~SELECT CaseID, FormQuestions.fID, ResponsesDecoded.qID, tText as Value, qPostLogic FROM ResponsesDecoded,Questions,FormQuestions WHERE isDeleted=0 and rOK=0 and CaseID<>-1 and Questions.qID=ResponsesDecoded.qID and FormQuestions.qID=ResponsesDecoded.qID order by $orderby~);\r\n?>', 0, '', 'Tab', 12, '2013-04-15 08:17:38', '2008-06-20 20:40:33', 'Data Edit Failure Listing'),
(1720, 528, 0, 'ProMan_Architecture', '', 0, 51, NULL, 'Project Management Portal Architecture', ' <b>ProMan_Rationale</b> \r\n<dir>\r\nProMan fits the need for a fast, reliable, configurable, secure web content management system easily adaptable to a variety or project needs.\r\n</dir>\r\n<b>Operating System and Services</b>\r\n<dir>\r\nLAMP is the foundation for ProMan .\r\n</dir> \r\n <b>Database</b> \r\n<dir>\r\n ProMan employs three MySQL databases for managing the following data segments:\r\n<ol>\r\n<li> Core Administrative Data including Projects , Users , Roles and Tabs \r\n<li> Project-specific web-forms-based Questionnaire data\r\n<li> Blog data \r\n</ol>\r\n</dir>\r\n<b>Interface</b>\r\n<dir>\r\n<b>Design</b>\r\n<dir>\r\nThe ProMan interface makes heavy use of frames to give a <i>desktop</i> effect for its Users :\r\n<ul>\r\n<li><b>main</b> frame\r\n<li><b>header</b> frame\r\n<li><b>button</b> frame\r\n<li><b>menu</b> frame\r\n<li><b>content</b> frame\r\n<li><b>footer</b> frame\r\n</ul>\r\nProMan uses transparent backgrounds for child frames so that the graphical backgrounds selected by Projects carry from the main frame to the content frame throughout internal portal navigation.\r\n</dir>\r\n<b>Navigation</b>\r\n<dir>\r\nAll menu selected content is displayed in the content frame.  \r\n<p>\r\nButtons are provided to facilitate printing and save-as operations.\r\n<p>\r\n  ProMan provides an <i>export-Content</i> tool allowing Users to export the content pane to a separate browser window.  This is generally discouraged because of adverse effects on session variables child windows are closed but is provided as a `creature comfort`.\r\n</dir>\r\n<b>Skins</b>\r\n<dir>\r\nThere are three basic menu skins to choose from:\r\n<ol>\r\n<li>Explorer style menu\r\n<li>Cascading vertical menu\r\n<li>Cascading horizontal menu\r\n</ol> \r\nProjects may select either of the above menu skins.  Furthermore they can provide their own graphical background images or use the default.\r\n</dir>\r\n</dir>\r\n<b>Configuration</b>\r\n<dir>\r\n Users with Admin privileges may administer ProMan Projects via the web using ProMan , WebMin and PhpMyAdmin tools.  This includes configuring the Database , Projects , Roles , Users and Tabs .\r\n</dir>\r\n<b>Security</b>\r\n<dir>\r\nAll Users are credentialized from a single point from segment 1 data.  Once Users are logged into ProMan , they may traverse all applications in the project menu.  Furthermore, Users may switch among Projects without having to re-credentialize.\r\n<p>\r\nAll text data entered into ProMan forms are sanitized before being inserted into the Database to eliminate <i>SQL injection</i> problems.\r\n</dir>\r\n</dir>\r\n', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Project Management Portal Architecture'),
(1721, 534, 0, 'JS', '', 0, 51, NULL, 'Java Script', '<iframe name=jFrame\r\nsrc=http://www.javascript.com\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Java Script'),
(1722, 536, 0, 'OpenSource', '', 0, 51, NULL, 'Open Source Architecture', '<iframe name=oFrame\r\nsrc=http://www.opensource.org\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Open Source Architecture'),
(1723, 537, 0, 'WebMin', '', 0, 51, NULL, 'WebMin Server Administration', '<iframe name=wFrame\r\nsrc=http://www.webmin.com \r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'WebMin Server Administration'),
(1724, 530, 0, 'PhpMyAdmin', '', 0, 51, NULL, 'PHP MySQL Database Administrator', '<iframe name=pFrame\r\nsrc=http://www.phpmyadmin.net \r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'PHP MySQL Database Administrator'),
(1725, 524, 0, 'WikiWords', '', 0, 51, NULL, 'Words that generate dynamic Wiki hyperlinks ', 'A Wiki word is a string of contiguous characters with a leading blank and trailing blank, containing no periods, commas, tabs, carriage returns, line feeds or HTML anchors <b>having its first letter capitalized with one or more other letters capitalized</b>.\r\n<p>\r\nSuch words must have an existing Tabs record or one will be created for it on the fly.\r\n<p>\r\nIf a documented Tabs record already exists for the word, the word will automatically be anchored.\r\n<p>\r\nIf no documented Tabs record exists for the word, one will be created on the fly and a <b>(?)</b> will be placed to the right of the word indicating it needs documentation.', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Words that generate dynamic Wiki hyperlinks '),
(1730, 559, 0, 'Tables', '', 0, 51, NULL, 'Database Tables', 'A Table is a collection of Rows and Columns .  Tables are stored in a Database .', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Database Tables'),
(1731, 561, 0, 'Columns', '', 0, 51, NULL, 'Database Table Row Column', 'A column is an attribute of an entity.  It typically contains the most granular level of information about the entity.  Columns are stored in Rows . ', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Database Table Row Column'),
(1732, 560, 0, 'Rows', '', 0, 51, NULL, 'Database Table Rows', 'A row is a collection of Columns related to a  specific entity.  An entity may be any thing which needs several pieces of information ( Columns ) to adequately describe it.  Rows are stored in Tables .', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Database Table Rows'),
(1733, 258, 0, 'ResponsesQuery', '0;', 1, 1552, NULL, 'Questionnaire Responses Query Tool', 'The ResponsesQuery tab enables access to the ProMan Questionnaire Database Responses table from the web.  The ResponsesQuery tool presents the normalized Responses table in a more logical fashion.  I.E. logically related response value may be viewed as Rows corresponding to Cases .  Similar to the DatabaseQuery tool, ResponsesQuery has two levels of access.  For Users with Admin Roles the tool allows for free-form query construction via a text window.  Whereas for other registered Users is provides query construction via menus only forcing the resultant query to be read only. \r\n<p> \r\nSince this interface accesses the production Database, care should be taken on any updates performed. \r\n<p>\r\n<center><img src=../images/ResponsesQuery.jpg></center>', 0, '../Questionnaire/ResponsesQuery.php', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Questionnaire Responses Query Tool'),
(1757, 532, 0, 'ProMan_Rationale', '', 0, 51, NULL, 'Rationale for ProMan', 'The main objectives factoring into the design of ProMan are:\r\n<ul>\r\n<li>performance\r\n<li>simplicity\r\n<li>reliability\r\n<li>adaptibility\r\n<li>portability\r\n<li>supportability\r\n<li>configurability\r\n<li>security\r\n</ul>\r\nAs a result, ProMan is built on LAMP technology.\r\n<p>\r\nI have had several difficult (to put it kindly) experiences with Microsoft .NET. web portals (some of the programming I did, most I did not).  In the discussion below I will compare ProMan with the .NET experience.\r\n<p>\r\n<b>Performance</b>\r\n<dir>\r\nThe .NET portals were extremely clunky. The first user who hit the site after a server reboot would often wait 20 minutes for .NET to load all its paraphernalia and finally serve up the main page.  Even after the home page was loaded, there was often seconds involved in posting a selected form.\r\n<p>\r\nProMan starts instantaneously, even when using graphical backgrounds for its various frames.  If a page doesn`t <b>pop</b> I immediately suspect the database query and go about optimizing it.  PHP on Apache rocks!\r\n</dir>\r\n<b>Simplicity</b>\r\n<dir>\r\n.NET developers <b>always</b> took 10 times longer to develop any application than it does in PHP.\r\n<p>\r\nThe ProMan code is concise taking advantage of the robust PHP function library. At this moment (2008-01-04) the ProMan PHP , JS and image files are less than 1.3MB with .5MB being images!  With such a small amount of code you get all the features described in its self-contained Wiki .\r\n</dir>\r\n<b>Reliability</b>\r\n<dir>\r\nI have ProMan running on 4 servers in the United States and 1 in the Ukraine.  The portals on these servers just keep running and running and running. \r\n</dir>\r\n<b>Adaptability</b>\r\n<dir>\r\n Since ProMan runs on PHP and JS , you could even put it on a Windows box (heaven forbid). \r\n</dir>\r\n<b>Portability</b>\r\n<dir>\r\n ProMan can be installed on a new box and be up and running in less time than the average .NET programmer can start a new project, develop it and deploy it on their server.\r\n</dir>\r\n<b>Maintainability</b>\r\n<dir>\r\n Any PHP programmers out there?  The ProMan code is obviously a quick read based on its size.  \r\n<p>\r\nIt`s OpenSource ! \r\n<p>\r\nPhpMyAdmin and WebMin are integrated into ProMan allowing full web-based maintenance of the server, its services and ProMan.\r\n</dir>\r\n<b>Configurability</b>\r\n<dir>\r\nThe Admin tools in ProMan are kick-butt.  I am an application server oriented developer.  You can bet that adding, deleting and modifying ProMan features can be done directly using its own tools (over the web!). \r\n</dir>\r\n<b>Security</b>\r\n<dir>\r\n ProMan leans heavily on the robust security features of a well-configured LAMP server.\r\n</dir>', 0, '', 'Wiki', 12, '2009-03-11 21:43:33', '2009-03-11 21:43:33', 'Rationale for ProMan'),
(1758, 531, 0, 'SQL', '', 0, 51, NULL, 'Structured Query Language', '<iframe name=sFrame\r\nsrc=http://www.sql.org \r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Structured Query Language'),
(1764, 307, 0, 'BlogAdmin', '0;1;2;', 1, 1609, NULL, 'Blog Administrator', 'The BlogAdmin tab enables adding, removing and re-ordering Blog items by Users assigned the Admin role. \r\n<p>\r\nThe left panel of the BlogAdmin form enables you to see all the Blog items defined for your project.<br>\r\nYou can add new Blog items by doing the following:\r\n<ol>\r\n<li>Click on the <b>Add</b> button\r\n<li>An item called <i>New Tab</i> will appear at the bottom of the menu panel.\r\n<li>The <i>New Tab</i> is automatically selected for editing.\r\n<li>You can then enter or change any of the attributes of the Blog tab\r\n<li>To upload a Blog document and associate it with your new tab:\r\n<ul>\r\n<li>Click on the binoculars\r\n<li>A <i>File Upload</i> dialog will pop up.\r\n<li>Click on <i>Browse</i> to locate the document you wish to updload\r\n<li>Click on <i>Upload</i> to upload the document to the project upload site\r\n<li>Click on <i>Continue</i> after the file has been uploaded\r\n<li>Click on <i>Update</i> to save the uploaded file name to the tab\r\n<ul>\r\n<li>Once a file name appears in the target field clicking on the binoculars will display the target\r\n<li>To upload a new file, you must clear the target field and click on <i>Update</i>.\r\n</ul>\r\n</ul>\r\n<li>To save your updates, click on <b>Update</b>.\r\n<li>The Description field also serves as <i>help</i> content.  So, make sure that it is sufficient for that purpose.  Use HTML to format the description.\r\n<li>Use the lower portion of the right panel to control where the report will appear in the project sitemap.  You can move the tab to a different parent.  You can also move it to a particular place under a parent with multiple children using the up and down arrows.\r\n<li>Lastly, make sure the role-based security is set appropriately for the report.\r\n</ol>\r\n<p>\r\nThe BlogAdmin is similar to the Tabs Admin shown below:\r\n<p>\r\n<center><img src=../images/Tabs.jpg></center>', 0, 'BlogAdmin.php?scroll=no', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Blog Administrator'),
(1810, 248, 0, 'GuestBook List', '', 1, 7, NULL, 'Guest Book Listing Report', '<?global $NOSORT;$NOSORT=1;$pid=$_SESSION[`ProjectId`];if ($pid=="") $pid=0;if (ShowQueryResultScalar("select count(*) from GuestBook where ProjectId=$pid")==0)   echo "No guestbook entries for " , ShowQueryResultScalar("select ProjectName from Projects where ProjectId=$pid");else   ShowQueryResult("select * from GuestBook where ProjectId=$pid");?>', 0, '', 'Rpt', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Guest Book Listing Report'),
(1856, 567, 0, 'Navigate', '', 0, 51, NULL, 'ProMan Navigation', 'Along with performance and functionality, usability is major ProMan goal.  Accordingly, ProMan provides several ways to Navigate .\r\n<p>\r\n<ul>\r\n<li><b>Buttons Menu</b><br>Depending on the ProMan style for your project these buttons may be clustered at the top left of the ProMan page or spread down the left panel.  You can hover over each of the buttons to see what action is associated with them.<br>\r\n<img src=../images/ButtonsMenu.jpg>\r\n<p>\r\n<li><b> Tabs Menu</b><br>The Tabs menu provides statically defined Project specific role-based menu items.<br><img src=../images/TabsMenu.jpg>\r\n<p>\r\n<li><b>Footprints Menu</b><br>The <img src=../images/footprint.gif height=20> button updates the footprints or breadcrumbs list.  <br>Right click on the Tabs Menu area to pop up the footprints menu at any time.<br>Richt click on the content pane to pop up the footprints menu at any time.<br><img src=../images/FootPrintsMenu.jpg>\r\n<p>\r\n<li><b> Wiki Search Menu</b><br>Click on the <img src=../images/search.gif height=20> button to open the Wiki Search Menu.\r\n<br><img src=../images/Wiki.jpg>\r\n<p>\r\n<li><b> WikiWords </b><br>These are hyper-links embedded in the Wiki pages.\r\n<p>\r\n<li><b> Browser Back and Forward buttons</b><br>These may be used to Navigate internal or extenal HTML links in the content pane.\r\n</ul>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'ProMan Navigation'),
(1813, 753, 0, 'VectorGraphicsChart', '0;', 1, 104, NULL, 'Vector graphics chart', 'The VectorGraphicsChart shows the classes and their vector graphics effects.  These classes may be referenced on any ProMan screen.', 0, '../inc/VectorGraphicsChart.htm', 'Tool', 12, '2010-01-16 17:52:22', '2010-01-16 17:52:22', 'Vector graphics chart'),
(1818, 262, 0, 'DeBug_View', '0;', 1, 544, NULL, 'ProMan debug viewer', '<?\r\nglobal $NOSORT;\r\n$NOSORT=1;\r\nShowQueryResult("select * from DeBug order by dUnique DESC");\r\n?>', 0, '', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'ProMan debug viewer'),
(1819, 261, 0, 'DeBug_Clear', '0;', 1, 544, NULL, 'Clear ProMan debug information', '<?\r\nExecuteSQL("delete from DeBug");\r\necho "<br><center><h1>Debug information deleted</h1>";\r\n?>', 0, '', 'Tab', 12, '2008-06-20 20:40:33', '2008-06-20 20:40:33', 'Clear ProMan debug information'),
(1830, 767, 0, 'BookAdmin', '0;4;3;1;2;', 1, 1829, NULL, 'BookMarks Administrator', 'The BookAdmin tab enables adding, removing and re-ordering BookMarks by registered Users . \r\n<p>\r\nThe left panel of the BookAdmin form enables you to see all the BookMarks you have defined.<br>\r\nYou can add new BookMarks by doing the following:\r\n<ol>\r\n<li>Click on the <b>Add</b> button\r\n<li>An item called <i>New Tab</i> will appear at the bottom of the menu panel.\r\n<li>The <i>New Tab</i> is automatically selected for editing.\r\n<li>You can then enter or change any of the attributes of the BookMarks tab\r\n<li>To upload a BookMarks document and associate it with your new tab:\r\n<ul>\r\n<li>Click on the binoculars\r\n<li>A <i>File Upload</i> dialog will pop up.\r\n<li>Click on <i>Browse</i> to locate the document you wish to updload\r\n<li>Click on <i>Upload</i> to upload the document to the project upload site\r\n<li>Click on <i>Continue</i> after the file has been uploaded\r\n<li>Click on <i>Update</i> to save the uploaded file name to the tab\r\n<ul>\r\n<li>Once a file name appears in the target field clicking on the binoculars will display the target\r\n<li>To upload a new file, you must clear the target field and click on <i>Update</i>.\r\n</ul>\r\n</ul>\r\n<li>To save your updates, click on <b>Update</b>.\r\n<li>The Description field also serves as <i>help</i> content.  So, make sure that it is sufficient for that purpose.  Use HTML to format the description.\r\n<li>Use the lower portion of the right panel to control where the report will appear in the project sitemap.  You can move the tab to a different parent.  You can also move it to a particular place under a parent with multiple children using the up and down arrows.\r\n<li>Lastly, make sure the role-based security is set appropriately for the report.\r\n</ol>\r\n<p>\r\nThe BookAdmin is similar to the Tabs Admin shown below:\r\n<p>\r\n<center><img src=../images/Tabs.jpg></center>', 0, 'BookMarksAdmin.php?scroll=no', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'BookMarks Administrator'),
(1858, 781, 0, 'ProManUpdates', '', 0, 0, NULL, 'Listing of ProMan Updated Tabs', '<?\r\nglobal $NOSORT;\r\n$NOSORT=1;\r\n$ProjectId=$_SESSION[`ProjectId`];\r\nShowQueryResult("select concat(`<a href=javascript:window.parent.SetTab(51,`,Tabs.TabID,`);>`, Title,`</a>`) as Title,LastUpdate,concat(`<a href=mailto:`,Email,`>`,Username,`</a>`) as Username from Tabs, Users where UserId=TabOwner and ProjectId in (`0`,`$ProjectId`) order by LastUpdate DESC,Username DESC");\r\n?>', 0, '', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Listing of ProMan Updated Tabs'),
(1864, 570, 0, 'SQLCE', '', 0, 51, NULL, 'Microsoft SQL Server Compact Edition', '', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Microsoft SQL Server Compact Edition'),
(1865, 569, 0, 'SDF', '', 0, 51, NULL, 'Small Device Format', '', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Small Device Format'),
(1866, 568, 0, 'DLL', '', 0, 51, NULL, 'Dynamic Load Library', '', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Dynamic Load Library'),
(1888, 754, 0, 'GooglePurchase', '0;', 1, 104, NULL, 'Generate Google page for finding purchaseble items', '<?\r\nglobal $NOSORT;\r\n$NOSORT=1;\r\necho $crlf;\r\necho `<!-- priority 0.4 -->`;\r\necho $crlf;\r\necho `<!-- changefreq weekly -->`;\r\necho $crlf;\r\necho `<html xmlns=~http://www.w3.org/1999/xhtml~ xml:lang=~en~ lang=~en~>`;\r\necho $crlf;\r\necho `<head>`;\r\necho $crlf;\r\necho `<title>LucasCo HTML Sitemap</title>`;\r\necho $crlf;\r\necho `<meta name=~description~ content=~HTML sitemap for non-XML web spiders~ >`;\r\necho $crlf;\r\necho `<meta name=~keywords~ content=~html sitemap~ >`;\r\necho $crlf;\r\necho `<meta http-equiv=~Content-Type~ content=~text/html charset=iso-8859-1~ >`;\r\necho $crlf;\r\necho `<link href=~http://www.LucasCo.info/~ rel=~index~ >`;\r\necho $crlf;\r\necho `</head>`;\r\necho $crlf;\r\necho `<body><center>`;\r\necho $crlf;\r\n$sql=~select concat(`<a href=http://www.lucasco.info/ProjectManagement/Help.php?iprm=`,TabID,` target=_BLANK>`,TabName,`</a>`) as Title from Tabs where TabType in (`Sell`,`Blog`,`Proj`) order by TabName~;\r\nShowQueryResult($sql);\r\necho $crlf;\r\necho `</body>`;\r\necho $crlf;\r\necho `</html>`;\r\n\r\n$sql=~select concat(`http://www.lucasco.info/ProjectManagement/Help.php?iprm=`,TabID,`~ . `&` . ~ttl=`,Title,`~ . `&` . ~kw=`,Keywords,`/`) as Title, substring(LastUpdate,1,10) as LastUpdate from Tabs where TabType in (`Sell`,`Blog`,`Proj`) and AuthorizedRoles=`` order by ProjectId, TabType, TabName~;\r\n$res=GetResultset($sql);\r\nif ($res)\r\n  {\r\n//echo `<br>records found`;\r\n    $fp = fopen(`/var/www/html/SiteMap.txt`,`w`);\r\n    fwrite($fp,`http://www.lucasco.info/`.~\r\n~);\r\n    fwrite($fp,`http://www.lucasco.info/Randy/`.~\r\n~);\r\n    fwrite($fp,`http://www.lucasco.info/static/`.~\r\n~);\r\n    while ($row = mysql_fetch_assoc($res))\r\n      {\r\n        fwrite($fp,strip_tags($row[`Title`]).~\r\n~);\r\n      }\r\n    fclose($fp);\r\n  }\r\n\r\n?>', 0, '', 'Tool', 12, '2014-03-18 16:59:20', '2010-01-24 17:55:20', 'Generate Google page for finding purchaseble items'),
(2073, 749, 0, 'IssueReport', '0;2;1;3;4;', 0, 0, NULL, 'View information about a specific issue', 'The IssueReport tab is a hidden tab allowing a link to a specific Issue . \r\n', 0, 'IssueReport.php', 'Tab', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'View information about a specific issue'),
(2047, 6, 0, 'Announcement', '', 1, 0, NULL, 'Announcements Ticker', 'The Announcement tab allows Project portal Users the ability to see project announcements in order from latest to earliest via a ticker.\r\n<p>\r\nYou can click on the Announcement title to exit the ticker and go to the current Announcement .\r\n<p>\r\nUse the AnnouncementAdmin tab to add, modify or update Announcements.\r\n<p>\r\nOnce a <i>real</i> Announcement is added to the project this one will disappear.', 0, '../inc/ticker.php?tabid=2047', 'Announce', 12, '2008-06-12 11:04:09', '2008-06-12 11:04:09', 'Announcements Ticker'),
(2048, 7, 0, 'AnnouncementAdmin', '0;', 1, 2047, NULL, 'Announcement Admin Tool', 'The AnnouncementAdmin tab enables adding, removing and re-ordering Accouncement items by Users assigned the Programmer role. \r\n<p>\r\nThe left panel of the AnnouncementAdmin form enables you to see all the Anncouncement items defined for your project.<br>\r\nYou can add new Announcement items by doing the following:\r\n<ol>\r\n<li>Click on the <b>Add</b> button\r\n<li>An item called <i>New Tab</i> will appear at the bottom of the menu panel.\r\n<li>The <i>New Tab</i> is automatically selected for editing.\r\n<li>You can then enter or change any of the attributes of the Announcement tab\r\n<li>To upload a Announcement document and associate it with your new tab:\r\n<ul>\r\n<li>Click on the binoculars\r\n<li>A <i>File Upload</i> dialog will pop up.\r\n<li>Click on <i>Browse</i> to locate the document you wish to updload\r\n<li>Click on <i>Upload</i> to upload the document to the project upload site\r\n<li>Click on <i>Continue</i> after the file has been uploaded\r\n<li>Click on <i>Update</i> to save the uploaded file name to the tab\r\n<ul>\r\n<li>Once a file name appears in the target field clicking on the binoculars will display the target\r\n<li>To upload a new file, you must clear the target field and click on <i>Update</i>.\r\n</ul>\r\n</ul>\r\n<li>To save your updates, click on <b>Update</b>.\r\n<li>The Description field also serves as <i>help</i> content.  So, make sure that it is sufficient for that purpose.  Use HTML to format the description.\r\n<li>Use the lower portion of the right panel to control where the report will appear in the project sitemap.  You can move the tab to a different parent.  You can also move it to a particular place under a parent with multiple children using the up and down arrows.\r\n<li>Lastly, make sure the role-based security is set appropriately for the report.\r\n</ol>\r\n<p>\r\nThe AnnouncementAdmin is similar to the Tabs Admin shown below:\r\n<p>\r\n<img src=../images/Tabs.jpg>', 0, 'AnnouncementAdmin.php?scroll=no', 'Tab', 12, '2008-06-04 10:11:06', '2008-06-04 10:11:06', 'Announcement Admin Tool'),
(2052, 575, 0, 'AutoCodeGeneration', '', 0, 51, NULL, 'Automated Code Generation', ' ProMan allows JavaScript and PHP code to be generated on the fly through its Tabs based interface.  AutoCodeGeneration is accomplished via the Description field on Tabs .  In order to auto generate code certain conventions must be followed:\r\n<ul>\r\n<li>Semi-colons in JavaScript code should not have a trailing blank.\r\n<li>Semi-colons which terminate SQL statements must trailing blanks.\r\n<li>`<?</b>` must be the first two characters of the Description field to indicate PHP code follows while `?>` must be the last two characters of the Description field to indicate the end of PHP code. \r\n</ul>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Automated Code Generation'),
(2053, 576, 0, 'JavaScript', '', 0, 51, NULL, 'Javascript language', '<iframe \r\nsrc=http://en.wikipedia.org/wiki/JavaScript\r\nwidth=600 height=400>\r\n</iframe>', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Javascript language'),
(2233, 757, 0, 'PM_Email', '0;4;3;1;2;', 1, 104, NULL, 'ProMan Email', 'Allows email to be sent.', 0, 'Mail2Contacts.php', 'Tool', 12, '2014-09-06 13:53:20', '2010-06-04 09:47:59', 'Email'),
(2075, 578, 0, 'RSA', '', 0, 51, NULL, 'Algorithm for public-key cryptography', 'See <a href=http://en.wikipedia.org/wiki/RSA>Wikipedia</a>.', 0, '', 'Wiki', 12, '2008-12-12 01:59:48', '2008-12-12 01:59:48', 'Algorithm for public-key cryptography'),
(2106, 529, 0, 'IP', '', 1, 1720, NULL, 'Internet Protocol', '', 0, '', 'Wiki', 12, '2009-03-01 19:45:32', '2009-03-01 19:45:32', 'Internet Protocol'),
(2108, 784, 0, 'Search', '', 1, 0, NULL, 'Search Tabs and Issues ', '<?\r\n\r\n$str = $_SESSION[~Sstring~];\r\n\r\nif (~$str~==``) \r\n  {\r\n    echo `\r\n<body onload=~javascript:GetSrchStr();~>\r\n    `;\r\n  }\r\nelse\r\n  {\r\n//echo ~<br>Role=$userRole<br>~;\r\n    $NOSORT=1;\r\n    echo `<center><font size=4>Search Results for <i><font color=red>`,$str,`</font></i></font>`,$crlf;\r\n    $lnkT=~concat(`<a href=~.$dq.~javascript:PopTab(`,TabID,`);~.$dq.~>`,TabName,`</a>`)~;\r\n    $lnkI=~concat(`<a href=~.$dq.~javascript:PopIss(`,IssueID,`);~.$dq.~>`,IssueID,`</a>`)~;\r\n    ShowQueryResult(~select `Tab` as Type, $lnkT as Item, Title as Description from Tabs where ProjectId in (`$ProjectId`,0) and isDeleted=0 and (AuthorizedRoles=`` or instr(AuthorizedRoles,`$userRole;`)>0) and (instr(Description,`$str`)>0 or instr(Tabs.Title,`$str`)>0 or instr(Tabs.TabName,`$str`)>0) union select `Issue` as Type, $lnkI as Item, IssueTitle as Description from IssuesView where ProjectId in (`$ProjectId`,0) and (instr(IssueTitle,`$str`)>0 or instr(AssignedDisplayName,`$str`)>0 or instr(OwnerDisplayName,`$str`)>0 or instr(CreatorDisplayName,`$str`)>0) order by Description~);\r\n    $_SESSION[~Sstring~]=``;\r\n    echo `</center>`;\r\n  }\r\n\r\necho `\r\n<script language=javascript>\r\nfunction GetSrchStr()\r\n{\r\n  lsstr=prompt(~Enter the string to search~,~`,$str,`~);\r\n  if (lsstr==~~) {lsstr=~NULL~;}\r\n  window.document.Help.action=~Help.php?iprm=`,$iPrm,`&iprm2=`,$iPrm2,`&tabRoot=`,$tabRoot,`&lsstr=~+lsstr ;\r\n  window.document.Help.submit(true);\r\n}\r\nfunction PopTab(itm)\r\n{\r\n  return popitup(~Help.php?iprm=~+itm,50,100,600,~800,resizable=1,scrollbars=yes,location=no,toolbar=no,status=no,menubar=yes~);\r\n}\r\nfunction PopIss(itm)\r\n{\r\n  return popitup(~IssueEdit.php?id=~+itm,50,100,600,~800,resizable=1,scrollbars=yes,location=no,toolbar=no,status=no,menubar=yes~);\r\n}\r\n</script>\r\n`;\r\n\r\n?>', 0, '', 'Tab', 12, '2014-10-21 18:20:50', '2009-03-04 08:09:15', 'Search Tabs and Issues');
INSERT INTO `Tabs` (`TabID`, `TabOrder`, `ProjectID`, `TabName`, `AuthorizedRoles`, `IsVisible`, `ParentId`, `ImageList`, `Title`, `Description`, `IsDeleted`, `TabTarget`, `TabType`, `TabOwner`, `LastUpdate`, `DateCreated`, `Keywords`) VALUES
(2136, 266, 0, 'DataDictionary', '', 1, 1595, NULL, 'DataDictionary', '<?\r\nglobal $NOSORT;\r\n$NOSORT=1;\r\n$ProjectId=$_SESSION[`ProjectId`];\r\nShowQueryResult(~SELECT concat(`<a href=../Questionnaire/index.php?Instrument=ClinicalData&Form=`,FormQuestions.fID,fFormat,`&DE_MODE=D&CaseId=-1>`,FormQuestions.fID,`</a>`) as Form, FormQuestions.qID as Question,Questions.qDescription as Description, concat(`<a href=javascript:popitup(``../Questionnaire/response.php?response=`,Questions.qType,```,200,400,200,300);>`,Questions.qType,`</a>`) as ResponseType,Questions.qFormat as Format FROM FormQuestions,Questions,Forms WHERE  Questions.qID=FormQuestions.qID and Forms.fID=FormQuestions.fID and FormQuestions.ProjectId in (`0`,`$ProjectId`) ORDER BY FormQuestions.fID ASC, FormQuestions.qOrder ASC~);\r\n?>\r\n', 0, '', 'Tab', 12, '2013-02-26 16:19:12', '2009-11-27 18:27:16', 'DataDictionary'),
(2138, 268, 0, 'DuplicatesCheck', '', 1, 1595, NULL, 'Check for Duplicates', '<?\r\n$dbname=`ProjectManagement`;\r\nExecuteSQL("create temporary table tmpA as select CaseID,qID,rInstance, count(*) as Freq from Responses where isDeleted=0 group by CaseID,qID,rInstance order by count(*)");\r\nif (ShowQueryResultScalar("select count(*) from Responses, tmpA where tmpA.CaseID=Responses.CaseID and tmpA.qID=Responses.qID and tmpA.rInstance=Responses.rInstance and Freq>1")==0)\r\n  echo "There are no duplicates on CaseID, qID, rInstance";\r\nelse\r\n   ShowQueryResult("select * from Responses, tmpA where tmpA.CaseID=Responses.CaseID and tmpA.qID=Responses.qID and tmpA.rInstance=Responses.rInstance and Freq>1 order by Responses.CaseID,Responses.qID,Responses.rInstance");\r\n\r\n?>', 0, '', 'Tab', 12, '2009-11-27 18:28:35', '2009-11-27 18:28:35', 'Check for Duplicates'),
(2129, 761, 0, 'GuestBookReport', '0;2;', 1, 550, NULL, 'GuestBook Report', '<?\r\n  global $NOSORT;\r\n  $NOSORT=1;\r\n  $ProjectId=$_SESSION[`ProjectId`];\r\n  $ProNam=ShowQueryResultScalar("select ProjectDescription from Projects where ProjectId=`$ProjectId`");\r\n  $caseid=SQL2Array("select CaseID from Responses where qID=`GB_C_Name` and ProjectId=`$ProjectId`");\r\n  echo "<center><h2>$ProNam</h2>";\r\n  if (count($caseid)>0)\r\n    {\r\n      $vars=SQL2Array("select qID from FormQuestions where fID=`GB_Console` order by qOrder");\r\n      ShowResponses($caseid,$vars,0);\r\n    }\r\n  else\r\n    echo "There are no guest book entries";\r\n  echo `</center>`;\r\n?>', 0, '', 'Tab', 12, '2009-10-07 18:07:32', '2009-10-07 18:07:32', 'GuestBook Report'),
(2132, 579, 0, 'NC', '', 0, 51, NULL, 'North Carolina', '', 0, '', 'Wiki', 12, '2009-11-07 09:13:25', '2009-11-07 09:13:25', 'North Carolina'),
(2137, 267, 0, 'DataCapture', '', 1, 2136, NULL, 'DataCapture', 'The DataCapture tab allows you to browse the data capture applications defined in ProMan .\r\n<p>\r\nThe first level enables you to see each of the Instruments defined.\r\n<p>\r\nUpon clicking on an Instrument you are able to see the Forms that make up that Instrument .  This is the second level.\r\n<o>\r\nUpon clicking on a Form you are able to see the Questions appearing on the Form .\r\n<p>\r\nUpon clicking on the Format you are able to see the list of response options for that Question .', 0, '../Questionnaire/instrument.php', 'Tab', 12, '2009-11-27 18:27:48', '2009-11-27 18:27:48', 'DataCapture'),
(2139, 269, 0, 'HotForms', '', 1, 1595, NULL, 'Menu accessible Instrument, Forms and Questions', 'Use HotForms to browse the entire set of Instruments , Forms and Questions that have been defined in ProMan - either base tools or project-specific ones.\r\n<p>\r\nYou can use this tool to configure a menu driven Instrument - one which allows the user ultimate flexibility in providing the information in any order they wish.', 0, 'HotForms.php', 'Tab', 12, '2009-11-27 18:29:23', '2009-11-27 18:29:23', 'Menu accessible Instrument, Forms and Questions'),
(2140, 279, 0, 'Coding', '0;', 1, 2, NULL, 'Computer Assisted Coding', 'The Coding toolset provides a means whereby any class of text to be coded using a standard dictionary may be configured using the Coding_Configuration tool and immediately made operational by the Coding_Console tool.\r\n<p>\r\nThe assumptions of the Coding system are as follows:\r\n<ul>\r\n<li>The coding dictionary must be loaded into the ProMan Database \r\n<li>The coding dictionary must contain a `text` Column and a `code` Column \r\n<li>The items to be coded are rows in the Questionnaire Responses Table \r\n<li>The coded values will be stored in the Questionnaire Responses Table \r\n</ul>\r\n', 0, '', 'Tab', 12, '2009-11-27 18:31:26', '2009-11-27 18:31:26', 'Computer Assisted Coding'),
(2141, 280, 0, 'Coding_Configuration', '0;2;', 1, 2140, NULL, 'Coding configuration', 'The Coding_Configuration tool enables you to define a new coding activity and configure the Coding_Console for deployment of computer assisted coding.\r\n<hr>\r\n<img src=../images/CodingProcesses.jpg>\r\n<img src=../images/CodingConfiguration.jpg>', 0, '../Questionnaire/index.php?Instrument=CodingSystem&Form=CodingProcesses&CaseId=-1&Ftmp=&Ctmp=free&HFtmp=null&iprmid=-1&Instance=0', 'Tab', 12, '2009-11-27 18:33:21', '2009-11-27 18:33:21', 'Coding configuration'),
(2142, 281, 0, 'Coding_Console', '', 1, 2140, NULL, 'Coding console', 'The Coding_Console allow coders and supervisors access to the coding processes defined and configured using the Coding_Configuration tool.\r\n<p>\r\nThe Coding_Console allows for selection of a coding type from which statistics are show for the selected type.  If there are any uncoded items available for coding, the first available item will be presented for coding.\r\n<hr>\r\n<img src=../images/CodingConsole.jpg>', 0, '../Questionnaire/index.php?Instrument=CodingSystem&Form=CodingConsole&CaseId=-1&Ftmp=&Ctmp=free&HFtmp=null&iprmid=-1&Instance=0', 'Tab', 12, '2009-11-27 18:34:20', '2009-11-27 18:34:20', 'Coding console'),
(2155, 755, 0, 'SessionVariableDump', '0;', 1, 104, NULL, 'Session Variable Dump', '<?\r\nif ($_SESSION[`uRole`] != `Administrator`) die();\r\necho `<table border=1>`;\r\nforeach ($_SESSION as $key => $value)\r\necho `<tr><td>`,$key,`</td><td>`,strip_tags(~$value~),`</td></tr>`;\r\necho `</table>`;\r\n?>', 0, '', 'Tool', 12, '2014-10-03 19:42:43', '2010-01-16 18:09:12', 'Session Variable Dump'),
(2163, 756, 0, 'Test', '0;', 1, 104, NULL, 'Test Tool', '', 0, 'test.htm', 'Tool', 12, '2015-10-20 14:24:43', '2010-06-04 10:16:42', 'Test Tool'),
(2978, 794, 11, 'BAMA', '0;1;2;', 1, 532, NULL, 'Benson Area Ministerial Association', '<?\r\necho `\r\n<center>\r\n<table border=0 width=100% cellspacing=10>\r\n<tr>\r\n<td width=70%>\r\n<iframe name=rFrame frameborder=0 scrolling=no seamless \r\n   src=../inc/slideshow.php?dir=../upload/BAMA/homeslides&speed=8000&height=275&ttl=BAMA&go=1&controls=0\r\n   width=100% height=375>\r\n</iframe>\r\n</td>\r\n<td width=30%>\r\n<div style=~height:300; overflow:scroll;~>\r\n\r\n<p>\r\n</div>\r\n</td>\r\n</tr>\r\n</table>\r\n`;\r\n?>', 0, 'ProjectSelect.php?projectid=32', 'Proj', 12, '2015-11-13 12:40:37', '2015-10-20 16:05:20', 'Benson Area Ministerial Association'),
(2979, 636, 32, 'CCCC', '1;0;2;', 1, 205, NULL, 'Christ Community Christmas Closet', '', 0, '', 'Link', 12, '2015-10-22 09:58:29', '2015-10-21 13:59:41', 'Christ Community Christmas Closet'),
(2983, 796, 32, 'At the Grove', '', 1, 2982, NULL, '', '', 0, '', 'Link', 12, '2015-10-22 10:06:48', '2015-10-22 09:17:54', ''),
(2984, 797, 32, 'Community Service', '', 1, 2982, NULL, '', '', 0, '', 'Link', 12, '2015-10-22 10:07:10', '2015-10-22 09:19:27', ''),
(2980, 647, 32, 'Food Bank', '', 1, 205, NULL, 'BAMA Food Bank', '', 0, '', 'Link', 12, '2015-10-22 09:22:18', '2015-10-22 08:33:44', 'BAMA Food Bank'),
(2982, 649, 32, 'Thanksgiving', '1;0;2;', 1, 2980, NULL, 'BAMA Thanksgiving activities', '', 0, '', 'Link', 12, '2015-10-22 09:17:46', NULL, 'Search and add cases'),
(2981, 796, 32, 'Clients', '1;0;2;', 1, 2985, NULL, 'Search and add cases', '', 0, '../Questionnaire/index.php?Instrument=TEFAP&Form=TEFAPconsole&CaseId=-1&Ftmp=&Ctmp=free&HFtmp=null&iprmid=-1&Instance=0&HFtmp=null', 'Link', 12, '2015-11-29 14:33:31', NULL, 'Search and add cases'),
(2985, 795, 32, 'Food Service', '', 1, 2980, NULL, '', '', 0, '', 'Link', 12, '2015-10-22 09:58:58', '2015-10-22 09:20:29', ''),
(2276, 783, 0, 'FTP', '0;3;4;1;2;', 1, 0, NULL, 'File Transfer Protocol', '<?\r\n$exte=$_REQUEST[`exte`];\r\nif ($exte==1) {$thit=645; $twid=700;} \r\nelseif ($clean==1) {$thit=515; $twid=700;}\r\nelse {$thit=360; $twid=575;}\r\n//echo ~exte=$exte thit=$thit~;\r\n\r\necho `<iframe name=bFrame frameborder=0 src=../inc/DirList.php?dir=FTP&showdirs=TRUE&breadcrumbstop=`,$_SESSION[`RootDir`],`&allowuploads=TRUE&allowedit=TRUE&exte=`,$exte,`&divhit=` , max($_SESSION[`PM_wHit`]/1.7,$thit-120) , `px  scrolling=~no~ width=`,$twid,` height=` , max($_SESSION[`PM_wHit`]/1.32,$thit) , `> </iframe>`;\r\n?>\r\n', 0, '', 'Tab', 12, '2014-12-23 13:58:14', '2010-12-02 05:44:40', 'File Transfer Protocol'),
(2323, 228, 0, 'MyAssignments', '0;4; 3; 1;2;', 1, 11, NULL, 'A listing of my pending assignments', '<img src=../images/MyAssignments.jpg>', 0, 'UserPending.php', 'Tab', 12, '2011-04-06 23:34:14', '2011-04-06 23:34:14', 'A listing of my pending assignments'),
(2324, 227, 0, 'LaborAllocation', '0;  1;2;', 1, 11, NULL, 'Labor Allocation by Staff', 'The LaborAllocation Report displays the labor hours per User per year based on the LevelOfEffort estimate for each Issue .\r\n<p>\r\nA table showing all Users who are overcommitted for any month based on 160 total hours per month. ', 0, 'LaborByUser.php', 'Tab', 12, '2011-04-06 23:32:38', '2011-04-06 23:32:38', 'Labor Allocation by Staff'),
(2424, 768, 0, 'Home - ', '', 1, 1829, NULL, 'Portal Home Page by <b><i>ProMan</a></b> <img src=../images/ProMan.jpg width=20>', NULL, 0, '/ProjectManagement/PMmenuhinner.php?tabid=-1&iprm=-9&pop=yes', 'Book', 0, '2014-04-24 18:01:01', '2006-01-01 00:00:00', 'Portal Home Page by <b><i>ProMan</a></b> <img src=../images/ProMan.jpg width=20>'),
(2480, 515, 0, 'BlueGrass', '', 0, 51, NULL, 'Blue Grass Music', '', 0, '', 'Wiki', 0, '2012-09-17 18:51:18', '2012-09-17 18:51:18', 'Blue Grass Music'),
(2652, 512, 0, 'FL', '', 0, 51, NULL, 'Florida', '', 0, '', 'Wiki', 12, '2014-02-07 22:09:54', '2014-02-07 22:09:54', 'Florida'),
(2692, 510, 0, 'Public', '', 0, 51, NULL, 'Concerning the people as a whole', '', 0, '', 'Wiki', 12, '2014-03-03 20:27:27', '2014-03-03 20:27:27', 'Concerning the people as a whole'),
(2693, 509, 0, 'XHTML', '', 0, 51, NULL, 'Extended Hypertext Markup Language', '', 0, '', 'Wiki', 12, '2014-03-03 20:23:12', '2014-03-03 20:23:12', 'Extended Hypertext Markup Language'),
(2694, 508, 0, 'SMP', '', 0, 51, NULL, 'Symetric Multi-Processing', '', 0, '', 'Wiki', 12, '2014-03-03 20:22:07', '2014-03-03 20:22:07', 'SAymetric Multi-Processing'),
(2695, 507, 0, 'EST', '', 0, 51, NULL, 'Eastern Standard Time', '', 0, '', 'Wiki', 12, '2014-03-03 20:58:46', '2014-03-03 20:58:46', 'Eastern Standard Time'),
(2696, 506, 0, 'API', '', 0, 51, NULL, 'Application Program Interface', '', 0, '', 'Wiki', 12, '2014-03-03 20:27:55', '2014-03-03 20:27:55', 'Application Program Interface'),
(2697, 505, 0, 'NT', '', 0, 51, NULL, 'New Technology', '', 0, '', 'Wiki', 12, '2014-03-03 20:22:41', '2014-03-03 20:22:41', 'New Technology'),
(2698, 504, 0, 'GMT', '', 0, 51, NULL, 'Greenwich Mean Time', '', 0, '', 'Wiki', 12, '2014-03-03 20:20:12', '2014-03-03 20:20:12', 'Greenwich Mean Time'),
(2700, 503, 0, 'GNU', '', 0, 51, NULL, 'Free software, mass collaboration project', '', 0, '', 'Wiki', 12, '2014-03-03 20:25:38', '2014-03-03 20:25:38', 'Free software, mass collaboration project'),
(2703, 502, 0, 'OpenSSL', '', 0, 51, NULL, 'Open Source toolkit implementing the Secure Sockets', '', 0, '', 'Wiki', 12, '2014-03-03 20:38:51', '2014-03-03 20:38:51', 'Open Source toolkit implementing the Secure Sockets'),
(2705, 500, 0, 'UnexpectedValueException', '', 0, 51, NULL, 'Unexpected Value Exception', '', 0, '', 'Wiki', 12, '2014-03-03 20:35:37', '2014-03-03 20:35:37', 'Unexpected Value Exception'),
(2711, 499, 0, 'Particular', '', 0, 51, NULL, 'specific', '', 0, '', 'Wiki', 12, '2014-03-03 20:39:25', '2014-03-03 20:39:25', 'specific'),
(2712, 498, 0, 'LICENSE', '', 0, 51, NULL, 'Proof of privilege', '', 0, '', 'Wiki', 12, '2014-03-03 20:20:59', '2014-03-03 20:20:59', 'Proof of privilege'),
(2748, 769, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, NULL, NULL, NULL),
(2759, 772, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, NULL, NULL, NULL),
(2755, 770, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, NULL, NULL, NULL),
(2756, 771, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, NULL, NULL, NULL),
(2760, 782, 0, 'Email', '', 1, 0, NULL, 'Web server email client', '', 0, '../../mail/rainloop/index.php?export=no', 'Tab', 12, '2015-09-02 17:00:29', '2014-09-06 13:57:59', 'Web server email client'),
(2761, 773, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, NULL, NULL, NULL),
(2762, 774, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, NULL, NULL, NULL),
(2781, 775, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, NULL, NULL, NULL),
(2818, 776, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, NULL, NULL, NULL),
(2822, 619, 0, 'CSS', '', 0, 51, NULL, 'Cascading Style Sheet', '', 0, '', 'Wiki', 12, '2015-01-08 16:01:08', NULL, 'Cascading Style Sheet'),
(2827, 777, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, '2015-01-01 01:17:14', NULL, NULL),
(2839, 779, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, '2015-02-02 15:05:22', NULL, NULL),
(2892, 780, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, '2015-03-09 11:48:58', NULL, NULL),
(2974, 792, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, '2015-10-11 10:05:17', NULL, NULL),
(2975, 793, 0, ' - ', '', 1, 1829, NULL, NULL, NULL, 0, '', 'Book', 0, '2015-10-13 07:35:28', NULL, NULL);

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

--
-- Table structure for table `Users`
--

CREATE TABLE IF NOT EXISTS `Users` (
  `UserID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'User unigue identifier',
  `FirstName` varchar(50) NOT NULL,
  `LastName` varchar(50) NOT NULL,
  `Street` varchar(50) DEFAULT NULL,
  `City` varchar(50) DEFAULT NULL,
  `Region` varchar(50) DEFAULT NULL,
  `PostalCode` varchar(50) DEFAULT NULL,
  `Country` varchar(50) DEFAULT NULL,
  `Password` varchar(50) NOT NULL,
  `Email` varchar(100) DEFAULT NULL,
  `Unit` varchar(50) DEFAULT NULL,
  `IsSuperUser` tinyint(1) NOT NULL DEFAULT '0',
  `Telephone` varchar(50) DEFAULT NULL,
  `Username` varchar(100) NOT NULL,
  `isDeleted` tinyint(4) NOT NULL DEFAULT '0',
  `CreationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `RoleId` smallint(6) NOT NULL DEFAULT '1',
  `LastLogin` datetime DEFAULT NULL,
  `PasswordDate` date NOT NULL COMMENT 'Date when password set',
  `DefaultProject` smallint(6) DEFAULT NULL COMMENT 'Default project Id',
  `TextAddress` varchar(60) DEFAULT NULL COMMENT 'Texting address',
  UNIQUE KEY `UserID` (`UserID`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='User name for the user' AUTO_INCREMENT=74 ;

--
-- Dumping data for table `Users`
--

INSERT INTO `Users` (`UserID`, `FirstName`, `LastName`, `Street`, `City`, `Region`, `PostalCode`, `Country`, `Password`, `Email`, `Unit`, `IsSuperUser`, `Telephone`, `Username`, `isDeleted`, `CreationDate`, `RoleId`, `LastLogin`, `PasswordDate`, `DefaultProject`, `TextAddress`) VALUES
(12, 'Randolph', 'Lucas', '309 W Main St', 'Benson', 'NC', '27504', 'US', '0217KzSiMtpmw', 'Randy@LucasCo.info', 'rl', 1, '919 622 1070', 'rl', 0, '2015-12-03 03:24:54', 0, '2015-12-03 03:24:54', '2015-02-16', 11, '9196221070@vtext.com'),
(71, 'Jeff', 'Person', '', '', '', '', '', 'peebOqhURGmPY', 'randy@lucasco.info', 'BAMA', 0, '', 'PastorJeff', 0, '2015-12-03 12:09:12', 1, '2015-12-03 12:09:12', '2015-11-19', 32, ''),
(72, 'Ricky', 'Ennis', '', '', '', '', '', 'temp4pwd', 'randy@lucasco.info', 'BAMA', 0, '', 'Ricky.Ennis', 0, '2015-11-19 21:17:48', 1, NULL, '2015-11-19', 32, ''),
(73, 'Brenda', 'Ennis', '', '', '', '', '', 'en4Lg6WfQxkKg', 'randy@lucasco.info', 'BAMA', 0, '', 'Brenda.Ennis', 0, '2015-11-19 21:17:48', 1, NULL, '2015-11-19', 32, '');

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

--
-- Structure for view `CalendarView`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `ProjectManagement`.`CalendarView` AS select distinct `ProjectManagement`.`Calendar`.`CalId` AS `CalId`,`ProjectManagement`.`Calendar`.`UserId` AS `UserId`,`ProjectManagement`.`Calendar`.`ProjectId` AS `ProjectId`,`ProjectManagement`.`Calendar`.`DateCreated` AS `DateCreated`,`ProjectManagement`.`Calendar`.`CalType` AS `CalType`,`ProjectManagement`.`Calendar`.`Description` AS `Description`,`ProjectManagement`.`Calendar`.`Url` AS `Url`,`ProjectManagement`.`Calendar`.`StartDate` AS `StartDate`,`ProjectManagement`.`Calendar`.`EndDate` AS `EndDate`,`ProjectManagement`.`Calendar`.`Recurs` AS `Recurs`,`ProjectManagement`.`Calendar`.`RecursTill` AS `RecursTill`,`ProjectManagement`.`Calendar`.`IsDeleted` AS `IsDeleted`,`ProjectManagement`.`Users`.`FirstName` AS `FirstName`,`ProjectManagement`.`Users`.`LastName` AS `LastName`,`ProjectManagement`.`Users`.`Email` AS `Email`,`ProjectManagement`.`Users`.`Unit` AS `Unit`,`ProjectManagement`.`Users`.`Username` AS `UserName`,`ProjectManagement`.`Users`.`RoleId` AS `RoleId` from (`ProjectManagement`.`Calendar` join `ProjectManagement`.`Users` on((`ProjectManagement`.`Calendar`.`UserId` = `ProjectManagement`.`Users`.`UserID`))) where (`ProjectManagement`.`Calendar`.`IsDeleted` = 0);

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

--
-- Structure for view `IssuesView`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `ProjectManagement`.`IssuesView` AS select distinct `ProjectManagement`.`Issues`.`IssueId` AS `IssueId`,`ProjectManagement`.`Issues`.`ProjectId` AS `ProjectId`,`ProjectManagement`.`Issues`.`IssueTitle` AS `IssueTitle`,`ProjectManagement`.`Issues`.`IssueCategoryId` AS `IssueCategoryId`,`ProjectManagement`.`Issues`.`IssueMilestoneId` AS `IssueMilestoneId`,`ProjectManagement`.`Issues`.`IssuePriorityId` AS `IssuePriorityId`,`ProjectManagement`.`Issues`.`IssueCreatorId` AS `IssueCreatorId`,`ProjectManagement`.`Issues`.`IssueOwnerId` AS `IssueOwnerId`,`ProjectManagement`.`Issues`.`IssueAssignedId` AS `IssueAssignedId`,`ProjectManagement`.`Issues`.`DateCreated` AS `DateCreated`,`ProjectManagement`.`Issues`.`Disabled` AS `Disabled`,`ProjectManagement`.`Issues`.`DateNeeded` AS `DateNeeded`,`ProjectManagement`.`Issues`.`LevelOfEffort` AS `LevelOfEffort`,`ProjectManagement`.`Issues`.`StartDate` AS `StartDate`,`ProjectManagement`.`Issues`.`EndDate` AS `EndDate`,`ProjectManagement`.`Projects`.`ProjectName` AS `ProjectName`,`ProjectManagement`.`ProjectPriorities`.`PriorityName` AS `PriorityName`,`ProjectManagement`.`ProjectMilestones`.`MilestoneName` AS `MilestoneName`,concat(`AssignedUsers`.`FirstName`,_utf8' ',`AssignedUsers`.`LastName`) AS `AssignedDisplayName`,concat(`OwnerUsers`.`FirstName`,_utf8' ',`OwnerUsers`.`LastName`) AS `OwnerDisplayName`,concat(`CreatorUsers`.`FirstName`,_utf8' ',`CreatorUsers`.`LastName`) AS `CreatorDisplayName`,`CreatorUsers`.`Username` AS `CreatorUser`,`OwnerUsers`.`Username` AS `OwnerUser`,`AssignedUsers`.`Username` AS `AssignedUser`,`ProjectManagement`.`ProjectCategories`.`CategoryName` AS `CategoryName`,`CreatorUsers`.`Unit` AS `CreatorUnit` from (((((((`ProjectManagement`.`Issues` left join `ProjectManagement`.`Projects` on((`ProjectManagement`.`Issues`.`ProjectId` = `ProjectManagement`.`Projects`.`ProjectId`))) left join `ProjectManagement`.`ProjectPriorities` on((`ProjectManagement`.`Issues`.`IssuePriorityId` = `ProjectManagement`.`ProjectPriorities`.`PriorityId`))) left join `ProjectManagement`.`ProjectMilestones` on((`ProjectManagement`.`Issues`.`IssueMilestoneId` = `ProjectManagement`.`ProjectMilestones`.`MilestoneId`))) left join `ProjectManagement`.`Users` `AssignedUsers` on((`AssignedUsers`.`UserID` = `ProjectManagement`.`Issues`.`IssueAssignedId`))) left join `ProjectManagement`.`Users` `OwnerUsers` on((`OwnerUsers`.`UserID` = `ProjectManagement`.`Issues`.`IssueOwnerId`))) left join `ProjectManagement`.`Users` `CreatorUsers` on((`CreatorUsers`.`UserID` = `ProjectManagement`.`Issues`.`IssueCreatorId`))) left join `ProjectManagement`.`ProjectCategories` on((`ProjectManagement`.`ProjectCategories`.`CategoryId` = `ProjectManagement`.`Issues`.`IssueCategoryId`))) where (`ProjectManagement`.`Issues`.`Disabled` <> 1);

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

--
-- Structure for view `ResponsesDecoded`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `ProjectManagement`.`ResponsesDecoded` AS select `ProjectManagement`.`Responses`.`rUnique` AS `rUnique`,`ProjectManagement`.`Responses`.`CaseID` AS `CaseID`,`ProjectManagement`.`Responses`.`qID` AS `qID`,`ProjectManagement`.`Responses`.`rValue` AS `rValue`,`ProjectManagement`.`Responses`.`uID` AS `uID`,`ProjectManagement`.`Responses`.`DateCreated` AS `DateCreated`,`ProjectManagement`.`Responses`.`rOK` AS `rOK`,`ProjectManagement`.`Responses`.`isDeleted` AS `isDeleted`,`ProjectManagement`.`Responses`.`rInstance` AS `rInstance`,`ProjectManagement`.`Responses`.`ProjectId` AS `ProjectId`,`ProjectManagement`.`Responses`.`rValue` AS `tText` from `ProjectManagement`.`Responses` where ((`ProjectManagement`.`Responses`.`rValue` = _utf8'') and (`ProjectManagement`.`Responses`.`isDeleted` = 0)) union select `ProjectManagement`.`Responses`.`rUnique` AS `rUnique`,`ProjectManagement`.`Responses`.`CaseID` AS `CaseID`,`ProjectManagement`.`Responses`.`qID` AS `qID`,`ProjectManagement`.`Responses`.`rValue` AS `rValue`,`ProjectManagement`.`Responses`.`uID` AS `uID`,`ProjectManagement`.`Responses`.`DateCreated` AS `DateCreated`,`ProjectManagement`.`Responses`.`rOK` AS `rOK`,`ProjectManagement`.`Responses`.`isDeleted` AS `isDeleted`,`ProjectManagement`.`Responses`.`rInstance` AS `rInstance`,`ProjectManagement`.`Responses`.`ProjectId` AS `ProjectId`,`ProjectManagement`.`Responses`.`rValue` AS `tText` from (`ProjectManagement`.`Responses` join `ProjectManagement`.`Questions`) where ((`ProjectManagement`.`Responses`.`rValue` <> _utf8'') and (`ProjectManagement`.`Questions`.`qID` = `ProjectManagement`.`Responses`.`qID`) and (`ProjectManagement`.`Questions`.`qFormat` not in (_utf8'RADIO',_utf8'CHECKBOX',_utf8'DROPDOWN',_utf8'SIGNATURE')) and (`ProjectManagement`.`Responses`.`isDeleted` = 0)) union select `ProjectManagement`.`Responses`.`rUnique` AS `rUnique`,`ProjectManagement`.`Responses`.`CaseID` AS `CaseID`,`ProjectManagement`.`Responses`.`qID` AS `qID`,`ProjectManagement`.`Responses`.`rValue` AS `rValue`,`ProjectManagement`.`Responses`.`uID` AS `uID`,`ProjectManagement`.`Responses`.`DateCreated` AS `DateCreated`,`ProjectManagement`.`Responses`.`rOK` AS `rOK`,`ProjectManagement`.`Responses`.`isDeleted` AS `isDeleted`,`ProjectManagement`.`Responses`.`rInstance` AS `rInstance`,`ProjectManagement`.`Responses`.`ProjectId` AS `ProjectId`,`ProjectManagement`.`ResponseType`.`tText` AS `tText` from ((`ProjectManagement`.`Responses` join `ProjectManagement`.`Questions`) join `ProjectManagement`.`ResponseType`) where ((`ProjectManagement`.`Responses`.`rValue` <> _utf8'') and (`ProjectManagement`.`Questions`.`qID` = `ProjectManagement`.`Responses`.`qID`) and (`ProjectManagement`.`Questions`.`qFormat` in (_utf8'RADIO',_utf8'CHECKBOX',_utf8'DROPDOWN')) and (`ProjectManagement`.`ResponseType`.`tID` = `ProjectManagement`.`Questions`.`qType`) and (`ProjectManagement`.`ResponseType`.`tValue` = `ProjectManagement`.`Responses`.`rValue`) and (`ProjectManagement`.`Responses`.`isDeleted` = 0)) union select `ProjectManagement`.`Responses`.`rUnique` AS `rUnique`,`ProjectManagement`.`Responses`.`CaseID` AS `CaseID`,`ProjectManagement`.`Responses`.`qID` AS `qID`,`ProjectManagement`.`Responses`.`rValue` AS `rValue`,`ProjectManagement`.`Responses`.`uID` AS `uID`,`ProjectManagement`.`Responses`.`DateCreated` AS `DateCreated`,`ProjectManagement`.`Responses`.`rOK` AS `rOK`,`ProjectManagement`.`Responses`.`isDeleted` AS `isDeleted`,`ProjectManagement`.`Responses`.`rInstance` AS `rInstance`,`ProjectManagement`.`Responses`.`ProjectId` AS `ProjectId`,concat(_utf8'<img src=',`ProjectManagement`.`Responses`.`rValue`,_utf8'>') AS `tText` from ((`ProjectManagement`.`Responses` join `ProjectManagement`.`Questions`) join `ProjectManagement`.`ResponseType`) where ((`ProjectManagement`.`Responses`.`rValue` <> _utf8'') and (`ProjectManagement`.`Questions`.`qID` = `ProjectManagement`.`Responses`.`qID`) and (`ProjectManagement`.`Questions`.`qFormat` = _utf8'SIGNATURE') and (`ProjectManagement`.`ResponseType`.`tID` = `ProjectManagement`.`Questions`.`qType`) and (`ProjectManagement`.`ResponseType`.`tValue` = `ProjectManagement`.`Responses`.`rValue`) and (`ProjectManagement`.`Responses`.`isDeleted` = 0));
