Moved to PHP folder
This commit is contained in:
BIN
php/application/.DS_Store
vendored
Normal file
BIN
php/application/.DS_Store
vendored
Normal file
Binary file not shown.
0
php/application/.htaccess
Normal file
0
php/application/.htaccess
Normal file
6
php/application/cache/.htaccess
vendored
Normal file
6
php/application/cache/.htaccess
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<IfModule authz_core_module>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
11
php/application/cache/index.html
vendored
Normal file
11
php/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
php/application/config/autoload.php
Normal file
135
php/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('session','database');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| 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','form');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| 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
php/application/config/config.php
Normal file
523
php/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://demo.phpwebsite.in/abc/';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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'] = 'smartwebin';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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'] = '';
|
96
php/application/config/constants.php
Normal file
96
php/application/config/constants.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?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
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Define
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
define("TITLE", "ABC-Admin");
|
||||
define("FRONT_TITLE", "ABC-Front");
|
||||
define("HEADER_NAME", "New Project");
|
||||
define("SITE_NAME", "testing");
|
||||
define("SKIN", "skin-2");
|
96
php/application/config/database.php
Normal file
96
php/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 certificats 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 ('mysqli' only)
|
||||
|
|
||||
| ['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' => 'phpwe4km_abc',
|
||||
'password' => 'VOtMA5$_88-Y',
|
||||
'database' => 'phpwe4km_abc',
|
||||
'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
php/application/config/doctypes.php
Normal file
24
php/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">'
|
||||
);
|
103
php/application/config/foreign_chars.php
Normal file
103
php/application/config/foreign_chars.php
Normal file
@ -0,0 +1,103 @@
|
||||
<?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',
|
||||
'/Ķ|Κ|К/' => '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',
|
||||
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
|
||||
'/ź|ż|ž|ζ|з/' => 'z',
|
||||
'/Æ|Ǽ/' => 'AE',
|
||||
'/ß/' => 'ss',
|
||||
'/IJ/' => 'IJ',
|
||||
'/ij/' => 'ij',
|
||||
'/Œ/' => 'OE',
|
||||
'/ƒ/' => 'f',
|
||||
'/ξ/' => 'ks',
|
||||
'/π/' => 'p',
|
||||
'/β/' => 'v',
|
||||
'/μ/' => 'm',
|
||||
'/ψ/' => 'ps',
|
||||
'/Ё/' => 'Yo',
|
||||
'/ё/' => 'yo',
|
||||
'/Є/' => 'Ye',
|
||||
'/є/' => 'ye',
|
||||
'/Ї/' => 'Yi',
|
||||
'/Ж/' => 'Zh',
|
||||
'/ж/' => 'zh',
|
||||
'/Х/' => 'Kh',
|
||||
'/х/' => 'kh',
|
||||
'/Ц/' => 'Ts',
|
||||
'/ц/' => 'ts',
|
||||
'/Ч/' => 'Ch',
|
||||
'/ч/' => 'ch',
|
||||
'/Ш/' => 'Sh',
|
||||
'/ш/' => 'sh',
|
||||
'/Щ/' => 'Shch',
|
||||
'/щ/' => 'shch',
|
||||
'/Ъ|ъ|Ь|ь/' => '',
|
||||
'/Ю/' => 'Yu',
|
||||
'/ю/' => 'yu',
|
||||
'/Я/' => 'Ya',
|
||||
'/я/' => 'ya'
|
||||
);
|
13
php/application/config/hooks.php
Normal file
13
php/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
php/application/config/index.html
Normal file
11
php/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
php/application/config/memcached.php
Normal file
19
php/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
php/application/config/migration.php
Normal file
84
php/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/';
|
183
php/application/config/mimes.php
Normal file
183
php/application/config/mimes.php
Normal file
@ -0,0 +1,183 @@
|
||||
<?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' => 'audio/x-acc',
|
||||
'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',
|
||||
'7zip' => array('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
php/application/config/profiler.php
Normal file
14
php/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
|
||||
|
|
||||
*/
|
113
php/application/config/routes.php
Normal file
113
php/application/config/routes.php
Normal file
@ -0,0 +1,113 @@
|
||||
<?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'] = 'Registration';
|
||||
$route['404_override'] = '';
|
||||
$route['translate_uri_dashes'] = TRUE;
|
||||
|
||||
/*Admin Route */
|
||||
|
||||
/*Admin Pages */
|
||||
$route['admin'] = 'admin/admin';
|
||||
$route['admin/dashboard'] = 'admin/admin/dashboard';
|
||||
$route['admin/class-name'] = 'admin/classsetting/cl_name';
|
||||
$route['admin/class-locations'] = 'admin/classsetting/cl_locations';
|
||||
$route['admin/class-instructors'] = 'admin/classsetting/cl_instructors';
|
||||
$route['admin/create-class'] = 'admin/createclass/cl_create';
|
||||
$route['admin/admin-user'] = 'admin/user/admin_user';
|
||||
|
||||
/*Admin Controls */
|
||||
$route['admin/logout'] = 'admin/admin/logout';
|
||||
/* Class Settings */
|
||||
$route['admin/class-manage'] = 'admin/Createclass/manage_create';
|
||||
|
||||
$route['admin/class-name-edit/(:num)'] = 'admin/classsetting/return_class/$1';
|
||||
$route['admin/class-locations-edit/(:num)'] = 'admin/classsetting/return_location/$1';
|
||||
$route['admin/class-instructors-edit/(:num)'] = 'admin/classsetting/return_instructors/$1';
|
||||
|
||||
$route['admin/class-name-delete/(:num)'] = 'admin/classsetting/delete_class/$1';
|
||||
$route['admin/class-locations-delete/(:num)'] = 'admin/classsetting/delete_location/$1';
|
||||
$route['admin/class-instructors-delete/(:num)'] = 'admin/classsetting/delete_instructors/$1';
|
||||
/* End Class Settings */
|
||||
|
||||
/* Create Class */
|
||||
$route['admin/create-class-edit/(:num)'] = 'admin/Createclass/return_form/$1';
|
||||
$route['admin/create-class-delete/(:num)'] = 'admin/Createclass/delete_form/$1';
|
||||
/* End Create Class */
|
||||
|
||||
/* Admin User */
|
||||
$route['admin/admin-user-edit/(:num)'] = 'admin/user/return_user/$1';
|
||||
$route['admin/admin-user-delete/(:num)'] = 'admin/user/delete_user/$1';
|
||||
$route['admin/view-order/(:num)/(:num)'] = 'admin/orderlist/review_orderList/$1/$2';
|
||||
/* End Admin User */
|
||||
|
||||
/* Order List */
|
||||
$route['admin/order-list'] = 'admin/orderlist/list_order';
|
||||
$route['admin/order-list/(:num)'] = 'admin/orderlist/list_order/$1';
|
||||
$route['order-delete/(:num)'] = 'admin/orderlist/delete_list/$1';
|
||||
$route['admin/order-search'] = 'admin/orderlist/order_search';
|
||||
$route['order-paid/(:num)'] = 'admin/orderlist/update_status/$1';
|
||||
/* End Order List */
|
||||
|
||||
/*End Admin Route */
|
||||
|
||||
/*Front Route */
|
||||
$route['reg-class'] = 'registration';
|
||||
$route['loc-class/(:num)'] = 'registration/index/$1';
|
||||
$route['reg-manage'] = 'registration/manage_reg';
|
||||
$route['review-order'] = 'review/review_order';
|
||||
$route['order-payment'] = 'payment';
|
||||
$route['hosted-payment'] = 'payment/payment_order';
|
||||
$route['order-confirm'] = 'payment/confirm';
|
||||
$route['remove-data/(:any)/(:any)/(:any)/(:any)'] = 'registration/unset_fn/$1/$2/$3/$4';
|
||||
$route['reset-page'] = 'registration/reset_fn';
|
||||
/*End Front Route */
|
||||
//
|
64
php/application/config/smileys.php
Normal file
64
php/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')
|
||||
|
||||
);
|
214
php/application/config/user_agents.php
Normal file
214
php/application/config/user_agents.php
Normal file
@ -0,0 +1,214 @@
|
||||
<?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' => 'Spartan',
|
||||
'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',
|
||||
'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',
|
||||
|
||||
// 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'
|
||||
);
|
282
php/application/controllers/Payment.php
Normal file
282
php/application/controllers/Payment.php
Normal file
@ -0,0 +1,282 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Payment extends CI_Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->model('Index_model');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
if(empty($this->session->userdata('cart')))
|
||||
{
|
||||
redirect(base_url());
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->load->view("front/payment");
|
||||
}
|
||||
}
|
||||
|
||||
public function confirm()
|
||||
{
|
||||
$this->session->sess_destroy();
|
||||
$this->load->view("front/confirm");
|
||||
}
|
||||
|
||||
public function payment_order()
|
||||
{
|
||||
$cardsplit = str_split($this->input->post('card_number'));
|
||||
$ssl_customer_code = $cardsplit[12].$cardsplit[13].$cardsplit[14].$cardsplit[15];
|
||||
|
||||
$ssl_invoice_number = $this->input->post('billing_contact').time();
|
||||
$ssl_transaction_type = "ccsale";
|
||||
$ssl_cvv2cvc2_indicator = 1;
|
||||
$country = "USA";
|
||||
|
||||
$fields = array(
|
||||
"ssl_merchant_id" => "500693",
|
||||
"ssl_user_id" => "webpage",
|
||||
"ssl_pin" => "MX0MD3",
|
||||
"ssl_transaction_type" => urlencode($ssl_transaction_type),
|
||||
"ssl_show_form" => "false",
|
||||
"ssl_cvv2cvc2_indicator" => urlencode($ssl_cvv2cvc2_indicator), //0=Bypassed; 1=present; 2=Illegible; 9=Not Present.
|
||||
"ssl_salestax" => "0",
|
||||
|
||||
"ssl_result_format" => "html",
|
||||
"ssl_test_mode" => "false",
|
||||
"ssl_receipt_apprvl_method" => "redg", // sends to page with long data string url
|
||||
//"ssl_receipt_apprvl_method" => "link", // just posts receipt with link at bottom
|
||||
"ssl_receipt_link_url" => "http://abc.mydataboxx.com/order-confirm",
|
||||
"ssl_error_url" => "http://abc.mydataboxx.com/order-confirm",
|
||||
|
||||
//submitted details
|
||||
"ssl_invoice_number" => urlencode($ssl_invoice_number),
|
||||
"ssl_customer_code" => urlencode($ssl_customer_code),
|
||||
"ssl_first_name" => urlencode($this->input->post('company_name')),
|
||||
"ssl_last_name" => urlencode($this->input->post('billing_contact')),
|
||||
"ssl_avs_address" => urlencode($this->input->post('street_adrs')),
|
||||
"ssl_address2" => urlencode($this->input->post('customer_id')),
|
||||
"ssl_avs_zip" => urlencode($this->input->post('post_code')),
|
||||
"ssl_state" => urlencode($this->input->post('state')),
|
||||
"ssl_city" => urlencode($this->input->post('city_name')),
|
||||
"ssl_country" => urlencode($country),
|
||||
"ssl_phone" => urlencode($this->input->post('phone_no')),
|
||||
"ssl_email" => urlencode($this->input->post('emai_id')),
|
||||
"ssl_card_number" => urlencode($this->input->post('card_number')),
|
||||
"ssl_exp_date" => urlencode($this->input->post('exp_month').$this->input->post('exp_year')),
|
||||
"ssl_cvv2cvc2" => urlencode($this->input->post('cvv_code')),
|
||||
"ssl_amount" => urlencode($this->session->userdata('granttotal'))
|
||||
|
||||
);
|
||||
|
||||
$url = "https://api.demo.convergepay.com/VirtualMerchantDemo/process.do";
|
||||
|
||||
//initialize the post string variable
|
||||
$fields_string = '';
|
||||
//build the post string
|
||||
foreach($fields as $key=>$value) { $fields_string .=$key.'='.$value.'&'; }
|
||||
rtrim($fields_string, "&");
|
||||
|
||||
//open curl session
|
||||
$ch = curl_init();
|
||||
//begin seting curl options
|
||||
//set URL
|
||||
curl_setopt($ch, CURLOPT_URL, $url); //set method
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
//set post data string
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
|
||||
//these two options are frequently necessary to avoid SSL errors with PHP
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||
|
||||
//perform the curl post and store the result
|
||||
$result = curl_exec($ch);
|
||||
//close the curl session
|
||||
curl_close($ch);
|
||||
//a nice message to prevent people from seeing a blank screen
|
||||
echo "Processing, please wait...";
|
||||
|
||||
//print_r($result);
|
||||
|
||||
$masterdata = array('reg_date'=>date("Y-m-d"),
|
||||
'reg_total'=>$this->session->userdata('granttotal'),
|
||||
'reg_class_count'=>count($this->session->userdata('cart')),
|
||||
'payment_type'=>$this->input->post('payment_type'),
|
||||
'card_holder_name'=>$this->input->post('card_holder_name'),
|
||||
'card_number'=>$this->input->post('card_number'),
|
||||
'card_type'=>$this->input->post('card_type'),
|
||||
'exp_month'=>$this->input->post('exp_month'),
|
||||
'exp_year'=>$this->input->post('exp_year'),
|
||||
'cvv_code'=>$this->input->post('cvv_code'),
|
||||
'company_name'=>$this->input->post('company_name'),
|
||||
'billing_contact'=>$this->input->post('billing_contact'),
|
||||
'customer_id'=>$this->input->post('customer_id'),
|
||||
'street_adrs'=>$this->input->post('street_adrs'),
|
||||
'city_name'=>$this->input->post('city_name'),
|
||||
'state'=>$this->input->post('state'),
|
||||
'post_code'=>$this->input->post('post_code'),
|
||||
'phone_no'=>$this->input->post('phone_no'),
|
||||
'fax_no'=>$this->input->post('fax_no'),
|
||||
'adtnal_instrction'=>$this->input->post('adtnal_instrction'),
|
||||
'details'=>$this->input->post('details'),
|
||||
'email_id'=>$this->input->post('emai_id'),
|
||||
'status'=>'unpaid');
|
||||
|
||||
$regid = $this->Index_model->regmaster($masterdata);
|
||||
if($regid)
|
||||
{
|
||||
$attotal = 0;
|
||||
$cart = $this->session->userdata('cart');/*Cart Session*/
|
||||
foreach ($cart as $cartcount => $form)
|
||||
{
|
||||
$mcount = $this->session->userdata('mcount'.$form);
|
||||
$mpluscount = $this->session->userdata('mpluscount'.$form);
|
||||
$ncount = $this->session->userdata('ncount'.$form);
|
||||
$npluscount = $this->session->userdata('npluscount'.$form);
|
||||
$scount = $this->session->userdata('scount'.$form);
|
||||
$attcount = ($mcount + $mpluscount + $ncount + $npluscount + $scount); /*Attendee Count*/
|
||||
$classdata = array('reg_id'=>$regid,'form_id'=>$form,
|
||||
'att_count'=>$attcount,
|
||||
'regclass_total_price'=>$this->session->userdata('classtotal'.$form));
|
||||
$classform = $this->Index_model->returnclass($form);
|
||||
$remainseats = $classform->remain_seats-$attcount;
|
||||
$this->Index_model->remainclass($remainseats,$form);
|
||||
$regclassid = $this->Index_model->classdata($classdata);
|
||||
$classform = $this->session->userdata('classform'.$form);
|
||||
foreach ($classform as $formcount => $data)
|
||||
{
|
||||
$mprice = $data['class_price_m'];
|
||||
$mplusprice = $data['class_price_m2'];
|
||||
$nprice = $data['class_price_n'];
|
||||
$nplusprice = $data['class_price_n2'];
|
||||
$sprice = $data['class_price_s'];
|
||||
}
|
||||
|
||||
if($regclassid)
|
||||
{
|
||||
$attmcount = 0;
|
||||
$attmpcount = 0;
|
||||
$attncount = 0;
|
||||
$attnpcount = 0;
|
||||
$attscount = 0;
|
||||
|
||||
$member = $this->session->userdata('member'.$form);
|
||||
if (!empty($member) || isset($member['M']))
|
||||
{
|
||||
foreach ($member['M'] as $key => $val)
|
||||
{
|
||||
$attendedata = array(
|
||||
'reg_id'=>$regid,
|
||||
'regclass_id'=>$regclassid,
|
||||
'reg_m_type'=>'M',
|
||||
'att_f_name'=>isset($val['first_name'])? $val['first_name'] : '',
|
||||
'att_l_name'=>isset($val['last_name'])? $val['last_name'] : '',
|
||||
'att_email'=>isset($val['email_id'])? $val['email_id'] : '',
|
||||
'att_number'=>isset($val['phone_no'])? $val['phone_no'] : '',
|
||||
'att_ssn'=>isset($val['ssn'])? $val['ssn'] : '',
|
||||
'att_price'=>$mprice );
|
||||
$data = $this->Index_model->attendedata($attendedata);
|
||||
$attmcount+=1;
|
||||
}
|
||||
}
|
||||
|
||||
$memplus = $this->session->userdata('memplus'.$form);
|
||||
if (!empty($memplus) || isset($memplus['M2']))
|
||||
{
|
||||
foreach ($memplus['M2'] as $key => $val)
|
||||
{
|
||||
$attendedata = array(
|
||||
'reg_id'=>$regid,
|
||||
'regclass_id'=>$regclassid,
|
||||
'reg_m_type'=>'M2',
|
||||
'att_f_name'=>isset($val['first_name'])? $val['first_name'] : '',
|
||||
'att_l_name'=>isset($val['last_name'])? $val['last_name'] : '',
|
||||
'att_email'=>isset($val['email_id'])? $val['email_id'] : '',
|
||||
'att_number'=>isset($val['phone_no'])? $val['phone_no'] : '',
|
||||
'att_ssn'=>isset($val['ssn'])? $val['ssn'] : '',
|
||||
'att_price'=>$mplusprice );
|
||||
$data = $this->Index_model->attendedata($attendedata);
|
||||
$attmpcount+=1;
|
||||
}
|
||||
}
|
||||
|
||||
$nonmember = $this->session->userdata('nonmember'.$form);
|
||||
if (!empty($nonmember) || isset($nonmember['N']))
|
||||
{
|
||||
foreach ($nonmember['N'] as $key => $val)
|
||||
{
|
||||
$attendedata = array(
|
||||
'reg_id'=>$regid,
|
||||
'regclass_id'=>$regclassid,
|
||||
'reg_m_type'=>'N',
|
||||
'att_f_name'=>isset($val['first_name'])? $val['first_name'] : '',
|
||||
'att_l_name'=>isset($val['last_name'])? $val['last_name'] : '',
|
||||
'att_email'=>isset($val['email_id'])? $val['email_id'] : '',
|
||||
'att_number'=>isset($val['phone_no'])? $val['phone_no'] : '',
|
||||
'att_ssn'=>isset($val['ssn'])? $val['ssn'] : '',
|
||||
'att_price'=>$nprice );
|
||||
$data = $this->Index_model->attendedata($attendedata);
|
||||
$attncount+=1;
|
||||
}
|
||||
}
|
||||
|
||||
$nonplus = $this->session->userdata('nonplus'.$form);
|
||||
if (!empty($nonplus) || isset($nonplus['N2']))
|
||||
{
|
||||
foreach ($nonplus['N2'] as $key => $val)
|
||||
{
|
||||
$attendedata = array(
|
||||
'reg_id'=>$regid,
|
||||
'regclass_id'=>$regclassid,
|
||||
'reg_m_type'=>'N2',
|
||||
'att_f_name'=>isset($val['first_name'])? $val['first_name'] : '',
|
||||
'att_l_name'=>isset($val['last_name'])? $val['last_name'] : '',
|
||||
'att_email'=>isset($val['email_id'])? $val['email_id'] : '',
|
||||
'att_number'=>isset($val['phone_no'])? $val['phone_no'] : '',
|
||||
'att_ssn'=>isset($val['ssn'])? $val['ssn'] : '',
|
||||
'att_price'=>$nplusprice );
|
||||
$data = $this->Index_model->attendedata($attendedata);
|
||||
$attnpcount+=1;
|
||||
}
|
||||
}
|
||||
|
||||
$semember = $this->session->userdata('semember'.$form);
|
||||
if (!empty($semember) || isset($semember['S']))
|
||||
{
|
||||
foreach ($semember['S'] as $key => $val)
|
||||
{
|
||||
$attendedata = array(
|
||||
'reg_id'=>$regid,
|
||||
'regclass_id'=>$regclassid,
|
||||
'reg_m_type'=>'S',
|
||||
'att_f_name'=>isset($val['first_name'])? $val['first_name'] : '',
|
||||
'att_l_name'=>isset($val['last_name'])? $val['last_name'] : '',
|
||||
'att_email'=>isset($val['email_id'])? $val['email_id'] : '',
|
||||
'att_number'=>isset($val['phone_no'])? $val['phone_no'] : '',
|
||||
'att_ssn'=>isset($val['ssn'])? $val['ssn'] : '',
|
||||
'att_price'=>$sprice );
|
||||
$data = $this->Index_model->attendedata($attendedata);
|
||||
$attscount+=1;
|
||||
}
|
||||
}
|
||||
}
|
||||
$attotal+= $attmcount + $attmpcount + $attncount + $attnpcount + $attscount; /*Attendee Total Count*/
|
||||
}
|
||||
$this->Index_model->attotal($attotal,$regid);
|
||||
$this->session->set_flashdata('success_msg','Your Order Has Been Completed Successfully.');
|
||||
redirect('order-confirm');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Something Wrong Happen..! Register Again.');
|
||||
redirect('order-confirm');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
361
php/application/controllers/Registration.php
Normal file
361
php/application/controllers/Registration.php
Normal file
@ -0,0 +1,361 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Registration extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->library('session');
|
||||
$this->load->model('Index_model');
|
||||
}
|
||||
|
||||
public function index($locat_id=NULL)
|
||||
{
|
||||
$data['reg_location']=$this->Index_model->reg_location();
|
||||
$first_locat=$this->Index_model->first_location();
|
||||
$data['first_loc']=$first_locat->locat_id;
|
||||
if($locat_id)
|
||||
{
|
||||
$loc = $locat_id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$loc = $first_locat->locat_id;
|
||||
}
|
||||
$data['reg_class']=$this->Index_model->reg_class($loc);
|
||||
$this->load->view('front/index',$data);
|
||||
}
|
||||
|
||||
public function reset_fn()
|
||||
{
|
||||
$this->session->sess_destroy();
|
||||
redirect(base_url());
|
||||
}
|
||||
|
||||
public function unset_fn($form,$key,$price,$type)
|
||||
{
|
||||
if($type=='M')
|
||||
{
|
||||
$member = $this->session->userdata('member'.$form);
|
||||
foreach ($member as $count => $subArr) {
|
||||
unset($member[$count][$key]);
|
||||
}
|
||||
$this->session->set_userdata('member'.$form,$member);
|
||||
$classtotal = $this->session->userdata('classtotal'.$form);
|
||||
$currentp = $classtotal - $price;
|
||||
$this->session->set_userdata('classtotal'.$form,$currentp);
|
||||
}
|
||||
elseif($type=='M2')
|
||||
{
|
||||
$memplus = $this->session->userdata('memplus'.$form);
|
||||
foreach ($memplus as $count => $subArr) {
|
||||
unset($memplus[$count][$key]);
|
||||
}
|
||||
$this->session->set_userdata('memplus'.$form,$memplus);
|
||||
$classtotal = $this->session->userdata('classtotal'.$form);
|
||||
$currentp = $classtotal - $price;
|
||||
$this->session->set_userdata('classtotal'.$form,$currentp);
|
||||
}
|
||||
elseif ($type=='N')
|
||||
{
|
||||
$nonmember = $this->session->userdata('nonmember'.$form);
|
||||
foreach ($nonmember as $count => $subArr) {
|
||||
unset($nonmember[$count][$key]);
|
||||
}
|
||||
$this->session->set_userdata('nonmember'.$form,$nonmember);
|
||||
$classtotal = $this->session->userdata('classtotal'.$form);
|
||||
$currentp = $classtotal - $price;
|
||||
$this->session->set_userdata('classtotal'.$form,$currentp);
|
||||
}
|
||||
elseif ($type=='N2')
|
||||
{
|
||||
$nonplus = $this->session->userdata('nonplus'.$form);
|
||||
foreach ($nonplus as $count => $subArr) {
|
||||
unset($nonplus[$count][$key]);
|
||||
}
|
||||
$this->session->set_userdata('nonplus'.$form,$nonplus);
|
||||
$classtotal = $this->session->userdata('classtotal'.$form);
|
||||
$currentp = $classtotal - $price;
|
||||
$this->session->set_userdata('classtotal'.$form,$currentp);
|
||||
}
|
||||
elseif ($type=='S')
|
||||
{
|
||||
$semember = $this->session->userdata('semember'.$form);
|
||||
foreach ($semember as $count => $subArr) {
|
||||
unset($semember[$count][$key]);
|
||||
}
|
||||
$this->session->set_userdata('semember'.$form,$semember);
|
||||
$classtotal = $this->session->userdata('classtotal'.$form);
|
||||
$currentp = $classtotal - $price;
|
||||
$this->session->set_userdata('classtotal'.$form,$currentp);
|
||||
}
|
||||
$urlcheck = $this->session->userdata('urlcheck');
|
||||
if($urlcheck)
|
||||
{
|
||||
redirect('loc-class/'.$urlcheck);
|
||||
}else{
|
||||
redirect(base_url());
|
||||
}
|
||||
}
|
||||
|
||||
public function manage_reg()
|
||||
{
|
||||
$form_class = $this->input->post('form_class');
|
||||
if(!empty($form_class))
|
||||
{
|
||||
foreach ($form_class as $form)
|
||||
{
|
||||
if (!empty($this->input->post('m_first_name_'.$form)) || isset($this->input->post('m_first_name_'.$form)['m_first_name_'.$form]))
|
||||
{
|
||||
foreach ($this->input->post('m_first_name_'.$form) as $mnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$member[$form]['M'][$mnamecount]['first_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('m_last_name_'.$form) as $mnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$member[$form]['M'][$mnamecount]['last_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('m_email_id_'.$form) as $mnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$member[$form]['M'][$mnamecount]['email_id'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('m_phone_no_'.$form) as $mnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$member[$form]['M'][$mnamecount]['phone_no'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('m_ssn_'.$form) as $mnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$member[$form]['M'][$mnamecount]['ssn'] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($member))
|
||||
{
|
||||
$this->session->set_userdata('member'.$form,$member[$form]); /* Session Of Member */
|
||||
}
|
||||
else { $m = 0; }
|
||||
}
|
||||
|
||||
|
||||
if (!empty($this->input->post('mp_first_name_'.$form)) || isset($this->input->post('mp_first_name_'.$form)['mp_first_name_'.$form]))
|
||||
{
|
||||
foreach ($this->input->post('mp_first_name_'.$form) as $mplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$memplus[$form]['M2'][$mplusnmeount]['first_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('mp_last_name_'.$form) as $mplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$memplus[$form]['M2'][$mplusnmeount]['last_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('mp_email_id_'.$form) as $mplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$memplus[$form]['M2'][$mplusnmeount]['email_id'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('mp_phone_no_'.$form) as $mplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$memplus[$form]['M2'][$mplusnmeount]['phone_no'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('mp_ssn_'.$form) as $mplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$memplus[$form]['M2'][$mplusnmeount]['ssn'] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($memplus))
|
||||
{
|
||||
$this->session->set_userdata('memplus'.$form,$memplus[$form]); /* Session Of Member 2+ */
|
||||
}
|
||||
else { $mp = 0; }
|
||||
}
|
||||
|
||||
|
||||
if (!empty($this->input->post('n_first_name_'.$form)) || isset($this->input->post('n_first_name_'.$form)['n_first_name_'.$form]))
|
||||
{
|
||||
foreach ($this->input->post('n_first_name_'.$form) as $nnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonmember[$form]['N'][$nnamecount]['first_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('n_last_name_'.$form) as $nnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonmember[$form]['N'][$nnamecount]['last_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('n_email_id_'.$form) as $nnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonmember[$form]['N'][$nnamecount]['email_id'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('n_phone_no_'.$form) as $nnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonmember[$form]['N'][$nnamecount]['phone_no'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('n_ssn_'.$form) as $nnamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonmember[$form]['N'][$nnamecount]['ssn'] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($nonmember))
|
||||
{
|
||||
$this->session->set_userdata('nonmember'.$form,$nonmember[$form]); /* Session Of Non Member */
|
||||
}
|
||||
else { $n = 0; }
|
||||
}
|
||||
|
||||
|
||||
if (!empty($this->input->post('np_first_name_'.$form)) || isset($this->input->post('np_first_name_'.$form)['np_first_name_'.$form]))
|
||||
{
|
||||
foreach ($this->input->post('np_first_name_'.$form) as $nplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonplus[$form]['N2'][$nplusnmeount]['first_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('np_last_name_'.$form) as $nplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonplus[$form]['N2'][$nplusnmeount]['last_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('np_email_id_'.$form) as $nplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonplus[$form]['N2'][$nplusnmeount]['email_id'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('np_phone_no_'.$form) as $nplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonplus[$form]['N2'][$nplusnmeount]['phone_no'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('np_ssn_'.$form) as $nplusnmeount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$nonplus[$form]['N2'][$nplusnmeount]['ssn'] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($nonplus))
|
||||
{
|
||||
$this->session->set_userdata('nonplus'.$form,$nonplus[$form]); /* Session Of Non Member 2+*/
|
||||
}
|
||||
else { $np = 0; }
|
||||
}
|
||||
|
||||
|
||||
if (!empty($this->input->post('s_first_name_'.$form)) || isset($this->input->post('s_first_name_'.$form)['s_first_name_'.$form]))
|
||||
{
|
||||
foreach ($this->input->post('s_first_name_'.$form) as $snamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$semember[$form]['S'][$snamecount]['first_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('s_last_name_'.$form) as $snamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$semember[$form]['S'][$snamecount]['last_name'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('s_email_id_'.$form) as $snamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$semember[$form]['S'][$snamecount]['email_id'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('s_phone_no_'.$form) as $snamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$semember[$form]['S'][$snamecount]['phone_no'] = $value;
|
||||
}
|
||||
}
|
||||
foreach ($this->input->post('s_ssn_'.$form) as $snamecount => $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
{
|
||||
$semember[$form]['S'][$snamecount]['ssn'] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($semember))
|
||||
{
|
||||
$this->session->set_userdata('semember'.$form,$semember[$form]); /* Session Of Subscribing Employer */
|
||||
}
|
||||
else { $s = 0; }
|
||||
}
|
||||
// if($m==0 && $mp==0 && $n==0 && $np==0 && $s==0)
|
||||
// {
|
||||
// $currenturl = $this->session->userdata('urlcheck');
|
||||
// $this->session->sess_destroy();
|
||||
// if($currenturl)
|
||||
// {
|
||||
// redirect('loc-class/'.$currenturl);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// redirect(base_url());
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
$this->session->set_userdata('cart',$form_class);
|
||||
redirect('review-order');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
137
php/application/controllers/Review.php
Normal file
137
php/application/controllers/Review.php
Normal file
@ -0,0 +1,137 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Review extends CI_Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->model('Index_model');
|
||||
}
|
||||
public function review_order()
|
||||
{
|
||||
$cart = $this->session->userdata('cart');
|
||||
if(empty($cart))
|
||||
{
|
||||
redirect(base_url());
|
||||
}
|
||||
else
|
||||
{
|
||||
$granttotal = 0;
|
||||
foreach ($cart as $cartcount => $form) {
|
||||
$mtotal = 0;
|
||||
$mptotal = 0;
|
||||
$ntotal = 0;
|
||||
$nptotal = 0;
|
||||
$stotal = 0;
|
||||
$data['classform'.$form]=$this->Index_model->returnform($form);
|
||||
|
||||
$classform = $this->Index_model->returnclass($form);
|
||||
|
||||
$this->session->set_userdata('classform'.$form,$data['classform'.$form]);
|
||||
|
||||
/*Member*/
|
||||
|
||||
$member = ($this->session->userdata('member'.$form));
|
||||
|
||||
if (!empty($member) || isset($member['M'])) {
|
||||
$i = 1;
|
||||
foreach ($member['M'] as $key => $value) {
|
||||
$i++;
|
||||
}
|
||||
$this->session->set_userdata('mcount'.$form,$i-1);
|
||||
$mtotal = $classform->class_price_m * ($i-1);
|
||||
}
|
||||
|
||||
/*Member End*/
|
||||
|
||||
/*Member 2+*/
|
||||
|
||||
$memplus = ($this->session->userdata('memplus'.$form));
|
||||
|
||||
if (!empty($memplus) || isset($memplus['M2'])) {
|
||||
$i = 1;
|
||||
foreach ($memplus['M2'] as $key => $value) {
|
||||
$i++;
|
||||
}
|
||||
$this->session->set_userdata('mpluscount'.$form,$i-1);
|
||||
$mptotal = $classform->class_price_m2 * ($i-1);
|
||||
}
|
||||
|
||||
/*Member 2+ End*/
|
||||
|
||||
/*Non Member*/
|
||||
|
||||
$nonmember = $this->session->userdata('nonmember'.$form);
|
||||
|
||||
if (!empty($nonmember) || isset($nonmember['N'])) {
|
||||
$i = 1;
|
||||
foreach ($nonmember['N'] as $key => $value) {
|
||||
$i++;
|
||||
}
|
||||
$this->session->set_userdata('ncount'.$form,$i-1);
|
||||
$ntotal = $classform->class_price_n * ($i-1);
|
||||
}
|
||||
|
||||
/*Non Member End*/
|
||||
|
||||
/*Non Member 2+*/
|
||||
|
||||
$nonplus = $this->session->userdata('nonplus'.$form);
|
||||
|
||||
if (!empty($nonplus) || isset($nonplus['N2'])) {
|
||||
$i = 1;
|
||||
foreach ($nonplus['N2'] as $key => $value) {
|
||||
$i++;
|
||||
}
|
||||
$this->session->set_userdata('npluscount'.$form,$i-1);
|
||||
$nptotal = $classform->class_price_n2 * ($i-1);
|
||||
}
|
||||
|
||||
/*Non Member 2+ End*/
|
||||
|
||||
/*Employee*/
|
||||
|
||||
$semember = $this->session->userdata('semember'.$form);
|
||||
|
||||
if (!empty($semember) || isset($semember['S'])) {
|
||||
$i = 1;
|
||||
foreach ($semember['S'] as $key => $value) {
|
||||
$i++;
|
||||
}
|
||||
$this->session->set_userdata('scount'.$form,$i-1);
|
||||
$stotal = $classform->class_price_s * ($i-1);
|
||||
}
|
||||
|
||||
/*Employee End*/
|
||||
|
||||
if(isset($mtotal)) { $mtot = $mtotal; } else { $mtot = 0; }
|
||||
if(isset($mptotal)) { $mptot = $mptotal; } else { $mptot = 0; }
|
||||
if(isset($ntotal)) { $ntot = $ntotal; } else { $ntot = 0; }
|
||||
if(isset($nptotal)) { $nptot = $nptotal; } else { $nptot = 0; }
|
||||
if(isset($stotal)) { $stot = $stotal; } else { $stot = 0; }
|
||||
$classtotal = $mtot + $mptot + $ntot + $nptot + $stot; /*Class Total*/
|
||||
$this->session->set_userdata('classtotal'.$form,$classtotal);
|
||||
$granttotal+=$classtotal;
|
||||
}
|
||||
$this->session->set_userdata('granttotal',$granttotal);
|
||||
$this->load->view('front/review');
|
||||
}
|
||||
}
|
||||
|
||||
public function back()
|
||||
{
|
||||
$urlcheck = $this->session->userdata('urlcheck');
|
||||
if($urlcheck)
|
||||
{
|
||||
redirect('loc-class/'.$urlcheck);
|
||||
}else{
|
||||
redirect(base_url());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
25
php/application/controllers/Welcome.php
Normal file
25
php/application/controllers/Welcome.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Welcome extends CI_Controller {
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
*
|
||||
* Maps to the following URL
|
||||
* http://example.com/index.php/welcome
|
||||
* - or -
|
||||
* http://example.com/index.php/welcome/index
|
||||
* - or -
|
||||
* Since this controller is set as the default controller in
|
||||
* config/routes.php, it's displayed at http://example.com/
|
||||
*
|
||||
* So any other public methods not prefixed with an underscore will
|
||||
* map to /index.php/welcome/<method_name>
|
||||
* @see https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('welcome_message');
|
||||
}
|
||||
}
|
96
php/application/controllers/admin/Admin.php
Normal file
96
php/application/controllers/admin/Admin.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Admin extends CI_Controller
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->library('session');
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->library('userauth');
|
||||
$this->load->library('password');
|
||||
$this->load->model('Admin_model');
|
||||
$this->load->helper('cookie');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('admin/login');
|
||||
}
|
||||
|
||||
public function dashboard()
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$data['class'] = $this->Admin_model->totalrows('tbl_classname','*');
|
||||
$data['creates'] = $this->Admin_model->totalrows('tbl_classform','*');
|
||||
$data['users'] = $this->Admin_model->totalrows('tbl_usermaster','*');
|
||||
$data['list'] = $this->Admin_model->totalrows('tbl_regmaster','*');
|
||||
$this->load->view('admin/dashboard',$data);
|
||||
}
|
||||
|
||||
public function login()
|
||||
{
|
||||
|
||||
$data['username'] = get_cookie('swebin_user_ad');
|
||||
$data['password'] = $this->password->decrypt_password(get_cookie('swebin_sec'));
|
||||
|
||||
$this->form_validation->set_rules('username', 'username', 'trim|required');
|
||||
$this->form_validation->set_rules('password', 'password', 'trim|required');
|
||||
|
||||
if ($this->form_validation->run() == FALSE)
|
||||
{
|
||||
$this->load->view('admin/login',$data);
|
||||
}
|
||||
else
|
||||
{
|
||||
$username = $this->input->post('username');
|
||||
$password_input = $this->input->post('password');
|
||||
$remember_me = $this->input->post('remember_me');
|
||||
$password = $this->password->encrypt_password($password_input);
|
||||
|
||||
if($remember_me)
|
||||
{
|
||||
$expire = time()+365*60*60*24;
|
||||
|
||||
set_cookie('abc_user',$username, $expire);
|
||||
set_cookie('abc_password',$password, $expire);
|
||||
}
|
||||
else
|
||||
{
|
||||
delete_cookie('abc_user');
|
||||
delete_cookie('abc_password');
|
||||
}
|
||||
|
||||
|
||||
$data = $this->Admin_model->login_valid($username,$password);
|
||||
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_userdata('user_id',$data['user_id']);
|
||||
$this->session->set_userdata('user_name',$data['user_name']);
|
||||
$this->session->set_userdata('user_type',$data['user_type']);
|
||||
|
||||
redirect('admin/dashboard');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('login_failed', 'Error Occur. Login Failed..!');
|
||||
$this->load->view('admin/login',$data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function logout()
|
||||
{
|
||||
$this->session->sess_destroy();
|
||||
redirect('admin', 'refresh');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
258
php/application/controllers/admin/Classsetting.php
Normal file
258
php/application/controllers/admin/Classsetting.php
Normal file
@ -0,0 +1,258 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Classsetting extends CI_Controller
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->library('userauth');
|
||||
$this->load->library('password');
|
||||
$this->load->model('Class_model');
|
||||
}
|
||||
|
||||
public function cl_name()
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$data['all_class']=$this->Class_model->all_class();
|
||||
$this->load->view('admin/classsetting-names',$data);
|
||||
}
|
||||
|
||||
public function cl_locations()
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$data['all_locations']=$this->Class_model->all_locations();
|
||||
$this->load->view('admin/classsetting-location',$data);
|
||||
}
|
||||
|
||||
public function cl_instructors()
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$data['all_instructors']=$this->Class_model->all_instructors();
|
||||
$this->load->view('admin/classsetting-instructor',$data);
|
||||
}
|
||||
|
||||
//CLASS
|
||||
|
||||
//manage class
|
||||
|
||||
public function manage_class()
|
||||
{
|
||||
$class_name = array('class_name'=>$this->input->post('class_name'));
|
||||
$action = $this->input->post('submit');
|
||||
if($action == "Add")
|
||||
{
|
||||
$data = $this->Class_model->create_class($class_name);
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Class Created Successfully');
|
||||
redirect('admin/class-name');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-name');
|
||||
}
|
||||
}
|
||||
elseif($action == "Update")
|
||||
{
|
||||
$class_id = $this->input->post('class_id');
|
||||
$data = $this->Class_model->update_class($class_name,$class_id);
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Class Updated Successfully');
|
||||
redirect('admin/class-name');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-name');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//end manage class
|
||||
|
||||
//return class
|
||||
|
||||
public function return_class($class_id)
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$return_class = $this->Class_model->return_class($class_id);
|
||||
$data['class_id']=$return_class->class_id;
|
||||
$data['class_name']=$return_class->class_name;
|
||||
$data['all_class']=$this->Class_model->all_class();
|
||||
$this->load->view('admin/classsetting-names',$data);
|
||||
}
|
||||
|
||||
//end return class
|
||||
|
||||
//delete class
|
||||
|
||||
function delete_class($class_id)
|
||||
{
|
||||
$delete_class = $this->Class_model->delete_class($class_id);
|
||||
if($delete_class)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Class Deleted Successfully');
|
||||
redirect('admin/class-name');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-name');
|
||||
}
|
||||
}
|
||||
|
||||
//end delete class
|
||||
|
||||
|
||||
//LOCATION
|
||||
|
||||
//manage location
|
||||
|
||||
public function manage_location()
|
||||
{
|
||||
$location_name = array('locat_name'=>$this->input->post('locat_name'));
|
||||
$action = $this->input->post('submit');
|
||||
if($action == "Add")
|
||||
{
|
||||
$data = $this->Class_model->create_location($location_name);
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Location Created Successfully');
|
||||
redirect('admin/class-locations');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-locations');
|
||||
}
|
||||
}
|
||||
elseif($action == "Update")
|
||||
{
|
||||
$locat_id = $this->input->post('locat_id');
|
||||
$data = $this->Class_model->update_location($location_name,$locat_id);
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Location Updated Successfully');
|
||||
redirect('admin/class-locations');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-locations');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//end location class
|
||||
|
||||
//return location
|
||||
|
||||
public function return_location($locat_id)
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$return_location = $this->Class_model->return_location($locat_id);
|
||||
$data['locat_id']=$return_location->locat_id;
|
||||
$data['locat_name']=$return_location->locat_name;
|
||||
$data['all_locations']=$this->Class_model->all_locations();
|
||||
$this->load->view('admin/classsetting-location',$data);
|
||||
}
|
||||
|
||||
//end return location
|
||||
|
||||
//delete location
|
||||
|
||||
function delete_location($locat_id)
|
||||
{
|
||||
$delete_location = $this->Class_model->delete_location($locat_id);
|
||||
if($delete_location)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Location Deleted Successfully');
|
||||
redirect('admin/class-locations');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-locations');
|
||||
}
|
||||
}
|
||||
|
||||
//end delete location
|
||||
|
||||
//INSTRUCTORS
|
||||
|
||||
//manage Instructors
|
||||
|
||||
public function manage_instructor()
|
||||
{
|
||||
$instructor_name = array('instr_name'=>$this->input->post('instr_name'));
|
||||
$action = $this->input->post('submit');
|
||||
if($action == "Add")
|
||||
{
|
||||
$data = $this->Class_model->create_instructors($instructor_name);
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Instructor Added Successfully');
|
||||
redirect('admin/class-instructors');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-instructors');
|
||||
}
|
||||
}
|
||||
elseif($action == "Update")
|
||||
{
|
||||
$instr_id = $this->input->post('instr_id');
|
||||
$data = $this->Class_model->update_instructors($instructor_name,$instr_id);
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Instructors Updated Successfully');
|
||||
redirect('admin/class-instructors');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-instructors');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//end manage instructors
|
||||
|
||||
//return instructors
|
||||
|
||||
public function return_instructors($instr_id)
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$return_instructors = $this->Class_model->return_instructors($instr_id);
|
||||
$data['instr_id']=$return_instructors->instr_id;
|
||||
$data['instr_name']=$return_instructors->instr_name;
|
||||
$data['all_instructors']=$this->Class_model->all_instructors();
|
||||
$this->load->view('admin/classsetting-instructor',$data);
|
||||
}
|
||||
|
||||
//end return instructors
|
||||
|
||||
//delete instructors
|
||||
|
||||
function delete_instructors($instr_id)
|
||||
{
|
||||
$delete_instructors = $this->Class_model->delete_instructors($instr_id);
|
||||
if($delete_instructors)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Instructor Deleted Successfully');
|
||||
redirect('admin/class-instructors');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/class-instructors');
|
||||
}
|
||||
}
|
||||
|
||||
//end delete instructors
|
||||
|
||||
}
|
||||
|
||||
?>
|
222
php/application/controllers/admin/Createclass.php
Normal file
222
php/application/controllers/admin/Createclass.php
Normal file
@ -0,0 +1,222 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Createclass extends CI_Controller
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->model('Create_model');
|
||||
$this->load->library('userauth');
|
||||
}
|
||||
|
||||
public function cl_create()
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$data['class_name']=$this->Create_model->getData('tbl_classname');
|
||||
$data['class_instructor']=$this->Create_model->getData('tbl_instructors');
|
||||
$data['class_location']=$this->Create_model->getData('tbl_classlocations');
|
||||
$data['all_class']=$this->Create_model->getAll();
|
||||
$this->load->view('admin/class-create',$data);
|
||||
}
|
||||
|
||||
public function manage_create()
|
||||
{
|
||||
$action = $this->input->post('submit');
|
||||
|
||||
$form_data = array('class_id'=>$this->input->post('class_id'),
|
||||
'class_seats'=>$this->input->post('class_seats'),
|
||||
'remain_seats'=>$this->input->post('class_seats'),
|
||||
'instr_id'=>$this->input->post('instr_id'),
|
||||
'class_hours'=>$this->input->post('class_hours'),
|
||||
'class_registrants'=>implode(",",$this->input->post('class_registrants')),
|
||||
'class_price_m'=>$this->input->post('class_price_m'),
|
||||
'class_price_m2'=>$this->input->post('class_price_m2'),
|
||||
'class_price_n'=>$this->input->post('class_price_n'),
|
||||
'class_price_n2'=>$this->input->post('class_price_n2'),
|
||||
'class_price_s'=>$this->input->post('class_price_s'),
|
||||
'class_day'=>implode(',', (array) $this->input->post('class_day')),
|
||||
'calss_start_date'=>date("y-m-d",strtotime($this->input->post('calss_start_date'))),
|
||||
'calss_end_date'=>date("y-m-d",strtotime($this->input->post('calss_end_date'))),
|
||||
'calss_start_time'=>date('H:i:s',strtotime($this->input->post('calss_start_time'))),
|
||||
'calss_end_time'=>date('H:i:s',strtotime($this->input->post('calss_end_time'))),
|
||||
'locat_id'=>$this->input->post('locat_id'),
|
||||
'class_room'=>$this->input->post('class_room'),
|
||||
'class_address'=>$this->input->post('class_address'),
|
||||
'class_city'=>$this->input->post('class_city'),
|
||||
'class_state'=>$this->input->post('class_state'),
|
||||
'class_code'=>$this->input->post('class_code'),
|
||||
'class_phone'=>$this->input->post('class_phone'),
|
||||
'class_description'=>$this->input->post('class_description'));
|
||||
|
||||
if($action == "Add")
|
||||
{
|
||||
$data = $this->Create_model->insertRow('tbl_classform',$form_data);
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Class Added Successfully');
|
||||
redirect('admin/create-class');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/create-class');
|
||||
}
|
||||
}
|
||||
elseif($action == "Update")
|
||||
{
|
||||
$form_id = $this->input->post('form_id');
|
||||
$data = $this->Create_model->updateRow('tbl_classform','form_id',$form_id,$form_data);
|
||||
if($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Class Updated Successfully');
|
||||
redirect('admin/create-class');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/create-class');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*Return form*/
|
||||
|
||||
public function return_form($form_id)
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$return_form = $this->Create_model->returnForm($form_id);
|
||||
$data['form_id']=$return_form->form_id;
|
||||
$data['class_name']=$return_form->class_name;
|
||||
$data['class_id']=$return_form->class_id;
|
||||
|
||||
$data['class_seats']=$return_form->class_seats;
|
||||
$data['instr_name']=$return_form->instr_name;
|
||||
$data['instr_id']=$return_form->instr_id;
|
||||
|
||||
$data['class_hours']=$return_form->class_hours;
|
||||
$data['class_registrants']=explode(",",$return_form->class_registrants);
|
||||
$data['class_price_m']=$return_form->class_price_m;
|
||||
$data['class_price_m2']=$return_form->class_price_m2;
|
||||
$data['class_price_n']=$return_form->class_price_n;
|
||||
$data['class_price_n2']=$return_form->class_price_n2;
|
||||
$data['class_price_s']=$return_form->class_price_s;
|
||||
$data['class_day']=explode(",",$return_form->class_day);
|
||||
|
||||
$data['calss_start_date']=date("d-m-Y",strtotime($return_form->calss_start_date));
|
||||
$data['calss_end_date']=date("d-m-Y",strtotime($return_form->calss_end_date));
|
||||
|
||||
$data['calss_start_time'] = date('h:i A',strtotime($return_form->calss_start_time));
|
||||
$data['calss_end_time'] = date('h:i A',strtotime($return_form->calss_end_time));
|
||||
|
||||
$data['locat_id']=$return_form->locat_id;
|
||||
$data['locat_name']=$return_form->locat_name;
|
||||
|
||||
$data['class_room']=$return_form->class_room;
|
||||
$data['class_address']=$return_form->class_address;
|
||||
$data['class_city']=$return_form->class_city;
|
||||
$data['class_state']=$return_form->class_state;
|
||||
$data['class_code']=$return_form->class_code;
|
||||
$data['class_phone']=$return_form->class_phone;
|
||||
$data['class_description']=$return_form->class_description;
|
||||
|
||||
$data['class_name']=$this->Create_model->getData('tbl_classname');
|
||||
$data['class_instructor']=$this->Create_model->getData('tbl_instructors');
|
||||
$data['class_location']=$this->Create_model->getData('tbl_classlocations');
|
||||
$data['all_class']=$this->Create_model->getAll();
|
||||
$this->load->view('admin/class-create',$data);
|
||||
}
|
||||
|
||||
/*Delete Form*/
|
||||
|
||||
function delete_form($form_id="")
|
||||
{
|
||||
if($form_id!="")
|
||||
{
|
||||
$delete_class = $this->Create_model->deleteForm('tbl_classform','form_id',$form_id); /*Delete Class By ID*/
|
||||
if($delete_class)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Class Deleted Successfully');
|
||||
redirect('admin/create-class');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/create-class');
|
||||
}
|
||||
}
|
||||
elseif(!empty($this->input->post('check_id')))
|
||||
{
|
||||
$action = $this->input->post('action');
|
||||
$check_id = array();
|
||||
$check_id = $this->input->post('check_id');
|
||||
|
||||
if($action=='delete') /*Delete Multiple Classes*/
|
||||
{
|
||||
foreach ($check_id as $key => $value)
|
||||
{
|
||||
$delete_class = $this->Create_model->deleteForm('tbl_classform','form_id',$value);
|
||||
}
|
||||
if($delete_class)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Records Deleted Successfully');
|
||||
redirect('admin/create-class');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/create-class');
|
||||
}
|
||||
}
|
||||
elseif ($action=='duplicate') /*Duplicate Class*/
|
||||
{
|
||||
foreach ($check_id as $key => $value)
|
||||
{
|
||||
$duplicate_class = $this->Create_model->returnForm($value);
|
||||
$form_data = array('class_id'=>$duplicate_class->class_id,
|
||||
'class_seats'=>$duplicate_class->class_seats,
|
||||
'remain_seats'=>$duplicate_class->class_seats,
|
||||
'instr_id'=>$duplicate_class->instr_id,
|
||||
'class_hours'=>$duplicate_class->class_hours,
|
||||
'class_registrants'=>$duplicate_class->class_registrants,
|
||||
'class_price_m'=>$duplicate_class->class_price_m,
|
||||
'class_price_m2'=>$duplicate_class->class_price_m2,
|
||||
'class_price_n'=>$duplicate_class->class_price_n,
|
||||
'class_price_n2'=>$duplicate_class->class_price_n2,
|
||||
'class_price_s'=>$duplicate_class->class_price_s,
|
||||
'class_day'=>$duplicate_class->class_day,
|
||||
'calss_start_date'=>$duplicate_class->calss_start_date,
|
||||
'calss_end_date'=>$duplicate_class->calss_end_date,
|
||||
'calss_start_time'=>$duplicate_class->calss_start_time,
|
||||
'calss_end_time'=>$duplicate_class->calss_end_time,
|
||||
'locat_id'=>$duplicate_class->locat_id,
|
||||
'class_room'=>$duplicate_class->class_room,
|
||||
'class_address'=>$duplicate_class->class_address,
|
||||
'class_city'=>$duplicate_class->class_city,
|
||||
'class_state'=>$duplicate_class->class_state,
|
||||
'class_code'=>$duplicate_class->class_code,
|
||||
'class_phone'=>$duplicate_class->class_phone,
|
||||
'class_description'=>$duplicate_class->class_description);
|
||||
$data = $this->Create_model->insertRow('tbl_classform',$form_data);
|
||||
}
|
||||
if ($data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Duplicated Successfully');
|
||||
redirect('admin/create-class');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/create-class');
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Select Records First.');
|
||||
redirect('admin/create-class');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
59
php/application/controllers/admin/Order_list.php
Normal file
59
php/application/controllers/admin/Order_list.php
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Order_list extends CI_Controller
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->library('password');
|
||||
$this->load->model('Orderlist_model');
|
||||
// $this->load->view('review-order');
|
||||
}
|
||||
|
||||
public function list_order()
|
||||
{
|
||||
|
||||
|
||||
$data['all_order']=$this->Orderlist_model->get_order();
|
||||
$this->load->view('admin/order-list',$data);
|
||||
}
|
||||
|
||||
|
||||
public function review_orderList($reg_id)
|
||||
{
|
||||
|
||||
|
||||
$data['order']=$this->Orderlist_model->review_order($reg_id);
|
||||
$data['return_class']=$this->Orderlist_model->return_class($reg_id);
|
||||
$data['registrants']=$this->Orderlist_model->return_attendee($reg_id);
|
||||
$this->load->view('front/review',$data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function delet_list($reg_name)
|
||||
{
|
||||
|
||||
$delete_list = $this->Orderlist_model->delet_list($reg_name);
|
||||
if($delete_list)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','User Deleted Successfully');
|
||||
$data['all_order']=$this->Orderlist_model->get_order();
|
||||
$this->load->view('admin/order-list',$data);
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
$data['all_order']=$this->Orderlist_model->get_order();
|
||||
$this->load->view('admin/order-list',$data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
140
php/application/controllers/admin/Orderlist.php
Normal file
140
php/application/controllers/admin/Orderlist.php
Normal file
@ -0,0 +1,140 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Orderlist extends CI_Controller
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library("pagination");
|
||||
$this->load->model('Orderlist_model');
|
||||
$this->load->library('userauth');
|
||||
}
|
||||
|
||||
public function list_order()
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$config = array();
|
||||
$config["base_url"] = base_url() . "admin/order-list";
|
||||
$total_row = $this->Orderlist_model->record_count();
|
||||
$config["total_rows"] = $total_row;
|
||||
$config["per_page"] = 20;
|
||||
$config['use_page_numbers'] = TRUE;
|
||||
$config['num_links'] = $total_row;
|
||||
$config['cur_tag_open'] = '<a class="current">';
|
||||
$config['cur_tag_close'] = '</a>';
|
||||
$config['next_link'] = '»';
|
||||
$config['prev_link'] = '«';
|
||||
|
||||
$this->pagination->initialize($config);
|
||||
if($this->uri->segment(3)){
|
||||
$page = ($this->uri->segment(3)) ;
|
||||
}
|
||||
else{
|
||||
$page = 0;
|
||||
}
|
||||
$data["all_order"] = $this->Orderlist_model->get_order($config["per_page"], $page);
|
||||
|
||||
$str_links = $this->pagination->create_links();
|
||||
$data["links"] = explode(' ',$str_links );
|
||||
$this->load->view('admin/order-list',$data);
|
||||
}
|
||||
|
||||
public function order_search()
|
||||
{
|
||||
$orderno = $this->input->post('orderno');
|
||||
$fromedate = date("Y-m-d",strtotime($this->input->post('fromedate')));
|
||||
$todate = date("Y-m-d",strtotime($this->input->post('todate')));
|
||||
$data['all_order'] = $this->Orderlist_model->ordersearch($orderno,$fromedate,$todate);
|
||||
if($data['all_order']==array())
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','No Order For The Given Data.');
|
||||
redirect('admin/order-list');
|
||||
}
|
||||
$str_links = $this->pagination->create_links();
|
||||
$data["links"] = explode(' ',$str_links );
|
||||
$this->load->view('admin/order-list',$data);
|
||||
}
|
||||
|
||||
public function review_orderList($reg_id,$type)
|
||||
{
|
||||
$this->userauth->logged_in();
|
||||
$master = $this->Orderlist_model->review_order($reg_id);
|
||||
$data['return_class']=$this->Orderlist_model->return_class($reg_id);
|
||||
$data['member']=$this->Orderlist_model->returnAttende('tbl_attendee','reg_id','reg_m_type',$reg_id,'M');
|
||||
$data['member2']=$this->Orderlist_model->returnAttende('tbl_attendee','reg_id','reg_m_type',$reg_id,'M2');
|
||||
$data['nonmember']=$this->Orderlist_model->returnAttende('tbl_attendee','reg_id','reg_m_type',$reg_id,'N');
|
||||
$data['nonmember2']=$this->Orderlist_model->returnAttende('tbl_attendee','reg_id','reg_m_type',$reg_id,'N2');
|
||||
$data['semember']=$this->Orderlist_model->returnAttende('tbl_attendee','reg_id','reg_m_type',$reg_id,'S');
|
||||
$data['mcount'] = count($data['member']);
|
||||
$data['mcount2'] = count($data['member2']);
|
||||
$data['ncount'] = count($data['nonmember']);
|
||||
$data['ncount2'] = count($data['nonmember2']);
|
||||
$data['scount'] = count($data['semember']);
|
||||
|
||||
$data['reg_date'] = date("d-m-Y",strtotime($master->reg_date));
|
||||
$data['card_holder_name'] = $master->card_holder_name;
|
||||
$data['payment_type'] = $master->payment_type;
|
||||
$data['address'] = $master->street_adrs;
|
||||
$data['phone_no'] = $master->phone_no;
|
||||
$data['email_id'] = $master->email_id;
|
||||
$data['class_count'] = $master->reg_class_count;
|
||||
$data['att_count'] = $master->att_total_count;
|
||||
$data['card_number'] = $master->card_number;
|
||||
$data['card_type'] = $master->card_type;
|
||||
$data['status'] = $master->status;
|
||||
|
||||
|
||||
|
||||
$data['reg_total'] = $master->reg_total;
|
||||
$data['orderno'] = $master->reg_id;
|
||||
|
||||
|
||||
$data['type'] = $type;
|
||||
$this->load->view('admin/view-order',$data);
|
||||
}
|
||||
|
||||
public function delete_list($reg_id)
|
||||
{
|
||||
$delete_list = $this->Orderlist_model->delete_list($reg_id);
|
||||
if($delete_list)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Order Deleted Successfully');
|
||||
redirect('admin/order-list');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/order-list');
|
||||
}
|
||||
}
|
||||
|
||||
function update_status($reg_id)
|
||||
{
|
||||
$return_reg = $this->Orderlist_model->return_reg($reg_id);
|
||||
if($return_reg->status == "unpaid")
|
||||
{
|
||||
$update = $this->Orderlist_model->update_status("paid",$reg_id);
|
||||
if($update)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','Updated Successfully');
|
||||
redirect('admin/order-list');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/order-list');
|
||||
}
|
||||
}else
|
||||
{
|
||||
$this->session->set_flashdata('error_msg','Already Paid');
|
||||
redirect('admin/order-list');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
154
php/application/controllers/admin/User.php
Normal file
154
php/application/controllers/admin/User.php
Normal file
@ -0,0 +1,154 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class User extends CI_Controller
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->helper('url');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->library('password');
|
||||
$this->load->model('User_model');
|
||||
$this->load->library('userauth');
|
||||
}
|
||||
|
||||
public function admin_user()
|
||||
{
|
||||
$this->userauth->logged_admin();
|
||||
$data['all_users']=$this->User_model->get_user();
|
||||
$this->load->view('admin/admin-users',$data);
|
||||
}
|
||||
|
||||
//add user
|
||||
public function add_user()
|
||||
{
|
||||
$password = $this->password->encrypt_password($this->input->post('user_password'));
|
||||
$user_id = $this->input->post('user_id');
|
||||
$user= array('user_name'=>$this->input->post('user_name'),
|
||||
'user_password'=>$password);
|
||||
$action = $this->input->post('submit');
|
||||
$check_user=$this->User_model->check_user($user['user_name']);
|
||||
|
||||
if($action == "Add")
|
||||
{
|
||||
if($check_user)
|
||||
{
|
||||
$user_data =$this->User_model->add_user($user);
|
||||
if($user_data)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','User Added Successfully');
|
||||
redirect('admin/admin-user');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/admin-user');
|
||||
}
|
||||
}
|
||||
else {
|
||||
$this->session->set_flashdata('error_msg', 'User Already Exists.');
|
||||
redirect('admin/admin-user');
|
||||
}
|
||||
}
|
||||
if($action == "Update")
|
||||
{
|
||||
$return_user = $this->User_model->return_user($user_id);
|
||||
if($check_user)
|
||||
{
|
||||
$name = $this->input->post('user_name');
|
||||
$msg_type = "success_msg";
|
||||
$msg = "User Updated Successfully.";
|
||||
}
|
||||
else
|
||||
{
|
||||
$name = $return_user->user_name;
|
||||
if($this->input->post('user_name') == $return_user->user_name)
|
||||
{
|
||||
$msg_type = "success_msg";
|
||||
$msg = "User Updated Successfully.";
|
||||
}
|
||||
else
|
||||
{
|
||||
$msg_type = "error_msg";
|
||||
$msg = "User Already Exists.";
|
||||
}
|
||||
|
||||
}
|
||||
$update_data= array('user_name'=>$name,
|
||||
'user_password'=>$password);
|
||||
$user_update = $this->User_model->update_user($update_data,$user_id);
|
||||
if($user_update)
|
||||
{
|
||||
$this->session->set_flashdata($msg_type,$msg);
|
||||
redirect('admin/admin-user');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/admin-user');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//end add user
|
||||
|
||||
//return user
|
||||
|
||||
public function return_user($user_id)
|
||||
{
|
||||
$this->userauth->logged_admin();
|
||||
$return_user = $this->User_model->return_user($user_id);
|
||||
$data['user_id']=$return_user->user_id;
|
||||
$data['user_name']=$return_user->user_name;
|
||||
$data['user_password'] = $this->password->decrypt_password($return_user->user_password);
|
||||
$data['all_users']=$this->User_model->get_user();
|
||||
$this->load->view('admin/admin-users',$data);
|
||||
}
|
||||
|
||||
//end return user
|
||||
|
||||
//delete user
|
||||
|
||||
function delete_user($user_id)
|
||||
{
|
||||
$delete_user = $this->User_model->delete_user($user_id);
|
||||
if($delete_user)
|
||||
{
|
||||
$this->session->set_flashdata('success_msg','User Deleted Successfully');
|
||||
redirect('admin/admin-user');
|
||||
} else {
|
||||
$this->session->set_flashdata('error_msg','Error Occur');
|
||||
redirect('admin/admin-user');
|
||||
}
|
||||
}
|
||||
|
||||
//end delete user
|
||||
|
||||
//update status
|
||||
|
||||
function update_status($user_id)
|
||||
{
|
||||
$return_user = $this->User_model->return_user($user_id);
|
||||
$data['user_id']=$return_user->user_id;
|
||||
$data['user_status']=$return_user->user_status;
|
||||
if($return_user->user_type !="admin")
|
||||
{
|
||||
if($data['user_status']=="active")
|
||||
{
|
||||
$status ="inactive";
|
||||
}
|
||||
elseif($data['user_status']=="inactive")
|
||||
{
|
||||
$status ="active";
|
||||
}
|
||||
$data['user_id']=$user_id;
|
||||
$this->User_model->update_status($status,$user_id);
|
||||
}
|
||||
else { $this->session->set_flashdata('error_msg',"Admin Can't Be Inactive."); }
|
||||
redirect('admin/admin-user');
|
||||
}
|
||||
|
||||
//end update status
|
||||
|
||||
}
|
||||
|
||||
?>
|
11
php/application/controllers/index.html
Normal file
11
php/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
php/application/core/index.html
Normal file
11
php/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>
|
11
php/application/helpers/index.html
Normal file
11
php/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>
|
254
php/application/helpers/phpass.php
Normal file
254
php/application/helpers/phpass.php
Normal file
@ -0,0 +1,254 @@
|
||||
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
|
||||
|
||||
#
|
||||
|
||||
# Portable PHP password hashing framework.
|
||||
|
||||
#
|
||||
|
||||
# Version 0.3 / genuine.
|
||||
|
||||
#
|
||||
|
||||
# Written by Solar Designer <solar at openwall.com> in 2004-2006 and placed in
|
||||
|
||||
# the public domain. Revised in subsequent years, still public domain.
|
||||
|
||||
#
|
||||
|
||||
# There's absolutely no warranty.
|
||||
|
||||
#
|
||||
|
||||
# The homepage URL for this framework is:
|
||||
|
||||
#
|
||||
|
||||
# http://www.openwall.com/phpass/
|
||||
|
||||
#
|
||||
|
||||
# Please be sure to update the Version line if you edit this file in any way.
|
||||
|
||||
# It is suggested that you leave the main version number intact, but indicate
|
||||
|
||||
# your project name (after the slash) and add your own revision information.
|
||||
|
||||
#
|
||||
|
||||
# Please do not change the "private" password hashing method implemented in
|
||||
|
||||
# here, thereby making your hashes incompatible. However, if you must, please
|
||||
|
||||
# change the hash type identifier (the "$P$") to something different.
|
||||
|
||||
#
|
||||
|
||||
# Obviously, since this code is in the public domain, the above are not
|
||||
|
||||
# requirements (there can be none), but merely suggestions.
|
||||
|
||||
#
|
||||
|
||||
class PasswordHash {
|
||||
|
||||
var $itoa64;
|
||||
|
||||
var $iteration_count_log2;
|
||||
|
||||
var $portable_hashes;
|
||||
|
||||
var $random_state;
|
||||
|
||||
|
||||
|
||||
function PasswordHash($iteration_count_log2, $portable_hashes)
|
||||
|
||||
{
|
||||
|
||||
$this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
||||
|
||||
|
||||
|
||||
if ($iteration_count_log2 < 4 || $iteration_count_log2 > 31)
|
||||
|
||||
$iteration_count_log2 = 8;
|
||||
|
||||
$this->iteration_count_log2 = $iteration_count_log2;
|
||||
|
||||
|
||||
|
||||
$this->portable_hashes = $portable_hashes;
|
||||
|
||||
|
||||
|
||||
$this->random_state = microtime();
|
||||
|
||||
if (function_exists('getmypid'))
|
||||
|
||||
$this->random_state .= getmypid();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function get_random_bytes($count)
|
||||
|
||||
{
|
||||
|
||||
$output = '';
|
||||
|
||||
if (is_readable('/dev/urandom') &&
|
||||
|
||||
($fh = @fopen('/dev/urandom', 'rb'))) {
|
||||
|
||||
$output = fread($fh, $count);
|
||||
|
||||
fclose($fh);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (strlen($output) < $count) {
|
||||
|
||||
$output = '';
|
||||
|
||||
for ($i = 0; $i < $count; $i += 16) {
|
||||
|
||||
$this->random_state =
|
||||
|
||||
md5(microtime() . $this->random_state);
|
||||
|
||||
$output .=
|
||||
|
||||
pack('H*', md5($this->random_state));
|
||||
|
||||
}
|
||||
|
||||
$output = substr($output, 0, $count);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $output;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function encode64($input, $count)
|
||||
|
||||
{
|
||||
|
||||
$output = '';
|
||||
|
||||
$i = 0;
|
||||
|
||||
do {
|
||||
|
||||
$value = ord($input[$i++]);
|
||||
|
||||
$output .= $this->itoa64[$value & 0x3f];
|
||||
|
||||
if ($i < $count)
|
||||
|
||||
$value |= ord($input[$i]) << 8;
|
||||
|
||||
$output .= $this->itoa64[($value >> 6) & 0x3f];
|
||||
|
||||
if ($i++ >= $count)
|
||||
|
||||
break;
|
||||
|
||||
if ($i < $count)
|
||||
|
||||
$value |= ord($input[$i]) << 16;
|
||||
|
||||
$output .= $this->itoa64[($value >> 12) & 0x3f];
|
||||
|
||||
if ($i++ >= $count)
|
||||
|
||||
break;
|
||||
|
||||
$output .= $this->itoa64[($value >> 18) & 0x3f];
|
||||
|
||||
} while ($i < $count);
|
||||
|
||||
|
||||
|
||||
return $output;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function gensalt_private($input)
|
||||
|
||||
{
|
||||
|
||||
$output = '$P$';
|
||||
|
||||
$output .= $this->itoa64[min($this->iteration_count_log2 +
|
||||
|
||||
((PHP_VERSION >= '5') ? 5 : 3), 30)];
|
||||
|
||||
$output .= $this->encode64($input, 6);
|
||||
|
||||
|
||||
|
||||
return $output;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function crypt_private($password, $setting)
|
||||
|
||||
{
|
||||
|
||||
$output = '*0';
|
||||
|
||||
if (substr($setting, 0, 2) == $output)
|
||||
|
||||
$output = '*1';
|
||||
|
||||
|
||||
|
||||
$id = substr($setting, 0, 3);
|
||||
|
||||
# We use "$P$", phpBB3 uses "$H$" for the same thing
|
||||
|
||||
if ($id != '$P$' && $id != '$H$')
|
||||
|
||||
return $output;
|
||||
|
||||
|
||||
|
||||
$count_log2 = strpos($this->itoa64, $setting[3]);
|
||||
|
||||
if ($count_log2 < 7 || $count_log2 > 30)
|
||||
|
||||
return $output;
|
||||
|
||||
|
||||
|
||||
$count = 1 << $count_log2;
|
||||
|
||||
|
||||
|
||||
$salt = substr($setting, 4, 8);
|
||||
|
||||
if (strlen($salt) != 8)
|
||||
|
||||
return $output;
|
||||
|
||||
|
||||
|
||||
# We're kind of forced to use MD5 here since it's the only
|
||||
|
||||
# cryptographic primitive available in all versions of PHP
|
||||
|
||||
# currently in use. To implement our own low-level crypto
|
||||
|
11
php/application/hooks/index.html
Normal file
11
php/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
php/application/index.html
Normal file
11
php/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
php/application/language/english/index.html
Normal file
11
php/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
php/application/language/index.html
Normal file
11
php/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>
|
44
php/application/libraries/Password.php
Normal file
44
php/application/libraries/Password.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
|
||||
|
||||
class Password
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
public function __construct()
|
||||
|
||||
{
|
||||
|
||||
$this->CI =& get_instance();
|
||||
|
||||
//$this->CI->load->library('encrypt');
|
||||
|
||||
}
|
||||
|
||||
public function encrypt_password($password){
|
||||
|
||||
|
||||
|
||||
$key = 'swebin';
|
||||
|
||||
$key2 = 'sosp@$%Ck';
|
||||
|
||||
$string = $password;
|
||||
|
||||
|
||||
|
||||
$output = false;
|
||||
|
||||
$encrypt_method = "AES-256-CBC";
|
||||
|
||||
$key = hash( 'sha256', $key );
|
||||
|
||||
$iv = substr( hash( 'sha256', $key2 ), 0, 16 );
|
||||
|
||||
$output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );
|
||||
|
29
php/application/libraries/Userauth.php
Normal file
29
php/application/libraries/Userauth.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Userauth
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->CI =& get_instance();
|
||||
$this->CI->load->library('session');
|
||||
}
|
||||
public function logged_in(){
|
||||
|
||||
if ( ! $this->CI->session->userdata('user_id'))
|
||||
{
|
||||
redirect('admin');
|
||||
}
|
||||
}
|
||||
|
||||
public function logged_admin(){
|
||||
|
||||
if (! $this->CI->session->userdata('user_id') && $this->CI->session->userdata('user_type') != "admin")
|
||||
{
|
||||
redirect('admin');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
11
php/application/libraries/index.html
Normal file
11
php/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>
|
11
php/application/logs/index.html
Normal file
11
php/application/logs/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>
|
30
php/application/models/Admin_model.php
Normal file
30
php/application/models/Admin_model.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
class Admin_model extends CI_model
|
||||
{
|
||||
|
||||
function login_valid($username,$password)
|
||||
{
|
||||
$this->db->from('tbl_usermaster');
|
||||
$this->db->where('user_name',$username);
|
||||
$this->db->where('user_password',$password);
|
||||
$this->db->where('user_status','active');
|
||||
if($query=$this->db->get())
|
||||
{
|
||||
return $query->row_array();
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function totalrows($tablename='',$fields='')
|
||||
{
|
||||
$this->db->select($fields);
|
||||
$this->db->from($tablename);
|
||||
$query = $this->db->get();
|
||||
$responce = $query->num_rows();
|
||||
return $responce;
|
||||
}
|
||||
}
|
||||
?>
|
176
php/application/models/Class_model.php
Normal file
176
php/application/models/Class_model.php
Normal file
@ -0,0 +1,176 @@
|
||||
<?php
|
||||
class Class_model extends CI_model
|
||||
|
||||
{
|
||||
|
||||
//CLASS
|
||||
|
||||
//get all classes
|
||||
|
||||
function all_class()
|
||||
{
|
||||
$this->db->from('tbl_classname');
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
//end get all classes
|
||||
|
||||
//create classes
|
||||
|
||||
function create_class($class_name)
|
||||
{
|
||||
$this->db->insert('tbl_classname',$class_name);
|
||||
return true;
|
||||
}
|
||||
|
||||
//end create classes
|
||||
|
||||
//update classes
|
||||
|
||||
function update_class($class_name,$class_id)
|
||||
{
|
||||
$this->db->where('class_id',$class_id);
|
||||
$this->db->update('tbl_classname',$class_name);
|
||||
return true;
|
||||
}
|
||||
|
||||
//end update classes
|
||||
|
||||
//return classes
|
||||
|
||||
function return_class($class_id)
|
||||
{
|
||||
$this->db->from('tbl_classname');
|
||||
$this->db->where('class_id',$class_id);
|
||||
return $this->db->get()->row();
|
||||
}
|
||||
|
||||
//end return classes
|
||||
|
||||
//delete classes
|
||||
|
||||
function delete_class($class_id)
|
||||
{
|
||||
$this->db->where('class_id',$class_id);
|
||||
$this->db->delete('tbl_classname');
|
||||
return true;
|
||||
}
|
||||
|
||||
//end delete classes
|
||||
|
||||
|
||||
|
||||
//LOCATIONS
|
||||
|
||||
//get all locations
|
||||
|
||||
function all_locations()
|
||||
{
|
||||
$this->db->from('tbl_classlocations');
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
//end get all locations
|
||||
|
||||
//create location
|
||||
|
||||
function create_location($location_name)
|
||||
{
|
||||
$this->db->insert('tbl_classlocations',$location_name);
|
||||
return true;
|
||||
}
|
||||
|
||||
//end create location
|
||||
|
||||
//update location
|
||||
|
||||
function update_location($location_name,$locat_id)
|
||||
{
|
||||
$this->db->where('locat_id',$locat_id);
|
||||
$this->db->update('tbl_classlocations',$location_name);
|
||||
return true;
|
||||
}
|
||||
|
||||
//end update location
|
||||
|
||||
//return location
|
||||
|
||||
function return_location($locat_id)
|
||||
{
|
||||
$this->db->from('tbl_classlocations');
|
||||
$this->db->where('locat_id',$locat_id);
|
||||
return $this->db->get()->row();
|
||||
}
|
||||
|
||||
//end return location
|
||||
|
||||
//delete location
|
||||
|
||||
function delete_location($locat_id)
|
||||
{
|
||||
$this->db->where('locat_id',$locat_id);
|
||||
$this->db->delete('tbl_classlocations');
|
||||
return true;
|
||||
}
|
||||
|
||||
//end delete location
|
||||
|
||||
//INSTRUCTORS
|
||||
|
||||
//get all Instructors
|
||||
|
||||
function all_instructors()
|
||||
{
|
||||
$this->db->from('tbl_instructors');
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
//end get all Instructors
|
||||
|
||||
//create Instructors
|
||||
|
||||
function create_instructors($instructor_name)
|
||||
{
|
||||
$this->db->insert('tbl_instructors',$instructor_name);
|
||||
return true;
|
||||
}
|
||||
|
||||
//end create Instructors
|
||||
|
||||
//update Instructors
|
||||
|
||||
function update_instructors($instructor_name,$instr_id)
|
||||
{
|
||||
$this->db->where('instr_id',$instr_id);
|
||||
$this->db->update('tbl_instructors',$instructor_name);
|
||||
return true;
|
||||
}
|
||||
|
||||
//end update Instructors
|
||||
|
||||
//return instructors
|
||||
|
||||
function return_instructors($instr_id)
|
||||
{
|
||||
$this->db->from('tbl_instructors');
|
||||
$this->db->where('instr_id',$instr_id);
|
||||
return $this->db->get()->row();
|
||||
}
|
||||
|
||||
//end return instructors
|
||||
|
||||
//delete instructors
|
||||
|
||||
function delete_instructors($instr_id)
|
||||
{
|
||||
$this->db->where('instr_id',$instr_id);
|
||||
$this->db->delete('tbl_instructors');
|
||||
return true;
|
||||
}
|
||||
|
||||
//end delete instructors
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
50
php/application/models/Create_model.php
Normal file
50
php/application/models/Create_model.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
class Create_model extends CI_model
|
||||
{
|
||||
|
||||
function getData($table='') /*Get Data*/
|
||||
{
|
||||
$this->db->from($table);
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
function getAll() /*Get All data*/
|
||||
{
|
||||
$this->db->from('tbl_classform');
|
||||
$this->db->join('tbl_classname', 'tbl_classform.class_id = tbl_classname.class_id');
|
||||
$this->db->order_by('tbl_classform.form_id','desc');
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
public function insertRow($table, $data) /*Insert Data*/
|
||||
{
|
||||
$this->db->insert($table, $data);
|
||||
return true;
|
||||
}
|
||||
|
||||
function updateRow($table, $col, $colVal, $data) /*Update Data*/
|
||||
{
|
||||
$this->db->where($col,$colVal);
|
||||
$this->db->update($table,$data);
|
||||
return true;
|
||||
}
|
||||
|
||||
function returnForm($form_id) /*Return Data*/
|
||||
{
|
||||
$this->db->from('tbl_classform AS A');
|
||||
$this->db->join('tbl_classname AS B', 'A.class_id = B.class_id', 'INNER');
|
||||
$this->db->join('tbl_instructors AS C', 'A.instr_id = C.instr_id', 'INNER');
|
||||
$this->db->join('tbl_classlocations AS D', 'A.locat_id = D.locat_id', 'INNER');
|
||||
$this->db->where('form_id',$form_id);
|
||||
return $this->db->get()->row();
|
||||
}
|
||||
|
||||
function deleteForm($table='',$field='',$form_id='') /*Delete Form*/
|
||||
{
|
||||
$this->db->where($field,$form_id);
|
||||
$this->db->delete($table);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
118
php/application/models/Index_model.php
Normal file
118
php/application/models/Index_model.php
Normal file
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
class Index_model extends CI_model
|
||||
{
|
||||
|
||||
function reg_location() /*Select Class Of Default Location*/
|
||||
{
|
||||
$this->db->from('tbl_classform AS A');
|
||||
$this->db->join('tbl_classlocations AS B', 'A.locat_id = B.locat_id', 'INNER');
|
||||
$this->db->group_by('locat_name');
|
||||
$this->db->order_by("B.locat_name", "asc");
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
function reg_class($locat_id="") /*Select Class Of Location*/
|
||||
{
|
||||
$this->db->from('tbl_classform AS A');
|
||||
$this->db->join('tbl_classlocations AS B', 'A.locat_id = B.locat_id', 'INNER');
|
||||
$this->db->join('tbl_classname AS C', 'A.class_id = C.class_id', 'INNER');
|
||||
$this->db->join('tbl_instructors AS D', 'A.instr_id = D.instr_id', 'INNER');
|
||||
$this->db->order_by("A.form_id", "asc");
|
||||
if($locat_id!="")
|
||||
{
|
||||
$this->db->where('A.locat_id',$locat_id);
|
||||
}
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
function first_location() /*Select First Location*/
|
||||
{
|
||||
$this->db->from('tbl_classform AS A');
|
||||
$this->db->join('tbl_classlocations AS B', 'A.locat_id = B.locat_id', 'INNER');
|
||||
$this->db->order_by("A.form_id", "asc");
|
||||
return $this->db->get()->first_row();
|
||||
}
|
||||
|
||||
function regmaster($masterdata)
|
||||
{
|
||||
$this->db->insert('tbl_regmaster',$masterdata); /*Insert Reg Class Data*/
|
||||
$reg_id = $this->db->insert_id();
|
||||
return $reg_id;
|
||||
}
|
||||
|
||||
function classdata($classdata)
|
||||
{
|
||||
$this->db->insert('tbl_regclass',$classdata); /*Insert Class Data*/
|
||||
$regclass_id = $this->db->insert_id();
|
||||
return $regclass_id;
|
||||
}
|
||||
|
||||
function attendedata($attendedata) /*Insert Attendee Data*/
|
||||
{
|
||||
$this->db->insert('tbl_attendee',$attendedata);
|
||||
return true;
|
||||
}
|
||||
|
||||
function attotal($att_counts,$regid) /*Update Attendee Total Count*/
|
||||
{
|
||||
$this->db->set('att_total_count', $att_counts);
|
||||
$this->db->where('reg_id', $regid);
|
||||
$this->db->update('tbl_regmaster');
|
||||
return true;
|
||||
}
|
||||
|
||||
function remainclass($remainseats,$form_id) /*Update Remain Seats*/
|
||||
{
|
||||
$this->db->set('remain_seats', $remainseats);
|
||||
$this->db->where('form_id', $form_id);
|
||||
$this->db->update('tbl_classform');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function update_rclass($regclass_total,$value)
|
||||
{
|
||||
$this->db->set('regclass_total_price', $regclass_total);
|
||||
$this->db->where('regclass_id', $value);
|
||||
$this->db->update('tbl_regclass');
|
||||
return true;
|
||||
}
|
||||
|
||||
//Return Class
|
||||
function returnclass($form)
|
||||
{
|
||||
$this->db->from('tbl_classform');
|
||||
$this->db->where('form_id',$form);
|
||||
return $this->db->get()->row();
|
||||
}
|
||||
//Return form
|
||||
function returnform($form)
|
||||
{
|
||||
$this->db->from('tbl_classform AS A');
|
||||
$this->db->join('tbl_classname AS B', 'A.class_id = B.class_id', 'INNER');
|
||||
$this->db->where('A.form_id',$form);
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
//End Registration
|
||||
|
||||
function insert_payment($payment_data,$reg_id)
|
||||
{
|
||||
$this->db->where('reg_id',$reg_id);
|
||||
$this->db->update('tbl_regmaster',$payment_data);
|
||||
return true;
|
||||
}
|
||||
|
||||
function delete_order($id)
|
||||
{
|
||||
// $this->db->where('reg_id',$reg_id);
|
||||
// $this->db->delete('tbl_regmaster');
|
||||
$this->db->where('att_id',$id);
|
||||
$this->db->delete('tbl_attendee');
|
||||
// $this->db->where('reg_id',$reg_id);
|
||||
// $this->db->delete('tbl_regclass');
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
108
php/application/models/Orderlist_model.php
Normal file
108
php/application/models/Orderlist_model.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Orderlist_model extends CI_model{
|
||||
|
||||
public function record_count()
|
||||
{
|
||||
return $this->db->count_all("tbl_regmaster");
|
||||
}
|
||||
|
||||
public function get_order($limit,$start)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('tbl_regmaster');
|
||||
$this->db->join('tbl_regclass', 'tbl_regclass.reg_id = tbl_regmaster.reg_id');
|
||||
$this->db->join('tbl_classform', 'tbl_classform.form_id = tbl_regclass.form_id');
|
||||
$this->db->join('tbl_classlocations', 'tbl_classlocations.locat_id = tbl_classform.locat_id');
|
||||
$this->db->group_by('tbl_regmaster.reg_id');
|
||||
$this->db->order_by('tbl_regmaster.reg_id','desc');
|
||||
$this->db->limit($limit, $start);
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
//search
|
||||
public function ordersearch($orderno,$fromedate,$todate)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('tbl_regmaster');
|
||||
$this->db->join('tbl_regclass', 'tbl_regclass.reg_id = tbl_regmaster.reg_id');
|
||||
$this->db->join('tbl_classform', 'tbl_classform.form_id = tbl_regclass.form_id');
|
||||
$this->db->join('tbl_classlocations', 'tbl_classlocations.locat_id = tbl_classform.locat_id');
|
||||
$this->db->group_by('tbl_regmaster.reg_id');
|
||||
$this->db->order_by('tbl_regmaster.reg_id','desc');
|
||||
if($orderno)
|
||||
{
|
||||
$this->db->where('tbl_regmaster.reg_id',$orderno);
|
||||
}
|
||||
elseif($fromedate !="1970-01-01" && $todate !="1970-01-01")
|
||||
{
|
||||
$this->db->where('tbl_regmaster.reg_date >=', $fromedate);
|
||||
$this->db->where('tbl_regmaster.reg_date <=', $todate);
|
||||
}
|
||||
elseif($fromedate && $todate =="1970-01-01")
|
||||
{
|
||||
$this->db->where('tbl_regmaster.reg_date >=', $fromedate);
|
||||
}
|
||||
elseif($fromedate =="1970-01-01" && $todate)
|
||||
{
|
||||
$this->db->where('tbl_regmaster.reg_date <=', $todate);
|
||||
}
|
||||
$result=$this->db->get();
|
||||
return $result->result();
|
||||
|
||||
}
|
||||
|
||||
//review_order
|
||||
function review_order($reg_id)
|
||||
{
|
||||
$this->db->from('tbl_regmaster');
|
||||
$this->db->where('reg_id',$reg_id);
|
||||
return $this->db->get()->row();
|
||||
}
|
||||
|
||||
function return_class($reg_id)
|
||||
{
|
||||
$this->db->from('tbl_regclass AS A');
|
||||
$this->db->join('tbl_classform AS B', 'A.form_id = B.form_id', 'INNER');
|
||||
$this->db->join('tbl_classname AS C', 'B.class_id = C.class_id', 'INNER');
|
||||
$this->db->join('tbl_classlocations AS D', 'B.locat_id = D.locat_id', 'INNER');
|
||||
$this->db->join('tbl_instructors AS E', 'B.instr_id = E.instr_id', 'INNER');
|
||||
$this->db->where('reg_id',$reg_id);
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
function returnAttende($table='',$field1='',$field2='',$reg_id='',$type='')
|
||||
{
|
||||
$this->db->from($table);
|
||||
$this->db->where($field1,$reg_id);
|
||||
$this->db->where($field2,$type);
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
function delete_list($reg_id)
|
||||
{
|
||||
$tables = array('tbl_regmaster', 'tbl_regclass', 'tbl_attendee');
|
||||
$this->db->where('reg_id',$reg_id);
|
||||
$this->db->delete($tables);
|
||||
return true;
|
||||
}
|
||||
|
||||
function return_reg($reg_id)
|
||||
{
|
||||
$this->db->from('tbl_regmaster');
|
||||
$this->db->where('reg_id',$reg_id);
|
||||
return $this->db->get()->row();
|
||||
}
|
||||
|
||||
function update_status($status,$reg_id)
|
||||
{
|
||||
$this->db->where('reg_id',$reg_id );
|
||||
$this->db->set('status',$status);
|
||||
$this->db->update('tbl_regmaster');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
87
php/application/models/User_model.php
Normal file
87
php/application/models/User_model.php
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
class User_model extends CI_model
|
||||
{
|
||||
|
||||
function get_user()
|
||||
{
|
||||
$this->db->from('tbl_usermaster');
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
|
||||
|
||||
public function check_user($user_name)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('tbl_usermaster');
|
||||
$this->db->where('user_name',$user_name);
|
||||
$query=$this->db->get();
|
||||
|
||||
if($query->num_rows()>0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//create user
|
||||
|
||||
function add_user($user)
|
||||
{
|
||||
$this->db->insert('tbl_usermaster',$user);
|
||||
return true;
|
||||
}
|
||||
|
||||
//end create user
|
||||
|
||||
//update user
|
||||
|
||||
function update_user($user,$user_id)
|
||||
{
|
||||
$this->db->where('user_id',$user_id);
|
||||
$this->db->update('tbl_usermaster',$user);
|
||||
return true;
|
||||
}
|
||||
|
||||
//end update user
|
||||
|
||||
//return users
|
||||
|
||||
function return_user($user_id)
|
||||
{
|
||||
$this->db->from('tbl_usermaster');
|
||||
$this->db->where('user_id',$user_id);
|
||||
return $this->db->get()->row();
|
||||
}
|
||||
|
||||
//end users classes
|
||||
|
||||
//update Status
|
||||
|
||||
function update_status($status,$user_id)
|
||||
{
|
||||
$this->db->where('user_id',$user_id );
|
||||
$this->db->set('user_status',$status);
|
||||
$this->db->update('tbl_usermaster');
|
||||
}
|
||||
|
||||
//end update Status
|
||||
|
||||
//delete user
|
||||
|
||||
function delete_user($user_id)
|
||||
{
|
||||
$this->db->where('user_id',$user_id);
|
||||
$this->db->delete('tbl_usermaster');
|
||||
return true;
|
||||
}
|
||||
|
||||
//end delete classes
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
11
php/application/models/index.html
Normal file
11
php/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
php/application/third_party/index.html
vendored
Normal file
11
php/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>
|
BIN
php/application/views/.DS_Store
vendored
Normal file
BIN
php/application/views/.DS_Store
vendored
Normal file
Binary file not shown.
100
php/application/views/admin/admin-users.php
Normal file
100
php/application/views/admin/admin-users.php
Normal file
@ -0,0 +1,100 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Admin Users";
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
<style type="text/css">
|
||||
.active {
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 col-lg-12 admin-setting">
|
||||
<div class="class-content d-flex">
|
||||
<div class="col-md-12 class-name col-lg-6">
|
||||
<?php echo form_open('admin/user/add_user'); ?>
|
||||
<div class="d-flex">
|
||||
<span>User Name</span>
|
||||
<input type="text" name="user_name" value="<?=isset($user_name)? $user_name : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<span>Password</span>
|
||||
<input type="password" name="user_password" value="<?=isset($user_password)? $user_password : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="submit-class d-flex justify-content-end">
|
||||
<?php if(isset($user_id)) { ?>
|
||||
<input type="hidden" value="<?=isset($user_id)? $user_id : ''?>" name="user_id">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
<a href="<?= base_url();?>admin/admin-user"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
<?php } else {?>
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<h2>Admin Users</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>User Name</th>
|
||||
<th>Status</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_users as $val) { ?>
|
||||
<tr>
|
||||
<td><?=$val['user_name']?></td>
|
||||
<td class="text-center"><?php
|
||||
if($val['user_status'] == "active") { ?>
|
||||
<a class="<?php if($this->session->user_id == $val['user_id']){echo "active"; }?>" href="<?=site_url('admin/user/update_status/'.$val['user_id'])?>"><div class="active-swith">
|
||||
<?=$val['user_status']?>
|
||||
</div></a>
|
||||
<?php } if($val['user_status'] == "inactive"){ ?>
|
||||
<a href="<?=site_url('admin/user/update_status/'.$val['user_id'])?>"><div class="active-swith off">
|
||||
<?=$val['user_status']?>
|
||||
</div></a>
|
||||
<?php } ?></td>
|
||||
<td><a href="<?=site_url();?>admin/admin-user-edit/<?=$val['user_id']?>" title="Edit"><img src="<?=site_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><?php if( $val['user_type']!='admin') { ?><a href="<?=site_url();?>admin/admin-user-delete/<?=$val['user_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=site_url();?>assets/admin/img/delete.png" alt=""><a><?php } else { echo "Can't Delete"; }?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
290
php/application/views/admin/class-create.php
Normal file
290
php/application/views/admin/class-create.php
Normal file
@ -0,0 +1,290 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "New Class Form"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
<?php echo $error_msg; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="class-form d-flex">
|
||||
<div class="col-lg-7 col-md-12">
|
||||
<h3 class="general-h3">General Information</h3>
|
||||
<div class="general">
|
||||
<?php echo form_open('admin/class-manage'); ?>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Class Name</label>
|
||||
<select name="class_id" id="target1" style="margin-right: 10px;" required>
|
||||
<option value="">Select Class</option>
|
||||
<?php foreach ($class_name as $value)
|
||||
{
|
||||
$selected = '';
|
||||
if($value['class_id'] == $class_id)
|
||||
{
|
||||
$selected = 'selected';
|
||||
} ?>
|
||||
<option <?=$selected?> value="<?=$value['class_id']?>"><?=$value['class_name']?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<label for="">Total Seats</label>
|
||||
<input type="text" name="class_seats" value="<?=isset($class_seats)? $class_seats : ''?>" class="general-input" placeholder="No Of Seats" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Instructor:</label>
|
||||
<select name="instr_id" id="target2" style="margin-right: 10px;" required>
|
||||
<option value="">Select Instructor</option>
|
||||
<?php foreach ($class_instructor as $value)
|
||||
{
|
||||
$selected = '';
|
||||
if($value['instr_name'] == $instr_name)
|
||||
{
|
||||
$selected = 'selected';
|
||||
} ?>
|
||||
<option <?=$selected?> value="<?=$value['instr_id']?>"><?=$value['instr_name']?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<label for="">Hours:</label>
|
||||
<input type="text" name="class_hours" value="<?=isset($class_hours)? $class_hours : ''?>" class="general-input" placeholder="Class Hours" required>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="general-h3">Eligible Registrants</h3>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"><input type="checkbox" value="M" <?php if(isset($class_registrants)) { if(in_array('M', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" id="start" class="chk-date1"><label for="start"></label>Members / Alumni</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_m" value="<?=isset($class_price_m)? $class_price_m : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"><input type="checkbox" value="M2" <?php if(isset($class_registrants)) { if(in_array('M2', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" id="start1" class="chk-date1"><label for="start1"></label>Members / Alumni 2+</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_m2" value="<?=isset($class_price_m2)? $class_price_m2 : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"> <input type="checkbox" id="start2" value="N" <?php if(isset($class_registrants)) { if(in_array('N', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" class="chk-date2"><label for="start2"></label>Non-Member</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_n" value="<?=isset($class_price_n)? $class_price_n : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"> <input type="checkbox" id="start3" value="N2" <?php if(isset($class_registrants)) { if(in_array('N2', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" class="chk-date2"><label for="start3"></label>Non-Member 2+</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_n2" value="<?=isset($class_price_n2)? $class_price_n2 : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"><input type="checkbox" id="start4" value="S" <?php if(isset($class_registrants)) { if(in_array('S', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" class="chk-date3"><label for="start4"></label>SE</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_s" value="<?=isset($class_price_s)? $class_price_s : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="date-time" id="expand1">
|
||||
<h3 class="general-h3">Date and Time</h3>
|
||||
<div class="form-group d-flex">
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Mon", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Mon" id="d1" ><label for="d1"></label>Monday</span>
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Tue", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Tue" id="d2" ><label for="d2"></label>Tuesday</span>
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Wed", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Wed" id="d3" ><label for="d3"></label>Wednesday</span>
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Thu", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Thu" id="d4" ><label for="d4"></label>Thursday</span>
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Fri", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Fri" id="d5" ><label for="d5"></label>Friday</span>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Start Date:</label>
|
||||
<input type="text" name="calss_start_date" value="<?=isset($calss_start_date)? $calss_start_date : ''?>" class="general-input datepicker" placeholder="Start Date">
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
 <label for="">End Date:</label>
|
||||
<input type="text" name="calss_end_date" value="<?=isset($calss_end_date)? $calss_end_date : ''?>" class="general-input datepicker" placeholder="End Date">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Start Time:</label>
|
||||
<input type="text" name="calss_start_time" value="<?=isset($calss_start_time)? $calss_start_time : ''?>" class="general-input m-10 timepicker" placeholder="Start Time">
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">End Time:</label>
|
||||
<input type="text" name="calss_end_time" value="<?=isset($calss_end_time)? $calss_end_time : ''?>" class="general-input timepicker" placeholder="End Time">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="general-h3">Location</h3>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Location:</label>
|
||||
<select name="locat_id" style="margin-right: 10px;" id="target3" required>
|
||||
<option value="">Select Location</option>
|
||||
<?php foreach ($class_location as $value)
|
||||
{
|
||||
$selected = '';
|
||||
if($value['locat_id'] == $locat_id)
|
||||
{
|
||||
$selected = 'selected';
|
||||
} ?>
|
||||
<option <?=$selected?> value="<?=$value['locat_id']?>"><?=$value['locat_name']?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Room:</label>
|
||||
<input type="text" name="class_room" value="<?=isset($class_room)? $class_room : ''?>" class="general-input" placeholder="Room" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Physical Address:</label>
|
||||
<input type="text" name="class_address" value="<?=isset($class_address)? $class_address : ''?>" class="general-input m-10" placeholder="Address" required>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">City:</label>
|
||||
 <input type="text" name="class_city" value="<?=isset($class_city)? $class_city : ''?>" class="general-input" placeholder="City" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">State:</label>
|
||||
<input type="text" name="class_state" value="<?=isset($class_state)? $class_state : ''?>" class="general-input m-10" placeholder="State" required>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Zip Code:</label>
|
||||
<input type="text" name="class_code" value="<?=isset($class_code)? $class_code : ''?>" class="general-input" placeholder="Zip Code" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Phone Number:</label>
|
||||
<input type="text" name="class_phone" value="<?=isset($class_phone)? $class_phone : ''?>" class="general-input m-10 yourphone" placeholder="Phone Number" required>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="general-h3">Class Description</h3>
|
||||
<textarea class="form-control" name="class_description" rows="5" id="comment"><?=isset($class_description)? $class_description : ''?></textarea>
|
||||
<div class="submit-class d-flex">
|
||||
<?php if(isset($form_id)) { ?>
|
||||
<div class="col6">
|
||||
<input type="hidden" name="form_id" value="<?=isset($form_id)? $form_id : ''?>">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
</div>
|
||||
<div class="col6">
|
||||
<a href="<?= base_url();?>admin/create-class"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="col6">
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
</div>
|
||||
<div class="col6">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5 col-md-12 class-table">
|
||||
<h3 class="general-h3">List of Classes</h3>
|
||||
<?php echo form_open('admin/Createclass/delete_form'); ?>
|
||||
<select onChange="this.form.submit()" name="action" class="duplicate-sl" id="target4">
|
||||
<option value="">Action</option>
|
||||
<option value="duplicate">Duplicate Record</option>
|
||||
<option value="delete">Delete Record</option>
|
||||
</select>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span class="chk-abc"><input type="checkbox" name="chk" class="selectall" id="tb7"><label for="tb7"></label></span></th>
|
||||
<th>Form Id</th>
|
||||
<th>Created</th>
|
||||
<th>Class Name</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_class as $val) { ?>
|
||||
<tr>
|
||||
<td><span class="chk-abc"><input name="check_id[]" type="checkbox" value="<?=$val['form_id']?>" class="case" id="<?=$val['form_id']?>"><label for="<?=$val['form_id']?>"></label></span></td>
|
||||
<td><?=$val['form_id']?></td>
|
||||
<td><?=date("d-m-Y",strtotime($val['form_createddate']))?></td>
|
||||
<td><?=$val['class_name']?></td>
|
||||
<td><a href="<?=base_url();?>admin/create-class-edit/<?=$val['form_id']?>" title="Edit"><img src="<?=base_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><a href="<?=base_url();?>admin/create-class-delete/<?=$val['form_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
<script language="JavaScript">
|
||||
$(document).ready(function(){
|
||||
$('.selectall').on('click',function(){
|
||||
if(this.checked){
|
||||
$('.case').each(function(){
|
||||
this.checked = true;
|
||||
});
|
||||
}else{
|
||||
$('.case').each(function(){
|
||||
this.checked = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('.case').on('click',function(){
|
||||
if($('.case:checked').length == $('.case').length){
|
||||
$('.selectall').prop('checked',true);
|
||||
}else{
|
||||
$('.selectall').prop('checked',false);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
88
php/application/views/admin/classsetting-instructor.php
Normal file
88
php/application/views/admin/classsetting-instructor.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Class Settings Page"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="setting d-flex">
|
||||
<div class="col-md-12 col-lg-2 no-pad class-left">
|
||||
<ul class="class-nav d-flex">
|
||||
<li><a href="<?= base_url();?>admin/class-name">Class Names</a></li>
|
||||
<li><a href="<?= base_url();?>admin/class-locations">Locations</a></li>
|
||||
<li class="active"><a href="<?= base_url();?>admin/class-instructors">Instructors</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-10">
|
||||
<div class="class-content d-flex">
|
||||
<div class="col-md-12 class-name col-lg-6">
|
||||
<?php echo form_open('admin/classsetting/manage_instructor'); ?>
|
||||
<div class="d-flex">
|
||||
<span style="font-size: 13px">Approved Instructor</span>
|
||||
<input type="text" name="instr_name" value="<?=isset($instr_name)? $instr_name : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="submit-class d-flex justify-content-end">
|
||||
<?php if(isset($instr_id)) { ?>
|
||||
<input type="hidden" value="<?=isset($instr_id)? $instr_id : ''?>" name="instr_id">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
<a href="<?= base_url();?>admin/class-instructors"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
<?php } else {?>
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<h2> Class Instructors</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Created </th>
|
||||
<th>Class Instructors</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_instructors as $val) { ?>
|
||||
<tr>
|
||||
<td><?=date("d-m-Y",strtotime($val['instr_createddate']))?></td>
|
||||
<td><?=$val['instr_name']?></td>
|
||||
<td><a href="<?=base_url();?>admin/class-instructors-edit/<?=$val['instr_id']?>" title="Edit"><img src="<?=base_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><a href="<?=base_url();?>admin/class-instructors-delete/<?=$val['instr_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
88
php/application/views/admin/classsetting-location.php
Normal file
88
php/application/views/admin/classsetting-location.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Class Settings Page"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="setting d-flex">
|
||||
<div class="col-md-12 col-lg-2 no-pad class-left">
|
||||
<ul class="class-nav d-flex">
|
||||
<li><a href="<?= base_url();?>admin/class-name">Class Names</a></li>
|
||||
<li class="active"><a href="<?= base_url();?>admin/class-locations">Locations</a></li>
|
||||
<li><a href="<?= base_url();?>admin/class-instructors">Instructors</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-10">
|
||||
<div class="class-content d-flex">
|
||||
<div class="col-md-12 class-name col-lg-6">
|
||||
<?php echo form_open('admin/classsetting/manage_location'); ?>
|
||||
<div class="d-flex">
|
||||
<span>Class Locations</span>
|
||||
<input type="text" name="locat_name" value="<?=isset($locat_name)? $locat_name : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="submit-class d-flex justify-content-end">
|
||||
<?php if(isset($locat_id)) { ?>
|
||||
<input type="hidden" value="<?=isset($locat_id)? $locat_id : ''?>" name="locat_id">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
<a href="<?= base_url();?>admin/class-locations"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
<?php } else {?>
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<h2> Class Locations</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Created </th>
|
||||
<th>Class Locations</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_locations as $val) { ?>
|
||||
<tr>
|
||||
<td><?=date("d-m-Y",strtotime($val['locat_createddate']))?></td>
|
||||
<td><?=$val['locat_name']?></td>
|
||||
<td><a href="<?=base_url();?>admin/class-locations-edit/<?=$val['locat_id']?>" title="Edit"><img src="<?=base_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><a href="<?=base_url();?>admin/class-locations-delete/<?=$val['locat_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
88
php/application/views/admin/classsetting-names.php
Normal file
88
php/application/views/admin/classsetting-names.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Class Settings Page"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="setting d-flex">
|
||||
<div class="col-md-12 col-lg-2 no-pad class-left">
|
||||
<ul class="class-nav d-flex">
|
||||
<li class="active"><a href="<?= base_url();?>admin/class-name">Class Names</a></li>
|
||||
<li ><a href="<?= base_url();?>admin/class-locations">Locations</a></li>
|
||||
<li><a href="<?= base_url();?>admin/class-instructors">Instructors</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-10">
|
||||
<div class="class-content d-flex">
|
||||
<div class="col-md-12 class-name col-lg-6">
|
||||
<?php echo form_open('admin/classsetting/manage_class'); ?>
|
||||
<div class="d-flex">
|
||||
<span>Class Names</span>
|
||||
<input type="text" name="class_name" value="<?=isset($class_name)? $class_name : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="submit-class d-flex justify-content-end">
|
||||
<?php if(isset($class_id)) { ?>
|
||||
<input type="hidden" value="<?=isset($class_id)? $class_id : ''?>" name="class_id">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
<a href="<?php echo base_url('admin/class-name'); ?>"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
<?php } else {?>
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<h2> Class Names</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Created </th>
|
||||
<th>Class Name</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_class as $val) { ?>
|
||||
<tr>
|
||||
<td><?=date("d-m-Y",strtotime($val['class_createddate']))?></td>
|
||||
<td><?=$val['class_name']?></td>
|
||||
<td><a href="<?=base_url();?>admin/class-name-edit/<?=$val['class_id']?>" title="Edit"><img src="<?=base_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><a href="<?=base_url();?>admin/class-name-delete/<?=$val['class_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
47
php/application/views/admin/dashboard.php
Normal file
47
php/application/views/admin/dashboard.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Dashboard"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<div class="dashboard d-flex">
|
||||
<div class="col-sm-12 d-flex no-pad">
|
||||
<div class="setting">
|
||||
<h3><?=$class?></h3>
|
||||
<h2>Class Settings</h2>
|
||||
<a href="<?= base_url();?>admin/class-name">View</a>
|
||||
</div>
|
||||
<div class="create">
|
||||
<h3><?=$creates?></h3>
|
||||
<h2>Create Class</h2>
|
||||
<a href="<?= base_url();?>admin/create-class">View</a>
|
||||
</div>
|
||||
       
|
||||
<div class="setting">
|
||||
<h3><?=$list?></h3>
|
||||
<h2>Order List</h2>
|
||||
<a href="<?= base_url();?>admin/order-list">View</a>
|
||||
</div>
|
||||
<?php if($this->session->user_type == "admin") { ?>
|
||||
<div class="create">
|
||||
<h3><?=$users?></h3>
|
||||
<h2>Admin users</h2>
|
||||
<a href="<?php echo base_url('admin/admin-user');?>">View</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
54
php/application/views/admin/includes/footer-script.php
Normal file
54
php/application/views/admin/includes/footer-script.php
Normal file
@ -0,0 +1,54 @@
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>-->
|
||||
<script src="<?=base_url();?>assets/admin/js/jquery-2.1.4.min.js"></script>
|
||||
<script src="<?=base_url();?>assets/admin/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" src="<?=base_url();?>assets/admin/js/push.js"></script>
|
||||
<script type="text/javascript" src="<?=base_url();?>assets/admin/js/bootstrap-datepicker.min.js"></script>
|
||||
<script type="text/javascript" src="<?=base_url();?>assets/admin/js/jquery.timepicker.min.js"></script>
|
||||
<script src="<?=base_url();?>assets/front/js/jquery-input-mask-phone-number.js"></script>
|
||||
<!-- <script>
|
||||
function toggleslidebar() {
|
||||
document.getElementById("sidebar").classList.toggle("active");
|
||||
}
|
||||
</script> -->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("#nav_list").click(function(){
|
||||
$(".admin-content").toggleClass("main");
|
||||
$(".admin-header .admin").toggleClass("main");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
function myFunction(x) {
|
||||
x.classList.toggle("change");
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$("#nav-click").click(function(){
|
||||
$("#sidebar ul").slideToggle();
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$('.datepicker').datepicker(
|
||||
{
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.timepicker').timepicker();
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
</script>
|
9
php/application/views/admin/includes/header-script.php
Normal file
9
php/application/views/admin/includes/header-script.php
Normal file
@ -0,0 +1,9 @@
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/style.css">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/responsive.css">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/bootstrap-datepicker3.min.css">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/jquery.timepicker.min.css">
|
14
php/application/views/admin/includes/header.php
Normal file
14
php/application/views/admin/includes/header.php
Normal file
@ -0,0 +1,14 @@
|
||||
<header>
|
||||
<div class="d-flex admin-header">
|
||||
<div class="toggle active" id="nav_list"> <img src="<?=base_url();?>assets/admin/img/hamperger.png" alt=""></div>
|
||||
<div class="admin ml-auto d-flex">
|
||||
<span><img src="<?=base_url();?>assets/admin/img/admin-logo.png"><?=$this->session->userdata('user_name');?></span>
|
||||
<span class="logout"><a href="<?= base_url();?>admin/logout"><img src="<?=base_url();?>assets/admin/img/logout.png">Logout</a></span>
|
||||
<div class="toggle-bar" id="nav-click" onclick="myFunction(this)">
|
||||
<div class="bar1"></div>
|
||||
<div class="bar2"></div>
|
||||
<div class="bar3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
48
php/application/views/admin/includes/left-menu.php
Normal file
48
php/application/views/admin/includes/left-menu.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
$menu1 = "";
|
||||
$menu2 = "";
|
||||
$menu3 = "";
|
||||
$menu4 = "";
|
||||
$menu5 = "";
|
||||
|
||||
if($this->uri->uri_string() == 'admin/dashboard')
|
||||
$menu1 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/class-name')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->segment(2) == 'class-name-edit')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/class-locations')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->segment(2) == 'class-locations-edit')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/class-instructors')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->segment(2) == 'class-instructors-edit')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/create-class')
|
||||
$menu3 = "active highlight";
|
||||
if($this->uri->segment(2) == 'create-class-edit')
|
||||
$menu3 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/admin-user')
|
||||
$menu4 = "active highlight";
|
||||
if($this->uri->segment(2) == 'admin-user-edit')
|
||||
$menu4 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/order-list')
|
||||
$menu5 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/order-search')
|
||||
$menu5 = "active highlight";
|
||||
if($this->uri->segment(2) == 'order-list')
|
||||
$menu5 = "active highlight";
|
||||
?>
|
||||
<nav class="admin-nav pushmenu pushmenu-left pushmenu-open" id="sidebar">
|
||||
<div class="logo"><img src="<?=base_url();?>assets/admin/img/abc_logo_svg.svg" alt=""></div>
|
||||
<ul>
|
||||
<li class="<?=$menu1?>"><a href="<?= base_url();?>admin/dashboard"><img src="<?=base_url();?>assets/admin/img/dashboard.png" alt=""> Dashboard</a></li>
|
||||
<li class="<?=$menu2?>"><a href="<?= base_url();?>admin/class-name"><img src="<?=base_url();?>assets/admin/img/tools.png" alt="">Class Settings</a></li>
|
||||
<li class="<?=$menu3?>"><a href="<?= base_url();?>admin/create-class"><img src="<?=base_url();?>assets/admin/img/create.png" alt="">Create Class</a></li>
|
||||
<li class="<?=$menu5?>"><a href="<?= base_url();?>admin/order-list"><img src="<?=base_url();?>assets/admin/img/list.png" alt="">Order List</a></li>
|
||||
<?php if($this->session->user_type == "admin") { ?>
|
||||
<li class="<?=$menu4?>"><a href="<?= base_url();?>admin/admin-user"><img src="<?=base_url();?>assets/admin/img/ad.png" alt="">Admin Users</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</nav>
|
118
php/application/views/admin/index.html
Normal file
118
php/application/views/admin/index.html
Normal file
@ -0,0 +1,118 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/responsive.css">
|
||||
<title>ABC-DASHBOARD</title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<nav class="admin-nav pushmenu pushmenu-left pushmenu-open" id="sidebar">
|
||||
<div class="logo"><img src="https://www.abc.org/Portals/1/abc_logo_svg.svg" alt=""></div>
|
||||
<ul>
|
||||
<li class="active"><a href="index.html"><img src="img/dashboard.png" alt=""> Dashboard</a></li>
|
||||
<li><a href="classsetting-names.html"><img src="img/tools.png" alt="">Class Settings</a></li>
|
||||
<li><a href="class-form.html"><img src="img/create.png" alt="">Create Class</a></li>
|
||||
<li><a href="admin-users.html"><img src="img/ad.png" alt="">Admin Users</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<header>
|
||||
<div class="d-flex admin-header">
|
||||
<div class="toggle active" id="nav_list"> <img src="img/hamperger.png" alt=""></div>
|
||||
<div class="admin ml-auto d-flex">
|
||||
<span > <img src="img/admin-logo.png"> Admin</span> <span class="logout"> <img src="img/logout.png">Logout</span>
|
||||
<div class="toggle-bar" id="nav-click" onclick="myFunction(this)">
|
||||
<div class="bar1"></div>
|
||||
<div class="bar2"></div>
|
||||
<div class="bar3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2>Dashboard</h2>
|
||||
<div class="dashboard d-flex">
|
||||
<div class="col-sm-10 d-flex no-pad">
|
||||
<div class="setting">
|
||||
<h3>150</h3>
|
||||
<h2>Class Settings</h2>
|
||||
<a href="classsetting-names.html">View</a>
|
||||
|
||||
</div>
|
||||
<div class="create">
|
||||
<h3>150</h3>
|
||||
<h2>Create Class</h2>
|
||||
<a href="class-form.html">View</a></div>
|
||||
<div class="create admin">
|
||||
<h3>150</h3>
|
||||
<h2>Admin users</h2>
|
||||
<a href="admin-users.html">View</a></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" src="js/push.js"></script>
|
||||
<!-- <script>
|
||||
function toggleslidebar() {
|
||||
document.getElementById("sidebar").classList.toggle("active");
|
||||
}
|
||||
</script> -->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("#nav_list").click(function(){
|
||||
$(".admin-content").toggleClass("main");
|
||||
$(".admin-header .admin").toggleClass("main");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
function myFunction(x) {
|
||||
x.classList.toggle("change");
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$("#nav-click").click(function(){
|
||||
$("#sidebar ul").slideToggle();
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(".date-time").hide();
|
||||
$(".chk-date1").click(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$("#expand1").show();
|
||||
} else {
|
||||
$("#expand1").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$(".chk-date2").click(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$("#expand2").show();
|
||||
} else {
|
||||
$("#expand2").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$(".chk-date3").click(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$("#expand3").show();
|
||||
} else {
|
||||
$("#expand3").hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
67
php/application/views/admin/login.php
Normal file
67
php/application/views/admin/login.php
Normal file
@ -0,0 +1,67 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/style.css">
|
||||
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<section class="abc-login">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-9 col-md-7 col-lg-5 mx-auto">
|
||||
<div class="card card-signin my-5">
|
||||
<div class="card-body">
|
||||
<div class="logo d-flex justify-content-center align-content-center"> <img src="<?=base_url();?>assets/admin/img/logo.jpg" alt=""></div>
|
||||
<h5 class="card-title text-center">Please enter your login details. </h5>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('login_failed');
|
||||
if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php echo form_open('admin/admin/login'); ?>
|
||||
<div class="form-signin">
|
||||
<div class="form-label-group">
|
||||
<label for="inputEmail">User Name</label>
|
||||
<input type="text" id="username" name="username" value="<?php if(isset($_COOKIE['abc_user'])) { echo $_COOKIE['abc_user']; } ?>" class="form-control" placeholder="User Name" required autofocus>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-label-group">
|
||||
<label for="inputPassword">Password</label>
|
||||
<input type="password" id="password" value="<?php if(isset($_COOKIE['abc_password'])) { echo $_COOKIE['abc_password']; } ?>" name="password" class="form-control" placeholder="Password" required>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox mb-3">
|
||||
<input type="checkbox" <?php if(isset($_COOKIE['abc_password'])) { ?> checked="checked" <?php } ?> class="custom-control-input" name="remember_me" id="customCheck1">
|
||||
<label class="custom-control-label remember" for="customCheck1"><span>Remember password</span></label>
|
||||
</div>
|
||||
<button class="btn btn-lg btn-primary btn-block text-uppercase" type="submit">Sign in</button>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
108
php/application/views/admin/order-list.php
Normal file
108
php/application/views/admin/order-list.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
<style type="text/css">
|
||||
.button {
|
||||
margin-top: -6px;
|
||||
padding: 4px 10px;
|
||||
text-align: center;
|
||||
font-family: 'HelveticaNeue-Condensed';
|
||||
font-size: 16px;
|
||||
position: relative;
|
||||
border: 0;
|
||||
background: #0070c0;
|
||||
color: #fff;
|
||||
top: -6px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2>Order List</h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12">
|
||||
<?php echo form_open('admin/order-search'); ?>
|
||||
<div class="form-group d-flex">
|
||||
<h3>Search</h3>
|
||||
<div class="col-md-3">
|
||||
<input class="form-control" type="text" name="orderno" placeholder="Order Number" value="<?= set_value('orderno') ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input class="form-control datepicker" type="text" name="fromedate" placeholder="Order From Date" value="<?= set_value('fromedate') ?>">
|
||||
</div>
|
||||
<h3>-</h3>
|
||||
<div class="col-md-3">
|
||||
<input class="form-control datepicker" type="text" name="todate" placeholder="Order To Date" value="<?= set_value('todate') ?>">
|
||||
</div>
|
||||
<div class="search-class col-md-3">
|
||||
<input class="search submitLink" name="submit" value="Search" style="cursor: pointer;" type="submit">
|
||||
</div>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
<div class="table-responsive ">
|
||||
<table class="table" >
|
||||
<thead>
|
||||
<tr style="font-weight: bold;">
|
||||
<th>Order Number</th>
|
||||
<th>Class Location</th>
|
||||
<th>Total Class</th>
|
||||
<th>Total Registrants</th>
|
||||
<th>Total Amonut</th>
|
||||
<th>Date Ordered</th>
|
||||
<th>Status</th>
|
||||
<th style="width: 170px">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_order as $val) { ?>
|
||||
<tr>
|
||||
<td><?=$val->reg_id?></td>
|
||||
<td><?=$val->locat_name?></td>
|
||||
<td><?=$val->reg_class_count?></td>
|
||||
<td><?=$val->att_total_count?></td>
|
||||
<td><?='$ '.$val->reg_total.'.00'?></td>
|
||||
<td><?=date("d-m-Y",strtotime($val->reg_date))?></td>
|
||||
<td><?php if($val->status == "paid") { ?><span class="alert-success">Paid</span><?php } elseif ($val->status == "unpaid") { ?><span class="alert-danger"> Unpaid</span><?php } ?></td>
|
||||
<td> <a href="<?=base_url();?>admin/view-order/<?=$val->reg_id?>/0" title="view"><img src="<?=base_url();?>assets/admin/img/eye.png" alt=""><a> 
|
||||
<a href="<?=base_url();?>admin/view-order/<?=$val->reg_id?>/1" title="print"><img src="<?=base_url();?>assets/admin/img/print.png" alt=""><a> 
|
||||
<a href="<?=base_url();?>order-delete/<?=$val->reg_id?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a>
|
||||
<?php if($val->status == "unpaid") { ?>
|
||||
<a href="<?=base_url();?>order-paid/<?=$val->reg_id?>"><input style="cursor: pointer;" class="button" type="submit" value="Paid" name=""></a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div align="right">
|
||||
<ul class="pagination">
|
||||
<?php foreach ($links as $link) {
|
||||
echo "<li>". $link."</li>";
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
65
php/application/views/admin/test.php
Normal file
65
php/application/views/admin/test.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if($this->session->user_id == "")
|
||||
{
|
||||
redirect('admin');
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<section class="abc-approve">
|
||||
<?php foreach($order as $value) { ?>
|
||||
<div class="container">
|
||||
<h1>Review / Approve Registrations</h1>
|
||||
<h2><?=$value['class_name']?></h2>
|
||||
<p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?><br>
|
||||
Days of Week: <?=$value['class_day']?>
|
||||
</p>
|
||||
<?php foreach ($return_class as $key) {
|
||||
|
||||
}
|
||||
?>
|
||||
<?php foreach($registrants as $val)
|
||||
{
|
||||
if ($val->reg_id == $value['reg_id']) ?>
|
||||
<div class="approve">
|
||||
<label><span> <?=$value['class_id']?> </span><?php if($val->reg_m_type == "M"){echo "Member / Alumni";}elseif($val->reg_m_type == "N"){echo "Non-Member ";}elseif($val->reg_m_type == "S"){echo "Subscribing Employer";}?></label>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$val->att_f_name?> <?=$val->att_l_name?> <?=$val->att_email?> <?=$val->att_number?> <a href="" class="cls-btn"> (remove) </a> </div>
|
||||
<div class="col-sm-4">$ <?=$val->att_price?>.00</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ <?=$value['regclass_total_price']?>.00</div>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum grand">
|
||||
<div class="col-sm-8 no-pad">Grand Total</div>
|
||||
<div class="col-sm-4">$ <?=$value['reg_total']?>.00</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>admin/order-list"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
|
||||
</section>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
132
php/application/views/admin/view-order.php
Normal file
132
php/application/views/admin/view-order.php
Normal file
@ -0,0 +1,132 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<?php if($type == 1) { ?>
|
||||
<button id="print" type="button" class="btn" style="float: right; background: #be0000; color: #fff;" onclick="printContent('printd');" >Print Preview</button>
|
||||
<?php } ?>
|
||||
<section class="abc-approve" id="printd">
|
||||
<h1>Order No: <?=$orderno?></h1>
|
||||
<?php foreach($return_class as $value) { ?>
|
||||
<h2><?=$value['class_name']?></h2>
|
||||
<p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?><br>
|
||||
Days of Week: <?php ob_start(); foreach (explode(",", $value['class_day']) as $day) {
|
||||
echo ucfirst(strtolower($day)).',';
|
||||
}
|
||||
$output = ob_get_clean();
|
||||
echo rtrim($output, ',');
|
||||
?>
|
||||
</p>
|
||||
<div class="approve">
|
||||
<?php if(isset($mcount) && $mcount > 0) { ?>
|
||||
<label><span><?=$mcount?></span>Member / Alumni</label>
|
||||
<?php foreach ($member as $mem) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$mem['att_f_name']?> <?=$mem['att_l_name']?> <?=$mem['att_email']?> <?=$mem['att_number']?> <?=$mem['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$mem['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } if(isset($mcount2) && $mcount2 > 0) { ?>
|
||||
<label><span><?=$mcount2?></span>Member / Alumni 2+</label>
|
||||
<?php foreach ($member2 as $mem2) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$mem2['att_f_name']?> <?=$mem2['att_l_name']?> <?=$mem2['att_email']?> <?=$mem2['att_number']?> <?=$mem2['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$mem2['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } if(isset($ncount) && $ncount > 0) { ?>
|
||||
<label><span><?=$ncount?></span>Non-Member</label>
|
||||
<?php foreach ($nonmember as $non) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$non['att_f_name']?> <?=$non['att_l_name']?> <?=$non['att_email']?> <?=$non['att_number']?> <?=$non['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$non['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } if(isset($ncount2) && $ncount2 > 0) { ?>
|
||||
<label><span><?=$ncount2?></span>Non-Member 2+</label>
|
||||
<?php foreach ($nonmember2 as $non2) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$non2['att_f_name']?> <?=$non2['att_l_name']?> <?=$non2['att_email']?> <?=$non2['att_number']?> <?=$non2['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$non2['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } if(isset($scount) && $scount > 0) { ?>
|
||||
<label><span><?=$scount?></span>Subscribing Employer</label>
|
||||
<?php foreach ($semember as $sem) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$sem['att_f_name']?> <?=$sem['att_l_name']?> <?=$sem['att_email']?> <?=$sem['att_number']?> <?=$sem['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$sem['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ <?=$value['regclass_total_price']?>.00</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Order Details</div>
|
||||
</div>
|
||||
<div class="d-flex content class-sum">
|
||||
<div class="col-sm-4">
|
||||
<p>
|
||||
Ordered Date: <?=$reg_date?><br>
|
||||
|
||||
Address : <?=$address?><br>
|
||||
Phone No : <?=$phone_no?><br>
|
||||
Email Id : <?=$email_id?><br>
|
||||
No Of Classes : <?=$class_count?><br>
|
||||
No Of Attendee : <?=$att_count?><br>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<p>
|
||||
Holder Name : <?=$card_holder_name?><br>
|
||||
Payment Type : <?=$payment_type?><br>
|
||||
Card Number : <?='************' . substr($card_number,-4)?><br>
|
||||
Card Type : <?=$card_type?><br>
|
||||
Expiration : <?=$exp_month?>,<?=$exp_year?><br>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<p>
|
||||
Status: <?=$status?><br>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum grand">
|
||||
<div class="col-sm-8 no-pad">Grand Total</div>
|
||||
<div class="col-sm-4">$ <?=$reg_total?>.00</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>admin/order-list"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function printContent(el){
|
||||
var restorepage = $('body').html();
|
||||
var printcontent = $('#' + el).clone();
|
||||
$('body').empty().html(printcontent);
|
||||
window.print();
|
||||
$('body').html(restorepage);
|
||||
}
|
||||
</script>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
BIN
php/application/views/errors/.DS_Store
vendored
Normal file
BIN
php/application/views/errors/.DS_Store
vendored
Normal file
Binary file not shown.
8
php/application/views/errors/cli/error_404.php
Normal file
8
php/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
php/application/views/errors/cli/error_db.php
Normal file
8
php/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
php/application/views/errors/cli/error_exception.php
Normal file
21
php/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
php/application/views/errors/cli/error_general.php
Normal file
8
php/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
php/application/views/errors/cli/error_php.php
Normal file
21
php/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
php/application/views/errors/cli/index.html
Normal file
11
php/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
php/application/views/errors/html/error_404.php
Normal file
64
php/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
php/application/views/errors/html/error_db.php
Normal file
64
php/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
php/application/views/errors/html/error_exception.php
Normal file
32
php/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
php/application/views/errors/html/error_general.php
Normal file
64
php/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
php/application/views/errors/html/error_php.php
Normal file
33
php/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
php/application/views/errors/html/index.html
Normal file
11
php/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
php/application/views/errors/index.html
Normal file
11
php/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>
|
38
php/application/views/front/confirm.php
Normal file
38
php/application/views/front/confirm.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=FRONT_TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Order Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="abc-tab">
|
||||
<div class="container">
|
||||
<h1 style="font-size:300%; font-family:verdana;" class="justify-content-center d-flex">
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { echo $success_msg; } elseif($error_msg) { echo $error_msg; }
|
||||
?>
|
||||
</h1>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>"><button type="button" class="btn" style="background: #899ec4;">Back To Home</button></a></div>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
348
php/application/views/front/includes/footer-script.php
Normal file
348
php/application/views/front/includes/footer-script.php
Normal file
@ -0,0 +1,348 @@
|
||||
<script src="<?=base_url();?>assets/front/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="<?=base_url();?>assets/front/js/bootstrap.min.js"></script>
|
||||
<script src="<?=base_url();?>assets/front/js/jquery-input-mask-phone-number.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(".enroll-btnm").click(function() /*Enroll Member*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var mprice=$(this).attr('mem-price');
|
||||
var trno = $('#mebhid'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="mdiv'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="m_first_name_'+form+'[]" placeholder="First Name*" onblur="membersum('+form+','+nexttr+form+','+mprice+')" onKeyUp="member('+nexttr+form+')" id="m_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="m_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="member('+nexttr+form+')" id="m_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="m_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="member('+nexttr+form+')" id="m_email_id'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="m_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="member('+nexttr+form+')" id="m_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" name="m_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="member('+nexttr+form+')" class="ssn" id="m_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-m" mem-price='+mprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="madiv'+nexttr+form+'" class="d-flex alumi-content mebdiv">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="member'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="mprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-m" mem-price='+mprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.almeb'+form).append(html2).html();
|
||||
$('#mebhid'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-m", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
var form =$(this).attr('form-data');
|
||||
var mprice=$(this).attr('mem-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var mmprice = parseInt(mprice);
|
||||
var total = totalsum - mmprice;
|
||||
document.getElementById('mdiv'+btnid).remove();
|
||||
document.getElementById('madiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
|
||||
|
||||
$(".enroll-btnm2").click(function() /*Enroll Member*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var mprice=$(this).attr('mem2-price');
|
||||
var trno = $('#mebhid2'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="m2div'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="mp_first_name_'+form+'[]" placeholder="First Name*" onblur="memplussum('+form+','+nexttr+form+','+mprice+')" onKeyUp="memplus('+nexttr+form+')" id="m2_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="mp_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="memplus('+nexttr+form+')" id="m2_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="mp_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="memplus('+nexttr+form+')" id="m2_email_id'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="mp_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="memplus('+nexttr+form+')" id="m2_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" class="ssn" name="mp_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="memplus('+nexttr+form+')" id="m2_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-m2" mem2-price='+mprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="m2adiv'+nexttr+form+'" class="d-flex alumi-content meb2div">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="memplus'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="mplusprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-m2" mem2-price='+mprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.almeb2'+form).append(html2).html();
|
||||
$('#mebhid2'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-m2", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
|
||||
var form =$(this).attr('form-data');
|
||||
var mprice=$(this).attr('mem2-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var mmprice = parseInt(mprice);
|
||||
var total = totalsum - mmprice;
|
||||
document.getElementById('m2div'+btnid).remove();
|
||||
document.getElementById('m2adiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(".enroll-btnn").click(function() /*Enroll Non Member*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var nprice=$(this).attr('nmem-price');
|
||||
var trno = $('#nmebhid'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="ndiv'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="n_first_name_'+form+'[]" placeholder="First Name*" onblur="nmembersum('+form+','+nexttr+form+','+nprice+')" onKeyUp="nonmember('+nexttr+form+')" id="n_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="n_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="nonmember('+nexttr+form+')" id="n_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="n_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="nonmember('+nexttr+form+')" id="n_email_id'+nexttr+form+'" ></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="n_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="nonmember('+nexttr+form+')" id="n_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" class="ssn" name="n_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="nonmember('+nexttr+form+')" id="n_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-n" nmem-price='+nprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="nadiv'+nexttr+form+'" class="d-flex alumi-content nmebdiv">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="nonmember'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="nprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-n" nmem-price='+nprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.alnmeb'+form).append(html2).html();
|
||||
$('#nmebhid'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-n", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
var form =$(this).attr('form-data');
|
||||
var nprice=$(this).attr('nmem-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var nmprice = parseInt(nprice);
|
||||
var total = totalsum - nmprice;
|
||||
document.getElementById('ndiv'+btnid).remove();
|
||||
document.getElementById('nadiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
|
||||
|
||||
$(".enroll-btnn2").click(function() /*Enroll Non Member 2+*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var nprice=$(this).attr('nmem2-price');
|
||||
var trno = $('#nmebhid'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="n2div'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="np_first_name_'+form+'[]" placeholder="First Name*" onblur="nmemplussum('+form+','+nexttr+form+','+nprice+')" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="np_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="np_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_email_id'+nexttr+form+'" ></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="np_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" class="ssn" name="np_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-n2" nmem2-price='+nprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="n2adiv'+nexttr+form+'" class="d-flex alumi-content nmebdiv">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="nmemplus'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="nplusprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-n2" nmem2-price='+nprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.alnmeb2'+form).append(html2).html();
|
||||
$('#nmebhid'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-n2", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
var form =$(this).attr('form-data');
|
||||
var nprice=$(this).attr('nmem2-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var nmprice = parseInt(nprice);
|
||||
var total = totalsum - nmprice;
|
||||
document.getElementById('n2div'+btnid).remove();
|
||||
document.getElementById('n2adiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
|
||||
|
||||
$(".enroll-btns").click(function() /*Enroll Employer*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var sprice=$(this).attr('smem-price');
|
||||
var trno = $('#smebhid'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="sdiv'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="s_first_name_'+form+'[]" placeholder="First Name*" onblur="smembersum('+form+','+nexttr+form+','+sprice+')" onKeyUp="employer('+nexttr+form+')" id="s_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="s_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="employer('+nexttr+form+')" id="s_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="s_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="employer('+nexttr+form+')" id="s_email_id'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="s_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="employer('+nexttr+form+')" id="s_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" class="ssn" name="s_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="employer('+nexttr+form+')" id="s_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-s" smem-price='+sprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="sadiv'+nexttr+form+'" class="d-flex alumi-content smebdiv">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="employer'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="sprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-s" smem-price='+sprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.alsmeb'+form).append(html2).html();
|
||||
$('#smebhid'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-s", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
var form =$(this).attr('form-data');
|
||||
var sprice=$(this).attr('smem-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var smprice = parseInt(sprice);
|
||||
var total = totalsum - smprice;
|
||||
document.getElementById('sdiv'+btnid).remove();
|
||||
document.getElementById('sadiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
/*Reset First Field*/
|
||||
|
||||
function resetm(fid,mpr) /*Reset Member*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#mprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - mpr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultsm'+fid).find('input').val('');
|
||||
$('#mprice'+fid).html('0.00');
|
||||
$('.resultsm'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
function resetm2(fid,mpr) /*Reset Member 2+*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#mplusprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - mpr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultsm2'+fid).find('input').val('');
|
||||
$('#mplusprice'+fid).html('0.00');
|
||||
$('.resultsm2'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
function resetn(fid,npr) /*Reset Non Member*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#nprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - npr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultsn'+fid).find('input').val('');
|
||||
$('#nprice'+fid).html('0.00');
|
||||
$('.resultsn'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
function resetn2(fid,npr) /*Reset Non Member 2+*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#nplusprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - npr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultsn2'+fid).find('input').val('');
|
||||
$('#nplusprice'+fid).html('0.00');
|
||||
$('.resultsn2'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
function resets(fid,spr) /*Reset Employer*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#sprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - spr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultss'+fid).find('input').val('');
|
||||
$('#sprice'+fid).html('0.00');
|
||||
$('.resultss'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('input[type="checkbox"]').click(function(){
|
||||
var inputValue = $(this).attr("value");
|
||||
$("." + inputValue).toggle();
|
||||
});
|
||||
});
|
||||
</script>
|
6
php/application/views/front/includes/header-script.php
Normal file
6
php/application/views/front/includes/header-script.php
Normal file
@ -0,0 +1,6 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/front/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link href="<?=base_url();?>assets/front/css/style.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/front/css/responsive.css">
|
14
php/application/views/front/includes/header.php
Normal file
14
php/application/views/front/includes/header.php
Normal file
@ -0,0 +1,14 @@
|
||||
<header>
|
||||
<div class="d-flex admin-header">
|
||||
<div class="toggle active" id="nav_list"> <img src="<?=base_url();?>assets/admin/img/hamperger.png" alt=""></div>
|
||||
<div class="admin ml-auto d-flex">
|
||||
<span><img src="<?=base_url();?>assets/admin/img/admin-logo.png"><?=$this->session->userdata('user_name');?></span>
|
||||
<span class="logout"><a href="<?php echo base_url('admin/admin/logout'); ?>"><img src="<?=base_url();?>assets/admin/img/logout.png">Logout</a></span>
|
||||
<div class="toggle-bar" id="nav-click" onclick="myFunction(this)">
|
||||
<div class="bar1"></div>
|
||||
<div class="bar2"></div>
|
||||
<div class="bar3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
141
php/application/views/front/includes/index-header.php
Normal file
141
php/application/views/front/includes/index-header.php
Normal file
@ -0,0 +1,141 @@
|
||||
<script type="text/javascript">
|
||||
function member(fid)
|
||||
{
|
||||
var m_first_name = document.getElementById("m_first_name"+fid).value;
|
||||
var m_last_name = document.getElementById("m_last_name"+fid).value;
|
||||
var m_email_id = document.getElementById("m_email_id"+fid).value;
|
||||
var m_phone_no = document.getElementById("m_phone_no"+fid).value;
|
||||
var m_ssn = document.getElementById("m_ssn"+fid).value;
|
||||
var result = m_first_name + ' ' + m_last_name + ' ' + m_email_id + ' ' + m_phone_no + ' ' + m_ssn;
|
||||
document.getElementById('member'+fid).textContent = result;
|
||||
}
|
||||
function membersum(fid,cid,mprice)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) { var value = document.getElementById('mprice'+cid).innerHTML;
|
||||
document.getElementById('mprice'+cid).textContent = mprice;}
|
||||
else { var value = document.getElementById('mprice'+fid).innerHTML;
|
||||
document.getElementById('mprice'+fid).textContent = mprice;}
|
||||
var val = parseInt(value);
|
||||
var totalsum = parseInt(cursum);
|
||||
var mmprice = parseInt(mprice);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = mprice;
|
||||
} else { var tot =totalsum+mmprice;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function memplus(fid)
|
||||
{
|
||||
var m2_first_name = document.getElementById("m2_first_name"+fid).value;
|
||||
var m2_last_name = document.getElementById("m2_last_name"+fid).value;
|
||||
var m2_email_id = document.getElementById("m2_email_id"+fid).value;
|
||||
var m2_phone_no = document.getElementById("m2_phone_no"+fid).value;
|
||||
var m2_ssn = document.getElementById("m2_ssn"+fid).value;
|
||||
var result = m2_first_name + ' ' + m2_last_name + ' ' + m2_email_id + ' ' + m2_phone_no + ' ' + m2_ssn;
|
||||
document.getElementById('memplus'+fid).textContent = result;
|
||||
}
|
||||
function memplussum(fid,cid,m2price)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) { var value = document.getElementById('mplusprice'+cid).innerHTML;
|
||||
document.getElementById('mplusprice'+cid).textContent = m2price;}
|
||||
else { var value = document.getElementById('mplusprice'+fid).innerHTML;
|
||||
document.getElementById('mplusprice'+fid).textContent = m2price;}
|
||||
var totalsum = parseInt(cursum);
|
||||
var mm2price = parseInt(m2price);
|
||||
var val = parseInt(value);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = m2price;
|
||||
} else { var tot =totalsum+mm2price;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function nonmember(fid)
|
||||
{
|
||||
var n_first_name = document.getElementById("n_first_name"+fid).value;
|
||||
var n_last_name = document.getElementById("n_last_name"+fid).value;
|
||||
var n_email_id = document.getElementById("n_email_id"+fid).value;
|
||||
var n_phone_no = document.getElementById("n_phone_no"+fid).value;
|
||||
var n_ssn = document.getElementById("n_ssn"+fid).value;
|
||||
var result = n_first_name + ' ' + n_last_name + ' ' + n_email_id + ' ' + n_phone_no + ' ' + n_ssn;
|
||||
document.getElementById('nonmember'+fid).textContent = result;
|
||||
}
|
||||
function nmembersum(fid,cid,nprice)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) {var value = document.getElementById('nprice'+cid).innerHTML;
|
||||
document.getElementById('nprice'+cid).textContent = nprice;}
|
||||
else { var value = document.getElementById('nprice'+fid).innerHTML;
|
||||
document.getElementById('nprice'+fid).textContent = nprice; }
|
||||
var totalsum = parseInt(cursum);
|
||||
var nmprice = parseInt(nprice);
|
||||
var val = parseInt(value);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = nprice;
|
||||
} else { var tot =totalsum+nmprice;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function nonmemplus(fid)
|
||||
{
|
||||
var n2_first_name = document.getElementById("n2_first_name"+fid).value;
|
||||
var n2_last_name = document.getElementById("n2_last_name"+fid).value;
|
||||
var n2_email_id = document.getElementById("n2_email_id"+fid).value;
|
||||
var n2_phone_no = document.getElementById("n2_phone_no"+fid).value;
|
||||
var n2_ssn = document.getElementById("n2_ssn"+fid).value;
|
||||
var result = n2_first_name + ' ' + n2_last_name + ' ' + n2_email_id + ' ' + n2_phone_no + ' ' + n2_ssn;
|
||||
document.getElementById('nmemplus'+fid).textContent = result;
|
||||
}
|
||||
function nmemplussum(fid,cid,n2price)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) { var value = document.getElementById('nplusprice'+cid).innerHTML;
|
||||
document.getElementById('nplusprice'+cid).textContent = n2price;}
|
||||
else { var value = document.getElementById('nplusprice'+fid).innerHTML;
|
||||
document.getElementById('nplusprice'+fid).textContent = n2price;}
|
||||
var totalsum = parseInt(cursum);
|
||||
var nm2price = parseInt(n2price);
|
||||
var val = parseInt(value);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = n2price;
|
||||
} else { var tot =totalsum+nm2price;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function employer(fid)
|
||||
{
|
||||
var s_first_name = document.getElementById("s_first_name"+fid).value;
|
||||
var s_last_name = document.getElementById("s_last_name"+fid).value;
|
||||
var s_email_id = document.getElementById("s_email_id"+fid).value;
|
||||
var s_phone_no = document.getElementById("s_phone_no"+fid).value;
|
||||
var s_ssn = document.getElementById("s_ssn"+fid).value;
|
||||
var result = s_first_name + ' ' + s_last_name + ' ' + s_email_id + ' ' + s_phone_no + ' ' + s_ssn;
|
||||
document.getElementById('employer'+fid).textContent = result;
|
||||
}
|
||||
function smembersum(fid,cid,sprice)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) { var value = document.getElementById('sprice'+cid).innerHTML;
|
||||
document.getElementById('sprice'+cid).textContent = sprice;}
|
||||
else{ var value = document.getElementById('sprice'+fid).innerHTML;
|
||||
document.getElementById('sprice'+fid).textContent = sprice;}
|
||||
var totalsum = parseInt(cursum);
|
||||
var smprice = parseInt(sprice);
|
||||
var val = parseInt(value);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = sprice;
|
||||
} else { var tot =totalsum+smprice;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
29
php/application/views/front/includes/left-menu.php
Normal file
29
php/application/views/front/includes/left-menu.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
$menu1 = "";
|
||||
$menu2 = "";
|
||||
$menu3 = "";
|
||||
$menu4 = "";
|
||||
if($this->uri->uri_string() == 'admin/admin/dashboard')
|
||||
$menu1 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/classsetting/cl_name')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/classsetting/cl_locations')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/classsetting/cl_instructors')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/createclass/cl_create')
|
||||
$menu3 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/user/admin_user')
|
||||
$menu4 = "active highlight";
|
||||
?>
|
||||
<nav class="admin-nav pushmenu pushmenu-left pushmenu-open" id="sidebar">
|
||||
<div class="logo"><img src="https://www.abc.org/Portals/1/abc_logo_svg.svg" alt=""></div>
|
||||
<ul>
|
||||
<li class="<?=$menu1?>"><a href="<?php echo base_url('admin/admin/dashboard'); ?>"><img src="<?=base_url();?>assets/admin/img/dashboard.png" alt=""> Dashboard</a></li>
|
||||
<li class="<?=$menu2?>"><a href="<?php echo base_url('admin/classsetting/cl_name'); ?>"><img src="<?=base_url();?>assets/admin/img/tools.png" alt="">Class Settings</a></li>
|
||||
<li class="<?=$menu3?>"><a href="<?php echo base_url('admin/createclass/cl_create'); ?>"><img src="<?=base_url();?>assets/admin/img/create.png" alt="">Create Class</a></li>
|
||||
<?php if($this->session->user_type == "admin") { ?>
|
||||
<li class="<?=$menu4?>"><a href="<?php echo base_url('admin/user/admin_user'); ?>"><img src="<?=base_url();?>assets/admin/img/ad.png" alt="">Admin Users</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</nav>
|
31
php/application/views/front/includes/test_footer.php
Normal file
31
php/application/views/front/includes/test_footer.php
Normal file
@ -0,0 +1,31 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(".enroll-btn").click(function(){
|
||||
var html="";
|
||||
html+='<div><ul class="d-flex">'
|
||||
html+='<li><input type="text" placeholder="First Name*"></li>'
|
||||
html+='<li><input type="text" placeholder="Last Name*"></li>'
|
||||
html+=' <li><input type="text" placeholder="Email Address*"></li>'
|
||||
html+=' <li><input type="text" placeholder="Phone Number*"></li> <button class="cls-btn"> X </button></ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
});
|
||||
$('body').delegate(".cls-btn", "click",function(){
|
||||
$(this).closest('div').hide();
|
||||
// // $(this).parent().hide();
|
||||
// $(this).parent().hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.start_text').click(function(){
|
||||
var inputValue = $(this).attr("value");
|
||||
|
||||
$("." + inputValue).toggle();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
405
php/application/views/front/index.php
Normal file
405
php/application/views/front/index.php
Normal file
@ -0,0 +1,405 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$urlcheck = $this->uri->segment(2);
|
||||
$this->session->set_userdata('urlcheck',$urlcheck);
|
||||
if(is_null($urlcheck)) { $urlcheck = isset($first_loc)? $first_loc : ''; }
|
||||
$cart = $this->session->userdata('cart');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=FRONT_TITLE?></title>
|
||||
<?php $this->load->view('front/includes/index-header')?>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="abc-tab">
|
||||
<div class="container">
|
||||
<div class="d-flex flex-row nav">
|
||||
<?php foreach($reg_location as $value) { ?>
|
||||
<div>
|
||||
<a class="<?php if($urlcheck==$value['locat_id']) { echo "active";} ?>" href="<?= base_url();?>loc-class/<?=$value['locat_id']?>"><?=$value['locat_name']?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php $count = 0; foreach ($reg_class as $value) { $count++;
|
||||
echo form_open('reg-manage'); ?>
|
||||
<div class="abc-detail d-flex">
|
||||
<div class="title">
|
||||
<h2 class="d-flex">Class Title</h2>
|
||||
<div class="adv"><font style="font-weight: bold;font-size: 20px;"><?=$value['class_name']?></font> Hours<span class="hr-span"><?=$value['class_hours']?></span></div>
|
||||
<div class="date"><input type="checkbox" <?php if(isset($cart)) { if(in_array($value['form_id'], $cart)) { echo "checked"; } } ?> name="form_class[]" id="<?=$value['form_id']?>" value="<?=$value['form_id']?>">
|
||||
<label for="<?=$value['form_id']?>"></label>
|
||||
<span>Start Date:</span>
|
||||
<span><?=date("m-d-Y",strtotime($value['calss_start_date']))?></span>
|
||||
<span><?=date('h:i A',strtotime($value['calss_start_time']))?></span>
|
||||
<span><?php ob_start(); foreach (explode(",", $value['class_day']) as $day) {
|
||||
echo ucfirst(strtolower($day)).',';
|
||||
}
|
||||
$output = ob_get_clean();
|
||||
echo rtrim($output, ',');
|
||||
?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="seat">
|
||||
<?php if($count==1) { ?><h2 class="justify-content-center d-flex">Seats Remaining</h2><?php } ?>
|
||||
<input type="hidden" name="form_id" id="form_id" value="<?=$value['form_id']?>">
|
||||
<span><?php if($value['remain_seats'] <= 0) { echo "No Seats Available"; } else { echo $value['remain_seats']; }?></span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div style="display: <?php if(isset($cart)) { if(in_array($value['form_id'], $cart)) { echo "block"; } else { echo "none"; } } else { echo "none"; } ?>;" class="abc-expand <?=$value['form_id']?>">
|
||||
<?php $registrants = explode(",", $value['class_registrants']); ?>
|
||||
<div class="member d-flex"> <?php if(in_array("M", $registrants)) { ?><span>Member / Alumni: $<?=$value['class_price_m']?>.00</span><?php } if(in_array("M2", $registrants)) { ?><span>Member / Alumni 2+: $<?=$value['class_price_m2']?>.00</span><?php } if(in_array("N", $registrants)) { ?><span> Non-Member: $<?=$value['class_price_n']?>.00</span><?php } if(in_array("N2", $registrants)) { ?><span> Non-Member 2+: $<?=$value['class_price_n2']?>.00</span><?php } if(in_array("S", $registrants)) { ?><span>SE: $<?=$value['class_price_s']?>.00</span><?php } ?>
|
||||
</div>
|
||||
<div class="d-flex class-des">
|
||||
<div class="col-md-5 no-pad">
|
||||
<h2>Class Description</h2>
|
||||
<p><?=$value['class_description']?></p>
|
||||
<span>Instructor: <?=$value['instr_name']?></span>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<h2>Class Details</h2>
|
||||
<p>Start Date: <?=date("m-d-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("m-d-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?>, <?=$value['class_address']?>, <?=$value['class_city']?>, <?=$value['class_state']?>, <?=$value['class_code']?><br>
|
||||
Days of Week: <?=$value['class_day']?><br>
|
||||
Seats Available: <?=$value['class_seats']?><br>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="attendee">
|
||||
<h3>Attendee Info</h3>
|
||||
|
||||
<?php $member = $this->session->userdata('member'.$value['form_id']);
|
||||
if(in_array("M", $registrants)) { ?>
|
||||
<label>Member / Alumni</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultsm<?=$value['form_id']?>"">
|
||||
<?php if(isset($member['M']) && !empty($member['M'])) {
|
||||
foreach ($member['M'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m_<?=$value['form_id']?>" id="class_price_m1<?=$value['form_id']?>" value="<?=$value['class_price_m']?>">
|
||||
<li><input type="text" onblur="membersum(<?=$value['form_id']?>,0,<?=$value['class_price_m']?>);" onKeyUp="member(1<?=$value['form_id']?>)" name="m_first_name_<?=$value['form_id']?>[]" id="m_first_name1<?=$value['form_id']?>" placeholder="First Name*"value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_last_name_<?=$value['form_id']?>[]" id="m_last_name1<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="member(1<?=$value['form_id']?>)" name="m_email_id_<?=$value['form_id']?>[]" id="m_email_id1<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" class="yourphone" name="m_phone_no_<?=$value['form_id']?>[]" id="m_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="member(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="m_ssn_<?=$value['form_id']?>[]" id="m_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_m'].'/'.'M'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m_<?=$value['form_id']?>" id="class_price_m<?=$value['form_id']?>" value="<?=$value['class_price_m']?>">
|
||||
<li><input type="text" onblur="membersum(<?=$value['form_id']?>,0,<?=$value['class_price_m']?>);" onKeyUp="member(1<?=$value['form_id']?>)" name="m_first_name_<?=$value['form_id']?>[]" id="m_first_name1<?=$value['form_id']?>" placeholder="First Name*" ></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_last_name_<?=$value['form_id']?>[]" id="m_last_name1<?=$value['form_id']?>" placeholder="Last Name*" ></li>
|
||||
<li><input type="email" onKeyUp="member(1<?=$value['form_id']?>)" name="m_email_id_<?=$value['form_id']?>[]" id="m_email_id1<?=$value['form_id']?>" placeholder="Email Address*" ></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="member(1<?=$value['form_id']?>)" class="phone" name="m_phone_no_<?=$value['form_id']?>[]" id="m_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" ></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="member(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="m_ssn_<?=$value['form_id']?>[]" id="m_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" ></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnm" form-data="<?=$value['form_id']?>" mem-price="<?=$value['class_price_m']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } $memplus = $this->session->userdata('memplus'.$value['form_id']);
|
||||
if(in_array("M2", $registrants)) { ?>
|
||||
<label>Member / Alumni 2+</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultsm2<?=$value['form_id']?>"">
|
||||
<?php if(isset($memplus['M2']) && !empty($memplus['M2'])) {
|
||||
foreach ($memplus['M2'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m2_<?=$value['form_id']?>" id="class_price_m21<?=$value['form_id']?>" value="<?=$value['class_price_m2']?>">
|
||||
<li><input type="text" onblur="memplussum(<?=$value['form_id']?>,0,<?=$value['class_price_m2']?>);" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_first_name_<?=$value['form_id']?>[]" id="m2_first_name<?=$value['form_id']?>" placeholder="First Name*"value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_last_name_<?=$value['form_id']?>[]" id="m2_last_name<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_email_id_<?=$value['form_id']?>[]" id="m2_email_id<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="memplus(1<?=$value['form_id']?>)" class="phone" name="mp_phone_no_<?=$value['form_id']?>[]" id="m2_phone_no<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="memplus(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="mp_ssn_<?=$value['form_id']?>[]" id="m2_ssn<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_m2'].'/'.'M2'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m2_<?=$value['form_id']?>" id="class_price_m2<?=$value['form_id']?>" value="<?=$value['class_price_m']?>">
|
||||
<li><input type="text" onblur="memplussum(<?=$value['form_id']?>,0,<?=$value['class_price_m2']?>);" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_first_name_<?=$value['form_id']?>[]" id="m2_first_name1<?=$value['form_id']?>" placeholder="First Name*" ></li>
|
||||
<li><input type="text" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_last_name_<?=$value['form_id']?>[]" id="m2_last_name1<?=$value['form_id']?>" placeholder="Last Name*" ></li>
|
||||
<li><input type="email" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_email_id_<?=$value['form_id']?>[]" id="m2_email_id1<?=$value['form_id']?>" placeholder="Email Address*" ></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="memplus(1<?=$value['form_id']?>)" class="phone" name="mp_phone_no_<?=$value['form_id']?>[]" id="m2_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" ></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="memplus(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="mp_ssn_<?=$value['form_id']?>[]" id="m2_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" ></li>
|
||||
</ul>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnm2" form-data="<?=$value['form_id']?>" mem2-price="<?=$value['class_price_m2']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } $nonmember = $this->session->userdata('nonmember'.$value['form_id']);
|
||||
if(in_array("N", $registrants)) { ?>
|
||||
<label>Non-Member</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultsn<?=$value['form_id']?>">
|
||||
<?php if(isset($nonmember['N']) && !empty($nonmember['N'])) {
|
||||
foreach ($nonmember['N'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n_<?=$value['form_id']?>" id="class_price_n1<?=$value['form_id']?>" value="<?=$value['class_price_n']?>">
|
||||
<li><input type="text" onblur="nmembersum(<?=$value['form_id']?>,0,<?=$value['class_price_n']?>);" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_first_name_<?=$value['form_id']?>[]" id="n_first_name1<?=$value['form_id']?>" placeholder="First Name*" value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_last_name_<?=$value['form_id']?>[]" id="n_last_name1<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_email_id_<?=$value['form_id']?>[]" id="n_email_id1<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="nonmember(1<?=$value['form_id']?>)" class="phone" name="n_phone_no_<?=$value['form_id']?>[]" id="n_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="nonmember(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="n_ssn_<?=$value['form_id']?>[]" id="n_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_n'].'/'.'N'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n_<?=$value['form_id']?>" id="class_price_n<?=$value['form_id']?>" value="<?=$value['class_price_n']?>">
|
||||
<li><input type="text" onblur="nmembersum(<?=$value['form_id']?>,0,<?=$value['class_price_n']?>);" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_first_name_<?=$value['form_id']?>[]" id="n_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_last_name_<?=$value['form_id']?>[]" id="n_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_email_id_<?=$value['form_id']?>[]" id="n_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="nonmember(1<?=$value['form_id']?>)" class="phone" name="n_phone_no_<?=$value['form_id']?>[]" id="n_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="nonmember(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="n_ssn_<?=$value['form_id']?>[]" id="n_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*"></li>
|
||||
</ul>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnn" form-data="<?=$value['form_id']?>" nmem-price="<?=$value['class_price_n']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } $nonplus = $this->session->userdata('nonplus'.$value['form_id']);
|
||||
if(in_array("N2", $registrants)) { ?>
|
||||
<label>Non-Member 2+</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultsn2<?=$value['form_id']?>">
|
||||
<?php if(isset($nonplus['N2']) && !empty($nonplus['N2'])) {
|
||||
foreach ($nonplus['N2'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n2_<?=$value['form_id']?>" id="class_price_n21<?=$value['form_id']?>" value="<?=$value['class_price_n']?>">
|
||||
<li><input type="text" onblur="nmemplussum(<?=$value['form_id']?>,0,<?=$value['class_price_n2']?>);" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_first_name_<?=$value['form_id']?>[]" id="n2_first_name1<?=$value['form_id']?>" placeholder="First Name*" value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_last_name_<?=$value['form_id']?>[]" id="n2_last_name1<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_email_id_<?=$value['form_id']?>[]" id="n2_email_id1<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" class="phone" name="np_phone_no_<?=$value['form_id']?>[]" id="n2_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="nonmemplus(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="np_ssn_<?=$value['form_id']?>[]" id="n2_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_n2'].'/'.'N2'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n2_<?=$value['form_id']?>" id="class_price_n2<?=$value['form_id']?>" value="<?=$value['class_price_n2']?>">
|
||||
<li><input type="text" onblur="nmemplussum(<?=$value['form_id']?>,0,<?=$value['class_price_n2']?>);" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_first_name_<?=$value['form_id']?>[]" id="n2_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_last_name_<?=$value['form_id']?>[]" id="n2_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_email_id_<?=$value['form_id']?>[]" id="n2_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" class="phone" name="np_phone_no_<?=$value['form_id']?>[]" id="n2_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="nonmemplus(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="np_ssn_<?=$value['form_id']?>[]" id="n2_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*"></li>
|
||||
</ul>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnn2" form-data="<?=$value['form_id']?>" nmem2-price="<?=$value['class_price_n2']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } $semember = $this->session->userdata('semember'.$value['form_id']);
|
||||
if(in_array("S", $registrants)) { ?>
|
||||
<label>Subscribing Employer</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultss<?=$value['form_id']?>">
|
||||
<?php if(isset($semember['S']) && !empty($semember['S'])) {
|
||||
foreach ($semember['S'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_s_<?=$value['form_id']?>" id="class_price_s1<?=$value['form_id']?>" value="<?=$value['class_price_s']?>">
|
||||
<li><input type="text" onblur="smembersum(<?=$value['form_id']?>,0,<?=$value['class_price_s']?>);" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_first_name_<?=$value['form_id']?>[]" id="s_first_name1<?=$value['form_id']?>" placeholder="First Name*" value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_last_name_<?=$value['form_id']?>[]" id="s_last_name1<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_email_id_<?=$value['form_id']?>[]" id="s_email_id1<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="employer(1<?=$value['form_id']?>)" class="phone" name="s_phone_no_<?=$value['form_id']?>[]" id="s_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="employer(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="s_ssn_<?=$value['form_id']?>[]" id="s_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_s'].'/'.'S'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_s_<?=$value['form_id']?>" id="class_price_s<?=$value['form_id']?>" value="<?=$value['class_price_s']?>">
|
||||
<li><input type="text" onblur="smembersum(<?=$value['form_id']?>,0,<?=$value['class_price_s']?>);" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_first_name_<?=$value['form_id']?>[]" id="s_first_name1<?=$value['form_id']?>" placeholder="First Name*" ></li>
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_last_name_<?=$value['form_id']?>[]" id="s_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_email_id_<?=$value['form_id']?>[]" id="s_email_id1<?=$value['form_id']?>" placeholder="Email Address*" ></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="employer(1<?=$value['form_id']?>)" class="phone" name="s_phone_no_<?=$value['form_id']?>[]" id="s_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" ></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="employer(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="s_ssn_<?=$value['form_id']?>[]" id="s_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" ></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btns" form-data="<?=$value['form_id']?>" smem-price="<?=$value['class_price_s']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="class-total">
|
||||
<h3>Class Totals</h3>
|
||||
<div class="alumi">
|
||||
<?php if(in_array("M", $registrants)) { ?>
|
||||
<label>Member / Alumni</label>
|
||||
<span class="almeb<?=$value['form_id']?>">
|
||||
<?php if(isset($member['M']) && !empty($member['M'])) {
|
||||
foreach ($member['M'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content mebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_m']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_m'].'/'.'M'?>"><span class="cls-btn-m">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content mebdiv" id="madiv1<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultsm<?=$value['form_id']?>"><span style="color: grey;" id="member1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="mprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resetm(<?=$value['form_id']?>,<?=$value['class_price_m']?>);"> X </span></div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="mebhid" id="mebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
|
||||
<?php } if(in_array("M2", $registrants)) { ?>
|
||||
<label>Member / Alumni 2+</label>
|
||||
<span class="almeb2<?=$value['form_id']?>">
|
||||
<?php if(isset($memplus['M2']) && !empty($memplus['M2'])) {
|
||||
foreach ($memplus['M2'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content meb2div">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_m2']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_m2'].'/'.'M2'?>"><span class="cls-btn-m2">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content meb2div" id="m2adiv1<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultsm2<?=$value['form_id']?>"><span style="color: grey;" id="memplus1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="mplusprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resetm2(<?=$value['form_id']?>,<?=$value['class_price_m2']?>);"> X </span></div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="mebhid2" id="mebhid2<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(in_array("N", $registrants)) { ?>
|
||||
<label>Non-Member</label>
|
||||
<span class="alnmeb<?=$value['form_id']?>">
|
||||
<?php if(isset($nonmember['N']) && !empty($nonmember['N'])) {
|
||||
foreach ($nonmember['N'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content nmebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_n']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_n'].'/'.'N'?>"><span class="cls-btn-n">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content nmebdiv" id="nadiv1<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultsn<?=$value['form_id']?>"><span style="color: grey;" id="nonmember1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="nprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resetn(<?=$value['form_id']?>,<?=$value['class_price_n']?>);"> X </span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="nmebhid" id="nmebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(in_array("N2", $registrants)) { ?>
|
||||
<label>Non-Member 2+</label>
|
||||
<span class="alnmeb2<?=$value['form_id']?>">
|
||||
<?php if(isset($nonplus['N2']) && !empty($nonplus['N2'])) {
|
||||
foreach ($nonplus['N2'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content nmeb2div">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_n2']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_n2'].'/'.'N2'?>"><span class="cls-btn-n2">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content nmeb2div" id="nadiv21<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultsn2<?=$value['form_id']?>"><span style="color: grey;" id="nmemplus1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="nplusprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resetn2(<?=$value['form_id']?>,<?=$value['class_price_n2']?>);"> X </span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="nmebhid" id="nmebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(in_array("S", $registrants)) { ?>
|
||||
<label>Subscribing Employer</label>
|
||||
<span class="alsmeb<?=$value['form_id']?>">
|
||||
<?php if(isset($semember['S']) && !empty($semember['S'])) {
|
||||
foreach ($semember['S'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content smebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_s']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_s'].'/'.'S'?>"><span class="cls-btn-n">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content smebdiv" id="sadiv1<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultss<?=$value['form_id']?>"><span style="color: grey;" id="employer1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="sprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resets(<?=$value['form_id']?>,<?=$value['class_price_s']?>);"> X </span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="smebhid" id="smebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8">Class Total</div>
|
||||
<div class="col-sm-4">$ <label id="total1<?=$value['form_id']?>"><?=$this->session->userdata('classtotal'.$value['form_id']);?></label>.00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?=base_url();?>reset-page"><button type="button" class="btn" style="background: #ff0000; color: #fff; ">Reset</button></a></div>
|
||||
<div class="p-2"><button type="submit" class="btn" style="background: #333366; color: #fff;">Review Order</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
266
php/application/views/front/payment.php
Normal file
266
php/application/views/front/payment.php
Normal file
@ -0,0 +1,266 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Registration Payment</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section>
|
||||
<div class="container">
|
||||
<?php echo form_open('hosted-payment'); ?>
|
||||
<div class="select-payment">
|
||||
<h3>Select Payment Type</h3><br>
|
||||
<div class="credit d-flex">
|
||||
<span> <input type="radio" checked name="payment_type" value="card" id="host1" class="radio" required><label for="host1"></label>Credit Card / Debit Card</span>
|
||||
<span> <input type="radio" name="payment_type" value="invoice" id="host2" class="radio"><label for="host2"></label>Invoice Company <font style="font-weight: bold;">(Members Only)</font></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="select-payment">
|
||||
<h3>Company Details</h3>
|
||||
<div class="card-detail">
|
||||
<span class="d-flex">
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">Company Name:*</label><input type="text" id="acvv" name="company_name" required></div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">Billing Contact:*</label><input type="text" id="acvv" name="billing_contact" required></div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">Customer ID:</label><input type="text" id="acvv" name="customer_id"></div>
|
||||
</span>
|
||||
<span class="d-flex"><label for="">Street Address:*</label><input type="text" id="aaddress" name="street_adrs" required></span>
|
||||
<span class="d-flex">
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">City:*</label><input type="text" name="city_name" required></div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">State:*</label>
|
||||
<select id="state" class="required" name="state" style="margin-left: 4px;" tabindex="8">
|
||||
<option value="">Choose State:</option>
|
||||
<option value="AL">Alabama</option><option value="AK">Alaska</option><option value="AZ">Arizona</option><option value="AR">Arkansas</option><option value="CA">California</option><option value="CO">Colorado</option><option value="CT">Connecticut</option><option value="DE">Delaware</option><option value="FL">Florida</option><option value="GA">Georgia</option><option value="HI">Hawaii</option><option value="ID">Idaho</option><option value="IL">Illinois</option><option value="IN">Indiana</option><option value="IA">Iowa</option><option value="KS">Kansas</option><option value="KY">Kentucky</option><option value="LA">Louisiana</option><option value="ME">Maine</option><option value="MD">Maryland</option><option value="MA">Massachusetts</option><option value="MI">Michigan</option><option value="MN">Minnesota</option><option value="MS">Mississippi</option><option value="MO">Missouri</option><option value="MT">Montana</option><option value="NE">Nebraska</option><option value="NV">Nevada</option><option value="NH">New Hampshire</option><option value="NJ">New Jersey</option><option value="NM">New Mexico</option><option value="NY">New York</option><option value="NC">North Carolina</option><option value="ND">North Dakota</option><option value="OH">Ohio</option><option value="OK">Oklahoma</option><option value="OR">Oregon</option><option value="PA">Pennsylvania</option><option value="RI">Rhode Island</option><option value="SC">South Carolina</option><option value="SD">South Dakota</option><option value="TN">Tennessee</option><option value="TX">Texas</option><option value="UT">Utah</option><option value="VT">Vermont</option><option value="VA">Virginia</option><option value="WA">Washington</option><option value="WV">West Virginia</option><option value="WI">Wisconsin</option><option value="WY">Wyoming</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">Postal Code:*</label><input type="text" name="post_code" required></div>
|
||||
</span>
|
||||
<span class="d-flex">
|
||||
<div class="col-md-6 d-flex no-pad"><label for="">Phone Number:*</label><input type="text" class="yourphone" id="aphno" name="phone_no" required></div>
|
||||
<div class="col-md-6 d-flex no-pad"><label for="">Fax Number: </label><input type="text" id="afaxno" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="fax_no"></div>
|
||||
</span>
|
||||
<span class="d-flex"><label for="" style="width:180px;">Additional Instructions:</label><textarea class="form-control" rows="5" id="comment" name="adtnal_instrction"></textarea></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="select-payment">
|
||||
<h3>Payment Details</h3>
|
||||
<div class="credit comp-detail">
|
||||
<!--<span class="d-flex"> <input type="checkbox" id="detail" class="check_box" onchange="AsAbove();"><label for="start"></label>Same as above</span>-->
|
||||
<div class="form-group d-flex">
|
||||
<span class="chk-abc"><input type="checkbox" value="Yes" name="details" id="start" class="chk-date1">
|
||||
<label for="start"></label>Same as above</span>
|
||||
</div>
|
||||
<div class="company-details detail">
|
||||
<span class="d-flex"><label for="" class="m-200 align-self-center">Card holder Name:*</label>
|
||||
<input type="text" id="acard_holder" name="card_holder_name" required>
|
||||
</span>
|
||||
<span class="d-flex">
|
||||
<div class="col-md-4 d-flex no-pad">
|
||||
<label for="" class="m-200 text-center align-self-center">Card Type:*</label>
|
||||
<select name="card_type" required>
|
||||
<option value="">--Select--</option>
|
||||
<option value="Express">American Express</option>
|
||||
<option value="Master">Master Card</option>
|
||||
<option value="Visa">Visa</option>
|
||||
<option value="Discover">Discover Card</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-8 d-flex no-pad">
|
||||
<label for="" class="m-200 text-center align-self-center">Card Number:*
|
||||
</label>
|
||||
<input type="text" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" maxlength="16" name="card_number" required>
|
||||
</div>
|
||||
</span>
|
||||
<span class="d-flex cd-sub">
|
||||
<div class="col-md-4 d-flex no-pad">
|
||||
<label for="" class="m-200 text-center align-self-center">Expiration Month:*</label>
|
||||
<select class="col-md-6" name="exp_month" id="aexpmo" required>
|
||||
<option selected value=''>--Select Month--</option>
|
||||
<option value='Jan'>Janaury</option>
|
||||
<option value='Feb'>February</option>
|
||||
<option value='Mar'>March</option>
|
||||
<option value='Apr'>April</option>
|
||||
<option value='May'>May</option>
|
||||
<option value='Jun'>June</option>
|
||||
<option value='Jul'>July</option>
|
||||
<option value='Aug'>August</option>
|
||||
<option value='Sep'>September</option>
|
||||
<option value='Oct'>October</option>
|
||||
<option value='Nov'>November</option>
|
||||
<option value='Dec'>December</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad">
|
||||
<label for="" class="m-200 text-center align-self-center">Exp Year:*</label>
|
||||
<select class="col-md-6" id="aexpyar" name="exp_year" required>
|
||||
<option selected value=''>--Select Year--</option>
|
||||
<option value='2018'>2018</option>
|
||||
<option value='2019'>2019</option>
|
||||
<option value='2020'>2020</option>
|
||||
<option value='2021'>2021</option>
|
||||
<option value='2022'>2022</option>
|
||||
<option value='2023'>2023</option>
|
||||
<option value='2024'>2024</option>
|
||||
<option value='2025'>2025</option>
|
||||
<option value='2026'>2026</option>
|
||||
<option value='2027'>2027</option>
|
||||
<option value='2028'>2028</option>
|
||||
<option value='2029'>2029</option>
|
||||
<option value='2030'>2030</option>
|
||||
<option value='2031'>2031</option>
|
||||
<option value='2032'>2032</option>
|
||||
<option value='2033'>2033</option>
|
||||
<option value='2034'>2034</option>
|
||||
<option value='2035'>2035</option>
|
||||
<option value='2036'>2036</option>
|
||||
<option value='2037'>2037</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">CVV Code:*</label>
|
||||
<input type="text" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" id="acvv" name="cvv_code" required>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
<!-- <div class="company-expand detail">
|
||||
<span class="d-flex"><label for="" class="m-200 align-self-center">Card holder Name:*</label><input type="text" id="bcard_holder" name="c_cardholder_name"> </span>
|
||||
<span class="d-flex"><label for="" class="m-200 align-self-center">Street Address*</label><input type="text" id="baddress" name="c_street_adrz"> </span>
|
||||
<span class="d-flex cd-sub">
|
||||
<div class="col-md-4 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">Expiration Month:*</label>
|
||||
<select name="c_exp_mnth" id="bexpmo">
|
||||
<option selected value=''>--Select Month--</option>
|
||||
<option value='Jan'>Janaury</option>
|
||||
<option value='Feb'>February</option>
|
||||
<option value='Mar'>March</option>
|
||||
<option value='Apr'>April</option>
|
||||
<option value='May'>May</option>
|
||||
<option value='Jun'>June</option>
|
||||
<option value='Jul'>July</option>
|
||||
<option value='Aug'>August</option>
|
||||
<option value='Sep'>September</option>
|
||||
<option value='Oct'>October</option>
|
||||
<option value='Nov'>November</option>
|
||||
<option value='Dec'>December</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">Exp Year:*</label>
|
||||
<select id="bexpyar" name="c_exp_year">
|
||||
<option selected value=''>--Select Year--</option>
|
||||
<option value='2018'>2018</option>
|
||||
<option value='2019'>2019</option>
|
||||
<option value='2020'>2020</option>
|
||||
<option value='2021'>2021</option>
|
||||
<option value='2022'>2022</option>
|
||||
<option value='2023'>2023</option>
|
||||
<option value='2024'>2024</option>
|
||||
<option value='2025'>2025</option>
|
||||
<option value='2026'>2026</option>
|
||||
<option value='2027'>2027</option>
|
||||
<option value='2028'>2028</option>
|
||||
<option value='2029'>2029</option>
|
||||
<option value='2030'>2030</option>
|
||||
<option value='2031'>2031</option>
|
||||
<option value='2032'>2032</option>
|
||||
<option value='2033'>2033</option>
|
||||
<option value='2034'>2034</option>
|
||||
<option value='2035'>2035</option>
|
||||
<option value='2036'>2036</option>
|
||||
<option value='2037'>2037</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">CVV Code:*</label>
|
||||
<input type="text" id="bcvv" name="c_ccv_code">
|
||||
</div>
|
||||
</span>
|
||||
<span class="d-flex cd-sub">
|
||||
<div class="col-md-6 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">Phone Number:*</label>
|
||||
<input type="text" id="bphno" name="c_phone_no"></div>
|
||||
<div class="col-md-6 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">Fax Number:*</label>
|
||||
<input type="text" id="bfaxno" name="c_fax_no"></div>
|
||||
</span>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="select-payment">
|
||||
<h3>Sale Information</h3>
|
||||
<div class="credit d-flex sale-in">
|
||||
<div class="p-2">Total Sale Amount:</div>
|
||||
<div class="ml-auto p-2">$ <?=$this->session->userdata('granttotal');?>.00</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="select-payment">
|
||||
<h3>Notifications / Receipts</h3>
|
||||
<div class="credit d-flex">
|
||||
<span class="align-self-center"> <input type="checkbox" id="host5" class="check_box"><label for="host5"></label>Email me a receipt</span>
|
||||
<span class="d-flex"> <label class="align-self-center m-200">Email Address:</label><input type="email" name="emai_id"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-center bd-highlight mb-3">
|
||||
<div class="p-2 bd-highlight"><button type="reset" class="btn clear-btn">Clear</button></div>
|
||||
<div class="p-2 bd-highlight"><button type="submit" class="btn process-btn">Process</button></div>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
<div class="abc-img d-flex flex-wrap justify-content-center align-items-center">
|
||||
<img src="<?=base_url();?>assets/front/img/visa.png" alt="">
|
||||
<img src="<?=base_url();?>assets/front/img/img.ssl.png" alt="">
|
||||
<img src="<?=base_url();?>assets/front/img/data.png" alt="">
|
||||
<img src="<?=base_url();?>assets/front/img/abc.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('input[type="checkbox"]').click(function(){
|
||||
var inputValue = $(this).attr("id");
|
||||
$("." + inputValue).toggle();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- <script type="text/javascript">
|
||||
function AsAbove() {
|
||||
var cb = document.getElementById('detail');
|
||||
var acdhd = document.getElementById('acard_holder');
|
||||
var bcdhd = document.getElementById('bcard_holder');
|
||||
var aadrs = document.getElementById('aaddress');
|
||||
var badrs = document.getElementById('baddress');
|
||||
var aexpm = document.getElementById('aexpmo');
|
||||
var bexpm = document.getElementById('bexpmo');
|
||||
var aexpy = document.getElementById('aexpyar');
|
||||
var bexpy = document.getElementById('bexpyar');
|
||||
var acvv = document.getElementById('acvv');
|
||||
var bcvv = document.getElementById('bcvv');
|
||||
var aphn = document.getElementById('aphno');
|
||||
var bphn = document.getElementById('bphno');
|
||||
var afaxno = document.getElementById('afaxno');
|
||||
var bfaxno = document.getElementById('bfaxno');
|
||||
if (cb.checked) {
|
||||
bcdhd.value = acdhd.value;
|
||||
badrs.value = aadrs.value;
|
||||
bexpm.value = aexpm.value;
|
||||
bexpy.value = aexpy.value;
|
||||
bcvv.value = acvv.value;
|
||||
bphn.value = aphn.value;
|
||||
bfaxno.value = afaxno.value;
|
||||
} else {
|
||||
bcdhd.value = '';
|
||||
badrs.value = '';
|
||||
bexpm.value = '';
|
||||
bexpy.value = '';
|
||||
bcvv.value = '';
|
||||
bphn.value = '';
|
||||
bfaxno.value = '';
|
||||
}
|
||||
}
|
||||
</script> -->
|
||||
</body>
|
||||
</html>
|
103
php/application/views/front/review.php
Normal file
103
php/application/views/front/review.php
Normal file
@ -0,0 +1,103 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<section class="abc-approve">
|
||||
<div class="container">
|
||||
<h1>Review / Approve Registrations</h1>
|
||||
<?php
|
||||
$cart = $this->session->userdata('cart');
|
||||
foreach ($cart as $cartcount => $form) {
|
||||
$classform = $this->session->userdata('classform'.$form);
|
||||
foreach ($classform as $formcount => $data) { ?>
|
||||
<h2><?=$data['class_name']?></h2>
|
||||
<p>Start Date: <?=date("m-d-Y",strtotime($data['calss_start_date']))?><br>
|
||||
End Date: <?=date("m-d-Y",strtotime($data['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($data['calss_start_time']))?> - <?=date('h:i A',strtotime($data['calss_end_time']))?><br>
|
||||
Location: <?=$data['class_room']?>, <?=$data['class_address']?>, <?=$data['class_city']?>, <?=$data['class_state']?>, <?=$data['class_code']?><br>
|
||||
Days of Week: <?php ob_start(); foreach (explode(",", $data['class_day']) as $day) {
|
||||
echo ucfirst(strtolower($day)).',';
|
||||
}
|
||||
$output = ob_get_clean();
|
||||
echo rtrim($output, ',');
|
||||
?>
|
||||
</p>
|
||||
<div class="approve">
|
||||
<?php
|
||||
$member = $this->session->userdata('member'.$form);
|
||||
if(isset($member['M'])) { ?>
|
||||
<label><span><?=$this->session->userdata('mcount'.$form)?></span>Member / Alumni</label>
|
||||
<?php foreach ($member['M'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_m']?>.00</div>
|
||||
</div>
|
||||
<?php } }
|
||||
$memplus = $this->session->userdata('memplus'.$form);
|
||||
if(isset($memplus['M2'])) { ?>
|
||||
<label><span><?=$this->session->userdata('mpluscount'.$form)?></span>Member / Alumni 2+</label>
|
||||
<?php foreach ($memplus['M2'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_m2']?>.00</div>
|
||||
</div>
|
||||
<?php } }
|
||||
$nonmember = $this->session->userdata('nonmember'.$form);
|
||||
if(isset($nonmember['N'])) { ?>
|
||||
<label><span><?=$this->session->userdata('ncount'.$form)?></span>Non-Member</label>
|
||||
<?php foreach ($nonmember['N'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_n']?>.00</div>
|
||||
</div>
|
||||
<?php } }
|
||||
$nonplus = $this->session->userdata('nonplus'.$form);
|
||||
if(isset($nonplus['N2'])) { ?>
|
||||
<label><span><?=$this->session->userdata('npluscount'.$form)?></span>Non-Member 2+</label>
|
||||
<?php foreach ($nonplus['N2'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_n2']?>.00</div>
|
||||
</div>
|
||||
<?php } }
|
||||
$semember = $this->session->userdata('semember'.$form);
|
||||
if(isset($semember['S'])) { ?>
|
||||
<label><span><?=$this->session->userdata('scount'.$form)?></span>Subscribing Employer</label>
|
||||
<?php foreach ($semember['S'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_s']?>.00</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ <?=$this->session->userdata('classtotal'.$form);?>.00</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
<div class="d-flex alumi-content class-sum grand">
|
||||
<div class="col-sm-8 no-pad">Grand Total</div>
|
||||
<div class="col-sm-4">$ <?=$this->session->userdata('granttotal');?>.00</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>review/back"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
|
||||
<div class="p-2 ml-auto"><a href="<?= base_url();?>order-payment"><button type="button" class="btn" style="background: #899ec4;">Approve</button></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
138
php/application/views/front/revtest.php
Normal file
138
php/application/views/front/revtest.php
Normal file
@ -0,0 +1,138 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<section class="abc-approve">
|
||||
<div class="container">
|
||||
<?php
|
||||
$cart = $this->session->userdata('cart');
|
||||
foreach ($cart as $cartcount => $cartvalue) {
|
||||
foreach ($cartvalue as $formcount => $form) { ?>
|
||||
<h2><?=$form?></h2>
|
||||
<p>Start Date: <br>
|
||||
End Date: <br>
|
||||
Time: <br>
|
||||
Location: <br>
|
||||
Days of Week:
|
||||
</p>
|
||||
<?php $cart_items = $this->session->userdata('cart_items'.$form);
|
||||
foreach ($cart_items as $itemcount => $item) {
|
||||
foreach ($item as $key => $value) { ?>
|
||||
|
||||
<?php print_r($key);
|
||||
print_r($value); exit();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<?php foreach($return_class as $value) { ?>
|
||||
<h1>Review / Approve Registrations</h1>
|
||||
<h2><?=$value['class_name']?></h2>
|
||||
<p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?><br>
|
||||
Days of Week: <?=$value['class_day']?>
|
||||
</p>
|
||||
<?php $m_type=0; $n_type=0; $s_type=0;
|
||||
foreach($registrants as $val) {
|
||||
if($val['reg_m_type'] == "M"){
|
||||
$m_type++;
|
||||
}else if($val['reg_m_type'] == "N"){
|
||||
$n_type++;
|
||||
}else{
|
||||
$s_type++;
|
||||
}
|
||||
?>
|
||||
<div class="approve">
|
||||
<label><?php if($m_type==1 || $n_type==1 || $s_type==1){?><span><?=$value['class_id']?> </span><?php } ?><?php if($val['reg_m_type'] == "M" && $m_type==1){echo "Member / Alumni";}elseif($val['reg_m_type'] == "N" && $n_type==1){echo "Non-Member ";}elseif($val['reg_m_type'] == "S" && $s_type==1){echo "Subscribing Employer";}?></label>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$val['att_f_name']?> <?=$val['att_l_name']?> <?=$val['att_email']?> <?=$val['att_number']?></div>
|
||||
<div class="col-sm-4">$ <?=$val['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ <?=$value['regclass_total_price']?>.00</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?> -->
|
||||
<div class="d-flex alumi-content class-sum grand">
|
||||
<div class="col-sm-8 no-pad">Grand Total</div>
|
||||
<div class="col-sm-4">$ 2000.00</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
|
||||
<div class="p-2 ml-auto"><a href="<?= base_url();?>review-payment"><button type="button" class="btn" style="background: #899ec4;">Approve</button></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="approve">
|
||||
<label><span>5</span>Member / Alumni</label>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad">Joe Smith jsmith@yahoo.com (714) 293-2310 (remove)</div>
|
||||
<div class="col-sm-4">$ 196.00</div>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ 958.00</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
$m_last_name = array('m_last_name'.$form => $this->input->post('m_last_name_'.$form),'type' => "M");
|
||||
$m_email_id = array('m_email_id'.$form => $this->input->post('m_email_id_'.$form),'type' => "M");
|
||||
$m_phone_no = array('m_phone_no'.$form => $this->input->post('m_phone_no_'.$form),'type' => "M");
|
||||
$n_first_name = array('n_first_name'.$form => $this->input->post('n_first_name_'.$form));
|
||||
$n_last_name = array('n_last_name'.$form => $this->input->post('n_last_name_'.$form));
|
||||
$n_email_id = array('n_email_id'.$form => $this->input->post('n_email_id_'.$form));
|
||||
$n_phone_no = array('n_phone_no'.$form => $this->input->post('n_phone_no_'.$form));
|
||||
$s_first_name = array('s_first_name'.$form => $this->input->post('s_first_name_'.$form));
|
||||
$s_last_name = array('s_last_name'.$form => $this->input->post('s_last_name_'.$form));
|
||||
$s_email_id = array('s_email_id'.$form => $this->input->post('s_email_id_'.$form));
|
||||
$s_phone_no = array('s_phone_no'.$form => $this->input->post('s_phone_no_'.$form));
|
||||
|
||||
$alldata = array('alldata'.$form =>$m_first_name,$m_last_name,$m_email_id,$m_phone_no,$n_first_name,$n_last_name,$n_email_id,$n_phone_no,$s_first_name,$s_last_name,$s_email_id,$s_phone_no);
|
269
php/application/views/front/test.php
Normal file
269
php/application/views/front/test.php
Normal file
@ -0,0 +1,269 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=FRONT_TITLE?></title>
|
||||
<script type="text/javascript">
|
||||
function class_total()
|
||||
{
|
||||
var a = document.getElementById("class_price_m").value;
|
||||
var b = document.getElementById("class_price_n").value;
|
||||
var c = document.getElementById("class_price_s").value;
|
||||
if (a == "")
|
||||
a = 0;
|
||||
if (b == "")
|
||||
b = 0;
|
||||
if (c == "")
|
||||
c = 0;
|
||||
var total = parseInt(a) + parseInt(b) + parseInt(c);
|
||||
if (!isNaN(total)) {
|
||||
document.getElementById("total").value = parseInt(total);
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
function member(fid)
|
||||
{
|
||||
var m_first_name = document.getElementById("m_first_name"+fid).value;
|
||||
var m_last_name = document.getElementById("m_last_name"+fid).value;
|
||||
var m_email_id = document.getElementById("m_email_id"+fid).value;
|
||||
var m_phone_no = document.getElementById("m_phone_no"+fid).value;
|
||||
var result = m_first_name + ' ' + m_last_name + ' ' + m_email_id + ' ' + m_phone_no;
|
||||
document.getElementById('member'+fid).textContent = result;
|
||||
}
|
||||
function nonmember(fid)
|
||||
{
|
||||
|
||||
var n_first_name = document.getElementById("n_first_name"+fid).value;
|
||||
var n_last_name = document.getElementById("n_last_name"+fid).value;
|
||||
var n_email_id = document.getElementById("n_email_id"+fid).value;
|
||||
var n_phone_no = document.getElementById("n_phone_no"+fid).value;
|
||||
var result = n_first_name + ' ' + n_last_name + ' ' + n_email_id + ' ' + n_phone_no;
|
||||
document.getElementById('nonmember'+fid).textContent = result;
|
||||
}
|
||||
function employer(fid)
|
||||
{
|
||||
var s_first_name = document.getElementById("s_first_name"+fid).value;
|
||||
var s_last_name = document.getElementById("s_last_name"+fid).value;
|
||||
var s_email_id = document.getElementById("s_email_id"+fid).value;
|
||||
var s_phone_no = document.getElementById("s_phone_no"+fid).value;
|
||||
var result = s_first_name + ' ' + s_last_name + ' ' + s_email_id + ' ' + s_phone_no;
|
||||
document.getElementById('employer'+fid).textContent = result;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="abc-tab">
|
||||
<div class="container">
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
<?php echo $error_msg; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex flex-row nav">
|
||||
<?php
|
||||
$urlcheck = $this->uri->segment(2);
|
||||
if($urlcheck=="")
|
||||
{
|
||||
$urlcheck = isset($first_loc)? $first_loc : '';
|
||||
}
|
||||
foreach($reg_location as $value) { ?>
|
||||
<div><a class="<?php if($urlcheck==$value['locat_id']) { echo "active";} ?>" href="<?= base_url();?>loc-class/<?=$value['locat_id']?>"><?=$value['locat_name']?></a></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
foreach ($reg_class as $value) { ?>
|
||||
<?php echo form_open('reg-manage'); ?>
|
||||
<div class="abc-detail d-flex">
|
||||
<div class="title">
|
||||
<h2 class="justify-content-center d-flex">Class Title</h2>
|
||||
<div class="adv"><?=$value['class_name']?> Hours<span class="hr-span"><?=$value['class_hours']?></span></div>
|
||||
<div class="date"><input type="checkbox" name="form_class[]" id="<?=$value['form_id']?>" value="<?=$value['form_id']?>">
|
||||
<label for="<?=$value['form_id']?>"></label>
|
||||
<span>Start Date:</span>
|
||||
<span><?=date("d-m-Y",strtotime($value['calss_start_date']))?></span>
|
||||
<span><?=date('h:i A',strtotime($value['calss_start_time']))?></span>
|
||||
<span><?=$value['class_day']?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="seat">
|
||||
<h2 class="justify-content-center d-flex">Seats Remaining</h2>
|
||||
<span> 25</span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="abc-expand <?=$value['form_id']?>">
|
||||
<?php $registrants = explode(",", $value['class_registrants']);
|
||||
foreach ($registrants as $val)
|
||||
{
|
||||
if($val == "M") $m = true;
|
||||
if($val == "N") $n = true;
|
||||
if($val == "S") $s = true;
|
||||
}
|
||||
?>
|
||||
<div class="member d-flex"> <?php if(isset($m)) { ?><span>Member / Alumni: $<?=$value['class_price_m']?>.00</span><?php } ?> <?php if(isset($n)) { ?><span> Non -Member: $<?=$value['class_price_n']?>.00</span><?php } ?> <?php if(isset($s)) { ?><span>SE: $<?=$value['class_price_s']?>.00</span><?php } ?></div>
|
||||
<div class="d-flex class-des">
|
||||
<div class="col-md-5 no-pad">
|
||||
<h2>Class Description</h2>
|
||||
<p><?=$value['class_description']?></p>
|
||||
<span>Instructor:<?=$value['instr_name']?></span>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<h2>Class Details</h2>
|
||||
<p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?><br>
|
||||
Days of Week: <?=$value['class_day']?><br>
|
||||
Seats Available: <?=$value['class_seats']?><br>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="attendee">
|
||||
<h3>Attendee Info</h3>
|
||||
<?php if(isset($m)) { ?>
|
||||
<label>Member / Alumni</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad">
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m_<?=$value['form_id']?>" id="class_price_m" value="<?=$value['class_price_m']?>">
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_first_name_<?=$value['form_id']?>[]" id="m_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_last_name_<?=$value['form_id']?>[]" id="m_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="member(1<?=$value['form_id']?>)" name="m_email_id_<?=$value['form_id']?>[]" id="m_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_phone_no_<?=$value['form_id']?>[]" id="m_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnm" form-data="<?=$value['form_id']?>" mem-price="<?=$value['class_price_m']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
<?php } if(isset($n)) { ?>
|
||||
<label>Non-Member</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad">
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n_<?=$value['form_id']?>" id="class_price_n" value="<?=$value['class_price_n']?>">
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_first_name_<?=$value['form_id']?>[]" id="n_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_last_name_<?=$value['form_id']?>[]" id="n_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_email_id_<?=$value['form_id']?>[]" id="n_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_phone_no_<?=$value['form_id']?>[]" id="n_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnn" form-data="<?=$value['form_id']?>" nmem-price="<?=$value['class_price_n']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
<?php } if(isset($s)) { ?>
|
||||
<label>Subscribing Employer</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad">
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_s_<?=$value['form_id']?>" id="class_price_s" value="<?=$value['class_price_s']?>">
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_first_name_<?=$value['form_id']?>[]" id="s_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_last_name_<?=$value['form_id']?>[]" id="s_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_email_id_<?=$value['form_id']?>[]" id="s_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_phone_no_<?=$value['form_id']?>[]" id="s_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btns" form-data="<?=$value['form_id']?>" smem-price="<?=$value['class_price_s']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="class-total">
|
||||
<h3>Class Totals</h3>
|
||||
<div class="alumi">
|
||||
<?php if(isset($m)) { ?>
|
||||
<label>Member / Alumni</label>
|
||||
<span class="almeb<?=$value['form_id']?>">
|
||||
<div class="d-flex alumi-content mebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;" id="member1<?=$value['form_id']?>"></span><span class="cls-btn"> X </span></div>
|
||||
<div class="col-sm-4">$ <?=$value['class_price_m']?>.00</div>
|
||||
</div>
|
||||
</span>
|
||||
<input name="mebhid" id="mebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(isset($n)) { ?>
|
||||
<label>Non-Member</label>
|
||||
<span class="alnmeb<?=$value['form_id']?>">
|
||||
<div class="d-flex alumi-content nmebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;" id="nonmember1<?=$value['form_id']?>"></span><span class="cls-btn"> X </span></div>
|
||||
<div class="col-sm-4">$ <?=$value['class_price_n']?>.00</div>
|
||||
</div>
|
||||
</span>
|
||||
<input name="nmebhid" id="nmebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(isset($s)) { ?>
|
||||
<label>Subscribing Employer</label>
|
||||
<span class="alsmeb<?=$value['form_id']?>">
|
||||
<div class="d-flex alumi-content smebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;" id="employer1<?=$value['form_id']?>"></span><span class="cls-btn"> X </span></div>
|
||||
<div class="col-sm-4">$ <?=$value['class_price_s']?>.00</div>
|
||||
</div>
|
||||
</span>
|
||||
<input name="smebhid" id="smebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8">Class Total</div>
|
||||
<div class="col-sm-4">$ 958.00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>reg-class"><button type="button" class="btn" style="background: #899ec4;">Back</button></a></div>
|
||||
<div class="p-2"><button type="reset" class="btn" style="background: #ff0000; color: #fff; ">Reset</button></div>
|
||||
<div class="p-2"><button type="submit" class="btn" style="background: #333366; color: #fff;">Review Order</button>
|
||||
</div>
|
||||
</div>
|
||||
<span class="sum"><?=$value['class_price_m']?></span>
|
||||
<span class="sum"><?=$value['class_price_n']?></span>
|
||||
<span class="sum"><?=$value['class_price_s']?></span>
|
||||
<span id="subtotal">0.00</span>
|
||||
<?php echo form_close(); ?>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var sum = 0;
|
||||
$('.sum').each(function() {
|
||||
sum += +$(this).text()||0;
|
||||
});
|
||||
$("#subtotal").text(sum);
|
||||
</script>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
11
php/application/views/index.html
Normal file
11
php/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>
|
89
php/application/views/welcome_message.php
Normal file
89
php/application/views/welcome_message.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to CodeIgniter</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;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin: 0 15px 0 15px;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>Welcome to CodeIgniter!</h1>
|
||||
|
||||
<div id="body">
|
||||
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
|
||||
|
||||
<p>If you would like to edit this page you'll find it located at:</p>
|
||||
<code>application/views/welcome_message.php</code>
|
||||
|
||||
<p>The corresponding controller for this page is found at:</p>
|
||||
<code>application/controllers/Welcome.php</code>
|
||||
|
||||
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user