Compare commits
10 Commits
82edc661af
...
9d83dc3ccb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d83dc3ccb | ||
|
|
769edb667b | ||
|
|
a7ef7d5168 | ||
|
|
cb7a626e61 | ||
|
|
f65139c9c4 | ||
|
|
c996d14041 | ||
|
|
f34ad5968f | ||
|
|
58d05e70c4 | ||
|
|
153d32fef7 | ||
|
|
e8e6054955 |
445
VISA.sql
Normal file
@ -0,0 +1,445 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.5.2
|
||||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Host: localhost
|
||||
-- Generation Time: Aug 11, 2018 at 01:17 PM
|
||||
-- Server version: 10.1.10-MariaDB
|
||||
-- PHP Version: 7.0.2
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `VISA`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `ci_sessions`
|
||||
--
|
||||
|
||||
CREATE TABLE `ci_sessions` (
|
||||
`session_id` varchar(40) NOT NULL DEFAULT '0',
|
||||
`ip_address` varchar(45) NOT NULL DEFAULT '0',
|
||||
`user_agent` varchar(120) NOT NULL,
|
||||
`last_activity` int(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`user_data` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_CityMaster`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_CityMaster` (
|
||||
`CityCode` int(4) NOT NULL,
|
||||
`CityName` varchar(80) NOT NULL,
|
||||
`CityDescription` varchar(300) NOT NULL,
|
||||
`IsActive` tinyint(2) NOT NULL DEFAULT '1'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Tab_CityMaster`
|
||||
--
|
||||
|
||||
INSERT INTO `Tab_CityMaster` (`CityCode`, `CityName`, `CityDescription`, `IsActive`) VALUES
|
||||
(1, 'chennai city', 'dnfkvdfkb ndbndfnbndf chennai', 1),
|
||||
(2, 'vnjfsnjvnsz', 'mjvncjkvnx', 1),
|
||||
(3, 'mv', ' v nkcx nv xcndsf', 0),
|
||||
(4, ' vcnzx vnz xv', 'nc vn xckn vknzcx', 1),
|
||||
(5, 'n mnv mxcnz', 'n zvn zxn vz', 1),
|
||||
(6, 'city1', 'nil', 0),
|
||||
(7, 'new city', 'new city', 1),
|
||||
(8, 'one two three', 'four five six seven', 0);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_CountryMaster`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_CountryMaster` (
|
||||
`CountryCode` int(3) NOT NULL,
|
||||
`CountryName` varchar(80) NOT NULL,
|
||||
`CapitalCity` varchar(80) NOT NULL,
|
||||
`CountryDescription` varchar(300) NOT NULL,
|
||||
`IsActive` tinyint(2) NOT NULL DEFAULT '1'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Tab_CountryMaster`
|
||||
--
|
||||
|
||||
INSERT INTO `Tab_CountryMaster` (`CountryCode`, `CountryName`, `CapitalCity`, `CountryDescription`, `IsActive`) VALUES
|
||||
(1, 'gygyvgh', 'gvgvghvgv', '<p>This is my textarea to be replaced with CKEditor.</p>\r\n', 0),
|
||||
(2, 'ncvxbxc', 'ncbxnvc', '<p>nmcbbzxcm</p>\r\n', 0),
|
||||
(3, 'country 1', 'city 1', '<p>nil</p>\r\n', 1),
|
||||
(4, 'country 2', 'city 2', '<p>nil</p>\r\n', 0),
|
||||
(5, 'country 3', 'city 3', '<p>nil</p>\r\n', 1),
|
||||
(6, 'name', 'sfgvfsdg', '<p> vbcbcc</p>\r\n', 1),
|
||||
(7, 'new country edited', 'new capital edited', '<p>new description edited</p>\r\n', 0),
|
||||
(8, 'Asia', 'something', '<p>new country </p>\r\n', 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_Documents`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_Documents` (
|
||||
`DocumentCode` int(4) NOT NULL,
|
||||
`DocumentName` varchar(80) NOT NULL,
|
||||
`Document` varchar(300) NOT NULL,
|
||||
`DocumentDescription` varchar(300) NOT NULL,
|
||||
`IsActive` tinyint(2) NOT NULL DEFAULT '1'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Tab_Documents`
|
||||
--
|
||||
|
||||
INSERT INTO `Tab_Documents` (`DocumentCode`, `DocumentName`, `Document`, `DocumentDescription`, `IsActive`) VALUES
|
||||
(1, 'dai loose suren suma iru da', 'visa_document.pdf', 'document file upload ', 1),
|
||||
(2, 'document owo three', 'hero-bg.jpg', 'document 1 owo three', 1),
|
||||
(3, 'visa PPT doc', '0', 'visa doc', 0),
|
||||
(4, 'checking document reset', 'w3validator.png', 'reset buuton', 1),
|
||||
(5, 'testing document 2', '', 'nil', 1),
|
||||
(6, 'njik', '', 'nil', 1),
|
||||
(7, 'new check', 'imageedit_1_3095006469.png', 'nil', 0);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_LastLogin`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_LastLogin` (
|
||||
`id` bigint(20) NOT NULL,
|
||||
`userId` bigint(20) NOT NULL,
|
||||
`sessionData` varchar(2048) NOT NULL,
|
||||
`machineIp` varchar(1024) NOT NULL,
|
||||
`userAgent` varchar(128) NOT NULL,
|
||||
`agentString` varchar(1024) NOT NULL,
|
||||
`platform` varchar(128) NOT NULL,
|
||||
`createdDtm` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Tab_LastLogin`
|
||||
--
|
||||
|
||||
INSERT INTO `Tab_LastLogin` (`id`, `userId`, `sessionData`, `machineIp`, `userAgent`, `agentString`, `platform`, `createdDtm`) VALUES
|
||||
(1, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-07-31 10:33:08'),
|
||||
(2, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-01 10:16:32'),
|
||||
(3, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-01 10:20:54'),
|
||||
(4, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-01 10:32:10'),
|
||||
(5, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-01 11:09:37'),
|
||||
(6, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-01 18:45:44'),
|
||||
(7, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-02 10:24:05'),
|
||||
(8, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-02 11:53:48'),
|
||||
(9, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-02 15:20:31'),
|
||||
(10, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-02 15:38:19'),
|
||||
(11, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-02 16:05:23'),
|
||||
(12, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-02 17:15:19'),
|
||||
(13, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-03 10:39:04'),
|
||||
(14, 11, '{"role":"2","roleText":"Manager","name":"two"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-03 13:17:06'),
|
||||
(15, 12, '{"role":"2","roleText":"Manager","name":"suren"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-03 13:20:05'),
|
||||
(16, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-03 16:55:50'),
|
||||
(17, 14, '{"role":"2","roleText":"Manager","name":"hari"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-03 16:58:24'),
|
||||
(18, 14, '{"role":"2","roleText":"Manager","name":"hari"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-03 17:00:00'),
|
||||
(19, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-03 17:07:00'),
|
||||
(20, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-03 18:21:35'),
|
||||
(21, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-06 10:15:17'),
|
||||
(22, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-06 11:23:37'),
|
||||
(23, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 10:26:24'),
|
||||
(24, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 11:23:52'),
|
||||
(25, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 11:46:07'),
|
||||
(26, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 12:18:28'),
|
||||
(27, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 12:20:46'),
|
||||
(28, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 15:59:54'),
|
||||
(29, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 16:02:56'),
|
||||
(30, 16, '{"role":"2","roleText":"Register Users","name":"veera"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 16:39:08'),
|
||||
(31, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-07 16:45:45'),
|
||||
(32, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 10:08:08'),
|
||||
(33, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 10:12:13'),
|
||||
(34, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 10:18:05'),
|
||||
(35, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 12:41:28'),
|
||||
(36, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 14:23:37'),
|
||||
(37, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 14:28:16'),
|
||||
(38, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 14:32:26'),
|
||||
(39, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 15:22:19'),
|
||||
(40, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 17:18:56'),
|
||||
(41, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 17:22:40'),
|
||||
(42, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 18:47:23'),
|
||||
(43, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-09 18:52:14'),
|
||||
(44, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-10 10:56:51'),
|
||||
(45, 16, '{"role":"2","roleText":"Register Users","name":"raj"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-10 10:57:32'),
|
||||
(46, 17, '{"role":"2","roleText":"Register Users","name":"suri"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-10 11:38:38'),
|
||||
(47, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-10 12:27:30'),
|
||||
(48, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-10 12:39:45'),
|
||||
(49, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-10 14:23:22'),
|
||||
(50, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-10 17:14:00'),
|
||||
(51, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-11 10:43:50'),
|
||||
(52, 1, '{"role":"1","roleText":"System Administrator","name":"System Administrator"}', '::1', 'Chrome 59.0.3071.86', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36', 'Linux', '2018-08-11 10:56:24');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_Register`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_Register` (
|
||||
`RegNo` int(4) NOT NULL,
|
||||
`Name` varchar(30) NOT NULL,
|
||||
`PhoneNo` int(12) NOT NULL,
|
||||
`Email` varchar(50) NOT NULL,
|
||||
`AlternateEmail` varchar(50) DEFAULT NULL,
|
||||
`Designation` varchar(80) DEFAULT NULL,
|
||||
`CompanyName` varchar(80) DEFAULT NULL,
|
||||
`CityName` varchar(25) DEFAULT NULL,
|
||||
`CountryName` varchar(25) DEFAULT NULL,
|
||||
`Address` varchar(300) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Tab_Register`
|
||||
--
|
||||
|
||||
INSERT INTO `Tab_Register` (`RegNo`, `Name`, `PhoneNo`, `Email`, `AlternateEmail`, `Designation`, `CompanyName`, `CityName`, `CountryName`, `Address`) VALUES
|
||||
(1, 'one', 1234567890, 'one@example.com', 'two@example.com', 'nil', 'venba', 'chennai', 'india', 'first nagar,chennai'),
|
||||
(2, 'two', 1234567899, 'two@eg.com', 'two@eg.com', 'nil', 'vit', 'three', 'four', 'five'),
|
||||
(3, 'suren', 2147483647, 'venba@gmail.com', 'venba2@gmail.com', 'developer', 'venba', 'chennai', 'India', 'gowrivakkam ,chennai -17'),
|
||||
(4, 'suri', 568923417, 'suri@gmail.com', 'suri1@gmail.com', 'developer', 'software', 'chennai', 'India', 'gowrivakkam ,chennai -17'),
|
||||
(5, 'hari', 568923410, 'hari@gmail.com', 'hari2@gmail.com', 'tester', 'HCL', 'chennai', 'India', 'guindy'),
|
||||
(6, 'saravana', 2147483647, 'saravana@gmail.com', 'sara@gmail.com', 'software', 'Infotech', 'chennai', 'India', 'guindy,chennai'),
|
||||
(7, 'raj', 2147483647, 'raj@gmail.com', 'raja@gmail.com', 'tester', 'Apple', 'inout street', 'India', 'chennai,india'),
|
||||
(8, 'suri', 2147483647, 'suri123@gmail.com', 'suri1234@gmail.com', 'software developer', 'Accenture', 'chennai', 'India', 'sholinganallur');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_ResetPassword`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_ResetPassword` (
|
||||
`id` bigint(20) NOT NULL,
|
||||
`email` varchar(128) NOT NULL,
|
||||
`activation_id` varchar(32) NOT NULL,
|
||||
`agent` varchar(512) NOT NULL,
|
||||
`client_ip` varchar(32) NOT NULL,
|
||||
`isDeleted` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`createdBy` bigint(20) NOT NULL DEFAULT '1',
|
||||
`createdDtm` datetime NOT NULL,
|
||||
`updatedBy` bigint(20) DEFAULT NULL,
|
||||
`updatedDtm` datetime DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_Roles`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_Roles` (
|
||||
`roleId` tinyint(4) NOT NULL COMMENT 'role id',
|
||||
`role` varchar(50) NOT NULL COMMENT 'role text'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Tab_Roles`
|
||||
--
|
||||
|
||||
INSERT INTO `Tab_Roles` (`roleId`, `role`) VALUES
|
||||
(1, 'System Administrator'),
|
||||
(2, 'Register Users');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_Users`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_Users` (
|
||||
`userId` int(11) NOT NULL,
|
||||
`email` varchar(128) NOT NULL COMMENT 'login email',
|
||||
`password` varchar(128) NOT NULL COMMENT 'hashed login password',
|
||||
`name` varchar(128) DEFAULT NULL COMMENT 'full name of user',
|
||||
`mobile` varchar(20) DEFAULT NULL,
|
||||
`roleId` tinyint(4) NOT NULL,
|
||||
`isDeleted` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`createdBy` int(11) NOT NULL,
|
||||
`createdDtm` datetime NOT NULL,
|
||||
`updatedBy` int(11) DEFAULT NULL,
|
||||
`updatedDtm` datetime DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Tab_Users`
|
||||
--
|
||||
|
||||
INSERT INTO `Tab_Users` (`userId`, `email`, `password`, `name`, `mobile`, `roleId`, `isDeleted`, `createdBy`, `createdDtm`, `updatedBy`, `updatedDtm`) VALUES
|
||||
(1, 'admin@Visa.com', '$2y$10$Z.JwBMjSgKrWOYPK3Gs/wOb.zEL3816sChRNWr2F4cujf9VDVXOae', 'System Administrator', '9890098900', 1, 0, 0, '2015-07-01 18:56:49', 1, '2018-07-30 12:21:25'),
|
||||
(2, 'manager@Visa.com', '$2y$10$q3/bzbhAviWTh9O9XymWr.awSwSJE45cSQJ8RbGbNAAEJ1p2w5Ksa', 'Manager', '9890098900', 2, 0, 1, '2016-12-09 17:49:56', 1, '2018-01-12 07:22:11'),
|
||||
(3, 'employee@Visa.com', '$2y$10$q3/bzbhAviWTh9O9XymWr.awSwSJE45cSQJ8RbGbNAAEJ1p2w5Ksa', 'Employee', '9890098900', 2, 0, 1, '2016-12-09 17:50:22', 3, '2018-01-04 07:58:28'),
|
||||
(10, 'one@example.com', '$2y$10$hU2MPI3ifc/9JWJiNKqzh.ALn9S8fHeYb8Rs65vw7BiLS0zSa0GIq', 'one', NULL, 2, 0, 0, '2018-08-03 09:43:30', NULL, NULL),
|
||||
(11, 'two@eg.com', '$2y$10$RPeeXSuBQ21TZG1VhYy4bu5CAFE7vxyu5hnTIL.9anwzKRHQQDkCi', 'two', '1234567899', 2, 0, 0, '2018-08-03 09:46:07', NULL, NULL),
|
||||
(12, 'venba@gmail.com', '$2y$10$qS6DdmwCQua337tptViJDe7xjs3cbnhkxepYr0A.24wwjKBK4mqlS', 'suren', '5689421342', 2, 0, 0, '2018-08-03 09:48:48', NULL, NULL),
|
||||
(13, 'suri@gmail.com', '$2y$10$t96SdsTZsUd/kFFbhfTGVuBNbQeMODRYcFDx3I4HnqIPMWE0M/djq', 'suri', '568923417', 2, 0, 0, '2018-08-03 13:14:41', NULL, NULL),
|
||||
(14, 'hari@gmail.com', '$2y$10$3WUbZ58HeGF/XSj/VAkyWuar2gQfhlb2RncCqpGImCkMkfM7/VaSu', 'hari', '568923410', 2, 0, 0, '2018-08-03 13:28:07', NULL, NULL),
|
||||
(15, 'saravana@gmail.com', '$2y$10$tMzh.t7ptNZhUpKAHR5.kumhdmhnArAiIS9L8CwpFJK2mmsRm9ZKu', 'saravana', '7894561230', 0, 0, 0, '2018-08-07 07:48:21', NULL, NULL),
|
||||
(16, 'raj@gmail.com', '$2y$10$mFJ/EeQgctZkCU485n4qTeevaijBeySpRlq/AKGMZYvqzd8s295Ru', 'raj', '2147483647', 2, 0, 0, '2018-08-07 07:50:51', NULL, NULL),
|
||||
(17, 'suri123@gmail.com', '$2y$10$OlIfpTILTHsi3Kpj5twTY.Rv.lj2zKc4wi8W45LmIHoA7WlYDRGUS', 'suri', '5689234170', 2, 0, 0, '2018-08-10 08:08:21', NULL, NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `Tab_VisaTypeMaster`
|
||||
--
|
||||
|
||||
CREATE TABLE `Tab_VisaTypeMaster` (
|
||||
`VisaCode` int(4) NOT NULL,
|
||||
`VisaName` varchar(80) NOT NULL,
|
||||
`VisaDescription` varchar(300) NOT NULL,
|
||||
`IsActive` tinyint(2) NOT NULL DEFAULT '1'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Tab_VisaTypeMaster`
|
||||
--
|
||||
|
||||
INSERT INTO `Tab_VisaTypeMaster` (`VisaCode`, `VisaName`, `VisaDescription`, `IsActive`) VALUES
|
||||
(1, 'fgdhgfdsdf', 'dsmnbdfjngb', 1),
|
||||
(2, 'snkvnsnkdn', 'nds vds', 1),
|
||||
(3, 'msdnkvskdv', 'nmv ndsvksd', 0),
|
||||
(4, 'vndmvmsd', 'vmsdn', 1),
|
||||
(5, 'vistor', 'nil', 1),
|
||||
(6, 'visa 3', 'sdfa', 0),
|
||||
(7, 'UK visa', 'uk', 1),
|
||||
(8, 'qwertyu', 'qwertyu', 0);
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `ci_sessions`
|
||||
--
|
||||
ALTER TABLE `ci_sessions`
|
||||
ADD PRIMARY KEY (`session_id`),
|
||||
ADD KEY `last_activity_idx` (`last_activity`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_CityMaster`
|
||||
--
|
||||
ALTER TABLE `Tab_CityMaster`
|
||||
ADD PRIMARY KEY (`CityCode`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_CountryMaster`
|
||||
--
|
||||
ALTER TABLE `Tab_CountryMaster`
|
||||
ADD PRIMARY KEY (`CountryCode`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_Documents`
|
||||
--
|
||||
ALTER TABLE `Tab_Documents`
|
||||
ADD PRIMARY KEY (`DocumentCode`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_LastLogin`
|
||||
--
|
||||
ALTER TABLE `Tab_LastLogin`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_Register`
|
||||
--
|
||||
ALTER TABLE `Tab_Register`
|
||||
ADD PRIMARY KEY (`RegNo`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_ResetPassword`
|
||||
--
|
||||
ALTER TABLE `Tab_ResetPassword`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_Roles`
|
||||
--
|
||||
ALTER TABLE `Tab_Roles`
|
||||
ADD PRIMARY KEY (`roleId`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_Users`
|
||||
--
|
||||
ALTER TABLE `Tab_Users`
|
||||
ADD PRIMARY KEY (`userId`);
|
||||
|
||||
--
|
||||
-- Indexes for table `Tab_VisaTypeMaster`
|
||||
--
|
||||
ALTER TABLE `Tab_VisaTypeMaster`
|
||||
ADD PRIMARY KEY (`VisaCode`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_CityMaster`
|
||||
--
|
||||
ALTER TABLE `Tab_CityMaster`
|
||||
MODIFY `CityCode` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_CountryMaster`
|
||||
--
|
||||
ALTER TABLE `Tab_CountryMaster`
|
||||
MODIFY `CountryCode` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_Documents`
|
||||
--
|
||||
ALTER TABLE `Tab_Documents`
|
||||
MODIFY `DocumentCode` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_LastLogin`
|
||||
--
|
||||
ALTER TABLE `Tab_LastLogin`
|
||||
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_Register`
|
||||
--
|
||||
ALTER TABLE `Tab_Register`
|
||||
MODIFY `RegNo` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_ResetPassword`
|
||||
--
|
||||
ALTER TABLE `Tab_ResetPassword`
|
||||
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_Roles`
|
||||
--
|
||||
ALTER TABLE `Tab_Roles`
|
||||
MODIFY `roleId` tinyint(4) NOT NULL AUTO_INCREMENT COMMENT 'role id', AUTO_INCREMENT=4;
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_Users`
|
||||
--
|
||||
ALTER TABLE `Tab_Users`
|
||||
MODIFY `userId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
|
||||
--
|
||||
-- AUTO_INCREMENT for table `Tab_VisaTypeMaster`
|
||||
--
|
||||
ALTER TABLE `Tab_VisaTypeMaster`
|
||||
MODIFY `VisaCode` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
@ -58,8 +58,8 @@ $autoload['packages'] = array();
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
$autoload['libraries'] = array();
|
||||
//$autoload['libraries'] = array('database', 'session','BaseController');
|
||||
//$autoload['libraries'] = array();
|
||||
$autoload['libraries'] = array('database', 'session');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
@ -90,7 +90,7 @@ $autoload['drivers'] = array();
|
||||
|
|
||||
| $autoload['helper'] = array('url', 'file');
|
||||
*/
|
||||
$autoload['helper'] = array('url');
|
||||
$autoload['helper'] = array('url', 'file','cias_helper');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
||||
@ -39,7 +39,7 @@ $config['base_url'] = $base;
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
$config['index_page'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@ -83,3 +83,10 @@ defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user
|
||||
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
|
||||
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||
|
||||
|
||||
|
||||
/**** USER DEFINED CONSTANTS **********/
|
||||
|
||||
define('ROLE_ADMIN', '1');
|
||||
define('REGISTER_USERS', '2');
|
||||
@ -74,14 +74,10 @@ $active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
|
||||
// $hostname ="localhost";
|
||||
// $username ="root";
|
||||
// $password ="";
|
||||
// $database ="mydb";
|
||||
$hostname = 'sidharthindustries.com';
|
||||
$username = 'kasiram9_Siddh';
|
||||
$password = 'sidh@1234';
|
||||
$database = 'kasiram9_SIADEV';
|
||||
$hostname ="localhost";
|
||||
$username ="root";
|
||||
$password ="";
|
||||
$database ="VISA";
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
|
||||
@ -49,16 +49,66 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
| Examples: my-controller/index -> my_controller/index
|
||||
| my-controller/my-method -> my_controller/my_method
|
||||
*/
|
||||
$route['default_controller'] = 'Dashboard_Controller';
|
||||
//$route['default_controller'] = 'Login';
|
||||
|
||||
$route['default_controller'] = 'Login_Controller';
|
||||
|
||||
$route['404_override'] = '';
|
||||
$route['translate_uri_dashes'] = FALSE;
|
||||
|
||||
$route['Routes'] = 'Dashboard_Controller/index';
|
||||
$route['Dashboard'] = 'Dashboard_Controller/Dashboard';
|
||||
|
||||
$route['country_master'] = 'Dashboard_Controller/country_master';
|
||||
$route['Add_country_master'] = 'Dashboard_Controller/Add_country_master';
|
||||
$route['Update_country_master'] = 'Dashboard_Controller/Update_country_master';
|
||||
$route['Get_country_master'] = 'Dashboard_Controller/Get_country_master';
|
||||
|
||||
$route['city_master'] = 'Dashboard_Controller/city_master';
|
||||
$route['Add_city_master'] = 'Dashboard_Controller/Add_city_master';
|
||||
$route['Update_city_master'] = 'Dashboard_Controller/Update_city_master';
|
||||
$route['GetAll_city_master'] = 'Dashboard_Controller/GetAll_city_master';
|
||||
|
||||
|
||||
$route['visa_type_master'] = 'Dashboard_Controller/visa_type_master';
|
||||
$route['Add_visa_type_master'] = 'Dashboard_Controller/Add_visa_type_master';
|
||||
$route['Update_visa_type_master'] = 'Dashboard_Controller/Update_visa_type_master';
|
||||
$route['GetAll_visa_type'] = 'Dashboard_Controller/GetAll_visa_type_master';
|
||||
|
||||
$route['document_master'] = 'Dashboard_Controller/document_master';
|
||||
$route['visa_type_master'] = 'Dashboard_Controller/visa_type_master';
|
||||
$route['Add_document_master'] = 'Dashboard_Controller/Add_document_master';
|
||||
$route['Update_document_master'] = 'Dashboard_Controller/Update_document_master';
|
||||
$route['GetAll_document_master'] = 'Dashboard_Controller/GetAll_document_master';
|
||||
|
||||
$route['country_visa_details'] = 'Dashboard_Controller/country_visa_details';
|
||||
|
||||
$route['favourite'] = 'Favourite_Controller/favourite';
|
||||
|
||||
|
||||
$route['loginMe'] = 'Login_Controller/loginMe';
|
||||
$route['forgotPassword'] = "Login_Controller/forgotPassword";
|
||||
$route['resetPasswordUser'] = "Login_Controller/resetPasswordUser";
|
||||
$route['resetPasswordConfirmUser'] = "Login_Controller/resetPasswordConfirmUser";
|
||||
$route['createPasswordUser'] = "Login_Controller/createPasswordUser";
|
||||
$route['register'] = 'Login_Controller/register';
|
||||
$route['Add_Register'] = 'Login_Controller/Add_Register';
|
||||
|
||||
$route['user_details'] = 'User_Controller/user_details_master';
|
||||
|
||||
$route['profile'] = 'User_Controller/Profile';
|
||||
$route['Updateprofile'] = 'User_Controller/Update_Profile';
|
||||
|
||||
|
||||
$route['logout'] = 'User_Controller/logout';
|
||||
$route['userListing'] = 'User_Controller/userListing';
|
||||
$route['addNew'] = "User_Controller/addNew";
|
||||
$route['addNewUser'] = "User_Controller/addNewUser";
|
||||
$route['editOld'] = "User_Controller/editOld";
|
||||
$route['editUser'] = "User_Controller/editUser";
|
||||
$route['deleteUser'] = "User_Controller/deleteUser";
|
||||
$route['loadChangePass'] = "User_Controller/loadChangePass";
|
||||
$route['changePassword'] = "User_Controller/changePassword";
|
||||
$route['checkEmailExists'] = "User_Controller/checkEmailExists";
|
||||
$route['login-history'] = "User_Controller/loginHistoy";
|
||||
|
||||
/* End of file routes.php */
|
||||
/* Location: ./application/config/routes.php */
|
||||
@ -2,10 +2,10 @@
|
||||
require APPPATH . '/libraries/BaseController.php';
|
||||
/**
|
||||
* Class : Dashboard_Controller
|
||||
* Dashboard_Controller class to control the Master Data.
|
||||
* Dashboard_Controller class to control the Dashboard Contents and Master Data.
|
||||
* @author : Surendiran.M
|
||||
* @version : 1.1
|
||||
* @since : 27/07/2018
|
||||
* @since : 27 July 2018
|
||||
*/
|
||||
class Dashboard_Controller extends BaseController
|
||||
{
|
||||
@ -14,6 +14,8 @@ class Dashboard_Controller extends BaseController
|
||||
*/
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$this->load->model('Dashboard_Model');
|
||||
$this->isLoggedIn();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -21,9 +23,7 @@ class Dashboard_Controller extends BaseController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
|
||||
|
||||
$this->loadViews('Dashboard', NULL);
|
||||
$this->Dashboard();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -31,26 +31,327 @@ class Dashboard_Controller extends BaseController
|
||||
*/
|
||||
function Dashboard()
|
||||
{
|
||||
|
||||
$this->loadViews('Dashboard', NULL);
|
||||
$this->global['pageTitle'] = 'Visa : Dashboard';
|
||||
$data['usercount']= $this->Dashboard_Model->usercount();
|
||||
$this->loadViews('Dashboard', $this->global,$data,NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load the Country Master page
|
||||
*/
|
||||
function country_master(){
|
||||
$this->loadViews('country_master',NULL);
|
||||
$this->global['pageTitle'] = 'Visa : Country Master';
|
||||
$data['getcountry']= $this->Dashboard_Model->Get_CountryMaster($Cc='');
|
||||
$this->loadViews('country_master', $this->global,$data , NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* To Store/Insert Country Master Values
|
||||
*/
|
||||
function Add_country_master(){
|
||||
|
||||
$CountryMasterDatas =
|
||||
array( 'CountryName'=>$this->input->post('CountryName'),
|
||||
'CapitalCity'=>$this->input->post('CapitalCity'),
|
||||
'CountryDescription'=>$this->input->post('Editor'),
|
||||
'IsActive'=>$this->input->post('IsActive') != '' ? 1 : 0);
|
||||
|
||||
|
||||
$Added = $this->Dashboard_Model->Add_CountryMaster($CountryMasterDatas);
|
||||
|
||||
echo $Added != "" ? "<script>alert('Created Successfully ! Our Country Code:$Added');window.location.href='country_master';</script>"
|
||||
: "<script>alert('Sorry Not Created ! Try Again'); window.location.href='country_master';</script>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To Update Country Master Values
|
||||
*/
|
||||
function Update_country_master(){
|
||||
|
||||
$CountryCode = $this->input->post('HideCountryCode'); // value getting from hidden field
|
||||
|
||||
$CountryMasterDatas =
|
||||
array( 'CountryName'=>$this->input->post('EditCountryName'),
|
||||
'CapitalCity'=>$this->input->post('EditCapitalCity'),
|
||||
'CountryDescription'=>$this->input->post('EditEditor'),
|
||||
'IsActive'=>$this->input->post('EditIsActive') != '' ? 1 : 0);
|
||||
|
||||
$Edited = $this->Dashboard_Model->Update_CountryMaster($CountryMasterDatas, $CountryCode);
|
||||
|
||||
echo $Edited == True ? "<script>alert('Successfully Updated $CountryCode Details! ');window.location.href='country_master';</script>"
|
||||
: "<script>alert('Sorry Not Updated ! Try Again'); window.location.href='country_master';</script>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* View - country_master
|
||||
* Get an argument From Ajax Call - 'arg' is COUNTRYCODE
|
||||
* Return Datas to View Through JSON_encode
|
||||
*/
|
||||
function Get_country_master() {
|
||||
|
||||
$CountryCode = $this->input->post('arg');
|
||||
|
||||
$EditIt = $this->Dashboard_Model->Get_CountryMaster($CountryCode);
|
||||
|
||||
echo json_encode($EditIt);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load the City Master page
|
||||
*/
|
||||
function city_master(){
|
||||
$this->loadViews('city_master',NULL);
|
||||
$this->global['pageTitle'] = 'Visa : Country Master';
|
||||
$data['getcity']= $this->Dashboard_Model->Get_CityMaster($citycode='');
|
||||
$this->loadViews('city_master', $this->global,$data , NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* To Store City Master Values
|
||||
*/
|
||||
function Add_city_master(){
|
||||
|
||||
$CityMasterDatas =
|
||||
array( 'CityName'=>$this->input->post('CityName'),
|
||||
'CityDescription'=>$this->input->post('CityDescription'),
|
||||
'IsActive'=>$this->input->post('IsActive') != '' ? 1 : 0);
|
||||
|
||||
$Added = $this->Dashboard_Model->Add_CityMaster($CityMasterDatas);
|
||||
|
||||
echo $Added != "" ? "<script>alert('Created Successfully ! City Code:$Added');window.location.href='city_master';</script>"
|
||||
: "<script>alert('Sorry Not Created ! Try Again '); window.location.href='city_master';</script>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To Update City Master Values
|
||||
*/
|
||||
function Update_city_master(){
|
||||
|
||||
$CityCode = $this->input->post('HideCityCode'); // value getting from hidden field
|
||||
|
||||
$CityMasterDatas =
|
||||
array( 'CityName'=>$this->input->post('EditCityName'),
|
||||
'CityDescription'=>$this->input->post('EditCityDescription'),
|
||||
'IsActive'=>$this->input->post('EditIsActive') != '' ? 1 : 0);
|
||||
|
||||
|
||||
$Edited = $this->Dashboard_Model->Update_CityMaster($CityMasterDatas, $CityCode);
|
||||
|
||||
echo $Edited == True ? "<script>alert('Successfully Updated!');window.location.href='city_master';</script>"
|
||||
: "<script>alert('Sorry Not Updated ! Try Again'); window.location.href='city_master';</script>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* View - city_master
|
||||
* Get an argument From Ajax Call - 'citycode' is CITYCODE
|
||||
* Return Datas to View Through JSON_encode
|
||||
*/
|
||||
function GetAll_city_master() {
|
||||
|
||||
$CityCode = $this->input->post('citycode');
|
||||
|
||||
$EditIt = $this->Dashboard_Model->Get_CityMaster($CityCode);
|
||||
|
||||
echo json_encode($EditIt);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load the Visa Type Master page
|
||||
*/
|
||||
function visa_type_master(){
|
||||
$this->loadViews('visa_type_master',NULL);
|
||||
$this->global['pageTitle'] = 'Visa : Visa Type Master';
|
||||
$data['getvisatype']= $this->Dashboard_Model->Get_VisaTypeMaster($VisaNo='');
|
||||
$this->loadViews('visa_type_master', $this->global,$data , NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* To Store Visa Type Master Values
|
||||
*/
|
||||
function Add_visa_type_master(){
|
||||
|
||||
$VisaTypeMasterDatas =
|
||||
array( 'VisaName'=>$this->input->post('VisaName'),
|
||||
'VisaDescription'=>$this->input->post('VisaDescription'),
|
||||
'IsActive'=>$this->input->post('IsActive') != '' ? 1 : 0);
|
||||
|
||||
|
||||
$Added = $this->Dashboard_Model->Add_VisaType($VisaTypeMasterDatas);
|
||||
|
||||
echo $Added != "" ? "<script>alert('Created Successfully ! Visa NO :$Added'); window.location.href='visa_type_master';</script>"
|
||||
: "<script>alert('Sorry Not Created ! Try Again'); window.location.href='visa_type_master';</script>";
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
* To Update Visa Type Master Values
|
||||
*/
|
||||
function Update_visa_type_master(){
|
||||
|
||||
$VisaCode = $this->input->post('HideVisaCode'); // value getting from hidden field
|
||||
|
||||
$VisaTypeMasterDatas =
|
||||
array( 'VisaName'=>$this->input->post('EditVisaName'),
|
||||
'VisaDescription'=>$this->input->post('EditVisaDescription'),
|
||||
'IsActive'=>$this->input->post('EditIsActive') != '' ? 1 : 0);
|
||||
|
||||
$Edited = $this->Dashboard_Model->Update_VisaType($VisaTypeMasterDatas,$VisaCode);
|
||||
|
||||
echo $Edited == True ? "<script>alert('Successfully Updated ! ');window.location.href='visa_type_master';</script>"
|
||||
: "<script>alert('Sorry Not Updated ! Try Again'); window.location.href='visa_type_master';</script>";
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* View - visa_type_master
|
||||
* Get an argument From Ajax Call - 'arg' is VisaNo
|
||||
* Return Datas to View Through JSON_encode
|
||||
*/
|
||||
function GetAll_visa_type_master() {
|
||||
|
||||
$VisaNo = $this->input->post('arg');
|
||||
|
||||
$EditIt = $this->Dashboard_Model->Get_VisaTypeMaster($VisaNo);
|
||||
|
||||
echo json_encode($EditIt);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function used to load the Document page
|
||||
*/
|
||||
function document_master(){
|
||||
$this->loadViews('document_upload',NULL);
|
||||
$this->global['pageTitle'] = 'Visa : Upload Document';
|
||||
$data['getdocument'] =$this->Dashboard_Model->Get_DocumentMaster($DocNo='');
|
||||
$this->loadViews('document_upload', $this->global,$data , NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* To Store Visa's File & Documents Datas
|
||||
*/
|
||||
function Add_document_master(){
|
||||
|
||||
|
||||
$DocumentMasterDatas =
|
||||
array( 'DocumentName'=>$this->input->post('DocumentName'),
|
||||
'Document'=> $this->uploadFile(),
|
||||
'DocumentDescription'=>$this->input->post('Description'),
|
||||
'IsActive'=>$this->input->post('IsActive') != '' ? 1 : 0);
|
||||
|
||||
|
||||
$Added = $this->Dashboard_Model->Add_Document($DocumentMasterDatas);
|
||||
|
||||
echo $Added != "" ? "<script>alert('Created Successfully ! Document NO :$Added'); window.location.href='document_master';</script>"
|
||||
: "<script>alert('Sorry Not Created ! Try Again '); window.location.href='document_master';</script>";
|
||||
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
* To Store Visa's File & Documents Datas
|
||||
*/
|
||||
function Update_document_master(){
|
||||
|
||||
$DocNo = $this->input->post('HideDocumentCode'); // value getting from hidden field
|
||||
$Doc = $this->input->post('HideDocument'); // value getting from hidden field
|
||||
|
||||
if(!empty($_FILES['DocumentFile']['name'])){
|
||||
//echo 'I Have File., So Upload me';
|
||||
$Docname = $this->uploadFile();
|
||||
}
|
||||
else{
|
||||
//echo 'I Have Empty File and Replace me as old file ';
|
||||
$Docname = $Doc;
|
||||
}
|
||||
|
||||
|
||||
//die();
|
||||
$DocumentMasterDatas =
|
||||
array( 'DocumentName'=>$this->input->post('EditDocumentName'),
|
||||
'Document'=>$Docname,
|
||||
'DocumentDescription'=>$this->input->post('EditDescription'),
|
||||
'IsActive'=>$this->input->post('EditIsActive') != '' ? 1 : 0);
|
||||
|
||||
|
||||
$Edited = $this->Dashboard_Model->Update_Document($DocumentMasterDatas,$DocNo);
|
||||
|
||||
echo $Edited == True ? "<script>alert('Successfully Updated ! ');window.location.href='document_master';</script>"
|
||||
: "<script>alert('Sorry Not Updated ! Try Again'); window.location.href='document_master';</script>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* View - document_upload
|
||||
* Get an argument From Ajax Call - 'arg' is DocumentNo
|
||||
* Return Datas to View Through JSON_encode
|
||||
*/
|
||||
function GetAll_document_master() {
|
||||
|
||||
$DocNo = $this->input->post('arg');
|
||||
|
||||
$EditIt = $this->Dashboard_Model->Get_DocumentMaster($DocNo);
|
||||
|
||||
echo json_encode($EditIt);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To upload files
|
||||
*/
|
||||
|
||||
function uploadFile()
|
||||
{
|
||||
$picture = '';
|
||||
if(!empty($_FILES['DocumentFile']['name']))
|
||||
{
|
||||
$config['upload_path'] = 'assets/dist/img/Uploads';
|
||||
$config['allowed_types'] = 'png|jpg|jpeg|pdf|docx';
|
||||
$config['file_name'] = $_FILES['DocumentFile']['name'];
|
||||
|
||||
//Load upload library and initialize configuration
|
||||
$this->load->library('upload',$config);
|
||||
$this->upload->initialize($config);
|
||||
if($this->upload->do_upload('DocumentFile'))
|
||||
{
|
||||
$uploadData = $this->upload->data();
|
||||
$picture = $uploadData['file_name'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = array('error' => $this->upload->display_errors());
|
||||
$picture = '';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$picture = '';
|
||||
}
|
||||
return $picture ;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function used to load the Dashboard page
|
||||
*/
|
||||
function country_visa_details(){
|
||||
$this->loadViews('country_visa_details',NULL);
|
||||
$this->global['pageTitle'] = 'Visa : CountryWise Visa Details';
|
||||
$data['records'] = $this->Dashboard_Model->Get_CountryMaster($Cc='');
|
||||
$this->loadViews('country_visa_details',$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
46
application/controllers/Error.php
Executable file
@ -0,0 +1,46 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Class : Error (ErrorController)
|
||||
* Error class to redirect on errors
|
||||
* @author : Kishor Mali
|
||||
* @version : 1.1
|
||||
* @since : 15 November 2016
|
||||
*/
|
||||
class Error extends CI_Controller
|
||||
{
|
||||
/**
|
||||
* This is default constructor of the class
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->isLoggedIn();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to check the user is logged in or not
|
||||
*/
|
||||
function isLoggedIn()
|
||||
{
|
||||
$isLoggedIn = $this->session->userdata('isLoggedIn');
|
||||
|
||||
if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
|
||||
{
|
||||
$this->load->view('login');
|
||||
}
|
||||
else
|
||||
{
|
||||
redirect('pageNotFound');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
29
application/controllers/Favourite_Controller.php
Executable file
@ -0,0 +1,29 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
require APPPATH . '/libraries/BaseController.php';
|
||||
/**
|
||||
* Class : Favourite_Controller
|
||||
* Favourite_Controller class to control the Favourite Menus.
|
||||
* @author : Surendiran.M
|
||||
* @version : 1.1
|
||||
* @since : 27/07/2018
|
||||
*/
|
||||
class Favourite_Controller extends BaseController
|
||||
{
|
||||
/**
|
||||
* This is default constructor of the class
|
||||
*/
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$this->isLoggedIn();
|
||||
// $this->load->model('Favourite_Model');
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load the Dashboard page
|
||||
*/
|
||||
function Favourite()
|
||||
{
|
||||
$this->global['pageTitle'] = 'Visa : Favourite';
|
||||
$this->loadViews('favourite', $this->global,NULL , NULL);
|
||||
}
|
||||
}
|
||||
299
application/controllers/Login_Controller.php
Executable file
@ -0,0 +1,299 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Class : Login_Controller
|
||||
* Login_Controller class to control to authenticate user credentials and starts user's session.
|
||||
* @author : Suren
|
||||
* @version : 1.1
|
||||
* @since : 30 July 2018
|
||||
*/
|
||||
class Login_Controller extends CI_Controller
|
||||
{
|
||||
/**
|
||||
* This is default constructor of the class
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Login_Model');
|
||||
}
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->isLoggedIn();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to check the user is logged in or not
|
||||
*/
|
||||
function isLoggedIn()
|
||||
{
|
||||
$isLoggedIn = $this->session->userdata('isLoggedIn');
|
||||
|
||||
if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
|
||||
{
|
||||
$this->load->view('login');
|
||||
}
|
||||
else
|
||||
{
|
||||
redirect('/Dashboard');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function used to logged in user
|
||||
*/
|
||||
public function loginMe()
|
||||
{
|
||||
$this->load->library('form_validation');
|
||||
|
||||
$this->form_validation->set_rules('email', 'Email', 'required|valid_email|max_length[128]|trim');
|
||||
$this->form_validation->set_rules('password', 'Password', 'required|max_length[32]');
|
||||
|
||||
if($this->form_validation->run() == FALSE)
|
||||
{
|
||||
$this->index();
|
||||
}
|
||||
else
|
||||
{
|
||||
$email = $this->security->xss_clean($this->input->post('email'));
|
||||
$password = $this->input->post('password');
|
||||
|
||||
$result = $this->Login_Model->loginMe($email, $password);
|
||||
|
||||
if(!empty($result))
|
||||
{
|
||||
$lastLogin = $this->Login_Model->lastLoginInfo($result->userId);
|
||||
|
||||
$sessionArray = array('userId'=>$result->userId,
|
||||
'role'=>$result->roleId,
|
||||
'roleText'=>$result->role,
|
||||
'name'=>$result->name,
|
||||
'lastLogin'=> $lastLogin->createdDtm,
|
||||
'isLoggedIn' => TRUE
|
||||
);
|
||||
|
||||
$this->session->set_userdata($sessionArray);
|
||||
|
||||
unset($sessionArray['userId'], $sessionArray['isLoggedIn'], $sessionArray['lastLogin']);
|
||||
|
||||
$loginInfo = array("userId"=>$result->userId, "sessionData" => json_encode($sessionArray), "machineIp"=>$_SERVER['REMOTE_ADDR'], "userAgent"=>getBrowserAgent(), "agentString"=>$this->agent->agent_string(), "platform"=>$this->agent->platform());
|
||||
|
||||
$this->Login_Model->lastLogin($loginInfo);
|
||||
|
||||
redirect('/Dashboard');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error', 'Email or password mismatch');
|
||||
|
||||
redirect('/Login_Controller');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load forgot password view
|
||||
*/
|
||||
// public function forgotPassword()
|
||||
// {
|
||||
// $isLoggedIn = $this->session->userdata('isLoggedIn');
|
||||
|
||||
// if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
|
||||
// {
|
||||
// $this->load->view('forgotPassword');
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// redirect('/Dashboard');
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* This function used to generate reset password request link
|
||||
*/
|
||||
function resetPasswordUser()
|
||||
{
|
||||
$status = '';
|
||||
|
||||
$this->load->library('form_validation');
|
||||
|
||||
$this->form_validation->set_rules('login_email','Email','trim|required|valid_email');
|
||||
|
||||
if($this->form_validation->run() == FALSE)
|
||||
{
|
||||
$this->forgotPassword();
|
||||
}
|
||||
else
|
||||
{
|
||||
$email = $this->security->xss_clean($this->input->post('login_email'));
|
||||
|
||||
if($this->Login_Model->checkEmailExist($email))
|
||||
{
|
||||
$encoded_email = urlencode($email);
|
||||
|
||||
$this->load->helper('string');
|
||||
$data['email'] = $email;
|
||||
$data['activation_id'] = random_string('alnum',15);
|
||||
$data['createdDtm'] = date('Y-m-d H:i:s');
|
||||
$data['agent'] = getBrowserAgent();
|
||||
$data['client_ip'] = $this->input->ip_address();
|
||||
|
||||
$save = $this->Login_Model->resetPasswordUser($data);
|
||||
|
||||
if($save)
|
||||
{
|
||||
$data1['reset_link'] = base_url() . "resetPasswordConfirmUser/" . $data['activation_id'] . "/" . $encoded_email;
|
||||
$userInfo = $this->Login_Model->getCustomerInfoByEmail($email);
|
||||
|
||||
if(!empty($userInfo)){
|
||||
$data1["name"] = $userInfo[0]->name;
|
||||
$data1["email"] = $userInfo[0]->email;
|
||||
$data1["message"] = "Reset Your Password";
|
||||
}
|
||||
|
||||
$sendStatus = resetPasswordEmail($data1);
|
||||
|
||||
if($sendStatus){
|
||||
$status = "send";
|
||||
setFlashData($status, "Reset password link sent successfully, please check mails.");
|
||||
} else {
|
||||
$status = "notsend";
|
||||
setFlashData($status, "Email has been failed, try again.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$status = 'unable';
|
||||
setFlashData($status, "It seems an error while sending your details, try again.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$status = 'invalid';
|
||||
setFlashData($status, "This email is not registered with us.");
|
||||
}
|
||||
redirect('/forgotPassword');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to reset the password
|
||||
* @param string $activation_id : This is unique id
|
||||
* @param string $email : This is user email
|
||||
*/
|
||||
function resetPasswordConfirmUser($activation_id, $email)
|
||||
{
|
||||
// Get email and activation code from URL values at index 3-4
|
||||
$email = urldecode($email);
|
||||
|
||||
// Check activation id in database
|
||||
$is_correct = $this->Login_Model->checkActivationDetails($email, $activation_id);
|
||||
|
||||
$data['email'] = $email;
|
||||
$data['activation_code'] = $activation_id;
|
||||
|
||||
if ($is_correct == 1)
|
||||
{
|
||||
$this->load->view('newPassword', $data);
|
||||
}
|
||||
else
|
||||
{
|
||||
redirect('/Login_Controller');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to create new password for user
|
||||
*/
|
||||
function createPasswordUser()
|
||||
{
|
||||
$status = '';
|
||||
$message = '';
|
||||
$email = $this->input->post("email");
|
||||
$activation_id = $this->input->post("activation_code");
|
||||
|
||||
$this->load->library('form_validation');
|
||||
|
||||
$this->form_validation->set_rules('password','Password','required|max_length[20]');
|
||||
$this->form_validation->set_rules('cpassword','Confirm Password','trim|required|matches[password]|max_length[20]');
|
||||
|
||||
if($this->form_validation->run() == FALSE)
|
||||
{
|
||||
$this->resetPasswordConfirmUser($activation_id, urlencode($email));
|
||||
}
|
||||
else
|
||||
{
|
||||
$password = $this->input->post('password');
|
||||
$cpassword = $this->input->post('cpassword');
|
||||
|
||||
// Check activation id in database
|
||||
$is_correct = $this->Login_Model->checkActivationDetails($email, $activation_id);
|
||||
|
||||
if($is_correct == 1)
|
||||
{
|
||||
$this->Login_Model->createPasswordUser($email, $password);
|
||||
|
||||
$status = 'success';
|
||||
$message = 'Password changed successfully';
|
||||
}
|
||||
else
|
||||
{
|
||||
$status = 'error';
|
||||
$message = 'Password changed failed';
|
||||
}
|
||||
|
||||
setFlashData($status, $message);
|
||||
|
||||
redirect("/Login_Controller");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load the Register page
|
||||
*/
|
||||
function Register()
|
||||
{
|
||||
$this->global['pageTitle'] = 'Visa : Register';
|
||||
$this->load->View('register', $this->global,NULL , NULL);
|
||||
}
|
||||
/**
|
||||
* To Store Register Details
|
||||
*/
|
||||
function Add_Register(){
|
||||
|
||||
$Registerdata =
|
||||
array( 'Name'=>$this->input->post('Name'),
|
||||
'PhoneNo'=>$this->input->post('PhoneNo'),
|
||||
'Email'=>$this->input->post('Email'),
|
||||
'AlternateEmail'=>$this->input->post('AlternateEmail'),
|
||||
'Designation'=>$this->input->post('Designation'),
|
||||
'CompanyName'=>$this->input->post('CompanyName'),
|
||||
'CityName'=>$this->input->post('CityName'),
|
||||
'CountryName'=>$this->input->post('CountryName'),
|
||||
'Address'=>$this->input->post('Address'));
|
||||
$Userdata =
|
||||
array( 'email'=>$this->input->post('Email'),
|
||||
'password'=>getHashedPassword($this->input->post('Password')),
|
||||
'mobile'=>$this->input->post('PhoneNo'),
|
||||
'roleId'=>REGISTER_USERS,
|
||||
'name'=>$this->input->post('Name'),
|
||||
'createdDtm'=>date('Y-m-d H:i:s'));
|
||||
$register= $this->Login_Model->Add_Register($Registerdata);
|
||||
$user= $this->Login_Model->Add_User($Userdata);
|
||||
|
||||
if($register != ''&& $user !='')
|
||||
{
|
||||
echo"<script>alert('Created Successfully');window.location.href='Login_Controller';</script>";
|
||||
}
|
||||
else{
|
||||
echo"<script>alert('Not Saved Try Again');window.location.href='register';</script>";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
427
application/controllers/User_Controller.php
Executable file
@ -0,0 +1,427 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require APPPATH . '/libraries/BaseController.php';
|
||||
|
||||
/**
|
||||
* Class : User_Controller
|
||||
* User_Controller Class to control all user related operations.
|
||||
* @author : Kishor Mali
|
||||
* @version : 1.1
|
||||
* @since : 15 November 2016
|
||||
*/
|
||||
class User_Controller extends BaseController
|
||||
{
|
||||
/**
|
||||
* This is default constructor of the class
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('User_Model');
|
||||
$this->isLoggedIn();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load the first screen of the user
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->global['pageTitle'] = 'VISA : Dashboard';
|
||||
|
||||
$this->loadViews("dashboard", $this->global, NULL , NULL);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load the User Details page
|
||||
*/
|
||||
function user_details_master(){
|
||||
$this->global['pageTitle'] = 'Visa : User Details';
|
||||
$data['getuserdetails']= $this->User_Model->Get_UserDetails();
|
||||
$this->loadViews('user_details', $this->global,$data , NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load the Profile Details page
|
||||
*/
|
||||
function Profile(){
|
||||
$this->global['pageTitle'] = 'Visa : Profile Details';
|
||||
//$userId=$this->global['userid'];
|
||||
// echo $userId;
|
||||
$data['getprofile']= $this->User_Model->Get_Profile($this->global['userid']);
|
||||
$this->loadViews('profile', $this->global,$data , NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* To Store Register Details
|
||||
*/
|
||||
function Update_Profile(){
|
||||
|
||||
$RegNo = $this->input->post('HideRegNo'); // value getting from hidden field
|
||||
$userId = $this->input->post('HideuserId'); // value getting from hidden field
|
||||
|
||||
$Registerdata =
|
||||
array( 'Name'=>$this->input->post('Name'),
|
||||
'PhoneNo'=>$this->input->post('PhoneNo'),
|
||||
'Email'=>$this->input->post('Email'),
|
||||
'AlternateEmail'=>$this->input->post('AlternateEmail'),
|
||||
'Designation'=>$this->input->post('Designation'),
|
||||
'CompanyName'=>$this->input->post('CompanyName'),
|
||||
'CityName'=>$this->input->post('CityName'),
|
||||
'CountryName'=>$this->input->post('CountryName'),
|
||||
'Address'=>$this->input->post('Address'));
|
||||
$Userdata =
|
||||
array( 'email'=>$this->input->post('Email'),
|
||||
'password'=>getHashedPassword($this->input->post('Password')),
|
||||
'mobile'=>$this->input->post('PhoneNo'),
|
||||
'roleId'=>REGISTER_USERS,
|
||||
'name'=>$this->input->post('Name'));
|
||||
$register= $this->User_Model->Update_Register($Registerdata,$RegNo);
|
||||
$user= $this->User_Model->Update_User($Userdata,$userId);
|
||||
|
||||
if($register == True && $user == True)
|
||||
{
|
||||
echo"<script>alert('Updated Successfully');window.location.href='profile';</script>";
|
||||
}
|
||||
else{
|
||||
echo"<script>alert('Not Saved Try Again');window.location.href='profile';</script>";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to load the user list
|
||||
*/
|
||||
function userListing()
|
||||
{
|
||||
if($this->isAdmin() == TRUE)
|
||||
{
|
||||
$this->loadThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
$searchText = $this->security->xss_clean($this->input->post('searchText'));
|
||||
$data['searchText'] = $searchText;
|
||||
|
||||
$this->load->library('pagination');
|
||||
|
||||
$count = $this->User_Model->userListingCount($searchText);
|
||||
|
||||
$returns = $this->paginationCompress ( "userListing/", $count, 10 );
|
||||
|
||||
$data['userRecords'] = $this->User_Model->userListing($searchText, $returns["page"], $returns["segment"]);
|
||||
|
||||
$this->global['pageTitle'] = 'CodeInsect : User Listing';
|
||||
|
||||
$this->loadViews("users", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to load the add new form
|
||||
*/
|
||||
function addNew()
|
||||
{
|
||||
if($this->isAdmin() == TRUE)
|
||||
{
|
||||
$this->loadThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->load->model('User_Model');
|
||||
$data['roles'] = $this->User_Model->getUserRoles();
|
||||
|
||||
$this->global['pageTitle'] = 'CodeInsect : Add New User';
|
||||
|
||||
$this->loadViews("addNew", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to check whether email already exist or not
|
||||
*/
|
||||
function checkEmailExists()
|
||||
{
|
||||
$userId = $this->input->post("userId");
|
||||
$email = $this->input->post("email");
|
||||
|
||||
if(empty($userId)){
|
||||
$result = $this->User_Model->checkEmailExists($email);
|
||||
} else {
|
||||
$result = $this->User_Model->checkEmailExists($email, $userId);
|
||||
}
|
||||
|
||||
if(empty($result)){ echo("true"); }
|
||||
else { echo("false"); }
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to add new user to the system
|
||||
*/
|
||||
function addNewUser()
|
||||
{
|
||||
if($this->isAdmin() == TRUE)
|
||||
{
|
||||
$this->loadThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->load->library('form_validation');
|
||||
|
||||
$this->form_validation->set_rules('fname','Full Name','trim|required|max_length[128]');
|
||||
$this->form_validation->set_rules('email','Email','trim|required|valid_email|max_length[128]');
|
||||
$this->form_validation->set_rules('password','Password','required|max_length[20]');
|
||||
$this->form_validation->set_rules('cpassword','Confirm Password','trim|required|matches[password]|max_length[20]');
|
||||
$this->form_validation->set_rules('role','Role','trim|required|numeric');
|
||||
$this->form_validation->set_rules('mobile','Mobile Number','required|min_length[10]');
|
||||
|
||||
if($this->form_validation->run() == FALSE)
|
||||
{
|
||||
$this->addNew();
|
||||
}
|
||||
else
|
||||
{
|
||||
$name = ucwords(strtolower($this->security->xss_clean($this->input->post('fname'))));
|
||||
$email = $this->security->xss_clean($this->input->post('email'));
|
||||
$password = $this->input->post('password');
|
||||
$roleId = $this->input->post('role');
|
||||
$mobile = $this->security->xss_clean($this->input->post('mobile'));
|
||||
|
||||
$userInfo = array('email'=>$email, 'password'=>getHashedPassword($password), 'roleId'=>$roleId, 'name'=> $name,
|
||||
'mobile'=>$mobile, 'createdBy'=>$this->vendorId, 'createdDtm'=>date('Y-m-d H:i:s'));
|
||||
|
||||
$this->load->model('User_Model');
|
||||
$result = $this->User_Model->addNewUser($userInfo);
|
||||
|
||||
if($result > 0)
|
||||
{
|
||||
$this->session->set_flashdata('success', 'New User created successfully');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error', 'User creation failed');
|
||||
}
|
||||
|
||||
redirect('addNew');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used load user edit information
|
||||
* @param number $userId : Optional : This is user id
|
||||
*/
|
||||
function editOld($userId = NULL)
|
||||
{
|
||||
if($this->isAdmin() == TRUE || $userId == 1)
|
||||
{
|
||||
$this->loadThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
if($userId == null)
|
||||
{
|
||||
redirect('userListing');
|
||||
}
|
||||
|
||||
$data['roles'] = $this->User_Model->getUserRoles();
|
||||
$data['userInfo'] = $this->User_Model->getUserInfo($userId);
|
||||
|
||||
$this->global['pageTitle'] = 'CodeInsect : Edit User';
|
||||
|
||||
$this->loadViews("editOld", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to edit the user information
|
||||
*/
|
||||
function editUser()
|
||||
{
|
||||
if($this->isAdmin() == TRUE)
|
||||
{
|
||||
$this->loadThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->load->library('form_validation');
|
||||
|
||||
$userId = $this->input->post('userId');
|
||||
|
||||
$this->form_validation->set_rules('fname','Full Name','trim|required|max_length[128]');
|
||||
$this->form_validation->set_rules('email','Email','trim|required|valid_email|max_length[128]');
|
||||
$this->form_validation->set_rules('password','Password','matches[cpassword]|max_length[20]');
|
||||
$this->form_validation->set_rules('cpassword','Confirm Password','matches[password]|max_length[20]');
|
||||
$this->form_validation->set_rules('role','Role','trim|required|numeric');
|
||||
$this->form_validation->set_rules('mobile','Mobile Number','required|min_length[10]');
|
||||
|
||||
if($this->form_validation->run() == FALSE)
|
||||
{
|
||||
$this->editOld($userId);
|
||||
}
|
||||
else
|
||||
{
|
||||
$name = ucwords(strtolower($this->security->xss_clean($this->input->post('fname'))));
|
||||
$email = $this->security->xss_clean($this->input->post('email'));
|
||||
$password = $this->input->post('password');
|
||||
$roleId = $this->input->post('role');
|
||||
$mobile = $this->security->xss_clean($this->input->post('mobile'));
|
||||
|
||||
$userInfo = array();
|
||||
|
||||
if(empty($password))
|
||||
{
|
||||
$userInfo = array('email'=>$email, 'roleId'=>$roleId, 'name'=>$name,
|
||||
'mobile'=>$mobile, 'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:s'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$userInfo = array('email'=>$email, 'password'=>getHashedPassword($password), 'roleId'=>$roleId,
|
||||
'name'=>ucwords($name), 'mobile'=>$mobile, 'updatedBy'=>$this->vendorId,
|
||||
'updatedDtm'=>date('Y-m-d H:i:s'));
|
||||
}
|
||||
|
||||
$result = $this->User_Model->editUser($userInfo, $userId);
|
||||
|
||||
if($result == true)
|
||||
{
|
||||
$this->session->set_flashdata('success', 'User updated successfully');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error', 'User updation failed');
|
||||
}
|
||||
|
||||
redirect('userListing');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to delete the user using userId
|
||||
* @return boolean $result : TRUE / FALSE
|
||||
*/
|
||||
function deleteUser()
|
||||
{
|
||||
if($this->isAdmin() == TRUE)
|
||||
{
|
||||
echo(json_encode(array('status'=>'access')));
|
||||
}
|
||||
else
|
||||
{
|
||||
$userId = $this->input->post('userId');
|
||||
$userInfo = array('isDeleted'=>1,'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:s'));
|
||||
|
||||
$result = $this->User_Model->deleteUser($userId, $userInfo);
|
||||
|
||||
if ($result > 0) { echo(json_encode(array('status'=>TRUE))); }
|
||||
else { echo(json_encode(array('status'=>FALSE))); }
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to load the change password screen
|
||||
*/
|
||||
function loadChangePass()
|
||||
{
|
||||
$this->global['pageTitle'] = 'CodeInsect : Change Password';
|
||||
|
||||
$this->loadViews("changePassword", $this->global, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to change the password of the user
|
||||
*/
|
||||
function changePassword()
|
||||
{
|
||||
$this->load->library('form_validation');
|
||||
|
||||
$this->form_validation->set_rules('oldPassword','Old password','required|max_length[20]');
|
||||
$this->form_validation->set_rules('newPassword','New password','required|max_length[20]');
|
||||
$this->form_validation->set_rules('cNewPassword','Confirm new password','required|matches[newPassword]|max_length[20]');
|
||||
|
||||
if($this->form_validation->run() == FALSE)
|
||||
{
|
||||
$this->loadChangePass();
|
||||
}
|
||||
else
|
||||
{
|
||||
$oldPassword = $this->input->post('oldPassword');
|
||||
$newPassword = $this->input->post('newPassword');
|
||||
|
||||
$resultPas = $this->User_Model->matchOldPassword($this->vendorId, $oldPassword);
|
||||
|
||||
if(empty($resultPas))
|
||||
{
|
||||
$this->session->set_flashdata('nomatch', 'Your old password not correct');
|
||||
redirect('loadChangePass');
|
||||
}
|
||||
else
|
||||
{
|
||||
$usersData = array('password'=>getHashedPassword($newPassword), 'updatedBy'=>$this->vendorId,
|
||||
'updatedDtm'=>date('Y-m-d H:i:s'));
|
||||
|
||||
$result = $this->User_Model->changePassword($this->vendorId, $usersData);
|
||||
|
||||
if($result > 0) { $this->session->set_flashdata('success', 'Password updation successful'); }
|
||||
else { $this->session->set_flashdata('error', 'Password updation failed'); }
|
||||
|
||||
redirect('loadChangePass');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Page not found : error 404
|
||||
*/
|
||||
function pageNotFound()
|
||||
{
|
||||
$this->global['pageTitle'] = 'CodeInsect : 404 - Page Not Found';
|
||||
|
||||
$this->loadViews("404", $this->global, NULL, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to show login history
|
||||
* @param number $userId : This is user id
|
||||
*/
|
||||
function loginHistoy($userId = NULL)
|
||||
{
|
||||
if($this->isAdmin() == TRUE)
|
||||
{
|
||||
$this->loadThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
$userId = ($userId == NULL ? $this->session->userdata("userId") : $userId);
|
||||
|
||||
$searchText = $this->input->post('searchText');
|
||||
$fromDate = $this->input->post('fromDate');
|
||||
$toDate = $this->input->post('toDate');
|
||||
|
||||
$data["userInfo"] = $this->User_Model->getUserInfoById($userId);
|
||||
|
||||
$data['searchText'] = $searchText;
|
||||
$data['fromDate'] = $fromDate;
|
||||
$data['toDate'] = $toDate;
|
||||
|
||||
$this->load->library('pagination');
|
||||
|
||||
$count = $this->User_Model->loginHistoryCount($userId, $searchText, $fromDate, $toDate);
|
||||
|
||||
$returns = $this->paginationCompress ( "login-history/".$userId."/", $count, 5, 3);
|
||||
|
||||
$data['userRecords'] = $this->User_Model->loginHistory($userId, $searchText, $fromDate, $toDate, $returns["page"], $returns["segment"]);
|
||||
|
||||
$this->global['pageTitle'] = 'CodeInsect : User Login History';
|
||||
|
||||
$this->loadViews("loginHistory", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,27 +0,0 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Welcome extends CI_Controller {
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
*
|
||||
* Maps to the following URL
|
||||
* http://example.com/index.php/welcome
|
||||
* - or -
|
||||
* http://example.com/index.php/welcome/index
|
||||
* - or -
|
||||
* Since this controller is set as the default controller in
|
||||
* config/routes.php, it's displayed at http://example.com/
|
||||
*
|
||||
* So any other public methods not prefixed with an underscore will
|
||||
* map to /index.php/welcome/<method_name>
|
||||
* @see https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('includes/Header', NULL);
|
||||
$this->load->view('welcome_message', NULL);
|
||||
$this->load->view('includes/Footer', NULL);
|
||||
}
|
||||
}
|
||||
152
application/helpers/cias_helper.php
Executable file
@ -0,0 +1,152 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to print the content of any data
|
||||
*/
|
||||
function pre($data)
|
||||
{
|
||||
echo "<pre>";
|
||||
print_r($data);
|
||||
echo "</pre>";
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get the CI instance
|
||||
*/
|
||||
if(!function_exists('get_instance'))
|
||||
{
|
||||
function get_instance()
|
||||
{
|
||||
$CI = &get_instance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to generate the hashed password
|
||||
* @param {string} $plainPassword : This is plain text password
|
||||
*/
|
||||
if(!function_exists('getHashedPassword'))
|
||||
{
|
||||
function getHashedPassword($plainPassword)
|
||||
{
|
||||
return password_hash($plainPassword, PASSWORD_DEFAULT);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to generate the hashed password
|
||||
* @param {string} $plainPassword : This is plain text password
|
||||
* @param {string} $hashedPassword : This is hashed password
|
||||
*/
|
||||
if(!function_exists('verifyHashedPassword'))
|
||||
{
|
||||
function verifyHashedPassword($plainPassword, $hashedPassword)
|
||||
{
|
||||
return password_verify($plainPassword, $hashedPassword) ? true : false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This method used to get current browser agent
|
||||
*/
|
||||
if(!function_exists('getBrowserAgent'))
|
||||
{
|
||||
function getBrowserAgent()
|
||||
{
|
||||
$CI = get_instance();
|
||||
$CI->load->library('user_agent');
|
||||
|
||||
$agent = '';
|
||||
|
||||
if ($CI->agent->is_browser())
|
||||
{
|
||||
$agent = $CI->agent->browser().' '.$CI->agent->version();
|
||||
}
|
||||
else if ($CI->agent->is_robot())
|
||||
{
|
||||
$agent = $CI->agent->robot();
|
||||
}
|
||||
else if ($CI->agent->is_mobile())
|
||||
{
|
||||
$agent = $CI->agent->mobile();
|
||||
}
|
||||
else
|
||||
{
|
||||
$agent = 'Unidentified User Agent';
|
||||
}
|
||||
|
||||
return $agent;
|
||||
}
|
||||
}
|
||||
|
||||
if(!function_exists('setProtocol'))
|
||||
{
|
||||
function setProtocol()
|
||||
{
|
||||
$CI = &get_instance();
|
||||
|
||||
$CI->load->library('email');
|
||||
|
||||
$config['protocol'] = PROTOCOL;
|
||||
$config['mailpath'] = MAIL_PATH;
|
||||
$config['smtp_host'] = SMTP_HOST;
|
||||
$config['smtp_port'] = SMTP_PORT;
|
||||
$config['smtp_user'] = SMTP_USER;
|
||||
$config['smtp_pass'] = SMTP_PASS;
|
||||
$config['charset'] = "utf-8";
|
||||
$config['mailtype'] = "html";
|
||||
$config['newline'] = "\r\n";
|
||||
|
||||
$CI->email->initialize($config);
|
||||
|
||||
return $CI;
|
||||
}
|
||||
}
|
||||
|
||||
if(!function_exists('emailConfig'))
|
||||
{
|
||||
function emailConfig()
|
||||
{
|
||||
$CI->load->library('email');
|
||||
$config['protocol'] = PROTOCOL;
|
||||
$config['smtp_host'] = SMTP_HOST;
|
||||
$config['smtp_port'] = SMTP_PORT;
|
||||
$config['mailpath'] = MAIL_PATH;
|
||||
$config['charset'] = 'UTF-8';
|
||||
$config['mailtype'] = "html";
|
||||
$config['newline'] = "\r\n";
|
||||
$config['wordwrap'] = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if(!function_exists('resetPasswordEmail'))
|
||||
{
|
||||
function resetPasswordEmail($detail)
|
||||
{
|
||||
$data["data"] = $detail;
|
||||
// pre($detail);
|
||||
// die;
|
||||
|
||||
$CI = setProtocol();
|
||||
|
||||
$CI->email->from(EMAIL_FROM, FROM_NAME);
|
||||
$CI->email->subject("Reset Password");
|
||||
$CI->email->message($CI->load->view('email/resetPassword', $data, TRUE));
|
||||
$CI->email->to($detail["email"]);
|
||||
$status = $CI->email->send();
|
||||
|
||||
return $status;
|
||||
}
|
||||
}
|
||||
|
||||
if(!function_exists('setFlashData'))
|
||||
{
|
||||
function setFlashData($status, $flashMsg)
|
||||
{
|
||||
$CI = get_instance();
|
||||
$CI->session->set_flashdata($status, $flashMsg);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -3,11 +3,93 @@
|
||||
/**
|
||||
* Class : BaseController
|
||||
* Base Class to control over all the classes
|
||||
* @author : Kishor Mali
|
||||
* @author : Suren
|
||||
* @version : 1.1
|
||||
* @since : 15 November 2016
|
||||
* @since : 27 July 2018
|
||||
*/
|
||||
class BaseController extends CI_Controller {
|
||||
protected $role = '';
|
||||
protected $vendorId = '';
|
||||
protected $name = '';
|
||||
protected $roleText = '';
|
||||
protected $global = array ();
|
||||
protected $lastLogin = '';
|
||||
|
||||
/**
|
||||
* Takes mixed data and optionally a status code, then creates the response
|
||||
*
|
||||
* @access public
|
||||
* @param array|NULL $data
|
||||
* Data to output to the user
|
||||
* running the script; otherwise, exit
|
||||
*/
|
||||
public function response($data = NULL) {
|
||||
$this->output->set_status_header ( 200 )->set_content_type ( 'application/json', 'utf-8' )->set_output ( json_encode ( $data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES ) )->_display ();
|
||||
exit ();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to check the user is logged in or not
|
||||
*/
|
||||
function isLoggedIn() {
|
||||
$isLoggedIn = $this->session->userdata ( 'isLoggedIn' );
|
||||
|
||||
if (! isset ( $isLoggedIn ) || $isLoggedIn != TRUE) {
|
||||
redirect ( 'Login_Controller' );
|
||||
} else {
|
||||
$this->role = $this->session->userdata ( 'role' );
|
||||
$this->vendorId = $this->session->userdata ( 'userId' );
|
||||
$this->name = $this->session->userdata ( 'name' );
|
||||
$this->roleText = $this->session->userdata ( 'roleText' );
|
||||
$this->lastLogin = $this->session->userdata ( 'lastLogin' );
|
||||
|
||||
$this->global ['name'] = $this->name;
|
||||
$this->global ['userid'] = $this->vendorId;
|
||||
$this->global ['role'] = $this->role;
|
||||
$this->global ['role_text'] = $this->roleText;
|
||||
$this->global ['last_login'] = $this->lastLogin;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to check the access
|
||||
*/
|
||||
// function isAdmin() {
|
||||
// if ($this->role != ROLE_ADMIN) {
|
||||
// return true;
|
||||
// } else {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* This function is used to check the access
|
||||
*/
|
||||
// function isTicketter() {
|
||||
// if ($this->role != ROLE_ADMIN || $this->role != ROLE_MANAGER) {
|
||||
// return true;
|
||||
// } else {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* This function is used to load the set of views
|
||||
*/
|
||||
function loadThis() {
|
||||
$this->global ['pageTitle'] = 'Visa : Access Denied';
|
||||
$this->load->view ( 'includes/Header', $this->global );
|
||||
$this->load->view ( 'access' );
|
||||
$this->load->view ( 'includes/Footer' );
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to logged out user from system
|
||||
*/
|
||||
function logout() {
|
||||
$this->session->sess_destroy ();
|
||||
redirect ( 'Login_Controller' );
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to load views
|
||||
@ -23,4 +105,48 @@ class BaseController extends CI_Controller {
|
||||
$this->load->view($viewName, $pageInfo);
|
||||
$this->load->view('includes/Footer', $footerInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used provide the pagination resources
|
||||
* @param {string} $link : This is page link
|
||||
* @param {number} $count : This is page count
|
||||
* @param {number} $perPage : This is records per page limit
|
||||
* @return {mixed} $result : This is array of records and pagination data
|
||||
*/
|
||||
function paginationCompress($link, $count, $perPage = 10, $segment = SEGMENT) {
|
||||
$this->load->library ( 'pagination' );
|
||||
|
||||
$config ['base_url'] = base_url () . $link;
|
||||
$config ['total_rows'] = $count;
|
||||
$config ['uri_segment'] = $segment;
|
||||
$config ['per_page'] = $perPage;
|
||||
$config ['num_links'] = 5;
|
||||
$config ['full_tag_open'] = '<nav><ul class="pagination">';
|
||||
$config ['full_tag_close'] = '</ul></nav>';
|
||||
$config ['first_tag_open'] = '<li class="arrow">';
|
||||
$config ['first_link'] = 'First';
|
||||
$config ['first_tag_close'] = '</li>';
|
||||
$config ['prev_link'] = 'Previous';
|
||||
$config ['prev_tag_open'] = '<li class="arrow">';
|
||||
$config ['prev_tag_close'] = '</li>';
|
||||
$config ['next_link'] = 'Next';
|
||||
$config ['next_tag_open'] = '<li class="arrow">';
|
||||
$config ['next_tag_close'] = '</li>';
|
||||
$config ['cur_tag_open'] = '<li class="active"><a href="#">';
|
||||
$config ['cur_tag_close'] = '</a></li>';
|
||||
$config ['num_tag_open'] = '<li>';
|
||||
$config ['num_tag_close'] = '</li>';
|
||||
$config ['last_tag_open'] = '<li class="arrow">';
|
||||
$config ['last_link'] = 'Last';
|
||||
$config ['last_tag_close'] = '</li>';
|
||||
|
||||
$this->pagination->initialize ( $config );
|
||||
$page = $config ['per_page'];
|
||||
$segment = $this->uri->segment ( $segment );
|
||||
|
||||
return array (
|
||||
"page" => $page,
|
||||
"segment" => $segment
|
||||
);
|
||||
}
|
||||
}
|
||||
173
application/models/Dashboard_Model.php
Executable file
@ -0,0 +1,173 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Dashboard_Model extends CI_Model{
|
||||
|
||||
/**
|
||||
* To store Country Related details into 'Tab_CountryMaster' table
|
||||
* @param array $CountryMasterDatas : Its have all the Contry master datas
|
||||
* @return $CountryMaster : This will return Last inserted id of Country Master
|
||||
*/
|
||||
function Add_CountryMaster($CountryMasterDatas)
|
||||
{
|
||||
|
||||
$this->db->insert('Tab_CountryMaster',$CountryMasterDatas);
|
||||
$id = $this->db->insert_id();
|
||||
|
||||
return $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Update the values of Country detail on respective CounterCode and store into 'Tab_CountryMaster' table
|
||||
* @param array $CountryMasterDatas : This will have all the edited Country Details
|
||||
* @param number $Cc : This is Country code
|
||||
*/
|
||||
function Update_CountryMaster($CountryMasterDatas, $Cc)
|
||||
{
|
||||
$this->db->where('CountryCode',$Cc);
|
||||
$this->db->update('Tab_CountryMaster',$CountryMasterDatas);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Get the Country Master Data from respective CounterCode from 'Tab_CountryMaster' table
|
||||
* @param number $Cc : This is Country code
|
||||
* @return array $CountryMasterDatas : This will have all the Country Master Datas
|
||||
*/
|
||||
function Get_CountryMaster($Cc)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('Tab_CountryMaster');
|
||||
if($Cc != ''){
|
||||
$this->db->where('CountryCode',$Cc);
|
||||
}
|
||||
$query = $this->db->get();
|
||||
$CountryMasterDatas = $query->result();
|
||||
return $CountryMasterDatas;
|
||||
}
|
||||
/**
|
||||
* To store City Related details into 'Tab_CityMaster' table
|
||||
* @param array $CityMasterDatas : Its have all the City master datas
|
||||
* @return $CityMaster : This will return how many value are inserted (return as count)
|
||||
*/
|
||||
function Add_CityMaster($CityMasterDatas)
|
||||
{
|
||||
|
||||
$this->db->insert('Tab_CityMaster',$CityMasterDatas);
|
||||
$CityMaster = $this->db->insert_id();
|
||||
|
||||
return $CityMaster;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Update the values of city detail on respective CityCode into 'Tab_CityMaster' table
|
||||
* @param arry $CityMasterDatas : This will have all the edited city Details
|
||||
* @param number $Cc : This is City code
|
||||
*/
|
||||
function Update_CityMaster($CityMasterDatas, $citycode)
|
||||
{
|
||||
$this->db->where('CityCode',$citycode);
|
||||
$this->db->update('Tab_CityMaster',$CityMasterDatas);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function Get_CityMaster($citycode)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('Tab_CityMaster');
|
||||
if($citycode != ''){
|
||||
$this->db->where('CityCode',$citycode);
|
||||
}
|
||||
$query = $this->db->get();
|
||||
$CityMasterDatas = $query->result();
|
||||
return $CityMasterDatas;
|
||||
}
|
||||
|
||||
/**
|
||||
* To store VisaType Related details into 'Tab_VisaTypeMaster' table
|
||||
* @param array $VisaTypeMasterDatas : Its have all the Visa Type master datas
|
||||
* @return $VisaTypeMaster : This will return Last inserted id of Visa Type Master
|
||||
*/
|
||||
function Add_VisaType($VisaTypeMasterDatas)
|
||||
{
|
||||
$this->db->insert('Tab_VisaTypeMaster',$VisaTypeMasterDatas);
|
||||
$VisaTypeMaster = $this->db->insert_id();
|
||||
|
||||
return $VisaTypeMaster;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Update the values of Visa type Detail on respective VisaNo and store into 'Tab_VisaTypeMaster' table
|
||||
* @param array $VisaTypeMasterDatas : This will have all the edited Visa Type
|
||||
* @param number $VisaNo : This is Visa code
|
||||
*/
|
||||
function Update_VisaType($VisaTypeMasterDatas,$VisaNo)
|
||||
{
|
||||
$this->db->where('VisaCode',$VisaNo);
|
||||
$this->db->update('Tab_VisaTypeMaster',$VisaTypeMasterDatas);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Get the Visa Master Data from respective VisaNo from 'Tab_VisaTypeMaster' table
|
||||
* @param number $VisaNo : This is VisaNo
|
||||
* @return array $DocumentMasterdatas : This will have all the Visa Type Datas
|
||||
*/
|
||||
function Get_VisaTypeMaster($VisaNo='')
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('Tab_VisaTypeMaster');
|
||||
if($VisaNo != ''){
|
||||
$this->db->where('VisaCode',$VisaNo);
|
||||
}
|
||||
$query =$this->db->get();
|
||||
$DocumentMasterdatas = $query->result();
|
||||
return $DocumentMasterdatas;
|
||||
}
|
||||
|
||||
/**
|
||||
* To store Document Related details into 'Tab_Documents' table
|
||||
* @param array $DocumentMasterDatas : Its have all the document master datas
|
||||
* @return $Documents : This will return Last Inserted Id of DocumentMaster
|
||||
*/
|
||||
function Add_Document($DocumentMasterDatas)
|
||||
{
|
||||
$this->db->insert('Tab_Documents',$DocumentMasterDatas);
|
||||
$Documents = $this->db->insert_id();
|
||||
return $Documents;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Update the values of Country detail on respective CounterCode into 'Tab_Documents' table
|
||||
* @param arry $CountryMasterDatas : This will have all the edited Country Details
|
||||
* @param number $Cc : This is Country code
|
||||
*/
|
||||
function Update_Document($DocumentMasterDatas,$DocNo)
|
||||
{
|
||||
$this->db->where('DocumentCode',$DocNo);
|
||||
$this->db->update('Tab_Documents',$DocumentMasterDatas);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Get the Document Master Data from respective DocumentNo from 'Tab_Documents' table
|
||||
* @param number $DocNo : This is DocumentNo
|
||||
* @return array $DocumentMasterdatas : This will have all the Document Datas
|
||||
*/
|
||||
function Get_DocumentMaster($DocNo='')
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('Tab_Documents');
|
||||
if($DocNo != ''){
|
||||
$this->db->where('DocumentCode',$DocNo);
|
||||
}
|
||||
$query =$this->db->get();
|
||||
$DocumentMasterdatas = $query->result();
|
||||
return $DocumentMasterdatas;
|
||||
}
|
||||
/**To Get user count from Tab_Register table to display dashboard **/
|
||||
function usercount(){
|
||||
return $this->db->count_all_results('Tab_Register');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
0
application/models/Favourite_Model.php
Executable file
@ -1,20 +0,0 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Home_model extends CI_Model
|
||||
{
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->load->database();
|
||||
|
||||
}
|
||||
|
||||
function NewListing()
|
||||
{
|
||||
$this->db->from('actor');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
162
application/models/Login_Model.php
Executable file
@ -0,0 +1,162 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Login_model extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* This function used to check the login credentials of the user
|
||||
* @param string $email : This is email of the user
|
||||
* @param string $password : This is encrypted password of the user
|
||||
*/
|
||||
function loginMe($email, $password)
|
||||
{
|
||||
$this->db->select('BaseTbl.userId, BaseTbl.password, BaseTbl.name, BaseTbl.roleId, Roles.role');
|
||||
$this->db->from('Tab_Users as BaseTbl');
|
||||
$this->db->join('Tab_Roles as Roles','Roles.roleId = BaseTbl.roleId');
|
||||
$this->db->where('BaseTbl.email', $email);
|
||||
$this->db->where('BaseTbl.isDeleted', 0);
|
||||
$query = $this->db->get();
|
||||
|
||||
$user = $query->row();
|
||||
|
||||
if(!empty($user)){
|
||||
if(verifyHashedPassword($password, $user->password)){
|
||||
return $user;
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to check email exists or not
|
||||
* @param {string} $email : This is users email id
|
||||
* @return {boolean} $result : TRUE/FALSE
|
||||
*/
|
||||
function checkEmailExist($email)
|
||||
{
|
||||
$this->db->select('userId');
|
||||
$this->db->where('email', $email);
|
||||
$this->db->where('isDeleted', 0);
|
||||
$query = $this->db->get('Tab_Users');
|
||||
|
||||
if ($query->num_rows() > 0){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function used to insert reset password data
|
||||
* @param {array} $data : This is reset password data
|
||||
* @return {boolean} $result : TRUE/FALSE
|
||||
*/
|
||||
function resetPasswordUser($data)
|
||||
{
|
||||
$result = $this->db->insert('Tab_ResetPassword', $data);
|
||||
|
||||
if($result) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get customer information by email-id for forget password email
|
||||
* @param string $email : Email id of customer
|
||||
* @return object $result : Information of customer
|
||||
*/
|
||||
function getCustomerInfoByEmail($email)
|
||||
{
|
||||
$this->db->select('userId, email, name');
|
||||
$this->db->from('Tab_Users');
|
||||
$this->db->where('isDeleted', 0);
|
||||
$this->db->where('email', $email);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to check correct activation deatails for forget password.
|
||||
* @param string $email : Email id of user
|
||||
* @param string $activation_id : This is activation string
|
||||
*/
|
||||
function checkActivationDetails($email, $activation_id)
|
||||
{
|
||||
$this->db->select('id');
|
||||
$this->db->from('Tab_ResetPassword');
|
||||
$this->db->where('email', $email);
|
||||
$this->db->where('activation_id', $activation_id);
|
||||
$query = $this->db->get();
|
||||
return $query->num_rows();
|
||||
}
|
||||
|
||||
// This function used to create new password by reset link
|
||||
function createPasswordUser($email, $password)
|
||||
{
|
||||
$this->db->where('email', $email);
|
||||
$this->db->where('isDeleted', 0);
|
||||
$this->db->update('Tab_Users', array('password'=>getHashedPassword($password)));
|
||||
$this->db->delete('Tab_ResetPassword', array('email'=>$email));
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to save login information of user
|
||||
* @param array $loginInfo : This is users login information
|
||||
*/
|
||||
function lastLogin($loginInfo)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
$this->db->insert('Tab_LastLogin', $loginInfo);
|
||||
$this->db->trans_complete();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get last login info by user id
|
||||
* @param number $userId : This is user id
|
||||
* @return number $result : This is query result
|
||||
*/
|
||||
function lastLoginInfo($userId)
|
||||
{
|
||||
$this->db->select('BaseTbl.createdDtm');
|
||||
$this->db->where('BaseTbl.userId', $userId);
|
||||
$this->db->order_by('BaseTbl.id', 'DESC');
|
||||
$this->db->limit(1);
|
||||
$query = $this->db->get('Tab_LastLogin as BaseTbl');
|
||||
|
||||
return $query->row();
|
||||
}
|
||||
/**
|
||||
* To store register details into 'Tab_Register' table
|
||||
* @param array $Registerdata : Its have all the register data
|
||||
* @return $register : This will return Last inserted id of register number
|
||||
*/
|
||||
function Add_Register($Registerdata)
|
||||
{
|
||||
$this->db->insert('Tab_Register',$Registerdata);
|
||||
$register = $this->db->insert_id();
|
||||
|
||||
return $register;
|
||||
}
|
||||
/**
|
||||
* To store user datas details into 'Tab_Users' table
|
||||
* @param array $Userdata : Its have all the user datas
|
||||
* @return $user : This will return Last inserted id of user
|
||||
*/
|
||||
function Add_User($Userdata)
|
||||
{
|
||||
$this->db->insert('Tab_Users',$Userdata);
|
||||
$user = $this->db->insert_id();
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,124 +0,0 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Login_model extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* This function used to check the login credentials of the user
|
||||
* @param string $email : This is email of the user
|
||||
* @param string $password : This is encrypted password of the user
|
||||
*/
|
||||
function loginMe($email, $password)
|
||||
{
|
||||
$this->db->select('BaseTbl.userId, BaseTbl.password, Emp.EmpID,Emp.FirstName,Emp.Designation, BaseTbl.roleId, Roles.role,DEPT.DEPCode,DEPT.DepartmentName,DEPT.HeadDept');
|
||||
$this->db->from('tbl_users as BaseTbl');
|
||||
$this->db->join('tbl_roles as Roles','Roles.roleId = BaseTbl.roleId');
|
||||
$this->db->join('T_Employee_Details as Emp','BaseTbl.EmpID = Emp.EmpID');
|
||||
$this->db->join('T_DepartmentDetails as DEPT','Emp.Departmentcode = DEPT.DEPCode');
|
||||
$this->db->where('BaseTbl.isDeleted !=',1);
|
||||
$this->db->where('BaseTbl.email', $email);
|
||||
$this->db->or_where('Emp.ContactNumber', $email);
|
||||
$this->db->where('BaseTbl.isDeleted !=',1);
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
|
||||
$user = $query->result();
|
||||
print_r($user);die;
|
||||
if(!empty($user)){
|
||||
if(verifyHashedPassword($password, $user[0]->password)){
|
||||
return $user;
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
function Accessdep($EmpID)
|
||||
{
|
||||
|
||||
$this->db->select('Departmentcode as AssDep');
|
||||
$this->db->from('T_AccessDepartments');
|
||||
$this->db->where('EmpID', $EmpID);
|
||||
|
||||
|
||||
$query = $this->db->get();
|
||||
// print_r( $this->db->last_query());
|
||||
return $query->result();
|
||||
}
|
||||
/**
|
||||
* get the user dtl
|
||||
*/
|
||||
function getuserid($mobileno,$emailid)
|
||||
{
|
||||
$this->db->select('UsrTbl.userId,UsrTbl.email,EmpTbl.ContactNumber,EmpTbl.FirstName');
|
||||
$this->db->from('tbl_users as UsrTbl');
|
||||
$this->db->join('T_Employee_Details as EmpTbl','UsrTbl.EmpID = EmpTbl.EmpID');
|
||||
$this->db->where('EmpTbl.ContactNumber', $mobileno);
|
||||
$this->db->where('UsrTbl.email',$emailid);
|
||||
$this->db->where('UsrTbl.isDeleted', 0);
|
||||
$res = $this->db->get();
|
||||
return $res->result();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To update opt in our database
|
||||
**/
|
||||
function temp2($userId,$otp){
|
||||
$this->db->set('OTP',$otp);
|
||||
$this->db->where('userId',$userId);
|
||||
$this->db->update('tbl_users');
|
||||
$count = $this->db->affected_rows();
|
||||
|
||||
if($count > 0)
|
||||
{
|
||||
$subQuery = "select OTP from tbl_users where userId = '".$userId."'";
|
||||
$query = $this->db->query($subQuery);
|
||||
return $query->result();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* To get user id
|
||||
**/
|
||||
function getuserdtl($phno){
|
||||
$this->db->select('BaseTbl.userId');
|
||||
$this->db->from('tbl_users as BaseTbl');
|
||||
$this->db->join('T_Employee_Details as Emp','BaseTbl.EmpID = Emp.EmpID');
|
||||
$this->db->where('Emp.ContactNumber', $phno);
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* To update password and otp
|
||||
**/
|
||||
function resetpassword($Array,$userid){
|
||||
|
||||
$this->db->where('userId',$userid);
|
||||
$this->db->update('tbl_users',$Array);
|
||||
$count = $this->db->affected_rows();
|
||||
return $count;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To update password only
|
||||
**/
|
||||
function updatepassword($userid,$password){
|
||||
|
||||
$this->db->set('password',$password);
|
||||
$this->db->where('userId',$userid);
|
||||
$this->db->update('tbl_users');
|
||||
$count = $this->db->affected_rows();
|
||||
return $count;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,25 +0,0 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class NewModel extends CI_Model
|
||||
{
|
||||
/**
|
||||
* To get the employee listing
|
||||
* @return array $result : result of the query(returns as employee details)
|
||||
*/
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->load->database();
|
||||
|
||||
}
|
||||
|
||||
function NewListing()
|
||||
{
|
||||
$this->db->from('actor');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
316
application/models/User_Model.php
Executable file
@ -0,0 +1,316 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class User_model extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* This function is used to get the User Details
|
||||
*/
|
||||
function Get_UserDetails()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('Tab_Register');
|
||||
$query = $this->db->get();
|
||||
$UserDetailsData = $query->result();
|
||||
return $UserDetailsData;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the Profile
|
||||
*/
|
||||
function Get_Profile($arg)
|
||||
{
|
||||
$this->db->select('reg.*,user.*');
|
||||
$this->db->from('Tab_Register reg');
|
||||
$this->db->join('Tab_Users user', 'user.name = reg.Name','left');
|
||||
$this->db->where('user.userId',$arg);
|
||||
$query = $this->db->get();
|
||||
$ProfileData = $query->result();
|
||||
return $ProfileData;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Update the values of Country detail on respective CounterCode into 'Tab_Documents' table
|
||||
* @param arry $CountryMasterDatas : This will have all the edited Country Details
|
||||
* @param number $Cc : This is Country code
|
||||
*/
|
||||
function Update_Register($Registerdata,$RegNo)
|
||||
{
|
||||
$this->db->where('RegNo',$RegNo);
|
||||
$this->db->update('Tab_Register',$Registerdata);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
function Update_User($Userdata,$userId){
|
||||
$this->db->where('userId',$userId);
|
||||
$this->db->update('Tab_Users',$Userdata);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @return number $count : This is row count
|
||||
*/
|
||||
function userListingCount($searchText = '')
|
||||
{
|
||||
$this->db->select('BaseTbl.userId, BaseTbl.email, BaseTbl.name, BaseTbl.mobile, Role.role');
|
||||
$this->db->from('Tab_Users as BaseTbl');
|
||||
$this->db->join('Tab_Roles as Role', 'Role.roleId = BaseTbl.roleId','left');
|
||||
if(!empty($searchText)) {
|
||||
$likeCriteria = "(BaseTbl.email LIKE '%".$searchText."%'
|
||||
OR BaseTbl.name LIKE '%".$searchText."%'
|
||||
OR BaseTbl.mobile LIKE '%".$searchText."%')";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
$this->db->where('BaseTbl.isDeleted', 0);
|
||||
$this->db->where('BaseTbl.roleId !=', 1);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->num_rows();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
*/
|
||||
function userListing($searchText = '', $page, $segment)
|
||||
{
|
||||
$this->db->select('BaseTbl.userId, BaseTbl.email, BaseTbl.name, BaseTbl.mobile, Role.role');
|
||||
$this->db->from('Tab_Users as BaseTbl');
|
||||
$this->db->join('Tab_Roles as Role', 'Role.roleId = BaseTbl.roleId','left');
|
||||
if(!empty($searchText)) {
|
||||
$likeCriteria = "(BaseTbl.email LIKE '%".$searchText."%'
|
||||
OR BaseTbl.name LIKE '%".$searchText."%'
|
||||
OR BaseTbl.mobile LIKE '%".$searchText."%')";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
$this->db->where('BaseTbl.isDeleted', 0);
|
||||
$this->db->where('BaseTbl.roleId !=', 1);
|
||||
$this->db->limit($page, $segment);
|
||||
$query = $this->db->get();
|
||||
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the user roles information
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getUserRoles()
|
||||
{
|
||||
$this->db->select('roleId, role');
|
||||
$this->db->from('Tab_Roles');
|
||||
$this->db->where('roleId !=', 1);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to check whether email id is already exist or not
|
||||
* @param {string} $email : This is email id
|
||||
* @param {number} $userId : This is user id
|
||||
* @return {mixed} $result : This is searched result
|
||||
*/
|
||||
function checkEmailExists($email, $userId = 0)
|
||||
{
|
||||
$this->db->select("email");
|
||||
$this->db->from("Tab_Users");
|
||||
$this->db->where("email", $email);
|
||||
$this->db->where("isDeleted", 0);
|
||||
if($userId != 0){
|
||||
$this->db->where("userId !=", $userId);
|
||||
}
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to add new user to system
|
||||
* @return number $insert_id : This is last inserted id
|
||||
*/
|
||||
function addNewUser($userInfo)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
$this->db->insert('Tab_Users', $userInfo);
|
||||
|
||||
$insert_id = $this->db->insert_id();
|
||||
|
||||
$this->db->trans_complete();
|
||||
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
*/
|
||||
function getUserInfo($userId)
|
||||
{
|
||||
$this->db->select('userId, name, email, mobile, roleId');
|
||||
$this->db->from('Tab_Users');
|
||||
$this->db->where('isDeleted', 0);
|
||||
$this->db->where('roleId !=', 1);
|
||||
$this->db->where('userId', $userId);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to update the user information
|
||||
* @param array $userInfo : This is users updated information
|
||||
* @param number $userId : This is user id
|
||||
*/
|
||||
function editUser($userInfo, $userId)
|
||||
{
|
||||
$this->db->where('userId', $userId);
|
||||
$this->db->update('Tab_Users', $userInfo);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to delete the user information
|
||||
* @param number $userId : This is user id
|
||||
* @return boolean $result : TRUE / FALSE
|
||||
*/
|
||||
function deleteUser($userId, $userInfo)
|
||||
{
|
||||
$this->db->where('userId', $userId);
|
||||
$this->db->update('Tab_Users', $userInfo);
|
||||
|
||||
return $this->db->affected_rows();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to match users password for change password
|
||||
* @param number $userId : This is user id
|
||||
*/
|
||||
function matchOldPassword($userId, $oldPassword)
|
||||
{
|
||||
$this->db->select('userId, password');
|
||||
$this->db->where('userId', $userId);
|
||||
$this->db->where('isDeleted', 0);
|
||||
$query = $this->db->get('Tab_Users');
|
||||
|
||||
$user = $query->result();
|
||||
|
||||
if(!empty($user)){
|
||||
if(verifyHashedPassword($oldPassword, $user[0]->password)){
|
||||
return $user;
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to change users password
|
||||
* @param number $userId : This is user id
|
||||
* @param array $userInfo : This is user updation info
|
||||
*/
|
||||
function changePassword($userId, $userInfo)
|
||||
{
|
||||
$this->db->where('userId', $userId);
|
||||
$this->db->where('isDeleted', 0);
|
||||
$this->db->update('Tab_Users', $userInfo);
|
||||
|
||||
return $this->db->affected_rows();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get user login history
|
||||
* @param number $userId : This is user id
|
||||
*/
|
||||
function loginHistoryCount($userId, $searchText, $fromDate, $toDate)
|
||||
{
|
||||
$this->db->select('BaseTbl.userId, BaseTbl.sessionData, BaseTbl.machineIp, BaseTbl.userAgent, BaseTbl.agentString, BaseTbl.platform, BaseTbl.createdDtm');
|
||||
if(!empty($searchText)) {
|
||||
$likeCriteria = "(BaseTbl.email LIKE '%".$searchText."%')";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
if(!empty($fromDate)) {
|
||||
$likeCriteria = "DATE_FORMAT(BaseTbl.createdDtm, '%Y-%m-%d' ) >= '".date('Y-m-d', strtotime($fromDate))."'";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
if(!empty($toDate)) {
|
||||
$likeCriteria = "DATE_FORMAT(BaseTbl.createdDtm, '%Y-%m-%d' ) <= '".date('Y-m-d', strtotime($toDate))."'";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
$this->db->where('BaseTbl.userId', $userId);
|
||||
$this->db->from('Tab_LastLogin as BaseTbl');
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->num_rows();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get user login history
|
||||
* @param number $userId : This is user id
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
*/
|
||||
function loginHistory($userId, $searchText, $fromDate, $toDate, $page, $segment)
|
||||
{
|
||||
$this->db->select('BaseTbl.userId, BaseTbl.sessionData, BaseTbl.machineIp, BaseTbl.userAgent, BaseTbl.agentString, BaseTbl.platform, BaseTbl.createdDtm');
|
||||
$this->db->from('Tab_LastLogin as BaseTbl');
|
||||
if(!empty($searchText)) {
|
||||
$likeCriteria = "(BaseTbl.email LIKE '%".$searchText."%')";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
if(!empty($fromDate)) {
|
||||
$likeCriteria = "DATE_FORMAT(BaseTbl.createdDtm, '%Y-%m-%d' ) >= '".date('Y-m-d', strtotime($fromDate))."'";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
if(!empty($toDate)) {
|
||||
$likeCriteria = "DATE_FORMAT(BaseTbl.createdDtm, '%Y-%m-%d' ) <= '".date('Y-m-d', strtotime($toDate))."'";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
$this->db->where('BaseTbl.userId', $userId);
|
||||
$this->db->order_by('BaseTbl.id', 'DESC');
|
||||
$this->db->limit($page, $segment);
|
||||
$query = $this->db->get();
|
||||
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
*/
|
||||
function getUserInfoById($userId)
|
||||
{
|
||||
$this->db->select('userId, name, email, mobile, roleId');
|
||||
$this->db->from('Tab_Users');
|
||||
$this->db->where('isDeleted', 0);
|
||||
$this->db->where('userId', $userId);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,315 +0,0 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class User_model extends CI_Model
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
*/
|
||||
function userListing()
|
||||
{
|
||||
$this->db->select('EMP.EmpID,EMP.FirstName,EMP.LastName,EMP.Designation,EMP.EmailId,EMP.ContactNumber,
|
||||
DEPT.DEPCode,DEPT.DepartmentName,role.role,user.userId');
|
||||
$this->db->from('T_Employee_Details EMP');
|
||||
$this->db->join('T_DepartmentDetails DEPT', 'EMP.Departmentcode = DEPT.DEPCode');
|
||||
$this->db->join('tbl_users user', 'user.EmpID = EMP.EmpID');
|
||||
$this->db->join('tbl_roles role', 'user.roleId = role.roleId');
|
||||
|
||||
|
||||
$this->db->where('user.isDeleted !=', 1);
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
function GetRoleNameByUserID($UserId)
|
||||
{
|
||||
$subQuery = 'select roleId, role from tbl_roles
|
||||
where roleId = (select roleId from tbl_users where userId=?)';
|
||||
|
||||
$query = $this->db->query($subQuery, array($UserId));
|
||||
|
||||
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
/**
|
||||
* This function is used to get the user roles information
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getUserRoles()
|
||||
{
|
||||
$this->db->select('roleId, role');
|
||||
$this->db->from('tbl_roles');
|
||||
$this->db->where("roleid <", 4);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to check whether email id is already exist or not
|
||||
* @param {string} $email : This is email id
|
||||
* @param {number} $userId : This is user id
|
||||
* @return {mixed} $result : This is searched result
|
||||
*/
|
||||
function checkEmailExists($email, $userId = 0)
|
||||
{
|
||||
$this->db->select("email");
|
||||
$this->db->from("tbl_users");
|
||||
$this->db->where("email", $email);
|
||||
$this->db->where("isDeleted", 0);
|
||||
if($userId != 0){
|
||||
$this->db->where("userId !=", $userId);
|
||||
}
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to add new user to system
|
||||
* @return number $insert_id : This is last inserted id
|
||||
*/
|
||||
function addNewUser($userInfo)
|
||||
{
|
||||
|
||||
$this->db->trans_start();
|
||||
$this->db->insert('tbl_users', $userInfo);
|
||||
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
$this->db->trans_complete();
|
||||
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
*/
|
||||
function getUserInfo($userId)
|
||||
{
|
||||
$this->db->select('userId, name, email, mobile, roleId,isDeleted');
|
||||
$this->db->from('tbl_users');
|
||||
$this->db->where('isDeleted', 0);
|
||||
$this->db->where('roleId !=', 1);
|
||||
$this->db->where('userId', $userId);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to update the user information
|
||||
* @param array $userInfo : This is users updated information
|
||||
* @param number $userId : This is user id
|
||||
*/
|
||||
function editUser($userInfo, $userId)
|
||||
{
|
||||
$this->db->where('EmpID', $userId);
|
||||
$this->db->update('tbl_users', $userInfo);
|
||||
//print_r($this->db->last_query());
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to delete the user information
|
||||
* @param number $userId : This is user id
|
||||
* @return boolean $result : TRUE / FALSE
|
||||
*/
|
||||
function deleteUser($userId, $userInfo)
|
||||
{
|
||||
$this->db->where('userId', $userId);
|
||||
$this->db->update('tbl_users', $userInfo);
|
||||
|
||||
return $this->db->affected_rows();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to match users password for change password
|
||||
* @param number $userId : This is user id
|
||||
*/
|
||||
function matchOldPassword($userId, $oldPassword)
|
||||
{
|
||||
$this->db->select('userId, password');
|
||||
$this->db->where('userId', $userId);
|
||||
$this->db->where('isDeleted', 0);
|
||||
$query = $this->db->get('tbl_users');
|
||||
|
||||
$user = $query->result();
|
||||
|
||||
if(!empty($user)){
|
||||
if(verifyHashedPassword($oldPassword, $user[0]->password)){
|
||||
return $user;
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to change users password
|
||||
* @param number $userId : This is user id
|
||||
* @param array $userInfo : This is user updation info
|
||||
*/
|
||||
function changePassword($userId, $userInfo)
|
||||
{
|
||||
$this->db->where('userId', $userId);
|
||||
$this->db->where('isDeleted', 0);
|
||||
$this->db->update('tbl_users', $userInfo);
|
||||
|
||||
return $this->db->affected_rows();
|
||||
}
|
||||
/**
|
||||
* This function is used to get Employee details based on Employee ID Selection
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function GetEmployeeDetails($UserId)
|
||||
{
|
||||
//echo $UserId;
|
||||
$subQuery = 'select EMP.EmpID,EMP.FirstName,EMP.LastName,EMP.Designation,EMP.EmailId,EMP.ContactNumber,DEPT.DEPCode,DEPT.DepartmentName from
|
||||
T_Employee_Details EMP join T_DepartmentDetails DEPT on
|
||||
EMP.Departmentcode = DEPT.DEPCode where EMP.EmpID= (select EmpID from tbl_users where userId=?)';
|
||||
|
||||
$query = $this->db->query($subQuery, array($UserId));
|
||||
|
||||
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
/**
|
||||
* This function is used to get the All employees
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getAllEmployees()
|
||||
{
|
||||
/*$this->db->select('EmpID,FirstName,LastName');
|
||||
$this->db->from('T_Employee_Details');
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result(); */
|
||||
$this->db->select('EMP.EmpID,EMP.FirstName,EMP.LastName,EMP.Designation,EMP.EmailId,EMP.ContactNumber,DEPT.DEPCode,DEPT.DepartmentName');
|
||||
$this->db->from('T_Employee_Details EMP');
|
||||
$this->db->join('T_DepartmentDetails DEPT', 'EMP.Departmentcode = DEPT.DEPCode');
|
||||
$this->db->where('EMP.IsActive ',1 );
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
function addAccess($userdept)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
$this->db->insert('T_AccessDepartments', $userdept);
|
||||
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
$this->db->trans_complete();
|
||||
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
|
||||
function DeleteAccess($empid,$Depcode)
|
||||
{
|
||||
$this->db->where("Departmentcode",$Depcode);
|
||||
$this->db->where("EmpID",$empid);
|
||||
$this->db->delete('T_AccessDepartments');
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
//this function used to delivery performances
|
||||
|
||||
function deliver_perform($fa,$aa,$m)
|
||||
{
|
||||
|
||||
|
||||
|
||||
$sql="select ip_invoices.*,ip_invoice_items.item_quantity as qty,
|
||||
ip_clients.* from ip_invoices
|
||||
join ip_clients on ip_clients.client_id=ip_invoices.client_id
|
||||
join ip_invoice_items on ip_invoice_items .invoice_id =ip_invoices.invoice_id
|
||||
join ip_invoice_custom icf on icf.invoice_id = ip_invoices.invoice_id
|
||||
where icf.invoice_custom_fieldid = 8 and ip_invoices.invoice_status_id != 1";
|
||||
|
||||
|
||||
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
$sql.=" and (ip_invoices.invoice_date_created >= '".$fa."-04-01' and ip_invoices.invoice_date_created <= '".$aa."-03-31')";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if ($m!= ''){
|
||||
|
||||
$sql.=" and monthname(ip_invoices.invoice_date_created) = '".$m."'";
|
||||
|
||||
}
|
||||
|
||||
$sql .= " ORDER BY ip_invoices.invoice_date_created DESC";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function fincalYear()
|
||||
{
|
||||
$sql="SELECT
|
||||
CASE WHEN MONTH(invoice_date_created)>=4 THEN
|
||||
concat(YEAR(invoice_date_created), '-',YEAR(invoice_date_created)+1)
|
||||
ELSE concat(YEAR(invoice_date_created)-1,'-', YEAR(invoice_date_created)) END AS financial_year
|
||||
FROM ip_invoices
|
||||
GROUP BY financial_year ";
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
//print_r($query->result());
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/*
|
||||
*fav model
|
||||
*/
|
||||
function favouriteadd($favourite)
|
||||
|
||||
{ //echo $favourite['Menu_ID'];die;
|
||||
if($favourite['Menu_ID'] !=''){
|
||||
//echo "if";
|
||||
|
||||
// $this->db->where('id', $id);
|
||||
// return $this->db->delete('employee');
|
||||
$this->db->where('Menu_ID',$favourite['Menu_ID']);
|
||||
$this->db->delete('T_fav_add');
|
||||
|
||||
}else{
|
||||
//echo "else";
|
||||
|
||||
$this->db->insert('T_fav_add',$favourite);
|
||||
$r = $this->db->affected_rows();
|
||||
return $r;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,15 +1,46 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
404
|
||||
<small>This is not the page you are looking for</small>
|
||||
404 Error Page
|
||||
</h1>
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li><a href="#">Examples</a></li>
|
||||
<li class="active">404 error</li>
|
||||
</ol> -->
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-center">
|
||||
<img src="<?php echo base_url() ?>assets/images/404.png" alt="Page Not Found Image" />
|
||||
<div class="error-page">
|
||||
<h2 class="headline text-yellow"> 404</h2>
|
||||
|
||||
<div class="error-content">
|
||||
<h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
|
||||
|
||||
<p>
|
||||
We could not find the page you were looking for.
|
||||
Meanwhile, you may <a href="<?php echo base_url(); ?>Routes">return to dashboard</a> or try using the search form.
|
||||
</p>
|
||||
|
||||
<form class="search-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="search" class="form-control" placeholder="Search">
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" name="submit" class="btn btn-warning btn-flat"><i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.input-group -->
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.error-content -->
|
||||
</div>
|
||||
<!-- /.error-page -->
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
47
application/views/500.php
Executable file
@ -0,0 +1,47 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
500 Error Page
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li><a href="#">Examples</a></li>
|
||||
<li class="active">500 error</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
|
||||
<div class="error-page">
|
||||
<h2 class="headline text-red">500</h2>
|
||||
|
||||
<div class="error-content">
|
||||
<h3><i class="fa fa-warning text-red"></i> Oops! Something went wrong.</h3>
|
||||
|
||||
<p>
|
||||
We will work on fixing that right away.
|
||||
Meanwhile, you may <a href="../../index.html">return to dashboard</a> or try using the search form.
|
||||
</p>
|
||||
|
||||
<form class="search-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="search" class="form-control" placeholder="Search">
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" name="submit" class="btn btn-danger btn-flat"><i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.input-group -->
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.error-page -->
|
||||
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
@ -1,3 +1,100 @@
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
|
||||
.info-box-icon{
|
||||
margin-left: 17px;
|
||||
/*background: linear-gradient(60deg,#ec407a,#d81b60);*/
|
||||
box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
display: inline-block;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
font-size: 36px;
|
||||
border-radius: 3px;
|
||||
margin-top: -25px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.info-box-content{
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
.bg-red{
|
||||
background: #dc2265 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper" style="background-color: #eee;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content" style="margin-top: 20px;">
|
||||
<!-- Info boxes -->
|
||||
<div class="row">
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua" style="box-shadow:0 4px 20px 0 rgba(0, 192, 239, 0.55), 0 7px 10px -5px rgba(0, 192, 239, 0.32);"><i class="ion ion-ios-people-outline"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">Users</span>
|
||||
<span class="info-box-number"><?php echo $usercount; ?></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red" style="box-shadow:0 4px 20px 0 rgba(220, 34, 101, 0.47), 0 7px 10px -5px rgba(220, 34, 101, 0.35);"><i class="fa fa-globe"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">Countries</span>
|
||||
<span class="info-box-number">195</span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<!-- fix for small devices only -->
|
||||
<div class="clearfix visible-sm-block"></div>
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-green" style="box-shadow:0 4px 20px 0 rgba(0, 166, 90, 0.45), 0 7px 10px -5px rgba(0, 166, 90, 0.38);"><i class="ion ion-ios-cart-outline"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">Sales</span>
|
||||
<span class="info-box-number">760</span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-yellow" style="box-shadow:0 4px 20px 0 rgba(243, 156, 18, 0.62), 0 7px 10px -5px rgba(243, 156, 18, 0.41);"><i class="ion ion-ios-people-outline"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">New Members</span>
|
||||
<span class="info-box-number">2,000</span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
|
||||
87
application/views/UsersListing.php
Executable file
@ -0,0 +1,87 @@
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<i class="fa fa-users"></i> User Management
|
||||
<small>Add, Edit, Delete</small>
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-right">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-primary" href="<?php echo base_url(); ?>addNew"><i class="fa fa-plus"></i> Add New</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Users List</h3>
|
||||
<div class="box-tools">
|
||||
<form action="<?php echo base_url() ?>userListing" method="POST" id="searchList">
|
||||
<div class="input-group">
|
||||
<input type="text" name="searchText" value="<?php echo $searchText; ?>" class="form-control input-sm pull-right" style="width: 150px;" placeholder="Search"/>
|
||||
<div class="input-group-btn">
|
||||
<button class="btn btn-sm btn-default searchList"><i class="fa fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Mobile</th>
|
||||
<th>Role</th>
|
||||
<th class="text-center">Actions</th>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($userRecords))
|
||||
{
|
||||
foreach($userRecords as $record)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $record->userId ?></td>
|
||||
<td><?php echo $record->name ?></td>
|
||||
<td><?php echo $record->email ?></td>
|
||||
<td><?php echo $record->mobile ?></td>
|
||||
<td><?php echo $record->role ?></td>
|
||||
<td class="text-center">
|
||||
<a class="btn btn-sm btn-primary" href="<?= base_url().'login-history/'.$record->userId; ?>" title="Login history"><i class="fa fa-history"></i></a> |
|
||||
<a class="btn btn-sm btn-info" href="<?php echo base_url().'editOld/'.$record->userId; ?>" title="Edit"><i class="fa fa-pencil"></i></a>
|
||||
<a class="btn btn-sm btn-danger deleteUser" href="#" data-userid="<?php echo $record->userId; ?>" title="Delete"><i class="fa fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div><!-- /.box-body -->
|
||||
<div class="box-footer clearfix">
|
||||
<?php echo $this->pagination->create_links(); ?>
|
||||
</div>
|
||||
</div><!-- /.box -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('ul.pagination li a').click(function (e) {
|
||||
e.preventDefault();
|
||||
var link = jQuery(this).get(0).href;
|
||||
var value = link.substring(link.lastIndexOf('/') + 1);
|
||||
jQuery("#searchList").attr("action", baseURL + "userListing/" + value);
|
||||
jQuery("#searchList").submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@ -1,15 +1,45 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Access Denied
|
||||
<small>You are not authorize user to use this</small>
|
||||
</h1>
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li><a href="#">Examples</a></li>
|
||||
<li class="active">404 error</li>
|
||||
</ol> -->
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-center">
|
||||
<img src="<?php echo base_url() ?>assets/images/access.png" alt="Access Denied Image" />
|
||||
<div class="error-page">
|
||||
<h2 class="headline text-yellow"> Access Denied</h2>
|
||||
|
||||
<div class="error-content">
|
||||
<h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
|
||||
|
||||
<p>
|
||||
You are not authorize user to use this
|
||||
</p>
|
||||
|
||||
<form class="search-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="search" class="form-control" placeholder="Search">
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" name="submit" class="btn btn-warning btn-flat"><i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.input-group -->
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.error-content -->
|
||||
</div>
|
||||
<!-- /.error-page -->
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
125
application/views/addUser.php
Executable file
@ -0,0 +1,125 @@
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<i class="fa fa-users"></i> User Management
|
||||
<small>Add / Edit User</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-8">
|
||||
<!-- general form elements -->
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Enter User Details</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
<?php $this->load->helper("form"); ?>
|
||||
<form role="form" id="addUser" action="<?php echo base_url() ?>addNewUser" method="post" role="form">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="fname">Full Name</label>
|
||||
<input type="text" class="form-control required" value="<?php echo set_value('fname'); ?>" id="fname" name="fname" maxlength="128">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="email">Email address</label>
|
||||
<input type="text" class="form-control required email" id="email" value="<?php echo set_value('email'); ?>" name="email" maxlength="128">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" class="form-control required" id="password" name="password" maxlength="20">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="cpassword">Confirm Password</label>
|
||||
<input type="password" class="form-control required equalTo" id="cpassword" name="cpassword" maxlength="20">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="mobile">Mobile Number</label>
|
||||
<input type="text" class="form-control required digits" id="mobile" value="<?php echo set_value('mobile'); ?>" name="mobile" maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="role">Role</label>
|
||||
<select class="form-control required" id="role" name="role">
|
||||
<option value="0">Select Role</option>
|
||||
<?php
|
||||
if(!empty($roles))
|
||||
{
|
||||
foreach ($roles as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->roleId ?>" <?php if($rl->roleId == set_value('role')) {echo "selected=selected";} ?>><?php echo $rl->role ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-primary" value="Submit" />
|
||||
<input type="reset" class="btn btn-default" value="Reset" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
$this->load->helper('form');
|
||||
$error = $this->session->flashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = $this->session->flashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<script src="<?php echo base_url(); ?>assets/js/addUser.js" type="text/javascript"></script>
|
||||
250
application/views/changePassword.php
Executable file
@ -0,0 +1,250 @@
|
||||
|
||||
<style>
|
||||
|
||||
.designinput {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-left: 15px;
|
||||
}
|
||||
.slide-up {
|
||||
display: inline-block;
|
||||
width: 260px;
|
||||
padding: 10px 0 10px 30px;
|
||||
font-family: "Open Sans", sans;
|
||||
font-weight: 400;
|
||||
color: #377D6A;
|
||||
background: #efefef;
|
||||
border: 0;
|
||||
border-radius: 3px;
|
||||
outline: 0;
|
||||
text-indent: 80px;
|
||||
transition: all .3s ease-in-out;
|
||||
}
|
||||
.slide-up::-webkit-input-placeholder {
|
||||
color: #efefef;
|
||||
text-indent: 0;
|
||||
font-weight: 300;
|
||||
}
|
||||
.slide-up + label {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
transform: translateX(0);
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 10px 15px;
|
||||
text-shadow: 0 1px 0 rgba(19, 74, 70, 0.4);
|
||||
transition: all .3s ease-in-out;
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.slide-up + label:before, .slide-up + label:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
transition: all .3s ease-in-out;
|
||||
}
|
||||
.slide-up + label:before {
|
||||
top: 6px;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
bottom: 6px;
|
||||
background: #df2769;
|
||||
}
|
||||
.slide-up + label:after {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
background: rgb(177, 177, 177);
|
||||
}
|
||||
|
||||
span:nth-child(1) .slide-up {
|
||||
text-indent: 105px;
|
||||
}
|
||||
|
||||
span:nth-child(3) .slide-up {
|
||||
text-indent: 125px;
|
||||
}
|
||||
|
||||
span:nth-child(1) .slide-up:focus,
|
||||
span:nth-child(1) .slide-up:active,
|
||||
span:nth-child(3) .slide-up:focus,
|
||||
span:nth-child(3) .slide-up:active {
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
.slide-up:focus,
|
||||
.slide-up:active {
|
||||
color: #377D6A;
|
||||
text-indent: 0;
|
||||
background: #fff;
|
||||
}
|
||||
.slide-up:focus::-webkit-input-placeholder,
|
||||
.slide-up:active::-webkit-input-placeholder {
|
||||
color: #aaa;
|
||||
}
|
||||
.slide-up:focus + label,
|
||||
.slide-up:active + label {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
.slide-up:focus + label:before,
|
||||
.slide-up:active + label:before {
|
||||
border-radius: 5px;
|
||||
}
|
||||
.slide-up:focus + label:after,
|
||||
.slide-up:active + label:after {
|
||||
transform: translateY(100%);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.btn-primary:hover, .btn-primary:active, .btn-primary.hover{
|
||||
background-color: #087322;
|
||||
}
|
||||
.btn-primary12:hover, .btn-primary12:active, .btn-primary12.hover{
|
||||
background-color: #FFC107;
|
||||
color: #fff;
|
||||
}
|
||||
.btn-primary{
|
||||
color: #fff;
|
||||
background-color: rgba(18, 187, 23, 0.75);
|
||||
border-color: rgba(18, 187, 23, 0.75);
|
||||
box-shadow: 0 2px 2px 0 rgba(233,30,99,.14), 0 3px 1px -2px rgba(233,30,99,.2), 0 1px 5px 0 rgba(233,30,99,.12);
|
||||
/*position: relative;*/
|
||||
padding: 10px 19px;
|
||||
margin: 0.3125rem 1px;
|
||||
min-width: auto;
|
||||
font-size: 1.20rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.428571;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
vertical-align: middle;
|
||||
letter-spacing: 0;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
border-radius: .2rem;
|
||||
outline: 0;
|
||||
transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1);
|
||||
/*will-change: box-shadow,transform;*/
|
||||
}
|
||||
.btn-primary12{
|
||||
color: #fff;
|
||||
background-color:#f2b865;
|
||||
border-color: #f2b865;
|
||||
box-shadow: 0 2px 2px 0 rgba(233,30,99,.14), 0 3px 1px -2px rgba(233,30,99,.2), 0 1px 5px 0 rgba(233,30,99,.12);
|
||||
/*position: relative;*/
|
||||
padding: 10px 19px;
|
||||
margin: 0.3125rem 1px;
|
||||
min-width: auto;
|
||||
font-size: 1.20rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.428571;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
vertical-align: middle;
|
||||
letter-spacing: 0;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
border-radius: .2rem;
|
||||
outline: 0;
|
||||
transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1);
|
||||
/*will-change: box-shadow,transform;*/
|
||||
}
|
||||
|
||||
.or-button{
|
||||
position: relative;
|
||||
margin: -13px;
|
||||
display: inline-block;
|
||||
padding: 2px 5px;
|
||||
background-color: #fff;
|
||||
border-radius: 38px;
|
||||
}
|
||||
.box-title-box{
|
||||
margin-left: 18px;
|
||||
background: linear-gradient(60deg,#ec407a,#d81b60);
|
||||
box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
display: inline-block;
|
||||
border-radius: 3px;
|
||||
padding: 13px;
|
||||
margin-top: -50px;
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper" style="background-color: #eee;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content" style="margin-top: 50px;">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-1 col-md-10">
|
||||
<div class="box box-solid" style="box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding: 20px;">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<h3 class="box-title-box">Change Password</h3>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" action="<?php echo base_url() ?>changePassword" method="post" style="padding:40px;">
|
||||
<div class="row">
|
||||
<div class="col-md-12 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="inputOldPassword" name="oldPassword" type="password" placeholder="Old password" maxlength="20" required /><label for="inputPassword1">Old Password</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr><br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="inputPassword1" name="newPassword" type="password" placeholder="New password" maxlength="20" required /><label for="inputPassword1">New Password</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="inputPassword2" name="cNewPassword"type="password" placeholder="Confirm password" maxlength="20" width="48" required><label for="inputPassword2">Confirm New Password</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-offset-8 col-md-4">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="submit" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
@ -26,7 +26,7 @@
|
||||
font-weight: 300;
|
||||
}
|
||||
.slide-up + label {
|
||||
font-weight: 400;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
transform: translateX(0);
|
||||
@ -104,7 +104,21 @@ span:nth-child(3) .slide-up:active {
|
||||
|
||||
|
||||
|
||||
|
||||
.btn-success.focus, .btn-success:focus{
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success:hover, .btn-success:active, .btn-success.hover {
|
||||
background-color: rgba(219, 34, 101, 0.64);
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
|
||||
|
||||
.btn-primary:hover, .btn-primary:active, .btn-primary.hover{
|
||||
@ -180,9 +194,18 @@ span:nth-child(3) .slide-up:active {
|
||||
margin-top: -50px;
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
.nav-tabs-custom>.nav-tabs>li.active{
|
||||
border-top-color:#dc2265 !important;
|
||||
}
|
||||
.box-solid{
|
||||
box-shadow: 0 3px 4px 0 rgba(0,0,0,0.14),
|
||||
0 3px 3px -2px rgba(0,0,0,0.12),
|
||||
0 1px 8px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper" style="background-color: #eee;">
|
||||
<!-- Content Header (Page header) -->
|
||||
@ -193,18 +216,71 @@ span:nth-child(3) .slide-up:active {
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-1 col-md-10">
|
||||
<div class="box box-solid" style="box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding: 20px;">
|
||||
<div class="box box-solid" style="padding: 20px;">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<h3 class="box-title-box">City Master</h3>
|
||||
<h3 class="box-title-box"><i class="fa fa-map-signs" style="padding-right:5px;"></i>City Master</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-offset-9 col-md-3">
|
||||
<button type="button" class="btn btn-block btn-success btn-sm" data-toggle="modal" data-target="#AddCity">Add City</button>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table id="example2" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th>City Name</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php if(!empty($getcity)){
|
||||
foreach($getcity as $gcity){?>
|
||||
<tr>
|
||||
<td><?php echo $gcity->CityCode;?></td>
|
||||
<td><?php echo $gcity->CityName;?></td>
|
||||
<td style="text-align:center;"><?php echo $gcity->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
|
||||
<td style="text-align:center;"><span onclick="ToEditCityDetails(<?php echo $gcity->CityCode; ?>)"><i class="fa fa-edit" data-toggle="tooltip" data-original-title="Click here to view/Edit <?php echo $gcity->CityCode ?> Details" style="color: #dc2265;"></i></a>
|
||||
</tr>
|
||||
<?php }
|
||||
}?>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th>City Name</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="AddCity">
|
||||
<div class="modal-dialog" style="top: 40px;width: 70%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">Add Country</h4>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" style="padding:40px;">
|
||||
<form role="form" action="<?php echo base_url() ?>Add_city_master" method="post" style="padding:40px;">
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="card" type="text" placeholder="Enter city name" /><label for="card">City Name</label>
|
||||
<input class="slide-up" id="CityName" name="CityName" type="text" placeholder="Enter city name" /><label for="City Name">City Name</label>
|
||||
|
||||
<!--<label for="exampleInputcountryname">Country Name</label>
|
||||
<input type="text" class="form-control" id="exampleInputcountryname" placeholder="Enter country">-->
|
||||
@ -214,17 +290,89 @@ span:nth-child(3) .slide-up:active {
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label for="Description">Description</label>
|
||||
<textarea class="form-control" rows="3" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
<textarea class="form-control" rows="3" id="CityDescription" name="CityDescription" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-offset-8 col-md-4">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label>Active/Deactive
|
||||
<input type="checkbox" class="flat-red" name="IsActive" id="IsActive" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="submit" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
<button type="reset" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form End -->
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="EditCity">
|
||||
<div class="modal-dialog" style="top: 40px;width: 70%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">Edit Country</h4>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" action="<?php echo base_url() ?>Update_city_master" method="post" style="padding:40px;">
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="EditCityName" name="EditCityName" type="text" placeholder="Enter city name" /><label for="City Name">City Name</label>
|
||||
|
||||
<!--<label for="exampleInputcountryname">Country Name</label>
|
||||
<input type="text" class="form-control" id="exampleInputcountryname" placeholder="Enter country">-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label for="Description">Description</label>
|
||||
<textarea class="form-control" rows="3" id="EditCityDescription" name="EditCityDescription" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label>Active/Deactive
|
||||
<input type="checkbox" class="flat-red" name="EditIsActive" id="EditIsActive" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input readonly id="hidecitycode" name="HideCityCode" type="hidden" />
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="reset" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form End -->
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
@ -239,3 +387,60 @@ span:nth-child(3) .slide-up:active {
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#example1').DataTable()
|
||||
$('#example2').DataTable({
|
||||
'paging' : true,
|
||||
'lengthChange': true,
|
||||
'searching' : true,
|
||||
'ordering' : true,
|
||||
'info' : true,
|
||||
'autoWidth' : false
|
||||
})
|
||||
//Flat red color scheme for iCheck
|
||||
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-green',
|
||||
radioClass : 'iradio_flat-green'
|
||||
})
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function ToEditCityDetails(arg){
|
||||
|
||||
$('#EditCity').modal('show');
|
||||
|
||||
$.ajax({
|
||||
data:{citycode:arg},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url();?>GetAll_city_master",
|
||||
success:function(data) {
|
||||
//alert(data);
|
||||
|
||||
$.each(JSON.parse(data), function (i, item) {
|
||||
|
||||
$('#hidecitycode').val(item.CityCode);
|
||||
$('#EditCityName').val(item.CityName);
|
||||
$('#EditCityDescription').val(item.CityDescription);
|
||||
if(item.IsActive == 0){
|
||||
|
||||
$('.icheckbox_flat-green').attr("aria-checked", false);
|
||||
$('.icheckbox_flat-green').removeClass('checked');
|
||||
}
|
||||
else{
|
||||
|
||||
$('.icheckbox_flat-green').attr("aria-checked", true);
|
||||
$('.icheckbox_flat-green').addClass('checked');
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
font-weight: 300;
|
||||
}
|
||||
.slide-up + label {
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
transform: translateX(0);
|
||||
@ -103,7 +104,21 @@ span:nth-child(3) .slide-up:active {
|
||||
|
||||
|
||||
|
||||
|
||||
.btn-success.focus, .btn-success:focus{
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success:hover, .btn-success:active, .btn-success.hover {
|
||||
background-color: rgba(219, 34, 101, 0.64);
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
|
||||
|
||||
.btn-primary:hover, .btn-primary:active, .btn-primary.hover{
|
||||
@ -179,6 +194,14 @@ span:nth-child(3) .slide-up:active {
|
||||
margin-top: -50px;
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
.nav-tabs-custom>.nav-tabs>li.active{
|
||||
border-top-color:#dc2265 !important;
|
||||
}
|
||||
.box-solid{
|
||||
box-shadow: 0 3px 4px 0 rgba(0,0,0,0.14),
|
||||
0 3px 3px -2px rgba(0,0,0,0.12),
|
||||
0 1px 8px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -193,18 +216,76 @@ span:nth-child(3) .slide-up:active {
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-1 col-md-10">
|
||||
<div class="box box-solid" style="box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding: 20px;">
|
||||
<div class="box box-solid" style="padding: 20px;">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<h3 class="box-title-box">Country Master</h3>
|
||||
<h3 class="box-title-box"><i class="fa fa-flag" style="padding-right:5px;"></i>Country Master</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-offset-9 col-md-3">
|
||||
<button type="button" class="btn btn-block btn-success btn-sm" data-toggle="modal" data-target="#AddCountry">Add Country</button>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table id="example2" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th>Country Name</th>
|
||||
<th>Country Capital</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php if(!empty($getcountry)){
|
||||
foreach($getcountry as $gc){?>
|
||||
<tr>
|
||||
<td><?php echo $gc->CountryCode;?></td>
|
||||
<td><?php echo $gc->CountryName;?></td>
|
||||
<td><?php echo $gc->CapitalCity;?></td>
|
||||
<td style="text-align:center;"><?php echo $gc->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
|
||||
<td style="text-align:center;"><span onclick="ToEditCountryDetails(<?php echo $gc->CountryCode; ?>)"><i class="fa fa-edit" data-toggle="tooltip" data-original-title="Click here to view/Edit <?php echo $gc->CountryCode ?> Details" style="color: #dc2265;"></i></a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
}?>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th>Country Name</th>
|
||||
<th>Country Capital</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="AddCountry">
|
||||
<div class="modal-dialog" style="top: 40px;width: 70%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">Add Country</h4>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" style="padding:40px;">
|
||||
<form role="form" action="<?php echo base_url() ?>Add_country_master" method="post" style="padding:40px;">
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="card" type="text" placeholder="Enter country name" /><label for="card">Country Name</label>
|
||||
<input class="slide-up" id="countryname" name="CountryName" type="text" placeholder="Enter country name" /><label for="CountryName">Country Name</label>
|
||||
|
||||
<!--<label for="exampleInputcountryname">Country Name</label>
|
||||
<input type="text" class="form-control" id="exampleInputcountryname" placeholder="Enter country">-->
|
||||
@ -212,7 +293,7 @@ span:nth-child(3) .slide-up:active {
|
||||
</div>
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="expires" type="text" placeholder="Enter country capital" /><label for="expires">Country Capital</label>
|
||||
<input class="slide-up" id="capitalcity" name="CapitalCity" type="text" placeholder="Enter country capital" /><label for="capitalcity">Country Capital</label>
|
||||
|
||||
<!--<label for="exampleInputcountrycapital">Country Capital</label>
|
||||
<input type="text" class="form-control" id="exampleInputcountrycapital" placeholder="Enter country capital">-->
|
||||
@ -222,27 +303,97 @@ span:nth-child(3) .slide-up:active {
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label for="Description">Description</label>
|
||||
<textarea id="editor1" name="editor1" rows="10" cols="120">
|
||||
This is my textarea to be replaced with CKEditor.
|
||||
<textarea id="editor1" name="Editor" rows="3" cols="20">
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label>Active/Deactive
|
||||
<input type="checkbox" class="flat-red" checked>
|
||||
</label>
|
||||
<label>Active/Deactive</label>
|
||||
<input type="checkbox" class="flat-red mycheck" id="isactive" name="IsActive" checked>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-offset-6 col-md-4">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="submit" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
<button type="reset" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form End -->
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="EditCountry">
|
||||
<div class="modal-dialog" style="top: 40px;width: 70%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">Edit Country</h4>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" action="<?php echo base_url() ?>Update_country_master" method="post" style="padding:40px;">
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="EditCountryName" name="EditCountryName" type="text" placeholder="Enter country name" /><label for="CountryName">Country Name</label>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="EditCapitalCity" name="EditCapitalCity" type="text" placeholder="Enter country capital" /><label for="capitalcity">Country Capital</label>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label for="Description">Description</label>
|
||||
<textarea id="EditEditor" name="EditEditor" rows="3" cols="20">
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label>Active/Deactive</label>
|
||||
<input type="checkbox" class="flat-red mycheck" id="EditIsActive" name="EditIsActive" checked>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<input id="hidecountrycode" name="HideCountryCode" type="hidden" readonly />
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="reset" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form End -->
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
@ -260,17 +411,74 @@ span:nth-child(3) .slide-up:active {
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
// Replace the <textarea id="editor1"> with a CKEditor
|
||||
// instance, using default configuration.
|
||||
CKEDITOR.replace('editor1')
|
||||
//bootstrap WYSIHTML5 - text editor
|
||||
$('.textarea').wysihtml5()
|
||||
$('#example1').DataTable()
|
||||
$('#example2').DataTable({
|
||||
'paging' : true,
|
||||
'lengthChange': true,
|
||||
'searching' : true,
|
||||
'ordering' : true,
|
||||
'info' : true,
|
||||
'autoWidth' : false
|
||||
})
|
||||
|
||||
|
||||
//Flat red color scheme for iCheck
|
||||
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-green',
|
||||
radioClass : 'iradio_flat-green'
|
||||
})
|
||||
});
|
||||
|
||||
</script>
|
||||
<script>
|
||||
$(function () {
|
||||
// Replace the <textarea id="editor"> with a CKEditor
|
||||
// instance, using default configuration.
|
||||
CKEDITOR.replace('editor1');
|
||||
CKEDITOR.replace('EditEditor');
|
||||
//bootstrap WYSIHTML5 - text editor
|
||||
$('.textarea').wysihtml5()
|
||||
|
||||
});
|
||||
|
||||
|
||||
function ToEditCountryDetails(arg){
|
||||
|
||||
$('#EditCountry').modal('show');
|
||||
|
||||
$.ajax({
|
||||
data:{arg:arg},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url();?>Get_country_master",
|
||||
success:function(data) {
|
||||
|
||||
|
||||
$.each(JSON.parse(data), function (i, item) {
|
||||
|
||||
$('#hidecountrycode').val(item.CountryCode);
|
||||
$('#EditCountryName').val(item.CountryName);
|
||||
$('#EditCapitalCity').val(item.CapitalCity);
|
||||
|
||||
var editordata = item.CountryDescription
|
||||
CKEDITOR.instances['EditEditor'].setData(editordata);
|
||||
if(item.IsActive == 0){
|
||||
|
||||
$('.icheckbox_flat-green').attr("aria-checked", false);
|
||||
$('.icheckbox_flat-green').removeClass('checked');
|
||||
}
|
||||
else{
|
||||
|
||||
$('.icheckbox_flat-green').attr("aria-checked", true);
|
||||
$('.icheckbox_flat-green').addClass('checked');
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
@ -27,6 +27,7 @@
|
||||
font-weight: 300;
|
||||
}
|
||||
.slide-up + label {
|
||||
color: #fff;
|
||||
font-weight: 400;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
@ -194,6 +195,11 @@ span:nth-child(3) .slide-up:active {
|
||||
}
|
||||
.nav-tabs-custom>.nav-tabs>li.active{
|
||||
border-top-color:#dc2265 !important;
|
||||
}
|
||||
.box-solid{
|
||||
box-shadow: 0 3px 4px 0 rgba(0,0,0,0.14),
|
||||
0 3px 3px -2px rgba(0,0,0,0.12),
|
||||
0 1px 8px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -208,11 +214,11 @@ span:nth-child(3) .slide-up:active {
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="box box-solid" style="box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding: 20px;">
|
||||
<div class="box box-solid" style="padding: 20px;">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<h3 class="box-title-box">Country Visa Details</h3>
|
||||
<h3 class="box-title-box"><i class="fa fa-globe" style="padding-right:5px;"></i>Country Visa Details</h3>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" style="padding:40px;">
|
||||
@ -220,14 +226,20 @@ span:nth-child(3) .slide-up:active {
|
||||
<div class="col-md-5">
|
||||
<div class="form-group">
|
||||
<label>Country Type</label>
|
||||
<select class="form-control select2" style="width: 100%;">
|
||||
<option selected="selected">Alabama</option>
|
||||
<option>Alaska</option>
|
||||
<option>California</option>
|
||||
<option>Delaware</option>
|
||||
<option>Tennessee</option>
|
||||
<option>Texas</option>
|
||||
<option>Washington</option>
|
||||
<select id="Countrytype" name="Countrytype" class="form-control select2">
|
||||
<option value="">Select Country Type</option>
|
||||
<?php
|
||||
if(!empty($records))
|
||||
{
|
||||
|
||||
foreach ($records as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->CountryCode ?>"><?php echo $rl->CountryName ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -710,13 +722,14 @@ span:nth-child(3) .slide-up:active {
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Visa Type</th>
|
||||
<th>Embassy Fee</th>
|
||||
<th>VFS Fee</th>
|
||||
<th>Processing Time</th>
|
||||
<th>Download Form</th>
|
||||
<th>Download Checklist</th>
|
||||
<th>Action</th>
|
||||
<th>Place</th>
|
||||
<th>Email</th>
|
||||
<th>Alternate Email</th>
|
||||
<th>Phone Number</th>
|
||||
<th>Fax</th>
|
||||
<th>Submission Timing</th>
|
||||
<th>Holiday List</th>
|
||||
<th>Action<th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@ -909,12 +922,12 @@ span:nth-child(3) .slide-up:active {
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Visa Type</th>
|
||||
<th>Embassy Fee</th>
|
||||
<th>VFS Fee</th>
|
||||
<th>Processing Time</th>
|
||||
<th>Download Form</th>
|
||||
<th>Download Checklist</th>
|
||||
<th>City</th>
|
||||
<th>Phone No</th>
|
||||
<th>Zip Code</th>
|
||||
<th>Email</th>
|
||||
<th>Fax</th>
|
||||
<th>Address</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@ -972,5 +985,6 @@ span:nth-child(3) .slide-up:active {
|
||||
//Initialize Select2 Elements
|
||||
$('.select2').select2()
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
font-weight: 300;
|
||||
}
|
||||
.slide-up + label {
|
||||
font-weight: 400;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
transform: translateX(0);
|
||||
@ -104,7 +104,21 @@ span:nth-child(3) .slide-up:active {
|
||||
|
||||
|
||||
|
||||
|
||||
.btn-success.focus, .btn-success:focus{
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success:hover, .btn-success:active, .btn-success.hover {
|
||||
background-color: rgba(219, 34, 101, 0.64);
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
|
||||
|
||||
.btn-primary:hover, .btn-primary:active, .btn-primary.hover{
|
||||
@ -180,9 +194,18 @@ span:nth-child(3) .slide-up:active {
|
||||
margin-top: -50px;
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
.nav-tabs-custom>.nav-tabs>li.active{
|
||||
border-top-color:#dc2265 !important;
|
||||
}
|
||||
.box-solid{
|
||||
box-shadow: 0 3px 4px 0 rgba(0,0,0,0.14),
|
||||
0 3px 3px -2px rgba(0,0,0,0.12),
|
||||
0 1px 8px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper" style="background-color: #eee;">
|
||||
<!-- Content Header (Page header) -->
|
||||
@ -193,48 +216,168 @@ span:nth-child(3) .slide-up:active {
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-1 col-md-10">
|
||||
<div class="box box-solid" style="box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding: 20px;">
|
||||
<div class="box box-solid" style="padding: 20px;">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<h3 class="box-title-box">Document Master</h3>
|
||||
<h3 class="box-title-box"><i class="fa fa-file" style="padding-right:5px;"></i>Document Master</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-offset-9 col-md-3">
|
||||
<button type="button" class="btn btn-block btn-success btn-sm" data-toggle="modal" data-target="#AddDocument">Add Document</button>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table id="example2" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th>Document Name</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($getdocument)){
|
||||
foreach($getdocument as $gdoc){?>
|
||||
<tr>
|
||||
<td><?php echo $gdoc->DocumentCode;?></td>
|
||||
<td><?php echo $gdoc->DocumentName;?></td>
|
||||
<td style="text-align:center;"><?php echo $gdoc->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
|
||||
<td style="text-align:center;"><span onclick="ToEditDocumentDetails(<?php echo $gdoc->DocumentCode; ?>)"><i class="fa fa-edit" data-toggle="tooltip" data-original-title="Click here to view/Edit <?php echo $gdoc->DocumentCode ?> Details" style="color: #dc2265;"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
}?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th>Document Name</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="AddDocument">
|
||||
<div class="modal-dialog" style="top: 40px;width: 70%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">Add Document</h4>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" style="padding:40px;">
|
||||
<form role="form" action="<?php echo base_url() ?>Add_document_master" method="post" style="padding:40px;" enctype="multipart/form-data">
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="card" type="text" placeholder="Enter visa name" /><label for="card">Document Name</label>
|
||||
|
||||
<!--<label for="exampleInputcountryname">Country Name</label>
|
||||
<input type="text" class="form-control" id="exampleInputcountryname" placeholder="Enter country">-->
|
||||
<input class="slide-up" id="DocumentName" name="DocumentName" type="text" placeholder="Enter Document name" /><label for="Document Name">Document Name</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputcountryname">Document Upload</label>
|
||||
|
||||
<input id="card" type="file" />
|
||||
|
||||
<!--<label for="exampleInputcountryname">Country Name</label>
|
||||
<input type="text" class="form-control" id="exampleInputcountryname" placeholder="Enter country">-->
|
||||
<label for="DocumentFile">Document Upload</label>
|
||||
<input type="file" id="DocumentFile" name="DocumentFile" accept=".JPG,.PNG,.PDF" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label for="Description">Description</label>
|
||||
<textarea class="form-control" rows="3" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
<textarea class="form-control" rows="3" id="Description" name="Description" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-offset-8 col-md-4">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label>Active/Deactive
|
||||
<input type="checkbox" class="flat-red" name="IsActive" id="IsActive" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="submit" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
<button type="reset" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form End -->
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="EditDocument">
|
||||
<div class="modal-dialog" style="top: 40px;width: 70%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">Edit Document</h4>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" action="<?php echo base_url() ?>Update_document_master" method="post" style="padding:40px;" enctype="multipart/form-data">
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="EditDocumentName" name="EditDocumentName" type="text" placeholder="Enter Document Name" /><label for="Document Name">Document Name</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="form-group">
|
||||
<label for="DocumentFile">Document Upload</label>
|
||||
<input type="file" id="EditDocumentFile" name="DocumentFile" accept=".JPG,.PNG,.PDF" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label for="Description">Description</label>
|
||||
<textarea class="form-control" rows="3" id="EditDescription" name="EditDescription" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label>Active/Deactive
|
||||
<input type="checkbox" class="flat-red" name="EditIsActive" id="EditIsActive" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input id="hidedocumentcode" name="HideDocumentCode" type="hidden" readonly />
|
||||
<input id="hidedocument" name="HideDocument" type="hidden" readonly />
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="reset" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form End -->
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
@ -250,3 +393,63 @@ span:nth-child(3) .slide-up:active {
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#example1').DataTable()
|
||||
$('#example2').DataTable({
|
||||
'paging' : true,
|
||||
'lengthChange': true,
|
||||
'searching' : true,
|
||||
'ordering' : true,
|
||||
'info' : true,
|
||||
'autoWidth' : false
|
||||
})
|
||||
//Flat red color scheme for iCheck
|
||||
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-green',
|
||||
radioClass : 'iradio_flat-green'
|
||||
})
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function ToEditDocumentDetails(arg){
|
||||
|
||||
$('#EditDocument').modal('show');
|
||||
|
||||
$.ajax({
|
||||
data:{arg:arg},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url();?>GetAll_document_master",
|
||||
success:function(data) {
|
||||
//alert(data);
|
||||
|
||||
$.each(JSON.parse(data), function (i, item) {
|
||||
|
||||
$('#hidedocumentcode').val(item.DocumentCode);
|
||||
$('#EditDocumentName').val(item.DocumentName);
|
||||
$('#EditDescription').val(item.DocumentDescription);
|
||||
|
||||
|
||||
if(item.IsActive == 0){
|
||||
|
||||
$('.icheckbox_flat-green').attr("aria-checked", false);
|
||||
$('.icheckbox_flat-green').removeClass('checked');
|
||||
}
|
||||
else{
|
||||
|
||||
$('.icheckbox_flat-green').attr("aria-checked", true);
|
||||
$('.icheckbox_flat-green').addClass('checked');
|
||||
|
||||
}
|
||||
$('#hidedocument').val(item.Document);
|
||||
$('#EditDocumentFile').val(item.Document);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
149
application/views/editUser.php
Executable file
@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
$userId = '';
|
||||
$name = '';
|
||||
$email = '';
|
||||
$mobile = '';
|
||||
$roleId = '';
|
||||
|
||||
if(!empty($userInfo))
|
||||
{
|
||||
foreach ($userInfo as $uf)
|
||||
{
|
||||
$userId = $uf->userId;
|
||||
$name = $uf->name;
|
||||
$email = $uf->email;
|
||||
$mobile = $uf->mobile;
|
||||
$roleId = $uf->roleId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<i class="fa fa-users"></i> User Management
|
||||
<small>Add / Edit User</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-8">
|
||||
<!-- general form elements -->
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Enter User Details</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
|
||||
<form role="form" action="<?php echo base_url() ?>editUser" method="post" id="editUser" role="form">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="fname">Full Name</label>
|
||||
<input type="text" class="form-control" id="fname" placeholder="Full Name" name="fname" value="<?php echo $name; ?>" maxlength="128">
|
||||
<input type="hidden" value="<?php echo $userId; ?>" name="userId" id="userId" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="email">Email address</label>
|
||||
<input type="email" class="form-control" id="email" placeholder="Enter email" name="email" value="<?php echo $email; ?>" maxlength="128">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" class="form-control" id="password" placeholder="Password" name="password" maxlength="20">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="cpassword">Confirm Password</label>
|
||||
<input type="password" class="form-control" id="cpassword" placeholder="Confirm Password" name="cpassword" maxlength="20">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="mobile">Mobile Number</label>
|
||||
<input type="text" class="form-control" id="mobile" placeholder="Mobile Number" name="mobile" value="<?php echo $mobile; ?>" maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="role">Role</label>
|
||||
<select class="form-control" id="role" name="role">
|
||||
<option value="0">Select Role</option>
|
||||
<?php
|
||||
if(!empty($roles))
|
||||
{
|
||||
foreach ($roles as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->roleId; ?>" <?php if($rl->roleId == $roleId) {echo "selected=selected";} ?>><?php echo $rl->role ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-primary" value="Submit" />
|
||||
<input type="reset" class="btn btn-default" value="Reset" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
$this->load->helper('form');
|
||||
$error = $this->session->flashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = $this->session->flashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script src="<?php echo base_url(); ?>assets/js/editUser.js" type="text/javascript"></script>
|
||||
3
application/views/favourite.php
Executable file
@ -0,0 +1,3 @@
|
||||
<div class="content-wrapper" style="background-color: #eee;">
|
||||
|
||||
</div>
|
||||
@ -199,7 +199,6 @@
|
||||
immediately after the control sidebar ->
|
||||
<div class="control-sidebar-bg"></div>-->
|
||||
</div><!-- ./wrapper -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/select2/dist/js/select2.full.min.js"></script>
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<!-- jQuery UI 1.11.4 -->
|
||||
@ -208,6 +207,15 @@
|
||||
<script>
|
||||
$.widget.bridge('uibutton', $.ui.button);
|
||||
</script>
|
||||
<!-- InputMask -->
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/input-mask/jquery.inputmask.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/input-mask/jquery.inputmask.extensions.js"></script>
|
||||
<!-- iCheck 1.0.1 -->
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/iCheck/icheck.min.js"></script>
|
||||
<!--Select 2-->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/select2/dist/js/select2.full.min.js"></script>
|
||||
|
||||
<!-- DataTables -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>VISA | Dashboard</title>
|
||||
<title> <?php echo $pageTitle; ?></title>
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
@ -70,7 +70,8 @@
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="<?php echo base_url(); ?>assets/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
|
||||
<span class="hidden-xs">VISA Employee</span>
|
||||
<!--<span class="hidden-xs">VISA Employee</span>-->
|
||||
<span class="hidden-xs"><?php echo $name; ?></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
@ -78,8 +79,8 @@
|
||||
<img src="<?php echo base_url(); ?>assets/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
|
||||
|
||||
<p>
|
||||
Visa Employee - Admin
|
||||
<small>Member of VISA. 2018</small>
|
||||
<?php echo $name; ?>
|
||||
<small><?php echo $role_text; ?></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Body -->
|
||||
@ -87,10 +88,10 @@
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="#" class="btn btn-default btn-flat">Profile</a>
|
||||
<a href="<?php echo base_url(); ?>loadChangePass" class="btn btn-default btn-flat"><i class="fa fa-key"></i> Change Password</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="#" class="btn btn-default btn-flat">Sign out</a>
|
||||
<a href="<?php echo base_url(); ?>logout" class="btn btn-default btn-flat"><i class="fa fa-sign-out"></i> Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -113,8 +114,8 @@
|
||||
<img src="<?php echo base_url(); ?>assets/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>Visa Employee</p>
|
||||
<a href="<?php echo base_url(); ?>assets/#"><i class="fa fa-circle text-success"></i> Online</a>
|
||||
<p><?php echo $name; ?></p>
|
||||
<a href="<?php echo base_url(); ?>#"><i class="fa fa-circle text-success"></i> Online</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- search form -->
|
||||
@ -139,6 +140,25 @@
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo base_url(); ?>favourite">
|
||||
<i class="fa fa-star"></i> <span>Favourite</span>
|
||||
<span class="pull-right-container">
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
if($role == REGISTER_USERS){ ?>
|
||||
<li>
|
||||
<a href="<?php echo base_url(); ?>profile">
|
||||
<i class="fa fa-user"></i> <span>Profile</span>
|
||||
<span class="pull-right-container">
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if($role == ROLE_ADMIN){ ?>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>#">
|
||||
<i class="fa fa-database"></i>
|
||||
@ -154,13 +174,25 @@
|
||||
<li><a href="<?php echo base_url(); ?>document_master"><i class="fa fa-file"></i>Document Master</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="active">
|
||||
<?php } ?>
|
||||
<li>
|
||||
<a href="<?php echo base_url(); ?>country_visa_details">
|
||||
<i class="fa fa-globe"></i> <span>Country Visa Details</span>
|
||||
<span class="pull-right-container">
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
//if($role == REGISTER_USERS){}
|
||||
if($role == ROLE_ADMIN){ ?>
|
||||
<li>
|
||||
<a href="<?php echo base_url(); ?>user_details">
|
||||
<i class="fa fa-users"></i> <span>User Details</span>
|
||||
<span class="pull-right-container">
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
|
||||
77
application/views/lockscreen.php
Executable file
@ -0,0 +1,77 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>AdminLTE 2 | Lockscreen</title>
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<link rel="stylesheet" href="../../bower_components/bootstrap/dist/css/bootstrap.min.css">
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="../../bower_components/font-awesome/css/font-awesome.min.css">
|
||||
<!-- Ionicons -->
|
||||
<link rel="stylesheet" href="../../bower_components/Ionicons/css/ionicons.min.css">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Google Font -->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
</head>
|
||||
<body class="hold-transition lockscreen">
|
||||
<!-- Automatic element centering -->
|
||||
<div class="lockscreen-wrapper">
|
||||
<div class="lockscreen-logo">
|
||||
<a href="../../index2.html"><b>Admin</b>LTE</a>
|
||||
</div>
|
||||
<!-- User name -->
|
||||
<div class="lockscreen-name">John Doe</div>
|
||||
|
||||
<!-- START LOCK SCREEN ITEM -->
|
||||
<div class="lockscreen-item">
|
||||
<!-- lockscreen image -->
|
||||
<div class="lockscreen-image">
|
||||
<img src="../../dist/img/user1-128x128.jpg" alt="User Image">
|
||||
</div>
|
||||
<!-- /.lockscreen-image -->
|
||||
|
||||
<!-- lockscreen credentials (contains the form) -->
|
||||
<form class="lockscreen-credentials">
|
||||
<div class="input-group">
|
||||
<input type="password" class="form-control" placeholder="password">
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button type="button" class="btn"><i class="fa fa-arrow-right text-muted"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- /.lockscreen credentials -->
|
||||
|
||||
</div>
|
||||
<!-- /.lockscreen-item -->
|
||||
<div class="help-block text-center">
|
||||
Enter your password to retrieve your session
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<a href="login.html">Or sign in as a different user</a>
|
||||
</div>
|
||||
<div class="lockscreen-footer text-center">
|
||||
Copyright © 2014-2016 <b><a href="https://adminlte.io" class="text-black">Almsaeed Studio</a></b><br>
|
||||
All rights reserved
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.center -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -7,15 +7,15 @@
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<link rel="stylesheet" href="../../bower_components/bootstrap/dist/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="assets/bower_components/bootstrap/dist/css/bootstrap.min.css">
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="../../bower_components/font-awesome/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="assets/bower_components/font-awesome/css/font-awesome.min.css">
|
||||
<!-- Ionicons -->
|
||||
<link rel="stylesheet" href="../../bower_components/Ionicons/css/ionicons.min.css">
|
||||
<link rel="stylesheet" href="assets/bower_components/Ionicons/css/ionicons.min.css">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
|
||||
<link rel="stylesheet" href="assets/dist/css/AdminLTE.min.css">
|
||||
<!-- iCheck -->
|
||||
<link rel="stylesheet" href="../../plugins/iCheck/square/blue.css">
|
||||
<link rel="stylesheet" href="assets/plugins/iCheck/square/blue.css">
|
||||
<style>
|
||||
.login-box{
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
<!-- Google Font -->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
</head>
|
||||
<body class="hold-transition login-page" style="background-image: url(wallpaper2you_237173.jpg);
|
||||
<body class="hold-transition login-page" style="background-image: url(assets/dist/img/loginbgimg.jpg);
|
||||
background-size: cover;
|
||||
background-position: top center;margin-top:150px;">
|
||||
<div class="login-box">
|
||||
@ -77,15 +77,41 @@
|
||||
<!-- /.login-logo -->
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg">Sign in to start your session</p>
|
||||
<?php $this->load->helper('form'); ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->load->helper('form');
|
||||
$error = $this->session->flashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo $error; ?>
|
||||
</div>
|
||||
<?php }
|
||||
$success = $this->session->flashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo $success; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<form action="../../index2.html" method="post">
|
||||
<form action="<?php echo base_url(); ?>loginMe" method="post">
|
||||
<div class="form-group has-feedback">
|
||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
||||
<input type="email" class="form-control" placeholder="Email">
|
||||
<input type="email" class="form-control" placeholder="Email" name="email" required />
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
<input type="password" class="form-control" placeholder="Password">
|
||||
<input type="password" class="form-control" placeholder="Password" name="password" required />
|
||||
</div>
|
||||
<div class="row">
|
||||
<!--<div class="col-xs-8">
|
||||
@ -97,7 +123,8 @@
|
||||
</div>-->
|
||||
<!-- /.col -->
|
||||
<div class="col-xs-offset-4 col-xs-4">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">LETS GO</button>
|
||||
<!-- <button type="submit" class="btn btn-primary btn-block btn-flat">LETS GO</button> -->
|
||||
<input type="submit" class="btn btn-primary btn-block btn-flat" value="LETS GO" />
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
@ -112,8 +139,8 @@
|
||||
</div>-->
|
||||
<!-- /.social-auth-links -->
|
||||
|
||||
<!--<a href="#">I forgot my password</a><br>
|
||||
<a href="register.html" class="text-center">Register a new membership</a>-->
|
||||
<a href="<?php echo base_url(); ?>">I forgot my password</a><br>
|
||||
<a href="<?php echo base_url(); ?>register" class="text-center">Register a new membership</a>
|
||||
|
||||
</div>
|
||||
<!-- /.login-box-body -->
|
||||
@ -121,11 +148,11 @@
|
||||
<!-- /.login-box -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script src="assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<script src="assets/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<!-- iCheck -->
|
||||
<script src="../../plugins/iCheck/icheck.min.js"></script>
|
||||
<script src="assets/plugins/iCheck/icheck.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('input').iCheck({
|
||||
|
||||
89
application/views/loginHistory.php
Executable file
@ -0,0 +1,89 @@
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/datepicker/datepicker3.css" />
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<i class="fa fa-users"></i> Login History
|
||||
<small>track login history</small>
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<form action="<?php echo base_url() ?>login-history" method="POST" id="searchList">
|
||||
<div class="col-md-2 col-md-offset-4 form-group">
|
||||
<input for="fromDate" type="text" name="fromDate" value="<?php echo $fromDate; ?>" class="form-control datepicker" placeholder="From Date"/>
|
||||
</div>
|
||||
<div class="col-md-2 form-group">
|
||||
<input id="toDate" type="text" name="toDate" value="<?php echo $toDate; ?>" class="form-control datepicker" placeholder="To Date"/>
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<input id="searchText" type="text" name="searchText" value="<?php echo $searchText; ?>" class="form-control" placeholder="Search Text"/>
|
||||
</div>
|
||||
<div class="col-md-1 form-group">
|
||||
<button type="submit" class="btn btn-md btn-default btn-block searchList pull-right"><i class="fa fa-search"></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?= $userInfo->name." : ".$userInfo->email ?></h3>
|
||||
<div class="box-tools">
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Session Data</th>
|
||||
<th>IP Address</th>
|
||||
<th>User Agent</th>
|
||||
<th>Agent Full String</th>
|
||||
<th>Platform</th>
|
||||
<th>Date-Time</th>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($userRecords))
|
||||
{
|
||||
foreach($userRecords as $record)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $record->sessionData ?></td>
|
||||
<td><?php echo $record->machineIp ?></td>
|
||||
<td><?php echo $record->userAgent ?></td>
|
||||
<td><?php echo $record->agentString ?></td>
|
||||
<td><?php echo $record->platform ?></td>
|
||||
<td><?php echo $record->createdDtm ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div><!-- /.box-body -->
|
||||
<div class="box-footer clearfix">
|
||||
<?php echo $this->pagination->create_links(); ?>
|
||||
</div>
|
||||
</div><!-- /.box -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/datepicker/bootstrap-datepicker.js"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('ul.pagination li a').click(function (e) {
|
||||
e.preventDefault();
|
||||
var link = jQuery(this).get(0).href;
|
||||
jQuery("#searchList").attr("action", link);
|
||||
jQuery("#searchList").submit();
|
||||
});
|
||||
|
||||
jQuery('.datepicker').datepicker({
|
||||
autoclose: true,
|
||||
format : "dd-mm-yyyy"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
184
application/views/profile.php
Executable file
@ -0,0 +1,184 @@
|
||||
<?php
|
||||
// $PhoneNo = '';
|
||||
// if(!empty($getprofile)){
|
||||
// foreach($getprofile as $gp){
|
||||
// $PhoneNo = $gp->PhoneNo;
|
||||
// }
|
||||
// }
|
||||
?>
|
||||
<style>
|
||||
.input-group .input-group-addon {
|
||||
border:0;
|
||||
}
|
||||
.input-group .form-control, .input-group-addon, .input-group-btn{
|
||||
border-right: 0;
|
||||
border-left: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.input-group {
|
||||
margin-bottom:15px;
|
||||
}
|
||||
|
||||
.btn-primary:hover, .btn-primary:active, .btn-primary.hover{
|
||||
background-color: #087322;
|
||||
}
|
||||
.btn-primary12:hover, .btn-primary12:active, .btn-primary12.hover{
|
||||
background-color: #FFC107;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.box-title-box{
|
||||
z-index: 5;
|
||||
height: 90px;
|
||||
width: 90px;
|
||||
border: 3px solid;
|
||||
border-color: transparent;
|
||||
border-color: rgba(255,255,255,0.2);
|
||||
border-radius: 50%;
|
||||
margin-left: 18px;
|
||||
box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
display: inline-block;
|
||||
margin-top: -80px;
|
||||
}
|
||||
.nav-tabs-custom>.nav-tabs>li.active{
|
||||
border-top-color:#dc2265 !important;
|
||||
}
|
||||
.box-solid{
|
||||
box-shadow: 0 3px 4px 0 rgba(0,0,0,0.14),
|
||||
0 3px 3px -2px rgba(0,0,0,0.12),
|
||||
0 1px 8px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
.btn-success.focus, .btn-success:focus{
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success:hover, .btn-success:active, .btn-success.hover {
|
||||
background-color: rgba(219, 34, 101, 0.64);
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper" style="background-color: #eee;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content" style="margin-top: 50px;">
|
||||
<div class="row">
|
||||
<?php //echo $userid;?>
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
<div class="box box-solid" style="padding: 20px;">
|
||||
<div class="box-body">
|
||||
<form class="form-horizontal" role="form" id="Update_Profile" action="<?php echo base_url() ?>Updateprofile" method="post">
|
||||
<div class="row">
|
||||
<div class="col-md-12" style="text-align:center;">
|
||||
<img src="<?php echo base_url(); ?>assets/dist/img/user2-160x160.jpg" class="user-image box-title-box" alt="User Image">
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" class="form-control" name="HideRegNo" value="<?php echo $getprofile[0]->RegNo;?>" required />
|
||||
<input type="hidden" class="form-control" name="HideuserId" value="<?php echo $getprofile[0]->userId;?>" required />
|
||||
|
||||
<div class="row" style="margin-top: 20px;">
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
||||
<input type="text" class="form-control" placeholder="Name" name="Name" value="<?php echo $getprofile[0]->Name;?>" readonly />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-mobile"></i></span>
|
||||
<input type="number" class="form-control" placeholder="Phone No" name="PhoneNo" value="<?php echo $getprofile[0]->PhoneNo;?>" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
||||
<input type="mail" class="form-control" placeholder="Email ID" name="Email" value="<?php echo $getprofile[0]->Email;?>" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
||||
<input type="mail" class="form-control" placeholder="Alternate Email ID" name="AlternateEmail" value="<?php echo $getprofile[0]->AlternateEmail;?>" required />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||
<input type="password" class="form-control" placeholder="Password" name="Password" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||
<input type="password" class="form-control" placeholder="Re-password" name="Re-password" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-building"></i></span>
|
||||
<input type="text" class="form-control" placeholder="Company Name" name="CompanyName" value="<?php echo $getprofile[0]->CompanyName;?>" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-briefcase "></i></span>
|
||||
<input type="text" class="form-control" placeholder="Designation" name="Designation" value="<?php echo $getprofile[0]->Designation;?>" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-map-signs"></i></span>
|
||||
<input type="text" class="form-control" placeholder="City" name="CityName" value="<?php echo $getprofile[0]->CityName;?>" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-globe"></i></span>
|
||||
<input type="text" class="form-control" placeholder="Country" name="CountryName" value="<?php echo $getprofile[0]->CountryName;?>" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-address-card"></i></span>
|
||||
<input type="text" class="form-control" placeholder="Full Address" name="Address" value="<?php echo $getprofile[0]->Address;?>" required />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-offset-4 col-xs-4">
|
||||
<input type="Submit" class="btn btn-block btn-success btn-sm" value="UPDATE PROFILE">
|
||||
</div>
|
||||
</div>
|
||||
<?php //print_r($getprofile); ?>
|
||||
</form>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
|
||||
173
application/views/register.php
Executable file
@ -0,0 +1,173 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Visa | Log in</title>
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<link rel="stylesheet" href="assets/bower_components/bootstrap/dist/css/bootstrap.min.css">
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="assets/bower_components/font-awesome/css/font-awesome.min.css">
|
||||
<!-- Ionicons -->
|
||||
<link rel="stylesheet" href="assets/bower_components/Ionicons/css/ionicons.min.css">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="assets/dist/css/AdminLTE.min.css">
|
||||
<!-- iCheck -->
|
||||
<link rel="stylesheet" href="assets/plugins/iCheck/square/blue.css">
|
||||
<style>
|
||||
|
||||
.input-group .input-group-addon {
|
||||
border:0;
|
||||
}
|
||||
.input-group .form-control, .input-group-addon, .input-group-btn{
|
||||
border-right: 0;
|
||||
border-left: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.input-group {
|
||||
margin-bottom:15px;
|
||||
}
|
||||
|
||||
.box-title-box{
|
||||
color: #fff;
|
||||
margin-left: 18px;
|
||||
background: linear-gradient(60deg,#ec407a,#d81b60);
|
||||
box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
display: inline-block;
|
||||
border-radius: 3px;
|
||||
padding: 13px;
|
||||
margin-top: -50px;
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
.nav-tabs-custom>.nav-tabs>li.active{
|
||||
border-top-color:#dc2265 !important;
|
||||
}
|
||||
.btn-success.focus, .btn-success:focus{
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success:hover, .btn-success:active, .btn-success.hover {
|
||||
background-color: rgba(219, 34, 101, 0.64);
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body class="hold-transition login-page" style="background-image: url(assets/dist/img/registerbgimg.jpg);
|
||||
background-size: cover;
|
||||
background-position: top center;margin-top:150px;">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-3 col-md-6">
|
||||
<div class="box box-solid" style="box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding: 20px;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<h3 class="box-title-box"><i class="fa fa-users" style="padding-right:5px;"></i>Register</h3>
|
||||
</div>
|
||||
<form action="<?php echo base_url() ?>Add_Register" method="post">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
||||
<input type="text" class="form-control" placeholder="Name" name="Name" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-mobile"></i></span>
|
||||
<input type="number" class="form-control" placeholder="Phone No" name="PhoneNo" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
||||
<input type="mail" class="form-control" placeholder="Email ID" name="Email" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
||||
<input type="mail" class="form-control" placeholder="Alternate Email ID" name="AlternateEmail" required />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||
<input type="password" class="form-control" placeholder="Password" name="Password" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||
<input type="password" class="form-control" placeholder="Re-password" name="Re-password" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-building"></i></span>
|
||||
<input type="text" class="form-control" placeholder="Company Name" name="CompanyName" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-briefcase "></i></span>
|
||||
<input type="text" class="form-control" placeholder="Designation" name="Designation" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-map-signs"></i></span>
|
||||
<input type="text" class="form-control" placeholder="City" name="CityName" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-globe"></i></span>
|
||||
<input type="text" class="form-control" placeholder="Country" name="CountryName" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-address-card"></i></span>
|
||||
<input type="text" class="form-control" placeholder="Full Address" name="Address" required />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-offset-4 col-xs-4">
|
||||
<input type="Submit" class="btn btn-block btn-success btn-sm" value="Lets Go">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!--//////////////////-->
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
<!-- jQuery 3 -->
|
||||
<script src="assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<script src="assets/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<!-- iCheck -->
|
||||
<script src="assets/plugins/iCheck/icheck.min.js"></script>
|
||||
</body
|
||||
409
application/views/user_details.php
Executable file
@ -0,0 +1,409 @@
|
||||
|
||||
<style>
|
||||
|
||||
.designinput {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-top: 20px;
|
||||
/*margin-left: 15px;*/
|
||||
}
|
||||
.slide-up {
|
||||
display: inline-block;
|
||||
width: 260px;
|
||||
padding: 10px 0 10px 30px;
|
||||
font-family: "Open Sans", sans;
|
||||
font-weight: 400;
|
||||
color: #377D6A;
|
||||
background: #efefef;
|
||||
border: 0;
|
||||
border-radius: 3px;
|
||||
outline: 0;
|
||||
text-indent: 80px;
|
||||
transition: all .3s ease-in-out;
|
||||
}
|
||||
.slide-up::-webkit-input-placeholder {
|
||||
color: #efefef;
|
||||
text-indent: 0;
|
||||
font-weight: 300;
|
||||
}
|
||||
.slide-up + label {
|
||||
color: #fff;
|
||||
font-weight: 400;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
transform: translateX(0);
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 10px 15px;
|
||||
text-shadow: 0 1px 0 rgba(19, 74, 70, 0.4);
|
||||
transition: all .3s ease-in-out;
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.slide-up + label:before, .slide-up + label:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
transition: all .3s ease-in-out;
|
||||
}
|
||||
.slide-up + label:before {
|
||||
top: 6px;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
bottom: 6px;
|
||||
background: #df2769;
|
||||
}
|
||||
.slide-up + label:after {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
background: rgb(177, 177, 177);
|
||||
}
|
||||
|
||||
span:nth-child(1) .slide-up {
|
||||
text-indent: 105px;
|
||||
}
|
||||
|
||||
span:nth-child(3) .slide-up {
|
||||
text-indent: 125px;
|
||||
}
|
||||
|
||||
span:nth-child(1) .slide-up:focus,
|
||||
span:nth-child(1) .slide-up:active,
|
||||
span:nth-child(3) .slide-up:focus,
|
||||
span:nth-child(3) .slide-up:active {
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
.slide-up:focus,
|
||||
.slide-up:active {
|
||||
color: #377D6A;
|
||||
text-indent: 0;
|
||||
background: #fff;
|
||||
}
|
||||
.slide-up:focus::-webkit-input-placeholder,
|
||||
.slide-up:active::-webkit-input-placeholder {
|
||||
color: #aaa;
|
||||
}
|
||||
.slide-up:focus + label,
|
||||
.slide-up:active + label {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
.slide-up:focus + label:before,
|
||||
.slide-up:active + label:before {
|
||||
border-radius: 5px;
|
||||
}
|
||||
.slide-up:focus + label:after,
|
||||
.slide-up:active + label:after {
|
||||
transform: translateY(100%);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.btn-primary:hover, .btn-primary:active, .btn-primary.hover{
|
||||
background-color: #087322;
|
||||
}
|
||||
.btn-primary12:hover, .btn-primary12:active, .btn-primary12.hover{
|
||||
background-color: #FFC107;
|
||||
color: #fff;
|
||||
}
|
||||
.btn-primary{
|
||||
color: #fff;
|
||||
background-color: rgba(18, 187, 23, 0.75);
|
||||
border-color: rgba(18, 187, 23, 0.75);
|
||||
box-shadow: 0 2px 2px 0 rgba(233,30,99,.14), 0 3px 1px -2px rgba(233,30,99,.2), 0 1px 5px 0 rgba(233,30,99,.12);
|
||||
/*position: relative;*/
|
||||
padding: 10px 19px;
|
||||
margin: 0.3125rem 1px;
|
||||
min-width: auto;
|
||||
font-size: 1.20rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.428571;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
vertical-align: middle;
|
||||
letter-spacing: 0;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
border-radius: .2rem;
|
||||
outline: 0;
|
||||
transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1);
|
||||
/*will-change: box-shadow,transform;*/
|
||||
}
|
||||
.btn-primary12{
|
||||
color: #fff;
|
||||
background-color:#f2b865;
|
||||
border-color: #f2b865;
|
||||
box-shadow: 0 2px 2px 0 rgba(233,30,99,.14), 0 3px 1px -2px rgba(233,30,99,.2), 0 1px 5px 0 rgba(233,30,99,.12);
|
||||
/*position: relative;*/
|
||||
padding: 10px 19px;
|
||||
margin: 0.3125rem 1px;
|
||||
min-width: auto;
|
||||
font-size: 1.20rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.428571;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
vertical-align: middle;
|
||||
letter-spacing: 0;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
border-radius: .2rem;
|
||||
outline: 0;
|
||||
transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1);
|
||||
/*will-change: box-shadow,transform;*/
|
||||
}
|
||||
|
||||
.or-button{
|
||||
position: relative;
|
||||
margin: -13px;
|
||||
display: inline-block;
|
||||
padding: 2px 5px;
|
||||
background-color: #fff;
|
||||
border-radius: 38px;
|
||||
}
|
||||
.box-title-box{
|
||||
color: #fff;
|
||||
margin-left: 18px;
|
||||
background: linear-gradient(60deg,#ec407a,#d81b60);
|
||||
box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
display: inline-block;
|
||||
border-radius: 3px;
|
||||
padding: 13px;
|
||||
margin-top: -50px;
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
.nav-tabs-custom>.nav-tabs>li.active{
|
||||
border-top-color:#dc2265 !important;
|
||||
}
|
||||
.box-solid{
|
||||
box-shadow: 0 3px 4px 0 rgba(0,0,0,0.14),
|
||||
0 3px 3px -2px rgba(0,0,0,0.12),
|
||||
0 1px 8px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper" style="background-color: #eee;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content" style="margin-top: 50px;">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="box box-solid" style="padding: 20px;">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<h3 class="box-title-box"><i class="fa fa-users" style="padding-right:5px;"></i>User Details</h3>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<!--<?php print_r($getuserdetails);?>-->
|
||||
<table id="example2" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Reg No</th>
|
||||
<th>Name</th>
|
||||
<th>Mobile Number</th>
|
||||
<th>Email</th>
|
||||
<!--<th>Alternate Email ID</th>-->
|
||||
<th>Company Name</th>
|
||||
<th>Designation</th>
|
||||
<th>City Name</th>
|
||||
<th>Country Name</th>
|
||||
<th>Address</th>
|
||||
<!--<th>Status</th>-->
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($getuserdetails)){
|
||||
foreach($getuserdetails as $index=>$userdetails){
|
||||
$index =$index + 1;
|
||||
?>
|
||||
<tr id="<?php echo $index; ?>">
|
||||
<td><?php echo $userdetails->RegNo; ?></td>
|
||||
<td><?php echo $userdetails->Name; ?></td>
|
||||
<td><?php echo $userdetails->PhoneNo; ?></td>
|
||||
<td><?php echo $userdetails->Email; ?></td>
|
||||
<!--<td><?php echo $userdetails->AlternateEmail; ?></td>-->
|
||||
<td><?php echo $userdetails->Designation; ?></td>
|
||||
<td><?php echo $userdetails->CompanyName; ?></td>
|
||||
<td><?php echo $userdetails->CityName; ?></td>
|
||||
<td><?php echo $userdetails->CountryName; ?></td>
|
||||
<td><?php echo $userdetails->Address; ?></td>
|
||||
<!--<td></td>-->
|
||||
<!--<td><a data-toggle="modal" ><i data-toggle="tooltip" title="" data-original-title="Click here to view/Edit"></i></a>-->
|
||||
<!--<td><a id="btn" data-id="<?php //echo $userdetails->RegNo; ?>" data-userid="<?php echo $userdetails->RegNo; ?>" data-toggle="modal"><i class="fa fa-edit" data-toggle="tooltip" title="<?php //echo $userdetails->RegNo; ?> - Click here to view User details"></i> </a></td> -->
|
||||
<!--<td style="text-align:center;"><span data-toggle="modal" data-target="#viewuserdetails" ><i class="fa fa-edit" data-toggle="tooltip" data-original-title="Click here to view/Edit <?php echo $userdetails->RegNo ?> Details" style="color: #dc2265;"></i></span></td>-->
|
||||
<td><a data-target='#viewuserdetails' data-userid="<?php echo $index ?>" data-toggle="modal" href="#viewuserdetails"><i class="fa fa-edit" data-toggle="tooltip" data-original-title="Click here to view/Edit <?php echo $userdetails->RegNo ?> Details" style="color: #dc2265;"></i></a></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Reg No</th>
|
||||
<th>Name</th>
|
||||
<th>Mobile Number</th>
|
||||
<th>Email</th>
|
||||
<!--<th>Alternate Email ID</th>-->
|
||||
<th>Company Name</th>
|
||||
<th>Designation</th>
|
||||
<th>City Name</th>
|
||||
<th>Country Name</th>
|
||||
<th>Address</th>
|
||||
<!--<th>Status</th>-->
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="viewuserdetails">
|
||||
<div class="modal-dialog" style="top: 40px;width: 95%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">View User Details</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row" style="margin-left: 30px;">
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewRegNo" name="ViewRegNo" type="text" readonly /><label for="RegNo">RegNo</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewName" name="ViewName" type="text" readonly /><label for="Name">Name</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewMobileNo" name="ViewMobileNo" type="text" readonly /><label for="Mobile Number">Mobile No</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-left: 30px;">
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewEmail" name="ViewEmail" type="text" readonly /><label for="Email">Email ID</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewCompanyName" name="ViewCompanyName" type="text" readonly /><label for="Company Name">Company Name</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewDesignation" name="ViewDesignation" type="text" readonly /><label for="Designation">Designation</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-left: 30px;">
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewCityName" name="ViewCityName" type="text" readonly /><label for="City Name">City Name</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewCountryName" name="ViewCountryName" type="text" readonly /><label for="Country Name">Country Name</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="ViewAddress" name="ViewAddress" type="text" readonly /><label for="Address">Address</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<!--<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-primary">Save changes</button>-->
|
||||
|
||||
<!--<button type="submit" class="btn btn-primary">Add</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="submit" class="btn btn-primary12" data-dismiss="modal">Close</button>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
|
||||
$('#example1').DataTable()
|
||||
$('#example2').DataTable({
|
||||
'paging' : true,
|
||||
'lengthChange': true,
|
||||
'searching' : true,
|
||||
'ordering' : true,
|
||||
'info' : true,
|
||||
'autoWidth' : false
|
||||
});
|
||||
|
||||
$('#viewuserdetails').on('show.bs.modal', function (e) {
|
||||
// console.log(e);
|
||||
// console.log(e.relatedTarget);
|
||||
|
||||
var userid = $(e.relatedTarget).data('userid');
|
||||
|
||||
|
||||
$('#ViewRegNo').val($('#example2 tr:eq('+ userid +') td:eq(0)').text());
|
||||
$('#ViewName').val($('#example2 tr:eq('+ userid +') td:eq(1)').text());
|
||||
$('#ViewMobileNo').val($('#example2 tr:eq('+ userid +') td:eq(2)').text());
|
||||
$('#ViewEmail').val($('#example2 tr:eq('+ userid +') td:eq(3)').text());
|
||||
$('#ViewCompanyName').val($('#example2 tr:eq('+ userid +') td:eq(4)').text());
|
||||
$('#ViewDesignation').val($('#example2 tr:eq('+ userid +') td:eq(5)').text());
|
||||
$('#ViewCityName').val($('#example2 tr:eq('+ userid +') td:eq(6)').text());
|
||||
$('#ViewCountryName').val($('#example2 tr:eq('+ userid +') td:eq(7)').text());
|
||||
$('#ViewCountryName').val($('#example2 tr:eq('+ userid +') td:eq(7)').text());
|
||||
$('#ViewAddress').val($('#example2 tr:eq('+ userid +') td:eq(8)').text());
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
|
||||
<style>
|
||||
|
||||
.designinput {
|
||||
@ -25,7 +26,7 @@
|
||||
font-weight: 300;
|
||||
}
|
||||
.slide-up + label {
|
||||
font-weight: 400;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
transform: translateX(0);
|
||||
@ -103,7 +104,21 @@ span:nth-child(3) .slide-up:active {
|
||||
|
||||
|
||||
|
||||
|
||||
.btn-success.focus, .btn-success:focus{
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success:hover, .btn-success:active, .btn-success.hover {
|
||||
background-color: rgba(219, 34, 101, 0.64);
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #dd2366;
|
||||
border-color: #dd2366;
|
||||
box-shadow:0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4);
|
||||
}
|
||||
|
||||
|
||||
.btn-primary:hover, .btn-primary:active, .btn-primary.hover{
|
||||
@ -179,9 +194,18 @@ span:nth-child(3) .slide-up:active {
|
||||
margin-top: -50px;
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
.nav-tabs-custom>.nav-tabs>li.active{
|
||||
border-top-color:#dc2265 !important;
|
||||
}
|
||||
.box-solid{
|
||||
box-shadow: 0 3px 4px 0 rgba(0,0,0,0.14),
|
||||
0 3px 3px -2px rgba(0,0,0,0.12),
|
||||
0 1px 8px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper" style="background-color: #eee;">
|
||||
<!-- Content Header (Page header) -->
|
||||
@ -192,38 +216,156 @@ span:nth-child(3) .slide-up:active {
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-1 col-md-10">
|
||||
<div class="box box-solid" style="box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding: 20px;">
|
||||
<div class="box box-solid" style="padding: 20px;">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<h3 class="box-title-box">Visa Type Master</h3>
|
||||
<h3 class="box-title-box"><i class="fa fa-cc-visa" style="padding-right:5px;"></i>Visa Type Master</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-offset-9 col-md-3">
|
||||
<button type="button" class="btn btn-block btn-success btn-sm" data-toggle="modal" data-target="#AddVisa">Add Visa</button>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table id="example2" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th>Visa Name</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($getvisatype)){
|
||||
foreach($getvisatype as $gvisatype){?>
|
||||
<tr>
|
||||
<td><?php echo $gvisatype->VisaCode;?></td>
|
||||
<td><?php echo $gvisatype->VisaName;?></td>
|
||||
<td style="text-align:center;"><?php echo $gvisatype->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
|
||||
<td style="text-align:center;"><span onclick="ToEditVisaType(<?php echo $gvisatype->VisaCode; ?>)"><i class="fa fa-edit" data-toggle="tooltip" data-original-title="Click here to view/Edit <?php echo $gvisatype->VisaCode; ?> Details" style="color: #dc2265;"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
}?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>S.no</th>
|
||||
<th>Visa Name</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="AddVisa">
|
||||
<div class="modal-dialog" style="top: 40px;width: 70%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">Add Visa</h4>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" style="padding:40px;">
|
||||
<form role="form" action="<?php echo base_url() ?>Add_visa_type_master" method="post" style="padding:40px;">
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="card" type="text" placeholder="Enter visa name" /><label for="card">Visa Name</label>
|
||||
|
||||
<!--<label for="exampleInputcountryname">Country Name</label>
|
||||
<input type="text" class="form-control" id="exampleInputcountryname" placeholder="Enter country">-->
|
||||
<input class="slide-up" id="VisaName" name="VisaName" type="text" placeholder="Enter visa name" /><label for="Visa Name">Visa Name</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label for="Description">Description</label>
|
||||
<textarea class="form-control" rows="3" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
<textarea class="form-control" rows="3" id="VisaDescription" name="VisaDescription" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-offset-8 col-md-4">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label>Active/Deactive
|
||||
<input type="checkbox" class="flat-red" name="IsActive" id="IsActive" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="submit" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
<button type="reset" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form End -->
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- /.modal starts-->
|
||||
<div class="modal fade" id="EditVisa">
|
||||
<div class="modal-dialog" style="top: 40px;width: 70%;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title box-title-box">Edit Visa</h4>
|
||||
</div>
|
||||
<!-- form start -->
|
||||
<form role="form" action="<?php echo base_url() ?>Update_visa_type_master" method="post" style="padding:40px;">
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5 designinput">
|
||||
<div class="form-group">
|
||||
<input class="slide-up" id="EditVisaName" name="EditVisaName" type="text" placeholder="Enter Visa name" /><label for="Visa Name">Visa Name</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label for="Description">Description</label>
|
||||
<textarea class="form-control" rows="3" id="EditVisaDescription" name="EditVisaDescription" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding-top:15px;">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label>Active/Deactive
|
||||
<input type="checkbox" class="flat-red" name="EditIsActive" id="EditIsActive" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input id="hidevisacode" name="HideVisaCode" type="hidden" readonly/>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="or-button">Or</div>
|
||||
<button type="reset" class="btn btn-primary12">Reset</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form End -->
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
@ -238,3 +380,60 @@ span:nth-child(3) .slide-up:active {
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#example1').DataTable()
|
||||
$('#example2').DataTable({
|
||||
'paging' : true,
|
||||
'lengthChange': true,
|
||||
'searching' : true,
|
||||
'ordering' : true,
|
||||
'info' : true,
|
||||
'autoWidth' : false
|
||||
})
|
||||
//Flat red color scheme for iCheck
|
||||
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-green',
|
||||
radioClass : 'iradio_flat-green'
|
||||
})
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function ToEditVisaType(arg){
|
||||
|
||||
$('#EditVisa').modal('show');
|
||||
|
||||
$.ajax({
|
||||
data:{arg:arg},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url();?>GetAll_visa_type",
|
||||
success:function(data) {
|
||||
//alert(data);
|
||||
|
||||
$.each(JSON.parse(data), function (i, item) {
|
||||
|
||||
$('#hidevisacode').val(item.VisaCode);
|
||||
$('#EditVisaName').val(item.VisaName);
|
||||
$('#EditVisaDescription').val(item.VisaDescription);
|
||||
if(item.IsActive == 0){
|
||||
|
||||
$('.icheckbox_flat-green').attr("aria-checked", false);
|
||||
$('.icheckbox_flat-green').removeClass('checked');
|
||||
}
|
||||
else{
|
||||
|
||||
$('.icheckbox_flat-green').attr("aria-checked", true);
|
||||
$('.icheckbox_flat-green').addClass('checked');
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
2
assets/dist/css/AdminLTE.min.css
vendored
BIN
assets/dist/img/Uploads/default-50x50.gif
vendored
Executable file
|
After Width: | Height: | Size: 184 B |
BIN
assets/dist/img/Uploads/docerror.png
vendored
Normal file
|
After Width: | Height: | Size: 186 KiB |
BIN
assets/dist/img/Uploads/icon-online-training-128.png
vendored
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/dist/img/Uploads/imageedit_1_3095006469.png
vendored
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
assets/dist/img/Uploads/visa_document.pdf
vendored
Executable file
BIN
assets/dist/img/Uploads/w3validator.png
vendored
Normal file
|
After Width: | Height: | Size: 258 KiB |
BIN
assets/dist/img/loginbg.jpg
vendored
Executable file
|
After Width: | Height: | Size: 162 KiB |
BIN
assets/dist/img/loginbgimg.jpg
vendored
Normal file
|
After Width: | Height: | Size: 2.8 MiB |
BIN
assets/dist/img/registerbgimg.jpg
vendored
Normal file
|
After Width: | Height: | Size: 542 KiB |