first commit - report data
This commit is contained in:
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@@ -0,0 +1,15 @@
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
|
||||
# Matches multiple files with brace expansion notation
|
||||
# Set default charset
|
||||
[*]
|
||||
charset = utf-8
|
||||
|
||||
# Tab indentation (no size specified)
|
||||
indent_style = tab
|
||||
32
.gitignore
vendored
Normal file
32
.gitignore
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
.DS_Store
|
||||
|
||||
application/cache/*
|
||||
!application/cache/index.html
|
||||
|
||||
application/logs/*
|
||||
!application/logs/index.html
|
||||
|
||||
!application/*/.htaccess
|
||||
|
||||
composer.lock
|
||||
tests/mocks/database/ci_test.sqlite
|
||||
|
||||
user_guide_src/build/*
|
||||
user_guide_src/cilexer/build/*
|
||||
user_guide_src/cilexer/dist/*
|
||||
user_guide_src/cilexer/pycilexer.egg-info/*
|
||||
/vendor/
|
||||
|
||||
# IDE Files
|
||||
#-------------------------
|
||||
/nbproject/
|
||||
.idea/*
|
||||
|
||||
## Sublime Text cache files
|
||||
*.tmlanguage.cache
|
||||
*.tmPreferences.cache
|
||||
*.stTheme.cache
|
||||
*.sublime-workspace
|
||||
*.sublime-project
|
||||
/tests/tests/
|
||||
/tests/results/
|
||||
6
application/.htaccess
Normal file
6
application/.htaccess
Normal file
@@ -0,0 +1,6 @@
|
||||
<IfModule authz_core_module>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
||||
11
application/cache/index.html
vendored
Normal file
11
application/cache/index.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
135
application/config/autoload.php
Normal file
135
application/config/autoload.php
Normal file
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| AUTO-LOADER
|
||||
| -------------------------------------------------------------------
|
||||
| This file specifies which systems should be loaded by default.
|
||||
|
|
||||
| In order to keep the framework as light-weight as possible only the
|
||||
| absolute minimal resources are loaded by default. For example,
|
||||
| the database is not connected to automatically since no assumption
|
||||
| is made regarding whether you intend to use it. This file lets
|
||||
| you globally define which systems you would like loaded with every
|
||||
| request.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| Instructions
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| These are the things you can load automatically:
|
||||
|
|
||||
| 1. Packages
|
||||
| 2. Libraries
|
||||
| 3. Drivers
|
||||
| 4. Helper files
|
||||
| 5. Custom config files
|
||||
| 6. Language files
|
||||
| 7. Models
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Packages
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
||||
|
|
||||
*/
|
||||
$autoload['packages'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Libraries
|
||||
| -------------------------------------------------------------------
|
||||
| These are the classes located in system/libraries/ or your
|
||||
| application/libraries/ directory, with the addition of the
|
||||
| 'database' library, which is somewhat of a special case.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['libraries'] = array('database', 'email', 'session');
|
||||
|
|
||||
| You can also supply an alternative library name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
$autoload['libraries'] = array('form_validation','database','table','session');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Drivers
|
||||
| -------------------------------------------------------------------
|
||||
| These classes are located in system/libraries/ or in your
|
||||
| application/libraries/ directory, but are also placed inside their
|
||||
| own subdirectory and they extend the CI_Driver_Library class. They
|
||||
| offer multiple interchangeable driver options.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache');
|
||||
|
|
||||
| You can also supply an alternative property name to be assigned in
|
||||
| the controller:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache' => 'cch');
|
||||
|
|
||||
*/
|
||||
$autoload['drivers'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Helper Files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['helper'] = array('url', 'file');
|
||||
*/
|
||||
$autoload['helper'] = array('url','form','date');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| 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();
|
||||
534
application/config/config.php
Normal file
534
application/config/config.php
Normal file
@@ -0,0 +1,534 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try to guess the protocol and
|
||||
| path to your installation, but due to security concerns the hostname will
|
||||
| be set to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'http://10.10.150.135/saturssa';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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';
|
||||
$config['uri_protocol'] = 'AUTO';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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/userguide3/general/urls.html
|
||||
|
|
||||
| Note: This option is ignored for CLI requests.
|
||||
*/
|
||||
$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/userguide3/general/core_classes.html
|
||||
| https://codeigniter.com/userguide3/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/userguide3/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_samesite'
|
||||
|
|
||||
| Session cookie SameSite attribute: Lax (default), Strict or None
|
||||
|
|
||||
| '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_samesite'] = 'Lax';
|
||||
$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)
|
||||
| 'cookie_samesite' = Cookie's samesite attribute (Lax, Strict or None)
|
||||
|
|
||||
| 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;
|
||||
$config['cookie_samesite'] = 'Lax';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
85
application/config/constants.php
Normal file
85
application/config/constants.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Display Debug backtrace
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If set to TRUE, a backtrace will be displayed along with php errors. If
|
||||
| error_reporting is disabled, the backtrace will not display, regardless
|
||||
| of this setting
|
||||
|
|
||||
*/
|
||||
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File and Directory Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These prefs are used when checking and setting modes when working
|
||||
| with the file system. The defaults are fine on servers with proper
|
||||
| security, but you may wish (or even need) to change the values in
|
||||
| certain environments (Apache running a separate process for each
|
||||
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
|
||||
| always be used to set the mode correctly.
|
||||
|
|
||||
*/
|
||||
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
|
||||
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
|
||||
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
|
||||
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File Stream Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These modes are used when working with fopen()/popen()
|
||||
|
|
||||
*/
|
||||
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
|
||||
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
|
||||
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
|
||||
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
|
||||
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
|
||||
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
|
||||
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
|
||||
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exit Status Codes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Used to indicate the conditions under which the script is exit()ing.
|
||||
| While there is no universal standard for error codes, there are some
|
||||
| broad conventions. Three such conventions are mentioned below, for
|
||||
| those who wish to make use of them. The CodeIgniter defaults were
|
||||
| chosen for the least overlap with these conventions, while still
|
||||
| leaving room for others to be defined in future versions and user
|
||||
| applications.
|
||||
|
|
||||
| The three main conventions used for determining exit status codes
|
||||
| are as follows:
|
||||
|
|
||||
| Standard C/C++ Library (stdlibc):
|
||||
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
|
||||
| (This link also contains other GNU-specific conventions)
|
||||
| BSD sysexits.h:
|
||||
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
|
||||
| Bash scripting:
|
||||
| http://tldp.org/LDP/abs/html/exitcodes.html
|
||||
|
|
||||
*/
|
||||
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
|
||||
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
|
||||
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
|
||||
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
||||
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
|
||||
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
|
||||
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||
176
application/config/database.php
Normal file
176
application/config/database.php
Normal file
@@ -0,0 +1,176 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'database' => 'db_saturssa',
|
||||
'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
|
||||
);
|
||||
|
||||
$db['saturssa'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '10.10.123.165',
|
||||
'username' => 'stim',
|
||||
'password' => 'stim*RS54',
|
||||
'database' => 'satu_db',
|
||||
'dbdriver' => 'postgre',
|
||||
'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,
|
||||
'port' => 5001
|
||||
);
|
||||
|
||||
|
||||
$db['datasim'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '10.10.123.163',
|
||||
'username' => 'simrs',
|
||||
'password' => 'simrs.rssa',
|
||||
'database' => 'simrs',
|
||||
'dbdriver' => 'postgre',
|
||||
'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
|
||||
);
|
||||
|
||||
// $db['default']['hostname'] = 'localhost';
|
||||
// $db['default']['username'] = 'root';
|
||||
// $db['default']['password'] = '';
|
||||
// $db['default']['database'] = 'db_saturssa';
|
||||
// $db['default']['dbdriver'] = 'mysqli';
|
||||
// $db['default']['dbprefix'] = '';
|
||||
// $db['default']['pconnect'] = TRUE;
|
||||
// $db['default']['db_debug'] = TRUE;
|
||||
// $db['default']['cache_on'] = FALSE;
|
||||
// $db['default']['cachedir'] = '';
|
||||
// $db['default']['char_set'] = 'utf8';
|
||||
// $db['default']['dbcollat'] = 'utf8_general_ci';
|
||||
// $db['default']['swap_pre'] = '';
|
||||
// $db['default']['autoinit'] = TRUE;
|
||||
// $db['default']['stricton'] = FALSE;
|
||||
|
||||
// $db2['default']['hostname'] = '10.10.123.165';
|
||||
// $db2['default']['username'] = 'stim';
|
||||
// $db2['default']['password'] = 'stim*RS54';
|
||||
// $db2['default']['database'] = 'satu_db';
|
||||
// $db2['default']['dbdriver'] = 'postgre';
|
||||
// $db2['default']['dbprefix'] = '';
|
||||
// $db2['default']['pconnect'] = TRUE;
|
||||
// $db2['default']['db_debug'] = TRUE;
|
||||
// $db2['default']['cache_on'] = FALSE;
|
||||
// $db2['default']['cachedir'] = '';
|
||||
// $db2['default']['char_set'] = 'utf8';
|
||||
// $db2['default']['dbcollat'] = 'utf8_general_ci';
|
||||
// $db2['default']['swap_pre'] = '';
|
||||
// $db2['default']['autoinit'] = TRUE;
|
||||
// $db2['default']['stricton'] = FALSE;
|
||||
|
||||
24
application/config/doctypes.php
Normal file
24
application/config/doctypes.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$_doctypes = array(
|
||||
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
|
||||
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
|
||||
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
||||
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
|
||||
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
|
||||
'html5' => '<!DOCTYPE html>',
|
||||
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
|
||||
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
|
||||
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
|
||||
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
|
||||
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
|
||||
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
|
||||
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
|
||||
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
|
||||
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
|
||||
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
|
||||
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
|
||||
);
|
||||
114
application/config/foreign_chars.php
Normal file
114
application/config/foreign_chars.php
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Foreign Characters
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of foreign characters for transliteration
|
||||
| conversion used by the Text helper
|
||||
|
|
||||
*/
|
||||
$foreign_characters = array(
|
||||
'/ä|æ|ǽ/' => 'ae',
|
||||
'/ö|œ/' => 'oe',
|
||||
'/ü/' => 'ue',
|
||||
'/Ä/' => 'Ae',
|
||||
'/Ü/' => 'Ue',
|
||||
'/Ö/' => 'Oe',
|
||||
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
|
||||
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
|
||||
'/Б/' => 'B',
|
||||
'/б/' => 'b',
|
||||
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
|
||||
'/ç|ć|ĉ|ċ|č/' => 'c',
|
||||
'/Д|Δ/' => 'D',
|
||||
'/д|δ/' => 'd',
|
||||
'/Ð|Ď|Đ/' => 'Dj',
|
||||
'/ð|ď|đ/' => 'dj',
|
||||
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
|
||||
'/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
|
||||
'/Ф/' => 'F',
|
||||
'/ф/' => 'f',
|
||||
'/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
|
||||
'/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
|
||||
'/Ĥ|Ħ/' => 'H',
|
||||
'/ĥ|ħ/' => 'h',
|
||||
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
|
||||
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
|
||||
'/Ĵ/' => 'J',
|
||||
'/ĵ/' => 'j',
|
||||
'/Θ/' => 'TH',
|
||||
'/θ/' => 'th',
|
||||
'/Ķ|Κ|К/' => 'K',
|
||||
'/ķ|κ|к/' => 'k',
|
||||
'/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
|
||||
'/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
|
||||
'/М/' => 'M',
|
||||
'/м/' => 'm',
|
||||
'/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
|
||||
'/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
|
||||
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
|
||||
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
|
||||
'/П/' => 'P',
|
||||
'/п/' => 'p',
|
||||
'/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
|
||||
'/ŕ|ŗ|ř|ρ|р/' => 'r',
|
||||
'/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
|
||||
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
|
||||
'/Ț|Ţ|Ť|Ŧ|Τ|Т/' => 'T',
|
||||
'/ț|ţ|ť|ŧ|τ|т/' => 't',
|
||||
'/Þ|þ/' => 'th',
|
||||
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
|
||||
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
|
||||
'/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
|
||||
'/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
|
||||
'/В/' => 'V',
|
||||
'/в/' => 'v',
|
||||
'/Ŵ/' => 'W',
|
||||
'/ŵ/' => 'w',
|
||||
'/Φ/' => 'F',
|
||||
'/φ/' => 'f',
|
||||
'/Χ/' => 'CH',
|
||||
'/χ/' => 'ch',
|
||||
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
|
||||
'/ź|ż|ž|ζ|з/' => 'z',
|
||||
'/Æ|Ǽ/' => 'AE',
|
||||
'/ß/' => 'ss',
|
||||
'/IJ/' => 'IJ',
|
||||
'/ij/' => 'ij',
|
||||
'/Œ/' => 'OE',
|
||||
'/ƒ/' => 'f',
|
||||
'/Ξ/' => 'KS',
|
||||
'/ξ/' => 'ks',
|
||||
'/Π/' => 'P',
|
||||
'/π/' => 'p',
|
||||
'/Β/' => 'V',
|
||||
'/β/' => 'v',
|
||||
'/Μ/' => 'M',
|
||||
'/μ/' => 'm',
|
||||
'/Ψ/' => 'PS',
|
||||
'/ψ/' => 'ps',
|
||||
'/Ё/' => 'Yo',
|
||||
'/ё/' => 'yo',
|
||||
'/Є/' => 'Ye',
|
||||
'/є/' => 'ye',
|
||||
'/Ї/' => 'Yi',
|
||||
'/Ж/' => 'Zh',
|
||||
'/ж/' => 'zh',
|
||||
'/Х/' => 'Kh',
|
||||
'/х/' => 'kh',
|
||||
'/Ц/' => 'Ts',
|
||||
'/ц/' => 'ts',
|
||||
'/Ч/' => 'Ch',
|
||||
'/ч/' => 'ch',
|
||||
'/Ш/' => 'Sh',
|
||||
'/ш/' => 'sh',
|
||||
'/Щ/' => 'Shch',
|
||||
'/щ/' => 'shch',
|
||||
'/Ъ|ъ|Ь|ь/' => '',
|
||||
'/Ю/' => 'Yu',
|
||||
'/ю/' => 'yu',
|
||||
'/Я/' => 'Ya',
|
||||
'/я/' => 'ya'
|
||||
);
|
||||
13
application/config/hooks.php
Normal file
13
application/config/hooks.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Hooks
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you define "hooks" to extend CI without hacking the core
|
||||
| files. Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/userguide3/general/hooks.html
|
||||
|
|
||||
*/
|
||||
11
application/config/index.html
Normal file
11
application/config/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
19
application/config/memcached.php
Normal file
19
application/config/memcached.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Memcached settings
|
||||
| -------------------------------------------------------------------------
|
||||
| Your Memcached servers can be specified below.
|
||||
|
|
||||
| See: https://codeigniter.com/userguide3/libraries/caching.html#memcached
|
||||
|
|
||||
*/
|
||||
$config = array(
|
||||
'default' => array(
|
||||
'hostname' => '127.0.0.1',
|
||||
'port' => '11211',
|
||||
'weight' => '1',
|
||||
),
|
||||
);
|
||||
84
application/config/migration.php
Normal file
84
application/config/migration.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable Migrations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migrations are disabled by default for security reasons.
|
||||
| You should enable migrations whenever you intend to do a schema migration
|
||||
| and disable it back when you're done.
|
||||
|
|
||||
*/
|
||||
$config['migration_enabled'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migration Type
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migration file names may be based on a sequential identifier or on
|
||||
| a timestamp. Options are:
|
||||
|
|
||||
| 'sequential' = Sequential migration naming (001_add_blog.php)
|
||||
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
|
||||
| Use timestamp format YYYYMMDDHHIISS.
|
||||
|
|
||||
| Note: If this configuration value is missing the Migration library
|
||||
| defaults to 'sequential' for backward compatibility with CI2.
|
||||
|
|
||||
*/
|
||||
$config['migration_type'] = 'timestamp';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the name of the table that will store the current migrations state.
|
||||
| When migrations runs it will store in a database table which migration
|
||||
| level the system is at. It then compares the migration level in this
|
||||
| table to the $config['migration_version'] if they are not the same it
|
||||
| will migrate up. This must be set.
|
||||
|
|
||||
*/
|
||||
$config['migration_table'] = 'migrations';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto Migrate To Latest
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If this is set to TRUE when you load the migrations class and have
|
||||
| $config['migration_enabled'] set to TRUE the system will auto migrate
|
||||
| to your latest migration (whatever $config['migration_version'] is
|
||||
| set to). This way you do not have to call migrations anywhere else
|
||||
| in your code to have the latest migration.
|
||||
|
|
||||
*/
|
||||
$config['migration_auto_latest'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations version
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is used to set migration version that the file system should be on.
|
||||
| If you run $this->migration->current() this is the version that schema will
|
||||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Path to your migrations folder.
|
||||
| Typically, it will be within your application path.
|
||||
| Also, writing permission is required within the migrations path.
|
||||
|
|
||||
*/
|
||||
$config['migration_path'] = APPPATH.'migrations/';
|
||||
186
application/config/mimes.php
Normal file
186
application/config/mimes.php
Normal file
@@ -0,0 +1,186 @@
|
||||
<?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',
|
||||
'heic' => 'image/heic',
|
||||
'heif' => 'image/heif',
|
||||
'css' => array('text/css', 'text/plain'),
|
||||
'html' => array('text/html', 'text/plain'),
|
||||
'htm' => array('text/html', 'text/plain'),
|
||||
'shtml' => array('text/html', 'text/plain'),
|
||||
'txt' => 'text/plain',
|
||||
'text' => 'text/plain',
|
||||
'log' => array('text/plain', 'text/x-log'),
|
||||
'rtx' => 'text/richtext',
|
||||
'rtf' => 'text/rtf',
|
||||
'xml' => array('application/xml', 'text/xml', 'text/plain'),
|
||||
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
|
||||
'mpeg' => 'video/mpeg',
|
||||
'mpg' => 'video/mpeg',
|
||||
'mpe' => 'video/mpeg',
|
||||
'qt' => 'video/quicktime',
|
||||
'mov' => 'video/quicktime',
|
||||
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
|
||||
'movie' => 'video/x-sgi-movie',
|
||||
'doc' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
|
||||
'dot' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
|
||||
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
|
||||
'word' => array('application/msword', 'application/octet-stream'),
|
||||
'xl' => 'application/excel',
|
||||
'eml' => 'message/rfc822',
|
||||
'json' => array('application/json', 'text/json'),
|
||||
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
|
||||
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
|
||||
'p12' => 'application/x-pkcs12',
|
||||
'p7a' => 'application/x-pkcs7-signature',
|
||||
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7r' => 'application/x-pkcs7-certreqresp',
|
||||
'p7s' => 'application/pkcs7-signature',
|
||||
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
|
||||
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
|
||||
'der' => 'application/x-x509-ca-cert',
|
||||
'kdb' => 'application/octet-stream',
|
||||
'pgp' => 'application/pgp',
|
||||
'gpg' => 'application/gpg-keys',
|
||||
'sst' => 'application/octet-stream',
|
||||
'csr' => 'application/octet-stream',
|
||||
'rsa' => 'application/x-pkcs7',
|
||||
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
|
||||
'3g2' => 'video/3gpp2',
|
||||
'3gp' => array('video/3gp', 'video/3gpp'),
|
||||
'mp4' => 'video/mp4',
|
||||
'm4a' => 'audio/x-m4a',
|
||||
'f4v' => array('video/mp4', 'video/x-f4v'),
|
||||
'flv' => 'video/x-flv',
|
||||
'webm' => 'video/webm',
|
||||
'aac' => array('audio/x-aac', 'audio/aac'),
|
||||
'm4u' => 'application/vnd.mpegurl',
|
||||
'm3u' => 'text/plain',
|
||||
'xspf' => 'application/xspf+xml',
|
||||
'vlc' => 'application/videolan',
|
||||
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
|
||||
'au' => 'audio/x-au',
|
||||
'ac3' => 'audio/ac3',
|
||||
'flac' => 'audio/x-flac',
|
||||
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'),
|
||||
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
|
||||
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
|
||||
'ics' => 'text/calendar',
|
||||
'ical' => 'text/calendar',
|
||||
'zsh' => 'text/x-scriptzsh',
|
||||
'7z' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'7zip' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
|
||||
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
|
||||
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
|
||||
'svg' => array('image/svg+xml', 'image/svg', 'application/xml', 'text/xml'),
|
||||
'vcf' => 'text/x-vcard',
|
||||
'srt' => array('text/srt', 'text/plain'),
|
||||
'vtt' => array('text/vtt', 'text/plain'),
|
||||
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'),
|
||||
'odc' => 'application/vnd.oasis.opendocument.chart',
|
||||
'otc' => 'application/vnd.oasis.opendocument.chart-template',
|
||||
'odf' => 'application/vnd.oasis.opendocument.formula',
|
||||
'otf' => 'application/vnd.oasis.opendocument.formula-template',
|
||||
'odg' => 'application/vnd.oasis.opendocument.graphics',
|
||||
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
|
||||
'odi' => 'application/vnd.oasis.opendocument.image',
|
||||
'oti' => 'application/vnd.oasis.opendocument.image-template',
|
||||
'odp' => 'application/vnd.oasis.opendocument.presentation',
|
||||
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
|
||||
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
||||
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
|
||||
'odt' => 'application/vnd.oasis.opendocument.text',
|
||||
'odm' => 'application/vnd.oasis.opendocument.text-master',
|
||||
'ott' => 'application/vnd.oasis.opendocument.text-template',
|
||||
'oth' => 'application/vnd.oasis.opendocument.text-web'
|
||||
);
|
||||
14
application/config/profiler.php
Normal file
14
application/config/profiler.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Profiler Sections
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you determine whether or not various sections of Profiler
|
||||
| data are displayed when the Profiler is enabled.
|
||||
| Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/userguide3/general/profiling.html
|
||||
|
|
||||
*/
|
||||
54
application/config/routes.php
Normal file
54
application/config/routes.php
Normal file
@@ -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/userguide3/general/routing.html
|
||||
|
|
||||
| -------------------------------------------------------------------------
|
||||
| RESERVED ROUTES
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
||||
| There are three reserved routes:
|
||||
|
|
||||
| $route['default_controller'] = 'welcome';
|
||||
|
|
||||
| This route indicates which controller class should be loaded if the
|
||||
| URI contains no data. In the above example, the "welcome" class
|
||||
| would be loaded.
|
||||
|
|
||||
| $route['404_override'] = 'errors/page_missing';
|
||||
|
|
||||
| This route will tell the Router which controller/method to use if those
|
||||
| provided in the URL cannot be matched to a valid route.
|
||||
|
|
||||
| $route['translate_uri_dashes'] = FALSE;
|
||||
|
|
||||
| This is not exactly a route, but allows you to automatically route
|
||||
| controller and method names that contain dashes. '-' isn't a valid
|
||||
| class or method name character, so it requires translation.
|
||||
| When you set this option to TRUE, it will replace ALL dashes in the
|
||||
| controller and method URI segments.
|
||||
|
|
||||
| Examples: my-controller/index -> my_controller/index
|
||||
| my-controller/my-method -> my_controller/my_method
|
||||
*/
|
||||
$route['default_controller'] = 'welcome';
|
||||
$route['404_override'] = '';
|
||||
$route['translate_uri_dashes'] = FALSE;
|
||||
64
application/config/smileys.php
Normal file
64
application/config/smileys.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| SMILEYS
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of smileys for use with the emoticon helper.
|
||||
| Individual images can be used to replace multiple smileys. For example:
|
||||
| :-) and :) use the same image replacement.
|
||||
|
|
||||
| Please see user guide for more info:
|
||||
| https://codeigniter.com/userguide3/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')
|
||||
|
||||
);
|
||||
222
application/config/user_agents.php
Normal file
222
application/config/user_agents.php
Normal file
@@ -0,0 +1,222 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| USER AGENT TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains four arrays of user agent data. It is used by the
|
||||
| User Agent Class to help identify browser, platform, robot, and
|
||||
| mobile device data. The array keys are used to identify the device
|
||||
| and the array values are used to set the actual name of the item.
|
||||
*/
|
||||
$platforms = array(
|
||||
'windows nt 10.0' => 'Windows 10',
|
||||
'windows nt 6.3' => 'Windows 8.1',
|
||||
'windows nt 6.2' => 'Windows 8',
|
||||
'windows nt 6.1' => 'Windows 7',
|
||||
'windows nt 6.0' => 'Windows Vista',
|
||||
'windows nt 5.2' => 'Windows 2003',
|
||||
'windows nt 5.1' => 'Windows XP',
|
||||
'windows nt 5.0' => 'Windows 2000',
|
||||
'windows nt 4.0' => 'Windows NT 4.0',
|
||||
'winnt4.0' => 'Windows NT 4.0',
|
||||
'winnt 4.0' => 'Windows NT',
|
||||
'winnt' => 'Windows NT',
|
||||
'windows 98' => 'Windows 98',
|
||||
'win98' => 'Windows 98',
|
||||
'windows 95' => 'Windows 95',
|
||||
'win95' => 'Windows 95',
|
||||
'windows phone' => 'Windows Phone',
|
||||
'windows' => 'Unknown Windows OS',
|
||||
'android' => 'Android',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'iphone' => 'iOS',
|
||||
'ipad' => 'iOS',
|
||||
'ipod' => 'iOS',
|
||||
'os x' => 'Mac OS X',
|
||||
'ppc mac' => 'Power PC Mac',
|
||||
'freebsd' => 'FreeBSD',
|
||||
'ppc' => 'Macintosh',
|
||||
'linux' => 'Linux',
|
||||
'debian' => 'Debian',
|
||||
'sunos' => 'Sun Solaris',
|
||||
'beos' => 'BeOS',
|
||||
'apachebench' => 'ApacheBench',
|
||||
'aix' => 'AIX',
|
||||
'irix' => 'Irix',
|
||||
'osf' => 'DEC OSF',
|
||||
'hp-ux' => 'HP-UX',
|
||||
'netbsd' => 'NetBSD',
|
||||
'bsdi' => 'BSDi',
|
||||
'openbsd' => 'OpenBSD',
|
||||
'gnu' => 'GNU/Linux',
|
||||
'unix' => 'Unknown Unix OS',
|
||||
'symbian' => 'Symbian OS'
|
||||
);
|
||||
|
||||
|
||||
// The order of this array should NOT be changed. Many browsers return
|
||||
// multiple browser types so we want to identify the sub-type first.
|
||||
$browsers = array(
|
||||
'OPR' => 'Opera',
|
||||
'Flock' => 'Flock',
|
||||
'Edge' => 'Edge',
|
||||
'Chrome' => 'Chrome',
|
||||
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
|
||||
'Opera.*?Version' => 'Opera',
|
||||
'Opera' => 'Opera',
|
||||
'MSIE' => 'Internet Explorer',
|
||||
'Internet Explorer' => 'Internet Explorer',
|
||||
'Trident.* rv' => 'Internet Explorer',
|
||||
'Shiira' => 'Shiira',
|
||||
'Firefox' => 'Firefox',
|
||||
'Chimera' => 'Chimera',
|
||||
'Phoenix' => 'Phoenix',
|
||||
'Firebird' => 'Firebird',
|
||||
'Camino' => 'Camino',
|
||||
'Netscape' => 'Netscape',
|
||||
'OmniWeb' => 'OmniWeb',
|
||||
'Safari' => 'Safari',
|
||||
'Mozilla' => 'Mozilla',
|
||||
'Konqueror' => 'Konqueror',
|
||||
'icab' => 'iCab',
|
||||
'Lynx' => 'Lynx',
|
||||
'Links' => 'Links',
|
||||
'hotjava' => 'HotJava',
|
||||
'amaya' => 'Amaya',
|
||||
'IBrowse' => 'IBrowse',
|
||||
'Maxthon' => 'Maxthon',
|
||||
'Ubuntu' => 'Ubuntu Web Browser'
|
||||
);
|
||||
|
||||
$mobiles = array(
|
||||
// legacy array, old values commented out
|
||||
'mobileexplorer' => 'Mobile Explorer',
|
||||
// 'openwave' => 'Open Wave',
|
||||
// 'opera mini' => 'Opera Mini',
|
||||
// 'operamini' => 'Opera Mini',
|
||||
// 'elaine' => 'Palm',
|
||||
'palmsource' => 'Palm',
|
||||
// 'digital paths' => 'Palm',
|
||||
// 'avantgo' => 'Avantgo',
|
||||
// 'xiino' => 'Xiino',
|
||||
'palmscape' => 'Palmscape',
|
||||
// 'nokia' => 'Nokia',
|
||||
// 'ericsson' => 'Ericsson',
|
||||
// 'blackberry' => 'BlackBerry',
|
||||
// 'motorola' => 'Motorola'
|
||||
|
||||
// Phones and Manufacturers
|
||||
'motorola' => 'Motorola',
|
||||
'nokia' => 'Nokia',
|
||||
'nexus' => 'Nexus',
|
||||
'palm' => 'Palm',
|
||||
'iphone' => 'Apple iPhone',
|
||||
'ipad' => 'iPad',
|
||||
'ipod' => 'Apple iPod Touch',
|
||||
'sony' => 'Sony Ericsson',
|
||||
'ericsson' => 'Sony Ericsson',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'cocoon' => 'O2 Cocoon',
|
||||
'blazer' => 'Treo',
|
||||
'lg' => 'LG',
|
||||
'amoi' => 'Amoi',
|
||||
'xda' => 'XDA',
|
||||
'mda' => 'MDA',
|
||||
'vario' => 'Vario',
|
||||
'htc' => 'HTC',
|
||||
'samsung' => 'Samsung',
|
||||
'sharp' => 'Sharp',
|
||||
'sie-' => 'Siemens',
|
||||
'alcatel' => 'Alcatel',
|
||||
'benq' => 'BenQ',
|
||||
'ipaq' => 'HP iPaq',
|
||||
'mot-' => 'Motorola',
|
||||
'playstation portable' => 'PlayStation Portable',
|
||||
'playstation 3' => 'PlayStation 3',
|
||||
'playstation vita' => 'PlayStation Vita',
|
||||
'hiptop' => 'Danger Hiptop',
|
||||
'nec-' => 'NEC',
|
||||
'panasonic' => 'Panasonic',
|
||||
'philips' => 'Philips',
|
||||
'sagem' => 'Sagem',
|
||||
'sanyo' => 'Sanyo',
|
||||
'spv' => 'SPV',
|
||||
'zte' => 'ZTE',
|
||||
'sendo' => 'Sendo',
|
||||
'nintendo dsi' => 'Nintendo DSi',
|
||||
'nintendo ds' => 'Nintendo DS',
|
||||
'nintendo 3ds' => 'Nintendo 3DS',
|
||||
'wii' => 'Nintendo Wii',
|
||||
'open web' => 'Open Web',
|
||||
'openweb' => 'OpenWeb',
|
||||
'meizu' => 'Meizu',
|
||||
'huawei' => 'Huawei',
|
||||
'xiaomi' => 'Xiaomi',
|
||||
'oppo' => 'Oppo',
|
||||
'vivo' => 'Vivo',
|
||||
'infinix' => 'Infinix',
|
||||
|
||||
// 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',
|
||||
'UptimeRobot' => 'UptimeRobot'
|
||||
);
|
||||
35
application/controllers/Welcome.php
Normal file
35
application/controllers/Welcome.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
if (!defined('BASEPATH')) {
|
||||
exit('No direct script access allowed');
|
||||
}
|
||||
|
||||
class Welcome extends CI_Controller
|
||||
{
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$data['title'] = 'Antrian RS';
|
||||
$data['main_content'] = 'home/v_home';
|
||||
|
||||
//$this->load->model('m_listpasien');
|
||||
//$listpasien = $this->m_listpasien->datenow();
|
||||
//$this->load->vars('lp', $listpasien);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
}
|
||||
public function do_logout(){
|
||||
$this->session->sess_destroy();
|
||||
redirect('ps_login');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
11
application/controllers/index.html
Normal file
11
application/controllers/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
101
application/controllers/lp_data_master.php
Normal file
101
application/controllers/lp_data_master.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
class Lp_data_master extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'DATA MASTER';
|
||||
//public $title = 'REPORT';
|
||||
public $link = 'Lp_data_master';
|
||||
public $index = 'index.php/Lp_data_master';
|
||||
public $maincontent = 'datamaster/';
|
||||
public $idmenu = '25';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------ORGANISASI
|
||||
public function organisasi(){
|
||||
$data['title'] = "ORGANISASI";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link."/organisasi";
|
||||
$data['main_content'] = $this->maincontent."/organisasi/v_organisasi";
|
||||
|
||||
$this->load->model('m_satu_data_master');
|
||||
$organisasi = $this->m_satu_data_master->organisasigr1();
|
||||
$this->load->vars('org1', $organisasi);
|
||||
|
||||
$this->load->model('m_satu_data_master');
|
||||
$organisasi = $this->m_satu_data_master->organisasigr2();
|
||||
$this->load->vars('org2', $organisasi);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function lokasi_ruang(){
|
||||
$data['title'] = "LOKASI RUANG";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link."/lokasi_ruang";
|
||||
$data['main_content'] = $this->maincontent."/lokasi_ruang/v_lokasi_ruang";
|
||||
|
||||
$this->load->model('m_satu_data_master');
|
||||
$lokasiruang = $this->m_satu_data_master->lokasiruang();
|
||||
$this->load->vars('lrgr', $lokasiruang);
|
||||
|
||||
$this->load->model('m_satu_data_master');
|
||||
$lokasiruang = $this->m_satu_data_master->lokasiruanggr1();
|
||||
$this->load->vars('lrgr1', $lokasiruang);
|
||||
|
||||
$this->load->model('m_satu_data_master');
|
||||
$lokasiruang = $this->m_satu_data_master->lokasiruanggr2();
|
||||
$this->load->vars('lrgr2', $lokasiruang);
|
||||
|
||||
$this->load->model('m_satu_data_master');
|
||||
$lokasiruang = $this->m_satu_data_master->lokasiruanggr3();
|
||||
$this->load->vars('lrgr3', $lokasiruang);
|
||||
|
||||
$this->load->model('m_satu_data_master');
|
||||
$lokasiruang = $this->m_satu_data_master->lokasiruanggr4();
|
||||
$this->load->vars('lrgr4', $lokasiruang);
|
||||
|
||||
$this->load->model('m_satu_data_master');
|
||||
$lokasiruang = $this->m_satu_data_master->lokasiruanggr5();
|
||||
$this->load->vars('lrgr5', $lokasiruang);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
0
application/controllers/lp_organisasi.php
Normal file
0
application/controllers/lp_organisasi.php
Normal file
619
application/controllers/lp_ppi.php
Normal file
619
application/controllers/lp_ppi.php
Normal file
@@ -0,0 +1,619 @@
|
||||
<?php
|
||||
|
||||
class Lp_ppi extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'PPI';
|
||||
public $title = 'PPI';
|
||||
public $link = 'Lp_ppi';
|
||||
public $index = 'index.php/Lp_ppi';
|
||||
public $maincontent = 'ppi/laporan/';
|
||||
public $maincontentcc= 'ppi/cucitangan/';
|
||||
public $maincontentapd= 'ppi/apd/';
|
||||
public $idmenu = '7';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------PLEBITIS
|
||||
public function plebitis(){
|
||||
$data['title'] = "PLEBITIS";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_plebitis";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$plebitis = $this->m_drts_lp_ppi->plebitis();
|
||||
$this->load->vars('plb', $plebitis);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------VAP
|
||||
public function vap(){
|
||||
$data['title'] = "VAP";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_vap";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$vap = $this->m_drts_lp_ppi->vap();
|
||||
$this->load->vars('vap', $vap);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------HAP
|
||||
public function hap(){
|
||||
$data['title'] = "HAP";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_hap";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$hap = $this->m_drts_lp_ppi->hap();
|
||||
$this->load->vars('hap', $hap);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------IADANAK
|
||||
public function iadanak(){
|
||||
$data['title'] = "IAD ANAK";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_iadanak";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iadanak = $this->m_drts_lp_ppi->iadanak();
|
||||
$this->load->vars('iadanak', $iadanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------IADDEWASA
|
||||
public function iaddewasa(){
|
||||
$data['title'] = "IAD DEWASA";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_iaddewasa";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iaddewasa = $this->m_drts_lp_ppi->iaddewasa();
|
||||
$this->load->vars('iaddewasa', $iaddewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------ISKANAK
|
||||
public function iskanak(){
|
||||
$data['title'] = "ISK ANAK";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_iskanak";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iskanak = $this->m_drts_lp_ppi->iskanak();
|
||||
$this->load->vars('iskanak', $iskanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------ISKDEWASA
|
||||
public function iskdewasa(){
|
||||
$data['title'] = "ISK DEWASA";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_iskdewasa";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iskdewasa = $this->m_drts_lp_ppi->iskdewasa();
|
||||
$this->load->vars('iskdewasa', $iskdewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------IDOBERSIH
|
||||
public function idobersih(){
|
||||
$data['title'] = "IDO BERSIH";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_idobersih";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$idobersih = $this->m_drts_lp_ppi->idobersih();
|
||||
$this->load->vars('idobersih', $idobersih);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------IDOTERKONTAMINASI
|
||||
public function idoterkontaminasi(){
|
||||
$data['title'] = "IDO TERKONTAMINASI";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_idoterkontaminasi";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$idoterkontaminasi = $this->m_drts_lp_ppi->idoterkontaminasi();
|
||||
$this->load->vars('idoterkontaminasi', $idoterkontaminasi);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------PASIEN PPI
|
||||
public function pasien_ppi(){
|
||||
$data['title'] = "PASIEN PPI";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_pasien_ppi";
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$plebitis = $this->m_drts_lp_ppi->plebitis();
|
||||
$this->load->vars('plb', $plebitis);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$mp = $this->m_drts_lp_ppi->medisplebitis();
|
||||
$this->load->vars('mplb', $mp);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$vap = $this->m_drts_lp_ppi->vap();
|
||||
$this->load->vars('vap', $vap);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$mv = $this->m_drts_lp_ppi->medisvap();
|
||||
$this->load->vars('mvap', $mv);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$hap = $this->m_drts_lp_ppi->hap();
|
||||
$this->load->vars('hap', $hap);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$mh = $this->m_drts_lp_ppi->medishap();
|
||||
$this->load->vars('mhap', $mh);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iadanak = $this->m_drts_lp_ppi->iadanak();
|
||||
$this->load->vars('iadanak', $iadanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$miadanak = $this->m_drts_lp_ppi->medisiadanak();
|
||||
$this->load->vars('miadanak', $miadanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iaddewasa = $this->m_drts_lp_ppi->iaddewasa();
|
||||
$this->load->vars('iaddewasa', $iaddewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$miaddewasa = $this->m_drts_lp_ppi->medisiaddewasa();
|
||||
$this->load->vars('miaddewasa', $miaddewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iskanak = $this->m_drts_lp_ppi->iskanak();
|
||||
$this->load->vars('iskanak', $iskanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$miskanak = $this->m_drts_lp_ppi->medisiskanak();
|
||||
$this->load->vars('miskanak', $miskanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iskdewasa = $this->m_drts_lp_ppi->iskdewasa();
|
||||
$this->load->vars('iskdewasa', $iskdewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$miskdewasa = $this->m_drts_lp_ppi->medisiskdewasa();
|
||||
$this->load->vars('miskdewasa', $miskdewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$idobersih = $this->m_drts_lp_ppi->idobersih();
|
||||
$this->load->vars('idobersih', $idobersih);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$mido = $this->m_drts_lp_ppi->medisidobersih();
|
||||
$this->load->vars('mido', $mido);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$idoterkontaminasi = $this->m_drts_lp_ppi->idoterkontaminasi();
|
||||
$this->load->vars('idoterkontaminasi', $idoterkontaminasi);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$midot = $this->m_drts_lp_ppi->medisidoterkontaminasi();
|
||||
$this->load->vars('midot', $midot);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
//----------------------------------------------------------------RUANG PPI
|
||||
public function ruang_ppi(){
|
||||
$data['title'] = "RUANG PPI";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."v_ruang_ppi";
|
||||
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$plebitis = $this->m_drts_lp_ppi->plebitis();
|
||||
$this->load->vars('plb', $plebitis);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$mp = $this->m_drts_lp_ppi->medisplebitis();
|
||||
$this->load->vars('mplb', $mp);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$vap = $this->m_drts_lp_ppi->vap();
|
||||
$this->load->vars('vap', $vap);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$mv = $this->m_drts_lp_ppi->medisvap();
|
||||
$this->load->vars('mvap', $mv);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$hap = $this->m_drts_lp_ppi->hap();
|
||||
$this->load->vars('hap', $hap);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$mh = $this->m_drts_lp_ppi->medishap();
|
||||
$this->load->vars('mhap', $mh);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iadanak = $this->m_drts_lp_ppi->iadanak();
|
||||
$this->load->vars('iadanak', $iadanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$miadanak = $this->m_drts_lp_ppi->medisiadanak();
|
||||
$this->load->vars('miadanak', $miadanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iaddewasa = $this->m_drts_lp_ppi->iaddewasa();
|
||||
$this->load->vars('iaddewasa', $iaddewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$miaddewasa = $this->m_drts_lp_ppi->medisiaddewasa();
|
||||
$this->load->vars('miaddewasa', $miaddewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iskanak = $this->m_drts_lp_ppi->iskanak();
|
||||
$this->load->vars('iskanak', $iskanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$miskanak = $this->m_drts_lp_ppi->medisiskanak();
|
||||
$this->load->vars('miskanak', $miskanak);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$iskdewasa = $this->m_drts_lp_ppi->iskdewasa();
|
||||
$this->load->vars('iskdewasa', $iskdewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$miskdewasa = $this->m_drts_lp_ppi->medisiskdewasa();
|
||||
$this->load->vars('miskdewasa', $miskdewasa);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$idobersih = $this->m_drts_lp_ppi->idobersih();
|
||||
$this->load->vars('idobersih', $idobersih);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$mido = $this->m_drts_lp_ppi->medisidobersih();
|
||||
$this->load->vars('mido', $mido);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$idoterkontaminasi = $this->m_drts_lp_ppi->idoterkontaminasi();
|
||||
$this->load->vars('idoterkontaminasi', $idoterkontaminasi);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$midot = $this->m_drts_lp_ppi->medisidoterkontaminasi();
|
||||
$this->load->vars('midot', $midot);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------CUCI TANGAN PPI
|
||||
public function cuci_tangan(){
|
||||
$data['title'] = "CUCI TANGAN";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontentcc."v_cuci_tangan";
|
||||
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$cc = $this->m_drts_lp_ppi->cucitangan();
|
||||
$this->load->vars('cc', $cc);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function detail_cuci_tangan(){
|
||||
$data['title'] = "DETAIL CUCI TANGAN";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontentcc."v_detail_cuci_tangan";
|
||||
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$cc = $this->m_drts_lp_ppi->cucitangan();
|
||||
$this->load->vars('cc', $cc);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------APD PPI
|
||||
public function apd(){
|
||||
$data['title'] = "APD";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontentapd."v_apd";
|
||||
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$apd = $this->m_drts_lp_ppi->apd();
|
||||
$this->load->vars('apd', $apd);
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$rua = $this->m_drts_lp_ppi->ruang();
|
||||
$this->load->vars('rua', $rua);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function detail_apd(){
|
||||
$data['title'] = "DETAIL APD";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontentapd."v_detail_apd";
|
||||
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_drts_lp_ppi');
|
||||
$apd = $this->m_drts_lp_ppi->apd();
|
||||
$this->load->vars('apd', $apd);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
75
application/controllers/lp_saturssa.php
Normal file
75
application/controllers/lp_saturssa.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
class Lp_saturssa extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'SATURSSA';
|
||||
public $title = 'REPORT';
|
||||
public $link = 'Lp_saturssa';
|
||||
public $index = 'index.php/Lp_saturssa';
|
||||
public $maincontent = 'saturssa/';
|
||||
public $idmenu = '43';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------PLEBITIS
|
||||
public function ketepatantrianoperasi(){
|
||||
$data['title'] = "SATURSSA - REPORT KETEPATAN ANTRIAN OPERASI";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/antrianoperasi/ketepatanantrianoperasi/v_ketepatanantrianoperasi";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_saturssa_report_lp');
|
||||
$datanya = $this->m_saturssa_report_lp->ketepatanantrianoperasi();
|
||||
$this->load->vars('datanya', $datanya);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
174
application/controllers/lp_simrs_kemenkes.php
Normal file
174
application/controllers/lp_simrs_kemenkes.php
Normal file
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
|
||||
class Lp_simrs_kemenkes extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'SIMRS';
|
||||
public $title = 'KEMENKES';
|
||||
public $link = 'Lp_simrs';
|
||||
public $index = 'index.php/Lp_simrs_kemenkes';
|
||||
public $maincontent = 'simrs/kemenkes/';
|
||||
//public $mcicd = 'simrs/kemenkes/billing/';
|
||||
//public $mctindakan = 'simrs/tindakan/';
|
||||
//public $mcpx = 'simrs/pasien/';
|
||||
public $idmenu = '27';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------PLEBITIS
|
||||
public function icd(){
|
||||
$data['title'] = "KEMENKES - ICD REKAP";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/icd/v_icd_rekap";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_kemenkes_lp');
|
||||
$icd = $this->m_simrs_kemenkes_lp->icd();
|
||||
$this->load->vars('icd', $icd);
|
||||
|
||||
$this->load->model('m_simrs_kemenkes_lp');
|
||||
$billrj = $this->m_simrs_kemenkes_lp->billingrajal();
|
||||
$this->load->vars('billrj', $billrj);
|
||||
|
||||
$this->load->model('m_simrs_kemenkes_lp');
|
||||
$billbtl = $this->m_simrs_kemenkes_lp->orderbatalbillrajal();
|
||||
$this->load->vars('billbtl', $billbtl);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function tes(){
|
||||
$data['title'] = "KEMENKES - TES REKAP";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/tes/v_tes_rekap";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_kemenkes_lp');
|
||||
$pnj = $this->m_simrs_kemenkes_lp->billrajalpenunjang();
|
||||
$this->load->vars('pnj', $pnj);
|
||||
|
||||
// $this->load->model('m_simrs_kemenkes_lp');
|
||||
// $billrj = $this->m_simrs_kemenkes_lp->billingrajal();
|
||||
// $this->load->vars('billrj', $billrj);
|
||||
|
||||
// $this->load->model('m_simrs_kemenkes_lp');
|
||||
// $billbtl = $this->m_simrs_kemenkes_lp->orderbatalbillrajal();
|
||||
// $this->load->vars('billbtl', $billbtl);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function tindakan(){
|
||||
$data['title'] = "KEMENKES - TINDAKAN REKAP";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/tindakan/v_icdcm_rekap";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_kemenkes_lp');
|
||||
$icdcm = $this->m_simrs_kemenkes_lp->icdcm();
|
||||
$this->load->vars('icdcm', $icdcm);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function variable_klaim(){
|
||||
$data['title'] = "PASIEN IGD";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/variableklaim/v_variable_klaim";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_kemenkes_lp');
|
||||
$pxigd = $this->m_simrs_kemenkes_lp->pxigd();
|
||||
$this->load->vars('pxigd', $pxigd);
|
||||
|
||||
$this->load->model('m_simrs_kemenkes_lp');
|
||||
$icdcmigd = $this->m_simrs_kemenkes_lp->icdcmigd();
|
||||
$this->load->vars('icdcmigd', $icdcmigd);
|
||||
|
||||
$this->load->model('m_simrs_kemenkes_lp');
|
||||
$icdigd = $this->m_simrs_kemenkes_lp->icdigd();
|
||||
$this->load->vars('icdigd', $icdigd);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
427
application/controllers/lp_simrs_report.php
Normal file
427
application/controllers/lp_simrs_report.php
Normal file
@@ -0,0 +1,427 @@
|
||||
<?php
|
||||
|
||||
class Lp_simrs_report extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'SIMRS';
|
||||
public $title = 'REPORT';
|
||||
public $link = 'Lp_simrs_report';
|
||||
public $index = 'index.php/Lp_simrs_report';
|
||||
public $maincontent = 'simrs/report/';
|
||||
public $idmenu = '27';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------PLEBITIS
|
||||
public function labmikro(){
|
||||
$data['title'] = "SIMRS - REPORT MIKRO";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/labmikro/v_lab_mikro";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$labmikroall = $this->m_simrs_report_lp->labmikroall();
|
||||
$this->load->vars('labmikroall', $labmikroall);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function klaimlabmikro(){
|
||||
$data['title'] = "SIMRS - REPORT KLAIM MIKRO";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/labmikro/v_klaim_labmikro";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$klaimmikro = $this->m_simrs_report_lp->klaimmikro();
|
||||
$this->load->vars('klaimmikro', $klaimmikro);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function icd9(){
|
||||
$data['title'] = "SIMRS - REPORT ICD 9 - RM";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/rm/v_icd9";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$icd9 = $this->m_simrs_report_lp->icd9();
|
||||
$this->load->vars('icd9', $icd9);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function pasienbaru(){
|
||||
$data['title'] = "SIMRS - REPORT PASIEN BARU - RM";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasienbaru/v_pasienbaru";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$pasienbaru = $this->m_simrs_report_lp->pasienbaru();
|
||||
$this->load->vars('pasienbaru', $pasienbaru);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function pasiendetail(){
|
||||
$data['title'] = "SIMRS - REPORT PASIEN DETAIL - RM";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasiendetail/v_pasiendetail";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$pasiendetail = $this->m_simrs_report_lp->pasiendetail();
|
||||
$this->load->vars('pasiendetail', $pasiendetail);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function pasiendetailranap(){
|
||||
$data['title'] = "SIMRS - REPORT PASIEN DETAIL RAWAT INAP- RM";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasiendetailranap/v_pasiendetailranap";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$pasiendetailranap = $this->m_simrs_report_lp->pasiendetailranap();
|
||||
$this->load->vars('pasiendetailranap', $pasiendetailranap);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function pasienikpk(){
|
||||
$data['title'] = "SIMRS - REPORT PASIEN DETAIL - IKPK";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasienikpk/v_pasienikpk";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$pasiendetail = $this->m_simrs_report_lp->pasienikpk();
|
||||
$this->load->vars('pasiendetail', $pasiendetail);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function pasienkeuanganrajal(){
|
||||
$data['title'] = "SIMRS - REPORT PASIEN DETAIL - KEUANGAN RAWAT JALAN";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasienkeuanganrajal/v_pasienkeuanganrajal";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$pasiendetail = $this->m_simrs_report_lp->pasienkeuanganrajal();
|
||||
$this->load->vars('pasiendetail', $pasiendetail);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function pasienkeuanganranap(){
|
||||
$data['title'] = "SIMRS - REPORT PASIEN DETAIL - KEUANGAN RAWAT INAP";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasienkeuanganranap/v_pasienkeuanganranap";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$pasiendetail = $this->m_simrs_report_lp->pasienkeuanganranap();
|
||||
$this->load->vars('pasiendetail', $pasiendetail);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function pasieniurbearanap(){
|
||||
$data['title'] = "SIMRS - REPORT PASIEN DETAIL - KEUANGAN IURBEA RAWAT INAP";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasieniurbearanap/v_pasieniurbearanap";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$pasiendetail = $this->m_simrs_report_lp->pasieniurbearanap();
|
||||
$this->load->vars('pasiendetail', $pasiendetail);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function rekamedikrl32(){
|
||||
$data['title'] = "SIMRS - REPORT PASIEN DETAIL - REKAMEDIK RL 3.2";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/rekamedikrl32/v_rekamedikrl32";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$datanya = $this->m_simrs_report_lp->rekamedikrl32();
|
||||
$this->load->vars('datanya', $datanya);
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$datjum = $this->m_simrs_report_lp->jmlhariperawatan();
|
||||
$this->load->vars('datjum', $datjum);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function penggunareseprajal(){
|
||||
$data['title'] = "SIMRS - REPORT PENGGUNA RESEP RAJAL";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/penggunaresep/v_penggunareseprajal";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$dataklinik = $this->m_simrs_report_lp->ruangklinik();
|
||||
$this->load->vars('dataklinik', $dataklinik);
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$datanya = $this->m_simrs_report_lp->penggunareseprajal();
|
||||
$this->load->vars('datanya', $datanya);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function disposedokigd(){
|
||||
$data['title'] = "SIMRS - REPORT PENGGUNA RESEP RAJAL";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/disposedokigd/v_disposedokigd";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$datanya = $this->m_simrs_report_lp->disposedokigd();
|
||||
$this->load->vars('datanya', $datanya);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function obatkeluarrajal(){
|
||||
$data['title'] = "SIMRS - REPORT RESEP KELUAR RAJAL";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/obatkeluar/v_obatkeluarrajal";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$datarajal = $this->m_simrs_report_lp->farmasirajal();
|
||||
$this->load->vars('datarajal', $datarajal);
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$dataobat = $this->m_simrs_report_lp->dataobat();
|
||||
$this->load->vars('dataobat', $dataobat);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function obatkeluarranap(){
|
||||
$data['title'] = "SIMRS - REPORT RESEP KELUAR RANAP";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/obatkeluar/v_obatkeluarranap";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$dataranap = $this->m_simrs_report_lp->farmasiranap();
|
||||
$this->load->vars('dataranap', $dataranap);
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$dataobat = $this->m_simrs_report_lp->dataobat();
|
||||
$this->load->vars('dataobat', $dataobat);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
301
application/controllers/ps_hakakses.php
Normal file
301
application/controllers/ps_hakakses.php
Normal file
@@ -0,0 +1,301 @@
|
||||
<?php
|
||||
//-------------ID hak akses = 3
|
||||
|
||||
class Ps_hakakses extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('mh_tipeuser_id', $this->session->userdata('s_FK_TipeUser'));
|
||||
$this->db->where('mh_menu_id', '3');
|
||||
$this->db->where('mh_access', 1);
|
||||
$cekMenu = $this->db->get('m_hakakses');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->mh_add;
|
||||
$this->varedit = $cm->mh_edit;
|
||||
$this->vardelete= $cm->mh_delete;
|
||||
$this->varview = $cm->mh_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
public function index($error = NULL) {
|
||||
$data['title'] = 'Hak Akses';
|
||||
$data['link'] = 'ps_hakakses';
|
||||
$data['main_content'] = 'setting/hakakses/v_hakakses';
|
||||
$data['error'] = $error;
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$datanya = $this->m_hakakses->index();
|
||||
$this->load->vars('ha', $datanya);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
// fungsi untuk menampilkan form tambah data
|
||||
public function add() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page tambah---------//
|
||||
$data['titlebefore'] = 'Hak Akses';
|
||||
$data['title'] = 'Tambah Tipe User';
|
||||
$data['link'] = 'ps_hakakses';
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = 'setting/hakakses/form_tipeuser';
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk memproses penambahan dengan memanggil model
|
||||
public function prosesadd() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page tambah---------//
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Tipe User','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['titlebefore'] = 'Hak Akses';
|
||||
$data['title'] = 'Tambah Tipe User';
|
||||
$data['link'] = 'ps_hakakses';
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = 'setting/hakakses/form_tipeuser';
|
||||
$this->load->view('includes/template', $data);
|
||||
}else{
|
||||
$this->load->model('m_hakakses');
|
||||
$this->m_hakakses->insert_tipeuser();
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Menambahkan Tipe User baru');
|
||||
redirect('index.php/ps_hakakses');
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form edit data dengan data terpilih
|
||||
public function edit($id) {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page edit---------//
|
||||
$data['titlebefore'] = 'Hak Akses';
|
||||
$data['title'] = 'Edit Tipe User';
|
||||
$data['link'] = 'ps_hakakses';
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = 'setting/hakakses/form_tipeuser';
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$datanya = $this->m_hakakses->edit_tipeuser($id);
|
||||
$this->load->vars('ha', $datanya);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//funsi untuk memproses update data
|
||||
public function prosesedit() {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page edit---------//
|
||||
$id = $this->input->post('id');
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Tipe User','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['titlebefore'] = 'Hak Akses';
|
||||
$data['title'] = 'Edit Tipe User';
|
||||
$data['link'] = 'ps_hakakses';
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = 'setting/hakakses/form_tipeuser';
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$datanya = $this->m_hakakses->edit_tipeuser($id);
|
||||
$this->load->vars('ha', $datanya);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
else{
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Mengedit Tipe User');
|
||||
$this->load->model('m_hakakses');
|
||||
$this->m_hakakses->prosesedit_tipeuser();
|
||||
redirect('index.php/ps_hakakses');
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form view data dengan data terpilih
|
||||
public function view($id) {
|
||||
//----start validate page view-------//
|
||||
if($this->varview==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page view---------//
|
||||
$data['titlebefore'] = 'Hak Akses';
|
||||
$data['title'] = 'View Tipe User';
|
||||
$data['actionform'] = 'prosesview';
|
||||
$data['link'] = 'ps_hakakses';
|
||||
$data['main_content'] = 'setting/hakakses/form_tipeuser';
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$datanya = $this->m_hakakses->edit_tipeuser($id);
|
||||
$this->load->vars('ha', $datanya);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk delete
|
||||
function delete($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->vardelete==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Menghapus Tipe User');
|
||||
$this->load->model('m_hakakses');
|
||||
$this->m_hakakses->delete_tipeuser($id);
|
||||
redirect('index.php/ps_hakakses');
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Disabled Tipe User');
|
||||
$this->load->model('m_hakakses');
|
||||
$this->m_hakakses->disabled_tipeuser($id);
|
||||
redirect('index.php/ps_hakakses');
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Aktif Tipe User');
|
||||
$this->load->model('m_hakakses');
|
||||
$this->m_hakakses->active_tipeuser($id);
|
||||
redirect('index.php/ps_hakakses');
|
||||
}
|
||||
|
||||
//--------------------------------------------------HAK AKSES---------------------------------------------------------//
|
||||
public function edithakakses($id) {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_hakakses');}
|
||||
//----end validate page edit---------//
|
||||
$data['titlebefore'] = 'Hak Akses';
|
||||
$data['title'] = 'Edit Hak Akses Menu';
|
||||
$data['actionform'] = 'prosesedithakakses';
|
||||
$data['link'] = 'ps_hakakses';
|
||||
$data['main_content'] = 'setting/hakakses/form_hakakses';
|
||||
$data['id'] = $id;
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$tipeuser = $this->m_hakakses->edit_tipeuser($id);
|
||||
$this->load->vars('tu', $tipeuser);
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$menu = $this->m_hakakses->menuall();
|
||||
$this->load->vars('mn', $menu);
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$hakakses = $this->m_hakakses->edit_hakakses($id);
|
||||
$this->load->vars('um', $hakakses);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//funsi untuk memproses update data karyawan
|
||||
function prosesedithakakses() {
|
||||
$this->db->where('mh_tipeuser_id', $this->input->post('id'));
|
||||
$this->db->delete('m_hakakses');
|
||||
|
||||
if(isset($_POST['akses'])){
|
||||
$postakses= $_POST['akses'];
|
||||
foreach($postakses as $key1 =>$valueakses)
|
||||
{
|
||||
$accessaction = null;
|
||||
$viewaction = null;
|
||||
$tambahaction = null;
|
||||
$editaction = null;
|
||||
$deleteaction = null;
|
||||
$dataakses = explode ("-",$valueakses);
|
||||
|
||||
if(isset($_POST['tambah'])){
|
||||
$posttambah= $_POST['tambah'];
|
||||
foreach($posttambah as $key2 =>$valuetambah)
|
||||
{
|
||||
if($dataakses[1]==$valuetambah){
|
||||
$tambahaction="1";
|
||||
}
|
||||
}
|
||||
}
|
||||
if(isset($_POST['edit'])){
|
||||
$postedit= $_POST['edit'];
|
||||
foreach($postedit as $key3 =>$valueedit)
|
||||
{
|
||||
if($dataakses[1]==$valueedit){
|
||||
$editaction="1";
|
||||
}
|
||||
}
|
||||
}
|
||||
if(isset($_POST['delete'])){
|
||||
$postdelete= $_POST['delete'];
|
||||
foreach($postdelete as $key4 =>$valuedelete)
|
||||
{
|
||||
if($dataakses[1]==$valuedelete){
|
||||
$deleteaction="1";
|
||||
}
|
||||
}
|
||||
}
|
||||
if(isset($_POST['view'])){
|
||||
$postview= $_POST['view'];
|
||||
foreach($postview as $key5 =>$valueview)
|
||||
{
|
||||
if($dataakses[1]==$valueview){
|
||||
$viewaction="1";
|
||||
}
|
||||
}
|
||||
}
|
||||
if(isset($_POST['akses'])){
|
||||
$postakses= $_POST['akses'];
|
||||
foreach($postakses as $key6 =>$valueaksesnya)
|
||||
{
|
||||
$valueaksessplit = explode("-",$valueaksesnya);
|
||||
if($dataakses[1]==$valueaksessplit[1]){
|
||||
$accessaction="1";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$insert_hakakses = array(
|
||||
'mh_tipeuser_id'=> $this->input->post('id'),
|
||||
'mh_menu_id' => $dataakses[1],
|
||||
'mh_access' => $accessaction,
|
||||
'mh_view' => $viewaction,
|
||||
'mh_add' => $tambahaction,
|
||||
'mh_edit' => $editaction,
|
||||
'mh_delete' => $deleteaction,
|
||||
);
|
||||
|
||||
$insert = $this->db->insert('m_hakakses', $insert_hakakses);
|
||||
}
|
||||
}
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Mengedit Hak Akses');
|
||||
redirect('index.php/ps_hakakses/edithakakses/'.$this->input->post('id'));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
29
application/controllers/ps_login.php
Normal file
29
application/controllers/ps_login.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
class Ps_login extends CI_Controller{
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
}
|
||||
public function index($error = NULL){
|
||||
$data['error']=$error;
|
||||
$this->load->view('login/form_login',$data);
|
||||
}
|
||||
public function process(){
|
||||
$this->load->model('m_login');
|
||||
$result = $this->m_login->validate();
|
||||
if(! $result){
|
||||
$error = '<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">x</button>
|
||||
Username atau Password Salah!
|
||||
</div>';
|
||||
$this->index($error);
|
||||
}else{
|
||||
redirect('index.php');
|
||||
}
|
||||
}
|
||||
public function logout(){
|
||||
$this->session->sess_destroy();
|
||||
redirect('ps_login');
|
||||
}
|
||||
}
|
||||
?>
|
||||
251
application/controllers/ps_user.php
Normal file
251
application/controllers/ps_user.php
Normal file
@@ -0,0 +1,251 @@
|
||||
<?php
|
||||
//-------------ID user = 4
|
||||
|
||||
class Ps_user extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('mh_tipeuser_id', $this->session->userdata('s_FK_TipeUser'));
|
||||
$this->db->where('mh_menu_id', '4');
|
||||
$this->db->where('mh_access', 1);
|
||||
$cekMenu = $this->db->get('m_hakakses');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->mh_add;
|
||||
$this->varedit = $cm->mh_edit;
|
||||
$this->vardelete= $cm->mh_delete;
|
||||
$this->varview = $cm->mh_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
public function index($error = NULL) {
|
||||
$data['title'] = 'User';
|
||||
$data['link'] = 'ps_user';
|
||||
$data['main_content'] = 'setting/user/v_user';
|
||||
$data['error'] = $error;
|
||||
|
||||
$this->load->model('m_user');
|
||||
$datanya = $this->m_user->index();
|
||||
$this->load->vars('us', $datanya);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
// fungsi untuk menampilkan form tambah data
|
||||
public function add() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect('index.php/ps_user');}
|
||||
//----end validate page tambah---------//
|
||||
$data['titlebefore'] = 'User';
|
||||
$data['title'] = 'Tambah User';
|
||||
$data['link'] = 'ps_user';
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = 'setting/user/form_user';
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$datatu = $this->m_hakakses->tipeuseraktif();
|
||||
$this->load->vars('tu', $datatu);
|
||||
|
||||
$this->load->model('m_loket_rajal');
|
||||
$datalo = $this->m_loket_rajal->loketst();
|
||||
$this->load->vars('lo', $datalo);
|
||||
|
||||
$this->load->model('m_klinik');
|
||||
$datakl = $this->m_klinik->klinikst();
|
||||
$this->load->vars('kl', $datakl);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk memproses penambahan dengan memanggil model
|
||||
public function prosesadd() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect('index.php/ps_user');}
|
||||
//----end validate page tambah---------//
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Lengkap','required');
|
||||
$this->form_validation->set_rules('user','Nama User','required');
|
||||
$this->form_validation->set_rules('passworduser','Password User','required');
|
||||
$this->form_validation->set_rules('repassworduser', 'Retype Password', 'required|matches[passworduser]');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['titlebefore'] = 'User';
|
||||
$data['title'] = 'Tambah User';
|
||||
$data['link'] = 'ps_user';
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = 'setting/user/form_user';
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$datatu = $this->m_hakakses->tipeuseraktif();
|
||||
$this->load->vars('tu', $datatu);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}else{
|
||||
$this->load->model('m_user');
|
||||
$this->m_user->insert();
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Menambahkan User baru');
|
||||
redirect('index.php/ps_user');
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form edit data dengan data terpilih
|
||||
public function edit($id) {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_user');}
|
||||
//----end validate page edit---------//
|
||||
$data['titlebefore'] = 'User';
|
||||
$data['title'] = 'Edit User';
|
||||
$data['link'] = 'ps_user';
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = 'setting/user/form_user';
|
||||
|
||||
$this->load->model('m_user');
|
||||
$datanya = $this->m_user->edit($id);
|
||||
$this->load->vars('us', $datanya);
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$datatu = $this->m_hakakses->tipeuseraktif();
|
||||
$this->load->vars('tu', $datatu);
|
||||
|
||||
$this->load->model('m_loket_rajal');
|
||||
$datalo = $this->m_loket_rajal->loketst();
|
||||
$this->load->vars('lo', $datalo);
|
||||
|
||||
$this->load->model('m_klinik');
|
||||
$datakl = $this->m_klinik->klinikst();
|
||||
$this->load->vars('kl', $datakl);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//funsi untuk memproses update data
|
||||
public function prosesedit() {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_user');}
|
||||
//----end validate page edit---------//
|
||||
$id = $this->input->post('id');
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Lengkap','required');
|
||||
$this->form_validation->set_rules('user','Nama User','required');
|
||||
if(!empty($setpass)){
|
||||
$this->form_validation->set_rules('passworduser','Password User','required');
|
||||
$this->form_validation->set_rules('repassworduser', 'Retype Password', 'required|matches[passworduser]');
|
||||
}
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['titlebefore'] = 'User';
|
||||
$data['title'] = 'Edit User';
|
||||
$data['link'] = 'ps_user';
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = 'setting/user/form_user';
|
||||
|
||||
$this->load->model('m_user');
|
||||
$datanya = $this->m_user->edit($id);
|
||||
$this->load->vars('us', $datanya);
|
||||
|
||||
$this->load->model('m_hakakses');
|
||||
$datatu = $this->m_hakakses->tipeuseraktif();
|
||||
$this->load->vars('tu', $datatu);
|
||||
|
||||
$this->load->model('m_loket_rajal');
|
||||
$datalo = $this->m_loket_rajal->loketst();
|
||||
$this->load->vars('lo', $datalo);
|
||||
|
||||
$this->load->model('m_klinik');
|
||||
$datakl = $this->m_klinik->klinikst();
|
||||
$this->load->vars('kl', $datakl);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
else{
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Mengedit User');
|
||||
$this->load->model('m_user');
|
||||
$this->m_user->prosesedit();
|
||||
redirect('index.php/ps_user');
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form view data dengan data terpilih
|
||||
public function view($id) {
|
||||
//----start validate page view-------//
|
||||
if($this->varview==null){redirect('index.php/ps_user');}
|
||||
//----end validate page view---------//
|
||||
$data['titlebefore'] = 'User';
|
||||
$data['title'] = 'View User';
|
||||
$data['actionform'] = 'prosesview';
|
||||
$data['link'] = 'ps_user';
|
||||
$data['main_content'] = 'setting/user/form_user';
|
||||
|
||||
$this->load->model('m_user');
|
||||
$datanya = $this->m_user->edit($id);
|
||||
$this->load->vars('us', $datanya);
|
||||
|
||||
$this->load->model('m_loket_rajal');
|
||||
$datalo = $this->m_loket_rajal->loketst();
|
||||
$this->load->vars('lo', $datalo);
|
||||
|
||||
$this->load->model('m_klinik');
|
||||
$datakl = $this->m_klinik->klinikst();
|
||||
$this->load->vars('kl', $datakl);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk delete
|
||||
function delete($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->vardelete==null){redirect('index.php/ps_user');}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Menghapus User');
|
||||
$this->load->model('m_user');
|
||||
$this->m_user->delete($id);
|
||||
redirect('index.php/ps_user');
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_user');}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Disabled User');
|
||||
$this->load->model('m_user');
|
||||
$this->m_user->disabled($id);
|
||||
redirect('index.php/ps_user');
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect('index.php/ps_user');}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', 'Anda berhasil Aktif User');
|
||||
$this->load->model('m_user');
|
||||
$this->m_user->active($id);
|
||||
redirect('index.php/ps_user');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
220
application/controllers/st_accesscontrol.php
Normal file
220
application/controllers/st_accesscontrol.php
Normal file
@@ -0,0 +1,220 @@
|
||||
<?php
|
||||
//-------------ID menu = 5
|
||||
|
||||
class St_accesscontrol extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'Setting';
|
||||
public $title = 'Access Control';
|
||||
public $link = 'st_accesscontrol';
|
||||
public $index = 'index.php/st_accesscontrol';
|
||||
public $maincontent = 'setting/accesscontrol/';
|
||||
public $viewcontent = 'v_accesscontrol';
|
||||
public $formcontent = 'form_accesscontrol';
|
||||
public $okadd = 'Anda berhasil ADD Access Control Baru';
|
||||
public $okedit = 'Anda berhasil EDIT Access Control';
|
||||
public $okdelete = 'Anda berhasil DELETE Access Control';
|
||||
public $okdisabled = 'Anda berhasil DISABLED Access Control';
|
||||
public $okactive = 'Anda berhasil ACTIVE Access Control';
|
||||
public $idmenu = '4';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
public function index($error = NULL) {
|
||||
$data['title'] = $this->title;
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent.$this->viewcontent;
|
||||
$data['error'] = $error;
|
||||
|
||||
$this->load->model('m_st_accesscontrol');
|
||||
$accesscontrol = $this->m_st_accesscontrol->index();
|
||||
$this->load->vars('ma', $accesscontrol);
|
||||
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$rolegroup = $this->m_st_rolegroup->rolegroupst();
|
||||
$this->load->vars('mr', $rolegroup);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
// fungsi untuk menampilkan form tambah data
|
||||
public function add() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect($this->index);}
|
||||
//----end validate page tambah---------//
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['parent'] = $this->parent;
|
||||
$data['title'] = 'Tambah '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk memproses penambahan dengan memanggil model
|
||||
public function prosesadd() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect($this->index);}
|
||||
//----end validate page tambah---------//
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Role Group','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Tambah '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}else{
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->insert();
|
||||
$this->session->set_flashdata('message', $this->okadd);
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form edit data dengan data terpilih
|
||||
public function edit($id) {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page edit---------//
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Edit '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$rolegroup = $this->m_st_rolegroup->edit($id);
|
||||
$this->load->vars('mr', $rolegroup);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//funsi untuk memproses update data
|
||||
public function prosesedit() {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page edit---------//
|
||||
$id = $this->input->post('id');
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Role Group','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Edit '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$rolegroup = $this->m_st_rolegroup->edit($id);
|
||||
$this->load->vars('mr', $rolegroup);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
else{
|
||||
$this->session->set_flashdata('message', $this->okedit);
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->prosesedit();
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form view data dengan data terpilih
|
||||
public function view($id) {
|
||||
//----start validate page view-------//
|
||||
if($this->varview==null){redirect($this->index);}
|
||||
//----end validate page view---------//
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'View '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesview';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$rolegroup = $this->m_st_rolegroup->edit($id);
|
||||
$this->load->vars('mr', $rolegroup);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk delete
|
||||
function delete($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->vardelete==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okdelete);
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->delete($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okdisabled);
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->disabled($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okactive);
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->active($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
240
application/controllers/st_menu.php
Normal file
240
application/controllers/st_menu.php
Normal file
@@ -0,0 +1,240 @@
|
||||
<?php
|
||||
//-------------ID menu = 3
|
||||
|
||||
class St_menu extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'Setting';
|
||||
public $title = 'Menu';
|
||||
public $link = 'st_menu';
|
||||
public $index = 'index.php/st_menu';
|
||||
public $maincontent = 'setting/menu/';
|
||||
public $viewcontent = 'v_menu';
|
||||
public $formcontent = 'form_menu';
|
||||
public $okadd = 'Anda berhasil ADD Menu Baru';
|
||||
public $okedit = 'Anda berhasil EDIT Menu';
|
||||
public $okdelete = 'Anda berhasil DELETE Menu';
|
||||
public $okdisabled = 'Anda berhasil DISABLED Menu';
|
||||
public $okactive = 'Anda berhasil ACTIVE Menu';
|
||||
public $idmenu = '3';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
public function index($error = NULL) {
|
||||
$data['title'] = $this->title;
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent.$this->viewcontent;
|
||||
$data['error'] = $error;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menu = $this->m_st_menu->index();
|
||||
$this->load->vars('mn', $menu);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
// fungsi untuk menampilkan form tambah data
|
||||
public function add() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect($this->index);}
|
||||
//----end validate page tambah---------//
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['parent'] = $this->parent;
|
||||
$data['title'] = 'Tambah '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menuactive = $this->m_st_menu->menuactive();
|
||||
$this->load->vars('ma', $menuactive);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk memproses penambahan dengan memanggil model
|
||||
public function prosesadd() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect($this->index);}
|
||||
//----end validate page tambah---------//
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Menu','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Tambah '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}else{
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->insert();
|
||||
$this->session->set_flashdata('message', $this->okadd);
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form edit data dengan data terpilih
|
||||
public function edit($id) {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page edit---------//
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Edit '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menu = $this->m_st_menu->edit($id);
|
||||
$this->load->vars('mst', $menu);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menuactive = $this->m_st_menu->menuactive();
|
||||
$this->load->vars('ma', $menuactive);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$fieldactive = $this->m_st_menu->fieldactive($id);
|
||||
$this->load->vars('fa', $fieldactive);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//funsi untuk memproses update data
|
||||
public function prosesedit() {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page edit---------//
|
||||
$id = $this->input->post('id');
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Menu','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Edit '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menu = $this->m_st_menu->edit($id);
|
||||
$this->load->vars('mst', $menu);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$fieldactive = $this->m_st_menu->fieldactive($id);
|
||||
$this->load->vars('fa', $fieldactive);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
else{
|
||||
$this->session->set_flashdata('message', $this->okedit);
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->prosesedit();
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form view data dengan data terpilih
|
||||
public function view($id) {
|
||||
//----start validate page view-------//
|
||||
if($this->varview==null){redirect($this->index);}
|
||||
//----end validate page view---------//
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'View '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesview';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menu = $this->m_st_menu->edit($id);
|
||||
$this->load->vars('mst', $menu);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menuactive = $this->m_st_menu->menuactive();
|
||||
$this->load->vars('ma', $menuactive);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$fieldactive = $this->m_st_menu->fieldactive($id);
|
||||
$this->load->vars('fa', $fieldactive);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk delete
|
||||
function delete($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->vardelete==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okdelete);
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->delete($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okdisabled);
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->disabled($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okactive);
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->active($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
216
application/controllers/st_rolegroup.php
Normal file
216
application/controllers/st_rolegroup.php
Normal file
@@ -0,0 +1,216 @@
|
||||
<?php
|
||||
//-------------ID menu = 4
|
||||
|
||||
class St_rolegroup extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'Setting';
|
||||
public $title = 'Role Group';
|
||||
public $link = 'st_rolegroup';
|
||||
public $index = 'index.php/st_rolegroup';
|
||||
public $maincontent = 'setting/rolegroup/';
|
||||
public $viewcontent = 'v_rolegroup';
|
||||
public $formcontent = 'form_rolegroup';
|
||||
public $okadd = 'Anda berhasil ADD Role Group Baru';
|
||||
public $okedit = 'Anda berhasil EDIT Role Group';
|
||||
public $okdelete = 'Anda berhasil DELETE Role Group';
|
||||
public $okdisabled = 'Anda berhasil DISABLED Role Group';
|
||||
public $okactive = 'Anda berhasil ACTIVE Role Group';
|
||||
public $idmenu = '4';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
public function index($error = NULL) {
|
||||
$data['title'] = $this->title;
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent.$this->viewcontent;
|
||||
$data['error'] = $error;
|
||||
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$rolegroup = $this->m_st_rolegroup->index();
|
||||
$this->load->vars('mr', $rolegroup);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
// fungsi untuk menampilkan form tambah data
|
||||
public function add() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect($this->index);}
|
||||
//----end validate page tambah---------//
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['parent'] = $this->parent;
|
||||
$data['title'] = 'Tambah '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk memproses penambahan dengan memanggil model
|
||||
public function prosesadd() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect($this->index);}
|
||||
//----end validate page tambah---------//
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Role Group','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Tambah '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}else{
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->insert();
|
||||
$this->session->set_flashdata('message', $this->okadd);
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form edit data dengan data terpilih
|
||||
public function edit($id) {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page edit---------//
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Edit '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$rolegroup = $this->m_st_rolegroup->edit($id);
|
||||
$this->load->vars('mr', $rolegroup);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//funsi untuk memproses update data
|
||||
public function prosesedit() {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page edit---------//
|
||||
$id = $this->input->post('id');
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Role Group','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Edit '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$rolegroup = $this->m_st_rolegroup->edit($id);
|
||||
$this->load->vars('mr', $rolegroup);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
else{
|
||||
$this->session->set_flashdata('message', $this->okedit);
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->prosesedit();
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form view data dengan data terpilih
|
||||
public function view($id) {
|
||||
//----start validate page view-------//
|
||||
if($this->varview==null){redirect($this->index);}
|
||||
//----end validate page view---------//
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'View '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesview';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$rolegroup = $this->m_st_rolegroup->edit($id);
|
||||
$this->load->vars('mr', $rolegroup);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk delete
|
||||
function delete($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->vardelete==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okdelete);
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->delete($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okdisabled);
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->disabled($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okactive);
|
||||
$this->load->model('m_st_rolegroup');
|
||||
$this->m_st_rolegroup->active($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
11
application/core/index.html
Normal file
11
application/core/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/helpers/index.html
Normal file
11
application/helpers/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/hooks/index.html
Normal file
11
application/hooks/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/index.html
Normal file
11
application/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/language/english/index.html
Normal file
11
application/language/english/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/language/index.html
Normal file
11
application/language/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/libraries/index.html
Normal file
11
application/libraries/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/logs/index.html
Normal file
11
application/logs/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/models/index.html
Normal file
11
application/models/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
502
application/models/m_drts_lp_ppi.php
Normal file
502
application/models/m_drts_lp_ppi.php
Normal file
@@ -0,0 +1,502 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class M_drts_lp_ppi extends CI_Model {
|
||||
function ruang(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Pelayanan', "Ya");
|
||||
$query->order_by('Nama', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
//================================================================PLEBITIS
|
||||
function plebitis() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_plebitis.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_plebitis.FK_datamrs_datamedisplebitis_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_plebitis')->result();
|
||||
}
|
||||
|
||||
function medisplebitis(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_pemakaian_infus,Diagnosa_nilai_plebitis_ppi,Tanggal_pemasangan_infus,FK_datamrs_datamedisplebitis_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_pemasangan_infus','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_plebitis')->result();
|
||||
}
|
||||
|
||||
//================================================================VAP
|
||||
|
||||
function vap() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_svap.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_svap.FK_datamrs_datamedissvap_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_svap')->result();
|
||||
}
|
||||
|
||||
function medisvap(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_pemakaian_ventilator,Tanggal_pemasangan_ventilator,Diagnosa_ppi_dpjp,FK_datamrs_datamedissvap_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_pemasangan_ventilator','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_svap')->result();
|
||||
}
|
||||
|
||||
//================================================================HAP
|
||||
|
||||
function hap() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_hap.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_hap.FK_datamrs_datamedishap_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_hap')->result();
|
||||
}
|
||||
|
||||
function medishap(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_tirah_baring,Tanggal_mulai_tirah_baring,Diagnosa_ppi_dpjp,FK_datamrs_datamedishap_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_mulai_tirah_baring','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_hap')->result();
|
||||
}
|
||||
|
||||
//================================================================IAD ANAK
|
||||
|
||||
function iadanak() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_siad_anak.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_siad_anak.FK_datamrs_datamedissiadanak_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_siad_anak')->result();
|
||||
}
|
||||
|
||||
function medisiadanak(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_pemakaian_cvc,Tanggal_pemasangan_cvc,Diagnosa_ppi_dpjp,FK_datamrs_datamedissiadanak_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_pemasangan_cvc','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_siad_anak')->result();
|
||||
}
|
||||
|
||||
//================================================================IAD DEWASA
|
||||
|
||||
function iaddewasa() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_siad_dewasa.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_siad_dewasa.FK_datamrs_datamedissiaddewasa_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_siad_dewasa')->result();
|
||||
}
|
||||
|
||||
function medisiaddewasa(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_pemakaian_cvc,Tanggal_pemasangan_cvc,Diagnosa_ppi_dpjp,FK_datamrs_datamedissiaddewasa_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_pemasangan_cvc','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_siad_dewasa')->result();
|
||||
}
|
||||
|
||||
//================================================================ISK ANAK
|
||||
|
||||
function iskanak() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_sisk_anak.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_sisk_anak.FK_datamrs_datamedissiskanak_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_sisk_anak')->result();
|
||||
}
|
||||
|
||||
function medisiskanak(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_pemakaian_catheter_urine,Tanggal_pemasangan_catheter_urine,Diagnosa_ppi_dpjp,FK_datamrs_datamedissiskanak_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_pemasangan_catheter_urine','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_sisk_anak')->result();
|
||||
}
|
||||
|
||||
//================================================================ISK DEWASA
|
||||
|
||||
function iskdewasa() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_sisk_dewasa.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_sisk_dewasa.FK_datamrs_datamedissiskdewasa_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_sisk_dewasa')->result();
|
||||
}
|
||||
|
||||
function medisiskdewasa(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_pemakaian_catheter_urine,Tanggal_pemasangan_catheter_urine,Diagnosa_ppi_dpjp,FK_datamrs_datamedissiskdewasa_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_pemasangan_catheter_urine','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_sisk_dewasa')->result();
|
||||
}
|
||||
|
||||
//================================================================SIOB
|
||||
|
||||
function idobersih() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_siob.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_siob.FK_datamrs_datamedissiob_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_siob')->result();
|
||||
}
|
||||
|
||||
function medisidobersih(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_hari_perawatan,Tanggal_operasi,Diagnosa_ppi_dpjp,FK_datamrs_datamedissiob_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_operasi','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_siob')->result();
|
||||
}
|
||||
|
||||
//================================================================SIOBT
|
||||
|
||||
function idoterkontaminasi() {
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->join('directus_users', 'directus_users.id = data_medis_siobt.user_created', 'left');
|
||||
$query->join('data_mrs', 'data_mrs.id = data_medis_siobt.FK_datamrs_datamedissiobt_ID', 'left');
|
||||
$query->join('data_ppi', 'data_ppi.id = data_mrs.FK_ppi_datamrs_ID', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_mrs.Ruang', 'left');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Nama_pasien', 'ASC');
|
||||
$query->order_by('No_rekam_medis', 'ASC');
|
||||
$query->order_by('Tanggal_mrs', 'ASC');
|
||||
$query->order_by('Monitoring_ke', 'ASC');
|
||||
return $query->get('data_medis_siobt')->result();
|
||||
}
|
||||
|
||||
function medisidoterkontaminasi(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('Monitoring_ke,Lama_hari_perawatan,Tanggal_operasi,Diagnosa_ppi_dpjp,FK_datamrs_datamedissiobt_ID');
|
||||
$query->where('Tanggal_monitoring >=', $awal);
|
||||
$query->where('Tanggal_monitoring <=', $akhir);
|
||||
$query->order_by('Tanggal_operasi','DESC');
|
||||
$query->order_by('Monitoring_ke','DESC');
|
||||
return $query->get('data_medis_siobt')->result();
|
||||
}
|
||||
|
||||
function datamrs(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('mrs.id, mrs.Tanggal_mrs, mrs.Tanggal_krs, ruang.Kode, ruang.Nama, ruang.Kelas');
|
||||
$query->join('daftar_lokasi_ruang ruang', 'ruang.id = mrs.Ruang', 'left');
|
||||
return $query->get('data_mrs as mrs')->result();
|
||||
}
|
||||
|
||||
function cucitangan(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('daftar_lokasi_ruang.Nama as namaruang,daftar_lokasi_ruang.Kode as koderuang, daftar_lokasi_ruang.Kelas as kelasruang, daftar_lokasi_ruang.id as idruang,
|
||||
directus_users.first_name as first_name,
|
||||
data_cuci_tangan.date_created as date_created,
|
||||
data_cuci_tangan_petugas.Petugas_cuci_tangan as petugas_cuci_tangan,
|
||||
data_cuci_tangan.Nilai_kepatuhan as nilai_kepatuhan,
|
||||
');
|
||||
$query->join('data_tahun_bulan_cuci_tangan', 'data_ruang_cuci_tangan.id = data_tahun_bulan_cuci_tangan.FK_ruang_tahun_bulan_ID', 'left');
|
||||
$query->join('data_cuci_tangan_petugas', 'data_tahun_bulan_cuci_tangan.id = data_cuci_tangan_petugas.FK_tahun_bulan_petugas_ID', 'left');
|
||||
$query->join('data_cuci_tangan', 'data_cuci_tangan_petugas.id = data_cuci_tangan.FK_cuci_tangan_petugas_cuci_tangan_ID', 'left');
|
||||
$query->join('directus_users', 'directus_users.id = data_cuci_tangan.user_created', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_ruang_cuci_tangan.Ruangan', 'left');
|
||||
$query->where('Tanggal_cuci_tangan >=', $awal);
|
||||
$query->where('Tanggal_cuci_tangan <=', $akhir);
|
||||
$query->order_by('daftar_lokasi_ruang.Nama','ASC');
|
||||
$query->order_by('data_cuci_tangan_petugas.Petugas_cuci_tangan','ASC');
|
||||
return $query->get('data_ruang_cuci_tangan')->result();
|
||||
}
|
||||
|
||||
function apd(){
|
||||
if(isset($_POST['tanggalmonitoring'])) {
|
||||
$dateall = $this->input->post('tanggalmonitoring');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('daftar_lokasi_ruang.Nama as namaruang,daftar_lokasi_ruang.Kode as koderuang, daftar_lokasi_ruang.Kelas as kelasruang, daftar_lokasi_ruang.id as idruang,
|
||||
directus_users.first_name as first_name,
|
||||
data_kepatuhan.date_created as date_created,
|
||||
daftar_jenis_tindakan.Jenis_tindakan as jenis_tindakan, daftar_jenis_tindakan.Keterangan as keterangan,
|
||||
data_kepatuhan.A_patuh as apatuh, data_kepatuhan.A_tidak_patuh as atidak_patuh,
|
||||
data_kepatuhan.B_patuh as bpatuh, data_kepatuhan.B_tidak_patuh as btidak_patuh,
|
||||
data_kepatuhan.C_patuh as cpatuh, data_kepatuhan.C_tidak_patuh as ctidak_patuh,
|
||||
data_kepatuhan.D_patuh as dpatuh, data_kepatuhan.D_tidak_patuh as dtidak_patuh,
|
||||
data_kepatuhan.E_patuh as epatuh, data_kepatuhan.E_tidak_patuh as etidak_patuh,
|
||||
data_kepatuhan.F_patuh as fpatuh, data_kepatuhan.F_tidak_patuh as ftidak_patuh,
|
||||
');
|
||||
$query->join('data_apd', 'data_ruang_apd.id = data_apd.FK_ruang_apd_data_apd_ID', 'left');
|
||||
$query->join('data_kepatuhan', 'data_apd.id = data_kepatuhan.FK_data_apd_kepatuhan_ID', 'left');
|
||||
$query->join('directus_users', 'directus_users.id = data_kepatuhan.user_created', 'left');
|
||||
$query->join('daftar_lokasi_ruang', 'daftar_lokasi_ruang.id = data_ruang_apd.Ruangan', 'left');
|
||||
$query->join('daftar_jenis_tindakan', 'daftar_jenis_tindakan.id = data_kepatuhan.Jenis_tindakan', 'left');
|
||||
|
||||
$query->where('Tanggal_apd >=', $awal);
|
||||
$query->where('Tanggal_apd <=', $akhir);
|
||||
$query->order_by('daftar_lokasi_ruang.Nama','ASC');
|
||||
$query->order_by('daftar_lokasi_ruang.Kelas','ASC');
|
||||
$query->order_by('data_kepatuhan.Jenis_tindakan','ASC');
|
||||
return $query->get('data_ruang_apd')->result();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
103
application/models/m_hakakses.php
Normal file
103
application/models/m_hakakses.php
Normal file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
class M_hakakses extends CI_Model {
|
||||
|
||||
function index() {
|
||||
$query = $this->db->get('m_tipeuser');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function tipeuseraktif() {
|
||||
$this->db->where('mt_status', 1);
|
||||
$query = $this->db->get('m_tipeuser');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function insert_tipeuser() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
$insert = array(
|
||||
'mt_nama' => $this->input->post('nama'),
|
||||
'mt_status' => $setstatus,
|
||||
);
|
||||
$insert = $this->db->insert('m_tipeuser', $insert);
|
||||
}
|
||||
|
||||
function edit_tipeuser($id) {
|
||||
$this->db->where('mt_id', $id);
|
||||
$query = $this->db->get('m_tipeuser');
|
||||
return $query;
|
||||
}
|
||||
|
||||
function prosesedit_tipeuser() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
$update = array(
|
||||
'mt_nama' => $this->input->post('nama'),
|
||||
'mt_status' => $setstatus,
|
||||
);
|
||||
$id = $this->input->post('id');
|
||||
$this->db->where('mt_id', $id);
|
||||
$this->db->update('m_tipeuser', $update);
|
||||
}
|
||||
|
||||
function view_tipeuser($id) {
|
||||
$this->db->where('mt_id', $id);
|
||||
$query = $this->db->get('m_tipeuser');
|
||||
return $query;
|
||||
}
|
||||
|
||||
function delete_tipeuser($id) {
|
||||
$this->db->where('mt_id', $id);
|
||||
$this->db->delete('m_tipeuser');
|
||||
|
||||
$this->db->where('mh_tipeuser_id', $id);
|
||||
$this->db->delete('m_hakakses');
|
||||
}
|
||||
|
||||
function disabled_tipeuser($id) {
|
||||
$update = array(
|
||||
'mt_status' => 0,
|
||||
);
|
||||
$this->db->where('mt_id', $id);
|
||||
$this->db->update('m_tipeuser', $update);
|
||||
}
|
||||
|
||||
function active_tipeuser($id) {
|
||||
$update = array(
|
||||
'mt_status' => 1,
|
||||
);
|
||||
$this->db->where('mt_id', $id);
|
||||
$this->db->update('m_tipeuser', $update);
|
||||
}
|
||||
|
||||
function parentmenu() {
|
||||
$this->db->order_by("mm_urutan", "asc");
|
||||
$this->db->where('mm_level', 1);
|
||||
$query = $this->db->get('m_menu');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function childmenu() {
|
||||
$this->db->order_by("mm_urutan", "asc");
|
||||
$this->db->where('mm_level', 2);
|
||||
$query = $this->db->get('m_menu');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function menuall(){
|
||||
$this->db->order_by("mm_urutan", "asc");
|
||||
$query = $this->db->get('m_menu');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function edit_hakakses($id) {
|
||||
$this->db->where('mh_tipeuser_id', $id);
|
||||
$query = $this->db->get('m_hakakses');
|
||||
return $query->result();
|
||||
}
|
||||
}
|
||||
?>
|
||||
30
application/models/m_login.php
Normal file
30
application/models/m_login.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
class M_login extends CI_Model{
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
}
|
||||
public function validate(){
|
||||
$username = $this->security->xss_clean($this->input->post('username'));
|
||||
$password = md5($this->security->xss_clean($this->input->post('password')));
|
||||
$this->db->join('master_rolegroup', 'mr_id = mu_fk_rolegroup_id', 'LEFT');
|
||||
$this->db->where('mu_username', $username);
|
||||
$this->db->where('mu_password', $password);
|
||||
$query = $this->db->get('master_user');
|
||||
if($query->num_rows() == 1)
|
||||
{
|
||||
|
||||
$row = $query->row();
|
||||
$data = array(
|
||||
's_IDUser' => $row->mu_id,
|
||||
's_UserName' => $row->mu_username,
|
||||
's_IDRoleGroup' => $row->mu_fk_rolegroup_id,
|
||||
's_NamaRoleGroup' => $row->mr_name,
|
||||
'validated' => true
|
||||
);
|
||||
$this->session->set_userdata($data);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
?>
|
||||
48
application/models/m_lokasi_ruang.php
Normal file
48
application/models/m_lokasi_ruang.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class M_lokasi_ruang extends CI_Model {
|
||||
function lokasiruang(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr1(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '1');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr2(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '2');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr3(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '3');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr4(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '4');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr5(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '5');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
81
application/models/m_satu_data_master.php
Normal file
81
application/models/m_satu_data_master.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class M_satu_data_master extends CI_Model {
|
||||
function organisasigr1(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '1');
|
||||
$query->order_by('Nama', 'ASC');
|
||||
return $query->get('daftar_organisasi')->result();
|
||||
}
|
||||
function organisasigr2(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '2');
|
||||
$query->order_by('Nama', 'ASC');
|
||||
return $query->get('daftar_organisasi')->result();
|
||||
}
|
||||
function organisasigr3(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '3');
|
||||
$query->order_by('Nama', 'ASC');
|
||||
return $query->get('daftar_organisasi')->result();
|
||||
}
|
||||
function organisasigr4(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '4');
|
||||
$query->order_by('Nama', 'ASC');
|
||||
return $query->get('daftar_organisasi')->result();
|
||||
}
|
||||
function organisasigr5(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '5');
|
||||
$query->order_by('Nama', 'ASC');
|
||||
return $query->get('daftar_organisasi')->result();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------Lokasi Ruang
|
||||
|
||||
function lokasiruang(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr1(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '1');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr2(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '2');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr3(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '3');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr4(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '4');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
function lokasiruanggr5(){
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->where('Group', '5');
|
||||
$query->order_by('Kode', 'ASC');
|
||||
return $query->get('daftar_lokasi_ruang')->result();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
32
application/models/m_saturssa_report_lp.php
Normal file
32
application/models/m_saturssa_report_lp.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class M_saturssa_report_lp extends CI_Model {
|
||||
|
||||
function ketepatanantrianoperasi(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('saturssa', TRUE);
|
||||
$query->select('dpo.No_rekam_medis as norm, dpo.No_KTP as nik, dpo.Nama_pasien as namapasien, dpo.Jenis_kelamin as jk, dpo.Tanggal_lahir as tgllahir, dpo.Umur as umur, dpo.Tanggal_daftar as tgldaftar, dpo.Tanggal_selesai_operasi as tglselesai, dpo.Kategori_operasi as kodekategorioperasi,
|
||||
dko.Kategori as kategorioperasi
|
||||
');
|
||||
$query->join('daftar_kategori_operasi AS dko', 'dko.id = dpo.Kategori_operasi', 'left');
|
||||
|
||||
$query->where('dpo.Tanggal_selesai_operasi >=', $awal);
|
||||
$query->where('dpo.Tanggal_selesai_operasi <=', $akhir);
|
||||
$query->where('dpo.Status_operasi',"2");
|
||||
$query->order_by('dpo.Tanggal_daftar', 'ASC');
|
||||
return $query->get('data_pasien_operasi AS dpo ')->result();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
240
application/models/m_simrs_kemenkes_lp.php
Normal file
240
application/models/m_simrs_kemenkes_lp.php
Normal file
@@ -0,0 +1,240 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class M_simrs_kemenkes_lp extends CI_Model {
|
||||
function icd(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('icd.icd_verified as dxutama, tp.st_asal_masuk as asalmasuk, i.jenis_penyakit as jepenyakit
|
||||
,count(tp.nomr) as allicd
|
||||
,count(tp.nomr) FILTER (WHERE tp.status = 2 ) AS mrs
|
||||
,count(tp.nomr) FILTER (WHERE tp.status != 2 ) AS krs');
|
||||
$query->join('t_icd as icd', 'icd.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('icd as i', 'i.icd_code = icd.icd_verified', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('icd.icd_verified_order', '1');
|
||||
$query->where('icd.st_sebab_mati is null', null, true);
|
||||
$query->group_by('icd.icd_verified, tp.st_asal_masuk, i.jenis_penyakit');
|
||||
return $query->get('t_pendaftaran as tp ')->result();
|
||||
}
|
||||
|
||||
function billingrajal(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('icd.icd_verified as dxutama, tp.st_asal_masuk as asalmasuk
|
||||
,count(tb.nomr) as allbill
|
||||
,count(tb.nomr) FILTER (WHERE tp.status = 2 ) AS mrs
|
||||
,count(tb.nomr) FILTER (WHERE tp.status != 2 ) AS krs
|
||||
');
|
||||
$query->join('t_icd as icd', 'icd.idxdaftar = tb.idxdaftar', 'left');
|
||||
$query->join('t_pendaftaran as tp', 'tp.idxdaftar = tb.idxdaftar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('icd.icd_verified_order', '1');
|
||||
$query->where('icd.st_sebab_mati is null', null, true);
|
||||
$query->group_by('icd.icd_verified, tp.st_asal_masuk');
|
||||
return $query->get('t_billrajal as tb ')->result();
|
||||
}
|
||||
|
||||
function orderbatalbillrajal(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('icd.icd_verified as dxutama, tp.st_asal_masuk as asalmasuk
|
||||
,count(to2.nomr) as allbill
|
||||
,count(to2.nomr) FILTER (WHERE tp.status = 2 ) AS mrs
|
||||
,count(to2.nomr) FILTER (WHERE tp.status != 2) AS krs
|
||||
');
|
||||
$query->join('t_icd as icd', 'icd.idxdaftar = to2.idxdaftar', 'left');
|
||||
$query->join('t_pendaftaran as tp', 'tp.idxdaftar = to2.idxdaftar', 'left');
|
||||
$query->join('t_billrajal as tbrj', 'to2.idxbill = tbrj.idxbill ', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('to2.status_orderbatal', 'SELESAI');
|
||||
$query->where('tbrj.status', 'BATAL');
|
||||
$query->where('icd.icd_verified_order', '1');
|
||||
$query->where('icd.st_sebab_mati is null', null, true);
|
||||
$query->group_by('icd.icd_verified, tp.st_asal_masuk');
|
||||
return $query->get('t_orderbatalbill as to2 ')->result();
|
||||
}
|
||||
|
||||
function billrajalpenunjang(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tbr.kodetarif as kodetarif
|
||||
,mr.kelompok as kelompok
|
||||
,tr.uraian_tarif as tarif, tr.kelompok_tarif as kelompoktarif, tr.kel_smf as kelompoksmf
|
||||
,count(tbr.kodetarif) AS allbill
|
||||
,count(tbr.kodetarif) FILTER (WHERE tp.status = 2) AS mrs
|
||||
,count(tbr.kodetarif) FILTER (WHERE tp.status != 2) AS krs
|
||||
,sum(tbr.tarifrs) AS alltrkrs
|
||||
,sum(tbr.tarifrs) FILTER (WHERE tp.status = 2) AS trmrs
|
||||
,sum(tbr.tarifrs) FILTER (WHERE tp.status != 2) AS trkrs
|
||||
');
|
||||
$query->join('t_pendaftaran as tp', 'tp.idxdaftar = tbr.idxdaftar', 'left');
|
||||
$query->join('m_ruang as mr', 'mr.no = tbr.kode_ruang', 'left');
|
||||
$query->join('m_tarif_rs as tr', 'tr.kode_tarif = tbr.kodetarif', 'left');
|
||||
$query->where('tbr.tanggal >=', $awal);
|
||||
$query->where('tbr.tanggal <=', $akhir);
|
||||
$query->where('tbr.status', 'SELESAI');
|
||||
//$query->where('mr.kelompok', 'IGD');
|
||||
//$query->or_where('tr.kel_smf', 'LABORATORIUM');
|
||||
//$query->or_where('tr.kel_smf', 'RADIOLOGI');
|
||||
//$query->order_by('mr.kelompok', 'ASC');
|
||||
$query->order_by('tr.kelompok_tarif', 'ASC');
|
||||
$query->group_by('tbr.kodetarif,mr.kelompok,tr.uraian_tarif,tr.kelompok_tarif,tr.kel_smf');
|
||||
return $query->get('t_billrajal as tbr ')->result();
|
||||
}
|
||||
|
||||
function icdcm(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('icm.icd_verified as icd9, tp.st_asal_masuk as asalmasuk, icdcm.keterangan as icdcmketerangan
|
||||
,count(icm.icd_verified) AS allicdm
|
||||
,count(icm.icd_verified) FILTER (WHERE tp.status = 2) AS mrs
|
||||
,count(icm.icd_verified) FILTER (WHERE tp.status != 2) AS krs
|
||||
|
||||
,sum(tbr.tarifrs) AS alltr
|
||||
,sum(tbr.tarifrs) FILTER (WHERE tp.status = 2) AS trmrs
|
||||
,sum(tbr.tarifrs) FILTER (WHERE tp.status != 2) AS trkrs
|
||||
');
|
||||
$query->join('icd_cm as icdcm', 'icdcm.kode = icm.icd_verified', 'left');
|
||||
$query->join('t_pendaftaran as tp', 'tp.idxdaftar = icm.idxdaftar', 'left');
|
||||
$query->join('t_billrajal as tbr', 'tbr.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('tbr.status', 'SELESAI');
|
||||
$query->where('icm.icd_verified is NOT NULL', NULL, FALSE);
|
||||
$query->group_by('icm.icd_verified, tp.st_asal_masuk, icdcm.keterangan');
|
||||
return $query->get('t_icd_cm as icm')->result();
|
||||
}
|
||||
|
||||
|
||||
function pxigd(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tp.nosep as nosep, tp.masukpoly as masukpoly, tp.keluarpoly as keluarpoly, tp.diagnosa_utama as dxutama,
|
||||
tp.st_asal_masuk as asalmasuk, tp.kdrujuk as rujuk, tp.idxdaftar as idxdaftar,
|
||||
i.jenis_penyakit as jepenyakit,
|
||||
ps.jeniskelamin as gender, ps.tgllahir as tgllahir,
|
||||
cb.nama as carabayar,
|
||||
skl.keterangan as statuskeluar, skl.status as kdstatuskeluar,
|
||||
skc.nama_kecelakaan as statuskll,
|
||||
ddt.anamnesa as anamnesa, ddt.tekanan_darah as tekanandarah, ddt.tinggi_badan as tinggibadan, ddt.berat_badan as beratbadan, ddt.golongan_darah as golongandarah,
|
||||
mr.no as kodepoly, mr.nama as namapoly,
|
||||
dms.keluarrs as keluarrs
|
||||
');
|
||||
$query->join('icd as i', 'i.icd_code = tp.diagnosa_utama', 'left');
|
||||
$query->join('m_pasien as ps', 'ps.nomr = tp.nomr', 'left');
|
||||
$query->join('m_carabayar as cb', 'cb.kode = tp.kdcarabayar', 'left');
|
||||
$query->join('m_statuskeluar as skl', 'skl.status = tp.status', 'left');
|
||||
$query->join('m_status_kecelakaan as skc', 'skc.kode_kecelakaan = tp.status_kecelakaan', 'left');
|
||||
$query->join('t_diagnosadanterapi as ddt', 'ddt.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('m_ruang as mr', 'mr.no = tp.kdpoly', 'left');
|
||||
$query->join('t_admission as dms', 'dms.id_admission = tp.idxdaftar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('tp.st_asal_masuk', 'RAWAT JALAN EMERGENCY');
|
||||
return $query->get('t_pendaftaran as tp ')->result();
|
||||
}
|
||||
|
||||
function icdcmigd(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('icm.icd_verified as icd9, icdcm.keterangan as icdcmketerangan, icm.idxdaftar as idxdaftar');
|
||||
$query->join('icd_cm as icdcm', 'icdcm.kode = icm.icd_verified', 'left');
|
||||
$query->join('t_pendaftaran as tp', 'tp.idxdaftar = icm.idxdaftar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('icm.icd_verified is NOT NULL', NULL, FALSE);
|
||||
$query->order_by('icm.icd_verified_order', 'ASC');
|
||||
return $query->get('t_icd_cm as icm')->result();
|
||||
}
|
||||
|
||||
function icdigd(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('icd.icd_code as icd10, icd.jenis_penyakit as icdketerangan, ticd.idxdaftar as idxdaftar');
|
||||
$query->join('icd as icd', 'icd.icd_code = ticd.icd_verified', 'left');
|
||||
$query->join('t_pendaftaran as tp', 'tp.idxdaftar = ticd.idxdaftar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('ticd.icd_verified is NOT NULL', NULL, FALSE);
|
||||
$query->order_by('ticd.idx', 'ASC');
|
||||
return $query->get('t_icd as ticd')->result();
|
||||
}
|
||||
}
|
||||
?>
|
||||
862
application/models/m_simrs_report_lp.php
Normal file
862
application/models/m_simrs_report_lp.php
Normal file
@@ -0,0 +1,862 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class M_simrs_report_lp extends CI_Model {
|
||||
function labmikroall(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('too.tglorder AS tglorder, too.tgl_hasil AS tglhasil, too.status AS statusorder
|
||||
,tom.nonota AS nota, tom.nomr AS nomr, tom.st_rajal AS strajal
|
||||
,tbl.nobill AS nobillrajal, tbl.status AS billstatus, tbl.status_verifikasi AS verstatus, tbl.kodetarif AS kodetarif
|
||||
,mps.noktp AS ktp, mps.noktp_baru AS ktpbaru, mps.nama AS namapasien, mps.tgllahir AS tgllahir, mps.jeniskelamin AS jeniskelamin,mps.alamat AS alamat
|
||||
,pap.noktp AS ktpaps, pap.nama AS namapasienaps, pap.tgllahir AS tgllahiraps, pap.jeniskelamin AS jeniskelaminaps, pap.alamat AS alamataps
|
||||
,mcl.nama AS namabayarrajal
|
||||
,mrl.nama AS namaruangrajal
|
||||
,mcn.nama AS namabayarranap
|
||||
,mrn.nama AS namaruangranap
|
||||
,mpl.nama AS poliklinik
|
||||
,mfl.jenis_kelompok AS jeniskelompok, mfl.nama_field AS namafield
|
||||
,tbl.aps AS tbsrajal
|
||||
,tbn.aps AS tbsranap
|
||||
');
|
||||
$query->join('t_billrajal AS tbl', 'tbl.nonota = CAST(tom.nonota AS int8)', 'left');
|
||||
$query->join('t_billranap AS tbn', 'tbn.nonota = CAST(tom.nonota AS int8)', 'left');
|
||||
$query->join('m_pasien AS mps', 'mps.nomr = tom.nomr', 'left');
|
||||
$query->join('m_pasien_aps AS pap', 'pap.nomr = tom.nomr', 'left');
|
||||
$query->join('m_carabayar AS mcl', 'mcl.kode = tbl.carabayar', 'left');
|
||||
$query->join('m_ruang AS mrl', 'mrl.no = tbl.kode_ruang', 'left');
|
||||
|
||||
$query->join('m_carabayar AS mcn', 'mcn.kode = tbn.carabayar', 'left');
|
||||
$query->join('m_ruang AS mrn', 'mrn.no = tbn.kode_ruang', 'left');
|
||||
|
||||
$query->join('m_poly AS mpl', 'mpl.kode = tom.kdpoli', 'left');
|
||||
$query->join('t_orderlabmikro AS too', 'too.nolab = tom.nolab', 'left');
|
||||
$query->join('m_form_lab AS mfl', 'mfl.form_id = too.idxform ', 'left');
|
||||
|
||||
$query->where('tom.tglorder >=', $awal);
|
||||
$query->where('tom.tglorder <=', $akhir);
|
||||
//$query->where('too.status', '1');
|
||||
//$query->where('tom.st_rajal', '1');
|
||||
return $query->get('t_orderlabmikro_main AS tom ')->result();
|
||||
}
|
||||
|
||||
function pasien(){
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('mps.nomr, mps.noktp AS ktp, mps.noktp_baru AS ktpbaru, mps.nama AS namapasien, mps.tgllahir AS tgllahir, mps.jeniskelamin AS jeniskelamin,mps.alamat AS alamat');
|
||||
return $query->get('m_pasien AS mps')->result();
|
||||
}
|
||||
|
||||
function pasienaps(){
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('mps.nomr, mps.noktp AS ktp, mps.nama AS namapasien, mps.tgllahir AS tgllahir, mps.jeniskelamin AS jeniskelamin,mps.alamat AS alamat');
|
||||
return $query->get('m_pasien_aps AS mps')->result();
|
||||
}
|
||||
|
||||
function klaimmikro(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tom.tglorder as tglorder, tom.st_rajal as strajal, tom.nonota as nonota,
|
||||
too.tgl_hasil as tglhasil, too.idxdaftar as idxdaftar, too.no_lokal as nolokal, too.status AS statusorder,
|
||||
trp.nobill as billranap,
|
||||
trl.nobill as billrajal,
|
||||
mps.nama as namareg, mps.nomr as nomrreg, mps.noktp as noktpreg, mps.tgllahir as tgllahirreg, mps.jeniskelamin as jkreg, mps.alamat as alamatreg,
|
||||
pas.nama as namaaps, pas.nomr as nomraps, pas.noktp as noktpaps, pas.tgllahir as tgllahiraps, pas.jeniskelamin as jkaps, pas.alamat as alamataps,
|
||||
tbl.status as statusrajal, tbl.aps as apsrajal, tbl.user_bataltindakan as batalrajal,tbl.kodetarif as kodetarifrajal, tbl.status_verifikasi AS verstatusrajal,
|
||||
tbn.status as statusranap, tbn.aps as apsranap, tbn.user_bataltindakan as batalranap,tbn.kodetarif as kodetarifranap, tbn.status_verifikasi AS verstatusranap,
|
||||
mfl.jenis_kelompok as jenkel,mfl.nama_field as jenpemeriksaan,
|
||||
mcl.nama as namabayarrajal, mcp.nama as namabayarranap,
|
||||
mru.nama as namaruang');
|
||||
$query->join('t_billrajal AS tbl', 'tbl.nonota = CAST(tom.nonota AS int8)', 'left');
|
||||
$query->join('t_bayarrajal AS trl', 'trl.idxbill = tbl.idxbill', 'left');
|
||||
$query->join('m_carabayar AS mcl', 'mcl.kode = tbl.carabayar', 'left');
|
||||
$query->join('t_billranap AS tbn', 'tbn.nonota = CAST(tom.nonota AS int8)', 'left');
|
||||
$query->join('t_bayarranap AS trp', 'trp.idxbill = tbn.idxbill', 'left');
|
||||
$query->join('m_carabayar AS mcp', 'mcp.kode = tbn.carabayar', 'left');
|
||||
$query->join('m_pasien AS mps', 'mps.nomr = tom.nomr', 'left');
|
||||
$query->join('m_pasien_aps AS pas', 'pas.nomr = tom.nomr', 'left');
|
||||
$query->join('t_orderlabmikro AS too', 'too.nolab = tom.nolab', 'left');
|
||||
$query->join('m_form_lab AS mfl', 'mfl.form_id = too.idxform', 'left');
|
||||
$query->join('m_ruang AS mru', 'mru.no = too.kdpoli', 'left');
|
||||
|
||||
$query->where('date(tom.tglorder) >=', $awal);
|
||||
$query->where('date(tom.tglorder) <=', $akhir);
|
||||
$query->where('tom.st_periksa', '1');
|
||||
|
||||
return $query->get('t_orderlabmikro_main AS tom ')->result();
|
||||
}
|
||||
|
||||
function icd9(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('icm.nomr as nomr, icm.idxdaftar as idxdaftar, icm.icd as icdnon, icm.icd_verified as icdver, icm.icd_verified_order as icdorder,
|
||||
micdnon.keterangan as keticdnon,
|
||||
micdver.keterangan as keticdver,
|
||||
tp.tglreg,
|
||||
mr.nama as klinik,
|
||||
mp.nama as namapasien');
|
||||
$query->join('icd_cm AS micdnon', 'micdnon.kode = icm.icd', 'left');
|
||||
$query->join('icd_cm AS micdver', 'micdver.kode = icm.icd_verified', 'left');
|
||||
$query->join('t_pendaftaran as tp', 'tp.idxdaftar = icm.idxdaftar', 'left');
|
||||
$query->join('m_ruang as mr', 'mr.no = tp.kdpoly', 'left');
|
||||
$query->join('m_pasien as mp', 'mp.nomr = tp.nomr', 'left');
|
||||
$query->where('icm.status_rajal', '1');
|
||||
$query->where('date(tp.tglreg) >=', $awal);
|
||||
$query->where('date(tp.tglreg) <=', $akhir);
|
||||
$query->order_by('tp.tglreg', 'ASC');
|
||||
$query->order_by('icm.idxdaftar', 'ASC');
|
||||
$query->order_by('icm.icd_verified_order', 'ASC');
|
||||
return $query->get('t_icd_cm AS icm ')->result();
|
||||
}
|
||||
|
||||
function pasienbaru(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tp.tglreg as tglregistrasi, mr.nama as klinik,
|
||||
,count(tp.nomr) FILTER (WHERE tp.pasienbaru = 0 ) AS pasienlama
|
||||
,count(tp.nomr) FILTER (WHERE tp.pasienbaru = 1 ) AS pasienbaru
|
||||
,count(tp.nomr) as allpasien');
|
||||
$query->join('m_ruang as mr', 'mr.no = tp.kdpoly', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->group_by('tp.tglreg, mr.nama');
|
||||
$query->order_by('tp.tglreg', 'ASC');
|
||||
$query->order_by('mr.nama', 'ASC');
|
||||
return $query->get('t_pendaftaran as tp ')->result();
|
||||
}
|
||||
|
||||
function pasiendetail(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tp.tglreg as tglregistrasi, tp.pasienbaru as statuspasien, tp.nosep as nosep, tp.nomr as nomr, tp.idxdaftar as idxdaftar,
|
||||
mr.nama as klinik,
|
||||
mp.nama as namapasien, mp.jeniskelamin as jkelamin,
|
||||
tbl.nobill as nobill,
|
||||
msk.keterangan as statuskeluar,
|
||||
mdk.kode_dpjp as kddokter, mdk.namadokter as dpjp,
|
||||
mcr.nama as penjamin,
|
||||
array(select ticd.icd
|
||||
from t_icd as ticd
|
||||
where ticd.idxdaftar = tp.idxdaftar
|
||||
and ticd.icd_verified IS NULL
|
||||
) AS icd,
|
||||
array(select ticd.icd_verified
|
||||
from t_icd as ticd
|
||||
where ticd.idxdaftar = tp.idxdaftar
|
||||
and ticd.icd_verified IS NOT NULL
|
||||
) AS icd_verif,
|
||||
array(select trm.diagnosa_utama
|
||||
from t_resumemedis as trm
|
||||
where trm.idxrajal = tp.idxdaftar
|
||||
) AS icd_resume,
|
||||
');
|
||||
$query->join('m_pasien as mp', 'mp.nomr = tp.nomr', 'left');
|
||||
$query->join('m_ruang as mr', 'mr.no = tp.kdpoly', 'left');
|
||||
$query->join('t_billrajal AS tbl', 'tbl.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('m_statuskeluar AS msk', 'msk.status = tp.status', 'left');
|
||||
$query->join('t_resumemedis AS trm', 'trm.idxrajal = tp.idxdaftar', 'left');
|
||||
$query->join('m_dokter AS mdk', 'mdk.kddokter = trm.dpjp', 'left');
|
||||
$query->join('m_carabayar AS mcr', 'mcr.kode = tp.kdcarabayar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->group_by('tp.tglreg, mr.nama, tp.pasienbaru, tp.nosep, mp.nama, mp.jeniskelamin, tp.nomr, tbl.nobill, msk.keterangan, tp.idxdaftar, mdk.kode_dpjp, mdk.namadokter, mcr.nama');
|
||||
$query->order_by('tp.tglreg', 'ASC');
|
||||
$query->order_by('mr.nama', 'ASC');
|
||||
return $query->get('t_pendaftaran as tp ')->result();
|
||||
}
|
||||
|
||||
function pasiendetailranap(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select("
|
||||
tp.masukpoly as masukklinik, tp.keluarpoly as keluarklinik, tp.st_asal_masuk as asalmasuk,
|
||||
mrj.nama as namapoly,
|
||||
ta.masukrs as masukrs, ta.keluarrs as keluarrs,
|
||||
mp.nomr as nomr, mp.nama as namapasien, mp.jeniskelamin as jeniskelamin,
|
||||
mr.nama as namaruang, ms.keterangan as statuspulang,
|
||||
rm.keadaan_pulang as keadaanpulang, mcr.nama as penjamin, mdk.namadokter as dpjp,
|
||||
array(select ticd.icd
|
||||
from t_icd as ticd
|
||||
where ticd.idxdaftar = ta.id_admission
|
||||
and ticd.status_rajal = '0'
|
||||
and ticd.icd_verified is null
|
||||
and ticd.st_sebab_mati is null
|
||||
) AS icd,
|
||||
array(select ticd.icd
|
||||
from t_icd as ticd
|
||||
where ticd.idxdaftar = ta.id_admission
|
||||
and ticd.status_rajal = '0'
|
||||
and ticd.icd_verified is null
|
||||
and ticd.st_sebab_mati is not null
|
||||
) AS icdmati,
|
||||
array(select ticd.icd_verified
|
||||
from t_icd as ticd
|
||||
where ticd.idxdaftar = ta.id_admission
|
||||
and ticd.status_rajal = '0'
|
||||
and ticd.icd_verified is not null
|
||||
and ticd.st_sebab_mati is null
|
||||
) AS icdverif,
|
||||
array(select ticd.icd_verified
|
||||
from t_icd as ticd
|
||||
where ticd.idxdaftar = ta.id_admission
|
||||
and ticd.status_rajal = '0'
|
||||
and ticd.icd_verified is not null
|
||||
and ticd.st_sebab_mati is not null
|
||||
) AS icdverifmati,
|
||||
(select tb.nobill
|
||||
from t_billrajal tb
|
||||
where tb.idxdaftar = ta.id_admission
|
||||
limit 1
|
||||
) as nobilrajal,
|
||||
(select tn.nobill
|
||||
from t_billranap tn
|
||||
where tn.idxdaftar = ta.id_admission
|
||||
limit 1
|
||||
) as nobilranap,
|
||||
(select SUM(tp.jumlah_bayar)
|
||||
from t_billranap tn
|
||||
join t_bayarranap bran on bran.idxbill = tn.idxbill and bran.st_carabayar = 2
|
||||
join t_piutang tp on tp.idxbill = bran.idxbill and tp.nobilling = bran.nobill and (tp.st_piutang is null or tp.st_piutang = 'LUNAS')
|
||||
where tn.idxdaftar = ta.id_admission
|
||||
) as total_biaya,
|
||||
");
|
||||
$query->join('m_pasien as mp', 'mp.nomr = ta.nomr', 'left');
|
||||
$query->join('m_ruang as mr', 'mr.no = ta.noruang', 'left');
|
||||
$query->join('t_resumepulang as rp', 'rp.idadmission = ta.id_admission', 'left');
|
||||
$query->join('t_resumemedis as rm', 'rm.idxranap = ta.id_admission', 'left');
|
||||
$query->join('m_statuskeluar as ms', 'ms.status = rp.statuspulang', 'left');
|
||||
$query->join('t_pendaftaran as tp', 'tp.idxdaftar = ta.id_admission', 'left');
|
||||
$query->join('m_ruang as mrj', 'mrj.no = tp.kdpoly', 'left');
|
||||
$query->join('m_carabayar as mcr', 'mcr.kode = tp.kdcarabayar', 'left');
|
||||
$query->join('m_dokter as mdk', 'mdk.kddokter = rm.dpjp', 'left');
|
||||
$query->order_by('ta.masukrs', 'ASC');
|
||||
$query->where("ta.keluarrs BETWEEN '".$awal."' and '".$akhir."'");
|
||||
return $query->get('t_admission as ta ')->result();
|
||||
}
|
||||
|
||||
function pasienikpk(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tp.tglreg as tglregistrasi, tp.pasienbaru as statuspasien, tp.nosep as nosep, tp.nomr as nomr, tp.idxdaftar as idxdaftar,
|
||||
mr.nama as klinik,
|
||||
mp.nama as namapasien, mp.jeniskelamin as jkelamin,
|
||||
tbl.nobill as nobill,
|
||||
msk.keterangan as statuskeluar,
|
||||
mcr.nama as carabayar
|
||||
');
|
||||
$query->join('m_pasien as mp', 'mp.nomr = tp.nomr', 'left');
|
||||
$query->join('m_ruang as mr', 'mr.no = tp.kdpoly', 'left');
|
||||
$query->join('t_billrajal AS tbl', 'tbl.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('m_statuskeluar AS msk', 'msk.status = tp.status', 'left');
|
||||
$query->join('m_carabayar AS mcr', 'mcr.kode = tp.kdcarabayar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->group_by('tp.tglreg, mr.nama, tp.pasienbaru, tp.nosep, mp.nama, mp.jeniskelamin, tp.nomr, tbl.nobill, msk.keterangan, tp.idxdaftar,mcr.nama');
|
||||
$query->order_by('tp.tglreg', 'ASC');
|
||||
$query->order_by('mr.nama', 'ASC');
|
||||
return $query->get('t_pendaftaran as tp ')->result();
|
||||
}
|
||||
|
||||
function pasienkeuangan(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tp.tglreg as tglregistrasi, tp.pasienbaru as statuspasien, tp.nosep as nosep, tp.nomr as nomr, tp.idxdaftar as idxdaftar, tp.st_asal_masuk as subsistem,
|
||||
mp.nama as namapasien, mcr.nama as penjamin,
|
||||
|
||||
tbl.nobill as nobillrajal, tbl.kodetarif as kodetarifrajal, tbl.tarifrs as tarifrsrajal, tbl.tanggal as tglbillrajal,
|
||||
mrrj.nama as ruangrajal,
|
||||
mdkj.namadokter as dokterrajal, mdkj.kdsmf as smfrajal,
|
||||
tbrj.lunas as lunasbayarrajal, tbrj.tglbayar as tglbayarrajal, tbrj.jambayar as jambayarrajal, tbrj.jmbayar as jmlbayarrajal, tbrj.status as stbayarrajal, tbrj.nip as kasirrajal,
|
||||
mtrj.kelompok_tarif as keltarifrajal,
|
||||
|
||||
tbp.nobill as nobillranap, tbp.kodetarif as kodetarifranap, tbp.tarifrs as tarifrsranap, tbp.tanggal as tglbillranap,
|
||||
mrrp.nama as ruangranap,
|
||||
mdkp.namadokter as dokterranap, mdkp.kdsmf as smfranap,
|
||||
tbrp.lunas as lunasbayarranap, tbrp.tglbayar as tglbayarranap, tbrp.jambayar as jambayarranap, tbrp.jmbayar as jmlbayarranap, tbrp.status as stbayarranap, tbrp.nip as kasirranap,
|
||||
mtrp.kelompok_tarif as keltarifranap,
|
||||
');
|
||||
$query->join('m_pasien as mp', 'mp.nomr = tp.nomr', 'left');
|
||||
$query->join('t_billrajal AS tbl', 'tbl.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('t_bayarrajal as tbrj', 'tbrj.idxbill = tbl.idxbill', 'left');
|
||||
$query->join('m_ruang as mrrj', 'mrrj.no = tbl.kdpoly', 'left');
|
||||
$query->join('m_dokter as mdkj', 'mdkj.kddokter = tbl.kddokter', 'left');
|
||||
$query->join('m_tarif_rs as mtrj', 'mtrj.kode_tarif= tbl.kodetarif', 'left');
|
||||
|
||||
$query->join('t_billranap AS tbp', 'tbp.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('t_bayarranap as tbrp', 'tbrp.idxbill = tbp.idxbill', 'left');
|
||||
$query->join('m_ruang as mrrp', 'mrrp.no = tbp.kode_ruang', 'left');
|
||||
$query->join('m_dokter as mdkp', 'mdkp.kddokter = tbp.kddokter', 'left');
|
||||
$query->join('m_tarif_rs as mtrp', 'mtrp.kode_tarif= tbp.kodetarif', 'left');
|
||||
|
||||
$query->join('m_carabayar AS mcr', 'mcr.kode = tp.kdcarabayar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->order_by('tp.tglreg', 'ASC');
|
||||
$query->order_by('mp.nama', 'ASC');
|
||||
return $query->get('t_pendaftaran as tp')->result();
|
||||
}
|
||||
|
||||
function pasienkeuanganrajal(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tp.tglreg as tglregistrasi, tp.pasienbaru as statuspasien, tp.nosep as nosep, tp.nomr as nomr, tp.idxdaftar as idxdaftar, tp.st_asal_masuk as subsistem,
|
||||
mp.nama as namapasien, mcr.nama as penjamin, mcb.nama_cara_bayar as carabayar,
|
||||
|
||||
tbl.nobill as nobillrajal, tbl.kodetarif as kodetarifrajal, tbl.tarifrs as tarifrsrajal, tbl.tanggal as tglbillrajal, tbl.tgl_verifikasi as tglverif, tbl.user_verifikasi as userverif,
|
||||
mrrj.nama as ruangrajal,
|
||||
mdkj.namadokter as dokterrajal, mdkj.kdsmf as smfrajal,
|
||||
tbrj.lunas as lunasbayarrajal, tbrj.tglbayar as tglbayarrajal, tbrj.jambayar as jambayarrajal, tbrj.jmbayar as jmlbayarrajal, tbrj.status as stbayarrajal, tbrj.nip as kasirrajal,
|
||||
mtrj.kelompok_tarif as keltarifrajal, mtrj.uraian_tarif as uraiantarifrajal,
|
||||
mpj.nama_penjamin as namapenjamin,
|
||||
mpb.keterangan as payment
|
||||
');
|
||||
$query->join('m_pasien as mp', 'mp.nomr = tp.nomr', 'left');
|
||||
|
||||
$query->join('t_billrajal AS tbl', 'tbl.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('t_bayarrajal as tbrj', 'tbrj.idxbill = tbl.idxbill', 'left');
|
||||
$query->join('m_ruang as mrrj', 'mrrj.no = tbl.kdpoly', 'left');
|
||||
$query->join('m_dokter as mdkj', 'mdkj.kddokter = tbl.kddokter', 'left');
|
||||
$query->join('m_tarif_rs as mtrj', 'mtrj.kode_tarif = tbl.kodetarif', 'left');
|
||||
$query->join('m_cara_bayar AS mcb', 'mcb.id_cara_bayar = tbrj.st_carabayar', 'left');
|
||||
$query->join('m_penjamin AS mpj', 'mpj.id_penjamin = tbrj.kd_penjamin', 'left');
|
||||
$query->join('m_carabayar AS mcr', 'mcr.kode = tbrj.carabayar', 'left');
|
||||
$query->join('m_pembayaran_bank AS mpb', 'mpb.id = tbrj.st_payment', 'left');
|
||||
|
||||
//$query->join('m_carabayar AS mcr', 'mcr.kode = tp.kdcarabayar', 'left');
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('tbl.status !=',"BATAL");
|
||||
$query->order_by('tp.tglreg', 'ASC');
|
||||
$query->order_by('mp.nama', 'ASC');
|
||||
return $query->get('t_pendaftaran as tp')->result();
|
||||
}
|
||||
|
||||
function pasienkeuanganranap(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d H:i:s", strtotime($pisah[0]." 00:00:00"));
|
||||
$akhir = date("Y-m-d H:i:s", strtotime($pisah[1]." 23:59:00"));
|
||||
}else{
|
||||
$awal = date("Y-m-d H:i:s");
|
||||
$akhir = date("Y-m-d H:i:s");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tp.tglreg as tglregistrasi, tp.pasienbaru as statuspasien, tp.nosep as nosep, tp.nomr as nomr, tp.idxdaftar as idxdaftar, tad.st_asal_masuk as subsistem, tad.masukrs as masukrs,
|
||||
mp.nama as namapasien, mcr.nama as penjamin, mcb.nama_cara_bayar as carabayar,
|
||||
tbp.nobill as nobillranap, tbp.kodetarif as kodetarifranap, tbp.tarifrs as tarifrsranap, tbp.tanggal as tglbillranap, tbp.tgl_verifikasi as tglverif, tbp.user_verifikasi as userverif,
|
||||
mrrp.nama as ruangranap,
|
||||
mdkp.namadokter as dokterranap, mdkp.kdsmf as smfranap,
|
||||
tbrp.lunas as lunasbayarranap, tbrp.tglbayar as tglbayarranap, tbrp.jambayar as jambayarranap, tbrp.jmbayar as jmlbayarranap, tbrp.status as stbayarranap, tbrp.nip as kasirranap,
|
||||
mtrp.kelompok_tarif as keltarifranap, mtrp.uraian_tarif as uraiantarifranap,
|
||||
mpj.nama_penjamin as namapenjamin,
|
||||
mpb.keterangan as payment
|
||||
');
|
||||
$query->join('m_pasien as mp', 'mp.nomr = tp.nomr', 'left');
|
||||
$query->join('t_billranap AS tbp', 'tbp.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('t_bayarranap as tbrp', 'tbrp.idxbill = tbp.idxbill', 'left');
|
||||
$query->join('m_ruang as mrrp', 'mrrp.no = tbp.kode_ruang', 'left');
|
||||
$query->join('m_dokter as mdkp', 'mdkp.kddokter = tbp.kddokter', 'left');
|
||||
$query->join('m_tarif_rs as mtrp', 'mtrp.kode_tarif = tbp.kodetarif', 'left');
|
||||
$query->join('m_cara_bayar AS mcb', 'mcb.id_cara_bayar = tbrp.st_carabayar', 'left');
|
||||
$query->join('m_penjamin AS mpj', 'mpj.id_penjamin = tbrp.kd_penjamin', 'left');
|
||||
$query->join('m_carabayar AS mcr', 'mcr.kode = tbrp.carabayar', 'left');
|
||||
$query->join('t_admission AS tad', 'tad.id_admission = tp.idxdaftar', 'left');
|
||||
$query->join('m_pembayaran_bank AS mpb', 'mpb.id = tbrp.st_payment', 'left');
|
||||
|
||||
$query->where('tad.masukrs >=', $awal);
|
||||
$query->where('tad.masukrs <=', $akhir);
|
||||
$query->where('tbp.nobill is NOT NULL', NULL, FALSE);
|
||||
$query->where('tbp.kodetarif !=',"X");
|
||||
$query->where('tbp.status !=',"BATAL");
|
||||
$query->order_by('tad.masukrs', 'ASC');
|
||||
$query->order_by('mp.nama', 'ASC');
|
||||
return $query->get('t_pendaftaran as tp')->result();
|
||||
}
|
||||
|
||||
function pasieniurbearanap(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('
|
||||
tp.tglreg as tglregistrasi, tp.pasienbaru as statuspasien, tp.nosep as nosep, tp.nomr as nomr, tp.idxdaftar as idxdaftar,
|
||||
mp.nama as namapasien,
|
||||
tbp.nobill as nobillranap,
|
||||
mcr.nama as penjamin,
|
||||
tiu.hak_kelas as hakkelas, tiu.naik_kelas as naikkelas, tiu.nominal_naik_kelas as nominalnaik, tiu.selisih_biaya as selisih, tiu.st_verif as verif, tiu.tgl_verifikasi as tglverif, tiu.user_verifikasi as userverif, tiu.kode_tarif as kodetarif, tiu.jumlah_bayar as jumlahbayar,
|
||||
tiu.st_bayar as statusbayar, tiu.user_bayar as petugasbayar, tiu.tgl_bayar as tglbayar,
|
||||
mdkp.namadokter as dpjp, mdkp.kdsmf as smf,
|
||||
mr.nama as namaruang,
|
||||
ta.st_asal_masuk as subsistem,
|
||||
');
|
||||
$query->join('m_pasien as mp', 'mp.nomr = tp.nomr', 'left');
|
||||
$query->join('t_billranap AS tbp', 'tbp.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('m_carabayar AS mcr', 'mcr.kode = tp.kdcarabayar', 'left');
|
||||
$query->join('t_iurbea AS tiu', 'tiu.idxdaftar = tp.idxdaftar', 'left');
|
||||
$query->join('t_admission AS ta', 'ta.id_admission = tp.idxdaftar', 'left');
|
||||
$query->join('m_dokter as mdkp', 'mdkp.kddokter = ta.dokter_penanggungjawab', 'left');
|
||||
$query->join('m_ruang as mr', 'mr.no = ta.noruang', 'left');
|
||||
|
||||
$query->where('tp.tglreg >=', $awal);
|
||||
$query->where('tp.tglreg <=', $akhir);
|
||||
$query->where('tbp.nobill is NOT NULL', NULL, FALSE);
|
||||
$query->where('tiu.iurbea_id is NOT NULL', NULL, FALSE);
|
||||
$query->where('tbp.kodetarif !=',"X");
|
||||
$query->where('tbp.status !=',"BATAL");
|
||||
$query->order_by('tp.tglreg', 'ASC');
|
||||
$query->order_by('mp.nama', 'ASC');
|
||||
$query->group_by('tp.tglreg, tp.pasienbaru, tp.nosep, tp.nomr, tp.idxdaftar,mp.nama,
|
||||
tbp.nobill,mcr.nama,
|
||||
tiu.hak_kelas, tiu.naik_kelas, tiu.nominal_naik_kelas, tiu.selisih_biaya, tiu.st_verif, tiu.tgl_verifikasi, tiu.user_verifikasi, tiu.kode_tarif, tiu.jumlah_bayar,
|
||||
mdkp.namadokter, mdkp.kdsmf,
|
||||
mr.nama, ta.st_asal_masuk,
|
||||
tiu.st_bayar, tiu.user_bayar, tiu.tgl_bayar
|
||||
');
|
||||
return $query->get('t_pendaftaran as tp')->result();
|
||||
}
|
||||
|
||||
function rekamedikrl32(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$bulan = date("m", strtotime($pisah[0]));
|
||||
$tahun = date("Y", strtotime($pisah[0]));
|
||||
$bulansebelum = date('m', strtotime('-1 month', strtotime( $pisah[0] )));
|
||||
$tahunsebelum = date('Y', strtotime('-1 month', strtotime( $pisah[0] )));
|
||||
}else{
|
||||
$bulan = date("m");
|
||||
$tahun = date("Y");
|
||||
$bulansebelum = date('m', strtotime(' - 1 months'));
|
||||
$tahunsebelum = date('Y', strtotime(' - 1 months'));
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select("ms.namasmf as smf,
|
||||
array(
|
||||
select count(*) from t_admission ta
|
||||
left join m_dokter md on md.kddokter = ta.dokter_penanggungjawab
|
||||
where md.kdsmf = ms.kdsmf
|
||||
and extract (year from ta.keluarrs) = ".$tahun."
|
||||
and extract (month from ta.keluarrs) = ".$bulan."
|
||||
) as jenispelayanan,
|
||||
array(
|
||||
select count(*) from t_admission ta
|
||||
left join m_dokter md on md.kddokter = ta.dokter_penanggungjawab
|
||||
where md.kdsmf = ms.kdsmf
|
||||
and extract (year from ta.keluarrs) = ".$tahunsebelum."
|
||||
and extract (month from ta.keluarrs) = ".$bulansebelum."
|
||||
) as pasienawal,
|
||||
array(
|
||||
select count(*) from t_admission ta
|
||||
left join m_dokter md on md.kddokter = ta.dokter_penanggungjawab
|
||||
where md.kdsmf = ms.kdsmf
|
||||
and extract (year from ta.masukrs) = ".$tahun."
|
||||
and extract (month from ta.masukrs) = ".$bulan."
|
||||
) as pasienmasuk,
|
||||
array(
|
||||
select count(*) from t_pelimpahan_dpjp tpd
|
||||
WHERE tpd.smf_utama != tpd.smf_pengganti
|
||||
and tpd.smf_pengganti = ms.kdsmf
|
||||
and extract (year from tpd.tgl_pelimpahan) = ".$tahun."
|
||||
and extract (month from tpd.tgl_pelimpahan) = ".$bulan."
|
||||
) as pindahan,
|
||||
array(
|
||||
select count(*) from t_pelimpahan_dpjp tpd
|
||||
WHERE tpd.smf_utama != tpd.smf_pengganti
|
||||
and tpd.smf_utama = ms.kdsmf
|
||||
and extract (year from tpd.tgl_pelimpahan) = ".$tahun."
|
||||
and extract (month from tpd.tgl_pelimpahan) = ".$bulan."
|
||||
) as dipindahkan,
|
||||
array(
|
||||
select count(*) from t_admission ta
|
||||
left join t_resumepulang rp on ta.id_admission = rp.idadmission
|
||||
left join m_dokter md on md.kddokter = ta.dokter_penanggungjawab
|
||||
left join m_statuskeluar sk on sk.status = rp.statuspulang
|
||||
where md.kdsmf = ms.kdsmf
|
||||
and ta.st_meninggal is null
|
||||
and extract (year from ta.keluarrs) = ".$tahun."
|
||||
and extract (month from ta.keluarrs) = ".$bulan."
|
||||
) as keluarhidup,
|
||||
array(
|
||||
select extract(epoch from (ta.keluarrs -ta.masukrs))/3600 from t_admission ta
|
||||
left join m_dokter md on md.kddokter = ta.dokter_penanggungjawab
|
||||
left join t_pendaftaran tp on tp.idxdaftar = ta.id_admission
|
||||
left join m_pasien mp on mp.nomr = ta.nomr
|
||||
where md.kdsmf = ms.kdsmf
|
||||
and mp.jeniskelamin = 'L'
|
||||
and ta.st_meninggal = '1'
|
||||
and extract (year from ta.keluarrs) = ".$tahun."
|
||||
and extract (month from ta.keluarrs) = ".$bulan."
|
||||
) as lakimeningal,
|
||||
array(
|
||||
select extract(epoch from (ta.keluarrs -ta.masukrs))/3600 from t_admission ta
|
||||
left join m_dokter md on md.kddokter = ta.dokter_penanggungjawab
|
||||
left join t_pendaftaran tp on tp.idxdaftar = ta.id_admission
|
||||
left join m_pasien mp on mp.nomr = ta.nomr
|
||||
where md.kdsmf = ms.kdsmf
|
||||
and mp.jeniskelamin = 'P'
|
||||
and ta.st_meninggal = '1'
|
||||
and extract (year from ta.keluarrs) = ".$tahun."
|
||||
and extract (month from ta.keluarrs) = ".$bulan."
|
||||
) as perempuanmeningal,
|
||||
array(
|
||||
select sum(extract(day from ta.keluarrs-ta.masukrs)) from t_admission ta
|
||||
left join m_dokter md on md.kddokter = ta.dokter_penanggungjawab
|
||||
left join t_pendaftaran tp on tp.idxdaftar = ta.id_admission
|
||||
where md.kdsmf = ms.kdsmf
|
||||
and extract (year from ta.keluarrs) = ".$tahun."
|
||||
and extract (month from ta.keluarrs) = ".$bulan."
|
||||
)as jumlahlamadirawat
|
||||
");
|
||||
$query->where('ms.aktif','1');
|
||||
return $query->get('m_smf as ms ')->result();
|
||||
}
|
||||
|
||||
function jmlhariperawatan(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$bulan = date("m", strtotime($pisah[0]));
|
||||
$tahun = date("Y", strtotime($pisah[0]));
|
||||
$tglawal = date("Y-m-d H:i:s", strtotime($tahun."-".$bulan."-01 00:00:00"));
|
||||
$tglakhir = date("Y-m-d H:i:s", strtotime($tahun."-".$bulan."-31 23:59:99"));
|
||||
}else{
|
||||
$bulan = date("m");
|
||||
$tahun = date("Y");
|
||||
$tglawal = date("Y-m-d H:i:s",strtotime(date("Y")."-".date("m")."-01 00:00:00"));
|
||||
$tglakhir = date("Y-m-d H:i:s",strtotime(date("Y")."-".date("m")."-31 23:59:99"));
|
||||
}
|
||||
|
||||
// $query = $this->load->database('datasim', TRUE);
|
||||
// $query->db->query("select tp.nomr,
|
||||
// to_char(ta.masukrs, 'YYYY-MM-DD') as tglmasuk, ta.masukrs,
|
||||
// to_char(ta.keluarrs, 'YYYY-MM-DD') as tglkeluar,
|
||||
// extract(day from ta.keluarrs-ta.masukrs) as lamarawat,
|
||||
// md.kdsmf as msf FROM t_admission as ta
|
||||
// LEFT JOIN m_dokter AS md ON md.kddokter = ta.dokter_penanggungjawab
|
||||
// LEFT JOIN t_pendaftaran AS tp ON tp.idxdaftar = ta.id_admission
|
||||
// WHERE
|
||||
// extract (year from ta.keluarrs) = 2025
|
||||
// and extract (month from ta.keluarrs) = 01
|
||||
// ORDER BY ta.masukrs asc");
|
||||
// $query->query("select tp.nomr,
|
||||
// to_char(ta.masukrs, 'YYYY-MM-DD') as tglmasuk, ta.masukrs,
|
||||
// to_char(ta.keluarrs, 'YYYY-MM-DD') as tglkeluar,
|
||||
// extract(day from ta.keluarrs-ta.masukrs) as lamarawat,
|
||||
// md.kdsmf as msf FROM t_admission as ta
|
||||
// LEFT JOIN m_dokter AS md ON md.kddokter = ta.dokter_penanggungjawab
|
||||
// LEFT JOIN t_pendaftaran AS tp ON tp.idxdaftar = ta.id_admission
|
||||
// WHERE
|
||||
// extract (year from ta.keluarrs) = 2025
|
||||
// and extract (month from ta.keluarrs) = 01
|
||||
// ORDER BY ta.masukrs asc");
|
||||
|
||||
//return $query->result();
|
||||
}
|
||||
|
||||
function penggunareseprajal(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tpar.tgl_pesan as tgl, tpar.norm as nomr, tpar.no as noresep, md.namadokter as namadokter, mr.nama as namaklinik, mr.no as kdpoli');
|
||||
$query->join('m_ruang AS mr', 'mr.no = tpar.kdpoli ', 'left');
|
||||
$query->join('m_login AS ml', 'ml.nip = tpar.nip ', 'left');
|
||||
$query->join('m_dokter AS md', 'md.kddokter = ml.kddokter ', 'left');
|
||||
|
||||
$query->where('mr.kelompok', 'IRJA');
|
||||
$query->where('mr.st_aktif', '1');
|
||||
$query->where('date(tpar.tgl_pesan) >=', $awal);
|
||||
$query->where('date(tpar.tgl_pesan) <=', $akhir);
|
||||
$query->group_by('tpar.tgl_pesan, tpar.norm, tpar.no, md.namadokter, mr.nama, mr.no');
|
||||
$query->order_by('mr.nama', 'ASC');
|
||||
$query->order_by('md.namadokter', 'ASC');
|
||||
return $query->get('t_permintaan_apotek_rajal AS tpar')->result();
|
||||
}
|
||||
|
||||
function ruangklinik(){
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('mr.no as kdpoli, mr.nama as nama, mr.kelompok as kelompok');
|
||||
$query->where('mr.kelompok', 'IRJA');
|
||||
$query->where('mr.st_aktif', '1');
|
||||
$query->order_by('mr.nama', 'ASC');
|
||||
return $query->get('m_ruang AS mr')->result();
|
||||
}
|
||||
|
||||
function disposedokigd(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tp.idxdaftar as idxdaftar, tp.nomr as nomr, tp.tglreg as tglreg, ms.keterangan as statuskeluar, md1.namadokter as dokterawal, md2.namadokter as disposisi, md2.kdsmf as disposisismf, md3.namadokter as terimadisposisi, md3.kdsmf as terimadisposisismf, ru.nama as tujuansmf,
|
||||
array(
|
||||
select tpa.tgl_pelimpahan from t_pelimpahan_dpjp tpa
|
||||
left join m_dokter md on md.kddokter = tpa.dpjp_utama
|
||||
left join m_ruang mr on mr."no" = tpa.noruang
|
||||
where tpa.id_admission = tp.idxdaftar
|
||||
order by tpa.tgl_pelimpahan asc
|
||||
) as tglpelimpah,
|
||||
array(
|
||||
select mr.nama from t_pelimpahan_dpjp tpa
|
||||
left join m_dokter md on md.kddokter = tpa.dpjp_utama
|
||||
left join m_ruang mr on mr."no" = tpa.noruang
|
||||
where tpa.id_admission = tp.idxdaftar
|
||||
order by tpa.tgl_pelimpahan asc
|
||||
) as klinikpelimpah,
|
||||
array(
|
||||
select md.namadokter from t_pelimpahan_dpjp tpa
|
||||
left join m_dokter md on md.kddokter = tpa.dpjp_utama
|
||||
left join m_ruang mr on mr."no" = tpa.noruang
|
||||
where tpa.id_admission = tp.idxdaftar
|
||||
order by tpa.tgl_pelimpahan asc
|
||||
) as dpjppelimpah,
|
||||
array(
|
||||
select tpa.smf_utama from t_pelimpahan_dpjp tpa
|
||||
left join m_dokter md on md.kddokter = tpa.dpjp_utama
|
||||
left join m_ruang mr on mr."no" = tpa.noruang
|
||||
where tpa.id_admission = tp.idxdaftar
|
||||
order by tpa.tgl_pelimpahan asc
|
||||
) as smfpelimpah,
|
||||
array(
|
||||
select md.namadokter from t_pelimpahan_dpjp tpa
|
||||
left join m_dokter md on md.kddokter = tpa.dpjp_pengganti
|
||||
left join m_ruang mr on mr."no" = tpa.noruang
|
||||
where tpa.id_admission = tp.idxdaftar
|
||||
order by tpa.tgl_pelimpahan asc
|
||||
) as dpjppengganti,
|
||||
array(
|
||||
select tpa.smf_pengganti from t_pelimpahan_dpjp tpa
|
||||
left join m_dokter md on md.kddokter = tpa.dpjp_pengganti
|
||||
left join m_ruang mr on mr."no" = tpa.noruang
|
||||
where tpa.id_admission = tp.idxdaftar
|
||||
order by tpa.tgl_pelimpahan asc
|
||||
) as smfpengganti,
|
||||
array(
|
||||
select md.namadokter from t_diagnosadanterapi tdt
|
||||
left join m_dokter md on md.kddokter = tdt.kddokter
|
||||
where tdt.idxdaftar = tp.idxdaftar
|
||||
order by tdt.created_at asc
|
||||
) as diagnosaterapidokter,
|
||||
array(
|
||||
select md.kdsmf from t_diagnosadanterapi tdt
|
||||
left join m_dokter md on md.kddokter = tdt.kddokter
|
||||
where tdt.idxdaftar = tp.idxdaftar
|
||||
order by tdt.created_at asc
|
||||
) as diagnosaterapismf,
|
||||
array(
|
||||
select tdt.created_at from t_diagnosadanterapi tdt
|
||||
left join m_dokter md on md.kddokter = tdt.kddokter
|
||||
where tdt.idxdaftar = tp.idxdaftar
|
||||
order by tdt.created_at asc
|
||||
) as diagnosaterapidate,
|
||||
array(
|
||||
select md.namadokter from t_ugdtriase tu
|
||||
left join m_dokter md on md.kddokter = tu.kode_dokter
|
||||
where tu.idxdaftar = tp.idxdaftar
|
||||
order by tu.tanggal_triase asc, tu.jam_triase asc
|
||||
) as triagedokter,
|
||||
array(
|
||||
select md.kdsmf from t_ugdtriase tu
|
||||
left join m_dokter md on md.kddokter = tu.kode_dokter
|
||||
where tu.idxdaftar = tp.idxdaftar
|
||||
order by tu.tanggal_triase asc, tu.jam_triase asc
|
||||
) as triagesmf,
|
||||
array(
|
||||
select tu.tanggal_triase from t_ugdtriase tu
|
||||
left join m_dokter md on md.kddokter = tu.kode_dokter
|
||||
where tu.idxdaftar = tp.idxdaftar
|
||||
order by tu.tanggal_triase asc, tu.jam_triase asc
|
||||
) as tgltriage,
|
||||
array(
|
||||
select tu.jam_triase from t_ugdtriase tu
|
||||
left join m_dokter md on md.kddokter = tu.kode_dokter
|
||||
where tu.idxdaftar = tp.idxdaftar
|
||||
order by tu.tanggal_triase asc, tu.jam_triase asc
|
||||
) as jamtriage,
|
||||
array(
|
||||
select md.namadokter from t_resumemedis trs
|
||||
left join m_dokter md on md.kddokter = trs.dpjp
|
||||
where trs.idxrajal = tp.idxdaftar
|
||||
order by trs.tgl_entri asc
|
||||
) as resumedokter,
|
||||
array(
|
||||
select md.kdsmf from t_resumemedis trs
|
||||
left join m_dokter md on md.kddokter = trs.dpjp
|
||||
where trs.idxrajal = tp.idxdaftar
|
||||
order by trs.tgl_entri asc
|
||||
) as resumesmf,
|
||||
array(
|
||||
select trs.tgl_entri from t_resumemedis trs
|
||||
left join m_dokter md on md.kddokter = trs.dpjp
|
||||
where trs.idxrajal = tp.idxdaftar
|
||||
order by trs.tgl_entri asc
|
||||
) as resumedate
|
||||
');
|
||||
$query->join('t_disposisi AS td', 'tp.idxdaftar = td.idxdaftar', 'left');
|
||||
$query->join('m_statuskeluar AS ms', 'tp.status = ms.status', 'left');
|
||||
$query->join('m_ruang AS ru', 'td.smf_dituju = ru.no', 'left');
|
||||
$query->join('m_dokter AS md1', 'md1.kddokter = tp.kddokter', 'left');
|
||||
$query->join('m_dokter AS md2', 'md2.kddokter = td.kddokter', 'left');
|
||||
$query->join('m_dokter AS md3', 'md3.kddokter = td.kddokter_disposisi', 'left');
|
||||
|
||||
$query->where('tp.st_asal_masuk', 'RAWAT JALAN EMERGENCY');
|
||||
$query->where('date(tp.tglreg) >=', $awal);
|
||||
$query->where('date(tp.tglreg) <=', $akhir);
|
||||
return $query->get('t_pendaftaran AS tp')->result();
|
||||
}
|
||||
|
||||
function farmasirajal(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tbr.kode_obat as kodeobat, sum(tbr.qty) as jmlqty, md.namadokter as namadokter');
|
||||
$query->join('m_dokter AS md', 'tbr.dokter = md.kddokter ', 'left');
|
||||
$query->where('date(tbr.tanggal) >=', $awal);
|
||||
$query->where('date(tbr.tanggal) <=', $akhir);
|
||||
$query->group_by('tbr.kode_obat,md.namadokter');
|
||||
$query->order_by('jmlqty', 'DESC');
|
||||
return $query->get('t_billobat_rajal AS tbr')->result();
|
||||
}
|
||||
|
||||
function farmasiranap(){
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
|
||||
$query = $this->load->database('datasim', TRUE);
|
||||
$query->select('tbr.kode_obat as kodeobat, sum(tbr.qty) as jmlqty, md.namadokter as namadokter');
|
||||
$query->join('m_dokter AS md', 'tbr.dokter = md.kddokter ', 'left');
|
||||
$query->where('date(tbr.tanggal) >=', $awal);
|
||||
$query->where('date(tbr.tanggal) <=', $akhir);
|
||||
$query->group_by('tbr.kode_obat,md.namadokter');
|
||||
$query->order_by('jmlqty', 'DESC');
|
||||
return $query->get('t_billobat_ranap AS tbr')->result();
|
||||
}
|
||||
|
||||
function dataobat(){
|
||||
$query = $this->load->database('default', TRUE);
|
||||
$query->select('mo.mo_kode as mo_kode, mo.mo_nama as mo_nama, mho.mho_hpp as harga');
|
||||
$query->join('master_harga_obat AS mho', 'mho.mho_kodebarang = mo.mo_kode ', 'left');
|
||||
$query->group_by('mo.mo_kode, mo.mo_nama');
|
||||
return $query->get('master_obat as mo')->result();
|
||||
}
|
||||
}
|
||||
?>
|
||||
64
application/models/m_st_accesscontrol.php
Normal file
64
application/models/m_st_accesscontrol.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
class M_st_rolegroup extends CI_Model {
|
||||
|
||||
function index() {
|
||||
$this->db->join('master_menu', 'mm_id = mu_tipeuser_id', 'LEFT');
|
||||
$this->db->order_by('mr_name', 'ASC');
|
||||
$query = $this->db->get('access_menu');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function insert() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
$insert = array(
|
||||
'mr_name' => $this->input->post('nama'),
|
||||
'mr_status' => $setstatus,
|
||||
);
|
||||
$insert = $this->db->insert('access_menu', $insert);
|
||||
}
|
||||
|
||||
function edit($id) {
|
||||
$this->db->where('mr_id', $id);
|
||||
$query = $this->db->get('access_menu');
|
||||
return $query;
|
||||
}
|
||||
|
||||
function prosesedit() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
$update = array(
|
||||
'mr_name' => $this->input->post('nama'),
|
||||
'mr_status' => $setstatus,
|
||||
);
|
||||
$id = $this->input->post('id');
|
||||
$this->db->where('mr_id', $id);
|
||||
$this->db->update('access_menu', $update);
|
||||
}
|
||||
|
||||
function delete($id) {
|
||||
$this->db->where('mr_id', $id);
|
||||
$this->db->delete('access_menu');
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
$update = array(
|
||||
'mr_status' => 0,
|
||||
);
|
||||
$this->db->where('mr_id', $id);
|
||||
$this->db->update('access_menu', $update);
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
$update = array(
|
||||
'mr_status' => 1,
|
||||
);
|
||||
$this->db->where('mr_id', $id);
|
||||
$this->db->update('access_menu', $update);
|
||||
}
|
||||
}
|
||||
?>
|
||||
152
application/models/m_st_menu.php
Normal file
152
application/models/m_st_menu.php
Normal file
@@ -0,0 +1,152 @@
|
||||
<?php
|
||||
class M_st_menu extends CI_Model {
|
||||
|
||||
function index() {
|
||||
$this->db->order_by('mm_sort', 'ASC');
|
||||
$query = $this->db->get('master_menu');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function menuactive() {
|
||||
$this->db->where('mm_status', 1);
|
||||
$this->db->order_by('mm_sort', 'ASC');
|
||||
$query = $this->db->get('master_menu');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function fieldactive($id) {
|
||||
$this->db->where('mf_status', 1);
|
||||
$this->db->where('mf_fk_menu_id', $id);
|
||||
$query = $this->db->get('master_field');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function insert() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
|
||||
$link = null; $icon = null; $parent = null; $level = null; $action = null;
|
||||
if($this->input->post('link')!=""){$link = $this->input->post('link');}
|
||||
if($this->input->post('icon')!=""){$icon = $this->input->post('icon');}
|
||||
if($this->input->post('parent')!=""){$parent = $this->input->post('parent');}
|
||||
if($this->input->post('level')!=""){$level = $this->input->post('level');}
|
||||
if($this->input->post('action')!=""){$action = $this->input->post('action');}
|
||||
|
||||
$insert = array(
|
||||
'mm_name' => $this->input->post('nama'),
|
||||
'mm_link' => $link,
|
||||
'mm_icon' => $icon,
|
||||
'mm_parent' => $parent,
|
||||
'mm_level' => $level,
|
||||
'mm_action' => $action,
|
||||
'mm_sort' => $this->input->post('sort'),
|
||||
'mm_status' => $setstatus,
|
||||
);
|
||||
$this->db->insert('master_menu', $insert);
|
||||
$lastid = $this->db->insert_id();
|
||||
|
||||
$field = $_POST['fieldlabel'];$num=0;
|
||||
foreach($field as $key =>$datanya)
|
||||
{
|
||||
$insert_field = array(
|
||||
'mf_label' => $_POST['fieldlabel'][$num],
|
||||
'mf_field_id' => $_POST['fieldid'][$num],
|
||||
'mf_name' => $_POST['fieldname'][$num],
|
||||
'mf_status' => "1",
|
||||
'mf_fk_menu_id' => $lastid,
|
||||
);
|
||||
$insert = $this->db->insert('master_field', $insert_field);
|
||||
$num++;
|
||||
}
|
||||
}
|
||||
|
||||
function edit($id) {
|
||||
$this->db->where('mm_id', $id);
|
||||
$query = $this->db->get('master_menu');
|
||||
return $query;
|
||||
}
|
||||
|
||||
function prosesedit() {
|
||||
$setstatus = 0;
|
||||
$id = $this->input->post('id');
|
||||
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
|
||||
$link = null; $icon = null; $parent = null; $level = null; $action = null;
|
||||
if($this->input->post('link')!=""){$link = $this->input->post('link');}
|
||||
if($this->input->post('icon')!=""){$icon = $this->input->post('icon');}
|
||||
if($this->input->post('parent')!=""){$parent = $this->input->post('parent');}
|
||||
if($this->input->post('level')!=""){$level = $this->input->post('level');}
|
||||
if($this->input->post('action')!=""){$action = $this->input->post('action');}
|
||||
|
||||
$update = array(
|
||||
'mm_name' => $this->input->post('nama'),
|
||||
'mm_link' => $link,
|
||||
'mm_icon' => $icon,
|
||||
'mm_parent' => $parent,
|
||||
'mm_level' => $level,
|
||||
'mm_action' => $action,
|
||||
'mm_sort' => $this->input->post('sort'),
|
||||
'mm_status' => $setstatus,
|
||||
);
|
||||
$this->db->where('mm_id', $id);
|
||||
$this->db->update('master_menu', $update);
|
||||
|
||||
$field = $_POST['fieldlabel'];$num=0;
|
||||
foreach($field as $key =>$datanya){
|
||||
if($_POST['delfield'][$num]==1){
|
||||
$this->db->where('mf_id', $_POST['idfield'][$num]);
|
||||
$this->db->delete('master_field');
|
||||
}elseif($_POST['delfield'][$num]==2){
|
||||
$insert_field = array(
|
||||
'mf_label' => $_POST['fieldlabel'][$num],
|
||||
'mf_field_id' => $_POST['fieldid'][$num],
|
||||
'mf_name' => $_POST['fieldname'][$num],
|
||||
'mf_status' => "1",
|
||||
'mf_fk_menu_id' => $id,
|
||||
);
|
||||
$this->db->insert('master_field', $insert_field);
|
||||
}else{
|
||||
$update_field = array(
|
||||
'mf_label' => $_POST['fieldlabel'][$num],
|
||||
'mf_field_id' => $_POST['fieldid'][$num],
|
||||
'mf_name' => $_POST['fieldname'][$num],
|
||||
'mf_fk_menu_id' => $id,
|
||||
);
|
||||
$this->db->where('mf_id', $_POST['idfield'][$num]);
|
||||
$this->db->update('master_field', $update_field);
|
||||
}
|
||||
$num++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function delete($id) {
|
||||
$this->db->where('mm_id', $id);
|
||||
$this->db->delete('master_menu');
|
||||
|
||||
$this->db->where('mf_fk_menu_id', $id);
|
||||
$this->db->delete('master_field');
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
$update = array(
|
||||
'mm_status' => 0,
|
||||
);
|
||||
$this->db->where('mm_id', $id);
|
||||
$this->db->update('master_menu', $update);
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
$update = array(
|
||||
'mm_status' => 1,
|
||||
);
|
||||
$this->db->where('mm_id', $id);
|
||||
$this->db->update('master_menu', $update);
|
||||
}
|
||||
}
|
||||
?>
|
||||
70
application/models/m_st_rolegroup.php
Normal file
70
application/models/m_st_rolegroup.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
class M_st_rolegroup extends CI_Model {
|
||||
|
||||
function index() {
|
||||
$this->db->order_by('mr_name', 'ASC');
|
||||
$query = $this->db->get('master_rolegroup');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function rolegroupst() {
|
||||
$this->db->order_by('mr_name', 'ASC');
|
||||
$this->db->where('mr_status', 1);
|
||||
$query = $this->db->get('master_rolegroup');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function insert() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
$insert = array(
|
||||
'mr_name' => $this->input->post('nama'),
|
||||
'mr_status' => $setstatus,
|
||||
);
|
||||
$insert = $this->db->insert('master_rolegroup', $insert);
|
||||
}
|
||||
|
||||
function edit($id) {
|
||||
$this->db->where('mr_id', $id);
|
||||
$query = $this->db->get('master_rolegroup');
|
||||
return $query;
|
||||
}
|
||||
|
||||
function prosesedit() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
$update = array(
|
||||
'mr_name' => $this->input->post('nama'),
|
||||
'mr_status' => $setstatus,
|
||||
);
|
||||
$id = $this->input->post('id');
|
||||
$this->db->where('mr_id', $id);
|
||||
$this->db->update('master_rolegroup', $update);
|
||||
}
|
||||
|
||||
function delete($id) {
|
||||
$this->db->where('mr_id', $id);
|
||||
$this->db->delete('master_rolegroup');
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
$update = array(
|
||||
'mr_status' => 0,
|
||||
);
|
||||
$this->db->where('mr_id', $id);
|
||||
$this->db->update('master_rolegroup', $update);
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
$update = array(
|
||||
'mr_status' => 1,
|
||||
);
|
||||
$this->db->where('mr_id', $id);
|
||||
$this->db->update('master_rolegroup', $update);
|
||||
}
|
||||
}
|
||||
?>
|
||||
84
application/models/m_user.php
Normal file
84
application/models/m_user.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
class M_user extends CI_Model {
|
||||
|
||||
function index() {
|
||||
$this->db->join('m_tipeuser', 'mt_id = mu_tipeuser_id', 'LEFT');
|
||||
$query = $this->db->get('m_user');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function insert() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
$loket = $this->input->post('loket');if(empty($loket)){$loket=null;}
|
||||
$klinik = $this->input->post('klinik');if(empty($klinik)){$klinik=null;}
|
||||
|
||||
$insert = array(
|
||||
'mu_namalengkap' => $this->input->post('nama'),
|
||||
'mu_namauser' => $this->input->post('user'),
|
||||
'mu_password' => md5($this->input->post('passworduser')),
|
||||
'mu_tipeuser_id' => $this->input->post('tipeuser'),
|
||||
'mu_status' => $setstatus,
|
||||
'mu_loket_id' => $loket,
|
||||
'mu_klinik_id' => $klinik,
|
||||
);
|
||||
$insert = $this->db->insert('m_user', $insert);
|
||||
}
|
||||
|
||||
function edit($id) {
|
||||
$this->db->where('mu_id', $id);
|
||||
$query = $this->db->get('m_user');
|
||||
return $query;
|
||||
}
|
||||
|
||||
function prosesedit() {
|
||||
$setstatus = 0;
|
||||
if($this->input->post('status')==1){
|
||||
$setstatus = 1;
|
||||
}
|
||||
$password = $this->input->post('passworduser');
|
||||
if(empty($password)){
|
||||
$update = array(
|
||||
'mu_namalengkap' => $this->input->post('nama'),
|
||||
'mu_namauser' => $this->input->post('user'),
|
||||
'mu_tipeuser_id' => $this->input->post('tipeuser'),
|
||||
'mu_status' => $this->input->post('status'),
|
||||
);
|
||||
}else{
|
||||
$update = array(
|
||||
'mu_namalengkap' => $this->input->post('nama'),
|
||||
'mu_namauser' => $this->input->post('user'),
|
||||
'mu_tipeuser_id' => $this->input->post('tipeuser'),
|
||||
'mu_password' => md5($this->input->post('passworduser')),
|
||||
'mu_status' => $this->input->post('status'),
|
||||
);
|
||||
}
|
||||
$id = $this->input->post('id');
|
||||
$this->db->where('mu_id', $id);
|
||||
$this->db->update('m_user', $update);
|
||||
}
|
||||
|
||||
function delete($id) {
|
||||
$this->db->where('mu_id', $id);
|
||||
$this->db->delete('m_user');
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
$update = array(
|
||||
'mu_status' => 0,
|
||||
);
|
||||
$this->db->where('mu_id', $id);
|
||||
$this->db->update('m_user', $update);
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
$update = array(
|
||||
'mu_status' => 1,
|
||||
);
|
||||
$this->db->where('mu_id', $id);
|
||||
$this->db->update('m_user', $update);
|
||||
}
|
||||
}
|
||||
?>
|
||||
260
application/models/ms_lokasi_ruang.php
Normal file
260
application/models/ms_lokasi_ruang.php
Normal file
@@ -0,0 +1,260 @@
|
||||
<?php
|
||||
//-------------ID menu = 26
|
||||
|
||||
class Ms_lokasi_ruang extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'Data Master';
|
||||
public $title = 'Lokasi Ruang';
|
||||
public $link = 'ms_lokasi_ruang';
|
||||
public $index = 'index.php/ms_lokasi_ruang';
|
||||
public $maincontent = 'datamaster/lokasiruang/';
|
||||
public $viewcontent = 'v_lokasi_ruang';
|
||||
public $formcontent = 'form_lokasi_ruang';
|
||||
public $okadd = 'Anda berhasil ADD Lokasi Ruang Baru';
|
||||
public $okedit = 'Anda berhasil EDIT Lokasi Ruang';
|
||||
public $okdelete = 'Anda berhasil DELETE Lokasi Ruang';
|
||||
public $okdisabled = 'Anda berhasil DISABLED Lokasi Ruang';
|
||||
public $okactive = 'Anda berhasil ACTIVE Lokasi Ruang';
|
||||
public $idmenu = '26';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->check_isvalidated();
|
||||
$this->load->helper(array('form', 'date'));
|
||||
}
|
||||
private function check_isvalidated(){
|
||||
if(! $this->session->userdata('validated')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
public function index($error = NULL) {
|
||||
$data['title'] = $this->title;
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent.$this->viewcontent;
|
||||
$data['error'] = $error;
|
||||
|
||||
$this->load->model('m_lokasi_ruang');
|
||||
$lrgr = $this->m_lokasi_ruang->lokasiruang();
|
||||
$this->load->vars('lrgr', $lrgr);
|
||||
|
||||
$this->load->model('m_lokasi_ruang');
|
||||
$lrgr1 = $this->m_lokasi_ruang->lokasiruanggr1();
|
||||
$this->load->vars('lrgr1', $lrgr1);
|
||||
|
||||
$this->load->model('m_lokasi_ruang');
|
||||
$lrgr2 = $this->m_lokasi_ruang->lokasiruanggr2();
|
||||
$this->load->vars('lrgr2', $lrgr2);
|
||||
|
||||
$this->load->model('m_lokasi_ruang');
|
||||
$lrgr3 = $this->m_lokasi_ruang->lokasiruanggr3();
|
||||
$this->load->vars('lrgr3', $lrgr3);
|
||||
|
||||
$this->load->model('m_lokasi_ruang');
|
||||
$lrgr4 = $this->m_lokasi_ruang->lokasiruanggr4();
|
||||
$this->load->vars('lrgr4', $lrgr4);
|
||||
|
||||
$this->load->model('m_lokasi_ruang');
|
||||
$lrgr5 = $this->m_lokasi_ruang->lokasiruanggr5();
|
||||
$this->load->vars('lrgr5', $lrgr5);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
// fungsi untuk menampilkan form tambah data
|
||||
public function add() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect($this->index);}
|
||||
//----end validate page tambah---------//
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['parent'] = $this->parent;
|
||||
$data['title'] = 'Tambah '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menuactive = $this->m_st_menu->menuactive();
|
||||
$this->load->vars('ma', $menuactive);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk memproses penambahan dengan memanggil model
|
||||
public function prosesadd() {
|
||||
//----start validate page tambah-------//
|
||||
if($this->vartambah==null){redirect($this->index);}
|
||||
//----end validate page tambah---------//
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Menu','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Tambah '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesadd';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}else{
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->insert();
|
||||
$this->session->set_flashdata('message', $this->okadd);
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form edit data dengan data terpilih
|
||||
public function edit($id) {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page edit---------//
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Edit '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menu = $this->m_st_menu->edit($id);
|
||||
$this->load->vars('mst', $menu);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menuactive = $this->m_st_menu->menuactive();
|
||||
$this->load->vars('ma', $menuactive);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$fieldactive = $this->m_st_menu->fieldactive($id);
|
||||
$this->load->vars('fa', $fieldactive);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//funsi untuk memproses update data
|
||||
public function prosesedit() {
|
||||
//----start validate page edit-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page edit---------//
|
||||
$id = $this->input->post('id');
|
||||
$this->load->helper('form');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('form_validation');
|
||||
$this->form_validation->set_rules('nama','Nama Menu','required');
|
||||
|
||||
if($this->form_validation->run()==FALSE){
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'Edit '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesedit';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menu = $this->m_st_menu->edit($id);
|
||||
$this->load->vars('mst', $menu);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$fieldactive = $this->m_st_menu->fieldactive($id);
|
||||
$this->load->vars('fa', $fieldactive);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
else{
|
||||
$this->session->set_flashdata('message', $this->okedit);
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->prosesedit();
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
//fungsi untuk menampilkan form view data dengan data terpilih
|
||||
public function view($id) {
|
||||
//----start validate page view-------//
|
||||
if($this->varview==null){redirect($this->index);}
|
||||
//----end validate page view---------//
|
||||
$data['parent'] = $this->parent;
|
||||
$data['titlebefore'] = $this->title;
|
||||
$data['title'] = 'View '.$this->title;
|
||||
$data['link'] = $this->link;
|
||||
$data['actionform'] = 'prosesview';
|
||||
$data['main_content'] = $this->maincontent.$this->formcontent;
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menu = $this->m_st_menu->edit($id);
|
||||
$this->load->vars('mst', $menu);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$menuactive = $this->m_st_menu->menuactive();
|
||||
$this->load->vars('ma', $menuactive);
|
||||
|
||||
$this->load->model('m_st_menu');
|
||||
$fieldactive = $this->m_st_menu->fieldactive($id);
|
||||
$this->load->vars('fa', $fieldactive);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
//fungsi untuk delete
|
||||
function delete($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->vardelete==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okdelete);
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->delete($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
|
||||
function disabled($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okdisabled);
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->disabled($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
|
||||
function active($id) {
|
||||
//----start validate page delete-------//
|
||||
if($this->varedit==null){redirect($this->index);}
|
||||
//----end validate page delete---------//
|
||||
$this->session->set_flashdata('message', $this->okactive);
|
||||
$this->load->model('m_st_menu');
|
||||
$this->m_st_menu->active($id);
|
||||
redirect($this->index);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
11
application/third_party/index.html
vendored
Normal file
11
application/third_party/index.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
216
application/views/datamaster/lokasi_ruang/v_lokasi_ruang.php
Normal file
216
application/views/datamaster/lokasi_ruang/v_lokasi_ruang.php
Normal file
@@ -0,0 +1,216 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr class="bg-gray color-palette">
|
||||
<th>No</th>
|
||||
<th>Gr 1</th>
|
||||
<th>Gr 2</th>
|
||||
<th>Gr 3</th>
|
||||
<th>Gr 4</th>
|
||||
<th>Gr 5</th>
|
||||
<th>Kode</th>
|
||||
<th>Nama</th>
|
||||
<th>Kode Satu Sehat</th>
|
||||
<th>ID Location Simgos</th>
|
||||
<th>Kode Parent</th>
|
||||
<th>Nama Parent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($lrgr as $datlrgr){
|
||||
if($datlrgr->Group == "1"){$no++;
|
||||
echo("
|
||||
<tr class='bg-red'>
|
||||
<th>".$no."</th>
|
||||
<td>".$datlrgr->Group."</td>
|
||||
<td colspan='4'></td>
|
||||
<td>".$datlrgr->Kode."</td>
|
||||
<td>".$datlrgr->Nama."</td>
|
||||
<td>".$datlrgr->Kode_satusehat."</td>
|
||||
<td>".$datlrgr->Id_location_simgos."</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
");
|
||||
foreach($lrgr as $datlrgr2){
|
||||
$setgr2=""; $setbg2="";
|
||||
if($datlrgr2->Parent == $datlrgr->id){
|
||||
if($datlrgr2->Group == "1"){
|
||||
$setbg2 ="class='bg-red'";
|
||||
$setgr2 = "<td></td>".$datlrgr2->Group."</td><td colspan='4'></td>";
|
||||
}elseif($datlrgr2->Group == "2"){
|
||||
$setbg2 ="class='bg-yellow'";
|
||||
$setgr2 = "<td></td><td></td><td>".$datlrgr2->Group."</td><td colspan='3'></td>";
|
||||
}elseif($datlrgr2->Group == "3"){
|
||||
$setbg2 ="class='bg-blue'";
|
||||
$setgr2 = "<td></td><td colspan='2'></td><td>".$datlrgr2->Group."</td><td colspan='2'></td>";
|
||||
}elseif($datlrgr2->Group == "4"){
|
||||
$setbg2 ="class='bg-green'";
|
||||
$setgr2 = "<td></td><td colspan='3'></td><td>".$datlrgr2->Group."</td><td colspan='1'></td>";
|
||||
}elseif($datlrgr2->Group == "5"){
|
||||
$setbg2 ="class='bg-purple'";
|
||||
$setgr2 = "<td></td><td colspan='4'></td><td>".$datlrgr2->Group."</td>";
|
||||
}
|
||||
echo("
|
||||
<tr ".$setbg2." >
|
||||
".$setgr2."
|
||||
<td>".$datlrgr2->Kode."</td>
|
||||
<td>".$datlrgr2->Nama."</td>
|
||||
<td>".$datlrgr2->Kode_satusehat."</td>
|
||||
<td>".$datlrgr2->Id_location_simgos."</td>
|
||||
<td>".$datlrgr->Kode."</td>
|
||||
<td>".$datlrgr->Nama."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
foreach($lrgr as $datlrgr3){
|
||||
$setgr3=""; $setbg3="";
|
||||
if($datlrgr3->Parent == $datlrgr2->id){
|
||||
if($datlrgr3->Group == "1"){
|
||||
$setbg3 ="class='bg-red'";
|
||||
$setgr3 = "<td></td>".$datlrgr3->Group."</td><td colspan='4'></td>";
|
||||
}elseif($datlrgr3->Group == "2"){
|
||||
$setbg3 ="class='bg-yellow'";
|
||||
$setgr3 = "<td></td><td></td><td>".$datlrgr3->Group."</td><td colspan='3'></td>";
|
||||
}elseif($datlrgr3->Group == "3"){
|
||||
$setbg3 ="class='bg-blue'";
|
||||
$setgr3 = "<td></td><td colspan='2'></td><td>".$datlrgr3->Group."</td><td colspan='2'></td>";
|
||||
}elseif($datlrgr3->Group == "4"){
|
||||
$setbg3 ="class='bg-green'";
|
||||
$setgr3 = "<td></td><td colspan='3'></td><td>".$datlrgr3->Group."</td><td colspan='1'></td>";
|
||||
}elseif($datlrgr3->Group == "5"){
|
||||
$setbg3 ="class='bg-purple'";
|
||||
$setgr3 = "<td></td><td colspan='4'></td><td>".$datlrgr3->Group."</td>";
|
||||
}
|
||||
echo("
|
||||
<tr ".$setbg3.">
|
||||
".$setgr3."
|
||||
<td>".$datlrgr3->Kode."</td>
|
||||
<td>".$datlrgr3->Nama."</td>
|
||||
<td>".$datlrgr3->Kode_satusehat."</td>
|
||||
<td>".$datlrgr3->Id_location_simgos."</td>
|
||||
<td>".$datlrgr2->Kode."</td>
|
||||
<td>".$datlrgr2->Nama."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
foreach($lrgr as $datlrgr4){
|
||||
$setgr4=""; $setbg4="";
|
||||
if($datlrgr4->Parent == $datlrgr3->id){
|
||||
if($datlrgr4->Group == "1"){
|
||||
$setbg4 ="class='bg-red'";
|
||||
$setgr4 = "<td></td>".$datlrgr4->Group."</td><td colspan='4'></td>";
|
||||
}elseif($datlrgr4->Group == "2"){
|
||||
$setbg4 ="class='bg-yellow'";
|
||||
$setgr4 = "<td></td><td></td><td>".$datlrgr4->Group."</td><td colspan='3'></td>";
|
||||
}elseif($datlrgr4->Group == "3"){
|
||||
$setbg4 ="class='bg-blue'";
|
||||
$setgr4 = "<td></td><td colspan='2'></td><td>".$datlrgr4->Group."</td><td colspan='2'></td>";
|
||||
}elseif($datlrgr4->Group == "4"){
|
||||
$setbg4 ="class='bg-green'";
|
||||
$setgr4 = "<td></td><td colspan='3'></td><td>".$datlrgr4->Group."</td><td colspan='1'></td>";
|
||||
}elseif($datlrgr4->Group == "5"){
|
||||
$setbg4 ="class='bg-purple'";
|
||||
$setgr4 = "<td></td><td colspan='4'></td><td>".$datlrgr4->Group."</td>";
|
||||
}
|
||||
echo("
|
||||
<tr ".$setbg3.">
|
||||
".$setgr4."
|
||||
<td>".$datlrgr4->Kode."</td>
|
||||
<td>".$datlrgr4->Nama."</td>
|
||||
<td>".$datlrgr4->Kode_satusehat."</td>
|
||||
<td>".$datlrgr4->Id_location_simgos."</td>
|
||||
<td>".$datlrgr3->Kode."</td>
|
||||
<td>".$datlrgr3->Nama."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
foreach($lrgr as $datlrgr5){
|
||||
$setgr5=""; $setbg5="";
|
||||
if($datlrgr5->Parent == $datlrgr4->id){
|
||||
if($datlrgr5->Group == "1"){
|
||||
$setbg5 ="class='bg-red'";
|
||||
$setgr5 = "<td></td>".$datlrgr5->Group."</td><td colspan='4'></td>";
|
||||
}elseif($datlrgr5->Group == "2"){
|
||||
$setbg5 ="class='bg-yellow'";
|
||||
$setgr5 = "<td></td><td></td><td>".$datlrgr5->Group."</td><td colspan='3'></td>";
|
||||
}elseif($datlrgr5->Group == "3"){
|
||||
$setbg5 ="class='bg-blue'";
|
||||
$setgr5 = "<td></td><td colspan='2'></td><td>".$datlrgr5->Group."</td><td colspan='2'></td>";
|
||||
}elseif($datlrgr5->Group == "4"){
|
||||
$setbg5 ="class='bg-green'";
|
||||
$setgr5 = "<td></td><td colspan='3'></td><td>".$datlrgr5->Group."</td><td colspan='1'></td>";
|
||||
}elseif($datlrgr5->Group == "5"){
|
||||
$setbg5 ="class='bg-purple'";
|
||||
$setgr5 = "<td></td><td colspan='4'></td><td>".$datlrgr5->Group."</td>";
|
||||
}
|
||||
echo("
|
||||
<tr ".$setbg3.">
|
||||
".$setgr5."
|
||||
<td>".$datlrgr5->Kode."</td>
|
||||
<td>".$datlrgr5->Nama."</td>
|
||||
<td>".$datlrgr5->Kode_satusehat."</td>
|
||||
<td>".$datlrgr5->Id_location_simgos."</td>
|
||||
<td>".$datlrgr4->Kode."</td>
|
||||
<td>".$datlrgr4->Nama."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
417
application/views/datamaster/organisasi/v_organisasi.php
Normal file
417
application/views/datamaster/organisasi/v_organisasi.php
Normal file
@@ -0,0 +1,417 @@
|
||||
|
||||
<!--link rel="stylesheet" href="<?php echo base_url();?>assets/css/organisasi.css"-->
|
||||
<style>
|
||||
/* RESET STYLES & HELPER CLASSES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
:root {
|
||||
--level-1: #8dccad;
|
||||
--level-2: #f5cc7f;
|
||||
--level-3: #7b9fe0;
|
||||
--level-4: #f27c8d;
|
||||
--black: black;
|
||||
}
|
||||
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 50px 0 100px;
|
||||
text-align: center;
|
||||
font-family: "Inter", sans-serif;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1000px;
|
||||
padding: 0 10px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.rectangle {
|
||||
position: relative;
|
||||
padding: 20px;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
|
||||
/* LEVEL-1 STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.level-1 {
|
||||
width: 50%;
|
||||
margin: 0 auto 40px;
|
||||
background: var(--level-1);
|
||||
}
|
||||
|
||||
.level-1::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
|
||||
/* LEVEL-2 STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.level-2-wrapper {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.level-2-wrapper::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
left: 25%;
|
||||
width: 50%;
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-2-wrapper::after {
|
||||
display: none;
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: -20px;
|
||||
bottom: -20px;
|
||||
width: calc(100% + 20px);
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-2-wrapper li {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.level-2-wrapper > li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-2 {
|
||||
width: 70%;
|
||||
margin: 0 auto 40px;
|
||||
background: var(--level-2);
|
||||
}
|
||||
|
||||
.level-2::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-2::after {
|
||||
display: none;
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0%;
|
||||
transform: translate(-100%, -50%);
|
||||
width: 20px;
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
|
||||
/* LEVEL-3 STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.level-3-wrapper {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-column-gap: 20px;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.level-3-wrapper::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
left: calc(25% - 5px);
|
||||
width: calc(50% + 10px);
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-3-wrapper > li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -100%);
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-3 {
|
||||
margin-bottom: 20px;
|
||||
background: var(--level-3);
|
||||
}
|
||||
|
||||
|
||||
/* LEVEL-4 STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.level-4-wrapper {
|
||||
position: relative;
|
||||
width: 80%;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.level-4-wrapper::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
left: -20px;
|
||||
width: 2px;
|
||||
height: calc(100% + 20px);
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-4-wrapper li + li {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.level-4 {
|
||||
font-weight: normal;
|
||||
background: var(--level-4);
|
||||
}
|
||||
|
||||
.level-4::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0%;
|
||||
transform: translate(-100%, -50%);
|
||||
width: 20px;
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
|
||||
/* MQ STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
@media screen and (max-width: 700px) {
|
||||
.rectangle {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.level-1,
|
||||
.level-2 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.level-1 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.level-1::before,
|
||||
.level-2-wrapper > li::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.level-2-wrapper,
|
||||
.level-2-wrapper::after,
|
||||
.level-2::after {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.level-2-wrapper {
|
||||
width: 90%;
|
||||
margin-left: 10%;
|
||||
}
|
||||
|
||||
.level-2-wrapper::before {
|
||||
left: -20px;
|
||||
width: 2px;
|
||||
height: calc(100% + 40px);
|
||||
}
|
||||
|
||||
.level-2-wrapper > li:not(:first-child) {
|
||||
margin-top: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* FOOTER
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.page-footer {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.page-footer a {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
|
||||
<?php
|
||||
foreach($org1 as $datorg1){
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="container">
|
||||
<h1 class="level-1 rectangle">CEO</h1>
|
||||
<ol class="level-2-wrapper">
|
||||
<li>
|
||||
<h2 class="level-2 rectangle">Director A</h2>
|
||||
<ol class="level-3-wrapper">
|
||||
<li>
|
||||
<h3 class="level-3 rectangle">Manager A</h3>
|
||||
<ol class="level-4-wrapper">
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person A</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person B</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person C</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person D</h4>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="level-3 rectangle">Manager B</h3>
|
||||
<ol class="level-4-wrapper">
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person A</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person B</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person C</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person D</h4>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>
|
||||
<h2 class="level-2 rectangle">Director B</h2>
|
||||
<ol class="level-3-wrapper">
|
||||
<li>
|
||||
<h3 class="level-3 rectangle">Manager C</h3>
|
||||
<ol class="level-4-wrapper">
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person A</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person B</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person C</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person D</h4>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="level-3 rectangle">Manager D</h3>
|
||||
<ol class="level-4-wrapper">
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person A</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person B</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person C</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person D</h4>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<footer class="page-footer">
|
||||
<span>made by </span>
|
||||
<a href="https://georgemartsoukos.com/" target="_blank">
|
||||
<img width="24" height="24" src="https://assets.codepen.io/162656/george-martsoukos-small-logo.svg" alt="George Martsoukos logo">
|
||||
</a>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
8
application/views/errors/cli/error_404.php
Normal file
8
application/views/errors/cli/error_404.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
8
application/views/errors/cli/error_db.php
Normal file
8
application/views/errors/cli/error_db.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
application/views/errors/cli/error_exception.php
Normal file
21
application/views/errors/cli/error_exception.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
8
application/views/errors/cli/error_general.php
Normal file
8
application/views/errors/cli/error_general.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
application/views/errors/cli/error_php.php
Normal file
21
application/views/errors/cli/error_php.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
11
application/views/errors/cli/index.html
Normal file
11
application/views/errors/cli/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
64
application/views/errors/html/error_404.php
Normal file
64
application/views/errors/html/error_404.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
64
application/views/errors/html/error_db.php
Normal file
64
application/views/errors/html/error_db.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
32
application/views/errors/html/error_exception.php
Normal file
32
application/views/errors/html/error_exception.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
64
application/views/errors/html/error_general.php
Normal file
64
application/views/errors/html/error_general.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
33
application/views/errors/html/error_php.php
Normal file
33
application/views/errors/html/error_php.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
11
application/views/errors/html/index.html
Normal file
11
application/views/errors/html/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/views/errors/index.html
Normal file
11
application/views/errors/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
0
application/views/home/v_home.php
Normal file
0
application/views/home/v_home.php
Normal file
6
application/views/includes/footer.php
Normal file
6
application/views/includes/footer.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<strong>
|
||||
Copyright © 2022 <a href="https://adminlte.io">Satu RSSA</a>.
|
||||
</strong>
|
||||
<div class="float-right d-none d-sm-inline-block">
|
||||
<b>Version</b> 0.0.1
|
||||
</div>
|
||||
106
application/views/includes/header.php
Normal file
106
application/views/includes/header.php
Normal file
@@ -0,0 +1,106 @@
|
||||
<!-- Navbar -->
|
||||
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
|
||||
<!-- Left navbar links -->
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- Right navbar links -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- Messages Dropdown Menu -->
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||
<i class="far fa-comments"></i>
|
||||
<span class="badge badge-danger navbar-badge">3</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
Brad Diesel<span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">Call me whenever you can...</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
John Pierce<span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">I got your message bro</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
Nora Silvester<span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">The subject goes here</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
|
||||
</div>
|
||||
</li>
|
||||
<!-- Notifications Dropdown Menu -->
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||
<i class="far fa-bell"></i>
|
||||
<span class="badge badge-warning navbar-badge">15</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||
<span class="dropdown-item dropdown-header">15 Notifications</span>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-envelope mr-2"></i> 4 new messages
|
||||
<span class="float-right text-muted text-sm">3 mins</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-users mr-2"></i> 8 friend requests
|
||||
<span class="float-right text-muted text-sm">12 hours</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-file mr-2"></i> 3 new reports
|
||||
<span class="float-right text-muted text-sm">2 days</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
|
||||
<i class="fas fa-expand-arrows-alt"></i>
|
||||
</a>
|
||||
</li>
|
||||
<!--li class="nav-item">
|
||||
<a class="nav-link" data-widget="control-sidebar" data-controlsidebar-slide="true" href="#" role="button">
|
||||
<i class="fas fa-th-large"></i>
|
||||
</a>
|
||||
</li-->
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.navbar -->
|
||||
91
application/views/includes/sidebar.php
Normal file
91
application/views/includes/sidebar.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="main-sidebar elevation-4 sidebar-light-teal">
|
||||
<!-- Brand Logo -->
|
||||
<a href="index3.html" class="brand-link">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8"/>
|
||||
<span class="brand-text font-weight-light">SatuRSSA</span>
|
||||
</a>
|
||||
<div class="sidebar">
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="image">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image"/>
|
||||
</div>
|
||||
<div class="info">
|
||||
<a href="#" class="d-block"><?php echo $this->session->userdata('s_UserName');?></a>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column nav-compact" data-widget="treeview" role="menu" data-accordion="false">
|
||||
<?php
|
||||
$linknow=$this->uri->segment(1, 0);
|
||||
//--------------start lp_ppi 1 controller--------------//
|
||||
if($linknow=="lp_ppi"){
|
||||
$linknow=$this->uri->segment(1, 0)."/".$this->uri->segment(2, 0);
|
||||
$linksearch = substr($this->uri->segment(2, 0), 0, 6);
|
||||
// if($linksearch=="search"){
|
||||
// $linknow=$this->uri->segment(1, 0)."/".substr($this->uri->segment(2, 0), 6);
|
||||
// }
|
||||
}elseif($linknow=="lp_simrs_kemenkes"){
|
||||
$linknow=$this->uri->segment(1, 0)."/".$this->uri->segment(2, 0);
|
||||
$linksearch = substr($this->uri->segment(2, 0), 0, 6);
|
||||
// if($linksearch=="search"){
|
||||
// $linknow=$this->uri->segment(1, 0)."/".substr($this->uri->segment(2, 0), 6);
|
||||
// }
|
||||
}elseif($linknow=="lp_simrs_report"){
|
||||
$linknow=$this->uri->segment(1, 0)."/".$this->uri->segment(2, 0);
|
||||
$linksearch = substr($this->uri->segment(2, 0), 0, 6);
|
||||
// if($linksearch=="search"){
|
||||
// $linknow=$this->uri->segment(1, 0)."/".substr($this->uri->segment(2, 0), 6);
|
||||
// }
|
||||
}elseif($linknow=="lp_data_master"){
|
||||
$linknow=$this->uri->segment(1, 0)."/".$this->uri->segment(2, 0);
|
||||
$linksearch = substr($this->uri->segment(2, 0), 0, 6);
|
||||
}
|
||||
//--------------end lp_ppi 1 controller--------------//
|
||||
$this->db->join('master_menu', 'mm_id = am_fk_menu_id', 'LEFT');
|
||||
$this->db->where('mm_status', 1);
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$query = $this->db->get('access_menu');
|
||||
|
||||
foreach ($query->result() as $parent){
|
||||
if($parent->mm_level==1){
|
||||
$aktif= "";
|
||||
$open = "";
|
||||
foreach ($query->result() as $aktifcek){
|
||||
if($aktifcek->mm_link===$linknow && $parent->mm_id==$aktifcek->mm_parent){
|
||||
$aktif= "active";
|
||||
$open = "menu-open";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<li class="nav-item <?php echo $open;?>">
|
||||
<a href="<?php echo base_url()."index.php/".$parent->mm_link;?>" class="nav-link <?php if($parent->mm_link === $linknow){echo "active";} echo $aktif; if(0===$linknow && $parent->mm_name == "Dashboard"){echo "active";}?>">
|
||||
<i class="<?php echo $parent->mm_icon;?>"> </i>
|
||||
<p> <?php echo $parent->mm_name; if($parent->mm_link=="#"){?> <i class="right fas fa-angle-left"></i> <?php } ?> </p>
|
||||
</a>
|
||||
<?php
|
||||
if($parent->mm_link=="#"){
|
||||
foreach ($query->result() as $menuchild){
|
||||
if($parent->mm_id==$menuchild->mm_parent){
|
||||
?>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item ">
|
||||
<a href="<?php echo base_url()."index.php/".$menuchild->mm_link;?>" class="nav-link <?php if($menuchild->mm_link === $linknow){echo "active";}?>">
|
||||
<i class="fa fa-caret-right nav-icon"></i>
|
||||
<p> <?php echo $menuchild->mm_name;?></p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
} ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
286
application/views/includes/template.php
Normal file
286
application/views/includes/template.php
Normal file
@@ -0,0 +1,286 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>SatuRSSA</title>
|
||||
|
||||
<!-- Select2 -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/select2/css/select2.min.css">
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css">
|
||||
<!-- Google Font: Source Sans Pro -->
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/fontawesome-free/css/all.min.css">
|
||||
<!-- Ionicons -->
|
||||
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
|
||||
<!-- Tempusdominus Bootstrap 4 -->
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
|
||||
<!-- iCheck -->
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
|
||||
<!-- JQVMap -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jqvmap/jqvmap.min.css">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/dist/css/adminlte.min.css">
|
||||
<!-- overlayScrollbars -->
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
|
||||
<!-- Daterange picker -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/daterangepicker/daterangepicker.css">
|
||||
<!-- summernote -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/summernote/summernote-bs4.min.css">
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body class="hold-transition sidebar-mini layout-fixed accent-gray layout-footer-fixed text-sm">
|
||||
<div class="wrapper">
|
||||
<!-- Preloader -->
|
||||
<!--div class="preloader flex-column justify-content-center align-items-center">
|
||||
<img class="animation__shake" src="<?php echo base_url(); ?>theme/AdminLTE3/dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60"/>
|
||||
</div-->
|
||||
|
||||
<div class="row-fluid">
|
||||
<?php $this->load->view("includes/header"); ?>
|
||||
</div>
|
||||
<div id="main-container">
|
||||
<?php $this->load->view("includes/sidebar"); ?>
|
||||
<div class="content-wrapper">
|
||||
<?php $this->load->view($main_content); ?>
|
||||
</div>
|
||||
<footer class="main-footer">
|
||||
<?php $this->load->view("includes/footer"); ?>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- Control Sidebar -->
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<!-- Control sidebar content goes here -->
|
||||
</aside>
|
||||
<!-- /.control-sidebar -->
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
<!-- jQuery -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jquery/jquery.min.js"></script>
|
||||
<!-- jQuery UI 1.11.4 -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jquery-ui/jquery-ui.min.js"></script>
|
||||
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
|
||||
<script>
|
||||
$.widget.bridge('uibutton', $.ui.button)
|
||||
</script>
|
||||
<!-- Bootstrap 4 -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- ChartJS -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/chart.js/Chart.min.js"></script>
|
||||
<!-- Sparkline -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/sparklines/sparkline.js"></script>
|
||||
<!-- JQVMap -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jqvmap/jquery.vmap.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jqvmap/maps/jquery.vmap.usa.js"></script>
|
||||
<!-- jQuery Knob Chart -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jquery-knob/jquery.knob.min.js"></script>
|
||||
<!-- daterangepicker -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/moment/moment.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/daterangepicker/daterangepicker.js"></script>
|
||||
<!-- Tempusdominus Bootstrap 4 -->
|
||||
<script
|
||||
src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js">
|
||||
</script>
|
||||
<!-- Summernote -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/summernote/summernote-bs4.min.js"></script>
|
||||
<!-- overlayScrollbars -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js">
|
||||
</script>
|
||||
<!-- Bootstrap Switch -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
|
||||
<!-- InputMask -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/inputmask/jquery.inputmask.min.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/dist/js/adminlte.js"></script>
|
||||
<!-- AdminLTE for demo purposes -->
|
||||
<!--script src="<?php echo base_url(); ?>theme/AdminLTE3/dist/js/demo.js"></script-->
|
||||
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
|
||||
<!--script src="<?php echo base_url(); ?>theme/AdminLTE3/dist/js/pages/dashboard.js"></script-->
|
||||
|
||||
<!-- DataTables & Plugins -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js">
|
||||
</script>
|
||||
<script
|
||||
src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-responsive/js/dataTables.responsive.min.js">
|
||||
</script>
|
||||
<script
|
||||
src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-responsive/js/responsive.bootstrap4.min.js">
|
||||
</script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/dataTables.buttons.min.js">
|
||||
</script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/buttons.bootstrap4.min.js">
|
||||
</script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jszip/jszip.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/pdfmake/pdfmake.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/pdfmake/vfs_fonts.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/buttons.print.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/bs-custom-file-input/bs-custom-file-input.min.js">
|
||||
</script>
|
||||
<!-- Select2 -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/select2/js/select2.full.min.js"></script>
|
||||
<!-- Page specific script -->
|
||||
<script>
|
||||
$(function() {
|
||||
$("#example1").DataTable({
|
||||
"dom": 'Brftip',
|
||||
"responsive": true,
|
||||
"lengthChange": false,
|
||||
"autoWidth": false,
|
||||
// "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
|
||||
buttons: [{
|
||||
extend: "copy",
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "print",
|
||||
orientation: "landscape",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
customize: function(win) {
|
||||
$(win.document.body).css("font-size", "10pt").prepend();
|
||||
$(win.document.body)
|
||||
.find("table")
|
||||
.addClass("compact")
|
||||
.css("font-size", "inherit");
|
||||
},
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "excel",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "csv",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "pdfHtml5",
|
||||
text: "PDF",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
orientation: "landscape",
|
||||
customize: function(doc) {},
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "colvis"
|
||||
},
|
||||
],
|
||||
}).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
|
||||
$('#example2').DataTable({
|
||||
"dom": 'Brftip',
|
||||
"responsive": true,
|
||||
"lengthChange": false,
|
||||
"autoWidth": false,
|
||||
// "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
|
||||
buttons: [{
|
||||
extend: "copy",
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "print",
|
||||
orientation: "landscape",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
customize: function(win) {
|
||||
$(win.document.body).css("font-size", "10pt").prepend();
|
||||
$(win.document.body)
|
||||
.find("table")
|
||||
.addClass("compact")
|
||||
.css("font-size", "inherit");
|
||||
},
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "excel",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "csv",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "pdfHtml5",
|
||||
text: "PDF",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
orientation: "landscape",
|
||||
customize: function(doc) {},
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "colvis"
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
$("input[data-bootstrap-switch]").each(function() {
|
||||
$(this).bootstrapSwitch('state', $(this).prop('checked'));
|
||||
})
|
||||
|
||||
//Initialize Select2 Elements
|
||||
$('.select2').select2()
|
||||
|
||||
//Initialize Select2 Elements
|
||||
$('.select2bs4').select2({
|
||||
theme: 'bootstrap4'
|
||||
})
|
||||
|
||||
$('#reservation').daterangepicker()
|
||||
|
||||
//Datemask dd/mm/yyyy
|
||||
$('#datemask').inputmask('dd/mm/yyyy', {
|
||||
'placeholder': 'dd/mm/yyyy'
|
||||
})
|
||||
//Datemask2 mm/dd/yyyy
|
||||
$('#datemask2').inputmask('mm/dd/yyyy', {
|
||||
'placeholder': 'mm/dd/yyyy'
|
||||
})
|
||||
//Money Euro
|
||||
$('[data-mask]').inputmask()
|
||||
|
||||
bsCustomFileInput.init();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
11
application/views/index.html
Normal file
11
application/views/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
67
application/views/login/form_login.php
Normal file
67
application/views/login/form_login.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>SatuRSSA | Log in</title>
|
||||
|
||||
<!-- Google Font: Source Sans Pro -->
|
||||
<!--link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"-->
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>theme/AdminLTE3/plugins/fontawesome-free/css/all.min.css"/>
|
||||
<!-- icheck bootstrap -->
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>theme/AdminLTE3/plugins/icheck-bootstrap/icheck-bootstrap.min.css"/>
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>theme/AdminLTE3/dist/css/adminlte.min.css"/>
|
||||
</head>
|
||||
<body class="hold-transition login-page">
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<a><b>Satu</b>RSSA</a>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body login-card-body">
|
||||
<p class="login-box-msg">Masukan Nama User & Password</p>
|
||||
<p><?php echo $error?></p>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<form action="<?php echo base_url();?>index.php/ps_login/process" name="process" method="post" autocomplete="off">
|
||||
<div class="input-group mb-3">
|
||||
<input id="username" name="username" type="text" class="form-control" placeholder="Username"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-user"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group mb-3">
|
||||
<input id="password" name="password" type="password" class="form-control" placeholder="Password"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<button type="submit" class="btn btn-info btn-block">Sign In</button>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<a href="https://auth.rssa.top/realms/rssa/protocol" class="btn btn-warning btn-block">Keycloak</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- jQuery -->
|
||||
<script src="<?php echo base_url();?>theme/AdminLTE3/plugins/jquery/jquery.min.js"></script>
|
||||
<!-- Bootstrap 4 -->
|
||||
<script src="<?php echo base_url();?>theme/AdminLTE3/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="<?php echo base_url();?>theme/AdminLTE3/dist/js/adminlte.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
301
application/views/master/klinik/form_klinik.php
Normal file
301
application/views/master/klinik/form_klinik.php
Normal file
@@ -0,0 +1,301 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled = "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setkode = "";
|
||||
$setketerangan = "";
|
||||
$setquotabangku = "";
|
||||
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled='disabled'";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $kl->row('mk_id');
|
||||
$setnama = $kl->row('mk_nama');
|
||||
$setkode = $kl->row('mk_kode');
|
||||
$setketerangan = $kl->row('mk_ket');
|
||||
$setquotabangku = $kl->row('mk_quota_bangku');
|
||||
$setstatus = $kl->row('mk_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Nama Klinik" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<input id="kode" name="kode" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Kode" value="<?php echo $setkode;?>" maxlength="2" style="text-transform:uppercase" />
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<input id="quotabangku" name="quotabangku" type="number" <?php echo $setdisabled;?> class="form-control" placeholder="Quota Bangku" value="<?php echo $setquotabangku;?>" />
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input id="keterangan" name="keterangan" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Keterangan" value="<?php echo $setketerangan;?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Jadwal Klinik</label>
|
||||
<div class="col-sm-10">
|
||||
<table class="table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 5%">#</th>
|
||||
<th style="width: 10%">Hari</th>
|
||||
<th style="width: 10%">Shift</th>
|
||||
<th style="width: 10%">Quota</th>
|
||||
<th style="width: 10%">Buka</th>
|
||||
<th style="width: 10%">Tutup</th>
|
||||
<th style="width: 5%">Pilih</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
for($i=1;$i<=7;$i++){
|
||||
$hari = ""; $haritext = "";
|
||||
switch ($i) {
|
||||
case 1: $hari = "senin"; $haritext = "Senin"; break;
|
||||
case 2: $hari = "selasa"; $haritext = "Selasa"; break;
|
||||
case 3: $hari = "rabu"; $haritext = "Rabu"; break;
|
||||
case 4: $hari = "kamis"; $haritext = "Kamis"; break;
|
||||
case 5: $hari = "jumat"; $haritext = "Jum'at"; break;
|
||||
case 6: $hari = "sabtu"; $haritext = "Sabtu"; break;
|
||||
case 7: $hari = "minggu"; $haritext = "Minggu"; break;
|
||||
}
|
||||
|
||||
$setidjadwal = "";
|
||||
$setshiftjadwal = "";
|
||||
$setquotajadwal = "";
|
||||
$setbukajadwal = "";
|
||||
$settutupjadwal = "";
|
||||
$setcheckedjadwal = "";
|
||||
$setdisabledjadawal = "disabled='disabled'";
|
||||
if ($actionform!="prosesadd"){
|
||||
foreach($jd as $datjadwal){
|
||||
if($datjadwal->mkj_kode_jadwal==$i){
|
||||
$setidjadwal = $datjadwal->mkj_id;
|
||||
$setshiftjadwal = $datjadwal->mkj_jumlah_shift;
|
||||
$setquotajadwal = $datjadwal->mkj_total_quota;
|
||||
$setbukajadwal = $datjadwal->mkj_jam_buka;
|
||||
$settutupjadwal = $datjadwal->mkj_jam_tutup;
|
||||
$setcheckedjadwal = "checked";
|
||||
$setdisabledjadawal = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-info"><?php echo $i;?></td>
|
||||
<td class="bg-info"><?php echo $haritext;?></td>
|
||||
<td>
|
||||
<input <?php echo $setdisabledjadawal;?> onkeyup="addcolomjadwal(<?php echo $i;?>)" id="shift<?php echo $i;?>" name="shift<?php echo $hari;?>" type="number" <?php echo $setdisabled;?> class="form-control form-control-sm" value="<?php echo $setshiftjadwal;?>" />
|
||||
<input hidden id='idjadwal<?php echo $i;?>' name="idjadwal<?php echo $hari;?>" type="text" value="<?php echo $setidjadwal;?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input <?php echo $setdisabledjadawal;?> onkeyup="bagiquota(<?php echo $i;?>)" id="quota<?php echo $i;?>" name="quota<?php echo $hari;?>" type="number" <?php echo $setdisabled;?> class="form-control form-control-sm" value="<?php echo $setquotajadwal;?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input <?php echo $setdisabledjadawal;?> onkeyup="bagijam(<?php echo $i;?>)" id="jambuka<?php echo $i;?>" name="jambuka<?php echo $hari;?>" type="text" <?php echo $setdisabled;?> class="form-control form-control-sm" data-inputmask="'mask': ['99:99', '99:99']" data-mask value="<?php echo $setbukajadwal;?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input <?php echo $setdisabledjadawal;?> onkeyup="bagijam(<?php echo $i;?>)" id="jamtutup<?php echo $i;?>" name="jamtutup<?php echo $hari;?>" type="text" <?php echo $setdisabled;?> class="form-control form-control-sm" data-inputmask="'mask': ['99:99', '99:99']" data-mask value="<?php echo $settutupjadwal;?>" />
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php echo $setcheckedjadwal;?> onchange="enablecolom(<?php echo $i;?>)" <?php echo $setdisabled; ?> id="jadwal<?php echo $i;?>" name="jadwalklinik[]" class="custom-control-input custom-control-input-danger custom-control-input-outline" type="checkbox" id="customCheckbox5" value="<?php echo $i;?>" />
|
||||
<label for="jadwal<?php echo $i;?>" class="custom-control-label"></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7" id="app<?php echo $i;?>">
|
||||
<?php
|
||||
if ($actionform!="prosesadd"){
|
||||
$numshift=0;
|
||||
echo "<table>";
|
||||
foreach($sh as $datshift){
|
||||
if($datshift->mks_klinik_jadwal_id==$setidjadwal){
|
||||
$numshift++;
|
||||
$sjbuka = $datshift->mks_jam_buka;
|
||||
$splitsjb = explode(":",$sjbuka);
|
||||
?>
|
||||
<tr class="shiftremove<?php echo $i;?>">
|
||||
<td style="width: 10%">Mulai Shift <?php echo $numshift;?></td>
|
||||
<td style="width: 10%"><input id="jambukashift<?php echo $i.$numshift;?>" name="jambuka<?php echo $i;?>[]" type="text" class="form-control form-control-sm" placeholder="00 (Jam)" maxlength="2" value="<?php echo $splitsjb[0];?>"/></td>
|
||||
<td style="width: 2%;text-align: center;">:</td>
|
||||
<td style="width: 10%"><input id="menitbukashift<?php echo $i.$numshift;?>" name="menitbuka<?php echo $i;?>[]" type="text" class="form-control form-control-sm" placeholder="00 (Menit)" maxlength="2" value="<?php echo $splitsjb[1];?>"/></td>
|
||||
<td style="width: 5%">Quota Shift </td>
|
||||
<td style="width: 10%">
|
||||
<input onkeyup="tambahquota(<?php echo $i;?>)" id="quotashift<?php echo $i.$numshift;?>" name="quotashift<?php echo $i;?>[]" type="number" class="form-control form-control-sm" value="<?php echo $datshift->mks_quota;?>"/>
|
||||
<input hidden name="idshift<?php echo $i;?>[]" type="text" value="<?php echo $datshift->mks_id;?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<script>
|
||||
function enablecolom(num){
|
||||
if( $('#jadwal'+num).is(':checked') ){
|
||||
$('.shiftremove'+num).remove();
|
||||
document.getElementById("shift"+num).disabled = false;
|
||||
document.getElementById("quota"+num).disabled = false;
|
||||
document.getElementById("jambuka"+num).disabled = false;
|
||||
document.getElementById("jamtutup"+num).disabled = false;
|
||||
}
|
||||
else{
|
||||
$("#shift"+num).val("");
|
||||
$("#quota"+num).val("");
|
||||
$("#jambuka"+num).val("");
|
||||
$("#jamtutup"+num).val("");
|
||||
document.getElementById("shift"+num).disabled = true;
|
||||
document.getElementById("quota"+num).disabled = true;
|
||||
document.getElementById("jambuka"+num).disabled = true;
|
||||
document.getElementById("jamtutup"+num).disabled = true;
|
||||
var idjadwal = $("#idjadwal"+num).val();
|
||||
$('.shiftremove'+num).remove();
|
||||
$("#app"+num).append("<div class='shiftremove"+num+"'><input hidden name='iddeljadwal"+num+"' type='text' value='"+idjadwal+"' /></div>");
|
||||
}
|
||||
}
|
||||
|
||||
function addcolomjadwal(num){
|
||||
$('.shiftremove'+num).remove();
|
||||
var jumapp = $("#shift"+num).val();
|
||||
for(let i=1;i<=jumapp;i++){
|
||||
$("#app"+num).append(" <tr class='shiftremove"+num+"'>"+
|
||||
"<td style='width: 10%'>Mulai Shift "+i+"</td>"+
|
||||
"<td style='width: 10%'><input id='jambukashift"+num+i+"' name='jambuka"+num+"[]' type='text' class='form-control form-control-sm' placeholder='00 (Jam)' maxlength='2' /></td>"+
|
||||
"<td style='width: 2%;text-align: center;'>:</td>"+
|
||||
"<td style='width: 10%'><input id='menitbukashift"+num+i+"' name='menitbuka"+num+"[]' type='text' class='form-control form-control-sm' placeholder='00 (Menit)' maxlength='2' /></td>"+
|
||||
"<td style='width: 5%'>Quota Shift </td>"+
|
||||
"<td style='width: 10%'><input onkeyup='tambahquota("+num+")' id='quotashift"+num+i+"' name='quotashift"+num+"[]' type='number' class='form-control form-control-sm' /></td>"+
|
||||
"</tr>");
|
||||
}
|
||||
this.bagiquota(num);
|
||||
this.bagijam(num);
|
||||
}
|
||||
|
||||
function bagiquota(num){
|
||||
var shift = parseInt($("#shift"+num).val());
|
||||
var quota = parseInt($("#quota"+num).val());
|
||||
var hasil = quota / shift;
|
||||
for(let i=1;i<=shift;i++){
|
||||
$("#quotashift"+num+i).val(Math.floor(hasil));
|
||||
}
|
||||
}
|
||||
|
||||
function tambahquota(num){
|
||||
var shift = parseInt($("#shift"+num).val());
|
||||
var hasil = 0;
|
||||
for(let i=1;i<=shift;i++){
|
||||
hasil = parseInt(hasil) + parseInt($("#quotashift"+num+i).val());
|
||||
}
|
||||
$("#quota"+num).val(hasil);
|
||||
}
|
||||
|
||||
function bagijam(num){
|
||||
var shift = parseInt($("#shift"+num).val());
|
||||
var jambuka = new Date("2023-01-01 "+$("#jambuka"+num).val());
|
||||
var jamtutup= new Date("2023-01-01 "+$("#jamtutup"+num).val());
|
||||
var diff = Math.abs(jamtutup - jambuka);
|
||||
var minutes = Math.floor((diff/1000)/60);
|
||||
var selshift= parseInt(minutes)/parseInt(shift);
|
||||
|
||||
for(let i=1;i<=shift;i++){
|
||||
if(parseInt(i)==1){
|
||||
var h = jambuka.getHours("H");
|
||||
var m = jambuka.getMinutes("M");
|
||||
if(h<10){$("#jambukashift"+num+i).val("0"+h);
|
||||
}else{$("#jambukashift"+num+i).val(h);}
|
||||
if(m<10){$("#menitbukashift"+num+i).val("0"+m);
|
||||
}else{$("#menitbukashift"+num+i).val(m);}
|
||||
}else{
|
||||
jambuka.setMinutes(jambuka.getMinutes() + selshift);
|
||||
var h = jambuka.getHours("H");
|
||||
var m = jambuka.getMinutes("M");
|
||||
if(h<10){$("#jambukashift"+num+i).val("0"+h);
|
||||
}else{$("#jambukashift"+num+i).val(h);}
|
||||
if(m<10){$("#menitbukashift"+num+i).val("0"+m);
|
||||
}else{$("#menitbukashift"+num+i).val(m);}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
152
application/views/master/klinik/v_klinik.php
Normal file
152
application/views/master/klinik/v_klinik.php
Normal file
@@ -0,0 +1,152 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Kode</th>
|
||||
<th>Keterangan</th>
|
||||
<th>Quota Bangku</th>
|
||||
<th>Jadwal</th>
|
||||
<th>Status</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($kl as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mk_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mk_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mk_id.")' class='btn btn-danger btn-xs'><i class='fa fa-times'></i></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mk_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mk_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mk_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i></a> ";
|
||||
}
|
||||
}
|
||||
|
||||
$jadwal = "";
|
||||
foreach($jd as $datjadwal){
|
||||
if($datjadwal->mkj_klinik_id==$dat->mk_id){
|
||||
$jadwal = $jadwal." <span class='badge bg-info'>".$datjadwal->mkj_jadwal." (".$datjadwal->mkj_jumlah_shift." Shift / ".$datjadwal->mkj_total_quota.")</span>";
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mk_id."' value='".$dat->mk_nama."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mk_nama."</td>
|
||||
<td>".$dat->mk_kode."</td>
|
||||
<td>".$dat->mk_ket."</td>
|
||||
<td>".$dat->mk_quota_bangku."</td>
|
||||
<td>".$jadwal."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Klinik '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_klinik/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Klinik '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_klinik/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Klinik '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_klinik/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
205
application/views/master/loket_rajal/form_loket_rajal.php
Normal file
205
application/views/master/loket_rajal/form_loket_rajal.php
Normal file
@@ -0,0 +1,205 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled = "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setkode = "";
|
||||
$setquota = "";
|
||||
$setpembayaran = "";
|
||||
$setonline = "";
|
||||
$setpelayanan = "";
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled='disabled'";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $lkrj->row('mlrj_id');
|
||||
$setnama = $lkrj->row('mlrj_nama');
|
||||
$setkode = $lkrj->row('mlrj_kode');
|
||||
$setquota = $lkrj->row('mlrj_quotabangku');
|
||||
$setpembayaran = $lkrj->row('mlrj_pembayaran');
|
||||
$setonline = $lkrj->row('mlrj_online');
|
||||
$setpelayanan = $lkrj->row('mlrj_pelayanan');
|
||||
$setstatus = $lkrj->row('mlrj_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Nama Loket" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<input id="kode" name="kode" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Kode" value="<?php echo $setkode;?>" maxlength="2" style="text-transform:uppercase" />
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<input id="quota" name="quota" type="number" <?php echo $setdisabled;?> class="form-control" placeholder="Quota Bangku" value="<?php echo $setquota;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="online" class="col-sm-2 col-form-label">Keterangan</label>
|
||||
<div class="col-sm-6">
|
||||
<select <?php echo $setdisabled; ?> id="online" name="online" class="form-control">
|
||||
<option value="">Pilih Keterangan</option>
|
||||
<option <?php if($setonline==1){echo "selected='selected'";} ?> value="1">Online</option>
|
||||
<option <?php if($setonline==2){echo "selected='selected'";} ?> value="2">Offline</option>
|
||||
<option <?php if($setonline==3){echo "selected='selected'";} ?> value="3">Semua</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="pembayaran" class="col-sm-2 col-form-label">Pembayaran</label>
|
||||
<div class="col-sm-6">
|
||||
<table class="table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 10px">#</th>
|
||||
<th>Pembayaran</th>
|
||||
<th style="width: 40px">Pilih</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($pm as $dat){
|
||||
$no++;
|
||||
$checkedpem = "";
|
||||
$pecahpem = explode("|",$setpembayaran);
|
||||
$jumpem = (count($pecahpem));
|
||||
for($y=0;$y<=$jumpem;$y++){
|
||||
if(isset($pecahpem[$y])){
|
||||
if($pecahpem[$y]==$dat->mp_id){
|
||||
$checkedpem = "Checked";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no."."; ?></td>
|
||||
<td><?php echo $dat->mp_nama; ?></td>
|
||||
<td>
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php echo $setdisabled; echo $checkedpem;?> id="pembayaran<?php echo $no;?>" name="pembayaran[]" class="custom-control-input custom-control-input-danger custom-control-input-outline" type="checkbox" id="customCheckbox5" value="<?php echo $dat->mp_id;?>" />
|
||||
<label for="pembayaran<?php echo $no;?>" class="custom-control-label"></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="Pelayanan" class="col-sm-2 col-form-label">Pelayanan</label>
|
||||
<div class="col-sm-6">
|
||||
<table class="table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 10px">#</th>
|
||||
<th style="width: 100px">Kode</th>
|
||||
<th>Klinik</th>
|
||||
<th style="width: 40px">Pilih</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($kl as $dat){
|
||||
$no++;
|
||||
$checkedpel = "";
|
||||
$pecahpel = explode("|",$setpelayanan);
|
||||
$jumpel = (count($pecahpel));
|
||||
for($y=0;$y<=$jumpel;$y++){
|
||||
if(isset($pecahpel[$y])){
|
||||
if($pecahpel[$y]==$dat->mk_id){
|
||||
$checkedpel = "Checked";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no."."; ?></td>
|
||||
<td><?php echo $dat->mk_kode; ?></td>
|
||||
<td><?php echo $dat->mk_nama; ?></td>
|
||||
<td>
|
||||
<label>
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php echo $setdisabled; echo $checkedpel; ?> id="pelayanan<?php echo $no;?>" name="pelayanan[]" class="custom-control-input custom-control-input-danger custom-control-input-outline" type="checkbox" id="customCheckbox5" value="<?php echo $dat->mk_id;?>" />
|
||||
<label for="pelayanan<?php echo $no;?>" class="custom-control-label"></label>
|
||||
</div>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
188
application/views/master/loket_rajal/v_loket_rajal.php
Normal file
188
application/views/master/loket_rajal/v_loket_rajal.php
Normal file
@@ -0,0 +1,188 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Kode</th>
|
||||
<th>Quota</th>
|
||||
<th>Pelayanan</th>
|
||||
<th>Pembayaran</th>
|
||||
<th>Online</th>
|
||||
<th>Status</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($lkrj as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mlrj_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mlrj_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mlrj_id.")' class='btn btn-danger btn-xs'><i class='fa fa-times'></i></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mlrj_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mlrj_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mlrj_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i></a> ";
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------end check access action-------------------//
|
||||
//----------start pelayanan-------------//
|
||||
$pecahpel = explode("|",$dat->mlrj_pelayanan);
|
||||
$jumpel = (count($pecahpel));
|
||||
$infoklinik = "";
|
||||
for($x=0;$x<=$jumpel;$x++){
|
||||
if(isset($pecahpel[$x])){
|
||||
foreach ($kl as $datkli){
|
||||
if($pecahpel[$x]==$datkli->mk_id){
|
||||
$infoklinik=$infoklinik."<small class='badge badge-success'>".$datkli->mk_nama."</small> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//------------end pelayanan-------------//
|
||||
|
||||
//----------start pembayaran------------//
|
||||
$pecahpem = explode("|",$dat->mlrj_pembayaran);
|
||||
$jumpem = (count($pecahpem));
|
||||
$infopem = "";
|
||||
for($y=0;$y<=$jumpem;$y++){
|
||||
if(isset($pecahpem[$y])){
|
||||
foreach ($pm as $datpem){
|
||||
if($pecahpem[$y]==$datpem->mp_id){
|
||||
$infopem=$infopem."<small class='badge badge-warning'>".$datpem->mp_nama."</small> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//------------end pembayaran------------//
|
||||
//------------start online--------------//
|
||||
if($dat->mlrj_online==1){
|
||||
$infoonl="<small class='badge badge-primary'>Online</small> ";
|
||||
}elseif($dat->mlrj_online==2){
|
||||
$infoonl="<small class='badge badge-secondary'>Offline</small> ";
|
||||
}elseif($dat->mlrj_online==3){
|
||||
$infoonl="<small class='badge badge-info'>Semua</small> ";
|
||||
}
|
||||
|
||||
//--------------end online--------------//
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mlrj_id."' value='".$dat->mlrj_nama."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mlrj_nama."</td>
|
||||
<td>".$dat->mlrj_kode."</td>
|
||||
<td>".$dat->mlrj_quotabangku."</td>
|
||||
<td>".$infoklinik."</td>
|
||||
<td>".$infopem."</td>
|
||||
<td>".$infoonl."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Loket Rajal '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_loket_rajal/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Loket Rajal '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_loket_rajal/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Loket Rajal '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_loket_rajal/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
82
application/views/master/pembayaran/form_pembayaran.php
Normal file
82
application/views/master/pembayaran/form_pembayaran.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled = "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled='disabled'";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $pm->row('mp_id');
|
||||
$setnama = $pm->row('mp_nama');
|
||||
$setstatus = $pm->row('mp_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Nama Pembayaran" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
138
application/views/master/pembayaran/v_pembayaran.php
Normal file
138
application/views/master/pembayaran/v_pembayaran.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Status</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($pm as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mp_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mp_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mp_id.")' class='btn btn-danger btn-xs'><i class='fa fa-times'></i></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mp_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mp_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mp_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i></a> ";
|
||||
}
|
||||
}
|
||||
//---------------------end check access action-------------------//
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mp_id."' value='".$dat->mp_nama."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mp_nama."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Pembayaran '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_pembayaran/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Pembayaran '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_pembayaran/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Pembayaran '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_pembayaran/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
109
application/views/ppi/apd/v_apd.php
Normal file
109
application/views/ppi/apd/v_apd.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/apd" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruangan</th>
|
||||
<th>Kelas</th>
|
||||
<th>Total Patuh</th>
|
||||
<th>Total Tidak Patuh</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($rua as $datrua) {
|
||||
$totpatuh = 0; $tottidak_patuh = 0;
|
||||
foreach ($apd as $datapd) {
|
||||
if($datrua->id == $datapd->idruang){
|
||||
$totpatuh = $totpatuh + $datapd->apatuh + $datapd->bpatuh + $datapd->cpatuh + $datapd->dpatuh + $datapd->epatuh + $datapd->fpatuh;
|
||||
$tottidak_patuh = $tottidak_patuh + $datapd->atidak_patuh + $datapd->btidak_patuh + $datapd->ctidak_patuh + $datapd->dtidak_patuh + $datapd->etidak_patuh + $datapd->ftidak_patuh;
|
||||
}
|
||||
}
|
||||
if($totpatuh != 0 || $tottidak_patuh != 0){
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datrua->Kode."</td>
|
||||
<td>".$datrua->Nama."</td>
|
||||
<td>".$datrua->Kelas."</td>
|
||||
<td>".$totpatuh."</td>
|
||||
<td>".$tottidak_patuh."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
132
application/views/ppi/apd/v_detail_apd.php
Normal file
132
application/views/ppi/apd/v_detail_apd.php
Normal file
@@ -0,0 +1,132 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/detail_apd" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruangan</th>
|
||||
<th>Kelas</th>
|
||||
<th>Fristname</th>
|
||||
<th>Datecreated</th>
|
||||
<th>Jenis Tindakan</th>
|
||||
<th>A P</th>
|
||||
<th>A TP</th>
|
||||
<th>B P</th>
|
||||
<th>B TP</th>
|
||||
<th>C P</th>
|
||||
<th>C TP</th>
|
||||
<th>D P</th>
|
||||
<th>D TP</th>
|
||||
<th>E P</th>
|
||||
<th>E TP</th>
|
||||
<th>F P</th>
|
||||
<th>F TP</th>
|
||||
<th>TOT P</th>
|
||||
<th>TOT TP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0; $totpatuh = 0; $tottidak_patuh = 0;
|
||||
foreach($apd as $datapd){
|
||||
$no++;
|
||||
$totpatuh = $datapd->apatuh + $datapd->bpatuh + $datapd->cpatuh + $datapd->dpatuh + $datapd->epatuh + $datapd->fpatuh;
|
||||
$tottidak_patuh = $datapd->atidak_patuh + $datapd->btidak_patuh + $datapd->ctidak_patuh + $datapd->dtidak_patuh + $datapd->etidak_patuh + $datapd->ftidak_patuh;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datapd->koderuang."</td>
|
||||
<td>".$datapd->namaruang."</td>
|
||||
<td>".$datapd->kelasruang."</td>
|
||||
<td>".$datapd->first_name."</td>
|
||||
<td>".$datapd->date_created."</td>
|
||||
<td>".$datapd->jenis_tindakan." ".$datapd->keterangan."</td>
|
||||
<td>".$datapd->apatuh."</td>
|
||||
<td>".$datapd->atidak_patuh."</td>
|
||||
<td>".$datapd->bpatuh."</td>
|
||||
<td>".$datapd->btidak_patuh."</td>
|
||||
<td>".$datapd->cpatuh."</td>
|
||||
<td>".$datapd->ctidak_patuh."</td>
|
||||
<td>".$datapd->dpatuh."</td>
|
||||
<td>".$datapd->dtidak_patuh."</td>
|
||||
<td>".$datapd->epatuh."</td>
|
||||
<td>".$datapd->etidak_patuh."</td>
|
||||
<td>".$datapd->fpatuh."</td>
|
||||
<td>".$datapd->ftidak_patuh."</td>
|
||||
<td>".$totpatuh."</td>
|
||||
<td>".$tottidak_patuh."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
136
application/views/ppi/cucitangan/v_cuci_tangan.php
Normal file
136
application/views/ppi/cucitangan/v_cuci_tangan.php
Normal file
@@ -0,0 +1,136 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/cuci_tangan" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruangan</th>
|
||||
<th>Kelas</th>
|
||||
<th>OPP PR</th>
|
||||
<th>CC PR</th>
|
||||
<th>OPP DK</th>
|
||||
<th>CC DK</th>
|
||||
<th>OPP MH</th>
|
||||
<th>CC MH</th>
|
||||
<th>OPP PKL</th>
|
||||
<th>CC PKL</th>
|
||||
<th>OPP TOT</th>
|
||||
<th>CC TOT</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($rua as $dat) { $opppr=0; $ccpr=0; $oppdk=0; $ccdk=0; $oppmh=0; $ccmh=0; $opppkl=0; $ccpkl=0; $opptot=0; $cctot=0;
|
||||
foreach($cc as $datcc){
|
||||
if($dat->id == $datcc->idruang){
|
||||
if($datcc->petugas_cuci_tangan=="Perawat"){
|
||||
$ccpr = $ccpr+$datcc->nilai_kepatuhan;
|
||||
$opppr++;
|
||||
}elseif($datcc->petugas_cuci_tangan=="Dokter"){
|
||||
$ccdk = $ccdk+$datcc->nilai_kepatuhan;
|
||||
$oppdk++;
|
||||
}elseif($datcc->petugas_cuci_tangan=="Mahasiswa"){
|
||||
$ccmh = $ccmh+$datcc->nilai_kepatuhan;
|
||||
$oppmh++;
|
||||
}elseif($datcc->petugas_cuci_tangan=="Petugas kesehatan lain"){
|
||||
$ccpkl = $ccpkl+$datcc->nilai_kepatuhan;
|
||||
$opppkl++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
$opptot = $opppr+$oppdk+$oppmh+$opppkl;
|
||||
$cctot = $ccpr+$ccdk+$ccmh+$ccpkl;
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->Kode."</td>
|
||||
<td>".$dat->Nama."</td>
|
||||
<td>".$dat->Kelas."</td>
|
||||
<td>".$opppr."</td>
|
||||
<td>".$ccpr."</td>
|
||||
<td>".$oppdk."</td>
|
||||
<td>".$ccdk."</td>
|
||||
<td>".$oppmh."</td>
|
||||
<td>".$ccmh."</td>
|
||||
<td>".$opppkl."</td>
|
||||
<td>".$ccpkl."</td>
|
||||
<td>".$opptot."</td>
|
||||
<td>".$cctot."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
104
application/views/ppi/cucitangan/v_detail_cuci_tangan.php
Normal file
104
application/views/ppi/cucitangan/v_detail_cuci_tangan.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/detail_cuci_tangan" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruangan</th>
|
||||
<th>Kelas</th>
|
||||
<th>Firstname</th>
|
||||
<th>Datecreate</th>
|
||||
<th>Petugas</th>
|
||||
<th>Nilai Kepatuhan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($cc as $dat) {
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->koderuang."</td>
|
||||
<td>".$dat->namaruang."</td>
|
||||
<td>".$dat->kelasruang."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->petugas_cuci_tangan."</td>
|
||||
<td>".$dat->nilai_kepatuhan."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
129
application/views/ppi/laporan/v_hap.php
Normal file
129
application/views/ppi/laporan/v_hap.php
Normal file
@@ -0,0 +1,129 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/hap" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl TB Mulai</th>
|
||||
<th>Tgl TB Selesai</th>
|
||||
<th>Lama TB</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($hap as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_hap_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-red'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_mulai_tirah_baring."</td>
|
||||
<td>".$dat->Tanggal_selesai_tirah_baring."</td>
|
||||
<td>".$dat->Lama_tirah_baring."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
138
application/views/ppi/laporan/v_iadanak.php
Normal file
138
application/views/ppi/laporan/v_iadanak.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/iadanak" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($iadanak as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_iad_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_cvc){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_cvc."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_cvc."</td>
|
||||
<td>".$dat->Lama_pemakaian_cvc."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
138
application/views/ppi/laporan/v_iaddewasa.php
Normal file
138
application/views/ppi/laporan/v_iaddewasa.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/iaddewasa" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($iaddewasa as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_iad_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_cvc){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_cvc."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_cvc."</td>
|
||||
<td>".$dat->Lama_pemakaian_cvc."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
127
application/views/ppi/laporan/v_idobersih.php
Normal file
127
application/views/ppi/laporan/v_idobersih.php
Normal file
@@ -0,0 +1,127 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/idobersih" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Operasi</th>
|
||||
<th>Lama Perawatan</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($idobersih as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_iob_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_operasi."</td>
|
||||
<td>".$dat->Lama_hari_perawatan."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
127
application/views/ppi/laporan/v_idoterkontaminasi.php
Normal file
127
application/views/ppi/laporan/v_idoterkontaminasi.php
Normal file
@@ -0,0 +1,127 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/idoterkontaminasi" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Operasi</th>
|
||||
<th>Lama Perawatan</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($idoterkontaminasi as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_iobt_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_operasi."</td>
|
||||
<td>".$dat->Lama_hari_perawatan."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
138
application/views/ppi/laporan/v_iskanak.php
Normal file
138
application/views/ppi/laporan/v_iskanak.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/iskanak" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($iskanak as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_isk_anak_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_catheter_urine){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_catheter_urine."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_catheter_urine."</td>
|
||||
<td>".$dat->Lama_pemakaian_catheter_urine."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
138
application/views/ppi/laporan/v_iskdewasa.php
Normal file
138
application/views/ppi/laporan/v_iskdewasa.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/iskdewasa" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($iskdewasa as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_isk_dewasa_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_catheter_urine){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_catheter_urine."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_catheter_urine."</td>
|
||||
<td>".$dat->Lama_pemakaian_catheter_urine."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
326
application/views/ppi/laporan/v_pasien_ppi.php
Normal file
326
application/views/ppi/laporan/v_pasien_ppi.php
Normal file
@@ -0,0 +1,326 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/pasien_ppi" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>PLELP</th>
|
||||
<th>PLEKJ</th>
|
||||
<th>VAPLP</th>
|
||||
<th>VAPKJ</th>
|
||||
<th>HAPLP</th>
|
||||
<th>HAPKJ</th>
|
||||
<th>IADALP</th>
|
||||
<th>IADAKJ</th>
|
||||
<th>IADDLP</th>
|
||||
<th>IADDKJ</th>
|
||||
<th>ISKALP</th>
|
||||
<th>ISKAKJ</th>
|
||||
<th>ISKDLP</th>
|
||||
<th>ISKDKJ</th>
|
||||
<th>IDOBLP</th>
|
||||
<th>IDOBKJ</th>
|
||||
<th>IDOTLP</th>
|
||||
<th>IDOTKJ</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0; $datpasien = array();
|
||||
foreach($plb as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedisplebitis_ID);
|
||||
}
|
||||
|
||||
foreach($vap as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissvap_ID);
|
||||
}
|
||||
|
||||
foreach($hap as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedishap_ID);
|
||||
}
|
||||
|
||||
foreach($iadanak as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiadanak_ID);
|
||||
}
|
||||
|
||||
foreach($iaddewasa as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiaddewasa_ID);
|
||||
}
|
||||
|
||||
foreach($iskanak as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiskanak_ID);
|
||||
}
|
||||
|
||||
foreach($iskdewasa as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiskdewasa_ID);
|
||||
}
|
||||
|
||||
foreach($idobersih as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiob_ID);
|
||||
}
|
||||
|
||||
foreach($idoterkontaminasi as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiobt_ID);
|
||||
}
|
||||
|
||||
|
||||
$unique_pasien = array_unique($datpasien, SORT_REGULAR);
|
||||
foreach($unique_pasien as $item){ $no++;
|
||||
//================================================================Search Data Plebitis hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $plelp = 0; $plekj=0;
|
||||
foreach($mplb as $dat){
|
||||
if($dat->FK_datamrs_datamedisplebitis_ID==$item['idmrs']){
|
||||
$plekj = $plekj + $dat->Diagnosa_nilai_plebitis_ppi;
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_infus;
|
||||
$plelp = $plelp + $dat->Lama_pemakaian_infus;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_infus){
|
||||
$tgl = $dat->Tanggal_pemasangan_infus;
|
||||
$plelp = $plelp + $dat->Lama_pemakaian_infus;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if($plelp==0){$plelp="-";}if($plekj==0){$plekj="-";}
|
||||
//================================================================Search Data Vap hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $vaplp = 0; $vapkj=0;
|
||||
foreach($mvap as $dat){
|
||||
if($dat->FK_datamrs_datamedissvap_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$vapkj = $vapkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_ventilator;
|
||||
$vaplp = $vaplp + $dat->Lama_pemakaian_ventilator;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_ventilator){
|
||||
$tgl = $dat->Tanggal_pemasangan_ventilator;
|
||||
$vaplp = $vaplp + $dat->Lama_pemakaian_ventilator;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($vaplp==0){$vaplp="-";}if($vapkj==0){$vapkj="-";}
|
||||
//================================================================Search Data Hap hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $haplp = 0; $hapkj=0;
|
||||
foreach($mhap as $dat){
|
||||
if($dat->FK_datamrs_datamedishap_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$hapkj = $hapkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_mulai_tirah_baring;
|
||||
$haplp = $haplp + $dat->Lama_tirah_baring;
|
||||
}else if($tgl !=$dat->Tanggal_mulai_tirah_baring){
|
||||
$tgl = $dat->Tanggal_mulai_tirah_baring;
|
||||
$haplp = $haplp + $dat->Lama_tirah_baring;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($haplp==0){$haplp="-";}if($hapkj==0){$hapkj="-";}
|
||||
//================================================================Search Data IAD Anak hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $iadanaklp = 0; $iadanakkj=0;
|
||||
foreach($iadanak as $dat){
|
||||
if($dat->FK_datamrs_datamedissiadanak_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iadanakkj = $iadanakkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iadanaklp = $iadanaklp + $dat->Lama_pemakaian_cvc;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_cvc){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iadanaklp = $iadanaklp + $dat->Lama_pemakaian_cvc;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($iadanaklp==0){$iadanaklp="-";}if($iadanakkj==0){$iadanakkj="-";}
|
||||
//================================================================Search Data IAD Dewasa hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $iaddewasalp = 0; $iaddewasakj=0;
|
||||
foreach($iaddewasa as $dat){
|
||||
if($dat->FK_datamrs_datamedissiaddewasa_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iaddewasakj = $iaddewasakj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iaddewasalp = $iaddewasalp + $dat->Lama_pemakaian_cvc;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_cvc){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iaddewasalp = $iaddewasalp + $dat->Lama_pemakaian_cvc;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($iaddewasalp==0){$iaddewasalp="-";}if($iaddewasakj==0){$iaddewasakj="-";}
|
||||
//================================================================Search Data ISK Anak hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $iskanaklp = 0; $iskanakkj=0;
|
||||
foreach($iskanak as $dat){
|
||||
if($dat->FK_datamrs_datamedissiskanak_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iskanakkj = $iskanakkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskanaklp = $iskanaklp + $dat->Lama_pemakaian_catheter_urine;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_catheter_urine){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskanaklp = $iskanaklp + $dat->Lama_pemakaian_catheter_urine;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($iskanaklp==0){$iskanaklp="-";}if($iskanakkj==0){$iskanakkj="-";}
|
||||
//================================================================Search Data ISK Dewasa hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $iskdewasalp = 0; $iskdewasakj=0;
|
||||
foreach($iskdewasa as $dat){
|
||||
if($dat->FK_datamrs_datamedissiskdewasa_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iskdewasakj = $iskdewasakj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskdewasalp = $iskdewasalp + $dat->Lama_pemakaian_catheter_urine;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_catheter_urine){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskdewasalp = $iskdewasalp + $dat->Lama_pemakaian_catheter_urine;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($iskdewasalp==0){$iskdewasalp="-";}if($iskdewasakj==0){$iskdewasakj="-";}
|
||||
//================================================================Search Data IDO Bersih hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $idolp = 0; $idokj=0;
|
||||
foreach($mido as $dat){
|
||||
if($dat->FK_datamrs_datamedissiob_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$idokj = $idokj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idolp = $idolp + $dat->Lama_hari_perawatan;
|
||||
}else if($tgl !=$dat->Tanggal_operasi){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idolp = $idolp + $dat->Lama_hari_perawatan;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($idolp==0){$idolp="-";}if($idokj==0){$idokj="-";}
|
||||
//================================================================Search Data IDO Terkontaminasi hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $idotlp = 0; $idotkj=0;
|
||||
foreach($midot as $dat){
|
||||
if($dat->FK_datamrs_datamedissiobt_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$idotkj = $idotkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idotlp = $idotlp + $dat->Lama_hari_perawatan;
|
||||
}else if($tgl !=$dat->Tanggal_operasi){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idotlp = $idotlp + $dat->Lama_hari_perawatan;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($idotlp==0){$idotlp="-";}if($idotkj==0){$idotkj="-";}
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$item['nama']."</td>
|
||||
<td>".$item['ruang']."</td>
|
||||
<td>".$item['mrs']."</td>
|
||||
<td>".$item['krs']."</td>
|
||||
<td>".$plelp."</td>
|
||||
<td>".$plekj."</td>
|
||||
<td>".$vaplp."</td>
|
||||
<td>".$vapkj."</td>
|
||||
<td>".$haplp."</td>
|
||||
<td>".$hapkj."</td>
|
||||
<td>".$iadanaklp."</td>
|
||||
<td>".$iadanakkj."</td>
|
||||
<td>".$iaddewasalp."</td>
|
||||
<td>".$iaddewasakj."</td>
|
||||
<td>".$iskanaklp."</td>
|
||||
<td>".$iskanakkj."</td>
|
||||
<td>".$iskdewasalp."</td>
|
||||
<td>".$iskdewasakj."</td>
|
||||
<td>".$idolp."</td>
|
||||
<td>".$idokj."</td>
|
||||
<td>".$idotlp."</td>
|
||||
<td>".$idotkj."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
130
application/views/ppi/laporan/v_plebitis.php
Normal file
130
application/views/ppi/laporan/v_plebitis.php
Normal file
@@ -0,0 +1,130 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/plebitis" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($plb as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_plebitis_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-red'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_infus){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_infus."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_infus."</td>
|
||||
<td>".$dat->Lama_pemakaian_infus."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
331
application/views/ppi/laporan/v_ruang_ppi.php
Normal file
331
application/views/ppi/laporan/v_ruang_ppi.php
Normal file
@@ -0,0 +1,331 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/ruang_ppi" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Kelas</th>
|
||||
<th>Pasien</th>
|
||||
<th>PLELP</th>
|
||||
<th>PLEKJ</th>
|
||||
<th>VAPLP</th>
|
||||
<th>VAPKJ</th>
|
||||
<th>HAPLP</th>
|
||||
<th>HAPKJ</th>
|
||||
<th>IADALP</th>
|
||||
<th>IADAKJ</th>
|
||||
<th>IADDLP</th>
|
||||
<th>IADDKJ</th>
|
||||
<th>ISKALP</th>
|
||||
<th>ISKAKJ</th>
|
||||
<th>ISKDLP</th>
|
||||
<th>ISKDKJ</th>
|
||||
<th>IDOBLP</th>
|
||||
<th>IDOBKJ</th>
|
||||
<th>IDOTLP</th>
|
||||
<th>IDOTKJ</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0; $datpasien = array();
|
||||
foreach($plb as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedisplebitis_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($vap as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissvap_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($hap as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedishap_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($iadanak as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiadanak_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($iaddewasa as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiaddewasa_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($iskanak as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiskanak_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($iskdewasa as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiskdewasa_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($idobersih as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiob_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($idoterkontaminasi as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiobt_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
|
||||
$unique_pasien = array_unique($datpasien, SORT_REGULAR);
|
||||
foreach($rua as $datruang){
|
||||
$plelp = 0; $plekj = 0; $vaplp = 0; $vapkj = 0;
|
||||
$haplp = 0; $hapkj=0; $iadanaklp = 0; $iadanakkj=0; $iaddewasalp = 0; $iaddewasakj=0;
|
||||
$iskanaklp = 0; $iskanakkj=0; $iskdewasalp = 0; $iskdewasakj=0;
|
||||
$idolp = 0; $idokj=0; $idotlp = 0; $idotkj=0;
|
||||
$jmlpx=0;
|
||||
foreach($unique_pasien as $item){
|
||||
if($item['idruang']==$datruang->id){ $jmlpx++;
|
||||
//================================================================Search Data Plebitis hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$plelp = 0; $plekj = 0;
|
||||
foreach($mplb as $dat){
|
||||
if($dat->FK_datamrs_datamedisplebitis_ID==$item['idmrs']){
|
||||
$plekj = (int)$plekj + (int)$dat->Diagnosa_nilai_plebitis_ppi;
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_infus;
|
||||
$plelp = (int)$plelp + $dat->Lama_pemakaian_infus;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_infus){
|
||||
$tgl = $dat->Tanggal_pemasangan_infus;
|
||||
$plelp = (int)$plelp + $dat->Lama_pemakaian_infus;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data Vap hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$vaplp = 0; $vapkj=0;
|
||||
foreach($mvap as $dat){
|
||||
if($dat->FK_datamrs_datamedissvap_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$vapkj = (int)$vapkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_ventilator;
|
||||
$vaplp = (int)$vaplp + (int)$dat->Lama_pemakaian_ventilator;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_ventilator){
|
||||
$tgl = $dat->Tanggal_pemasangan_ventilator;
|
||||
$vaplp = (int)$vaplp + (int)$dat->Lama_pemakaian_ventilator;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data Hap hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$haplp = 0; $hapkj=0;
|
||||
foreach($mhap as $dat){
|
||||
if($dat->FK_datamrs_datamedishap_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$hapkj = (int)$hapkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_mulai_tirah_baring;
|
||||
$haplp = (int)$haplp + (int)$dat->Lama_tirah_baring;
|
||||
}else if($tgl !=$dat->Tanggal_mulai_tirah_baring){
|
||||
$tgl = $dat->Tanggal_mulai_tirah_baring;
|
||||
$haplp = (int)$haplp + (int)$dat->Lama_tirah_baring;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data IAD Anak hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$iadanaklp = 0; $iadanakkj=0;
|
||||
foreach($iadanak as $dat){
|
||||
if($dat->FK_datamrs_datamedissiadanak_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iadanakkj = (int)$iadanakkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iadanaklp = (int)$iadanaklp + (int)$dat->Lama_pemakaian_cvc;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_cvc){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iadanaklp = (int)$iadanaklp + (int)$dat->Lama_pemakaian_cvc;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data IAD Dewasa hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$iaddewasalp = 0; $iaddewasakj=0;
|
||||
foreach($iaddewasa as $dat){
|
||||
if($dat->FK_datamrs_datamedissiaddewasa_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iaddewasakj = (int)$iaddewasakj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iaddewasalp = (int)$iaddewasalp + (int)$dat->Lama_pemakaian_cvc;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_cvc){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iaddewasalp = (int)$iaddewasalp + (int)$dat->Lama_pemakaian_cvc;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data ISK Anak hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$iskanaklp = 0; $iskanakkj=0;
|
||||
foreach($iskanak as $dat){
|
||||
if($dat->FK_datamrs_datamedissiskanak_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iskanakkj = (int)$iskanakkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskanaklp = (int)$iskanaklp + (int)$dat->Lama_pemakaian_catheter_urine;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_catheter_urine){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskanaklp = (int)$iskanaklp + (int)$dat->Lama_pemakaian_catheter_urine;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data ISK Dewasa hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$iskdewasalp = 0; $iskdewasakj=0;
|
||||
foreach($iskdewasa as $dat){
|
||||
if($dat->FK_datamrs_datamedissiskdewasa_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iskdewasakj = (int)$iskdewasakj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskdewasalp = (int)$iskdewasalp + (int)$dat->Lama_pemakaian_catheter_urine;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_catheter_urine){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskdewasalp = (int)$iskdewasalp + (int)$dat->Lama_pemakaian_catheter_urine;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data IDO Bersih hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$idolp = 0; $idokj=0;
|
||||
foreach($mido as $dat){
|
||||
if($dat->FK_datamrs_datamedissiob_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$idokj = (int)$idokj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idolp = (int)$idolp + (int)$dat->Lama_hari_perawatan;
|
||||
}else if($tgl !=$dat->Tanggal_operasi){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idolp = (int)$idolp + (int)$dat->Lama_hari_perawatan;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data IDO Terkontaminasi hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$idotlp = 0; $idotkj=0;
|
||||
foreach($midot as $dat){
|
||||
if($dat->FK_datamrs_datamedissiobt_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$idotkj = (int)$idotkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idotlp = (int)$idotlp + (int)$dat->Lama_hari_perawatan;
|
||||
}else if($tgl !=$dat->Tanggal_operasi){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idotlp = (int)$idotlp + (int)$dat->Lama_hari_perawatan;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if($plelp==0){$plelp="-";}if($plekj==0){$plekj="-";}if($vaplp==0){$vaplp="-";}if($vapkj==0){$vapkj="-";}if($haplp==0){$haplp="-";}if($hapkj==0){$hapkj="-";}if($iadanaklp==0){$iadanaklp="-";}if($iadanakkj==0){$iadanakkj="-";}if($iaddewasalp==0){$iaddewasalp="-";}if($iaddewasakj==0){$iaddewasakj="-";}if($iskanaklp==0){$iskanaklp="-";}if($iskanakkj==0){$iskanakkj="-";}if($iskdewasalp==0){$iskdewasalp="-";}if($iskdewasakj==0){$iskdewasakj="-";}if($idolp==0){$idolp="-";}if($idokj==0){$idokj="-";}if($idotlp==0){$idotlp="-";}if($idotkj==0){$idotkj="-";}
|
||||
$jmlpxshow = "-";
|
||||
if($jmlpx==0){$jmlpxshow="-";}else{$jmlpxshow=$jmlpx;}
|
||||
}
|
||||
|
||||
if($jmlpxshow!="-"){
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datruang->Kode."</td>
|
||||
<td>".$datruang->Nama."</td>
|
||||
<td>".$datruang->Kelas."</td>
|
||||
<td>".$jmlpxshow."</td>
|
||||
<td>".$plelp."</td>
|
||||
<td>".$plekj."</td>
|
||||
<td>".$vaplp."</td>
|
||||
<td>".$vapkj."</td>
|
||||
<td>".$haplp."</td>
|
||||
<td>".$hapkj."</td>
|
||||
<td>".$iadanaklp."</td>
|
||||
<td>".$iadanakkj."</td>
|
||||
<td>".$iaddewasalp."</td>
|
||||
<td>".$iaddewasakj."</td>
|
||||
<td>".$iskanaklp."</td>
|
||||
<td>".$iskanakkj."</td>
|
||||
<td>".$iskdewasalp."</td>
|
||||
<td>".$iskdewasakj."</td>
|
||||
<td>".$idolp."</td>
|
||||
<td>".$idokj."</td>
|
||||
<td>".$idotlp."</td>
|
||||
<td>".$idotkj."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
138
application/views/ppi/laporan/v_vap.php
Normal file
138
application/views/ppi/laporan/v_vap.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/vap" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($vap as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_vap_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_ventilator){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_ventilator."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_ventilator."</td>
|
||||
<td>".$dat->Lama_pemakaian_ventilator."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,123 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_saturssa/ketepatantrianoperasi" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal Daftar</th>
|
||||
<th>Tanggal Selesai</th>
|
||||
<th>Nama Pasien</th>
|
||||
<th>Tanggal Lahir</th>
|
||||
<th>No RM</th>
|
||||
<th>Kategori Operasi</th>
|
||||
<th>Waktu Tunggu Operasi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($datanya as $dat){
|
||||
$no++;
|
||||
|
||||
$kategorioperasi = "";
|
||||
if($dat->kodekategorioperasi == 1){
|
||||
$kategorioperasi = "<span class='badge bg-green'> ".$dat->kategorioperasi."</span>";
|
||||
}elseif($dat->kodekategorioperasi == 2){
|
||||
$kategorioperasi = "<span class='badge bg-blue'> ".$dat->kategorioperasi."</span>";
|
||||
}elseif($dat->kodekategorioperasi == 3){
|
||||
$kategorioperasi = "<span class='badge bg-yellow'> ".$dat->kategorioperasi."</span>";
|
||||
}elseif($dat->kodekategorioperasi == 4){
|
||||
$kategorioperasi = "<span class='badge bg-red'> ".$dat->kategorioperasi."</span>";
|
||||
}elseif($dat->kodekategorioperasi == 5){
|
||||
$kategorioperasi = "<span class='badge bg-balck'> ".$dat->kategorioperasi."</span>";
|
||||
}
|
||||
|
||||
$dateawal = date_create($dat->tgldaftar);
|
||||
$dateakhir = date_create($dat->tglselesai);
|
||||
$diff = date_diff($dateawal, $dateakhir);
|
||||
|
||||
$hasil = $diff->y." Tahun, ".$diff->m." Bulan, ".$diff->d." Hari";
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->tgldaftar."</td>
|
||||
<td>".$dat->tglselesai."</td>
|
||||
<td>".$dat->nik." | ".$dat->jk." - ".$dat->namapasien."</td>
|
||||
<td>".$dat->tgllahir." | Umur ".$dat->umur."</td>
|
||||
<td>".$dat->norm."</td>
|
||||
<td>".$kategorioperasi."</td>
|
||||
<td>".$hasil."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user