project done before
This commit is contained in:
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# Matches multiple files with brace expansion notation
|
||||||
|
# Set default charset
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
|
||||||
|
# Tab indentation (no size specified)
|
||||||
|
indent_style = tab
|
||||||
31
.gitignore
vendored
Normal file
31
.gitignore
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
.DS_Store
|
||||||
|
|
||||||
|
application/cache/*
|
||||||
|
!application/cache/index.html
|
||||||
|
|
||||||
|
application/logs/*
|
||||||
|
!application/logs/index.html
|
||||||
|
|
||||||
|
!application/*/.htaccess
|
||||||
|
|
||||||
|
composer.lock
|
||||||
|
|
||||||
|
user_guide_src/build/*
|
||||||
|
user_guide_src/cilexer/build/*
|
||||||
|
user_guide_src/cilexer/dist/*
|
||||||
|
user_guide_src/cilexer/pycilexer.egg-info/*
|
||||||
|
/vendor/
|
||||||
|
|
||||||
|
# IDE Files
|
||||||
|
#-------------------------
|
||||||
|
/nbproject/
|
||||||
|
.idea/*
|
||||||
|
|
||||||
|
## Sublime Text cache files
|
||||||
|
*.tmlanguage.cache
|
||||||
|
*.tmPreferences.cache
|
||||||
|
*.stTheme.cache
|
||||||
|
*.sublime-workspace
|
||||||
|
*.sublime-project
|
||||||
|
/tests/tests/
|
||||||
|
/tests/results/
|
||||||
5
.htaccess
Normal file
5
.htaccess
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
RewriteEngine on
|
||||||
|
RewriteCond $1 !^(index\.php|resources|robots\.txt)
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
|
||||||
6
application/.htaccess
Normal file
6
application/.htaccess
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<IfModule authz_core_module>
|
||||||
|
Require all denied
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !authz_core_module>
|
||||||
|
Deny from all
|
||||||
|
</IfModule>
|
||||||
11
application/cache/index.html
vendored
Normal file
11
application/cache/index.html
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
135
application/config/autoload.php
Normal file
135
application/config/autoload.php
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| AUTO-LOADER
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| This file specifies which systems should be loaded by default.
|
||||||
|
|
|
||||||
|
| In order to keep the framework as light-weight as possible only the
|
||||||
|
| absolute minimal resources are loaded by default. For example,
|
||||||
|
| the database is not connected to automatically since no assumption
|
||||||
|
| is made regarding whether you intend to use it. This file lets
|
||||||
|
| you globally define which systems you would like loaded with every
|
||||||
|
| request.
|
||||||
|
|
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Instructions
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| These are the things you can load automatically:
|
||||||
|
|
|
||||||
|
| 1. Packages
|
||||||
|
| 2. Libraries
|
||||||
|
| 3. Drivers
|
||||||
|
| 4. Helper files
|
||||||
|
| 5. Custom config files
|
||||||
|
| 6. Language files
|
||||||
|
| 7. Models
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Auto-load Packages
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Prototype:
|
||||||
|
|
|
||||||
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$autoload['packages'] = array();
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Auto-load Libraries
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| These are the classes located in system/libraries/ or your
|
||||||
|
| application/libraries/ directory, with the addition of the
|
||||||
|
| 'database' library, which is somewhat of a special case.
|
||||||
|
|
|
||||||
|
| Prototype:
|
||||||
|
|
|
||||||
|
| $autoload['libraries'] = array('database', 'email', 'session');
|
||||||
|
|
|
||||||
|
| You can also supply an alternative library name to be assigned
|
||||||
|
| in the controller:
|
||||||
|
|
|
||||||
|
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||||
|
*/
|
||||||
|
$autoload['libraries'] = array('database','email','session','user_agent');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Auto-load Drivers
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| These classes are located in system/libraries/ or in your
|
||||||
|
| application/libraries/ directory, but are also placed inside their
|
||||||
|
| own subdirectory and they extend the CI_Driver_Library class. They
|
||||||
|
| offer multiple interchangeable driver options.
|
||||||
|
|
|
||||||
|
| Prototype:
|
||||||
|
|
|
||||||
|
| $autoload['drivers'] = array('cache');
|
||||||
|
|
|
||||||
|
| You can also supply an alternative property name to be assigned in
|
||||||
|
| the controller:
|
||||||
|
|
|
||||||
|
| $autoload['drivers'] = array('cache' => 'cch');
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$autoload['drivers'] = array();
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Auto-load Helper Files
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Prototype:
|
||||||
|
|
|
||||||
|
| $autoload['helper'] = array('url', 'file');
|
||||||
|
*/
|
||||||
|
$autoload['helper'] = array('url','form');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Auto-load Config files
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Prototype:
|
||||||
|
|
|
||||||
|
| $autoload['config'] = array('config1', 'config2');
|
||||||
|
|
|
||||||
|
| NOTE: This item is intended for use ONLY if you have created custom
|
||||||
|
| config files. Otherwise, leave it blank.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$autoload['config'] = array();
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Auto-load Language files
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Prototype:
|
||||||
|
|
|
||||||
|
| $autoload['language'] = array('lang1', 'lang2');
|
||||||
|
|
|
||||||
|
| NOTE: Do not include the "_lang" part of your file. For example
|
||||||
|
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$autoload['language'] = array();
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Auto-load Models
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Prototype:
|
||||||
|
|
|
||||||
|
| $autoload['model'] = array('first_model', 'second_model');
|
||||||
|
|
|
||||||
|
| You can also supply an alternative model name to be assigned
|
||||||
|
| in the controller:
|
||||||
|
|
|
||||||
|
| $autoload['model'] = array('first_model' => 'first');
|
||||||
|
*/
|
||||||
|
$autoload['model'] = array();
|
||||||
524
application/config/config.php
Normal file
524
application/config/config.php
Normal file
@ -0,0 +1,524 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Base Site URL
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||||
|
| WITH a trailing slash:
|
||||||
|
|
|
||||||
|
| http://example.com/
|
||||||
|
|
|
||||||
|
| WARNING: You MUST set this value!
|
||||||
|
|
|
||||||
|
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||||
|
| your installation, but due to security concerns the hostname will be set
|
||||||
|
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||||
|
| The auto-detection mechanism exists only for convenience during
|
||||||
|
| development and MUST NOT be used in production!
|
||||||
|
|
|
||||||
|
| If you need to allow multiple domains, remember that this file is still
|
||||||
|
| a PHP script and you can easily do that on your own.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
|
||||||
|
$config['base_url'] .= "://".$_SERVER['HTTP_HOST'];
|
||||||
|
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Index File
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Typically this will be your index.php file, unless you've renamed it to
|
||||||
|
| something else. If you are using mod_rewrite to remove the page set this
|
||||||
|
| variable so that it is blank.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['index_page'] = '';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| URI PROTOCOL
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This item determines which server global should be used to retrieve the
|
||||||
|
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||||
|
| If your links do not seem to work, try one of the other delicious flavors:
|
||||||
|
|
|
||||||
|
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||||
|
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||||
|
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||||
|
|
|
||||||
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||||
|
*/
|
||||||
|
$config['uri_protocol'] = 'REQUEST_URI';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| URL suffix
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||||
|
| For more information please see the user guide:
|
||||||
|
|
|
||||||
|
| https://codeigniter.com/user_guide/general/urls.html
|
||||||
|
*/
|
||||||
|
$config['url_suffix'] = '';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Default Language
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This determines which set of language files should be used. Make sure
|
||||||
|
| there is an available translation if you intend to use something other
|
||||||
|
| than english.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['language'] = 'english';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Default Character Set
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This determines which character set is used by default in various methods
|
||||||
|
| that require a character set to be provided.
|
||||||
|
|
|
||||||
|
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['charset'] = 'UTF-8';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Enable/Disable System Hooks
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| If you would like to use the 'hooks' feature you must enable it by
|
||||||
|
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['enable_hooks'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Class Extension Prefix
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This item allows you to set the filename/classname prefix when extending
|
||||||
|
| native libraries. For more information please see the user guide:
|
||||||
|
|
|
||||||
|
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||||
|
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['subclass_prefix'] = 'MY_';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Composer auto-loading
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||||
|
| package auto-loader script in application/vendor/autoload.php.
|
||||||
|
|
|
||||||
|
| $config['composer_autoload'] = TRUE;
|
||||||
|
|
|
||||||
|
| Or if you have your vendor/ directory located somewhere else, you
|
||||||
|
| can opt to set a specific path as well:
|
||||||
|
|
|
||||||
|
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||||
|
|
|
||||||
|
| For more information about Composer, please visit http://getcomposer.org/
|
||||||
|
|
|
||||||
|
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||||
|
| autoloading (application/config/autoload.php)
|
||||||
|
*/
|
||||||
|
$config['composer_autoload'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Allowed URL Characters
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This lets you specify which characters are permitted within your URLs.
|
||||||
|
| When someone tries to submit a URL with disallowed characters they will
|
||||||
|
| get a warning message.
|
||||||
|
|
|
||||||
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||||
|
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||||
|
|
|
||||||
|
| Leave blank to allow all characters -- but only if you are insane.
|
||||||
|
|
|
||||||
|
| The configured value is actually a regular expression character group
|
||||||
|
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||||
|
|
|
||||||
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Enable Query Strings
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||||
|
| example.com/who/what/where/
|
||||||
|
|
|
||||||
|
| You can optionally enable standard query string based URLs:
|
||||||
|
| example.com?who=me&what=something&where=here
|
||||||
|
|
|
||||||
|
| Options are: TRUE or FALSE (boolean)
|
||||||
|
|
|
||||||
|
| The other items let you set the query string 'words' that will
|
||||||
|
| invoke your controllers and its functions:
|
||||||
|
| example.com/index.php?c=controller&m=function
|
||||||
|
|
|
||||||
|
| Please note that some of the helpers won't work as expected when
|
||||||
|
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||||
|
| use segment based URLs.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['enable_query_strings'] = FALSE;
|
||||||
|
$config['controller_trigger'] = 'c';
|
||||||
|
$config['function_trigger'] = 'm';
|
||||||
|
$config['directory_trigger'] = 'd';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Allow $_GET array
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||||
|
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||||
|
|
|
||||||
|
| WARNING: This feature is DEPRECATED and currently available only
|
||||||
|
| for backwards compatibility purposes!
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['allow_get_array'] = TRUE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Error Logging Threshold
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| You can enable error logging by setting a threshold over zero. The
|
||||||
|
| threshold determines what gets logged. Threshold options are:
|
||||||
|
|
|
||||||
|
| 0 = Disables logging, Error logging TURNED OFF
|
||||||
|
| 1 = Error Messages (including PHP errors)
|
||||||
|
| 2 = Debug Messages
|
||||||
|
| 3 = Informational Messages
|
||||||
|
| 4 = All Messages
|
||||||
|
|
|
||||||
|
| You can also pass an array with threshold levels to show individual error types
|
||||||
|
|
|
||||||
|
| array(2) = Debug Messages, without Error Messages
|
||||||
|
|
|
||||||
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||||
|
| your log files will fill up very fast.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['log_threshold'] = 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Error Logging Directory Path
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Leave this BLANK unless you would like to set something other than the default
|
||||||
|
| application/logs/ directory. Use a full server path with trailing slash.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['log_path'] = '';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Log File Extension
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The default filename extension for log files. The default 'php' allows for
|
||||||
|
| protecting the log files via basic scripting, when they are to be stored
|
||||||
|
| under a publicly accessible directory.
|
||||||
|
|
|
||||||
|
| Note: Leaving it blank will default to 'php'.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['log_file_extension'] = '';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Log File Permissions
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The file system permissions to be applied on newly created log files.
|
||||||
|
|
|
||||||
|
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||||
|
| integer notation (i.e. 0700, 0644, etc.)
|
||||||
|
*/
|
||||||
|
$config['log_file_permissions'] = 0644;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Date Format for Logs
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Each item that is logged has an associated date. You can use PHP date
|
||||||
|
| codes to set your own date formatting
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Error Views Directory Path
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Leave this BLANK unless you would like to set something other than the default
|
||||||
|
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['error_views_path'] = '';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Cache Directory Path
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Leave this BLANK unless you would like to set something other than the default
|
||||||
|
| application/cache/ directory. Use a full server path with trailing slash.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['cache_path'] = '';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Cache Include Query String
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Whether to take the URL query string into consideration when generating
|
||||||
|
| output cache files. Valid options are:
|
||||||
|
|
|
||||||
|
| FALSE = Disabled
|
||||||
|
| TRUE = Enabled, take all query parameters into account.
|
||||||
|
| Please be aware that this may result in numerous cache
|
||||||
|
| files generated for the same page over and over again.
|
||||||
|
| array('q') = Enabled, but only take into account the specified list
|
||||||
|
| of query parameters.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['cache_query_string'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Encryption Key
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| If you use the Encryption class, you must set an encryption key.
|
||||||
|
| See the user guide for more info.
|
||||||
|
|
|
||||||
|
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['encryption_key'] = '';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Session Variables
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| 'sess_driver'
|
||||||
|
|
|
||||||
|
| The storage driver to use: files, database, redis, memcached
|
||||||
|
|
|
||||||
|
| 'sess_cookie_name'
|
||||||
|
|
|
||||||
|
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||||
|
|
|
||||||
|
| 'sess_expiration'
|
||||||
|
|
|
||||||
|
| The number of SECONDS you want the session to last.
|
||||||
|
| Setting to 0 (zero) means expire when the browser is closed.
|
||||||
|
|
|
||||||
|
| 'sess_save_path'
|
||||||
|
|
|
||||||
|
| The location to save sessions to, driver dependent.
|
||||||
|
|
|
||||||
|
| For the 'files' driver, it's a path to a writable directory.
|
||||||
|
| WARNING: Only absolute paths are supported!
|
||||||
|
|
|
||||||
|
| For the 'database' driver, it's a table name.
|
||||||
|
| Please read up the manual for the format with other session drivers.
|
||||||
|
|
|
||||||
|
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||||
|
|
|
||||||
|
| 'sess_match_ip'
|
||||||
|
|
|
||||||
|
| Whether to match the user's IP address when reading the session data.
|
||||||
|
|
|
||||||
|
| WARNING: If you're using the database driver, don't forget to update
|
||||||
|
| your session table's PRIMARY KEY when changing this setting.
|
||||||
|
|
|
||||||
|
| 'sess_time_to_update'
|
||||||
|
|
|
||||||
|
| How many seconds between CI regenerating the session ID.
|
||||||
|
|
|
||||||
|
| 'sess_regenerate_destroy'
|
||||||
|
|
|
||||||
|
| Whether to destroy session data associated with the old session ID
|
||||||
|
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||||
|
| will be later deleted by the garbage collector.
|
||||||
|
|
|
||||||
|
| Other session cookie settings are shared with the rest of the application,
|
||||||
|
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['sess_driver'] = 'files';
|
||||||
|
$config['sess_cookie_name'] = 'ci_session';
|
||||||
|
$config['sess_expiration'] = 7200;
|
||||||
|
$config['sess_save_path'] = NULL;
|
||||||
|
$config['sess_match_ip'] = FALSE;
|
||||||
|
$config['sess_time_to_update'] = 300;
|
||||||
|
$config['sess_regenerate_destroy'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Cookie Related Variables
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||||
|
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||||
|
| 'cookie_path' = Typically will be a forward slash
|
||||||
|
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||||
|
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||||
|
|
|
||||||
|
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||||
|
| 'cookie_httponly') will also affect sessions.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['cookie_prefix'] = '';
|
||||||
|
$config['cookie_domain'] = '';
|
||||||
|
$config['cookie_path'] = '/';
|
||||||
|
$config['cookie_secure'] = FALSE;
|
||||||
|
$config['cookie_httponly'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Standardize newlines
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Determines whether to standardize newline characters in input data,
|
||||||
|
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||||
|
|
|
||||||
|
| WARNING: This feature is DEPRECATED and currently available only
|
||||||
|
| for backwards compatibility purposes!
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['standardize_newlines'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Global XSS Filtering
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Determines whether the XSS filter is always active when GET, POST or
|
||||||
|
| COOKIE data is encountered
|
||||||
|
|
|
||||||
|
| WARNING: This feature is DEPRECATED and currently available only
|
||||||
|
| for backwards compatibility purposes!
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['global_xss_filtering'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Cross Site Request Forgery
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||||
|
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||||
|
| recommended CSRF protection be enabled.
|
||||||
|
|
|
||||||
|
| 'csrf_token_name' = The token name
|
||||||
|
| 'csrf_cookie_name' = The cookie name
|
||||||
|
| 'csrf_expire' = The number in seconds the token should expire.
|
||||||
|
| 'csrf_regenerate' = Regenerate token on every submission
|
||||||
|
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||||
|
*/
|
||||||
|
$config['csrf_protection'] = FALSE;
|
||||||
|
$config['csrf_token_name'] = 'csrf_test_name';
|
||||||
|
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||||
|
$config['csrf_expire'] = 7200;
|
||||||
|
$config['csrf_regenerate'] = TRUE;
|
||||||
|
$config['csrf_exclude_uris'] = array();
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Output Compression
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Enables Gzip output compression for faster page loads. When enabled,
|
||||||
|
| the output class will test whether your server supports Gzip.
|
||||||
|
| Even if it does, however, not all browsers support compression
|
||||||
|
| so enable only if you are reasonably sure your visitors can handle it.
|
||||||
|
|
|
||||||
|
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||||
|
| Please do not use it together with httpd-level output compression.
|
||||||
|
|
|
||||||
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||||
|
| means you are prematurely outputting something to your browser. It could
|
||||||
|
| even be a line of whitespace at the end of one of your scripts. For
|
||||||
|
| compression to work, nothing can be sent before the output buffer is called
|
||||||
|
| by the output class. Do not 'echo' any values with compression enabled.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['compress_output'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Master Time Reference
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||||
|
| the system whether to use your server's local time as the master 'now'
|
||||||
|
| reference, or convert it to the configured one timezone. See the 'date
|
||||||
|
| helper' page of the user guide for information regarding date handling.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['time_reference'] = 'local';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Rewrite PHP Short Tags
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| If your PHP installation does not have short tag support enabled CI
|
||||||
|
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||||
|
| in your view files. Options are TRUE or FALSE (boolean)
|
||||||
|
|
|
||||||
|
| Note: You need to have eval() enabled for this to work.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['rewrite_short_tags'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Reverse Proxy IPs
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||||
|
| IP addresses from which CodeIgniter should trust headers such as
|
||||||
|
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||||
|
| the visitor's IP address.
|
||||||
|
|
|
||||||
|
| You can use both an array or a comma-separated list of proxy addresses,
|
||||||
|
| as well as specifying whole subnets. Here are a few examples:
|
||||||
|
|
|
||||||
|
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||||
|
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||||
|
*/
|
||||||
|
$config['proxy_ips'] = '';
|
||||||
85
application/config/constants.php
Normal file
85
application/config/constants.php
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Display Debug backtrace
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| If set to TRUE, a backtrace will be displayed along with php errors. If
|
||||||
|
| error_reporting is disabled, the backtrace will not display, regardless
|
||||||
|
| of this setting
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| File and Directory Modes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| These prefs are used when checking and setting modes when working
|
||||||
|
| with the file system. The defaults are fine on servers with proper
|
||||||
|
| security, but you may wish (or even need) to change the values in
|
||||||
|
| certain environments (Apache running a separate process for each
|
||||||
|
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
|
||||||
|
| always be used to set the mode correctly.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
|
||||||
|
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
|
||||||
|
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
|
||||||
|
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| File Stream Modes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| These modes are used when working with fopen()/popen()
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
|
||||||
|
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
|
||||||
|
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
|
||||||
|
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
|
||||||
|
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
|
||||||
|
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
|
||||||
|
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
|
||||||
|
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Exit Status Codes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Used to indicate the conditions under which the script is exit()ing.
|
||||||
|
| While there is no universal standard for error codes, there are some
|
||||||
|
| broad conventions. Three such conventions are mentioned below, for
|
||||||
|
| those who wish to make use of them. The CodeIgniter defaults were
|
||||||
|
| chosen for the least overlap with these conventions, while still
|
||||||
|
| leaving room for others to be defined in future versions and user
|
||||||
|
| applications.
|
||||||
|
|
|
||||||
|
| The three main conventions used for determining exit status codes
|
||||||
|
| are as follows:
|
||||||
|
|
|
||||||
|
| Standard C/C++ Library (stdlibc):
|
||||||
|
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
|
||||||
|
| (This link also contains other GNU-specific conventions)
|
||||||
|
| BSD sysexits.h:
|
||||||
|
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
|
||||||
|
| Bash scripting:
|
||||||
|
| http://tldp.org/LDP/abs/html/exitcodes.html
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
|
||||||
|
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
|
||||||
|
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
|
||||||
|
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||||
|
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||||
|
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
||||||
|
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
|
||||||
|
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
|
||||||
|
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||||
|
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||||
96
application/config/database.php
Normal file
96
application/config/database.php
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| DATABASE CONNECTIVITY SETTINGS
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| This file will contain the settings needed to access your database.
|
||||||
|
|
|
||||||
|
| For complete instructions please consult the 'Database Connection'
|
||||||
|
| page of the User Guide.
|
||||||
|
|
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| EXPLANATION OF VARIABLES
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| ['dsn'] The full DSN string describe a connection to the database.
|
||||||
|
| ['hostname'] The hostname of your database server.
|
||||||
|
| ['username'] The username used to connect to the database
|
||||||
|
| ['password'] The password used to connect to the database
|
||||||
|
| ['database'] The name of the database you want to connect to
|
||||||
|
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||||
|
| Currently supported:
|
||||||
|
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||||
|
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||||
|
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||||
|
| to the table name when using the Query Builder class
|
||||||
|
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||||
|
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||||
|
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||||
|
| ['cachedir'] The path to the folder where cache files should be stored
|
||||||
|
| ['char_set'] The character set used in communicating with the database
|
||||||
|
| ['dbcollat'] The character collation used in communicating with the database
|
||||||
|
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||||
|
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||||
|
| (and in table creation queries made with DB Forge).
|
||||||
|
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||||
|
| can make your site vulnerable to SQL injection if you are using a
|
||||||
|
| multi-byte character set and are running versions lower than these.
|
||||||
|
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||||
|
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||||
|
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||||
|
|
|
||||||
|
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||||
|
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||||
|
|
|
||||||
|
| 'ssl_key' - Path to the private key file
|
||||||
|
| 'ssl_cert' - Path to the public key certificate file
|
||||||
|
| 'ssl_ca' - Path to the certificate authority file
|
||||||
|
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||||
|
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||||
|
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||||
|
|
|
||||||
|
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||||
|
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||||
|
| - good for ensuring strict SQL while developing
|
||||||
|
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||||
|
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||||
|
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||||
|
| NOTE: Disabling this will also effectively disable both
|
||||||
|
| $this->db->last_query() and profiling of DB queries.
|
||||||
|
| When you run a query, with this setting set to TRUE (default),
|
||||||
|
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||||
|
| However, this may cause high memory usage, especially if you run
|
||||||
|
| a lot of SQL queries ... disable this to avoid that problem.
|
||||||
|
|
|
||||||
|
| The $active_group variable lets you choose which connection group to
|
||||||
|
| make active. By default there is only one group (the 'default' group).
|
||||||
|
|
|
||||||
|
| The $query_builder variables lets you determine whether or not to load
|
||||||
|
| the query builder class.
|
||||||
|
*/
|
||||||
|
$active_group = 'default';
|
||||||
|
$query_builder = TRUE;
|
||||||
|
|
||||||
|
$db['default'] = array(
|
||||||
|
'dsn' => '',
|
||||||
|
'hostname' => 'localhost',
|
||||||
|
'username' => 'root',
|
||||||
|
'password' => '',
|
||||||
|
'database' => 'db_telusuri_buku',
|
||||||
|
'dbdriver' => 'mysqli',
|
||||||
|
'dbprefix' => '',
|
||||||
|
'pconnect' => FALSE,
|
||||||
|
'db_debug' => (ENVIRONMENT !== 'production'),
|
||||||
|
'cache_on' => FALSE,
|
||||||
|
'cachedir' => '',
|
||||||
|
'char_set' => 'utf8',
|
||||||
|
'dbcollat' => 'utf8_general_ci',
|
||||||
|
'swap_pre' => '',
|
||||||
|
'encrypt' => FALSE,
|
||||||
|
'compress' => FALSE,
|
||||||
|
'stricton' => FALSE,
|
||||||
|
'failover' => array(),
|
||||||
|
'save_queries' => TRUE
|
||||||
|
);
|
||||||
24
application/config/doctypes.php
Normal file
24
application/config/doctypes.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
$_doctypes = array(
|
||||||
|
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
|
||||||
|
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
|
||||||
|
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
||||||
|
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
|
||||||
|
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
|
||||||
|
'html5' => '<!DOCTYPE html>',
|
||||||
|
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
|
||||||
|
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
|
||||||
|
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
|
||||||
|
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
|
||||||
|
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
|
||||||
|
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
|
||||||
|
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
|
||||||
|
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
|
||||||
|
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
|
||||||
|
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||||
|
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||||
|
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
|
||||||
|
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
|
||||||
|
);
|
||||||
103
application/config/foreign_chars.php
Normal file
103
application/config/foreign_chars.php
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| Foreign Characters
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| This file contains an array of foreign characters for transliteration
|
||||||
|
| conversion used by the Text helper
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$foreign_characters = array(
|
||||||
|
'/ä|æ|ǽ/' => 'ae',
|
||||||
|
'/ö|œ/' => 'oe',
|
||||||
|
'/ü/' => 'ue',
|
||||||
|
'/Ä/' => 'Ae',
|
||||||
|
'/Ü/' => 'Ue',
|
||||||
|
'/Ö/' => 'Oe',
|
||||||
|
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
|
||||||
|
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
|
||||||
|
'/Б/' => 'B',
|
||||||
|
'/б/' => 'b',
|
||||||
|
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
|
||||||
|
'/ç|ć|ĉ|ċ|č/' => 'c',
|
||||||
|
'/Д/' => 'D',
|
||||||
|
'/д/' => 'd',
|
||||||
|
'/Ð|Ď|Đ|Δ/' => 'Dj',
|
||||||
|
'/ð|ď|đ|δ/' => 'dj',
|
||||||
|
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
|
||||||
|
'/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
|
||||||
|
'/Ф/' => 'F',
|
||||||
|
'/ф/' => 'f',
|
||||||
|
'/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
|
||||||
|
'/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
|
||||||
|
'/Ĥ|Ħ/' => 'H',
|
||||||
|
'/ĥ|ħ/' => 'h',
|
||||||
|
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
|
||||||
|
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
|
||||||
|
'/Ĵ/' => 'J',
|
||||||
|
'/ĵ/' => 'j',
|
||||||
|
'/Ķ|Κ|К/' => 'K',
|
||||||
|
'/ķ|κ|к/' => 'k',
|
||||||
|
'/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
|
||||||
|
'/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
|
||||||
|
'/М/' => 'M',
|
||||||
|
'/м/' => 'm',
|
||||||
|
'/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
|
||||||
|
'/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
|
||||||
|
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
|
||||||
|
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
|
||||||
|
'/П/' => 'P',
|
||||||
|
'/п/' => 'p',
|
||||||
|
'/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
|
||||||
|
'/ŕ|ŗ|ř|ρ|р/' => 'r',
|
||||||
|
'/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
|
||||||
|
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
|
||||||
|
'/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T',
|
||||||
|
'/ț|ţ|ť|ŧ|т/' => 't',
|
||||||
|
'/Þ|þ/' => 'th',
|
||||||
|
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
|
||||||
|
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
|
||||||
|
'/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
|
||||||
|
'/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
|
||||||
|
'/В/' => 'V',
|
||||||
|
'/в/' => 'v',
|
||||||
|
'/Ŵ/' => 'W',
|
||||||
|
'/ŵ/' => 'w',
|
||||||
|
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
|
||||||
|
'/ź|ż|ž|ζ|з/' => 'z',
|
||||||
|
'/Æ|Ǽ/' => 'AE',
|
||||||
|
'/ß/' => 'ss',
|
||||||
|
'/IJ/' => 'IJ',
|
||||||
|
'/ij/' => 'ij',
|
||||||
|
'/Œ/' => 'OE',
|
||||||
|
'/ƒ/' => 'f',
|
||||||
|
'/ξ/' => 'ks',
|
||||||
|
'/π/' => 'p',
|
||||||
|
'/β/' => 'v',
|
||||||
|
'/μ/' => 'm',
|
||||||
|
'/ψ/' => 'ps',
|
||||||
|
'/Ё/' => 'Yo',
|
||||||
|
'/ё/' => 'yo',
|
||||||
|
'/Є/' => 'Ye',
|
||||||
|
'/є/' => 'ye',
|
||||||
|
'/Ї/' => 'Yi',
|
||||||
|
'/Ж/' => 'Zh',
|
||||||
|
'/ж/' => 'zh',
|
||||||
|
'/Х/' => 'Kh',
|
||||||
|
'/х/' => 'kh',
|
||||||
|
'/Ц/' => 'Ts',
|
||||||
|
'/ц/' => 'ts',
|
||||||
|
'/Ч/' => 'Ch',
|
||||||
|
'/ч/' => 'ch',
|
||||||
|
'/Ш/' => 'Sh',
|
||||||
|
'/ш/' => 'sh',
|
||||||
|
'/Щ/' => 'Shch',
|
||||||
|
'/щ/' => 'shch',
|
||||||
|
'/Ъ|ъ|Ь|ь/' => '',
|
||||||
|
'/Ю/' => 'Yu',
|
||||||
|
'/ю/' => 'yu',
|
||||||
|
'/Я/' => 'Ya',
|
||||||
|
'/я/' => 'ya'
|
||||||
|
);
|
||||||
13
application/config/hooks.php
Normal file
13
application/config/hooks.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| Hooks
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| This file lets you define "hooks" to extend CI without hacking the core
|
||||||
|
| files. Please see the user guide for info:
|
||||||
|
|
|
||||||
|
| https://codeigniter.com/user_guide/general/hooks.html
|
||||||
|
|
|
||||||
|
*/
|
||||||
11
application/config/index.html
Normal file
11
application/config/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
19
application/config/memcached.php
Normal file
19
application/config/memcached.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| Memcached settings
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| Your Memcached servers can be specified below.
|
||||||
|
|
|
||||||
|
| See: https://codeigniter.com/user_guide/libraries/caching.html#memcached
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config = array(
|
||||||
|
'default' => array(
|
||||||
|
'hostname' => '127.0.0.1',
|
||||||
|
'port' => '11211',
|
||||||
|
'weight' => '1',
|
||||||
|
),
|
||||||
|
);
|
||||||
84
application/config/migration.php
Normal file
84
application/config/migration.php
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Enable/Disable Migrations
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Migrations are disabled by default for security reasons.
|
||||||
|
| You should enable migrations whenever you intend to do a schema migration
|
||||||
|
| and disable it back when you're done.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['migration_enabled'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Migration Type
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Migration file names may be based on a sequential identifier or on
|
||||||
|
| a timestamp. Options are:
|
||||||
|
|
|
||||||
|
| 'sequential' = Sequential migration naming (001_add_blog.php)
|
||||||
|
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
|
||||||
|
| Use timestamp format YYYYMMDDHHIISS.
|
||||||
|
|
|
||||||
|
| Note: If this configuration value is missing the Migration library
|
||||||
|
| defaults to 'sequential' for backward compatibility with CI2.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['migration_type'] = 'timestamp';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Migrations table
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This is the name of the table that will store the current migrations state.
|
||||||
|
| When migrations runs it will store in a database table which migration
|
||||||
|
| level the system is at. It then compares the migration level in this
|
||||||
|
| table to the $config['migration_version'] if they are not the same it
|
||||||
|
| will migrate up. This must be set.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['migration_table'] = 'migrations';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Auto Migrate To Latest
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| If this is set to TRUE when you load the migrations class and have
|
||||||
|
| $config['migration_enabled'] set to TRUE the system will auto migrate
|
||||||
|
| to your latest migration (whatever $config['migration_version'] is
|
||||||
|
| set to). This way you do not have to call migrations anywhere else
|
||||||
|
| in your code to have the latest migration.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['migration_auto_latest'] = FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Migrations version
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This is used to set migration version that the file system should be on.
|
||||||
|
| If you run $this->migration->current() this is the version that schema will
|
||||||
|
| be upgraded / downgraded to.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['migration_version'] = 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Migrations Path
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Path to your migrations folder.
|
||||||
|
| Typically, it will be within your application path.
|
||||||
|
| Also, writing permission is required within the migrations path.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$config['migration_path'] = APPPATH.'migrations/';
|
||||||
184
application/config/mimes.php
Normal file
184
application/config/mimes.php
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| MIME TYPES
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| This file contains an array of mime types. It is used by the
|
||||||
|
| Upload class to help identify allowed file types.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
return array(
|
||||||
|
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
|
||||||
|
'cpt' => 'application/mac-compactpro',
|
||||||
|
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
|
||||||
|
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
|
||||||
|
'dms' => 'application/octet-stream',
|
||||||
|
'lha' => 'application/octet-stream',
|
||||||
|
'lzh' => 'application/octet-stream',
|
||||||
|
'exe' => array('application/octet-stream', 'application/x-msdownload'),
|
||||||
|
'class' => 'application/octet-stream',
|
||||||
|
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
|
||||||
|
'so' => 'application/octet-stream',
|
||||||
|
'sea' => 'application/octet-stream',
|
||||||
|
'dll' => 'application/octet-stream',
|
||||||
|
'oda' => 'application/oda',
|
||||||
|
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
|
||||||
|
'ai' => array('application/pdf', 'application/postscript'),
|
||||||
|
'eps' => 'application/postscript',
|
||||||
|
'ps' => 'application/postscript',
|
||||||
|
'smi' => 'application/smil',
|
||||||
|
'smil' => 'application/smil',
|
||||||
|
'mif' => 'application/vnd.mif',
|
||||||
|
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
|
||||||
|
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
|
||||||
|
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
|
||||||
|
'wbxml' => 'application/wbxml',
|
||||||
|
'wmlc' => 'application/wmlc',
|
||||||
|
'dcr' => 'application/x-director',
|
||||||
|
'dir' => 'application/x-director',
|
||||||
|
'dxr' => 'application/x-director',
|
||||||
|
'dvi' => 'application/x-dvi',
|
||||||
|
'gtar' => 'application/x-gtar',
|
||||||
|
'gz' => 'application/x-gzip',
|
||||||
|
'gzip' => 'application/x-gzip',
|
||||||
|
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
|
||||||
|
'php4' => 'application/x-httpd-php',
|
||||||
|
'php3' => 'application/x-httpd-php',
|
||||||
|
'phtml' => 'application/x-httpd-php',
|
||||||
|
'phps' => 'application/x-httpd-php-source',
|
||||||
|
'js' => array('application/x-javascript', 'text/plain'),
|
||||||
|
'swf' => 'application/x-shockwave-flash',
|
||||||
|
'sit' => 'application/x-stuffit',
|
||||||
|
'tar' => 'application/x-tar',
|
||||||
|
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
|
||||||
|
'z' => 'application/x-compress',
|
||||||
|
'xhtml' => 'application/xhtml+xml',
|
||||||
|
'xht' => 'application/xhtml+xml',
|
||||||
|
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
|
||||||
|
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
|
||||||
|
'mid' => 'audio/midi',
|
||||||
|
'midi' => 'audio/midi',
|
||||||
|
'mpga' => 'audio/mpeg',
|
||||||
|
'mp2' => 'audio/mpeg',
|
||||||
|
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
|
||||||
|
'aif' => array('audio/x-aiff', 'audio/aiff'),
|
||||||
|
'aiff' => array('audio/x-aiff', 'audio/aiff'),
|
||||||
|
'aifc' => 'audio/x-aiff',
|
||||||
|
'ram' => 'audio/x-pn-realaudio',
|
||||||
|
'rm' => 'audio/x-pn-realaudio',
|
||||||
|
'rpm' => 'audio/x-pn-realaudio-plugin',
|
||||||
|
'ra' => 'audio/x-realaudio',
|
||||||
|
'rv' => 'video/vnd.rn-realvideo',
|
||||||
|
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
|
||||||
|
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
|
||||||
|
'gif' => 'image/gif',
|
||||||
|
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
||||||
|
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
||||||
|
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
||||||
|
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
|
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
|
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
|
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
|
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
|
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
|
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
|
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||||
|
'png' => array('image/png', 'image/x-png'),
|
||||||
|
'tiff' => 'image/tiff',
|
||||||
|
'tif' => 'image/tiff',
|
||||||
|
'css' => array('text/css', 'text/plain'),
|
||||||
|
'html' => array('text/html', 'text/plain'),
|
||||||
|
'htm' => array('text/html', 'text/plain'),
|
||||||
|
'shtml' => array('text/html', 'text/plain'),
|
||||||
|
'txt' => 'text/plain',
|
||||||
|
'text' => 'text/plain',
|
||||||
|
'log' => array('text/plain', 'text/x-log'),
|
||||||
|
'rtx' => 'text/richtext',
|
||||||
|
'rtf' => 'text/rtf',
|
||||||
|
'xml' => array('application/xml', 'text/xml', 'text/plain'),
|
||||||
|
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
|
||||||
|
'mpeg' => 'video/mpeg',
|
||||||
|
'mpg' => 'video/mpeg',
|
||||||
|
'mpe' => 'video/mpeg',
|
||||||
|
'qt' => 'video/quicktime',
|
||||||
|
'mov' => 'video/quicktime',
|
||||||
|
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
|
||||||
|
'movie' => 'video/x-sgi-movie',
|
||||||
|
'doc' => array('application/msword', 'application/vnd.ms-office'),
|
||||||
|
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
|
||||||
|
'dot' => array('application/msword', 'application/vnd.ms-office'),
|
||||||
|
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
|
||||||
|
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
|
||||||
|
'word' => array('application/msword', 'application/octet-stream'),
|
||||||
|
'xl' => 'application/excel',
|
||||||
|
'eml' => 'message/rfc822',
|
||||||
|
'json' => array('application/json', 'text/json'),
|
||||||
|
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
|
||||||
|
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
|
||||||
|
'p12' => 'application/x-pkcs12',
|
||||||
|
'p7a' => 'application/x-pkcs7-signature',
|
||||||
|
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||||
|
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||||
|
'p7r' => 'application/x-pkcs7-certreqresp',
|
||||||
|
'p7s' => 'application/pkcs7-signature',
|
||||||
|
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
|
||||||
|
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
|
||||||
|
'der' => 'application/x-x509-ca-cert',
|
||||||
|
'kdb' => 'application/octet-stream',
|
||||||
|
'pgp' => 'application/pgp',
|
||||||
|
'gpg' => 'application/gpg-keys',
|
||||||
|
'sst' => 'application/octet-stream',
|
||||||
|
'csr' => 'application/octet-stream',
|
||||||
|
'rsa' => 'application/x-pkcs7',
|
||||||
|
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
|
||||||
|
'3g2' => 'video/3gpp2',
|
||||||
|
'3gp' => array('video/3gp', 'video/3gpp'),
|
||||||
|
'mp4' => 'video/mp4',
|
||||||
|
'm4a' => 'audio/x-m4a',
|
||||||
|
'f4v' => array('video/mp4', 'video/x-f4v'),
|
||||||
|
'flv' => 'video/x-flv',
|
||||||
|
'webm' => 'video/webm',
|
||||||
|
'aac' => 'audio/x-acc',
|
||||||
|
'm4u' => 'application/vnd.mpegurl',
|
||||||
|
'm3u' => 'text/plain',
|
||||||
|
'xspf' => 'application/xspf+xml',
|
||||||
|
'vlc' => 'application/videolan',
|
||||||
|
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
|
||||||
|
'au' => 'audio/x-au',
|
||||||
|
'ac3' => 'audio/ac3',
|
||||||
|
'flac' => 'audio/x-flac',
|
||||||
|
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'),
|
||||||
|
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
|
||||||
|
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
|
||||||
|
'ics' => 'text/calendar',
|
||||||
|
'ical' => 'text/calendar',
|
||||||
|
'zsh' => 'text/x-scriptzsh',
|
||||||
|
'7z' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||||
|
'7zip' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||||
|
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
|
||||||
|
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
|
||||||
|
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
|
||||||
|
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
|
||||||
|
'vcf' => 'text/x-vcard',
|
||||||
|
'srt' => array('text/srt', 'text/plain'),
|
||||||
|
'vtt' => array('text/vtt', 'text/plain'),
|
||||||
|
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'),
|
||||||
|
'odc' => 'application/vnd.oasis.opendocument.chart',
|
||||||
|
'otc' => 'application/vnd.oasis.opendocument.chart-template',
|
||||||
|
'odf' => 'application/vnd.oasis.opendocument.formula',
|
||||||
|
'otf' => 'application/vnd.oasis.opendocument.formula-template',
|
||||||
|
'odg' => 'application/vnd.oasis.opendocument.graphics',
|
||||||
|
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
|
||||||
|
'odi' => 'application/vnd.oasis.opendocument.image',
|
||||||
|
'oti' => 'application/vnd.oasis.opendocument.image-template',
|
||||||
|
'odp' => 'application/vnd.oasis.opendocument.presentation',
|
||||||
|
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
|
||||||
|
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
||||||
|
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
|
||||||
|
'odt' => 'application/vnd.oasis.opendocument.text',
|
||||||
|
'odm' => 'application/vnd.oasis.opendocument.text-master',
|
||||||
|
'ott' => 'application/vnd.oasis.opendocument.text-template',
|
||||||
|
'oth' => 'application/vnd.oasis.opendocument.text-web'
|
||||||
|
);
|
||||||
14
application/config/profiler.php
Normal file
14
application/config/profiler.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| Profiler Sections
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| This file lets you determine whether or not various sections of Profiler
|
||||||
|
| data are displayed when the Profiler is enabled.
|
||||||
|
| Please see the user guide for info:
|
||||||
|
|
|
||||||
|
| https://codeigniter.com/user_guide/general/profiling.html
|
||||||
|
|
|
||||||
|
*/
|
||||||
54
application/config/routes.php
Normal file
54
application/config/routes.php
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| URI ROUTING
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| This file lets you re-map URI requests to specific controller functions.
|
||||||
|
|
|
||||||
|
| Typically there is a one-to-one relationship between a URL string
|
||||||
|
| and its corresponding controller class/method. The segments in a
|
||||||
|
| URL normally follow this pattern:
|
||||||
|
|
|
||||||
|
| example.com/class/method/id/
|
||||||
|
|
|
||||||
|
| In some instances, however, you may want to remap this relationship
|
||||||
|
| so that a different class/function is called than the one
|
||||||
|
| corresponding to the URL.
|
||||||
|
|
|
||||||
|
| Please see the user guide for complete details:
|
||||||
|
|
|
||||||
|
| https://codeigniter.com/user_guide/general/routing.html
|
||||||
|
|
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
| RESERVED ROUTES
|
||||||
|
| -------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| There are three reserved routes:
|
||||||
|
|
|
||||||
|
| $route['default_controller'] = 'welcome';
|
||||||
|
|
|
||||||
|
| This route indicates which controller class should be loaded if the
|
||||||
|
| URI contains no data. In the above example, the "welcome" class
|
||||||
|
| would be loaded.
|
||||||
|
|
|
||||||
|
| $route['404_override'] = 'errors/page_missing';
|
||||||
|
|
|
||||||
|
| This route will tell the Router which controller/method to use if those
|
||||||
|
| provided in the URL cannot be matched to a valid route.
|
||||||
|
|
|
||||||
|
| $route['translate_uri_dashes'] = FALSE;
|
||||||
|
|
|
||||||
|
| This is not exactly a route, but allows you to automatically route
|
||||||
|
| controller and method names that contain dashes. '-' isn't a valid
|
||||||
|
| class or method name character, so it requires translation.
|
||||||
|
| When you set this option to TRUE, it will replace ALL dashes in the
|
||||||
|
| controller and method URI segments.
|
||||||
|
|
|
||||||
|
| Examples: my-controller/index -> my_controller/index
|
||||||
|
| my-controller/my-method -> my_controller/my_method
|
||||||
|
*/
|
||||||
|
$route['default_controller'] = 'home';
|
||||||
|
$route['404_override'] = '';
|
||||||
|
$route['translate_uri_dashes'] = FALSE;
|
||||||
64
application/config/smileys.php
Normal file
64
application/config/smileys.php
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| SMILEYS
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| This file contains an array of smileys for use with the emoticon helper.
|
||||||
|
| Individual images can be used to replace multiple smileys. For example:
|
||||||
|
| :-) and :) use the same image replacement.
|
||||||
|
|
|
||||||
|
| Please see user guide for more info:
|
||||||
|
| https://codeigniter.com/user_guide/helpers/smiley_helper.html
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
$smileys = array(
|
||||||
|
|
||||||
|
// smiley image name width height alt
|
||||||
|
|
||||||
|
':-)' => array('grin.gif', '19', '19', 'grin'),
|
||||||
|
':lol:' => array('lol.gif', '19', '19', 'LOL'),
|
||||||
|
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
|
||||||
|
':)' => array('smile.gif', '19', '19', 'smile'),
|
||||||
|
';-)' => array('wink.gif', '19', '19', 'wink'),
|
||||||
|
';)' => array('wink.gif', '19', '19', 'wink'),
|
||||||
|
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
|
||||||
|
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
|
||||||
|
':-S' => array('confused.gif', '19', '19', 'confused'),
|
||||||
|
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
|
||||||
|
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
|
||||||
|
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
|
||||||
|
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
|
||||||
|
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
|
||||||
|
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
|
||||||
|
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
|
||||||
|
':long:' => array('longface.gif', '19', '19', 'long face'),
|
||||||
|
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
|
||||||
|
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
|
||||||
|
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
|
||||||
|
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
|
||||||
|
':down:' => array('downer.gif', '19', '19', 'downer'),
|
||||||
|
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
|
||||||
|
':sick:' => array('sick.gif', '19', '19', 'sick'),
|
||||||
|
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
|
||||||
|
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
|
||||||
|
'>:(' => array('mad.gif', '19', '19', 'mad'),
|
||||||
|
':mad:' => array('mad.gif', '19', '19', 'mad'),
|
||||||
|
'>:-(' => array('angry.gif', '19', '19', 'angry'),
|
||||||
|
':angry:' => array('angry.gif', '19', '19', 'angry'),
|
||||||
|
':zip:' => array('zip.gif', '19', '19', 'zipper'),
|
||||||
|
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
|
||||||
|
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
|
||||||
|
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
|
||||||
|
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
|
||||||
|
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
|
||||||
|
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
|
||||||
|
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
|
||||||
|
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
|
||||||
|
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
|
||||||
|
':snake:' => array('snake.gif', '19', '19', 'snake'),
|
||||||
|
':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
|
||||||
|
':question:' => array('question.gif', '19', '19', 'question')
|
||||||
|
|
||||||
|
);
|
||||||
215
application/config/user_agents.php
Normal file
215
application/config/user_agents.php
Normal file
@ -0,0 +1,215 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/*
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| USER AGENT TYPES
|
||||||
|
| -------------------------------------------------------------------
|
||||||
|
| This file contains four arrays of user agent data. It is used by the
|
||||||
|
| User Agent Class to help identify browser, platform, robot, and
|
||||||
|
| mobile device data. The array keys are used to identify the device
|
||||||
|
| and the array values are used to set the actual name of the item.
|
||||||
|
*/
|
||||||
|
$platforms = array(
|
||||||
|
'windows nt 10.0' => 'Windows 10',
|
||||||
|
'windows nt 6.3' => 'Windows 8.1',
|
||||||
|
'windows nt 6.2' => 'Windows 8',
|
||||||
|
'windows nt 6.1' => 'Windows 7',
|
||||||
|
'windows nt 6.0' => 'Windows Vista',
|
||||||
|
'windows nt 5.2' => 'Windows 2003',
|
||||||
|
'windows nt 5.1' => 'Windows XP',
|
||||||
|
'windows nt 5.0' => 'Windows 2000',
|
||||||
|
'windows nt 4.0' => 'Windows NT 4.0',
|
||||||
|
'winnt4.0' => 'Windows NT 4.0',
|
||||||
|
'winnt 4.0' => 'Windows NT',
|
||||||
|
'winnt' => 'Windows NT',
|
||||||
|
'windows 98' => 'Windows 98',
|
||||||
|
'win98' => 'Windows 98',
|
||||||
|
'windows 95' => 'Windows 95',
|
||||||
|
'win95' => 'Windows 95',
|
||||||
|
'windows phone' => 'Windows Phone',
|
||||||
|
'windows' => 'Unknown Windows OS',
|
||||||
|
'android' => 'Android',
|
||||||
|
'blackberry' => 'BlackBerry',
|
||||||
|
'iphone' => 'iOS',
|
||||||
|
'ipad' => 'iOS',
|
||||||
|
'ipod' => 'iOS',
|
||||||
|
'os x' => 'Mac OS X',
|
||||||
|
'ppc mac' => 'Power PC Mac',
|
||||||
|
'freebsd' => 'FreeBSD',
|
||||||
|
'ppc' => 'Macintosh',
|
||||||
|
'linux' => 'Linux',
|
||||||
|
'debian' => 'Debian',
|
||||||
|
'sunos' => 'Sun Solaris',
|
||||||
|
'beos' => 'BeOS',
|
||||||
|
'apachebench' => 'ApacheBench',
|
||||||
|
'aix' => 'AIX',
|
||||||
|
'irix' => 'Irix',
|
||||||
|
'osf' => 'DEC OSF',
|
||||||
|
'hp-ux' => 'HP-UX',
|
||||||
|
'netbsd' => 'NetBSD',
|
||||||
|
'bsdi' => 'BSDi',
|
||||||
|
'openbsd' => 'OpenBSD',
|
||||||
|
'gnu' => 'GNU/Linux',
|
||||||
|
'unix' => 'Unknown Unix OS',
|
||||||
|
'symbian' => 'Symbian OS'
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// The order of this array should NOT be changed. Many browsers return
|
||||||
|
// multiple browser types so we want to identify the sub-type first.
|
||||||
|
$browsers = array(
|
||||||
|
'OPR' => 'Opera',
|
||||||
|
'Flock' => 'Flock',
|
||||||
|
'Edge' => 'Edge',
|
||||||
|
'Chrome' => 'Chrome',
|
||||||
|
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
|
||||||
|
'Opera.*?Version' => 'Opera',
|
||||||
|
'Opera' => 'Opera',
|
||||||
|
'MSIE' => 'Internet Explorer',
|
||||||
|
'Internet Explorer' => 'Internet Explorer',
|
||||||
|
'Trident.* rv' => 'Internet Explorer',
|
||||||
|
'Shiira' => 'Shiira',
|
||||||
|
'Firefox' => 'Firefox',
|
||||||
|
'Chimera' => 'Chimera',
|
||||||
|
'Phoenix' => 'Phoenix',
|
||||||
|
'Firebird' => 'Firebird',
|
||||||
|
'Camino' => 'Camino',
|
||||||
|
'Netscape' => 'Netscape',
|
||||||
|
'OmniWeb' => 'OmniWeb',
|
||||||
|
'Safari' => 'Safari',
|
||||||
|
'Mozilla' => 'Mozilla',
|
||||||
|
'Konqueror' => 'Konqueror',
|
||||||
|
'icab' => 'iCab',
|
||||||
|
'Lynx' => 'Lynx',
|
||||||
|
'Links' => 'Links',
|
||||||
|
'hotjava' => 'HotJava',
|
||||||
|
'amaya' => 'Amaya',
|
||||||
|
'IBrowse' => 'IBrowse',
|
||||||
|
'Maxthon' => 'Maxthon',
|
||||||
|
'Ubuntu' => 'Ubuntu Web Browser'
|
||||||
|
);
|
||||||
|
|
||||||
|
$mobiles = array(
|
||||||
|
// legacy array, old values commented out
|
||||||
|
'mobileexplorer' => 'Mobile Explorer',
|
||||||
|
// 'openwave' => 'Open Wave',
|
||||||
|
// 'opera mini' => 'Opera Mini',
|
||||||
|
// 'operamini' => 'Opera Mini',
|
||||||
|
// 'elaine' => 'Palm',
|
||||||
|
'palmsource' => 'Palm',
|
||||||
|
// 'digital paths' => 'Palm',
|
||||||
|
// 'avantgo' => 'Avantgo',
|
||||||
|
// 'xiino' => 'Xiino',
|
||||||
|
'palmscape' => 'Palmscape',
|
||||||
|
// 'nokia' => 'Nokia',
|
||||||
|
// 'ericsson' => 'Ericsson',
|
||||||
|
// 'blackberry' => 'BlackBerry',
|
||||||
|
// 'motorola' => 'Motorola'
|
||||||
|
|
||||||
|
// Phones and Manufacturers
|
||||||
|
'motorola' => 'Motorola',
|
||||||
|
'nokia' => 'Nokia',
|
||||||
|
'nexus' => 'Nexus',
|
||||||
|
'palm' => 'Palm',
|
||||||
|
'iphone' => 'Apple iPhone',
|
||||||
|
'ipad' => 'iPad',
|
||||||
|
'ipod' => 'Apple iPod Touch',
|
||||||
|
'sony' => 'Sony Ericsson',
|
||||||
|
'ericsson' => 'Sony Ericsson',
|
||||||
|
'blackberry' => 'BlackBerry',
|
||||||
|
'cocoon' => 'O2 Cocoon',
|
||||||
|
'blazer' => 'Treo',
|
||||||
|
'lg' => 'LG',
|
||||||
|
'amoi' => 'Amoi',
|
||||||
|
'xda' => 'XDA',
|
||||||
|
'mda' => 'MDA',
|
||||||
|
'vario' => 'Vario',
|
||||||
|
'htc' => 'HTC',
|
||||||
|
'samsung' => 'Samsung',
|
||||||
|
'sharp' => 'Sharp',
|
||||||
|
'sie-' => 'Siemens',
|
||||||
|
'alcatel' => 'Alcatel',
|
||||||
|
'benq' => 'BenQ',
|
||||||
|
'ipaq' => 'HP iPaq',
|
||||||
|
'mot-' => 'Motorola',
|
||||||
|
'playstation portable' => 'PlayStation Portable',
|
||||||
|
'playstation 3' => 'PlayStation 3',
|
||||||
|
'playstation vita' => 'PlayStation Vita',
|
||||||
|
'hiptop' => 'Danger Hiptop',
|
||||||
|
'nec-' => 'NEC',
|
||||||
|
'panasonic' => 'Panasonic',
|
||||||
|
'philips' => 'Philips',
|
||||||
|
'sagem' => 'Sagem',
|
||||||
|
'sanyo' => 'Sanyo',
|
||||||
|
'spv' => 'SPV',
|
||||||
|
'zte' => 'ZTE',
|
||||||
|
'sendo' => 'Sendo',
|
||||||
|
'nintendo dsi' => 'Nintendo DSi',
|
||||||
|
'nintendo ds' => 'Nintendo DS',
|
||||||
|
'nintendo 3ds' => 'Nintendo 3DS',
|
||||||
|
'wii' => 'Nintendo Wii',
|
||||||
|
'open web' => 'Open Web',
|
||||||
|
'openweb' => 'OpenWeb',
|
||||||
|
|
||||||
|
// Operating Systems
|
||||||
|
'android' => 'Android',
|
||||||
|
'symbian' => 'Symbian',
|
||||||
|
'SymbianOS' => 'SymbianOS',
|
||||||
|
'elaine' => 'Palm',
|
||||||
|
'series60' => 'Symbian S60',
|
||||||
|
'windows ce' => 'Windows CE',
|
||||||
|
|
||||||
|
// Browsers
|
||||||
|
'obigo' => 'Obigo',
|
||||||
|
'netfront' => 'Netfront Browser',
|
||||||
|
'openwave' => 'Openwave Browser',
|
||||||
|
'mobilexplorer' => 'Mobile Explorer',
|
||||||
|
'operamini' => 'Opera Mini',
|
||||||
|
'opera mini' => 'Opera Mini',
|
||||||
|
'opera mobi' => 'Opera Mobile',
|
||||||
|
'fennec' => 'Firefox Mobile',
|
||||||
|
|
||||||
|
// Other
|
||||||
|
'digital paths' => 'Digital Paths',
|
||||||
|
'avantgo' => 'AvantGo',
|
||||||
|
'xiino' => 'Xiino',
|
||||||
|
'novarra' => 'Novarra Transcoder',
|
||||||
|
'vodafone' => 'Vodafone',
|
||||||
|
'docomo' => 'NTT DoCoMo',
|
||||||
|
'o2' => 'O2',
|
||||||
|
|
||||||
|
// Fallback
|
||||||
|
'mobile' => 'Generic Mobile',
|
||||||
|
'wireless' => 'Generic Mobile',
|
||||||
|
'j2me' => 'Generic Mobile',
|
||||||
|
'midp' => 'Generic Mobile',
|
||||||
|
'cldc' => 'Generic Mobile',
|
||||||
|
'up.link' => 'Generic Mobile',
|
||||||
|
'up.browser' => 'Generic Mobile',
|
||||||
|
'smartphone' => 'Generic Mobile',
|
||||||
|
'cellphone' => 'Generic Mobile'
|
||||||
|
);
|
||||||
|
|
||||||
|
// There are hundreds of bots but these are the most common.
|
||||||
|
$robots = array(
|
||||||
|
'googlebot' => 'Googlebot',
|
||||||
|
'msnbot' => 'MSNBot',
|
||||||
|
'baiduspider' => 'Baiduspider',
|
||||||
|
'bingbot' => 'Bing',
|
||||||
|
'slurp' => 'Inktomi Slurp',
|
||||||
|
'yahoo' => 'Yahoo',
|
||||||
|
'ask jeeves' => 'Ask Jeeves',
|
||||||
|
'fastcrawler' => 'FastCrawler',
|
||||||
|
'infoseek' => 'InfoSeek Robot 1.0',
|
||||||
|
'lycos' => 'Lycos',
|
||||||
|
'yandex' => 'YandexBot',
|
||||||
|
'mediapartners-google' => 'MediaPartners Google',
|
||||||
|
'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
|
||||||
|
'adsbot-google' => 'AdsBot Google',
|
||||||
|
'feedfetcher-google' => 'Feedfetcher Google',
|
||||||
|
'curious george' => 'Curious George',
|
||||||
|
'ia_archiver' => 'Alexa Crawler',
|
||||||
|
'MJ12bot' => 'Majestic-12',
|
||||||
|
'Uptimebot' => 'Uptimebot'
|
||||||
|
);
|
||||||
923
application/controllers/Admin.php
Normal file
923
application/controllers/Admin.php
Normal file
@ -0,0 +1,923 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Admin extends CI_Controller {
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
$this->load->model('model');
|
||||||
|
$this->load->model('m_tabel_ss');
|
||||||
|
$this->load->library('pdf');
|
||||||
|
}
|
||||||
|
|
||||||
|
function index()
|
||||||
|
{
|
||||||
|
if ($this->input->post('proses') == 'cek_foto_detail') {
|
||||||
|
// header('Access-Control-Allow-Origin: *');
|
||||||
|
$html = '';
|
||||||
|
foreach (glob('images/kategori/'.$this->input->post('id').'/*.*') as $key => $value){
|
||||||
|
// print_r($key);
|
||||||
|
// if ($key == 0) {
|
||||||
|
// $html .= '<center> <a class="example-image-link" href="'.base_url().$value.'" data-lightbox="example-set" >Klik Untuk Melihat Foto</a></center>';
|
||||||
|
$html .= '<a href="'.base_url().$value.'" target="_blank"><img class="example-image" src="'.base_url().$value.'" width="100px" height="100px" alt=""/></a>';
|
||||||
|
// }else{
|
||||||
|
// $html .= '<a class="example-image-link" href="'.base_url().$value.'" data-lightbox="example-set" ></a>';
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
print_r($html);
|
||||||
|
}else{
|
||||||
|
$main['list_buku'] = $this->model->tampil_data_keseluruhan("tb_list_buku");
|
||||||
|
$main['list_kategori'] = $this->model->tampil_data_keseluruhan("tb_kategori");
|
||||||
|
$main['list_rak_buku'] = $this->model->tampil_data_where("tb_map_perpustakaan",array('kategori' => 'rak_buku'));
|
||||||
|
$this->load->view('admin/index',$main);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function buku()
|
||||||
|
{
|
||||||
|
if ($this->input->post("proses") == "hapus_datanya") {
|
||||||
|
// print_r('sini hapus');
|
||||||
|
$id = $this->input->post('id');
|
||||||
|
|
||||||
|
$this->model->delete('tb_list_buku',array('no' => $id));
|
||||||
|
$this->session->set_flashdata('success', 'Buku Berhasil Dihapus');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($this->input->post("proses") == "edit") {
|
||||||
|
$id = $this->input->post('id');
|
||||||
|
$judul = $this->input->post('judul');
|
||||||
|
$kategori = $this->input->post('kategori');
|
||||||
|
$pengarang = $this->input->post('pengarang');
|
||||||
|
$tahun_terbit = $this->input->post('tahun_terbit');
|
||||||
|
$tingkat = $this->input->post('tingkat');
|
||||||
|
|
||||||
|
$this->model->update('tb_list_buku',array('no' => $id),array('judul' => $judul, 'kategori' => $kategori, 'pengarang' => $pengarang, 'tahun_terbit' => $tahun_terbit, 'tingkat' => $tingkat));
|
||||||
|
$this->session->set_flashdata('success', 'List Buku Berhasil Diedit');
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "cek_kategori") {
|
||||||
|
// print_r('sini cek kategori');
|
||||||
|
$cek_data = $this->model->tampil_data_keseluruhan('tb_kategori');
|
||||||
|
print_r(json_encode($cek_data->result()));
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "tambah") {
|
||||||
|
$data = $this->model->serialize($this->input->post('data'));
|
||||||
|
$this->model->insert("tb_list_buku",$data);
|
||||||
|
$this->session->set_flashdata('success', 'List Buku Baru Berhasil Ditambah');
|
||||||
|
$cek_data_last = $this->model->tampil_data_last('tb_list_buku','no')->result();
|
||||||
|
print_r($cek_data_last[0]->no);
|
||||||
|
}
|
||||||
|
elseif ($this->uri->segment(3) == "tables") {
|
||||||
|
$list = $this->m_tabel_ss->get_datatables("tb_list_buku a",array('a.judul','b.kategori','a.pengarang','a.tahun_terbit'),array(null, 'a.judul','b.kategori','a.pengarang','a.tahun_terbit',null),array('no' => 'asc'),'tb_kategori b', 'a.kategori = b.no');
|
||||||
|
$data = array();
|
||||||
|
$no = $_POST['start'];
|
||||||
|
foreach ($list as $field) {
|
||||||
|
$no++;
|
||||||
|
$row = array();
|
||||||
|
// $row[] = $no;
|
||||||
|
$row[] = $field->judul;
|
||||||
|
$row[] = $field->kategori;
|
||||||
|
$row[] = $field->pengarang;
|
||||||
|
$row[] = $field->tahun_terbit;
|
||||||
|
// $row[] = '<center><a href="'.$no.'.html"><button type="button" title="Edit List Buku" class="btn btn-primary btn-circle btn-sm waves-effect waves-light"><i class="ico fa fa-edit"></i></button></a>   <button type="button" title="Lihat Penempatan Buku" class="btn btn-info btn-circle btn-sm waves-effect waves-light"><i class="ico fa fa-list-alt"></i></button>';
|
||||||
|
$row[] = '<center><a data-toggle="modal" href="#sini_modalnya"><button type="button" title="Edit List Buku" data-nonya="'.$field->nomornya.'" data-judul="'.$field->judul.'" data-pengarang="'.$field->pengarang.'" data-tahun_terbit="'.$field->tahun_terbit.'" data-kategori="'.$field->nomor_kategori.'" data-tingkat="'.$field->tingkat.'" class="lihat_informasi btn btn-primary btn-circle btn-sm waves-effect waves-light"><i class="ico fa fa-edit"></i></button></a> <a href="'.base_url('admin/print/'.$field->nomornya).'" target="_blank" class="btn btn-success btn-circle btn-sm waves-effect waves-light"><i class="ico fa fa-list"></i></button></a></center>';
|
||||||
|
$data[] = $row;
|
||||||
|
}
|
||||||
|
|
||||||
|
$output = array(
|
||||||
|
"draw" => $_POST['draw'],
|
||||||
|
"recordsTotal" => $this->m_tabel_ss->count_all("tb_list_buku a",'tb_kategori b', 'a.kategori = b.no'),
|
||||||
|
"recordsFiltered" => $this->m_tabel_ss->count_filtered("tb_list_buku a",array('a.judul','b.kategori','a.pengarang','a.tahun_terbit'),array(null, 'a.judul','b.kategori','a.pengarang','a.tahun_terbit',null),array('no' => 'asc'),'tb_kategori b', 'a.kategori = b.no'),
|
||||||
|
"data" => $data,
|
||||||
|
);
|
||||||
|
//output dalam format JSON
|
||||||
|
echo json_encode($output);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$main['list_buku'] = $this->model->tampil_data_keseluruhan("tb_list_buku");
|
||||||
|
$main['list_kategori'] = $this->model->tampil_data_keseluruhan("tb_kategori");
|
||||||
|
$main['list_rak_buku'] = $this->model->tampil_data_where("tb_map_perpustakaan",array('kategori' => 'rak_buku'));
|
||||||
|
// $main["kategori"] = $this->model->tampil_data_keseluruhan("tb_kategori");
|
||||||
|
$this->load->view('admin/menu/buku',$main);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function kategori()
|
||||||
|
{
|
||||||
|
if ($this->input->post("proses") == "hapus_datanya") {
|
||||||
|
// print_r('sini hapus');
|
||||||
|
$id = $this->input->post('id');
|
||||||
|
print_r($id);
|
||||||
|
$dir = 'images/kategori/'.$id.'/';
|
||||||
|
$files = glob($dir.'*'); // get all file names
|
||||||
|
foreach($files as $file){ // iterate files
|
||||||
|
if(is_file($file))
|
||||||
|
unlink($file); // delete file
|
||||||
|
}
|
||||||
|
rmdir($dir);
|
||||||
|
$this->model->delete('tb_kategori',array('no' => $id));
|
||||||
|
$this->session->set_flashdata('success', 'Kategori Berhasil Dihapus');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($this->input->post("proses") == "edit_datanya") {
|
||||||
|
// print_r("sini edit data");
|
||||||
|
$id = $this->input->post('id');
|
||||||
|
$kategori = $this->input->post('kategori');
|
||||||
|
// $tingkat = $this->input->post('tingkat');
|
||||||
|
$rak = $this->input->post('rak');
|
||||||
|
if ($this->input->post('foto') == 1) {
|
||||||
|
// print_r('ada')
|
||||||
|
$dir = 'images/kategori/'.$id.'/';
|
||||||
|
|
||||||
|
if( is_dir($dir) === false )
|
||||||
|
{
|
||||||
|
mkdir($dir);
|
||||||
|
}
|
||||||
|
|
||||||
|
$files = glob($dir.'*'); // get all file names
|
||||||
|
foreach($files as $file){ // iterate files
|
||||||
|
if(is_file($file))
|
||||||
|
unlink($file); // delete file
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// $countfiles = count($_FILES['files']['name']);
|
||||||
|
// for($index = 0;$index < $countfiles;$index++){
|
||||||
|
|
||||||
|
$filename = $_FILES['files']['name'];
|
||||||
|
$path = $dir.$filename;
|
||||||
|
move_uploaded_file($_FILES['files']['tmp_name'],$path);
|
||||||
|
// }
|
||||||
|
// print_r($countfiles);
|
||||||
|
}
|
||||||
|
// print_r($_FILES['files']);
|
||||||
|
// print_r($kategori);
|
||||||
|
// print_r($tingkat);
|
||||||
|
// print_r($rak);
|
||||||
|
// $this->model->update("tb_kategori",array('no' => $id),array("kategori" => $kategori, 'rak_buku' => $rak ,'tingkat' => $tingkat));
|
||||||
|
$this->model->update("tb_kategori",array('no' => $id),array("kategori" => $kategori, 'rak_buku' => $rak ));
|
||||||
|
$this->session->set_flashdata('success', 'Kategori Berhasil Diedit');
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "cari_semuanya_id_edit") {
|
||||||
|
$rak_buku = $this->input->post("rak");
|
||||||
|
$cek_data = $this->model->tampil_data_keseluruhan("tb_map_perpustakaan");
|
||||||
|
$html = '<script type="text/javascript">
|
||||||
|
canvas.__eventListeners = {}
|
||||||
|
canvas.discardActiveObject();
|
||||||
|
canvas.renderAll();
|
||||||
|
function AddRakBuku(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "aqua",
|
||||||
|
fillText: "heheh",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "blue",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 11,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
// selectable : false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddRakBukuPilihan(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "red",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "pink",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 11,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
selectable : false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddMeja(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "meja_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "orange",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "yellow",
|
||||||
|
strokeWidth: 2,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 6,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddKursi(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "kursi_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "lime",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "green",
|
||||||
|
strokeWidth: 1,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 3,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
canvas.on("mouse:up", function(options) {
|
||||||
|
// console.log(options.target._objects);
|
||||||
|
if (options.target == null || typeof options.target._objects == "undefined") {
|
||||||
|
// console.log("sini kosong");
|
||||||
|
toastr.options = {
|
||||||
|
"closeButton": true,
|
||||||
|
"debug": false,
|
||||||
|
"progressBar": true,
|
||||||
|
"positionClass": "toast-top-right",
|
||||||
|
"showDuration": "300",
|
||||||
|
"hideDuration": "1000",
|
||||||
|
"timeOut": "5000",
|
||||||
|
"extendedTimeOut": "1000",
|
||||||
|
"showEasing": "swing",
|
||||||
|
"hideEasing": "linear",
|
||||||
|
"showMethod": "fadeIn",
|
||||||
|
"hideMethod": "fadeOut"
|
||||||
|
};
|
||||||
|
|
||||||
|
toastr.error("<center><b>Sila Klik <i>'."'".'Rak Buku'."'".'</i> Untuk Melanjutkan</b></center>");
|
||||||
|
}else{
|
||||||
|
// console.log("sini ada");
|
||||||
|
var idnya = options.target._objects[0].id;
|
||||||
|
idnya = idnya.slice(idnya.lastIndexOf("_") + 1);
|
||||||
|
console.log(idnya);
|
||||||
|
$("#id_rak_buku_edit").val(idnya);
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>';
|
||||||
|
if (count($cek_data->result()) > 0) {
|
||||||
|
$html .= "<script>";
|
||||||
|
foreach ($cek_data->result() as $key => $value) {
|
||||||
|
$ket = json_decode($value->ket);
|
||||||
|
if ($value->kategori == 'rak_buku') {
|
||||||
|
$nama_kategori = '';
|
||||||
|
$cek_nama_kategori = $this->model->tampil_data_where('tb_kategori', array('rak_buku' => $value->no))->result();
|
||||||
|
foreach ($cek_nama_kategori as $key1 => $value1) {
|
||||||
|
$nama_kategori .= $value1->kategori . ' \n';
|
||||||
|
}
|
||||||
|
// $nama_kategori = substr($nama_kategori, 0, -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -2);
|
||||||
|
if ($value->no === $rak_buku) {
|
||||||
|
$html.="AddRakBukuPilihan(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}else{
|
||||||
|
$html.="AddRakBuku(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($value->kategori == 'meja') {
|
||||||
|
$html.="AddMeja(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($value->kategori == 'kursi') {
|
||||||
|
$html.="AddKursi(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= "</script>";
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "cari_semuanya_id") {
|
||||||
|
$rak_buku = $this->input->post("rak");
|
||||||
|
$cek_data = $this->model->tampil_data_keseluruhan("tb_map_perpustakaan");
|
||||||
|
$html = '<script type="text/javascript">
|
||||||
|
canvas.__eventListeners = {}
|
||||||
|
canvas.discardActiveObject();
|
||||||
|
canvas.renderAll();
|
||||||
|
canvas.forEachObject(function(object){
|
||||||
|
object.selectable = false;
|
||||||
|
});
|
||||||
|
function AddRakBuku(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "aqua",
|
||||||
|
fillText: "heheh",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "blue",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 14,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
selectable : false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddRakBukuPilihan(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "red",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "pink",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 11,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
selectable : false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddMeja(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "meja_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "orange",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "yellow",
|
||||||
|
strokeWidth: 2,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 6,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddKursi(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "kursi_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "lime",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "green",
|
||||||
|
strokeWidth: 1,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 3,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
canvas.on("mouse:up", function(options) {
|
||||||
|
$("#sini_html").html(null);
|
||||||
|
});
|
||||||
|
</script>';
|
||||||
|
if (count($cek_data->result()) > 0) {
|
||||||
|
$html .= "<script>";
|
||||||
|
foreach ($cek_data->result() as $key => $value) {
|
||||||
|
$ket = json_decode($value->ket);
|
||||||
|
if ($value->kategori == 'rak_buku') {
|
||||||
|
$nama_kategori = '';
|
||||||
|
$cek_nama_kategori = $this->model->tampil_data_where('tb_kategori', array('rak_buku' => $value->no))->result();
|
||||||
|
foreach ($cek_nama_kategori as $key1 => $value1) {
|
||||||
|
$nama_kategori .= $value1->kategori . ' \n';
|
||||||
|
}
|
||||||
|
// $nama_kategori = substr($nama_kategori, 0, -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -2);
|
||||||
|
if ($value->no === $rak_buku) {
|
||||||
|
$html.="AddRakBukuPilihan(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}else{
|
||||||
|
$html.="AddRakBuku(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($value->kategori == 'meja') {
|
||||||
|
$html.="AddMeja(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($value->kategori == 'kursi') {
|
||||||
|
$html.="AddKursi(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= "</script>";
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "cari_semuanya") {
|
||||||
|
$cek_data = $this->model->tampil_data_keseluruhan("tb_map_perpustakaan");
|
||||||
|
|
||||||
|
if (count($cek_data->result()) > 0) {
|
||||||
|
$html.= '<script>
|
||||||
|
//canvas.__eventListeners = {}
|
||||||
|
canvas.discardActiveObject();
|
||||||
|
canvas.renderAll();
|
||||||
|
function AddRakBuku(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
// lockMovementX: true,
|
||||||
|
// lockMovementY: true,
|
||||||
|
// lockScalingX : true,
|
||||||
|
// lockScalingY : true,
|
||||||
|
// lockRotation : true,
|
||||||
|
// left: left,
|
||||||
|
// top: top,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "aqua",
|
||||||
|
fillText: "heheh",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "blue",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
// text : "heheh"
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 11,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddMeja(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "meja_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "orange",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "yellow",
|
||||||
|
strokeWidth: 2,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 6,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddKursi(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "kursi_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "lime",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "green",
|
||||||
|
strokeWidth: 1,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 3,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
canvas.on("mouse:up", function(options) {
|
||||||
|
// console.log(options.target._objects);
|
||||||
|
if (options.target == null || typeof options.target._objects == "undefined") {
|
||||||
|
// console.log("sini kosong");
|
||||||
|
toastr.options = {
|
||||||
|
"closeButton": true,
|
||||||
|
"debug": false,
|
||||||
|
"progressBar": true,
|
||||||
|
"positionClass": "toast-top-right",
|
||||||
|
"showDuration": "300",
|
||||||
|
"hideDuration": "1000",
|
||||||
|
"timeOut": "5000",
|
||||||
|
"extendedTimeOut": "1000",
|
||||||
|
"showEasing": "swing",
|
||||||
|
"hideEasing": "linear",
|
||||||
|
"showMethod": "fadeIn",
|
||||||
|
"hideMethod": "fadeOut"
|
||||||
|
};
|
||||||
|
|
||||||
|
toastr.error("<center><b>Sila Klik <i>'."'".'Rak Buku'."'".'</i> Untuk Melanjutkan</b></center>");
|
||||||
|
}else{
|
||||||
|
// console.log("sini ada");
|
||||||
|
var idnya = options.target._objects[0].id;
|
||||||
|
idnya = idnya.slice(idnya.lastIndexOf("_") + 1);
|
||||||
|
swal({
|
||||||
|
text: "Kategori Baru Akan Tersimpan Doi Rak Buku Ini",
|
||||||
|
icon: "info",
|
||||||
|
buttons: true,
|
||||||
|
dangerMode: false,
|
||||||
|
})
|
||||||
|
.then((logout) => {
|
||||||
|
if (logout) {
|
||||||
|
$("#id_rak_buku_terpilih").val(idnya);
|
||||||
|
// console.log($("#id_rak_buku_terpilih").val());
|
||||||
|
$("#button_tambah_rak").attr({"disabled":""});
|
||||||
|
$("#button_tambah_rak").html("Rak Buku Telah Terpilih");
|
||||||
|
$("#sini_html").html(null);
|
||||||
|
$("#sini_modalnya").modal("hide");
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
';
|
||||||
|
foreach ($cek_data->result() as $key => $value) {
|
||||||
|
$ket = json_decode($value->ket);
|
||||||
|
if ($value->kategori == 'rak_buku') {
|
||||||
|
$nama_kategori = '';
|
||||||
|
$cek_nama_kategori = $this->model->tampil_data_where('tb_kategori', array('rak_buku' => $value->no))->result();
|
||||||
|
foreach ($cek_nama_kategori as $key1 => $value1) {
|
||||||
|
$nama_kategori .= $value1->kategori . ' \n';
|
||||||
|
}
|
||||||
|
// $nama_kategori = substr($nama_kategori, 0, -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -2);
|
||||||
|
$html.="AddRakBuku(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}
|
||||||
|
elseif ($value->kategori == 'meja') {
|
||||||
|
$html.="AddMeja(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($value->kategori == 'kursi') {
|
||||||
|
$html.="AddKursi(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= "</script>";
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "tambah") {
|
||||||
|
// $file = $_FILES['file'];
|
||||||
|
$data = $this->input->post('data');
|
||||||
|
$data = $this->model->serialize(json_decode($data));
|
||||||
|
$cek_data = $this->model->tampil_data_where("tb_kategori", array('kategori' => $data['kategori']));
|
||||||
|
if (count($cek_data->result()) > 0) {
|
||||||
|
$this->session->set_flashdata('error', 'Kategori Yang Dimasukkan Telah Ada Dalam Sistem Sebelumnya, Silakan Cek Di List Kategori');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$foto = $_FILES['files'];
|
||||||
|
$this->model->insert("tb_kategori",$data);
|
||||||
|
$data_last = $this->model->cek_last_ai('tb_kategori')->result();
|
||||||
|
$data_last = $data_last[0]->no - 1;
|
||||||
|
$dir = 'images/kategori/'.$data_last.'/';
|
||||||
|
if( is_dir($dir) === false )
|
||||||
|
{
|
||||||
|
mkdir($dir);
|
||||||
|
}
|
||||||
|
move_uploaded_file($foto['tmp_name'],$dir.$foto['name']);
|
||||||
|
// $this->model->update('tb_kategori',array('no' => $data_last->result()[0]->no),array('foto' => $_FILES['file']['name']));
|
||||||
|
$this->session->set_flashdata('success', 'Kategori Baru Berhasil Ditambah');
|
||||||
|
// print_r($data_last->result()[0]->no);
|
||||||
|
// print_r($data_last[0]->no);
|
||||||
|
|
||||||
|
}
|
||||||
|
// print_r($file);
|
||||||
|
// print_r($kategori);
|
||||||
|
}
|
||||||
|
elseif ($this->uri->segment(3) == 'tables') {
|
||||||
|
$list = $this->m_tabel_ss->get_datatables('tb_kategori',array('kategori'),array(null, 'kategori',null),array('no' => 'asc'),null,null);
|
||||||
|
$data = array();
|
||||||
|
$no = $_POST['start'];
|
||||||
|
foreach ($list as $field) {
|
||||||
|
$no++;
|
||||||
|
$row = array();
|
||||||
|
$row[] = $no;
|
||||||
|
$row[] = $field->kategori;
|
||||||
|
// $row[] = '<a data-toggle="modal" data-id="'.$field->no.'" data-rak="'.$field->rak_buku.'" data-tingkat="'.$field->tingkat.'" data-kategori="'.$field->kategori.'" title="Lihat Informasi" class="lihat_informasi" href="#sini_modalnya" ><button class=" btn btn-primary">Lihat Detail</button></a>';
|
||||||
|
$row[] = '<a data-toggle="modal" data-id="'.$field->no.'" data-rak="'.$field->rak_buku.'" data-kategori="'.$field->kategori.'" title="Lihat Informasi" class="lihat_informasi" href="#sini_modalnya" ><button class=" btn btn-primary">Lihat Detail</button></a>';
|
||||||
|
$data[] = $row;
|
||||||
|
}
|
||||||
|
|
||||||
|
$output = array(
|
||||||
|
"draw" => $_POST['draw'],
|
||||||
|
"recordsTotal" => $this->m_tabel_ss->count_all('tb_kategori',null,null),
|
||||||
|
"recordsFiltered" => $this->m_tabel_ss->count_filtered('tb_kategori',array('kategori'),array(null, 'kategori',null),array('no' => 'asc'),null,null),
|
||||||
|
"data" => $data,
|
||||||
|
);
|
||||||
|
//output dalam format JSON
|
||||||
|
echo json_encode($output);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
// $list =
|
||||||
|
$main['list_buku'] = $this->model->tampil_data_keseluruhan("tb_list_buku");
|
||||||
|
$main['list_kategori'] = $this->model->tampil_data_keseluruhan("tb_kategori");
|
||||||
|
$main['list_rak_buku'] = $this->model->tampil_data_where("tb_map_perpustakaan",array('kategori' => 'rak_buku'));
|
||||||
|
$this->load->view('admin/menu/kategori',$main);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function rak_buku()
|
||||||
|
{
|
||||||
|
if ($this->input->post("proses") == "hapus") {
|
||||||
|
$id = $this->input->post("id");
|
||||||
|
$this->model->delete("tb_map_perpustakaan",array('no' => $id));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($this->input->post("proses") == "update") {
|
||||||
|
// print_r("sini proses update");
|
||||||
|
$id = $this->input->post("id");
|
||||||
|
$data = $this->input->post("data");
|
||||||
|
$kategori = $this->input->post("kategori");
|
||||||
|
// print_r($id);
|
||||||
|
// print_r($data);
|
||||||
|
// print_r($kategori);
|
||||||
|
$this->model->update("tb_map_perpustakaan",array('no' => $id,'kategori' => $kategori),array('ket' => $data));
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($this->input->post("proses") == "cari_semuanya") {
|
||||||
|
$cek_data = $this->model->tampil_data_keseluruhan("tb_map_perpustakaan");
|
||||||
|
|
||||||
|
if (count($cek_data->result()) > 0) {
|
||||||
|
// $jumlah_rak_buku = count($this->model->tampil_data_where('tb_map_perpustakaan',array('kategori' => 'rak_buku'))->result());
|
||||||
|
|
||||||
|
// for ($i=0; $i < ; $i++) {
|
||||||
|
// # code...
|
||||||
|
// }
|
||||||
|
|
||||||
|
// foreach ($cek_data->result() as $key => $value) {
|
||||||
|
// $nama_kategori[$key] = '';
|
||||||
|
// }
|
||||||
|
|
||||||
|
$html= "<script>";
|
||||||
|
foreach ($cek_data->result() as $key => $value) {
|
||||||
|
$ket = json_decode($value->ket);
|
||||||
|
if ($value->kategori == 'rak_buku') {
|
||||||
|
$nama_kategori = '';
|
||||||
|
$cek_nama_kategori = $this->model->tampil_data_where('tb_kategori', array('rak_buku' => $value->no))->result();
|
||||||
|
foreach ($cek_nama_kategori as $key1 => $value1) {
|
||||||
|
$nama_kategori .= $value1->kategori . ' \n';
|
||||||
|
}
|
||||||
|
// $nama_kategori = substr($nama_kategori, 0, -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -2);
|
||||||
|
$html.="AddRakBuku(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}
|
||||||
|
elseif ($value->kategori == 'meja') {
|
||||||
|
$html.="AddMeja(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($value->kategori == 'kursi') {
|
||||||
|
$html.="AddKursi(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= "</script>";
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "cek_id") {
|
||||||
|
$cek_data = $this->model->cek_last_ai('tb_map_perpustakaan')->result();
|
||||||
|
|
||||||
|
print_r($cek_data[0]->no);
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "tambah") {
|
||||||
|
// print_r("sini tambah");
|
||||||
|
$datanya = $this->input->post("data");
|
||||||
|
$kategori = $this->input->post("kategori");
|
||||||
|
// print_r($datanya);
|
||||||
|
// print_r($kategori);
|
||||||
|
// $cek_data = $this->model->tampil_data_where("tb_map_perpustakaan","kategori = '".$kategori."' order by no desc limit 1");
|
||||||
|
// if (count($cek_data) > 0) {
|
||||||
|
// # code...
|
||||||
|
// }
|
||||||
|
// print_r($cek_data->result());
|
||||||
|
$this->model->insert("tb_map_perpustakaan",array("ket" => $datanya,"kategori" => $kategori));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$main['list_buku'] = $this->model->tampil_data_keseluruhan("tb_list_buku");
|
||||||
|
$main['list_kategori'] = $this->model->tampil_data_keseluruhan("tb_kategori");
|
||||||
|
$main['list_rak_buku'] = $this->model->tampil_data_where("tb_map_perpustakaan",array('kategori' => 'rak_buku'));
|
||||||
|
$this->load->view('admin/menu/rak_buku',$main);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function print()
|
||||||
|
{
|
||||||
|
// print_r($this->uri->segment(3));
|
||||||
|
$cek_data = $this->model->tampil_data_where('tb_list_buku',array('no' => $this->uri->segment(3)))->result();
|
||||||
|
if (count($cek_data) > 0) {
|
||||||
|
$this->model->qrcode_buku("buku/".$this->uri->segment(3));
|
||||||
|
$pdf = new FPDF('L','mm',array(60,100));
|
||||||
|
$pdf->AddPage();
|
||||||
|
$pdf->Image(base_url('images/buku/'.md5('buku/'.$cek_data[0]->no).'.png'),5,7,30);
|
||||||
|
$pdf->SetFont('Times','',9);
|
||||||
|
$pdf->Ln(2);
|
||||||
|
$pdf->cell(2);
|
||||||
|
$pdf->Cell(45,5,'Judul :',0,0,'R');
|
||||||
|
$pdf->Cell(50,5,''.$cek_data[0]->judul,0,0,'L');
|
||||||
|
$pdf->Ln(6);
|
||||||
|
$pdf->SetFont('Times','',9);
|
||||||
|
$pdf->Cell(45,5,'Kode Buku :',0,0,'R');
|
||||||
|
$pdf->Cell(50,5,''.$cek_data[0]->no,0,0,'L');
|
||||||
|
$pdf->Ln(6);
|
||||||
|
$pdf->SetFont('Times','',9);
|
||||||
|
$pdf->Cell(45,5,'Pengarang :',0,0,'R');
|
||||||
|
$pdf->Cell(50,5,''.$cek_data[0]->pengarang,0,0,'L');
|
||||||
|
$pdf->Ln(6);
|
||||||
|
$pdf->SetFont('Times','',9);
|
||||||
|
$pdf->cell(2);
|
||||||
|
$pdf->Cell(45,5,'Tahun Terbit :',0,0,'R');
|
||||||
|
$pdf->Cell(50,5,''.$cek_data[0]->tahun_terbit,0,0,'L');
|
||||||
|
// print_r('ada');
|
||||||
|
$pdf->output();
|
||||||
|
}else{
|
||||||
|
redirect('/admin/buku');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function logout()
|
||||||
|
{
|
||||||
|
$this->session->unset_userdata('admin');
|
||||||
|
$this->session->set_flashdata('success', 'Anda Berhasil Logout');
|
||||||
|
redirect(base_url());
|
||||||
|
}
|
||||||
|
|
||||||
|
// function get_data_user()
|
||||||
|
// {
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// function hehehe(){
|
||||||
|
// for ($i=1; $i < 50; $i++) {
|
||||||
|
// $this->model->insert("tb_list_buku",array("judul" => "judul_ini_dia_".$i,'pengarang' => "pengarang_ini_dia_".$i,'kategori' => "kategori_ini_dia_".$i,'tahun_terbit' => "tahun terbit_ini_dia_".$i));
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
538
application/controllers/Home.php
Normal file
538
application/controllers/Home.php
Normal file
@ -0,0 +1,538 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Home extends CI_Controller {
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
$this->load->model('model');
|
||||||
|
$this->load->library('pdf');
|
||||||
|
}
|
||||||
|
|
||||||
|
function index()
|
||||||
|
{
|
||||||
|
if ($this->input->post('proses') == 'cek_foto_detail') {
|
||||||
|
// header('Access-Control-Allow-Origin: *');
|
||||||
|
$html = '';
|
||||||
|
foreach (glob('images/kategori/'.$this->input->post('id').'/*.*') as $key => $value){
|
||||||
|
// print_r($key);
|
||||||
|
// if ($key == 0) {
|
||||||
|
// $html .= '<center> <a class="example-image-link" href="'.base_url().$value.'" data-lightbox="example-set" >Klik Untuk Melihat Foto</a></center>';
|
||||||
|
$html .= '<a href="'.base_url().$value.'" target="_blank"><img class="example-image" src="'.base_url().$value.'" width="100px" height="100px" alt=""/></a>';
|
||||||
|
// }else{
|
||||||
|
// $html .= '<a class="example-image-link" href="'.base_url().$value.'" data-lightbox="example-set" ></a>';
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
print_r($html);
|
||||||
|
}else{
|
||||||
|
$this->load->view('home/index2');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function kembali(){
|
||||||
|
$this->load->view('home/kembali');
|
||||||
|
}
|
||||||
|
|
||||||
|
function cari()
|
||||||
|
{
|
||||||
|
if ($this->input->post("proses") == "cari_buku_qr") {
|
||||||
|
// $rak_buku = $this->input->post("rak");
|
||||||
|
$id = $this->input->post("id");
|
||||||
|
$cek_buku = $this->model->custom_query("SELECT *,(SELECT b.rak_buku from tb_kategori b where b.no = a.kategori) as rak_buku,(SELECT b.kategori from tb_kategori b where b.no = a.kategori) kategori_buku FROM `tb_list_buku` a where a.no = $id")->result();
|
||||||
|
$cek_data = $this->model->tampil_data_keseluruhan("tb_map_perpustakaan");
|
||||||
|
|
||||||
|
if (count($cek_buku) > 0) {
|
||||||
|
$html = '<script type="text/javascript">
|
||||||
|
var html = '."'".'<div class="form-group"><label class="text-black" for="fname" style="text-align:left">Judul</label><textarea class="form-control" style="resize: none" disabled="">'.$cek_buku[0]->judul.'</textarea></div>'."'".';
|
||||||
|
html += '."'".'<div class="form-group"><label class="text-black" for="fname">Pengarang</label><input class="form-control" disabled="" value="'.$cek_buku[0]->pengarang.'"></div>'."'".';
|
||||||
|
html += '."'".'<div class="form-group"><label class="text-black" for="fname">Kategori</label><input class="form-control" disabled="" value="'.$cek_buku[0]->kategori_buku.'"></div>'."'".';
|
||||||
|
html += '."'".'<div class="form-group"><label class="text-black" for="fname">Tahun Terbit</label><input class="form-control" disabled="" value="'.$cek_buku[0]->tahun_terbit.'"></div>'."'".';
|
||||||
|
html += '."'".'<div class="form-group"><label class="text-black" for="fname">Tingkat Ke</label><input class="form-control" disabled="" value="'.$cek_buku[0]->tingkat.'"></div>'."'".';
|
||||||
|
$("#sini_dia_htmlnya").html(html);
|
||||||
|
|
||||||
|
// canvas.__eventListeners = {}
|
||||||
|
// canvas.discardActiveObject();
|
||||||
|
// canvas.renderAll();
|
||||||
|
function AddRakBuku(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "aqua",
|
||||||
|
fillText: "heheh",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "blue",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 11,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
selectable : false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddRakBukuPilihan(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "red",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "pink",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 11,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
selectable : false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddMeja(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "meja_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "orange",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "yellow",
|
||||||
|
strokeWidth: 2,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 6,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddKursi(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "kursi_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "lime",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "green",
|
||||||
|
strokeWidth: 1,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 3,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>';
|
||||||
|
if (count($cek_data->result()) > 0) {
|
||||||
|
$html .= "<script>";
|
||||||
|
foreach ($cek_data->result() as $key => $value) {
|
||||||
|
$ket = json_decode($value->ket);
|
||||||
|
if ($value->kategori == 'rak_buku') {
|
||||||
|
|
||||||
|
$nama_kategori = '';
|
||||||
|
$cek_nama_kategori = $this->model->tampil_data_where('tb_kategori', array('rak_buku' => $value->no))->result();
|
||||||
|
foreach ($cek_nama_kategori as $key1 => $value1) {
|
||||||
|
$nama_kategori .= $value1->kategori . ' \n';
|
||||||
|
}
|
||||||
|
// $nama_kategori = substr($nama_kategori, 0, -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -2);
|
||||||
|
if ($value->no === $cek_buku[0]->rak_buku) {
|
||||||
|
$html.="AddRakBukuPilihan(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}else{
|
||||||
|
$html.="AddRakBuku(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
elseif ($value->kategori == 'meja') {
|
||||||
|
$html.="AddMeja(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($value->kategori == 'kursi') {
|
||||||
|
$html.="AddKursi(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= "$('#sini_modalnya').modal('show')</script>";
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$html = '<script type="text/javascript">
|
||||||
|
swal({
|
||||||
|
title: "Error",
|
||||||
|
text: "Qrcode yang discan tiada dalam sistem",
|
||||||
|
icon: "success",
|
||||||
|
button: false,
|
||||||
|
timer : 3000
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
</script>';
|
||||||
|
// print_r($cek_buku[0]->rak_buku);
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($this->input->post("proses") == "cari_rak_buku") {
|
||||||
|
$rak_buku = $this->input->post("rak");
|
||||||
|
$cek_data = $this->model->tampil_data_keseluruhan("tb_map_perpustakaan");
|
||||||
|
$html = '<script type="text/javascript">
|
||||||
|
// canvas.__eventListeners = {}
|
||||||
|
// canvas.discardActiveObject();
|
||||||
|
// canvas.renderAll();
|
||||||
|
function AddRakBuku(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "aqua",
|
||||||
|
fillText: "heheh",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "blue",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 11,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
selectable : false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddRakBukuPilihan(left,top,width,height,id,angle,nama){
|
||||||
|
const rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "rak_buku_"+id,
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
fill: "red",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "pink",
|
||||||
|
strokeWidth: 4,
|
||||||
|
centeredRotation: false,
|
||||||
|
})
|
||||||
|
|
||||||
|
var t = new fabric.IText(nama, {
|
||||||
|
fill: "#000000",
|
||||||
|
fontSize: 11,
|
||||||
|
textAlign: "center",
|
||||||
|
originX: "center",
|
||||||
|
originY: "center",
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var group = new fabric.Group([ rect, t ], {
|
||||||
|
lockMovementX: true,
|
||||||
|
lockMovementY: true,
|
||||||
|
lockScalingX : true,
|
||||||
|
lockScalingY : true,
|
||||||
|
lockRotation : true,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
selectable : false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(group);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddMeja(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "meja_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "orange",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "yellow",
|
||||||
|
strokeWidth: 2,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 6,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AddKursi(left,top,width,height,id,angle){
|
||||||
|
var rect = new fabric.Rect({
|
||||||
|
angle : angle,
|
||||||
|
id : "kursi_"+id,
|
||||||
|
left: left,
|
||||||
|
top: top,
|
||||||
|
fill: "lime",
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
objectCaching: false,
|
||||||
|
stroke: "green",
|
||||||
|
strokeWidth: 1,
|
||||||
|
centeredRotation: false,
|
||||||
|
cornerSize: 3,
|
||||||
|
selectable : false
|
||||||
|
});
|
||||||
|
|
||||||
|
// console.log(rect);
|
||||||
|
canvas.add(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>';
|
||||||
|
if (count($cek_data->result()) > 0) {
|
||||||
|
$html .= "<script>";
|
||||||
|
foreach ($cek_data->result() as $key => $value) {
|
||||||
|
$ket = json_decode($value->ket);
|
||||||
|
if ($value->kategori == 'rak_buku') {
|
||||||
|
|
||||||
|
|
||||||
|
$nama_kategori = '';
|
||||||
|
$cek_nama_kategori = $this->model->tampil_data_where('tb_kategori', array('rak_buku' => $value->no))->result();
|
||||||
|
foreach ($cek_nama_kategori as $key1 => $value1) {
|
||||||
|
$nama_kategori .= $value1->kategori . ' \n';
|
||||||
|
}
|
||||||
|
// $nama_kategori = substr($nama_kategori, 0, -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -1);
|
||||||
|
$nama_kategori = substr_replace($nama_kategori, "", -2);
|
||||||
|
if ($value->no === $rak_buku) {
|
||||||
|
$html.="AddRakBukuPilihan(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}else{
|
||||||
|
$html.="AddRakBuku(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.",'".$nama_kategori."');";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($value->kategori == 'meja') {
|
||||||
|
$html.="AddMeja(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($value->kategori == 'kursi') {
|
||||||
|
$html.="AddKursi(".$ket->left.",".$ket->top.",".$ket->width.",".$ket->height.",".$value->no.",".$ket->angle.");
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= "</script>";
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($this->input->post('proses') == 'cari') {
|
||||||
|
$id = $this->input->post('id');
|
||||||
|
$kategori = $this->input->post('kategori');
|
||||||
|
// print_r($kategori);
|
||||||
|
if ($kategori == 'semua') {
|
||||||
|
$cari_data = $this->model->custom_query("SELECT *,b.kategori as ini_kategori, b.no as no_kategori FROM tb_list_buku a join tb_kategori b on a.kategori = b.no where a.judul like '%$id%' OR a.pengarang like '%$id%' OR a.kategori like '%$id%' OR a.tahun_terbit like '%$id%'");
|
||||||
|
}elseif ($kategori == 'judul') {
|
||||||
|
$cari_data = $this->model->custom_query("SELECT *,b.kategori as ini_kategori, b.no as no_kategori FROM tb_list_buku a join tb_kategori b on a.kategori = b.no where a.judul like '%$id%'");
|
||||||
|
}elseif ($kategori == 'pengarang') {
|
||||||
|
$cari_data = $this->model->custom_query("SELECT *,b.kategori as ini_kategori, b.no as no_kategori FROM tb_list_buku a join tb_kategori b on a.kategori = b.no where a.pengarang like '%$id%'");
|
||||||
|
}elseif ($kategori == 'kategori') {
|
||||||
|
$cari_data = $this->model->custom_query("SELECT *,b.kategori as ini_kategori, b.no as no_kategori FROM tb_list_buku a join tb_kategori b on a.kategori = b.no where b.no = $id");
|
||||||
|
}
|
||||||
|
|
||||||
|
$html = '<script src="'.base_url().'assets/js/jquery-3.3.1.min.js"></script>
|
||||||
|
<script src="'.base_url().'assets/js/datatables/jquery.min.js"></script>
|
||||||
|
<script src="'.base_url().'assets/js/datatables/jquery.dataTables.min.js"></script>
|
||||||
|
|
||||||
|
<table id="tabel-data" class="table table-striped table-bordered" width="100%">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Judul</th>
|
||||||
|
<th>Kategori</th>
|
||||||
|
<th>Pengarang</th>
|
||||||
|
<th>Tahun Terbit</th>
|
||||||
|
<th>Peletakan</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>';
|
||||||
|
|
||||||
|
foreach ($cari_data->result() as $key => $value) {
|
||||||
|
$html .= '<tr>
|
||||||
|
<td>'.$value->judul.'</td>
|
||||||
|
<td>'.$value->ini_kategori.'</td>
|
||||||
|
<td>'.$value->pengarang.'</td>
|
||||||
|
<td>'.$value->tahun_terbit.'</td>
|
||||||
|
<td align="center"><a data-toggle="modal" href="#sini_modalnya"><button type="button" id="button_rak_buku" class="btn btn-info btn-md text-white" onclick="cari_rak_buku('.$value->rak_buku.','."'".$value->judul."'".','."'".$value->ini_kategori."'".','."'".$value->pengarang."'".','."'".$value->tahun_terbit."'".','.$value->tingkat.','.$value->no_kategori.')">Lihat</button></a></td>
|
||||||
|
</tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= '</tbody>
|
||||||
|
</table>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#tabel-data").DataTable({
|
||||||
|
"aLengthMenu": [[10, 20, 30, ,40, -1], [10, 20, 30, 40 ,"All"]],
|
||||||
|
"iDisplayLength": 10,
|
||||||
|
// "pageLength": 5,
|
||||||
|
"searching": false,
|
||||||
|
"paging": true,
|
||||||
|
"ordering": true,
|
||||||
|
"info": false,
|
||||||
|
"lengthChange": false
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>';
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($this->input->post('proses') == 'cari_kategori') {
|
||||||
|
$cari_data = $this->model->tampil_data_keseluruhan("tb_kategori");
|
||||||
|
$html = '<select id="inputannya" class="form-control">
|
||||||
|
<option selected="" disabled="">-Pilih Kategori Buku</option>';
|
||||||
|
|
||||||
|
foreach ($cari_data->result() as $key => $value) {
|
||||||
|
$html .= '<option value="'.$value->no.'">'.$value->kategori.'</option>';
|
||||||
|
}
|
||||||
|
$html .= '</selected>';
|
||||||
|
|
||||||
|
print_r($html);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function login()
|
||||||
|
{
|
||||||
|
if ($this->input->post('button_login')) {
|
||||||
|
$username = $this->input->post('username');
|
||||||
|
$password = $this->input->post('password');
|
||||||
|
|
||||||
|
$cek_data = $this->model->tampil_data_where('tb_login',array('username' => $username, 'password' => $password));
|
||||||
|
// print_r(count($cek_data->result()));
|
||||||
|
if (count($cek_data->result()) > 0) {
|
||||||
|
$this->session->set_flashdata('success', 'Selamat Kembali Admin');
|
||||||
|
$this->session->set_userdata('admin', array('level' => 'admin'));
|
||||||
|
redirect('admin');
|
||||||
|
}else{
|
||||||
|
$this->session->set_flashdata('error', 'Username dan Password Salah \n Sila Input Kembali Username dan Password');
|
||||||
|
redirect('home/login');
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$this->load->view('home/login');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// function bikin_qrcode() {
|
||||||
|
// print_r($this->model->qrcode_buku("buku/1"));
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// function try22() {
|
||||||
|
|
||||||
|
// '<!DOCTYPE html>
|
||||||
|
// <html>
|
||||||
|
// <head>
|
||||||
|
// <title></title>
|
||||||
|
// </head>
|
||||||
|
// <body>
|
||||||
|
// <a href="https://api.whatsapp.com/send?phone=+62%20822-9324-6583">coba</a>
|
||||||
|
// </body>
|
||||||
|
// </html>'
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
function coba() {
|
||||||
|
header('Access-Control-Allow-Origin: *');
|
||||||
|
header('Content-Type: text/event-stream');
|
||||||
|
header('Cache-Control: no-cache');
|
||||||
|
$array = array('coba' => 'heheheh', "sini" => "hahaha");
|
||||||
|
echo "data: ".json_encode($array). "\n\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
25
application/controllers/Welcome.php
Normal file
25
application/controllers/Welcome.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Welcome extends CI_Controller {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Index Page for this controller.
|
||||||
|
*
|
||||||
|
* Maps to the following URL
|
||||||
|
* http://example.com/index.php/welcome
|
||||||
|
* - or -
|
||||||
|
* http://example.com/index.php/welcome/index
|
||||||
|
* - or -
|
||||||
|
* Since this controller is set as the default controller in
|
||||||
|
* config/routes.php, it's displayed at http://example.com/
|
||||||
|
*
|
||||||
|
* So any other public methods not prefixed with an underscore will
|
||||||
|
* map to /index.php/welcome/<method_name>
|
||||||
|
* @see https://codeigniter.com/user_guide/general/urls.html
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$this->load->view('welcome_message');
|
||||||
|
}
|
||||||
|
}
|
||||||
11
application/controllers/index.html
Normal file
11
application/controllers/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
application/core/index.html
Normal file
11
application/core/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
application/helpers/index.html
Normal file
11
application/helpers/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
application/hooks/index.html
Normal file
11
application/hooks/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
application/index.html
Normal file
11
application/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
application/language/english/index.html
Normal file
11
application/language/english/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
application/language/index.html
Normal file
11
application/language/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
512
application/libraries/Datatables.php
Normal file
512
application/libraries/Datatables.php
Normal file
@ -0,0 +1,512 @@
|
|||||||
|
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||||
|
/**
|
||||||
|
* Ignited Datatables
|
||||||
|
*
|
||||||
|
* This is a wrapper class/library based on the native Datatables server-side implementation by Allan Jardine
|
||||||
|
* found at http://datatables.net/examples/data_sources/server_side.html for CodeIgniter
|
||||||
|
*
|
||||||
|
* @package CodeIgniter
|
||||||
|
* @subpackage libraries
|
||||||
|
* @category library
|
||||||
|
* @version 0.6
|
||||||
|
* @author Vincent Bambico <metal.conspiracy@gmail.com>
|
||||||
|
* Yusuf Ozdemir <yusuf@ozdemir.be>
|
||||||
|
* @link http://codeigniter.com/forums/viewthread/160896/
|
||||||
|
*/
|
||||||
|
class Datatables
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Global container variables for chained argument results
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected $ci;
|
||||||
|
protected $table;
|
||||||
|
protected $select = array();
|
||||||
|
protected $joins = array();
|
||||||
|
protected $columns = array();
|
||||||
|
protected $where = array();
|
||||||
|
protected $filter = array();
|
||||||
|
protected $add_columns = array();
|
||||||
|
protected $edit_columns = array();
|
||||||
|
protected $unset_columns = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies an instance of CI
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->ci =& get_instance();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the SELECT portion of the query
|
||||||
|
*
|
||||||
|
* @param string $columns
|
||||||
|
* @param bool $backtick_protect
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function select($columns, $backtick_protect = TRUE)
|
||||||
|
{
|
||||||
|
foreach($this->explode(',', $columns) as $val)
|
||||||
|
{
|
||||||
|
$column = trim(preg_replace('/(.*)\s+as\s+(\w*)/i', '$2', $val));
|
||||||
|
$this->columns[] = $column;
|
||||||
|
$this->select[$column] = trim(preg_replace('/(.*)\s+as\s+(\w*)/i', '$1', $val));
|
||||||
|
}
|
||||||
|
$this->ci->db->select($columns, $backtick_protect);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the FROM portion of the query
|
||||||
|
*
|
||||||
|
* @param string $table
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function from($table)
|
||||||
|
{
|
||||||
|
$this->table = $table;
|
||||||
|
$this->ci->db->from($table);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the JOIN portion of the query
|
||||||
|
*
|
||||||
|
* @param string $table
|
||||||
|
* @param string $fk
|
||||||
|
* @param string $type
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function join($table, $fk, $type = NULL)
|
||||||
|
{
|
||||||
|
$this->joins[] = array($table, $fk, $type);
|
||||||
|
$this->ci->db->join($table, $fk, $type);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the WHERE portion of the query
|
||||||
|
*
|
||||||
|
* @param mixed $key_condition
|
||||||
|
* @param string $val
|
||||||
|
* @param bool $backtick_protect
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function where($key_condition, $val = NULL, $backtick_protect = TRUE)
|
||||||
|
{
|
||||||
|
$this->where[] = array($key_condition, $val, $backtick_protect);
|
||||||
|
$this->ci->db->where($key_condition, $val, $backtick_protect);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the WHERE portion of the query
|
||||||
|
*
|
||||||
|
* @param mixed $key_condition
|
||||||
|
* @param string $val
|
||||||
|
* @param bool $backtick_protect
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function filter($key_condition, $val = NULL, $backtick_protect = TRUE)
|
||||||
|
{
|
||||||
|
$this->filter[] = array($key_condition, $val, $backtick_protect);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets additional column variables for adding custom columns
|
||||||
|
*
|
||||||
|
* @param string $column
|
||||||
|
* @param string $content
|
||||||
|
* @param string $match_replacement
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function add_column($column, $content, $match_replacement = NULL)
|
||||||
|
{
|
||||||
|
$this->add_columns[$column] = array('content' => $content, 'replacement' => $this->explode(',', $match_replacement));
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets additional column variables for editing columns
|
||||||
|
*
|
||||||
|
* @param string $column
|
||||||
|
* @param string $content
|
||||||
|
* @param string $match_replacement
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function edit_column($column, $content, $match_replacement)
|
||||||
|
{
|
||||||
|
$this->edit_columns[$column][] = array('content' => $content, 'replacement' => $this->explode(',', $match_replacement));
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unset column
|
||||||
|
*
|
||||||
|
* @param string $column
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function unset_column($column)
|
||||||
|
{
|
||||||
|
$this->unset_columns[] = $column;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds all the necessary query segments and performs the main query based on results set from chained statements
|
||||||
|
*
|
||||||
|
* @param string charset
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function generate($charset = 'UTF-8')
|
||||||
|
{
|
||||||
|
$this->get_paging();
|
||||||
|
$this->get_ordering();
|
||||||
|
$this->get_filtering();
|
||||||
|
return $this->produce_output($charset);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the LIMIT portion of the query
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
protected function get_paging()
|
||||||
|
{
|
||||||
|
$iStart = $this->ci->input->post('iDisplayStart');
|
||||||
|
$iLength = $this->ci->input->post('iDisplayLength');
|
||||||
|
$this->ci->db->limit(($iLength != '' && $iLength != '-1')? $iLength : 10, ($iStart)? $iStart : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the ORDER BY portion of the query
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
protected function get_ordering()
|
||||||
|
{
|
||||||
|
if ($this->check_mDataprop())
|
||||||
|
$mColArray = $this->get_mDataprop();
|
||||||
|
elseif ($this->ci->input->post('sColumns'))
|
||||||
|
$mColArray = explode(',', $this->ci->input->post('sColumns'));
|
||||||
|
else
|
||||||
|
$mColArray = $this->columns;
|
||||||
|
|
||||||
|
$mColArray = array_values(array_diff($mColArray, $this->unset_columns));
|
||||||
|
$columns = array_values(array_diff($this->columns, $this->unset_columns));
|
||||||
|
|
||||||
|
for($i = 0; $i < intval($this->ci->input->post('iSortingCols')); $i++)
|
||||||
|
if(isset($mColArray[intval($this->ci->input->post('iSortCol_' . $i))]) && in_array($mColArray[intval($this->ci->input->post('iSortCol_' . $i))], $columns) && $this->ci->input->post('bSortable_'.intval($this->ci->input->post('iSortCol_' . $i))) == 'true')
|
||||||
|
$this->ci->db->order_by($mColArray[intval($this->ci->input->post('iSortCol_' . $i))], $this->ci->input->post('sSortDir_' . $i));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the LIKE portion of the query
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
protected function get_filtering()
|
||||||
|
{
|
||||||
|
if ($this->check_mDataprop())
|
||||||
|
$mColArray = $this->get_mDataprop();
|
||||||
|
elseif ($this->ci->input->post('sColumns'))
|
||||||
|
$mColArray = explode(',', $this->ci->input->post('sColumns'));
|
||||||
|
else
|
||||||
|
$mColArray = $this->columns;
|
||||||
|
|
||||||
|
$sWhere = '';
|
||||||
|
$sSearch = $this->ci->db->escape($this->ci->input->post('sSearch'));
|
||||||
|
|
||||||
|
$mColArray = array_values(array_diff($mColArray, $this->unset_columns));
|
||||||
|
$columns = array_values(array_diff($this->columns, $this->unset_columns));
|
||||||
|
|
||||||
|
if($sSearch != '')
|
||||||
|
for($i = 0; $i < count($mColArray); $i++)
|
||||||
|
if($this->ci->input->post('bSearchable_' . $i) == 'true' && in_array($mColArray[$i], $columns))
|
||||||
|
$sWhere .= $this->select[$mColArray[$i]] . " LIKE '%" . $sSearch . "%' OR ";
|
||||||
|
|
||||||
|
$sWhere = substr_replace($sWhere, '', -3);
|
||||||
|
|
||||||
|
if($sWhere != '')
|
||||||
|
$this->ci->db->where('(' . $sWhere . ')');
|
||||||
|
|
||||||
|
for($i = 0; $i < intval($this->ci->input->post('iColumns')); $i++)
|
||||||
|
{
|
||||||
|
if(isset($_POST['sSearch_' . $i]) && $this->ci->input->post('sSearch_' . $i) != '' && in_array($mColArray[$i], $columns))
|
||||||
|
{
|
||||||
|
$miSearch = explode(',', $this->ci->input->post('sSearch_' . $i));
|
||||||
|
foreach($miSearch as $val)
|
||||||
|
{
|
||||||
|
if(preg_match("/(<=|>=|=|<|>)(\s*)(.+)/i", trim($val), $matches))
|
||||||
|
$this->ci->db->where($this->select[$mColArray[$i]].' '.$matches[1], $matches[3]);
|
||||||
|
else
|
||||||
|
$this->ci->db->where($this->select[$mColArray[$i]].' LIKE', '%'.$val.'%');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($this->filter as $val)
|
||||||
|
$this->ci->db->where($val[0], $val[1], $val[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiles the select statement based on the other functions called and runs the query
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
protected function get_display_result()
|
||||||
|
{
|
||||||
|
return $this->ci->db->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds a JSON encoded string data
|
||||||
|
*
|
||||||
|
* @param string charset
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected function produce_output($charset)
|
||||||
|
{
|
||||||
|
$aaData = array();
|
||||||
|
$rResult = $this->get_display_result();
|
||||||
|
$iTotal = $this->get_total_results();
|
||||||
|
$iFilteredTotal = $this->get_total_results(TRUE);
|
||||||
|
|
||||||
|
foreach($rResult->result_array() as $row_key => $row_val)
|
||||||
|
{
|
||||||
|
$aaData[$row_key] = ($this->check_mDataprop())? $row_val : array_values($row_val);
|
||||||
|
|
||||||
|
foreach($this->add_columns as $field => $val)
|
||||||
|
if($this->check_mDataprop())
|
||||||
|
$aaData[$row_key][$field] = $this->exec_replace($val, $aaData[$row_key]);
|
||||||
|
else
|
||||||
|
$aaData[$row_key][] = $this->exec_replace($val, $aaData[$row_key]);
|
||||||
|
|
||||||
|
foreach($this->edit_columns as $modkey => $modval)
|
||||||
|
foreach($modval as $val)
|
||||||
|
$aaData[$row_key][($this->check_mDataprop())? $modkey : array_search($modkey, $this->columns)] = $this->exec_replace($val, $aaData[$row_key]);
|
||||||
|
|
||||||
|
$aaData[$row_key] = array_diff_key($aaData[$row_key], ($this->check_mDataprop())? $this->unset_columns : array_intersect($this->columns, $this->unset_columns));
|
||||||
|
|
||||||
|
if(!$this->check_mDataprop())
|
||||||
|
$aaData[$row_key] = array_values($aaData[$row_key]);
|
||||||
|
}
|
||||||
|
|
||||||
|
$sColumns = array_diff($this->columns, $this->unset_columns);
|
||||||
|
$sColumns = array_merge_recursive($sColumns, array_keys($this->add_columns));
|
||||||
|
|
||||||
|
$sOutput = array
|
||||||
|
(
|
||||||
|
'sEcho' => intval($this->ci->input->post('sEcho')),
|
||||||
|
'iTotalRecords' => $iTotal,
|
||||||
|
'iTotalDisplayRecords' => $iFilteredTotal,
|
||||||
|
'aaData' => $aaData,
|
||||||
|
'sColumns' => implode(',', $sColumns)
|
||||||
|
);
|
||||||
|
|
||||||
|
if(strtolower($charset) == 'utf-8')
|
||||||
|
return json_encode($sOutput);
|
||||||
|
else
|
||||||
|
return $this->jsonify($sOutput);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get result count
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
protected function get_total_results($filtering = FALSE)
|
||||||
|
{
|
||||||
|
if($filtering)
|
||||||
|
$this->get_filtering();
|
||||||
|
|
||||||
|
foreach($this->joins as $val)
|
||||||
|
$this->ci->db->join($val[0], $val[1], $val[2]);
|
||||||
|
|
||||||
|
foreach($this->where as $val)
|
||||||
|
$this->ci->db->where($val[0], $val[1], $val[2]);
|
||||||
|
|
||||||
|
return $this->ci->db->count_all_results($this->table);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Runs callback functions and makes replacements
|
||||||
|
*
|
||||||
|
* @param mixed $custom_val
|
||||||
|
* @param mixed $row_data
|
||||||
|
* @return string $custom_val['content']
|
||||||
|
*/
|
||||||
|
protected function exec_replace($custom_val, $row_data)
|
||||||
|
{
|
||||||
|
$replace_string = '';
|
||||||
|
|
||||||
|
if(isset($custom_val['replacement']) && is_array($custom_val['replacement']))
|
||||||
|
{
|
||||||
|
foreach($custom_val['replacement'] as $key => $val)
|
||||||
|
{
|
||||||
|
$sval = preg_replace("/(?<!\w)([\'\"])(.*)\\1(?!\w)/i", '$2', trim($val));
|
||||||
|
if(preg_match('/(\w+)\((.*)\)/i', $val, $matches) && function_exists($matches[1]))
|
||||||
|
{
|
||||||
|
$func = $matches[1];
|
||||||
|
$args = preg_split("/[\s,]*\\\"([^\\\"]+)\\\"[\s,]*|" . "[\s,]*'([^']+)'[\s,]*|" . "[,]+/", $matches[2], 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
|
||||||
|
|
||||||
|
foreach($args as $args_key => $args_val)
|
||||||
|
{
|
||||||
|
$args_val = preg_replace("/(?<!\w)([\'\"])(.*)\\1(?!\w)/i", '$2', trim($args_val));
|
||||||
|
$args[$args_key] = (in_array($args_val, $this->columns))? ($row_data[($this->check_mDataprop())? $args_val : array_search($args_val, $this->columns)]) : $args_val;
|
||||||
|
}
|
||||||
|
|
||||||
|
$replace_string = call_user_func_array($func, $args);
|
||||||
|
}
|
||||||
|
elseif(in_array($sval, $this->columns))
|
||||||
|
$replace_string = $row_data[($this->check_mDataprop())? $sval : array_search($sval, $this->columns)];
|
||||||
|
else
|
||||||
|
$replace_string = $sval;
|
||||||
|
|
||||||
|
$custom_val['content'] = str_ireplace('$' . ($key + 1), $replace_string, $custom_val['content']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $custom_val['content'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check mDataprop
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
protected function check_mDataprop()
|
||||||
|
{
|
||||||
|
if (!$this->ci->input->post('mDataProp_0')) return FALSE;
|
||||||
|
|
||||||
|
for($i = 0; $i < intval($this->ci->input->post('iColumns')); $i++)
|
||||||
|
if(!is_numeric($this->ci->input->post('mDataProp_' . $i)))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mDataprop order
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
protected function get_mDataprop()
|
||||||
|
{
|
||||||
|
$mDataProp = array();
|
||||||
|
|
||||||
|
for($i = 0; $i < intval($this->ci->input->post('iColumns')); $i++)
|
||||||
|
$mDataProp[] = $this->ci->input->post('mDataProp_' . $i);
|
||||||
|
|
||||||
|
return $mDataProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the difference of open and close characters
|
||||||
|
*
|
||||||
|
* @param string $str
|
||||||
|
* @param string $open
|
||||||
|
* @param string $close
|
||||||
|
* @return string $retval
|
||||||
|
*/
|
||||||
|
protected function balanceChars($str, $open, $close)
|
||||||
|
{
|
||||||
|
$openCount = substr_count($str, $open);
|
||||||
|
$closeCount = substr_count($str, $close);
|
||||||
|
$retval = $openCount - $closeCount;
|
||||||
|
return $retval;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Explode, but ignore delimiter until closing characters are found
|
||||||
|
*
|
||||||
|
* @param string $delimiter
|
||||||
|
* @param string $str
|
||||||
|
* @param string $open
|
||||||
|
* @param string $close
|
||||||
|
* @return mixed $retval
|
||||||
|
*/
|
||||||
|
protected function explode($delimiter, $str, $open='(', $close=')')
|
||||||
|
{
|
||||||
|
$retval = array();
|
||||||
|
$hold = array();
|
||||||
|
$balance = 0;
|
||||||
|
$parts = explode($delimiter, $str);
|
||||||
|
|
||||||
|
foreach ($parts as $part)
|
||||||
|
{
|
||||||
|
$hold[] = $part;
|
||||||
|
$balance += $this->balanceChars($part, $open, $close);
|
||||||
|
if ($balance < 1)
|
||||||
|
{
|
||||||
|
$retval[] = implode($delimiter, $hold);
|
||||||
|
$hold = array();
|
||||||
|
$balance = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (count($hold) > 0)
|
||||||
|
$retval[] = implode($delimiter, $hold);
|
||||||
|
|
||||||
|
return $retval;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Workaround for json_encode's UTF-8 encoding if a different charset needs to be used
|
||||||
|
*
|
||||||
|
* @param mixed result
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected function jsonify($result = FALSE)
|
||||||
|
{
|
||||||
|
if(is_null($result)) return 'null';
|
||||||
|
if($result === FALSE) return 'false';
|
||||||
|
if($result === TRUE) return 'true';
|
||||||
|
|
||||||
|
if(is_scalar($result))
|
||||||
|
{
|
||||||
|
if(is_float($result))
|
||||||
|
return floatval(str_replace(',', '.', strval($result)));
|
||||||
|
|
||||||
|
if(is_string($result))
|
||||||
|
{
|
||||||
|
static $jsonReplaces = array(array('\\', '/', '\n', '\t', '\r', '\b', '\f', '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'));
|
||||||
|
return '"' . str_replace($jsonReplaces[0], $jsonReplaces[1], $result) . '"';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
$isList = TRUE;
|
||||||
|
|
||||||
|
for($i = 0, reset($result); $i < count($result); $i++, next($result))
|
||||||
|
{
|
||||||
|
if(key($result) !== $i)
|
||||||
|
{
|
||||||
|
$isList = FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$json = array();
|
||||||
|
|
||||||
|
if($isList)
|
||||||
|
{
|
||||||
|
foreach($result as $value)
|
||||||
|
$json[] = $this->jsonify($value);
|
||||||
|
|
||||||
|
return '[' . join(',', $json) . ']';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
foreach($result as $key => $value)
|
||||||
|
$json[] = $this->jsonify($key) . ':' . $this->jsonify($value);
|
||||||
|
|
||||||
|
return '{' . join(',', $json) . '}';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* End of file Datatables.php */
|
||||||
|
/* Location: ./application/libraries/Datatables.php */
|
||||||
8
application/libraries/Pdf.php
Normal file
8
application/libraries/Pdf.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
class pdf {
|
||||||
|
|
||||||
|
function __construct() {
|
||||||
|
include_once APPPATH . '/third_party/fpdf/fpdf.php';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
11
application/libraries/index.html
Normal file
11
application/libraries/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
application/logs/index.html
Normal file
11
application/logs/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
113
application/models/M_tabel_ss.php
Normal file
113
application/models/M_tabel_ss.php
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class M_tabel_ss extends CI_Model {
|
||||||
|
|
||||||
|
// var $table = 'tb_kategori'; //nama tabel dari database
|
||||||
|
// var $column_order = array(null, 'user_nama','user_email','user_alamat'); //field yang ada di table user
|
||||||
|
// var $column_order = array(null, 'tb_kategori.kategori','tb_list_buku.judul','tb_list_buku.pengarang',null); //field yang ada di table user
|
||||||
|
// var $column_search = array('user_nama','user_email','user_alamat'); //field yang diizin untuk pencarian
|
||||||
|
// var $column_search = array('tb_kategori.kategori','tb_list_buku.judul','tb_list_buku.pengarang'); //field yang diizin untuk pencarian
|
||||||
|
// var $order = array('no' => 'asc'); // default order
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
$this->load->database();
|
||||||
|
}
|
||||||
|
|
||||||
|
private function _get_datatables_query($a,$b,$c,$d,$e,$f)
|
||||||
|
{
|
||||||
|
$column_search = $b;
|
||||||
|
$column_order = $c;
|
||||||
|
$order = $d;
|
||||||
|
|
||||||
|
if ($e != null) {
|
||||||
|
$this->db->select("*,b.no as nomor_kategori,a.no as nomornya");
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->db->from($a);
|
||||||
|
if ($e != null) {
|
||||||
|
$this->db->join($e,$f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// $column_search = array('tb_kategori.kategori','tb_list_buku.judul','tb_list_buku.pengarang');
|
||||||
|
// $column_search = array('kategori');
|
||||||
|
// $column_search = array('a.judul','b.kategori','a.pengarang','a.tahun_terbit');
|
||||||
|
// $column_order = array(null, 'tb_kategori.kategori','tb_list_buku.judul','tb_list_buku.pengarang',null);
|
||||||
|
// $column_order = array(null, 'kategori',null);
|
||||||
|
// $column_order = array(null, 'a.judul','b.kategori','a.pengarang','a.tahun_terbit',null);
|
||||||
|
// $order = array('no' => 'asc');
|
||||||
|
// $this->db->from("tb_kategori");
|
||||||
|
// $this->db->from("tb_kategori");
|
||||||
|
|
||||||
|
|
||||||
|
// $this->db->from("tb_list_buku a");
|
||||||
|
// $this->db->join('tb_kategori b', 'a.kategori = b.no');
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
|
// foreach ($this->column_search as $item) // looping awal
|
||||||
|
foreach ($column_search as $item) // looping awal
|
||||||
|
{
|
||||||
|
if($_POST['search']['value']) // jika datatable mengirimkan pencarian dengan metode POST
|
||||||
|
{
|
||||||
|
|
||||||
|
if($i===0) // looping awal
|
||||||
|
{
|
||||||
|
$this->db->group_start();
|
||||||
|
$this->db->like($item, $_POST['search']['value']);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->db->or_like($item, $_POST['search']['value']);
|
||||||
|
}
|
||||||
|
|
||||||
|
// if(count($this->column_search) - 1 == $i)
|
||||||
|
if(count($column_search) - 1 == $i)
|
||||||
|
$this->db->group_end();
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isset($_POST['order']))
|
||||||
|
{
|
||||||
|
$this->db->order_by($column_order[$_POST['order']['0']['column']], $_POST['order']['0']['dir']);
|
||||||
|
// $this->db->order_by($this->column_order[$_POST['order']['0']['column']], $_POST['order']['0']['dir']);
|
||||||
|
}
|
||||||
|
else if(isset($this->order))
|
||||||
|
{
|
||||||
|
$order = $this->order;
|
||||||
|
$this->db->order_by(key($order), $order[key($order)]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_datatables($a,$b,$c,$d,$e,$f)
|
||||||
|
{
|
||||||
|
$this->_get_datatables_query($a,$b,$c,$d,$e,$f);
|
||||||
|
if($_POST['length'] != -1)
|
||||||
|
$this->db->limit($_POST['length'], $_POST['start']);
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
}
|
||||||
|
|
||||||
|
function count_filtered($a,$b,$c,$d,$e,$f)
|
||||||
|
{
|
||||||
|
$this->_get_datatables_query($a,$b,$c,$d,$e,$f);
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->num_rows();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function count_all($a,$e,$f)
|
||||||
|
{
|
||||||
|
if ($e == null) {
|
||||||
|
$this->db->from($a);
|
||||||
|
}else{
|
||||||
|
$this->db->from($a);
|
||||||
|
$this->db->join($e,$f);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->db->count_all_results();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
239
application/models/Model.php
Normal file
239
application/models/Model.php
Normal file
@ -0,0 +1,239 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Model extends CI_Model {
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function index(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function tampil_data_keseluruhan($namatabel) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||||
|
{
|
||||||
|
$this->db->select("*");
|
||||||
|
$this->db->from($namatabel);
|
||||||
|
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
function tampil_data_where($namatabel,$array) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||||
|
{
|
||||||
|
$this->db->select("*");
|
||||||
|
$this->db->from($namatabel);
|
||||||
|
$this->db->where($array);
|
||||||
|
// $this->db->limit(1);
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
function tampil_data_keseluruhan_order_by($namatabel,$order_by,$order) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||||
|
{
|
||||||
|
$this->db->select("*");
|
||||||
|
$this->db->from($namatabel);
|
||||||
|
// $this->db->where($array);
|
||||||
|
$this->db->order_by($order_by, $order);
|
||||||
|
// $this->db->limit(1);
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
function tampil_data_where_order_by($namatabel,$array,$order_by,$order) //gunakan ini untuk menampilkan tabel yg lebih spesifik 'where'
|
||||||
|
{
|
||||||
|
$this->db->select("*");
|
||||||
|
$this->db->from($namatabel);
|
||||||
|
$this->db->where($array);
|
||||||
|
$this->db->order_by($order_by, $order);
|
||||||
|
// $this->db->limit(1);
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
function tampil_data_last($namatabel,$kolom)
|
||||||
|
{
|
||||||
|
$this->db->select("*");
|
||||||
|
$this->db->from($namatabel);
|
||||||
|
$this->db->limit(1);
|
||||||
|
$this->db->order_by($kolom,"DESC");
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
function custom_query($query)
|
||||||
|
{
|
||||||
|
$query1 = $this->db->query($query);
|
||||||
|
return $query1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function insert($namatabel,$array)
|
||||||
|
{
|
||||||
|
return $this->db->insert($namatabel,$array);
|
||||||
|
}
|
||||||
|
|
||||||
|
function update($table,$array,$array_condition)
|
||||||
|
{
|
||||||
|
$this->db->where($array);
|
||||||
|
$this->db->update($table, $array_condition);
|
||||||
|
}
|
||||||
|
|
||||||
|
function delete($table,$array_condition)
|
||||||
|
{
|
||||||
|
// $this->db->where($array);
|
||||||
|
$this->db->delete($table, $array_condition);
|
||||||
|
// $this->db->delete(table_name, where_clause)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function like($namatabel,$field,$like,$kategori)
|
||||||
|
{
|
||||||
|
if ($kategori == '') {
|
||||||
|
$this->db->select("*");
|
||||||
|
$this->db->from($namatabel);
|
||||||
|
$this->db->like($field, $like, 'both');
|
||||||
|
// $this->db->limit(1);
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}else{
|
||||||
|
$this->db->select("*");
|
||||||
|
$this->db->from($namatabel);
|
||||||
|
$this->db->where(array('kategori'=>$kategori));
|
||||||
|
$this->db->like($field, $like, 'both');
|
||||||
|
// $this->db->limit(1);
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function data_user($nik,$pencarian)
|
||||||
|
{
|
||||||
|
$data = $this->tampil_data_where('tb_staff_kelurahan',array('nik' => $nik));
|
||||||
|
foreach ($data->result() as $key => $value) ;
|
||||||
|
if ($pencarian == "data_diri") {
|
||||||
|
return $value;
|
||||||
|
}else if ($pencarian == "kelurahan") {
|
||||||
|
$kelurahan = $this->tampil_data_where('tb_kelurahan',array('no' => $value->kelurahan));
|
||||||
|
foreach ($kelurahan->result() as $key1 => $value1) ;
|
||||||
|
return $value1->kelurahan;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function serialize($data){
|
||||||
|
$keys = array_column($data,'name');
|
||||||
|
$values = array_column($data,'value');
|
||||||
|
$data = array_combine($keys, $values);
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
function cek_penamaan_foto($imageFileType)
|
||||||
|
{
|
||||||
|
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" ) {
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}else{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function bulan($bulan)
|
||||||
|
{
|
||||||
|
|
||||||
|
switch ($bulan) {
|
||||||
|
case '01':
|
||||||
|
$bulannya = 'Januari';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '02':
|
||||||
|
$bulannya = 'Februari';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '03':
|
||||||
|
$bulannya = 'Maret';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '04':
|
||||||
|
$bulannya = 'April';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '05':
|
||||||
|
$bulannya = 'Mei';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '06':
|
||||||
|
$bulannya = 'Juni';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '07':
|
||||||
|
$bulannya = 'Juli';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '08':
|
||||||
|
$bulannya = 'Agustus';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '09':
|
||||||
|
$bulannya = 'September';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '10':
|
||||||
|
$bulannya = 'Oktober';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '11':
|
||||||
|
$bulannya = 'November';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '12':
|
||||||
|
$bulannya = 'Desember';
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
$bulannya = '';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $bulannya;
|
||||||
|
}
|
||||||
|
|
||||||
|
function qrcode_buku($kode){
|
||||||
|
include "phpqrcode/qrlib.php";
|
||||||
|
$kode = $kode;
|
||||||
|
|
||||||
|
// $PNG_TEMP_DIR = 'images/'.$kategori;
|
||||||
|
|
||||||
|
$PNG_WEB_DIR = 'images/buku/';
|
||||||
|
|
||||||
|
if (!file_exists($PNG_WEB_DIR))
|
||||||
|
mkdir($PNG_WEB_DIR);
|
||||||
|
|
||||||
|
$errorCorrectionLevel = 'H';
|
||||||
|
|
||||||
|
$matrixPointSize = 10;
|
||||||
|
|
||||||
|
$filename =$PNG_WEB_DIR.md5($kode).'.png';
|
||||||
|
QRcode::png($kode, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
|
||||||
|
|
||||||
|
if (file_exists($PNG_WEB_DIR.md5($kode).'.png') > 0) {
|
||||||
|
return "ada";
|
||||||
|
}else{
|
||||||
|
return "tiada";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function cek_last_ai($tables){
|
||||||
|
return $this->db->query("SELECT `AUTO_INCREMENT` as no
|
||||||
|
FROM INFORMATION_SCHEMA.TABLES
|
||||||
|
WHERE TABLE_SCHEMA = '".$this->db->database."'
|
||||||
|
AND TABLE_NAME = '".$tables."'");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
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>
|
||||||
272
application/third_party/fpdf/FAQ.htm
vendored
Normal file
272
application/third_party/fpdf/FAQ.htm
vendored
Normal file
@ -0,0 +1,272 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>FAQ</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="fpdf.css">
|
||||||
|
<style type="text/css">
|
||||||
|
ul {list-style-type:none; margin:0; padding:0}
|
||||||
|
ul#answers li {margin-top:1.8em}
|
||||||
|
.question {font-weight:bold; color:#900000}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>FAQ</h1>
|
||||||
|
<ul>
|
||||||
|
<li><b>1.</b> <a href='#q1'>What's exactly the license of FPDF? Are there any usage restrictions?</a></li>
|
||||||
|
<li><b>2.</b> <a href='#q2'>I get the following error when I try to generate a PDF: Some data has already been output, can't send PDF file</a></li>
|
||||||
|
<li><b>3.</b> <a href='#q3'>Accented letters are replaced with some strange characters like é.</a></li>
|
||||||
|
<li><b>4.</b> <a href='#q4'>I try to display the Euro symbol but it doesn't work.</a></li>
|
||||||
|
<li><b>5.</b> <a href='#q5'>I try to display a variable in the Header method but nothing prints.</a></li>
|
||||||
|
<li><b>6.</b> <a href='#q6'>I have defined the Header and Footer methods in my PDF class but nothing shows.</a></li>
|
||||||
|
<li><b>7.</b> <a href='#q7'>I can't make line breaks work. I put \n in the string printed by MultiCell but it doesn't work.</a></li>
|
||||||
|
<li><b>8.</b> <a href='#q8'>I use jQuery to generate the PDF but it doesn't show.</a></li>
|
||||||
|
<li><b>9.</b> <a href='#q9'>I draw a frame with very precise dimensions, but when printed I notice some differences.</a></li>
|
||||||
|
<li><b>10.</b> <a href='#q10'>I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?</a></li>
|
||||||
|
<li><b>11.</b> <a href='#q11'>How can I put a background in my PDF?</a></li>
|
||||||
|
<li><b>12.</b> <a href='#q12'>How can I set a specific header or footer on the first page?</a></li>
|
||||||
|
<li><b>13.</b> <a href='#q13'>I'd like to use extensions provided by different scripts. How can I combine them?</a></li>
|
||||||
|
<li><b>14.</b> <a href='#q14'>How can I open the PDF in a new tab?</a></li>
|
||||||
|
<li><b>15.</b> <a href='#q15'>How can I send the PDF by email?</a></li>
|
||||||
|
<li><b>16.</b> <a href='#q16'>What's the limit of the file sizes I can generate with FPDF?</a></li>
|
||||||
|
<li><b>17.</b> <a href='#q17'>Can I modify a PDF with FPDF?</a></li>
|
||||||
|
<li><b>18.</b> <a href='#q18'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</a></li>
|
||||||
|
<li><b>19.</b> <a href='#q19'>Can I convert an HTML page to PDF with FPDF?</a></li>
|
||||||
|
<li><b>20.</b> <a href='#q20'>Can I concatenate PDF files with FPDF?</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul id='answers'>
|
||||||
|
<li id='q1'>
|
||||||
|
<p><b>1.</b> <span class='question'>What's exactly the license of FPDF? Are there any usage restrictions?</span></p>
|
||||||
|
FPDF is released under a permissive license: there is no usage restriction. You may embed it
|
||||||
|
freely in your application (commercial or not), with or without modifications.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q2'>
|
||||||
|
<p><b>2.</b> <span class='question'>I get the following error when I try to generate a PDF: Some data has already been output, can't send PDF file</span></p>
|
||||||
|
You must send nothing to the browser except the PDF itself: no HTML, no space, no carriage return. A common
|
||||||
|
case is having extra blank at the end of an included script file.<br>
|
||||||
|
If you can't figure out where the problem comes from, this other message appearing just before can help you:<br>
|
||||||
|
<br>
|
||||||
|
<b>Warning:</b> Cannot modify header information - headers already sent by (output started at script.php:X)<br>
|
||||||
|
<br>
|
||||||
|
It means that script.php outputs something at line X. Go to this line and fix it.
|
||||||
|
In case the message doesn't show, first check that you didn't disable warnings, then add this at the very
|
||||||
|
beginning of your script:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>ob_end_clean();</code></pre>
|
||||||
|
</div>
|
||||||
|
If you still don't see it, disable zlib.output_compression in your php.ini and it should appear.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q3'>
|
||||||
|
<p><b>3.</b> <span class='question'>Accented letters are replaced with some strange characters like é.</span></p>
|
||||||
|
Don't use UTF-8 with the standard fonts; they expect text encoded in ISO-8859-1 or windows-1252.
|
||||||
|
You can use utf8_decode() to perform a conversion to ISO-8859-1:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$str = utf8_decode($str);</code></pre>
|
||||||
|
</div>
|
||||||
|
But some characters such as Euro won't be translated correctly. If the iconv extension is available, the
|
||||||
|
right way to do it is the following:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$str = iconv('UTF-8', 'windows-1252', $str);</code></pre>
|
||||||
|
</div>
|
||||||
|
In case you need characters outside windows-1252, take a look at tutorial #7 or
|
||||||
|
<a href="http://www.fpdf.org/?go=script&id=92" target="_blank">tFPDF</a>.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q4'>
|
||||||
|
<p><b>4.</b> <span class='question'>I try to display the Euro symbol but it doesn't work.</span></p>
|
||||||
|
The standard fonts have the Euro character at position 128. You can define a constant like this
|
||||||
|
for convenience:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>define('EURO', chr(128));</code></pre>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q5'>
|
||||||
|
<p><b>5.</b> <span class='question'>I try to display a variable in the Header method but nothing prints.</span></p>
|
||||||
|
You have to use the <code>global</code> keyword to access global variables, for example:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>function Header()
|
||||||
|
{
|
||||||
|
global $title;
|
||||||
|
|
||||||
|
$this->SetFont('Arial', 'B', 15);
|
||||||
|
$this->Cell(0, 10, $title, 1, 1, 'C');
|
||||||
|
}
|
||||||
|
|
||||||
|
$title = 'My title';</code></pre>
|
||||||
|
</div>
|
||||||
|
Alternatively, you can use an object property:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>function Header()
|
||||||
|
{
|
||||||
|
$this->SetFont('Arial', 'B', 15);
|
||||||
|
$this->Cell(0, 10, $this->title, 1, 1, 'C');
|
||||||
|
}
|
||||||
|
|
||||||
|
$pdf->title = 'My title';</code></pre>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q6'>
|
||||||
|
<p><b>6.</b> <span class='question'>I have defined the Header and Footer methods in my PDF class but nothing shows.</span></p>
|
||||||
|
You have to create an object from the PDF class, not FPDF:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$pdf = new PDF();</code></pre>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q7'>
|
||||||
|
<p><b>7.</b> <span class='question'>I can't make line breaks work. I put \n in the string printed by MultiCell but it doesn't work.</span></p>
|
||||||
|
You have to enclose your string with double quotes, not single ones.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q8'>
|
||||||
|
<p><b>8.</b> <span class='question'>I use jQuery to generate the PDF but it doesn't show.</span></p>
|
||||||
|
Don't use an AJAX request to retrieve the PDF.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q9'>
|
||||||
|
<p><b>9.</b> <span class='question'>I draw a frame with very precise dimensions, but when printed I notice some differences.</span></p>
|
||||||
|
To respect dimensions, select "None" for the Page Scaling setting instead of "Shrink to Printable Area" in the print dialog box.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q10'>
|
||||||
|
<p><b>10.</b> <span class='question'>I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?</span></p>
|
||||||
|
Printers have physical margins (different depending on the models); it is therefore impossible to remove
|
||||||
|
them and print on the whole surface of the paper.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q11'>
|
||||||
|
<p><b>11.</b> <span class='question'>How can I put a background in my PDF?</span></p>
|
||||||
|
For a picture, call Image() in the Header() method, before any other output. To set a background color, use Rect().
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q12'>
|
||||||
|
<p><b>12.</b> <span class='question'>How can I set a specific header or footer on the first page?</span></p>
|
||||||
|
Just test the page number:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>function Header()
|
||||||
|
{
|
||||||
|
if($this->PageNo()==1)
|
||||||
|
{
|
||||||
|
//First page
|
||||||
|
...
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//Other pages
|
||||||
|
...
|
||||||
|
}
|
||||||
|
}</code></pre>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q13'>
|
||||||
|
<p><b>13.</b> <span class='question'>I'd like to use extensions provided by different scripts. How can I combine them?</span></p>
|
||||||
|
Use an inheritance chain. If you have two classes, say A in a.php:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>require('fpdf.php');
|
||||||
|
|
||||||
|
class A extends FPDF
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}</code></pre>
|
||||||
|
</div>
|
||||||
|
and B in b.php:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>require('fpdf.php');
|
||||||
|
|
||||||
|
class B extends FPDF
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}</code></pre>
|
||||||
|
</div>
|
||||||
|
then make B extend A:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>require('a.php');
|
||||||
|
|
||||||
|
class B extends A
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}</code></pre>
|
||||||
|
</div>
|
||||||
|
and make your own class extend B:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>require('b.php');
|
||||||
|
|
||||||
|
class PDF extends B
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}
|
||||||
|
|
||||||
|
$pdf = new PDF();</code></pre>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q14'>
|
||||||
|
<p><b>14.</b> <span class='question'>How can I open the PDF in a new tab?</span></p>
|
||||||
|
Just do the same as you would for an HTML page or anything else: add a target="_blank" to your link or form.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q15'>
|
||||||
|
<p><b>15.</b> <span class='question'>How can I send the PDF by email?</span></p>
|
||||||
|
As for any other file, but an easy way is to use <a href="http://phpmailer.codeworxtech.com" target="_blank">PHPMailer</a> and
|
||||||
|
its in-memory attachment:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$mail = new PHPMailer();
|
||||||
|
...
|
||||||
|
$doc = $pdf->Output('S');
|
||||||
|
$mail->AddStringAttachment($doc, 'doc.pdf', 'base64', 'application/pdf');
|
||||||
|
$mail->Send();</code></pre>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q16'>
|
||||||
|
<p><b>16.</b> <span class='question'>What's the limit of the file sizes I can generate with FPDF?</span></p>
|
||||||
|
There is no particular limit. There are some constraints, however:
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
- There is usually a maximum memory size allocated to PHP scripts. For very big documents,
|
||||||
|
especially with images, the limit may be reached (the file being built in memory). The
|
||||||
|
parameter is configured in the php.ini file.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
- The maximum execution time allocated to scripts defaults to 30 seconds. This limit can of course
|
||||||
|
be easily reached. It is configured in php.ini and may be altered dynamically with set_time_limit().
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
You can work around the memory limit with <a href="http://www.fpdf.org/?go=script&id=76" target="_blank">this script</a>.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q17'>
|
||||||
|
<p><b>17.</b> <span class='question'>Can I modify a PDF with FPDF?</span></p>
|
||||||
|
It's possible to import pages from an existing PDF document thanks to the
|
||||||
|
<a href="https://www.setasign.com/products/fpdi/about/" target="_blank">FPDI</a> extension.
|
||||||
|
Then you can add some content to them.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q18'>
|
||||||
|
<p><b>18.</b> <span class='question'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</span></p>
|
||||||
|
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from a PDF.
|
||||||
|
It's provided with the <a href="http://www.foolabs.com/xpdf/" target="_blank">Xpdf</a> package.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q19'>
|
||||||
|
<p><b>19.</b> <span class='question'>Can I convert an HTML page to PDF with FPDF?</span></p>
|
||||||
|
Not real-world pages. But a GPL C utility does exist, <a href="https://www.msweet.org/projects.php?Z1" target="_blank">HTMLDOC</a>,
|
||||||
|
which allows to do it and gives good results.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li id='q20'>
|
||||||
|
<p><b>20.</b> <span class='question'>Can I concatenate PDF files with FPDF?</span></p>
|
||||||
|
Not directly, but it's possible to use <a href="https://www.setasign.com/products/fpdi/demos/concatenate-fake/" target="_blank">FPDI</a>
|
||||||
|
to perform that task. Some free command-line tools also exist:
|
||||||
|
<a href="https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/" target="_blank">pdftk</a> and
|
||||||
|
<a href="http://thierry.schmit.free.fr/spip/spip.php?article15" target="_blank">mbtPdfAsm</a>.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
163
application/third_party/fpdf/changelog.htm
vendored
Normal file
163
application/third_party/fpdf/changelog.htm
vendored
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Changelog</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="fpdf.css">
|
||||||
|
<style type="text/css">
|
||||||
|
dd {margin:1em 0 1em 1em}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Changelog</h1>
|
||||||
|
<dl>
|
||||||
|
<dt><strong>v1.81</strong> (2015-12-20)</dt>
|
||||||
|
<dd>
|
||||||
|
- Added GetPageWidth() and GetPageHeight().<br>
|
||||||
|
- Fixed a bug in SetXY().<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.8</strong> (2015-11-29)</dt>
|
||||||
|
<dd>
|
||||||
|
- PHP 5.1.0 or higher is now required.<br>
|
||||||
|
- The MakeFont utility now subsets fonts, which can greatly reduce font sizes.<br>
|
||||||
|
- Added ToUnicode CMaps to improve text extraction.<br>
|
||||||
|
- Added a parameter to AddPage() to rotate the page.<br>
|
||||||
|
- Added a parameter to SetY() to indicate whether the x position should be reset or not.<br>
|
||||||
|
- Added a parameter to Output() to specify the encoding of the name, and special characters are now properly encoded. Additionally the order of the first two parameters was reversed to be more logical (however the old order is still supported for compatibility).<br>
|
||||||
|
- The Error() method now throws an exception.<br>
|
||||||
|
- Adding contents before the first AddPage() or after Close() now raises an error.<br>
|
||||||
|
- Outputting text with no font selected now raises an error.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.7</strong> (2011-06-18)</dt>
|
||||||
|
<dd>
|
||||||
|
- The MakeFont utility has been completely rewritten and doesn't depend on ttf2pt1 anymore.<br>
|
||||||
|
- Alpha channel is now supported for PNGs.<br>
|
||||||
|
- When inserting an image, it's now possible to specify its resolution.<br>
|
||||||
|
- Default resolution for images was increased from 72 to 96 dpi.<br>
|
||||||
|
- When inserting a GIF image, no temporary file is used anymore if the PHP version is 5.1 or higher.<br>
|
||||||
|
- When output buffering is enabled and the PDF is about to be sent, the buffer is now cleared if it contains only a UTF-8 BOM and/or whitespace (instead of throwing an error).<br>
|
||||||
|
- Symbol and ZapfDingbats fonts now support underline style.<br>
|
||||||
|
- Custom page sizes are now checked to ensure that width is smaller than height.<br>
|
||||||
|
- Standard font files were changed to use the same format as user fonts.<br>
|
||||||
|
- A bug in the embedding of Type1 fonts was fixed.<br>
|
||||||
|
- A bug related to SetDisplayMode() and the current locale was fixed.<br>
|
||||||
|
- A display issue occurring with the Adobe Reader X plug-in was fixed.<br>
|
||||||
|
- An issue related to transparency with some versions of Adobe Reader was fixed.<br>
|
||||||
|
- The Content-Length header was removed because it caused an issue when the HTTP server applies compression.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.6</strong> (2008-08-03)</dt>
|
||||||
|
<dd>
|
||||||
|
- PHP 4.3.10 or higher is now required.<br>
|
||||||
|
- GIF image support.<br>
|
||||||
|
- Images can now trigger page breaks.<br>
|
||||||
|
- Possibility to have different page formats in a single document.<br>
|
||||||
|
- Document properties (author, creator, keywords, subject and title) can now be specified in UTF-8.<br>
|
||||||
|
- Fixed a bug: when a PNG was inserted through a URL, an error sometimes occurred.<br>
|
||||||
|
- An automatic page break in Header() doesn't cause an infinite loop any more.<br>
|
||||||
|
- Removed some warning messages appearing with recent PHP versions.<br>
|
||||||
|
- Added HTTP headers to reduce problems with IE.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.53</strong> (2004-12-31)</dt>
|
||||||
|
<dd>
|
||||||
|
- When the font subdirectory is in the same directory as fpdf.php, it's no longer necessary to define the FPDF_FONTPATH constant.<br>
|
||||||
|
- The array $HTTP_SERVER_VARS is no longer used. It could cause trouble on PHP5-based configurations with the register_long_arrays option disabled.<br>
|
||||||
|
- Fixed a problem related to Type1 font embedding which caused trouble to some PDF processors.<br>
|
||||||
|
- The file name sent to the browser could not contain a space character.<br>
|
||||||
|
- The Cell() method could not print the number 0 (you had to pass the string '0').<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.52</strong> (2003-12-30)</dt>
|
||||||
|
<dd>
|
||||||
|
- Image() now displays the image at 72 dpi if no dimension is given.<br>
|
||||||
|
- Output() takes a string as second parameter to indicate destination.<br>
|
||||||
|
- Open() is now called automatically by AddPage().<br>
|
||||||
|
- Inserting remote JPEG images doesn't generate an error any longer.<br>
|
||||||
|
- Decimal separator is forced to dot in the constructor.<br>
|
||||||
|
- Added several encodings (Turkish, Thai, Hebrew, Ukrainian and Vietnamese).<br>
|
||||||
|
- The last line of a right-aligned MultiCell() was not correctly aligned if it was terminated by a carriage return.<br>
|
||||||
|
- No more error message about already sent headers when outputting the PDF to the standard output from the command line.<br>
|
||||||
|
- The underlining was going too far for text containing characters \, ( or ).<br>
|
||||||
|
- $HTTP_ENV_VARS has been replaced by $HTTP_SERVER_VARS.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.51</strong> (2002-08-03)</dt>
|
||||||
|
<dd>
|
||||||
|
- Type1 font support.<br>
|
||||||
|
- Added Baltic encoding.<br>
|
||||||
|
- The class now works internally in points with the origin at the bottom in order to avoid two bugs occurring with Acrobat 5:<br> * The line thickness was too large when printed under Windows 98 SE and ME.<br> * TrueType fonts didn't appear immediately inside the plug-in (a substitution font was used), one had to cause a window refresh to make them show up.<br>
|
||||||
|
- It's no longer necessary to set the decimal separator as dot to produce valid documents.<br>
|
||||||
|
- The clickable area in a cell was always on the left independently from the text alignment.<br>
|
||||||
|
- JPEG images in CMYK mode appeared in inverted colors.<br>
|
||||||
|
- Transparent PNG images in grayscale or true color mode were incorrectly handled.<br>
|
||||||
|
- Adding new fonts now works correctly even with the magic_quotes_runtime option set to on.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.5</strong> (2002-05-28)</dt>
|
||||||
|
<dd>
|
||||||
|
- TrueType font (AddFont()) and encoding support (Western and Eastern Europe, Cyrillic and Greek).<br>
|
||||||
|
- Added Write() method.<br>
|
||||||
|
- Added underlined style.<br>
|
||||||
|
- Internal and external link support (AddLink(), SetLink(), Link()).<br>
|
||||||
|
- Added right margin management and methods SetRightMargin(), SetTopMargin().<br>
|
||||||
|
- Modification of SetDisplayMode() to select page layout.<br>
|
||||||
|
- The border parameter of MultiCell() now lets choose borders to draw as Cell().<br>
|
||||||
|
- When a document contains no page, Close() now calls AddPage() instead of causing a fatal error.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.41</strong> (2002-03-13)</dt>
|
||||||
|
<dd>
|
||||||
|
- Fixed SetDisplayMode() which no longer worked (the PDF viewer used its default display).<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.4</strong> (2002-03-02)</dt>
|
||||||
|
<dd>
|
||||||
|
- PHP3 is no longer supported.<br>
|
||||||
|
- Page compression (SetCompression()).<br>
|
||||||
|
- Choice of page format and possibility to change orientation inside document.<br>
|
||||||
|
- Added AcceptPageBreak() method.<br>
|
||||||
|
- Ability to print the total number of pages (AliasNbPages()).<br>
|
||||||
|
- Choice of cell borders to draw.<br>
|
||||||
|
- New mode for Cell(): the current position can now move under the cell.<br>
|
||||||
|
- Ability to include an image by specifying height only (width is calculated automatically).<br>
|
||||||
|
- Fixed a bug: when a justified line triggered a page break, the footer inherited the corresponding word spacing.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.31</strong> (2002-01-12)</dt>
|
||||||
|
<dd>
|
||||||
|
- Fixed a bug in drawing frame with MultiCell(): the last line always started from the left margin.<br>
|
||||||
|
- Removed Expires HTTP header (gives trouble in some situations).<br>
|
||||||
|
- Added Content-disposition HTTP header (seems to help in some situations).<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.3</strong> (2001-12-03)</dt>
|
||||||
|
<dd>
|
||||||
|
- Line break and text justification support (MultiCell()).<br>
|
||||||
|
- Color support (SetDrawColor(), SetFillColor(), SetTextColor()). Possibility to draw filled rectangles and paint cell background.<br>
|
||||||
|
- A cell whose width is declared null extends up to the right margin of the page.<br>
|
||||||
|
- Line width is now retained from page to page and defaults to 0.2 mm.<br>
|
||||||
|
- Added SetXY() method.<br>
|
||||||
|
- Fixed a passing by reference done in a deprecated manner for PHP4.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.2</strong> (2001-11-11)</dt>
|
||||||
|
<dd>
|
||||||
|
- Added font metric files and GetStringWidth() method.<br>
|
||||||
|
- Centering and right-aligning text in cells.<br>
|
||||||
|
- Display mode control (SetDisplayMode()).<br>
|
||||||
|
- Added methods to set document properties (SetAuthor(), SetCreator(), SetKeywords(), SetSubject(), SetTitle()).<br>
|
||||||
|
- Possibility to force PDF download by browser.<br>
|
||||||
|
- Added SetX() and GetX() methods.<br>
|
||||||
|
- During automatic page break, current abscissa is now retained.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.11</strong> (2001-10-20)</dt>
|
||||||
|
<dd>
|
||||||
|
- PNG support doesn't require PHP4/zlib any more. Data are now put directly into PDF without any decompression/recompression stage.<br>
|
||||||
|
- Image insertion now works correctly even with magic_quotes_runtime option set to on.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.1</strong> (2001-10-07)</dt>
|
||||||
|
<dd>
|
||||||
|
- JPEG and PNG image support.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.01</strong> (2001-10-03)</dt>
|
||||||
|
<dd>
|
||||||
|
- Fixed a bug involving page break: in case when Header() doesn't specify a font, the one from previous page was not restored and produced an incorrect document.<br>
|
||||||
|
</dd>
|
||||||
|
<dt><strong>v1.0</strong> (2001-09-17)</dt>
|
||||||
|
<dd>
|
||||||
|
- First version.<br>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
63
application/third_party/fpdf/doc/__construct.htm
vendored
Normal file
63
application/third_party/fpdf/doc/__construct.htm
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>__construct</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>__construct</h1>
|
||||||
|
<code>__construct([<b>string</b> orientation [, <b>string</b> unit [, <b>mixed</b> size]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This is the class constructor. It allows to set up the page size, the orientation and the
|
||||||
|
unit of measure used in all methods (except for font sizes).
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>orientation</code></dt>
|
||||||
|
<dd>
|
||||||
|
Default page orientation. Possible values are (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>P</code> or <code>Portrait</code></li>
|
||||||
|
<li><code>L</code> or <code>Landscape</code></li>
|
||||||
|
</ul>
|
||||||
|
Default value is <code>P</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>unit</code></dt>
|
||||||
|
<dd>
|
||||||
|
User unit. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>pt</code>: point</li>
|
||||||
|
<li><code>mm</code>: millimeter</li>
|
||||||
|
<li><code>cm</code>: centimeter</li>
|
||||||
|
<li><code>in</code>: inch</li>
|
||||||
|
</ul>
|
||||||
|
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This
|
||||||
|
is a very common unit in typography; font sizes are expressed in that unit.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
Default value is <code>mm</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>size</code></dt>
|
||||||
|
<dd>
|
||||||
|
The size used for pages. It can be either one of the following values (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>A3</code></li>
|
||||||
|
<li><code>A4</code></li>
|
||||||
|
<li><code>A5</code></li>
|
||||||
|
<li><code>Letter</code></li>
|
||||||
|
<li><code>Legal</code></li>
|
||||||
|
</ul>
|
||||||
|
or an array containing the width and the height (expressed in the unit given by <code>unit</code>).<br>
|
||||||
|
<br>
|
||||||
|
Default value is <code>A4</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
Example with a custom 100x150 mm page size:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$pdf = new FPDF('P','mm',array(100,150));</code></pre>
|
||||||
|
</div>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
63
application/third_party/fpdf/doc/acceptpagebreak.htm
vendored
Normal file
63
application/third_party/fpdf/doc/acceptpagebreak.htm
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AcceptPageBreak</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AcceptPageBreak</h1>
|
||||||
|
<code><b>boolean</b> AcceptPageBreak()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Whenever a page break condition is met, the method is called, and the break is issued or not
|
||||||
|
depending on the returned value. The default implementation returns a value according to the
|
||||||
|
mode selected by SetAutoPageBreak().
|
||||||
|
<br>
|
||||||
|
This method is called automatically and should not be called directly by the application.
|
||||||
|
<h2>Example</h2>
|
||||||
|
The method is overriden in an inherited class in order to obtain a 3 column layout:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>class PDF extends FPDF
|
||||||
|
{
|
||||||
|
var $col = 0;
|
||||||
|
|
||||||
|
function SetCol($col)
|
||||||
|
{
|
||||||
|
// Move position to a column
|
||||||
|
$this->col = $col;
|
||||||
|
$x = 10+$col*65;
|
||||||
|
$this->SetLeftMargin($x);
|
||||||
|
$this->SetX($x);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AcceptPageBreak()
|
||||||
|
{
|
||||||
|
if($this->col<2)
|
||||||
|
{
|
||||||
|
// Go to next column
|
||||||
|
$this->SetCol($this->col+1);
|
||||||
|
$this->SetY(10);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Go back to first column and issue page break
|
||||||
|
$this->SetCol(0);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$pdf = new PDF();
|
||||||
|
$pdf->AddPage();
|
||||||
|
$pdf->SetFont('Arial','',12);
|
||||||
|
for($i=1;$i<=300;$i++)
|
||||||
|
$pdf->Cell(0,5,"Line $i",0,1);
|
||||||
|
$pdf->Output();</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
55
application/third_party/fpdf/doc/addfont.htm
vendored
Normal file
55
application/third_party/fpdf/doc/addfont.htm
vendored
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AddFont</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AddFont</h1>
|
||||||
|
<code>AddFont(<b>string</b> family [, <b>string</b> style [, <b>string</b> file]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Imports a TrueType, OpenType or Type1 font and makes it available. It is necessary to generate a font
|
||||||
|
definition file first with the MakeFont utility.
|
||||||
|
<br>
|
||||||
|
The definition file (and the font file itself when embedding) must be present in the font directory.
|
||||||
|
If it is not found, the error "Could not include font definition file" is raised.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>family</code></dt>
|
||||||
|
<dd>
|
||||||
|
Font family. The name can be chosen arbitrarily. If it is a standard family name, it will
|
||||||
|
override the corresponding font.
|
||||||
|
</dd>
|
||||||
|
<dt><code>style</code></dt>
|
||||||
|
<dd>
|
||||||
|
Font style. Possible values are (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li>empty string: regular</li>
|
||||||
|
<li><code>B</code>: bold</li>
|
||||||
|
<li><code>I</code>: italic</li>
|
||||||
|
<li><code>BI</code> or <code>IB</code>: bold italic</li>
|
||||||
|
</ul>
|
||||||
|
The default value is regular.
|
||||||
|
</dd>
|
||||||
|
<dt><code>file</code></dt>
|
||||||
|
<dd>
|
||||||
|
The font definition file.
|
||||||
|
<br>
|
||||||
|
By default, the name is built from the family and style, in lower case with no space.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$pdf->AddFont('Comic','I');</code></pre>
|
||||||
|
</div>
|
||||||
|
is equivalent to:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$pdf->AddFont('Comic','I','comici.php');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
26
application/third_party/fpdf/doc/addlink.htm
vendored
Normal file
26
application/third_party/fpdf/doc/addlink.htm
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AddLink</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AddLink</h1>
|
||||||
|
<code><b>int</b> AddLink()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Creates a new internal link and returns its identifier. An internal link is a clickable area
|
||||||
|
which directs to another place within the document.
|
||||||
|
<br>
|
||||||
|
The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is
|
||||||
|
defined with SetLink().
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="write.htm">Write</a>,
|
||||||
|
<a href="image.htm">Image</a>,
|
||||||
|
<a href="link.htm">Link</a>,
|
||||||
|
<a href="setlink.htm">SetLink</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
61
application/third_party/fpdf/doc/addpage.htm
vendored
Normal file
61
application/third_party/fpdf/doc/addpage.htm
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AddPage</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AddPage</h1>
|
||||||
|
<code>AddPage([<b>string</b> orientation [, <b>mixed</b> size [, <b>int</b> rotation]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Adds a new page to the document. If a page is already present, the Footer() method is called
|
||||||
|
first to output the footer. Then the page is added, the current position set to the top-left
|
||||||
|
corner according to the left and top margins, and Header() is called to display the header.
|
||||||
|
<br>
|
||||||
|
The font which was set before calling is automatically restored. There is no need to call
|
||||||
|
SetFont() again if you want to continue with the same font. The same is true for colors and
|
||||||
|
line width.
|
||||||
|
<br>
|
||||||
|
The origin of the coordinate system is at the top-left corner and increasing ordinates go
|
||||||
|
downwards.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>orientation</code></dt>
|
||||||
|
<dd>
|
||||||
|
Page orientation. Possible values are (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>P</code> or <code>Portrait</code></li>
|
||||||
|
<li><code>L</code> or <code>Landscape</code></li>
|
||||||
|
</ul>
|
||||||
|
The default value is the one passed to the constructor.
|
||||||
|
</dd>
|
||||||
|
<dt><code>size</code></dt>
|
||||||
|
<dd>
|
||||||
|
Page size. It can be either one of the following values (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>A3</code></li>
|
||||||
|
<li><code>A4</code></li>
|
||||||
|
<li><code>A5</code></li>
|
||||||
|
<li><code>Letter</code></li>
|
||||||
|
<li><code>Legal</code></li>
|
||||||
|
</ul>
|
||||||
|
or an array containing the width and the height (expressed in user unit).<br>
|
||||||
|
<br>
|
||||||
|
The default value is the one passed to the constructor.
|
||||||
|
</dd>
|
||||||
|
<dt><code>rotation</code></dt>
|
||||||
|
<dd>
|
||||||
|
Angle by which to rotate the page. It must be a multiple of 90; positive values
|
||||||
|
mean clockwise rotation. The default value is <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="__construct.htm">__construct</a>,
|
||||||
|
<a href="header.htm">Header</a>,
|
||||||
|
<a href="footer.htm">Footer</a>,
|
||||||
|
<a href="setmargins.htm">SetMargins</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
45
application/third_party/fpdf/doc/aliasnbpages.htm
vendored
Normal file
45
application/third_party/fpdf/doc/aliasnbpages.htm
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AliasNbPages</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AliasNbPages</h1>
|
||||||
|
<code>AliasNbPages([<b>string</b> alias])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines an alias for the total number of pages. It will be substituted as the document is
|
||||||
|
closed.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>alias</code></dt>
|
||||||
|
<dd>
|
||||||
|
The alias. Default value: <code>{nb}</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>class PDF extends FPDF
|
||||||
|
{
|
||||||
|
function Footer()
|
||||||
|
{
|
||||||
|
// Go to 1.5 cm from bottom
|
||||||
|
$this->SetY(-15);
|
||||||
|
// Select Arial italic 8
|
||||||
|
$this->SetFont('Arial','I',8);
|
||||||
|
// Print current and total page numbers
|
||||||
|
$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$pdf = new PDF();
|
||||||
|
$pdf->AliasNbPages();</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="pageno.htm">PageNo</a>,
|
||||||
|
<a href="footer.htm">Footer</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
104
application/third_party/fpdf/doc/cell.htm
vendored
Normal file
104
application/third_party/fpdf/doc/cell.htm
vendored
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Cell</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Cell</h1>
|
||||||
|
<code>Cell(<b>float</b> w [, <b>float</b> h [, <b>string</b> txt [, <b>mixed</b> border [, <b>int</b> ln [, <b>string</b> align [, <b>boolean</b> fill [, <b>mixed</b> link]]]]]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Prints a cell (rectangular area) with optional borders, background color and character string.
|
||||||
|
The upper-left corner of the cell corresponds to the current position. The text can be aligned
|
||||||
|
or centered. After the call, the current position moves to the right or to the next line. It is
|
||||||
|
possible to put a link on the text.
|
||||||
|
<br>
|
||||||
|
If automatic page breaking is enabled and the cell goes beyond the limit, a page break is
|
||||||
|
done before outputting.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Cell width. If <code>0</code>, the cell extends up to the right margin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Cell height.
|
||||||
|
Default value: <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>txt</code></dt>
|
||||||
|
<dd>
|
||||||
|
String to print.
|
||||||
|
Default value: empty string.
|
||||||
|
</dd>
|
||||||
|
<dt><code>border</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if borders must be drawn around the cell. The value can be either a number:
|
||||||
|
<ul>
|
||||||
|
<li><code>0</code>: no border</li>
|
||||||
|
<li><code>1</code>: frame</li>
|
||||||
|
</ul>
|
||||||
|
or a string containing some or all of the following characters (in any order):
|
||||||
|
<ul>
|
||||||
|
<li><code>L</code>: left</li>
|
||||||
|
<li><code>T</code>: top</li>
|
||||||
|
<li><code>R</code>: right</li>
|
||||||
|
<li><code>B</code>: bottom</li>
|
||||||
|
</ul>
|
||||||
|
Default value: <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>ln</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates where the current position should go after the call. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>0</code>: to the right</li>
|
||||||
|
<li><code>1</code>: to the beginning of the next line</li>
|
||||||
|
<li><code>2</code>: below</li>
|
||||||
|
</ul>
|
||||||
|
Putting <code>1</code> is equivalent to putting <code>0</code> and calling Ln() just after.
|
||||||
|
Default value: <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>align</code></dt>
|
||||||
|
<dd>
|
||||||
|
Allows to center or align the text. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>L</code> or empty string: left align (default value)</li>
|
||||||
|
<li><code>C</code>: center</li>
|
||||||
|
<li><code>R</code>: right align</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
<dt><code>fill</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the cell background must be painted (<code>true</code>) or transparent (<code>false</code>).
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
URL or identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>// Set font
|
||||||
|
$pdf->SetFont('Arial','B',16);
|
||||||
|
// Move to 8 cm to the right
|
||||||
|
$pdf->Cell(80);
|
||||||
|
// Centered text in a framed 20*10 mm cell and line break
|
||||||
|
$pdf->Cell(20,10,'Title',1,1,'C');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a>,
|
||||||
|
<a href="addlink.htm">AddLink</a>,
|
||||||
|
<a href="ln.htm">Ln</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="write.htm">Write</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
21
application/third_party/fpdf/doc/close.htm
vendored
Normal file
21
application/third_party/fpdf/doc/close.htm
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Close</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Close</h1>
|
||||||
|
<code>Close()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Terminates the PDF document. It is not necessary to call this method explicitly because Output()
|
||||||
|
does it automatically.
|
||||||
|
<br>
|
||||||
|
If the document contains no page, AddPage() is called to prevent from getting an invalid document.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="output.htm">Output</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
26
application/third_party/fpdf/doc/error.htm
vendored
Normal file
26
application/third_party/fpdf/doc/error.htm
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Error</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Error</h1>
|
||||||
|
<code>Error(<b>string</b> msg)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method is automatically called in case of a fatal error; it simply throws an exception
|
||||||
|
with the provided message.<br>
|
||||||
|
An inherited class may override it to customize the error handling but the method should
|
||||||
|
never return, otherwise the resulting document would probably be invalid.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>msg</code></dt>
|
||||||
|
<dd>
|
||||||
|
The error message.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
35
application/third_party/fpdf/doc/footer.htm
vendored
Normal file
35
application/third_party/fpdf/doc/footer.htm
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Footer</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Footer</h1>
|
||||||
|
<code>Footer()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method is used to render the page footer. It is automatically called by AddPage() and
|
||||||
|
Close() and should not be called directly by the application. The implementation in FPDF is
|
||||||
|
empty, so you have to subclass it and override the method if you want a specific processing.
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>class PDF extends FPDF
|
||||||
|
{
|
||||||
|
function Footer()
|
||||||
|
{
|
||||||
|
// Go to 1.5 cm from bottom
|
||||||
|
$this->SetY(-15);
|
||||||
|
// Select Arial italic 8
|
||||||
|
$this->SetFont('Arial','I',8);
|
||||||
|
// Print centered page number
|
||||||
|
$this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
|
||||||
|
}
|
||||||
|
}</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="header.htm">Header</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
18
application/third_party/fpdf/doc/getpageheight.htm
vendored
Normal file
18
application/third_party/fpdf/doc/getpageheight.htm
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetPageHeight</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetPageHeight</h1>
|
||||||
|
<code><b>float</b> GetPageHeight()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the current page height.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="getpagewidth.htm">GetPageWidth</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
18
application/third_party/fpdf/doc/getpagewidth.htm
vendored
Normal file
18
application/third_party/fpdf/doc/getpagewidth.htm
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetPageWidth</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetPageWidth</h1>
|
||||||
|
<code><b>float</b> GetPageWidth()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the current page width.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="getpageheight.htm">GetPageHeight</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
23
application/third_party/fpdf/doc/getstringwidth.htm
vendored
Normal file
23
application/third_party/fpdf/doc/getstringwidth.htm
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetStringWidth</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetStringWidth</h1>
|
||||||
|
<code><b>float</b> GetStringWidth(<b>string</b> s)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the length of a string in user unit. A font must be selected.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>s</code></dt>
|
||||||
|
<dd>
|
||||||
|
The string whose length is to be computed.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
20
application/third_party/fpdf/doc/getx.htm
vendored
Normal file
20
application/third_party/fpdf/doc/getx.htm
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetX</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetX</h1>
|
||||||
|
<code><b>float</b> GetX()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the abscissa of the current position.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setx.htm">SetX</a>,
|
||||||
|
<a href="gety.htm">GetY</a>,
|
||||||
|
<a href="sety.htm">SetY</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
20
application/third_party/fpdf/doc/gety.htm
vendored
Normal file
20
application/third_party/fpdf/doc/gety.htm
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetY</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetY</h1>
|
||||||
|
<code><b>float</b> GetY()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the ordinate of the current position.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="sety.htm">SetY</a>,
|
||||||
|
<a href="getx.htm">GetX</a>,
|
||||||
|
<a href="setx.htm">SetX</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
37
application/third_party/fpdf/doc/header.htm
vendored
Normal file
37
application/third_party/fpdf/doc/header.htm
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Header</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Header</h1>
|
||||||
|
<code>Header()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method is used to render the page header. It is automatically called by AddPage() and
|
||||||
|
should not be called directly by the application. The implementation in FPDF is empty, so
|
||||||
|
you have to subclass it and override the method if you want a specific processing.
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>class PDF extends FPDF
|
||||||
|
{
|
||||||
|
function Header()
|
||||||
|
{
|
||||||
|
// Select Arial bold 15
|
||||||
|
$this->SetFont('Arial','B',15);
|
||||||
|
// Move to the right
|
||||||
|
$this->Cell(80);
|
||||||
|
// Framed title
|
||||||
|
$this->Cell(30,10,'Title',1,0,'C');
|
||||||
|
// Line break
|
||||||
|
$this->Ln(20);
|
||||||
|
}
|
||||||
|
}</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="footer.htm">Footer</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
99
application/third_party/fpdf/doc/image.htm
vendored
Normal file
99
application/third_party/fpdf/doc/image.htm
vendored
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Image</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Image</h1>
|
||||||
|
<code>Image(<b>string</b> file [, <b>float</b> x [, <b>float</b> y [, <b>float</b> w [, <b>float</b> h [, <b>string</b> type [, <b>mixed</b> link]]]]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Puts an image. The size it will take on the page can be specified in different ways:
|
||||||
|
<ul>
|
||||||
|
<li>explicit width and height (expressed in user unit or dpi)</li>
|
||||||
|
<li>one explicit dimension, the other being calculated automatically in order to keep the original proportions</li>
|
||||||
|
<li>no explicit dimension, in which case the image is put at 96 dpi</li>
|
||||||
|
</ul>
|
||||||
|
Supported formats are JPEG, PNG and GIF. The GD extension is required for GIF.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
For JPEGs, all flavors are allowed:
|
||||||
|
<ul>
|
||||||
|
<li>gray scales</li>
|
||||||
|
<li>true colors (24 bits)</li>
|
||||||
|
<li>CMYK (32 bits)</li>
|
||||||
|
</ul>
|
||||||
|
For PNGs, are allowed:
|
||||||
|
<ul>
|
||||||
|
<li>gray scales on at most 8 bits (256 levels)</li>
|
||||||
|
<li>indexed colors</li>
|
||||||
|
<li>true colors (24 bits)</li>
|
||||||
|
</ul>
|
||||||
|
For GIFs: in case of an animated GIF, only the first frame is displayed.<br>
|
||||||
|
<br>
|
||||||
|
Transparency is supported.<br>
|
||||||
|
<br>
|
||||||
|
The format can be specified explicitly or inferred from the file extension.<br>
|
||||||
|
<br>
|
||||||
|
It is possible to put a link on the image.<br>
|
||||||
|
<br>
|
||||||
|
Remark: if an image is used several times, only one copy is embedded in the file.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>file</code></dt>
|
||||||
|
<dd>
|
||||||
|
Path or URL of the image.
|
||||||
|
</dd>
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of the upper-left corner. If not specified or equal to <code>null</code>, the current abscissa
|
||||||
|
is used.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of the upper-left corner. If not specified or equal to <code>null</code>, the current ordinate
|
||||||
|
is used; moreover, a page break is triggered first if necessary (in case automatic page breaking is enabled)
|
||||||
|
and, after the call, the current ordinate is moved to the bottom of the image.
|
||||||
|
</dd>
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Width of the image in the page. There are three cases:
|
||||||
|
<ul>
|
||||||
|
<li>If the value is positive, it represents the width in user unit</li>
|
||||||
|
<li>If the value is negative, the absolute value represents the horizontal resolution in dpi</li>
|
||||||
|
<li>If the value is not specified or equal to zero, it is automatically calculated</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Height of the image in the page. There are three cases:
|
||||||
|
<ul>
|
||||||
|
<li>If the value is positive, it represents the height in user unit</li>
|
||||||
|
<li>If the value is negative, the absolute value represents the vertical resolution in dpi</li>
|
||||||
|
<li>If the value is not specified or equal to zero, it is automatically calculated</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
<dt><code>type</code></dt>
|
||||||
|
<dd>
|
||||||
|
Image format. Possible values are (case insensitive): <code>JPG</code>, <code>JPEG</code>, <code>PNG</code> and <code>GIF</code>.
|
||||||
|
If not specified, the type is inferred from the file extension.
|
||||||
|
</dd>
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
URL or identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>// Insert a logo in the top-left corner at 300 dpi
|
||||||
|
$pdf->Image('logo.png',10,10,-300);
|
||||||
|
// Insert a dynamic image from a URL
|
||||||
|
$pdf->Image('http://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="addlink.htm">AddLink</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
59
application/third_party/fpdf/doc/index.htm
vendored
Normal file
59
application/third_party/fpdf/doc/index.htm
vendored
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>FPDF 1.81 Reference Manual</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>FPDF 1.81 Reference Manual</h1>
|
||||||
|
<a href="__construct.htm">__construct</a> - constructor<br>
|
||||||
|
<a href="acceptpagebreak.htm">AcceptPageBreak</a> - accept or not automatic page break<br>
|
||||||
|
<a href="addfont.htm">AddFont</a> - add a new font<br>
|
||||||
|
<a href="addlink.htm">AddLink</a> - create an internal link<br>
|
||||||
|
<a href="addpage.htm">AddPage</a> - add a new page<br>
|
||||||
|
<a href="aliasnbpages.htm">AliasNbPages</a> - define an alias for number of pages<br>
|
||||||
|
<a href="cell.htm">Cell</a> - print a cell<br>
|
||||||
|
<a href="close.htm">Close</a> - terminate the document<br>
|
||||||
|
<a href="error.htm">Error</a> - fatal error<br>
|
||||||
|
<a href="footer.htm">Footer</a> - page footer<br>
|
||||||
|
<a href="getpageheight.htm">GetPageHeight</a> - get current page height<br>
|
||||||
|
<a href="getpagewidth.htm">GetPageWidth</a> - get current page width<br>
|
||||||
|
<a href="getstringwidth.htm">GetStringWidth</a> - compute string length<br>
|
||||||
|
<a href="getx.htm">GetX</a> - get current x position<br>
|
||||||
|
<a href="gety.htm">GetY</a> - get current y position<br>
|
||||||
|
<a href="header.htm">Header</a> - page header<br>
|
||||||
|
<a href="image.htm">Image</a> - output an image<br>
|
||||||
|
<a href="line.htm">Line</a> - draw a line<br>
|
||||||
|
<a href="link.htm">Link</a> - put a link<br>
|
||||||
|
<a href="ln.htm">Ln</a> - line break<br>
|
||||||
|
<a href="multicell.htm">MultiCell</a> - print text with line breaks<br>
|
||||||
|
<a href="output.htm">Output</a> - save or send the document<br>
|
||||||
|
<a href="pageno.htm">PageNo</a> - page number<br>
|
||||||
|
<a href="rect.htm">Rect</a> - draw a rectangle<br>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a> - set the document author<br>
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a> - set the automatic page breaking mode<br>
|
||||||
|
<a href="setcompression.htm">SetCompression</a> - turn compression on or off<br>
|
||||||
|
<a href="setcreator.htm">SetCreator</a> - set document creator<br>
|
||||||
|
<a href="setdisplaymode.htm">SetDisplayMode</a> - set display mode<br>
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a> - set drawing color<br>
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a> - set filling color<br>
|
||||||
|
<a href="setfont.htm">SetFont</a> - set font<br>
|
||||||
|
<a href="setfontsize.htm">SetFontSize</a> - set font size<br>
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a> - associate keywords with document<br>
|
||||||
|
<a href="setleftmargin.htm">SetLeftMargin</a> - set left margin<br>
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a> - set line width<br>
|
||||||
|
<a href="setlink.htm">SetLink</a> - set internal link destination<br>
|
||||||
|
<a href="setmargins.htm">SetMargins</a> - set margins<br>
|
||||||
|
<a href="setrightmargin.htm">SetRightMargin</a> - set right margin<br>
|
||||||
|
<a href="setsubject.htm">SetSubject</a> - set document subject<br>
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a> - set text color<br>
|
||||||
|
<a href="settitle.htm">SetTitle</a> - set document title<br>
|
||||||
|
<a href="settopmargin.htm">SetTopMargin</a> - set top margin<br>
|
||||||
|
<a href="setx.htm">SetX</a> - set current x position<br>
|
||||||
|
<a href="setxy.htm">SetXY</a> - set current x and y positions<br>
|
||||||
|
<a href="sety.htm">SetY</a> - set current y position and optionally reset x<br>
|
||||||
|
<a href="text.htm">Text</a> - print a string<br>
|
||||||
|
<a href="write.htm">Write</a> - print flowing text<br>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
38
application/third_party/fpdf/doc/line.htm
vendored
Normal file
38
application/third_party/fpdf/doc/line.htm
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Line</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Line</h1>
|
||||||
|
<code>Line(<b>float</b> x1, <b>float</b> y1, <b>float</b> x2, <b>float</b> y2)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Draws a line between two points.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x1</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of first point.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y1</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of first point.
|
||||||
|
</dd>
|
||||||
|
<dt><code>x2</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of second point.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y2</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of second point.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a>,
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
46
application/third_party/fpdf/doc/link.htm
vendored
Normal file
46
application/third_party/fpdf/doc/link.htm
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Link</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Link</h1>
|
||||||
|
<code>Link(<b>float</b> x, <b>float</b> y, <b>float</b> w, <b>float</b> h, <b>mixed</b> link)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Puts a link on a rectangular area of the page. Text or image links are generally put via Cell(),
|
||||||
|
Write() or Image(), but this method can be useful for instance to define a clickable area inside
|
||||||
|
an image.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of the upper-left corner of the rectangle.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of the upper-left corner of the rectangle.
|
||||||
|
</dd>
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Width of the rectangle.
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Height of the rectangle.
|
||||||
|
</dd>
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
URL or identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="addlink.htm">AddLink</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="write.htm">Write</a>,
|
||||||
|
<a href="image.htm">Image</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
28
application/third_party/fpdf/doc/ln.htm
vendored
Normal file
28
application/third_party/fpdf/doc/ln.htm
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Ln</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Ln</h1>
|
||||||
|
<code>Ln([<b>float</b> h])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Performs a line break. The current abscissa goes back to the left margin and the ordinate
|
||||||
|
increases by the amount passed in parameter.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
The height of the break.
|
||||||
|
<br>
|
||||||
|
By default, the value equals the height of the last printed cell.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="cell.htm">Cell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
76
application/third_party/fpdf/doc/multicell.htm
vendored
Normal file
76
application/third_party/fpdf/doc/multicell.htm
vendored
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>MultiCell</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>MultiCell</h1>
|
||||||
|
<code>MultiCell(<b>float</b> w, <b>float</b> h, <b>string</b> txt [, <b>mixed</b> border [, <b>string</b> align [, <b>boolean</b> fill]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method allows printing text with line breaks. They can be automatic (as soon as the
|
||||||
|
text reaches the right border of the cell) or explicit (via the \n character). As many cells
|
||||||
|
as necessary are output, one below the other.
|
||||||
|
<br>
|
||||||
|
Text can be aligned, centered or justified. The cell block can be framed and the background
|
||||||
|
painted.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Width of cells. If <code>0</code>, they extend up to the right margin of the page.
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Height of cells.
|
||||||
|
</dd>
|
||||||
|
<dt><code>txt</code></dt>
|
||||||
|
<dd>
|
||||||
|
String to print.
|
||||||
|
</dd>
|
||||||
|
<dt><code>border</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if borders must be drawn around the cell block. The value can be either a number:
|
||||||
|
<ul>
|
||||||
|
<li><code>0</code>: no border</li>
|
||||||
|
<li><code>1</code>: frame</li>
|
||||||
|
</ul>
|
||||||
|
or a string containing some or all of the following characters (in any order):
|
||||||
|
<ul>
|
||||||
|
<li><code>L</code>: left</li>
|
||||||
|
<li><code>T</code>: top</li>
|
||||||
|
<li><code>R</code>: right</li>
|
||||||
|
<li><code>B</code>: bottom</li>
|
||||||
|
</ul>
|
||||||
|
Default value: <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>align</code></dt>
|
||||||
|
<dd>
|
||||||
|
Sets the text alignment. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>L</code>: left alignment</li>
|
||||||
|
<li><code>C</code>: center</li>
|
||||||
|
<li><code>R</code>: right alignment</li>
|
||||||
|
<li><code>J</code>: justification (default value)</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
<dt><code>fill</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the cell background must be painted (<code>true</code>) or transparent (<code>false</code>).
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="write.htm">Write</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
46
application/third_party/fpdf/doc/output.htm
vendored
Normal file
46
application/third_party/fpdf/doc/output.htm
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Output</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Output</h1>
|
||||||
|
<code><b>string</b> Output([<b>string</b> dest [, <b>string</b> name [, <b>boolean</b> isUTF8]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Send the document to a given destination: browser, file or string. In the case of a browser, the
|
||||||
|
PDF viewer may be used or a download may be forced.
|
||||||
|
<br>
|
||||||
|
The method first calls Close() if necessary to terminate the document.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>dest</code></dt>
|
||||||
|
<dd>
|
||||||
|
Destination where to send the document. It can be one of the following:
|
||||||
|
<ul>
|
||||||
|
<li><code>I</code>: send the file inline to the browser. The PDF viewer is used if available.</li>
|
||||||
|
<li><code>D</code>: send to the browser and force a file download with the name given by <code>name</code>.</li>
|
||||||
|
<li><code>F</code>: save to a local file with the name given by <code>name</code> (may include a path).</li>
|
||||||
|
<li><code>S</code>: return the document as a string.</li>
|
||||||
|
</ul>
|
||||||
|
The default value is <code>I</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>name</code></dt>
|
||||||
|
<dd>
|
||||||
|
The name of the file. It is ignored in case of destination <code>S</code>.<br>
|
||||||
|
The default value is <code>doc.pdf</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if <code>name</code> is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).
|
||||||
|
Only used for destinations <code>I</code> and <code>D</code>.<br>
|
||||||
|
The default value is <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="close.htm">Close</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
18
application/third_party/fpdf/doc/pageno.htm
vendored
Normal file
18
application/third_party/fpdf/doc/pageno.htm
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>PageNo</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>PageNo</h1>
|
||||||
|
<code><b>int</b> PageNo()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the current page number.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="aliasnbpages.htm">AliasNbPages</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
48
application/third_party/fpdf/doc/rect.htm
vendored
Normal file
48
application/third_party/fpdf/doc/rect.htm
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Rect</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Rect</h1>
|
||||||
|
<code>Rect(<b>float</b> x, <b>float</b> y, <b>float</b> w, <b>float</b> h [, <b>string</b> style])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Outputs a rectangle. It can be drawn (border only), filled (with no border) or both.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of upper-left corner.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of upper-left corner.
|
||||||
|
</dd>
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Width.
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Height.
|
||||||
|
</dd>
|
||||||
|
<dt><code>style</code></dt>
|
||||||
|
<dd>
|
||||||
|
Style of rendering. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>D</code> or empty string: draw. This is the default value.</li>
|
||||||
|
<li><code>F</code>: fill</li>
|
||||||
|
<li><code>DF</code> or <code>FD</code>: draw and fill</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a>,
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
application/third_party/fpdf/doc/setauthor.htm
vendored
Normal file
33
application/third_party/fpdf/doc/setauthor.htm
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetAuthor</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetAuthor</h1>
|
||||||
|
<code>SetAuthor(<b>string</b> author [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the author of the document.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>author</code></dt>
|
||||||
|
<dd>
|
||||||
|
The name of the author.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setcreator.htm">SetCreator</a>,
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a>,
|
||||||
|
<a href="setsubject.htm">SetSubject</a>,
|
||||||
|
<a href="settitle.htm">SetTitle</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
application/third_party/fpdf/doc/setautopagebreak.htm
vendored
Normal file
33
application/third_party/fpdf/doc/setautopagebreak.htm
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetAutoPageBreak</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetAutoPageBreak</h1>
|
||||||
|
<code>SetAutoPageBreak(<b>boolean</b> auto [, <b>float</b> margin])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Enables or disables the automatic page breaking mode. When enabling, the second parameter is
|
||||||
|
the distance from the bottom of the page that defines the triggering limit. By default, the
|
||||||
|
mode is on and the margin is 2 cm.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>auto</code></dt>
|
||||||
|
<dd>
|
||||||
|
Boolean indicating if mode should be on or off.
|
||||||
|
</dd>
|
||||||
|
<dt><code>margin</code></dt>
|
||||||
|
<dd>
|
||||||
|
Distance from the bottom of the page.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="acceptpagebreak.htm">AcceptPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
31
application/third_party/fpdf/doc/setcompression.htm
vendored
Normal file
31
application/third_party/fpdf/doc/setcompression.htm
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetCompression</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetCompression</h1>
|
||||||
|
<code>SetCompression(<b>boolean</b> compress)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Activates or deactivates page compression. When activated, the internal representation of
|
||||||
|
each page is compressed, which leads to a compression ratio of about 2 for the resulting
|
||||||
|
document.
|
||||||
|
<br>
|
||||||
|
Compression is on by default.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<strong>Note:</strong> the Zlib extension is required for this feature. If not present, compression
|
||||||
|
will be turned off.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>compress</code></dt>
|
||||||
|
<dd>
|
||||||
|
Boolean indicating if compression must be enabled.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
34
application/third_party/fpdf/doc/setcreator.htm
vendored
Normal file
34
application/third_party/fpdf/doc/setcreator.htm
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetCreator</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetCreator</h1>
|
||||||
|
<code>SetCreator(<b>string</b> creator [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the creator of the document. This is typically the name of the application that
|
||||||
|
generates the PDF.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>creator</code></dt>
|
||||||
|
<dd>
|
||||||
|
The name of the creator.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a>,
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a>,
|
||||||
|
<a href="setsubject.htm">SetSubject</a>,
|
||||||
|
<a href="settitle.htm">SetTitle</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
45
application/third_party/fpdf/doc/setdisplaymode.htm
vendored
Normal file
45
application/third_party/fpdf/doc/setdisplaymode.htm
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetDisplayMode</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetDisplayMode</h1>
|
||||||
|
<code>SetDisplayMode(<b>mixed</b> zoom [, <b>string</b> layout])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be
|
||||||
|
displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a
|
||||||
|
specific zooming factor or use viewer default (configured in the Preferences menu of Adobe Reader).
|
||||||
|
The page layout can be specified too: single at once, continuous display, two columns or viewer
|
||||||
|
default.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>zoom</code></dt>
|
||||||
|
<dd>
|
||||||
|
The zoom to use. It can be one of the following string values:
|
||||||
|
<ul>
|
||||||
|
<li><code>fullpage</code>: displays the entire page on screen</li>
|
||||||
|
<li><code>fullwidth</code>: uses maximum width of window</li>
|
||||||
|
<li><code>real</code>: uses real size (equivalent to 100% zoom)</li>
|
||||||
|
<li><code>default</code>: uses viewer default mode</li>
|
||||||
|
</ul>
|
||||||
|
or a number indicating the zooming factor to use.
|
||||||
|
</dd>
|
||||||
|
<dt><code>layout</code></dt>
|
||||||
|
<dd>
|
||||||
|
The page layout. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>single</code>: displays one page at once</li>
|
||||||
|
<li><code>continuous</code>: displays pages continuously</li>
|
||||||
|
<li><code>two</code>: displays two pages on two columns</li>
|
||||||
|
<li><code>default</code>: uses viewer default mode</li>
|
||||||
|
</ul>
|
||||||
|
Default value is <code>default</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
41
application/third_party/fpdf/doc/setdrawcolor.htm
vendored
Normal file
41
application/third_party/fpdf/doc/setdrawcolor.htm
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetDrawColor</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetDrawColor</h1>
|
||||||
|
<code>SetDrawColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the color used for all drawing operations (lines, rectangles and cell borders). It
|
||||||
|
can be expressed in RGB components or gray scale. The method can be called before the first
|
||||||
|
page is created and the value is retained from page to page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>r</code></dt>
|
||||||
|
<dd>
|
||||||
|
If <code>g</code> et <code>b</code> are given, red component; if not, indicates the gray level.
|
||||||
|
Value between 0 and 255.
|
||||||
|
</dd>
|
||||||
|
<dt><code>g</code></dt>
|
||||||
|
<dd>
|
||||||
|
Green component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
<dt><code>b</code></dt>
|
||||||
|
<dd>
|
||||||
|
Blue component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="line.htm">Line</a>,
|
||||||
|
<a href="rect.htm">Rect</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
40
application/third_party/fpdf/doc/setfillcolor.htm
vendored
Normal file
40
application/third_party/fpdf/doc/setfillcolor.htm
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetFillColor</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetFillColor</h1>
|
||||||
|
<code>SetFillColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the color used for all filling operations (filled rectangles and cell backgrounds).
|
||||||
|
It can be expressed in RGB components or gray scale. The method can be called before the first
|
||||||
|
page is created and the value is retained from page to page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>r</code></dt>
|
||||||
|
<dd>
|
||||||
|
If <code>g</code> and <code>b</code> are given, red component; if not, indicates the gray level.
|
||||||
|
Value between 0 and 255.
|
||||||
|
</dd>
|
||||||
|
<dt><code>g</code></dt>
|
||||||
|
<dd>
|
||||||
|
Green component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
<dt><code>b</code></dt>
|
||||||
|
<dd>
|
||||||
|
Blue component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="rect.htm">Rect</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
92
application/third_party/fpdf/doc/setfont.htm
vendored
Normal file
92
application/third_party/fpdf/doc/setfont.htm
vendored
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetFont</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetFont</h1>
|
||||||
|
<code>SetFont(<b>string</b> family [, <b>string</b> style [, <b>float</b> size]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Sets the font used to print character strings. It is mandatory to call this method
|
||||||
|
at least once before printing text or the resulting document would not be valid.
|
||||||
|
<br>
|
||||||
|
The font can be either a standard one or a font added via the AddFont() method. Standard fonts
|
||||||
|
use the Windows encoding cp1252 (Western Europe).
|
||||||
|
<br>
|
||||||
|
The method can be called before the first page is created and the font is kept from page
|
||||||
|
to page.
|
||||||
|
<br>
|
||||||
|
If you just wish to change the current font size, it is simpler to call SetFontSize().
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<strong>Note:</strong> the font definition files must be accessible. They are searched successively in:
|
||||||
|
<ul>
|
||||||
|
<li>The directory defined by the <code>FPDF_FONTPATH</code> constant (if this constant is defined)</li>
|
||||||
|
<li>The <code>font</code> directory located in the same directory as <code>fpdf.php</code> (if it exists)</li>
|
||||||
|
<li>The directories accessible through <code>include()</code></li>
|
||||||
|
</ul>
|
||||||
|
Example using <code>FPDF_FONTPATH</code>:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>define('FPDF_FONTPATH','/home/www/font');
|
||||||
|
require('fpdf.php');</code></pre>
|
||||||
|
</div>
|
||||||
|
If the file corresponding to the requested font is not found, the error "Could not include font
|
||||||
|
definition file" is raised.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>family</code></dt>
|
||||||
|
<dd>
|
||||||
|
Family font. It can be either a name defined by AddFont() or one of the standard families (case
|
||||||
|
insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>Courier</code> (fixed-width)</li>
|
||||||
|
<li><code>Helvetica</code> or <code>Arial</code> (synonymous; sans serif)</li>
|
||||||
|
<li><code>Times</code> (serif)</li>
|
||||||
|
<li><code>Symbol</code> (symbolic)</li>
|
||||||
|
<li><code>ZapfDingbats</code> (symbolic)</li>
|
||||||
|
</ul>
|
||||||
|
It is also possible to pass an empty string. In that case, the current family is kept.
|
||||||
|
</dd>
|
||||||
|
<dt><code>style</code></dt>
|
||||||
|
<dd>
|
||||||
|
Font style. Possible values are (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li>empty string: regular</li>
|
||||||
|
<li><code>B</code>: bold</li>
|
||||||
|
<li><code>I</code>: italic</li>
|
||||||
|
<li><code>U</code>: underline</li>
|
||||||
|
</ul>
|
||||||
|
or any combination. The default value is regular.
|
||||||
|
Bold and italic styles do not apply to <code>Symbol</code> and <code>ZapfDingbats</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>size</code></dt>
|
||||||
|
<dd>
|
||||||
|
Font size in points.
|
||||||
|
<br>
|
||||||
|
The default value is the current size. If no size has been specified since the beginning of
|
||||||
|
the document, the value taken is 12.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>// Times regular 12
|
||||||
|
$pdf->SetFont('Times');
|
||||||
|
// Arial bold 14
|
||||||
|
$pdf->SetFont('Arial','B',14);
|
||||||
|
// Removes bold
|
||||||
|
$pdf->SetFont('');
|
||||||
|
// Times bold, italic and underlined 14
|
||||||
|
$pdf->SetFont('Times','BIU');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="addfont.htm">AddFont</a>,
|
||||||
|
<a href="setfontsize.htm">SetFontSize</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="write.htm">Write</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
25
application/third_party/fpdf/doc/setfontsize.htm
vendored
Normal file
25
application/third_party/fpdf/doc/setfontsize.htm
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetFontSize</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetFontSize</h1>
|
||||||
|
<code>SetFontSize(<b>float</b> size)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the size of the current font.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>size</code></dt>
|
||||||
|
<dd>
|
||||||
|
The size (in points).
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
application/third_party/fpdf/doc/setkeywords.htm
vendored
Normal file
33
application/third_party/fpdf/doc/setkeywords.htm
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetKeywords</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetKeywords</h1>
|
||||||
|
<code>SetKeywords(<b>string</b> keywords [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>keywords</code></dt>
|
||||||
|
<dd>
|
||||||
|
The list of keywords.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a>,
|
||||||
|
<a href="setcreator.htm">SetCreator</a>,
|
||||||
|
<a href="setsubject.htm">SetSubject</a>,
|
||||||
|
<a href="settitle.htm">SetTitle</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
30
application/third_party/fpdf/doc/setleftmargin.htm
vendored
Normal file
30
application/third_party/fpdf/doc/setleftmargin.htm
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetLeftMargin</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetLeftMargin</h1>
|
||||||
|
<code>SetLeftMargin(<b>float</b> margin)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the left margin. The method can be called before creating the first page.
|
||||||
|
<br>
|
||||||
|
If the current abscissa gets out of page, it is brought back to the margin.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>margin</code></dt>
|
||||||
|
<dd>
|
||||||
|
The margin.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="settopmargin.htm">SetTopMargin</a>,
|
||||||
|
<a href="setrightmargin.htm">SetRightMargin</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>,
|
||||||
|
<a href="setmargins.htm">SetMargins</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
29
application/third_party/fpdf/doc/setlinewidth.htm
vendored
Normal file
29
application/third_party/fpdf/doc/setlinewidth.htm
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetLineWidth</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetLineWidth</h1>
|
||||||
|
<code>SetLineWidth(<b>float</b> width)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the line width. By default, the value equals 0.2 mm. The method can be called before
|
||||||
|
the first page is created and the value is retained from page to page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>width</code></dt>
|
||||||
|
<dd>
|
||||||
|
The width.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="line.htm">Line</a>,
|
||||||
|
<a href="rect.htm">Rect</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
34
application/third_party/fpdf/doc/setlink.htm
vendored
Normal file
34
application/third_party/fpdf/doc/setlink.htm
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetLink</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetLink</h1>
|
||||||
|
<code>SetLink(<b>int</b> link [, <b>float</b> y [, <b>int</b> page]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the page and position a link points to.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
The link identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of target position; <code>-1</code> indicates the current position.
|
||||||
|
The default value is <code>0</code> (top of page).
|
||||||
|
</dd>
|
||||||
|
<dt><code>page</code></dt>
|
||||||
|
<dd>
|
||||||
|
Number of target page; <code>-1</code> indicates the current page. This is the default value.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="addlink.htm">AddLink</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
37
application/third_party/fpdf/doc/setmargins.htm
vendored
Normal file
37
application/third_party/fpdf/doc/setmargins.htm
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetMargins</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetMargins</h1>
|
||||||
|
<code>SetMargins(<b>float</b> left, <b>float</b> top [, <b>float</b> right])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change
|
||||||
|
them.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>left</code></dt>
|
||||||
|
<dd>
|
||||||
|
Left margin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>top</code></dt>
|
||||||
|
<dd>
|
||||||
|
Top margin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>right</code></dt>
|
||||||
|
<dd>
|
||||||
|
Right margin. Default value is the left one.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setleftmargin.htm">SetLeftMargin</a>,
|
||||||
|
<a href="settopmargin.htm">SetTopMargin</a>,
|
||||||
|
<a href="setrightmargin.htm">SetRightMargin</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
28
application/third_party/fpdf/doc/setrightmargin.htm
vendored
Normal file
28
application/third_party/fpdf/doc/setrightmargin.htm
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetRightMargin</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetRightMargin</h1>
|
||||||
|
<code>SetRightMargin(<b>float</b> margin)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the right margin. The method can be called before creating the first page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>margin</code></dt>
|
||||||
|
<dd>
|
||||||
|
The margin.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setleftmargin.htm">SetLeftMargin</a>,
|
||||||
|
<a href="settopmargin.htm">SetTopMargin</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>,
|
||||||
|
<a href="setmargins.htm">SetMargins</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
application/third_party/fpdf/doc/setsubject.htm
vendored
Normal file
33
application/third_party/fpdf/doc/setsubject.htm
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetSubject</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetSubject</h1>
|
||||||
|
<code>SetSubject(<b>string</b> subject [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the subject of the document.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>subject</code></dt>
|
||||||
|
<dd>
|
||||||
|
The subject.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a>,
|
||||||
|
<a href="setcreator.htm">SetCreator</a>,
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a>,
|
||||||
|
<a href="settitle.htm">SetTitle</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
40
application/third_party/fpdf/doc/settextcolor.htm
vendored
Normal file
40
application/third_party/fpdf/doc/settextcolor.htm
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetTextColor</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetTextColor</h1>
|
||||||
|
<code>SetTextColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the color used for text. It can be expressed in RGB components or gray scale. The
|
||||||
|
method can be called before the first page is created and the value is retained from page to
|
||||||
|
page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>r</code></dt>
|
||||||
|
<dd>
|
||||||
|
If <code>g</code> et <code>b</code> are given, red component; if not, indicates the gray level.
|
||||||
|
Value between 0 and 255.
|
||||||
|
</dd>
|
||||||
|
<dt><code>g</code></dt>
|
||||||
|
<dd>
|
||||||
|
Green component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
<dt><code>b</code></dt>
|
||||||
|
<dd>
|
||||||
|
Blue component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>,
|
||||||
|
<a href="text.htm">Text</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
application/third_party/fpdf/doc/settitle.htm
vendored
Normal file
33
application/third_party/fpdf/doc/settitle.htm
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetTitle</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetTitle</h1>
|
||||||
|
<code>SetTitle(<b>string</b> title [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the title of the document.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>title</code></dt>
|
||||||
|
<dd>
|
||||||
|
The title.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a>,
|
||||||
|
<a href="setcreator.htm">SetCreator</a>,
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a>,
|
||||||
|
<a href="setsubject.htm">SetSubject</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
28
application/third_party/fpdf/doc/settopmargin.htm
vendored
Normal file
28
application/third_party/fpdf/doc/settopmargin.htm
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetTopMargin</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetTopMargin</h1>
|
||||||
|
<code>SetTopMargin(<b>float</b> margin)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the top margin. The method can be called before creating the first page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>margin</code></dt>
|
||||||
|
<dd>
|
||||||
|
The margin.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setleftmargin.htm">SetLeftMargin</a>,
|
||||||
|
<a href="setrightmargin.htm">SetRightMargin</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>,
|
||||||
|
<a href="setmargins.htm">SetMargins</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
29
application/third_party/fpdf/doc/setx.htm
vendored
Normal file
29
application/third_party/fpdf/doc/setx.htm
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetX</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetX</h1>
|
||||||
|
<code>SetX(<b>float</b> x)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the abscissa of the current position. If the passed value is negative, it is relative
|
||||||
|
to the right of the page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
The value of the abscissa.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="getx.htm">GetX</a>,
|
||||||
|
<a href="gety.htm">GetY</a>,
|
||||||
|
<a href="sety.htm">SetY</a>,
|
||||||
|
<a href="setxy.htm">SetXY</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
31
application/third_party/fpdf/doc/setxy.htm
vendored
Normal file
31
application/third_party/fpdf/doc/setxy.htm
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetXY</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetXY</h1>
|
||||||
|
<code>SetXY(<b>float</b> x, <b>float</b> y)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the abscissa and ordinate of the current position. If the passed values are negative,
|
||||||
|
they are relative respectively to the right and bottom of the page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
The value of the abscissa.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
The value of the ordinate.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setx.htm">SetX</a>,
|
||||||
|
<a href="sety.htm">SetY</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
application/third_party/fpdf/doc/sety.htm
vendored
Normal file
33
application/third_party/fpdf/doc/sety.htm
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetY</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetY</h1>
|
||||||
|
<code>SetY(<b>float</b> y [, <b>boolean</b> resetX])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Sets the ordinate and optionally moves the current abscissa back to the left margin. If the value
|
||||||
|
is negative, it is relative to the bottom of the page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
The value of the ordinate.
|
||||||
|
</dd>
|
||||||
|
<dt><code>resetX</code></dt>
|
||||||
|
<dd>
|
||||||
|
Whether to reset the abscissa. Default value: <code>true</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="getx.htm">GetX</a>,
|
||||||
|
<a href="gety.htm">GetY</a>,
|
||||||
|
<a href="setx.htm">SetX</a>,
|
||||||
|
<a href="setxy.htm">SetXY</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
39
application/third_party/fpdf/doc/text.htm
vendored
Normal file
39
application/third_party/fpdf/doc/text.htm
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Text</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Text</h1>
|
||||||
|
<code>Text(<b>float</b> x, <b>float</b> y, <b>string</b> txt)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Prints a character string. The origin is on the left of the first character, on the baseline.
|
||||||
|
This method allows to place a string precisely on the page, but it is usually easier to use
|
||||||
|
Cell(), MultiCell() or Write() which are the standard methods to print text.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of the origin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of the origin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>txt</code></dt>
|
||||||
|
<dd>
|
||||||
|
String to print.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="write.htm">Write</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
51
application/third_party/fpdf/doc/write.htm
vendored
Normal file
51
application/third_party/fpdf/doc/write.htm
vendored
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Write</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Write</h1>
|
||||||
|
<code>Write(<b>float</b> h, <b>string</b> txt [, <b>mixed</b> link])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method prints text from the current position. When the right margin is reached (or the \n
|
||||||
|
character is met) a line break occurs and text continues from the left margin. Upon method exit,
|
||||||
|
the current position is left just at the end of the text.
|
||||||
|
<br>
|
||||||
|
It is possible to put a link on the text.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Line height.
|
||||||
|
</dd>
|
||||||
|
<dt><code>txt</code></dt>
|
||||||
|
<dd>
|
||||||
|
String to print.
|
||||||
|
</dd>
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
URL or identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>// Begin with regular font
|
||||||
|
$pdf->SetFont('Arial','',14);
|
||||||
|
$pdf->Write(5,'Visit ');
|
||||||
|
// Then put a blue underlined link
|
||||||
|
$pdf->SetTextColor(0,0,255);
|
||||||
|
$pdf->SetFont('','U');
|
||||||
|
$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="addlink.htm">AddLink</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
10
application/third_party/fpdf/font/courier.php
vendored
Normal file
10
application/third_party/fpdf/font/courier.php
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Courier';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
for($i=0;$i<=255;$i++)
|
||||||
|
$cw[chr($i)] = 600;
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
10
application/third_party/fpdf/font/courierb.php
vendored
Normal file
10
application/third_party/fpdf/font/courierb.php
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Courier-Bold';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
for($i=0;$i<=255;$i++)
|
||||||
|
$cw[chr($i)] = 600;
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
10
application/third_party/fpdf/font/courierbi.php
vendored
Normal file
10
application/third_party/fpdf/font/courierbi.php
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Courier-BoldOblique';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
for($i=0;$i<=255;$i++)
|
||||||
|
$cw[chr($i)] = 600;
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
10
application/third_party/fpdf/font/courieri.php
vendored
Normal file
10
application/third_party/fpdf/font/courieri.php
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Courier-Oblique';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
for($i=0;$i<=255;$i++)
|
||||||
|
$cw[chr($i)] = 600;
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
21
application/third_party/fpdf/font/helvetica.php
vendored
Normal file
21
application/third_party/fpdf/font/helvetica.php
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Helvetica';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
$cw = array(
|
||||||
|
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
||||||
|
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
||||||
|
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
|
||||||
|
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
||||||
|
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
|
||||||
|
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
|
||||||
|
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||||
|
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
||||||
|
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
||||||
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
|
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
||||||
|
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
21
application/third_party/fpdf/font/helveticab.php
vendored
Normal file
21
application/third_party/fpdf/font/helveticab.php
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Helvetica-Bold';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
$cw = array(
|
||||||
|
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
||||||
|
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
||||||
|
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
|
||||||
|
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
||||||
|
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
|
||||||
|
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
|
||||||
|
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||||
|
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
||||||
|
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
||||||
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
|
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
||||||
|
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
21
application/third_party/fpdf/font/helveticabi.php
vendored
Normal file
21
application/third_party/fpdf/font/helveticabi.php
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Helvetica-BoldOblique';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
$cw = array(
|
||||||
|
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
||||||
|
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
||||||
|
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
|
||||||
|
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
||||||
|
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
|
||||||
|
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
|
||||||
|
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||||
|
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
||||||
|
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
||||||
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
|
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
||||||
|
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
21
application/third_party/fpdf/font/helveticai.php
vendored
Normal file
21
application/third_party/fpdf/font/helveticai.php
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Helvetica-Oblique';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
$cw = array(
|
||||||
|
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
||||||
|
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
||||||
|
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
|
||||||
|
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
||||||
|
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
|
||||||
|
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
|
||||||
|
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||||
|
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
||||||
|
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
||||||
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
|
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
||||||
|
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
20
application/third_party/fpdf/font/symbol.php
vendored
Normal file
20
application/third_party/fpdf/font/symbol.php
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Symbol';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
$cw = array(
|
||||||
|
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||||
|
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
|
||||||
|
','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
|
||||||
|
'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
|
||||||
|
'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
|
||||||
|
'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
|
||||||
|
chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
|
||||||
|
chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
|
||||||
|
chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
|
||||||
|
chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
|
||||||
|
chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
|
||||||
|
chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
|
||||||
|
$uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9));
|
||||||
|
?>
|
||||||
21
application/third_party/fpdf/font/times.php
vendored
Normal file
21
application/third_party/fpdf/font/times.php
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Times-Roman';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
$cw = array(
|
||||||
|
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||||
|
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
|
||||||
|
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
|
||||||
|
'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
|
||||||
|
'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
|
||||||
|
'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
||||||
|
chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
|
||||||
|
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
|
||||||
|
chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
||||||
|
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
|
chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
||||||
|
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
21
application/third_party/fpdf/font/timesb.php
vendored
Normal file
21
application/third_party/fpdf/font/timesb.php
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Times-Bold';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
$cw = array(
|
||||||
|
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||||
|
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
|
||||||
|
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722,
|
||||||
|
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000,
|
||||||
|
'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833,
|
||||||
|
'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
||||||
|
chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||||
|
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333,
|
||||||
|
chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
||||||
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
|
chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
||||||
|
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
21
application/third_party/fpdf/font/timesbi.php
vendored
Normal file
21
application/third_party/fpdf/font/timesbi.php
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
$type = 'Core';
|
||||||
|
$name = 'Times-BoldItalic';
|
||||||
|
$up = -100;
|
||||||
|
$ut = 50;
|
||||||
|
$cw = array(
|
||||||
|
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
||||||
|
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
|
||||||
|
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
|
||||||
|
'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
|
||||||
|
'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
|
||||||
|
'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
||||||
|
chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
||||||
|
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
|
||||||
|
chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
||||||
|
chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
|
chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
||||||
|
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
|
?>
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user