Project Done Before
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
|
||||
31
.gitignore
vendored
Normal file
31
.gitignore
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
.DS_Store
|
||||
|
||||
application/cache/*
|
||||
!application/cache/index.html
|
||||
|
||||
application/logs/*
|
||||
!application/logs/index.html
|
||||
|
||||
!application/*/.htaccess
|
||||
|
||||
composer.lock
|
||||
|
||||
user_guide_src/build/*
|
||||
user_guide_src/cilexer/build/*
|
||||
user_guide_src/cilexer/dist/*
|
||||
user_guide_src/cilexer/pycilexer.egg-info/*
|
||||
/vendor/
|
||||
|
||||
# IDE Files
|
||||
#-------------------------
|
||||
/nbproject/
|
||||
.idea/*
|
||||
|
||||
## Sublime Text cache files
|
||||
*.tmlanguage.cache
|
||||
*.tmPreferences.cache
|
||||
*.stTheme.cache
|
||||
*.sublime-workspace
|
||||
*.sublime-project
|
||||
/tests/tests/
|
||||
/tests/results/
|
||||
5
.htaccess
Normal file
5
.htaccess
Normal file
@ -0,0 +1,5 @@
|
||||
RewriteEngine on
|
||||
RewriteCond $1 !^(index\.php|resources|robots\.txt)
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
|
||||
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>
|
||||
BIN
application/application.zip
Normal file
BIN
application/application.zip
Normal file
Binary file not shown.
11
application/cache/index.html
vendored
Normal file
11
application/cache/index.html
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
135
application/config/autoload.php
Normal file
135
application/config/autoload.php
Normal file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| AUTO-LOADER
|
||||
| -------------------------------------------------------------------
|
||||
| This file specifies which systems should be loaded by default.
|
||||
|
|
||||
| In order to keep the framework as light-weight as possible only the
|
||||
| absolute minimal resources are loaded by default. For example,
|
||||
| the database is not connected to automatically since no assumption
|
||||
| is made regarding whether you intend to use it. This file lets
|
||||
| you globally define which systems you would like loaded with every
|
||||
| request.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| Instructions
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| These are the things you can load automatically:
|
||||
|
|
||||
| 1. Packages
|
||||
| 2. Libraries
|
||||
| 3. Drivers
|
||||
| 4. Helper files
|
||||
| 5. Custom config files
|
||||
| 6. Language files
|
||||
| 7. Models
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Packages
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
||||
|
|
||||
*/
|
||||
$autoload['packages'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Libraries
|
||||
| -------------------------------------------------------------------
|
||||
| These are the classes located in system/libraries/ or your
|
||||
| application/libraries/ directory, with the addition of the
|
||||
| 'database' library, which is somewhat of a special case.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['libraries'] = array('database', 'email', 'session');
|
||||
|
|
||||
| You can also supply an alternative library name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
$autoload['libraries'] = array('database','email','session','user_agent','datatables');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Drivers
|
||||
| -------------------------------------------------------------------
|
||||
| These classes are located in system/libraries/ or in your
|
||||
| application/libraries/ directory, but are also placed inside their
|
||||
| own subdirectory and they extend the CI_Driver_Library class. They
|
||||
| offer multiple interchangeable driver options.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache');
|
||||
|
|
||||
| You can also supply an alternative property name to be assigned in
|
||||
| the controller:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache' => 'cch');
|
||||
|
|
||||
*/
|
||||
$autoload['drivers'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Helper Files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['helper'] = array('url', 'file');
|
||||
*/
|
||||
$autoload['helper'] = array('url','form');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Config files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['config'] = array('config1', 'config2');
|
||||
|
|
||||
| NOTE: This item is intended for use ONLY if you have created custom
|
||||
| config files. Otherwise, leave it blank.
|
||||
|
|
||||
*/
|
||||
$autoload['config'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Language files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['language'] = array('lang1', 'lang2');
|
||||
|
|
||||
| NOTE: Do not include the "_lang" part of your file. For example
|
||||
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
||||
|
|
||||
*/
|
||||
$autoload['language'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Models
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['model'] = array('first_model', 'second_model');
|
||||
|
|
||||
| You can also supply an alternative model name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['model'] = array('first_model' => 'first');
|
||||
*/
|
||||
$autoload['model'] = array();
|
||||
525
application/config/config.php
Normal file
525
application/config/config.php
Normal file
@ -0,0 +1,525 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
|
||||
$config['base_url'] .= "://".$_SERVER['HTTP_HOST'];
|
||||
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
$config['language'] = 'english';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
85
application/config/constants.php
Normal file
85
application/config/constants.php
Normal file
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Display Debug backtrace
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If set to TRUE, a backtrace will be displayed along with php errors. If
|
||||
| error_reporting is disabled, the backtrace will not display, regardless
|
||||
| of this setting
|
||||
|
|
||||
*/
|
||||
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File and Directory Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These prefs are used when checking and setting modes when working
|
||||
| with the file system. The defaults are fine on servers with proper
|
||||
| security, but you may wish (or even need) to change the values in
|
||||
| certain environments (Apache running a separate process for each
|
||||
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
|
||||
| always be used to set the mode correctly.
|
||||
|
|
||||
*/
|
||||
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
|
||||
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
|
||||
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
|
||||
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File Stream Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These modes are used when working with fopen()/popen()
|
||||
|
|
||||
*/
|
||||
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
|
||||
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
|
||||
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
|
||||
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
|
||||
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
|
||||
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
|
||||
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
|
||||
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exit Status Codes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Used to indicate the conditions under which the script is exit()ing.
|
||||
| While there is no universal standard for error codes, there are some
|
||||
| broad conventions. Three such conventions are mentioned below, for
|
||||
| those who wish to make use of them. The CodeIgniter defaults were
|
||||
| chosen for the least overlap with these conventions, while still
|
||||
| leaving room for others to be defined in future versions and user
|
||||
| applications.
|
||||
|
|
||||
| The three main conventions used for determining exit status codes
|
||||
| are as follows:
|
||||
|
|
||||
| Standard C/C++ Library (stdlibc):
|
||||
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
|
||||
| (This link also contains other GNU-specific conventions)
|
||||
| BSD sysexits.h:
|
||||
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
|
||||
| Bash scripting:
|
||||
| http://tldp.org/LDP/abs/html/exitcodes.html
|
||||
|
|
||||
*/
|
||||
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
|
||||
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
|
||||
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
|
||||
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
||||
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
|
||||
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
|
||||
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||
96
application/config/database.php
Normal file
96
application/config/database.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'database' => 'db_penjualan',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'production'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
24
application/config/doctypes.php
Normal file
24
application/config/doctypes.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$_doctypes = array(
|
||||
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
|
||||
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
|
||||
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
||||
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
|
||||
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
|
||||
'html5' => '<!DOCTYPE html>',
|
||||
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
|
||||
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
|
||||
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
|
||||
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
|
||||
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
|
||||
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
|
||||
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
|
||||
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
|
||||
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
|
||||
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
|
||||
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
|
||||
);
|
||||
103
application/config/foreign_chars.php
Normal file
103
application/config/foreign_chars.php
Normal file
@ -0,0 +1,103 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Foreign Characters
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of foreign characters for transliteration
|
||||
| conversion used by the Text helper
|
||||
|
|
||||
*/
|
||||
$foreign_characters = array(
|
||||
'/ä|æ|ǽ/' => 'ae',
|
||||
'/ö|œ/' => 'oe',
|
||||
'/ü/' => 'ue',
|
||||
'/Ä/' => 'Ae',
|
||||
'/Ü/' => 'Ue',
|
||||
'/Ö/' => 'Oe',
|
||||
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
|
||||
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
|
||||
'/Б/' => 'B',
|
||||
'/б/' => 'b',
|
||||
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
|
||||
'/ç|ć|ĉ|ċ|č/' => 'c',
|
||||
'/Д/' => 'D',
|
||||
'/д/' => 'd',
|
||||
'/Ð|Ď|Đ|Δ/' => 'Dj',
|
||||
'/ð|ď|đ|δ/' => 'dj',
|
||||
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
|
||||
'/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
|
||||
'/Ф/' => 'F',
|
||||
'/ф/' => 'f',
|
||||
'/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
|
||||
'/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
|
||||
'/Ĥ|Ħ/' => 'H',
|
||||
'/ĥ|ħ/' => 'h',
|
||||
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
|
||||
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
|
||||
'/Ĵ/' => 'J',
|
||||
'/ĵ/' => 'j',
|
||||
'/Ķ|Κ|К/' => 'K',
|
||||
'/ķ|κ|к/' => 'k',
|
||||
'/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
|
||||
'/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
|
||||
'/М/' => 'M',
|
||||
'/м/' => 'm',
|
||||
'/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
|
||||
'/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
|
||||
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
|
||||
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
|
||||
'/П/' => 'P',
|
||||
'/п/' => 'p',
|
||||
'/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
|
||||
'/ŕ|ŗ|ř|ρ|р/' => 'r',
|
||||
'/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
|
||||
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
|
||||
'/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T',
|
||||
'/ț|ţ|ť|ŧ|т/' => 't',
|
||||
'/Þ|þ/' => 'th',
|
||||
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
|
||||
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
|
||||
'/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
|
||||
'/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
|
||||
'/В/' => 'V',
|
||||
'/в/' => 'v',
|
||||
'/Ŵ/' => 'W',
|
||||
'/ŵ/' => 'w',
|
||||
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
|
||||
'/ź|ż|ž|ζ|з/' => 'z',
|
||||
'/Æ|Ǽ/' => 'AE',
|
||||
'/ß/' => 'ss',
|
||||
'/IJ/' => 'IJ',
|
||||
'/ij/' => 'ij',
|
||||
'/Œ/' => 'OE',
|
||||
'/ƒ/' => 'f',
|
||||
'/ξ/' => 'ks',
|
||||
'/π/' => 'p',
|
||||
'/β/' => 'v',
|
||||
'/μ/' => 'm',
|
||||
'/ψ/' => 'ps',
|
||||
'/Ё/' => 'Yo',
|
||||
'/ё/' => 'yo',
|
||||
'/Є/' => 'Ye',
|
||||
'/є/' => 'ye',
|
||||
'/Ї/' => 'Yi',
|
||||
'/Ж/' => 'Zh',
|
||||
'/ж/' => 'zh',
|
||||
'/Х/' => 'Kh',
|
||||
'/х/' => 'kh',
|
||||
'/Ц/' => 'Ts',
|
||||
'/ц/' => 'ts',
|
||||
'/Ч/' => 'Ch',
|
||||
'/ч/' => 'ch',
|
||||
'/Ш/' => 'Sh',
|
||||
'/ш/' => 'sh',
|
||||
'/Щ/' => 'Shch',
|
||||
'/щ/' => 'shch',
|
||||
'/Ъ|ъ|Ь|ь/' => '',
|
||||
'/Ю/' => 'Yu',
|
||||
'/ю/' => 'yu',
|
||||
'/Я/' => 'Ya',
|
||||
'/я/' => 'ya'
|
||||
);
|
||||
13
application/config/hooks.php
Normal file
13
application/config/hooks.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Hooks
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you define "hooks" to extend CI without hacking the core
|
||||
| files. Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/hooks.html
|
||||
|
|
||||
*/
|
||||
11
application/config/index.html
Normal file
11
application/config/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
19
application/config/memcached.php
Normal file
19
application/config/memcached.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Memcached settings
|
||||
| -------------------------------------------------------------------------
|
||||
| Your Memcached servers can be specified below.
|
||||
|
|
||||
| See: https://codeigniter.com/user_guide/libraries/caching.html#memcached
|
||||
|
|
||||
*/
|
||||
$config = array(
|
||||
'default' => array(
|
||||
'hostname' => '127.0.0.1',
|
||||
'port' => '11211',
|
||||
'weight' => '1',
|
||||
),
|
||||
);
|
||||
84
application/config/migration.php
Normal file
84
application/config/migration.php
Normal file
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable Migrations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migrations are disabled by default for security reasons.
|
||||
| You should enable migrations whenever you intend to do a schema migration
|
||||
| and disable it back when you're done.
|
||||
|
|
||||
*/
|
||||
$config['migration_enabled'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migration Type
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migration file names may be based on a sequential identifier or on
|
||||
| a timestamp. Options are:
|
||||
|
|
||||
| 'sequential' = Sequential migration naming (001_add_blog.php)
|
||||
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
|
||||
| Use timestamp format YYYYMMDDHHIISS.
|
||||
|
|
||||
| Note: If this configuration value is missing the Migration library
|
||||
| defaults to 'sequential' for backward compatibility with CI2.
|
||||
|
|
||||
*/
|
||||
$config['migration_type'] = 'timestamp';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the name of the table that will store the current migrations state.
|
||||
| When migrations runs it will store in a database table which migration
|
||||
| level the system is at. It then compares the migration level in this
|
||||
| table to the $config['migration_version'] if they are not the same it
|
||||
| will migrate up. This must be set.
|
||||
|
|
||||
*/
|
||||
$config['migration_table'] = 'migrations';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto Migrate To Latest
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If this is set to TRUE when you load the migrations class and have
|
||||
| $config['migration_enabled'] set to TRUE the system will auto migrate
|
||||
| to your latest migration (whatever $config['migration_version'] is
|
||||
| set to). This way you do not have to call migrations anywhere else
|
||||
| in your code to have the latest migration.
|
||||
|
|
||||
*/
|
||||
$config['migration_auto_latest'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations version
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is used to set migration version that the file system should be on.
|
||||
| If you run $this->migration->current() this is the version that schema will
|
||||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Path to your migrations folder.
|
||||
| Typically, it will be within your application path.
|
||||
| Also, writing permission is required within the migrations path.
|
||||
|
|
||||
*/
|
||||
$config['migration_path'] = APPPATH.'migrations/';
|
||||
184
application/config/mimes.php
Normal file
184
application/config/mimes.php
Normal file
@ -0,0 +1,184 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| MIME TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of mime types. It is used by the
|
||||
| Upload class to help identify allowed file types.
|
||||
|
|
||||
*/
|
||||
return array(
|
||||
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
|
||||
'cpt' => 'application/mac-compactpro',
|
||||
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
|
||||
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
|
||||
'dms' => 'application/octet-stream',
|
||||
'lha' => 'application/octet-stream',
|
||||
'lzh' => 'application/octet-stream',
|
||||
'exe' => array('application/octet-stream', 'application/x-msdownload'),
|
||||
'class' => 'application/octet-stream',
|
||||
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
|
||||
'so' => 'application/octet-stream',
|
||||
'sea' => 'application/octet-stream',
|
||||
'dll' => 'application/octet-stream',
|
||||
'oda' => 'application/oda',
|
||||
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
|
||||
'ai' => array('application/pdf', 'application/postscript'),
|
||||
'eps' => 'application/postscript',
|
||||
'ps' => 'application/postscript',
|
||||
'smi' => 'application/smil',
|
||||
'smil' => 'application/smil',
|
||||
'mif' => 'application/vnd.mif',
|
||||
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
|
||||
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
|
||||
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
|
||||
'wbxml' => 'application/wbxml',
|
||||
'wmlc' => 'application/wmlc',
|
||||
'dcr' => 'application/x-director',
|
||||
'dir' => 'application/x-director',
|
||||
'dxr' => 'application/x-director',
|
||||
'dvi' => 'application/x-dvi',
|
||||
'gtar' => 'application/x-gtar',
|
||||
'gz' => 'application/x-gzip',
|
||||
'gzip' => 'application/x-gzip',
|
||||
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
|
||||
'php4' => 'application/x-httpd-php',
|
||||
'php3' => 'application/x-httpd-php',
|
||||
'phtml' => 'application/x-httpd-php',
|
||||
'phps' => 'application/x-httpd-php-source',
|
||||
'js' => array('application/x-javascript', 'text/plain'),
|
||||
'swf' => 'application/x-shockwave-flash',
|
||||
'sit' => 'application/x-stuffit',
|
||||
'tar' => 'application/x-tar',
|
||||
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
|
||||
'z' => 'application/x-compress',
|
||||
'xhtml' => 'application/xhtml+xml',
|
||||
'xht' => 'application/xhtml+xml',
|
||||
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
|
||||
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
|
||||
'mid' => 'audio/midi',
|
||||
'midi' => 'audio/midi',
|
||||
'mpga' => 'audio/mpeg',
|
||||
'mp2' => 'audio/mpeg',
|
||||
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
|
||||
'aif' => array('audio/x-aiff', 'audio/aiff'),
|
||||
'aiff' => array('audio/x-aiff', 'audio/aiff'),
|
||||
'aifc' => 'audio/x-aiff',
|
||||
'ram' => 'audio/x-pn-realaudio',
|
||||
'rm' => 'audio/x-pn-realaudio',
|
||||
'rpm' => 'audio/x-pn-realaudio-plugin',
|
||||
'ra' => 'audio/x-realaudio',
|
||||
'rv' => 'video/vnd.rn-realvideo',
|
||||
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
|
||||
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
|
||||
'gif' => 'image/gif',
|
||||
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'png' => array('image/png', 'image/x-png'),
|
||||
'tiff' => 'image/tiff',
|
||||
'tif' => 'image/tiff',
|
||||
'css' => array('text/css', 'text/plain'),
|
||||
'html' => array('text/html', 'text/plain'),
|
||||
'htm' => array('text/html', 'text/plain'),
|
||||
'shtml' => array('text/html', 'text/plain'),
|
||||
'txt' => 'text/plain',
|
||||
'text' => 'text/plain',
|
||||
'log' => array('text/plain', 'text/x-log'),
|
||||
'rtx' => 'text/richtext',
|
||||
'rtf' => 'text/rtf',
|
||||
'xml' => array('application/xml', 'text/xml', 'text/plain'),
|
||||
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
|
||||
'mpeg' => 'video/mpeg',
|
||||
'mpg' => 'video/mpeg',
|
||||
'mpe' => 'video/mpeg',
|
||||
'qt' => 'video/quicktime',
|
||||
'mov' => 'video/quicktime',
|
||||
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
|
||||
'movie' => 'video/x-sgi-movie',
|
||||
'doc' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
|
||||
'dot' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
|
||||
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
|
||||
'word' => array('application/msword', 'application/octet-stream'),
|
||||
'xl' => 'application/excel',
|
||||
'eml' => 'message/rfc822',
|
||||
'json' => array('application/json', 'text/json'),
|
||||
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
|
||||
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
|
||||
'p12' => 'application/x-pkcs12',
|
||||
'p7a' => 'application/x-pkcs7-signature',
|
||||
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7r' => 'application/x-pkcs7-certreqresp',
|
||||
'p7s' => 'application/pkcs7-signature',
|
||||
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
|
||||
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
|
||||
'der' => 'application/x-x509-ca-cert',
|
||||
'kdb' => 'application/octet-stream',
|
||||
'pgp' => 'application/pgp',
|
||||
'gpg' => 'application/gpg-keys',
|
||||
'sst' => 'application/octet-stream',
|
||||
'csr' => 'application/octet-stream',
|
||||
'rsa' => 'application/x-pkcs7',
|
||||
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
|
||||
'3g2' => 'video/3gpp2',
|
||||
'3gp' => array('video/3gp', 'video/3gpp'),
|
||||
'mp4' => 'video/mp4',
|
||||
'm4a' => 'audio/x-m4a',
|
||||
'f4v' => array('video/mp4', 'video/x-f4v'),
|
||||
'flv' => 'video/x-flv',
|
||||
'webm' => 'video/webm',
|
||||
'aac' => 'audio/x-acc',
|
||||
'm4u' => 'application/vnd.mpegurl',
|
||||
'm3u' => 'text/plain',
|
||||
'xspf' => 'application/xspf+xml',
|
||||
'vlc' => 'application/videolan',
|
||||
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
|
||||
'au' => 'audio/x-au',
|
||||
'ac3' => 'audio/ac3',
|
||||
'flac' => 'audio/x-flac',
|
||||
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'),
|
||||
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
|
||||
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
|
||||
'ics' => 'text/calendar',
|
||||
'ical' => 'text/calendar',
|
||||
'zsh' => 'text/x-scriptzsh',
|
||||
'7z' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'7zip' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
|
||||
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
|
||||
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
|
||||
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
|
||||
'vcf' => 'text/x-vcard',
|
||||
'srt' => array('text/srt', 'text/plain'),
|
||||
'vtt' => array('text/vtt', 'text/plain'),
|
||||
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'),
|
||||
'odc' => 'application/vnd.oasis.opendocument.chart',
|
||||
'otc' => 'application/vnd.oasis.opendocument.chart-template',
|
||||
'odf' => 'application/vnd.oasis.opendocument.formula',
|
||||
'otf' => 'application/vnd.oasis.opendocument.formula-template',
|
||||
'odg' => 'application/vnd.oasis.opendocument.graphics',
|
||||
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
|
||||
'odi' => 'application/vnd.oasis.opendocument.image',
|
||||
'oti' => 'application/vnd.oasis.opendocument.image-template',
|
||||
'odp' => 'application/vnd.oasis.opendocument.presentation',
|
||||
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
|
||||
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
||||
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
|
||||
'odt' => 'application/vnd.oasis.opendocument.text',
|
||||
'odm' => 'application/vnd.oasis.opendocument.text-master',
|
||||
'ott' => 'application/vnd.oasis.opendocument.text-template',
|
||||
'oth' => 'application/vnd.oasis.opendocument.text-web'
|
||||
);
|
||||
14
application/config/profiler.php
Normal file
14
application/config/profiler.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Profiler Sections
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you determine whether or not various sections of Profiler
|
||||
| data are displayed when the Profiler is enabled.
|
||||
| Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/profiling.html
|
||||
|
|
||||
*/
|
||||
55
application/config/routes.php
Normal file
55
application/config/routes.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| URI ROUTING
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you re-map URI requests to specific controller functions.
|
||||
|
|
||||
| Typically there is a one-to-one relationship between a URL string
|
||||
| and its corresponding controller class/method. The segments in a
|
||||
| URL normally follow this pattern:
|
||||
|
|
||||
| example.com/class/method/id/
|
||||
|
|
||||
| In some instances, however, you may want to remap this relationship
|
||||
| so that a different class/function is called than the one
|
||||
| corresponding to the URL.
|
||||
|
|
||||
| Please see the user guide for complete details:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/routing.html
|
||||
|
|
||||
| -------------------------------------------------------------------------
|
||||
| RESERVED ROUTES
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
||||
| There are three reserved routes:
|
||||
|
|
||||
| $route['default_controller'] = 'welcome';
|
||||
|
|
||||
| This route indicates which controller class should be loaded if the
|
||||
| URI contains no data. In the above example, the "welcome" class
|
||||
| would be loaded.
|
||||
|
|
||||
| $route['404_override'] = 'errors/page_missing';
|
||||
|
|
||||
| This route will tell the Router which controller/method to use if those
|
||||
| provided in the URL cannot be matched to a valid route.
|
||||
|
|
||||
| $route['translate_uri_dashes'] = FALSE;
|
||||
|
|
||||
| This is not exactly a route, but allows you to automatically route
|
||||
| controller and method names that contain dashes. '-' isn't a valid
|
||||
| class or method name character, so it requires translation.
|
||||
| When you set this option to TRUE, it will replace ALL dashes in the
|
||||
| controller and method URI segments.
|
||||
|
|
||||
| Examples: my-controller/index -> my_controller/index
|
||||
| my-controller/my-method -> my_controller/my_method
|
||||
*/
|
||||
$route['default_controller'] = 'Home';
|
||||
// $route['404_override'] = '';
|
||||
$route['404_override'] = 'my404';
|
||||
$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/user_guide/helpers/smiley_helper.html
|
||||
|
|
||||
*/
|
||||
$smileys = array(
|
||||
|
||||
// smiley image name width height alt
|
||||
|
||||
':-)' => array('grin.gif', '19', '19', 'grin'),
|
||||
':lol:' => array('lol.gif', '19', '19', 'LOL'),
|
||||
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
|
||||
':)' => array('smile.gif', '19', '19', 'smile'),
|
||||
';-)' => array('wink.gif', '19', '19', 'wink'),
|
||||
';)' => array('wink.gif', '19', '19', 'wink'),
|
||||
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
|
||||
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
|
||||
':-S' => array('confused.gif', '19', '19', 'confused'),
|
||||
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
|
||||
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
|
||||
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
|
||||
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
|
||||
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
|
||||
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
|
||||
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
|
||||
':long:' => array('longface.gif', '19', '19', 'long face'),
|
||||
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
|
||||
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
|
||||
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
|
||||
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
|
||||
':down:' => array('downer.gif', '19', '19', 'downer'),
|
||||
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
|
||||
':sick:' => array('sick.gif', '19', '19', 'sick'),
|
||||
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
|
||||
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
|
||||
'>:(' => array('mad.gif', '19', '19', 'mad'),
|
||||
':mad:' => array('mad.gif', '19', '19', 'mad'),
|
||||
'>:-(' => array('angry.gif', '19', '19', 'angry'),
|
||||
':angry:' => array('angry.gif', '19', '19', 'angry'),
|
||||
':zip:' => array('zip.gif', '19', '19', 'zipper'),
|
||||
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
|
||||
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
|
||||
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
|
||||
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
|
||||
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
|
||||
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
|
||||
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
|
||||
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
|
||||
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
|
||||
':snake:' => array('snake.gif', '19', '19', 'snake'),
|
||||
':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
|
||||
':question:' => array('question.gif', '19', '19', 'question')
|
||||
|
||||
);
|
||||
215
application/config/user_agents.php
Normal file
215
application/config/user_agents.php
Normal file
@ -0,0 +1,215 @@
|
||||
<?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',
|
||||
|
||||
// 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'
|
||||
);
|
||||
837
application/controllers/Admin.php
Normal file
837
application/controllers/Admin.php
Normal file
@ -0,0 +1,837 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Admin extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// $this->load->helper('form');
|
||||
// $this->load->library('form_validation');
|
||||
|
||||
ini_set('memory_limit', '-1');
|
||||
$this->load->model('madmin');
|
||||
date_default_timezone_set("Asia/Kuala_Lumpur");
|
||||
|
||||
$data_admin = $this->session->userdata('admin');
|
||||
|
||||
if ( $data_admin == '' or $data_admin == null) {
|
||||
$this->session->set_flashdata('error', '<b>Silakan Login Kembali Ke Website Ini</b>');
|
||||
redirect('/home');
|
||||
}else{
|
||||
|
||||
if ($data_admin['nama'] == '' and $data_admin['nama'] == null and $data_admin['level'] == '' and $data_admin['level']) {
|
||||
$this->session->set_flashdata('error', '<b>Silakan Login Kembali Ke Website Ini</b>');
|
||||
redirect('/home');
|
||||
}else{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function index()
|
||||
{
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
|
||||
$foto = $_FILES["foto_upload"]["name"];
|
||||
$kategori = $this->input->post('kategori');
|
||||
$undangan = $this->input->post('jenis_undangan');
|
||||
$harga = $this->input->post('harga');
|
||||
$harga = str_replace(',', '', $harga);
|
||||
|
||||
|
||||
|
||||
///// cek folder jika ada @ tiada ///////
|
||||
$dir = 'images/produk/';
|
||||
if( is_dir($dir) === false )
|
||||
{
|
||||
mkdir($dir);
|
||||
}
|
||||
///// akhir cek folder jika ada @ tiada /////
|
||||
|
||||
|
||||
//// cek yang diupload adalah foto ///////
|
||||
$imageFileType = strtolower(pathinfo($foto,PATHINFO_EXTENSION));
|
||||
$cek_foto = $this->cek_penamaan_foto($imageFileType);
|
||||
|
||||
if ($cek_foto == 0) {
|
||||
$this->session->set_flashdata('error', '<b>Error</b><br>Upload Foto Dengan Ekstesi .jpg .png .jpeg');
|
||||
redirect('/admin');
|
||||
}
|
||||
//// akhir cek yang diupload adalah foto //////
|
||||
|
||||
|
||||
|
||||
|
||||
/////// proses upload foto sama masukan data ke database /////
|
||||
$this->madmin->insert('tb_produk',array('kategori' => $kategori));
|
||||
$cek_data = $this->madmin->tampil_data_last('tb_produk','no');
|
||||
foreach ($cek_data->result() as $key => $value) ;
|
||||
$no = $value->no;
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
|
||||
// echo $keterangan->img;
|
||||
|
||||
// print_r(json_decode($value->keterangan));
|
||||
if ($kategori == 1) {
|
||||
$array = array('undangan' => $undangan, 'harga' =>$harga, 'img' => $dir.$no.'.jpg');
|
||||
}else{
|
||||
$array = array( 'harga' =>$harga, 'img' => $dir.$no.'.jpg');
|
||||
}
|
||||
$this->madmin->update('tb_produk',array('no' => $no),array('keterangan' => json_encode($array)));
|
||||
move_uploaded_file($_FILES["foto_upload"]["tmp_name"], $dir.$no.".jpg");
|
||||
|
||||
$this->session->set_flashdata('success', '<b>Berhasil</b><br>Desain Baru Berhasil Diupload Ke Dalam Sistem');
|
||||
redirect('/admin');
|
||||
/////// akhir proses upload foto sama masukan data ke database /////
|
||||
}else{
|
||||
$main['undangan'] = $this->madmin->tampil_data_where('tb_produk',array('kategori' => 1));
|
||||
$main['kartu_nama'] = $this->madmin->tampil_data_where('tb_produk',array('kategori' => 2));
|
||||
$main['spanduk'] = $this->madmin->tampil_data_where('tb_produk',array('kategori' => 3));
|
||||
|
||||
$main['main']='admin/main';
|
||||
$main['header']='Halaman Utama';
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function detail()
|
||||
{
|
||||
$kode = $this->uri->segment(3);
|
||||
if ($this->input->post('hapus')) {
|
||||
$id = $this->input->post('id');
|
||||
$cari_pembelian = $this->madmin->tampil_data_where('tb_pembelian',array('id_produk' => $id));
|
||||
// print_r(count($cari_pembelian->result()));
|
||||
if (count($cari_pembelian->result()) > 0) {
|
||||
foreach ($cari_pembelian->result() as $key => $value) {
|
||||
$cari_foto_pembelian = $this->madmin->tampil_data_where('tb_foto_pembelian',array('no' => $value->no));
|
||||
// print_r(count($cari_foto_pembelian->result()));
|
||||
if (count($cari_foto_pembelian->result()) > 0) {
|
||||
foreach ($cari_foto_pembelian->result() as $key1 => $value1) ;
|
||||
$foto_transaksi = $value1->foto_transaksi;
|
||||
// print_r($foto_transaksi);
|
||||
unlink($foto_transaksi);
|
||||
if ($value1->foto_desain_selesai != '') {
|
||||
$foto_desain_selesai = $value1->foto_desain_selesai;
|
||||
// print_r($foto_desain_selesai);
|
||||
unlink($foto_desain_selesai);
|
||||
}
|
||||
|
||||
if ($value1->foto_pengembalian != '') {
|
||||
// array_map('unlink', glob("images/pengembalian/".$value1->no."/*.*"));
|
||||
rmdir("images/pengembalian/".$value1->no);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unlink("images/produk/".$id.".jpg");
|
||||
$this->madmin->delete('tb_produk',array('no' => $id));
|
||||
$this->session->set_flashdata('success', '<b>Berhasil</b><br>Desain Berhasil Dihapus');
|
||||
redirect('/admin');
|
||||
|
||||
}elseif ($this->input->post('edit_nya')) {
|
||||
$kategori = $this->input->post('kategori');
|
||||
$undangan = $this->input->post('jenis_undangan');
|
||||
$harga = $this->input->post('harga');
|
||||
$harga = str_replace(',', '', $harga);
|
||||
$dir = 'images/produk/';
|
||||
|
||||
$foto_pilih = $this->input->post('foto_pilih');
|
||||
// print_r($foto_pilih);
|
||||
if ($foto_pilih == "upload_baru") {
|
||||
$foto = $_FILES["foto_upload"]["name"];
|
||||
|
||||
$imageFileType = strtolower(pathinfo($foto,PATHINFO_EXTENSION));
|
||||
$cek_foto = $this->cek_penamaan_foto($imageFileType);
|
||||
|
||||
if ($cek_foto == 0) {
|
||||
$this->session->set_flashdata('error', '<b>Error</b><br>Upload Foto Dengan Ekstesi .jpg .png .jpeg');
|
||||
redirect($_SERVER['HTTP_REFERER']);
|
||||
}
|
||||
|
||||
// print_r("teruskan");
|
||||
move_uploaded_file($_FILES["foto_upload"]["tmp_name"], $dir.$kode.".jpg");
|
||||
}
|
||||
if ($kategori == 1) {
|
||||
$array = array('undangan' => $undangan, 'harga' =>$harga, 'img' => $dir.$kode.'.jpg');
|
||||
}else{
|
||||
$array = array( 'harga' =>$harga, 'img' => $dir.$kode.'.jpg');
|
||||
}
|
||||
|
||||
$this->madmin->update('tb_produk',array('no' => $kode),array('kategori' => $kategori,'keterangan' => json_encode($array)));
|
||||
$this->session->set_flashdata('success', '<b>Berhasil</b><br>Infromasi Desain Berhasil Terupdate');
|
||||
echo '<script>window.location.replace("'.base_url().'admin/detail/'.$kode.'")</script>';
|
||||
}elseif ($kode != '' or $kode != null) {
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_produk',array('no' => $kode));
|
||||
if (count($cek_data->result())>0) {
|
||||
if ($this->uri->segment(4) != null or $this->uri->segment(4) != '') {
|
||||
if ($this->uri->segment(4) == 'edit') {
|
||||
$main['data'] = $cek_data;
|
||||
$main['categori'] = $this->madmin->tampil_data_keseluruhan('tb_kategori');
|
||||
$main['main']='admin/menu/detail_edit';
|
||||
$main['header']='Halaman Detail';
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin');
|
||||
}
|
||||
}else{
|
||||
$main['data'] = $cek_data;
|
||||
$main['main']='admin/menu/detail';
|
||||
$main['header']='Halaman Detail';
|
||||
$this->load->view('admin/index',$main);
|
||||
}
|
||||
}else{
|
||||
redirect('/admin');
|
||||
}
|
||||
}else{
|
||||
redirect('/admin');
|
||||
}
|
||||
}
|
||||
|
||||
function daftar_tunggu()
|
||||
{
|
||||
if ($this->uri->segment(3) == 'tanggalnya') {
|
||||
if (is_numeric($this->uri->segment(4)) and is_numeric($this->uri->segment(5))) {
|
||||
$cek_tahun = $this->madmin->tanggal_terakhir_bulan($this->uri->segment(4),$this->uri->segment(5));
|
||||
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',"(id_transaksi = 1 or id_transaksi = 2) and waktu_pembelian BETWEEN '".$this->uri->segment(5)."-".$this->uri->segment(4)."-01 00:00:00' AND '".$cek_tahun." 23:59:59' ORDER by waktu_pembelian DESC");
|
||||
// print_r(count($cek_data->result()));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$main['data_pembelian'] = $cek_data;
|
||||
$main['main']='admin/menu/daftar_tunggu1';
|
||||
$main['header']='Halaman Daftar Tunggu Bulan '.$this->uri->segment(4). ' ,Tahun '.$this->uri->segment(5);
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/daftar_tunggu');
|
||||
}
|
||||
}else{
|
||||
redirect('/admin/daftar_tunggu');
|
||||
}
|
||||
}elseif ($this->uri->segment(3) == 'konfirmasi') {
|
||||
$no = $this->uri->segment(4);
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',array('no' => $no, 'id_transaksi' => 2));
|
||||
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$this->madmin->update('tb_pembelian', array('no' => $no), array('id_transaksi' => 3));
|
||||
$this->session->set_flashdata('success', "<b>Berhasil Disahkan</b><br>Konfirmasi Pembayaran Telah Berhasil Disahkan<br>Pembelian No ".$no." Dipindahkan Ke Menu <br><i>'Proses Pembuatan Pesanan'</i>");
|
||||
redirect('/admin/daftar_tunggu');
|
||||
}else{
|
||||
redirect('/admin/daftar_tunggu');
|
||||
}
|
||||
// echo count($cek_data->result());
|
||||
}elseif (is_numeric($this->uri->segment(3))) {
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian'," no = ".$this->uri->segment(3)." and (id_transaksi = 1 or id_transaksi = 2)");
|
||||
|
||||
if (count($cek_data->result())>0) {
|
||||
$main['data_pembelian'] = $cek_data;
|
||||
foreach ($cek_data->result() as $key => $value) ;
|
||||
$main['data_pembeli'] = $this->madmin->tampil_data_where('tb_pembeli', array('id' => $value->id_pembeli));
|
||||
$main['bukti_pembayaran'] = $this->madmin->tampil_data_where('tb_foto_pembelian',array('no' => $value->no));
|
||||
if ($value->desain == 0 ) {
|
||||
$main['data_produk'] = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
$main['main']='admin/menu/daftar_tunggu_proses';
|
||||
}elseif ($value->desain == 1) {
|
||||
$main['main']='admin/menu/daftar_tunggu_proses_desain_sendiri';
|
||||
}
|
||||
|
||||
$main['header']='Halaman Daftar Tunggu';
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/daftar_tunggu');
|
||||
}
|
||||
}elseif ($this->uri->segment(2) == 'daftar_tunggu'){
|
||||
$main['data_pembelian'] = $this->madmin->tampil_data_where('tb_pembelian','(id_transaksi = 1 or id_transaksi = 2)');
|
||||
// echo count($main['data_pembelian']->result());
|
||||
$main['main']='admin/menu/daftar_tunggu';
|
||||
$main['header']='Halaman Daftar Tunggu';
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/daftar_tunggu');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function proses_pembuatan()
|
||||
{
|
||||
if ($this->uri->segment(3) == 'tanggalnya') {
|
||||
if (is_numeric($this->uri->segment(4)) and is_numeric($this->uri->segment(5))) {
|
||||
$cek_tahun = $this->madmin->tanggal_terakhir_bulan($this->uri->segment(4),$this->uri->segment(5));
|
||||
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',"(id_transaksi != 1 and id_transaksi != 2 and id_transaksi != 7 and id_transaksi != 8 and id_transaksi != 9 and id_transaksi != 10 and id_transaksi != 11) and waktu_pembelian BETWEEN '".$this->uri->segment(5)."-".$this->uri->segment(4)."-01 00:00:00' AND '".$cek_tahun." 23:59:59' ORDER by waktu_pembelian DESC");
|
||||
// print_r(count($cek_data->result()));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$main['data_pembelian'] = $cek_data;
|
||||
$main['main']='admin/menu/proses_pembuatan1';
|
||||
$main['header']='Halaman Proses Pembuatan Bulan '.$this->uri->segment(4). ' ,Tahun '.$this->uri->segment(5);
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/proses_pembuatan');
|
||||
}
|
||||
}else{
|
||||
redirect('/admin/proses_pembuatan');
|
||||
}
|
||||
}elseif ($this->uri->segment(3) == 'cetakan_selesai') {
|
||||
// echo "sini proses cetakan selesai";
|
||||
$no = $this->uri->segment(4);
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',array('no' => $no, 'id_transaksi' => 5));
|
||||
// print_r(count($cek_data->result()));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$this->madmin->update('tb_pembelian',array('no' => $no), array('id_transaksi' => 6));
|
||||
$this->session->set_flashdata('success', '<b>Cetakan Selesai</b><br>Sekarang Admin Akan Menunggu Pembeli Mengambil Pesanannya, Menunggu Pengesahan Penerimaan Dari Pembeli. Mohon Bersabar');
|
||||
redirect('/admin/proses_pembuatan');
|
||||
}else{
|
||||
redirect('/admin/proses_pembuatan');
|
||||
}
|
||||
}elseif ($this->uri->segment(3) == 'upload_foto_transaksi') {
|
||||
$file = $_FILES['file'];
|
||||
// print_r($file);
|
||||
if ($file == '' or $file == null) {
|
||||
redirect('/user');
|
||||
}else{
|
||||
// echo "ada";
|
||||
///// cek folder jika ada @ tiada ///////
|
||||
$no = $this->uri->segment(4);
|
||||
$dir = 'images/pembelian/foto_desain_selesai/';
|
||||
if( is_dir($dir) === false )
|
||||
{
|
||||
mkdir($dir);
|
||||
}
|
||||
|
||||
print_r($no);
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_foto_pembelian',array('no' => $no));
|
||||
if (count($cek_data->result())>0) {
|
||||
$this->madmin->update('tb_foto_pembelian',array('no' => $no),array('foto_desain_selesai' => $dir.$no.'.jpg'));
|
||||
}else{
|
||||
$this->madmin->insert('tb_foto_pembelian',array('no' => $no,'foto_desain_selesai' => $dir.$no.'.jpg'));
|
||||
}
|
||||
|
||||
$this->madmin->update('tb_pembelian',array('no' => $no),array('id_transaksi' => 4));
|
||||
$this->session->set_flashdata('success', '<b>Foto Desain Berhasil Diupload</b><br>Pengesahan Dari Pembeli Sedang Dalam Proses<br> Mohon Bersabar , Terima Kasih');
|
||||
|
||||
move_uploaded_file($file["tmp_name"], $dir.$no.".jpg");
|
||||
}
|
||||
}elseif (is_numeric($this->uri->segment(3))) {
|
||||
$no = $this->uri->segment(3);
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian','no = '.$this->uri->segment(3).' and (id_transaksi != 1 and id_transaksi != 2 and id_transaksi != 7 and id_transaksi != 8 and id_transaksi != 9 and id_transaksi != 10 and id_transaksi != 11)');
|
||||
if (count($cek_data->result())>0) {
|
||||
$main['data_pembelian'] = $cek_data;
|
||||
foreach ($cek_data->result() as $key => $value) ;
|
||||
$main['data_pembeli'] = $this->madmin->tampil_data_where('tb_pembeli',array('id' => $value->id_pembeli));
|
||||
$main['bukti_pembayaran'] = $this->madmin->tampil_data_where('tb_foto_pembelian',array('no' => $value->no));
|
||||
if ($value->desain == 0) {
|
||||
$main['data_produk'] = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
$main['main']='admin/menu/proses_pembuatan_proses';
|
||||
}elseif ($value->desain == 1) {
|
||||
$main['main']='admin/menu/proses_pembuatan_proses_desain_sendiri';
|
||||
}
|
||||
|
||||
$main['header']='Halaman Proses Pembuatan';
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/proses_pembuatan');
|
||||
}
|
||||
|
||||
}else{
|
||||
$main['data_pembelian'] = $this->madmin->tampil_data_where('tb_pembelian',"id_transaksi != 1 and id_transaksi != 2 and id_transaksi != 7 and id_transaksi != 8 and id_transaksi != 9 and id_transaksi != 10 and id_transaksi != 11");
|
||||
$main['main']='admin/menu/proses_pembuatan';
|
||||
$main['header']='Halaman Proses Pembuatan';
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function daftar_pengembalian()
|
||||
{
|
||||
if ($this->uri->segment(3) == 'tanggalnya') {
|
||||
if (is_numeric($this->uri->segment(4)) and is_numeric($this->uri->segment(5))) {
|
||||
$cek_tahun = $this->madmin->tanggal_terakhir_bulan($this->uri->segment(4),$this->uri->segment(5));
|
||||
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',"(id_transaksi = 8 or id_transaksi = 9 or id_transaksi = 10 or id_transaksi = 11) and waktu_pembelian BETWEEN '".$this->uri->segment(5)."-".$this->uri->segment(4)."-01 00:00:00' AND '".$cek_tahun." 23:59:59' ORDER by waktu_pembelian DESC");
|
||||
// print_r(count($cek_data->result()));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$main['data_pengembalian'] = $cek_data;
|
||||
$main['main']='admin/menu/daftar_pengembalian1';
|
||||
$main['header']='Halaman Daftar Tunggu Bulan '.$this->uri->segment(4). ' ,Tahun '.$this->uri->segment(5);
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}
|
||||
}else{
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}
|
||||
}elseif ($this->uri->segment(3) == 'cetakan_selesai') {
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',array('id_transaksi' => 9,'no' => $this->uri->segment(4)));
|
||||
|
||||
// print_r(count($cek_data->result()));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$this->madmin->update('tb_pembelian',array('id_transaksi' => 9,'no' => $this->uri->segment(4)),array('id_transaksi' => 10));
|
||||
$this->session->set_flashdata('success', '<b>Pesanan Gantian Dikirim</b><br>Anda Akan Menerima Notifikasi Jika Pembeli Telah Menerima Pesanan');
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}else{
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}
|
||||
}elseif ($this->uri->segment(3) == 'konfirmasi_pengembalian') {
|
||||
// print_r($this->uri->segment(4));
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',array('id_transaksi' => 8,'no' => $this->uri->segment(4)));
|
||||
|
||||
// print_r(count($cek_data->result()));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$this->madmin->update('tb_pembelian',array('id_transaksi' => 8,'no' => $this->uri->segment(4)),array('id_transaksi' => 9));
|
||||
$this->session->set_flashdata('success', '<b>Pengesahan Pengembalian Diterima</b><br>Anda Menerima Pengesahan Bukti Pengembalian Dari Pembeli. Waktu Untuk Mencetak Kembali Pesanan Pengembalian');
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}else{
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}
|
||||
// $cek_data =
|
||||
}elseif (is_numeric($this->uri->segment(3))) {
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian','no = '.$this->uri->segment(3).' and (id_transaksi = 8 or id_transaksi = 9 or id_transaksi = 10 or id_transaksi = 11)');
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$main['header']='Halaman Daftar Pengembalian';
|
||||
$main['data_pembelian'] = $cek_data;
|
||||
foreach ($cek_data->result() as $key => $value) ;
|
||||
$main['data_pembeli'] = $this->madmin->tampil_data_where('tb_pembeli',array('id' => $value->id_pembeli));
|
||||
$main['bukti_pembayaran'] = $this->madmin->tampil_data_where('tb_foto_pembelian',array('no' => $value->no));
|
||||
|
||||
if ($value->desain == 0) {
|
||||
$main['data_produk'] = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
$main['main']='admin/menu/daftar_pengembalian_proses';
|
||||
}else{
|
||||
$main['main']='admin/menu/daftar_pengembalian_proses_desain_sendiri';
|
||||
}
|
||||
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}
|
||||
}else{
|
||||
$main['data_pengembalian'] = $this->madmin->tampil_data_where('tb_pembelian','id_transaksi = 8 or id_transaksi = 9 or id_transaksi = 10 or id_transaksi = 11');
|
||||
$main['main']='admin/menu/daftar_pengembalian';
|
||||
$main['header']='Halaman Daftar Pengembalian';
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}
|
||||
}
|
||||
|
||||
function daftar_pembelian()
|
||||
{
|
||||
if (is_numeric($this->uri->segment(3))) {
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',array('no'=>$this->uri->segment(3),'id_transaksi' => 7));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$main['header']='Halaman Daftar Pengembalian';
|
||||
$main['data_pembelian'] = $cek_data;
|
||||
foreach ($cek_data->result() as $key => $value) ;
|
||||
$main['data_pembeli'] = $this->madmin->tampil_data_where('tb_pembeli',array('id' => $value->id_pembeli));
|
||||
$main['bukti_pembayaran'] = $this->madmin->tampil_data_where('tb_foto_pembelian',array('no' => $value->no));
|
||||
|
||||
if ($value->desain == 0) {
|
||||
$main['data_produk'] = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
$main['main']='admin/menu/proses_pembuatan_proses';
|
||||
}else{
|
||||
$main['main']='admin/menu/proses_pembuatan_proses_desain_sendiri';
|
||||
}
|
||||
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}
|
||||
}elseif ($this->uri->segment(3) == 'tanggalnya') {
|
||||
if (is_numeric($this->uri->segment(4)) and is_numeric($this->uri->segment(5))) {
|
||||
$cek_tahun = $this->madmin->tanggal_terakhir_bulan($this->uri->segment(4),$this->uri->segment(5));
|
||||
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',"id_transaksi = 7 and waktu_pembelian BETWEEN '".$this->uri->segment(5)."-".$this->uri->segment(4)."-01 00:00:00' AND '".$cek_tahun." 23:59:59' ORDER by waktu_pembelian DESC");
|
||||
// print_r(count($cek_data->result()));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$main['data_pembelian'] = $cek_data;
|
||||
$main['main']='admin/menu/daftar_pembelian1';
|
||||
$main['header']='Halaman Daftar Pesanan Selesai Bulan '.$this->uri->segment(4). ' ,Tahun '.$this->uri->segment(5);
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}
|
||||
}else{
|
||||
redirect('/admin/daftar_pengembalian');
|
||||
}
|
||||
}else{
|
||||
$main['main']='admin/menu/daftar_pembelian';
|
||||
$main['header']='Halaman Daftar Pesanan Selesai';
|
||||
|
||||
$main['data_pembelian'] = $this->madmin->tampil_data_where('tb_pembelian',array('id_transaksi' => 7));
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function laporan()
|
||||
{
|
||||
if ($this->uri->segment(3) == 'cetak') {
|
||||
if ($this->input->post('bulan') != '' and $this->input->post('bulan') != null and is_numeric($this->input->post('bulan')) and $this->input->post('tahun') != '' and $this->input->post('tahun') != null and is_numeric($this->input->post('tahun'))) {
|
||||
// echo "sini";
|
||||
$cek_tahun = $this->madmin->tanggal_terakhir_bulan($this->input->post('bulan'),$this->input->post('tahun'));
|
||||
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',"(id_transaksi != 1 and id_transaksi != 2) and waktu_pembelian BETWEEN '".$this->input->post('tahun')."-".$this->input->post('bulan')."-01 00:00:00' AND '".$cek_tahun." 23:59:59' ORDER by waktu_pembelian DESC");
|
||||
// print_r(count($cek_data->result()));
|
||||
|
||||
$html = '<table width="100%" border="1"><tr style="font-weight:bolder;"><td>No</td><td>Tanggal Pembelian</td> <td>Nama Pembeli</td> <td>Kode Produk</td> <td>Jumlah Pembelian</td><td>Harga</td></tr>';
|
||||
$undangan = 0; $kartu_nama = 0 ; $spanduk = 0 ; $undangan_jual = 0; $kartu_nama_jual = 0; $spanduk_jual = 0;
|
||||
foreach ($cek_data->result() as $key => $value) {
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$cek_produk = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
if ($value->desain == 0) {
|
||||
foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "UA".$value1->no;
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "UN".$value1->no;
|
||||
}
|
||||
$undangan = $undangan + 1;
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "KN".$value1->no;
|
||||
$kartu_nama = $kartu_nama + 1;
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$kategori = "SP".$value1->no;
|
||||
$spanduk = $spanduk + 1;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "UA / Desain sendiri";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "UN / Desain Sendiri";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "KN / Desain Sendiri";
|
||||
}elseif ($value->kategori == 3) {
|
||||
$kategori = "SP / Desain Sendiri";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' =>$value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key2 => $value2) ;
|
||||
|
||||
if ($value->desain == 0) {
|
||||
if ($value1->kategori != 3) {
|
||||
$jumlah_harga = ($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas )+ $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
if ($value1->kategori == 1) {
|
||||
$undangan_jual = $undangan_jual + $jumlah_harga;
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kartu_nama_jual = $kartu_nama_jual + $jumlah_harga;
|
||||
}
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = ($ket_pembelian->lebar * $ket_pembelian->panjang * 25000 * $ket_pembelian->jumlah_kertas) + $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
$spanduk_jual = $spanduk_jual + $jumlah_harga;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = (($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500)) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
}
|
||||
|
||||
$no = $key +1;
|
||||
$html .= '<tr>';
|
||||
$html .= '<td>'.$no.'</td>';
|
||||
$html .= '<td>'.$value->waktu_pembelian.'</td>';
|
||||
$html .= '<td>'.$value2->nama.'</td>';
|
||||
$html .= '<td>'.$kategori.'</td>';
|
||||
$html .= '<td>'.$ket_pembelian->jumlah_kertas.' keping</td>';
|
||||
$html .= '<td> Rp . '.number_format($jumlah_harga).'</td>';
|
||||
$html .= '</tr>';
|
||||
}
|
||||
$total = $undangan_jual + $kartu_nama_jual + $spanduk_jual;
|
||||
$html .= '</table><br><br>';
|
||||
$html .= '<center><table width="60%" >';
|
||||
$html .= '<tr>';
|
||||
$html .= '<td>Jumlah Penjualan Undangan :<td>';
|
||||
$html .= '<td>'.$undangan .' keping / Rp .'.number_format($undangan_jual).'<td>';
|
||||
$html .= '</tr>';
|
||||
$html .= '<tr>';
|
||||
$html .= '<td>Jumlah Penjualan Kartu Nama :<td>';
|
||||
$html .= '<td>'.$kartu_nama .' keping / Rp .'.number_format($kartu_nama_jual).'<td>';
|
||||
$html .= '<tr>';
|
||||
$html .= '<td>Jumlah Penjualan Spanduk :<td>';
|
||||
$html .= '<td>'.$spanduk .' keping / Rp . '.number_format($spanduk_jual).'<td>';
|
||||
$html .= '</tr>';
|
||||
$html .= '<tr style="font-weight:bolder">';
|
||||
$html .= '<td>Total Penjualan :<td>';
|
||||
$html .= '<td> Rp . '.number_format($total).'<td>';
|
||||
$html .= '</tr>';
|
||||
$html .= '</table></center>';
|
||||
print_r($html);
|
||||
}else{
|
||||
redirect('/admin/laporan');
|
||||
}
|
||||
}elseif ($this->uri->segment(3) == 'tanggalnya') {
|
||||
if (is_numeric($this->uri->segment(4)) and is_numeric($this->uri->segment(5))) {
|
||||
$cek_tahun = $this->madmin->tanggal_terakhir_bulan($this->uri->segment(4),$this->uri->segment(5));
|
||||
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembelian',"(id_transaksi != 1 and id_transaksi != 2) and waktu_pembelian BETWEEN '".$this->uri->segment(5)."-".$this->uri->segment(4)."-01 00:00:00' AND '".$cek_tahun." 23:59:59' ORDER by waktu_pembelian DESC");
|
||||
// print_r(count($cek_data->result()));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$main['data_pembelian'] = $cek_data;
|
||||
$main['main']='admin/menu/laporan1';
|
||||
$main['header']='Halaman Laporan Penjualan Bulan '.$this->uri->segment(4). ' ,Tahun '.$this->uri->segment(5);
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/laporan');
|
||||
}
|
||||
}else{
|
||||
redirect('/admin/laporan');
|
||||
}
|
||||
}elseif ($this->uri->segment(2) == 'laporan'){
|
||||
$main['data_pembelian'] = $this->madmin->tampil_data_where('tb_pembelian','(id_transaksi != 1 and id_transaksi != 2)');
|
||||
// echo count($main['data_pembelian']->result());
|
||||
$main['main']='admin/menu/laporan';
|
||||
$main['header']='Halaman Laporan Penjualan';
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/laporan');
|
||||
}
|
||||
}
|
||||
|
||||
function daftar_pembeli()
|
||||
{
|
||||
if (is_numeric($this->uri->segment(3))) {
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_pembeli',array('id' => $this->uri->segment(3)));
|
||||
if (count($cek_data->result())>0) {
|
||||
foreach ($cek_data->result() as $key => $value) ;
|
||||
$main['data_pembelian'] = $this->madmin->tampil_data_where('tb_pembelian',array('id_pembeli' => $this->uri->segment(3)));
|
||||
$main['main']='admin/menu/daftar_pembeli_detail';
|
||||
$main['header']='Halaman Daftar Pembeli';
|
||||
|
||||
$main['data_pembeli'] = $cek_data;
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/daftar_pembeli');
|
||||
}
|
||||
}else{
|
||||
$main['main']='admin/menu/daftar_pembeli';
|
||||
$main['header']='Halaman Daftar Pembeli';
|
||||
|
||||
$main['data_pembeli'] = $this->madmin->tampil_data_keseluruhan('tb_pembeli');
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}
|
||||
}
|
||||
|
||||
function rekening()
|
||||
{
|
||||
if ($this->input->post('edit_rekening')) {
|
||||
$no = $this->input->post('no');
|
||||
$jenis = $this->input->post('jenis_bank');
|
||||
$nama = $this->input->post('nama');
|
||||
$nomor = $this->input->post('nomor');
|
||||
|
||||
$this->madmin->update('tb_rekening',array('no' => $no),array('jenis_bank' => $jenis, 'nama_bank' => $nama, 'nomor_bank' => $nomor));
|
||||
if ($this->db->affected_rows()>0) {
|
||||
$this->session->set_flashdata('success', '<b>Berhasil</b><br>Rekening Bank Berhasil Diedit');
|
||||
redirect('/admin/rekening/'.$no);
|
||||
}else{
|
||||
$this->session->set_flashdata('error', '<b>Gagal</b><br>Tiada Perubahan Yang Berlaku Pada Rekening');
|
||||
redirect('/admin/rekening/'.$no);
|
||||
}
|
||||
}elseif (is_numeric($this->uri->segment(3))) {
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_rekening',array('no' => $this->uri->segment(3)));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$main['main']='admin/menu/rekening_info';
|
||||
$main['header']='Halaman Rekening Bank';
|
||||
$main['rekening_info'] = $cek_data;
|
||||
$main['rekening'] = $this->madmin->tampil_data_keseluruhan('tb_rekening');
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/rekening');
|
||||
}
|
||||
}elseif ($this->input->post('tambah_rekening')) {
|
||||
$jenis = $this->input->post('jenis_bank');
|
||||
$nama = $this->input->post('nama');
|
||||
$nomor = $this->input->post('nomor');
|
||||
|
||||
$cek_data = $this->madmin->tampil_data_where('tb_rekening',array('nama_bank' => $nama, 'nomor_bank' => $nomor));
|
||||
if (count($cek_data->result()) > 0) {
|
||||
$this->session->set_flashdata('error', '<b>Error</b><br>Nomor Rekening <b>' .$nomor.'</b> sudah ada dalam sistem');
|
||||
redirect('/admin/rekening');
|
||||
}else{
|
||||
$this->madmin->insert('tb_rekening',array('jenis_bank' => $jenis, 'nama_bank' => $nama, 'nomor_bank' => $nomor));
|
||||
$this->session->set_flashdata('success', '<b>Berhasil</b><br>Rekening Bank Baru Berhasil Ditambah Ke Sistem');
|
||||
redirect('/admin/rekening');
|
||||
}
|
||||
|
||||
}elseif (is_string($this->uri->segment(3))) {
|
||||
redirect('/admin/rekening');
|
||||
}elseif ($this->uri->segment(2) == 'rekening') {
|
||||
$main['main']='admin/menu/rekening';
|
||||
$main['header']='Halaman Rekening Bank';
|
||||
|
||||
$main['rekening'] = $this->madmin->tampil_data_keseluruhan('tb_rekening');
|
||||
|
||||
$this->load->view('admin/index',$main);
|
||||
}else{
|
||||
redirect('/admin/rekening');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////
|
||||
function cek_penamaan_foto($imageFileType)
|
||||
{
|
||||
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" ) {
|
||||
|
||||
return 0;
|
||||
}else{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
function tukar_halaman()
|
||||
{
|
||||
$no = $this->input->post('no');
|
||||
$kategori = $this->input->post('kategori');
|
||||
|
||||
if ($no == null or $no == '' or $kategori == null or $kategori == '') {
|
||||
$this->session->set_flashdata('error', '<b>Error</b><br>Halaman Yang Ingin Diakses Tiada Dalam Sistem');
|
||||
redirect('/admin');
|
||||
}
|
||||
|
||||
$nomor = $no;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,$kategori);
|
||||
$jumlah_produk = $this->madmin->tampil_data_where('tb_produk',array('kategori' => $kategori));
|
||||
|
||||
|
||||
|
||||
if (count($data->result())>0) {?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$nomor = $nomor +4;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,$kategori);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$nomor = $nomor +4;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,$kategori);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<center>
|
||||
<?php
|
||||
$jumlah = $this->madmin->jumlah_halaman(count($jumlah_produk->result()));
|
||||
$ii = 0;
|
||||
for ($i=1; $i <= $jumlah ; $i++) { ?>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light" onclick="tukar_halaman(<?=$ii?>,<?=$kategori?>)"><?=$i?></button>
|
||||
<?php $ii+=12; }
|
||||
?>
|
||||
</center>
|
||||
<?php
|
||||
}
|
||||
|
||||
function test2()
|
||||
{
|
||||
for ($i=1; $i <=2 ; $i++) {
|
||||
echo $i;
|
||||
}
|
||||
}
|
||||
|
||||
function logout()
|
||||
{
|
||||
$this->session->unset_userdata('admin');
|
||||
$this->session->set_flashdata('success', '<b>Anda Berhasil Logout</b>');
|
||||
redirect('/home');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
169
application/controllers/Home.php
Normal file
169
application/controllers/Home.php
Normal file
@ -0,0 +1,169 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Home extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// $this->load->helper('form');
|
||||
// $this->load->library('form_validation');
|
||||
|
||||
$this->load->model('mhome');
|
||||
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
|
||||
$main['main']='home/main';
|
||||
$main['header']='Halaman Utama';
|
||||
|
||||
$this->load->view('home/index',$main);
|
||||
}
|
||||
|
||||
function project()
|
||||
{
|
||||
if ($this->uri->segment(3) != '' or $this->uri->segment(3) != null) {
|
||||
$id = $this->uri->segment(3);
|
||||
$main['main']='home/menu/detail';
|
||||
$main['header']='Desain Grafis';
|
||||
$data = $this->mhome->tampil_data_where('tb_produk',array('no' => $id));
|
||||
if (count($data->result()) > 0) {
|
||||
$main['data'] = $data;
|
||||
$this->load->view('home/index',$main);
|
||||
}else{
|
||||
redirect('/home/project');
|
||||
}
|
||||
|
||||
// $this->load->view('home/index',$main);
|
||||
}else{
|
||||
$main['undangan'] = $this->mhome->tampil_data_where('tb_produk',array('kategori' => 1));
|
||||
$main['kartu_nama'] = $this->mhome->tampil_data_where('tb_produk',array('kategori' => 2));
|
||||
$main['spanduk'] = $this->mhome->tampil_data_where('tb_produk',array('kategori' => 3));
|
||||
$main['main']='home/menu/desain_project';
|
||||
$main['header']='Desain Grafis';
|
||||
|
||||
$this->load->view('home/index',$main);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function prelogin()
|
||||
{
|
||||
if ($this->input->post('daftar')) {
|
||||
$nama = $this->input->post('nama');
|
||||
$alamat = $this->input->post('alamat');
|
||||
$email = $this->input->post('email');
|
||||
$no_telpon = $this->input->post('no_telpon');
|
||||
|
||||
$this->mhome->insert('tb_pembeli',array('nama' => $nama , 'email' => $email, 'no_telpon' => $no_telpon, 'alamat' => $alamat));
|
||||
|
||||
$cek_data_last = $this->mhome->tampil_data_last('tb_pembeli','id');
|
||||
|
||||
foreach ($cek_data_last->result() as $key => $value) ;
|
||||
$id = $value->id;
|
||||
$username = $nama . substr($no_telpon, -4). $id;
|
||||
$this->mhome->insert('tb_user',array('id_user' => $id,'username' => $username , 'password' => $username , 'level' => 2));
|
||||
$this->session->set_flashdata('pendaftaran', array('username' => $username));
|
||||
redirect('/home/prelogin');
|
||||
}elseif ($this->input->post('login')) {
|
||||
$username = $this->input->post('username');
|
||||
$password = $this->input->post('password');
|
||||
|
||||
$cek_data = $this->mhome->tampil_data_where('tb_user',array('username' => $username, 'password' => $password));
|
||||
|
||||
if (count($cek_data->result()) > 0 ) {
|
||||
foreach ($cek_data->result() as $key => $value);
|
||||
$level = $value->level;
|
||||
if ($level == 1) {
|
||||
$this->session->set_userdata('admin', array('nama' => 'Kicap Karan', 'level' => 'Admin'));
|
||||
$this->session->set_flashdata('success','<b>Admin berhasil Login</b><br>Selamat Datang <i><b> Bosku Bosmu Bosnya</b></i>');
|
||||
redirect('/admin');
|
||||
}elseif ($level == 2) {
|
||||
$cek_data_user = $this->mhome->tampil_data_where('tb_pembeli',array('id' => $value->id_user));
|
||||
foreach ($cek_data_user->result() as $key1 => $value1) ;
|
||||
$this->session->set_userdata('pembeli',array('id' => $value1->id,'nama'=>$value1->nama,'email' => $value1->email,'no_telpon' => $value1->no_telpon,'alamat' => $value1->alamat));
|
||||
$this->session->set_flashdata('success', '<b>Anda berhasil Login</b><br>Selamat Datang <i><b>'.$value1->nama.'</b></i>');
|
||||
redirect('/user');
|
||||
}
|
||||
}else{
|
||||
$this->session->set_flashdata('error', '<b>Login Gagal</b><br>Username Dan Password Salah<br>Sila Coba Kembali');
|
||||
redirect('/home/prelogin');
|
||||
}
|
||||
|
||||
}else{
|
||||
$main['main']='home/menu/login';
|
||||
$main['header']='Halaman Login';
|
||||
|
||||
$this->load->view('home/index',$main);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function tukar_halaman()
|
||||
{
|
||||
$no = $this->input->post('no');
|
||||
$kategori = $this->input->post('kategori');
|
||||
|
||||
if ($no == null or $no == '' or $kategori == null or $kategori == '') {
|
||||
$this->session->set_flashdata('error', '<b>Error</b><br>Halaman Yang Ingin Diakses Tiada Dalam Sistem');
|
||||
redirect('/home/project');
|
||||
}
|
||||
|
||||
$nomor = $no;
|
||||
$data = $this->mhome->tampil_data_gambar($nomor,$kategori);
|
||||
$jumlah_produk = $this->mhome->tampil_data_where('tb_produk',array('kategori' => $kategori));
|
||||
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row mb-5"> <?php
|
||||
foreach ($data->result() as $key => $value) {
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-md-6 col-lg-3 mb-4 mb-lg-4">
|
||||
<div class="h-entry">
|
||||
<a href="<?=base_url()?>home/project/<?=$value->no?>"><img src="<?=base_url($keterangan->img)?>" alt="Image" class="img-fluid"></a>
|
||||
|
||||
<center><div class="meta mb-4"><span class="mx-2"></span>Upload • <?=$value->tanggal_upload?><span class="mx-2">•</span> </div>
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs</p>
|
||||
<a href="<?=base_url()?>home/project/<?=$value->no?>"><button type="button" class="btn btn-warning btn-md text-white"> Detail </button></a></center>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="custom-pagination text-center">
|
||||
<?php
|
||||
$jumlah = $this->mhome->jumlah_halaman(count($jumlah_produk->result()));
|
||||
$ii = 0;
|
||||
for ($i=1; $i <= $jumlah ; $i++) { ?>
|
||||
<span style="cursor: pointer;" onclick="tukar_halaman(<?=$ii?>,<?=$kategori?>)"><?=$i?></span>
|
||||
<?php $ii+=12;}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
|
||||
|
||||
|
||||
function destroy_segala()
|
||||
{
|
||||
// $this->session->sess_destroy();
|
||||
$this->session->set_userdata('nik',1234);
|
||||
$this->session->set_userdata('nama','asdasdas');
|
||||
$this->session->set_userdata('level','Petambak');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
19
application/controllers/My404.php
Normal file
19
application/controllers/My404.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class My404 extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
// $this->session->sess_destroy();
|
||||
$this->load->view('home/404');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
224
application/controllers/Try2.php
Normal file
224
application/controllers/Try2.php
Normal file
@ -0,0 +1,224 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Try2 extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// $this->load->helper('form');
|
||||
// $this->load->library('form_validation');
|
||||
|
||||
$this->load->model('mhome');
|
||||
|
||||
}
|
||||
|
||||
|
||||
function index()
|
||||
{
|
||||
$this->load->view('try2/disini');
|
||||
}
|
||||
|
||||
|
||||
function sini(){
|
||||
$id= $this->uri->segment(3);
|
||||
|
||||
|
||||
$main['img68'] = '#nama1 { position: absolute; visibility: visible; left: 140px; top: 350px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#nama2 { position: absolute; visibility: visible; left: 140px; top: 550px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu1 { position: absolute; visibility: visible; left: 470px; top: 750px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu2 { position: absolute; visibility: visible; left: 670px; top: 750px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#akad { position: absolute; visibility: visible; left: 575px; top: 310px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#resepsi { position: absolute; visibility: visible; left: 575px; top: 480px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 575px; top: 455px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 12px}';
|
||||
|
||||
$main['img69'] = ' #nama1 { position: absolute; visibility: visible; left: 140px; top: 350px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#nama2 { position: absolute; visibility: visible; left: 140px; top: 550px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu1 { position: absolute; visibility: visible; left: 40px; top: 750px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu2 { position: absolute; visibility: visible; left: 250px; top: 750px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#akad { position: absolute; visibility: visible; left: 475px; top: 380px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#resepsi { position: absolute; visibility: visible; left: 672px; top: 380px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 600px; top: 385px; height: 100px; width: 100px; z-index: 200; text-align: center; font-size: 12px}';
|
||||
|
||||
$main['img70']= ' #nama1 { position: absolute; visibility: visible; left: 134px; top: 280px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#nama2 { position: absolute; visibility: visible; left: 134px; top: 420px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu1 { position: absolute; visibility: visible; left: 470px; top: 790px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu2 { position: absolute; visibility: visible; left: 680px; top: 790px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#akad { position: absolute; visibility: visible; left: 475px; top: 500px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#resepsi { position: absolute; visibility: visible; left: 675px; top: 500px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 600px; top: 510px; height: 100px; width: 100px; z-index: 200; text-align: center; font-size: 12px}';
|
||||
|
||||
$main['img71'] = '#nama1 { position: absolute; visibility: visible; left: 167px; top: 280px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#nama2 { position: absolute; visibility: visible; left: 167px; top: 410px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu1 { position: absolute; visibility: visible; left: 85px; top: 650px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu2 { position: absolute; visibility: visible; left: 265px; top: 650px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#akad { position: absolute; visibility: visible; left: 460px; top: 530px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#resepsi { position: absolute; visibility: visible; left: 660px; top: 530px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 585px; top: 540px; height: 100px; width: 100px; z-index: 200; text-align: center; ';
|
||||
|
||||
$main['img72'] = '#nama1 { position: absolute; visibility: visible; left: 485px; top: 427px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#nama2 { position: absolute; visibility: visible; left: 670px; top: 427px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu1 { position: absolute; visibility: visible; left: 485px; top: 680px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu2 { position: absolute; visibility: visible; left: 665px; top: 680px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#akad { position: absolute; visibility: visible; left: 465px; top: 560px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#resepsi { position: absolute; visibility: visible; left: 680px; top: 560px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 600px; top: 625px; height: 100px; width: 100px; z-index: 200; text-align: center; font-size: 14px}';
|
||||
|
||||
$main['img73'] = '#nama1 { position: absolute; visibility: visible; left: 130px; top: 400px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#nama2 { position: absolute; visibility: visible; left: 130px; top: 550px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu1 { position: absolute; visibility: visible; left: 500px; top: 770px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu2 { position: absolute; visibility: visible; left: 650px; top: 770px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#akad { position: absolute; visibility: visible; left: 580px; top: 380px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#resepsi { position: absolute; visibility: visible; left: 580px; top: 480px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 580px; top: 440px; height: 100px; width: 150px; z-index: 200; text-align: center; }';
|
||||
|
||||
$main['img74'] = '#nama1 { position: absolute; visibility: visible; left: 130px; top: 450px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#nama2 { position: absolute; visibility: visible; left: 130px; top: 600px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu1 { position: absolute; visibility: visible; left: 500px; top: 770px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#ortu2 { position: absolute; visibility: visible; left: 650px; top: 770px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#akad { position: absolute; visibility: visible; left: 580px; top: 380px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#resepsi { position: absolute; visibility: visible; left: 580px; top: 480px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 580px; top: 440px; height: 100px; width: 150px; z-index: 200; text-align: center; }';
|
||||
|
||||
|
||||
///////////////////////////////////////
|
||||
|
||||
$main['img75'] = '#namaanak { position: absolute; visibility: visible; left: 350px; top: 385px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 170px; top: 590px; height: 100px; width: 300px; z-index: 200; text-align: center; }
|
||||
#waktu { position: absolute; visibility: visible; left: 170px; top: 630px; height: 100px; width: 300px; z-index: 200; text-align: center; }
|
||||
#tempat { position: absolute; visibility: visible; left: 360px; top: 610px; height: 100px; width: 350px; z-index: 200; text-align: center; }
|
||||
#ortu { position: absolute; visibility: visible; left: 80px; top: 750px; height: 100px; width: 350px; z-index: 200; text-align: center; }
|
||||
#keluarga { position: absolute; visibility: visible; left: 425px; top: 750px; height: 100px; width: 350px; z-index: 200; text-align: center; }';
|
||||
|
||||
$main['img76'] = '#namaanak { position: absolute; visibility: visible; left: 350px; top: 515px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 70px; top: 680px; height: 100px; width: 300px; z-index: 200; text-align: center; }
|
||||
#waktu { position: absolute; visibility: visible; left: 285px; top: 680px; height: 100px; width: 300px; z-index: 200; text-align: center; }
|
||||
#tempat { position: absolute; visibility: visible; left: 480px; top: 680px; height: 100px; width: 350px; z-index: 200; text-align: center; }
|
||||
#ortu { position: absolute; visibility: visible; left: 80px; top: 800px; height: 100px; width: 350px; z-index: 200; text-align: center; }
|
||||
#keluarga { position: absolute; visibility: visible; left: 425px; top: 800px; height: 100px; width: 350px; z-index: 200; text-align: center; }';
|
||||
|
||||
$main['img77'] = '#namaanak { position: absolute; visibility: visible; left: 360px; top: 355px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 70px; top: 460px; height: 100px; width: 300px; z-index: 200; text-align: center; }
|
||||
#waktu { position: absolute; visibility: visible; left: 285px; top: 460px; height: 100px; width: 300px; z-index: 200; text-align: center; }
|
||||
#tempat { position: absolute; visibility: visible; left: 550px; top: 460px; height: 100px; width: 150px; z-index: 200; text-align: center; }
|
||||
#ortu { position: absolute; visibility: visible; left: 120px; top: 700px; height: 100px; width: 250px; z-index: 200; text-align: center; }
|
||||
#keluarga { position: absolute; visibility: visible; left: 480px; top: 700px; height: 100px; width: 250px; z-index: 200; text-align: center; }';
|
||||
|
||||
$main['img78'] = '#namaanak { position: absolute; visibility: visible; left: 360px; top: 285px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 70px; top: 460px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#waktu { position: absolute; visibility: visible; left: 480px; top: 460px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#tempat { position: absolute; visibility: visible; left: 355px; top: 440px; height: 100px; width: 150px; z-index: 200; text-align: center; }
|
||||
#ortu { position: absolute; visibility: visible; left: 250px; top: 780px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#keluarga { position: absolute; visibility: visible; left: 440px; top: 780px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}';
|
||||
|
||||
$main['img79'] = '#namaanak { position: absolute; visibility: visible; left: 360px; top: 270px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 320px; top: 480px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#waktu { position: absolute; visibility: visible; left: 320px; top: 510px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#tempat { position: absolute; visibility: visible; left: 320px; top: 540px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#ortu { position: absolute; visibility: visible; left: 550px; top: 540px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#keluarga { position: absolute; visibility: visible; left: 355px; top: 680px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 12px}';
|
||||
|
||||
$main['img80'] = '#namaanak { position: absolute; visibility: visible; left: 360px; top: 155px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 450px; top: 445px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#waktu { position: absolute; visibility: visible; left: 450px; top: 470px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#tempat { position: absolute; visibility: visible; left: 450px; top: 500px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#ortu { position: absolute; visibility: visible; left: 190px; top: 650px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#keluarga { position: absolute; visibility: visible; left: 520px; top: 650px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}';
|
||||
|
||||
$main['img81'] = '#namaanak { position: absolute; visibility: visible; left: 355px; top: 490px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 155px; top: 565px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#waktu { position: absolute; visibility: visible; left: 320px; top: 565px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#tempat { position: absolute; visibility: visible; left: 470px; top: 565px; height: 100px; width: 200px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#ortu { position: absolute; visibility: visible; left: 150px; top: 680px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 12px}
|
||||
#keluarga { position: absolute; visibility: visible; left: 555px; top: 680px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 12px}';
|
||||
|
||||
$main['img82'] = '#namaanak { position: absolute; visibility: visible; left: 355px; top: 300px; height: 100px; width: 150px; z-index: 200; text-align: center;}
|
||||
#tanggal { position: absolute; visibility: visible; left: 180px; top: 600px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#waktu { position: absolute; visibility: visible; left: 350px; top: 600px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#tempat { position: absolute; visibility: visible; left: 500px; top: 600px; height: 100px; width: 200px; z-index: 200; text-align: center; font-size: 13px}
|
||||
#ortu { position: absolute; visibility: visible; left: 200px; top: 720px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 12px}
|
||||
#keluarga { position: absolute; visibility: visible; left: 500px; top: 720px; height: 100px; width: 150px; z-index: 200; text-align: center; font-size: 12px}';
|
||||
|
||||
///////////////////////////////////////////////////
|
||||
|
||||
$main['img83'] = '#nama { position: absolute; visibility: visible; left: 330px; top: 20px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#telpon { position: absolute; visibility: visible; left: 330px; top: 60px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#kerja { position: absolute; visibility: visible; left: 330px; top: 100px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#alamat { position: absolute; visibility: visible; left: 330px; top: 140px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#medsos { position: absolute; visibility: visible; left: 330px; top: 200px; height: 100px; width: 300px; z-index: 200; text-align: center;}';
|
||||
|
||||
$main['img84'] = '#nama { position: absolute; visibility: visible; left: 30px; top: 150px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 25px}
|
||||
#telpon { position: absolute; visibility: visible; left: 340px; top: 168px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#kerja { position: absolute; visibility: visible; left: 340px; top: 240px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#alamat { position: absolute; visibility: visible; left: 30px; top: 240px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#medsos { position: absolute; visibility: visible; left: 30px; top: 300px; height: 100px; width: 300px; z-index: 200; text-align: center;}';
|
||||
|
||||
$main['img85'] = '#nama { position: absolute; visibility: visible; left: 30px; top: 250px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 25px}
|
||||
#telpon { position: absolute; visibility: visible; left: 325px; top: 200px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#kerja { position: absolute; visibility: visible; left: 325px; top: 270px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#alamat { position: absolute; visibility: visible; left: 325px; top: 322px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#medsos { position: absolute; visibility: visible; left: 325px; top: 400px; height: 100px; width: 300px; z-index: 200; text-align: center;}';
|
||||
|
||||
$main['img86'] = '#nama { position: absolute; visibility: visible; left: 325px; top: 50px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 25px}
|
||||
#telpon { position: absolute; visibility: visible; left: 325px; top: 185px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#kerja { position: absolute; visibility: visible; left: 325px; top: 243px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#alamat { position: absolute; visibility: visible; left: 350px; top: 302px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#medsos { position: absolute; visibility: visible; left: 350px; top: 370px; height: 100px; width: 300px; z-index: 200; text-align: center;}';
|
||||
|
||||
$main['img87'] = '#nama { position: absolute; visibility: visible; left: 25px; top: 160px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 25px; color: white}
|
||||
#telpon { position: absolute; visibility: visible; left: 325px; top: 35px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#kerja { position: absolute; visibility: visible; left: 325px; top: 85px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#alamat { position: absolute; visibility: visible; left: 320px; top: 125px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#medsos { position: absolute; visibility: visible; left: 320px; top: 190px; height: 100px; width: 300px; z-index: 200; text-align: center;}';
|
||||
|
||||
$main['img88'] = '#nama { position: absolute; visibility: visible; left: 25px; top: 110px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 25px; }
|
||||
#telpon { position: absolute; visibility: visible; left: 325px; top: 35px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#kerja { position: absolute; visibility: visible; left: 325px; top: 85px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#alamat { position: absolute; visibility: visible; left: 15px; top: 270px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#medsos { position: absolute; visibility: visible; left: 320px; top: 280px; height: 100px; width: 300px; z-index: 200; text-align: center;}';
|
||||
|
||||
$main['img89'] = '#nama { position: absolute; visibility: visible; left: 25px; top: 130px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 25px; }
|
||||
#telpon { position: absolute; visibility: visible; left: 325px; top: 155px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#kerja { position: absolute; visibility: visible; left: 325px; top: 200px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#alamat { position: absolute; visibility: visible; left: 15px; top: 270px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#medsos { position: absolute; visibility: visible; left: 320px; top: 280px; height: 100px; width: 300px; z-index: 200; text-align: center;}';
|
||||
|
||||
$main['img90'] = '#nama { position: absolute; visibility: visible; left: 90px; top: 170px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 25px; }
|
||||
#telpon { position: absolute; visibility: visible; left: 325px; top: 155px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#kerja { position: absolute; visibility: visible; left: 325px; top: 200px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#alamat { position: absolute; visibility: visible; left: 320px; top: 290px; height: 100px; width: 300px; z-index: 200; text-align: center;}
|
||||
#medsos { position: absolute; visibility: visible; left: 320px; top: 250px; height: 100px; width: 300px; z-index: 200; text-align: center;}';
|
||||
|
||||
$main['img91'] = '#nama { position: absolute; visibility: visible; left: 30px; top: 15px; height: 100px; width: 300px; z-index: 200; text-align: center; font-size: 25px; }
|
||||
#telpon { position: absolute; visibility: visible; left: 325px; top: 185px; height: 100px; width: 300px; z-index: 200; text-align: center; color: white}
|
||||
#kerja { position: absolute; visibility: visible; left: 325px; top: 225px; height: 100px; width: 300px; z-index: 200; text-align: center;color: white}
|
||||
#alamat { position: absolute; visibility: visible; left: 320px; top: 300px; height: 100px; width: 300px; z-index: 200; text-align: center;color: white}
|
||||
#medsos { position: absolute; visibility: visible; left: 320px; top: 265px; height: 100px; width: 300px; z-index: 200; text-align: center;color: white}';
|
||||
|
||||
if (is_numeric($this->uri->segment(3))) {
|
||||
$cek_data = $this->mhome->tampil_data_where('tb_pembelian',array('no' => $id));
|
||||
$cek_produk = $this->mhome->tampil_data_where('tb_produk',array('no' => $cek_data->result()[0]->id_produk));
|
||||
$ket_produk = json_decode($cek_produk->result()[0]->keterangan);
|
||||
$main['css'] = $main['img'.$cek_data->result()[0]->id_produk];
|
||||
$main['idnya'] = $cek_data->result()[0]->id_produk;
|
||||
$main['ket'] = json_decode($cek_data->result()[0]->ket);
|
||||
// print_r($main['ket']);
|
||||
// print_r($ket_produk);
|
||||
if ($cek_produk->result()[0]->kategori == 1 and $ket_produk->undangan == 2) {
|
||||
// print_r(json_decode($cek_data->result()[0]->ket));
|
||||
$this->load->view('try2/sinidia',$main);
|
||||
}elseif ($cek_produk->result()[0]->kategori == 1 and $ket_produk->undangan == 1) {
|
||||
$this->load->view('try2/sinidia1',$main);
|
||||
}elseif ($cek_produk->result()[0]->kategori == 2) {
|
||||
$this->load->view('try2/sinidia2',$main);
|
||||
}
|
||||
|
||||
}else{
|
||||
redirect('/user');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
1335
application/controllers/User.php
Normal file
1335
application/controllers/User.php
Normal file
File diff suppressed because it is too large
Load Diff
25
application/controllers/Welcome.php
Normal file
25
application/controllers/Welcome.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Welcome extends CI_Controller {
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
*
|
||||
* Maps to the following URL
|
||||
* http://example.com/index.php/welcome
|
||||
* - or -
|
||||
* http://example.com/index.php/welcome/index
|
||||
* - or -
|
||||
* Since this controller is set as the default controller in
|
||||
* config/routes.php, it's displayed at http://example.com/
|
||||
*
|
||||
* So any other public methods not prefixed with an underscore will
|
||||
* map to /index.php/welcome/<method_name>
|
||||
* @see https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('welcome_message');
|
||||
}
|
||||
}
|
||||
11
application/controllers/index.html
Normal file
11
application/controllers/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/core/index.html
Normal file
11
application/core/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
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>
|
||||
512
application/libraries/Datatables.php
Normal file
512
application/libraries/Datatables.php
Normal file
@ -0,0 +1,512 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/**
|
||||
* Ignited Datatables
|
||||
*
|
||||
* This is a wrapper class/library based on the native Datatables server-side implementation by Allan Jardine
|
||||
* found at http://datatables.net/examples/data_sources/server_side.html for CodeIgniter
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @subpackage libraries
|
||||
* @category library
|
||||
* @version 0.6
|
||||
* @author Vincent Bambico <metal.conspiracy@gmail.com>
|
||||
* Yusuf Ozdemir <yusuf@ozdemir.be>
|
||||
* @link http://codeigniter.com/forums/viewthread/160896/
|
||||
*/
|
||||
class Datatables
|
||||
{
|
||||
/**
|
||||
* Global container variables for chained argument results
|
||||
*
|
||||
*/
|
||||
protected $ci;
|
||||
protected $table;
|
||||
protected $select = array();
|
||||
protected $joins = array();
|
||||
protected $columns = array();
|
||||
protected $where = array();
|
||||
protected $filter = array();
|
||||
protected $add_columns = array();
|
||||
protected $edit_columns = array();
|
||||
protected $unset_columns = array();
|
||||
|
||||
/**
|
||||
* Copies an instance of CI
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->ci =& get_instance();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the SELECT portion of the query
|
||||
*
|
||||
* @param string $columns
|
||||
* @param bool $backtick_protect
|
||||
* @return mixed
|
||||
*/
|
||||
public function select($columns, $backtick_protect = TRUE)
|
||||
{
|
||||
foreach($this->explode(',', $columns) as $val)
|
||||
{
|
||||
$column = trim(preg_replace('/(.*)\s+as\s+(\w*)/i', '$2', $val));
|
||||
$this->columns[] = $column;
|
||||
$this->select[$column] = trim(preg_replace('/(.*)\s+as\s+(\w*)/i', '$1', $val));
|
||||
}
|
||||
$this->ci->db->select($columns, $backtick_protect);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the FROM portion of the query
|
||||
*
|
||||
* @param string $table
|
||||
* @return mixed
|
||||
*/
|
||||
public function from($table)
|
||||
{
|
||||
$this->table = $table;
|
||||
$this->ci->db->from($table);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the JOIN portion of the query
|
||||
*
|
||||
* @param string $table
|
||||
* @param string $fk
|
||||
* @param string $type
|
||||
* @return mixed
|
||||
*/
|
||||
public function join($table, $fk, $type = NULL)
|
||||
{
|
||||
$this->joins[] = array($table, $fk, $type);
|
||||
$this->ci->db->join($table, $fk, $type);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the WHERE portion of the query
|
||||
*
|
||||
* @param mixed $key_condition
|
||||
* @param string $val
|
||||
* @param bool $backtick_protect
|
||||
* @return mixed
|
||||
*/
|
||||
public function where($key_condition, $val = NULL, $backtick_protect = TRUE)
|
||||
{
|
||||
$this->where[] = array($key_condition, $val, $backtick_protect);
|
||||
$this->ci->db->where($key_condition, $val, $backtick_protect);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the WHERE portion of the query
|
||||
*
|
||||
* @param mixed $key_condition
|
||||
* @param string $val
|
||||
* @param bool $backtick_protect
|
||||
* @return mixed
|
||||
*/
|
||||
public function filter($key_condition, $val = NULL, $backtick_protect = TRUE)
|
||||
{
|
||||
$this->filter[] = array($key_condition, $val, $backtick_protect);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets additional column variables for adding custom columns
|
||||
*
|
||||
* @param string $column
|
||||
* @param string $content
|
||||
* @param string $match_replacement
|
||||
* @return mixed
|
||||
*/
|
||||
public function add_column($column, $content, $match_replacement = NULL)
|
||||
{
|
||||
$this->add_columns[$column] = array('content' => $content, 'replacement' => $this->explode(',', $match_replacement));
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets additional column variables for editing columns
|
||||
*
|
||||
* @param string $column
|
||||
* @param string $content
|
||||
* @param string $match_replacement
|
||||
* @return mixed
|
||||
*/
|
||||
public function edit_column($column, $content, $match_replacement)
|
||||
{
|
||||
$this->edit_columns[$column][] = array('content' => $content, 'replacement' => $this->explode(',', $match_replacement));
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unset column
|
||||
*
|
||||
* @param string $column
|
||||
* @return mixed
|
||||
*/
|
||||
public function unset_column($column)
|
||||
{
|
||||
$this->unset_columns[] = $column;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds all the necessary query segments and performs the main query based on results set from chained statements
|
||||
*
|
||||
* @param string charset
|
||||
* @return string
|
||||
*/
|
||||
public function generate($charset = 'UTF-8')
|
||||
{
|
||||
$this->get_paging();
|
||||
$this->get_ordering();
|
||||
$this->get_filtering();
|
||||
return $this->produce_output($charset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the LIMIT portion of the query
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function get_paging()
|
||||
{
|
||||
$iStart = $this->ci->input->post('iDisplayStart');
|
||||
$iLength = $this->ci->input->post('iDisplayLength');
|
||||
$this->ci->db->limit(($iLength != '' && $iLength != '-1')? $iLength : 10, ($iStart)? $iStart : 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the ORDER BY portion of the query
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function get_ordering()
|
||||
{
|
||||
if ($this->check_mDataprop())
|
||||
$mColArray = $this->get_mDataprop();
|
||||
elseif ($this->ci->input->post('sColumns'))
|
||||
$mColArray = explode(',', $this->ci->input->post('sColumns'));
|
||||
else
|
||||
$mColArray = $this->columns;
|
||||
|
||||
$mColArray = array_values(array_diff($mColArray, $this->unset_columns));
|
||||
$columns = array_values(array_diff($this->columns, $this->unset_columns));
|
||||
|
||||
for($i = 0; $i < intval($this->ci->input->post('iSortingCols')); $i++)
|
||||
if(isset($mColArray[intval($this->ci->input->post('iSortCol_' . $i))]) && in_array($mColArray[intval($this->ci->input->post('iSortCol_' . $i))], $columns) && $this->ci->input->post('bSortable_'.intval($this->ci->input->post('iSortCol_' . $i))) == 'true')
|
||||
$this->ci->db->order_by($mColArray[intval($this->ci->input->post('iSortCol_' . $i))], $this->ci->input->post('sSortDir_' . $i));
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the LIKE portion of the query
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function get_filtering()
|
||||
{
|
||||
if ($this->check_mDataprop())
|
||||
$mColArray = $this->get_mDataprop();
|
||||
elseif ($this->ci->input->post('sColumns'))
|
||||
$mColArray = explode(',', $this->ci->input->post('sColumns'));
|
||||
else
|
||||
$mColArray = $this->columns;
|
||||
|
||||
$sWhere = '';
|
||||
$sSearch = $this->ci->db->escape($this->ci->input->post('sSearch'));
|
||||
|
||||
$mColArray = array_values(array_diff($mColArray, $this->unset_columns));
|
||||
$columns = array_values(array_diff($this->columns, $this->unset_columns));
|
||||
|
||||
if($sSearch != '')
|
||||
for($i = 0; $i < count($mColArray); $i++)
|
||||
if($this->ci->input->post('bSearchable_' . $i) == 'true' && in_array($mColArray[$i], $columns))
|
||||
$sWhere .= $this->select[$mColArray[$i]] . " LIKE '%" . $sSearch . "%' OR ";
|
||||
|
||||
$sWhere = substr_replace($sWhere, '', -3);
|
||||
|
||||
if($sWhere != '')
|
||||
$this->ci->db->where('(' . $sWhere . ')');
|
||||
|
||||
for($i = 0; $i < intval($this->ci->input->post('iColumns')); $i++)
|
||||
{
|
||||
if(isset($_POST['sSearch_' . $i]) && $this->ci->input->post('sSearch_' . $i) != '' && in_array($mColArray[$i], $columns))
|
||||
{
|
||||
$miSearch = explode(',', $this->ci->input->post('sSearch_' . $i));
|
||||
foreach($miSearch as $val)
|
||||
{
|
||||
if(preg_match("/(<=|>=|=|<|>)(\s*)(.+)/i", trim($val), $matches))
|
||||
$this->ci->db->where($this->select[$mColArray[$i]].' '.$matches[1], $matches[3]);
|
||||
else
|
||||
$this->ci->db->where($this->select[$mColArray[$i]].' LIKE', '%'.$val.'%');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach($this->filter as $val)
|
||||
$this->ci->db->where($val[0], $val[1], $val[2]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compiles the select statement based on the other functions called and runs the query
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function get_display_result()
|
||||
{
|
||||
return $this->ci->db->get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a JSON encoded string data
|
||||
*
|
||||
* @param string charset
|
||||
* @return string
|
||||
*/
|
||||
protected function produce_output($charset)
|
||||
{
|
||||
$aaData = array();
|
||||
$rResult = $this->get_display_result();
|
||||
$iTotal = $this->get_total_results();
|
||||
$iFilteredTotal = $this->get_total_results(TRUE);
|
||||
|
||||
foreach($rResult->result_array() as $row_key => $row_val)
|
||||
{
|
||||
$aaData[$row_key] = ($this->check_mDataprop())? $row_val : array_values($row_val);
|
||||
|
||||
foreach($this->add_columns as $field => $val)
|
||||
if($this->check_mDataprop())
|
||||
$aaData[$row_key][$field] = $this->exec_replace($val, $aaData[$row_key]);
|
||||
else
|
||||
$aaData[$row_key][] = $this->exec_replace($val, $aaData[$row_key]);
|
||||
|
||||
foreach($this->edit_columns as $modkey => $modval)
|
||||
foreach($modval as $val)
|
||||
$aaData[$row_key][($this->check_mDataprop())? $modkey : array_search($modkey, $this->columns)] = $this->exec_replace($val, $aaData[$row_key]);
|
||||
|
||||
$aaData[$row_key] = array_diff_key($aaData[$row_key], ($this->check_mDataprop())? $this->unset_columns : array_intersect($this->columns, $this->unset_columns));
|
||||
|
||||
if(!$this->check_mDataprop())
|
||||
$aaData[$row_key] = array_values($aaData[$row_key]);
|
||||
}
|
||||
|
||||
$sColumns = array_diff($this->columns, $this->unset_columns);
|
||||
$sColumns = array_merge_recursive($sColumns, array_keys($this->add_columns));
|
||||
|
||||
$sOutput = array
|
||||
(
|
||||
'sEcho' => intval($this->ci->input->post('sEcho')),
|
||||
'iTotalRecords' => $iTotal,
|
||||
'iTotalDisplayRecords' => $iFilteredTotal,
|
||||
'aaData' => $aaData,
|
||||
'sColumns' => implode(',', $sColumns)
|
||||
);
|
||||
|
||||
if(strtolower($charset) == 'utf-8')
|
||||
return json_encode($sOutput);
|
||||
else
|
||||
return $this->jsonify($sOutput);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result count
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
protected function get_total_results($filtering = FALSE)
|
||||
{
|
||||
if($filtering)
|
||||
$this->get_filtering();
|
||||
|
||||
foreach($this->joins as $val)
|
||||
$this->ci->db->join($val[0], $val[1], $val[2]);
|
||||
|
||||
foreach($this->where as $val)
|
||||
$this->ci->db->where($val[0], $val[1], $val[2]);
|
||||
|
||||
return $this->ci->db->count_all_results($this->table);
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs callback functions and makes replacements
|
||||
*
|
||||
* @param mixed $custom_val
|
||||
* @param mixed $row_data
|
||||
* @return string $custom_val['content']
|
||||
*/
|
||||
protected function exec_replace($custom_val, $row_data)
|
||||
{
|
||||
$replace_string = '';
|
||||
|
||||
if(isset($custom_val['replacement']) && is_array($custom_val['replacement']))
|
||||
{
|
||||
foreach($custom_val['replacement'] as $key => $val)
|
||||
{
|
||||
$sval = preg_replace("/(?<!\w)([\'\"])(.*)\\1(?!\w)/i", '$2', trim($val));
|
||||
if(preg_match('/(\w+)\((.*)\)/i', $val, $matches) && function_exists($matches[1]))
|
||||
{
|
||||
$func = $matches[1];
|
||||
$args = preg_split("/[\s,]*\\\"([^\\\"]+)\\\"[\s,]*|" . "[\s,]*'([^']+)'[\s,]*|" . "[,]+/", $matches[2], 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
|
||||
|
||||
foreach($args as $args_key => $args_val)
|
||||
{
|
||||
$args_val = preg_replace("/(?<!\w)([\'\"])(.*)\\1(?!\w)/i", '$2', trim($args_val));
|
||||
$args[$args_key] = (in_array($args_val, $this->columns))? ($row_data[($this->check_mDataprop())? $args_val : array_search($args_val, $this->columns)]) : $args_val;
|
||||
}
|
||||
|
||||
$replace_string = call_user_func_array($func, $args);
|
||||
}
|
||||
elseif(in_array($sval, $this->columns))
|
||||
$replace_string = $row_data[($this->check_mDataprop())? $sval : array_search($sval, $this->columns)];
|
||||
else
|
||||
$replace_string = $sval;
|
||||
|
||||
$custom_val['content'] = str_ireplace('$' . ($key + 1), $replace_string, $custom_val['content']);
|
||||
}
|
||||
}
|
||||
|
||||
return $custom_val['content'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Check mDataprop
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function check_mDataprop()
|
||||
{
|
||||
if (!$this->ci->input->post('mDataProp_0')) return FALSE;
|
||||
|
||||
for($i = 0; $i < intval($this->ci->input->post('iColumns')); $i++)
|
||||
if(!is_numeric($this->ci->input->post('mDataProp_' . $i)))
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mDataprop order
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function get_mDataprop()
|
||||
{
|
||||
$mDataProp = array();
|
||||
|
||||
for($i = 0; $i < intval($this->ci->input->post('iColumns')); $i++)
|
||||
$mDataProp[] = $this->ci->input->post('mDataProp_' . $i);
|
||||
|
||||
return $mDataProp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the difference of open and close characters
|
||||
*
|
||||
* @param string $str
|
||||
* @param string $open
|
||||
* @param string $close
|
||||
* @return string $retval
|
||||
*/
|
||||
protected function balanceChars($str, $open, $close)
|
||||
{
|
||||
$openCount = substr_count($str, $open);
|
||||
$closeCount = substr_count($str, $close);
|
||||
$retval = $openCount - $closeCount;
|
||||
return $retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* Explode, but ignore delimiter until closing characters are found
|
||||
*
|
||||
* @param string $delimiter
|
||||
* @param string $str
|
||||
* @param string $open
|
||||
* @param string $close
|
||||
* @return mixed $retval
|
||||
*/
|
||||
protected function explode($delimiter, $str, $open='(', $close=')')
|
||||
{
|
||||
$retval = array();
|
||||
$hold = array();
|
||||
$balance = 0;
|
||||
$parts = explode($delimiter, $str);
|
||||
|
||||
foreach ($parts as $part)
|
||||
{
|
||||
$hold[] = $part;
|
||||
$balance += $this->balanceChars($part, $open, $close);
|
||||
if ($balance < 1)
|
||||
{
|
||||
$retval[] = implode($delimiter, $hold);
|
||||
$hold = array();
|
||||
$balance = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (count($hold) > 0)
|
||||
$retval[] = implode($delimiter, $hold);
|
||||
|
||||
return $retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* Workaround for json_encode's UTF-8 encoding if a different charset needs to be used
|
||||
*
|
||||
* @param mixed result
|
||||
* @return string
|
||||
*/
|
||||
protected function jsonify($result = FALSE)
|
||||
{
|
||||
if(is_null($result)) return 'null';
|
||||
if($result === FALSE) return 'false';
|
||||
if($result === TRUE) return 'true';
|
||||
|
||||
if(is_scalar($result))
|
||||
{
|
||||
if(is_float($result))
|
||||
return floatval(str_replace(',', '.', strval($result)));
|
||||
|
||||
if(is_string($result))
|
||||
{
|
||||
static $jsonReplaces = array(array('\\', '/', '\n', '\t', '\r', '\b', '\f', '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'));
|
||||
return '"' . str_replace($jsonReplaces[0], $jsonReplaces[1], $result) . '"';
|
||||
}
|
||||
else
|
||||
return $result;
|
||||
}
|
||||
|
||||
$isList = TRUE;
|
||||
|
||||
for($i = 0, reset($result); $i < count($result); $i++, next($result))
|
||||
{
|
||||
if(key($result) !== $i)
|
||||
{
|
||||
$isList = FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$json = array();
|
||||
|
||||
if($isList)
|
||||
{
|
||||
foreach($result as $value)
|
||||
$json[] = $this->jsonify($value);
|
||||
|
||||
return '[' . join(',', $json) . ']';
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($result as $key => $value)
|
||||
$json[] = $this->jsonify($key) . ':' . $this->jsonify($value);
|
||||
|
||||
return '{' . join(',', $json) . '}';
|
||||
}
|
||||
}
|
||||
}
|
||||
/* End of file Datatables.php */
|
||||
/* Location: ./application/libraries/Datatables.php */
|
||||
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>
|
||||
151
application/models/Madmin.php
Normal file
151
application/models/Madmin.php
Normal file
@ -0,0 +1,151 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Madmin extends CI_Model {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
}
|
||||
|
||||
function index(){
|
||||
|
||||
}
|
||||
|
||||
function tampil_data_keseluruhan($namatabel) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
function tampil_data_where($namatabel,$array) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->where($array);
|
||||
// $this->db->limit(1);
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
function tampil_data_last($namatabel,$kolom)
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->limit(1);
|
||||
$this->db->order_by($kolom,"DESC");
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function tampil_data_gambar($no,$kategori)
|
||||
{
|
||||
$query = $this->db->query("SELECT * FROM tb_produk where kategori = $kategori order by no limit $no,4");
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
function insert($namatabel,$array)
|
||||
{
|
||||
return $this->db->insert($namatabel,$array);
|
||||
}
|
||||
|
||||
function update($table,$array,$array_condition)
|
||||
{
|
||||
$this->db->where($array);
|
||||
$this->db->update($table, $array_condition);
|
||||
}
|
||||
|
||||
function delete($namatabel,$array){
|
||||
$this->db->where($array);
|
||||
$this->db->delete($namatabel);
|
||||
}
|
||||
|
||||
// function like($namatabel,$field,$like,$kategori)
|
||||
// {
|
||||
// if ($kategori == '') {
|
||||
// $this->db->select("*");
|
||||
// $this->db->from($namatabel);
|
||||
// $this->db->like($field, $like, 'both');
|
||||
// // $this->db->limit(1);
|
||||
// $query = $this->db->get();
|
||||
// return $query;
|
||||
// }else{
|
||||
// $this->db->select("*");
|
||||
// $this->db->from($namatabel);
|
||||
// $this->db->where(array('kategori'=>$kategori));
|
||||
// $this->db->like($field, $like, 'both');
|
||||
// // $this->db->limit(1);
|
||||
// $query = $this->db->get();
|
||||
// return $query;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
function jumlah_halaman($no)
|
||||
{
|
||||
$a = $no / 12;
|
||||
return ceil($a);
|
||||
}
|
||||
|
||||
|
||||
function tanggal_terakhir_bulan($bulan,$tahun){
|
||||
$dateString = $tahun.'-'.$bulan.'-01';
|
||||
|
||||
//Last date of current month.
|
||||
$lastDateOfMonth = date("Y-m-t", strtotime($dateString));
|
||||
|
||||
return $lastDateOfMonth;
|
||||
}
|
||||
|
||||
function cari_nama_bulan($bulan){
|
||||
$nama = null;
|
||||
switch ($bulan) {
|
||||
case '01':
|
||||
$nama = 'Januari';
|
||||
break;
|
||||
case '02':
|
||||
$nama = 'Februari';
|
||||
break;
|
||||
case '03':
|
||||
$nama = 'Maret';
|
||||
break;
|
||||
case '04':
|
||||
$nama = 'April';
|
||||
break;
|
||||
case '05':
|
||||
$nama = 'Mei';
|
||||
break;
|
||||
case '06':
|
||||
$nama = 'Juni';
|
||||
break;
|
||||
case '07':
|
||||
$nama = 'Juli';
|
||||
break;
|
||||
case '08':
|
||||
$nama = 'Agustus';
|
||||
break;
|
||||
case '09':
|
||||
$nama = 'September';
|
||||
break;
|
||||
case '10':
|
||||
$nama = 'Oktober';
|
||||
break;
|
||||
case '11':
|
||||
$nama = 'November';
|
||||
break;
|
||||
case '12':
|
||||
$nama = 'Desember';
|
||||
break;
|
||||
}
|
||||
|
||||
return $nama;
|
||||
}
|
||||
|
||||
}
|
||||
90
application/models/Mhome.php
Normal file
90
application/models/Mhome.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Mhome extends CI_Model {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
}
|
||||
|
||||
function index(){
|
||||
|
||||
}
|
||||
|
||||
function tampil_data_keseluruhan($namatabel) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
function tampil_data_where($namatabel,$array) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->where($array);
|
||||
// $this->db->limit(1);
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
function tampil_data_gambar($no,$kategori)
|
||||
{
|
||||
$query = $this->db->query("SELECT * FROM tb_produk where kategori = $kategori order by no limit $no,12");
|
||||
return $query;
|
||||
}
|
||||
|
||||
function tampil_data_last($namatabel,$kolom)
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->limit(1);
|
||||
$this->db->order_by($kolom,"DESC");
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
function insert($namatabel,$array)
|
||||
{
|
||||
return $this->db->insert($namatabel,$array);
|
||||
}
|
||||
|
||||
function update($table,$array,$array_condition)
|
||||
{
|
||||
$this->db->where($array);
|
||||
$this->db->update($table, $array_condition);
|
||||
}
|
||||
|
||||
function like($namatabel,$field,$like,$kategori)
|
||||
{
|
||||
if ($kategori == '') {
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->like($field, $like, 'both');
|
||||
// $this->db->limit(1);
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}else{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->where(array('kategori'=>$kategori));
|
||||
$this->db->like($field, $like, 'both');
|
||||
// $this->db->limit(1);
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
}
|
||||
|
||||
function jumlah_halaman($no)
|
||||
{
|
||||
$a = $no / 12;
|
||||
return ceil($a);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
112
application/models/Muser.php
Normal file
112
application/models/Muser.php
Normal file
@ -0,0 +1,112 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Muser extends CI_Model {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
}
|
||||
|
||||
function index(){
|
||||
|
||||
}
|
||||
|
||||
function tampil_data_keseluruhan($namatabel) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
function tampil_data_where($namatabel,$array) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->where($array);
|
||||
// $this->db->limit(1);
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
function tampil_data_gambar($no,$kategori)
|
||||
{
|
||||
$query = $this->db->query("SELECT * FROM tb_produk where kategori = $kategori order by no limit $no,12");
|
||||
return $query;
|
||||
}
|
||||
|
||||
function tampil_data_last($namatabel,$kolom)
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->limit(1);
|
||||
$this->db->order_by($kolom,"DESC");
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
function tampil_data_last1($namatabel,$kolom,$array)
|
||||
{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->where($array);
|
||||
$this->db->order_by($kolom,"DESC");
|
||||
$this->db->limit(1);
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
function insert($namatabel,$array)
|
||||
{
|
||||
return $this->db->insert($namatabel,$array);
|
||||
}
|
||||
|
||||
function update($table,$array,$array_condition)
|
||||
{
|
||||
$this->db->where($array);
|
||||
$this->db->update($table, $array_condition);
|
||||
}
|
||||
|
||||
function like($namatabel,$field,$like,$kategori)
|
||||
{
|
||||
if ($kategori == '') {
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->like($field, $like, 'both');
|
||||
// $this->db->limit(1);
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}else{
|
||||
$this->db->select("*");
|
||||
$this->db->from($namatabel);
|
||||
$this->db->where(array('kategori'=>$kategori));
|
||||
$this->db->like($field, $like, 'both');
|
||||
// $this->db->limit(1);
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
}
|
||||
|
||||
function jumlah_halaman($no)
|
||||
{
|
||||
$a = $no / 12;
|
||||
return ceil($a);
|
||||
}
|
||||
|
||||
function cek_penamaan_foto($imageFileType)
|
||||
{
|
||||
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" ) {
|
||||
|
||||
return 0;
|
||||
}else{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
11
application/models/index.html
Normal file
11
application/models/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/third_party/index.html
vendored
Normal file
11
application/third_party/index.html
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
14
application/views/admin/fixed_navbar.php
Normal file
14
application/views/admin/fixed_navbar.php
Normal file
@ -0,0 +1,14 @@
|
||||
<div class="fixed-navbar">
|
||||
<div class="pull-left">
|
||||
<button type="button" class="menu-mobile-button glyphicon glyphicon-menu-hamburger js__menu_mobile"></button>
|
||||
<h1 class="page-title"><?=$header?></h1>
|
||||
<!-- /.page-title -->
|
||||
</div>
|
||||
<!-- /.pull-left -->
|
||||
<div class="pull-right">
|
||||
|
||||
<!-- /.ico-item -->
|
||||
<!-- <a href="#" class="ico-item mdi mdi-logout js__logout"></a> -->
|
||||
</div>
|
||||
<!-- /.pull-right -->
|
||||
</div>
|
||||
8
application/views/admin/footer.php
Normal file
8
application/views/admin/footer.php
Normal file
@ -0,0 +1,8 @@
|
||||
<footer class="footer">
|
||||
<ul class="list-inline">
|
||||
<li>2020 © <i>Desain</i>-<b>Grafis</b>.</li>
|
||||
<li><a href="#">Privacy</a></li>
|
||||
<li><a href="#">Terms</a></li>
|
||||
<li><a href="#">Help</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
121
application/views/admin/head.php
Normal file
121
application/views/admin/head.php
Normal file
@ -0,0 +1,121 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<title>Desain Grafis - <?=$header?></title>
|
||||
|
||||
<link rel="icon" href="<?=base_url()?>icon.jpg">
|
||||
<!-- Main Styles -->
|
||||
<link rel="stylesheet" href="<?=base_url()?>assets/styles/style.min.css">
|
||||
|
||||
<!-- Material Design Icon -->
|
||||
<link rel="stylesheet" href="<?=base_url()?>assets/fonts/material-design/css/materialdesignicons.css">
|
||||
|
||||
<!-- mCustomScrollbar -->
|
||||
<link rel="stylesheet" href="<?=base_url()?>assets/plugin/datatables/media/css/dataTables.bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?=base_url()?>assets/plugin/datatables/extensions/Responsive/css/responsive.bootstrap.min.css">
|
||||
<!-- Sweet Alert -->
|
||||
<!-- <link rel="stylesheet" href="<?=base_url()?>assets/plugin/sweet-alert/sweetalert.css"> -->
|
||||
<link rel="stylesheet" href="<?=base_url()?>print_js/print.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url() ?>sweet-alert/sweetalert.css">
|
||||
|
||||
|
||||
<?php if ($this->uri->segment(2) == '' or $this->uri->segment(2) == null): ?>
|
||||
<style>
|
||||
#image-preview{
|
||||
display:none;
|
||||
/*width : 250px;
|
||||
height : 200px;*/
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
/*body {font-family: Arial;}*/
|
||||
|
||||
/* Style the tab */
|
||||
.tab {
|
||||
overflow: hidden;
|
||||
border: 1px solid #ccc;
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
/* Style the buttons inside the tab */
|
||||
.tab button {
|
||||
background-color: inherit;
|
||||
float: left;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
padding: 14px 16px;
|
||||
transition: 0.3s;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
/* Change background color of buttons on hover */
|
||||
.tab button:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
/* Create an active/current tablink class */
|
||||
.tab button.active {
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
/* Style the tab content */
|
||||
.tabcontent {
|
||||
display: none;
|
||||
padding: 6px 12px;
|
||||
-webkit-animation: fadeEffect 1s;
|
||||
animation: fadeEffect 1s;
|
||||
/*border: 1px solid #ccc;*/
|
||||
}
|
||||
|
||||
/* Fade in tabs */
|
||||
@-webkit-keyframes fadeEffect {
|
||||
from {opacity: 0;}
|
||||
to {opacity: 1;}
|
||||
}
|
||||
|
||||
@keyframes fadeEffect {
|
||||
from {opacity: 0;}
|
||||
to {opacity: 1;}
|
||||
}
|
||||
</style>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'daftar_tunggu'): ?>
|
||||
<?php if (is_numeric($this->uri->segment(3))): ?>
|
||||
<link rel="stylesheet" href="<?=base_url()?>/dist/css/lightbox.min.css">
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'proses_pembuatan' ): ?>
|
||||
<style>
|
||||
#image-preview{
|
||||
display:none;
|
||||
/*width : 250px;
|
||||
height : 200px;*/
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php if (is_numeric($this->uri->segment(3))): ?>
|
||||
<link rel="stylesheet" href="<?=base_url()?>/dist/css/lightbox.min.css">
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'daftar_pengembalian'): ?>
|
||||
<?php if (is_numeric($this->uri->segment(3))): ?>
|
||||
<link rel="stylesheet" href="<?=base_url()?>/dist/css/lightbox.min.css">
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<style type="text/css">
|
||||
.swal-modal .swal-text{
|
||||
text-align: center
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
41
application/views/admin/index.php
Normal file
41
application/views/admin/index.php
Normal file
@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<!-- Mirrored from demo.ninjateam.org/html/my-admin/light/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Jan 2018 03:47:34 GMT -->
|
||||
<?php $this->load->view("admin/head"); ?>
|
||||
|
||||
<body>
|
||||
<?php $this->load->view('admin/main_menu'); ?>
|
||||
<!-- /.main-menu -->
|
||||
|
||||
<?php $this->load->view("admin/fixed_navbar") ; ?>
|
||||
<!-- /.fixed-navbar -->
|
||||
|
||||
|
||||
<!-- /#notification-popup -->
|
||||
|
||||
|
||||
<!-- /#message-popup -->
|
||||
<div id="wrapper">
|
||||
<div class="main-content">
|
||||
<?php $this->load->view($main); ?>
|
||||
<!-- /.row -->
|
||||
|
||||
|
||||
<?php $this->load->view("admin/footer"); ?>
|
||||
</div>
|
||||
<!-- /.main-content -->
|
||||
</div><!--/#wrapper -->
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="assets/script/html5shiv.min.js"></script>
|
||||
<script src="assets/script/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<?php $this->load->view("admin/script"); ?>
|
||||
</body>
|
||||
|
||||
<!-- Mirrored from demo.ninjateam.org/html/my-admin/light/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Jan 2018 03:48:09 GMT -->
|
||||
</html>
|
||||
89
application/views/admin/login.php
Normal file
89
application/views/admin/login.php
Normal file
@ -0,0 +1,89 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<!-- Mirrored from demo.ninjateam.org/html/my-admin/light/page-login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Jan 2018 03:48:56 GMT -->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<title><?=$header?></title>
|
||||
<link rel="stylesheet" href="<?=base_url()?>assets/styles/style.min.css">
|
||||
|
||||
<!-- Waves Effect -->
|
||||
<link rel="stylesheet" href="<?=base_url()?>assets/plugin/waves/waves.min.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="single-wrapper">
|
||||
<form method="post" class="frm-single">
|
||||
<div class="inside">
|
||||
<div class="title"><strong>E-Perpustakaan</strong></div>
|
||||
<!-- /.title -->
|
||||
<div class="frm-title">Login</div>
|
||||
<!-- /.frm-title -->
|
||||
<div class="frm-input"><input type="text" placeholder="Username" class="frm-inp" name="username" required=""><i class="fa fa-user frm-ico"></i></div>
|
||||
<!-- /.frm-input -->
|
||||
<div class="frm-input"><input type="password" placeholder="Password" class="frm-inp" name="password" required=""><i class="fa fa-lock frm-ico"></i></div>
|
||||
|
||||
<input type="submit" class="frm-submit" name="login" value="Login">
|
||||
|
||||
<!-- /.row -->
|
||||
<a href="<?=base_url()?>home/pendaftaran" class="a-link"><i class="fa fa-archive"></i>Silakan Mendaftar.</a>
|
||||
<div class="frm-footer">E-Perpustakaan Desa Rajang.</div>
|
||||
<!-- /.footer -->
|
||||
</div>
|
||||
<!-- .inside -->
|
||||
</form>
|
||||
<!-- /.frm-single -->
|
||||
</div><!--/#single-wrapper -->
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="assets/script/html5shiv.min.js"></script>
|
||||
<script src="assets/script/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="<?=base_url()?>assets/scripts/jquery.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/scripts/modernizr.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/nprogress/nprogress.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/waves/waves.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/toastr/toastr.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>assets/plugin/toastr/toastr.css">
|
||||
|
||||
<?php if ($this->session->flashdata('warning')): ?>
|
||||
<script type="text/javascript">
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.warning("<?php echo $this->session->flashdata('warning')?>");
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
<script src="<?=base_url()?>assets/scripts/main.min.js"></script>
|
||||
</body>
|
||||
|
||||
<!-- Mirrored from demo.ninjateam.org/html/my-admin/light/page-login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Jan 2018 03:48:56 GMT -->
|
||||
</html>
|
||||
328
application/views/admin/main.php
Normal file
328
application/views/admin/main.php
Normal file
@ -0,0 +1,328 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Form Tambah Desain</h4>
|
||||
<!-- /.box-title -->
|
||||
<div class="card-content">
|
||||
<form method="post" id="myform" name="myform" enctype="multipart/form-data">
|
||||
<div class="form-group">
|
||||
<center><img id="image-preview" alt="image preview" width="50%"></center>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Upload Foto</label>
|
||||
<input type="file" name="foto_upload" id="imagesource" onchange="previewImage();" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputPassword1">Kategori</label>
|
||||
<select class="form-control" name="kategori" onchange="changeKategori();" id="kategori">
|
||||
<option value="">-Sila Pilih Kategori</option>
|
||||
<option value="1">Undangan</option>
|
||||
<option value="2">Kartu Nama</option>
|
||||
<option value="3">Spanduk</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group" id="jenis_undangan" style="display: none">
|
||||
<label for="exampleInputFile">Jenis Undangan</label>
|
||||
<select class="form-control" name="jenis_undangan" id="undangan">
|
||||
<option value="">-Sila Pilih Jenis Undangan</option>
|
||||
<option value="1">Undangan Aqiqah</option>
|
||||
<option value="2">Undangan Nikah</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Harga</label>
|
||||
<input type="text" class="form-control" placeholder="Masukkan Harga" name="harga" id="num" minlength="5" maxlength="6">
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-sm waves-effect waves-light" onclick="tambah()">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.card-content -->
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
<!-- /.col-lg-6 col-xs-12 -->
|
||||
|
||||
<div class="col-lg-8 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Form Desain Project</h4>
|
||||
<div class="tab">
|
||||
<button class="tablinks" onclick="openCity(event, 'undangantab')" id="defaultOpen">Undangan</button>
|
||||
<button class="tablinks" onclick="openCity(event, 'kartu_nama')">Kartu Nama</button>
|
||||
<button class="tablinks" onclick="openCity(event, 'sepanduk')">Spanduk</button>
|
||||
</div>
|
||||
|
||||
<div class="tabcontent" id="undangantab">
|
||||
<div class="card-content" id="undangan_tabs">
|
||||
<?php
|
||||
$nomor = 0;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,1);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
<?php
|
||||
$nomor = $nomor +4;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,1);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$nomor = $nomor +4;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,1);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
<center>
|
||||
<?php
|
||||
$jumlah = $this->madmin->jumlah_halaman(count($undangan->result()));
|
||||
$ii = 0;
|
||||
for ($i=1; $i <= $jumlah ; $i++) { ?>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light" onclick="tukar_halaman(<?=$ii?>,1)"><?=$i?></button>
|
||||
<?php $ii+=12; }
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tabcontent" id="kartu_nama">
|
||||
<div class="card-content" id="kartu_nama_tabs">
|
||||
<?php
|
||||
$nomor = 0;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,2);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
<?php
|
||||
$nomor = $nomor +4;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,2);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$nomor = $nomor +4;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,2);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
<center>
|
||||
<?php
|
||||
$jumlah = $this->madmin->jumlah_halaman(count($kartu_nama->result()));
|
||||
$ii = 0;
|
||||
for ($i=1; $i <= $jumlah ; $i++) { ?>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light" onclick="tukar_halaman(<?=$ii?>,2)"><?=$i?></button>
|
||||
<?php $ii+=12; }
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tabcontent" id="sepanduk">
|
||||
<div class="card-content" id="spanduk_tabs">
|
||||
<?php
|
||||
$nomor = 0;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,3);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
<?php
|
||||
$nomor = $nomor +4;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,3);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$nomor = $nomor +4;
|
||||
$data = $this->madmin->tampil_data_gambar($nomor,3);
|
||||
if (count($data->result())>0) { ?>
|
||||
<div class="row small-spacing">
|
||||
|
||||
<?php foreach ($data->result() as $key => $value):
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-lg-3 col-md-6 col-xs-12">
|
||||
<center>
|
||||
<img src="<?=base_url($keterangan->img)?>">
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs <br>Upload : <?=$value->tanggal_upload?></p>
|
||||
<a href="<?=base_url()?>admin/detail/<?=$value->no?>"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Detail</button></a><br><br>
|
||||
</center>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
<center>
|
||||
<?php
|
||||
$jumlah = $this->madmin->jumlah_halaman(count($spanduk->result()));
|
||||
$ii = 0;
|
||||
for ($i=1; $i <= $jumlah ; $i++) { ?>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light" onclick="tukar_halaman(<?=$ii?>,3)"><?=$i?></button>
|
||||
<?php $ii+=12; }
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
90
application/views/admin/main_menu.php
Normal file
90
application/views/admin/main_menu.php
Normal file
@ -0,0 +1,90 @@
|
||||
<div class="main-menu">
|
||||
<header class="header">
|
||||
<a href="index-2.html" class="logo"><img src="<?=base_url()?>logo.png" width="50" height="50">Desain Grafis</a>
|
||||
<!-- <button type="button" class="button-close fa fa-times js__menu_close"></button> -->
|
||||
<div class="user">
|
||||
<a href="#" class="avatar"><img src="<?=base_url()?>logo.png" alt="" width="50" height="50"></a>
|
||||
<h4><a href="profile.html">Admin</a></h4>
|
||||
<!-- <h5 class="position">Administrator</h5> -->
|
||||
<!-- /.name -->
|
||||
|
||||
<!-- /.control-wrap -->
|
||||
</div>
|
||||
<!-- /.user -->
|
||||
</header>
|
||||
<!-- /.header -->
|
||||
<div class="content">
|
||||
|
||||
<div class="navigation">
|
||||
<h5 class="title">Menu</h5>
|
||||
<!-- /.title -->
|
||||
<ul class="menu js__accordion">
|
||||
|
||||
|
||||
<li <?php if ($this->uri->segment(2) == '' or $this->uri->segment(2) == 'detail') { echo 'class="current"'; } ?>>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin"><i class="menu-icon mdi mdi-view-dashboard"></i><span>Halaman Utama</span></a>
|
||||
</li>
|
||||
|
||||
|
||||
<!-- <li>
|
||||
<a class="waves-effect" href="index-2.html"><i class="menu-icon mdi mdi-desktop-mac"></i><span>ADMIN</span></a>
|
||||
</li> -->
|
||||
|
||||
<li <?php if ($this->uri->segment(2) == 'daftar_tunggu') { echo 'class="current"'; } ?>>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin/daftar_tunggu"><i class="menu-icon fa fa-check-square-o"></i><span>Daftar Tunggu Pembeli</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li <?php if ($this->uri->segment(2) == 'proses_pembuatan') { echo 'class="current"'; } ?>>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin/proses_pembuatan"><i class="menu-icon fa fa-child"></i><span>Proses Pembuatan Pesanan</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li <?php if ($this->uri->segment(2) == 'daftar_pengembalian') { echo 'class="current"'; } ?>>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin/daftar_pengembalian"><i class="menu-icon fa fa-book"></i><span>Daftar Pengembalian</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li <?php if ($this->uri->segment(2) == 'daftar_pembelian') { echo 'class="current"'; } ?>>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin/daftar_pembelian"><i class="menu-icon mdi mdi-book-open"></i><span>Daftar Pesanan Selesai</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li <?php if ($this->uri->segment(2) == 'laporan') { echo 'class="current"'; } ?>>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin/laporan"><i class="menu-icon mdi mdi-file-document"></i><span>Laporan Penjualan</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li <?php if ($this->uri->segment(2) == 'daftar_pembeli') { echo 'class="current"'; } ?>>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin/daftar_pembeli"><i class="menu-icon mdi mdi-format-list-numbers"></i><span>Daftar Pembeli</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li <?php if ($this->uri->segment(2) == 'rekening') { echo 'class="current"'; } ?>>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin/rekening"><i class="menu-icon mdi mdi-home-variant"></i><span>Rekening Bank</a>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a class="waves-effect" href="<?=base_url()?>admin/logout"><i class="menu-icon mdi mdi-logout"></i><span>Logout</span></a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
 <br> 
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
<!-- /.menu js__accordion -->
|
||||
|
||||
<!-- /.menu js__accordion -->
|
||||
</div>
|
||||
<!-- /.navigation -->
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
41
application/views/admin/menu/daftar_pembeli.php
Normal file
41
application/views/admin/menu/daftar_pembeli.php
Normal file
@ -0,0 +1,41 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Daftar Pembeli</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Email</th>
|
||||
<th>No Telepon</th>
|
||||
<th>Alamat</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i =1; foreach ($data_pembeli->result() as $key => $value):
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$i?></td>
|
||||
<td><?=$value->nama?></td>
|
||||
<td><?=$value->email?></td>
|
||||
<td><?=$value->no_telpon?></td>
|
||||
<td><?=$value->alamat?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/daftar_pembeli/<?=$value->id?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach ?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
137
application/views/admin/menu/daftar_pembeli_detail.php
Normal file
137
application/views/admin/menu/daftar_pembeli_detail.php
Normal file
@ -0,0 +1,137 @@
|
||||
<div class="row small-spacing">
|
||||
<?php foreach ($data_pembeli->result() as $key => $value); ?>
|
||||
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Detail Pembeli</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nama</label>
|
||||
<input type="text" class="form-control" value="<?=$value->nama?>" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Email</label>
|
||||
<input type="text" class="form-control" value="<?=$value->email?>" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">No Telepom</label>
|
||||
<input type="text" class="form-control" value="<?=$value->no_telpon?>" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">No Telepom</label>
|
||||
<textarea class="form-control" disabled="" style="resize: none;"><?=$value->alamat?></textarea>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<a href="<?=base_url()?>admin/daftar_pembeli"><button type="button" class="btn btn-primary btn-sm waves-effect waves-light">Kembali Ke Halaman Daftar Pembeli</button></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Daftar Pembelian</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal Pembelian</th>
|
||||
<th>Kode Produk</th>
|
||||
<th>Harga</th>
|
||||
<th>Status</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i =1; foreach ($data_pembelian->result() as $key => $value):
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$cek_produk = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
|
||||
if ($value->desain == 0) {
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "UA".$value1->no;
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "UN".$value1->no;
|
||||
}
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "KN".$value1->no;
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$kategori = "SP".$value1->no;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "UA / Desain sendiri";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "UN / Desain Sendiri";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "KN / Desain Sendiri";
|
||||
}elseif ($value->kategori == 3) {
|
||||
$kategori = "SP / Desain Sendiri";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' =>$value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key2 => $value2) ;
|
||||
|
||||
if ($value->desain == 0) {
|
||||
if ($value1->kategori != 3) {
|
||||
$jumlah_harga = ($ket_pembelian->jenis_kertas + $ket_produk->harga) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = (($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500) + $ket_produk->harga) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = (($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500)) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_transaksi = $this->madmin->tampil_data_where('tb_transaksi',array('no' => $value->id_transaksi));
|
||||
foreach ($cek_transaksi->result() as $key3 => $value3) ;
|
||||
$status_transaksi = $value3->ket_admin;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$i?></td>
|
||||
<td><?=$value->waktu_pembelian?></td>
|
||||
<td><?=$kategori?></td>
|
||||
<td>Rp <?=number_format($jumlah_harga)?> / <?=number_format($ket_pembelian->jumlah_kertas)?> pcs </td>
|
||||
<td><?=$status_transaksi?></td>
|
||||
<td align="center">
|
||||
<?php if ($value->id_transaksi == 1 or $value->id_transaksi == 2): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_tunggu/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 3 or $value->id_transaksi == 4 or $value->id_transaksi == 5 or $value->id_transaksi == 6 or $value->id_transaksi == 7): ?>
|
||||
<a href="<?=base_url()?>admin/prose_pembuatan/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 8 or $value->id_transaksi == 9 or $value->id_transaksi == 10 or $value->id_transaksi == 11 ): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_pengembalian/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach ?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
64
application/views/admin/menu/daftar_pembelian.php
Normal file
64
application/views/admin/menu/daftar_pembelian.php
Normal file
@ -0,0 +1,64 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Daftar Pesanan Selesai</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Bulan</th>
|
||||
<th>Tahun</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $array = null; foreach ($data_pembelian->result() as $key => $value){
|
||||
$tanggal = date('m-Y', strtotime($value->waktu_pembelian));
|
||||
$i = 0;
|
||||
if ($array == null) {
|
||||
$array = array(array('tanggalnya' => $tanggal));
|
||||
}else{
|
||||
// if (condition) {
|
||||
// # code...
|
||||
// }
|
||||
// $array = array_merge($array,array(array('tanggalnya' => $tanggal)));
|
||||
foreach ($array as $key => $value) {
|
||||
if ($value['tanggalnya'] == $tanggal) {
|
||||
$i = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
$array = array_merge(array(array('tanggalnya' => $tanggal)),$array);
|
||||
}
|
||||
}}
|
||||
|
||||
foreach ($array as $key => $value) {
|
||||
// print_r($value);
|
||||
$ini = explode("-",$value['tanggalnya']);
|
||||
$bulan = $this->madmin->cari_nama_bulan($ini[0]);
|
||||
$no = $key+1;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$bulan?></td>
|
||||
<td><?=$ini[1]?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/daftar_pembelian/tanggalnya/<?=$ini[0]?>/<?=$ini[1]?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Daftar Tunggu Bulan <?=$ini[0]?>, Tahun <?=$ini[1]?>"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
113
application/views/admin/menu/daftar_pembelian1.php
Normal file
113
application/views/admin/menu/daftar_pembelian1.php
Normal file
@ -0,0 +1,113 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Daftar Pesanan Selesai Bulan <?=$this->uri->segment(4)?>, Tahun <?=$this->uri->segment(5)?></h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal Pembelian</th>
|
||||
<th>Kode Produk</th>
|
||||
<th>Nama</th>
|
||||
<th>Harga</th>
|
||||
<th>Status</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i =1; foreach ($data_pembelian->result() as $key => $value):
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$cek_produk = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
// foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
// $ket_produk = json_decode($value1->keterangan);
|
||||
|
||||
if ($value->desain == 0) {
|
||||
foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "UA".$value1->no;
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "UN".$value1->no;
|
||||
}
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "KN".$value1->no;
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$kategori = "SP".$value1->no;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "UA / Desain sendiri";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "UN / Desain Sendiri";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "KN / Desain Sendiri";
|
||||
}elseif ($value->kategori == 3) {
|
||||
$kategori = "SP / Desain Sendiri";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' =>$value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key2 => $value2) ;
|
||||
|
||||
if ($value->desain == 0) {
|
||||
if ($value1->kategori != 3) {
|
||||
$jumlah_harga = ($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + $ket_produk->harga + substr($value2->no_telpon, -3));
|
||||
//($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas ) + $ket_produk->harga + substr($data_pembeli['no_telpon'], -3)
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = $ket_pembelian->lebar * $ket_pembelian->panjang * 12500 * $ket_pembelian->jumlah_kertas + $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
//$ket_pembelian->lebar * $ket_pembelian->panjang * 12500 * $ket_pembelian->jumlah_kertas + $ket_produk->harga + substr($data_pembeli['no_telpon'], -3)
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = (($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500)) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_transaksi = $this->madmin->tampil_data_where('tb_transaksi',array('no' => $value->id_transaksi));
|
||||
foreach ($cek_transaksi->result() as $key3 => $value3) ;
|
||||
$status_transaksi = $value3->ket_admin;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$i?></td>
|
||||
<td><?=$value->waktu_pembelian?></td>
|
||||
<td><?=$kategori?></td>
|
||||
<td><?=$value2->nama?></td>
|
||||
<td>Rp <?=number_format($jumlah_harga)?> / <?=number_format($ket_pembelian->jumlah_kertas)?> pcs </td>
|
||||
<td><?=$status_transaksi?></td>
|
||||
<td align="center">
|
||||
<?php if ($value->id_transaksi == 1 or $value->id_transaksi == 2): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_tunggu/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 3 or $value->id_transaksi == 4 or $value->id_transaksi == 5 or $value->id_transaksi == 6 or $value->id_transaksi == 7): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_pembelian/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 8 or $value->id_transaksi == 9 or $value->id_transaksi == 10 or $value->id_transaksi == 11 ): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_pengembalian/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach ?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
64
application/views/admin/menu/daftar_pengembalian.php
Normal file
64
application/views/admin/menu/daftar_pengembalian.php
Normal file
@ -0,0 +1,64 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Daftar Pengembalian</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Bulan</th>
|
||||
<th>Tahun</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $array = null; foreach ($data_pengembalian->result() as $key => $value){
|
||||
$tanggal = date('m-Y', strtotime($value->waktu_pembelian));
|
||||
$i = 0;
|
||||
if ($array == null) {
|
||||
$array = array(array('tanggalnya' => $tanggal));
|
||||
}else{
|
||||
// if (condition) {
|
||||
// # code...
|
||||
// }
|
||||
// $array = array_merge($array,array(array('tanggalnya' => $tanggal)));
|
||||
foreach ($array as $key => $value) {
|
||||
if ($value['tanggalnya'] == $tanggal) {
|
||||
$i = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
$array = array_merge(array(array('tanggalnya' => $tanggal)),$array);
|
||||
}
|
||||
}}
|
||||
|
||||
foreach ($array as $key => $value) {
|
||||
// print_r($value);
|
||||
$ini = explode("-",$value['tanggalnya']);
|
||||
$bulan = $this->madmin->cari_nama_bulan($ini[0]);
|
||||
$no = $key+1;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$bulan?></td>
|
||||
<td><?=$ini[1]?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/daftar_pengembalian/tanggalnya/<?=$ini[0]?>/<?=$ini[1]?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Daftar Tunggu Bulan <?=$ini[0]?>, Tahun <?=$ini[1]?>"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
98
application/views/admin/menu/daftar_pengembalian1.php
Normal file
98
application/views/admin/menu/daftar_pengembalian1.php
Normal file
@ -0,0 +1,98 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Daftar Pengembalian</h4>
|
||||
<div class="card-content" style="overflow-x: auto;">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Waktu Penerimaan</th>
|
||||
<th>Kode Produk</th>
|
||||
<th>Nama</th>
|
||||
<th>Harga</th>
|
||||
<th>Status</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($data_pengembalian->result() as $key => $value):
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$cek_produk = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
// foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
// $ket_produk = json_decode($value1->keterangan);
|
||||
|
||||
if ($value->desain == 0) {
|
||||
foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "UA".$value1->no;
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "UN".$value1->no;
|
||||
}
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "KN".$value1->no;
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$kategori = "SP".$value1->no;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "UA / Desain Sendiri";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "UN / Desain Sendiri";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "KN / Desain Sendiri";
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$kategori = "SP / Desain Sendiri";
|
||||
}
|
||||
}
|
||||
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' =>$value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key2 => $value2) ;
|
||||
|
||||
if ($value->desain == 0) {
|
||||
if ($value1->kategori != 3) {
|
||||
$jumlah_harga = ($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas ) + $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
//($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas ) + $ket_produk->harga + substr($data_pembeli['no_telpon'], -3)
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = $ket_pembelian->lebar * $ket_pembelian->panjang * 12500 * $ket_pembelian->jumlah_kertas + $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
//$ket_pembelian->lebar * $ket_pembelian->panjang * 12500 * $ket_pembelian->jumlah_kertas + $ket_produk->harga + substr($data_pembeli['no_telpon'], -3)
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas* $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3) ;
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = ($ket_pembelian->lebar * $ket_pembelian->panjang * 12500) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_transaksi = $this->madmin->tampil_data_where('tb_transaksi',array('no' => $value->id_transaksi));
|
||||
foreach ($cek_transaksi->result() as $key3 => $value3) ;
|
||||
$status_transaksi = $value3->ket_admin;
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?=$value->waktu_penerimaan?></td>
|
||||
<td><?=$kategori?></td>
|
||||
<td><?=$value2->nama?></td>
|
||||
<td>Rp <?=number_format($jumlah_harga)?> / <?=number_format($ket_pembelian->jumlah_kertas)?> pcs </td>
|
||||
<td><?=$status_transaksi?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/daftar_pengembalian/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
559
application/views/admin/menu/daftar_pengembalian_proses.php
Normal file
559
application/views/admin/menu/daftar_pengembalian_proses.php
Normal file
@ -0,0 +1,559 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<?php
|
||||
foreach ($data_pembelian->result() as $key => $value) ;
|
||||
foreach ($data_produk->result() as $key1 => $value1);
|
||||
foreach ($data_pembeli->result() as $key2 => $value2) ;
|
||||
foreach ($bukti_pembayaran->result() as $key3 => $value3) ;
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "Undangan Aqiqah";
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "Undangan Nikah";
|
||||
}
|
||||
if ($ket_pembelian->jenis_kertas == '4000') {
|
||||
$jenis_kertas = "Art Paper | Rp. 4,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '3000') {
|
||||
$jenis_kertas = "Jasmine | Rp. 3,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Cartoon | Rp. 1,000 / 1 pcs";
|
||||
}
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "Kartu Nama";
|
||||
if ($ket_pembelian->jenis_kertas == '25000') {
|
||||
$jenis_kertas = "PVC | Rp. 25,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Photopaper | Rp. 1,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '500') {
|
||||
$jenis_kertas = "Cartoon | Rp. 500 / 1 pcs";
|
||||
}
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jenis_kertas = "Vinyl | 1m * 1m = Rp. 25,000";
|
||||
$kategori = "Spanduk";
|
||||
}
|
||||
|
||||
if ($value1->kategori != 3) {
|
||||
$jumlah_harga = ($ket_pembelian->jenis_kertas + $ket_produk->harga) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = (($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500) + $ket_produk->harga) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
|
||||
?>
|
||||
<h4 class="box-title">Detail Pembelian</h4>
|
||||
<?php if ($value1->kategori == 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>"></center>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->panjang?> m x <?=$ket_pembelian->lebar?> m">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Pembayaran</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="Rp <?=number_format($jumlah_harga)?> ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif ($value1->kategori != 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($ket_produk->img)?>"></center>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<?php
|
||||
if ($value1->kategori == 1) { ?>
|
||||
<input class="form-control" disabled="" value="15.3 cm X 20.3 cm">
|
||||
<?php
|
||||
}elseif ($value1->kategori == 2) { ?>
|
||||
<input class="form-control" disabled="" value="5.3 cm X 8.8 cm">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Detail Desain</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<?php
|
||||
$dir = 'images/pembelian/foto_upload_user/'.$this->uri->segment(3).'/';
|
||||
if( is_dir($dir) === true ){ ?>
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php
|
||||
$files1 = glob($dir.'*');
|
||||
foreach($files1 as $file){ // iterate files
|
||||
if(is_file($file)) ?>
|
||||
<a style="display: inline;" class="example-image-link" href="<?=base_url().$file?>" data-lightbox="example-set" ><img style="display: inline;" class="example-image" src="<?=base_url().$file?>" width="100px" height="100px" alt=""/></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php if ($value1->kategori == 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tema</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->tema?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->tanggal != ''){ echo $ket_pembelian->tanggal;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->waktu != ''){ echo $ket_pembelian->waktu;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->alamat_data != ''){ echo $ket_pembelian->alamat_data;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">No Telepon</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->no_telpon != ''){ echo $ket_pembelian->no_telpon;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Email / Media Sosial</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->media_sosial != ''){ echo $ket_pembelian->media_sosial;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value1->kategori == 1 and $ket_produk->undangan == 2): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Pertama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_pertama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_nama_pertama != ''){ echo $ket_pembelian->ket_nama_pertama;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Kedua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_kedua?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_nama_kedua != ''){ echo $ket_pembelian->ket_nama_kedua;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<?php
|
||||
$date=DateTime::createFromFormat('Y-m-d', $ket_pembelian->tanggal);
|
||||
$tanggal=$date->format('d-m-Y');
|
||||
|
||||
?>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$tanggal?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Akad</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->akad?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Resepsi</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->resepsi?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua Pertama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu_pertama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu_pertama != ''){ echo $ket_pembelian->ket_ortu_pertama;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua Kedua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu_kedua?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu_kedua != ''){ echo $ket_pembelian->ket_ortu_kedua;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Keluarga Mengundang</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->nama_keluarga_mengundang != ''){ echo $ket_pembelian->nama_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_keluarga_mengundang != ''){ echo $ket_pembelian->ket_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value1->kategori == 1 and $ket_produk->undangan == 1): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Anak</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_anak?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->ket_anak?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<?php
|
||||
$date=DateTime::createFromFormat('Y-m-d', $ket_pembelian->tanggal);
|
||||
$tanggal=$date->format('d-m-Y');
|
||||
|
||||
?>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$tanggal?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->waktu?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu != ''){ echo $ket_pembelian->ket_ortu;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Keluarga Mengundang</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->nama_keluarga_mengundang != ''){ echo $ket_pembelian->nama_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_keluarga_mengundang != ''){ echo $ket_pembelian->ket_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value1->kategori == 2): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">No Telepon</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->no_telpon != ''){ echo $ket_pembelian->no_telpon;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->alamat != ''){ echo $ket_pembelian->alamat;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Media Sosial</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->media_sosial != ''){ echo $ket_pembelian->media_sosial;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($value->id_transaksi > 7): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Komentar</h4>
|
||||
<?php
|
||||
$cek_komentar = $this->madmin->tampil_data_where('tb_komen',array('no' => $value->id_produk));
|
||||
|
||||
// print_r($value2->id)
|
||||
?>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<?php if (count($cek_komentar->result())>0){
|
||||
foreach ($cek_komentar->result() as $key11 => $value11) ;
|
||||
$komen = json_decode($value11->komen);
|
||||
$ada = 0;
|
||||
foreach ($komen as $key12 => $value12) {
|
||||
if ($value12->id_pembeli == $value2->id) {
|
||||
$komentarnya = $value12->komen;
|
||||
$ada = 1;
|
||||
// print_r($komentarnya);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($ada == 0) {?>
|
||||
<center><b><h4>Pembeli Belum Memberikan Komentar</h4></b></center>
|
||||
<?php
|
||||
}else{ ?>
|
||||
<center><b><i><h4>"<?=$komentarnya?>"</h4></b></i></center>
|
||||
<?php
|
||||
}
|
||||
} else{?>
|
||||
<center><b><h4>Pembeli Belum Memberikan Komentar</h4></b></center>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
$ket_pengembalian = json_decode($value3->foto_pengembalian);
|
||||
|
||||
// print_r($ket_pengembalian);
|
||||
?>
|
||||
|
||||
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Pengembalian</h4>
|
||||
<div class="card-content">
|
||||
<div>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<?php $i = 1; foreach ($ket_pengembalian->foto as $key5 => $value5):
|
||||
if ($i == 1) {
|
||||
$style = "";
|
||||
}else{
|
||||
$style = 'style="display: none"';
|
||||
}
|
||||
?>
|
||||
<a <?=$style?> class="example-image-link" href="<?=base_url($value5->img)?>" data-lightbox="example-set" ><img class="example-image" src="<?=base_url($value5->img)?>" alt=""/></a>
|
||||
<?php $i ++; endforeach ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3">Jumlah Rusak</label>
|
||||
<input type="email" class="form-control" id="inputEmail3" value="<?=$ket_pengembalian->jumlah_rusak?>" disabled="">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3">Keterangan Pengembalian</label>
|
||||
<textarea class="form-control" id="inp-type-5" disabled="" style="resize: none;"><?=$ket_pengembalian->keterangan?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php if ($value->id_transaksi == 8): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_pengembalian/konfirmasi_pengembalian/<?=$this->uri->segment(3)?>"><button type="button" class="btn btn-info waves-effect waves-light">Konfirmasi Pengembalian</button></a><br><br>
|
||||
<button type="button" class="btn btn-danger waves-effect waves-light">Batalkan Pengembalian</button>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 9): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_pengembalian/cetakan_selesai/<?=$this->uri->segment(3)?>"><button type="button" class="btn btn-info waves-effect waves-light">Cetakan Selesai</button></a>
|
||||
<?php endif ?>
|
||||
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Informasi Penting</h4>
|
||||
<div class="card-content">
|
||||
<?php if ($value->id_transaksi == 8): ?>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Klik Tombol <i><b>"Konfirmasi Pengesahan"</b></i> Untuk Pengesahan Pengembalian Jika Berpuas Hati Dengan Bukti Yang Diberikan Pembeli. Jika Tidak, Bisa Klik Tombol <i><b>"Batalkan Pengesahan"</b></i> Dan Berikan Penjelasan Kepada Pembeli Kenapa Pengembalian Dibatalkan</p>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 9): ?>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Klik Tombol <b>"Cetakan Selesai</b> Jika Selesai Mencetak Pesanan Pengembalian Dan Menginformasikan Pembeli Tentang Pesanan Pengembalian Dapat Diambil Kembali</p>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 10): ?>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Pesanan Gantian Dapat Diambil, Status Pembelian Akan Berubah Jika Pembeli Telah Menerima Pesanan Gantian</p>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 11): ?>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Pesanan Gantian Telah Diterima Oleh Pembeli</p>
|
||||
<?php endif ?>
|
||||
<center><a href="<?=base_url()?>admin/daftar_pengembalian/"><button type="button" class="btn btn-info waves-effect waves-light">Kembali Ke Halaman <i>Daftar Pengembalian</i></button></a> </center>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,300 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<?php
|
||||
foreach ($data_pembelian->result() as $key => $value) ;
|
||||
foreach ($data_pembeli->result() as $key2 => $value2) ;
|
||||
foreach ($bukti_pembayaran->result() as $key3 => $value3) ;
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "Undangan Aqiqah";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "Undangan Nikah";
|
||||
}
|
||||
if ($ket_pembelian->jenis_kertas == '4000') {
|
||||
$jenis_kertas = "Art Paper | Rp. 4,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '3000') {
|
||||
$jenis_kertas = "Jasmine | Rp. 3,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Cartoon | Rp. 1,000 / 1 pcs";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "Kartu Nama";
|
||||
if ($ket_pembelian->jenis_kertas == '25000') {
|
||||
$jenis_kertas = "PVC | Rp. 25,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Photopaper | Rp. 1,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '500') {
|
||||
$jenis_kertas = "Cartoon | Rp. 500 / 1 pcs";
|
||||
}
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jenis_kertas = "Vinyl | 1m * 1m = Rp. 25,000";
|
||||
$kategori = "Spanduk";
|
||||
}
|
||||
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = (($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500)) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
|
||||
?>
|
||||
<h4 class="box-title">Detail Pembelian</h4>
|
||||
<?php if ($value->kategori == 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php foreach ($ket_pembelian->foto as $key4 => $value4): ?>
|
||||
<a class="example-image-link" href="<?=base_url($value4->img)?>" data-lightbox="example-set" ><img class="example-image" src="<?=base_url($value4->img)?>" width="15%" alt=""/></a>
|
||||
<?php endforeach ?>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->panjang?> m x <?=$ket_pembelian->lebar?> m">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Pembayaran</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="Rp <?=number_format($jumlah_harga)?> ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif ($value->kategori != 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="15,3cm x 20,3cm">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Detail Desain</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<?php
|
||||
$dir = 'images/pembelian/foto_upload_user/'.$this->uri->segment(3).'/';
|
||||
if( is_dir($dir) === true ){ ?>
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php
|
||||
$files1 = glob($dir.'*');
|
||||
foreach($files1 as $file){ // iterate files
|
||||
if(is_file($file)) ?>
|
||||
<a style="display: inline;" class="example-image-link" href="<?=base_url().$file?>" data-lightbox="example-set" ><img style="display: inline;" class="example-image" src="<?=base_url().$file?>" width="100px" height="100px" alt=""/></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if ($value->id_transaksi > 7): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Komentar</h4>
|
||||
<?php
|
||||
$cek_komentar = $this->madmin->tampil_data_where('tb_komen_desain_sendiri',array('no' => $this->uri->segment(3)));
|
||||
|
||||
// print_r($value->id_produk);
|
||||
?>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<?php if (count($cek_komentar->result())>0){
|
||||
foreach ($cek_komentar->result() as $key11 => $value11) ;
|
||||
$komen = json_decode($value11->komen);
|
||||
$ada = 0;
|
||||
foreach ($komen as $key12 => $value12) {
|
||||
if ($value12->id_pembeli == $value2->id) {
|
||||
$komentarnya = $value12->komen;
|
||||
$ada = 1;
|
||||
// print_r($komentarnya);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($ada == 0) {?>
|
||||
<center><b><h4>Pembeli Belum Memberikan Komentar</h4></b></center>
|
||||
<?php
|
||||
}else{ ?>
|
||||
<center><b><i><h4>"<?=$komentarnya?>"</h4></b></i></center>
|
||||
<?php
|
||||
}
|
||||
} else{?>
|
||||
<center><b><h4>Pembeli Belum Memberikan Komentar</h4></b></center>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
$ket_pengembalian = json_decode($value3->foto_pengembalian);
|
||||
|
||||
// print_r($ket_pengembalian);
|
||||
?>
|
||||
|
||||
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Pengembalian</h4>
|
||||
<div class="card-content">
|
||||
<div>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<?php $i = 1; foreach ($ket_pengembalian->foto as $key5 => $value5):
|
||||
if ($i == 1) {
|
||||
$style = "";
|
||||
}else{
|
||||
$style = 'style="display: none"';
|
||||
}
|
||||
?>
|
||||
<a <?=$style?> class="example-image-link" href="<?=base_url($value5->img)?>" data-lightbox="example-set" ><img class="example-image" src="<?=base_url($value5->img)?>" alt=""/></a>
|
||||
<?php $i ++; endforeach ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3">Jumlah Rusak</label>
|
||||
<input type="email" class="form-control" id="inputEmail3" value="<?=$ket_pengembalian->jumlah_rusak?>" disabled="">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3">Keterangan Pengembalian</label>
|
||||
<textarea class="form-control" id="inp-type-5" disabled="" style="resize: none;"><?=$ket_pengembalian->keterangan?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php if ($value->id_transaksi == 8): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_pengembalian/konfirmasi_pengembalian/<?=$this->uri->segment(3)?>"><button type="button" class="btn btn-info waves-effect waves-light">Konfirmasi Pengembalian</button></a><br><br>
|
||||
<button type="button" class="btn btn-danger waves-effect waves-light">Batalkan Pengembalian</button>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 9): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_pengembalian/cetakan_selesai/<?=$this->uri->segment(3)?>"><button type="button" class="btn btn-info waves-effect waves-light">Cetakan Selesai / <i>Mengirim Pesanan</i></button></a>
|
||||
<?php endif ?>
|
||||
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Informasi Penting</h4>
|
||||
<div class="card-content">
|
||||
<?php if ($value->id_transaksi == 8): ?>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Klik Tombol <i><b>"Konfirmasi Pengesahan"</b></i> Untuk Pengesahan Pengembalian Jika Berpuas Hati Dengan Bukti Yang Diberikan Pembeli. Jika Tidak, Bisa Klik Tombol <i><b>"Batalkan Pengesahan"</b></i> Dan Berikan Penjelasan Kepada Pembeli Kenapa Pengembalian Dibatalkan</p>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 9): ?>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Klik Tombol <b>"Cetakan Selesai / <i>Mengirim Pesanan"</i></b> Jika Selesai Mencetak Pesanan Pengembalian Dan Melakukan Proses Pengiriman Untuk Menginformasikan Pembeli Tentang Pesanan Pengembalian Dapat Diambil Kembali</p>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 10): ?>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Pesanan Gantian Dapat Diambil, Status Pembelian Akan Berubah Jika Pembeli Telah Menerima Pesanan Gantian</p>
|
||||
<?php endif ?>
|
||||
<?php if ($value->id_transaksi == 11): ?>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Pesanan Gantian Telah Diterima Oleh Pembeli</p>
|
||||
<?php endif ?>
|
||||
<center><a href="<?=base_url()?>admin/daftar_pengembalian/"><button type="button" class="btn btn-info waves-effect waves-light">Kembali Ke Halaman <i>Daftar Pengembalian</i></button></a> </center>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
64
application/views/admin/menu/daftar_tunggu.php
Normal file
64
application/views/admin/menu/daftar_tunggu.php
Normal file
@ -0,0 +1,64 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Daftar Tunggu</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Bulan</th>
|
||||
<th>Tahun</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $array = null; foreach ($data_pembelian->result() as $key => $value){
|
||||
$tanggal = date('m-Y', strtotime($value->waktu_pembelian));
|
||||
$i = 0;
|
||||
if ($array == null) {
|
||||
$array = array(array('tanggalnya' => $tanggal));
|
||||
}else{
|
||||
// if (condition) {
|
||||
// # code...
|
||||
// }
|
||||
// $array = array_merge($array,array(array('tanggalnya' => $tanggal)));
|
||||
foreach ($array as $key => $value) {
|
||||
if ($value['tanggalnya'] == $tanggal) {
|
||||
$i = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
$array = array_merge(array(array('tanggalnya' => $tanggal)),$array);
|
||||
}
|
||||
}}
|
||||
|
||||
foreach ($array as $key => $value) {
|
||||
// print_r($value);
|
||||
$ini = explode("-",$value['tanggalnya']);
|
||||
$bulan = $this->madmin->cari_nama_bulan($ini[0]);
|
||||
$no = $key+1;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$bulan?></td>
|
||||
<td><?=$ini[1]?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/daftar_tunggu/tanggalnya/<?=$ini[0]?>/<?=$ini[1]?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Daftar Tunggu Bulan <?=$ini[0]?>, Tahun <?=$ini[1]?>"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
109
application/views/admin/menu/daftar_tunggu1.php
Normal file
109
application/views/admin/menu/daftar_tunggu1.php
Normal file
@ -0,0 +1,109 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<?php //print_r(count($data_pembelian->result())) ?>
|
||||
<div class="box-content card" id="printJS-form">
|
||||
<h4 class="box-title">Form Daftar Tunggu Bulan <?=$this->uri->segment(4)?>, Tahun <?=$this->uri->segment(5)?></h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal Pembelian</th>
|
||||
<th>Nama</th>
|
||||
<th>Kode Produk</th>
|
||||
<th>Harga</th>
|
||||
<th>Status</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($data_pembelian->result() as $key => $value):
|
||||
$no = $key +1;
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$cek_produk = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
|
||||
|
||||
if ($value->desain == 0) {
|
||||
foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "UA".$value1->no;
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "UN".$value1->no;
|
||||
}
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "KN".$value1->no;
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$kategori = "SP".$value1->no;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "UA / Desain sendiri";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "UN / Desain Sendiri";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "KN / Desain Sendiri";
|
||||
}elseif ($value->kategori == 3) {
|
||||
$kategori = "SP / Desain Sendiri";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' =>$value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key2 => $value2) ;
|
||||
|
||||
if ($value->desain == 0) {
|
||||
if ($value1->kategori != 3) {
|
||||
$jumlah_harga = ($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas )+ $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = ($ket_pembelian->lebar * $ket_pembelian->panjang * 12500 * $ket_pembelian->jumlah_kertas) + $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = ($ket_pembelian->lebar * $ket_pembelian->panjang * 12500) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_transaksi = $this->madmin->tampil_data_where('tb_transaksi',array('no' => $value->id_transaksi));
|
||||
foreach ($cek_transaksi->result() as $key3 => $value3) ;
|
||||
$status_transaksi = $value3->ket_admin;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$value->waktu_pembelian?></td>
|
||||
<?php
|
||||
|
||||
?>
|
||||
<td><?=$value2->nama?></td>
|
||||
<td><?=$kategori?></td>
|
||||
<td>Rp <?=number_format($jumlah_harga)?> / <?=number_format($ket_pembelian->jumlah_kertas)?> pcs </td>
|
||||
<td>
|
||||
<!-- <button type="button" class="btn btn-danger btn-circle btn-xs waves-effect waves-light" title="Belum Mengirim Bukti Pembayaran"><i class="ico fa fa-close"></i></button> -->
|
||||
<?=$status_transaksi?>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/daftar_tunggu/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- <div class="form-group" style="text-align: center">
|
||||
<button type="submit" class="btn btn-info waves-effect waves-light">Print Laporan Daftar Tunggu Bulan <?=$this->uri->segment(4)?>, Tahun <?=$this->uri->segment(5)?></button>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
555
application/views/admin/menu/daftar_tunggu_proses.php
Normal file
555
application/views/admin/menu/daftar_tunggu_proses.php
Normal file
@ -0,0 +1,555 @@
|
||||
<div class="row small-spacing" id="printJS-form">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<?php
|
||||
foreach ($data_pembelian->result() as $key => $value) ;
|
||||
foreach ($data_produk->result() as $key1 => $value1);
|
||||
foreach ($data_pembeli->result() as $key2 => $value2) ;
|
||||
foreach ($bukti_pembayaran->result() as $key3 => $value3) ;
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "Undangan Aqiqah";
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "Undangan Nikah";
|
||||
}
|
||||
if ($ket_pembelian->jenis_kertas == '4000') {
|
||||
$jenis_kertas = "Art Paper | Rp. 4,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '3000') {
|
||||
$jenis_kertas = "Jasmine | Rp. 3,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Cartoon | Rp. 1,000 / 1 pcs";
|
||||
}
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "Kartu Nama";
|
||||
if ($ket_pembelian->jenis_kertas == '25000') {
|
||||
$jenis_kertas = "PVC | Rp. 25,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Photopaper | Rp. 1,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '500') {
|
||||
$jenis_kertas = "Cartoon | Rp. 500 / 1 pcs";
|
||||
}
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jenis_kertas = "Vinyl | 1m * 1m = Rp. 25,000";
|
||||
$kategori = "Spanduk";
|
||||
}
|
||||
|
||||
?>
|
||||
<h4 class="box-title">Detail Pembelian</h4>
|
||||
<?php if ($value1->kategori == 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($ket_produk->img)?>"></center>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->panjang?> m x <?=$ket_pembelian->lebar?> m">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($value1->kategori != 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($ket_produk->img)?>"></center>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<?php
|
||||
if ($value1->kategori == 1) { ?>
|
||||
<input class="form-control" disabled="" value="15.3 cm X 20.3 cm">
|
||||
<?php
|
||||
}elseif ($value1->kategori == 2) { ?>
|
||||
<input class="form-control" disabled="" value="5.3 cm X 8.8 cm">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Detail Desain</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<?php
|
||||
$dir = 'images/pembelian/foto_upload_user/'.$this->uri->segment(3).'/';
|
||||
if( is_dir($dir) === true ){ ?>
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php
|
||||
$files1 = glob($dir.'*');
|
||||
foreach($files1 as $file){ // iterate files
|
||||
if(is_file($file)) ?>
|
||||
<a style="display: inline;" class="example-image-link" href="<?=base_url().$file?>" data-lightbox="example-set" ><img style="display: inline;" class="example-image" src="<?=base_url().$file?>" width="100px" height="100px" alt=""/></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ($value1->kategori == 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tema</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->tema?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->tanggal != ''){ echo $ket_pembelian->tanggal;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->waktu != ''){ echo $ket_pembelian->waktu;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->alamat_data != ''){ echo $ket_pembelian->alamat_data;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">No Telepon</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->no_telpon != ''){ echo $ket_pembelian->no_telpon;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Email / Media Sosial</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->media_sosial != ''){ echo $ket_pembelian->media_sosial;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php elseif ($value1->kategori == 1 and $ket_produk->undangan == 2): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Pertama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_pertama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_nama_pertama != ''){ echo $ket_pembelian->ket_nama_pertama;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Kedua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_kedua?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_nama_kedua != ''){ echo $ket_pembelian->ket_nama_kedua;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<?php
|
||||
$date=DateTime::createFromFormat('Y-m-d', $ket_pembelian->tanggal);
|
||||
$tanggal=$date->format('d-m-Y');
|
||||
|
||||
?>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$tanggal?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Akad</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->akad?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Resepsi</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->resepsi?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua Pertama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu_pertama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu_pertama != ''){ echo $ket_pembelian->ket_ortu_pertama;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua Kedua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu_kedua?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu_kedua != ''){ echo $ket_pembelian->ket_ortu_kedua;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Keluarga Mengundang</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->nama_keluarga_mengundang != ''){ echo $ket_pembelian->nama_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_keluarga_mengundang != ''){ echo $ket_pembelian->ket_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php elseif ($value1->kategori == 1 and $ket_produk->undangan == 1): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Anak</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_anak?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->ket_anak?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<?php
|
||||
$date=DateTime::createFromFormat('Y-m-d', $ket_pembelian->tanggal);
|
||||
$tanggal=$date->format('d-m-Y');
|
||||
|
||||
?>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$tanggal?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->waktu?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu != ''){ echo $ket_pembelian->ket_ortu;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Keluarga Mengundang</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->nama_keluarga_mengundang != ''){ echo $ket_pembelian->nama_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_keluarga_mengundang != ''){ echo $ket_pembelian->ket_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php elseif ($value1->kategori == 2): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">No Telepon</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->no_telpon != ''){ echo $ket_pembelian->no_telpon;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->alamat != ''){ echo $ket_pembelian->alamat;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Media Sosial</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->media_sosial != ''){ echo $ket_pembelian->media_sosial;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (count($bukti_pembayaran->result())>0): ?>
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Bukti Pembayaran</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_transaksi)?>"></center>
|
||||
</div>
|
||||
|
||||
<?php if ($value1->kategori != 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<!-- <input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->jenis_kertas + $ket_produk->harga) * $ket_pembelian->jumlah_kertas)?>" disabled=""> -->
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas )+ $ket_produk->harga )?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kode Unik</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=substr($value2->no_telpon, -3)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas )+ $ket_produk->harga + substr($value2->no_telpon, -3))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($value1->kategori == 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<!-- <input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500) + $ket_produk->harga)?>" disabled=""> -->
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->lebar * $ket_pembelian->panjang * 12500 * $ket_pembelian->jumlah_kertas) + $ket_produk->harga)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kode Unik</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=substr($value2->no_telpon, -3)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->lebar * $ket_pembelian->panjang * 12500 * $ket_pembelian->jumlah_kertas) + $ket_produk->harga + substr($value2->no_telpon, -3))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<a href="<?=base_url('admin/daftar_tunggu/konfirmasi/'.$this->uri->segment(3))?>"><button type="button" class="btn btn-info waves-effect waves-light">Konfirmasi Pesanan</button></a> 
|
||||
<button type="button" class="btn btn-warning waves-effect waves-light" >Batalkan Pesanan</button>
|
||||
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if (count($bukti_pembayaran->result()) == 0): ?>
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Pembeli Belum Mengirim Bukti Pembayaran</h4>
|
||||
<div class="form-horizontal card-content">
|
||||
<?php if ($value1->kategori != 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<!-- <input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->jenis_kertas + $ket_produk->harga) * $ket_pembelian->jumlah_kertas)?>" disabled=""> -->
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas) + $ket_produk->harga)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kode Unik</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=substr($value2->no_telpon, -3)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas) + $ket_produk->harga + substr($value2->no_telpon, -3))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($value1->kategori == 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<!-- <input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500) + $ket_produk->harga)?>" disabled=""> -->
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format($ket_pembelian->lebar * $ket_pembelian->panjang * 25000 * $ket_pembelian->jumlah_kertas + $ket_produk->harga)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kode Unik</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=substr($value2->no_telpon, -3)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format($ket_pembelian->lebar * $ket_pembelian->panjang * 25000 * $ket_pembelian->jumlah_kertas + $ket_produk->harga + substr($value2->no_telpon, -3))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<a href="<?=base_url("admin/daftar_tunggu")?>"><button type="submit" class="btn btn-info waves-effect waves-light">Kembali Ke Halaman Daftar Tunggu</button></a>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
@ -0,0 +1,284 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<?php
|
||||
foreach ($data_pembelian->result() as $key => $value) ;
|
||||
foreach ($data_pembeli->result() as $key2 => $value2) ;
|
||||
foreach ($bukti_pembayaran->result() as $key3 => $value3) ;
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "Undangan Aqiqah";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "Undangan Nikah";
|
||||
}
|
||||
if ($ket_pembelian->jenis_kertas == '4000') {
|
||||
$jenis_kertas = "Art Paper | Rp. 4,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '3000') {
|
||||
$jenis_kertas = "Jasmine | Rp. 3,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Cartoon | Rp. 1,000 / 1 pcs";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "Kartu Nama";
|
||||
if ($ket_pembelian->jenis_kertas == '25000') {
|
||||
$jenis_kertas = "PVC | Rp. 25,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Photopaper | Rp. 1,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '500') {
|
||||
$jenis_kertas = "Cartoon | Rp. 500 / 1 pcs";
|
||||
}
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jenis_kertas = "Vinyl | 1m * 1m = Rp. 25,000";
|
||||
$kategori = "Spanduk";
|
||||
}
|
||||
|
||||
?>
|
||||
<h4 class="box-title">Detail Pembelian</h4>
|
||||
<?php if ($value->kategori == 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->panjang?> m x <?=$ket_pembelian->lebar?> m">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif ($value->kategori != 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="5,3cm x 8,8cm">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Detail Desain</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<?php
|
||||
$dir = 'images/pembelian/foto_upload_user/'.$this->uri->segment(3).'/';
|
||||
if( is_dir($dir) === true ){ ?>
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php
|
||||
$files1 = glob($dir.'*');
|
||||
foreach($files1 as $file){ // iterate files
|
||||
if(is_file($file)) ?>
|
||||
<a style="display: inline;" class="example-image-link" href="<?=base_url().$file?>" data-lightbox="example-set" ><img style="display: inline;" class="example-image" src="<?=base_url().$file?>" width="100px" height="100px" alt=""/></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
<?php if (count($bukti_pembayaran->result())>0): ?>
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Bukti Pembayaran</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_transaksi)?>"></center>
|
||||
</div>
|
||||
|
||||
<?php if ($value->kategori != 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kode Unik</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=substr($value2->no_telpon, -3)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($value->kategori == 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kode Unik</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=substr($value2->no_telpon, -3)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500) + substr($value2->no_telpon, -3))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<a href="<?=base_url('admin/daftar_tunggu/konfirmasi/'.$this->uri->segment(3))?>"><button type="button" class="btn btn-info waves-effect waves-light">Konfirmasi Pesanan</button></a> 
|
||||
<button type="button" class="btn btn-warning waves-effect waves-light">Batalkan Pesanan</button>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if (count($bukti_pembayaran->result()) == 0): ?>
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Pembeli Belum Mengirim Bukti Pembayaran</h4>
|
||||
<div class="form-horizontal card-content">
|
||||
<?php if ($value->kategori != 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kode Unik</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=substr($value2->no_telpon, -3)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($value->kategori == 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kode Unik</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=substr($value2->no_telpon, -3)?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Harga</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="inputEmail3" value="Rp. <?=number_format(($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500) + substr($value2->no_telpon, -3))?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<a href="<?=base_url("admin/daftar_tunggu")?>"><button type="submit" class="btn btn-info waves-effect waves-light">Kembali Ke Halaman Daftar Tunggu</button></a>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
153
application/views/admin/menu/detail.php
Normal file
153
application/views/admin/menu/detail.php
Normal file
@ -0,0 +1,153 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Form Detail Desain</h4>
|
||||
<!-- /.box-title -->
|
||||
<?php foreach ($data->result() as $key => $value);
|
||||
$ket = json_decode($value->keterangan);
|
||||
$kategori = $this->madmin->tampil_data_where('tb_kategori',array('no' => $value->kategori));
|
||||
foreach ($kategori->result() as $key1 => $value1);
|
||||
$kategori = $value1->nama;
|
||||
?>
|
||||
<div class="card-content">
|
||||
<form method="post" id="myform" name="myform">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($ket->img)?>"></center>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- <div class="form-group">
|
||||
<label for="exampleInputEmail1">Upload Foto</label>
|
||||
<input type="file" id="imagesource" onchange="previewImage();" class="form-control" name="foto_upload">
|
||||
</div> -->
|
||||
<div class="form-group">
|
||||
<label for="exampleInputPassword1">Kategori</label>
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
|
||||
<?php if ($value->kategori == 1):
|
||||
$undangan = $ket->undangan;
|
||||
if ($undangan == 1) {
|
||||
$undangan = 'Undangan Aqiqah';
|
||||
}elseif ($undangan == 2) {
|
||||
$undangan = 'Undangan Nikah';
|
||||
}
|
||||
?>
|
||||
<div class="form-group" id="jenis_undangan">
|
||||
<label for="exampleInputFile">Jenis Undangan</label>
|
||||
<input type="text" class="form-control" value="<?=$undangan?>" disabled="">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Harga</label>
|
||||
<input type="text" class="form-control" value="<?=number_format($ket->harga)?>" disabled="">
|
||||
</div>
|
||||
<center><a href="<?=base_url()?>admin/detail/<?=$this->uri->segment(3)?>/edit"><button type="button" class="btn btn-warning btn-sm waves-effect waves-light">Edit Infromasi</button></a><br><br>
|
||||
<input type="hidden" name="id" value="<?=$this->uri->segment(3)?>">
|
||||
<input type="submit" name="hapus" style="display: none" id="hapus_button">
|
||||
<button type="button" class="btn btn-danger btn-sm waves-effect waves-light" onclick="hapus_nya()">Hapus Desain</button></center>
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.card-content -->
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
<!-- /.col-lg-6 col-xs-12 -->
|
||||
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">List Pembelian</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tanggal</th>
|
||||
<th>Pembeli</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php
|
||||
$cek_pembelian = $this->madmin->tampil_data_where('tb_pembelian',array('id_produk' => $this->uri->segment(3)));
|
||||
|
||||
// print_r(count($cek_pembelian->result()));
|
||||
?>
|
||||
<tbody>
|
||||
<?php if (count($cek_pembelian->result())>0): ?>
|
||||
<?php foreach ($cek_pembelian->result() as $key => $value):
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' => $value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key1 => $value1) ;
|
||||
$cek_status = $this->madmin->tampil_data_where('tb_transaksi',array('no' => $value->id_transaksi));
|
||||
foreach ($cek_status->result() as $key2 => $value2) ;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$value->waktu_pembelian?></td>
|
||||
<td><?=$value1->nama?></td>
|
||||
<td><?=$value2->ket_admin?></td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
<?php endif ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Komentar</h4>
|
||||
<?php
|
||||
$cek_komentar = $this->madmin->tampil_data_where('tb_komen',array('no' => $this->uri->segment(3)));
|
||||
|
||||
//
|
||||
//
|
||||
// print_r(count($cek_komentar->result()));
|
||||
?>
|
||||
<div class="card-content">
|
||||
<?php if (count($cek_komentar->result())>0){
|
||||
foreach ($cek_komentar->result() as $key3 => $value3) ;
|
||||
$komen = json_decode($value3->komen);
|
||||
foreach ($komen as $key4 => $value4) {
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' => $value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key5 => $value5) ;
|
||||
?>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1"><?=$value5->nama?></label>
|
||||
<p>"<?=$value4->komen?>"</p>
|
||||
</div>
|
||||
<hr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php }else{ ?>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Belum Ada Komentar</label>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
|
||||
</div>
|
||||
<div class="card-content" style="text-align: center;">
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light">1</button>
|
||||
<!-- <button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light">2</button>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light">3</button>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light">4</button> -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
154
application/views/admin/menu/detail_edit.php
Normal file
154
application/views/admin/menu/detail_edit.php
Normal file
@ -0,0 +1,154 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Form Detail Desain</h4>
|
||||
<!-- /.box-title -->
|
||||
<?php foreach ($data->result() as $key => $value);
|
||||
$ket = json_decode($value->keterangan);
|
||||
$kategori = $this->madmin->tampil_data_where('tb_kategori',array('no' => $value->kategori));
|
||||
foreach ($kategori->result() as $key1 => $value1);
|
||||
$kategori = $value1->nama;
|
||||
?>
|
||||
<div class="card-content">
|
||||
<form method="post" id="myform" name="myform" enctype="multipart/form-data">
|
||||
<div class="form-group" id="sini_foto_lama_div">
|
||||
<center><img src="<?=base_url($ket->img)?>" title="Foto Sekarang"></center>
|
||||
</div>
|
||||
|
||||
<div id="sini_upload_foto_div" style="display: none">
|
||||
<div class="form-group">
|
||||
<center><img id="image-preview" alt="image preview" width="50%" style="display: none"></center>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Upload Foto</label>
|
||||
<input type="file" name="foto_upload" id="imagesource11" onchange="previewImage();" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<input type="radio" name="foto_pilih" value="tetap" style="display: inline;" checked="" onclick="klik_foto(1)"><label class="text-black" for="email">Kekalkan Foto</label>    
|
||||
<input type="radio" name="foto_pilih" value="upload_baru" style="display: inline;" onclick="klik_foto(2)"><label class="text-black" for="email">Upload Foto Baru</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputPassword1">Kategori</label>
|
||||
<select class="form-control" name="kategori" onchange="changeKategori();" id="kategori">
|
||||
<option value="">-Sila Pilih Kategori</option>
|
||||
<?php foreach ($categori->result() as $key2 => $value2): ?>
|
||||
<option value="<?=$value2->no?>"<?php if ($value->kategori == $value2->no) {echo "selected";} ?>><?=$value2->nama?></option>
|
||||
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<?php if ($value->kategori == 1){
|
||||
$undangan = $ket->undangan;
|
||||
if ($undangan == 1) {
|
||||
$aqiqah = 'selected';
|
||||
$nikah = '';
|
||||
}elseif ($undangan == 2) {
|
||||
$aqiqah = '';
|
||||
$nikah = 'selected';
|
||||
}
|
||||
?>
|
||||
<div class="form-group" id="jenis_undangan">
|
||||
<label for="exampleInputFile">Jenis Undangan</label>
|
||||
<select class="form-control" name="jenis_undangan" id="undangan" required="">
|
||||
<option value="">-Sila Pilih Jenis Undangan</option>
|
||||
<option value="1" <?=$aqiqah?>>Undangan Aqiqah</option>
|
||||
<option value="2" <?=$nikah?>>Undangan Nikah</option>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Harga</label>
|
||||
<input type="text" class="form-control" name="harga" value="<?=number_format($ket->harga)?>" id="num" minlength="5" maxlength="6" required="">
|
||||
</div>
|
||||
<center><button type="button" class="btn btn-success btn-sm waves-effect waves-light" onclick="edit()">Simpan Perubahan</button><br><br>
|
||||
<input type="submit" id="ini_submit" style="display: none" name="edit_nya">
|
||||
<a href="<?=base_url()?>admin/detail/<?=$this->uri->segment(3)?>"><button type="button" class="btn btn-danger btn-sm waves-effect waves-light">Batal</button></a></center>
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.card-content -->
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
<!-- /.col-lg-6 col-xs-12 -->
|
||||
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">List Pembelian</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tanggal</th>
|
||||
<th>Pembeli</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>20-02-2020</td>
|
||||
<td>Kicap Karan</td>
|
||||
<td>Telah Dihantar</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>21-02-2020</td>
|
||||
<td>AAT</td>
|
||||
<td>Belum Mengirim Bukti Pembayaran</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Komentar</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nama 1</label>
|
||||
<p>"Komentar nama 1"</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nama 2</label>
|
||||
<p>"Komentar nama 2"</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nama 3</label>
|
||||
<p>"Komentar nama 3"</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nama 4</label>
|
||||
<p>"Komentar nama 4"</p>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="card-content" style="text-align: center;">
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light">1</button>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light">2</button>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light">3</button>
|
||||
<button type="button" class="btn btn-primary btn-circle btn-xs waves-effect waves-light">4</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
64
application/views/admin/menu/laporan.php
Normal file
64
application/views/admin/menu/laporan.php
Normal file
@ -0,0 +1,64 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Daftar Tunggu</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Bulan</th>
|
||||
<th>Tahun</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $array = null; foreach ($data_pembelian->result() as $key => $value){
|
||||
$tanggal = date('m-Y', strtotime($value->waktu_pembelian));
|
||||
$i = 0;
|
||||
if ($array == null) {
|
||||
$array = array(array('tanggalnya' => $tanggal));
|
||||
}else{
|
||||
// if (condition) {
|
||||
// # code...
|
||||
// }
|
||||
// $array = array_merge($array,array(array('tanggalnya' => $tanggal)));
|
||||
foreach ($array as $key => $value) {
|
||||
if ($value['tanggalnya'] == $tanggal) {
|
||||
$i = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
$array = array_merge(array(array('tanggalnya' => $tanggal)),$array);
|
||||
}
|
||||
}}
|
||||
|
||||
foreach ($array as $key => $value) {
|
||||
// print_r($value);
|
||||
$ini = explode("-",$value['tanggalnya']);
|
||||
$bulan = $this->madmin->cari_nama_bulan($ini[0]);
|
||||
$no = $key+1;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$bulan?></td>
|
||||
<td><?=$ini[1]?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/laporan/tanggalnya/<?=$ini[0]?>/<?=$ini[1]?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Daftar Tunggu Bulan <?=$ini[0]?>, Tahun <?=$ini[1]?>"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
164
application/views/admin/menu/laporan1.php
Normal file
164
application/views/admin/menu/laporan1.php
Normal file
@ -0,0 +1,164 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<?php //print_r(count($data_pembelian->result())) ?>
|
||||
<div class="box-content card" id="printJS-form">
|
||||
<h4 class="box-title">Form Laporan Penjualan Bulan <?=$this->uri->segment(4)?>, Tahun <?=$this->uri->segment(5)?></h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal Pembelian</th>
|
||||
<th>Nama Pembeli</th>
|
||||
<th>Kode Produk</th>
|
||||
<th>Jumlah Pembelian</th>
|
||||
<!-- <th>Status</th> -->
|
||||
<th>Harga</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $undangan = 0; $kartu_nama = 0 ; $spanduk = 0 ; $undangan_jual = 0; $kartu_nama_jual = 0; $spanduk_jual = 0;
|
||||
foreach ($data_pembelian->result() as $key => $value):
|
||||
$no = $key +1;
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$cek_produk = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
|
||||
|
||||
if ($value->desain == 0) {
|
||||
foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "UA".$value1->no;
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "UN".$value1->no;
|
||||
}
|
||||
$undangan = $undangan + 1;
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "KN".$value1->no;
|
||||
$kartu_nama = $kartu_nama + 1;
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$kategori = "SP".$value1->no;
|
||||
$spanduk = $spanduk + 1;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "UA / Desain sendiri";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "UN / Desain Sendiri";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "KN / Desain Sendiri";
|
||||
}elseif ($value->kategori == 3) {
|
||||
$kategori = "SP / Desain Sendiri";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' =>$value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key2 => $value2) ;
|
||||
|
||||
if ($value->desain == 0) {
|
||||
if ($value1->kategori != 3) {
|
||||
$jumlah_harga = ($ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas )+ $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
if ($value1->kategori == 1) {
|
||||
$undangan_jual = $undangan_jual + $jumlah_harga;
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kartu_nama_jual = $kartu_nama_jual + $jumlah_harga;
|
||||
}
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = ($ket_pembelian->lebar * $ket_pembelian->panjang * 25000 * $ket_pembelian->jumlah_kertas) + $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
$spanduk_jual = $spanduk_jual + $jumlah_harga;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = (($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500)) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cek_transaksi = $this->madmin->tampil_data_where('tb_transaksi',array('no' => $value->id_transaksi));
|
||||
foreach ($cek_transaksi->result() as $key3 => $value3) ;
|
||||
$status_transaksi = $value3->ket_admin;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$value->waktu_pembelian?></td>
|
||||
<?php
|
||||
|
||||
?>
|
||||
<td><?=$value2->nama?></td>
|
||||
<td><?=$kategori?></td>
|
||||
<td><?=$ket_pembelian->jumlah_kertas?></td>
|
||||
<!-- <td>
|
||||
|
||||
<?=$status_transaksi?>
|
||||
</td> -->
|
||||
<td>Rp <?=number_format($jumlah_harga)?></td>
|
||||
</tr>
|
||||
<?php endforeach ;$total = $undangan_jual + $kartu_nama_jual + $spanduk_jual;?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group ">
|
||||
<div class="col-sm-2"></div>
|
||||
<label for="inputEmail3" class="col-sm-3 control-label" style="text-align: right; ">Jumlah Penjualan Undangan :</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="email" class="form-control" value="<?=$undangan?> / Rp. <?=number_format($undangan_jual)?>" disabled="">
|
||||
</div>
|
||||
<div class="col-sm-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group ">
|
||||
<div class="col-sm-2"></div>
|
||||
<label for="inputEmail3" class="col-sm-3 control-label" style="text-align: right">Jumlah Penjualan Kartu Nama :</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="email" class="form-control" value="<?=$kartu_nama?> / Rp. <?=number_format($kartu_nama_jual)?>" disabled="">
|
||||
</div>
|
||||
<div class="col-sm-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group ">
|
||||
<div class="col-sm-2"></div>
|
||||
<label for="inputEmail3" class="col-sm-3 control-label" style="text-align: right">Jumlah Penjualan Spanduk :</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="email" class="form-control" value="<?=$spanduk?> / Rp. <?=number_format($spanduk_jual)?>" disabled="">
|
||||
</div>
|
||||
<div class="col-sm-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group ">
|
||||
<div class="col-sm-2"></div>
|
||||
<label for="inputEmail3" class="col-sm-3 control-label" style="text-align: right">Total Penjualan :</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="email" class="form-control" value="Rp . <?=number_format($total)?>" disabled="">
|
||||
</div>
|
||||
<div class="col-sm-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="text-align: center">
|
||||
<button type="button" class="btn btn-success btn-xs waves-effect waves-light" title="Cetak Laporan Bulan <?=$this->uri->segment(4)?>, Tahun <?=$this->uri->segment(5)?>" onclick="PrintElem()">Cetak Laporan Bulan <?=$this->uri->segment(4)?>, Tahun <?=$this->uri->segment(5)?></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
64
application/views/admin/menu/proses_pembuatan.php
Normal file
64
application/views/admin/menu/proses_pembuatan.php
Normal file
@ -0,0 +1,64 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Proses Pembuatan</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Bulan</th>
|
||||
<th>Tahun</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $array = null; foreach ($data_pembelian->result() as $key => $value){
|
||||
$tanggal = date('m-Y', strtotime($value->waktu_pembelian));
|
||||
$i = 0;
|
||||
if ($array == null) {
|
||||
$array = array(array('tanggalnya' => $tanggal));
|
||||
}else{
|
||||
// if (condition) {
|
||||
// # code...
|
||||
// }
|
||||
// $array = array_merge($array,array(array('tanggalnya' => $tanggal)));
|
||||
foreach ($array as $key => $value) {
|
||||
if ($value['tanggalnya'] == $tanggal) {
|
||||
$i = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
$array = array_merge(array(array('tanggalnya' => $tanggal)),$array);
|
||||
}
|
||||
}}
|
||||
|
||||
foreach ($array as $key => $value) {
|
||||
// print_r($value);
|
||||
$ini = explode("-",$value['tanggalnya']);
|
||||
$bulan = $this->madmin->cari_nama_bulan($ini[0]);
|
||||
$no = $key+1;
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$bulan?></td>
|
||||
<td><?=$ini[1]?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan/tanggalnya/<?=$ini[0]?>/<?=$ini[1]?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Daftar Tunggu Bulan <?=$ini[0]?>, Tahun <?=$ini[1]?>"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
97
application/views/admin/menu/proses_pembuatan1.php
Normal file
97
application/views/admin/menu/proses_pembuatan1.php
Normal file
@ -0,0 +1,97 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Form Proses Pembuatan</h4>
|
||||
<div class="card-content" style="overflow-x: auto">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>No</td>
|
||||
<th>Tanggal Pembelian</th>
|
||||
<th>Kode Produk</th>
|
||||
<th>Nama</th>
|
||||
<th>Harga</th>
|
||||
<th>Status</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($data_pembelian->result() as $key => $value):
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$cek_produk = $this->madmin->tampil_data_where('tb_produk',array('no' => $value->id_produk));
|
||||
foreach ($cek_produk->result() as $key1 => $value1) ;
|
||||
|
||||
|
||||
if ($value->desain == 0) {
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "UA".$value1->no;
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "UN".$value1->no;
|
||||
}
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "KN".$value1->no;
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$kategori = "SP".$value1->no;
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "UA / Desain sendiri";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "UN / Desain Sendiri";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "KN / Desain Sendiri";
|
||||
}elseif ($value->kategori == 3) {
|
||||
$kategori = "SP / Desain Sendiri";
|
||||
}
|
||||
}
|
||||
|
||||
$cek_pembeli = $this->madmin->tampil_data_where('tb_pembeli',array('id' =>$value->id_pembeli));
|
||||
foreach ($cek_pembeli->result() as $key2 => $value2) ;
|
||||
|
||||
if ($value->desain == 0) {
|
||||
if ($value1->kategori != 3) {
|
||||
// $jumlah_harga = ($ket_pembelian->jenis_kertas + $ket_produk->harga) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = $ket_pembelian->lebar * $ket_pembelian->panjang * 12500 * $ket_pembelian->jumlah_kertas + $ket_produk->harga + substr($value2->no_telpon, -3);
|
||||
}
|
||||
}elseif ($value->desain == 1) {
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3) ;
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = ($ket_pembelian->lebar * $ket_pembelian->panjang * 12500) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$cek_transaksi = $this->madmin->tampil_data_where('tb_transaksi',array('no' => $value->id_transaksi));
|
||||
foreach ($cek_transaksi->result() as $key3 => $value3) ;
|
||||
$status_transaksi = $value3->ket_admin;
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?=$value->no?></td>
|
||||
<td><?=$value->waktu_pembelian?></td>
|
||||
<td><?=$kategori?></td>
|
||||
<td><?=$value2->nama?></td>
|
||||
<td>Rp <?=number_format($jumlah_harga)?> / <?=number_format($ket_pembelian->jumlah_kertas)?> pcs </td>
|
||||
<td align="center"><?=$status_transaksi?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Lihat Infromasi"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
585
application/views/admin/menu/proses_pembuatan_proses.php
Normal file
585
application/views/admin/menu/proses_pembuatan_proses.php
Normal file
@ -0,0 +1,585 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<?php
|
||||
foreach ($data_pembelian->result() as $key => $value) ;
|
||||
foreach ($data_produk->result() as $key1 => $value1);
|
||||
foreach ($data_pembeli->result() as $key2 => $value2) ;
|
||||
foreach ($bukti_pembayaran->result() as $key3 => $value3) ;
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
$ket_produk = json_decode($value1->keterangan);
|
||||
if ($value1->kategori == 1) {
|
||||
if ($ket_produk->undangan == 1) {
|
||||
$kategori = "Undangan Aqiqah";
|
||||
}elseif ($ket_produk->undangan == 2) {
|
||||
$kategori = "Undangan Nikah";
|
||||
}
|
||||
if ($ket_pembelian->jenis_kertas == '4000') {
|
||||
$jenis_kertas = "Art Paper | Rp. 4,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '3000') {
|
||||
$jenis_kertas = "Jasmine | Rp. 3,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Cartoon | Rp. 1,000 / 1 pcs";
|
||||
}
|
||||
}elseif ($value1->kategori == 2) {
|
||||
$kategori = "Kartu Nama";
|
||||
if ($ket_pembelian->jenis_kertas == '25000') {
|
||||
$jenis_kertas = "PVC | Rp. 25,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Photopaper | Rp. 1,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '500') {
|
||||
$jenis_kertas = "Cartoon | Rp. 500 / 1 pcs";
|
||||
}
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jenis_kertas = "Vinyl | 1m * 1m = Rp. 25,000";
|
||||
$kategori = "Spanduk";
|
||||
}
|
||||
|
||||
if ($value1->kategori != 3) {
|
||||
$jumlah_harga = ($ket_pembelian->jenis_kertas + $ket_produk->harga) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value1->kategori == 3) {
|
||||
$jumlah_harga = (($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500) + $ket_produk->harga) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
|
||||
?>
|
||||
<h4 class="box-title">Detail Pembelian</h4>
|
||||
<?php if ($value1->kategori == 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($ket_produk->img)?>"></center>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->panjang?> m x <?=$ket_pembelian->lebar?> m">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Pembayaran</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="Rp <?=number_format($jumlah_harga)?> ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($value1->kategori != 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($ket_produk->img)?>"></center>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<?php
|
||||
if ($value1->kategori == 1) { ?>
|
||||
<input class="form-control" disabled="" value="15.3 cm X 20.3 cm">
|
||||
<?php
|
||||
}elseif ($value1->kategori == 2) { ?>
|
||||
<input class="form-control" disabled="" value="5.3 cm X 8.8 cm">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<?php if ($value->id_transaksi == 7): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Komentar</h4>
|
||||
<?php
|
||||
$cek_komentar = $this->madmin->tampil_data_where('tb_komen',array('no' => $value->id_produk));
|
||||
|
||||
// print_r($value2->id)
|
||||
?>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<?php if (count($cek_komentar->result())>0){
|
||||
foreach ($cek_komentar->result() as $key11 => $value11) ;
|
||||
$komen = json_decode($value11->komen);
|
||||
$ada = 0;
|
||||
foreach ($komen as $key12 => $value12) {
|
||||
if ($value12->id_pembeli == $value2->id) {
|
||||
$komentarnya = $value12->komen;
|
||||
$ada = 1;
|
||||
// print_r($komentarnya);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($ada == 0) {?>
|
||||
<center><b><h4>Pembeli Belum Memberikan Komentar</h4></b></center>
|
||||
<?php
|
||||
}else{ ?>
|
||||
<center><b><i><h4>"<?=$komentarnya?>"</h4></b></i></center>
|
||||
<?php
|
||||
}
|
||||
} else{?>
|
||||
<center><b><h4>Pembeli Belum Memberikan Komentar</h4></b></center>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Detail Desain</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<?php
|
||||
$dir = 'images/pembelian/foto_upload_user/'.$this->uri->segment(3).'/';
|
||||
if( is_dir($dir) === true ){ ?>
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php
|
||||
$files1 = glob($dir.'*');
|
||||
foreach($files1 as $file){ // iterate files
|
||||
if(is_file($file)) ?>
|
||||
<a style="display: inline;" class="example-image-link" href="<?=base_url().$file?>" data-lightbox="example-set" ><img style="display: inline;" class="example-image" src="<?=base_url().$file?>" width="100px" height="100px" alt=""/></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php if ($value1->kategori == 3): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tema</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->tema?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->tanggal != ''){ echo $ket_pembelian->tanggal;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->waktu != ''){ echo $ket_pembelian->waktu;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->alamat_data != ''){ echo $ket_pembelian->alamat_data;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">No Telepon</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->no_telpon != ''){ echo $ket_pembelian->no_telpon;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Email / Media Sosial</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->media_sosial != ''){ echo $ket_pembelian->media_sosial;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php elseif ($value1->kategori == 1 and $ket_produk->undangan == 2): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Pertama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_pertama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_nama_pertama != ''){ echo $ket_pembelian->ket_nama_pertama;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Kedua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_kedua?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_nama_kedua != ''){ echo $ket_pembelian->ket_nama_kedua;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<?php
|
||||
$date=DateTime::createFromFormat('Y-m-d', $ket_pembelian->tanggal);
|
||||
$tanggal=$date->format('d-m-Y');
|
||||
|
||||
?>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$tanggal?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Akad</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->akad?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Resepsi</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->resepsi?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua Pertama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu_pertama?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu_pertama != ''){ echo $ket_pembelian->ket_ortu_pertama;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua Kedua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu_kedua?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu_kedua != ''){ echo $ket_pembelian->ket_ortu_kedua;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Keluarga Mengundang</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->nama_keluarga_mengundang != ''){ echo $ket_pembelian->nama_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_keluarga_mengundang != ''){ echo $ket_pembelian->ket_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php elseif ($value1->kategori == 1 and $ket_produk->undangan == 1): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Anak</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_anak?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->ket_anak?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Tanggal</label>
|
||||
<?php
|
||||
$date=DateTime::createFromFormat('Y-m-d', $ket_pembelian->tanggal);
|
||||
$tanggal=$date->format('d-m-Y');
|
||||
|
||||
?>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$tanggal?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->waktu?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Orang Tua</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama_ortu?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_ortu != ''){ echo $ket_pembelian->ket_ortu;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama Keluarga Mengundang</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->nama_keluarga_mengundang != ''){ echo $ket_pembelian->nama_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->ket_keluarga_mengundang != ''){ echo $ket_pembelian->ket_keluarga_mengundang;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php elseif ($value1->kategori == 2): ?>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Nama</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->nama?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">No Telepon</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->no_telpon != ''){ echo $ket_pembelian->no_telpon;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->alamat != ''){ echo $ket_pembelian->alamat;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Media Sosial</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?php if($ket_pembelian->media_sosial != ''){ echo $ket_pembelian->media_sosial;}else{ echo "-";} ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Penambahan Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" id="inp-type-5" placeholder="Write your meassage" disabled style="resize: none;"><?php if($ket_pembelian->penambahan_ket != ''){ echo $ket_pembelian->penambahan_ket;}else{ echo "-";} ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
<?php if ($value->id_transaksi == 3): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Upload Desain Selesai</h4>
|
||||
<div class="card-content">
|
||||
<form method="post" enctype="multipart/form-data" id="ini_formnya">
|
||||
<div class="form-group">
|
||||
<center><img id="image-preview" alt="image preview"/></center>
|
||||
</div>
|
||||
<input type="hidden" name="hahaha" value="hehehe" id="hahaha">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Upload Foto</label>
|
||||
<input type="file" name="foto_upload" id="imagesource" onchange="previewImage();" class="form-control">
|
||||
</div>
|
||||
</form>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<button type="button" class="btn btn-info waves-effect waves-light" onclick="upload()">Upload Foto Desain</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value->id_transaksi == 4): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Menunggu Pengesahan Dari Pembeli</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>" /></center>
|
||||
</div>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Menunggu Pengesahan Penerimaan Desain Dari Pembeli. Akan Ada Notifikasi Jika Pembeli Menerima Atau Ingin Menambah Desain . <br>Mohon Bersabar. </p>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Proses Pembuatan Pesanan"</i></button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value->id_transaksi == 5): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Desain Diterima</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>" /></center>
|
||||
</div>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Desain Diterima Oleh Pembeli. Silakan Cetak Desain <i><b><?=$kategori?></b></i> Yang Dibeli Oleh Pembeli. Kemudian Menekan Tombol <i><b>"Cetakan Selesai"</b></i> Untuk Pembeli Mengambil Pesanannya </p>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan/cetakan_selesai/<?=$this->uri->segment(3)?>"><button type="button" class="btn btn-primary waves-effect waves-light">Cetakan Selesai</button></a><br><br>
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Proses Pembuatan Pesanan"</i></button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value->id_transaksi == 6): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Pesanan Desain Sedang Dihantar</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>" /></center>
|
||||
</div>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Pembeli Dalam Perjalanan Untuk Mengambil Pesanannya, Pembeli Akan Menekan Tombol <i><b>"Pesanan Diterima" Jika Telah Menerima Pesanan. Mohon Bersabar</b></i></p>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Proses Pembuatan Pesanan"</i></button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value->id_transaksi == 7):
|
||||
$date=DateTime::createFromFormat('Y-m-d H:i:s', $value->waktu_penerimaan );
|
||||
$tanggal_penerimaan=$date->format('d-m-Y');
|
||||
|
||||
if ($date->format('H') > 12) {
|
||||
$jam = number_format($date->format('H')) -12;
|
||||
$jam_penerimaan = $date->format($jam.':i').' PM';
|
||||
}else{
|
||||
$jam_penerimaan = $date->format('H:i').' AM';
|
||||
}
|
||||
?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Pesanan Telah Diterima</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>" /></center>
|
||||
</div>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Pesanan Desain Telah Diterima Oleh Pembeli Pada Tanggal <b><?=$tanggal_penerimaan?></b> Jam <b><?=$jam_penerimaan?> .</b> </p>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<?php if ($this->uri->segment(2) == 'proses_pembuatan'): ?>
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Proses Pembuatan Pesanan"</i></button></a>
|
||||
<?php elseif ($this->uri->segment(2) == 'daftar_pembelian'): ?>
|
||||
<a href="<?=base_url()?>admin/daftar_pembelian"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Daftar Pesanan Selesai"</i></button></a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,316 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<?php
|
||||
foreach ($data_pembelian->result() as $key => $value) ;
|
||||
foreach ($data_pembeli->result() as $key2 => $value2) ;
|
||||
foreach ($bukti_pembayaran->result() as $key3 => $value3) ;
|
||||
$ket_pembelian = json_decode($value->ket);
|
||||
if ($value->kategori == 1) {
|
||||
if ($ket_pembelian->undangan == 1) {
|
||||
$kategori = "Undangan Aqiqah";
|
||||
}elseif ($ket_pembelian->undangan == 2) {
|
||||
$kategori = "Undangan Nikah";
|
||||
}
|
||||
if ($ket_pembelian->jenis_kertas == '4000') {
|
||||
$jenis_kertas = "Art Paper | Rp. 4,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '3000') {
|
||||
$jenis_kertas = "Jasmine | Rp. 3,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Cartoon | Rp. 1,000 / 1 pcs";
|
||||
}
|
||||
}elseif ($value->kategori == 2) {
|
||||
$kategori = "Kartu Nama";
|
||||
if ($ket_pembelian->jenis_kertas == '25000') {
|
||||
$jenis_kertas = "PVC | Rp. 25,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '1000') {
|
||||
$jenis_kertas = "Photopaper | Rp. 1,000 / 1 pcs";
|
||||
}elseif ($ket_pembelian->jenis_kertas == '500') {
|
||||
$jenis_kertas = "Cartoon | Rp. 500 / 1 pcs";
|
||||
}
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jenis_kertas = "Vinyl | 1m * 1m = Rp. 25,000";
|
||||
$kategori = "Spanduk";
|
||||
}
|
||||
|
||||
if ($value->kategori != 3) {
|
||||
$jumlah_harga = $ket_pembelian->jenis_kertas * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}elseif ($value->kategori == 3) {
|
||||
$jumlah_harga = ($ket_pembelian->lebar * 12500) + ($ket_pembelian->panjang * 12500) * $ket_pembelian->jumlah_kertas + substr($value2->no_telpon, -3);
|
||||
}
|
||||
|
||||
?>
|
||||
<h4 class="box-title">Detail Pembelian</h4>
|
||||
<?php if ($value->kategori == 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->panjang?> m x <?=$ket_pembelian->lebar?> m">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Total Pembayaran</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="Rp <?=number_format($jumlah_harga)?> ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($value->kategori != 3): ?>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Kategori</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" value="<?=$kategori?>" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Waktu Pembelian</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$value->waktu_pembelian?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jenis Kertas</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$jenis_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Ukuran </label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="15,3cm x 20,3cm">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Jumlah</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" disabled="" value="<?=$ket_pembelian->jumlah_kertas?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">Alamat Pengiriman</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" disabled><?=$ket_pembelian->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
|
||||
<?php if ($value->id_transaksi == 7): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Komentar</h4>
|
||||
<?php
|
||||
$cek_komentar = $this->madmin->tampil_data_where('tb_komen_desain_sendiri',array('no' => $this->uri->segment(3)));
|
||||
|
||||
// print_r($value2->id)
|
||||
?>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<?php if (count($cek_komentar->result())>0){
|
||||
foreach ($cek_komentar->result() as $key11 => $value11) ;
|
||||
$komen = json_decode($value11->komen);
|
||||
$ada = 0;
|
||||
foreach ($komen as $key12 => $value12) {
|
||||
if ($value12->id_pembeli == $value2->id) {
|
||||
$komentarnya = $value12->komen;
|
||||
$ada = 1;
|
||||
// print_r($komentarnya);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($ada == 0) {?>
|
||||
<center><b><h4>Pembeli Belum Memberikan Komentar</h4></b></center>
|
||||
<?php
|
||||
}else{ ?>
|
||||
<center><b><i><h4>"<?=$komentarnya?>"</h4></b></i></center>
|
||||
<?php
|
||||
}
|
||||
} else{?>
|
||||
<center><b><h4>Pembeli Belum Memberikan Komentar</h4></b></center>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Detail Desain</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-horizontal">
|
||||
<?php
|
||||
$dir = 'images/pembelian/foto_upload_user/'.$this->uri->segment(3).'/';
|
||||
if( is_dir($dir) === true ){ ?>
|
||||
<div class="form-group">
|
||||
<center>
|
||||
<?php
|
||||
$files1 = glob($dir.'*');
|
||||
foreach($files1 as $file){ // iterate files
|
||||
if(is_file($file)) ?>
|
||||
<a style="display: inline;" class="example-image-link" href="<?=base_url().$file?>" data-lightbox="example-set" ><img style="display: inline;" class="example-image" src="<?=base_url().$file?>" width="100px" height="100px" alt=""/></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</center>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
<?php if ($value->id_transaksi == 3): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Upload Desain Selesai</h4>
|
||||
<div class="card-content">
|
||||
<form method="post" enctype="multipart/form-data" id="ini_formnya">
|
||||
<div class="form-group">
|
||||
<center><img id="image-preview" alt="image preview"/></center>
|
||||
</div>
|
||||
<input type="hidden" name="hahaha" value="hehehe" id="hahaha">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Upload Foto</label>
|
||||
<input type="file" name="foto_upload" id="imagesource" onchange="previewImage();" class="form-control">
|
||||
</div>
|
||||
</form>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<button type="button" class="btn btn-info waves-effect waves-light" onclick="upload()">Upload Foto Desain</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value->id_transaksi == 4): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Menunggu Pengesahan Dari Pembeli</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>" /></center>
|
||||
</div>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Menunggu Pengesahan Penerimaan Desain Dari Pembeli. Akan Ada Notifikasi Jika Pembeli Menerima Atau Ingin Menambah Desain . <br>Mohon Bersabar. </p>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Proses Pembuatan Pesanan"</i></button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value->id_transaksi == 5): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Desain Diterima</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>" /></center>
|
||||
</div>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Desain Diterima Oleh Pembeli. Silakan Cetak Desain <i><b><?=$kategori?></b></i> Yang Dibeli Oleh Pembeli. Kemudian Menekan Tombol <i><b>"Cetakan Selesai / Silahkan Ambil Pesanan Anda"</b></i> Untuk Pembeli Mengambil Pesanan Anda </p>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan/cetakan_selesai/<?=$this->uri->segment(3)?>"><button type="button" class="btn btn-primary waves-effect waves-light">Cetakan Selesai <i>"Pembeli Akan Mengambil Pesanannya"</i></button></a><br><br>
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Proses Pembuatan Pesanan"</i></button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value->id_transaksi == 6): ?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Pesanan Desain Sedang Dihantar</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>" /></center>
|
||||
</div>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Silahkan Ambil Pesanan Anda Ditoko kami, Pembeli Akan Menekan Tombol <i><b>"Pesanan Diterima" Jika Telah Menerima Pesanan. Mohon Bersabar</b></i></p>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Proses Pembuatan Pesanan"</i></button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($value->id_transaksi == 7):
|
||||
$date=DateTime::createFromFormat('Y-m-d H:i:s', $value->waktu_penerimaan );
|
||||
$tanggal_penerimaan=$date->format('d-m-Y');
|
||||
|
||||
if ($date->format('H') > 12) {
|
||||
$jam = number_format($date->format('H')) -12;
|
||||
$jam_penerimaan = $date->format($jam.':i').' PM';
|
||||
}else{
|
||||
$jam_penerimaan = $date->format('H:i').' AM';
|
||||
}
|
||||
?>
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Pesanan Telah Diterima</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<center><img src="<?=base_url($value3->foto_desain_selesai)?>" /></center>
|
||||
</div>
|
||||
<p class="text-muted limit-width margin-bottom-20" style="text-align: justify;">Pesanan Desain Telah Diterima Oleh Pembeli Pada Tanggal <b><?=$tanggal_penerimaan?></b> Jam <b><?=$jam_penerimaan?> .</b> </p>
|
||||
<div class="form-group" style="text-align: center">
|
||||
<a href="<?=base_url()?>admin/proses_pembuatan"><button type="button" class="btn btn-success waves-effect waves-light">Kembali Ke Halaman <i>" Proses Pembuatan Pesanan"</i></button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
76
application/views/admin/menu/rekening.php
Normal file
76
application/views/admin/menu/rekening.php
Normal file
@ -0,0 +1,76 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Form Penambahan Rekening Bank</h4>
|
||||
<!-- /.box-title -->
|
||||
<div class="card-content">
|
||||
<form method="post">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputPassword1">Jenis Bank</label>
|
||||
<select class="form-control" name="jenis_bank" id="jenis_bank" required="">
|
||||
<option value="">-Silahkan Pilih Jenis Bank</option>
|
||||
<option value="Bank Mandiri">Bank Mandiri</option>
|
||||
<option value="BNI">BNI</option>
|
||||
<option value="BRI">BRI</option>
|
||||
<option value="BCA">BCA</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nama Rekening</label>
|
||||
<input type="text" class="form-control" placeholder="Masukkan Nama Pemilik Rekening" name="nama" required="">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nomor Rekening</label>
|
||||
<input type="text" class="form-control" placeholder="Masukan Nomor Rekening" name="nomor" id="nomor" required="" minlength="8" maxlength="16">
|
||||
</div>
|
||||
|
||||
<input type="submit" id="submit_form" style="display: none" name="tambah_rekening">
|
||||
<center><button type="button" class="btn btn-primary btn-sm waves-effect waves-light" onclick="tambah()">Tambah Rekening</button></center>
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.card-content -->
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
<!-- /.col-lg-6 col-xs-12 -->
|
||||
|
||||
<div class="col-lg-8 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">List Rekening Bank</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Jenis Bank</th>
|
||||
<th>Nama Rekening</th>
|
||||
<th>Nomor Rekening</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($rekening->result() as $key => $value): $no = $key + 1; ?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$value->jenis_bank?></td>
|
||||
<td><?=$value->nama_bank?></td>
|
||||
<td><?=$value->nomor_bank?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/rekening/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Edit Rekening"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
79
application/views/admin/menu/rekening_info.php
Normal file
79
application/views/admin/menu/rekening_info.php
Normal file
@ -0,0 +1,79 @@
|
||||
<div class="row small-spacing">
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">Form Edit Rekening Bank</h4>
|
||||
<!-- /.box-title -->
|
||||
<div class="card-content">
|
||||
<form method="post">
|
||||
<?php foreach ($rekening_info->result() as $key => $value) ; //print_r($value) ?>
|
||||
|
||||
<input type="hidden" name="no" value="<?=$value->no?>">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputPassword1">Jenis Bank</label>
|
||||
<select class="form-control" name="jenis_bank" id="jenis" disabled="">
|
||||
<option value="">-Silahkan Pilih Jenis Bank</option>
|
||||
<option value="Bank Mandiri" <?php if ($value->jenis_bank == "Bank Mandiri") {echo 'selected';} ?>>Bank Mandiri</option>
|
||||
<option value="BNI" <?php if ($value->jenis_bank == "BNI") {echo 'selected';} ?>>BNI</option>
|
||||
<option value="BRI" <?php if ($value->jenis_bank == "BRI") {echo 'selected';} ?>>BRI</option>
|
||||
<option value="BCA" <?php if ($value->jenis_bank == "BCA") {echo 'selected';} ?>>BCA</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nama Rekening</label>
|
||||
<input type="text" class="form-control" placeholder="Masukkan Nama Pemilik Rekening" id="nama" name="nama" value="<?=$value->nama_bank?>" disabled>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Nomor Rekening</label>
|
||||
<input type="text" class="form-control" placeholder="Masukan Nomor Rekening" name="nomor" id="nomor" minlength="8" maxlength="16" value="<?=$value->nomor_bank?>" disabled>
|
||||
</div>
|
||||
|
||||
<input type="submit" id="submit_form" style="display: none" name="edit_rekening">
|
||||
<center id="edit_button"><button type="button" class="btn btn-warning btn-sm waves-effect waves-light" onclick="edit()">Edit Rekening?</button></center>
|
||||
<center id="edit_button_true" style="display: none"><button type="button" class="btn btn-success btn-sm waves-effect waves-light" onclick="edit_true()">Edit Rekening</button>    <button type="button" class="btn btn-danger btn-sm waves-effect waves-light" onclick="cancel()">Cancel Edit</button></center>
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.card-content -->
|
||||
</div>
|
||||
<!-- /.box-content -->
|
||||
</div>
|
||||
<!-- /.col-lg-6 col-xs-12 -->
|
||||
|
||||
<div class="col-lg-8 col-xs-12">
|
||||
<div class="box-content card white">
|
||||
<h4 class="box-title">List Rekening Bank</h4>
|
||||
<div class="card-content">
|
||||
<div class="form-group">
|
||||
<table id="tabel-data" class="table table-striped table-bordered display" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Jenis Bank</th>
|
||||
<th>Nama Rekening</th>
|
||||
<th>Nomor Rekening</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($rekening->result() as $key => $value): $no = $key + 1; ?>
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$value->jenis_bank?></td>
|
||||
<td><?=$value->nama_bank?></td>
|
||||
<td><?=$value->nomor_bank?></td>
|
||||
<td align="center">
|
||||
<a href="<?=base_url()?>admin/rekening/<?=$value->no?>"><button type="button" class="btn btn-xs btn-social waves-effect waves-light btn-facebook" title="Edit Rekening"><i class="ico fa fa-file-text-o"></i></button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
867
application/views/admin/script.php
Normal file
867
application/views/admin/script.php
Normal file
@ -0,0 +1,867 @@
|
||||
<script src="<?=base_url()?>assets/scripts/jquery.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/scripts/modernizr.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/nprogress/nprogress.js"></script>
|
||||
<!-- <script src="<?=base_url()?>assets/plugin/sweet-alert/sweetalert.min.js"></script> -->
|
||||
<script src="<?=base_url()?>assets/plugin/waves/waves.min.js"></script>
|
||||
|
||||
<script src="<?=base_url()?>assets/plugin/datatables/media/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/datatables/media/js/dataTables.bootstrap.min.js"></script>
|
||||
|
||||
<script src="<?=base_url()?>print_js/print.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="<?=base_url()?>assets/plugin/toastr/toastr.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>assets/plugin/toastr/toastr.css">
|
||||
|
||||
<script src="<?php echo base_url() ?>sweet-alert/sweetalert.js"></script>
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<script type="text/javascript">
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.success("<?php echo $this->session->flashdata('success')?>");
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<script type="text/javascript">
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("<?php echo $this->session->flashdata('error')?>");
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<?php if ($this->uri->segment(2) == '' or $this->uri->segment(2) == null): ?>
|
||||
<script type="text/javascript">
|
||||
var elem = document.getElementById("num");
|
||||
|
||||
elem.addEventListener("keydown",function(event){
|
||||
var key = event.which;
|
||||
if((key<48 || key>57) && key != 8) event.preventDefault();
|
||||
});
|
||||
|
||||
elem.addEventListener("keyup",function(event){
|
||||
var value = this.value.replace(/,/g,"");
|
||||
this.dataset.currentValue=parseInt(value);
|
||||
var caret = value.length-1;
|
||||
while((caret-3)>-1)
|
||||
{
|
||||
caret -= 3;
|
||||
value = value.split('');
|
||||
value.splice(caret+1,0,",");
|
||||
value = value.join('');
|
||||
}
|
||||
this.value = value;
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function previewImage() {
|
||||
document.getElementById("image-preview").style.display = "block";
|
||||
var oFReader = new FileReader();
|
||||
oFReader.readAsDataURL(document.getElementById("imagesource").files[0]);
|
||||
|
||||
oFReader.onload = function(oFREvent) {
|
||||
document.getElementById("image-preview").src = oFREvent.target.result;
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function changeKategori() {
|
||||
var selectBox = document.getElementById("kategori");
|
||||
var selectedValue = selectBox.options[selectBox.selectedIndex].value;
|
||||
if (selectedValue == 1) {
|
||||
$("#jenis_undangan").show();
|
||||
}else{
|
||||
$("#jenis_undangan").hide();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function tambah()
|
||||
{
|
||||
|
||||
var file = document.getElementById('imagesource').files[0];
|
||||
if (document.myform.imagesource.value == "") {
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Foto Harus Dipilih");
|
||||
document.myform.imagesource.focus() ;
|
||||
}else if(file && file.size > 1800000){
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Saiz Foto Maksimal 1.5 Mb");
|
||||
document.myform.imagesource.focus() ;
|
||||
}else if( document.myform.kategori.value == "" )
|
||||
{
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Kolum Kategori Harus Dipilih");
|
||||
document.myform.kategori.focus() ;
|
||||
}else if( document.myform.kategori.value == 1 )
|
||||
{
|
||||
if (document.myform.undangan.value == "") {
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Kolum Jenis Undangan Harus Dipilih");
|
||||
document.myform.undangan.focus() ;
|
||||
}else if ($("input[name=harga]").val() == '' || $("input[name=harga]").val() == null) {
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Kolum Harga Harus Terisi");
|
||||
$("input[name=harga]").focus() ;
|
||||
}else{
|
||||
$('form#myform').submit();
|
||||
}
|
||||
}else if ($("input[name=harga]").val() == '' || $("input[name=harga]").val() == null) {
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Kolum Harga Harus Terisi");
|
||||
$("input[name=harga]").focus() ;
|
||||
}else{
|
||||
$('form#myform').submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function openCity(evt, cityName) {
|
||||
var i, tabcontent, tablinks;
|
||||
tabcontent = document.getElementsByClassName("tabcontent");
|
||||
for (i = 0; i < tabcontent.length; i++) {
|
||||
tabcontent[i].style.display = "none";
|
||||
}
|
||||
tablinks = document.getElementsByClassName("tablinks");
|
||||
for (i = 0; i < tablinks.length; i++) {
|
||||
tablinks[i].className = tablinks[i].className.replace(" active", "");
|
||||
}
|
||||
document.getElementById(cityName).style.display = "block";
|
||||
evt.currentTarget.className += " active";
|
||||
}
|
||||
|
||||
document.getElementById("defaultOpen").click();
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function tukar_halaman(a,b)
|
||||
{
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "<?=base_url()?>admin/tukar_halaman/",
|
||||
data: {no: a, kategori : b}, // appears as $_GET['id'] @ your backend side
|
||||
// dataType: "json",
|
||||
success: function(data1) {
|
||||
if (b == 1) {
|
||||
$("#undangan_tabs").html(data1);
|
||||
}else if (b == 2) {
|
||||
$("#kartu_nama_tabs").html(data1);
|
||||
}else if (b == 3) {
|
||||
$("#spanduk_tabs").html(data1);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'detail'): ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tabel-data').DataTable({
|
||||
"aLengthMenu": [[10, 20, 30 ,40, -1], [10, 20, 30, 40 ,"All"]],
|
||||
"iDisplayLength": 10,
|
||||
// "pageLength": 5,
|
||||
"searching": false,
|
||||
"paging": true,
|
||||
"ordering": true,
|
||||
"info": false,
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php if ($this->uri->segment(4) == ''): ?>
|
||||
<script type="text/javascript">
|
||||
function hapus_nya(){
|
||||
// console.log('hehehe');
|
||||
swal({
|
||||
title: "Yakin Ingin Menghapus Desain Ini?",
|
||||
text: "Desain, Pembelian Pelanggan Yang Membeli Produk Ini Akan Terhapus",
|
||||
icon: "error",
|
||||
buttons: true,
|
||||
dangerMode: true,
|
||||
})
|
||||
.then((logout) => {
|
||||
if (logout) {
|
||||
$('#hapus_button').click();
|
||||
} else {
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php elseif ($this->uri->segment(4) == 'edit'): ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
function klik_foto(e){
|
||||
// console.log(e);
|
||||
if (e == 1) {
|
||||
console.log("kekalkan")
|
||||
$("#sini_upload_foto_div").hide();
|
||||
$("#sini_foto_lama_div").show();
|
||||
$("#imagesource11").removeAttr('requrired');
|
||||
// document.getElementById("imagesource").value = null;
|
||||
}else if (e == 2) {
|
||||
$("#imagesource11").attr({
|
||||
"required" : ''
|
||||
});
|
||||
console.log("tukar")
|
||||
$("#sini_upload_foto_div").show();
|
||||
$("#sini_foto_lama_div").hide();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var elem = document.getElementById("num");
|
||||
|
||||
elem.addEventListener("keydown",function(event){
|
||||
var key = event.which;
|
||||
if((key<48 || key>57) && key != 8) event.preventDefault();
|
||||
});
|
||||
|
||||
elem.addEventListener("keyup",function(event){
|
||||
var value = this.value.replace(/,/g,"");
|
||||
this.dataset.currentValue=parseInt(value);
|
||||
var caret = value.length-1;
|
||||
while((caret-3)>-1)
|
||||
{
|
||||
caret -= 3;
|
||||
value = value.split('');
|
||||
value.splice(caret+1,0,",");
|
||||
value = value.join('');
|
||||
}
|
||||
this.value = value;
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function previewImage() {
|
||||
document.getElementById("image-preview").style.display = "block";
|
||||
var oFReader = new FileReader();
|
||||
oFReader.readAsDataURL(document.getElementById("imagesource11").files[0]);
|
||||
|
||||
oFReader.onload = function(oFREvent) {
|
||||
document.getElementById("image-preview").src = oFREvent.target.result;
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function changeKategori() {
|
||||
var selectBox = document.getElementById("kategori");
|
||||
var selectedValue = selectBox.options[selectBox.selectedIndex].value;
|
||||
if (selectedValue == 1) {
|
||||
$("#jenis_undangan").show();
|
||||
}else{
|
||||
$("#jenis_undangan").hide();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function edit()
|
||||
{
|
||||
|
||||
if( document.myform.kategori.value == "" )
|
||||
{
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Kolum Kategori Harus Dipilih");
|
||||
document.myform.kategori.focus() ;
|
||||
}else if( document.myform.kategori.value == 1 )
|
||||
{
|
||||
if (document.myform.undangan.value == "") {
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Kolum Jenis Undangan Harus Dipilih");
|
||||
document.myform.undangan.focus() ;
|
||||
}else if ($("input[name=harga]").val() == '' || $("input[name=harga]").val() == null) {
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Kolum Harga Harus Terisi");
|
||||
$("input[name=harga]").focus() ;
|
||||
}else{
|
||||
// $('form#myform').submit();
|
||||
$('#ini_submit').click();
|
||||
// alert('nah lakukkan la');
|
||||
}
|
||||
}else if ($("input[name=harga]").val() == '' || $("input[name=harga]").val() == null) {
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Kolum Harga Harus Terisi");
|
||||
$("input[name=harga]").focus() ;
|
||||
}else{
|
||||
// $('form#myform').submit();
|
||||
$('#ini_submit').click();
|
||||
// alert('nah lakukkan la');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'daftar_tunggu'): ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tabel-data').DataTable({
|
||||
"aLengthMenu": [[10, 20, 30 ,40, -1], [10, 20, 30, 40 ,"All"]],
|
||||
"iDisplayLength": 10,
|
||||
// "pageLength": 5,
|
||||
"searching": true,
|
||||
"paging": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php if (is_numeric($this->uri->segment(3))): ?>
|
||||
<script src="<?=base_url()?>/dist/js/lightbox-plus-jquery.min.js"></script>
|
||||
<?php elseif($this->uri->segment(3) == 'tanggalnya'): ?>
|
||||
<script type="text/javascript">
|
||||
function PrintElem(elem)
|
||||
{
|
||||
var mywindow = window.open('', 'PRINT', 'height=400,width=600');
|
||||
|
||||
mywindow.document.write('<html><head><title>' + document.title + '</title>');
|
||||
mywindow.document.write('</head><body ><div id="wrapper"><div class="main-content">');
|
||||
mywindow.document.write('<h1>' + document.title + '</h1>');
|
||||
mywindow.document.write(document.getElementById('sini').innerHTML);
|
||||
mywindow.document.write('</div></div></body></html>');
|
||||
|
||||
mywindow.document.close(); // necessary for IE >= 10
|
||||
mywindow.focus(); // necessary for IE >= 10*/
|
||||
|
||||
mywindow.print();
|
||||
mywindow.close();
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'proses_pembuatan'): ?>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tabel-data').DataTable({
|
||||
"aLengthMenu": [[10, 20, 30 ,40, -1], [10, 20, 30, 40 ,"All"]],
|
||||
"iDisplayLength": 10,
|
||||
// "pageLength": 5,
|
||||
"searching": true,
|
||||
"paging": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function previewImage() {
|
||||
document.getElementById("image-preview").style.display = "block";
|
||||
var oFReader = new FileReader();
|
||||
oFReader.readAsDataURL(document.getElementById("imagesource").files[0]);
|
||||
|
||||
oFReader.onload = function(oFREvent) {
|
||||
document.getElementById("image-preview").src = oFREvent.target.result;
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function upload(){
|
||||
var file_data = $('#imagesource').prop('files')[0];
|
||||
var form_data = new FormData();
|
||||
form_data.append('file', file_data);
|
||||
// console.log(form_data);
|
||||
|
||||
if (document.getElementById('imagesource').value == "") {
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Foto Harus Dipilih");
|
||||
document.getElementById('imagesource').focus() ;
|
||||
}else if(file_data && file_data.size > 1800000){
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Saiz Foto Maksimal 1.5 Mb");
|
||||
document.getElementById('imagesource').focus() ;
|
||||
}else{
|
||||
var file = document.getElementById('imagesource').files[0];
|
||||
var le=file_data['name'].length;
|
||||
var poin=file_data['name'].lastIndexOf(".");
|
||||
var accu1=file_data['name'].substring(poin,le);
|
||||
var accu = accu1.toLowerCase();
|
||||
// console.log(accu);
|
||||
|
||||
if (accu == '.png' || accu == '.jpg'){
|
||||
// console.log(accu);
|
||||
$.ajax({
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
type: "post",
|
||||
url: "<?=base_url()?>admin/proses_pembuatan/upload_foto_transaksi/<?=$this->uri->segment(3)?>",
|
||||
data: form_data,
|
||||
// data: {foto : file}, // appears as $_GET['id'] @ your backend side
|
||||
// dataType: "html",
|
||||
success: function(data1) {
|
||||
window.location.replace("<?=base_url()?>admin/proses_pembuatan/");
|
||||
console.log(data1);
|
||||
}
|
||||
|
||||
});
|
||||
}else{
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("Ekstensi Foto Harus .png atau .jpg");
|
||||
document.getElementById('imagesource').focus() ;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php if (is_numeric($this->uri->segment(3))): ?>
|
||||
<script src="<?=base_url()?>/dist/js/lightbox-plus-jquery.min.js"></script>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'daftar_pengembalian'): ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tabel-data').DataTable({
|
||||
"aLengthMenu": [[10, 20, 30 ,40, -1], [10, 20, 30, 40 ,"All"]],
|
||||
"iDisplayLength": 10,
|
||||
// "pageLength": 5,
|
||||
"searching": true,
|
||||
"paging": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php if (is_numeric($this->uri->segment(3))): ?>
|
||||
<script src="<?=base_url()?>/dist/js/lightbox-plus-jquery.min.js"></script>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'daftar_pembelian'): ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tabel-data').DataTable({
|
||||
"aLengthMenu": [[10, 20, 30 ,40, -1], [10, 20, 30, 40 ,"All"]],
|
||||
"iDisplayLength": 10,
|
||||
// "pageLength": 5,
|
||||
"searching": true,
|
||||
"paging": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'daftar_pembeli'): ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tabel-data').DataTable({
|
||||
"aLengthMenu": [[10, 20, 30 ,40, -1], [10, 20, 30, 40 ,"All"]],
|
||||
"iDisplayLength": 10,
|
||||
// "pageLength": 5,
|
||||
"searching": true,
|
||||
"paging": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'laporan'): ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tabel-data').DataTable();
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php if($this->uri->segment(3) == 'tanggalnya'): ?>
|
||||
<script type="text/javascript">
|
||||
function PrintElem()
|
||||
{
|
||||
var mywindow = window.open('', 'PRINT', 'height=400,width=600');
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "<?=base_url()?>admin/laporan/cetak",
|
||||
data: {bulan: '<?=$this->uri->segment(4)?>', tahun : '<?=$this->uri->segment(5)?>'}, // appears as $_GET['id'] @ your backend side
|
||||
// dataType: "json",
|
||||
success: function(data1) {
|
||||
mywindow.document.write('<html><head><title>' + document.title + '</title>');
|
||||
mywindow.document.write('</head><body >');
|
||||
mywindow.document.write('<h4 style="text-align:center">' + document.title + '</h4>');
|
||||
mywindow.document.write('<div style="text-align:center">'+data1+'</div');
|
||||
mywindow.document.write('</body></html>');
|
||||
|
||||
mywindow.document.close(); // necessary for IE >= 10
|
||||
mywindow.focus(); // necessary for IE >= 10*/
|
||||
|
||||
mywindow.print();
|
||||
mywindow.close();
|
||||
// console.log(data1);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'rekening'): ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tabel-data').DataTable();
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function setInputFilter(textbox, inputFilter) {
|
||||
["input", "keydown", "keyup", "mousedown", "mouseup", "select", "contextmenu", "drop"].forEach(function(event) {
|
||||
textbox.addEventListener(event, function() {
|
||||
if (inputFilter(this.value)) {
|
||||
this.oldValue = this.value;
|
||||
this.oldSelectionStart = this.selectionStart;
|
||||
this.oldSelectionEnd = this.selectionEnd;
|
||||
} else if (this.hasOwnProperty("oldValue")) {
|
||||
this.value = this.oldValue;
|
||||
this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);
|
||||
} else {
|
||||
this.value = "";
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
setInputFilter(document.getElementById("nomor"), function(value) {
|
||||
return /^-?\d*$/.test(value); });
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<?php if ($this->uri->segment(3) == ''): ?>
|
||||
<script type="text/javascript">
|
||||
function tambah(){
|
||||
swal({
|
||||
title: "Tambah Rekening Baru?",
|
||||
text: "Rekening Akan Ditambah Sesuai Inputan Yang Dimasukkan",
|
||||
icon: "info",
|
||||
buttons: true,
|
||||
dangerMode: true,
|
||||
})
|
||||
.then((logout) => {
|
||||
if (logout) {
|
||||
$('#submit_form').click();
|
||||
} else {
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php elseif(is_numeric($this->uri->segment(3))): ?>
|
||||
<script type="text/javascript">
|
||||
function edit(){
|
||||
$('#jenis').removeAttr('disabled');
|
||||
$('#nama').removeAttr('disabled');
|
||||
$('#nomor').removeAttr('disabled');
|
||||
|
||||
$('#jenis_bank').prop('required',true);
|
||||
$('#nama').prop('required',true);
|
||||
$('#nomor').prop('required',true);
|
||||
$('#edit_button').hide();
|
||||
$('#edit_button_true').show();
|
||||
}
|
||||
|
||||
function cancel(){
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
function edit_true(){
|
||||
swal({
|
||||
title: "Edit Rekening?",
|
||||
text: "Rekening Akan Berubah Sesuai Inputan Yang Dimasukkan",
|
||||
icon: "info",
|
||||
buttons: true,
|
||||
dangerMode: true,
|
||||
})
|
||||
.then((logout) => {
|
||||
if (logout) {
|
||||
$('#submit_form').click();
|
||||
} else {
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<script src="<?=base_url()?>assets/scripts/main.min.js"></script>
|
||||
8
application/views/errors/cli/error_404.php
Normal file
8
application/views/errors/cli/error_404.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
8
application/views/errors/cli/error_db.php
Normal file
8
application/views/errors/cli/error_db.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
application/views/errors/cli/error_exception.php
Normal file
21
application/views/errors/cli/error_exception.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
8
application/views/errors/cli/error_general.php
Normal file
8
application/views/errors/cli/error_general.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
application/views/errors/cli/error_php.php
Normal file
21
application/views/errors/cli/error_php.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
11
application/views/errors/cli/index.html
Normal file
11
application/views/errors/cli/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
64
application/views/errors/html/error_404.php
Normal file
64
application/views/errors/html/error_404.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
64
application/views/errors/html/error_db.php
Normal file
64
application/views/errors/html/error_db.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
32
application/views/errors/html/error_exception.php
Normal file
32
application/views/errors/html/error_exception.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
64
application/views/errors/html/error_general.php
Normal file
64
application/views/errors/html/error_general.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
33
application/views/errors/html/error_php.php
Normal file
33
application/views/errors/html/error_php.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
11
application/views/errors/html/index.html
Normal file
11
application/views/errors/html/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/views/errors/index.html
Normal file
11
application/views/errors/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
70
application/views/home/404.php
Normal file
70
application/views/home/404.php
Normal file
@ -0,0 +1,70 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<!-- Mirrored from demo.ninjateam.org/html/my-admin/light/page-404.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Jan 2018 03:48:56 GMT -->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<title>Home</title>
|
||||
<link rel="stylesheet" href="<?=base_url()?>assets/styles/style.min.css">
|
||||
|
||||
<!-- Waves Effect -->
|
||||
<link rel="stylesheet" href="<?=base_url()?>assets/plugin/waves/waves.min.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="page-404">
|
||||
<div class="content">
|
||||
<div class="title-on-desktop">
|
||||
<svg style="width: 600px; height: 200px" alignment-baseline="middle">
|
||||
<defs>
|
||||
<clipPath id="clip2">
|
||||
<path d="M 0 0 L 600 0 L 600 80 L 0 80 L 0 0 L 0 125 L 600 125 L 600 200 L 0 200 Z" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<text x="300" y="190" style="width: 600px; height: 200px" text-anchor="middle" font-family="Lato" font-weight="700" font-size="250" fill="#505458" clip-path="url(#clip2)">4<tspan fill="#35b8e0">0</tspan>4</text>
|
||||
</svg>
|
||||
<div class="title">Halaman Tidak Ditemukan</div>
|
||||
</div>
|
||||
<h1 class="title-on-mobile">Error 404: Halaman Tidak Ditemukan</h1>
|
||||
<p>Sepertinya Anda Mencoba Untuk Memasuki Wilayah Terbatas. Jan Takut Bosk..Aman Itu...Klik Saja <b>"Kembali"</b>...Ndak Da Masalah...HAHAHAHAHAH</p>
|
||||
<?php
|
||||
if ($this->session->userdata('pembeli') != '' and $this->session->userdata('pembeli') != 'null') {
|
||||
$url = base_url('user');
|
||||
}elseif ($this->session->userdata('admin') != '' and $this->session->userdata('admin') != 'null') {
|
||||
$url = base_url('admin');
|
||||
}else{
|
||||
$url = base_url();
|
||||
}
|
||||
?>
|
||||
<a href="<?=$url?>" class="btn btn-info">Kembali BOSKU</a>
|
||||
|
||||
</div>
|
||||
</div><!--/#single-wrapper -->
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="assets/script/html5shiv.min.js"></script>
|
||||
<script src="assets/script/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="<?=base_url()?>assets/scripts/jquery.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/scripts/modernizr.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/nprogress/nprogress.js"></script>
|
||||
<script src="<?=base_url()?>assets/plugin/waves/waves.min.js"></script>
|
||||
|
||||
<script src="<?=base_url()?>assets/scripts/main.min.js"></script>
|
||||
</body>
|
||||
|
||||
<!-- Mirrored from demo.ninjateam.org/html/my-admin/light/page-404.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Jan 2018 03:48:56 GMT -->
|
||||
</html>
|
||||
43
application/views/home/footer.php
Normal file
43
application/views/home/footer.php
Normal file
@ -0,0 +1,43 @@
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<h2 class="footer-heading mb-4">Tentang Kami</h2>
|
||||
<p>Membangun Website yang menyediakan jasa pembuatan dan pencetakan desain grafis </p>
|
||||
</div>
|
||||
<!-- <div class="col-md-3 ml-auto">
|
||||
<h2 class="footer-heading mb-4">Features</h2>
|
||||
<ul class="list-unstyled">
|
||||
<li><a href="#">About Us</a></li>
|
||||
<li><a href="#">Services</a></li>
|
||||
<li><a href="#">Testimonials</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
</ul>
|
||||
</div> -->
|
||||
<div class="col-md-5">
|
||||
<h2 class="footer-heading mb-4">Follow Us</h2>
|
||||
<a href="#" class="pl-0 pr-3"><span class="icon-facebook"></span></a>
|
||||
<a href="#" class="pl-3 pr-3"><span class="icon-twitter"></span></a>
|
||||
<a href="#" class="pl-3 pr-3"><span class="icon-instagram"></span></a>
|
||||
<a href="#" class="pl-3 pr-3"><span class="icon-linkedin"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row pt-5 mt-5 text-center">
|
||||
<div class="col-md-12">
|
||||
<div class="border-top pt-5">
|
||||
<p>
|
||||
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
|
||||
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="icon-heart" aria-hidden="true"></i> by <a href="https://www.facebook.com/kicap.karan" target="_blank" >Kicap Karan</a>
|
||||
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
18
application/views/home/foto_pengenalan.php
Normal file
18
application/views/home/foto_pengenalan.php
Normal file
@ -0,0 +1,18 @@
|
||||
<div class="site-blocks-cover overlay" style="background-image: url(images/hero_1.jpg);" data-aos="fade" data-stellar-background-ratio="0.5">
|
||||
<div class="container">
|
||||
<div class="row align-items-center justify-content-center text-center">
|
||||
|
||||
<div class="col-md-12" data-aos="fade-up" data-aos-delay="400">
|
||||
|
||||
<div class="row justify-content-center mb-4">
|
||||
<div class="col-md-8 text-center">
|
||||
<h1>Toko Kami Menyediakan Jasa Pembuatan Desain Grafis dan Cetak Desain <span class="typed-words"></span></h1>
|
||||
<p class="lead mb-5">Silahkan Pesan Sekarang Juga</p>
|
||||
<div><a href="<?=base_url()?>home/project" class="btn btn-primary btn-md">Klik Untuk Melihat Desain</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
17
application/views/home/foto_pengenalan_project.php
Normal file
17
application/views/home/foto_pengenalan_project.php
Normal file
@ -0,0 +1,17 @@
|
||||
<div class="site-blocks-cover inner-page-cover overlay" style="background-image: url(<?=base_url()?>images/hero_1.jpg);" data-aos="fade" data-stellar-background-ratio="0.5">
|
||||
<div class="container">
|
||||
<div class="row align-items-center justify-content-center text-center">
|
||||
|
||||
<div class="col-md-12" data-aos="fade-up" data-aos-delay="400">
|
||||
|
||||
<div class="row justify-content-center mb-4">
|
||||
<div class="col-md-8 text-center">
|
||||
<h1>Pemesanan Pembuatan Desain Grafis</h1>
|
||||
<p class="lead mb-5">Silahkan Lakukan Login Jika Ingin Melihat Produk Kami</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
86
application/views/home/head.php
Normal file
86
application/views/home/head.php
Normal file
@ -0,0 +1,86 @@
|
||||
<head>
|
||||
<title>Pemesanan Desain Grafis</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700,900" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?=base_url()?>fonts/icomoon/style.css">
|
||||
|
||||
<link rel="stylesheet" href="<?=base_url()?>css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?=base_url()?>css/magnific-popup.css">
|
||||
<link rel="stylesheet" href="<?=base_url()?>css/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?=base_url()?>css/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="<?=base_url()?>css/owl.theme.default.min.css">
|
||||
|
||||
<link rel="stylesheet" href="<?=base_url()?>css/bootstrap-datepicker.css">
|
||||
|
||||
<link rel="stylesheet" href="<?=base_url()?>fonts/flaticon/font/flaticon.css">
|
||||
|
||||
<link rel="stylesheet" href="<?=base_url()?>css/aos.css">
|
||||
|
||||
<link rel="stylesheet" href="<?=base_url()?>css/style.css">
|
||||
|
||||
<!-- <link rel="stylesheet" href="<?=base_url()?>assets/plugin/sweet-alert/sweetalert.css">
|
||||
|
||||
<script src="<?=base_url()?>assets/plugin/sweet-alert/sweetalert.min.js"></script> -->
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url() ?>sweet-alert/sweetalert.css">
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'project'): ?>
|
||||
<style>
|
||||
/*body {font-family: Arial;}*/
|
||||
|
||||
/* Style the tab */
|
||||
.tab {
|
||||
overflow: hidden;
|
||||
border: 1px solid #ccc;
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
/* Style the buttons inside the tab */
|
||||
.tab button {
|
||||
background-color: inherit;
|
||||
float: left;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
padding: 14px 16px;
|
||||
transition: 0.3s;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
/* Change background color of buttons on hover */
|
||||
.tab button:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
/* Create an active/current tablink class */
|
||||
.tab button.active {
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
/* Style the tab content */
|
||||
.tabcontent {
|
||||
display: none;
|
||||
padding: 6px 12px;
|
||||
-webkit-animation: fadeEffect 1s;
|
||||
animation: fadeEffect 1s;
|
||||
/*border: 1px solid #ccc;*/
|
||||
}
|
||||
|
||||
/* Fade in tabs */
|
||||
@-webkit-keyframes fadeEffect {
|
||||
from {opacity: 0;}
|
||||
to {opacity: 1;}
|
||||
}
|
||||
|
||||
@keyframes fadeEffect {
|
||||
from {opacity: 0;}
|
||||
to {opacity: 1;}
|
||||
}
|
||||
</style>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
39
application/views/home/header.php
Normal file
39
application/views/home/header.php
Normal file
@ -0,0 +1,39 @@
|
||||
<header class="site-navbar py-4 bg-white" role="banner">
|
||||
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
|
||||
<div class="col-11 col-xl-2">
|
||||
<h1 class="mb-0 site-logo"><a href="index.html" class="text-black h2 mb-0"><?=$header?></a></h1>
|
||||
</div>
|
||||
<div class="col-12 col-md-10 d-none d-xl-block">
|
||||
<nav class="site-navigation position-relative text-right" role="navigation">
|
||||
|
||||
<ul class="site-menu js-clone-nav mr-auto d-none d-lg-block">
|
||||
<li <?php if ($this->uri->segment(2) == '') { echo 'class="active"'; } ?>><a href="<?=base_url()?>">Home</a></li>
|
||||
<li <?php if ($this->uri->segment(2) == 'project') { echo 'class="active"'; } ?>><a href="<?=base_url()?>home/project">Desain Project</a></li>
|
||||
<!-- <li class="has-children">
|
||||
<a href="services.html">Services</a>
|
||||
<ul class="dropdown">
|
||||
<li><a href="services.html">Web Applications</a></li>
|
||||
<li><a href="services.html">WordPress Dev</a></li>
|
||||
<li><a href="services.html">Mobile Applications</a></li>
|
||||
<li><a href="services.html">eCommerce</a></li>
|
||||
</ul>
|
||||
</li> -->
|
||||
<!-- <li><a href="about.html">About</a></li>
|
||||
<li><a href="blog.html">Blog</a></li> -->
|
||||
<li <?php if ($this->uri->segment(2) == 'prelogin') { echo 'class="active"'; } ?>><a href="<?=base_url()?>home/prelogin">Login</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="d-inline-block d-xl-none ml-md-0 mr-auto py-3" style="position: relative; top: 3px;"><a href="#" class="site-menu-toggle js-menu-toggle text-black"><span class="icon-menu h3"></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
35
application/views/home/index.php
Normal file
35
application/views/home/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<?php $this->load->view('home/head') ?>
|
||||
<body>
|
||||
|
||||
<div class="site-wrap">
|
||||
|
||||
<?php $this->load->view('home/site_mobile') ?>
|
||||
|
||||
<?php $this->load->view('home/top_bar') ?>
|
||||
|
||||
<?php $this->load->view('home/header') ?>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if ($this->uri->segment(2) == '' or $this->uri->segment(2) == null) {
|
||||
$this->load->view('home/foto_pengenalan');
|
||||
}else{
|
||||
$this->load->view('home/foto_pengenalan_project');
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php $this->load->view($main) ?>
|
||||
|
||||
|
||||
<?php $this->load->view('home/footer') ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('home/script') ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
209
application/views/home/main.php
Normal file
209
application/views/home/main.php
Normal file
@ -0,0 +1,209 @@
|
||||
<section class="section ft-feature-1">
|
||||
<div class="container">
|
||||
<div class="row align-items-stretch">
|
||||
<div class="col-12 bg-black w-100 ft-feature-1-content">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-5">
|
||||
<div class="h-100">
|
||||
<div class="mb-5 d-flex align-items-center">
|
||||
<!-- <div>
|
||||
<a href="https://vimeo.com/317571768" class="popup-vimeo d-block play"><span class="icon-play"></span></a>
|
||||
</div> -->
|
||||
<h2>Selamat Datang Ke Website Penjual Desain Grafis</h2>
|
||||
</div>
|
||||
<img src="<?=base_url()?>images/about_1.jpg" alt="Image" class="img-fluid">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 ml-auto">
|
||||
<div class="mb-5">
|
||||
<h3 class="d-flex align-items-center"><span class="icon icon-phonelink mr-2"></span><span>Spanduk</span></h3>
|
||||
<p>Letakkan Kata2</p>
|
||||
<p><a href="<?=base_url()?>home/project">Lihat Desain</a></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 class="d-flex align-items-center"><span class="icon icon-extension mr-2"></span><span>Kartu Name</span></h3>
|
||||
<p>Letakkan Kata2</p>
|
||||
<p><a href="<?=base_url()?>home/project">Lihat Desain</a></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="mb-5">
|
||||
<h3 class="d-flex align-items-center"><span class="icon icon-format_paint mr-2"></span><span>Undangan</span></h3>
|
||||
<p>Letakkan Kata2</p>
|
||||
<p><a href="<?=base_url()?>home/project">Lihat Desain</a></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<!-- <h3 class="d-flex align-items-center"><span class="icon icon-question_answer mr-2"></span><span>Copywriting</span></h3>
|
||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque ab nihil quam nesciunt.</p>
|
||||
<p><a href="#">Read More</a></p> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<section class="site-section">
|
||||
<div class="container">
|
||||
<div class="row mb-5 justify-content-center">
|
||||
<div class="col-md-8 text-center">
|
||||
<h2 class="text-black h1 site-section-heading text-center">Desain Project</h2>
|
||||
<p class="lead">Kata2</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-4">
|
||||
<a href="<?=base_url()?>home/project" class="media-1">
|
||||
<img src="<?=base_url()?>images/img_1.jpg" alt="Image" class="img-fluid">
|
||||
<div class="media-1-content">
|
||||
<h2>Spanduk</h2>
|
||||
<!-- <span class="category">Web Application</span> -->
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4">
|
||||
<a href="<?=base_url()?>home/project" class="media-1">
|
||||
<img src="<?=base_url()?>images/img_2.jpg" alt="Image" class="img-fluid">
|
||||
<div class="media-1-content">
|
||||
<h2>Kartu Nama</h2>
|
||||
<!-- <span class="category">Branding</span> -->
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4">
|
||||
<a href="<?=base_url()?>home/project" class="media-1">
|
||||
<img src="<?=base_url()?>images/img_3.jpg" alt="Image" class="img-fluid">
|
||||
<div class="media-1-content">
|
||||
<h2>Undangan</h2>
|
||||
<!-- <span class="category">Website</span> -->
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="col-12 text-center mt-5">
|
||||
<a href="<?=base_url()?>home/project" class="btn btn-primary btn-md">Lihat Semua Desain Project</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="site-section testimonial-wrap">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 text-center">
|
||||
<h2 class="text-black h1 site-section-heading text-center">Komen</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="slide-one-item home-slider owl-carousel">
|
||||
<div>
|
||||
<div class="testimonial">
|
||||
|
||||
<blockquote class="mb-5">
|
||||
<p>“Kata2”</p>
|
||||
</blockquote>
|
||||
|
||||
<figure class="mb-4 d-flex align-items-center justify-content-center">
|
||||
<div><img src="<?=base_url()?>images/person_3.jpg" alt="Image" class="w-50 img-fluid mb-3"></div>
|
||||
<p>John Smith</p>
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="testimonial">
|
||||
|
||||
<blockquote class="mb-5">
|
||||
<p>“Kata2”</p>
|
||||
</blockquote>
|
||||
<figure class="mb-4 d-flex align-items-center justify-content-center">
|
||||
<div><img src="<?=base_url()?>images/person_2.jpg" alt="Image" class="w-50 img-fluid mb-3"></div>
|
||||
<p>Christine Aguilar</p>
|
||||
</figure>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="testimonial">
|
||||
|
||||
<blockquote class="mb-5">
|
||||
<p>“Kata2”</p>
|
||||
</blockquote>
|
||||
<figure class="mb-4 d-flex align-items-center justify-content-center">
|
||||
<div><img src="<?=base_url()?>images/person_4.jpg" alt="Image" class="w-50 img-fluid mb-3"></div>
|
||||
<p>Robert Spears</p>
|
||||
</figure>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="testimonial">
|
||||
|
||||
<blockquote class="mb-5">
|
||||
<p>“Kata2”</p>
|
||||
</blockquote>
|
||||
<figure class="mb-4 d-flex align-items-center justify-content-center">
|
||||
<div><img src="<?=base_url()?>images/person_5.jpg" alt="Image" class="w-50 img-fluid mb-3"></div>
|
||||
<p>Bruce Rogers</p>
|
||||
</figure>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="site-section bg-light">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 text-center">
|
||||
<h2 class="text-black h1 site-section-heading text-center">Desain Terbaik</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-4 mb-4 mb-lg-4">
|
||||
<div class="h-entry">
|
||||
<img src="<?=base_url()?>images/img_1.jpg" alt="Image" class="img-fluid">
|
||||
<h2 class="font-size-regular"><a href="#">Create Beautiful Website In Less Than An Hour</a></h2>
|
||||
<div class="meta mb-4">Ham Brook <span class="mx-2">•</span> Jan 18, 2019<span class="mx-2">•</span> <a href="#">News</a></div>
|
||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
|
||||
<p><a href="#">Continue Reading...</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4 mb-4 mb-lg-4">
|
||||
<div class="h-entry">
|
||||
<img src="<?=base_url()?>images/img_2.jpg" alt="Image" class="img-fluid">
|
||||
<h2 class="font-size-regular"><a href="#">Create Beautiful Website In Less Than An Hour</a></h2>
|
||||
<div class="meta mb-4">James Phelps <span class="mx-2">•</span> Jan 18, 2019<span class="mx-2">•</span> <a href="#">News</a></div>
|
||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
|
||||
<p><a href="#">Continue Reading...</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4 mb-4 mb-lg-4">
|
||||
<div class="h-entry">
|
||||
<img src="<?=base_url()?>images/img_1.jpg" alt="Image" class="img-fluid">
|
||||
<h2 class="font-size-regular"><a href="#">Create Beautiful Website In Less Than An Hour</a></h2>
|
||||
<div class="meta mb-4">James Phelps <span class="mx-2">•</span> Jan 18, 2019<span class="mx-2">•</span> <a href="#">News</a></div>
|
||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
|
||||
<p><a href="#">Continue Reading...</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
134
application/views/home/menu/desain_project.php
Normal file
134
application/views/home/menu/desain_project.php
Normal file
@ -0,0 +1,134 @@
|
||||
<section class="site-section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<div class="tab">
|
||||
<button class="tablinks" onclick="openCity(event, 'undangan')" id="defaultOpen">Undangan</button>
|
||||
<button class="tablinks" onclick="openCity(event, 'kartu_nama')">Kartu Nama</button>
|
||||
<button class="tablinks" onclick="openCity(event, 'spanduk')">Spanduk</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-12 tabcontent" id="undangan">
|
||||
<div class="row mb-5">
|
||||
<?php
|
||||
$nomor = 0;
|
||||
$data = $this->mhome->tampil_data_gambar($nomor,1);
|
||||
|
||||
if (count($data->result())>0) {
|
||||
foreach ($data->result() as $key => $value) {
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-md-6 col-lg-3 mb-4 mb-lg-4">
|
||||
<div class="h-entry">
|
||||
<a href="<?=base_url()?>home/project/<?=$value->no?>"><img src="<?=base_url($keterangan->img)?>" alt="Image" class="img-fluid"></a>
|
||||
|
||||
<center><div class="meta mb-4"><span class="mx-2"></span>Upload • <?=$value->tanggal_upload?><span class="mx-2">•</span> </div>
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs</p>
|
||||
<a href="<?=base_url()?>home/project/<?=$value->no?>"><button type="button" class="btn btn-warning btn-md text-white"> Detail </button></a></center>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="custom-pagination text-center">
|
||||
<?php
|
||||
$jumlah = $this->mhome->jumlah_halaman(count($undangan->result()));
|
||||
$ii = 0;
|
||||
for ($i=1; $i <= $jumlah ; $i++) { ?>
|
||||
<span style="cursor: pointer;" onclick="tukar_halaman(<?=$ii?>,1)"><?=$i?></span>
|
||||
<?php $ii+=12;}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 tabcontent" id="kartu_nama">
|
||||
<div class="row mb-5">
|
||||
<?php
|
||||
$nomor = 0;
|
||||
$data = $this->mhome->tampil_data_gambar($nomor,2);
|
||||
|
||||
if (count($data->result())>0) {
|
||||
foreach ($data->result() as $key => $value) {
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-md-6 col-lg-3 mb-4 mb-lg-4">
|
||||
<div class="h-entry">
|
||||
<a href="<?=base_url()?>home/project/<?=$value->no?>"><img src="<?=base_url($keterangan->img)?>" alt="Image" class="img-fluid"></a>
|
||||
|
||||
<center><div class="meta mb-4"><span class="mx-2"></span>Upload • <?=$value->tanggal_upload?><span class="mx-2">•</span> </div>
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs</p>
|
||||
<a href="<?=base_url()?>home/project/<?=$value->no?>"><button type="button" class="btn btn-warning btn-md text-white"> Detail </button></a></center>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="custom-pagination text-center">
|
||||
<?php
|
||||
$jumlah = $this->mhome->jumlah_halaman(count($kartu_nama->result()));
|
||||
$ii = 0;
|
||||
for ($i=1; $i <= $jumlah ; $i++) { ?>
|
||||
<span style="cursor: pointer;" onclick="tukar_halaman(<?=$ii?>,2)"><?=$i?></span>
|
||||
<?php $ii+=12;}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 tabcontent" id="spanduk">
|
||||
<div class="row mb-5">
|
||||
<?php
|
||||
$nomor = 0;
|
||||
$data = $this->mhome->tampil_data_gambar($nomor,3);
|
||||
|
||||
if (count($data->result())>0) {
|
||||
foreach ($data->result() as $key => $value) {
|
||||
$keterangan = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-md-6 col-lg-3 mb-4 mb-lg-4">
|
||||
<div class="h-entry">
|
||||
<a href="<?=base_url()?>home/project/<?=$value->no?>"><img src="<?=base_url($keterangan->img)?>" alt="Image" class="img-fluid"></a>
|
||||
|
||||
<center><div class="meta mb-4"><span class="mx-2"></span>Upload • <?=$value->tanggal_upload?><span class="mx-2">•</span> </div>
|
||||
<p>Harga : Rp. <?=number_format($keterangan->harga)?> / pcs</p>
|
||||
<a href="<?=base_url()?>home/project/<?=$value->no?>"><button type="button" class="btn btn-warning btn-md text-white"> Detail </button></a></center>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="custom-pagination text-center">
|
||||
<?php
|
||||
$jumlah = $this->mhome->jumlah_halaman(count($spanduk->result()));
|
||||
$ii = 0;
|
||||
for ($i=1; $i <= $jumlah ; $i++) { ?>
|
||||
<span style="cursor: pointer;" onclick="tukar_halaman(<?=$ii?>,3)"><?=$i?></span>
|
||||
<?php $ii+=12;}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
58
application/views/home/menu/detail.php
Normal file
58
application/views/home/menu/detail.php
Normal file
@ -0,0 +1,58 @@
|
||||
<section class="site-section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php foreach ($data->result() as $key => $value);
|
||||
$ket = json_decode($value->keterangan);
|
||||
?>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 col-lg-12">
|
||||
<div class="h-entry">
|
||||
<center><img src="<?=base_url($ket->img)?>" alt="Image" class="img-fluid">
|
||||
<!-- <h2 class="font-size-regular"><a href="#">Warehousing Your Packages</a></h2> -->
|
||||
<div class="meta mb-4"><span class="mx-2"></span>Upload • <?=$value->tanggal_upload?><span class="mx-2">•</span> </div></center>
|
||||
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="email">Harga</label>
|
||||
<input type="text" id="email" class="form-control" value="Rp. <?=number_format($ket->harga)?> / pcs" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="subject">Kertas</label>
|
||||
<select class="form-control">
|
||||
<option>Art Paper</option>
|
||||
<option>Jasmin</option>
|
||||
<option>Cartoon</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="subject">Panjang X Lebar</label>
|
||||
<select class="form-control">
|
||||
<option>Panjang X Lebar 1</option>
|
||||
<option>Panjang X Lebar 2</option>
|
||||
<option>Panjang X Lebar 3</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<center><a href="<?=base_url()?>home/project"><button type="button" class="btn btn-warning btn-md text-white"><b>Kembali</b></button></a></center>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
94
application/views/home/menu/login.php
Normal file
94
application/views/home/menu/login.php
Normal file
@ -0,0 +1,94 @@
|
||||
<div class="site-section bg-light">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-5 mb-5">
|
||||
|
||||
|
||||
|
||||
<form method="post" class="p-5 bg-white">
|
||||
|
||||
<h2 class="h4 text-black mb-5">Form Login</h2>
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="email">Username</label>
|
||||
<input type="text" id="username" class="form-control" name="username" required="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="email">Password</label>
|
||||
<input type="password" id="password" class="form-control" name="password" required="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row form-group">
|
||||
<div class="col-md-12">
|
||||
<input type="submit" value="Login" class="btn btn-primary btn-md text-white" name="login">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-7 mb-5">
|
||||
|
||||
|
||||
|
||||
<form action="" method="post" class="p-5 bg-white">
|
||||
|
||||
<h2 class="h4 text-black mb-5">Form Pendaftaran</h2>
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="email">Nama</label>
|
||||
<input type="text" name="nama" class="form-control" required="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="email">Alamat</label>
|
||||
<input type="text" name="alamat" class="form-control" required="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="subject">Email</label>
|
||||
<input type="email" name="email" class="form-control" required="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row form-group">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label class="text-black" for="subject">No Telepon</label>
|
||||
<input type="text" name="no_telpon" id="no_tel" minlength="11" maxlength="13" class="form-control" required="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row form-group">
|
||||
<div class="col-md-12">
|
||||
<input type="submit" value="Lakukan Pendaftaran" name="daftar" class="btn btn-primary btn-md text-white">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
170
application/views/home/script.php
Normal file
170
application/views/home/script.php
Normal file
@ -0,0 +1,170 @@
|
||||
<script src="<?=base_url()?>js/jquery-3.3.1.min.js"></script>
|
||||
<script src="<?=base_url()?>js/jquery-migrate-3.0.1.min.js"></script>
|
||||
<script src="<?=base_url()?>js/jquery-ui.js"></script>
|
||||
<script src="<?=base_url()?>js/popper.min.js"></script>
|
||||
<script src="<?=base_url()?>js/bootstrap.min.js"></script>
|
||||
<script src="<?=base_url()?>js/owl.carousel.min.js"></script>
|
||||
<script src="<?=base_url()?>js/jquery.stellar.min.js"></script>
|
||||
<script src="<?=base_url()?>js/jquery.countdown.min.js"></script>
|
||||
<script src="<?=base_url()?>js/jquery.magnific-popup.min.js"></script>
|
||||
<script src="<?=base_url()?>js/bootstrap-datepicker.min.js"></script>
|
||||
<script src="<?=base_url()?>js/aos.js"></script>
|
||||
|
||||
<script src="<?=base_url()?>js/typed.js"></script>
|
||||
|
||||
<script src="<?php echo base_url() ?>sweet-alert/sweetalert.js"></script>
|
||||
|
||||
<script src="<?=base_url()?>assets/plugin/toastr/toastr.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>assets/plugin/toastr/toastr.css">
|
||||
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<script type="text/javascript">
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.success("<?php echo $this->session->flashdata('success')?>");
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<script type="text/javascript">
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
|
||||
toastr.error("<?php echo $this->session->flashdata('error')?>");
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == ''): ?>
|
||||
<script>
|
||||
var typed = new Typed('.typed-words', {
|
||||
strings: [" Spanduk"," Kartu Nama"," Undangan"],
|
||||
typeSpeed: 80,
|
||||
backSpeed: 80,
|
||||
backDelay: 4000,
|
||||
startDelay: 1000,
|
||||
loop: true,
|
||||
showCursor: true
|
||||
});
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'project'): ?>
|
||||
<script>
|
||||
function openCity(evt, cityName) {
|
||||
var i, tabcontent, tablinks;
|
||||
tabcontent = document.getElementsByClassName("tabcontent");
|
||||
for (i = 0; i < tabcontent.length; i++) {
|
||||
tabcontent[i].style.display = "none";
|
||||
}
|
||||
tablinks = document.getElementsByClassName("tablinks");
|
||||
for (i = 0; i < tablinks.length; i++) {
|
||||
tablinks[i].className = tablinks[i].className.replace(" active", "");
|
||||
}
|
||||
document.getElementById(cityName).style.display = "block";
|
||||
evt.currentTarget.className += " active";
|
||||
}
|
||||
|
||||
document.getElementById("defaultOpen").click();
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function tukar_halaman(a,b)
|
||||
{
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "<?=base_url()?>home/tukar_halaman/",
|
||||
data: {no: a, kategori : b}, // appears as $_GET['id'] @ your backend side
|
||||
// dataType: "json",
|
||||
success: function(data1) {
|
||||
if (b == 1) {
|
||||
// console.log(data1);
|
||||
$("#undangan").html(data1);
|
||||
}else if (b == 2) {
|
||||
$("#kartu_nama").html(data1);
|
||||
}else if (b == 3) {
|
||||
$("#spanduk").html(data1);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == 'prelogin' ): ?>
|
||||
<script type="text/javascript">
|
||||
function setInputFilter(textbox, inputFilter) {
|
||||
["input", "keydown", "keyup", "mousedown", "mouseup", "select", "contextmenu", "drop"].forEach(function(event) {
|
||||
textbox.addEventListener(event, function() {
|
||||
if (inputFilter(this.value)) {
|
||||
this.oldValue = this.value;
|
||||
this.oldSelectionStart = this.selectionStart;
|
||||
this.oldSelectionEnd = this.selectionEnd;
|
||||
} else if (this.hasOwnProperty("oldValue")) {
|
||||
this.value = this.oldValue;
|
||||
this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);
|
||||
} else {
|
||||
this.value = "";
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Install input filters.
|
||||
setInputFilter(document.getElementById("no_tel"), function(value) {
|
||||
return /^-?\d*$/.test(value); });
|
||||
</script>
|
||||
|
||||
|
||||
<?php if ($this->session->flashdata('pendaftaran')):
|
||||
$data = $this->session->flashdata('pendaftaran');
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
swal({
|
||||
title: "Anda Berhasil Terdaftar",
|
||||
text: "Username = <?=$data['username']?> \n Password = <?=$data['username']?>",
|
||||
icon: "success",
|
||||
buttons: false,
|
||||
});
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
|
||||
<script src="<?=base_url()?>js/main.js"></script>
|
||||
8
application/views/home/site_mobile.php
Normal file
8
application/views/home/site_mobile.php
Normal file
@ -0,0 +1,8 @@
|
||||
<div class="site-mobile-menu">
|
||||
<div class="site-mobile-menu-header">
|
||||
<div class="site-mobile-menu-close mt-3">
|
||||
<span class="icon-close2 js-menu-toggle"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="site-mobile-menu-body"></div>
|
||||
</div>
|
||||
20
application/views/home/top_bar.php
Normal file
20
application/views/home/top_bar.php
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="border-bottom top-bar py-2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<p class="mb-0">
|
||||
<span class="mr-3"><strong>Phone:</strong> <a href="tel://#">+62 852 4223 9009</a></span>
|
||||
<span><strong>Email:</strong> <a href="#">Auliahdp@yahoo.co.id</a></span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<ul class="social-media">
|
||||
<li><a href="#" class="p-2"><span class="icon-facebook"></span></a></li>
|
||||
<li><a href="#" class="p-2"><span class="icon-twitter"></span></a></li>
|
||||
<li><a href="#" class="p-2"><span class="icon-instagram"></span></a></li>
|
||||
<li><a href="#" class="p-2"><span class="icon-linkedin"></span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user