first commit
This commit is contained in:
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>
|
6
application/cache/.htaccess
vendored
Normal file
6
application/cache/.htaccess
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<IfModule authz_core_module>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
11
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>
|
140
application/config/autoload.php
Normal file
140
application/config/autoload.php
Normal file
@ -0,0 +1,140 @@
|
||||
<?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 the system/libraries folder
|
||||
| or in your application/libraries folder.
|
||||
|
|
||||
| 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','cart','session');
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Drivers
|
||||
| -------------------------------------------------------------------
|
||||
| These classes are located in the system/libraries folder or in your
|
||||
| application/libraries folder within their own subdirectory. They
|
||||
| offer multiple interchangeable driver options.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache');
|
||||
*/
|
||||
|
||||
$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();
|
500
application/config/config.php
Normal file
500
application/config/config.php
Normal file
@ -0,0 +1,500 @@
|
||||
<?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/
|
||||
|
|
||||
| If this is not set then CodeIgniter will try guess the protocol, domain
|
||||
| and path to your installation. However, you should always configure this
|
||||
| explicitly and never rely on auto-guessing, especially in production
|
||||
| environments.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'http://localhost:8080/olshop';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
|
||||
$config['url_suffix'] = '.aspx';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/core_classes.html
|
||||
| http://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/
|
||||
|
|
||||
| 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.
|
||||
|
|
||||
| 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['allow_get_array'] = TRUE;
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you have enabled error logging, you can set an error threshold to
|
||||
| determine what gets logged. Threshold options are:
|
||||
| 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
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set this to TRUE if you want to use different cache files depending on the
|
||||
| URL query string. Please be aware this might result in numerous cache files.
|
||||
|
|
||||
*/
|
||||
$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.
|
||||
|
|
||||
| http://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '12345';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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 dependant.
|
||||
|
|
||||
| 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.
|
||||
|
|
||||
| '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 occurences with the PHP_EOL value.
|
||||
|
|
||||
| This is particularly useful for portability between UNIX-based OSes,
|
||||
| (usually \n) and Windows (\r\n).
|
||||
|
|
||||
*/
|
||||
$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)
|
||||
|
|
||||
*/
|
||||
$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'] = '';
|
86
application/config/constants.php
Normal file
86
application/config/constants.php
Normal file
@ -0,0 +1,86 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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.
|
||||
|
|
||||
*/
|
||||
define('FILE_READ_MODE', 0644);
|
||||
define('FILE_WRITE_MODE', 0666);
|
||||
define('DIR_READ_MODE', 0755);
|
||||
define('DIR_WRITE_MODE', 0755);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File Stream Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These modes are used when working with fopen()/popen()
|
||||
|
|
||||
*/
|
||||
|
||||
define('FOPEN_READ', 'rb');
|
||||
define('FOPEN_READ_WRITE', 'r+b');
|
||||
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
|
||||
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
|
||||
define('FOPEN_WRITE_CREATE', 'ab');
|
||||
define('FOPEN_READ_WRITE_CREATE', 'a+b');
|
||||
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
|
||||
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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
|
||||
|
|
||||
*/
|
||||
define('SHOW_DEBUG_BACKTRACE', TRUE);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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
|
||||
|
|
||||
*/
|
||||
define('EXIT_SUCCESS', 0); // no errors
|
||||
define('EXIT_ERROR', 1); // generic error
|
||||
define('EXIT_CONFIG', 3); // configuration error
|
||||
define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||
define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||
define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
||||
define('EXIT_USER_INPUT', 7); // invalid user input
|
||||
define('EXIT_DATABASE', 8); // database error
|
||||
define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
85
application/config/database.php
Normal file
85
application/config/database.php
Normal file
@ -0,0 +1,85 @@
|
||||
<?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.
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['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' => 'project',
|
||||
'password' => '',
|
||||
'database' => 'tokoperabotrumah',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => TRUE,
|
||||
'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">'
|
||||
);
|
102
application/config/foreign_chars.php
Normal file
102
application/config/foreign_chars.php
Normal file
@ -0,0 +1,102 @@
|
||||
<?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',
|
||||
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => '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:
|
||||
|
|
||||
| http://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: http://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' = Default migration naming (001_add_blog.php)
|
||||
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
|
||||
| Use timestamp format YYYYMMDDHHIISS.
|
||||
|
|
||||
| If this configuration value is missing the Migration library defaults
|
||||
| to 'sequential' for backward compatibility.
|
||||
|
|
||||
*/
|
||||
$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/';
|
156
application/config/mimes.php
Normal file
156
application/config/mimes.php
Normal file
@ -0,0 +1,156 @@
|
||||
<?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'),
|
||||
'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' => 'video/3gp',
|
||||
'mp4' => 'video/mp4',
|
||||
'm4a' => 'audio/x-m4a',
|
||||
'f4v' => 'video/mp4',
|
||||
'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' => 'audio/ogg',
|
||||
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
|
||||
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
|
||||
'ics' => 'text/calendar',
|
||||
'ical' => 'text/calendar',
|
||||
'zsh' => 'text/x-scriptzsh',
|
||||
'7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
|
||||
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
|
||||
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
|
||||
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
|
||||
'vcf' => 'text/x-vcard'
|
||||
);
|
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:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/profiling.html
|
||||
|
|
||||
*/
|
54
application/config/routes.php
Normal file
54
application/config/routes.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| URI ROUTING
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you re-map URI requests to specific controller functions.
|
||||
|
|
||||
| Typically there is a one-to-one relationship between a URL string
|
||||
| and its corresponding controller class/method. The segments in a
|
||||
| URL normally follow this pattern:
|
||||
|
|
||||
| example.com/class/method/id/
|
||||
|
|
||||
| In some instances, however, you may want to remap this relationship
|
||||
| so that a different class/function is called than the one
|
||||
| corresponding to the URL.
|
||||
|
|
||||
| Please see the user guide for complete details:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/routing.html
|
||||
|
|
||||
| -------------------------------------------------------------------------
|
||||
| RESERVED ROUTES
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
||||
| There are three reserved routes:
|
||||
|
|
||||
| $route['default_controller'] = 'welcome';
|
||||
|
|
||||
| This route indicates which controller class should be loaded if the
|
||||
| URI contains no data. In the above example, the "welcome" class
|
||||
| would be loaded.
|
||||
|
|
||||
| $route['404_override'] = 'errors/page_missing';
|
||||
|
|
||||
| This route will tell the Router which controller/method to use if those
|
||||
| provided in the URL cannot be matched to a valid route.
|
||||
|
|
||||
| $route['translate_uri_dashes'] = FALSE;
|
||||
|
|
||||
| This is not exactly a route, but allows you to automatically route
|
||||
| controller and method names that contain dashes. '-' isn't a valid
|
||||
| class or method name character, so it requires translation.
|
||||
| When you set this option to TRUE, it will replace ALL dashes in the
|
||||
| controller and method URI segments.
|
||||
|
|
||||
| Examples: my-controller/index -> my_controller/index
|
||||
| my-controller/my-method -> my_controller/my_method
|
||||
*/
|
||||
$route['default_controller'] = 'welcome';
|
||||
$route['404_override'] = '';
|
||||
$route['translate_uri_dashes'] = FALSE;
|
65
application/config/smileys.php
Normal file
65
application/config/smileys.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?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:
|
||||
| http://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')
|
||||
|
||||
);
|
211
application/config/user_agents.php
Normal file
211
application/config/user_agents.php
Normal file
@ -0,0 +1,211 @@
|
||||
<?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',
|
||||
'Chrome' => 'Chrome',
|
||||
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
|
||||
'Opera.*?Version' => 'Opera',
|
||||
'Opera' => 'Opera',
|
||||
'MSIE' => 'Internet Explorer',
|
||||
'Internet Explorer' => 'Internet Explorer',
|
||||
'Trident.* rv' => 'Internet Explorer',
|
||||
'Shiira' => 'Shiira',
|
||||
'Firefox' => 'Firefox',
|
||||
'Chimera' => 'Chimera',
|
||||
'Phoenix' => 'Phoenix',
|
||||
'Firebird' => 'Firebird',
|
||||
'Camino' => 'Camino',
|
||||
'Netscape' => 'Netscape',
|
||||
'OmniWeb' => 'OmniWeb',
|
||||
'Safari' => 'Safari',
|
||||
'Mozilla' => 'Mozilla',
|
||||
'Konqueror' => 'Konqueror',
|
||||
'icab' => 'iCab',
|
||||
'Lynx' => 'Lynx',
|
||||
'Links' => 'Links',
|
||||
'hotjava' => 'HotJava',
|
||||
'amaya' => 'Amaya',
|
||||
'IBrowse' => 'IBrowse',
|
||||
'Maxthon' => 'Maxthon',
|
||||
'Ubuntu' => 'Ubuntu Web Browser'
|
||||
);
|
||||
|
||||
$mobiles = array(
|
||||
// legacy array, old values commented out
|
||||
'mobileexplorer' => 'Mobile Explorer',
|
||||
// 'openwave' => 'Open Wave',
|
||||
// 'opera mini' => 'Opera Mini',
|
||||
// 'operamini' => 'Opera Mini',
|
||||
// 'elaine' => 'Palm',
|
||||
'palmsource' => 'Palm',
|
||||
// 'digital paths' => 'Palm',
|
||||
// 'avantgo' => 'Avantgo',
|
||||
// 'xiino' => 'Xiino',
|
||||
'palmscape' => 'Palmscape',
|
||||
// 'nokia' => 'Nokia',
|
||||
// 'ericsson' => 'Ericsson',
|
||||
// 'blackberry' => 'BlackBerry',
|
||||
// 'motorola' => 'Motorola'
|
||||
|
||||
// Phones and Manufacturers
|
||||
'motorola' => 'Motorola',
|
||||
'nokia' => 'Nokia',
|
||||
'palm' => 'Palm',
|
||||
'iphone' => 'Apple iPhone',
|
||||
'ipad' => 'iPad',
|
||||
'ipod' => 'Apple iPod Touch',
|
||||
'sony' => 'Sony Ericsson',
|
||||
'ericsson' => 'Sony Ericsson',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'cocoon' => 'O2 Cocoon',
|
||||
'blazer' => 'Treo',
|
||||
'lg' => 'LG',
|
||||
'amoi' => 'Amoi',
|
||||
'xda' => 'XDA',
|
||||
'mda' => 'MDA',
|
||||
'vario' => 'Vario',
|
||||
'htc' => 'HTC',
|
||||
'samsung' => 'Samsung',
|
||||
'sharp' => 'Sharp',
|
||||
'sie-' => 'Siemens',
|
||||
'alcatel' => 'Alcatel',
|
||||
'benq' => 'BenQ',
|
||||
'ipaq' => 'HP iPaq',
|
||||
'mot-' => 'Motorola',
|
||||
'playstation portable' => 'PlayStation Portable',
|
||||
'playstation 3' => 'PlayStation 3',
|
||||
'playstation vita' => 'PlayStation Vita',
|
||||
'hiptop' => 'Danger Hiptop',
|
||||
'nec-' => 'NEC',
|
||||
'panasonic' => 'Panasonic',
|
||||
'philips' => 'Philips',
|
||||
'sagem' => 'Sagem',
|
||||
'sanyo' => 'Sanyo',
|
||||
'spv' => 'SPV',
|
||||
'zte' => 'ZTE',
|
||||
'sendo' => 'Sendo',
|
||||
'nintendo dsi' => 'Nintendo DSi',
|
||||
'nintendo ds' => 'Nintendo DS',
|
||||
'nintendo 3ds' => 'Nintendo 3DS',
|
||||
'wii' => 'Nintendo Wii',
|
||||
'open web' => 'Open Web',
|
||||
'openweb' => 'OpenWeb',
|
||||
|
||||
// Operating Systems
|
||||
'android' => 'Android',
|
||||
'symbian' => 'Symbian',
|
||||
'SymbianOS' => 'SymbianOS',
|
||||
'elaine' => 'Palm',
|
||||
'series60' => 'Symbian S60',
|
||||
'windows ce' => 'Windows CE',
|
||||
|
||||
// Browsers
|
||||
'obigo' => 'Obigo',
|
||||
'netfront' => 'Netfront Browser',
|
||||
'openwave' => 'Openwave Browser',
|
||||
'mobilexplorer' => 'Mobile Explorer',
|
||||
'operamini' => 'Opera Mini',
|
||||
'opera mini' => 'Opera Mini',
|
||||
'opera mobi' => 'Opera Mobile',
|
||||
'fennec' => 'Firefox Mobile',
|
||||
|
||||
// Other
|
||||
'digital paths' => 'Digital Paths',
|
||||
'avantgo' => 'AvantGo',
|
||||
'xiino' => 'Xiino',
|
||||
'novarra' => 'Novarra Transcoder',
|
||||
'vodafone' => 'Vodafone',
|
||||
'docomo' => 'NTT DoCoMo',
|
||||
'o2' => 'O2',
|
||||
|
||||
// Fallback
|
||||
'mobile' => 'Generic Mobile',
|
||||
'wireless' => 'Generic Mobile',
|
||||
'j2me' => 'Generic Mobile',
|
||||
'midp' => 'Generic Mobile',
|
||||
'cldc' => 'Generic Mobile',
|
||||
'up.link' => 'Generic Mobile',
|
||||
'up.browser' => 'Generic Mobile',
|
||||
'smartphone' => 'Generic Mobile',
|
||||
'cellphone' => 'Generic Mobile'
|
||||
);
|
||||
|
||||
// There are hundreds of bots but these are the most common.
|
||||
$robots = array(
|
||||
'googlebot' => 'Googlebot',
|
||||
'msnbot' => 'MSNBot',
|
||||
'baiduspider' => 'Baiduspider',
|
||||
'bingbot' => 'Bing',
|
||||
'slurp' => 'Inktomi Slurp',
|
||||
'yahoo' => 'Yahoo',
|
||||
'askjeeves' => 'AskJeeves',
|
||||
'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'
|
||||
);
|
94
application/controllers/Cart.php
Normal file
94
application/controllers/Cart.php
Normal file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Cart extends CI_Controller {
|
||||
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
$this->load->model('Barang');
|
||||
$this->load->model('Kategori');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$hd['title'] = "Toko Dzaky Mulya";
|
||||
$data['active'] = "None";
|
||||
$data['kategori'] = $this->Kategori->kategori_all();
|
||||
|
||||
$this->load->view('front/header',$hd);
|
||||
$this->load->view('front/shopstep');
|
||||
$this->load->view('front/Cart',$data);
|
||||
$this->load->view('front/footer');
|
||||
}
|
||||
|
||||
public function tambah()
|
||||
{
|
||||
$data = array(
|
||||
'id' => $_POST['id'],
|
||||
'name' => $_POST['nama'],
|
||||
'price' => $_POST['harga'],
|
||||
'qty' => $_POST['qty'],
|
||||
);
|
||||
//print_r($data);
|
||||
$this->cart->insert($data);
|
||||
redirect('product');
|
||||
}
|
||||
public function update(){
|
||||
$i= 0;
|
||||
foreach ($_POST as $p){
|
||||
$i= $i+1;
|
||||
$data = array(
|
||||
'rowid' => $p['rowid'],
|
||||
'qty' => $p['qty']
|
||||
);
|
||||
$this->cart->update($data);
|
||||
}
|
||||
redirect('product');
|
||||
}
|
||||
public function check_out(){
|
||||
//print_r($this->cart->contents());
|
||||
$this->load->view('front/Checkout');
|
||||
}
|
||||
public function check_out_conv(){
|
||||
$data['profile'] = array(
|
||||
'nama' => $_POST['nama'],
|
||||
'email' => $_POST['email'],
|
||||
'alamat' => $_POST['alamat'],
|
||||
'kota_kab' => $_POST['kota'],
|
||||
'provinsi' => $_POST['prov'],
|
||||
'telp' => $_POST['telp']
|
||||
);
|
||||
$data['transaksi'] = array(
|
||||
'tanggal_order' => date('Y-m-d'),
|
||||
'total_harga' => $this->cart->total(),
|
||||
'cara_bayar' => $_POST['cara_bayar'],
|
||||
'type' => $_POST['tipe'],
|
||||
'status' => 'PENDING'
|
||||
);
|
||||
$data['belanjaan'] = $this->cart->contents();
|
||||
//echo JSON_encode($data);
|
||||
$this->load->model('User');
|
||||
$this->load->model('Transaction');
|
||||
$idProf = $this->User->tambah_profil($data['profile']);
|
||||
if( $idProf != 0){
|
||||
$idTrans = $this->Transaction->tambah_trans($data['transaksi']);
|
||||
if( $idProf != 0){
|
||||
foreach ($data['belanjaan'] as $belanja){
|
||||
$sal = array(
|
||||
'pembeli' => $idProf,
|
||||
'transaksi' => $idTrans,
|
||||
'barang' => $belanja['id'],
|
||||
'qty' => $belanja['qty'],
|
||||
'tanggal' => date('Y-m-d')
|
||||
);
|
||||
$this->Transaction->tambah_sales($sal);
|
||||
$this->Barang->barang_sold($sal['barang'],$sal['qty']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
16
application/controllers/Member.php
Normal file
16
application/controllers/Member.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Member extends CI_Controller {
|
||||
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
$this->load->model('Barang');
|
||||
$this->load->model('Kategori');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
}
|
||||
}
|
99
application/controllers/Product.php
Normal file
99
application/controllers/Product.php
Normal file
@ -0,0 +1,99 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Product extends CI_Controller {
|
||||
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
$this->load->library('Pagination');
|
||||
$this->load->model('Barang');
|
||||
$this->load->model('Kategori');
|
||||
|
||||
}
|
||||
|
||||
public function index($kate = '')
|
||||
{
|
||||
if (empty($kate)){
|
||||
//ambil data kategori
|
||||
//ambil data semua barang
|
||||
//pagination
|
||||
|
||||
//$hd['title'] = "Toko Dzaky Mulya";
|
||||
//$data['active'] = "Produk";
|
||||
//$data['barang'] = $this->Barang->barang_all();
|
||||
//$data['kategori'] = $this->Kategori->kategori_all();
|
||||
|
||||
//$this->load->view('front/header',$hd);
|
||||
//$this->load->view('front/shopstep');
|
||||
//$this->load->view('front/produk',$data);
|
||||
//$this->load->view('front/footer');
|
||||
$this->paging();
|
||||
}
|
||||
else{
|
||||
echo $kate;
|
||||
$this->paging($kate);
|
||||
}
|
||||
}
|
||||
|
||||
public function paging($kat="")
|
||||
{
|
||||
$barang = $this->Barang->barang_all();
|
||||
$config['base_url'] = base_url()."index.php/product/paging";
|
||||
$config['total_rows'] = count($barang);
|
||||
$config['per_page'] = "6";
|
||||
$config["uri_segment"] = 3;
|
||||
$choice = $config["total_rows"] / $config["per_page"];
|
||||
$config["num_links"] = floor($choice);
|
||||
|
||||
$config['full_tag_open'] = "<ul class='pagination'>";
|
||||
$config['full_tag_close'] ="</ul>";
|
||||
$config['num_tag_open'] = '<li>';
|
||||
$config['num_tag_close'] = '</li>';
|
||||
$config['cur_tag_open'] = "<li class='disabled'><li class='active'><a href='#'>";
|
||||
$config['cur_tag_close'] = "<span class='sr-only'></span></a></li>";
|
||||
$config['next_tag_open'] = "<li>";
|
||||
$config['next_tagl_close'] = "</li>";
|
||||
$config['prev_tag_open'] = "<li>";
|
||||
$config['prev_tagl_close'] = "</li>";
|
||||
$config['first_tag_open'] = "<li>";
|
||||
$config['first_tagl_close'] = "</li>";
|
||||
$config['last_tag_open'] = "<li>";
|
||||
$config['last_tagl_close'] = "</li>";
|
||||
|
||||
|
||||
$this->pagination->initialize($config);
|
||||
$data['page'] = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
|
||||
$data['barang'] = $this->Barang->barang_all2($config["per_page"],$data['page']);
|
||||
|
||||
$hd['title'] = "Toko Dzaky Mulya";
|
||||
$data['active'] = "Produk";
|
||||
$data['kategori'] = $this->Kategori->kategori_all();
|
||||
$data['pagination'] = $this->pagination->create_links();
|
||||
|
||||
$this->load->view('front/header',$hd);
|
||||
$this->load->view('front/shopstep');
|
||||
$this->load->view('front/produk',$data);
|
||||
$this->load->view('front/footer');
|
||||
}
|
||||
|
||||
public function top_prodct(){
|
||||
//ambil data produk dengan sales paling banyak
|
||||
//buat
|
||||
}
|
||||
|
||||
public function new_prodct(){
|
||||
//ambil data produk dengan sales paling banyak
|
||||
//buat
|
||||
}
|
||||
|
||||
public function kategori($kat){
|
||||
//ambil data dengan kategori tertentu
|
||||
$w = array(
|
||||
'kategori' => $kat
|
||||
);
|
||||
$data = $this->barang->barang_cust($w);
|
||||
//tampilkan
|
||||
//pagination
|
||||
}
|
||||
}
|
44
application/controllers/User.php
Normal file
44
application/controllers/User.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class User extends CI_Controller {
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
$this->load->model('UserModel');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$location = site_url('welcome');
|
||||
header("Location: ".$location);
|
||||
}
|
||||
|
||||
public function login()
|
||||
{
|
||||
$data['username'] = $_POST['username'];
|
||||
$data['password'] = $_POST['password'];
|
||||
$result = $this->UserModel->login($data);
|
||||
if (isset($result)){
|
||||
$newdata = array(
|
||||
'username' => $result->username,
|
||||
'type' => $result->type,
|
||||
'logged_in' => TRUE
|
||||
);
|
||||
$this->session->set_userdata($newdata);
|
||||
$location = site_url('welcome');
|
||||
header("Location: ".$location);
|
||||
}else{
|
||||
$location = site_url('welcome');
|
||||
header("Location: ".$location);
|
||||
}
|
||||
}
|
||||
|
||||
public function logout(){
|
||||
$deldata = array('username','type','logged_in');
|
||||
$this->session->unset_userdata($deldata);
|
||||
$location = site_url('welcome');
|
||||
header("Location: ".$location);
|
||||
}
|
||||
}
|
||||
?>
|
35
application/controllers/Welcome.php
Normal file
35
application/controllers/Welcome.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Welcome extends CI_Controller {
|
||||
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
$this->load->model('Barang');
|
||||
$this->load->model('Kategori');
|
||||
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
//$this->load->view('welcome_message');
|
||||
//ambil data slideshow
|
||||
//ambil data hot produk
|
||||
//ambil data new produk
|
||||
//load view home
|
||||
// $a = array(
|
||||
// 'id' => 1
|
||||
// );
|
||||
// $d = $this->Barang->caribarang('a');
|
||||
// echo JSON_ENCODE($d);
|
||||
$hd['title'] = "Toko Dzaky Mulya";
|
||||
$ss['active'] = "Home";
|
||||
$data['kategori'] = $this->Kategori->kategori_all();
|
||||
$this->load->view('front/header',$hd);
|
||||
$this->load->view('front/slideshow',$ss);
|
||||
$this->load->view('front/Home',$data);
|
||||
$this->load->view('front/footer');
|
||||
|
||||
}
|
||||
}
|
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>
|
93
application/controllers/su/BarangAdm.php
Normal file
93
application/controllers/su/BarangAdm.php
Normal file
@ -0,0 +1,93 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class BarangAdm extends CI_Controller {
|
||||
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
if($this->session->userdata('logged_in')==false){
|
||||
$location = site_url('welcome');
|
||||
header("Location: ".$location);
|
||||
}
|
||||
$this->load->model('Barang');
|
||||
$this->load->model('Transaction');
|
||||
$this->load->model('Kategori');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$hd['title'] = "Barang - Toko Dzaky Mulya";
|
||||
$hd['User'] = $this->session->userdata('username');
|
||||
$sb['aktif'] = "Barang";
|
||||
$sb['order'] = $this->Transaction->pending_order();
|
||||
$data['table'] = $this->Barang->barang_all();
|
||||
|
||||
$this->load->view('back/header',$hd);
|
||||
$this->load->view('back/sidebar',$sb);
|
||||
$this->load->view('back/barang',$data);
|
||||
$this->load->view('back/footer');
|
||||
}
|
||||
|
||||
public function tambah()
|
||||
{
|
||||
$hd['title'] = "Tambah Barang - Toko Dzaky Mulya";
|
||||
$hd['User'] = $this->session->userdata('username');
|
||||
$sb['aktif'] = "Barang";
|
||||
$sb['order'] = $this->Transaction->pending_order();
|
||||
$data['kategori'] = $this->Kategori->loadkategori();
|
||||
|
||||
$this->load->view('back/header');
|
||||
$this->load->view('back/sidebar',$sb);
|
||||
$this->load->view('back/tambahBarang',$data);
|
||||
$this->load->view('back/footer');
|
||||
}
|
||||
|
||||
public function tambah_conf()
|
||||
{
|
||||
$data = array(
|
||||
'nama' => $_POST['nama'],
|
||||
'kdbarang' => $_POST['kode'],
|
||||
'harga' => $_POST['harga'],
|
||||
'deskripsi' => $_POST['desc'],
|
||||
'kategori' => $_POST['kat'],
|
||||
'tags' => $_POST['tag'],
|
||||
'stok' => $_POST['stok'],
|
||||
'last_update' => date('Y-m-d G:i:s')
|
||||
);
|
||||
if($this->Barang->tambahbarang($data)){
|
||||
echo "sukses";
|
||||
}else{
|
||||
redirect('Produk/Tambah');
|
||||
}
|
||||
}
|
||||
|
||||
public function update($id)
|
||||
{
|
||||
$data['kategori'] = $this->Barang->loadkategori();
|
||||
$where = array('id'=>$id);
|
||||
$data['barang'] = $this->Barang->barang_cust($where);
|
||||
$this->load->view('back/updateBarang',$data);
|
||||
}
|
||||
|
||||
public function update_conf()
|
||||
{
|
||||
$data = array(
|
||||
'nama' => $_POST['nama'],
|
||||
'kdbarang' => $_POST['kode'],
|
||||
'harga' => $_POST['harga'],
|
||||
'deskripsi' => $_POST['desc'],
|
||||
'kategori' => $_POST['kat'],
|
||||
'tags' => $_POST['tag'],
|
||||
'stok' => $_POST['stok'],
|
||||
'last_update' => date('Y-m-d G:i:s')
|
||||
);
|
||||
print_r($data);
|
||||
if($this->Barang->updatebarang($_POST['id'],$data)){
|
||||
echo "sukses";
|
||||
}else{
|
||||
redirect('Produk/update/1');
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
39
application/controllers/su/Dashboard.php
Normal file
39
application/controllers/su/Dashboard.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Dashboard extends CI_Controller {
|
||||
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
if($this->session->userdata('logged_in')==false){
|
||||
$location = site_url('welcome');
|
||||
header("Location: ".$location);
|
||||
}
|
||||
$this->load->model('Transaction');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
// echo "<ul>";
|
||||
// echo "<li><a href='".site_url('su/user/tambah')."'>Tambah User(general)</a></li>";
|
||||
// echo "<li><a href=''>View User</a></li>";
|
||||
// echo "<li><a href=''>Delete User User</a></li>";
|
||||
// echo "<li><a href=''>Update User User</a></li>";
|
||||
|
||||
// echo "<li><a href='".site_url('su/barang')."'>Barang</a></li>";
|
||||
// echo "<li><a href='".site_url('su/barang/tambah')."'>Tambah Barang</a></li>";
|
||||
// echo "<li><a href=''>Update Barang</a></li>";
|
||||
// echo "<li><a href=''>Delete Barang</a></li>";
|
||||
// echo "</ul>";
|
||||
//$this->load->view('back/dashboard');
|
||||
$sb['aktif'] = "Home";
|
||||
$sb['order'] = $this->Transaction->pending_order();
|
||||
$hd['title'] = "Dashboard Admin - Toko Dzaky Mulya";
|
||||
$hd['User'] = $this->session->userdata('username');
|
||||
$this->load->view('back/header',$hd);
|
||||
$this->load->view('back/sidebar',$sb);
|
||||
$this->load->view('back/dashboard');
|
||||
$this->load->view('back/footer');
|
||||
}
|
||||
}
|
52
application/controllers/su/Order.php
Normal file
52
application/controllers/su/Order.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Order extends CI_Controller {
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
if($this->session->userdata('logged_in')==false){
|
||||
$location = site_url('welcome');
|
||||
header("Location: ".$location);
|
||||
}
|
||||
$this->load->model('Barang');
|
||||
$this->load->model('Transaction');
|
||||
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$hd['title'] = "View Order - Toko Dzaky Mulya";
|
||||
$hd['User'] = $this->session->userdata('username');
|
||||
$sb['aktif'] = "Order";
|
||||
$sb['order'] = $this->Transaction->pending_order();
|
||||
$data['table'] = $this->Transaction->get_order();
|
||||
|
||||
$this->load->view('back/header',$hd);
|
||||
$this->load->view('back/sidebar',$sb);
|
||||
$this->load->view('back/order',$data);
|
||||
$this->load->view('back/footer');
|
||||
}
|
||||
|
||||
public function order_view($id)
|
||||
{
|
||||
$hd['title'] = "Order - Toko Dzaky Mulya";
|
||||
$hd['User'] = $this->session->userdata('username');
|
||||
$sb['aktif'] = "Order";
|
||||
$sb['order'] = $this->Transaction->pending_order();
|
||||
$data['data'] = $this->Transaction->get_single_order($id);
|
||||
$this->load->view('back/header',$hd);
|
||||
$this->load->view('back/sidebar',$sb);
|
||||
$this->load->view('back/vieworder',$data);
|
||||
$this->load->view('back/footer');
|
||||
}
|
||||
|
||||
public function update_order($id)
|
||||
{
|
||||
$this->Transaction->update_order($id,$_POST['status']);
|
||||
$location = site_url('su/order');
|
||||
header("Location: ".$location);
|
||||
die();
|
||||
}
|
||||
}
|
||||
?>
|
11
application/core/index.html
Normal file
11
application/core/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/helpers/index.html
Normal file
11
application/helpers/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/hooks/index.html
Normal file
11
application/hooks/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/index.html
Normal file
11
application/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/language/english/index.html
Normal file
11
application/language/english/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/language/index.html
Normal file
11
application/language/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/libraries/index.html
Normal file
11
application/libraries/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
application/logs/index.html
Normal file
11
application/logs/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
67
application/models/Barang.php
Normal file
67
application/models/Barang.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
class Barang extends CI_Model{
|
||||
//print_r($this->db->last_query());
|
||||
function tambahbarang($data)
|
||||
{
|
||||
return $this->db->insert('barang',$data);
|
||||
}
|
||||
|
||||
function barang_all()
|
||||
{
|
||||
$query = $this->db->get('barang');
|
||||
//return $query->row();
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
function barang_all2($limit,$offset)
|
||||
{
|
||||
$query = $this->db->get('barang',$limit,$offset);
|
||||
//return $query->row();
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
function barang_cust($where)
|
||||
{
|
||||
$this->db->where($where);
|
||||
$query = $this->db->get('barang');
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
function updatebarang($id,$data)
|
||||
{
|
||||
$this->db->where('id',$id);
|
||||
return $this->db->update('barang',$data);
|
||||
}
|
||||
|
||||
function deletebarang($id)
|
||||
{
|
||||
$this->db->where('id', $id);
|
||||
return $this->db->delete('barang');
|
||||
}
|
||||
|
||||
function caribarang($key)
|
||||
{
|
||||
$array = array('nama' => $key, 'kdbarang' => $key, 'tags' => $key);
|
||||
$this->db->or_like($array);
|
||||
$query = $this->db->get('barang');
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
function barang_sold($id,$qty)
|
||||
{
|
||||
$this->db->set('stok', 'stok - ' . (int) $qty, FALSE);
|
||||
$this->db->where('id', $id);
|
||||
return $this->db->update('barang');
|
||||
}
|
||||
|
||||
function baranglaris()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function barangbaru()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
37
application/models/Kategori.php
Normal file
37
application/models/Kategori.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
class Kategori extends CI_Model{
|
||||
//print_r($this->db->last_query());
|
||||
function tambahkategori($data)
|
||||
{
|
||||
return $this->db->insert('kategori',$data);
|
||||
}
|
||||
|
||||
function kategori_all()
|
||||
{
|
||||
$query = $this->db->get('kategori');
|
||||
//return $query->result();
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
function loadkategori()
|
||||
{
|
||||
$this->db->select('nama,id');
|
||||
$this->db->where('order !=','0');
|
||||
$query = $this->db->get('kategori');
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function updatekategori($id,$data)
|
||||
{
|
||||
$this->db->where('id',$id);
|
||||
return $this->db->update('barang',$data);
|
||||
}
|
||||
|
||||
function deletekategori($id)
|
||||
{
|
||||
$this->db->where('id', $id);
|
||||
return $this->db->delete('barang');
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
65
application/models/Transaction.php
Normal file
65
application/models/Transaction.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
class Transaction extends CI_Model{
|
||||
function get_all(){
|
||||
$query = $this->db->get('transaksi');
|
||||
return $query->row();
|
||||
//return $query->result_array();
|
||||
}
|
||||
|
||||
function get_order()
|
||||
{
|
||||
$q = "SELECT s.transaksi as id,p.nama,p.kota_kab,p.provinsi,sum(s.qty) as jumlah,";
|
||||
$q .= "t.total_harga,DATE_FORMAT(t.tanggal_order,'%d %b %Y') as tgl,t.status ";
|
||||
$q .= "FROM sales s ";
|
||||
$q .= "LEFT JOIN profil p ON s.pembeli = p.id ";
|
||||
$q .= "LEFT JOIN transaksi t ON s.transaksi = t.id ";
|
||||
$q .= "WHERE t.type = 'ONLINE' ";
|
||||
$q .= "GROUP BY s.transaksi;";
|
||||
$query = $this->db->query($q);
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
function get_single_order($id)
|
||||
{
|
||||
$query = $this->db->get_where('sales', array('transaksi' => $id),1);
|
||||
$idp = $query->result_array();
|
||||
$query = $this->db->get_where('profil', array('id' => $idp[0]['pembeli']));
|
||||
$result['profil'] = $query->result_array();
|
||||
$query = $this->db->get_where('transaksi', array('id' => $id));
|
||||
$result['transaksi'] = $query->result_array();
|
||||
$q = "SELECT b.nama,s.qty,b.harga FROM sales s ";
|
||||
$q .= "LEFT JOIN barang b ON s.barang=b.id ";
|
||||
$q .= "WHERE s.transaksi=".$id.";";
|
||||
$query = $this->db->query($q);
|
||||
$result['barang'] = $query->result_array();
|
||||
return $result;
|
||||
}
|
||||
|
||||
function pending_order()
|
||||
{
|
||||
$this->db->select('count(*) as ttl');
|
||||
$query = $this->db->get_where('transaksi', array('status' => 'pending','type' => 'online'));
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
function update_order($id,$status)
|
||||
{
|
||||
$this->db->set('status', $status);
|
||||
$this->db->where('id', $id);
|
||||
$this->db->update('transaksi');
|
||||
}
|
||||
|
||||
function tambah_trans($data)
|
||||
{
|
||||
if($this->db->insert('transaksi',$data)){
|
||||
return $this->db->insert_id();
|
||||
}else return 0;
|
||||
}
|
||||
|
||||
function tambah_sales($data)
|
||||
{
|
||||
return $this->db->insert('sales',$data);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
19
application/models/UserModel.php
Normal file
19
application/models/UserModel.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
class UserModel extends CI_Model{
|
||||
|
||||
function tambah($data)
|
||||
{
|
||||
return $this->db->insert('user',$data);
|
||||
}
|
||||
function tambah_profil($data)
|
||||
{
|
||||
if($this->db->insert('profil',$data)){
|
||||
return $this->db->insert_id();
|
||||
}else return 0;
|
||||
}
|
||||
function login($data)
|
||||
{
|
||||
$query = $this->db->get_where('users', array('username' => $data['username'],'pass'=>$data['password']), 1);
|
||||
return $query->row();
|
||||
}
|
||||
}
|
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>
|
46
application/views/back/Order.php
Normal file
46
application/views/back/Order.php
Normal file
@ -0,0 +1,46 @@
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>asset/css/jquery.dataTables.css">
|
||||
<div class="col-sm-10" id="contents">
|
||||
<h3>Order</h3>
|
||||
<hr>
|
||||
<div class="col-sm-10">
|
||||
<table class="table" id="tbl">
|
||||
<thead><tr>
|
||||
<td>Nama</td>
|
||||
<td>Kota/Kab</td>
|
||||
<td>Provinsi</td>
|
||||
<td>Jumlah Barang</td>
|
||||
<td>Total Harga</td>
|
||||
<td>Tanggal</td>
|
||||
<td>Status</td>
|
||||
<td>Action</td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach($table as $tb) {?>
|
||||
<tr>
|
||||
<td><?php echo $tb['nama']; ?></td>
|
||||
<td><?php echo $tb['kota_kab']; ?></td>
|
||||
<td><?php echo $tb['provinsi']; ?></td>
|
||||
<td><?php echo $tb['jumlah']; ?></td>
|
||||
<td><?php echo $tb['total_harga'] ?></td>
|
||||
<td><?php echo $tb['tgl'] ?></td>
|
||||
<td><?php echo $tb['status'] ?></td>
|
||||
<td>
|
||||
<a href="<?php echo site_url("su/order/order_view/".$tb['id'])?>">View</a>
|
||||
Delete
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>asset/js/jquery.dataTables.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tbl').DataTable({
|
||||
"pageLength": 5,
|
||||
"lengthMenu": [ 5, 10, 25, 50, 75, 100 ],
|
||||
"processing": true
|
||||
});
|
||||
});
|
||||
</script>
|
39
application/views/back/barang.php
Normal file
39
application/views/back/barang.php
Normal file
@ -0,0 +1,39 @@
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>asset/css/jquery.dataTables.css">
|
||||
<div class="col-sm-10" id="contents">
|
||||
<h3>Barang</h3>
|
||||
<hr>
|
||||
<div class="col-sm-10">
|
||||
<table class="table" id="tbl">
|
||||
<thead><tr>
|
||||
<td>Nama</td>
|
||||
<td>Kode Barang</td>
|
||||
<td>Harga</td>
|
||||
<td>Kategori</td>
|
||||
<td>Stok</td>
|
||||
<td>Action</td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach($table as $tb) {?>
|
||||
<tr>
|
||||
<td><?php echo $tb['nama']; ?></td>
|
||||
<td><?php echo $tb['kdbarang']; ?></td>
|
||||
<td><?php echo $tb['harga']; ?></td>
|
||||
<td><?php echo $tb['kategori'] ?></td>
|
||||
<td><?php echo $tb['stok'] ?></td>
|
||||
<td>View Edit Delete</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>asset/js/jquery.dataTables.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tbl').DataTable({
|
||||
"pageLength": 5,
|
||||
"lengthMenu": [ 5, 10, 25, 50, 75, 100 ],
|
||||
"processing": true
|
||||
});
|
||||
});
|
||||
</script>
|
5
application/views/back/contentTemp.php
Normal file
5
application/views/back/contentTemp.php
Normal file
@ -0,0 +1,5 @@
|
||||
<div class="col-sm-10" id="contents">
|
||||
<p>
|
||||
Hello World!!
|
||||
</p>
|
||||
</div>
|
5
application/views/back/dashboard.php
Normal file
5
application/views/back/dashboard.php
Normal file
@ -0,0 +1,5 @@
|
||||
<div class="col-sm-10" id="contents">
|
||||
<p>
|
||||
Hello World!!
|
||||
</p>
|
||||
</div>
|
28
application/views/back/footer.php
Normal file
28
application/views/back/footer.php
Normal file
@ -0,0 +1,28 @@
|
||||
<footer class="text-center" style="position: fixed;height: 50px;bottom: 0;width: 100%;">Copyright <a href="http://allazhar.com"><strong>AllAzhar.com</strong></a></footer>
|
||||
|
||||
<div class="modal" id="addWidgetModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><EFBFBD></button>
|
||||
<h4 class="modal-title">Add Widget</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Add a widget stuff here..</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" data-dismiss="modal" class="btn">Close</a>
|
||||
<a href="#" class="btn btn-primary">Save changes</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dalog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- script references -->
|
||||
|
||||
<script src="<?php echo base_url()?>asset/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo base_url()?>asset/js/scripts.js"></script>
|
||||
</body>
|
||||
</html>
|
85
application/views/back/header.php
Normal file
85
application/views/back/header.php
Normal file
@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo $title ?></title>
|
||||
<meta name="generator" content="Bootply" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link href="<?php echo base_url()?>asset/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<link href="<?php echo base_url()?>asset/css/styles.css" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>asset/css/customadmin.css" rel="stylesheet">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
/*
|
||||
var loading = "<div id='contents'><img src='<?php echo base_url(); ?>asset/img/loading7.gif' alt='loading' style='float:right;margin:100px 500px;'/></div>";
|
||||
var imgloading = "<img src='<?php echo base_url(); ?>asset/img/ajax_loading.gif' alt='loading' id='imgloading' width='20px;' style='float:right;margin-top:12px;display:block;' />";
|
||||
// $(document).ready(function() {
|
||||
// setTimeout(function(){
|
||||
// $("div.alert").fadeOut("slow", function () {
|
||||
// $("div.alert").remove();
|
||||
// });
|
||||
// }, 3000);
|
||||
// $('#content').html(loading);
|
||||
// $("#content").load("user/loadform");
|
||||
// });
|
||||
|
||||
$(document).on('click','.sidebar li:not(.nav) a', function(event) {
|
||||
//$('#imgloading').remove();
|
||||
//$(imgloading).appendTo($(this));
|
||||
//$('#contents').html(loading);
|
||||
//$(".selected", event.delegateTarget).removeClass("selected");
|
||||
//$(this).parent().addClass("selected");
|
||||
event.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var base_url = 'http://localhost/toko2/index.php/su/'
|
||||
$.ajax({
|
||||
url: base_url+href,
|
||||
success: function()
|
||||
{
|
||||
$("#contents").load(href);
|
||||
$('#contents').fadeIn(3000);
|
||||
//$('#imgloading').remove();
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
//alert("Status: " + textStatus);
|
||||
alert("Error: " + errorThrown);
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
*/
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- header -->
|
||||
<div id="top-nav" class="navbar navbar-inverse navbar-static-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Dashboard</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"></i> <?php echo $User ?> <span class="caret"></span></a>
|
||||
<ul id="g-account-menu" class="dropdown-menu" role="menu">
|
||||
<li><a href="#">My Profile</a></li>
|
||||
<li><a href="<?php echo site_url('welcome') ?>">Toko</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="<?php echo site_url('user/logout') ?>"><i class="glyphicon glyphicon-lock"></i> Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
30
application/views/back/sidebar.php
Normal file
30
application/views/back/sidebar.php
Normal file
@ -0,0 +1,30 @@
|
||||
<!-- Main -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-2 sidebar" id="sideadmin">
|
||||
<!-- Left column -->
|
||||
<ul class="nav nav-stacked sidebarbody">
|
||||
<li class="<?php if($aktif=="Home")echo "active" ?>"> <a href="Dashboard"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li class="<?php if($aktif=="Order")echo "active" ?>"><a href="<?php echo site_url("su\order")?>"><i class="glyphicon glyphicon-shopping-cart"></i> Order <?php if($order->ttl > 0){ ?><span class="badge badge-info"><?php echo $order->ttl?></span><?php } ?></a></li>
|
||||
<li class="nav-header"> <a href="#" style="pointer-events: none" data-toggle="collapse" data-target="#menu1"><i class="glyphicon glyphicon-stats"></i> Statistic </a>
|
||||
<ul class="nav nav-stacked" id="menu1" style="margin-left:20px;">
|
||||
<li class="<?php if($aktif=="Sales")echo "active" ?>"><a href="#">Sales</a></li>
|
||||
<li class="<?php if($aktif=="Transactions")echo "active" ?>"><a href="#">Transactions</a></li>
|
||||
<li class="<?php if($aktif=="Views")echo "active" ?>"><a href="#">Views</a></li>
|
||||
<li class="<?php if($aktif=="Requests")echo "active" ?>"><a href="#">Requests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="<?php if($aktif=="Barang")echo "active" ?>"><a href="<?php echo site_url("su\barangAdm")?>"><i class="glyphicon glyphicon-apple"></i> Barang</a></li>
|
||||
<li class="<?php if($aktif=="Member")echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-user"></i> Member</a></li>
|
||||
<li class="nav-header"> <a href="#" style="pointer-events: none" data-toggle="collapse" data-target="#menu2"><i class="glyphicon glyphicon-cog"></i> Options </a>
|
||||
<ul class="nav nav-stacked" id="menu2" style="margin-left:20px;">
|
||||
<li class="<?php if($aktif=="Toko")echo "active" ?>"><a href="#">Toko</a></li>
|
||||
<li class="<?php if($aktif=="Slideshow")echo "active" ?>"><a href="#">Slideshow</a></li>
|
||||
<li class="<?php if($aktif=="Kategori")echo "active" ?>"><a href="#">Kategori</a></li>
|
||||
<li class="<?php if($aktif=="About")echo "active" ?>"><a href="#">About</a></li>
|
||||
<li class="<?php if($aktif=="Contact")echo "active" ?>"><a href="#">Contact</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /col-3 -->
|
67
application/views/back/tambahBarang.php
Normal file
67
application/views/back/tambahBarang.php
Normal file
@ -0,0 +1,67 @@
|
||||
<div class="col-sm-10" id="contents">
|
||||
<a href="#"><h3>Tambah Barang</h3></a>
|
||||
<hr>
|
||||
<div class="col-sm-7">
|
||||
<form class="form-horizontal" id="form" action="tambah_conf" method="post" name="fo1">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Nama</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" placeholder="Nama" name="nama" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Kode</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" placeholder="Kode Barang" name="kode" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Harga</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" class="form-control" placeholder="Harga" name="harga" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Deskripsi</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" rows="3" name="desc" placeholder="Deskripsi Produk" required></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Kategori</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="kat">
|
||||
<?php foreach ($kategori as $ka){
|
||||
echo "<option value='".$ka->id."'>".$ka->nama."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Stok</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" class="form-control" placeholder="Stok" name="stok" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Tags</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" placeholder="Tags" name="Tags" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Foto</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" placeholder="Pilih File" name="foto" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-default">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
152
application/views/back/testAdminDashboard.php
Normal file
152
application/views/back/testAdminDashboard.php
Normal file
@ -0,0 +1,152 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title>Dashboard Admin</title>
|
||||
<meta name="generator" content="Bootply" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link href="<?php echo base_url()?>asset/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<link href="<?php echo base_url()?>asset/css/styles.css" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>asset/css/custom.css" rel="stylesheet">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
/*
|
||||
var loading = "<div id='contents'><img src='<?php echo base_url(); ?>asset/img/loading7.gif' alt='loading' style='float:right;margin:100px 500px;'/></div>";
|
||||
var imgloading = "<img src='<?php echo base_url(); ?>asset/img/ajax_loading.gif' alt='loading' id='imgloading' width='20px;' style='float:right;margin-top:12px;display:block;' />";
|
||||
// $(document).ready(function() {
|
||||
// setTimeout(function(){
|
||||
// $("div.alert").fadeOut("slow", function () {
|
||||
// $("div.alert").remove();
|
||||
// });
|
||||
// }, 3000);
|
||||
// $('#content').html(loading);
|
||||
// $("#content").load("user/loadform");
|
||||
// });
|
||||
|
||||
$(document).on('click','.sidebar li:not(.nav) a', function(event) {
|
||||
//$('#imgloading').remove();
|
||||
//$(imgloading).appendTo($(this));
|
||||
//$('#contents').html(loading);
|
||||
//$(".selected", event.delegateTarget).removeClass("selected");
|
||||
//$(this).parent().addClass("selected");
|
||||
event.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var base_url = 'http://localhost/toko2/index.php/su/'
|
||||
$.ajax({
|
||||
url: base_url+href,
|
||||
success: function()
|
||||
{
|
||||
$("#contents").load(href);
|
||||
$('#contents').fadeIn(3000);
|
||||
//$('#imgloading').remove();
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
//alert("Status: " + textStatus);
|
||||
alert("Error: " + errorThrown);
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
*/
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- header -->
|
||||
<div id="top-nav" class="navbar navbar-inverse navbar-static-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Dashboard</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"></i> Admin <span class="caret"></span></a>
|
||||
<ul id="g-account-menu" class="dropdown-menu" role="menu">
|
||||
<li><a href="#">My Profile</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="#"><i class="glyphicon glyphicon-lock"></i> Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-2 sidebar" id="sideadmin">
|
||||
<!-- Left column -->
|
||||
<ul class="nav nav-stacked sidebarbody">
|
||||
<li class="active"> <a href="Dashboard"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li><a href="#"><i class="glyphicon glyphicon-shopping-cart"></i> Order <span class="badge badge-info">4</span></a></li>
|
||||
<li class="nav-header"> <a href="#" style="pointer-events: none" data-toggle="collapse" data-target="#menu1"><i class="glyphicon glyphicon-stats"></i> Statistic </a>
|
||||
<ul class="nav nav-stacked" id="menu1" style="margin-left:20px;">
|
||||
<li><a href="#">Sales</a></li>
|
||||
<li><a href="#">Transactions</a></li>
|
||||
<li><a href="#">Views</a></li>
|
||||
<li><a href="#">Requests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="barangAdm/"><i class="glyphicon glyphicon-apple"></i> Barang</a></li>
|
||||
<li><a href="#"><i class="glyphicon glyphicon-user"></i> Member</a></li>
|
||||
<li class="nav-header"> <a href="#" style="pointer-events: none" data-toggle="collapse" data-target="#menu2"><i class="glyphicon glyphicon-cog"></i> Options </a>
|
||||
<ul class="nav nav-stacked" id="menu2" style="margin-left:20px;">
|
||||
<li><a href="#">Toko</a></li>
|
||||
<li><a href="#">Slideshow</a></li>
|
||||
<li><a href="#">Kategori</a></li>
|
||||
<li><a href="#">About</a></li>
|
||||
<li><a href="#">Contact</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /col-3 -->
|
||||
|
||||
<div class="col-sm-10" id="contents">
|
||||
|
||||
</div>
|
||||
<!--/col-span-9-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Main -->
|
||||
|
||||
<footer class="text-center" style="position: fixed;height: 50px;bottom: 0;width: 100%;">Copyright <a href="http://allazhar.com"><strong>AllAzhar.com</strong></a></footer>
|
||||
|
||||
<div class="modal" id="addWidgetModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><EFBFBD></button>
|
||||
<h4 class="modal-title">Add Widget</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Add a widget stuff here..</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" data-dismiss="modal" class="btn">Close</a>
|
||||
<a href="#" class="btn btn-primary">Save changes</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dalog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- script references -->
|
||||
|
||||
<script src="<?php echo base_url()?>asset/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo base_url()?>asset/js/scripts.js"></script>
|
||||
</body>
|
||||
</html>
|
21
application/views/back/updateBarang.php
Normal file
21
application/views/back/updateBarang.php
Normal file
@ -0,0 +1,21 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<form id="form" class="form-" action="../update_conf" method="post" name="fo1">
|
||||
<input type="hidden" name="id" value="<?php echo $barang->id?>"><br/>
|
||||
<input type="text" placeholder="Nama" name="nama" value="<?php echo $barang->nama?>"><br/>
|
||||
<input type="text" placeholder="Kode Barang" name="kode" value="<?php echo $barang->kdbarang?>"><br/>
|
||||
<input type="text" placeholder="Harga" name="harga" value="<?php echo $barang->harga?>"><br/>
|
||||
<input type="text" placeholder="Deskripsi" name="desc" value="<?php echo $barang->deskripsi?>"><br/>
|
||||
Kategori<select name="kat">
|
||||
<?php foreach ($kategori as $ka){
|
||||
echo "<option value='".$ka->id."'>".$ka->nama."</option>";
|
||||
}
|
||||
?>
|
||||
</select></br>
|
||||
<input type="text" placeholder="Tags" name="tag" value="<?php echo $barang->tags?>"><br/>
|
||||
<input type="text" placeholder="Stok" name="stok" value="<?php echo $barang->stok?>"><br/>
|
||||
<button>OK</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
47
application/views/back/vieworder.php
Normal file
47
application/views/back/vieworder.php
Normal file
@ -0,0 +1,47 @@
|
||||
<div class="col-sm-10" id="contents">
|
||||
<?php //print_r($data['profil'][0]) ?>
|
||||
Nama = <?php echo $data['profil'][0]['Nama'] ?> </br>
|
||||
Email = <?php echo $data['profil'][0]['email'] ?> </br>
|
||||
Telp = <?php echo $data['profil'][0]['telp'] ?> </br>
|
||||
Alamat = <?php echo $data['profil'][0]['Alamat'] ?> </br>
|
||||
Kota/Kab = <?php echo $data['profil'][0]['kota_kab'] ?> </br>
|
||||
Provinsi = <?php echo $data['profil'][0]['provinsi'] ?> </br>
|
||||
<hr>
|
||||
Barang
|
||||
<table>
|
||||
<thead><tr>
|
||||
<td width="100px">Nama</td>
|
||||
<td width="50px">Qty</td>
|
||||
<td>Harga</td>
|
||||
<td>Total</td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($data['barang'] as $brg) { ?>
|
||||
<tr>
|
||||
<td><?php echo $brg['nama'] ?></td>
|
||||
<td><?php echo $brg['qty'] ?></td>
|
||||
<td><?php echo $brg['harga'] ?></td>
|
||||
<td><?php echo $brg['harga']*$brg['qty'] ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<tfoot><tr style="border-top:solid 1px #000000">
|
||||
<td colspan="3">Total</td>
|
||||
<td><?php echo $data['transaksi'][0]['total_harga'] ?></td>
|
||||
</tr></tfoot>
|
||||
</table>
|
||||
<hr>
|
||||
Tanggal Order = <?php echo $data['transaksi'][0]['tanggal_order']?></br>
|
||||
Tanggal Kirim =</br>
|
||||
Pembayaran = <?php if($data['transaksi'][0]['cara_bayar']==1)echo "Transfer";else echo "Cash On Delivery" ?> </br>
|
||||
|
||||
<form method="POST" action="<?php echo site_url("su/order/update_order/".$data['transaksi'][0]['id']) ?>">
|
||||
Status = <select name="status">
|
||||
<option value="PENDING" <?php if ($data['transaksi'][0]['status']=="PENDING")echo "selected"?>>Pending</option>
|
||||
<option value="SHIPPED" <?php if ($data['transaksi'][0]['status']=="SHIPPED")echo "selected"?>>Shipped</option>
|
||||
<option value="CANCEL" <?php if ($data['transaksi'][0]['status']=="CANCEL")echo "selected"?>>Cancel</option>
|
||||
</select>
|
||||
<input type="submit"></input>
|
||||
<button type="button" onClick="history.back();return false;">Back</button>
|
||||
</form>
|
||||
</div>
|
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";
|
25
application/views/errors/cli/error_exception.php
Normal file
25
application/views/errors/cli/error_exception.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception); ?>
|
||||
Message: <?php echo $message; ?>
|
||||
Filename: <?php echo $exception->getFile(); ?>
|
||||
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']; ?>
|
||||
Line: <?php echo $error['line']; ?>
|
||||
Function: <?php echo $error['function']; ?>
|
||||
|
||||
<?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";
|
25
application/views/errors/cli/error_php.php
Normal file
25
application/views/errors/cli/error_php.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity;?>
|
||||
Message: <?php echo $message;?>
|
||||
Filename: <?php echo $filepath;?>
|
||||
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'];?>
|
||||
Line: <?php echo $error['line'];?>
|
||||
Function: <?php echo $error['function'];?>
|
||||
|
||||
<?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>
|
71
application/views/front/Cart.php
Normal file
71
application/views/front/Cart.php
Normal file
@ -0,0 +1,71 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="row">
|
||||
<ul class="list-group" id="menu2">
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="<?php echo site_url('welcome') ?>"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Produk") echo "active" ?>"><a href="<?php echo site_url('product') ?>"><i class="glyphicon glyphicon-baby-formula"></i> Produk</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Testimoni") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-thumbs-up"></i> Testimoni</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Cara Berberlanja") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-info-sign"></i> Cara Berbelanja</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Contact Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-earphone"></i> Contact Us</a></li>
|
||||
<li class="list-group-item <?php if ($active=="About Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-briefcase"></i> About Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row">
|
||||
<ul class="list-group" id="kategori">
|
||||
<?php foreach($kategori as $kat) { ?>
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="#"> <?php echo $kat['Nama'] ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9">
|
||||
<div class="row">
|
||||
|
||||
<h1>Cart</h1>
|
||||
<?php echo form_open(site_url('cart/update')); ?>
|
||||
<table cellpadding="6" cellspacing="1" style="width:100%" border="0">
|
||||
<tr>
|
||||
<th>QTY</th>
|
||||
<th>Item Description</th>
|
||||
<th style="text-align:right">Item Price</th>
|
||||
<th style="text-align:right">Sub-Total</th>
|
||||
</tr>
|
||||
<?php $i = 1; ?>
|
||||
<?php foreach ($this->cart->contents() as $items): ?>
|
||||
<?php echo form_hidden($i.'[rowid]', $items['rowid']); ?>
|
||||
<tr>
|
||||
<td><?php echo form_input(array('name' => $i.'[qty]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '5')); ?></td>
|
||||
<td>
|
||||
<?php echo $items['name']; ?>
|
||||
<?php if ($this->cart->has_options($items['rowid']) == TRUE): ?>
|
||||
<p>
|
||||
<?php foreach ($this->cart->product_options($items['rowid']) as $option_name => $option_value): ?>
|
||||
<strong><?php echo $option_name; ?>:</strong> <?php echo $option_value; ?><br />
|
||||
<?php endforeach; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td style="text-align:right"><?php echo $this->cart->format_number($items['price']); ?></td>
|
||||
<td style="text-align:right">$<?php echo $this->cart->format_number($items['subtotal']); ?></td>
|
||||
</tr>
|
||||
<?php $i++; ?>
|
||||
<?php endforeach; ?>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
<td class="right"><strong>Total</strong></td>
|
||||
<td class="right">$<?php echo $this->cart->format_number($this->cart->total()); ?></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p><?php echo form_submit('update', 'Update your Cart'); ?>
|
||||
<a href="<?php echo site_url('cart/check_out')?>"><button type="button">Checkout</button></a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
19
application/views/front/Checkout.php
Normal file
19
application/views/front/Checkout.php
Normal file
@ -0,0 +1,19 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<form id="form" class="form-" action="<?php echo site_url('cart/check_out_conv');?>" method="post" name="fo1">
|
||||
<input type="text" placeholder="Nama" name="nama"><br/>
|
||||
<input type="text" placeholder="Email" name="email"><br/>
|
||||
<input type="text" placeholder="Alamat" name="alamat"><br/>
|
||||
<input type="text" placeholder="Kota/Kab" name="kota"><br/>
|
||||
<input type="text" placeholder="Provinsi" name="prov"><br/>
|
||||
<input type="text" placeholder="Telp" name="telp"><br/>
|
||||
Total Belanja = <?php echo $this->cart->total();?><br />
|
||||
<select name="cara_bayar">
|
||||
<option value="1">Transfer</option>
|
||||
<option value="1">Cash</option>
|
||||
</select><br/>
|
||||
<input type="hidden" name="tipe" value="online"><br/>
|
||||
<button>OK</button>
|
||||
</body>
|
||||
</html>
|
573
application/views/front/Home.php
Normal file
573
application/views/front/Home.php
Normal file
@ -0,0 +1,573 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Best Selling Item</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div id="carousel-example" class="carousel slide hidden-xs" data-ride="carousel">
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner">
|
||||
<div class="item active">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1" style="margin-left:120px">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product A</h5>
|
||||
<h5 class="price-text-color">$7.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product B</h5>
|
||||
<h5 class="price-text-color">$9.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_002.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product C</h5>
|
||||
<h5 class="price-text-color">$7.58</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_003.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1" style="margin-left:120px">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Another product</h5>
|
||||
<h5 class="price-text-color">$3.75</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product</h5>
|
||||
<h5 class="price-text-color">$7.17</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product</h5>
|
||||
<h5 class="price-text-color">$19.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_002.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example" role="button" data-slide="prev" style="background-image:none;color:#337ab7">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel-example" role="button" data-slide="next" style="background-image:none;color:#337ab7">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">New Item</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div id="carousel-example2" class="carousel slide hidden-xs" data-ride="carousel">
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner">
|
||||
<div class="item active">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1" style="margin-left:120px">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product A</h5>
|
||||
<h5 class="price-text-color">$7.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product B</h5>
|
||||
<h5 class="price-text-color">$9.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_002.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product C</h5>
|
||||
<h5 class="price-text-color">$7.58</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_003.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1" style="margin-left:120px">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Another product</h5>
|
||||
<h5 class="price-text-color">$3.75</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product</h5>
|
||||
<h5 class="price-text-color">$7.17</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product</h5>
|
||||
<h5 class="price-text-color">$19.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_002.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example2" role="button" data-slide="prev" style="background-image:none;color:#337ab7">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel-example2" role="button" data-slide="next" style="background-image:none;color:#337ab7">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>asset/font-awesome/css/font-awesome.min.css" />
|
||||
<style>
|
||||
.col-item
|
||||
{
|
||||
border: 2px solid #2323A1;
|
||||
border-radius: 5px;
|
||||
background: #FFF;
|
||||
}
|
||||
.col-item .photo img
|
||||
{
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.col-item .info
|
||||
{
|
||||
padding: 10px;
|
||||
border-radius: 0 0 5px 5px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
.col-item:hover .info {
|
||||
background-color: rgba(215, 215, 244, 0.5);
|
||||
}
|
||||
.col-item .price
|
||||
{
|
||||
/*width: 50%;*/
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.col-item .price h5
|
||||
{
|
||||
line-height: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.price-text-color
|
||||
{
|
||||
color: #00990E;
|
||||
}
|
||||
|
||||
.col-item .info .rating
|
||||
{
|
||||
color: #003399;
|
||||
}
|
||||
|
||||
.col-item .rating
|
||||
{
|
||||
/*width: 50%;*/
|
||||
float: left;
|
||||
font-size: 17px;
|
||||
text-align: right;
|
||||
line-height: 52px;
|
||||
margin-bottom: 10px;
|
||||
height: 52px;
|
||||
}
|
||||
|
||||
.col-item .separator
|
||||
{
|
||||
border-top: 1px solid #FFCCCC;
|
||||
}
|
||||
|
||||
.clear-left
|
||||
{
|
||||
clear: left;
|
||||
}
|
||||
|
||||
.col-item .separator p
|
||||
{
|
||||
line-height: 20px;
|
||||
margin-bottom: 0;
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-item .separator p i
|
||||
{
|
||||
margin-right: 5px;
|
||||
}
|
||||
.col-item .btn-add
|
||||
{
|
||||
width: 50%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-item .btn-add
|
||||
{
|
||||
border-right: 1px solid #CC9999;
|
||||
}
|
||||
|
||||
.col-item .btn-details
|
||||
{
|
||||
width: 50%;
|
||||
float: left;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.controls
|
||||
{
|
||||
margin-top: 20px;
|
||||
}
|
||||
[data-slide="prev"]
|
||||
{
|
||||
margin-right: 10px;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
14
application/views/front/footer.php
Normal file
14
application/views/front/footer.php
Normal file
@ -0,0 +1,14 @@
|
||||
<div class="container" id="foooter">
|
||||
|
||||
<hr>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>Copyright © Your Website 2014</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
173
application/views/front/header.php
Normal file
173
application/views/front/header.php
Normal file
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo $title ?></title>
|
||||
<meta name="generator" content="Bootply" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link href="<?php echo base_url()?>asset/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<link href="<?php echo base_url()?>asset/css/styles.css" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>asset/css/custom.css" rel="stylesheet">
|
||||
<style>
|
||||
a.navbar-brand{
|
||||
background: url(<?php echo base_url()."asset/images/logo.png" ?>) top left no-repeat;
|
||||
background-size: 40px 40px;
|
||||
background-position: center;
|
||||
width:40px;
|
||||
padding-top:10px;
|
||||
margin-left:10px;
|
||||
text-align:center;
|
||||
}
|
||||
.navbar-center
|
||||
{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
margin-top:10px;
|
||||
}
|
||||
.navbar-center a
|
||||
{
|
||||
border: solid 1px #000000;
|
||||
padding: 5px;
|
||||
}
|
||||
</style>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
|
||||
<script src="<?php echo base_url()?>asset/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
//script here
|
||||
$(document).ready(function() {
|
||||
var cartcntn = $( "div.cart-content" ).html();
|
||||
$("#cartbt").popover({
|
||||
placement : 'bottom', //placement of the popover. also can use top, bottom, left or right
|
||||
title : '<div style="text-align:center; font-size:14px;"> Keranjang</div>', //this is the top title bar of the popover. add some basic css
|
||||
html: 'true', //needed to show html of course
|
||||
content : cartcntn, //this is the content of the html box. add the image here or anything you want really.
|
||||
trigger: 'hover'
|
||||
});
|
||||
var logincntn = $( "div.login-content" ).html();
|
||||
$("#loginbt").popover({
|
||||
placement : 'bottom', //placement of the popover. also can use top, bottom, left or right
|
||||
title : '<div style="text-align:center; font-size:14px;"> Keranjang</div>', //this is the top title bar of the popover. add some basic css
|
||||
html: 'true', //needed to show html of course
|
||||
content : logincntn //this is the content of the html box. add the image here or anything you want really.
|
||||
//trigger: 'hover'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- nav header -->
|
||||
<div id="top-nav" class="navbar navbar-default navbar-fixed-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<!--<a class="navbar-brand" href="#"></a>-->
|
||||
<div class="navbar-center">
|
||||
<form class="navbar-form" role="search" style="display:inline">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search Product" style="width:300px">
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<a href="<?php echo site_url('cart') ?>" id="cartbt" style="display:inline" class="btn btn-primary">
|
||||
<i class="glyphicon glyphicon-shopping-cart"></i> Keranjang Belanja(<span id="total-cart" style="display: inline-block;"><?php echo $this->cart->total_items(); ?></span>)
|
||||
</a>
|
||||
<div class="cart-content" style="display:none">
|
||||
<div id="popOverCart" style="">
|
||||
<table>
|
||||
<thead><tr>
|
||||
<td width="100px">Nama</td>
|
||||
<td width="50px">Qty</td>
|
||||
<td>Harga</td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->cart->contents() as $items): ?>
|
||||
<tr>
|
||||
<td><?php echo $items['name']; ?></td>
|
||||
<td><?php echo $items['qty']; ?></td>
|
||||
<td>Rp. <?php echo $this->cart->format_number($items['price']); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
<tfoot><tr style="border-top:solid 1px #000000">
|
||||
<td>Total</td>
|
||||
<td colspan="2"><b>Rp. <?php echo $this->cart->format_number($this->cart->total()); ?></b></td>
|
||||
</tr></tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<?php if($this->session->userdata('logged_in')){ ?>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"></i> <?php echo $this->session->userdata('username') ?> <span class="caret"></span></a>
|
||||
<ul id="g-account-menu" class="dropdown-menu" role="menu">
|
||||
<li><a href="#">My Profile</a></li>
|
||||
<?php if ($this->session->userdata('type') == "ADMIN"){ ?>
|
||||
<li><a href="<?php echo site_url('su/dashboard') ?>">Admin Panel</a></li>
|
||||
<?php } ?>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="<?php echo site_url('user/logout') ?>"><i class="glyphicon glyphicon-lock"></i> Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php }else{ ?>
|
||||
<li id="loginbt"><a role="button" href="#"><i class="glyphicon glyphicon-user"></i> Login <span class="caret"></span></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<div class="login-content" style="display:none">
|
||||
<!--
|
||||
<div id="popOverLogin">
|
||||
<form action="<?php echo site_url('user/login') ?>" method="post">
|
||||
<input type="text" name="username" placeholder="Username">
|
||||
<input type="password" name="password" placeholder="Password">
|
||||
<input type="submit" value="Login">
|
||||
</form>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<div class="container">
|
||||
<form id="login-form" class="form-horizontal" style="" action="<?php echo site_url('user/login') ?>" method="post">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="username" class="form-control" id="inputEmail3" placeholder="Username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-8">
|
||||
<input type="password" name="password" class="form-control" id="inputPassword3" placeholder="Password">
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">Log in</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- header -->
|
||||
<div class="container" id="main-body">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<!-- logo -->
|
||||
<div class="row">
|
||||
<div class="col-md-1" id="logo">
|
||||
<img src="<?php echo base_url()."asset/images/bglogo.png" ?>"alt="logo" width="700px"></img>
|
||||
</div>
|
||||
</div>
|
61
application/views/front/produk.php
Normal file
61
application/views/front/produk.php
Normal file
@ -0,0 +1,61 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="row">
|
||||
<ul class="list-group" id="menu2">
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="<?php echo site_url('welcome') ?>"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Produk") echo "active" ?>"><a href="<?php echo site_url('product') ?>"><i class="glyphicon glyphicon-baby-formula"></i> Produk</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Testimoni") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-thumbs-up"></i> Testimoni</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Cara Berberlanja") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-info-sign"></i> Cara Berbelanja</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Contact Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-earphone"></i> Contact Us</a></li>
|
||||
<li class="list-group-item <?php if ($active=="About Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-briefcase"></i> About Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row">
|
||||
<ul class="list-group" id="kategori">
|
||||
<?php foreach($kategori as $kat) { ?>
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="#"> <?php echo $kat['Nama'] ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="row">
|
||||
<?php
|
||||
$a = 0;
|
||||
foreach($barang as $brg)
|
||||
{
|
||||
$a=$a+1;
|
||||
?>
|
||||
<form action="<?php echo site_url('cart/tambah') ?>" method="post">
|
||||
<input type="hidden" name="id" value="<?php echo $brg['id']?>">
|
||||
<input type="hidden" name="nama" value="<?php echo $brg['nama']?>">
|
||||
<input type="hidden" name="harga" value="<?php echo $brg['harga']?>">
|
||||
<div class="col-sm-4 col-lg-4 col-md-4">
|
||||
<div class="thumbnail">
|
||||
<img src="http://placehold.it/320x150" alt="">
|
||||
<div class="caption">
|
||||
<h4 class="pull-right">Rp. <?php echo $brg['harga']?></h4>
|
||||
<h4><a href="#"><?php echo $brg['nama']?></a></h4>
|
||||
<p><?php echo $brg['deskripsi']?>.</p>
|
||||
</div>
|
||||
<div class="ratings">
|
||||
<p class="pull-right">
|
||||
<input type="hidden" name="qty" value="1">
|
||||
<button class="btn btn-xs btn-primary"><i class="glyphicon glyphicon-shopping-cart"></i> Add to Cart</button>
|
||||
</p>
|
||||
<p>
|
||||
<?php if(($brg['stok'])>0)echo "In Stock";
|
||||
else echo "out of stock";?><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php }?>
|
||||
<?php echo $pagination ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
29
application/views/front/shopstep.php
Normal file
29
application/views/front/shopstep.php
Normal file
@ -0,0 +1,29 @@
|
||||
<div class="row bs-wizard">
|
||||
<div class="col-xs-3 bs-wizard-step complete">
|
||||
<div class="text-center bs-wizard-stepnum">Step 1</div>
|
||||
<div class="progress"><div class="progress-bar"></div></div>
|
||||
<a href="#" class="bs-wizard-dot"><img src="<?php echo base_url()."asset/images/man251.png" ?>" /></a>
|
||||
<div class="bs-wizard-info text-center"> Pilih Produk</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3 bs-wizard-step active"><!-- complete -->
|
||||
<div class="text-center bs-wizard-stepnum">Step 2</div>
|
||||
<div class="progress"><div class="progress-bar"></div></div>
|
||||
<a href="#" class="bs-wizard-dot"><img src="<?php echo base_url()."asset/images/full22.png" ?>" /></a>
|
||||
<div class="bs-wizard-info text-center"> Periksa Keranjang Belanja Anda</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3 bs-wizard-step disabled"><!-- complete -->
|
||||
<div class="text-center bs-wizard-stepnum">Step 3</div>
|
||||
<div class="progress"><div class="progress-bar"></div></div>
|
||||
<a href="#" class="bs-wizard-dot"><img src="<?php echo base_url()."asset/images/shopping145.png" ?>" /></a>
|
||||
<div class="bs-wizard-info text-center"> Checkout</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3 bs-wizard-step disabled"><!-- active -->
|
||||
<div class="text-center bs-wizard-stepnum">Step 4</div>
|
||||
<div class="progress"><div class="progress-bar"></div></div>
|
||||
<a href="#" class="bs-wizard-dot"><img src="<?php echo base_url()."asset/images/happy50.png" ?>" /></a>
|
||||
<div class="bs-wizard-info text-center"> Selesai</div>
|
||||
</div>
|
||||
</div>
|
0
application/views/front/sidebarb.php
Normal file
0
application/views/front/sidebarb.php
Normal file
58
application/views/front/slideshow.php
Normal file
58
application/views/front/slideshow.php
Normal file
@ -0,0 +1,58 @@
|
||||
<div class="row row-slideshow">
|
||||
<div class="col-md-3" id="menu">
|
||||
<!--
|
||||
<ul class="mainmenu nav nav-stacked">
|
||||
<li>Home</li>
|
||||
<li>Produk</li>
|
||||
<li>Testimoni</li>
|
||||
<li>Cara Berbelanja</li>
|
||||
<li>Contact Us</li>
|
||||
<li>About Us</li>
|
||||
</ul>
|
||||
-->
|
||||
<ul class="list-group" id="menu-home">
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="<?php echo site_url('welcome') ?>"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Produk") echo "active" ?>"><a href="<?php echo site_url('product') ?>"><i class="glyphicon glyphicon-baby-formula"></i> Produk</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Testimoni") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-thumbs-up"></i> Testimoni</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Cara Berberlanja") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-info-sign"></i> Cara Berbelanja</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Contact Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-earphone"></i> Contact Us</a></li>
|
||||
<li class="list-group-item <?php if ($active=="About Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-briefcase"></i> About Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-9" id="slideshow">
|
||||
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
||||
<!-- Indicators -->
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
||||
</ol>
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner" role="listbox">
|
||||
<div class="item active">
|
||||
<img src="<?php echo base_url()."asset/images/slider1.jpg" ?>" alt="...">
|
||||
<div class="carousel-caption">
|
||||
<h3>Toko</h3>
|
||||
<p>Dzaky</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url()."asset/images/slider2.jpg" ?>" alt="...">
|
||||
<div class="carousel-caption">
|
||||
<h3>Toko</h3>
|
||||
<p>Dzaky</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</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>
|
15
application/views/test.php
Normal file
15
application/views/test.php
Normal file
@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<ul>
|
||||
<?php
|
||||
foreach ($kategori as $k) {
|
||||
//echo $k->Nama;
|
||||
if ( $k->id !=0){
|
||||
echo "<li>".$k->Nama."</li>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
89
application/views/welcome_message.php
Normal file
89
application/views/welcome_message.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to CodeIgniter</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin: 0 15px 0 15px;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>Welcome to CodeIgniter!</h1>
|
||||
|
||||
<div id="body">
|
||||
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
|
||||
|
||||
<p>If you would like to edit this page you'll find it located at:</p>
|
||||
<code>application/views/welcome_message.php</code>
|
||||
|
||||
<p>The corresponding controller for this page is found at:</p>
|
||||
<code>application/controllers/Welcome.php</code>
|
||||
|
||||
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user