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

START TRANSACTION;



--
-- Database: `anandaob_ksoft_v2`
--

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

--
-- Table structure for table `events`
--

CREATE TABLE `events` (
  `id` int(11) NOT NULL,
  `title` text NOT NULL,
  `content` text NOT NULL,
  `thumb_image` text NOT NULL,
  `images` text NOT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `events`
--

INSERT INTO `events` (`id`, `title`, `content`, `thumb_image`, `images`, `date`) VALUES
(34, 'MAROONS NIGHT 2018', 'Maroons Night – 2018 to be held on Thursday 26th April, 2018 at Radisson Blu Hotel, Dubai Deira Creek. Following the success of previous years, Maroons Night 2018 is expected to attract over 350 fellow alumni of Ananda and Nalanda as well as other schools, their families and friends, representing a vast cross section of Sri Lankan community living in the UAE. ', '1524683612_uae15243963645adc714c805fe.0.jpg', 'uae15243963645adc714c805fe.0.jpg', '2018-04-26');

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

--
-- Table structure for table `gallery`
--

CREATE TABLE `gallery` (
  `id` int(11) NOT NULL,
  `image` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `gallery`
--

INSERT INTO `gallery` (`id`, `image`) VALUES
(123, '5ae0d915e9325.thumb.png');

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

--
-- Table structure for table `images`
--

CREATE TABLE `images` (
  `id` int(11) NOT NULL,
  `image` text NOT NULL,
  `content_type` varchar(255) DEFAULT NULL,
  `fk_content_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `images`
--

INSERT INTO `images` (`id`, `image`, `content_type`, `fk_content_id`) VALUES
(2, '15234671615ace439963661.1.png', 'news', 14),
(36, '15235106565aceed80b7e8f.0.png', 'events', 1),
(37, '15235106565aceed80b7e8f.1.png', 'events', 1),
(38, '15235106565aceed80b7e8f.2.png', 'events', 1),
(39, '15235106995aceedab5cd48.0.png', 'events', 5),
(40, '15235106995aceedab5cd48.1.png', 'events', 5),
(43, '15235150835acefecbefafd.0.png', 'news', 12),
(44, '15235150835acefecbefafd.1.JPG', 'news', 12),
(45, '15235150835acefecbefafd.2.png', 'news', 12),
(46, '15235728075acfe0478537d.0.png', 'events', 25),
(47, '15235728075acfe0478537d.1.jpg', 'events', 25),
(48, '15235750275acfe8f365e6c.0.png', 'events', 29),
(49, '15235750275acfe8f365e6c.1.jpg', 'events', 29),
(50, '15235754225acfea7e0d4ed.0.png', 'news', 17),
(51, '15235754225acfea7e0d4ed.1.jpg', 'news', 17),
(52, '15235758485acfec2855ad0.0.png', 'news', 18),
(53, '15235758485acfec2855ad0.1.jpg', 'news', 18),
(54, '15235765245acfeecc553bc.0.png', 'news', 19),
(55, '15235765245acfeecc553bc.1.jpg', 'news', 19),
(56, '15235772885acff1c8e96a0.0.png', 'news', 20),
(57, '15235772885acff1c8e96a0.1.jpg', 'news', 20),
(58, '15235775045acff2a0d80ed.0.png', 'news', 21),
(59, '15235775045acff2a0d80ed.1.jpg', 'news', 21),
(62, '15235777785acff3b2ad643.0.png', 'events', 31),
(63, '15235777785acff3b2ad643.1.jpg', 'events', 31),
(64, '15235777785acff3b2ad643.2.png', 'events', 31),
(65, '15235778505acff3faca647.0.png', 'events', 32),
(66, '15235778505acff3faca647.1.png', 'events', 32),
(67, '15236299315ad0bf6bd4831.0.png', 'events', 33),
(68, '15236299315ad0bf6bd4831.1.jpg', 'events', 33),
(69, '15236301265ad0c02ecf6a1.0.png', 'news', 22),
(70, '15236301265ad0c02ecf6a1.1.jpg', 'news', 22),
(72, '5ad1d19a7150f.original.png', 'gallery', 103),
(73, '5ad1d2612bebe.original.png', 'gallery', 104),
(74, '5ad1d2dbcf96f.original.png', 'gallery', 105),
(75, '5ad1d3353f254.original.png', 'gallery', 106),
(76, '5ad1d3d715147.original.png', 'gallery', 107),
(77, '5ad1d463bdc54.original.png', 'gallery', 108),
(78, '5ad1d493dabe1.original.png', 'gallery', 109),
(79, '5ad1d4d42bab3.original.png', 'gallery', 110),
(80, '5ad1df352a97c.original.png', 'gallery', 111),
(81, '5ad1e0fa0125c.original.png', 'gallery', 112),
(82, '5ad1e17e959b8.original.png', 'gallery', 113),
(83, '5ad1e53266bc8.original.png', 'gallery', 114),
(84, '5ad2c5154c46b.original.png', 'gallery', 115),
(85, '5ad2c55f4b985.original.png', 'gallery', 116),
(86, '5ad2c5ee0c0ce.original.png', 'gallery', 117),
(88, '5ad2ca879ccac.original.jpg', 'gallery', 120),
(89, '5ad2d476c5dc9.original.jpg', 'gallery', 121),
(90, '5ad2d495a305d.original.jpg', 'gallery', 122),
(91, '15246836125ae0d35c7bc82.0.0', 'events', 34),
(92, '15246843805ae0d65cd881e.0.0', 'news', 23),
(93, '15246845465ae0d702067e6.0.0', 'news', 24),
(94, '15246848085ae0d808203df.0.0', 'news', 25),
(95, '15246849325ae0d88440afe.0.0', 'news', 26),
(96, '5ae0d915e9325.original.jpg', 'gallery', 123),
(97, '15247100775ae13abd91656.0.png', 'news', 26),
(98, '15497074385c5ea8aea2ea0.0.jpg', 'news', 27),
(99, '15586971385ce7d4b299e8e.0.0', 'events', 35),
(100, '15586978225ce7d75eba788.0.0', 'events', 36),
(101, '15586990845ce7dc4cdfa05.0.0', 'events', 37),
(102, '15586992535ce7dcf5e0f47.0.0', 'news', 28),
(103, '15586994575ce7ddc1abeb2.0.0', 'events', 38);

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

--
-- Table structure for table `members`
--

CREATE TABLE `members` (
  `table_id` int(10) NOT NULL,
  `surname` varchar(100) DEFAULT NULL,
  `forenames` varchar(255) DEFAULT NULL,
  `mem_id` varchar(12) DEFAULT NULL,
  `mem_name` varchar(255) DEFAULT NULL,
  `sl_address` text DEFAULT NULL,
  `uae_address` text DEFAULT NULL,
  `uae_fix_phone` text DEFAULT NULL,
  `uae_m_phone` text DEFAULT NULL,
  `sl_fix_phone` text DEFAULT NULL,
  `sl_m_phone` text DEFAULT NULL,
  `batch` int(5) DEFAULT NULL,
  `company` varchar(50) DEFAULT NULL,
  `b_day` date DEFAULT NULL,
  `profession` varchar(25) DEFAULT NULL,
  `status` varchar(10) DEFAULT NULL,
  `comments` text DEFAULT NULL,
  `image` text DEFAULT NULL,
  `payment_amt` varchar(10) DEFAULT NULL,
  `payment_id` varchar(15) DEFAULT NULL,
  `admission_no` varchar(10) DEFAULT NULL,
  `alevel` int(11) DEFAULT NULL,
  `olevel` int(11) DEFAULT NULL,
  `college_from` int(11) DEFAULT NULL,
  `college_to` int(11) DEFAULT NULL,
  `extra_cur` varchar(255) DEFAULT NULL,
  `hostel_from` int(11) DEFAULT NULL,
  `hostel_to` int(11) DEFAULT NULL,
  `ref_name1` varchar(100) DEFAULT NULL,
  `ref_email1` varchar(50) DEFAULT NULL,
  `ref_mem_no1` varchar(20) DEFAULT NULL,
  `ref_name2` varchar(100) DEFAULT NULL,
  `ref_email2` varchar(50) DEFAULT NULL,
  `ref_mem_no2` varchar(20) DEFAULT NULL,
  `designation` varchar(50) DEFAULT NULL,
  `education` varchar(255) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `emirate` varchar(100) DEFAULT NULL,
  `telephone_office` varchar(20) DEFAULT NULL,
  `telephone_res` varchar(20) DEFAULT NULL,
  `official_addr` varchar(255) DEFAULT NULL,
  `payment_method` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `members`
--

INSERT INTO `members` (`table_id`, `surname`, `forenames`, `mem_id`, `mem_name`, `sl_address`, `uae_address`, `uae_fix_phone`, `uae_m_phone`, `sl_fix_phone`, `sl_m_phone`, `batch`, `company`, `b_day`, `profession`, `status`, `comments`, `image`, `payment_amt`, `payment_id`, `admission_no`, `alevel`, `olevel`, `college_from`, `college_to`, `extra_cur`, `hostel_from`, `hostel_to`, `ref_name1`, `ref_email1`, `ref_mem_no1`, `ref_name2`, `ref_email2`, `ref_mem_no2`, `designation`, `education`, `email`, `emirate`, `telephone_office`, `telephone_res`, `official_addr`, `payment_method`) VALUES
(1, '', '', '1', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(2, 'Witharamalage', 'Rangana', '2', 'Rangana Kandambi', 'Dubai', 'Sharjah', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', 'IT', NULL, NULL, NULL, '200', '', 'NA', 2000, 1997, 1992, 2000, 'Hockey', -1, -1, 'Ruwan', 'Kahanthen', '', 'Achinda', 'Witharamalage', '', 'IT Consultant', 'BSC', 'rangakan@yahoo.com', 'Dubai', '0564143998', '0564143998', 'Dubai', 'Cash'),
(3, '', '', '3', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(4, '', '', '4', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(5, '', '', '5', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(6, '', '', '6', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(7, '', '', '7', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(8, '', '', '8', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(9, '', '', '9', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(10, '', '', '10', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(11, '', '', '11', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, '1970-01-01', '', NULL, NULL, NULL, '', '', '', -1, -1, -1, -1, '', -1, -1, '', '', '', '', '', '', '', '', '', '', '', '', '', '');

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

--
-- Table structure for table `news`
--

CREATE TABLE `news` (
  `id` int(11) NOT NULL,
  `title` text NOT NULL,
  `content` text NOT NULL,
  `thumb_image` text NOT NULL,
  `images` text NOT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `news`
--

INSERT INTO `news` (`id`, `title`, `content`, `thumb_image`, `images`, `date`) VALUES
(23, 'Ananda Victorious at the Shakespeare Drama Competition 2017', 'Ananda College emerged Champions at the finals of the 44th Annual Inter School Shakespeare Drama Competition, held over the past weekend at the Bishop’s College Auditorium. Ananda’s Lakshitha Edirisinghe won the Award for Best Supporting Actor. The Shakespeare Drama Competition, organised by the Rotary Club of Colombo North and the Colombo YMCA, is the most prestigious inter school competition conducted in English in Sri Lanka. This is Ananda’s second victory at this event, following its inaugural Championship win three years ago. Ananda has entered the finals on four occasions since 2011, having taken part in the contest every year from 2006 onwards. The other schools at this year’s final were Wesley College, D. S. Senanayake College and Maris Stella College. 15 other boys’ schools, including past champions St. Thomas’, Royal, St. Joseph’s, St. Peter’s and Trinity, did not make it past the semifinal. Ave Maria Convent Negombo was adjudged winners of the girls’ competition, held the previous night. Ananda’s production of Hamlet featured outstanding performances by Thilina Udayaratne in the title role, Lakshitha Edirisinghe as Polonius, Gavin Ranasinghe as Horatio, Rithmaka Karunaratne as the First Player, Nimsara Premaratne as Rosencrantz, Thejana de Silva as Guildenstern, Pankaja Kulatunga as Claudius, Haritha Gamage as Gertrude, and Malith Kulatillake as Marcellus. They were ably supported by an ensemble cast which also included a handful of novice actors. Ananda’s Principal Mr. S. M. Keerthirathna, Drama Circle Master in Charge Mr. R. R. Rohana, the families of the participants, and many alumni and students were at the final to witness Ananda’s victory. The finals’ judges were veteran theatre practitioner Jehan Aloysius, Tanya Warnakularusiya of the British Council, and Dr. Harshana Rambukwella of the Open University. Ananda was adjudged a clear winner, scoring 271 points while 1st Runner Up Wesley College scored 240. Ananda’s entry was directed by Nishantha de Silva, Ishtartha Wellaboda and Rajitha Hettiarachchi, and produced by AnandaDrama (www.anandadrama.org), the nonprofit organisation which supports theatre activities at the school whilst staging plays for Sri Lankan theatre goers. AnandaDrama’s next play, the original political satire Picket Republic, will be staged at the Lionel Wendt Theatre in December 2017. ', '1524710333_Ananda-college-book (1).jpg', '1', '2018-04-09'),
(24, 'Old Anandian becomes the Grand Prize winner of the 2017 Nature’s Best Windland Smith Rice Awards', 'TestOld Anandian Lakshitha Karunarathna becomes the first Sri Lankan to win the Grand Prize of the Nature’s Best Windland Smith Rice Awards. The 2017 award has gone to Lakshitha’s entry of a pride of huddling African lionesses. This image was selected from 26,000 entries submitted from all over the world.Lakshitha picked up the award at an event held at theSmithsonian Natural History Museum in Washington DC on the 16th of November. This winning images was taken at the Kenya’s Maasai Mara National Reserve. Priyanga Wickramasinghe, the acting ambassador of Sri Lanka in US presented the award. Lakshitha Karunarathna’s winning entry is on display until September 2018 at the Smithsonian National Museum of Natural History. ', '1524684545_uae3_15236372475ad0dbffda55f.0.jpg', 'uae3_15236372475ad0dbffda55f.0.jpg', '2018-04-09'),
(25, 'The majestic “Sathmahalaâ€ is now under construction', 'The proposed construction of the “Sathmahalaâ€ is now underway.', '1524684807_uae4_15236364885ad0d908ca99a.0.png', 'uae4_15236364885ad0d908ca99a.0.png', '2018-04-09'),
(26, 'Blood Donation camp organized by Old Anandians’ 70-75 Group', 'Blood Donation camp organized by Old Anandians’ 70-75 Group, 28th October 2017 for the 21st consecutive year to mark the College founders’ day – 85 donors donated blood.Blood Donation camp organized by Old Anandians’ 70-75 Group, 28th October 2017 for the 21st consecutive year to mark the College founders’ day – 85 donors donated blood.Blood Donation camp organized by Old Anandians’ 70-75 Group, 28th October 2017 for the 21st consecutive year to mark the College founders’ day – 85 donors donated blood.Blood Donation camp organized by Old Anandians’ 70-75 Group, 28th October 2017 for the 21st consecutive year to mark the College founders’ day – 85 donors donated blood.Blood Donation camp organized by Old Anandians’ 70-75 Group, 28th October 2017 for the 21st consecutive year to mark the College founders’ day – 85 donors donated blood.Blood Donation camp organized by Old Anandians’ 70-75 Group, 28th October 2017 for the 21st consecutive year to mark the College founders’ day – 85 donors donated blood.Blood Donation camp organized by Old Anandians’ 70-75 Group, 28th October 2017 for the 21st consecutive year to mark the College founders’ day – 85 donors donated blood. ', '1524710077_Blood-Donation-2017-poster.png', '1', '2018-04-09'),
(27, 'Sahana Show', 'Sahana Annual Music Concert', '1549707438_1.jpg', '1', '2019-03-01');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `events`
--
ALTER TABLE `events`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gallery`
--
ALTER TABLE `gallery`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `images`
--
ALTER TABLE `images`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `members`
--
ALTER TABLE `members`
  ADD PRIMARY KEY (`table_id`),
  ADD UNIQUE KEY `mem_id` (`mem_id`);

--
-- Indexes for table `news`
--
ALTER TABLE `news`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT for table `gallery`
--
ALTER TABLE `gallery`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=124;

--
-- AUTO_INCREMENT for table `images`
--
ALTER TABLE `images`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=104;

--
-- AUTO_INCREMENT for table `members`
--
ALTER TABLE `members`
  MODIFY `table_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `news`
--
ALTER TABLE `news`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
COMMIT;

