20230105
initial update
This commit is contained in:
parent
27e2cf543a
commit
a79011514c
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@ -0,0 +1,15 @@
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
|
||||
# Matches multiple files with brace expansion notation
|
||||
# Set default charset
|
||||
[*]
|
||||
charset = utf-8
|
||||
|
||||
# Tab indentation (no size specified)
|
||||
indent_style = tab
|
31
.gitignore
vendored
Normal file
31
.gitignore
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
.DS_Store
|
||||
|
||||
application/cache/*
|
||||
!application/cache/index.html
|
||||
|
||||
application/logs/*
|
||||
!application/logs/index.html
|
||||
|
||||
!application/*/.htaccess
|
||||
|
||||
composer.lock
|
||||
|
||||
user_guide_src/build/*
|
||||
user_guide_src/cilexer/build/*
|
||||
user_guide_src/cilexer/dist/*
|
||||
user_guide_src/cilexer/pycilexer.egg-info/*
|
||||
/vendor/
|
||||
|
||||
# IDE Files
|
||||
#-------------------------
|
||||
/nbproject/
|
||||
.idea/*
|
||||
|
||||
## Sublime Text cache files
|
||||
*.tmlanguage.cache
|
||||
*.tmPreferences.cache
|
||||
*.stTheme.cache
|
||||
*.sublime-workspace
|
||||
*.sublime-project
|
||||
/tests/tests/
|
||||
/tests/results/
|
4
.htaccess
Normal file
4
.htaccess
Normal file
@ -0,0 +1,4 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php?/$1 [L]
|
6
application/.htaccess
Normal file
6
application/.htaccess
Normal file
@ -0,0 +1,6 @@
|
||||
<IfModule authz_core_module>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
11
application/cache/index.html
vendored
Normal file
11
application/cache/index.html
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
135
application/config/autoload.php
Normal file
135
application/config/autoload.php
Normal file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| AUTO-LOADER
|
||||
| -------------------------------------------------------------------
|
||||
| This file specifies which systems should be loaded by default.
|
||||
|
|
||||
| In order to keep the framework as light-weight as possible only the
|
||||
| absolute minimal resources are loaded by default. For example,
|
||||
| the database is not connected to automatically since no assumption
|
||||
| is made regarding whether you intend to use it. This file lets
|
||||
| you globally define which systems you would like loaded with every
|
||||
| request.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| Instructions
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| These are the things you can load automatically:
|
||||
|
|
||||
| 1. Packages
|
||||
| 2. Libraries
|
||||
| 3. Drivers
|
||||
| 4. Helper files
|
||||
| 5. Custom config files
|
||||
| 6. Language files
|
||||
| 7. Models
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Packages
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
||||
|
|
||||
*/
|
||||
$autoload['packages'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Libraries
|
||||
| -------------------------------------------------------------------
|
||||
| These are the classes located in system/libraries/ or your
|
||||
| application/libraries/ directory, with the addition of the
|
||||
| 'database' library, which is somewhat of a special case.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['libraries'] = array('database', 'email', 'session');
|
||||
|
|
||||
| You can also supply an alternative library name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
$autoload['libraries'] = array('database', 'email', 'session');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Drivers
|
||||
| -------------------------------------------------------------------
|
||||
| These classes are located in system/libraries/ or in your
|
||||
| application/libraries/ directory, but are also placed inside their
|
||||
| own subdirectory and they extend the CI_Driver_Library class. They
|
||||
| offer multiple interchangeable driver options.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache');
|
||||
|
|
||||
| You can also supply an alternative property name to be assigned in
|
||||
| the controller:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache' => 'cch');
|
||||
|
|
||||
*/
|
||||
$autoload['drivers'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Helper Files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['helper'] = array('url', 'file');
|
||||
*/
|
||||
$autoload['helper'] = array('url', 'file');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Config files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['config'] = array('config1', 'config2');
|
||||
|
|
||||
| NOTE: This item is intended for use ONLY if you have created custom
|
||||
| config files. Otherwise, leave it blank.
|
||||
|
|
||||
*/
|
||||
$autoload['config'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Language files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['language'] = array('lang1', 'lang2');
|
||||
|
|
||||
| NOTE: Do not include the "_lang" part of your file. For example
|
||||
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
||||
|
|
||||
*/
|
||||
$autoload['language'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Models
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['model'] = array('first_model', 'second_model');
|
||||
|
|
||||
| You can also supply an alternative model name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['model'] = array('first_model' => 'first');
|
||||
*/
|
||||
$autoload['model'] = array();
|
523
application/config/config.php
Normal file
523
application/config/config.php
Normal file
@ -0,0 +1,523 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'http://localhost/student/';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
$config['language'] = 'english';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
85
application/config/constants.php
Normal file
85
application/config/constants.php
Normal file
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Display Debug backtrace
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If set to TRUE, a backtrace will be displayed along with php errors. If
|
||||
| error_reporting is disabled, the backtrace will not display, regardless
|
||||
| of this setting
|
||||
|
|
||||
*/
|
||||
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File and Directory Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These prefs are used when checking and setting modes when working
|
||||
| with the file system. The defaults are fine on servers with proper
|
||||
| security, but you may wish (or even need) to change the values in
|
||||
| certain environments (Apache running a separate process for each
|
||||
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
|
||||
| always be used to set the mode correctly.
|
||||
|
|
||||
*/
|
||||
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
|
||||
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
|
||||
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
|
||||
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File Stream Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These modes are used when working with fopen()/popen()
|
||||
|
|
||||
*/
|
||||
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
|
||||
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
|
||||
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
|
||||
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
|
||||
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
|
||||
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
|
||||
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
|
||||
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exit Status Codes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Used to indicate the conditions under which the script is exit()ing.
|
||||
| While there is no universal standard for error codes, there are some
|
||||
| broad conventions. Three such conventions are mentioned below, for
|
||||
| those who wish to make use of them. The CodeIgniter defaults were
|
||||
| chosen for the least overlap with these conventions, while still
|
||||
| leaving room for others to be defined in future versions and user
|
||||
| applications.
|
||||
|
|
||||
| The three main conventions used for determining exit status codes
|
||||
| are as follows:
|
||||
|
|
||||
| Standard C/C++ Library (stdlibc):
|
||||
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
|
||||
| (This link also contains other GNU-specific conventions)
|
||||
| BSD sysexits.h:
|
||||
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
|
||||
| Bash scripting:
|
||||
| http://tldp.org/LDP/abs/html/exitcodes.html
|
||||
|
|
||||
*/
|
||||
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
|
||||
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
|
||||
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
|
||||
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
||||
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
|
||||
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
|
96
application/config/database.php
Normal file
96
application/config/database.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'database' => 'demo',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'production'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
24
application/config/doctypes.php
Normal file
24
application/config/doctypes.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$_doctypes = array(
|
||||
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
|
||||
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
|
||||
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
||||
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
|
||||
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
|
||||
'html5' => '<!DOCTYPE html>',
|
||||
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
|
||||
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
|
||||
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
|
||||
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
|
||||
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
|
||||
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
|
||||
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
|
||||
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
|
||||
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
|
||||
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
|
||||
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
|
||||
);
|
114
application/config/foreign_chars.php
Normal file
114
application/config/foreign_chars.php
Normal file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Foreign Characters
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of foreign characters for transliteration
|
||||
| conversion used by the Text helper
|
||||
|
|
||||
*/
|
||||
$foreign_characters = array(
|
||||
'/ä|æ|ǽ/' => 'ae',
|
||||
'/ö|œ/' => 'oe',
|
||||
'/ü/' => 'ue',
|
||||
'/Ä/' => 'Ae',
|
||||
'/Ü/' => 'Ue',
|
||||
'/Ö/' => 'Oe',
|
||||
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
|
||||
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
|
||||
'/Б/' => 'B',
|
||||
'/б/' => 'b',
|
||||
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
|
||||
'/ç|ć|ĉ|ċ|č/' => 'c',
|
||||
'/Д|Δ/' => 'D',
|
||||
'/д|δ/' => 'd',
|
||||
'/Ð|Ď|Đ/' => 'Dj',
|
||||
'/ð|ď|đ/' => 'dj',
|
||||
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
|
||||
'/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
|
||||
'/Ф/' => 'F',
|
||||
'/ф/' => 'f',
|
||||
'/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
|
||||
'/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
|
||||
'/Ĥ|Ħ/' => 'H',
|
||||
'/ĥ|ħ/' => 'h',
|
||||
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
|
||||
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
|
||||
'/Ĵ/' => 'J',
|
||||
'/ĵ/' => 'j',
|
||||
'/Θ/' => 'TH',
|
||||
'/θ/' => 'th',
|
||||
'/Ķ|Κ|К/' => 'K',
|
||||
'/ķ|κ|к/' => 'k',
|
||||
'/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
|
||||
'/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
|
||||
'/М/' => 'M',
|
||||
'/м/' => 'm',
|
||||
'/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
|
||||
'/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
|
||||
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
|
||||
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
|
||||
'/П/' => 'P',
|
||||
'/п/' => 'p',
|
||||
'/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
|
||||
'/ŕ|ŗ|ř|ρ|р/' => 'r',
|
||||
'/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
|
||||
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
|
||||
'/Ț|Ţ|Ť|Ŧ|Τ|Т/' => 'T',
|
||||
'/ț|ţ|ť|ŧ|τ|т/' => 't',
|
||||
'/Þ|þ/' => 'th',
|
||||
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
|
||||
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
|
||||
'/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
|
||||
'/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
|
||||
'/В/' => 'V',
|
||||
'/в/' => 'v',
|
||||
'/Ŵ/' => 'W',
|
||||
'/ŵ/' => 'w',
|
||||
'/Φ/' => 'F',
|
||||
'/φ/' => 'f',
|
||||
'/Χ/' => 'CH',
|
||||
'/χ/' => 'ch',
|
||||
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
|
||||
'/ź|ż|ž|ζ|з/' => 'z',
|
||||
'/Æ|Ǽ/' => 'AE',
|
||||
'/ß/' => 'ss',
|
||||
'/IJ/' => 'IJ',
|
||||
'/ij/' => 'ij',
|
||||
'/Œ/' => 'OE',
|
||||
'/ƒ/' => 'f',
|
||||
'/Ξ/' => 'KS',
|
||||
'/ξ/' => 'ks',
|
||||
'/Π/' => 'P',
|
||||
'/π/' => 'p',
|
||||
'/Β/' => 'V',
|
||||
'/β/' => 'v',
|
||||
'/Μ/' => 'M',
|
||||
'/μ/' => 'm',
|
||||
'/Ψ/' => 'PS',
|
||||
'/ψ/' => 'ps',
|
||||
'/Ё/' => 'Yo',
|
||||
'/ё/' => 'yo',
|
||||
'/Є/' => 'Ye',
|
||||
'/є/' => 'ye',
|
||||
'/Ї/' => 'Yi',
|
||||
'/Ж/' => 'Zh',
|
||||
'/ж/' => 'zh',
|
||||
'/Х/' => 'Kh',
|
||||
'/х/' => 'kh',
|
||||
'/Ц/' => 'Ts',
|
||||
'/ц/' => 'ts',
|
||||
'/Ч/' => 'Ch',
|
||||
'/ч/' => 'ch',
|
||||
'/Ш/' => 'Sh',
|
||||
'/ш/' => 'sh',
|
||||
'/Щ/' => 'Shch',
|
||||
'/щ/' => 'shch',
|
||||
'/Ъ|ъ|Ь|ь/' => '',
|
||||
'/Ю/' => 'Yu',
|
||||
'/ю/' => 'yu',
|
||||
'/Я/' => 'Ya',
|
||||
'/я/' => 'ya'
|
||||
);
|
13
application/config/hooks.php
Normal file
13
application/config/hooks.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Hooks
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you define "hooks" to extend CI without hacking the core
|
||||
| files. Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/hooks.html
|
||||
|
|
||||
*/
|
11
application/config/index.html
Normal file
11
application/config/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
19
application/config/memcached.php
Normal file
19
application/config/memcached.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Memcached settings
|
||||
| -------------------------------------------------------------------------
|
||||
| Your Memcached servers can be specified below.
|
||||
|
|
||||
| See: https://codeigniter.com/user_guide/libraries/caching.html#memcached
|
||||
|
|
||||
*/
|
||||
$config = array(
|
||||
'default' => array(
|
||||
'hostname' => '127.0.0.1',
|
||||
'port' => '11211',
|
||||
'weight' => '1',
|
||||
),
|
||||
);
|
84
application/config/migration.php
Normal file
84
application/config/migration.php
Normal file
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable Migrations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migrations are disabled by default for security reasons.
|
||||
| You should enable migrations whenever you intend to do a schema migration
|
||||
| and disable it back when you're done.
|
||||
|
|
||||
*/
|
||||
$config['migration_enabled'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migration Type
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migration file names may be based on a sequential identifier or on
|
||||
| a timestamp. Options are:
|
||||
|
|
||||
| 'sequential' = Sequential migration naming (001_add_blog.php)
|
||||
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
|
||||
| Use timestamp format YYYYMMDDHHIISS.
|
||||
|
|
||||
| Note: If this configuration value is missing the Migration library
|
||||
| defaults to 'sequential' for backward compatibility with CI2.
|
||||
|
|
||||
*/
|
||||
$config['migration_type'] = 'timestamp';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the name of the table that will store the current migrations state.
|
||||
| When migrations runs it will store in a database table which migration
|
||||
| level the system is at. It then compares the migration level in this
|
||||
| table to the $config['migration_version'] if they are not the same it
|
||||
| will migrate up. This must be set.
|
||||
|
|
||||
*/
|
||||
$config['migration_table'] = 'migrations';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto Migrate To Latest
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If this is set to TRUE when you load the migrations class and have
|
||||
| $config['migration_enabled'] set to TRUE the system will auto migrate
|
||||
| to your latest migration (whatever $config['migration_version'] is
|
||||
| set to). This way you do not have to call migrations anywhere else
|
||||
| in your code to have the latest migration.
|
||||
|
|
||||
*/
|
||||
$config['migration_auto_latest'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations version
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is used to set migration version that the file system should be on.
|
||||
| If you run $this->migration->current() this is the version that schema will
|
||||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Path to your migrations folder.
|
||||
| Typically, it will be within your application path.
|
||||
| Also, writing permission is required within the migrations path.
|
||||
|
|
||||
*/
|
||||
$config['migration_path'] = APPPATH.'migrations/';
|
184
application/config/mimes.php
Normal file
184
application/config/mimes.php
Normal file
@ -0,0 +1,184 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| MIME TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of mime types. It is used by the
|
||||
| Upload class to help identify allowed file types.
|
||||
|
|
||||
*/
|
||||
return array(
|
||||
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
|
||||
'cpt' => 'application/mac-compactpro',
|
||||
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
|
||||
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
|
||||
'dms' => 'application/octet-stream',
|
||||
'lha' => 'application/octet-stream',
|
||||
'lzh' => 'application/octet-stream',
|
||||
'exe' => array('application/octet-stream', 'application/x-msdownload'),
|
||||
'class' => 'application/octet-stream',
|
||||
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
|
||||
'so' => 'application/octet-stream',
|
||||
'sea' => 'application/octet-stream',
|
||||
'dll' => 'application/octet-stream',
|
||||
'oda' => 'application/oda',
|
||||
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
|
||||
'ai' => array('application/pdf', 'application/postscript'),
|
||||
'eps' => 'application/postscript',
|
||||
'ps' => 'application/postscript',
|
||||
'smi' => 'application/smil',
|
||||
'smil' => 'application/smil',
|
||||
'mif' => 'application/vnd.mif',
|
||||
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
|
||||
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
|
||||
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
|
||||
'wbxml' => 'application/wbxml',
|
||||
'wmlc' => 'application/wmlc',
|
||||
'dcr' => 'application/x-director',
|
||||
'dir' => 'application/x-director',
|
||||
'dxr' => 'application/x-director',
|
||||
'dvi' => 'application/x-dvi',
|
||||
'gtar' => 'application/x-gtar',
|
||||
'gz' => 'application/x-gzip',
|
||||
'gzip' => 'application/x-gzip',
|
||||
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
|
||||
'php4' => 'application/x-httpd-php',
|
||||
'php3' => 'application/x-httpd-php',
|
||||
'phtml' => 'application/x-httpd-php',
|
||||
'phps' => 'application/x-httpd-php-source',
|
||||
'js' => array('application/x-javascript', 'text/plain'),
|
||||
'swf' => 'application/x-shockwave-flash',
|
||||
'sit' => 'application/x-stuffit',
|
||||
'tar' => 'application/x-tar',
|
||||
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
|
||||
'z' => 'application/x-compress',
|
||||
'xhtml' => 'application/xhtml+xml',
|
||||
'xht' => 'application/xhtml+xml',
|
||||
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
|
||||
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
|
||||
'mid' => 'audio/midi',
|
||||
'midi' => 'audio/midi',
|
||||
'mpga' => 'audio/mpeg',
|
||||
'mp2' => 'audio/mpeg',
|
||||
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
|
||||
'aif' => array('audio/x-aiff', 'audio/aiff'),
|
||||
'aiff' => array('audio/x-aiff', 'audio/aiff'),
|
||||
'aifc' => 'audio/x-aiff',
|
||||
'ram' => 'audio/x-pn-realaudio',
|
||||
'rm' => 'audio/x-pn-realaudio',
|
||||
'rpm' => 'audio/x-pn-realaudio-plugin',
|
||||
'ra' => 'audio/x-realaudio',
|
||||
'rv' => 'video/vnd.rn-realvideo',
|
||||
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
|
||||
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
|
||||
'gif' => 'image/gif',
|
||||
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'png' => array('image/png', 'image/x-png'),
|
||||
'tiff' => 'image/tiff',
|
||||
'tif' => 'image/tiff',
|
||||
'css' => array('text/css', 'text/plain'),
|
||||
'html' => array('text/html', 'text/plain'),
|
||||
'htm' => array('text/html', 'text/plain'),
|
||||
'shtml' => array('text/html', 'text/plain'),
|
||||
'txt' => 'text/plain',
|
||||
'text' => 'text/plain',
|
||||
'log' => array('text/plain', 'text/x-log'),
|
||||
'rtx' => 'text/richtext',
|
||||
'rtf' => 'text/rtf',
|
||||
'xml' => array('application/xml', 'text/xml', 'text/plain'),
|
||||
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
|
||||
'mpeg' => 'video/mpeg',
|
||||
'mpg' => 'video/mpeg',
|
||||
'mpe' => 'video/mpeg',
|
||||
'qt' => 'video/quicktime',
|
||||
'mov' => 'video/quicktime',
|
||||
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
|
||||
'movie' => 'video/x-sgi-movie',
|
||||
'doc' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
|
||||
'dot' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
|
||||
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
|
||||
'word' => array('application/msword', 'application/octet-stream'),
|
||||
'xl' => 'application/excel',
|
||||
'eml' => 'message/rfc822',
|
||||
'json' => array('application/json', 'text/json'),
|
||||
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
|
||||
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
|
||||
'p12' => 'application/x-pkcs12',
|
||||
'p7a' => 'application/x-pkcs7-signature',
|
||||
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7r' => 'application/x-pkcs7-certreqresp',
|
||||
'p7s' => 'application/pkcs7-signature',
|
||||
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
|
||||
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
|
||||
'der' => 'application/x-x509-ca-cert',
|
||||
'kdb' => 'application/octet-stream',
|
||||
'pgp' => 'application/pgp',
|
||||
'gpg' => 'application/gpg-keys',
|
||||
'sst' => 'application/octet-stream',
|
||||
'csr' => 'application/octet-stream',
|
||||
'rsa' => 'application/x-pkcs7',
|
||||
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
|
||||
'3g2' => 'video/3gpp2',
|
||||
'3gp' => array('video/3gp', 'video/3gpp'),
|
||||
'mp4' => 'video/mp4',
|
||||
'm4a' => 'audio/x-m4a',
|
||||
'f4v' => array('video/mp4', 'video/x-f4v'),
|
||||
'flv' => 'video/x-flv',
|
||||
'webm' => 'video/webm',
|
||||
'aac' => array('audio/x-aac', 'audio/aac'),
|
||||
'm4u' => 'application/vnd.mpegurl',
|
||||
'm3u' => 'text/plain',
|
||||
'xspf' => 'application/xspf+xml',
|
||||
'vlc' => 'application/videolan',
|
||||
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
|
||||
'au' => 'audio/x-au',
|
||||
'ac3' => 'audio/ac3',
|
||||
'flac' => 'audio/x-flac',
|
||||
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'),
|
||||
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
|
||||
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
|
||||
'ics' => 'text/calendar',
|
||||
'ical' => 'text/calendar',
|
||||
'zsh' => 'text/x-scriptzsh',
|
||||
'7z' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'7zip' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
|
||||
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
|
||||
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
|
||||
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
|
||||
'vcf' => 'text/x-vcard',
|
||||
'srt' => array('text/srt', 'text/plain'),
|
||||
'vtt' => array('text/vtt', 'text/plain'),
|
||||
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'),
|
||||
'odc' => 'application/vnd.oasis.opendocument.chart',
|
||||
'otc' => 'application/vnd.oasis.opendocument.chart-template',
|
||||
'odf' => 'application/vnd.oasis.opendocument.formula',
|
||||
'otf' => 'application/vnd.oasis.opendocument.formula-template',
|
||||
'odg' => 'application/vnd.oasis.opendocument.graphics',
|
||||
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
|
||||
'odi' => 'application/vnd.oasis.opendocument.image',
|
||||
'oti' => 'application/vnd.oasis.opendocument.image-template',
|
||||
'odp' => 'application/vnd.oasis.opendocument.presentation',
|
||||
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
|
||||
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
||||
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
|
||||
'odt' => 'application/vnd.oasis.opendocument.text',
|
||||
'odm' => 'application/vnd.oasis.opendocument.text-master',
|
||||
'ott' => 'application/vnd.oasis.opendocument.text-template',
|
||||
'oth' => 'application/vnd.oasis.opendocument.text-web'
|
||||
);
|
14
application/config/profiler.php
Normal file
14
application/config/profiler.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Profiler Sections
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you determine whether or not various sections of Profiler
|
||||
| data are displayed when the Profiler is enabled.
|
||||
| Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/profiling.html
|
||||
|
|
||||
*/
|
103
application/config/routes.php
Normal file
103
application/config/routes.php
Normal file
@ -0,0 +1,103 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| URI ROUTING
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you re-map URI requests to specific controller functions.
|
||||
|
|
||||
| Typically there is a one-to-one relationship between a URL string
|
||||
| and its corresponding controller class/method. The segments in a
|
||||
| URL normally follow this pattern:
|
||||
|
|
||||
| example.com/class/method/id/
|
||||
|
|
||||
| In some instances, however, you may want to remap this relationship
|
||||
| so that a different class/function is called than the one
|
||||
| corresponding to the URL.
|
||||
|
|
||||
| Please see the user guide for complete details:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/routing.html
|
||||
|
|
||||
| -------------------------------------------------------------------------
|
||||
| RESERVED ROUTES
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
||||
| There are three reserved routes:
|
||||
|
|
||||
| $route['default_controller'] = 'welcome';
|
||||
|
|
||||
| This route indicates which controller class should be loaded if the
|
||||
| URI contains no data. In the above example, the "welcome" class
|
||||
| would be loaded.
|
||||
|
|
||||
| $route['404_override'] = 'errors/page_missing';
|
||||
|
|
||||
| This route will tell the Router which controller/method to use if those
|
||||
| provided in the URL cannot be matched to a valid route.
|
||||
|
|
||||
| $route['translate_uri_dashes'] = FALSE;
|
||||
|
|
||||
| This is not exactly a route, but allows you to automatically route
|
||||
| controller and method names that contain dashes. '-' isn't a valid
|
||||
| class or method name character, so it requires translation.
|
||||
| When you set this option to TRUE, it will replace ALL dashes in the
|
||||
| controller and method URI segments.
|
||||
|
|
||||
| Examples: my-controller/index -> my_controller/index
|
||||
| my-controller/my-method -> my_controller/my_method
|
||||
*/
|
||||
$route['default_controller'] = 'welcome';
|
||||
$route['404_override'] = '';
|
||||
$route['translate_uri_dashes'] = FALSE;
|
||||
$route['dashboard'] = 'welcome/dashboard';
|
||||
|
||||
//Role//
|
||||
$route['roles'] = 'role/listrole';
|
||||
$route['add_role'] = 'role/addrole';
|
||||
$route['edit_role'] = 'role/editrole';
|
||||
$route['delete_role'] = 'role/deleterole';
|
||||
|
||||
|
||||
//emplayee//
|
||||
$route['employee'] = 'employee/employee_list';
|
||||
$route['add'] = 'employee/add_list';
|
||||
$route['add_employee'] = 'employee/add_employee';
|
||||
$route['edit_employees/(:num)'] = 'employee/editemployee/$1';
|
||||
$route['deleted_employee'] = 'employee/deleted_employee';
|
||||
|
||||
//Department//
|
||||
$route['department'] = 'department/department_list';
|
||||
$route['add_department'] = 'department/add_department';
|
||||
$route['edit_department'] = 'department/edit_department';
|
||||
$route['delete_department'] = 'department/delete_department';
|
||||
|
||||
//Semester//
|
||||
$route['semester'] = 'semester/semester_list';
|
||||
$route['add_semester'] = 'semester/add_semester';
|
||||
$route['edit_semester/(:num)'] = 'semester/edit_semester/$1';
|
||||
$route['deleted_semester'] = 'semester/deleted_semester';
|
||||
|
||||
|
||||
|
||||
//subject//
|
||||
$route['subject'] = 'subject/subject_list';
|
||||
$route['add_subject'] = 'subject/add_subject';
|
||||
$route['edit_subject/(:num)'] = 'subject/edit_subject/$1';
|
||||
$route['deleted_subject'] = 'subject/deleted_subject';
|
||||
|
||||
|
||||
//faculty//
|
||||
$route['faculty'] = 'faculty/faculty_list';
|
||||
$route['add_faculty'] = 'faculty/add_faculty';
|
||||
$route['edit_faculty/(:num)'] = 'faculty/edit_faculty/$1';
|
||||
$route['deleted_faculty'] = 'faculty/deleted_faculty';
|
||||
|
||||
|
||||
//student//
|
||||
$route['student'] = 'student/student_list';
|
||||
$route['add_student'] = 'student/add_student';
|
||||
$route['edit_student/(:num)'] = 'student/edit_student/$1';
|
||||
$route['deleted_student'] = 'student/deleted_student';
|
64
application/config/smileys.php
Normal file
64
application/config/smileys.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| SMILEYS
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of smileys for use with the emoticon helper.
|
||||
| Individual images can be used to replace multiple smileys. For example:
|
||||
| :-) and :) use the same image replacement.
|
||||
|
|
||||
| Please see user guide for more info:
|
||||
| https://codeigniter.com/user_guide/helpers/smiley_helper.html
|
||||
|
|
||||
*/
|
||||
$smileys = array(
|
||||
|
||||
// smiley image name width height alt
|
||||
|
||||
':-)' => array('grin.gif', '19', '19', 'grin'),
|
||||
':lol:' => array('lol.gif', '19', '19', 'LOL'),
|
||||
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
|
||||
':)' => array('smile.gif', '19', '19', 'smile'),
|
||||
';-)' => array('wink.gif', '19', '19', 'wink'),
|
||||
';)' => array('wink.gif', '19', '19', 'wink'),
|
||||
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
|
||||
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
|
||||
':-S' => array('confused.gif', '19', '19', 'confused'),
|
||||
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
|
||||
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
|
||||
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
|
||||
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
|
||||
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
|
||||
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
|
||||
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
|
||||
':long:' => array('longface.gif', '19', '19', 'long face'),
|
||||
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
|
||||
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
|
||||
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
|
||||
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
|
||||
':down:' => array('downer.gif', '19', '19', 'downer'),
|
||||
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
|
||||
':sick:' => array('sick.gif', '19', '19', 'sick'),
|
||||
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
|
||||
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
|
||||
'>:(' => array('mad.gif', '19', '19', 'mad'),
|
||||
':mad:' => array('mad.gif', '19', '19', 'mad'),
|
||||
'>:-(' => array('angry.gif', '19', '19', 'angry'),
|
||||
':angry:' => array('angry.gif', '19', '19', 'angry'),
|
||||
':zip:' => array('zip.gif', '19', '19', 'zipper'),
|
||||
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
|
||||
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
|
||||
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
|
||||
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
|
||||
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
|
||||
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
|
||||
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
|
||||
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
|
||||
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
|
||||
':snake:' => array('snake.gif', '19', '19', 'snake'),
|
||||
':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
|
||||
':question:' => array('question.gif', '19', '19', 'question')
|
||||
|
||||
);
|
216
application/config/user_agents.php
Normal file
216
application/config/user_agents.php
Normal file
@ -0,0 +1,216 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| USER AGENT TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains four arrays of user agent data. It is used by the
|
||||
| User Agent Class to help identify browser, platform, robot, and
|
||||
| mobile device data. The array keys are used to identify the device
|
||||
| and the array values are used to set the actual name of the item.
|
||||
*/
|
||||
$platforms = array(
|
||||
'windows nt 10.0' => 'Windows 10',
|
||||
'windows nt 6.3' => 'Windows 8.1',
|
||||
'windows nt 6.2' => 'Windows 8',
|
||||
'windows nt 6.1' => 'Windows 7',
|
||||
'windows nt 6.0' => 'Windows Vista',
|
||||
'windows nt 5.2' => 'Windows 2003',
|
||||
'windows nt 5.1' => 'Windows XP',
|
||||
'windows nt 5.0' => 'Windows 2000',
|
||||
'windows nt 4.0' => 'Windows NT 4.0',
|
||||
'winnt4.0' => 'Windows NT 4.0',
|
||||
'winnt 4.0' => 'Windows NT',
|
||||
'winnt' => 'Windows NT',
|
||||
'windows 98' => 'Windows 98',
|
||||
'win98' => 'Windows 98',
|
||||
'windows 95' => 'Windows 95',
|
||||
'win95' => 'Windows 95',
|
||||
'windows phone' => 'Windows Phone',
|
||||
'windows' => 'Unknown Windows OS',
|
||||
'android' => 'Android',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'iphone' => 'iOS',
|
||||
'ipad' => 'iOS',
|
||||
'ipod' => 'iOS',
|
||||
'os x' => 'Mac OS X',
|
||||
'ppc mac' => 'Power PC Mac',
|
||||
'freebsd' => 'FreeBSD',
|
||||
'ppc' => 'Macintosh',
|
||||
'linux' => 'Linux',
|
||||
'debian' => 'Debian',
|
||||
'sunos' => 'Sun Solaris',
|
||||
'beos' => 'BeOS',
|
||||
'apachebench' => 'ApacheBench',
|
||||
'aix' => 'AIX',
|
||||
'irix' => 'Irix',
|
||||
'osf' => 'DEC OSF',
|
||||
'hp-ux' => 'HP-UX',
|
||||
'netbsd' => 'NetBSD',
|
||||
'bsdi' => 'BSDi',
|
||||
'openbsd' => 'OpenBSD',
|
||||
'gnu' => 'GNU/Linux',
|
||||
'unix' => 'Unknown Unix OS',
|
||||
'symbian' => 'Symbian OS'
|
||||
);
|
||||
|
||||
|
||||
// The order of this array should NOT be changed. Many browsers return
|
||||
// multiple browser types so we want to identify the sub-type first.
|
||||
$browsers = array(
|
||||
'OPR' => 'Opera',
|
||||
'Flock' => 'Flock',
|
||||
'Edge' => 'Edge',
|
||||
'Chrome' => 'Chrome',
|
||||
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
|
||||
'Opera.*?Version' => 'Opera',
|
||||
'Opera' => 'Opera',
|
||||
'MSIE' => 'Internet Explorer',
|
||||
'Internet Explorer' => 'Internet Explorer',
|
||||
'Trident.* rv' => 'Internet Explorer',
|
||||
'Shiira' => 'Shiira',
|
||||
'Firefox' => 'Firefox',
|
||||
'Chimera' => 'Chimera',
|
||||
'Phoenix' => 'Phoenix',
|
||||
'Firebird' => 'Firebird',
|
||||
'Camino' => 'Camino',
|
||||
'Netscape' => 'Netscape',
|
||||
'OmniWeb' => 'OmniWeb',
|
||||
'Safari' => 'Safari',
|
||||
'Mozilla' => 'Mozilla',
|
||||
'Konqueror' => 'Konqueror',
|
||||
'icab' => 'iCab',
|
||||
'Lynx' => 'Lynx',
|
||||
'Links' => 'Links',
|
||||
'hotjava' => 'HotJava',
|
||||
'amaya' => 'Amaya',
|
||||
'IBrowse' => 'IBrowse',
|
||||
'Maxthon' => 'Maxthon',
|
||||
'Ubuntu' => 'Ubuntu Web Browser'
|
||||
);
|
||||
|
||||
$mobiles = array(
|
||||
// legacy array, old values commented out
|
||||
'mobileexplorer' => 'Mobile Explorer',
|
||||
// 'openwave' => 'Open Wave',
|
||||
// 'opera mini' => 'Opera Mini',
|
||||
// 'operamini' => 'Opera Mini',
|
||||
// 'elaine' => 'Palm',
|
||||
'palmsource' => 'Palm',
|
||||
// 'digital paths' => 'Palm',
|
||||
// 'avantgo' => 'Avantgo',
|
||||
// 'xiino' => 'Xiino',
|
||||
'palmscape' => 'Palmscape',
|
||||
// 'nokia' => 'Nokia',
|
||||
// 'ericsson' => 'Ericsson',
|
||||
// 'blackberry' => 'BlackBerry',
|
||||
// 'motorola' => 'Motorola'
|
||||
|
||||
// Phones and Manufacturers
|
||||
'motorola' => 'Motorola',
|
||||
'nokia' => 'Nokia',
|
||||
'nexus' => 'Nexus',
|
||||
'palm' => 'Palm',
|
||||
'iphone' => 'Apple iPhone',
|
||||
'ipad' => 'iPad',
|
||||
'ipod' => 'Apple iPod Touch',
|
||||
'sony' => 'Sony Ericsson',
|
||||
'ericsson' => 'Sony Ericsson',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'cocoon' => 'O2 Cocoon',
|
||||
'blazer' => 'Treo',
|
||||
'lg' => 'LG',
|
||||
'amoi' => 'Amoi',
|
||||
'xda' => 'XDA',
|
||||
'mda' => 'MDA',
|
||||
'vario' => 'Vario',
|
||||
'htc' => 'HTC',
|
||||
'samsung' => 'Samsung',
|
||||
'sharp' => 'Sharp',
|
||||
'sie-' => 'Siemens',
|
||||
'alcatel' => 'Alcatel',
|
||||
'benq' => 'BenQ',
|
||||
'ipaq' => 'HP iPaq',
|
||||
'mot-' => 'Motorola',
|
||||
'playstation portable' => 'PlayStation Portable',
|
||||
'playstation 3' => 'PlayStation 3',
|
||||
'playstation vita' => 'PlayStation Vita',
|
||||
'hiptop' => 'Danger Hiptop',
|
||||
'nec-' => 'NEC',
|
||||
'panasonic' => 'Panasonic',
|
||||
'philips' => 'Philips',
|
||||
'sagem' => 'Sagem',
|
||||
'sanyo' => 'Sanyo',
|
||||
'spv' => 'SPV',
|
||||
'zte' => 'ZTE',
|
||||
'sendo' => 'Sendo',
|
||||
'nintendo dsi' => 'Nintendo DSi',
|
||||
'nintendo ds' => 'Nintendo DS',
|
||||
'nintendo 3ds' => 'Nintendo 3DS',
|
||||
'wii' => 'Nintendo Wii',
|
||||
'open web' => 'Open Web',
|
||||
'openweb' => 'OpenWeb',
|
||||
'meizu' => 'Meizu',
|
||||
|
||||
// Operating Systems
|
||||
'android' => 'Android',
|
||||
'symbian' => 'Symbian',
|
||||
'SymbianOS' => 'SymbianOS',
|
||||
'elaine' => 'Palm',
|
||||
'series60' => 'Symbian S60',
|
||||
'windows ce' => 'Windows CE',
|
||||
|
||||
// Browsers
|
||||
'obigo' => 'Obigo',
|
||||
'netfront' => 'Netfront Browser',
|
||||
'openwave' => 'Openwave Browser',
|
||||
'mobilexplorer' => 'Mobile Explorer',
|
||||
'operamini' => 'Opera Mini',
|
||||
'opera mini' => 'Opera Mini',
|
||||
'opera mobi' => 'Opera Mobile',
|
||||
'fennec' => 'Firefox Mobile',
|
||||
|
||||
// Other
|
||||
'digital paths' => 'Digital Paths',
|
||||
'avantgo' => 'AvantGo',
|
||||
'xiino' => 'Xiino',
|
||||
'novarra' => 'Novarra Transcoder',
|
||||
'vodafone' => 'Vodafone',
|
||||
'docomo' => 'NTT DoCoMo',
|
||||
'o2' => 'O2',
|
||||
|
||||
// Fallback
|
||||
'mobile' => 'Generic Mobile',
|
||||
'wireless' => 'Generic Mobile',
|
||||
'j2me' => 'Generic Mobile',
|
||||
'midp' => 'Generic Mobile',
|
||||
'cldc' => 'Generic Mobile',
|
||||
'up.link' => 'Generic Mobile',
|
||||
'up.browser' => 'Generic Mobile',
|
||||
'smartphone' => 'Generic Mobile',
|
||||
'cellphone' => 'Generic Mobile'
|
||||
);
|
||||
|
||||
// There are hundreds of bots but these are the most common.
|
||||
$robots = array(
|
||||
'googlebot' => 'Googlebot',
|
||||
'msnbot' => 'MSNBot',
|
||||
'baiduspider' => 'Baiduspider',
|
||||
'bingbot' => 'Bing',
|
||||
'slurp' => 'Inktomi Slurp',
|
||||
'yahoo' => 'Yahoo',
|
||||
'ask jeeves' => 'Ask Jeeves',
|
||||
'fastcrawler' => 'FastCrawler',
|
||||
'infoseek' => 'InfoSeek Robot 1.0',
|
||||
'lycos' => 'Lycos',
|
||||
'yandex' => 'YandexBot',
|
||||
'mediapartners-google' => 'MediaPartners Google',
|
||||
'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
|
||||
'adsbot-google' => 'AdsBot Google',
|
||||
'feedfetcher-google' => 'Feedfetcher Google',
|
||||
'curious george' => 'Curious George',
|
||||
'ia_archiver' => 'Alexa Crawler',
|
||||
'MJ12bot' => 'Majestic-12',
|
||||
'Uptimebot' => 'Uptimebot'
|
||||
);
|
27
application/controllers/Dashboard.php
Normal file
27
application/controllers/Dashboard.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Dashboard 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 add()
|
||||
{
|
||||
$this->load->view('welcome/dashboarde');
|
||||
}
|
||||
|
||||
|
||||
}
|
131
application/controllers/Department.php
Normal file
131
application/controllers/Department.php
Normal file
@ -0,0 +1,131 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Department extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Department_model');
|
||||
$this->load->model('Commonsql_model');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 department_list()
|
||||
{
|
||||
$data['dep']=$this->Department_model->dep_list();
|
||||
$this->load->view('department/department_list',$data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function add_department()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$depname=$this->input->post('depname');
|
||||
$depcode=$this->input->post('depcode');
|
||||
|
||||
$table="department";
|
||||
|
||||
$values=array('name'=>$depname,
|
||||
'code'=>$depcode,
|
||||
//'created_on'=>date('Y-m-d'),
|
||||
'created_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully added');
|
||||
redirect('department');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('department');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function edit_department()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
|
||||
$depname=$this->input->post('depname');
|
||||
$depcode=$this->input->post('depcode');
|
||||
$primaryid=$this->input->post('hiddendepid');
|
||||
|
||||
$table="department";
|
||||
$where=array("dep_id"=>$primaryid);
|
||||
$values=array('name'=>$depname,
|
||||
'code'=>$depcode,
|
||||
//'updated_on'=>date('Y-m-d'),
|
||||
'update_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
//echo $this->db->last_query();exit;
|
||||
if($result)
|
||||
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully Updated');
|
||||
redirect('department');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('department');
|
||||
}
|
||||
//echo $this->db->last_query();exit;
|
||||
}
|
||||
//$this->load->view('department/department_list',$data);
|
||||
}
|
||||
|
||||
|
||||
function delete_department()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
|
||||
$primaryid=$this->input->post('hiddengffgdtpid');
|
||||
//echo $primaryid ; exit;
|
||||
$table="department";
|
||||
$where=array("dep_id"=>$primaryid);
|
||||
$values=array(
|
||||
'status'=>0);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully deleted');
|
||||
redirect('department');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('department');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
149
application/controllers/Employee.php
Normal file
149
application/controllers/Employee.php
Normal file
@ -0,0 +1,149 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Employee extends CI_Controller {
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Employee_model');
|
||||
$this->load->model('Commonsql_model');
|
||||
}
|
||||
|
||||
public function listrole()
|
||||
{
|
||||
$this->load->view('roles/role_list');
|
||||
}
|
||||
|
||||
public function employee_list()
|
||||
{
|
||||
|
||||
$data['emp']=$this->Employee_model->list_emp();
|
||||
|
||||
$this->load->view('employee/employee',$data);
|
||||
}
|
||||
public function add_list()
|
||||
{
|
||||
$this->load->view('add_emplayee/add');
|
||||
}
|
||||
function add_employee()
|
||||
{
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$employeename=$this->input->post('employeename');
|
||||
$number=$this->input->post('number');
|
||||
$address=$this->input->post('address');
|
||||
$email=$this->input->post('email');
|
||||
$code=$this->input->post('code');
|
||||
$img=$this->input->post('img');
|
||||
$user=$this->input->post('User');
|
||||
$password=$this->input->post('Password');
|
||||
|
||||
|
||||
$table="employee";
|
||||
$values=array('name'=>$employeename,
|
||||
'mobilenumer'=>$number,
|
||||
'address'=>$address,
|
||||
'email'=>$email,
|
||||
'pincode'=>$code,
|
||||
'img'=>$img,
|
||||
'username'=>$user,
|
||||
'password'=>$password,
|
||||
'created_on'=>date('Y-m-d'),
|
||||
'created_by'=>1,
|
||||
'status'=>1);
|
||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully added');
|
||||
redirect('employee');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('employee');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
function editemployee($empid)
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$employeename=$this->input->post('employeename');
|
||||
$number=$this->input->post('mnumber');
|
||||
$address=$this->input->post('address');
|
||||
$email=$this->input->post('email');
|
||||
$code=$this->input->post('code');
|
||||
$img=$this->input->post('img');
|
||||
$user=$this->input->post('User');
|
||||
$password=$this->input->post('Password');
|
||||
$hiddenpass=$this->input->post('hiddenpass');
|
||||
if($password=="")
|
||||
{
|
||||
$newpassword=$hiddenpass;
|
||||
}
|
||||
else
|
||||
{
|
||||
$newpassword=md5($password);
|
||||
}
|
||||
$table="employee";
|
||||
$where=array("id"=>$empid);
|
||||
$values=array('name'=>$employeename,
|
||||
'mobilenumer'=>$number,
|
||||
'address'=>$address,
|
||||
'email'=>$email,
|
||||
'pincode'=>$code,
|
||||
'username'=>$user,
|
||||
'password'=>$newpassword,
|
||||
'update_on'=>date('Y-m-d'),
|
||||
'update_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully Updated');
|
||||
redirect('employee');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('employee');
|
||||
}
|
||||
|
||||
}
|
||||
//echo "sdsd";exit;
|
||||
$data['emp']=$this->Employee_model->get_emp($empid);
|
||||
//echo $this->db->last_query();exit;
|
||||
$this->load->view('add_emplayee/edit',$data);
|
||||
}
|
||||
|
||||
function deleted_employee()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$empid=$this->input->post('hiddenpass');
|
||||
|
||||
$table="employee";
|
||||
$where=array("id"=>$empid);
|
||||
$values=array(
|
||||
'status'=>0);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully deleted');
|
||||
redirect('employee');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('employee');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
166
application/controllers/Faculty.php
Normal file
166
application/controllers/Faculty.php
Normal file
@ -0,0 +1,166 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Faculty extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Faculty_model');
|
||||
$this->load->model('Commonsql_model');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 faculty_list()
|
||||
{
|
||||
$data['fac']=$this->Faculty_model->list_fa();
|
||||
$this->load->view('faculty/faculty_list',$data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
function add_faculty()
|
||||
{
|
||||
|
||||
$this->load->view('faculty/add_faculty');
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$faculty=$this->input->post('faculty');
|
||||
$name=$this->input->post('name');
|
||||
$email=$this->input->post('email');
|
||||
//$dob=$this->input->post('dob');
|
||||
$gender=$this->input->post('gender');
|
||||
$number=$this->input->post('number');
|
||||
$address=$this->input->post('address');
|
||||
$desi=$this->input->post('desigation');
|
||||
$f_img=$this->input->post('f_img');
|
||||
|
||||
$table="faculty";
|
||||
$values=array('code'=>$faculty,
|
||||
'name'=>$name,
|
||||
'email'=>$email,
|
||||
//'dob'=>$dob,
|
||||
'gender'=>$gender,
|
||||
'mobile'=>$number,
|
||||
'address'=>$address,
|
||||
'desigation'=>$desi,
|
||||
'f_img'=>$f_img,
|
||||
'created_on'=>date('Y-m-d'),
|
||||
'created_by'=>1,
|
||||
'status'=>1);
|
||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully added');
|
||||
redirect('faculty');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('faculty');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function edit_faculty($id)
|
||||
{
|
||||
|
||||
$data['fac']=$this->Faculty_model->get_fac($id);
|
||||
$this->load->view('faculty/edit_faculty',$data);
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$faculty=$this->input->post('faculty');
|
||||
$name=$this->input->post('name');
|
||||
$email=$this->input->post('email');
|
||||
//$dob=$this->input->post('dob');
|
||||
$gender=$this->input->post('gender');
|
||||
$number=$this->input->post('number');
|
||||
$address=$this->input->post('address');
|
||||
$desi=$this->input->post('desigation');
|
||||
$f_img=$this->input->post('f_img');
|
||||
|
||||
|
||||
$table="faculty";
|
||||
$where=array("id"=>$id);
|
||||
$values=array('code'=>$faculty,
|
||||
'name'=>$name,
|
||||
'email'=>$email,
|
||||
//'dob'=>$dob,
|
||||
'gender'=>$gender,
|
||||
'mobile'=>$number,
|
||||
'address'=>$address,
|
||||
'desigation'=>$desi,
|
||||
'f_img'=>$f_img,
|
||||
'update_on'=>date('Y-m-d'),
|
||||
'update_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully Updated');
|
||||
redirect('faculty');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('faculty');
|
||||
}
|
||||
|
||||
}
|
||||
//echo "sdsd";exit;
|
||||
|
||||
//echo $this->db->last_query();exit;
|
||||
|
||||
}
|
||||
|
||||
function deleted_faculty()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$id=$this->input->post('hiddenpass');
|
||||
|
||||
$table="faculty";
|
||||
$where=array("id"=>$id);
|
||||
$values=array(
|
||||
'status'=>0);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully deleted');
|
||||
redirect('faculty');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('faculty');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
113
application/controllers/Role.php
Normal file
113
application/controllers/Role.php
Normal file
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Role extends CI_Controller {
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Role_model');
|
||||
$this->load->model('Commonsql_model');
|
||||
|
||||
}
|
||||
|
||||
public function listrole()
|
||||
{
|
||||
$data['rol']=$this->Role_model->list_rol();
|
||||
$this->load->view('roles/role_list',$data);
|
||||
}
|
||||
function addrole()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$role=$this->input->post('rolename');
|
||||
|
||||
$table="role";
|
||||
|
||||
$values=array('name'=>$role,
|
||||
'created_on'=>date('Y-m-d'),
|
||||
'created_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully added');
|
||||
redirect('roles');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('roles');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
function editrole()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$rolename=$this->input->post('rolename');
|
||||
$primaryid=$this->input->post('hiddenroleid');
|
||||
|
||||
$table="role";
|
||||
$where=array("role_id"=>$primaryid);
|
||||
$values=array('name'=>$rolename,
|
||||
'updated_on'=>date('Y-m-d'),
|
||||
'updated_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
//echo $this->db->last_query();exit;
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully Updated');
|
||||
redirect('roles');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('roles');
|
||||
}
|
||||
//echo $this->db->last_query();exit;
|
||||
}
|
||||
$this->load->view('roles/role_list',$data);
|
||||
}
|
||||
function deleterole()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
|
||||
$primaryid=$this->input->post('hiddengffgdtpid');
|
||||
//echo $primaryid ; exit;
|
||||
$table="role";
|
||||
$where=array("role_id"=>$primaryid);
|
||||
$values=array(
|
||||
'status'=>0);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully deleted');
|
||||
redirect('roles');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('roles');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//profile start//
|
||||
public function profile_list()
|
||||
{
|
||||
//$data['rol']=$this->Role_model->list_rol();
|
||||
$this->load->view('profile');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
141
application/controllers/Semester.php
Normal file
141
application/controllers/Semester.php
Normal file
@ -0,0 +1,141 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Semester extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Semester_model');
|
||||
$this->load->model('Commonsql_model');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 semester_list()
|
||||
{
|
||||
$data['sem']=$this->Semester_model->list_sem();
|
||||
$this->load->view('semester/semester_list',$data);
|
||||
}
|
||||
|
||||
|
||||
function add_semester()
|
||||
{
|
||||
|
||||
$this->load->view('semester/add_semester');
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$name=$this->input->post('name');
|
||||
$hod=$this->input->post('hod');
|
||||
$staff=$this->input->post('staff');
|
||||
|
||||
$table="semester";
|
||||
$values=array('name'=>$name,
|
||||
'hod'=>$hod,
|
||||
'staff'=>$staff,
|
||||
'created_on'=>date('Y-m-d'),
|
||||
'created_by'=>1,
|
||||
'status'=>1);
|
||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully added');
|
||||
redirect('semester');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('semester');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function edit_semester($id)
|
||||
{
|
||||
|
||||
$data['sem']=$this->Semester_model->get_sem($id);
|
||||
$this->load->view('semester/edit_semester',$data);
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$name=$this->input->post('name');
|
||||
$hod=$this->input->post('hod');
|
||||
$staff=$this->input->post('staff');
|
||||
|
||||
|
||||
$table="semester";
|
||||
$where=array("id"=>$id);
|
||||
$values=array('name'=>$name,
|
||||
'hod'=>$hod,
|
||||
'staff'=>$staff,
|
||||
//'update_on'=>date('Y-m-d'),
|
||||
// 'update_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully Updated');
|
||||
redirect('semester');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('semester');
|
||||
}
|
||||
|
||||
}
|
||||
//echo "sdsd";exit;
|
||||
|
||||
//echo $this->db->last_query();exit;
|
||||
|
||||
}
|
||||
|
||||
function deleted_semester()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$id=$this->input->post('hiddenpass');
|
||||
|
||||
$table="semester";
|
||||
$where=array("id"=>$id);
|
||||
$values=array(
|
||||
'status'=>0);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully deleted');
|
||||
redirect('semester');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('semester');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
153
application/controllers/Student.php
Normal file
153
application/controllers/Student.php
Normal file
@ -0,0 +1,153 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Student extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Student_model');
|
||||
$this->load->model('Commonsql_model');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 Student_list()
|
||||
{
|
||||
$data['stu']=$this->Student_model->list_stu();
|
||||
$this->load->view('student/Student_list',$data);
|
||||
}
|
||||
|
||||
|
||||
function add_student()
|
||||
{
|
||||
|
||||
$this->load->view('student/add_student');
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$name=$this->input->post('name');
|
||||
$number=$this->input->post('number');
|
||||
$address=$this->input->post('address');
|
||||
$department=$this->input->post('department');
|
||||
$gender=$this->input->post('gender');
|
||||
$s_img=$this->input->post('s_img');
|
||||
|
||||
$table="student";
|
||||
$values=array('name'=>$name,
|
||||
'number'=>$number,
|
||||
'address'=>$address,
|
||||
'department'=>$department,
|
||||
'gender'=>$gender,
|
||||
's_img'=>$s_img,
|
||||
'created_on'=>date('Y-m-d'),
|
||||
'created_by'=>1,
|
||||
'status'=>1);
|
||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully added');
|
||||
redirect('student');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('student');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function edit_student($id)
|
||||
{
|
||||
|
||||
$data['stu']=$this->Student_model->get_stu($id);
|
||||
$this->load->view('student/edit_student',$data);
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$name=$this->input->post('name');
|
||||
$number=$this->input->post('number');
|
||||
$address=$this->input->post('address');
|
||||
$department=$this->input->post('department');
|
||||
$gender=$this->input->post('gender');
|
||||
$s_img=$this->input->post('s_img');
|
||||
|
||||
|
||||
$table="student";
|
||||
$where=array("id"=>$id);
|
||||
$values=array('name'=>$name,
|
||||
'number'=>$number,
|
||||
'address'=>$address,
|
||||
'department'=>$department,
|
||||
'gender'=>$gender,
|
||||
's_img'=>$s_img,
|
||||
//'update_on'=>date('Y-m-d'),
|
||||
// 'update_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully Updated');
|
||||
redirect('student');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('student');
|
||||
}
|
||||
|
||||
}
|
||||
//echo "sdsd";exit;
|
||||
|
||||
//echo $this->db->last_query();exit;
|
||||
|
||||
}
|
||||
|
||||
function deleted_student()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$id=$this->input->post('hiddenpass');
|
||||
|
||||
$table="student";
|
||||
$where=array("id"=>$id);
|
||||
$values=array(
|
||||
'status'=>0);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully deleted');
|
||||
redirect('student');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('student');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
148
application/controllers/Subject.php
Normal file
148
application/controllers/Subject.php
Normal file
@ -0,0 +1,148 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Subject extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Subject_model');
|
||||
$this->load->model('Commonsql_model');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 subject_list()
|
||||
{
|
||||
$data['sub']=$this->Subject_model->list_sub();
|
||||
$this->load->view('subject/subject_list',$data);
|
||||
}
|
||||
|
||||
function add_subject()
|
||||
{
|
||||
|
||||
$this->load->view('subject/add_subject');
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$code=$this->input->post('code');
|
||||
$sub=$this->input->post('subject');
|
||||
$dep=$this->input->post('department');
|
||||
$semester=$this->input->post('semester');
|
||||
|
||||
$table="subject";
|
||||
$values=array('code'=>$code,
|
||||
'subject'=>$sub,
|
||||
'department'=>$dep,
|
||||
'semester'=>$semester,
|
||||
'created_on'=>date('Y-m-d'),
|
||||
'created_by'=>1,
|
||||
'status'=>1);
|
||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully added');
|
||||
redirect('subject');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('subject');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function edit_subject($id)
|
||||
{
|
||||
|
||||
$data['sub']=$this->Subject_model->get_sub($id);
|
||||
//echo $this->db->last_query();exit;
|
||||
$this->load->view('subject/edit_subject',$data);
|
||||
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
|
||||
$code=$this->input->post('code');
|
||||
$sub=$this->input->post('subject');
|
||||
$dep=$this->input->post('department');
|
||||
$semester=$this->input->post('semester');
|
||||
|
||||
$table="subject";
|
||||
$where=array("id"=>$id);
|
||||
$values=array('code'=>$code,
|
||||
'subject'=>$sub,
|
||||
'department'=>$dep,
|
||||
'semester'=>$semester,
|
||||
'updated_on'=>date('Y-m-d'),
|
||||
//'update_by'=>1,
|
||||
'status'=>1);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
//echo $this->db->last_query();exit;
|
||||
if($result)
|
||||
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully Updated');
|
||||
redirect('subject');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('subject');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function deleted_subject()
|
||||
{
|
||||
if($this->input->post('submit'))
|
||||
{
|
||||
$id=$this->input->post('hiddenpass');
|
||||
|
||||
$table="subject";
|
||||
$where=array("id"=>$id);
|
||||
$values=array(
|
||||
'status'=>0);
|
||||
|
||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||
if($result)
|
||||
{
|
||||
$this->session->set_userdata('suc','successfully deleted');
|
||||
redirect('subject');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','Please try again');
|
||||
redirect('subject');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
64
application/controllers/Welcome.php
Normal file
64
application/controllers/Welcome.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Welcome extends CI_Controller {
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('Common_model');
|
||||
}
|
||||
|
||||
/**
|
||||
* 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('login');
|
||||
}
|
||||
public function dashboard()
|
||||
{
|
||||
$this->load->view('dashboard');
|
||||
}
|
||||
public function admin_login()
|
||||
{
|
||||
|
||||
$username=$this->input->post('username');
|
||||
$password=$this->input->post('password');
|
||||
|
||||
$check=$this->Common_model->get_login_detail($username,$password);
|
||||
|
||||
if($check->num_rows()>0)
|
||||
{
|
||||
|
||||
$ch =$check->row();
|
||||
//$usertype=$ch->user_type;
|
||||
//$this->session->set_userdata('user_type',$ch->user_type);
|
||||
$this->session->set_userdata('username',$ch->username);
|
||||
$this->session->set_userdata('id',$ch->id);
|
||||
$this->session->set_userdata('suc',' Successfully Logged in..!');
|
||||
if($usertype!=2){
|
||||
redirect('dashboard');}
|
||||
else{
|
||||
redirect('dashboard');}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_userdata('err','The username or password is incorrect.');
|
||||
redirect('dashboard');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
11
application/controllers/index.html
Normal file
11
application/controllers/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/core/index.html
Normal file
11
application/core/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
BIN
application/fonts/fontawesome-webfont3e6e.eot
Normal file
BIN
application/fonts/fontawesome-webfont3e6e.eot
Normal file
Binary file not shown.
2671
application/fonts/fontawesome-webfont3e6e.svg
Normal file
2671
application/fonts/fontawesome-webfont3e6e.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 434 KiB |
BIN
application/fonts/fontawesome-webfont3e6e.ttf
Normal file
BIN
application/fonts/fontawesome-webfont3e6e.ttf
Normal file
Binary file not shown.
BIN
application/fonts/fontawesome-webfont3e6e.woff
Normal file
BIN
application/fonts/fontawesome-webfont3e6e.woff
Normal file
Binary file not shown.
BIN
application/fonts/fontawesome-webfont3e6e.woff2
Normal file
BIN
application/fonts/fontawesome-webfont3e6e.woff2
Normal file
Binary file not shown.
BIN
application/fonts/fontawesome-webfontd41d.eot
Normal file
BIN
application/fonts/fontawesome-webfontd41d.eot
Normal file
Binary file not shown.
11
application/helpers/index.html
Normal file
11
application/helpers/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/hooks/index.html
Normal file
11
application/hooks/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/index.html
Normal file
11
application/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/language/english/index.html
Normal file
11
application/language/english/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/language/index.html
Normal file
11
application/language/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/libraries/index.html
Normal file
11
application/libraries/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
127
application/models/Common_model.php
Normal file
127
application/models/Common_model.php
Normal file
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
/**
|
||||
* User details
|
||||
*
|
||||
* Description...
|
||||
*
|
||||
* @package user
|
||||
* @author Dotwings <your@email.com>
|
||||
* @version 0.0.0
|
||||
*/
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Common_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/*
|
||||
* Add a new user to the system
|
||||
* $tableName -> Name of the table
|
||||
* $tableData -> Array -> Table data
|
||||
*/
|
||||
|
||||
function insert_table($tableName, $tableData = array()) {
|
||||
// Insert the user record
|
||||
if (isset($tableData) && count($tableData) > 0) {
|
||||
$this->db->insert($tableName, $tableData);
|
||||
return $this->db->insert_id();
|
||||
//echo $this->db->last_query(); exit;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* get the data to table
|
||||
* $tableName -> Name of the table
|
||||
* $whereData -> Array -> where fields
|
||||
* $showField -> Array -> what are the fields need to show
|
||||
* */
|
||||
|
||||
public function selectTable($tableName, $whereData = array(), $showField = array('*'), $orWhereData = array(), $group = array(), $order = '', $having = '', $limit = array(), $result_way = 'all', $echo = 0,$inWhereData = array(),$notInWhereData = array()) {
|
||||
|
||||
$this->db->select($showField);
|
||||
$this->db->from($tableName);
|
||||
if (!empty($whereData) > 0) {
|
||||
$this->db->where($whereData);
|
||||
}
|
||||
if (isset($orWhereData) && !empty($orWhereData)) {
|
||||
$this->db->or_where($orWhereData);
|
||||
}
|
||||
if (isset($inWhereData) && !empty($inWhereData)) {
|
||||
$this->db->where_in($inWhereData[0],$inWhereData[1]);
|
||||
}
|
||||
if (isset($notInWhereData) && !empty($notInWhereData)) {
|
||||
$this->db->where_not_in($notInWhereData[0],$notInWhereData[1]);
|
||||
}
|
||||
if (!empty($group)) {
|
||||
$this->db->group_by($group);
|
||||
}
|
||||
if ($order != '') {
|
||||
$this->db->order_by($order,"DESC");
|
||||
}
|
||||
/*if (count($limit>0)) {
|
||||
//$this->db->limit($limit[0],$limit[1]);//example $limit[0] = "0,10" where 0 is for offset and 10 for limit
|
||||
}*/
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
/* update the data to table
|
||||
* $tableName -> Name of the table
|
||||
* $whereData -> Array -> where fields
|
||||
* $updateData -> Array -> updated fields and data
|
||||
* */
|
||||
|
||||
public function updateTable($tableName, $whereData = array(), $updateData = array()) {
|
||||
$this->db->where($whereData);
|
||||
$this->db->update($tableName, $updateData);
|
||||
$return = $this->db->affected_rows() > 0;
|
||||
return $return;
|
||||
//$query->result_array();
|
||||
//$query->num_rows();
|
||||
}
|
||||
|
||||
/* update the data to table
|
||||
* $tableName -> Name of the table
|
||||
* $whereData -> Array -> where fields
|
||||
* $updateData -> Array -> updated fields and data
|
||||
* */
|
||||
|
||||
public function deleteTableData($tableName, $whereData = array()) {
|
||||
// Insert the user record
|
||||
if (isset($whereData) && count($whereData) > 0) {
|
||||
$insert_id = $this->db->delete($tableName, $whereData);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public function get_login_detail($username,$password)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('user');
|
||||
$this->db->where('username',$username);
|
||||
$this->db->where(array('password'=>md5($password),'status'=>1));
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* get a chat user to the system
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* End of file user_groups.php */
|
||||
/* Location: ./application/models/user_groups.php */
|
76
application/models/Commonsql_model.php
Normal file
76
application/models/Commonsql_model.php
Normal file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Commonsql_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function insert_table($tableName, $tableData = array()) {
|
||||
// Insert the user record
|
||||
if (isset($tableData) && count($tableData) > 0) {
|
||||
$this->db->insert($tableName, $tableData);
|
||||
return $this->db->insert_id();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* get the data to table
|
||||
* $tableName -> Name of the table
|
||||
* $whereData -> Array -> where fields
|
||||
* $showField -> Array -> what are the fields need to show
|
||||
* */
|
||||
|
||||
public function selectTable($tableName, $whereData = array(), $showField = array('*'), $order = '') {
|
||||
|
||||
$this->db->select($showField);
|
||||
$this->db->from($tableName);
|
||||
if (!empty($whereData) > 0) {
|
||||
$this->db->where($whereData);
|
||||
}
|
||||
if ($order != '') {
|
||||
$this->db->order_by($order,"DESC");
|
||||
}
|
||||
/*if (count($limit>0)) {
|
||||
//$this->db->limit($limit[0],$limit[1]);//example $limit[0] = "0,10" where 0 is for offset and 10 for limit
|
||||
}*/
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
/* update the data to table
|
||||
* $tableName -> Name of the table
|
||||
* $whereData -> Array -> where fields
|
||||
* $updateData -> Array -> updated fields and data
|
||||
* */
|
||||
|
||||
public function updateTable($tableName, $whereData = array(), $updateData = array()) {
|
||||
$this->db->where($whereData);
|
||||
$this->db->update($tableName, $updateData);
|
||||
$return = $this->db->affected_rows() > 0;
|
||||
return $return;
|
||||
//$query->result_array();
|
||||
//$query->num_rows();
|
||||
}
|
||||
|
||||
/* update the data to table
|
||||
* $tableName -> Name of the table
|
||||
* $whereData -> Array -> where fields
|
||||
* $updateData -> Array -> updated fields and data
|
||||
* */
|
||||
|
||||
public function deleteTableData($tableName, $whereData = array()) {
|
||||
// Insert the user record
|
||||
if (isset($whereData) && count($whereData) > 0) {
|
||||
$insert_id = $this->db->delete($tableName, $whereData);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
21
application/models/Department_model.php
Normal file
21
application/models/Department_model.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Department_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function dep_list()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('department');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
30
application/models/Employee_model.php
Normal file
30
application/models/Employee_model.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Employee_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function list_emp()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('employee');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
function get_emp($id)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('employee');
|
||||
$this->db->where(array('status'=>1,'id'=>$id));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
31
application/models/Faculty.php
Normal file
31
application/models/Faculty.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Semester_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function list_sem()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('Semester');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
function get_sem($id)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('semester');
|
||||
$this->db->where(array('status'=>1,'id'=>$id));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
31
application/models/Faculty_model.php
Normal file
31
application/models/Faculty_model.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Faculty_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function list_fa()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('faculty');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
function get_fac($id)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('faculty');
|
||||
$this->db->where(array('status'=>1,'id'=>$id));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
21
application/models/Role.php
Normal file
21
application/models/Role.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Role_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function list_rol()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('role');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
21
application/models/Role_model.php
Normal file
21
application/models/Role_model.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Role_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function list_rol()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('role');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
31
application/models/Semester_model.php
Normal file
31
application/models/Semester_model.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Semester_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function list_sem()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('Semester');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
function get_sem($id)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('semester');
|
||||
$this->db->where(array('status'=>1,'id'=>$id));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
31
application/models/Student_model.php
Normal file
31
application/models/Student_model.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Student_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function list_stu()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('student');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
function get_stu($id)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('student');
|
||||
$this->db->where(array('status'=>1,'id'=>$id));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
31
application/models/Subject_model.php
Normal file
31
application/models/Subject_model.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
class Subject_model extends CI_Model {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function list_sub()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('subject');
|
||||
$this->db->where(array('status'=>1));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
function get_sub($id)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('subject');
|
||||
$this->db->where(array('status'=>1,'id'=>$id));
|
||||
$query = $this->db->get();
|
||||
//echo $this->db->last_query();exit;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
11
application/models/index.html
Normal file
11
application/models/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/third_party/index.html
vendored
Normal file
11
application/third_party/index.html
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
130
application/views/add_emplayee/add.php
Normal file
130
application/views/add_emplayee/add.php
Normal file
@ -0,0 +1,130 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Add Employee</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Employee</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Employee</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>add_employee" method="post">
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" name="employeename" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Mobile No.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="number" type="text" placeholder="Enter mobile number" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Address
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<textarea name="address" placeholder="Enter address" class="form-control-textarea" rows="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Email
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
<span style="border-radius: 0;border-color: #d2d6de;background-color: #fff; border: 1px solid #d2d6de;padding: 6px 12px; "class="input-group-addon">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</span>
|
||||
<input type="email" class="form-control input-height" name="email" placeholder="Email Address" data-validation="required">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<div class="form-group row">
|
||||
<label class="control-label col-md-3">Profile.
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="img" type="text" placeholder="Enter img" class="form-control input-height" />
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Upload Profile
|
||||
</label>
|
||||
<div class="compose-editor">
|
||||
<input name="img" type="file" placeholder="Enter img" class="default" multiple>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Pincode.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="code" type="text" placeholder="Enter code" class="form-control input-height" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">UserName.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="User" type="text" placeholder="Enter username" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Password.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="Password" type="text" placeholder="Enter Password" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
168
application/views/add_emplayee/edit.php
Normal file
168
application/views/add_emplayee/edit.php
Normal file
@ -0,0 +1,168 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<style>
|
||||
.input-group .input-group-addon {
|
||||
border-radius: 0;
|
||||
border-color: #d2d6de;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d2d6de;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
.form-control{
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 6px 12px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #c2cad8;
|
||||
box-shadow: none!important;
|
||||
outline: 0!important;
|
||||
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
||||
font-size: 14px;
|
||||
line-height: 1.42857;
|
||||
color: #555;
|
||||
}
|
||||
.fa{
|
||||
padding-top:8px;
|
||||
}
|
||||
</style>
|
||||
<div class="page-container">
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Edit Employee</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Edit Employee</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<?php
|
||||
if(isset($emp) && $emp->num_rows()>0)
|
||||
{
|
||||
$e=$emp->row();
|
||||
$eid=$e->id;
|
||||
$name=$e->name;
|
||||
$mobilenumer=$e->mobilenumer;
|
||||
$email=$e->email;
|
||||
$img=$e->img;
|
||||
$address=$e->address;
|
||||
$pincode=$e->pincode;
|
||||
$username=$e->username;
|
||||
$password=$e->password;
|
||||
} ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Edit Employee</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>edit_employees/<?=$eid;?>" method="post" >
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" value="<?=$name;?>" name="employeename" data-required="1" placeholder="Enter patient name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Mobile No.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="mnumber" value="<?=$mobilenumer;?>" type="number" placeholder="Enter mobile number" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Address
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<textarea name="address" placeholder="address" class="form-control-textarea" rows="5"><?=$address;?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Email
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</span>
|
||||
<input type="email" value="<?=$email;?>" class="form-control input-height" name="email" placeholder="Enter Email Address">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<div class="form-group row">
|
||||
<label class="control-label col-md-3">Profile.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="file" name="img" value="<?=$img;?>" type="text" placeholder="Enter img" class="form-control error" />
|
||||
</div>
|
||||
|
||||
</div>-->
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Upload Picture
|
||||
</label>
|
||||
<div class="compose-editor">
|
||||
<input type="file" name="img" value="<?=$img;?>" placeholder="Enter img" class="default" multiple>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Pincode.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="code" value="<?=$pincode;?>" type="text" placeholder="Enter Code" class="form-control error" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">UserName.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="User" value="<?=$username;?>" type="text" placeholder="Enter mobile number" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Password.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="Password" type="text" placeholder="Enter Password" class="form-control input-height" /> </div>
|
||||
<input type="hidden" name="hiddenpass" value="<?=$password;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/footer');?>
|
534
application/views/dashboard.php
Normal file
534
application/views/dashboard.php
Normal file
@ -0,0 +1,534 @@
|
||||
<?php $this->load->view('includes/header');?>
|
||||
|
||||
<!-- start page container -->
|
||||
<div class="page-container">
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Dashboard</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="index.html">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Dashboard</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- start widget -->
|
||||
<div class="state-overview">
|
||||
<div class="row">
|
||||
<div class="col-xl-3 col-md-6 col-12">
|
||||
<div class="info-box bg-blue">
|
||||
<span class="info-box-icon push-bottom"><i class="material-icons">group</i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">Total Students</span>
|
||||
<span class="info-box-number">450</span>
|
||||
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-xl-3 col-md-6 col-12">
|
||||
<div class="info-box bg-orange">
|
||||
<span class="info-box-icon push-bottom"><i class="material-icons">person</i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">Total Faculties</span>
|
||||
<span class="info-box-number">90</span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-xl-3 col-md-6 col-12">
|
||||
<div class="info-box bg-purple">
|
||||
<span class="info-box-icon push-bottom"><i class="material-icons">content_cut</i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">Total Subjects</span>
|
||||
<span class="info-box-number">52</span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-xl-3 col-md-6 col-12">
|
||||
<div class="info-box bg-success">
|
||||
<span class="info-box-icon push-bottom"><i class="material-icons">monetization_on</i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">Total Courses</span>
|
||||
<span class="info-box-number">5</span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end widget -->
|
||||
<!-- chart start -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Projects</header>
|
||||
<div class="tools">
|
||||
<a class="fa fa-repeat btn-color box-refresh" href="javascript:;"></a>
|
||||
<a class="t-collapse btn-color fa fa-chevron-down" href="javascript:;"></a>
|
||||
<a class="t-close btn-color fa fa-times" href="javascript:;"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body no-padding height-9">
|
||||
<div class="row">
|
||||
<canvas id="chartjs_line"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Chart end -->
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-body ">
|
||||
<div class="row table-padding">
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group">
|
||||
<a href="book_appointment_material.html" id="addRow" class="btn btn-info">
|
||||
Add New <i class="fa fa-plus"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn deepPink-bgcolor btn-outline dropdown-toggle" data-toggle="dropdown">Tools
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-print"></i> Print </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-file-pdf-o"></i> Save as PDF </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-file-excel-o"></i> Export to Excel </a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover table-checkable order-column" id="example4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>S.No</th>
|
||||
<th>Date</th>
|
||||
<th>Project Name</th>
|
||||
<th>Subject</th>
|
||||
<th>Student Name</th>
|
||||
<th>Actions </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="odd gradeX">
|
||||
<td>
|
||||
1
|
||||
</td>
|
||||
<td class=""> 12/05/2016 </td>
|
||||
<td>
|
||||
Test 1
|
||||
</td>
|
||||
<td class=""> English </td>
|
||||
<td>
|
||||
<a href="mailto:shuxer@gmail.com"> Dr.Rajesh </a>
|
||||
</td>
|
||||
<td class="center">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
||||
aria-expanded="false"> View
|
||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="odd gradeX">
|
||||
<td>
|
||||
2
|
||||
</td>
|
||||
|
||||
<td class=""> 12/05/2016 </td>
|
||||
<td class=""> Test 2 </td>
|
||||
<td class=""> English </td>
|
||||
<td>
|
||||
<a href="mailto:looper90@gmail.com"> Dr.Sarah Smith </a>
|
||||
</td>
|
||||
<td class="center">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
||||
aria-expanded="false"> View
|
||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="odd gradeX">
|
||||
<td>
|
||||
3
|
||||
</td>
|
||||
|
||||
<td class=""> 12/05/2016 </td>
|
||||
<td class=""> Test 3</td>
|
||||
|
||||
<td class=""> English </td>
|
||||
<td>
|
||||
<a href="mailto:userwow@yahoo.com"> Dr.Rajesh </a>
|
||||
</td>
|
||||
<td class="center">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
||||
aria-expanded="false"> View
|
||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="odd gradeX">
|
||||
<td>
|
||||
4
|
||||
</td>
|
||||
<td class=""> 12/05/2016 </td>
|
||||
|
||||
<td class=""> Test 3 </td>
|
||||
<td class=""> English </td>
|
||||
<td>
|
||||
<a href="mailto:doctormail@gmail.com"> Dr.Megha Trivedi </a>
|
||||
</td>
|
||||
<td class="center">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
||||
aria-expanded="false"> View
|
||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="odd gradeX">
|
||||
<td>
|
||||
5
|
||||
</td>
|
||||
<td class=""> 12/05/2016 </td>
|
||||
<td class=""> Test 4 </td>
|
||||
|
||||
<td class=""> English </td>
|
||||
<td>
|
||||
<a href="mailto:doctormail@gmail.com"> Dr.Sarah Smith </a>
|
||||
</td>
|
||||
<td class="center">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
||||
aria-expanded="false"> View
|
||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="odd gradeX ">
|
||||
<td>
|
||||
6
|
||||
</td>
|
||||
<td class=""> 12/05/2016 </td>
|
||||
|
||||
<td class=""> Test 5 </td>
|
||||
<td class=""> English </td>
|
||||
<td>
|
||||
<a href="mailto:doctormail@gmail.com"> Dr.Megha Trivedi </a>
|
||||
</td>
|
||||
<td class="center">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
||||
aria-expanded="false"> View
|
||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<!-- start chat sidebar -->
|
||||
<div class="chat-sidebar-container" data-close-on-body-click="false">
|
||||
<div class="chat-sidebar">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="#quick_sidebar_tab_1" class="nav-link active tab-icon" data-toggle="tab"> <i class="material-icons">chat</i>Chat
|
||||
<span class="badge badge-danger">4</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#quick_sidebar_tab_3" class="nav-link tab-icon" data-toggle="tab"> <i class="material-icons">settings</i>
|
||||
Settings
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<!-- Start Doctor Chat -->
|
||||
<div class="tab-pane active chat-sidebar-chat in active show" role="tabpanel" id="quick_sidebar_tab_1">
|
||||
<div class="chat-sidebar-list">
|
||||
<div class="chat-sidebar-chat-users slimscroll-style" data-rail-color="#ddd" data-wrapper-class="chat-sidebar-list">
|
||||
<div class="chat-header">
|
||||
<h5 class="list-heading">Online</h5>
|
||||
</div>
|
||||
<ul class="media-list list-items">
|
||||
<li class="media"><img class="media-object" src="img/doc/doc3.jpg" width="35" height="35" alt="...">
|
||||
<i class="online dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">John Deo</h5>
|
||||
<div class="media-heading-sub">Spine Surgeon</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="media">
|
||||
<div class="media-status">
|
||||
<span class="badge badge-success">5</span>
|
||||
</div> <img class="media-object" src="img/doc/doc1.jpg" width="35" height="35" alt="...">
|
||||
<i class="busy dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Rajesh</h5>
|
||||
<div class="media-heading-sub">Director</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="media"><img class="media-object" src="img/doc/doc5.jpg" width="35" height="35" alt="...">
|
||||
<i class="away dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Jacob Ryan</h5>
|
||||
<div class="media-heading-sub">Ortho Surgeon</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="media">
|
||||
<div class="media-status">
|
||||
<span class="badge badge-danger">8</span>
|
||||
</div> <img class="media-object" src="img/doc/doc4.jpg" width="35" height="35" alt="...">
|
||||
<i class="online dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Kehn Anderson</h5>
|
||||
<div class="media-heading-sub">CEO</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="media"><img class="media-object" src="img/doc/doc2.jpg" width="35" height="35" alt="...">
|
||||
<i class="busy dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Sarah Smith</h5>
|
||||
<div class="media-heading-sub">Anaesthetics</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="media"><img class="media-object" src="img/doc/doc7.jpg" width="35" height="35" alt="...">
|
||||
<i class="online dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Vlad Cardella</h5>
|
||||
<div class="media-heading-sub">Cardiologist</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="chat-header">
|
||||
<h5 class="list-heading">Offline</h5>
|
||||
</div>
|
||||
<ul class="media-list list-items">
|
||||
<li class="media">
|
||||
<div class="media-status">
|
||||
<span class="badge badge-warning">4</span>
|
||||
</div> <img class="media-object" src="img/doc/doc6.jpg" width="35" height="35" alt="...">
|
||||
<i class="offline dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Jennifer Maklen</h5>
|
||||
<div class="media-heading-sub">Nurse</div>
|
||||
<div class="media-heading-small">Last seen 01:20 AM</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="media"><img class="media-object" src="img/doc/doc8.jpg" width="35" height="35" alt="...">
|
||||
<i class="offline dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Lina Smith</h5>
|
||||
<div class="media-heading-sub">Ortho Surgeon</div>
|
||||
<div class="media-heading-small">Last seen 11:14 PM</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="media">
|
||||
<div class="media-status">
|
||||
<span class="badge badge-success">9</span>
|
||||
</div> <img class="media-object" src="img/doc/doc9.jpg" width="35" height="35" alt="...">
|
||||
<i class="offline dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Jeff Adam</h5>
|
||||
<div class="media-heading-sub">Compounder</div>
|
||||
<div class="media-heading-small">Last seen 3:31 PM</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="media"><img class="media-object" src="img/doc/doc10.jpg" width="35" height="35" alt="...">
|
||||
<i class="offline dot"></i>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">Anjelina Cardella</h5>
|
||||
<div class="media-heading-sub">Physiotherapist</div>
|
||||
<div class="media-heading-small">Last seen 7:45 PM</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- End Doctor Chat -->
|
||||
<!-- Start Setting Panel -->
|
||||
<div class="tab-pane chat-sidebar-settings" role="tabpanel" id="quick_sidebar_tab_3">
|
||||
<div class="chat-sidebar-settings-list slimscroll-style">
|
||||
<div class="chat-header">
|
||||
<h5 class="list-heading">Layout Settings</h5>
|
||||
</div>
|
||||
<div class="chatpane inner-content ">
|
||||
<div class="settings-list">
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Sidebar Position</div>
|
||||
<div class="setting-set">
|
||||
<select class="sidebar-pos-option form-control input-inline input-sm input-small ">
|
||||
<option value="left" selected="selected">Left</option>
|
||||
<option value="right">Right</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Header</div>
|
||||
<div class="setting-set">
|
||||
<select class="page-header-option form-control input-inline input-sm input-small ">
|
||||
<option value="fixed" selected="selected">Fixed</option>
|
||||
<option value="default">Default</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Footer</div>
|
||||
<div class="setting-set">
|
||||
<select class="page-footer-option form-control input-inline input-sm input-small ">
|
||||
<option value="fixed">Fixed</option>
|
||||
<option value="default" selected="selected">Default</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chat-header">
|
||||
<h5 class="list-heading">Account Settings</h5>
|
||||
</div>
|
||||
<div class="settings-list">
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Notifications</div>
|
||||
<div class="setting-set">
|
||||
<div class="switch">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-1">
|
||||
<input type="checkbox" id="switch-1" class="mdl-switch__input" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Show Online</div>
|
||||
<div class="setting-set">
|
||||
<div class="switch">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-7">
|
||||
<input type="checkbox" id="switch-7" class="mdl-switch__input" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Status</div>
|
||||
<div class="setting-set">
|
||||
<div class="switch">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-2">
|
||||
<input type="checkbox" id="switch-2" class="mdl-switch__input" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">2 Steps Verification</div>
|
||||
<div class="setting-set">
|
||||
<div class="switch">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-3">
|
||||
<input type="checkbox" id="switch-3" class="mdl-switch__input" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chat-header">
|
||||
<h5 class="list-heading">General Settings</h5>
|
||||
</div>
|
||||
<div class="settings-list">
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Location</div>
|
||||
<div class="setting-set">
|
||||
<div class="switch">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-4">
|
||||
<input type="checkbox" id="switch-4" class="mdl-switch__input" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Save Histry</div>
|
||||
<div class="setting-set">
|
||||
<div class="switch">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-5">
|
||||
<input type="checkbox" id="switch-5" class="mdl-switch__input" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<div class="setting-text">Auto Updates</div>
|
||||
<div class="setting-set">
|
||||
<div class="switch">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-6">
|
||||
<input type="checkbox" id="switch-6" class="mdl-switch__input" checked>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end chat sidebar -->
|
||||
</div>
|
||||
<!-- end page container -->
|
||||
<!-- start footer -->
|
||||
<?php $this->load->view('includes/footer');?>
|
248
application/views/department/department_list.php
Normal file
248
application/views/department/department_list.php
Normal file
@ -0,0 +1,248 @@
|
||||
<!-- data tables -->
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!-- start page container -->
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Department List</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Department</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/msg');?>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="card card-topline-red">
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-info"
|
||||
data-toggle="modal" data-target="#mediumModel">Add <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table-scrollable">
|
||||
<table class="table table-hover table-checkable order-column full-width" id="example4" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th> S.No </th>
|
||||
<th> Name </th>
|
||||
<th> Code </th>
|
||||
<th> Action </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($dep) && $dep->num_rows()>0)
|
||||
{
|
||||
$i=1;
|
||||
foreach($dep->result() as $r)
|
||||
{
|
||||
|
||||
//$id=$r->id;
|
||||
$dep_id=$r->dep_id;
|
||||
$depname=$r->name;
|
||||
$depcode=$r->code;
|
||||
//echo $dep_id; exit;
|
||||
?>
|
||||
<tr class="odd gradeX">
|
||||
|
||||
<td><?=$i;?></td>
|
||||
<td><?=$depname;?></td>
|
||||
<td><?=$depcode;?></td>
|
||||
<td>
|
||||
|
||||
<a href="javascript:;" data-id="<?=$dep_id;?>" data-name="<?=$depname;?>" data-code="<?=$depcode;?>"class="editdepclass btn btn-primary btn-xs ">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a href="javascript:;" data-id="<?=$dep_id;?>" class="deletedpeclass btn btn-danger btn-xs ">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i=$i+1;} }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<!-- Midium Model -->
|
||||
<div class="modal fade" id="mediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">Add Department</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>add_department" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-4">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-7">
|
||||
<input type="text" name="depname" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-4">Code
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-7">
|
||||
<input type="text" name="depcode" data-required="1" placeholder="Enter code" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" id="add_department" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
|
||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">Edit Department</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>edit_department" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-4">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-7">
|
||||
<input type="text" name="depname" data-required="1" id="editdepid" placeholder="Enter name" class="form-control input-height">
|
||||
<input type="hidden" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-4">Code
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-7">
|
||||
<input type="text" name="depcode" data-required="1" id="editdepcode" placeholder="Enter code" class="form-control input-height">
|
||||
<input type="hidden" name="hiddendepid" id="hiddendepid">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="delete1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>delete_department" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||
<input type="hidden" name="hiddengffgdtpid" id="hiddenid">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes">
|
||||
<button type="button" class="btn btn-default">No</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/footer');?>
|
||||
<!-- data tables -->
|
||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||
<script>
|
||||
$(".editdepclass").click(function(){
|
||||
$('#editmediumModel').modal('show');
|
||||
var name=$(this).attr('data-name');
|
||||
var code=$(this).attr('data-code');
|
||||
var id=$(this).attr('data-id');
|
||||
$('#editdepid').val(name);
|
||||
$('#editdepcode').val(code);
|
||||
$('#hiddendepid').val(id);
|
||||
});
|
||||
$(".deletedpeclass").click(function(){
|
||||
$('#delete1').modal('show');
|
||||
|
||||
var id=$(this).attr('data-id');
|
||||
//alert(id);
|
||||
$('#hiddenid').val(id);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
146
application/views/employee/employee.php
Normal file
146
application/views/employee/employee.php
Normal file
@ -0,0 +1,146 @@
|
||||
<!-- data tables -->
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!-- start page container -->
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Employee List</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Employee</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/msg');?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-topline-red">
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-info"
|
||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>/add">add <i class="fa fa-plus"></i></a> </button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table-scrollable">
|
||||
<table class="table table-hover table-checkable order-column full-width" id="example4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> S. No</th>
|
||||
<th> Name </th>
|
||||
<th> Mobile Number </th>
|
||||
<th> Email </th>
|
||||
|
||||
<th> Address </th>
|
||||
<th> Action </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($emp) && $emp->num_rows()>0)
|
||||
{
|
||||
$i=1;
|
||||
foreach($emp->result() as $e)
|
||||
{
|
||||
$eid=$e->id;
|
||||
$name=$e->name;
|
||||
$mobilenumer=$e->mobilenumer;
|
||||
$email=$e->email;
|
||||
$img=$e->img;
|
||||
$address=$e->address;
|
||||
?>
|
||||
<tr class="odd gradeX">
|
||||
<td><?=$i;?></td>
|
||||
<td><?=$name;?></td>
|
||||
<td><?=$mobilenumer;?></td>
|
||||
<td><?=$email;?></td>
|
||||
|
||||
<td><?=$address;?></td>
|
||||
<td>
|
||||
|
||||
<a href="<?=base_url();?>edit_employees/<?=$eid;?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a data-id="<?=$eid;?>" class="editemployeeclass btn btn-danger btn-xs">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>deleted_employee" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||
|
||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes">
|
||||
<button type="button" class="btn btn-default">No</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
||||
<!-- data tables -->
|
||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||
<script>
|
||||
$(".editemployeeclass").click(function(){
|
||||
$('#editmediumModel').modal('show');
|
||||
var id=$(this).attr('data-id');
|
||||
//alert(id);
|
||||
$('#hiddenid').val(id);
|
||||
});
|
||||
</script>
|
8
application/views/errors/cli/error_404.php
Normal file
8
application/views/errors/cli/error_404.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
8
application/views/errors/cli/error_db.php
Normal file
8
application/views/errors/cli/error_db.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
21
application/views/errors/cli/error_exception.php
Normal file
21
application/views/errors/cli/error_exception.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
8
application/views/errors/cli/error_general.php
Normal file
8
application/views/errors/cli/error_general.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
21
application/views/errors/cli/error_php.php
Normal file
21
application/views/errors/cli/error_php.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
11
application/views/errors/cli/index.html
Normal file
11
application/views/errors/cli/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
64
application/views/errors/html/error_404.php
Normal file
64
application/views/errors/html/error_404.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
64
application/views/errors/html/error_db.php
Normal file
64
application/views/errors/html/error_db.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
32
application/views/errors/html/error_exception.php
Normal file
32
application/views/errors/html/error_exception.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
64
application/views/errors/html/error_general.php
Normal file
64
application/views/errors/html/error_general.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
33
application/views/errors/html/error_php.php
Normal file
33
application/views/errors/html/error_php.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
11
application/views/errors/html/index.html
Normal file
11
application/views/errors/html/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/views/errors/index.html
Normal file
11
application/views/errors/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
133
application/views/faculty/add_faculty.php
Normal file
133
application/views/faculty/add_faculty.php
Normal file
@ -0,0 +1,133 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Add Faculty</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Faculty</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Faculty</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>add_faculty" method="post">
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Faculty Id
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" name="code" data-required="1" placeholder="Enter Your Id" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="name" type="text" placeholder="Enter Your Name" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Email
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
|
||||
<input type="email" class="form-control input-height" name="email" placeholder="Enter Your Email" data-validation="required">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Mobile Number
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="number" type="text" placeholder="Enter Your Mobile Number" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Date Of Birth
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<div class="input-append date" id="dp3">
|
||||
<input name="date" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required">
|
||||
<!--<span class="add-on"><i class="fa fa-calendar"></i></span>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Gender
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<select class="form-control input-height" name="gender">
|
||||
<option value="">Select...</option>
|
||||
<option value="Category 1">Male</option>
|
||||
<option value="Category 2">Female</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Address
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<textarea name="address" placeholder="address" class="form-control" rows="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Designation
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="desigation" type="text" placeholder="Enter Your Designation" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Profile Image
|
||||
</label>
|
||||
<div class="col-md-5 compose-editor">
|
||||
<input name="f_img" type="file" class="form-control default" multiple>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
165
application/views/faculty/edit_faculty.php
Normal file
165
application/views/faculty/edit_faculty.php
Normal file
@ -0,0 +1,165 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!--<style>
|
||||
.input-group .input-group-addon {
|
||||
border-radius: 0;
|
||||
border-color: #d2d6de;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d2d6de;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
.form-control{
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 6px 12px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #c2cad8;
|
||||
box-shadow: none!important;
|
||||
outline: 0!important;
|
||||
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
||||
font-size: 14px;
|
||||
line-height: 1.42857;
|
||||
color: #555;
|
||||
}
|
||||
.fa{
|
||||
padding-top:8px;
|
||||
}
|
||||
</style>-->
|
||||
<div class="page-container">
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Edit Faculty</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Edit Faculty</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<?php
|
||||
if(isset($fac) && $fac->num_rows()>0)
|
||||
{
|
||||
$f=$fac->row();
|
||||
$id=$f->id;
|
||||
$faculty=$f->code;
|
||||
$name=$f->name;
|
||||
$email=$f->email;
|
||||
$number=$f->number;
|
||||
$dob=$f->dob;
|
||||
$gender=$f->gender;
|
||||
$address=$f->address;
|
||||
$desi=$f->desi;
|
||||
$f_img=$f->f_img;
|
||||
|
||||
} ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Edit Faculty</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>edit_faculty/<?=$id;?>" method="post" >
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Faculty
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" value="<?=$faculty;?>" name="code" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" value="<?=$name;?>" name="name" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Email
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
<span style="border-radius: 0;border-color: #d2d6de;background-color: #fff; border: 1px solid #d2d6de;padding: 6px 12px; "class="input-group-addon">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</span>
|
||||
<input type="email" value="<?=$email;?>"class="form-control input-height" name="email" placeholder="Email Address" data-validation="required">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Mobile Number.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="number" value="<?=$number;?>" type="text" placeholder="Enter Staff" class="form-control error" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Date Of Birth
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<div class="input-append date" id="dp3">
|
||||
<input name="dob" value="<?=$dob;?>" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required">
|
||||
<!--<span class="add-on"><i class="fa fa-calendar"></i></span>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Gender
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<select class="form-control input-height" name="gender">
|
||||
<option value="">Select...</option>
|
||||
<option value="Category 1">Male</option>
|
||||
<option value="Category 2">Female</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Address
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<textarea name="address" value="<?=$address;?>" placeholder="address" class="form-control-textarea" rows="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Profile Img
|
||||
</label>
|
||||
<div class="compose-editor">
|
||||
<input type="file" name="f_img" value="<?=$f_img;?>" placeholder="Enter img" class="form-control error">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/footer');?>
|
148
application/views/faculty/faculty_list.php
Normal file
148
application/views/faculty/faculty_list.php
Normal file
@ -0,0 +1,148 @@
|
||||
<!-- data tables -->
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!-- start page container -->
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Faculty List</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Faculty</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/msg');?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-topline-red">
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-info"
|
||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_faculty">add <i class="fa fa-plus"></i></a> </button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table-scrollable">
|
||||
<table class="table table-hover table-checkable order-column full-width" id="example4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> S.No</th>
|
||||
<th> ID </th>
|
||||
<th> Name </th>
|
||||
<th> Email</th>
|
||||
<th> Designation </th>
|
||||
<th> Action </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($fac) && $fac->num_rows()>0)
|
||||
{
|
||||
$i=1;
|
||||
foreach($fac->result() as $f)
|
||||
{
|
||||
$id=$f->id;
|
||||
$faculty=$f->code;
|
||||
$name=$f->name;
|
||||
$email=$f->email;
|
||||
//$number=$f->number;
|
||||
//$dob=$f->dob;
|
||||
//$gender=$f->gender;
|
||||
//$address=$f->address;
|
||||
$desi=$f->desigation;
|
||||
//$f_img=$f->f_img;
|
||||
?>
|
||||
<tr class="odd gradeX">
|
||||
<td><?=$i;?></td>
|
||||
<td><?=$faculty;?></td>
|
||||
<td><?=$name;?></td>
|
||||
<td><?=$email;?></td>
|
||||
|
||||
<td><?=$desi;?></td>
|
||||
<td>
|
||||
|
||||
<a href="<?=base_url();?>edit_faculty/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
} }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>deleted_subject" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||
|
||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes">
|
||||
<button type="button" class="btn btn-default">No</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
||||
<!-- data tables -->
|
||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||
<script>
|
||||
$(".editsemesterclass").click(function(){
|
||||
$('#editmediumModel').modal('show');
|
||||
var id=$(this).attr('data-id');
|
||||
//alert(id);
|
||||
$('#hiddenid').val(id);
|
||||
});
|
||||
</script>
|
39
application/views/includes/footer.php
Normal file
39
application/views/includes/footer.php
Normal file
@ -0,0 +1,39 @@
|
||||
<!-- start footer -->
|
||||
<div class="page-footer">
|
||||
<div class="page-footer-inner"> 2017 © RedStar Hospital Theme By
|
||||
<a href="mailto:redstartheme@gmail.com" target="_top" class="makerCss">RT Theme maker</a>
|
||||
</div>
|
||||
<div class="scroll-to-top">
|
||||
<i class="icon-arrow-up"></i>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end footer -->
|
||||
</div>
|
||||
<!-- start js include path -->
|
||||
<script src="<?=base_url();?>/assets/jquery.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/popper/popper.js"></script>
|
||||
<script src="<?=base_url();?>/assets/jquery.blockui.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/jquery.slimscroll.js"></script>
|
||||
|
||||
<!-- bootstrap -->
|
||||
<script src="<?=base_url();?>/assets/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/bootstrap-switch/js/bootstrap-switch.min.js"></script>
|
||||
<!-- counterup -->
|
||||
<script src="<?=base_url();?>/assets/counterup/jquery.waypoints.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/counterup/jquery.counterup.min.js"></script>
|
||||
<!-- Common js-->
|
||||
<script src="<?=base_url();?>/assets/app.js"></script>
|
||||
<script src="<?=base_url();?>/assets/layout.js"></script>
|
||||
<script src="<?=base_url();?>/assets/theme-color.js"></script>
|
||||
<!-- material -->
|
||||
<script src="<?=base_url();?>/assets/material/material.min.js"></script>
|
||||
<!-- chart js -->
|
||||
<script src="<?=base_url();?>/assets/chart-js/Chart.bundle.js"></script>
|
||||
<script src="<?=base_url();?>/assets/chart-js/utils.js"></script>
|
||||
<script src="<?=base_url();?>/assets/chart-js/home-data.js"></script>
|
||||
<!-- end js include path -->
|
||||
</body>
|
||||
|
||||
|
||||
<!-- Mirrored from radixtouch.in/templates/admin/redstar/source/light/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Aug 2019 14:04:55 GMT -->
|
||||
</html>
|
256
application/views/includes/header.php
Normal file
256
application/views/includes/header.php
Normal file
@ -0,0 +1,256 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<!-- BEGIN HEAD -->
|
||||
|
||||
|
||||
<!-- Mirrored from radixtouch.in/templates/admin/redstar/source/light/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Aug 2019 14:03:24 GMT -->
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
||||
<meta name="description" content="Responsive Admin Template" />
|
||||
<meta name="author" content="RedstarHospital" />
|
||||
<title>Student</title>
|
||||
<!-- google font -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
|
||||
<!-- icons -->
|
||||
<link href="<?=base_url();?>/assets/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="<?=base_url();?>/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||
<!--bootstrap -->
|
||||
|
||||
<link href="<?=base_url();?>/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- Material Design Lite CSS -->
|
||||
<link rel="stylesheet" href="<?=base_url();?>/assets/material/material.min.css">
|
||||
<link rel="stylesheet" href="css/material_style.css">
|
||||
<!-- Theme Styles -->
|
||||
<link href="<?=base_url();?>css/theme_style.css" rel="stylesheet" id="rt_style_components" type="text/css" />
|
||||
<link href="<?=base_url();?>css/plugins.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="<?=base_url();?>css/style.css" rel="stylesheet" type="text/css" />
|
||||
<link href="<?=base_url();?>css/responsive.css" rel="stylesheet" type="text/css" />
|
||||
<link href="<?=base_url();?>css/theme-color.css" rel="stylesheet" type="text/css" />
|
||||
<!-- favicon -->
|
||||
<link rel="shortcut icon" href="assets/img/logo.png" />
|
||||
</head>
|
||||
<!-- END HEAD -->
|
||||
|
||||
<body class="page-header-fixed sidemenu-closed-hidelogo page-content-white page-md header-white white-sidebar-color logo-indigo">
|
||||
<div class="page-wrapper">
|
||||
<!-- start header -->
|
||||
<div class="page-header navbar navbar-fixed-top">
|
||||
<div class="page-header-inner ">
|
||||
<!-- logo start -->
|
||||
<div style="background: #f5f5f5;" class="page-logo">
|
||||
<img src="<?=base_url();?>assets/img/logo5.png" alt="logo" class="logo-default" />
|
||||
</div>
|
||||
<!-- logo end -->
|
||||
<ul class="nav navbar-nav navbar-left in">
|
||||
<li><a href="#" class="menu-toggler sidebar-toggler"><i class="icon-menu"></i></a></li>
|
||||
</ul>
|
||||
<form class="search-form-opened" action="#" method="GET">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search..." name="query">
|
||||
<span class="input-group-btn">
|
||||
<a href="javascript:;" class="btn submit">
|
||||
<i class="icon-magnifier"></i>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<!-- start mobile menu -->
|
||||
<a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span></span>
|
||||
</a>
|
||||
<!-- end mobile menu -->
|
||||
<!-- start header menu -->
|
||||
<div class="top-menu">
|
||||
<ul class="nav navbar-nav pull-right">
|
||||
<!-- start language menu -->
|
||||
|
||||
<!-- end language menu -->
|
||||
<!-- start notification dropdown -->
|
||||
<li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar">
|
||||
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
|
||||
<i class="fa fa-bell-o"></i>
|
||||
<span class="badge headerBadgeColor1"> 6 </span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="external">
|
||||
<h3><span class="bold">Notifications</span></h3>
|
||||
<span class="notification-label purple-bgcolor">New 6</span>
|
||||
</li>
|
||||
<li>
|
||||
<ul class="dropdown-menu-list small-slimscroll-style" data-handle-color="#637283">
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<span class="time">just now</span>
|
||||
<span class="details">
|
||||
<span class="notification-icon circle deepPink-bgcolor"><i class="fa fa-check"></i></span>
|
||||
Congratulations!. </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<span class="time">3 mins</span>
|
||||
<span class="details">
|
||||
<span class="notification-icon circle purple-bgcolor"><i class="fa fa-user o"></i></span>
|
||||
<b>John Micle </b>is now following you. </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<span class="time">7 mins</span>
|
||||
<span class="details">
|
||||
<span class="notification-icon circle blue-bgcolor"><i class="fa fa-comments-o"></i></span>
|
||||
<b>Sneha Jogi </b>sent you a message. </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<span class="time">12 mins</span>
|
||||
<span class="details">
|
||||
<span class="notification-icon circle pink"><i class="fa fa-heart"></i></span>
|
||||
<b>Ravi Patel </b>like your photo. </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<span class="time">15 mins</span>
|
||||
<span class="details">
|
||||
<span class="notification-icon circle yellow"><i class="fa fa-warning"></i></span> Warning! </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<span class="time">10 hrs</span>
|
||||
<span class="details">
|
||||
<span class="notification-icon circle red"><i class="fa fa-times"></i></span> Application error. </span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="dropdown-menu-footer">
|
||||
<a href="javascript:void(0)"> All notifications </a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- end notification dropdown -->
|
||||
<!-- start message dropdown -->
|
||||
<li class="dropdown dropdown-extended dropdown-inbox" id="header_inbox_bar">
|
||||
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<span class="badge headerBadgeColor2"> 2 </span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="external">
|
||||
<h3><span class="bold">Messages</span></h3>
|
||||
<span class="notification-label cyan-bgcolor">New 2</span>
|
||||
</li>
|
||||
<li>
|
||||
<ul class="dropdown-menu-list small-slimscroll-style" data-handle-color="#637283">
|
||||
<li>
|
||||
<a href="#">
|
||||
<span class="photo">
|
||||
<img src="img/doc/doc2.jpg" class="img-circle" alt=""> </span>
|
||||
<span class="subject">
|
||||
<span class="from"> Sarah Smith </span>
|
||||
<span class="time">Just Now </span>
|
||||
</span>
|
||||
<span class="message"> Jatin I found you on LinkedIn... </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<span class="photo">
|
||||
<img src="img/doc/doc3.jpg" class="img-circle" alt=""> </span>
|
||||
<span class="subject">
|
||||
<span class="from"> John Deo </span>
|
||||
<span class="time">16 mins </span>
|
||||
</span>
|
||||
<span class="message"> Fwd: Important Notice Regarding Your Domain Name... </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<span class="photo">
|
||||
<img src="img/doc/doc1.jpg" class="img-circle" alt=""> </span>
|
||||
<span class="subject">
|
||||
<span class="from"> Rajesh </span>
|
||||
<span class="time">2 hrs </span>
|
||||
</span>
|
||||
<span class="message"> pls take a print of attachments. </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<span class="photo">
|
||||
<img src="img/doc/doc8.jpg" class="img-circle" alt=""> </span>
|
||||
<span class="subject">
|
||||
<span class="from"> Lina Smith </span>
|
||||
<span class="time">40 mins </span>
|
||||
</span>
|
||||
<span class="message"> Apply for Ortho Surgeon </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<span class="photo">
|
||||
<img src="img/doc/doc5.jpg" class="img-circle" alt=""> </span>
|
||||
<span class="subject">
|
||||
<span class="from"> Jacob Ryan </span>
|
||||
<span class="time">46 mins </span>
|
||||
</span>
|
||||
<span class="message"> Request for leave application. </span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="dropdown-menu-footer">
|
||||
<a href="#"> All Messages </a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- end message dropdown -->
|
||||
<!-- start manage user dropdown -->
|
||||
<li class="dropdown dropdown-user">
|
||||
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
|
||||
<img alt="" class="img-circle " src="assets/img/icon.png" />
|
||||
<span class="username username-hide-on-mobile"> Student </span>
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-default">
|
||||
<li>
|
||||
<a href="<?=base_url();?>profile">
|
||||
<i class="icon-user"></i> Profile </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-settings"></i> Settings
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-directions"></i> Help
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"> </li>
|
||||
<li>
|
||||
<a href="lock_screen.html">
|
||||
<i class="icon-lock"></i> Lock
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="login.html">
|
||||
<i class="icon-logout"></i> Log Out </a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- end manage user dropdown -->
|
||||
<li class="dropdown dropdown-quick-sidebar-toggler">
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end header -->
|
11
application/views/includes/msg.php
Normal file
11
application/views/includes/msg.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php if($this->session->userdata('suc')) { ?>
|
||||
<div class="alert alert-success alert-dismissible" role="alert" id="msg">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<strong><span class="glyphicon glyphicon-ok"></span></strong><?php echo $this->session->userdata('suc'); echo $this->session->unset_userdata('suc'); ?>
|
||||
</div>
|
||||
<?php } if($this->session->userdata('err')) { ?>
|
||||
<div class="alert alert-danger alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<strong><span class="glyphicon glyphicon-remove"></span></strong> <?php echo $this->session->userdata('err'); echo $this->session->unset_userdata('err'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
93
application/views/includes/sidebar.php
Normal file
93
application/views/includes/sidebar.php
Normal file
@ -0,0 +1,93 @@
|
||||
|
||||
<!-- start sidebar menu -->
|
||||
<div class="sidebar-container">
|
||||
<div class="sidemenu-container navbar-collapse collapse fixed-menu">
|
||||
<div id="remove-scroll" class="left-sidemenu">
|
||||
<ul class="sidemenu page-header-fixed slimscroll-style" data-keep-expanded="false" data-auto-scroll="true"
|
||||
data-slide-speed="200" style="padding-top: 20px">
|
||||
<li class="sidebar-toggler-wrapper hide">
|
||||
<div class="sidebar-toggler">
|
||||
<span></span>
|
||||
</div>
|
||||
</li>
|
||||
<!--<li class="sidebar-user-panel">
|
||||
<div class="user-panel">
|
||||
|
||||
<div class="pull-left info">
|
||||
<p> Hi Welcome</p>
|
||||
<a href="#"><i class="fa fa-circle user-online"></i><span class="txtOnline"> Online</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</li>-->
|
||||
|
||||
<li class="nav-item start active open">
|
||||
<a href="<?=base_url();?>dashboard" class="nav-link nav-toggle">
|
||||
<i class="material-icons">dashboard</i>
|
||||
<span class="title">Dashboard</span>
|
||||
<span class="selected"></span>
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link nav-toggle">
|
||||
<i class="material-icons">group</i>
|
||||
<span class="title">Human Resource</span>
|
||||
<span class="arrow"></span>
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li class="nav-item ">
|
||||
<a href="<?=base_url();?>roles" class="nav-link ">
|
||||
<span class="title">Role</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item ">
|
||||
<a href="<?=base_url();?>employee" class="nav-link ">
|
||||
<span class="title">Employee</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-item ">
|
||||
<a href="<?=base_url();?>department" class="nav-link nav-toggle">
|
||||
<i class="material-icons">gamepad</i>
|
||||
<span class="title">Department & Course</span></a>
|
||||
|
||||
</li>
|
||||
<li class="nav-item ">
|
||||
<a href="<?=base_url();?>semester" class="nav-link nav-toggle">
|
||||
<i class="material-icons">school</i>
|
||||
<span class="title">Semester</span></a>
|
||||
|
||||
</li>
|
||||
<li class="nav-item ">
|
||||
<a href="<?=base_url();?>subject" class="nav-link nav-toggle">
|
||||
<i class="material-icons"> local_library</i>
|
||||
<span class="title">Subject</span></a>
|
||||
|
||||
</li>
|
||||
<li class="nav-item ">
|
||||
<a href="<?=base_url();?>faculty" class="nav-link nav-toggle">
|
||||
<i class="material-icons">account_circle</i>
|
||||
<span class="title">Faculty</span></a>
|
||||
|
||||
</li>
|
||||
<li class="nav-item ">
|
||||
<a href="<?=base_url();?>student" class="nav-link nav-toggle">
|
||||
<i class="material-icons">group</i>
|
||||
<span class="title">Student</span></a>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end sidebar menu -->
|
||||
|
11
application/views/index.html
Normal file
11
application/views/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
115
application/views/login.php
Normal file
115
application/views/login.php
Normal file
@ -0,0 +1,115 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
.input-group .input-group-addon {
|
||||
border-radius: 0;
|
||||
border-color: #d2d6de;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d2d6de;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
.form-control{
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 6px 12px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #c2cad8;
|
||||
box-shadow: none!important;
|
||||
outline: 0!important;
|
||||
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
||||
font-size: 14px;
|
||||
line-height: 1.42857;
|
||||
color: #555;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Mirrored from radixtouch.in/templates/admin/redstar/source/light/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Aug 2019 14:06:07 GMT -->
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
||||
<meta name="description" content="Responsive Admin Template" />
|
||||
<meta name="author" content="RedstarHospital" />
|
||||
<title>Student</title>
|
||||
<!-- google font -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
|
||||
<!-- icons -->
|
||||
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="stylesheet" href="<?=base_url();?>/assets/iconic/css/material-design-iconic-font.min.css">
|
||||
<!-- bootstrap -->
|
||||
<link href="<?=base_url();?>/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- style -->
|
||||
<link rel="stylesheet" href="css/extra_pages.css">
|
||||
<!-- favicon -->
|
||||
<!--<link rel="shortcut icon" href="<?=base_url();?>assets/img/side/.png">-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="limiter">
|
||||
<div class="container-login100 page-background">
|
||||
<div class="wrap-login100">
|
||||
<form class="login100-form validate-form" action="<?=base_url()?>welcome/dashboard" method="post">
|
||||
<span class="login100-form-logo">
|
||||
<!--<img alt="" src="<?=base_url();?>assets/img/logo3.png">-->
|
||||
</span>
|
||||
<span class="login100-form-title p-b-34 p-t-27">
|
||||
Log in
|
||||
</span>
|
||||
<div class="wrap-input100 validate-input" data-validate="Enter username">
|
||||
<input class="input100" type="text" name="username" placeholder="Username">
|
||||
<span class="focus-input100" data-placeholder=""></span>
|
||||
</div>
|
||||
<div class="wrap-input100 validate-input" data-validate="Enter password">
|
||||
<input class="input100" type="password" name="pass" placeholder="Password">
|
||||
<span class="focus-input100" ></span>
|
||||
</div>
|
||||
<!--<div class="form-group row">
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-user-circle"></i>
|
||||
</span>
|
||||
<input class="form-control input-height" name="mail" placeholder=""> </div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-key"></i>
|
||||
</span>
|
||||
<input class="form-control input-height" name="mail" placeholder=""> </div>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="contact100-form-checkbox">
|
||||
<input class="input-checkbox100" id="ckb1" type="checkbox" name="remember-me" value="1">
|
||||
<label class="label-checkbox100" for="ckb1">
|
||||
Remember me
|
||||
</label>
|
||||
</div>
|
||||
<div class="container-login100-form-btn">
|
||||
<button type="submit" class="login100-form-btn">
|
||||
Login
|
||||
</button>
|
||||
</div>
|
||||
<div class="text-center p-t-30">
|
||||
<a class="txt1" href="forgot_password.html">
|
||||
Forgot Password?
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- start js include path -->
|
||||
<script src="../assets/jquery.min.js"></script>
|
||||
<!-- bootstrap -->
|
||||
<script src="../assets/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="../assets/login.js"></script>
|
||||
<!-- end js include path -->
|
||||
</body>
|
||||
|
||||
|
||||
<!-- Mirrored from radixtouch.in/templates/admin/redstar/source/light/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Aug 2019 14:06:08 GMT -->
|
||||
</html>
|
68
application/views/profile.php
Normal file
68
application/views/profile.php
Normal file
@ -0,0 +1,68 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">My Profile</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">My Profile</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>My Profile</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>add_profile" method="post">
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">UserName.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="user" type="text" placeholder="" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Password.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="password" type="text" placeholder="" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
224
application/views/roles/role_list.php
Normal file
224
application/views/roles/role_list.php
Normal file
@ -0,0 +1,224 @@
|
||||
<!-- data tables -->
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!-- start page container -->
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Roles List</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Roles</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/msg');?>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="card card-topline-red">
|
||||
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-info"
|
||||
data-toggle="modal" data-target="#mediumModel">Add <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table-scrollable">
|
||||
<table class="table table-hover table-checkable order-column full-width" id="example4" style="width:128px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> S.No </th>
|
||||
<th> Name </th>
|
||||
<th> Action </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($rol) && $rol->num_rows()>0)
|
||||
{
|
||||
$i=1;
|
||||
foreach($rol->result() as $r)
|
||||
{
|
||||
|
||||
//$id=$r->id;
|
||||
$role_id=$r->role_id;
|
||||
$rolename=$r->name;
|
||||
?>
|
||||
<tr class="odd gradeX">
|
||||
|
||||
<td><?=$i;?></td>
|
||||
<td><?=$rolename;?></td>
|
||||
<td>
|
||||
<a href="javascript:;" data-id="<?=$role_id;?>" data-name="<?=$rolename;?>" class="editroleclass btn btn-primary btn-xs ">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a href="javascript:;" data-id="<?=$role_id;?>" class="deleteroleclass btn btn-danger btn-xs ">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i=$i+1;} }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<!-- Midium Model -->
|
||||
<div class="modal fade" id="mediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">Add Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>add_role" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-4">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-7">
|
||||
<input type="text" name="rolename" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" id="add_role" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
|
||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">Edit Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>edit_role" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-4">Role Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-7">
|
||||
<input type="text" name="rolename" data-required="1" id="editroleid" placeholder="Enter name" class="form-control input-height">
|
||||
<input type="hidden" name="hiddenroleid" id="hiddenroleid">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="delete1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>delete_role" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||
<input type="hidden" name="hiddengffgdtpid" id="hiddenid">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes">
|
||||
<button type="button" class="btn btn-default">No</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/footer');?>
|
||||
<!-- data tables -->
|
||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||
<script>
|
||||
$(".editroleclass").click(function(){
|
||||
$('#editmediumModel').modal('show');
|
||||
var name=$(this).attr('data-name');
|
||||
var id=$(this).attr('data-id');
|
||||
$('#editroleid').val(name);
|
||||
$('#hiddenroleid').val(id);
|
||||
});
|
||||
$(".deleteroleclass").click(function(){
|
||||
$('#delete1').modal('show');
|
||||
|
||||
var id=$(this).attr('data-id');
|
||||
//alert(id);
|
||||
$('#hiddenid').val(id);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
77
application/views/semester/add_semester.php
Normal file
77
application/views/semester/add_semester.php
Normal file
@ -0,0 +1,77 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Add Semester</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Semester</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Semester</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>add_semester" method="post">
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" name="name" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Hod.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="hod" type="text" placeholder="Enter hod" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Staff
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="staff" type="text" placeholder="Enter staff" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
107
application/views/semester/edit_semester.php
Normal file
107
application/views/semester/edit_semester.php
Normal file
@ -0,0 +1,107 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!--<style>
|
||||
.input-group .input-group-addon {
|
||||
border-radius: 0;
|
||||
border-color: #d2d6de;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d2d6de;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
.form-control{
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 6px 12px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #c2cad8;
|
||||
box-shadow: none!important;
|
||||
outline: 0!important;
|
||||
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
||||
font-size: 14px;
|
||||
line-height: 1.42857;
|
||||
color: #555;
|
||||
}
|
||||
.fa{
|
||||
padding-top:8px;
|
||||
}
|
||||
</style>-->
|
||||
<div class="page-container">
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Edit Semester</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Edit Semester</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<?php
|
||||
if(isset($sem) && $sem->num_rows()>0)
|
||||
{
|
||||
$s=$sem->row();
|
||||
$id=$s->id;
|
||||
$name=$s->name;
|
||||
$hod=$s->hod;
|
||||
$staff=$s->staff;
|
||||
|
||||
} ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Edit Semester</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>edit_semester/<?=$id;?>" method="post" >
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" value="<?=$name;?>" name="name" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Hod.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="hod" value="<?=$hod;?>" type="text" placeholder="Enter hod" class="form-control error" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Staff.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="staff" value="<?=$staff;?>" type="text" placeholder="Enter Staff" class="form-control error" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/footer');?>
|
140
application/views/semester/semester_list.php
Normal file
140
application/views/semester/semester_list.php
Normal file
@ -0,0 +1,140 @@
|
||||
<!-- data tables -->
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!-- start page container -->
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Semester List</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Semester</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/msg');?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-topline-red">
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-info"
|
||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_semester">add <i class="fa fa-plus"></i></a> </button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table-scrollable">
|
||||
<table class="table table-hover table-checkable order-column full-width" id="example4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> S.No</th>
|
||||
<th> Name </th>
|
||||
<th> Hod </th>
|
||||
<th> Staff </th>
|
||||
<th> Action </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($sem) && $sem->num_rows()>0)
|
||||
{
|
||||
$i=1;
|
||||
foreach($sem->result() as $s)
|
||||
{
|
||||
$id=$s->id;
|
||||
$name=$s->name;
|
||||
$hod=$s->hod;
|
||||
$staff=$s->staff;
|
||||
?>
|
||||
<tr class="odd gradeX">
|
||||
<td><?=$i;?></td>
|
||||
<td><?=$name;?></td>
|
||||
<td><?=$hod;?></td>
|
||||
<td><?=$staff;?></td>
|
||||
|
||||
<td>
|
||||
|
||||
<a href="<?=base_url();?>edit_semester/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
} }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>deleted_semester" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||
|
||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes">
|
||||
<button type="button" class="btn btn-default">No</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
||||
<!-- data tables -->
|
||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||
<script>
|
||||
$(".editsemesterclass").click(function(){
|
||||
$('#editmediumModel').modal('show');
|
||||
var id=$(this).attr('data-id');
|
||||
//alert(id);
|
||||
$('#hiddenid').val(id);
|
||||
});
|
||||
</script>
|
123
application/views/student/add_student.php
Normal file
123
application/views/student/add_student.php
Normal file
@ -0,0 +1,123 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Add Student</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Student</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Student</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>add_student" method="post">
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3"> Student Id.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" name="faculty" data-required="1" placeholder="Enter Student Id" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="name" type="text" placeholder="Enter Student Name" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Mobile No.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="number" type="text" placeholder="Mobile Number" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Date Of Birth
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<div class="input-append date" id="dp3">
|
||||
<input type="date" name="date" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required">
|
||||
<!--<span class="add-on"><i class="fa fa-calendar"></i></span>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Gender
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<select class="form-control input-height" name="gender">
|
||||
<option value="">Select...</option>
|
||||
<option value="Male">Male</option>
|
||||
<option value="Female">Female</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Address
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<textarea name="address" placeholder=" Enter Address" class="form-control" rows="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Department.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="department" type="text" placeholder="Enter department" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Profile Img
|
||||
</label>
|
||||
<div class="col-md-5 compose-editor">
|
||||
<input name="s_img" type="file" class="form-control default" multiple>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
137
application/views/student/edit_student.php
Normal file
137
application/views/student/edit_student.php
Normal file
@ -0,0 +1,137 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!--<style>
|
||||
.input-group .input-group-addon {
|
||||
border-radius: 0;
|
||||
border-color: #d2d6de;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d2d6de;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
.form-control{
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 6px 12px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #c2cad8;
|
||||
box-shadow: none!important;
|
||||
outline: 0!important;
|
||||
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
||||
font-size: 14px;
|
||||
line-height: 1.42857;
|
||||
color: #555;
|
||||
}
|
||||
.fa{
|
||||
padding-top:8px;
|
||||
}
|
||||
</style>-->
|
||||
<div class="page-container">
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Edit Student</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Edit Student</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<?php
|
||||
if(isset($stu) && $stu->num_rows()>0)
|
||||
{
|
||||
$s=$stu->row();
|
||||
$id=$s->id;
|
||||
$name=$s->name;
|
||||
$number=$s->number;
|
||||
$address=$s->address;
|
||||
$department=$s->department;
|
||||
$gender=$s->gender;
|
||||
$s_img=$s->s_img;
|
||||
|
||||
} ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Edit Student</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>edit_student/<?=$id;?>" method="post" >
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" value="<?=$name;?>" name="name" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Mobile.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="number" value="<?=$number;?>" type="text" placeholder="Enter hod" class="form-control error" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Address
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<textarea name="address" placeholder="address" class="form-control-textarea" rows="5"><?=$address;?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Department.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="department" value="<?=$department;?>" type="text" placeholder="Enter hod" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Gender
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<select class="form-control input-height" name="gender">
|
||||
<option value="">Select...</option>
|
||||
<option value="Male">Male</option>
|
||||
<option value="Female">Female</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Profile Img
|
||||
</label>
|
||||
<div class="compose-editor">
|
||||
<input name="s_img" value="<?=$s_img;?>" type="file" class="default" multiple>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/footer');?>
|
146
application/views/student/student_list.php
Normal file
146
application/views/student/student_list.php
Normal file
@ -0,0 +1,146 @@
|
||||
<!-- data tables -->
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!-- start page container -->
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Student List</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Student</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/msg');?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-topline-red">
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-info"
|
||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_student">add <i class="fa fa-plus"></i></a> </button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table-scrollable">
|
||||
<table class="table table-hover table-checkable order-column full-width" id="example4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> S.No</th>
|
||||
<th> Name </th>
|
||||
<th> Mobile Number </th>
|
||||
<th> Department </th>
|
||||
<th> Gender </th>
|
||||
<th> Action </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($stu) && $stu->num_rows()>0)
|
||||
{
|
||||
$i=1;
|
||||
foreach($stu->result() as $s)
|
||||
{
|
||||
$id=$s->id;
|
||||
$name=$s->name;
|
||||
$number=$s->number;
|
||||
$address=$s->address;
|
||||
$department=$s->department;
|
||||
$gender=$s->gender;
|
||||
$s_img=$s->s_img;
|
||||
?>
|
||||
<tr class="odd gradeX">
|
||||
<td><?=$i;?></td>
|
||||
<td><?=$name;?></td>
|
||||
<td><?=$number;?></td>
|
||||
|
||||
<td><?=$department;?></td>
|
||||
<td><?=$gender;?></td>
|
||||
|
||||
<td>
|
||||
|
||||
<a href="<?=base_url();?>edit_student/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
} }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>deleted_student" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||
|
||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes">
|
||||
<button type="button" class="btn btn-default">No</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
||||
<!-- data tables -->
|
||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||
<script>
|
||||
$(".editsemesterclass").click(function(){
|
||||
$('#editmediumModel').modal('show');
|
||||
var id=$(this).attr('data-id');
|
||||
//alert(id);
|
||||
$('#hiddenid').val(id);
|
||||
});
|
||||
</script>
|
92
application/views/subject/add_subject.php
Normal file
92
application/views/subject/add_subject.php
Normal file
@ -0,0 +1,92 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Add Subject</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Subject</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Subject</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>add_subject" method="post">
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Subject Code
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" name="code" data-required="1" placeholder="Enter Subject Code" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name of the Subject.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="subject" type="text" placeholder="Enter Subject Name" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Department.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="department" type="text" placeholder="Enter Department" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Semester.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="semester" type="text" placeholder="Enter Semester" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Profile Images
|
||||
</label>
|
||||
<div class="col-md-5 compose-editor">
|
||||
<input type="file" name="img" placeholder="Enter img" class="form-control default" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
123
application/views/subject/edit_subject.php
Normal file
123
application/views/subject/edit_subject.php
Normal file
@ -0,0 +1,123 @@
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<style>
|
||||
.input-group .input-group-addon {
|
||||
border-radius: 0;
|
||||
border-color: #d2d6de;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d2d6de;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
.form-control{
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 6px 12px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #c2cad8;
|
||||
box-shadow: none!important;
|
||||
outline: 0!important;
|
||||
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
||||
font-size: 14px;
|
||||
line-height: 1.42857;
|
||||
color: #555;
|
||||
}
|
||||
.fa{
|
||||
padding-top:8px;
|
||||
}
|
||||
</style>
|
||||
<div class="page-container">
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Edit Subject</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Edit Subject</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Midium Model -->
|
||||
<?php
|
||||
if(isset($sub) && $sub->num_rows()>0)
|
||||
{
|
||||
$s=$sub->row();
|
||||
$id=$s->id;
|
||||
$code=$s->code;
|
||||
$sub=$s->subject;
|
||||
$dep=$s->department;
|
||||
$semester=$s->semester;
|
||||
$p_img=$s->p_img;
|
||||
|
||||
} ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="card card-box">
|
||||
<div class="card-head">
|
||||
<header>Edit Subject</header>
|
||||
</div>
|
||||
<div class="card-body" id="bar-parent">
|
||||
<form action="<?=base_url();?>edit_subject/<?=$id;?>" method="post" >
|
||||
<div class="form-body">
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Code
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input type="text" value="<?=$code;?>" name="code" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Name of the Subject.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="subject" value="<?=$sub;?>" type="text" data-required="1" placeholder="Enter subject" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Department.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="department" value="<?=$dep;?>" type="text" data-required="1" placeholder="Enter subject" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Semester.
|
||||
<span class="required"> * </span>
|
||||
</label>
|
||||
<div class="col-md-5">
|
||||
<input name="semester" value="<?=$semester;?>" type="text" data-required="1" placeholder="Enter subject" class="form-control input-height" /> </div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="control-label col-md-3">Upload Picture
|
||||
</label>
|
||||
<div class="compose-editor">
|
||||
<input type="file" name="p_img" value="<?=$p_img;?>" placeholder="Enter img" class="default" multiple>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||
<button type="button" class="btn btn-default">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/footer');?>
|
144
application/views/subject/subject_list.php
Normal file
144
application/views/subject/subject_list.php
Normal file
@ -0,0 +1,144 @@
|
||||
<!-- data tables -->
|
||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
<?php $this->load->view('includes/header');?>
|
||||
<!-- start page container -->
|
||||
<div class="page-container">
|
||||
<!-- start sidebar menu -->
|
||||
<?php $this->load->view('includes/sidebar');?>
|
||||
<!-- start page content -->
|
||||
<div class="page-content-wrapper">
|
||||
<div class="page-content">
|
||||
<div class="page-bar">
|
||||
<div class="page-title-breadcrumb">
|
||||
<div class=" pull-left">
|
||||
<div class="page-title">Suject List</div>
|
||||
</div>
|
||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||
</li>
|
||||
<li class="active">Suject</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/msg');?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-topline-red">
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-info"
|
||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_subject">add <i class="fa fa-plus"></i></a> </button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="table-scrollable">
|
||||
<table class="table table-hover table-checkable order-column full-width" id="example4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> S.No</th>
|
||||
<th> Subject code </th>
|
||||
<th> Name of the Subject </th>
|
||||
<th> Department</th>
|
||||
<th> Semester </th>
|
||||
|
||||
<th> Action </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($sub) && $sub->num_rows()>0)
|
||||
{
|
||||
$i=1;
|
||||
foreach($sub->result() as $s)
|
||||
{
|
||||
$id=$s->id;
|
||||
$code=$s->code;
|
||||
$sub=$s->subject;
|
||||
$dep=$s->department;
|
||||
$semester=$s->semester;
|
||||
$p_img=$s->p_img;
|
||||
?>
|
||||
<tr class="odd gradeX">
|
||||
<td><?=$i;?></td>
|
||||
<td><?=$code;?></td>
|
||||
<td><?=$sub;?></td>
|
||||
<td><?=$dep;?></td>
|
||||
<td><?=$semester;?></td>
|
||||
<td>
|
||||
|
||||
<a href="<?=base_url();?>edit_subject/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
} }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="<?=base_url();?>deleted_subject" method="post">
|
||||
<div class="form-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||
|
||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="offset-md-3 col-md-9">
|
||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes">
|
||||
<button type="button" class="btn btn-default">No</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('includes/footer');?>
|
||||
<!-- data tables -->
|
||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||
<script>
|
||||
$(".editsemesterclass").click(function(){
|
||||
$('#editmediumModel').modal('show');
|
||||
var id=$(this).attr('data-id');
|
||||
//alert(id);
|
||||
$('#hiddenid').val(id);
|
||||
});
|
||||
</script>
|
75
application/views/welcome_message.php
Normal file
75
application/views/welcome_message.php
Normal file
@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
|
||||
<!-- Mirrored from radixtouch.in/templates/admin/redstar/source/light/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Aug 2019 14:06:07 GMT -->
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
||||
<meta name="description" content="Responsive Admin Template" />
|
||||
<meta name="author" content="RedstarHospital" />
|
||||
<title>Negamaa</title>
|
||||
<!-- google font -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
|
||||
<!-- icons -->
|
||||
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="stylesheet" href="<?=base_url();?>/assets/iconic/css/material-design-iconic-font.min.css">
|
||||
<!-- bootstrap -->
|
||||
<link href="<?=base_url();?>/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- style -->
|
||||
<link rel="stylesheet" href="css/extra_pages.css">
|
||||
<!-- favicon -->
|
||||
<link rel="shortcut icon" href="<?=base_url();?>/img/side.png" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="limiter">
|
||||
<div class="container-login100 page-background">
|
||||
<div class="wrap-login100">
|
||||
<form class="login100-form validate-form">
|
||||
<span class="login100-form-logo">
|
||||
<img alt="" src="img/hospital.png">
|
||||
</span>
|
||||
<span class="login100-form-title p-b-34 p-t-27">
|
||||
Log in
|
||||
</span>
|
||||
<div class="wrap-input100 validate-input" data-validate="Enter username">
|
||||
<input class="input100" type="text" name="username" placeholder="Username">
|
||||
<span class="focus-input100" data-placeholder=""></span>
|
||||
</div>
|
||||
<div class="wrap-input100 validate-input" data-validate="Enter password">
|
||||
<input class="input100" type="password" name="pass" placeholder="Password">
|
||||
<span class="focus-input100" data-placeholder=""></span>
|
||||
</div>
|
||||
<div class="contact100-form-checkbox">
|
||||
<input class="input-checkbox100" id="ckb1" type="checkbox" name="remember-me">
|
||||
<label class="label-checkbox100" for="ckb1">
|
||||
Remember me
|
||||
</label>
|
||||
</div>
|
||||
<div class="container-login100-form-btn">
|
||||
<button class="login100-form-btn">
|
||||
Login
|
||||
</button>
|
||||
</div>
|
||||
<div class="text-center p-t-30">
|
||||
<a class="txt1" href="forgot_password.html">
|
||||
Forgot Password?
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- start js include path -->
|
||||
<script src="../assets/jquery.min.js"></script>
|
||||
<!-- bootstrap -->
|
||||
<script src="../assets/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="../assets/login.js"></script>
|
||||
<!-- end js include path -->
|
||||
</body>
|
||||
|
||||
|
||||
<!-- Mirrored from radixtouch.in/templates/admin/redstar/source/light/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Aug 2019 14:06:08 GMT -->
|
||||
</html>
|
757
assets/app.js
Normal file
757
assets/app.js
Normal file
@ -0,0 +1,757 @@
|
||||
/**
|
||||
* Document : app.js
|
||||
* Author : redstar
|
||||
* Description: Core script to handle the entire theme and core functions
|
||||
*
|
||||
**/
|
||||
var App = function() {
|
||||
|
||||
// IE mode
|
||||
var isIE8 = false;
|
||||
var isIE9 = false;
|
||||
var isIE10 = false;
|
||||
|
||||
var resizeHandlers = [];
|
||||
|
||||
var assetsPath = '';
|
||||
|
||||
var globalImgPath = 'img/';
|
||||
|
||||
var globalPluginsPath = 'global/plugins/';
|
||||
|
||||
var globalCssPath = 'css/';
|
||||
|
||||
/************* Setting for IE ****************/
|
||||
var handleInit = function() {
|
||||
|
||||
|
||||
isIE8 = !!navigator.userAgent.match(/MSIE 8.0/);
|
||||
isIE9 = !!navigator.userAgent.match(/MSIE 9.0/);
|
||||
isIE10 = !!navigator.userAgent.match(/MSIE 10.0/);
|
||||
|
||||
if (isIE10) {
|
||||
$('html').addClass('ie10'); // detect IE10 version
|
||||
}
|
||||
|
||||
if (isIE10 || isIE9 || isIE8) {
|
||||
$('html').addClass('ie'); // detect IE10 version
|
||||
}
|
||||
};
|
||||
|
||||
/*************** Change theme color *************/
|
||||
var handleColorSetting = function() {
|
||||
|
||||
$(document).on('click', '.control-sidebar-btn', function () {
|
||||
jQuery( ".quick-setting" ).toggle( "slide");
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
/*************** Change Language *************/
|
||||
var handleLanguage = function() {
|
||||
|
||||
$(document).on('click', '.language-switch .dropdown-menu li a', function () {
|
||||
$(".language-switch>a").html($(this).html()+'<span class="fa fa-angle-down"></span>');
|
||||
$(".language-switch>a img").addClass("position-left");
|
||||
});
|
||||
|
||||
};
|
||||
/*************** Hover Sidemenu *************/
|
||||
var handleHoverSidemenu = function() {
|
||||
$(".sidemenu-hover-submenu").parent().parent().css("position","relative");
|
||||
};
|
||||
|
||||
/************* Handle theme layout ****************/
|
||||
var handleTheme = function() {
|
||||
|
||||
var panel = $('.chatpane');
|
||||
|
||||
if ($('body').hasClass('page-boxed') === false) {
|
||||
$('.layout-option', panel).val("fluid");
|
||||
}
|
||||
|
||||
$('.sidebar-option', panel).val("default");
|
||||
$('.page-header-option', panel).val("fixed");
|
||||
$('.page-footer-option', panel).val("default");
|
||||
if ($('.sidebar-pos-option').attr("disabled") === false) {
|
||||
$('.sidebar-pos-option', panel).val('left');
|
||||
}
|
||||
var lastSelectedLayout = '';
|
||||
|
||||
var setLayout = function() {
|
||||
|
||||
var layoutOption = $('.layout-option', panel).val();
|
||||
var sidebarOption = $('.sidebar-option', panel).val();
|
||||
var headerOption = $('.page-header-option', panel).val();
|
||||
var footerOption = $('.page-footer-option', panel).val();
|
||||
var sidebarPosOption = $('.sidebar-pos-option', panel).val();
|
||||
var sidebarStyleOption = $('.sidebar-style-option', panel).val();
|
||||
var sidebarMenuOption = $('.sidebar-menu-option', panel).val();
|
||||
var headerTopDropdownStyle = $('.page-header-top-dropdown-style-option', panel).val();
|
||||
|
||||
if (sidebarOption == "fixed" && headerOption == "default") {
|
||||
alert('Default Header with Fixed Sidebar option is not supported. Proceed with Fixed Header with Fixed Sidebar.');
|
||||
$('.page-header-option', panel).val("fixed");
|
||||
$('.sidebar-option', panel).val("fixed");
|
||||
sidebarOption = 'fixed';
|
||||
headerOption = 'fixed';
|
||||
}
|
||||
|
||||
resetLayout(); // reset layout to default state
|
||||
|
||||
if (layoutOption === "boxed") {
|
||||
$("body").addClass("page-boxed");
|
||||
|
||||
// set header
|
||||
$('.page-header > .page-header-inner').addClass("container");
|
||||
var cont = $('body > .clearfix').after('<div class="container"></div>');
|
||||
|
||||
// set content
|
||||
$('.page-container').appendTo('body > .container');
|
||||
|
||||
// set footer
|
||||
if (footerOption === 'fixed') {
|
||||
$('.page-footer').html('<div class="container">' + $('.page-footer').html() + '</div>');
|
||||
} else {
|
||||
$('.page-footer').appendTo('body > .container');
|
||||
}
|
||||
}
|
||||
|
||||
if (lastSelectedLayout != layoutOption) {
|
||||
//layout changed, run responsive handler:
|
||||
App.runResizeHandlers();
|
||||
}
|
||||
lastSelectedLayout = layoutOption;
|
||||
|
||||
/************ header ******************/
|
||||
if (headerOption === 'fixed') {
|
||||
$("body").addClass("page-header-fixed");
|
||||
$(".page-header").removeClass("navbar-static-top").addClass("navbar-fixed-top");
|
||||
} else {
|
||||
$("body").removeClass("page-header-fixed");
|
||||
$(".page-header").removeClass("navbar-fixed-top").addClass("navbar-static-top");
|
||||
}
|
||||
|
||||
/************ sidebar *****************/
|
||||
if ($('body').hasClass('page-full-width') === false) {
|
||||
if (sidebarOption === 'fixed') {
|
||||
$("body").addClass("sidemenu-container-fixed");
|
||||
$("sidemenu").addClass("sidemenu-fixed");
|
||||
$("sidemenu").removeClass("page-sidebar-menu-default");
|
||||
Layout.initFixedSidebarHoverEffect();
|
||||
} else {
|
||||
$("body").removeClass("sidemenu-container-fixed");
|
||||
$("page-sidebar-menu").addClass("page-sidebar-menu-default");
|
||||
$("page-sidebar-menu").removeClass("sidemenu-default");
|
||||
$('.sidemenu').unbind('mouseenter').unbind('mouseleave');
|
||||
}
|
||||
}
|
||||
|
||||
/********* top dropdown style ************/
|
||||
if (headerTopDropdownStyle === 'dark') {
|
||||
$(".top-menu > .navbar-nav > li.dropdown").addClass("dropdown-dark");
|
||||
} else {
|
||||
$(".top-menu > .navbar-nav > li.dropdown").removeClass("dropdown-dark");
|
||||
}
|
||||
|
||||
/************* footer ****************/
|
||||
if (footerOption === 'fixed') {
|
||||
$("body").addClass("page-footer-fixed");
|
||||
} else {
|
||||
$("body").removeClass("page-footer-fixed");
|
||||
}
|
||||
|
||||
/*********** sidebar style ***************/
|
||||
if (sidebarStyleOption === 'light') {
|
||||
$(".page-sidebar-menu").addClass("page-sidebar-menu-light");
|
||||
} else {
|
||||
$(".page-sidebar-menu").removeClass("page-sidebar-menu-light");
|
||||
}
|
||||
|
||||
/********* sidebar menu ***********************/
|
||||
if (sidebarMenuOption === 'hover') {
|
||||
if (sidebarOption == 'fixed') {
|
||||
$('.sidebar-menu-option', panel).val("accordion");
|
||||
alert("Hover Sidebar Menu is not compatible with Fixed Sidebar Mode. Select Default Sidebar Mode Instead.");
|
||||
} else {
|
||||
$(".sidemenu").addClass("sidemenu-hover-submenu");
|
||||
}
|
||||
} else {
|
||||
$(".sidemenu").removeClass("sidemenu-hover-submenu");
|
||||
}
|
||||
|
||||
/**************** sidebar left right position setting **************/
|
||||
if (sidebarPosOption === 'right') {
|
||||
$("body").addClass("sidemenu-container-reversed");
|
||||
$('#frontend-link').tooltip('destroy').tooltip({
|
||||
placement: 'left'
|
||||
});
|
||||
} else {
|
||||
$("body").removeClass("sidemenu-container-reversed");
|
||||
$('#frontend-link').tooltip('destroy').tooltip({
|
||||
placement: 'right'
|
||||
});
|
||||
}
|
||||
|
||||
Layout.fixContentHeight(); // fix content height
|
||||
Layout.initFixedSidebar(); // reinitialize fixed sidebar
|
||||
};
|
||||
|
||||
$(document).on('click', '.toggler', panel, function() {
|
||||
$('.toggler').hide();
|
||||
$('.toggler-close').show();
|
||||
$('.chatpane > .theme-options').show();
|
||||
});
|
||||
|
||||
$(document).on('click', '.toggler-close', panel, function() {
|
||||
$('.toggler').show();
|
||||
$('.toggler-close').hide();
|
||||
$('.chatpane > .theme-options').hide();
|
||||
});
|
||||
|
||||
/*************** spinner button ******************/
|
||||
$(document).on('click', '.spinner button', function() {
|
||||
var btn = $(this);
|
||||
var input = btn.closest('.spinner').find('input');
|
||||
var step = 1;
|
||||
if (input.attr('step') != undefined) {
|
||||
step = parseInt(input.attr('step'),10);
|
||||
}
|
||||
if (btn.attr('data-dir') == 'up') {
|
||||
if (input.attr('max') == undefined || parseInt(input.val(),10) < parseInt(input.attr('max'),10)) {
|
||||
input.val(parseInt(input.val(), 10) + step);
|
||||
} else {
|
||||
btn.next("disabled", true);
|
||||
}
|
||||
} else {
|
||||
if (input.attr('min') == undefined || parseInt(input.val(),10) > parseInt(input.attr('min'),10)) {
|
||||
input.val(parseInt(input.val(), 10) - step);
|
||||
} else {
|
||||
btn.prev("disabled", true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/*************** TO DO **********************/
|
||||
$(document).on('click', '.todo-check label', function() {
|
||||
$(this).parents('li').children('.todo-title').toggleClass('line-through');
|
||||
});
|
||||
$(document).on('click', '.todo-remove', function() {
|
||||
$(this).closest("li").remove();
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).on('click', '.panel .tools .fa-times', function() {
|
||||
$(this).parents(".panel").parent().remove();
|
||||
});
|
||||
$('.tooltips').tooltip();
|
||||
|
||||
// clickable row for email
|
||||
$(document).on('click', '.clickable-row', function() {
|
||||
window.document.location = $(this).data("link");
|
||||
});
|
||||
|
||||
|
||||
/************* collapse button in panel***************8*/
|
||||
$(document).on('click', '.card .tools .t-collapse', function() {
|
||||
var el = $(this).parents(".card").children(".card-body");
|
||||
if ($(this).hasClass("fa-chevron-down")) {
|
||||
$(this).removeClass("fa-chevron-down").addClass("fa-chevron-up");
|
||||
el.slideUp(200);
|
||||
} else {
|
||||
$(this).removeClass("fa-chevron-up").addClass("fa-chevron-down");
|
||||
el.slideDown(200);
|
||||
}
|
||||
});
|
||||
|
||||
/**************** close button in panel *****************/
|
||||
$(document).on('click', '.card .tools .t-close', function() {
|
||||
$(this).parents(".card").parent().remove();
|
||||
});
|
||||
|
||||
/****************** refresh button in panel *****************/
|
||||
$('.box-refresh').on('click', function(br) {
|
||||
br.preventDefault();
|
||||
$("<div class='refresh-block'><span class='refresh-loader'><i class='fa fa-spinner fa-spin'></i></span></div>").appendTo($(this).parents('.tools').parents('.card-head').parents('.card'));
|
||||
setTimeout(function() {
|
||||
$('.refresh-block').remove();
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
/***************** set default theme options **************************/
|
||||
|
||||
if ($("body").hasClass("page-boxed")) {
|
||||
$('.layout-option', panel).val("boxed");
|
||||
}
|
||||
|
||||
if ($("body").hasClass("sidemenu-container-fixed")) {
|
||||
$('.sidebar-option', panel).val("fixed");
|
||||
}
|
||||
|
||||
if ($("body").hasClass("page-header-fixed")) {
|
||||
$('.page-header-option', panel).val("fixed");
|
||||
}
|
||||
|
||||
if ($("body").hasClass("page-footer-fixed")) {
|
||||
$('.page-footer-option', panel).val("fixed");
|
||||
}
|
||||
|
||||
if ($("body").hasClass("sidemenu-container-reversed")) {
|
||||
$('.sidebar-pos-option', panel).val("right");
|
||||
}
|
||||
|
||||
if ($(".page-sidebar-menu").hasClass("page-sidebar-menu-light")) {
|
||||
$('.sidebar-style-option', panel).val("light");
|
||||
}
|
||||
|
||||
if ($(".page-sidebar-menu").hasClass("page-sidebar-menu-hover-submenu")) {
|
||||
$('.sidebar-menu-option', panel).val("hover");
|
||||
}
|
||||
|
||||
var sidebarOption = $('.sidebar-option', panel).val();
|
||||
var headerOption = $('.page-header-option', panel).val();
|
||||
var footerOption = $('.page-footer-option', panel).val();
|
||||
var sidebarPosOption = $('.sidebar-pos-option', panel).val();
|
||||
var sidebarStyleOption = $('.sidebar-style-option', panel).val();
|
||||
var sidebarMenuOption = $('.sidebar-menu-option', panel).val();
|
||||
|
||||
$('.layout-option, .page-header-option, .page-header-top-dropdown-style-option, .sidebar-option, .page-footer-option, .sidebar-pos-option, .sidebar-style-option, .sidebar-menu-option', panel).change(setLayout);
|
||||
};
|
||||
|
||||
/************ Reset theme layout ********************/
|
||||
var resetLayout = function() {
|
||||
$("body").
|
||||
removeClass("page-boxed").
|
||||
removeClass("page-footer-fixed").
|
||||
removeClass("sidemenu-container-fixed").
|
||||
removeClass("page-header-fixed").
|
||||
removeClass("sidemenu-container-reversed");
|
||||
|
||||
$('.page-header > .page-header-inner').removeClass("container");
|
||||
|
||||
if ($('.page-container').parent(".container").length === 1) {
|
||||
$('.page-container').insertAfter('body > .clearfix');
|
||||
}
|
||||
|
||||
if ($('.page-footer > .container').length === 1) {
|
||||
$('.page-footer').html($('.page-footer > .container').html());
|
||||
} else if ($('.page-footer').parent(".container").length === 1) {
|
||||
$('.page-footer').insertAfter('.page-container');
|
||||
$('.scroll-to-top').insertAfter('.page-footer');
|
||||
}
|
||||
|
||||
$(".top-menu > .navbar-nav > li.dropdown").removeClass("dropdown-dark");
|
||||
|
||||
$('body > .container').remove();
|
||||
};
|
||||
|
||||
|
||||
// runs callback functions set by App.addResponsiveHandler().
|
||||
var _runResizeHandlers = function() {
|
||||
// reinitialize other subscribed elements
|
||||
for (var i = 0; i < resizeHandlers.length; i++) {
|
||||
var each = resizeHandlers[i];
|
||||
each.call();
|
||||
}
|
||||
};
|
||||
|
||||
/********** handle the layout reinitialization on window resize ***********/
|
||||
var handleOnResize = function() {
|
||||
var resize;
|
||||
if (isIE8) {
|
||||
var currheight;
|
||||
$(window).resize(function() {
|
||||
if (currheight == document.documentElement.clientHeight) {
|
||||
return; //quite event since only body resized not window.
|
||||
}
|
||||
if (resize) {
|
||||
clearTimeout(resize);
|
||||
}
|
||||
resize = setTimeout(function() {
|
||||
_runResizeHandlers();
|
||||
}, 50); // wait 50ms until window resize finishes.
|
||||
currheight = document.documentElement.clientHeight; // store last body client height
|
||||
});
|
||||
} else {
|
||||
$(window).resize(function() {
|
||||
if (resize) {
|
||||
clearTimeout(resize);
|
||||
}
|
||||
resize = setTimeout(function() {
|
||||
_runResizeHandlers();
|
||||
}, 50); // wait 50ms until window resize finishes.
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/*************** Handles Bootstrap switches in setting panel ********/
|
||||
var handleBootstrapSwitch = function() {
|
||||
if (!$().bootstrapSwitch) {
|
||||
return;
|
||||
}
|
||||
$('.make-switch').bootstrapSwitch();
|
||||
};
|
||||
|
||||
/*************** Handles Bootstrap Tabs **********************/
|
||||
var handleTabs = function() {
|
||||
//activate tab if tab id provided in the URL
|
||||
if (encodeURI(location.hash)) {
|
||||
var tabid = encodeURI(location.hash.substr(1));
|
||||
$('a[href="#' + tabid + '"]').parents('.tab-pane:hidden').each(function() {
|
||||
var tabid = $(this).attr("id");
|
||||
$('a[href="#' + tabid + '"]').click();
|
||||
});
|
||||
$('a[href="#' + tabid + '"]').click();
|
||||
}
|
||||
|
||||
if ($().tabdrop) {
|
||||
$('.tabbable-tabdrop .nav-pills, .tabbable-tabdrop .nav-tabs').tabdrop({
|
||||
text: '<i class="fa fa-ellipsis-v"></i> <i class="fa fa-angle-down"></i>'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/************* Handles Bootstrap Dropdowns ********************/
|
||||
var handleDropdowns = function() {
|
||||
/*
|
||||
Hold dropdown on click
|
||||
*/
|
||||
$('body').on('click', '.dropdown-menu.hold-on-click', function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
};
|
||||
|
||||
/************** Handles counterup plugin wrapper ****************/
|
||||
var handleCounterup = function() {
|
||||
if (!$().counterUp) {
|
||||
return;
|
||||
}
|
||||
|
||||
$("[data-counter='counterup']").counterUp({
|
||||
delay: 10,
|
||||
time: 1000
|
||||
});
|
||||
};
|
||||
|
||||
// Fix input placeholder issue for IE8 and IE9
|
||||
var handleFixInputPlaceholderForIE = function() {
|
||||
//fix html5 placeholder attribute for ie7 & ie8
|
||||
if (isIE8 || isIE9) { // ie8 & ie9
|
||||
// this is html5 placeholder fix for inputs, inputs with placeholder-no-fix class will be skipped(e.g: we need this for password fields)
|
||||
$('input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)').each(function() {
|
||||
var input = $(this);
|
||||
|
||||
if (input.val() === '' && input.attr("placeholder") !== '') {
|
||||
input.addClass("placeholder").val(input.attr('placeholder'));
|
||||
}
|
||||
|
||||
input.focus(function() {
|
||||
if (input.val() == input.attr('placeholder')) {
|
||||
input.val('');
|
||||
}
|
||||
});
|
||||
|
||||
input.blur(function() {
|
||||
if (input.val() === '' || input.val() == input.attr('placeholder')) {
|
||||
input.val(input.attr('placeholder'));
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// Handle Select2 Dropdowns
|
||||
var handleSelect2 = function() {
|
||||
if ($().select2) {
|
||||
$.fn.select2.defaults.set("theme", "bootstrap");
|
||||
$('.select2me').select2({
|
||||
placeholder: "Select",
|
||||
width: 'auto',
|
||||
allowClear: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// handle group element heights
|
||||
var handleHeight = function() {
|
||||
$('[data-auto-height]').each(function() {
|
||||
var parent = $(this);
|
||||
var items = $('[data-height]', parent);
|
||||
var height = 0;
|
||||
var mode = parent.attr('data-mode');
|
||||
var data_offset = parent.attr('data-offset') ? parent.attr('data-offset') : 0;
|
||||
var offset = parseInt(data_offset,10);
|
||||
|
||||
items.each(function() {
|
||||
if ($(this).attr('data-height') == "height") {
|
||||
$(this).css('height', '');
|
||||
} else {
|
||||
$(this).css('min-height', '');
|
||||
}
|
||||
|
||||
var height_ = (mode == 'base-height' ? $(this).outerHeight() : $(this).outerHeight(true));
|
||||
if (height_ > height) {
|
||||
height = height_;
|
||||
}
|
||||
});
|
||||
|
||||
height = height + offset;
|
||||
|
||||
items.each(function() {
|
||||
if ($(this).attr('data-height') == "height") {
|
||||
$(this).css('height', height);
|
||||
} else {
|
||||
$(this).css('min-height', height);
|
||||
}
|
||||
});
|
||||
|
||||
if (parent.attr('data-related')) {
|
||||
$(parent.attr('data-related')).css('height', parent.height());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Handles quick sidebar toggler
|
||||
var handleQuickSidebarToggler = function() {
|
||||
// close sidebar using button click
|
||||
$(document).on('click', '.dropdown-quick-sidebar-toggler a', function(e) {
|
||||
$('body').toggleClass('chat-sidebar-open');
|
||||
});
|
||||
// close sidebar when click outside box
|
||||
$(document).on('click', '.page-content', function(e) {
|
||||
if($("body").hasClass("chat-sidebar-open")){
|
||||
$('body').toggleClass('chat-sidebar-open');
|
||||
}
|
||||
});
|
||||
// close sidebar using esc key
|
||||
$( document ).on( 'keydown', function ( e ) {
|
||||
if ( e.keyCode === 27 && $("body").hasClass("chat-sidebar-open")) { // ESC
|
||||
$('body').toggleClass('chat-sidebar-open');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/********Sidebar slim-menu*********/
|
||||
var handleslimscroll_menu = function() {
|
||||
$(".slimscroll-style").slimscroll({
|
||||
height: $( window ).height() - 90,
|
||||
position: "right",
|
||||
size: "5px",
|
||||
color: "#9ea5ab",
|
||||
wheelStep: 5
|
||||
});
|
||||
$(".small-slimscroll-style").slimscroll({
|
||||
height: "260px",
|
||||
position: "right",
|
||||
size: "5px",
|
||||
color: "#9ea5ab",
|
||||
wheelStep: 5
|
||||
});
|
||||
};
|
||||
|
||||
handleChatScrollbar = function() {
|
||||
var t = $(".chat-sidebar-chat"),
|
||||
i = function() {
|
||||
var i, a = t.find(".chat-sidebar-item"),
|
||||
e = $(".chat-sidebar-chat-users").attr("data-height");
|
||||
i = $(".chat-sidebar-chat-users").attr("data-height") - 80 - t.find(".nav-justified > .nav-tabs").outerHeight(), a.attr("data-height", i), a.css("height", e + "px"), a.css("overflow-y", "auto")
|
||||
};
|
||||
i(), App.addResizeHandler(i)
|
||||
};
|
||||
|
||||
// Handles quick sidebar settings
|
||||
var handleQuickSidebarSettings = function() {
|
||||
var wrapper = $('.chat-sidebar-container');
|
||||
|
||||
var initSettingsSlimScroll = function() {
|
||||
var settingsList = wrapper.find('.chat-sidebar-settings-list');
|
||||
var settingsListHeight;
|
||||
|
||||
settingsListHeight = wrapper.height() - 80 - wrapper.find('.nav-justified > .nav-tabs').outerHeight();
|
||||
|
||||
// alerts list
|
||||
settingsList.attr("data-height", settingsListHeight);
|
||||
settingsList.css("height", wrapper.height() + "px");
|
||||
settingsList.css("overflow-y", "auto");
|
||||
};
|
||||
|
||||
initSettingsSlimScroll();
|
||||
App.addResizeHandler(initSettingsSlimScroll); // reinitialize on window resize
|
||||
};
|
||||
|
||||
|
||||
|
||||
//* END:CORE HANDLERS *//
|
||||
|
||||
return {
|
||||
|
||||
//main function to initiate the theme
|
||||
init: function() {
|
||||
|
||||
//Core handlers
|
||||
handleInit(); // initialize core variables
|
||||
handleTheme();
|
||||
handleOnResize(); // set and handle responsive
|
||||
handleColorSetting();
|
||||
handleLanguage();
|
||||
handleHoverSidemenu();
|
||||
|
||||
//UI Component handlers
|
||||
handleBootstrapSwitch(); // handle bootstrap switch plugin
|
||||
handleSelect2(); // handle custom Select2 dropdowns
|
||||
handleDropdowns(); // handle dropdowns
|
||||
handleTabs(); // handle tabs
|
||||
handleCounterup(); // handle counterup instances
|
||||
|
||||
handleQuickSidebarToggler(); // handles quick sidebar's toggler
|
||||
handleQuickSidebarSettings(); // handles quick sidebar's setting
|
||||
handleChatScrollbar();
|
||||
|
||||
handleslimscroll_menu();
|
||||
|
||||
//Handle group element heights
|
||||
this.addResizeHandler(handleHeight); // handle auto calculating height on window resize
|
||||
|
||||
handleFixInputPlaceholderForIE(); //IE8 & IE9 input placeholder issue fix
|
||||
},
|
||||
|
||||
//public function to add callback a function which will be called on window resize
|
||||
addResizeHandler: function(func) {
|
||||
resizeHandlers.push(func);
|
||||
},
|
||||
|
||||
//public functon to call _runresizeHandlers
|
||||
runResizeHandlers: function() {
|
||||
_runResizeHandlers();
|
||||
},
|
||||
|
||||
// wrApper function to scroll(focus) to an element
|
||||
scrollTo: function(el, offeset) {
|
||||
var pos = (el && el.length > 0) ? el.offset().top : 0;
|
||||
|
||||
if (el) {
|
||||
if ($('body').hasClass('page-header-fixed')) {
|
||||
pos = pos - $('.page-header').height();
|
||||
} else if ($('body').hasClass('page-header-top-fixed')) {
|
||||
pos = pos - $('.page-header-top').height();
|
||||
} else if ($('body').hasClass('page-header-menu-fixed')) {
|
||||
pos = pos - $('.page-header-menu').height();
|
||||
}
|
||||
pos = pos + (offeset ? offeset : -1 * el.height());
|
||||
}
|
||||
|
||||
$('html,body').animate({
|
||||
scrollTop: pos
|
||||
}, 'slow');
|
||||
},
|
||||
// function to scroll to the top
|
||||
scrollTop: function() {
|
||||
App.scrollTo();
|
||||
},
|
||||
|
||||
startPageLoading: function(options) {
|
||||
if (options && options.animate) {
|
||||
$('.page-spinner-bar').remove();
|
||||
$('body').append('<div class="page-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>');
|
||||
} else {
|
||||
$('.page-loading').remove();
|
||||
$('body').append('<div class="page-loading"><img src="' + this.getGlobalImgPath() + 'loading-spinner-grey.gif"/> <span>' + (options && options.message ? options.message : 'Loading...') + '</span></div>');
|
||||
}
|
||||
},
|
||||
|
||||
stopPageLoading: function() {
|
||||
$('.page-loading, .page-spinner-bar').remove();
|
||||
},
|
||||
|
||||
//public helper function to get actual input value(used in IE9 and IE8 due to placeholder attribute not supported)
|
||||
getActualVal: function(el) {
|
||||
el = $(el);
|
||||
if (el.val() === el.attr("placeholder")) {
|
||||
return "";
|
||||
}
|
||||
return el.val();
|
||||
},
|
||||
|
||||
//public function to get a paremeter by name from URL
|
||||
getURLParameter: function(paramName) {
|
||||
var searchString = window.location.search.substring(1),
|
||||
i, val, params = searchString.split("&");
|
||||
|
||||
for (i = 0; i < params.length; i++) {
|
||||
val = params[i].split("=");
|
||||
if (val[0] == paramName) {
|
||||
return unescape(val[1]);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
getViewPort: function() {
|
||||
var e = window,
|
||||
a = 'inner';
|
||||
if (!('innerWidth' in window)) {
|
||||
a = 'client';
|
||||
e = document.documentElement || document.body;
|
||||
}
|
||||
|
||||
return {
|
||||
width: e[a + 'Width'],
|
||||
height: e[a + 'Height']
|
||||
};
|
||||
},
|
||||
|
||||
getUniqueID: function(prefix) {
|
||||
return 'prefix_' + Math.floor(Math.random() * (new Date()).getTime());
|
||||
},
|
||||
|
||||
// check IE8 mode
|
||||
isIE8: function() {
|
||||
return isIE8;
|
||||
},
|
||||
|
||||
// check IE9 mode
|
||||
isIE9: function() {
|
||||
return isIE9;
|
||||
},
|
||||
|
||||
getAssetsPath: function() {
|
||||
return assetsPath;
|
||||
},
|
||||
|
||||
setAssetsPath: function(path) {
|
||||
assetsPath = path;
|
||||
},
|
||||
|
||||
setGlobalImgPath: function(path) {
|
||||
globalImgPath = path;
|
||||
},
|
||||
|
||||
getGlobalImgPath: function() {
|
||||
return assetsPath + globalImgPath;
|
||||
},
|
||||
|
||||
getGlobalCssPath: function() {
|
||||
return assetsPath + globalCssPath;
|
||||
},
|
||||
|
||||
getResponsiveBreakpoint: function(size) {
|
||||
// bootstrap responsive breakpoints
|
||||
var sizes = {
|
||||
'xs': 480, // extra small
|
||||
'sm': 768, // small
|
||||
'md': 992, // medium
|
||||
'lg': 1200 // large
|
||||
};
|
||||
|
||||
return sizes[size] ? sizes[size] : 0;
|
||||
}
|
||||
};
|
||||
|
||||
}();
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
App.init(); // init core componets
|
||||
$(".chat-sidebar-chat-user-messages").animate({
|
||||
scrollTop: $(document).height()
|
||||
}, 1000);
|
||||
});
|
222
assets/bootstrap-colorpicker/css/bootstrap-colorpicker.css
vendored
Normal file
222
assets/bootstrap-colorpicker/css/bootstrap-colorpicker.css
vendored
Normal file
@ -0,0 +1,222 @@
|
||||
/*!
|
||||
* Bootstrap Colorpicker v2.3.6
|
||||
* https://itsjavi.com/bootstrap-colorpicker/
|
||||
*
|
||||
* Originally written by (c) 2012 Stefan Petre
|
||||
* Licensed under the Apache License v2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
*
|
||||
*/
|
||||
.colorpicker-saturation {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-image: url("../img/bootstrap-colorpicker/saturation.png");
|
||||
cursor: crosshair;
|
||||
float: left;
|
||||
}
|
||||
.colorpicker-saturation i {
|
||||
display: block;
|
||||
height: 5px;
|
||||
width: 5px;
|
||||
border: 1px solid #000;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
margin: -4px 0 0 -4px;
|
||||
}
|
||||
.colorpicker-saturation i b {
|
||||
display: block;
|
||||
height: 5px;
|
||||
width: 5px;
|
||||
border: 1px solid #fff;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.colorpicker-hue,
|
||||
.colorpicker-alpha {
|
||||
width: 15px;
|
||||
height: 100px;
|
||||
float: left;
|
||||
cursor: row-resize;
|
||||
margin-left: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.colorpicker-hue i,
|
||||
.colorpicker-alpha i {
|
||||
display: block;
|
||||
height: 1px;
|
||||
background: #000;
|
||||
border-top: 1px solid #fff;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
margin-top: -1px;
|
||||
}
|
||||
.colorpicker-hue {
|
||||
background-image: url("../img/bootstrap-colorpicker/hue.png");
|
||||
}
|
||||
.colorpicker-alpha {
|
||||
background-image: url("../img/bootstrap-colorpicker/alpha.png");
|
||||
display: none;
|
||||
}
|
||||
.colorpicker-saturation,
|
||||
.colorpicker-hue,
|
||||
.colorpicker-alpha {
|
||||
background-size: contain;
|
||||
}
|
||||
.colorpicker {
|
||||
padding: 4px;
|
||||
min-width: 130px;
|
||||
margin-top: 1px;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
z-index: 2500;
|
||||
}
|
||||
.colorpicker:before,
|
||||
.colorpicker:after {
|
||||
display: table;
|
||||
content: "";
|
||||
line-height: 0;
|
||||
}
|
||||
.colorpicker:after {
|
||||
clear: both;
|
||||
}
|
||||
.colorpicker:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
border-left: 7px solid transparent;
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 7px solid #ccc;
|
||||
border-bottom-color: rgba(0, 0, 0, 0.2);
|
||||
position: absolute;
|
||||
top: -7px;
|
||||
left: 6px;
|
||||
}
|
||||
.colorpicker:after {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
border-left: 6px solid transparent;
|
||||
border-right: 6px solid transparent;
|
||||
border-bottom: 6px solid #ffffff;
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
left: 7px;
|
||||
}
|
||||
.colorpicker div {
|
||||
position: relative;
|
||||
}
|
||||
.colorpicker.colorpicker-with-alpha {
|
||||
min-width: 140px;
|
||||
}
|
||||
.colorpicker.colorpicker-with-alpha .colorpicker-alpha {
|
||||
display: block;
|
||||
}
|
||||
.colorpicker-color {
|
||||
height: 10px;
|
||||
margin-top: 5px;
|
||||
clear: both;
|
||||
background-image: url("../img/bootstrap-colorpicker/alpha.png");
|
||||
background-position: 0 100%;
|
||||
}
|
||||
.colorpicker-color div {
|
||||
height: 10px;
|
||||
}
|
||||
.colorpicker-selectors {
|
||||
display: none;
|
||||
height: 10px;
|
||||
margin-top: 5px;
|
||||
clear: both;
|
||||
}
|
||||
.colorpicker-selectors i {
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
}
|
||||
.colorpicker-selectors i + i {
|
||||
margin-left: 3px;
|
||||
}
|
||||
.colorpicker-element .input-group-addon i,
|
||||
.colorpicker-element .add-on i {
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
height: 16px;
|
||||
vertical-align: text-top;
|
||||
width: 16px;
|
||||
}
|
||||
.colorpicker.colorpicker-inline {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
float: none;
|
||||
z-index: auto;
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal {
|
||||
width: 110px;
|
||||
min-width: 110px;
|
||||
height: auto;
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-saturation {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-color {
|
||||
width: 100px;
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-hue,
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-alpha {
|
||||
width: 100px;
|
||||
height: 15px;
|
||||
float: left;
|
||||
cursor: col-resize;
|
||||
margin-left: 0px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-hue i,
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-alpha i {
|
||||
display: block;
|
||||
height: 15px;
|
||||
background: #ffffff;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 1px;
|
||||
border: none;
|
||||
margin-top: 0px;
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-hue {
|
||||
background-image: url("../img/bootstrap-colorpicker/hue-horizontal.png");
|
||||
}
|
||||
.colorpicker.colorpicker-horizontal .colorpicker-alpha {
|
||||
background-image: url("../img/bootstrap-colorpicker/alpha-horizontal.png");
|
||||
}
|
||||
.colorpicker.colorpicker-hidden {
|
||||
display: none;
|
||||
}
|
||||
.colorpicker.colorpicker-visible {
|
||||
display: block;
|
||||
}
|
||||
.colorpicker-inline.colorpicker-visible {
|
||||
display: inline-block;
|
||||
}
|
||||
.colorpicker-right:before {
|
||||
left: auto;
|
||||
right: 6px;
|
||||
}
|
||||
.colorpicker-right:after {
|
||||
left: auto;
|
||||
right: 7px;
|
||||
}
|
||||
.colorpicker-no-arrow:before {
|
||||
border-right: 0;
|
||||
border-left: 0;
|
||||
}
|
||||
.colorpicker-no-arrow:after {
|
||||
border-right: 0;
|
||||
border-left: 0;
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-colorpicker.css.map */
|
Binary file not shown.
After Width: | Height: | Size: 557 B |
BIN
assets/bootstrap-colorpicker/img/bootstrap-colorpicker/alpha.png
Normal file
BIN
assets/bootstrap-colorpicker/img/bootstrap-colorpicker/alpha.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 488 B |
Binary file not shown.
After Width: | Height: | Size: 478 B |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user