first commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<IfModule authz_core_module>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
<IfModule authz_core_module>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -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();
|
||||
$autoload['libraries'] = array('session','form_validation');
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| 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();
|
||||
$autoload['helper'] = array('form','url');
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| 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();
|
||||
@@ -0,0 +1,533 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
function __autoload($classname) {
|
||||
|
||||
if (strpos($classname, 'CL_') !== 0) {
|
||||
$file = APPPATH . 'libraries/' . $classname . '.php';
|
||||
if (file_exists($file) && is_file($file)) {
|
||||
@include_once($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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'] = '';
|
||||
$config['base_url'] = 'https://'.$_SERVER['SERVER_NAME'].'/';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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'] = 'index.php';
|
||||
$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'] = 'AGT_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
@@ -0,0 +1,98 @@
|
||||
<?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
|
||||
|
||||
|
||||
|
||||
/*
|
||||
define('PHP_API_OK', 0);
|
||||
define('MAX_ADMIN_SESSION',1200);
|
||||
define('SITE_NAME','MedTransGo');
|
||||
define('SITE_EMAIL','support@medtransgo.net');
|
||||
define('SITE_PHONE','+1 911 9110');
|
||||
define('SITE_FAX','+1 9FX 9110');
|
||||
*/
|
||||
|
||||
include 'medtrans_contstants.php';
|
||||
@@ -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' => '',
|
||||
'password' => '',
|
||||
'database' => '',
|
||||
'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
|
||||
);
|
||||
@@ -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">'
|
||||
);
|
||||
@@ -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'
|
||||
);
|
||||
@@ -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
|
||||
|
|
||||
*/
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
define('SITE_NAME','KleenApp');
|
||||
define('SITE_EMAIL','kleenap.co');
|
||||
define('SITE_PHONE','+1 911 9110');
|
||||
define('SITE_FAX','+1 9FX 9110');
|
||||
|
||||
define('PHP_API_OK', 0);
|
||||
define('MAX_ADMIN_SESSION',1200);
|
||||
define('PHP_LOGIN_OK', 100);
|
||||
|
||||
define('MODE_ADD', 100);
|
||||
define('MODE_UPDATE', 200);
|
||||
define('MODE_DELETE', 300);
|
||||
define('MODE_LIST',400);
|
||||
|
||||
|
||||
define('AGENT_SITE_LOGO', 10005);
|
||||
define('INTERPRETER_CERTIFICATE',20005);
|
||||
|
||||
define('MEDTRANS_UPLOADS', 4505);
|
||||
define('MEDTRANS_DOWNLOAD',4506);
|
||||
|
||||
// MEDTRANS BACK OFFICE FUNCTION*****************
|
||||
define('MEDTRANS_BKO_START', 100000);
|
||||
define('MEDTRANS_BKO_LOGIN', 100005);
|
||||
define('MEDTRANS_BKO_CREATEUSER', 100010);
|
||||
|
||||
define('MEDTRANS_USER_GET_TRANSLIST', 200035); // REQUEST TRANSPORT
|
||||
|
||||
define('MEDTRANS_BKO_END', 199999);
|
||||
|
||||
|
||||
// MEDTRANS USER FUNCTIONS***********************
|
||||
define('MEDTRANS_USER_START', 200000);
|
||||
|
||||
define('MEDTRANS_USER_CREATE', 200010); //
|
||||
define('MEDTRANS_USER_PROFILE', 200020); //
|
||||
define('MEDTRANS_USER_REQUEST_TRAN', 200025); // REQUEST TRANSPORT
|
||||
define('MEDTRANS_USER_GET_LANGUAGE', 200040);
|
||||
define('MEDTRANS_USER_END', 299999);
|
||||
|
||||
|
||||
// MEDTRANS INTERPRETERS ***************************
|
||||
define('MEDTRANS_INTERP_START', 300000);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
define('MEDTRANS_INTERP_END', 399999);
|
||||
// MEDTRANS TRANLATORS ***************************
|
||||
define('MEDTRANS_TRANSP_START', 400000);
|
||||
|
||||
define('MEDTRANS_TRANSP_LOGIN', 400005);
|
||||
define('MEDTRANS_TRANSP_VERIFYSESSION', 400007);
|
||||
|
||||
|
||||
define('MEDTRANS_TRANSP_CREATE', 400010); //
|
||||
define('MEDTRANS_TRANSP_ADDLOCATION', 400020); //
|
||||
define('MEDTRANS_TRANSP_LISTLOCATION', 400021);
|
||||
define('MEDTRANS_TRANSP_EDITLOCATION', 400022);
|
||||
|
||||
|
||||
define('MEDTRANS_TRANSP_GET_TRANSLIST', 400040); // transport list
|
||||
define('MEDTRANS_TRANSP_GET_TRANSPORTER', 400041); // just one transporter
|
||||
|
||||
define('MEDTRANS_TRANSP_GET_TRANSLATOR', 400044);
|
||||
define('MEDTRANS_TRANSP_ADD_TRANSLATOR', 400045);
|
||||
define('MEDTRANS_TRANSP_LIST_TRANSLATOR', 400046);
|
||||
define('MEDTRANS_TRANSP_EDIT_TRANSLATOR', 400047);
|
||||
|
||||
define('MEDTRANS_TRANSP_MANAGELANGUAGE', 400049);
|
||||
define('MEDTRANS_TRANSP_LANGUAGELIST', 400050);
|
||||
|
||||
define('MEDTRANS_TRANSP_AGENTLANGUAGE', 400051); // LANGUAGE SUPPORTED BY AGENT
|
||||
|
||||
define('MEDTRANS_TRANSP_DRIVERSCALL', 400060);
|
||||
|
||||
define('MEDTRANS_TRANSP_DEVICELIST', 405000);
|
||||
|
||||
define('MEDTRANS_TRANSP_END', 499999);
|
||||
//***********************************************
|
||||
|
||||
define('PENDING', 0);
|
||||
define('ASSIGNED', 1);
|
||||
define('CONFIRMED', 2);
|
||||
define('CANCELLED', 3);
|
||||
define('INPROGRESS', 4);
|
||||
define('COMPLETED', 5);
|
||||
define('SETTLED', 9);
|
||||
@@ -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',
|
||||
),
|
||||
);
|
||||
@@ -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/';
|
||||
@@ -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'
|
||||
);
|
||||
@@ -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
|
||||
|
|
||||
*/
|
||||
@@ -0,0 +1,54 @@
|
||||
<?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'] = 'site';
|
||||
$route['404_override'] = '';
|
||||
$route['translate_uri_dashes'] = FALSE;
|
||||
@@ -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')
|
||||
|
||||
);
|
||||
@@ -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'
|
||||
);
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Agent extends Agent_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
|
||||
*/
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
$in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
$in['limit'] = 5;
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['today_list'] = $out['result_list'];
|
||||
//echo $out['status'];
|
||||
//print_r($out);
|
||||
|
||||
$this->renderAgentPage('view_agent_dash', $data);
|
||||
}
|
||||
|
||||
public function calendar() {
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
|
||||
$in['limit'] = 30;
|
||||
$in["transport_id"] = 0;
|
||||
$in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
|
||||
$data['page_name'] = "Transport Calendar";
|
||||
$this->renderAgentPage('view_agent_calendar', $data);
|
||||
}
|
||||
|
||||
public function profile() {
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
$data['page_name'] = "My Profile";
|
||||
$this->renderAgentPage('view_agent_profile', $data);
|
||||
}
|
||||
|
||||
public function mylog() {
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
$data['page_name'] = "Activity Logs";
|
||||
$this->renderAgentPage('view_agent_mylog', $data);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Dash extends Agent_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
|
||||
*/
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$data = $this->indexPageReal(array());
|
||||
|
||||
$this->load->library('googlemaps');
|
||||
$config['center'] = 'atalnta,GA,USA';
|
||||
$config['zoom'] = 'auto';
|
||||
$config['directions'] = TRUE;
|
||||
$config['directionsStart'] = '4201 defoors farm trail, powder springs, GA 30127, USA';
|
||||
$config['directionsEnd'] = '2324 stancrest ln, lawrenceville, 30044, GA, USA';
|
||||
$config['directionsDivID'] = 'directionsDiv';
|
||||
$this->googlemaps->initialize($config);
|
||||
$data['map'] = $this->googlemaps->create_map();
|
||||
|
||||
$this->renderAgentPage('view_agent_dash', $data);
|
||||
}
|
||||
|
||||
public function indexPage() {
|
||||
$data = $this->indexPageReal(array());
|
||||
$data['do_not_script'] = true;
|
||||
$this->load->view('agent/extra/transport_list', $data);
|
||||
}
|
||||
|
||||
private function indexPageRealDELETE($data) {
|
||||
$data['do_not_script'] = false;
|
||||
$data['pageNumber'] = $this->input->get('pageNumber');
|
||||
if ($data['pageNumber']=='' || $data['pageNumber']<1) $data['pageNumber'] = 1;
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 30;
|
||||
$in["transport_id"] = 0;
|
||||
$in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
|
||||
$data['result_per_page'] = 10;
|
||||
$data['result_total'] = count($out['result_list']);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
$pages = ceil(1.0*$data['result_total']/$data['result_per_page']);
|
||||
if ($data['pageNumber']>$pages) $data['pageNumber'] = 1;
|
||||
|
||||
$offset = $data['result_per_page'] * ($data['pageNumber'] - 1);
|
||||
$data['result_list'] = array_slice($out['result_list'],$offset,$data['result_per_page']);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
public function transp_modal() {
|
||||
// $data = $this->getSessionArray();
|
||||
$data['transport_id'] = trim($this->input->get('transport_id'));
|
||||
|
||||
if ($data["transport_id"] != '' and $data["transport_id"] > 0) {
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 30;
|
||||
$in["transport_id"] = $data["transport_id"];
|
||||
$in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['selected_transport'] = $out['result_list'];
|
||||
$data['transport_data'] = $data['selected_transport'][0];
|
||||
|
||||
$out = $this->makeGoogleAddress($data['transport_data']);
|
||||
$this->load->library('googlemaps');
|
||||
$config['center'] = 'atlanta,GA,USA';
|
||||
$config['zoom'] = 'auto';
|
||||
$config['directions'] = TRUE;
|
||||
$config['directionsStart'] = $out['directionsStart']; //'4201 defoors farm trail, powder springs, GA 30127, USA';
|
||||
$config['directionsEnd'] = $out['directionsEnd']; //'2324 stancrest ln, lawrenceville, 30044, GA, USA';
|
||||
$config['directionsDivID'] = 'directionsDiv';
|
||||
$this->googlemaps->initialize($config);
|
||||
$data['map'] = $this->googlemaps->create_map();
|
||||
|
||||
$data['directionsStart'] = $out['directionsStart'];
|
||||
$data['directionsEnd'] = $out['directionsEnd'];
|
||||
// $lat_long = get_lat_long_from_address($config['center']);
|
||||
// $data['latCenter'] = $lat_long[0];
|
||||
// $data['longCenter'] = $lat_long[1];
|
||||
// $data['transport_request_id'] = $transport_request_id;
|
||||
$this->load->view('agent/modals/view_dash_modal', $data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Login extends AGT_Controller {
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$data['action_message'] = '';
|
||||
|
||||
// temporary data to fix all aspect
|
||||
$data['username'] = 'ses66181+agent456@gmail.com';
|
||||
$data['password'] = 'agentpass';
|
||||
|
||||
|
||||
if ($this->input->post()) {
|
||||
// echo 'ameye';
|
||||
$valid_entry = false;
|
||||
$username = $password = $error_message = '';
|
||||
$this->testLoginInput($username, $password, $error_message, $valid_entry);
|
||||
if ($valid_entry == true) {
|
||||
$in['username'] = $username;
|
||||
$in['password'] = $password;
|
||||
$in['action'] = MEDTRANS_TRANSP_LOGIN;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_LOGIN, $in, $out);
|
||||
//print_r($out);
|
||||
// echo $ret;
|
||||
// print_r($_SESSION);
|
||||
|
||||
if ($ret == PHP_LOGIN_OK) {
|
||||
$out = $this->populateAgentsession($out); // just for testing - will be removed
|
||||
// $this->buildUserSession($ret, $out);
|
||||
redirect('dash');
|
||||
} else {
|
||||
$data['action_message'] = $this->formatedMesage('ERROR', 'Invalid Username/Password');
|
||||
}
|
||||
} else {
|
||||
|
||||
$data['action_message'] = $this->formatedMesage('ERROR', $error_message);
|
||||
}
|
||||
}
|
||||
|
||||
$this->load->view('user/view_login', $data);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Logout extends AGT_Controller {
|
||||
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
|
||||
$this->load->view('home/start_page');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Paymnt extends Agent_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
|
||||
*/
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
$in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
$in['limit'] = 5;
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['today_list'] = $out['result_list'];
|
||||
//echo $out['status'];
|
||||
//print_r($out);
|
||||
|
||||
$this->renderAgentPage('view_agent_dash', $data);
|
||||
}
|
||||
|
||||
public function calendar() {
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
|
||||
$this->renderAgentPage('view_agent_calendar', $data);
|
||||
}
|
||||
|
||||
public function profile() {
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
|
||||
$this->renderAgentPage('view_agent_profile', $data);
|
||||
}
|
||||
|
||||
|
||||
public function mylog()
|
||||
{
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
|
||||
$this->renderAgentPage('view_agent_mylog', $data);
|
||||
|
||||
}
|
||||
|
||||
public function invoice()
|
||||
{
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
$data['page_name'] = "Pending Invoice";
|
||||
|
||||
$this->renderAgentPage('view_agent_pinvoice', $data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Report extends Agent_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
|
||||
*/
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
$in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
$in['limit'] = 5;
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['today_list'] = $out['result_list'];
|
||||
//echo $out['status'];
|
||||
//print_r($out);
|
||||
|
||||
$this->renderAgentPage('view_agent_dash', $data);
|
||||
}
|
||||
|
||||
public function calendar() {
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
|
||||
$this->renderAgentPage('view_agent_calendar', $data);
|
||||
}
|
||||
|
||||
public function profile() {
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
|
||||
$this->renderAgentPage('view_agent_profile', $data);
|
||||
}
|
||||
|
||||
|
||||
public function mylog()
|
||||
{
|
||||
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
|
||||
|
||||
$this->renderAgentPage('view_agent_mylog', $data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Signup extends AGT_Controller {
|
||||
|
||||
public function index() {
|
||||
// https://www.codeigniter.com/userguide3/libraries/form_validation.html#form-validation-tutorial
|
||||
$this->load->helper(array('form', 'url'));
|
||||
|
||||
$this->load->library('form_validation');
|
||||
|
||||
//$this->form_validation->set_rules('username', 'Username', 'trim|required');
|
||||
$this->form_validation->set_rules('password', 'Password', 'trim|required', array('required' => 'You must provide a %s.')
|
||||
);
|
||||
$this->form_validation->set_rules('firstname', 'First name', 'trim|required');
|
||||
$this->form_validation->set_rules('lastname', 'Last name', 'trim|required');
|
||||
$this->form_validation->set_rules('agent_name', 'Agent, Transporter or Interpreter business name', 'trim|required');
|
||||
$this->form_validation->set_rules('tos', 'terms of service', 'trim|required', array('required' => 'You must accept the %s.')
|
||||
);
|
||||
$this->form_validation->set_rules('city', 'City', 'trim|required');
|
||||
$this->form_validation->set_rules('zipcode', 'Zip code', 'trim|required');
|
||||
$this->form_validation->set_rules('street', 'Business address', 'trim|required');
|
||||
$this->form_validation->set_rules('phone', 'Phone', 'trim|required');
|
||||
$this->form_validation->set_rules('username', 'Your Username - Email', 'trim|required|valid_email');
|
||||
$this->form_validation->set_rules('state', 'State', 'trim|required|min_length[2]');
|
||||
$this->form_validation->set_rules('agent_type', 'Account type', 'trim|required');
|
||||
|
||||
$data = array();
|
||||
$data['username'] = $data['password'] = $data['action_message'] = $data['firstname'] = $data['lastname'] = $data['agent_name'] = $data['tos'] = '';
|
||||
$data['city'] = $data['zipcode'] = $data['street'] = $data['phone'] = $data['state'] = $data['agent_type'] = '';
|
||||
|
||||
if ($this->input->post()) {
|
||||
|
||||
$data = $this->input->post();
|
||||
|
||||
if ($this->form_validation->run() == FALSE) {
|
||||
$data['action_message'] = $this->formatedMesage('signup', 'Invalid input, please correct the fields below');
|
||||
$this->load->view('user/view_signup', $data);
|
||||
} else {
|
||||
|
||||
$post = array(
|
||||
"email" => $data['username'],
|
||||
"agent_name" => $data['agent_name'],
|
||||
"firstname" => $data['firstname'],
|
||||
"lastname" => $data['lastname'],
|
||||
"street" => $data['street'],
|
||||
"city" => $data['city'],
|
||||
"zipcode" => $data['zipcode'],
|
||||
"state" => $data['state'],
|
||||
"country" => "US",
|
||||
"agent_type" => $data['agent_type'],
|
||||
"username" => $data['username'],
|
||||
"password" => $data['password'],
|
||||
"phone" => $data['phone'],
|
||||
"login" => 1
|
||||
);
|
||||
|
||||
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_CREATE, $post, $out); // call the API
|
||||
|
||||
if ($ret == PHP_LOGIN_OK) {
|
||||
$out = $this->populateAgentsession($out); // just for testing - will be removed
|
||||
// $this->buildUserSession($ret, $out);
|
||||
redirect('dash');
|
||||
} else {
|
||||
ob_start();
|
||||
//var_dump($response);
|
||||
$data['action_message'] = $this->formatedMesage('signup', ob_get_clean());
|
||||
$this->load->view('user/view_signup_success', $data);
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
|
||||
|
||||
// $data['action'] = MEDTRANS_TRANSP_LOGIN;
|
||||
// $out = array();
|
||||
// $ret = $this->medtrans_call_api(MEDTRANS_TRANSP_CREATE, $data, $out);
|
||||
|
||||
// echo $ret;
|
||||
// echo "<hr size='1'>";
|
||||
// var_dump($out);
|
||||
|
||||
*
|
||||
$content = json_encode($post);
|
||||
$url = "https://oameye.extlayer.medtransgo.net/agent/createagent";
|
||||
$curl = curl_init($url);
|
||||
curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_HTTPHEADER,
|
||||
array("Content-type" => "application/json"));
|
||||
curl_setopt($curl, CURLOPT_POST, true);
|
||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
|
||||
|
||||
$json_response = curl_exec($curl);
|
||||
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
curl_close($curl);
|
||||
|
||||
if ( $status != 200 ) {
|
||||
$data['action_message'] = $this->formatedMesage('signup',"Error: API call failed with the status $status, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl));
|
||||
$this->load->view('user/view_signup', $data);
|
||||
return;
|
||||
}
|
||||
|
||||
$response = json_decode($json_response, true);
|
||||
//ob_start();
|
||||
//var_dump($response);
|
||||
//$data['action_message'] = $this->formatedMesage('signup',ob_get_clean());
|
||||
//$this->load->view('user/view_signup_success', $data);
|
||||
|
||||
if ($response["internal_return"] == 100) {
|
||||
$out = $this->populateAgentsession($json_response); // just for testing - will be removed
|
||||
redirect('dash');
|
||||
}
|
||||
*/
|
||||
}
|
||||
} else {
|
||||
$this->load->view('user/view_signup', $data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vi:ts=2
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Site 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('home/start_page');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,603 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Transp extends Agent_Controller {
|
||||
|
||||
|
||||
public function traspsel() {
|
||||
$in["transport_id"] = $this->input->get('transport_id');
|
||||
|
||||
if ($in["transport_id"] != '' and $in["transport_id"] > 0) {
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 30;
|
||||
//$in["transport_id"] = 0;
|
||||
$in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
$data['selected_transport'] = $out['result_list'];
|
||||
|
||||
$data['rect'] = $data['selected_transport'][0];
|
||||
$data['assign_detail'] = "<b>Assign Date : </b>" . $data['rect']['assign_date']; // "<b>Assigned to :</b> " . $data['rect']['agent_name'] . "<br><b>Location :</b>" . $data['rect']['loc_name'].",". $data['rect']['street'].",". $data['rect']['city'].",". $data['rect']['state']."-". $data['rect']['zipcode'];
|
||||
$data['assign_phone'] = ""; //"<b>Phone :</b> " . $data['rect']['phone'];
|
||||
$data['cancel_reason_combo'] = "Cancellation Reason Combo Here";
|
||||
|
||||
$this->load->view('agent/extra/transport_form', $data);
|
||||
}
|
||||
// echo 'A transport line was selected';
|
||||
}
|
||||
|
||||
|
||||
private function transportList($data)
|
||||
{
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
$in["transport_id"] = 0;
|
||||
// $in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
// $out = array();
|
||||
// $ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
// $data['result_list'] = $out['result_list'];
|
||||
|
||||
$data['page_name'] = "Completed Transport Request";
|
||||
$this->renderAgentPage('view_agent_transport', $data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function completed() {
|
||||
|
||||
$data = array();
|
||||
$data = $this->indexPageReal(array());
|
||||
$data['flags'] = 1000;
|
||||
$data['page_name'] = "Completed Transport Request";
|
||||
$this->transportList($data);
|
||||
}
|
||||
|
||||
public function active() {
|
||||
|
||||
$data = array();
|
||||
$data = $this->indexPageReal(array());
|
||||
$data['flags'] = 1000;
|
||||
$data['page_name'] = "Active Transport Request";
|
||||
$this->transportList($data);
|
||||
}
|
||||
|
||||
public function confirmed() {
|
||||
$data = array();
|
||||
$data = $this->indexPageReal(array());
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
$in["transport_id"] = 0;
|
||||
// $in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
// $out = array();
|
||||
// $ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
// $data['result_list'] = $out['result_list'];
|
||||
|
||||
$data['page_name'] = "Confirmed Transport Request";
|
||||
$this->renderAgentPage('view_agent_transport', $data);
|
||||
}
|
||||
|
||||
public function pending() {
|
||||
$data = array();
|
||||
$data = $this->indexPageReal(array());
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 10;
|
||||
$in["transport_id"] = 0;
|
||||
// $in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
// $out = array();
|
||||
// $ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
// $data['result_list'] = $out['result_list'];
|
||||
|
||||
$data['page_name'] = "Pending Transport Request";
|
||||
$this->renderAgentPage('view_agent_transport', $data);
|
||||
}
|
||||
|
||||
public function addlanguage() {
|
||||
$data["translator_id"] = $this->input->get('translator_id');
|
||||
$data["lang_code"] = $this->input->get('lang_code');
|
||||
$ret = $this->add_language($data);
|
||||
echo $ret=="Language added"?"0":$ret;
|
||||
}
|
||||
|
||||
private function add_language($data) {
|
||||
$in = array();
|
||||
$in["mode"] = 100; // => MODE_ADD
|
||||
$in["interpreter_id"] = $data["translator_id"];
|
||||
$in["lang_code"] = $data["lang_code"];
|
||||
$in["action"] = MEDTRANS_TRANSP_MANAGELANGUAGE;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api($in["action"], $in, $out);
|
||||
return $ret==0?"Language added":"Failed to add language";
|
||||
}
|
||||
|
||||
private function add_edit_location($data) {
|
||||
$in = $data; // Do we validate?
|
||||
if ($data['location_id']>0) {
|
||||
$action = MEDTRANS_TRANSP_EDITLOCATION;
|
||||
} else {
|
||||
$action = MEDTRANS_TRANSP_ADDLOCATION;
|
||||
}
|
||||
$in["action"] = $action;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api($action, $in, $out);
|
||||
$data["message"] = isset($out["status"])?$out["status"]:($data['location_id']>0?"Location updated":"Location added");
|
||||
if ($data["message"]==1) $data["message"] = "Location added";
|
||||
return $data["message"];
|
||||
}
|
||||
|
||||
public function mylocation() {
|
||||
$data = array();
|
||||
$data["message"] = "";
|
||||
if ($this->input->post()) {
|
||||
$data = $this->input->post();
|
||||
if ($data['mode']=='add_language') {
|
||||
$data['message'] = $this->add_language($data);
|
||||
} else {
|
||||
$data['message'] = $this->add_edit_location($data);
|
||||
}
|
||||
}
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 5;
|
||||
$in['action'] = MEDTRANS_TRANSP_LISTLOCATION;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_LISTLOCATION, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
$this->load->model('combo_model');
|
||||
$this->combo_model->defaultComboMessage = 'Select your State';
|
||||
$data['states_combo'] = $this->combo_model->getStatesCombo('state', "GA");
|
||||
|
||||
|
||||
$data['page_name'] = "Transport Locations";
|
||||
$this->renderAgentPage('view_agent_locations', $data);
|
||||
}
|
||||
|
||||
public function mylocation_load()
|
||||
{
|
||||
$data['location_id'] = $this->input->get('location_id');
|
||||
if ($data['location_id']>0) {
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['location_id'] = $data['location_id'];
|
||||
$in['action'] = MEDTRANS_TRANSP_GET_TRANSPORTER;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSPORTER, $in, $out);
|
||||
echo json_encode($out);
|
||||
} else {
|
||||
echo "{\"status\":\"-2\"}";
|
||||
}
|
||||
}
|
||||
|
||||
private function add_edit_driver($data) {
|
||||
$in = $data; // Do we validate?
|
||||
$action = MEDTRANS_TRANSP_DRIVERSCALL;
|
||||
if ($data['driver_id']>0) {
|
||||
$in['mode'] = MODE_UPDATE;
|
||||
} else {
|
||||
$in['mode'] = MODE_ADD;
|
||||
}
|
||||
$in["action"] = $action;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api($action, $in, $out);
|
||||
$data["message"] = isset($out["status"])?$out["status"]:($data['driver_id']>0?"Driver updated":"Driver added");
|
||||
if ($data["message"]==1) $data["message"] = "Driver added";
|
||||
return $data["message"];
|
||||
}
|
||||
|
||||
|
||||
public function drivers() {
|
||||
$data = array();
|
||||
$data["message"] = "";
|
||||
if ($this->input->post()) {
|
||||
$data = $this->input->post();
|
||||
$data['message'] = $this->add_edit_driver($data);
|
||||
}
|
||||
|
||||
$this->load->model('combo_model');
|
||||
$this->combo_model->defaultComboMessage = 'Select your State';
|
||||
$data['states_combo'] = $this->combo_model->getStatesCombo('state', "GA");
|
||||
|
||||
|
||||
|
||||
$this->combo_model->defaultComboMessage = 'Select your Licence State';
|
||||
$data['lic_states_combo'] = $this->combo_model->getStatesCombo('lic_state', "GA");
|
||||
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 50;
|
||||
$in['driver_id'] = 0;
|
||||
$in['mode'] = MODE_LIST;
|
||||
|
||||
$in['action'] = MEDTRANS_TRANSP_DRIVERSCALL;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_DRIVERSCALL, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
$data['page_name'] = "Tranport Drivers";
|
||||
$this->renderAgentPage('view_agent_drivers', $data);
|
||||
}
|
||||
|
||||
public function drivers_load()
|
||||
{
|
||||
$data['driver_id'] = $this->input->get('driver_id');
|
||||
if ($data['driver_id']>0) {
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['driver_id'] = $data['driver_id'];
|
||||
$in['mode'] = MODE_LIST;
|
||||
$in['action'] = MEDTRANS_TRANSP_DRIVERSCALL;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_DRIVERSCALL, $in, $out);
|
||||
echo json_encode($out);
|
||||
} else {
|
||||
echo "{\"status\":\"-2\"}";
|
||||
}
|
||||
}
|
||||
|
||||
public function cfglocation() {
|
||||
echo 'ameye ....';
|
||||
}
|
||||
|
||||
// array(5) { ["document_id"]=> string(1) "2" ["agent_id"]=> string(1) "4" ["interpreter_id"]=> string(2) "16" ["language_id"]=> string(2) "99" ["ts"]=> string(10) "1508509712" }
|
||||
public function download() {
|
||||
$data = $this->input->get();
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['interpreter_id'] = $data['interpreter_id'];
|
||||
$in['language_id'] = $data['language_id'];
|
||||
$in['document_id'] = $data['document_id'];
|
||||
$in['action'] = MEDTRANS_DOWNLOAD;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_DOWNLOAD, $in, $out);
|
||||
if ($ret==0 && isset($out["file"]) && $out["file"]!="") {
|
||||
header('Content-Description: File Transfer');
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Disposition: attachment; filename="'.basename($out["file"]).'"');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Pragma: public');
|
||||
header('Content-Length: ' . strlen($out["data"]));
|
||||
echo $out["data"];
|
||||
exit();
|
||||
} else {
|
||||
header('HTTP/1.1 400 Bad Request');
|
||||
header('Status: 400 Bad Request');
|
||||
echo "{\"status\":\"Cannot download file\"}";
|
||||
}
|
||||
}
|
||||
|
||||
public function cfgtranslator() {
|
||||
|
||||
$proc = $this->input->get('proc');
|
||||
$data['translator_id'] = $this->input->get('translator_id');
|
||||
if ($data['translator_id']>0) {
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['interpreter_id'] = $data['translator_id'];
|
||||
if ($proc=='STATUS') {
|
||||
$in['language_id'] = $this->input->get('language_id');
|
||||
$in['lang_code'] = $this->input->get('lang_code');
|
||||
$in['mode'] = $this->input->get('status')=='Disable' ? MODE_DELETE : MODE_ADD;
|
||||
$in['action'] = MEDTRANS_TRANSP_MANAGELANGUAGE;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api($in['action'], $in, $out);
|
||||
if ($ret!=0) {
|
||||
var_dump($out);
|
||||
echo "\\r";
|
||||
}
|
||||
echo $ret;
|
||||
} else if ($proc=='FLAGS') {
|
||||
$in['language_id'] = $this->input->get('language_id');
|
||||
$in['lang_code'] = $this->input->get('lang_code');
|
||||
$in['flags'] = (int)$this->input->get('flags');
|
||||
$in['mode'] = MODE_UPDATE;
|
||||
$in['action'] = MEDTRANS_TRANSP_MANAGELANGUAGE;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api($in['action'], $in, $out);
|
||||
if ($ret!=0) {
|
||||
var_dump($out);
|
||||
echo "\\r";
|
||||
}
|
||||
echo $ret;
|
||||
} else {
|
||||
|
||||
$in['language_id'] = 0; // LIST ALL
|
||||
|
||||
$in['action'] = MEDTRANS_TRANSP_GET_TRANSLATOR;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLATOR, $in, $translator_data);
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_USER_GET_LANGUAGE, $in, $language_list); // may load into global for speed latter
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_LANGUAGELIST, $in, $my_language); // may load into global for speed latter
|
||||
|
||||
$this->renderlanguageConfig($translator_data, $language_list,$my_language);
|
||||
}
|
||||
} else {
|
||||
echo "{\"status\":\"-2\"}";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected function renderlanguageConfig($translator_data, $language_list,$my_language) {
|
||||
// echo json_encode($translator_data);
|
||||
$language_array = $language_list["result_list"];
|
||||
|
||||
echo "
|
||||
<form method=\"post\" id=\"add_language\" action=\"/transp/addlanguage\">
|
||||
<input type=\"hidden\" name=\"mode\" value=\"add_language\">
|
||||
<input type=\"hidden\" name=\"translator_id\" value=\"".$translator_data['id']."\">
|
||||
Configure languages for :
|
||||
<table class=\"table table-striped\">
|
||||
<tr>
|
||||
<td><b>" . $translator_data['firstname'] . " " . $translator_data['lastname'] . "</b>-[PH: " . $translator_data['phone'] . "]
|
||||
" . $translator_data['street'] . " " . $translator_data['city'] . " " . $translator_data['state'] . " " . $translator_data['zipcode'] . " " . $translator_data['country'] . "
|
||||
</td>
|
||||
</tr>
|
||||
<td>
|
||||
<div class=\"row\">
|
||||
<div class=\"col-xs-2\">
|
||||
Languages
|
||||
</div>
|
||||
<div class=\"col-xs-8\">
|
||||
" . $this->makeCombo($language_array, "language", "code", "lang_code") . "
|
||||
</div>
|
||||
<div class=\"col-xs-2\">
|
||||
<button class=\"btn btn-info btn-block btn-xs\"style=\"float: right\" onclick=\"return addlanguage('".$translator_data['id']."','".$translator_data['agent_id']."',this.form.lang_code.value,this);\">Add</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr size='1'>
|
||||
</td>
|
||||
</tr>
|
||||
</table></form>". $this->translatorLanguageList($my_language);
|
||||
|
||||
|
||||
|
||||
// echo json_encode($language_list);
|
||||
}
|
||||
|
||||
private function makeCombo($dataArray,$text1,$code1, $name="") {
|
||||
$sl = "<select ".($name!=""?"name=\"${name}\"":"")." class='form-control'>";
|
||||
foreach ($dataArray as $drow) {
|
||||
$sl .= "<option value='".$drow[$code1]."'>".$drow[$text1]."</option>";
|
||||
}
|
||||
$sl .= "</select>";
|
||||
|
||||
return $sl;
|
||||
}
|
||||
|
||||
/*
|
||||
* translatorLanguageList
|
||||
* THIS FUNCTION LIST THE LANGUAGES THAT A TRANSLATOR HAVE CLAIMED TO UNDERSTAND
|
||||
* THERE IS NEED TO UPLOAD CETIFICATIONS FOR LEGEAL PURPOSE
|
||||
*/
|
||||
private function translatorLanguageList($my_language) {
|
||||
|
||||
$result_list = $my_language['result_list'];
|
||||
|
||||
$tb1 = "<table class='table'><tr><th>Language</th><th>Document</th><th>Approved</th><th>Disable</th></tr>";
|
||||
|
||||
foreach ($result_list as $rect) {
|
||||
|
||||
if ($rect['document_id'] == 0) {
|
||||
$flup = "<form method=\"post\" action=\"?\" enctype=\"multipart/form-data\">
|
||||
<input type=\"hidden\" name=\"mode\" value=\"file_upload\">
|
||||
<input type=\"hidden\" name=\"agent_id\" value=\"".$rect["agent_id"]."\">
|
||||
<input type=\"hidden\" name=\"language_id\" value=\"".$rect["language_id"]."\">
|
||||
<input type=\"hidden\" name=\"interpreter_id\" value=\"".$rect["interpreter_id"]."\">
|
||||
<div class=\"row\" style=\"float: right\">
|
||||
<label class=\"custom-file\">
|
||||
<input type=\"file\" name=\"file_contents\" id=\"file_contents\" class=\"custom-file-input\">
|
||||
<span class=\"custom-file-control\"></span>
|
||||
</label> <input type=\"submit\" value=\"Upload File\" class=\"btn btn-info btn-xs\" name=\"submit\" onclick=\"return uploadFile(this.form);\">
|
||||
<div id=\"progress_".$rect["interpreter_id"]."_".$rect["language_id"]."\" style='display:none;background:#0f0;width:0px;'></div>
|
||||
</form></row>";
|
||||
} else {
|
||||
$flup = "<a href='/transp/download?document_id=".$rect['document_id']."&agent_id=".$rect["agent_id"]."&interpreter_id=".$rect["interpreter_id"]."&language_id=".$rect["language_id"]."&ts=".time()."'>" . $rect['document'] . "</a> | <a class=\"text-danger\" href=\"#\"><b>Del.</b></a>";
|
||||
}
|
||||
|
||||
$tb1 .= "<tr><td style='width:180px;'>" . $rect['language'] . "</td>"
|
||||
. "<td>" . $flup . "</td>"
|
||||
. "<td style='width:45px;'><input class=\"form-control\" type=\"checkbox\" value=\"1\" onchange=\"return manageLanguageFlags(this, '".$rect["interpreter_id"]."','".$rect["language_id"]."','".$rect["lang_code"]."')\"".($rect['flags']==1?" checked":"")."></td>";
|
||||
if ($rect['status'] == 0) {
|
||||
$tb1 .= "<td style='width:85px;'><button class=\"btn btn-primary btn-xs\" style=\"float: right\" onclick=\"return manageLanguageStatus(this,'".$rect["interpreter_id"]."','".$rect["language_id"]."','".$rect["lang_code"]."');\">Enable</button></td></tr>";
|
||||
} else {
|
||||
$tb1 .= "<td style='width:85px;'><button class=\"btn btn-danger btn-xs\" style=\"float: right\" onclick=\"return manageLanguageStatus(this,'".$rect["interpreter_id"]."','".$rect["language_id"]."','".$rect["lang_code"]."');\">Disable</button></td></tr>";
|
||||
}
|
||||
}
|
||||
|
||||
// END TO BE REMOVED
|
||||
|
||||
$tb1 .= "</table>";
|
||||
return $tb1;
|
||||
}
|
||||
|
||||
/*
|
||||
* {"added":"2017-10-13 16:10:39.226379","agent_id":"4","city":"Marietta","country":"US","email":"ses66181+interpreter76@gmail.com","firstname":"Anatolii","id":"15","interpreter_id":"15","lastname":"Okhotnikov","loc":"104.238.127.115","phone":"664651123","pid":"100","state":"GA","status":"1","street":"2600 Bentley Rd SE","zipcode":"30067","internal_return":"0"}
|
||||
*/
|
||||
private function add_edit_translator($data)
|
||||
{
|
||||
$in = $data; // Do we validate?
|
||||
if ($data['interpreter_id']>0) {
|
||||
$action = MEDTRANS_TRANSP_EDIT_TRANSLATOR;
|
||||
} else {
|
||||
$action = MEDTRANS_TRANSP_ADD_TRANSLATOR;
|
||||
}
|
||||
$in["action"] = $action;
|
||||
$in["email"] = urlencode($data["email"]);
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api($action, $in, $out);
|
||||
$data["message"] = isset($out["status"])?$out["status"]:($data['interpreter_id']>0?"Translator updated":"Translator added");
|
||||
if ($data["message"]==1) $data["message"] = "Translator added";
|
||||
return $data["message"];
|
||||
}
|
||||
|
||||
public function upload()
|
||||
{
|
||||
if ($this->input->post()) {
|
||||
$data = $this->input->post();
|
||||
/*
|
||||
unset($data['data']);
|
||||
var_dump($data);return; */
|
||||
echo $this->file_upload($data);
|
||||
} else {
|
||||
echo "Invalid request";
|
||||
}
|
||||
}
|
||||
|
||||
private function file_upload($data)
|
||||
{
|
||||
$in['interpreter_id'] = $data['interpreter_id'];
|
||||
$in['language_id'] = $data['language_id'];
|
||||
$in['action'] = MEDTRANS_UPLOADS; // 4505;
|
||||
$in['name'] = $data['name'];
|
||||
$in['data'] = $data['data'];
|
||||
unset($data);
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api($in['action'], $in, $out);
|
||||
return $ret==0?"File uploaded":"Failed to upload";
|
||||
}
|
||||
|
||||
public function translators()
|
||||
{
|
||||
$data = array();
|
||||
$data["message"] = "";
|
||||
if ($this->input->post()) {
|
||||
$data = $this->input->post();
|
||||
if ($data['mode']=='add_language') {
|
||||
$data['message'] = $this->add_language($data);
|
||||
} else if ($data['mode']=='file_upload') {
|
||||
$data['message'] = $this->file_upload($data);
|
||||
} else {
|
||||
$data['message'] = $this->add_edit_translator($data);
|
||||
}
|
||||
}
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 5;
|
||||
$in['action'] = MEDTRANS_TRANSP_LIST_TRANSLATOR;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_LIST_TRANSLATOR, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
|
||||
|
||||
$data['page_name'] = "Interpreters";
|
||||
$this->renderAgentPage('view_agent_interpreters', $data);
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
public function language()
|
||||
{
|
||||
$data = array();
|
||||
$data["message"] = "";
|
||||
if ($this->input->post()) {
|
||||
$data = $this->input->post();
|
||||
if ($data['mode']=='add_language') {
|
||||
$data['message'] = $this->add_language($data);
|
||||
} else if ($data['mode']=='file_upload') {
|
||||
$data['message'] = $this->file_upload($data);
|
||||
} else {
|
||||
$data['message'] = $this->add_edit_translator($data);
|
||||
}
|
||||
}
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['language_id'] = 0; // all
|
||||
$in['action'] = MEDTRANS_TRANSP_AGENTLANGUAGE;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_AGENTLANGUAGE, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
|
||||
$data['page_name'] = "Language List";
|
||||
$this->renderAgentPage('view_agent_language', $data);
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function translators_load()
|
||||
{
|
||||
$data['translator_id'] = $this->input->get('translator_id');
|
||||
if ($data['translator_id']>0) {
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['interpreter_id'] = $data['translator_id'];
|
||||
$in['action'] = MEDTRANS_TRANSP_GET_TRANSLATOR;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLATOR, $in, $out);
|
||||
echo json_encode($out);
|
||||
} else {
|
||||
echo "{\"status\":\"-2\"}";
|
||||
}
|
||||
}
|
||||
|
||||
public function mydevices() {
|
||||
$data = array();
|
||||
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 5;
|
||||
$in['action'] = MEDTRANS_TRANSP_LISTLOCATION;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_LISTLOCATION, $in, $out);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
$this->load->model('combo_model');
|
||||
$this->combo_model->defaultComboMessage = 'Select your State';
|
||||
$data['states_combo'] = $this->combo_model->getStatesCombo('state', "GA");
|
||||
|
||||
|
||||
|
||||
$data['page_name'] = "Transport Devices";
|
||||
$this->renderAgentPage('view_agent_device', $data);
|
||||
}
|
||||
|
||||
public function listdevices() {
|
||||
// echo 'ameye';
|
||||
// url: "/transp/listdevices?proc=NCOMPLETE&locID=" + locID + "&agent_id=" + agent_id
|
||||
|
||||
|
||||
$in['location_id'] = $this->input->get('locID');
|
||||
|
||||
if ($in['location_id'] > 0) {
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['location_id'] = $in['location_id'];
|
||||
$in['action'] = MEDTRANS_TRANSP_GET_TRANSPORTER;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSPORTER, $in, $outx);
|
||||
// echo json_encode($out);
|
||||
|
||||
|
||||
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"location_id" => $in["location_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"]
|
||||
);
|
||||
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_DEVICELIST, $data, $data); // call the API
|
||||
$data['rect'] = $outx;
|
||||
$this->load->view('/agent/extra/devicelist_form', $data);
|
||||
}
|
||||
}
|
||||
|
||||
public function adddevices()
|
||||
{
|
||||
|
||||
// echo 'Ameye';
|
||||
|
||||
$this->load->model('combo_model');
|
||||
$this->combo_model->defaultComboMessage = 'Select your State';
|
||||
$data['states_combo'] = $this->combo_model->getStatesCombo('state', "GA");
|
||||
|
||||
|
||||
|
||||
$this->combo_model->defaultComboMessage = 'Select your Licence State';
|
||||
$data['lic_states_combo'] = $this->combo_model->getStatesCombo('lic_state', "GA");
|
||||
$data['form_title'] = "Add New Device";
|
||||
|
||||
$this->load->view('/agent/extra/deviceadd_edit', $data);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,475 @@
|
||||
<?php
|
||||
|
||||
class AGT_Controller extends CI_Controller {
|
||||
|
||||
var $template = array(
|
||||
'table_open' => "<table class='table table-striped table-hover table-bordered table-condensed'>",
|
||||
'thead_open' => '<thead class=\'bg-indigo\'>',
|
||||
'thead_close' => '</thead>',
|
||||
'heading_row_start' => '<tr>',
|
||||
'heading_row_end' => '</tr>',
|
||||
'heading_cell_start' => '<th>',
|
||||
'heading_cell_end' => '</th>',
|
||||
'tbody_open' => '<tbody>',
|
||||
'tbody_close' => '</tbody>',
|
||||
'row_start' => '<tr>',
|
||||
'row_end' => '</tr>',
|
||||
'cell_start' => '<td>',
|
||||
'cell_end' => '</td>',
|
||||
'row_alt_start' => '<tr>',
|
||||
'row_alt_end' => '</tr>',
|
||||
'cell_alt_start' => '<td>',
|
||||
'cell_alt_end' => '</td>',
|
||||
'table_close' => '</table>'
|
||||
);
|
||||
var $template_nohead = array(
|
||||
'table_open' => "<table class='table table-striped table-hover table-bordered table-condensed'>",
|
||||
'thead_open' => '<thead>',
|
||||
'thead_close' => '</thead>',
|
||||
'heading_row_start' => '<tr>',
|
||||
'heading_row_end' => '</tr>',
|
||||
'heading_cell_start' => '<th>',
|
||||
'heading_cell_end' => '</th>',
|
||||
'tbody_open' => '<tbody>',
|
||||
'tbody_close' => '</tbody>',
|
||||
'row_start' => '<tr>',
|
||||
'row_end' => '</tr>',
|
||||
'cell_start' => '<td>',
|
||||
'cell_end' => '</td>',
|
||||
'row_alt_start' => '<tr>',
|
||||
'row_alt_end' => '</tr>',
|
||||
'cell_alt_start' => '<td>',
|
||||
'cell_alt_end' => '</td>',
|
||||
'table_close' => '</table>'
|
||||
);
|
||||
public $data = array();
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function smart_htmlspecialchars($str) {
|
||||
if (substr($str, 0, 1) == '<')
|
||||
return $str;
|
||||
return htmlspecialchars($str);
|
||||
}
|
||||
|
||||
protected function sql_escape_func($inp) {
|
||||
if (is_array($inp)) {
|
||||
return array_map(__METHOD__, $inp);
|
||||
}
|
||||
|
||||
|
||||
if (!empty($inp) && is_string($inp)) {
|
||||
return str_replace(array('\\', "\0", "\n", "\r", "'", '"', "\x1a"), array('\\\\', '\\0', '\\n', '\\r', "\\'", '\\"', '\\Z'), $inp);
|
||||
}
|
||||
|
||||
return $inp;
|
||||
}
|
||||
|
||||
protected function medtrans_call_api($action, $in, &$out) {
|
||||
$ret = -1;
|
||||
$in['pid'] = 115;
|
||||
|
||||
// THE BASE ENDPOINT WILL COME FROM CONFIG FILE
|
||||
$endpointbase = "https://extlayer.kleenapp.co/agent/";
|
||||
|
||||
switch ($action) {
|
||||
case MEDTRANS_TRANSP_DEVICELIST:
|
||||
$endpoint = $endpointbase . "getdevicelist";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"location_id" => $in["location_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"]
|
||||
);
|
||||
break;
|
||||
|
||||
case MEDTRANS_TRANSP_LOGIN:
|
||||
$endpoint = $endpointbase . "agentlogin";
|
||||
$data = array(
|
||||
"username" => $in["username"],
|
||||
"password" => $in["password"]
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_CREATE:
|
||||
$endpoint = $endpointbase . "createagent"; //"agentcreate";
|
||||
$data = $in;
|
||||
// $data['login'] = 1; // force login after creattion
|
||||
break;
|
||||
case MEDTRANS_TRANSP_GET_TRANSLIST:
|
||||
$endpoint = $endpointbase . "gettransportlist";
|
||||
$data = array(
|
||||
"agent_id" => $in["agent_id"],
|
||||
"limit" => $in["limit"],
|
||||
"transport_id" => $in["transport_id"]
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_VERIFYSESSION:
|
||||
$endpoint = $endpointbase . "verifysession";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"]
|
||||
);
|
||||
break;
|
||||
|
||||
case MEDTRANS_TRANSP_GET_TRANSPORTER:
|
||||
$endpoint = $endpointbase . "getlocation";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"transporter_id" => $in["location_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"]
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_ADDLOCATION:
|
||||
$endpoint = $endpointbase . "addtransportlocation";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"loc_name" => $in["loc_name"],
|
||||
"phone" => $in["phone"],
|
||||
"street" => $in["street"],
|
||||
"city" => $in["city"],
|
||||
"zipcode" => $in["zipcode"],
|
||||
"state" => $in["state"],
|
||||
"country" => "US"
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_EDITLOCATION:
|
||||
$endpoint = $endpointbase . "editlocation";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"transporter_id" => $in["location_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"loc_name" => $in["loc_name"],
|
||||
"phone" => $in["phone"],
|
||||
"street" => $in["street"],
|
||||
"city" => $in["city"],
|
||||
"zipcode" => $in["zipcode"],
|
||||
"state" => $in["state"],
|
||||
"country" => "US"
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_LISTLOCATION:
|
||||
$endpoint = $endpointbase . "listtransportlocation";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"limit" => $in["limit"]
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_GET_TRANSLATOR:
|
||||
$endpoint = $endpointbase . "getinterpreter";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"interpreter_id" => $in["interpreter_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"]
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_ADD_TRANSLATOR:
|
||||
$endpoint = $endpointbase . "addinterpreter";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"email" => $in["email"],
|
||||
"firstname" => $in["firstname"],
|
||||
"lastname" => $in["lastname"],
|
||||
"phone" => $in["phone"],
|
||||
"street" => $in["street"],
|
||||
"city" => $in["city"],
|
||||
"zipcode" => $in["zipcode"],
|
||||
"state" => $in["state"],
|
||||
"country" => "US"
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_EDIT_TRANSLATOR:
|
||||
$endpoint = $endpointbase . "editinterpreter";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"interpreter_id" => $in["interpreter_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"email" => $in["email"],
|
||||
"firstname" => $in["firstname"],
|
||||
"lastname" => $in["lastname"],
|
||||
"phone" => $in["phone"],
|
||||
"street" => $in["street"],
|
||||
"city" => $in["city"],
|
||||
"zipcode" => $in["zipcode"],
|
||||
"state" => $in["state"],
|
||||
"country" => "US"
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_LIST_TRANSLATOR:
|
||||
$endpoint = $endpointbase . "listinterpreters";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"limit" => $in["limit"]
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_USER_GET_LANGUAGE:
|
||||
$endpoint = $endpointbase . "getsupportedlanguage";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"limit" => 1000,
|
||||
'status' => 0
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_LANGUAGELIST:
|
||||
$endpoint = $endpointbase . "getinterpreterlanguage";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"interpreter_id" => $in["interpreter_id"],
|
||||
"language_id" => $in["language_id"],
|
||||
"limit" => 1000,
|
||||
'status' => 0
|
||||
);
|
||||
break;
|
||||
case MEDTRANS_TRANSP_MANAGELANGUAGE:
|
||||
$endpoint = $endpointbase . "interpreterlang";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"interpreter_id" => $in["interpreter_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"mode" => $in["mode"],
|
||||
"lang_code" => $in["lang_code"]
|
||||
);
|
||||
if (isset($in["language_id"]))
|
||||
$data["language_id"] = $in["language_id"];
|
||||
if (isset($in["flags"]))
|
||||
$data["flags"] = $in["flags"];
|
||||
break;
|
||||
case MEDTRANS_UPLOADS:
|
||||
$endpoint = $endpointbase . "uploadfile";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"interpreter_id" => $in["interpreter_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"language_id" => $in["language_id"],
|
||||
"file_type" => INTERPRETER_CERTIFICATE,
|
||||
"name" => $in["name"],
|
||||
"data" => $in["data"]
|
||||
);
|
||||
return $this->fileUpload($endpoint, $data, $out);
|
||||
break;
|
||||
|
||||
case MEDTRANS_DOWNLOAD:
|
||||
$endpoint = $endpointbase . "download";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"interpreter_id" => $in["interpreter_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"language_id" => $in["language_id"],
|
||||
"file_type" => INTERPRETER_CERTIFICATE,
|
||||
"document_id" => $in["document_id"]
|
||||
);
|
||||
list($ret, $name, $data) = $this->fileDownload($endpoint, $data, $out);
|
||||
$out["file"] = $name;
|
||||
$out["data"] = $data;
|
||||
return $ret;
|
||||
break;
|
||||
|
||||
case MEDTRANS_TRANSP_AGENTLANGUAGE:
|
||||
$endpoint = $endpointbase . "getagentlanguage";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"language_id" => $in["language_id"]
|
||||
);
|
||||
break;
|
||||
|
||||
case MEDTRANS_TRANSP_DRIVERSCALL:
|
||||
|
||||
if ($in["mode"] == MODE_LIST) {
|
||||
$endpoint = $endpointbase . "getdriverslist";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"driver_id" => $in["driver_id"]
|
||||
);
|
||||
} else if ($in['mode'] == MODE_ADD) {
|
||||
$endpoint = $endpointbase . "createdriver";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"email" => $in["email"],
|
||||
"firstname" => $in["firstname"],
|
||||
"lastname" => $in["lastname"],
|
||||
"phone" => $in["phone"],
|
||||
"street" => $in["street"],
|
||||
"city" => $in["city"],
|
||||
"zipcode" => $in["zipcode"],
|
||||
"state" => $in["state"],
|
||||
"country" => "US",
|
||||
"lic_number" => $in["lic_number"],
|
||||
"lic_state" => $in["lic_state"],
|
||||
"expr_month" => $in["expr_month"],
|
||||
"expr_year" => $in["expr_year"]
|
||||
);
|
||||
} else if ($in['mode'] == MODE_UPDATE) {
|
||||
$endpoint = $endpointbase . "updatedriver";
|
||||
$data = array(
|
||||
"agent_id" => $_SESSION["agent_id"],
|
||||
"driver_id" => $in["driver_id"],
|
||||
"sessionid" => $_SESSION["agent_sessionid"],
|
||||
"email" => $in["email"],
|
||||
"firstname" => $in["firstname"],
|
||||
"lastname" => $in["lastname"],
|
||||
"phone" => $in["phone"],
|
||||
"street" => $in["street"],
|
||||
"city" => $in["city"],
|
||||
"zipcode" => $in["zipcode"],
|
||||
"state" => $in["state"],
|
||||
"country" => "US",
|
||||
"lic_number" => $in["lic_number"],
|
||||
"lic_state" => $in["lic_state"],
|
||||
"expr_month" => $in["expr_month"],
|
||||
"expr_year" => $in["expr_year"]
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// call the endpoint here
|
||||
$content = json_encode($data);
|
||||
$curl = curl_init($endpoint);
|
||||
curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type" => "application/json"));
|
||||
curl_setopt($curl, CURLOPT_POST, true);
|
||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
|
||||
$json_response = curl_exec($curl);
|
||||
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
if ($status != 200) {
|
||||
$out["status"] = "Service error: call to URL $endpoint failed with status $status, response $json_response, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl);
|
||||
return $ret;
|
||||
}
|
||||
$out["status"] = "";
|
||||
|
||||
$ret = -1; // PHP_API_OK
|
||||
curl_close($curl);
|
||||
$out = json_decode($json_response, true);
|
||||
|
||||
$ret = isset($out['internal_return']) ? $out['internal_return'] : -1;
|
||||
//$out = array_merge($out, $response);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
protected function fileDownload($endpoint, $data) {
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $endpoint);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
||||
curl_setopt($ch, CURLOPT_HEADER, true);
|
||||
curl_setopt($ch, CURLOPT_VERBOSE, true);
|
||||
$output = curl_exec($ch);
|
||||
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
$header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
|
||||
if ($status != 200) {
|
||||
$out["status"] = "Service error: call to URL $endpoint failed with status $status, curl_error " . curl_error($ch) . ", curl_errno " . curl_errno($ch);
|
||||
return -1;
|
||||
}
|
||||
curl_close($ch);
|
||||
$header = substr($output, 0, $header_size);
|
||||
$body = substr($output, $header_size);
|
||||
$headers = array();
|
||||
$data = explode("\r\n", $header);
|
||||
//$headers['status'] = $data[0];
|
||||
//array_shift($data);
|
||||
foreach ($data as $part) {
|
||||
if (strpos($part, ":") !== false) {
|
||||
$middle = explode(":", $part);
|
||||
$headers[trim($middle[0])] = trim($middle[1]);
|
||||
}
|
||||
}
|
||||
return array(0, $headers["X-File-Name"], $body);
|
||||
}
|
||||
|
||||
protected function fileUpload($endpoint, $data, $out) {
|
||||
$ret = -1;
|
||||
$uploaddir = realpath('./') . '/tmp/';
|
||||
$uploadfile = $uploaddir . $data['name'];
|
||||
if (file_put_contents($uploadfile, $data['data']) === FALSE) {
|
||||
return $ret;
|
||||
}
|
||||
unset($data['name']);
|
||||
unset($data['data']);
|
||||
/*
|
||||
$uploadfile = $uploaddir . basename($_FILES['file_contents']['name']);
|
||||
if (move_uploaded_file($_FILES['file_contents']['tmp_name'], $uploadfile)) {
|
||||
// OK
|
||||
} else {
|
||||
return $ret;
|
||||
}
|
||||
*/
|
||||
$file_name_with_full_path = realpath($uploadfile);
|
||||
$data['file_contents'] = '@' . $file_name_with_full_path;
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $endpoint);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl, CURLOPT_POST, 1);
|
||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
|
||||
$json_response = curl_exec($curl);
|
||||
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
curl_close($curl);
|
||||
unlink($file_name_with_full_path);
|
||||
if ($status != 200) {
|
||||
$out["status"] = "Error: call to URL $url failed with status $status, response $json_response, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl);
|
||||
$ret = -1;
|
||||
} else {
|
||||
$out = json_decode($json_response, true);
|
||||
$ret = 0;
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
protected function populateAgentsession($out) {
|
||||
|
||||
|
||||
$_SESSION['agent_id'] = $out['id'];
|
||||
$_SESSION['city'] = $out['city'];
|
||||
$_SESSION['email'] = $out['email'];
|
||||
$_SESSION['firstname'] = $out['firstname'];
|
||||
$_SESSION['lastname'] = $out['lastname'];
|
||||
$_SESSION['loc'] = $out['loc'];
|
||||
$_SESSION['phone'] = $out['phone'];
|
||||
$_SESSION['state'] = $out['state'];
|
||||
$_SESSION['username'] = $out['username'];
|
||||
$_SESSION['zipcode'] = $out['zipcode'];
|
||||
$_SESSION['transporter'] = $out['transporter'];
|
||||
$_SESSION['agent_sessionid'] = $out['sessionid'];
|
||||
$_SESSION['sessionid'] = $out['sessionid'];
|
||||
$_SESSION['agent_name'] = $out["agent_name"];
|
||||
$_SESSION['agent_type'] = $out["agent_type"];
|
||||
|
||||
|
||||
// print_r($out);
|
||||
}
|
||||
|
||||
protected function formatedMesage($msgType, $theMessage) {
|
||||
return "<div class=\"text-left\"><div class=\"alert alert-danger no-border\">" . $theMessage . "</div></div>";
|
||||
}
|
||||
|
||||
protected function renderAgentPage($page_name, $data) {
|
||||
$this->load->view('template/view_agent_header', $data);
|
||||
$this->load->view('agent/' . $page_name, $data);
|
||||
$this->load->view('template/view_agent_footer', $data);
|
||||
}
|
||||
|
||||
protected function testLoginInput(&$username, &$password, &$error_message, &$valid_entry) {
|
||||
$valid_entry = true;
|
||||
$username = urlencode(trim($this->input->post('username')));
|
||||
$password = trim($this->input->post('password'));
|
||||
if ($username == '' or $password == '') {
|
||||
$valid_entry = false;
|
||||
$error_message = 'Enter a Username/Password to continue';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Agent_Controller extends AGT_Controller {
|
||||
|
||||
var $template = array(
|
||||
'table_open' => "<table class='table table-striped table-hover table-bordered table-condensed'>",
|
||||
'thead_open' => '<thead class=\'bg-indigo\'>',
|
||||
'thead_close' => '</thead>',
|
||||
'heading_row_start' => '<tr>',
|
||||
'heading_row_end' => '</tr>',
|
||||
'heading_cell_start' => '<th>',
|
||||
'heading_cell_end' => '</th>',
|
||||
'tbody_open' => '<tbody>',
|
||||
'tbody_close' => '</tbody>',
|
||||
'row_start' => '<tr>',
|
||||
'row_end' => '</tr>',
|
||||
'cell_start' => '<td>',
|
||||
'cell_end' => '</td>',
|
||||
'row_alt_start' => '<tr>',
|
||||
'row_alt_end' => '</tr>',
|
||||
'cell_alt_start' => '<td>',
|
||||
'cell_alt_end' => '</td>',
|
||||
'table_close' => '</table>'
|
||||
);
|
||||
public $data = array();
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
$out = array();
|
||||
$in = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_VERIFYSESSION, $in, $out);
|
||||
|
||||
// print_r($out);
|
||||
|
||||
if (!isset($_SESSION['agent_sessionid']) or $_SESSION['agent_sessionid'] == '' or $out['internal_return'] != 505 ) {
|
||||
redirect('site');
|
||||
}
|
||||
}
|
||||
|
||||
// protected
|
||||
|
||||
protected function indexPageReal($data) {
|
||||
$data['do_not_script'] = false;
|
||||
$data['pageNumber'] = $this->input->get('pageNumber');
|
||||
if ($data['pageNumber']=='' || $data['pageNumber']<1) $data['pageNumber'] = 1;
|
||||
$in['agent_id'] = $_SESSION['agent_id'];
|
||||
$in['limit'] = 30;
|
||||
$in["transport_id"] = 0;
|
||||
$in['action'] = MEDTRANS_USER_GET_TRANSLIST;
|
||||
$out = array();
|
||||
$ret = $this->medtrans_call_api(MEDTRANS_TRANSP_GET_TRANSLIST, $in, $out);
|
||||
|
||||
$data['result_per_page'] = 10;
|
||||
$data['result_total'] = count($out['result_list']);
|
||||
$data['result_list'] = $out['result_list'];
|
||||
|
||||
$pages = ceil(1.0*$data['result_total']/$data['result_per_page']);
|
||||
if ($data['pageNumber']>$pages) $data['pageNumber'] = 1;
|
||||
|
||||
$offset = $data['result_per_page'] * ($data['pageNumber'] - 1);
|
||||
$data['result_list'] = array_slice($out['result_list'],$offset,$data['result_per_page']);
|
||||
return $data;
|
||||
}
|
||||
|
||||
protected function returnAdminTable($tbq, $pgLink) {
|
||||
|
||||
$this->load->library('pagination');
|
||||
$config = array();
|
||||
$query = $this->db->query($tbq['count_query']);
|
||||
$config["total_rows"] = $query->num_rows();
|
||||
$config["base_url"] = base_url() . $pgLink;
|
||||
$config["per_page"] = 5;
|
||||
$config["uri_segment"] = 3;
|
||||
$config["num_links"] = 5;
|
||||
$config['full_tag_open'] = "<ul class='pagination'>";
|
||||
$config['full_tag_close'] = "</ul>";
|
||||
$config['num_tag_open'] = '<li>';
|
||||
$config['num_tag_close'] = '</li>';
|
||||
$config['cur_tag_open'] = "<li class='disabled'><li class='active'><a href='#'>";
|
||||
$config['cur_tag_close'] = "<span class='sr-only'></span></a></li>";
|
||||
$config['next_tag_open'] = "<li>";
|
||||
$config['next_tagl_close'] = "</li>";
|
||||
$config['prev_tag_open'] = "<li>";
|
||||
$config['prev_tagl_close'] = "</li>";
|
||||
$config['first_tag_open'] = "<li>";
|
||||
$config['first_tagl_close'] = "</li>";
|
||||
$config['last_tag_open'] = "<li>";
|
||||
$config['last_tagl_close'] = "</li>";
|
||||
|
||||
$this->pagination->initialize($config);
|
||||
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
|
||||
$page = is_numeric($page) ? $page : 0;
|
||||
|
||||
$mysql = $tbq['query'] . " LIMIT " . $config["per_page"] . " OFFSET " . $page;
|
||||
|
||||
$this->load->library('table');
|
||||
$this->table->set_template($this->template);
|
||||
$query = $this->db->query($mysql);
|
||||
|
||||
// $this->table->set_heading(array('data' => 'Added/ID', 'style' => 'width:100px'), 'Title', 'Client', array('data' => 'Action', 'style' => 'width:70px'));
|
||||
|
||||
|
||||
$data['output_table'] = $this->table->generate($query);
|
||||
$data["links"] = $this->pagination->create_links();
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
protected function makeGoogleAddress($rect) {
|
||||
//print_r($rect);
|
||||
$data['directionsStart'] = $rect['to_street'] . "," . $rect['to_city'] . "," . $rect['to_state'] . " " . $rect['to_zipcode'] . ", USA";
|
||||
$data['directionsEnd'] = $rect['from_street'] . "," . $rect['from_city'] . "," . $rect['from_state'] . " " . $rect['from_zipcode'] . ", USA";
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,231 @@
|
||||
<?php
|
||||
|
||||
class Combo_model extends CI_Model {
|
||||
|
||||
var $optCons = '';
|
||||
var $currentStyle = 'form-control select';
|
||||
var $readOnlyMode = false;
|
||||
var $defaultComboMessage = 'Select...';
|
||||
var $showDefaultSelect = true;
|
||||
|
||||
function __construct() {
|
||||
|
||||
}
|
||||
|
||||
public function getJobPostDuration($option_name, $duration) {
|
||||
$this->defaultComboMessage = 'Select duration of post';
|
||||
$cmbstr = "";
|
||||
for ($ii = 2; $ii <= 10; $ii++) {
|
||||
|
||||
$cmbstr .= "<option value='$ii'>$ii day(s)</option>";
|
||||
}
|
||||
|
||||
return $this->comboFrame($option_name, $cmbstr);
|
||||
}
|
||||
|
||||
public function getUserJobGroupCombo($option_name, $member_id, $curVal) {
|
||||
|
||||
// $sql = "SELECT id,group_name FROM members_job_group WHERE member_id = $member_id AND status = 1 ORDER BY group_name ASC ";
|
||||
$sql = "SELECT m.id,m.group_name, m.group_name||' ['||count(g.group_id)||' members]' AS member_group_count "
|
||||
. "FROM members_job_group m "
|
||||
. "LEFT JOIN members_job_groupmember g ON g.group_id = m.id "
|
||||
. "WHERE m.member_id = $member_id "
|
||||
. "AND m.status = 1 GROUP BY m.id,m.group_name ORDER BY m.group_name ASC";
|
||||
|
||||
$q = $this->db->query($sql);
|
||||
$option_value = $this->optionValueObject($q->result(), "id", "member_group_count", $curVal);
|
||||
return $this->comboFrame($option_name, $option_value);
|
||||
}
|
||||
|
||||
public function getUserRecipientCombo($option_name, $member_id, $curVal) {
|
||||
|
||||
$sql = "SELECT b.id,b.firstname||' '||b.lastname||' '||b.account_no||' '||k.name AS recipient "
|
||||
. "FROM sendmoney_recipient b "
|
||||
. "LEFT JOIN bank_entity_codes k ON k.code=b.bank_code "
|
||||
. "WHERE b.member_id = $member_id AND b.status=1";
|
||||
|
||||
$q = $this->db->query($sql);
|
||||
$option_value = $this->optionValueObject($q->result(), "id", "recipient", $curVal);
|
||||
return $this->comboFrame($option_name, $option_value);
|
||||
}
|
||||
|
||||
public function getAccountTypeCombo($option_name, $curVal) {
|
||||
$q = $this
|
||||
->db
|
||||
->where('status', 1)
|
||||
->order_by('type_name', 'ASC')
|
||||
->get('account_types');
|
||||
|
||||
$option_value = $this->optionValueObject($q->result(), "type_value", "type_name", $curVal);
|
||||
|
||||
return $this->comboFrame($option_name, $option_value);
|
||||
}
|
||||
|
||||
public function getGeneralSkillCombo($option_name, $curVal) {
|
||||
$this->showDefaultSelect = false;
|
||||
$q = $this
|
||||
->db
|
||||
->where('status', 1)
|
||||
->order_by('lorder', 'DESC')
|
||||
->get('skill_category');
|
||||
$option_value = $this->optionValueObject($q->result(), "id", "category", $curVal);
|
||||
|
||||
return $this->comboFrame($option_name, $option_value);
|
||||
}
|
||||
|
||||
public function getUserNewSkillCombo($option_name, $curVal, $category_id, $member_id) {
|
||||
$q = $this
|
||||
->db
|
||||
->where('status', 1)
|
||||
->where('category_id', $category_id)
|
||||
->order_by('lorder', 'DESC')
|
||||
->get('skill_types');
|
||||
$option_value = $this->optionValueObject($q->result(), "id", "skill", $curVal);
|
||||
|
||||
return $this->comboFrame($option_name, $option_value);
|
||||
}
|
||||
|
||||
public function setReadOnly($bl) {
|
||||
$this->readOnlyMode = $bl;
|
||||
}
|
||||
|
||||
public function getCountryCombo($option_name, $curVal) {
|
||||
$q = $this
|
||||
->db
|
||||
->where('status', 1)
|
||||
->order_by('country', 'ASC')
|
||||
->get('country');
|
||||
|
||||
$option_value = $this->optionValueObject($q->result(), "code", "country", $curVal);
|
||||
|
||||
return $this->comboFrame($option_name, $option_value);
|
||||
}
|
||||
|
||||
public function getBankCombo($option_name, $curVal) {
|
||||
/*
|
||||
wrenchboard=> Select code,name from bank_entity_codes WHERE country ='NG' ORDER BY name ASC;
|
||||
code | name
|
||||
------+------------------------------------------------
|
||||
044 | Access Bank
|
||||
014 | Afri Bank
|
||||
023 | Citi Bank
|
||||
063 | Diamond Bank
|
||||
050 | Ecobank
|
||||
040 | Equitorial Trust Bank
|
||||
*/
|
||||
|
||||
$q = $this
|
||||
->db
|
||||
->where('status', 1)
|
||||
->order_by('name', 'ASC')
|
||||
->get('bank_entity_codes');
|
||||
|
||||
$option_value = $this->optionValueObject($q->result(), "code", "name", $curVal);
|
||||
|
||||
return $this->comboFrame($option_name, $option_value);
|
||||
}
|
||||
|
||||
private function optionValueObject($sdStd, $val, $valname, $curVal) {
|
||||
$this->optCons = '';
|
||||
if ($this->showDefaultSelect == true) {
|
||||
$this->optCons .= "<option value=''>" . $this->defaultComboMessage . "</option>";
|
||||
}
|
||||
|
||||
|
||||
foreach ($sdStd as $row) {
|
||||
$selV = '';
|
||||
if ($curVal == $row->$val) {
|
||||
$selV = " selected ";
|
||||
}
|
||||
$this->optCons .= "<option value='" . $row->$val . "' " . $selV . ">" . $row->$valname . "</option>";
|
||||
}
|
||||
return $this->optCons;
|
||||
}
|
||||
|
||||
private function comboFrame($option_name, $option_value) {
|
||||
$addReaOnly = "";
|
||||
if ($this->readOnlyMode == true) {
|
||||
$addReaOnly = " disabled ";
|
||||
}
|
||||
|
||||
return $cmb = "<select data-placeholder='" . $this->defaultComboMessage . "' class='" . $this->currentStyle . "' name='$option_name' $addReaOnly >$option_value</select>";
|
||||
}
|
||||
|
||||
public function getStatesCombo($option_name, $curVal) {
|
||||
// global $stateCodes;
|
||||
$option_value ="";
|
||||
|
||||
// print_r($stateCodes);
|
||||
|
||||
foreach ($this->stateCodes as $i => $srow)
|
||||
{
|
||||
$sel = "";
|
||||
|
||||
if ($i == $curVal)
|
||||
{
|
||||
$sel = " selected ";
|
||||
}
|
||||
|
||||
$option_value.="<option value='".$i."' ". $sel.">".$srow."</option>";
|
||||
}
|
||||
|
||||
return $this->comboFrame($option_name, $option_value);
|
||||
}
|
||||
|
||||
var $stateCodes = array(
|
||||
"AK" => "Alaska",
|
||||
"AL" => "Alabama",
|
||||
"AZ" => "Arizona",
|
||||
"AR" => "Arkansas",
|
||||
"CA" => "California",
|
||||
"CO" => "Colorado",
|
||||
"CT" => "Connecticut",
|
||||
"DC" => "District of Columbia",
|
||||
"DE" => "Delaware",
|
||||
"FL" => "Florida",
|
||||
"GA" => "Georgia",
|
||||
"HI" => "Hawaii",
|
||||
"IA" => "Iowa",
|
||||
"ID" => "Idaho",
|
||||
"IL" => "Illinois",
|
||||
"IN" => "Indiana",
|
||||
"KS" => "Kansas",
|
||||
"KY" => "Kentucky",
|
||||
"LA" => "Louisiana",
|
||||
"ME" => "Maine",
|
||||
"MD" => "Maryland",
|
||||
"MA" => "Massachusetts",
|
||||
"MI" => "Michigan",
|
||||
"MN" => "Minnesota",
|
||||
"MO" => "Missouri",
|
||||
"MS" => "Mississippi",
|
||||
"MT" => "Montana",
|
||||
"NC" => "North Carolina",
|
||||
"ND" => "North Dakota",
|
||||
"NE" => "Nebraska",
|
||||
"NH" => "New Hampshire",
|
||||
"NJ" => "New Jersey",
|
||||
"NM" => "New Mexico",
|
||||
"NV" => "Nevada",
|
||||
"NY" => "New York",
|
||||
"OH" => "Ohio",
|
||||
"OK" => "Oklahoma",
|
||||
"OR" => "Oregon",
|
||||
"PA" => "Pennsylvania",
|
||||
"PR" => "Puerto Rico",
|
||||
"RI" => "Rhode Island",
|
||||
"SC" => "South Carolina",
|
||||
"SD" => "South Dakota",
|
||||
"TN" => "Tennessee",
|
||||
"TX" => "Texas",
|
||||
"UT" => "Utah",
|
||||
"VA" => "Virginia",
|
||||
"VI" => "Virgin Islands",
|
||||
"VT" => "Vermont",
|
||||
"WA" => "Washington",
|
||||
"WI" => "Wisconsin",
|
||||
"WV" => "West Virginia",
|
||||
"WY" => "Wyoming"
|
||||
);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,65 @@
|
||||
<form>
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Note: You have assigned a transporter. The transporter did not confirm yet. You can still release and resigned if not confirmed on time. </h6>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 100px">
|
||||
<b>Assigned <br>Transporter :</b>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table text-nowrap">
|
||||
<tr>
|
||||
<td>
|
||||
<?=$assign_detail?><br><?=$assign_phone?>
|
||||
</td>
|
||||
<td style="width: 80px;">
|
||||
<button type="button" class="btn btn-info btn-xs" onclick="return AssignFormRelease(this.form);">Release</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<b>Translator :</b>
|
||||
</td>
|
||||
<td>
|
||||
Yes <b>Language :</b> French - THIS SECTION WILL BE IMPLENETED - STILL PENDING
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Cancel Request :</b>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table text-nowrap"><tr><td><?=$cancel_reason_combo?></td><td style="width: 100px;"><button type="button" onclick="return AssignCancel(this.form);" class="btn btn-warning btn-xs">Cancel</button> </td></tr> </table>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function AssignFormRelease(form) {
|
||||
alert(form);
|
||||
return false;
|
||||
}
|
||||
function AssignCancel(form) {
|
||||
// recomended_list
|
||||
alert(form.search_list);
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
<form>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 90px">
|
||||
<b>Assignment:</b>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table">
|
||||
<tr><td colspan="2">
|
||||
<b>Note :</b> Accept or reject the assignment with reason
|
||||
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $assign_detail ?><br><?= $assign_phone ?>
|
||||
</td>
|
||||
<td style="width: 80px;">
|
||||
<button type="button" class="btn btn-info btn-xs btn-block" onclick="return AssignConfirm(this.form);">Confirm</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><?= $cancel_reason_combo ?></td><td style="width: 100px;"><button type="button" onclick="return AssignReject(this.form);" class="btn btn-warning btn-xs btn-block">Reject</button> </td></tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<b>Translator:</b>
|
||||
</td>
|
||||
<td>
|
||||
Yes <b>Language :</b> French - THIS SECTION WILL BE IMPLENETED - STILL PENDING
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function AssignConfirm(form) {
|
||||
alert(form);
|
||||
return false;
|
||||
}
|
||||
function AssignReject(form) {
|
||||
// recomended_list
|
||||
alert(form.search_list);
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
|
||||
<div class="panel panel-flat">
|
||||
<fieldset class="content-group">
|
||||
<legend id="driver_name" class="text-bold"><?= $form_title ?></legend>
|
||||
<input type="hidden" id="driver_id" name="driver_id" value="0">
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Description <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="email" name="description" class="form-control" required="required" placeholder="Description">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Licence Number <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-3">
|
||||
<input type="text" id="lic_number" name="lic_number" class="form-control" required="required" placeholder="Licence Number">
|
||||
</div>
|
||||
|
||||
<label class="control-label col-lg-3">Licence State</label>
|
||||
<div class="col-lg-3">
|
||||
<?= $lic_states_combo ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
|
||||
|
||||
<!-- Multiple select -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Expr Month <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-3">
|
||||
<select id="expr_month" name="expr_month" class="form-control" required="required">
|
||||
<? for ($i = 1; $i <= 12; $i++) { ?><option value="<?= $i ?>"><?= $i ?></option><? } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label class="control-label col-lg-3">Expr Year <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-3">
|
||||
<select id="expr_year" name="expr_year" class="form-control" required="required">
|
||||
<? for ($i = date("Y") + 20; $i >= date("Y"); $i--) { ?><option value="<?= $i ?>"><?= $i ?></option><? } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /multiple select -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-primary btn-xs">Submit <i class="icon-arrow-right14 position-right"></i></button>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function saveDevice(locID, device_id) {
|
||||
|
||||
$('#accs' + locID).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/adddevices?proc=NCOMPLETE&locID=" + locID + "&device_id=" + device_id
|
||||
}).done(function (data) {
|
||||
$('#device_form').html(data);
|
||||
$('#accs' + locID).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
@@ -0,0 +1,57 @@
|
||||
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<b><?= $rect['loc_name'] ?></b>,<br> <?= $rect['street'] ?>,<br><?= $rect['city'] ?>,<?= $rect['state'] ?> <?= $rect['zipcode'] ?>
|
||||
</div>
|
||||
<div class="panel-heading">
|
||||
<button class="btn btn-primary btn-xs" onclick="editDevice(0,0);">Add Device</button>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Device</th>
|
||||
|
||||
<th style="width: 80px;"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function editDevice(locID,device_id) {
|
||||
|
||||
$('#accs' + locID).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/adddevices?proc=NCOMPLETE&locID=" + locID + "&device_id=" + device_id
|
||||
}).done(function (data) {
|
||||
$('#device_form').html(data);
|
||||
$('#accs' + locID).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
@@ -0,0 +1,110 @@
|
||||
<fieldset class="content-group">
|
||||
<legend id="driver_name" class="text-bold">Add New Driver</legend>
|
||||
<input type="hidden" id="driver_id" name="driver_id" value="0">
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Email <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="email" id="email" name="email" class="form-control" required="required" placeholder="Email">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Licence Number <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-3">
|
||||
<input type="text" id="lic_number" name="lic_number" class="form-control" required="required" placeholder="Licence Number">
|
||||
</div>
|
||||
|
||||
<label class="control-label col-lg-3">Licence State</label>
|
||||
<div class="col-lg-3">
|
||||
<?= $lic_states_combo ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
|
||||
|
||||
<!-- Multiple select -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Expr Month <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-3">
|
||||
<select id="expr_month" name="expr_month" class="form-control" required="required">
|
||||
<? for ($i=1;$i<=12;$i++) { ?><option value="<?=$i?>"><?=$i?></option><? } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label class="control-label col-lg-3">Expr Year <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-3">
|
||||
<select id="expr_year" name="expr_year" class="form-control" required="required">
|
||||
<? for ($i=date("Y")+20;$i>=date("Y");$i--) { ?><option value="<?=$i?>"><?=$i?></option><? } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /multiple select -->
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Name <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-5">
|
||||
<input type="text" id="firstname" name="firstname" class="form-control" required="required" placeholder="Firstname">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<input type="text" id="lastname" name="lastname" class="form-control" required="required" placeholder="Lastname">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
|
||||
|
||||
<!-- Input with icons -->
|
||||
<div class="form-group has-feedback">
|
||||
<label class="control-label col-lg-3">Address <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="street" name="street" class="form-control" required="required" placeholder="Address">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input with icons -->
|
||||
|
||||
<!-- Input with icons -->
|
||||
<div class="form-group has-feedback">
|
||||
<label class="control-label col-lg-3">City <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-6">
|
||||
<input type="text" id="city" name="city" class="form-control" required="required" placeholder="City">
|
||||
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<?=$states_combo?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input with icons -->
|
||||
|
||||
|
||||
|
||||
<!-- Input group -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Zipcode <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-3">
|
||||
<div class="input-group">
|
||||
<input type="text" id="zipcode" name="zipcode" class="form-control" required="required" placeholder="Zipcode">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="control-label col-lg-3">Phone <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-3">
|
||||
<input type="text" id="phone" name="phone" class="form-control" required="required" placeholder="Phone Number">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /input group -->
|
||||
|
||||
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-primary btn-xs">Submit <i class="icon-arrow-right14 position-right"></i></button>
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -0,0 +1,64 @@
|
||||
<fieldset class="content-group">
|
||||
<legend id="location_name" class="text-bold">Add New Location</legend>
|
||||
<input type="hidden" id="location_id" name="location_id" value="0">
|
||||
|
||||
<!-- Basic text input -->
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Branch Name <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="loc_name" name="loc_name" class="form-control" required="required" placeholder="Location Name">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Phone <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="phone" name="phone" class="form-control" required="required" placeholder="phone">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
<!-- Input with icons -->
|
||||
<div class="form-group has-feedback">
|
||||
<label class="control-label col-lg-3">Address <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="street" name="street" class="form-control" required="required" placeholder="Address">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input with icons -->
|
||||
|
||||
<!-- Input with icons -->
|
||||
<div class="form-group has-feedback">
|
||||
<label class="control-label col-lg-3">City <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="city" name="city" class="form-control" required="required" placeholder="City">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input with icons -->
|
||||
|
||||
<!-- Multiple select -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">State <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<?=$states_combo?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /multiple select -->
|
||||
<!-- Input group -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Zipcode <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<div class="input-group">
|
||||
<input type="text" id="zipcode" name="zipcode" class="form-control" required="required" placeholder="Zipcode">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input group -->
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-primary btn-xs">Submit <i class="icon-arrow-right14 position-right"></i></button>
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -0,0 +1,36 @@
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Quick Notes</h6>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Transport</th>
|
||||
<th>Date/Time</th>
|
||||
<th>Distance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,87 @@
|
||||
<fieldset class="content-group">
|
||||
<legend id="translator_name" class="text-bold">Add New Translator</legend>
|
||||
<input type="hidden" id="interpreter_id" name="interpreter_id" value="0">
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Email <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="email" id="email" name="email" class="form-control" required="required" placeholder="Email">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Firstname <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="firstname" name="firstname" class="form-control" required="required" placeholder="Firstname">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Lastname <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="lastname" name="lastname" class="form-control" required="required" placeholder="Lastname">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Phone <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="phone" name="phone" class="form-control" required="required" placeholder="phone">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
<!-- Input with icons -->
|
||||
<div class="form-group has-feedback">
|
||||
<label class="control-label col-lg-3">Address <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="street" name="street" class="form-control" required="required" placeholder="Address">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input with icons -->
|
||||
|
||||
<!-- Input with icons -->
|
||||
<div class="form-group has-feedback">
|
||||
<label class="control-label col-lg-3">City <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="city" name="city" class="form-control" required="required" placeholder="City">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input with icons -->
|
||||
|
||||
<!-- Multiple select -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">State <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<select id="stat" name="state" class="form-control" required="required">
|
||||
<option value="GA">Georgia</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /multiple select -->
|
||||
|
||||
<!-- Input group -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Zipcode <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<div class="input-group">
|
||||
<input type="text" id="zipcode" name="zipcode" class="form-control" required="required" placeholder="Zipcode">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input group -->
|
||||
|
||||
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-primary btn-xs">Submit <i class="icon-arrow-right14 position-right"></i></button>
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">dddd Todays Transport List</h6>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 80px">
|
||||
<b>Name :</b>
|
||||
</td>
|
||||
<td>
|
||||
Olusesan Ameye <b>Phone :</b> XXX-XXX-XXXX
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Transport :</b>
|
||||
</td>
|
||||
<td>
|
||||
<b>Destination :</b>
|
||||
<br><b>Origin :</b>
|
||||
<br><b>Date and Time :</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Distance :</b>
|
||||
</td>
|
||||
<td>
|
||||
40 Miles
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Translator :</b>
|
||||
</td>
|
||||
<td>
|
||||
Yes <b>Language :</b> French
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,94 @@
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title bg-info text-white">Request for : <b><?= $rect['firstname'] ?> <?= $rect['lastname'] ?></b> <b>PH : </b><?= $rect['from_phone'] ?> </h6>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td >
|
||||
<b>Transport:</b>
|
||||
</td>
|
||||
<td>
|
||||
<b>Destination :</b> <?= $rect['to_street'] ?>, <?= $rect['to_city'] ?>, <?= $rect['to_state'] ?>, <?= $rect['to_zipcode'] ?>
|
||||
<br><b>Origin :</b> <?= $rect['from_street'] ?>, <?= $rect['from_city'] ?>, <?= $rect['from_state'] ?>, <?= $rect['from_zipcode'] ?>
|
||||
<br><b>Date and Time : </b><?= $rect['transport_date'] ?>
|
||||
<br><b>Distance : </b><?= $rect['miles'] ?> Miles
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Translator:</b>
|
||||
</td>
|
||||
<td>
|
||||
<? echo $rect['translate'] == 1 ? 'Yes' : 'No'; ?> <b>Language :</b> <? echo $rect['translate'] == 1 ? $rect['lang_code'] . '-' . $rect['language'] : 'Not Apllicable'; ?>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Others :</b>
|
||||
</td>
|
||||
<td>
|
||||
WheelChairs Required, Need Assistance Walking, Concierge Required
|
||||
</tr>
|
||||
|
||||
<tr style="background-color: #bfd1f0">
|
||||
<td colspan="2">
|
||||
|
||||
<!--
|
||||
if - status | flags | dist_mode | miles
|
||||
define('PENDING', 0);
|
||||
define('ASSIGNED', 1);
|
||||
define('CONFIRMED', 2);
|
||||
define('CANCELLED', 3);
|
||||
define('INPROGRESS', 4);
|
||||
define('COMPLETED', 5);
|
||||
|
||||
define('SETTLED', 9);
|
||||
and $rect['flags'] == 0
|
||||
|
||||
-->
|
||||
<?
|
||||
if ($rect['status'] == 1 AND $rect['dist_mode'] != '' and $rect['miles'] > 0) {
|
||||
|
||||
switch ($rect['flags']) {
|
||||
case PENDING:
|
||||
echo 'Pending not assigned error ...';
|
||||
break;
|
||||
case ASSIGNED:
|
||||
include 'confreject_form.php';
|
||||
break;
|
||||
case CONFIRMED:
|
||||
include 'confirmed_form.php';
|
||||
break;
|
||||
case INPROGRESS:
|
||||
include 'progress_form.php';
|
||||
break;
|
||||
case COMPLETED:
|
||||
include 'completed_form.php';
|
||||
break;
|
||||
case SETTLED:
|
||||
include 'settled_form.php';
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
echo 'Wait for distance computation to continue';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- tr>
|
||||
<td >
|
||||
<b>Dump :</b>
|
||||
</td>
|
||||
<td>
|
||||
<?
|
||||
print_r($selected_transport);
|
||||
?>
|
||||
</tr -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,79 @@
|
||||
<div id="result_list_holder" class="table-responsive">
|
||||
<table class="table text-stripped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 110px;">Date/Time</th>
|
||||
<th>Transport Request [To/From]</th>
|
||||
<th style="width:50px;">Miles</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($result_list as $rect) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-heading">
|
||||
<a href="#" class="letter-icon-title"><?= $rect['transport_date'] ?> </a>
|
||||
</div>
|
||||
<span class="text-muted text-size-small"><?= $rect['transport_time'] ?></span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="media-body">
|
||||
<div class="media-heading">
|
||||
<a href="#" onclick="return showTranspModal(<?= $rect['id'] ?>);" class="letter-icon-title"><?= $rect['to_street'] ?>,<?= $rect['to_city'] ?>,<?= $rect['to_state'] ?>,<?= $rect['to_zipcode'] ?> </a>
|
||||
</div>
|
||||
|
||||
<div class="text-muted text-size-small"><?= $rect['from_street'] ?>,<?= $rect['from_city'] ?>,<?= $rect['from_state'] ?>,<?= $rect['from_zipcode'] ?></div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<h6 class="text-semibold no-margin"><?= $rect['miles'] ?></h6>
|
||||
</td>
|
||||
<td style="width: 80px;">
|
||||
<div class="media-left media-middle">
|
||||
<a href="#" onclick="transportSelected(<?= $rect['id'] ?>, 0);" class="btn bg-indigo-400 btn-rounded btn-icon btn-xs">
|
||||
Select
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<? if ($do_not_script) { ?><!-- loaded --><? } else { ?>
|
||||
<div id="pagination_holder" style="padding:10px;">
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
$( document ).ready(function() {
|
||||
$('#pagination_holder').pagination({
|
||||
currentPage: <?=$pageNumber?>,
|
||||
items: <?=$result_total?>,
|
||||
itemsOnPage: <?=$result_per_page?>,
|
||||
cssStyle: 'light-theme',
|
||||
onPageClick: function (pageNumber, event) {
|
||||
$.ajax({
|
||||
url: "/dash/indexPage?pageNumber=" + pageNumber
|
||||
}).done(function (data) {
|
||||
$('#result_list_holder').html(data);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
// -->
|
||||
</script>
|
||||
<? } ?>
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
@@ -0,0 +1,117 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-8">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Pending Transport Request</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="fullcalendar-event-colors2"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Todays Transport List</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
<!-- /main content -->
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
/* ------------------------------------------------------------------------------
|
||||
*
|
||||
* # Fullcalendar basic options
|
||||
|
||||
*
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
$(function() {
|
||||
|
||||
// Event colors
|
||||
var eventColors = [
|
||||
|
||||
<?
|
||||
$ic = 0;
|
||||
foreach ($result_list as $rect) {
|
||||
if ( $ic > 0 )
|
||||
{
|
||||
echo ",";
|
||||
}
|
||||
?>
|
||||
|
||||
{
|
||||
title: '<?= $rect['firstname'] ?>-<?= $rect['id'] ?>',
|
||||
start: '<?= substr($rect['transport_date'],0,10) ?>',
|
||||
end: '<?= substr($rect['transport_date'],0,10) ?>',
|
||||
color: '#546E7A'
|
||||
}
|
||||
<?
|
||||
$ic++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
];
|
||||
|
||||
// Event colors
|
||||
$('.fullcalendar-event-colors2').fullCalendar({
|
||||
header: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'month,agendaWeek,agendaDay'
|
||||
},
|
||||
defaultDate: '2017-10-24',
|
||||
editable: true,
|
||||
events: eventColors
|
||||
});
|
||||
});
|
||||
|
||||
// -->
|
||||
|
||||
</script></div>
|
||||
<!-- /page content -->
|
||||
@@ -0,0 +1,124 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<!-- Basic modal -->
|
||||
<div id="modal_theme_primary" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content" id="modal-content">
|
||||
|
||||
<div class="map-container map-symbol-custom">
|
||||
<?php echo $map['html']; ?>
|
||||
</div>
|
||||
<div id="directionsDiv" style="margin-top:15px"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic modal -->
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Pending Transport Request</h6>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
include 'extra/transport_list.php';
|
||||
?>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div id ="action_panel">
|
||||
|
||||
<div class="table-responsive">
|
||||
<? include 'extra/notes_form.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function transportSelected(line_id, agent) {
|
||||
|
||||
$('#accs' + line_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/traspsel?proc=DETAIL&transport_id=" + line_id + "&agent_id=" + agent
|
||||
}).done(function (data) {
|
||||
$('#action_panel').html(data);
|
||||
$('#accs' + line_id).prop('disabled', false);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
var loaded_data = new Array();
|
||||
function showTranspModal(transport_id) {
|
||||
if (typeof event !== 'undefined') {
|
||||
event.preventDefault();
|
||||
}
|
||||
// alert(transport_id);
|
||||
// collect data - either from forms or from data variables
|
||||
var id = $(this).data('id');
|
||||
|
||||
// load the modal content with a loader gif and message
|
||||
$('#modal-content').html('Loading...');
|
||||
|
||||
// show modal window
|
||||
$('#modal_theme_primary').modal('show');
|
||||
//alert(5);
|
||||
// do the ajax bit
|
||||
var post_data = {
|
||||
'transport_id': transport_id,
|
||||
};
|
||||
//alert(6);
|
||||
$.ajax({
|
||||
url: "/dash/transp_modal?transport_id=" + transport_id
|
||||
}).done(function (data) {
|
||||
//alert(data);
|
||||
//alert(7);
|
||||
$('#modal-content').html(data);
|
||||
//initialize_map();
|
||||
var myLatlng = new google.maps.LatLng(33.7489954, -84.3879824);
|
||||
var myOptions = {
|
||||
zoom: 13,
|
||||
center: myLatlng,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP};
|
||||
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
|
||||
directionsDisplay.setMap(map);
|
||||
directionsDisplay.setPanel(document.getElementById("directionsDiv"));
|
||||
|
||||
fitMapToBounds_map();
|
||||
|
||||
calcRoute(loaded_data[0], loaded_data[1]);
|
||||
//alert(loaded_data[0]);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-4">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>My Transport Locations</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($result_list as $rect) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-body">
|
||||
<div class="heading">
|
||||
<b><?= $rect['loc_name'] ?></b>,<br> <?= $rect['street'] ?>,<br><?= $rect['city'] ?>,<?= $rect['state'] ?> <?= $rect['zipcode'] ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td style="width: 90px;">
|
||||
|
||||
<div class="btn-group btn-group-xs" role="group">
|
||||
<button type="button" class="btn btn-primary" id="accs<?= $rect['id'] ?>" onclick="configureDevice(<?= $rect['id'] ?>,<?= $rect['agent_id'] ?>);" >Configure</button>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
|
||||
<div id ="device_list">
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Device List</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<!-- Daily sales -->
|
||||
|
||||
|
||||
<div class="panel panel-flat">
|
||||
|
||||
|
||||
<div class="panel-heading">
|
||||
<div id="device_form">
|
||||
<h6 class="panel-title">Add Edit Device</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function configureDevice(locID,agent_id) {
|
||||
// alert(locID);
|
||||
// return false;
|
||||
|
||||
|
||||
|
||||
|
||||
$('#accs' + locID).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/listdevices?proc=NCOMPLETE&locID=" + locID + "&agent_id=" + agent_id
|
||||
}).done(function (data) {
|
||||
$('#device_list').html(data);
|
||||
$('#accs' + locID).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
@@ -0,0 +1,171 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<div class="text-right">
|
||||
<button type="button" class="btn btn-info btn-xs" onclick="addNewDriver(0,<?= $_SESSION['agent_id'] ?>);" >Add New Driver</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>My Transport Drivers</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($result_list as $rect) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-body">
|
||||
<div class="heading">
|
||||
<b><?= $rect['firstname'] ?> <?= $rect['lastname'] ?></b>,<br> <?= $rect['street'] ?>,<br><?= $rect['city'] ?>,<?= $rect['state'] ?> <?= $rect['zipcode'] ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td style="width:60px;">
|
||||
|
||||
<div class="btn-group btn-group-xs" role="group">
|
||||
<button type="button" class="btn btn-info" onclick="editDriver(<?= $rect['driver_id'] ?>,<?= $rect['agent_id'] ?>);" >Edit</button>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Manage Drivers</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="action_panel_driver" style="display:none;"></div>
|
||||
<div id="action_panel">
|
||||
<?= $message ?>
|
||||
<form class="form-horizontal form-validate-jquery" method="post" action="?">
|
||||
<? include 'extra/driver_form.php'; ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var driver_saved = false;
|
||||
|
||||
function addNewDriver() {
|
||||
if (driver_saved) {
|
||||
$('#action_panel').html($('#action_panel_driver').html());
|
||||
driver_saved = false;
|
||||
$('#action_panel_driver').html('Error');
|
||||
}
|
||||
$('#driver_name').html('Add New Driver');
|
||||
$('#lic_number').val('');
|
||||
$('#lic_state').val('GA');
|
||||
$('#driver_id').val('0');
|
||||
$('#expr_month').val('');
|
||||
$('#expr_year').val('');
|
||||
$('#firstname').val('');
|
||||
$('#lastname').val('');
|
||||
$('#phone').val('');
|
||||
$('#street').val('');
|
||||
$('#city').val('');
|
||||
$('#state').val('GA');
|
||||
$('#zipcode').val('');
|
||||
$('#email').val('');
|
||||
return false;
|
||||
}
|
||||
|
||||
function editDriver(driver_id, agent) {
|
||||
if (confirm("Continue editing the selected driver?")) {
|
||||
// do something
|
||||
if (driver_saved) {
|
||||
$('#action_panel').html($('#action_panel_driver').html());
|
||||
driver_saved = false;
|
||||
$('#action_panel_driver').html('Error');
|
||||
}
|
||||
$.ajax({
|
||||
url: "/transp/drivers_load?driver_id=" + driver_id + "&agent_id=" + agent
|
||||
}).done(function (data) {
|
||||
loc = JSON.parse(data)
|
||||
if (loc.status == "OK") {
|
||||
var driver = loc.result_list[0];
|
||||
$('#driver_name').html('EDIT: ' + driver.lic_number + ' = ' + driver.driver_id);
|
||||
$('#driver_id').val(driver.driver_id);
|
||||
$('#lic_number').val(driver.lic_number);
|
||||
$('#lic_state').val(driver.lic_state);
|
||||
$('#expr_month').val(driver.expr_month);
|
||||
$('#expr_year').val(driver.expr_year);
|
||||
$('#firstname').val(driver.firstname);
|
||||
$('#lastname').val(driver.lastname);
|
||||
$('#phone').val(driver.phone);
|
||||
$('#street').val(driver.street);
|
||||
$('#city').val(driver.city);
|
||||
$('#state').val(driver.state);
|
||||
$('#zipcode').val(driver.zipcode);
|
||||
$('#email').val(driver.email);
|
||||
} else {
|
||||
alert('Failed to load driver!');
|
||||
addNewDriver();
|
||||
}
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function configureLocation(line_id, agent) {
|
||||
if (confirm("Are you sure you want continue configure ?")) {
|
||||
// do something
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#accs' + line_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/cfglocation?proc=DETAIL&tranlator_id=" + line_id + "&agent_id" + agent
|
||||
}).done(function (data) {
|
||||
$('#action_panel').html(data);
|
||||
$('#accs' + line_id).prop('disabled', false);
|
||||
});
|
||||
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
@@ -0,0 +1,146 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Pending Transport Request</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Transport Request [To/From]</th>
|
||||
<th>Date/Time</th>
|
||||
<th>Distance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($result_list as $rect) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-left media-middle">
|
||||
<a href="#" class="btn bg-indigo-400 btn-rounded btn-icon btn-xs">
|
||||
Select
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="media-body">
|
||||
<div class="media-heading">
|
||||
<a href="#" class="letter-icon-title"><?= $rect['to_street'] ?>,<?= $rect['to_city'] ?>,<?= $rect['to_state'] ?>,<?= $rect['to_zipcode'] ?> </a>
|
||||
</div>
|
||||
|
||||
<div class="text-muted text-size-small"><?= $rect['from_street'] ?>,<?= $rect['from_city'] ?>,<?= $rect['from_state'] ?>,<?= $rect['from_zipcode'] ?></div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="media-heading">
|
||||
<a href="#" class="letter-icon-title">10/10/2017 </a>
|
||||
</div>
|
||||
<span class="text-muted text-size-small">06:28 pm</span>
|
||||
</td>
|
||||
<td>
|
||||
<h6 class="text-semibold no-margin"><?= $rect['distance'] ?></h6>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Todays Transport List</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Transport</th>
|
||||
<th>Date/Time</th>
|
||||
<th>Distance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($today_list as $rect) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-left media-middle">
|
||||
<a href="#" class="btn bg-danger-400 btn-rounded btn-icon btn-xs">
|
||||
Select
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="media-body">
|
||||
<div class="media-heading">
|
||||
<a href="#" class="letter-icon-title"><?= $rect['to_street'] ?>,<?= $rect['to_city'] ?>,<?= $rect['to_state'] ?>,<?= $rect['to_zipcode'] ?> </a>
|
||||
</div>
|
||||
|
||||
<div class="text-muted text-size-small"><?= $rect['from_street'] ?>,<?= $rect['from_city'] ?>,<?= $rect['from_state'] ?>,<?= $rect['from_zipcode'] ?></div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="media-heading">
|
||||
<a href="#" class="letter-icon-title">10/10/2017 </a>
|
||||
</div>
|
||||
<span class="text-muted text-size-small">06:28 pm</span>
|
||||
</td>
|
||||
<td>
|
||||
<h6 class="text-semibold no-margin"><?= $rect['distance'] ?></h6>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
@@ -0,0 +1,280 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<div class="text-right">
|
||||
<button type="button" class="btn btn-info btn-xs" onclick="addtranslator()">Add New Translator</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>My Translators</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($result_list as $rect) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-body"> </div>
|
||||
<div class="heading">
|
||||
<b><?= $rect['firstname'] ?> <?= $rect['lastname'] ?></b>,<br> <?= $rect['street'] ?>,<br><?= $rect['city'] ?>,<?= $rect['state'] ?> <?= $rect['zipcode'] ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td style="width:190px;">
|
||||
<div class="btn-group btn-group-xs" role="group">
|
||||
<button type="button" class="btn btn-info" onclick="edittranslator(<?= $rect['id'] ?>,<?= $rect['agent_id'] ?>);">Edit</button>
|
||||
<button type="button" class="btn btn-primary" id="accs<?= $rect['id'] ?>" onclick="manageLanguage(<?= $rect['id'] ?>,<?= $rect['agent_id'] ?>);">languages</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Manage Translators</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="action_panel_translator" style="display:none;"></div>
|
||||
<div id="action_panel">
|
||||
<?= $message ?>
|
||||
<form class="form-horizontal form-validate-jquery" method="post" action="?">
|
||||
<? include 'extra/translators_form.php'; ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var translator_saved = false;
|
||||
|
||||
function uploadFile(form) {
|
||||
var button = form.submit;
|
||||
button.disabled = true;
|
||||
button.value = 'Loading...';
|
||||
var file = form.file_contents.files[0];
|
||||
var file_name = file.name;
|
||||
var agent_id = form.agent_id.value;
|
||||
var language_id = form.language_id.value;
|
||||
var interpreter_id = form.interpreter_id.value;
|
||||
var progress = document.getElementById('progress_'+interpreter_id+'_'+language_id);
|
||||
// progress.style.display = 'block';
|
||||
var reader = new FileReader();
|
||||
reader.readAsBinaryString(file);
|
||||
//reader.onloadstart = ...
|
||||
reader.onprogress = function(evt, fileName) {
|
||||
if (evt.lengthComputable) {
|
||||
// evt.loaded and evt.total are ProgressEvent properties
|
||||
var progress = Math.round((evt.loaded * 100) / evt.total);
|
||||
// Increase the prog bar length
|
||||
progress.style.width = (progress * 2) + "px";
|
||||
button.value = 'Loading '+progress+'%';
|
||||
}
|
||||
}; //... <-- Allows you to update a progress bar.
|
||||
//reader.onabort = ...
|
||||
//reader.onerror = ...
|
||||
//reader.onloadend = ...
|
||||
reader.onload = function(event) {
|
||||
var result = event.target.result;
|
||||
$.post('/transp/upload', {
|
||||
data: result,
|
||||
name: file_name,
|
||||
language_id: language_id,
|
||||
interpreter_id: interpreter_id
|
||||
}, function(data) {
|
||||
//alert(data);
|
||||
manageLanguage_real(interpreter_id, agent_id);
|
||||
});
|
||||
};
|
||||
return false;
|
||||
}
|
||||
|
||||
function addlanguage(translator_id,agent,lang_code,button) {
|
||||
button.disabled = true;
|
||||
$.ajax({
|
||||
url: "/transp/addlanguage?translator_id=" + translator_id + "&agent_id=" + agent + "&lang_code=" + lang_code
|
||||
}).done(function (data) {
|
||||
if (data=='0') {
|
||||
manageLanguage_real(translator_id,agent);
|
||||
} else {
|
||||
alert(data);
|
||||
}
|
||||
button.disabled = false;
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function addtranslator() {
|
||||
if (translator_saved) {
|
||||
$('#action_panel').html($('#action_panel_translator').html());
|
||||
translator_saved = false;
|
||||
$('#action_panel_translator').html('Error');
|
||||
}
|
||||
$('#translator_name').html('Add New Translator');
|
||||
$('#interpreter_id').val('0');
|
||||
$('#email').val('');
|
||||
$('#firstname').val('');
|
||||
$('#lastname').val('');
|
||||
$('#phone').val('');
|
||||
$('#street').val('');
|
||||
$('#city').val('');
|
||||
$('#state').val('GA');
|
||||
$('#zipcode').val('');
|
||||
return false;
|
||||
}
|
||||
|
||||
function edittranslator(translator_id, agent) {
|
||||
if (confirm("Are you sure you want continue ?")) {
|
||||
// do something
|
||||
if (translator_saved) {
|
||||
$('#action_panel').html($('#action_panel_translator').html());
|
||||
translator_saved = false;
|
||||
$('#action_panel_translator').html('Error');
|
||||
}
|
||||
$.ajax({
|
||||
url: "/transp/translators_load?translator_id=" + translator_id + "&agent_id=" + agent
|
||||
}).done(function (data) {
|
||||
translator = JSON.parse(data)
|
||||
if (translator.status==1) {
|
||||
$('#translator_name').html('EDIT: '+translator.firstname+' '+translator.lastname+' = '+translator.interpreter_id);
|
||||
$('#interpreter_id').val(translator.interpreter_id);
|
||||
$('#email').val(translator.email);
|
||||
$('#firstname').val(translator.firstname);
|
||||
$('#lastname').val(translator.lastname);
|
||||
$('#phone').val(translator.phone);
|
||||
$('#street').val(translator.street);
|
||||
$('#city').val(translator.city);
|
||||
$('#state').val(translator.state);
|
||||
$('#zipcode').val(translator.zipcode);
|
||||
// {"ADDED":"2017-10-13 16:10:39.226379","AGENT_ID":"4","CITY":"MARIETTA","COUNTRY":"US","EMAIL":"SES66181+INTERPRETER76@GMAIL.COM","FIRSTNAME":"ANATOLII","ID":"15","INTERPRETER_ID":"15","LASTNAME":"OKHOTNIKOV","LOC":"104.238.127.115","PHONE":"664651123","PID":"100","STATE":"GA","STATUS":"1","STREET":"2600 BENTLEY RD SE","ZIPCODE":"30067","INTERNAL_RETURN":"0"}
|
||||
} else {
|
||||
alert('Failed to load translator!');
|
||||
addtranslator();
|
||||
}
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function manageTranslator(line_id, agent) {
|
||||
if (confirm("Are you sure you want continue ?")) {
|
||||
// do something
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function manageLanguage(line_id, agent) {
|
||||
// if (confirm("Are you sure you want configure translators languages ?")) {
|
||||
// do something
|
||||
|
||||
// }
|
||||
|
||||
manageLanguage_real(line_id, agent);
|
||||
return false;
|
||||
}
|
||||
|
||||
function manageLanguage_real(line_id, agent) {
|
||||
if (translator_saved) {
|
||||
// We have saved the translator form, so nothing to do here
|
||||
} else {
|
||||
$('#action_panel_translator').html($('#action_panel').html());
|
||||
translator_saved = true;
|
||||
}
|
||||
|
||||
$('#accs'+line_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/cfgtranslator?proc=DETAIL&translator_id="+line_id+"&agent_id"+agent
|
||||
}).done(function (data) {
|
||||
$('#action_panel').html(data);
|
||||
$('#accs'+line_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function manageLanguageStatus(button,interpreter_id,language_id,lang_code) {
|
||||
button.disabled = true;
|
||||
$.ajax({
|
||||
url: "/transp/cfgtranslator?proc=STATUS&translator_id="+interpreter_id+"&language_id="+language_id+"&lang_code="+lang_code+"&status="+button.innerHTML
|
||||
}).done(function (data) {
|
||||
if (data=='0') {
|
||||
if (button.innerHTML=='Enable') {
|
||||
button.innerHTML = 'Disable';
|
||||
button.className = 'btn btn-danger btn-xs';
|
||||
} else {
|
||||
button.innerHTML = 'Enable';
|
||||
button.className = 'btn btn-primary btn-xs';
|
||||
}
|
||||
} else {
|
||||
alert(data);
|
||||
}
|
||||
button.disabled = false;
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function manageLanguageFlags(button,interpreter_id,language_id,lang_code) {
|
||||
result = false;
|
||||
button.disabled = true;
|
||||
$.ajax({
|
||||
url: "/transp/cfgtranslator?proc=FLAGS&translator_id="+interpreter_id+"&language_id="+language_id+"&lang_code="+lang_code+"&flags="+(button.checked?1:0)
|
||||
}).done(function (data) {
|
||||
if (data=='0') {
|
||||
result = true;
|
||||
} else {
|
||||
alert(data);
|
||||
}
|
||||
button.disabled = false;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
@@ -0,0 +1,207 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<div class="text-right">
|
||||
<button type="button" class="btn btn-info btn-xs" onclick="addtranslator()">Add New Translator</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Language</th>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>Address</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($result_list as $rect) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-body"> </div>
|
||||
<div class="heading">
|
||||
<b><?= $rect['language'] ?>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="media-body"> </div>
|
||||
<div class="heading">
|
||||
<b><?= $rect['firstname'] ?> <?= $rect['lastname'] ?></b>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="media-body"> </div>
|
||||
<div class="heading">
|
||||
<b><?= $rect['phone'] ?>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="media-body"> </div>
|
||||
<div class="heading">
|
||||
<?= $rect['street'] ?>,<br><?= $rect['city'] ?>,<?= $rect['state'] ?> <?= $rect['zipcode'] ?>
|
||||
</div>
|
||||
</td>
|
||||
<td style="width:190px;">
|
||||
<div class="btn-group btn-group-xs" role="group">
|
||||
<button type="button" class="btn btn-info" onclick="edittranslator(<?= $rect['interpreter_id'] ?>,<?= $rect['agent_id'] ?>);">Edit</button>
|
||||
<button type="button" class="btn btn-primary" id="accs<?= $rect['interpreter_id'] ?>" onclick="manageLanguage(<?= $rect['interpreter_id'] ?>,<?= $rect['agent_id'] ?>);">languages</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Manage Translators</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="action_panel_translator" style="display:none;"></div>
|
||||
<div id="action_panel">
|
||||
<?= $message ?>
|
||||
<form class="form-horizontal form-validate-jquery" method="post" action="?">
|
||||
<? include 'extra/translators_form.php'; ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var translator_saved = false;
|
||||
function addtranslator() {
|
||||
if (translator_saved) {
|
||||
$('#action_panel').html($('#action_panel_translator').html());
|
||||
translator_saved = false;
|
||||
$('#action_panel_translator').html('Error');
|
||||
}
|
||||
$('#translator_name').html('Add New Translator');
|
||||
$('#interpreter_id').val('0');
|
||||
$('#email').val('');
|
||||
$('#firstname').val('');
|
||||
$('#lastname').val('');
|
||||
$('#phone').val('');
|
||||
$('#street').val('');
|
||||
$('#city').val('');
|
||||
$('#state').val('GA');
|
||||
$('#zipcode').val('');
|
||||
return false;
|
||||
}
|
||||
|
||||
function edittranslator(translator_id, agent) {
|
||||
if (confirm("Are you sure you want continue ?")) {
|
||||
// do something
|
||||
if (translator_saved) {
|
||||
$('#action_panel').html($('#action_panel_translator').html());
|
||||
translator_saved = false;
|
||||
$('#action_panel_translator').html('Error');
|
||||
}
|
||||
$.ajax({
|
||||
url: "/transp/translators_load?translator_id=" + translator_id + "&agent_id=" + agent
|
||||
}).done(function (data) {
|
||||
translator = JSON.parse(data)
|
||||
if (translator.status == 1) {
|
||||
$('#translator_name').html('EDIT: ' + translator.firstname + ' ' + translator.lastname + ' = ' + translator.interpreter_id);
|
||||
$('#interpreter_id').val(translator.interpreter_id);
|
||||
$('#email').val(translator.email);
|
||||
$('#firstname').val(translator.firstname);
|
||||
$('#lastname').val(translator.lastname);
|
||||
$('#phone').val(translator.phone);
|
||||
$('#street').val(translator.street);
|
||||
$('#city').val(translator.city);
|
||||
$('#state').val(translator.state);
|
||||
$('#zipcode').val(translator.zipcode);
|
||||
// {"ADDED":"2017-10-13 16:10:39.226379","AGENT_ID":"4","CITY":"MARIETTA","COUNTRY":"US","EMAIL":"SES66181+INTERPRETER76@GMAIL.COM","FIRSTNAME":"ANATOLII","ID":"15","INTERPRETER_ID":"15","LASTNAME":"OKHOTNIKOV","LOC":"104.238.127.115","PHONE":"664651123","PID":"100","STATE":"GA","STATUS":"1","STREET":"2600 BENTLEY RD SE","ZIPCODE":"30067","INTERNAL_RETURN":"0"}
|
||||
} else {
|
||||
alert('Failed to load translator!');
|
||||
addtranslator();
|
||||
}
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function manageTranslator(line_id, agent) {
|
||||
if (confirm("Are you sure you want continue ?")) {
|
||||
// do something
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function manageLanguage(line_id, agent) {
|
||||
if (confirm("Are you sure you want configure translators languages ?")) {
|
||||
// do something
|
||||
if (translator_saved) {
|
||||
// We have saved the translator form, so nothing to do here
|
||||
} else {
|
||||
$('#action_panel_translator').html($('#action_panel').html());
|
||||
translator_saved = true;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$('#accs' + line_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/cfgtranslator?proc=DETAIL&translator_id=" + line_id + "&agent_id" + agent
|
||||
}).done(function (data) {
|
||||
$('#action_panel').html(data);
|
||||
$('#accs' + line_id).prop('disabled', false);
|
||||
});
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
@@ -0,0 +1,147 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<div class="text-right">
|
||||
<button type="button" class="btn btn-info btn-xs" onclick="addNewLocation(0,<?= $_SESSION['agent_id'] ?>);" >Add New Location</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>My Transport Locations</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($result_list as $rect) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-body">
|
||||
<div class="heading">
|
||||
<b><?= $rect['loc_name'] ?></b>,<br> <?= $rect['street'] ?>,<br><?= $rect['city'] ?>,<?= $rect['state'] ?> <?= $rect['zipcode'] ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td style="width: 210px;">
|
||||
|
||||
<div class="btn-group btn-group-xs" role="group">
|
||||
<button type="button" class="btn btn-info" onclick="editLocation(<?= $rect['id'] ?>,<?= $rect['agent_id'] ?>);" >Edit</button>
|
||||
<button type="button" class="btn btn-primary" id="accs<?= $rect['id'] ?>" onclick="configureLocation(<?= $rect['id'] ?>,<?= $rect['agent_id'] ?>);" >Configure</button>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Manage Transport Location</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="action_panel">
|
||||
<form class="form-horizontal form-validate-jquery" method="post" action="?">
|
||||
<? include 'extra/locations_form.php'; ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function addNewLocation() {
|
||||
$('#location_name').html('Add New Location');
|
||||
$('#loc_name').val('');
|
||||
$('#location_id').val('0');
|
||||
$('#phone').val('');
|
||||
$('#street').val('');
|
||||
$('#city').val('');
|
||||
$('#state').val('GA');
|
||||
$('#zipcode').val('');
|
||||
return false;
|
||||
}
|
||||
|
||||
function editLocation(location_id, agent) {
|
||||
if (confirm("Continue editing the selected location?")) {
|
||||
// do something
|
||||
$.ajax({
|
||||
url: "/transp/mylocation_load?location_id=" + location_id + "&agent_id=" + agent
|
||||
}).done(function (data) {
|
||||
loc = JSON.parse(data)
|
||||
if (loc.status == 1) {
|
||||
$('#location_name').html('EDIT: ' + loc.loc_name + ' = ' + loc.transporter_id);
|
||||
$('#location_id').val(loc.transporter_id);
|
||||
$('#loc_name').val(loc.loc_name);
|
||||
$('#phone').val(loc.phone);
|
||||
$('#street').val(loc.street);
|
||||
$('#city').val(loc.city);
|
||||
$('#state').val(loc.state);
|
||||
$('#zipcode').val(loc.zipcode);
|
||||
} else {
|
||||
alert('Failed to load location!');
|
||||
addloc();
|
||||
}
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function configureLocation(line_id, agent) {
|
||||
if (confirm("Are you sure you want continue configure ?")) {
|
||||
// do something
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#accs' + line_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/cfglocation?proc=DETAIL&tranlator_id=" + line_id + "&agent_id" + agent
|
||||
}).done(function (data) {
|
||||
$('#action_panel').html(data);
|
||||
$('#accs' + line_id).prop('disabled', false);
|
||||
});
|
||||
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
@@ -0,0 +1,61 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-8">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Pending Transport Request</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Todays Transport List</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
@@ -0,0 +1,546 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-8">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="panel invoice-grid">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold no-margin-top">Leonardo Fellini</h6>
|
||||
<ul class="list list-unstyled">
|
||||
<li>Invoice #: 0028</li>
|
||||
<li>Service Date: <span class="text-semibold">2015/01/25</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold text-right no-margin-top">$8,750</h6>
|
||||
<ul class="list list-unstyled text-right">
|
||||
<li>Service: <span class="text-semibold">Transport</span></li>
|
||||
<li class="dropdown">
|
||||
Status:
|
||||
<a href="#" class="label bg-danger-400 dropdown-toggle" data-toggle="dropdown">Overdue <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li class="active"><a href="#"><i class="icon-alert"></i> Overdue</a></li>
|
||||
<li><a href="#"><i class="icon-alarm"></i> Pending</a></li>
|
||||
<li><a href="#"><i class="icon-checkmark3"></i> Paid</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-spinner2 spinner"></i> On hold</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Canceled</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer panel-footer-condensed">
|
||||
<div class="heading-elements">
|
||||
<span class="heading-text">
|
||||
<span class="status-mark border-danger position-left"></span> Due: <span class="text-semibold">2015/02/25</span>
|
||||
</span>
|
||||
|
||||
<ul class="list-inline list-inline-condensed heading-text pull-right">
|
||||
<li><a href="#" class="text-default" data-toggle="modal" data-target="#invoice"><i class="icon-eye8"></i></a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-printer"></i> Print invoice</a></li>
|
||||
<li><a href="#"><i class="icon-file-download"></i> Download invoice</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-file-plus"></i> Edit invoice</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Remove invoice</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="panel invoice-grid">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold no-margin-top">Rebecca Manes</h6>
|
||||
<ul class="list list-unstyled">
|
||||
<li>Invoice #: 0027</li>
|
||||
<li>Service Date: <span class="text-semibold">2015/02/24</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold text-right no-margin-top">$5,100</h6>
|
||||
<ul class="list list-unstyled text-right">
|
||||
<li>Service: <span class="text-semibold">Transport</span></li>
|
||||
<li class="dropdown">
|
||||
Status:
|
||||
<a href="#" class="label bg-success-400 dropdown-toggle" data-toggle="dropdown">Paid <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-alert"></i> Overdue</a></li>
|
||||
<li><a href="#"><i class="icon-alarm"></i> Pending</a></li>
|
||||
<li class="active"><a href="#"><i class="icon-checkmark3"></i> Paid</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-spinner2 spinner"></i> On hold</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Canceled</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer panel-footer-condensed">
|
||||
<div class="heading-elements">
|
||||
<span class="heading-text">
|
||||
<span class="status-mark border-success position-left"></span> Due: <span class="text-semibold">2015/03/24</span>
|
||||
</span>
|
||||
|
||||
<ul class="list-inline list-inline-condensed heading-text pull-right">
|
||||
<li><a href="#" class="text-default" data-toggle="modal" data-target="#invoice"><i class="icon-eye8"></i></a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-printer"></i> Print invoice</a></li>
|
||||
<li><a href="#"><i class="icon-file-download"></i> Download invoice</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-file-plus"></i> Edit invoice</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Remove invoice</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="panel invoice-grid">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold no-margin-top">James Alexander</h6>
|
||||
<ul class="list list-unstyled">
|
||||
<li>Invoice #: 0026</li>
|
||||
<li>Service Date: <span class="text-semibold">2015/02/23</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold text-right no-margin-top">$12,500</h6>
|
||||
<ul class="list list-unstyled text-right">
|
||||
<li>Service: <span class="text-semibold">Transport</span></li>
|
||||
<li class="dropdown">
|
||||
Status:
|
||||
<a href="#" class="label bg-blue dropdown-toggle" data-toggle="dropdown">Pending <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-alert"></i> Overdue</a></li>
|
||||
<li class="active"><a href="#"><i class="icon-alarm"></i> Pending</a></li>
|
||||
<li><a href="#"><i class="icon-checkmark3"></i> Paid</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-spinner2 spinner"></i> On hold</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Canceled</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer panel-footer-condensed">
|
||||
<div class="heading-elements">
|
||||
<span class="heading-text">
|
||||
<span class="status-mark border-blue position-left"></span> Due: <span class="text-semibold">2015/03/23</span>
|
||||
</span>
|
||||
|
||||
<ul class="list-inline list-inline-condensed heading-text pull-right">
|
||||
<li><a href="#" class="text-default" data-toggle="modal" data-target="#invoice"><i class="icon-eye8"></i></a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-printer"></i> Print invoice</a></li>
|
||||
<li><a href="#"><i class="icon-file-download"></i> Download invoice</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-file-plus"></i> Edit invoice</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Remove invoice</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="panel invoice-grid">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold no-margin-top">Jeremy Victorino</h6>
|
||||
<ul class="list list-unstyled">
|
||||
<li>Invoice #: 0025</li>
|
||||
<li>Service Date: <span class="text-semibold">2015/02/22</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold text-right no-margin-top">$1,950</h6>
|
||||
<ul class="list list-unstyled text-right">
|
||||
<li>Service: <span class="text-semibold">Skrill</span></li>
|
||||
<li class="dropdown">
|
||||
Status:
|
||||
<a href="#" class="label bg-grey-300 dropdown-toggle" data-toggle="dropdown">On hold <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-alert"></i> Overdue</a></li>
|
||||
<li><a href="#"><i class="icon-alarm"></i> Pending</a></li>
|
||||
<li><a href="#"><i class="icon-checkmark3"></i> Paid</a></li>
|
||||
<li class="divider"></li>
|
||||
<li class="active"><a href="#"><i class="icon-spinner2 spinner"></i> On hold</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Canceled</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer panel-footer-condensed">
|
||||
<div class="heading-elements">
|
||||
<span class="heading-text">
|
||||
<span class="status-mark border-grey-300 position-left"></span> Due: <span class="text-semibold">2015/03/22</span>
|
||||
</span>
|
||||
|
||||
<ul class="list-inline list-inline-condensed heading-text pull-right">
|
||||
<li><a href="#" class="text-default" data-toggle="modal" data-target="#invoice"><i class="icon-eye8"></i></a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-printer"></i> Print invoice</a></li>
|
||||
<li><a href="#"><i class="icon-file-download"></i> Download invoice</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-file-plus"></i> Edit invoice</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Remove invoice</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="panel invoice-grid">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold no-margin-top">Margo Baker</h6>
|
||||
<ul class="list list-unstyled">
|
||||
<li>Invoice #: 0024</li>
|
||||
<li>Service Date: <span class="text-semibold">2015/02/21</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold text-right no-margin-top">$2,000</h6>
|
||||
<ul class="list list-unstyled text-right">
|
||||
<li>Service: <span class="text-semibold">Transport</span></li>
|
||||
<li class="dropdown">
|
||||
Status:
|
||||
<a href="#" class="label bg-slate-400 dropdown-toggle" data-toggle="dropdown">Canceled <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-alert"></i> Overdue</a></li>
|
||||
<li><a href="#"><i class="icon-alarm"></i> Pending</a></li>
|
||||
<li><a href="#"><i class="icon-checkmark3"></i> Paid</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-spinner2 spinner"></i> On hold</a></li>
|
||||
<li class="active"><a href="#"><i class="icon-cross2"></i> Canceled</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer panel-footer-condensed">
|
||||
<div class="heading-elements">
|
||||
<span class="heading-text">
|
||||
<span class="status-mark border-slate position-left"></span> Due: <span class="text-semibold">2015/03/21</span>
|
||||
</span>
|
||||
|
||||
<ul class="list-inline list-inline-condensed heading-text pull-right">
|
||||
<li><a href="#" class="text-default" data-toggle="modal" data-target="#invoice"><i class="icon-eye8"></i></a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-printer"></i> Print invoice</a></li>
|
||||
<li><a href="#"><i class="icon-file-download"></i> Download invoice</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-file-plus"></i> Edit invoice</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Remove invoice</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="panel invoice-grid">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold no-margin-top">Beatrix Diaz</h6>
|
||||
<ul class="list list-unstyled">
|
||||
<li>Invoice #: 0023</li>
|
||||
<li>Service Date: <span class="text-semibold">2015/02/20</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<h6 class="text-semibold text-right no-margin-top">$750</h6>
|
||||
<ul class="list list-unstyled text-right">
|
||||
<li>Service: <span class="text-semibold">Payoneer</span></li>
|
||||
<li class="dropdown">
|
||||
Status:
|
||||
<a href="#" class="label bg-danger-400 dropdown-toggle" data-toggle="dropdown">Overdue <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li class="active"><a href="#"><i class="icon-alert"></i> Overdue</a></li>
|
||||
<li><a href="#"><i class="icon-alarm"></i> Pending</a></li>
|
||||
<li><a href="#"><i class="icon-checkmark3"></i> Paid</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-spinner2 spinner"></i> On hold</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Canceled</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer panel-footer-condensed">
|
||||
<div class="heading-elements">
|
||||
<span class="heading-text">
|
||||
<span class="status-mark border-danger position-left"></span> Due: <span class="text-semibold">2015/03/20</span>
|
||||
</span>
|
||||
|
||||
<ul class="list-inline list-inline-condensed heading-text pull-right">
|
||||
<li><a href="#" class="text-default" data-toggle="modal" data-target="#invoice"><i class="icon-eye8"></i></a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-printer"></i> Print invoice</a></li>
|
||||
<li><a href="#"><i class="icon-file-download"></i> Download invoice</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-file-plus"></i> Edit invoice</a></li>
|
||||
<li><a href="#"><i class="icon-cross2"></i> Remove invoice</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
|
||||
|
||||
|
||||
<!-- Invoice template -->
|
||||
<div class="panel panel-white">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Transport Service Invoice</h6>
|
||||
<div class="heading-elements">
|
||||
<button type="button" class="btn btn-default btn-xs heading-btn"><i class="icon-printer position-left"></i> Print</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body no-padding-bottom">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 content-group">
|
||||
<img src="assets/images/logo_demo.png" class="content-group mt-10" alt="" style="width: 120px;">
|
||||
<ul class="list-condensed list-unstyled">
|
||||
<li>2269 Elba Lane</li>
|
||||
<li>Paris, France</li>
|
||||
<li>888-555-2311</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 content-group">
|
||||
<div class="invoice-details">
|
||||
<h5 class="text-uppercase text-semibold">Invoice #49029</h5>
|
||||
<ul class="list-condensed list-unstyled">
|
||||
<li>Date: <span class="text-semibold">January 12, 2015</span></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-9 content-group">
|
||||
<span class="text-muted">Transport Service for:</span>
|
||||
<ul class="list-condensed list-unstyled">
|
||||
<li><h5>Rebecca Manes</h5></li>
|
||||
<li><span class="text-semibold">Normand axis LTD</span></li>
|
||||
<li>3 Goodman Street</li>
|
||||
<li>marietta, GA 30127</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-3 content-group">
|
||||
<span class="text-muted">Configured Payment Details:</span>
|
||||
<ul class="list-condensed list-unstyled invoice-payment-details">
|
||||
<li><h5>Total Due: <span class="text-right text-semibold">$8,750</span></h5></li>
|
||||
<li>Bank account: <span class="text-semibold">CHASE XXXX1122</span></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-lg">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Description</th>
|
||||
<th class="col-sm-1">Rate</th>
|
||||
<th class="col-sm-1">Miles</th>
|
||||
<th class="col-sm-1">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<h6 class="no-margin">Basic Transport</h6>
|
||||
<span class="text-muted">Space for followup comments</span>
|
||||
</td>
|
||||
<td>$70</td>
|
||||
<td>10</td>
|
||||
<td><span class="text-semibold">$3,990</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h6 class="no-margin">Extended Transport</h6>
|
||||
<span class="text-muted">Space for followup comments.</span>
|
||||
</td>
|
||||
<td>$70</td>
|
||||
<td>12</td>
|
||||
<td><span class="text-semibold">$840</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h6 class="no-margin">Dummy Dead Distance</h6>
|
||||
<span class="text-muted">Space for followup comments.</span>
|
||||
</td>
|
||||
<td>$70</td>
|
||||
<td>15</td>
|
||||
<td><span class="text-semibold">$2,170</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="row invoice-payment">
|
||||
<div class="col-sm-7">
|
||||
<div class="content-group">
|
||||
<h6>Other Information</h6>
|
||||
any any other information will be good here any other information will be good here
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-5">
|
||||
<div class="content-group">
|
||||
<h6>Total due</h6>
|
||||
<div class="table-responsive no-border">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Subtotal:</th>
|
||||
<td class="text-right">$7,000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tax: <span class="text-regular">(25%)</span></th>
|
||||
<td class="text-right">$1,750</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Total:</th>
|
||||
<td class="text-right text-primary"><h5 class="text-semibold">$8,750</h5></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h6>Other information</h6>
|
||||
<p class="text-muted">Some other uefull information , like driver car ets for internal usdit will be better</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /invoice template -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
|
||||
|
||||
|
||||
<div class="panel-heading">
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
<fieldset class="content-group">
|
||||
<legend id="translator_name" class="text-bold">Edit Profile</legend>
|
||||
<input type="hidden" id="interpreter_id" name="interpreter_id" value="0">
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Email <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="email" id="email" name="email" class="form-control" required="required" placeholder="Email">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Firstname <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="firstname" name="firstname" class="form-control" required="required" placeholder="Firstname">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Lastname <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="lastname" name="lastname" class="form-control" required="required" placeholder="Lastname">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
<!-- Basic text input -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Phone <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="phone" name="phone" class="form-control" required="required" placeholder="phone">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /basic text input -->
|
||||
|
||||
<!-- Input with icons -->
|
||||
<div class="form-group has-feedback">
|
||||
<label class="control-label col-lg-3">Address <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="street" name="street" class="form-control" required="required" placeholder="Address">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input with icons -->
|
||||
|
||||
<!-- Input with icons -->
|
||||
<div class="form-group has-feedback">
|
||||
<label class="control-label col-lg-3">City <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" id="city" name="city" class="form-control" required="required" placeholder="City">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input with icons -->
|
||||
|
||||
<!-- Multiple select -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">State <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<select id="stat" name="state" class="form-control" required="required">
|
||||
<option value="GA">Georgia</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /multiple select -->
|
||||
|
||||
<!-- Input group -->
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">Zipcode <span class="text-danger">*</span></label>
|
||||
<div class="col-lg-9">
|
||||
<div class="input-group">
|
||||
<input type="text" id="zipcode" name="zipcode" class="form-control" required="required" placeholder="Zipcode">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /input group -->
|
||||
|
||||
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-primary btn-xs">Update</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
|
||||
|
||||
<div class="panel-body">
|
||||
<a href="#"><img src="/assets/images/placeholder.jpg" class="img-circle img-responsive" alt=""></a>
|
||||
<h6>IMPLEMENT CHANGE PICTURE</h6>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-lg-3">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title"><?=$page_name?></h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
include 'extra/transport_list.php';
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Daily sales -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Todays Transport List</h6>
|
||||
<div class="heading-elements">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
<div id ="action_panel">
|
||||
<div class="table-responsive">
|
||||
<? include 'extra/notes_form.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /daily sales -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function transportSelected(line_id, agent) {
|
||||
|
||||
$('#accs' + line_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/traspsel?proc=DETAIL&transport_id=" + line_id + "&agent_id=" + agent
|
||||
}).done(function (data) {
|
||||
$('#action_panel').html(data);
|
||||
$('#accs' + line_id).prop('disabled', false);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
@@ -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 ?>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
@@ -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 ?>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,185 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="MedtransGo" />
|
||||
<meta name="keywords" content="one page template, one page, template, agency, simplicity, MedtransGo, themeforest" />
|
||||
<meta name="author" content="MedtransGo" />
|
||||
|
||||
<title>Kleen</title>
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="img/icon/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="img/icon/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="img/icon/favicon-16x16.png">
|
||||
<link rel="manifest" href="img/icon/manifest.json">
|
||||
<link rel="mask-icon" href="img/icon/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="img/icon/favicon.ico">
|
||||
<meta name="msapplication-config" content="img/icon/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" type="text/css" href="/hassets/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/hassets/css/normalize.css">
|
||||
<link rel="stylesheet" type="text/css" href="/hassets/css/ionicons.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/hassets/css/owl.carousel.css">
|
||||
<link rel="stylesheet" type="text/css" href="/hassets/css/style.css">
|
||||
<!-- <link rel="stylesheet" type="text/css" href="css/rtl.css"> -->
|
||||
|
||||
<script type="text/javascript" src="js/modernizr.custom.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Menu -->
|
||||
<header id="header">
|
||||
<nav class="navbar navbar-default menu-container" id="menu-container">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<div class="logo">
|
||||
<a href=""><img src="/hassets/img/logo.png" alt="KleenApp"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
||||
<section class="section section-menu">
|
||||
<nav class="menu menu-simplicity">
|
||||
<ul class="menu-list">
|
||||
<li class="menu-item menu-item--current"><a href="#header" class="menu-link">Home</a></li>
|
||||
<li class="menu-item"><a href="#contact" class="menu-link">Contact</a></li>
|
||||
<li class="menu-item"><a href="/signup" class="menu-link">Sign Up</a></li>
|
||||
<li class="menu-item"><a href="/login" class="menu-link">Login</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Owl Slider -->
|
||||
<section class="owl-carousel" id="owl-carousel">
|
||||
<div class="carousel">
|
||||
<div class="bg-img bg-img1"></div>
|
||||
<div class="heading-holder1">
|
||||
<h1 class="main-heading1">KleenApp <strong><span class="color">Partners</span></strong></h1>
|
||||
<h2 class="sub-heading1">Your <strong>integrated clean world</strong> solution.</h2>
|
||||
<button type="button" class="heading-button">More</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Contact Us -->
|
||||
<section class="container-fluid contact" id="contact">
|
||||
<div class="container">
|
||||
|
||||
<!-- Break Line -->
|
||||
<div class="break">
|
||||
<span class="break-line break-line-left"></span>
|
||||
<i class="ion-icons ion-email"></i>
|
||||
<span class="break-line break-line-right"></span>
|
||||
</div>
|
||||
|
||||
<div class="section-title section-title-contact-us">Contact <span>Us</span></div>
|
||||
|
||||
<div class="row contact-us-wrapper">
|
||||
|
||||
<!-- Contact Form -->
|
||||
<div class="col-xs-10 col-sm-6 col-md-6 col-lg-6 contact-us">
|
||||
<form action="contact.php" id="contact-form" method="POST">
|
||||
<div class="row contact-us-elements">
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 textfield-col textfield-col-name">
|
||||
<label>Your name *</label>
|
||||
<input type="text" class="form-control" name="name" required>
|
||||
</div>
|
||||
<div class="col-md-6 textfield-col">
|
||||
<label>Your email address *</label>
|
||||
<input type="email" class="form-control" name="email" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row contact-us-elements">
|
||||
<div class="form-group">
|
||||
<div class="col-md-12 textfield-col">
|
||||
<label>Subject *</label>
|
||||
<input type="text" class="form-control" name="subject">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row contact-us-elements">
|
||||
<div class="form-group">
|
||||
<div class="col-md-12 textfield-col">
|
||||
<label>Message *</label>
|
||||
<textarea rows="10" class="form-control" name="message"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row contact-us-elements">
|
||||
<div class="col-md-12 contact-us-btn">
|
||||
<input type="submit" value="Send Message" class="btn btn-primary btn-lg">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="mail-response"> </div>
|
||||
</div>
|
||||
|
||||
<!-- Map -->
|
||||
<div class="col-xs-10 col-sm-6 col-md-6 col-lg-6" id="map"></div>
|
||||
|
||||
</div> <!-- end row -->
|
||||
|
||||
</div> <!-- end container -->
|
||||
</section> <!-- end container-fluid -->
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="container-fluid footer">
|
||||
|
||||
<div class="footer-content">
|
||||
<h1>KleenApp | We offer what you thrive to have</h1>
|
||||
<h2>Lorem ipsom dolor vitas amour ipsom dolor</h2>
|
||||
<!-- Social Medias -->
|
||||
<div class="share">
|
||||
<ul>
|
||||
<li><a href="#"><i class="ion-social-facebook"></i></a></li>
|
||||
<li><a href="#"><i class="ion-social-twitter"></i></a></li>
|
||||
<li><a href="#"><i class="ion-social-instagram"></i></a></li>
|
||||
<li><a href="#"><i class="ion-social-googleplus"></i></a></li>
|
||||
<li><a href="#"><i class="ion-social-linkedin"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="email">support@kleenapp.co</div>
|
||||
</div>
|
||||
|
||||
<div class="copyright container">
|
||||
<h5 class="copyright-text">© Copyright 2018 KleenApp</h5>
|
||||
<address>Atlanta, Georgia</address>
|
||||
</div>
|
||||
|
||||
</footer> <!-- end container-fluid -->
|
||||
|
||||
|
||||
<!-- JavaScript -->
|
||||
<script type="text/javascript" src="/hassets/js/plugins.min.js"></script>
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAZU8kOyrTwTvAAgw-sYOScPefOUGIOm8o&callback="></script>
|
||||
<script type="text/javascript" src="/hassets/js/map.js"></script>
|
||||
<script type="text/javascript" src="/hassets/js/main.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,124 @@
|
||||
<!-- Main sidebar -->
|
||||
<div class="sidebar sidebar-main">
|
||||
<div class="sidebar-content">
|
||||
|
||||
<!-- User menu -->
|
||||
<div class="sidebar-user">
|
||||
<div class="category-content">
|
||||
<div class="media">
|
||||
<div class="media-body">
|
||||
<span class="media-heading text-semibold"><?php echo $_SESSION['firstname']; ?></span>
|
||||
<div class="text-size-mini text-muted">
|
||||
<?php echo $_SESSION['loc'];?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="media-right media-middle">
|
||||
<ul class="icons-list">
|
||||
<li>
|
||||
<a href="#"><i class="icon-cog3"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /user menu -->
|
||||
|
||||
|
||||
<!-- Main navigation -->
|
||||
<div class="sidebar-category sidebar-category-visible">
|
||||
<div class="category-content no-padding">
|
||||
<ul class="navigation navigation-main navigation-accordion">
|
||||
|
||||
<!-- Main -->
|
||||
<li class="navigation-header"><span>Main</span> <i class="icon-menu" title="Main pages"></i></li>
|
||||
<li class="active"><a href="/dash"><i class="icon-home4"></i> <span>Dashboard</span></a></li>
|
||||
<li>
|
||||
<a href="/transp"><i class="icon-stack2"></i> <span>Transport</span></a>
|
||||
<ul>
|
||||
<li><a href="/transp/pending">Pending Transport</a></li>
|
||||
<li><a href="/transp/active">Active Transport</a></li>
|
||||
<li><a href="/transp/maps">Transport Maps</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<!-- /main -->
|
||||
|
||||
<!-- Forms -->
|
||||
<li class="navigation-header"><span>Members</span> <i class="icon-menu" title="Members"></i></li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-people"></i> <span>Members</span></a>
|
||||
<ul>
|
||||
<li><a href="/member/find">Find Member</a></li>
|
||||
<li><a href="/members/transport">Request Transport</a></li>
|
||||
<li><a href="/members/profile">Members Profile</a></li>
|
||||
<li><a href="/members/payments">Members Payment</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<!-- /forms -->
|
||||
|
||||
<!-- Appearance -->
|
||||
<li class="navigation-header"><span>Transporters</span> <i class="icon-menu" title="Transporters"></i></li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-people"></i> <span>Transporters</span></a>
|
||||
<ul>
|
||||
<li><a href="/transp/find">Find Transporter</a></li>
|
||||
<li><a href="/transporter/profile">Transporter Profile</a></li>
|
||||
<li><a href="/transporter/scheduled">Scheduled Transport</a></li>
|
||||
<!-- li><a href="/transporter/locprofile">Location Profile</a></li -->
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<!-- /appearance -->
|
||||
|
||||
<!-- Interpreters -->
|
||||
<li class="navigation-header"><span>Interpreters</span> <i class="icon-menu" title="Interpreters"></i></li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-people"></i> <span>Interpreters</span></a>
|
||||
<ul>
|
||||
<li><a href="interpret/find">Find Interpreter</a></li>
|
||||
<li><a href="interpret/activities">Scheduled Activities</a></li>
|
||||
<li><a href="interpret/location">Location Profile</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- /Interpreters -->
|
||||
|
||||
<!-- Data Reports -->
|
||||
<li class="navigation-header"><span>Reports</span> <i class="icon-menu" title="Reports"></i></li>
|
||||
<li>
|
||||
<a href="/bkoreport/"><i class="icon-graph"></i> <span>Reports</span></a>
|
||||
<ul>
|
||||
<li><a href="/bkoreport/members">Members</a></li>
|
||||
<li><a href="/bkoreport/transporters">Transporters</a></li>
|
||||
<li><a href="/bkoreport/intepreters">Interpreters</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<!-- /data Reports -->
|
||||
|
||||
<!-- Administration -->
|
||||
<li class="navigation-header"><span>Administration</span> <i class="icon-menu" title="Administrattion"></i></li>
|
||||
<li>
|
||||
<a href="/bkoadmin/"><i class="icon-puzzle4"></i> <span>Administration</span></a>
|
||||
<ul>
|
||||
<li><a href="/bkoadmin/users">Users</a></li>
|
||||
<li><a href="/bkoadmin/adduser">Add user</a></li>
|
||||
<li><a href="/bkoadmin/session">BKO Session</a></li>
|
||||
<li><a href="/bkoadmin/activity">Activity Log</a></li>
|
||||
<li><a href="/bkoadmin/permssion">Permission</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- /administration -->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /main navigation -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /main sidebar -->
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
</div>
|
||||
<!-- /page content -->
|
||||
|
||||
</div>
|
||||
<!-- /page container -->
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="navbar navbar-default navbar-fixed-bottom">
|
||||
<ul class="nav navbar-nav visible-xs-block">
|
||||
<li><a class="text-center collapsed" data-toggle="collapse" data-target="#footer"><i class="icon-circle-up2"></i></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="navbar-collapse collapse" id="footer">
|
||||
<div class="navbar-text">
|
||||
© 2017.Powered by <a href="/dash" class="navbar-link"><?= SITE_NAME ?></a>
|
||||
</div>
|
||||
|
||||
<div class="navbar-right">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="/dash">Home</a></li>
|
||||
<li><a href="/contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /footer -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function gtotSTransPage(nextpage) {
|
||||
document.location = "/transp/" + nextpage + "?transp_id=" + nextpage;
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,210 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= SITE_NAME ?>-<?= $_SESSION['agent_name'] ?></title>
|
||||
<META HTTP-EQUIV="REFRESH" CONTENT="1200;URL=/logout">
|
||||
<!-- Global stylesheets -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/bootstrap.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/core.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/components.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/colors.css" rel="stylesheet" type="text/css">
|
||||
<!-- /global stylesheets -->
|
||||
|
||||
<!-- Core JS files -->
|
||||
<script type="text/javascript" src="/assets/js/plugins/loaders/pace.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/core/libraries/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/core/libraries/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/loaders/blockui.min.js"></script>
|
||||
<!-- /core JS files -->
|
||||
|
||||
<!-- Theme JS files -->
|
||||
<script type="text/javascript" src="/assets/js/plugins/visualization/d3/d3.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/visualization/d3/d3_tooltip.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/forms/styling/switchery.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/forms/styling/uniform.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/forms/selects/bootstrap_multiselect.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/ui/moment/moment.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/pickers/daterangepicker.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/ui/fullcalendar/fullcalendar.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="/assets/js/core/app.js"></script>
|
||||
<!-- this script is broken!!! script type="text/javascript" src="/assets/js/pages/dashboard.js"></script -->
|
||||
|
||||
<script type="text/javascript" src="/assets/js/plugins/ui/ripple.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/simplePagination/jquery.simplePagination.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="/assets/js/plugins/simplePagination/simplePagination.css"/>
|
||||
<!-- /theme JS files -->
|
||||
<?
|
||||
echo ( isset($map['js']) ? $map['js'] : '');
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body class="navbar-bottom" style="background-color: aliceblue;">
|
||||
|
||||
<!-- Main navbar -->
|
||||
<div class="navbar navbar-inverse bg-medtrans">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand title" href="/dash"><b><?= $_SESSION['agent_name'] ?></b></a>
|
||||
|
||||
<ul class="nav navbar-nav visible-xs-block">
|
||||
<li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
|
||||
<li><a class="sidebar-mobile-main-toggle"><i class="icon-paragraph-justify3"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="navbar-collapse collapse" id="navbar-mobile">
|
||||
|
||||
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="dropdown dropdown-user">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span><?= $_SESSION['firstname'] ?></span>
|
||||
<i class="caret"></i>
|
||||
</a>
|
||||
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="/agent/profile"><i class="icon-user-plus"></i> My profile</a></li>
|
||||
<li><a href="/agent/mylog"><i class="icon-stack2"></i>Activity Log</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/logout"><i class="icon-switch2"></i> Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /main navbar -->
|
||||
|
||||
|
||||
<!-- Page header -->
|
||||
<div class="page-header">
|
||||
<div class="breadcrumb-line">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/dash"><i class="icon-home2 position-left"></i> Home</a></li>
|
||||
<li class="active">Dashboard</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="page-header-content">
|
||||
<div class="page-title">
|
||||
<h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold"><a href="/dash">Home</a></span> - <? echo isset($page_name) ? $page_name : 'Dashboard'; ?> </h4>
|
||||
</div>
|
||||
|
||||
<div class="heading-elements">
|
||||
|
||||
|
||||
|
||||
<div class="heading-btn-group">
|
||||
<button type="button" onclick="gtotSTransPage('pending');" class="btn btn-primary">Pending</button>
|
||||
<button type="button" onclick="gtotSTransPage('confirmed');" class="btn btn-info">Confirmed</button>
|
||||
<button type="button" onclick="gtotSTransPage('active');" class="btn btn-warning">Active</button>
|
||||
<button type="button" onclick="gtotSTransPage('completed');" class="btn btn-info">Completed</button>
|
||||
|
||||
|
||||
<a href="/paymnt/invoice" class="btn btn-link btn-float text-size-small has-text"><i class="icon-calculator text-indigo-400"></i><span>Invoices</span></a>
|
||||
<a href="/agent/calendar" class="btn btn-link btn-float text-size-small has-text"><i class="icon-calendar5 text-indigo-400"></i><span>Calendar</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /page header -->
|
||||
|
||||
|
||||
<!-- Page container -->
|
||||
<div class="page-container">
|
||||
|
||||
<!-- Page content -->
|
||||
<div class="page-content">
|
||||
|
||||
<!-- Main sidebar -->
|
||||
<div class="sidebar sidebar-main sidebar-default">
|
||||
<div class="sidebar-content">
|
||||
|
||||
<!-- Main navigation -->
|
||||
<div class="sidebar-category sidebar-category-visible">
|
||||
<div class="sidebar-user-material bg-medtrans">
|
||||
<div class="category-content">
|
||||
<div class="sidebar-user-material-content">
|
||||
<a href="#"><img src="assets/images/placeholder.jpg" class="img-circle img-responsive" alt=""></a>
|
||||
<h6><?= $_SESSION['firstname'] ?> <?= $_SESSION['lastname'] ?></h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="category-content no-padding">
|
||||
<ul class="navigation navigation-main navigation-accordion">
|
||||
|
||||
<!-- Main -->
|
||||
|
||||
<li class="active"><a href="/dash"><i class="icon-home4"></i> <span>Dashboard</span></a></li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-stack2"></i> <span>Transport Request</span></a>
|
||||
<ul>
|
||||
<li><a href="/transp/pending">Pending</a></li>
|
||||
<li><a href="/transp/confirmed">Confirmed</a></li>
|
||||
<li class="navigation-divider"></li>
|
||||
<li><a href="/transp/active">Active</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-copy"></i> <span>Transport</span></a>
|
||||
<ul>
|
||||
<li><a href="/transp/mylocation" id="layout1">My Locations</a></li>
|
||||
<li><a href="/transp/mydevices" id="layout2">Cars & Devices</a></li>
|
||||
<li><a href="/transp/drivers" id="layout32">Drivers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="#"><i class="icon-copy"></i> <span>Translators</span></a>
|
||||
<ul>
|
||||
<li><a href="/transp/translators" id="layout22">Translator List</a></li>
|
||||
<li><a href="/transp/language" id="layout25">Language List</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<!-- /main -->
|
||||
|
||||
|
||||
<li>
|
||||
<a href="#"><i class="icon-people"></i> <span>Invoice & Payments</span></a>
|
||||
<ul>
|
||||
<li><a href="/paymnt/invoice">Pending Invoice</a></li>
|
||||
<li><a href="/paymnt/invoice">Paid invoice</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-user-plus"></i> <span>Reports</span></a>
|
||||
<ul>
|
||||
<li><a href="#">Pending Transport</a></li>
|
||||
<li><a href="#">Completed Transport</a></li>
|
||||
<li><a href="#">Pending Invoice</a></li>
|
||||
<li><a href="#">Paid Invoice</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/logout"><i class="icon-switch2"></i> <span>Logout</span></a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /main navigation -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /main sidebar -->
|
||||
@@ -0,0 +1,157 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?php echo SITE_NAME; ?> Agent</title>
|
||||
|
||||
<!-- Global stylesheets -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/bootstrap.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/core.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/components.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/colors.css" rel="stylesheet" type="text/css">
|
||||
<!-- /global stylesheets -->
|
||||
|
||||
<!-- Core JS files -->
|
||||
<script type="text/javascript" src="/assets/js/plugins/loaders/pace.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/core/libraries/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/core/libraries/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/loaders/blockui.min.js"></script>
|
||||
<!-- /core JS files -->
|
||||
|
||||
|
||||
<!-- Theme JS files -->
|
||||
<script type="text/javascript" src="/assets/js/core/app.js"></script>
|
||||
<!-- /theme JS files -->
|
||||
|
||||
</head>
|
||||
|
||||
<body class="login-container" style="background-color: #ffffff;">
|
||||
|
||||
|
||||
<!-- Page container -->
|
||||
<div class="page-container">
|
||||
|
||||
<!-- Page content -->
|
||||
<div class="page-content">
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
|
||||
<!-- Content area -->
|
||||
<div class="content">
|
||||
|
||||
<!-- Simple login form -->
|
||||
<form action="/login" method="POST">
|
||||
<div class="panel panel-body login-form">
|
||||
<div class="thumb">
|
||||
<a href="/"><img src="/assets/images/logo.png" alt="<?php echo SITE_NAME; ?>"></a>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<h5 class="content-group"><?php echo SITE_NAME; ?> Partner Login</h5>
|
||||
</div>
|
||||
|
||||
<div class="form-group has-feedback has-feedback-left">
|
||||
<input type="text" class="form-control" placeholder="Username" value="<?=$username?>" name="username">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-user text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group has-feedback has-feedback-left">
|
||||
<input type="password" class="form-control" placeholder="Password" value="<?=$password?>" name="password">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-lock2 text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary btn-block">Sign in <i class="icon-circle-right2 position-right"></i></button>
|
||||
</div>
|
||||
<?php echo $action_message; ?>
|
||||
</div>
|
||||
</form>
|
||||
<!-- /simple login form -->
|
||||
|
||||
|
||||
<!--contact-us start-->
|
||||
|
||||
<!-- div id="bottom" class="padding-two">
|
||||
<div class="container ">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 wow fadeInRight ">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row padding-top-40">
|
||||
|
||||
<div class="col-xs-3">
|
||||
<img src="/assets/images/medtrans_boxlogo.jpg" alt="Contact us" style="width:100%; height: auto;">
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3">
|
||||
<div class="bottom-section-right">
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item" style="border: none"><a href="/" class="text-info">Home</a></li>
|
||||
<li class="list-group-item" style="border: none" class="text-info"><a href="/#contact">Email Support</a></li>
|
||||
<li class="list-group-item" style="border: none">Phone : <? echo SITE_PHONE; ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3">
|
||||
<div class="bottom-section-right">
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item" style="border: none"><a href="#" class="text-info">Frequently Asked Questions</a></li>
|
||||
<li class="list-group-item" style="border: none" class="text-info"><a href="/#contact">Email Support</a></li>
|
||||
<li class="list-group-item" style="border: none">Phone : <? echo SITE_PHONE; ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<div class="bottom-section-right">
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item list-group-item-success" style="border: none"><a href="/signup">Sign up</a></li>
|
||||
<li class="list-group-item list-group-item-info" style="border: none"><a href="/login">Log in</a></li>
|
||||
<li class="list-group-item" style="border: none"><a href="#" class="text-info">Terms and Conditions</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="footer text-muted text-center">
|
||||
© 2017. <a href="#"><?php echo SITE_NAME; ?></a>
|
||||
</div>
|
||||
<!-- /footer -->
|
||||
|
||||
</div>
|
||||
<!-- /content area -->
|
||||
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
</div>
|
||||
<!-- /page content -->
|
||||
|
||||
</div>
|
||||
<!-- /page container -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,241 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?php echo SITE_NAME; ?> Agent</title>
|
||||
|
||||
<!-- Global stylesheets -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/bootstrap.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/core.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/components.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/colors.css" rel="stylesheet" type="text/css">
|
||||
<!-- /global stylesheets -->
|
||||
|
||||
<!-- Core JS files -->
|
||||
<script type="text/javascript" src="/assets/js/plugins/loaders/pace.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/core/libraries/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/core/libraries/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/plugins/loaders/blockui.min.js"></script>
|
||||
<!-- /core JS files -->
|
||||
|
||||
|
||||
<!-- Theme JS files -->
|
||||
<script type="text/javascript" src="/assets/js/core/app.js"></script>
|
||||
<!-- /theme JS files -->
|
||||
|
||||
</head>
|
||||
|
||||
<body class="login-container" style="background-color: #ffffff;">
|
||||
|
||||
|
||||
|
||||
<!-- Page container -->
|
||||
<div class="page-container">
|
||||
|
||||
<!-- Page content -->
|
||||
<div class="page-content">
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="panel panel-body login-form" >
|
||||
<div class="thumb">
|
||||
<a href="/"><img src="/assets/images/logo.png" alt="<?php echo SITE_NAME; ?>"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Registration form -->
|
||||
<?php echo form_open('signup'); ?>
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-lg-offset-3">
|
||||
<div class="panel registration-form">
|
||||
<div class="panel-body">
|
||||
<div class="text-center">
|
||||
<h5 class="content-group-lg">Create account <small class="display-block">All fields are required</small></h5>
|
||||
</div>
|
||||
<?php echo $action_message; ?>
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('agent_name') ?>
|
||||
<input type="text" class="form-control" placeholder="Location or business name" name="agent_name" value="<?=set_value('agent_name')?>">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-user-plus text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('firstname') ?>
|
||||
<input type="text" class="form-control" placeholder="Contact firstname" name="firstname" value="<?=set_value('firstname')?>">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-user-check text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('lastname') ?>
|
||||
<input type="text" class="form-control" placeholder="Contact lastname" name="lastname" value="<?=set_value('lastname')?>">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-user-check text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('username') ?>
|
||||
<input type="email" class="form-control" placeholder="Your Username - Email" name="username" value="<?=set_value('username')?>">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-user-lock text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('password') ?>
|
||||
<input type="password" class="form-control" placeholder="Create password" name="password">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-user-lock text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('street') ?>
|
||||
<input type="text" class="form-control" placeholder="Business Address" name="street" value="<?=set_value('street')?>">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-user-plus text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('zipcode') ?>
|
||||
<input type="text" class="form-control" placeholder="Zip Code" name="zipcode" value="<?=set_value('zipcode')?>">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-user-plus text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('city') ?>
|
||||
<input type="text" class="form-control" placeholder="City" value="<?= set_value('city') ?>" name="city">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-mention text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('state') ?>
|
||||
<select name="state" class="form-control" >
|
||||
<option value="">Select State</option>
|
||||
<option value="GA"<?=$state=='GA'?' selected':''?>>Georgia</option>
|
||||
</select>
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-mention text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
<?= form_error('phone') ?>
|
||||
<input type="text" class="form-control" placeholder="Phone" value="<?= set_value('phone') ?>" name="phone">
|
||||
<div class="form-control-feedback">
|
||||
<i class="icon-mention text-muted"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<?= form_error('tos') ?>
|
||||
<input type="checkbox" name="tos" value="1" class="styled"<?=(isset($tos) && $tos==1)?' checked':''?>>
|
||||
Accept <a href="#">terms of service</a>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-link"><i class="icon-arrow-left13 position-left"></i> Back to login form</button>
|
||||
<button type="submit" class="btn bg-teal-400 btn-labeled btn-labeled-right ml-10"><b><i class="icon-plus3"></i></b> Create account</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- /registration form -->
|
||||
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
|
||||
</div>
|
||||
<!-- /page content -->
|
||||
|
||||
</div>
|
||||
<!-- /page container -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="navbar navbar-default navbar-fixed-bottom footer">
|
||||
<ul class="nav navbar-nav visible-xs-block">
|
||||
<li><a class="text-center collapsed" data-toggle="collapse" data-target="#footer"><i class="icon-circle-up2"></i></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="navbar-collapse collapse" id="footer">
|
||||
<div class="navbar-text just-white" >
|
||||
© 2018. <a href="#"><?php echo SITE_NAME; ?></a>
|
||||
</div>
|
||||
|
||||
<div class="navbar-right">
|
||||
<ul class="nav navbar-nav just-white">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="#">Terms</a></li>
|
||||
<li><a href="#">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /footer -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user