统计分析平台

hotfix/paypal-note
尹诚诚 3 years ago
parent 2ac1ef71d4
commit 625626c9c1

204
e.php

@ -0,0 +1,204 @@
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code below
*
*/
define('ENVIRONMENT', 'development');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
break;
case 'testing':
case 'production':
error_reporting(0);
break;
default:
exit('The application environment is not set correctly.');
}
}
/*
*---------------------------------------------------------------
* SYSTEM FOLDER NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" folder.
* Include the path if the folder is not in the same directory
* as this file.
*
*/
$system_path = '../system';
/*
*---------------------------------------------------------------
* APPLICATION FOLDER NAME
*---------------------------------------------------------------
*
* If you want this front controller to use a different "application"
* folder then the default one you can set its name here. The folder
* can also be renamed or relocated anywhere on your server. If
* you do, use a full server path. For more info please see the user guide:
* http://codeigniter.com/user_guide/general/managing_apps.html
*
* NO TRAILING SLASH!
*
*/
$application_folder = 'echarts';
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*
* Normally you will set your default controller in the routes.php file.
* You can, however, force a custom routing by hard-coding a
* specific controller class/function here. For most applications, you
* WILL NOT set your routing here, but it's an option for those
* special instances where you might want to override the standard
* routing in a specific front controller that shares a common CI installation.
*
* IMPORTANT: If you set the routing here, NO OTHER controller will be
* callable. In essence, this preference limits your application to ONE
* specific controller. Leave the function name blank if you need
* to call functions dynamically via the URI.
*
* Un-comment the $routing array below to use this feature
*
*/
// The directory name, relative to the "controllers" folder. Leave blank
// if your controller is not in a sub-folder within the "controllers" folder
// $routing['directory'] = '';
// The controller class file name. Example: Mycontroller.php
// $routing['controller'] = '';
// The controller function you wish to be called.
// $routing['function'] = '';
/*
* -------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* -------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to the
* config class when initialized. This allows you to set custom config
* items or override any default config values found in the config.php file.
* This can be handy as it permits you to share one application between
* multiple front controller files, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*
*/
// $assign_to_config['name_of_config_item'] = 'value of config item';
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE
// --------------------------------------------------------------------
/*
* ---------------------------------------------------------------
* Resolve the system path for increased reliability
* ---------------------------------------------------------------
*/
// Set the current directory correctly for CLI requests
if (defined('STDIN'))
{
chdir(dirname(__FILE__));
}
if (realpath($system_path) !== FALSE)
{
$system_path = realpath($system_path).'/';
}
// ensure there's a trailing slash
$system_path = rtrim($system_path, '/').'/';
// Is the system path correct?
if ( ! is_dir($system_path))
{
exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));
}
/*
* -------------------------------------------------------------------
* Now that we know the path, set the main path constants
* -------------------------------------------------------------------
*/
// The name of THIS file
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
// The PHP file extension
define('EXT', '.php');
// Path to the system folder
define('BASEPATH', str_replace("\\", "/", $system_path));
// Path to the front controller (this file)
define('FCPATH', str_replace(SELF, '', __FILE__));
// Name of the "system folder"
define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
// The path to the "application" folder
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ( ! is_dir(BASEPATH.$application_folder.'/'))
{
exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*
*/
require_once BASEPATH.'core/CodeIgniter'.EXT;
/* End of file index.php */
/* Location: ./index.php */

@ -0,0 +1 @@
Deny from all

@ -0,0 +1,116 @@
<?php if ( ! defined('BASEPATH')) 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. Helper files
| 4. Custom config files
| 5. Language files
| 6. Models
|
*/
/*
| -------------------------------------------------------------------
| Auto-load Packges
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array(APPPATH.'third_party');
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your application/libraries folder.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/
$autoload['libraries'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
*/
$autoload['helper'] = array('url');
/*
| -------------------------------------------------------------------
| Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/
$autoload['config'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Language files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['language'] = array('lang1', 'lang2');
|
| NOTE: Do not include the "_lang" part of your file. For example
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/
$autoload['language'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Models
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('model1', 'model2');
|
*/
$autoload['model'] = array();
/* End of file autoload.php */
/* Location: ./application/config/autoload.php */

@ -0,0 +1,362 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
$config['base_url'] = '';
/*
|--------------------------------------------------------------------------
| 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'] = 'e.php';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'AUTO' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'PATH_INFO' Uses the PATH_INFO
| 'QUERY_STRING' Uses the QUERY_STRING
| 'REQUEST_URI' Uses the REQUEST_URI
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol'] = 'AUTO';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://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.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/core_classes.html
| http://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify with a regular expression 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.
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| 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/ folder. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| 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';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| system/cache/ folder. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Session class you
| MUST set an encryption key. See the user guide for info.
|
*/
$config['encryption_key'] = '';
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_cookie_name' = the name you want for the cookie
| 'sess_expiration' = the number of SECONDS you want the session to last.
| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
| 'sess_expire_on_close' = Whether to cause the session to expire automatically
| when the browser window is closed
| 'sess_encrypt_cookie' = Whether to encrypt the cookie
| 'sess_use_database' = Whether to save the session data to a database
| 'sess_table_name' = The name of the session database table
| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a 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' = Cookies will only be set if a secure HTTPS connection exists.
|
*/
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";
$config['cookie_secure'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
*/
$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.
*/
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
/*
|--------------------------------------------------------------------------
| 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.
|
| 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 'gmt'. This pref tells the system whether to use
| your server's local time as the master 'now' reference, or convert it to
| GMT. See the 'date helper' page of the user guide for information
| regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy IP
| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
| header in order to properly identify the visitor's IP address.
| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
|
*/
$config['proxy_ips'] = '';
/* End of file config.php */
/* Location: ./application/config/config.php */

@ -0,0 +1,41 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
define('FOPEN_READ', 'rb');
define('FOPEN_READ_WRITE', 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE', 'ab');
define('FOPEN_READ_WRITE_CREATE', 'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/* End of file constants.php */
/* Location: ./application/config/constants.php */

@ -0,0 +1,62 @@
<?php if ( ! defined('BASEPATH')) 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
| -------------------------------------------------------------------
|
| ['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 type. ie: mysql. Currently supported:
mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
| ['dbprefix'] You can add an optional prefix, which will be added
| to the table name when using the Active Record 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
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
| ['autoinit'] Whether or not to automatically initialize the database.
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
|
| The $active_group variable lets you choose which connection group to
| make active. By default there is only one group (the 'default' group).
|
| The $active_record variables lets you determine whether or not to load
| the active record class
*/
$active_group = 'default';
$active_record = TRUE;
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = '';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
/* End of file database.php */
/* Location: ./application/config/database.php */

@ -0,0 +1,15 @@
<?php if ( ! defined('BASEPATH')) 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">',
'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">'
);
/* End of file doctypes.php */
/* Location: ./application/config/doctypes.php */

@ -0,0 +1,64 @@
<?php if ( ! defined('BASEPATH')) 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',
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
'/ç|ć|ĉ|ċ|č/' => 'c',
'/Ð|Ď|Đ/' => 'D',
'/ð|ď|đ/' => 'd',
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E',
'/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e',
'/Ĝ|Ğ|Ġ|Ģ/' => 'G',
'/ĝ|ğ|ġ|ģ/' => 'g',
'/Ĥ|Ħ/' => 'H',
'/ĥ|ħ/' => 'h',
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I',
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i',
'/Ĵ/' => 'J',
'/ĵ/' => 'j',
'/Ķ/' => 'K',
'/ķ/' => 'k',
'/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L',
'/ĺ|ļ|ľ|ŀ|ł/' => 'l',
'/Ñ|Ń|Ņ|Ň/' => 'N',
'/ñ|ń|ņ|ň|ʼn/' => 'n',
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O',
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o',
'/Ŕ|Ŗ|Ř/' => 'R',
'/ŕ|ŗ|ř/' => 'r',
'/Ś|Ŝ|Ş|Š/' => 'S',
'/ś|ŝ|ş|š|ſ/' => 's',
'/Ţ|Ť|Ŧ/' => 'T',
'/ţ|ť|ŧ/' => 't',
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U',
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u',
'/Ý|Ÿ|Ŷ/' => 'Y',
'/ý|ÿ|ŷ/' => 'y',
'/Ŵ/' => 'W',
'/ŵ/' => 'w',
'/Ź|Ż|Ž/' => 'Z',
'/ź|ż|ž/' => 'z',
'/Æ|Ǽ/' => 'AE',
'/ß/'=> 'ss',
'/IJ/' => 'IJ',
'/ij/' => 'ij',
'/Œ/' => 'OE',
'/ƒ/' => 'f'
);
/* End of file foreign_chars.php */
/* Location: ./application/config/foreign_chars.php */

@ -0,0 +1,16 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files. Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/hooks.html
|
*/
/* End of file hooks.php */
/* Location: ./application/config/hooks.php */

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,106 @@
<?php if ( ! defined('BASEPATH')) 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.
|
*/
$mimes = array( 'hqx' => 'application/mac-binhex40',
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
'bin' => 'application/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' => 'application/x-photoshop',
'so' => 'application/octet-stream',
'sea' => 'application/octet-stream',
'dll' => 'application/octet-stream',
'oda' => 'application/oda',
'pdf' => array('application/pdf', 'application/x-download'),
'ai' => 'application/postscript',
'eps' => 'application/postscript',
'ps' => 'application/postscript',
'smi' => 'application/smil',
'smil' => 'application/smil',
'mif' => 'application/vnd.mif',
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
'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',
'php' => 'application/x-httpd-php',
'php4' => 'application/x-httpd-php',
'php3' => 'application/x-httpd-php',
'phtml' => 'application/x-httpd-php',
'phps' => 'application/x-httpd-php-source',
'js' => 'application/x-javascript',
'swf' => 'application/x-shockwave-flash',
'sit' => 'application/x-stuffit',
'tar' => 'application/x-tar',
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
'xhtml' => 'application/xhtml+xml',
'xht' => 'application/xhtml+xml',
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
'mid' => 'audio/midi',
'midi' => 'audio/midi',
'mpga' => 'audio/mpeg',
'mp2' => 'audio/mpeg',
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
'aif' => 'audio/x-aiff',
'aiff' => 'audio/x-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' => 'audio/x-wav',
'bmp' => 'image/bmp',
'gif' => 'image/gif',
'jpeg' => array('image/jpeg', 'image/pjpeg'),
'jpg' => array('image/jpeg', 'image/pjpeg'),
'jpe' => array('image/jpeg', 'image/pjpeg'),
'png' => array('image/png', 'image/x-png'),
'tiff' => 'image/tiff',
'tif' => 'image/tiff',
'css' => 'text/css',
'html' => 'text/html',
'htm' => 'text/html',
'shtml' => 'text/html',
'txt' => 'text/plain',
'text' => 'text/plain',
'log' => array('text/plain', 'text/x-log'),
'rtx' => 'text/richtext',
'rtf' => 'text/rtf',
'xml' => 'text/xml',
'xsl' => 'text/xml',
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'avi' => 'video/x-msvideo',
'movie' => 'video/x-sgi-movie',
'doc' => 'application/msword',
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'word' => array('application/msword', 'application/octet-stream'),
'xl' => 'application/excel',
'eml' => 'message/rfc822',
'json' => array('application/json', 'text/json')
);
/* End of file mimes.php */
/* Location: ./application/config/mimes.php */

@ -0,0 +1,17 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Profiler Sections
| -------------------------------------------------------------------------
| This file lets you determine whether or not various sections of Profiler
| data are displayed when the Profiler is enabled.
| Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/profiling.html
|
*/
/* End of file profiler.php */
/* Location: ./application/config/profiler.php */

@ -0,0 +1,46 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two 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 what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/
$route['default_controller'] = "welcome";
$route['404_override'] = '';
/* End of file routes.php */
/* Location: ./application/config/routes.php */

@ -0,0 +1,66 @@
<?php if ( ! defined('BASEPATH')) 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 simileys. For example:
| :-) and :) use the same image replacement.
|
| Please see user guide for more info:
| http://codeigniter.com/user_guide/helpers/smiley_helper.html
|
*/
$smileys = array(
// smiley image name width height alt
':-)' => array('grin.gif', '19', '19', 'grin'),
':lol:' => array('lol.gif', '19', '19', 'LOL'),
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
':)' => array('smile.gif', '19', '19', 'smile'),
';-)' => array('wink.gif', '19', '19', 'wink'),
';)' => array('wink.gif', '19', '19', 'wink'),
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
':-S' => array('confused.gif', '19', '19', 'confused'),
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
':long:' => array('longface.gif', '19', '19', 'long face'),
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
':down:' => array('downer.gif', '19', '19', 'downer'),
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
':sick:' => array('sick.gif', '19', '19', 'sick'),
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
'>:(' => array('mad.gif', '19', '19', 'mad'),
':mad:' => array('mad.gif', '19', '19', 'mad'),
'>:-(' => array('angry.gif', '19', '19', 'angry'),
':angry:' => array('angry.gif', '19', '19', 'angry'),
':zip:' => array('zip.gif', '19', '19', 'zipper'),
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
':snake:' => array('snake.gif', '19', '19', 'snake'),
':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'),
':question:' => array('question.gif', '19', '19', 'question') // no comma after last item
);
/* End of file smileys.php */
/* Location: ./application/config/smileys.php */

@ -0,0 +1,178 @@
<?php if ( ! defined('BASEPATH')) 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 6.0' => 'Windows Longhorn',
'windows nt 5.2' => 'Windows 2003',
'windows nt 5.0' => 'Windows 2000',
'windows nt 5.1' => 'Windows XP',
'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' => 'Unknown Windows OS',
'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'
);
// 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(
'Flock' => 'Flock',
'Chrome' => 'Chrome',
'Opera' => 'Opera',
'MSIE' => 'Internet Explorer',
'Internet Explorer' => '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'
);
$mobiles = array(
// legacy array, old values commented out
'mobileexplorer' => 'Mobile Explorer',
// 'openwave' => 'Open Wave',
// 'opera mini' => 'Opera Mini',
// 'operamini' => 'Opera Mini',
// 'elaine' => 'Palm',
'palmsource' => 'Palm',
// 'digital paths' => 'Palm',
// 'avantgo' => 'Avantgo',
// 'xiino' => 'Xiino',
'palmscape' => 'Palmscape',
// 'nokia' => 'Nokia',
// 'ericsson' => 'Ericsson',
// 'blackberry' => 'BlackBerry',
// 'motorola' => 'Motorola'
// Phones and Manufacturers
'motorola' => "Motorola",
'nokia' => "Nokia",
'palm' => "Palm",
'iphone' => "Apple iPhone",
'ipad' => "iPad",
'ipod' => "Apple iPod Touch",
'sony' => "Sony Ericsson",
'ericsson' => "Sony Ericsson",
'blackberry' => "BlackBerry",
'cocoon' => "O2 Cocoon",
'blazer' => "Treo",
'lg' => "LG",
'amoi' => "Amoi",
'xda' => "XDA",
'mda' => "MDA",
'vario' => "Vario",
'htc' => "HTC",
'samsung' => "Samsung",
'sharp' => "Sharp",
'sie-' => "Siemens",
'alcatel' => "Alcatel",
'benq' => "BenQ",
'ipaq' => "HP iPaq",
'mot-' => "Motorola",
'playstation portable' => "PlayStation Portable",
'hiptop' => "Danger Hiptop",
'nec-' => "NEC",
'panasonic' => "Panasonic",
'philips' => "Philips",
'sagem' => "Sagem",
'sanyo' => "Sanyo",
'spv' => "SPV",
'zte' => "ZTE",
'sendo' => "Sendo",
// Operating Systems
'symbian' => "Symbian",
'SymbianOS' => "SymbianOS",
'elaine' => "Palm",
'palm' => "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",
// 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',
'slurp' => 'Inktomi Slurp',
'yahoo' => 'Yahoo',
'askjeeves' => 'AskJeeves',
'fastcrawler' => 'FastCrawler',
'infoseek' => 'InfoSeek Robot 1.0',
'lycos' => 'Lycos'
);
/* End of file user_agents.php */
/* Location: ./application/config/user_agents.php */

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,86 @@
<?php if (!defined('BASEPATH')) 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 http://codeigniter.com/user_guide/general/urls.html
*/
public function index()
{
$this->load->view('welcome_message');
}
public function dashboard()
{
$data = array();
//$data['boards'][] = $this->load->view('echarts/test', $data, true);
$data['boards'][] = $this->load->view('echarts/potential_customers', $data, true);
$data['boards'][] = $this->load->view('echarts/regular_customers', $data, true);
$data['boards'][] = $this->load->view('echarts/inchina_customers', $data, true);
$data['boards'][] = $this->load->view('echarts/mobile_deal', $data, true);
$this->load->view('echarts/dashboard', $data);
}
public function show_me_the_data()
{
//转发到后端的HT2.0服务器解决js跨域问题和隐藏后端服务器
$url = $this->input->post('url');
echo $this->GET_HTTP('https://p9axztuwd7x8a7.mycht.cn' . $url);
}
function GET_HTTP($url, $data = '', $method = 'GET')
{
$curl = curl_init(); // 启动一个CURL会话
curl_setopt($curl, CURLOPT_URL, $url); // 要访问的地址
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); // 对认证证书来源的检查
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); // 从证书中检查SSL加密算法是否存在
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
} else {
$HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36';
}
curl_setopt($curl, CURLOPT_USERAGENT, $HTTP_USER_AGENT); // 模拟用户使用的浏览器
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); // 使用自动跳转
curl_setopt($curl, CURLOPT_AUTOREFERER, 1); // 自动设置Referer
if ($method == 'POST' && !empty($data)) {
curl_setopt($curl, CURLOPT_POST, 1); // 发送一个常规的Post请求
curl_setopt($curl, CURLOPT_POSTFIELDS, $data); // Post提交的数据包
}
curl_setopt($curl, CURLOPT_TIMEOUT, 45); // 设置超时限制防止死循环
curl_setopt($curl, CURLOPT_HEADER, 0); // 显示返回的Header区域内容
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); // 获取的信息以文件流的形式返回
$tmpInfo = curl_exec($curl); // 执行操作
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if ($httpCode >= 400) {//页面状态如果大于400说明页面打不开
log_message('error', " curl {$httpCode} {$url} ");
return false;
}
$errno = curl_errno($curl);
if ($errno !== 0) {
return false;
$error_message = $errno . ' ' . curl_error($curl); //记录错误日志
log_message('error', "train/get_http curl {$error_message}");
}
curl_close($curl); //关闭CURL会话
return $tmpInfo; //返回数据
}
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,34 @@
<html>
<head>
<title>404 Page Not Found</title>
<style type="text/css">
body {
background-color: #fff;
margin: 40px;
font-family: Lucida Grande, Verdana, Sans-serif;
font-size: 12px;
color: #000;
}
#content {
border: #999 1px solid;
background-color: #fff;
padding: 20px 20px 12px 20px;
}
h1 {
font-weight: normal;
font-size: 14px;
color: #990000;
margin: 0 0 4px 0;
}
</style>
</head>
<body>
<div id="content">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

@ -0,0 +1,34 @@
<html>
<head>
<title>Database Error</title>
<style type="text/css">
body {
background-color: #fff;
margin: 40px;
font-family: Lucida Grande, Verdana, Sans-serif;
font-size: 12px;
color: #000;
}
#content {
border: #999 1px solid;
background-color: #fff;
padding: 20px 20px 12px 20px;
}
h1 {
font-weight: normal;
font-size: 14px;
color: #990000;
margin: 0 0 4px 0;
}
</style>
</head>
<body>
<div id="content">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

@ -0,0 +1,34 @@
<html>
<head>
<title>Error</title>
<style type="text/css">
body {
background-color: #fff;
margin: 40px;
font-family: Lucida Grande, Verdana, Sans-serif;
font-size: 12px;
color: #000;
}
#content {
border: #999 1px solid;
background-color: #fff;
padding: 20px 20px 12px 20px;
}
h1 {
font-weight: normal;
font-size: 14px;
color: #990000;
margin: 0 0 4px 0;
}
</style>
</head>
<body>
<div id="content">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

@ -0,0 +1,10 @@
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: <?php echo $severity; ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
</div>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>仪表盘</title>
<link rel="stylesheet" href="/css/information-system3.css?v=201508112" type="text/css"/>
<script type="text/javascript" src="/min/?f=/js/information-system3.min.js,/js/common.js&v=20190128"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.0/dist/echarts.min.js"></script>
<link rel="shortcut icon" href="/bootstrap/img/glyphicons_290_skull.png">
</head>
<body>
<div class="container-fluid">
<div class="row">
<?php foreach ($boards as $item){
echo $item;
} ?>
</div>
</div>
</body>
</html>

@ -0,0 +1,363 @@
<div class="col-sm-24 col-md-24" id="module_inchina_customers">
<h3>在华客人</h3>
<div class="row">
<div class="col-sm-24 col-md-24">
<ul class="list-unstyled list-inline">
<li>
<label class="checkbox-inline">
网站:
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_ALL" name="website" value="ALL" checked> ALL
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_CHT" name="website" value="CHT"> CH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GHKHYY" name="website" value="GHKHYY"> GH客户运营中心
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_AH" name="website" value="AH"> AH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GH" name="website" value="GH"> GH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_JP" name="website" value="JP"> 日语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_VAC" name="website" value="VAC"> 西语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_IT" name="website" value="IT"> 意大利语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GM" name="website" value="GM"> 德语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_RU" name="website" value="RU"> 俄语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_VC" name="website" value="VC"> 法语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_CT" name="website" value="CT"> ChinaTravel
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_trippest" name="website" value="trippest"> trippest
</label>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-24 col-md-24">
<ul class="list-unstyled list-inline">
<li>
<label class="checkbox-inline">
小组:
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_1" name="DEI_SNList" value="1" checked> CH直销组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_2" name="DEI_SNList" value="2" checked> CH大客户组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_28" name="DEI_SNList" value="28" checked> AH亚洲项目组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_8" name="DEI_SNList" value="8"> 德语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_9" name="DEI_SNList" value="9"> 日语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_11" name="DEI_SNList" value="11"> 法语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_12" name="DEI_SNList" value="12"> 西语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_20" name="DEI_SNList" value="20"> 俄语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_21" name="DEI_SNList"" value="21"> 意语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_10" name="DEI_SNList" value="10"> 商旅市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_18" name="DEI_SNList" value="18"> CT市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_16" name="DEI_SNList" value="16"> APP移动项目组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_30" name="DEI_SNList" value="30"> Trippest项目组
</label>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-md-2">
<label class="checkbox-inline">
<input type="checkbox" id="inchina_customers_ApplydateCheck" name="inchina_customers_ApplydateCheck"
checked value="1">预定日期
</label>
</div>
<div class="col-sm-8 col-md-4">
<input name="inchina_customers_ApplydateStart" id="inchina_customers_ApplydateStart" type="text"
placeholder="开始日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-01', time()); ?>">
</div>
<div class="col-sm-8 col-md-4">
<input name="inchina_customers_ApplydateEnd" id="inchina_customers_ApplydateEnd" type="text"
placeholder="截至日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-t', time()); ?>">
</div>
<div class="col-sm-4 col-md-2">
<button class="btn btn-default" type="button" onclick="updatePotentialCustomers(0);">统计</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-sm-4 col-md-2">
<label class="checkbox-inline">
<input type="checkbox" id="inchina_customers_EntrancedateCheck"
name="inchina_customers_EntrancedateCheck" value="1">出发日期
</label>
</div>
<div class="col-sm-8 col-md-4">
<input name="inchina_customers_EntrancedateStart" id="inchina_customers_EntrancedateStart" type="text"
placeholder="开始日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-01', time()); ?>">
</div>
<div class="col-sm-8 col-md-4">
<input name="inchina_customers_EntrancedateEnd" id="inchina_customers_EntrancedateEnd" type="text"
placeholder="截至日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-t', time()); ?>">
</div>
<div class="col-sm-4 col-md-2">
<button class="btn btn-default" type="button"
onclick="updatePotentialCustomers(1);$('#inchina_customers_detail_box').show();">显示详情
</button>
</div>
</div>
<div class="row">
<div class="col-sm-24 col-md-12">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>统计条目</th>
<th>订单数</th>
<th>成行数</th>
<th>成行率</th>
<th>毛利</th>
<th>人数(含成人+儿童)</th>
</tr>
</thead>
<tbody id="inchina_customers">
</tbody>
</table>
</div>
</div>
</div>
<h4 class="pull-right" onclick="$('#inchina_customers_detail_box').toggle();">订单列表 显示|隐藏</h4>
<div class="row" style="display: none;" id="inchina_customers_detail_box">
<div class="col-sm-24 col-md-24">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>订单号</th>
<th>预定日期</th>
<th>订单状态</th>
<th>毛利</th>
<th>人数</th>
<th>天数</th>
<th>人天数</th>
<th>走团日期</th>
<th>小组</th>
<th>老客户</th>
<th>老客户推荐</th>
<th>网站</th>
<th>来源</th>
<th>在华</th>
</tr>
</thead>
<tbody id="inchina_customers_detail">
</tbody>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function updatePotentialCustomers(showDetail) {
let inchina_customers_ApplydateCheck = $('#inchina_customers_ApplydateCheck').prop("checked") ? $('#inchina_customers_ApplydateCheck').val() : 0;
let inchina_customers_ApplydateStart = $('#inchina_customers_ApplydateStart').val();
let inchina_customers_ApplydateEnd = $('#inchina_customers_ApplydateEnd').val();
let inchina_customers_EntrancedateCheck = $('#inchina_customers_EntrancedateCheck').prop("checked") ? $('#inchina_customers_EntrancedateCheck').val() : 0;
let inchina_customers_EntrancedateStart = $('#inchina_customers_EntrancedateStart').val();
let inchina_customers_EntrancedateEnd = $('#inchina_customers_EntrancedateEnd').val();
let DEI_SNList = $('#module_inchina_customers input[name="DEI_SNList"]:checked').map(function (index, element) {
return $(element).val();
}).get().join(',');//将数组元素连接起来转化为字符串
let websiteList = $('#module_inchina_customers input[name="website"]:checked').map(function (index, element) {
return $(element).val();
}).get().join(',');//将数组元素连接起来转化为字符串
if ((inchina_customers_ApplydateCheck == 0 && inchina_customers_EntrancedateCheck == 0) || DEI_SNList == '') {
$.modaldialog.error("请检查必填项");
return false;
}
$.ajax({
type: "post",
dataType: "json",
url: "<?php echo site_url('welcome/show_me_the_data')?>",
data: {//https://p9axztuwd7x8a7.mycht.cn/service-tourdesign/RegularCusInChinaOrder?Website=CHT&ApplydateCheck=1&ApplydateStart=2022-02-01&ApplydateEnd=2022-02-28&EntrancedateCheck=0&EntrancedateStart=2022-02-01&EntrancedateEnd=2022-02-28&IsDetail=0&DEI_SNList=1,8,9,11,12,20,21
"url": '/service-tourdesign/RegularCusInChinaOrder?Website=' + websiteList
+ '&ApplydateCheck=' + inchina_customers_ApplydateCheck
+ '&ApplydateStart=' + inchina_customers_ApplydateStart
+ '&ApplydateEnd=' + inchina_customers_ApplydateEnd
+ '&EntrancedateCheck=' + inchina_customers_EntrancedateCheck
+ '&EntrancedateStart=' + inchina_customers_EntrancedateStart
+ '&EntrancedateEnd=' + inchina_customers_EntrancedateEnd
+ '&DEI_SNList=' + DEI_SNList
+ '&IsDetail=' + showDetail,
},
success: function (data, textStatus) {
if (showDetail == 0) { //显示统计信息
document.getElementById('inchina_customers').innerHTML = '';
for (let key in data) {
let tr = document.createElement('tr');
let td_ItemName = document.createElement('td');
let td_OrderNum = document.createElement('td');
let td_SUCOrderNum = document.createElement('td');
let td_SUCRate = document.createElement('td');
let td_ML = document.createElement('td');
let td_PersonNum = document.createElement('td');
td_ItemName.innerHTML = data[key].ItemName;
td_OrderNum.innerHTML = data[key].OrderNum;
td_SUCOrderNum.innerHTML = data[key].SUCOrderNum;
td_SUCRate.innerHTML = (data[key].SUCRate * 100).toFixed(1) + '%';
td_ML.innerHTML = data[key].ML;
td_PersonNum.innerHTML = data[key].PersonNum;
tr.appendChild(td_ItemName);
tr.appendChild(td_OrderNum);
tr.appendChild(td_SUCOrderNum);
tr.appendChild(td_SUCRate);
tr.appendChild(td_ML);
tr.appendChild(td_PersonNum);
document.getElementById('inchina_customers').appendChild(tr);
}
} else {
document.getElementById('inchina_customers_detail').innerHTML = '';
for (let key in data) {
let tr = document.createElement('tr');
let td_index = document.createElement('td');
let td_COLI_ID = document.createElement('td');
let td_COLI_ApplyDate = document.createElement('td');
let td_OrderState = document.createElement('td');
let td_ML = document.createElement('td');
let td_PersonNum = document.createElement('td');
let td_COLI_Days = document.createElement('td');
let td_CGI_PersonDays = document.createElement('td');
let td_COLI_OrderStartDate = document.createElement('td');
let td_Department = document.createElement('td');
let td_COLI_IsOld = document.createElement('td');
let td_COLI_IsCusCommend = document.createElement('td');
let td_COLI_WebCode = document.createElement('td');
let td_SourceType = document.createElement('td');
let td_ZH = document.createElement('td');
td_index.innerHTML = parseInt(key) + 1;
td_COLI_ID.innerHTML = data[key].COLI_ID;
td_COLI_ApplyDate.innerHTML = data[key].COLI_ApplyDate;
td_OrderState.innerHTML = data[key].OrderState;
td_ML.innerHTML = data[key].ML;
td_PersonNum.innerHTML = data[key].PersonNum;
td_COLI_Days.innerHTML = data[key].COLI_Days;
td_CGI_PersonDays.innerHTML = data[key].CGI_PersonDays;
td_COLI_OrderStartDate.innerHTML = data[key].COLI_OrderStartDate;
td_Department.innerHTML = data[key].Department;
td_COLI_IsOld.innerHTML = data[key].COLI_IsOld;
td_COLI_IsCusCommend.innerHTML = data[key].COLI_IsCusCommend;
td_COLI_WebCode.innerHTML = data[key].COLI_WebCode;
td_SourceType.innerHTML = data[key].SourceType;
td_ZH.innerHTML = data[key].ZH;
tr.appendChild(td_index);
tr.appendChild(td_COLI_ID);
tr.appendChild(td_COLI_ApplyDate);
tr.appendChild(td_OrderState);
tr.appendChild(td_ML);
tr.appendChild(td_PersonNum);
tr.appendChild(td_COLI_Days);
tr.appendChild(td_CGI_PersonDays);
tr.appendChild(td_COLI_OrderStartDate);
tr.appendChild(td_Department);
tr.appendChild(td_COLI_IsOld);
tr.appendChild(td_COLI_IsCusCommend);
tr.appendChild(td_COLI_WebCode);
tr.appendChild(td_SourceType);
tr.appendChild(td_ZH);
document.getElementById('inchina_customers_detail').appendChild(tr);
}
}
},
error: function () {
$.modaldialog.error("\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYCC")
}
})
}
</script>

@ -0,0 +1,165 @@
<div class="col-sm-24 col-md-12" id="module_mobile_meal">
<h3>移动成交</h3>
<div class="row">
<div class="col-sm-24 col-md-24">
<ul class="list-unstyled list-inline">
<li>
<label class="checkbox-inline">
小组:
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_1" name="DEI_SNList" value="1" checked> CH直销组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_2" name="DEI_SNList" value="2" checked> CH大客户组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_28" name="DEI_SNList" value="28" checked> AH亚洲项目组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_8" name="DEI_SNList" value="8"> 德语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_9" name="DEI_SNList" value="9"> 日语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_11" name="DEI_SNList" value="11"> 法语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_12" name="DEI_SNList" value="12"> 西语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_20" name="DEI_SNList" value="20"> 俄语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_21" name="DEI_SNList"" value="21"> 意语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_10" name="DEI_SNList" value="10"> 商旅市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_18" name="DEI_SNList" value="18"> CT市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_16" name="DEI_SNList" value="16"> APP移动项目组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_30" name="DEI_SNList" value="30"> Trippest项目组
</label>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-md-4">
<label class="checkbox-inline">
<input type="checkbox" checked disabled value="1">预定日期
</label>
</div>
<div class="col-sm-8 col-md-8">
<input name="mobile_deal_ApplydateStart" id="mobile_deal_ApplydateStart" type="text" placeholder="开始日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-01', time()); ?>">
</div>
<div class="col-sm-8 col-md-8">
<input name="mobile_deal_ApplydateEnd" id="mobile_deal_ApplydateEnd" type="text" placeholder="截至日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-t', time()); ?>">
</div>
<div class="col-sm-4 col-md-4">
<button class="btn btn-default" type="button" onclick="updateMobileDeal();">统计</button>
</div>
</div>
<div class="row">
<div class="col-sm-24 col-md-24">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>市场</th>
<th>移动订单/总订单</th>
<th>移动成交/总成交</th>
<th>移动毛利/总毛利</th>
</tr>
</thead>
<tbody id="mobile_deal">
</tbody>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function updateMobileDeal() {
let ApplydateStart = $('#mobile_deal_ApplydateStart').val();
let ApplydateEnd = $('#mobile_deal_ApplydateEnd').val();
let DEI_SNList = $('#module_mobile_meal input[name="DEI_SNList"]:checked').map(function (index, element) {
return $(element).val();
}).get().join(',');//将数组元素连接起来转化为字符串
if (ApplydateStart == '' || ApplydateEnd == '' || DEI_SNList == '') {
$.modaldialog.error("请检查必填项");
return false;
}
$.ajax({
type: "post",
dataType: "json",
url: "<?php echo site_url('welcome/show_me_the_data')?>",
data: {
"url": '/service-tourdesign/CountYDOrder?ApplydateStart=' + ApplydateStart + '&ApplydateEnd=' + ApplydateEnd + '&DEI_SNList=' + DEI_SNList,
},
success: function (data, textStatus) {
document.getElementById('mobile_deal').innerHTML = '';
for (let key in data) {
let tr = document.createElement('tr');
let td_m_group = document.createElement('td');
let td_m_order = document.createElement('td');
let td_m_deal = document.createElement('td');
let td_m_gross = document.createElement('td');
td_m_group.innerHTML = data[key].DEI_DepartmentName;
td_m_order.innerHTML = data[key].YDOrderNum + ' / ' + data[key].OrderNum + ' (' + (data[key].OrderNumRate * 100).toFixed(1) + '%)';
td_m_deal.innerHTML = data[key].YDOrderNumSUC + ' / ' + data[key].OrderNumSUC + ' (' + (data[key].OrderNumSUCRate * 100).toFixed(1) + '%)';
td_m_gross.innerHTML = data[key].YDML + ' / ' + data[key].ML + ' (' + (data[key].MLRate * 100).toFixed(1) + '%)';
tr.appendChild(td_m_group);
tr.appendChild(td_m_order);
tr.appendChild(td_m_deal);
tr.appendChild(td_m_gross);
document.getElementById('mobile_deal').appendChild(tr);
}
},
error: function () {
$.modaldialog.error("\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYCC")
}
})
}
</script>
<!-- 移动成交 end-->

@ -0,0 +1,360 @@
<div class="col-sm-24 col-md-24" id="module_potential_customers">
<h3>潜力客户</h3>
<div class="row">
<div class="col-sm-24 col-md-24">
<ul class="list-unstyled list-inline">
<li>
<label class="checkbox-inline">
网站:
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_ALL" name="website" value="ALL" checked> ALL
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_CHT" name="website" value="CHT"> CH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GHKHYY" name="website" value="GHKHYY"> GH客户运营中心
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_AH" name="website" value="AH"> AH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GH" name="website" value="GH"> GH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_JP" name="website" value="JP"> 日语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_VAC" name="website" value="VAC"> 西语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_IT" name="website" value="IT"> 意大利语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GM" name="website" value="GM"> 德语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_RU" name="website" value="RU"> 俄语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_VC" name="website" value="VC"> 法语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_CT" name="website" value="CT"> ChinaTravel
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_trippest" name="website" value="trippest"> trippest
</label>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-24 col-md-24">
<ul class="list-unstyled list-inline">
<li>
<label class="checkbox-inline">
小组:
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_1" name="DEI_SNList" value="1" checked> CH直销组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_2" name="DEI_SNList" value="2" checked> CH大客户组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_28" name="DEI_SNList" value="28" checked> AH亚洲项目组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_8" name="DEI_SNList" value="8"> 德语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_9" name="DEI_SNList" value="9"> 日语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_11" name="DEI_SNList" value="11"> 法语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_12" name="DEI_SNList" value="12"> 西语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_20" name="DEI_SNList" value="20"> 俄语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_21" name="DEI_SNList"" value="21"> 意语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_10" name="DEI_SNList" value="10"> 商旅市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_18" name="DEI_SNList" value="18"> CT市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_16" name="DEI_SNList" value="16"> APP移动项目组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_30" name="DEI_SNList" value="30"> Trippest项目组
</label>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-md-2">
<label class="checkbox-inline">
<input type="checkbox" id="potential_customers_ApplydateCheck" name="potential_customers_ApplydateCheck"
checked value="1">预定日期
</label>
</div>
<div class="col-sm-8 col-md-4">
<input name="potential_customers_ApplydateStart" id="potential_customers_ApplydateStart" type="text"
placeholder="开始日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-01', time()); ?>">
</div>
<div class="col-sm-8 col-md-4">
<input name="potential_customers_ApplydateEnd" id="potential_customers_ApplydateEnd" type="text"
placeholder="截至日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-t', time()); ?>">
</div>
<div class="col-sm-4 col-md-2">
<button class="btn btn-default" type="button" onclick="updatePotentialCustomers(0);">统计</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-sm-4 col-md-2">
<label class="checkbox-inline">
<input type="checkbox" id="potential_customers_EntrancedateCheck"
name="potential_customers_EntrancedateCheck" value="1">出发日期
</label>
</div>
<div class="col-sm-8 col-md-4">
<input name="potential_customers_EntrancedateStart" id="potential_customers_EntrancedateStart" type="text"
placeholder="开始日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-01', time()); ?>">
</div>
<div class="col-sm-8 col-md-4">
<input name="potential_customers_EntrancedateEnd" id="potential_customers_EntrancedateEnd" type="text"
placeholder="截至日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-t', time()); ?>">
</div>
<div class="col-sm-4 col-md-2">
<button class="btn btn-default" type="button"
onclick="updatePotentialCustomers(1);$('#potential_customers_detail_box').show();">显示详情
</button>
</div>
</div>
<div class="row">
<div class="col-sm-24 col-md-12">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>订单数</th>
<th>成行数</th>
<th>成行率</th>
<th>毛利</th>
<th>人数(含成人+儿童)</th>
</tr>
</thead>
<tbody id="potential_customers">
</tbody>
</table>
</div>
</div>
</div>
<h4 class="pull-right" onclick="$('#potential_customers_detail_box').toggle();">订单列表 显示|隐藏</h4>
<div class="row" style="display: none;" id="potential_customers_detail_box">
<div class="col-sm-24 col-md-24">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>订单号</th>
<th>预定日期</th>
<th>订单状态</th>
<th>毛利</th>
<th>人数</th>
<th>天数</th>
<th>人天数</th>
<th>走团日期</th>
<th>小组</th>
<th>老客户</th>
<th>老客户推荐</th>
<th>网站</th>
<th>来源</th>
<th>在华</th>
</tr>
</thead>
<tbody id="potential_customers_detail">
</tbody>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function updatePotentialCustomers(showDetail) {
let potential_customers_ApplydateCheck = $('#potential_customers_ApplydateCheck').prop("checked") ? $('#potential_customers_ApplydateCheck').val() : 0;
let potential_customers_ApplydateStart = $('#potential_customers_ApplydateStart').val();
let potential_customers_ApplydateEnd = $('#potential_customers_ApplydateEnd').val();
let potential_customers_EntrancedateCheck = $('#potential_customers_EntrancedateCheck').prop("checked") ? $('#potential_customers_EntrancedateCheck').val() : 0;
let potential_customers_EntrancedateStart = $('#potential_customers_EntrancedateStart').val();
let potential_customers_EntrancedateEnd = $('#potential_customers_EntrancedateEnd').val();
let DEI_SNList = $('#module_potential_customers input[name="DEI_SNList"]:checked').map(function (index, element) {
return $(element).val();
}).get().join(',');//将数组元素连接起来转化为字符串
let websiteList = $('#module_potential_customers input[name="website"]:checked').map(function (index, element) {
return $(element).val();
}).get().join(',');//将数组元素连接起来转化为字符串
if ((potential_customers_ApplydateCheck == 0 && potential_customers_EntrancedateCheck == 0) || DEI_SNList == '') {
$.modaldialog.error("请检查必填项");
return false;
}
$.ajax({
type: "post",
dataType: "json",
url: "<?php echo site_url('welcome/show_me_the_data')?>",
data: {//https://p9axztuwd7x8a7.mycht.cn/service-tourdesign/PotentialCusOrder?Website=CHT&ApplydateCheck=1&ApplydateStart=2022-02-01&ApplydateEnd=2022-02-28&EntrancedateCheck=0&EntrancedateStart=2022-02-01&EntrancedateEnd=2022-02-28&IsDetail=0&DEI_SNList=1,8,9,11,12,20,21
"url": '/service-tourdesign/PotentialCusOrder?Website=' + websiteList
+ '&ApplydateCheck=' + potential_customers_ApplydateCheck
+ '&ApplydateStart=' + potential_customers_ApplydateStart
+ '&ApplydateEnd=' + potential_customers_ApplydateEnd
+ '&EntrancedateCheck=' + potential_customers_EntrancedateCheck
+ '&EntrancedateStart=' + potential_customers_EntrancedateStart
+ '&EntrancedateEnd=' + potential_customers_EntrancedateEnd
+ '&DEI_SNList=' + DEI_SNList
+ '&IsDetail=' + showDetail,
},
success: function (data, textStatus) {
if (showDetail == 0) { //显示统计信息
document.getElementById('potential_customers').innerHTML = '';
for (let key in data) {
let tr = document.createElement('tr');
let td_AllOrderNum = document.createElement('td');
let td_SUCNum = document.createElement('td');
let td_SUCRate = document.createElement('td');
let td_ML = document.createElement('td');
let td_PersonNum = document.createElement('td');
td_AllOrderNum.innerHTML = data[key].AllOrderNum;
td_SUCNum.innerHTML = data[key].SUCNum;
td_SUCRate.innerHTML = (data[key].SUCRate * 100).toFixed(1) + '%';
td_ML.innerHTML = data[key].ML;
td_PersonNum.innerHTML = data[key].PersonNum;
tr.appendChild(td_AllOrderNum);
tr.appendChild(td_SUCNum);
tr.appendChild(td_SUCRate);
tr.appendChild(td_ML);
tr.appendChild(td_PersonNum);
document.getElementById('potential_customers').appendChild(tr);
}
} else {
document.getElementById('potential_customers_detail').innerHTML = '';
for (let key in data) {
let tr = document.createElement('tr');
let td_index = document.createElement('td');
let td_COLI_ID = document.createElement('td');
let td_COLI_ApplyDate = document.createElement('td');
let td_OrderState = document.createElement('td');
let td_ML = document.createElement('td');
let td_PersonNum = document.createElement('td');
let td_COLI_Days = document.createElement('td');
let td_CGI_PersonDays = document.createElement('td');
let td_COLI_OrderStartDate = document.createElement('td');
let td_Department = document.createElement('td');
let td_COLI_IsOld = document.createElement('td');
let td_COLI_IsCusCommend = document.createElement('td');
let td_COLI_WebCode = document.createElement('td');
let td_SourceType = document.createElement('td');
let td_ZH = document.createElement('td');
td_index.innerHTML = parseInt(key) + 1;
td_COLI_ID.innerHTML = data[key].COLI_ID;
td_COLI_ApplyDate.innerHTML = data[key].COLI_ApplyDate;
td_OrderState.innerHTML = data[key].OrderState;
td_ML.innerHTML = data[key].ML;
td_PersonNum.innerHTML = data[key].PersonNum;
td_COLI_Days.innerHTML = data[key].COLI_Days;
td_CGI_PersonDays.innerHTML = data[key].CGI_PersonDays;
td_COLI_OrderStartDate.innerHTML = data[key].COLI_OrderStartDate;
td_Department.innerHTML = data[key].Department;
td_COLI_IsOld.innerHTML = data[key].COLI_IsOld;
td_COLI_IsCusCommend.innerHTML = data[key].COLI_IsCusCommend;
td_COLI_WebCode.innerHTML = data[key].COLI_WebCode;
td_SourceType.innerHTML = data[key].SourceType;
td_ZH.innerHTML = data[key].ZH;
tr.appendChild(td_index);
tr.appendChild(td_COLI_ID);
tr.appendChild(td_COLI_ApplyDate);
tr.appendChild(td_OrderState);
tr.appendChild(td_ML);
tr.appendChild(td_PersonNum);
tr.appendChild(td_COLI_Days);
tr.appendChild(td_CGI_PersonDays);
tr.appendChild(td_COLI_OrderStartDate);
tr.appendChild(td_Department);
tr.appendChild(td_COLI_IsOld);
tr.appendChild(td_COLI_IsCusCommend);
tr.appendChild(td_COLI_WebCode);
tr.appendChild(td_SourceType);
tr.appendChild(td_ZH);
document.getElementById('potential_customers_detail').appendChild(tr);
}
}
},
error: function () {
$.modaldialog.error("\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYCC")
}
})
}
</script>
<!-- 移动成交 end-->

@ -0,0 +1,363 @@
<div class="col-sm-24 col-md-24" id="module_regular_customers">
<h3>老客户</h3>
<div class="row">
<div class="col-sm-24 col-md-24">
<ul class="list-unstyled list-inline">
<li>
<label class="checkbox-inline">
网站:
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_ALL" name="website" value="ALL" checked> ALL
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_CHT" name="website" value="CHT"> CH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GHKHYY" name="website" value="GHKHYY"> GH客户运营中心
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_AH" name="website" value="AH"> AH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GH" name="website" value="GH"> GH网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_JP" name="website" value="JP"> 日语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_VAC" name="website" value="VAC"> 西语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_IT" name="website" value="IT"> 意大利语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_GM" name="website" value="GM"> 德语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_RU" name="website" value="RU"> 俄语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_VC" name="website" value="VC"> 法语网站
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_CT" name="website" value="CT"> ChinaTravel
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="website_trippest" name="website" value="trippest"> trippest
</label>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-24 col-md-24">
<ul class="list-unstyled list-inline">
<li>
<label class="checkbox-inline">
小组:
</label>
</li>
<li><label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_1" name="DEI_SNList" value="1" checked> CH直销组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_2" name="DEI_SNList" value="2" checked> CH大客户组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_28" name="DEI_SNList" value="28" checked> AH亚洲项目组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_8" name="DEI_SNList" value="8"> 德语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_9" name="DEI_SNList" value="9"> 日语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_11" name="DEI_SNList" value="11"> 法语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_12" name="DEI_SNList" value="12"> 西语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_20" name="DEI_SNList" value="20"> 俄语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_21" name="DEI_SNList"" value="21"> 意语市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_10" name="DEI_SNList" value="10"> 商旅市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_18" name="DEI_SNList" value="18"> CT市场
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_16" name="DEI_SNList" value="16"> APP移动项目组
</label>
</li>
<li>
<label class="checkbox-inline">
<input type="checkbox" id="DEI_SNList_30" name="DEI_SNList" value="30"> Trippest项目组
</label>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-md-2">
<label class="checkbox-inline">
<input type="checkbox" id="regular_customers_ApplydateCheck" name="regular_customers_ApplydateCheck"
checked value="1">预定日期
</label>
</div>
<div class="col-sm-8 col-md-4">
<input name="regular_customers_ApplydateStart" id="regular_customers_ApplydateStart" type="text"
placeholder="开始日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-01', time()); ?>">
</div>
<div class="col-sm-8 col-md-4">
<input name="regular_customers_ApplydateEnd" id="regular_customers_ApplydateEnd" type="text"
placeholder="截至日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-t', time()); ?>">
</div>
<div class="col-sm-4 col-md-2">
<button class="btn btn-default" type="button" onclick="updatePotentialCustomers(0);">统计</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-sm-4 col-md-2">
<label class="checkbox-inline">
<input type="checkbox" id="regular_customers_EntrancedateCheck"
name="regular_customers_EntrancedateCheck" value="1">出发日期
</label>
</div>
<div class="col-sm-8 col-md-4">
<input name="regular_customers_EntrancedateStart" id="regular_customers_EntrancedateStart" type="text"
placeholder="开始日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-01', time()); ?>">
</div>
<div class="col-sm-8 col-md-4">
<input name="regular_customers_EntrancedateEnd" id="regular_customers_EntrancedateEnd" type="text"
placeholder="截至日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date('Y-m-t', time()); ?>">
</div>
<div class="col-sm-4 col-md-2">
<button class="btn btn-default" type="button"
onclick="updatePotentialCustomers(1);$('#regular_customers_detail_box').show();">显示详情
</button>
</div>
</div>
<div class="row">
<div class="col-sm-24 col-md-12">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>统计条目</th>
<th>订单数</th>
<th>成行数</th>
<th>成行率</th>
<th>毛利</th>
<th>人数(含成人+儿童)</th>
</tr>
</thead>
<tbody id="regular_customers">
</tbody>
</table>
</div>
</div>
</div>
<h4 class="pull-right" onclick="$('#regular_customers_detail_box').toggle();">订单列表 显示|隐藏</h4>
<div class="row" style="display: none;" id="regular_customers_detail_box">
<div class="col-sm-24 col-md-24">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>订单号</th>
<th>预定日期</th>
<th>订单状态</th>
<th>毛利</th>
<th>人数</th>
<th>天数</th>
<th>人天数</th>
<th>走团日期</th>
<th>小组</th>
<th>老客户</th>
<th>老客户推荐</th>
<th>网站</th>
<th>来源</th>
<th>在华</th>
</tr>
</thead>
<tbody id="regular_customers_detail">
</tbody>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function updatePotentialCustomers(showDetail) {
let regular_customers_ApplydateCheck = $('#regular_customers_ApplydateCheck').prop("checked") ? $('#regular_customers_ApplydateCheck').val() : 0;
let regular_customers_ApplydateStart = $('#regular_customers_ApplydateStart').val();
let regular_customers_ApplydateEnd = $('#regular_customers_ApplydateEnd').val();
let regular_customers_EntrancedateCheck = $('#regular_customers_EntrancedateCheck').prop("checked") ? $('#regular_customers_EntrancedateCheck').val() : 0;
let regular_customers_EntrancedateStart = $('#regular_customers_EntrancedateStart').val();
let regular_customers_EntrancedateEnd = $('#regular_customers_EntrancedateEnd').val();
let DEI_SNList = $('#module_regular_customers input[name="DEI_SNList"]:checked').map(function (index, element) {
return $(element).val();
}).get().join(',');//将数组元素连接起来转化为字符串
let websiteList = $('#module_regular_customers input[name="website"]:checked').map(function (index, element) {
return $(element).val();
}).get().join(',');//将数组元素连接起来转化为字符串
if ((regular_customers_ApplydateCheck == 0 && regular_customers_EntrancedateCheck == 0) || DEI_SNList == '') {
$.modaldialog.error("请检查必填项");
return false;
}
$.ajax({
type: "post",
dataType: "json",
url: "<?php echo site_url('welcome/show_me_the_data')?>",
data: {//https://p9axztuwd7x8a7.mycht.cn/service-tourdesign/RegularCusOrder?Website=CHT&ApplydateCheck=1&ApplydateStart=2022-02-01&ApplydateEnd=2022-02-28&EntrancedateCheck=0&EntrancedateStart=2022-02-01&EntrancedateEnd=2022-02-28&IsDetail=0&DEI_SNList=1,8,9,11,12,20,21
"url": '/service-tourdesign/RegularCusOrder?Website=' + websiteList
+ '&ApplydateCheck=' + regular_customers_ApplydateCheck
+ '&ApplydateStart=' + regular_customers_ApplydateStart
+ '&ApplydateEnd=' + regular_customers_ApplydateEnd
+ '&EntrancedateCheck=' + regular_customers_EntrancedateCheck
+ '&EntrancedateStart=' + regular_customers_EntrancedateStart
+ '&EntrancedateEnd=' + regular_customers_EntrancedateEnd
+ '&DEI_SNList=' + DEI_SNList
+ '&IsDetail=' + showDetail,
},
success: function (data, textStatus) {
if (showDetail == 0) { //显示统计信息
document.getElementById('regular_customers').innerHTML = '';
for (let key in data) {
let tr = document.createElement('tr');
let td_ItemName = document.createElement('td');
let td_OrderNum = document.createElement('td');
let td_SUCOrderNum = document.createElement('td');
let td_SUCRate = document.createElement('td');
let td_ML = document.createElement('td');
let td_PersonNum = document.createElement('td');
td_ItemName.innerHTML = data[key].ItemName;
td_OrderNum.innerHTML = data[key].OrderNum;
td_SUCOrderNum.innerHTML = data[key].SUCOrderNum;
td_SUCRate.innerHTML = (data[key].SUCRate * 100).toFixed(1) + '%';
td_ML.innerHTML = data[key].ML;
td_PersonNum.innerHTML = data[key].PersonNum;
tr.appendChild(td_ItemName);
tr.appendChild(td_OrderNum);
tr.appendChild(td_SUCOrderNum);
tr.appendChild(td_SUCRate);
tr.appendChild(td_ML);
tr.appendChild(td_PersonNum);
document.getElementById('regular_customers').appendChild(tr);
}
} else {
document.getElementById('regular_customers_detail').innerHTML = '';
for (let key in data) {
let tr = document.createElement('tr');
let td_index = document.createElement('td');
let td_COLI_ID = document.createElement('td');
let td_COLI_ApplyDate = document.createElement('td');
let td_OrderState = document.createElement('td');
let td_ML = document.createElement('td');
let td_PersonNum = document.createElement('td');
let td_COLI_Days = document.createElement('td');
let td_CGI_PersonDays = document.createElement('td');
let td_COLI_OrderStartDate = document.createElement('td');
let td_Department = document.createElement('td');
let td_COLI_IsOld = document.createElement('td');
let td_COLI_IsCusCommend = document.createElement('td');
let td_COLI_WebCode = document.createElement('td');
let td_SourceType = document.createElement('td');
let td_ZH = document.createElement('td');
td_index.innerHTML = parseInt(key) + 1;
td_COLI_ID.innerHTML = data[key].COLI_ID;
td_COLI_ApplyDate.innerHTML = data[key].COLI_ApplyDate;
td_OrderState.innerHTML = data[key].OrderState;
td_ML.innerHTML = data[key].ML;
td_PersonNum.innerHTML = data[key].PersonNum;
td_COLI_Days.innerHTML = data[key].COLI_Days;
td_CGI_PersonDays.innerHTML = data[key].CGI_PersonDays;
td_COLI_OrderStartDate.innerHTML = data[key].COLI_OrderStartDate;
td_Department.innerHTML = data[key].Department;
td_COLI_IsOld.innerHTML = data[key].COLI_IsOld;
td_COLI_IsCusCommend.innerHTML = data[key].COLI_IsCusCommend;
td_COLI_WebCode.innerHTML = data[key].COLI_WebCode;
td_SourceType.innerHTML = data[key].SourceType;
td_ZH.innerHTML = data[key].ZH;
tr.appendChild(td_index);
tr.appendChild(td_COLI_ID);
tr.appendChild(td_COLI_ApplyDate);
tr.appendChild(td_OrderState);
tr.appendChild(td_ML);
tr.appendChild(td_PersonNum);
tr.appendChild(td_COLI_Days);
tr.appendChild(td_CGI_PersonDays);
tr.appendChild(td_COLI_OrderStartDate);
tr.appendChild(td_Department);
tr.appendChild(td_COLI_IsOld);
tr.appendChild(td_COLI_IsCusCommend);
tr.appendChild(td_COLI_WebCode);
tr.appendChild(td_SourceType);
tr.appendChild(td_ZH);
document.getElementById('regular_customers_detail').appendChild(tr);
}
}
},
error: function () {
$.modaldialog.error("\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYCC")
}
})
}
</script>

@ -0,0 +1,39 @@
<!-- 测试的柱状图 -->
<div class="col-sm-24 col-md-12" id="main"></div>
<script type="text/javascript">
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById('main'), null, {
width: 'auto',
height: 400
});
// 指定图表的配置项和数据
var option = {
title: {
text: 'ECharts 入门示例'
},
tooltip: {},
legend: {
data: ['销量']
},
xAxis: {
data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
},
yAxis: {},
series: [
{
name: '销量',
type: 'bar',
data: [5, 20, 36, 10, 10, 20]
}
]
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
</script>

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>echarts统计</title>
<link rel="stylesheet" href="/css/information-system3.css?v=201508112" type="text/css"/>
<script type="text/javascript" src="/min/?f=/js/information-system3.min.js,/js/common.js&v=20190128"></script>
<script src="https://g.alicdn.com/dingding/dingtalk-jsapi/2.13.42/dingtalk.open.js"></script>
<link rel="shortcut icon" href="/bootstrap/img/glyphicons_290_skull.png">
<script type="text/javascript">
dd.runtime.permission.requestAuthCode({
corpId: "ding48bce8fd3957c96b",
onSuccess : function(res) {
// 调用成功时回调
console.log(res)
},
onFail : function(err) {
// 调用失败时回调
console.log(err)
}
});
</script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-sm-24 col-md-12">Welcome</div>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save