diff --git a/api/trade/api_alipay.php b/api/trade/api_alipay.php index 0e16f82..a9a3d13 100644 --- a/api/trade/api_alipay.php +++ b/api/trade/api_alipay.php @@ -32,7 +32,7 @@ function credit_payurl($price, &$orderid) { $args = array( 'subject' => $_G['setting']['bbname'].' - '.$_G['member']['username'].' - '.lang('forum/misc', 'credit_payment'), 'body' => lang('forum/misc', 'credit_forum_payment').' '.$_G['setting']['extcredits'][$_G['setting']['creditstrans']]['title'].' '.intval($price * $_G['setting']['ec_ratio']).' '.$_G['setting']['extcredits'][$_G['setting']['creditstrans']]['unit'], - 'service' => 'trade_create_by_buyer', + 'service' => 'create_partner_trade_by_buyer', 'partner' => DISCUZ_PARTNER, 'notify_url' => $_G['siteurl'].'api/trade/notify_credit.php', 'return_url' => $_G['siteurl'].'api/trade/notify_credit.php', diff --git a/api/uc.php b/api/uc.php index 6474869..147afc1 100644 --- a/api/uc.php +++ b/api/uc.php @@ -60,7 +60,7 @@ if(in_array($get['action'], array('test', 'deleteuser', 'renameuser', 'gettag', 'synlogin', 'synlogout', 'updatepw', 'updatebadwords', 'updatehosts', 'updateapps', 'updateclient', 'updatecredit', 'getcredit', 'getcreditsettings', 'updatecreditsettings', 'addfeed'))) { $uc_note = new uc_note(); - echo $uc_note->$get['action']($get, $post); + echo call_user_func(array($uc_note, $get['action']), $get, $post); exit(); } else { exit(API_RETURN_FAILED); @@ -83,7 +83,7 @@ function _serialize($arr, $htmlon = 0) { return xml_serialize($arr, $htmlon); } - function uc_note() { + function __construct() { } diff --git a/install/data/install.sql b/install/data/install.sql index 3b2b0b8..f2e5726 100644 --- a/install/data/install.sql +++ b/install/data/install.sql @@ -370,6 +370,7 @@ CREATE TABLE pre_common_connect_guest ( conopenid char(32) NOT NULL DEFAULT '', conuin char(40) NOT NULL DEFAULT '', conuinsecret char(16) NOT NULL DEFAULT '', + conuintoken char(32) NOT NULL DEFAULT '', conqqnick char(100) NOT NULL DEFAULT '', PRIMARY KEY (conopenid) ) TYPE=MyISAM; @@ -692,6 +693,7 @@ CREATE TABLE pre_common_member_connect ( uid mediumint(8) unsigned NOT NULL DEFAULT '0', conuin char(40) NOT NULL DEFAULT '', conuinsecret char(16) NOT NULL DEFAULT '', + conuintoken char(32) NOT NULL DEFAULT '', conopenid char(32) NOT NULL DEFAULT '', conisfeed tinyint(1) unsigned NOT NULL DEFAULT '0', conispublishfeed tinyint(1) unsigned NOT NULL DEFAULT '0', diff --git a/install/data/install_data.sql b/install/data/install_data.sql index 228de3a..367c034 100644 --- a/install/data/install_data.sql +++ b/install/data/install_data.sql @@ -794,7 +794,7 @@ INSERT INTO pre_common_word_type SET `id`='1', `typename`='政治'; INSERT INTO pre_common_word_type SET `id`='2', `typename`='广告'; INSERT INTO pre_forum_bbcode VALUES ('1','0','fly','bb_fly.gif','{1}','[fly]This is sample text[/fly]','使内容横向滚动,这个效果类似 HTML 的 marquee 标签,注意:这个效果只在 Internet Explorer 浏览器下有效。','1','请输入滚动显示的文字:','1','19','1 2 3 12 13 14 15 16 17 18 19'); -INSERT INTO pre_forum_bbcode VALUES ('2','2','qq','bb_qq.gif','','[qq]688888[/qq]','显示 QQ 在线状态,点这个图标可以和他(她)聊天','1','请输入 QQ 号码:设置QQ在线状态  ','1','21','1 2 3 10 11 12 13 14 15 16 17 18 19'); +INSERT INTO pre_forum_bbcode VALUES ('2','2','qq','bb_qq.gif','','[qq]688888[/qq]','显示 QQ 在线状态,点这个图标可以和他(她)聊天','1','请输入 QQ 号码:设置QQ在线状态  ','1','21','1 2 3 10 11 12 13 14 15 16 17 18 19'); INSERT INTO pre_forum_bbcode VALUES ('3','0','sup','bb_sup.gif','{1}','X[sup]2[/sup]','上标','1','请输入上标文字:','1','22','1 2 3 12 13 14 15 16 17 18 19'); INSERT INTO pre_forum_bbcode VALUES ('4','0','sub','bb_sub.gif','{1}','X[sub]2[/sub]','下标','1','请输入下标文字:','1','23','1 2 3 12 13 14 15 16 17 18 19'); diff --git a/readme.md b/readme.md index 1a7c73b..c3134e9 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ -#Discuz X3.2 UTF-8 20150609 For PHP7 +#Discuz X3.2 UTF-8 20151208 For PHP7 -This is a a PHP7 Port of Discuz! X3.2, based on Discuz X3.2 UTF-8 20150609. +This is a a PHP7 Port of Discuz! X3.2, based on Discuz X3.2 UTF-8 20151208. *Please Do Not Use For Production* ###Changes @@ -14,7 +14,7 @@ Maybe there are still some bugs remaining to fix. ###Known Bugs - - None + - Please turn to issues for details. ###Other diff --git a/source/admincp/admincp_checktools.php b/source/admincp/admincp_checktools.php index 58ad0f4..a42369f 100644 --- a/source/admincp/admincp_checktools.php +++ b/source/admincp/admincp_checktools.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: admincp_checktools.php 31554 2012-09-07 08:49:56Z monkey $ + * $Id: admincp_checktools.php 35472 2015-08-03 09:06:22Z nemohou $ */ if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { @@ -362,6 +362,14 @@ $settingnew = $_GET['settingnew']; if(!empty($_GET['previewthumb'])) { + if(!is_dir($settingnew['imageimpath'])) { + $settingnew['imageimpath'] = ''; + } else { + $settingnew['imageimpath'] = str_replace('\\', '/', $settingnew['imageimpath']); + if(!preg_match('/^[\!@#\$%\^&\(\)_\+\-\=\{\}\[\];\',\.\/\:\w\s]+$/', $settingnew['imageimpath'])) { + $settingnew['imageimpath'] = ''; + } + } $_G['setting']['imagelib'] = $settingnew['imagelib']; $_G['setting']['imageimpath'] = $settingnew['imageimpath']; $_G['setting']['thumbwidth'] = $settingnew['thumbwidth']; diff --git a/source/admincp/admincp_cloudaddons.php b/source/admincp/admincp_cloudaddons.php index 7eeee62..b449747 100644 --- a/source/admincp/admincp_cloudaddons.php +++ b/source/admincp/admincp_cloudaddons.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: admincp_cloudaddons.php 33369 2013-06-03 05:00:29Z andyzheng $ + * $Id: admincp_cloudaddons.php 35705 2015-12-01 06:14:33Z nemohou $ */ if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); @@ -35,8 +35,7 @@ } elseif($operation == 'download') { $step = intval($_GET['step']); $addoni = intval($_GET['i']); - $uniqueid = $_G['setting']['siteuniqueid'] ? $_G['setting']['siteuniqueid'] : C::t('common_setting')->fetch('siteuniqueid'); - if(!$_GET['md5hash'] || md5($_GET['addonids'].md5($uniqueid.$_GET['timestamp'])) != $_GET['md5hash']) { + if(!$_GET['md5hash'] || md5($_GET['addonids'].md5(cloudaddons_getuniqueid().$_GET['timestamp'])) != $_GET['md5hash']) { cpmsg('cloudaddons_validator_error', '', 'error'); } $addonids = explode(',', $_GET['addonids']); diff --git a/source/admincp/discuzfiles.md5 b/source/admincp/discuzfiles.md5 index 41a18eb..5657f59 100644 --- a/source/admincp/discuzfiles.md5 +++ b/source/admincp/discuzfiles.md5 @@ -70,7 +70,7 @@ d41d8cd98f00b204e9800998ecf8427e *data/template/index.htm d41d8cd98f00b204e9800998ecf8427e *data/threadcache/index.htm 0d673a9b9f136a7a6b6b25d4ff4bc1fd *./install 08066574cc9c9cfa186b8e1a7ba35b5c *./source -4eeab4f3170c81bab4c3df07e0d276d0 *source/discuz_version.php +d774fb851c4ad4f88ea19469fd7353cf *source/discuz_version.php 7215ee9c7d9dc229d2921a40e899ec5f *source/index.htm 0a7896849dd83bbf64a31ccf11e58a17 *source/admincp/admincp_admingroup.php 8896d084661345e3de22cb445536f2cb *source/admincp/admincp_adv.php @@ -86,10 +86,10 @@ e48263dce4356396f52bfbcfb5071c64 *source/admincp/admincp_block.php dda34ea9edc3f37fb7f3c8bae9d587e0 *source/admincp/admincp_blogcategory.php 20479a5ebcc8c8de3dac7a61764af979 *source/admincp/admincp_blogrecyclebin.php ac14d324de325ee9485caca992f796c1 *source/admincp/admincp_card.php -5e0ea6696805c296eaa6fdd9f5ee8bf2 *source/admincp/admincp_checktools.php +2ac5ca0a276104f1b12b2bab03ad27e2 *source/admincp/admincp_checktools.php b40bc52669c410d5fbedaaf37550fb01 *source/admincp/admincp_click.php 85ef3aadb8fad22f669b99e44da52649 *source/admincp/admincp_cloud.php -eafad7bb76a8672f771147a2f2b4d278 *source/admincp/admincp_cloudaddons.php +50bbccf077a293c4f9ef5f9515a27d4a *source/admincp/admincp_cloudaddons.php a7564ff1d1d99de04603d6a6f588a6e5 *source/admincp/admincp_collection.php 93c0cd010c921640c9bc5c06aa6c9394 *source/admincp/admincp_comment.php 6558bce5672e89e7e974deb172fa4912 *source/admincp/admincp_counter.php @@ -381,7 +381,7 @@ d41d8cd98f00b204e9800998ecf8427e *source/class/forum/index.htm 79feb45e4626dbba96e19ea147fff3e2 *source/class/helper/helper_antitheft.php 59220a31da954b7d2227f336dbb6f0c3 *source/class/helper/helper_attach.php 7022fd0d4c037305b08aa3702a6add1e *source/class/helper/helper_dbtool.php -0d82e5d1b0ab576c3e0168074fc484d7 *source/class/helper/helper_form.php +b4a48768f230e623de4e45fe99241f55 *source/class/helper/helper_form.php f44c81f0cf86f12e234da0e7f03d11f0 *source/class/helper/helper_json.php cd6ed5c1af415245d93e3235c8ede908 *source/class/helper/helper_log.php 5385476aea9b3fb11a4e82607755229e *source/class/helper/helper_makehtml.php @@ -727,20 +727,20 @@ f9fabd8329b3a8a91c7a8996bd0bc4cc *source/class/task/task_profile.php d92c261612a6b18fa0f32c5832420258 *source/function/function_block.php fda0f9733c9d07e18ac8b6aa1f04a4ba *source/function/function_blog.php 10152e216afcc2730c7961778fd2d36a *source/function/function_cache.php -f5ff825bf0d19f9e00ae7dcf1f3acfea *source/function/function_cloudaddons.php +f917245b79f202d4cc72f5542af42ff8 *source/function/function_cloudaddons.php 77f06f33b827d1155c5c3c2f28bc7909 *source/function/function_collection.php 90ee4789682564336c6043e19dc2dcb8 *source/function/function_comment.php -d5a65d86d0bf5f3108fd585b54d19493 *source/function/function_core.php +c404fdd625f0e359950b11e18d885a0f *source/function/function_core.php fca8f813316f070ad4026e06b938db1d *source/function/function_credit.php dc26872be5adc5364f42bc0335c4b504 *source/function/function_delete.php -30bda91dc181cecb1d39315f57bd7c2a *source/function/function_discuzcode.php +25f4f2b24b9a727183618d3e60a157e1 *source/function/function_discuzcode.php 9270deaa36c685a3f408bb9cee2db317 *source/function/function_domain.php aaca86dc933b77a2313a4d463cf356a6 *source/function/function_ec_credit.php 59dbdc54dc7367bb120babaceaace2c1 *source/function/function_editor.php ed60f1ffa5730c849ff679cf8fd5efcb *source/function/function_exif.php f04336160dae343fe6604156811d68ed *source/function/function_feed.php c47efcdd8ba9dcb0d7320c28eea4e086 *source/function/function_filesock.php -dfd83566bf1ab8634155e0bf57ca51cd *source/function/function_followcode.php +1cc0c56581f027b3d91a51d422a8d3ec *source/function/function_followcode.php 1c962bafb265c3e1dbafd63a9e0da270 *source/function/function_forum.php 53af5593f8b73b90b1a627c434310b8a *source/function/function_forumlist.php 10758d44f84170af87ed5d0a4f15d657 *source/function/function_friend.php @@ -1170,7 +1170,7 @@ cb51cfe16559084716000b0725fb111a *source/module/forum/forum_rss.php 9eacb72a42d21156d35b2a8956cc0fdc *source/module/forum/forum_tag.php 571fc4f66dc650cdf4548ff0d8d60e40 *source/module/forum/forum_topicadmin.php e7d4e8fed8d979a928cd8960eec25f2d *source/module/forum/forum_trade.php -f05cca10355dfc9a24c981dc6f69e462 *source/module/forum/forum_viewthread.php +06d43c18f22efc68a2a3de683e7fe1ab *source/module/forum/forum_viewthread.php d41d8cd98f00b204e9800998ecf8427e *source/module/forum/index.htm 6ac2bc80c87d24ef37a87e02cf9f31cd *source/module/group/group_attentiongroup.php b15c4aa15189bfdc446e1459929c773f *source/module/group/group_index.php @@ -1216,7 +1216,7 @@ b06844b70785922e2cb5100b9f958685 *source/module/misc/misc_ranklist.php 1b7b4fdeb70502cbb855b32ae3e24d55 *source/module/misc/misc_seccode.php 4206a5bc3be20b2294752c38bcb6b0a1 *source/module/misc/misc_secqaa.php 8c5c539ef08c4ebad727020a04352103 *source/module/misc/misc_stat.php -8919f1089311965d2a9eaa449c713674 *source/module/misc/misc_swfupload.php +f9894157f4f320c958bbb16a07101106 *source/module/misc/misc_swfupload.php 8cff67e3f9f57d6eec68f1fada15202f *source/module/misc/misc_tag.php b2e980162b4365aa940f4a2675e0cf68 *source/module/misc/misc_userstatus.php d41d8cd98f00b204e9800998ecf8427e *source/module/portal/index.htm @@ -2481,7 +2481,7 @@ b7d9174d54261a48fb7854d55fcb7852 *static/js/admincp.js f619c8cbedf000f59d83d7ac61633767 *static/js/ajax.js f4c8df3bcee17f02b333a7375777fefa *static/js/at.js 2d39b948d499baafb9102d32066b2cd8 *static/js/autoloadpage.js -64de46a394e0ab04021efd942b244100 *static/js/bbcode.js +87efdff43e4f794b4c1fb26394a6f0d7 *static/js/bbcode.js 85b59b1b90ddaf58bdab571698539495 *static/js/calendar.js ec73c26f3b4b3e606c9acf9904af6626 *static/js/common.js ebd21b3e2d0ecd4346546d0cd629bf80 *static/js/common_diy.js @@ -2963,7 +2963,7 @@ af55380c7b9fe10b851c44886e9d2d50 *template/default/home/spacecp_upload.htm 9fb1f3dd6bae1647e1013e032a53267a *template/default/home/spacecp_usergroup.htm 2acc665da23d785108539569d20a4954 *template/default/home/spacecp_usergroup_header.htm 3c467ef9914518be03d6cb944ec67d52 *template/default/home/spacecp_videophoto.htm -082ea59206f18e26752474e4f7f89b3e *template/default/member/getpasswd.htm +9720e182ebdde207c689d1734392fdd2 *template/default/member/getpasswd.htm 565e669f1d0f24519158a3f9ea7f4013 *template/default/member/login.htm 8c03540906a485367438c4d822536b18 *template/default/member/login_simple.htm 26cb5ca9b5c4a670b01a17a82897862e *template/default/member/register.htm diff --git a/source/class/helper/helper_form.php b/source/class/helper/helper_form.php index 59dfc4e..8725c8f 100644 --- a/source/class/helper/helper_form.php +++ b/source/class/helper/helper_form.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: helper_form.php 34543 2014-05-26 07:33:21Z nemohou $ + * $Id: helper_form.php 35375 2015-07-06 02:26:18Z nemohou $ */ if(!defined('IN_DISCUZ')) { @@ -20,8 +20,7 @@ public static function submitcheck($var, $allowget = 0, $seccodecheck = 0, $secq } else { global $_G; if($allowget || ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_GET['formhash']) && $_GET['formhash'] == formhash() && empty($_SERVER['HTTP_X_FLASH_VERSION']) && (empty($_SERVER['HTTP_REFERER']) || - strncmp($_SERVER['HTTP_REFERER'], 'http://wsq.discuz.qq.com', 24) === 0 || strncmp($_SERVER['HTTP_REFERER'], 'http://m.wsq.qq.com', 19) === 0 || - preg_replace("/https?:\/\/([^\:\/]+).*/i", "\\1", $_SERVER['HTTP_REFERER']) == preg_replace("/([^\:]+).*/", "\\1", $_SERVER['HTTP_HOST'])))) { + strncmp($_SERVER['HTTP_REFERER'], 'http://wsq.discuz.qq.com/', 25) === 0 || preg_replace("/https?:\/\/([^\:\/]+).*/i", "\\1", $_SERVER['HTTP_REFERER']) == preg_replace("/([^\:]+).*/", "\\1", $_SERVER['HTTP_HOST'])))) { if(checkperm('seccode')) { if($secqaacheck && !check_secqaa($_GET['secanswer'], $_GET['secqaahash'])) { showmessage('submit_secqaa_invalid'); diff --git a/source/class/helper/helper_seo.php b/source/class/helper/helper_seo.php index 08f18c3..905356c 100644 --- a/source/class/helper/helper_seo.php +++ b/source/class/helper/helper_seo.php @@ -47,8 +47,8 @@ public static function get_seosetting($page, $data = array(), $defset = array()) public static function strreplace_strip_split($searchs, $replaces, $str) { - $searchspace = array('((\s*\-\s*)+)', '((\s*\,\s*)+)', '((\s*\|\s*)+)', '((\s*\t\s*)+)', '((\s*_\s*)+)'); - $replacespace = array('-', ',', '|', ' ', '_'); + $searchspace = array('(((\s)*\-(\s)*)+)', '(((\s)*\,(\s)*)+)', '(((\s)*\|(\s)*)+)', '(((\s)*\t(\s)*)+)', '(((\s)*_(\s)*)+)'); + $replacespace = array('$3-$3', '$3,$3', '$3|$3', '$3 $3', '$3_$3'); return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_'); } @@ -111,4 +111,4 @@ public static function base64_transform($type, $prefix, $string, $suffix) { } } -?> \ No newline at end of file +?> diff --git a/source/discuz_version.php b/source/discuz_version.php index 322ebca..d395cd2 100644 --- a/source/discuz_version.php +++ b/source/discuz_version.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: discuz_version.php 35307 2015-06-09 02:15:04Z hypowang $ + * $Id: discuz_version.php 35711 2015-12-08 02:32:24Z hypowang $ */ if(!defined('IN_DISCUZ')) { @@ -13,7 +13,7 @@ if(!defined('DISCUZ_VERSION')) { define('DISCUZ_VERSION', 'X3.2'); - define('DISCUZ_RELEASE', '20150609'); + define('DISCUZ_RELEASE', '20151208'); define('DISCUZ_FIXBUG', '32000000'); } diff --git a/source/function/cache/cache_setting.php b/source/function/cache/cache_setting.php index 594bbbd..2f1ad92 100644 --- a/source/function/cache/cache_setting.php +++ b/source/function/cache/cache_setting.php @@ -448,19 +448,29 @@ function build_cache_setting() { } if($output['preg']){ foreach($data['footernavs'] as $id => $nav) { - $data['footernavs'][$id]['code'] = rewritereplace($nav['code']); + foreach ($output['preg']['search'] as $key => $value) { + $data['footernavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']); + } } foreach($data['spacenavs'] as $id => $nav) { - $data['spacenavs'][$id]['code'] = rewritereplace($nav['code']); + foreach ($output['preg']['search'] as $key => $value) { + $data['spacenavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']); + } } foreach($data['mynavs'] as $id => $nav) { - $data['mynavs'][$id]['code'] = rewritereplace($nav['code']); + foreach ($output['preg']['search'] as $key => $value) { + $data['mynavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']); + } } foreach($data['topnavs'] as $id => $nav) { - $data['topnavs'][$id]['code'] = rewritereplace($nav['code']); + foreach ($output['preg']['search'] as $key => $value) { + $data['topnavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']); + } } foreach($data['plugins']['jsmenu'] as $key => $nav) { - $data['plugins']['jsmenu'][$key]['url'] = rewritereplace($nav['url']); + foreach ($output['preg']['search'] as $key => $value) { + $data['plugins']['jsmenu'][$key]['url'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['url']); + } } } } diff --git a/source/function/function_admincp.php b/source/function/function_admincp.php index f3a82e6..9846526 100644 --- a/source/function/function_admincp.php +++ b/source/function/function_admincp.php @@ -1325,93 +1325,53 @@ function getposttableselect() { return $posttableselect; } -function rewritereplace($content){ - global $_G; - if(in_array('portal_topic', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/".$_G['domain']['pregxprw']['portal']."\?mod\=topic&(amp;)?topic\=([^#]+?)?\"([^\>]*)\>/", function($matches) { return rewriteoutput('portal_topic', 0, $matches[1], $matches[3], $matches[4]); }, $content); - } - - if(in_array('portal_article', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/".$_G['domain']['pregxprw']['portal']."\?mod\=view&(amp;)?aid\=(\d+)(&page\=(\d+))?\"([^\>]*)\>/", function($matches) { return rewriteoutput('portal_article', 0, $matches[1], $matches[3], $matches[5], $matches[6]); }, $content); - } - - if(in_array('forum_forumdisplay', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/".$_G['domain']['pregxprw']['forum']."\?mod\=forumdisplay&(amp;)?fid\=(\w+)(&page\=(\d+))?\"([^\>]*)\>/", function($matches) { return rewriteoutput('forum_forumdisplay', 0, $matches[1], $matches[3], $matches[5], $matches[6]); }, $content); - } - - if(in_array('forum_viewthread', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/".$_G['domain']['pregxprw']['forum']."\?mod\=viewthread&(amp;)?tid\=(\d+)(&extra\=(page\%3D(\d+))?)?(&page\=(\d+))?\"([^\>]*)\>/", function($matches) { return rewriteoutput('forum_viewthread', 0, $matches[1], $matches[3], $matches[8], $matches[6], $matches[9]); }, $content); - } - - if(in_array('group_group', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/".$_G['domain']['pregxprw']['forum']."\?mod\=group&(amp;)?fid\=(\d+)(&page\=(\d+))?\"([^\>]*)\>/", function($matches) { return rewriteoutput('group_group', 0, $matches[1], $matches[3], $matches[5], $matches[6]); }, $content); - } - - if(in_array('home_space', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/".$_G['domain']['pregxprw']['home']."\?mod=space&(amp;)?(uid\=(\d+)|username\=([^&]+?))\"([^\>]*)\>/", function($matches) { return rewriteoutput('home_space', 0, $matches[1], $matches[4], $matches[5], $matches[6]); }, $content); - } - - if(in_array('home_blog', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/".$_G['domain']['pregxprw']['home']."\?mod=space&(amp;)?uid\=(\d+)&(amp;)?do=blog&(amp;)?id=(\d+)\"([^\>]*)\>/", function($matches) { return rewriteoutput('home_blog', 0, $matches[1], $matches[3], $matches[6], $matches[7]); }, $content); - } - - if(in_array('forum_archiver', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/]*)\>/", function($matches) { return rewriteoutput('forum_archiver', 0, $matches[1], $matches[2], $matches[4], $matches[5]); }, $content); - } - - if(in_array('plugin', $_G['setting']['rewritestatus'])) { - $content = preg_replace_callback("/]*)\>/", function($matches) { return rewriteoutput('plugin', 0, $matches[1], $matches[2], $matches[3], $matches[4], $matches[5]); }, $content); - } - return $content; -} - function rewritedata($alldata = 1) { global $_G; $data = array(); if(!$alldata) { if(in_array('portal_topic', $_G['setting']['rewritestatus'])) { - $data['search']['portal_topic'] = "/".$_G['domain']['pregxprw']['portal']."\?mod\=topic&(amp;)?topic\=([^#]+?)?\"([^\>]*)\>/e"; - $data['replace']['portal_topic'] = "rewriteoutput('portal_topic', 0, '\\1', '\\3', '\\4')"; + $data['search']['portal_topic'] = "/".$_G['domain']['pregxprw']['portal']."\?mod\=topic&(amp;)?topic\=([^#]+?)?\"([^\>]*)\>/"; + $data['replace']['portal_topic'] = 'rewriteoutput(\'portal_topic\', 0, $matches[1], $matches[3], $matches[4])'; } if(in_array('portal_article', $_G['setting']['rewritestatus'])) { - $data['search']['portal_article'] = "/".$_G['domain']['pregxprw']['portal']."\?mod\=view&(amp;)?aid\=(\d+)(&page\=(\d+))?\"([^\>]*)\>/e"; - $data['replace']['portal_article'] = "rewriteoutput('portal_article', 0, '\\1', '\\3', '\\5', '\\6')"; + $data['search']['portal_article'] = "/".$_G['domain']['pregxprw']['portal']."\?mod\=view&(amp;)?aid\=(\d+)(&page\=(\d+))?\"([^\>]*)\>/"; + $data['replace']['portal_article'] = 'rewriteoutput(\'portal_article\', 0, $matches[1], $matches[3], $matches[5], $matches[6])'; } if(in_array('forum_forumdisplay', $_G['setting']['rewritestatus'])) { - $data['search']['forum_forumdisplay'] = "/".$_G['domain']['pregxprw']['forum']."\?mod\=forumdisplay&(amp;)?fid\=(\w+)(&page\=(\d+))?\"([^\>]*)\>/e"; - $data['replace']['forum_forumdisplay'] = "rewriteoutput('forum_forumdisplay', 0, '\\1', '\\3', '\\5', '\\6')"; + $data['search']['forum_forumdisplay'] = "/".$_G['domain']['pregxprw']['forum']."\?mod\=forumdisplay&(amp;)?fid\=(\w+)(&page\=(\d+))?\"([^\>]*)\>/"; + $data['replace']['forum_forumdisplay'] = 'rewriteoutput(\'forum_forumdisplay\', 0, $matches[1], $matches[3], $matches[5], $matches[6])'; } if(in_array('forum_viewthread', $_G['setting']['rewritestatus'])) { - $data['search']['forum_viewthread'] = "/".$_G['domain']['pregxprw']['forum']."\?mod\=viewthread&(amp;)?tid\=(\d+)(&extra\=(page\%3D(\d+))?)?(&page\=(\d+))?\"([^\>]*)\>/e"; - $data['replace']['forum_viewthread'] = "rewriteoutput('forum_viewthread', 0, '\\1', '\\3', '\\8', '\\6', '\\9')"; + $data['search']['forum_viewthread'] = "/".$_G['domain']['pregxprw']['forum']."\?mod\=viewthread&(amp;)?tid\=(\d+)(&extra\=(page\%3D(\d+))?)?(&page\=(\d+))?\"([^\>]*)\>/"; + $data['replace']['forum_viewthread'] = 'rewriteoutput(\'forum_viewthread\', 0, $matches[1], $matches[3], $matches[8], $matches[6], $matches[9])'; } if(in_array('group_group', $_G['setting']['rewritestatus'])) { - $data['search']['group_group'] = "/".$_G['domain']['pregxprw']['forum']."\?mod\=group&(amp;)?fid\=(\d+)(&page\=(\d+))?\"([^\>]*)\>/e"; - $data['replace']['group_group'] = "rewriteoutput('group_group', 0, '\\1', '\\3', '\\5', '\\6')"; + $data['search']['group_group'] = "/".$_G['domain']['pregxprw']['forum']."\?mod\=group&(amp;)?fid\=(\d+)(&page\=(\d+))?\"([^\>]*)\>/"; + $data['replace']['group_group'] = 'rewriteoutput(\'group_group\', 0, $matches[1], $matches[3], $matches[5], $matches[6])'; } if(in_array('home_space', $_G['setting']['rewritestatus'])) { - $data['search']['home_space'] = "/".$_G['domain']['pregxprw']['home']."\?mod=space&(amp;)?(uid\=(\d+)|username\=([^&]+?))\"([^\>]*)\>/e"; - $data['replace']['home_space'] = "rewriteoutput('home_space', 0, '\\1', '\\4', '\\5', '\\6')"; + $data['search']['home_space'] = "/".$_G['domain']['pregxprw']['home']."\?mod=space&(amp;)?(uid\=(\d+)|username\=([^&]+?))\"([^\>]*)\>/"; + $data['replace']['home_space'] = 'rewriteoutput(\'home_space\', 0, $matches[1], $matches[4], $matches[5], $matches[6])'; } if(in_array('home_blog', $_G['setting']['rewritestatus'])) { - $data['search']['home_blog'] = "/".$_G['domain']['pregxprw']['home']."\?mod=space&(amp;)?uid\=(\d+)&(amp;)?do=blog&(amp;)?id=(\d+)\"([^\>]*)\>/e"; - $data['replace']['home_blog'] = "rewriteoutput('home_blog', 0, '\\1', '\\3', '\\6', '\\7')"; + $data['search']['home_blog'] = "/".$_G['domain']['pregxprw']['home']."\?mod=space&(amp;)?uid\=(\d+)&(amp;)?do=blog&(amp;)?id=(\d+)\"([^\>]*)\>/"; + $data['replace']['home_blog'] = 'rewriteoutput(\'home_blog\', 0, $matches[1], $matches[3], $matches[6], $matches[7])'; } if(in_array('forum_archiver', $_G['setting']['rewritestatus'])) { - $data['search']['forum_archiver'] = "/]*)\>/e"; - $data['replace']['forum_archiver'] = "rewriteoutput('forum_archiver', 0, '\\1', '\\2', '\\4', '\\5')"; + $data['search']['forum_archiver'] = "/]*)\>/"; + $data['replace']['forum_archiver'] = 'rewriteoutput(\'forum_archiver\', 0, $matches[1], $matches[2], $matches[4], $matches[5])'; } if(in_array('plugin', $_G['setting']['rewritestatus'])) { - $data['search']['plugin'] = "/]*)\>/e"; - $data['replace']['plugin'] = "rewriteoutput('plugin', 0, '\\1', '\\2', '\\3', '\\4', '\\5')"; + $data['search']['plugin'] = "/]*)\>/"; + $data['replace']['plugin'] = 'rewriteoutput(\'plugin\', 0, $matches[1], $matches[2], $matches[3], $matches[4], $matches[5])'; } } else { $data['rulesearch']['portal_topic'] = 'topic-{name}.html'; diff --git a/source/function/function_cloudaddons.php b/source/function/function_cloudaddons.php index 1e15382..a81e556 100644 --- a/source/function/function_cloudaddons.php +++ b/source/function/function_cloudaddons.php @@ -4,30 +4,54 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: function_cloudaddons.php 34586 2014-06-05 01:45:26Z nemohou $ + * $Id: function_cloudaddons.php 35704 2015-12-01 05:13:54Z nemohou $ */ if(!defined('IN_DISCUZ')) { exit('Access Denied'); } -define('CLOUDADDONS_WEBSITE_URL', 'http://addon.discuz.com'); -define('CLOUDADDONS_DOWNLOAD_URL', 'http://addon.discuz.com/index.php'); -define('CLOUDADDONS_DOWNLOAD_IP', ''); -define('CLOUDADDONS_CHECK_URL', 'http://addon1.discuz.com'); -define('CLOUDADDONS_CHECK_IP', ''); +$addonsource = $_G['config']['addonsource'] ? $_G['config']['addonsource'] : ($_G['setting']['addon_source'] ? $_G['setting']['addon_source'] : array()); +$addon = $addonsource ? + $_G['config']['addon'][$addonsource] : + array( + 'website_url' => 'http://addon.discuz.com', + 'download_url' => 'http://addon.discuz.com/index.php', + 'download_ip' => '', + 'check_url' => 'http://addon1.discuz.com/md5/', + 'check_ip' => '', + ); + +define('CLOUDADDONS_WEBSITE_URL', $addon['website_url']); +define('CLOUDADDONS_DOWNLOAD_URL', $addon['download_url']); +define('CLOUDADDONS_DOWNLOAD_IP', $addon['download_ip']); +define('CLOUDADDONS_CHECK_URL', $addon['check_url']); +define('CLOUDADDONS_CHECK_IP', $addon['check_ip']); function cloudaddons_md5($file) { - return dfsockopen(CLOUDADDONS_CHECK_URL.'/md5/'.$file, 0, '', '', false, CLOUDADDONS_CHECK_IP, 60); + return dfsockopen(CLOUDADDONS_CHECK_URL.$file, 0, '', '', false, CLOUDADDONS_CHECK_IP, 60); } +function cloudaddons_getuniqueid() { + global $_G; + if(CLOUDADDONS_WEBSITE_URL == 'http://addon.discuz.com') { + return $_G['setting']['siteuniqueid'] ? $_G['setting']['siteuniqueid'] : C::t('common_setting')->fetch('siteuniqueid'); + } else { + if(!$_G['setting']['addon_uniqueid']) { + $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz'; + $addonuniqueid = $chars[date('y')%60].$chars[date('n')].$chars[date('j')].$chars[date('G')].$chars[date('i')].$chars[date('s')].substr(md5($_G['clientip'].TIMESTAMP), 0, 4).random(6); + C::t('common_setting')->update('addon_uniqueid', $addonuniqueid); + require_once libfile('function/cache'); + updatecache('setting'); + } + return $_G['setting']['addon_uniqueid']; + } +} function cloudaddons_url($extra) { global $_G; require_once DISCUZ_ROOT.'./source/discuz_version.php'; - - $uniqueid = $_G['setting']['siteuniqueid'] ? $_G['setting']['siteuniqueid'] : C::t('common_setting')->fetch('siteuniqueid'); - $data = 'siteuniqueid='.rawurlencode($uniqueid).'&siteurl='.rawurlencode($_G['siteurl']).'&sitever='.DISCUZ_VERSION.'/'.DISCUZ_RELEASE.'&sitecharset='.CHARSET.'&mysiteid='.$_G['setting']['my_siteid']; + $data = 'siteuniqueid='.rawurlencode(cloudaddons_getuniqueid()).'&siteurl='.rawurlencode($_G['siteurl']).'&sitever='.DISCUZ_VERSION.'/'.DISCUZ_RELEASE.'&sitecharset='.CHARSET.'&mysiteid='.$_G['setting']['my_siteid']; $param = 'data='.rawurlencode(base64_encode($data)); $param .= '&md5hash='.substr(md5($data.TIMESTAMP), 8, 8).'×tamp='.TIMESTAMP; return CLOUDADDONS_DOWNLOAD_URL.'?'.$param.$extra; @@ -37,12 +61,6 @@ function cloudaddons_check() { if(!function_exists('gzuncompress')) { cpmsg('cloudaddons_check_gzuncompress_error', '', 'error'); } - if(dfsockopen(CLOUDADDONS_WEBSITE_URL.'/image/logo.png', 4, '', '', false, CLOUDADDONS_DOWNLOAD_IP, 60) !== chr(0x89).'PNG') { - cpmsg('cloudaddons_check_url_fopen_error', '', 'error'); - } - if(dfsockopen(CLOUDADDONS_CHECK_URL.'/logo.png', 4, '', '', false, CLOUDADDONS_CHECK_IP, 60) !== chr(0x89).'PNG') { - cpmsg('cloudaddons_check_url_fopen_error', '', 'error'); - } foreach(array('download', 'addonmd5') as $path) { $tmpdir = DISCUZ_ROOT.'./data/'.$path.'/'.random(5); $tmpfile = $tmpdir.'/index.html'; diff --git a/source/function/function_core.php b/source/function/function_core.php index de463d6..64dd76b 100644 --- a/source/function/function_core.php +++ b/source/function/function_core.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: function_core.php 35297 2015-06-05 03:28:45Z hypowang $ + * $Id: function_core.php 35335 2015-06-17 01:57:38Z hypowang $ */ if(!defined('IN_DISCUZ')) { @@ -518,6 +518,7 @@ function checktplrefresh($maintpl, $subtpl, $timecompare, $templateid, $cachefil function template($file, $templateid = 0, $tpldir = '', $gettplfile = 0, $primaltpl='') { global $_G; + static $_init_style = false; if($_init_style === false) { C::app()->_init_style(); @@ -636,7 +637,6 @@ function template($file, $templateid = 0, $tpldir = '', $gettplfile = 0, $primal if($gettplfile) { return $tplfile; } - checktplrefresh($tplfile, $tplfile, @filemtime(DISCUZ_ROOT.$cachefile), $templateid, $cachefile, $tpldir, $file); return DISCUZ_ROOT.$cachefile; } @@ -1086,7 +1086,10 @@ function output_replace($content) { $_G['setting']['output']['preg']['replace'] = str_replace('{CURHOST}', $_G['siteurl'], $_G['setting']['output']['preg']['replace']); } - $content = preg_replace($_G['setting']['output']['preg']['search'], $_G['setting']['output']['preg']['replace'], $content); + foreach ($_G['setting']['output']['preg']['search'] as $key => $value) { + $content = preg_replace_callback($value, create_function('$matches', 'return '.$_G['setting']['output']['preg']['replace'][$key].';'), $content); + } + } return $content; @@ -1521,7 +1524,7 @@ function dreferer($default = '') { } $_G['referer'] = durlencode($_G['referer']); - return$_G['referer']; + return $_G['referer']; } function ftpcmd($cmd, $arg1 = '') { diff --git a/source/function/function_discuzcode.php b/source/function/function_discuzcode.php index 39aecca..341e873 100644 --- a/source/function/function_discuzcode.php +++ b/source/function/function_discuzcode.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: function_discuzcode.php 35219 2015-02-27 08:05:27Z nemohou $ + * $Id: function_discuzcode.php 35670 2015-11-10 01:37:04Z nemohou $ */ if(!defined('IN_DISCUZ')) { @@ -300,7 +300,7 @@ function parseurl($url, $text, $scheme) { function parseflash($w, $h, $url) { $w = !$w ? 550 : $w; $h = !$h ? 400 : $h; - preg_match("/((https?){1}:\/\/|www\.)[^\[\"'\?]+(\.swf|\.flv)(\?.+)?/i", $url, $matches); + preg_match("/((https?){1}:\/\/|www\.)[^\r\n\[\"'\?]+(\.swf|\.flv)(\?[^\r\n\[\"'\?]+)?/i", $url, $matches); $url = $matches[0]; $randomid = 'swf_'.random(3); if(fileext($url) != 'flv') { @@ -485,7 +485,7 @@ function parseflv($url, $width = 0, $height = 0) { $flv = $url; } elseif(strpos($lowerurl, 'v.youku.com/v_show/') !== FALSE) { $ctx = stream_context_create(array('http' => array('timeout' => 10))); - if(preg_match("/http:\/\/v.youku.com\/v_show\/id_([^\/]+)(.html|)/i", $url, $matches)) { + if(preg_match("/^http:\/\/v.youku.com\/v_show\/id_([^\/]+)(.html|)/i", $url, $matches)) { $flv = 'http://player.youku.com/player.php/sid/'.$matches[1].'/v.swf'; $iframe = 'http://player.youku.com/embed/'.$matches[1]; if(!$width && !$height) { @@ -499,7 +499,7 @@ function parseflv($url, $width = 0, $height = 0) { } } } elseif(strpos($lowerurl, 'tudou.com/programs/view/') !== FALSE) { - if(preg_match("/http:\/\/(www.)?tudou.com\/programs\/view\/([^\/]+)/i", $url, $matches)) { + if(preg_match("/^http:\/\/(www.)?tudou.com\/programs\/view\/([^\/]+)/i", $url, $matches)) { $flv = 'http://www.tudou.com/v/'.$matches[2]; $iframe = 'http://www.tudou.com/programs/view/html5embed.action?code='.$matches[2]; if(!$width && !$height) { @@ -510,7 +510,7 @@ function parseflv($url, $width = 0, $height = 0) { } } } elseif(strpos($lowerurl, 'v.ku6.com/show/') !== FALSE) { - if(preg_match("/http:\/\/v.ku6.com\/show\/([^\/]+).html/i", $url, $matches)) { + if(preg_match("/^http:\/\/v.ku6.com\/show\/([^\/]+).html/i", $url, $matches)) { $flv = 'http://player.ku6.com/refer/'.$matches[1].'/v.swf'; if(!$width && !$height) { $api = 'http://vo.ku6.com/fetchVideo4Player/1/'.$matches[1].'.html'; @@ -521,7 +521,7 @@ function parseflv($url, $width = 0, $height = 0) { } } } elseif(strpos($lowerurl, 'v.ku6.com/special/show_') !== FALSE) { - if(preg_match("/http:\/\/v.ku6.com\/special\/show_\d+\/([^\/]+).html/i", $url, $matches)) { + if(preg_match("/^http:\/\/v.ku6.com\/special\/show_\d+\/([^\/]+).html/i", $url, $matches)) { $flv = 'http://player.ku6.com/refer/'.$matches[1].'/v.swf'; if(!$width && !$height) { $api = 'http://vo.ku6.com/fetchVideo4Player/1/'.$matches[1].'.html'; @@ -532,7 +532,7 @@ function parseflv($url, $width = 0, $height = 0) { } } } elseif(strpos($lowerurl, 'www.youtube.com/watch?') !== FALSE) { - if(preg_match("/http:\/\/www.youtube.com\/watch\?v=([^\/&]+)&?/i", $url, $matches)) { + if(preg_match("/^http:\/\/www.youtube.com\/watch\?v=([^\/&]+)&?/i", $url, $matches)) { $flv = 'http://www.youtube.com/v/'.$matches[1].'&hl=zh_CN&fs=1'; $iframe = 'http://www.youtube.com/embed/'.$matches[1]; if(!$width && !$height) { @@ -544,28 +544,8 @@ function parseflv($url, $width = 0, $height = 0) { } } } - } elseif(strpos($lowerurl, 'tv.mofile.com/') !== FALSE) { - if(preg_match("/http:\/\/tv.mofile.com\/([^\/]+)/i", $url, $matches)) { - $flv = 'http://tv.mofile.com/cn/xplayer.swf?v='.$matches[1]; - if(!$width && !$height) { - $str = file_get_contents($url, false, $ctx); - if(!empty($str) && preg_match("/thumbpath=\"(.+?)\";/i", $str, $image)) { - $imgurl = trim($image[1]); - } - } - } - } elseif(strpos($lowerurl, 'v.mofile.com/show/') !== FALSE) { - if(preg_match("/http:\/\/v.mofile.com\/show\/([^\/]+).shtml/i", $url, $matches)) { - $flv = 'http://tv.mofile.com/cn/xplayer.swf?v='.$matches[1]; - if(!$width && !$height) { - $str = file_get_contents($url, false, $ctx); - if(!empty($str) && preg_match("/thumbpath=\"(.+?)\";/i", $str, $image)) { - $imgurl = trim($image[1]); - } - } - } } elseif(strpos($lowerurl, 'video.sina.com.cn/v/b/') !== FALSE) { - if(preg_match("/http:\/\/video.sina.com.cn\/v\/b\/(\d+)-(\d+).html/i", $url, $matches)) { + if(preg_match("/^http:\/\/video.sina.com.cn\/v\/b\/(\d+)-(\d+).html/i", $url, $matches)) { $flv = 'http://vhead.blog.sina.com.cn/player/outer_player.swf?vid='.$matches[1]; if(!$width && !$height) { $api = 'http://interface.video.sina.com.cn/interface/common/getVideoImage.php?vid='.$matches[1]; @@ -576,7 +556,7 @@ function parseflv($url, $width = 0, $height = 0) { } } } elseif(strpos($lowerurl, 'you.video.sina.com.cn/b/') !== FALSE) { - if(preg_match("/http:\/\/you.video.sina.com.cn\/b\/(\d+)-(\d+).html/i", $url, $matches)) { + if(preg_match("/^http:\/\/you.video.sina.com.cn\/b\/(\d+)-(\d+).html/i", $url, $matches)) { $flv = 'http://vhead.blog.sina.com.cn/player/outer_player.swf?vid='.$matches[1]; if(!$width && !$height) { $api = 'http://interface.video.sina.com.cn/interface/common/getVideoImage.php?vid='.$matches[1]; @@ -587,7 +567,7 @@ function parseflv($url, $width = 0, $height = 0) { } } } elseif(strpos($lowerurl, 'http://my.tv.sohu.com/u/') !== FALSE) { - if(preg_match("/http:\/\/my.tv.sohu.com\/u\/[^\/]+\/(\d+)/i", $url, $matches)) { + if(preg_match("/^http:\/\/my.tv.sohu.com\/u\/[^\/]+\/(\d+)/i", $url, $matches)) { $flv = 'http://v.blog.sohu.com/fo/v4/'.$matches[1]; if(!$width && !$height) { $api = 'http://v.blog.sohu.com/videinfo.jhtml?m=view&id='.$matches[1].'&outType=3'; @@ -598,7 +578,7 @@ function parseflv($url, $width = 0, $height = 0) { } } } elseif(strpos($lowerurl, 'http://v.blog.sohu.com/u/') !== FALSE) { - if(preg_match("/http:\/\/v.blog.sohu.com\/u\/[^\/]+\/(\d+)/i", $url, $matches)) { + if(preg_match("/^http:\/\/v.blog.sohu.com\/u\/[^\/]+\/(\d+)/i", $url, $matches)) { $flv = 'http://v.blog.sohu.com/fo/v4/'.$matches[1]; if(!$width && !$height) { $api = 'http://v.blog.sohu.com/videinfo.jhtml?m=view&id='.$matches[1].'&outType=3'; @@ -608,20 +588,12 @@ function parseflv($url, $width = 0, $height = 0) { } } } - } elseif(strpos($lowerurl, 'http://www.ouou.com/fun_funview') !== FALSE) { - $str = file_get_contents($url, false, $ctx); - if(!empty($str) && preg_match("/var\sflv\s=\s'(.+?)';/i", $str, $matches)) { - $flv = $_G['style']['imgdir'].'/flvplayer.swf?&autostart=true&file='.urlencode($matches[1]); - if(!$width && !$height && preg_match("/var\simga=\s'(.+?)';/i", $str, $image)) { - $imgurl = trim($image[1]); - } - } } elseif(strpos($lowerurl, 'http://www.56.com') !== FALSE) { - if(preg_match("/http:\/\/www.56.com\/\S+\/play_album-aid-(\d+)_vid-(.+?).html/i", $url, $matches)) { + if(preg_match("/^http:\/\/www.56.com\/\S+\/play_album-aid-(\d+)_vid-(.+?).html/i", $url, $matches)) { $flv = 'http://player.56.com/v_'.$matches[2].'.swf'; $matches[1] = $matches[2]; - } elseif(preg_match("/http:\/\/www.56.com\/\S+\/([^\/]+).html/i", $url, $matches)) { + } elseif(preg_match("/^http:\/\/www.56.com\/\S+\/([^\/]+).html/i", $url, $matches)) { $flv = 'http://player.56.com/'.$matches[1].'.swf'; } if(!$width && !$height && !empty($matches[1])) { diff --git a/source/function/function_followcode.php b/source/function/function_followcode.php index 9045602..413c5d5 100644 --- a/source/function/function_followcode.php +++ b/source/function/function_followcode.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: function_followcode.php 34308 2014-01-20 09:45:13Z hypowang $ + * $Id: function_followcode.php 35665 2015-11-06 04:09:22Z nemohou $ */ if(!defined('IN_DISCUZ')) { @@ -390,8 +390,15 @@ function fparseaudio($url) { function fmakeflv($flv) { $randomid = 'video_'.random(3); $flv = is_array($flv) ? $flv : array('flv' => $flv); + if(!preg_match("/^((https?){1}:\/\/|www\.)[^\[\"']+$/i", $flv['flv'])) { + return fcodedisp('', 'video'); + } if(!empty($flv['imgurl'])) { - $html = '
'.lang('space', 'follow_click_play').'
'; + if(!preg_match("/^((https?){1}:\/\/|www\.)[^\[\"']+$/i", $flv['imgurl'])) { + $html = ''; + } else { + $html = '
'.lang('space', 'follow_click_play').'
'; + } } else { $html = ''.lang('space', 'follow_click_play').''; } diff --git a/source/function/function_profile.php b/source/function/function_profile.php index 9c559ae..64d725e 100644 --- a/source/function/function_profile.php +++ b/source/function/function_profile.php @@ -326,7 +326,7 @@ function profile_show($fieldid, $space=array(), $getalone = false) { } elseif($fieldid == 'position') { return nl2br($space['office'] ? $space['office'] : $space['position']); } elseif($fieldid == 'qq') { - return '
QQ'; + return 'QQ'; } elseif($fieldid == 'qqnumber') { return $space['qq']; } else { @@ -464,4 +464,4 @@ function get_zodiac($birthyear) { $idx = (($birthyear - 1900) % 12) + 1; return $idx > 0 && $idx <= 12 ? lang('space', 'zodiac_'. $idx) : ''; } -?> \ No newline at end of file +?> diff --git a/source/include/misc/misc_ajax.php b/source/include/misc/misc_ajax.php index 8ecb228..767487b 100644 --- a/source/include/misc/misc_ajax.php +++ b/source/include/misc/misc_ajax.php @@ -228,7 +228,7 @@ if($values[3]) { $level++; } - $showlevel = $level; + $showlevel = $showlevel < $level ? $showlevel : $level; $elems = array(); if($_GET['province']) { $elems = array($_GET['province'], $_GET['city'], $_GET['district'], $_GET['community']); diff --git a/source/module/forum/forum_viewthread.php b/source/module/forum/forum_viewthread.php index d574618..f0e1944 100644 --- a/source/module/forum/forum_viewthread.php +++ b/source/module/forum/forum_viewthread.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: forum_viewthread.php 35233 2015-03-11 03:35:43Z nemohou $ + * $Id: forum_viewthread.php 35494 2015-08-06 09:31:59Z nemohou $ */ if(!defined('IN_DISCUZ')) { @@ -18,6 +18,9 @@ $thread = & $_G['forum_thread']; $forum = & $_G['forum']; +if(!empty($_GET['checkrush']) && preg_match('/[^0-9_]/', $_GET['checkrush'])) { + $_GET['checkrush'] = ''; +} if(!$_G['forum_thread'] || !$_G['forum']) { showmessage('thread_nonexistence'); } @@ -1348,7 +1351,7 @@ function viewthread_baseinfo($post, $extra) { if($field != 'qq') { $v = profile_show($field, $post); } elseif(!empty($post['qq'])) { - $v = 'QQ'; + $v = 'QQ'; } if($v) { if(!isset($_G['cache']['profilesetting'])) { @@ -1591,6 +1594,8 @@ function parsebegin($linkaddr, $imgflashurl, $w = 0, $h = 0, $type = 0, $s = 0) preg_match("/((https?){1}:\/\/|www\.)[^\[\"']+/i", $imgflashurl, $matches); $imgflashurl = $matches[0]; $fileext = fileext($imgflashurl); + preg_match("/((https?){1}:\/\/|www\.)[^\[\"']+/i", $linkaddr, $matches); + $linkaddr = $matches[0]; $randomid = 'swf_'.random(3); $w = ($w >=400 && $w <=1024) ? $w : 900; $h = ($h >=300 && $h <=640) ? $h : 500; @@ -1658,4 +1663,4 @@ function _checkviewgroup() { } } -?> \ No newline at end of file +?> diff --git a/source/module/misc/misc_swfupload.php b/source/module/misc/misc_swfupload.php index 1df19fc..b69e19a 100644 --- a/source/module/misc/misc_swfupload.php +++ b/source/module/misc/misc_swfupload.php @@ -4,7 +4,7 @@ * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * - * $Id: misc_swfupload.php 34113 2013-10-12 06:42:05Z nemohou $ + * $Id: misc_swfupload.php 35377 2015-07-07 05:20:23Z nemohou $ */ if(!defined('IN_DISCUZ')) { @@ -56,8 +56,12 @@ $_FILES["Filedata"]['name'] = addslashes(diconv(urldecode($_FILES["Filedata"]['name']), 'UTF-8')); $upload->init($_FILES['Filedata'], 'forum'); $attach = $upload->attach; - $upload->save(); - $errorcode = 0; + if(!$upload->attach['isimage']) { + $errorcode = 4; + } else { + $upload->save(); + $errorcode = 0; + } if($upload->error()) { $errorcode = 4; } else { diff --git a/source/plugin/dzapp_haodai/admincp_callback.inc.php b/source/plugin/dzapp_haodai/admincp_callback.inc.php index d01a980..fa77939 100644 --- a/source/plugin/dzapp_haodai/admincp_callback.inc.php +++ b/source/plugin/dzapp_haodai/admincp_callback.inc.php @@ -1,88 +1,89 @@ - - */ - -include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; -include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; -@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_setting.php'; -if(!defined('IN_DISCUZ') || !defined('IN_DISCUZ')) { - exit('Access Denied'); -} -$lang = array_merge($lang, $scriptlang['dzapp_haodai']); - -if(!$_GET['want']){ - showtableheader($lang['callback_info'].' ['.$lang['click_to_import'].']'); - showtablerow('', array('class="td24"'), array($lang['appkey'], HD_AKEY)); - showtablerow('', array('class="td24"'), array($lang['appsecret'], HD_SKEY)); - showtablerow('', array('class="td24"'), array($lang['ref'], HD_REF)); - showtablerow('', array('class="td24"'), array($lang['callback_url'], HD_CALLBACK_URL)); - showtablerow('', array('class="td24"'), array($lang['host_url'], HD_API_HOST)); - if(!isset($hd_token)){ - $oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY); - $auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL); - showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['callback_expired'].' ')); - }else{ - if(isset($hd_token['expires']) && TIMESTAMP > $hd_token['expires'] - 3600){ - $client = new HaoDaiClient(HD_AKEY, HD_SKEY); - $client->set_debug(0); - $result = $client->haodai_check_AccessToken(); - if($result['rs_code'] != '1000'){ - if($result['rs_code'] == '2100'){ - $new_hd_token = $client->oauth->getAccessToken('token', $hd_token); - require_once libfile('function/cache'); - writetocache('dzapp_haodai_setting', getcachevars(array('hd_token' => $new_hd_token))); - showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['valid'].'')); - }else{ - $auth_url = $client->oauth->getAuthorizeURL(HD_CALLBACK_URL); - showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['callback_expired'].' ')); - } - }else{ - showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['valid'].'')); - } - }elseif(isset($hd_token['expires']) && TIMESTAMP < $hd_token['expires'] - 3600){ - showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['valid'].'')); - }else{ - $oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY); - $auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL); - showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['callback_expired'].' ')); - } - } - showtablefooter(); -}elseif($_GET['want'] == 'import'){ - if(!submitcheck('ok')){ - showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback&want=import'); - showtableheader('import_callback'); - showsetting($lang['appkey'], 'AKEY', defined('HD_AKEY') ? HD_AKEY : '', 'text'); - showsetting($lang['appsecret'], 'SKEY', defined('HD_SKEY') ? HD_SKEY : '', 'text'); - showsetting($lang['ref'], 'REF', defined('HD_REF') ? HD_REF : '', 'text'); - showsetting($lang['callback_url'], 'CALLBACK_URL', defined('HD_CALLBACK_URL') ? HD_CALLBACK_URL : $_G['siteurl'].'plugin.php?id=dzapp_haodai:callback', 'text'); - showsetting($lang['host_url'], 'API_HOST', defined('HD_API_HOST') ? HD_API_HOST : 'http://api.haodai.com/', 'text'); - showsubmit('ok', "ok"); - showtablefooter(); - showformfooter(); - }else{ - $config = array(); - $config['HD_REF'] = $_GET['REF']; - $config['HD_AKEY'] = $_GET['AKEY']; - $config['HD_SKEY'] = $_GET['SKEY']; - $config['HD_CALLBACK_URL'] = $_GET['CALLBACK_URL']; - $config['HD_API_HOST'] = $_GET['API_HOST']; - $config['HD_CITY'] = defined('HD_CITY') ? HD_CITY : ''; - $configfile = " $value){ - $configfile .= "define('$key', '$value');\r\n"; - } - $configfile .= "?>"; - $file = DISCUZ_ROOT."./data/dzapp_haodai_config.php"; - $fp = fopen($file, 'w'); - fwrite($fp, $configfile); - fclose($fp); - cpmsg('import_succeed', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback', 'succeed'); - } -} - + + */ + +if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) exit('Access Denied!'); + +include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; +include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; +@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_setting.php'; + +$lang = array_merge($lang, $scriptlang['dzapp_haodai']); + +if(!$_GET['want']){ + showtableheader($lang['callback_info'].' ['.$lang['click_to_import'].']'); + showtablerow('', array('class="td24"'), array($lang['appkey'], HD_AKEY)); + showtablerow('', array('class="td24"'), array($lang['appsecret'], HD_SKEY)); + showtablerow('', array('class="td24"'), array($lang['ref'], HD_REF)); + showtablerow('', array('class="td24"'), array($lang['callback_url'], HD_CALLBACK_URL)); + showtablerow('', array('class="td24"'), array($lang['host_url'], HD_API_HOST)); + if(!isset($hd_token)){ + $oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY); + $auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL); + showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['callback_expired'].' ')); + }else{ + if(isset($hd_token['expires']) && TIMESTAMP > $hd_token['expires'] - 3600){ + $client = new HaoDaiClient(HD_AKEY, HD_SKEY); + $client->set_debug(0); + $result = $client->haodai_check_AccessToken(); + if($result['rs_code'] != '1000'){ + if($result['rs_code'] == '2100'){ + $new_hd_token = $client->oauth->getAccessToken('token', $hd_token); + require_once libfile('function/cache'); + writetocache('dzapp_haodai_setting', getcachevars(array('hd_token' => $new_hd_token))); + showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['valid'].'')); + }else{ + $auth_url = $client->oauth->getAuthorizeURL(HD_CALLBACK_URL); + showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['callback_expired'].' ')); + } + }else{ + showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['valid'].'')); + } + }elseif(isset($hd_token['expires']) && TIMESTAMP < $hd_token['expires'] - 3600){ + showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['valid'].'')); + }else{ + $oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY); + $auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL); + showtablerow('', array('class="td24"'), array($lang['callback_status'], ''.$lang['callback_expired'].' ')); + } + } + showtablefooter(); +}elseif($_GET['want'] == 'import'){ + if(!submitcheck('ok')){ + showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback&want=import'); + showtableheader('import_callback'); + showsetting($lang['appkey'], 'AKEY', defined('HD_AKEY') ? HD_AKEY : '', 'text'); + showsetting($lang['appsecret'], 'SKEY', defined('HD_SKEY') ? HD_SKEY : '', 'text'); + showsetting($lang['ref'], 'REF', defined('HD_REF') ? HD_REF : '', 'text'); + showsetting($lang['callback_url'], 'CALLBACK_URL', defined('HD_CALLBACK_URL') ? HD_CALLBACK_URL : $_G['siteurl'].'plugin.php?id=dzapp_haodai:callback', 'text'); + showsetting($lang['host_url'], 'API_HOST', defined('HD_API_HOST') ? HD_API_HOST : 'http://api.haodai.com/', 'text'); + showsubmit('ok', "ok"); + showtablefooter(); + showformfooter(); + }else{ + $config = array(); + $config['HD_REF'] = $_GET['REF']; + $config['HD_AKEY'] = $_GET['AKEY']; + $config['HD_SKEY'] = $_GET['SKEY']; + $config['HD_CALLBACK_URL'] = $_GET['CALLBACK_URL']; + $config['HD_API_HOST'] = $_GET['API_HOST']; + $config['HD_CITY'] = defined('HD_CITY') ? HD_CITY : ''; + $config = daddslashes($config); + $configfile = " $value){ + $configfile .= "define('$key', '$value');\r\n"; + } + $configfile .= "?>"; + $file = DISCUZ_ROOT."./data/dzapp_haodai_config.php"; + $fp = fopen($file, 'w'); + fwrite($fp, $configfile); + fclose($fp); + cpmsg('import_succeed', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback', 'succeed'); + } +} + ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/admincp_city.inc.php b/source/plugin/dzapp_haodai/admincp_city.inc.php index c067131..672bd68 100644 --- a/source/plugin/dzapp_haodai/admincp_city.inc.php +++ b/source/plugin/dzapp_haodai/admincp_city.inc.php @@ -1,82 +1,86 @@ - - */ - -include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; -include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; -@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_setting.php'; -if(!defined('IN_DISCUZ') || !defined('IN_DISCUZ')) { - exit('Access Denied'); -} -loadcache('plugin'); -$lang = array_merge($lang, $scriptlang['dzapp_haodai']); -$var = $_G['cache']['plugin']['dzapp_haodai']; - -if(isset($hd_token)){ - if(!submitcheck('submit')){ - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php') > $var['refreshtime']){ - $client = new HaoDaiClient(HD_AKEY, HD_SKEY, $hd_token['access_token']); - $client->set_debug(0); - $result = $client->get_xindai_zones(); - $zonelist = $result['items']; - if(count($zonelist) > 0){ - $zones = array(); - foreach($zonelist as $value){ - if($value['s_EN'] == 'www') continue; - $value['zone_name'] = diconv($value['zone_name'], 'UTF-8', CHARSET); - $value['Province'] = diconv($value['Province'], 'UTF-8', CHARSET); - $value['area'] = diconv($value['area'], 'UTF-8', CHARSET); - $zones[$value['s_EN']] = $value['zone_name']; - $zonesort['provinces'][$value['Province']][$value['s_EN']] = $value['zone_name']; - $zonesort['letter_raw'][$value['letter']][$value['s_EN']] = $value['zone_name']; - $zonesort['area'][$value['area']][$value['s_EN']] = $value['zone_name']; - } - foreach(range('A', 'Z') as $letter) { - if(!empty($zonesort['letter_raw'][$letter])) $zonesort['letter'][$letter] = $zonesort['letter_raw'][$letter]; - } - require_once libfile('function/cache'); - writetocache('dzapp_haodai_city', getcachevars(array('zones' => $zones))); - writetocache('dzapp_haodai_city_sort', getcachevars(array('zonesort' => $zonesort))); - }else{ - cpmsg('callback_error_admin', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback', 'error'); - } - } - $catselect = "'; - showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_city'); - showtableheader($lang['choosecity']); - showsetting($lang['localcity'], '', '', $catselect); - showtablefooter(); - showsubmit('submit', 'submit'); - showformfooter(); - }else{ - $config = array(); - $config['HD_REF'] = HD_REF; - $config['HD_AKEY'] = HD_AKEY; - $config['HD_SKEY'] = HD_SKEY; - $config['HD_CALLBACK_URL'] = HD_CALLBACK_URL; - $config['HD_API_HOST'] = HD_API_HOST; - $config['HD_CITY'] = $_GET['CITY']; - $configfile = " $value){ - $configfile .= "define('$key', '$value');\r\n"; - } - $configfile .= "?>"; - $file = DISCUZ_ROOT."./data/dzapp_haodai_config.php"; - $fp = fopen($file, 'w'); - fwrite($fp, $configfile); - fclose($fp); - cpmsg('setting_succeed', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_city', 'succeed'); - } -}else{ - cpmsg('callback_error_admin', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback', 'error'); -} - + + */ + +if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { + exit('Access Denied'); +} + +include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; +include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; +@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_setting.php'; + +loadcache('plugin'); +$lang = array_merge($lang, $scriptlang['dzapp_haodai']); +$var = $_G['cache']['plugin']['dzapp_haodai']; + +if(isset($hd_token)){ + if(!submitcheck('submit')){ + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php') > $var['refreshtime']){ + $client = new HaoDaiClient(HD_AKEY, HD_SKEY, $hd_token['access_token']); + $client->set_debug(0); + $result = $client->get_xindai_zones(); + $zonelist = $result['items']; + if(count($zonelist) > 0){ + $zones = array(); + foreach($zonelist as $value){ + if($value['s_EN'] == 'www') continue; + $value['zone_name'] = diconv($value['zone_name'], 'UTF-8', CHARSET); + $value['Province'] = diconv($value['Province'], 'UTF-8', CHARSET); + $value['area'] = diconv($value['area'], 'UTF-8', CHARSET); + $zones[$value['s_EN']] = $value['zone_name']; + $zonesort['provinces'][$value['Province']][$value['s_EN']] = $value['zone_name']; + $zonesort['letter_raw'][$value['letter']][$value['s_EN']] = $value['zone_name']; + $zonesort['area'][$value['area']][$value['s_EN']] = $value['zone_name']; + } + foreach(range('A', 'Z') as $letter) { + if(!empty($zonesort['letter_raw'][$letter])) $zonesort['letter'][$letter] = $zonesort['letter_raw'][$letter]; + } + require_once libfile('function/cache'); + writetocache('dzapp_haodai_city', getcachevars(array('zones' => $zones))); + writetocache('dzapp_haodai_city_sort', getcachevars(array('zonesort' => $zonesort))); + }else{ + cpmsg('callback_error_admin', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback', 'error'); + } + } + $catselect = "'; + showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_city'); + showtableheader($lang['choosecity']); + showsetting($lang['localcity'], '', '', $catselect); + showtablefooter(); + showsubmit('submit', 'submit'); + showformfooter(); + }else{ + $config = array(); + $config['HD_REF'] = HD_REF; + $config['HD_AKEY'] = HD_AKEY; + $config['HD_SKEY'] = HD_SKEY; + $config['HD_CALLBACK_URL'] = HD_CALLBACK_URL; + $config['HD_API_HOST'] = HD_API_HOST; + $config['HD_CITY'] = $_GET['CITY']; + $config = daddslashes($config); + $configfile = " $value){ + $configfile .= "define('$key', '$value');\r\n"; + } + $configfile .= "?>"; + $file = DISCUZ_ROOT."./data/dzapp_haodai_config.php"; + $fp = fopen($file, 'w'); + fwrite($fp, $configfile); + fclose($fp); + cpmsg('setting_succeed', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_city', 'succeed'); + } +}else{ + cpmsg('callback_error_admin', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback', 'error'); +} + ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/admincp_rewrite.inc.php b/source/plugin/dzapp_haodai/admincp_rewrite.inc.php index 388e57d..374b41b 100644 --- a/source/plugin/dzapp_haodai/admincp_rewrite.inc.php +++ b/source/plugin/dzapp_haodai/admincp_rewrite.inc.php @@ -1,70 +1,73 @@ - - */ - - -echo '

'.lang('plugin/dzapp_haodai','rewrite_intro_title').'

-
-'.lang('plugin/dzapp_haodai','rewrite_intro_info').'
-
-

Apache

-
-RewriteCond %{QUERY_STRING} ^(.*)$
-RewriteRule ^haodai\.html$ plugin.php?id=dzapp_haodai&%1
-RewriteCond %{QUERY_STRING} ^(.*)$
-RewriteRule ^haodai-calculator-([a-z]+)\.html$ plugin.php?id=dzapp_haodai&action=calc&type=$1&%2
-RewriteCond %{QUERY_STRING} ^(.*)$
-RewriteRule ^haodai-(view|apply)-([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html$ plugin.php?id=dzapp_haodai&action=$1&xd_id=$2&xd_type=$3&month=$4&money=$5&%6
-RewriteCond %{QUERY_STRING} ^(.*)$
-RewriteRule ^haodai-list-([a-z]+)-([0-9]+)\.html$ plugin.php?id=dzapp_haodai&action=list&type=$1&page=$2&%3
-RewriteCond %{QUERY_STRING} ^(.*)$
-RewriteRule ^haodai-news-([0-9]+)\.html$ plugin.php?id=dzapp_haodai&action=news&aid=$1&%2
-
-

IIS6

-
-RewriteRule ^(.*)/haodai\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&$3
-RewriteRule ^(.*)/haodai-calculator-([a-z]+)\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&action=calc&type=$2&$4
-RewriteRule ^(.*)/haodai-(view|apply)-([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&action=$2&xd_id=$3&xd_type=$4&month=$5&money=$6&$8
-RewriteRule ^(.*)/haodai-list-([a-z]+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&action=list&type=$2&page=$3&$5
-RewriteRule ^(.*)/haodai-news-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&action=news&aid=$2&$4
-
-

IIS7

-
-<rewrite>
-	<rules>
-		<rule name="haodai">
-			<match url="^(.*/)*haodai.html\?*(.*)$" />
-			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&{R:2}" />
-		</rule>
-		<rule name="haodai_calculator">
-			<match url="^(.*/)*haodai-calculator-([a-z]+).html\?*(.*)$" />
-			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&action=calc&type={R:2}&{R:3}" />
-		</rule>
-		<rule name="haodai_view_apply">
-			<match url="^(.*/)*haodai-(view|apply)-([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
-			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&action={R:2}&xd_id={R:3}&xd_type={R:4}&month={R:5}&money={R:6}&{R:7}" />
-		</rule>
-		<rule name="haodai_list">
-			<match url="^(.*/)*haodai-list-([a-z]+)-([0-9]+).html\?*(.*)$" />
-			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&action=list&type={R:2}&page={R:3}&{R:4}" />
-		</rule>
-		<rule name="haodai_news">
-			<match url="^(.*/)*haodai-news-([0-9]+).html\?*(.*)$" />
-			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&action=news&aid={R:2}&{R:3}" />
-		</rule>
-	</rules>
-</rewrite>
-
-

Nginx

-
-rewrite ^([^\.]*)/haodai\.html$ $1/plugin.php?id=dzapp_haodai last;
-rewrite ^([^\.]*)/haodai-calculator-([a-z]+)\.html$ $1/plugin.php?id=dzapp_haodai&action=calc&type=$2 last;
-rewrite ^([^\.]*)/haodai-(view|apply)-([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=dzapp_haodai&action=$2&xd_id=$3&xd_type=$4&month=$5&money=$6 last;
-rewrite ^([^\.]*)/haodai-list-([a-z]+)-([0-9]+)\.html$ $1/plugin.php?id=dzapp_haodai&action=list&type=$2&page=$3 last;
-rewrite ^([^\.]*)/haodai-news-([0-9]+)\.html$ $1/plugin.php?id=dzapp_haodai&action=news&aid=$2 last;
-
'; + + */ + +if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { + exit('Access Denied'); +} + +echo '

'.lang('plugin/dzapp_haodai','rewrite_intro_title').'

+
+'.lang('plugin/dzapp_haodai','rewrite_intro_info').'
+
+

Apache

+
+RewriteCond %{QUERY_STRING} ^(.*)$
+RewriteRule ^haodai\.html$ plugin.php?id=dzapp_haodai&%1
+RewriteCond %{QUERY_STRING} ^(.*)$
+RewriteRule ^haodai-calculator-([a-z]+)\.html$ plugin.php?id=dzapp_haodai&action=calc&type=$1&%2
+RewriteCond %{QUERY_STRING} ^(.*)$
+RewriteRule ^haodai-(view|apply)-([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html$ plugin.php?id=dzapp_haodai&action=$1&xd_id=$2&xd_type=$3&month=$4&money=$5&%6
+RewriteCond %{QUERY_STRING} ^(.*)$
+RewriteRule ^haodai-list-([a-z]+)-([0-9]+)\.html$ plugin.php?id=dzapp_haodai&action=list&type=$1&page=$2&%3
+RewriteCond %{QUERY_STRING} ^(.*)$
+RewriteRule ^haodai-news-([0-9]+)\.html$ plugin.php?id=dzapp_haodai&action=news&aid=$1&%2
+
+

IIS6

+
+RewriteRule ^(.*)/haodai\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&$3
+RewriteRule ^(.*)/haodai-calculator-([a-z]+)\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&action=calc&type=$2&$4
+RewriteRule ^(.*)/haodai-(view|apply)-([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&action=$2&xd_id=$3&xd_type=$4&month=$5&money=$6&$8
+RewriteRule ^(.*)/haodai-list-([a-z]+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&action=list&type=$2&page=$3&$5
+RewriteRule ^(.*)/haodai-news-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=dzapp_haodai&action=news&aid=$2&$4
+
+

IIS7

+
+<rewrite>
+	<rules>
+		<rule name="haodai">
+			<match url="^(.*/)*haodai.html\?*(.*)$" />
+			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&{R:2}" />
+		</rule>
+		<rule name="haodai_calculator">
+			<match url="^(.*/)*haodai-calculator-([a-z]+).html\?*(.*)$" />
+			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&action=calc&type={R:2}&{R:3}" />
+		</rule>
+		<rule name="haodai_view_apply">
+			<match url="^(.*/)*haodai-(view|apply)-([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
+			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&action={R:2}&xd_id={R:3}&xd_type={R:4}&month={R:5}&money={R:6}&{R:7}" />
+		</rule>
+		<rule name="haodai_list">
+			<match url="^(.*/)*haodai-list-([a-z]+)-([0-9]+).html\?*(.*)$" />
+			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&action=list&type={R:2}&page={R:3}&{R:4}" />
+		</rule>
+		<rule name="haodai_news">
+			<match url="^(.*/)*haodai-news-([0-9]+).html\?*(.*)$" />
+			<action type="Rewrite" url="{R:1}/plugin.php\?id=dzapp_haodai&action=news&aid={R:2}&{R:3}" />
+		</rule>
+	</rules>
+</rewrite>
+
+

Nginx

+
+rewrite ^([^\.]*)/haodai\.html$ $1/plugin.php?id=dzapp_haodai last;
+rewrite ^([^\.]*)/haodai-calculator-([a-z]+)\.html$ $1/plugin.php?id=dzapp_haodai&action=calc&type=$2 last;
+rewrite ^([^\.]*)/haodai-(view|apply)-([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=dzapp_haodai&action=$2&xd_id=$3&xd_type=$4&month=$5&money=$6 last;
+rewrite ^([^\.]*)/haodai-list-([a-z]+)-([0-9]+)\.html$ $1/plugin.php?id=dzapp_haodai&action=list&type=$2&page=$3 last;
+rewrite ^([^\.]*)/haodai-news-([0-9]+)\.html$ $1/plugin.php?id=dzapp_haodai&action=news&aid=$2 last;
+
'; ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/admincp_seo.inc.php b/source/plugin/dzapp_haodai/admincp_seo.inc.php index 2556f74..223a32f 100644 --- a/source/plugin/dzapp_haodai/admincp_seo.inc.php +++ b/source/plugin/dzapp_haodai/admincp_seo.inc.php @@ -1,90 +1,91 @@ - - */ - -if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { - exit('Access Denied'); -} -$lang = array_merge($lang, $scriptlang['dzapp_haodai']); - -if(empty($_GET['ac'])) { - if(!submitcheck('seosubmit')) { - echo ''; - $dzapp_haodai_seo = dunserialize($_G['setting']['dzapp_haodai_seo']); - $codetypes['main'] = array('bbname'); - $codetypes['search'] = array('bbname', 'xd_type'); - $codetypes['view'] = array('bbname', 'xd_type', 'bank_name', 'xd_name'); - $codetypes['news'] = array('bbname', 'news_title'); - $codetypes['apply'] = array('bbname'); - $codetypes['calc'] = array('bbname', 'calc_type'); - $codenames['bbname'] = $lang['bbname']; - $codenames['xd_type'] = $lang['xd_type']; - $codenames['bank_name'] = $lang['bank_name']; - $codenames['xd_name'] = $lang['xd_name']; - $codenames['news_title'] = $lang['news_title']; - $codenames['calc_type'] = $lang['calc_type']; - foreach(array('main', 'search', 'view', 'news', 'apply', 'calc') as $page) { - $codes[$page] = $lang['code']; - foreach($codetypes[$page] as $type) { - $codes[$page] .= '{'.$codenames[$type].'}'; - } - } - - showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_seo'); - showtableheader(); - showtitle('dzapp_haodai_main'); - showsetting('seotitle', 'dzapp_haodai_seo[main][seotitle]', $dzapp_haodai_seo['main']['seotitle'], 'text', '', 0, $codes['main']); - showsetting('seokeywords', 'dzapp_haodai_seo[main][seokeywords]', $dzapp_haodai_seo['main']['seokeywords'], 'text', '', 0, $codes['main']); - showsetting('seodescription', 'dzapp_haodai_seo[main][seodescription]', $dzapp_haodai_seo['main']['seodescription'], 'text', '', 0, $codes['main']); - showtitle('dzapp_haodai_search'); - showsetting('seotitle', 'dzapp_haodai_seo[search][seotitle]', $dzapp_haodai_seo['search']['seotitle'], 'text', '', 0, $codes['search']); - showsetting('seokeywords', 'dzapp_haodai_seo[search][seokeywords]', $dzapp_haodai_seo['search']['seokeywords'], 'text', '', 0, $codes['search']); - showsetting('seodescription', 'dzapp_haodai_seo[search][seodescription]', $dzapp_haodai_seo['search']['seodescription'], 'text', '', 0, $codes['search']); - showtitle('dzapp_haodai_view'); - showsetting('seotitle', 'dzapp_haodai_seo[view][seotitle]', $dzapp_haodai_seo['view']['seotitle'], 'text', '', 0, $codes['view']); - showsetting('seokeywords', 'dzapp_haodai_seo[view][seokeywords]', $dzapp_haodai_seo['view']['seokeywords'], 'text', '', 0, $codes['view']); - showsetting('seodescription', 'dzapp_haodai_seo[view][seodescription]', $dzapp_haodai_seo['view']['seodescription'], 'text', '', 0, $codes['view']); - showtitle('dzapp_haodai_news'); - showsetting('seotitle', 'dzapp_haodai_seo[news][seotitle]', $dzapp_haodai_seo['news']['seotitle'], 'text', '', 0, $codes['news']); - showsetting('seokeywords', 'dzapp_haodai_seo[news][seokeywords]', $dzapp_haodai_seo['news']['seokeywords'], 'text', '', 0, $codes['news']); - showsetting('seodescription', 'dzapp_haodai_seo[news][seodescription]', $dzapp_haodai_seo['news']['seodescription'], 'text', '', 0, $codes['news']); - showtitle('dzapp_haodai_apply'); - showsetting('seotitle', 'dzapp_haodai_seo[apply][seotitle]', $dzapp_haodai_seo['apply']['seotitle'], 'text', '', 0, $codes['apply']); - showsetting('seokeywords', 'dzapp_haodai_seo[apply][seokeywords]', $dzapp_haodai_seo['apply']['seokeywords'], 'text', '', 0, $codes['apply']); - showsetting('seodescription', 'dzapp_haodai_seo[apply][seodescription]', $dzapp_haodai_seo['apply']['seodescription'], 'text', '', 0, $codes['apply']); - showtitle('dzapp_haodai_calc'); - showsetting('seotitle', 'dzapp_haodai_seo[calc][seotitle]', $dzapp_haodai_seo['calc']['seotitle'], 'text', '', 0, $codes['calc']); - showsetting('seokeywords', 'dzapp_haodai_seo[calc][seokeywords]', $dzapp_haodai_seo['calc']['seokeywords'], 'text', '', 0, $codes['calc']); - showsetting('seodescription', 'dzapp_haodai_seo[calc][seodescription]', $dzapp_haodai_seo['calc']['seodescription'], 'text', '', 0, $codes['calc']); - showsubmit('seosubmit'); - showtablefooter(); - showformfooter(); - } else { - $dzapp_haodai_seo = serialize($_GET['dzapp_haodai_seo']); - DB::query("REPLACE INTO ".DB::table('common_setting')." (skey, svalue) VALUES ('dzapp_haodai_seo', '$dzapp_haodai_seo')"); - updatecache('setting'); - cpmsg('seo_update_succeed', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_seo', 'succeed'); - } -} - + + */ + +if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { + exit('Access Denied'); +} + +$lang = array_merge($lang, $scriptlang['dzapp_haodai']); + +if(empty($_GET['ac'])) { + if(!submitcheck('seosubmit')) { + echo ''; + $dzapp_haodai_seo = dunserialize($_G['setting']['dzapp_haodai_seo']); + $codetypes['main'] = array('bbname'); + $codetypes['search'] = array('bbname', 'xd_type'); + $codetypes['view'] = array('bbname', 'xd_type', 'bank_name', 'xd_name'); + $codetypes['news'] = array('bbname', 'news_title'); + $codetypes['apply'] = array('bbname'); + $codetypes['calc'] = array('bbname', 'calc_type'); + $codenames['bbname'] = $lang['bbname']; + $codenames['xd_type'] = $lang['xd_type']; + $codenames['bank_name'] = $lang['bank_name']; + $codenames['xd_name'] = $lang['xd_name']; + $codenames['news_title'] = $lang['news_title']; + $codenames['calc_type'] = $lang['calc_type']; + foreach(array('main', 'search', 'view', 'news', 'apply', 'calc') as $page) { + $codes[$page] = $lang['code']; + foreach($codetypes[$page] as $type) { + $codes[$page] .= '{'.$codenames[$type].'}'; + } + } + + showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_seo'); + showtableheader(); + showtitle('dzapp_haodai_main'); + showsetting('seotitle', 'dzapp_haodai_seo[main][seotitle]', $dzapp_haodai_seo['main']['seotitle'], 'text', '', 0, $codes['main']); + showsetting('seokeywords', 'dzapp_haodai_seo[main][seokeywords]', $dzapp_haodai_seo['main']['seokeywords'], 'text', '', 0, $codes['main']); + showsetting('seodescription', 'dzapp_haodai_seo[main][seodescription]', $dzapp_haodai_seo['main']['seodescription'], 'text', '', 0, $codes['main']); + showtitle('dzapp_haodai_search'); + showsetting('seotitle', 'dzapp_haodai_seo[search][seotitle]', $dzapp_haodai_seo['search']['seotitle'], 'text', '', 0, $codes['search']); + showsetting('seokeywords', 'dzapp_haodai_seo[search][seokeywords]', $dzapp_haodai_seo['search']['seokeywords'], 'text', '', 0, $codes['search']); + showsetting('seodescription', 'dzapp_haodai_seo[search][seodescription]', $dzapp_haodai_seo['search']['seodescription'], 'text', '', 0, $codes['search']); + showtitle('dzapp_haodai_view'); + showsetting('seotitle', 'dzapp_haodai_seo[view][seotitle]', $dzapp_haodai_seo['view']['seotitle'], 'text', '', 0, $codes['view']); + showsetting('seokeywords', 'dzapp_haodai_seo[view][seokeywords]', $dzapp_haodai_seo['view']['seokeywords'], 'text', '', 0, $codes['view']); + showsetting('seodescription', 'dzapp_haodai_seo[view][seodescription]', $dzapp_haodai_seo['view']['seodescription'], 'text', '', 0, $codes['view']); + showtitle('dzapp_haodai_news'); + showsetting('seotitle', 'dzapp_haodai_seo[news][seotitle]', $dzapp_haodai_seo['news']['seotitle'], 'text', '', 0, $codes['news']); + showsetting('seokeywords', 'dzapp_haodai_seo[news][seokeywords]', $dzapp_haodai_seo['news']['seokeywords'], 'text', '', 0, $codes['news']); + showsetting('seodescription', 'dzapp_haodai_seo[news][seodescription]', $dzapp_haodai_seo['news']['seodescription'], 'text', '', 0, $codes['news']); + showtitle('dzapp_haodai_apply'); + showsetting('seotitle', 'dzapp_haodai_seo[apply][seotitle]', $dzapp_haodai_seo['apply']['seotitle'], 'text', '', 0, $codes['apply']); + showsetting('seokeywords', 'dzapp_haodai_seo[apply][seokeywords]', $dzapp_haodai_seo['apply']['seokeywords'], 'text', '', 0, $codes['apply']); + showsetting('seodescription', 'dzapp_haodai_seo[apply][seodescription]', $dzapp_haodai_seo['apply']['seodescription'], 'text', '', 0, $codes['apply']); + showtitle('dzapp_haodai_calc'); + showsetting('seotitle', 'dzapp_haodai_seo[calc][seotitle]', $dzapp_haodai_seo['calc']['seotitle'], 'text', '', 0, $codes['calc']); + showsetting('seokeywords', 'dzapp_haodai_seo[calc][seokeywords]', $dzapp_haodai_seo['calc']['seokeywords'], 'text', '', 0, $codes['calc']); + showsetting('seodescription', 'dzapp_haodai_seo[calc][seodescription]', $dzapp_haodai_seo['calc']['seodescription'], 'text', '', 0, $codes['calc']); + showsubmit('seosubmit'); + showtablefooter(); + showformfooter(); + } else { + $dzapp_haodai_seo = serialize($_GET['dzapp_haodai_seo']); + DB::query("REPLACE INTO ".DB::table('common_setting')." (skey, svalue) VALUES ('dzapp_haodai_seo', '$dzapp_haodai_seo')"); + updatecache('setting'); + cpmsg('seo_update_succeed', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_seo', 'succeed'); + } +} + ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/admincp_stat.inc.php b/source/plugin/dzapp_haodai/admincp_stat.inc.php index fe0819a..11a6929 100644 --- a/source/plugin/dzapp_haodai/admincp_stat.inc.php +++ b/source/plugin/dzapp_haodai/admincp_stat.inc.php @@ -1,19 +1,19 @@ - - */ - -if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { - exit('Access Denied'); -} -$lang = array_merge($lang, $scriptlang['dzapp_haodai']); - -showtableheader($lang['stat_info']); -showtablerow('', array('class="td24"'), array($lang['stat_panel'], ''.$lang['click_stat_panel'].'')); -showtablerow('', array('class="td24"'), array($lang['stat_notice'], ''.$lang['stat_notice_content'].'')); -showtablefooter(); - + + */ + +if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { + exit('Access Denied'); +} +$lang = array_merge($lang, $scriptlang['dzapp_haodai']); + +showtableheader($lang['stat_info']); +showtablerow('', array('class="td24"'), array($lang['stat_panel'], ''.$lang['click_stat_panel'].'')); +showtablerow('', array('class="td24"'), array($lang['stat_notice'], ''.$lang['stat_notice_content'].'')); +showtablefooter(); + ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/callback.inc.php b/source/plugin/dzapp_haodai/callback.inc.php index d0be94a..3e473ce 100644 --- a/source/plugin/dzapp_haodai/callback.inc.php +++ b/source/plugin/dzapp_haodai/callback.inc.php @@ -1,24 +1,27 @@ - - */ - -include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; -require_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; -$o = new HaoDaiOAuth(HD_AKEY, HD_SKEY); -!defined('IN_DISCUZ') && exit('Access Denied'); - -if(isset($_REQUEST['code'])){ - $keys = array(); - $keys['code'] = $_REQUEST['code']; - $keys['redirect_uri'] = HD_CALLBACK_URL; - $hd_token = $o->getAccessToken('code', $keys); - require_once libfile('function/cache'); - writetocache('dzapp_haodai_setting', getcachevars(array('hd_token' => $hd_token))); - dheader('Location: '.$_G['siteurl'].'admin.php?action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback'); -} - + + */ + +!defined('IN_DISCUZ') && exit('Access Denied'); + +include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; +require_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; + +$oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY); + +if(isset($_REQUEST['code'])){ + $keys = array(); + $keys['code'] = $_REQUEST['code']; + $keys['redirect_uri'] = HD_CALLBACK_URL; + $hd_token = $oauth->getAccessToken('code', $keys); + require_once libfile('function/cache'); + writetocache('dzapp_haodai_setting', getcachevars(array('hd_token' => $hd_token))); + dheader('Location: '.$_G['siteurl'].'admin.php?action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback'); +} + ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/city.inc.php b/source/plugin/dzapp_haodai/city.inc.php index c2771f8..5738a26 100644 --- a/source/plugin/dzapp_haodai/city.inc.php +++ b/source/plugin/dzapp_haodai/city.inc.php @@ -1,56 +1,55 @@ - - */ - -include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; -include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; -include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/dzapp_haodai.func.php'; -@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_setting.php'; -if(!defined('IN_DISCUZ') || !defined('IN_DISCUZ')) { - exit('Access Denied'); -} - -if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php') > $var['refreshtime']){ - $client = new HaoDaiClient(HD_AKEY, HD_SKEY, $hd_token['access_token']); - $client->set_debug(0); - $result = $client->get_xindai_zones(); - $zonelist = $result['items']; - if(count($zonelist) > 0){ - $zones = array(); - foreach($zonelist as $value){ - if($value['s_EN'] == 'www') continue; - $value['zone_name'] = diconv($value['zone_name'], 'UTF-8', CHARSET); - $value['Province'] = diconv($value['Province'], 'UTF-8', CHARSET); - $value['area'] = diconv($value['area'], 'UTF-8', CHARSET); - $zones[$value['s_EN']] = $value['zone_name']; - $zonesort['provinces'][$value['Province']][$value['s_EN']] = $value['zone_name']; - $zonesort['letter_raw'][$value['letter']][$value['s_EN']] = $value['zone_name']; - $zonesort['area'][$value['area']][$value['s_EN']] = $value['zone_name']; - } - foreach(range('A', 'Z') as $letter) { - if(!empty($zonesort['letter_raw'][$letter])) $zonesort['letter'][$letter] = $zonesort['letter_raw'][$letter]; - } - require_once libfile('function/cache'); - writetocache('dzapp_haodai_city', getcachevars(array('zones' => $zones))); - writetocache('dzapp_haodai_city_sort', getcachevars(array('zonesort' => $zonesort))); - }else{ - showmessage('dzapp_haodai:callback_error_admin'); - } -}else{ - @include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city_sort.php'; -} - -if(!$_GET['city']){ - include template('dzapp_haodai:city'); -}else{ - if(!$_GET['city'] || $_GET['formhash'] != FORMHASH || !$zones[$_GET['city']]) showmessage('dzapp_haodai:city_choose_wrong'); - dsetcookie('HD_CITY', $_GET['city']); - showmessage('dzapp_haodai:city_choose_ok', 'plugin.php?id=dzapp_haodai'); -} - + + */ + +!defined('IN_DISCUZ') && exit('Access Denied'); + +include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; +include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; +include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/dzapp_haodai.func.php'; +@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_setting.php'; + +if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php') > $var['refreshtime']){ + $client = new HaoDaiClient(HD_AKEY, HD_SKEY, $hd_token['access_token']); + $client->set_debug(0); + $result = $client->get_xindai_zones(); + $zonelist = $result['items']; + if(count($zonelist) > 0){ + $zones = array(); + foreach($zonelist as $value){ + if($value['s_EN'] == 'www') continue; + $value['zone_name'] = diconv($value['zone_name'], 'UTF-8', CHARSET); + $value['Province'] = diconv($value['Province'], 'UTF-8', CHARSET); + $value['area'] = diconv($value['area'], 'UTF-8', CHARSET); + $zones[$value['s_EN']] = $value['zone_name']; + $zonesort['provinces'][$value['Province']][$value['s_EN']] = $value['zone_name']; + $zonesort['letter_raw'][$value['letter']][$value['s_EN']] = $value['zone_name']; + $zonesort['area'][$value['area']][$value['s_EN']] = $value['zone_name']; + } + foreach(range('A', 'Z') as $letter) { + if(!empty($zonesort['letter_raw'][$letter])) $zonesort['letter'][$letter] = $zonesort['letter_raw'][$letter]; + } + require_once libfile('function/cache'); + writetocache('dzapp_haodai_city', getcachevars(array('zones' => $zones))); + writetocache('dzapp_haodai_city_sort', getcachevars(array('zonesort' => $zonesort))); + }else{ + showmessage('dzapp_haodai:callback_error_admin'); + } +}else{ + @include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city_sort.php'; +} + +if(!$_GET['city']){ + include template('dzapp_haodai:city'); +}else{ + if(!$_GET['city'] || $_GET['formhash'] != FORMHASH || !$zones[$_GET['city']]) showmessage('dzapp_haodai:city_choose_wrong'); + dsetcookie('HD_CITY', $_GET['city']); + showmessage('dzapp_haodai:city_choose_ok', 'plugin.php?id=dzapp_haodai'); +} + ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/discuz_plugin_dzapp_haodai.xml b/source/plugin/dzapp_haodai/discuz_plugin_dzapp_haodai.xml index 53d7683..318a26c 100644 --- a/source/plugin/dzapp_haodai/discuz_plugin_dzapp_haodai.xml +++ b/source/plugin/dzapp_haodai/discuz_plugin_dzapp_haodai.xml @@ -1,701 +1,704 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 100万/20年贷款搜索条件,您也可以点击此处进行高级搜索]]> - - - - - - - - - - - - - - - - - 新版升级内容:
1.实现根据IP自动定位城市。
2.开放贷款资讯列表。
3.增加频道WAP版本。
4.增加了资讯列表伪静态规则。(若开启伪静态,请根据环境,重新添加伪静态规则到伪静态配置文件;若关闭,则可略过。)]]>
- - - - - 另外,完成安装后,请先开启插件并且在后台接口信息处完成首次授权登陆,即可使用本插件.]]> - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 100万/20年贷款搜索条件,您也可以点击此处进行高级搜索]]> + + + + + + + + + + + + + + + + + 新版升级内容:
1.实现根据IP自动定位城市。
2.开放贷款资讯列表。
3.增加频道WAP版本。
4.增加了资讯列表伪静态规则。(若开启伪静态,请根据环境,重新添加伪静态规则到伪静态配置文件;若关闭,则可略过。)]]>
+ + + + + 另外,完成安装后,请先开启插件并且在后台接口信息处完成首次授权登陆,即可使用本插件.]]> + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+
diff --git a/source/plugin/dzapp_haodai/dzapp_haodai.func.php b/source/plugin/dzapp_haodai/dzapp_haodai.func.php index 7246381..6a60353 100644 --- a/source/plugin/dzapp_haodai/dzapp_haodai.func.php +++ b/source/plugin/dzapp_haodai/dzapp_haodai.func.php @@ -1,148 +1,169 @@ -get_xindai_ad($city), 'UTF-8', CHARSET); - if($xindai_ad['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $xindai_ad; -} -function get_article_dkgl_list($page = 1){ - global $client,$city; - for($i=1;$i<=3;$i++){ - $dkgl_article = arrayCoding($client->get_article_dkgl_list($city, FALSE, $page, 10), 'UTF-8', CHARSET); - if($dkgl_article['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $dkgl_article; -} -function get_article_dkzx_list($page = 1){ - global $client,$city; - for($i=1;$i<=3;$i++){ - $dkzx_article = arrayCoding($client->get_article_dkzx_list($city, FALSE, $page, 10), 'UTF-8', CHARSET); - if($dkzx_article['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $dkzx_article; -} -function get_article_jyfx_list($page = 1){ - global $client,$city; - for($i=1;$i<=3;$i++){ - $jyfx_article = arrayCoding($client->get_article_jyfx_list($city, FALSE, $page, 10), 'UTF-8', CHARSET); - if($jyfx_article['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $jyfx_article; -} -function get_article_cjwt_list($page = 1){ - global $client,$city; - for($i=1;$i<=3;$i++){ - $cjwt_article = arrayCoding($client->get_article_cjwt_list($city, FALSE, $page, 10), 'UTF-8', CHARSET); - if($cjwt_article['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $cjwt_article; -} -function get_hot_recommend(){ - global $client,$city; - for($i=1;$i<=3;$i++){ - $hot_recommend = arrayCoding($client->get_hot_recommend(), 'UTF-8', CHARSET); - if($hot_recommend['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $hot_recommend; -} -function get_xindai_filter($type = ''){ - global $client,$_GET; - $type = !empty($type) ? $type : $_GET['xd_type']; - for($i=1;$i<=3;$i++){ - $filter = arrayCoding($client->get_xindai_filter($type), 'UTF-8', CHARSET); - if($filter['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $filter; -} -function get_xindai_list($money, $month, $data, $page){ - global $client,$_GET,$city; - for($i=1;$i<=3;$i++){ - $result = arrayCoding($client->get_xindai_list($city, $_GET['xd_type'], $money, $month, $data, $page, 10), 'UTF-8', CHARSET); - if($result['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $result; -} -function get_xindai_detail($xd_id, $money, $month){ - global $client,$city; - for($i=1;$i<=3;$i++){ - $xd = arrayCoding($client->get_xindai_detail($city, $xd_id, $money, $month), 'UTF-8', CHARSET); - if($xd['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $xd; -} -function get_article_detail($id){ - global $client,$_GET,$city; - for($i=1;$i<=3;$i++){ - $result = arrayCoding($client->get_article_detail($id), 'UTF-8', CHARSET); - if($result['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $result; -} -function arrayCoding($array, $inCharset, $outCharset) { - if(is_array($array)){ - $arr1 = array(); - foreach($array as $key => $value){ - $key = iconv($inCharset, $outCharset, $key); - $arr1[$key] = arrayCoding($value, $inCharset, $outCharset); - } - }else{ - $arr1 = iconv($inCharset, $outCharset, $array); - } - return $arr1; -} -function url_implode($gets) { - $arr = array(); - foreach ($gets as $key => $value) { - if($value) { - $arr[] = $key.'='.urlencode($value); - } - } - return implode('&', $arr); -} -function rewrite_index() { - global $_G; - if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai'; - return 'haodai.html'; -} -function rewrite_list($type, $page) { - global $_G; - if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai&action=list&type='.$type.'&page='.$page; - return 'haodai-list-'.$type.'-'.$page.'.html'; -} -function rewrite_news($aid) { - global $_G; - if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai&action=news&aid='.$aid; - return 'haodai-news-'.$aid.'.html'; -} -function rewrite_calc($type) { - global $_G; - if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai&action=calc&type='.$type; - return 'haodai-calculator-'.$type.'.html'; -} -function rewrite_view_apply($type, $xd_id, $xd_type, $month, $money) { - global $_G; - if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai&action='.$type.'&xd_id='.$xd_id.'&xd_type='.$xd_type.'&month='.$month.'&money='.$money; - return 'haodai-'.$type.'-'.$xd_id.'-'.$xd_type.'-'.$month.'-'.$money.'.html'; -} -function get_xindai_recommend($money, $month){ - global $client,$_GET,$city; - for($i=1;$i<=3;$i++){ - $result = arrayCoding($client->get_xindai_list($city, $_GET['xd_type'], $money, $month, array(), 1, 5), 'UTF-8', CHARSET); - if($result['rs_code'] == '1000') break; - } - if($i == 4) showmessage('dzapp_haodai:callback_error_user'); - return $result; -} +get_xindai_ad($city), 'UTF-8', CHARSET); + if($xindai_ad['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $xindai_ad; +} + +function get_article_dkgl_list($page = 1){ + global $client,$city; + for($i=1;$i<=3;$i++){ + $dkgl_article = arrayCoding($client->get_article_dkgl_list($city, FALSE, $page, 10), 'UTF-8', CHARSET); + if($dkgl_article['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $dkgl_article; +} + +function get_article_dkzx_list($page = 1){ + global $client,$city; + for($i=1;$i<=3;$i++){ + $dkzx_article = arrayCoding($client->get_article_dkzx_list($city, FALSE, $page, 10), 'UTF-8', CHARSET); + if($dkzx_article['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $dkzx_article; +} + +function get_article_jyfx_list($page = 1){ + global $client,$city; + for($i=1;$i<=3;$i++){ + $jyfx_article = arrayCoding($client->get_article_jyfx_list($city, FALSE, $page, 10), 'UTF-8', CHARSET); + if($jyfx_article['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $jyfx_article; +} + +function get_article_cjwt_list($page = 1){ + global $client,$city; + for($i=1;$i<=3;$i++){ + $cjwt_article = arrayCoding($client->get_article_cjwt_list($city, FALSE, $page, 10), 'UTF-8', CHARSET); + if($cjwt_article['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $cjwt_article; +} + +function get_hot_recommend(){ + global $client,$city; + for($i=1;$i<=3;$i++){ + $hot_recommend = arrayCoding($client->get_hot_recommend(), 'UTF-8', CHARSET); + if($hot_recommend['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $hot_recommend; +} + +function get_xindai_filter($type = ''){ + global $client,$_GET; + $type = !empty($type) ? $type : $_GET['xd_type']; + for($i=1;$i<=3;$i++){ + $filter = arrayCoding($client->get_xindai_filter($type), 'UTF-8', CHARSET); + if($filter['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $filter; +} + +function get_xindai_list($money, $month, $data, $page){ + global $client,$_GET,$city; + for($i=1;$i<=3;$i++){ + $result = arrayCoding($client->get_xindai_list($city, $_GET['xd_type'], $money, $month, $data, $page, 10), 'UTF-8', CHARSET); + if($result['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $result; +} + +function get_xindai_detail($xd_id, $money, $month){ + global $client,$city; + for($i=1;$i<=3;$i++){ + $xd = arrayCoding($client->get_xindai_detail($city, $xd_id, $money, $month), 'UTF-8', CHARSET); + if($xd['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $xd; +} + +function get_article_detail($id){ + global $client,$_GET,$city; + for($i=1;$i<=3;$i++){ + $result = arrayCoding($client->get_article_detail($id), 'UTF-8', CHARSET); + if($result['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $result; +} + +function arrayCoding($array, $inCharset, $outCharset) { + if(is_array($array)){ + $arr1 = array(); + foreach($array as $key => $value){ + $key = iconv($inCharset, $outCharset, $key); + $arr1[$key] = arrayCoding($value, $inCharset, $outCharset); + } + }else{ + $arr1 = iconv($inCharset, $outCharset, $array); + } + return $arr1; +} + +function url_implode($gets) { + $arr = array(); + foreach ($gets as $key => $value) { + if($value) { + $arr[] = $key.'='.urlencode($value); + } + } + return implode('&', $arr); +} + +function rewrite_index() { + global $_G; + if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai'; + return 'haodai.html'; +} + +function rewrite_list($type, $page) { + global $_G; + if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai&action=list&type='.$type.'&page='.$page; + return 'haodai-list-'.$type.'-'.$page.'.html'; +} + +function rewrite_news($aid) { + global $_G; + if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai&action=news&aid='.$aid; + return 'haodai-news-'.$aid.'.html'; +} + +function rewrite_calc($type) { + global $_G; + if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai&action=calc&type='.$type; + return 'haodai-calculator-'.$type.'.html'; +} + +function rewrite_view_apply($type, $xd_id, $xd_type, $month, $money) { + global $_G; + if(!$_G['cache']['plugin']['dzapp_haodai']['rewrite']) return 'plugin.php?id=dzapp_haodai&action='.$type.'&xd_id='.$xd_id.'&xd_type='.$xd_type.'&month='.$month.'&money='.$money; + return 'haodai-'.$type.'-'.$xd_id.'-'.$xd_type.'-'.$month.'-'.$money.'.html'; +} + +function get_xindai_recommend($money, $month){ + global $client,$_GET,$city; + for($i=1;$i<=3;$i++){ + $result = arrayCoding($client->get_xindai_list($city, $_GET['xd_type'], $money, $month, array(), 1, 5), 'UTF-8', CHARSET); + if($result['rs_code'] == '1000') break; + } + if($i == 4) showmessage('dzapp_haodai:callback_error_user'); + return $result; +} + ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/dzapp_haodai.inc.php b/source/plugin/dzapp_haodai/dzapp_haodai.inc.php index 2e4dcd6..f696793 100644 --- a/source/plugin/dzapp_haodai/dzapp_haodai.inc.php +++ b/source/plugin/dzapp_haodai/dzapp_haodai.inc.php @@ -1,373 +1,375 @@ - - */ - -include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; -include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; -include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/dzapp_haodai.func.php'; -@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_setting.php'; -@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php'; -require_once libfile('function/cache'); -!defined('IN_DISCUZ') && exit('Access Denied'); - -$var = $_G['cache']['plugin']['dzapp_haodai']; -$dzapp_haodai_seo = dunserialize($_G['setting']['dzapp_haodai_seo']); -$action = $_GET['action']; -if(!isset($hd_token)){ - if($_G['adminid'] == 1){ - $oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY); - $auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL); - header('Location:'.$auth_url); - }else{ - showmessage('dzapp_haodai:callback_error_user'); - } -}else{ - if(isset($hd_token['expires']) && TIMESTAMP > $hd_token['expires'] - 3600){ - $client = new HaoDaiClient(HD_AKEY, HD_SKEY); - $client->set_debug(0); - $result = $client->haodai_check_AccessToken(); - if($result['rs_code'] != '1000'){ - if($result['rs_code'] == '2100'){ - $hd_token = $client->oauth->getAccessToken('token', $hd_token); - writetocache('dzapp_haodai_setting', getcachevars(array('hd_token' => $hd_token))); - }else{ - showmessage('dzapp_haodai:callback_error_user'); - } - } - }elseif(isset($hd_token['expires']) && TIMESTAMP < $hd_token['expires'] - 3600){ - }else{ - showmessage('dzapp_haodai:callback_error_user'); - } -} - -if($_G['cookie']['HD_CITY'] && $zones[$_G['cookie']['HD_CITY']]){ - $city = $_G['cookie']['HD_CITY']; -}else{ - require_once libfile('function/misc'); - $location = convertip($_G['clientip']); - $charset = strtoupper(CHARSET); - foreach($zones as $key => $value){ - if($charset == 'UTF-8'){ - $value = substr($value, 0, strlen($value) - 3); - }elseif($charset == 'GBK'){ - $value = substr($value, 0, strlen($value) - 2); - }elseif($charset == 'BIG5'){ - $city = ''; - break; - } - if(stripos($location,$value) !== FALSE){ - $city = $key; - break; - } - } - if($city){ - dsetcookie('HD_CITY', $city); - }else{ - $city = defined('HD_CITY') && (HD_CITY !== '') ? HD_CITY : showmessage('dzapp_haodai:pleasechoosecity', 'admin.php?action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_city'); - dsetcookie('HD_CITY', HD_CITY); - } -} - -$client = new HaoDaiClient(HD_AKEY, HD_SKEY, $hd_token['access_token']); -$client->set_debug(0); - -if(defined('IN_MOBILE')){ - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_filter_mobile.php'){ - $filter_raw = $filterm = $filtermn = array(); - $rawtypes = array('gouche', 'goufang', 'qiye', 'xiaofei'); - foreach($rawtypes as $value){ - $filter_raw[$value] = get_xindai_filter($value); - foreach($filter_raw[$value]['filter'] as $value1){ - foreach($value1['options'] as $value2){ - $filterm[$value][$value1['key']][$value2['val']] = array('name' => $value2['name'], 'val' => $value2['val']); - } - $filtermn[$value][$value1['key']] = $value1['name']; - } - } - unset($filter_raw); - writetocache('dzapp_haodai_filter_mobile', getcachevars(array('filterm' => $filterm, 'filtermn' => $filtermn))); - } -} - -if($action == ''){ - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_xindai_ad_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_xindai_ad_'.$city.'.php') > $var['refreshtime']){ - $xindai_ad = get_xindai_ad(); - $xindai_ad_type = array(); - $xindai_ad_detail = array(); - foreach($xindai_ad['items'] as $key => $value){ - $xindai_ad_type[] = $value['type_name']; - foreach($value['list'] as $value2){ - $value2['apply'] = cutstr(strip_tags($value2['apply']), 90); - $xindai_ad_detail[$key][] = $value2; - } - } - writetocache('dzapp_haodai_xindai_ad_'.$city, getcachevars(array('xindai_ad_type' => $xindai_ad_type,'xindai_ad_detail' => $xindai_ad_detail))); - } - - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$city.'.php') > $var['refreshtime']){ - $dkgl_article = get_article_dkgl_list(); - writetocache('dzapp_haodai_dkgl_'.$city, getcachevars(array('dkgl_article' => $dkgl_article))); - } - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$city.'.php') > $var['refreshtime']){ - $dkzx_article = get_article_dkzx_list(); - writetocache('dzapp_haodai_dkzx_'.$city, getcachevars(array('dkzx_article' => $dkzx_article))); - } - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_cjwt_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_cjwt_'.$city.'.php') > $var['refreshtime']){ - $cjwt_article = get_article_cjwt_list(); - writetocache('dzapp_haodai_cjwt_'.$city, getcachevars(array('cjwt_article' => $cjwt_article))); - } - $seodata = array('bbname' => $_G['setting']['bbname']); - list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['main']); - include template('dzapp_haodai:main_'.$var['mode']); -}elseif($action == 'search'){ - $_GET['xd_type'] = $_GET['xd_type'] ? $_GET['xd_type'] : 'xiaofei'; - if(!in_array($_GET['xd_type'],array('xiaofei','goufang','qiye','gouche'))) showmessage('dzapp_haodai:xd_type_fail'); - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_filter_'.$_GET['xd_type'].'.php'){ - $filter = get_xindai_filter(); - writetocache('dzapp_haodai_filter_'.$_GET['xd_type'], getcachevars(array('filter' => $filter))); - } - $money = $_GET['money'] ? intval($_GET['money']) : 10; - $month = $_GET['month'] ? intval($_GET['month']) : 12; - $param = is_array($_GET['param']) ? $_GET['param'] : array(); - $data = array(); - $page = max(1, intval($_GET['page'])); - unset($_GET['page']); - if($_GET['remove']){ - unset($_GET[$_GET['remove']]); - unset($_GET['remove']); - } - if($_GET['allremove']){ - $data = array(); - $newget = array('id'=>$_GET['id'], 'action'=>$_GET['action'], 'xd_type'=>$_GET['xd_type'], 'money'=>$_GET['money'], 'month'=>$_GET['month']); - $_GET = $newget; - } - $chosen = array(); - foreach($filter['filter'] as $key => $value){ - $value['get'] = $_GET; - if($value['get'][$value['key']]){ - $chosen[] = array('name'=>$value['name'], 'key'=>$value['key']); - $data[$value['key']] = $value['get'][$value['key']]; - unset($value['get'][$value['key']]); - } - $filter['filter'][$key]['link'] = 'plugin.php?'.url_implode($value['get']); - } - if($_GET['grade']) $data['grade'] = $_GET['grade']; - if($_GET['total_interest']) $data['total_interest'] = $_GET['total_interest']; - if($_GET['month_repay']) $data['month_repay'] = $_GET['month_repay']; - $result = get_xindai_list($money, $month, $data, $page); - $num = $result['count']; - $items = array(); - foreach($result['items'] as $value){ - $value['year_rate'] = round($value['year_rate'], 2); - $value['more'] = count(explode(',',$value['profession'])) > 3 ? 1 : 0; - $value['professions'] = reset(array_chunk(explode(',',$value['profession']),3)); - $items[] = $value; - } - $theurl = 'plugin.php?'.url_implode($_GET); - $sort_get = $_GET; - unset($sort_get['grade']); - unset($sort_get['total_interest']); - unset($sort_get['month_repay']); - $theurl_without_sort = 'plugin.php?'.url_implode($sort_get); - $start_limit = ($page - 1) * 10; - $multipage = multi($num, 10, $page, $theurl); - $maxpage = ceil($num / 10); - $seodata = array('bbname' => $_G['setting']['bbname'], 'xd_type' => lang('plugin/dzapp_haodai','xd_type_'.$_GET['xd_type'])); - list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['search']); - include template('dzapp_haodai:search'); -}elseif($action == 'news'){ - if(!$_GET['aid']) showmessage('dzapp_haodai:param_wrong'); - $id = intval($_GET['aid']); - $result = get_article_detail($id); - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$city.'.php') > $var['refreshtime']){ - $dkzx_article = get_article_dkzx_list(); - writetocache('dzapp_haodai_dkzx_'.$city, getcachevars(array('dkzx_article' => $dkzx_article))); - } - $seodata = array('bbname' => $_G['setting']['bbname'], 'news_title' => $result['title']); - list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['news']); - include template('dzapp_haodai:news'); -}elseif($action == 'view'){ - $_GET['xd_type'] = $_GET['xd_type'] ? $_GET['xd_type'] : 'xiaofei'; - if(!in_array($_GET['xd_type'],array('xiaofei','goufang','qiye','gouche'))) showmessage('dzapp_haodai:xd_type_fail'); - if(!$_GET['xd_id']) showmessage('dzapp_haodai:param_wrong'); - $xd_id = intval($_GET['xd_id']); - $money = $_GET['money'] ? intval($_GET['money']) : 1; - $month = $_GET['month'] ? intval($_GET['month']) : 12; - $get_related = get_xindai_recommend($money, $month); - $get_related = $get_related['items']; - $xd = get_xindai_detail($xd_id, $money, $month); - $xd['limit_min'] = round($xd['limit_min']); - $xd['limit_max'] = round($xd['limit_max']); - $xd['apply'] = htmlspecialchars_decode($xd['apply']); - $xd['stuff'] = htmlspecialchars_decode($xd['stuff']); - $xd['content'] = htmlspecialchars_decode($xd['content']); - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_hot_recommend.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_hot_recommend.php') > $var['refreshtime']){ - $hot_recommend = get_hot_recommend(); - writetocache('dzapp_haodai_hot_recommend', getcachevars(array('hot_recommend' => $hot_recommend))); - } - $seodata = array('bbname' => $_G['setting']['bbname'], 'xd_type' => lang('plugin/dzapp_haodai','xd_type_'.$_GET['xd_type']), 'bank_name' => $xd['bank_name'], 'xd_name' => $xd['name']); - list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['view']); - include template('dzapp_haodai:view'); -}elseif($action == 'apply'){ - $_GET['xd_type'] = $_GET['xd_type'] ? $_GET['xd_type'] : 'xiaofei'; - if(!in_array($_GET['xd_type'],array('xiaofei','goufang','qiye','gouche'))) showmessage('dzapp_haodai:xd_type_fail'); - if(!$_GET['xd_id']) showmessage('dzapp_haodai:param_wrong'); - $xd_id = intval($_GET['xd_id']); - $money = $_GET['money'] ? intval($_GET['money']) : 1; - $month = $_GET['month'] ? intval($_GET['month']) : 12; - $xd = get_xindai_detail($xd_id, $money, $month); - if(!submitcheck('applysubmit')) { - $seodata = array('bbname' => $_G['setting']['bbname']); - list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['apply']); - include template('dzapp_haodai:apply'); - }else{ - if($_GET['xd_type'] == 'xiaofei'){ - if(!$_GET['company_type'] || !$_GET['year_born'] || !$_GET['salary_type'] || !$_GET['salary'] || !$_GET['has_creditcard'] || !$_GET['has_debt'] || !$_GET['has_succ_apply'] || !$_GET['has_debt_loan'] || !$_GET['nickname'] || !$_GET['mobile']) showmessage('dzapp_haodai:apply_incomplete'); - if($_GET['has_creditcard'] == lang('plugin/dzapp_haodai','have') && (!$_GET['creditcard_num'] || !$_GET['creditcard_money'])) showmessage('dzapp_haodai:apply_incomplete'); - if($_GET['has_debt'] == lang('plugin/dzapp_haodai','have') && !$_GET['debt_money']) showmessage('dzapp_haodai:apply_incomplete'); - if($_GET['has_debt_loan'] == lang('plugin/dzapp_haodai','have') && !$_GET['debt_loan_money']) showmessage('dzapp_haodai:apply_incomplete'); - $remark = lang('plugin/dzapp_haodai','remark_company_type').$_GET['company_type'].lang('plugin/dzapp_haodai','remark_birth').$_GET['year_born'].lang('plugin/dzapp_haodai','remark_salary_type').$_GET['salary_type'].lang('plugin/dzapp_haodai','remark_month_income').$_GET['salary'].lang('plugin/dzapp_haodai','remark_worktime').$_GET['job_year'].lang('plugin/dzapp_haodai','remark_year').$_GET['job_month'].lang('plugin/dzapp_haodai','remark_month').($_GET['has_creditcard'] == lang('plugin/dzapp_haodai','have') ? lang('plugin/dzapp_haodai','remark_has_card').$_GET['creditcard_num'].lang('plugin/dzapp_haodai','remark_card_num').$_GET['creditcard_money'].lang('plugin/dzapp_haodai','remark_yuan') : '').($_GET['has_debt'] == lang('plugin/dzapp_haodai','have') ? lang('plugin/dzapp_haodai','remark_has_debt').$_GET['debt_money'].lang('plugin/dzapp_haodai','remark_yuan') : '').lang('plugin/dzapp_haodai','remark_succeed_applied').$_GET['has_succ_apply'].($_GET['has_debt_loan'] == lang('plugin/dzapp_haodai','have') ? lang('plugin/dzapp_haodai','remark_has_debt_num').$_GET['debt_loan_money'].lang('plugin/dzapp_haodai','remark_yuan') : ''); - }elseif($_GET['xd_type'] == 'goufang'){ - if(!$_GET['house_type'] || !$_GET['monthly'] || !$_GET['hukou'] || !$_GET['has_secondhandhouse'] || !$_GET['nickname'] || !$_GET['mobile']) showmessage('dzapp_haodai:apply_incomplete'); - $remark = lang('plugin/dzapp_haodai','remark_house_type').$_GET['house_type'].lang('plugin/dzapp_haodai','remark_month_income').$_GET['monthly'].lang('plugin/dzapp_haodai','remark_second_hand').$_GET['has_secondhandhouse'].lang('plugin/dzapp_haodai','remark_live_in').$_GET['hukou']; - }elseif($_GET['xd_type'] == 'gouche'){ - if(!$_GET['has_house'] || !$_GET['car_step'] || !$_GET['monthly'] || !$_GET['nickname'] || !$_GET['mobile']) showmessage('dzapp_haodai:apply_incomplete'); - $remark = lang('plugin/dzapp_haodai','remark_has_house').$_GET['has_house'].lang('plugin/dzapp_haodai','remark_car_no').$_GET['car_step'].lang('plugin/dzapp_haodai','remark_card_bank_num').$_GET['monthly']; - }elseif($_GET['xd_type'] == 'qiye'){ - if(!$_GET['company_type'] || !$_GET['monthly'] || !$_GET['has_house'] || !$_GET['business_time'] || !$_GET['nickname'] || !$_GET['mobile']) showmessage('dzapp_haodai:apply_incomplete'); - $remark = lang('plugin/dzapp_haodai','remark_company_type').$_GET['company_type'].lang('plugin/dzapp_haodai','remark_card_bank_num').$_GET['monthly'].lang('plugin/dzapp_haodai','remark_qiye_has_house').$_GET['has_house'].lang('plugin/dzapp_haodai','bt').$_GET['business_time']; - } - $remark = diconv($remark, CHARSET, 'UTF-8'); - $_GET['nickname'] = diconv($_GET['nickname'], CHARSET, 'UTF-8'); - if($_GET['details']){ - if(strlen($_GET['details']) > 280) showmessage('dzapp_haodai:apply_reach_limit'); - $_GET['details'] = diconv($_GET['details'], CHARSET, 'UTF-8'); - } - $data = array(); - if($_GET['email']) $data['email'] = $_GET['email']; - if($_GET['details']) $data['details'] = $_GET['details']; - $data['xd_id'] = $xd_id; - $data['xd_type'] = $_GET['xd_type']; - $data['bank_id'] = $xd['bank_id']; - $data['month'] = $month; - $data['remark'] = $remark; - $result = arrayCoding($client->send_xindai_apply($city, $_GET['nickname'], $money, $_GET['mobile'], $data), 'UTF-8', CHARSET); - if($result['rs_code'] != '1000') showmessage(lang('plugin/dzapp_haodai','apply_fail').$result['rs_msg']); - if($result['id'] && $_GET['details']){ - $result2 = arrayCoding($client->send_xindai_apply_details($result['id'], $_GET['details'], $_GET['xd_type']), 'UTF-8', CHARSET); - if($result2['rs_code'] != '1000') showmessage(lang('plugin/dzapp_haodai','apply_fail').$result2['rs_msg']); - } - showmessage('dzapp_haodai:apply_succeed','plugin.php?id=dzapp_haodai'); - } -}elseif($action == 'list'){ - $page = max(1, intval($_GET['page'])); - if($_GET['type'] == 'dkgl'){ - $result = get_article_dkgl_list($page); - $maxpage = ceil($result['count'] / 10); - }elseif($_GET['type'] == 'dkzx'){ - $result = get_article_dkzx_list($page); - $maxpage = ceil($result['count'] / 10); - }elseif($_GET['type'] == 'cjwt'){ - $result = get_article_cjwt_list($page); - $maxpage = ceil($result['count'] / 10); - }else{ - showmessage('dzapp_haodai:param_wrong'); - } - if(defined('IN_MOBILE')){ - $pageinfo = '
'; - if($page != 1){ - $pageinfo .= ''.lang('plugin/dzapp_haodai','page_2').'
'; - }else{ - $pageinfo .= ''.lang('plugin/dzapp_haodai','page_2').'
'; - } - if($page < 3){ - $startpage = 1; - }elseif($maxpage - $page < 2){ - $startpage = $maxpage - 4; - }else{ - $startpage = $page - 2; - } - $pageinfo .= ''; - if($page != $maxpage){ - $pageinfo .= ''.lang('plugin/dzapp_haodai','page_3').'
'; - }else{ - $pageinfo .= ''.lang('plugin/dzapp_haodai','page_3').'
'; - } - $pageinfo .= '
'; - }else{ - if($page != 1){ - $pageinfo = ''.lang('plugin/dzapp_haodai','page_1').''.lang('plugin/dzapp_haodai','page_2').''; - }else{ - $pageinfo = ''; - } - if($page < 3){ - $startpage = 1; - }elseif($maxpage - $page < 2){ - $startpage = $maxpage - 4; - }else{ - $startpage = $page - 2; - } - for($i=$startpage;$i <= $startpage + 4; $i++){ - if($i == $page){ - $pageinfo .= ''.$page.''; - }else{ - $pageinfo .= ''.$i.''; - } - } - if($page != $maxpage){ - $pageinfo .= ''.lang('plugin/dzapp_haodai','page_3').''.lang('plugin/dzapp_haodai','page_4').''; - } - } - if(empty($result['items'])) showmessage('dzapp_haodai:param_wrong'); - $articles = $result['items']; - include template('dzapp_haodai:list'); -}elseif($action == 'calc'){ - if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$city.'.php') > $var['refreshtime']){ - $dkgl_article = get_article_dkgl_list(); - writetocache('dzapp_haodai_dkgl_'.$city, getcachevars(array('dkgl_article' => $dkgl_article))); - } - $type = $_GET['type']; - $seodata = array('bbname' => $_G['setting']['bbname'], 'calc_type' => lang('plugin/dzapp_haodai','calc_'.$type)); - list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['calc']); - if(defined('IN_MOBILE') && $type == 'fd'){ - $script_more = ' - var $btnss = $(\'.btn-b\'); - var $tables = $btnss.siblings(\'.int_table\'); - $btnss.click( - function() { - if ($tables.hasClass(\'hide-table\')) { - $tables.removeClass(\'hide-table\'); - $(this).html(\''.lang('plugin/dzapp_haodai','hide-table').'\'); - } else - { - $tables.addClass(\'hide-table\'); - $(this).html(\''.lang('plugin/dzapp_haodai','check-more').'\'); - } - });'; - } - include template('dzapp_haodai:calc_'.$type); -}elseif($action == 'fastloan'){ - if(submitcheck('applysubmit')){ - if(!$_GET['mobile'] || !$_GET['nickname'] || !$_GET['money']) showmessage('dzapp_haodai:apply_incomplete'); - $_GET['nickname'] = diconv($_GET['nickname'], CHARSET, 'UTF-8'); - $_GET['money'] = intval($_GET['money']); - if(!is_numeric($_GET['mobile'])) showmessage('dzapp_haodai:mobile_be_int'); - $result = arrayCoding($client->send_xindai_apply($city, $_GET['nickname'], $_GET['money'], $_GET['mobile']), 'UTF-8', CHARSET); - if($result['rs_code'] != '1000') showmessage(lang('plugin/dzapp_haodai','apply_fail').$result['rs_msg']); - showmessage('dzapp_haodai:apply_succeed','plugin.php?id=dzapp_haodai'); - }else{ - $navtitle = lang('plugin/dzapp_haodai','fastloan'); - include template('dzapp_haodai:fastloan'); - } - -} - + + */ + +!defined('IN_DISCUZ') && exit('Access Denied'); + +include_once DISCUZ_ROOT.'./data/dzapp_haodai_config.php'; +include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; +include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/dzapp_haodai.func.php'; +@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_setting.php'; +@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_city.php'; +require_once libfile('function/cache'); + +$var = $_G['cache']['plugin']['dzapp_haodai']; +$dzapp_haodai_seo = dunserialize($_G['setting']['dzapp_haodai_seo']); +$current_host = parse_url($_G['siteurl'], PHP_URL_HOST); +$action = $_GET['action']; +if(!isset($hd_token)){ + if($_G['adminid'] == 1){ + $oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY); + $auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL); + header('Location:'.$auth_url); + }else{ + showmessage('dzapp_haodai:callback_error_user'); + } +}else{ + if(isset($hd_token['expires']) && TIMESTAMP > $hd_token['expires'] - 3600){ + $client = new HaoDaiClient(HD_AKEY, HD_SKEY); + $client->set_debug(0); + $result = $client->haodai_check_AccessToken(); + if($result['rs_code'] != '1000'){ + if($result['rs_code'] == '2100'){ + $hd_token = $client->oauth->getAccessToken('token', $hd_token); + writetocache('dzapp_haodai_setting', getcachevars(array('hd_token' => $hd_token))); + }else{ + showmessage('dzapp_haodai:callback_error_user'); + } + } + }elseif(isset($hd_token['expires']) && TIMESTAMP < $hd_token['expires'] - 3600){ + }else{ + showmessage('dzapp_haodai:callback_error_user'); + } +} + +if($_G['cookie']['HD_CITY'] && $zones[$_G['cookie']['HD_CITY']]){ + $city = $_G['cookie']['HD_CITY']; +}else{ + require_once libfile('function/misc'); + $location = convertip($_G['clientip']); + $charset = strtoupper(CHARSET); + foreach($zones as $key => $value){ + if($charset == 'UTF-8'){ + $value = substr($value, 0, strlen($value) - 3); + }elseif($charset == 'GBK'){ + $value = substr($value, 0, strlen($value) - 2); + }elseif($charset == 'BIG5'){ + $city = ''; + break; + } + if(stripos($location,$value) !== FALSE){ + $city = $key; + break; + } + } + if($city){ + dsetcookie('HD_CITY', $city); + }else{ + $city = defined('HD_CITY') && (HD_CITY !== '') ? HD_CITY : showmessage('dzapp_haodai:pleasechoosecity', 'admin.php?action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_city'); + dsetcookie('HD_CITY', HD_CITY); + } +} + +$client = new HaoDaiClient(HD_AKEY, HD_SKEY, $hd_token['access_token']); +$client->set_debug(0); + +if(defined('IN_MOBILE')){ + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_filter_mobile.php'){ + $filter_raw = $filterm = $filtermn = array(); + $rawtypes = array('gouche', 'goufang', 'qiye', 'xiaofei'); + foreach($rawtypes as $value){ + $filter_raw[$value] = get_xindai_filter($value); + foreach($filter_raw[$value]['filter'] as $value1){ + foreach($value1['options'] as $value2){ + $filterm[$value][$value1['key']][$value2['val']] = array('name' => $value2['name'], 'val' => $value2['val']); + } + $filtermn[$value][$value1['key']] = $value1['name']; + } + } + unset($filter_raw); + writetocache('dzapp_haodai_filter_mobile', getcachevars(array('filterm' => $filterm, 'filtermn' => $filtermn))); + } +} + +if($action == ''){ + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_xindai_ad_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_xindai_ad_'.$city.'.php') > $var['refreshtime']){ + $xindai_ad = get_xindai_ad(); + $xindai_ad_type = array(); + $xindai_ad_detail = array(); + foreach($xindai_ad['items'] as $key => $value){ + $xindai_ad_type[] = $value['type_name']; + foreach($value['list'] as $value2){ + $value2['apply'] = cutstr(strip_tags($value2['apply']), 90); + $xindai_ad_detail[$key][] = $value2; + } + } + writetocache('dzapp_haodai_xindai_ad_'.$city, getcachevars(array('xindai_ad_type' => $xindai_ad_type,'xindai_ad_detail' => $xindai_ad_detail))); + } + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$city.'.php') > $var['refreshtime']){ + $dkgl_article = get_article_dkgl_list(); + writetocache('dzapp_haodai_dkgl_'.$city, getcachevars(array('dkgl_article' => $dkgl_article))); + } + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$city.'.php') > $var['refreshtime']){ + $dkzx_article = get_article_dkzx_list(); + writetocache('dzapp_haodai_dkzx_'.$city, getcachevars(array('dkzx_article' => $dkzx_article))); + } + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_cjwt_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_cjwt_'.$city.'.php') > $var['refreshtime']){ + $cjwt_article = get_article_cjwt_list(); + writetocache('dzapp_haodai_cjwt_'.$city, getcachevars(array('cjwt_article' => $cjwt_article))); + } + $seodata = array('bbname' => $_G['setting']['bbname']); + list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['main']); + include template('dzapp_haodai:main_'.$var['mode']); +}elseif($action == 'search'){ + $_GET['xd_type'] = $_GET['xd_type'] ? $_GET['xd_type'] : 'xiaofei'; + if(!in_array($_GET['xd_type'],array('xiaofei','goufang','qiye','gouche'))) showmessage('dzapp_haodai:xd_type_fail'); + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_filter_'.$_GET['xd_type'].'.php'){ + $filter = get_xindai_filter(); + writetocache('dzapp_haodai_filter_'.$_GET['xd_type'], getcachevars(array('filter' => $filter))); + } + $money = $_GET['money'] ? intval($_GET['money']) : 10; + $month = $_GET['month'] ? intval($_GET['month']) : 12; + $param = is_array($_GET['param']) ? $_GET['param'] : array(); + $data = array(); + $page = max(1, intval($_GET['page'])); + unset($_GET['page']); + if($_GET['remove']){ + unset($_GET[$_GET['remove']]); + unset($_GET['remove']); + } + if($_GET['allremove']){ + $data = array(); + $newget = array('id'=>$_GET['id'], 'action'=>$_GET['action'], 'xd_type'=>$_GET['xd_type'], 'money'=>$_GET['money'], 'month'=>$_GET['month']); + $_GET = $newget; + } + $chosen = array(); + foreach($filter['filter'] as $key => $value){ + $value['get'] = $_GET; + if($value['get'][$value['key']]){ + $chosen[] = array('name'=>$value['name'], 'key'=>$value['key']); + $data[$value['key']] = $value['get'][$value['key']]; + unset($value['get'][$value['key']]); + } + $filter['filter'][$key]['link'] = 'plugin.php?'.url_implode($value['get']); + } + if($_GET['grade']) $data['grade'] = $_GET['grade']; + if($_GET['total_interest']) $data['total_interest'] = $_GET['total_interest']; + if($_GET['month_repay']) $data['month_repay'] = $_GET['month_repay']; + $result = get_xindai_list($money, $month, $data, $page); + $num = $result['count']; + $items = array(); + foreach($result['items'] as $value){ + $value['year_rate'] = round($value['year_rate'], 2); + $value['more'] = count(explode(',',$value['profession'])) > 3 ? 1 : 0; + $value['professions'] = reset(array_chunk(explode(',',$value['profession']),3)); + $items[] = $value; + } + $theurl = 'plugin.php?'.url_implode($_GET); + $sort_get = $_GET; + unset($sort_get['grade']); + unset($sort_get['total_interest']); + unset($sort_get['month_repay']); + $theurl_without_sort = 'plugin.php?'.url_implode($sort_get); + $start_limit = ($page - 1) * 10; + $multipage = multi($num, 10, $page, $theurl); + $maxpage = ceil($num / 10); + $seodata = array('bbname' => $_G['setting']['bbname'], 'xd_type' => lang('plugin/dzapp_haodai','xd_type_'.$_GET['xd_type'])); + list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['search']); + include template('dzapp_haodai:search'); +}elseif($action == 'news'){ + if(!$_GET['aid']) showmessage('dzapp_haodai:param_wrong'); + $id = intval($_GET['aid']); + $result = get_article_detail($id); + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$city.'.php') > $var['refreshtime']){ + $dkzx_article = get_article_dkzx_list(); + writetocache('dzapp_haodai_dkzx_'.$city, getcachevars(array('dkzx_article' => $dkzx_article))); + } + $seodata = array('bbname' => $_G['setting']['bbname'], 'news_title' => $result['title']); + list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['news']); + include template('dzapp_haodai:news'); +}elseif($action == 'view'){ + $_GET['xd_type'] = $_GET['xd_type'] ? $_GET['xd_type'] : 'xiaofei'; + if(!in_array($_GET['xd_type'],array('xiaofei','goufang','qiye','gouche'))) showmessage('dzapp_haodai:xd_type_fail'); + if(!$_GET['xd_id']) showmessage('dzapp_haodai:param_wrong'); + $xd_id = intval($_GET['xd_id']); + $money = $_GET['money'] ? intval($_GET['money']) : 1; + $month = $_GET['month'] ? intval($_GET['month']) : 12; + $get_related = get_xindai_recommend($money, $month); + $get_related = $get_related['items']; + $xd = get_xindai_detail($xd_id, $money, $month); + $xd['limit_min'] = round($xd['limit_min']); + $xd['limit_max'] = round($xd['limit_max']); + $xd['apply'] = htmlspecialchars_decode($xd['apply']); + $xd['stuff'] = htmlspecialchars_decode($xd['stuff']); + $xd['content'] = htmlspecialchars_decode($xd['content']); + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_hot_recommend.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_hot_recommend.php') > $var['refreshtime']){ + $hot_recommend = get_hot_recommend(); + writetocache('dzapp_haodai_hot_recommend', getcachevars(array('hot_recommend' => $hot_recommend))); + } + $seodata = array('bbname' => $_G['setting']['bbname'], 'xd_type' => lang('plugin/dzapp_haodai','xd_type_'.$_GET['xd_type']), 'bank_name' => $xd['bank_name'], 'xd_name' => $xd['name']); + list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['view']); + include template('dzapp_haodai:view'); +}elseif($action == 'apply'){ + $_GET['xd_type'] = $_GET['xd_type'] ? $_GET['xd_type'] : 'xiaofei'; + if(!in_array($_GET['xd_type'],array('xiaofei','goufang','qiye','gouche'))) showmessage('dzapp_haodai:xd_type_fail'); + if(!$_GET['xd_id']) showmessage('dzapp_haodai:param_wrong'); + $xd_id = intval($_GET['xd_id']); + $money = $_GET['money'] ? intval($_GET['money']) : 1; + $month = $_GET['month'] ? intval($_GET['month']) : 12; + $xd = get_xindai_detail($xd_id, $money, $month); + if(!submitcheck('applysubmit')) { + $seodata = array('bbname' => $_G['setting']['bbname']); + list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['apply']); + include template('dzapp_haodai:apply'); + }else{ + if($_GET['xd_type'] == 'xiaofei'){ + if(!$_GET['company_type'] || !$_GET['year_born'] || !$_GET['salary_type'] || !$_GET['salary'] || !$_GET['has_creditcard'] || !$_GET['has_debt'] || !$_GET['has_succ_apply'] || !$_GET['has_debt_loan'] || !$_GET['nickname'] || !$_GET['mobile']) showmessage('dzapp_haodai:apply_incomplete'); + if($_GET['has_creditcard'] == lang('plugin/dzapp_haodai','have') && (!$_GET['creditcard_num'] || !$_GET['creditcard_money'])) showmessage('dzapp_haodai:apply_incomplete'); + if($_GET['has_debt'] == lang('plugin/dzapp_haodai','have') && !$_GET['debt_money']) showmessage('dzapp_haodai:apply_incomplete'); + if($_GET['has_debt_loan'] == lang('plugin/dzapp_haodai','have') && !$_GET['debt_loan_money']) showmessage('dzapp_haodai:apply_incomplete'); + $remark = lang('plugin/dzapp_haodai','remark_company_type').$_GET['company_type'].lang('plugin/dzapp_haodai','remark_birth').$_GET['year_born'].lang('plugin/dzapp_haodai','remark_salary_type').$_GET['salary_type'].lang('plugin/dzapp_haodai','remark_month_income').$_GET['salary'].lang('plugin/dzapp_haodai','remark_worktime').$_GET['job_year'].lang('plugin/dzapp_haodai','remark_year').$_GET['job_month'].lang('plugin/dzapp_haodai','remark_month').($_GET['has_creditcard'] == lang('plugin/dzapp_haodai','have') ? lang('plugin/dzapp_haodai','remark_has_card').$_GET['creditcard_num'].lang('plugin/dzapp_haodai','remark_card_num').$_GET['creditcard_money'].lang('plugin/dzapp_haodai','remark_yuan') : lang('plugin/dzapp_haodai','remark_has_card_no')).($_GET['has_debt'] == lang('plugin/dzapp_haodai','have') ? lang('plugin/dzapp_haodai','remark_has_debt').$_GET['debt_money'].lang('plugin/dzapp_haodai','remark_yuan') : lang('plugin/dzapp_haodai','remark_has_debt_no')).lang('plugin/dzapp_haodai','remark_succeed_applied').$_GET['has_succ_apply'].($_GET['has_debt_loan'] == lang('plugin/dzapp_haodai','have') ? lang('plugin/dzapp_haodai','remark_has_debt_num').$_GET['debt_loan_money'].lang('plugin/dzapp_haodai','remark_yuan') : lang('plugin/dzapp_haodai','remark_has_debt_num_no')); + }elseif($_GET['xd_type'] == 'goufang'){ + if(!$_GET['house_type'] || !$_GET['monthly'] || !$_GET['hukou'] || !$_GET['has_secondhandhouse'] || !$_GET['nickname'] || !$_GET['mobile']) showmessage('dzapp_haodai:apply_incomplete'); + $remark = lang('plugin/dzapp_haodai','remark_house_type').$_GET['house_type'].lang('plugin/dzapp_haodai','remark_month_income').$_GET['monthly'].lang('plugin/dzapp_haodai','remark_second_hand').$_GET['has_secondhandhouse'].lang('plugin/dzapp_haodai','remark_live_in').$_GET['hukou']; + }elseif($_GET['xd_type'] == 'gouche'){ + if(!$_GET['has_house'] || !$_GET['car_step'] || !$_GET['monthly'] || !$_GET['nickname'] || !$_GET['mobile']) showmessage('dzapp_haodai:apply_incomplete'); + $remark = lang('plugin/dzapp_haodai','remark_has_house').$_GET['has_house'].lang('plugin/dzapp_haodai','remark_car_no').$_GET['car_step'].lang('plugin/dzapp_haodai','remark_card_bank_num').$_GET['monthly']; + }elseif($_GET['xd_type'] == 'qiye'){ + if(!$_GET['company_type'] || !$_GET['monthly'] || !$_GET['has_house'] || !$_GET['business_time'] || !$_GET['nickname'] || !$_GET['mobile']) showmessage('dzapp_haodai:apply_incomplete'); + $remark = lang('plugin/dzapp_haodai','remark_company_type').$_GET['company_type'].lang('plugin/dzapp_haodai','remark_card_bank_num').$_GET['monthly'].lang('plugin/dzapp_haodai','remark_qiye_has_house').$_GET['has_house'].lang('plugin/dzapp_haodai','bt').$_GET['business_time']; + } + $remark = diconv($remark, CHARSET, 'UTF-8'); + $_GET['nickname'] = diconv($_GET['nickname'], CHARSET, 'UTF-8'); + if($_GET['details']){ + if(strlen($_GET['details']) > 280) showmessage('dzapp_haodai:apply_reach_limit'); + $_GET['details'] = diconv($_GET['details'], CHARSET, 'UTF-8'); + } + $data = array(); + if($_GET['email']) $data['email'] = $_GET['email']; + if($_GET['details']) $data['details'] = $_GET['details']; + $data['xd_id'] = $xd_id; + $data['xd_type'] = $_GET['xd_type']; + $data['bank_id'] = $xd['bank_id']; + $data['month'] = $month; + $data['remark'] = $remark; + $result = arrayCoding($client->send_xindai_apply($city, $_GET['nickname'], $money, $_GET['mobile'], $data), 'UTF-8', CHARSET); + if($result['rs_code'] != '1000') showmessage(lang('plugin/dzapp_haodai','apply_fail').$result['rs_msg']); + if($result['id'] && $_GET['details']){ + $result2 = arrayCoding($client->send_xindai_apply_details($result['id'], $_GET['details'], $_GET['xd_type']), 'UTF-8', CHARSET); + if($result2['rs_code'] != '1000') showmessage(lang('plugin/dzapp_haodai','apply_fail').$result2['rs_msg']); + } + showmessage('dzapp_haodai:apply_succeed','plugin.php?id=dzapp_haodai'); + } +}elseif($action == 'list'){ + $page = max(1, intval($_GET['page'])); + if($_GET['type'] == 'dkgl'){ + $result = get_article_dkgl_list($page); + $maxpage = ceil($result['count'] / 10); + }elseif($_GET['type'] == 'dkzx'){ + $result = get_article_dkzx_list($page); + $maxpage = ceil($result['count'] / 10); + }elseif($_GET['type'] == 'cjwt'){ + $result = get_article_cjwt_list($page); + $maxpage = ceil($result['count'] / 10); + }else{ + showmessage('dzapp_haodai:param_wrong'); + } + if(defined('IN_MOBILE')){ + $pageinfo = '
'; + if($page != 1){ + $pageinfo .= ''.lang('plugin/dzapp_haodai','page_2').'
'; + }else{ + $pageinfo .= ''.lang('plugin/dzapp_haodai','page_2').'
'; + } + if($page < 3){ + $startpage = 1; + }elseif($maxpage - $page < 2){ + $startpage = $maxpage - 4; + }else{ + $startpage = $page - 2; + } + $pageinfo .= ''; + if($page != $maxpage){ + $pageinfo .= ''.lang('plugin/dzapp_haodai','page_3').'
'; + }else{ + $pageinfo .= ''.lang('plugin/dzapp_haodai','page_3').'
'; + } + $pageinfo .= '
'; + }else{ + if($page != 1){ + $pageinfo = ''.lang('plugin/dzapp_haodai','page_1').''.lang('plugin/dzapp_haodai','page_2').''; + }else{ + $pageinfo = ''; + } + if($page < 3){ + $startpage = 1; + }elseif($maxpage - $page < 2){ + $startpage = $maxpage - 4; + }else{ + $startpage = $page - 2; + } + for($i=$startpage;$i <= $startpage + 4; $i++){ + if($i == $page){ + $pageinfo .= ''.$page.''; + }else{ + $pageinfo .= ''.$i.''; + } + } + if($page != $maxpage){ + $pageinfo .= ''.lang('plugin/dzapp_haodai','page_3').''.lang('plugin/dzapp_haodai','page_4').''; + } + } + if(empty($result['items'])) showmessage('dzapp_haodai:param_wrong'); + $articles = $result['items']; + include template('dzapp_haodai:list'); +}elseif($action == 'calc'){ + $type = $_GET['type']; + if(!in_array($type, array('chedai', 'debj', 'debx', 'esjys', 'fd', 'gjj', 'secondhand', 'zhdk'))) showmessage('dzapp_haodai:param_wrong'); + if(!@include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$city.'.php' || TIMESTAMP - filemtime(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$city.'.php') > $var['refreshtime']){ + $dkgl_article = get_article_dkgl_list(); + writetocache('dzapp_haodai_dkgl_'.$city, getcachevars(array('dkgl_article' => $dkgl_article))); + } + $seodata = array('bbname' => $_G['setting']['bbname'], 'calc_type' => lang('plugin/dzapp_haodai','calc_'.$type)); + list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['calc']); + if(defined('IN_MOBILE') && $type == 'fd'){ + $script_more = ' + var $btnss = $(\'.btn-b\'); + var $tables = $btnss.siblings(\'.int_table\'); + $btnss.click( + function() { + if ($tables.hasClass(\'hide-table\')) { + $tables.removeClass(\'hide-table\'); + $(this).html(\''.lang('plugin/dzapp_haodai','hide-table').'\'); + } else + { + $tables.addClass(\'hide-table\'); + $(this).html(\''.lang('plugin/dzapp_haodai','check-more').'\'); + } + });'; + } + include template('dzapp_haodai:calc_'.$type); +}elseif($action == 'fastloan'){ + if(submitcheck('applysubmit')){ + if(!$_GET['mobile'] || !$_GET['nickname'] || !$_GET['money']) showmessage('dzapp_haodai:apply_incomplete'); + $_GET['nickname'] = diconv($_GET['nickname'], CHARSET, 'UTF-8'); + $_GET['money'] = intval($_GET['money']); + if(!is_numeric($_GET['mobile'])) showmessage('dzapp_haodai:mobile_be_int'); + $result = arrayCoding($client->send_xindai_apply($city, $_GET['nickname'], $_GET['money'], $_GET['mobile']), 'UTF-8', CHARSET); + if($result['rs_code'] != '1000') showmessage(lang('plugin/dzapp_haodai','apply_fail').$result['rs_msg']); + showmessage('dzapp_haodai:apply_succeed','plugin.php?id=dzapp_haodai'); + }else{ + $navtitle = lang('plugin/dzapp_haodai','fastloan'); + include template('dzapp_haodai:fastloan'); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/haodai.api.class.php b/source/plugin/dzapp_haodai/haodai.api.class.php index 8e67c43..58dfc44 100644 --- a/source/plugin/dzapp_haodai/haodai.api.class.php +++ b/source/plugin/dzapp_haodai/haodai.api.class.php @@ -1,485 +1,1034 @@ - - * @copyright open.weibo.com - */ -class HaoDaiOAuth { - public $client_id; - public $client_secret; - public $access_token; - public $refresh_token; - public $http_code; - public $url; - public $host = HD_API_HOST; - public $source = "open.haodai"; - public $auth = "oauth2"; - public $union_ref = HD_REF; - public $timeout = 30; - public $connecttimeout = 30; - public $ssl_verifypeer = FALSE; - public $format = 'json'; - public $decode_json = TRUE; - public $http_info; - public $useragent = 'HAODAI OAuth2 v0.1'; - - public $debug = FALSE; - - public static $boundary = ''; - - function accessTokenURL() { return HD_API_HOST.'oauth2/access_token/'; } - function authorizeURL() { return HD_API_HOST.'oauth2/authorize/'; } - function __construct($client_id, $client_secret, $access_token = NULL, $refresh_token = NULL, $union_ref = NULL) { - $this->client_id = $client_id; - $this->client_secret = $client_secret; - $this->access_token = $access_token; - $this->refresh_token = $refresh_token; $this->union_ref = empty($union_ref) ? HD_REF : $union_ref; - } - - function getAuthorizeURL( $url, $response_type = 'code', $state = NULL, $display = NULL ) { - $params = array(); - $params['client_id'] = $this->client_id; - $params['redirect_uri'] = $url; - $params['response_type'] = $response_type; - $params['state'] = $state; - $params['display'] = $display; - return $this->authorizeURL() . "?" . http_build_query($params); - } - - function getAccessToken( $type = 'code', $keys ) { - $params = array(); - $params['client_id'] = $this->client_id; - $params['client_secret'] = $this->client_secret; - $params['response_type'] = 'token'; - if ( $type === 'token' ) { - $params['grant_type'] = 'refresh_token'; - $params['refresh_token'] = $keys['refresh_token']; - } elseif ( $type === 'code' ) { - $params['grant_type'] = 'authorization_code'; - $params['code'] = $keys['code']; - $params['redirect_uri'] = $keys['redirect_uri']; - } elseif ( $type === 'password' ) { - $params['grant_type'] = 'password'; - $params['username'] = $keys['username']; - $params['password'] = $keys['password']; - } else { - exit("wrong auth type"); - } - - $response = $this->oAuthRequest($this->accessTokenURL(), 'POST', $params); - - $token = json_decode($response, true); - if ( is_array($token) && !isset($token['error']) ) { - $this->access_token = $token['access_token']; - $this->refresh_token = $token['refresh_token']; - } else { - exit("get access token failed." . $token['error']); - } - return $token; - } - - function parseSignedRequest($signed_request) { - list($encoded_sig, $payload) = explode('.', $signed_request, 2); - $sig = self::base64decode($encoded_sig) ; - $data = json_decode(self::base64decode($payload), true); - if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') return '-1'; - $expected_sig = hash_hmac('sha256', $payload, $this->client_secret, true); - return ($sig !== $expected_sig)? '-2':$data; - } - - function base64decode($str) { - return base64_decode(strtr($str.str_repeat('=', (4 - strlen($str) % 4)), '-_', '+/')); - } - - function getTokenFromJSSDK() { - $key = "haodaijs_" . $this->client_id; - if ( isset($_COOKIE[$key]) && $cookie = $_COOKIE[$key] ) { - parse_str($cookie, $token); - if ( isset($token['access_token']) && isset($token['refresh_token']) ) { - $this->access_token = $token['access_token']; - $this->refresh_token = $token['refresh_token']; - return $token; - } else { - return false; - } - } else { - return false; - } - } - - function getTokenFromArray( $arr ) { - if (isset($arr['access_token']) && $arr['access_token']) { - $token = array(); - $this->access_token = $token['access_token'] = $arr['access_token']; - if (isset($arr['refresh_token']) && $arr['refresh_token']) { - $this->refresh_token = $token['refresh_token'] = $arr['refresh_token']; - } - - return $token; - } else { - return false; - } - } - - function get($url, $parameters = array()) { - $response = $this->oAuthRequest($url, 'GET', $parameters); - if ($this->format === 'json' && $this->decode_json) { - return json_decode($response, true); - } - return $response; - } - - function post($url, $parameters = array(), $multi = false) { - $response = $this->oAuthRequest($url, 'POST', $parameters, $multi ); - if ($this->format === 'json' && $this->decode_json) { - return json_decode($response, true); - } - return $response; - } - - function delete($url, $parameters = array()) { - $response = $this->oAuthRequest($url, 'DELETE', $parameters); - if ($this->format === 'json' && $this->decode_json) { - return json_decode($response, true); - } - return $response; - } - - function oAuthRequest($url, $method, $parameters, $multi = false) { - - if (strrpos($url, 'http://') !== 0 && strrpos($url, 'https://') !== 0) { - $url = "{$this->host}{$url}"; - } - - switch ($method) { - case 'GET': - $url = $url . '?source='.$this->source.'&auth='.$this->auth.'&ref='.$this->union_ref.'&'. http_build_query($parameters); - return $this->http($url, 'GET'); - default: - $headers = array(); - if (!$multi && (is_array($parameters) || is_object($parameters)) ) { - $body = http_build_query($parameters); - } else { - $body = self::build_http_query_multi($parameters); - $headers[] = "Content-Type: multipart/form-data; boundary=" . self::$boundary; - } - $url = $url . '?source='.$this->source.'&auth='.$this->auth.'&ref='.$this->union_ref; - return $this->http($url, $method, $body, $headers); - } - } - - function http($url, $method, $postfields = NULL, $headers = array()) { - $this->http_info = array(); - $ci = curl_init(); - curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); - curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent); - curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout); - curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout); - curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE); - curl_setopt($ci, CURLOPT_ENCODING, ""); - curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer); - curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1); - curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader')); - curl_setopt($ci, CURLOPT_HEADER, FALSE); - - switch ($method) { - case 'POST': - curl_setopt($ci, CURLOPT_POST, TRUE); - if (!empty($postfields)) { - curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields); - $this->postdata = $postfields; - } - break; - case 'DELETE': - curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE'); - if (!empty($postfields)) { - $url = "{$url}?{$postfields}"; - } - } - - if ( isset($this->access_token) && $this->access_token ) - $headers[] = "Authorization: oauth2 ".$this->access_token; - - if ( !empty($this->remote_ip) ) { - if ( defined('SAE_ACCESSKEY') ) { - $headers[] = "SaeRemoteIP: " . $this->remote_ip; - } else { - $headers[] = "API-RemoteIP: " . $this->remote_ip; - } - } else { - if ( !defined('SAE_ACCESSKEY') ) { - $headers[] = "API-RemoteIP: " . $_SERVER['REMOTE_ADDR']; - } - } - curl_setopt($ci, CURLOPT_URL, $url ); - curl_setopt($ci, CURLOPT_HTTPHEADER, $headers ); - curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE ); - - $response = curl_exec($ci); - - $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE); - $this->http_info = array_merge($this->http_info, curl_getinfo($ci)); - $this->url = $url; - - if ($this->debug) { - echo "=====post data======\r\n"; - var_dump($postfields); - - echo "=====headers======\r\n"; - print_r($headers); - - echo '=====request info====='."\r\n"; - print_r( curl_getinfo($ci) ); - - echo '=====response====='."\r\n"; - print_r( $response ); - } - curl_close ($ci); - return $response; - } - - function getHeader($ch, $header) { - $i = strpos($header, ':'); - if (!empty($i)) { - $key = str_replace('-', '_', strtolower(substr($header, 0, $i))); - $value = trim(substr($header, $i + 2)); - $this->http_header[$key] = $value; - } - return strlen($header); - } - - public static function build_http_query_multi($params) { - if (!$params) return ''; - - uksort($params, 'strcmp'); - - $pairs = array(); - - self::$boundary = $boundary = uniqid('------------------'); - $MPboundary = '--'.$boundary; - $endMPboundary = $MPboundary. '--'; - $multipartbody = ''; - - foreach ($params as $parameter => $value) { - - if( in_array($parameter, array('pic', 'image')) && $value{0} == '@' ) { - $url = ltrim( $value, '@' ); - $content = file_get_contents( $url ); - $array = explode( '?', basename( $url ) ); - $filename = $array[0]; - - $multipartbody .= $MPboundary . "\r\n"; - $multipartbody .= 'Content-Disposition: form-data; name="' . $parameter . '"; filename="' . $filename . '"'. "\r\n"; - $multipartbody .= "Content-Type: image/unknown\r\n\r\n"; - $multipartbody .= $content. "\r\n"; - } else { - $multipartbody .= $MPboundary . "\r\n"; - $multipartbody .= 'content-disposition: form-data; name="' . $parameter . "\"\r\n\r\n"; - $multipartbody .= $value."\r\n"; - } - - } - - $multipartbody .= $endMPboundary; - return $multipartbody; - } -} - - -class HaoDaiClient -{ - function __construct( $akey, $skey, $access_token, $refresh_token = NULL, $union_ref='') - { - $this->oauth = new HaoDaiOAuth( $akey, $skey, $access_token, $refresh_token, $union_ref); - } - - function set_debug( $enable ) - { - $this->oauth->debug = $enable; - } - - function set_remote_ip( $ip ) - { - if ( ip2long($ip) !== false ) { - $this->oauth->remote_ip = $ip; - return true; - } else { - return false; - } - } - - function get_xindai_list($city='beijing' , $xd_type='xiaofei', $money=1, $month=12, $data=array(), $page=1, $page_size=10 ) - { - $params = array(); - $params['xd_type'] = $xd_type; - $params['city'] = $city; - $params['page'] = $page; - $params['page_size'] = $page_size; - $params['money'] = $money; - $params['month']= $month; - $params = array_merge($params,$data); - return $this->oauth->get('xindai/get_xindai_list', $params); - } - - function get_xindai_detail($city, $item_id, $money=1, $month=12) - { - $params = array(); - $params['item_id'] = $item_id; - $params['city'] = $city; - $params['money'] = $money; - $params['month']= $month; - return $this->oauth->get('xindai/get_xindai_detail', $params); - } - - function send_xindai_apply($city, $nickname, $money, $mobile, $data=array()) - { - if(empty($city)||empty($nickname)||empty($mobile)||empty($money)) - { - return false; - } - $params = array(); - $params['city'] = $city; - $params['nickname'] = $nickname; - $params['mobile'] = $mobile; - $params['money'] = $money; - $params = array_merge($data,$params); - return $this->oauth->post( 'xindai/send_xindai_apply', $params, true ); - } - - function get_xindai_filter($xd_type) - { - $params = array(); - $params['xd_type'] = $xd_type; - return $this->oauth->get( 'xindai/get_xindai_filter', $params ); - } - - - function get_xindai_zones() - { - $params = array(); - return $this->oauth->get( 'xindai/get_xindai_zones', $params ); - } - - - - function send_xindai_apply_details($id, $details, $xd_type=FALSE) - { - $params = array(); - $params['id'] = intval($id); - $params['details'] = $details; - $params['xd_type'] = $xd_type; - return $this->oauth->post('xindai/send_xindai_apply_details', $params); - } - - function send_xindai_apply_fast( $city, $nickname, $money, $mobile, $data=array()) - { - $params = array(); - $params['city'] = $city; - $params['nickname'] = $nickname; - $params['mobile'] = $mobile; - $params['money'] = $money; - $params = array_merge($data,$params); - return $this->oauth->post('xindai/send_xindai_apply_fast', $params); - } - - - function get_hot_recommend( $city ) - { - $params = array(); - $params['city'] = $city; - return $this->oauth->get('common/get_hot_recommend', $params); - } - - function get_xindai_ad( $city ) - { - $params = array(); - $params['city'] = $city; - return $this->oauth->get('xindai/get_xindai_ad', $params); - } - - function get_article_dkgl_list( $city, $is_top, $pg_num = 1, $pg_size = 10) - { - $params = array(); - $params['is_top'] = $is_top; - $params['city'] = $city; - return $this->request_with_pager( 'article/get_article_dkgl_list', $pg_num, $pg_size, $params ); - } - - function get_article_dkzx_list( $city, $is_top, $pg_num = 1, $pg_size = 10) - { - $params = array(); - $params['is_top'] = $is_top; - $params['city'] = $city; - return $this->request_with_pager( 'article/get_article_dkzx_list', $pg_num, $pg_size, $params ); - } - - function get_article_cjwt_list( $city, $is_top, $pg_num = 1, $pg_size = 10) - { - $params = array(); - $params['is_top'] = $is_top; - $params['city'] = $city; - return $this->request_with_pager( 'article/get_article_cjwt_list', $pg_num, $pg_size, $params ); - } - - function get_article_jyfx_list( $city, $is_top, $pg_num = 1, $pg_size = 10) - { - $params = array(); - $params['is_top'] = $is_top; - $params['city'] = $city; - return $this->request_with_pager( 'article/get_article_jyfx_list', $pg_num, $pg_size, $params ); - } - - function get_article_detail( $id) - { - $params = array(); - $params['id'] = $id; - return $this->oauth->get( 'article/get_article_detail',$params ); - } - - function register_union_account($data=array()) - { - $params = array(); - $params['email'] = $data['email']; - $params['tel'] = $data['tel']; - $params['nickname'] = $data['nickname']; - $params['passwd'] = $data['passwd']; - $params['realname'] = $data['realname']; - $params['qq'] = $data['qq']; - $params['domain'] = $data['domain']; - $params['sitename'] = $data['sitename']; - $res = $this->oauth->post('user/register_union_account', $params); $this->oauth->union_ref = $res['hd_ref']; return $res; - } - - function haodai_app_register($data=array()) - { - $params = array(); - $params['app_name'] = $data['app_name']; - $params['site_url'] = $data['site_url']; - $params['desc'] = $data['desc']; - $params['callback_url'] = $data['callback_url']; return $this->oauth->post('user/haodai_app_register', $params); - } - - function haodai_check_AccessToken() - { - $params = array(); - return $this->oauth->get('common/check_AccessToken', $params); - } - - protected function request_with_pager( $url, $pg_num = false, $pg_size = false, $params = array() ) - { - if( $pg_num ) $params['pg_num'] = $pg_num; - if( $pg_size ) $params['pg_size'] = $pg_size; - - return $this->oauth->get($url, $params ); - } - - protected function id_format(&$id) { - if ( is_float($id) ) { - $id = number_format($id, 0, '', ''); - } elseif ( is_string($id) ) { - $id = trim($id); - } - } - + + * @copyright open.weibo.com + */ + + +!defined('IN_DISCUZ') && exit('Access Denied'); + +class HaoDaiOAuth { + + + public $client_id; + + + public $client_secret; + + + public $access_token; + + + public $refresh_token; + + + public $http_code; + + + public $url; + + + public $host = HD_API_HOST; + + + public $source = "open.haodai"; + + + public $auth = "oauth2"; + + + public $union_ref = HD_REF; + + + public $timeout = 30; + + + public $connecttimeout = 30; + + + public $ssl_verifypeer = FALSE; + + + public $format = 'json'; + + + public $decode_json = TRUE; + + + public $http_info; + + + public $useragent = 'HAODAI OAuth2 v0.1'; + + + + + public $debug = FALSE; + + + + + public static $boundary = ''; + + + + + + function accessTokenURL() { return HD_API_HOST.'oauth2/access_token/'; } + + + function authorizeURL() { return HD_API_HOST.'oauth2/authorize/'; } + + + function __construct($client_id, $client_secret, $access_token = NULL, $refresh_token = NULL, $union_ref = NULL) { + + $this->client_id = $client_id; + + $this->client_secret = $client_secret; + + $this->access_token = $access_token; + + $this->refresh_token = $refresh_token; + + $this->union_ref = empty($union_ref) ? HD_REF : $union_ref; + } + + + + + function getAuthorizeURL( $url, $response_type = 'code', $state = NULL, $display = NULL ) { + + $params = array(); + + $params['client_id'] = $this->client_id; + + $params['redirect_uri'] = $url; + + $params['response_type'] = $response_type; + + $params['state'] = $state; + + $params['display'] = $display; + + return $this->authorizeURL() . "?" . http_build_query($params); + + } + + + + + function getAccessToken( $type = 'code', $keys ) { + + $params = array(); + + $params['client_id'] = $this->client_id; + + $params['client_secret'] = $this->client_secret; + + $params['response_type'] = 'token'; + + if ( $type === 'token' ) { + + $params['grant_type'] = 'refresh_token'; + + $params['refresh_token'] = $keys['refresh_token']; + + } elseif ( $type === 'code' ) { + + $params['grant_type'] = 'authorization_code'; + + $params['code'] = $keys['code']; + + $params['redirect_uri'] = $keys['redirect_uri']; + + } elseif ( $type === 'password' ) { + + $params['grant_type'] = 'password'; + + $params['username'] = $keys['username']; + + $params['password'] = $keys['password']; + + } else { + + exit("wrong auth type"); + + } + + + + $response = $this->oAuthRequest($this->accessTokenURL(), 'POST', $params); + + + + $token = json_decode($response, true); + + if ( is_array($token) && !isset($token['error']) ) { + + $this->access_token = $token['access_token']; + + $this->refresh_token = $token['refresh_token']; + + } else { + + exit("get access token failed." . $token['error']); + + } + + return $token; + + } + + + + + function parseSignedRequest($signed_request) { + + list($encoded_sig, $payload) = explode('.', $signed_request, 2); + + $sig = self::base64decode($encoded_sig) ; + + $data = json_decode(self::base64decode($payload), true); + + if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') return '-1'; + + $expected_sig = hash_hmac('sha256', $payload, $this->client_secret, true); + + return ($sig !== $expected_sig)? '-2':$data; + + } + + + + + function base64decode($str) { + + return base64_decode(strtr($str.str_repeat('=', (4 - strlen($str) % 4)), '-_', '+/')); + + } + + + + + function getTokenFromJSSDK() { + + $key = "haodaijs_" . $this->client_id; + + if ( isset($_COOKIE[$key]) && $cookie = $_COOKIE[$key] ) { + + parse_str($cookie, $token); + + if ( isset($token['access_token']) && isset($token['refresh_token']) ) { + + $this->access_token = $token['access_token']; + + $this->refresh_token = $token['refresh_token']; + + return $token; + + } else { + + return false; + + } + + } else { + + return false; + + } + + } + + + + + function getTokenFromArray( $arr ) { + + if (isset($arr['access_token']) && $arr['access_token']) { + + $token = array(); + + $this->access_token = $token['access_token'] = $arr['access_token']; + + if (isset($arr['refresh_token']) && $arr['refresh_token']) { + + $this->refresh_token = $token['refresh_token'] = $arr['refresh_token']; + + } + + + + return $token; + + } else { + + return false; + + } + + } + + + + + function get($url, $parameters = array()) { + + $response = $this->oAuthRequest($url, 'GET', $parameters); + + if ($this->format === 'json' && $this->decode_json) { + + return json_decode($response, true); + + } + + return $response; + + } + + + + + function post($url, $parameters = array(), $multi = false) { + + $response = $this->oAuthRequest($url, 'POST', $parameters, $multi ); + + if ($this->format === 'json' && $this->decode_json) { + + return json_decode($response, true); + + } + + return $response; + + } + + + + + function delete($url, $parameters = array()) { + + $response = $this->oAuthRequest($url, 'DELETE', $parameters); + + if ($this->format === 'json' && $this->decode_json) { + + return json_decode($response, true); + + } + + return $response; + + } + + + + + function oAuthRequest($url, $method, $parameters, $multi = false) { + + + + if (strrpos($url, 'http://') !== 0 && strrpos($url, 'https://') !== 0) { + + $url = "{$this->host}{$url}"; + + } + + + + switch ($method) { + + case 'GET': + + $url = $url . '?source='.$this->source.'&auth='.$this->auth.'&ref='.$this->union_ref.'&'. http_build_query($parameters); + + return $this->http($url, 'GET'); + + default: + + $headers = array(); + + if (!$multi && (is_array($parameters) || is_object($parameters)) ) { + + $body = http_build_query($parameters); + + } else { + + $body = self::build_http_query_multi($parameters); + + $headers[] = "Content-Type: multipart/form-data; boundary=" . self::$boundary; + + } + + $url = $url . '?source='.$this->source.'&auth='.$this->auth.'&ref='.$this->union_ref; + + return $this->http($url, $method, $body, $headers); + + } + + } + + + + + function http($url, $method, $postfields = NULL, $headers = array()) { + + $this->http_info = array(); + + $ci = curl_init(); + + + curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); + + curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent); + + curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout); + + curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout); + + curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE); + + curl_setopt($ci, CURLOPT_ENCODING, ""); + + curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer); + + curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1); + + curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader')); + + curl_setopt($ci, CURLOPT_HEADER, FALSE); + + + + switch ($method) { + + case 'POST': + + curl_setopt($ci, CURLOPT_POST, TRUE); + + if (!empty($postfields)) { + + curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields); + + $this->postdata = $postfields; + + } + + break; + + case 'DELETE': + + curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE'); + + if (!empty($postfields)) { + + $url = "{$url}?{$postfields}"; + + } + + } + + + + if ( isset($this->access_token) && $this->access_token ) + + $headers[] = "Authorization: oauth2 ".$this->access_token; + + + + if ( !empty($this->remote_ip) ) { + + if ( defined('SAE_ACCESSKEY') ) { + + $headers[] = "SaeRemoteIP: " . $this->remote_ip; + + } else { + + $headers[] = "API-RemoteIP: " . $this->remote_ip; + + } + + } else { + + if ( !defined('SAE_ACCESSKEY') ) { + + $headers[] = "API-RemoteIP: " . $_SERVER['REMOTE_ADDR']; + + } + + } + + curl_setopt($ci, CURLOPT_URL, $url ); + + curl_setopt($ci, CURLOPT_HTTPHEADER, $headers ); + + curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE ); + + + + $response = curl_exec($ci); + + + + $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE); + + $this->http_info = array_merge($this->http_info, curl_getinfo($ci)); + + $this->url = $url; + + + + if ($this->debug) { + + echo "=====post data======\r\n"; + + var_dump($postfields); + + + + echo "=====headers======\r\n"; + + print_r($headers); + + + + echo '=====request info====='."\r\n"; + + print_r( curl_getinfo($ci) ); + + + + echo '=====response====='."\r\n"; + + print_r( $response ); + + } + + curl_close ($ci); + + return $response; + + } + + + + + function getHeader($ch, $header) { + + $i = strpos($header, ':'); + + if (!empty($i)) { + + $key = str_replace('-', '_', strtolower(substr($header, 0, $i))); + + $value = trim(substr($header, $i + 2)); + + $this->http_header[$key] = $value; + + } + + return strlen($header); + + } + + + + + public static function build_http_query_multi($params) { + + if (!$params) return ''; + + + + uksort($params, 'strcmp'); + + + + $pairs = array(); + + + + self::$boundary = $boundary = uniqid('------------------'); + + $MPboundary = '--'.$boundary; + + $endMPboundary = $MPboundary. '--'; + + $multipartbody = ''; + + + + foreach ($params as $parameter => $value) { + + + + if( in_array($parameter, array('pic', 'image')) && $value{0} == '@' ) { + + $url = ltrim( $value, '@' ); + + $content = file_get_contents( $url ); + + $array = explode( '?', basename( $url ) ); + + $filename = $array[0]; + + + + $multipartbody .= $MPboundary . "\r\n"; + + $multipartbody .= 'Content-Disposition: form-data; name="' . $parameter . '"; filename="' . $filename . '"'. "\r\n"; + + $multipartbody .= "Content-Type: image/unknown\r\n\r\n"; + + $multipartbody .= $content. "\r\n"; + + } else { + + $multipartbody .= $MPboundary . "\r\n"; + + $multipartbody .= 'content-disposition: form-data; name="' . $parameter . "\"\r\n\r\n"; + + $multipartbody .= $value."\r\n"; + + } + + + + } + + + + $multipartbody .= $endMPboundary; + + return $multipartbody; + + } + +} + + + + + + +class HaoDaiClient + +{ + + + function __construct( $akey, $skey, $access_token, $refresh_token = NULL, $union_ref='') + + { + + $this->oauth = new HaoDaiOAuth( $akey, $skey, $access_token, $refresh_token, $union_ref); + + } + + + + + function set_debug( $enable ) + + { + + $this->oauth->debug = $enable; + + } + + + + + function set_remote_ip( $ip ) + + { + + if ( ip2long($ip) !== false ) { + + $this->oauth->remote_ip = $ip; + + return true; + + } else { + + return false; + + } + + } + + + + + function get_xindai_list($city='beijing' , $xd_type='xiaofei', $money=1, $month=12, $data=array(), $page=1, $page_size=10 ) + + { + + $params = array(); + + $params['xd_type'] = $xd_type; + + $params['city'] = $city; + + $params['page'] = $page; + + $params['page_size'] = $page_size; + + $params['money'] = $money; + + $params['month']= $month; + + $params = array_merge($params,$data); + + return $this->oauth->get('xindai/get_xindai_list', $params); + + } + + + + + function get_xindai_detail($city, $item_id, $money=1, $month=12) + + { + + $params = array(); + + $params['item_id'] = $item_id; + + $params['city'] = $city; + + $params['money'] = $money; + + $params['month']= $month; + + return $this->oauth->get('xindai/get_xindai_detail', $params); + + } + + + + + function send_xindai_apply($city, $nickname, $money, $mobile, $data=array()) + + { + + if(empty($city)||empty($nickname)||empty($mobile)||empty($money)) + + { + + return false; + + } + + $params = array(); + + $params['city'] = $city; + + $params['nickname'] = $nickname; + + $params['mobile'] = $mobile; + + $params['money'] = $money; + + $params = array_merge($data,$params); + + return $this->oauth->post( 'xindai/send_xindai_apply', $params, true ); + + } + + + + + function get_xindai_filter($xd_type) + + { + + $params = array(); + + $params['xd_type'] = $xd_type; + + return $this->oauth->get( 'xindai/get_xindai_filter', $params ); + + } + + + + + + + function get_xindai_zones() + + { + + $params = array(); + + return $this->oauth->get( 'xindai/get_xindai_zones', $params ); + + } + + + + + + + + + function send_xindai_apply_details($id, $details, $xd_type=FALSE) + + { + + $params = array(); + + $params['id'] = intval($id); + + $params['details'] = $details; + + $params['xd_type'] = $xd_type; + + return $this->oauth->post('xindai/send_xindai_apply_details', $params); + + } + + + + + function send_xindai_apply_fast( $city, $nickname, $money, $mobile, $data=array()) + + { + + $params = array(); + + $params['city'] = $city; + + $params['nickname'] = $nickname; + + $params['mobile'] = $mobile; + + $params['money'] = $money; + + $params = array_merge($data,$params); + + return $this->oauth->post('xindai/send_xindai_apply_fast', $params); + + } + + + + + + + function get_hot_recommend( $city ) + + { + + $params = array(); + + $params['city'] = $city; + + return $this->oauth->get('common/get_hot_recommend', $params); + + } + + + + + function get_xindai_ad( $city ) + + { + + $params = array(); + + $params['city'] = $city; + + return $this->oauth->get('xindai/get_xindai_ad', $params); + + } + + + + + function get_article_dkgl_list( $city, $is_top, $pg_num = 1, $pg_size = 10) + + { + + $params = array(); + + $params['is_top'] = $is_top; + + $params['city'] = $city; + + return $this->request_with_pager( 'article/get_article_dkgl_list', $pg_num, $pg_size, $params ); + + } + + + + + function get_article_dkzx_list( $city, $is_top, $pg_num = 1, $pg_size = 10) + + { + + $params = array(); + + $params['is_top'] = $is_top; + + $params['city'] = $city; + + return $this->request_with_pager( 'article/get_article_dkzx_list', $pg_num, $pg_size, $params ); + + } + + + + + function get_article_cjwt_list( $city, $is_top, $pg_num = 1, $pg_size = 10) + + { + + $params = array(); + + $params['is_top'] = $is_top; + + $params['city'] = $city; + + return $this->request_with_pager( 'article/get_article_cjwt_list', $pg_num, $pg_size, $params ); + + } + + + + + function get_article_jyfx_list( $city, $is_top, $pg_num = 1, $pg_size = 10) + + { + + $params = array(); + + $params['is_top'] = $is_top; + + $params['city'] = $city; + + return $this->request_with_pager( 'article/get_article_jyfx_list', $pg_num, $pg_size, $params ); + + } + + + + + function get_article_detail( $id) + + { + + $params = array(); + + $params['id'] = $id; + + return $this->oauth->get( 'article/get_article_detail',$params ); + + } + + + + + function register_union_account($data=array()) + + { + + $params = array(); + + $params['email'] = $data['email']; + + $params['tel'] = $data['tel']; + + $params['nickname'] = $data['nickname']; + + $params['passwd'] = $data['passwd']; + + $params['realname'] = $data['realname']; + + $params['qq'] = $data['qq']; + + $params['domain'] = $data['domain']; + + $params['sitename'] = $data['sitename']; + + $res = $this->oauth->post('user/register_union_account', $params); + + $this->oauth->union_ref = $res['hd_ref']; + + return $res; + } + + + + + function haodai_app_register($data=array()) + + { + + $params = array(); + + $params['app_name'] = $data['app_name']; + + $params['site_url'] = $data['site_url']; + + $params['desc'] = $data['desc']; + + $params['callback_url'] = $data['callback_url']; + + return $this->oauth->post('user/haodai_app_register', $params); + + } + + + + + + function haodai_check_AccessToken() + + { + + $params = array(); + + return $this->oauth->get('common/check_AccessToken', $params); + + } + + + + + protected function request_with_pager( $url, $pg_num = false, $pg_size = false, $params = array() ) + + { + + if( $pg_num ) $params['pg_num'] = $pg_num; + + if( $pg_size ) $params['pg_size'] = $pg_size; + + + + return $this->oauth->get($url, $params ); + + } + + + + + protected function id_format(&$id) { + + if ( is_float($id) ) { + + $id = number_format($id, 0, '', ''); + + } elseif ( is_string($id) ) { + + $id = trim($id); + + } + + } + + + } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/haodai.class.php b/source/plugin/dzapp_haodai/haodai.class.php index b80bef9..5a55eeb 100644 --- a/source/plugin/dzapp_haodai/haodai.class.php +++ b/source/plugin/dzapp_haodai/haodai.class.php @@ -1,89 +1,88 @@ -'. - ''. - ''. - ''. - ''. - ''; - } - - $haodaistyle = 1; - include_once template('dzapp_haodai:hook_forum'); - return $haodai_html; - } - function viewthread_postsightmlafter_output() { - global $_G,$postlist; - $return = array(); - if(!in_array($_G['fid'],$_G['cache']['plugin']['dzapp_haodai']['forumlisthot'])) return; - if(file_exists(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_jyfx_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php')){ - include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_jyfx_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php'; - $jyfx_article = $jyfx_article['items']; - } - if(file_exists(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php')){ - include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php'; - $dkgl_article = $dkgl_article['items']; - } - if(file_exists(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php')){ - include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php'; - $dkzx_article = $dkzx_article['items']; - } - $haodai_article = array_merge($jyfx_article,$dkgl_article,$dkzx_article); - if(!$haodai_article) return; - shuffle($haodai_article); - $haodaistyle = 2; - include_once template('dzapp_haodai:hook_forum'); - - foreach($postlist as $key => $post){ - if($post['first']){ - $return[] = $haodai_html; - }else{ - $return[] = ''; - } - } - return $return; - } - -} +'. + ''. + ''. + ''. + ''. + ''; + } + + $haodaistyle = 1; + include_once template('dzapp_haodai:hook_forum'); + return $haodai_html; + } + function viewthread_postsightmlafter_output() { + global $_G,$postlist; + $return = array(); + if(!in_array($_G['fid'],$_G['cache']['plugin']['dzapp_haodai']['forumlisthot'])) return; + if(file_exists(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_jyfx_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php')){ + include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_jyfx_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php'; + $jyfx_article = $jyfx_article['items']; + } + if(file_exists(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php')){ + include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkgl_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php'; + $dkgl_article = $dkgl_article['items']; + } + if(file_exists(DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php')){ + include_once DISCUZ_ROOT.'./data/sysdata/cache_dzapp_haodai_dkzx_'.$_G['cache']['plugin']['dzapp_haodai']['API_citynames_1231'].'.php'; + $dkzx_article = $dkzx_article['items']; + } + $haodai_article = array_merge($jyfx_article,$dkgl_article,$dkzx_article); + if(!$haodai_article) return; + shuffle($haodai_article); + $haodaistyle = 2; + include_once template('dzapp_haodai:hook_forum'); + + foreach($postlist as $key => $post){ + if($post['first']){ + $return[] = $haodai_html; + }else{ + $return[] = ''; + } + } + return $return; + } + +} ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/DD_belatedPNG.js b/source/plugin/dzapp_haodai/images/DD_belatedPNG.js index 0b86745..ef8e957 100644 --- a/source/plugin/dzapp_haodai/images/DD_belatedPNG.js +++ b/source/plugin/dzapp_haodai/images/DD_belatedPNG.js @@ -1,13 +1,13 @@ -/** -* DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML . -* Author: Drew Diller -* Email: drew.diller@gmail.com -* URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/ -* Version: 0.0.8a -* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license -* -* Example usage: -* DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector -* DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement -**/ +/** +* DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML . +* Author: Drew Diller +* Email: drew.diller@gmail.com +* URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/ +* Version: 0.0.8a +* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license +* +* Example usage: +* DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector +* DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement +**/ var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;bn.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.pngJquery/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet(); \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/apply.css b/source/plugin/dzapp_haodai/images/apply.css index 53544cf..750270e 100644 --- a/source/plugin/dzapp_haodai/images/apply.css +++ b/source/plugin/dzapp_haodai/images/apply.css @@ -1,14 +1,14 @@ -/* CSS Document */ - - -/***********************answer***************************/ -.answer{ background:#f2f2f2; text-indent:8px; text-align:left;} -.alllist th{ text-align:right;} -table tr th{text-align:right; } -.answer1{ text-align:left;} -.tfm td.answer2{ padding-left:14px;} -.tfm th{ padding-right:60px; width:144px;} -/*table tr{ line-height:30px;} -*/ -.tfm td{ padding:10px 0;} -.dakuang{ background:url(fgg_05.jpg) no-repeat; width:104px; height:29px; border:0;} +/* CSS Document */ + + +/***********************answer***************************/ +.answer{ background:#f2f2f2; text-indent:8px; text-align:left;} +.alllist th{ text-align:right;} +table tr th{text-align:right; } +.answer1{ text-align:left;} +.tfm td.answer2{ padding-left:14px;} +.tfm th{ padding-right:60px; width:144px;} +/*table tr{ line-height:30px;} +*/ +.tfm td{ padding:10px 0;} +.dakuang{ background:url(fgg_05.jpg) no-repeat; width:104px; height:29px; border:0;} diff --git a/source/plugin/dzapp_haodai/images/apply/apply_xf.js b/source/plugin/dzapp_haodai/images/apply/apply_xf.js index 0cbef90..f05cef9 100644 --- a/source/plugin/dzapp_haodai/images/apply/apply_xf.js +++ b/source/plugin/dzapp_haodai/images/apply/apply_xf.js @@ -1,282 +1,282 @@ -Jquery(document).ready(function() { -}); -function xfCheckOneForm(bool) { - var id_name = 'salary'; - var salary = Jquery('#salary_inp_hidden').val(); - var wage = Jquery.trim(Jquery('#salary_inp').val()); - if (salary == '') { - var dom = Jquery('#' + id_name + 'Tip').show(); - bool = false; - } else { - if (!isNaN(salary)) { - if (salary > 1000000) { - var dom = Jquery('#salaryTip').show(); - Jquery('#salaryTip').text('限100万内'); - bool = false; - } else { - var dom = Jquery('#salaryTip').hide(); - bool = true; - } - } else { - var dom = Jquery('#salaryTip').show(); - Jquery('#salaryTip').text('输入纯数字'); - bool = false; - } - } - var id_name = 'qiye_type'; - var qiye_type = Jquery('#qiye_type_inp_hidden').val(); - if (qiye_type == '') { - var dom = Jquery('#' + id_name + 'Tip').show(); - bool = false; - } - var id_name = 'salary_type'; - var salary_type = Jquery('input[name="' + id_name + '"]:checked').val(); - if (typeof (salary_type) == 'undefined') { - var dom = Jquery('#' + id_name + 'Tip').show(); - bool = false; - } - var id_name = 'year_born'; - var year_born = Jquery('#year_born_inp').val(); - alert(year_born); - if (year_born == '') { - Jquery('#' + id_name + 'Tip').html('请回答问题'); - Jquery('#' + id_name + 'Tip').show(); - bool = false; - } else { - if (year_born < 1900) { - Jquery('#' + id_name + 'Tip').html('您有这么老吗'); - var dom = Jquery('#' + id_name + 'Tip').show(); - bool = false; - } - } - - var jobyear = Jquery.trim(Jquery('#work_year').val()); //-------------------您的工作时间 - 年 start --------------------------- - var job_year_placeholder = Jquery('input[name="job_year"]').attr('placeholder'); //IE6下提示语 - var id_name = 'jobtime'; - if (job_year_placeholder == jobyear) { - jobyear = ''; - } - if (jobyear == '' && jobmonth == '') { - var dom = Jquery('#' + id_name + 'Tip').show(); - bool = false - } else { - if (!isNaN(jobyear)) { - if ((jobyear < 0) || (jobyear > 100)) { - var dom = Jquery('.jobtime').show(); - Jquery('.jobtime').text('0<年数<45'); - bool = false; - } - } else { - var dom = Jquery('.jobtime').show(); - Jquery('.jobtime').text('输入纯数字'); - bool = false; - } - }//-------------------您的工作时间 - 年 over --------------------------- - var jobmonth = Jquery.trim(Jquery('#work_month').val()); //-------------------您的工作时间 - 月 start --------------- - var job_month_placeholder = Jquery('input[name="job_month"]').attr('placeholder'); //IE6下提示语 - - if (job_month_placeholder == jobmonth) { - jobmonth = ''; - } - if (jobyear == '' && jobmonth == '') { - var dom = Jquery('#' + id_name + 'Tip').show(); - bool = false; - } else { - if (!isNaN(jobmonth)) { - if ((jobmonth < 0) || (jobmonth > 11)) { - var dom = Jquery('.jobtime').show(); - Jquery('.jobtime').text('0<=月数<12'); - bool = false; - } - } else { - var dom = Jquery('.jobtime').show(); - Jquery('.jobtime').text('输入纯数字'); - bool = false; - } - } //------------------- 您的工作时间 - 月 over --------------------------- - return bool; -} -function xfCheckTwoForm(bool) { - var bool = true; - var has_blue_card = isHas(Jquery('input[name="has_blue_card"]:checked').val()); - if (has_blue_card == '') { - bool = false; - Jquery('#has_blue_card_tip').show(); - } - if (has_blue_card == '有') { - var count_blue_card = Jquery('input[name="count_blue_card"]').val(); //1.1您有几张信用卡 - if (count_blue_card == '') { - bool = false; - Jquery('#count_blue_card_tip').show(); - } else { - if (isNaN(count_blue_card)) { - bool = false; - Jquery('#count_blue_card_tip').html('请输入纯数字'); - Jquery('#count_blue_card_tip').show(); - } else { - if (count_blue_card < 0) { - bool = false; - Jquery('#count_blue_card_tip').html('不能为负数'); - Jquery('#count_blue_card_tip').show(); - } else if (count_blue_card > 10000) { - bool = false; - Jquery('#count_blue_card_tip').html('最多10000张'); - Jquery('#count_blue_card_tip').show(); - } else { - Jquery('#count_blue_card_tip').hide(); - } - } - } - var money_blue_card = Jquery('input[name="money_blue_card"]').val(); //1.2额度总额是多少 - if (money_blue_card == '') { - bool = false; - Jquery('#money_blue_card_tip').show(); - } else { - if (isNaN(money_blue_card)) { - bool = false; - Jquery('#money_blue_card_tip').html('请输入纯数字'); - Jquery('#money_blue_card_tip').show(); - } else { - if (money_blue_card < 0) { - bool = false; - Jquery('#money_blue_card_tip').html('不能为负数'); - Jquery('#money_blue_card_tip').show(); - } else if (money_blue_card > 8000000) { - bool = false; - Jquery('#money_blue_card_tip').html('800万内'); - Jquery('#money_blue_card_tip').show(); - } else { - Jquery('#money_blue_card_tip').hide(); - } - } - } - } else { - Jquery('input[name="count_blue_card"]').val(''); - Jquery('input[name="money_blue_card"]').val(''); - } - - var has_debt_card = isHas(Jquery('input[name="has_debt_card"]:checked').val()); - if (has_debt_card == '') { - bool = false; - Jquery('#has_debt_card_tip').show(); - } - if (has_debt_card == '有') { - var money_debt_card = Jquery('input[name="money_debt_card"]').val(); //2.1负债多少 - if (money_debt_card == '') { - bool = false; - Jquery('#money_debt_card_tip').show(); - } else { - if (isNaN(money_debt_card)) { - bool = false; - Jquery('#money_debt_card_tip').html('请输入纯数字'); - Jquery('#money_debt_card_tip').show(); - } else { - if (money_debt_card < 0) { - bool = false; - Jquery('#money_debt_card_tip').html('不能为负数'); - Jquery('#money_debt_card_tip').show(); - } else if (money_debt_card > 8000000) { - bool = false; - Jquery('#money_debt_card_tip').html('800万内'); - Jquery('#money_debt_card_tip').show(); - } else { - Jquery('#money_debt_card_tip').hide(); - } - } - } - } - else { - Jquery('input[name="money_debt_card"]').val(''); - } - var has_succ_reply = isHas(Jquery('input[name="has_succ_reply"]:checked').val()); - if (has_succ_reply == '') { - bool = false; - Jquery('#has_succ_reply_tip').show(); - } else { - Jquery('#has_succ_reply_tip').hide(); - } - var has_debt_loan = isHas(Jquery('input[name="has_debt_loan"]:checked').val()); - if (has_debt_loan == '') { - bool = false; - Jquery('#has_debt_loan_tip').show(); - } - if (has_debt_loan == '有') { - var money_debt_loan = Jquery('input[name="money_debt_loan"]').val(); //4.1负债多少 - if (money_debt_loan == '') { - bool = false; - Jquery('#money_debt_loan_tip').show(); - } else { - if (isNaN(money_debt_loan)) { - bool = false; - Jquery('#money_debt_loan_tip').html('请输入纯数字'); - Jquery('#money_debt_loan_tip').show(); - } else { - if (money_debt_loan < 0) { - bool = false; - Jquery('#money_debt_loan_tip').html('不能为负数'); - Jquery('#money_debt_loan_tip').show(); - } else if (money_debt_loan > 8000000) { - bool = false; - Jquery('#money_debt_loan_tip').html('800万内'); - Jquery('#money_debt_loan_tip').show(); - } else { - Jquery('#money_debt_loan_tip').hide(); - } - } - } - } - else { - Jquery('input[name="money_debt_loan"]').val(''); - } - return bool; -} - - -Jquery(document).ready(function() { - yesno(); - hidetip(); -}); -function yesno() { - var tab_yes = Jquery('.ipttab_yes'); - var tab_no = Jquery('.ipttab_no'); - tab_yes.click(function() { - var tab_con = Jquery(this).parent().parent().parent().parent().children('.xinpu'); - Jquery(this).parent().parent().children('.tishi').hide(); - tab_con.show(); - xf_juzhong(); - }); - tab_no.click(function() { - var tab_con = Jquery(this).parent().parent().parent().parent().children('.xinpu'); - Jquery(this).parent().parent().children('.tishi').hide(); - tab_con.hide(); - xf_juzhong(); - }); - var tab_yes2 = Jquery('.ipttab_yes2'); - var tab_no2 = Jquery('.ipttab_no2'); - tab_yes2.click(function() { - Jquery(this).parent().parent().children('.tishi').hide(); - xf_juzhong(); - }); - tab_no2.click(function() { - Jquery(this).parent().parent().children('.tishi').hide(); - xf_juzhong(); - }); -} -function xf_juzhong() { - if (jQuery.browser.msie && (jQuery.browser.version == "6.0") && !jQuery.support.style) { - Jquery('.tipbox').css({}); - } else { - Jquery('.tipbox').css({ - top: ((Jquery(window).height() - Jquery('.tipbox').outerHeight()) / 2), - left: (Jquery(window).width() - Jquery(".tipbox").outerWidth()) / 2 - }); - } -} - -function hidetip() { - var tip = Jquery('.tishi'); - var ipt = Jquery('.sinp'); - ipt.click(function() { - Jquery(this).parent().parent().children('.tishi').hide(); - }); +Jquery(document).ready(function() { +}); +function xfCheckOneForm(bool) { + var id_name = 'salary'; + var salary = Jquery('#salary_inp_hidden').val(); + var wage = Jquery.trim(Jquery('#salary_inp').val()); + if (salary == '') { + var dom = Jquery('#' + id_name + 'Tip').show(); + bool = false; + } else { + if (!isNaN(salary)) { + if (salary > 1000000) { + var dom = Jquery('#salaryTip').show(); + Jquery('#salaryTip').text('限100万内'); + bool = false; + } else { + var dom = Jquery('#salaryTip').hide(); + bool = true; + } + } else { + var dom = Jquery('#salaryTip').show(); + Jquery('#salaryTip').text('输入纯数字'); + bool = false; + } + } + var id_name = 'qiye_type'; + var qiye_type = Jquery('#qiye_type_inp_hidden').val(); + if (qiye_type == '') { + var dom = Jquery('#' + id_name + 'Tip').show(); + bool = false; + } + var id_name = 'salary_type'; + var salary_type = Jquery('input[name="' + id_name + '"]:checked').val(); + if (typeof (salary_type) == 'undefined') { + var dom = Jquery('#' + id_name + 'Tip').show(); + bool = false; + } + var id_name = 'year_born'; + var year_born = Jquery('#year_born_inp').val(); + alert(year_born); + if (year_born == '') { + Jquery('#' + id_name + 'Tip').html('请回答问题'); + Jquery('#' + id_name + 'Tip').show(); + bool = false; + } else { + if (year_born < 1900) { + Jquery('#' + id_name + 'Tip').html('您有这么老吗'); + var dom = Jquery('#' + id_name + 'Tip').show(); + bool = false; + } + } + + var jobyear = Jquery.trim(Jquery('#work_year').val()); //-------------------您的工作时间 - 年 start --------------------------- + var job_year_placeholder = Jquery('input[name="job_year"]').attr('placeholder'); //IE6下提示语 + var id_name = 'jobtime'; + if (job_year_placeholder == jobyear) { + jobyear = ''; + } + if (jobyear == '' && jobmonth == '') { + var dom = Jquery('#' + id_name + 'Tip').show(); + bool = false + } else { + if (!isNaN(jobyear)) { + if ((jobyear < 0) || (jobyear > 100)) { + var dom = Jquery('.jobtime').show(); + Jquery('.jobtime').text('0<年数<45'); + bool = false; + } + } else { + var dom = Jquery('.jobtime').show(); + Jquery('.jobtime').text('输入纯数字'); + bool = false; + } + }//-------------------您的工作时间 - 年 over --------------------------- + var jobmonth = Jquery.trim(Jquery('#work_month').val()); //-------------------您的工作时间 - 月 start --------------- + var job_month_placeholder = Jquery('input[name="job_month"]').attr('placeholder'); //IE6下提示语 + + if (job_month_placeholder == jobmonth) { + jobmonth = ''; + } + if (jobyear == '' && jobmonth == '') { + var dom = Jquery('#' + id_name + 'Tip').show(); + bool = false; + } else { + if (!isNaN(jobmonth)) { + if ((jobmonth < 0) || (jobmonth > 11)) { + var dom = Jquery('.jobtime').show(); + Jquery('.jobtime').text('0<=月数<12'); + bool = false; + } + } else { + var dom = Jquery('.jobtime').show(); + Jquery('.jobtime').text('输入纯数字'); + bool = false; + } + } //------------------- 您的工作时间 - 月 over --------------------------- + return bool; +} +function xfCheckTwoForm(bool) { + var bool = true; + var has_blue_card = isHas(Jquery('input[name="has_blue_card"]:checked').val()); + if (has_blue_card == '') { + bool = false; + Jquery('#has_blue_card_tip').show(); + } + if (has_blue_card == '有') { + var count_blue_card = Jquery('input[name="count_blue_card"]').val(); //1.1您有几张信用卡 + if (count_blue_card == '') { + bool = false; + Jquery('#count_blue_card_tip').show(); + } else { + if (isNaN(count_blue_card)) { + bool = false; + Jquery('#count_blue_card_tip').html('请输入纯数字'); + Jquery('#count_blue_card_tip').show(); + } else { + if (count_blue_card < 0) { + bool = false; + Jquery('#count_blue_card_tip').html('不能为负数'); + Jquery('#count_blue_card_tip').show(); + } else if (count_blue_card > 10000) { + bool = false; + Jquery('#count_blue_card_tip').html('最多10000张'); + Jquery('#count_blue_card_tip').show(); + } else { + Jquery('#count_blue_card_tip').hide(); + } + } + } + var money_blue_card = Jquery('input[name="money_blue_card"]').val(); //1.2额度总额是多少 + if (money_blue_card == '') { + bool = false; + Jquery('#money_blue_card_tip').show(); + } else { + if (isNaN(money_blue_card)) { + bool = false; + Jquery('#money_blue_card_tip').html('请输入纯数字'); + Jquery('#money_blue_card_tip').show(); + } else { + if (money_blue_card < 0) { + bool = false; + Jquery('#money_blue_card_tip').html('不能为负数'); + Jquery('#money_blue_card_tip').show(); + } else if (money_blue_card > 8000000) { + bool = false; + Jquery('#money_blue_card_tip').html('800万内'); + Jquery('#money_blue_card_tip').show(); + } else { + Jquery('#money_blue_card_tip').hide(); + } + } + } + } else { + Jquery('input[name="count_blue_card"]').val(''); + Jquery('input[name="money_blue_card"]').val(''); + } + + var has_debt_card = isHas(Jquery('input[name="has_debt_card"]:checked').val()); + if (has_debt_card == '') { + bool = false; + Jquery('#has_debt_card_tip').show(); + } + if (has_debt_card == '有') { + var money_debt_card = Jquery('input[name="money_debt_card"]').val(); //2.1负债多少 + if (money_debt_card == '') { + bool = false; + Jquery('#money_debt_card_tip').show(); + } else { + if (isNaN(money_debt_card)) { + bool = false; + Jquery('#money_debt_card_tip').html('请输入纯数字'); + Jquery('#money_debt_card_tip').show(); + } else { + if (money_debt_card < 0) { + bool = false; + Jquery('#money_debt_card_tip').html('不能为负数'); + Jquery('#money_debt_card_tip').show(); + } else if (money_debt_card > 8000000) { + bool = false; + Jquery('#money_debt_card_tip').html('800万内'); + Jquery('#money_debt_card_tip').show(); + } else { + Jquery('#money_debt_card_tip').hide(); + } + } + } + } + else { + Jquery('input[name="money_debt_card"]').val(''); + } + var has_succ_reply = isHas(Jquery('input[name="has_succ_reply"]:checked').val()); + if (has_succ_reply == '') { + bool = false; + Jquery('#has_succ_reply_tip').show(); + } else { + Jquery('#has_succ_reply_tip').hide(); + } + var has_debt_loan = isHas(Jquery('input[name="has_debt_loan"]:checked').val()); + if (has_debt_loan == '') { + bool = false; + Jquery('#has_debt_loan_tip').show(); + } + if (has_debt_loan == '有') { + var money_debt_loan = Jquery('input[name="money_debt_loan"]').val(); //4.1负债多少 + if (money_debt_loan == '') { + bool = false; + Jquery('#money_debt_loan_tip').show(); + } else { + if (isNaN(money_debt_loan)) { + bool = false; + Jquery('#money_debt_loan_tip').html('请输入纯数字'); + Jquery('#money_debt_loan_tip').show(); + } else { + if (money_debt_loan < 0) { + bool = false; + Jquery('#money_debt_loan_tip').html('不能为负数'); + Jquery('#money_debt_loan_tip').show(); + } else if (money_debt_loan > 8000000) { + bool = false; + Jquery('#money_debt_loan_tip').html('800万内'); + Jquery('#money_debt_loan_tip').show(); + } else { + Jquery('#money_debt_loan_tip').hide(); + } + } + } + } + else { + Jquery('input[name="money_debt_loan"]').val(''); + } + return bool; +} + + +Jquery(document).ready(function() { + yesno(); + hidetip(); +}); +function yesno() { + var tab_yes = Jquery('.ipttab_yes'); + var tab_no = Jquery('.ipttab_no'); + tab_yes.click(function() { + var tab_con = Jquery(this).parent().parent().parent().parent().children('.xinpu'); + Jquery(this).parent().parent().children('.tishi').hide(); + tab_con.show(); + xf_juzhong(); + }); + tab_no.click(function() { + var tab_con = Jquery(this).parent().parent().parent().parent().children('.xinpu'); + Jquery(this).parent().parent().children('.tishi').hide(); + tab_con.hide(); + xf_juzhong(); + }); + var tab_yes2 = Jquery('.ipttab_yes2'); + var tab_no2 = Jquery('.ipttab_no2'); + tab_yes2.click(function() { + Jquery(this).parent().parent().children('.tishi').hide(); + xf_juzhong(); + }); + tab_no2.click(function() { + Jquery(this).parent().parent().children('.tishi').hide(); + xf_juzhong(); + }); +} +function xf_juzhong() { + if (jQuery.browser.msie && (jQuery.browser.version == "6.0") && !jQuery.support.style) { + Jquery('.tipbox').css({}); + } else { + Jquery('.tipbox').css({ + top: ((Jquery(window).height() - Jquery('.tipbox').outerHeight()) / 2), + left: (Jquery(window).width() - Jquery(".tipbox").outerWidth()) / 2 + }); + } +} + +function hidetip() { + var tip = Jquery('.tishi'); + var ipt = Jquery('.sinp'); + ipt.click(function() { + Jquery(this).parent().parent().children('.tishi').hide(); + }); } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/apply/applybox.js b/source/plugin/dzapp_haodai/images/apply/applybox.js index 351b39e..8525cdd 100644 --- a/source/plugin/dzapp_haodai/images/apply/applybox.js +++ b/source/plugin/dzapp_haodai/images/apply/applybox.js @@ -1,557 +1,557 @@ -var xd_type_global = Jquery('#xd_type').val(); -Jquery(document).ready(function() { -}); -function placeholderBox() { - var doc = document, inputs = doc.getElementsByTagName('input'), supportPlaceholder = 'placeholder'in doc.createElement('input'), placeholder = function(input) { - var text = input.getAttribute('placeholder'), defaultValue = input.defaultValue; - if (defaultValue == '') { - input.value = text - } - Jquery(input).css('color', '#999'); - input.onfocus = function() { - if (input.value === text) { - this.value = '' - } - Jquery(this).css('color', '#333'); - }; - input.onblur = function() { - if (input.value === '') { - this.value = text - Jquery(this).css('color', '#999'); - } else { - Jquery(this).css('color', '#333'); - } - } - }; - if (!supportPlaceholder) { - for (var i = 0, len = inputs.length; i < len; i++) { - var input = inputs[i], text = input.getAttribute('placeholder'); - if (input.type === 'text' && text) { - placeholder(input) - } - } - } -} -function placeholderBoxText() { - var doc = document, inputs = doc.getElementsByTagName('textarea'), supportPlaceholder = 'placeholder'in doc.createElement('textarea'), placeholder = function(input) { - var text = input.getAttribute('placeholder'), defaultValue = input.defaultValue; - if (defaultValue == '') { - input.value = text - } - input.onfocus = function() { - if (input.value === text) { - this.value = '' - } - Jquery(this).css('color', '#333'); - }; - input.onblur = function() { - if (input.value === '') { - this.value = text - Jquery(this).css('color', '#999'); - } else { - Jquery(this).css('color', '#333'); - } - } - }; - for (var i = 0, len = inputs.length; i < len; i++) { - var input = inputs[i], text = input.getAttribute('placeholder'); - placeholder(input); - } -} -Jquery('.tboxb').click(function() { - Jquery('.tishi').hide(); -}); -Jquery('.tbsb').click(function() { - Jquery('.tishi2').hide(); -}); -function juzhong() { - if (jQuery.browser.msie && (jQuery.browser.version == "6.0") && !jQuery.support.style) { - Jquery('.tipbox').css({}); - } else { - Jquery('.tipbox').css({ - top: ((Jquery(window).height() - Jquery('.tipbox').outerHeight()) / 2), - left: ((Jquery(window).width() - Jquery(".tipbox").outerWidth()) / 2) - }); - } -} -function applyNext(next_name) { - bool = true; - if (next_name == 'xiaofei_two') { - var bool = checkOneForm(); - yesno(); - hidetip(); - if (bool == true) { - Jquery('#one').hide(); - Jquery('#xiaofei_two').show(); - } - } else if (next_name == 'two') { - if (xd_type_global != 4) { - var bool = checkOneForm(); - } else { - var bool = xfCheckTwoForm(); - } - if (bool == true) { - if (Jquery('#xiaofei_two').length > 0) { - Jquery('#xiaofei_two').hide(); - Jquery('.tboxtop').html('
' + - '1.填写个人职业信息' + - ' 2.填写个人信用信息 ' + - ' 3.留下联系方式 ' + - ' 4.成功了!
'); - } - Jquery('#one').hide(); - Jquery('#two').show(); - } - } - else if (next_name == 'three') { - var bool = checkTwoForm(); - if (bool == true) { - Jquery('#two').hide(); - if (Jquery('#xiaofei_two').length > 0) { - Jquery('.tboxtop').html('
1.填写个人职业信息' + - ' 2.填写个人信用信息 ' + - ' 3.留下联系方式 ' + - ' 4.成功了!
'); - } - Jquery('#three').show(); - applySend(); - } - } - juzhong(); -} -function checkOneForm() { - var xd_type = Jquery('#xd_type').val(); - var bool = true; - if (xd_type == 1) { //------------------------------------------- 企业 ------------------------------------------- - var qiye_type = Jquery('#qiye_type_inp_hidden').val(); - if (qiye_type == '') { - var dom = Jquery('#qiye_typeTip').show(); - bool = false; - } - if (Jquery('#monthly').val() == '') { - var dom = Jquery('#monthlyTip').show(); - bool = false; - } - var has_house = Jquery('input[name="has_house"]:checked').val(); - if (typeof (has_house) == 'undefined') { - var dom = Jquery('#has_houseTip').show(); - bool = false; - } - var register = Jquery('input[name="register"]:checked').val(); - if (typeof (register) == 'undefined') { - var dom = Jquery('#registerTip').show(); - bool = false; - } - } else if (xd_type == 2) { //------------------------------------------- 购车 ------------------------------------------- - var has_house = Jquery('input[name="has_house"]:checked').val(); - if (typeof (has_house) == 'undefined') { - var dom = Jquery('#has_houseTip').show(); - bool = false; - } - var car_number = Jquery('input[name="car_number"]:checked').val(); - if (typeof (car_number) == 'undefined') { - var dom = Jquery('#car_numberTip').show(); - bool = false; - } - var car_type = Jquery('input[name="car_type"]:checked').val(); - if (typeof (car_type) == 'undefined') { - var dom = Jquery('#car_typeTip').show(); - bool = false; - } - var car_stage = Jquery('input[name="car_stage"]:checked').val(); - if (typeof (car_stage) == 'undefined') { - var dom = Jquery('#car_stageTip').show(); - bool = false; - } - var car_use = Jquery('input[name="car_use"]:checked').val(); - if (typeof (car_use) == 'undefined') { - var dom = Jquery('#car_useTip').show(); - bool = false; - } - } else if (xd_type == 3) { //------------------------------------------- 购房 ------------------------------------------- - var goufang_type = Jquery('#goufang_type_inp_hidden').val(); - if (goufang_type == '') { - var dom = Jquery('#goufang_typeTip').show(); - bool = false; - } - var salary = Jquery('#salary_inp_hidden').val(); - var wage = Jquery.trim(Jquery('#salary_inp').val()); - if (salary == '') { - var dom = Jquery('#salaryTip').show(); - bool = false; - } else { - if (!isNaN(salary)) { - if (salary > 1000000) { - var dom = Jquery('#salaryTip').show(); - Jquery('#salaryTip').text('限100万内'); - bool = false; - } else { - var dom = Jquery('#salaryTip').hide(); - bool = true; - } - } else { - var dom = Jquery('#salaryTip').show(); - Jquery('#salaryTip').text('输入纯数字'); - bool = false; - } - } - var first_house = Jquery('input[name="first_house"]:checked').val(); - if (typeof (first_house) == 'undefined') { - var dom = Jquery('#first_houseTip').show(); - bool = false; - } - var id_name = 'second_hand_house'; - var second_hand_house = Jquery('input[name="' + id_name + '"]:checked').val(); - if (typeof (second_hand_house) == 'undefined') { - var dom = Jquery('#' + id_name + 'Tip').show(); - bool = false; - } - } else if (xd_type == 4) { //------------------------------------------- 消费 ------------------------------------------- - bool = xfCheckOneForm(bool); - } - return bool; -} - -function checkTwoForm() { - var bool = true; - var nickname = Jquery('#nickname').val(); - var nknet = Jquery('#nicknameTip'); - var mobile = Jquery('#mobile').val(); - if (/[\s><,._\。\[\]\{\}\?\/\+\=\|\'\\\":;\~\!\@\#\*\Jquery\%\^\&`\uff00-\uffff)(]+/.test(nickname) && nickname.length > 0) { - nknet.show(); - nknet.text('输入只限中英文'); - bool = false; - } else if (nickname == '') { - nknet.show(); - bool = false; - } else if (nickname.length == 0) { - nknet.show(); - nknet.text('请填写您的称呼'); - bool = false; - } - if (mobile == '' || mobile == '用于接收信贷员联系方式') { - Jquery('#mobileTip').show(); - bool = false; - } else { - if (checkMobile(mobile) == false) { - Jquery('#mobileTip').show(); - bool = false; - } - } - var email = Jquery('#email').val(); - var def_email = Jquery('#email').attr('defval'); - if (email != def_email) { - if (checkEmail(email) == false) { - Jquery('#emailTip').show(); - bool = false; - } - } - return bool; -} - -function inpTwoFocus(obj) { - Jquery(obj).css('color', '#666666'); -} -function inpTwoBlur(obj) { - Jquery(obj).css('color', '#CCCCCC'); -} -function applySend() { - var sendData = Jquery('#applyForm').serialize(); - var xd_id = Jquery('#xd_id').val(); - var xd_type = Jquery('#xd_type').val(); - var zone_id = Jquery('#zone_id').val(); - var remark = remarkApply(xd_type); - var bank_id = Jquery('#bank_id').val(); - var money = Jquery('#money_detail').val(); - var month = Jquery('#month_detail').val(); - var source_host = Jquery('#source_host').val(); - var ref = Jquery('#ref').val(); - sendData += ('&url=' + document.location.href + '&xd_id=' + xd_id + '&xd_type=' + xd_type + '&zone_id=' + zone_id + - '&remark=' + remark + '&bank_id=' + bank_id + '&money=' + money + '&month=' + month + '&source_host=' + source_host + - '&ref=' + ref); - Jquery.post('/xindai/applySend', sendData, function(data) { - if (data != false) { - iu_id = data; - } else { - - } - }); -} -function sendApplydetails() { - var details = Jquery.trim(Jquery('#applydetails').val()); - if (details == '' || iu_id == null) { - return false; - } - var xd_type = Jquery('#xd_type').val(); - var sendData = ('id=' + iu_id + '&details=' + details + '&xd_type=' + xd_type); - Jquery.post('/xindai/applyDetails', sendData, function(data) { - }); -} -function remarkApply(xd_type) { - var split_str = '
'; - var remark = ''; - if (xd_type == 1) { //------------------------------------------- 企业 ------------------------------------------- - var qiye_type = Jquery('#qiye_type_inp_hidden').val(); - var monthly = '银行卡走账月收入:' + Jquery('#monthly').val(); - var has_house = Jquery('input[name="has_house"]:checked').val(); - var register = Jquery('input[name="register"]:checked').val(); - remark = (qiye_type + split_str + monthly + split_str + has_house + split_str + register); - } else if (xd_type == 2) { //------------------------------------------- 购车 ------------------------------------------- - var has_house = Jquery('input[name="has_house"]:checked').val(); - var car_number = Jquery('input[name="car_number"]:checked').val(); - var car_type = Jquery('input[name="car_type"]:checked').val(); - var car_stage = Jquery('input[name="car_stage"]:checked').val(); - var car_use = Jquery('input[name="car_use"]:checked').val(); - remark = (has_house + split_str + car_number + split_str + car_type + split_str + car_stage + split_str + car_use); - } else if (xd_type == 3) { //------------------------------------------- 购房 ------------------------------------------- - var goufang_type = Jquery('#goufang_type_inp_hidden').val(); - var salary = Jquery('#salary_inp_hidden').attr('val') + ':' + Jquery('#salary_inp_hidden').val(); - var first_house = Jquery('input[name="first_house"]:checked').val(); - var second_hand_house = Jquery('input[name="second_hand_house"]:checked').val(); - remark = (goufang_type + split_str + salary + split_str + first_house + split_str + second_hand_house); - } else if (xd_type == 4) { //------------------------------------------- 消费 ------------------------------------------- - var salary = Jquery('#salary_inp_hidden').attr('val') + ':' + Jquery('#salary_inp_hidden').val(); - var salary_type = Jquery('input[name="salary_type"]:checked').val(); - var qiye_type = Jquery('#qiye_type_inp_hidden').val(); - var year_born = Jquery('#year_born').attr('val') + ':' + Jquery('#year_born').val(); - var job_year = Jquery.trim(Jquery('input[name="job_year"]').val()); - var job_year_placeholder = Jquery('input[name="job_year"]').attr('placeholder') + '年'; //IE6下提示语 - if (job_year_placeholder == job_year) { - job_year = ''; - } - var job_month = Jquery.trim(Jquery('input[name="job_month"]').val()); - var job_month_placeholder = Jquery('input[name="job_month"]').attr('placeholder'); //IE6下提示语 - if (job_month_placeholder == job_month) { - job_month = ''; - } - var job_year_month = ''; - if ((job_year + job_month) != '') { - var str = ''; - if (job_year != '') { - str = job_year + '年 '; - } - if (job_month != '') { - str += job_month + '月'; - } - job_year_month = split_str + '您的工作时间是:' + str; - } - var has_blue_card = isHas(Jquery('input[name="has_blue_card"]:checked').val()); - if (has_blue_card != '') { - has_blue_card = split_str + '您是否有信用卡:' + has_blue_card + split_str; - } - var count_blue_card = Jquery('input[name="count_blue_card"]').val(); - var count_blue_card_placeholder = Jquery('input[name="count_blue_card"]').attr('placeholder'); //IE6下提示语 - if (count_blue_card == count_blue_card_placeholder) { - count_blue_card = ''; - } - if (count_blue_card != '') { - count_blue_card = '您有几张信用卡:' + count_blue_card + split_str; - } - var money_blue_card = Jquery('input[name="money_blue_card"]').val(); - var money_blue_card_placeholder = Jquery('input[name="money_blue_card"]').attr('placeholder'); //IE6下提示语 - if (money_blue_card == money_blue_card_placeholder) { - money_blue_card = ''; - } - if (money_blue_card != '') { - money_blue_card = '额度总额是多少:' + money_blue_card + split_str; - } - var has_debt_card = isHas(Jquery('input[name="has_debt_card"]:checked').val()); - if (has_debt_card != '') { - has_debt_card = '是否有负债(信用卡):' + has_debt_card + split_str; - } - var money_debt_card = Jquery('input[name="money_debt_card"]').val(); - var money_debt_card_placeholder = Jquery('input[name="money_debt_card"]').attr('placeholder'); //IE6下提示语 - if (money_debt_card == money_debt_card_placeholder) { - money_debt_card = ''; - } - if (money_debt_card != '') { - money_debt_card = '负债多少(信用卡):' + money_debt_card + split_str; - } - var has_succ_reply = isHas(Jquery('input[name="has_succ_reply"]:checked').val()); - if (has_succ_reply != '') { - has_succ_reply = '您之前是否成功申请贷款:' + has_succ_reply + split_str; - } - var has_debt_loan = isHas(Jquery('input[name="has_debt_loan"]:checked').val()); - if (has_debt_loan != '') { - has_debt_loan = '是否有负债(贷款):' + has_debt_loan + split_str; - } - var money_debt_loan = Jquery('input[name="money_debt_loan"]').val(); - var money_debt_loan_placeholder = Jquery('input[name="money_debt_loan"]').attr('placeholder'); //IE6下提示语 - if (money_debt_loan == money_debt_loan_placeholder) { - money_debt_loan = ''; - } - if (money_debt_loan != '') { - money_debt_loan = '负债多少(贷款):' + money_debt_loan + split_str; - } - var xiaofei_two = job_year_month + has_blue_card + count_blue_card + money_blue_card + has_debt_card + money_debt_card + - has_succ_reply + has_debt_loan + money_debt_loan; - - remark = (salary + split_str + salary_type + split_str + year_born + split_str + qiye_type + xiaofei_two); - } - return remark; -} - -function xiaofei_two() { - -} - -function isHas(val) { - var res = ''; - if (val == 1) { - res = '有'; - } else if (val == 2) { - res = '没有'; - } - return res; -} - -function checkBlur(id_name, val_id_name, default_val) { - var val = Jquery('#' + val_id_name).val(); - setTimeout(function() { - if (val != default_val) { - Jquery('#' + id_name + 'Tip').hide(); - } else { - Jquery('#' + id_name + 'Tip').show(); - } - }, 300); -} - -function checkFocus(id_name, val_id_name, default_val) { - var val = Jquery('#' + val_id_name).val(); - if (val != default_val) { - Jquery('#' + id_name + 'Tip').hide(); - } else { - Jquery('#' + id_name + 'Tip').show(); - } -} - - -function checkTip(id_name) { - var dom = Jquery('#' + id_name + 'Tip'); - var status = dom.css('display'); - if (status == 'none') { - dom.show(); - } else { - dom.hide(); - } -} - -function inpFocus(id_name) { - var dom = Jquery('#' + id_name + '_ul'); - var status = dom.css('display'); - if (status == 'none') { - dom.show(); - } else { - dom.hide(); - } -} -function inpSelect(id_name, obj) { - var dom = Jquery('#' + id_name + '_inp'); - var val = Jquery(obj).html(); - var type_name = dom.attr('val'); - dom.val(val); - var relval = type_name + ':' + val; - dom.attr('relval', relval); - Jquery('#' + id_name + '_inp_hidden').val(relval); -} -function yearSelect(obj) { - var obj = Jquery(obj); - var val = obj.html(); - var reval = obj.attr('reval'); - if (val == '其他') { - Jquery('#year_born').attr('reval', ''); - Jquery('#year_born').val(''); - Jquery('#year_born').attr('class', 'sinp iptsr'); - Jquery('#year_born').focus(); - } else { - Jquery('#year_born').attr('reval', reval); - Jquery('#year_born').val(reval); - Jquery('#year_born').attr('class', 'sinp iptsr'); - } - var year_u = Jquery('#year_u'); - var status = year_u.css('display'); - if (status == 'none') { - Jquery('#year_u').show(); - } else { - Jquery('#year_u').hide(); - } -} -function hideYearu() { - var dom = Jquery('#year_u'); - var status = dom.css('display'); - if (status == 'none') { - Jquery('#year_u').show(); - } else { - Jquery('#year_u').hide(); - } -} -function yearKeyup(obj) { - Jquery('#year_u').show(); - var obj = Jquery(obj); - var val = obj.val(); - var arr = isNaN(val); - - obj.val(val.replace(/[^\d]/g, "")); - if (arr == true) { - Jquery('#year_u').hide(); - return false; - } - - if (val == '' || val == '0') { - Jquery('#year_u').hide(); - return false; - } - if (val.length >= 4) { - obj.val(val.substring(0, 4)); - Jquery('#year_u').hide(); - } - var html = '
  • ' + val + '
  • '; - if (val < 100) { - var temp_val = val * 10; - html += '
  • ' + temp_val + '
  • '; - } - if (val < 10) { - var temp_val = (val * 10 * 10); - html += '
  • ' + temp_val + '
  • '; - } - Jquery('#year_u').html(html); -} - -function inpVal(default_str, obj) { - var obj = Jquery(obj); - var val = obj.val(); - if (val == default_str) { - obj.val(''); - } else if (val == '') { - obj.val(default_str); - obj.css('color', '#CCCCCC'); - } -} - -function salarytypeSel(type) { - var salary_show = '每月打入银行卡的工资'; - if (type == 'two') { - salary_show = '每月领取现金'; - } - Jquery('#salary_show').html(salary_show); - Jquery('#salary_inp_hidden').attr('val', salary_show); -} -Jquery(document).ready(function() { - Jquery('.iptsr').focus(function() { - Jquery(this).placeholder(''); - }); - Jquery('#applydetails').bind('click', srfun) - .bind('keyup', srfun); -}); -var srfun = function() { - var num = Jquery('#applydetails').val().length; - if (num > 280) { - var yewnum = Jquery('#applydetails').val().substr(0, 280) - Jquery('#applydetails').val(yewnum); - } - var num_yu = 280 - num; - if (num_yu == -1) { - num_yu = 0; - } - Jquery('#shownum').html(num_yu / 2); +var xd_type_global = Jquery('#xd_type').val(); +Jquery(document).ready(function() { +}); +function placeholderBox() { + var doc = document, inputs = doc.getElementsByTagName('input'), supportPlaceholder = 'placeholder'in doc.createElement('input'), placeholder = function(input) { + var text = input.getAttribute('placeholder'), defaultValue = input.defaultValue; + if (defaultValue == '') { + input.value = text + } + Jquery(input).css('color', '#999'); + input.onfocus = function() { + if (input.value === text) { + this.value = '' + } + Jquery(this).css('color', '#333'); + }; + input.onblur = function() { + if (input.value === '') { + this.value = text + Jquery(this).css('color', '#999'); + } else { + Jquery(this).css('color', '#333'); + } + } + }; + if (!supportPlaceholder) { + for (var i = 0, len = inputs.length; i < len; i++) { + var input = inputs[i], text = input.getAttribute('placeholder'); + if (input.type === 'text' && text) { + placeholder(input) + } + } + } +} +function placeholderBoxText() { + var doc = document, inputs = doc.getElementsByTagName('textarea'), supportPlaceholder = 'placeholder'in doc.createElement('textarea'), placeholder = function(input) { + var text = input.getAttribute('placeholder'), defaultValue = input.defaultValue; + if (defaultValue == '') { + input.value = text + } + input.onfocus = function() { + if (input.value === text) { + this.value = '' + } + Jquery(this).css('color', '#333'); + }; + input.onblur = function() { + if (input.value === '') { + this.value = text + Jquery(this).css('color', '#999'); + } else { + Jquery(this).css('color', '#333'); + } + } + }; + for (var i = 0, len = inputs.length; i < len; i++) { + var input = inputs[i], text = input.getAttribute('placeholder'); + placeholder(input); + } +} +Jquery('.tboxb').click(function() { + Jquery('.tishi').hide(); +}); +Jquery('.tbsb').click(function() { + Jquery('.tishi2').hide(); +}); +function juzhong() { + if (jQuery.browser.msie && (jQuery.browser.version == "6.0") && !jQuery.support.style) { + Jquery('.tipbox').css({}); + } else { + Jquery('.tipbox').css({ + top: ((Jquery(window).height() - Jquery('.tipbox').outerHeight()) / 2), + left: ((Jquery(window).width() - Jquery(".tipbox").outerWidth()) / 2) + }); + } +} +function applyNext(next_name) { + bool = true; + if (next_name == 'xiaofei_two') { + var bool = checkOneForm(); + yesno(); + hidetip(); + if (bool == true) { + Jquery('#one').hide(); + Jquery('#xiaofei_two').show(); + } + } else if (next_name == 'two') { + if (xd_type_global != 4) { + var bool = checkOneForm(); + } else { + var bool = xfCheckTwoForm(); + } + if (bool == true) { + if (Jquery('#xiaofei_two').length > 0) { + Jquery('#xiaofei_two').hide(); + Jquery('.tboxtop').html('
    ' + + '1.填写个人职业信息' + + ' 2.填写个人信用信息 ' + + ' 3.留下联系方式 ' + + ' 4.成功了!
    '); + } + Jquery('#one').hide(); + Jquery('#two').show(); + } + } + else if (next_name == 'three') { + var bool = checkTwoForm(); + if (bool == true) { + Jquery('#two').hide(); + if (Jquery('#xiaofei_two').length > 0) { + Jquery('.tboxtop').html('
    1.填写个人职业信息' + + ' 2.填写个人信用信息 ' + + ' 3.留下联系方式 ' + + ' 4.成功了!
    '); + } + Jquery('#three').show(); + applySend(); + } + } + juzhong(); +} +function checkOneForm() { + var xd_type = Jquery('#xd_type').val(); + var bool = true; + if (xd_type == 1) { //------------------------------------------- 企业 ------------------------------------------- + var qiye_type = Jquery('#qiye_type_inp_hidden').val(); + if (qiye_type == '') { + var dom = Jquery('#qiye_typeTip').show(); + bool = false; + } + if (Jquery('#monthly').val() == '') { + var dom = Jquery('#monthlyTip').show(); + bool = false; + } + var has_house = Jquery('input[name="has_house"]:checked').val(); + if (typeof (has_house) == 'undefined') { + var dom = Jquery('#has_houseTip').show(); + bool = false; + } + var register = Jquery('input[name="register"]:checked').val(); + if (typeof (register) == 'undefined') { + var dom = Jquery('#registerTip').show(); + bool = false; + } + } else if (xd_type == 2) { //------------------------------------------- 购车 ------------------------------------------- + var has_house = Jquery('input[name="has_house"]:checked').val(); + if (typeof (has_house) == 'undefined') { + var dom = Jquery('#has_houseTip').show(); + bool = false; + } + var car_number = Jquery('input[name="car_number"]:checked').val(); + if (typeof (car_number) == 'undefined') { + var dom = Jquery('#car_numberTip').show(); + bool = false; + } + var car_type = Jquery('input[name="car_type"]:checked').val(); + if (typeof (car_type) == 'undefined') { + var dom = Jquery('#car_typeTip').show(); + bool = false; + } + var car_stage = Jquery('input[name="car_stage"]:checked').val(); + if (typeof (car_stage) == 'undefined') { + var dom = Jquery('#car_stageTip').show(); + bool = false; + } + var car_use = Jquery('input[name="car_use"]:checked').val(); + if (typeof (car_use) == 'undefined') { + var dom = Jquery('#car_useTip').show(); + bool = false; + } + } else if (xd_type == 3) { //------------------------------------------- 购房 ------------------------------------------- + var goufang_type = Jquery('#goufang_type_inp_hidden').val(); + if (goufang_type == '') { + var dom = Jquery('#goufang_typeTip').show(); + bool = false; + } + var salary = Jquery('#salary_inp_hidden').val(); + var wage = Jquery.trim(Jquery('#salary_inp').val()); + if (salary == '') { + var dom = Jquery('#salaryTip').show(); + bool = false; + } else { + if (!isNaN(salary)) { + if (salary > 1000000) { + var dom = Jquery('#salaryTip').show(); + Jquery('#salaryTip').text('限100万内'); + bool = false; + } else { + var dom = Jquery('#salaryTip').hide(); + bool = true; + } + } else { + var dom = Jquery('#salaryTip').show(); + Jquery('#salaryTip').text('输入纯数字'); + bool = false; + } + } + var first_house = Jquery('input[name="first_house"]:checked').val(); + if (typeof (first_house) == 'undefined') { + var dom = Jquery('#first_houseTip').show(); + bool = false; + } + var id_name = 'second_hand_house'; + var second_hand_house = Jquery('input[name="' + id_name + '"]:checked').val(); + if (typeof (second_hand_house) == 'undefined') { + var dom = Jquery('#' + id_name + 'Tip').show(); + bool = false; + } + } else if (xd_type == 4) { //------------------------------------------- 消费 ------------------------------------------- + bool = xfCheckOneForm(bool); + } + return bool; +} + +function checkTwoForm() { + var bool = true; + var nickname = Jquery('#nickname').val(); + var nknet = Jquery('#nicknameTip'); + var mobile = Jquery('#mobile').val(); + if (/[\s><,._\。\[\]\{\}\?\/\+\=\|\'\\\":;\~\!\@\#\*\Jquery\%\^\&`\uff00-\uffff)(]+/.test(nickname) && nickname.length > 0) { + nknet.show(); + nknet.text('输入只限中英文'); + bool = false; + } else if (nickname == '') { + nknet.show(); + bool = false; + } else if (nickname.length == 0) { + nknet.show(); + nknet.text('请填写您的称呼'); + bool = false; + } + if (mobile == '' || mobile == '用于接收信贷员联系方式') { + Jquery('#mobileTip').show(); + bool = false; + } else { + if (checkMobile(mobile) == false) { + Jquery('#mobileTip').show(); + bool = false; + } + } + var email = Jquery('#email').val(); + var def_email = Jquery('#email').attr('defval'); + if (email != def_email) { + if (checkEmail(email) == false) { + Jquery('#emailTip').show(); + bool = false; + } + } + return bool; +} + +function inpTwoFocus(obj) { + Jquery(obj).css('color', '#666666'); +} +function inpTwoBlur(obj) { + Jquery(obj).css('color', '#CCCCCC'); +} +function applySend() { + var sendData = Jquery('#applyForm').serialize(); + var xd_id = Jquery('#xd_id').val(); + var xd_type = Jquery('#xd_type').val(); + var zone_id = Jquery('#zone_id').val(); + var remark = remarkApply(xd_type); + var bank_id = Jquery('#bank_id').val(); + var money = Jquery('#money_detail').val(); + var month = Jquery('#month_detail').val(); + var source_host = Jquery('#source_host').val(); + var ref = Jquery('#ref').val(); + sendData += ('&url=' + document.location.href + '&xd_id=' + xd_id + '&xd_type=' + xd_type + '&zone_id=' + zone_id + + '&remark=' + remark + '&bank_id=' + bank_id + '&money=' + money + '&month=' + month + '&source_host=' + source_host + + '&ref=' + ref); + Jquery.post('/xindai/applySend', sendData, function(data) { + if (data != false) { + iu_id = data; + } else { + + } + }); +} +function sendApplydetails() { + var details = Jquery.trim(Jquery('#applydetails').val()); + if (details == '' || iu_id == null) { + return false; + } + var xd_type = Jquery('#xd_type').val(); + var sendData = ('id=' + iu_id + '&details=' + details + '&xd_type=' + xd_type); + Jquery.post('/xindai/applyDetails', sendData, function(data) { + }); +} +function remarkApply(xd_type) { + var split_str = '
    '; + var remark = ''; + if (xd_type == 1) { //------------------------------------------- 企业 ------------------------------------------- + var qiye_type = Jquery('#qiye_type_inp_hidden').val(); + var monthly = '银行卡走账月收入:' + Jquery('#monthly').val(); + var has_house = Jquery('input[name="has_house"]:checked').val(); + var register = Jquery('input[name="register"]:checked').val(); + remark = (qiye_type + split_str + monthly + split_str + has_house + split_str + register); + } else if (xd_type == 2) { //------------------------------------------- 购车 ------------------------------------------- + var has_house = Jquery('input[name="has_house"]:checked').val(); + var car_number = Jquery('input[name="car_number"]:checked').val(); + var car_type = Jquery('input[name="car_type"]:checked').val(); + var car_stage = Jquery('input[name="car_stage"]:checked').val(); + var car_use = Jquery('input[name="car_use"]:checked').val(); + remark = (has_house + split_str + car_number + split_str + car_type + split_str + car_stage + split_str + car_use); + } else if (xd_type == 3) { //------------------------------------------- 购房 ------------------------------------------- + var goufang_type = Jquery('#goufang_type_inp_hidden').val(); + var salary = Jquery('#salary_inp_hidden').attr('val') + ':' + Jquery('#salary_inp_hidden').val(); + var first_house = Jquery('input[name="first_house"]:checked').val(); + var second_hand_house = Jquery('input[name="second_hand_house"]:checked').val(); + remark = (goufang_type + split_str + salary + split_str + first_house + split_str + second_hand_house); + } else if (xd_type == 4) { //------------------------------------------- 消费 ------------------------------------------- + var salary = Jquery('#salary_inp_hidden').attr('val') + ':' + Jquery('#salary_inp_hidden').val(); + var salary_type = Jquery('input[name="salary_type"]:checked').val(); + var qiye_type = Jquery('#qiye_type_inp_hidden').val(); + var year_born = Jquery('#year_born').attr('val') + ':' + Jquery('#year_born').val(); + var job_year = Jquery.trim(Jquery('input[name="job_year"]').val()); + var job_year_placeholder = Jquery('input[name="job_year"]').attr('placeholder') + '年'; //IE6下提示语 + if (job_year_placeholder == job_year) { + job_year = ''; + } + var job_month = Jquery.trim(Jquery('input[name="job_month"]').val()); + var job_month_placeholder = Jquery('input[name="job_month"]').attr('placeholder'); //IE6下提示语 + if (job_month_placeholder == job_month) { + job_month = ''; + } + var job_year_month = ''; + if ((job_year + job_month) != '') { + var str = ''; + if (job_year != '') { + str = job_year + '年 '; + } + if (job_month != '') { + str += job_month + '月'; + } + job_year_month = split_str + '您的工作时间是:' + str; + } + var has_blue_card = isHas(Jquery('input[name="has_blue_card"]:checked').val()); + if (has_blue_card != '') { + has_blue_card = split_str + '您是否有信用卡:' + has_blue_card + split_str; + } + var count_blue_card = Jquery('input[name="count_blue_card"]').val(); + var count_blue_card_placeholder = Jquery('input[name="count_blue_card"]').attr('placeholder'); //IE6下提示语 + if (count_blue_card == count_blue_card_placeholder) { + count_blue_card = ''; + } + if (count_blue_card != '') { + count_blue_card = '您有几张信用卡:' + count_blue_card + split_str; + } + var money_blue_card = Jquery('input[name="money_blue_card"]').val(); + var money_blue_card_placeholder = Jquery('input[name="money_blue_card"]').attr('placeholder'); //IE6下提示语 + if (money_blue_card == money_blue_card_placeholder) { + money_blue_card = ''; + } + if (money_blue_card != '') { + money_blue_card = '额度总额是多少:' + money_blue_card + split_str; + } + var has_debt_card = isHas(Jquery('input[name="has_debt_card"]:checked').val()); + if (has_debt_card != '') { + has_debt_card = '是否有负债(信用卡):' + has_debt_card + split_str; + } + var money_debt_card = Jquery('input[name="money_debt_card"]').val(); + var money_debt_card_placeholder = Jquery('input[name="money_debt_card"]').attr('placeholder'); //IE6下提示语 + if (money_debt_card == money_debt_card_placeholder) { + money_debt_card = ''; + } + if (money_debt_card != '') { + money_debt_card = '负债多少(信用卡):' + money_debt_card + split_str; + } + var has_succ_reply = isHas(Jquery('input[name="has_succ_reply"]:checked').val()); + if (has_succ_reply != '') { + has_succ_reply = '您之前是否成功申请贷款:' + has_succ_reply + split_str; + } + var has_debt_loan = isHas(Jquery('input[name="has_debt_loan"]:checked').val()); + if (has_debt_loan != '') { + has_debt_loan = '是否有负债(贷款):' + has_debt_loan + split_str; + } + var money_debt_loan = Jquery('input[name="money_debt_loan"]').val(); + var money_debt_loan_placeholder = Jquery('input[name="money_debt_loan"]').attr('placeholder'); //IE6下提示语 + if (money_debt_loan == money_debt_loan_placeholder) { + money_debt_loan = ''; + } + if (money_debt_loan != '') { + money_debt_loan = '负债多少(贷款):' + money_debt_loan + split_str; + } + var xiaofei_two = job_year_month + has_blue_card + count_blue_card + money_blue_card + has_debt_card + money_debt_card + + has_succ_reply + has_debt_loan + money_debt_loan; + + remark = (salary + split_str + salary_type + split_str + year_born + split_str + qiye_type + xiaofei_two); + } + return remark; +} + +function xiaofei_two() { + +} + +function isHas(val) { + var res = ''; + if (val == 1) { + res = '有'; + } else if (val == 2) { + res = '没有'; + } + return res; +} + +function checkBlur(id_name, val_id_name, default_val) { + var val = Jquery('#' + val_id_name).val(); + setTimeout(function() { + if (val != default_val) { + Jquery('#' + id_name + 'Tip').hide(); + } else { + Jquery('#' + id_name + 'Tip').show(); + } + }, 300); +} + +function checkFocus(id_name, val_id_name, default_val) { + var val = Jquery('#' + val_id_name).val(); + if (val != default_val) { + Jquery('#' + id_name + 'Tip').hide(); + } else { + Jquery('#' + id_name + 'Tip').show(); + } +} + + +function checkTip(id_name) { + var dom = Jquery('#' + id_name + 'Tip'); + var status = dom.css('display'); + if (status == 'none') { + dom.show(); + } else { + dom.hide(); + } +} + +function inpFocus(id_name) { + var dom = Jquery('#' + id_name + '_ul'); + var status = dom.css('display'); + if (status == 'none') { + dom.show(); + } else { + dom.hide(); + } +} +function inpSelect(id_name, obj) { + var dom = Jquery('#' + id_name + '_inp'); + var val = Jquery(obj).html(); + var type_name = dom.attr('val'); + dom.val(val); + var relval = type_name + ':' + val; + dom.attr('relval', relval); + Jquery('#' + id_name + '_inp_hidden').val(relval); +} +function yearSelect(obj) { + var obj = Jquery(obj); + var val = obj.html(); + var reval = obj.attr('reval'); + if (val == '其他') { + Jquery('#year_born').attr('reval', ''); + Jquery('#year_born').val(''); + Jquery('#year_born').attr('class', 'sinp iptsr'); + Jquery('#year_born').focus(); + } else { + Jquery('#year_born').attr('reval', reval); + Jquery('#year_born').val(reval); + Jquery('#year_born').attr('class', 'sinp iptsr'); + } + var year_u = Jquery('#year_u'); + var status = year_u.css('display'); + if (status == 'none') { + Jquery('#year_u').show(); + } else { + Jquery('#year_u').hide(); + } +} +function hideYearu() { + var dom = Jquery('#year_u'); + var status = dom.css('display'); + if (status == 'none') { + Jquery('#year_u').show(); + } else { + Jquery('#year_u').hide(); + } +} +function yearKeyup(obj) { + Jquery('#year_u').show(); + var obj = Jquery(obj); + var val = obj.val(); + var arr = isNaN(val); + + obj.val(val.replace(/[^\d]/g, "")); + if (arr == true) { + Jquery('#year_u').hide(); + return false; + } + + if (val == '' || val == '0') { + Jquery('#year_u').hide(); + return false; + } + if (val.length >= 4) { + obj.val(val.substring(0, 4)); + Jquery('#year_u').hide(); + } + var html = '
  • ' + val + '
  • '; + if (val < 100) { + var temp_val = val * 10; + html += '
  • ' + temp_val + '
  • '; + } + if (val < 10) { + var temp_val = (val * 10 * 10); + html += '
  • ' + temp_val + '
  • '; + } + Jquery('#year_u').html(html); +} + +function inpVal(default_str, obj) { + var obj = Jquery(obj); + var val = obj.val(); + if (val == default_str) { + obj.val(''); + } else if (val == '') { + obj.val(default_str); + obj.css('color', '#CCCCCC'); + } +} + +function salarytypeSel(type) { + var salary_show = '每月打入银行卡的工资'; + if (type == 'two') { + salary_show = '每月领取现金'; + } + Jquery('#salary_show').html(salary_show); + Jquery('#salary_inp_hidden').attr('val', salary_show); +} +Jquery(document).ready(function() { + Jquery('.iptsr').focus(function() { + Jquery(this).placeholder(''); + }); + Jquery('#applydetails').bind('click', srfun) + .bind('keyup', srfun); +}); +var srfun = function() { + var num = Jquery('#applydetails').val().length; + if (num > 280) { + var yewnum = Jquery('#applydetails').val().substr(0, 280) + Jquery('#applydetails').val(yewnum); + } + var num_yu = 280 - num; + if (num_yu == -1) { + num_yu = 0; + } + Jquery('#shownum').html(num_yu / 2); } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/base.css b/source/plugin/dzapp_haodai/images/base.css index 18e9356..5e09888 100644 --- a/source/plugin/dzapp_haodai/images/base.css +++ b/source/plugin/dzapp_haodai/images/base.css @@ -1,63 +1,63 @@ -/**/ -*{margin: 0; padding: 0;} -a{text-decoration: none;} -ul{list-style: none;} -img{ border: none;} -.left{ float: left;} -.right{float: right;} -body,html{width: 100%;} -.clearfix:after{content: "."; display: block; height: 0; clear: both; overflow: hidden; } -.clearfix{zoom:1;} - -.wrapper{width: 960px; margin: 0 auto;} -body{ font-family: "Microsoft Yahei"; color: #666666;} -#ct{ margin:8px 0;} - - -/*part1*/ -.part1{width: 660px; border: 1px solid #dddddd; background: #fff;} -.head{ width: 615px; border-bottom:1px solid #dddddd; margin-bottom: 20px; overflow: hidden; background-color: #f9f9f9; padding: 15px 25px 20px 20px;} -.part1 ul li{float: left; line-height: 23px;} -.part1 ul li.one{padding: 0 5px; color: #cccccc;} -.part1 ul li a{color: #0079c1;} - -h1{text-align: center; color: #000000; line-height: 60px; } -.bigtitle{ font-size:24px; text-align:center;} -.part1 .lai{text-align: center; color: #999999; } -/*fen*/ -.fen{ width:250px; margin: 0 auto; } -.fen ul li{ float: left; margin-right: 5px; } -.fen .little{ line-height: 23px;} - -/**/ -.wen{ margin-top: 30px; padding-left: 25px; padding-right: 30px; color: #666666; font-size:14px; line-height:22px; text-indent:2em; } -.wen p{ margin-bottom:25px; line-height:22px;} -.yuan{color: #000000; text-align:left; margin-bottom:10px; margin-left:20px;} -span{ color: #666666; } -span.min{color: #000000; font-weight: normal; line-height:23px;} - -.part2{width: 282px; border: 1px solid #dddddd; background: #fff;} -.head1{height: 42px; line-height:42px; border-bottom: 1px solid #dddddd; margin-bottom: 15px; background-color: #f9f9f9; font-weight: bold;} -.head1 li{ padding-left: 14px; padding-right: 14px; } -.head1 li.xun{font-size: 14px; color: #333333;} -.head1 li.more{font-size: 12px;} -.head1 li.more a{ color:#e2d3db;} - - -.main{ font-size: 12px; text-indent: 17px; padding-left:15px; padding-right:5px; padding-bottom:15px;} -.main li{ background:url(icon.png) no-repeat 5px 9px; width:250px; height:24px; overflow:hidden; } -.main li a{color: #999999; font-size:12px; line-height:24px; } -.main li a:hover{text-decoration:underline;} - - - - - - - - - - - - - +/**/ +*{margin: 0; padding: 0;} +a{text-decoration: none;} +ul{list-style: none;} +img{ border: none;} +.left{ float: left;} +.right{float: right;} +body,html{width: 100%;} +.clearfix:after{content: "."; display: block; height: 0; clear: both; overflow: hidden; } +.clearfix{zoom:1;} + +.wrapper{width: 960px; margin: 0 auto;} +body{ font-family: "Microsoft Yahei"; color: #666666;} +#ct{ margin:8px 0;} + + +/*part1*/ +.part1{width: 660px; border: 1px solid #dddddd; background: #fff;} +.head{ width: 615px; border-bottom:1px solid #dddddd; margin-bottom: 20px; overflow: hidden; background-color: #f9f9f9; padding: 15px 25px 20px 20px;} +.part1 ul li{float: left; line-height: 23px;} +.part1 ul li.one{padding: 0 5px; color: #cccccc;} +.part1 ul li a{color: #0079c1;} + +h1{text-align: center; color: #000000; line-height: 60px; } +.bigtitle{ font-size:24px; text-align:center;} +.part1 .lai{text-align: center; color: #999999; } +/*fen*/ +.fen{ width:250px; margin: 0 auto; } +.fen ul li{ float: left; margin-right: 5px; } +.fen .little{ line-height: 23px;} + +/**/ +.wen{ margin-top: 30px; padding-left: 25px; padding-right: 30px; color: #666666; font-size:14px; line-height:22px; text-indent:2em; } +.wen p{ margin-bottom:25px; line-height:22px;} +.yuan{color: #000000; text-align:left; margin-bottom:10px; margin-left:20px;} +span{ color: #666666; } +span.min{color: #000000; font-weight: normal; line-height:23px;} + +.part2{width: 282px; border: 1px solid #dddddd; background: #fff;} +.head1{height: 42px; line-height:42px; border-bottom: 1px solid #dddddd; margin-bottom: 15px; background-color: #f9f9f9; font-weight: bold;} +.head1 li{ padding-left: 14px; padding-right: 14px; } +.head1 li.xun{font-size: 14px; color: #333333;} +.head1 li.more{font-size: 12px;} +.head1 li.more a{ color:#e2d3db;} + + +.main{ font-size: 12px; text-indent: 17px; padding-left:15px; padding-right:5px; padding-bottom:15px;} +.main li{ background:url(icon.png) no-repeat 5px 9px; width:250px; height:24px; overflow:hidden; } +.main li a{color: #999999; font-size:12px; line-height:24px; } +.main li a:hover{text-decoration:underline;} + + + + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/images/chanpin.css b/source/plugin/dzapp_haodai/images/chanpin.css index 6bcfc36..b8cdc84 100644 --- a/source/plugin/dzapp_haodai/images/chanpin.css +++ b/source/plugin/dzapp_haodai/images/chanpin.css @@ -1,248 +1,248 @@ -@charset "gb2312"; -/* CSS Document */ - -/*main*/ -.main{width:100%;height:auto !important;min-height:auto !important;padding-bottom:40px;} - -.cp{width:960px;margin:0 auto;position:relative;} - -.cpone{width:960px;padding-bottom:40px;} -.cpa{width:960px;border-bottom:1px solid #eaeaea;background:#f8f8f8;position:relative;padding-bottom:10px;} -.cpb{height:55px;padding-top:15px;border-bottom:1px solid #eaeaea;line-height:60px;background:#f8f8f8;padding-left:13px;position:relative;} -.cptu{width:63px;display:block;height:42px;float:left;line-height:60px;font-size:14px;color:#999;} -.cpspan1{display:block;height:60px;float:left;line-height:60px;font-size:14px;color:#999;} -.cpb .hei{color:#000;font-weight:bold;} -.cpb span{font-size:18px;float:left;height:42px;line-height:42px;} -.cpsp1{font-weight:bold;color:#000;} -.cpsp2{color:#cccccc;padding:0px 7px;} -.cpsp3{color:#cccccc;} -.cptd1{width:66px;padding-left:10px;} -.cptd2{width:90px;} -.cptd3{width:68px;} -.cptab{margin:14px 0px 0px 14px;} -.cptab td{height:30px;font-size:12px;color:#666;} -.cptab span{color:#333;font-weight:bold;} -.cptab .cpti{color:#333;font-weight:bold;} -.jiao2{position:absolute;bottom:-1px;left:40px;display:block;width:11px;height:7px;z-index:5;background:url(jiao2_bg.png) no-repeat;} - -h5{display:block;width:932px;height:51px;border-bottom:1px solid #eaeaea;margin:0 auto;font-size:14px;line-height:51px;color:#000;} -.cpp1{display:block;height:44px;line-height:44px;padding-left:14px;font-size:12px;color:#666;} -.cpp2{display:block;border-bottom:2px solid #d9b571;margin:0 auto;font-size:14px;color:#000;font-weight:bold;padding:24px 0px 12px 8px;width:624px;margin:0 auto;} - -.jl{margin:0 auto;background:#f9f4dd;padding:7px 0px;margin-bottom:22px;} -.jl td{height:74px;} -.jltd1{width:66px;padding-left:18px;} -.jltd2{width:701px;} -.jltd2 .co3 a{text-decoration:none;color:#333;} -.jltd2 .co3 a:hover{text-decoration:underline;} - -.jl .cppa{font-size:14px;font-weight:bold;color:#0079c1;} -.jl p{font-size:12px;padding:2px 0px;} -.cpp3{display:block;width:624px;height:33px;margin:0 auto;line-height:33px;padding-left:8px;font-size:14px;color:#333;background:#eaeaea;font-weight:bold;} - -.clul{display:block;width:930px;height:37px;line-height:37px;margin:0 auto;border:1px solid #eaeaea;background:#f8f8f8;} -.clul li{float:left;padding:0px 17px 0px 18px;font-size:12px;cursor:pointer;} -.clon{color:#FFF;border-right:1px solid #eaeaea;background:#898989;} -.cloff{color:#333;background:#f8f8f8;border-right:1px solid #eaeaea;} - -h6{display:block;height:48px;line-height:48px;font-size:12px;color:#333;} -.cps1{font-size:12px;color:#333;padding-left:33px;line-height:24px;} - -.lilv{width:414px;height:204px;padding:18px 0px 0px 14px;} -.lv1{width:230px;height:204px;float:left;} -.youjiao{width:9px;height:204px;background:url(youjiao.png) no-repeat;float:left;} -.lv2{width:175px;height:204px;float:left;} -.lv1 input{width:70px;height:10px;border:1px solid #dddddd;padding:6px 5px;} -.lv1 span{float:left;} -.lvsp1{width:66px;height:24px;text-align:right;padding-right:14px;} -.lvsp2{padding-right:7px;} -.lv1p{line-height:24px;padding-bottom:9px;font-size:12px;color:#333;display:bloc;height:24px;} -.js{display:block;width:97px;height:29px;background:url(jsbtn.png) no-repeat 80px 0px;text-align:center;line-height:29px;padding-left:80px;cursor:pointer;color:#666;font-size:12px;} -.lv2p{line-height:24px;font-size:12px;color:#666;display:block;height:24px;} -.lv2p span{float:left;} -.lvsp3{width:66px;padding-right:10px;text-align:right;} - -.cpp4{display:block;heiht:37px;line-height:37px;padding-left:33px;font-size:12px;} -.lvtab{border-collapse: collapse;margin-left:33px;font-size:12px;} -.lvtab .lvtabtr td{background:#f4f4f4;color:#999;} -.lvtab td{border:1px solid #dddddd;height:25px;padding-left:14px;color:#666;} - -.cpp5{display:block;padding-left:33px;height:47px;font-size:12px;color:#ccc;line-height:36px;float:left;} -.cpp6{display:block;height:48px;font-size:12px;color:#999;line-height:48px;width:624px;padding:52px 0px 0px 8px;margin:0 auto;} - -.sq{display:block;width:113px;height:38px;text-align:Center;line-height:38px;background:url(sq.png) no-repeat;color:#FFF;font-size:14px;text-decoration:none;} - -/*2013年1月18日*/ -.mf{display:block;width:171px;height:50px;line-height:50px;text-decoration:none;position:absolute;top:133px;right:35px;background:url(mf.png) no-repeat; text-align: center;font-size:14px;color:#fff;} -.mf:hover{background: url(mfhover.png) no-repeat;} -.mf2{position:absolute;top:170px;right:40px;color:#333;font-size:12px;} - -.mf3{display: block;width: 171px;height: 50px;line-height: 50px;text-decoration: none;background: url(mf.png) no-repeat; text-align: center;font-size: 14px;color: white;position:absolute;top:24px;right:35px;} -.mf3:hover{background: url(mfhover.png) no-repeat;} -.mf4{color: #333;font-size: 14px;position:absolute;top:42px;left:24px;} -.mf4 span{color:#0079c1;} -.bo{height:95px;border-top:1px solid #eaeaea;position:relative;width:658px;background:#f8f8f8;} -.kuai{width:624px;padding-left:8px;margin:0 auto;overflow:hidden;} -.kuai p{font-size: 12px;color: #333;line-height: 24px;margin:0 auto;} -.cpb a{text-decoration:none;} - -.xinzen{height:46px;float:left;margin-top:14px;} -.xinzen p{line-height:20px;} -.xzp1{color:#333;font-size:14px;font-weight:bold;} -.xzp2{color:#999;font-size:12px;} - -/*2013年04月07日 潘文静*/ -.cpl{width:658px;float:left;overflow:hidden;border:1px solid #e9e9e9;background:#FFF;position:relative;margin-bottom:20px;} -.cpr{width:280px;float:right;} - -.buzhou{width:632px;height:94px;margin:0 auto;border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea;margin-top:15px;background:url(buzhou.jpg) no-repeat 35px 22px;position:relative;} -.buzhou span{font-size:12px;color:#666;} -.bsp1{position:absolute;top:64px;left:17px;} -.bsp2{position:absolute;top:64px;left:193px;} -.bsp3{position:absolute;top:64px;left:378px;} -.bsp4{position:absolute;top:64px;left:555px;} - -.l{float:left;} -.r{float:right;} - -/*模块1*/ -.mone{margin-bottom:20px;width:960px;overflow:hidden;} -.monel{width:323px;height:285px;border:1px solid #e9e9e9;float:left;padding-top:3px;} -.monel li{display:block;width:297px;height:81px;border-bottom:1px solid #e9e9e9;margin:0 auto;padding-top:12px;} -.monel .noborder{border:none;} -.monel li a{font-size:16px;color:#00457c;text-decoration:none;display:block;width:297px;height:26px;line-height:26px;overflow:hidden;} -.monel li a:hover{text-decoration:underline;} -.monel li p{display:block;width:297px;height:50px;line-height:22px;overflow:hidden;font-size:12px;color:#999;} - -.moner{width:614px;height:288px;float:right;border:1px solid #e9e9e9;position:relative;background: #323232;} - -/*模块2*/ -.mtwo{width:960px;overflow:hidden;} -.mtwol{float:left;width:660px;} -.mtwor{float:right;width:280px;} - -/*内模块1*/ -.mta{border-top:3px solid #00457c;overflow:hidden;} -.mta h5,.mra h5{width:264px;font-size:14px;color:#333;display:block;height:40px;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;background:#f8f8f8;line-height:40px;padding-left:14px;border-bottom:1px solid #e9e9e9;} -.mtb{border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;height:310px;padding-top:16px;} -.nobotom{border-bottom:none;} -.mtb dl dt{display:block;width:300px;height:71px;padding-bottom:8px;overflow:hidden;} -.mtb dl dt img{margin-right:10px;float:left;} -.mtb dl dt a{padding-top:3px;font-size:14px;color:#00457c;line-height:22px;text-decoration:none;display:block;width:190px;height:22px;overflow:hidden;} -.mtb dl dt a:hover{text-decoration:underline;} -.mtb dl dt p{line-height:22px;color:#999;font-size:12px;display:block;width:190px;height:46px;overflow:hidden;} -.mtb dl{display:block;width:300px;height:300px;padding:0px 15px 0px 14px;float:left;} -.mtb dl dd{display:block;width:300px;height:26px;line-height:26px;overflow:hidden;background:url(cms/list_bg.jpg) no-repeat;} -.mtb dl dd a{padding-left:10px;font-size:14px;color:#00457c;text-decoration:none;} -.mtb dl dd a:hover{text-decoration:underline;} - -/*内模块2*/ -.tabnav{display:block;height:41px;background:#f8f8f8;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;} -.tabnav li{float:left;width:86px;height:40px;font-size:14px;color:#333;text-align:center;line-height:40px;cursor:pointer;} -.tabnav .tbnon{background:#FFF;font-weight:bold;height:42px;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;} - -/*内模块3*/ -.mtc{width:660px;height:380px;margin:22px 0px;} -.mtd{width:319px;height:379px;border-top:3px solid #00457C;} -.mte{width:317px;height:334px;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;} -.mte dl{padding-top:8px;} -.mte dl dd{display:block;width:300px;height:26px;line-height:26px;overflow:hidden;background:url(cms/list_bg.jpg) no-repeat 14px 0px;padding-left:14px;} -.mte dl dd a{padding-left:10px;font-size:14px;color:#00457c;text-decoration:none;} -.mte dl dd a:hover{text-decoration:underline;} - -/*内模块4*/ -.jsqnav{display:block;height:88px;padding-top:17px;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;} -.jsqnav li{float:left;width:131px;padding-top:58px;background:url(cms/jsq.jpg) no-repeat 41px 0px;text-align:center;} -.jsqnav li a{font-size:12px;color:#666;text-decoration:none;} -.jsqnav li a:hover{text-decoration:underline;} - -/*右模块1*/ -.mra{border-top:3px solid #00457c;background-color:#fff;} -.mrb{border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;padding-left:14px;} -.mrb p{line-height:32px;color:#999;font-size:12px;} -.mrb .se{width:248px;} -.mrb .sele{width:246px;} -.mrb .sinp{width:192px;} -.xiala{position:absolute; z-index:999;} -.xiala li{width:246px;} -.xiala li a{width:235px;} -.ssinp {display: block;width: 248px;margin-top:15px;height: 44px;background:url(cms/btn_bg.jpg);font-size: 14px;color: white;cursor: pointer;font-weight: bold;border:none;} -.box{background:#FFF;border:1px solid #e9e9e9;} -/*热门贷款*/ -.mrc{border-top:1px solid #e9e9e9;width:248px;margin-top:15px;padding-top:9px;} -.mrc dl{display:block;width:248px;font-size:12px;} -.mrc dl dt{color:#999;line-height:22px;float:left;} -.mrc dl dd{line-height:22px;} -.mrc dl dd a{padding:0px 3px;color:#00457c;text-decoration:none;_padding:0px;} -.mrc dl dd a:hover{text-decoration:underline;} -.pb11{padding-bottom:11px;} -.mb21{margin-bottom:21px;} - -/*文章列表*/ -.btli{display:block;float:left;padding-top:10px;padding-left:30px;font-size:6px;} -.btli li{list-style:square;color:#999;font-size:12px;} -.btli li a{color:#999;font-size:12px;text-decoration:none;line-height:24px;} -.btli li a:hover{text-decoration:underline;} -.btwo {width: 278px;height: 328px;margin-bottom:22px;} -.more {color: #CCC;font-size: 12px;padding-right: 11px;text-decoration: none;font-weight: normal;} -.more:hover{text-decoration: underline;} - -/*右模块2*/ -.ymk2{margin-bottom:20px;overflow:hidden;} -.ymkta{margin:0 auto;border-collapse: collapse;} -.ymkta td{border-bottom:1px solid #e9e9e9;padding-top:10px;} -.ymkt{width:55px;} -.ymkt img{border:1px solid #f8f8f8;} -.ymkn a{font-size:12px;color:#333;line-height:18px;text-decoration:none;} -.ymkn a:hover{text-decoration:underline;} -.ymkn a span{display:block;height:18px;overflow:hidden;} - -.ymkp1{line-height:18px;font-size:12px;color:#999;} -.ymkp2{display:block;height:38px;line-height:38px;color:#666;font-size:12px;} -.ymkp2 span{color:#ff9900;padding-right:4px;} - -.ymkul{overflow:hidden;width:257px;margin:5px 6px 20px 0px;} -.ymkul li{float:left;height:24px;background:url(li_bg.png) no-repeat;margin-right:4px;margin-left:14px;_margin-right:4px;_margin-left:10px;} -.ymkul li a{line-height:24px;padding-left:5px;font-size:12px;color:#0079c1;text-decoration:none;} -.ymkul li a:hover{text-decoration:underline;} -.mr24{margin-right:24px;} - -/*2013年04月09日 潘文静 新增担保方式角标*/ -.jiaobiao{display:block;width:63px;height:54px;background:url(jiaobiao.png) no-repeat;position:absolute;top:19px;right:334px;z-index:9999;} -.jiaobiao dt{font-size:12px;color:#fff;height:20px;line-height:20px;padding-top:6px;text-align:Center;} -.jiaobiao dd{font-size:16px;color:#FFF;font-weight:bold;height:25px;text-align:Center;line-height:20px;} -.cp .mrb .ssinp {display: block;width: 248px;margin-top: 15px;height: 44px;background: url(cms/btn_bgh.jpg);font-size: 14px;color:#333;cursor: pointer;font-weight: bold;border: none;} - -/*2013年07月01日 yzf 免费申请按钮-上下部分**/ -.success_sqrs{width:170px;height:35px;line-height:50px;text-decoration:none;position:absolute;top:100px;right:35px; font-weight: bold; text-align: center;font-size:14px;color:#000;} -.success_sqrs span {color: #ff9900; font-size: 35px; line-height: 35px;} - -.Dstars {width:170px;height:20px;position:absolute;top:205px;right:35px; text-align: left; font-size: 12px; z-index: 300;} -.hdstars {background:url(hdstars.png) no-repeat;} -.Dstars_wd {padding: 0px 3px 0px 4px; color: #999;} -.stars_big {background-position: -90px -20px; width: 110px; display: block;} -.stars_big ,.stars_big em {height: 16px;} -.stars_big em {background-position: -90px 0px; float: left;} -.Bval_5 {width: 12px;} /**0.5 星**/ -.Bval_10 {width: 22px;} /**1 星**/ -.Bval_15 {width: 34px;} /**1.5 星**/ -.Bval_20 {width: 44px;} /**2 星**/ -.Bval_25 {width: 56px;} /**2.5 星**/ -.Bval_30 {width: 66px;} /**3 星**/ -.Bval_35 {width: 78px;} /**3.5 星**/ -.Bval_40 {width: 88px;} /**4 星**/ -.Bval_45 {width: 100px;} /**4.5 星**/ -.Bval_50 {width: 110px;} /**5 星**/ - -.Dstars span.big_tc {color: #333; background: #fff; text-align: center; display: block; width: 140px; height: 36px; line-height: 18px; padding: 5px; border: 1px solid #bbb; position: absolute; right: 0px; top: 20px; z-index: 500;} - - -/**成功申请案例7月4号**/ -.success_apply{border:1px solid #e9e9e9; margin-bottom: 20px;} -.success_apply h5{width:264px;font-size:14px;color:#333;display:block;height:40px; - background:#f8f8f8;line-height:40px;padding-left:14px;border-bottom:1px solid #e9e9e9;} -.success_apply span{ color: #ff9900;} -.applysucc{_border-right: 1px solid #E9E9E9;} -.applyt{color: #666666; font-weight: bold; font-size:13px;} -.applyetc{ margin: 0px 7px; padding: 8px 8px; border-bottom: 1px solid #E9E9E9;} -.app_line{ padding: 5px 0px;} +@charset "gb2312"; +/* CSS Document */ + +/*main*/ +.main{width:100%;height:auto !important;min-height:auto !important;padding-bottom:40px;} + +.cp{width:960px;margin:0 auto;position:relative;} + +.cpone{width:960px;padding-bottom:40px;} +.cpa{width:960px;border-bottom:1px solid #eaeaea;background:#f8f8f8;position:relative;padding-bottom:10px;} +.cpb{height:55px;padding-top:15px;border-bottom:1px solid #eaeaea;line-height:60px;background:#f8f8f8;padding-left:13px;position:relative;} +.cptu{width:63px;display:block;height:42px;float:left;line-height:60px;font-size:14px;color:#999;} +.cpspan1{display:block;height:60px;float:left;line-height:60px;font-size:14px;color:#999;} +.cpb .hei{color:#000;font-weight:bold;} +.cpb span{font-size:18px;float:left;height:42px;line-height:42px;} +.cpsp1{font-weight:bold;color:#000;} +.cpsp2{color:#cccccc;padding:0px 7px;} +.cpsp3{color:#cccccc;} +.cptd1{width:66px;padding-left:10px;} +.cptd2{width:90px;} +.cptd3{width:68px;} +.cptab{margin:14px 0px 0px 14px;} +.cptab td{height:30px;font-size:12px;color:#666;} +.cptab span{color:#333;font-weight:bold;} +.cptab .cpti{color:#333;font-weight:bold;} +.jiao2{position:absolute;bottom:-1px;left:40px;display:block;width:11px;height:7px;z-index:5;background:url(jiao2_bg.png) no-repeat;} + +h5{display:block;width:932px;height:51px;border-bottom:1px solid #eaeaea;margin:0 auto;font-size:14px;line-height:51px;color:#000;} +.cpp1{display:block;height:44px;line-height:44px;padding-left:14px;font-size:12px;color:#666;} +.cpp2{display:block;border-bottom:2px solid #d9b571;margin:0 auto;font-size:14px;color:#000;font-weight:bold;padding:24px 0px 12px 8px;width:624px;margin:0 auto;} + +.jl{margin:0 auto;background:#f9f4dd;padding:7px 0px;margin-bottom:22px;} +.jl td{height:74px;} +.jltd1{width:66px;padding-left:18px;} +.jltd2{width:701px;} +.jltd2 .co3 a{text-decoration:none;color:#333;} +.jltd2 .co3 a:hover{text-decoration:underline;} + +.jl .cppa{font-size:14px;font-weight:bold;color:#0079c1;} +.jl p{font-size:12px;padding:2px 0px;} +.cpp3{display:block;width:624px;height:33px;margin:0 auto;line-height:33px;padding-left:8px;font-size:14px;color:#333;background:#eaeaea;font-weight:bold;} + +.clul{display:block;width:930px;height:37px;line-height:37px;margin:0 auto;border:1px solid #eaeaea;background:#f8f8f8;} +.clul li{float:left;padding:0px 17px 0px 18px;font-size:12px;cursor:pointer;} +.clon{color:#FFF;border-right:1px solid #eaeaea;background:#898989;} +.cloff{color:#333;background:#f8f8f8;border-right:1px solid #eaeaea;} + +h6{display:block;height:48px;line-height:48px;font-size:12px;color:#333;} +.cps1{font-size:12px;color:#333;padding-left:33px;line-height:24px;} + +.lilv{width:414px;height:204px;padding:18px 0px 0px 14px;} +.lv1{width:230px;height:204px;float:left;} +.youjiao{width:9px;height:204px;background:url(youjiao.png) no-repeat;float:left;} +.lv2{width:175px;height:204px;float:left;} +.lv1 input{width:70px;height:10px;border:1px solid #dddddd;padding:6px 5px;} +.lv1 span{float:left;} +.lvsp1{width:66px;height:24px;text-align:right;padding-right:14px;} +.lvsp2{padding-right:7px;} +.lv1p{line-height:24px;padding-bottom:9px;font-size:12px;color:#333;display:bloc;height:24px;} +.js{display:block;width:97px;height:29px;background:url(jsbtn.png) no-repeat 80px 0px;text-align:center;line-height:29px;padding-left:80px;cursor:pointer;color:#666;font-size:12px;} +.lv2p{line-height:24px;font-size:12px;color:#666;display:block;height:24px;} +.lv2p span{float:left;} +.lvsp3{width:66px;padding-right:10px;text-align:right;} + +.cpp4{display:block;heiht:37px;line-height:37px;padding-left:33px;font-size:12px;} +.lvtab{border-collapse: collapse;margin-left:33px;font-size:12px;} +.lvtab .lvtabtr td{background:#f4f4f4;color:#999;} +.lvtab td{border:1px solid #dddddd;height:25px;padding-left:14px;color:#666;} + +.cpp5{display:block;padding-left:33px;height:47px;font-size:12px;color:#ccc;line-height:36px;float:left;} +.cpp6{display:block;height:48px;font-size:12px;color:#999;line-height:48px;width:624px;padding:52px 0px 0px 8px;margin:0 auto;} + +.sq{display:block;width:113px;height:38px;text-align:Center;line-height:38px;background:url(sq.png) no-repeat;color:#FFF;font-size:14px;text-decoration:none;} + +/*2013年1月18日*/ +.mf{display:block;width:171px;height:50px;line-height:50px;text-decoration:none;position:absolute;top:133px;right:35px;background:url(mf.png) no-repeat; text-align: center;font-size:14px;color:#fff;} +.mf:hover{background: url(mfhover.png) no-repeat;} +.mf2{position:absolute;top:170px;right:40px;color:#333;font-size:12px;} + +.mf3{display: block;width: 171px;height: 50px;line-height: 50px;text-decoration: none;background: url(mf.png) no-repeat; text-align: center;font-size: 14px;color: white;position:absolute;top:24px;right:35px;} +.mf3:hover{background: url(mfhover.png) no-repeat;} +.mf4{color: #333;font-size: 14px;position:absolute;top:42px;left:24px;} +.mf4 span{color:#0079c1;} +.bo{height:95px;border-top:1px solid #eaeaea;position:relative;width:658px;background:#f8f8f8;} +.kuai{width:624px;padding-left:8px;margin:0 auto;overflow:hidden;} +.kuai p{font-size: 12px;color: #333;line-height: 24px;margin:0 auto;} +.cpb a{text-decoration:none;} + +.xinzen{height:46px;float:left;margin-top:14px;} +.xinzen p{line-height:20px;} +.xzp1{color:#333;font-size:14px;font-weight:bold;} +.xzp2{color:#999;font-size:12px;} + +/*2013年04月07日 潘文静*/ +.cpl{width:658px;float:left;overflow:hidden;border:1px solid #e9e9e9;background:#FFF;position:relative;margin-bottom:20px;} +.cpr{width:280px;float:right;} + +.buzhou{width:632px;height:94px;margin:0 auto;border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea;margin-top:15px;background:url(buzhou.jpg) no-repeat 35px 22px;position:relative;} +.buzhou span{font-size:12px;color:#666;} +.bsp1{position:absolute;top:64px;left:17px;} +.bsp2{position:absolute;top:64px;left:193px;} +.bsp3{position:absolute;top:64px;left:378px;} +.bsp4{position:absolute;top:64px;left:555px;} + +.l{float:left;} +.r{float:right;} + +/*模块1*/ +.mone{margin-bottom:20px;width:960px;overflow:hidden;} +.monel{width:323px;height:285px;border:1px solid #e9e9e9;float:left;padding-top:3px;} +.monel li{display:block;width:297px;height:81px;border-bottom:1px solid #e9e9e9;margin:0 auto;padding-top:12px;} +.monel .noborder{border:none;} +.monel li a{font-size:16px;color:#00457c;text-decoration:none;display:block;width:297px;height:26px;line-height:26px;overflow:hidden;} +.monel li a:hover{text-decoration:underline;} +.monel li p{display:block;width:297px;height:50px;line-height:22px;overflow:hidden;font-size:12px;color:#999;} + +.moner{width:614px;height:288px;float:right;border:1px solid #e9e9e9;position:relative;background: #323232;} + +/*模块2*/ +.mtwo{width:960px;overflow:hidden;} +.mtwol{float:left;width:660px;} +.mtwor{float:right;width:280px;} + +/*内模块1*/ +.mta{border-top:3px solid #00457c;overflow:hidden;} +.mta h5,.mra h5{width:264px;font-size:14px;color:#333;display:block;height:40px;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;background:#f8f8f8;line-height:40px;padding-left:14px;border-bottom:1px solid #e9e9e9;} +.mtb{border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;height:310px;padding-top:16px;} +.nobotom{border-bottom:none;} +.mtb dl dt{display:block;width:300px;height:71px;padding-bottom:8px;overflow:hidden;} +.mtb dl dt img{margin-right:10px;float:left;} +.mtb dl dt a{padding-top:3px;font-size:14px;color:#00457c;line-height:22px;text-decoration:none;display:block;width:190px;height:22px;overflow:hidden;} +.mtb dl dt a:hover{text-decoration:underline;} +.mtb dl dt p{line-height:22px;color:#999;font-size:12px;display:block;width:190px;height:46px;overflow:hidden;} +.mtb dl{display:block;width:300px;height:300px;padding:0px 15px 0px 14px;float:left;} +.mtb dl dd{display:block;width:300px;height:26px;line-height:26px;overflow:hidden;background:url(cms/list_bg.jpg) no-repeat;} +.mtb dl dd a{padding-left:10px;font-size:14px;color:#00457c;text-decoration:none;} +.mtb dl dd a:hover{text-decoration:underline;} + +/*内模块2*/ +.tabnav{display:block;height:41px;background:#f8f8f8;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;} +.tabnav li{float:left;width:86px;height:40px;font-size:14px;color:#333;text-align:center;line-height:40px;cursor:pointer;} +.tabnav .tbnon{background:#FFF;font-weight:bold;height:42px;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;} + +/*内模块3*/ +.mtc{width:660px;height:380px;margin:22px 0px;} +.mtd{width:319px;height:379px;border-top:3px solid #00457C;} +.mte{width:317px;height:334px;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;} +.mte dl{padding-top:8px;} +.mte dl dd{display:block;width:300px;height:26px;line-height:26px;overflow:hidden;background:url(cms/list_bg.jpg) no-repeat 14px 0px;padding-left:14px;} +.mte dl dd a{padding-left:10px;font-size:14px;color:#00457c;text-decoration:none;} +.mte dl dd a:hover{text-decoration:underline;} + +/*内模块4*/ +.jsqnav{display:block;height:88px;padding-top:17px;border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;} +.jsqnav li{float:left;width:131px;padding-top:58px;background:url(cms/jsq.jpg) no-repeat 41px 0px;text-align:center;} +.jsqnav li a{font-size:12px;color:#666;text-decoration:none;} +.jsqnav li a:hover{text-decoration:underline;} + +/*右模块1*/ +.mra{border-top:3px solid #00457c;background-color:#fff;} +.mrb{border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;padding-left:14px;} +.mrb p{line-height:32px;color:#999;font-size:12px;} +.mrb .se{width:248px;} +.mrb .sele{width:246px;} +.mrb .sinp{width:192px;} +.xiala{position:absolute; z-index:999;} +.xiala li{width:246px;} +.xiala li a{width:235px;} +.ssinp {display: block;width: 248px;margin-top:15px;height: 44px;background:url(cms/btn_bg.jpg);font-size: 14px;color: white;cursor: pointer;font-weight: bold;border:none;} +.box{background:#FFF;border:1px solid #e9e9e9;} +/*热门贷款*/ +.mrc{border-top:1px solid #e9e9e9;width:248px;margin-top:15px;padding-top:9px;} +.mrc dl{display:block;width:248px;font-size:12px;} +.mrc dl dt{color:#999;line-height:22px;float:left;} +.mrc dl dd{line-height:22px;} +.mrc dl dd a{padding:0px 3px;color:#00457c;text-decoration:none;_padding:0px;} +.mrc dl dd a:hover{text-decoration:underline;} +.pb11{padding-bottom:11px;} +.mb21{margin-bottom:21px;} + +/*文章列表*/ +.btli{display:block;float:left;padding-top:10px;padding-left:30px;font-size:6px;} +.btli li{list-style:square;color:#999;font-size:12px;} +.btli li a{color:#999;font-size:12px;text-decoration:none;line-height:24px;} +.btli li a:hover{text-decoration:underline;} +.btwo {width: 278px;height: 328px;margin-bottom:22px;} +.more {color: #CCC;font-size: 12px;padding-right: 11px;text-decoration: none;font-weight: normal;} +.more:hover{text-decoration: underline;} + +/*右模块2*/ +.ymk2{margin-bottom:20px;overflow:hidden;} +.ymkta{margin:0 auto;border-collapse: collapse;} +.ymkta td{border-bottom:1px solid #e9e9e9;padding-top:10px;} +.ymkt{width:55px;} +.ymkt img{border:1px solid #f8f8f8;} +.ymkn a{font-size:12px;color:#333;line-height:18px;text-decoration:none;} +.ymkn a:hover{text-decoration:underline;} +.ymkn a span{display:block;height:18px;overflow:hidden;} + +.ymkp1{line-height:18px;font-size:12px;color:#999;} +.ymkp2{display:block;height:38px;line-height:38px;color:#666;font-size:12px;} +.ymkp2 span{color:#ff9900;padding-right:4px;} + +.ymkul{overflow:hidden;width:257px;margin:5px 6px 20px 0px;} +.ymkul li{float:left;height:24px;background:url(li_bg.png) no-repeat;margin-right:4px;margin-left:14px;_margin-right:4px;_margin-left:10px;} +.ymkul li a{line-height:24px;padding-left:5px;font-size:12px;color:#0079c1;text-decoration:none;} +.ymkul li a:hover{text-decoration:underline;} +.mr24{margin-right:24px;} + +/*2013年04月09日 潘文静 新增担保方式角标*/ +.jiaobiao{display:block;width:63px;height:54px;background:url(jiaobiao.png) no-repeat;position:absolute;top:19px;right:334px;z-index:9999;} +.jiaobiao dt{font-size:12px;color:#fff;height:20px;line-height:20px;padding-top:6px;text-align:Center;} +.jiaobiao dd{font-size:16px;color:#FFF;font-weight:bold;height:25px;text-align:Center;line-height:20px;} +.cp .mrb .ssinp {display: block;width: 248px;margin-top: 15px;height: 44px;background: url(cms/btn_bgh.jpg);font-size: 14px;color:#333;cursor: pointer;font-weight: bold;border: none;} + +/*2013年07月01日 yzf 免费申请按钮-上下部分**/ +.success_sqrs{width:170px;height:35px;line-height:50px;text-decoration:none;position:absolute;top:100px;right:35px; font-weight: bold; text-align: center;font-size:14px;color:#000;} +.success_sqrs span {color: #ff9900; font-size: 35px; line-height: 35px;} + +.Dstars {width:170px;height:20px;position:absolute;top:205px;right:35px; text-align: left; font-size: 12px; z-index: 300;} +.hdstars {background:url(hdstars.png) no-repeat;} +.Dstars_wd {padding: 0px 3px 0px 4px; color: #999;} +.stars_big {background-position: -90px -20px; width: 110px; display: block;} +.stars_big ,.stars_big em {height: 16px;} +.stars_big em {background-position: -90px 0px; float: left;} +.Bval_5 {width: 12px;} /**0.5 星**/ +.Bval_10 {width: 22px;} /**1 星**/ +.Bval_15 {width: 34px;} /**1.5 星**/ +.Bval_20 {width: 44px;} /**2 星**/ +.Bval_25 {width: 56px;} /**2.5 星**/ +.Bval_30 {width: 66px;} /**3 星**/ +.Bval_35 {width: 78px;} /**3.5 星**/ +.Bval_40 {width: 88px;} /**4 星**/ +.Bval_45 {width: 100px;} /**4.5 星**/ +.Bval_50 {width: 110px;} /**5 星**/ + +.Dstars span.big_tc {color: #333; background: #fff; text-align: center; display: block; width: 140px; height: 36px; line-height: 18px; padding: 5px; border: 1px solid #bbb; position: absolute; right: 0px; top: 20px; z-index: 500;} + + +/**成功申请案例7月4号**/ +.success_apply{border:1px solid #e9e9e9; margin-bottom: 20px;} +.success_apply h5{width:264px;font-size:14px;color:#333;display:block;height:40px; + background:#f8f8f8;line-height:40px;padding-left:14px;border-bottom:1px solid #e9e9e9;} +.success_apply span{ color: #ff9900;} +.applysucc{_border-right: 1px solid #E9E9E9;} +.applyt{color: #666666; font-weight: bold; font-size:13px;} +.applyetc{ margin: 0px 7px; padding: 8px 8px; border-bottom: 1px solid #E9E9E9;} +.app_line{ padding: 5px 0px;} diff --git a/source/plugin/dzapp_haodai/images/daik.js b/source/plugin/dzapp_haodai/images/daik.js index f9fa22b..a684ebb 100644 --- a/source/plugin/dzapp_haodai/images/daik.js +++ b/source/plugin/dzapp_haodai/images/daik.js @@ -1,218 +1,218 @@ -var xltime = 40; -var JGPmoney = false; -var JGPmonth = false; -var jq = jQuery.noConflict(); -jq(document).ready(function(){ - smallstar(); - wenhao(); - jq(document).click(function (event) { - var yon = jq('#xlk_ul').hasClass('xiala_no'); - if(yon == true){ - jq('#xlk_ul').hide(100); - } - }); -}); -function iptxlCK(obj){ - var obj = jq(obj); - var xlcon = obj.parent().children('.wydk_xlk').children('.wydk_xiala'); - var bas = xlcon.hasClass('xiala_no'); - if(bas==true){ - xlcon.slideDown(xltime); - xlcon.removeClass('xiala_no'); - } else{ - xlcon.slideUp(xltime); - xlcon.addClass('xiala_no'); - } -} -function JGPmoneySelect(tab){ - jq('#xuazn').unbind(); - var tab = jq(tab); - var Li_a = jq('#xlk_ul li a'); - var this_reval = tab.attr('reval'); - jq('#xuazn').val(this_reval); - var sey_reval = jq('#xuazn').attr('reval'); - jq('#xuazn').attr('reval', this_reval); - jq('#xlk_ul').slideUp(xltime); - jq('#xlk_ul').addClass('xiala_no'); - Li_a.removeClass('mo'); - tab.addClass('mo'); - var ts = tab.parent().parent().parent().parent().children('.Tosearch_ts'); - ts.hide(200); -} -function JGPmonthSelect(bba){ - var bba = jq(bba); - var Li_a = jq('#qixan_ul li a'); - var this_s = bba.attr('s'); - jq('#qixan').val(this_s); - var sey_reval = jq('#qixan').attr('reval'); - var This_reval = bba.attr('reval'); - jq('#qixan').attr('reval', This_reval); - var yon = bba.hasClass('dw_month'); - if(yon == true){ - jq('#time_dw').removeClass('nian'); - jq('#time_dw').addClass('geyue'); - }else{ - jq('#time_dw').removeClass('geyue'); - jq('#time_dw').addClass('nian'); - } - jq('#qixan_ul').slideUp(xltime); - Li_a.removeClass('mo'); - bba.addClass('mo'); - jq('#qixan_ul').addClass('xiala_no'); - var ts = bba.parent().parent().parent().parent().children('.Tosearch_ts'); - ts.hide(200); -} -function JGPageMoneyBlu(){ - JGPageMoneyYz(); -} -function JGPageTimeBlu(){ - JGPageTimeYz(); -} -function leixCK(bad){ - var bad = jq(bad); - var xleix = bad.parent().children('.jglx_xl').children('.jglx_xiala'); - var vds = xleix.hasClass('xiala_no'); - var allul = jq('.jglx_xiala'); - if(vds==true){ - allul.slideUp(xltime); - xleix.slideDown(xltime); - xleix.removeClass('xiala_no'); - } else{ - allul.slideUp(xltime); - xleix.slideUp(xltime); - xleix.addClass('xiala_no'); - } -} -function wordSelect(dfh){ - var dfh = jq(dfh); - var Li_a = jq('#jglx_ul li a'); - jq('#jglx_ul').slideUp(xltime); - jq('#jglx_ul').addClass('xiala_no'); - var sey_word = jq('#leix_type').html(); - var This_word = dfh.html(); - jq('#leix_type').html(This_word); - var sey_reval = jq('#leix_type').attr('reval'); - var This_reval = dfh.attr('reval'); - jq('#leix_type').attr('reval', This_reval); - Li_a.removeClass('mo'); - dfh.addClass('mo'); -} -function textSelect(frg){ - var frg = jq(frg); - var Li_a = jq('#jglxb_ul li a'); - jq('#jglxb_ul').slideUp(xltime); - jq('#jglxb_ul').addClass('xiala_no'); - var sey_word = jq('#leixb_type').html(); - var This_word = frg.html(); - jq('#leixb_type').html(This_word); - var sey_reval = jq('#leixb_type').attr('reval'); - var This_reval = frg.attr('reval'); - jq('#leixb_type').attr('reval', This_reval); - Li_a.removeClass('mo'); - frg.addClass('mo'); -} -function smallstar(){ - var small_span = jq(".stars_small"); - var small_tas = jq(".small_tc"); - small_tas. hide(); - small_span.mouseover(function(){ - var nowstars = jq(this); - var small_tas = nowstars.parent().children('span.small_tc'); - small_tas.toggle(130); - }); - small_span.mouseout(function(){ - var nowstars = jq(this); - var small_tas = nowstars.parent().children('span.small_tc'); - small_tas.toggle(130); - }); -} -function wenhao(){ - var wen_hao = jq(".wenhao"); - var ceng_none = jq(".ceng"); - wen_hao.mouseover(function(){ - var nowstars = jq(this); - var ceng_none = nowstars.parent().children('.ceng'); - ceng_none.toggle(); -}); - wen_hao.mouseout(function(){ - var nowstars = jq(this); - var ceng_none = nowstars.parent().children('.ceng'); - ceng_none.toggle(); - }); -} -function JGPageFoc(obj){ - var obj = jq(obj); - var ts = obj.parent().parent().parent().children('.Tosearch_ts'); - ts.hide(200); -} -function JGPageMoneyYz(){ - var obj = jq('#xuazn'); - var val = jq.trim(obj.val()); - var ts = obj.parent().parent().parent().children('.Tosearch_ts'); - if(val.length == 0){ - ts.show(300); - ts.text('亲,金额别忘了填'); - JGPmoney = false; - }else { - if (!isNaN(val)) { - JGPmoney = true; - var money = jq(this).attr('reval', val); - } else { - ts.show(300); - ts.text('只填纯数字哟'); - JGPmoney = false; - } - } -} -function JGPageTimeYz(){ - var obj = jq('#qixan'); - var val = jq.trim(obj.val()); - var ts = obj.parent().parent().parent().children('.Tosearch_ts'); - if(val.length == 0){ - ts.show(300); - ts.text('亲,金额别忘了填'); - JGPmonth = false; - }else { - if (!isNaN(val)) { - JGPmonth = true; - var money = jq(this).attr('reval', val); - } else { - ts.show(300); - ts.text('只填纯数字哟'); - JGPmonth = false; - } - } -} -function JGPageKeyup(obj){ - var obj = jq(obj); - var val = jq.trim(obj.val()); - var xlcon = obj.parent().parent().parent().children('.wydk_xlk').children('.wydk_xiala'); - xlcon.slideUp(xltime); - xlcon.addClass('xiala_no'); - var ts = obj.parent().parent().parent().children('.Tosearch_ts'); - ts.hide(500); -} -function PageSearch(jump){ - JGPageMoneyYz(); - JGPageTimeYz(); - if (JGPmoney == true && JGPmonth == true) { - var type_id = 4; - var money = jq('#xuazn').val(); - var time_dw = jq('#time_dw').hasClass('geyue'); - if(time_dw == true){ - var month = jq('#qixan').val(); - }else { - var month_x = jq('#qixan').val(); - var month = month_x * 12; - } - var first_pay = jq('#wydk_FirstPay').attr('reval'); - if (type_id == '2') { - fixed_url = '&money=' + money + '&month=' + month + '&first_pay=' + first_pay; - } else { - fixed_url = '&money=' + money + '&month=' + month; - } - var url = jump + fixed_url; - window.open(url); - return false; - } +var xltime = 40; +var JGPmoney = false; +var JGPmonth = false; +var jq = jQuery.noConflict(); +jq(document).ready(function(){ + smallstar(); + wenhao(); + jq(document).click(function (event) { + var yon = jq('#xlk_ul').hasClass('xiala_no'); + if(yon == true){ + jq('#xlk_ul').hide(100); + } + }); +}); +function iptxlCK(obj){ + var obj = jq(obj); + var xlcon = obj.parent().children('.wydk_xlk').children('.wydk_xiala'); + var bas = xlcon.hasClass('xiala_no'); + if(bas==true){ + xlcon.slideDown(xltime); + xlcon.removeClass('xiala_no'); + } else{ + xlcon.slideUp(xltime); + xlcon.addClass('xiala_no'); + } +} +function JGPmoneySelect(tab){ + jq('#xuazn').unbind(); + var tab = jq(tab); + var Li_a = jq('#xlk_ul li a'); + var this_reval = tab.attr('reval'); + jq('#xuazn').val(this_reval); + var sey_reval = jq('#xuazn').attr('reval'); + jq('#xuazn').attr('reval', this_reval); + jq('#xlk_ul').slideUp(xltime); + jq('#xlk_ul').addClass('xiala_no'); + Li_a.removeClass('mo'); + tab.addClass('mo'); + var ts = tab.parent().parent().parent().parent().children('.Tosearch_ts'); + ts.hide(200); +} +function JGPmonthSelect(bba){ + var bba = jq(bba); + var Li_a = jq('#qixan_ul li a'); + var this_s = bba.attr('s'); + jq('#qixan').val(this_s); + var sey_reval = jq('#qixan').attr('reval'); + var This_reval = bba.attr('reval'); + jq('#qixan').attr('reval', This_reval); + var yon = bba.hasClass('dw_month'); + if(yon == true){ + jq('#time_dw').removeClass('nian'); + jq('#time_dw').addClass('geyue'); + }else{ + jq('#time_dw').removeClass('geyue'); + jq('#time_dw').addClass('nian'); + } + jq('#qixan_ul').slideUp(xltime); + Li_a.removeClass('mo'); + bba.addClass('mo'); + jq('#qixan_ul').addClass('xiala_no'); + var ts = bba.parent().parent().parent().parent().children('.Tosearch_ts'); + ts.hide(200); +} +function JGPageMoneyBlu(){ + JGPageMoneyYz(); +} +function JGPageTimeBlu(){ + JGPageTimeYz(); +} +function leixCK(bad){ + var bad = jq(bad); + var xleix = bad.parent().children('.jglx_xl').children('.jglx_xiala'); + var vds = xleix.hasClass('xiala_no'); + var allul = jq('.jglx_xiala'); + if(vds==true){ + allul.slideUp(xltime); + xleix.slideDown(xltime); + xleix.removeClass('xiala_no'); + } else{ + allul.slideUp(xltime); + xleix.slideUp(xltime); + xleix.addClass('xiala_no'); + } +} +function wordSelect(dfh){ + var dfh = jq(dfh); + var Li_a = jq('#jglx_ul li a'); + jq('#jglx_ul').slideUp(xltime); + jq('#jglx_ul').addClass('xiala_no'); + var sey_word = jq('#leix_type').html(); + var This_word = dfh.html(); + jq('#leix_type').html(This_word); + var sey_reval = jq('#leix_type').attr('reval'); + var This_reval = dfh.attr('reval'); + jq('#leix_type').attr('reval', This_reval); + Li_a.removeClass('mo'); + dfh.addClass('mo'); +} +function textSelect(frg){ + var frg = jq(frg); + var Li_a = jq('#jglxb_ul li a'); + jq('#jglxb_ul').slideUp(xltime); + jq('#jglxb_ul').addClass('xiala_no'); + var sey_word = jq('#leixb_type').html(); + var This_word = frg.html(); + jq('#leixb_type').html(This_word); + var sey_reval = jq('#leixb_type').attr('reval'); + var This_reval = frg.attr('reval'); + jq('#leixb_type').attr('reval', This_reval); + Li_a.removeClass('mo'); + frg.addClass('mo'); +} +function smallstar(){ + var small_span = jq(".stars_small"); + var small_tas = jq(".small_tc"); + small_tas. hide(); + small_span.mouseover(function(){ + var nowstars = jq(this); + var small_tas = nowstars.parent().children('span.small_tc'); + small_tas.toggle(130); + }); + small_span.mouseout(function(){ + var nowstars = jq(this); + var small_tas = nowstars.parent().children('span.small_tc'); + small_tas.toggle(130); + }); +} +function wenhao(){ + var wen_hao = jq(".wenhao"); + var ceng_none = jq(".ceng"); + wen_hao.mouseover(function(){ + var nowstars = jq(this); + var ceng_none = nowstars.parent().children('.ceng'); + ceng_none.toggle(); +}); + wen_hao.mouseout(function(){ + var nowstars = jq(this); + var ceng_none = nowstars.parent().children('.ceng'); + ceng_none.toggle(); + }); +} +function JGPageFoc(obj){ + var obj = jq(obj); + var ts = obj.parent().parent().parent().children('.Tosearch_ts'); + ts.hide(200); +} +function JGPageMoneyYz(){ + var obj = jq('#xuazn'); + var val = jq.trim(obj.val()); + var ts = obj.parent().parent().parent().children('.Tosearch_ts'); + if(val.length == 0){ + ts.show(300); + ts.text('亲,金额别忘了填'); + JGPmoney = false; + }else { + if (!isNaN(val)) { + JGPmoney = true; + var money = jq(this).attr('reval', val); + } else { + ts.show(300); + ts.text('只填纯数字哟'); + JGPmoney = false; + } + } +} +function JGPageTimeYz(){ + var obj = jq('#qixan'); + var val = jq.trim(obj.val()); + var ts = obj.parent().parent().parent().children('.Tosearch_ts'); + if(val.length == 0){ + ts.show(300); + ts.text('亲,金额别忘了填'); + JGPmonth = false; + }else { + if (!isNaN(val)) { + JGPmonth = true; + var money = jq(this).attr('reval', val); + } else { + ts.show(300); + ts.text('只填纯数字哟'); + JGPmonth = false; + } + } +} +function JGPageKeyup(obj){ + var obj = jq(obj); + var val = jq.trim(obj.val()); + var xlcon = obj.parent().parent().parent().children('.wydk_xlk').children('.wydk_xiala'); + xlcon.slideUp(xltime); + xlcon.addClass('xiala_no'); + var ts = obj.parent().parent().parent().children('.Tosearch_ts'); + ts.hide(500); +} +function PageSearch(jump){ + JGPageMoneyYz(); + JGPageTimeYz(); + if (JGPmoney == true && JGPmonth == true) { + var type_id = 4; + var money = jq('#xuazn').val(); + var time_dw = jq('#time_dw').hasClass('geyue'); + if(time_dw == true){ + var month = jq('#qixan').val(); + }else { + var month_x = jq('#qixan').val(); + var month = month_x * 12; + } + var first_pay = jq('#wydk_FirstPay').attr('reval'); + if (type_id == '2') { + fixed_url = '&money=' + money + '&month=' + month + '&first_pay=' + first_pay; + } else { + fixed_url = '&money=' + money + '&month=' + month; + } + var url = jump + fixed_url; + window.open(url); + return false; + } } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/discuzindex.css b/source/plugin/dzapp_haodai/images/discuzindex.css index a5ecbd9..29a7dcc 100644 --- a/source/plugin/dzapp_haodai/images/discuzindex.css +++ b/source/plugin/dzapp_haodai/images/discuzindex.css @@ -1,226 +1,226 @@ -@charset "utf-8"; -body{ margin:0; padding:0; font-size:12px; background:url(bg.jpg) repeat-x;} -ul,ol,li{ list-style:none;margin:0; padding:0} -*{ margin:0; padding:0; font-family:"Microsoft Yahei";} -img{ border:none;} -a{ text-decoration:none; color:#333} -img,form,input,select{ vertical-align:middle} -.br{border:none;} -.mr{margin-right:10px;} -.mb{margin-bottom:10px;} -.mt22{margin-top:20px;} -.br{border-right:2px solid #f2f2f2;} -.brs{border:#e9e9e9 1px solid;border-top:0;} -.clear {clear:both; height:0;font-size:0; line-height:0} -.none {display:none;} -.hd_fl {float:left;} -.fr {float:right;} -.relative {position:relative;} -.absolute {position:absolute;} -.hidden {overflow:hidden;} -.warp{ - width:960px; - margin:0 auto; - } -.top{ - margin-bottom:20px; - } -.list{ - width:960px; - - } -.list-left{ - float:left; - border:1px solid #e9e9e9; - width:203px; - - } -.list-nav{ - float:left; - z-index:0; - width:205px; - } -.list-nav li{ - height:56px; - line-height:57px; - font-size:18px; - color:#999; - font-family:'Microsoft Yahei'; - padding-left:20px; - width:205px; - z-index:1; - } -.list-nav .bg{ background:url(libg.jpg) no-repeat;height:57px;width:205px;z-index:1;color:#333333;} -.tab{width:315px;height:285px;float:left;display:none;color:#CCC; position:relative;} -.show{display:block;} -/*sousuo*/ -.sousuo{width:351px;height:285px;position:absolute;z-index:2;} -.sscon{width:315px;height:285px;position:absolute;top:0px;left:20px;z-index:10;} -.ssp{font-size:12px;color:#666;line-height:30px;} -.ssinp{display:block;width:281px;height:44px;background:url(btn_bg.png) no-repeat;border:none;font-size:14px; color:#FFF;cursor:pointer;font-weight:bold;margin-top:15px;} -.ssp1{line-height:57px;color:#ccc;font-size:12px;text-align:center;} - -.se{width:282px;height:44px;position:relative;} -.sinp{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} -.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp1.jpg) no-repeat right;} -.sinp2{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp2.jpg) no-repeat right;} - -.selbtn{width:43px;height:42px;background:url(selbtn.png) no-repeat;float:right;border:none 0;outline:none;cursor:pointer;} -.sele{width:280px;height:42px;border:1px solid #cccccc;background:#FFF;z-index:2;} -/*xiala*/ -.xiala{border:1px solid #c9c9cb;position:absolute;top:43px;left:22px;z-index:999;display:none;} -.xiala li{display:block;width:280px;height:27px;background:#ffffff;line-height:27px;} -.xiala .mo{background:#e7e7e7;} -.xiala li a{font-size:12px;color:#666;display:block;padding-left:11px;width:269px;text-decoration:none;} -.xiala li a:hover{background:#c4d4e1;} -.se1{z-index:100;} -.se2{z-index:99;} -.se3{z-index:98;} -.btu{margin-top:20px;} - -.none{display:none;} - -list-right{float:left;} - -#full-screen-slider {width:380px; height:340px; position:relative} -#slides { width:350px; position:relative} -#slides img{width:390px;height:292px;} -#slides li { width:380px; height:292px; position:absolute;overflow:hidden;} -#slides li a {display:block;} -#pagination { position:absolute; left:160px; top:260px; z-index:9900;padding:5px 15px 5px 0;} -#pagination li { list-style:none; width:10px; height:10px; float:left; margin-left:15px; border-radius:5px; background:#969696 } -#pagination li a { display:block; width:10px; height:10px; padding:0; margin:0; text-indent:-9999px;} -#pagination li.current { background:#0092CE} - -.main{margin-top:20px;} -.main-left{float:left;margin-right:13px;} -.main-right{float:left;width:283px;height:320px;} - -.jsl{float:left;width:662px;background:url(tab_bg.jpg) repeat-x;border-top:2px solid #00457c;} -.jsr{float:right;width:280px;height:271px;} -.tabul{width:661px;height:42px;border-right:1px solid #e9e9e9;} -.tabul li{float:left;padding:0px 13px;cursor:pointer;color:#333;font-size:14px;line-height:40px;} -.tabsel{height:42px;border-left:1px solid #e9e9e9;border-right:#e9e9e9 1px solid;background:#FFF;font-weight:bold;} -.tabnosel{border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9;height:40px;line-height:40px;} -.tabcon{width:662px;height:230px;} -.td8 a{text-decoration:none;} -.td8 a:hover{text-decoration:underline;} - -table{margin:0 auto;font-size:12px;} -.tableone td{height:60px;border-bottom:1px dashed #eeeeee; padding:1px 5px;} -.td1{width:111px;} -.td2{width:148px;font-size:12px;color:#333;} -.td3{width:297px;font-size:12px;color:#999;} -.td4{width:75px;} -.chakan{display:block;width:73px;height:22px;background:#f3f3f3;border:1px solid #dedede;font-size:12px;color:#333;text-align:center;line-height:22px;text-decoration:none;} -.tabletwo td{height:40px;font-size:12px;color:#999;} - - -.mtb{overflow:hidden;width:658px;padding-top:16px;} -.nobotom{border-bottom:none;padding-bottom:17px;} -.mtf{border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;overflow:hidden;width:658px;padding-top:10px;} -.mtb dl dt{display:block;width:300px;height:71px;padding-bottom:8px;overflow:hidden;} -.mtb dl dt a{padding-top:3px;font-size:14px;color:#00457c;line-height:22px;text-decoration:none;display:block;width:190px;height:22px;overflow:hidden;} -.mtb dl dt a:hover{text-decoration:underline;} -.mtb dl dt .dtimg{display:block;width:100px;height:71px;float:left;margin-right:10px;} -.mtb dl dt p{line-height:22px;color:#999;font-size:12px;display:block;width:190px;height:46px;overflow:hidden;} -.mtb dl{padding:0px 15px 14px 14px;float:left;} -.mtb dl dd{display:block;width:300px;height:26px;line-height:26px;overflow:hidden;background:url(images/list_bg.jpg) no-repeat;} -.mtb dl dd a{padding-left:10px;font-size:14px;color:#00457c;text-decoration:none;} -.mtb dl dd a:hover{text-decoration:underline;} - -.mrtab{border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-collapse: collapse;font-size:12px;} -.mrtab td{height:36px;border-bottom:1px solid #e9e9e9;line-height:36px;} -.mrtd1{width:59px;padding-left:14px;} -.mrtd2{width:54px;text-align:center;} -.mrtd3{width:64px;padding-right:16px;text-align:right;} -.mrtd4{padding-right:16px;text-align:right;} -.mrtd5{width:84px;text-align:Center;} -.mrtd6{width:72px;text-align:Center;} -.mrtd7{text-align:center;} -.pl14{padding-left:14px;} -.brw{border-right:2px solid #FFF;} -.box{background:#FFF;border-top:2px solid #00457c;} -.bthree{width:960px;margin-left:auto;margin-right:auto;overflow:hidden;padding-bottom:10px;} -.b4ul{display:block;width:940px;padding:10px 0px 0px 14px;float:left;} -.b4ul li{float:left;width:134px;line-height:24px;} -.b4ul li a{font-size:12px;color:#999;text-decoration:none;} -.b4ul li a:hover{text-decoration:underline;} -h3{font-size:14px;color:#333;display:block;height:40px;border-bottom:1px solid #e9e9e9;line-height:41px;padding-left:14px;background:#f8f8f8;} -.box-list{padding:20px 0 0 10px;} -.box-list dl{width:100px;text-align:center;color:#666666;float:left;} -.box-list dd{margin-top:8px;} -.cal-list{margin-top:10px; float:left;} -.cal-list li{line-height:22px;color:#666} - -.fenlei{width:134px;height:155px; background:#0079c1;padding:1px;color:#fff;font-family:'Microsoft Yahei';font-size:16px;text-align:center;float:left;} -.fenlei dd{margin-top:10px;} -.fenlei .font{font-family:'Microsoft Yahei';font-size:12px;margin-top:3px;} -.fenlei img{ filter:alpha(opacity=100);opacity:1;cursor:pointer} -.fenlei a:hover img{ filter:alpha(opacity=95);opacity:0.95;cursor:pointer} - -/********/ -.list-left ,.list-right {height:291px;} -.list-left{width:560px;} -.LTtabCon{width:315px;float:left; padding-left:5px;height:305px;} -.LTtabTit {float:left;z-index:0;width:205px;border-right:1px solid #ddd;} -.LTtabTit li {float:left;display:inline-block; width:205px; height:72px; line-height:72px; background:#f8f8f8;border-bottom:1px solid #ddd;} -.LTtabTit li span {display:block; height:30px; line-height:30px; float:left;margin-top:20px;} -.LTtabTit li span.LTtabTit_img {background:url(lt_icon.png) no-repeat; width:45px;} -.LTtabTit li span.LTtabTit_a {background-position:right 0px;} -.LTtabTit li span.LTtabTit_b {background-position:right -30px;} -.LTtabTit li span.LTtabTit_c {background-position:right -60px;} -.LTtabTit li span.LTtabTit_d {background-position:right -90px;} -.LTtabTit li.show_tabtit{ border-left:#039 2px solid;background:#FFF;} -.LTtabTit li.show_tabtit span.LTtabTit_a {background-position:right -120px;} -.LTtabTit li.show_tabtit span.LTtabTit_b {background-position:right -150px;} -.LTtabTit li.show_tabtit span.LTtabTit_c {background-position:right -180px;} -.LTtabTit li.show_tabtit span.LTtabTit_d {background-position:right -210px;} -.LTtabTit li span.LTtabTit_word {color:#999; padding-left:2px; font-size:14px; cursor:pointer;} -.LTtabTit li span.LTtabTit_word:hover {color:#006aa1;} -.LTtabTit li.show_tabtit span.LTtabTit_word {color:#006aa1; padding-left:2px; font-size:14px;} - -/******************************* start ****/ -.wdcon_wydk {width:270px; margin:0px auto 0px auto;} -.wydk_li {margin-top:0px;} -.se1 {z-index:100;} -.se2 {z-index:99;} -.se3 {z-index:98;} -.se4 {z-index:97;} -.wydk_li {height:44px; } -.wydk_ipt ,.wydk_type {height:38px; line-height:38px;} -.wydk_li span {display:block;} -.wydk_li_name {width:70px; color:#666; padding:6px 0px;} -.wydk_li_selectbtn {width:263px; z-index:3; height:44px;} -.wydk_ipt {} -.wydk_ipt ,.wydk_type {width:230px; padding:0px 43px 0 10px; color:#666; background:url(selbtn.png) right center no-repeat; border:1px solid #ccc;} -.wydk_li_selectcon {margin-top:38px;margin-left:7px; border:1px solid #ccc; z-index:1000;} -.wydk_li_selectcon li {width:283px; height:27px; line-height:27px; cursor:pointer; display:block; background:#fff;} -.wydk_li_selectcon li a {width:278px; padding-left:5px; display:block;color:#666;} -.wydk_li_selectcon li a.mo {background:#e7e7e7;} -.wydk_li_selectcon li a:hover {background:#c4d4e1; color:#000; text-decoration:none;} -.wydk_searchbtn {width:285px; height:44px; line-height:44px; cursor:pointer; color:#fff; font-size:14px; font-weight:bold; background:url(btn_bg.png) no-repeat; border:none; text-align:center;margin-top:10px;} -.wydk_searchbtn:hover {color:yellow;} -ul.wdcon_ri_ul li {height:28px; line-height:28px; overflow:hidden; background:url(dian_hui.gif) left center no-repeat;} -ul.wdcon_ri_ul li span {float:left;font-size:8px; color:#666; padding-right:5px;} -ul.wdcon_ri_ul li a {float:left;color:#666; padding-left:10px;} -ul.wdcon_ri_ul li a:hover {color:#2b71b8;} - -/******************************** over ****/ -.list-right {float:right;width:380px;} - - - - - - - - - - - - - - - - +@charset "utf-8"; +body{ margin:0; padding:0; font-size:12px; background:url(bg.jpg) repeat-x;} +ul,ol,li{ list-style:none;margin:0; padding:0} +*{ margin:0; padding:0; font-family:"Microsoft Yahei";} +img{ border:none;} +a{ text-decoration:none; color:#333} +img,form,input,select{ vertical-align:middle} +.br{border:none;} +.mr{margin-right:10px;} +.mb{margin-bottom:10px;} +.mt22{margin-top:20px;} +.br{border-right:2px solid #f2f2f2;} +.brs{border:#e9e9e9 1px solid;border-top:0;} +.clear {clear:both; height:0;font-size:0; line-height:0} +.none {display:none;} +.hd_fl {float:left;} +.fr {float:right;} +.relative {position:relative;} +.absolute {position:absolute;} +.hidden {overflow:hidden;} +.warp{ + width:960px; + margin:0 auto; + } +.top{ + margin-bottom:20px; + } +.list{ + width:960px; + + } +.list-left{ + float:left; + border:1px solid #e9e9e9; + width:203px; + + } +.list-nav{ + float:left; + z-index:0; + width:205px; + } +.list-nav li{ + height:56px; + line-height:57px; + font-size:18px; + color:#999; + font-family:'Microsoft Yahei'; + padding-left:20px; + width:205px; + z-index:1; + } +.list-nav .bg{ background:url(libg.jpg) no-repeat;height:57px;width:205px;z-index:1;color:#333333;} +.tab{width:315px;height:285px;float:left;display:none;color:#CCC; position:relative;} +.show{display:block;} +/*sousuo*/ +.sousuo{width:351px;height:285px;position:absolute;z-index:2;} +.sscon{width:315px;height:285px;position:absolute;top:0px;left:20px;z-index:10;} +.ssp{font-size:12px;color:#666;line-height:30px;} +.ssinp{display:block;width:281px;height:44px;background:url(btn_bg.png) no-repeat;border:none;font-size:14px; color:#FFF;cursor:pointer;font-weight:bold;margin-top:15px;} +.ssp1{line-height:57px;color:#ccc;font-size:12px;text-align:center;} + +.se{width:282px;height:44px;position:relative;} +.sinp{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} +.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp1.jpg) no-repeat right;} +.sinp2{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp2.jpg) no-repeat right;} + +.selbtn{width:43px;height:42px;background:url(selbtn.png) no-repeat;float:right;border:none 0;outline:none;cursor:pointer;} +.sele{width:280px;height:42px;border:1px solid #cccccc;background:#FFF;z-index:2;} +/*xiala*/ +.xiala{border:1px solid #c9c9cb;position:absolute;top:43px;left:22px;z-index:999;display:none;} +.xiala li{display:block;width:280px;height:27px;background:#ffffff;line-height:27px;} +.xiala .mo{background:#e7e7e7;} +.xiala li a{font-size:12px;color:#666;display:block;padding-left:11px;width:269px;text-decoration:none;} +.xiala li a:hover{background:#c4d4e1;} +.se1{z-index:100;} +.se2{z-index:99;} +.se3{z-index:98;} +.btu{margin-top:20px;} + +.none{display:none;} + +list-right{float:left;} + +#full-screen-slider {width:380px; height:340px; position:relative} +#slides { width:350px; position:relative} +#slides img{width:390px;height:292px;} +#slides li { width:380px; height:292px; position:absolute;overflow:hidden;} +#slides li a {display:block;} +#pagination { position:absolute; left:160px; top:260px; z-index:9900;padding:5px 15px 5px 0;} +#pagination li { list-style:none; width:10px; height:10px; float:left; margin-left:15px; border-radius:5px; background:#969696 } +#pagination li a { display:block; width:10px; height:10px; padding:0; margin:0; text-indent:-9999px;} +#pagination li.current { background:#0092CE} + +.main{margin-top:20px;} +.main-left{float:left;margin-right:13px;} +.main-right{float:left;width:283px;height:320px;} + +.jsl{float:left;width:662px;background:url(tab_bg.jpg) repeat-x;border-top:2px solid #00457c;} +.jsr{float:right;width:280px;height:271px;} +.tabul{width:661px;height:42px;border-right:1px solid #e9e9e9;} +.tabul li{float:left;padding:0px 13px;cursor:pointer;color:#333;font-size:14px;line-height:40px;} +.tabsel{height:42px;border-left:1px solid #e9e9e9;border-right:#e9e9e9 1px solid;background:#FFF;font-weight:bold;} +.tabnosel{border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9;height:40px;line-height:40px;} +.tabcon{width:662px;height:230px;} +.td8 a{text-decoration:none;} +.td8 a:hover{text-decoration:underline;} + +table{margin:0 auto;font-size:12px;} +.tableone td{height:60px;border-bottom:1px dashed #eeeeee; padding:1px 5px;} +.td1{width:111px;} +.td2{width:148px;font-size:12px;color:#333;} +.td3{width:297px;font-size:12px;color:#999;} +.td4{width:75px;} +.chakan{display:block;width:73px;height:22px;background:#f3f3f3;border:1px solid #dedede;font-size:12px;color:#333;text-align:center;line-height:22px;text-decoration:none;} +.tabletwo td{height:40px;font-size:12px;color:#999;} + + +.mtb{overflow:hidden;width:658px;padding-top:16px;} +.nobotom{border-bottom:none;padding-bottom:17px;} +.mtf{border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;overflow:hidden;width:658px;padding-top:10px;} +.mtb dl dt{display:block;width:300px;height:71px;padding-bottom:8px;overflow:hidden;} +.mtb dl dt a{padding-top:3px;font-size:14px;color:#00457c;line-height:22px;text-decoration:none;display:block;width:190px;height:22px;overflow:hidden;} +.mtb dl dt a:hover{text-decoration:underline;} +.mtb dl dt .dtimg{display:block;width:100px;height:71px;float:left;margin-right:10px;} +.mtb dl dt p{line-height:22px;color:#999;font-size:12px;display:block;width:190px;height:46px;overflow:hidden;} +.mtb dl{padding:0px 15px 14px 14px;float:left;} +.mtb dl dd{display:block;width:300px;height:26px;line-height:26px;overflow:hidden;background:url(images/list_bg.jpg) no-repeat;} +.mtb dl dd a{padding-left:10px;font-size:14px;color:#00457c;text-decoration:none;} +.mtb dl dd a:hover{text-decoration:underline;} + +.mrtab{border-left:1px solid #e9e9e9;border-right:1px solid #e9e9e9;border-collapse: collapse;font-size:12px;} +.mrtab td{height:36px;border-bottom:1px solid #e9e9e9;line-height:36px;} +.mrtd1{width:59px;padding-left:14px;} +.mrtd2{width:54px;text-align:center;} +.mrtd3{width:64px;padding-right:16px;text-align:right;} +.mrtd4{padding-right:16px;text-align:right;} +.mrtd5{width:84px;text-align:Center;} +.mrtd6{width:72px;text-align:Center;} +.mrtd7{text-align:center;} +.pl14{padding-left:14px;} +.brw{border-right:2px solid #FFF;} +.box{background:#FFF;border-top:2px solid #00457c;} +.bthree{width:960px;margin-left:auto;margin-right:auto;overflow:hidden;padding-bottom:10px;} +.b4ul{display:block;width:940px;padding:10px 0px 0px 14px;float:left;} +.b4ul li{float:left;width:134px;line-height:24px;} +.b4ul li a{font-size:12px;color:#999;text-decoration:none;} +.b4ul li a:hover{text-decoration:underline;} +h3{font-size:14px;color:#333;display:block;height:40px;border-bottom:1px solid #e9e9e9;line-height:41px;padding-left:14px;background:#f8f8f8;} +.box-list{padding:20px 0 0 10px;} +.box-list dl{width:100px;text-align:center;color:#666666;float:left;} +.box-list dd{margin-top:8px;} +.cal-list{margin-top:10px; float:left;} +.cal-list li{line-height:22px;color:#666} + +.fenlei{width:134px;height:155px; background:#0079c1;padding:1px;color:#fff;font-family:'Microsoft Yahei';font-size:16px;text-align:center;float:left;} +.fenlei dd{margin-top:10px;} +.fenlei .font{font-family:'Microsoft Yahei';font-size:12px;margin-top:3px;} +.fenlei img{ filter:alpha(opacity=100);opacity:1;cursor:pointer} +.fenlei a:hover img{ filter:alpha(opacity=95);opacity:0.95;cursor:pointer} + +/********/ +.list-left ,.list-right {height:291px;} +.list-left{width:560px;} +.LTtabCon{width:315px;float:left; padding-left:5px;height:305px;} +.LTtabTit {float:left;z-index:0;width:205px;border-right:1px solid #ddd;} +.LTtabTit li {float:left;display:inline-block; width:205px; height:72px; line-height:72px; background:#f8f8f8;border-bottom:1px solid #ddd;} +.LTtabTit li span {display:block; height:30px; line-height:30px; float:left;margin-top:20px;} +.LTtabTit li span.LTtabTit_img {background:url(lt_icon.png) no-repeat; width:45px;} +.LTtabTit li span.LTtabTit_a {background-position:right 0px;} +.LTtabTit li span.LTtabTit_b {background-position:right -30px;} +.LTtabTit li span.LTtabTit_c {background-position:right -60px;} +.LTtabTit li span.LTtabTit_d {background-position:right -90px;} +.LTtabTit li.show_tabtit{ border-left:#039 2px solid;background:#FFF;} +.LTtabTit li.show_tabtit span.LTtabTit_a {background-position:right -120px;} +.LTtabTit li.show_tabtit span.LTtabTit_b {background-position:right -150px;} +.LTtabTit li.show_tabtit span.LTtabTit_c {background-position:right -180px;} +.LTtabTit li.show_tabtit span.LTtabTit_d {background-position:right -210px;} +.LTtabTit li span.LTtabTit_word {color:#999; padding-left:2px; font-size:14px; cursor:pointer;} +.LTtabTit li span.LTtabTit_word:hover {color:#006aa1;} +.LTtabTit li.show_tabtit span.LTtabTit_word {color:#006aa1; padding-left:2px; font-size:14px;} + +/******************************* start ****/ +.wdcon_wydk {width:270px; margin:0px auto 0px auto;} +.wydk_li {margin-top:0px;} +.se1 {z-index:100;} +.se2 {z-index:99;} +.se3 {z-index:98;} +.se4 {z-index:97;} +.wydk_li {height:44px; } +.wydk_ipt ,.wydk_type {height:38px; line-height:38px;} +.wydk_li span {display:block;} +.wydk_li_name {width:70px; color:#666; padding:6px 0px;} +.wydk_li_selectbtn {width:263px; z-index:3; height:44px;} +.wydk_ipt {} +.wydk_ipt ,.wydk_type {width:230px; padding:0px 43px 0 10px; color:#666; background:url(selbtn.png) right center no-repeat; border:1px solid #ccc;} +.wydk_li_selectcon {margin-top:38px;margin-left:7px; border:1px solid #ccc; z-index:1000;} +.wydk_li_selectcon li {width:283px; height:27px; line-height:27px; cursor:pointer; display:block; background:#fff;} +.wydk_li_selectcon li a {width:278px; padding-left:5px; display:block;color:#666;} +.wydk_li_selectcon li a.mo {background:#e7e7e7;} +.wydk_li_selectcon li a:hover {background:#c4d4e1; color:#000; text-decoration:none;} +.wydk_searchbtn {width:285px; height:44px; line-height:44px; cursor:pointer; color:#fff; font-size:14px; font-weight:bold; background:url(btn_bg.png) no-repeat; border:none; text-align:center;margin-top:10px;} +.wydk_searchbtn:hover {color:yellow;} +ul.wdcon_ri_ul li {height:28px; line-height:28px; overflow:hidden; background:url(dian_hui.gif) left center no-repeat;} +ul.wdcon_ri_ul li span {float:left;font-size:8px; color:#666; padding-right:5px;} +ul.wdcon_ri_ul li a {float:left;color:#666; padding-left:10px;} +ul.wdcon_ri_ul li a:hover {color:#2b71b8;} + +/******************************** over ****/ +.list-right {float:right;width:380px;} + + + + + + + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/images/hdlt.js b/source/plugin/dzapp_haodai/images/hdlt.js index 09d3536..1d3cbff 100644 --- a/source/plugin/dzapp_haodai/images/hdlt.js +++ b/source/plugin/dzapp_haodai/images/hdlt.js @@ -1,326 +1,326 @@ -var jq = jQuery.noConflict(); - -jq(document).ready(function() { - - wydk(); - - -}); - -function wydk() { - - var selectbtn = jq('.wydk_ipt'); - - selectbtn.mouseover(function() { - - var selectcon = jq(this).parent().parent().children('.wydk_div').children('ul.wydk_li_selectcon'); - - var yon = selectcon.hasClass('none'); - - if (yon == true) { - - selectcon.removeClass('none'); - - } else { - - selectcon.addClass('none'); - - } - - }); - - selectbtn.mouseout(function() { - - var selectcon = jq(this).parent().parent().children('.wydk_div').children('ul.wydk_li_selectcon'); - - selectcon.addClass('none'); - - }); - - var select_con = jq('.wydk_div'); - - select_con.mouseover(function() { - - var selectcon = jq(this).children('ul.wydk_li_selectcon'); - - selectcon.removeClass('none'); - - }); - - select_con.mouseout(function() { - - var selectcon = jq(this).children('ul.wydk_li_selectcon'); - - selectcon.addClass('none'); - - }); - -} - - - - -function dktypeSelect(obj) { - - var obj = jq(obj); - - var Li = jq('#LTtabTit li'); - - var yon_s = obj.hasClass('show_tabtit'); - - var obj_reval = obj.attr('reval'); - - if (yon_s == false) { - - Li.removeClass('show_tabtit'); - - obj.addClass('show_tabtit'); - - } - - if (obj_reval == 2) { - - jq('#CarFirstPay').removeClass('none'); - - - - } else { - - jq('#CarFirstPay').addClass('none'); - - - - } - - - - var select_name = obj.attr('name'); - - if (select_name == 'type_qiye') {//-------------------------------------------------------企业贷款------------------------------------ - - - var Smoney = jq('#wydk_money'); - - Smoney.attr('reval', 50); - - Smoney.text('50万'); - - var Hmoney_ul = jq('#wydk_money_qiye').html(); - - jq('#wydk_money_ul').html(Hmoney_ul); - - - - var Stime = jq('#wydk_month'); - - Stime.attr('reval', 12); - - Stime.text('1年'); - - var Hmonth_ul = jq('#wydk_month_qiye').html(); - - jq('#wydk_month_ul').html(Hmonth_ul); - - - - } else if (select_name == 'type_gouche') {//-------------------------------------------------------购车贷款------------------------------------ - - var Smoney = jq('#wydk_money'); - - var Hmoney_ul = jq('#wydk_money_ul'); - - Smoney.attr('reval', 15); - - Smoney.text('15万'); - - var Hmoney_ul = jq('#wydk_money_gouche').html(); - - jq('#wydk_money_ul').html(Hmoney_ul); - - - - var Stime = jq('#wydk_month'); - - var Htime_ul = jq('#wydk_month_ul'); - - Stime.attr('reval', 24); - - Stime.text('2年'); - - var Hmonth_ul = jq('#wydk_month_gouche').html(); - - jq('#wydk_month_ul').html(Hmonth_ul); - - - - } else if (select_name == 'type_goufang') {//-------------------------------------------------------购房贷款------------------------------------ - - var Smoney = jq('#wydk_money'); - - var Hmoney_ul = jq('#wydk_money_ul'); - - Smoney.attr('reval', 100); - - Smoney.text('100万'); - - var Hmoney_ul = jq('#wydk_money_goufang').html(); - - jq('#wydk_money_ul').html(Hmoney_ul); - - - - var Stime = jq('#wydk_month'); - - var Htime_ul = jq('#wydk_month_ul'); - - Stime.attr('reval', 240); - - Stime.text('20年'); - - var Hmonth_ul = jq('#wydk_month_goufang').html(); - - jq('#wydk_month_ul').html(Hmonth_ul); - - - - } else if (select_name == 'type_xiaofei') {//-------------------------------------------------------消费贷款 or 不限------------------------------------ - - var Smoney = jq('#wydk_money'); - - var Hmoney_ul = jq('#wydk_money_ul'); - - Smoney.attr('reval', 10); - - Smoney.text('10万'); - - var Hmoney_ul = jq('#wydk_money_xiaofei').html(); - - jq('#wydk_money_ul').html(Hmoney_ul); - - - - var Stime = jq('#wydk_month'); - - var Htime_ul = jq('#wydk_month_ul'); - - Stime.attr('reval', 12); - - Stime.text('1年'); - - var Hmonth_ul = jq('#wydk_month_xiaofei').html(); - - jq('#wydk_month_ul').html(Hmonth_ul); - - } - -} - -function FirstPaySelect(obj) { - - var obj = jq(obj); - - var val = obj.html(); - - var reval = obj.attr('reval'); - - jq('#wydk_FirstPay').attr('reval', reval); - - jq('#wydk_FirstPay').text(val); - - var select_con = jq('#wydk_FirstPay_ul'); - - select_con.children('li').children('a').removeClass('mo'); - - obj.addClass('mo'); - - select_con.addClass('none'); - -} - -function moneySelect(obj) { //-------贷款金额------- - - var obj = jq(obj); - - var val = obj.html(); - - var reval = obj.attr('reval'); - - jq('#wydk_money').attr('reval', reval); - - jq('#wydk_money').text(val); - - var select_con = jq('#wydk_money_ul'); - - select_con.children('li').children('a').removeClass('mo'); - - jq(this).addClass('mo'); - - select_con.addClass('none'); - -} - -function monthSelect(obj) { //-------贷款期限------- - - var obj = jq(obj); - - var val = obj.html(); - - var reval = obj.attr('reval'); - - jq('#wydk_month').attr('reval', reval); - - jq('#wydk_month').text(val); - - var select_con = jq('#wydk_month_ul'); - - select_con.children('li').children('a').removeClass('mo'); - - jq(this).addClass('mo'); - - select_con.addClass('none'); - -} - -function wydk_search(ourl) { - - var type_id = jq('#LTtabTit li.show_tabtit').attr('reval'); - - var money = jq('#wydk_money').attr('reval'); - - var month = jq('#wydk_month').attr('reval'); - - var fixed_url = '&money=' + money + '&month=' + month; - - if (type_id == '2') { - - var first_pay = jq('#wydk_FirstPay').attr('reval'); - - fixed_url = '&money=' + money + '&month=' + month + '&first_pay=' + first_pay; - - } - - var url = ourl + fixed_url; - - if (type_id == '4') { - - var rurl = url + '&xd_type=xiaofei'; - - }else if(type_id == '1'){ - - var rurl = url + '&xd_type=qiye'; - - }else if(type_id == '2'){ - - var rurl = url + '&xd_type=gouche'; - - }else if(type_id == '3'){ - - var rurl = url + '&xd_type=goufang'; - - } - - window.open(rurl); - - return false; - +var jq = jQuery.noConflict(); + +jq(document).ready(function() { + + wydk(); + + +}); + +function wydk() { + + var selectbtn = jq('.wydk_ipt'); + + selectbtn.mouseover(function() { + + var selectcon = jq(this).parent().parent().children('.wydk_div').children('ul.wydk_li_selectcon'); + + var yon = selectcon.hasClass('none'); + + if (yon == true) { + + selectcon.removeClass('none'); + + } else { + + selectcon.addClass('none'); + + } + + }); + + selectbtn.mouseout(function() { + + var selectcon = jq(this).parent().parent().children('.wydk_div').children('ul.wydk_li_selectcon'); + + selectcon.addClass('none'); + + }); + + var select_con = jq('.wydk_div'); + + select_con.mouseover(function() { + + var selectcon = jq(this).children('ul.wydk_li_selectcon'); + + selectcon.removeClass('none'); + + }); + + select_con.mouseout(function() { + + var selectcon = jq(this).children('ul.wydk_li_selectcon'); + + selectcon.addClass('none'); + + }); + +} + + + + +function dktypeSelect(obj) { + + var obj = jq(obj); + + var Li = jq('#LTtabTit li'); + + var yon_s = obj.hasClass('show_tabtit'); + + var obj_reval = obj.attr('reval'); + + if (yon_s == false) { + + Li.removeClass('show_tabtit'); + + obj.addClass('show_tabtit'); + + } + + if (obj_reval == 2) { + + jq('#CarFirstPay').removeClass('none'); + + + + } else { + + jq('#CarFirstPay').addClass('none'); + + + + } + + + + var select_name = obj.attr('name'); + + if (select_name == 'type_qiye') {//-------------------------------------------------------企业贷款------------------------------------ + + + var Smoney = jq('#wydk_money'); + + Smoney.attr('reval', 50); + + Smoney.text('50万'); + + var Hmoney_ul = jq('#wydk_money_qiye').html(); + + jq('#wydk_money_ul').html(Hmoney_ul); + + + + var Stime = jq('#wydk_month'); + + Stime.attr('reval', 12); + + Stime.text('1年'); + + var Hmonth_ul = jq('#wydk_month_qiye').html(); + + jq('#wydk_month_ul').html(Hmonth_ul); + + + + } else if (select_name == 'type_gouche') {//-------------------------------------------------------购车贷款------------------------------------ + + var Smoney = jq('#wydk_money'); + + var Hmoney_ul = jq('#wydk_money_ul'); + + Smoney.attr('reval', 15); + + Smoney.text('15万'); + + var Hmoney_ul = jq('#wydk_money_gouche').html(); + + jq('#wydk_money_ul').html(Hmoney_ul); + + + + var Stime = jq('#wydk_month'); + + var Htime_ul = jq('#wydk_month_ul'); + + Stime.attr('reval', 24); + + Stime.text('2年'); + + var Hmonth_ul = jq('#wydk_month_gouche').html(); + + jq('#wydk_month_ul').html(Hmonth_ul); + + + + } else if (select_name == 'type_goufang') {//-------------------------------------------------------购房贷款------------------------------------ + + var Smoney = jq('#wydk_money'); + + var Hmoney_ul = jq('#wydk_money_ul'); + + Smoney.attr('reval', 100); + + Smoney.text('100万'); + + var Hmoney_ul = jq('#wydk_money_goufang').html(); + + jq('#wydk_money_ul').html(Hmoney_ul); + + + + var Stime = jq('#wydk_month'); + + var Htime_ul = jq('#wydk_month_ul'); + + Stime.attr('reval', 240); + + Stime.text('20年'); + + var Hmonth_ul = jq('#wydk_month_goufang').html(); + + jq('#wydk_month_ul').html(Hmonth_ul); + + + + } else if (select_name == 'type_xiaofei') {//-------------------------------------------------------消费贷款 or 不限------------------------------------ + + var Smoney = jq('#wydk_money'); + + var Hmoney_ul = jq('#wydk_money_ul'); + + Smoney.attr('reval', 10); + + Smoney.text('10万'); + + var Hmoney_ul = jq('#wydk_money_xiaofei').html(); + + jq('#wydk_money_ul').html(Hmoney_ul); + + + + var Stime = jq('#wydk_month'); + + var Htime_ul = jq('#wydk_month_ul'); + + Stime.attr('reval', 12); + + Stime.text('1年'); + + var Hmonth_ul = jq('#wydk_month_xiaofei').html(); + + jq('#wydk_month_ul').html(Hmonth_ul); + + } + +} + +function FirstPaySelect(obj) { + + var obj = jq(obj); + + var val = obj.html(); + + var reval = obj.attr('reval'); + + jq('#wydk_FirstPay').attr('reval', reval); + + jq('#wydk_FirstPay').text(val); + + var select_con = jq('#wydk_FirstPay_ul'); + + select_con.children('li').children('a').removeClass('mo'); + + obj.addClass('mo'); + + select_con.addClass('none'); + +} + +function moneySelect(obj) { //-------贷款金额------- + + var obj = jq(obj); + + var val = obj.html(); + + var reval = obj.attr('reval'); + + jq('#wydk_money').attr('reval', reval); + + jq('#wydk_money').text(val); + + var select_con = jq('#wydk_money_ul'); + + select_con.children('li').children('a').removeClass('mo'); + + jq(this).addClass('mo'); + + select_con.addClass('none'); + +} + +function monthSelect(obj) { //-------贷款期限------- + + var obj = jq(obj); + + var val = obj.html(); + + var reval = obj.attr('reval'); + + jq('#wydk_month').attr('reval', reval); + + jq('#wydk_month').text(val); + + var select_con = jq('#wydk_month_ul'); + + select_con.children('li').children('a').removeClass('mo'); + + jq(this).addClass('mo'); + + select_con.addClass('none'); + +} + +function wydk_search(ourl) { + + var type_id = jq('#LTtabTit li.show_tabtit').attr('reval'); + + var money = jq('#wydk_money').attr('reval'); + + var month = jq('#wydk_month').attr('reval'); + + var fixed_url = '&money=' + money + '&month=' + month; + + if (type_id == '2') { + + var first_pay = jq('#wydk_FirstPay').attr('reval'); + + fixed_url = '&money=' + money + '&month=' + month + '&first_pay=' + first_pay; + + } + + var url = ourl + fixed_url; + + if (type_id == '4') { + + var rurl = url + '&xd_type=xiaofei'; + + }else if(type_id == '1'){ + + var rurl = url + '&xd_type=qiye'; + + }else if(type_id == '2'){ + + var rurl = url + '&xd_type=gouche'; + + }else if(type_id == '3'){ + + var rurl = url + '&xd_type=goufang'; + + } + + window.open(rurl); + + return false; + } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/iepng.js b/source/plugin/dzapp_haodai/images/iepng.js index 0a1aabe..3bc5c3d 100644 --- a/source/plugin/dzapp_haodai/images/iepng.js +++ b/source/plugin/dzapp_haodai/images/iepng.js @@ -1,6 +1,6 @@ -eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 E={J:\'E\',Z:{},1E:7(){4(x.1l&&!x.1l[6.J]){x.1l.23(6.J,\'24:25-26-27:3\')}4(1F.11){1F.11(\'28\',7(){E=29})}},1G:7(){2 a=x.1m(\'8\');x.1H.1b.1n(a,x.1H.1b.1b);2 b=a.1o;b.1c(6.J+\'\\\\:*\',\'{12:2a(#1I#2b)}\');b.1c(6.J+\'\\\\:9\',\'Q:1p;\');b.1c(\'1J.\'+6.J+\'1K\',\'12:y; 1q:y; Q:1p; z-2c:-1; 1d:-1r; 1L:1M;\');6.1o=b},1N:7(){2 a=13.2d;4(13.1e.K(\'2e\')!=-1||13.1e.K(\'1q\')!=-1){E.1f(a)}4(13.1e==\'8.1s\'){2 b=(a.F.1s==\'y\')?\'y\':\'2f\';G(2 v M a.3){a.3[v].9.8.1s=b}}4(13.1e.K(\'14\')!=-1){E.1t(a)}},1t:7(a){4(a.F.14.K(\'2g\')!=-1){2 b=a.F.14;b=1u(b.2h(b.1v(\'=\')+1,b.1v(\')\')),10)/2i;a.3.N.9.8.14=a.F.14;a.3.C.I.2j=b}},15:7(a){2k(7(){E.1f(a)},1)},2l:7(a){2 b=a.1O(\',\');G(2 i=0;ig.H){c.B=g.H}e.3.C.9.8.1Z=\'20(\'+c.T+\'u \'+(c.R+i)+\'u \'+c.B+\'u \'+(c.L+i)+\'u)\'}U{e.3.C.9.8.1Z=\'20(\'+p.T+\'u \'+p.R+\'u \'+p.B+\'u \'+p.L+\'u)\'}},1P:7(a){a.8.12=\'y\';4(a.17==\'32\'||a.17==\'33\'||a.17==\'34\'){1g}a.O=V;4(a.17==\'35\'){4(a.1h.21().K(/\\.22$/)!=-1){a.O=P;a.8.1L=\'1M\'}U{1g}}U 4(a.F.19.21().K(\'.22\')==-1){1g}2 b=E;a.3={N:{},C:{}};2 c={9:{},I:{}};G(2 r M a.3){G(2 e M c){2 d=b.J+\':\'+e;a.3[r][e]=x.1m(d)}a.3[r].9.36=V;a.3[r].9.37(a.3[r].I);a.38.1n(a.3[r].9,a)}a.3.C.9.39=\'y\';a.3.C.I.3a=\'3b\';a.3.N.I.1w=V;b.1T(a);b.1x(a);b.1x(a.3c);b.1f(a)}};3d{x.3e("3f",V,P)}3g(r){}E.1E();E.1G();',62,203,'||var|vml|if||this|function|style|shape|||||||||||||||||||||px|||document|none||||image|vmlBg|EvPNG|currentStyle|for||fill|ns|search||in|color|isImg|true|position||runtimeStyle||else|false||||imgSize||attachEvent|behavior|event|filter|handlePseudoHover|vmlOffsets|nodeName|backgroundColor|backgroundImage|case|firstChild|addRule|top|propertyName|applyVML|return|src|width|height|bLW|namespaces|createElement|insertBefore|styleSheet|absolute|border|10000px|display|vmlOpacity|parseInt|lastIndexOf|on|giveLayout|left|bTW|break|b1|b2|repeat|createVmlNameSpace|window|createVmlStyleSheet|documentElement|default|img|_sizeFinder|visibility|hidden|readPropertyChange|split|fixPng|cssText|vmlFill|copyImageBorders|attachHandlers|zIndex|transparent|removeAttribute|body|0l|clip|rect|toLowerCase|png|add|urn|schemas|microsoft|com|onbeforeunload|null|url|VML|index|srcElement|background|block|lpha|substring|100|opacity|setTimeout|fix|length|expression|resize|move|mouseleave|mouseenter|focus|blur|onpropertychange|zoom|static|relative|borderStyle|borderWidth|borderColor|substr|className|onload|offsetWidth|offsetHeight|clientWidth|clientHeight|offsetLeft|offsetTop|clientLeft|clientTop|coordsize|coordorigin|path|m0|l0|xe|switch|center|right|bottom|01|Math|ceil|backgroundPosition|backgroundRepeat|toUpperCase|BODY|TD|TR|IMG|stroked|appendChild|parentNode|fillcolor|type|tile|offsetParent|try|execCommand|BackgroundImageCache|catch'.split('|'),0,{})) -/** -Author: Evcn -Email: evcn@163.com -URL: http://www.evsj.cn +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 E={J:\'E\',Z:{},1E:7(){4(x.1l&&!x.1l[6.J]){x.1l.23(6.J,\'24:25-26-27:3\')}4(1F.11){1F.11(\'28\',7(){E=29})}},1G:7(){2 a=x.1m(\'8\');x.1H.1b.1n(a,x.1H.1b.1b);2 b=a.1o;b.1c(6.J+\'\\\\:*\',\'{12:2a(#1I#2b)}\');b.1c(6.J+\'\\\\:9\',\'Q:1p;\');b.1c(\'1J.\'+6.J+\'1K\',\'12:y; 1q:y; Q:1p; z-2c:-1; 1d:-1r; 1L:1M;\');6.1o=b},1N:7(){2 a=13.2d;4(13.1e.K(\'2e\')!=-1||13.1e.K(\'1q\')!=-1){E.1f(a)}4(13.1e==\'8.1s\'){2 b=(a.F.1s==\'y\')?\'y\':\'2f\';G(2 v M a.3){a.3[v].9.8.1s=b}}4(13.1e.K(\'14\')!=-1){E.1t(a)}},1t:7(a){4(a.F.14.K(\'2g\')!=-1){2 b=a.F.14;b=1u(b.2h(b.1v(\'=\')+1,b.1v(\')\')),10)/2i;a.3.N.9.8.14=a.F.14;a.3.C.I.2j=b}},15:7(a){2k(7(){E.1f(a)},1)},2l:7(a){2 b=a.1O(\',\');G(2 i=0;ig.H){c.B=g.H}e.3.C.9.8.1Z=\'20(\'+c.T+\'u \'+(c.R+i)+\'u \'+c.B+\'u \'+(c.L+i)+\'u)\'}U{e.3.C.9.8.1Z=\'20(\'+p.T+\'u \'+p.R+\'u \'+p.B+\'u \'+p.L+\'u)\'}},1P:7(a){a.8.12=\'y\';4(a.17==\'32\'||a.17==\'33\'||a.17==\'34\'){1g}a.O=V;4(a.17==\'35\'){4(a.1h.21().K(/\\.22$/)!=-1){a.O=P;a.8.1L=\'1M\'}U{1g}}U 4(a.F.19.21().K(\'.22\')==-1){1g}2 b=E;a.3={N:{},C:{}};2 c={9:{},I:{}};G(2 r M a.3){G(2 e M c){2 d=b.J+\':\'+e;a.3[r][e]=x.1m(d)}a.3[r].9.36=V;a.3[r].9.37(a.3[r].I);a.38.1n(a.3[r].9,a)}a.3.C.9.39=\'y\';a.3.C.I.3a=\'3b\';a.3.N.I.1w=V;b.1T(a);b.1x(a);b.1x(a.3c);b.1f(a)}};3d{x.3e("3f",V,P)}3g(r){}E.1E();E.1G();',62,203,'||var|vml|if||this|function|style|shape|||||||||||||||||||||px|||document|none||||image|vmlBg|EvPNG|currentStyle|for||fill|ns|search||in|color|isImg|true|position||runtimeStyle||else|false||||imgSize||attachEvent|behavior|event|filter|handlePseudoHover|vmlOffsets|nodeName|backgroundColor|backgroundImage|case|firstChild|addRule|top|propertyName|applyVML|return|src|width|height|bLW|namespaces|createElement|insertBefore|styleSheet|absolute|border|10000px|display|vmlOpacity|parseInt|lastIndexOf|on|giveLayout|left|bTW|break|b1|b2|repeat|createVmlNameSpace|window|createVmlStyleSheet|documentElement|default|img|_sizeFinder|visibility|hidden|readPropertyChange|split|fixPng|cssText|vmlFill|copyImageBorders|attachHandlers|zIndex|transparent|removeAttribute|body|0l|clip|rect|toLowerCase|png|add|urn|schemas|microsoft|com|onbeforeunload|null|url|VML|index|srcElement|background|block|lpha|substring|100|opacity|setTimeout|fix|length|expression|resize|move|mouseleave|mouseenter|focus|blur|onpropertychange|zoom|static|relative|borderStyle|borderWidth|borderColor|substr|className|onload|offsetWidth|offsetHeight|clientWidth|clientHeight|offsetLeft|offsetTop|clientLeft|clientTop|coordsize|coordorigin|path|m0|l0|xe|switch|center|right|bottom|01|Math|ceil|backgroundPosition|backgroundRepeat|toUpperCase|BODY|TD|TR|IMG|stroked|appendChild|parentNode|fillcolor|type|tile|offsetParent|try|execCommand|BackgroundImageCache|catch'.split('|'),0,{})) +/** +Author: Evcn +Email: evcn@163.com +URL: http://www.evsj.cn **/ \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/index.css b/source/plugin/dzapp_haodai/images/index.css index 586375b..6d12766 100644 --- a/source/plugin/dzapp_haodai/images/index.css +++ b/source/plugin/dzapp_haodai/images/index.css @@ -1,200 +1,200 @@ -锘致charset "utf-8"; -/* CSS Document */ -body{ margin:0;font-size:12px;} -ul,ol,li{ list-style:none;margin:0; padding:0} -dl,dt,dd,p,h1,h2,h3,h4,h5,h6,table,tr,td,form,input{ margin:0; padding:0} -img{ border:none;} -a{ text-decoration:none; color:#333} -img,form,input,select{ vertical-align:middle} -.space0{ clear:both; height:0;font-size:0; line-height:0} -ul,li{list-style:none;} -a{text-decoration:none;color:#666666;} -a:hover{color:#666666;text-decoration:underline;} -.fl{float:left;} -.fr{float:right;} -img{vertical-align:middle;border:none;} -body{font-family:'Simsun';line-height:22px;background:#F2F2F2 url() center 40px no-repeat;color:#666666;} -.w710{width:710px;} -.w280{width:280px;} -.w1000{width:1000px;margin:0 auto;} -.mt20{margin-top:20px;} -.mb20{margin-bottom:20px;} -.main_index{} -.cow{color: #FFFFFF;} -.header{height:120px;background-color:#F2F2F2;overflow:hidden; min-width:1002px;} -.topbar_con,.head{width:1000px;margin:0 auto;} -.topbar{background-color:#333333;} -.topbar_con{color:#fff;font-family:'Microsoft Yahei';height:30px;line-height:30px;overflow:hidden;position:relative;font-size:12px;} -.topbar span{padding-right:15px;position:absolute;top:0px;right:0px;display:block;height:30px;line-height:30px;} -.topbar span a{color:#fff;} -.topbar span a:hover{color:#fff;} -.topbar span b{padding:0 7px;font-weight:normal;} -.head {height: 90px;margin: 0 auto;position: relative; width: 1000px;z-index: 100;} -.head h1 {float: left;margin-left:7px;margin-top:10px;} -.nav {float: right;} -.nav li {float: left;height: 31px;padding-top: 33px;width: 100px;font-size:16px;font-family:'Microsoft Yahei';} -.nav li a {color: #333333;display: block;font-size: 16px;height: 31px;line-height: 24px;text-align: center;text-decoration: none; width: 88px;float:left;} -.nav li a:hover{text-decoration:none;} -.nav li em{float:left;display:block;width:10px;color:#DDDDDD;text-algin:center;} -.nav .sel a,.nav li a:hover {color: #3e5a99;border-bottom:2px solid #475699;} -.head_line{height:2px;background-color:#DADADA;overflow:hidden;} -.banner{ background:url(banner.jpg) no-repeat center;height:450px;width:100%;min-width:1002px;} -.bacon{width:1000px;margin:0 auto;height:380px;position:relative;} -.city_locate{left:420px;top:160px;position:absolute;font-family:'Microsoft Yahei';font-size:20px;color:#ffffff;font-weight:bold;} -.sousuo{height:380px;position:absolute;left:0px;top:40px;width:330px;background-color:#000;filter:alpha(opacity=60);opacity:0.60;z-index:2;} -.sscon{height:380px;position:absolute;left:0px;top:40px;width:308px;z-index:5;padding-left:22px;} -.sscon h2{font-size:24px;color:#fff;font-family:'Microsoft Yahei';line-height:74px;height:74px;overflow:hidden;font-weight:normal;} -.dk_search{color:#fff;width:100%;font-family:'Microsoft Yahei';font-size:14px;} -.dk_search tr td{padding-top:15px;} -.main_jingying .banner{background-image:url(banner_jy.jpg);} -.main_xiaofei .banner{background-image:url(banner_xf.jpg);} -.se{width:200px;height:44px;position:relative;} -.sinp{width:136px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} -.sinp1{width:136px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp1.jpg) no-repeat right;} -.sinp2{width:136px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp2.jpg) no-repeat right;} -.selbtn{width:43px;height:42px; background:url(selbtn.png) no-repeat;float:right;border:none 0;outline:none;cursor:pointer;} -.sele{width:200px;height:42px;border:1px solid #cccccc;background:#FFF;z-index:2;} -/*xiala*/ -.xiala{border:1px solid #c9c9cb;position:absolute;top:43px;left:0px;z-index:999;} -.xiala li{display:block;width:200px;height:27px;background:#ffffff;line-height:27px;} -.xiala li a{font-size:12px;color:#666;display:block;padding-left:11px;width:189px;text-decoration:none;} -.xiala li a:hover{background:#F2F2F2;text-decoration:none;} -.se1{z-index:100;} -.se2{z-index:99;} -.se3{z-index:98;} -.ssinp {background:url(btn_search.png) no-repeat 0 0;display: block;height: 38px;width: 198px;margin-top:8px;} -.ssinp:hover{background-position:0 -47px;} -.none{display:none;} -.comm{background-color:#fff;border:1px solid #E1E1E1;box-shadow:0px 2px #E1E1E1;padding:10px;} -.comm .title{font-size:20px;font-family:'Microsoft Yahei';color:#333;margin-bottom:10px;font-weight:normal} -.xd_hot{width:680px;float:left;height:265px;} -.xd_hot .tab{width:640px;padding:0 10px;margin:0 auto;} -.xd_hot .tab tr td{height:48px;line-height:48px;border-bottom:1px dashed #E0E0E0;} -.xd_hot .tab tr.nob td{border:none} -.xd_hot h2 span{float:right;font-size:14px;font-family:'Microsoft Yahei';color:#333} -.xd_hot h2 span a{margin-right:10px;padding-left:10px;} -.xd_hot h2 span a.cur{color:#3f6790;} - -.chakan{display:block;width:75px;height:24px;background:url(viewlook.gif) no-repeat;line-height:24px;text-align:center;color:#333;} -.chakan:hover{color:#333;text-decoration:none;} -.dk_zs{width:260px;float:right;height:265px;overflow:hidden;} -.zs_ul{margin-left:20px;margin-top:30px;} -.zs_ul li{height:30px;line-height:30px;margin-bottom:25px;} -.zs_ul li img{width:30px;height:30px;margin-right:10px;} -.gl{line-height:26px;height:180px;} -.gl dl{float:left;width:290px;border-right:1px solid #EAEAEA;padding-right:24px;margin-right:24px;} -.gl dl dt h2.title{border-bottom:1px dashed #E0E0E0;padding-bottom:5px;} -.gl dl.dl_03{border:0px;margin:0px;padding:0px;} -.gl dl dd{ background:url(gl_ddbg.gif) no-repeat 10px center;padding-left:24px;white-space:nowrap;word-break:keep-all;overflow:hidden;text-overflow:ellipsis;} -.bank{width:100%;margin:0 auto;text-align:center;} -.bank td{height:42px;} -.bank1{width:145px;} -.bank2{width:142px;} -.bank3{width:157px;} -.bank4{width:121px;} -.hot_tj{} -.hot_tj h2{color:#999999;font: 16px "Microsoft Yahei";margin-bottom:10px;} -.tj_ul12{width:900px;margin:0 auto;} -.tj_ul12 li{float:left;width:150px;line-height:24px;} -.tj_ul12 li a{color:#999999;} -.xf_dkss{} -.xf_dkss li{width:190px;float:left;border-right:1px solid #EAEAEA;padding-right:35px;margin-left:15px;} -.xf_dkss li a:hover{text-decoration:none;color:#333;} -.xf_dkss li h2{font:20px "Microsoft Yahei";color:#3e5a99;margin-bottom:10px;} -.xf_dkss li.li_04{border:none;} -.btn01{width:168px;height:38px;line-height:38px;text-align:center;background:url(btn.png) no-repeat 0 -40px;display:block;color:#333;font-size:14px;margin:10px 0;} -.pages_dk{display: block;height: 30px;margin: 0px auto;overflow: hidden;text-align: center;width: 400px;padding:20px 0;} -.pages_dk .newpages b,.pages_dk .newpages a:hover{background-color:#00457C;border-color:#00457C;} -.gl_rightdiv{margin-bottom:10px;padding:15px;width:250px;height:145px;overflow:hidden;} -.gl_rightdiv dl{width:250px;height:auto;overflow:hidden;} -.gl_rightdiv dl dt h2.title{padding-bottom:5px;font-size:18px;position:relative;width:100%;} -.gl_rightdiv dl dt h2.title a{font-size:12px;color:#063DCE;position:absolute;right:0px;} -.gl_rightdiv dl dd{background:url(gl_ddbg.gif) no-repeat 10px center;padding-left:24px;overflow: hidden; text-overflow:ellipsis;white-space:nowrap;} -.search_rightdiv{padding:0px;} -.search_rightdiv h2.title{background-color:#FFF8DB;padding:0 15px;height:45px;line-height:45px;font-size:18px;} -.search_rightdiv .se{width:248px;margin:5px 0;} -.search_rightdiv .sinp{width:186px;} -.search_rightdiv .sinp1{width:186px;} -.search_rightdiv .sinp2{width:186px;} -.search_rightdiv .sele{width:246px;} -.search_rightdiv .xiala li{width:246px;} -.search_rightdiv .xiala li a{width:235px;} -.search_rightdiv .xiala li a:hover{background:#D6DEF3;} -.search_rightdiv .select_box{padding:0 15px 20px;} -.search_rightdiv .select_box p{color:#999999;} -.ssinp_rightdiv{border:1px solid #CCCCCC;height:43px;line-height:43px;display:block;text-align:center;background-color:#ECECEC;margin-top:15px;color:#000;font-size:15px;font-family:'Microsoft Yahei';} -.ssinp_rightdiv:hover{text-decoration:none;color:#000;} - - -.png_img{width:40px;height:40px;} -table{margin:0 auto;font-size:12px;} -.tableone td{height:55px;border-bottom:1px dashed #eeeeee; padding:1px 5px;} -.td1{width:111px;} -.td2{width:148px;font-size:12px;color:#333;} -.td3{width:297px;font-size:12px;color:#999;} -.td4{width:75px;} -.chakan{display:block;width:73px;height:22px;background:#f3f3f3;border:1px solid #dedede;font-size:12px;color:#333;text-align:center;line-height:22px;text-decoration:none;} -.tabletwo td{height:40px;font-size:12px;color:#999;} -#footer{text-align:center;margin-top:15px;} -.bottom { - margin: 0 auto; -} -.bottom ul { - list-style: none outside none; - margin: 0; - padding: 0 5px; -} -.bottom ul li { - color: #CCCCCC; - display: inline; - padding: 0; -} -.bottom ul li a { - padding: 0 5px; - white-space: nowrap; -} -#copyright { - text-align: center; -} -#copyright a { - color: #333333; -} -.city { -padding-left: 20px; -height: 82px; -float: left; -_width: 100px; -} -.cp1 { -margin: 25px 0px 1px 0px; -color: #333; -border: 1px solid #f3f3f3; -background: #ddd; -font-size: 12px; -display: block; -height: 19px; -width: 98%; -text-align: center; -line-height: 19px; -} -.cp1 span { -line-height: 16px; -} -.cp1 a { -text-decoration: none; -} -.cp1 a { -padding: 0px 3px 0px 6px; -cursor: pointer; -position: relative; -font-size: 14px; -color: #666; -font-weight: bold; -} -.more { -color: #787878; -font-size: 12px; -padding-right: 0px; -text-decoration: none; -font-weight: normal; -} +锘致charset "utf-8"; +/* CSS Document */ +body{ margin:0;font-size:12px;} +ul,ol,li{ list-style:none;margin:0; padding:0} +dl,dt,dd,p,h1,h2,h3,h4,h5,h6,table,tr,td,form,input{ margin:0; padding:0} +img{ border:none;} +a{ text-decoration:none; color:#333} +img,form,input,select{ vertical-align:middle} +.space0{ clear:both; height:0;font-size:0; line-height:0} +ul,li{list-style:none;} +a{text-decoration:none;color:#666666;} +a:hover{color:#666666;text-decoration:underline;} +.fl{float:left;} +.fr{float:right;} +img{vertical-align:middle;border:none;} +body{font-family:'Simsun';line-height:22px;background:#F2F2F2 url() center 40px no-repeat;color:#666666;} +.w710{width:710px;} +.w280{width:280px;} +.w1000{width:1000px;margin:0 auto;} +.mt20{margin-top:20px;} +.mb20{margin-bottom:20px;} +.main_index{} +.cow{color: #FFFFFF;} +.header{height:120px;background-color:#F2F2F2;overflow:hidden; min-width:1002px;} +.topbar_con,.head{width:1000px;margin:0 auto;} +.topbar{background-color:#333333;} +.topbar_con{color:#fff;font-family:'Microsoft Yahei';height:30px;line-height:30px;overflow:hidden;position:relative;font-size:12px;} +.topbar span{padding-right:15px;position:absolute;top:0px;right:0px;display:block;height:30px;line-height:30px;} +.topbar span a{color:#fff;} +.topbar span a:hover{color:#fff;} +.topbar span b{padding:0 7px;font-weight:normal;} +.head {height: 90px;margin: 0 auto;position: relative; width: 1000px;z-index: 100;} +.head h1 {float: left;margin-left:7px;margin-top:10px;} +.nav {float: right;} +.nav li {float: left;height: 31px;padding-top: 33px;width: 100px;font-size:16px;font-family:'Microsoft Yahei';} +.nav li a {color: #333333;display: block;font-size: 16px;height: 31px;line-height: 24px;text-align: center;text-decoration: none; width: 88px;float:left;} +.nav li a:hover{text-decoration:none;} +.nav li em{float:left;display:block;width:10px;color:#DDDDDD;text-algin:center;} +.nav .sel a,.nav li a:hover {color: #3e5a99;border-bottom:2px solid #475699;} +.head_line{height:2px;background-color:#DADADA;overflow:hidden;} +.banner{ background:url(banner.jpg) no-repeat center;height:450px;width:100%;min-width:1002px;} +.bacon{width:1000px;margin:0 auto;height:380px;position:relative;} +.city_locate{left:420px;top:160px;position:absolute;font-family:'Microsoft Yahei';font-size:20px;color:#ffffff;font-weight:bold;} +.sousuo{height:380px;position:absolute;left:0px;top:40px;width:330px;background-color:#000;filter:alpha(opacity=60);opacity:0.60;z-index:2;} +.sscon{height:380px;position:absolute;left:0px;top:40px;width:308px;z-index:5;padding-left:22px;} +.sscon h2{font-size:24px;color:#fff;font-family:'Microsoft Yahei';line-height:74px;height:74px;overflow:hidden;font-weight:normal;} +.dk_search{color:#fff;width:100%;font-family:'Microsoft Yahei';font-size:14px;} +.dk_search tr td{padding-top:15px;} +.main_jingying .banner{background-image:url(banner_jy.jpg);} +.main_xiaofei .banner{background-image:url(banner_xf.jpg);} +.se{width:200px;height:44px;position:relative;} +.sinp{width:136px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} +.sinp1{width:136px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp1.jpg) no-repeat right;} +.sinp2{width:136px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp2.jpg) no-repeat right;} +.selbtn{width:43px;height:42px; background:url(selbtn.png) no-repeat;float:right;border:none 0;outline:none;cursor:pointer;} +.sele{width:200px;height:42px;border:1px solid #cccccc;background:#FFF;z-index:2;} +/*xiala*/ +.xiala{border:1px solid #c9c9cb;position:absolute;top:43px;left:0px;z-index:999;} +.xiala li{display:block;width:200px;height:27px;background:#ffffff;line-height:27px;} +.xiala li a{font-size:12px;color:#666;display:block;padding-left:11px;width:189px;text-decoration:none;} +.xiala li a:hover{background:#F2F2F2;text-decoration:none;} +.se1{z-index:100;} +.se2{z-index:99;} +.se3{z-index:98;} +.ssinp {background:url(btn_search.png) no-repeat 0 0;display: block;height: 38px;width: 198px;margin-top:8px;} +.ssinp:hover{background-position:0 -47px;} +.none{display:none;} +.comm{background-color:#fff;border:1px solid #E1E1E1;box-shadow:0px 2px #E1E1E1;padding:10px;} +.comm .title{font-size:20px;font-family:'Microsoft Yahei';color:#333;margin-bottom:10px;font-weight:normal} +.xd_hot{width:680px;float:left;height:265px;} +.xd_hot .tab{width:640px;padding:0 10px;margin:0 auto;} +.xd_hot .tab tr td{height:48px;line-height:48px;border-bottom:1px dashed #E0E0E0;} +.xd_hot .tab tr.nob td{border:none} +.xd_hot h2 span{float:right;font-size:14px;font-family:'Microsoft Yahei';color:#333} +.xd_hot h2 span a{margin-right:10px;padding-left:10px;} +.xd_hot h2 span a.cur{color:#3f6790;} + +.chakan{display:block;width:75px;height:24px;background:url(viewlook.gif) no-repeat;line-height:24px;text-align:center;color:#333;} +.chakan:hover{color:#333;text-decoration:none;} +.dk_zs{width:260px;float:right;height:265px;overflow:hidden;} +.zs_ul{margin-left:20px;margin-top:30px;} +.zs_ul li{height:30px;line-height:30px;margin-bottom:25px;} +.zs_ul li img{width:30px;height:30px;margin-right:10px;} +.gl{line-height:26px;height:180px;} +.gl dl{float:left;width:290px;border-right:1px solid #EAEAEA;padding-right:24px;margin-right:24px;} +.gl dl dt h2.title{border-bottom:1px dashed #E0E0E0;padding-bottom:5px;} +.gl dl.dl_03{border:0px;margin:0px;padding:0px;} +.gl dl dd{ background:url(gl_ddbg.gif) no-repeat 10px center;padding-left:24px;white-space:nowrap;word-break:keep-all;overflow:hidden;text-overflow:ellipsis;} +.bank{width:100%;margin:0 auto;text-align:center;} +.bank td{height:42px;} +.bank1{width:145px;} +.bank2{width:142px;} +.bank3{width:157px;} +.bank4{width:121px;} +.hot_tj{} +.hot_tj h2{color:#999999;font: 16px "Microsoft Yahei";margin-bottom:10px;} +.tj_ul12{width:900px;margin:0 auto;} +.tj_ul12 li{float:left;width:150px;line-height:24px;} +.tj_ul12 li a{color:#999999;} +.xf_dkss{} +.xf_dkss li{width:190px;float:left;border-right:1px solid #EAEAEA;padding-right:35px;margin-left:15px;} +.xf_dkss li a:hover{text-decoration:none;color:#333;} +.xf_dkss li h2{font:20px "Microsoft Yahei";color:#3e5a99;margin-bottom:10px;} +.xf_dkss li.li_04{border:none;} +.btn01{width:168px;height:38px;line-height:38px;text-align:center;background:url(btn.png) no-repeat 0 -40px;display:block;color:#333;font-size:14px;margin:10px 0;} +.pages_dk{display: block;height: 30px;margin: 0px auto;overflow: hidden;text-align: center;width: 400px;padding:20px 0;} +.pages_dk .newpages b,.pages_dk .newpages a:hover{background-color:#00457C;border-color:#00457C;} +.gl_rightdiv{margin-bottom:10px;padding:15px;width:250px;height:145px;overflow:hidden;} +.gl_rightdiv dl{width:250px;height:auto;overflow:hidden;} +.gl_rightdiv dl dt h2.title{padding-bottom:5px;font-size:18px;position:relative;width:100%;} +.gl_rightdiv dl dt h2.title a{font-size:12px;color:#063DCE;position:absolute;right:0px;} +.gl_rightdiv dl dd{background:url(gl_ddbg.gif) no-repeat 10px center;padding-left:24px;overflow: hidden; text-overflow:ellipsis;white-space:nowrap;} +.search_rightdiv{padding:0px;} +.search_rightdiv h2.title{background-color:#FFF8DB;padding:0 15px;height:45px;line-height:45px;font-size:18px;} +.search_rightdiv .se{width:248px;margin:5px 0;} +.search_rightdiv .sinp{width:186px;} +.search_rightdiv .sinp1{width:186px;} +.search_rightdiv .sinp2{width:186px;} +.search_rightdiv .sele{width:246px;} +.search_rightdiv .xiala li{width:246px;} +.search_rightdiv .xiala li a{width:235px;} +.search_rightdiv .xiala li a:hover{background:#D6DEF3;} +.search_rightdiv .select_box{padding:0 15px 20px;} +.search_rightdiv .select_box p{color:#999999;} +.ssinp_rightdiv{border:1px solid #CCCCCC;height:43px;line-height:43px;display:block;text-align:center;background-color:#ECECEC;margin-top:15px;color:#000;font-size:15px;font-family:'Microsoft Yahei';} +.ssinp_rightdiv:hover{text-decoration:none;color:#000;} + + +.png_img{width:40px;height:40px;} +table{margin:0 auto;font-size:12px;} +.tableone td{height:55px;border-bottom:1px dashed #eeeeee; padding:1px 5px;} +.td1{width:111px;} +.td2{width:148px;font-size:12px;color:#333;} +.td3{width:297px;font-size:12px;color:#999;} +.td4{width:75px;} +.chakan{display:block;width:73px;height:22px;background:#f3f3f3;border:1px solid #dedede;font-size:12px;color:#333;text-align:center;line-height:22px;text-decoration:none;} +.tabletwo td{height:40px;font-size:12px;color:#999;} +#footer{text-align:center;margin-top:15px;} +.bottom { + margin: 0 auto; +} +.bottom ul { + list-style: none outside none; + margin: 0; + padding: 0 5px; +} +.bottom ul li { + color: #CCCCCC; + display: inline; + padding: 0; +} +.bottom ul li a { + padding: 0 5px; + white-space: nowrap; +} +#copyright { + text-align: center; +} +#copyright a { + color: #333333; +} +.city { +padding-left: 20px; +height: 82px; +float: left; +_width: 100px; +} +.cp1 { +margin: 25px 0px 1px 0px; +color: #333; +border: 1px solid #f3f3f3; +background: #ddd; +font-size: 12px; +display: block; +height: 19px; +width: 98%; +text-align: center; +line-height: 19px; +} +.cp1 span { +line-height: 16px; +} +.cp1 a { +text-decoration: none; +} +.cp1 a { +padding: 0px 3px 0px 6px; +cursor: pointer; +position: relative; +font-size: 14px; +color: #666; +font-weight: bold; +} +.more { +color: #787878; +font-size: 12px; +padding-right: 0px; +text-decoration: none; +font-weight: normal; +} diff --git a/source/plugin/dzapp_haodai/images/jisuanqi.css b/source/plugin/dzapp_haodai/images/jisuanqi.css index cedad06..5104af7 100644 --- a/source/plugin/dzapp_haodai/images/jisuanqi.css +++ b/source/plugin/dzapp_haodai/images/jisuanqi.css @@ -1,137 +1,137 @@ -@charset "utf-8"; -/* CSS Document */ - -/*main*/ -.main{width:100%;background:#fff;height:auto !important;height:600px;min-height:600px;padding-bottom:40px;z-index:5;padding-top:20px;} -.jisuanqi{width:983px;margin:0 auto;} -.jsl{float:left;width:682px;border:1px solid #e9e9e9;}/**20130423-14:06**/ -.jsr{float:right;width:280px;height:766px;} -/*璐锋锏剧*/ -.btli{display:block;float:left;padding-top:10px;padding-left:30px;} -.btli li{list-style:square;color:#999;} -.btli li a{color:#999;font-size:12px;text-decoration:none;line-height:24px;} -.btli li a:hover{text-decoration:underline;} -.btwo {width: 278px;height: 328px;} - -.jsaul{display:block;width:624px;margin:0 auto;margin-top:18px;height:76px;} -.jsaul li{float:left;padding:0px 5px 11px 5px;} -.jsaul li a{text-decoration:none;text-align:center;line-height:25px;border:1px solid #dedede;font-size:12px;} -.jsaon a{display:block;width:144px;height:25px;background:#f3f3f3;color:#333;} -.jsaoff a{display:block;width:144px;height:25px;background:#fff;color:#999;} - -.jsb{width:619px;padding-bottom: 20px;border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea;margin:0 auto;margin-top:7px;font-size:12px;} -.jsba{height:41px;padding-top:23px; padding-bottom: 10px;} -.jsba span{float:left;} -.jspan1{width:95px;color:#666;} -label {vertical-align: middle;} -.inputcheckbox {vertical-align: middle;} -.jsele{margin-right:23px;} - -.jsbb{height:34px;line-height:34px;margin-bottom:15px;} -.jsbb span{float:left;} -.jsinp1{width:156px;height:14px;border:1px solid #cccccc;outline:none;padding:9px 5px;color:#000;}/**20130423-14:06**/ -.jsbbin{width:199px;height:32px;border:1px solid #cccccc;float:left;} -.se1{position:relative;z-index:99;} -.se2{position:relative;z-index:98;} -.se3{position:relative;z-index:100;} -.xiala{z-index:999;} -.jsbbin1{width:156px;height:14px;padding:9px 5px;float:left;border:none 0;outline:none 0;color:#999; line-height: 14px;}/**20120423-10:57**/ -.jsbbin2{width:33px;height:32px;background:url(bd3.jpg) no-repeat;border:none 0;outline:none 0;float:right;cursor:pointer;} -.xiala2{border: 1px solid #C9C9CB;position: absolute;top:33px;left:95px;} -.xiala2 li{display: block;width: 199px;height: 27px;background: white;line-height: 27px;} -.xiala2 .mo {background: #E7E7E7;} -.xiala2 li a {font-size: 12px;color: #666;display: block;padding-left:5px;width: 194px;text-decoration: none;} -.xiala2 li a:hover{background:#c4d4e1;} -.xiala2 li {font-size: 12px;color: #666; cursor: pointer;} -.xiala2 li:hover{background:#c4d4e1;} - -.jsc{height:34px;padding-left:102px;} -.jsc1{width:93px;height:34px;background:url(jsc1.jpg) no-repeat;float:left;margin-right:15px;color:#fff;border:none 0;outline:none 0;line-height:34px;text-align:center;cursor:pointer;} -.jsc2{width:93px;height:34px;background:url(jsc2.jpg) no-repeat;float:left;margin-right:15px;color:#333;border:none 0;outline:none 0;line-height:34px;text-align:center;cursor:pointer;} - -.jsf{width:610px;height:208px;margin:0 auto;font-size:12px;} -.jsfa{width:260px;height:208px;padding-right:38px;float:left;} -.jsfapp{display:block;height:38px;line-height:38px;margin-top:7px;color:#333;} -.jsftab{border:1px solid #e9e9e9;border-collapse: collapse;} -.jsftab td{border:1px solid #e9e9e9;padding-right:10px;text-align:right;} -.jsftr1 td{height:25px;} -.jsftr2 td{height:40px;} - -.jsx{width:615px;height:33px;border-bottom:10px solid #eaeaea;margin:0 auto;font-size:12px;color:#ccc;margin-bottom:14px;} -.jsfcon{display:block;width:580px;padding-left:25px;line-height:24px;font-size:12px;} - -.jsrtab{border: 1px solid #E9E9E9;border-collapse: collapse;margin-bottom:22px;} -.jsrtab td{border: 1px solid #E9E9E9;padding:0px 10px;} -.jsrtabt{height:40px;background:#f8f8f8;font-size:14px;color:#333;} -.tl{text-align:left;} -.tr{text-align:right;} -.jstra td{height:25px;font-size:12px;} -/**20130418-16:21**/ -.none {display: none;} - -.wy{display:block;height:32px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;border-right:1px solid #ccc;padding:0 5px;line-height:32px;text-align:Center;background:#f8f8f8;_height:30px;_margin-top:1px;} - -/**20120423-10:32**/ -.jsbb_sck {margin-left: 5px; margin-top: 3px;} -.jsbb_sck input {border:1px solid #ccc;} - -/**20120424-10:42**/ -.jsaul ,.jsx ,.jsf {width:632px; float: left;} -.jsaul ,.jsx ,.jsf {padding: 15px 15px;} -.jsaul {height:auto;} -.jsb {padding: 30px 15px 30px 50px; float: left; width: 595px;} -.jsfa {width:290px; margin: 0 13px; padding: 0;} -.jsfcon {float: left; padding-bottom: 10px;} -.jsf {margin-top: 0px;} -.clear {clear: both;} -p.zongjg {line-height: 30px; font-size: 16px; font-family: "Microsoft Yahei"; color: #666;} -p.zongjg strong {font-size: 18px; color: red;} -.jgsc {float: left; width: 632px; padding: 10px 15px;} -.jg_tab {border-left: 1px solid #ddd; border-top: 1px solid #ddd; margin-top: 10px;} -.jg_tab th ,.jg_tab td {padding:12px 7px; font-size: 12px; line-height: 20px; font-size: 14px;} -.jg_tab th {border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; color: #444555; background: #f5f5f5;text-align: left;} -.jg_tab td {border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; color: #777888;} -.jg_tab td.le_td {text-align: left;} -.jg_tab td p {padding: 5px 0 8px 0; line-height: 25px;} -.t0805_inpa {height: 26px; line-height: 26px; padding: 0 3px;width: 134px; border: 1px solid #999; margin-right: 5px;} -.jg_tab tr td span {color:red;} -.error_ts {color:red;} -.success_ts {color:green;} - -.jg_tab td p.js_p1 {padding:0; margin:0; line-height:18px;}/**20130515-16:34**/ - -.select01{ float: left; padding: 9px 5px 7px; width: 168px;} -.lv_1{ text-decoration: none; color: #666;} -.jsbb_sck a:hover{ color: #ff0000;} -.inpt{ padding: 9px 5px 7px; text-align: center;} - -.jsfa td em { - color: #FF6633; - font-weight: bold; -} -.cal-btn { - background: none repeat scroll 0 0 #0098F1; - border: 1px solid #004F7E; - color: #FFFFFF; - margin-right: 10px; -} -.btn { - box-shadow: 0 1px 3px #ECECEC; - cursor: pointer; - height: 30px; - width: 85px; -} -.reset-btn { - background: none repeat scroll 0 0 #F6F6F6; - border: 1px solid #CBCBCB; - color: #333333; -} -/******2013-05-08********/ -.red {color:red;} -.jsbb span.red {padding-left: 10px; height: 34px; line-height: 34px;} -#gjj_nature_options {z-index: 2400;} -.se2 a:hover{ color: red;} -#result .td1{ background: none repeat scroll 0 0 #F8F8F8; - padding-left: 10px; - width: 90px;} - +@charset "utf-8"; +/* CSS Document */ + +/*main*/ +.main{width:100%;background:#fff;height:auto !important;height:600px;min-height:600px;padding-bottom:40px;z-index:5;padding-top:20px;} +.jisuanqi{width:983px;margin:0 auto;} +.jsl{float:left;width:682px;border:1px solid #e9e9e9;}/**20130423-14:06**/ +.jsr{float:right;width:280px;height:766px;} +/*璐锋锏剧*/ +.btli{display:block;float:left;padding-top:10px;padding-left:30px;} +.btli li{list-style:square;color:#999;} +.btli li a{color:#999;font-size:12px;text-decoration:none;line-height:24px;} +.btli li a:hover{text-decoration:underline;} +.btwo {width: 278px;height: 328px;} + +.jsaul{display:block;width:624px;margin:0 auto;margin-top:18px;height:76px;} +.jsaul li{float:left;padding:0px 5px 11px 5px;} +.jsaul li a{text-decoration:none;text-align:center;line-height:25px;border:1px solid #dedede;font-size:12px;} +.jsaon a{display:block;width:144px;height:25px;background:#f3f3f3;color:#333;} +.jsaoff a{display:block;width:144px;height:25px;background:#fff;color:#999;} + +.jsb{width:619px;padding-bottom: 20px;border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea;margin:0 auto;margin-top:7px;font-size:12px;} +.jsba{height:41px;padding-top:23px; padding-bottom: 10px;} +.jsba span{float:left;} +.jspan1{width:95px;color:#666;} +label {vertical-align: middle;} +.inputcheckbox {vertical-align: middle;} +.jsele{margin-right:23px;} + +.jsbb{height:34px;line-height:34px;margin-bottom:15px;} +.jsbb span{float:left;} +.jsinp1{width:156px;height:14px;border:1px solid #cccccc;outline:none;padding:9px 5px;color:#000;}/**20130423-14:06**/ +.jsbbin{width:199px;height:32px;border:1px solid #cccccc;float:left;} +.se1{position:relative;z-index:99;} +.se2{position:relative;z-index:98;} +.se3{position:relative;z-index:100;} +.xiala{z-index:999;} +.jsbbin1{width:156px;height:14px;padding:9px 5px;float:left;border:none 0;outline:none 0;color:#999; line-height: 14px;}/**20120423-10:57**/ +.jsbbin2{width:33px;height:32px;background:url(bd3.jpg) no-repeat;border:none 0;outline:none 0;float:right;cursor:pointer;} +.xiala2{border: 1px solid #C9C9CB;position: absolute;top:33px;left:95px;} +.xiala2 li{display: block;width: 199px;height: 27px;background: white;line-height: 27px;} +.xiala2 .mo {background: #E7E7E7;} +.xiala2 li a {font-size: 12px;color: #666;display: block;padding-left:5px;width: 194px;text-decoration: none;} +.xiala2 li a:hover{background:#c4d4e1;} +.xiala2 li {font-size: 12px;color: #666; cursor: pointer;} +.xiala2 li:hover{background:#c4d4e1;} + +.jsc{height:34px;padding-left:102px;} +.jsc1{width:93px;height:34px;background:url(jsc1.jpg) no-repeat;float:left;margin-right:15px;color:#fff;border:none 0;outline:none 0;line-height:34px;text-align:center;cursor:pointer;} +.jsc2{width:93px;height:34px;background:url(jsc2.jpg) no-repeat;float:left;margin-right:15px;color:#333;border:none 0;outline:none 0;line-height:34px;text-align:center;cursor:pointer;} + +.jsf{width:610px;height:208px;margin:0 auto;font-size:12px;} +.jsfa{width:260px;height:208px;padding-right:38px;float:left;} +.jsfapp{display:block;height:38px;line-height:38px;margin-top:7px;color:#333;} +.jsftab{border:1px solid #e9e9e9;border-collapse: collapse;} +.jsftab td{border:1px solid #e9e9e9;padding-right:10px;text-align:right;} +.jsftr1 td{height:25px;} +.jsftr2 td{height:40px;} + +.jsx{width:615px;height:33px;border-bottom:10px solid #eaeaea;margin:0 auto;font-size:12px;color:#ccc;margin-bottom:14px;} +.jsfcon{display:block;width:580px;padding-left:25px;line-height:24px;font-size:12px;} + +.jsrtab{border: 1px solid #E9E9E9;border-collapse: collapse;margin-bottom:22px;} +.jsrtab td{border: 1px solid #E9E9E9;padding:0px 10px;} +.jsrtabt{height:40px;background:#f8f8f8;font-size:14px;color:#333;} +.tl{text-align:left;} +.tr{text-align:right;} +.jstra td{height:25px;font-size:12px;} +/**20130418-16:21**/ +.none {display: none;} + +.wy{display:block;height:32px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;border-right:1px solid #ccc;padding:0 5px;line-height:32px;text-align:Center;background:#f8f8f8;_height:30px;_margin-top:1px;} + +/**20120423-10:32**/ +.jsbb_sck {margin-left: 5px; margin-top: 3px;} +.jsbb_sck input {border:1px solid #ccc;} + +/**20120424-10:42**/ +.jsaul ,.jsx ,.jsf {width:632px; float: left;} +.jsaul ,.jsx ,.jsf {padding: 15px 15px;} +.jsaul {height:auto;} +.jsb {padding: 30px 15px 30px 50px; float: left; width: 595px;} +.jsfa {width:290px; margin: 0 13px; padding: 0;} +.jsfcon {float: left; padding-bottom: 10px;} +.jsf {margin-top: 0px;} +.clear {clear: both;} +p.zongjg {line-height: 30px; font-size: 16px; font-family: "Microsoft Yahei"; color: #666;} +p.zongjg strong {font-size: 18px; color: red;} +.jgsc {float: left; width: 632px; padding: 10px 15px;} +.jg_tab {border-left: 1px solid #ddd; border-top: 1px solid #ddd; margin-top: 10px;} +.jg_tab th ,.jg_tab td {padding:12px 7px; font-size: 12px; line-height: 20px; font-size: 14px;} +.jg_tab th {border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; color: #444555; background: #f5f5f5;text-align: left;} +.jg_tab td {border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; color: #777888;} +.jg_tab td.le_td {text-align: left;} +.jg_tab td p {padding: 5px 0 8px 0; line-height: 25px;} +.t0805_inpa {height: 26px; line-height: 26px; padding: 0 3px;width: 134px; border: 1px solid #999; margin-right: 5px;} +.jg_tab tr td span {color:red;} +.error_ts {color:red;} +.success_ts {color:green;} + +.jg_tab td p.js_p1 {padding:0; margin:0; line-height:18px;}/**20130515-16:34**/ + +.select01{ float: left; padding: 9px 5px 7px; width: 168px;} +.lv_1{ text-decoration: none; color: #666;} +.jsbb_sck a:hover{ color: #ff0000;} +.inpt{ padding: 9px 5px 7px; text-align: center;} + +.jsfa td em { + color: #FF6633; + font-weight: bold; +} +.cal-btn { + background: none repeat scroll 0 0 #0098F1; + border: 1px solid #004F7E; + color: #FFFFFF; + margin-right: 10px; +} +.btn { + box-shadow: 0 1px 3px #ECECEC; + cursor: pointer; + height: 30px; + width: 85px; +} +.reset-btn { + background: none repeat scroll 0 0 #F6F6F6; + border: 1px solid #CBCBCB; + color: #333333; +} +/******2013-05-08********/ +.red {color:red;} +.jsbb span.red {padding-left: 10px; height: 34px; line-height: 34px;} +#gjj_nature_options {z-index: 2400;} +.se2 a:hover{ color: red;} +#result .td1{ background: none repeat scroll 0 0 #F8F8F8; + padding-left: 10px; + width: 90px;} + diff --git a/source/plugin/dzapp_haodai/images/jquery-1.8.0.min.js b/source/plugin/dzapp_haodai/images/jquery-1.8.0.min.js index 36ade78..af715fd 100644 --- a/source/plugin/dzapp_haodai/images/jquery-1.8.0.min.js +++ b/source/plugin/dzapp_haodai/images/jquery-1.8.0.min.js @@ -1,2 +1,2 @@ -/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ +/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write(""),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bR[a]=c,c}function ch(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||cd.test(a)?d(a,e):ch(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ch(a+"["+e+"]",b[e],c,d);else d(a,b)}function cy(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.0",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return typeof a=="object"?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b
    a",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length||!d)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="
    t
    ",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="
    ",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/^(?:\{.*\}|\[.*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||++p.uuid:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.shift(),e=p._queueHooks(a,b),f=function(){p.dequeue(a,b)};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),delete e.stop,d.call(a,f,e)),!c.length&&e&&e.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c-1)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c-1)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,""+d),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;jq&&u.push({elem:this,matches:o.slice(q)});for(d=0;d0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bd(a,b,c,d){var e=0,f=b.length;for(;e0?h(g,c,f):[]}function bf(a,c,d,e,f){var g,h,i,j,k,l,m,n,p=0,q=f.length,s=L.POS,t=new RegExp("^"+s.source+"(?!"+r+")","i"),u=function(){var a=1,c=arguments.length-2;for(;ai){m=a.slice(i,g.index),i=n,l=[c],B.test(m)&&(k&&(l=k),k=e);if(h=H.test(m))m=m.slice(0,-5).replace(B,"$&*");g.length>1&&g[0].replace(t,u),k=be(m,g[1],g[2],l,k,h)}}k?(j=j.concat(k),(m=a.slice(i))&&m!==")"?B.test(m)?bd(m,j,d,e):Z(m,c,d,e?e.concat(k):k):o.apply(d,j)):Z(a,c,d,e)}return q===1?d:Z.uniqueSort(d)}function bg(a,b,c){var d,e,f,g=[],i=0,j=D.exec(a),k=!j.pop()&&!j.pop(),l=k&&a.match(C)||[""],m=$.preFilter,n=$.filter,o=!c&&b!==h;for(;(e=l[i])!=null&&k;i++){g.push(d=[]),o&&(e=" "+e);while(e){k=!1;if(j=B.exec(e))e=e.slice(j[0].length),k=d.push({part:j.pop().replace(A," "),captures:j});for(f in n)(j=L[f].exec(e))&&(!m[f]||(j=m[f](j,b,c)))&&(e=e.slice(j.shift().length),k=d.push({part:f,captures:j}));if(!k)break}}return k||Z.error(a),g}function bh(a,b,e){var f=b.dir,g=m++;return a||(a=function(a){return a===e}),b.first?function(b,c){while(b=b[f])if(b.nodeType===1)return a(b,c)&&b}:function(b,e){var h,i=g+"."+d,j=i+"."+c;while(b=b[f])if(b.nodeType===1){if((h=b[q])===j)return b.sizset;if(typeof h=="string"&&h.indexOf(i)===0){if(b.sizset)return b}else{b[q]=j;if(a(b,e))return b.sizset=!0,b;b.sizset=!1}}}}function bi(a,b){return a?function(c,d){var e=b(c,d);return e&&a(e===!0?c:e,d)}:b}function bj(a,b,c){var d,e,f=0;for(;d=a[f];f++)$.relative[d.part]?e=bh(e,$.relative[d.part],b):(d.captures.push(b,c),e=bi(e,$.filter[d.part].apply(null,d.captures)));return e}function bk(a){return function(b,c){var d,e=0;for(;d=a[e];e++)if(d(b,c))return!0;return!1}}var c,d,e,f,g,h=a.document,i=h.documentElement,j="undefined",k=!1,l=!0,m=0,n=[].slice,o=[].push,q=("sizcache"+Math.random()).replace(".",""),r="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",t=s.replace("w","w#"),u="([*^$|!~]?=)",v="\\["+r+"*("+s+")"+r+"*(?:"+u+r+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+t+")|)|)"+r+"*\\]",w=":("+s+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|((?:[^,]|\\\\,|(?:,(?=[^\\[]*\\]))|(?:,(?=[^\\(]*\\))))*))\\)|)",x=":(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\)|)(?=[^-]|$)",y=r+"*([\\x20\\t\\r\\n\\f>+~])"+r+"*",z="(?=[^\\x20\\t\\r\\n\\f])(?:\\\\.|"+v+"|"+w.replace(2,7)+"|[^\\\\(),])+",A=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),B=new RegExp("^"+y),C=new RegExp(z+"?(?="+r+"*,|$)","g"),D=new RegExp("^(?:(?!,)(?:(?:^|,)"+r+"*"+z+")*?|"+r+"*(.*?))(\\)|$)"),E=new RegExp(z.slice(19,-6)+"\\x20\\t\\r\\n\\f>+~])+|"+y,"g"),F=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,G=/[\x20\t\r\n\f]*[+~]/,H=/:not\($/,I=/h\d/i,J=/input|select|textarea|button/i,K=/\\(?!\\)/g,L={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),NAME:new RegExp("^\\[name=['\"]?("+s+")['\"]?\\]"),TAG:new RegExp("^("+s.replace("[-","[-\\*")+")"),ATTR:new RegExp("^"+v),PSEUDO:new RegExp("^"+w),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),POS:new RegExp(x,"ig"),needsContext:new RegExp("^"+r+"*[>+~]|"+x,"i")},M={},N=[],O={},P=[],Q=function(a){return a.sizzleFilter=!0,a},R=function(a){return function(b){return b.nodeName.toLowerCase()==="input"&&b.type===a}},S=function(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}},T=function(a){var b=!1,c=h.createElement("div");try{b=a(c)}catch(d){}return c=null,b},U=T(function(a){a.innerHTML="";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),V=T(function(a){a.id=q+0,a.innerHTML="
    ",i.insertBefore(a,i.firstChild);var b=h.getElementsByName&&h.getElementsByName(q).length===2+h.getElementsByName(q+0).length;return g=!h.getElementById(q),i.removeChild(a),b}),W=T(function(a){return a.appendChild(h.createComment("")),a.getElementsByTagName("*").length===0}),X=T(function(a){return a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!==j&&a.firstChild.getAttribute("href")==="#"}),Y=T(function(a){return a.innerHTML="",!a.getElementsByClassName||a.getElementsByClassName("e").length===0?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length!==1)}),Z=function(a,b,c,d){c=c||[],b=b||h;var e,f,g,i,j=b.nodeType;if(j!==1&&j!==9)return[];if(!a||typeof a!="string")return c;g=ba(b);if(!g&&!d)if(e=F.exec(a))if(i=e[1]){if(j===9){f=b.getElementById(i);if(!f||!f.parentNode)return c;if(f.id===i)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(i))&&bb(b,f)&&f.id===i)return c.push(f),c}else{if(e[2])return o.apply(c,n.call(b.getElementsByTagName(a),0)),c;if((i=e[3])&&Y&&b.getElementsByClassName)return o.apply(c,n.call(b.getElementsByClassName(i),0)),c}return bm(a,b,c,d,g)},$=Z.selectors={cacheLength:50,match:L,order:["ID","TAG"],attrHandle:{},createPseudo:Q,find:{ID:g?function(a,b,c){if(typeof b.getElementById!==j&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==j&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==j&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:W?function(a,b){if(typeof b.getElementsByTagName!==j)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(K,""),a[3]=(a[4]||a[5]||"").replace(K,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||Z.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&Z.error(a[0]),a},PSEUDO:function(a){var b,c=a[4];return L.CHILD.test(a[0])?null:(c&&(b=D.exec(c))&&b.pop()&&(a[0]=a[0].slice(0,b[0].length-c.length-1),c=b[0].slice(0,-1)),a.splice(2,3,c||a[3]),a)}},filter:{ID:g?function(a){return a=a.replace(K,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(K,""),function(b){var c=typeof b.getAttributeNode!==j&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(K,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=M[a];return b||(b=M[a]=new RegExp("(^|"+r+")"+a+"("+r+"|$)"),N.push(a),N.length>$.cacheLength&&delete M[N.shift()]),function(a){return b.test(a.className||typeof a.getAttribute!==j&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return b?function(d){var e=Z.attr(d,a),f=e+"";if(e==null)return b==="!=";switch(b){case"=":return f===c;case"!=":return f!==c;case"^=":return c&&f.indexOf(c)===0;case"*=":return c&&f.indexOf(c)>-1;case"$=":return c&&f.substr(f.length-c.length)===c;case"~=":return(" "+f+" ").indexOf(c)>-1;case"|=":return f===c||f.substr(0,c.length+1)===c+"-"}}:function(b){return Z.attr(b,a)!=null}},CHILD:function(a,b,c,d){if(a==="nth"){var e=m++;return function(a){var b,f,g=0,h=a;if(c===1&&d===0)return!0;b=a.parentNode;if(b&&(b[q]!==e||!a.sizset)){for(h=b.firstChild;h;h=h.nextSibling)if(h.nodeType===1){h.sizset=++g;if(h===a)break}b[q]=e}return f=a.sizset-d,c===0?f===0:f%c===0&&f/c>=0}}return function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b,c,d){var e=$.pseudos[a]||$.pseudos[a.toLowerCase()];return e||Z.error("unsupported pseudo: "+a),e.sizzleFilter?e(b,c,d):e}},pseudos:{not:Q(function(a,b,c){var d=bl(a.replace(A,"$1"),b,c);return function(a){return!d(a)}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!$.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},contains:Q(function(a){return function(b){return(b.textContent||b.innerText||bc(b)).indexOf(a)>-1}}),has:Q(function(a){return function(b){return Z(a,b).length>0}}),header:function(a){return I.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:R("radio"),checkbox:R("checkbox"),file:R("file"),password:R("password"),image:R("image"),submit:S("submit"),reset:S("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return J.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b,c){return c?a.slice(1):[a[0]]},last:function(a,b,c){var d=a.pop();return c?a:[d]},even:function(a,b,c){var d=[],e=c?1:0,f=a.length;for(;e$.cacheLength&&delete O[P.shift()],g};Z.matches=function(a,b){return Z(a,null,null,b)},Z.matchesSelector=function(a,b){return Z(b,null,null,[a]).length>0};var bm=function(a,b,e,f,g){a=a.replace(A,"$1");var h,i,j,k,l,m,p,q,r,s=a.match(C),t=a.match(E),u=b.nodeType;if(L.POS.test(a))return bf(a,b,e,f,s);if(f)h=n.call(f,0);else if(s&&s.length===1){if(t.length>1&&u===9&&!g&&(s=L.ID.exec(t[0]))){b=$.find.ID(s[1],b,g)[0];if(!b)return e;a=a.slice(t.shift().length)}q=(s=G.exec(t[0]))&&!s.index&&b.parentNode||b,r=t.pop(),m=r.split(":not")[0];for(j=0,k=$.order.length;j",a.querySelectorAll("[selected]").length||e.push("\\["+r+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),T(function(a){a.innerHTML="

    ",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+r+"*(?:\"\"|'')"),a.innerHTML="",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=e.length&&new RegExp(e.join("|")),bm=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a)))if(d.nodeType===9)try{return o.apply(f,n.call(d.querySelectorAll(a),0)),f}catch(i){}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var j=d.getAttribute("id"),k=j||q,l=G.test(a)&&d.parentNode||d;j?k=k.replace(c,"\\$&"):d.setAttribute("id",k);try{return o.apply(f,n.call(l.querySelectorAll(a.replace(C,"[id='"+k+"'] $&")),0)),f}catch(i){}finally{j||d.removeAttribute("id")}}return b(a,d,f,g,h)},g&&(T(function(b){a=g.call(b,"div");try{g.call(b,"[test!='']:sizzle"),f.push($.match.PSEUDO)}catch(c){}}),f=new RegExp(f.join("|")),Z.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!ba(b)&&!f.test(c)&&(!e||!e.test(c)))try{var h=g.call(b,c);if(h||a||b.document&&b.document.nodeType!==11)return h}catch(i){}return Z(c,null,null,[b]).length>0})}(),Z.attr=p.attr,p.find=Z,p.expr=Z.selectors,p.expr[":"]=p.expr.pseudos,p.unique=Z.uniqueSort,p.text=Z.getText,p.isXMLDoc=Z.isXML,p.contains=Z.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b0)for(e=d;e=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*\s*$/g,bz={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X
    ","
    "]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1>");try{for(;d1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=0,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(g=b===e&&bA;(h=a[s])!=null;s++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{g=g||bk(b),l=l||g.appendChild(b.createElement("div")),h=h.replace(bo,"<$1>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]===""&&!m?l.childNodes:[];for(f=n.length-1;f>=0;--f)p.nodeName(n[f],"tbody")&&!n[f].childNodes.length&&n[f].parentNode.removeChild(n[f])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l=g.lastChild}h.nodeType?t.push(h):t=p.merge(t,h)}l&&(g.removeChild(l),h=l=g=null);if(!p.support.appendChecked)for(s=0;(h=t[s])!=null;s++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(s=0;(h=t[s])!=null;s++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[s+1,0].concat(r)),s+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^margin/,bO=new RegExp("^("+q+")(.*)$","i"),bP=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bQ=new RegExp("^([-+])=("+q+")","i"),bR={},bS={position:"absolute",visibility:"hidden",display:"block"},bT={letterSpacing:0,fontWeight:400,lineHeight:1},bU=["Top","Right","Bottom","Left"],bV=["Webkit","O","Moz","ms"],bW=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return bZ(this,!0)},hide:function(){return bZ(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bW.apply(this,arguments):this.each(function(){(c?a:bY(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bX(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bQ.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bX(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bT&&(f=bT[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(a,b){var c,d,e,f,g=getComputedStyle(a,null),h=a.style;return g&&(c=g[b],c===""&&!p.contains(a.ownerDocument.documentElement,a)&&(c=p.style(a,b)),bP.test(c)&&bN.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=c,c=g.width,h.width=d,h.minWidth=e,h.maxWidth=f)),c}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bP.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0||bH(a,"display")!=="none"?ca(a,b,d):p.swap(a,bS,function(){return ca(a,b,d)})},set:function(a,c,d){return b$(a,c,d?b_(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bP.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bU[d]+b]=e[d]||e[d-2]||e[0];return f}},bN.test(a)||(p.cssHooks[a+b].set=b$)});var cc=/%20/g,cd=/\[\]$/,ce=/\r?\n/g,cf=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,cg=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||cg.test(this.nodeName)||cf.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(ce,"\r\n")}}):{name:b.name,value:c.replace(ce,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ch(d,a[d],c,f);return e.join("&").replace(cc,"+")};var ci,cj,ck=/#.*$/,cl=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cm=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,cn=/^(?:GET|HEAD)$/,co=/^\/\//,cp=/\?/,cq=/)<[^<]*)*<\/script>/gi,cr=/([?&])_=[^&]*/,cs=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,ct=p.fn.load,cu={},cv={},cw=["*/"]+["*"];try{ci=f.href}catch(cx){ci=e.createElement("a"),ci.href="",ci=ci.href}cj=cs.exec(ci.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&ct)return ct.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("
    ").append(a.replace(cq,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cA(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cA(a,b),a},ajaxSettings:{url:ci,isLocal:cm.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cw},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cy(cu),ajaxTransport:cy(cv),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cB(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cC(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=""+(c||y),k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cl.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(ck,"").replace(co,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=cs.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]==cj[1]&&i[2]==cj[2]&&(i[3]||(i[1]==="http:"?80:443))==(cj[3]||(cj[1]==="http:"?80:443)))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cz(cu,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!cn.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cp.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cr,"$1_="+z);l.url=A+(A===l.url?(cp.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cw+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cz(cv,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cD=[],cE=/\?/,cF=/(=)\?(?=&|$)|\?\?/,cG=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cD.pop()||p.expando+"_"+cG++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cF.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cF.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cF,"$1"+f):m?c.data=i.replace(cF,"$1"+f):k&&(c.url+=(cE.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cD.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cH,cI=a.ActiveXObject?function(){for(var a in cH)cH[a](0,1)}:!1,cJ=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cK()||cL()}:cK,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cI&&delete cH[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cJ,cI&&(cH||(cH={},p(a).unload(cI)),cH[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cM,cN,cO=/^(?:toggle|show|hide)$/,cP=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cQ=/queueHooks$/,cR=[cX],cS={"*":[function(a,b){var c,d,e,f=this.createTween(a,b),g=cP.exec(b),h=f.cur(),i=+h||0,j=1;if(g){c=+g[2],d=g[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&i){i=p.css(f.elem,a,!0)||c||1;do e=j=j||".5",i=i/j,p.style(f.elem,a,i+d),j=f.cur()/h;while(j!==1&&j!==e)}f.unit=d,f.start=i,f.end=g[1]?i+(g[1]+1)*c:c}return f}]};p.Animation=p.extend(cV,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c$.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c$.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=c_(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/jquery.js b/source/plugin/dzapp_haodai/images/jquery.js index 99397c7..a14275c 100644 --- a/source/plugin/dzapp_haodai/images/jquery.js +++ b/source/plugin/dzapp_haodai/images/jquery.js @@ -1,4 +1,4 @@ -/*! jQuery v1.7.2 jquery.com | jquery.org/license */ -(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
    a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
    "+""+"
    ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
    t
    ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
    ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( -a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
    ","
    "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
    a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
    "+""+"
    ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
    t
    ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
    ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
    ","
    "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f .clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
    ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/jquery.jslides.js b/source/plugin/dzapp_haodai/images/jquery.jslides.js index 4028142..f00446a 100644 --- a/source/plugin/dzapp_haodai/images/jquery.jslides.js +++ b/source/plugin/dzapp_haodai/images/jquery.jslides.js @@ -1,78 +1,78 @@ -var jq = jQuery.noConflict(); -jq(document).ready(function() { - var numpic = jq('#slides li').size() - 1; - var nownow = 0; - var inout = 0; - var TT = 0; - var SPEED = 5000; - jq('#slides li').eq(0).siblings('li').css({'display': 'none'}); - var ulstart = '
      ', - ulcontent = '', - ulend = '
    '; - ADDLI(); - var pagination = jq('#pagination li'); - pagination.eq(0).addClass('current') - - function ADDLI() { - for (var i = 0; i <= numpic; i++) { - ulcontent += '
  • ' + '' + (i + 1) + '' + '
  • '; - } - - jq('#slides').after(ulstart + ulcontent + ulend); - } - - pagination.on('click', DOTCHANGE) - - function DOTCHANGE() { - - var changenow = jq(this).index(); - - jq('#slides li').eq(nownow).css('z-index', '900'); - jq('#slides li').eq(changenow).css({'z-index': '800'}).show(); - pagination.eq(changenow).addClass('current').siblings('li').removeClass('current'); - jq('#slides li').eq(nownow).fadeOut(400, function() { - jq('#slides li').eq(changenow).fadeIn(500); - }); - nownow = changenow; - } - - pagination.mouseenter(function() { - inout = 1; - }) - - pagination.mouseleave(function() { - inout = 0; - }) - - function GOGO() { - - var NN = nownow + 1; - - if (inout == 1) { - } else { - if (nownow < numpic) { - jq('#slides li').eq(nownow).css('z-index', '900'); - jq('#slides li').eq(NN).css({'z-index': '800'}).show(); - pagination.eq(NN).addClass('current').siblings('li').removeClass('current'); - jq('#slides li').eq(nownow).fadeOut(400, function() { - jq('#slides li').eq(NN).fadeIn(500); - }); - nownow += 1; - - } else { - NN = 0; - jq('#slides li').eq(nownow).css('z-index', '900'); - jq('#slides li').eq(NN).stop(true, true).css({'z-index': '800'}).show(); - jq('#slides li').eq(nownow).fadeOut(400, function() { - jq('#slides li').eq(0).fadeIn(500); - }); - pagination.eq(NN).addClass('current').siblings('li').removeClass('current'); - - nownow = 0; - - } - } - TT = setTimeout(GOGO, SPEED); - } - TT = setTimeout(GOGO, SPEED); +var jq = jQuery.noConflict(); +jq(document).ready(function() { + var numpic = jq('#slides li').size() - 1; + var nownow = 0; + var inout = 0; + var TT = 0; + var SPEED = 5000; + jq('#slides li').eq(0).siblings('li').css({'display': 'none'}); + var ulstart = '
      ', + ulcontent = '', + ulend = '
    '; + ADDLI(); + var pagination = jq('#pagination li'); + pagination.eq(0).addClass('current') + + function ADDLI() { + for (var i = 0; i <= numpic; i++) { + ulcontent += '
  • ' + '' + (i + 1) + '' + '
  • '; + } + + jq('#slides').after(ulstart + ulcontent + ulend); + } + + pagination.on('click', DOTCHANGE) + + function DOTCHANGE() { + + var changenow = jq(this).index(); + + jq('#slides li').eq(nownow).css('z-index', '900'); + jq('#slides li').eq(changenow).css({'z-index': '800'}).show(); + pagination.eq(changenow).addClass('current').siblings('li').removeClass('current'); + jq('#slides li').eq(nownow).fadeOut(400, function() { + jq('#slides li').eq(changenow).fadeIn(500); + }); + nownow = changenow; + } + + pagination.mouseenter(function() { + inout = 1; + }) + + pagination.mouseleave(function() { + inout = 0; + }) + + function GOGO() { + + var NN = nownow + 1; + + if (inout == 1) { + } else { + if (nownow < numpic) { + jq('#slides li').eq(nownow).css('z-index', '900'); + jq('#slides li').eq(NN).css({'z-index': '800'}).show(); + pagination.eq(NN).addClass('current').siblings('li').removeClass('current'); + jq('#slides li').eq(nownow).fadeOut(400, function() { + jq('#slides li').eq(NN).fadeIn(500); + }); + nownow += 1; + + } else { + NN = 0; + jq('#slides li').eq(nownow).css('z-index', '900'); + jq('#slides li').eq(NN).stop(true, true).css({'z-index': '800'}).show(); + jq('#slides li').eq(nownow).fadeOut(400, function() { + jq('#slides li').eq(0).fadeIn(500); + }); + pagination.eq(NN).addClass('current').siblings('li').removeClass('current'); + + nownow = 0; + + } + } + TT = setTimeout(GOGO, SPEED); + } + TT = setTimeout(GOGO, SPEED); }); \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/js.js b/source/plugin/dzapp_haodai/images/js.js index 7e52025..11e44b8 100644 --- a/source/plugin/dzapp_haodai/images/js.js +++ b/source/plugin/dzapp_haodai/images/js.js @@ -1,29 +1,29 @@ -function a(x,y){ - l = Jquery('#main').offset().left; - w = Jquery('#main').width(); - Jquery('#tbox').css('left',(l + w + x) + 'px'); - Jquery('#tbox').css('bottom',y + 'px'); -} -function b(){ - h = Jquery(window).height(); - t = Jquery(document).scrollTop(); - if(t > h){ - Jquery('#gotop').fadeIn('slow'); - }else{ - Jquery('#gotop').fadeOut('slow'); - } -} -Jquery(document).ready(function(e) { - a(10,10);//#tbox的div距浏览器底部和页面内容区域右侧的距离 - b(); - Jquery('#gotop').click(function(){ - Jquery(document).scrollTop(0); - }) -}); -Jquery(window).resize(function(){ - a(10,10);//#tbox的div距浏览器底部和页面内容区域右侧的距离 -}); - -Jquery(window).scroll(function(e){ - b(); +function a(x,y){ + l = Jquery('#main').offset().left; + w = Jquery('#main').width(); + Jquery('#tbox').css('left',(l + w + x) + 'px'); + Jquery('#tbox').css('bottom',y + 'px'); +} +function b(){ + h = Jquery(window).height(); + t = Jquery(document).scrollTop(); + if(t > h){ + Jquery('#gotop').fadeIn('slow'); + }else{ + Jquery('#gotop').fadeOut('slow'); + } +} +Jquery(document).ready(function(e) { + a(10,10);//#tbox的div距浏览器底部和页面内容区域右侧的距离 + b(); + Jquery('#gotop').click(function(){ + Jquery(document).scrollTop(0); + }) +}); +Jquery(window).resize(function(){ + a(10,10);//#tbox的div距浏览器底部和页面内容区域右侧的距离 +}); + +Jquery(window).scroll(function(e){ + b(); }) \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/jsqall.js b/source/plugin/dzapp_haodai/images/jsqall.js index 32df718..99adef2 100644 --- a/source/plugin/dzapp_haodai/images/jsqall.js +++ b/source/plugin/dzapp_haodai/images/jsqall.js @@ -1,827 +1,827 @@ - -var cd_a = 20; -var cd_b2 = 36; -var cd_c = 5.4; -var car_price = true; -var car_nll = true; -var pop_list = true; -var gjj_a = 20; -var gjj_b2 = 36; -var gjj_c = 5.4; -var gjj_d = 10000; -var gjj_e = 200; -var gjj_b6 = 1; -var gjj_price = true; -var gjj_nll = true; -var gjj_list = true; -var gjj_pmdj = true; -var gjj_mj = true; -var zhdk_b2 = 36; -var zhdk_a = 20; -var zhdk_b = 20; -var zhdk_c = 20; -var zhdk_d = 20; -var zhdk_gjjprice = true; -var jq = jQuery.noConflict(); -var zhdk_gjjll = true; -var zhdk_sdprice = true; -var zhdk_sdll = true; -var efd_mj = true; -var efd_zj = true; -var esfd_a = 0; -var esfd_b = 0; -jq(document).ready(function() { - fdj(); - cdyz1(); - cdyz2(); - cdyz3(); - cdjs(); - jq('#jsstyle_0').attr('checked', true) - gjjyz1(); - gjjyz2(); - gjjyz3(); - gjjyz4(); - gjjyz5(); - gjjyz6(); - gjjjs(); - zhdkyz1(); - zhdkyz2(); - zhdkyz3(); - zhdkyz4(); - zhdkyz5(); - zhdkjs(); - jq('#jsfwxz_0').attr('checked', true) - jq('#jshas5_0').attr('checked', true) - esfdyz1(); - esfdyz2(); - esfdjs(); -}); - -function fdj() { - var fdjt01 = jq('#jsstyle_0'); - var fdjt02 = jq('#jsstyle_1'); - var fdjt01_con = fdjt01.parent().parent().parent().children('.fdj_01'); - var fdjt02_con = fdjt02.parent().parent().parent().children('.fdj_02'); - fdjt01.click(function() { - fdjt01_con.removeClass('none'); - fdjt02_con.addClass('none'); - - jq('.js_total').text('0'); - jq('.js_time').text('0'); - jq('#js_Lmy').text('0'); - jq('#js_Lzlx').text('0'); - jq('#js_Lbxhj').text('0'); - jq('#js_Rsy').text('0'); - jq('#js_Rdj').text('0'); - jq('#js_Rzlx').text('0'); - jq('#js_Rbxhj').text('0'); - }); - fdjt02.click(function() { - fdjt01_con.addClass('none'); - fdjt02_con.removeClass('none'); - - jq('.js_total').text('0'); - jq('.js_time').text('0'); - jq('#js_Lmy').text('0'); - jq('#js_Lzlx').text('0'); - jq('#js_Lbxhj').text('0'); - jq('#js_Rsy').text('0'); - jq('#js_Rdj').text('0'); - jq('#js_Rzlx').text('0'); - jq('#js_Rbxhj').text('0'); - }); -} - -function cdyz1(cd_a) { - var cipt = jq('#car_price') - var cd_a = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq('.car_price_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - car_price = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - car_price = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - car_price = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return cd_a; -} -function cdyz2() { - var ctime = jq('#cd_pop_list') - var clist = jq('#cd_list_options'); - ctime.click(function() { - var cd_yon = clist.hasClass('none'); - if (cd_yon == true) { - clist.removeClass('none'); - } else { - clist.addClass('none'); - } - }); -} -function cdmonth(bb) { - var bthis = jq(bb); - var cd_reval = bthis.attr('reval'); - var cdshow = jq('#car_dktime'); - var cdli = jq('#cd_list_options li a'); - var cdul = jq('#cd_list_options'); - var cdshow_reval = cdshow.attr('reval'); - cdshow_reval = cd_reval; - cd_b2 = cdshow_reval; - cdshow.text(bthis.text()); - cdli.removeClass('mo'); - bthis.addClass('mo'); - cdul.addClass('none'); - return cd_b2; -} -function cdyz3(cd_c) { - var cnll = jq('#car_nll'); - var error_ts = jq('.car_nll_error'); - var cd_c = cnll.val(); - cnll.blur(function() { - var Cnll_val = cnll.val(); - var Tnll_val = jq.trim(Cnll_val); - if (Tnll_val == '') { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - car_nll = false; - } else if (Tnll_val.length > 0) { - if (!isNaN(Tnll_val)) { - cnll.addClass('success_ts'); - error_ts.addClass('none'); - car_nll = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个年利率的数字'); - cnll.addClass('error_ts'); - car_nll = false; - } - } - }); - cnll.focus(function() { - cnll.removeClass('success_ts'); - cnll.removeClass('error_ts'); - }); - return cd_c; -} -function cdjs(cd_a, cd_c) { - var cbtn = jq('#cd_jsbtn'); - cbtn.click(function() { - if (car_price == true && car_nll == true && pop_list == true) { - var cd_sf = jq('#topSf'); - var cd_yg = jq('#topYg'); - var cd_time = jq('#topM'); - var cd_price = jq('#topPrice'); - var cd_all = jq('#topTotal'); - var cd_more = jq('#topMore'); - - var r1 = cdyz1(cd_a); - var r2 = cd_b2; - var r3 = cdyz3(cd_c); - - cd_sf = Math.round((r1 * (0.3)) * 10000) / 10000; - cd_price = Math.round(r1 * 10000) / 10000; - cd_time = r2; - var cd_bj = cd_price - cd_sf; - var yll = (r3 * 0.01) / 12; - var t = Math.pow((1 + yll), cd_time); - cd_yg = Math.round((cd_bj * yll * (t / (t - 1))) * 10000) / 10000; - cd_all = Math.round((cd_sf + cd_yg * cd_time) * 10000) / 10000; - cd_more = Math.round((cd_all - cd_price) * 10000) / 10000; - jq('#topSf').text(cd_sf); - jq('#topYg').text(cd_yg * 10000); - jq('#topM').text(cd_time); - jq('#topPrice').text(cd_price); - jq('#topTotal').text(cd_all); - jq('#topMore').text(cd_more); - - } else { - } - ; - - }); -} - - -function gjjyz1(gjj_a) { - var cipt = jq('#gjj_price') - var gjj_a = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gjj_price = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gjj_price = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - gjj_price = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gjj_a; -} -function gjjyz2() { - var ctime = jq('#gjj_pop_list') - var clist = jq('#gjj_list_options'); - ctime.click(function() { - var js_yon = clist.hasClass('none'); - if (js_yon == true) { - clist.removeClass('none'); - } else { - clist.addClass('none'); - } - }); -} -function gjjmonth(gjjbb) { - var bthis = jq(gjjbb); - var js_reval = bthis.attr('reval'); - var jsshow = jq('#gjj_dktime'); - var jsli = jq('#gjj_list_options li a'); - var jsul = jq('#gjj_list_options'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjj_b2 = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - return gjj_b2; -} -function gjjyz3(gjj_c) { - var cnll = jq('#gjj_nll'); - var gjj_c = cnll.val(); - cnll.blur(function() { - var error_ts = jq(this).parent().parent().children('.js_error'); - var Cnll_val = cnll.val(); - var Tnll_val = jq.trim(Cnll_val); - if (Tnll_val == '') { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gjj_nll = false; - } else if (Tnll_val.length > 0) { - if (!isNaN(Tnll_val)) { - cnll.addClass('success_ts'); - error_ts.addClass('none'); - gjj_nll = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个年利率的数字'); - cnll.addClass('error_ts'); - gjj_nll = false; - } - } - }); - cnll.focus(function() { - cnll.removeClass('success_ts'); - cnll.removeClass('error_ts'); - }); - return gjj_c; -} -function gjjyz4(gjj_d) { - var cipt = jq('#gjj_pmdj') - var gjj_d = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gjj_pmdj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gjj_pmdj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - gjj_pmdj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gjj_d; -} -function gjjyz5(gjj_e) { - var cipt = jq('#gjj_mj') - var gjj_e = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gjj_mj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gjj_mj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - gjj_mj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gjj_e; -} -function gjjyz6() { - var ctime = jq('#gjj_nature_list') - var clist = jq('#gjj_nature_options'); - ctime.click(function() { - var js_yon = clist.hasClass('none'); - if (js_yon == true) { - clist.removeClass('none'); - } else { - clist.addClass('none'); - } - }); -} -function gjjnature(gjjb6) { - var bthis = jq(gjjb6); - var js_reval = bthis.attr('reval'); - var jsshow = jq('#gjj_nature_show'); - var jsli = jq('#gjj_nature_options li a'); - var jsul = jq('#gjj_nature_options'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjj_b6 = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - return gjj_b6; -} -function gjjjs(gjj_a, gjj_c, gjj_d, gjj_e) { - var gjjtn = jq('#gjj_jsbtn'); - gjjtn.click(function() { - var js_total = jq('.js_total'); - var js_time = jq('.js_time'); - var js_Lmy = jq('#js_Lmy'); - var js_Rsy = jq('#js_Rsy'); - var js_Rdj = jq('#js_Rdj'); - var js_Lzlx = jq('#js_Lzlx'); - var js_Rzlx = jq('#js_Rzlx'); - var js_Lbxhj = jq('#js_Lbxhj'); - var js_Rbxhj = jq('#js_Rbxhj'); - - var r1 = gjjyz1(gjj_a); - var r2 = gjj_b2; - var r3 = gjjyz3(gjj_c); - var r4 = gjjyz4(gjj_d); - var r5 = gjjyz5(gjj_e) * 0.0001; - var r6 = gjj_b6; - if (jq('#jsstyle_0').attr('checked') == 'checked') { - if (gjj_price == true && gjj_nll == true && gjj_list == true) { - js_total = Math.round(r1 * 10000) / 10000; - js_time = Math.round(r2 * 10000) / 10000; - var yll = Math.round(((r3 * 0.01) / 12) * 10000) / 10000; - var t = Math.pow((1 + yll), js_time); - js_Lmy = Math.round((js_total * yll * (t / (t - 1))) * 10000) / 10000; - var js_Lzlx_00 = (js_time * js_Lmy) - js_total; - js_Lzlx = Math.round(js_Lzlx_00 * 10000) / 10000; - js_Lbxhj = js_Lzlx + Math.round(js_total); - var js_mbj = js_total / js_time; - var js_Rsy_00 = js_mbj + (js_total * yll); - js_Rsy = Math.round(js_Rsy_00 * 10000) / 10000; - var js_Rdj_00 = (js_mbj + (js_total - js_mbj) * yll) - (js_mbj + (js_total - js_mbj * 2) * yll); - js_Rdj = Math.round(js_Rdj_00 * 10000) / 10000; - var js_Rzlx_00 = js_total * yll * (js_time + 1) / 2; - js_Rzlx = Math.round(js_Rzlx_00 * 10000) / 10000; - js_Rbxhj = js_Rzlx + Math.round(js_total); - - jq('.js_total').text(js_total); - jq('.js_time').text(js_time); - jq('#js_Lmy').text(js_Lmy); - jq('#js_Lzlx').text(js_Lzlx); - jq('#js_Lbxhj').text(js_Lbxhj); - jq('#js_Rsy').text(js_Rsy); - jq('#js_Rdj').text(js_Rdj); - jq('#js_Rzlx').text(js_Rzlx); - jq('#js_Rbxhj').text(js_Rbxhj); - } - } - if (jq('#jsstyle_1').attr('checked') == 'checked') { - if (gjj_pmdj == true && gjj_mj == true && gjj_nll == true) { - var js_fjzj = Math.round(r4 * r5 * 10000) / 10000; - var bx = 0; - if (r6 == 1) { - bx = 0.7; //alert('1111'); - } else if (r6 == 2) { - bx = 0.4; //alert('2222'); - } - var dz = Math.round(js_fjzj * bx * 10000) / 10000; - js_total = Math.round(dz * 10000) / 10000; - js_time = Math.round(r2 * 10000) / 10000; - var yll = Math.round(((r3 * 0.01) / 12) * 10000) / 10000; - var t = Math.pow((1 + yll), js_time); - js_Lmy = Math.round((js_total * yll * (t / (t - 1))) * 10000) / 10000; - var js_Lzlx_00 = (js_time * js_Lmy) - js_total; - js_Lzlx = Math.round(js_Lzlx_00 * 10000) / 10000; - js_Lbxhj = js_Lzlx + Math.round(js_total); - var js_mbj = js_total / js_time; - var js_Rsy_00 = js_mbj + (js_total * yll); - js_Rsy = Math.round(js_Rsy_00 * 10000) / 10000; - var js_Rdj_00 = (js_mbj + (js_total - js_mbj) * yll) - (js_mbj + (js_total - js_mbj * 2) * yll); - js_Rdj = Math.round(js_Rdj_00 * 10000) / 10000; - var js_Rzlx_00 = js_total * yll * (js_time + 1) / 2; - js_Rzlx = Math.round(js_Rzlx_00 * 10000) / 10000; - js_Rbxhj = js_Rzlx + Math.round(js_total); - - jq('.js_total').text(js_total); - jq('.js_time').text(js_time); - jq('#js_Lmy').text(js_Lmy); - jq('#js_Lzlx').text(js_Lzlx); - jq('#js_Lbxhj').text(js_Lbxhj); - jq('#js_Rsy').text(js_Rsy); - jq('#js_Rdj').text(js_Rdj); - jq('#js_Rzlx').text(js_Rzlx); - jq('#js_Rbxhj').text(js_Rbxhj); - } - } - }); -} - - - -function zhdkyz1() { - var ctime = jq('#zhdk_pop_list') - var clist = jq('#zhdk_list_options'); - ctime.click(function() { - var js_yon = clist.hasClass('none'); - if (js_yon == true) { - clist.removeClass('none'); - } else { - clist.addClass('none'); - } - }); -} -function zhdkmonth(zhdkbb) { - var bthis = jq(zhdkbb); - var js_reval = bthis.attr('reval'); - var jsshow = jq('#zhdk_dktime'); - var jsli = jq('#zhdk_list_options li a'); - var jsul = jq('#zhdk_list_options'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - zhdk_b2 = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - return zhdk_b2; -} -function zhdkyz2(zhdk_a) { - var cipt = jq('#zhdk_gjjprice') - var zhdk_a = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - zhdk_gjjprice = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - zhdk_gjjprice = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - zhdk_gjjprice = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return zhdk_a; -} -function zhdkyz3(zhdk_b) { - var cipt = jq('#zhdk_gjjll') - var zhdk_b = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - zhdk_gjjll = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - zhdk_gjjll = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - zhdk_gjjll = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return zhdk_b; -} -function zhdkyz4(zhdk_c) { - var cipt = jq('#zhdk_sdprice') - var zhdk_c = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - zhdk_sdprice = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - zhdk_sdprice = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - zhdk_sdprice = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return zhdk_c; -} -function zhdkyz5(zhdk_d) { - var cipt = jq('#zhdk_sdll') - var zhdk_d = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - zhdk_sdll = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - zhdk_sdll = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - zhdk_sdll = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return zhdk_d; -} -function zhdkjs(zhdk_a, zhdk_b, zhdk_c, zhdk_d) { - var zhdktn = jq('#zhdk_jsbtn'); - zhdktn.click(function() { - var js_total = jq('.js_total'); - var js_time = jq('.js_time'); - var js_Lmy = jq('#js_Lmy'); - var js_Rsy = jq('#js_Rsy'); - var js_Rdj = jq('#js_Rdj'); - var js_Lzlx = jq('#js_Lzlx'); - var js_Rzlx = jq('#js_Rzlx'); - var js_Lbxhj = jq('#js_Lbxhj'); - var js_Rbxhj = jq('#js_Rbxhj'); - - var r0 = zhdk_b2; - var r1 = zhdkyz2(zhdk_a); - var r2 = zhdkyz3(zhdk_b); - var r3 = zhdkyz4(zhdk_c); - var r4 = zhdkyz5(zhdk_d); - - if (zhdk_gjjprice == true && zhdk_gjjll == true && zhdk_sdprice == true && zhdk_sdll == true) { - - var js_total_01 = Math.round(r1 * 10000) / 10000; - js_time = Math.round(r0 * 10000) / 10000; - var yll_01 = Math.round(((r2 * 0.01) / 12) * 10000) / 10000; - var t_01 = Math.pow((1 + yll_01), js_time); - var js_Lmy_01 = Math.round((js_total_01 * yll_01 * (t_01 / (t_01 - 1))) * 10000) / 10000; - var js_Lzlx_00_01 = (js_time * js_Lmy_01) - js_total_01; - var js_Lzlx_01 = Math.round(js_Lzlx_00_01 * 10000) / 10000; - var js_Lbxhj_01 = js_Lzlx_01 + Math.round(js_total_01); - var js_mbj_01 = js_total_01 / js_time; - var js_Rsy_00_01 = js_mbj_01 + (js_total_01 * yll_01); - var js_Rsy_01 = Math.round(js_Rsy_00_01 * 10000) / 10000; - var js_Rdj_00_01 = (js_mbj_01 + (js_total_01 - js_mbj_01) * yll_01) - (js_mbj_01 + (js_total_01 - js_mbj_01 * 2) * yll_01); - var js_Rdj_01 = Math.round(js_Rdj_00_01 * 10000) / 10000; - var js_Rzlx_00_01 = js_total_01 * yll_01 * (js_time + 1) / 2; - var js_Rzlx_01 = Math.round(js_Rzlx_00_01 * 10000) / 10000; - var js_Rbxhj_01 = js_Rzlx_01 + Math.round(js_total_01); - - - - var js_total_02 = Math.round(r3 * 10000) / 10000; - var yll_02 = Math.round(((r4 * 0.01) / 12) * 10000) / 10000; - var t_02 = Math.pow((1 + yll_02), js_time); - var js_Lmy_02 = Math.round((js_total_01 * yll_02 * (t_02 / (t_02 - 1))) * 10000) / 10000; - var js_Lzlx_00_02 = (js_time * js_Lmy_02) - js_total_02; - var js_Lzlx_02 = Math.round(js_Lzlx_00_02 * 10000) / 10000; - var js_Lbxhj_02 = js_Lzlx_02 + Math.round(js_total_02); - var js_mbj_02 = js_total_02 / js_time; - var js_Rsy_00_02 = js_mbj_02 + (js_total_02 * yll_02); - var js_Rsy_02 = Math.round(js_Rsy_00_02 * 10000) / 10000; - var js_Rdj_00_02 = (js_mbj_02 + (js_total_02 - js_mbj_02) * yll_02) - (js_mbj_02 + (js_total_02 - js_mbj_02 * 2) * yll_02); - var js_Rdj_02 = Math.round(js_Rdj_00_02 * 10000) / 10000; - var js_Rzlx_00_02 = js_total_02 * yll_02 * (js_time + 1) / 2; - var js_Rzlx_02 = Math.round(js_Rzlx_00_02 * 10000) / 10000; - var js_Rbxhj_02 = js_Rzlx_02 + Math.round(js_total_02); - - - js_total = js_total_01 + js_total_02; - js_Lmy = js_Lmy_01 + js_Lmy_02; - js_Lzlx = js_Lzlx_01 + js_Lzlx_02; - js_Lbxhj = js_Lbxhj_01 + js_Lbxhj_02; - js_Rsy = js_Rsy_01 + js_Rsy_02; - js_Rdj = (js_Rdj_01 + js_Rdj_02) * 10000 / 10000; - js_Rzlx = js_Rzlx_01 + js_Rzlx_02; - js_Rbxhj = js_Rbxhj_01 + js_Rbxhj_02; - - jq('.js_total').text(js_total); - jq('.js_time').text(js_time); - jq('#js_Lmy').text(js_Lmy); - jq('#js_Lzlx').text(js_Lzlx); - jq('#js_Lbxhj').text(js_Lbxhj); - jq('#js_Rsy').text(js_Rsy); - jq('#js_Rdj').text(js_Rdj); - jq('#js_Rzlx').text(js_Rzlx); - jq('#js_Rbxhj').text(js_Rbxhj); - } - }); -} - - - -function esfdyz1(esfd_a) { - var cipt = jq('#efd_mj') - var esfd_a = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - efd_mj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - efd_mj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - efd_mj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return esfd_a; -} - -function esfdyz2(esfd_b) { - var cipt = jq('#efd_zj') - var esfd_b = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = jq.trim(Cprice_val); - var error_ts = jq(this).parent().parent().children('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - efd_zj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - efd_zj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('少年,这不是一个数字'); - cipt.addClass('error_ts'); - efd_zj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return esfd_b; -} - -function esfdjs(esfd_a, esfd_b) { - var efdbtn = jq('#efd_jsbtn'); - efdbtn.click(function() { - var js_hj01 = jq('#js_hj01'); - var js_qs01 = jq('#js_qs01'); - var js_yys01 = jq('#js_yys01'); - var js_cjs01 = jq('#js_cjs01'); - var js_jyfjs01 = jq('#js_jyfjs01'); - var js_gs01 = jq('#js_gs01'); - var js_yhs01 = jq('#js_yhs01'); - - var r1 = esfdyz1(esfd_a); - var r2 = esfdyz2(esfd_b); - - if (efd_mj == true && efd_zj == true) { - if (jq('#jsfwxz_0').attr('checked') == 'checked') { - if (r1 < 90) { - js_qs01 = Math.round(r2 * 0.01 * 10000 * 10000) / 10000; - } - else { - js_qs01 = Math.round(r2 * 0.015 * 10000 * 10000) / 10000; - } - } else if (jq('#jsfwxz_1').attr('checked') == 'checked') { - js_qs01 = Math.round(r2 * 0.03 * 10000 * 10000) / 10000; - } - if (jq('#jshas5_0').attr('checked') == 'checked') { - js_yys01 = 0; - js_cjs01 = 0; - js_jyfjs01 = 0; - js_gs01 = 0; - js_yhs01 = 0; - } - if (jq('#jshas5_1').attr('checked') == 'checked') { - js_yys01 = Math.round(r2 * 0.0555 * 10000 * 10000) / 10000; - js_cjs01 = Math.round(js_yys01 * 0.07 * 100000) / 100000; - js_jyfjs01 = Math.round(js_yys01 * 0.03 * 100000) / 100000; - js_gs01 = Math.round(r2 * 0.01 * 10000 * 10000) / 10000; - js_yhs01 = 0; - } - js_hj01 = js_qs01 + js_yys01 + js_cjs01 + js_jyfjs01 + js_gs01; - jq('#js_hj01').text(js_hj01); - jq('#js_qs01').text(js_qs01); - jq('#js_yys01').text(js_yys01); - jq('#js_cjs01').text(js_cjs01); - jq('#js_jyfjs01').text(js_jyfjs01); - jq('#js_gs01').text(js_gs01); - jq('#js_yhs01').text(js_yhs01); - } - - }); + +var cd_a = 20; +var cd_b2 = 36; +var cd_c = 5.4; +var car_price = true; +var car_nll = true; +var pop_list = true; +var gjj_a = 20; +var gjj_b2 = 36; +var gjj_c = 5.4; +var gjj_d = 10000; +var gjj_e = 200; +var gjj_b6 = 1; +var gjj_price = true; +var gjj_nll = true; +var gjj_list = true; +var gjj_pmdj = true; +var gjj_mj = true; +var zhdk_b2 = 36; +var zhdk_a = 20; +var zhdk_b = 20; +var zhdk_c = 20; +var zhdk_d = 20; +var zhdk_gjjprice = true; +var jq = jQuery.noConflict(); +var zhdk_gjjll = true; +var zhdk_sdprice = true; +var zhdk_sdll = true; +var efd_mj = true; +var efd_zj = true; +var esfd_a = 0; +var esfd_b = 0; +jq(document).ready(function() { + fdj(); + cdyz1(); + cdyz2(); + cdyz3(); + cdjs(); + jq('#jsstyle_0').attr('checked', true) + gjjyz1(); + gjjyz2(); + gjjyz3(); + gjjyz4(); + gjjyz5(); + gjjyz6(); + gjjjs(); + zhdkyz1(); + zhdkyz2(); + zhdkyz3(); + zhdkyz4(); + zhdkyz5(); + zhdkjs(); + jq('#jsfwxz_0').attr('checked', true) + jq('#jshas5_0').attr('checked', true) + esfdyz1(); + esfdyz2(); + esfdjs(); +}); + +function fdj() { + var fdjt01 = jq('#jsstyle_0'); + var fdjt02 = jq('#jsstyle_1'); + var fdjt01_con = fdjt01.parent().parent().parent().children('.fdj_01'); + var fdjt02_con = fdjt02.parent().parent().parent().children('.fdj_02'); + fdjt01.click(function() { + fdjt01_con.removeClass('none'); + fdjt02_con.addClass('none'); + + jq('.js_total').text('0'); + jq('.js_time').text('0'); + jq('#js_Lmy').text('0'); + jq('#js_Lzlx').text('0'); + jq('#js_Lbxhj').text('0'); + jq('#js_Rsy').text('0'); + jq('#js_Rdj').text('0'); + jq('#js_Rzlx').text('0'); + jq('#js_Rbxhj').text('0'); + }); + fdjt02.click(function() { + fdjt01_con.addClass('none'); + fdjt02_con.removeClass('none'); + + jq('.js_total').text('0'); + jq('.js_time').text('0'); + jq('#js_Lmy').text('0'); + jq('#js_Lzlx').text('0'); + jq('#js_Lbxhj').text('0'); + jq('#js_Rsy').text('0'); + jq('#js_Rdj').text('0'); + jq('#js_Rzlx').text('0'); + jq('#js_Rbxhj').text('0'); + }); +} + +function cdyz1(cd_a) { + var cipt = jq('#car_price') + var cd_a = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq('.car_price_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + car_price = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + car_price = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + car_price = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return cd_a; +} +function cdyz2() { + var ctime = jq('#cd_pop_list') + var clist = jq('#cd_list_options'); + ctime.click(function() { + var cd_yon = clist.hasClass('none'); + if (cd_yon == true) { + clist.removeClass('none'); + } else { + clist.addClass('none'); + } + }); +} +function cdmonth(bb) { + var bthis = jq(bb); + var cd_reval = bthis.attr('reval'); + var cdshow = jq('#car_dktime'); + var cdli = jq('#cd_list_options li a'); + var cdul = jq('#cd_list_options'); + var cdshow_reval = cdshow.attr('reval'); + cdshow_reval = cd_reval; + cd_b2 = cdshow_reval; + cdshow.text(bthis.text()); + cdli.removeClass('mo'); + bthis.addClass('mo'); + cdul.addClass('none'); + return cd_b2; +} +function cdyz3(cd_c) { + var cnll = jq('#car_nll'); + var error_ts = jq('.car_nll_error'); + var cd_c = cnll.val(); + cnll.blur(function() { + var Cnll_val = cnll.val(); + var Tnll_val = jq.trim(Cnll_val); + if (Tnll_val == '') { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + car_nll = false; + } else if (Tnll_val.length > 0) { + if (!isNaN(Tnll_val)) { + cnll.addClass('success_ts'); + error_ts.addClass('none'); + car_nll = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个年利率的数字'); + cnll.addClass('error_ts'); + car_nll = false; + } + } + }); + cnll.focus(function() { + cnll.removeClass('success_ts'); + cnll.removeClass('error_ts'); + }); + return cd_c; +} +function cdjs(cd_a, cd_c) { + var cbtn = jq('#cd_jsbtn'); + cbtn.click(function() { + if (car_price == true && car_nll == true && pop_list == true) { + var cd_sf = jq('#topSf'); + var cd_yg = jq('#topYg'); + var cd_time = jq('#topM'); + var cd_price = jq('#topPrice'); + var cd_all = jq('#topTotal'); + var cd_more = jq('#topMore'); + + var r1 = cdyz1(cd_a); + var r2 = cd_b2; + var r3 = cdyz3(cd_c); + + cd_sf = Math.round((r1 * (0.3)) * 10000) / 10000; + cd_price = Math.round(r1 * 10000) / 10000; + cd_time = r2; + var cd_bj = cd_price - cd_sf; + var yll = (r3 * 0.01) / 12; + var t = Math.pow((1 + yll), cd_time); + cd_yg = Math.round((cd_bj * yll * (t / (t - 1))) * 10000) / 10000; + cd_all = Math.round((cd_sf + cd_yg * cd_time) * 10000) / 10000; + cd_more = Math.round((cd_all - cd_price) * 10000) / 10000; + jq('#topSf').text(cd_sf); + jq('#topYg').text(cd_yg * 10000); + jq('#topM').text(cd_time); + jq('#topPrice').text(cd_price); + jq('#topTotal').text(cd_all); + jq('#topMore').text(cd_more); + + } else { + } + ; + + }); +} + + +function gjjyz1(gjj_a) { + var cipt = jq('#gjj_price') + var gjj_a = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gjj_price = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gjj_price = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + gjj_price = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gjj_a; +} +function gjjyz2() { + var ctime = jq('#gjj_pop_list') + var clist = jq('#gjj_list_options'); + ctime.click(function() { + var js_yon = clist.hasClass('none'); + if (js_yon == true) { + clist.removeClass('none'); + } else { + clist.addClass('none'); + } + }); +} +function gjjmonth(gjjbb) { + var bthis = jq(gjjbb); + var js_reval = bthis.attr('reval'); + var jsshow = jq('#gjj_dktime'); + var jsli = jq('#gjj_list_options li a'); + var jsul = jq('#gjj_list_options'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjj_b2 = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + return gjj_b2; +} +function gjjyz3(gjj_c) { + var cnll = jq('#gjj_nll'); + var gjj_c = cnll.val(); + cnll.blur(function() { + var error_ts = jq(this).parent().parent().children('.js_error'); + var Cnll_val = cnll.val(); + var Tnll_val = jq.trim(Cnll_val); + if (Tnll_val == '') { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gjj_nll = false; + } else if (Tnll_val.length > 0) { + if (!isNaN(Tnll_val)) { + cnll.addClass('success_ts'); + error_ts.addClass('none'); + gjj_nll = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个年利率的数字'); + cnll.addClass('error_ts'); + gjj_nll = false; + } + } + }); + cnll.focus(function() { + cnll.removeClass('success_ts'); + cnll.removeClass('error_ts'); + }); + return gjj_c; +} +function gjjyz4(gjj_d) { + var cipt = jq('#gjj_pmdj') + var gjj_d = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gjj_pmdj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gjj_pmdj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + gjj_pmdj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gjj_d; +} +function gjjyz5(gjj_e) { + var cipt = jq('#gjj_mj') + var gjj_e = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gjj_mj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gjj_mj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + gjj_mj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gjj_e; +} +function gjjyz6() { + var ctime = jq('#gjj_nature_list') + var clist = jq('#gjj_nature_options'); + ctime.click(function() { + var js_yon = clist.hasClass('none'); + if (js_yon == true) { + clist.removeClass('none'); + } else { + clist.addClass('none'); + } + }); +} +function gjjnature(gjjb6) { + var bthis = jq(gjjb6); + var js_reval = bthis.attr('reval'); + var jsshow = jq('#gjj_nature_show'); + var jsli = jq('#gjj_nature_options li a'); + var jsul = jq('#gjj_nature_options'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjj_b6 = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + return gjj_b6; +} +function gjjjs(gjj_a, gjj_c, gjj_d, gjj_e) { + var gjjtn = jq('#gjj_jsbtn'); + gjjtn.click(function() { + var js_total = jq('.js_total'); + var js_time = jq('.js_time'); + var js_Lmy = jq('#js_Lmy'); + var js_Rsy = jq('#js_Rsy'); + var js_Rdj = jq('#js_Rdj'); + var js_Lzlx = jq('#js_Lzlx'); + var js_Rzlx = jq('#js_Rzlx'); + var js_Lbxhj = jq('#js_Lbxhj'); + var js_Rbxhj = jq('#js_Rbxhj'); + + var r1 = gjjyz1(gjj_a); + var r2 = gjj_b2; + var r3 = gjjyz3(gjj_c); + var r4 = gjjyz4(gjj_d); + var r5 = gjjyz5(gjj_e) * 0.0001; + var r6 = gjj_b6; + if (jq('#jsstyle_0').attr('checked') == 'checked') { + if (gjj_price == true && gjj_nll == true && gjj_list == true) { + js_total = Math.round(r1 * 10000) / 10000; + js_time = Math.round(r2 * 10000) / 10000; + var yll = Math.round(((r3 * 0.01) / 12) * 10000) / 10000; + var t = Math.pow((1 + yll), js_time); + js_Lmy = Math.round((js_total * yll * (t / (t - 1))) * 10000) / 10000; + var js_Lzlx_00 = (js_time * js_Lmy) - js_total; + js_Lzlx = Math.round(js_Lzlx_00 * 10000) / 10000; + js_Lbxhj = js_Lzlx + Math.round(js_total); + var js_mbj = js_total / js_time; + var js_Rsy_00 = js_mbj + (js_total * yll); + js_Rsy = Math.round(js_Rsy_00 * 10000) / 10000; + var js_Rdj_00 = (js_mbj + (js_total - js_mbj) * yll) - (js_mbj + (js_total - js_mbj * 2) * yll); + js_Rdj = Math.round(js_Rdj_00 * 10000) / 10000; + var js_Rzlx_00 = js_total * yll * (js_time + 1) / 2; + js_Rzlx = Math.round(js_Rzlx_00 * 10000) / 10000; + js_Rbxhj = js_Rzlx + Math.round(js_total); + + jq('.js_total').text(js_total); + jq('.js_time').text(js_time); + jq('#js_Lmy').text(js_Lmy); + jq('#js_Lzlx').text(js_Lzlx); + jq('#js_Lbxhj').text(js_Lbxhj); + jq('#js_Rsy').text(js_Rsy); + jq('#js_Rdj').text(js_Rdj); + jq('#js_Rzlx').text(js_Rzlx); + jq('#js_Rbxhj').text(js_Rbxhj); + } + } + if (jq('#jsstyle_1').attr('checked') == 'checked') { + if (gjj_pmdj == true && gjj_mj == true && gjj_nll == true) { + var js_fjzj = Math.round(r4 * r5 * 10000) / 10000; + var bx = 0; + if (r6 == 1) { + bx = 0.7; //alert('1111'); + } else if (r6 == 2) { + bx = 0.4; //alert('2222'); + } + var dz = Math.round(js_fjzj * bx * 10000) / 10000; + js_total = Math.round(dz * 10000) / 10000; + js_time = Math.round(r2 * 10000) / 10000; + var yll = Math.round(((r3 * 0.01) / 12) * 10000) / 10000; + var t = Math.pow((1 + yll), js_time); + js_Lmy = Math.round((js_total * yll * (t / (t - 1))) * 10000) / 10000; + var js_Lzlx_00 = (js_time * js_Lmy) - js_total; + js_Lzlx = Math.round(js_Lzlx_00 * 10000) / 10000; + js_Lbxhj = js_Lzlx + Math.round(js_total); + var js_mbj = js_total / js_time; + var js_Rsy_00 = js_mbj + (js_total * yll); + js_Rsy = Math.round(js_Rsy_00 * 10000) / 10000; + var js_Rdj_00 = (js_mbj + (js_total - js_mbj) * yll) - (js_mbj + (js_total - js_mbj * 2) * yll); + js_Rdj = Math.round(js_Rdj_00 * 10000) / 10000; + var js_Rzlx_00 = js_total * yll * (js_time + 1) / 2; + js_Rzlx = Math.round(js_Rzlx_00 * 10000) / 10000; + js_Rbxhj = js_Rzlx + Math.round(js_total); + + jq('.js_total').text(js_total); + jq('.js_time').text(js_time); + jq('#js_Lmy').text(js_Lmy); + jq('#js_Lzlx').text(js_Lzlx); + jq('#js_Lbxhj').text(js_Lbxhj); + jq('#js_Rsy').text(js_Rsy); + jq('#js_Rdj').text(js_Rdj); + jq('#js_Rzlx').text(js_Rzlx); + jq('#js_Rbxhj').text(js_Rbxhj); + } + } + }); +} + + + +function zhdkyz1() { + var ctime = jq('#zhdk_pop_list') + var clist = jq('#zhdk_list_options'); + ctime.click(function() { + var js_yon = clist.hasClass('none'); + if (js_yon == true) { + clist.removeClass('none'); + } else { + clist.addClass('none'); + } + }); +} +function zhdkmonth(zhdkbb) { + var bthis = jq(zhdkbb); + var js_reval = bthis.attr('reval'); + var jsshow = jq('#zhdk_dktime'); + var jsli = jq('#zhdk_list_options li a'); + var jsul = jq('#zhdk_list_options'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + zhdk_b2 = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + return zhdk_b2; +} +function zhdkyz2(zhdk_a) { + var cipt = jq('#zhdk_gjjprice') + var zhdk_a = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + zhdk_gjjprice = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + zhdk_gjjprice = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + zhdk_gjjprice = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return zhdk_a; +} +function zhdkyz3(zhdk_b) { + var cipt = jq('#zhdk_gjjll') + var zhdk_b = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + zhdk_gjjll = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + zhdk_gjjll = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + zhdk_gjjll = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return zhdk_b; +} +function zhdkyz4(zhdk_c) { + var cipt = jq('#zhdk_sdprice') + var zhdk_c = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + zhdk_sdprice = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + zhdk_sdprice = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + zhdk_sdprice = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return zhdk_c; +} +function zhdkyz5(zhdk_d) { + var cipt = jq('#zhdk_sdll') + var zhdk_d = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + zhdk_sdll = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + zhdk_sdll = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + zhdk_sdll = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return zhdk_d; +} +function zhdkjs(zhdk_a, zhdk_b, zhdk_c, zhdk_d) { + var zhdktn = jq('#zhdk_jsbtn'); + zhdktn.click(function() { + var js_total = jq('.js_total'); + var js_time = jq('.js_time'); + var js_Lmy = jq('#js_Lmy'); + var js_Rsy = jq('#js_Rsy'); + var js_Rdj = jq('#js_Rdj'); + var js_Lzlx = jq('#js_Lzlx'); + var js_Rzlx = jq('#js_Rzlx'); + var js_Lbxhj = jq('#js_Lbxhj'); + var js_Rbxhj = jq('#js_Rbxhj'); + + var r0 = zhdk_b2; + var r1 = zhdkyz2(zhdk_a); + var r2 = zhdkyz3(zhdk_b); + var r3 = zhdkyz4(zhdk_c); + var r4 = zhdkyz5(zhdk_d); + + if (zhdk_gjjprice == true && zhdk_gjjll == true && zhdk_sdprice == true && zhdk_sdll == true) { + + var js_total_01 = Math.round(r1 * 10000) / 10000; + js_time = Math.round(r0 * 10000) / 10000; + var yll_01 = Math.round(((r2 * 0.01) / 12) * 10000) / 10000; + var t_01 = Math.pow((1 + yll_01), js_time); + var js_Lmy_01 = Math.round((js_total_01 * yll_01 * (t_01 / (t_01 - 1))) * 10000) / 10000; + var js_Lzlx_00_01 = (js_time * js_Lmy_01) - js_total_01; + var js_Lzlx_01 = Math.round(js_Lzlx_00_01 * 10000) / 10000; + var js_Lbxhj_01 = js_Lzlx_01 + Math.round(js_total_01); + var js_mbj_01 = js_total_01 / js_time; + var js_Rsy_00_01 = js_mbj_01 + (js_total_01 * yll_01); + var js_Rsy_01 = Math.round(js_Rsy_00_01 * 10000) / 10000; + var js_Rdj_00_01 = (js_mbj_01 + (js_total_01 - js_mbj_01) * yll_01) - (js_mbj_01 + (js_total_01 - js_mbj_01 * 2) * yll_01); + var js_Rdj_01 = Math.round(js_Rdj_00_01 * 10000) / 10000; + var js_Rzlx_00_01 = js_total_01 * yll_01 * (js_time + 1) / 2; + var js_Rzlx_01 = Math.round(js_Rzlx_00_01 * 10000) / 10000; + var js_Rbxhj_01 = js_Rzlx_01 + Math.round(js_total_01); + + + + var js_total_02 = Math.round(r3 * 10000) / 10000; + var yll_02 = Math.round(((r4 * 0.01) / 12) * 10000) / 10000; + var t_02 = Math.pow((1 + yll_02), js_time); + var js_Lmy_02 = Math.round((js_total_01 * yll_02 * (t_02 / (t_02 - 1))) * 10000) / 10000; + var js_Lzlx_00_02 = (js_time * js_Lmy_02) - js_total_02; + var js_Lzlx_02 = Math.round(js_Lzlx_00_02 * 10000) / 10000; + var js_Lbxhj_02 = js_Lzlx_02 + Math.round(js_total_02); + var js_mbj_02 = js_total_02 / js_time; + var js_Rsy_00_02 = js_mbj_02 + (js_total_02 * yll_02); + var js_Rsy_02 = Math.round(js_Rsy_00_02 * 10000) / 10000; + var js_Rdj_00_02 = (js_mbj_02 + (js_total_02 - js_mbj_02) * yll_02) - (js_mbj_02 + (js_total_02 - js_mbj_02 * 2) * yll_02); + var js_Rdj_02 = Math.round(js_Rdj_00_02 * 10000) / 10000; + var js_Rzlx_00_02 = js_total_02 * yll_02 * (js_time + 1) / 2; + var js_Rzlx_02 = Math.round(js_Rzlx_00_02 * 10000) / 10000; + var js_Rbxhj_02 = js_Rzlx_02 + Math.round(js_total_02); + + + js_total = js_total_01 + js_total_02; + js_Lmy = js_Lmy_01 + js_Lmy_02; + js_Lzlx = js_Lzlx_01 + js_Lzlx_02; + js_Lbxhj = js_Lbxhj_01 + js_Lbxhj_02; + js_Rsy = js_Rsy_01 + js_Rsy_02; + js_Rdj = (js_Rdj_01 + js_Rdj_02) * 10000 / 10000; + js_Rzlx = js_Rzlx_01 + js_Rzlx_02; + js_Rbxhj = js_Rbxhj_01 + js_Rbxhj_02; + + jq('.js_total').text(js_total); + jq('.js_time').text(js_time); + jq('#js_Lmy').text(js_Lmy); + jq('#js_Lzlx').text(js_Lzlx); + jq('#js_Lbxhj').text(js_Lbxhj); + jq('#js_Rsy').text(js_Rsy); + jq('#js_Rdj').text(js_Rdj); + jq('#js_Rzlx').text(js_Rzlx); + jq('#js_Rbxhj').text(js_Rbxhj); + } + }); +} + + + +function esfdyz1(esfd_a) { + var cipt = jq('#efd_mj') + var esfd_a = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + efd_mj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + efd_mj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + efd_mj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return esfd_a; +} + +function esfdyz2(esfd_b) { + var cipt = jq('#efd_zj') + var esfd_b = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = jq.trim(Cprice_val); + var error_ts = jq(this).parent().parent().children('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + efd_zj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + efd_zj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('少年,这不是一个数字'); + cipt.addClass('error_ts'); + efd_zj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return esfd_b; +} + +function esfdjs(esfd_a, esfd_b) { + var efdbtn = jq('#efd_jsbtn'); + efdbtn.click(function() { + var js_hj01 = jq('#js_hj01'); + var js_qs01 = jq('#js_qs01'); + var js_yys01 = jq('#js_yys01'); + var js_cjs01 = jq('#js_cjs01'); + var js_jyfjs01 = jq('#js_jyfjs01'); + var js_gs01 = jq('#js_gs01'); + var js_yhs01 = jq('#js_yhs01'); + + var r1 = esfdyz1(esfd_a); + var r2 = esfdyz2(esfd_b); + + if (efd_mj == true && efd_zj == true) { + if (jq('#jsfwxz_0').attr('checked') == 'checked') { + if (r1 < 90) { + js_qs01 = Math.round(r2 * 0.01 * 10000 * 10000) / 10000; + } + else { + js_qs01 = Math.round(r2 * 0.015 * 10000 * 10000) / 10000; + } + } else if (jq('#jsfwxz_1').attr('checked') == 'checked') { + js_qs01 = Math.round(r2 * 0.03 * 10000 * 10000) / 10000; + } + if (jq('#jshas5_0').attr('checked') == 'checked') { + js_yys01 = 0; + js_cjs01 = 0; + js_jyfjs01 = 0; + js_gs01 = 0; + js_yhs01 = 0; + } + if (jq('#jshas5_1').attr('checked') == 'checked') { + js_yys01 = Math.round(r2 * 0.0555 * 10000 * 10000) / 10000; + js_cjs01 = Math.round(js_yys01 * 0.07 * 100000) / 100000; + js_jyfjs01 = Math.round(js_yys01 * 0.03 * 100000) / 100000; + js_gs01 = Math.round(r2 * 0.01 * 10000 * 10000) / 10000; + js_yhs01 = 0; + } + js_hj01 = js_qs01 + js_yys01 + js_cjs01 + js_jyfjs01 + js_gs01; + jq('#js_hj01').text(js_hj01); + jq('#js_qs01').text(js_qs01); + jq('#js_yys01').text(js_yys01); + jq('#js_cjs01').text(js_cjs01); + jq('#js_jyfjs01').text(js_jyfjs01); + jq('#js_gs01').text(js_gs01); + jq('#js_yhs01').text(js_yhs01); + } + + }); } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/list.css b/source/plugin/dzapp_haodai/images/list.css index b5747cd..1bf739b 100644 --- a/source/plugin/dzapp_haodai/images/list.css +++ b/source/plugin/dzapp_haodai/images/list.css @@ -1,126 +1,126 @@ -/**/ -*{margin: 0; padding: 0;} -a{text-decoration: none;} -ul{list-style: none;} -img{ border: none;} -.left{ float: left;} -.right{float: right;} -body,html{width: 100%;} -.clearfix:after{content: "."; display: block; height: 0; clear: both; overflow: hidden; } -.clearfix{zoom:1;} - -.wrapper{width: 960px; margin: 0 auto;} -body{ font-family: "Microsoft Yahei"; color: #666666;} -#ct{ margin:8px 0;} - - -/*part1*/ -.part1{width: 660px; border: 1px solid #dddddd;font-size: 14px;color: #666666; font-size: 14px;color: #666666; background: #fff;} -.head{ width: 615px; border-bottom:1px solid #dddddd; margin-bottom: 20px; overflow: hidden; background-color: #f9f9f9; padding: 15px 25px 20px 20px;} -.part1 ul li.one{padding: 0 5px; color: #cccccc;} -.part1 ul li a{color: #0079c1;} - -h1{text-align: center; color: #000000; line-height: 60px; } -.bigtitle{ font-size:24px; text-align:center;} -.part1 .lai{text-align: center; color: #999999; } -/*fen*/ -.fen{ width:250px; margin: 0 auto; } -.fen ul li{ float: left; margin-right: 5px; } -.fen .little{ line-height: 23px;} - -/**/ -.wen{ margin-top: 30px; padding-left: 25px; padding-right: 30px; color: #666666; font-size:14px; line-height:22px; text-indent:2em; } -.wen p{ margin-bottom:25px; line-height:22px;} -.yuan{color: #000000; text-align:left; margin-bottom:10px; margin-left:20px;} -span{ color: #666666; } -span.min{color: #000000; font-weight: normal; line-height:23px;} - -.part2{width: 282px; border: 1px solid #dddddd;background: #fff;} -.head1{height: 42px; line-height:42px; border-bottom: 1px solid #dddddd; margin-bottom: 15px; background-color: #f9f9f9; font-weight: bold;} -.head1 li{ padding-left: 14px; padding-right: 14px; } -.head1 li.xun{font-size: 14px; color: #333333;} -.head1 li.more{font-size: 12px;} -.head1 li.more a{ color:#e2d3db;} - - -.main{ font-size: 12px; text-indent: 17px; padding-left:15px; padding-right:5px; padding-bottom:15px;} -.main li{ background:url(icon.png) no-repeat 5px 9px; width:250px; height:24px; overflow:hidden; } -.main li a{color: #999999; font-size:12px; line-height:24px; } -.main li a:hover{text-decoration:underline;} - -/***********artlist_left**************/ -.artlist_left{ border:1px solid #e9e9e9; width:660px; float:left; padding-bottom:20px;} -.artlist_left_head{ height:40px; line-height:40px; overflow:hidden; background-color:#f8f8f8; padding-left:20px;} -.artlist_left_head li{ float:left; color:#999798;} -.artlist_left_head a{ color:#0078c1;} -.artlist_left_head_sep{ padding:0 10px;} -.artlist_left_content{ padding:10px 18px 18px 20px;} -.artlist_left_content ul{ border-bottom:1px solid #e9e9e9; padding-bottom:15px; } -.artlist_left_content_one{ padding-top:13px;} -.artlist_left_content_one a{ font-size:16px; font-weight:bold; color:#333; line-height:32px;} -.artlist_left_content_two{ font-size:12px; color:#999999; line-height:25px;} -.artlist_left_content_three{ text-indent:2em; font-size:12px; color:#656567; line-height:26px; } -.artlist_left_content a:hover{ text-decoration:underline;} -.page { display:block; height:28px; line-height:28px; text-align:center; padding-top:17px;} -.pageon { border: 1px solid #00457c; padding: 5px 5px; background: #00457c; color: #FFF; font-weight: bold; text-decoration: none; margin-right: 6px; cursor: pointer;} -.page a { font-size: 14px; font-family: Arial,"宋体";} -.pageoff,.page .nextpage { border: 1px solid #eeeeee; padding: 5px 5px; background: #FFF; color: #666; margin-right: 6px; text-decoration: none; cursor: pointer;} - -a{ text-decoration:none;} -.pagination { - margin: 10px; - list-style: none outside; - display:inline; - padding:10px; -} - -.pagination li { - padding: 5px 10px; - border: 1px solid #ddd; - display: inline-block; - *float: left; - background: #fff; - color: #888; - margin-right: 1px; - -webkit-box-shadow: 0px 1px 1px 0px rgba(180, 180, 180, 0.1); - box-shadow: 0px 1px 1px 0px rgba(180, 180, 180, 0.1); - -webkit-transition: all 0.1s ease-in-out; - -moz-transition: all 0.1s ease-in-out; - -o-transition: all 0.1s ease-in-out; - -ms-transition: all 0.1s ease-in-out; - transition: all 0.1s ease-in-out; -} -.pagination li a{ display:block;} -.ie7 .pagination li {margin-right: 5px;} - -li.current { - background: #eeeeee; - border: 1px solid #ccc; - color: #fff; -} - -.se{width:282px;height:44px; z-index:1;} -.sinp{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} -/*.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp1.jpg) no-repeat right;}*/ -.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} -.sinp2{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp2.jpg) no-repeat right;} -.selbtn{width:43px;height:42px;background:url(selbtn.png) no-repeat;float:right;border:none 0;outline:none;cursor:pointer;} -.sele{height:42px;border:1px solid #cccccc;background:#FFF;} -/*xiala*/ -.xiala{border:1px solid #c9c9cb;position:absolute;z-index:999; margin-top:-1px;} -.xiala li{display:block;height:27px;background:#ffffff;line-height:27px;z-index:999;} -.xiala .mo{background:#e7e7e7;} -.xiala li a{font-size:12px;color:#666;display:block;padding-left:11px;width:269px;text-decoration:none;z-index:999;} -.xiala li a:hover{background:#c4d4e1;} -.none{display:none;} -.mra{border-top:3px solid #00457c;} -.mrb{padding-left:14px;} -.mrb p{line-height:32px;color:#999;font-size:12px; margin-left:-20px;} -.mrb .se{width:248px;} -.mrb .sele{width:246px;} -.mrb .sinp{width:192px;} -.xiala{position:absolute; z-index:999;} -.xiala li{width:246px;} -.xiala li a{width:235px;} -.ssinp {display: block;width: 248px;margin-top:15px;height: 44px;background:url(cms/btn_bg.jpg);font-size: 14px;color: white;cursor: pointer;font-weight: bold;border:none;} +/**/ +*{margin: 0; padding: 0;} +a{text-decoration: none;} +ul{list-style: none;} +img{ border: none;} +.left{ float: left;} +.right{float: right;} +body,html{width: 100%;} +.clearfix:after{content: "."; display: block; height: 0; clear: both; overflow: hidden; } +.clearfix{zoom:1;} + +.wrapper{width: 960px; margin: 0 auto;} +body{ font-family: "Microsoft Yahei"; color: #666666;} +#ct{ margin:8px 0;} + + +/*part1*/ +.part1{width: 660px; border: 1px solid #dddddd;font-size: 14px;color: #666666; font-size: 14px;color: #666666; background: #fff;} +.head{ width: 615px; border-bottom:1px solid #dddddd; margin-bottom: 20px; overflow: hidden; background-color: #f9f9f9; padding: 15px 25px 20px 20px;} +.part1 ul li.one{padding: 0 5px; color: #cccccc;} +.part1 ul li a{color: #0079c1;} + +h1{text-align: center; color: #000000; line-height: 60px; } +.bigtitle{ font-size:24px; text-align:center;} +.part1 .lai{text-align: center; color: #999999; } +/*fen*/ +.fen{ width:250px; margin: 0 auto; } +.fen ul li{ float: left; margin-right: 5px; } +.fen .little{ line-height: 23px;} + +/**/ +.wen{ margin-top: 30px; padding-left: 25px; padding-right: 30px; color: #666666; font-size:14px; line-height:22px; text-indent:2em; } +.wen p{ margin-bottom:25px; line-height:22px;} +.yuan{color: #000000; text-align:left; margin-bottom:10px; margin-left:20px;} +span{ color: #666666; } +span.min{color: #000000; font-weight: normal; line-height:23px;} + +.part2{width: 282px; border: 1px solid #dddddd;background: #fff;} +.head1{height: 42px; line-height:42px; border-bottom: 1px solid #dddddd; margin-bottom: 15px; background-color: #f9f9f9; font-weight: bold;} +.head1 li{ padding-left: 14px; padding-right: 14px; } +.head1 li.xun{font-size: 14px; color: #333333;} +.head1 li.more{font-size: 12px;} +.head1 li.more a{ color:#e2d3db;} + + +.main{ font-size: 12px; text-indent: 17px; padding-left:15px; padding-right:5px; padding-bottom:15px;} +.main li{ background:url(icon.png) no-repeat 5px 9px; width:250px; height:24px; overflow:hidden; } +.main li a{color: #999999; font-size:12px; line-height:24px; } +.main li a:hover{text-decoration:underline;} + +/***********artlist_left**************/ +.artlist_left{ border:1px solid #e9e9e9; width:660px; float:left; padding-bottom:20px;} +.artlist_left_head{ height:40px; line-height:40px; overflow:hidden; background-color:#f8f8f8; padding-left:20px;} +.artlist_left_head li{ float:left; color:#999798;} +.artlist_left_head a{ color:#0078c1;} +.artlist_left_head_sep{ padding:0 10px;} +.artlist_left_content{ padding:10px 18px 18px 20px;} +.artlist_left_content ul{ border-bottom:1px solid #e9e9e9; padding-bottom:15px; } +.artlist_left_content_one{ padding-top:13px;} +.artlist_left_content_one a{ font-size:16px; font-weight:bold; color:#333; line-height:32px;} +.artlist_left_content_two{ font-size:12px; color:#999999; line-height:25px;} +.artlist_left_content_three{ text-indent:2em; font-size:12px; color:#656567; line-height:26px; } +.artlist_left_content a:hover{ text-decoration:underline;} +.page { display:block; height:28px; line-height:28px; text-align:center; padding-top:17px;} +.pageon { border: 1px solid #00457c; padding: 5px 5px; background: #00457c; color: #FFF; font-weight: bold; text-decoration: none; margin-right: 6px; cursor: pointer;} +.page a { font-size: 14px; font-family: Arial,"宋体";} +.pageoff,.page .nextpage { border: 1px solid #eeeeee; padding: 5px 5px; background: #FFF; color: #666; margin-right: 6px; text-decoration: none; cursor: pointer;} + +a{ text-decoration:none;} +.pagination { + margin: 10px; + list-style: none outside; + display:inline; + padding:10px; +} + +.pagination li { + padding: 5px 10px; + border: 1px solid #ddd; + display: inline-block; + *float: left; + background: #fff; + color: #888; + margin-right: 1px; + -webkit-box-shadow: 0px 1px 1px 0px rgba(180, 180, 180, 0.1); + box-shadow: 0px 1px 1px 0px rgba(180, 180, 180, 0.1); + -webkit-transition: all 0.1s ease-in-out; + -moz-transition: all 0.1s ease-in-out; + -o-transition: all 0.1s ease-in-out; + -ms-transition: all 0.1s ease-in-out; + transition: all 0.1s ease-in-out; +} +.pagination li a{ display:block;} +.ie7 .pagination li {margin-right: 5px;} + +li.current { + background: #eeeeee; + border: 1px solid #ccc; + color: #fff; +} + +.se{width:282px;height:44px; z-index:1;} +.sinp{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} +/*.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp1.jpg) no-repeat right;}*/ +.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} +.sinp2{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp2.jpg) no-repeat right;} +.selbtn{width:43px;height:42px;background:url(selbtn.png) no-repeat;float:right;border:none 0;outline:none;cursor:pointer;} +.sele{height:42px;border:1px solid #cccccc;background:#FFF;} +/*xiala*/ +.xiala{border:1px solid #c9c9cb;position:absolute;z-index:999; margin-top:-1px;} +.xiala li{display:block;height:27px;background:#ffffff;line-height:27px;z-index:999;} +.xiala .mo{background:#e7e7e7;} +.xiala li a{font-size:12px;color:#666;display:block;padding-left:11px;width:269px;text-decoration:none;z-index:999;} +.xiala li a:hover{background:#c4d4e1;} +.none{display:none;} +.mra{border-top:3px solid #00457c;} +.mrb{padding-left:14px;} +.mrb p{line-height:32px;color:#999;font-size:12px; margin-left:-20px;} +.mrb .se{width:248px;} +.mrb .sele{width:246px;} +.mrb .sinp{width:192px;} +.xiala{position:absolute; z-index:999;} +.xiala li{width:246px;} +.xiala li a{width:235px;} +.ssinp {display: block;width: 248px;margin-top:15px;height: 44px;background:url(cms/btn_bg.jpg);font-size: 14px;color: white;cursor: pointer;font-weight: bold;border:none;} .box{background:#FFF;} \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/public.css b/source/plugin/dzapp_haodai/images/public.css index b7d76a3..48e1508 100644 --- a/source/plugin/dzapp_haodai/images/public.css +++ b/source/plugin/dzapp_haodai/images/public.css @@ -1,161 +1,161 @@ -@charset "gb2312"; -/*Css Reset*/ -body,div,ul,li,a,p,span,form,input,table,tbody,tr,td,dl,dt,dd,h1,h2,h3,h4,h5,h6{margin:0;padding:0;} -img{border:none;} -input{outline:none;} -body{font-family:Arial,"Microsoft Yahei","Simsun";} -ul,li{list-style:none;} - -/*common*/ -.pl22{padding-left:22px;} -.pt21{padding-top:21px;} -.pt6{padding-top:6px;} -.pb9{padding-bottom:9px;} -.fl{float:left;} -.fr{float:right;} -.mt22{margin-top:22px;} -.mt19{margin-top:19px;} -.mt7{margin-top:7px;} -.box .mt7{margin-top:0px;} -.blue{color:#0079c1;} -.co3{color:#333;} -.co9{color:#999;} -.co6{color:#666;} -.ori{color:#ff6600;} -.bold{font-weight:bold;} -.cow{color:#FFF;} -.coc{color:#ccc;} - -/*header*/ -.header{width:100%;height:126px;background:#fdfdfd;border-bottom:1px solid #d0d0d0;z-index:50;} - -/*topline*/ -.topline{width:100%;height:44px;background:#000000;} -.topbar{width:942px;height:44px;line-height:44px;font-size:12px;padding:0px 11px;margin:0 auto;color:#cccccc;} -.tbul{float:right;} -.tbul li{float:left;} -.hy{float:left;height:44px;line-height:44px;} -.fg{width:20px;height:44px;color:#999;text-align:center;} -.jiaocheng a{color:#ff9900;text-decoration:none;} -.jiaocheng a:hover{text-decoration:underline;} -.kf{color:#ccc;} -.kf span{font-family:Arial, Helvetica, sans-serif;font-weight:bold;color:#FFF;} -.other a{color:#FFF;text-decoration:none;} -.other a:hover{text-decoration:underline;} - -/*head*/ -.head{width:960px;height:82px;margin:0 auto;position:relative;z-index:100;} -h1{float:left;} -.city{padding-left:20px;height:82px;float:left; _width: 100px;} -.cp1{margin:25px 0px 1px 0px;color:#333;border:1px solid #f3f3f3;background:#f8f8f8;font-size:12px;display:block;height:19px;width:98%; text-align: center;line-height:19px;} -.cp1 a{padding:0px 18px 0px 13px;cursor:pointer;position:relative; font-size: 14px; color:#0079c1; font-weight: bold;} -.xij{position:absolute;top:0px;right:6px;} -.cp1 span{line-height:16px;} -.cp2{color:#999;font-size:12px;cursor:pointer; text-align: center;} -.cp2 .ucity {color: #333;} -.nav{float:right;} -.nav li{float:left;width:98px;height:41px;padding-top:23px;} -.nav li a{font-size:14px;text-decoration:none;display:block;width:88px;height:41px;text-align:center;line-height:36px;color:#333;} -.nav .sel a{color:#333;background:url(nav_bg.png) no-repeat;} - -/*bottom*/ -.bottom{width:100%;background:#f5f5f5;} -/*foot*/ -.foot{width:960px;height:227px;margin:0 auto;} -.friends{width:960px;padding-top:22px;border-bottom:1px solid #d9d9d9;float:left;padding-bottom:10px;} -.friends li{float:left;font-size:12px;line-height:20px;} -.fri{padding-right:12px;} -.fri a{color:#ccc;text-decoration:none;} -.fri a:hover{text-decoration:underline;} -.ftit{width:60px;color:#999;} -.footp1{text-align:center;display:block;height:46px;border-top:1px solid #f6f6f6;color:#999;font-size:12px;line-height:42px;} -.footp2{text-align:center;display:block;height:24px;font-size:12px;color:#666;} -.footp2 a{text-decoration:none;color:#666;} -.footp2 a:hover{text-decoration:underline;} -.footp2 span{color:#ccc;padding:0px 4px;} -.footp3{text-align:center;display:block;height:33px;font-size:12px;color:#999;font-family:Arial,"Simsun";} -.copy{width:130px;height:26px;background:url(copy.png) no-repeat;margin:0 auto;} -/*box*/ -.box{background:#FFF;border:1px solid #e9e9e9;} -.clear{clear:both;} -.b3ul{display:block;width:920px;padding-left:15px;padding-top:10px;float:left;} -.b3ul li{float:left;width:184px;height:24px;line-height:24px;} -.b3ul li a{font-size:12px;color:#999;text-decoration:none;} -.b3ul li a:hover{text-decoration:underline;} -h3{font-size:14px;color:#333;display:block;height:40px;border-bottom:1px solid #e9e9e9;line-height:41px;padding-left:14px;background:#f8f8f8;} -.bthree{width:960px;margin-left:auto;margin-right:auto;overflow:hidden;padding-bottom:10px;clear:both;} -h4 {font-size: 14px;color: #333;display: block;height: 41px;border-bottom: 1px solid #E9E9E9;line-height: 41px;background: #F8F8F8;} -.hotcity{display:block;width:118px;height:42px;background:#FFF;text-align:center;cursor:pointer;} -.hotdaikuan{width:110px;border-left:1px solid #e9e9e9;text-align:center;cursor:pointer;} -.b4ul{display:block;width:940px;padding:10px 0px 0px 14px;float:left; } -.b4ul li{float:left;width:134px;line-height:24px;} -.b4ul li a{font-size:12px;color:#999;text-decoration:none;} -.b4ul li a:hover{text-decoration:underline;} -.se{width:282px;height:44px; z-index:1;} -.sinp{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} -/*.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp1.jpg) no-repeat right;}*/ -.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} -.sinp2{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp2.jpg) no-repeat right;} -.selbtn{width:43px;height:42px;background:url(selbtn.png) no-repeat;float:right;border:none 0;outline:none;cursor:pointer;} -.sele{height:42px;border:1px solid #cccccc;background:#FFF;} -/*xiala*/ -.xiala{border:1px solid #c9c9cb;position:absolute;z-index:999; margin-top:-1px;} -.xiala li{display:block;height:27px;background:#ffffff;line-height:27px;z-index:999;} -.xiala .mo{background:#e7e7e7;} -.xiala li a{font-size:12px;color:#666;display:block;padding-left:11px;width:269px;text-decoration:none;z-index:999;} -.xiala li a:hover{background:#c4d4e1;} -.none{display:none;} -.ctxi{width:400px;padding:5px 10px;border:#f2f2f2 1px solid;position:absolute;top:43px;left:108px;background:#FFF;z-index:9999;font-size: 12px;line-height: 26px;} -.ctp1{height:46px;border-bottom:1px dashed #eaeaea;line-height:46px;display:block;width:376px;margin:0 auto;} -.ctxi dl{display:block;margin:0 auto;padding:6px 0;width:386px;overflow:hidden;zoom:1} -.ctxi dt{color:#666;float:left;width:64px;} -.ctxi dd{float:left;margin:0px;padding:0px;width:322px;color:#666;} -.ctxi dd span{padding-right:12px;color:#000;} -.ctxi dd a{color:#0079c1;text-decoration:none;padding-right:8px;display: block;float: left;} -.ctxi .last{border-bottom:1px solid #FFF;} -.cp1 a{text-decoration:none;} -.cp2 a{text-decoration:none;color:#ccc;} -.youl{border-top:1px solid #D0D0D0;background: whiteSmoke;} -.w960{width:960px;margin:0 auto;overflow:hidden;} -.sel{color:#00457c;font-weight:bold;background:url(jiao2_bg.png) no-repeat center bottom;} -.more:hover { text-decoration: underline;} -.more { color: #ccc; font-size: 12px; padding-right: 11px; text-decoration: none; font-weight: normal;} -/*.fr { - float: right; -}*/ -/***new****/ -.block-sub-title{color:#888888;font-size:12px;line-height:22px;margin-top:15px;padding-left:10px;} -.a-m-l:after,.clearfix:after{clear:both;content:".";display:block;height:0;overflow:hidden;visibility:hidden;} -.a-m-l,.clearfix{display:inline-block;} -* html .clearfix,* html .a-m-l{} -.a-m-l,.clearfix{display:block;} -.block-r-ul{padding:0 10px;} -.block-r-ul li{float:left;width:80px;} -.block-r-ul li a{color:#007dc8; font-size: 12px; text-decoration: none;} -.block-r-ul li a:hover{color:#008fd9;text-decoration:underline;} -.kf a{text-decoration:none;} -.kf a:hover{text-decoration:none;} -/*go to top*/ -.backToTop {display: none; width:30px; height:30px; line-height: 1.2; background:url(to_top.jpg) center center no-repeat;color: #fff;font-size: 12px;text-align: center;position: fixed;_position: absolute; right:10px; bottom:10px;_bottom: "auto";cursor: pointer; opacity: 1;filter: Alpha(opacity=100);} -.guanggao{overflow:hidden;margin-bottom:20px; width: 664px; float:left;} -.big{width:662px;float:left;} -.small{width:282px;float:right;} -.guanggao img{border:1px solid #e9e9e9;} -.dw_yuan {display: block; border-left: 1px solid #ccc; float: right; background: #fbfbfb; width: 42px; height: 42px; line-height: 42px; text-align: center; font-size: 14px; color: #666;} -h3 .xeight{font-size: 14px;color: #333;} -h3 a{text-decoration:none;} -h3 a:hover{text-decoration:underline;} -.bt{border-top: 1px solid #D0D0D0;} -.kf .w_time{padding: 0px 5px; font-weight: normal; font-family:Arial, Helvetica, sans-serif;color: #ccc;} -.danwei{color: #ccc;position: absolute; right: 55px; top: 10px;} -.danwei_1{color: #666;position: absolute; right: 55px; top: 10px;} -.clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden; overflow: hidden; } -.clearfix { display:inline-block; } -.clearfix {display:block;} -.pop{width:960px; background:#eee;border:1px solid #ccc} -.pop_head{position:relative;height:20px;background:#ccc} -.pop_head a{position:absolute;right:8px;line-height:20px;color:#000;text-decoration:none} -.pop_head a:hover{color:#f60;text-decoration:none} -.pop_body ul{margin: 0; padding: 0; list-style:none;} -.pop_body li{ float: left; padding: 10px 15px; width: 120px;} +@charset "gb2312"; +/*Css Reset*/ +body,div,ul,li,a,p,span,form,input,table,tbody,tr,td,dl,dt,dd,h1,h2,h3,h4,h5,h6{margin:0;padding:0;} +img{border:none;} +input{outline:none;} +body{font-family:Arial,"Microsoft Yahei","Simsun";} +ul,li{list-style:none;} + +/*common*/ +.pl22{padding-left:22px;} +.pt21{padding-top:21px;} +.pt6{padding-top:6px;} +.pb9{padding-bottom:9px;} +.fl{float:left;} +.fr{float:right;} +.mt22{margin-top:22px;} +.mt19{margin-top:19px;} +.mt7{margin-top:7px;} +.box .mt7{margin-top:0px;} +.blue{color:#0079c1;} +.co3{color:#333;} +.co9{color:#999;} +.co6{color:#666;} +.ori{color:#ff6600;} +.bold{font-weight:bold;} +.cow{color:#FFF;} +.coc{color:#ccc;} + +/*header*/ +.header{width:100%;height:126px;background:#fdfdfd;border-bottom:1px solid #d0d0d0;z-index:50;} + +/*topline*/ +.topline{width:100%;height:44px;background:#000000;} +.topbar{width:942px;height:44px;line-height:44px;font-size:12px;padding:0px 11px;margin:0 auto;color:#cccccc;} +.tbul{float:right;} +.tbul li{float:left;} +.hy{float:left;height:44px;line-height:44px;} +.fg{width:20px;height:44px;color:#999;text-align:center;} +.jiaocheng a{color:#ff9900;text-decoration:none;} +.jiaocheng a:hover{text-decoration:underline;} +.kf{color:#ccc;} +.kf span{font-family:Arial, Helvetica, sans-serif;font-weight:bold;color:#FFF;} +.other a{color:#FFF;text-decoration:none;} +.other a:hover{text-decoration:underline;} + +/*head*/ +.head{width:960px;height:82px;margin:0 auto;position:relative;z-index:100;} +h1{float:left;} +.city{padding-left:20px;height:82px;float:left; _width: 100px;} +.cp1{margin:25px 0px 1px 0px;color:#333;border:1px solid #f3f3f3;background:#f8f8f8;font-size:12px;display:block;height:19px;width:98%; text-align: center;line-height:19px;} +.cp1 a{padding:0px 18px 0px 13px;cursor:pointer;position:relative; font-size: 14px; color:#0079c1; font-weight: bold;} +.xij{position:absolute;top:0px;right:6px;} +.cp1 span{line-height:16px;} +.cp2{color:#999;font-size:12px;cursor:pointer; text-align: center;} +.cp2 .ucity {color: #333;} +.nav{float:right;} +.nav li{float:left;width:98px;height:41px;padding-top:23px;} +.nav li a{font-size:14px;text-decoration:none;display:block;width:88px;height:41px;text-align:center;line-height:36px;color:#333;} +.nav .sel a{color:#333;background:url(nav_bg.png) no-repeat;} + +/*bottom*/ +.bottom{width:100%;background:#f5f5f5;} +/*foot*/ +.foot{width:960px;height:227px;margin:0 auto;} +.friends{width:960px;padding-top:22px;border-bottom:1px solid #d9d9d9;float:left;padding-bottom:10px;} +.friends li{float:left;font-size:12px;line-height:20px;} +.fri{padding-right:12px;} +.fri a{color:#ccc;text-decoration:none;} +.fri a:hover{text-decoration:underline;} +.ftit{width:60px;color:#999;} +.footp1{text-align:center;display:block;height:46px;border-top:1px solid #f6f6f6;color:#999;font-size:12px;line-height:42px;} +.footp2{text-align:center;display:block;height:24px;font-size:12px;color:#666;} +.footp2 a{text-decoration:none;color:#666;} +.footp2 a:hover{text-decoration:underline;} +.footp2 span{color:#ccc;padding:0px 4px;} +.footp3{text-align:center;display:block;height:33px;font-size:12px;color:#999;font-family:Arial,"Simsun";} +.copy{width:130px;height:26px;background:url(copy.png) no-repeat;margin:0 auto;} +/*box*/ +.box{background:#FFF;border:1px solid #e9e9e9;} +.clear{clear:both;} +.b3ul{display:block;width:920px;padding-left:15px;padding-top:10px;float:left;} +.b3ul li{float:left;width:184px;height:24px;line-height:24px;} +.b3ul li a{font-size:12px;color:#999;text-decoration:none;} +.b3ul li a:hover{text-decoration:underline;} +h3{font-size:14px;color:#333;display:block;height:40px;border-bottom:1px solid #e9e9e9;line-height:41px;padding-left:14px;background:#f8f8f8;} +.bthree{width:960px;margin-left:auto;margin-right:auto;overflow:hidden;padding-bottom:10px;clear:both;} +h4 {font-size: 14px;color: #333;display: block;height: 41px;border-bottom: 1px solid #E9E9E9;line-height: 41px;background: #F8F8F8;} +.hotcity{display:block;width:118px;height:42px;background:#FFF;text-align:center;cursor:pointer;} +.hotdaikuan{width:110px;border-left:1px solid #e9e9e9;text-align:center;cursor:pointer;} +.b4ul{display:block;width:940px;padding:10px 0px 0px 14px;float:left; } +.b4ul li{float:left;width:134px;line-height:24px;} +.b4ul li a{font-size:12px;color:#999;text-decoration:none;} +.b4ul li a:hover{text-decoration:underline;} +.se{width:282px;height:44px; z-index:1;} +.sinp{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} +/*.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp1.jpg) no-repeat right;}*/ +.sinp1{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;} +.sinp2{width:225px;height:14px;float:left;outline:none;border:none 0;font-size:12px;color:#666;padding:14px 0px 14px 11px;background:url(sinp2.jpg) no-repeat right;} +.selbtn{width:43px;height:42px;background:url(selbtn.png) no-repeat;float:right;border:none 0;outline:none;cursor:pointer;} +.sele{height:42px;border:1px solid #cccccc;background:#FFF;} +/*xiala*/ +.xiala{border:1px solid #c9c9cb;position:absolute;z-index:999; margin-top:-1px;} +.xiala li{display:block;height:27px;background:#ffffff;line-height:27px;z-index:999;} +.xiala .mo{background:#e7e7e7;} +.xiala li a{font-size:12px;color:#666;display:block;padding-left:11px;width:269px;text-decoration:none;z-index:999;} +.xiala li a:hover{background:#c4d4e1;} +.none{display:none;} +.ctxi{width:400px;padding:5px 10px;border:#f2f2f2 1px solid;position:absolute;top:43px;left:108px;background:#FFF;z-index:9999;font-size: 12px;line-height: 26px;} +.ctp1{height:46px;border-bottom:1px dashed #eaeaea;line-height:46px;display:block;width:376px;margin:0 auto;} +.ctxi dl{display:block;margin:0 auto;padding:6px 0;width:386px;overflow:hidden;zoom:1} +.ctxi dt{color:#666;float:left;width:64px;} +.ctxi dd{float:left;margin:0px;padding:0px;width:322px;color:#666;} +.ctxi dd span{padding-right:12px;color:#000;} +.ctxi dd a{color:#0079c1;text-decoration:none;padding-right:8px;display: block;float: left;} +.ctxi .last{border-bottom:1px solid #FFF;} +.cp1 a{text-decoration:none;} +.cp2 a{text-decoration:none;color:#ccc;} +.youl{border-top:1px solid #D0D0D0;background: whiteSmoke;} +.w960{width:960px;margin:0 auto;overflow:hidden;} +.sel{color:#00457c;font-weight:bold;background:url(jiao2_bg.png) no-repeat center bottom;} +.more:hover { text-decoration: underline;} +.more { color: #ccc; font-size: 12px; padding-right: 11px; text-decoration: none; font-weight: normal;} +/*.fr { + float: right; +}*/ +/***new****/ +.block-sub-title{color:#888888;font-size:12px;line-height:22px;margin-top:15px;padding-left:10px;} +.a-m-l:after,.clearfix:after{clear:both;content:".";display:block;height:0;overflow:hidden;visibility:hidden;} +.a-m-l,.clearfix{display:inline-block;} +* html .clearfix,* html .a-m-l{} +.a-m-l,.clearfix{display:block;} +.block-r-ul{padding:0 10px;} +.block-r-ul li{float:left;width:80px;} +.block-r-ul li a{color:#007dc8; font-size: 12px; text-decoration: none;} +.block-r-ul li a:hover{color:#008fd9;text-decoration:underline;} +.kf a{text-decoration:none;} +.kf a:hover{text-decoration:none;} +/*go to top*/ +.backToTop {display: none; width:30px; height:30px; line-height: 1.2; background:url(to_top.jpg) center center no-repeat;color: #fff;font-size: 12px;text-align: center;position: fixed;_position: absolute; right:10px; bottom:10px;_bottom: "auto";cursor: pointer; opacity: 1;filter: Alpha(opacity=100);} +.guanggao{overflow:hidden;margin-bottom:20px; width: 664px; float:left;} +.big{width:662px;float:left;} +.small{width:282px;float:right;} +.guanggao img{border:1px solid #e9e9e9;} +.dw_yuan {display: block; border-left: 1px solid #ccc; float: right; background: #fbfbfb; width: 42px; height: 42px; line-height: 42px; text-align: center; font-size: 14px; color: #666;} +h3 .xeight{font-size: 14px;color: #333;} +h3 a{text-decoration:none;} +h3 a:hover{text-decoration:underline;} +.bt{border-top: 1px solid #D0D0D0;} +.kf .w_time{padding: 0px 5px; font-weight: normal; font-family:Arial, Helvetica, sans-serif;color: #ccc;} +.danwei{color: #ccc;position: absolute; right: 55px; top: 10px;} +.danwei_1{color: #666;position: absolute; right: 55px; top: 10px;} +.clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden; overflow: hidden; } +.clearfix { display:inline-block; } +.clearfix {display:block;} +.pop{width:960px; background:#eee;border:1px solid #ccc} +.pop_head{position:relative;height:20px;background:#ccc} +.pop_head a{position:absolute;right:8px;line-height:20px;color:#000;text-decoration:none} +.pop_head a:hover{color:#f60;text-decoration:none} +.pop_body ul{margin: 0; padding: 0; list-style:none;} +.pop_body li{ float: left; padding: 10px 15px; width: 120px;} .pop_body li a{ text-decoration: none; color:#999999; font-size: 12px;} \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/result.css b/source/plugin/dzapp_haodai/images/result.css index f7b304c..57012fe 100644 --- a/source/plugin/dzapp_haodai/images/result.css +++ b/source/plugin/dzapp_haodai/images/result.css @@ -1,139 +1,139 @@ -@charset "utf-8"; -/* CSS Documsent */ -body {background:#f9f9f9;} -.none {display:none;} -.jqtap { padding: 2px 0;} -.bold { font-weight: bold;font-size: 16px;} -/*main*/ -.main{width:100%;height:auto!important;} -.sfa a {color:#0079c1;} -.sfa a:hover {color:#f75700;} -.content{width:960px;margin:0 auto; padding-bottom:40px;} -.result_top ,.box ,.detail {border:1px solid #ddd; background:#fff;} -.result_top{height:60px; position:relative; z-index:20; width:918px; padding:0 20px; border-bottom:2px solid #f1f7fa;} -.box {padding:6px 0 10px 0; border-top:none;} -.heater_left { float:left; color: #333; font-size: 18px; font-weight: bold; height: 47px;line-height: 47px; padding-right: 4px;} -.heater_left span { color: #FF6600; font-size: 26px} -.heater_right {float:right;color: #333;height:50px; position:relative; margin-top:15px; width:595px;} -.text_dai ,.kuan_dai ,.sosu {height:29px; float:left;} -.text_dai {position:relative; margin-right:10px;line-height: 29px; font-size:14px;} -.kuan_dai {margin-right:10px; position:relative; width:146px;} -.wydk_dai {background:url(dfg_13.jpg) no-repeat scroll right top; height:27px; border: 1px solid #e5e5e5;width:144px; z-index: 3;} -.wydk_dai input {width:95px; border:none; float:left; margin-left:5px; border:0;} -.wydk_dai ,.danw ,.danw input ,.wydk_dai .geyue ,.wydk_dai .nian ,.geyue input ,.nian input {height:27px; line-height:27px;} -.danw {width:130px; background:url(sgnh_14.jpg) no-repeat scroll right top;} -.geyue{width:125px; background:url(rg_18.jpg) no-repeat scroll right top;} -.nian{width:125px; background:url(nian_18.jpg) no-repeat scroll right top;} -/*.wydk_xlk {position:relative;}*/ -.wydk_xiala {left:0px;position:absolute; width:144px; border:1px solid #e5e5e5; overflow-y:hidden; _overflow:hidden; height:180px; z-index:1000; border-top:none; top:28px; display:none;} -.wydk_xiala li {height:30px; width:144px; overflow:hidden; cursor:pointer; display:block;} -.wydk_xiala li a {padding-left:5px; background:#fff; display:block;color:#666;height:30px; line-height:30px; width:139px; text-decoration:none; font-size:12px;} -.wydk_xiala li a.mo {background:#e7e7e7;} -.wydk_xiala li a:hover {background:#c4d4e1; color:#000; text-decoration:none;} - - -.tiaojian{height:26px;border-bottom:1px dotted #f5f5f5;padding:7px 15px 7px 15px;background:#fff; margin-bottom:3px;} -.sx li{float:left;} -.sx1{width:120px;color:#333;font-size:12px; font-weight:bold;} -.sx2{margin-right:6px;font-size:12px;color:#666;border:1px solid #b8d5eb;height:15px;line-height:15px;padding:2px 24px 2px 5px;background:url(fgn.png) no-repeat right;cursor:pointer;} -.sx2:hover {background:url(red_tub.png) no-repeat right;} -.tiaojian span{float:right;font-size:12px;color:#999;cursor:pointer;} -.tiaojian span a { color:#666; text-decoration:none;} -.tiaojian span a:hover { text-decoration:underline; color:#666;} -.jgss {background:url("fgg_05.jpg") no-repeat; line-height:28px; border: 0 none; cursor: pointer; display: inline; float: left; height: 29px; margin-left: 15px; outline: medium none; width:104px; color:#FFF;} -.jgss:hover {color:yellow;} - -.jglis{padding-left:14px;display:block;width:944px;overflow:hidden;background:#fff;} -.jglis a{text-decoration:none;} -.jglis li{float:left;font-size:12px;line-height:34px;} -.jglistit{color:#999} -.jglis li.lis1:hover {color:#333;} -.lis1{padding-right:12px;cursor:pointer;} - -.detail {border:1px solid #ddd; margin-top:20px;width:960px;} -.deta { height:43px; border-bottom:1px solid #f1f1f1;line-height:43px; width:960px; float:left; z-index:20; position:relative; background:#f7f7f7;} -.deta_left {float:left; margin-top:7px;width:450px;} -.deta_left span { font-size:12px; margin-left:5px;} -ul.deta_right{ float:right; margin-right:20px; _margin-right:10px;} -ul.deta_right {border:1px solid #e9e9e9; height:26px; margin-top:7px; border-left:none;} -ul.deta_right li {float:left; height:26px; line-height:26px;border-left:1px solid #e9e9e9; width:60px;text-align:center; background:#fff;} -ul.deta_right li:hover {background:#f7f7f7;} -ul.deta_right li.dfh { background-color:#e9e9e9; color:#00457c;text-align:center;} -ul.deta_right li.dfh a {color:#00457c; padding:0; font-weight:bold; text-align:center;} -ul.deta_right li a { color:#000; font-size:12px; padding:0 10px; text-decoration:none; height:28px;} -ul.deta_right li a:hover { background:#e9e9e9; color:#00457c;} -ul.deta_right li a.arrt{ background:url(fb_05.jpg) no-repeat scroll right center ;height:28px; overflow: hidden; width:9px;} - -.matter { width:958px; float:left; z-index:10; position:relative;} -.ma_title {height:30px; margin-bottom:0px; border-bottom:1px dotted #e1e1e1; color:#999; line-height:30px;} -.ma_nr {padding:12px 0px;} -.cona01,.cona02,.cona03,.cona04,.cona05 ,.con01,.con02,.con03,.con04,.con05 {float:left; font-size:12px;} -.cona02 ,.con02 ,.cona03 ,.con03 {width:128px;} -.con01 ,.con02 ,.con03 ,.con05 {margin-top:11px;} -.cona04 ,.con04 {width:135px;} -.con04 {} -.con04 .jqtap {padding:0;} -.cona01 {width:220px; margin-left:15px; _margin-left:10px;} -.cona02 span,.cona03 span{ float:left;} -.wen { float:left; margin-top:7px; margin-left:5px;} -.wenhao {display:block; width:16px; height:16px; overflow:hidden;} -.ma_nr {border-bottom:1px dashed #f1f1f1;} -.ma_nr:hover {background:#f8f8f8;} -.con01 { width:238px;} -.con01 span {float:left; width:68px;} -.con01 span img {float:right;} -.con01 samp {float:left; margin-left:14px; font-size:12px; width:133px;} -.con01 samp p.co3 a {color:#333; text-decoration:none;} -.con01 samp p.co3 a:hover {color:#06C; text-decoration:underlines;} -.con01 samp p.co9 a {color:#999; text-decoration:none;} -.con01 samp p.co9 a:hover {color:#06C; text-decoration:underlines;} -.con01 samp p.Pstars span.hdstars {width:75px;} -.wen { float:left; margin-top:7px; margin-left:5px; position:relative;} -.ceng{width:355px;height:auto !important;/*height:227px;min-height:227px;*/position:absolute;top:9px;left:-143px;z-index:999; display:none;} -.cnr{border:1px solid #ccc;margin-top:6px;width:333px;height:auto !important;/*height:193px;min-height:193px;*/ font-weight: 200;background:#FFF;padding:10px;} -.sjiao{position:absolute;top:2px;left:163px;} -.cnr p{line-height:24px;font-size:12px;padding-left:15px;color:#999;} -.cnr .ctit{color:#333;font-weight:bold;background:url(point.png) no-repeat left 10px;} -.con05 {width:325px;_width:320px;} -.icon{display:block;height:50px;padding:10px 0px; float:left; width:210px;} -.icon li{float:left;width:70px;height:50px; text-align:center;} -.icon li a{display:block;width:58px;height:50px;background-repeat:no-repeat;background-position:0px 0px;} -.icon li a:hover{background-position:-58px 0px;} -.anniu {margin-right:15px;_margin-right:4px; background: url("ck.png") no-repeat; color: #fff; display: block; height: 25px; line-height: 25px; text-align: center;text-decoration: none; width: 75px; margin-top:24px; float:right;} -.anniu:hover{background:url(ck.png) no-repeat;opacity: 0.8;filter: alpha(opacity=80);} -.anniu a{ color:#FFF; text-decoration:none; text-align:center; width: 75px; margin-left:2px;} - -.Pstars { padding: 2px 0;position: relative; width:133px; height:10px;} -.stars_small, .stars_small em { height: 10px;} -.stars_small { background-position: 0 -20px; display: block; width: 75px;} -.hdstars {background: url(hdstars.png) no-repeat;} -.Pstars span.small_tc { background:#fff; border: 1px solid #bbb; color: #333; display: block;height: 36px; left: 80px; line-height: 18px; padding: 5px; position: absolute; text-align: center; top: -15px;width: 140px; z-index: 500;} - -.cnr .ctit { background: url("point.png") no-repeat scroll left 10px; color: #333; font-weight: bold;} - -.text_leix,.kuan_leix { float:left;} -.text_leix {position:relative; line-height: 20px; font-size:12px; color:#666; width:77px; padding-right:5px; text-align:right;} -.kuan_leix {margin-right:3px;} -.kuan_leix {background:url(dfg_13.jpg) no-repeat scroll right 3px #fff; height:25px; border: 1px solid #e5e5e5;width:118px; z-index: 300;position:relative;} -.kuan_leix input {width:96px; border:none; float:left; margin-left:5px} -.text_leix,.kuan_leix,.kuan_leix input,.wydk_leix {height:28px; line-height:28px;} -.wydk_leix {cursor:pointer; width:118px; overflow:hidden;} -.jglx_xl {} -.jglx_xiala {left:-1px; top:25px; border:1px solid #e5e5e5; z-index:2000; border-top:none; position:absolute; display:none;} -.jglx_xiala li {width:118px;height:25px; line-height:25px; cursor:pointer; display:block;} -.jglx_xiala li:hover {background:#c4d4e1;} -.jglx_xiala li a {padding-left:5px;background:#fff; display:block;color:#666; text-decoration:none; font-size:12px; width:113px;} -.jglx_xiala li a.mo {background:#e7e7e7;} -.jglx_xiala li a:hover {background:#c4d4e1; color:#000; text-decoration:none;} -.deta_left span {color:#666;} - -.page{display:block;height:28px;line-height:26px;text-align:center;padding-top:15px;/*20130520-17:42*/ margin:10px 0;} -.page a{font-size:14px;font-family:Arial,"瀹嬩綋";text-decoration:none;} -.page a:hover{text-decoration:none;} -.page .s1{text-decoration:none;color:#666;} -.pageon{border:1px solid #00457c;padding:3px 5px;background:#00457c;color:#FFF;font-weight:bold;text-decoration:none;margin-right:6px;cursor:pointer;} -.pageoff{border:1px solid #eee;padding:5px 5px;background:#FFF;color:#666;margin-right:6px;text-decoration:none;cursor:pointer;} -.pageoff:hover ,.nextpage:hover {border:1px solid #00457c;color:#00457c;} -.page .nextpage{border:1px solid #eee;background:#FFF;color:#666;padding:5px 8px;text-decoration:none;cursor:pointer;} -.page .gong{font-size:12px;color:#ccc;} +@charset "utf-8"; +/* CSS Documsent */ +body {background:#f9f9f9;} +.none {display:none;} +.jqtap { padding: 2px 0;} +.bold { font-weight: bold;font-size: 16px;} +/*main*/ +.main{width:100%;height:auto!important;} +.sfa a {color:#0079c1;} +.sfa a:hover {color:#f75700;} +.content{width:960px;margin:0 auto; padding-bottom:40px;} +.result_top ,.box ,.detail {border:1px solid #ddd; background:#fff;} +.result_top{height:60px; position:relative; z-index:20; width:918px; padding:0 20px; border-bottom:2px solid #f1f7fa;} +.box {padding:6px 0 10px 0; border-top:none;} +.heater_left { float:left; color: #333; font-size: 18px; font-weight: bold; height: 47px;line-height: 47px; padding-right: 4px;} +.heater_left span { color: #FF6600; font-size: 26px} +.heater_right {float:right;color: #333;height:50px; position:relative; margin-top:15px; width:595px;} +.text_dai ,.kuan_dai ,.sosu {height:29px; float:left;} +.text_dai {position:relative; margin-right:10px;line-height: 29px; font-size:14px;} +.kuan_dai {margin-right:10px; position:relative; width:146px;} +.wydk_dai {background:url(dfg_13.jpg) no-repeat scroll right top; height:27px; border: 1px solid #e5e5e5;width:144px; z-index: 3;} +.wydk_dai input {width:95px; border:none; float:left; margin-left:5px; border:0;} +.wydk_dai ,.danw ,.danw input ,.wydk_dai .geyue ,.wydk_dai .nian ,.geyue input ,.nian input {height:27px; line-height:27px;} +.danw {width:130px; background:url(sgnh_14.jpg) no-repeat scroll right top;} +.geyue{width:125px; background:url(rg_18.jpg) no-repeat scroll right top;} +.nian{width:125px; background:url(nian_18.jpg) no-repeat scroll right top;} +/*.wydk_xlk {position:relative;}*/ +.wydk_xiala {left:0px;position:absolute; width:144px; border:1px solid #e5e5e5; overflow-y:hidden; _overflow:hidden; height:180px; z-index:1000; border-top:none; top:28px; display:none;} +.wydk_xiala li {height:30px; width:144px; overflow:hidden; cursor:pointer; display:block;} +.wydk_xiala li a {padding-left:5px; background:#fff; display:block;color:#666;height:30px; line-height:30px; width:139px; text-decoration:none; font-size:12px;} +.wydk_xiala li a.mo {background:#e7e7e7;} +.wydk_xiala li a:hover {background:#c4d4e1; color:#000; text-decoration:none;} + + +.tiaojian{height:26px;border-bottom:1px dotted #f5f5f5;padding:7px 15px 7px 15px;background:#fff; margin-bottom:3px;} +.sx li{float:left;} +.sx1{width:120px;color:#333;font-size:12px; font-weight:bold;} +.sx2{margin-right:6px;font-size:12px;color:#666;border:1px solid #b8d5eb;height:15px;line-height:15px;padding:2px 24px 2px 5px;background:url(fgn.png) no-repeat right;cursor:pointer;} +.sx2:hover {background:url(red_tub.png) no-repeat right;} +.tiaojian span{float:right;font-size:12px;color:#999;cursor:pointer;} +.tiaojian span a { color:#666; text-decoration:none;} +.tiaojian span a:hover { text-decoration:underline; color:#666;} +.jgss {background:url("fgg_05.jpg") no-repeat; line-height:28px; border: 0 none; cursor: pointer; display: inline; float: left; height: 29px; margin-left: 15px; outline: medium none; width:104px; color:#FFF;} +.jgss:hover {color:yellow;} + +.jglis{padding-left:14px;display:block;width:944px;overflow:hidden;background:#fff;} +.jglis a{text-decoration:none;} +.jglis li{float:left;font-size:12px;line-height:34px;} +.jglistit{color:#999} +.jglis li.lis1:hover {color:#333;} +.lis1{padding-right:12px;cursor:pointer;} + +.detail {border:1px solid #ddd; margin-top:20px;width:960px;} +.deta { height:43px; border-bottom:1px solid #f1f1f1;line-height:43px; width:960px; float:left; z-index:20; position:relative; background:#f7f7f7;} +.deta_left {float:left; margin-top:7px;width:450px;} +.deta_left span { font-size:12px; margin-left:5px;} +ul.deta_right{ float:right; margin-right:20px; _margin-right:10px;} +ul.deta_right {border:1px solid #e9e9e9; height:26px; margin-top:7px; border-left:none;} +ul.deta_right li {float:left; height:26px; line-height:26px;border-left:1px solid #e9e9e9; width:60px;text-align:center; background:#fff;} +ul.deta_right li:hover {background:#f7f7f7;} +ul.deta_right li.dfh { background-color:#e9e9e9; color:#00457c;text-align:center;} +ul.deta_right li.dfh a {color:#00457c; padding:0; font-weight:bold; text-align:center;} +ul.deta_right li a { color:#000; font-size:12px; padding:0 10px; text-decoration:none; height:28px;} +ul.deta_right li a:hover { background:#e9e9e9; color:#00457c;} +ul.deta_right li a.arrt{ background:url(fb_05.jpg) no-repeat scroll right center ;height:28px; overflow: hidden; width:9px;} + +.matter { width:958px; float:left; z-index:10; position:relative;} +.ma_title {height:30px; margin-bottom:0px; border-bottom:1px dotted #e1e1e1; color:#999; line-height:30px;} +.ma_nr {padding:12px 0px;} +.cona01,.cona02,.cona03,.cona04,.cona05 ,.con01,.con02,.con03,.con04,.con05 {float:left; font-size:12px;} +.cona02 ,.con02 ,.cona03 ,.con03 {width:128px;} +.con01 ,.con02 ,.con03 ,.con05 {margin-top:11px;} +.cona04 ,.con04 {width:135px;} +.con04 {} +.con04 .jqtap {padding:0;} +.cona01 {width:220px; margin-left:15px; _margin-left:10px;} +.cona02 span,.cona03 span{ float:left;} +.wen { float:left; margin-top:7px; margin-left:5px;} +.wenhao {display:block; width:16px; height:16px; overflow:hidden;} +.ma_nr {border-bottom:1px dashed #f1f1f1;} +.ma_nr:hover {background:#f8f8f8;} +.con01 { width:238px;} +.con01 span {float:left; width:68px;} +.con01 span img {float:right;} +.con01 samp {float:left; margin-left:14px; font-size:12px; width:133px;} +.con01 samp p.co3 a {color:#333; text-decoration:none;} +.con01 samp p.co3 a:hover {color:#06C; text-decoration:underlines;} +.con01 samp p.co9 a {color:#999; text-decoration:none;} +.con01 samp p.co9 a:hover {color:#06C; text-decoration:underlines;} +.con01 samp p.Pstars span.hdstars {width:75px;} +.wen { float:left; margin-top:7px; margin-left:5px; position:relative;} +.ceng{width:355px;height:auto !important;/*height:227px;min-height:227px;*/position:absolute;top:9px;left:-143px;z-index:999; display:none;} +.cnr{border:1px solid #ccc;margin-top:6px;width:333px;height:auto !important;/*height:193px;min-height:193px;*/ font-weight: 200;background:#FFF;padding:10px;} +.sjiao{position:absolute;top:2px;left:163px;} +.cnr p{line-height:24px;font-size:12px;padding-left:15px;color:#999;} +.cnr .ctit{color:#333;font-weight:bold;background:url(point.png) no-repeat left 10px;} +.con05 {width:325px;_width:320px;} +.icon{display:block;height:50px;padding:10px 0px; float:left; width:210px;} +.icon li{float:left;width:70px;height:50px; text-align:center;} +.icon li a{display:block;width:58px;height:50px;background-repeat:no-repeat;background-position:0px 0px;} +.icon li a:hover{background-position:-58px 0px;} +.anniu {margin-right:15px;_margin-right:4px; background: url("ck.png") no-repeat; color: #fff; display: block; height: 25px; line-height: 25px; text-align: center;text-decoration: none; width: 75px; margin-top:24px; float:right;} +.anniu:hover{background:url(ck.png) no-repeat;opacity: 0.8;filter: alpha(opacity=80);} +.anniu a{ color:#FFF; text-decoration:none; text-align:center; width: 75px; margin-left:2px;} + +.Pstars { padding: 2px 0;position: relative; width:133px; height:10px;} +.stars_small, .stars_small em { height: 10px;} +.stars_small { background-position: 0 -20px; display: block; width: 75px;} +.hdstars {background: url(hdstars.png) no-repeat;} +.Pstars span.small_tc { background:#fff; border: 1px solid #bbb; color: #333; display: block;height: 36px; left: 80px; line-height: 18px; padding: 5px; position: absolute; text-align: center; top: -15px;width: 140px; z-index: 500;} + +.cnr .ctit { background: url("point.png") no-repeat scroll left 10px; color: #333; font-weight: bold;} + +.text_leix,.kuan_leix { float:left;} +.text_leix {position:relative; line-height: 20px; font-size:12px; color:#666; width:77px; padding-right:5px; text-align:right;} +.kuan_leix {margin-right:3px;} +.kuan_leix {background:url(dfg_13.jpg) no-repeat scroll right 3px #fff; height:25px; border: 1px solid #e5e5e5;width:118px; z-index: 300;position:relative;} +.kuan_leix input {width:96px; border:none; float:left; margin-left:5px} +.text_leix,.kuan_leix,.kuan_leix input,.wydk_leix {height:28px; line-height:28px;} +.wydk_leix {cursor:pointer; width:118px; overflow:hidden;} +.jglx_xl {} +.jglx_xiala {left:-1px; top:25px; border:1px solid #e5e5e5; z-index:2000; border-top:none; position:absolute; display:none;} +.jglx_xiala li {width:118px;height:25px; line-height:25px; cursor:pointer; display:block;} +.jglx_xiala li:hover {background:#c4d4e1;} +.jglx_xiala li a {padding-left:5px;background:#fff; display:block;color:#666; text-decoration:none; font-size:12px; width:113px;} +.jglx_xiala li a.mo {background:#e7e7e7;} +.jglx_xiala li a:hover {background:#c4d4e1; color:#000; text-decoration:none;} +.deta_left span {color:#666;} + +.page{display:block;height:28px;line-height:26px;text-align:center;padding-top:15px;/*20130520-17:42*/ margin:10px 0;} +.page a{font-size:14px;font-family:Arial,"瀹嬩綋";text-decoration:none;} +.page a:hover{text-decoration:none;} +.page .s1{text-decoration:none;color:#666;} +.pageon{border:1px solid #00457c;padding:3px 5px;background:#00457c;color:#FFF;font-weight:bold;text-decoration:none;margin-right:6px;cursor:pointer;} +.pageoff{border:1px solid #eee;padding:5px 5px;background:#FFF;color:#666;margin-right:6px;text-decoration:none;cursor:pointer;} +.pageoff:hover ,.nextpage:hover {border:1px solid #00457c;color:#00457c;} +.page .nextpage{border:1px solid #eee;background:#FFF;color:#666;padding:5px 8px;text-decoration:none;cursor:pointer;} +.page .gong{font-size:12px;color:#ccc;} .Tosearch_ts {width:100px; height:29px; display:none; position:absolute; top:-35px; left:0; line-height:24px; color:#333; text-align:center; padding:0 4px 0 24px; background:url(Tosearch_ts.png) no-repeat; font-size:12px; z-index:100;} \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/switch_city.css b/source/plugin/dzapp_haodai/images/switch_city.css index 0118aee..1c2ffd7 100644 --- a/source/plugin/dzapp_haodai/images/switch_city.css +++ b/source/plugin/dzapp_haodai/images/switch_city.css @@ -1,76 +1,76 @@ -.clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden; overflow: hidden; } -.clearfix { display:inline-block; } -.clearfix {display:block;} -.main{ margin-top: 20px;} -.w960{width: 960px;} -.maincon { height: auto !important;margin: 24px auto 0;} -.citylist{ background-color: #f8f8f8; border: 1px solid #D0D0D0;} -.inleft{float: left; margin: 15px 10px;} -.inleft a{ text-decoration: none; color: #0079c1; font-size: 24px; font-weight: bold; margin: 0px 5px;} -.inright{ float: right;margin: 15px 10px;} -.inright label{ margin-right: 5px; color: #666;} -.inright input{width: 80px;height: 34px;background-color: #ECECEC;color: #666;border: 1px solid #C0C0C0; cursor: pointer;display: inline;} -.liebiao{ width: 110px; height: 30px; padding: 6px;} -.liebiao option{padding: 5px;} -.thead_city {width:958px; height:40px; border:1px solid #D0D0D0; border-top: none; font-size: 16px;} -.current_city ,.more_citybtn {height:40px; line-height:40px;} -.current_city {width:85px; text-align:center; color:#666666; margin-left: 5px;} -.hot_city {width:830px; overflow:hidden; height:30px; padding:5px 0;} -.hot_city a {text-decoration:none;color:#0079c1; height:30px; line-height:30px; padding:0px 9px; float:left; display:block;} -.hot_city a:hover {color:#00457c; background:#e9e9e9; text-decoration:none;} -.list_city{ border-top: 2px solid #00457C;overflow: hidden;position: relative; clear: both; margin: 20px 0px; -border-right: 1px solid #D0D0D0; border-bottom: 1px solid #D0D0D0; border-left: 1px solid #D0D0D0;} -.tabnav{ background: #F8F8F8;border-bottom: 1px solid #E9E9E9;border-left: 1px solid #E9E9E9; -border-right: 1px solid #E9E9E9; display: block; height: 41px; line-height: 42px;} -.tabnav li { color: #333333; cursor: pointer; float: left; font-size: 14px; height: 40px; line-height: 40px; text-align: center; width: 130px; } -.tabnav .tabon { background:#FFFFFF; border-left: 1px solid #E9E9E9; border-right: 1px solid #E9E9E9; font-weight: bold; height: 42px;} -.tab_content{margin: 15px 0px 0px 0px; line-height: 26px;} -.content{padding: 10px 0 10px 25px;border-bottom: 1px solid #ffffff;border-top: 1px solid #ffffff;} -.content:hover{ background-color: #f8f8f8;border-bottom: 1px solid #E9E9E9;border-top: 1px solid #E9E9E9;} -.content .label{ background-color: #f8f8f8; border: 1px solid #DCDEE3; color: #666666; float: left;font-size: 14px; font-weight: bold; margin-right: 15px; - text-align: center; width: 35px; line-height: 30px;} -.content .label:hover{background: #0079c1; color: #ffffff;} -.content .label2{ background-color: #f8f8f8; border: 1px solid #DCDEE3; color: #666666; float: left;font-size: 14px; font-weight: bold; margin-right: 15px; - text-align: center; width: 110px; line-height: 30px;} -.content .label2:hover{background: #0079c1; color: #ffffff;} -.city-list-hover{background: #0079c1; color: #ffffff;} -.citys a{text-decoration:none;color:#666666; height:30px; line-height:30px; padding:0px 9px; float:left; display:block;font-size: 14px;} -.citys a:hover{background:#0079c1; color: #fff;} -.youl{ margin-top: 20px;} -.header{vertical-align:middle; margin-left: auto;margin-right: auto; text-align: center;} -.topbar a img{float: left;} -.wydk_li_lh{ float:right;} -.XDalert_Form {margin-bottom:15px;} -.XDalert_Form_name ,.XDalert_Form_con ,.XDalert_Form_ts {height:35px;} -.XDalert_Form_name ,.XDalert_Form_ts {line-height:35px;} -.XDalert_Form_name {width:100px; line-height:35px; color:#333;} -.XDalert_Form_name .red {font-weight:normal; color:red;} -.XDalert_Form_con ,.XDalert_Form_conNOH {width:250px;} -.XDalert_Form_conNOH {height:auto; line-height:24px;} -.wydk_div{ margin-top:35px;} -.relative {position:relative;} -.absolute {position:absolute;} -.wydk_li ,.wydk_li_selectbtn { width: 167px;height:35px; line-height:35px; padding-left: 15px;} -.wydk_li_lh{height:35px; line-height:35px; padding-left: 15px;} -.se1 {z-index:10;} -.se2 {z-index:9;} -.se3 {z-index:8;} -.se4 {z-index:7;} -.wydk_ipt ,.wydk_type {height:33px; line-height:33px;} -.wydk_li span {display:block;} -.wydk_li_selectbtn {z-index:3;} -.wydk_ipt ,.wydk_type {padding:0px 43px 0 20px; color:#666;background:url(../i/XDalert_icon.png) right -105px no-repeat; border:1px solid #cecece;} -.wydk_li_selectcon {right:0px; top:27px; border:1px solid #ccc; z-index:1000;} -.wydk_li_selectcon li { height:27px; line-height:27px; cursor:pointer; display:block; background:#fff;} -.wydk_li_selectcon li a {color: #666666; display: block; padding-left: 20px; text-align: left; text-decoration: none;width: 145px;} -.wydk_li_selectcon li a.mo {background:#e7e7e7;} -.wydk_li_selectcon li a:hover {background:#c4d4e1; color:#000; text-decoration:none;} -.wydk_searchbtn {width:70px; height:28px; line-height:28px; cursor:pointer; color:#666;background:url(../i/wydk_searchbtn.gif) repeat-x; border:1px solid #ccc;} -.wydk_searchbtn:hover {color:#006bc4; background:#f8f8f8;} -.bank { padding-left: 10px;} -.city_pinying_gps {padding: 10px 0 10px 25px;} -.city_pinying_gps a {padding: 6px 12px; border: 1px solid #e2e2e2; text-decoration: none; color: #333; margin-right: 8px;} -.city_pinying_gps a:hover {background: #006aa1; color: #fff; border: 1px solid #006aa1;} -.sitetip{height: 40px; background: #f9f4de; font-size: 18px;margin-bottom: 10px; padding-left: 10px;padding-top: 15px;} -.clear {clear: both;} +.clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden; overflow: hidden; } +.clearfix { display:inline-block; } +.clearfix {display:block;} +.main{ margin-top: 20px;} +.w960{width: 960px;} +.maincon { height: auto !important;margin: 24px auto 0;} +.citylist{ background-color: #f8f8f8; border: 1px solid #D0D0D0;} +.inleft{float: left; margin: 15px 10px;} +.inleft a{ text-decoration: none; color: #0079c1; font-size: 24px; font-weight: bold; margin: 0px 5px;} +.inright{ float: right;margin: 15px 10px;} +.inright label{ margin-right: 5px; color: #666;} +.inright input{width: 80px;height: 34px;background-color: #ECECEC;color: #666;border: 1px solid #C0C0C0; cursor: pointer;display: inline;} +.liebiao{ width: 110px; height: 30px; padding: 6px;} +.liebiao option{padding: 5px;} +.thead_city {width:958px; height:40px; border:1px solid #D0D0D0; border-top: none; font-size: 16px;} +.current_city ,.more_citybtn {height:40px; line-height:40px;} +.current_city {width:85px; text-align:center; color:#666666; margin-left: 5px;} +.hot_city {width:830px; overflow:hidden; height:30px; padding:5px 0;} +.hot_city a {text-decoration:none;color:#0079c1; height:30px; line-height:30px; padding:0px 9px; float:left; display:block;} +.hot_city a:hover {color:#00457c; background:#e9e9e9; text-decoration:none;} +.list_city{ border-top: 2px solid #00457C;overflow: hidden;position: relative; clear: both; margin: 20px 0px; +border-right: 1px solid #D0D0D0; border-bottom: 1px solid #D0D0D0; border-left: 1px solid #D0D0D0;} +.tabnav{ background: #F8F8F8;border-bottom: 1px solid #E9E9E9;border-left: 1px solid #E9E9E9; +border-right: 1px solid #E9E9E9; display: block; height: 41px; line-height: 42px;} +.tabnav li { color: #333333; cursor: pointer; float: left; font-size: 14px; height: 40px; line-height: 40px; text-align: center; width: 130px; } +.tabnav .tabon { background:#FFFFFF; border-left: 1px solid #E9E9E9; border-right: 1px solid #E9E9E9; font-weight: bold; height: 42px;} +.tab_content{margin: 15px 0px 0px 0px; line-height: 26px;} +.content{padding: 10px 0 10px 25px;border-bottom: 1px solid #ffffff;border-top: 1px solid #ffffff;} +.content:hover{ background-color: #f8f8f8;border-bottom: 1px solid #E9E9E9;border-top: 1px solid #E9E9E9;} +.content .label{ background-color: #f8f8f8; border: 1px solid #DCDEE3; color: #666666; float: left;font-size: 14px; font-weight: bold; margin-right: 15px; + text-align: center; width: 35px; line-height: 30px;} +.content .label:hover{background: #0079c1; color: #ffffff;} +.content .label2{ background-color: #f8f8f8; border: 1px solid #DCDEE3; color: #666666; float: left;font-size: 14px; font-weight: bold; margin-right: 15px; + text-align: center; width: 110px; line-height: 30px;} +.content .label2:hover{background: #0079c1; color: #ffffff;} +.city-list-hover{background: #0079c1; color: #ffffff;} +.citys a{text-decoration:none;color:#666666; height:30px; line-height:30px; padding:0px 9px; float:left; display:block;font-size: 14px;} +.citys a:hover{background:#0079c1; color: #fff;} +.youl{ margin-top: 20px;} +.header{vertical-align:middle; margin-left: auto;margin-right: auto; text-align: center;} +.topbar a img{float: left;} +.wydk_li_lh{ float:right;} +.XDalert_Form {margin-bottom:15px;} +.XDalert_Form_name ,.XDalert_Form_con ,.XDalert_Form_ts {height:35px;} +.XDalert_Form_name ,.XDalert_Form_ts {line-height:35px;} +.XDalert_Form_name {width:100px; line-height:35px; color:#333;} +.XDalert_Form_name .red {font-weight:normal; color:red;} +.XDalert_Form_con ,.XDalert_Form_conNOH {width:250px;} +.XDalert_Form_conNOH {height:auto; line-height:24px;} +.wydk_div{ margin-top:35px;} +.relative {position:relative;} +.absolute {position:absolute;} +.wydk_li ,.wydk_li_selectbtn { width: 167px;height:35px; line-height:35px; padding-left: 15px;} +.wydk_li_lh{height:35px; line-height:35px; padding-left: 15px;} +.se1 {z-index:10;} +.se2 {z-index:9;} +.se3 {z-index:8;} +.se4 {z-index:7;} +.wydk_ipt ,.wydk_type {height:33px; line-height:33px;} +.wydk_li span {display:block;} +.wydk_li_selectbtn {z-index:3;} +.wydk_ipt ,.wydk_type {padding:0px 43px 0 20px; color:#666;background:url(../i/XDalert_icon.png) right -105px no-repeat; border:1px solid #cecece;} +.wydk_li_selectcon {right:0px; top:27px; border:1px solid #ccc; z-index:1000;} +.wydk_li_selectcon li { height:27px; line-height:27px; cursor:pointer; display:block; background:#fff;} +.wydk_li_selectcon li a {color: #666666; display: block; padding-left: 20px; text-align: left; text-decoration: none;width: 145px;} +.wydk_li_selectcon li a.mo {background:#e7e7e7;} +.wydk_li_selectcon li a:hover {background:#c4d4e1; color:#000; text-decoration:none;} +.wydk_searchbtn {width:70px; height:28px; line-height:28px; cursor:pointer; color:#666;background:url(../i/wydk_searchbtn.gif) repeat-x; border:1px solid #ccc;} +.wydk_searchbtn:hover {color:#006bc4; background:#f8f8f8;} +.bank { padding-left: 10px;} +.city_pinying_gps {padding: 10px 0 10px 25px;} +.city_pinying_gps a {padding: 6px 12px; border: 1px solid #e2e2e2; text-decoration: none; color: #333; margin-right: 8px;} +.city_pinying_gps a:hover {background: #006aa1; color: #fff; border: 1px solid #006aa1;} +.sitetip{height: 40px; background: #f9f4de; font-size: 18px;margin-bottom: 10px; padding-left: 10px;padding-top: 15px;} +.clear {clear: both;} .fr {float: right;} \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/tipbox/tipbox.css b/source/plugin/dzapp_haodai/images/tipbox/tipbox.css index 7f296fb..458643b 100644 --- a/source/plugin/dzapp_haodai/images/tipbox/tipbox.css +++ b/source/plugin/dzapp_haodai/images/tipbox/tipbox.css @@ -1,189 +1,189 @@ -@charset "utf-8"; -/* CSS Document */ -.pt46{padding-top:46px;} - body { - _background-image: url(about:blank); /*鐢ㄦ祻瑙埚櫒绌虹槠椤甸溃浣滀负鑳屾櫙*/ - _background-attachment: fixed; /* prevent screen flash in IE6 纭缭婊氩姩鏉℃粴锷ㄦ椂锛屽崖绱犱笉闂姩*/ - } - -.gray{width:100%;height:2266px;opacity: 0.4;filter: alpha(opacity=40);background-color: black;position:absolute;top:0px;left:0px;z-index:9999;} -/*.tipbox{width:650px;position:fixed;_position:absolute;top:50%;left:50%;margin-left:-325px;margin-top:-218px;background:#FFF;z-index:9999; -_border: 1px solid #f2f2f2; --webkit-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; --moz-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; -box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171;}*/ -/**20130422**/ -/*.tipbox{width:650px;position:fixed;_position:absolute;background:#FFF;z-index:9999; -_border: 1px solid #f2f2f2; --webkit-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; --moz-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; -box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171;}*/ -.tipbox {width:650px; background:red;position:fixed; _position:absolute; right:0;overflow: visible;_top: expression(documentElement.scrollTop + 110 + "px");_left:450px; /*IE6 锷ㄦ€佽缃畉op浣岖疆*/ -background:#FFF;z-index:9999; -_border: 1px solid #f2f2f2; --webkit-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; --moz-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; -box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171;} - -.tboxone{width:650px;position:relative;} -.cha{display:block;width:28px;height:28px;background:url(images/cha.png) no-repeat;position:absolute;right:-12px;top:-15px;cursor:pointer;} -.tboxtop{width:650px;height:73px;background:#f8f8f8;border-bottom:1px solid #eaeaea;padding-top:20px;} -.tboxa{width:609px;height:53px;margin:0 auto;line-height:53px;position:relative;} -.bac1{background:url(images/top1.png) no-repeat;} -.bac2{background:url(images/top2.png) no-repeat;} -.bac3{background:url(images/top3.png) no-repeat;} -.bac4{background:url(images/top4.png) no-repeat;} - -.tboxa span{font-size:12px;} -.tbsp1{position:absolute;left:22px;font-weight:bold;} -.tbsp2{position:absolute;left:173px;font-weight:bold;} -.tbsp3{position:absolute;left:339px;font-weight:bold;} -.tbsp4{position:absolute;left:510px;font-weight:bold;} - - -.tboxb{width:608px;border-bottom:1px solid #eaeaea;margin:0 auto;padding:10px 0px;height:auto !important;height:40px;min-height:40px;} -.tboxbl{width:160px;float:left;font-size:12px;color:#333;font-weight:bold;height:45px;line-height:45px;} -.tboxbr{width:448px;float:left;position:relative;} - -.tboxc{width:608px;border-bottom:1px solid #eaeaea;margin:0 auto;overflow:hidden;padding:17px 0px;} -.tboxcl{width:150px;float:left;height:110px;font-size:12px;color:#333;font-weight:bold;line-height:48px;} -.tboxcr{width:448px;float:left;position:relative;} -.tboxcr span{float:left;} -.dx{display:block;height:24px;} -.dxon{padding-right:6px;width:14px;height:14px;background:url(images/dxon.png) no-repeat;cursor:pointer;} -.dxoff{padding-right:6px;width:14px;height:14px;background:url(images/dxoff.png) no-repeat;cursor:pointer;} -.dxw{font-size:12px;color:#666;} - -.tboxd{width:608px;border-bottom:1px solid #eaeaea;margin:0 auto;overflow:hidden;} -.tboxdl{width:150px;float:left;height:79px;line-height:48px;font-size:12px;color:#333;font-weight:bold;} - -.next{width:113px;height:38px;text-align:center;background:url(images/next.png) no-repeat;cursor:pointer;color:#FFF;font-size:14px;line-height:38px;margin:0 auto;margin-top:18px;margin-bottom:14px;} - -.tbx2{display:block;height:60px;width:608px;margin:0 auto;} -.tbx2 span{float:left;} -.tbsa{width:88px;float:left;height:60px;line-height:45px;font-size:12px;color:#333;font-weight:bold;padding-right:19px;text-align:right;} -.tbsb{width:410px;float:left;} -.tboxinp{width:339px;height:14px;border:1px solid #cdcdcd;padding:14px 5px;font-size:12px;color:#ccc;} -.tboxbtn{width:366px;height:38px;padding-left:128px;} -.tboxbtn a{float:left;width:168px;height:38px;margin-right:15px;text-align:center;line-height:38px;font-size:14px;text-decoration:none;margin-top:10px;} -.tboxbtn1{background:url(images/tboxbtn1.png) no-repeat;} -.tboxbtn2{background:url(images/tboxbtn2.png) no-repeat;} -.tboxbot{width:608px;height:74px;border-top:1px solid #eaeaea;margin:0 auto;margin-top:60px;} - -.tboxdil{width:120px;height:74px;float:left;padding-right:19px;line-height:46px;color:#333;font-weight:bold;font-size:12px;text-align:right;} -.tboxdir{float:left;width:380px;padding-top:16px;} -.tboxdir p{display:block;height:26px;font-size:12px;color:#666;} -.tboxdir p span{color:#00457c;} - -.boxda{width:429px;margin:0 auto;background:url(images/email.png) no-repeat;padding-left:97px;margin-top:15px;} -.boxda p{display:block;line-height:24px;} -.boxdb{padding-left:159px;font-size:12px;color:#333;display:block;height:26px;} -.boxdc{padding-left:159px;height:61px;} -.tboxbtn3{display:block;width:96px;height:38px;text-align:center;line-height:38px;color:#FFF;background:url(images/tboxbtn3.png) no-repeat;text-decoration:none;margin-left:159px;margin-bottom:25px;} - -/*2013骞?链?8镞?锘庡竞鍒ゆ柇寮瑰嚭灞?/ -.citybox{width:484px;height:225px;z-index:9999;position:fixed;_position:absolute;top:50%;left:50%;margin-left:-242px;margin-top:-112px; -_border: 1px solid #818181;background:#FFF; --webkit-box-shadow: 1px 1px 20px #818181, -1px -1px 20px #818181; --moz-box-shadow: 1px 1px 20px #818181, -1px -1px 20px #818181; -box-shadow: 1px 1px 20px #818181, -1px -1px 20px #818181;} - -.cbnr{width:484px;height:225px;position:relative;} -.ctcha{display:block;width:28px;height:28px;background:url(images/cha.png) no-repeat;position:absolute;top:-14px;right:-12px;cursor:pointer;} -.cbnr p{padding-left:46px;line-height:24px;font-size:14px;} -.pt56{padding-top:56px;} -.org{color:#ff9900;} -.ctbtn{padding-left:46px;height:38px;padding-top:26px;} -.ctbtn1{background:url(images/ctbtn1.png) no-repeat;color:#fff;margin-right:21px;width:168px;height:38px;text-decoration:none;line-height:38px;text-align:Center;font-size:14px;float:left;} -.ctbtn2{background:url(images/ctbtn2.png) no-repeat;color:#333;width:168px;height:38px;text-decoration:none;line-height:38px;text-align:Center;font-size:14px;float:left;} - -/*璐溅璁$畻鍣ㄥ脊绐?/ -.gcbox{width:560px;height:512px;z-index: 9999;position: fixed;_position: absolute;top: 50%;left: 50%; -margin-left: -280px;margin-top: -256px;_border: 1px solid #818181;background: white; --webkit-box-shadow: 1px 1px 20px #716f65, -1px -1px 20px #716f65; --moz-box-shadow: 1px 1px 20px #716f65, -1px -1px 20px #716f65; -box-shadow: 1px 1px 20px #716f65, -1px -1px 20px #716f65;} -.gcrn{width:529px;height:512px;position:relative;padding-left:21px;} -.gct{display:block;height:49px;width:519px;border-bottom:1px solid #eaeaea;color:#716f65;font-size:14px;line-height:49px;} - -.jsg{width:507px;border-top:1px solid #eaeaea;height:192px;margin-top:20px;padding:0px 6px;} -.jsgc{width:233px;height:191px;} -.jsgcp{display:block;height:43px;line-height:43px;color:#333;font-size:12px;} -.jsgtab{border-collapse: collapse;border: 1px solid #dddddd;} -.jsgtab td{border: 1px solid #dddddd;text-align:right;padding-right:10px;} -.jstr1 td{height:25px;} -.jstr2 td{height:41px;} -.tdbg{background:#f4f4f4;} -.jsgtab span{color:#ff6600;} -.jsd{font-size:12px;color:#ccc;padding-left:6px;line-height:40px;} -.gccha {display: block;width: 28px;height: 28px;background: url(images/cha.png) no-repeat;position: absolute;top: -14px;right: -22px;cursor: pointer;} - -.boxa1{font-size:14px;} -.boxa2{font-size:12px;color:#666;padding-bottom:12px;} -.boxa3{font-size:12px;color:#666;padding-bottom:26px;} -.boxa3 span{color:#00457c;} - -.tishi{background:url(../../i/tishi1.png) no-repeat;font-size:12px;color:#ff0000;display:block;width:75px;height:33px;line-height:33px;padding-left:31px;margin-bottom:8px;position:absolute;top:0px;right:0px;} -.tishi2{background:url(../../i/tishi.png) no-repeat;font-size:12px;color:#ff0000;display:block;width:96px;height:33px;line-height:33px;padding-left:31px;margin-bottom:8px;position:absolute;top:0px;right:0px;} -.mb46{margin-bottom:46px;} - -.z999{z-index:999;} -.z99{z-index:99;} -.z9{z-index:9;} -.z8{z-index:8;} -.ml22{margin-left:22px;} - -.clea{clear:both;} -.xin{position:relative;width:608px;height:64px;margin:0 auto;} - -/*浣跨敤鍗忚*/ -.xyt{height:64px;border-bottom:1px solid #eaeaea;background:#f8f8f8;font-size:14px;color:#333;font-weight:bold;line-height:64px;text-align:center;} -.xyn{width:590px;height:250px;margin:22px auto 20px auto;background:#FFF;padding:10px;font-size:12px;color:#333;overflow-y:scroll;border:1px solid #cdcdcd;} -.xyn p{line-height:26px;} -.guanbi{width:96px;height:38px;margin:0 auto;margin-bottom:20px;font-size:14px;color:#FFF;line-height:38px;text-align:center;background:url(images/tboxbtn3.png) no-repeat;display:block;text-decoration:none;} -.xyn ul{padding-left:20px;} -.xyn ul li{line-height:26px;list-style:decimal;} -span.dxw input{margin-right:4px;} - -/*===2013 7 30 ===*/ -.boxa1{color:#00457c;font-size:16px;} -.boxa2,.boxa3{padding:0px;} -.boxa4{color:#ff9900;padding:12px 0px 18px 0px;border-bottom:1px solid #eaeaea;font-size:12px;} -.boxa5{line-height:24px;color:#666;font-size:12px;margin:16px 0px;} -.boxdd{height:81px;}/*******7-31镙峰纺婧一嚭锅氢慨鏀?****/ -.texta{width:415px;height:65px;padding:5px;color:#999;} - -.tboxbtn3{float:left;width:96px;height:38px;text-align:center;line-height:38px;color:#FFF;background:url(images/tboxbtn3.png) no-repeat;text-decoration:none;margin-top:15px;margin-left:0px;} -.zfxz{color:#999;float:right;font-size:12px;margin-top:15px;display:block;} -.boxde{height:66px;width:429px;padding-left:159px;} - -/*2013骞?链?镞?/ -.jia{} -.time{width:140px;height:42px;border:1px solid #cdcdcd;position:relative;float:left;} -.time .ti{width:75px;height:14px;border:none 0;position:absolute;top:0px;left:0px;padding:14px 10px;} -.time span{display:block;width:42px;height:42px;background:#f8f8f8;border-left:1px solid #cdcdcd;position:absolute;top:0px;right:0px;text-align:Center;line-height:42px;color:#666;font-size:12px;} - -.tboxbr .se{width:295px;} -.tboxbr .sele{width:293px;} -.ml11{margin-left:11px;} -.tipbox .xiala{left:0px;} -.tipbox .xiala li{width:293px;} -.tipbox .xiala li a{width:281px;} -.z9 .tboxbr{z-index:100;} -.z8 .tboxbr{z-index:90;} - -.t2{width: 608px;margin: 0 auto;height:44px;padding:0px 15px;} -.t2l{width: 160px;float: left;font-size: 12px;color: #333;font-weight: bold;height:44px;line-height:44px;} -.t2r{width: 448px;float: left;position: relative;height:15px;margin-top:16px;font-size:12px;_margin-top:10px;} -.t2r span{line-height:20px;} -.t2r label{min-height: 20px; -padding-left: 20px;font-size:14px;} -.t2r label input{margin-right:8px;} -.xinpu{width: 608px;margin: 0 auto;height:44px;padding:0px 15px;margin-bottom:12px;} -.xinpul{width: 160px;float: left;font-size: 12px;color: #333;font-weight: bold;height:44px;line-height:44px;} -.xinpur{width: 448px;float: left;position: relative;height:15px;font-size:12px;_margin-top:5px;} -.xinbiao{width:293px;height:42px;border:1px solid #cdcdcd;position:relative;} -.xbinp{width:230px;height:14px;border:none 0;position:absolute;top:0px;left:0px;padding:14px 10px;} -.xinbiao span{display:block;width:42px;height:42px;background:#f8f8f8;border-left:1px solid #cdcdcd;position:absolute;top:0px;right:0px;text-align:Center;line-height:42px;color:#666;font-size:12px;} -.xinbor{border-bottom:1px solid #cdcdcd;width: 608px;margin: 0 auto;} -.mt5{margin-top:5px;} +@charset "utf-8"; +/* CSS Document */ +.pt46{padding-top:46px;} + body { + _background-image: url(about:blank); /*鐢ㄦ祻瑙埚櫒绌虹槠椤甸溃浣滀负鑳屾櫙*/ + _background-attachment: fixed; /* prevent screen flash in IE6 纭缭婊氩姩鏉℃粴锷ㄦ椂锛屽崖绱犱笉闂姩*/ + } + +.gray{width:100%;height:2266px;opacity: 0.4;filter: alpha(opacity=40);background-color: black;position:absolute;top:0px;left:0px;z-index:9999;} +/*.tipbox{width:650px;position:fixed;_position:absolute;top:50%;left:50%;margin-left:-325px;margin-top:-218px;background:#FFF;z-index:9999; +_border: 1px solid #f2f2f2; +-webkit-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; +-moz-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; +box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171;}*/ +/**20130422**/ +/*.tipbox{width:650px;position:fixed;_position:absolute;background:#FFF;z-index:9999; +_border: 1px solid #f2f2f2; +-webkit-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; +-moz-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; +box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171;}*/ +.tipbox {width:650px; background:red;position:fixed; _position:absolute; right:0;overflow: visible;_top: expression(documentElement.scrollTop + 110 + "px");_left:450px; /*IE6 锷ㄦ€佽缃畉op浣岖疆*/ +background:#FFF;z-index:9999; +_border: 1px solid #f2f2f2; +-webkit-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; +-moz-box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171; +box-shadow: 1px 1px 20px #717171, -1px -1px 20px #717171;} + +.tboxone{width:650px;position:relative;} +.cha{display:block;width:28px;height:28px;background:url(images/cha.png) no-repeat;position:absolute;right:-12px;top:-15px;cursor:pointer;} +.tboxtop{width:650px;height:73px;background:#f8f8f8;border-bottom:1px solid #eaeaea;padding-top:20px;} +.tboxa{width:609px;height:53px;margin:0 auto;line-height:53px;position:relative;} +.bac1{background:url(images/top1.png) no-repeat;} +.bac2{background:url(images/top2.png) no-repeat;} +.bac3{background:url(images/top3.png) no-repeat;} +.bac4{background:url(images/top4.png) no-repeat;} + +.tboxa span{font-size:12px;} +.tbsp1{position:absolute;left:22px;font-weight:bold;} +.tbsp2{position:absolute;left:173px;font-weight:bold;} +.tbsp3{position:absolute;left:339px;font-weight:bold;} +.tbsp4{position:absolute;left:510px;font-weight:bold;} + + +.tboxb{width:608px;border-bottom:1px solid #eaeaea;margin:0 auto;padding:10px 0px;height:auto !important;height:40px;min-height:40px;} +.tboxbl{width:160px;float:left;font-size:12px;color:#333;font-weight:bold;height:45px;line-height:45px;} +.tboxbr{width:448px;float:left;position:relative;} + +.tboxc{width:608px;border-bottom:1px solid #eaeaea;margin:0 auto;overflow:hidden;padding:17px 0px;} +.tboxcl{width:150px;float:left;height:110px;font-size:12px;color:#333;font-weight:bold;line-height:48px;} +.tboxcr{width:448px;float:left;position:relative;} +.tboxcr span{float:left;} +.dx{display:block;height:24px;} +.dxon{padding-right:6px;width:14px;height:14px;background:url(images/dxon.png) no-repeat;cursor:pointer;} +.dxoff{padding-right:6px;width:14px;height:14px;background:url(images/dxoff.png) no-repeat;cursor:pointer;} +.dxw{font-size:12px;color:#666;} + +.tboxd{width:608px;border-bottom:1px solid #eaeaea;margin:0 auto;overflow:hidden;} +.tboxdl{width:150px;float:left;height:79px;line-height:48px;font-size:12px;color:#333;font-weight:bold;} + +.next{width:113px;height:38px;text-align:center;background:url(images/next.png) no-repeat;cursor:pointer;color:#FFF;font-size:14px;line-height:38px;margin:0 auto;margin-top:18px;margin-bottom:14px;} + +.tbx2{display:block;height:60px;width:608px;margin:0 auto;} +.tbx2 span{float:left;} +.tbsa{width:88px;float:left;height:60px;line-height:45px;font-size:12px;color:#333;font-weight:bold;padding-right:19px;text-align:right;} +.tbsb{width:410px;float:left;} +.tboxinp{width:339px;height:14px;border:1px solid #cdcdcd;padding:14px 5px;font-size:12px;color:#ccc;} +.tboxbtn{width:366px;height:38px;padding-left:128px;} +.tboxbtn a{float:left;width:168px;height:38px;margin-right:15px;text-align:center;line-height:38px;font-size:14px;text-decoration:none;margin-top:10px;} +.tboxbtn1{background:url(images/tboxbtn1.png) no-repeat;} +.tboxbtn2{background:url(images/tboxbtn2.png) no-repeat;} +.tboxbot{width:608px;height:74px;border-top:1px solid #eaeaea;margin:0 auto;margin-top:60px;} + +.tboxdil{width:120px;height:74px;float:left;padding-right:19px;line-height:46px;color:#333;font-weight:bold;font-size:12px;text-align:right;} +.tboxdir{float:left;width:380px;padding-top:16px;} +.tboxdir p{display:block;height:26px;font-size:12px;color:#666;} +.tboxdir p span{color:#00457c;} + +.boxda{width:429px;margin:0 auto;background:url(images/email.png) no-repeat;padding-left:97px;margin-top:15px;} +.boxda p{display:block;line-height:24px;} +.boxdb{padding-left:159px;font-size:12px;color:#333;display:block;height:26px;} +.boxdc{padding-left:159px;height:61px;} +.tboxbtn3{display:block;width:96px;height:38px;text-align:center;line-height:38px;color:#FFF;background:url(images/tboxbtn3.png) no-repeat;text-decoration:none;margin-left:159px;margin-bottom:25px;} + +/*2013骞?链?8镞?锘庡竞鍒ゆ柇寮瑰嚭灞?/ +.citybox{width:484px;height:225px;z-index:9999;position:fixed;_position:absolute;top:50%;left:50%;margin-left:-242px;margin-top:-112px; +_border: 1px solid #818181;background:#FFF; +-webkit-box-shadow: 1px 1px 20px #818181, -1px -1px 20px #818181; +-moz-box-shadow: 1px 1px 20px #818181, -1px -1px 20px #818181; +box-shadow: 1px 1px 20px #818181, -1px -1px 20px #818181;} + +.cbnr{width:484px;height:225px;position:relative;} +.ctcha{display:block;width:28px;height:28px;background:url(images/cha.png) no-repeat;position:absolute;top:-14px;right:-12px;cursor:pointer;} +.cbnr p{padding-left:46px;line-height:24px;font-size:14px;} +.pt56{padding-top:56px;} +.org{color:#ff9900;} +.ctbtn{padding-left:46px;height:38px;padding-top:26px;} +.ctbtn1{background:url(images/ctbtn1.png) no-repeat;color:#fff;margin-right:21px;width:168px;height:38px;text-decoration:none;line-height:38px;text-align:Center;font-size:14px;float:left;} +.ctbtn2{background:url(images/ctbtn2.png) no-repeat;color:#333;width:168px;height:38px;text-decoration:none;line-height:38px;text-align:Center;font-size:14px;float:left;} + +/*璐溅璁$畻鍣ㄥ脊绐?/ +.gcbox{width:560px;height:512px;z-index: 9999;position: fixed;_position: absolute;top: 50%;left: 50%; +margin-left: -280px;margin-top: -256px;_border: 1px solid #818181;background: white; +-webkit-box-shadow: 1px 1px 20px #716f65, -1px -1px 20px #716f65; +-moz-box-shadow: 1px 1px 20px #716f65, -1px -1px 20px #716f65; +box-shadow: 1px 1px 20px #716f65, -1px -1px 20px #716f65;} +.gcrn{width:529px;height:512px;position:relative;padding-left:21px;} +.gct{display:block;height:49px;width:519px;border-bottom:1px solid #eaeaea;color:#716f65;font-size:14px;line-height:49px;} + +.jsg{width:507px;border-top:1px solid #eaeaea;height:192px;margin-top:20px;padding:0px 6px;} +.jsgc{width:233px;height:191px;} +.jsgcp{display:block;height:43px;line-height:43px;color:#333;font-size:12px;} +.jsgtab{border-collapse: collapse;border: 1px solid #dddddd;} +.jsgtab td{border: 1px solid #dddddd;text-align:right;padding-right:10px;} +.jstr1 td{height:25px;} +.jstr2 td{height:41px;} +.tdbg{background:#f4f4f4;} +.jsgtab span{color:#ff6600;} +.jsd{font-size:12px;color:#ccc;padding-left:6px;line-height:40px;} +.gccha {display: block;width: 28px;height: 28px;background: url(images/cha.png) no-repeat;position: absolute;top: -14px;right: -22px;cursor: pointer;} + +.boxa1{font-size:14px;} +.boxa2{font-size:12px;color:#666;padding-bottom:12px;} +.boxa3{font-size:12px;color:#666;padding-bottom:26px;} +.boxa3 span{color:#00457c;} + +.tishi{background:url(../../i/tishi1.png) no-repeat;font-size:12px;color:#ff0000;display:block;width:75px;height:33px;line-height:33px;padding-left:31px;margin-bottom:8px;position:absolute;top:0px;right:0px;} +.tishi2{background:url(../../i/tishi.png) no-repeat;font-size:12px;color:#ff0000;display:block;width:96px;height:33px;line-height:33px;padding-left:31px;margin-bottom:8px;position:absolute;top:0px;right:0px;} +.mb46{margin-bottom:46px;} + +.z999{z-index:999;} +.z99{z-index:99;} +.z9{z-index:9;} +.z8{z-index:8;} +.ml22{margin-left:22px;} + +.clea{clear:both;} +.xin{position:relative;width:608px;height:64px;margin:0 auto;} + +/*浣跨敤鍗忚*/ +.xyt{height:64px;border-bottom:1px solid #eaeaea;background:#f8f8f8;font-size:14px;color:#333;font-weight:bold;line-height:64px;text-align:center;} +.xyn{width:590px;height:250px;margin:22px auto 20px auto;background:#FFF;padding:10px;font-size:12px;color:#333;overflow-y:scroll;border:1px solid #cdcdcd;} +.xyn p{line-height:26px;} +.guanbi{width:96px;height:38px;margin:0 auto;margin-bottom:20px;font-size:14px;color:#FFF;line-height:38px;text-align:center;background:url(images/tboxbtn3.png) no-repeat;display:block;text-decoration:none;} +.xyn ul{padding-left:20px;} +.xyn ul li{line-height:26px;list-style:decimal;} +span.dxw input{margin-right:4px;} + +/*===2013 7 30 ===*/ +.boxa1{color:#00457c;font-size:16px;} +.boxa2,.boxa3{padding:0px;} +.boxa4{color:#ff9900;padding:12px 0px 18px 0px;border-bottom:1px solid #eaeaea;font-size:12px;} +.boxa5{line-height:24px;color:#666;font-size:12px;margin:16px 0px;} +.boxdd{height:81px;}/*******7-31镙峰纺婧一嚭锅氢慨鏀?****/ +.texta{width:415px;height:65px;padding:5px;color:#999;} + +.tboxbtn3{float:left;width:96px;height:38px;text-align:center;line-height:38px;color:#FFF;background:url(images/tboxbtn3.png) no-repeat;text-decoration:none;margin-top:15px;margin-left:0px;} +.zfxz{color:#999;float:right;font-size:12px;margin-top:15px;display:block;} +.boxde{height:66px;width:429px;padding-left:159px;} + +/*2013骞?链?镞?/ +.jia{} +.time{width:140px;height:42px;border:1px solid #cdcdcd;position:relative;float:left;} +.time .ti{width:75px;height:14px;border:none 0;position:absolute;top:0px;left:0px;padding:14px 10px;} +.time span{display:block;width:42px;height:42px;background:#f8f8f8;border-left:1px solid #cdcdcd;position:absolute;top:0px;right:0px;text-align:Center;line-height:42px;color:#666;font-size:12px;} + +.tboxbr .se{width:295px;} +.tboxbr .sele{width:293px;} +.ml11{margin-left:11px;} +.tipbox .xiala{left:0px;} +.tipbox .xiala li{width:293px;} +.tipbox .xiala li a{width:281px;} +.z9 .tboxbr{z-index:100;} +.z8 .tboxbr{z-index:90;} + +.t2{width: 608px;margin: 0 auto;height:44px;padding:0px 15px;} +.t2l{width: 160px;float: left;font-size: 12px;color: #333;font-weight: bold;height:44px;line-height:44px;} +.t2r{width: 448px;float: left;position: relative;height:15px;margin-top:16px;font-size:12px;_margin-top:10px;} +.t2r span{line-height:20px;} +.t2r label{min-height: 20px; +padding-left: 20px;font-size:14px;} +.t2r label input{margin-right:8px;} +.xinpu{width: 608px;margin: 0 auto;height:44px;padding:0px 15px;margin-bottom:12px;} +.xinpul{width: 160px;float: left;font-size: 12px;color: #333;font-weight: bold;height:44px;line-height:44px;} +.xinpur{width: 448px;float: left;position: relative;height:15px;font-size:12px;_margin-top:5px;} +.xinbiao{width:293px;height:42px;border:1px solid #cdcdcd;position:relative;} +.xbinp{width:230px;height:14px;border:none 0;position:absolute;top:0px;left:0px;padding:14px 10px;} +.xinbiao span{display:block;width:42px;height:42px;background:#f8f8f8;border-left:1px solid #cdcdcd;position:absolute;top:0px;right:0px;text-align:Center;line-height:42px;color:#666;font-size:12px;} +.xinbor{border-bottom:1px solid #cdcdcd;width: 608px;margin: 0 auto;} +.mt5{margin-top:5px;} diff --git a/source/plugin/dzapp_haodai/images/wap/fdjsq.js b/source/plugin/dzapp_haodai/images/wap/fdjsq.js index fe17851..c6053a2 100644 --- a/source/plugin/dzapp_haodai/images/wap/fdjsq.js +++ b/source/plugin/dzapp_haodai/images/wap/fdjsq.js @@ -1,817 +1,817 @@ -var gjj_a = 100; -var gongjj_je = 100; -var gjj_b2 = 240; -var zuhe_b1 = 240; -var sydk_lv = 6.55; -var sydkmj_lv = 6.55; -var sydkmj_etflv = 7.926; -var zuhedk_lv = 6.55; -var gjjdk_lv = 4.50; -var zhgjj_ll = 4.50; -var mj_sf = 0.3; -var etfmj_sf = 0.6; -var gjjmj_sf = 0.3; -var gjjmj_etf_sf = 0.6; -var gjj_bmj = 240; -var etf_bmj = 240; -var gjj_gjj = 240; -var gjmj_gjj = 240; -var gjmjetf_gjj = 240; -var gjj_pmdj = true; -var gjj_mj = true; -var gjj_zj = true; -var gjj_dkje = true; -var gjj_je = true; -var dk_lilv = true; -var business_sum = true; -var gjj_eds_dkje = true; -var gong_mj = true; -var gong_pmdj = true; -var zuhesydk = true; -var zhgjjdk = true; -$(document).ready(function() { - szyz(); - szyz_mj(); - szyz_pfdj(); - szyz_fwzj(); - szyz_gongjj(); - syyz_gjjmj(); - szyz_gjjpfdj(); - szyz_zhsy(); - szyz_zhgjj(); - kuanTab(); - $($("#tab_one").find("input[name='pattern_jisuan']")[0]).attr("checked", true); - $($("#tab_tow").find("input[name='pattern_tow']")[0]).attr("checked", true); - $($("#edfangshi").find("input[name='pattern_ed']")[0]).attr("checked", true); - $($("#mjfangshi").find("input[name='pattern_mj']")[0]).attr("checked", true); - $($("#gjjfangshi").find("input[name='gongdebx']")[0]).attr("checked", true); - $($("#taofang").find("input[name='pattern_ytf']")[0]).attr("checked", true); - $($("#gjjgfxz").find("input[name='ax-pattern']")[0]).attr("checked", true); - $($("#gjjf_de").find("input[name='gjjf_de']")[0]).attr("checked", true); - $($("#zuhede").find("input[name='zhdeb']")[0]).attr("checked", true); - $($("#etfmjfangshi").find("input[name='pattern_mj']")[0]).attr("checked", true); - $($("#gjjetf_fangshi").find("input[name='gjjetf_de']")[0]).attr("checked", true); -}); -function kuanTab() { - var Li = $('#nav_list li'); - Li.click(function() { - var fgd = $(this).hasClass('fjg'); - var num = $(this).index(); - var thisCon = Li.parents('#content').children('.loan_con').eq(num); - if (fgd == false) { - Li.removeClass('fjg'); - $(this).addClass('fjg'); - $('.loan_con').hide(); - thisCon.show(); - }; - }); -} - -function dkjCK(obj) { - var obj = $(obj); - var xsuo = obj.parent().children('.loan_div').children('.loan_li_selectcon'); - var ads = xsuo.hasClass('none'); - if (ads == true) { - xsuo.removeClass('none'); - } else { - xsuo.addClass('none'); - } -} - -function lotypeSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_type01').html(); - var This_word = obj.html(); - $('#loan_type01').html(This_word); - var sey_reval = $('#loan_type01').attr('reval'); - var This_reval = obj.attr('reval'); - $('#loan_type01').attr('reval', This_reval); -} -function ynewSelect() { - $('#lv_pop_list').click(function() { - var js_yon = $('#lv_list_options').hasClass('none'); - if (js_yon == true) { - $('#lv_list_options').removeClass('none'); - } else { - $('#lv_list_options').addClass('none'); - } - - }); -} -function zhdkll(zhlv) { - var bthis = $(zhlv); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type07'); - var jsli = $('#zhdkll_list li a'); - var jsul = $('#zhdkll_list'); - var jsshow_reval = jsshow.attr('reval'); - var jscontent = $('#zuhedk_rate'); - jscontent.val(js_reval); - jscontent = js_reval; - jsshow_reval = js_reval; - zuhedk_lv = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', zuhedk_lv); - return zuhedk_lv; -} -function sydk(sylv) { - var bthis = $(sylv); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type02'); - var jsli = $('#lv_list_options li a'); - var jsul = $('#lv_list_options'); - var jsshow_reval = jsshow.attr('reval'); - var jscontent = $('#business_rate'); - jscontent.val(js_reval); - jscontent = js_reval; - jsshow_reval = js_reval; - sydk_lv = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', sydk_lv); - return sydk_lv; -} -function sydkmj(sylv) { - var bthis = $(sylv); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type05'); - var jsli = $('#sydkmj_list li a'); - var jsul = $('#sydkmj_list'); - var jsshow_reval = jsshow.attr('reval'); - var jscontent = $('#business_rate_mj'); - jscontent.val(js_reval); - jscontent = js_reval; - jsshow_reval = js_reval; - sydkmj_lv = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', sydkmj_lv); - return sydkmj_lv; -} - -function sydkmjetf(sylv) { - var bthis = $(sylv); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type55'); - var jsli = $('#sydkmj_etflist li a'); - var jsul = $('#sydkmj_etflist'); - var jsshow_reval = jsshow.attr('reval'); - var jscontent = $('#business_rate_etfmj'); - jscontent.val(js_reval); - jscontent = js_reval; - jsshow_reval = js_reval; - sydkmj_etflv = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', sydkmj_etflv); - return sydkmj_etflv; -} -function sydk_mjsf(mjsf) { - var bthis = $(mjsf); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type03'); - var jsli = $('#lv_list_sf li a'); - var jsul = $('#lv_list_sf'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - mj_sf = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', mj_sf); - return mj_sf; -} - -function sydk_etfjsf(mjsf) { - var bthis = $(mjsf); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type22'); - var jsli = $('#etf_list_sf li a'); - var jsul = $('#etf_list_sf'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - etfmj_sf = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', etfmj_sf); - return etfmj_sf; -} -function sydk_gjjmjsf(mjsf) { - var bthis = $(mjsf); - var js_reval = bthis.attr('reval'); - var jsshow = $('#funds_type'); - var jsli = $('#funds_type_list li a'); - var jsul = $('#funds_type_list'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjjmj_sf = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', gjjmj_sf); - return gjjmj_sf; -} - -function gjjdk_etf(mjsf) { - var bthis = $(mjsf); - var js_reval = bthis.attr('reval'); - var jsshow = $('#funds_etf_type'); - var jsli = $('#funds_etf_type_list li a'); - var jsul = $('#funds_etf_type_list'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjjmj_etf_sf = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - return gjjmj_etf_sf; -} - -function shoufueSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_type03').html(); - var This_word = obj.html(); - $('#loan_type03').html(This_word); - var sey_reval = $('#loan_type03').attr('reval'); - var This_reval = obj.attr('reval'); -} -function qitimeSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_type04').html(); - var This_word = obj.html(); - $('#loan_type04').html(This_word); - var sey_reval = $('#loan_type04').attr('reval'); - var This_reval = obj.attr('reval'); - $('#loan_type04').attr('reval', This_reval); -} -function yearlSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_type05').html(); - var This_word = obj.html(); - $('#loan_type05').html(This_word); - var sey_reval = $('#loan_type05').attr('reval'); - var This_reval = obj.attr('reval'); - $('#loan_type05').attr('reval', This_reval); -} -function symonth(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_type08').html(); - var This_word = obj.html(); - $('#loan_type08').html(This_word); - var sey_reval = $('#loan_type08').attr('reval'); - var This_reval = obj.attr('reval'); - $('#loan_type08').attr('reval', This_reval); -} -function daikSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_type09').html(); - var This_word = obj.html(); - $('#loan_type09').html(This_word); - var sey_reval = $('#loan_type09').attr('reval'); - var This_reval = obj.attr('reval'); - $('#loan_type09').attr('reval', This_reval); -} -function zuhedkeSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_type06').html(); - var This_word = obj.html(); - $('#loan_type06').html(This_word); - var sey_reval = $('#loan_type06').attr('reval'); - var This_reval = obj.attr('reval'); - $('#loan_type06').attr('reval', This_reval); -} -function zuheyearSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_type07').html(); - var This_word = obj.html(); - $('#loan_type07').html(This_word); - var sey_reval = $('#loan_type07').attr('reval'); - var This_reval = obj.attr('reval'); - $('#loan_type07').attr('reval', This_reval); -} -function fundsSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#funds_type').html(); - var This_word = obj.html(); - $('#funds_type').html(This_word); - var sey_reval = $('#funds_type').attr('reval'); - var This_reval = obj.attr('reval'); - $('#funds_type').attr('reval', This_reval); -} -function fundsdkSelect(obj) { - var obj = $(obj); - var hjm = obj.parent().parent('.loan_li_selectcon'); - hjm.addClass('none'); - var sey_word = $('#loan_funds').html(); - var This_word = obj.html(); - $('#loan_funds').html(This_word); - var sey_reval = $('#loan_funds').attr('reval'); - var This_reval = obj.attr('reval'); - $('#loan_funds').attr('reval', This_reval); -} - -function dkmoney(obj) { - czjsq(); - gjj_czjs(); - var obj = $(obj); - var mo = obj.parents().children('.dkmoney'); - var me = obj.parents().children('.area'); - me.hide(); - mo.show(); -} -function area(obj) { - czjsq(); - gjj_czjs(); - var obj = $(obj); - var mo = obj.parents().children('.dkmoney'); - var me = obj.parents().children('.area'); - mo.hide(); - me.show(); -} - -function czjsq() { - $('#business_sum').val('100'); - $('#ks_year_1').text(0); - $('#ks_year_2').text(0); - $('#ks_year').text(0); - $('#ks_zlx_1').text(0); - $('#ks_zlx_2').text(0); - $('#ks_zlx').text(0); - $('#sy_lxze').text(0); - $('#sy_myyg').text(0); - $('#sy_ljhk').text(0); - $('#sy_yxxdy').text(0); - $('#business_mj').val(''); - $('#business_pmdj').val(''); - $('#mj_fwzj').text(0); - $('#business_dkje').text(0); -} - -function gjj_czjs() { - $('#gjj_eds_dkje').val('100'); - $('#gjj_year_1').text(0); - $('#gjj_year_2').text(0); - $('#gjj_year').text(0); - $('#gjj_zlx_1').text(0); - $('#gjj_zlx_2').text(0); - $('#gjj_zlx').text(0); - $('#gjj_lxze').text(0); - $('#gjj_myyg').text(0); - $('#gjj_ljhk').text(0); - $('#gjj_yxxdy').text(0); - $('#business_gjjmj').val(''); - $('#business_gjjpfdj').val(''); - $('#gjjmj_fwzj').text(0); - $('#gjj_dkje').text(0); - -} - -function zuhe_cjjs() { - $('#zuhesydk').val(''); - $('#zhgjjdk').val(''); -} -function sydklv() { - $('#lv_pop_list').click(function() { - var js_yon = $('#lv_list_options').hasClass('none'); - if (js_yon == true) { - $('#lv_list_options').removeClass('none'); - } else { - $('#lv_list_options').addClass('none'); - } - }); -} -function sy_month(gjjbb) { - var bthis = $(gjjbb); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type01'); - var jsli = $('#sydk_options li a'); - var jsul = $('#sydk_options'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjj_b2 = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', gjj_b2); - return gjj_b2; -} -function symj_month(gjjbb) { - var bthis = $(gjjbb); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type04'); - var jsli = $('#symj_qx_list li a'); - var jsul = $('#symj_qx_list'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjj_bmj = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', gjj_bmj); - return gjj_bmj; -} -function symjetf_month(gjjbb) { - var bthis = $(gjjbb); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type44'); - var jsli = $('#etf_qx_list li a'); - var jsul = $('#etf_qx_list'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - etf_bmj = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', etf_bmj); - return etf_bmj; -} - -function gjjdk_month(gjjbb) { - var bthis = $(gjjbb); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type08'); - var jsli = $('#gjjdk_list li a'); - var jsul = $('#gjjdk_list'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjj_gjj = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', gjj_gjj); - return gjj_gjj; -} -function gjjmjdk_month(gjjbb) { - var bthis = $(gjjbb); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type09'); - var jsli = $('#gjjmjdk_list li a'); - var jsul = $('#gjjmjdk_list'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjmj_gjj = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', gjmj_gjj); - return gjmj_gjj; -} -function gjjmjetf_month(gjjbb) { - var bthis = $(gjjbb); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type99'); - var jsli = $('#gjjmjetf_list li a'); - var jsul = $('#gjjmjetf_list'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - gjmjetf_gjj = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', gjmjetf_gjj); - return gjmjetf_gjj; -} -function zh_month(gjjbb) { - var bthis = $(gjjbb); - var js_reval = bthis.attr('reval'); - var jsshow = $('#loan_type06'); - var jsli = $('#zuhe_year_list li a'); - var jsul = $('#zuhe_year_list'); - var jsshow_reval = jsshow.attr('reval'); - jsshow_reval = js_reval; - zuhe_b1 = jsshow_reval; - jsshow.text(bthis.text()); - jsli.removeClass('mo'); - bthis.addClass('mo'); - jsul.addClass('none'); - jsshow.attr('reval', zuhe_b1); - return zuhe_b1; -} -function szyz(gjj_a) { - var cipt = $('#business_sum'); - var gjj_a = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.js_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('金额不能为空'); - business_sum = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - business_sum = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - business_sum = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gjj_a; -} - -function szyz_mj(gjj_e) { - var cipt = $('#business_mj') - var gjj_e = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.jsmj_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gjj_mj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gjj_mj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - gjj_mj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gjj_e; -} -function syyz_gjjmj(gongjj_mj) { - var cipt = $('#business_gjjmj') - var gongjj_mj = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.gongmj_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gong_mj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gong_mj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - gong_mj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gongjj_mj; -} -function szyz_pfdj(gjj_d) { - var cipt = $('#business_pmdj') - var gjj_d = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.jspfdj_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gjj_pmdj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gjj_pmdj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - gjj_pmdj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gjj_d; -} - -function szyz_gjjpfdj(gjj_pfdj) { - var cipt = $('#business_gjjpfdj') - var gjj_pfdj = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.gongpfdj_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gong_pmdj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gong_pmdj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - gong_pmdj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gjj_pfdj; -} -function szyz_fwzj(gjj_z) { - var cipt = $('#business_fwzj') - var gjj_z = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.jsfwzj_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gjj_zj = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gjj_zj = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - gjj_zj = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gjj_z; -} - -function szyz_gongjj(gongjj_je) { - var cipt = $('#gjj_eds_dkje') - var gongjj_je = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.gongjj_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('不能为空'); - gjj_eds_dkje = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - gjj_eds_dkje = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - gjj_eds_dkje = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return gongjj_je; -} - -function szyz_zhsy(zhsy_a) { - var cipt = $('#zuhesydk'); - var zhsy_a = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.zuhesydk_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('金额不能为空'); - zuhesydk = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - zuhesydk = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - zuhesydk = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return zhsy_a; -} -function szyz_zhgjj(zhsy_gjj) { - var cipt = $('#zhgjjdk'); - var zhsy_gjj = cipt.val(); - cipt.blur(function() { - var Cprice_val = cipt.val(); - var Tprice_val = $.trim(Cprice_val); - var error_ts = $('.zuhegjjdk_error'); - if (Tprice_val == "") { - error_ts.removeClass('none'); - error_ts.text('金额不能为空'); - zhgjjdk = false; - } else if (Tprice_val.length > 0) { - if (!isNaN(Tprice_val)) { - error_ts.addClass('none'); - cipt.addClass('success_ts'); - zhgjjdk = true; - } else { - error_ts.removeClass('none'); - error_ts.text('请输入数字'); - cipt.addClass('error_ts'); - zhgjjdk = false; - } - } - }); - cipt.focus(function() { - cipt.removeClass('success_ts'); - cipt.removeClass('error_ts'); - }); - return zhsy_gjj; -} - -function yixztf(obj) { - var obj = $(obj); - var mo = obj.parents('.area').children('.yi_taofang'); - var me = obj.parents('.area').children('.er_taofang'); - me.hide(); - mo.show(); - -} -function erxztf(obj) { - var obj = $(obj); - var mo = obj.parents('.area').children('.yi_taofang'); - var me = obj.parents('.area').children('.er_taofang'); - mo.hide(); - me.show(); +var gjj_a = 100; +var gongjj_je = 100; +var gjj_b2 = 240; +var zuhe_b1 = 240; +var sydk_lv = 6.55; +var sydkmj_lv = 6.55; +var sydkmj_etflv = 7.926; +var zuhedk_lv = 6.55; +var gjjdk_lv = 4.50; +var zhgjj_ll = 4.50; +var mj_sf = 0.3; +var etfmj_sf = 0.6; +var gjjmj_sf = 0.3; +var gjjmj_etf_sf = 0.6; +var gjj_bmj = 240; +var etf_bmj = 240; +var gjj_gjj = 240; +var gjmj_gjj = 240; +var gjmjetf_gjj = 240; +var gjj_pmdj = true; +var gjj_mj = true; +var gjj_zj = true; +var gjj_dkje = true; +var gjj_je = true; +var dk_lilv = true; +var business_sum = true; +var gjj_eds_dkje = true; +var gong_mj = true; +var gong_pmdj = true; +var zuhesydk = true; +var zhgjjdk = true; +$(document).ready(function() { + szyz(); + szyz_mj(); + szyz_pfdj(); + szyz_fwzj(); + szyz_gongjj(); + syyz_gjjmj(); + szyz_gjjpfdj(); + szyz_zhsy(); + szyz_zhgjj(); + kuanTab(); + $($("#tab_one").find("input[name='pattern_jisuan']")[0]).attr("checked", true); + $($("#tab_tow").find("input[name='pattern_tow']")[0]).attr("checked", true); + $($("#edfangshi").find("input[name='pattern_ed']")[0]).attr("checked", true); + $($("#mjfangshi").find("input[name='pattern_mj']")[0]).attr("checked", true); + $($("#gjjfangshi").find("input[name='gongdebx']")[0]).attr("checked", true); + $($("#taofang").find("input[name='pattern_ytf']")[0]).attr("checked", true); + $($("#gjjgfxz").find("input[name='ax-pattern']")[0]).attr("checked", true); + $($("#gjjf_de").find("input[name='gjjf_de']")[0]).attr("checked", true); + $($("#zuhede").find("input[name='zhdeb']")[0]).attr("checked", true); + $($("#etfmjfangshi").find("input[name='pattern_mj']")[0]).attr("checked", true); + $($("#gjjetf_fangshi").find("input[name='gjjetf_de']")[0]).attr("checked", true); +}); +function kuanTab() { + var Li = $('#nav_list li'); + Li.click(function() { + var fgd = $(this).hasClass('fjg'); + var num = $(this).index(); + var thisCon = Li.parents('#content').children('.loan_con').eq(num); + if (fgd == false) { + Li.removeClass('fjg'); + $(this).addClass('fjg'); + $('.loan_con').hide(); + thisCon.show(); + }; + }); +} + +function dkjCK(obj) { + var obj = $(obj); + var xsuo = obj.parent().children('.loan_div').children('.loan_li_selectcon'); + var ads = xsuo.hasClass('none'); + if (ads == true) { + xsuo.removeClass('none'); + } else { + xsuo.addClass('none'); + } +} + +function lotypeSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_type01').html(); + var This_word = obj.html(); + $('#loan_type01').html(This_word); + var sey_reval = $('#loan_type01').attr('reval'); + var This_reval = obj.attr('reval'); + $('#loan_type01').attr('reval', This_reval); +} +function ynewSelect() { + $('#lv_pop_list').click(function() { + var js_yon = $('#lv_list_options').hasClass('none'); + if (js_yon == true) { + $('#lv_list_options').removeClass('none'); + } else { + $('#lv_list_options').addClass('none'); + } + + }); +} +function zhdkll(zhlv) { + var bthis = $(zhlv); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type07'); + var jsli = $('#zhdkll_list li a'); + var jsul = $('#zhdkll_list'); + var jsshow_reval = jsshow.attr('reval'); + var jscontent = $('#zuhedk_rate'); + jscontent.val(js_reval); + jscontent = js_reval; + jsshow_reval = js_reval; + zuhedk_lv = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', zuhedk_lv); + return zuhedk_lv; +} +function sydk(sylv) { + var bthis = $(sylv); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type02'); + var jsli = $('#lv_list_options li a'); + var jsul = $('#lv_list_options'); + var jsshow_reval = jsshow.attr('reval'); + var jscontent = $('#business_rate'); + jscontent.val(js_reval); + jscontent = js_reval; + jsshow_reval = js_reval; + sydk_lv = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', sydk_lv); + return sydk_lv; +} +function sydkmj(sylv) { + var bthis = $(sylv); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type05'); + var jsli = $('#sydkmj_list li a'); + var jsul = $('#sydkmj_list'); + var jsshow_reval = jsshow.attr('reval'); + var jscontent = $('#business_rate_mj'); + jscontent.val(js_reval); + jscontent = js_reval; + jsshow_reval = js_reval; + sydkmj_lv = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', sydkmj_lv); + return sydkmj_lv; +} + +function sydkmjetf(sylv) { + var bthis = $(sylv); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type55'); + var jsli = $('#sydkmj_etflist li a'); + var jsul = $('#sydkmj_etflist'); + var jsshow_reval = jsshow.attr('reval'); + var jscontent = $('#business_rate_etfmj'); + jscontent.val(js_reval); + jscontent = js_reval; + jsshow_reval = js_reval; + sydkmj_etflv = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', sydkmj_etflv); + return sydkmj_etflv; +} +function sydk_mjsf(mjsf) { + var bthis = $(mjsf); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type03'); + var jsli = $('#lv_list_sf li a'); + var jsul = $('#lv_list_sf'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + mj_sf = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', mj_sf); + return mj_sf; +} + +function sydk_etfjsf(mjsf) { + var bthis = $(mjsf); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type22'); + var jsli = $('#etf_list_sf li a'); + var jsul = $('#etf_list_sf'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + etfmj_sf = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', etfmj_sf); + return etfmj_sf; +} +function sydk_gjjmjsf(mjsf) { + var bthis = $(mjsf); + var js_reval = bthis.attr('reval'); + var jsshow = $('#funds_type'); + var jsli = $('#funds_type_list li a'); + var jsul = $('#funds_type_list'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjjmj_sf = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', gjjmj_sf); + return gjjmj_sf; +} + +function gjjdk_etf(mjsf) { + var bthis = $(mjsf); + var js_reval = bthis.attr('reval'); + var jsshow = $('#funds_etf_type'); + var jsli = $('#funds_etf_type_list li a'); + var jsul = $('#funds_etf_type_list'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjjmj_etf_sf = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + return gjjmj_etf_sf; +} + +function shoufueSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_type03').html(); + var This_word = obj.html(); + $('#loan_type03').html(This_word); + var sey_reval = $('#loan_type03').attr('reval'); + var This_reval = obj.attr('reval'); +} +function qitimeSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_type04').html(); + var This_word = obj.html(); + $('#loan_type04').html(This_word); + var sey_reval = $('#loan_type04').attr('reval'); + var This_reval = obj.attr('reval'); + $('#loan_type04').attr('reval', This_reval); +} +function yearlSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_type05').html(); + var This_word = obj.html(); + $('#loan_type05').html(This_word); + var sey_reval = $('#loan_type05').attr('reval'); + var This_reval = obj.attr('reval'); + $('#loan_type05').attr('reval', This_reval); +} +function symonth(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_type08').html(); + var This_word = obj.html(); + $('#loan_type08').html(This_word); + var sey_reval = $('#loan_type08').attr('reval'); + var This_reval = obj.attr('reval'); + $('#loan_type08').attr('reval', This_reval); +} +function daikSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_type09').html(); + var This_word = obj.html(); + $('#loan_type09').html(This_word); + var sey_reval = $('#loan_type09').attr('reval'); + var This_reval = obj.attr('reval'); + $('#loan_type09').attr('reval', This_reval); +} +function zuhedkeSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_type06').html(); + var This_word = obj.html(); + $('#loan_type06').html(This_word); + var sey_reval = $('#loan_type06').attr('reval'); + var This_reval = obj.attr('reval'); + $('#loan_type06').attr('reval', This_reval); +} +function zuheyearSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_type07').html(); + var This_word = obj.html(); + $('#loan_type07').html(This_word); + var sey_reval = $('#loan_type07').attr('reval'); + var This_reval = obj.attr('reval'); + $('#loan_type07').attr('reval', This_reval); +} +function fundsSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#funds_type').html(); + var This_word = obj.html(); + $('#funds_type').html(This_word); + var sey_reval = $('#funds_type').attr('reval'); + var This_reval = obj.attr('reval'); + $('#funds_type').attr('reval', This_reval); +} +function fundsdkSelect(obj) { + var obj = $(obj); + var hjm = obj.parent().parent('.loan_li_selectcon'); + hjm.addClass('none'); + var sey_word = $('#loan_funds').html(); + var This_word = obj.html(); + $('#loan_funds').html(This_word); + var sey_reval = $('#loan_funds').attr('reval'); + var This_reval = obj.attr('reval'); + $('#loan_funds').attr('reval', This_reval); +} + +function dkmoney(obj) { + czjsq(); + gjj_czjs(); + var obj = $(obj); + var mo = obj.parents().children('.dkmoney'); + var me = obj.parents().children('.area'); + me.hide(); + mo.show(); +} +function area(obj) { + czjsq(); + gjj_czjs(); + var obj = $(obj); + var mo = obj.parents().children('.dkmoney'); + var me = obj.parents().children('.area'); + mo.hide(); + me.show(); +} + +function czjsq() { + $('#business_sum').val('100'); + $('#ks_year_1').text(0); + $('#ks_year_2').text(0); + $('#ks_year').text(0); + $('#ks_zlx_1').text(0); + $('#ks_zlx_2').text(0); + $('#ks_zlx').text(0); + $('#sy_lxze').text(0); + $('#sy_myyg').text(0); + $('#sy_ljhk').text(0); + $('#sy_yxxdy').text(0); + $('#business_mj').val(''); + $('#business_pmdj').val(''); + $('#mj_fwzj').text(0); + $('#business_dkje').text(0); +} + +function gjj_czjs() { + $('#gjj_eds_dkje').val('100'); + $('#gjj_year_1').text(0); + $('#gjj_year_2').text(0); + $('#gjj_year').text(0); + $('#gjj_zlx_1').text(0); + $('#gjj_zlx_2').text(0); + $('#gjj_zlx').text(0); + $('#gjj_lxze').text(0); + $('#gjj_myyg').text(0); + $('#gjj_ljhk').text(0); + $('#gjj_yxxdy').text(0); + $('#business_gjjmj').val(''); + $('#business_gjjpfdj').val(''); + $('#gjjmj_fwzj').text(0); + $('#gjj_dkje').text(0); + +} + +function zuhe_cjjs() { + $('#zuhesydk').val(''); + $('#zhgjjdk').val(''); +} +function sydklv() { + $('#lv_pop_list').click(function() { + var js_yon = $('#lv_list_options').hasClass('none'); + if (js_yon == true) { + $('#lv_list_options').removeClass('none'); + } else { + $('#lv_list_options').addClass('none'); + } + }); +} +function sy_month(gjjbb) { + var bthis = $(gjjbb); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type01'); + var jsli = $('#sydk_options li a'); + var jsul = $('#sydk_options'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjj_b2 = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', gjj_b2); + return gjj_b2; +} +function symj_month(gjjbb) { + var bthis = $(gjjbb); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type04'); + var jsli = $('#symj_qx_list li a'); + var jsul = $('#symj_qx_list'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjj_bmj = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', gjj_bmj); + return gjj_bmj; +} +function symjetf_month(gjjbb) { + var bthis = $(gjjbb); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type44'); + var jsli = $('#etf_qx_list li a'); + var jsul = $('#etf_qx_list'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + etf_bmj = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', etf_bmj); + return etf_bmj; +} + +function gjjdk_month(gjjbb) { + var bthis = $(gjjbb); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type08'); + var jsli = $('#gjjdk_list li a'); + var jsul = $('#gjjdk_list'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjj_gjj = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', gjj_gjj); + return gjj_gjj; +} +function gjjmjdk_month(gjjbb) { + var bthis = $(gjjbb); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type09'); + var jsli = $('#gjjmjdk_list li a'); + var jsul = $('#gjjmjdk_list'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjmj_gjj = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', gjmj_gjj); + return gjmj_gjj; +} +function gjjmjetf_month(gjjbb) { + var bthis = $(gjjbb); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type99'); + var jsli = $('#gjjmjetf_list li a'); + var jsul = $('#gjjmjetf_list'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + gjmjetf_gjj = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', gjmjetf_gjj); + return gjmjetf_gjj; +} +function zh_month(gjjbb) { + var bthis = $(gjjbb); + var js_reval = bthis.attr('reval'); + var jsshow = $('#loan_type06'); + var jsli = $('#zuhe_year_list li a'); + var jsul = $('#zuhe_year_list'); + var jsshow_reval = jsshow.attr('reval'); + jsshow_reval = js_reval; + zuhe_b1 = jsshow_reval; + jsshow.text(bthis.text()); + jsli.removeClass('mo'); + bthis.addClass('mo'); + jsul.addClass('none'); + jsshow.attr('reval', zuhe_b1); + return zuhe_b1; +} +function szyz(gjj_a) { + var cipt = $('#business_sum'); + var gjj_a = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.js_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('金额不能为空'); + business_sum = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + business_sum = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + business_sum = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gjj_a; +} + +function szyz_mj(gjj_e) { + var cipt = $('#business_mj') + var gjj_e = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.jsmj_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gjj_mj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gjj_mj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + gjj_mj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gjj_e; +} +function syyz_gjjmj(gongjj_mj) { + var cipt = $('#business_gjjmj') + var gongjj_mj = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.gongmj_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gong_mj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gong_mj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + gong_mj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gongjj_mj; +} +function szyz_pfdj(gjj_d) { + var cipt = $('#business_pmdj') + var gjj_d = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.jspfdj_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gjj_pmdj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gjj_pmdj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + gjj_pmdj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gjj_d; +} + +function szyz_gjjpfdj(gjj_pfdj) { + var cipt = $('#business_gjjpfdj') + var gjj_pfdj = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.gongpfdj_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gong_pmdj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gong_pmdj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + gong_pmdj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gjj_pfdj; +} +function szyz_fwzj(gjj_z) { + var cipt = $('#business_fwzj') + var gjj_z = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.jsfwzj_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gjj_zj = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gjj_zj = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + gjj_zj = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gjj_z; +} + +function szyz_gongjj(gongjj_je) { + var cipt = $('#gjj_eds_dkje') + var gongjj_je = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.gongjj_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('不能为空'); + gjj_eds_dkje = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + gjj_eds_dkje = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + gjj_eds_dkje = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return gongjj_je; +} + +function szyz_zhsy(zhsy_a) { + var cipt = $('#zuhesydk'); + var zhsy_a = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.zuhesydk_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('金额不能为空'); + zuhesydk = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + zuhesydk = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + zuhesydk = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return zhsy_a; +} +function szyz_zhgjj(zhsy_gjj) { + var cipt = $('#zhgjjdk'); + var zhsy_gjj = cipt.val(); + cipt.blur(function() { + var Cprice_val = cipt.val(); + var Tprice_val = $.trim(Cprice_val); + var error_ts = $('.zuhegjjdk_error'); + if (Tprice_val == "") { + error_ts.removeClass('none'); + error_ts.text('金额不能为空'); + zhgjjdk = false; + } else if (Tprice_val.length > 0) { + if (!isNaN(Tprice_val)) { + error_ts.addClass('none'); + cipt.addClass('success_ts'); + zhgjjdk = true; + } else { + error_ts.removeClass('none'); + error_ts.text('请输入数字'); + cipt.addClass('error_ts'); + zhgjjdk = false; + } + } + }); + cipt.focus(function() { + cipt.removeClass('success_ts'); + cipt.removeClass('error_ts'); + }); + return zhsy_gjj; +} + +function yixztf(obj) { + var obj = $(obj); + var mo = obj.parents('.area').children('.yi_taofang'); + var me = obj.parents('.area').children('.er_taofang'); + me.hide(); + mo.show(); + +} +function erxztf(obj) { + var obj = $(obj); + var mo = obj.parents('.area').children('.yi_taofang'); + var me = obj.parents('.area').children('.er_taofang'); + mo.hide(); + me.show(); } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/haodai.js b/source/plugin/dzapp_haodai/images/wap/haodai.js index 72e1ef8..4b1f7fe 100644 --- a/source/plugin/dzapp_haodai/images/wap/haodai.js +++ b/source/plugin/dzapp_haodai/images/wap/haodai.js @@ -1,387 +1,387 @@ -JGPmoney = false; -JGPmonth = false; -CompanyType = false; -dgdsMoney= false; -BusinessTime= false; -ApplyOne_yon = false; -UserName = false; -Tel = false; -Email = true; -applyArea = true; -$(document).ready(function() { - HomeIconW(); -}); -function HomeiptFoc(){ - $('.ipt_ts').text(''); -} -function HomeSearchYZ(){ - var moneyVal = $('#dkMoney').val(); - if(moneyVal.length == 0){ - $('#money_ts').text('金额别忘了填哦'); - }else{ - if(!isNaN(moneyVal)){ - if (moneyVal < 0 || moneyVal > 6000) { - $('#money_ts').text('只限0~6000万'); - JGPmoney = false; - } else {JGPmoney = true;} - } else { - $('#money_ts').text('只填纯数字哟'); - JGPmoney = false; - } - } - var monthVal = $('#dkMonth').val(); - if(monthVal.length == 0){ - $('#month_ts').text('期限别忘了填哦'); - }else{ - if(!isNaN(monthVal)){ - if (monthVal <= 0 || monthVal > 840) { - $('#month_ts').text('只限0~840个月'); - JGPmonth = false; - } else { - JGPmonth = true; - } - }else{ - $('#month_ts').text('只填纯数字哟'); - JGPmoney = false; - } - } -} -function SearchFun(){ - HomeSearchYZ(); - if (JGPmoney == true && JGPmonth == true) { - var type_id = 1; - var money = $('#dkMoney').val(); - var time_dw = $('#time_dw').hasClass('geyue'); - var month = $('#dkMonth').val(); - var interest = 0; - var give_time = 0; - var bank_type = 9999; - fixed_url = '/money/' + money + '/month/' + month; - var site_url = window.location.host; - var url = "http://" + site_url + '/qitongbao/xindai'+ fixed_url; - window.open(url, "_self"); - return false; - } -} -function ProviewTab(obj){ - var obj = $(obj); - var td = $('#Proview_tab_tit td'); - td.removeClass('show_td'); - obj.addClass('show_td'); - var num = obj.index(); - var con = $('#Proview_tab_con .Proview_tab_c1'); - var objcon = con.eq(num); - con.hide(); - objcon.show(); - var zongHe = $('body').height(); - $("html, body").animate({ - scrollTop: zongHe - }, 1000); -} -function ApplyOne_yonCK(obj){ - var obj = $(obj); - var span = $('.changeOp span'); - var objspan = obj.find('span'); - span.removeClass('changeYes'); - objspan.addClass('changeYes'); - $('#ApplyOne_yonTS').text(''); -} -function hotkey(){ -var hotkeyArr = new Array('','私营企业','个体工商户','公务员/事业单位','大型垄断国企','世界500强企业','上市企业','普通企业','无固定职业'); -var hotkey = document.getElementById('CompanySelect').value; -var text = hotkeyArr[hotkey]; -document.getElementById('CompanyType').innerHTML = text; -$('#CompanyType').attr('value',hotkey); -} -function HSearchType(){ -var SelecteArr = new Array('','私营企业','个体工商户','公务员/事业单位','大型垄断国企','世界500强企业','上市企业','普通企业','无固定职业'); -var hotkey = document.getElementById('HSearchTypeLi').value; -var text = SelecteArr[hotkey]; -document.getElementById('HSearchType').innerHTML = text; -$('#HSearchType').attr('value',hotkey); - $('#HSearchType').css('color','#333'); -} -function BusinessTimeCK(){ - $('#BusinessTime').css('color','#333'); - var hotkeyArr = new Array('','不足半年','半年','1年','2年','3年','4年','5年以上(含5年)'); - var hotkey = document.getElementById('BusinessTimeSelect').value; - var text = hotkeyArr[hotkey]; - document.getElementById('BusinessTime').innerHTML = text; -$('#BusinessTime').attr('value',hotkey); -} -function applyOneYZ(){ - var c1val = $('#CompanyType').attr('value'); - if(c1val == ''){ - $('#companyTS').text('请您选择一个'); - }else { - CompanyType = true; - } - var c2val = $.trim($('#dgdsMoney').val()); - if(c2val == '请输入数字' || c2val == ''){ - $('#dgdsTS').text('请输入数字'); - dgdsMoney = false; - }else { - dgdsMoney = true; - } - var c3val = $('#BusinessTime').attr('value'); - if(c3val == ''){ - $('#BusinessTimeTS').text('请您选择一个'); - }else { - BusinessTime = true; - } - var c4yon = $('.ApplyOne_yon .changeOp span').hasClass('changeYes'); - if(c4yon == false){ - $('#ApplyOne_yonTS').text('请您选择一个'); - ApplyOne_yon = false; - }else { - ApplyOne_yon = true; - } -} -function applyTwoYZ(){ - var UserNameval = $.trim($('#UserName').val()); - if(UserNameval == '如:李先生'){ - $('#UserNameTS').text('请输入您的姓名'); - UserName = false; - }else { - var reg = /[^\u4E00-\u9FA5]+$/; - var boolean = !reg.test(UserNameval); - if (UserNameval.length > 0 && !reg.test(UserNameval)) { - UserName = true; - }else { - UserName = false; - $('#UserNameTS').text('请输入中文'); - } - } - var Telval = $.trim($('#UserTel').val()); - if(Telval == '用于接收信贷员联系方式'){ - Tel = false; - $('#UserTelTS').text('请输入手机号码'); - }else { - if(checkMobile(Telval)){ - Tel = true; - }else{ - Tel = false; - $('#UserTelTS').text('手机号格式不对哦'); - } - } - var Emailval = $.trim($('#UserEmail').val()); - if(Emailval == '用于获取申请贷款所需材料(可选填)'){ - }else { - if(checkEmail(Emailval)){ - Email = true; - }else{ - Email = false; - $('#UserEmailTS').text('邮件格式不对哦'); - } - } -} -function applyThreeYZ(){ - var val = $.trim($('#applyArea').val()); - var num = val.length; - var count = 140; - if (num > count) { - var yewnum = $(obj).val().substr(0, count) - $('#applyAreaTS').text('不超过140字哦'); - applyArea = false; - }else if(num < 5){ - $('#applyAreaTS').text('至少五个字,继续加油!'); - applyArea = false; - }else { - applyArea = true; - } -} -function ApplyCK(nextName){ - if(nextName == 'Applyone'){ - applyOneYZ(); - if(CompanyType == true && dgdsMoney == true && BusinessTime == true && ApplyOne_yon == true){ - window.open('ApplyTwo.html'); - } - }else if(nextName == 'Applytwo'){ - applyTwoYZ(); - if(UserName == true && Tel == true && Email == true){ - window.open('ApplyThree.html'); - } - }else if(nextName == 'ApplyThree'){ - var val = $.trim($('#applyArea').val()); - var num = val.length; - if(num > 0){ - applyThreeYZ(); - if(applyArea == true){ - window.open('ApplyFour.html'); - } - }else { - window.open('ApplyFour.html'); - } - } -} -function hideTS(obj){ - $('.ApplyOne_li_ts').text(''); -} -function dgdsFoc(obj){ - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if(val == '请输入数字'){ - obj.css('color','#999'); - obj.val(''); - } - obj.css('color','#333'); -} -function dgdsBlu(obj){ - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if(val == ''){ - obj.val('请输入数字'); - obj.css('color','#999'); - } -} -function usernameFoc(obj){ - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if(val == '如:李先生'){ - obj.css('color','#999'); - obj.val(''); - } - obj.css('color','#333'); -} -function usernameBlu(obj){ - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if(val == ''){ - obj.val('如:李先生'); - obj.css('color','#999'); - } -} -function telFoc(obj){ - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if(val == '用于接收信贷员联系方式'){ - obj.css('color','#999'); - obj.val(''); - } - obj.css('color','#333'); -} -function telBlu(obj){ - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if(val == ''){ - obj.val('用于接收信贷员联系方式'); - obj.css('color','#999'); - } -} -function emailFoc(obj){ - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if(val == '用于获取申请贷款所需材料(可选填)'){ - obj.css('color','#999'); - obj.val(''); - } - obj.css('color','#333'); -} -function emailBlu(obj){ - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if(val == ''){ - obj.val('用于获取申请贷款所需材料(可选填)'); - obj.css('color','#999'); - } -} -function applyAreaFoc(obj){ - var obj = $(obj); - var applyArea = obj.parents('.applyArea'); - obj.text(''); - obj.css('color','#333'); - applyArea.css('border','1px solid #2babef'); -} -function applyAreaBlu(obj){ - var obj = $(obj); - var val = $.trim(obj.val()); - var length = val.length; - if(length > 0){ - obj.css('color','#999'); - }else { - obj.css('color','#666'); - } - var applyArea = obj.parents('.applyArea'); - applyArea.css('border','1px solid #ccc'); -} - -function checkMobile(s) { - var regu = /^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/; - var re = new RegExp(regu); - if (re.test(s)) { - return true; - } - else { - return false; - } -} -function checkEmail(yx){ - var reyx=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\-])+\.)+([a-zA-Z0-9]{2,4})+$/; - return(reyx.test(yx)); -} -function ChangeCity(){ - $('#CityChange').toggle(); -}; -function ChangeCityLi(obj){ - var obj = $(obj); - var bojhtml = obj.html(); - var Shtml = $('#City').html(bojhtml); - document.getElementById('CityChange').style.display = "none"; -} -function ChangeCityTab(obj){ - var obj = $(obj); - var alltd = $('#CityChange table td'); - alltd.removeClass('SCityTab'); - obj.addClass('SCityTab'); - var num = obj.index(); - var citycon = $('.CityChangeTC_con'); - var Tcitycon = $('#CityChangeTC div.CityChangeTC_con').eq(num); - citycon.hide(); - Tcitycon.show(); -} -function HomeIconW(){ - var zongW = $(window).width(); - if(zongW == 320){} -} -function SearchTypeLiCK(obj){ - var obj = $(obj); - var reval = obj.attr('reval'); - if(reval == 0){ - $('.moreSearchTC_Nav li').removeClass('show'); - obj.addClass('show'); - $('.moreSearchTC_Con').hide(); - $('#ShopSearchCon').show(); - }else if(reval == 1){ - $('.moreSearchTC_Nav li').removeClass('show'); - obj.addClass('show'); - $('.moreSearchTC_Con').hide(); - $('#CompanySearchCon').show(); - }else if(reval == 2){ - $('.moreSearchTC_Nav li').removeClass('show'); - obj.addClass('show'); - $('.moreSearchTC_Con').hide(); - $('#CarSearchCon').show(); - }else if(reval == 3){ - $('.moreSearchTC_Nav li').removeClass('show'); - obj.addClass('show'); - $('.moreSearchTC_Con').hide(); - $('#HouseSearchCon').show(); - } -} -function MoreSearchCK(){ - var Msearch = $('#moreSearchTC'); - $('#SearchTCZZC').show(); - Msearch.show(); -} -function MoreSearchBack(){ - $('#moreSearchTC').hide(); - $('#SearchTCZZC').hide(); +JGPmoney = false; +JGPmonth = false; +CompanyType = false; +dgdsMoney= false; +BusinessTime= false; +ApplyOne_yon = false; +UserName = false; +Tel = false; +Email = true; +applyArea = true; +$(document).ready(function() { + HomeIconW(); +}); +function HomeiptFoc(){ + $('.ipt_ts').text(''); +} +function HomeSearchYZ(){ + var moneyVal = $('#dkMoney').val(); + if(moneyVal.length == 0){ + $('#money_ts').text('金额别忘了填哦'); + }else{ + if(!isNaN(moneyVal)){ + if (moneyVal < 0 || moneyVal > 6000) { + $('#money_ts').text('只限0~6000万'); + JGPmoney = false; + } else {JGPmoney = true;} + } else { + $('#money_ts').text('只填纯数字哟'); + JGPmoney = false; + } + } + var monthVal = $('#dkMonth').val(); + if(monthVal.length == 0){ + $('#month_ts').text('期限别忘了填哦'); + }else{ + if(!isNaN(monthVal)){ + if (monthVal <= 0 || monthVal > 840) { + $('#month_ts').text('只限0~840个月'); + JGPmonth = false; + } else { + JGPmonth = true; + } + }else{ + $('#month_ts').text('只填纯数字哟'); + JGPmoney = false; + } + } +} +function SearchFun(){ + HomeSearchYZ(); + if (JGPmoney == true && JGPmonth == true) { + var type_id = 1; + var money = $('#dkMoney').val(); + var time_dw = $('#time_dw').hasClass('geyue'); + var month = $('#dkMonth').val(); + var interest = 0; + var give_time = 0; + var bank_type = 9999; + fixed_url = '/money/' + money + '/month/' + month; + var site_url = window.location.host; + var url = "http://" + site_url + '/qitongbao/xindai'+ fixed_url; + window.open(url, "_self"); + return false; + } +} +function ProviewTab(obj){ + var obj = $(obj); + var td = $('#Proview_tab_tit td'); + td.removeClass('show_td'); + obj.addClass('show_td'); + var num = obj.index(); + var con = $('#Proview_tab_con .Proview_tab_c1'); + var objcon = con.eq(num); + con.hide(); + objcon.show(); + var zongHe = $('body').height(); + $("html, body").animate({ + scrollTop: zongHe + }, 1000); +} +function ApplyOne_yonCK(obj){ + var obj = $(obj); + var span = $('.changeOp span'); + var objspan = obj.find('span'); + span.removeClass('changeYes'); + objspan.addClass('changeYes'); + $('#ApplyOne_yonTS').text(''); +} +function hotkey(){ +var hotkeyArr = new Array('','私营企业','个体工商户','公务员/事业单位','大型垄断国企','世界500强企业','上市企业','普通企业','无固定职业'); +var hotkey = document.getElementById('CompanySelect').value; +var text = hotkeyArr[hotkey]; +document.getElementById('CompanyType').innerHTML = text; +$('#CompanyType').attr('value',hotkey); +} +function HSearchType(){ +var SelecteArr = new Array('','私营企业','个体工商户','公务员/事业单位','大型垄断国企','世界500强企业','上市企业','普通企业','无固定职业'); +var hotkey = document.getElementById('HSearchTypeLi').value; +var text = SelecteArr[hotkey]; +document.getElementById('HSearchType').innerHTML = text; +$('#HSearchType').attr('value',hotkey); + $('#HSearchType').css('color','#333'); +} +function BusinessTimeCK(){ + $('#BusinessTime').css('color','#333'); + var hotkeyArr = new Array('','不足半年','半年','1年','2年','3年','4年','5年以上(含5年)'); + var hotkey = document.getElementById('BusinessTimeSelect').value; + var text = hotkeyArr[hotkey]; + document.getElementById('BusinessTime').innerHTML = text; +$('#BusinessTime').attr('value',hotkey); +} +function applyOneYZ(){ + var c1val = $('#CompanyType').attr('value'); + if(c1val == ''){ + $('#companyTS').text('请您选择一个'); + }else { + CompanyType = true; + } + var c2val = $.trim($('#dgdsMoney').val()); + if(c2val == '请输入数字' || c2val == ''){ + $('#dgdsTS').text('请输入数字'); + dgdsMoney = false; + }else { + dgdsMoney = true; + } + var c3val = $('#BusinessTime').attr('value'); + if(c3val == ''){ + $('#BusinessTimeTS').text('请您选择一个'); + }else { + BusinessTime = true; + } + var c4yon = $('.ApplyOne_yon .changeOp span').hasClass('changeYes'); + if(c4yon == false){ + $('#ApplyOne_yonTS').text('请您选择一个'); + ApplyOne_yon = false; + }else { + ApplyOne_yon = true; + } +} +function applyTwoYZ(){ + var UserNameval = $.trim($('#UserName').val()); + if(UserNameval == '如:李先生'){ + $('#UserNameTS').text('请输入您的姓名'); + UserName = false; + }else { + var reg = /[^\u4E00-\u9FA5]+$/; + var boolean = !reg.test(UserNameval); + if (UserNameval.length > 0 && !reg.test(UserNameval)) { + UserName = true; + }else { + UserName = false; + $('#UserNameTS').text('请输入中文'); + } + } + var Telval = $.trim($('#UserTel').val()); + if(Telval == '用于接收信贷员联系方式'){ + Tel = false; + $('#UserTelTS').text('请输入手机号码'); + }else { + if(checkMobile(Telval)){ + Tel = true; + }else{ + Tel = false; + $('#UserTelTS').text('手机号格式不对哦'); + } + } + var Emailval = $.trim($('#UserEmail').val()); + if(Emailval == '用于获取申请贷款所需材料(可选填)'){ + }else { + if(checkEmail(Emailval)){ + Email = true; + }else{ + Email = false; + $('#UserEmailTS').text('邮件格式不对哦'); + } + } +} +function applyThreeYZ(){ + var val = $.trim($('#applyArea').val()); + var num = val.length; + var count = 140; + if (num > count) { + var yewnum = $(obj).val().substr(0, count) + $('#applyAreaTS').text('不超过140字哦'); + applyArea = false; + }else if(num < 5){ + $('#applyAreaTS').text('至少五个字,继续加油!'); + applyArea = false; + }else { + applyArea = true; + } +} +function ApplyCK(nextName){ + if(nextName == 'Applyone'){ + applyOneYZ(); + if(CompanyType == true && dgdsMoney == true && BusinessTime == true && ApplyOne_yon == true){ + window.open('ApplyTwo.html'); + } + }else if(nextName == 'Applytwo'){ + applyTwoYZ(); + if(UserName == true && Tel == true && Email == true){ + window.open('ApplyThree.html'); + } + }else if(nextName == 'ApplyThree'){ + var val = $.trim($('#applyArea').val()); + var num = val.length; + if(num > 0){ + applyThreeYZ(); + if(applyArea == true){ + window.open('ApplyFour.html'); + } + }else { + window.open('ApplyFour.html'); + } + } +} +function hideTS(obj){ + $('.ApplyOne_li_ts').text(''); +} +function dgdsFoc(obj){ + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if(val == '请输入数字'){ + obj.css('color','#999'); + obj.val(''); + } + obj.css('color','#333'); +} +function dgdsBlu(obj){ + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if(val == ''){ + obj.val('请输入数字'); + obj.css('color','#999'); + } +} +function usernameFoc(obj){ + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if(val == '如:李先生'){ + obj.css('color','#999'); + obj.val(''); + } + obj.css('color','#333'); +} +function usernameBlu(obj){ + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if(val == ''){ + obj.val('如:李先生'); + obj.css('color','#999'); + } +} +function telFoc(obj){ + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if(val == '用于接收信贷员联系方式'){ + obj.css('color','#999'); + obj.val(''); + } + obj.css('color','#333'); +} +function telBlu(obj){ + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if(val == ''){ + obj.val('用于接收信贷员联系方式'); + obj.css('color','#999'); + } +} +function emailFoc(obj){ + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if(val == '用于获取申请贷款所需材料(可选填)'){ + obj.css('color','#999'); + obj.val(''); + } + obj.css('color','#333'); +} +function emailBlu(obj){ + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if(val == ''){ + obj.val('用于获取申请贷款所需材料(可选填)'); + obj.css('color','#999'); + } +} +function applyAreaFoc(obj){ + var obj = $(obj); + var applyArea = obj.parents('.applyArea'); + obj.text(''); + obj.css('color','#333'); + applyArea.css('border','1px solid #2babef'); +} +function applyAreaBlu(obj){ + var obj = $(obj); + var val = $.trim(obj.val()); + var length = val.length; + if(length > 0){ + obj.css('color','#999'); + }else { + obj.css('color','#666'); + } + var applyArea = obj.parents('.applyArea'); + applyArea.css('border','1px solid #ccc'); +} + +function checkMobile(s) { + var regu = /^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/; + var re = new RegExp(regu); + if (re.test(s)) { + return true; + } + else { + return false; + } +} +function checkEmail(yx){ + var reyx=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\-])+\.)+([a-zA-Z0-9]{2,4})+$/; + return(reyx.test(yx)); +} +function ChangeCity(){ + $('#CityChange').toggle(); +}; +function ChangeCityLi(obj){ + var obj = $(obj); + var bojhtml = obj.html(); + var Shtml = $('#City').html(bojhtml); + document.getElementById('CityChange').style.display = "none"; +} +function ChangeCityTab(obj){ + var obj = $(obj); + var alltd = $('#CityChange table td'); + alltd.removeClass('SCityTab'); + obj.addClass('SCityTab'); + var num = obj.index(); + var citycon = $('.CityChangeTC_con'); + var Tcitycon = $('#CityChangeTC div.CityChangeTC_con').eq(num); + citycon.hide(); + Tcitycon.show(); +} +function HomeIconW(){ + var zongW = $(window).width(); + if(zongW == 320){} +} +function SearchTypeLiCK(obj){ + var obj = $(obj); + var reval = obj.attr('reval'); + if(reval == 0){ + $('.moreSearchTC_Nav li').removeClass('show'); + obj.addClass('show'); + $('.moreSearchTC_Con').hide(); + $('#ShopSearchCon').show(); + }else if(reval == 1){ + $('.moreSearchTC_Nav li').removeClass('show'); + obj.addClass('show'); + $('.moreSearchTC_Con').hide(); + $('#CompanySearchCon').show(); + }else if(reval == 2){ + $('.moreSearchTC_Nav li').removeClass('show'); + obj.addClass('show'); + $('.moreSearchTC_Con').hide(); + $('#CarSearchCon').show(); + }else if(reval == 3){ + $('.moreSearchTC_Nav li').removeClass('show'); + obj.addClass('show'); + $('.moreSearchTC_Con').hide(); + $('#HouseSearchCon').show(); + } +} +function MoreSearchCK(){ + var Msearch = $('#moreSearchTC'); + $('#SearchTCZZC').show(); + Msearch.show(); +} +function MoreSearchBack(){ + $('#moreSearchTC').hide(); + $('#SearchTCZZC').hide(); } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/home.css b/source/plugin/dzapp_haodai/images/wap/home.css index caca22d..20564e6 100644 --- a/source/plugin/dzapp_haodai/images/wap/home.css +++ b/source/plugin/dzapp_haodai/images/wap/home.css @@ -1,113 +1,113 @@ -@charset "utf-8"; -/* CSS Document */ -.qtbLogo img ,.qtbSearch {margin:0 auto;} -/*****logo*****/ -.w100 {width:100%;} -.qtbLogo {padding:30px 0;} -.qtbLogo img {display:block;} - -/**********nonononono*******/ -/*****search*****/ -.qtbSearch {width:90%;} -.ipt_ts {height:25px; line-height:25px; font-size:14px; color:#F63;} -.qtbSearch_li ,.qtbSearch_btn { -/***杈规鍗婂缎**/ -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px;} -.qtbSearch_li {border:1px solid #ddd; padding:2px 7px;} -/******/ -.Inpt_iptCon {width:100%;position:absolute; top:0px; left:0px;} -.Inpt_iptConPad {padding:0 25px 0 75px;} -.Inpt_iptConNei {width:100%;} -.Inpt_name ,.Inpt_dw ,.Inpt_text {height:42px; line-height:42px; text-align:center; font-size:16px; font-weight:500; color:#666;} -.Inpt_name {width:65px;} -.Inpt_text {width:98%;background:#fff; color:#333; text-align:left;display:block; border:none;} -.Inpt_dw {width:20px;} -/**********nonononono*******/ -/********************************罅灭储阃夋嫨*********************************/ -.HSearch {height:42px; margin-top:15px;} -.SearchIptCon {position:absolute; top:0px; left:0px; width:100%;} -.SearchIptCon_nei {padding:0px 82px 0px 15px;} -.Search_MoneyNO {width:4%; height:42px;} -.SearchIptCon_nei_nei {padding:2px 55px 2px 6px;} -.Search_Money ,.Search_type{width:45.5%; height:40px;border:1px solid #ccc; -/***鍐呴槾褰?*/ -box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset; --ms-box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset; --moz-box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset; --webkit-box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset; --o-box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset;} -.Search_ipt {height:36px; line-height:36px; font-size:14px; color:#777888; border:none; background:none;} -.Search_Money_dw {width:29px; padding-right:25px; height:40px; line-height:38px; position:absolute; top:0px; right:0px; color:#999; background:url(xl.png) 33px 17px no-repeat; font-size:14px; --moz-background-size:10px 5px; /* 钥佺增链殑 Firefox */ -background-size:10px 5px; -background-repeat:no-repeat; -} -.Search_Money_dw:active {background:url(xl.png) 33px 17px no-repeat #d7eeff; --moz-background-size:16px 8px; /* 钥佺增链殑 Firefox */ -background-size:16px 8px; -background-repeat:no-repeat; -} -.SearchBtn {border:1px solid #008dbf;height:40px; line-height:40px; text-align:center;font-size:16px; color:#fff; cursor:pointer; display:block; width:65px;background:#4fa9ee; z-index:9000; position:absolute; right:15px; top:0px; -/***杈规鍗婂缎**/ -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px; -/***鍐呴槾褰?*/ -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; -/***鏂囧瓧鎶曞奖**/ -text-shadow:0px -1px 0px #0092c6;} -.SearchBtn:hover {color:#fff;} -.SearchBtn:active {background:#007ddc; color:#fff;} -/*****绮剧‘罅灭储*****/ -.moreSearch {border:1px solid #d2d2d2; height:65px; background:#f8f8f8; display:block;} -.moreSearch h3 ,.moreSearch p {position:absolute; left:8px; width:90%;} -.moreSearch h3 {font-size:16px; color:#333; line-height:30px; top:8px;} -.moreSearch p {font-size:14px; color:#999; line-height:25px; top:33px;} -.moreSearch img {display:block; position:absolute; top:22px; right:5px; width: 15px; height: 22px;} -/*****搴旗敤妯〃潡*****/ -.ApplicationCon {} -.ApplicationCon_ul03 li {width:25%; height:105px; float:left;} -/*.ApplicationCon_ul03 li.oushu {width:6.66%;}*/ -.ApplicationCon_ul03 li div.yyWai {margin: 0 auto;} -.ApplicationCon_ul03 li div.yyWai ,.ApplicationCon_ul03 li span {width:67px;} -.ApplicationCon_ul03 li div.yyWai div {background:#f8f8f8;border:1px solid #d2d2d2;width:60px; -/***杈规鍗婂缎**/ -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px;} -/*.ApplicationCon_ul03 li:nth-child(4n) div.yyWai {float:right;} -.ApplicationCon_ul03 li:nth-child(2) div.yyWai ,.ApplicationCon_ul03 li:nth-child(3) div.yyWai ,.ApplicationCon_ul03 li:nth-child(6) div.yyWai ,.ApplicationCon_ul03 li:nth-child(7) div.yyWai {margin: 0 auto;}*/ -.ApplicationCon_ul03 li a {width:60px; height:48px; padding-top:12px; display:block;} -.ApplicationCon_ul03 li a img {margin:0 auto; width:38px; height:38px; display:block;} -.ApplicationCon_ul03 li a:active {background:#ddd;} -.ApplicationCon_ul03 li span {display:block; text-align:center;line-height:30px;font-size:14px; color:#333;} -/**鐑棬浜у扇**/ -.HotPro {line-height:20px; font-size:16px; color:#333; background:#f8f8f8; border-top:1px solid #ccc;border-bottom:1px solid #ddd; font-weight:normal;} -.HotPro a {color:#333;} -/**********************浜у扇鍒匾〃******************/ -.prolist {border-bottom:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;} -.prolistLink {display:block; text-decoration:none; padding:10px 18px 10px 80px;} -.prolistLink:link ,.prolistLink:visited {background:#fff;} -.prolistLink:active {background:#f1f1f1;} -.prolist_img {width:42px; height:42px; border:1px solid #e3e3e3; position:absolute; left:18px; top:14px;} -.prolist_name {font-size:16px;} -.prolist_name {color:#15a0f0; font-weight:normal;} -.prolist_infop2 {color:#999;font-size:14px;} -.prolist_jiantou {width:10px; height:17px; background:url(jiantou.png) no-repeat; position:absolute; right:10px; top:31px; --moz-background-size:10px 17px; /* 钥佺增链殑 Firefox */ -background-size:10px 17px; -background-repeat:no-repeat; -} +@charset "utf-8"; +/* CSS Document */ +.qtbLogo img ,.qtbSearch {margin:0 auto;} +/*****logo*****/ +.w100 {width:100%;} +.qtbLogo {padding:30px 0;} +.qtbLogo img {display:block;} + +/**********nonononono*******/ +/*****search*****/ +.qtbSearch {width:90%;} +.ipt_ts {height:25px; line-height:25px; font-size:14px; color:#F63;} +.qtbSearch_li ,.qtbSearch_btn { +/***杈规鍗婂缎**/ +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px;} +.qtbSearch_li {border:1px solid #ddd; padding:2px 7px;} +/******/ +.Inpt_iptCon {width:100%;position:absolute; top:0px; left:0px;} +.Inpt_iptConPad {padding:0 25px 0 75px;} +.Inpt_iptConNei {width:100%;} +.Inpt_name ,.Inpt_dw ,.Inpt_text {height:42px; line-height:42px; text-align:center; font-size:16px; font-weight:500; color:#666;} +.Inpt_name {width:65px;} +.Inpt_text {width:98%;background:#fff; color:#333; text-align:left;display:block; border:none;} +.Inpt_dw {width:20px;} +/**********nonononono*******/ +/********************************罅灭储阃夋嫨*********************************/ +.HSearch {height:42px; margin-top:15px;} +.SearchIptCon {position:absolute; top:0px; left:0px; width:100%;} +.SearchIptCon_nei {padding:0px 82px 0px 15px;} +.Search_MoneyNO {width:4%; height:42px;} +.SearchIptCon_nei_nei {padding:2px 55px 2px 6px;} +.Search_Money ,.Search_type{width:45.5%; height:40px;border:1px solid #ccc; +/***鍐呴槾褰?*/ +box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset; +-ms-box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset; +-moz-box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset; +-webkit-box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset; +-o-box-shadow:0px 1px 3px rgba(0, 0, 0, 0.1) inset;} +.Search_ipt {height:36px; line-height:36px; font-size:14px; color:#777888; border:none; background:none;} +.Search_Money_dw {width:29px; padding-right:25px; height:40px; line-height:38px; position:absolute; top:0px; right:0px; color:#999; background:url(xl.png) 33px 17px no-repeat; font-size:14px; +-moz-background-size:10px 5px; /* 钥佺增链殑 Firefox */ +background-size:10px 5px; +background-repeat:no-repeat; +} +.Search_Money_dw:active {background:url(xl.png) 33px 17px no-repeat #d7eeff; +-moz-background-size:16px 8px; /* 钥佺增链殑 Firefox */ +background-size:16px 8px; +background-repeat:no-repeat; +} +.SearchBtn {border:1px solid #008dbf;height:40px; line-height:40px; text-align:center;font-size:16px; color:#fff; cursor:pointer; display:block; width:65px;background:#4fa9ee; z-index:9000; position:absolute; right:15px; top:0px; +/***杈规鍗婂缎**/ +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px; +/***鍐呴槾褰?*/ +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +/***鏂囧瓧鎶曞奖**/ +text-shadow:0px -1px 0px #0092c6;} +.SearchBtn:hover {color:#fff;} +.SearchBtn:active {background:#007ddc; color:#fff;} +/*****绮剧‘罅灭储*****/ +.moreSearch {border:1px solid #d2d2d2; height:65px; background:#f8f8f8; display:block;} +.moreSearch h3 ,.moreSearch p {position:absolute; left:8px; width:90%;} +.moreSearch h3 {font-size:16px; color:#333; line-height:30px; top:8px;} +.moreSearch p {font-size:14px; color:#999; line-height:25px; top:33px;} +.moreSearch img {display:block; position:absolute; top:22px; right:5px; width: 15px; height: 22px;} +/*****搴旗敤妯〃潡*****/ +.ApplicationCon {} +.ApplicationCon_ul03 li {width:25%; height:105px; float:left;} +/*.ApplicationCon_ul03 li.oushu {width:6.66%;}*/ +.ApplicationCon_ul03 li div.yyWai {margin: 0 auto;} +.ApplicationCon_ul03 li div.yyWai ,.ApplicationCon_ul03 li span {width:67px;} +.ApplicationCon_ul03 li div.yyWai div {background:#f8f8f8;border:1px solid #d2d2d2;width:60px; +/***杈规鍗婂缎**/ +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px;} +/*.ApplicationCon_ul03 li:nth-child(4n) div.yyWai {float:right;} +.ApplicationCon_ul03 li:nth-child(2) div.yyWai ,.ApplicationCon_ul03 li:nth-child(3) div.yyWai ,.ApplicationCon_ul03 li:nth-child(6) div.yyWai ,.ApplicationCon_ul03 li:nth-child(7) div.yyWai {margin: 0 auto;}*/ +.ApplicationCon_ul03 li a {width:60px; height:48px; padding-top:12px; display:block;} +.ApplicationCon_ul03 li a img {margin:0 auto; width:38px; height:38px; display:block;} +.ApplicationCon_ul03 li a:active {background:#ddd;} +.ApplicationCon_ul03 li span {display:block; text-align:center;line-height:30px;font-size:14px; color:#333;} +/**鐑棬浜у扇**/ +.HotPro {line-height:20px; font-size:16px; color:#333; background:#f8f8f8; border-top:1px solid #ccc;border-bottom:1px solid #ddd; font-weight:normal;} +.HotPro a {color:#333;} +/**********************浜у扇鍒匾〃******************/ +.prolist {border-bottom:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;} +.prolistLink {display:block; text-decoration:none; padding:10px 18px 10px 80px;} +.prolistLink:link ,.prolistLink:visited {background:#fff;} +.prolistLink:active {background:#f1f1f1;} +.prolist_img {width:42px; height:42px; border:1px solid #e3e3e3; position:absolute; left:18px; top:14px;} +.prolist_name {font-size:16px;} +.prolist_name {color:#15a0f0; font-weight:normal;} +.prolist_infop2 {color:#999;font-size:14px;} +.prolist_jiantou {width:10px; height:17px; background:url(jiantou.png) no-repeat; position:absolute; right:10px; top:31px; +-moz-background-size:10px 17px; /* 钥佺增链殑 Firefox */ +background-size:10px 17px; +background-repeat:no-repeat; +} .wid01 {} \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/jquery-1.8.0.min.js b/source/plugin/dzapp_haodai/images/wap/jquery-1.8.0.min.js index 36ade78..af715fd 100644 --- a/source/plugin/dzapp_haodai/images/wap/jquery-1.8.0.min.js +++ b/source/plugin/dzapp_haodai/images/wap/jquery-1.8.0.min.js @@ -1,2 +1,2 @@ -/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ +/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write(""),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bR[a]=c,c}function ch(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||cd.test(a)?d(a,e):ch(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ch(a+"["+e+"]",b[e],c,d);else d(a,b)}function cy(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.0",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return typeof a=="object"?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b
    a",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length||!d)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="
    t
    ",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="
    ",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/^(?:\{.*\}|\[.*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||++p.uuid:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.shift(),e=p._queueHooks(a,b),f=function(){p.dequeue(a,b)};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),delete e.stop,d.call(a,f,e)),!c.length&&e&&e.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c-1)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c-1)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,""+d),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;jq&&u.push({elem:this,matches:o.slice(q)});for(d=0;d0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bd(a,b,c,d){var e=0,f=b.length;for(;e0?h(g,c,f):[]}function bf(a,c,d,e,f){var g,h,i,j,k,l,m,n,p=0,q=f.length,s=L.POS,t=new RegExp("^"+s.source+"(?!"+r+")","i"),u=function(){var a=1,c=arguments.length-2;for(;ai){m=a.slice(i,g.index),i=n,l=[c],B.test(m)&&(k&&(l=k),k=e);if(h=H.test(m))m=m.slice(0,-5).replace(B,"$&*");g.length>1&&g[0].replace(t,u),k=be(m,g[1],g[2],l,k,h)}}k?(j=j.concat(k),(m=a.slice(i))&&m!==")"?B.test(m)?bd(m,j,d,e):Z(m,c,d,e?e.concat(k):k):o.apply(d,j)):Z(a,c,d,e)}return q===1?d:Z.uniqueSort(d)}function bg(a,b,c){var d,e,f,g=[],i=0,j=D.exec(a),k=!j.pop()&&!j.pop(),l=k&&a.match(C)||[""],m=$.preFilter,n=$.filter,o=!c&&b!==h;for(;(e=l[i])!=null&&k;i++){g.push(d=[]),o&&(e=" "+e);while(e){k=!1;if(j=B.exec(e))e=e.slice(j[0].length),k=d.push({part:j.pop().replace(A," "),captures:j});for(f in n)(j=L[f].exec(e))&&(!m[f]||(j=m[f](j,b,c)))&&(e=e.slice(j.shift().length),k=d.push({part:f,captures:j}));if(!k)break}}return k||Z.error(a),g}function bh(a,b,e){var f=b.dir,g=m++;return a||(a=function(a){return a===e}),b.first?function(b,c){while(b=b[f])if(b.nodeType===1)return a(b,c)&&b}:function(b,e){var h,i=g+"."+d,j=i+"."+c;while(b=b[f])if(b.nodeType===1){if((h=b[q])===j)return b.sizset;if(typeof h=="string"&&h.indexOf(i)===0){if(b.sizset)return b}else{b[q]=j;if(a(b,e))return b.sizset=!0,b;b.sizset=!1}}}}function bi(a,b){return a?function(c,d){var e=b(c,d);return e&&a(e===!0?c:e,d)}:b}function bj(a,b,c){var d,e,f=0;for(;d=a[f];f++)$.relative[d.part]?e=bh(e,$.relative[d.part],b):(d.captures.push(b,c),e=bi(e,$.filter[d.part].apply(null,d.captures)));return e}function bk(a){return function(b,c){var d,e=0;for(;d=a[e];e++)if(d(b,c))return!0;return!1}}var c,d,e,f,g,h=a.document,i=h.documentElement,j="undefined",k=!1,l=!0,m=0,n=[].slice,o=[].push,q=("sizcache"+Math.random()).replace(".",""),r="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",t=s.replace("w","w#"),u="([*^$|!~]?=)",v="\\["+r+"*("+s+")"+r+"*(?:"+u+r+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+t+")|)|)"+r+"*\\]",w=":("+s+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|((?:[^,]|\\\\,|(?:,(?=[^\\[]*\\]))|(?:,(?=[^\\(]*\\))))*))\\)|)",x=":(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\)|)(?=[^-]|$)",y=r+"*([\\x20\\t\\r\\n\\f>+~])"+r+"*",z="(?=[^\\x20\\t\\r\\n\\f])(?:\\\\.|"+v+"|"+w.replace(2,7)+"|[^\\\\(),])+",A=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),B=new RegExp("^"+y),C=new RegExp(z+"?(?="+r+"*,|$)","g"),D=new RegExp("^(?:(?!,)(?:(?:^|,)"+r+"*"+z+")*?|"+r+"*(.*?))(\\)|$)"),E=new RegExp(z.slice(19,-6)+"\\x20\\t\\r\\n\\f>+~])+|"+y,"g"),F=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,G=/[\x20\t\r\n\f]*[+~]/,H=/:not\($/,I=/h\d/i,J=/input|select|textarea|button/i,K=/\\(?!\\)/g,L={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),NAME:new RegExp("^\\[name=['\"]?("+s+")['\"]?\\]"),TAG:new RegExp("^("+s.replace("[-","[-\\*")+")"),ATTR:new RegExp("^"+v),PSEUDO:new RegExp("^"+w),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),POS:new RegExp(x,"ig"),needsContext:new RegExp("^"+r+"*[>+~]|"+x,"i")},M={},N=[],O={},P=[],Q=function(a){return a.sizzleFilter=!0,a},R=function(a){return function(b){return b.nodeName.toLowerCase()==="input"&&b.type===a}},S=function(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}},T=function(a){var b=!1,c=h.createElement("div");try{b=a(c)}catch(d){}return c=null,b},U=T(function(a){a.innerHTML="";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),V=T(function(a){a.id=q+0,a.innerHTML="
    ",i.insertBefore(a,i.firstChild);var b=h.getElementsByName&&h.getElementsByName(q).length===2+h.getElementsByName(q+0).length;return g=!h.getElementById(q),i.removeChild(a),b}),W=T(function(a){return a.appendChild(h.createComment("")),a.getElementsByTagName("*").length===0}),X=T(function(a){return a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!==j&&a.firstChild.getAttribute("href")==="#"}),Y=T(function(a){return a.innerHTML="",!a.getElementsByClassName||a.getElementsByClassName("e").length===0?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length!==1)}),Z=function(a,b,c,d){c=c||[],b=b||h;var e,f,g,i,j=b.nodeType;if(j!==1&&j!==9)return[];if(!a||typeof a!="string")return c;g=ba(b);if(!g&&!d)if(e=F.exec(a))if(i=e[1]){if(j===9){f=b.getElementById(i);if(!f||!f.parentNode)return c;if(f.id===i)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(i))&&bb(b,f)&&f.id===i)return c.push(f),c}else{if(e[2])return o.apply(c,n.call(b.getElementsByTagName(a),0)),c;if((i=e[3])&&Y&&b.getElementsByClassName)return o.apply(c,n.call(b.getElementsByClassName(i),0)),c}return bm(a,b,c,d,g)},$=Z.selectors={cacheLength:50,match:L,order:["ID","TAG"],attrHandle:{},createPseudo:Q,find:{ID:g?function(a,b,c){if(typeof b.getElementById!==j&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==j&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==j&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:W?function(a,b){if(typeof b.getElementsByTagName!==j)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(K,""),a[3]=(a[4]||a[5]||"").replace(K,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||Z.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&Z.error(a[0]),a},PSEUDO:function(a){var b,c=a[4];return L.CHILD.test(a[0])?null:(c&&(b=D.exec(c))&&b.pop()&&(a[0]=a[0].slice(0,b[0].length-c.length-1),c=b[0].slice(0,-1)),a.splice(2,3,c||a[3]),a)}},filter:{ID:g?function(a){return a=a.replace(K,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(K,""),function(b){var c=typeof b.getAttributeNode!==j&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(K,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=M[a];return b||(b=M[a]=new RegExp("(^|"+r+")"+a+"("+r+"|$)"),N.push(a),N.length>$.cacheLength&&delete M[N.shift()]),function(a){return b.test(a.className||typeof a.getAttribute!==j&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return b?function(d){var e=Z.attr(d,a),f=e+"";if(e==null)return b==="!=";switch(b){case"=":return f===c;case"!=":return f!==c;case"^=":return c&&f.indexOf(c)===0;case"*=":return c&&f.indexOf(c)>-1;case"$=":return c&&f.substr(f.length-c.length)===c;case"~=":return(" "+f+" ").indexOf(c)>-1;case"|=":return f===c||f.substr(0,c.length+1)===c+"-"}}:function(b){return Z.attr(b,a)!=null}},CHILD:function(a,b,c,d){if(a==="nth"){var e=m++;return function(a){var b,f,g=0,h=a;if(c===1&&d===0)return!0;b=a.parentNode;if(b&&(b[q]!==e||!a.sizset)){for(h=b.firstChild;h;h=h.nextSibling)if(h.nodeType===1){h.sizset=++g;if(h===a)break}b[q]=e}return f=a.sizset-d,c===0?f===0:f%c===0&&f/c>=0}}return function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b,c,d){var e=$.pseudos[a]||$.pseudos[a.toLowerCase()];return e||Z.error("unsupported pseudo: "+a),e.sizzleFilter?e(b,c,d):e}},pseudos:{not:Q(function(a,b,c){var d=bl(a.replace(A,"$1"),b,c);return function(a){return!d(a)}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!$.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},contains:Q(function(a){return function(b){return(b.textContent||b.innerText||bc(b)).indexOf(a)>-1}}),has:Q(function(a){return function(b){return Z(a,b).length>0}}),header:function(a){return I.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:R("radio"),checkbox:R("checkbox"),file:R("file"),password:R("password"),image:R("image"),submit:S("submit"),reset:S("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return J.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b,c){return c?a.slice(1):[a[0]]},last:function(a,b,c){var d=a.pop();return c?a:[d]},even:function(a,b,c){var d=[],e=c?1:0,f=a.length;for(;e$.cacheLength&&delete O[P.shift()],g};Z.matches=function(a,b){return Z(a,null,null,b)},Z.matchesSelector=function(a,b){return Z(b,null,null,[a]).length>0};var bm=function(a,b,e,f,g){a=a.replace(A,"$1");var h,i,j,k,l,m,p,q,r,s=a.match(C),t=a.match(E),u=b.nodeType;if(L.POS.test(a))return bf(a,b,e,f,s);if(f)h=n.call(f,0);else if(s&&s.length===1){if(t.length>1&&u===9&&!g&&(s=L.ID.exec(t[0]))){b=$.find.ID(s[1],b,g)[0];if(!b)return e;a=a.slice(t.shift().length)}q=(s=G.exec(t[0]))&&!s.index&&b.parentNode||b,r=t.pop(),m=r.split(":not")[0];for(j=0,k=$.order.length;j",a.querySelectorAll("[selected]").length||e.push("\\["+r+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),T(function(a){a.innerHTML="

    ",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+r+"*(?:\"\"|'')"),a.innerHTML="",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=e.length&&new RegExp(e.join("|")),bm=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a)))if(d.nodeType===9)try{return o.apply(f,n.call(d.querySelectorAll(a),0)),f}catch(i){}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var j=d.getAttribute("id"),k=j||q,l=G.test(a)&&d.parentNode||d;j?k=k.replace(c,"\\$&"):d.setAttribute("id",k);try{return o.apply(f,n.call(l.querySelectorAll(a.replace(C,"[id='"+k+"'] $&")),0)),f}catch(i){}finally{j||d.removeAttribute("id")}}return b(a,d,f,g,h)},g&&(T(function(b){a=g.call(b,"div");try{g.call(b,"[test!='']:sizzle"),f.push($.match.PSEUDO)}catch(c){}}),f=new RegExp(f.join("|")),Z.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!ba(b)&&!f.test(c)&&(!e||!e.test(c)))try{var h=g.call(b,c);if(h||a||b.document&&b.document.nodeType!==11)return h}catch(i){}return Z(c,null,null,[b]).length>0})}(),Z.attr=p.attr,p.find=Z,p.expr=Z.selectors,p.expr[":"]=p.expr.pseudos,p.unique=Z.uniqueSort,p.text=Z.getText,p.isXMLDoc=Z.isXML,p.contains=Z.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b0)for(e=d;e=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*\s*$/g,bz={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X
    ","
    "]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1>");try{for(;d1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=0,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(g=b===e&&bA;(h=a[s])!=null;s++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{g=g||bk(b),l=l||g.appendChild(b.createElement("div")),h=h.replace(bo,"<$1>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]===""&&!m?l.childNodes:[];for(f=n.length-1;f>=0;--f)p.nodeName(n[f],"tbody")&&!n[f].childNodes.length&&n[f].parentNode.removeChild(n[f])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l=g.lastChild}h.nodeType?t.push(h):t=p.merge(t,h)}l&&(g.removeChild(l),h=l=g=null);if(!p.support.appendChecked)for(s=0;(h=t[s])!=null;s++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(s=0;(h=t[s])!=null;s++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[s+1,0].concat(r)),s+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^margin/,bO=new RegExp("^("+q+")(.*)$","i"),bP=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bQ=new RegExp("^([-+])=("+q+")","i"),bR={},bS={position:"absolute",visibility:"hidden",display:"block"},bT={letterSpacing:0,fontWeight:400,lineHeight:1},bU=["Top","Right","Bottom","Left"],bV=["Webkit","O","Moz","ms"],bW=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return bZ(this,!0)},hide:function(){return bZ(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bW.apply(this,arguments):this.each(function(){(c?a:bY(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bX(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bQ.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bX(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bT&&(f=bT[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(a,b){var c,d,e,f,g=getComputedStyle(a,null),h=a.style;return g&&(c=g[b],c===""&&!p.contains(a.ownerDocument.documentElement,a)&&(c=p.style(a,b)),bP.test(c)&&bN.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=c,c=g.width,h.width=d,h.minWidth=e,h.maxWidth=f)),c}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bP.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0||bH(a,"display")!=="none"?ca(a,b,d):p.swap(a,bS,function(){return ca(a,b,d)})},set:function(a,c,d){return b$(a,c,d?b_(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bP.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bU[d]+b]=e[d]||e[d-2]||e[0];return f}},bN.test(a)||(p.cssHooks[a+b].set=b$)});var cc=/%20/g,cd=/\[\]$/,ce=/\r?\n/g,cf=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,cg=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||cg.test(this.nodeName)||cf.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(ce,"\r\n")}}):{name:b.name,value:c.replace(ce,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ch(d,a[d],c,f);return e.join("&").replace(cc,"+")};var ci,cj,ck=/#.*$/,cl=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cm=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,cn=/^(?:GET|HEAD)$/,co=/^\/\//,cp=/\?/,cq=/)<[^<]*)*<\/script>/gi,cr=/([?&])_=[^&]*/,cs=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,ct=p.fn.load,cu={},cv={},cw=["*/"]+["*"];try{ci=f.href}catch(cx){ci=e.createElement("a"),ci.href="",ci=ci.href}cj=cs.exec(ci.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&ct)return ct.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("
    ").append(a.replace(cq,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cA(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cA(a,b),a},ajaxSettings:{url:ci,isLocal:cm.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cw},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cy(cu),ajaxTransport:cy(cv),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cB(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cC(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=""+(c||y),k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cl.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(ck,"").replace(co,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=cs.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]==cj[1]&&i[2]==cj[2]&&(i[3]||(i[1]==="http:"?80:443))==(cj[3]||(cj[1]==="http:"?80:443)))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cz(cu,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!cn.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cp.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cr,"$1_="+z);l.url=A+(A===l.url?(cp.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cw+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cz(cv,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cD=[],cE=/\?/,cF=/(=)\?(?=&|$)|\?\?/,cG=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cD.pop()||p.expando+"_"+cG++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cF.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cF.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cF,"$1"+f):m?c.data=i.replace(cF,"$1"+f):k&&(c.url+=(cE.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cD.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cH,cI=a.ActiveXObject?function(){for(var a in cH)cH[a](0,1)}:!1,cJ=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cK()||cL()}:cK,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cI&&delete cH[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cJ,cI&&(cH||(cH={},p(a).unload(cI)),cH[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cM,cN,cO=/^(?:toggle|show|hide)$/,cP=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cQ=/queueHooks$/,cR=[cX],cS={"*":[function(a,b){var c,d,e,f=this.createTween(a,b),g=cP.exec(b),h=f.cur(),i=+h||0,j=1;if(g){c=+g[2],d=g[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&i){i=p.css(f.elem,a,!0)||c||1;do e=j=j||".5",i=i/j,p.style(f.elem,a,i+d),j=f.cur()/h;while(j!==1&&j!==e)}f.unit=d,f.start=i,f.end=g[1]?i+(g[1]+1)*c:c}return f}]};p.Animation=p.extend(cV,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c$.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c$.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=c_(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/jquery.cookie.js b/source/plugin/dzapp_haodai/images/wap/jquery.cookie.js index 9570a0a..691878c 100644 --- a/source/plugin/dzapp_haodai/images/wap/jquery.cookie.js +++ b/source/plugin/dzapp_haodai/images/wap/jquery.cookie.js @@ -1,103 +1,103 @@ -/*! - * jQuery Cookie Plugin v1.4.0 - * https://github.com/carhartl/jquery-cookie - * - * Copyright 2013 Klaus Hartl - * Released under the MIT license - */ -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['jquery'], factory); - } else { - factory(jQuery); - } -}(function ($) { - - var pluses = /\+/g; - - function encode(s) { - return config.raw ? s : encodeURIComponent(s); - } - - function decode(s) { - return config.raw ? s : decodeURIComponent(s); - } - - function stringifyCookieValue(value) { - return encode(config.json ? JSON.stringify(value) : String(value)); - } - - function parseCookieValue(s) { - if (s.indexOf('"') === 0) { - s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); - } - - try { - s = decodeURIComponent(s.replace(pluses, ' ')); - } catch(e) { - return; - } - - try { - return config.json ? JSON.parse(s) : s; - } catch(e) {} - } - - function read(s, converter) { - var value = config.raw ? s : parseCookieValue(s); - return $.isFunction(converter) ? converter(value) : value; - } - - var config = $.cookie = function (key, value, options) { - - if (value !== undefined && !$.isFunction(value)) { - options = $.extend({}, config.defaults, options); - - if (typeof options.expires === 'number') { - var days = options.expires, t = options.expires = new Date(); - t.setDate(t.getDate() + days); - } - - return (document.cookie = [ - encode(key), '=', stringifyCookieValue(value), - options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE - options.path ? '; path=' + options.path : '', - options.domain ? '; domain=' + options.domain : '', - options.secure ? '; secure' : '' - ].join('')); - } - - - var result = key ? undefined : {}; - - var cookies = document.cookie ? document.cookie.split('; ') : []; - - for (var i = 0, l = cookies.length; i < l; i++) { - var parts = cookies[i].split('='); - var name = decode(parts.shift()); - var cookie = parts.join('='); - - if (key && key === name) { - result = read(cookie, value); - break; - } - - if (!key && (cookie = read(cookie)) !== undefined) { - result[name] = cookie; - } - } - - return result; - }; - - config.defaults = {}; - - $.removeCookie = function (key, options) { - if ($.cookie(key) !== undefined) { - $.cookie(key, '', $.extend({}, options, { expires: -1 })); - return true; - } - return false; - }; - +/*! + * jQuery Cookie Plugin v1.4.0 + * https://github.com/carhartl/jquery-cookie + * + * Copyright 2013 Klaus Hartl + * Released under the MIT license + */ +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['jquery'], factory); + } else { + factory(jQuery); + } +}(function ($) { + + var pluses = /\+/g; + + function encode(s) { + return config.raw ? s : encodeURIComponent(s); + } + + function decode(s) { + return config.raw ? s : decodeURIComponent(s); + } + + function stringifyCookieValue(value) { + return encode(config.json ? JSON.stringify(value) : String(value)); + } + + function parseCookieValue(s) { + if (s.indexOf('"') === 0) { + s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); + } + + try { + s = decodeURIComponent(s.replace(pluses, ' ')); + } catch(e) { + return; + } + + try { + return config.json ? JSON.parse(s) : s; + } catch(e) {} + } + + function read(s, converter) { + var value = config.raw ? s : parseCookieValue(s); + return $.isFunction(converter) ? converter(value) : value; + } + + var config = $.cookie = function (key, value, options) { + + if (value !== undefined && !$.isFunction(value)) { + options = $.extend({}, config.defaults, options); + + if (typeof options.expires === 'number') { + var days = options.expires, t = options.expires = new Date(); + t.setDate(t.getDate() + days); + } + + return (document.cookie = [ + encode(key), '=', stringifyCookieValue(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '' + ].join('')); + } + + + var result = key ? undefined : {}; + + var cookies = document.cookie ? document.cookie.split('; ') : []; + + for (var i = 0, l = cookies.length; i < l; i++) { + var parts = cookies[i].split('='); + var name = decode(parts.shift()); + var cookie = parts.join('='); + + if (key && key === name) { + result = read(cookie, value); + break; + } + + if (!key && (cookie = read(cookie)) !== undefined) { + result[name] = cookie; + } + } + + return result; + }; + + config.defaults = {}; + + $.removeCookie = function (key, options) { + if ($.cookie(key) !== undefined) { + $.cookie(key, '', $.extend({}, options, { expires: -1 })); + return true; + } + return false; + }; + })); \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/page.css b/source/plugin/dzapp_haodai/images/wap/page.css index c3730fa..85d5c29 100644 --- a/source/plugin/dzapp_haodai/images/wap/page.css +++ b/source/plugin/dzapp_haodai/images/wap/page.css @@ -1,505 +1,505 @@ -@charset "utf-8"; -/* CSS Document */ - -/* 锘庡竞阃夋嫨 */ -.city_box ,.hot_city ,.rank_city ,.letters_city ,.locat ,.pro_show{ width:100%;} -.locat { height:45px; background-color:#e9e9e9; border-bottom:1px solid #c6c6c6;} -.lacat_left { float:left; height:45px; line-height:45px; font-size:16px; padding-left:15px;} -.lacat_left span { color:#4fa9ee;} -.lacat_right { float:right; padding-right:15px; padding-top:13px;} -.lacat_right a{ background-image:url(dgh.png); width:20px; height:19px; float: left; --moz-background-size:20px 19px; /* 钥佺增链殑 Firefox */ -background-size:20px 19px; -background-repeat:no-repeat; -} -.lacat_right a:hover {background-image:url(return.png); width:20px; height:19px; --moz-background-size:20px 19px; /* 钥佺增链殑 Firefox */ -background-size:20px 19px; -background-repeat:no-repeat; -} -.hot_city {} -.hot_tit {border-bottom: 1px solid #E9E9E9;} -.hot_tit ,.rank_tit ,.letters_tit { height:33px; background-color:#f8f8f8;} -.hot_tit span ,.rank_tit span ,.letters_tit span { height:33px; line-height:33px;font-size:16px; padding-left:15px; } -.hot_list ,.rank_list ,.letters_list {width:100%; overflow:hidden;} -.hot_list ul ,.rank_list ul ,.letters_list ul {width:100%; overflow:hidden; padding:0; margin:0;} -.hot_list ul li { float:left; width:24.99%; height:48px; line-height:48px; text-align:center;} -.hot_list ul li a ,.letters_list ul li a {border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9; display:block; color:#000;font-size:16px; height:47px; overflow-y: hidden; } -.hot_list ul li a:active ,.letters_list ul li a:active ,.rank_list ul li a:active { background:#ccc;} -.hot_list ul li a.bord ,.letters_list ul li a.bord ,.rank_list ul li a.bord {border-right:none;} -.rank_tit ,.letters_tit { border-bottom:1px solid #e9e9e9;} -.rank_list ul li { float:left; width:16.65%; height:48px; line-height:48px; text-align:center;} -.rank_list ul li a {border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9; display:block; color:#000;font-size:18px; height:47px; } -.letters_list ul li { float:left; width:24.99%; height:48px; line-height:48px; text-align:center;} -.BktopMessage { bottom: 100px; cursor: pointer; display: none; height: 140px; position: fixed; right: 1px; width: 40px;} -.lacat_left span a{color: #4fa9ee;} - -/* 浜у扇璇︽儏 */ -.prod_tit {height:45px; background-color:#e9e9e9; border-bottom:1px solid #d9d9d9;} -.miab { height:45px; line-height:45px; font-size:16px; color:#000; padding-left:15px;} -.miab a { color:#000;} -.miab a:hover {color:#4fa9ee;} -.miab span {color:#4fa9ee;} -.deta_tit { background-color:#fcf2c2; border-bottom:1px solid #e9e9e9; float:left; width:100%;} -.deta_tit span { padding:5px 5px 5px 15px; line-height:30px;font-size:16px; float:left;} -.deta_com ul { padding:0; margin:0;} -.Proview_ul li {padding:0px 15px;font-size:14px;} -.Proview_ul li:nth-child(even) {background:#f8f8f8;} -.Proview_ul li:last-child {border-bottom:1px solid #ccc;} -.Proview_ul_up ,.Proview_ul_down {line-height:24px;} -.Proview_ul_up span {color:#999;} -.Proview_ul_down span {color:#333;} -.Proview_ul_up span.fl ,.Proview_ul_down span.fl {width:60%;} -.Proview_ul_up span.fr ,.Proview_ul_down span.fr {width:39%;} -.Proview_ul_zs { color:#999; line-height:48px; height: 48px; } -.Proview_ul_zb { color:#999; line-height:normal; height: 48px; display:table; float: left; } -.Proview_ul_zb span { color:#999;vertical-align:middle; display:table-cell;} -.yans { color:#ff6c00;} -.Proview_ul_zb span.nianl { color:#333;vertical-align:middle; display:table-cell;} -.Proview_ul_zb span.feiy {vertical-align:middle; display:table-cell;} -.sqPeopleNum {padding:15px 0; text-align:center; font-size:20px; font-weight:bold; color:#333;} -.sqPeopleNum span {color:#ff6c00;} -.Proview_ul_zs span.qanh { color:#333;} -/***鏄熺骇***/ -.prostart {width:173px; padding-bottom:15px;} -.prostart_word ,.prostart_start {height:15px; line-height:15px;} -.prostart_word {width:80px; font-size:16px; color:#444555;} -.prostart_start {width:91px; background:url(start.png) no-repeat;} -.prostart_start span {background:url(start.png) 0px -15px no-repeat; height:15px; display:block;} -.Bval_5 {width: 8px;} /**0.5 鏄?*/ -.Bval_10 {width: 17px;} /**1 鏄?*/ -.Bval_15 {width: 27px;} /**1.5 鏄?*/ -.Bval_20 {width: 36px;} /**2 鏄?*/ -.Bval_25 {width: 46px;} /**2.5 鏄?*/ -.Bval_30 {width: 55px;} /**3 鏄?*/ -.Bval_35 {width: 64px;} /**3.5 鏄?*/ -.Bval_40 {width: 74px;} /**4 鏄?*/ -.Bval_45 {width: 83px;} /**4.5 鏄?*/ -.Bval_50 {width: 91px;} /**5 鏄?*/ -/*****阃夐”鍗?***/ -.Proview_tab_tit {border-top:1px solid #c6c6c6;} -.Proview_tab_tit td {line-height:3.1em; text-align:center; font-size:16px; color:#333; border-right:1px solid #c6c6c6; border-bottom:1px solid #c6c6c6; background:#f8f8f8;} -.Proview_tab_tit td:last-child {border-right:none;} -.Proview_tab_tit td:link ,.Proview_tab_tit td:visited {background:#f8f8f8;} -.Proview_tab_tit td:hover{background:#f2f2f2;} -.Proview_tab_tit td:active {background:#e6e6e6;} -.Proview_tab_tit td.show_td {color:#4ea9ef; border-bottom:2px solid #4eaaed; background:#fafafa;} -.Proview_tab_con {} -.Proview_tab_c1 {color:#666; line-height:26px; font-size:14px;} -.Proview_tab_c1 p.ts {color:#ff6c00; font-weight:bold;} -/*****浜у扇鍒匾〃****/ -.pro_show {} -.show_tit { background-color:#f8f8f8; height:42px; border-top:1px solid #c6c6c6;} -.show_tit span { height:42px; line-height:42px; padding-left:15px; font-size:16px;} -.show_con {} -.prolist {border-bottom:1px solid #e7e7e7; position:relative;} -.prolist_left { padding: 10px 18px 10px 80px;overflow:hidden;} -.prolist_right { width:17px; height:27px; position:absolute; right:10px; top:30px;} -.prolistLink {display:block; padding:10px 18px 10px 80px; text-decoration:none;} -.prolistLink:link ,.prolistLink:visited {background:#fff;} -.prolistLink:hover ,.prolistLink:active {background:#fbfbfb;} -.prolistLink01 {display:block; text-decoration:none;} -.prolistLink01:link ,.prolistLink01:visited {background:#fff;} -.prolistLink01:hover ,.prolistLink01:active {background:#fbfbfb;} -.prolist_img {width:42px; height:42px; border:1px solid #e3e3e3; position:absolute; left:18px; top:14px;} -.prolist_name ,.prolist_infop1{font-size:16px; margin:0;} -.prolist_infop2 {font-size:12px; } -.prolist_name { color:#333; font-weight:normal;} -.prolist_infop1 ,.prolist_infop2 {padding:0.2em 0 0.0em;} -.prolist_infop1 {color:#333;} -.prolist_infop1 strong {color:#ff6c00;} -.prolist_infop2 {color:#999;} -.pro_button { position:fixed; bottom:0px; width:100%; left:0;} -.toum {filter:alpha(Opacity=80);-moz-opacity:0.8;opacity: 0.8;z-index:100; background-color:#000; height:80px;} -.sqBbtnzo {position:absolute; left:0; top:0; width:100%;} -.sqBbtnDiv {padding:0px 15px;} -.sqBbtn { height:3em; line-height:3em; text-align:center; font-size:16px; font-weight:bold; color:#fff; border:1px solid #008dbf; display:block; -/***娓愬彉**/ -background-image: -webkit-gradient(linear,left top,left bottom,from(#4fc4ee),to(#34b5e3));background-image: -webkit-linear-gradient(#55adf1,#4ca5e9); -background-image: -moz-linear-gradient(#55adf1,#4ca5e9); -background-image: -ms-linear-gradient(#55adf1,#4ca5e9); -background-image: -o-linear-gradient(#55adf1,#4ca5e9); -background-image: linear-gradient(#55adf1,#4ca5e9); -/***鍐呴槾褰?*/ -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; -/***鍐呴槾褰?*/ -/***杈规鍗婂缎**/ -border-radius:2px; --ms-border-radius:2px; --moz-border-radius:2px; --webkit-border-radius:2px; --o-border-radius:2px; -/***鏂囧瓧鎶曞奖**/ -text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2); -} -.sqBbtn:hover {color:#fff;} -.sqBbtn:active { background:#1e92ea; color:yellow;} - -/*********璐锋鐢宠*********/ -.ApplyOne_info {color:#999; font-size:14px; line-height:26px;} -.ApplyOne_info span {color:#ff6c00;} -.ApplyOne_li_ipt_show ,.iptCLA {text-indent:10px;} -.ApplyOne_tit {border-top:1px solid #c6c6c6;border-bottom:1px solid #c6c6c6; background:#f8f8f8; font-size:14px; color:#333; padding:10px 15px;padding-left:15px;} -.Applytype_tit {font-size:14px; color:#333; padding:10px 15px;padding-left:15px;} -.ApplyOne_li_name {width:130px; height:42px; line-height:42px; font-size:14px; color:#333; padding-left:15px;} -.ApplyOne_li_name2 {width:55px;} -.ApplyOne_li_ipt {width:100%; border:1px solid #ccc; height:42px; line-height:42px; -/***杈规鍗婂缎**/ -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; --o-border-radius:5px;} -.ApplyOne_li_ipt01 {width:52%; border:1px solid #ccc; height:42px; line-height:42px; -/***杈规鍗婂缎**/ -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; --o-border-radius:5px;} -.ApplyOne_li_xl { margin:20px 15px 0 0; background-image:url(xl.png); position:absolute; right:10px; top:0;display: block; width: 10px; height:5px; --moz-background-size:10px 5px; /* 钥佺增链殑 Firefox */ -background-size:10px 5px; -background-repeat:no-repeat;} -.ApplyOne_li_dw {position:absolute; width:14px; height:20px; line-height:20px; color:#999; right:23px; top:6px;} -.ApplyOne_li_ts {height:30px; line-height:30px; color:red; font-size:13px;} -.ApplyOne_yon {border-bottom:1px solid #EBEBEB;padding: 20px 15px; color:#666; font-size:14px;} -.ApplyOne_yon:active {background:#e7e7e7;} -.changeOp {position:absolute; right:0; top:0; width:10px; height:10px; padding:5px; background:#f2f2f2;border:1px solid #ccc; -/***杈规鍗婂缎**/ -border-radius:11px; --ms-border-radius:11px; --moz-border-radius:11px; --webkit-border-radius:11px; --o-border-radius:11px;} -.changeYes {width:10px; height:10px; background:#51aaee; display:block; -/***杈规鍗婂缎**/ -border-radius:7px; --ms-border-radius:7px; --moz-border-radius:7px; --webkit-border-radius:7px; --o-border-radius:7px;} -.changeOp01{position:absolute; right:0; top:0; width:10px; height:10px; padding:5px; background:#f2f2f2;border:1px solid #ccc; -/***杈规鍗婂缎**/ -border-radius:11px; --ms-border-radius:11px; --moz-border-radius:11px; --webkit-border-radius:11px; --o-border-radius:11px;} -.ApplyOne_li_ipt_show { color: #999;display: block;} -.select {width:100%;opacity:0; position:absolute; top:0px; left:0px; height:42px; line-height:42px; display:block;} -.select01 {width:100%;opacity:0; position:absolute; top:0px; right:0px; height:42px; line-height:42px; display:block;} -.iptCLA {height:42px; line-height:42px; background:none; text-align:left; color:#999;} -.ApplyOne_li_con01 {width:95%; top:0px; left:0px; position:absolute;} -.ApplyOne_li_con {width:100%; top:0px; left:0px; position:absolute;} -.ApplyOne_li ,.ApplyOne_pd {padding:0 15px 0 140px;} -.ApplyOne_li2 ,.ApplyOne_pd2 {padding:0 15px 0 70px;} -.daikj { padding:20px 0; border-top:1px solid #ebebeb; border-bottom:1px solid #ebebeb; margin-top: -1px; font-size: 14px;} -.daikjPDLR {padding: 0 15px;} -.nisnf { width:48%; } -.appy_nian {position:relative;} -.nian_pd { padding:0 20px 0 0px;} -.wod_nian { height:42px; line-height:42px; text-align:right; color:#666; font-size:14px;} -.ApplyOne_li_nian {border:1px solid #ccc; height:42px; line-height:42px; width:100%; -/***杈规鍗婂缎**/ -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; --o-border-radius:5px;} -.whether_left ,.whether_right ,.whether_dw {height:37px;} -.whether_left ,.whether_dw {line-height:37px;} -.whether_left { float:left; font-size:14px; width:60%;} -.whether_right {float:right; width:40%;} -.whether_right span ,.daikj_02_ipt {height: 35px; line-height: 35px;} -.whet_yes01 { border:1px solid #c6c6c6; width:40%; float:right; text-align:center; color:#b4b4b4; -/* Gecko browsers */ --moz-border-radius-topleft: 10px; --moz-border-radius-topright: 0; --moz-border-radius-bottomleft: 0; --moz-border-radius-bottomright: 10px; -/* Webkit browsers */ --webkit-border-top-left-radius: 10px; --webkit-border-top-right-radius: 0; --webkit-border-bottom-left-radius: 0; --webkit-border-bottom-right-radius: 10px; -/* W3C syntax */ -border-top-left-radius: 10px; -border-top-right-radius: 0; -border-bottom-right-radius: 0; -border-bottom-left-radius: 10px;} -.whet_no01{ border:1px solid #c6c6c6; width:40%; float:right;text-align:center; border-left:none; color:#b4b4b4; -/* Gecko browsers */ --moz-border-radius-topleft: 0; --moz-border-radius-topright: 10px; --moz-border-radius-bottomleft: 10px; --moz-border-radius-bottomright: 0; -/* Webkit browsers */ --webkit-border-top-left-radius: 0; --webkit-border-top-right-radius: 10px; --webkit-border-bottom-left-radius: 10px; --webkit-border-bottom-right-radius: 0; -/* W3C syntax */ -border-top-left-radius: 0; -border-top-right-radius: 10px; -border-bottom-right-radius: 10px; -border-bottom-left-radius: 0;} -/************阃夋嫨鍏朵腑涓€涓悗镄勬牁寮?***********/ -.whet_yesCe ,.whet_noCe {border:1px solid #008dbf; width:40%; float:right; text-align:center;color:#008dbf;} -.whet_yesCe { -/* Gecko browsers */ --moz-border-radius-topleft: 10px; --moz-border-radius-topright: 0; --moz-border-radius-bottomleft: 0; --moz-border-radius-bottomright: 10px; -/* Webkit browsers */ --webkit-border-top-left-radius: 10px; --webkit-border-top-right-radius: 0; --webkit-border-bottom-left-radius: 0; --webkit-border-bottom-right-radius: 10px; -/* W3C syntax */ -border-top-left-radius: 10px; -border-top-right-radius: 0; -border-bottom-right-radius: 0; -border-bottom-left-radius: 10px;} -.whet_noCe {border-left: none; -/* Gecko browsers */ --moz-border-radius-topleft: 0; --moz-border-radius-topright: 10px; --moz-border-radius-bottomleft: 10px; --moz-border-radius-bottomright: 0; -/* Webkit browsers */ --webkit-border-top-left-radius: 0; --webkit-border-top-right-radius: 10px; --webkit-border-bottom-left-radius: 10px; --webkit-border-bottom-right-radius: 0; -/* W3C syntax */ -border-top-left-radius: 0; -border-top-right-radius: 10px; -border-bottom-right-radius: 10px; -border-bottom-left-radius: 0;} -.whet_OK {color:#fff; background:#4ea7eb;} -/******娑堣垂鐢宠-鏄惁妯〃潡-阌愯棌妯〃潡*****/ -.daikj_02 {display: none;} -.daikj_02_ipt {width: 80%;border:1px solid #c6c6c6; text-indent: 10px; overflow-x: hidden; color: #333; float: right; -/***杈规鍗婂缎**/ -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px;} -/**鍗曚綅**/ -.whether_dw {position: absolute; display: block; width: 15px; color: #999; right: 10px; top: 0px; font-size: 14px;} -/**锁愮ず**/ -.daikj_ts {display: none;} -.daikj_ts .whether_right {height: 26px; line-height: 26px;} -.daikj_ts .whether_right p {width: 80%; color: red; font-size: 12px; float: right;} - - -.pulldownOpen {-webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate -(180deg); transform: rotate(180deg);} -.pulldown {position:absolute; right:18px; top:15px; width:0px; height:0px; -background-size:18px 21px; --ms-background-size:18px 21px; --moz-background-size:18px 21px; --webkit-background-size:18px 21px; --o-background-size:18px 21px; --webkit-transition: all .25s ease 0s; --moz-transition: all .25s ease 0s; --o-transition: all .25s ease 0s; -transition: all .25s ease 0s; -border-color:#888 transparent transparent; -border-style:solid dashed dashed; -border-width:8px 8px 0;} -.posi {position:relative; background:#f2f2f2; border-top:none; border-bottom: 1px solid #ddd;} -.posi:active {background: #cfeaff;} -.redTS {border-top: 1px solid red; border-bottom: 1px solid red;}/**绾四坏妗嗘彁绀?*/ - /**鏂囧瓧锁愮ず**/ -.wordTS ,.wordTS2 {position: absolute; padding-left: 10px; background: #f0f0f0; display: none; top: 50px; height: 25px; line-height: 25px; color: red; font-size: 14px; width: 230px;} -.wordTS {left: 90px;} -.wordTS2 {left: 140px;} -/***璐锋鐢宠3**/ -.nosearch2 {padding:50px 0px 15px 0;} -.pageTS_word p {line-height:33px; text-align:center; font-size:20px; color:#333;} -.pageTS_word2 p ,.pageTS_word3 p {line-height:28px; font-size:16px; color:#666;} -.pageTS_word3 p {text-align:center; color:#999;} -.pageTS_word2 p.orange {color:#ff6c00;} -.applyArea {border:1px solid #ccc;} -.applyArea_zone {width:100%; height:160px; color:#999; line-height:24px; font-size:14px;} -#applyAreaTS { color:#999; font-size:14px; padding:15px 0 0 0;} -.mata { padding-bottom:100px;} - -/*****璐锋璧剧****/ -.infor_pic { position:relative; border-bottom:1px solid #e9e9e9; height:80px;} -.waib { padding-right:95px;} -.infor_left { padding:10px 15px; overflow:hidden;} -.inftit { color:#333; font-size:16px; line-height:24px;overflow: hidden;white-space: nowrap; text-overflow: ellipsis;} -.inftit a {color:#333;} -.inftit a:active { text-decoration:underline;} -.infcon { color:#999;font-size:12px; line-height:18px;} -.infor_right { position:absolute; right:0; top:13px; padding-right:15px;} -.infor_right img { width:75px; height:53px;} -.zixun_con { width:100%;} -.zixun_con ul a li { height:45px; line-height:45px; padding-left:15px;border-bottom:1px solid #e9e9e9;} -.zixun_con ul a { color:#333;font-size:16px; } -.zixun_con ul li a:active {color:#fff;} -.zixun_con ul li:active { background:#aaa; color:#fff;} -/******Pbottom*****/ -.Pbottom { padding:15px 0 20px;} -.Pbottom_nei a {display:block; width:33%; border:1px solid #c7c6c6;} -.Pbottom_nei span.no {display:block; width:33%; border:1px solid #c7c6c6;} -.Pbottom_nei span.no {border:1px solid #dddee2;} -.Pbottom_nei span.no span {color:#cdcdcd;} -.touming {opacity: 0.4;} -.Pbottom_nei a:link ,.Pbottom_nei a:visited {} -.Pbottom_nei a:hover ,.Pbottom_nei a:active {} -.Pbottom_nei a.no:hover ,.Pbottom_nei a.no:active {} -.Pbottom_nei a span {display:block; color:#999; font-size:14px;} -.Page_box {display:block; width:75px; overflow:hidden; position:relative;} -.Page_box_icon {top:13px;} -.BackPage_box_icon {background-image:url(sabgtih.jpg); left: 0;} -.NextPage_box_icon {background-image:url(xiayiy.jpg); right:0;} -.touming { filter:alpha(Opacity=50);-moz-opacity:0.5;opacity: 0.5;right:0;} -.Page_box_word {width:55px; text-align:center;height:44px; line-height:44px;} -.iconbox {width:11px; height:19px; position:absolute; background-color:rgba(0, 0, 0, 0.4);} -.page_number { height:44px; line-height:44px; width:25%;margin:0 10px; position:relative;} -.number_con { height:44px; line-height:44px;border:1px solid #c7c6c6;width:100%; position:absolute; left:0; top:0;} - - - - - -/*****璐锋璧剧璇︽儏****/ -.zixun_info { padding:0 15px;} -.info_tit { line-height:30px; font-size:18px; padding:10px 0;} -.info_pic { padding-bottom:15px; } -.info_pic img {max-width:100%;} -.info_con img {max-width:100%;} -.info_con {font-size:16px; line-height:30px; color:#666; padding-bottom:15px;} -.rela_tit { height:45px; background:#f8f8f8; border-bottom:1px solid #c6c6c6;border-top:1px solid #c6c6c6;} -.rela_tit span { height:45px; line-height:45px; font-size:16px; padding-left:15px; color:#323232;} - -/*****蹇€熻捶娆?***/ -.speed_tit { background:#f8f8f8;margin-bottom:15px; float:left; width:100%;} -.speed_tit span { line-height:24px;font-size:16px; color:#999; padding:15px 5px 15px 15px; float:left;} -.ApplyOne_li_name02 {width:85px;} -.ApplyOne_li02 ,.ApplyOne_pd02 {padding: 0 15px 0 90px;} -.unit { position: absolute; right:16px; top:1px; height: 40px; line-height: 40px; background: #fff; padding-right: 15px; font-size:14px; color:#999;} - - - -/*********************20140121*******************/ -.AboutTit {width:100%; height:30px; line-height:30px; padding-top:30px; text-align:center; font-size:18px; color:#333;} -/***鍐呴〉椤堕儴璇︾粏罅灭储镌夐挳***/ -.PageMoreSearch {padding:5px; width:130px; margin:7px 10px 0px 0px; background:url(pageSearchTopImg.png) 115px 8px no-repeat #fff;} -.PageMoreSearch span {float:left; display:block;height:24px; line-height:24px; color:#999; overflow:hidden;} -.PageMoreSearch span.PageMoreSearch_ipt {padding-right:5px;} -.PageMoreSearch span.PageMoreSearch_dw1 {width:33px;} -.PageMoreSearch span.PageMoreSearch_dw {width:28px;} - -/************************椤甸溃鍦板潃******************************/ -.PageAddress {padding:8px 15px; background:#e9e9e9; border-bottom:1px solid #ccc;} -.PageAddress ,.PageAddress_fl ,.PageAddress_fl * {height:30px; line-height:30px;} -.PageAddress_fl {width:175px;} -.PageAddress_fl * {display:block; float:left;} -.PageAddress_fl span {padding:0 3px; font-size:14px; font-family:"瀹嬩綋"; font-weight:bold; color:#666;} -.PageAddress_fl a {color:#333; font-size:14px;padding:0 3px;} -.PageAddress_fl a.show_address {color:#349bea;} -.PageAddress_fl a:active {background:#0084e9; color:#fff;} -.PageAddress_fr {width:100px;} -.PageAddress_fr a.PageAddressTJ {width:80px;padding-right:15px; padding-left:3px; overflow: hidden; float: right; text-align:center; height:28px; line-height:28px;border:1px solid #008dbf;font-size:13px; color:#fff;display:block; background:url(whitexl.png) 82px 11px no-repeat #4fa9ee; -/***杈规鍗婂缎**/ -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px; -/***鍐呴槾褰?*/ -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; -/***鏂囧瓧鎶曞奖**/ -text-shadow:0px -1px 0px #0092c6;} -/***绛涢€夋浔浠朵笅鎷?**/ -.PageAddress_TJtc {top:30px; background: #4fa9ee; display: none;} -.PageAddress_TJtc {position:absolute; width:100%; left:0px; z-index:9910;} -.PageAddress_TJtc li { text-align: center; border-bottom:1px solid #1e91e9; border-top:1px solid #6bbaf7;} -.PageAddress_TJtc li:active {background:#0084e9; color:#fff;} -.PageAddress_TJtc li.mo {background: #d1ebff;} -.PageAddress_TJtc li.mo a {color: #0384e7;} -.PageAddress_TJtc li ,.PageAddress_TJtc li a {display: block;width:100%;line-height:35px; height:35px;color:#fff;} -.PageAddress_TJtc li a {font-size:12px;} -.PageAddress_TJtc li a:active{background: #fff;} -.PageConditions04 {} -/************************绛涢€夋浔浠跺垪琛?*****************************/ -.PageConditions {border-bottom:1px solid #e3e3e3;} -.PageConditions ul li.Conditions_li {float:left; color:#333;} -/************************绛涢€夋浔浠跺垪琛?04 ******************************/ -.PageConditions04 ul li.Conditions_li {width:25%;} -/************************绛涢€夋浔浠跺垪琛?03 ******************************/ -.PageConditions03 ul li.Conditions_li {width:33.3333%;} - -.PageConditions ul li.Conditions_li:active {background:#eee;} -.Conditions_li_pd {padding-right:18px;} -.PageConditions ul li.Conditions_li ,.PageConditions ul li.Conditions_li span {height:40px; line-height:40px;} -.PageConditions ul li.Conditions_li span {display:block;} -.PageConditions ul li .Conditions_word {width:100%; text-align:center; font-size:14px; overflow: hidden;} -/*.PageConditions ul li .Conditions_img {width:16px; position:absolute; top:0px; right:0px; padding-right:4px; background:url(xl.png) left 18px no-repeat; border-right:1px solid #e8e8e8; --moz-background-size:16px 8px; 钥佺增链殑 Firefox -background-size:16px 8px; -background-repeat:no-repeat; -}*/ -.PageConditions ul li span.Conditions_xl180 {-webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate -(180deg); transform: rotate(180deg);} -.PageConditions ul li span.Conditions_xl {position:absolute; right:4px; top:17px; width:0px; height:0px; --webkit-transition: all .25s ease 0s; --moz-transition: all .25s ease 0s; --o-transition: all .25s ease 0s; -transition: all .25s ease 0s; -border-color:#888 transparent transparent; -border-style:solid dashed dashed; -border-width:6px 6px 0;} -.PageConditions ul li span.Conditions_borRi {position:absolute; right:0px; top:0px; width:5px; height:40px; border-right: 1px solid #e8e8e8;} -/**涓嬫媺灞?*/ -.Conditions_TC {display:none;} -.Conditions_TC {top:41px;background:#eee;position:absolute; width:100%; left:-1px; z-index:9900;} -.Conditions_TC li {width:100%; text-align: center; line-height:20px; padding: 10px 0; overflow-x: hidden; font-size:12px; color:#333; border-bottom:1px solid #ddd; border-top:1px solid #f7f7f7;} -.Conditions_TC li:last-child {border-bottom:none;} -.Conditions_TC li:active { color:#333; background:#f6f6f6;} -.Conditions_TC li.mo {background: #f6f6f6;} -/*****404****/ -.negation_tit { padding:20px 0 10px 10%; font-size:16px; color:#333; border-bottom:1px solid #ccc;} -.negation_con {padding:10px 10% 10px 10%; font-size:14px; color:#333; line-height:24px;} -.negation_con a { text-decoration:underline; color:#4fa9ee;} -.negation_con a:active { text-decoration:none;} -.negation_pic { text-align:center; padding:5px 0 40px 0;} -.negation_pic img { width:288px; height:133px;} - -/*****娑堣垂鐢宠---鍑虹敓骞翠唤阃夋嫨*****/ -.BirthYearSelect {width: 100%; z-index: 900; display: none; position: absolute; top: 42px; left: 0; border: 1px solid #ccc; background: #fff; text-align: left;} -.BirthYearSelect_pd {padding: 5px;} -.BirthYearSelect p {padding: 5px 0; float: left;} -/*.BirthYearSelect p a:last-child {clear:both;}*/ -.BirthYearSelect a {color: #666; display: block; width: 20%; line-height: 35px; text-align: center; float: left;} -.BirthYearSelect a.yearOK ,.BirthYearSelect a:hover ,.BirthYearSelect a:active {background: #0079C1; color: #fff; text-decoration: none;} -.xieyiWord { font-size: 14px; line-height: 24px; color: #333;} - -/***20140213***/ -.Conditions_show ,.Conditions_word {height:40px; line-height:41px;} -.Conditions_show {color: #333;display: block;font-size: 14px; text-align: center; padding-right: 16px; overflow: hidden;} -.Conditions_word {width:100%; position:absolute; top:0px; left:0px; display:block; font-size: 14px;} -/***20140122yl***/ -.yanzm { width: 30%; position: absolute; right: 14px; top: 0; background-color: #f2f2f2; color: #6c6c6c; font-size: 14px; text-align: center;border:1px solid #ccc; height:42px; line-height:42px; -/***杈规鍗婂缎**/ -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; --o-border-radius:5px;} +@charset "utf-8"; +/* CSS Document */ + +/* 锘庡竞阃夋嫨 */ +.city_box ,.hot_city ,.rank_city ,.letters_city ,.locat ,.pro_show{ width:100%;} +.locat { height:45px; background-color:#e9e9e9; border-bottom:1px solid #c6c6c6;} +.lacat_left { float:left; height:45px; line-height:45px; font-size:16px; padding-left:15px;} +.lacat_left span { color:#4fa9ee;} +.lacat_right { float:right; padding-right:15px; padding-top:13px;} +.lacat_right a{ background-image:url(dgh.png); width:20px; height:19px; float: left; +-moz-background-size:20px 19px; /* 钥佺增链殑 Firefox */ +background-size:20px 19px; +background-repeat:no-repeat; +} +.lacat_right a:hover {background-image:url(return.png); width:20px; height:19px; +-moz-background-size:20px 19px; /* 钥佺增链殑 Firefox */ +background-size:20px 19px; +background-repeat:no-repeat; +} +.hot_city {} +.hot_tit {border-bottom: 1px solid #E9E9E9;} +.hot_tit ,.rank_tit ,.letters_tit { height:33px; background-color:#f8f8f8;} +.hot_tit span ,.rank_tit span ,.letters_tit span { height:33px; line-height:33px;font-size:16px; padding-left:15px; } +.hot_list ,.rank_list ,.letters_list {width:100%; overflow:hidden;} +.hot_list ul ,.rank_list ul ,.letters_list ul {width:100%; overflow:hidden; padding:0; margin:0;} +.hot_list ul li { float:left; width:24.99%; height:48px; line-height:48px; text-align:center;} +.hot_list ul li a ,.letters_list ul li a {border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9; display:block; color:#000;font-size:16px; height:47px; overflow-y: hidden; } +.hot_list ul li a:active ,.letters_list ul li a:active ,.rank_list ul li a:active { background:#ccc;} +.hot_list ul li a.bord ,.letters_list ul li a.bord ,.rank_list ul li a.bord {border-right:none;} +.rank_tit ,.letters_tit { border-bottom:1px solid #e9e9e9;} +.rank_list ul li { float:left; width:16.65%; height:48px; line-height:48px; text-align:center;} +.rank_list ul li a {border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9; display:block; color:#000;font-size:18px; height:47px; } +.letters_list ul li { float:left; width:24.99%; height:48px; line-height:48px; text-align:center;} +.BktopMessage { bottom: 100px; cursor: pointer; display: none; height: 140px; position: fixed; right: 1px; width: 40px;} +.lacat_left span a{color: #4fa9ee;} + +/* 浜у扇璇︽儏 */ +.prod_tit {height:45px; background-color:#e9e9e9; border-bottom:1px solid #d9d9d9;} +.miab { height:45px; line-height:45px; font-size:16px; color:#000; padding-left:15px;} +.miab a { color:#000;} +.miab a:hover {color:#4fa9ee;} +.miab span {color:#4fa9ee;} +.deta_tit { background-color:#fcf2c2; border-bottom:1px solid #e9e9e9; float:left; width:100%;} +.deta_tit span { padding:5px 5px 5px 15px; line-height:30px;font-size:16px; float:left;} +.deta_com ul { padding:0; margin:0;} +.Proview_ul li {padding:0px 15px;font-size:14px;} +.Proview_ul li:nth-child(even) {background:#f8f8f8;} +.Proview_ul li:last-child {border-bottom:1px solid #ccc;} +.Proview_ul_up ,.Proview_ul_down {line-height:24px;} +.Proview_ul_up span {color:#999;} +.Proview_ul_down span {color:#333;} +.Proview_ul_up span.fl ,.Proview_ul_down span.fl {width:60%;} +.Proview_ul_up span.fr ,.Proview_ul_down span.fr {width:39%;} +.Proview_ul_zs { color:#999; line-height:48px; height: 48px; } +.Proview_ul_zb { color:#999; line-height:normal; height: 48px; display:table; float: left; } +.Proview_ul_zb span { color:#999;vertical-align:middle; display:table-cell;} +.yans { color:#ff6c00;} +.Proview_ul_zb span.nianl { color:#333;vertical-align:middle; display:table-cell;} +.Proview_ul_zb span.feiy {vertical-align:middle; display:table-cell;} +.sqPeopleNum {padding:15px 0; text-align:center; font-size:20px; font-weight:bold; color:#333;} +.sqPeopleNum span {color:#ff6c00;} +.Proview_ul_zs span.qanh { color:#333;} +/***鏄熺骇***/ +.prostart {width:173px; padding-bottom:15px;} +.prostart_word ,.prostart_start {height:15px; line-height:15px;} +.prostart_word {width:80px; font-size:16px; color:#444555;} +.prostart_start {width:91px; background:url(start.png) no-repeat;} +.prostart_start span {background:url(start.png) 0px -15px no-repeat; height:15px; display:block;} +.Bval_5 {width: 8px;} /**0.5 鏄?*/ +.Bval_10 {width: 17px;} /**1 鏄?*/ +.Bval_15 {width: 27px;} /**1.5 鏄?*/ +.Bval_20 {width: 36px;} /**2 鏄?*/ +.Bval_25 {width: 46px;} /**2.5 鏄?*/ +.Bval_30 {width: 55px;} /**3 鏄?*/ +.Bval_35 {width: 64px;} /**3.5 鏄?*/ +.Bval_40 {width: 74px;} /**4 鏄?*/ +.Bval_45 {width: 83px;} /**4.5 鏄?*/ +.Bval_50 {width: 91px;} /**5 鏄?*/ +/*****阃夐”鍗?***/ +.Proview_tab_tit {border-top:1px solid #c6c6c6;} +.Proview_tab_tit td {line-height:3.1em; text-align:center; font-size:16px; color:#333; border-right:1px solid #c6c6c6; border-bottom:1px solid #c6c6c6; background:#f8f8f8;} +.Proview_tab_tit td:last-child {border-right:none;} +.Proview_tab_tit td:link ,.Proview_tab_tit td:visited {background:#f8f8f8;} +.Proview_tab_tit td:hover{background:#f2f2f2;} +.Proview_tab_tit td:active {background:#e6e6e6;} +.Proview_tab_tit td.show_td {color:#4ea9ef; border-bottom:2px solid #4eaaed; background:#fafafa;} +.Proview_tab_con {} +.Proview_tab_c1 {color:#666; line-height:26px; font-size:14px;} +.Proview_tab_c1 p.ts {color:#ff6c00; font-weight:bold;} +/*****浜у扇鍒匾〃****/ +.pro_show {} +.show_tit { background-color:#f8f8f8; height:42px; border-top:1px solid #c6c6c6;} +.show_tit span { height:42px; line-height:42px; padding-left:15px; font-size:16px;} +.show_con {} +.prolist {border-bottom:1px solid #e7e7e7; position:relative;} +.prolist_left { padding: 10px 18px 10px 80px;overflow:hidden;} +.prolist_right { width:17px; height:27px; position:absolute; right:10px; top:30px;} +.prolistLink {display:block; padding:10px 18px 10px 80px; text-decoration:none;} +.prolistLink:link ,.prolistLink:visited {background:#fff;} +.prolistLink:hover ,.prolistLink:active {background:#fbfbfb;} +.prolistLink01 {display:block; text-decoration:none;} +.prolistLink01:link ,.prolistLink01:visited {background:#fff;} +.prolistLink01:hover ,.prolistLink01:active {background:#fbfbfb;} +.prolist_img {width:42px; height:42px; border:1px solid #e3e3e3; position:absolute; left:18px; top:14px;} +.prolist_name ,.prolist_infop1{font-size:16px; margin:0;} +.prolist_infop2 {font-size:12px; } +.prolist_name { color:#333; font-weight:normal;} +.prolist_infop1 ,.prolist_infop2 {padding:0.2em 0 0.0em;} +.prolist_infop1 {color:#333;} +.prolist_infop1 strong {color:#ff6c00;} +.prolist_infop2 {color:#999;} +.pro_button { position:fixed; bottom:0px; width:100%; left:0;} +.toum {filter:alpha(Opacity=80);-moz-opacity:0.8;opacity: 0.8;z-index:100; background-color:#000; height:80px;} +.sqBbtnzo {position:absolute; left:0; top:0; width:100%;} +.sqBbtnDiv {padding:0px 15px;} +.sqBbtn { height:3em; line-height:3em; text-align:center; font-size:16px; font-weight:bold; color:#fff; border:1px solid #008dbf; display:block; +/***娓愬彉**/ +background-image: -webkit-gradient(linear,left top,left bottom,from(#4fc4ee),to(#34b5e3));background-image: -webkit-linear-gradient(#55adf1,#4ca5e9); +background-image: -moz-linear-gradient(#55adf1,#4ca5e9); +background-image: -ms-linear-gradient(#55adf1,#4ca5e9); +background-image: -o-linear-gradient(#55adf1,#4ca5e9); +background-image: linear-gradient(#55adf1,#4ca5e9); +/***鍐呴槾褰?*/ +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +/***鍐呴槾褰?*/ +/***杈规鍗婂缎**/ +border-radius:2px; +-ms-border-radius:2px; +-moz-border-radius:2px; +-webkit-border-radius:2px; +-o-border-radius:2px; +/***鏂囧瓧鎶曞奖**/ +text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2); +} +.sqBbtn:hover {color:#fff;} +.sqBbtn:active { background:#1e92ea; color:yellow;} + +/*********璐锋鐢宠*********/ +.ApplyOne_info {color:#999; font-size:14px; line-height:26px;} +.ApplyOne_info span {color:#ff6c00;} +.ApplyOne_li_ipt_show ,.iptCLA {text-indent:10px;} +.ApplyOne_tit {border-top:1px solid #c6c6c6;border-bottom:1px solid #c6c6c6; background:#f8f8f8; font-size:14px; color:#333; padding:10px 15px;padding-left:15px;} +.Applytype_tit {font-size:14px; color:#333; padding:10px 15px;padding-left:15px;} +.ApplyOne_li_name {width:130px; height:42px; line-height:42px; font-size:14px; color:#333; padding-left:15px;} +.ApplyOne_li_name2 {width:55px;} +.ApplyOne_li_ipt {width:100%; border:1px solid #ccc; height:42px; line-height:42px; +/***杈规鍗婂缎**/ +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +-o-border-radius:5px;} +.ApplyOne_li_ipt01 {width:52%; border:1px solid #ccc; height:42px; line-height:42px; +/***杈规鍗婂缎**/ +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +-o-border-radius:5px;} +.ApplyOne_li_xl { margin:20px 15px 0 0; background-image:url(xl.png); position:absolute; right:10px; top:0;display: block; width: 10px; height:5px; +-moz-background-size:10px 5px; /* 钥佺增链殑 Firefox */ +background-size:10px 5px; +background-repeat:no-repeat;} +.ApplyOne_li_dw {position:absolute; width:14px; height:20px; line-height:20px; color:#999; right:23px; top:6px;} +.ApplyOne_li_ts {height:30px; line-height:30px; color:red; font-size:13px;} +.ApplyOne_yon {border-bottom:1px solid #EBEBEB;padding: 20px 15px; color:#666; font-size:14px;} +.ApplyOne_yon:active {background:#e7e7e7;} +.changeOp {position:absolute; right:0; top:0; width:10px; height:10px; padding:5px; background:#f2f2f2;border:1px solid #ccc; +/***杈规鍗婂缎**/ +border-radius:11px; +-ms-border-radius:11px; +-moz-border-radius:11px; +-webkit-border-radius:11px; +-o-border-radius:11px;} +.changeYes {width:10px; height:10px; background:#51aaee; display:block; +/***杈规鍗婂缎**/ +border-radius:7px; +-ms-border-radius:7px; +-moz-border-radius:7px; +-webkit-border-radius:7px; +-o-border-radius:7px;} +.changeOp01{position:absolute; right:0; top:0; width:10px; height:10px; padding:5px; background:#f2f2f2;border:1px solid #ccc; +/***杈规鍗婂缎**/ +border-radius:11px; +-ms-border-radius:11px; +-moz-border-radius:11px; +-webkit-border-radius:11px; +-o-border-radius:11px;} +.ApplyOne_li_ipt_show { color: #999;display: block;} +.select {width:100%;opacity:0; position:absolute; top:0px; left:0px; height:42px; line-height:42px; display:block;} +.select01 {width:100%;opacity:0; position:absolute; top:0px; right:0px; height:42px; line-height:42px; display:block;} +.iptCLA {height:42px; line-height:42px; background:none; text-align:left; color:#999;} +.ApplyOne_li_con01 {width:95%; top:0px; left:0px; position:absolute;} +.ApplyOne_li_con {width:100%; top:0px; left:0px; position:absolute;} +.ApplyOne_li ,.ApplyOne_pd {padding:0 15px 0 140px;} +.ApplyOne_li2 ,.ApplyOne_pd2 {padding:0 15px 0 70px;} +.daikj { padding:20px 0; border-top:1px solid #ebebeb; border-bottom:1px solid #ebebeb; margin-top: -1px; font-size: 14px;} +.daikjPDLR {padding: 0 15px;} +.nisnf { width:48%; } +.appy_nian {position:relative;} +.nian_pd { padding:0 20px 0 0px;} +.wod_nian { height:42px; line-height:42px; text-align:right; color:#666; font-size:14px;} +.ApplyOne_li_nian {border:1px solid #ccc; height:42px; line-height:42px; width:100%; +/***杈规鍗婂缎**/ +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +-o-border-radius:5px;} +.whether_left ,.whether_right ,.whether_dw {height:37px;} +.whether_left ,.whether_dw {line-height:37px;} +.whether_left { float:left; font-size:14px; width:60%;} +.whether_right {float:right; width:40%;} +.whether_right span ,.daikj_02_ipt {height: 35px; line-height: 35px;} +.whet_yes01 { border:1px solid #c6c6c6; width:40%; float:right; text-align:center; color:#b4b4b4; +/* Gecko browsers */ +-moz-border-radius-topleft: 10px; +-moz-border-radius-topright: 0; +-moz-border-radius-bottomleft: 0; +-moz-border-radius-bottomright: 10px; +/* Webkit browsers */ +-webkit-border-top-left-radius: 10px; +-webkit-border-top-right-radius: 0; +-webkit-border-bottom-left-radius: 0; +-webkit-border-bottom-right-radius: 10px; +/* W3C syntax */ +border-top-left-radius: 10px; +border-top-right-radius: 0; +border-bottom-right-radius: 0; +border-bottom-left-radius: 10px;} +.whet_no01{ border:1px solid #c6c6c6; width:40%; float:right;text-align:center; border-left:none; color:#b4b4b4; +/* Gecko browsers */ +-moz-border-radius-topleft: 0; +-moz-border-radius-topright: 10px; +-moz-border-radius-bottomleft: 10px; +-moz-border-radius-bottomright: 0; +/* Webkit browsers */ +-webkit-border-top-left-radius: 0; +-webkit-border-top-right-radius: 10px; +-webkit-border-bottom-left-radius: 10px; +-webkit-border-bottom-right-radius: 0; +/* W3C syntax */ +border-top-left-radius: 0; +border-top-right-radius: 10px; +border-bottom-right-radius: 10px; +border-bottom-left-radius: 0;} +/************阃夋嫨鍏朵腑涓€涓悗镄勬牁寮?***********/ +.whet_yesCe ,.whet_noCe {border:1px solid #008dbf; width:40%; float:right; text-align:center;color:#008dbf;} +.whet_yesCe { +/* Gecko browsers */ +-moz-border-radius-topleft: 10px; +-moz-border-radius-topright: 0; +-moz-border-radius-bottomleft: 0; +-moz-border-radius-bottomright: 10px; +/* Webkit browsers */ +-webkit-border-top-left-radius: 10px; +-webkit-border-top-right-radius: 0; +-webkit-border-bottom-left-radius: 0; +-webkit-border-bottom-right-radius: 10px; +/* W3C syntax */ +border-top-left-radius: 10px; +border-top-right-radius: 0; +border-bottom-right-radius: 0; +border-bottom-left-radius: 10px;} +.whet_noCe {border-left: none; +/* Gecko browsers */ +-moz-border-radius-topleft: 0; +-moz-border-radius-topright: 10px; +-moz-border-radius-bottomleft: 10px; +-moz-border-radius-bottomright: 0; +/* Webkit browsers */ +-webkit-border-top-left-radius: 0; +-webkit-border-top-right-radius: 10px; +-webkit-border-bottom-left-radius: 10px; +-webkit-border-bottom-right-radius: 0; +/* W3C syntax */ +border-top-left-radius: 0; +border-top-right-radius: 10px; +border-bottom-right-radius: 10px; +border-bottom-left-radius: 0;} +.whet_OK {color:#fff; background:#4ea7eb;} +/******娑堣垂鐢宠-鏄惁妯〃潡-阌愯棌妯〃潡*****/ +.daikj_02 {display: none;} +.daikj_02_ipt {width: 80%;border:1px solid #c6c6c6; text-indent: 10px; overflow-x: hidden; color: #333; float: right; +/***杈规鍗婂缎**/ +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px;} +/**鍗曚綅**/ +.whether_dw {position: absolute; display: block; width: 15px; color: #999; right: 10px; top: 0px; font-size: 14px;} +/**锁愮ず**/ +.daikj_ts {display: none;} +.daikj_ts .whether_right {height: 26px; line-height: 26px;} +.daikj_ts .whether_right p {width: 80%; color: red; font-size: 12px; float: right;} + + +.pulldownOpen {-webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate +(180deg); transform: rotate(180deg);} +.pulldown {position:absolute; right:18px; top:15px; width:0px; height:0px; +background-size:18px 21px; +-ms-background-size:18px 21px; +-moz-background-size:18px 21px; +-webkit-background-size:18px 21px; +-o-background-size:18px 21px; +-webkit-transition: all .25s ease 0s; +-moz-transition: all .25s ease 0s; +-o-transition: all .25s ease 0s; +transition: all .25s ease 0s; +border-color:#888 transparent transparent; +border-style:solid dashed dashed; +border-width:8px 8px 0;} +.posi {position:relative; background:#f2f2f2; border-top:none; border-bottom: 1px solid #ddd;} +.posi:active {background: #cfeaff;} +.redTS {border-top: 1px solid red; border-bottom: 1px solid red;}/**绾四坏妗嗘彁绀?*/ + /**鏂囧瓧锁愮ず**/ +.wordTS ,.wordTS2 {position: absolute; padding-left: 10px; background: #f0f0f0; display: none; top: 50px; height: 25px; line-height: 25px; color: red; font-size: 14px; width: 230px;} +.wordTS {left: 90px;} +.wordTS2 {left: 140px;} +/***璐锋鐢宠3**/ +.nosearch2 {padding:50px 0px 15px 0;} +.pageTS_word p {line-height:33px; text-align:center; font-size:20px; color:#333;} +.pageTS_word2 p ,.pageTS_word3 p {line-height:28px; font-size:16px; color:#666;} +.pageTS_word3 p {text-align:center; color:#999;} +.pageTS_word2 p.orange {color:#ff6c00;} +.applyArea {border:1px solid #ccc;} +.applyArea_zone {width:100%; height:160px; color:#999; line-height:24px; font-size:14px;} +#applyAreaTS { color:#999; font-size:14px; padding:15px 0 0 0;} +.mata { padding-bottom:100px;} + +/*****璐锋璧剧****/ +.infor_pic { position:relative; border-bottom:1px solid #e9e9e9; height:80px;} +.waib { padding-right:95px;} +.infor_left { padding:10px 15px; overflow:hidden;} +.inftit { color:#333; font-size:16px; line-height:24px;overflow: hidden;white-space: nowrap; text-overflow: ellipsis;} +.inftit a {color:#333;} +.inftit a:active { text-decoration:underline;} +.infcon { color:#999;font-size:12px; line-height:18px;} +.infor_right { position:absolute; right:0; top:13px; padding-right:15px;} +.infor_right img { width:75px; height:53px;} +.zixun_con { width:100%;} +.zixun_con ul a li { height:45px; line-height:45px; padding-left:15px;border-bottom:1px solid #e9e9e9;} +.zixun_con ul a { color:#333;font-size:16px; } +.zixun_con ul li a:active {color:#fff;} +.zixun_con ul li:active { background:#aaa; color:#fff;} +/******Pbottom*****/ +.Pbottom { padding:15px 0 20px;} +.Pbottom_nei a {display:block; width:33%; border:1px solid #c7c6c6;} +.Pbottom_nei span.no {display:block; width:33%; border:1px solid #c7c6c6;} +.Pbottom_nei span.no {border:1px solid #dddee2;} +.Pbottom_nei span.no span {color:#cdcdcd;} +.touming {opacity: 0.4;} +.Pbottom_nei a:link ,.Pbottom_nei a:visited {} +.Pbottom_nei a:hover ,.Pbottom_nei a:active {} +.Pbottom_nei a.no:hover ,.Pbottom_nei a.no:active {} +.Pbottom_nei a span {display:block; color:#999; font-size:14px;} +.Page_box {display:block; width:75px; overflow:hidden; position:relative;} +.Page_box_icon {top:13px;} +.BackPage_box_icon {background-image:url(sabgtih.jpg); left: 0;} +.NextPage_box_icon {background-image:url(xiayiy.jpg); right:0;} +.touming { filter:alpha(Opacity=50);-moz-opacity:0.5;opacity: 0.5;right:0;} +.Page_box_word {width:55px; text-align:center;height:44px; line-height:44px;} +.iconbox {width:11px; height:19px; position:absolute; background-color:rgba(0, 0, 0, 0.4);} +.page_number { height:44px; line-height:44px; width:25%;margin:0 10px; position:relative;} +.number_con { height:44px; line-height:44px;border:1px solid #c7c6c6;width:100%; position:absolute; left:0; top:0;} + + + + + +/*****璐锋璧剧璇︽儏****/ +.zixun_info { padding:0 15px;} +.info_tit { line-height:30px; font-size:18px; padding:10px 0;} +.info_pic { padding-bottom:15px; } +.info_pic img {max-width:100%;} +.info_con img {max-width:100%;} +.info_con {font-size:16px; line-height:30px; color:#666; padding-bottom:15px;} +.rela_tit { height:45px; background:#f8f8f8; border-bottom:1px solid #c6c6c6;border-top:1px solid #c6c6c6;} +.rela_tit span { height:45px; line-height:45px; font-size:16px; padding-left:15px; color:#323232;} + +/*****蹇€熻捶娆?***/ +.speed_tit { background:#f8f8f8;margin-bottom:15px; float:left; width:100%;} +.speed_tit span { line-height:24px;font-size:16px; color:#999; padding:15px 5px 15px 15px; float:left;} +.ApplyOne_li_name02 {width:85px;} +.ApplyOne_li02 ,.ApplyOne_pd02 {padding: 0 15px 0 90px;} +.unit { position: absolute; right:16px; top:1px; height: 40px; line-height: 40px; background: #fff; padding-right: 15px; font-size:14px; color:#999;} + + + +/*********************20140121*******************/ +.AboutTit {width:100%; height:30px; line-height:30px; padding-top:30px; text-align:center; font-size:18px; color:#333;} +/***鍐呴〉椤堕儴璇︾粏罅灭储镌夐挳***/ +.PageMoreSearch {padding:5px; width:130px; margin:7px 10px 0px 0px; background:url(pageSearchTopImg.png) 115px 8px no-repeat #fff;} +.PageMoreSearch span {float:left; display:block;height:24px; line-height:24px; color:#999; overflow:hidden;} +.PageMoreSearch span.PageMoreSearch_ipt {padding-right:5px;} +.PageMoreSearch span.PageMoreSearch_dw1 {width:33px;} +.PageMoreSearch span.PageMoreSearch_dw {width:28px;} + +/************************椤甸溃鍦板潃******************************/ +.PageAddress {padding:8px 15px; background:#e9e9e9; border-bottom:1px solid #ccc;} +.PageAddress ,.PageAddress_fl ,.PageAddress_fl * {height:30px; line-height:30px;} +.PageAddress_fl {width:175px;} +.PageAddress_fl * {display:block; float:left;} +.PageAddress_fl span {padding:0 3px; font-size:14px; font-family:"瀹嬩綋"; font-weight:bold; color:#666;} +.PageAddress_fl a {color:#333; font-size:14px;padding:0 3px;} +.PageAddress_fl a.show_address {color:#349bea;} +.PageAddress_fl a:active {background:#0084e9; color:#fff;} +.PageAddress_fr {width:100px;} +.PageAddress_fr a.PageAddressTJ {width:80px;padding-right:15px; padding-left:3px; overflow: hidden; float: right; text-align:center; height:28px; line-height:28px;border:1px solid #008dbf;font-size:13px; color:#fff;display:block; background:url(whitexl.png) 82px 11px no-repeat #4fa9ee; +/***杈规鍗婂缎**/ +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px; +/***鍐呴槾褰?*/ +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +/***鏂囧瓧鎶曞奖**/ +text-shadow:0px -1px 0px #0092c6;} +/***绛涢€夋浔浠朵笅鎷?**/ +.PageAddress_TJtc {top:30px; background: #4fa9ee; display: none;} +.PageAddress_TJtc {position:absolute; width:100%; left:0px; z-index:9910;} +.PageAddress_TJtc li { text-align: center; border-bottom:1px solid #1e91e9; border-top:1px solid #6bbaf7;} +.PageAddress_TJtc li:active {background:#0084e9; color:#fff;} +.PageAddress_TJtc li.mo {background: #d1ebff;} +.PageAddress_TJtc li.mo a {color: #0384e7;} +.PageAddress_TJtc li ,.PageAddress_TJtc li a {display: block;width:100%;line-height:35px; height:35px;color:#fff;} +.PageAddress_TJtc li a {font-size:12px;} +.PageAddress_TJtc li a:active{background: #fff;} +.PageConditions04 {} +/************************绛涢€夋浔浠跺垪琛?*****************************/ +.PageConditions {border-bottom:1px solid #e3e3e3;} +.PageConditions ul li.Conditions_li {float:left; color:#333;} +/************************绛涢€夋浔浠跺垪琛?04 ******************************/ +.PageConditions04 ul li.Conditions_li {width:25%;} +/************************绛涢€夋浔浠跺垪琛?03 ******************************/ +.PageConditions03 ul li.Conditions_li {width:33.3333%;} + +.PageConditions ul li.Conditions_li:active {background:#eee;} +.Conditions_li_pd {padding-right:18px;} +.PageConditions ul li.Conditions_li ,.PageConditions ul li.Conditions_li span {height:40px; line-height:40px;} +.PageConditions ul li.Conditions_li span {display:block;} +.PageConditions ul li .Conditions_word {width:100%; text-align:center; font-size:14px; overflow: hidden;} +/*.PageConditions ul li .Conditions_img {width:16px; position:absolute; top:0px; right:0px; padding-right:4px; background:url(xl.png) left 18px no-repeat; border-right:1px solid #e8e8e8; +-moz-background-size:16px 8px; 钥佺增链殑 Firefox +background-size:16px 8px; +background-repeat:no-repeat; +}*/ +.PageConditions ul li span.Conditions_xl180 {-webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate +(180deg); transform: rotate(180deg);} +.PageConditions ul li span.Conditions_xl {position:absolute; right:4px; top:17px; width:0px; height:0px; +-webkit-transition: all .25s ease 0s; +-moz-transition: all .25s ease 0s; +-o-transition: all .25s ease 0s; +transition: all .25s ease 0s; +border-color:#888 transparent transparent; +border-style:solid dashed dashed; +border-width:6px 6px 0;} +.PageConditions ul li span.Conditions_borRi {position:absolute; right:0px; top:0px; width:5px; height:40px; border-right: 1px solid #e8e8e8;} +/**涓嬫媺灞?*/ +.Conditions_TC {display:none;} +.Conditions_TC {top:41px;background:#eee;position:absolute; width:100%; left:-1px; z-index:9900;} +.Conditions_TC li {width:100%; text-align: center; line-height:20px; padding: 10px 0; overflow-x: hidden; font-size:12px; color:#333; border-bottom:1px solid #ddd; border-top:1px solid #f7f7f7;} +.Conditions_TC li:last-child {border-bottom:none;} +.Conditions_TC li:active { color:#333; background:#f6f6f6;} +.Conditions_TC li.mo {background: #f6f6f6;} +/*****404****/ +.negation_tit { padding:20px 0 10px 10%; font-size:16px; color:#333; border-bottom:1px solid #ccc;} +.negation_con {padding:10px 10% 10px 10%; font-size:14px; color:#333; line-height:24px;} +.negation_con a { text-decoration:underline; color:#4fa9ee;} +.negation_con a:active { text-decoration:none;} +.negation_pic { text-align:center; padding:5px 0 40px 0;} +.negation_pic img { width:288px; height:133px;} + +/*****娑堣垂鐢宠---鍑虹敓骞翠唤阃夋嫨*****/ +.BirthYearSelect {width: 100%; z-index: 900; display: none; position: absolute; top: 42px; left: 0; border: 1px solid #ccc; background: #fff; text-align: left;} +.BirthYearSelect_pd {padding: 5px;} +.BirthYearSelect p {padding: 5px 0; float: left;} +/*.BirthYearSelect p a:last-child {clear:both;}*/ +.BirthYearSelect a {color: #666; display: block; width: 20%; line-height: 35px; text-align: center; float: left;} +.BirthYearSelect a.yearOK ,.BirthYearSelect a:hover ,.BirthYearSelect a:active {background: #0079C1; color: #fff; text-decoration: none;} +.xieyiWord { font-size: 14px; line-height: 24px; color: #333;} + +/***20140213***/ +.Conditions_show ,.Conditions_word {height:40px; line-height:41px;} +.Conditions_show {color: #333;display: block;font-size: 14px; text-align: center; padding-right: 16px; overflow: hidden;} +.Conditions_word {width:100%; position:absolute; top:0px; left:0px; display:block; font-size: 14px;} +/***20140122yl***/ +.yanzm { width: 30%; position: absolute; right: 14px; top: 0; background-color: #f2f2f2; color: #6c6c6c; font-size: 14px; text-align: center;border:1px solid #ccc; height:42px; line-height:42px; +/***杈规鍗婂缎**/ +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +-o-border-radius:5px;} .sendsn { height:40px; line-height:40px;} \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/public.css b/source/plugin/dzapp_haodai/images/wap/public.css index 8470913..5e50464 100644 --- a/source/plugin/dzapp_haodai/images/wap/public.css +++ b/source/plugin/dzapp_haodai/images/wap/public.css @@ -1,286 +1,286 @@ -@charset "utf-8"; -/* CSS Document */ -* {margin:0; padding:0;font-family:"Microsoft Yahei";border: 0 none; - /* prevent the popup menu on any links*/ -/*-webkit-box-sizing:border-box; --moz-box-sizing:border-box; -box-sizing:border-box;*/} -body {font-family:Arial, Helvetica, sans-serif; font-family:Tahoma,"Microsoft Yahei", Arial, Helvetica, sans-serif;color:#666;font-size:12px; margin:0; padding:0;-webkit-text-size-adjust:none; height: 100%; -overflow-x:hidden; -color:#000;} -*html{background-image:url(about:blank);background-attachment:fixed;} -a {font-family:"Microsoft Yahei"; text-decoration:none;} -a:hover {color:#006bc4;} -.fl {float:left;} -.fr {float:right;} -.clear {clear:both;} -img {border:none;} -ul {list-style:none;} -.w100 {width:100%;} -.w70 {width:70%;} -.w65 {width:65%;} -.mt10 {margin-top:10px;} -.mt15 {margin-top:15px;} -.mt20 {margin-top:20px;} -.pd15 {padding:15px;} -.pdb30 {padding-bottom:30px;} -.pdt10 {padding-top:10px;} -.pdt15 {padding-top:15px;} -.pdlr15 {padding:0px 15px;} -.auto ,.autoImg img {margin:0 auto;} -.autoImg img {display:block;} -.pd5 {padding:5px;} -.pd18 {padding:18px;} -.mt25 {margin-top:25px;} -.none {display:none;} -.relative {position:relative;} -.minle11 {margin-left:11px;} -.w85 { width: 85%;} -.p15 { padding:15px;} -.main {} -.z9 {z-index: 9;} -.z8 {z-index: 8;} -.z7 {z-index: 7;} -.z6 {z-index: 6;} -.z5 {z-index: 5;} -.testooo { -border-top-left-radius:5px;border-top-right-radius:5px; --ms-border-top-left-radius:5px;-ms-border-top-right-radius:5px; --moz-border-top-left-radius:5px;-moz-border-top-right-radius:5px; --webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px; --o-border-top-left-radius:5px;-o-border-top-right-radius:5px; -background-image: -webkit-gradient(linear,left top,left bottom,from(#494d53),to(#1e2124));background-image: -webkit-linear-gradient(#494d53,#1e2124);background-image: -moz-linear-gradient(#494d53,#1e2124);background-image: -ms-linear-gradient(#494d53,#1e2124);background-image: -o-linear-gradient(#494d53,#1e2124);background-image: linear-gradient(#494d53,#1e2124); -box-shadow:0px 1px 5px #000; --ms-box-shadow:0px 1px 5px #000; --moz-box-shadow:0px 1px 5px #000; --webkit-box-shadow:0px 1px 5px #000; --o-box-shadow:0px 1px 5px #000; -box-shadow:0px 1px 2px #e5e5e5 inset; -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; --o-border-radius:5px; -text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2); -} -.iconbox {width:18px; height:18px; position:absolute; background-color:rgba(0, 0, 0, 0.4); -} -.Ptop {height:50px; border-top:1px solid #73bffa; -background-image: -webkit-gradient(linear,left top,left bottom,from(#4ea7eb),to(#4fa9ee)); -background-image: -webkit-linear-gradient(#4ea7eb,#4fa9ee); -background-image: -moz-linear-gradient(#4ea7eb,#4fa9ee); -background-image: -ms-linear-gradient(#4ea7eb,#4fa9ee); -background-image: -o-linear-gradient(#4ea7eb,#4fa9ee); -background-image: linear-gradient(#4ea7eb,#4fa9ee); -} -.TopCity ,.TopBtn {display:inline-block;position:absolute;color:#fff;font-size:16px; font-weight:bold;} -.TopCity {height:32px; line-height:32px; left:80px; top:8px; -text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2);} -.TopCity:hover ,.TopCity:active {background:#0e87e3; color:#fff;} -.TopCity span {display:block; height:32px; line-height:32px; float:left;} -.TopCity_word {padding:0px 10px;} -.TopCity_img {width:10px; padding-right:10px;} -.TopCity_img img {width: 10px; height: 15px; margin-top: 8px;} - -.Toplogo {display:block; position:absolute; left:10px; top:4px;} -.Toplogo ,.Toplogo img {width:59px; height:41px;} -.TopBtn {font-size:15px; font-weight:bold; color:#fff;padding:0px 10px;border:1px solid #3584c0; display:inline-block; height:32px; line-height:32px; position:absolute; right:10px; top:7px; -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; --o-border-radius:5px; -background-image: -webkit-gradient(linear,left top,left bottom,from(#57b6fe),to(#4ba1e4)); -background-image: -webkit-linear-gradient(#57b6fe,#4ba1e4); -background-image: -moz-linear-gradient(#57b6fe,#4ba1e4); -background-image: -ms-linear-gradient(#57b6fe,#4ba1e4); -background-image: -o-linear-gradient(#57b6fe,#4ba1e4); -background-image: linear-gradient(#57b6fe,#4ba1e4); -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); -text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2);} -.TopBtn:hover ,.TopBtn:active {background:#4ba1e4; color:#f6f6f6; text-decoration:none;} -.CityChange {position:absolute; top:50px; left:0px; width:100%;background:#fff; z-index:9999; border:1px solid #ddd; display:none; -box-shadow:0px 0px 5px #bbb; --ms-box-shadow:0px 0px 5px #bbb; --moz-box-shadow:0px 0px 5px #bbb; --webkit-box-shadow:0px 0px 5px #bbb; --o-box-shadow:0px 0px 5px #bbb;} -.CityChange table td {height:35px; line-height:35px; text-align:center; font-size:12px; color:#333; border-bottom:1px solid #ccc; background:#f6f6f6; border-left:1px solid #ddd;} -.CityChange table td.SCityTab {background:#fff; border-bottom:1px solid #fff; border-left:1px solid #ccc; color:#0098f1;} -.Ipt_tit01 span {height:42px; line-height:42px; text-align:center; font-size:14px; color:#333;} -.CityChangeTC {padding-bottom:8px;} -.CityChangeTC li {float:left; margin:3px 0px; width:25%;} -.CityChangeTC li ,.CityChangeTC li a {height:3em; line-height:3em; text-align:center; display:block; overflow:hidden;} -.CityChangeTC li a {color:#666; width:100%;} -.CityChangeTC li:hover ,.CityChangeTC li:active {background:#ccecff;} -.CityChangeTC_con {display:none;} -.SearchBtn {display:block; width:80px; border:1px solid #008dbf; background:#4fa9ee;} - -/************************20140120************************/ -.head_left ,.head_right ,a.noiconbtn ,a.shouy {position: absolute; top: 8px;z-index:100;} - -a.noiconbtn ,a.shouy ,.TopRiBtn {display:block; font-size:14px; color:#fff; border:1px solid #3382be; -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3);} -a.noiconbtn ,a.shouy ,a.noiconbtn span ,a.shouy span { -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; --o-border-radius:5px;} -a.noiconbtn span ,a.shouy span {padding:0 10px;height:32px; line-height:32px;display:block; -box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; --ms-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; --moz-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; --webkit-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; --o-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset;} -a.noiconbtn:active ,a.shouy:active {background: #007ad7;} -.TopRiBtn {right:10px;} -.BorRadius3 { -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px;} - - -/***************************page**********************************/ -.mat_top { width:100%; background:url(bgtop.jpg) repeat-x; height:50px;} -.header { z-index:100;} -.head_left ,.head_right ,a.noiconbtn ,a.shouy {position: absolute; top: 8px;} -.head_left {left:10px;} -.head_left a:active {} -.fanhui { background-image:url(ansfh.jpg); width:58px; height:37px; float:left; color:#fff; font-size:14px; text-align:center; line-height:37px;} -.backbtn {width: 57px; height: 34px; line-height: 32px; text-indent: 16px; color: #fff;font-size:14px; background: url(backbtn.png);} -.backbtn:active {width: 54px; height: 34px; line-height: 32px; text-indent: 16px; color: #fff;font-size:14px; background: url(backbtn.png) 0px -34px no-repeat;} -.head_right {right:10px;} -.head_right a:active {} -.head_cen { width:100%; position:absolute; z-index:0;} -.cen_mat { padding:0 80px 0 80px;} -.cen_mat .tit { height:50px; line-height:50px; text-align:center; font-size:20px; color:#fff; display:block; -text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2);} -/***btn***/ -a.noiconbtn ,a.shouy {display:block; font-size:14px; color:#fff; border:1px solid #3382be; -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3);} -a.noiconbtn ,a.shouy ,a.noiconbtn span ,a.shouy span { -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; --o-border-radius:5px;} -a.noiconbtn span ,a.shouy span {padding:0 10px;height:32px; line-height:32px;display:block; -box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; --ms-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; --moz-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; --webkit-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; --o-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset;} -a.noiconbtn:active ,a.shouy:active {background: #007ad7;} -.bottom { padding-top:15px;} -.about { text-align:center; font-size:14px; line-height:30px; color: #666;} -.about a { color:#4fa9ee; text-decoration:underline;} -.copy { text-align:center;line-height:30px; color:#999;} -/************************20140120************************/ -.head_left ,.head_right ,a.noiconbtn ,a.shouy {position: absolute; top: 8px;z-index:100;} -.TopRiBtn {right:10px;} -.BorRadius3 { -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px;} -.moreSearchTC {position:fixed; top:0px; width:100%; right:0px; z-index:9999; background:#f8f8f8; display:none;} -.moreSearchTC_Nav {width:105px; position:absolute; top:0px; left:0px;} -.moreSearchTC_Nav li {height:50px; line-height:50px; border-bottom:1px solid #e9e9e9; border-left:4px solid #f8f8f8; width:101px; text-align:center; font-size:16px; color:#333;} -.moreSearchTC_Nav li.show {border-left:4px solid #4aa0e2; background:#efefef; color:#3296e3;} -.moreSearchTC_pdlNav {padding-left:105px;} -.moreSearchTC_ConPD {padding:15px;background:#efefef;} -.moreSearchTC_Con {display:none;} -.moreSearchTC_Con_li ,.moreSearchTC_Con_ipt {height:40px; line-height:40px; border:1px solid #c6c6c6;background:#fff; -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px; -box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset; --ms-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset; --moz-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset; --webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset; --o-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset;} -.moreSearchTC_Con_li {margin-bottom:15px;} -.HomeSelect_span ,.mHSearch_select_show {height:40px; line-height:41px;} -.HomeSelect_span {text-indent:10px;color: #999;display: block;font-size: 14px; width: 80%; overflow: hidden;} -.mHSearch_select_show {width:100%; opacity: 0; position:absolute; top:0px; left:0px; display:block; font-size: 14px;} -.xl3icon180 {-webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate -(180deg); transform: rotate(180deg);} -.xl3icon {position:absolute; right:12px; top:15px; width:0px; height:0px; z-index: 9900; --ms-background-size:18px 21px; --moz-background-size:18px 21px; --webkit-background-size:18px 21px; --o-background-size:18px 21px; --webkit-transition: all .25s ease 0s; --moz-transition: all .25s ease 0s; --o-transition: all .25s ease 0s; -transition: all .25s ease 0s; -border-color:#888 transparent transparent; -border-style:solid dashed dashed; -border-width:8px 8px 0;} -.mHSearch_select_show {color: #999;display: block;text-indent: 10px; width: 100%; overflow: hidden; position: absolute; left: 0px; top: 0px; z-index: 9990;} -.mHSearch_select_ul {border: 1px solid #c6c6c6; display: none; border-bottom: none; width: 100%; position: absolute; top: 39px; left: -1px; z-index: 9990;} -.mHSearch_select_ul li {height: 40px; line-height: 40px; text-indent: 10px; overflow:hidden; background: #fff; color: #333; border-bottom: 1px solid #e5e5e5;} -.mHSearch_select_ul li:last-child {border-bottom: none;} -.mHSearch_select_ul li:active {background: #f2f2f2;} -.mHSearch_select_ul li.mo {background: #f4f4f4;} -.HSearch_Select {width:100%;opacity:0; position:absolute; top:0px; left:0px; height:40px; line-height:31px; display:block;} -.iptCLA {height:40px; line-height:33px; background:none; text-align:left; color:#999;} -.moreSearchTC_Con_xl {width:16px; height:17px;background:url(xl.png) no-repeat; position:absolute; top:18px; right:10px; --moz-background-size:16px 8px; /* Firefox */ -background-size:16px 8px; -background-repeat:no-repeat; -} -.moreSearchTC_Con_li2 {height:42px; line-height:42px; margin-bottom:15px;} -.moreSearchTC_Con_ipt {width:46%; height:40px; line-height:40px;} -.moreSearchTC_Con_ipt input ,.moreSearchTC_Con_ipt span ,.moreSearchTC_Con_Btn {height:40px; line-height:40px;} -.moreSearchTC_Con_ipt input {width:100%; text-indent:10px; color:#666; font-size:14px;} -.moreSearchTC_Con_ipt span {position:absolute; top:1px; right:10px; font-size:14px; color:#999;} -.moreSearchTC_Con_BtnCon {} -.moreSearchTC_Con_Btn {width:100%;border:1px solid #008dbf; text-align:center;font-size:16px; color:#fff; cursor:pointer; display:block; background:#4fa9ee; font-weight:bold; margin-bottom:30px; -border-radius:3px; --ms-border-radius:3px; --moz-border-radius:3px; --webkit-border-radius:3px; --o-border-radius:3px; -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; -text-shadow:0px -1px 0px #0092c6;} -.moreSearchTC_Con_Btn:hover {color:#fff;} -.moreSearchTC_Con_Btn:active {background:#007bd9;} -.SearchTCZZC {display:none; width:100%; height:700px; background:#000;opacity: 0.5; z-index:9900;position: fixed; left:0; top:0;} -.Search_Money_ul {display:block; position:absolute; top:38px; right:-1px; z-index:9000; border:1px solid #d5d5d5; border-bottom:none; width:100%; background:#fff;} -.Search_Money_ul li {width:100%; border-bottom:1px solid #d5d5d5; height:35px; line-height:35px; text-indent:10px; font-size:14px;} -.Search_Money_ul li.mo {background:#e5e5e5;} -.Search_Money_ul li:active {background:#e3e3e3;} -.HomeSelect_show ,.HomeSelect {height:40px; line-height:41px;} -.HomeSelect_show {text-indent:10px;color: #999;display: block;font-size: 14px;} -.HomeSelect {width:100%;opacity:0; position:absolute; top:0px; left:0px; display:block; font-size: 14px;} -.Search_type_xl {width:10px; height:5px;background:url(xl.png) no-repeat; position:absolute; top:18px; right:10px; --moz-background-size:10px 5px; /* Firefox */ -background-size:10px 5px; -background-repeat:no-repeat; -} -.head_left1{ position: absolute;top: 8px;left: 10px;z-index: 100;} -.header1{ } +@charset "utf-8"; +/* CSS Document */ +* {margin:0; padding:0;font-family:"Microsoft Yahei";border: 0 none; + /* prevent the popup menu on any links*/ +/*-webkit-box-sizing:border-box; +-moz-box-sizing:border-box; +box-sizing:border-box;*/} +body {font-family:Arial, Helvetica, sans-serif; font-family:Tahoma,"Microsoft Yahei", Arial, Helvetica, sans-serif;color:#666;font-size:12px; margin:0; padding:0;-webkit-text-size-adjust:none; height: 100%; +overflow-x:hidden; +color:#000;} +*html{background-image:url(about:blank);background-attachment:fixed;} +a {font-family:"Microsoft Yahei"; text-decoration:none;} +a:hover {color:#006bc4;} +.fl {float:left;} +.fr {float:right;} +.clear {clear:both;} +img {border:none;} +ul {list-style:none;} +.w100 {width:100%;} +.w70 {width:70%;} +.w65 {width:65%;} +.mt10 {margin-top:10px;} +.mt15 {margin-top:15px;} +.mt20 {margin-top:20px;} +.pd15 {padding:15px;} +.pdb30 {padding-bottom:30px;} +.pdt10 {padding-top:10px;} +.pdt15 {padding-top:15px;} +.pdlr15 {padding:0px 15px;} +.auto ,.autoImg img {margin:0 auto;} +.autoImg img {display:block;} +.pd5 {padding:5px;} +.pd18 {padding:18px;} +.mt25 {margin-top:25px;} +.none {display:none;} +.relative {position:relative;} +.minle11 {margin-left:11px;} +.w85 { width: 85%;} +.p15 { padding:15px;} +.main {} +.z9 {z-index: 9;} +.z8 {z-index: 8;} +.z7 {z-index: 7;} +.z6 {z-index: 6;} +.z5 {z-index: 5;} +.testooo { +border-top-left-radius:5px;border-top-right-radius:5px; +-ms-border-top-left-radius:5px;-ms-border-top-right-radius:5px; +-moz-border-top-left-radius:5px;-moz-border-top-right-radius:5px; +-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px; +-o-border-top-left-radius:5px;-o-border-top-right-radius:5px; +background-image: -webkit-gradient(linear,left top,left bottom,from(#494d53),to(#1e2124));background-image: -webkit-linear-gradient(#494d53,#1e2124);background-image: -moz-linear-gradient(#494d53,#1e2124);background-image: -ms-linear-gradient(#494d53,#1e2124);background-image: -o-linear-gradient(#494d53,#1e2124);background-image: linear-gradient(#494d53,#1e2124); +box-shadow:0px 1px 5px #000; +-ms-box-shadow:0px 1px 5px #000; +-moz-box-shadow:0px 1px 5px #000; +-webkit-box-shadow:0px 1px 5px #000; +-o-box-shadow:0px 1px 5px #000; +box-shadow:0px 1px 2px #e5e5e5 inset; +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +-o-border-radius:5px; +text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2); +} +.iconbox {width:18px; height:18px; position:absolute; background-color:rgba(0, 0, 0, 0.4); +} +.Ptop {height:50px; border-top:1px solid #73bffa; +background-image: -webkit-gradient(linear,left top,left bottom,from(#4ea7eb),to(#4fa9ee)); +background-image: -webkit-linear-gradient(#4ea7eb,#4fa9ee); +background-image: -moz-linear-gradient(#4ea7eb,#4fa9ee); +background-image: -ms-linear-gradient(#4ea7eb,#4fa9ee); +background-image: -o-linear-gradient(#4ea7eb,#4fa9ee); +background-image: linear-gradient(#4ea7eb,#4fa9ee); +} +.TopCity ,.TopBtn {display:inline-block;position:absolute;color:#fff;font-size:16px; font-weight:bold;} +.TopCity {height:32px; line-height:32px; left:80px; top:8px; +text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2);} +.TopCity:hover ,.TopCity:active {background:#0e87e3; color:#fff;} +.TopCity span {display:block; height:32px; line-height:32px; float:left;} +.TopCity_word {padding:0px 10px;} +.TopCity_img {width:10px; padding-right:10px;} +.TopCity_img img {width: 10px; height: 15px; margin-top: 8px;} + +.Toplogo {display:block; position:absolute; left:10px; top:4px;} +.Toplogo ,.Toplogo img {width:59px; height:41px;} +.TopBtn {font-size:15px; font-weight:bold; color:#fff;padding:0px 10px;border:1px solid #3584c0; display:inline-block; height:32px; line-height:32px; position:absolute; right:10px; top:7px; +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +-o-border-radius:5px; +background-image: -webkit-gradient(linear,left top,left bottom,from(#57b6fe),to(#4ba1e4)); +background-image: -webkit-linear-gradient(#57b6fe,#4ba1e4); +background-image: -moz-linear-gradient(#57b6fe,#4ba1e4); +background-image: -ms-linear-gradient(#57b6fe,#4ba1e4); +background-image: -o-linear-gradient(#57b6fe,#4ba1e4); +background-image: linear-gradient(#57b6fe,#4ba1e4); +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2);} +.TopBtn:hover ,.TopBtn:active {background:#4ba1e4; color:#f6f6f6; text-decoration:none;} +.CityChange {position:absolute; top:50px; left:0px; width:100%;background:#fff; z-index:9999; border:1px solid #ddd; display:none; +box-shadow:0px 0px 5px #bbb; +-ms-box-shadow:0px 0px 5px #bbb; +-moz-box-shadow:0px 0px 5px #bbb; +-webkit-box-shadow:0px 0px 5px #bbb; +-o-box-shadow:0px 0px 5px #bbb;} +.CityChange table td {height:35px; line-height:35px; text-align:center; font-size:12px; color:#333; border-bottom:1px solid #ccc; background:#f6f6f6; border-left:1px solid #ddd;} +.CityChange table td.SCityTab {background:#fff; border-bottom:1px solid #fff; border-left:1px solid #ccc; color:#0098f1;} +.Ipt_tit01 span {height:42px; line-height:42px; text-align:center; font-size:14px; color:#333;} +.CityChangeTC {padding-bottom:8px;} +.CityChangeTC li {float:left; margin:3px 0px; width:25%;} +.CityChangeTC li ,.CityChangeTC li a {height:3em; line-height:3em; text-align:center; display:block; overflow:hidden;} +.CityChangeTC li a {color:#666; width:100%;} +.CityChangeTC li:hover ,.CityChangeTC li:active {background:#ccecff;} +.CityChangeTC_con {display:none;} +.SearchBtn {display:block; width:80px; border:1px solid #008dbf; background:#4fa9ee;} + +/************************20140120************************/ +.head_left ,.head_right ,a.noiconbtn ,a.shouy {position: absolute; top: 8px;z-index:100;} + +a.noiconbtn ,a.shouy ,.TopRiBtn {display:block; font-size:14px; color:#fff; border:1px solid #3382be; +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3);} +a.noiconbtn ,a.shouy ,a.noiconbtn span ,a.shouy span { +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +-o-border-radius:5px;} +a.noiconbtn span ,a.shouy span {padding:0 10px;height:32px; line-height:32px;display:block; +box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; +-ms-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; +-moz-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; +-webkit-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; +-o-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset;} +a.noiconbtn:active ,a.shouy:active {background: #007ad7;} +.TopRiBtn {right:10px;} +.BorRadius3 { +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px;} + + +/***************************page**********************************/ +.mat_top { width:100%; background:url(bgtop.jpg) repeat-x; height:50px;} +.header { z-index:100;} +.head_left ,.head_right ,a.noiconbtn ,a.shouy {position: absolute; top: 8px;} +.head_left {left:10px;} +.head_left a:active {} +.fanhui { background-image:url(ansfh.jpg); width:58px; height:37px; float:left; color:#fff; font-size:14px; text-align:center; line-height:37px;} +.backbtn {width: 57px; height: 34px; line-height: 32px; text-indent: 16px; color: #fff;font-size:14px; background: url(backbtn.png);} +.backbtn:active {width: 54px; height: 34px; line-height: 32px; text-indent: 16px; color: #fff;font-size:14px; background: url(backbtn.png) 0px -34px no-repeat;} +.head_right {right:10px;} +.head_right a:active {} +.head_cen { width:100%; position:absolute; z-index:0;} +.cen_mat { padding:0 80px 0 80px;} +.cen_mat .tit { height:50px; line-height:50px; text-align:center; font-size:20px; color:#fff; display:block; +text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2);} +/***btn***/ +a.noiconbtn ,a.shouy {display:block; font-size:14px; color:#fff; border:1px solid #3382be; +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3);} +a.noiconbtn ,a.shouy ,a.noiconbtn span ,a.shouy span { +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +-o-border-radius:5px;} +a.noiconbtn span ,a.shouy span {padding:0 10px;height:32px; line-height:32px;display:block; +box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; +-ms-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; +-moz-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; +-webkit-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset; +-o-box-shadow:0px 1px 2px rgba(255, 255, 255, 0.3) inset;} +a.noiconbtn:active ,a.shouy:active {background: #007ad7;} +.bottom { padding-top:15px;} +.about { text-align:center; font-size:14px; line-height:30px; color: #666;} +.about a { color:#4fa9ee; text-decoration:underline;} +.copy { text-align:center;line-height:30px; color:#999;} +/************************20140120************************/ +.head_left ,.head_right ,a.noiconbtn ,a.shouy {position: absolute; top: 8px;z-index:100;} +.TopRiBtn {right:10px;} +.BorRadius3 { +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px;} +.moreSearchTC {position:fixed; top:0px; width:100%; right:0px; z-index:9999; background:#f8f8f8; display:none;} +.moreSearchTC_Nav {width:105px; position:absolute; top:0px; left:0px;} +.moreSearchTC_Nav li {height:50px; line-height:50px; border-bottom:1px solid #e9e9e9; border-left:4px solid #f8f8f8; width:101px; text-align:center; font-size:16px; color:#333;} +.moreSearchTC_Nav li.show {border-left:4px solid #4aa0e2; background:#efefef; color:#3296e3;} +.moreSearchTC_pdlNav {padding-left:105px;} +.moreSearchTC_ConPD {padding:15px;background:#efefef;} +.moreSearchTC_Con {display:none;} +.moreSearchTC_Con_li ,.moreSearchTC_Con_ipt {height:40px; line-height:40px; border:1px solid #c6c6c6;background:#fff; +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px; +box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset; +-ms-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset; +-moz-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset; +-webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset; +-o-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05) inset;} +.moreSearchTC_Con_li {margin-bottom:15px;} +.HomeSelect_span ,.mHSearch_select_show {height:40px; line-height:41px;} +.HomeSelect_span {text-indent:10px;color: #999;display: block;font-size: 14px; width: 80%; overflow: hidden;} +.mHSearch_select_show {width:100%; opacity: 0; position:absolute; top:0px; left:0px; display:block; font-size: 14px;} +.xl3icon180 {-webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate +(180deg); transform: rotate(180deg);} +.xl3icon {position:absolute; right:12px; top:15px; width:0px; height:0px; z-index: 9900; +-ms-background-size:18px 21px; +-moz-background-size:18px 21px; +-webkit-background-size:18px 21px; +-o-background-size:18px 21px; +-webkit-transition: all .25s ease 0s; +-moz-transition: all .25s ease 0s; +-o-transition: all .25s ease 0s; +transition: all .25s ease 0s; +border-color:#888 transparent transparent; +border-style:solid dashed dashed; +border-width:8px 8px 0;} +.mHSearch_select_show {color: #999;display: block;text-indent: 10px; width: 100%; overflow: hidden; position: absolute; left: 0px; top: 0px; z-index: 9990;} +.mHSearch_select_ul {border: 1px solid #c6c6c6; display: none; border-bottom: none; width: 100%; position: absolute; top: 39px; left: -1px; z-index: 9990;} +.mHSearch_select_ul li {height: 40px; line-height: 40px; text-indent: 10px; overflow:hidden; background: #fff; color: #333; border-bottom: 1px solid #e5e5e5;} +.mHSearch_select_ul li:last-child {border-bottom: none;} +.mHSearch_select_ul li:active {background: #f2f2f2;} +.mHSearch_select_ul li.mo {background: #f4f4f4;} +.HSearch_Select {width:100%;opacity:0; position:absolute; top:0px; left:0px; height:40px; line-height:31px; display:block;} +.iptCLA {height:40px; line-height:33px; background:none; text-align:left; color:#999;} +.moreSearchTC_Con_xl {width:16px; height:17px;background:url(xl.png) no-repeat; position:absolute; top:18px; right:10px; +-moz-background-size:16px 8px; /* Firefox */ +background-size:16px 8px; +background-repeat:no-repeat; +} +.moreSearchTC_Con_li2 {height:42px; line-height:42px; margin-bottom:15px;} +.moreSearchTC_Con_ipt {width:46%; height:40px; line-height:40px;} +.moreSearchTC_Con_ipt input ,.moreSearchTC_Con_ipt span ,.moreSearchTC_Con_Btn {height:40px; line-height:40px;} +.moreSearchTC_Con_ipt input {width:100%; text-indent:10px; color:#666; font-size:14px;} +.moreSearchTC_Con_ipt span {position:absolute; top:1px; right:10px; font-size:14px; color:#999;} +.moreSearchTC_Con_BtnCon {} +.moreSearchTC_Con_Btn {width:100%;border:1px solid #008dbf; text-align:center;font-size:16px; color:#fff; cursor:pointer; display:block; background:#4fa9ee; font-weight:bold; margin-bottom:30px; +border-radius:3px; +-ms-border-radius:3px; +-moz-border-radius:3px; +-webkit-border-radius:3px; +-o-border-radius:3px; +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3) inset; +text-shadow:0px -1px 0px #0092c6;} +.moreSearchTC_Con_Btn:hover {color:#fff;} +.moreSearchTC_Con_Btn:active {background:#007bd9;} +.SearchTCZZC {display:none; width:100%; height:700px; background:#000;opacity: 0.5; z-index:9900;position: fixed; left:0; top:0;} +.Search_Money_ul {display:block; position:absolute; top:38px; right:-1px; z-index:9000; border:1px solid #d5d5d5; border-bottom:none; width:100%; background:#fff;} +.Search_Money_ul li {width:100%; border-bottom:1px solid #d5d5d5; height:35px; line-height:35px; text-indent:10px; font-size:14px;} +.Search_Money_ul li.mo {background:#e5e5e5;} +.Search_Money_ul li:active {background:#e3e3e3;} +.HomeSelect_show ,.HomeSelect {height:40px; line-height:41px;} +.HomeSelect_show {text-indent:10px;color: #999;display: block;font-size: 14px;} +.HomeSelect {width:100%;opacity:0; position:absolute; top:0px; left:0px; display:block; font-size: 14px;} +.Search_type_xl {width:10px; height:5px;background:url(xl.png) no-repeat; position:absolute; top:18px; right:10px; +-moz-background-size:10px 5px; /* Firefox */ +background-size:10px 5px; +background-repeat:no-repeat; +} +.head_left1{ position: absolute;top: 8px;left: 10px;z-index: 100;} +.header1{ } .nianl{overflow:774px} \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/s.js b/source/plugin/dzapp_haodai/images/wap/s.js index 3ded8eb..cc7ea60 100644 --- a/source/plugin/dzapp_haodai/images/wap/s.js +++ b/source/plugin/dzapp_haodai/images/wap/s.js @@ -1,20 +1,20 @@ -/** - * 高级搜索 - */ - -function conditionSel(obj) { - var obj = $(obj); - var showTit = obj.parents('.moreSearchTC_Con_li').children('span.HomeSelect_span'); - var $selectObj = obj.children('option:selected'); - var selectTit = $selectObj.text(); - showTit.text(selectTit); - -} -$(document).ready(function() { - var $selectList = $(".mHSearch_select_show"); - - $.each($selectList, function(index, domEle) { - conditionSel(domEle); - }); - +/** + * 高级搜索 + */ + +function conditionSel(obj) { + var obj = $(obj); + var showTit = obj.parents('.moreSearchTC_Con_li').children('span.HomeSelect_span'); + var $selectObj = obj.children('option:selected'); + var selectTit = $selectObj.text(); + showTit.text(selectTit); + +} +$(document).ready(function() { + var $selectList = $(".mHSearch_select_show"); + + $.each($selectList, function(index, domEle) { + conditionSel(domEle); + }); + }); \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/style.css b/source/plugin/dzapp_haodai/images/wap/style.css index ea332ea..36c0df1 100644 --- a/source/plugin/dzapp_haodai/images/wap/style.css +++ b/source/plugin/dzapp_haodai/images/wap/style.css @@ -1,160 +1,160 @@ -@charset "utf-8"; -/* CSS Document -Use for: xxxx -Version: 1.0 -Date: 2014/04/16 -Author: glq -Update: -*/ - -/* CSS Reset */ -body, div, span, applet, object, iframe,input, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, hr { padding: 0; margin: 0; } -table { border-collapse: collapse; border-spacing: 0; } -caption{ text-align:left;} -ins{ text-decoration: none;} -del{ text-decoration: line-through;} -input,select{ vertical-align:middle;} -input,textarea,select{font:12px Tahoma,Geneva, Arial, Helvetica, sans-serif; } -fieldset, img { border: 0; } -address,code,caption,th,cite,dfn,em,var{font-style:normal;} -ol, ul { list-style: none; } -h1, h2, h3, h4, h5, h6 {font-size: 100%; } -q:before, q:after { content:""; } -legend{ display:none;} - - -/* bass css */ -body{ margin:0 auto; font:12px/1.8 Arial, Helvetica, sans-serif, "Microsoft Yahei"; color:#333; background-color:#fff; } - -.wrapper{ width:100%; } -td {font-size:12px; line-height:1.8;} -.txt_left{ text-align:left;} -.txt_center{ text-align:center;} -.txt_right{ text-align:right;} -.txt_hide{ text-indent:-999em; display:block;} -.txt_u{ text-decoration:underline;} -.txt_t{ text-decoration:line-through;} -.txt_i{ text-indent:2em;} -.fw_n{ font-weight:normal;} -.fw_b{ font-weight:bold;} -.fs_12{ font-size:12px;} -.fs_14{ font-size:14px;} -.btn_txt_hide{ font-size:0px; overflow:hidden; line-height:999px; cursor:pointer;border:none;} -.left{ float:left;} -.right{ float:right;} -.undis{ display:none;} -.clearfix:after{ content:""; height:0; visibility:hidden; display:block; clear:both;} -.clearfix{ zoom:1;} -.clear { clear:both } -.relative{ position:relative;} -/*********public style*********/ - -/* link css */ -a {color: #39442e; text-decoration:none; outline:none;} -a:hover {text-decoration:none;} - -html{-webkit-text-size-adjust:none; font:6.25%;} -/* header */ - -.h-ul{ overflow:hidden;} -.h-ul li{ /*width:25%;*/ width: 50%; height:44px; float:left; display:block;} -.h-ul li a{ display:block;line-height:43px;background:#fafafa; font-weight: bold; border-right:solid 1px #ccc; text-align:center; border-bottom: solid 1px #ccc; font-size:14px; color:#05a4ff;} -/*.h-ul li a:hover,*/ -.h-ul li a.on{ background:#4fa9ee; color:#fff; box-shadow:1px 1px 1px #72bef8 inset;border-bottom: solid 1px #4c4e4f;} -.bor-r{ border-right:solid 1px #ccc;} - -.head{ height:44px; line-height:44px; background:#4fa9ee;box-shadow:1px 1px 1px #72bef8 inset; position:relative;} -.head01{ height:44px; line-height:44px; background:#4fa9ee;box-shadow:1px 1px 1px #72bef8 inset; position:relative;} -.head .btn-back{ position:absolute; left:12px; top:7px; z-index:9;} -.head h2{ display:block; font-size:14px; text-align:center; color:#fff; font-weight:normal;} -.head01 h2{ display:block; font-size:14px; text-align:center; color:#fff; font-weight:normal;} -/*container*/ -.container{ padding:12px;} - -.tab-le,.tab-le2{ border:none; width:100%; } -.tab-le tr th,.tab-le tr td{ padding:4px 0; line-height:36px; height:36px;} -.tab-le tr th{ width:90px; font-size:14px; font-weight:normal; text-align:left;} -.tab-le tr td{ font-size:12px; color:#999;} - -.input-txt,.sel-box{ width:100%;height:20px; padding:7px 0; line-height:20px; text-indent:.8em; background:#fff; border-radius:5px; border:1px #ccc solid;box-shadow:1px 1px 1px #ccc inset; color:#999;} -.input-txt:focus,.sel-box:focus{border:1px #4fa9ee solid;box-shadow:1px 1px 1px #72bef8 inset;} -.sel-box{ height:36px; text-indent:.4em;} - -.i-unit{ position:absolute; top:0; right:10px; height:44px; line-height:44px; z-index:9;} - -.width1{ width:65%;} -.width2{ width:25%;} - -.btn{ display:block; cursor: pointer; height:44px; line-height:44px; color:#fff; background:#4fa9ee; text-align:center; font-size:14px;box-shadow:1px 1px 1px #72bef8 inset; border:1px #008dbf solid; border-radius:5px; text-shadow:1px 1px 1px #4087bf;} -.btn:hover{ background:#6bbaf6;} - -/* btn-back*/ - -.b-bg{ background:url(btn.png) no-repeat; cursor: pointer;} -.btn-back{ display:inline-block; height:30px; padding-left:20px; line-height:30px; color:#fff; background-position:0 0; font-size:12px; text-align:center;} -.btn-back span{ display:inline-block; height:30px; padding-right:10px; background-position:right -30px;} -.btn-back:hover{background-position:0 -60px;} -.btn-back:hover span{background-position:right -90px;} - -/* list */ - -.con-m{ margin-bottom:16px; } -.h3-tit,.HotPro{ display:block; height:42px; line-height:42px; padding:0 16px; border-top:solid 1px #4fa9ee; border-bottom:solid 1px #eee; background:#f5f3f3; color:#444; font-size:14px;} -.tab-le2 tr td,.tab-le2 tr th{ height:44px; line-height:44px; color:#666; padding:0 16px; border-bottom:solid 1px #eee;} -.tab-le2 tr th{ text-align:left; font-weight:normal;} -.tab-le2 tr td{ text-align:right;} -.none{ display: none;} -.tab-le2 tr td span{ color: red; padding-right: 5px;} -.tab-le2 tr td .js_time{ color: #0066ff;} -.pd15{ padding: 15px;} -.prolist {border-bottom:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;} -.prolistLink {display:block; text-decoration:none; padding:10px 18px 10px 80px;} -.prolistLink:link ,.prolistLink:visited {background:#fff;} -.prolistLink:active {background:#f1f1f1;} -.prolist_img {width:42px; height:42px; border:1px solid #e3e3e3; position:absolute; left:18px; top:14px;} -.prolist_name {font-size:16px;} -.prolist_name {color:#15a0f0; font-weight:normal;} -.prolist_infop2 {color:#999;font-size:14px;} -.prolist_jiantou {width:10px; height:17px; background:url(jiantou.png) no-repeat; position:absolute; right:10px; top:31px; --moz-background-size:10px 17px; /* Firefox */ -background-size:10px 17px; -background-repeat:no-repeat; -} -.switch_tit { background-color: #f6f6f6; height: 48px;} -.switch_tit li { float: left; height: 48px; line-height: 48px; width: 100px; text-align: center;} -.switch_tit li.ftd { background-color: #fff; border-top: 2px solid #2c99fe; overflow: hidden; border-left: 1px solid #dedede;border-right: 1px solid #dedede; height: 46px;} -.w100 { width: 100%;} -.sqBbtn { height:3em; line-height:3em; text-align:center; font-size:16px; font-weight:bold; color:#333; border:1px solid #d2d2d2; display:block; margin-top: 20px; -background-image: -webkit-gradient(linear,left top,left bottom,from(#4fc4ee),to(#34b5e3));background-image: -webkit-linear-gradient(#fafafa,#dedede); -background-image: -moz-linear-gradient(#fafafa,#dedede); -background-image: -ms-linear-gradient(#fafafa,#dedede); -background-image: -o-linear-gradient(#fafafa,#dedede); -background-image: linear-gradient(#fafafa,#dedede); -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; -border-radius:2px; --ms-border-radius:2px; --moz-border-radius:2px; --webkit-border-radius:2px; --o-border-radius:2px; -} -.mat_top { width:100%; background:url(bgtop.jpg) repeat-x; height:50px;} -.cen_mat { padding:0 80px 0 80px;} -.cen_mat .tit { height:50px; line-height:50px; text-align:center; font-size:20px; color:#fff; display:block; -text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2);} -/***btn***/ -a.noiconbtn ,a.shouy {display:block; font-size:14px; color:#fff; border:1px solid #3382be; -box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); --o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3);} -a.noiconbtn ,a.shouy ,a.noiconbtn span ,a.shouy span { -border-radius:5px; --ms-border-radius:5px; --moz-border-radius:5px; --webkit-border-radius:5px; +@charset "utf-8"; +/* CSS Document +Use for: xxxx +Version: 1.0 +Date: 2014/04/16 +Author: glq +Update: +*/ + +/* CSS Reset */ +body, div, span, applet, object, iframe,input, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, hr { padding: 0; margin: 0; } +table { border-collapse: collapse; border-spacing: 0; } +caption{ text-align:left;} +ins{ text-decoration: none;} +del{ text-decoration: line-through;} +input,select{ vertical-align:middle;} +input,textarea,select{font:12px Tahoma,Geneva, Arial, Helvetica, sans-serif; } +fieldset, img { border: 0; } +address,code,caption,th,cite,dfn,em,var{font-style:normal;} +ol, ul { list-style: none; } +h1, h2, h3, h4, h5, h6 {font-size: 100%; } +q:before, q:after { content:""; } +legend{ display:none;} + + +/* bass css */ +body{ margin:0 auto; font:12px/1.8 Arial, Helvetica, sans-serif, "Microsoft Yahei"; color:#333; background-color:#fff; } + +.wrapper{ width:100%; } +td {font-size:12px; line-height:1.8;} +.txt_left{ text-align:left;} +.txt_center{ text-align:center;} +.txt_right{ text-align:right;} +.txt_hide{ text-indent:-999em; display:block;} +.txt_u{ text-decoration:underline;} +.txt_t{ text-decoration:line-through;} +.txt_i{ text-indent:2em;} +.fw_n{ font-weight:normal;} +.fw_b{ font-weight:bold;} +.fs_12{ font-size:12px;} +.fs_14{ font-size:14px;} +.btn_txt_hide{ font-size:0px; overflow:hidden; line-height:999px; cursor:pointer;border:none;} +.left{ float:left;} +.right{ float:right;} +.undis{ display:none;} +.clearfix:after{ content:""; height:0; visibility:hidden; display:block; clear:both;} +.clearfix{ zoom:1;} +.clear { clear:both } +.relative{ position:relative;} +/*********public style*********/ + +/* link css */ +a {color: #39442e; text-decoration:none; outline:none;} +a:hover {text-decoration:none;} + +html{-webkit-text-size-adjust:none; font:6.25%;} +/* header */ + +.h-ul{ overflow:hidden;} +.h-ul li{ /*width:25%;*/ width: 50%; height:44px; float:left; display:block;} +.h-ul li a{ display:block;line-height:43px;background:#fafafa; font-weight: bold; border-right:solid 1px #ccc; text-align:center; border-bottom: solid 1px #ccc; font-size:14px; color:#05a4ff;} +/*.h-ul li a:hover,*/ +.h-ul li a.on{ background:#4fa9ee; color:#fff; box-shadow:1px 1px 1px #72bef8 inset;border-bottom: solid 1px #4c4e4f;} +.bor-r{ border-right:solid 1px #ccc;} + +.head{ height:44px; line-height:44px; background:#4fa9ee;box-shadow:1px 1px 1px #72bef8 inset; position:relative;} +.head01{ height:44px; line-height:44px; background:#4fa9ee;box-shadow:1px 1px 1px #72bef8 inset; position:relative;} +.head .btn-back{ position:absolute; left:12px; top:7px; z-index:9;} +.head h2{ display:block; font-size:14px; text-align:center; color:#fff; font-weight:normal;} +.head01 h2{ display:block; font-size:14px; text-align:center; color:#fff; font-weight:normal;} +/*container*/ +.container{ padding:12px;} + +.tab-le,.tab-le2{ border:none; width:100%; } +.tab-le tr th,.tab-le tr td{ padding:4px 0; line-height:36px; height:36px;} +.tab-le tr th{ width:90px; font-size:14px; font-weight:normal; text-align:left;} +.tab-le tr td{ font-size:12px; color:#999;} + +.input-txt,.sel-box{ width:100%;height:20px; padding:7px 0; line-height:20px; text-indent:.8em; background:#fff; border-radius:5px; border:1px #ccc solid;box-shadow:1px 1px 1px #ccc inset; color:#999;} +.input-txt:focus,.sel-box:focus{border:1px #4fa9ee solid;box-shadow:1px 1px 1px #72bef8 inset;} +.sel-box{ height:36px; text-indent:.4em;} + +.i-unit{ position:absolute; top:0; right:10px; height:44px; line-height:44px; z-index:9;} + +.width1{ width:65%;} +.width2{ width:25%;} + +.btn{ display:block; cursor: pointer; height:44px; line-height:44px; color:#fff; background:#4fa9ee; text-align:center; font-size:14px;box-shadow:1px 1px 1px #72bef8 inset; border:1px #008dbf solid; border-radius:5px; text-shadow:1px 1px 1px #4087bf;} +.btn:hover{ background:#6bbaf6;} + +/* btn-back*/ + +.b-bg{ background:url(btn.png) no-repeat; cursor: pointer;} +.btn-back{ display:inline-block; height:30px; padding-left:20px; line-height:30px; color:#fff; background-position:0 0; font-size:12px; text-align:center;} +.btn-back span{ display:inline-block; height:30px; padding-right:10px; background-position:right -30px;} +.btn-back:hover{background-position:0 -60px;} +.btn-back:hover span{background-position:right -90px;} + +/* list */ + +.con-m{ margin-bottom:16px; } +.h3-tit,.HotPro{ display:block; height:42px; line-height:42px; padding:0 16px; border-top:solid 1px #4fa9ee; border-bottom:solid 1px #eee; background:#f5f3f3; color:#444; font-size:14px;} +.tab-le2 tr td,.tab-le2 tr th{ height:44px; line-height:44px; color:#666; padding:0 16px; border-bottom:solid 1px #eee;} +.tab-le2 tr th{ text-align:left; font-weight:normal;} +.tab-le2 tr td{ text-align:right;} +.none{ display: none;} +.tab-le2 tr td span{ color: red; padding-right: 5px;} +.tab-le2 tr td .js_time{ color: #0066ff;} +.pd15{ padding: 15px;} +.prolist {border-bottom:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;} +.prolistLink {display:block; text-decoration:none; padding:10px 18px 10px 80px;} +.prolistLink:link ,.prolistLink:visited {background:#fff;} +.prolistLink:active {background:#f1f1f1;} +.prolist_img {width:42px; height:42px; border:1px solid #e3e3e3; position:absolute; left:18px; top:14px;} +.prolist_name {font-size:16px;} +.prolist_name {color:#15a0f0; font-weight:normal;} +.prolist_infop2 {color:#999;font-size:14px;} +.prolist_jiantou {width:10px; height:17px; background:url(jiantou.png) no-repeat; position:absolute; right:10px; top:31px; +-moz-background-size:10px 17px; /* Firefox */ +background-size:10px 17px; +background-repeat:no-repeat; +} +.switch_tit { background-color: #f6f6f6; height: 48px;} +.switch_tit li { float: left; height: 48px; line-height: 48px; width: 100px; text-align: center;} +.switch_tit li.ftd { background-color: #fff; border-top: 2px solid #2c99fe; overflow: hidden; border-left: 1px solid #dedede;border-right: 1px solid #dedede; height: 46px;} +.w100 { width: 100%;} +.sqBbtn { height:3em; line-height:3em; text-align:center; font-size:16px; font-weight:bold; color:#333; border:1px solid #d2d2d2; display:block; margin-top: 20px; +background-image: -webkit-gradient(linear,left top,left bottom,from(#4fc4ee),to(#34b5e3));background-image: -webkit-linear-gradient(#fafafa,#dedede); +background-image: -moz-linear-gradient(#fafafa,#dedede); +background-image: -ms-linear-gradient(#fafafa,#dedede); +background-image: -o-linear-gradient(#fafafa,#dedede); +background-image: linear-gradient(#fafafa,#dedede); +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.38) inset; +border-radius:2px; +-ms-border-radius:2px; +-moz-border-radius:2px; +-webkit-border-radius:2px; +-o-border-radius:2px; +} +.mat_top { width:100%; background:url(bgtop.jpg) repeat-x; height:50px;} +.cen_mat { padding:0 80px 0 80px;} +.cen_mat .tit { height:50px; line-height:50px; text-align:center; font-size:20px; color:#fff; display:block; +text-shadow: 0 -1px 0px rgba(7, 0, 2, 0.2);} +/***btn***/ +a.noiconbtn ,a.shouy {display:block; font-size:14px; color:#fff; border:1px solid #3382be; +box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-ms-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-moz-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3); +-o-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.3);} +a.noiconbtn ,a.shouy ,a.noiconbtn span ,a.shouy span { +border-radius:5px; +-ms-border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; -o-border-radius:5px;} \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/ucjsq.js b/source/plugin/dzapp_haodai/images/wap/ucjsq.js index 5da8ec2..0161001 100644 --- a/source/plugin/dzapp_haodai/images/wap/ucjsq.js +++ b/source/plugin/dzapp_haodai/images/wap/ucjsq.js @@ -1,269 +1,269 @@ -var gjj_eds_dkje = true; -var zhgjj_ll = true; -var zuhesydk = true; -var zuhedk_rate = true; -var car_price = true; -var car_rate = true; -var pop_list = true; -var gjjdk_lv = 4.50; - -function MQxian(obj) { - var QixianObj = $('[name="QX_type"]').val(); - $('#hid_month').val(QixianObj); -} -function LoanLV(obj) { - var Loanlvobj = $('[name="lv_type"]').val(); - $('#zuhedk_rate').val(Loanlvobj); -} -function carxian(obj) { - var QixianObj = $('[name="carQX_type"]').val(); - $('#car_month').val(QixianObj); -} -function carshoufu(obj) { - var ShoufuObj = $('[name="carSF_type"]').val(); - $('#car_sf').val(ShoufuObj); -} -function carLoanLV(obj) { - var Loanlvobj = $('[name="carlv_type"]').val(); - $('#car_rate').val(Loanlvobj); -} -function ClearData(obj) { -} -function AddData(obj) { - if ($('#zuhesydk').val() == '') - $('#zuhesydk').val('0'); -} -function ClearD(obj) { - $('#gjj_eds_dkje').attr('value', ''); -} -function AddD(obj) { - if ($('#gjj_eds_dkje').val() == '') - $('#gjj_eds_dkje').val('0'); -} -function backHome(obj) { - $('.con_n').removeClass('none'); - $('.conresult').addClass('none'); - $('.uctype').removeClass('none'); - $('.head').addClass('none'); - $('.concarresult').addClass('none'); - $('#xf_prolist').addClass('none'); -} - - -$(document).ready(function() { - $('#zuhe_btn').click(function() { - var shangye_money = $('#zuhesydk').val(); - var gjj_money = $('#gjj_eds_dkje').val(); - if (shangye_money == 0 && gjj_money == 0) { - alert('请输入贷款金额'); - return false; - } - - $('.conresult').removeClass('none'); - $('.con_n').addClass('none'); - $('.head').removeClass('none'); - $('.uctype').addClass('none'); - var js_total = $('.js_total'); - var js_time = $('.js_time'); - var js_Lmy = $('#js_Lmy'); - var js_Rsy = $('#js_Rsy'); - var js_Rdj = $('#js_Rdj'); - var js_Lzlx = $('#js_Lzlx'); - var js_Rzlx = $('#js_Rzlx'); - var js_Lbxhj = $('#js_Lbxhj'); - var js_Rbxhj = $('#js_Rbxhj'); - - if ($('#zuhedk_rate').val() == '' || isNaN($('#zuhedk_rate').val())) { - $('#zuhedk_rate').val(zuhedk_lv); - } - var r3 = parseFloat($('#zuhesydk').val()); - var r4 = parseFloat($('#zuhedk_rate').val()); - if ($('#zhgjj_ll').val() == '' || isNaN($('#zhgjj_ll').val())) { - $('#zhgjj_ll').val(zhgjj_ll); - } - var r0 = parseFloat($('#hid_month').val()); - var r1 = parseFloat($('#gjj_eds_dkje').val()); - var r2 = parseFloat($('#zhgjj_ll').val()); - if (zuhesydk == true && gjj_eds_dkje == true && zhgjj_ll == true && zuhedk_rate == true) { - var js_total_01 = r1 * 10000 / 10000; - js_time = r0 * 10000 / 10000; - var yll_01 = ((r2 * 0.01) / 12) * 10000 / 10000; - var t_01 = Math.pow((1 + yll_01), js_time); - var js_Lmy_01 = (js_total_01 * yll_01 * (t_01 / (t_01 - 1))) * 10000 / 10000; - - var js_Lzlx_00_01 = (js_time * js_Lmy_01) - js_total_01; - var js_Lzlx_01 = js_Lzlx_00_01 * 10000 / 10000; - - var js_Lbxhj_01 = js_Lzlx_01 + js_total_01; - var js_mbj_01 = js_total_01 / js_time; - var js_Rsy_00_01 = js_mbj_01 + (js_total_01 * yll_01); - var js_Rsy_01 = js_Rsy_00_01 * 10000 / 10000; - var js_Rdj_00_01 = (js_mbj_01 + (js_total_01 - js_mbj_01) * yll_01) - (js_mbj_01 + (js_total_01 - js_mbj_01 * 2) * yll_01); - var js_Rdj_01 = js_Rdj_00_01 * 10000 / 10000; - var js_Rzlx_00_01 = js_total_01 * yll_01 * (js_time + 1) / 2; - var js_Rzlx_01 = js_Rzlx_00_01 * 10000 / 10000; - var js_Rbxhj_01 = js_Rzlx_01 + js_total_01; - var js_total_02 = r3 * 10000 / 10000; - var yll_02 = ((r4 * 0.01) / 12) * 10000 / 10000; - var t_02 = Math.pow((1 + yll_02), js_time);//alert(t_02); - var js_Lmy_02 = (js_total_02 * yll_02 * (t_02 / (t_02 - 1)) * 10000) / 10000; - var js_Lzlx_00_02 = (js_time * js_Lmy_02) - js_total_02; - var js_Lzlx_02 = js_Lzlx_00_02 * 10000 / 10000; - - var js_Lbxhj_02 = js_Lzlx_02 + js_total_02; - var js_mbj_02 = js_total_02 / js_time; - var js_Rsy_00_02 = js_mbj_02 + (js_total_02 * yll_02); - var js_Rsy_02 = js_Rsy_00_02 * 10000 / 10000; - var js_Rdj_00_02 = (js_mbj_02 + (js_total_02 - js_mbj_02) * yll_02) - (js_mbj_02 + (js_total_02 - js_mbj_02 * 2) * yll_02); - var js_Rdj_02 = js_Rdj_00_02 * 10000 / 10000; - var js_Rzlx_00_02 = js_total_02 * yll_02 * (js_time + 1) / 2; - var js_Rzlx_02 = js_Rzlx_00_02 * 10000 / 10000; - var js_Rbxhj_02 = js_Rzlx_02 + js_total_02; - - js_total = (js_total_01 + js_total_02) * 10000; - js_Lmy = ((js_Lmy_01 + js_Lmy_02) * 10000).toFixed(2); - js_Lzlx = ((js_Lzlx_01 + js_Lzlx_02) * 10000).toFixed(2); - js_Lbxhj = ((js_Lbxhj_01 + js_Lbxhj_02) * 10000).toFixed(2); - js_Rsy = ((js_Rsy_01 + js_Rsy_02) * 10000).toFixed(2); - js_Rdj = (((js_Rdj_01 + js_Rdj_02) * 10000 / 10000) * 10000).toFixed(2); - js_Rzlx = ((js_Rzlx_01 + js_Rzlx_02) * 10000).toFixed(2); - js_Rbxhj = ((js_Rbxhj_01 + js_Rbxhj_02) * 10000).toFixed(2); - - $('.js_total').text(js_total); - $('.js_time').text(js_time); - $('#js_Lmy').text(js_Lmy); - $('#js_Lzlx').text(js_Lzlx); - $('#js_Lbxhj').text(js_Lbxhj); - $('#js_Rsy').text(js_Rsy); - $('#js_Rdj').text(js_Rdj); - $('#js_Rzlx').text(js_Rzlx); - $('#js_Rbxhj').text(js_Rbxhj); - } - }); - $("#gjjin_btn").click(function() { - var gjj_money = $('#gjj_eds_dkje').val(); - if (gjj_money == 0) { - alert('请输入贷款金额'); - return false; - } - - $('.conresult').removeClass('none'); - $('.con_n').addClass('none'); - $('.head').removeClass('none'); - $('.uctype').addClass('none'); - var js_total = $('.js_total'); - var js_time = $('.js_time'); - var js_Lmy = $('#js_Lmy'); - var js_Rsy = $('#js_Rsy'); - var js_Rdj = $('#js_Rdj'); - var js_Lzlx = $('#js_Lzlx'); - var js_Rzlx = $('#js_Rzlx'); - var js_Lbxhj = $('#js_Lbxhj'); - var js_Rbxhj = $('#js_Rbxhj'); - if ($('#zuhedk_rate').val() == '' || isNaN($('#zuhedk_rate').val())) { - $('#zuhedk_rate').val(gjjdk_lv); - } - var r1 = parseFloat($('#gjj_eds_dkje').val()); - var r2 = parseFloat($('#hid_month').val()); - var r3 = parseFloat($('#zuhedk_rate').val()); - if (zuhesydk == true && gjj_eds_dkje == true && zhgjj_ll == true && zuhedk_rate == true) { - js_total = (Math.round(r1 * 10000) / 10000) * 10000; - js_time = Math.round(r2 * 10000) / 10000; - var yll = Math.round(((r3 * 0.01) / 12) * 10000) / 10000; - var t = Math.pow((1 + yll), js_time); - js_Lmy = Math.round((js_total * yll * (t / (t - 1))) * 10000) / 10000; - var js_Lzlx_00 = (js_time * js_Lmy) - js_total; - js_Lzlx = Math.round(js_Lzlx_00 * 10000) / 10000; - js_Lbxhj = js_Lzlx + Math.round(js_total); - var js_mbj = js_total / js_time; - var js_Rsy_00 = js_mbj + (js_total * yll); - js_Rsy = Math.round(js_Rsy_00 * 10000) / 10000; - var js_Rdj_00 = (js_mbj + (js_total - js_mbj) * yll) - (js_mbj + (js_total - js_mbj * 2) * yll); - js_Rdj = Math.round(js_Rdj_00 * 10000) / 10000; - var js_Rzlx_00 = js_total * yll * (js_time + 1) / 2; - js_Rzlx = Math.round(js_Rzlx_00 * 10000) / 10000; - js_Rbxhj = js_Rzlx + Math.round(js_total); - var js_Lmys = js_Lmy.toFixed(2); - var js_Lzlxs = js_Lzlx.toFixed(2); - var js_Lbxhjs = js_Lbxhj.toFixed(2); - $('.js_total').text(js_total); - $('.js_time').text(js_time); - $('#js_Lmy').text(js_Lmys); - $('#js_Lzlx').text(js_Lzlxs); - $('#js_Lbxhj').text(js_Lbxhjs); - var js_Rsys = js_Rsy.toFixed(2); - var js_Rdjs = js_Rdj.toFixed(2); - $('#js_Rsy').text(js_Rsys); - $('#js_Rdj').text(js_Rdjs); - $('#js_Rzlx').text(js_Rzlx); - $('#js_Rbxhj').text(js_Rbxhj); - } - });//over - - $('#car_btn').click(function() { - $('.concarresult').removeClass('none'); - $('.con_n').addClass('none'); - $('.head').removeClass('none'); - $('.uctype').addClass('none'); - if (car_price == true && car_rate == true && pop_list == true) { - var cd_yg = $('#topYg'); - var cd_time = $('#topM'); - var cd_price = $('#topPrice'); - var cd_all = $('#topTotal'); - if ($('#car_rate').val() == '' || isNaN($('#car_rate').val())) { - $('#car_rate').val(car_lv); - } - var r1 = parseFloat($('#car_price').val()); - var r3 = parseFloat($('#car_rate').val()); - var r2 = parseFloat($('#car_month').val()); - cd_sf = Math.round((r1 * (0.3)) * 10000) / 10000; - cd_price = Math.round(r1 * 10000) / 10000; - cd_time = r2; - var cd_bj = cd_price - cd_sf; - var yll = (r3 * 0.01) / 12; - var t = Math.pow((1 + yll), cd_time); - cd_yg = Math.round((cd_bj * yll * (t / (t - 1))) * 10000) / 10000; - cd_all = Math.round((cd_sf + cd_yg * cd_time) * 10000) / 10000; - cd_more = Math.round((cd_all - cd_price) * 10000) / 10000; - $('#topYg').text(cd_yg * 10000); - $('#topM').text(cd_time); - $('#topPrice').text(cd_price * 10000); - $('#topTotal').text(cd_all * 10000); - } - }); - - -}); - -function productAjax(city, type) { - if (type == '4') { - var money = $('#xiaofei_money').val(); - var month = $('#xiaofei_month').val(); - var sendData = ('city=' + city + '&type_id=' + type + '&money=' + money + '&month=' + month); - } - else if (type == '1') { - var money = $('#qiye_money').val(); - var month = $('#qiye_month').val(); - var sendData = ('city=' + city + '&type_id=' + type + '&money=' + money + '&month=' + month); - } - else if (type == '2') { - var money = $('#car_money').val(); - var month = $('#car_month').val(); - var shoufu = $('#car_shoufu').val(); - var sendData = ('city=' + city + '&type_id=' + type + '&money=' + money + '&month=' + month + '&shoufu=' + shoufu); - } - else if (type == '3') { - var money = $('#goufang_money').val(); - var month = $('#goufang_month').val(); - var sendData = ('city=' + city + '&type_id=' + type + '&money=' + money + '&month=' + month); - } - $.post('/jisuanqi/productAjax', sendData, function(data) { - if (data['res'] == true) { - $('.con_n').addClass('none'); - $('.head').removeClass('none'); - $('.uctype').addClass('none'); - $('#xf_prolist').html(data['list']); - $('#xf_prolist').removeClass('none'); - } - }); +var gjj_eds_dkje = true; +var zhgjj_ll = true; +var zuhesydk = true; +var zuhedk_rate = true; +var car_price = true; +var car_rate = true; +var pop_list = true; +var gjjdk_lv = 4.50; + +function MQxian(obj) { + var QixianObj = $('[name="QX_type"]').val(); + $('#hid_month').val(QixianObj); +} +function LoanLV(obj) { + var Loanlvobj = $('[name="lv_type"]').val(); + $('#zuhedk_rate').val(Loanlvobj); +} +function carxian(obj) { + var QixianObj = $('[name="carQX_type"]').val(); + $('#car_month').val(QixianObj); +} +function carshoufu(obj) { + var ShoufuObj = $('[name="carSF_type"]').val(); + $('#car_sf').val(ShoufuObj); +} +function carLoanLV(obj) { + var Loanlvobj = $('[name="carlv_type"]').val(); + $('#car_rate').val(Loanlvobj); +} +function ClearData(obj) { +} +function AddData(obj) { + if ($('#zuhesydk').val() == '') + $('#zuhesydk').val('0'); +} +function ClearD(obj) { + $('#gjj_eds_dkje').attr('value', ''); +} +function AddD(obj) { + if ($('#gjj_eds_dkje').val() == '') + $('#gjj_eds_dkje').val('0'); +} +function backHome(obj) { + $('.con_n').removeClass('none'); + $('.conresult').addClass('none'); + $('.uctype').removeClass('none'); + $('.head').addClass('none'); + $('.concarresult').addClass('none'); + $('#xf_prolist').addClass('none'); +} + + +$(document).ready(function() { + $('#zuhe_btn').click(function() { + var shangye_money = $('#zuhesydk').val(); + var gjj_money = $('#gjj_eds_dkje').val(); + if (shangye_money == 0 && gjj_money == 0) { + alert('请输入贷款金额'); + return false; + } + + $('.conresult').removeClass('none'); + $('.con_n').addClass('none'); + $('.head').removeClass('none'); + $('.uctype').addClass('none'); + var js_total = $('.js_total'); + var js_time = $('.js_time'); + var js_Lmy = $('#js_Lmy'); + var js_Rsy = $('#js_Rsy'); + var js_Rdj = $('#js_Rdj'); + var js_Lzlx = $('#js_Lzlx'); + var js_Rzlx = $('#js_Rzlx'); + var js_Lbxhj = $('#js_Lbxhj'); + var js_Rbxhj = $('#js_Rbxhj'); + + if ($('#zuhedk_rate').val() == '' || isNaN($('#zuhedk_rate').val())) { + $('#zuhedk_rate').val(zuhedk_lv); + } + var r3 = parseFloat($('#zuhesydk').val()); + var r4 = parseFloat($('#zuhedk_rate').val()); + if ($('#zhgjj_ll').val() == '' || isNaN($('#zhgjj_ll').val())) { + $('#zhgjj_ll').val(zhgjj_ll); + } + var r0 = parseFloat($('#hid_month').val()); + var r1 = parseFloat($('#gjj_eds_dkje').val()); + var r2 = parseFloat($('#zhgjj_ll').val()); + if (zuhesydk == true && gjj_eds_dkje == true && zhgjj_ll == true && zuhedk_rate == true) { + var js_total_01 = r1 * 10000 / 10000; + js_time = r0 * 10000 / 10000; + var yll_01 = ((r2 * 0.01) / 12) * 10000 / 10000; + var t_01 = Math.pow((1 + yll_01), js_time); + var js_Lmy_01 = (js_total_01 * yll_01 * (t_01 / (t_01 - 1))) * 10000 / 10000; + + var js_Lzlx_00_01 = (js_time * js_Lmy_01) - js_total_01; + var js_Lzlx_01 = js_Lzlx_00_01 * 10000 / 10000; + + var js_Lbxhj_01 = js_Lzlx_01 + js_total_01; + var js_mbj_01 = js_total_01 / js_time; + var js_Rsy_00_01 = js_mbj_01 + (js_total_01 * yll_01); + var js_Rsy_01 = js_Rsy_00_01 * 10000 / 10000; + var js_Rdj_00_01 = (js_mbj_01 + (js_total_01 - js_mbj_01) * yll_01) - (js_mbj_01 + (js_total_01 - js_mbj_01 * 2) * yll_01); + var js_Rdj_01 = js_Rdj_00_01 * 10000 / 10000; + var js_Rzlx_00_01 = js_total_01 * yll_01 * (js_time + 1) / 2; + var js_Rzlx_01 = js_Rzlx_00_01 * 10000 / 10000; + var js_Rbxhj_01 = js_Rzlx_01 + js_total_01; + var js_total_02 = r3 * 10000 / 10000; + var yll_02 = ((r4 * 0.01) / 12) * 10000 / 10000; + var t_02 = Math.pow((1 + yll_02), js_time);//alert(t_02); + var js_Lmy_02 = (js_total_02 * yll_02 * (t_02 / (t_02 - 1)) * 10000) / 10000; + var js_Lzlx_00_02 = (js_time * js_Lmy_02) - js_total_02; + var js_Lzlx_02 = js_Lzlx_00_02 * 10000 / 10000; + + var js_Lbxhj_02 = js_Lzlx_02 + js_total_02; + var js_mbj_02 = js_total_02 / js_time; + var js_Rsy_00_02 = js_mbj_02 + (js_total_02 * yll_02); + var js_Rsy_02 = js_Rsy_00_02 * 10000 / 10000; + var js_Rdj_00_02 = (js_mbj_02 + (js_total_02 - js_mbj_02) * yll_02) - (js_mbj_02 + (js_total_02 - js_mbj_02 * 2) * yll_02); + var js_Rdj_02 = js_Rdj_00_02 * 10000 / 10000; + var js_Rzlx_00_02 = js_total_02 * yll_02 * (js_time + 1) / 2; + var js_Rzlx_02 = js_Rzlx_00_02 * 10000 / 10000; + var js_Rbxhj_02 = js_Rzlx_02 + js_total_02; + + js_total = (js_total_01 + js_total_02) * 10000; + js_Lmy = ((js_Lmy_01 + js_Lmy_02) * 10000).toFixed(2); + js_Lzlx = ((js_Lzlx_01 + js_Lzlx_02) * 10000).toFixed(2); + js_Lbxhj = ((js_Lbxhj_01 + js_Lbxhj_02) * 10000).toFixed(2); + js_Rsy = ((js_Rsy_01 + js_Rsy_02) * 10000).toFixed(2); + js_Rdj = (((js_Rdj_01 + js_Rdj_02) * 10000 / 10000) * 10000).toFixed(2); + js_Rzlx = ((js_Rzlx_01 + js_Rzlx_02) * 10000).toFixed(2); + js_Rbxhj = ((js_Rbxhj_01 + js_Rbxhj_02) * 10000).toFixed(2); + + $('.js_total').text(js_total); + $('.js_time').text(js_time); + $('#js_Lmy').text(js_Lmy); + $('#js_Lzlx').text(js_Lzlx); + $('#js_Lbxhj').text(js_Lbxhj); + $('#js_Rsy').text(js_Rsy); + $('#js_Rdj').text(js_Rdj); + $('#js_Rzlx').text(js_Rzlx); + $('#js_Rbxhj').text(js_Rbxhj); + } + }); + $("#gjjin_btn").click(function() { + var gjj_money = $('#gjj_eds_dkje').val(); + if (gjj_money == 0) { + alert('请输入贷款金额'); + return false; + } + + $('.conresult').removeClass('none'); + $('.con_n').addClass('none'); + $('.head').removeClass('none'); + $('.uctype').addClass('none'); + var js_total = $('.js_total'); + var js_time = $('.js_time'); + var js_Lmy = $('#js_Lmy'); + var js_Rsy = $('#js_Rsy'); + var js_Rdj = $('#js_Rdj'); + var js_Lzlx = $('#js_Lzlx'); + var js_Rzlx = $('#js_Rzlx'); + var js_Lbxhj = $('#js_Lbxhj'); + var js_Rbxhj = $('#js_Rbxhj'); + if ($('#zuhedk_rate').val() == '' || isNaN($('#zuhedk_rate').val())) { + $('#zuhedk_rate').val(gjjdk_lv); + } + var r1 = parseFloat($('#gjj_eds_dkje').val()); + var r2 = parseFloat($('#hid_month').val()); + var r3 = parseFloat($('#zuhedk_rate').val()); + if (zuhesydk == true && gjj_eds_dkje == true && zhgjj_ll == true && zuhedk_rate == true) { + js_total = (Math.round(r1 * 10000) / 10000) * 10000; + js_time = Math.round(r2 * 10000) / 10000; + var yll = Math.round(((r3 * 0.01) / 12) * 10000) / 10000; + var t = Math.pow((1 + yll), js_time); + js_Lmy = Math.round((js_total * yll * (t / (t - 1))) * 10000) / 10000; + var js_Lzlx_00 = (js_time * js_Lmy) - js_total; + js_Lzlx = Math.round(js_Lzlx_00 * 10000) / 10000; + js_Lbxhj = js_Lzlx + Math.round(js_total); + var js_mbj = js_total / js_time; + var js_Rsy_00 = js_mbj + (js_total * yll); + js_Rsy = Math.round(js_Rsy_00 * 10000) / 10000; + var js_Rdj_00 = (js_mbj + (js_total - js_mbj) * yll) - (js_mbj + (js_total - js_mbj * 2) * yll); + js_Rdj = Math.round(js_Rdj_00 * 10000) / 10000; + var js_Rzlx_00 = js_total * yll * (js_time + 1) / 2; + js_Rzlx = Math.round(js_Rzlx_00 * 10000) / 10000; + js_Rbxhj = js_Rzlx + Math.round(js_total); + var js_Lmys = js_Lmy.toFixed(2); + var js_Lzlxs = js_Lzlx.toFixed(2); + var js_Lbxhjs = js_Lbxhj.toFixed(2); + $('.js_total').text(js_total); + $('.js_time').text(js_time); + $('#js_Lmy').text(js_Lmys); + $('#js_Lzlx').text(js_Lzlxs); + $('#js_Lbxhj').text(js_Lbxhjs); + var js_Rsys = js_Rsy.toFixed(2); + var js_Rdjs = js_Rdj.toFixed(2); + $('#js_Rsy').text(js_Rsys); + $('#js_Rdj').text(js_Rdjs); + $('#js_Rzlx').text(js_Rzlx); + $('#js_Rbxhj').text(js_Rbxhj); + } + });//over + + $('#car_btn').click(function() { + $('.concarresult').removeClass('none'); + $('.con_n').addClass('none'); + $('.head').removeClass('none'); + $('.uctype').addClass('none'); + if (car_price == true && car_rate == true && pop_list == true) { + var cd_yg = $('#topYg'); + var cd_time = $('#topM'); + var cd_price = $('#topPrice'); + var cd_all = $('#topTotal'); + if ($('#car_rate').val() == '' || isNaN($('#car_rate').val())) { + $('#car_rate').val(car_lv); + } + var r1 = parseFloat($('#car_price').val()); + var r3 = parseFloat($('#car_rate').val()); + var r2 = parseFloat($('#car_month').val()); + cd_sf = Math.round((r1 * (0.3)) * 10000) / 10000; + cd_price = Math.round(r1 * 10000) / 10000; + cd_time = r2; + var cd_bj = cd_price - cd_sf; + var yll = (r3 * 0.01) / 12; + var t = Math.pow((1 + yll), cd_time); + cd_yg = Math.round((cd_bj * yll * (t / (t - 1))) * 10000) / 10000; + cd_all = Math.round((cd_sf + cd_yg * cd_time) * 10000) / 10000; + cd_more = Math.round((cd_all - cd_price) * 10000) / 10000; + $('#topYg').text(cd_yg * 10000); + $('#topM').text(cd_time); + $('#topPrice').text(cd_price * 10000); + $('#topTotal').text(cd_all * 10000); + } + }); + + +}); + +function productAjax(city, type) { + if (type == '4') { + var money = $('#xiaofei_money').val(); + var month = $('#xiaofei_month').val(); + var sendData = ('city=' + city + '&type_id=' + type + '&money=' + money + '&month=' + month); + } + else if (type == '1') { + var money = $('#qiye_money').val(); + var month = $('#qiye_month').val(); + var sendData = ('city=' + city + '&type_id=' + type + '&money=' + money + '&month=' + month); + } + else if (type == '2') { + var money = $('#car_money').val(); + var month = $('#car_month').val(); + var shoufu = $('#car_shoufu').val(); + var sendData = ('city=' + city + '&type_id=' + type + '&money=' + money + '&month=' + month + '&shoufu=' + shoufu); + } + else if (type == '3') { + var money = $('#goufang_money').val(); + var month = $('#goufang_month').val(); + var sendData = ('city=' + city + '&type_id=' + type + '&money=' + money + '&month=' + month); + } + $.post('/jisuanqi/productAjax', sendData, function(data) { + if (data['res'] == true) { + $('.con_n').addClass('none'); + $('.head').removeClass('none'); + $('.uctype').addClass('none'); + $('#xf_prolist').html(data['list']); + $('#xf_prolist').removeClass('none'); + } + }); } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/wapciyty.js b/source/plugin/dzapp_haodai/images/wap/wapciyty.js index ddd7450..3483f10 100644 --- a/source/plugin/dzapp_haodai/images/wap/wapciyty.js +++ b/source/plugin/dzapp_haodai/images/wap/wapciyty.js @@ -1,1487 +1,1487 @@ - -$(document).ready(function() { - sendsns('#sendsns', 90); - $('#Useryzm').keyup(function() { - wapdxyzm(); - }); - - $('#UserTel').focus(function() { - if ($(this).val() == '请输入手机号码') { - $(this).val(''); - $(this).css('color', '#666'); - } - }) - - Switchcity(); - XFTwoChange(); - advancedOn(); - $("#HSearchTypeLi").val(4); - HSearchType(); - -}); - -function sendsns(o, time) { - var o = $(o); - var set_time = time * 1000; - function cookie() { - var COOKIE_NAME = 'timer'; - var date = new Date(); - date.setTime(date.getTime() + set_time); - $.cookie(COOKIE_NAME, date, {path: '/', expires: date}); - } - - function whatTime() { - if (typeof $.cookie('timer') != "undefined") { - var leftTime = Math.round(new Date($.cookie('timer')).getTime() / 1000 - new Date().getTime() / 1000); - o.attr("disabled", true); - Countdown(leftTime); - } - } - whatTime(); - - function Countdown(now) { - var nowTime = now; - var Timer = setInterval( - function() { - --now; - o.html(now + '秒重新获取'); - if (now <= 0) { - clearInterval(Timer); - o.html('获取验证码').attr("disabled", false); - } - }, 1000); - } - - o.click(function() { - var tel = $('#UserTel').val(); - if (tel != '' && tel != '请输入手机号码' && checkMobile(tel)) { - $.post('/sms/wapdxin', {tel: tel}, function(msg) { - }); - o.html(time + '秒重新获取').attr("disabled", true); - Countdown(time); - cookie(); - } else { - var s = '请输入手机号码'; - $('#UserTel').css('color', 'red'); - $('#UserTel').val('请输入手机号码'); - } - }); - -} - -function wapdxyzm() { - var checksms = $('#Useryzm').val(); - var tel = $('#UserTel').val(); - - var num = /[^\d]/g; - if (!num.test(checksms)) { - if (checksms.length > 5 && checksms.length < 7) { - $.post('/sms/wapdxyzm', {checksms: checksms, tel: tel}, function(msg) { - if (msg['d'] == 1) { - $('#UserYZMTS').text('请输入6位数字验证码'); - telyzm = false; - } else { - $('#UserYZMTS').text(''); - checksms; - telyzm = true; - - } - }); - } else { - $('#UserYZMTS').text('请输入6位数字验证码'); - telyzm = false; - } - } else { - $('#UserYZMTS').text('请输入数字'); - telyzm = false; - } -} - -function advancedOn() { - var advancedon = $('#advanced_on').attr('value'); - if (advancedon == '1') { - MoreSearchCK(); - } -} -function mHSearchXLck(obj) { - var obj = $(obj); - var xl3icon = obj.parent('.moreSearchTC_Con_li').children('.xl3icon'); - var xlcon = obj.parent('.moreSearchTC_Con_li').children('.mHSearch_select_ul'); - var k = obj.attr('k'); - if (k == 'yes') { - xlcon.slideDown(); - xl3icon.addClass('xl3icon180'); - obj.attr('k', 'no'); - } else if (k == 'no') { - xlcon.slideUp(); - xl3icon.removeClass('xl3icon180'); - obj.attr('k', 'yes'); - } -} -function HSearchMoneyHomeBlu(obj) { - var obj = $(obj); - var val = $.trim(obj.val()); - if (isNaN(val)) { - obj.parents('.Search_Money').css('border', '1px solid #f00c0c'); - } else if (val.length == 0) { - obj.parents('.Search_Money').css('border', '1px solid #f00c0c'); - } else if (val < 0 || val >= 6000) { - alert('贷款金额在0-6000万之间'); - obj.parents('.Search_Money').css('border', '1px solid #f00c0c'); - } -} -function HSearchMoneyHomeFoc(obj) { - var obj = $(obj); - obj.parents('.Search_Money').css('border', '1px solid #c6c6c6'); -} -function HSearchMoneyBlu(obj) { - var obj = $(obj); - var val = $.trim(obj.val()); - if (isNaN(val)) { - obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); - } else if (val.length == 0) { - obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); - } else if (val < 0 || val >= 6000) { - alert('贷款金额在0-6000万之间'); - obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); - } -} -function HSearchMoneyFoc(obj) { - var obj = $(obj); - obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #c6c6c6'); -} -function HSearchMonthBlu(obj) { - var obj = $(obj); - var val = $.trim(obj.val()); - if (isNaN(val)) { - obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); - } else if (val.length == 0) { - obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); - } else if (val < 0 || val >= 360) { - alert('贷款期限在0-360个月之间'); - obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); - } -} -function HSearchMonthFoc(obj) { - var obj = $(obj); - obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #c6c6c6'); -} -function mHSearchLick(obj) { - var obj = $(obj); - var showTit = obj.parents('.moreSearchTC_Con_li').children('span.mHSearch_select_show'); - var xl3icon = obj.parents('.moreSearchTC_Con_li').children('span.xl3icon'); - var xlcon = obj.parent('.mHSearch_select_ul'); - var Li = obj.parent().children('li'); - var Otext = obj.text(); - var Ovalue = obj.attr('value'); - showTit.text(Otext); - showTit.attr('value', Ovalue); - showTit.css('color', '#444555'); - Li.removeClass('mo'); - obj.addClass('mo'); - xlcon.slideUp(); - xl3icon.removeClass('xl3icon180'); - showTit.attr('k', 'yes'); -} -function HSearchType(obj) { - var selectTypeObj = $('select[id=HSearchTypeLi] option:selected'); - var selectTypeName = selectTypeObj.text(); - var selectMoney = selectTypeObj.attr('money'); - $('#HSearchType').text(selectTypeObj.text()); - $('#HSearchMoney').text(selectMoney); - $("select[id=HSearchMoneyLi]").val(selectMoney); - $('.Search_type input[name=route]').attr('value', selectTypeObj.attr('route')); - $('.Search_type input[name=month]').attr('value', selectTypeObj.attr('month')); - $('.Search_type input[name=shoufu]').attr('value', selectTypeObj.attr('shoufu')); - var obj = $(obj); - var val = obj.val(); - if (val == 1) { - $('#HSearchMoney').val(50); - var xlhtml = $('#qy_HSearchMoneyUL').html(); - $('#HSearchMoneyUL').html(xlhtml); - } else if (val == 2) { - $('#HSearchMoney').val(15); - var xlhtml = $('#gc_HSearchMoneyUL').html(); - $('#HSearchMoneyUL').html(xlhtml); - } else if (val == 3) { - $('#HSearchMoney').val(100); - var xlhtml = $('#gf_HSearchMoneyUL').html(); - $('#HSearchMoneyUL').html(xlhtml); - } else if (val == 4) { - $('#HSearchMoney').val(10); - var xlhtml = $('#xf_HSearchMoneyUL').html(); - $('#HSearchMoneyUL').html(xlhtml); - } -} -function HSearchMoneyXL() { - $('#HSearchMoneyUL').toggle(); -} -function HSearchMoneyKup() { - $('#HSearchMoneyUL').hide(); -} -function MoSearchMoneyKup(obj) { - var obj = $(obj); - var ul = obj.parent().children('ul.Search_Money_ul'); - ul.hide(); -} -function HSearchMoneyList(obj) { - var obj = $(obj); - var val = obj.attr('value'); - $('#HSearchMoney').val(val); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function HSearchMoney() { - var selectMoneyObj = $('select[id=HSearchMoneyLi] option:selected'); - var selectMoney = selectMoneyObj.val(); - $('#HSearchMoney').text(selectMoney); -} -function Switchcity() { - SwitchcityEachFn('hot_list'); - SwitchcityEachFn('letters_list'); -} -var SwitchcityEachFn = function(className) { - var $divObj = $("." + className); - for (var j = 0; j < $divObj.length; j++) { - var $liObj = $($divObj[j]).children().children(); - var len = $liObj.length; - for (var i = 0; i < len; i++) { - $($liObj[i]).click(function(obj) { - $('#swit_ticy').html($(this).html()); - }) - } - } -} -function ProviewTab(obj) { - var obj = $(obj); - var td = $('#Proview_tab_tit td'); - td.removeClass('show_td'); - obj.addClass('show_td'); - var num = obj.index(); - var con = $('#Proview_tab_con .Proview_tab_c1'); - var objcon = con.eq(num); - con.hide(); - objcon.show(); -} -function figureFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '请输入每月工资,如5000') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function figureBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('请输入每月工资,如5000'); - obj.css('color', '#999'); - } else { - $('#UsermoneyTS').text(''); - $('#UsermoneyTS').hide(); - } -} -function BirthfigureFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '请输入出生年份,如1986') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); - $('#year_born_inpTS').text(''); - $('#year_born_inpTS').hide(); -} -function BirthfigureBlu(obj) { - var obj = $(obj); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('请输入出生年份,如1986'); - obj.css('color', '#999'); - } -} -function yearFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '例如,1992') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function yearBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('例如,1992'); - obj.css('color', '#999'); - } -} -function BirthYearCk(obj) { - var obj = $(obj); - var k = $('#BirthYearSelect').attr('k'); - if (k == 'no') { - $('#BirthYearSelect').slideDown(); - $('#BirthYearSelect').attr('k', 'ye'); - } else { - $('#BirthYearSelect').slideUp(); - $('#BirthYearSelect').attr('k', 'no'); - } -} -function yearliSelect(obj) { - var obj = $(obj); - $('#BirthYearSelect p a').removeClass('yearOK'); - obj.addClass('yearOK'); - obj_reval = obj.attr('yearval'); - $('#year_born_inp').attr('val', obj_reval); - $('#year_born_inp').html(obj_reval); - $('#BirthYearSelect').slideUp(); - $('#BirthYearSelect').attr('k', 'no'); - $('#year_born_inpTS').text(''); - $('#year_born_inpTS').hide(); -} -function qianFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '如:1万元,输入10000') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function qianBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('如:1万元,输入10000'); - obj.css('color', '#999'); - $('#monthlyTS').show(); - $('#monthlyTS').text('不要空着呢'); - } else { - if (isNaN(val)) { - $('#monthlyTS').show(); - $('#monthlyTS').text('要求纯数字哦'); - } else { - $('#monthlyTS').hide(); - $('#monthlyTS').text(''); - } - } -} -function applyTwoYZ() { - - var nickname = $.trim($('#UserName').val()); - var nknet = $('#UserNameTS'); - if (nickname == $('#nickname').attr('myplace')) { - nickname = ''; - } - var testNum = /([1-9]\d*\.?\d*)|(0\.\d*[1-9])/; - var testnicknameNum = testNum.test(nickname); - if (/[\s><,._\。\[\]\{\}\?\/\+\=\|\'\\\":;\~\!\@\#\*\$\%\^\&`\uff00-\uffff)(]+/.test(nickname) && nickname.length > 0 || testnicknameNum) { - nknet.show(); - nknet.text('输入只限中英文'); - UserName = false; - } else if (nickname == '') { - nknet.show(); - UserName = false; - } else if (nickname.length == 0) { - nknet.show(); - nknet.text('请填写您的称呼'); - UserName = false; - } else { - nknet.text(''); - UserName = true; - } - - - - var Telval = $.trim($('#UserTel').val()); - if (Telval == '用于接收信贷员联系方式') { - Tel = false; - $('#UserTelTS').text('请输入手机号码'); - } else { - if (checkMobile(Telval)) { - Tel = true; - } else { - Tel = false; - $('#UserTelTS').text('手机号格式不对哦'); - } - } - - var yzm = $.trim($('#Useryzm').val()); - if (yzm == '请输入短信验证码') { - $('#UserYZMTS').text('请输入短信验证码'); - } else { - var num = /[^\d]/g; - if (!num.test(yzm)) { - Yzm = true; - } else { - Yzm = false; - $('#UserYZMTS').text('输入数字不对哦'); - } - } - - var Emailval = $.trim($('#UserEmail').val()); - if (Emailval == '用于获取申请贷款所需材料(可选填)' || Emailval == '') { - Email = true; - } else { - if (checkEmail(Emailval)) { - Email = true; - } else { - Email = false; - $('#UserEmailTS').text('邮件格式不对哦'); - } - } - var moneyval = $.trim($('#Usermoney').val()); - if (moneyval == '请输入数字') { - $('#UsermoneyTS').text('请输入数字'); - } else { - if (checkMoney(moneyval)) { - Money = true; - } else { - Money = false; - $('#UsermoneyTS').text('输入数字不对哦'); - } - } -} -function applyThreeYZ() { - var val = $.trim($('#applyArea').val()); - var num = val.length; - var count = 140; - if (num > count) { - var yewnum = $('#applyArea').val().substr(0, count) - $('#applyAreaTS').text('不超过140字哦'); - applyArea = false; - } else if (num < 5) { - $('#applyAreaTS').text('至少五个字,继续加油!'); - applyArea = false; - } else { - applyArea = true; - } -} -function applyFastYZ() { - var nickname = $.trim($('#UserName').val()); - var nknet = $('#UserNameTS'); - if (nickname == $('#nickname').attr('myplace')) { - nickname = ''; - } - var testNum = /([1-9]\d*\.?\d*)|(0\.\d*[1-9])/; - var testnicknameNum = testNum.test(nickname); - if (/[\s><,._\。\[\]\{\}\?\/\+\=\|\'\\\":;\~\!\@\#\*\$\%\^\&`\uff00-\uffff)(]+/.test(nickname) && nickname.length > 0 || testnicknameNum) { - nknet.show(); - nknet.text('输入只限中英文'); - UserName = false; - } else if (nickname == '') { - nknet.show(); - UserName = false; - } else if (nickname.length == 0) { - nknet.show(); - nknet.text('请填写您的称呼'); - UserName = false; - } else { - nknet.text(''); - UserName = true; - } - - var Telval = $.trim($('#UserTel').val()); - if (Telval == '用于接收信贷员联系方式') { - Tel = false; - $('#UserTelTS').text('请输入手机号码'); - } else { - if (checkMobile(Telval)) { - Tel = true; - } else { - Tel = false; - $('#UserTelTS').text('手机号格式不对哦'); - - } - } - var yzm = $.trim($('#Useryzm').val()); - if (yzm == '请输入短信验证码') { - $('#UserYZMTS').text('请输入短信验证码'); - } else { - var num = /[^\d]/g; - if (!num.test(yzm)) { - Yzm = true; - } else { - Yzm = false; - $('#UserYZMTS').text('输入数字不对哦'); - } - } - - var moneyval = $.trim($('#Usermoney').val()); - if (moneyval == '请输入数字') { - $('#UsermoneyTS').text('请输入数字'); - } else { - if (checkMoney(moneyval)) { - Money = true; - } else { - Money = false; - $('#UsermoneyTS').text('输入数字不对哦'); - } - } -} - -function usernameFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - - if (val == '如:李先生') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function usernameBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('如:李先生'); - obj.css('color', '#999'); - } -} -function telFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '用于接收信贷员联系方式') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function telBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('用于接收信贷员联系方式'); - obj.css('color', '#999'); - } -} -function emailFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '用于获取申请贷款所需材料(可选填)') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function emailBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('用于获取申请贷款所需材料(可选填)'); - obj.css('color', '#999'); - } -} -function moneyFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '请输入数字') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function moneyBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('请输入数字'); - obj.css('color', '#999'); - } -} -function YourFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '您的手机号') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function YourBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('您的手机号'); - obj.css('color', '#999'); - } -} -function checkMobile(s) { - var regu = /^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/; - var re = new RegExp(regu); - if (re.test(s)) { - return true; - } - else { - return false; - } -} -function checkEmail(yx) { - var reyx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\-])+\.)+([a-zA-Z0-9]{2,4})+$/; - return(reyx.test(yx)); -} -function checkMoney(money) { - if (!isNaN(money) && money != '' && money != '请输入数字') { - return true; - } else { - return false; - } -} -function hideTS(obj) { - $('.ApplyOne_li_ts').text(''); -} -function ApplyCK(nextName) { - if (nextName == 'Applyone') { - applyOneYZ(); - if (CompanyType == true && dgdsMoney == true && BusinessTime == true && ApplyOne_yon == true) { - window.open('ApplyTwo.html'); - } - } else if (nextName == 'Applytwo') { - applyTwoYZ(); - var num = $('#num').val(); - if (num == 1) { //=1短信关不需要验证短信 - if (UserName == true && Tel == true && Email == true && Yzm == true) { - $('form').submit(); - } - } else { - wapdxyzm(); - if (UserName == true && Tel == true && Email == true && Yzm == true && telyzm == true) { - $('form').submit(); - } - } - - } else if (nextName == 'ApplyThree') { - var val = $.trim($('#applyArea').val()); - var num = val.length; - if (num > 0) { - applyThreeYZ(); - if (applyArea == true) { - $('form').submit(); - } - } else { - $('form').submit(); - } - } else if (nextName == 'FastApply') { - applyFastYZ(); - var num = $('#num').val(); //=1短信关 - if (num == 1) { - if (UserName == true && Tel == true && Money == true && Yzm == true) { - $("form").submit(); - } - - } else { - wapdxyzm(); - if (UserName == true && Tel == true && Money == true && Yzm == true && telyzm == true) { - $("form").submit(); - } - } - } -} -function ApplyOne_yonCK(obj) { - var obj = $(obj); - var span = $('.changeOp span'); - var objspan = obj.find('span'); - span.removeClass('changeYes'); - objspan.addClass('changeYes'); - $('#ApplyOne_yonTS').text(''); -} -function ApplyOne_typeCK(obj) { - var obj = $(obj); - var span = $('.changeOp01 span'); - var objspan = obj.find('span'); - span.removeClass('changeYes'); - objspan.addClass('changeYes'); - $('#ApplyOne_yonTS').text(''); -} -function Apply_RadioGroupsCK(obj) { - myCheck(obj); - var obj = $(obj); - var yk = obj.attr('yk'); - if (yk == 'a') { - $('#ykdiv').text('打卡工资:'); - } else { - $('#ykdiv').text('领取现金:'); - } - var alldiv = obj.parents('.ApplyZKCon').children('.ApplyOne_yon'); - alldiv.hide(); - obj.show(); - alldiv.removeClass('OkApplyOne_yon'); - obj.addClass('OkApplyOne_yon'); - var titdiv = obj.parents('.ApplyZKCon').prev('.posi').find('.pulldown'); - titdiv.removeClass('pulldownOpen'); - obj.parents('.ApplyZKCon').prev('.posi').removeClass('redTS'); -} -function myCheck(obj) { - var obj = $(obj); - var span = obj.parent('.ApplyZKCon').find('.changeOp01').children('span'); - var objspan = obj.find('span'); - span.removeClass('changeYes'); - objspan.addClass('changeYes'); -} -function ApplyOne_fragrantCK(obj) { - var obj = $(obj); - var span = $('.changeOp01 span'); - var objspan = obj.find('span'); - span.removeClass('changeYes'); - objspan.addClass('changeYes'); - $('#ApplyOne_yonTS').text(''); -} -function niankey() { - var hotkey = document.getElementById('nianSelect').value; - $('#work_year').text(hotkey); - $('#work_year').attr('val', hotkey); - $('#YearMonthTS').text(''); - $('#YearMonthTS').hide(); -} -function yuekey() { - var hotkey = document.getElementById('yueSelect').value; - $('#work_month').text(hotkey); - $('#work_month').attr('val', hotkey); - $('#YearMonthTS').text(''); - $('#YearMonthTS').hide(); -} -function BusinessTimeCK() { - $('#BusinessTimeTS').hide(); - $('#BusinessTimeTS').text(''); - $('#BusinessTime').css('color', '#333'); - var hotkeyArr = new Array('', '不足半年', '半年', '1年', '2年', '3年', '4年', '5年以上(含5年)'); - var hotkey = document.getElementById('BusinessTimeSelect').value; - var text = hotkeyArr[hotkey]; - document.getElementById('BusinessTime').innerHTML = text; - $('#BusinessTime').attr('value', hotkey); -} -function SearchTypeLiCK(obj) { - var obj = $(obj); - var reval = obj.attr('reval'); - if (reval == 4) { - $('.moreSearchTC_Nav li').removeClass('show'); - obj.addClass('show'); - $('.moreSearchTC_Con').hide(); - $('#ShopSearchCon').show(); - } else if (reval == 1) { - $('.moreSearchTC_Nav li').removeClass('show'); - obj.addClass('show'); - $('.moreSearchTC_Con').hide(); - $('#CompanySearchCon').show(); - } else if (reval == 2) { - $('.moreSearchTC_Nav li').removeClass('show'); - obj.addClass('show'); - $('.moreSearchTC_Con').hide(); - $('#CarSearchCon').show(); - } else if (reval == 3) { - $('.moreSearchTC_Nav li').removeClass('show'); - obj.addClass('show'); - $('.moreSearchTC_Con').hide(); - $('#HouseSearchCon').show(); - } -} -function MoreSearchCK() { - var Msearch = $('#moreSearchTC'); - $('#SearchTCZZC').show(); - Msearch.show(); -} -function MoreSearchBack() { - $('#moreSearchTC').hide(); - $('#SearchTCZZC').hide(); -} -function ApplyZK(obj) { - var obj = $(obj); - var yesPulldownOpen = obj.find('.pulldown').hasClass('pulldownOpen'); - var ApplyZKCon = obj.next('.ApplyZKCon'); - var ApplyZKCon_li = ApplyZKCon.children('.ApplyOne_yon'); - var changeYes = ApplyZKCon.find('.changeOp01').children('span'); - var haschangeYes = changeYes.hasClass('changeYes'); - var yesDiv = ApplyZKCon.children('.OkApplyOne_yon'); - if (yesPulldownOpen == false) { - ApplyZKCon_li.show(); - obj.find('.pulldown').addClass('pulldownOpen'); - } else { - obj.find('.pulldown').removeClass('pulldownOpen'); - if (haschangeYes == true) { - ApplyZKCon_li.hide(); - yesDiv.show(); - obj.find('.pulldown').removeClass('pulldownOpen'); - } else { - ApplyZKCon_li.hide(); - } - } -} -function XFTwoChange() { - var spanLi = $('.ChangeCK span'); - spanLi.click(function() { - $(this).parent().children('.whet_yes01').addClass('whet_yesCe'); - $(this).parent().children('.whet_no01').addClass('whet_noCe'); - $(this).parent().children('span').removeClass('whet_yes01'); - $(this).parent().children('span').removeClass('whet_no01'); - $(this).parent().children('span').removeClass('whet_OK'); - $(this).addClass('whet_OK'); - var parentID = $(this).parents('.daikj').attr('id'); - if (parentID == 'hasCreditCard') { - $('#has_blue_card_tip div.whether_right p').text(''); - $('#has_blue_card_tip').hide(); - } else if (parentID == 'hasDebt_Card') { - $('#has_debt_card_tip div.whether_right p').text(''); - $('#has_debt_card_tip').hide(); - } else if (parentID == 'hasOkApply') { - $('#has_succ_reply_tip div.whether_right p').text(''); - $('#has_succ_reply_tip').hide(); - } else if (parentID == 'hasDebt_Daik') { - $('#has_debt_loan_tip div.whether_right p').text(''); - $('#has_debt_loan_tip').hide(); - } - var ok = $(this).attr('ok'); - var ThisParent = $(this).parents('.daikjPDLR'); - var lastTsText = ThisParent.children('div.daikj_ts:last').find('p').text(); - if (ok == 'yes') { - ThisParent.children('.daikj_02').show(); - ThisParent.children('.daikj_ts').show(); - if (lastTsText == '') { - ThisParent.children('div.daikj_ts:last').hide(); - } - } else { - ThisParent.children('.daikj_02').hide(); - ThisParent.children('.daikj_ts').hide(); - } - }); -} -function ConditionsTCCK(obj) { - var obj = $(obj); - var k = obj.attr('k'); - if (k == 'ye') { - var allTCul = $('.PageConditions').find('.Conditions_TC'); - allTCul.slideUp(); - var allShowTit = $('.PageConditions').find('.Conditions_li_pd'); - allShowTit.attr('k', 'ye'); - allShowTit.css('background', '#fff'); - var allXz180 = $('.PageConditions').find('.Conditions_xl'); - allXz180.removeClass('Conditions_xl180'); - } - var xz180 = obj.parent().children('span.Conditions_xl'); - var Conditions_TC = obj.parent().children('ul.Conditions_TC'); - if (k == 'ye') { - xz180.addClass('Conditions_xl180'); - obj.css('background', '#eee'); - Conditions_TC.slideDown(); - obj.attr('k', 'no'); - } else { - xz180.removeClass('Conditions_xl180'); - obj.css('background', '#fff'); - Conditions_TC.slideUp(); - obj.attr('k', 'ye'); - } -} -function ConditionsLiCK(obj) { - var xindai_type; - var url; - xindai_type = $('#xindai_type').attr('value'); - url = $('#url').attr('value'); - var obj = $(obj); - var reval = obj.attr('reval'); - var text = obj.text(); - var showcon = obj.parent().parent().children('.Conditions_li_pd'); - var xz180 = obj.parent().parent().children('span.Conditions_xl'); - var allli = obj.parent().children('li'); - obj.parents('.Conditions_li').find('span.Conditions_word').attr('reval', reval); - obj.parents('.Conditions_li').find('span.Conditions_word').text(text); - obj.parent('.Conditions_TC').slideUp(); - showcon.css('background', '#fff'); - xz180.removeClass('Conditions_xl180'); - allli.removeClass('mo'); - obj.addClass('mo'); - obj.parents('.Conditions_li').children('.Conditions_li_pd').attr('k', 'ye'); - switch (xindai_type) { - case 'xiaofei': - var xf_JobType = $('#xf_JobType').attr('reval'); - var xf_CreditType = $('#xf_CreditType').attr('reval'); - var xf_houseType = $('#xf_houseType').attr('reval'); - url = url + '&profession=' + xf_JobType + '&credit_record=' + xf_CreditType + '&has_house=' + xf_houseType; - break; - case 'qiye': - var qy_JobType = $('#qy_JobType').attr('reval'); - var qy_CreditType = $('#qy_CreditType').attr('reval'); - var qy_houseType = $('#qy_houseType').attr('reval'); - url = url + '&profession=' + qy_JobType + '&credit_record=' + qy_CreditType + '&has_house=' + qy_houseType; - break; - case 'goufang': - var gf_changquanType = $('#gf_changquanType').attr('reval'); - var gf_shopHouse = $('#gf_shopHouse').attr('reval'); - var gf_homeType = $('#gf_homeType').attr('reval'); - url = url + '&house_type=' + gf_changquanType + '&first_suite=' + gf_shopHouse + '&secondhand_house=' + gf_homeType; - break; - case 'gouche': - var gc_houseType = $('#gc_houseType').attr('reval'); - var gc_carNumber = $('#gc_carNumber').attr('reval'); - var gc_carUse = $('#gc_carUse').attr('reval'); - var gc_carType = $('#gc_carType').attr('reval'); - url = url + '&has_house=' + gc_houseType + '&car_number=' + gc_carNumber + '&car_use=' + gc_carUse + '&car_type=' + gc_carType; - break; - } - window.location.href = url; -} -function SortingLink(obj) { - var obj = $(obj); - var k = obj.attr('k'); - if (k == 'ye') { - $('#SortingPX').css('background', '#4fa9ee'); - $('#SortingLinkTC').slideDown(); - obj.attr('k', 'no'); - } else { - $('#SortingPX').css('background', '#e9e9e9'); - $('#SortingLinkTC').slideUp(); - obj.attr('k', 'ye'); - } -} -function SortingLinkLi(obj) { - var obj = $(obj); - var reval = obj.attr('reval'); - var text = obj.text(); - var c = obj.attr('c'); - $('#SortingShow').attr('reval', reval); - $('#SortingShow').text(text); - $('#SortingShow').attr('k', 'ye'); - $('#SortingLinkTC li').removeClass('mo'); - obj.parent().addClass('mo') - $('#SortingPX').css('background', '#e9e9e9'); - $('#SortingLinkTC').slideUp(); - url = $('#order_url').attr('value'); - window.location.href = url + c; -} -function applyNext(next_name) { - if (next_name == 'xiaofei_two') { - var bool = xiaofei_appyOneYZ(); - if (bool == true) { - $('form[name=apply]').submit(); - } - } else if (next_name == 'qiye_two') { - var bool = qiye_appyOneYZ(); - if (bool == true) { - $('form[name=apply]').submit(); - } - } else if (next_name == 'gouche_two') { - var bool = gouche_appyOneYZ(); - if (bool == true) { - $('form[name=apply]').submit(); - } - } else if (next_name == 'goufang_two') { - var bool = goufang_appyOneYZ(); - if (bool == true) { - $('form[name=apply]').submit(); - } - } -} -function xiaofei_appyOneYZ() { - var bool = true; - var xf_companyTypeYs = $('#xf_companyType').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 公司类型 ----------- - if (xf_companyTypeYs == false) { - bool = false; - $('#xf_companyType').prev('.posi').addClass('redTS'); - } else { - $('input[name=company_type]').val($('#xf_companyType .changeYes').attr('value')) - } - var xf_incomeTypeYs = $('#xf_incomeType').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 工资发放形式 ----------- - if (xf_incomeTypeYs == false) { - bool = false; - $('#xf_incomeType').prev('.posi').addClass('redTS'); - } else { - $('input[name=salary_type]').val($('#xf_incomeType .changeYes').attr('value')); - } - var Usermoney = $.trim($('#Usermoney').val());//----------- 打卡工资 ----------- - if (Usermoney == '请输入每月工资,如5000' || Usermoney.length == 0) { - bool = false; - $('#UsermoneyTS').show(); - $('#UsermoneyTS').text('这里别忘了填哦'); - } - if (isNaN(Usermoney)) { - bool = false; - $('#UsermoneyTS').show(); - $('#UsermoneyTS').text('亲,要填纯数字呢'); - } else { - $('input[name=salary]').val(Usermoney); - } - - var BirthYear2 = $('#BirthYear').val();//----------- 出生年份 02----------- - var BirthYear_01 = BirthYear2.substr(0, 1); - var BirthYear_02 = BirthYear2.substr(1, 1); - var BirthYear_03 = BirthYear2.substr(2, 1); - var BirthYear_04 = BirthYear2.substr(3, 1); - $('input[name=year_born]').val(BirthYear2); - if (!isNaN(BirthYear2)) { - if (BirthYear_01 != 1 && BirthYear_01 != 2) { - bool = false; - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('不在规定的千禧年,你要穿越吗?'); - } - if (BirthYear_01 == 1) { - if (BirthYear_02 != 9) { - bool = false; - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('不在规定的世纪,你要穿越吗?'); - } - } else if (BirthYear_01 == 2) { - if (BirthYear_02 != 0) { - bool = false; - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('不在规定的世纪,你要穿越吗?'); - } - } - if (BirthYear_01 == 2 && BirthYear_02 == 0) { - if (BirthYear_03 != 0 && BirthYear_03 != 1) { - bool = false; - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('不在规定年份里,你要穿越吗?'); - } else if (BirthYear_03 == 1) { - if (BirthYear_04 > 4) { - bool = false; - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('才2014,你这是要穿越啊亲'); - } - } - } - if (BirthYear2 < 1959) { - bool = false; - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('很抱歉,您的年龄已超过相关条件'); - if (BirthYear2 < 1900) { - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('不在规定的世纪,你要穿越吗?'); - } - } else if (BirthYear2 == 2014) { - bool = false; - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('欢迎来到人间,祝你健康成长'); - } else if (BirthYear2 > 2014) { - bool = false; - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('这才2014,你这是要穿越啊亲'); - } - } else { - $('#year_born_inpTS').show(); - $('#year_born_inpTS').text('年份只能填数字哦'); - } - - var jobyear = $('#work_year').attr('val'); //----------- 工作时间 -- 年 ----------- - var jobmonth = $('#work_month').attr('val');//----------- 工作时间 -- 月 ----------- - if (jobyear == '' || jobmonth == '') { - bool = false; - $('#YearMonthTS').show(); - $('#YearMonthTS').text('工作时间,别忘了'); - } else if (jobyear == 0 && jobmonth == 0) { - bool = false; - $('#YearMonthTS').show(); - $('#YearMonthTS').text('工作年月不能都为0'); - } else { - $('input[name=job_year]').val(jobyear); - $('input[name=job_month]').val(jobmonth); - } - var hasCreditCard = $('#hasCreditCard div.ChangeCK span').hasClass('whet_OK');//----------- 您是否有信用卡 ----------- - if (hasCreditCard == true) { - $('#has_blue_card_tip .whether_right p').text(''); - var whet_OK = $('#hasCreditCard div.ChangeCK span.whet_OK'); - var ok = whet_OK.attr('ok'); - if (ok == 'yes') { - var MuchCard = $.trim($('#count_creditcard').val()); - var MoneyCard = $.trim($('#number_creditcard').val()); - if (MuchCard.length == 0) { - bool = false; - $('#count_blue_card_tip').show(); - $('#count_blue_card_tip .whether_right p').text('不要为空'); - } - if (MoneyCard.length == 0) { - bool = false; - $('#money_blue_card_tip').show(); - $('#money_blue_card_tip .whether_right p').text('不要为空'); - } - if (isNaN(MuchCard)) { - bool = false; - $('#count_blue_card_tip').show(); - $('#count_blue_card_tip .whether_right p').text('亲,要填纯数字呢'); - } else if (isNaN(MoneyCard)) { - bool = false; - $('#money_blue_card_tip').show(); - $('#money_blue_card_tip .whether_right p').text('亲,要填纯数字呢'); - } - $('input[name=has_creditcard]').val('有'); - } else { - $('input[name=has_creditcard]').val('没有'); - } - $('input[name=creditcard_num]').val(MuchCard); - $('input[name=creditcard_money]').val(MoneyCard); - } else { - bool = false; - $('#has_blue_card_tip').show(); - $('#has_blue_card_tip .whether_right p').text('这里要选择'); - } - var hasDebt_Card = $('#hasDebt_Card div.ChangeCK span').hasClass('whet_OK');//----------- 您是否有信用卡 ----------- - if (hasDebt_Card == true) { - $('#has_debt_card_tip .whether_right p').text(''); - var whet_OK = $('#hasDebt_Card div.ChangeCK span.whet_OK'); - var ok = whet_OK.attr('ok'); - if (ok == 'yes') { - var MoneyDebt = $.trim($('#debt_creditcard').val()); - if (MoneyDebt.length == 0) { - bool = false; - $('#money_debt_card_tip').show(); - $('#money_debt_card_tip .whether_right p').text('不要为空'); - } else { - if (isNaN(MoneyDebt)) { - bool = false; - $('#money_debt_card_tip').show(); - $('#money_debt_card_tip .whether_right p').text('亲,要填纯数字呢'); - } - } - $('input[name=has_debt]').val('有'); - } else { - $('input[name=has_debt]').val('没有'); - } - $('input[name=debt_money]').val(MoneyDebt); - } else { - bool = false; - $('#has_debt_card_tip').show(); - $('#has_debt_card_tip .whether_right p').text('这里要选择'); - } - var hasOkApply = $('#hasOkApply div.ChangeCK span').hasClass('whet_OK');//----------- 您之前是否成功申请贷款 ----------- - if (hasOkApply == false) { - bool = false; - $('#has_succ_reply_tip').show(); - $('#has_succ_reply_tip .whether_right p').text('这里要选择'); - } else { - var whet_OK = $('#hasOkApply div.ChangeCK span.whet_OK'); - var ok = whet_OK.attr('ok'); - if (ok == 'yes') { - $('input[name=has_succ_apply]').val('有'); - } else { - $('input[name=has_succ_apply]').val('没有'); - } - } - var hasDebt_Daik = $('#hasDebt_Daik div.ChangeCK span').hasClass('whet_OK');//----------- 是否有负债(贷款)----------- - if (hasDebt_Daik == true) { - $('#has_debt_loan_tip .whether_right p').text(''); - var whet_OK = $('#hasDebt_Daik div.ChangeCK span.whet_OK'); - var ok = whet_OK.attr('ok'); - if (ok == 'yes') { - var MoneyDebt = $.trim($('#has_money_debt_loan').val()); - if (MoneyDebt.length == 0) { - bool = false; - $('#money_debt_loan_tip').show(); - $('#money_debt_loan_tip .whether_right p').text('不要为空'); - } else { - if (isNaN(MoneyDebt)) { - bool = false; - $('#money_debt_loan_tip').show(); - $('#money_debt_loan_tip .whether_right p').text('亲,要填纯数字呢'); - } - } - $('input[name=has_debt_loan]').val('有'); - $('input[name=debt_loan_money]').val(MoneyDebt); - } else { - $('input[name=has_debt_loan]').val('没有'); - } - } else { - bool = false; - $('#has_debt_loan_tip').show(); - $('#has_debt_loan_tip .whether_right p').text('这里要选择'); - } - return bool; -} -function qiye_appyOneYZ() { - var bool = true; - var companyType = $('#companyType').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 公司类型 ----------- - if (companyType == false) { - bool = false; - $('#companyType').prev('.posi').addClass('redTS'); - } else { - $('input[name=company_type]').val($('#companyType .changeYes').attr('value')); - } - var hasLocalHouse = $('#hasLocalHouse').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 是否有本地商品房 ----------- - if (hasLocalHouse == false) { - bool = false; - $('#hasLocalHouse').prev('.posi').addClass('redTS'); - } else { - $('input[name=has_house]').val($('#hasLocalHouse .changeYes').attr('value')); - } - var monthly = $.trim($('#monthly').val());//----------- 对公加对私流水 ----------- - if (monthly == '如:1万元,输入10000' || monthly.length == 0) { - bool = false; - $('#monthlyTS').show(); - $('#monthlyTS').text('这里别忘了填哦'); - } - if (isNaN(monthly)) { - bool = false; - $('#monthlyTS').show(); - $('#monthlyTS').text('亲,要填纯数字呢'); - } - var BusinessTime = $('#BusinessTime').attr('value'); //----------- 经营年限 ----------- - if (BusinessTime == '') { - bool = false; - $('#BusinessTimeTS').show(); - $('#BusinessTimeTS').text('经营年限,别忘了'); - } else { - $('input[name=business_time]').val($('#BusinessTime').text()); - } - return bool; -} -function gouche_appyOneYZ() { - var bool = true; - var hasLocalHouse = $('#hasLocalHouse').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 是否有本地商品房 ----------- - if (hasLocalHouse == false) { - bool = false; - $('#hasLocalHouse').prev('.posi').addClass('redTS'); - } else { - $('input[name=has_house]').val($('#hasLocalHouse .changeYes').attr('value')); - } - var shopCarPhase = $('#shopCarPhase').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 是否有本地商品房 ----------- - if (shopCarPhase == false) { - bool = false; - $('#shopCarPhase').prev('.posi').addClass('redTS'); - } else { - $('input[name=car_step]').val($('#shopCarPhase .changeYes').attr('value')); - } - var Usermoney = $.trim($('#Usermoney').val());//----------- 打卡工资 ----------- - if (Usermoney == '请输入每月工资,如5000' || Usermoney.length == 0) { - bool = false; - $('#UsermoneyTS').show(); - $('#UsermoneyTS').text('这里别忘了填哦'); - } else if (isNaN(Usermoney)) { - bool = false; - $('#UsermoneyTS').show(); - $('#UsermoneyTS').text('亲,要填纯数字呢'); - } - return bool; -} -function goufang_appyOneYZ() { - var bool = true; - var houseType = $('#houseType').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 房屋类型 ----------- - if (houseType == false) { - bool = false; - $('#houseType').prev('.posi').addClass('redTS'); - } else { - $('input[name=house_type]').val($('#houseType .changeYes').attr('value')); - } - var youLocal = $('#youLocal').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 户籍 ----------- - if (youLocal == false) { - bool = false; - $('#youLocal').prev('.posi').addClass('redTS'); - } else { - $('input[name=hukou]').val($('#youLocal .changeYes').attr('value')); - } - var yesTwoHouse = $('#yesTwoHouse').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 是否二手房 ----------- - if (yesTwoHouse == false) { - bool = false; - $('#yesTwoHouse').prev('.posi').addClass('redTS'); - } else { - $('input[name=has_secondhandhouse]').val($('#yesTwoHouse .changeYes').attr('value')); - } - var Usermoney = $.trim($('#Usermoney').val());//----------- 打卡工资 ----------- - if (Usermoney == '请输入每月工资,如5000' || Usermoney.length == 0) { - bool = false; - $('#UsermoneyTS').show(); - $('#UsermoneyTS').text('这里别忘了填哦'); - } else if (isNaN(Usermoney)) { - bool = false; - $('#UsermoneyTS').show(); - $('#UsermoneyTS').text('亲,要填纯数字呢'); - } - return bool; -} -function moreSearchTC_Con_BtnCK(obj) { - var obj = $(obj); - var btn = obj.children('input'); - btn.trigger('click'); - alert('dd'); -} -function ConditionClick(obj) { - var xindai_type; - var url; - xindai_type = $('#xindai_type').attr('value'); - url = $('#http_url').attr('value'); - var val = $("#xf_JobType").val(); - var reval = $("#xf_JobType option:selected").attr('reval'); - switch (xindai_type) { - case 'xiaofei': - var xf_JobType = $("#xf_JobType option:selected").attr('reval'); - var xf_CreditType = $('#xf_CreditType option:selected').attr('reval'); - var xf_houseType = $('#xf_houseType option:selected').attr('reval'); - url = url + '&profession=' + xf_JobType + '&credit_record=' + xf_CreditType + '&has_house=' + xf_houseType; - break; - case 'qiye': - var qy_JobType = $('#qy_JobType option:selected').attr('reval'); - var qy_CreditType = $('#qy_CreditType option:selected').attr('reval'); - var qy_houseType = $('#qy_houseType option:selected').attr('reval'); - url = url + '&profession=' + qy_JobType + '&credit_record=' + qy_CreditType + '&has_house=' + qy_houseType; - break; - case 'goufang': - var gf_changquanType = $('#gf_changquanType option:selected').attr('reval'); - var gf_shopHouse = $('#gf_shopHouse option:selected').attr('reval'); - var gf_homeType = $('#gf_homeType option:selected').attr('reval'); - url = url + '&house_type=' + gf_changquanType + '&first_suite=' + gf_shopHouse + '&secondhand_house=' + gf_homeType; - break; - case 'gouche': - var gc_houseType = $('#gc_houseType option:selected').attr('reval'); - var gc_carNumber = $('#gc_carNumber option:selected').attr('reval'); - var gc_carUse = $('#gc_carUse option:selected').attr('reval'); - var gc_carType = $('#gc_carType option:selected').attr('reval'); - url = url + '&has_house=' + gc_houseType + '&car_number=' + gc_carNumber + '&car_use=' + gc_carUse + '&car_type=' + gc_carType; - break; - } - window.location.href = url; -} -function XfSearchMonthClick(obj) { - $('#XfSearchMonthUL').toggle(); -} -function XfSearchMoneyClick(obj) { - $('#XfSearchMoneyUL').toggle(); -} -function XfSearchMoneyList(obj) { - var obj = $(obj); - var val = obj.attr('value'); - $('#ShopHsearchMoney').val(val); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function XfSearchMonthList(obj) { - var obj = $(obj); - var value = obj.attr('value'); - var unit = obj.attr('unit'); - var val = obj.attr('val'); - $('#ShopHsearchMonth').val(val); - $('#xfSearchMonthSpan').html(unit); - $('#xfMonthUnit').val(unit); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function QySearchMonthClick(obj) { - $('#QySearchMonthUL').toggle(); -} -function QySearchMoneyClick(obj) { - $('#QySearchMoneyUL').toggle(); -} -function QySearchMoneyList(obj) { - var obj = $(obj); - var val = obj.attr('value'); - $('#CompanyHsearchMoney').val(val); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function QySearchMonthList(obj) { - var obj = $(obj); - var value = obj.attr('value'); - var unit = obj.attr('unit'); - var val = obj.attr('val'); - $('#CompanyHsearchMonth').val(val); - $('#qySearchMonthSpan').html(unit); - $('#qyMonthUnit').val(unit); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function GcSearchMonthClick(obj) { - $('#GcSearchMonthUL').toggle(); -} -function GcSearchMoneyClick(obj) { - $('#GcSearchMoneyUL').toggle(); -} -function GcSearchMoneyList(obj) { - var obj = $(obj); - var val = obj.attr('value'); - $('#CarHsearchMoney').val(val); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function GcSearchMonthList(obj) { - var obj = $(obj); - var value = obj.attr('value'); - var unit = obj.attr('unit'); - var val = obj.attr('val'); - $('#CarHsearchMonth').val(val); - $('#gcSearchMonthSpan').html(unit); - $('#gcMonthUnit').val(unit); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function GfSearchMonthClick(obj) { - $('#GfSearchMonthUL').toggle(); -} -function GfSearchMoneyClick(obj) { - $('#GfSearchMoneyUL').toggle(); -} -function GfSearchMoneyList(obj) { - var obj = $(obj); - var val = obj.attr('value'); - $('#HouseHsearchMoney').val(val); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function GfSearchMonthList(obj) { - var obj = $(obj); - var value = obj.attr('value'); - var unit = obj.attr('unit'); - var val = obj.attr('val'); - $('#HouseHsearchMonth').val(val); - $('#gfSearchMonthSpan').html(unit); - $('#gfMonthUnit').val(unit); - var li = obj.parent().children('li'); - li.removeClass('mo'); - obj.addClass('mo'); -} -function YanzmFoc(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - - if (val == '请输入短信验证码') { - obj.css('color', '#999'); - obj.val(''); - } - obj.css('color', '#333'); -} -function YanzmBlu(obj) { - var obj = $(obj); - var vall = obj.val(); - var val = $.trim(obj.val()); - if (val == '') { - obj.val('请输入短信验证码'); - obj.css('color', '#999'); - } -} -function conditionSel(obj) { - var obj = $(obj); - var showTit = obj.parents('.moreSearchTC_Con_li').children('span.HomeSelect_span'); - var $selectObj = obj.children('option:selected'); - var selectTit = $selectObj.text(); - showTit.text(selectTit); -} -$(document).ready(function() { - var $selectList = $(".mHSearch_select_show"); - - $.each($selectList,function (index, domEle) { - conditionSel(domEle); - }); - + +$(document).ready(function() { + sendsns('#sendsns', 90); + $('#Useryzm').keyup(function() { + wapdxyzm(); + }); + + $('#UserTel').focus(function() { + if ($(this).val() == '请输入手机号码') { + $(this).val(''); + $(this).css('color', '#666'); + } + }) + + Switchcity(); + XFTwoChange(); + advancedOn(); + $("#HSearchTypeLi").val(4); + HSearchType(); + +}); + +function sendsns(o, time) { + var o = $(o); + var set_time = time * 1000; + function cookie() { + var COOKIE_NAME = 'timer'; + var date = new Date(); + date.setTime(date.getTime() + set_time); + $.cookie(COOKIE_NAME, date, {path: '/', expires: date}); + } + + function whatTime() { + if (typeof $.cookie('timer') != "undefined") { + var leftTime = Math.round(new Date($.cookie('timer')).getTime() / 1000 - new Date().getTime() / 1000); + o.attr("disabled", true); + Countdown(leftTime); + } + } + whatTime(); + + function Countdown(now) { + var nowTime = now; + var Timer = setInterval( + function() { + --now; + o.html(now + '秒重新获取'); + if (now <= 0) { + clearInterval(Timer); + o.html('获取验证码').attr("disabled", false); + } + }, 1000); + } + + o.click(function() { + var tel = $('#UserTel').val(); + if (tel != '' && tel != '请输入手机号码' && checkMobile(tel)) { + $.post('/sms/wapdxin', {tel: tel}, function(msg) { + }); + o.html(time + '秒重新获取').attr("disabled", true); + Countdown(time); + cookie(); + } else { + var s = '请输入手机号码'; + $('#UserTel').css('color', 'red'); + $('#UserTel').val('请输入手机号码'); + } + }); + +} + +function wapdxyzm() { + var checksms = $('#Useryzm').val(); + var tel = $('#UserTel').val(); + + var num = /[^\d]/g; + if (!num.test(checksms)) { + if (checksms.length > 5 && checksms.length < 7) { + $.post('/sms/wapdxyzm', {checksms: checksms, tel: tel}, function(msg) { + if (msg['d'] == 1) { + $('#UserYZMTS').text('请输入6位数字验证码'); + telyzm = false; + } else { + $('#UserYZMTS').text(''); + checksms; + telyzm = true; + + } + }); + } else { + $('#UserYZMTS').text('请输入6位数字验证码'); + telyzm = false; + } + } else { + $('#UserYZMTS').text('请输入数字'); + telyzm = false; + } +} + +function advancedOn() { + var advancedon = $('#advanced_on').attr('value'); + if (advancedon == '1') { + MoreSearchCK(); + } +} +function mHSearchXLck(obj) { + var obj = $(obj); + var xl3icon = obj.parent('.moreSearchTC_Con_li').children('.xl3icon'); + var xlcon = obj.parent('.moreSearchTC_Con_li').children('.mHSearch_select_ul'); + var k = obj.attr('k'); + if (k == 'yes') { + xlcon.slideDown(); + xl3icon.addClass('xl3icon180'); + obj.attr('k', 'no'); + } else if (k == 'no') { + xlcon.slideUp(); + xl3icon.removeClass('xl3icon180'); + obj.attr('k', 'yes'); + } +} +function HSearchMoneyHomeBlu(obj) { + var obj = $(obj); + var val = $.trim(obj.val()); + if (isNaN(val)) { + obj.parents('.Search_Money').css('border', '1px solid #f00c0c'); + } else if (val.length == 0) { + obj.parents('.Search_Money').css('border', '1px solid #f00c0c'); + } else if (val < 0 || val >= 6000) { + alert('贷款金额在0-6000万之间'); + obj.parents('.Search_Money').css('border', '1px solid #f00c0c'); + } +} +function HSearchMoneyHomeFoc(obj) { + var obj = $(obj); + obj.parents('.Search_Money').css('border', '1px solid #c6c6c6'); +} +function HSearchMoneyBlu(obj) { + var obj = $(obj); + var val = $.trim(obj.val()); + if (isNaN(val)) { + obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); + } else if (val.length == 0) { + obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); + } else if (val < 0 || val >= 6000) { + alert('贷款金额在0-6000万之间'); + obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); + } +} +function HSearchMoneyFoc(obj) { + var obj = $(obj); + obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #c6c6c6'); +} +function HSearchMonthBlu(obj) { + var obj = $(obj); + var val = $.trim(obj.val()); + if (isNaN(val)) { + obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); + } else if (val.length == 0) { + obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); + } else if (val < 0 || val >= 360) { + alert('贷款期限在0-360个月之间'); + obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #f00c0c'); + } +} +function HSearchMonthFoc(obj) { + var obj = $(obj); + obj.parent('.moreSearchTC_Con_ipt').css('border', '1px solid #c6c6c6'); +} +function mHSearchLick(obj) { + var obj = $(obj); + var showTit = obj.parents('.moreSearchTC_Con_li').children('span.mHSearch_select_show'); + var xl3icon = obj.parents('.moreSearchTC_Con_li').children('span.xl3icon'); + var xlcon = obj.parent('.mHSearch_select_ul'); + var Li = obj.parent().children('li'); + var Otext = obj.text(); + var Ovalue = obj.attr('value'); + showTit.text(Otext); + showTit.attr('value', Ovalue); + showTit.css('color', '#444555'); + Li.removeClass('mo'); + obj.addClass('mo'); + xlcon.slideUp(); + xl3icon.removeClass('xl3icon180'); + showTit.attr('k', 'yes'); +} +function HSearchType(obj) { + var selectTypeObj = $('select[id=HSearchTypeLi] option:selected'); + var selectTypeName = selectTypeObj.text(); + var selectMoney = selectTypeObj.attr('money'); + $('#HSearchType').text(selectTypeObj.text()); + $('#HSearchMoney').text(selectMoney); + $("select[id=HSearchMoneyLi]").val(selectMoney); + $('.Search_type input[name=route]').attr('value', selectTypeObj.attr('route')); + $('.Search_type input[name=month]').attr('value', selectTypeObj.attr('month')); + $('.Search_type input[name=shoufu]').attr('value', selectTypeObj.attr('shoufu')); + var obj = $(obj); + var val = obj.val(); + if (val == 1) { + $('#HSearchMoney').val(50); + var xlhtml = $('#qy_HSearchMoneyUL').html(); + $('#HSearchMoneyUL').html(xlhtml); + } else if (val == 2) { + $('#HSearchMoney').val(15); + var xlhtml = $('#gc_HSearchMoneyUL').html(); + $('#HSearchMoneyUL').html(xlhtml); + } else if (val == 3) { + $('#HSearchMoney').val(100); + var xlhtml = $('#gf_HSearchMoneyUL').html(); + $('#HSearchMoneyUL').html(xlhtml); + } else if (val == 4) { + $('#HSearchMoney').val(10); + var xlhtml = $('#xf_HSearchMoneyUL').html(); + $('#HSearchMoneyUL').html(xlhtml); + } +} +function HSearchMoneyXL() { + $('#HSearchMoneyUL').toggle(); +} +function HSearchMoneyKup() { + $('#HSearchMoneyUL').hide(); +} +function MoSearchMoneyKup(obj) { + var obj = $(obj); + var ul = obj.parent().children('ul.Search_Money_ul'); + ul.hide(); +} +function HSearchMoneyList(obj) { + var obj = $(obj); + var val = obj.attr('value'); + $('#HSearchMoney').val(val); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function HSearchMoney() { + var selectMoneyObj = $('select[id=HSearchMoneyLi] option:selected'); + var selectMoney = selectMoneyObj.val(); + $('#HSearchMoney').text(selectMoney); +} +function Switchcity() { + SwitchcityEachFn('hot_list'); + SwitchcityEachFn('letters_list'); +} +var SwitchcityEachFn = function(className) { + var $divObj = $("." + className); + for (var j = 0; j < $divObj.length; j++) { + var $liObj = $($divObj[j]).children().children(); + var len = $liObj.length; + for (var i = 0; i < len; i++) { + $($liObj[i]).click(function(obj) { + $('#swit_ticy').html($(this).html()); + }) + } + } +} +function ProviewTab(obj) { + var obj = $(obj); + var td = $('#Proview_tab_tit td'); + td.removeClass('show_td'); + obj.addClass('show_td'); + var num = obj.index(); + var con = $('#Proview_tab_con .Proview_tab_c1'); + var objcon = con.eq(num); + con.hide(); + objcon.show(); +} +function figureFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '请输入每月工资,如5000') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function figureBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('请输入每月工资,如5000'); + obj.css('color', '#999'); + } else { + $('#UsermoneyTS').text(''); + $('#UsermoneyTS').hide(); + } +} +function BirthfigureFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '请输入出生年份,如1986') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); + $('#year_born_inpTS').text(''); + $('#year_born_inpTS').hide(); +} +function BirthfigureBlu(obj) { + var obj = $(obj); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('请输入出生年份,如1986'); + obj.css('color', '#999'); + } +} +function yearFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '例如,1992') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function yearBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('例如,1992'); + obj.css('color', '#999'); + } +} +function BirthYearCk(obj) { + var obj = $(obj); + var k = $('#BirthYearSelect').attr('k'); + if (k == 'no') { + $('#BirthYearSelect').slideDown(); + $('#BirthYearSelect').attr('k', 'ye'); + } else { + $('#BirthYearSelect').slideUp(); + $('#BirthYearSelect').attr('k', 'no'); + } +} +function yearliSelect(obj) { + var obj = $(obj); + $('#BirthYearSelect p a').removeClass('yearOK'); + obj.addClass('yearOK'); + obj_reval = obj.attr('yearval'); + $('#year_born_inp').attr('val', obj_reval); + $('#year_born_inp').html(obj_reval); + $('#BirthYearSelect').slideUp(); + $('#BirthYearSelect').attr('k', 'no'); + $('#year_born_inpTS').text(''); + $('#year_born_inpTS').hide(); +} +function qianFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '如:1万元,输入10000') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function qianBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('如:1万元,输入10000'); + obj.css('color', '#999'); + $('#monthlyTS').show(); + $('#monthlyTS').text('不要空着呢'); + } else { + if (isNaN(val)) { + $('#monthlyTS').show(); + $('#monthlyTS').text('要求纯数字哦'); + } else { + $('#monthlyTS').hide(); + $('#monthlyTS').text(''); + } + } +} +function applyTwoYZ() { + + var nickname = $.trim($('#UserName').val()); + var nknet = $('#UserNameTS'); + if (nickname == $('#nickname').attr('myplace')) { + nickname = ''; + } + var testNum = /([1-9]\d*\.?\d*)|(0\.\d*[1-9])/; + var testnicknameNum = testNum.test(nickname); + if (/[\s><,._\。\[\]\{\}\?\/\+\=\|\'\\\":;\~\!\@\#\*\$\%\^\&`\uff00-\uffff)(]+/.test(nickname) && nickname.length > 0 || testnicknameNum) { + nknet.show(); + nknet.text('输入只限中英文'); + UserName = false; + } else if (nickname == '') { + nknet.show(); + UserName = false; + } else if (nickname.length == 0) { + nknet.show(); + nknet.text('请填写您的称呼'); + UserName = false; + } else { + nknet.text(''); + UserName = true; + } + + + + var Telval = $.trim($('#UserTel').val()); + if (Telval == '用于接收信贷员联系方式') { + Tel = false; + $('#UserTelTS').text('请输入手机号码'); + } else { + if (checkMobile(Telval)) { + Tel = true; + } else { + Tel = false; + $('#UserTelTS').text('手机号格式不对哦'); + } + } + + var yzm = $.trim($('#Useryzm').val()); + if (yzm == '请输入短信验证码') { + $('#UserYZMTS').text('请输入短信验证码'); + } else { + var num = /[^\d]/g; + if (!num.test(yzm)) { + Yzm = true; + } else { + Yzm = false; + $('#UserYZMTS').text('输入数字不对哦'); + } + } + + var Emailval = $.trim($('#UserEmail').val()); + if (Emailval == '用于获取申请贷款所需材料(可选填)' || Emailval == '') { + Email = true; + } else { + if (checkEmail(Emailval)) { + Email = true; + } else { + Email = false; + $('#UserEmailTS').text('邮件格式不对哦'); + } + } + var moneyval = $.trim($('#Usermoney').val()); + if (moneyval == '请输入数字') { + $('#UsermoneyTS').text('请输入数字'); + } else { + if (checkMoney(moneyval)) { + Money = true; + } else { + Money = false; + $('#UsermoneyTS').text('输入数字不对哦'); + } + } +} +function applyThreeYZ() { + var val = $.trim($('#applyArea').val()); + var num = val.length; + var count = 140; + if (num > count) { + var yewnum = $('#applyArea').val().substr(0, count) + $('#applyAreaTS').text('不超过140字哦'); + applyArea = false; + } else if (num < 5) { + $('#applyAreaTS').text('至少五个字,继续加油!'); + applyArea = false; + } else { + applyArea = true; + } +} +function applyFastYZ() { + var nickname = $.trim($('#UserName').val()); + var nknet = $('#UserNameTS'); + if (nickname == $('#nickname').attr('myplace')) { + nickname = ''; + } + var testNum = /([1-9]\d*\.?\d*)|(0\.\d*[1-9])/; + var testnicknameNum = testNum.test(nickname); + if (/[\s><,._\。\[\]\{\}\?\/\+\=\|\'\\\":;\~\!\@\#\*\$\%\^\&`\uff00-\uffff)(]+/.test(nickname) && nickname.length > 0 || testnicknameNum) { + nknet.show(); + nknet.text('输入只限中英文'); + UserName = false; + } else if (nickname == '') { + nknet.show(); + UserName = false; + } else if (nickname.length == 0) { + nknet.show(); + nknet.text('请填写您的称呼'); + UserName = false; + } else { + nknet.text(''); + UserName = true; + } + + var Telval = $.trim($('#UserTel').val()); + if (Telval == '用于接收信贷员联系方式') { + Tel = false; + $('#UserTelTS').text('请输入手机号码'); + } else { + if (checkMobile(Telval)) { + Tel = true; + } else { + Tel = false; + $('#UserTelTS').text('手机号格式不对哦'); + + } + } + var yzm = $.trim($('#Useryzm').val()); + if (yzm == '请输入短信验证码') { + $('#UserYZMTS').text('请输入短信验证码'); + } else { + var num = /[^\d]/g; + if (!num.test(yzm)) { + Yzm = true; + } else { + Yzm = false; + $('#UserYZMTS').text('输入数字不对哦'); + } + } + + var moneyval = $.trim($('#Usermoney').val()); + if (moneyval == '请输入数字') { + $('#UsermoneyTS').text('请输入数字'); + } else { + if (checkMoney(moneyval)) { + Money = true; + } else { + Money = false; + $('#UsermoneyTS').text('输入数字不对哦'); + } + } +} + +function usernameFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + + if (val == '如:李先生') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function usernameBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('如:李先生'); + obj.css('color', '#999'); + } +} +function telFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '用于接收信贷员联系方式') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function telBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('用于接收信贷员联系方式'); + obj.css('color', '#999'); + } +} +function emailFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '用于获取申请贷款所需材料(可选填)') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function emailBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('用于获取申请贷款所需材料(可选填)'); + obj.css('color', '#999'); + } +} +function moneyFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '请输入数字') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function moneyBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('请输入数字'); + obj.css('color', '#999'); + } +} +function YourFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '您的手机号') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function YourBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('您的手机号'); + obj.css('color', '#999'); + } +} +function checkMobile(s) { + var regu = /^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/; + var re = new RegExp(regu); + if (re.test(s)) { + return true; + } + else { + return false; + } +} +function checkEmail(yx) { + var reyx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\-])+\.)+([a-zA-Z0-9]{2,4})+$/; + return(reyx.test(yx)); +} +function checkMoney(money) { + if (!isNaN(money) && money != '' && money != '请输入数字') { + return true; + } else { + return false; + } +} +function hideTS(obj) { + $('.ApplyOne_li_ts').text(''); +} +function ApplyCK(nextName) { + if (nextName == 'Applyone') { + applyOneYZ(); + if (CompanyType == true && dgdsMoney == true && BusinessTime == true && ApplyOne_yon == true) { + window.open('ApplyTwo.html'); + } + } else if (nextName == 'Applytwo') { + applyTwoYZ(); + var num = $('#num').val(); + if (num == 1) { //=1短信关不需要验证短信 + if (UserName == true && Tel == true && Email == true && Yzm == true) { + $('form').submit(); + } + } else { + wapdxyzm(); + if (UserName == true && Tel == true && Email == true && Yzm == true && telyzm == true) { + $('form').submit(); + } + } + + } else if (nextName == 'ApplyThree') { + var val = $.trim($('#applyArea').val()); + var num = val.length; + if (num > 0) { + applyThreeYZ(); + if (applyArea == true) { + $('form').submit(); + } + } else { + $('form').submit(); + } + } else if (nextName == 'FastApply') { + applyFastYZ(); + var num = $('#num').val(); //=1短信关 + if (num == 1) { + if (UserName == true && Tel == true && Money == true && Yzm == true) { + $("form").submit(); + } + + } else { + wapdxyzm(); + if (UserName == true && Tel == true && Money == true && Yzm == true && telyzm == true) { + $("form").submit(); + } + } + } +} +function ApplyOne_yonCK(obj) { + var obj = $(obj); + var span = $('.changeOp span'); + var objspan = obj.find('span'); + span.removeClass('changeYes'); + objspan.addClass('changeYes'); + $('#ApplyOne_yonTS').text(''); +} +function ApplyOne_typeCK(obj) { + var obj = $(obj); + var span = $('.changeOp01 span'); + var objspan = obj.find('span'); + span.removeClass('changeYes'); + objspan.addClass('changeYes'); + $('#ApplyOne_yonTS').text(''); +} +function Apply_RadioGroupsCK(obj) { + myCheck(obj); + var obj = $(obj); + var yk = obj.attr('yk'); + if (yk == 'a') { + $('#ykdiv').text('打卡工资:'); + } else { + $('#ykdiv').text('领取现金:'); + } + var alldiv = obj.parents('.ApplyZKCon').children('.ApplyOne_yon'); + alldiv.hide(); + obj.show(); + alldiv.removeClass('OkApplyOne_yon'); + obj.addClass('OkApplyOne_yon'); + var titdiv = obj.parents('.ApplyZKCon').prev('.posi').find('.pulldown'); + titdiv.removeClass('pulldownOpen'); + obj.parents('.ApplyZKCon').prev('.posi').removeClass('redTS'); +} +function myCheck(obj) { + var obj = $(obj); + var span = obj.parent('.ApplyZKCon').find('.changeOp01').children('span'); + var objspan = obj.find('span'); + span.removeClass('changeYes'); + objspan.addClass('changeYes'); +} +function ApplyOne_fragrantCK(obj) { + var obj = $(obj); + var span = $('.changeOp01 span'); + var objspan = obj.find('span'); + span.removeClass('changeYes'); + objspan.addClass('changeYes'); + $('#ApplyOne_yonTS').text(''); +} +function niankey() { + var hotkey = document.getElementById('nianSelect').value; + $('#work_year').text(hotkey); + $('#work_year').attr('val', hotkey); + $('#YearMonthTS').text(''); + $('#YearMonthTS').hide(); +} +function yuekey() { + var hotkey = document.getElementById('yueSelect').value; + $('#work_month').text(hotkey); + $('#work_month').attr('val', hotkey); + $('#YearMonthTS').text(''); + $('#YearMonthTS').hide(); +} +function BusinessTimeCK() { + $('#BusinessTimeTS').hide(); + $('#BusinessTimeTS').text(''); + $('#BusinessTime').css('color', '#333'); + var hotkeyArr = new Array('', '不足半年', '半年', '1年', '2年', '3年', '4年', '5年以上(含5年)'); + var hotkey = document.getElementById('BusinessTimeSelect').value; + var text = hotkeyArr[hotkey]; + document.getElementById('BusinessTime').innerHTML = text; + $('#BusinessTime').attr('value', hotkey); +} +function SearchTypeLiCK(obj) { + var obj = $(obj); + var reval = obj.attr('reval'); + if (reval == 4) { + $('.moreSearchTC_Nav li').removeClass('show'); + obj.addClass('show'); + $('.moreSearchTC_Con').hide(); + $('#ShopSearchCon').show(); + } else if (reval == 1) { + $('.moreSearchTC_Nav li').removeClass('show'); + obj.addClass('show'); + $('.moreSearchTC_Con').hide(); + $('#CompanySearchCon').show(); + } else if (reval == 2) { + $('.moreSearchTC_Nav li').removeClass('show'); + obj.addClass('show'); + $('.moreSearchTC_Con').hide(); + $('#CarSearchCon').show(); + } else if (reval == 3) { + $('.moreSearchTC_Nav li').removeClass('show'); + obj.addClass('show'); + $('.moreSearchTC_Con').hide(); + $('#HouseSearchCon').show(); + } +} +function MoreSearchCK() { + var Msearch = $('#moreSearchTC'); + $('#SearchTCZZC').show(); + Msearch.show(); +} +function MoreSearchBack() { + $('#moreSearchTC').hide(); + $('#SearchTCZZC').hide(); +} +function ApplyZK(obj) { + var obj = $(obj); + var yesPulldownOpen = obj.find('.pulldown').hasClass('pulldownOpen'); + var ApplyZKCon = obj.next('.ApplyZKCon'); + var ApplyZKCon_li = ApplyZKCon.children('.ApplyOne_yon'); + var changeYes = ApplyZKCon.find('.changeOp01').children('span'); + var haschangeYes = changeYes.hasClass('changeYes'); + var yesDiv = ApplyZKCon.children('.OkApplyOne_yon'); + if (yesPulldownOpen == false) { + ApplyZKCon_li.show(); + obj.find('.pulldown').addClass('pulldownOpen'); + } else { + obj.find('.pulldown').removeClass('pulldownOpen'); + if (haschangeYes == true) { + ApplyZKCon_li.hide(); + yesDiv.show(); + obj.find('.pulldown').removeClass('pulldownOpen'); + } else { + ApplyZKCon_li.hide(); + } + } +} +function XFTwoChange() { + var spanLi = $('.ChangeCK span'); + spanLi.click(function() { + $(this).parent().children('.whet_yes01').addClass('whet_yesCe'); + $(this).parent().children('.whet_no01').addClass('whet_noCe'); + $(this).parent().children('span').removeClass('whet_yes01'); + $(this).parent().children('span').removeClass('whet_no01'); + $(this).parent().children('span').removeClass('whet_OK'); + $(this).addClass('whet_OK'); + var parentID = $(this).parents('.daikj').attr('id'); + if (parentID == 'hasCreditCard') { + $('#has_blue_card_tip div.whether_right p').text(''); + $('#has_blue_card_tip').hide(); + } else if (parentID == 'hasDebt_Card') { + $('#has_debt_card_tip div.whether_right p').text(''); + $('#has_debt_card_tip').hide(); + } else if (parentID == 'hasOkApply') { + $('#has_succ_reply_tip div.whether_right p').text(''); + $('#has_succ_reply_tip').hide(); + } else if (parentID == 'hasDebt_Daik') { + $('#has_debt_loan_tip div.whether_right p').text(''); + $('#has_debt_loan_tip').hide(); + } + var ok = $(this).attr('ok'); + var ThisParent = $(this).parents('.daikjPDLR'); + var lastTsText = ThisParent.children('div.daikj_ts:last').find('p').text(); + if (ok == 'yes') { + ThisParent.children('.daikj_02').show(); + ThisParent.children('.daikj_ts').show(); + if (lastTsText == '') { + ThisParent.children('div.daikj_ts:last').hide(); + } + } else { + ThisParent.children('.daikj_02').hide(); + ThisParent.children('.daikj_ts').hide(); + } + }); +} +function ConditionsTCCK(obj) { + var obj = $(obj); + var k = obj.attr('k'); + if (k == 'ye') { + var allTCul = $('.PageConditions').find('.Conditions_TC'); + allTCul.slideUp(); + var allShowTit = $('.PageConditions').find('.Conditions_li_pd'); + allShowTit.attr('k', 'ye'); + allShowTit.css('background', '#fff'); + var allXz180 = $('.PageConditions').find('.Conditions_xl'); + allXz180.removeClass('Conditions_xl180'); + } + var xz180 = obj.parent().children('span.Conditions_xl'); + var Conditions_TC = obj.parent().children('ul.Conditions_TC'); + if (k == 'ye') { + xz180.addClass('Conditions_xl180'); + obj.css('background', '#eee'); + Conditions_TC.slideDown(); + obj.attr('k', 'no'); + } else { + xz180.removeClass('Conditions_xl180'); + obj.css('background', '#fff'); + Conditions_TC.slideUp(); + obj.attr('k', 'ye'); + } +} +function ConditionsLiCK(obj) { + var xindai_type; + var url; + xindai_type = $('#xindai_type').attr('value'); + url = $('#url').attr('value'); + var obj = $(obj); + var reval = obj.attr('reval'); + var text = obj.text(); + var showcon = obj.parent().parent().children('.Conditions_li_pd'); + var xz180 = obj.parent().parent().children('span.Conditions_xl'); + var allli = obj.parent().children('li'); + obj.parents('.Conditions_li').find('span.Conditions_word').attr('reval', reval); + obj.parents('.Conditions_li').find('span.Conditions_word').text(text); + obj.parent('.Conditions_TC').slideUp(); + showcon.css('background', '#fff'); + xz180.removeClass('Conditions_xl180'); + allli.removeClass('mo'); + obj.addClass('mo'); + obj.parents('.Conditions_li').children('.Conditions_li_pd').attr('k', 'ye'); + switch (xindai_type) { + case 'xiaofei': + var xf_JobType = $('#xf_JobType').attr('reval'); + var xf_CreditType = $('#xf_CreditType').attr('reval'); + var xf_houseType = $('#xf_houseType').attr('reval'); + url = url + '&profession=' + xf_JobType + '&credit_record=' + xf_CreditType + '&has_house=' + xf_houseType; + break; + case 'qiye': + var qy_JobType = $('#qy_JobType').attr('reval'); + var qy_CreditType = $('#qy_CreditType').attr('reval'); + var qy_houseType = $('#qy_houseType').attr('reval'); + url = url + '&profession=' + qy_JobType + '&credit_record=' + qy_CreditType + '&has_house=' + qy_houseType; + break; + case 'goufang': + var gf_changquanType = $('#gf_changquanType').attr('reval'); + var gf_shopHouse = $('#gf_shopHouse').attr('reval'); + var gf_homeType = $('#gf_homeType').attr('reval'); + url = url + '&house_type=' + gf_changquanType + '&first_suite=' + gf_shopHouse + '&secondhand_house=' + gf_homeType; + break; + case 'gouche': + var gc_houseType = $('#gc_houseType').attr('reval'); + var gc_carNumber = $('#gc_carNumber').attr('reval'); + var gc_carUse = $('#gc_carUse').attr('reval'); + var gc_carType = $('#gc_carType').attr('reval'); + url = url + '&has_house=' + gc_houseType + '&car_number=' + gc_carNumber + '&car_use=' + gc_carUse + '&car_type=' + gc_carType; + break; + } + window.location.href = url; +} +function SortingLink(obj) { + var obj = $(obj); + var k = obj.attr('k'); + if (k == 'ye') { + $('#SortingPX').css('background', '#4fa9ee'); + $('#SortingLinkTC').slideDown(); + obj.attr('k', 'no'); + } else { + $('#SortingPX').css('background', '#e9e9e9'); + $('#SortingLinkTC').slideUp(); + obj.attr('k', 'ye'); + } +} +function SortingLinkLi(obj) { + var obj = $(obj); + var reval = obj.attr('reval'); + var text = obj.text(); + var c = obj.attr('c'); + $('#SortingShow').attr('reval', reval); + $('#SortingShow').text(text); + $('#SortingShow').attr('k', 'ye'); + $('#SortingLinkTC li').removeClass('mo'); + obj.parent().addClass('mo') + $('#SortingPX').css('background', '#e9e9e9'); + $('#SortingLinkTC').slideUp(); + url = $('#order_url').attr('value'); + window.location.href = url + c; +} +function applyNext(next_name) { + if (next_name == 'xiaofei_two') { + var bool = xiaofei_appyOneYZ(); + if (bool == true) { + $('form[name=apply]').submit(); + } + } else if (next_name == 'qiye_two') { + var bool = qiye_appyOneYZ(); + if (bool == true) { + $('form[name=apply]').submit(); + } + } else if (next_name == 'gouche_two') { + var bool = gouche_appyOneYZ(); + if (bool == true) { + $('form[name=apply]').submit(); + } + } else if (next_name == 'goufang_two') { + var bool = goufang_appyOneYZ(); + if (bool == true) { + $('form[name=apply]').submit(); + } + } +} +function xiaofei_appyOneYZ() { + var bool = true; + var xf_companyTypeYs = $('#xf_companyType').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 公司类型 ----------- + if (xf_companyTypeYs == false) { + bool = false; + $('#xf_companyType').prev('.posi').addClass('redTS'); + } else { + $('input[name=company_type]').val($('#xf_companyType .changeYes').attr('value')) + } + var xf_incomeTypeYs = $('#xf_incomeType').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 工资发放形式 ----------- + if (xf_incomeTypeYs == false) { + bool = false; + $('#xf_incomeType').prev('.posi').addClass('redTS'); + } else { + $('input[name=salary_type]').val($('#xf_incomeType .changeYes').attr('value')); + } + var Usermoney = $.trim($('#Usermoney').val());//----------- 打卡工资 ----------- + if (Usermoney == '请输入每月工资,如5000' || Usermoney.length == 0) { + bool = false; + $('#UsermoneyTS').show(); + $('#UsermoneyTS').text('这里别忘了填哦'); + } + if (isNaN(Usermoney)) { + bool = false; + $('#UsermoneyTS').show(); + $('#UsermoneyTS').text('亲,要填纯数字呢'); + } else { + $('input[name=salary]').val(Usermoney); + } + + var BirthYear2 = $('#BirthYear').val();//----------- 出生年份 02----------- + var BirthYear_01 = BirthYear2.substr(0, 1); + var BirthYear_02 = BirthYear2.substr(1, 1); + var BirthYear_03 = BirthYear2.substr(2, 1); + var BirthYear_04 = BirthYear2.substr(3, 1); + $('input[name=year_born]').val(BirthYear2); + if (!isNaN(BirthYear2)) { + if (BirthYear_01 != 1 && BirthYear_01 != 2) { + bool = false; + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('不在规定的千禧年,你要穿越吗?'); + } + if (BirthYear_01 == 1) { + if (BirthYear_02 != 9) { + bool = false; + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('不在规定的世纪,你要穿越吗?'); + } + } else if (BirthYear_01 == 2) { + if (BirthYear_02 != 0) { + bool = false; + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('不在规定的世纪,你要穿越吗?'); + } + } + if (BirthYear_01 == 2 && BirthYear_02 == 0) { + if (BirthYear_03 != 0 && BirthYear_03 != 1) { + bool = false; + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('不在规定年份里,你要穿越吗?'); + } else if (BirthYear_03 == 1) { + if (BirthYear_04 > 4) { + bool = false; + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('才2014,你这是要穿越啊亲'); + } + } + } + if (BirthYear2 < 1959) { + bool = false; + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('很抱歉,您的年龄已超过相关条件'); + if (BirthYear2 < 1900) { + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('不在规定的世纪,你要穿越吗?'); + } + } else if (BirthYear2 == 2014) { + bool = false; + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('欢迎来到人间,祝你健康成长'); + } else if (BirthYear2 > 2014) { + bool = false; + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('这才2014,你这是要穿越啊亲'); + } + } else { + $('#year_born_inpTS').show(); + $('#year_born_inpTS').text('年份只能填数字哦'); + } + + var jobyear = $('#work_year').attr('val'); //----------- 工作时间 -- 年 ----------- + var jobmonth = $('#work_month').attr('val');//----------- 工作时间 -- 月 ----------- + if (jobyear == '' || jobmonth == '') { + bool = false; + $('#YearMonthTS').show(); + $('#YearMonthTS').text('工作时间,别忘了'); + } else if (jobyear == 0 && jobmonth == 0) { + bool = false; + $('#YearMonthTS').show(); + $('#YearMonthTS').text('工作年月不能都为0'); + } else { + $('input[name=job_year]').val(jobyear); + $('input[name=job_month]').val(jobmonth); + } + var hasCreditCard = $('#hasCreditCard div.ChangeCK span').hasClass('whet_OK');//----------- 您是否有信用卡 ----------- + if (hasCreditCard == true) { + $('#has_blue_card_tip .whether_right p').text(''); + var whet_OK = $('#hasCreditCard div.ChangeCK span.whet_OK'); + var ok = whet_OK.attr('ok'); + if (ok == 'yes') { + var MuchCard = $.trim($('#count_creditcard').val()); + var MoneyCard = $.trim($('#number_creditcard').val()); + if (MuchCard.length == 0) { + bool = false; + $('#count_blue_card_tip').show(); + $('#count_blue_card_tip .whether_right p').text('不要为空'); + } + if (MoneyCard.length == 0) { + bool = false; + $('#money_blue_card_tip').show(); + $('#money_blue_card_tip .whether_right p').text('不要为空'); + } + if (isNaN(MuchCard)) { + bool = false; + $('#count_blue_card_tip').show(); + $('#count_blue_card_tip .whether_right p').text('亲,要填纯数字呢'); + } else if (isNaN(MoneyCard)) { + bool = false; + $('#money_blue_card_tip').show(); + $('#money_blue_card_tip .whether_right p').text('亲,要填纯数字呢'); + } + $('input[name=has_creditcard]').val('有'); + } else { + $('input[name=has_creditcard]').val('没有'); + } + $('input[name=creditcard_num]').val(MuchCard); + $('input[name=creditcard_money]').val(MoneyCard); + } else { + bool = false; + $('#has_blue_card_tip').show(); + $('#has_blue_card_tip .whether_right p').text('这里要选择'); + } + var hasDebt_Card = $('#hasDebt_Card div.ChangeCK span').hasClass('whet_OK');//----------- 您是否有信用卡 ----------- + if (hasDebt_Card == true) { + $('#has_debt_card_tip .whether_right p').text(''); + var whet_OK = $('#hasDebt_Card div.ChangeCK span.whet_OK'); + var ok = whet_OK.attr('ok'); + if (ok == 'yes') { + var MoneyDebt = $.trim($('#debt_creditcard').val()); + if (MoneyDebt.length == 0) { + bool = false; + $('#money_debt_card_tip').show(); + $('#money_debt_card_tip .whether_right p').text('不要为空'); + } else { + if (isNaN(MoneyDebt)) { + bool = false; + $('#money_debt_card_tip').show(); + $('#money_debt_card_tip .whether_right p').text('亲,要填纯数字呢'); + } + } + $('input[name=has_debt]').val('有'); + } else { + $('input[name=has_debt]').val('没有'); + } + $('input[name=debt_money]').val(MoneyDebt); + } else { + bool = false; + $('#has_debt_card_tip').show(); + $('#has_debt_card_tip .whether_right p').text('这里要选择'); + } + var hasOkApply = $('#hasOkApply div.ChangeCK span').hasClass('whet_OK');//----------- 您之前是否成功申请贷款 ----------- + if (hasOkApply == false) { + bool = false; + $('#has_succ_reply_tip').show(); + $('#has_succ_reply_tip .whether_right p').text('这里要选择'); + } else { + var whet_OK = $('#hasOkApply div.ChangeCK span.whet_OK'); + var ok = whet_OK.attr('ok'); + if (ok == 'yes') { + $('input[name=has_succ_apply]').val('有'); + } else { + $('input[name=has_succ_apply]').val('没有'); + } + } + var hasDebt_Daik = $('#hasDebt_Daik div.ChangeCK span').hasClass('whet_OK');//----------- 是否有负债(贷款)----------- + if (hasDebt_Daik == true) { + $('#has_debt_loan_tip .whether_right p').text(''); + var whet_OK = $('#hasDebt_Daik div.ChangeCK span.whet_OK'); + var ok = whet_OK.attr('ok'); + if (ok == 'yes') { + var MoneyDebt = $.trim($('#has_money_debt_loan').val()); + if (MoneyDebt.length == 0) { + bool = false; + $('#money_debt_loan_tip').show(); + $('#money_debt_loan_tip .whether_right p').text('不要为空'); + } else { + if (isNaN(MoneyDebt)) { + bool = false; + $('#money_debt_loan_tip').show(); + $('#money_debt_loan_tip .whether_right p').text('亲,要填纯数字呢'); + } + } + $('input[name=has_debt_loan]').val('有'); + $('input[name=debt_loan_money]').val(MoneyDebt); + } else { + $('input[name=has_debt_loan]').val('没有'); + } + } else { + bool = false; + $('#has_debt_loan_tip').show(); + $('#has_debt_loan_tip .whether_right p').text('这里要选择'); + } + return bool; +} +function qiye_appyOneYZ() { + var bool = true; + var companyType = $('#companyType').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 公司类型 ----------- + if (companyType == false) { + bool = false; + $('#companyType').prev('.posi').addClass('redTS'); + } else { + $('input[name=company_type]').val($('#companyType .changeYes').attr('value')); + } + var hasLocalHouse = $('#hasLocalHouse').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 是否有本地商品房 ----------- + if (hasLocalHouse == false) { + bool = false; + $('#hasLocalHouse').prev('.posi').addClass('redTS'); + } else { + $('input[name=has_house]').val($('#hasLocalHouse .changeYes').attr('value')); + } + var monthly = $.trim($('#monthly').val());//----------- 对公加对私流水 ----------- + if (monthly == '如:1万元,输入10000' || monthly.length == 0) { + bool = false; + $('#monthlyTS').show(); + $('#monthlyTS').text('这里别忘了填哦'); + } + if (isNaN(monthly)) { + bool = false; + $('#monthlyTS').show(); + $('#monthlyTS').text('亲,要填纯数字呢'); + } + var BusinessTime = $('#BusinessTime').attr('value'); //----------- 经营年限 ----------- + if (BusinessTime == '') { + bool = false; + $('#BusinessTimeTS').show(); + $('#BusinessTimeTS').text('经营年限,别忘了'); + } else { + $('input[name=business_time]').val($('#BusinessTime').text()); + } + return bool; +} +function gouche_appyOneYZ() { + var bool = true; + var hasLocalHouse = $('#hasLocalHouse').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 是否有本地商品房 ----------- + if (hasLocalHouse == false) { + bool = false; + $('#hasLocalHouse').prev('.posi').addClass('redTS'); + } else { + $('input[name=has_house]').val($('#hasLocalHouse .changeYes').attr('value')); + } + var shopCarPhase = $('#shopCarPhase').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 是否有本地商品房 ----------- + if (shopCarPhase == false) { + bool = false; + $('#shopCarPhase').prev('.posi').addClass('redTS'); + } else { + $('input[name=car_step]').val($('#shopCarPhase .changeYes').attr('value')); + } + var Usermoney = $.trim($('#Usermoney').val());//----------- 打卡工资 ----------- + if (Usermoney == '请输入每月工资,如5000' || Usermoney.length == 0) { + bool = false; + $('#UsermoneyTS').show(); + $('#UsermoneyTS').text('这里别忘了填哦'); + } else if (isNaN(Usermoney)) { + bool = false; + $('#UsermoneyTS').show(); + $('#UsermoneyTS').text('亲,要填纯数字呢'); + } + return bool; +} +function goufang_appyOneYZ() { + var bool = true; + var houseType = $('#houseType').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 房屋类型 ----------- + if (houseType == false) { + bool = false; + $('#houseType').prev('.posi').addClass('redTS'); + } else { + $('input[name=house_type]').val($('#houseType .changeYes').attr('value')); + } + var youLocal = $('#youLocal').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 户籍 ----------- + if (youLocal == false) { + bool = false; + $('#youLocal').prev('.posi').addClass('redTS'); + } else { + $('input[name=hukou]').val($('#youLocal .changeYes').attr('value')); + } + var yesTwoHouse = $('#yesTwoHouse').find('div.changeOp01').children('span').hasClass('changeYes');//----------- 是否二手房 ----------- + if (yesTwoHouse == false) { + bool = false; + $('#yesTwoHouse').prev('.posi').addClass('redTS'); + } else { + $('input[name=has_secondhandhouse]').val($('#yesTwoHouse .changeYes').attr('value')); + } + var Usermoney = $.trim($('#Usermoney').val());//----------- 打卡工资 ----------- + if (Usermoney == '请输入每月工资,如5000' || Usermoney.length == 0) { + bool = false; + $('#UsermoneyTS').show(); + $('#UsermoneyTS').text('这里别忘了填哦'); + } else if (isNaN(Usermoney)) { + bool = false; + $('#UsermoneyTS').show(); + $('#UsermoneyTS').text('亲,要填纯数字呢'); + } + return bool; +} +function moreSearchTC_Con_BtnCK(obj) { + var obj = $(obj); + var btn = obj.children('input'); + btn.trigger('click'); + alert('dd'); +} +function ConditionClick(obj) { + var xindai_type; + var url; + xindai_type = $('#xindai_type').attr('value'); + url = $('#http_url').attr('value'); + var val = $("#xf_JobType").val(); + var reval = $("#xf_JobType option:selected").attr('reval'); + switch (xindai_type) { + case 'xiaofei': + var xf_JobType = $("#xf_JobType option:selected").attr('reval'); + var xf_CreditType = $('#xf_CreditType option:selected').attr('reval'); + var xf_houseType = $('#xf_houseType option:selected').attr('reval'); + url = url + '&profession=' + xf_JobType + '&credit_record=' + xf_CreditType + '&has_house=' + xf_houseType; + break; + case 'qiye': + var qy_JobType = $('#qy_JobType option:selected').attr('reval'); + var qy_CreditType = $('#qy_CreditType option:selected').attr('reval'); + var qy_houseType = $('#qy_houseType option:selected').attr('reval'); + url = url + '&profession=' + qy_JobType + '&credit_record=' + qy_CreditType + '&has_house=' + qy_houseType; + break; + case 'goufang': + var gf_changquanType = $('#gf_changquanType option:selected').attr('reval'); + var gf_shopHouse = $('#gf_shopHouse option:selected').attr('reval'); + var gf_homeType = $('#gf_homeType option:selected').attr('reval'); + url = url + '&house_type=' + gf_changquanType + '&first_suite=' + gf_shopHouse + '&secondhand_house=' + gf_homeType; + break; + case 'gouche': + var gc_houseType = $('#gc_houseType option:selected').attr('reval'); + var gc_carNumber = $('#gc_carNumber option:selected').attr('reval'); + var gc_carUse = $('#gc_carUse option:selected').attr('reval'); + var gc_carType = $('#gc_carType option:selected').attr('reval'); + url = url + '&has_house=' + gc_houseType + '&car_number=' + gc_carNumber + '&car_use=' + gc_carUse + '&car_type=' + gc_carType; + break; + } + window.location.href = url; +} +function XfSearchMonthClick(obj) { + $('#XfSearchMonthUL').toggle(); +} +function XfSearchMoneyClick(obj) { + $('#XfSearchMoneyUL').toggle(); +} +function XfSearchMoneyList(obj) { + var obj = $(obj); + var val = obj.attr('value'); + $('#ShopHsearchMoney').val(val); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function XfSearchMonthList(obj) { + var obj = $(obj); + var value = obj.attr('value'); + var unit = obj.attr('unit'); + var val = obj.attr('val'); + $('#ShopHsearchMonth').val(val); + $('#xfSearchMonthSpan').html(unit); + $('#xfMonthUnit').val(unit); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function QySearchMonthClick(obj) { + $('#QySearchMonthUL').toggle(); +} +function QySearchMoneyClick(obj) { + $('#QySearchMoneyUL').toggle(); +} +function QySearchMoneyList(obj) { + var obj = $(obj); + var val = obj.attr('value'); + $('#CompanyHsearchMoney').val(val); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function QySearchMonthList(obj) { + var obj = $(obj); + var value = obj.attr('value'); + var unit = obj.attr('unit'); + var val = obj.attr('val'); + $('#CompanyHsearchMonth').val(val); + $('#qySearchMonthSpan').html(unit); + $('#qyMonthUnit').val(unit); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function GcSearchMonthClick(obj) { + $('#GcSearchMonthUL').toggle(); +} +function GcSearchMoneyClick(obj) { + $('#GcSearchMoneyUL').toggle(); +} +function GcSearchMoneyList(obj) { + var obj = $(obj); + var val = obj.attr('value'); + $('#CarHsearchMoney').val(val); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function GcSearchMonthList(obj) { + var obj = $(obj); + var value = obj.attr('value'); + var unit = obj.attr('unit'); + var val = obj.attr('val'); + $('#CarHsearchMonth').val(val); + $('#gcSearchMonthSpan').html(unit); + $('#gcMonthUnit').val(unit); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function GfSearchMonthClick(obj) { + $('#GfSearchMonthUL').toggle(); +} +function GfSearchMoneyClick(obj) { + $('#GfSearchMoneyUL').toggle(); +} +function GfSearchMoneyList(obj) { + var obj = $(obj); + var val = obj.attr('value'); + $('#HouseHsearchMoney').val(val); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function GfSearchMonthList(obj) { + var obj = $(obj); + var value = obj.attr('value'); + var unit = obj.attr('unit'); + var val = obj.attr('val'); + $('#HouseHsearchMonth').val(val); + $('#gfSearchMonthSpan').html(unit); + $('#gfMonthUnit').val(unit); + var li = obj.parent().children('li'); + li.removeClass('mo'); + obj.addClass('mo'); +} +function YanzmFoc(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + + if (val == '请输入短信验证码') { + obj.css('color', '#999'); + obj.val(''); + } + obj.css('color', '#333'); +} +function YanzmBlu(obj) { + var obj = $(obj); + var vall = obj.val(); + var val = $.trim(obj.val()); + if (val == '') { + obj.val('请输入短信验证码'); + obj.css('color', '#999'); + } +} +function conditionSel(obj) { + var obj = $(obj); + var showTit = obj.parents('.moreSearchTC_Con_li').children('span.HomeSelect_span'); + var $selectObj = obj.children('option:selected'); + var selectTit = $selectObj.text(); + showTit.text(selectTit); +} +$(document).ready(function() { + var $selectList = $(".mHSearch_select_show"); + + $.each($selectList,function (index, domEle) { + conditionSel(domEle); + }); + }); \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/wappage.js b/source/plugin/dzapp_haodai/images/wap/wappage.js index da3aad1..287c25a 100644 --- a/source/plugin/dzapp_haodai/images/wap/wappage.js +++ b/source/plugin/dzapp_haodai/images/wap/wappage.js @@ -1,10 +1,10 @@ -function PageRotate180(obj){ - obj = $(obj); - var xl3icon = obj.children('span.Conditions_xl'); - var yes180 = xl3icon.hasClass('Conditions_xl180'); - if (yes180 == false) { - xl3icon.addClass('Conditions_xl180'); - } else { - xl3icon.removeClass('Conditions_xl180'); - } +function PageRotate180(obj){ + obj = $(obj); + var xl3icon = obj.children('span.Conditions_xl'); + var yes180 = xl3icon.hasClass('Conditions_xl180'); + if (yes180 == false) { + xl3icon.addClass('Conditions_xl180'); + } else { + xl3icon.removeClass('Conditions_xl180'); + } } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/wap/zuhejsq.js b/source/plugin/dzapp_haodai/images/wap/zuhejsq.js index 4a5b146..5d0501d 100644 --- a/source/plugin/dzapp_haodai/images/wap/zuhejsq.js +++ b/source/plugin/dzapp_haodai/images/wap/zuhejsq.js @@ -1,234 +1,234 @@ -$(document).ready(function() { - $('#sydk_jsbtn').click(function() { - if ($('#business_rate').val() == '' || isNaN($('#business_rate').val())) { - $('#business_rate').val(sydk_lv); - } - var year_lilv = parseFloat($('#business_rate').val()); - var money = parseFloat($('#business_sum').val()); - var month = parseFloat($('#loan_type01').attr('reval')); - var debx_or_debj = $('input:radio[name="pattern_ed"]:checked').val(); - if (debx_or_debj == 'debx') { - debxRun(year_lilv, money, month, 'sydk'); - } else { - debjRun(year_lilv, money, month, 'sydk'); - } - }); - $('#sydk_mj_jsbtn').click(function() { - if ($('#business_rate_mj').val() == '' || isNaN($('#business_rate_mj').val())) { - $('#business_rate_mj').val(sydkmj_lv); - } - var year_lilv = parseFloat($('#business_rate_mj').val()); - var money = parseFloat($('#business_dkje').html()); - var month = parseFloat($('#loan_type04').attr('reval')); - var debx_or_debj = $('input:radio[name="pattern_mj"]:checked').val(); - if (debx_or_debj == 'debx') { - debxRun(year_lilv, money, month, 'sydk'); - } else { - debjRun(year_lilv, money, month, 'sydk'); - } - }); - $('#gjj_btn').click(function() { - if ($('#gjjdk_lv').val() == '' || isNaN($('#gjjdk_lv').val())) { - $('#gjjdk_lv').val(gjjdk_lv); - } - var year_lilv = parseFloat($('#gjjdk_lv').val()); - var money = parseFloat($('#gjj_eds_dkje').val()); - var month = parseFloat($('#loan_type08').attr('reval')); - var debx_or_debj = $('input:radio[name="gongdebx"]:checked').val(); - if (debx_or_debj == 'debx') { - debxRun(year_lilv, money, month, 'gjjdk'); - } else { - debjRun(year_lilv, money, month, 'gjjdk'); - } - }); - $('#zuhe_btn').click(function() { - if ($('#zuhedk_rate').val() == '' || isNaN($('#zuhedk_rate').val())) { - $('#zuhedk_rate').val(zuhedk_lv); - } - var sy_year_lilv = parseFloat($('#zuhedk_rate').val()); - var sy_money = parseFloat($('#zuhesydk').val()); - if ($('#zhgjj_ll').val() == '' || isNaN($('#zhgjj_ll').val())) { - $('#zhgjj_ll').val(zhgjj_ll); - } - var gjj_year_lilv = parseFloat($('#zhgjj_ll').val()); - var gjj_money = parseFloat($('#gjj_eds_dkje').val()); - var money = parseFloat(sy_money + gjj_money); - var month = parseFloat($('#hid_month').val()); - var year_lilv = (sy_money / money * sy_year_lilv) + (gjj_money / money * gjj_year_lilv); - year_lilv = parseFloat(year_lilv).toFixed(5); - var debx_or_debj = $('input:radio[name="zhdeb"]:checked').val(); - if (debx_or_debj == 'debx') { - debxRun(year_lilv, money, month, 'zhdk'); - } else { - debjRun(year_lilv, money, month, 'zhdk'); - } - }); -}); - -function debxRun(year_lilv, money, month, tab) { - var resArr = mydebx(year_lilv, money, month); - var listArr = resArr['list_res']; - var simpArr = resArr['simp_res']; - $('#sydk_yg_text_' + tab).html('每月月供'); - setResdom(simpArr, listArr, tab); -} - -function debjRun(year_lilv, money, month, tab) { - var resArr = mydebj(year_lilv, money, month); - var listArr = resArr['list_res']; - var simpArr = resArr['simp_res']; - $('#sydk_yg_text_' + tab).html('最高月供'); - setResdom(simpArr, listArr, tab); -} - -function mydebx(year_lilv, money, month) { - money = (money * 10000); - var year = month / 12; - var year_1 = (parseInt(year / 5)); - var year_2 = (parseInt(year / 5)); - var active = year_lilv * 10 / 12 * 0.001; - var t1 = Math.pow(1 + active, month); - var t2 = t1 - 1; - var tmp = t1 / t2; - var monthratio = active * tmp; - var monthBack = (money * monthratio).toFixed(2); - year_lilv = year_lilv * 0.01; - var yue_lilv = ((year_lilv / 12)); - var objArray = new Array(); - var ljch_bj = 0; - var pre_sybj = 0; - var i = 1; - for (i = 1; i <= month; i++) { - objArray[i - 1] = new Array(); - objArray[i - 1]['qc'] = i; - objArray[i - 1]['chbx'] = monthBack; - if (i == 1) { - pre_sybj = money; - } else { - pre_sybj = objArray[i - 2]['sybj']; - } - objArray[i - 1]['chlx'] = (pre_sybj * yue_lilv).toFixed(2); - var chbj = (objArray[i - 1]['chbx'] - objArray[i - 1]['chlx']); - objArray[i - 1]['chbj'] = chbj.toFixed(2); - ljch_bj += chbj; - var sybj = (money - ljch_bj); - objArray[i - 1]['sybj'] = sybj.toFixed(2); - if (sybj <= 1) { - objArray[i - 1]['sybj'] = 0.00; - } - } - var yg = monthBack; - var ljhkze = monthBack * month; - var lxze = ljhkze - money; - var yxxdy = monthBack * 2; - var resArray = new Array(); - resArray['simp_res'] = new Array(); - resArray['list_res'] = new Array(); - resArray['simp_res']['yg'] = parseFloat(yg).toFixed(0); - resArray['simp_res']['ljhkze'] = parseFloat(ljhkze).toFixed(0); - resArray['simp_res']['lxze'] = parseFloat(lxze).toFixed(0); - resArray['simp_res']['yxxdy'] = parseFloat(yxxdy).toFixed(0); - resArray['list_res'] = objArray; - return resArray; -} - -function mydebj(year_lilv, money, month) { - money = money * 10000; - var year = month / 12; - var year_1 = (parseInt(year / 5)); - var year_2 = (parseInt(year / 5)); - var active = year_lilv * 10 / 12 * 0.001; - var objArray = new Array(); - var interestM = 0; - var interestTotal = 0; - var chbj = money / month; - for (var i = 1; i <= month; i++) { - var t1 = (money - money * (i - 1) / month) * active; - interestM = money / month + t1; - objArray[i - 1] = new Array(); - objArray[i - 1]['qc'] = i; - objArray[i - 1]['chbx'] = (interestM).toFixed(2); - objArray[i - 1]['chlx'] = (interestM - chbj).toFixed(2); - objArray[i - 1]['chbj'] = (chbj).toFixed(2); - objArray[i - 1]['sybj'] = (money - (chbj * i)).toFixed(2); - if (objArray[i - 1]['sybj'] <= 1) { - objArray[i - 1]['sybj'] = 0.00; - } - interestTotal = interestTotal + interestM; - } - interestTotal = (Math.round(interestTotal * 100)) / 100; - var yg = objArray[0]['chbx']; - var ljhkze = interestTotal; - var lxze = (ljhkze - money); - lxze = lxze.toFixed(0); - var yxxdy = (parseFloat(objArray[0]['chbx']) + parseFloat(objArray[month - 1]['chbx'])); - yxxdy = yxxdy.toFixed(0); - var resArray = new Array(); - resArray['simp_res'] = new Array(); - resArray['list_res'] = new Array(); - resArray['simp_res']['yg'] = parseFloat(yg).toFixed(0); - resArray['simp_res']['ljhkze'] = parseFloat(ljhkze).toFixed(0); - resArray['simp_res']['lxze'] = parseFloat(lxze).toFixed(0); - resArray['simp_res']['yxxdy'] = parseFloat(yxxdy).toFixed(0); - resArray['list_res'] = objArray; - return resArray; -} - -function setResdom(simpArr, listArr, tab) { - $("#" + tab + "_lxze").html(simpArr['lxze']).hide().fadeIn("slow"); - $("#" + tab + "_myyg").html(simpArr['yg']).hide().fadeIn("slow"); - $("#" + tab + "_ljhk").html(simpArr['ljhkze']).hide().fadeIn("slow"); - $("#" + tab + "_yxxdy").html(simpArr['yxxdy']).hide().fadeIn("slow"); - var table_trs = ''; - for (var i = 0; i < listArr.length; i++) { - table_trs += "
    "; - } - $("#hd_tbody_" + tab).html(''); - $("#hd_tbody_" + tab).html(table_trs).hide(); - $("#hd_tbody_" + tab).html(table_trs).fadeIn("slow"); - $("#hd_tbody_sydk tr:odd").css('background-color', '#dce9f1'); - $("#hd_tbody_gjjdk tr:odd").css('background-color', '#dce9f1'); - $("#hd_tbody_zhdk tr:odd").css('background-color', '#dce9f1'); -} -function MQxian(obj) { - var QixianObj = $('[class="SelectCon"]').val(); - $('#hid_month').val(QixianObj); -} -function LoanLV(obj) { - var Loanlvobj = $('[name="lv_type"]').val(); - $('#zuhedk_rate').val(Loanlvobj); -} -function ClearData(obj) { - $('#zuhesydk').attr('value', ''); -} -function AddData(obj) { - if ($('#zuhesydk').val() == '') - $('#zuhesydk').val('100'); -} -function ClearD(obj) { - $('#gjj_eds_dkje').attr('value', ''); -} -function AddD(obj) { - if ($('#gjj_eds_dkje').val() == '') - $('#gjj_eds_dkje').val('50'); -} -function jisyinc(obj) { - var obj = $(obj); - var moe = obj.parents('.prod_box').children('.mat02'); - var moed = obj.parents('.prod_box').children('.mat01'); - moe.show(); - moed.hide(); - $('.backbtn').removeClass('none'); - $('.backbtnn').removeClass('none'); -} -function backHome(obj) { - var obj = $(obj); - var moe = $('.prod_box').children('.mat02'); - var moed = $('.prod_box').children('.mat01'); - moed.show(); - moe.hide(); - $('.backbtn').addClass('none'); - $('.backbtnn').addClass('none'); - $('.Ptop').removeClass('none'); +$(document).ready(function() { + $('#sydk_jsbtn').click(function() { + if ($('#business_rate').val() == '' || isNaN($('#business_rate').val())) { + $('#business_rate').val(sydk_lv); + } + var year_lilv = parseFloat($('#business_rate').val()); + var money = parseFloat($('#business_sum').val()); + var month = parseFloat($('#loan_type01').attr('reval')); + var debx_or_debj = $('input:radio[name="pattern_ed"]:checked').val(); + if (debx_or_debj == 'debx') { + debxRun(year_lilv, money, month, 'sydk'); + } else { + debjRun(year_lilv, money, month, 'sydk'); + } + }); + $('#sydk_mj_jsbtn').click(function() { + if ($('#business_rate_mj').val() == '' || isNaN($('#business_rate_mj').val())) { + $('#business_rate_mj').val(sydkmj_lv); + } + var year_lilv = parseFloat($('#business_rate_mj').val()); + var money = parseFloat($('#business_dkje').html()); + var month = parseFloat($('#loan_type04').attr('reval')); + var debx_or_debj = $('input:radio[name="pattern_mj"]:checked').val(); + if (debx_or_debj == 'debx') { + debxRun(year_lilv, money, month, 'sydk'); + } else { + debjRun(year_lilv, money, month, 'sydk'); + } + }); + $('#gjj_btn').click(function() { + if ($('#gjjdk_lv').val() == '' || isNaN($('#gjjdk_lv').val())) { + $('#gjjdk_lv').val(gjjdk_lv); + } + var year_lilv = parseFloat($('#gjjdk_lv').val()); + var money = parseFloat($('#gjj_eds_dkje').val()); + var month = parseFloat($('#loan_type08').attr('reval')); + var debx_or_debj = $('input:radio[name="gongdebx"]:checked').val(); + if (debx_or_debj == 'debx') { + debxRun(year_lilv, money, month, 'gjjdk'); + } else { + debjRun(year_lilv, money, month, 'gjjdk'); + } + }); + $('#zuhe_btn').click(function() { + if ($('#zuhedk_rate').val() == '' || isNaN($('#zuhedk_rate').val())) { + $('#zuhedk_rate').val(zuhedk_lv); + } + var sy_year_lilv = parseFloat($('#zuhedk_rate').val()); + var sy_money = parseFloat($('#zuhesydk').val()); + if ($('#zhgjj_ll').val() == '' || isNaN($('#zhgjj_ll').val())) { + $('#zhgjj_ll').val(zhgjj_ll); + } + var gjj_year_lilv = parseFloat($('#zhgjj_ll').val()); + var gjj_money = parseFloat($('#gjj_eds_dkje').val()); + var money = parseFloat(sy_money + gjj_money); + var month = parseFloat($('#hid_month').val()); + var year_lilv = (sy_money / money * sy_year_lilv) + (gjj_money / money * gjj_year_lilv); + year_lilv = parseFloat(year_lilv).toFixed(5); + var debx_or_debj = $('input:radio[name="zhdeb"]:checked').val(); + if (debx_or_debj == 'debx') { + debxRun(year_lilv, money, month, 'zhdk'); + } else { + debjRun(year_lilv, money, month, 'zhdk'); + } + }); +}); + +function debxRun(year_lilv, money, month, tab) { + var resArr = mydebx(year_lilv, money, month); + var listArr = resArr['list_res']; + var simpArr = resArr['simp_res']; + $('#sydk_yg_text_' + tab).html('每月月供'); + setResdom(simpArr, listArr, tab); +} + +function debjRun(year_lilv, money, month, tab) { + var resArr = mydebj(year_lilv, money, month); + var listArr = resArr['list_res']; + var simpArr = resArr['simp_res']; + $('#sydk_yg_text_' + tab).html('最高月供'); + setResdom(simpArr, listArr, tab); +} + +function mydebx(year_lilv, money, month) { + money = (money * 10000); + var year = month / 12; + var year_1 = (parseInt(year / 5)); + var year_2 = (parseInt(year / 5)); + var active = year_lilv * 10 / 12 * 0.001; + var t1 = Math.pow(1 + active, month); + var t2 = t1 - 1; + var tmp = t1 / t2; + var monthratio = active * tmp; + var monthBack = (money * monthratio).toFixed(2); + year_lilv = year_lilv * 0.01; + var yue_lilv = ((year_lilv / 12)); + var objArray = new Array(); + var ljch_bj = 0; + var pre_sybj = 0; + var i = 1; + for (i = 1; i <= month; i++) { + objArray[i - 1] = new Array(); + objArray[i - 1]['qc'] = i; + objArray[i - 1]['chbx'] = monthBack; + if (i == 1) { + pre_sybj = money; + } else { + pre_sybj = objArray[i - 2]['sybj']; + } + objArray[i - 1]['chlx'] = (pre_sybj * yue_lilv).toFixed(2); + var chbj = (objArray[i - 1]['chbx'] - objArray[i - 1]['chlx']); + objArray[i - 1]['chbj'] = chbj.toFixed(2); + ljch_bj += chbj; + var sybj = (money - ljch_bj); + objArray[i - 1]['sybj'] = sybj.toFixed(2); + if (sybj <= 1) { + objArray[i - 1]['sybj'] = 0.00; + } + } + var yg = monthBack; + var ljhkze = monthBack * month; + var lxze = ljhkze - money; + var yxxdy = monthBack * 2; + var resArray = new Array(); + resArray['simp_res'] = new Array(); + resArray['list_res'] = new Array(); + resArray['simp_res']['yg'] = parseFloat(yg).toFixed(0); + resArray['simp_res']['ljhkze'] = parseFloat(ljhkze).toFixed(0); + resArray['simp_res']['lxze'] = parseFloat(lxze).toFixed(0); + resArray['simp_res']['yxxdy'] = parseFloat(yxxdy).toFixed(0); + resArray['list_res'] = objArray; + return resArray; +} + +function mydebj(year_lilv, money, month) { + money = money * 10000; + var year = month / 12; + var year_1 = (parseInt(year / 5)); + var year_2 = (parseInt(year / 5)); + var active = year_lilv * 10 / 12 * 0.001; + var objArray = new Array(); + var interestM = 0; + var interestTotal = 0; + var chbj = money / month; + for (var i = 1; i <= month; i++) { + var t1 = (money - money * (i - 1) / month) * active; + interestM = money / month + t1; + objArray[i - 1] = new Array(); + objArray[i - 1]['qc'] = i; + objArray[i - 1]['chbx'] = (interestM).toFixed(2); + objArray[i - 1]['chlx'] = (interestM - chbj).toFixed(2); + objArray[i - 1]['chbj'] = (chbj).toFixed(2); + objArray[i - 1]['sybj'] = (money - (chbj * i)).toFixed(2); + if (objArray[i - 1]['sybj'] <= 1) { + objArray[i - 1]['sybj'] = 0.00; + } + interestTotal = interestTotal + interestM; + } + interestTotal = (Math.round(interestTotal * 100)) / 100; + var yg = objArray[0]['chbx']; + var ljhkze = interestTotal; + var lxze = (ljhkze - money); + lxze = lxze.toFixed(0); + var yxxdy = (parseFloat(objArray[0]['chbx']) + parseFloat(objArray[month - 1]['chbx'])); + yxxdy = yxxdy.toFixed(0); + var resArray = new Array(); + resArray['simp_res'] = new Array(); + resArray['list_res'] = new Array(); + resArray['simp_res']['yg'] = parseFloat(yg).toFixed(0); + resArray['simp_res']['ljhkze'] = parseFloat(ljhkze).toFixed(0); + resArray['simp_res']['lxze'] = parseFloat(lxze).toFixed(0); + resArray['simp_res']['yxxdy'] = parseFloat(yxxdy).toFixed(0); + resArray['list_res'] = objArray; + return resArray; +} + +function setResdom(simpArr, listArr, tab) { + $("#" + tab + "_lxze").html(simpArr['lxze']).hide().fadeIn("slow"); + $("#" + tab + "_myyg").html(simpArr['yg']).hide().fadeIn("slow"); + $("#" + tab + "_ljhk").html(simpArr['ljhkze']).hide().fadeIn("slow"); + $("#" + tab + "_yxxdy").html(simpArr['yxxdy']).hide().fadeIn("slow"); + var table_trs = ''; + for (var i = 0; i < listArr.length; i++) { + table_trs += ""; + } + $("#hd_tbody_" + tab).html(''); + $("#hd_tbody_" + tab).html(table_trs).hide(); + $("#hd_tbody_" + tab).html(table_trs).fadeIn("slow"); + $("#hd_tbody_sydk tr:odd").css('background-color', '#dce9f1'); + $("#hd_tbody_gjjdk tr:odd").css('background-color', '#dce9f1'); + $("#hd_tbody_zhdk tr:odd").css('background-color', '#dce9f1'); +} +function MQxian(obj) { + var QixianObj = $('[class="SelectCon"]').val(); + $('#hid_month').val(QixianObj); +} +function LoanLV(obj) { + var Loanlvobj = $('[name="lv_type"]').val(); + $('#zuhedk_rate').val(Loanlvobj); +} +function ClearData(obj) { + $('#zuhesydk').attr('value', ''); +} +function AddData(obj) { + if ($('#zuhesydk').val() == '') + $('#zuhesydk').val('100'); +} +function ClearD(obj) { + $('#gjj_eds_dkje').attr('value', ''); +} +function AddD(obj) { + if ($('#gjj_eds_dkje').val() == '') + $('#gjj_eds_dkje').val('50'); +} +function jisyinc(obj) { + var obj = $(obj); + var moe = obj.parents('.prod_box').children('.mat02'); + var moed = obj.parents('.prod_box').children('.mat01'); + moe.show(); + moed.hide(); + $('.backbtn').removeClass('none'); + $('.backbtnn').removeClass('none'); +} +function backHome(obj) { + var obj = $(obj); + var moe = $('.prod_box').children('.mat02'); + var moed = $('.prod_box').children('.mat01'); + moed.show(); + moe.hide(); + $('.backbtn').addClass('none'); + $('.backbtnn').addClass('none'); + $('.Ptop').removeClass('none'); } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/images/xindai.js b/source/plugin/dzapp_haodai/images/xindai.js index 07eef80..eca5a30 100644 --- a/source/plugin/dzapp_haodai/images/xindai.js +++ b/source/plugin/dzapp_haodai/images/xindai.js @@ -1,307 +1,307 @@ - - -var jq=jQuery.noConflict(); - - - -function moneyFocus(obj) { - - var obj = jq(obj); - - var val = obj.val(); - - var reval = obj.attr('reval'); - - jq('#money_u').show(); - - obj.val(reval); - - -} - -function moenySelect(obj) { - - var obj = jq(obj); - - var val = obj.html(); - - var reval = obj.attr('reval'); - - if (val == '其他') { - - jq('#money').attr('reval', ''); - - jq('#money').val(''); - - jq('#money').attr('class', 'sinp'); - - jq('#money').focus(); - - } else { - - jq('#money').attr('reval', reval); - - jq('#money').val(val); - - jq('#money').attr('class', 'sinp'); - - } - - var money_u = jq('#money_u'); - - var status = money_u.css('display'); - - if (status == 'none') { - - jq('#money_u').show(); - - } else { - - jq('#money_u').hide(); - - } - -} - -function setList(dom) { - - if (jq(dom).attr('s') == '0') { - - closeList(); - - jq(dom).attr('s', '1'); - - jq(dom).css('display', 'block'); - - } else { - - closeList(); - - } - -} - -function closeList() { - - jq('.xiala').attr('s', 0); - - jq('.xiala').css('display', 'none'); - -} - - - -function td_click(id) { - - var link = jq('#detail_' + id).attr('href'); - - window.open(link); - -} - - - -function moneyKeyup(obj) { - - var obj = jq(obj); - - var val = obj.val(); - - if (val == '' || val == '0') { - - return false; - - } - - var html = '
  • ' + val + ' 万元
  • '; - - if (val < 100) { - - var temp_val = val * 10; - - html += '
  • ' + temp_val + ' 万元
  • '; - - } - - if (val < 10) { - - var temp_val = (val * 10 * 10); - - html += '
  • ' + temp_val + ' 万元
  • '; - - } - - jq('#money_u').html(html); - -} - -function moneyBlur(obj) { - - var obj = jq(obj); //#money - - - var moeny_val = jq('#money').val(); - - - - - - - var sel = jq('#money_u li a'); - - var val = moeny_val + ' 万元'; - - jq('#money').attr('reval', moeny_val); - - jq('#money').val(val); - - jq('#money').attr('class', 'sinp'); - -} - -function hideMoneyu() { - - jq('#money_u').hide(); - - var dom = jq('#money_u'); - - var status = dom.css('display'); - - if (status == 'none') { - - dom.show(); - - } else { - - dom.hide(); - - } - -} - - - - -function xdErr(isdom){ - - var qxv=jq.trim(isdom.val()); - - var qts=isdom.siblings(".xd_erro"); - - if (qxv == '') { - - qts.css("display", "table"); - - qts.text('不能为空'); - - bool_month = false; - - } else if (qxv.length > 0) { - - if (!isNaN(qxv)) { - - qts.css("display", "none"); - - isdom.css('color', 'grey'); - - bool_month = true; - - } else { - - qts.css("display", "table"); - - qts.css('color', 'red'); - - isdom.css('color', 'red'); - - qts.text('只限输入数字'); - - bool_month = false; - - } - - } - -} - - - - - -function xdErrCK(isdom) { - - var ipt = isdom; - - var qts=isdom.siblings(".xd_erro"); - - qts.css("display", "none"); - - ipt.val(''); - - ipt.css('color', '#333'); - -} - - - - - - - - - -function HideShow(obj) { - - var obj = jq(obj); - - var dom = obj.find('.ceng'); - - var status = dom.css('display'); - - if (status == 'none') { - - dom.show(); - - } else { - - dom.hide(); - - } - -} - - - -function money_month_index(ourl) { - - var type_id = jq('#type_id').attr('reval'); - - var money = jq('#money').attr('reval'); - - var month = jq('#month').attr('reval'); - - var fixed_url = '&money=' + money + '&month=' + month; - - var url = ourl + fixed_url; - - if (type_id == '1') { - - var rurl = url + '&xd_type=xiaofei'; - - }else if(type_id == '2'){ - - var rurl = url + '&xd_type=qiye'; - - }else if(type_id == '3'){ - - var rurl = url + '&xd_type=gouche'; - - }else if(type_id == '4'){ - - var rurl = url + '&xd_type=goufang'; - - } - - window.location.href=rurl; - + + +var jq=jQuery.noConflict(); + + + +function moneyFocus(obj) { + + var obj = jq(obj); + + var val = obj.val(); + + var reval = obj.attr('reval'); + + jq('#money_u').show(); + + obj.val(reval); + + +} + +function moenySelect(obj) { + + var obj = jq(obj); + + var val = obj.html(); + + var reval = obj.attr('reval'); + + if (val == '其他') { + + jq('#money').attr('reval', ''); + + jq('#money').val(''); + + jq('#money').attr('class', 'sinp'); + + jq('#money').focus(); + + } else { + + jq('#money').attr('reval', reval); + + jq('#money').val(val); + + jq('#money').attr('class', 'sinp'); + + } + + var money_u = jq('#money_u'); + + var status = money_u.css('display'); + + if (status == 'none') { + + jq('#money_u').show(); + + } else { + + jq('#money_u').hide(); + + } + +} + +function setList(dom) { + + if (jq(dom).attr('s') == '0') { + + closeList(); + + jq(dom).attr('s', '1'); + + jq(dom).css('display', 'block'); + + } else { + + closeList(); + + } + +} + +function closeList() { + + jq('.xiala').attr('s', 0); + + jq('.xiala').css('display', 'none'); + +} + + + +function td_click(id) { + + var link = jq('#detail_' + id).attr('href'); + + window.open(link); + +} + + + +function moneyKeyup(obj) { + + var obj = jq(obj); + + var val = obj.val(); + + if (val == '' || val == '0') { + + return false; + + } + + var html = '
  • ' + val + ' 万元
  • '; + + if (val < 100) { + + var temp_val = val * 10; + + html += '
  • ' + temp_val + ' 万元
  • '; + + } + + if (val < 10) { + + var temp_val = (val * 10 * 10); + + html += '
  • ' + temp_val + ' 万元
  • '; + + } + + jq('#money_u').html(html); + +} + +function moneyBlur(obj) { + + var obj = jq(obj); //#money + + + var moeny_val = jq('#money').val(); + + + + + + + var sel = jq('#money_u li a'); + + var val = moeny_val + ' 万元'; + + jq('#money').attr('reval', moeny_val); + + jq('#money').val(val); + + jq('#money').attr('class', 'sinp'); + +} + +function hideMoneyu() { + + jq('#money_u').hide(); + + var dom = jq('#money_u'); + + var status = dom.css('display'); + + if (status == 'none') { + + dom.show(); + + } else { + + dom.hide(); + + } + +} + + + + +function xdErr(isdom){ + + var qxv=jq.trim(isdom.val()); + + var qts=isdom.siblings(".xd_erro"); + + if (qxv == '') { + + qts.css("display", "table"); + + qts.text('不能为空'); + + bool_month = false; + + } else if (qxv.length > 0) { + + if (!isNaN(qxv)) { + + qts.css("display", "none"); + + isdom.css('color', 'grey'); + + bool_month = true; + + } else { + + qts.css("display", "table"); + + qts.css('color', 'red'); + + isdom.css('color', 'red'); + + qts.text('只限输入数字'); + + bool_month = false; + + } + + } + +} + + + + + +function xdErrCK(isdom) { + + var ipt = isdom; + + var qts=isdom.siblings(".xd_erro"); + + qts.css("display", "none"); + + ipt.val(''); + + ipt.css('color', '#333'); + +} + + + + + + + + + +function HideShow(obj) { + + var obj = jq(obj); + + var dom = obj.find('.ceng'); + + var status = dom.css('display'); + + if (status == 'none') { + + dom.show(); + + } else { + + dom.hide(); + + } + +} + + + +function money_month_index(ourl) { + + var type_id = jq('#type_id').attr('reval'); + + var money = jq('#money').attr('reval'); + + var month = jq('#month').attr('reval'); + + var fixed_url = '&money=' + money + '&month=' + month; + + var url = ourl + fixed_url; + + if (type_id == '1') { + + var rurl = url + '&xd_type=xiaofei'; + + }else if(type_id == '2'){ + + var rurl = url + '&xd_type=qiye'; + + }else if(type_id == '3'){ + + var rurl = url + '&xd_type=gouche'; + + }else if(type_id == '4'){ + + var rurl = url + '&xd_type=goufang'; + + } + + window.location.href=rurl; + } \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/install.php b/source/plugin/dzapp_haodai/install.php index b5157c4..a164484 100644 --- a/source/plugin/dzapp_haodai/install.php +++ b/source/plugin/dzapp_haodai/install.php @@ -1,148 +1,151 @@ - - * @LastModTime 2013/11/22 15:44 - */ - - -if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) exit('Access Denied!'); -$request_url = str_replace('&step='.$_GET['step'],'',$_SERVER['QUERY_STRING']); -$form_url = str_replace('action=','',$request_url); -showsubmenusteps($installlang['title'], array( - array($installlang['choose'], $_GET['step']==''), - array($installlang['reg'], $_GET['step']=='install'), - array($installlang['succeed'], $_GET['step']=='ok') -)); -switch($_GET['step']){ - default: - C::t('common_plugin')->update($_GET['pluginid'], array('available' => '1')); - updatecache(array('plugin', 'setting', 'styles')); - if(stripos($_G['siteurl'], "http://localhost") !== FALSE || stripos($_G['siteurl'], "http://127.0.0.1") !== FALSE) cpmsg($installlang['local_ban'], '', 'error'); - cpmsg($installlang['ifreg'], "{$request_url}&step=install&modetype=1", 'form', array(), '', TRUE, $_G['siteurl']."admin.php?{$request_url}&step=install&modetype=2"); - case 'install': - if(extension_loaded('curl')){ - if($_GET['modetype'] == '1'){ - if(!submitcheck('submit')){ - showtips($installlang['hd_tip1']); - showformheader("{$form_url}&step=install&modetype=1"); - showtableheader($installlang['reg_header']); - showsetting($installlang['email'], 'email', $_G['setting']['adminemail'], 'text', '', '', $installlang['must_fill'].$installlang['email_summary']); - showsetting($installlang['password'], 'passwd', '', 'password', '', '', $installlang['must_fill'].$installlang['password_summary']); - showsetting($installlang['repassword'], 'repasswd', '', 'password', '', '', $installlang['must_fill']); - showsetting($installlang['nickname'], 'nickname', '', 'text', '', '', $installlang['must_fill']); - showsetting($installlang['contact_name'], 'realname', '', 'text', '', '', $installlang['must_fill'].$installlang['contact_name_summary']); - showsetting($installlang['contact_tel'], 'tel', '', 'text', '', '', $installlang['must_fill'].$installlang['contact_tel_summary']); - showsetting('QQ', 'qq', '', 'text', '', '', $installlang['must_fill'].$installlang['qq_summary']); - showsubmit('submit', 'submit'); - showtablefooter(); - showformfooter(); - }else{ - if(!$_GET['email'] || !$_GET['passwd'] || !$_GET['repasswd'] || !$_GET['nickname'] || !$_GET['realname'] || !$_GET['tel'] || !$_GET['qq']) cpmsg($installlang['not_fill'], '', 'error'); - if($_GET['passwd'] !== $_GET['repasswd']) cpmsg($installlang['psw_not_match'], '', 'error'); - define('HD_API_HOST', 'http://api.haodai.com/'); - include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; - $client = new HaoDaiClient('1000002', 'sLXuof1JgsqxssYSkJVXqci4MNHftaxB'); - $client->set_debug(0); - $config = array(); - $data = array( - 'email' => diconv($_GET['email'], CHARSET, 'UTF-8'), - 'tel' => $_GET['tel'], - 'nickname' => diconv($_GET['nickname'], CHARSET, 'UTF-8'), - 'passwd' => diconv($_GET['passwd'], CHARSET, 'UTF-8'), - 'realname' => diconv($_GET['realname'], CHARSET, 'UTF-8'), - 'qq' => $_GET['qq'], - 'domain' => $_G['siteurl'], - 'sitename' => diconv($_G['setting']['sitename'], CHARSET, 'UTF-8') - ); - $result = $client->register_union_account($data); - if($result['rs_code'] != '1000'){ - cpmsg($installlang['errmsg']."
    ".diconv($result['rs_msg'], 'UTF-8', CHARSET), '', 'error'); - } - $config['HD_REF'] = $result['hd_ref']; - define('HD_REF', $config['HD_REF']); - $client = new HaoDaiClient('1000002', 'sLXuof1JgsqxssYSkJVXqci4MNHftaxB'); - $client->set_debug(0); - $data = array( - 'app_name' => diconv($_G['setting']['sitename'].' '.dgmdate($_G['timestamp'], 'Y-m-d-H:i'), CHARSET, 'UTF-8'), - 'site_url' => $_G['siteurl'], - 'desc' => diconv($_G['setting']['sitename'].$installlang['hd_desc'], CHARSET, 'UTF-8'), - 'callback_url' => $_G['siteurl'].'plugin.php?id=dzapp_haodai:callback', - ); - $result = $client->haodai_app_register($data); - if($result['rs_code'] != '1000'){ - cpmsg($installlang['errmsg']."
    ".diconv($result['rs_msg'], 'UTF-8', CHARSET), '', 'error'); - }else{ - $config['HD_AKEY'] = $result['hd_akey']; - $config['HD_SKEY'] = $result['hd_skey']; - $config['HD_CALLBACK_URL'] = $result['hd_callback_url']; - $config['HD_API_HOST'] = 'http://api.haodai.com/'; - $configfile = " $value){ - $configfile .= "define('$key', '$value');\r\n"; - } - $configfile .= "?>"; - $file = DISCUZ_ROOT."./data/dzapp_haodai_config.php"; - $fp = fopen($file, 'w'); - fwrite($fp, $configfile); - fclose($fp); - cpmsg($installlang['install_succeed'], "{$request_url}&step=ok", 'loading', ''); - } - } - }elseif($_GET['modetype'] == '2'){ - if(!submitcheck('submit')){ - showtips($installlang['hd_tip2']); - showformheader("{$form_url}&step=install&modetype=2"); - showtableheader($installlang['reg_header2']); - showsetting($installlang['ref'], 'ref', '', 'text', '', '', $installlang['must_fill'].$installlang['ref_summary']); - showsubmit('submit', 'submit'); - showtablefooter(); - showformfooter(); - }else{ - if(!$_GET['ref']) cpmsg($installlang['not_fill'], '', 'error'); - define('HD_API_HOST', 'http://api.haodai.com/'); - define('HD_REF', $_GET['ref']); - include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; - $client = new HaoDaiClient('1000002', 'sLXuof1JgsqxssYSkJVXqci4MNHftaxB'); - $client->set_debug(0); - $config = array(); - $config['HD_REF'] = $_GET['ref']; - $data = array( - 'app_name' => diconv($_G['setting']['sitename'].' '.dgmdate($_G['timestamp'], 'Y-m-d-H:i'), CHARSET, 'UTF-8'), - 'site_url' => $_G['siteurl'], - 'desc' => diconv($_G['setting']['sitename'].$installlang['hd_desc'], CHARSET, 'UTF-8'), - 'callback_url' => $_G['siteurl'].'plugin.php?id=dzapp_haodai:callback', - ); - $result = $client->haodai_app_register($data); - if($result['rs_code'] != '1000'){ - cpmsg($installlang['errmsg']."
    ".diconv($result['rs_msg'], 'UTF-8', CHARSET), '', 'error'); - }else{ - $config['HD_AKEY'] = $result['hd_akey']; - $config['HD_SKEY'] = $result['hd_skey']; - $config['HD_CALLBACK_URL'] = $result['hd_callback_url']; - $config['HD_API_HOST'] = 'http://api.haodai.com/'; - $config['HD_CITY'] = ''; - $configfile = " $value){ - $configfile .= "define('$key', '$value');\r\n"; - } - $configfile .= "?>"; - $file = DISCUZ_ROOT."./data/dzapp_haodai_config.php"; - $fp = fopen($file, 'w'); - fwrite($fp, $configfile); - fclose($fp); - cpmsg($installlang['install_succeed'], "{$request_url}&step=ok", 'loading', ''); - } - } - } - }else{ - cpmsg($installlang['curl_unsupported'], '', 'error'); - } - break; - case 'ok': - $finish = TRUE; - break; -} + + * @LastModTime 2013/11/22 15:44 + */ + + +if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) exit('Access Denied!'); + +$request_url = str_replace('&step='.$_GET['step'],'',$_SERVER['QUERY_STRING']); +$form_url = str_replace('action=','',$request_url); +showsubmenusteps($installlang['title'], array( + array($installlang['choose'], $_GET['step']==''), + array($installlang['reg'], $_GET['step']=='install'), + array($installlang['succeed'], $_GET['step']=='ok') +)); +switch($_GET['step']){ + default: + C::t('common_plugin')->update($_GET['pluginid'], array('available' => '1')); + updatecache(array('plugin', 'setting', 'styles')); + if(stripos($_G['siteurl'], "http://localhost") !== FALSE || stripos($_G['siteurl'], "http://127.0.0.1") !== FALSE) cpmsg($installlang['local_ban'], '', 'error'); + cpmsg($installlang['ifreg'], "{$request_url}&step=install&modetype=1", 'form', array(), '', TRUE, $_G['siteurl']."admin.php?{$request_url}&step=install&modetype=2"); + case 'install': + if(extension_loaded('curl')){ + if($_GET['modetype'] == '1'){ + if(!submitcheck('submit')){ + showtips($installlang['hd_tip1']); + showformheader("{$form_url}&step=install&modetype=1"); + showtableheader($installlang['reg_header']); + showsetting($installlang['email'], 'email', $_G['setting']['adminemail'], 'text', '', '', $installlang['must_fill'].$installlang['email_summary']); + showsetting($installlang['password'], 'passwd', '', 'password', '', '', $installlang['must_fill'].$installlang['password_summary']); + showsetting($installlang['repassword'], 'repasswd', '', 'password', '', '', $installlang['must_fill']); + showsetting($installlang['nickname'], 'nickname', '', 'text', '', '', $installlang['must_fill']); + showsetting($installlang['contact_name'], 'realname', '', 'text', '', '', $installlang['must_fill'].$installlang['contact_name_summary']); + showsetting($installlang['contact_tel'], 'tel', '', 'text', '', '', $installlang['must_fill'].$installlang['contact_tel_summary']); + showsetting('QQ', 'qq', '', 'text', '', '', $installlang['must_fill'].$installlang['qq_summary']); + showsubmit('submit', 'submit'); + showtablefooter(); + showformfooter(); + }else{ + if(!$_GET['email'] || !$_GET['passwd'] || !$_GET['repasswd'] || !$_GET['nickname'] || !$_GET['realname'] || !$_GET['tel'] || !$_GET['qq']) cpmsg($installlang['not_fill'], '', 'error'); + if($_GET['passwd'] !== $_GET['repasswd']) cpmsg($installlang['psw_not_match'], '', 'error'); + define('HD_API_HOST', 'http://api.haodai.com/'); + include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; + $client = new HaoDaiClient('1000002', 'sLXuof1JgsqxssYSkJVXqci4MNHftaxB'); + $client->set_debug(0); + $config = array(); + $data = array( + 'email' => diconv($_GET['email'], CHARSET, 'UTF-8'), + 'tel' => $_GET['tel'], + 'nickname' => diconv($_GET['nickname'], CHARSET, 'UTF-8'), + 'passwd' => diconv($_GET['passwd'], CHARSET, 'UTF-8'), + 'realname' => diconv($_GET['realname'], CHARSET, 'UTF-8'), + 'qq' => $_GET['qq'], + 'domain' => $_G['siteurl'], + 'sitename' => diconv($_G['setting']['sitename'], CHARSET, 'UTF-8') + ); + $result = $client->register_union_account($data); + if($result['rs_code'] != '1000'){ + cpmsg($installlang['errmsg']."
    ".diconv($result['rs_msg'], 'UTF-8', CHARSET), '', 'error'); + } + $config['HD_REF'] = $result['hd_ref']; + define('HD_REF', $config['HD_REF']); + $client = new HaoDaiClient('1000002', 'sLXuof1JgsqxssYSkJVXqci4MNHftaxB'); + $client->set_debug(0); + $data = array( + 'app_name' => diconv($_G['setting']['sitename'].' '.dgmdate($_G['timestamp'], 'Y-m-d-H:i'), CHARSET, 'UTF-8'), + 'site_url' => $_G['siteurl'], + 'desc' => diconv($_G['setting']['sitename'].$installlang['hd_desc'], CHARSET, 'UTF-8'), + 'callback_url' => $_G['siteurl'].'plugin.php?id=dzapp_haodai:callback', + ); + $result = $client->haodai_app_register($data); + if($result['rs_code'] != '1000'){ + cpmsg($installlang['errmsg']."
    ".diconv($result['rs_msg'], 'UTF-8', CHARSET), '', 'error'); + }else{ + $config['HD_AKEY'] = $result['hd_akey']; + $config['HD_SKEY'] = $result['hd_skey']; + $config['HD_CALLBACK_URL'] = $result['hd_callback_url']; + $config['HD_API_HOST'] = 'http://api.haodai.com/'; + $config = daddslashes($config); + $configfile = " $value){ + $configfile .= "define('$key', '$value');\r\n"; + } + $configfile .= "?>"; + $file = DISCUZ_ROOT."./data/dzapp_haodai_config.php"; + $fp = fopen($file, 'w'); + fwrite($fp, $configfile); + fclose($fp); + cpmsg($installlang['install_succeed'], "{$request_url}&step=ok", 'loading', ''); + } + } + }elseif($_GET['modetype'] == '2'){ + if(!submitcheck('submit')){ + showtips($installlang['hd_tip2']); + showformheader("{$form_url}&step=install&modetype=2"); + showtableheader($installlang['reg_header2']); + showsetting($installlang['ref'], 'ref', '', 'text', '', '', $installlang['must_fill'].$installlang['ref_summary']); + showsubmit('submit', 'submit'); + showtablefooter(); + showformfooter(); + }else{ + if(!$_GET['ref']) cpmsg($installlang['not_fill'], '', 'error'); + define('HD_API_HOST', 'http://api.haodai.com/'); + define('HD_REF', $_GET['ref']); + include_once DISCUZ_ROOT.'./source/plugin/dzapp_haodai/haodai.api.class.php'; + $client = new HaoDaiClient('1000002', 'sLXuof1JgsqxssYSkJVXqci4MNHftaxB'); + $client->set_debug(0); + $config = array(); + $config['HD_REF'] = $_GET['ref']; + $data = array( + 'app_name' => diconv($_G['setting']['sitename'].' '.dgmdate($_G['timestamp'], 'Y-m-d-H:i'), CHARSET, 'UTF-8'), + 'site_url' => $_G['siteurl'], + 'desc' => diconv($_G['setting']['sitename'].$installlang['hd_desc'], CHARSET, 'UTF-8'), + 'callback_url' => $_G['siteurl'].'plugin.php?id=dzapp_haodai:callback', + ); + $result = $client->haodai_app_register($data); + if($result['rs_code'] != '1000'){ + cpmsg($installlang['errmsg']."
    ".diconv($result['rs_msg'], 'UTF-8', CHARSET), '', 'error'); + }else{ + $config['HD_AKEY'] = $result['hd_akey']; + $config['HD_SKEY'] = $result['hd_skey']; + $config['HD_CALLBACK_URL'] = $result['hd_callback_url']; + $config['HD_API_HOST'] = 'http://api.haodai.com/'; + $config['HD_CITY'] = ''; + $config = daddslashes($config); + $configfile = " $value){ + $configfile .= "define('$key', '$value');\r\n"; + } + $configfile .= "?>"; + $file = DISCUZ_ROOT."./data/dzapp_haodai_config.php"; + $fp = fopen($file, 'w'); + fwrite($fp, $configfile); + fclose($fp); + cpmsg($installlang['install_succeed'], "{$request_url}&step=ok", 'loading', ''); + } + } + } + }else{ + cpmsg($installlang['curl_unsupported'], '', 'error'); + } + break; + case 'ok': + $finish = TRUE; + break; +} ?> \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/apply.htm b/source/plugin/dzapp_haodai/template/apply.htm index a52e39c..7805140 100644 --- a/source/plugin/dzapp_haodai/template/apply.htm +++ b/source/plugin/dzapp_haodai/template/apply.htm @@ -1,393 +1,46 @@ - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:apply_htm_2} -
    - -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:apply_htm_3}

    -
    -
    -
    - - - - - -
    " + listArr[i]['qc'] + "" + listArr[i]['chbx'] + "" + listArr[i]['chlx'] + - "" + listArr[i]['chbj'] + "" + listArr[i]['sybj'] + "
    " + listArr[i]['qc'] + "" + listArr[i]['chbx'] + "" + listArr[i]['chlx'] + + "" + listArr[i]['chbj'] + "" + listArr[i]['sybj'] + "
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:apply_htm_4} - {lang dzapp_haodai:apply_htm_5}: {$xd[bank_name]} | {$xd[name]}
    - {lang dzapp_haodai:apply_htm_6}: {$_GET[money]} {lang dzapp_haodai:apply_htm_7}
    - {lang dzapp_haodai:apply_htm_8}: {$_GET[month]} {lang dzapp_haodai:apply_htm_9}
    -
    1.{lang dzapp_haodai:apply_htm_10}
    {lang dzapp_haodai:apply_htm_11} * - -
    {lang dzapp_haodai:apply_htm_37} * -   {lang dzapp_haodai:apply_htm_39} -
    {lang dzapp_haodai:apply_htm_141} * -    -
    {lang dzapp_haodai:apply_htm_47} * -    -
    2.{lang dzapp_haodai:apply_htm_52}
    {lang dzapp_haodai:apply_htm_53} * - -
    {lang dzapp_haodai:apply_htm_55} * - -
    {lang dzapp_haodai:apply_htm_57}    - -
    3.{lang dzapp_haodai:apply_htm_60}({lang dzapp_haodai:apply_htm_61})
    {lang dzapp_haodai:apply_htm_62}
    {lang dzapp_haodai:apply_htm_63}
    {lang dzapp_haodai:apply_htm_64}({lang dzapp_haodai:apply_htm_65}) - -
    1.{lang dzapp_haodai:apply_htm_10}
    {lang dzapp_haodai:apply_htm_68} * -

    -
    {lang dzapp_haodai:apply_htm_85} * -

    -
    {lang dzapp_haodai:apply_htm_133} * -   {lang dzapp_haodai:apply_htm_39} -
    2.{lang dzapp_haodai:apply_htm_52}
    {lang dzapp_haodai:apply_htm_53} * - -
    {lang dzapp_haodai:apply_htm_55} * - -
    {lang dzapp_haodai:apply_htm_57}    - -
    3.{lang dzapp_haodai:apply_htm_60}({lang dzapp_haodai:apply_htm_61})
    {lang dzapp_haodai:apply_htm_62}
    {lang dzapp_haodai:apply_htm_108}
    {lang dzapp_haodai:apply_htm_64}({lang dzapp_haodai:apply_htm_65}) - -
    1.{lang dzapp_haodai:apply_htm_10}
    {lang dzapp_haodai:apply_htm_113} * - -
    {lang dzapp_haodai:apply_htm_133} * -   {lang dzapp_haodai:apply_htm_39} -
    {lang dzapp_haodai:apply_htm_68} * -
    -
    {lang dzapp_haodai:mobile_70} * - -
    2.{lang dzapp_haodai:apply_htm_52}
    {lang dzapp_haodai:apply_htm_53} * - -
    {lang dzapp_haodai:apply_htm_55} * - -
    {lang dzapp_haodai:apply_htm_57}    - -
    3.{lang dzapp_haodai:apply_htm_60}({lang dzapp_haodai:apply_htm_61})
    {lang dzapp_haodai:apply_htm_62}
    {lang dzapp_haodai:apply_htm_157}/{lang dzapp_haodai:apply_htm_158}
    {lang dzapp_haodai:apply_htm_64}({lang dzapp_haodai:apply_htm_65}) - -
    1.{lang dzapp_haodai:apply_htm_162}
    {lang dzapp_haodai:apply_htm_113} * - -
    {lang dzapp_haodai:apply_htm_183} * - -
    {lang dzapp_haodai:apply_htm_185} * -

    -
    {lang dzapp_haodai:apply_htm_37} * -   {lang dzapp_haodai:apply_htm_39} -
    {lang dzapp_haodai:apply_htm_195} * -  {lang dzapp_haodai:apply_htm_197}   {lang dzapp_haodai:apply_htm_199} -
    2.{lang dzapp_haodai:apply_htm_200}
    {lang dzapp_haodai:apply_htm_201} * -    -
    {lang dzapp_haodai:apply_htm_212} * -    -
    {lang dzapp_haodai:apply_htm_220} * -    -
    {lang dzapp_haodai:apply_htm_225} * -    -
    3.{lang dzapp_haodai:apply_htm_52}
    {lang dzapp_haodai:apply_htm_53} * - -
    {lang dzapp_haodai:apply_htm_55} * - -
    {lang dzapp_haodai:apply_htm_57}    - -
    4.{lang dzapp_haodai:apply_htm_60}({lang dzapp_haodai:apply_htm_61})
    {lang dzapp_haodai:apply_htm_62}
    {lang dzapp_haodai:apply_htm_244}
    {lang dzapp_haodai:apply_htm_64}({lang dzapp_haodai:apply_htm_65}) - -
    {lang dzapp_haodai:apply_htm_248}

    {lang dzapp_haodai:apply_htm_249}
    {lang dzapp_haodai:apply_htm_250}400-8055-855
    - - - - - - \ No newline at end of file + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:apply_htm_2} +
    + +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:apply_htm_3}

    +
    +
    + + + + + + + + + + + + + +
    + +
    {lang dzapp_haodai:apply_htm_248}

    {lang dzapp_haodai:apply_htm_249}
    {lang dzapp_haodai:apply_htm_250}400-8055-855
    +
    +
    +
    +
    + diff --git a/source/plugin/dzapp_haodai/template/calc_chedai.htm b/source/plugin/dzapp_haodai/template/calc_chedai.htm index 74ce623..d4cca31 100644 --- a/source/plugin/dzapp_haodai/template/calc_chedai.htm +++ b/source/plugin/dzapp_haodai/template/calc_chedai.htm @@ -1,140 +1,140 @@ - - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    - {lang dzapp_haodai:calc_chedai_htm_11} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    - -
    - {lang dzapp_haodai:calc_chedai_htm_22} - - % - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - -
    -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:calc_chedai_htm_25}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_chedai_htm_27}:0{lang dzapp_haodai:apply_htm_39}
    {lang dzapp_haodai:calc_chedai_htm_29}:0{lang dzapp_haodai:apply_htm_9}
    {lang dzapp_haodai:calc_chedai_htm_11}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_chedai_htm_33}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_chedai_htm_35}:0{lang dzapp_haodai:apply_htm_7}
    - -
    -
    {lang dzapp_haodai:calc_chedai_htm_37}
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}

    - -
    -
    -
    -
    -
    -
    + + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + {lang dzapp_haodai:calc_chedai_htm_11} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    + +
    + {lang dzapp_haodai:calc_chedai_htm_22} + + % + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:calc_chedai_htm_25}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_chedai_htm_27}:0{lang dzapp_haodai:apply_htm_39}
    {lang dzapp_haodai:calc_chedai_htm_29}:0{lang dzapp_haodai:apply_htm_9}
    {lang dzapp_haodai:calc_chedai_htm_11}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_chedai_htm_33}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_chedai_htm_35}:0{lang dzapp_haodai:apply_htm_7}
    + +
    +
    {lang dzapp_haodai:calc_chedai_htm_37}
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}

    + +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/calc_debj.htm b/source/plugin/dzapp_haodai/template/calc_debj.htm index e136906..ffe697c 100644 --- a/source/plugin/dzapp_haodai/template/calc_debj.htm +++ b/source/plugin/dzapp_haodai/template/calc_debj.htm @@ -1,181 +1,181 @@ - - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} -
    - -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - {lang dzapp_haodai:calc_debj_htm_11} - - -
    -
    - {lang dzapp_haodai:calc_debj_htm_14} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_17} - - {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_21} - - {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_24} -
    -
    {lang dzapp_haodai:calc_debj_htm_25}
    - -
    - -
    - - -
    - {lang dzapp_haodai:calc_chedai_htm_22} - - % - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - -
    -
    - - -
    - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debj_htm_49}: - 0{lang dzapp_haodai:calc_debj_htm_50}:0{lang dzapp_haodai:apply_htm_7} -
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    -
    -
    {lang dzapp_haodai:calc_chedai_htm_37}
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}

    - -
    -
    -
    -
    -
    -
    + + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} +
    + +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + {lang dzapp_haodai:calc_debj_htm_11} + + +
    +
    + {lang dzapp_haodai:calc_debj_htm_14} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_17} + + {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_21} + + {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_24} +
    +
    {lang dzapp_haodai:calc_debj_htm_25}
    + +
    + +
    + + +
    + {lang dzapp_haodai:calc_chedai_htm_22} + + % + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + +
    +
    + + +
    + +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debj_htm_49}: + 0{lang dzapp_haodai:calc_debj_htm_50}:0{lang dzapp_haodai:apply_htm_7} +
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    +
    +
    {lang dzapp_haodai:calc_chedai_htm_37}
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}

    + +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/calc_debx.htm b/source/plugin/dzapp_haodai/template/calc_debx.htm index bb8140f..4fe66f4 100644 --- a/source/plugin/dzapp_haodai/template/calc_debx.htm +++ b/source/plugin/dzapp_haodai/template/calc_debx.htm @@ -1,181 +1,181 @@ - - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} -
    - -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - {lang dzapp_haodai:calc_debj_htm_11} - - -
    -
    - {lang dzapp_haodai:calc_debj_htm_14} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_17} - - {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_21} - - {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_24} -
    -
    {lang dzapp_haodai:calc_debj_htm_25}
    - -
    - -
    - - -
    - {lang dzapp_haodai:calc_chedai_htm_22} - - % - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - -
    -
    - - -
    - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:calc_debx_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    - -
    -
    {lang dzapp_haodai:calc_chedai_htm_37}
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}

    - -
    -
    -
    -
    -
    -
    + + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} +
    + +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + {lang dzapp_haodai:calc_debj_htm_11} + + +
    +
    + {lang dzapp_haodai:calc_debj_htm_14} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_17} + + {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_21} + + {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_24} +
    +
    {lang dzapp_haodai:calc_debj_htm_25}
    + +
    + +
    + + +
    + {lang dzapp_haodai:calc_chedai_htm_22} + + % + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + +
    +
    + + +
    + +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:calc_debx_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    + +
    +
    {lang dzapp_haodai:calc_chedai_htm_37}
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}

    + +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/calc_esjys.htm b/source/plugin/dzapp_haodai/template/calc_esjys.htm index f370abc..71fb6c5 100644 --- a/source/plugin/dzapp_haodai/template/calc_esjys.htm +++ b/source/plugin/dzapp_haodai/template/calc_esjys.htm @@ -1,152 +1,152 @@ - - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    - {lang dzapp_haodai:calc_esjys_htm_11} - - -
    -
    - {lang dzapp_haodai:calc_esjys_htm_14} - - -
    -
    - {lang dzapp_haodai:calc_esjys_htm_17} - - {lang dzapp_haodai:calc_esjys_htm_18} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_esjys_htm_20} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - -
    -
    - - -
    - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:calc_esjys_htm_24}:0{lang dzapp_haodai:apply_htm_39} 
    {lang dzapp_haodai:calc_esjys_htm_26}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_28}3%{lang dzapp_haodai:calc_esjys_htm_29}1.5%{lang dzapp_haodai:calc_esjys_htm_30}1%
    {lang dzapp_haodai:calc_esjys_htm_31}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_33}5.55%
    {lang dzapp_haodai:calc_esjys_htm_34}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_36}7%{lang dzapp_haodai:calc_esjys_htm_37}5%{lang dzapp_haodai:apply_htm_14}
    {lang dzapp_haodai:calc_esjys_htm_39}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_36}3%
    {lang dzapp_haodai:calc_esjys_htm_42}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_44}1%{lang dzapp_haodai:calc_esjys_htm_45}
    {lang dzapp_haodai:calc_esjys_htm_46}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_48}
    - -
    -
    {lang dzapp_haodai:calc_chedai_htm_37}
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}

    - -
    -
    -
    -
    -
    -
    + + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + {lang dzapp_haodai:calc_esjys_htm_11} + + +
    +
    + {lang dzapp_haodai:calc_esjys_htm_14} + + +
    +
    + {lang dzapp_haodai:calc_esjys_htm_17} + + {lang dzapp_haodai:calc_esjys_htm_18} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_esjys_htm_20} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + +
    +
    + + +
    + +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:calc_esjys_htm_24}:0{lang dzapp_haodai:apply_htm_39} 
    {lang dzapp_haodai:calc_esjys_htm_26}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_28}3%{lang dzapp_haodai:calc_esjys_htm_29}1.5%{lang dzapp_haodai:calc_esjys_htm_30}1%
    {lang dzapp_haodai:calc_esjys_htm_31}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_33}5.55%
    {lang dzapp_haodai:calc_esjys_htm_34}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_36}7%{lang dzapp_haodai:calc_esjys_htm_37}5%{lang dzapp_haodai:apply_htm_14}
    {lang dzapp_haodai:calc_esjys_htm_39}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_36}3%
    {lang dzapp_haodai:calc_esjys_htm_42}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_44}1%{lang dzapp_haodai:calc_esjys_htm_45}
    {lang dzapp_haodai:calc_esjys_htm_46}:0{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:calc_esjys_htm_48}
    + +
    +
    {lang dzapp_haodai:calc_chedai_htm_37}
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}

    + +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/calc_fd.htm b/source/plugin/dzapp_haodai/template/calc_fd.htm index 1559dde..133fe4e 100644 --- a/source/plugin/dzapp_haodai/template/calc_fd.htm +++ b/source/plugin/dzapp_haodai/template/calc_fd.htm @@ -1,194 +1,194 @@ - - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    - {lang dzapp_haodai:calc_debj_htm_11} - - -
    -
    - {lang dzapp_haodai:calc_debj_htm_14} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_17} - - {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_21} - - {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_24} -
    -
    {lang dzapp_haodai:calc_debj_htm_25}
    - -
    - -
    - - -
    - {lang dzapp_haodai:calc_chedai_htm_22} - - % - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - -
    -
    - - -
    - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:calc_debx_htm_44}{lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_49}: -

    0{lang dzapp_haodai:apply_htm_7}

    -

    {lang dzapp_haodai:calc_fd_htm_58}:0{lang dzapp_haodai:apply_htm_7}

    -
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    - -
    -
    {lang dzapp_haodai:calc_chedai_htm_37}
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}

    - -
    -
    -
    -
    -
    -
    + + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + {lang dzapp_haodai:calc_debj_htm_11} + + +
    +
    + {lang dzapp_haodai:calc_debj_htm_14} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_17} + + {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_21} + + {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_24} +
    +
    {lang dzapp_haodai:calc_debj_htm_25}
    + +
    + +
    + + +
    + {lang dzapp_haodai:calc_chedai_htm_22} + + % + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + +
    +
    + + +
    + +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:calc_debx_htm_44}{lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_49}: +

    0{lang dzapp_haodai:apply_htm_7}

    +

    {lang dzapp_haodai:calc_fd_htm_58}:0{lang dzapp_haodai:apply_htm_7}

    +
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    + +
    +
    {lang dzapp_haodai:calc_chedai_htm_37}
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}

    + +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/calc_gjj.htm b/source/plugin/dzapp_haodai/template/calc_gjj.htm index 7ceb321..3eb1a7a 100644 --- a/source/plugin/dzapp_haodai/template/calc_gjj.htm +++ b/source/plugin/dzapp_haodai/template/calc_gjj.htm @@ -1,198 +1,198 @@ - - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} -
    - -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - {lang dzapp_haodai:calc_debj_htm_11} - - -
    -
    - {lang dzapp_haodai:calc_debj_htm_14} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_17} - - {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_21} - - {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_24} -
    -
    {lang dzapp_haodai:calc_debj_htm_25}
    - -
    - -
    - - -
    - {lang dzapp_haodai:calc_chedai_htm_22} - - % - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - -
    -
    - - -
    - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:calc_debx_htm_44}{lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_49}: -

    0{lang dzapp_haodai:apply_htm_7}

    -

    {lang dzapp_haodai:calc_fd_htm_58}:0{lang dzapp_haodai:apply_htm_7}

    -
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    -
    -
    {lang dzapp_haodai:calc_chedai_htm_37}
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}

    - -
    -
    -
    -
    -
    -
    + + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} +
    + +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + {lang dzapp_haodai:calc_debj_htm_11} + + +
    +
    + {lang dzapp_haodai:calc_debj_htm_14} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_17} + + {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_21} + + {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_24} +
    +
    {lang dzapp_haodai:calc_debj_htm_25}
    + +
    + +
    + + +
    + {lang dzapp_haodai:calc_chedai_htm_22} + + % + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + +
    +
    + + +
    + +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:calc_debx_htm_44}{lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_49}: +

    0{lang dzapp_haodai:apply_htm_7}

    +

    {lang dzapp_haodai:calc_fd_htm_58}:0{lang dzapp_haodai:apply_htm_7}

    +
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    +
    +
    {lang dzapp_haodai:calc_chedai_htm_37}
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}

    + +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/calc_secondhand.htm b/source/plugin/dzapp_haodai/template/calc_secondhand.htm index 9cd4d10..e9c935a 100644 --- a/source/plugin/dzapp_haodai/template/calc_secondhand.htm +++ b/source/plugin/dzapp_haodai/template/calc_secondhand.htm @@ -1,198 +1,198 @@ - - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} -
    - -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - {lang dzapp_haodai:calc_debj_htm_11} - - -
    -
    - {lang dzapp_haodai:calc_debj_htm_14} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_17} - - {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_21} - - {lang dzapp_haodai:calc_debj_htm_19} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_debj_htm_24} -
    -
    {lang dzapp_haodai:calc_debj_htm_25}
    - -
    - -
    - - -
    - {lang dzapp_haodai:calc_chedai_htm_22} - - % - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - -
    -
    - - -
    - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:calc_debx_htm_44}{lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_49}: -

    0{lang dzapp_haodai:apply_htm_7}

    -

    {lang dzapp_haodai:calc_fd_htm_58}:0{lang dzapp_haodai:apply_htm_7}

    -
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    -
    -
    {lang dzapp_haodai:calc_chedai_htm_37}
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}

    - -
    -
    -
    -
    -
    -
    + + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} +
    + +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + {lang dzapp_haodai:calc_debj_htm_11} + + +
    +
    + {lang dzapp_haodai:calc_debj_htm_14} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_17} + + {lang dzapp_haodai:apply_htm_39}/ {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_21} + + {lang dzapp_haodai:calc_debj_htm_19} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_debj_htm_24} +
    +
    {lang dzapp_haodai:calc_debj_htm_25}
    + +
    + +
    + + +
    + {lang dzapp_haodai:calc_chedai_htm_22} + + % + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + +
    +
    + + +
    + +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:calc_debx_htm_44}{lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_49}: +

    0{lang dzapp_haodai:apply_htm_7}

    +

    {lang dzapp_haodai:calc_fd_htm_58}:0{lang dzapp_haodai:apply_htm_7}

    +
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    +
    +
    {lang dzapp_haodai:calc_chedai_htm_37}
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}

    + +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/calc_zhdk.htm b/source/plugin/dzapp_haodai/template/calc_zhdk.htm index 38a012e..ac58e78 100644 --- a/source/plugin/dzapp_haodai/template/calc_zhdk.htm +++ b/source/plugin/dzapp_haodai/template/calc_zhdk.htm @@ -1,179 +1,179 @@ - - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} -
    - -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    - {lang dzapp_haodai:calc_zhdk_htm_24} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_chedai_htm_50} - - % - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_zhdk_htm_29} - - {lang dzapp_haodai:apply_htm_7} - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - {lang dzapp_haodai:calc_chedai_htm_40} - - % - {lang dzapp_haodai:calc_chedai_htm_13} -
    -
    - -
    -
    - - -
    - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:calc_debx_htm_44}{lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_49}: -

    0{lang dzapp_haodai:apply_htm_7}

    -

    {lang dzapp_haodai:calc_fd_htm_58}:0{lang dzapp_haodai:apply_htm_7}

    -
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    - - -
    -
    {lang dzapp_haodai:calc_chedai_htm_37}
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}

    - -
    -
    -
    -
    -
    -
    + + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:calc_chedai_htm_2} +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    + {lang dzapp_haodai:calc_zhdk_htm_24} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_chedai_htm_50} + + % + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_zhdk_htm_29} + + {lang dzapp_haodai:apply_htm_7} + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + {lang dzapp_haodai:calc_chedai_htm_40} + + % + {lang dzapp_haodai:calc_chedai_htm_13} +
    +
    + +
    +
    + + +
    + +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:calc_debx_htm_44}{lang dzapp_haodai:calc_debj_htm_44}
    {lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_45}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:calc_debj_htm_47}:0{lang dzapp_haodai:apply_htm_199}
    {lang dzapp_haodai:calc_debx_htm_49}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_49}: +

    0{lang dzapp_haodai:apply_htm_7}

    +

    {lang dzapp_haodai:calc_fd_htm_58}:0{lang dzapp_haodai:apply_htm_7}

    +
    {lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_52}:0{lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:calc_debj_htm_54}:0{lang dzapp_haodai:apply_htm_7}
    + + +
    +
    {lang dzapp_haodai:calc_chedai_htm_37}
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}

    + +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/city.htm b/source/plugin/dzapp_haodai/template/city.htm index 3d4d069..545e359 100644 --- a/source/plugin/dzapp_haodai/template/city.htm +++ b/source/plugin/dzapp_haodai/template/city.htm @@ -1,68 +1,68 @@ - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:switch_city} -
    -
    -
    -
    - -
    - -
    - {$key} -
    - - {$value1} - -
    -
    - -
    - - - - - - -
    -
    + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:switch_city} +
    +
    +
    +
    + +
    + +
    + {$key} +
    + + {$value1} + +
    +
    + +
    + + + + + + +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/hook_forum.htm b/source/plugin/dzapp_haodai/template/hook_forum.htm index 9b0baf7..4def248 100644 --- a/source/plugin/dzapp_haodai/template/hook_forum.htm +++ b/source/plugin/dzapp_haodai/template/hook_forum.htm @@ -1,146 +1,146 @@ - -
    - - - -
    - -
    - -
    - -
    - - -
    - - -
    -
    - -
    -
    $value[name]
    -
    - - $v[name] - -
    -
    - -
    - - -
    -
    - -
    -
    - - - - - -
    + +
    + + + +
    + +
    + +
    + +
    + + +
    + + +
    +
    + +
    +
    $value[name]
    +
    + + $v[name] + +
    +
    + +
    + + +
    +
    + +
    +
    + + + + + +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/list.htm b/source/plugin/dzapp_haodai/template/list.htm index de57c85..49ea2cc 100644 --- a/source/plugin/dzapp_haodai/template/list.htm +++ b/source/plugin/dzapp_haodai/template/list.htm @@ -1,196 +1,196 @@ - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:news_htm_2} -
    - -
    -
    -
    -
    -
      -
    • {lang homepage}
    • -
    • >
    • -
    • {lang dzapp_haodai:calc_chedai_htm_54}{lang dzapp_haodai:main_htm_46}{lang dzapp_haodai:cjwt}
    • -
    -
    - -
      -
    • $value[title]
    • -
    • {lang dzapp_haodai:date}$value[c_time]
    • -
    • $value[desc]
    • -
    - -
    -
    -

    - {$pageinfo} -

    -
    -
    - -
    -
    - + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:news_htm_2} +
    + +
    +
    +
    +
    +
      +
    • {lang homepage}
    • +
    • >
    • +
    • {lang dzapp_haodai:calc_chedai_htm_54}{lang dzapp_haodai:main_htm_46}{lang dzapp_haodai:cjwt}
    • +
    +
    + +
      +
    • $value[title]
    • +
    • {lang dzapp_haodai:date}$value[c_time]
    • +
    • $value[desc]
    • +
    + +
    +
    +

    + {$pageinfo} +

    +
    +
    + +
    +
    + \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/main_1.htm b/source/plugin/dzapp_haodai/template/main_1.htm index f8b2988..9f78303 100644 --- a/source/plugin/dzapp_haodai/template/main_1.htm +++ b/source/plugin/dzapp_haodai/template/main_1.htm @@ -1,442 +1,442 @@ - - - - - - <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - $_G['setting']['seohead'] - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    -
    -

    - - $value| - - {lang dzapp_haodai:main_htm_38}

    - - - -
    - - -
    -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -

    {lang dzapp_haodai:main_htm_46}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -

    {lang dzapp_haodai:cjwt}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:main_htm_48}

    - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:main_htm_49}{lang dzapp_haodai:main_htm_50}{lang dzapp_haodai:main_htm_51}{lang dzapp_haodai:main_htm_52}{lang dzapp_haodai:main_htm_53}{lang dzapp_haodai:main_htm_54}{lang dzapp_haodai:main_htm_55}
    {lang dzapp_haodai:main_htm_56}{lang dzapp_haodai:main_htm_57}{lang dzapp_haodai:main_htm_58}{lang dzapp_haodai:main_htm_59}{lang dzapp_haodai:main_htm_60}{lang dzapp_haodai:main_htm_61}{lang dzapp_haodai:main_htm_62}
    -
    - -
    - -
    - - - + + + + + + <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + $_G['setting']['seohead'] + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    +

    + + $value| + + {lang dzapp_haodai:main_htm_38}

    + + + +
    + + +
    +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +

    {lang dzapp_haodai:main_htm_46}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +

    {lang dzapp_haodai:cjwt}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:main_htm_48}

    + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:main_htm_49}{lang dzapp_haodai:main_htm_50}{lang dzapp_haodai:main_htm_51}{lang dzapp_haodai:main_htm_52}{lang dzapp_haodai:main_htm_53}{lang dzapp_haodai:main_htm_54}{lang dzapp_haodai:main_htm_55}
    {lang dzapp_haodai:main_htm_56}{lang dzapp_haodai:main_htm_57}{lang dzapp_haodai:main_htm_58}{lang dzapp_haodai:main_htm_59}{lang dzapp_haodai:main_htm_60}{lang dzapp_haodai:main_htm_61}{lang dzapp_haodai:main_htm_62}
    +
    + +
    + +
    + + + \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/main_2.htm b/source/plugin/dzapp_haodai/template/main_2.htm index 262aa33..fc32fb1 100644 --- a/source/plugin/dzapp_haodai/template/main_2.htm +++ b/source/plugin/dzapp_haodai/template/main_2.htm @@ -1,296 +1,296 @@ - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:main_htm_2} -
    - -
    -
    -
    - -
    -
    -

    - - $value| - - {lang dzapp_haodai:main_htm_38}

    - - - -
    - - -
    -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -

    {lang dzapp_haodai:main_htm_46}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -

    {lang dzapp_haodai:cjwt}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:main_htm_48}

    - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:main_htm_49}{lang dzapp_haodai:main_htm_50}{lang dzapp_haodai:main_htm_51}{lang dzapp_haodai:main_htm_52}{lang dzapp_haodai:main_htm_53}{lang dzapp_haodai:main_htm_54}{lang dzapp_haodai:main_htm_55}
    {lang dzapp_haodai:main_htm_56}{lang dzapp_haodai:main_htm_57}{lang dzapp_haodai:main_htm_58}{lang dzapp_haodai:main_htm_59}{lang dzapp_haodai:main_htm_60}{lang dzapp_haodai:main_htm_61}{lang dzapp_haodai:main_htm_62}
    -
    -
    - -
    - - + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:main_htm_2} +
    + +
    +
    +
    + +
    +
    +

    + + $value| + + {lang dzapp_haodai:main_htm_38}

    + + + +
    + + +
    +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +

    {lang dzapp_haodai:main_htm_46}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +

    {lang dzapp_haodai:cjwt}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:main_htm_48}

    + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:main_htm_49}{lang dzapp_haodai:main_htm_50}{lang dzapp_haodai:main_htm_51}{lang dzapp_haodai:main_htm_52}{lang dzapp_haodai:main_htm_53}{lang dzapp_haodai:main_htm_54}{lang dzapp_haodai:main_htm_55}
    {lang dzapp_haodai:main_htm_56}{lang dzapp_haodai:main_htm_57}{lang dzapp_haodai:main_htm_58}{lang dzapp_haodai:main_htm_59}{lang dzapp_haodai:main_htm_60}{lang dzapp_haodai:main_htm_61}{lang dzapp_haodai:main_htm_62}
    +
    +
    + +
    + + \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/main_3.htm b/source/plugin/dzapp_haodai/template/main_3.htm index 263dbb1..41f9d78 100644 --- a/source/plugin/dzapp_haodai/template/main_3.htm +++ b/source/plugin/dzapp_haodai/template/main_3.htm @@ -1,304 +1,304 @@ - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:main_htm_2} -
    - -
    -
    -
    - -
    -
    -

    - - $value| - - {lang dzapp_haodai:main_htm_38}

    - - - -
    - - -
    -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:calc_chedai_htm_54}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -

    {lang dzapp_haodai:main_htm_46}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -

    {lang dzapp_haodai:cjwt}{lang dzapp_haodai:more}>>

    -
    - -
    - -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:main_htm_48}

    - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:main_htm_49}{lang dzapp_haodai:main_htm_50}{lang dzapp_haodai:main_htm_51}{lang dzapp_haodai:main_htm_52}{lang dzapp_haodai:main_htm_53}{lang dzapp_haodai:main_htm_54}{lang dzapp_haodai:main_htm_55}
    {lang dzapp_haodai:main_htm_56}{lang dzapp_haodai:main_htm_57}{lang dzapp_haodai:main_htm_58}{lang dzapp_haodai:main_htm_59}{lang dzapp_haodai:main_htm_60}{lang dzapp_haodai:main_htm_61}{lang dzapp_haodai:main_htm_62}
    -
    -
    - -
    - - + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:main_htm_2} +
    + +
    +
    +
    + +
    +
    +

    + + $value| + + {lang dzapp_haodai:main_htm_38}

    + + + +
    + + +
    +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:calc_chedai_htm_54}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +

    {lang dzapp_haodai:main_htm_46}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +

    {lang dzapp_haodai:cjwt}{lang dzapp_haodai:more}>>

    +
    + +
    + +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:main_htm_48}

    + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:main_htm_49}{lang dzapp_haodai:main_htm_50}{lang dzapp_haodai:main_htm_51}{lang dzapp_haodai:main_htm_52}{lang dzapp_haodai:main_htm_53}{lang dzapp_haodai:main_htm_54}{lang dzapp_haodai:main_htm_55}
    {lang dzapp_haodai:main_htm_56}{lang dzapp_haodai:main_htm_57}{lang dzapp_haodai:main_htm_58}{lang dzapp_haodai:main_htm_59}{lang dzapp_haodai:main_htm_60}{lang dzapp_haodai:main_htm_61}{lang dzapp_haodai:main_htm_62}
    +
    +
    + +
    + + \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/mobile/apply.htm b/source/plugin/dzapp_haodai/template/mobile/apply.htm index 536a919..5c6a4af 100644 --- a/source/plugin/dzapp_haodai/template/mobile/apply.htm +++ b/source/plugin/dzapp_haodai/template/mobile/apply.htm @@ -1,754 +1,55 @@ - - - - - - - <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:apply_htm_2}
    -
    -
    -
    -
    -
    -
    {$xd[bank_name]} | {$xd[name]} -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:mobile_26}{$xd[bank_name]}-{$xd[name]},{lang dzapp_haodai:mobile_27}{$_GET[money]}{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:mobile_28}{$_GET[month]}{lang dzapp_haodai:apply_htm_9}{lang dzapp_haodai:mobile_29}
    -
    {lang dzapp_haodai:mobile_30}
    - -
    -
    {lang dzapp_haodai:apply_htm_11}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_13}90m2{lang dzapp_haodai:apply_htm_14} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_17}90m2{lang dzapp_haodai:apply_htm_14} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_21} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_23} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_25} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_27} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_29} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_31} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_33} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_35} -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_141}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_76} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_78} -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_47}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_48} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_50} -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_66}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_39}
    -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_68}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_69} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_71} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_73} -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_85}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_86} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_88} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_90} -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_66}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_39}
    -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_113}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_115} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_117} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_119}/{lang dzapp_haodai:apply_htm_120} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_123} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_125} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_127} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_129} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_131} -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_68}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_69} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_71} -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_68}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_39}
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_70}
    -
    -
    -
    - {lang dzapp_haodai:mobile_71} - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_113}
    -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_115} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_117} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_119}/{lang dzapp_haodai:apply_htm_120} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_123} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_125} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_127} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_129} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_131} -
    - -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_185}
    -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_186} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_188} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_190} -
    - -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_66}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_39}
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_76}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:mobile_74}
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_78}
    -
    -
    -
    -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_71} - -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_74}
    -
    -
    -
    -
    -
    -
    -
    - 0 - -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_199}
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_201}
    -
    - {lang dzapp_haodai:mobile_79} {lang dzapp_haodai:mobile_80} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_206}
    -
    - {lang dzapp_haodai:apply_htm_208} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_209}
    -
    - {lang dzapp_haodai:apply_htm_39} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_212}
    -
    - {lang dzapp_haodai:mobile_79} {lang dzapp_haodai:mobile_80} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_217}
    -
    - {lang dzapp_haodai:apply_htm_39} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_220}
    -
    - {lang dzapp_haodai:mobile_79} {lang dzapp_haodai:mobile_80} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_225}
    -
    - {lang dzapp_haodai:mobile_79} {lang dzapp_haodai:mobile_80} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_217}
    -
    - {lang dzapp_haodai:apply_htm_39} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    - -
    {lang dzapp_haodai:mobile_81}
    -
    -
    {lang dzapp_haodai:mobile_62}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:mobile_82}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:mobile_84}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:apply_htm_62}

    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_244} -
    - -
    -
    - - - - - - - - - + + + + + + + <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:apply_htm_2}
    +
    +
    +
    +
    + +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/calc_fd.htm b/source/plugin/dzapp_haodai/template/mobile/calc_fd.htm index 250e976..ba27d32 100644 --- a/source/plugin/dzapp_haodai/template/mobile/calc_fd.htm +++ b/source/plugin/dzapp_haodai/template/mobile/calc_fd.htm @@ -1,204 +1,204 @@ - - - - - - - <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:calc_chedai_htm_3}
    -
    -
    -
    -
    -
    -
    - -
    {lang dzapp_haodai:mobile_31} -
    -
    - -
    -
    -
    - -
    {lang dzapp_haodai:mobile_32} -
    -
    - -
    -
    -
    -
    - {lang dzapp_haodai:mobile_33} -
    -
    -
    - - -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_36} -
    -
    -
    -
    - - -
    -
    - - %
    -
    -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:mobile_41}

    -
    -
    -
    - - %
    -
    -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_42} - - -
    -
    -
    - -
    -
    -
    -
    - - - - - - - - - -
    {lang dzapp_haodai:mobile_46}0{lang dzapp_haodai:mobile_58}
    {lang dzapp_haodai:mobile_47}0{lang dzapp_haodai:mobile_58}
    -
    -
    - - - - - - - - - -
    {lang dzapp_haodai:mobile_48}0{lang dzapp_haodai:mobile_58}
    {lang dzapp_haodai:mobile_49}0{lang dzapp_haodai:mobile_58}
    -
    -
    - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:mobile_50}{lang dzapp_haodai:mobile_51}{lang dzapp_haodai:mobile_52}{lang dzapp_haodai:mobile_53}{lang dzapp_haodai:mobile_54}
    00000
    - -
    - {lang dzapp_haodai:mobile_55} - -
    -
    - - - - - - - - - + + + + + + + <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:calc_chedai_htm_3}
    +
    +
    +
    +
    +
    +
    + +
    {lang dzapp_haodai:mobile_31} +
    +
    + +
    +
    +
    + +
    {lang dzapp_haodai:mobile_32} +
    +
    + +
    +
    +
    +
    + {lang dzapp_haodai:mobile_33} +
    +
    +
    + + +
    + +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_36} +
    +
    +
    +
    + + +
    +
    + + %
    +
    +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:mobile_41}

    +
    +
    +
    + + %
    +
    +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_42} + + +
    +
    +
    + +
    +
    +
    +
    + + + + + + + + + +
    {lang dzapp_haodai:mobile_46}0{lang dzapp_haodai:mobile_58}
    {lang dzapp_haodai:mobile_47}0{lang dzapp_haodai:mobile_58}
    +
    +
    + + + + + + + + + +
    {lang dzapp_haodai:mobile_48}0{lang dzapp_haodai:mobile_58}
    {lang dzapp_haodai:mobile_49}0{lang dzapp_haodai:mobile_58}
    +
    +
    + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:mobile_50}{lang dzapp_haodai:mobile_51}{lang dzapp_haodai:mobile_52}{lang dzapp_haodai:mobile_53}{lang dzapp_haodai:mobile_54}
    00000
    + +
    + {lang dzapp_haodai:mobile_55} + +
    +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/city.htm b/source/plugin/dzapp_haodai/template/mobile/city.htm index 99c063c..d1d2435 100644 --- a/source/plugin/dzapp_haodai/template/mobile/city.htm +++ b/source/plugin/dzapp_haodai/template/mobile/city.htm @@ -1,84 +1,84 @@ - - - - - - -{lang dzapp_haodai:switch_city} - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:switch_city}
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_19} {$zones[$city]}
    -
    -
    -
    -
    {lang dzapp_haodai:city_sort_1}
    -
    - -
    -
    - -
    -
    {$key}({lang dzapp_haodai:mobile_20}{$key}{lang dzapp_haodai:mobile_21})
    -
    - -
    -
    - -
    - - - - - - - - + + + + + + +{lang dzapp_haodai:switch_city} + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:switch_city}
    +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:mobile_19} {$zones[$city]}
    +
    +
    +
    +
    {lang dzapp_haodai:city_sort_1}
    +
    + +
    +
    + +
    +
    {$key}({lang dzapp_haodai:mobile_20}{$key}{lang dzapp_haodai:mobile_21})
    +
    + +
    +
    + +
    + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/fastloan.htm b/source/plugin/dzapp_haodai/template/mobile/fastloan.htm index ea2451b..77c168c 100644 --- a/source/plugin/dzapp_haodai/template/mobile/fastloan.htm +++ b/source/plugin/dzapp_haodai/template/mobile/fastloan.htm @@ -1,84 +1,55 @@ - - - - - - -{lang dzapp_haodai:mobile_59} - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:mobile_59}
    -
    -
    -
    - - -
    -
    -
    {lang dzapp_haodai:mobile_61}
    -
    -
    -
    {lang dzapp_haodai:mobile_62}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_64}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:search_htm_5}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_7}
    -
    -
    -
    -
    -
    -
    -
    - - - - - - - - - - + + + + + + +{lang dzapp_haodai:mobile_59} + + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:mobile_59}
    +
    +
    +
    +
    + +
    + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/list.htm b/source/plugin/dzapp_haodai/template/mobile/list.htm index e72c698..051e5a3 100644 --- a/source/plugin/dzapp_haodai/template/mobile/list.htm +++ b/source/plugin/dzapp_haodai/template/mobile/list.htm @@ -1,312 +1,312 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:news_htm_2}
    -
    - - {$pageinfo} -
    - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    +
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:news_htm_2}
    +
    + + {$pageinfo} +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/main_1.htm b/source/plugin/dzapp_haodai/template/mobile/main_1.htm index 6311001..adcbc70 100644 --- a/source/plugin/dzapp_haodai/template/mobile/main_1.htm +++ b/source/plugin/dzapp_haodai/template/mobile/main_1.htm @@ -1,372 +1,372 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_7}
    - -
    -
    - {lang dzapp_haodai:apply_htm_12} - -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_8} -
    -
    -
    - -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    • {lang dzapp_haodai:mobile_3}
    • -
    • {lang dzapp_haodai:mobile_4}
    • -
    • {lang dzapp_haodai:mobile_5}
    • -
    • {lang dzapp_haodai:main_htm_46}
    • -
      -
    -
    -
    -

    {lang dzapp_haodai:main_htm_38}

    - - - - - - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:apply_htm_7}
    + +
    +
    + {lang dzapp_haodai:apply_htm_12} + +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_8} +
    +
    +
    + +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    • {lang dzapp_haodai:mobile_3}
    • +
    • {lang dzapp_haodai:mobile_4}
    • +
    • {lang dzapp_haodai:mobile_5}
    • +
    • {lang dzapp_haodai:main_htm_46}
    • +
      +
    +
    +
    +

    {lang dzapp_haodai:main_htm_38}

    + + + + + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/main_2.htm b/source/plugin/dzapp_haodai/template/mobile/main_2.htm index 6311001..adcbc70 100644 --- a/source/plugin/dzapp_haodai/template/mobile/main_2.htm +++ b/source/plugin/dzapp_haodai/template/mobile/main_2.htm @@ -1,372 +1,372 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_7}
    - -
    -
    - {lang dzapp_haodai:apply_htm_12} - -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_8} -
    -
    -
    - -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    • {lang dzapp_haodai:mobile_3}
    • -
    • {lang dzapp_haodai:mobile_4}
    • -
    • {lang dzapp_haodai:mobile_5}
    • -
    • {lang dzapp_haodai:main_htm_46}
    • -
      -
    -
    -
    -

    {lang dzapp_haodai:main_htm_38}

    - - - - - - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:apply_htm_7}
    + +
    +
    + {lang dzapp_haodai:apply_htm_12} + +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_8} +
    +
    +
    + +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    • {lang dzapp_haodai:mobile_3}
    • +
    • {lang dzapp_haodai:mobile_4}
    • +
    • {lang dzapp_haodai:mobile_5}
    • +
    • {lang dzapp_haodai:main_htm_46}
    • +
      +
    +
    +
    +

    {lang dzapp_haodai:main_htm_38}

    + + + + + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/main_3.htm b/source/plugin/dzapp_haodai/template/mobile/main_3.htm index 6311001..adcbc70 100644 --- a/source/plugin/dzapp_haodai/template/mobile/main_3.htm +++ b/source/plugin/dzapp_haodai/template/mobile/main_3.htm @@ -1,372 +1,372 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_7}
    - -
    -
    - {lang dzapp_haodai:apply_htm_12} - -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_8} -
    -
    -
    - -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    • {lang dzapp_haodai:mobile_3}
    • -
    • {lang dzapp_haodai:mobile_4}
    • -
    • {lang dzapp_haodai:mobile_5}
    • -
    • {lang dzapp_haodai:main_htm_46}
    • -
      -
    -
    -
    -

    {lang dzapp_haodai:main_htm_38}

    - - - - - - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:apply_htm_7}
    + +
    +
    + {lang dzapp_haodai:apply_htm_12} + +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_8} +
    +
    +
    + +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    • {lang dzapp_haodai:mobile_3}
    • +
    • {lang dzapp_haodai:mobile_4}
    • +
    • {lang dzapp_haodai:mobile_5}
    • +
    • {lang dzapp_haodai:main_htm_46}
    • +
      +
    +
    +
    +

    {lang dzapp_haodai:main_htm_38}

    + + + + + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/news.htm b/source/plugin/dzapp_haodai/template/mobile/news.htm index d1c69bf..eeecbc2 100644 --- a/source/plugin/dzapp_haodai/template/mobile/news.htm +++ b/source/plugin/dzapp_haodai/template/mobile/news.htm @@ -1,313 +1,313 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    - {lang dzapp_haodai:mobile_11} - {lang dzapp_haodai:search_htm_2} -
    -
    -
    {lang dzapp_haodai:main_htm_46}
    -
    -
    -
    -
    -
    -
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:news_htm_2}
    -
    -
    -
    $result[title]
    -
    $result[content]
    -
    -
    -
    {lang dzapp_haodai:main_htm_46}
    -
    - -
    -
    - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    + {lang dzapp_haodai:mobile_11} + {lang dzapp_haodai:search_htm_2} +
    +
    +
    {lang dzapp_haodai:main_htm_46}
    +
    +
    +
    +
    +
    +
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:news_htm_2}
    +
    +
    +
    $result[title]
    +
    $result[content]
    +
    +
    +
    {lang dzapp_haodai:main_htm_46}
    +
    + +
    +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/search.htm b/source/plugin/dzapp_haodai/template/mobile/search.htm index aefa5d8..c189c1b 100644 --- a/source/plugin/dzapp_haodai/template/mobile/search.htm +++ b/source/plugin/dzapp_haodai/template/mobile/search.htm @@ -1,382 +1,382 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    - - - {$zones[$city]} - -
    -
    -
    - 10 - {lang dzapp_haodai:apply_htm_7} - 12 - {lang dzapp_haodai:apply_htm_9} -
    -
    -
    - - - - -
    -
      - -
    • -
      -
      $value[name]
      -
      - - -
        - - $value2[name] - -
      -
    • - -
      -
    -
    - - - - -
    - -
    - - - -
    - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    + + + {$zones[$city]} + +
    +
    +
    + 10 + {lang dzapp_haodai:apply_htm_7} + 12 + {lang dzapp_haodai:apply_htm_9} +
    +
    +
    + + + + +
    +
      + +
    • +
      +
      $value[name]
      +
      + + +
        + + $value2[name] + +
      +
    • + +
      +
    +
    + + + + +
    + +
    + + + +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/mobile/view.htm b/source/plugin/dzapp_haodai/template/mobile/view.htm index 17690ff..03e9e7f 100644 --- a/source/plugin/dzapp_haodai/template/mobile/view.htm +++ b/source/plugin/dzapp_haodai/template/mobile/view.htm @@ -1,136 +1,136 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:view_htm_2}
    -
    -
    -
    -
    -
    -
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:view_htm_2}
    -
    -
    -
    {$xd[bank_name]} | {$xd[name]}
    -
    -
    -
      -
    • -
      {lang dzapp_haodai:view_htm_4} {lang dzapp_haodai:view_htm_8} -
      -
      -
      {$money}{lang dzapp_haodai:apply_htm_7} {$month}{lang dzapp_haodai:apply_htm_199} -
      -
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_12} {lang dzapp_haodai:view_htm_15} -
      -
      -
      {$xd[data][month_repay]}{lang dzapp_haodai:apply_htm_39} {$xd[data][total_interest]}{lang dzapp_haodai:apply_htm_7} -
      -
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_6} {lang dzapp_haodai:view_htm_10} -
      -
      -
      {$xd[limit_min]}-{$xd[limit_max]} {lang dzapp_haodai:apply_htm_7} {$xd[date_min]}-{$xd[date_max]}{lang dzapp_haodai:apply_htm_9} -
      -
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_14}{$xd[refund_type_name]}
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_17}{$xd[give_time]}{lang dzapp_haodai:view_htm_18}{$xd[audit_time]}{lang dzapp_haodai:view_htm_19}
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_20}{lang dzapp_haodai:view_htm_21} {$xd[year_rate]}% {lang dzapp_haodai:view_htm_22} {$xd[month_manage]}% {lang dzapp_haodai:view_htm_23} {$xd[once_charge]}% -
      -
      -
    • -
    -
    -
    {lang dzapp_haodai:mobile_22} {$xd[rel_succ_count]} {lang dzapp_haodai:mobile_23}
    -
    -
    -
    {lang dzapp_haodai:mobile_24}
    -
    -
    -
    -
    - - - - - - -
    {lang dzapp_haodai:view_htm_31}{lang dzapp_haodai:view_htm_32}{lang dzapp_haodai:view_htm_30}
    -
    -
    -
    {$xd[apply]}
    -
    - - -
    - -
    -
    - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:view_htm_2}
    +
    +
    +
    +
    +
    +
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:view_htm_2}
    +
    +
    +
    {$xd[bank_name]} | {$xd[name]}
    +
    +
    +
      +
    • +
      {lang dzapp_haodai:view_htm_4} {lang dzapp_haodai:view_htm_8} +
      +
      +
      {$money}{lang dzapp_haodai:apply_htm_7} {$month}{lang dzapp_haodai:apply_htm_199} +
      +
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_12} {lang dzapp_haodai:view_htm_15} +
      +
      +
      {$xd[data][month_repay]}{lang dzapp_haodai:apply_htm_39} {$xd[data][total_interest]}{lang dzapp_haodai:apply_htm_7} +
      +
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_6} {lang dzapp_haodai:view_htm_10} +
      +
      +
      {$xd[limit_min]}-{$xd[limit_max]} {lang dzapp_haodai:apply_htm_7} {$xd[date_min]}-{$xd[date_max]}{lang dzapp_haodai:apply_htm_9} +
      +
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_14}{$xd[refund_type_name]}
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_17}{$xd[give_time]}{lang dzapp_haodai:view_htm_18}{$xd[audit_time]}{lang dzapp_haodai:view_htm_19}
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_20}{lang dzapp_haodai:view_htm_21} {$xd[year_rate]}% {lang dzapp_haodai:view_htm_22} {$xd[month_manage]}% {lang dzapp_haodai:view_htm_23} {$xd[once_charge]}% +
      +
      +
    • +
    +
    +
    {lang dzapp_haodai:mobile_22} {$xd[rel_succ_count]} {lang dzapp_haodai:mobile_23}
    +
    +
    +
    {lang dzapp_haodai:mobile_24}
    +
    +
    +
    +
    + + + + + + +
    {lang dzapp_haodai:view_htm_31}{lang dzapp_haodai:view_htm_32}{lang dzapp_haodai:view_htm_30}
    +
    +
    +
    {$xd[apply]}
    +
    + + +
    + +
    +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/news.htm b/source/plugin/dzapp_haodai/template/news.htm index e446d05..f589317 100644 --- a/source/plugin/dzapp_haodai/template/news.htm +++ b/source/plugin/dzapp_haodai/template/news.htm @@ -1,56 +1,56 @@ - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:news_htm_2} -
    - -
    -
    -
    -
    -
    - -

    $result[title]

    -

    $result[c_time] {lang dzapp_haodai:news_htm_5}$result[source]

    -
    -
    - $result[content] -
    -
    - - -
    -
      -
    • {lang dzapp_haodai:main_htm_46}
    • -
    - - -
    -
    -
    + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:news_htm_2} +
    + +
    +
    +
    +
    +
    + +

    $result[title]

    +

    $result[c_time] {lang dzapp_haodai:news_htm_5}$result[source]

    +
    +
    + $result[content] +
    +
    + + +
    +
      +
    • {lang dzapp_haodai:main_htm_46}
    • +
    + + +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/search.htm b/source/plugin/dzapp_haodai/template/search.htm index 5d6751c..71a5bd3 100644 --- a/source/plugin/dzapp_haodai/template/search.htm +++ b/source/plugin/dzapp_haodai/template/search.htm @@ -1,233 +1,233 @@ - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:search_htm_2} -
    - -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:search_htm_3}{$num}{lang dzapp_haodai:search_htm_4}
    -
    -
    {lang dzapp_haodai:search_htm_5}
    - - -
    {lang dzapp_haodai:search_htm_29}
    - -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:search_htm_55} - -
    - -
      -
    • $value[name]{lang dzapp_haodai:search_htm_57}
    • - -
    • $value2[name]
    • - -
    - -
    -
    - -
    -
    -
    {lang dzapp_haodai:search_htm_62}/{lang dzapp_haodai:search_htm_63}
    -
    {lang dzapp_haodai:search_htm_64}/{lang dzapp_haodai:calc_debj_htm_14} -
    -
    -
    -
    -

    {lang dzapp_haodai:search_htm_66}

    -

    {lang dzapp_haodai:search_htm_67}

    -

    {lang dzapp_haodai:search_htm_68}

    -

    {lang dzapp_haodai:search_htm_69}

    -
    -
    -
    -
    -
    {lang dzapp_haodai:search_htm_70} -
    -
    -
    -

    {lang dzapp_haodai:search_htm_71}

    -

    {lang dzapp_haodai:search_htm_72}"{lang dzapp_haodai:search_htm_73}"{lang dzapp_haodai:search_htm_74}"{lang dzapp_haodai:search_htm_75}"{lang dzapp_haodai:search_htm_74}"{lang dzapp_haodai:search_htm_77}"{lang dzapp_haodai:search_htm_78}

    -

    {lang dzapp_haodai:search_htm_79}

    -

    {lang dzapp_haodai:search_htm_80}"{lang dzapp_haodai:search_htm_81}"{lang dzapp_haodai:search_htm_74}"{lang dzapp_haodai:search_htm_83}"{lang dzapp_haodai:search_htm_74}"{lang dzapp_haodai:search_htm_85}"{lang dzapp_haodai:search_htm_86}

    -

    {lang dzapp_haodai:search_htm_87}

    -

    {lang dzapp_haodai:search_htm_88}

    -
    -
    -
    -
    -
    {lang dzapp_haodai:search_htm_89}
    -
    {lang dzapp_haodai:search_htm_90}
    -
    - -
    -
    -

    {$value[bank_name]}-{$value[name]}

    -

    {$value[assure_type_name]}

    -

    - - -

    -
    -
    -
    -

    {$value[data][total_interest]}{lang dzapp_haodai:search_htm_6} / {$value[money]}{lang dzapp_haodai:search_htm_6}

    -

    {lang dzapp_haodai:search_htm_94}

    -
    -
    -
    -

    {$value[refund_type_name]} {$value[data][month_repay]}{lang dzapp_haodai:apply_htm_39}/{lang dzapp_haodai:apply_htm_199}

    -

    {lang dzapp_haodai:search_htm_97}{$value[year_rate]}%

    -
    -
    - - -

    $value2

    - - -

    {lang dzapp_haodai:search_htm_98}

    - - -

    {lang dzapp_haodai:search_htm_99}

    - -
    - -
    -
    - - {$multipage} -
    -
    -
    -
    -
    -
    + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:search_htm_2} +
    + +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:search_htm_3}{$num}{lang dzapp_haodai:search_htm_4}
    +
    +
    {lang dzapp_haodai:search_htm_5}
    + + +
    {lang dzapp_haodai:search_htm_29}
    + +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:search_htm_55} + +
    + +
      +
    • $value[name]{lang dzapp_haodai:search_htm_57}
    • + +
    • $value2[name]
    • + +
    + +
    +
    + +
    +
    +
    {lang dzapp_haodai:search_htm_62}/{lang dzapp_haodai:search_htm_63}
    +
    {lang dzapp_haodai:search_htm_64}/{lang dzapp_haodai:calc_debj_htm_14} +
    +
    +
    +
    +

    {lang dzapp_haodai:search_htm_66}

    +

    {lang dzapp_haodai:search_htm_67}

    +

    {lang dzapp_haodai:search_htm_68}

    +

    {lang dzapp_haodai:search_htm_69}

    +
    +
    +
    +
    +
    {lang dzapp_haodai:search_htm_70} +
    +
    +
    +

    {lang dzapp_haodai:search_htm_71}

    +

    {lang dzapp_haodai:search_htm_72}"{lang dzapp_haodai:search_htm_73}"{lang dzapp_haodai:search_htm_74}"{lang dzapp_haodai:search_htm_75}"{lang dzapp_haodai:search_htm_74}"{lang dzapp_haodai:search_htm_77}"{lang dzapp_haodai:search_htm_78}

    +

    {lang dzapp_haodai:search_htm_79}

    +

    {lang dzapp_haodai:search_htm_80}"{lang dzapp_haodai:search_htm_81}"{lang dzapp_haodai:search_htm_74}"{lang dzapp_haodai:search_htm_83}"{lang dzapp_haodai:search_htm_74}"{lang dzapp_haodai:search_htm_85}"{lang dzapp_haodai:search_htm_86}

    +

    {lang dzapp_haodai:search_htm_87}

    +

    {lang dzapp_haodai:search_htm_88}

    +
    +
    +
    +
    +
    {lang dzapp_haodai:search_htm_89}
    +
    {lang dzapp_haodai:search_htm_90}
    +
    + +
    +
    +

    {$value[bank_name]}-{$value[name]}

    +

    {$value[assure_type_name]}

    +

    + + +

    +
    +
    +
    +

    {$value[data][total_interest]}{lang dzapp_haodai:search_htm_6} / {$value[money]}{lang dzapp_haodai:search_htm_6}

    +

    {lang dzapp_haodai:search_htm_94}

    +
    +
    +
    +

    {$value[refund_type_name]} {$value[data][month_repay]}{lang dzapp_haodai:apply_htm_39}/{lang dzapp_haodai:apply_htm_199}

    +

    {lang dzapp_haodai:search_htm_97}{$value[year_rate]}%

    +
    +
    + + +

    $value2

    + + +

    {lang dzapp_haodai:search_htm_98}

    + + +

    {lang dzapp_haodai:search_htm_99}

    + +
    + +
    +
    + + {$multipage} +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/template/touch/apply.htm b/source/plugin/dzapp_haodai/template/touch/apply.htm index 536a919..5c6a4af 100644 --- a/source/plugin/dzapp_haodai/template/touch/apply.htm +++ b/source/plugin/dzapp_haodai/template/touch/apply.htm @@ -1,754 +1,55 @@ - - - - - - - <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:apply_htm_2}
    -
    -
    -
    -
    -
    -
    {$xd[bank_name]} | {$xd[name]} -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:mobile_26}{$xd[bank_name]}-{$xd[name]},{lang dzapp_haodai:mobile_27}{$_GET[money]}{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:mobile_28}{$_GET[month]}{lang dzapp_haodai:apply_htm_9}{lang dzapp_haodai:mobile_29}
    -
    {lang dzapp_haodai:mobile_30}
    - -
    -
    {lang dzapp_haodai:apply_htm_11}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_13}90m2{lang dzapp_haodai:apply_htm_14} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_17}90m2{lang dzapp_haodai:apply_htm_14} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_21} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_23} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_25} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_27} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_29} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_31} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_33} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_35} -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_141}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_76} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_78} -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_47}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_48} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_50} -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_66}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_39}
    -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_68}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_69} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_71} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_73} -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_85}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_86} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_88} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_90} -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_66}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_39}
    -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_113}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_115} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_117} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_119}/{lang dzapp_haodai:apply_htm_120} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_123} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_125} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_127} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_129} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_131} -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_68}
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_69} -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_71} -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_68}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_39}
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_70}
    -
    -
    -
    - {lang dzapp_haodai:mobile_71} - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_113}
    -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_115} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_117} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_119}/{lang dzapp_haodai:apply_htm_120} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_123} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_125} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_127} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_129} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_131} -
    - -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_185}
    -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_186} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_188} -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_190} -
    - -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_66}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_39}
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_76}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:mobile_74}
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_78}
    -
    -
    -
    -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_71} - -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_74}
    -
    -
    -
    -
    -
    -
    -
    - 0 - -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_199}
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_201}
    -
    - {lang dzapp_haodai:mobile_79} {lang dzapp_haodai:mobile_80} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_206}
    -
    - {lang dzapp_haodai:apply_htm_208} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_209}
    -
    - {lang dzapp_haodai:apply_htm_39} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_212}
    -
    - {lang dzapp_haodai:mobile_79} {lang dzapp_haodai:mobile_80} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_217}
    -
    - {lang dzapp_haodai:apply_htm_39} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_220}
    -
    - {lang dzapp_haodai:mobile_79} {lang dzapp_haodai:mobile_80} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_225}
    -
    - {lang dzapp_haodai:mobile_79} {lang dzapp_haodai:mobile_80} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_217}
    -
    - {lang dzapp_haodai:apply_htm_39} -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    - -
    {lang dzapp_haodai:mobile_81}
    -
    -
    {lang dzapp_haodai:mobile_62}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:mobile_82}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:mobile_84}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:apply_htm_62}

    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:apply_htm_244} -
    - -
    -
    - - - - - - - - - + + + + + + + <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:apply_htm_2}
    +
    +
    +
    +
    + +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/calc_fd.htm b/source/plugin/dzapp_haodai/template/touch/calc_fd.htm index 250e976..ba27d32 100644 --- a/source/plugin/dzapp_haodai/template/touch/calc_fd.htm +++ b/source/plugin/dzapp_haodai/template/touch/calc_fd.htm @@ -1,204 +1,204 @@ - - - - - - - <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:calc_chedai_htm_3}
    -
    -
    -
    -
    -
    -
    - -
    {lang dzapp_haodai:mobile_31} -
    -
    - -
    -
    -
    - -
    {lang dzapp_haodai:mobile_32} -
    -
    - -
    -
    -
    -
    - {lang dzapp_haodai:mobile_33} -
    -
    -
    - - -
    - -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_36} -
    -
    -
    -
    - - -
    -
    - - %
    -
    -
    -
    -
    -
    -
    -

    {lang dzapp_haodai:mobile_41}

    -
    -
    -
    - - %
    -
    -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_42} - - -
    -
    -
    - -
    -
    -
    -
    - - - - - - - - - -
    {lang dzapp_haodai:mobile_46}0{lang dzapp_haodai:mobile_58}
    {lang dzapp_haodai:mobile_47}0{lang dzapp_haodai:mobile_58}
    -
    -
    - - - - - - - - - -
    {lang dzapp_haodai:mobile_48}0{lang dzapp_haodai:mobile_58}
    {lang dzapp_haodai:mobile_49}0{lang dzapp_haodai:mobile_58}
    -
    -
    - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:mobile_50}{lang dzapp_haodai:mobile_51}{lang dzapp_haodai:mobile_52}{lang dzapp_haodai:mobile_53}{lang dzapp_haodai:mobile_54}
    00000
    - -
    - {lang dzapp_haodai:mobile_55} - -
    -
    - - - - - - - - - + + + + + + + <!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:calc_chedai_htm_3}
    +
    +
    +
    +
    +
    +
    + +
    {lang dzapp_haodai:mobile_31} +
    +
    + +
    +
    +
    + +
    {lang dzapp_haodai:mobile_32} +
    +
    + +
    +
    +
    +
    + {lang dzapp_haodai:mobile_33} +
    +
    +
    + + +
    + +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_36} +
    +
    +
    +
    + + +
    +
    + + %
    +
    +
    +
    +
    +
    +
    +

    {lang dzapp_haodai:mobile_41}

    +
    +
    +
    + + %
    +
    +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_42} + + +
    +
    +
    + +
    +
    +
    +
    + + + + + + + + + +
    {lang dzapp_haodai:mobile_46}0{lang dzapp_haodai:mobile_58}
    {lang dzapp_haodai:mobile_47}0{lang dzapp_haodai:mobile_58}
    +
    +
    + + + + + + + + + +
    {lang dzapp_haodai:mobile_48}0{lang dzapp_haodai:mobile_58}
    {lang dzapp_haodai:mobile_49}0{lang dzapp_haodai:mobile_58}
    +
    +
    + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:mobile_50}{lang dzapp_haodai:mobile_51}{lang dzapp_haodai:mobile_52}{lang dzapp_haodai:mobile_53}{lang dzapp_haodai:mobile_54}
    00000
    + +
    + {lang dzapp_haodai:mobile_55} + +
    +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/city.htm b/source/plugin/dzapp_haodai/template/touch/city.htm index 99c063c..d1d2435 100644 --- a/source/plugin/dzapp_haodai/template/touch/city.htm +++ b/source/plugin/dzapp_haodai/template/touch/city.htm @@ -1,84 +1,84 @@ - - - - - - -{lang dzapp_haodai:switch_city} - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:switch_city}
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_19} {$zones[$city]}
    -
    -
    -
    -
    {lang dzapp_haodai:city_sort_1}
    -
    - -
    -
    - -
    -
    {$key}({lang dzapp_haodai:mobile_20}{$key}{lang dzapp_haodai:mobile_21})
    -
    - -
    -
    - -
    - - - - - - - - + + + + + + +{lang dzapp_haodai:switch_city} + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:switch_city}
    +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:mobile_19} {$zones[$city]}
    +
    +
    +
    +
    {lang dzapp_haodai:city_sort_1}
    +
    + +
    +
    + +
    +
    {$key}({lang dzapp_haodai:mobile_20}{$key}{lang dzapp_haodai:mobile_21})
    +
    + +
    +
    + +
    + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/fastloan.htm b/source/plugin/dzapp_haodai/template/touch/fastloan.htm index ea2451b..77c168c 100644 --- a/source/plugin/dzapp_haodai/template/touch/fastloan.htm +++ b/source/plugin/dzapp_haodai/template/touch/fastloan.htm @@ -1,84 +1,55 @@ - - - - - - -{lang dzapp_haodai:mobile_59} - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:mobile_59}
    -
    -
    -
    - - -
    -
    -
    {lang dzapp_haodai:mobile_61}
    -
    -
    -
    {lang dzapp_haodai:mobile_62}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:mobile_64}
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:search_htm_5}
    -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:apply_htm_7}
    -
    -
    -
    -
    -
    -
    -
    - - - - - - - - - - + + + + + + +{lang dzapp_haodai:mobile_59} + + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:mobile_59}
    +
    +
    +
    +
    + +
    + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/list.htm b/source/plugin/dzapp_haodai/template/touch/list.htm index e72c698..051e5a3 100644 --- a/source/plugin/dzapp_haodai/template/touch/list.htm +++ b/source/plugin/dzapp_haodai/template/touch/list.htm @@ -1,312 +1,312 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:news_htm_2}
    -
    - - {$pageinfo} -
    - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    +
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:news_htm_2}
    +
    + + {$pageinfo} +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/main_1.htm b/source/plugin/dzapp_haodai/template/touch/main_1.htm index 6311001..adcbc70 100644 --- a/source/plugin/dzapp_haodai/template/touch/main_1.htm +++ b/source/plugin/dzapp_haodai/template/touch/main_1.htm @@ -1,372 +1,372 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_7}
    - -
    -
    - {lang dzapp_haodai:apply_htm_12} - -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_8} -
    -
    -
    - -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    • {lang dzapp_haodai:mobile_3}
    • -
    • {lang dzapp_haodai:mobile_4}
    • -
    • {lang dzapp_haodai:mobile_5}
    • -
    • {lang dzapp_haodai:main_htm_46}
    • -
      -
    -
    -
    -

    {lang dzapp_haodai:main_htm_38}

    - - - - - - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:apply_htm_7}
    + +
    +
    + {lang dzapp_haodai:apply_htm_12} + +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_8} +
    +
    +
    + +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    • {lang dzapp_haodai:mobile_3}
    • +
    • {lang dzapp_haodai:mobile_4}
    • +
    • {lang dzapp_haodai:mobile_5}
    • +
    • {lang dzapp_haodai:main_htm_46}
    • +
      +
    +
    +
    +

    {lang dzapp_haodai:main_htm_38}

    + + + + + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/main_2.htm b/source/plugin/dzapp_haodai/template/touch/main_2.htm index 6311001..adcbc70 100644 --- a/source/plugin/dzapp_haodai/template/touch/main_2.htm +++ b/source/plugin/dzapp_haodai/template/touch/main_2.htm @@ -1,372 +1,372 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_7}
    - -
    -
    - {lang dzapp_haodai:apply_htm_12} - -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_8} -
    -
    -
    - -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    • {lang dzapp_haodai:mobile_3}
    • -
    • {lang dzapp_haodai:mobile_4}
    • -
    • {lang dzapp_haodai:mobile_5}
    • -
    • {lang dzapp_haodai:main_htm_46}
    • -
      -
    -
    -
    -

    {lang dzapp_haodai:main_htm_38}

    - - - - - - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:apply_htm_7}
    + +
    +
    + {lang dzapp_haodai:apply_htm_12} + +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_8} +
    +
    +
    + +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    • {lang dzapp_haodai:mobile_3}
    • +
    • {lang dzapp_haodai:mobile_4}
    • +
    • {lang dzapp_haodai:mobile_5}
    • +
    • {lang dzapp_haodai:main_htm_46}
    • +
      +
    +
    +
    +

    {lang dzapp_haodai:main_htm_38}

    + + + + + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/main_3.htm b/source/plugin/dzapp_haodai/template/touch/main_3.htm index 6311001..adcbc70 100644 --- a/source/plugin/dzapp_haodai/template/touch/main_3.htm +++ b/source/plugin/dzapp_haodai/template/touch/main_3.htm @@ -1,372 +1,372 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    {lang dzapp_haodai:apply_htm_7}
    - -
    -
    - {lang dzapp_haodai:apply_htm_12} - -
    -
    -
    -
    -
    - {lang dzapp_haodai:mobile_8} -
    -
    -
    - -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    • {lang dzapp_haodai:mobile_3}
    • -
    • {lang dzapp_haodai:mobile_4}
    • -
    • {lang dzapp_haodai:mobile_5}
    • -
    • {lang dzapp_haodai:main_htm_46}
    • -
      -
    -
    -
    -

    {lang dzapp_haodai:main_htm_38}

    - - - - - - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    {lang dzapp_haodai:apply_htm_7}
    + +
    +
    + {lang dzapp_haodai:apply_htm_12} + +
    +
    +
    +
    +
    + {lang dzapp_haodai:mobile_8} +
    +
    +
    + +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    • {lang dzapp_haodai:mobile_3}
    • +
    • {lang dzapp_haodai:mobile_4}
    • +
    • {lang dzapp_haodai:mobile_5}
    • +
    • {lang dzapp_haodai:main_htm_46}
    • +
      +
    +
    +
    +

    {lang dzapp_haodai:main_htm_38}

    + + + + + + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/news.htm b/source/plugin/dzapp_haodai/template/touch/news.htm index d1c69bf..eeecbc2 100644 --- a/source/plugin/dzapp_haodai/template/touch/news.htm +++ b/source/plugin/dzapp_haodai/template/touch/news.htm @@ -1,313 +1,313 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    - {lang dzapp_haodai:mobile_11} - {lang dzapp_haodai:search_htm_2} -
    -
    -
    {lang dzapp_haodai:main_htm_46}
    -
    -
    -
    -
    -
    -
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:news_htm_2}
    -
    -
    -
    $result[title]
    -
    $result[content]
    -
    -
    -
    {lang dzapp_haodai:main_htm_46}
    -
    - -
    -
    - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    + {lang dzapp_haodai:mobile_11} + {lang dzapp_haodai:search_htm_2} +
    +
    +
    {lang dzapp_haodai:main_htm_46}
    +
    +
    +
    +
    +
    +
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:news_htm_2}
    +
    +
    +
    $result[title]
    +
    $result[content]
    +
    +
    +
    {lang dzapp_haodai:main_htm_46}
    +
    + +
    +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/search.htm b/source/plugin/dzapp_haodai/template/touch/search.htm index aefa5d8..c189c1b 100644 --- a/source/plugin/dzapp_haodai/template/touch/search.htm +++ b/source/plugin/dzapp_haodai/template/touch/search.htm @@ -1,382 +1,382 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - -
    - -
    -
    - {lang dzapp_haodai:mobile_11} -
    -
    -
    {lang dzapp_haodai:mobile_10}
    -
    -
    -
    -
    -
      -
    • {lang dzapp_haodai:main_htm_12}
    • -
    • {lang dzapp_haodai:main_htm_14}
    • -
    • {lang dzapp_haodai:main_htm_15}
    • -
    • {lang dzapp_haodai:main_htm_16}
    • -
    -
    -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[xiaofei][profession]} - - -
    -
    - {$filtermn[xiaofei][credit_record]} - - -
    -
    - {$filtermn[xiaofei][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[qiye][profession]} - - -
    -
    - {$filtermn[qiye][credit_record]} - - -
    -
    - {$filtermn[qiye][has_house]} - - -
    - -
    -
    -
    - - - -
    -
    - {lang dzapp_haodai:calc_chedai_htm_25} - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[gouche][has_house]} - - -
    -
    - {$filtermn[gouche][car_number]} - - -
    -
    - {$filtermn[gouche][car_use]} - - -
    -
    - {$filtermn[gouche][car_type]} - - -
    - -
    -
    -
    - - - -
    -
    -
    - - {lang dzapp_haodai:apply_htm_7} -
    -
    - - {lang dzapp_haodai:apply_htm_9} - -
    -
    -
    - {$filtermn[goufang][house_type]} - - -
    -
    - {$filtermn[goufang][fitsr_suite]} - - -
    -
    - {$filtermn[goufang][second_hand_house]} - - -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    - - - {$zones[$city]} - -
    -
    -
    - 10 - {lang dzapp_haodai:apply_htm_7} - 12 - {lang dzapp_haodai:apply_htm_9} -
    -
    -
    - - - - -
    -
      - -
    • -
      -
      $value[name]
      -
      - - -
        - - $value2[name] - -
      -
    • - -
      -
    -
    - - - - -
    - -
    - - - -
    - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + +
    + +
    +
    + {lang dzapp_haodai:mobile_11} +
    +
    +
    {lang dzapp_haodai:mobile_10}
    +
    +
    +
    +
    +
      +
    • {lang dzapp_haodai:main_htm_12}
    • +
    • {lang dzapp_haodai:main_htm_14}
    • +
    • {lang dzapp_haodai:main_htm_15}
    • +
    • {lang dzapp_haodai:main_htm_16}
    • +
    +
    +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[xiaofei][profession]} + + +
    +
    + {$filtermn[xiaofei][credit_record]} + + +
    +
    + {$filtermn[xiaofei][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[qiye][profession]} + + +
    +
    + {$filtermn[qiye][credit_record]} + + +
    +
    + {$filtermn[qiye][has_house]} + + +
    + +
    +
    +
    + + + +
    +
    + {lang dzapp_haodai:calc_chedai_htm_25} + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[gouche][has_house]} + + +
    +
    + {$filtermn[gouche][car_number]} + + +
    +
    + {$filtermn[gouche][car_use]} + + +
    +
    + {$filtermn[gouche][car_type]} + + +
    + +
    +
    +
    + + + +
    +
    +
    + + {lang dzapp_haodai:apply_htm_7} +
    +
    + + {lang dzapp_haodai:apply_htm_9} + +
    +
    +
    + {$filtermn[goufang][house_type]} + + +
    +
    + {$filtermn[goufang][fitsr_suite]} + + +
    +
    + {$filtermn[goufang][second_hand_house]} + + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    + + + {$zones[$city]} + +
    +
    +
    + 10 + {lang dzapp_haodai:apply_htm_7} + 12 + {lang dzapp_haodai:apply_htm_9} +
    +
    +
    + + + + +
    +
      + +
    • +
      +
      $value[name]
      +
      + + +
        + + $value2[name] + +
      +
    • + +
      +
    +
    + + + + +
    + +
    + + + +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/touch/view.htm b/source/plugin/dzapp_haodai/template/touch/view.htm index 17690ff..03e9e7f 100644 --- a/source/plugin/dzapp_haodai/template/touch/view.htm +++ b/source/plugin/dzapp_haodai/template/touch/view.htm @@ -1,136 +1,136 @@ - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! - - - - - - - -
    - -
    -
    -
    {lang dzapp_haodai:view_htm_2}
    -
    -
    -
    -
    -
    -
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:view_htm_2}
    -
    -
    -
    {$xd[bank_name]} | {$xd[name]}
    -
    -
    -
      -
    • -
      {lang dzapp_haodai:view_htm_4} {lang dzapp_haodai:view_htm_8} -
      -
      -
      {$money}{lang dzapp_haodai:apply_htm_7} {$month}{lang dzapp_haodai:apply_htm_199} -
      -
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_12} {lang dzapp_haodai:view_htm_15} -
      -
      -
      {$xd[data][month_repay]}{lang dzapp_haodai:apply_htm_39} {$xd[data][total_interest]}{lang dzapp_haodai:apply_htm_7} -
      -
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_6} {lang dzapp_haodai:view_htm_10} -
      -
      -
      {$xd[limit_min]}-{$xd[limit_max]} {lang dzapp_haodai:apply_htm_7} {$xd[date_min]}-{$xd[date_max]}{lang dzapp_haodai:apply_htm_9} -
      -
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_14}{$xd[refund_type_name]}
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_17}{$xd[give_time]}{lang dzapp_haodai:view_htm_18}{$xd[audit_time]}{lang dzapp_haodai:view_htm_19}
      -
    • -
    • -
      {lang dzapp_haodai:view_htm_20}{lang dzapp_haodai:view_htm_21} {$xd[year_rate]}% {lang dzapp_haodai:view_htm_22} {$xd[month_manage]}% {lang dzapp_haodai:view_htm_23} {$xd[once_charge]}% -
      -
      -
    • -
    -
    -
    {lang dzapp_haodai:mobile_22} {$xd[rel_succ_count]} {lang dzapp_haodai:mobile_23}
    -
    -
    -
    {lang dzapp_haodai:mobile_24}
    -
    -
    -
    -
    - - - - - - -
    {lang dzapp_haodai:view_htm_31}{lang dzapp_haodai:view_htm_32}{lang dzapp_haodai:view_htm_30}
    -
    -
    -
    {$xd[apply]}
    -
    - - -
    - -
    -
    - - - - - - - - - + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz! + + + + + + + +
    + +
    +
    +
    {lang dzapp_haodai:view_htm_2}
    +
    +
    +
    +
    +
    +
    $_G[setting][bbname] > {lang dzapp_haodai:apply_htm_1} > {lang dzapp_haodai:view_htm_2}
    +
    +
    +
    {$xd[bank_name]} | {$xd[name]}
    +
    +
    +
      +
    • +
      {lang dzapp_haodai:view_htm_4} {lang dzapp_haodai:view_htm_8} +
      +
      +
      {$money}{lang dzapp_haodai:apply_htm_7} {$month}{lang dzapp_haodai:apply_htm_199} +
      +
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_12} {lang dzapp_haodai:view_htm_15} +
      +
      +
      {$xd[data][month_repay]}{lang dzapp_haodai:apply_htm_39} {$xd[data][total_interest]}{lang dzapp_haodai:apply_htm_7} +
      +
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_6} {lang dzapp_haodai:view_htm_10} +
      +
      +
      {$xd[limit_min]}-{$xd[limit_max]} {lang dzapp_haodai:apply_htm_7} {$xd[date_min]}-{$xd[date_max]}{lang dzapp_haodai:apply_htm_9} +
      +
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_14}{$xd[refund_type_name]}
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_17}{$xd[give_time]}{lang dzapp_haodai:view_htm_18}{$xd[audit_time]}{lang dzapp_haodai:view_htm_19}
      +
    • +
    • +
      {lang dzapp_haodai:view_htm_20}{lang dzapp_haodai:view_htm_21} {$xd[year_rate]}% {lang dzapp_haodai:view_htm_22} {$xd[month_manage]}% {lang dzapp_haodai:view_htm_23} {$xd[once_charge]}% +
      +
      +
    • +
    +
    +
    {lang dzapp_haodai:mobile_22} {$xd[rel_succ_count]} {lang dzapp_haodai:mobile_23}
    +
    +
    +
    {lang dzapp_haodai:mobile_24}
    +
    +
    +
    +
    + + + + + + +
    {lang dzapp_haodai:view_htm_31}{lang dzapp_haodai:view_htm_32}{lang dzapp_haodai:view_htm_30}
    +
    +
    +
    {$xd[apply]}
    +
    + + +
    + +
    +
    + + + + + + + + + diff --git a/source/plugin/dzapp_haodai/template/view.htm b/source/plugin/dzapp_haodai/template/view.htm index 3d38889..6010471 100644 --- a/source/plugin/dzapp_haodai/template/view.htm +++ b/source/plugin/dzapp_haodai/template/view.htm @@ -1,288 +1,288 @@ - - - - - - - - - - -
    -
    - $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:view_htm_2} -
    - -
    -
    -
    -
    - -
    -
    {lang dzapp_haodai:view_htm_3}
    -
    {$xd[assure_type_name]}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {lang dzapp_haodai:view_htm_4}{$money}{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:view_htm_6}{$xd[limit_min]}-{$xd[limit_max]} {lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:view_htm_8}{$month}{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:view_htm_10}{$xd[date_min]}-{$xd[date_max]}{lang dzapp_haodai:apply_htm_9}
    {lang dzapp_haodai:view_htm_12}{$xd[data][month_repay]}{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:view_htm_14}{$xd[refund_type_name]}
    {lang dzapp_haodai:view_htm_15}{$xd[data][total_interest]}{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:view_htm_17}{$xd[give_time]}{lang dzapp_haodai:view_htm_18}{$xd[audit_time]}{lang dzapp_haodai:view_htm_19}
    {lang dzapp_haodai:view_htm_20}{lang dzapp_haodai:view_htm_21} {$xd[year_rate]}% {lang dzapp_haodai:view_htm_22} {$xd[month_manage]}% {lang dzapp_haodai:view_htm_23} {$xd[once_charge]}%
    - {lang dzapp_haodai:view_htm_24} -
    - {lang dzapp_haodai:view_htm_25} - {lang dzapp_haodai:view_htm_26} - {lang dzapp_haodai:view_htm_27} - {lang dzapp_haodai:view_htm_28} -
    -

    {lang dzapp_haodai:view_htm_29}

    -
    -
    {lang dzapp_haodai:view_htm_30}
    - {$xd[content]} -
    -
    -
    {lang dzapp_haodai:view_htm_31}
    - {$xd[apply]} -
    -
    -
    {lang dzapp_haodai:view_htm_32}
    - {$xd[stuff]} -
    -

    *{lang dzapp_haodai:view_htm_33}

    - -
    -
    - - -
    -

    {lang dzapp_haodai:more}{$money}{lang dzapp_haodai:related_recommend}

    - - - - - - - -
    - {$value[bank_name]} - - {$value[bank_name]} - {$value[name]} {$value[assure_type_name]} - -

    {lang dzapp_haodai:view_htm_15}{$value[data][total_interest]}{lang dzapp_haodai:apply_htm_7} {lang dzapp_haodai:fenqi} {$value[data][month_repay]}{lang dzapp_haodai:apply_htm_39}/{lang dzapp_haodai:apply_htm_199}

    -
    -
    - -
    - -
    -

    {lang dzapp_haodai:view_htm_73}

    - -
    -
    -
    -
    - + + + + + + + + + + +
    +
    + $_G[setting][bbname] {lang dzapp_haodai:apply_htm_1} {lang dzapp_haodai:view_htm_2} +
    + +
    +
    +
    +
    + +
    +
    {lang dzapp_haodai:view_htm_3}
    +
    {$xd[assure_type_name]}
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang dzapp_haodai:view_htm_4}{$money}{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:view_htm_6}{$xd[limit_min]}-{$xd[limit_max]} {lang dzapp_haodai:apply_htm_7}
    {lang dzapp_haodai:view_htm_8}{$month}{lang dzapp_haodai:apply_htm_199}{lang dzapp_haodai:view_htm_10}{$xd[date_min]}-{$xd[date_max]}{lang dzapp_haodai:apply_htm_9}
    {lang dzapp_haodai:view_htm_12}{$xd[data][month_repay]}{lang dzapp_haodai:apply_htm_39}{lang dzapp_haodai:view_htm_14}{$xd[refund_type_name]}
    {lang dzapp_haodai:view_htm_15}{$xd[data][total_interest]}{lang dzapp_haodai:apply_htm_7}{lang dzapp_haodai:view_htm_17}{$xd[give_time]}{lang dzapp_haodai:view_htm_18}{$xd[audit_time]}{lang dzapp_haodai:view_htm_19}
    {lang dzapp_haodai:view_htm_20}{lang dzapp_haodai:view_htm_21} {$xd[year_rate]}% {lang dzapp_haodai:view_htm_22} {$xd[month_manage]}% {lang dzapp_haodai:view_htm_23} {$xd[once_charge]}%
    + {lang dzapp_haodai:view_htm_24} +
    + {lang dzapp_haodai:view_htm_25} + {lang dzapp_haodai:view_htm_26} + {lang dzapp_haodai:view_htm_27} + {lang dzapp_haodai:view_htm_28} +
    +

    {lang dzapp_haodai:view_htm_29}

    +
    +
    {lang dzapp_haodai:view_htm_30}
    + {$xd[content]} +
    +
    +
    {lang dzapp_haodai:view_htm_31}
    + {$xd[apply]} +
    +
    +
    {lang dzapp_haodai:view_htm_32}
    + {$xd[stuff]} +
    +

    *{lang dzapp_haodai:view_htm_33}

    + +
    +
    + + +
    +

    {lang dzapp_haodai:more}{$money}{lang dzapp_haodai:related_recommend}

    + + + + + + + +
    + {$value[bank_name]} + + {$value[bank_name]} + {$value[name]} {$value[assure_type_name]} + +

    {lang dzapp_haodai:view_htm_15}{$value[data][total_interest]}{lang dzapp_haodai:apply_htm_7} {lang dzapp_haodai:fenqi} {$value[data][month_repay]}{lang dzapp_haodai:apply_htm_39}/{lang dzapp_haodai:apply_htm_199}

    +
    +
    + +
    + +
    +

    {lang dzapp_haodai:view_htm_73}

    + +
    +
    +
    +
    + \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/uninstall.php b/source/plugin/dzapp_haodai/uninstall.php index b2d3386..6085865 100644 --- a/source/plugin/dzapp_haodai/uninstall.php +++ b/source/plugin/dzapp_haodai/uninstall.php @@ -1,16 +1,21 @@ - \ No newline at end of file diff --git a/source/plugin/dzapp_haodai/upgrade.php b/source/plugin/dzapp_haodai/upgrade.php index e1f493d..47a4de5 100644 --- a/source/plugin/dzapp_haodai/upgrade.php +++ b/source/plugin/dzapp_haodai/upgrade.php @@ -1,18 +1,19 @@ - - * @LastModTime 2014/5/21 17:03 - */ - - -if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) exit('Access Denied!'); -$request_url = str_replace('&accept=1','',$_SERVER['QUERY_STRING']); -if(!$_GET['accept']){ - cpmsg($installlang['rewrite_tip'], "{$request_url}&accept=1", 'form', array(), '', TRUE, $_G['siteurl']."admin.php?{$request_url}&accept=1"); -} - -$finish = TRUE; + + * @LastModTime 2014/5/21 17:03 + */ + + +if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) exit('Access Denied!'); + +$request_url = str_replace('&accept=1','',$_SERVER['QUERY_STRING']); +if(!$_GET['accept']){ + cpmsg($installlang['rewrite_tip'], "{$request_url}&accept=1", 'form', array(), '', TRUE, $_G['siteurl']."admin.php?{$request_url}&accept=1"); +} + +$finish = TRUE; ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/buyattachment.php b/source/plugin/mobile/api/1/buyattachment.php index 0907588..113e6a2 100644 --- a/source/plugin/mobile/api/1/buyattachment.php +++ b/source/plugin/mobile/api/1/buyattachment.php @@ -1,39 +1,39 @@ - $GLOBALS['attach']['filename'], - 'description' => $GLOBALS['attach']['description'], - 'authorid' => $GLOBALS['attach']['uid'], - 'author' => $GLOBALS['attach']['author'], - 'price' => $GLOBALS['attach']['price'], - 'balance' => $GLOBALS['balance'], - 'credit' => mobile_core::getvalues($_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]], array('title', 'unit')), - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $GLOBALS['attach']['filename'], + 'description' => $GLOBALS['attach']['description'], + 'authorid' => $GLOBALS['attach']['uid'], + 'author' => $GLOBALS['attach']['author'], + 'price' => $GLOBALS['attach']['price'], + 'balance' => $GLOBALS['balance'], + 'credit' => mobile_core::getvalues($_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]], array('title', 'unit')), + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/buythread.php b/source/plugin/mobile/api/1/buythread.php index 72f78a6..e67607e 100644 --- a/source/plugin/mobile/api/1/buythread.php +++ b/source/plugin/mobile/api/1/buythread.php @@ -1,37 +1,37 @@ - $GLOBALS['thread']['authorid'], - 'author' => $GLOBALS['thread']['author'], - 'price' => $GLOBALS['thread']['price'], - 'balance' => $GLOBALS['balance'], - 'credit' => mobile_core::getvalues($_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]], array('title', 'unit')), - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $GLOBALS['thread']['authorid'], + 'author' => $GLOBALS['thread']['author'], + 'price' => $GLOBALS['thread']['price'], + 'balance' => $GLOBALS['balance'], + 'credit' => mobile_core::getvalues($_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]], array('title', 'unit')), + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/checkpost.php b/source/plugin/mobile/api/1/checkpost.php index 62b08c0..6c870ac 100644 --- a/source/plugin/mobile/api/1/checkpost.php +++ b/source/plugin/mobile/api/1/checkpost.php @@ -1,31 +1,31 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/1/connect.php b/source/plugin/mobile/api/1/connect.php index e8ebc3c..5df6729 100644 --- a/source/plugin/mobile/api/1/connect.php +++ b/source/plugin/mobile/api/1/connect.php @@ -1,52 +1,52 @@ -fetch($conopenid); - if(!$connect_guest) { - dsetcookie('con_auth_hash'); - showmessage('qqconnect:connect_login_first'); - } - } - } - - function output() { - if(!empty($_POST)) { - mobile_core::result(mobile_core::variable()); - } else { - global $_G; - $bbrulehash = $_G['setting']['bbrules'] ? substr(md5(FORMHASH), 0, 8) : ''; - $isconnect = $_G['qc']['connect_app_id'] && $_G['qc']['connect_openid']; - include template('mobile:register'); - exit; - } - } - -} - +fetch($conopenid); + if(!$connect_guest) { + dsetcookie('con_auth_hash'); + showmessage('qqconnect:connect_login_first'); + } + } + } + + function output() { + if(!empty($_POST)) { + mobile_core::result(mobile_core::variable()); + } else { + global $_G; + $bbrulehash = $_G['setting']['bbrules'] ? substr(md5(FORMHASH), 0, 8) : ''; + $isconnect = $_G['qc']['connect_app_id'] && $_G['qc']['connect_openid']; + include template('mobile:register'); + exit; + } + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/favforum.php b/source/plugin/mobile/api/1/favforum.php index 7aa3323..055b2a0 100644 --- a/source/plugin/mobile/api/1/favforum.php +++ b/source/plugin/mobile/api/1/favforum.php @@ -1,32 +1,32 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/1/favthread.php b/source/plugin/mobile/api/1/favthread.php index baced71..e4fea6d 100644 --- a/source/plugin/mobile/api/1/favthread.php +++ b/source/plugin/mobile/api/1/favthread.php @@ -1,31 +1,31 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/1/forumdisplay.php b/source/plugin/mobile/api/1/forumdisplay.php index ceb4b80..6758dad 100644 --- a/source/plugin/mobile/api/1/forumdisplay.php +++ b/source/plugin/mobile/api/1/forumdisplay.php @@ -1,64 +1,64 @@ - $thread) { - $_G['forum_threadlist'][$k]['cover'] = array(); - if($thread['cover']) { - $_img = @getimagesize($thread['coverpath']); - if($_img) { - $_G['forum_threadlist'][$k]['cover'] = array('w' => $_img[0], 'h' => $_img[1]); - } - } - if(!$thread['authorid'] || !$thread['author']) { - $_G['forum_threadlist'][$k]['author'] = $_G['setting']['anonymoustext']; - $_G['forum_threadlist'][$k]['authorid'] = 0; - } - } - $variable = array( - 'forum' => mobile_core::getvalues($_G['forum'], array('fid', 'fup', 'name', 'threads', 'posts', 'rules', 'autoclose', 'password')), - 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle')), - 'forum_threadlist' => mobile_core::getvalues($_G['forum_threadlist'], array('/^\d+$/'), array('tid', 'author', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest', 'cover')), - 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts')), - 'tpp' => $_G['tpp'], - 'page' => $GLOBALS['page'], - ); - if(!empty($_G['forum']['threadtypes']) || !empty($_GET['debug'])) { - $variable['threadtypes'] = $_G['forum']['threadtypes']; - } - if(!empty($_G['forum']['threadsorts']) || !empty($_GET['debug'])) { - $variable['threadsorts'] = $_G['forum']['threadsorts']; - } - $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $thread) { + $_G['forum_threadlist'][$k]['cover'] = array(); + if($thread['cover']) { + $_img = @getimagesize($thread['coverpath']); + if($_img) { + $_G['forum_threadlist'][$k]['cover'] = array('w' => $_img[0], 'h' => $_img[1]); + } + } + if(!$thread['authorid'] || !$thread['author']) { + $_G['forum_threadlist'][$k]['author'] = $_G['setting']['anonymoustext']; + $_G['forum_threadlist'][$k]['authorid'] = 0; + } + } + $variable = array( + 'forum' => mobile_core::getvalues($_G['forum'], array('fid', 'fup', 'name', 'threads', 'posts', 'rules', 'autoclose', 'password')), + 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle')), + 'forum_threadlist' => mobile_core::getvalues($_G['forum_threadlist'], array('/^\d+$/'), array('tid', 'author', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest', 'cover')), + 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts')), + 'tpp' => $_G['tpp'], + 'page' => $GLOBALS['page'], + ); + if(!empty($_G['forum']['threadtypes']) || !empty($_GET['debug'])) { + $variable['threadtypes'] = $_G['forum']['threadtypes']; + } + if(!empty($_G['forum']['threadsorts']) || !empty($_GET['debug'])) { + $variable['threadsorts'] = $_G['forum']['threadsorts']; + } + $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/forumindex.php b/source/plugin/mobile/api/1/forumindex.php index 5aa0629..0ed5180 100644 --- a/source/plugin/mobile/api/1/forumindex.php +++ b/source/plugin/mobile/api/1/forumindex.php @@ -1,41 +1,41 @@ - $_G['member']['email'], - 'member_credits' => $_G['member']['credits'], - 'setting_bbclosed' => $_G['setting']['bbclosed'], - 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle', '/^allow.+?$/')), - 'catlist' => array_values(mobile_core::getvalues($GLOBALS['catlist'], array('/^\d+$/'), array('fid', 'name', 'forums'))), - 'forumlist' => array_values(mobile_core::getvalues($GLOBALS['forumlist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'posts', 'redirect', 'todayposts', 'description'))), - ); - } - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $_G['member']['email'], + 'member_credits' => $_G['member']['credits'], + 'setting_bbclosed' => $_G['setting']['bbclosed'], + 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle', '/^allow.+?$/')), + 'catlist' => array_values(mobile_core::getvalues($GLOBALS['catlist'], array('/^\d+$/'), array('fid', 'name', 'forums'))), + 'forumlist' => array_values(mobile_core::getvalues($GLOBALS['forumlist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'posts', 'redirect', 'todayposts', 'description'))), + ); + } + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/forumnav.php b/source/plugin/mobile/api/1/forumnav.php index df4d113..c0c3807 100644 --- a/source/plugin/mobile/api/1/forumnav.php +++ b/source/plugin/mobile/api/1/forumnav.php @@ -1,80 +1,80 @@ -'0' AND a.fid=f.fid - WHERE f.status='1' ORDER BY f.type, f.displayorder" - : "SELECT f.fid, f.type, f.name, f.fup, f.status, ff.password, ff.redirect, ff.viewperm, ff.postperm, ff.threadtypes, ff.threadsorts - FROM ".DB::table('forum_forum')." f - LEFT JOIN ".DB::table('forum_forumfield')." ff USING(fid) - WHERE f.status='1' ORDER BY f.type, f.displayorder"; - - $query = DB::query($sql); - while($forum = DB::fetch($query)) { - if($forum['redirect'] || $forum['password']) { - continue; - } - if(!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm']))) { - if($forum['threadsorts']) { - $forum['threadsorts'] = mobile_core::getvalues(unserialize($forum['threadsorts']), array('required', 'types')); - } - if($forum['threadtypes']) { - $forum['threadtypes'] = unserialize($forum['threadtypes']); - $unsetthreadtype = false; - if($_G['adminid'] == 3 && strpos($forum['moderators'], $_G['username']) === false) { - $unsetthreadtype = true; - } - if($_G['adminid'] == 0) { - $unsetthreadtype = true; - } - if($unsetthreadtype) { - foreach ($forum['threadtypes']['moderators'] AS $k => $v) { - if(!empty($v)) { - unset($forum['threadtypes']['types'][$k]); - } - } - } - $flag = 0; - foreach($forum['threadtypes']['types'] as $k => $v) { - if($k == 0) { - $flag = 1; - break; - } - } - if($flag == 1) { - krsort($forum['threadtypes']['types']); - } - $forum['threadtypes'] = mobile_core::getvalues($forum['threadtypes'], array('required', 'types')); - } - $forums[] = mobile_core::getvalues($forum, array('fid', 'type', 'name', 'fup', 'viewperm', 'postperm', 'status', 'threadsorts', 'threadtypes')); - } - } - $variable['forums'] = $forums; - mobile_core::result(mobile_core::variable($variable)); - } - - function output() {} - -} - +'0' AND a.fid=f.fid + WHERE f.status='1' ORDER BY f.type, f.displayorder" + : "SELECT f.fid, f.type, f.name, f.fup, f.status, ff.password, ff.redirect, ff.viewperm, ff.postperm, ff.threadtypes, ff.threadsorts + FROM ".DB::table('forum_forum')." f + LEFT JOIN ".DB::table('forum_forumfield')." ff USING(fid) + WHERE f.status='1' ORDER BY f.type, f.displayorder"; + + $query = DB::query($sql); + while($forum = DB::fetch($query)) { + if($forum['redirect'] || $forum['password']) { + continue; + } + if(!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm']))) { + if($forum['threadsorts']) { + $forum['threadsorts'] = mobile_core::getvalues(unserialize($forum['threadsorts']), array('required', 'types')); + } + if($forum['threadtypes']) { + $forum['threadtypes'] = unserialize($forum['threadtypes']); + $unsetthreadtype = false; + if($_G['adminid'] == 3 && strpos($forum['moderators'], $_G['username']) === false) { + $unsetthreadtype = true; + } + if($_G['adminid'] == 0) { + $unsetthreadtype = true; + } + if($unsetthreadtype) { + foreach ($forum['threadtypes']['moderators'] AS $k => $v) { + if(!empty($v)) { + unset($forum['threadtypes']['types'][$k]); + } + } + } + $flag = 0; + foreach($forum['threadtypes']['types'] as $k => $v) { + if($k == 0) { + $flag = 1; + break; + } + } + if($flag == 1) { + krsort($forum['threadtypes']['types']); + } + $forum['threadtypes'] = mobile_core::getvalues($forum['threadtypes'], array('required', 'types')); + } + $forums[] = mobile_core::getvalues($forum, array('fid', 'type', 'name', 'fup', 'viewperm', 'postperm', 'status', 'threadsorts', 'threadtypes')); + } + } + $variable['forums'] = $forums; + mobile_core::result(mobile_core::variable($variable)); + } + + function output() {} + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/forumupload.php b/source/plugin/mobile/api/1/forumupload.php index d9a62d9..9b3d181 100644 --- a/source/plugin/mobile/api/1/forumupload.php +++ b/source/plugin/mobile/api/1/forumupload.php @@ -1,27 +1,27 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/1/friend.php b/source/plugin/mobile/api/1/friend.php index 8bf573c..3b718dc 100644 --- a/source/plugin/mobile/api/1/friend.php +++ b/source/plugin/mobile/api/1/friend.php @@ -1,34 +1,34 @@ - array_values(mobile_core::getvalues($GLOBALS['list'], array('/^.+?$/'), array('uid', 'username'))), - 'count' => $GLOBALS['count'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + array_values(mobile_core::getvalues($GLOBALS['list'], array('/^.+?$/'), array('uid', 'username'))), + 'count' => $GLOBALS['count'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/hotforum.php b/source/plugin/mobile/api/1/hotforum.php index d794d1a..81974f1 100644 --- a/source/plugin/mobile/api/1/hotforum.php +++ b/source/plugin/mobile/api/1/hotforum.php @@ -1,47 +1,47 @@ - 3600) { - $query = DB::query("SELECT f.*, ff.redirect FROM ".DB::table('forum_forum')." f LEFT JOIN ".DB::table('forum_forumfield')." ff ON ff.fid=f.fid WHERE f.status='1' AND f.type='forum' ORDER BY f.todayposts DESC"); - $data = array(); - while($row = DB::fetch($query)) { - if($row['redirect']) { - continue; - } - list($row['lastpost_tid'], $row['lastpost_subject'], $row['lastpost'], $row['lastposter']) = explode("\t", $row['lastpost']); - $row['lastpost'] = dgmdate($row['lastpost']); - $data[] = mobile_core::getvalues($row, array('fid', 'name', 'threads', 'posts', 'lastpost', 'lastposter', 'lastpost_tid', 'lastpost_subject', 'todayposts')); - } - $variable = array( - 'data' => $data, - ); - savecache('mobile_hotforum', array('variable' => $variable, 'expiration' => TIMESTAMP)); - } else { - $variable = $_G['cache']['mobile_hotforum']['variable']; - } - mobile_core::result(mobile_core::variable($variable)); - } - - function output() { - } - -} - + 3600) { + $query = DB::query("SELECT f.*, ff.redirect FROM ".DB::table('forum_forum')." f LEFT JOIN ".DB::table('forum_forumfield')." ff ON ff.fid=f.fid WHERE f.status='1' AND f.type='forum' ORDER BY f.todayposts DESC"); + $data = array(); + while($row = DB::fetch($query)) { + if($row['redirect']) { + continue; + } + list($row['lastpost_tid'], $row['lastpost_subject'], $row['lastpost'], $row['lastposter']) = explode("\t", $row['lastpost']); + $row['lastpost'] = dgmdate($row['lastpost']); + $data[] = mobile_core::getvalues($row, array('fid', 'name', 'threads', 'posts', 'lastpost', 'lastposter', 'lastpost_tid', 'lastpost_subject', 'todayposts')); + } + $variable = array( + 'data' => $data, + ); + savecache('mobile_hotforum', array('variable' => $variable, 'expiration' => TIMESTAMP)); + } else { + $variable = $_G['cache']['mobile_hotforum']['variable']; + } + mobile_core::result(mobile_core::variable($variable)); + } + + function output() { + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/hotthread.php b/source/plugin/mobile/api/1/hotthread.php index d218eaa..ca6e629 100644 --- a/source/plugin/mobile/api/1/hotthread.php +++ b/source/plugin/mobile/api/1/hotthread.php @@ -1,38 +1,38 @@ -$thread) { - $GLOBALS['data']['hot']['threadlist'][$tid]['avatar'] = avatar($thread['authorid'], 'big', true); - } - $variable = array( - 'data' => array_values($GLOBALS['data']['hot']['threadlist']), - 'perpage' => $GLOBALS['perpage'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - +$thread) { + $GLOBALS['data']['hot']['threadlist'][$tid]['avatar'] = avatar($thread['authorid'], 'big', true); + } + $variable = array( + 'data' => array_values($GLOBALS['data']['hot']['threadlist']), + 'perpage' => $GLOBALS['perpage'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/index.php b/source/plugin/mobile/api/1/index.php index 9ab67ef..2440700 100644 --- a/source/plugin/mobile/api/1/index.php +++ b/source/plugin/mobile/api/1/index.php @@ -1,31 +1,31 @@ - 'param_error')); -} - -$apifile = 'api/open/'.$_GET['module'].'.php'; - -if(file_exists($apifile)) { - require_once $apifile; -} else { - helper_open::result(array('error' => 'module_not_exists')); -} - + 'param_error')); +} + +$apifile = 'api/open/'.$_GET['module'].'.php'; + +if(file_exists($apifile)) { + require_once $apifile; +} else { + helper_open::result(array('error' => 'module_not_exists')); +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/login.php b/source/plugin/mobile/api/1/login.php index bdd6abb..2a80eac 100644 --- a/source/plugin/mobile/api/1/login.php +++ b/source/plugin/mobile/api/1/login.php @@ -1,31 +1,31 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/1/myfavforum.php b/source/plugin/mobile/api/1/myfavforum.php index cdc2b1d..af7becf 100644 --- a/source/plugin/mobile/api/1/myfavforum.php +++ b/source/plugin/mobile/api/1/myfavforum.php @@ -1,36 +1,36 @@ - array_values($GLOBALS['list']), - 'perpage' => $GLOBALS['perpage'], - 'count' => $GLOBALS['count'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + array_values($GLOBALS['list']), + 'perpage' => $GLOBALS['perpage'], + 'count' => $GLOBALS['count'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/myfavthread.php b/source/plugin/mobile/api/1/myfavthread.php index 4be7f01..fe3172b 100644 --- a/source/plugin/mobile/api/1/myfavthread.php +++ b/source/plugin/mobile/api/1/myfavthread.php @@ -1,48 +1,48 @@ -$value) { - $tids[] = $value['id']; - } - if($tids) { - $threadinfo = C::t('forum_thread')->fetch_all($tids); - } - foreach($list as $key=>$value) { - $list[$key]['replies'] = $threadinfo[$value['id']]['replies']; - $list[$key]['author'] = $threadinfo[$value['id']]['author']; - } - $variable = array( - 'list' => $list, - 'perpage' => $GLOBALS['perpage'], - 'count' => $GLOBALS['count'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - +$value) { + $tids[] = $value['id']; + } + if($tids) { + $threadinfo = C::t('forum_thread')->fetch_all($tids); + } + foreach($list as $key=>$value) { + $list[$key]['replies'] = $threadinfo[$value['id']]['replies']; + $list[$key]['author'] = $threadinfo[$value['id']]['author']; + } + $variable = array( + 'list' => $list, + 'perpage' => $GLOBALS['perpage'], + 'count' => $GLOBALS['count'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/mypm.php b/source/plugin/mobile/api/1/mypm.php index 3f4911e..b5cd39c 100644 --- a/source/plugin/mobile/api/1/mypm.php +++ b/source/plugin/mobile/api/1/mypm.php @@ -1,39 +1,39 @@ - mobile_core::getvalues($GLOBALS['list'], array('/^\d+$/'), array('plid', 'isnew', 'pmnum', 'lastupdate', 'lastdateline', 'authorid', 'author', 'pmtype', 'subject', 'members', 'dateline', 'touid', 'pmid', 'lastauthorid', 'lastauthor', 'lastsummary', 'msgfromid', 'msgfrom', 'message', 'msgtoid', 'tousername')), - 'count' => $GLOBALS['count'], - 'perpage' => $GLOBALS['perpage'], - 'page' => intval($GLOBALS['page']), - ); - if($_GET['subop']) { - $variable = array_merge($variable, array('pmid' => $GLOBALS['pmid'])); - } - mobile_core::result(mobile_core::variable($variable)); - } - -} - + mobile_core::getvalues($GLOBALS['list'], array('/^\d+$/'), array('plid', 'isnew', 'pmnum', 'lastupdate', 'lastdateline', 'authorid', 'author', 'pmtype', 'subject', 'members', 'dateline', 'touid', 'pmid', 'lastauthorid', 'lastauthor', 'lastsummary', 'msgfromid', 'msgfrom', 'message', 'msgtoid', 'tousername')), + 'count' => $GLOBALS['count'], + 'perpage' => $GLOBALS['perpage'], + 'page' => intval($GLOBALS['page']), + ); + if($_GET['subop']) { + $variable = array_merge($variable, array('pmid' => $GLOBALS['pmid'])); + } + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/mythread.php b/source/plugin/mobile/api/1/mythread.php index 6b6f6e5..5fae046 100644 --- a/source/plugin/mobile/api/1/mythread.php +++ b/source/plugin/mobile/api/1/mythread.php @@ -1,34 +1,34 @@ - array_values($GLOBALS['data']['my']['threadlist']), - 'perpage' => $GLOBALS['perpage'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + array_values($GLOBALS['data']['my']['threadlist']), + 'perpage' => $GLOBALS['perpage'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/newthread.php b/source/plugin/mobile/api/1/newthread.php index a3fecfe..c4901ae 100644 --- a/source/plugin/mobile/api/1/newthread.php +++ b/source/plugin/mobile/api/1/newthread.php @@ -1,87 +1,87 @@ - $bit) { - $threadstatus = setstatus(13 - $i, $bit, $threadstatus); - } - C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); - - $poststatus = DB::result_first("SELECT status FROM ".DB::table('forum_post')." WHERE pid='$values[pid]'"); - $poststatus = setstatus(4, 1, $poststatus); - if(!empty($_POST['allowlocal'])) { - $poststatus = setstatus(6, 1, $poststatus); - } - if(!empty($_POST['allowsound'])) { - $poststatus = setstatus(7, 1, $poststatus); - } - if(!empty($_POST['mobiletype'])) { - $mobiletype = base_convert($_POST['mobiletype'], 10, 2); - $mobiletype = sprintf('%03d', $mobiletype); - for($i = 0;$i < 3;$i++) { - $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); - } - } - C::t('forum_post')->update(0, $values['pid'], array('status' => $poststatus)); - - if($_POST['location']) { - list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); - C::t('forum_post_location')->insert(array( - 'pid' => $values['pid'], - 'tid' => $values['tid'], - 'uid' => $_G['uid'], - 'mapx' => $mapx, - 'mapy' => $mapy, - 'location' => $location, - )); - } - } - } - - function output() { - global $_G; - $variable = array( - 'tid' => $GLOBALS['tid'], - 'pid' => $GLOBALS['pid'], - ); - if(!empty($_G['forum']['threadtypes'])) { - $variable['threadtypes'] = $_G['forum']['threadtypes']; - } - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $bit) { + $threadstatus = setstatus(13 - $i, $bit, $threadstatus); + } + C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); + + $poststatus = DB::result_first("SELECT status FROM ".DB::table('forum_post')." WHERE pid='$values[pid]'"); + $poststatus = setstatus(4, 1, $poststatus); + if(!empty($_POST['allowlocal'])) { + $poststatus = setstatus(6, 1, $poststatus); + } + if(!empty($_POST['allowsound'])) { + $poststatus = setstatus(7, 1, $poststatus); + } + if(!empty($_POST['mobiletype'])) { + $mobiletype = base_convert($_POST['mobiletype'], 10, 2); + $mobiletype = sprintf('%03d', $mobiletype); + for($i = 0;$i < 3;$i++) { + $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); + } + } + C::t('forum_post')->update(0, $values['pid'], array('status' => $poststatus)); + + if($_POST['location']) { + list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); + C::t('forum_post_location')->insert(array( + 'pid' => $values['pid'], + 'tid' => $values['tid'], + 'uid' => $_G['uid'], + 'mapx' => $mapx, + 'mapy' => $mapy, + 'location' => $location, + )); + } + } + } + + function output() { + global $_G; + $variable = array( + 'tid' => $GLOBALS['tid'], + 'pid' => $GLOBALS['pid'], + ); + if(!empty($_G['forum']['threadtypes'])) { + $variable['threadtypes'] = $_G['forum']['threadtypes']; + } + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/newthreads.php b/source/plugin/mobile/api/1/newthreads.php index 8ed4fac..6312a74 100644 --- a/source/plugin/mobile/api/1/newthreads.php +++ b/source/plugin/mobile/api/1/newthreads.php @@ -1,38 +1,38 @@ -fetch_all_by_fids(dintval(explode(',', $_GET['fids']), true), $start, $limit); - foreach(C::t('forum_thread')->fetch_all_by_tid(array_keys($variable['data']), 0, $limit) as $thread) { - $thread['dbdateline'] = $thread['dateline']; - $thread['dblastpost'] = $thread['lastpost']; - $thread['dateline'] = dgmdate($thread['dateline'], 'u'); - $thread['lastpost'] = dgmdate($thread['lastpost'], 'u'); - $variable['data'][$thread['tid']] = mobile_core::getvalues($thread, array('tid', 'author', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest')); - } - $variable['data'] = array_values($variable['data']); - mobile_core::result(mobile_core::variable($variable)); - } - - function output() {} - -} - +fetch_all_by_fids(dintval(explode(',', $_GET['fids']), true), $start, $limit); + foreach(C::t('forum_thread')->fetch_all_by_tid(array_keys($variable['data']), 0, $limit) as $thread) { + $thread['dbdateline'] = $thread['dateline']; + $thread['dblastpost'] = $thread['lastpost']; + $thread['dateline'] = dgmdate($thread['dateline'], 'u'); + $thread['lastpost'] = dgmdate($thread['lastpost'], 'u'); + $variable['data'][$thread['tid']] = mobile_core::getvalues($thread, array('tid', 'author', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest')); + } + $variable['data'] = array_values($variable['data']); + mobile_core::result(mobile_core::variable($variable)); + } + + function output() {} + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/pollvote.php b/source/plugin/mobile/api/1/pollvote.php index 61dde32..929525c 100644 --- a/source/plugin/mobile/api/1/pollvote.php +++ b/source/plugin/mobile/api/1/pollvote.php @@ -1,29 +1,29 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/1/profile.php b/source/plugin/mobile/api/1/profile.php index 135f8ba..4969990 100644 --- a/source/plugin/mobile/api/1/profile.php +++ b/source/plugin/mobile/api/1/profile.php @@ -1,36 +1,36 @@ - $data, - 'extcredits' => $_G['setting']['extcredits'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $data, + 'extcredits' => $_G['setting']['extcredits'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/publicpm.php b/source/plugin/mobile/api/1/publicpm.php index 795439a..a4126ba 100644 --- a/source/plugin/mobile/api/1/publicpm.php +++ b/source/plugin/mobile/api/1/publicpm.php @@ -1,37 +1,37 @@ - mobile_core::getvalues($GLOBALS['grouppms'], array('/^\d+$/'), array('id', 'authorid', 'author', 'dateline', 'message')), - 'count' => count($GLOBALS['grouppms']), - 'perpage' => $GLOBALS['perpage'], - 'page' => $GLOBALS['page'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + mobile_core::getvalues($GLOBALS['grouppms'], array('/^\d+$/'), array('id', 'authorid', 'author', 'dateline', 'message')), + 'count' => count($GLOBALS['grouppms']), + 'perpage' => $GLOBALS['perpage'], + 'page' => $GLOBALS['page'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/register.php b/source/plugin/mobile/api/1/register.php index a63e847..bfe012b 100644 --- a/source/plugin/mobile/api/1/register.php +++ b/source/plugin/mobile/api/1/register.php @@ -1,39 +1,39 @@ -setting = $_G['setting']; - $ctl_obj->template = 'mobile:register'; - $ctl_obj->on_register(); - if(empty($_POST['regsubmit'])) { - exit; - } - } - - function output() { - mobile_core::result(mobile_core::variable()); - } - -} - +setting = $_G['setting']; + $ctl_obj->template = 'mobile:register'; + $ctl_obj->on_register(); + if(empty($_POST['regsubmit'])) { + exit; + } + } + + function output() { + mobile_core::result(mobile_core::variable()); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/seccode.php b/source/plugin/mobile/api/1/seccode.php index 6bfc8c2..693d77b 100644 --- a/source/plugin/mobile/api/1/seccode.php +++ b/source/plugin/mobile/api/1/seccode.php @@ -1,61 +1,61 @@ -code = $seccode; - $code->type = $type; - $code->width = $_G['setting']['seccodedata']['width']; - $code->height = $_G['setting']['seccodedata']['height']; - $code->background = $_G['setting']['seccodedata']['background']; - $code->adulterate = $_G['setting']['seccodedata']['adulterate']; - $code->ttf = $_G['setting']['seccodedata']['ttf']; - $code->angle = $_G['setting']['seccodedata']['angle']; - $code->warping = $_G['setting']['seccodedata']['warping']; - $code->scatter = $_G['setting']['seccodedata']['scatter']; - $code->color = $_G['setting']['seccodedata']['color']; - $code->size = $_G['setting']['seccodedata']['size']; - $code->shadow = $_G['setting']['seccodedata']['shadow']; - $code->animator = 0; - $code->fontpath = DISCUZ_ROOT.'./static/image/seccode/font/'; - $code->datapath = DISCUZ_ROOT.'./static/image/seccode/'; - $code->includepath = DISCUZ_ROOT.'./source/class/'; - - $code->display(); - - } - - function output() {} - -} - +code = $seccode; + $code->type = $type; + $code->width = $_G['setting']['seccodedata']['width']; + $code->height = $_G['setting']['seccodedata']['height']; + $code->background = $_G['setting']['seccodedata']['background']; + $code->adulterate = $_G['setting']['seccodedata']['adulterate']; + $code->ttf = $_G['setting']['seccodedata']['ttf']; + $code->angle = $_G['setting']['seccodedata']['angle']; + $code->warping = $_G['setting']['seccodedata']['warping']; + $code->scatter = $_G['setting']['seccodedata']['scatter']; + $code->color = $_G['setting']['seccodedata']['color']; + $code->size = $_G['setting']['seccodedata']['size']; + $code->shadow = $_G['setting']['seccodedata']['shadow']; + $code->animator = 0; + $code->fontpath = DISCUZ_ROOT.'./static/image/seccode/font/'; + $code->datapath = DISCUZ_ROOT.'./static/image/seccode/'; + $code->includepath = DISCUZ_ROOT.'./source/class/'; + + $code->display(); + + } + + function output() {} + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/secure.php b/source/plugin/mobile/api/1/secure.php index 3b18f14..cb5feff 100644 --- a/source/plugin/mobile/api/1/secure.php +++ b/source/plugin/mobile/api/1/secure.php @@ -1,48 +1,48 @@ - $sechash); - if($seccodecheck) { - $variable['seccode'] = $_G['siteurl'].'api/mobile/index.php?module=seccode&sechash='.$sechash.'&version='.(empty($_GET['secversion']) ? '1' : $_GET['secversion']); - } - if($secqaacheck) { - require_once libfile('function/seccode'); - $variable['secqaa'] = make_secqaa($sechash); - } - } - mobile_core::result(mobile_core::variable($variable)); - } - - function output() {} - -} - + $sechash); + if($seccodecheck) { + $variable['seccode'] = $_G['siteurl'].'api/mobile/index.php?module=seccode&sechash='.$sechash.'&version='.(empty($_GET['secversion']) ? '1' : $_GET['secversion']); + } + if($secqaacheck) { + require_once libfile('function/seccode'); + $variable['secqaa'] = make_secqaa($sechash); + } + } + mobile_core::result(mobile_core::variable($variable)); + } + + function output() {} + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/sendpm.php b/source/plugin/mobile/api/1/sendpm.php index c407783..4cbac96 100644 --- a/source/plugin/mobile/api/1/sendpm.php +++ b/source/plugin/mobile/api/1/sendpm.php @@ -1,34 +1,34 @@ - $GLOBALS['return'] - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $GLOBALS['return'] + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/sendreply.php b/source/plugin/mobile/api/1/sendreply.php index 823c9c1..4a3c271 100644 --- a/source/plugin/mobile/api/1/sendreply.php +++ b/source/plugin/mobile/api/1/sendreply.php @@ -1,92 +1,92 @@ - $bit) { - $threadstatus = setstatus(13 - $i, $bit, $threadstatus); - } - C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); - } - - $posttable = getposttablebytid($values['tid']); - $poststatus = DB::result_first("SELECT status FROM ".DB::table($posttable)." WHERE pid='$values[pid]'"); - $poststatus = setstatus(4, 1, $poststatus); - if(!empty($_POST['allowlocal'])) { - $poststatus = setstatus(6, 1, $poststatus); - } - if(!empty($_POST['allowsound'])) { - $poststatus = setstatus(7, 1, $poststatus); - } - if(!empty($_POST['mobiletype']) && $_POST['mobiletype'] < 8) { - $mobiletype = base_convert($_POST['mobiletype'], 10, 2); - $mobiletype = sprintf('%03d', $mobiletype); - for($i = 0;$i < 3;$i++) { - $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); - } - } - C::t('forum_post')->update('tid:'.$values['tid'], $values['pid'], array('status' => $poststatus)); - - if($_POST['location']) { - list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); - C::t('forum_post_location')->insert(array( - 'pid' => $values['pid'], - 'tid' => $values['tid'], - 'uid' => $_G['uid'], - 'mapx' => $mapx, - 'mapy' => $mapy, - 'location' => $location, - )); - } - } - } - - function output() { - global $_G; - $variable = array( - 'tid' => $_G['tid'], - 'pid' => $GLOBALS['pid'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $bit) { + $threadstatus = setstatus(13 - $i, $bit, $threadstatus); + } + C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); + } + + $posttable = getposttablebytid($values['tid']); + $poststatus = DB::result_first("SELECT status FROM ".DB::table($posttable)." WHERE pid='$values[pid]'"); + $poststatus = setstatus(4, 1, $poststatus); + if(!empty($_POST['allowlocal'])) { + $poststatus = setstatus(6, 1, $poststatus); + } + if(!empty($_POST['allowsound'])) { + $poststatus = setstatus(7, 1, $poststatus); + } + if(!empty($_POST['mobiletype']) && $_POST['mobiletype'] < 8) { + $mobiletype = base_convert($_POST['mobiletype'], 10, 2); + $mobiletype = sprintf('%03d', $mobiletype); + for($i = 0;$i < 3;$i++) { + $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); + } + } + C::t('forum_post')->update('tid:'.$values['tid'], $values['pid'], array('status' => $poststatus)); + + if($_POST['location']) { + list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); + C::t('forum_post_location')->insert(array( + 'pid' => $values['pid'], + 'tid' => $values['tid'], + 'uid' => $_G['uid'], + 'mapx' => $mapx, + 'mapy' => $mapy, + 'location' => $location, + )); + } + } + } + + function output() { + global $_G; + $variable = array( + 'tid' => $_G['tid'], + 'pid' => $GLOBALS['pid'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/signin.php b/source/plugin/mobile/api/1/signin.php index 417bb1b..707752a 100644 --- a/source/plugin/mobile/api/1/signin.php +++ b/source/plugin/mobile/api/1/signin.php @@ -1,30 +1,30 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/1/smiley.php b/source/plugin/mobile/api/1/smiley.php index 27448f9..732740a 100644 --- a/source/plugin/mobile/api/1/smiley.php +++ b/source/plugin/mobile/api/1/smiley.php @@ -1,36 +1,36 @@ - $img) { - $variable['smilies'][] = array( - 'code' => $_G['cache']['smilies']['searcharray'][$id], - 'image' => $_G['cache']['smileytypes'][$_G['cache']['smilies']['typearray'][$id]]['directory'].'/'.$img - ); - } - mobile_core::result(mobile_core::variable($variable)); - } - - function output() { - } - -} - + $img) { + $variable['smilies'][] = array( + 'code' => $_G['cache']['smilies']['searcharray'][$id], + 'image' => $_G['cache']['smileytypes'][$_G['cache']['smilies']['typearray'][$id]]['directory'].'/'.$img + ); + } + mobile_core::result(mobile_core::variable($variable)); + } + + function output() { + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/sub_checkpost.php b/source/plugin/mobile/api/1/sub_checkpost.php index 92fa32b..abcf168 100644 --- a/source/plugin/mobile/api/1/sub_checkpost.php +++ b/source/plugin/mobile/api/1/sub_checkpost.php @@ -1,111 +1,111 @@ - getuserprofile('todayattachs')); - $attachremain = array(); - if($allowupload) { - $attachextensions = !$_G['group']['attachextensions'] ? $mobile_attachextensions : array_map('trim', explode(',', $_G['group']['attachextensions'])); - $allowupload = $forummaxattachsize = array(); - loadcache('attachtype'); - if(isset($_G['cache']['attachtype'][$_G['forum']['fid']])) { - $attachtype = $_G['cache']['attachtype'][$_G['forum']['fid']]; - } elseif(isset($_G['cache']['attachtype'][0])) { - $attachtype = $_G['cache']['attachtype'][0]; - } else { - $attachtype = array(); - } - if($attachtype) { - foreach($attachtype as $extension => $maxsize) { - $forummaxattachsize[$extension] = $maxsize; - } - } - foreach($mobile_attachextensions as $ext) { - if(in_array($ext, $attachextensions)) { - if(isset($forummaxattachsize[$ext])) { - if($forummaxattachsize[$ext] > 0) { - $allowupload[$ext] = $forummaxattachsize[$ext] ? $forummaxattachsize[$ext] : $_G['group']['maxattachsize']; - } else { - $allowupload[$ext] = 0; - } - } else { - $allowupload[$ext] = -1; - } - } else { - $allowupload[$ext] = 0; - } - } - $attachremain = array( - 'size' => $_G['group']['maxsizeperday'] ? $_G['group']['maxsizeperday'] - getuserprofile('todayattachsize') : -1, - 'count' => $_G['group']['maxattachnum'] ? $_G['group']['maxattachnum'] - getuserprofile('todayattachs') : -1, - ); - } else { - $allowupload = array(); - } - $uploadhash = md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); - $allowperm = array(); - $allowperm['allowperm'] = array(); - $allowkey = array('allowpost', 'allowreply', 'allowupload', 'attachremain', 'uploadhash'); - foreach($allowkey as $key) { - if((!empty(${$key}) || ${$key} === 0) || !empty($_GET['debug'])) { - $allowperm['allowperm'][$key] = ${$key}; - } - } - return $allowperm; - } - -} - + getuserprofile('todayattachs')); + $attachremain = array(); + if($allowupload) { + $attachextensions = !$_G['group']['attachextensions'] ? $mobile_attachextensions : array_map('trim', explode(',', $_G['group']['attachextensions'])); + $allowupload = $forummaxattachsize = array(); + loadcache('attachtype'); + if(isset($_G['cache']['attachtype'][$_G['forum']['fid']])) { + $attachtype = $_G['cache']['attachtype'][$_G['forum']['fid']]; + } elseif(isset($_G['cache']['attachtype'][0])) { + $attachtype = $_G['cache']['attachtype'][0]; + } else { + $attachtype = array(); + } + if($attachtype) { + foreach($attachtype as $extension => $maxsize) { + $forummaxattachsize[$extension] = $maxsize; + } + } + foreach($mobile_attachextensions as $ext) { + if(in_array($ext, $attachextensions)) { + if(isset($forummaxattachsize[$ext])) { + if($forummaxattachsize[$ext] > 0) { + $allowupload[$ext] = $forummaxattachsize[$ext] ? $forummaxattachsize[$ext] : $_G['group']['maxattachsize']; + } else { + $allowupload[$ext] = 0; + } + } else { + $allowupload[$ext] = -1; + } + } else { + $allowupload[$ext] = 0; + } + } + $attachremain = array( + 'size' => $_G['group']['maxsizeperday'] ? $_G['group']['maxsizeperday'] - getuserprofile('todayattachsize') : -1, + 'count' => $_G['group']['maxattachnum'] ? $_G['group']['maxattachnum'] - getuserprofile('todayattachs') : -1, + ); + } else { + $allowupload = array(); + } + $uploadhash = md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); + $allowperm = array(); + $allowperm['allowperm'] = array(); + $allowkey = array('allowpost', 'allowreply', 'allowupload', 'attachremain', 'uploadhash'); + foreach($allowkey as $key) { + if((!empty(${$key}) || ${$key} === 0) || !empty($_GET['debug'])) { + $allowperm['allowperm'][$key] = ${$key}; + } + } + return $allowperm; + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/sublist.php b/source/plugin/mobile/api/1/sublist.php index 92b781b..449bfa2 100644 --- a/source/plugin/mobile/api/1/sublist.php +++ b/source/plugin/mobile/api/1/sublist.php @@ -1,33 +1,33 @@ - mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts')), - ); - $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; - mobile_core::result(mobile_core::variable($variable)); - } - -} - + mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts')), + ); + $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/threadrecommend.php b/source/plugin/mobile/api/1/threadrecommend.php index cf0e4b8..b4d24ce 100644 --- a/source/plugin/mobile/api/1/threadrecommend.php +++ b/source/plugin/mobile/api/1/threadrecommend.php @@ -1,30 +1,30 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/1/toplist.php b/source/plugin/mobile/api/1/toplist.php index d24a149..c339e43 100644 --- a/source/plugin/mobile/api/1/toplist.php +++ b/source/plugin/mobile/api/1/toplist.php @@ -1,48 +1,48 @@ - 3600) { - $query = DB::query("SELECT * FROM ".DB::table('forum_thread')." WHERE tid IN (".dimplode($GLOBALS['stickytids']).") ORDER BY lastpost DESC"); - while($thread = DB::fetch($query)) { - $threads[] = $thread; - } - $query = DB::query("SELECT * FROM ".DB::table('forum_thread')." WHERE `fid`='".$_G['fid']."' AND `displayorder`='1' ORDER BY lastpost DESC"); - while($thread = DB::fetch($query)) { - $threads[] = $thread; - } - savecache('mobile_toplist_'.$_G['fid'], array('variable' => $threads, 'expiration' => TIMESTAMP)); - } else { - $threads = $_G['cache']['mobile_toplist_'.$_G['fid']]['variable']; - } - $variable = array( - 'forum_threadlist' => mobile_core::getvalues($threads, array('/^\d+$/')), - ); - $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; - mobile_core::result(mobile_core::variable($variable)); - } - -} - + 3600) { + $query = DB::query("SELECT * FROM ".DB::table('forum_thread')." WHERE tid IN (".dimplode($GLOBALS['stickytids']).") ORDER BY lastpost DESC"); + while($thread = DB::fetch($query)) { + $threads[] = $thread; + } + $query = DB::query("SELECT * FROM ".DB::table('forum_thread')." WHERE `fid`='".$_G['fid']."' AND `displayorder`='1' ORDER BY lastpost DESC"); + while($thread = DB::fetch($query)) { + $threads[] = $thread; + } + savecache('mobile_toplist_'.$_G['fid'], array('variable' => $threads, 'expiration' => TIMESTAMP)); + } else { + $threads = $_G['cache']['mobile_toplist_'.$_G['fid']]['variable']; + } + $variable = array( + 'forum_threadlist' => mobile_core::getvalues($threads, array('/^\d+$/')), + ); + $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/1/viewthread.php b/source/plugin/mobile/api/1/viewthread.php index 9b4a464..7ced306 100644 --- a/source/plugin/mobile/api/1/viewthread.php +++ b/source/plugin/mobile/api/1/viewthread.php @@ -1,129 +1,129 @@ - $post) { - if(!$post['first'] && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$_G['forum']['ismoderator']) { - $GLOBALS['postlist'][$k]['message'] = lang('plugin/mobile', 'mobile_post_author_visible'); - $GLOBALS['postlist'][$k]['attachments'] = array(); - } - } - } - - $_G['thread']['lastpost'] = dgmdate($_G['thread']['lastpost']); - - $variable = array( - 'thread' => $_G['thread'], - 'fid' => $_G['fid'], - 'postlist' => array_values(mobile_core::getvalues($GLOBALS['postlist'], array('/^\d+$/'), array('pid', 'tid', 'author', 'first', 'dbdateline', 'dateline', 'username', 'adminid', 'memberstatus', 'authorid', 'username', 'groupid', 'memberstatus', 'status', 'message', 'number', 'memberstatus', 'groupid', 'attachment', 'attachments', 'attachlist', 'imagelist', 'anonymous'))), - 'imagelist' => array(), - 'ppp' => $_G['ppp'], - 'setting_rewriterule' => $_G['setting']['rewriterule'], - 'setting_rewritestatus' => $_G['setting']['rewritestatus'], - 'forum_threadpay' => $_G['forum_threadpay'], - 'cache_custominfo_postno' => $_G['cache']['custominfo']['postno'], - ); - - if(!empty($GLOBALS['threadsortshow'])) { - $optionlist = array(); - foreach ($GLOBALS['threadsortshow']['optionlist'] AS $key => $val) { - $val['optionid'] = $key; - $optionlist[] = $val; - } - if(!empty($optionlist)) { - $GLOBALS['threadsortshow']['optionlist'] = $optionlist; - $GLOBALS['threadsortshow']['threadsortname'] = $_G['forum']['threadsorts']['types'][$thread['sortid']]; - } - } - $threadsortshow = mobile_core::getvalues($GLOBALS['threadsortshow'], array('/^(?!typetemplate).*$/')); - if(!empty($threadsortshow)) { - $variable['threadsortshow'] = $threadsortshow; - } - foreach($variable['postlist'] as $k => $post) { - if(!$_G['forum']['ismoderator'] && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($_G['thread']['digest'] == 0 && ($post['groupid'] == 4 || $post['groupid'] == 5 || $post['memberstatus'] == '-1')))) { - $message = lang('forum/template', 'message_banned'); - } elseif(!$_G['forum']['ismoderator'] && $post['status'] & 1) { - $message = lang('forum/template', 'message_single_banned'); - } elseif($GLOBALS['needhiddenreply']) { - $message = lang('forum/template', 'message_ishidden_hiddenreplies'); - } elseif($post['first'] && $_G['forum_threadpay']) { - $message = lang('forum/template', 'pay_threads').' '.$GLOBALS['thread']['price'].' '.$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit'].$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']; - } elseif($_G['forum_discuzcode']['passwordlock']) { - $message = lang('forum/template', 'message_password_exists'); - } else { - $message = ''; - } - if($message) { - $variable['postlist'][$k]['message'] = $message; - } - if($post['anonymous'] && !$_G['forum']['ismoderator']) { - $variable['postlist'][$k]['username'] = $variable['postlist'][$k]['author'] = $_G['setting']['anonymoustext']; - $variable['postlist'][$k]['adminid'] = $variable['postlist'][$k]['groupid'] = $variable['postlist'][$k]['authorid'] = 0; - if($post['first']) { - $variable['thread']['authorid'] = 0; - } - } - if(strpos($variable['postlist'][$k]['message'], '[/tthread]') !== FALSE) { - $matches = array(); - preg_match('/\[tthread=(.+?),(.+?)\](.*?)\[\/tthread\]/', $variable['postlist'][$k]['message'], $matches); - $variable['postlist'][$k]['message'] = preg_replace('/\[tthread=(.+?)\](.*?)\[\/tthread\]/', lang('plugin/qqconnect', 'connect_tthread_message', array('username' => $matches[1], 'nick' => $matches[2])), $variable['postlist'][$k]['message']); - } - } - - foreach($GLOBALS['aimgs'] as $pid => $aids) { - foreach($aids as $aid) { - $variable['imagelist'][] = $GLOBALS['postlist'][$pid]['attachments'][$aid]['url'].$GLOBALS['postlist'][$pid]['attachments'][$aid]['attachment']; - } - } - - if(!empty($GLOBALS['polloptions'])) { - $variable['special_poll']['polloptions'] = $GLOBALS['polloptions']; - $variable['special_poll']['expirations'] = $GLOBALS['expirations']; - $variable['special_poll']['multiple'] = $GLOBALS['multiple']; - $variable['special_poll']['maxchoices'] = $GLOBALS['maxchoices']; - $variable['special_poll']['voterscount'] = $GLOBALS['voterscount']; - $variable['special_poll']['visiblepoll'] = $GLOBALS['visiblepoll']; - $variable['special_poll']['allowvote'] = $_G['group']['allowvote']; - $variable['special_poll']['remaintime'] = $thread['remaintime']; - } - if(!empty($GLOBALS['rewardprice'])) { - $variable['special_reward']['rewardprice'] = $GLOBALS['rewardprice'].' '.$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['title']; - $variable['special_reward']['bestpost'] = $GLOBALS['bestpost']; - } - if(!empty($GLOBALS['trades'])) { - $variable['special_trade'] = $GLOBALS['trades']; - } - if(!empty($GLOBALS['debate'])) { - $variable['special_debate'] = $GLOBALS['debate']; - } - if(!empty($GLOBALS['activity'])) { - $variable['special_activity'] = $GLOBALS['activity']; - } - - $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $post) { + if(!$post['first'] && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$_G['forum']['ismoderator']) { + $GLOBALS['postlist'][$k]['message'] = lang('plugin/mobile', 'mobile_post_author_visible'); + $GLOBALS['postlist'][$k]['attachments'] = array(); + } + } + } + + $_G['thread']['lastpost'] = dgmdate($_G['thread']['lastpost']); + + $variable = array( + 'thread' => $_G['thread'], + 'fid' => $_G['fid'], + 'postlist' => array_values(mobile_core::getvalues($GLOBALS['postlist'], array('/^\d+$/'), array('pid', 'tid', 'author', 'first', 'dbdateline', 'dateline', 'username', 'adminid', 'memberstatus', 'authorid', 'username', 'groupid', 'memberstatus', 'status', 'message', 'number', 'memberstatus', 'groupid', 'attachment', 'attachments', 'attachlist', 'imagelist', 'anonymous'))), + 'imagelist' => array(), + 'ppp' => $_G['ppp'], + 'setting_rewriterule' => $_G['setting']['rewriterule'], + 'setting_rewritestatus' => $_G['setting']['rewritestatus'], + 'forum_threadpay' => $_G['forum_threadpay'], + 'cache_custominfo_postno' => $_G['cache']['custominfo']['postno'], + ); + + if(!empty($GLOBALS['threadsortshow'])) { + $optionlist = array(); + foreach ($GLOBALS['threadsortshow']['optionlist'] AS $key => $val) { + $val['optionid'] = $key; + $optionlist[] = $val; + } + if(!empty($optionlist)) { + $GLOBALS['threadsortshow']['optionlist'] = $optionlist; + $GLOBALS['threadsortshow']['threadsortname'] = $_G['forum']['threadsorts']['types'][$thread['sortid']]; + } + } + $threadsortshow = mobile_core::getvalues($GLOBALS['threadsortshow'], array('/^(?!typetemplate).*$/')); + if(!empty($threadsortshow)) { + $variable['threadsortshow'] = $threadsortshow; + } + foreach($variable['postlist'] as $k => $post) { + if(!$_G['forum']['ismoderator'] && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($_G['thread']['digest'] == 0 && ($post['groupid'] == 4 || $post['groupid'] == 5 || $post['memberstatus'] == '-1')))) { + $message = lang('forum/template', 'message_banned'); + } elseif(!$_G['forum']['ismoderator'] && $post['status'] & 1) { + $message = lang('forum/template', 'message_single_banned'); + } elseif($GLOBALS['needhiddenreply']) { + $message = lang('forum/template', 'message_ishidden_hiddenreplies'); + } elseif($post['first'] && $_G['forum_threadpay']) { + $message = lang('forum/template', 'pay_threads').' '.$GLOBALS['thread']['price'].' '.$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit'].$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']; + } elseif($_G['forum_discuzcode']['passwordlock']) { + $message = lang('forum/template', 'message_password_exists'); + } else { + $message = ''; + } + if($message) { + $variable['postlist'][$k]['message'] = $message; + } + if($post['anonymous'] && !$_G['forum']['ismoderator']) { + $variable['postlist'][$k]['username'] = $variable['postlist'][$k]['author'] = $_G['setting']['anonymoustext']; + $variable['postlist'][$k]['adminid'] = $variable['postlist'][$k]['groupid'] = $variable['postlist'][$k]['authorid'] = 0; + if($post['first']) { + $variable['thread']['authorid'] = 0; + } + } + if(strpos($variable['postlist'][$k]['message'], '[/tthread]') !== FALSE) { + $matches = array(); + preg_match('/\[tthread=(.+?),(.+?)\](.*?)\[\/tthread\]/', $variable['postlist'][$k]['message'], $matches); + $variable['postlist'][$k]['message'] = preg_replace('/\[tthread=(.+?)\](.*?)\[\/tthread\]/', lang('plugin/qqconnect', 'connect_tthread_message', array('username' => $matches[1], 'nick' => $matches[2])), $variable['postlist'][$k]['message']); + } + } + + foreach($GLOBALS['aimgs'] as $pid => $aids) { + foreach($aids as $aid) { + $variable['imagelist'][] = $GLOBALS['postlist'][$pid]['attachments'][$aid]['url'].$GLOBALS['postlist'][$pid]['attachments'][$aid]['attachment']; + } + } + + if(!empty($GLOBALS['polloptions'])) { + $variable['special_poll']['polloptions'] = $GLOBALS['polloptions']; + $variable['special_poll']['expirations'] = $GLOBALS['expirations']; + $variable['special_poll']['multiple'] = $GLOBALS['multiple']; + $variable['special_poll']['maxchoices'] = $GLOBALS['maxchoices']; + $variable['special_poll']['voterscount'] = $GLOBALS['voterscount']; + $variable['special_poll']['visiblepoll'] = $GLOBALS['visiblepoll']; + $variable['special_poll']['allowvote'] = $_G['group']['allowvote']; + $variable['special_poll']['remaintime'] = $thread['remaintime']; + } + if(!empty($GLOBALS['rewardprice'])) { + $variable['special_reward']['rewardprice'] = $GLOBALS['rewardprice'].' '.$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['title']; + $variable['special_reward']['bestpost'] = $GLOBALS['bestpost']; + } + if(!empty($GLOBALS['trades'])) { + $variable['special_trade'] = $GLOBALS['trades']; + } + if(!empty($GLOBALS['debate'])) { + $variable['special_debate'] = $GLOBALS['debate']; + } + if(!empty($GLOBALS['activity'])) { + $variable['special_activity'] = $GLOBALS['activity']; + } + + $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/2/forumimage.php b/source/plugin/mobile/api/2/forumimage.php index f86be17..cc67f4a 100644 --- a/source/plugin/mobile/api/2/forumimage.php +++ b/source/plugin/mobile/api/2/forumimage.php @@ -1,79 +1,79 @@ -fetch('aid:'.$daid, $daid, array(1, -1))) { - if(!$dw && !$dh && $attach['tid'] != $id) { - dheader('location: '.$_G['siteurl'].'static/image/common/none.gif'); - } - dheader('Expires: '.gmdate('D, d M Y H:i:s', TIMESTAMP + 3600).' GMT'); - if($attach['remote']) { - $filename = $_G['setting']['ftp']['attachurl'].'forum/'.$attach['attachment']; - } else { - $filename = $_G['setting']['attachdir'].'forum/'.$attach['attachment']; - } - require_once libfile('class/image'); - $img = new image; - if($img->Thumb($filename, $thumbfile, $w, $h, $type)) { - if($nocache) { - dheader('Content-Type: image'); - @readfile($_G['setting']['attachdir'].$thumbfile); - @unlink($_G['setting']['attachdir'].$thumbfile); - } else { - dheader('location: '.$attachurl.$thumbfile); - } - } else { - dheader('Content-Type: image'); - @readfile($filename); - } - } - exit; - } -} +fetch('aid:'.$daid, $daid, array(1, -1))) { + if(!$dw && !$dh && $attach['tid'] != $id) { + dheader('location: '.$_G['siteurl'].'static/image/common/none.gif'); + } + dheader('Expires: '.gmdate('D, d M Y H:i:s', TIMESTAMP + 3600).' GMT'); + if($attach['remote']) { + $filename = $_G['setting']['ftp']['attachurl'].'forum/'.$attach['attachment']; + } else { + $filename = $_G['setting']['attachdir'].'forum/'.$attach['attachment']; + } + require_once libfile('class/image'); + $img = new image; + if($img->Thumb($filename, $thumbfile, $w, $h, $type)) { + if($nocache) { + dheader('Content-Type: image'); + @readfile($_G['setting']['attachdir'].$thumbfile); + @unlink($_G['setting']['attachdir'].$thumbfile); + } else { + dheader('location: '.$attachurl.$thumbfile); + } + } else { + dheader('Content-Type: image'); + @readfile($filename); + } + } + exit; + } +} ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/2/modcp.php b/source/plugin/mobile/api/2/modcp.php index 2a91c60..98db27d 100644 --- a/source/plugin/mobile/api/2/modcp.php +++ b/source/plugin/mobile/api/2/modcp.php @@ -1,25 +1,25 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/2/mynotelist.php b/source/plugin/mobile/api/2/mynotelist.php index e76fa36..0fd05b4 100644 --- a/source/plugin/mobile/api/2/mynotelist.php +++ b/source/plugin/mobile/api/2/mynotelist.php @@ -1,33 +1,33 @@ - mobile_core::getvalues($GLOBALS['list'], array('/^\d+$/'), array('id', 'uid', 'type', 'new', 'authorid', 'author', 'note', 'dateline', 'from_id', 'from_idtype', 'from_num', 'style', 'rowid')), - 'count' => $GLOBALS['count'], - 'perpage' => $GLOBALS['perpage'], - 'page' => intval($GLOBALS['page']), - ); - mobile_core::result(mobile_core::variable($variable)); - } -} + mobile_core::getvalues($GLOBALS['list'], array('/^\d+$/'), array('id', 'uid', 'type', 'new', 'authorid', 'author', 'note', 'dateline', 'from_id', 'from_idtype', 'from_num', 'style', 'rowid')), + 'count' => $GLOBALS['count'], + 'perpage' => $GLOBALS['perpage'], + 'page' => intval($GLOBALS['page']), + ); + mobile_core::result(mobile_core::variable($variable)); + } +} ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/2/pollvote.php b/source/plugin/mobile/api/2/pollvote.php index 6fd87d9..257908f 100644 --- a/source/plugin/mobile/api/2/pollvote.php +++ b/source/plugin/mobile/api/2/pollvote.php @@ -1,27 +1,27 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/2/sub_checkpost.php b/source/plugin/mobile/api/2/sub_checkpost.php index e53fca1..dff4110 100644 --- a/source/plugin/mobile/api/2/sub_checkpost.php +++ b/source/plugin/mobile/api/2/sub_checkpost.php @@ -1,111 +1,111 @@ - getuserprofile('todayattachs')); - $attachremain = array(); - if($allowupload) { - $attachextensions = !$_G['group']['attachextensions'] ? $mobile_attachextensions : array_map('trim', explode(',', $_G['group']['attachextensions'])); - $allowupload = $forummaxattachsize = array(); - loadcache('attachtype'); - if(isset($_G['cache']['attachtype'][$_G['forum']['fid']])) { - $attachtype = $_G['cache']['attachtype'][$_G['forum']['fid']]; - } elseif(isset($_G['cache']['attachtype'][0])) { - $attachtype = $_G['cache']['attachtype'][0]; - } else { - $attachtype = array(); - } - if($attachtype) { - foreach($attachtype as $extension => $maxsize) { - $forummaxattachsize[$extension] = $maxsize; - } - } - foreach($mobile_attachextensions as $ext) { - if(in_array($ext, $attachextensions)) { - if(isset($forummaxattachsize[$ext])) { - if($forummaxattachsize[$ext] > 0) { - $allowupload[$ext] = $forummaxattachsize[$ext] ? $forummaxattachsize[$ext] : $_G['group']['maxattachsize']; - } else { - $allowupload[$ext] = 0; - } - } else { - $allowupload[$ext] = -1; - } - } else { - $allowupload[$ext] = 0; - } - } - $attachremain = array( - 'size' => $_G['group']['maxsizeperday'] ? $_G['group']['maxsizeperday'] - getuserprofile('todayattachsize') : -1, - 'count' => $_G['group']['maxattachnum'] ? $_G['group']['maxattachnum'] - getuserprofile('todayattachs') : -1, - ); - } else { - $allowupload = array(); - } - $uploadhash = md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); - $allowperm = array(); - $allowperm['allowperm'] = array(); - $allowkey = array('allowpost', 'allowreply', 'allowupload', 'attachremain', 'uploadhash'); - foreach($allowkey as $key) { - if((!empty(${$key}) || ${$key} === 0) || !empty($_GET['debug'])) { - $allowperm['allowperm'][$key] = ${$key}; - } - } - return $allowperm; - } - -} - + getuserprofile('todayattachs')); + $attachremain = array(); + if($allowupload) { + $attachextensions = !$_G['group']['attachextensions'] ? $mobile_attachextensions : array_map('trim', explode(',', $_G['group']['attachextensions'])); + $allowupload = $forummaxattachsize = array(); + loadcache('attachtype'); + if(isset($_G['cache']['attachtype'][$_G['forum']['fid']])) { + $attachtype = $_G['cache']['attachtype'][$_G['forum']['fid']]; + } elseif(isset($_G['cache']['attachtype'][0])) { + $attachtype = $_G['cache']['attachtype'][0]; + } else { + $attachtype = array(); + } + if($attachtype) { + foreach($attachtype as $extension => $maxsize) { + $forummaxattachsize[$extension] = $maxsize; + } + } + foreach($mobile_attachextensions as $ext) { + if(in_array($ext, $attachextensions)) { + if(isset($forummaxattachsize[$ext])) { + if($forummaxattachsize[$ext] > 0) { + $allowupload[$ext] = $forummaxattachsize[$ext] ? $forummaxattachsize[$ext] : $_G['group']['maxattachsize']; + } else { + $allowupload[$ext] = 0; + } + } else { + $allowupload[$ext] = -1; + } + } else { + $allowupload[$ext] = 0; + } + } + $attachremain = array( + 'size' => $_G['group']['maxsizeperday'] ? $_G['group']['maxsizeperday'] - getuserprofile('todayattachsize') : -1, + 'count' => $_G['group']['maxattachnum'] ? $_G['group']['maxattachnum'] - getuserprofile('todayattachs') : -1, + ); + } else { + $allowupload = array(); + } + $uploadhash = md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); + $allowperm = array(); + $allowperm['allowperm'] = array(); + $allowkey = array('allowpost', 'allowreply', 'allowupload', 'attachremain', 'uploadhash'); + foreach($allowkey as $key) { + if((!empty(${$key}) || ${$key} === 0) || !empty($_GET['debug'])) { + $allowperm['allowperm'][$key] = ${$key}; + } + } + return $allowperm; + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/2/topicadmin.php b/source/plugin/mobile/api/2/topicadmin.php index 1f35640..b9874d9 100644 --- a/source/plugin/mobile/api/2/topicadmin.php +++ b/source/plugin/mobile/api/2/topicadmin.php @@ -1,25 +1,25 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/2/uploadavatar.php b/source/plugin/mobile/api/2/uploadavatar.php index d97c52c..77d5ffb 100644 --- a/source/plugin/mobile/api/2/uploadavatar.php +++ b/source/plugin/mobile/api/2/uploadavatar.php @@ -6,6 +6,156 @@ * $Id: uploadavatar.php 35024 2014-10-14 07:43:43Z nemohou $ */ +if (!defined('IN_MOBILE_API')) { + exit('Access Denied'); +} + +$_GET['mod'] = 'spacecp'; +$_GET['ac'] = 'avatar'; +include_once 'home.php'; + +class mobile_api +{ + + public static $tmpavatar; + public static $tmpavatarbig; + public static $tmpavatarmiddle; + public static $tmpavatarsmall; + + public static function common() + { + global $_G; + if (empty($_G['uid'])) { + self::error('api_uploadavatar_unavailable_user'); + } + if (empty($_FILES['Filedata'])) { + self::error('api_uploadavatar_unavailable_pic'); + } + + list($width, $height, $type, $attr) = getimagesize($_FILES['Filedata']['tmp_name']); + $imgtype = array(1 => '.gif', 2 => '.jpg', 3 => '.png'); + $filetype = $imgtype[$type]; + if (!$filetype) { + $filetype = '.jpg'; + } + $avatarpath = $_G['setting']['attachdir']; + $tmpavatar = $avatarpath.'./temp/upload'.$_G['uid'].$filetype; + file_exists($tmpavatar) && @unlink($tmpavatar); + if (@copy($_FILES['Filedata']['tmp_name'], $tmpavatar) || @move_uploaded_file($_FILES['Filedata']['tmp_name'], $tmpavatar)) { + @unlink($_FILES['Filedata']['tmp_name']); + list($width, $height, $type, $attr) = getimagesize($tmpavatar); + if ($width < 10 || $height < 10 || $type == 4) { + @unlink($tmpavatar); + self::error('api_uploadavatar_unusable_image'); + } + } else { + @unlink($_FILES['Filedata']['tmp_name']); + self::error('api_uploadavatar_service_unwritable'); + } + $tmpavatarbig = './temp/upload'.$_G['uid'].'big'.$filetype; + $tmpavatarmiddle = './temp/upload'.$_G['uid'].'middle'.$filetype; + $tmpavatarsmall = './temp/upload'.$_G['uid'].'small'.$filetype; + $image = new image; + if ($image->Thumb($tmpavatar, $tmpavatarbig, 200, 250, 1) <= 0) { + self::error('api_uploadavatar_unusable_image'); + } + if ($image->Thumb($tmpavatar, $tmpavatarmiddle, 120, 120, 1) <= 0) { + self::error('api_uploadavatar_unusable_image'); + } + if ($image->Thumb($tmpavatar, $tmpavatarsmall, 48, 48, 2) <= 0) { + self::error('api_uploadavatar_unusable_image'); + } + + self::$tmpavatar = $tmpavatar; + self::$tmpavatarbig = $avatarpath.$tmpavatarbig; + self::$tmpavatarmiddle = $avatarpath.$tmpavatarmiddle; + self::$tmpavatarsmall = $avatarpath.$tmpavatarsmall; + } + + public static function output() + { + global $_G; + if (!empty($_G['uid'])) { + if (self::$tmpavatarbig && self::$tmpavatarmiddle && self::$tmpavatarsmall) { + $avatar1 = self::byte2hex(file_get_contents(self::$tmpavatarbig)); + $avatar2 = self::byte2hex(file_get_contents(self::$tmpavatarmiddle)); + $avatar3 = self::byte2hex(file_get_contents(self::$tmpavatarsmall)); + + $extra = '&avatar1='.$avatar1.'&avatar2='.$avatar2.'&avatar3='.$avatar3; + $result = self::uc_api_post_ex('user', 'rectavatar', array('uid' => $_G['uid']), $extra); + + @unlink(self::$tmpavatar); + @unlink(self::$tmpavatarbig); + @unlink(self::$tmpavatarmiddle); + @unlink(self::$tmpavatarsmall); + + if ($result == '') { + $variable = array( + 'uploadavatar' => 'api_uploadavatar_success', + ); + C::t('common_member')->update($_G['uid'], array('avatarstatus'=>'1')); + mobile_core::result(mobile_core::variable($variable)); + } else { + self::error('api_uploadavatar_uc_error'); + } + } + } else { + self::error('api_uploadavatar_unavailable_user'); + } + } + + public static function byte2hex($string) + { + $buffer = ''; + $value = unpack('H*', $string); + $value = str_split($value[1], 2); + $b = ''; + foreach ($value as $k => $v) { + $b .= strtoupper($v); + } + + return $b; + } + + public static function uc_api_post_ex($module, $action, $arg = array(), $extra = '') + { + $s = $sep = ''; + foreach ($arg as $k => $v) { + $k = urlencode($k); + if (is_array($v)) { + $s2 = $sep2 = ''; + foreach ($v as $k2 => $v2) { + $k2 = urlencode($k2); + $s2 .= "$sep2{$k}[$k2]=".urlencode(uc_stripslashes($v2)); + $sep2 = '&'; + } + $s .= $sep.$s2; + } else { + $s .= "$sep$k=".urlencode(uc_stripslashes($v)); + } + $sep = '&'; + } + $postdata = uc_api_requestdata($module, $action, $s, $extra); + return uc_fopen2(UC_API.'/index.php', 500000, $postdata, '', true, UC_IP, 20); + } + + function error($errstr) + { + $variable = array( + 'uploadavatar' => $errstr, + ); + mobile_core::result(mobile_core::variable($variable)); + } +} +======= +tmpavatar = $tmpavatar; - $this->tmpavatarbig = $avatarpath.$tmpavatarbig; - $this->tmpavatarmiddle = $avatarpath.$tmpavatarmiddle; - $this->tmpavatarsmall = $avatarpath.$tmpavatarsmall; + self::$tmpavatar = $tmpavatar; + self::$tmpavatarbig = $avatarpath.$tmpavatarbig; + self::$tmpavatarmiddle = $avatarpath.$tmpavatarmiddle; + self::$tmpavatarsmall = $avatarpath.$tmpavatarsmall; } - function output() { + public static function output() { global $_G; if(!empty($_G['uid'])) { - if($this->tmpavatarbig && $this->tmpavatarmiddle && $this->tmpavatarsmall) { - $avatar1 = self::byte2hex(file_get_contents($this->tmpavatarbig)); - $avatar2 = self::byte2hex(file_get_contents($this->tmpavatarmiddle)); - $avatar3 = self::byte2hex(file_get_contents($this->tmpavatarsmall)); + if(self::$tmpavatarbig && self::$tmpavatarmiddle && self::$tmpavatarsmall) { + $avatar1 = self::byte2hex(file_get_contents(self::$tmpavatarbig)); + $avatar2 = self::byte2hex(file_get_contents(self::$tmpavatarmiddle)); + $avatar3 = self::byte2hex(file_get_contents(self::$tmpavatarsmall)); $extra = '&avatar1='.$avatar1.'&avatar2='.$avatar2.'&avatar3='.$avatar3; $result = self::uc_api_post_ex('user', 'rectavatar', array('uid' => $_G['uid']), $extra); - @unlink($this->tmpavatar); - @unlink($this->tmpavatarbig); - @unlink($this->tmpavatarmiddle); - @unlink($this->tmpavatarsmall); + @unlink(self::$tmpavatar); + @unlink(self::$tmpavatarbig); + @unlink(self::$tmpavatarmiddle); + @unlink(self::$tmpavatarsmall); if($result == '') { $variable = array( @@ -99,7 +249,7 @@ function output() { } } - function byte2hex($string) { + public static function byte2hex($string) { $buffer = ''; $value = unpack('H*', $string); $value = str_split($value[1], 2); @@ -111,7 +261,7 @@ function byte2hex($string) { return $b; } - function uc_api_post_ex($module, $action, $arg = array(), $extra = '') { + public static function uc_api_post_ex($module, $action, $arg = array(), $extra = '') { $s = $sep = ''; foreach($arg as $k => $v) { $k = urlencode($k); @@ -141,4 +291,4 @@ function error($errstr) { } -?> \ No newline at end of file +?> diff --git a/source/plugin/mobile/api/3/check.php b/source/plugin/mobile/api/3/check.php index ab3e164..7be2676 100644 --- a/source/plugin/mobile/api/3/check.php +++ b/source/plugin/mobile/api/3/check.php @@ -1,18 +1,18 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/3/forumdisplay.php b/source/plugin/mobile/api/3/forumdisplay.php index 8e60974..32d1a39 100644 --- a/source/plugin/mobile/api/3/forumdisplay.php +++ b/source/plugin/mobile/api/3/forumdisplay.php @@ -1,65 +1,65 @@ - $thread) { - $_G['forum_threadlist'][$k]['tid'] = $thread['icontid']; - if($thread['displayorder'] > 0) { - unset($_G['forum_threadlist'][$k]); - continue; - } - $_G['forum_threadlist'][$k]['cover'] = array(); - if($thread['cover']) { - $_img = @getimagesize($thread['coverpath']); - if($_img) { - $_G['forum_threadlist'][$k]['cover'] = array('w' => $_img[0], 'h' => $_img[1]); - } - } - } - $variable = array( - 'forum' => mobile_core::getvalues($_G['forum'], array('fid', 'fup', 'name', 'threads', 'posts', 'rules', 'autoclose', 'password')), - 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle')), - 'forum_threadlist' => mobile_core::getvalues(array_values($_G['forum_threadlist']), array('/^\d+$/'), array('tid', 'author', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest', 'cover')), - 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts')), - 'tpp' => $_G['tpp'], - 'page' => $GLOBALS['page'], - ); - if(!empty($_G['forum']['threadtypes']) || !empty($_GET['debug'])) { - $variable['threadtypes'] = $_G['forum']['threadtypes']; - } - if(!empty($_G['forum']['threadsorts']) || !empty($_GET['debug'])) { - $variable['threadsorts'] = $_G['forum']['threadsorts']; - } - $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $thread) { + $_G['forum_threadlist'][$k]['tid'] = $thread['icontid']; + if($thread['displayorder'] > 0) { + unset($_G['forum_threadlist'][$k]); + continue; + } + $_G['forum_threadlist'][$k]['cover'] = array(); + if($thread['cover']) { + $_img = @getimagesize($thread['coverpath']); + if($_img) { + $_G['forum_threadlist'][$k]['cover'] = array('w' => $_img[0], 'h' => $_img[1]); + } + } + } + $variable = array( + 'forum' => mobile_core::getvalues($_G['forum'], array('fid', 'fup', 'name', 'threads', 'posts', 'rules', 'autoclose', 'password')), + 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle')), + 'forum_threadlist' => mobile_core::getvalues(array_values($_G['forum_threadlist']), array('/^\d+$/'), array('tid', 'author', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest', 'cover')), + 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts')), + 'tpp' => $_G['tpp'], + 'page' => $GLOBALS['page'], + ); + if(!empty($_G['forum']['threadtypes']) || !empty($_GET['debug'])) { + $variable['threadtypes'] = $_G['forum']['threadtypes']; + } + if(!empty($_G['forum']['threadsorts']) || !empty($_GET['debug'])) { + $variable['threadsorts'] = $_G['forum']['threadsorts']; + } + $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/forumnav.php b/source/plugin/mobile/api/3/forumnav.php index 00d101a..5e2b2ae 100644 --- a/source/plugin/mobile/api/3/forumnav.php +++ b/source/plugin/mobile/api/3/forumnav.php @@ -1,85 +1,85 @@ -'0' AND a.fid=f.fid - WHERE f.status='1' ORDER BY f.type, f.displayorder" - : "SELECT f.fid, f.type, f.name, f.fup, f.status, ff.password, ff.redirect, ff.viewperm, ff.postperm, ff.threadtypes, ff.threadsorts - FROM ".DB::table('forum_forum')." f - LEFT JOIN ".DB::table('forum_forumfield')." ff USING(fid) - WHERE f.status='1' ORDER BY f.type, f.displayorder"; - - $query = DB::query($sql); - while($forum = DB::fetch($query)) { - if($forum['redirect'] || $forum['password']) { - continue; - } - if(!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm']))) { - $forum['name'] = strip_tags($forum['name']); - if($forum['threadsorts']) { - $forum['threadsorts'] = unserialize($forum['threadsorts']); - foreach($forum['threadsorts']['types'] as $k => $v) { - $forum['threadsorts']['types'][$k] = strip_tags($v); - } - $forum['threadsorts'] = mobile_core::getvalues($forum['threadsorts'], array('required', 'types')); - } - if($forum['threadtypes']) { - $forum['threadtypes'] = unserialize($forum['threadtypes']); - $unsetthreadtype = false; - if($_G['adminid'] == 3 && strpos($forum['moderators'], $_G['username']) === false) { - $unsetthreadtype = true; - } - if($_G['adminid'] == 0) { - $unsetthreadtype = true; - } - if($unsetthreadtype) { - foreach ($forum['threadtypes']['moderators'] AS $k => $v) { - if(!empty($v)) { - unset($forum['threadtypes']['types'][$k]); - } - } - } - $flag = 0; - foreach($forum['threadtypes']['types'] as $k => $v) { - $forum['threadtypes']['types'][$k] = strip_tags($v); - if($k == 0) { - $flag = 1; - } - } - if($flag == 1) { - krsort($forum['threadtypes']['types']); - } - $forum['threadtypes'] = mobile_core::getvalues($forum['threadtypes'], array('required', 'types')); - } - $forums[] = mobile_core::getvalues($forum, array('fid', 'type', 'name', 'fup', 'viewperm', 'postperm', 'status', 'threadsorts', 'threadtypes')); - } - } - $variable['forums'] = $forums; - mobile_core::result(mobile_core::variable($variable)); - } - - function output() {} - -} - +'0' AND a.fid=f.fid + WHERE f.status='1' ORDER BY f.type, f.displayorder" + : "SELECT f.fid, f.type, f.name, f.fup, f.status, ff.password, ff.redirect, ff.viewperm, ff.postperm, ff.threadtypes, ff.threadsorts + FROM ".DB::table('forum_forum')." f + LEFT JOIN ".DB::table('forum_forumfield')." ff USING(fid) + WHERE f.status='1' ORDER BY f.type, f.displayorder"; + + $query = DB::query($sql); + while($forum = DB::fetch($query)) { + if($forum['redirect'] || $forum['password']) { + continue; + } + if(!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm']))) { + $forum['name'] = strip_tags($forum['name']); + if($forum['threadsorts']) { + $forum['threadsorts'] = unserialize($forum['threadsorts']); + foreach($forum['threadsorts']['types'] as $k => $v) { + $forum['threadsorts']['types'][$k] = strip_tags($v); + } + $forum['threadsorts'] = mobile_core::getvalues($forum['threadsorts'], array('required', 'types')); + } + if($forum['threadtypes']) { + $forum['threadtypes'] = unserialize($forum['threadtypes']); + $unsetthreadtype = false; + if($_G['adminid'] == 3 && strpos($forum['moderators'], $_G['username']) === false) { + $unsetthreadtype = true; + } + if($_G['adminid'] == 0) { + $unsetthreadtype = true; + } + if($unsetthreadtype) { + foreach ($forum['threadtypes']['moderators'] AS $k => $v) { + if(!empty($v)) { + unset($forum['threadtypes']['types'][$k]); + } + } + } + $flag = 0; + foreach($forum['threadtypes']['types'] as $k => $v) { + $forum['threadtypes']['types'][$k] = strip_tags($v); + if($k == 0) { + $flag = 1; + } + } + if($flag == 1) { + krsort($forum['threadtypes']['types']); + } + $forum['threadtypes'] = mobile_core::getvalues($forum['threadtypes'], array('required', 'types')); + } + $forums[] = mobile_core::getvalues($forum, array('fid', 'type', 'name', 'fup', 'viewperm', 'postperm', 'status', 'threadsorts', 'threadtypes')); + } + } + $variable['forums'] = $forums; + mobile_core::result(mobile_core::variable($variable)); + } + + function output() {} + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/forumupload.php b/source/plugin/mobile/api/3/forumupload.php index 19c29c1..ae0f684 100644 --- a/source/plugin/mobile/api/3/forumupload.php +++ b/source/plugin/mobile/api/3/forumupload.php @@ -1,68 +1,68 @@ -init_cron = false; -$discuz->init_session = false; -$discuz->init(); - -$_G['uid'] = intval($_POST['uid']); - -if((empty($_G['uid']) && $_GET['operation'] != 'upload') || $_POST['hash'] != md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])) { - exit(); -} else { - if($_G['uid']) { - $_G['member'] = getuserbyuid($_G['uid']); - } - $_G['groupid'] = $_G['member']['groupid']; - loadcache('usergroup_'.$_G['member']['groupid']); - $_G['group'] = $_G['cache']['usergroup_'.$_G['member']['groupid']]; -} - -$_FILES['Filedata']['name'] = diconv(urldecode($_FILES['Filedata']['name']), 'UTF-8'); -$_FILES['Filedata']['type'] = $_GET['filetype']; - -$forumattachextensions = ''; -$fid = intval($_GET['fid']); -if($fid) { - $forum = $fid != $_G['fid'] ? C::t('forum_forum')->fetch_info_by_fid($fid) : $_G['forum']; - if($forum['status'] == 3 && $forum['level']) { - $levelinfo = C::t('forum_grouplevel')->fetch($forum['level']); - if($postpolicy = $levelinfo['postpolicy']) { - $postpolicy = dunserialize($postpolicy); - $forumattachextensions = $postpolicy['attachextensions']; - } - } else { - $forumattachextensions = $forum['attachextensions']; - } - if($forumattachextensions) { - $_G['group']['attachextensions'] = $forumattachextensions; - } -} - -class forum_upload_mobile extends forum_upload { - - function uploadmsg($statusid) { - $variable = array('code' => $statusid, 'ret' => array('aId' => $this->aid, 'image' => $this->attach['isimage'] ? 1 : 2)); - mobile_core::result(mobile_core::variable($variable)); - } - -} - -$upload = new forum_upload_mobile(); - +init_cron = false; +$discuz->init_session = false; +$discuz->init(); + +$_G['uid'] = intval($_POST['uid']); + +if((empty($_G['uid']) && $_GET['operation'] != 'upload') || $_POST['hash'] != md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])) { + exit(); +} else { + if($_G['uid']) { + $_G['member'] = getuserbyuid($_G['uid']); + } + $_G['groupid'] = $_G['member']['groupid']; + loadcache('usergroup_'.$_G['member']['groupid']); + $_G['group'] = $_G['cache']['usergroup_'.$_G['member']['groupid']]; +} + +$_FILES['Filedata']['name'] = diconv(urldecode($_FILES['Filedata']['name']), 'UTF-8'); +$_FILES['Filedata']['type'] = $_GET['filetype']; + +$forumattachextensions = ''; +$fid = intval($_GET['fid']); +if($fid) { + $forum = $fid != $_G['fid'] ? C::t('forum_forum')->fetch_info_by_fid($fid) : $_G['forum']; + if($forum['status'] == 3 && $forum['level']) { + $levelinfo = C::t('forum_grouplevel')->fetch($forum['level']); + if($postpolicy = $levelinfo['postpolicy']) { + $postpolicy = dunserialize($postpolicy); + $forumattachextensions = $postpolicy['attachextensions']; + } + } else { + $forumattachextensions = $forum['attachextensions']; + } + if($forumattachextensions) { + $_G['group']['attachextensions'] = $forumattachextensions; + } +} + +class forum_upload_mobile extends forum_upload { + + function uploadmsg($statusid) { + $variable = array('code' => $statusid, 'ret' => array('aId' => $this->aid, 'image' => $this->attach['isimage'] ? 1 : 2)); + mobile_core::result(mobile_core::variable($variable)); + } + +} + +$upload = new forum_upload_mobile(); + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/login.php b/source/plugin/mobile/api/3/login.php index 2f3a60e..b661339 100644 --- a/source/plugin/mobile/api/3/login.php +++ b/source/plugin/mobile/api/3/login.php @@ -1,35 +1,35 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/3/myfavforum.php b/source/plugin/mobile/api/3/myfavforum.php index 9246b6c..7ea2358 100644 --- a/source/plugin/mobile/api/3/myfavforum.php +++ b/source/plugin/mobile/api/3/myfavforum.php @@ -1,49 +1,49 @@ - $_v) { - $fids[$_v['id']] = $_k; - } - if($fids) { - $favforumlist = C::t('forum_forum')->fetch_all(array_keys($fids)); - foreach($favforumlist as $_fid => $_v) { - $GLOBALS['list'][$fids[$_fid]]['threads'] = $_v['threads']; - $GLOBALS['list'][$fids[$_fid]]['posts'] = $_v['posts']; - $GLOBALS['list'][$fids[$_fid]]['todayposts'] = $_v['todayposts']; - $GLOBALS['list'][$fids[$_fid]]['yesterdayposts'] = $_v['yesterdayposts']; - } - } - $variable = array( - 'list' => array_values($GLOBALS['list']), - 'perpage' => $GLOBALS['perpage'], - 'count' => $GLOBALS['count'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $_v) { + $fids[$_v['id']] = $_k; + } + if($fids) { + $favforumlist = C::t('forum_forum')->fetch_all(array_keys($fids)); + foreach($favforumlist as $_fid => $_v) { + $GLOBALS['list'][$fids[$_fid]]['threads'] = $_v['threads']; + $GLOBALS['list'][$fids[$_fid]]['posts'] = $_v['posts']; + $GLOBALS['list'][$fids[$_fid]]['todayposts'] = $_v['todayposts']; + $GLOBALS['list'][$fids[$_fid]]['yesterdayposts'] = $_v['yesterdayposts']; + } + } + $variable = array( + 'list' => array_values($GLOBALS['list']), + 'perpage' => $GLOBALS['perpage'], + 'count' => $GLOBALS['count'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/mynotelist.php b/source/plugin/mobile/api/3/mynotelist.php index 20b7e34..2c38a95 100644 --- a/source/plugin/mobile/api/3/mynotelist.php +++ b/source/plugin/mobile/api/3/mynotelist.php @@ -1,54 +1,54 @@ -{actorusername}'; - $actorpreg = '/^'.str_replace(array('\{actoruid\}', '\{actorusername\}'), array('(\d+)', '(.+?)'), preg_quote($actorlang, '/')).'$/'; - - foreach($GLOBALS['list'] as $_k => $_v) { - if(preg_match($noticepreg, $_v['note'], $_r)) { - list(, $actor, $tid, $pid, $subject) = $_r; - if(preg_match($actorpreg, $actor, $_r)) { - list(, $actoruid, $actorusername) = $_r; - } - $GLOBALS['list'][$_k]['notevar'] = array( - 'tid' => $tid, - 'pid' => $pid, - 'subject' => $subject, - 'actoruid' => $actoruid, - 'actorusername' => $actorusername, - ); - } - } - $variable = array( - 'list' => mobile_core::getvalues(array_values($GLOBALS['list']), array('/^\d+$/'), array('id', 'uid', 'type', 'new', 'authorid', 'author', 'note', 'dateline', 'from_id', 'from_idtype', 'from_num', 'style', 'rowid', 'notevar')), - 'count' => $GLOBALS['count'], - 'perpage' => $GLOBALS['perpage'], - 'page' => intval($GLOBALS['page']), - ); - mobile_core::result(mobile_core::variable($variable)); - } -} +{actorusername}'; + $actorpreg = '/^'.str_replace(array('\{actoruid\}', '\{actorusername\}'), array('(\d+)', '(.+?)'), preg_quote($actorlang, '/')).'$/'; + + foreach($GLOBALS['list'] as $_k => $_v) { + if(preg_match($noticepreg, $_v['note'], $_r)) { + list(, $actor, $tid, $pid, $subject) = $_r; + if(preg_match($actorpreg, $actor, $_r)) { + list(, $actoruid, $actorusername) = $_r; + } + $GLOBALS['list'][$_k]['notevar'] = array( + 'tid' => $tid, + 'pid' => $pid, + 'subject' => $subject, + 'actoruid' => $actoruid, + 'actorusername' => $actorusername, + ); + } + } + $variable = array( + 'list' => mobile_core::getvalues(array_values($GLOBALS['list']), array('/^\d+$/'), array('id', 'uid', 'type', 'new', 'authorid', 'author', 'note', 'dateline', 'from_id', 'from_idtype', 'from_num', 'style', 'rowid', 'notevar')), + 'count' => $GLOBALS['count'], + 'perpage' => $GLOBALS['perpage'], + 'page' => intval($GLOBALS['page']), + ); + mobile_core::result(mobile_core::variable($variable)); + } +} ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/profile.php b/source/plugin/mobile/api/3/profile.php index 8fe939b..9822bfe 100644 --- a/source/plugin/mobile/api/3/profile.php +++ b/source/plugin/mobile/api/3/profile.php @@ -1,39 +1,39 @@ -count_by_uid_idtype($_G['uid'], 'tid'); - } - unset($data['password'], $data['email'], $data['regip'], $data['lastip'], $data['regip_loc'], $data['lastip_loc']); - $variable = array( - 'space' => $data, - 'extcredits' => $_G['setting']['extcredits'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - +count_by_uid_idtype($_G['uid'], 'tid'); + } + unset($data['password'], $data['email'], $data['regip'], $data['lastip'], $data['regip_loc'], $data['lastip_loc']); + $variable = array( + 'space' => $data, + 'extcredits' => $_G['setting']['extcredits'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/seccode.php b/source/plugin/mobile/api/3/seccode.php index b715961..cc834f3 100644 --- a/source/plugin/mobile/api/3/seccode.php +++ b/source/plugin/mobile/api/3/seccode.php @@ -1,27 +1,27 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/3/secure.php b/source/plugin/mobile/api/3/secure.php index 53d3a2d..da55737 100644 --- a/source/plugin/mobile/api/3/secure.php +++ b/source/plugin/mobile/api/3/secure.php @@ -1,41 +1,41 @@ - $sechash); - if($seccodecheck) { - $variable['seccode'] = $_G['siteurl'].'api/mobile/index.php?module=seccode&sechash='.$sechash.'&version='.(empty($_GET['secversion']) ? '1' : $_GET['secversion']); - } - if($secqaacheck) { - $variable['secqaa'] = make_secqaa(); - } - } - mobile_core::result(mobile_core::variable($variable)); - } - - function output() {} - -} - + $sechash); + if($seccodecheck) { + $variable['seccode'] = $_G['siteurl'].'api/mobile/index.php?module=seccode&sechash='.$sechash.'&version='.(empty($_GET['secversion']) ? '1' : $_GET['secversion']); + } + if($secqaacheck) { + $variable['secqaa'] = make_secqaa(); + } + } + mobile_core::result(mobile_core::variable($variable)); + } + + function output() {} + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/sendreply.php b/source/plugin/mobile/api/3/sendreply.php index 6dad9af..0f01491 100644 --- a/source/plugin/mobile/api/3/sendreply.php +++ b/source/plugin/mobile/api/3/sendreply.php @@ -1,93 +1,93 @@ - $bit) { - $threadstatus = setstatus(13 - $i, $bit, $threadstatus); - } - C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); - } - - $posttable = getposttablebytid($values['tid']); - $poststatus = DB::result_first("SELECT status FROM ".DB::table($posttable)." WHERE pid='$values[pid]'"); - $poststatus = setstatus(4, 1, $poststatus); - if(!empty($_POST['allowlocal'])) { - $poststatus = setstatus(6, 1, $poststatus); - } - if(!empty($_POST['allowsound'])) { - $poststatus = setstatus(7, 1, $poststatus); - } - if(!empty($_POST['mobiletype']) && $_POST['mobiletype'] < 8) { - $mobiletype = base_convert($_POST['mobiletype'], 10, 2); - $mobiletype = sprintf('%03d', $mobiletype); - for($i = 0;$i < 3;$i++) { - $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); - } - } - C::t('forum_post')->update('tid:'.$values['tid'], $values['pid'], array('status' => $poststatus)); - - if($_POST['location']) { - list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); - C::t('forum_post_location')->insert(array( - 'pid' => $values['pid'], - 'tid' => $values['tid'], - 'uid' => $_G['uid'], - 'mapx' => $mapx, - 'mapy' => $mapy, - 'location' => $location, - )); - } - } - } - - function output() { - global $_G; - $variable = array( - 'tid' => $_G['tid'], - 'pid' => $GLOBALS['pid'], - 'noticetrimstr' => $GLOBALS['noticetrimstr'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $bit) { + $threadstatus = setstatus(13 - $i, $bit, $threadstatus); + } + C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); + } + + $posttable = getposttablebytid($values['tid']); + $poststatus = DB::result_first("SELECT status FROM ".DB::table($posttable)." WHERE pid='$values[pid]'"); + $poststatus = setstatus(4, 1, $poststatus); + if(!empty($_POST['allowlocal'])) { + $poststatus = setstatus(6, 1, $poststatus); + } + if(!empty($_POST['allowsound'])) { + $poststatus = setstatus(7, 1, $poststatus); + } + if(!empty($_POST['mobiletype']) && $_POST['mobiletype'] < 8) { + $mobiletype = base_convert($_POST['mobiletype'], 10, 2); + $mobiletype = sprintf('%03d', $mobiletype); + for($i = 0;$i < 3;$i++) { + $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); + } + } + C::t('forum_post')->update('tid:'.$values['tid'], $values['pid'], array('status' => $poststatus)); + + if($_POST['location']) { + list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); + C::t('forum_post_location')->insert(array( + 'pid' => $values['pid'], + 'tid' => $values['tid'], + 'uid' => $_G['uid'], + 'mapx' => $mapx, + 'mapy' => $mapy, + 'location' => $location, + )); + } + } + } + + function output() { + global $_G; + $variable = array( + 'tid' => $_G['tid'], + 'pid' => $GLOBALS['pid'], + 'noticetrimstr' => $GLOBALS['noticetrimstr'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/sub_checkpost.php b/source/plugin/mobile/api/3/sub_checkpost.php index e53fca1..dff4110 100644 --- a/source/plugin/mobile/api/3/sub_checkpost.php +++ b/source/plugin/mobile/api/3/sub_checkpost.php @@ -1,111 +1,111 @@ - getuserprofile('todayattachs')); - $attachremain = array(); - if($allowupload) { - $attachextensions = !$_G['group']['attachextensions'] ? $mobile_attachextensions : array_map('trim', explode(',', $_G['group']['attachextensions'])); - $allowupload = $forummaxattachsize = array(); - loadcache('attachtype'); - if(isset($_G['cache']['attachtype'][$_G['forum']['fid']])) { - $attachtype = $_G['cache']['attachtype'][$_G['forum']['fid']]; - } elseif(isset($_G['cache']['attachtype'][0])) { - $attachtype = $_G['cache']['attachtype'][0]; - } else { - $attachtype = array(); - } - if($attachtype) { - foreach($attachtype as $extension => $maxsize) { - $forummaxattachsize[$extension] = $maxsize; - } - } - foreach($mobile_attachextensions as $ext) { - if(in_array($ext, $attachextensions)) { - if(isset($forummaxattachsize[$ext])) { - if($forummaxattachsize[$ext] > 0) { - $allowupload[$ext] = $forummaxattachsize[$ext] ? $forummaxattachsize[$ext] : $_G['group']['maxattachsize']; - } else { - $allowupload[$ext] = 0; - } - } else { - $allowupload[$ext] = -1; - } - } else { - $allowupload[$ext] = 0; - } - } - $attachremain = array( - 'size' => $_G['group']['maxsizeperday'] ? $_G['group']['maxsizeperday'] - getuserprofile('todayattachsize') : -1, - 'count' => $_G['group']['maxattachnum'] ? $_G['group']['maxattachnum'] - getuserprofile('todayattachs') : -1, - ); - } else { - $allowupload = array(); - } - $uploadhash = md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); - $allowperm = array(); - $allowperm['allowperm'] = array(); - $allowkey = array('allowpost', 'allowreply', 'allowupload', 'attachremain', 'uploadhash'); - foreach($allowkey as $key) { - if((!empty(${$key}) || ${$key} === 0) || !empty($_GET['debug'])) { - $allowperm['allowperm'][$key] = ${$key}; - } - } - return $allowperm; - } - -} - + getuserprofile('todayattachs')); + $attachremain = array(); + if($allowupload) { + $attachextensions = !$_G['group']['attachextensions'] ? $mobile_attachextensions : array_map('trim', explode(',', $_G['group']['attachextensions'])); + $allowupload = $forummaxattachsize = array(); + loadcache('attachtype'); + if(isset($_G['cache']['attachtype'][$_G['forum']['fid']])) { + $attachtype = $_G['cache']['attachtype'][$_G['forum']['fid']]; + } elseif(isset($_G['cache']['attachtype'][0])) { + $attachtype = $_G['cache']['attachtype'][0]; + } else { + $attachtype = array(); + } + if($attachtype) { + foreach($attachtype as $extension => $maxsize) { + $forummaxattachsize[$extension] = $maxsize; + } + } + foreach($mobile_attachextensions as $ext) { + if(in_array($ext, $attachextensions)) { + if(isset($forummaxattachsize[$ext])) { + if($forummaxattachsize[$ext] > 0) { + $allowupload[$ext] = $forummaxattachsize[$ext] ? $forummaxattachsize[$ext] : $_G['group']['maxattachsize']; + } else { + $allowupload[$ext] = 0; + } + } else { + $allowupload[$ext] = -1; + } + } else { + $allowupload[$ext] = 0; + } + } + $attachremain = array( + 'size' => $_G['group']['maxsizeperday'] ? $_G['group']['maxsizeperday'] - getuserprofile('todayattachsize') : -1, + 'count' => $_G['group']['maxattachnum'] ? $_G['group']['maxattachnum'] - getuserprofile('todayattachs') : -1, + ); + } else { + $allowupload = array(); + } + $uploadhash = md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); + $allowperm = array(); + $allowperm['allowperm'] = array(); + $allowkey = array('allowpost', 'allowreply', 'allowupload', 'attachremain', 'uploadhash'); + foreach($allowkey as $key) { + if((!empty(${$key}) || ${$key} === 0) || !empty($_GET['debug'])) { + $allowperm['allowperm'][$key] = ${$key}; + } + } + return $allowperm; + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/3/viewthread.php b/source/plugin/mobile/api/3/viewthread.php index e8718e9..22bfa8d 100644 --- a/source/plugin/mobile/api/3/viewthread.php +++ b/source/plugin/mobile/api/3/viewthread.php @@ -1,86 +1,86 @@ -= 0 ? $_G['forum_thread']['replies'] : 0; - if($_G['page'] > @ceil(($_G['forum_thread']['replies'] + 1) / $_G['ppp'])) { - $content = ''; - } elseif($postlist) { - if(!function_exists('mobileoem_template')) { - include_once DISCUZ_ROOT.'./source/plugin/mobileoem/discuzcode.func.php'; - } - $variable = array(); - foreach($GLOBALS['aimgs'] as $pid => $aids) { - foreach($aids as $aid) { - $_url = parse_url($postlist[$pid]['attachments'][$aid]['url']); - $variable['imagelist'][$aid] = (!$postlist[$pid]['attachments'][$aid]['remote'] && !$_url['scheme'] ? $_G['siteurl'] : '').$postlist[$pid]['attachments'][$aid]['url'].$postlist[$pid]['attachments'][$aid]['attachment']; - if(strexists($postlist[$pid]['message'], '[attach]'.$aid.'[/attach]')) { - $postlist[$pid]['message'] = str_replace('[attach]'.$aid.'[/attach]', mobileoem_parseimg($postlist[$pid]['attachments'][$aid]['width'], 0, $variable['imagelist'][$aid]), $postlist[$pid]['message']); - } else { - $postlist[$pid]['message'] .= '

    '.mobileoem_parseimg($postlist[$pid]['attachments'][$aid]['width'], 0, $variable['imagelist'][$aid]); - } - } - } - foreach($postlist as $pid => $post) { - if($post['attachlist']) { - foreach($post['attachlist'] as $aid) { - $aidencode = packaids($postlist[$pid]['attachments'][$aid]); - $_code = parseurl('/forum.php?mod=attachment&aid='.$aidencode, $postlist[$pid]['attachments'][$aid]['filename'], 0); - if(strexists($postlist[$pid]['message'], '[attach]'.$aid.'[/attach]')) { - $postlist[$pid]['message'] = str_replace('[attach]'.$aid.'[/attach]', $_code, $postlist[$pid]['message']); - } else { - $postlist[$pid]['message'] .= '

    '.$_code; - } - } - } - $postlist[$pid]['message'] = preg_replace("/\[attach\]\d+\[\/attach\]/i", '', $postlist[$pid]['message']); - } - $get = $_GET; - unset($get['page'], $get['debug']); - $nexturl = http_build_query($get); - include mobileoem_template('forum/viewthread'); - if(!empty($_GET['debug'])) { - exit; - } - $content = ob_get_contents(); - ob_end_clean(); - } - $variable['forumname'] = $forum['name']; - $variable['datatype'] = $_G['page'] == 1 ? 0 : 1; - $variable['webview_page'] = $content; - $variable['ppp'] = $_G['ppp']; - $variable['posts'] = count($postlist); - $variable['page'] = $_G['page']; - if($_G['forum_discuzcode']['passwordauthor']) { - $variable['passwordpid'] = array_keys($_G['forum_discuzcode']['passwordauthor']); - } - - mobile_core::result(mobile_core::variable($variable)); - } - -} - += 0 ? $_G['forum_thread']['replies'] : 0; + if($_G['page'] > @ceil(($_G['forum_thread']['replies'] + 1) / $_G['ppp'])) { + $content = ''; + } elseif($postlist) { + if(!function_exists('mobileoem_template')) { + include_once DISCUZ_ROOT.'./source/plugin/mobileoem/discuzcode.func.php'; + } + $variable = array(); + foreach($GLOBALS['aimgs'] as $pid => $aids) { + foreach($aids as $aid) { + $_url = parse_url($postlist[$pid]['attachments'][$aid]['url']); + $variable['imagelist'][$aid] = (!$postlist[$pid]['attachments'][$aid]['remote'] && !$_url['scheme'] ? $_G['siteurl'] : '').$postlist[$pid]['attachments'][$aid]['url'].$postlist[$pid]['attachments'][$aid]['attachment']; + if(strexists($postlist[$pid]['message'], '[attach]'.$aid.'[/attach]')) { + $postlist[$pid]['message'] = str_replace('[attach]'.$aid.'[/attach]', mobileoem_parseimg($postlist[$pid]['attachments'][$aid]['width'], 0, $variable['imagelist'][$aid]), $postlist[$pid]['message']); + } else { + $postlist[$pid]['message'] .= '

    '.mobileoem_parseimg($postlist[$pid]['attachments'][$aid]['width'], 0, $variable['imagelist'][$aid]); + } + } + } + foreach($postlist as $pid => $post) { + if($post['attachlist']) { + foreach($post['attachlist'] as $aid) { + $aidencode = packaids($postlist[$pid]['attachments'][$aid]); + $_code = parseurl('/forum.php?mod=attachment&aid='.$aidencode, $postlist[$pid]['attachments'][$aid]['filename'], 0); + if(strexists($postlist[$pid]['message'], '[attach]'.$aid.'[/attach]')) { + $postlist[$pid]['message'] = str_replace('[attach]'.$aid.'[/attach]', $_code, $postlist[$pid]['message']); + } else { + $postlist[$pid]['message'] .= '

    '.$_code; + } + } + } + $postlist[$pid]['message'] = preg_replace("/\[attach\]\d+\[\/attach\]/i", '', $postlist[$pid]['message']); + } + $get = $_GET; + unset($get['page'], $get['debug']); + $nexturl = http_build_query($get); + include mobileoem_template('forum/viewthread'); + if(!empty($_GET['debug'])) { + exit; + } + $content = ob_get_contents(); + ob_end_clean(); + } + $variable['forumname'] = $forum['name']; + $variable['datatype'] = $_G['page'] == 1 ? 0 : 1; + $variable['webview_page'] = $content; + $variable['ppp'] = $_G['ppp']; + $variable['posts'] = count($postlist); + $variable['page'] = $_G['page']; + if($_G['forum_discuzcode']['passwordauthor']) { + $variable['passwordpid'] = array_keys($_G['forum_discuzcode']['passwordauthor']); + } + + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/bestanswer.php b/source/plugin/mobile/api/4/bestanswer.php index 2faf698..28c0134 100644 --- a/source/plugin/mobile/api/4/bestanswer.php +++ b/source/plugin/mobile/api/4/bestanswer.php @@ -1,30 +1,30 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/4/check.php b/source/plugin/mobile/api/4/check.php index 7d091ee..fe064c3 100644 --- a/source/plugin/mobile/api/4/check.php +++ b/source/plugin/mobile/api/4/check.php @@ -1,62 +1,62 @@ -init(); - -if(!defined('DISCUZ_VERSION')) { - require './source/discuz_version.php'; -} - -if(in_array('mobile', $_G['setting']['plugins']['available'])) { - loadcache('wsq_checkinfo'); - if (!$_G['cache']['wsq_checkinfo'] || TIMESTAMP - $_G['cache']['wsq_checkinfo']['expiration'] > 600) { - $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - $forums = C::t('forum_forum')->fetch_all_by_status(1); - foreach ($forums as $forum) { - $posts += $forum['posts']; - } - loadcache('userstats'); - $array = array( - 'discuzversion' => DISCUZ_VERSION, - 'charset' => CHARSET, - 'version' => MOBILE_PLUGIN_VERSION, - 'pluginversion' => $_G['setting']['plugins']['version']['mobile'], - 'regname' => $_G['setting']['regname'], - 'qqconnect' => in_array('qqconnect', $_G['setting']['plugins']['available']) ? '1' : '0', - 'wsqqqconnect' => in_array('qqconnect', $_G['setting']['plugins']['available']) ? '1' : '0', - 'wsqhideregister' => $_G['wechat']['setting']['wechat_allowregister'] && $_G['wechat']['setting']['wechat_allowfastregister'] ? '1' : '0', - 'sitename' => $_G['setting']['bbname'], - 'mysiteid' => $_G['setting']['my_siteid'], - 'ucenterurl' => $_G['setting']['ucenterurl'], - 'defaultfid' => $_G['wechat']['setting']['wsq_fid'], - 'totalposts' => $posts, - 'totalmembers' => $_G['cache']['userstats']['totalmembers'], - ); - savecache('wsq_checkinfo', array('variable' => $array, 'expiration' => TIMESTAMP)); - } else { - $array = $_G['cache']['wsq_checkinfo']['variable']; - } -} else { - $array = array(); -} - -$array['testcookie'] = $_G['cookie']['testcookie']; -$data = mobile_core::json($array); -mobile_core::make_cors($_SERVER['REQUEST_METHOD'], REQUEST_METHOD_DOMAIN); - -echo $data; - +init(); + +if(!defined('DISCUZ_VERSION')) { + require './source/discuz_version.php'; +} + +if(in_array('mobile', $_G['setting']['plugins']['available'])) { + loadcache('wsq_checkinfo'); + if (!$_G['cache']['wsq_checkinfo'] || TIMESTAMP - $_G['cache']['wsq_checkinfo']['expiration'] > 600) { + $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + $forums = C::t('forum_forum')->fetch_all_by_status(1); + foreach ($forums as $forum) { + $posts += $forum['posts']; + } + loadcache('userstats'); + $array = array( + 'discuzversion' => DISCUZ_VERSION, + 'charset' => CHARSET, + 'version' => MOBILE_PLUGIN_VERSION, + 'pluginversion' => $_G['setting']['plugins']['version']['mobile'], + 'regname' => $_G['setting']['regname'], + 'qqconnect' => in_array('qqconnect', $_G['setting']['plugins']['available']) ? '1' : '0', + 'wsqqqconnect' => in_array('qqconnect', $_G['setting']['plugins']['available']) ? '1' : '0', + 'wsqhideregister' => $_G['wechat']['setting']['wechat_allowregister'] && $_G['wechat']['setting']['wechat_allowfastregister'] ? '1' : '0', + 'sitename' => $_G['setting']['bbname'], + 'mysiteid' => $_G['setting']['my_siteid'], + 'ucenterurl' => $_G['setting']['ucenterurl'], + 'defaultfid' => $_G['wechat']['setting']['wsq_fid'], + 'totalposts' => $posts, + 'totalmembers' => $_G['cache']['userstats']['totalmembers'], + ); + savecache('wsq_checkinfo', array('variable' => $array, 'expiration' => TIMESTAMP)); + } else { + $array = $_G['cache']['wsq_checkinfo']['variable']; + } +} else { + $array = array(); +} + +$array['testcookie'] = $_G['cookie']['testcookie']; +$data = mobile_core::json($array); +mobile_core::make_cors($_SERVER['REQUEST_METHOD'], REQUEST_METHOD_DOMAIN); + +echo $data; + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/checkcookie.php b/source/plugin/mobile/api/4/checkcookie.php index a544859..0f739b8 100644 --- a/source/plugin/mobile/api/4/checkcookie.php +++ b/source/plugin/mobile/api/4/checkcookie.php @@ -1,20 +1,20 @@ -init(); - -dsetcookie('testcookie', $_GET['siteid'], 600); - +init(); + +dsetcookie('testcookie', $_GET['siteid'], 600); + mobile_core::result(array()); \ No newline at end of file diff --git a/source/plugin/mobile/api/4/checkinfo.php b/source/plugin/mobile/api/4/checkinfo.php index d852546..dc4aa43 100644 --- a/source/plugin/mobile/api/4/checkinfo.php +++ b/source/plugin/mobile/api/4/checkinfo.php @@ -1,37 +1,37 @@ -cachelist = $cachelist; -$discuz->init(); - -$_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - -require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; - -$result = wsq::check($_GET); - -if($result) { - $setting = C::t('common_setting')->fetch_all(array('mobilewechat')); - $setting = unserialize($setting['mobilewechat']); - $setting['wsq_status'] = 1; - $settings = array('mobilewechat' => serialize($setting)); - C::t('common_setting')->update_batch($settings); -} - -echo $result; +cachelist = $cachelist; +$discuz->init(); + +$_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + +require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; + +$result = wsq::check($_GET); + +if($result) { + $setting = C::t('common_setting')->fetch_all(array('mobilewechat')); + $setting = unserialize($setting['mobilewechat']); + $setting['wsq_status'] = 1; + $settings = array('mobilewechat' => serialize($setting)); + C::t('common_setting')->update_batch($settings); +} + +echo $result; exit; \ No newline at end of file diff --git a/source/plugin/mobile/api/4/credit.php b/source/plugin/mobile/api/4/credit.php index d9d7e77..7a8399f 100644 --- a/source/plugin/mobile/api/4/credit.php +++ b/source/plugin/mobile/api/4/credit.php @@ -1,47 +1,47 @@ - 0) { - $v = $ac == 'inc' ? $_GET['value'] : -$_GET['value']; - $log = lang('plugin/wechat', 'wsq_apicredit_log_'.$ac); - updatemembercount(array($_G['uid']), array($extcredit => $v), true, '', 0, '', $log); - $data = C::t('common_member_count')->fetch($_G['uid']); - $return['extcredit'] = $data[$extcredit]; - } elseif($ac == 'get') { - $return['extcredit'] = getuserprofile($extcredit); - } - mobile_core::result(mobile_core::variable($return)); - } - - function output() { - } - -} - + 0) { + $v = $ac == 'inc' ? $_GET['value'] : -$_GET['value']; + $log = lang('plugin/wechat', 'wsq_apicredit_log_'.$ac); + updatemembercount(array($_G['uid']), array($extcredit => $v), true, '', 0, '', $log); + $data = C::t('common_member_count')->fetch($_G['uid']); + $return['extcredit'] = $data[$extcredit]; + } elseif($ac == 'get') { + $return['extcredit'] = getuserprofile($extcredit); + } + mobile_core::result(mobile_core::variable($return)); + } + + function output() { + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/forumdisplay.php b/source/plugin/mobile/api/4/forumdisplay.php index 2103cea..1bac147 100644 --- a/source/plugin/mobile/api/4/forumdisplay.php +++ b/source/plugin/mobile/api/4/forumdisplay.php @@ -1,38 +1,38 @@ - array('fid' => $_G['fid'], 'redirect' => $_G['forum']['redirect'])))); - } - } - - function output() { - global $_G; - include_once 'source/plugin/mobile/api/4/sub_threadlist.php'; - mobile_core::result(mobile_core::variable($variable)); - } - -} - + array('fid' => $_G['fid'], 'redirect' => $_G['forum']['redirect'])))); + } + } + + function output() { + global $_G; + include_once 'source/plugin/mobile/api/4/sub_threadlist.php'; + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/forumindex.php b/source/plugin/mobile/api/4/forumindex.php index 3e401f1..1f00dd4 100644 --- a/source/plugin/mobile/api/4/forumindex.php +++ b/source/plugin/mobile/api/4/forumindex.php @@ -1,55 +1,55 @@ -fetch_all_by_status(1); - foreach ($forums as $forum) { - if ($forum['fup'] && $GLOBALS['forumlist'][$forum['fup']]) { - $GLOBALS['forumlist'][$forum['fup']]['sublist'][] = mobile_core::getvalues($forum, array('fid', 'name', 'threads', 'posts', 'redirect', 'todayposts', 'description')); - } - if ($GLOBALS['forumlist'][$forum['fid']]['icon']) { - $icon = preg_match('/src="(.+?)"/', $GLOBALS['forumlist'][$forum['fid']]['icon'], $r) ? $r[1] : ''; - if (!preg_match('/^http:\//', $icon)) { - $icon = $_G['siteurl'] . $icon; - } - $GLOBALS['forumlist'][$forum['fid']]['icon'] = $icon; - } - } - if ($_GET['checknotice']) { - $variable = array(); - } else { - $variable = array( - 'member_email' => $_G['member']['email'], - 'member_credits' => $_G['member']['credits'], - 'setting_bbclosed' => $_G['setting']['bbclosed'], - 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle', '/^allow.+?$/')), - 'catlist' => array_values(mobile_core::getvalues($GLOBALS['catlist'], array('/^\d+$/'), array('fid', 'name', 'forums'))), - 'forumlist' => array_values(mobile_core::getvalues($GLOBALS['forumlist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'posts', 'redirect', 'todayposts', 'description', 'sublist', 'icon'))), - ); - } - mobile_core::result(mobile_core::variable($variable)); - } - -} - +fetch_all_by_status(1); + foreach ($forums as $forum) { + if ($forum['fup'] && $GLOBALS['forumlist'][$forum['fup']]) { + $GLOBALS['forumlist'][$forum['fup']]['sublist'][] = mobile_core::getvalues($forum, array('fid', 'name', 'threads', 'posts', 'redirect', 'todayposts', 'description')); + } + if ($GLOBALS['forumlist'][$forum['fid']]['icon']) { + $icon = preg_match('/src="(.+?)"/', $GLOBALS['forumlist'][$forum['fid']]['icon'], $r) ? $r[1] : ''; + if (!preg_match('/^http:\//', $icon)) { + $icon = $_G['siteurl'] . $icon; + } + $GLOBALS['forumlist'][$forum['fid']]['icon'] = $icon; + } + } + if ($_GET['checknotice']) { + $variable = array(); + } else { + $variable = array( + 'member_email' => $_G['member']['email'], + 'member_credits' => $_G['member']['credits'], + 'setting_bbclosed' => $_G['setting']['bbclosed'], + 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle', '/^allow.+?$/')), + 'catlist' => array_values(mobile_core::getvalues($GLOBALS['catlist'], array('/^\d+$/'), array('fid', 'name', 'forums'))), + 'forumlist' => array_values(mobile_core::getvalues($GLOBALS['forumlist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'posts', 'redirect', 'todayposts', 'description', 'sublist', 'icon'))), + ); + } + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/forummisc.php b/source/plugin/mobile/api/4/forummisc.php index 0707929..b8b7c85 100644 --- a/source/plugin/mobile/api/4/forummisc.php +++ b/source/plugin/mobile/api/4/forummisc.php @@ -1,34 +1,34 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/4/forumupload.php b/source/plugin/mobile/api/4/forumupload.php index 99d826f..fe3d0ff 100644 --- a/source/plugin/mobile/api/4/forumupload.php +++ b/source/plugin/mobile/api/4/forumupload.php @@ -1,32 +1,32 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/4/login.php b/source/plugin/mobile/api/4/login.php index f192773..abaf110 100644 --- a/source/plugin/mobile/api/4/login.php +++ b/source/plugin/mobile/api/4/login.php @@ -1,46 +1,46 @@ - $p['auth']); - if($_G['uid']) { - require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; - if(method_exists('wsq', 'userloginUrl')) { - $_source = isset($_GET['_source']) ? $_GET['_source'] : ''; - if(!$_source && !empty($_GET['openid']) && !empty($_GET['openidsign'])) { - $variable['loginUrl'] = wsq::userloginUrl($_G['uid'], $_GET['openid'], $_GET['openidsign']); - if(!C::t('#wechat#common_member_wechatmp')->fetch($_G['uid'])) { - C::t('#wechat#common_member_wechatmp')->insert(array('uid' => $_G['uid'], 'openid' => $_GET['openid'], 'status' => 1), false, true); - } - } else { - $variable['loginUrl'] = wsq::userloginUrl2($_G['uid']); - } - } - } - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $p['auth']); + if($_G['uid']) { + require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; + if(method_exists('wsq', 'userloginUrl')) { + $_source = isset($_GET['_source']) ? $_GET['_source'] : ''; + if(!$_source && !empty($_GET['openid']) && !empty($_GET['openidsign'])) { + $variable['loginUrl'] = wsq::userloginUrl($_G['uid'], $_GET['openid'], $_GET['openidsign']); + if(!C::t('#wechat#common_member_wechatmp')->fetch($_G['uid'])) { + C::t('#wechat#common_member_wechatmp')->insert(array('uid' => $_G['uid'], 'openid' => $_GET['openid'], 'status' => 1), false, true); + } + } else { + $variable['loginUrl'] = wsq::userloginUrl2($_G['uid']); + } + } + } + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/mobilesign.php b/source/plugin/mobile/api/4/mobilesign.php index 5f8bfa0..8060322 100644 --- a/source/plugin/mobile/api/4/mobilesign.php +++ b/source/plugin/mobile/api/4/mobilesign.php @@ -1,36 +1,36 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/api/4/mypm.php b/source/plugin/mobile/api/4/mypm.php index 5644a06..4d2a557 100644 --- a/source/plugin/mobile/api/4/mypm.php +++ b/source/plugin/mobile/api/4/mypm.php @@ -1,46 +1,46 @@ - $_v) { - if($_v['lastdateline']) { - $GLOBALS['list'][$_k]['vdateline'] = dgmdate($_v['lastdateline'], 'u'); - } elseif($_v['dateline']) { - $GLOBALS['list'][$_k]['vdateline'] = dgmdate($_v['dateline'], 'u'); - } - } - $variable = array( - 'list' => mobile_core::getvalues($GLOBALS['list'], array('/^\d+$/'), array('plid', 'isnew', 'vdateline', 'subject', 'pmid', 'msgfromid', 'msgfrom', 'message', 'touid', 'tousername')), - 'count' => $GLOBALS['count'], - 'perpage' => $GLOBALS['perpage'], - 'page' => intval($GLOBALS['page']), - ); - if($_GET['subop']) { - $variable = array_merge($variable, array('pmid' => $GLOBALS['pmid'])); - } - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $_v) { + if($_v['lastdateline']) { + $GLOBALS['list'][$_k]['vdateline'] = dgmdate($_v['lastdateline'], 'u'); + } elseif($_v['dateline']) { + $GLOBALS['list'][$_k]['vdateline'] = dgmdate($_v['dateline'], 'u'); + } + } + $variable = array( + 'list' => mobile_core::getvalues($GLOBALS['list'], array('/^\d+$/'), array('plid', 'isnew', 'vdateline', 'subject', 'pmid', 'msgfromid', 'msgfrom', 'message', 'touid', 'tousername')), + 'count' => $GLOBALS['count'], + 'perpage' => $GLOBALS['perpage'], + 'page' => intval($GLOBALS['page']), + ); + if($_GET['subop']) { + $variable = array_merge($variable, array('pmid' => $GLOBALS['pmid'])); + } + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/newthread.php b/source/plugin/mobile/api/4/newthread.php index 5779cc9..deb56f3 100644 --- a/source/plugin/mobile/api/4/newthread.php +++ b/source/plugin/mobile/api/4/newthread.php @@ -1,87 +1,87 @@ - $bit) { - $threadstatus = setstatus(13 - $i, $bit, $threadstatus); - } - C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); - - $poststatus = DB::result_first("SELECT status FROM ".DB::table('forum_post')." WHERE pid='$values[pid]'"); - $poststatus = setstatus(4, 1, $poststatus); - if(!empty($_POST['allowlocal'])) { - $poststatus = setstatus(6, 1, $poststatus); - } - if(!empty($_POST['allowsound'])) { - $poststatus = setstatus(7, 1, $poststatus); - } - if(!empty($_POST['mobiletype'])) { - $mobiletype = base_convert($_POST['mobiletype'], 10, 2); - $mobiletype = sprintf('%03d', $mobiletype); - for($i = 0;$i < 3;$i++) { - $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); - } - } - C::t('forum_post')->update(0, $values['pid'], array('status' => $poststatus)); - - if($_POST['location']) { - list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); - C::t('forum_post_location')->insert(array( - 'pid' => $values['pid'], - 'tid' => $values['tid'], - 'uid' => $_G['uid'], - 'mapx' => $mapx, - 'mapy' => $mapy, - 'location' => $location, - )); - } - } - } - - function output() { - global $_G; - $variable = array( - 'tid' => $GLOBALS['tid'], - 'pid' => $GLOBALS['pid'], - ); - if(!empty($_G['forum']['threadtypes'])) { - $variable['threadtypes'] = $_G['forum']['threadtypes']; - } - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $bit) { + $threadstatus = setstatus(13 - $i, $bit, $threadstatus); + } + C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); + + $poststatus = DB::result_first("SELECT status FROM ".DB::table('forum_post')." WHERE pid='$values[pid]'"); + $poststatus = setstatus(4, 1, $poststatus); + if(!empty($_POST['allowlocal'])) { + $poststatus = setstatus(6, 1, $poststatus); + } + if(!empty($_POST['allowsound'])) { + $poststatus = setstatus(7, 1, $poststatus); + } + if(!empty($_POST['mobiletype'])) { + $mobiletype = base_convert($_POST['mobiletype'], 10, 2); + $mobiletype = sprintf('%03d', $mobiletype); + for($i = 0;$i < 3;$i++) { + $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); + } + } + C::t('forum_post')->update(0, $values['pid'], array('status' => $poststatus)); + + if($_POST['location']) { + list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); + C::t('forum_post_location')->insert(array( + 'pid' => $values['pid'], + 'tid' => $values['tid'], + 'uid' => $_G['uid'], + 'mapx' => $mapx, + 'mapy' => $mapy, + 'location' => $location, + )); + } + } + } + + function output() { + global $_G; + $variable = array( + 'tid' => $GLOBALS['tid'], + 'pid' => $GLOBALS['pid'], + ); + if(!empty($_G['forum']['threadtypes'])) { + $variable['threadtypes'] = $_G['forum']['threadtypes']; + } + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/plugin.php b/source/plugin/mobile/api/4/plugin.php index 3b52219..d26fb77 100644 --- a/source/plugin/mobile/api/4/plugin.php +++ b/source/plugin/mobile/api/4/plugin.php @@ -1,31 +1,31 @@ - $GLOBALS['variable']))); -} - + $GLOBALS['variable']))); +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/profile.php b/source/plugin/mobile/api/4/profile.php index 4f2698b..7c73738 100644 --- a/source/plugin/mobile/api/4/profile.php +++ b/source/plugin/mobile/api/4/profile.php @@ -1,43 +1,43 @@ - $data, - 'extcredits' => $_G['setting']['extcredits'], - 'wsq' => array('wsq_apicredit' => getuserprofile('extcredits'.$_G['wechat']['setting']['wsq_apicredit'])), - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $data, + 'extcredits' => $_G['setting']['extcredits'], + 'wsq' => array('wsq_apicredit' => getuserprofile('extcredits'.$_G['wechat']['setting']['wsq_apicredit'])), + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/profiles.php b/source/plugin/mobile/api/4/profiles.php index 9497249..5173bd9 100644 --- a/source/plugin/mobile/api/4/profiles.php +++ b/source/plugin/mobile/api/4/profiles.php @@ -1,37 +1,37 @@ -fetch_all_username_by_uid($uids); - $return = array(); - foreach($uids as $uid) { - $return[] = array('uid' => $uid, 'username' => $profiles[$uid]); - } - mobile_core::result(mobile_core::variable(array('profiles' => $return))); - } - - function output() { - - } - -} - +fetch_all_username_by_uid($uids); + $return = array(); + foreach($uids as $uid) { + $return[] = array('uid' => $uid, 'username' => $profiles[$uid]); + } + mobile_core::result(mobile_core::variable(array('profiles' => $return))); + } + + function output() { + + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/recommend.php b/source/plugin/mobile/api/4/recommend.php index d0e9f80..47cbed0 100644 --- a/source/plugin/mobile/api/4/recommend.php +++ b/source/plugin/mobile/api/4/recommend.php @@ -1,41 +1,41 @@ -fetch_threadpost_by_tid_invisible($thread['tid']); - $quote = $thaquote['message']; - $quote = messagecutstr($quote, 100); - $quote = implode("\n", array_slice(explode("\n", $quote), 0, 3)); - } - -} - +fetch_threadpost_by_tid_invisible($thread['tid']); + $quote = $thaquote['message']; + $quote = messagecutstr($quote, 100); + $quote = implode("\n", array_slice(explode("\n", $quote), 0, 3)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/seccodehtml.php b/source/plugin/mobile/api/4/seccodehtml.php index 33ae426..9ecafb1 100644 --- a/source/plugin/mobile/api/4/seccodehtml.php +++ b/source/plugin/mobile/api/4/seccodehtml.php @@ -1,28 +1,28 @@ -'; - exit; - } - - function output() {} - -} - +'; + exit; + } + + function output() {} + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/secure.php b/source/plugin/mobile/api/4/secure.php index 4e18a68..6f0011a 100644 --- a/source/plugin/mobile/api/4/secure.php +++ b/source/plugin/mobile/api/4/secure.php @@ -1,41 +1,41 @@ - $sechash); - if($seccodecheck) { - $variable['seccode'] = $_G['siteurl'].'api/mobile/index.php?module=seccodehtml&sechash='.$sechash.'&version=4'; - } - if($secqaacheck) { - $variable['secqaa'] = make_secqaa(); - } - } - mobile_core::result(mobile_core::variable($variable)); - } - - function output() {} - -} - + $sechash); + if($seccodecheck) { + $variable['seccode'] = $_G['siteurl'].'api/mobile/index.php?module=seccodehtml&sechash='.$sechash.'&version=4'; + } + if($secqaacheck) { + $variable['secqaa'] = make_secqaa(); + } + } + mobile_core::result(mobile_core::variable($variable)); + } + + function output() {} + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/sendpm.php b/source/plugin/mobile/api/4/sendpm.php index c110244..f3620fa 100644 --- a/source/plugin/mobile/api/4/sendpm.php +++ b/source/plugin/mobile/api/4/sendpm.php @@ -1,35 +1,35 @@ - $GLOBALS['return'] - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $GLOBALS['return'] + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/sendreply.php b/source/plugin/mobile/api/4/sendreply.php index 166aa5c..cc06ca0 100644 --- a/source/plugin/mobile/api/4/sendreply.php +++ b/source/plugin/mobile/api/4/sendreply.php @@ -1,95 +1,95 @@ - $bit) { - $threadstatus = setstatus(13 - $i, $bit, $threadstatus); - } - C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); - } - - $posttable = getposttablebytid($values['tid']); - $poststatus = DB::result_first("SELECT status FROM " . DB::table($posttable) . " WHERE pid='$values[pid]'"); - $poststatus = setstatus(4, 1, $poststatus); - if (!empty($_POST['allowlocal'])) { - $poststatus = setstatus(6, 1, $poststatus); - } - if (!empty($_POST['allowsound'])) { - $poststatus = setstatus(7, 1, $poststatus); - } - if (!empty($_POST['mobiletype']) && $_POST['mobiletype'] < 8) { - $mobiletype = base_convert($_POST['mobiletype'], 10, 2); - $mobiletype = sprintf('%03d', $mobiletype); - for ($i = 0; $i < 3; $i++) { - $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); - } - } - C::t('forum_post')->update('tid:' . $values['tid'], $values['pid'], array('status' => $poststatus)); - - if($_POST['location']) { - list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); - C::t('forum_post_location')->insert(array( - 'pid' => $values['pid'], - 'tid' => $values['tid'], - 'uid' => $_G['uid'], - 'mapx' => $mapx, - 'mapy' => $mapy, - 'location' => $location, - )); - } - } - } - - function output() { - global $_G; - $variable = array( - 'tid' => $_G['tid'], - 'pid' => $GLOBALS['pid'], - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $bit) { + $threadstatus = setstatus(13 - $i, $bit, $threadstatus); + } + C::t('forum_thread')->update($values['tid'], array('status' => $threadstatus)); + } + + $posttable = getposttablebytid($values['tid']); + $poststatus = DB::result_first("SELECT status FROM " . DB::table($posttable) . " WHERE pid='$values[pid]'"); + $poststatus = setstatus(4, 1, $poststatus); + if (!empty($_POST['allowlocal'])) { + $poststatus = setstatus(6, 1, $poststatus); + } + if (!empty($_POST['allowsound'])) { + $poststatus = setstatus(7, 1, $poststatus); + } + if (!empty($_POST['mobiletype']) && $_POST['mobiletype'] < 8) { + $mobiletype = base_convert($_POST['mobiletype'], 10, 2); + $mobiletype = sprintf('%03d', $mobiletype); + for ($i = 0; $i < 3; $i++) { + $poststatus = setstatus(10 - $i, $mobiletype{$i}, $poststatus); + } + } + C::t('forum_post')->update('tid:' . $values['tid'], $values['pid'], array('status' => $poststatus)); + + if($_POST['location']) { + list($mapx, $mapy, $location) = explode('|', dhtmlspecialchars($_POST['location'])); + C::t('forum_post_location')->insert(array( + 'pid' => $values['pid'], + 'tid' => $values['tid'], + 'uid' => $_G['uid'], + 'mapx' => $mapx, + 'mapy' => $mapy, + 'location' => $location, + )); + } + } + } + + function output() { + global $_G; + $variable = array( + 'tid' => $_G['tid'], + 'pid' => $GLOBALS['pid'], + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/showactivity.php b/source/plugin/mobile/api/4/showactivity.php index fabe1a0..f34d6a6 100644 --- a/source/plugin/mobile/api/4/showactivity.php +++ b/source/plugin/mobile/api/4/showactivity.php @@ -1,80 +1,80 @@ - -1))); - } - $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - if(!$_G['wechat']['setting']['wsq_allow'] || !in_array($_GET['tid'], (array)$_G['wechat']['setting']['showactivity']['tids'])) { - mobile_core::result(mobile_core::variable(array('result' => -2))); - } - $postinfo = C::t('forum_post')->fetch('tid:'.$_GET['tid'], $_GET['pid']); - if(!$postinfo) { - mobile_core::result(mobile_core::variable(array('result' => -3))); - } - $activity = C::t('forum_activity')->fetch($_G['tid']); - if($activity['starttimeto'] && $activity['starttimeto'] < TIMESTAMP) { - mobile_core::result(mobile_core::variable(array('result' => -4))); - } - $post = C::t('forum_debatepost')->fetch($_GET['pid']); - if(!$post) { - C::t('forum_debatepost')->insert(array( - 'pid' => $_GET['pid'], - 'tid' => $_GET['tid'], - 'dateline' => TIMESTAMP, - 'stand' => 0, - 'voters' => 1, - 'voterids' => "$_G[uid]\t", - )); - mobile_core::result(mobile_core::variable(array('result' => 1))); - } elseif(strpos("\t".$post['voterids'], "\t$_G[uid]\t") === FALSE) { - C::t('forum_debatepost')->update_voters($_GET['pid'], $_G['uid']); - mobile_core::result(mobile_core::variable(array('result' => 1))); - } else { - mobile_core::result(mobile_core::variable(array('result' => 0))); - } - } - - } - - function output() { - $comments = array(); - foreach($GLOBALS['comments'] as $comment) { - $comments[] = array( - 'author' => $comment['author'], - 'authorid' => $comment['authorid'], - 'avatar' => avatar($comment['authorid'], 'small', 1), - 'message' => $comment['comment'], - 'dateline' => strip_tags($comment['dateline']), - ); - } - $variable = array( - 'tid' => $_GET['tid'], - 'pid' => $_GET['pid'], - 'postlist' => $comments, - ); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + -1))); + } + $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + if(!$_G['wechat']['setting']['wsq_allow'] || !in_array($_GET['tid'], (array)$_G['wechat']['setting']['showactivity']['tids'])) { + mobile_core::result(mobile_core::variable(array('result' => -2))); + } + $postinfo = C::t('forum_post')->fetch('tid:'.$_GET['tid'], $_GET['pid']); + if(!$postinfo) { + mobile_core::result(mobile_core::variable(array('result' => -3))); + } + $activity = C::t('forum_activity')->fetch($_G['tid']); + if($activity['starttimeto'] && $activity['starttimeto'] < TIMESTAMP) { + mobile_core::result(mobile_core::variable(array('result' => -4))); + } + $post = C::t('forum_debatepost')->fetch($_GET['pid']); + if(!$post) { + C::t('forum_debatepost')->insert(array( + 'pid' => $_GET['pid'], + 'tid' => $_GET['tid'], + 'dateline' => TIMESTAMP, + 'stand' => 0, + 'voters' => 1, + 'voterids' => "$_G[uid]\t", + )); + mobile_core::result(mobile_core::variable(array('result' => 1))); + } elseif(strpos("\t".$post['voterids'], "\t$_G[uid]\t") === FALSE) { + C::t('forum_debatepost')->update_voters($_GET['pid'], $_G['uid']); + mobile_core::result(mobile_core::variable(array('result' => 1))); + } else { + mobile_core::result(mobile_core::variable(array('result' => 0))); + } + } + + } + + function output() { + $comments = array(); + foreach($GLOBALS['comments'] as $comment) { + $comments[] = array( + 'author' => $comment['author'], + 'authorid' => $comment['authorid'], + 'avatar' => avatar($comment['authorid'], 'small', 1), + 'message' => $comment['comment'], + 'dateline' => strip_tags($comment['dateline']), + ); + } + $variable = array( + 'tid' => $_GET['tid'], + 'pid' => $_GET['pid'], + 'postlist' => $comments, + ); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/smiley.php b/source/plugin/mobile/api/4/smiley.php index 19f8110..4060ce8 100644 --- a/source/plugin/mobile/api/4/smiley.php +++ b/source/plugin/mobile/api/4/smiley.php @@ -1,38 +1,38 @@ - $img) { - $variable['smilies'][$_G['cache']['smilies']['typearray'][$id]][] = array( - 'code' => $_G['cache']['smilies']['searcharray'][$id], - 'image' => $_G['cache']['smileytypes'][$_G['cache']['smilies']['typearray'][$id]]['directory'] . '/' . $img - ); - } - $variable['smilies'] = array_values($variable['smilies']); - mobile_core::result(mobile_core::variable($variable)); - } - - function output() { - - } - -} - + $img) { + $variable['smilies'][$_G['cache']['smilies']['typearray'][$id]][] = array( + 'code' => $_G['cache']['smilies']['searcharray'][$id], + 'image' => $_G['cache']['smileytypes'][$_G['cache']['smilies']['typearray'][$id]]['directory'] . '/' . $img + ); + } + $variable['smilies'] = array_values($variable['smilies']); + mobile_core::result(mobile_core::variable($variable)); + } + + function output() { + + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/sub_sendreply.php b/source/plugin/mobile/api/4/sub_sendreply.php index 505d473..8edef9c 100644 --- a/source/plugin/mobile/api/4/sub_sendreply.php +++ b/source/plugin/mobile/api/4/sub_sendreply.php @@ -1,72 +1,72 @@ -| |\r\n|\[attachimg\].*?\[\/attachimg\]|\[quote\].*?\[\/quote\]|\[\/*.*?\]/ms', '', $GLOBALS['message']); -$newmessage = messagecutstr($newmessage, 100); - -$key = C::t('#mobile#mobile_wsq_threadlist')->fetch($_G['tid']); -$posts = dunserialize($key['svalue']); - -if (trim($newmessage) != '' && !getstatus($thread['status'], 2)) { - if (!$posts) { - $posts = array(); - } - if (count($posts) > 2) { - array_shift($posts); - } - $post = array( - 'pid' => $pid, - 'author' => empty($_GET['isanonymous']) ? $_G['username'] : $_G['setting']['anonymoustext'], - 'authorid' => empty($_GET['isanonymous']) ? $_G['uid'] : 0, - 'message' => $newmessage, - ); - array_push($posts, $post); -} - -if (count($posts) < 3 && ($thread['replies'] >= count($posts)) && !getstatus($thread['status'], 2)) { - $posts = array(); - foreach (C::t('forum_post')->fetch_all_by_tid($thread['posttableid'], $thread['tid'], true, 'DESC', 0, 10, 0, 0) as $p) { - $p['message'] = preg_replace('/<\/*.*?>| |\r\n|\[attachimg\].*?\[\/attachimg\]|\[quote\].*?\[\/quote\]|\[\/*.*?\]/ms', '', $p['message']); - $p['message'] = trim(messagecutstr($p['message'], 100)); - if($p['anonymous']) { - $p['author'] = $_G['setting']['anonymoustext']; - $p['authorid'] = 0; - } - $post = array( - 'pid' => $p['pid'], - 'author' => $p['author'], - 'authorid' => $p['authorid'], - 'message' => $p['message'], - 'avatar' => avatar($p['authorid'], 'small', true), - ); - if ($post['message'] != '') { - array_push($posts, $post); - } - if (count($posts) > 2) { - break; - } - } - $posts = array_reverse($posts); -} - -$data = array( - 'skey' => $_G['tid'], - 'svalue' => serialize($posts) -); - -if($message != 'post_reply_mod_succeed') { - C::t('#mobile#mobile_wsq_threadlist')->insert($_G['tid'], $data, false, true); -} - +| |\r\n|\[attachimg\].*?\[\/attachimg\]|\[quote\].*?\[\/quote\]|\[\/*.*?\]/ms', '', $GLOBALS['message']); +$newmessage = messagecutstr($newmessage, 100); + +$key = C::t('#mobile#mobile_wsq_threadlist')->fetch($_G['tid']); +$posts = dunserialize($key['svalue']); + +if (trim($newmessage) != '' && !getstatus($thread['status'], 2)) { + if (!$posts) { + $posts = array(); + } + if (count($posts) > 2) { + array_shift($posts); + } + $post = array( + 'pid' => $pid, + 'author' => empty($_GET['isanonymous']) ? $_G['username'] : $_G['setting']['anonymoustext'], + 'authorid' => empty($_GET['isanonymous']) ? $_G['uid'] : 0, + 'message' => $newmessage, + ); + array_push($posts, $post); +} + +if (count($posts) < 3 && ($thread['replies'] >= count($posts)) && !getstatus($thread['status'], 2)) { + $posts = array(); + foreach (C::t('forum_post')->fetch_all_by_tid($thread['posttableid'], $thread['tid'], true, 'DESC', 0, 10, 0, 0) as $p) { + $p['message'] = preg_replace('/<\/*.*?>| |\r\n|\[attachimg\].*?\[\/attachimg\]|\[quote\].*?\[\/quote\]|\[\/*.*?\]/ms', '', $p['message']); + $p['message'] = trim(messagecutstr($p['message'], 100)); + if($p['anonymous']) { + $p['author'] = $_G['setting']['anonymoustext']; + $p['authorid'] = 0; + } + $post = array( + 'pid' => $p['pid'], + 'author' => $p['author'], + 'authorid' => $p['authorid'], + 'message' => $p['message'], + 'avatar' => avatar($p['authorid'], 'small', true), + ); + if ($post['message'] != '') { + array_push($posts, $post); + } + if (count($posts) > 2) { + break; + } + } + $posts = array_reverse($posts); +} + +$data = array( + 'skey' => $_G['tid'], + 'svalue' => serialize($posts) +); + +if($message != 'post_reply_mod_succeed') { + C::t('#mobile#mobile_wsq_threadlist')->insert($_G['tid'], $data, false, true); +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/sub_threadlist.php b/source/plugin/mobile/api/4/sub_threadlist.php index f40b6fa..a99a081 100644 --- a/source/plugin/mobile/api/4/sub_threadlist.php +++ b/source/plugin/mobile/api/4/sub_threadlist.php @@ -1,95 +1,95 @@ - $thread) { - $tids[] = $_G['forum_threadlist'][$k]['tid'] = $thread['icontid']; - $_G['forum_threadlist'][$k]['cover'] = array(); - if ($thread['cover']) { - $_G['forum_threadlist'][$k]['cover'] = array('w' => 200, 'h' => 200); - } - - $_G['forum_threadlist'][$k]['reply'] = array(); - if(!isset($_G['wechat']['setting']['wechat_forumdisplay_reply']) || $_G['wechat']['setting']['wechat_forumdisplay_reply']) { - $key = C::t('#mobile#mobile_wsq_threadlist')->fetch($thread['tid']); - if ($key['svalue']) { - $_G['forum_threadlist'][$k]['reply'] = dunserialize($key['svalue']); - } - } - $_G['forum_threadlist'][$k]['dateline'] = strip_tags($thread['dateline']); - $_G['forum_threadlist'][$k]['lastpost'] = strip_tags($thread['lastpost']); - if(!$thread['authorid'] || !$thread['author']) { - $_G['forum_threadlist'][$k]['author'] = $_G['setting']['anonymoustext']; - $_G['forum_threadlist'][$k]['authorid'] = 0; - } - $userids[] = $thread['authorid']; -} - -foreach(C::t('common_member')->fetch_all($userids) as $user) { - $groupiconIds[$user['uid']] = mobile_core::usergroupIconId($user['groupid']); -} - -if($_G['uid']) { - $memberrecommends = array(); - $query = DB::query('SELECT * FROM %t WHERE recommenduid=%d AND tid IN (%n)', array('forum_memberrecommend', $_G['uid'], $tids)); - while ($memberrecommend = DB::fetch($query)) { - $memberrecommends[$memberrecommend['tid']] = 1; - } - foreach ($_G['forum_threadlist'] as $k => $thread) { - $_G['forum_threadlist'][$k]['recommend'] = isset($memberrecommends[$thread['icontid']]) ? 1 : 0; - } -} - -foreach ($GLOBALS['sublist'] as $k => $sublist) { - if ($sublist['icon']) { - $icon = preg_match('/src="(.+?)"/', $sublist['icon'], $r) ? $r[1] : ''; - if (!preg_match('/^http:\//', $icon)) { - $icon = $_G['siteurl'] . $icon; - } - $GLOBALS['sublist'][$k]['icon'] = $icon; - } -} - -if($_G['forum']['icon']) { - require_once libfile('function/forumlist'); - if(strncasecmp($_G['forum']['icon'], 'http://', 7) !== 0) { - $_G['forum']['icon'] = get_forumimg($_G['forum']['icon']); - if(strncasecmp($_G['forum']['icon'], 'http://', 7) !== 0) { - $_G['forum']['icon'] = $_G['siteurl'] . $_G['forum']['icon']; - } - } -} - -$_G['forum']['threadcount'] = $_G['forum_threadcount']; - -$variable = array( - 'forum' => mobile_core::getvalues($_G['forum'], array('fid', 'fup', 'name', 'threads', 'posts', 'rules', 'autoclose', 'password', 'icon', 'threadcount', 'picstyle', 'description')), - 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle')), - 'forum_threadlist' => mobile_core::getvalues(array_values($_G['forum_threadlist']), array('/^\d+$/'), array('tid', 'author', 'special', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest', 'cover', 'recommend', 'recommend_add', 'reply', 'avatar', 'displayorder', 'coverpath', 'typeid', 'rushreply', 'replycredit', 'price')), - 'groupiconid' => $groupiconIds, - 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts', 'icon')), - 'tpp' => $_G['tpp'], - 'page' => $GLOBALS['page'], - 'reward_unit' => $_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['unit'].$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['title'], -); -if (!empty($_G['forum']['threadtypes']) || !empty($_GET['debug'])) { - $variable['threadtypes'] = $_G['forum']['threadtypes']; -} -if (!empty($_G['forum']['threadsorts']) || !empty($_GET['debug'])) { - $variable['threadsorts'] = $_G['forum']['threadsorts']; -} -$variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; - + $thread) { + $tids[] = $_G['forum_threadlist'][$k]['tid'] = $thread['icontid']; + $_G['forum_threadlist'][$k]['cover'] = array(); + if ($thread['cover']) { + $_G['forum_threadlist'][$k]['cover'] = array('w' => 200, 'h' => 200); + } + + $_G['forum_threadlist'][$k]['reply'] = array(); + if(!isset($_G['wechat']['setting']['wechat_forumdisplay_reply']) || $_G['wechat']['setting']['wechat_forumdisplay_reply']) { + $key = C::t('#mobile#mobile_wsq_threadlist')->fetch($thread['tid']); + if ($key['svalue']) { + $_G['forum_threadlist'][$k]['reply'] = dunserialize($key['svalue']); + } + } + $_G['forum_threadlist'][$k]['dateline'] = strip_tags($thread['dateline']); + $_G['forum_threadlist'][$k]['lastpost'] = strip_tags($thread['lastpost']); + if(!$thread['authorid'] || !$thread['author']) { + $_G['forum_threadlist'][$k]['author'] = $_G['setting']['anonymoustext']; + $_G['forum_threadlist'][$k]['authorid'] = 0; + } + $userids[] = $thread['authorid']; +} + +foreach(C::t('common_member')->fetch_all($userids) as $user) { + $groupiconIds[$user['uid']] = mobile_core::usergroupIconId($user['groupid']); +} + +if($_G['uid']) { + $memberrecommends = array(); + $query = DB::query('SELECT * FROM %t WHERE recommenduid=%d AND tid IN (%n)', array('forum_memberrecommend', $_G['uid'], $tids)); + while ($memberrecommend = DB::fetch($query)) { + $memberrecommends[$memberrecommend['tid']] = 1; + } + foreach ($_G['forum_threadlist'] as $k => $thread) { + $_G['forum_threadlist'][$k]['recommend'] = isset($memberrecommends[$thread['icontid']]) ? 1 : 0; + } +} + +foreach ($GLOBALS['sublist'] as $k => $sublist) { + if ($sublist['icon']) { + $icon = preg_match('/src="(.+?)"/', $sublist['icon'], $r) ? $r[1] : ''; + if (!preg_match('/^http:\//', $icon)) { + $icon = $_G['siteurl'] . $icon; + } + $GLOBALS['sublist'][$k]['icon'] = $icon; + } +} + +if($_G['forum']['icon']) { + require_once libfile('function/forumlist'); + if(strncasecmp($_G['forum']['icon'], 'http://', 7) !== 0) { + $_G['forum']['icon'] = get_forumimg($_G['forum']['icon']); + if(strncasecmp($_G['forum']['icon'], 'http://', 7) !== 0) { + $_G['forum']['icon'] = $_G['siteurl'] . $_G['forum']['icon']; + } + } +} + +$_G['forum']['threadcount'] = $_G['forum_threadcount']; + +$variable = array( + 'forum' => mobile_core::getvalues($_G['forum'], array('fid', 'fup', 'name', 'threads', 'posts', 'rules', 'autoclose', 'password', 'icon', 'threadcount', 'picstyle', 'description')), + 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle')), + 'forum_threadlist' => mobile_core::getvalues(array_values($_G['forum_threadlist']), array('/^\d+$/'), array('tid', 'author', 'special', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest', 'cover', 'recommend', 'recommend_add', 'reply', 'avatar', 'displayorder', 'coverpath', 'typeid', 'rushreply', 'replycredit', 'price')), + 'groupiconid' => $groupiconIds, + 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts', 'icon')), + 'tpp' => $_G['tpp'], + 'page' => $GLOBALS['page'], + 'reward_unit' => $_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['unit'].$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['title'], +); +if (!empty($_G['forum']['threadtypes']) || !empty($_GET['debug'])) { + $variable['threadtypes'] = $_G['forum']['threadtypes']; +} +if (!empty($_G['forum']['threadsorts']) || !empty($_GET['debug'])) { + $variable['threadsorts'] = $_G['forum']['threadsorts']; +} +$variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/sublist.php b/source/plugin/mobile/api/4/sublist.php index 2b8ec73..bcaf89b 100644 --- a/source/plugin/mobile/api/4/sublist.php +++ b/source/plugin/mobile/api/4/sublist.php @@ -1,45 +1,45 @@ - $sublist) { - if ($sublist['icon']) { - $icon = preg_match('/src="(.+?)"/', $sublist['icon'], $r) ? $r[1] : ''; - if (!preg_match('/^http:\//', $icon)) { - $icon = $_G['siteurl'] . $icon; - } - $GLOBALS['sublist'][$k]['icon'] = $icon; - } - } - - $variable = array( - 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts', 'icon')), - ); - $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; - mobile_core::result(mobile_core::variable($variable)); - } - -} - + $sublist) { + if ($sublist['icon']) { + $icon = preg_match('/src="(.+?)"/', $sublist['icon'], $r) ? $r[1] : ''; + if (!preg_match('/^http:\//', $icon)) { + $icon = $_G['siteurl'] . $icon; + } + $GLOBALS['sublist'][$k]['icon'] = $icon; + } + } + + $variable = array( + 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts', 'icon')), + ); + $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/viewcomment.php b/source/plugin/mobile/api/4/viewcomment.php index 3a47c39..287949c 100644 --- a/source/plugin/mobile/api/4/viewcomment.php +++ b/source/plugin/mobile/api/4/viewcomment.php @@ -1,42 +1,42 @@ - $c) { - $comments[$k]['avatar'] = avatar($c['authorid'], 'small', true); - } - $variables = array( - 'tid' => $_GET['tid'], - 'pid' => $_GET['pid'], - 'comments' => array($_GET['pid'] => $comments), - 'totalcomment' => $GLOBALS['totalcomment'], - 'count' => $GLOBALS['count'], - ); - mobile_core::result(mobile_core::variable($variables)); - } -} - + $c) { + $comments[$k]['avatar'] = avatar($c['authorid'], 'small', true); + } + $variables = array( + 'tid' => $_GET['tid'], + 'pid' => $_GET['pid'], + 'comments' => array($_GET['pid'] => $comments), + 'totalcomment' => $GLOBALS['totalcomment'], + 'count' => $GLOBALS['count'], + ); + mobile_core::result(mobile_core::variable($variables)); + } +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/viewthread.php b/source/plugin/mobile/api/4/viewthread.php index 9e91ee0..a4611ba 100644 --- a/source/plugin/mobile/api/4/viewthread.php +++ b/source/plugin/mobile/api/4/viewthread.php @@ -1,210 +1,210 @@ - $post) { - if (!$post['first'] && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$_G['forum']['ismoderator']) { - $GLOBALS['postlist'][$k]['message'] = lang('plugin/mobile', 'mobile_post_author_visible'); - $GLOBALS['postlist'][$k]['attachments'] = array(); - } - } - } - - $_G['thread']['lastpost'] = dgmdate($_G['thread']['lastpost']); - $_G['thread']['ordertype'] = $GLOBALS['ordertype']; - $_G['thread']['recommend'] = $_G['uid'] && C::t('forum_memberrecommend')->fetch_by_recommenduid_tid($_G['uid'], $_G['tid']) ? 1 : 0; - if (!empty($_GET['viewpid'])) { - $GLOBALS['postlist'][$_GET['viewpid']] = $GLOBALS['post']; - } - if ($GLOBALS['rushreply']) { - $_G['thread']['rushreply'] = $GLOBALS['rushreply']; - $_G['thread']['rushresult'] = $GLOBALS['rushresult']; - } - foreach ($GLOBALS['comments'] as $pid => $comments) { - $comments = mobile_core::getvalues($comments, array('/^\d+$/'), array('id', 'tid', 'pid', 'author', 'authorid', 'dateline', 'comment', 'avatar')); - foreach ($comments as $k => $c) { - $comments[$k]['avatar'] = avatar($c['authorid'], 'small', true); - $comments[$k]['dateline'] = dgmdate($c['dateline'], 'u'); - } - $GLOBALS['comments'][$pid] = $comments; - } - $variable = array( - 'thread' => $_G['thread'], - 'fid' => $_G['fid'], - 'postlist' => array_values(mobile_core::getvalues($GLOBALS['postlist'], array('/^\d+$/'), array('pid', 'tid', 'author', 'first', 'dbdateline', 'dateline', 'username', 'adminid', 'memberstatus', 'authorid', 'username', 'groupid', 'memberstatus', 'status', 'message', 'number', 'memberstatus', 'groupid', 'attachment', 'attachments', 'attachlist', 'imagelist', 'anonymous', 'position', 'rewardfloor', 'replycredit'))), - 'allowpostcomment' => $_G['setting']['allowpostcomment'], - 'comments' => $GLOBALS['comments'], - 'commentcount' => $GLOBALS['commentcount'], - 'ppp' => $_G['ppp'], - 'setting_rewriterule' => $_G['setting']['rewriterule'], - 'setting_rewritestatus' => $_G['setting']['rewritestatus'], - 'forum_threadpay' => $_G['forum_threadpay'], - 'cache_custominfo_postno' => $_G['cache']['custominfo']['postno'], - ); - - if (!empty($GLOBALS['threadsortshow'])) { - $optionlist = array(); - foreach ($GLOBALS['threadsortshow']['optionlist'] AS $key => $val) { - $val['optionid'] = $key; - $optionlist[] = $val; - } - if (!empty($optionlist)) { - $GLOBALS['threadsortshow']['optionlist'] = $optionlist; - $GLOBALS['threadsortshow']['threadsortname'] = $_G['forum']['threadsorts']['types'][$thread['sortid']]; - } - } - $threadsortshow = mobile_core::getvalues($GLOBALS['threadsortshow'], array('/^(?!typetemplate).*$/')); - if (!empty($threadsortshow)) { - $variable['threadsortshow'] = $threadsortshow; - } - foreach ($variable['postlist'] as $k => $post) { - if (!$_G['forum']['ismoderator'] && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($_G['thread']['digest'] == 0 && ($post['groupid'] == 4 || $post['groupid'] == 5 || $post['memberstatus'] == '-1')))) { - $message = lang('forum/template', 'message_banned'); - } elseif (!$_G['forum']['ismoderator'] && $post['status'] & 1) { - $message = lang('forum/template', 'message_single_banned'); - } elseif ($GLOBALS['needhiddenreply']) { - $message = lang('forum/template', 'message_ishidden_hiddenreplies'); - } elseif ($post['first'] && $_G['forum_threadpay']) { - $message = lang('forum/template', 'pay_threads') . ' ' . $GLOBALS['thread']['price'] . ' ' . $_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit'] . $_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']; - } elseif ($_G['forum_discuzcode']['passwordlock']) { - $message = lang('forum/template', 'message_password_exists'); - } else { - $message = ''; - } - if ($message) { - $variable['postlist'][$k]['message'] = $message; - } - if ($post['anonymous'] && !$_G['forum']['ismoderator']) { - $variable['postlist'][$k]['username'] = $variable['postlist'][$k]['author'] = $_G['setting']['anonymoustext']; - $variable['postlist'][$k]['adminid'] = $variable['postlist'][$k]['groupid'] = $variable['postlist'][$k]['authorid'] = 0; - if ($post['first']) { - $variable['thread']['authorid'] = 0; - } - } - if (strpos($variable['postlist'][$k]['message'], '[/tthread]') !== FALSE) { - $matches = array(); - preg_match('/\[tthread=(.+?),(.+?)\](.*?)\[\/tthread\]/', $variable['postlist'][$k]['message'], $matches); - $variable['postlist'][$k]['message'] = preg_replace('/\[tthread=(.+?)\](.*?)\[\/tthread\]/', lang('plugin/qqconnect', 'connect_tthread_message', array('username' => $matches[1], 'nick' => $matches[2])), $variable['postlist'][$k]['message']); - } - $variable['postlist'][$k]['message'] = preg_replace("/\[viewimg\]<\/a>/is", "", $variable['postlist'][$k]['message']); - $variable['postlist'][$k]['message'] = mobile_api::_findimg($variable['postlist'][$k]['message']); - if ($GLOBALS['aimgs'][$post['pid']]) { - $imagelist = array(); - foreach ($GLOBALS['aimgs'][$post['pid']] as $aid) { - $extra = ''; - $url = mobile_api::_parseimg('', $GLOBALS['postlist'][$post['pid']]['attachments'][$aid]['url'] . $GLOBALS['postlist'][$post['pid']]['attachments'][$aid]['attachment'], ''); - if ($GLOBALS['postlist'][$post['pid']]['attachments'][$aid]['thumb']) { - $extra = 'file="' . $url . '" '; - $url .= '.thumb.jpg'; - } - $extra .= 'attach="' . $post['pid'] . '" '; - if (strexists($variable['postlist'][$k]['message'], '[attach]' . $aid . '[/attach]')) { - $variable['postlist'][$k]['message'] = str_replace('[attach]' . $aid . '[/attach]', mobile_image($url, $extra), $variable['postlist'][$k]['message']); - unset($variable['postlist'][$k]['attachments'][$aid]); - } elseif (!in_array($aid, $_G['forum_attachtags'][$post['pid']])) { - $imagelist[] = $aid; - } - } - $variable['postlist'][$k]['imagelist'] = $imagelist; - } - $variable['postlist'][$k]['message'] = preg_replace("/\[attach\]\d+\[\/attach\]/i", '', $variable['postlist'][$k]['message']); - $variable['postlist'][$k]['message'] = preg_replace('/( ){2,}/', '', $variable['postlist'][$k]['message']); - $variable['postlist'][$k]['dateline'] = strip_tags($post['dateline']); - $variable['postlist'][$k]['groupiconid'] = mobile_core::usergroupIconId($post['groupid']); - } - - if (!empty($GLOBALS['polloptions'])) { - $variable['special_poll']['polloptions'] = $GLOBALS['polloptions']; - $variable['special_poll']['expirations'] = $GLOBALS['expirations']; - $variable['special_poll']['multiple'] = $GLOBALS['multiple']; - $variable['special_poll']['maxchoices'] = $GLOBALS['maxchoices']; - $variable['special_poll']['voterscount'] = $GLOBALS['voterscount']; - $variable['special_poll']['visiblepoll'] = $GLOBALS['visiblepoll']; - $variable['special_poll']['allowvote'] = $_G['group']['allowvote']; - $variable['special_poll']['remaintime'] = $thread['remaintime']; - } - if (!empty($GLOBALS['rewardprice'])) { - $variable['special_reward']['rewardprice'] = $GLOBALS['rewardprice'] . ' ' . $_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['title']; - $variable['special_reward']['bestpost'] = $GLOBALS['bestpost']; - } - if (!empty($GLOBALS['trades'])) { - $variable['special_trade'] = $GLOBALS['trades']; - } - if (!empty($GLOBALS['debate'])) { - $variable['special_debate'] = $GLOBALS['debate']; - } - if (!empty($GLOBALS['activity'])) { - $variable['special_activity'] = $GLOBALS['activity']; - $variable['special_activity']['allapplynum'] = $GLOBALS['allapplynum']; - if ($_G['setting']['activitycredit'] && $GLOBALS['activity']['credit'] && !$GLOBALS['applied']) { - $variable['special_activity']['creditcost'] = $GLOBALS['activity']['credit'] . ' ' . $_G['setting']['extcredits'][$_G['setting']['activitycredit']]['title']; - } - $setting = array(); - foreach ($GLOBALS['activity']['ufield']['userfield'] as $field) { - $setting[$field] = $_G['cache']['profilesetting'][$field]; - } - $variable['special_activity']['joinfield'] = mobile_core::getvalues($setting, array('/./'), array('fieldid', 'formtype', 'available', 'title', 'formtype', 'choices')); - $variable['special_activity']['userfield'] = $GLOBALS['ufielddata']['userfield']; - $variable['special_activity']['extfield'] = $GLOBALS['ufielddata']['extfield']; - $variable['special_activity']['basefield'] = mobile_core::getvalues($GLOBALS['applyinfo'], array('message', 'payment')); - $variable['special_activity']['closed'] = $GLOBALS['activityclose']; - if ($GLOBALS['applied'] && $GLOBALS['isverified'] < 2) { - if (!$GLOBALS['isverified']) { - $variable['special_activity']['status'] = 'wait'; - } else { - $variable['special_activity']['status'] = 'joined'; - } - if (!$GLOBALS['activityclose']) { - $variable['special_activity']['button'] = 'cancel'; - } - } elseif (!$GLOBALS['activityclose']) { - if ($GLOBALS['isverified'] != 2) { - $variable['special_activity']['status'] = 'join'; - } else { - $variable['special_activity']['status'] = 'complete'; - } - $variable['special_activity']['button'] = 'join'; - } - } - - $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; - mobile_core::result(mobile_core::variable($variable)); - } - - function _findimg($string) { - return preg_replace_callback('/()/is', function($matches) { return mobile_api::_parseimg($matches[1], $matches[2], $matches[3]); }, $string); - } - - function _parseimg($before, $img, $after) { - $before = stripslashes($before); - $after = stripslashes($after); - if (!in_array(strtolower(substr($img, 0, 6)), array('http:/', 'https:', 'ftp://'))) { - global $_G; - $img = $_G['siteurl'] . $img; - } - return $before . $img . $after; - } - -} - + $post) { + if (!$post['first'] && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$_G['forum']['ismoderator']) { + $GLOBALS['postlist'][$k]['message'] = lang('plugin/mobile', 'mobile_post_author_visible'); + $GLOBALS['postlist'][$k]['attachments'] = array(); + } + } + } + + $_G['thread']['lastpost'] = dgmdate($_G['thread']['lastpost']); + $_G['thread']['ordertype'] = $GLOBALS['ordertype']; + $_G['thread']['recommend'] = $_G['uid'] && C::t('forum_memberrecommend')->fetch_by_recommenduid_tid($_G['uid'], $_G['tid']) ? 1 : 0; + if (!empty($_GET['viewpid'])) { + $GLOBALS['postlist'][$_GET['viewpid']] = $GLOBALS['post']; + } + if ($GLOBALS['rushreply']) { + $_G['thread']['rushreply'] = $GLOBALS['rushreply']; + $_G['thread']['rushresult'] = $GLOBALS['rushresult']; + } + foreach ($GLOBALS['comments'] as $pid => $comments) { + $comments = mobile_core::getvalues($comments, array('/^\d+$/'), array('id', 'tid', 'pid', 'author', 'authorid', 'dateline', 'comment', 'avatar')); + foreach ($comments as $k => $c) { + $comments[$k]['avatar'] = avatar($c['authorid'], 'small', true); + $comments[$k]['dateline'] = dgmdate($c['dateline'], 'u'); + } + $GLOBALS['comments'][$pid] = $comments; + } + $variable = array( + 'thread' => $_G['thread'], + 'fid' => $_G['fid'], + 'postlist' => array_values(mobile_core::getvalues($GLOBALS['postlist'], array('/^\d+$/'), array('pid', 'tid', 'author', 'first', 'dbdateline', 'dateline', 'username', 'adminid', 'memberstatus', 'authorid', 'username', 'groupid', 'memberstatus', 'status', 'message', 'number', 'memberstatus', 'groupid', 'attachment', 'attachments', 'attachlist', 'imagelist', 'anonymous', 'position', 'rewardfloor', 'replycredit'))), + 'allowpostcomment' => $_G['setting']['allowpostcomment'], + 'comments' => $GLOBALS['comments'], + 'commentcount' => $GLOBALS['commentcount'], + 'ppp' => $_G['ppp'], + 'setting_rewriterule' => $_G['setting']['rewriterule'], + 'setting_rewritestatus' => $_G['setting']['rewritestatus'], + 'forum_threadpay' => $_G['forum_threadpay'], + 'cache_custominfo_postno' => $_G['cache']['custominfo']['postno'], + ); + + if (!empty($GLOBALS['threadsortshow'])) { + $optionlist = array(); + foreach ($GLOBALS['threadsortshow']['optionlist'] AS $key => $val) { + $val['optionid'] = $key; + $optionlist[] = $val; + } + if (!empty($optionlist)) { + $GLOBALS['threadsortshow']['optionlist'] = $optionlist; + $GLOBALS['threadsortshow']['threadsortname'] = $_G['forum']['threadsorts']['types'][$thread['sortid']]; + } + } + $threadsortshow = mobile_core::getvalues($GLOBALS['threadsortshow'], array('/^(?!typetemplate).*$/')); + if (!empty($threadsortshow)) { + $variable['threadsortshow'] = $threadsortshow; + } + foreach ($variable['postlist'] as $k => $post) { + if (!$_G['forum']['ismoderator'] && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($_G['thread']['digest'] == 0 && ($post['groupid'] == 4 || $post['groupid'] == 5 || $post['memberstatus'] == '-1')))) { + $message = lang('forum/template', 'message_banned'); + } elseif (!$_G['forum']['ismoderator'] && $post['status'] & 1) { + $message = lang('forum/template', 'message_single_banned'); + } elseif ($GLOBALS['needhiddenreply']) { + $message = lang('forum/template', 'message_ishidden_hiddenreplies'); + } elseif ($post['first'] && $_G['forum_threadpay']) { + $message = lang('forum/template', 'pay_threads') . ' ' . $GLOBALS['thread']['price'] . ' ' . $_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit'] . $_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']; + } elseif ($_G['forum_discuzcode']['passwordlock']) { + $message = lang('forum/template', 'message_password_exists'); + } else { + $message = ''; + } + if ($message) { + $variable['postlist'][$k]['message'] = $message; + } + if ($post['anonymous'] && !$_G['forum']['ismoderator']) { + $variable['postlist'][$k]['username'] = $variable['postlist'][$k]['author'] = $_G['setting']['anonymoustext']; + $variable['postlist'][$k]['adminid'] = $variable['postlist'][$k]['groupid'] = $variable['postlist'][$k]['authorid'] = 0; + if ($post['first']) { + $variable['thread']['authorid'] = 0; + } + } + if (strpos($variable['postlist'][$k]['message'], '[/tthread]') !== FALSE) { + $matches = array(); + preg_match('/\[tthread=(.+?),(.+?)\](.*?)\[\/tthread\]/', $variable['postlist'][$k]['message'], $matches); + $variable['postlist'][$k]['message'] = preg_replace('/\[tthread=(.+?)\](.*?)\[\/tthread\]/', lang('plugin/qqconnect', 'connect_tthread_message', array('username' => $matches[1], 'nick' => $matches[2])), $variable['postlist'][$k]['message']); + } + $variable['postlist'][$k]['message'] = preg_replace("/\[viewimg\]<\/a>/is", "", $variable['postlist'][$k]['message']); + $variable['postlist'][$k]['message'] = mobile_api::_findimg($variable['postlist'][$k]['message']); + if ($GLOBALS['aimgs'][$post['pid']]) { + $imagelist = array(); + foreach ($GLOBALS['aimgs'][$post['pid']] as $aid) { + $extra = ''; + $url = mobile_api::_parseimg('', $GLOBALS['postlist'][$post['pid']]['attachments'][$aid]['url'] . $GLOBALS['postlist'][$post['pid']]['attachments'][$aid]['attachment'], ''); + if ($GLOBALS['postlist'][$post['pid']]['attachments'][$aid]['thumb']) { + $extra = 'file="' . $url . '" '; + $url .= '.thumb.jpg'; + } + $extra .= 'attach="' . $post['pid'] . '" '; + if (strexists($variable['postlist'][$k]['message'], '[attach]' . $aid . '[/attach]')) { + $variable['postlist'][$k]['message'] = str_replace('[attach]' . $aid . '[/attach]', mobile_image($url, $extra), $variable['postlist'][$k]['message']); + unset($variable['postlist'][$k]['attachments'][$aid]); + } elseif (!in_array($aid, $_G['forum_attachtags'][$post['pid']])) { + $imagelist[] = $aid; + } + } + $variable['postlist'][$k]['imagelist'] = $imagelist; + } + $variable['postlist'][$k]['message'] = preg_replace("/\[attach\]\d+\[\/attach\]/i", '', $variable['postlist'][$k]['message']); + $variable['postlist'][$k]['message'] = preg_replace('/( ){2,}/', '', $variable['postlist'][$k]['message']); + $variable['postlist'][$k]['dateline'] = strip_tags($post['dateline']); + $variable['postlist'][$k]['groupiconid'] = mobile_core::usergroupIconId($post['groupid']); + } + + if (!empty($GLOBALS['polloptions'])) { + $variable['special_poll']['polloptions'] = $GLOBALS['polloptions']; + $variable['special_poll']['expirations'] = $GLOBALS['expirations']; + $variable['special_poll']['multiple'] = $GLOBALS['multiple']; + $variable['special_poll']['maxchoices'] = $GLOBALS['maxchoices']; + $variable['special_poll']['voterscount'] = $GLOBALS['voterscount']; + $variable['special_poll']['visiblepoll'] = $GLOBALS['visiblepoll']; + $variable['special_poll']['allowvote'] = $_G['group']['allowvote']; + $variable['special_poll']['remaintime'] = $thread['remaintime']; + } + if (!empty($GLOBALS['rewardprice'])) { + $variable['special_reward']['rewardprice'] = $GLOBALS['rewardprice'] . ' ' . $_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['title']; + $variable['special_reward']['bestpost'] = $GLOBALS['bestpost']; + } + if (!empty($GLOBALS['trades'])) { + $variable['special_trade'] = $GLOBALS['trades']; + } + if (!empty($GLOBALS['debate'])) { + $variable['special_debate'] = $GLOBALS['debate']; + } + if (!empty($GLOBALS['activity'])) { + $variable['special_activity'] = $GLOBALS['activity']; + $variable['special_activity']['allapplynum'] = $GLOBALS['allapplynum']; + if ($_G['setting']['activitycredit'] && $GLOBALS['activity']['credit'] && !$GLOBALS['applied']) { + $variable['special_activity']['creditcost'] = $GLOBALS['activity']['credit'] . ' ' . $_G['setting']['extcredits'][$_G['setting']['activitycredit']]['title']; + } + $setting = array(); + foreach ($GLOBALS['activity']['ufield']['userfield'] as $field) { + $setting[$field] = $_G['cache']['profilesetting'][$field]; + } + $variable['special_activity']['joinfield'] = mobile_core::getvalues($setting, array('/./'), array('fieldid', 'formtype', 'available', 'title', 'formtype', 'choices')); + $variable['special_activity']['userfield'] = $GLOBALS['ufielddata']['userfield']; + $variable['special_activity']['extfield'] = $GLOBALS['ufielddata']['extfield']; + $variable['special_activity']['basefield'] = mobile_core::getvalues($GLOBALS['applyinfo'], array('message', 'payment')); + $variable['special_activity']['closed'] = $GLOBALS['activityclose']; + if ($GLOBALS['applied'] && $GLOBALS['isverified'] < 2) { + if (!$GLOBALS['isverified']) { + $variable['special_activity']['status'] = 'wait'; + } else { + $variable['special_activity']['status'] = 'joined'; + } + if (!$GLOBALS['activityclose']) { + $variable['special_activity']['button'] = 'cancel'; + } + } elseif (!$GLOBALS['activityclose']) { + if ($GLOBALS['isverified'] != 2) { + $variable['special_activity']['status'] = 'join'; + } else { + $variable['special_activity']['status'] = 'complete'; + } + $variable['special_activity']['button'] = 'join'; + } + } + + $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; + mobile_core::result(mobile_core::variable($variable)); + } + + function _findimg($string) { + return preg_replace_callback('/()/is', function($matches) { return mobile_api::_parseimg($matches[1], $matches[2], $matches[3]); }, $string); + } + + function _parseimg($before, $img, $after) { + $before = stripslashes($before); + $after = stripslashes($after); + if (!in_array(strtolower(substr($img, 0, 6)), array('http:/', 'https:', 'ftp://'))) { + global $_G; + $img = $_G['siteurl'] . $img; + } + return $before . $img . $after; + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/wechat.php b/source/plugin/mobile/api/4/wechat.php index a68f433..04ca77f 100644 --- a/source/plugin/mobile/api/4/wechat.php +++ b/source/plugin/mobile/api/4/wechat.php @@ -1,29 +1,29 @@ -cachelist = $cachelist; -$discuz->init(); - -$_G['siteurl'] = str_replace('api/mobile/', '', $_G['siteurl']); -$_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - -require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php'; - +cachelist = $cachelist; +$discuz->init(); + +$_G['siteurl'] = str_replace('api/mobile/', '', $_G['siteurl']); +$_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + +require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php'; + $svr = new WeChatServer($_G['wechat']['setting']['wechat_token'], WeChatHook::getResponse($_GET['id'])); \ No newline at end of file diff --git a/source/plugin/mobile/api/4/wechat_clearlogin.php b/source/plugin/mobile/api/4/wechat_clearlogin.php index 6aafb53..0d63755 100644 --- a/source/plugin/mobile/api/4/wechat_clearlogin.php +++ b/source/plugin/mobile/api/4/wechat_clearlogin.php @@ -1,26 +1,26 @@ -cachelist = $cachelist; -$discuz->init(); - -$variable = array('result' => 0); -if($_G['uid'] && FORMHASH == $_GET['hash']) { - C::t('#wechat#common_member_wechat')->update($_G['uid'], array('status' => 1)); - $variable['result'] = 1; -} - +cachelist = $cachelist; +$discuz->init(); + +$variable = array('result' => 0); +if($_G['uid'] && FORMHASH == $_GET['hash']) { + C::t('#wechat#common_member_wechat')->update($_G['uid'], array('status' => 1)); + $variable['result'] = 1; +} + mobile_core::result(mobile_core::variable($variable)); \ No newline at end of file diff --git a/source/plugin/mobile/api/4/wsqindex.php b/source/plugin/mobile/api/4/wsqindex.php index 1a30fc6..d03e5a0 100644 --- a/source/plugin/mobile/api/4/wsqindex.php +++ b/source/plugin/mobile/api/4/wsqindex.php @@ -1,59 +1,59 @@ - 3600) { - $forums = C::t('forum_forum')->fetch_all_by_status(1); - foreach ($forums as $forum) { - $posts += $forum['posts']; - } - loadcache('userstats'); - $_G['cache']['mobile_stats']['variable'] = array( - 'totalposts' => $posts, - 'totalmembers' => $_G['cache']['userstats']['totalmembers'], - ); - savecache('mobile_stats', array('variable' => $_G['cache']['mobile_stats']['variable'], 'expiration' => TIMESTAMP)); - } - $variable['stats'] = $_G['cache']['mobile_stats']['variable']; - require_once DISCUZ_ROOT . './source/plugin/wechat/wsq.class.php'; - $variable['wsqsiteinfo'] = wsq::siteinfo(); - mobile_core::result(mobile_core::variable($variable)); - } - -} - + 3600) { + $forums = C::t('forum_forum')->fetch_all_by_status(1); + foreach ($forums as $forum) { + $posts += $forum['posts']; + } + loadcache('userstats'); + $_G['cache']['mobile_stats']['variable'] = array( + 'totalposts' => $posts, + 'totalmembers' => $_G['cache']['userstats']['totalmembers'], + ); + savecache('mobile_stats', array('variable' => $_G['cache']['mobile_stats']['variable'], 'expiration' => TIMESTAMP)); + } + $variable['stats'] = $_G['cache']['mobile_stats']['variable']; + require_once DISCUZ_ROOT . './source/plugin/wechat/wsq.class.php'; + $variable['wsqsiteinfo'] = wsq::siteinfo(); + mobile_core::result(mobile_core::variable($variable)); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/mobile/api/4/wsqsiteinfo.php b/source/plugin/mobile/api/4/wsqsiteinfo.php index 028e5b2..ed13bc8 100644 --- a/source/plugin/mobile/api/4/wsqsiteinfo.php +++ b/source/plugin/mobile/api/4/wsqsiteinfo.php @@ -1,32 +1,32 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/cache/cache_mobile.php b/source/plugin/mobile/cache/cache_mobile.php index d7195f1..89ed6e2 100644 --- a/source/plugin/mobile/cache/cache_mobile.php +++ b/source/plugin/mobile/cache/cache_mobile.php @@ -1,56 +1,56 @@ -fetch_all(array( - 'extend_used', - 'extend_lastupdate' - )); - $array = array( - 'discuzversion' => DISCUZ_VERSION, - 'charset' => CHARSET, - 'version' => MOBILE_PLUGIN_VERSION, - 'pluginversion' => $_G['setting']['plugins']['version']['mobile'], - 'oemversion' => in_array('mobileoem', $_G['setting']['plugins']['available']) ? $_G['setting']['plugins']['version']['mobileoem'] : '0', - 'regname' => $_G['setting']['regname'], - 'qqconnect' => in_array('qqconnect', $_G['setting']['plugins']['available']) ? '1' : '0', - 'sitename' => $_G['setting']['bbname'], - 'mysiteid' => $_G['setting']['my_siteid'], - 'ucenterurl' => $_G['setting']['ucenterurl'], - 'setting' => $setting, - 'extends' => array('used' => $extendsetting['extend_used'], 'lastupdate' => $extendsetting['extend_lastupdate']), - ); - } else { - $array = array(); - } - - require_once './source/plugin/mobile/mobile.class.php'; - - define('IN_MOBILE_API', 1); - - $data = array('mobilecheck' => mobile_core::json($array)); - writetocache('mobile', getcachevars($data)); +fetch_all(array( + 'extend_used', + 'extend_lastupdate' + )); + $array = array( + 'discuzversion' => DISCUZ_VERSION, + 'charset' => CHARSET, + 'version' => MOBILE_PLUGIN_VERSION, + 'pluginversion' => $_G['setting']['plugins']['version']['mobile'], + 'oemversion' => in_array('mobileoem', $_G['setting']['plugins']['available']) ? $_G['setting']['plugins']['version']['mobileoem'] : '0', + 'regname' => $_G['setting']['regname'], + 'qqconnect' => in_array('qqconnect', $_G['setting']['plugins']['available']) ? '1' : '0', + 'sitename' => $_G['setting']['bbname'], + 'mysiteid' => $_G['setting']['my_siteid'], + 'ucenterurl' => $_G['setting']['ucenterurl'], + 'setting' => $setting, + 'extends' => array('used' => $extendsetting['extend_used'], 'lastupdate' => $extendsetting['extend_lastupdate']), + ); + } else { + $array = array(); + } + + require_once './source/plugin/mobile/mobile.class.php'; + + define('IN_MOBILE_API', 1); + + $data = array('mobilecheck' => mobile_core::json($array)); + writetocache('mobile', getcachevars($data)); } \ No newline at end of file diff --git a/source/plugin/mobile/check.php b/source/plugin/mobile/check.php index a723c72..a58947f 100644 --- a/source/plugin/mobile/check.php +++ b/source/plugin/mobile/check.php @@ -1,14 +1,14 @@ - \ No newline at end of file diff --git a/source/plugin/mobile/discuzcode.func.php b/source/plugin/mobile/discuzcode.func.php index 47a72a0..36d60d7 100644 --- a/source/plugin/mobile/discuzcode.func.php +++ b/source/plugin/mobile/discuzcode.func.php @@ -1,292 +1,292 @@ -]*?>(.*?)<\/script>/i", '', $message); - } - - if(!$smileyoff && $allowsmilies) { - $message = mobile_parsesmiles($message); - } - - if($_G['setting']['allowattachurl'] && strpos($msglower, 'attach://') !== FALSE) { - $message = preg_replace_callback("/attach:\/\/(\d+)\.?(\w*)/i", function($matches) { return parseattachurl($matches[1], $matches[2], 1); }, $message); - } - - if($allowbbcode) { - if(strpos($msglower, 'ed2k://') !== FALSE) { - $message = preg_replace_callback("/ed2k:\/\/(.+?)\//", function($matches) { return mobile_parseed2k($matches[1]); }, $message); - } - } - - if(!$bbcodeoff && $allowbbcode) { - if(strpos($msglower, '[/url]') !== FALSE) { - $message = preg_replace_callback("/\[url(=((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|thunder|qqdl|synacast){1}:\/\/|www\.|mailto:)?([^\r\n\[\"']+?))?\](.+?)\[\/url\]/is", function($matches) { return mobile_parseurl($matches[1], $matches[5], $matches[2]); }, $message); - } - if(strpos($msglower, '[/email]') !== FALSE) { - $message = preg_replace_callback("/\[email(=([a-z0-9\-_.+]+)@([a-z0-9\-_]+[.][a-z0-9\-_.]+))?\](.+?)\[\/email\]/is", function($matches) { return strip_tags(parseemail($matches[1], $matches[4])); }, $message); - } - - $nest = 0; - while(strpos($msglower, '[table') !== FALSE && strpos($msglower, '[/table]') !== FALSE){ - $message = preg_replace_callback("/\[table(?:=(\d{1,4}%?)(?:,([\(\)%,#\w ]+))?)?\]\s*(.+?)\s*\[\/table\]/is", function($matches) { return mobile_parsetable($matches[1], $matches[2], $matches[3]); }, $message); - if(++$nest > 4) break; - } - - $message = str_replace(array( - '[/color]', '[/backcolor]', '[/size]', '[/font]', '[/align]', '[b]', '[/b]', '[s]', '[/s]', '[hr]', '[/p]', - '[i=s]', '[i]', '[/i]', '[u]', '[/u]', '[list]', '[list=1]', '[list=a]', - '[list=A]', "\r\n[*]", '[*]', '[/list]', '[indent]', '[/indent]', '[/float]' - ), array( - '', '', '', '', '', '', '', '', '', '
    ', '

    ', '', '', - '', '', '', '
    '; - - $adminscript = ADMINSCRIPT; - -echo << -var showResourceId = null; -function showResource(id) { - showMenu({'ctrlid':'rsel','evt':'click','duration':3,'pos':'00'}); - showResourceId = id; - ajaxget('$adminscript?action=plugins&operation=config&identifier=wechat&pmod=resource_setting&ac=select', 'rsel_content'); -} -function selResource(id, text) { - $(showResourceId).value = '[resource=' + id + '] ' + text; - hideMenu(); -} - -EOF; - - } - - function menu() { - global $_G; - $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - -echo << -.floattop { display: none; } -.floattopempty { display: none; } -.mymenu { height:35px; } -.mymenu .floattop { display: inline; } -.mymenu .floattopempty { display: inline; } - -EOF; - - echo '
    '; - showsubmenu(lang('plugin/wechat', 'menu_root'), array( - array(array('menu' => lang('plugin/wechat', 'menu_wsq'), 'submenu' => array( - array(lang('plugin/wechat', 'menu_wsq_base'), 'plugins&operation=config&identifier=wechat&pmod=wsq_setting', $_GET['pmod'] == 'wsq_setting'), - array(lang('plugin/wechat', 'menu_wsq_show'), 'plugins&operation=config&identifier=wechat&pmod=showactivity_setting', $_GET['pmod'] == 'showactivity_setting'), - array(lang('plugin/wechat', 'menu_wsq_stat'), 'plugins&operation=config&identifier=wechat&pmod=wsq_stat', $_GET['pmod'] == 'wsq_stat'), - ))), - array(array('menu' => lang('plugin/wechat', 'menu_wechat'), 'submenu' => array( - array(lang('plugin/wechat', 'menu_wechat_base'), 'plugins&operation=config&identifier=wechat&pmod=wechat_setting', $_GET['pmod'] == 'wechat_setting'), - array(lang('plugin/wechat', 'menu_wechat_msg'), 'plugins&operation=config&identifier=wechat&pmod=response_setting', $_GET['pmod'] == 'response_setting'), - array(lang('plugin/wechat', 'menu_wechat_menu'), 'plugins&operation=config&identifier=wechat&pmod=menu_setting', $_GET['pmod'] == 'menu_setting'), - array(lang('plugin/wechat', 'menu_wechat_resource'), 'plugins&operation=config&identifier=wechat&pmod=resource_setting', $_GET['pmod'] == 'resource_setting'), - array(lang('plugin/wechat', 'menu_wechat_masssend'), 'plugins&operation=config&identifier=wechat&pmod=masssend_setting', $_GET['pmod'] == 'masssend_setting'), - ))), - array(lang('plugin/wechat', 'menu_app'), 'plugins&operation=config&identifier=wechat&pmod=wsq_app', $_GET['pmod'] == 'wsq_app'), - array(lang('plugin/wechat', 'menu_api'), 'plugins&operation=config&identifier=wechat&pmod=api_setting', $_GET['pmod'] == 'api_setting'), - )); - echo '
    '; - - if($_G['wechat']['setting']['wsq_siteid']) { - $time = TIMESTAMP; - -echo << -function pubEventCallbackCommon(re) { - if(re.errCode) { - return; - } - if(typeof re.data.event.peId != 'undefined') { - $('pubEventNum').innerHTML = 'New!'; - $('pubEventNum').style.display = ''; - } -} - - -EOF; - - } - } - - +' + . '

    '.lang('plugin/wechat', 'resource_select').'

    ' + . '
    '; + + $adminscript = ADMINSCRIPT; + +echo << +var showResourceId = null; +function showResource(id) { + showMenu({'ctrlid':'rsel','evt':'click','duration':3,'pos':'00'}); + showResourceId = id; + ajaxget('$adminscript?action=plugins&operation=config&identifier=wechat&pmod=resource_setting&ac=select', 'rsel_content'); +} +function selResource(id, text) { + $(showResourceId).value = '[resource=' + id + '] ' + text; + hideMenu(); +} + +EOF; + + } + + function menu() { + global $_G; + $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + +echo << +.floattop { display: none; } +.floattopempty { display: none; } +.mymenu { height:35px; } +.mymenu .floattop { display: inline; } +.mymenu .floattopempty { display: inline; } + +EOF; + + echo '
    '; + showsubmenu(lang('plugin/wechat', 'menu_root'), array( + array(array('menu' => lang('plugin/wechat', 'menu_wsq'), 'submenu' => array( + array(lang('plugin/wechat', 'menu_wsq_base'), 'plugins&operation=config&identifier=wechat&pmod=wsq_setting', $_GET['pmod'] == 'wsq_setting'), + array(lang('plugin/wechat', 'menu_wsq_show'), 'plugins&operation=config&identifier=wechat&pmod=showactivity_setting', $_GET['pmod'] == 'showactivity_setting'), + array(lang('plugin/wechat', 'menu_wsq_stat'), 'plugins&operation=config&identifier=wechat&pmod=wsq_stat', $_GET['pmod'] == 'wsq_stat'), + ))), + array(array('menu' => lang('plugin/wechat', 'menu_wechat'), 'submenu' => array( + array(lang('plugin/wechat', 'menu_wechat_base'), 'plugins&operation=config&identifier=wechat&pmod=wechat_setting', $_GET['pmod'] == 'wechat_setting'), + array(lang('plugin/wechat', 'menu_wechat_msg'), 'plugins&operation=config&identifier=wechat&pmod=response_setting', $_GET['pmod'] == 'response_setting'), + array(lang('plugin/wechat', 'menu_wechat_menu'), 'plugins&operation=config&identifier=wechat&pmod=menu_setting', $_GET['pmod'] == 'menu_setting'), + array(lang('plugin/wechat', 'menu_wechat_resource'), 'plugins&operation=config&identifier=wechat&pmod=resource_setting', $_GET['pmod'] == 'resource_setting'), + array(lang('plugin/wechat', 'menu_wechat_masssend'), 'plugins&operation=config&identifier=wechat&pmod=masssend_setting', $_GET['pmod'] == 'masssend_setting'), + ))), + array(lang('plugin/wechat', 'menu_app'), 'plugins&operation=config&identifier=wechat&pmod=wsq_app', $_GET['pmod'] == 'wsq_app'), + array(lang('plugin/wechat', 'menu_api'), 'plugins&operation=config&identifier=wechat&pmod=api_setting', $_GET['pmod'] == 'api_setting'), + )); + echo '
    '; + + if($_G['wechat']['setting']['wsq_siteid']) { + $time = TIMESTAMP; + +echo << +function pubEventCallbackCommon(re) { + if(re.errCode) { + return; + } + if(typeof re.data.event.peId != 'undefined') { + $('pubEventNum').innerHTML = 'New!'; + $('pubEventNum').style.display = ''; + } +} + + +EOF; + + } + } + + } \ No newline at end of file diff --git a/source/plugin/wechat/showactivity_setting.inc.php b/source/plugin/wechat/showactivity_setting.inc.php index c9a23fb..fc75993 100644 --- a/source/plugin/wechat/showactivity_setting.inc.php +++ b/source/plugin/wechat/showactivity_setting.inc.php @@ -1,212 +1,212 @@ -fetch_all(array('mobilewechat')); -$setting = (array)unserialize($setting['mobilewechat']); -$ac = !empty($_GET['ac']) ? $_GET['ac'] : ''; - -require_once libfile('function/forumlist'); -loadcache('forums'); - -require_once DISCUZ_ROOT.'./source/plugin/wechat/setting.class.php'; -WeChatSetting::menu(); - -if(!$ac) { - - $ppp = 20; - arsort($setting['showactivity']['tids']); - $page = max(1, $_GET['page']); - $tids = array_slice($setting['showactivity']['tids'], ($page - 1) * $ppp, $ppp); - $multipage = multi(count($setting['showactivity']['tids']), $ppp, $page, ADMINSCRIPT.'?action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting', 0, 3, TRUE, TRUE); - - $showthreads = C::t('forum_thread')->fetch_all($tids); - $activities = C::t('forum_activity')->fetch_all(array_keys($showthreads)); - - arsort($showthreads); - showformheader('plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting&ac=del', 'enctype'); - showtableheader(); - echo ''.lang('plugin/wechat', 'show_title').''. - lang('plugin/wechat', 'show_starttime').' - '.lang('plugin/wechat', 'show_endtime').''. - lang('plugin/wechat', 'show_expiration').''. - lang('plugin/wechat', 'show_applynumber').''. - lang('plugin/wechat', 'show_forum').''; - foreach($showthreads as $tid => $thread) { - $settingsnew[$tid] = $tid; - echo ''.$thread['subject'].''. - dgmdate($activities[$thread['tid']]['starttimefrom']).($activities[$thread['tid']]['starttimeto'] ? ' - '.dgmdate($activities[$thread['tid']]['starttimeto']) : '').''. - dgmdate($activities[$thread['tid']]['expiration']).''. - $activities[$thread['tid']]['applynumber'].''. - $_G['cache']['forums'][$thread['fid']]['name'].''. - ''.lang('plugin/wechat', 'show_export').''; - } - $add = ''; - if($showthreads) { - showsubmit('submit', lang('plugin/wechat', 'show_delthread'), $add, '', $multipage); - } else { - showsubmit('', '', 'td', $add); - } - showtablefooter(); - showformfooter(); - -} elseif($ac == 'del') { - - if(submitcheck('submit')) { - foreach($_GET['delete'] as $delete) { - unset($setting['showactivity']['tids'][$delete]); - C::t('forum_thread')->delete($delete); - } - $settings = array('mobilewechat' => serialize($setting)); - C::t('common_setting')->update_batch($settings); - updatecache(array('plugin', 'setting')); - cpmsg(lang('plugin/wechat', 'show_delthread_succeed'), 'action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting', 'succeed'); - } - -} elseif($ac == 'add') { - if(!submitcheck('submit')) { - - echo ''; - $forumselect = "'; - - showformheader('plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting&ac=add', 'enctype'); - showtableheader(); - showsetting(lang('plugin/wechat', 'show_title'), 'subject', '', 'text'); - showsetting(lang('plugin/wechat', 'show_starttime'), 'starttimefrom', '', 'calendar', '', 0, '', 1); - showsetting(lang('plugin/wechat', 'show_expiration'), 'activityexpiration', '', 'calendar', '', 0, '', 1); - showsetting(lang('plugin/wechat', 'show_endtime'), 'starttimeto', '', 'calendar', '', 0, '', 1); - showsetting(lang('plugin/wechat', 'show_memo'), 'message', '', 'textarea'); - showsetting(lang('plugin/wechat', 'show_forum'), '', '', $forumselect); - showsubmit('submit'); - showtablefooter(); - showformfooter(); - - } else { - - $_GET['activityclass'] = lang('plugin/wechat', 'show_thread_class'); - $_GET['activityplace'] = lang('plugin/wechat', 'show_thread_place'); - if(!$_GET['subject'] || !$_GET['starttimefrom'] || !$_GET['activityexpiration'] || !$_GET['message'] || !$_GET['fid']) { - cpmsg(lang('plugin/wechat', 'show_input_error'), '', 'error'); - } - - if(@strtotime($_GET['starttimefrom']) === -1 || @strtotime($_GET['starttimefrom']) === FALSE) { - cpmsg(lang('message', 'activity_fromtime_error'), '', 'error'); - } elseif(trim($_GET['activityexpiration']) && (@strtotime($_GET['activityexpiration']) === -1 || @strtotime($_GET['activityexpiration']) === FALSE)) { - cpmsg(lang('message', 'activity_totime_error'), '', 'error'); - } - - $activity = array(); - $activity['class'] = $_GET['activityclass']; - $activity['starttimefrom'] = @strtotime($_GET['starttimefrom']); - $activity['starttimeto'] = $_GET['starttimeto'] ? @strtotime($_GET['starttimeto']) : 0; - $activity['place'] = $_GET['activityplace']; - $activity['expiration'] = @strtotime($_GET['activityexpiration']); - - $newthread = array( - 'fid' => $_GET['fid'], - 'posttableid' => 0, - 'readperm' => 0, - 'price' => 0, - 'typeid' => 0, - 'sortid' => 0, - 'author' => $_G['username'], - 'authorid' => $_G['uid'], - 'subject' => $_GET['subject'], - 'dateline' => TIMESTAMP, - 'lastpost' => TIMESTAMP, - 'lastposter' => $_G['username'], - 'displayorder' => 1, - 'digest' => 0, - 'special' => 4, - 'attachment' => 0, - 'moderated' => 0, - 'status' => 0, - 'isgroup' => 0, - 'replycredit' => 0, - 'closed' => 0, - ); - $tid = C::t('forum_thread')->insert($newthread, true); - - $pid = insertpost(array( - 'fid' => $_GET['fid'], - 'tid' => $tid, - 'first' => '1', - 'author' => $_G['username'], - 'authorid' => $_G['uid'], - 'subject' => $_GET['subject'], - 'dateline' => TIMESTAMP, - 'message' => $_GET['message'], - 'useip' => '', - 'invisible' => 0, - 'anonymous' => 0, - 'usesig' => 0, - 'htmlon' => 0, - 'bbcodeoff' => 0, - 'smileyoff' => 0, - 'parseurloff' => 0, - 'attachment' => '0', - 'tags' => '', - 'replycredit' => 0, - 'status' => 0 - )); - - $data = array( - 'tid' => $tid, - 'uid' => $_G['uid'], - 'cost' => 0, - 'starttimefrom' => $activity['starttimefrom'], - 'starttimeto' => $activity['starttimeto'], - 'place' => $activity['place'], - 'class' => $activity['class'], - 'expiration' => $activity['expiration'] - ); - C::t('forum_activity')->insert($data); - - $setting['showactivity']['tids'][$tid] = $tid; - $settings = array('mobilewechat' => serialize($setting)); - C::t('common_setting')->update_batch($settings); - updatecache(array('plugin', 'setting')); - require_once DISCUZ_ROOT . './source/plugin/wechat/wsq.class.php'; - wsq::report('pubshowactivity'); - - cpmsg(lang('plugin/wechat', 'show_addthread_succeed'), 'action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting', 'succeed'); - - } -} elseif($ac == 'export') { - if(!isset($setting['showactivity']['tids'][$_GET['tid']])) { - cpmsg(lang('plugin/wechat', 'show_thread_not_found')); - } - $thread = get_thread_by_tid($_GET['tid']); - if(!$thread) { - cpmsg(lang('plugin/wechat', 'show_thread_not_found')); - } - $posttableid = $thread['posttableid']; - $posts = DB::fetch_all("SELECT * FROM %t WHERE tid=%d", array('forum_debatepost', $_GET['tid']), 'pid'); - foreach(C::t('forum_post')->fetch_all($posttableid, array_keys($posts), false) as $post) { - $array[$posts[$post['pid']]['voters'].'.'.$post['position']] = $post['author'].','.$posts[$post['pid']]['voters'].','.$post['position']; - } - ob_end_clean(); - header('Content-Encoding: none'); - header('Content-Type: application/octet-stream'); - header('Content-Disposition: attachment; filename=showactivity_'.$_GET['tid'].'.csv'); - header('Pragma: no-cache'); - header('Expires: 0'); - krsort($array); - $detail = lang('plugin/wechat', 'show_export_title')."\r\n".implode("\r\n", $array); - if($_G['charset'] != 'gbk') { - $detail = diconv($detail, $_G['charset'], 'GBK'); - } - define('FOOTERDISABLED', true); - echo $detail; - exit(); -} - +fetch_all(array('mobilewechat')); +$setting = (array)unserialize($setting['mobilewechat']); +$ac = !empty($_GET['ac']) ? $_GET['ac'] : ''; + +require_once libfile('function/forumlist'); +loadcache('forums'); + +require_once DISCUZ_ROOT.'./source/plugin/wechat/setting.class.php'; +WeChatSetting::menu(); + +if(!$ac) { + + $ppp = 20; + arsort($setting['showactivity']['tids']); + $page = max(1, $_GET['page']); + $tids = array_slice($setting['showactivity']['tids'], ($page - 1) * $ppp, $ppp); + $multipage = multi(count($setting['showactivity']['tids']), $ppp, $page, ADMINSCRIPT.'?action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting', 0, 3, TRUE, TRUE); + + $showthreads = C::t('forum_thread')->fetch_all($tids); + $activities = C::t('forum_activity')->fetch_all(array_keys($showthreads)); + + arsort($showthreads); + showformheader('plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting&ac=del', 'enctype'); + showtableheader(); + echo ''.lang('plugin/wechat', 'show_title').''. + lang('plugin/wechat', 'show_starttime').' - '.lang('plugin/wechat', 'show_endtime').''. + lang('plugin/wechat', 'show_expiration').''. + lang('plugin/wechat', 'show_applynumber').''. + lang('plugin/wechat', 'show_forum').''; + foreach($showthreads as $tid => $thread) { + $settingsnew[$tid] = $tid; + echo ''.$thread['subject'].''. + dgmdate($activities[$thread['tid']]['starttimefrom']).($activities[$thread['tid']]['starttimeto'] ? ' - '.dgmdate($activities[$thread['tid']]['starttimeto']) : '').''. + dgmdate($activities[$thread['tid']]['expiration']).''. + $activities[$thread['tid']]['applynumber'].''. + $_G['cache']['forums'][$thread['fid']]['name'].''. + ''.lang('plugin/wechat', 'show_export').''; + } + $add = ''; + if($showthreads) { + showsubmit('submit', lang('plugin/wechat', 'show_delthread'), $add, '', $multipage); + } else { + showsubmit('', '', 'td', $add); + } + showtablefooter(); + showformfooter(); + +} elseif($ac == 'del') { + + if(submitcheck('submit')) { + foreach($_GET['delete'] as $delete) { + unset($setting['showactivity']['tids'][$delete]); + C::t('forum_thread')->delete($delete); + } + $settings = array('mobilewechat' => serialize($setting)); + C::t('common_setting')->update_batch($settings); + updatecache(array('plugin', 'setting')); + cpmsg(lang('plugin/wechat', 'show_delthread_succeed'), 'action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting', 'succeed'); + } + +} elseif($ac == 'add') { + if(!submitcheck('submit')) { + + echo ''; + $forumselect = "'; + + showformheader('plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting&ac=add', 'enctype'); + showtableheader(); + showsetting(lang('plugin/wechat', 'show_title'), 'subject', '', 'text'); + showsetting(lang('plugin/wechat', 'show_starttime'), 'starttimefrom', '', 'calendar', '', 0, '', 1); + showsetting(lang('plugin/wechat', 'show_expiration'), 'activityexpiration', '', 'calendar', '', 0, '', 1); + showsetting(lang('plugin/wechat', 'show_endtime'), 'starttimeto', '', 'calendar', '', 0, '', 1); + showsetting(lang('plugin/wechat', 'show_memo'), 'message', '', 'textarea'); + showsetting(lang('plugin/wechat', 'show_forum'), '', '', $forumselect); + showsubmit('submit'); + showtablefooter(); + showformfooter(); + + } else { + + $_GET['activityclass'] = lang('plugin/wechat', 'show_thread_class'); + $_GET['activityplace'] = lang('plugin/wechat', 'show_thread_place'); + if(!$_GET['subject'] || !$_GET['starttimefrom'] || !$_GET['activityexpiration'] || !$_GET['message'] || !$_GET['fid']) { + cpmsg(lang('plugin/wechat', 'show_input_error'), '', 'error'); + } + + if(@strtotime($_GET['starttimefrom']) === -1 || @strtotime($_GET['starttimefrom']) === FALSE) { + cpmsg(lang('message', 'activity_fromtime_error'), '', 'error'); + } elseif(trim($_GET['activityexpiration']) && (@strtotime($_GET['activityexpiration']) === -1 || @strtotime($_GET['activityexpiration']) === FALSE)) { + cpmsg(lang('message', 'activity_totime_error'), '', 'error'); + } + + $activity = array(); + $activity['class'] = $_GET['activityclass']; + $activity['starttimefrom'] = @strtotime($_GET['starttimefrom']); + $activity['starttimeto'] = $_GET['starttimeto'] ? @strtotime($_GET['starttimeto']) : 0; + $activity['place'] = $_GET['activityplace']; + $activity['expiration'] = @strtotime($_GET['activityexpiration']); + + $newthread = array( + 'fid' => $_GET['fid'], + 'posttableid' => 0, + 'readperm' => 0, + 'price' => 0, + 'typeid' => 0, + 'sortid' => 0, + 'author' => $_G['username'], + 'authorid' => $_G['uid'], + 'subject' => $_GET['subject'], + 'dateline' => TIMESTAMP, + 'lastpost' => TIMESTAMP, + 'lastposter' => $_G['username'], + 'displayorder' => 1, + 'digest' => 0, + 'special' => 4, + 'attachment' => 0, + 'moderated' => 0, + 'status' => 0, + 'isgroup' => 0, + 'replycredit' => 0, + 'closed' => 0, + ); + $tid = C::t('forum_thread')->insert($newthread, true); + + $pid = insertpost(array( + 'fid' => $_GET['fid'], + 'tid' => $tid, + 'first' => '1', + 'author' => $_G['username'], + 'authorid' => $_G['uid'], + 'subject' => $_GET['subject'], + 'dateline' => TIMESTAMP, + 'message' => $_GET['message'], + 'useip' => '', + 'invisible' => 0, + 'anonymous' => 0, + 'usesig' => 0, + 'htmlon' => 0, + 'bbcodeoff' => 0, + 'smileyoff' => 0, + 'parseurloff' => 0, + 'attachment' => '0', + 'tags' => '', + 'replycredit' => 0, + 'status' => 0 + )); + + $data = array( + 'tid' => $tid, + 'uid' => $_G['uid'], + 'cost' => 0, + 'starttimefrom' => $activity['starttimefrom'], + 'starttimeto' => $activity['starttimeto'], + 'place' => $activity['place'], + 'class' => $activity['class'], + 'expiration' => $activity['expiration'] + ); + C::t('forum_activity')->insert($data); + + $setting['showactivity']['tids'][$tid] = $tid; + $settings = array('mobilewechat' => serialize($setting)); + C::t('common_setting')->update_batch($settings); + updatecache(array('plugin', 'setting')); + require_once DISCUZ_ROOT . './source/plugin/wechat/wsq.class.php'; + wsq::report('pubshowactivity'); + + cpmsg(lang('plugin/wechat', 'show_addthread_succeed'), 'action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=showactivity_setting', 'succeed'); + + } +} elseif($ac == 'export') { + if(!isset($setting['showactivity']['tids'][$_GET['tid']])) { + cpmsg(lang('plugin/wechat', 'show_thread_not_found')); + } + $thread = get_thread_by_tid($_GET['tid']); + if(!$thread) { + cpmsg(lang('plugin/wechat', 'show_thread_not_found')); + } + $posttableid = $thread['posttableid']; + $posts = DB::fetch_all("SELECT * FROM %t WHERE tid=%d", array('forum_debatepost', $_GET['tid']), 'pid'); + foreach(C::t('forum_post')->fetch_all($posttableid, array_keys($posts), false) as $post) { + $array[$posts[$post['pid']]['voters'].'.'.$post['position']] = $post['author'].','.$posts[$post['pid']]['voters'].','.$post['position']; + } + ob_end_clean(); + header('Content-Encoding: none'); + header('Content-Type: application/octet-stream'); + header('Content-Disposition: attachment; filename=showactivity_'.$_GET['tid'].'.csv'); + header('Pragma: no-cache'); + header('Expires: 0'); + krsort($array); + $detail = lang('plugin/wechat', 'show_export_title')."\r\n".implode("\r\n", $array); + if($_G['charset'] != 'gbk') { + $detail = diconv($detail, $_G['charset'], 'GBK'); + } + define('FOOTERDISABLED', true); + echo $detail; + exit(); +} + ?> \ No newline at end of file diff --git a/source/plugin/wechat/spacecp.inc.php b/source/plugin/wechat/spacecp.inc.php index 62fa12b..e1da215 100644 --- a/source/plugin/wechat/spacecp.inc.php +++ b/source/plugin/wechat/spacecp.inc.php @@ -1,72 +1,72 @@ -update($_G['uid'], array('password' => md5(random(10)))); - - if($_G['wechat']['setting']['wechat_qrtype']) { - C::t('#wechat#common_member_wechatmp')->update($_G['uid'], array('status' => 1)); - } else { - C::t('#wechat#common_member_wechat')->update($_G['uid'], array('isregister' => 0)); - } - - showmessage('wechat:wsq_password_reset', dreferer()); -} elseif(submitcheck('unbindsubmit')) { - require_once libfile('function/member'); - if($_G['wechat']['setting']['wechat_qrtype']) { - require_once DISCUZ_ROOT . './source/plugin/wechat/wsq.class.php'; - $member = C::t('#wechat#common_member_wechatmp')->fetch($_G['uid']); - if(!$member || !wsq::userunbind($_G['uid'], $member['openid'])) { - showmessage('wechat:wechat_message_unbind_fail'); - } - C::t('#wechat#common_member_wechatmp')->delete($_G['uid']); - } else { - C::t('#wechat#common_member_wechat')->delete($_G['uid']); - require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; - wsq::report('unbind'); - } - - clearcookies(); - showmessage('wechat:wechat_message_unbinded', $_G['siteurl']); +update($_G['uid'], array('password' => md5(random(10)))); + + if($_G['wechat']['setting']['wechat_qrtype']) { + C::t('#wechat#common_member_wechatmp')->update($_G['uid'], array('status' => 1)); + } else { + C::t('#wechat#common_member_wechat')->update($_G['uid'], array('isregister' => 0)); + } + + showmessage('wechat:wsq_password_reset', dreferer()); +} elseif(submitcheck('unbindsubmit')) { + require_once libfile('function/member'); + if($_G['wechat']['setting']['wechat_qrtype']) { + require_once DISCUZ_ROOT . './source/plugin/wechat/wsq.class.php'; + $member = C::t('#wechat#common_member_wechatmp')->fetch($_G['uid']); + if(!$member || !wsq::userunbind($_G['uid'], $member['openid'])) { + showmessage('wechat:wechat_message_unbind_fail'); + } + C::t('#wechat#common_member_wechatmp')->delete($_G['uid']); + } else { + C::t('#wechat#common_member_wechat')->delete($_G['uid']); + require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; + wsq::report('unbind'); + } + + clearcookies(); + showmessage('wechat:wechat_message_unbinded', $_G['siteurl']); } \ No newline at end of file diff --git a/source/plugin/wechat/table/table_common_member_wechat.php b/source/plugin/wechat/table/table_common_member_wechat.php index 7e34ac6..e236a58 100644 --- a/source/plugin/wechat/table/table_common_member_wechat.php +++ b/source/plugin/wechat/table/table_common_member_wechat.php @@ -1,28 +1,28 @@ -_table = 'common_member_wechat'; - $this->_pk = 'uid'; - $this->_pre_cache_key = 'common_member_wechat_'; - - parent::__construct(); - } - - public function fetch_by_openid($openid) { - return DB::fetch_first('SELECT * FROM %t WHERE openid=%s', array($this->_table, $openid)); - } - +_table = 'common_member_wechat'; + $this->_pk = 'uid'; + $this->_pre_cache_key = 'common_member_wechat_'; + + parent::__construct(); + } + + public function fetch_by_openid($openid) { + return DB::fetch_first('SELECT * FROM %t WHERE openid=%s', array($this->_table, $openid)); + } + } \ No newline at end of file diff --git a/source/plugin/wechat/table/table_common_member_wechatmp.php b/source/plugin/wechat/table/table_common_member_wechatmp.php index f67952f..16fd158 100644 --- a/source/plugin/wechat/table/table_common_member_wechatmp.php +++ b/source/plugin/wechat/table/table_common_member_wechatmp.php @@ -1,28 +1,28 @@ -_table = 'common_member_wechatmp'; - $this->_pk = 'uid'; - $this->_pre_cache_key = 'common_member_wechatmp_'; - - parent::__construct(); - } - - public function fetch_by_openid($openid) { - return DB::fetch_all('SELECT * FROM %t WHERE openid=%s', array($this->_table, $openid), 'uid'); - } - +_table = 'common_member_wechatmp'; + $this->_pk = 'uid'; + $this->_pre_cache_key = 'common_member_wechatmp_'; + + parent::__construct(); + } + + public function fetch_by_openid($openid) { + return DB::fetch_all('SELECT * FROM %t WHERE openid=%s', array($this->_table, $openid), 'uid'); + } + } \ No newline at end of file diff --git a/source/plugin/wechat/table/table_mobile_wechat_authcode.php b/source/plugin/wechat/table/table_mobile_wechat_authcode.php index aa6fe80..4b6c045 100644 --- a/source/plugin/wechat/table/table_mobile_wechat_authcode.php +++ b/source/plugin/wechat/table/table_mobile_wechat_authcode.php @@ -1,32 +1,32 @@ -_table = 'mobile_wechat_authcode'; - $this->_pk = 'sid'; - - parent::__construct(); - } - - public function fetch_by_code($code) { - return DB::fetch_first('SELECT * FROM %t WHERE code=%d', array($this->_table, $code)); - } - - public function delete_history() { - $time = TIMESTAMP - 3600; - return DB::delete($this->_table, "createtime<$time"); - } - +_table = 'mobile_wechat_authcode'; + $this->_pk = 'sid'; + + parent::__construct(); + } + + public function fetch_by_code($code) { + return DB::fetch_first('SELECT * FROM %t WHERE code=%d', array($this->_table, $code)); + } + + public function delete_history() { + $time = TIMESTAMP - 3600; + return DB::delete($this->_table, "createtime<$time"); + } + } \ No newline at end of file diff --git a/source/plugin/wechat/table/table_mobile_wechat_masssend.php b/source/plugin/wechat/table/table_mobile_wechat_masssend.php index 0013bcf..809e611 100644 --- a/source/plugin/wechat/table/table_mobile_wechat_masssend.php +++ b/source/plugin/wechat/table/table_mobile_wechat_masssend.php @@ -1,23 +1,23 @@ -_table = 'mobile_wechat_masssend'; - $this->_pk = 'id'; - - parent::__construct(); - } - +_table = 'mobile_wechat_masssend'; + $this->_pk = 'id'; + + parent::__construct(); + } + } \ No newline at end of file diff --git a/source/plugin/wechat/table/table_mobile_wechat_resource.php b/source/plugin/wechat/table/table_mobile_wechat_resource.php index ba22df5..63a53d6 100644 --- a/source/plugin/wechat/table/table_mobile_wechat_resource.php +++ b/source/plugin/wechat/table/table_mobile_wechat_resource.php @@ -1,81 +1,81 @@ -_table = 'mobile_wechat_resource'; - $this->_pk = 'id'; - - parent::__construct(); - } - - public function insert($data, $return_insert_id = false, $replace = false, $silent = false) { - if(!is_array($data['data'])) { - return; - } - if(!$data['dateline']) { - $data['dateline'] = TIMESTAMP; - } - $data['data'] = serialize($data['data']); - return parent::insert($data, $return_insert_id, $replace, $silent); - } - - public function update($val, $data, $unbuffered = false, $low_priority = false) { - if(isset($data['data']) && is_array($data['data'])) { - $data['data'] = serialize($data['data']); - } - return parent::update($val, $data, $unbuffered , $low_priority); - } - - public function fetch($id, $force_from_db = false){ - $data = parent::fetch($id, $force_from_db); - if($data) { - $data['data'] = unserialize($data['data']); - return $data; - } else { - return array(); - } - } - - public function count_by_type($type = null) { - $typesql = $type !== null ? "`type`=".intval($type) : 'TRUE'; - return DB::result_first("SELECT COUNT(*) FROM %t WHERE %i", array($this->_table, $typesql)); - } - - public function fetch_by_type($type = null, $start = 0, $limit = 20) { - $typesql = $type !== null ? "`type`=".intval($type) : 'TRUE'; - $datas = DB::fetch_all("SELECT * FROM %t WHERE %i ORDER BY id DESC LIMIT %d,%d", array($this->_table, $typesql, $start, $limit)); - if($datas) { - foreach($datas as &$data) { - $data['data'] = unserialize($data['data']); - } - return $datas; - } else { - return array(); - } - } - - public function fetch_all($ids, $force_from_db = false) { - $datas = parent::fetch_all($ids, $force_from_db); - if($datas) { - foreach($datas as &$data) { - $data['data'] = unserialize($data['data']); - } - return $datas; - } else { - return array(); - } - } - +_table = 'mobile_wechat_resource'; + $this->_pk = 'id'; + + parent::__construct(); + } + + public function insert($data, $return_insert_id = false, $replace = false, $silent = false) { + if(!is_array($data['data'])) { + return; + } + if(!$data['dateline']) { + $data['dateline'] = TIMESTAMP; + } + $data['data'] = serialize($data['data']); + return parent::insert($data, $return_insert_id, $replace, $silent); + } + + public function update($val, $data, $unbuffered = false, $low_priority = false) { + if(isset($data['data']) && is_array($data['data'])) { + $data['data'] = serialize($data['data']); + } + return parent::update($val, $data, $unbuffered , $low_priority); + } + + public function fetch($id, $force_from_db = false){ + $data = parent::fetch($id, $force_from_db); + if($data) { + $data['data'] = unserialize($data['data']); + return $data; + } else { + return array(); + } + } + + public function count_by_type($type = null) { + $typesql = $type !== null ? "`type`=".intval($type) : 'TRUE'; + return DB::result_first("SELECT COUNT(*) FROM %t WHERE %i", array($this->_table, $typesql)); + } + + public function fetch_by_type($type = null, $start = 0, $limit = 20) { + $typesql = $type !== null ? "`type`=".intval($type) : 'TRUE'; + $datas = DB::fetch_all("SELECT * FROM %t WHERE %i ORDER BY id DESC LIMIT %d,%d", array($this->_table, $typesql, $start, $limit)); + if($datas) { + foreach($datas as &$data) { + $data['data'] = unserialize($data['data']); + } + return $datas; + } else { + return array(); + } + } + + public function fetch_all($ids, $force_from_db = false) { + $datas = parent::fetch_all($ids, $force_from_db); + if($datas) { + foreach($datas as &$data) { + $data['data'] = unserialize($data['data']); + } + return $datas; + } else { + return array(); + } + } + } \ No newline at end of file diff --git a/source/plugin/wechat/template/extend_module.css b/source/plugin/wechat/template/extend_module.css index a0cd3d1..95ca367 100644 --- a/source/plugin/wechat/template/extend_module.css +++ b/source/plugin/wechat/template/extend_module.css @@ -1,3 +1,3 @@ -/** forum::forumdisplay,forum::viewthread,group::forumdisplay,group::viewthread **/ - .mobile-type-5 a { background: url(../../source/plugin/wechat/image/wsq.png) no-repeat 0 0; } +/** forum::forumdisplay,forum::viewthread,group::forumdisplay,group::viewthread **/ + .mobile-type-5 a { background: url(../../source/plugin/wechat/image/wsq.png) no-repeat 0 0; } /** end **/ \ No newline at end of file diff --git a/source/plugin/wechat/template/mobile/common.js b/source/plugin/wechat/template/mobile/common.js index 251744d..2055ea1 100644 --- a/source/plugin/wechat/template/mobile/common.js +++ b/source/plugin/wechat/template/mobile/common.js @@ -1,976 +1,976 @@ -var supporttouch = "ontouchend" in document; -!supporttouch && (window.location.href = 'forum.php?mobile=1'); - -var platform = navigator.platform; -var ua = navigator.userAgent; -var ios = /iPhone|iPad|iPod/.test(platform) && ua.indexOf( "AppleWebKit" ) > -1; -var andriod = ua.indexOf( "Android" ) > -1; - - -(function($, window, document, undefined) { - var dataPropertyName = "virtualMouseBindings", - touchTargetPropertyName = "virtualTouchID", - virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "), - touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ), - mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [], - mouseEventProps = $.event.props.concat( mouseHookProps ), - activeDocHandlers = {}, - resetTimerID = 0, - startX = 0, - startY = 0, - didScroll = false, - clickBlockList = [], - blockMouseTriggers = false, - blockTouchTriggers = false, - eventCaptureSupported = "addEventListener" in document, - $document = $(document), - nextTouchID = 1, - lastTouchID = 0, threshold; - $.vmouse = { - moveDistanceThreshold: 10, - clickDistanceThreshold: 10, - resetTimerDuration: 1500 - }; - function getNativeEvent(event) { - while( event && typeof event.originalEvent !== "undefined" ) { - event = event.originalEvent; - } - return event; - } - function createVirtualEvent(event, eventType) { - var t = event.type, oe, props, ne, prop, ct, touch, i, j, len; - event = $.Event(event); - event.type = eventType; - oe = event.originalEvent; - props = $.event.props; - if(t.search(/^(mouse|click)/) > -1 ) { - props = mouseEventProps; - } - if(oe) { - for(i = props.length, prop; i;) { - prop = props[ --i ]; - event[ prop ] = oe[ prop ]; - } - } - if(t.search(/mouse(down|up)|click/) > -1 && !event.which) { - event.which = 1; - } - if(t.search(/^touch/) !== -1) { - ne = getNativeEvent(oe); - t = ne.touches; - ct = ne.changedTouches; - touch = (t && t.length) ? t[0] : (( ct && ct.length) ? ct[0] : undefined); - if(touch) { - for(j = 0, len = touchEventProps.length; j < len; j++) { - prop = touchEventProps[j]; - event[prop] = touch[prop]; - } - } - } - return event; - } - function getVirtualBindingFlags(element) { - var flags = {}, - b, k; - while(element) { - b = $.data(element, dataPropertyName); - for(k in b) { - if(b[k]) { - flags[k] = flags.hasVirtualBinding = true; - } - } - element = element.parentNode; - } - return flags; - } - function getClosestElementWithVirtualBinding(element, eventType) { - var b; - while(element) { - b = $.data( element, dataPropertyName ); - if(b && (!eventType || b[eventType])) { - return element; - } - element = element.parentNode; - } - return null; - } - function enableTouchBindings() { - blockTouchTriggers = false; - } - function disableTouchBindings() { - blockTouchTriggers = true; - } - function enableMouseBindings() { - lastTouchID = 0; - clickBlockList.length = 0; - blockMouseTriggers = false; - disableTouchBindings(); - } - function disableMouseBindings() { - enableTouchBindings(); - } - function startResetTimer() { - clearResetTimer(); - resetTimerID = setTimeout(function() { - resetTimerID = 0; - enableMouseBindings(); - }, $.vmouse.resetTimerDuration); - } - function clearResetTimer() { - if(resetTimerID ) { - clearTimeout(resetTimerID); - resetTimerID = 0; - } - } - function triggerVirtualEvent(eventType, event, flags) { - var ve; - if((flags && flags[eventType]) || - (!flags && getClosestElementWithVirtualBinding(event.target, eventType))) { - ve = createVirtualEvent(event, eventType); - $(event.target).trigger(ve); - } - return ve; - } - function mouseEventCallback(event) { - var touchID = $.data(event.target, touchTargetPropertyName); - if(!blockMouseTriggers && (!lastTouchID || lastTouchID !== touchID)) { - var ve = triggerVirtualEvent("v" + event.type, event); - if(ve) { - if(ve.isDefaultPrevented()) { - event.preventDefault(); - } - if(ve.isPropagationStopped()) { - event.stopPropagation(); - } - if(ve.isImmediatePropagationStopped()) { - event.stopImmediatePropagation(); - } - } - } - } - function handleTouchStart(event) { - var touches = getNativeEvent(event).touches, - target, flags; - if(touches && touches.length === 1) { - target = event.target; - flags = getVirtualBindingFlags(target); - if(flags.hasVirtualBinding) { - lastTouchID = nextTouchID++; - $.data(target, touchTargetPropertyName, lastTouchID); - clearResetTimer(); - disableMouseBindings(); - didScroll = false; - var t = getNativeEvent(event).touches[0]; - startX = t.pageX; - startY = t.pageY; - triggerVirtualEvent("vmouseover", event, flags); - triggerVirtualEvent("vmousedown", event, flags); - } - } - } - function handleScroll(event) { - if(blockTouchTriggers) { - return; - } - if(!didScroll) { - triggerVirtualEvent("vmousecancel", event, getVirtualBindingFlags(event.target)); - } - didScroll = true; - startResetTimer(); - } - function handleTouchMove(event) { - if(blockTouchTriggers) { - return; - } - var t = getNativeEvent(event).touches[0], - didCancel = didScroll, - moveThreshold = $.vmouse.moveDistanceThreshold, - flags = getVirtualBindingFlags(event.target); - didScroll = didScroll || - (Math.abs(t.pageX - startX) > moveThreshold || - Math.abs(t.pageY - startY) > moveThreshold); - if(didScroll && !didCancel) { - triggerVirtualEvent("vmousecancel", event, flags); - } - triggerVirtualEvent("vmousemove", event, flags); - startResetTimer(); - } - function handleTouchEnd(event) { - if(blockTouchTriggers) { - return; - } - disableTouchBindings(); - var flags = getVirtualBindingFlags(event.target), t; - triggerVirtualEvent("vmouseup", event, flags); - if(!didScroll) { - var ve = triggerVirtualEvent("vclick", event, flags); - if(ve && ve.isDefaultPrevented()) { - t = getNativeEvent(event).changedTouches[0]; - clickBlockList.push({ - touchID: lastTouchID, - x: t.clientX, - y: t.clientY - }); - blockMouseTriggers = true; - } - } - triggerVirtualEvent("vmouseout", event, flags); - didScroll = false; - startResetTimer(); - } - function hasVirtualBindings(ele) { - var bindings = $.data( ele, dataPropertyName ), k; - if(bindings) { - for(k in bindings) { - if(bindings[k]) { - return true; - } - } - } - return false; - } - function dummyMouseHandler() {} - - function getSpecialEventObject(eventType) { - var realType = eventType.substr(1); - return { - setup: function(data, namespace) { - if(!hasVirtualBindings(this)) { - $.data(this, dataPropertyName, {}); - } - var bindings = $.data(this, dataPropertyName); - bindings[eventType] = true; - activeDocHandlers[eventType] = (activeDocHandlers[eventType] || 0) + 1; - if(activeDocHandlers[eventType] === 1) { - $document.bind(realType, mouseEventCallback); - } - $(this).bind(realType, dummyMouseHandler); - if(eventCaptureSupported) { - activeDocHandlers["touchstart"] = (activeDocHandlers["touchstart"] || 0) + 1; - if(activeDocHandlers["touchstart"] === 1) { - $document.bind("touchstart", handleTouchStart) - .bind("touchend", handleTouchEnd) - .bind("touchmove", handleTouchMove) - .bind("scroll", handleScroll); - } - } - }, - teardown: function(data, namespace) { - --activeDocHandlers[eventType]; - if(!activeDocHandlers[eventType]) { - $document.unbind(realType, mouseEventCallback); - } - if(eventCaptureSupported) { - --activeDocHandlers["touchstart"]; - if(!activeDocHandlers["touchstart"]) { - $document.unbind("touchstart", handleTouchStart) - .unbind("touchmove", handleTouchMove) - .unbind("touchend", handleTouchEnd) - .unbind("scroll", handleScroll); - } - } - var $this = $(this), - bindings = $.data(this, dataPropertyName); - if(bindings) { - bindings[eventType] = false; - } - $this.unbind(realType, dummyMouseHandler); - if(!hasVirtualBindings(this)) { - $this.removeData(dataPropertyName); - } - } - }; - } - for(var i = 0; i < virtualEventNames.length; i++) { - $.event.special[virtualEventNames[i]] = getSpecialEventObject(virtualEventNames[i]); - } - if(eventCaptureSupported) { - document.addEventListener("click", function(e) { - var cnt = clickBlockList.length, - target = e.target, - x, y, ele, i, o, touchID; - if(cnt) { - x = e.clientX; - y = e.clientY; - threshold = $.vmouse.clickDistanceThreshold; - ele = target; - while(ele) { - for(i = 0; i < cnt; i++) { - o = clickBlockList[i]; - touchID = 0; - if((ele === target && Math.abs(o.x - x) < threshold && Math.abs(o.y - y) < threshold) || - $.data(ele, touchTargetPropertyName) === o.touchID) { - e.preventDefault(); - e.stopPropagation(); - return; - } - } - ele = ele.parentNode; - } - } - }, true); - } -})(jQuery, window, document); - -(function($, window, undefined) { - function triggercustomevent(obj, eventtype, event) { - var origtype = event.type; - event.type = eventtype; - $.event.handle.call(obj, event); - event.type = origtype; - } - - $.event.special.tap = { - setup : function() { - var thisobj = this; - var obj = $(thisobj); - obj.on('vmousedown', function(e) { - if(e.which && e.which !== 1) { - return false; - } - var origtarget = e.target; - var origevent = e.originalEvent; - var timer; - - function cleartaptimer() { - clearTimeout(timer); - } - function cleartaphandlers() { - cleartaptimer(); - obj.off('vclick', clickhandler) - .off('vmouseup', cleartaptimer); - $(document).off('vmousecancel', cleartaphandlers); - } - - function clickhandler(e) { - cleartaphandlers(); - if(origtarget === e.target) { - triggercustomevent(thisobj, 'tap', e); - } - return false; - } - - obj.on('vmouseup', cleartaptimer) - .on('vclick', clickhandler) - $(document).on('touchcancel', cleartaphandlers); - - timer = setTimeout(function() { - triggercustomevent(thisobj, 'taphold', $.Event('taphold', {target:origtarget})); - }, 750); - return false; - }); - } - }; - $.each(('tap').split(' '), function(index, name) { - $.fn[name] = function(fn) { - return this.on(name, fn); - }; - }); - -})(jQuery, this); - -var page = { - converthtml : function() { - var prevpage = $('div.pg .prev').prop('href'); - var nextpage = $('div.pg .nxt').prop('href'); - var lastpage = $('div.pg label span').text().replace(/[^\d]/g, '') || 0; - var curpage = $('div.pg input').val() || 1; - - if(!lastpage) { - prevpage = $('div.pg .pgb a').prop('href'); - } - - var prevpagehref = nextpagehref = ''; - if(prevpage == undefined) { - prevpagehref = 'javascript:;" class="grey'; - } else { - prevpagehref = prevpage; - } - if(nextpage == undefined) { - nextpagehref = 'javascript:;" class="grey'; - } else { - nextpagehref = nextpage; - } - - var selector = ''; - if(lastpage) { - selector += ''; - selector += ''; - selector += '第'+curpage+'页'; - } - - $('div.pg').removeClass('pg').addClass('page').html('上一页'+ selector +'下一页'); - $('#dumppage').on('change', function() { - var href = (prevpage || nextpage); - window.location.href = href.replace(/page=\d+/, 'page=' + $(this).val()); - }); - }, -}; - -var scrolltop = { - obj : null, - init : function(obj) { - scrolltop.obj = obj; - var fixed = this.isfixed(); - obj.css('opacity', '.618'); - if(fixed) { - obj.css('bottom', '8px'); - } else { - obj.css({'visibility':'visible', 'position':'absolute'}); - } - $(window).on('resize', function() { - if(fixed) { - obj.css('bottom', '8px'); - } else { - obj.css('top', ($(document).scrollTop() + $(window).height() - 40) + 'px'); - } - }); - obj.on('tap', function() { - $(document).scrollTop($(document).height()); - }); - $(document).on('scroll', function() { - if(!fixed) { - obj.css('top', ($(document).scrollTop() + $(window).height() - 40) + 'px'); - } - if($(document).scrollTop() >= 400) { - obj.removeClass('bottom') - .off().on('tap', function() { - window.scrollTo('0', '1'); - }); - } else { - obj.addClass('bottom') - .off().on('tap', function() { - $(document).scrollTop($(document).height()); - }); - } - }); - - }, - isfixed : function() { - var offset = scrolltop.obj.offset(); - var scrollTop = $(window).scrollTop(); - var screenHeight = document.documentElement.clientHeight; - if(offset == undefined) { - return false; - } - if(offset.top < scrollTop || (offset.top - scrollTop) > screenHeight) { - return false; - } else { - return true; - } - } -}; - -var img = { - init : function(is_err_t) { - var errhandle = this.errorhandle; - $('img').on('load', function() { - var obj = $(this); - obj.attr('zsrc', obj.attr('src')); - if(obj.width() < 5 && obj.height() < 10 && obj.css('display') != 'none') { - return errhandle(obj, is_err_t); - } - obj.css('display', 'inline'); - obj.css('visibility', 'visible'); - if(obj.width() > window.innerWidth) { - obj.css('width', window.innerWidth); - } - obj.parent().find('.loading').remove(); - obj.parent().find('.error_text').remove(); - }) - .on('error', function() { - var obj = $(this); - obj.attr('zsrc', obj.attr('src')); - errhandle(obj, is_err_t); - }); - }, - errorhandle : function(obj, is_err_t) { - if(obj.attr('noerror') == 'true') { - return; - } - obj.css('visibility', 'hidden'); - obj.css('display', 'none'); - var parentnode = obj.parent(); - parentnode.find('.loading').remove(); - parentnode.append('
    '); - var loadnums = parseInt(obj.attr('load')) || 0; - if(loadnums < 3) { - obj.attr('src', obj.attr('zsrc')); - obj.attr('load', ++loadnums); - return false; - } - if(is_err_t) { - var parentnode = obj.parent(); - parentnode.find('.loading').remove(); - parentnode.append('
    点击重新加载
    '); - parentnode.find('.error_text').one('click', function() { - obj.attr('load', 0).find('.error_text').remove(); - parentnode.append('
    '); - obj.attr('src', obj.attr('zsrc')); - }); - } - return false; - } -}; - -var atap = { - init : function() { - $('.atap').on('tap', function() { - var obj = $(this); - obj.css({'background':'#6FACD5', 'color':'#FFFFFF', 'font-weight':'bold', 'text-decoration':'none', 'text-shadow':'0 1px 1px #3373A5'}); - return false; - }); - $('.atap a').off('click'); - } -}; - - -var POPMENU = new Object; -var popup = { - init : function() { - var $this = this; - $('.popup').each(function(index, obj) { - obj = $(obj); - var pop = $(obj.attr('href')); - if(pop && pop.attr('popup')) { - pop.css({'display':'none'}); - obj.on('click', function(e) { - $this.open(pop); - }); - } - }); - this.maskinit(); - }, - maskinit : function() { - var $this = this; - $('#mask').off().on('tap', function() { - $this.close(); - }); - }, - - open : function(pop, type, url) { - this.close(); - this.maskinit(); - if(typeof pop == 'string') { - $('#ntcmsg').remove(); - if(type == 'alert') { - pop = '
    '+ pop +'
    ' - } else if(type == 'confirm') { - pop = '
    '+ pop +'
    取消
    ' - } - $('body').append(''); - pop = $('#ntcmsg'); - } - if(POPMENU[pop.attr('id')]) { - $('#' + pop.attr('id') + '_popmenu').html(pop.html()).css({'height':pop.height()+'px', 'width':pop.width()+'px'}); - } else { - pop.parent().append('
    '+ pop.html() +'
    '); - } - var popupobj = $('#' + pop.attr('id') + '_popmenu'); - var left = (window.innerWidth - popupobj.width()) / 2; - var top = (document.documentElement.clientHeight - popupobj.height()) / 2; - popupobj.css({'display':'block','position':'fixed','left':left,'top':top,'z-index':120,'opacity':1}); - $('#mask').css({'display':'block','width':'100%','height':'100%','position':'fixed','top':'0','left':'0','background':'black','opacity':'0.2','z-index':'100'}); - POPMENU[pop.attr('id')] = pop; - }, - close : function() { - $('#mask').css('display', 'none'); - $.each(POPMENU, function(index, obj) { - $('#' + index + '_popmenu').css('display','none'); - }); - } -}; - -var dialog = { - init : function() { - $(document).on('click', '.dialog', function() { - var obj = $(this); - popup.open('请稍后 ...'); - $.ajax({ - type : 'GET', - url : obj.attr('href') + '&inajax=1', - dataType : 'xml' - }) - .success(function(s) { - popup.open(s.lastChild.firstChild.nodeValue); - evalscript(s.lastChild.firstChild.nodeValue); - }) - .error(function() { - window.location.href = obj.attr('href'); - popup.close(); - }); - return false; - }); - }, - -}; - -var formdialog = { - init : function() { - $(document).on('click', '.formdialog', function() { - popup.open('请稍后 ...'); - var obj = $(this); - var formobj = $(this.form); - $.ajax({ - type:'POST', - url:formobj.attr('action') + '&handlekey='+ formobj.attr('id') +'&inajax=1', - data:formobj.serialize(), - dataType:'xml' - }) - .success(function(s) { - popup.open(s.lastChild.firstChild.nodeValue); - evalscript(s.lastChild.firstChild.nodeValue); - }) - .error(function() { - window.location.href = obj.attr('href'); - popup.close(); - }); - return false; - }); - } -}; - -var redirect = { - init : function() { - $(document).on('click', '.redirect', function() { - var obj = $(this); - popup.close(); - window.location.href = obj.attr('href'); - }); - } -}; - -var DISMENU = new Object; -var display = { - init : function() { - var $this = this; - $('.display').each(function(index, obj) { - obj = $(obj); - var dis = $(obj.attr('href')); - if(dis && dis.attr('display')) { - dis.css({'display':'none'}); - dis.css({'z-index':'102'}); - DISMENU[dis.attr('id')] = dis; - obj.on('click', function(e) { - if(in_array(e.target.tagName, ['A', 'IMG', 'INPUT'])) return; - $this.maskinit(); - if(dis.attr('display') == 'true') { - dis.css('display', 'block'); - dis.attr('display', 'false'); - $('#mask').css({'display':'block','width':'100%','height':'100%','position':'fixed','top':'0','left':'0','background':'transparent','z-index':'100'}); - } - return false; - }); - } - }); - }, - maskinit : function() { - var $this = this; - $('#mask').off().on('touchstart', function() { - $this.hide(); - }); - }, - hide : function() { - $('#mask').css('display', 'none'); - $.each(DISMENU, function(index, obj) { - obj.css('display', 'none'); - obj.attr('display', 'true'); - }); - } -}; - -var geo = { - latitude : null, - longitude : null, - loc : null, - errmsg : null, - timeout : 5000, - getcurrentposition : function() { - if(!!navigator.geolocation) { - navigator.geolocation.getCurrentPosition(this.locationsuccess, this.locationerror, { - enableHighAcuracy : true, - timeout : this.timeout, - maximumAge : 3000 - }); - } - }, - locationerror : function(error) { - geo.errmsg = 'error'; - switch(error.code) { - case error.TIMEOUT: - geo.errmsg = "获取位置超时,请重试"; - break; - case error.POSITION_UNAVAILABLE: - geo.errmsg = '无法检测到您的当前位置'; - break; - case error.PERMISSION_DENIED: - geo.errmsg = '请允许能够正常访问您的当前位置'; - break; - case error.UNKNOWN_ERROR: - geo.errmsg = '发生未知错误'; - break; - } - }, - locationsuccess : function(position) { - geo.latitude = position.coords.latitude; - geo.longitude = position.coords.longitude; - geo.errmsg = ''; - $.ajax({ - type:'POST', - url:'http://maps.google.com/maps/api/geocode/json?latlng=' + geo.latitude + ',' + geo.longitude + '&language=zh-CN&sensor=true', - dataType:'json' - }) - .success(function(s) { - if(s.status == 'OK') { - geo.loc = s.results[0].formatted_address; - } - }) - .error(function() { - geo.loc = null; - }); - } -}; - -var pullrefresh = { - init : function() { - var pos = {}; - var status = false; - var divobj = null; - var contentobj = null; - var reloadflag = false; - $('body').on('touchstart', function(e) { - e = mygetnativeevent(e); - pos.startx = e.touches[0].pageX; - pos.starty = e.touches[0].pageY; - }) - .on('touchmove', function(e) { - e = mygetnativeevent(e); - pos.curposx = e.touches[0].pageX; - pos.curposy = e.touches[0].pageY; - if(pos.curposy - pos.starty < 0 && !status) { - return; - } - if(!status && $(window).scrollTop() <= 0) { - status = true; - divobj = document.createElement('div'); - divobj = $(divobj); - divobj.css({'position':'relative', 'margin-left':'-85px'}); - $('body').prepend(divobj); - contentobj = document.createElement('div'); - contentobj = $(contentobj); - contentobj.css({'position':'absolute', 'height':'30px', 'top': '-30px', 'left':'50%'}); - contentobj.html('下拉可以刷新'); - contentobj.find('img').css({'-webkit-transition':'all 0.5s ease-in-out'}); - divobj.prepend(contentobj); - pos.topx = pos.curposx; - pos.topy = pos.curposy; - } - if(!status) { - return; - } - if(status == true) { - var pullheight = pos.curposy - pos.topy; - if(pullheight >= 0 && pullheight < 150) { - divobj.css({'height': pullheight/2 + 'px'}); - contentobj.css({'top': (-30 + pullheight/2) + 'px'}); - if(reloadflag) { - contentobj.find('img').css({'-webkit-transform':'rotate(180deg)', '-moz-transform':'rotate(180deg)', '-o-transform':'rotate(180deg)', 'transform':'rotate(180deg)'}); - contentobj.find('#refreshtxt').html('下拉可以刷新'); - } - reloadflag = false; - } else if(pullheight >= 150) { - divobj.css({'height':pullheight/2 + 'px'}); - contentobj.css({'top': (-30 + pullheight/2) + 'px'}); - if(!reloadflag) { - contentobj.find('img').css({'-webkit-transform':'rotate(360deg)', '-moz-transform':'rotate(360deg)', '-o-transform':'rotate(360deg)', 'transform':'rotate(360deg)'}); - contentobj.find('#refreshtxt').html('松开可以刷新'); - } - reloadflag = true; - } - } - e.preventDefault(); - }) - .on('touchend', function(e) { - if(status == true) { - if(reloadflag) { - contentobj.html('正在加载...'); - contentobj.animate({'top': (-30 + 75) + 'px'}, 618, 'linear'); - divobj.animate({'height': '75px'}, 618, 'linear', function() { - window.location.reload(); - }); - return; - } - } - divobj.remove(); - divobj = null; - status = false; - pos = {}; - }); - } -}; - -function mygetnativeevent(event) { - - while(event && typeof event.originalEvent !== "undefined") { - event = event.originalEvent; - } - return event; -} - -function evalscript(s) { - if(s.indexOf(']*?>([^\x00]*?)<\/script>/ig; - var arr = []; - while(arr = p.exec(s)) { - var p1 = /]*?src=\"([^\>]*?)\"[^\>]*?(reload=\"1\")?(?:charset=\"([\w\-]+?)\")?><\/script>/i; - var arr1 = []; - arr1 = p1.exec(arr[0]); - if(arr1) { - appendscript(arr1[1], '', arr1[2], arr1[3]); - } else { - p1 = /([^\x00]+?)<\/script>/i; - arr1 = p1.exec(arr[0]); - appendscript('', arr1[2], arr1[1].indexOf('reload=') != -1); - } - } - return s; -} - -var safescripts = {}, evalscripts = []; - -function appendscript(src, text, reload, charset) { - var id = hash(src + text); - if(!reload && in_array(id, evalscripts)) return; - if(reload && $('#' + id)[0]) { - $('#' + id)[0].parentNode.removeChild($('#' + id)[0]); - } - - evalscripts.push(id); - var scriptNode = document.createElement("script"); - scriptNode.type = "text/javascript"; - scriptNode.id = id; - scriptNode.charset = charset ? charset : (!document.charset ? document.characterSet : document.charset); - try { - if(src) { - scriptNode.src = src; - scriptNode.onloadDone = false; - scriptNode.onload = function () { - scriptNode.onloadDone = true; - JSLOADED[src] = 1; - }; - scriptNode.onreadystatechange = function () { - if((scriptNode.readyState == 'loaded' || scriptNode.readyState == 'complete') && !scriptNode.onloadDone) { - scriptNode.onloadDone = true; - JSLOADED[src] = 1; - } - }; - } else if(text){ - scriptNode.text = text; - } - document.getElementsByTagName('head')[0].appendChild(scriptNode); - } catch(e) {} -} - -function hash(string, length) { - var length = length ? length : 32; - var start = 0; - var i = 0; - var result = ''; - filllen = length - string.length % length; - for(i = 0; i < filllen; i++){ - string += "0"; - } - while(start < string.length) { - result = stringxor(result, string.substr(start, length)); - start += length; - } - return result; -} - -function stringxor(s1, s2) { - var s = ''; - var hash = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; - var max = Math.max(s1.length, s2.length); - for(var i=0; i cookie_start ? cookie_end : document.cookie.length)); - return !nounescape ? unescape(v) : v; - } -} - -$(document).ready(function() { - - if($('div.pg').length > 0) { - page.converthtml(); - } - if($('.scrolltop').length > 0) { - scrolltop.init($('.scrolltop')); - } - if($('img').length > 0) { - img.init(1); - } - if($('.popup').length > 0) { - popup.init(); - } - if($('.display').length > 0) { - display.init(); - } - if($('.atap').length > 0) { - atap.init(); - } - if($('.pullrefresh').length > 0) { - pullrefresh.init(); - } - dialog.init(); - formdialog.init(); - redirect.init(); +var supporttouch = "ontouchend" in document; +!supporttouch && (window.location.href = 'forum.php?mobile=1'); + +var platform = navigator.platform; +var ua = navigator.userAgent; +var ios = /iPhone|iPad|iPod/.test(platform) && ua.indexOf( "AppleWebKit" ) > -1; +var andriod = ua.indexOf( "Android" ) > -1; + + +(function($, window, document, undefined) { + var dataPropertyName = "virtualMouseBindings", + touchTargetPropertyName = "virtualTouchID", + virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "), + touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ), + mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [], + mouseEventProps = $.event.props.concat( mouseHookProps ), + activeDocHandlers = {}, + resetTimerID = 0, + startX = 0, + startY = 0, + didScroll = false, + clickBlockList = [], + blockMouseTriggers = false, + blockTouchTriggers = false, + eventCaptureSupported = "addEventListener" in document, + $document = $(document), + nextTouchID = 1, + lastTouchID = 0, threshold; + $.vmouse = { + moveDistanceThreshold: 10, + clickDistanceThreshold: 10, + resetTimerDuration: 1500 + }; + function getNativeEvent(event) { + while( event && typeof event.originalEvent !== "undefined" ) { + event = event.originalEvent; + } + return event; + } + function createVirtualEvent(event, eventType) { + var t = event.type, oe, props, ne, prop, ct, touch, i, j, len; + event = $.Event(event); + event.type = eventType; + oe = event.originalEvent; + props = $.event.props; + if(t.search(/^(mouse|click)/) > -1 ) { + props = mouseEventProps; + } + if(oe) { + for(i = props.length, prop; i;) { + prop = props[ --i ]; + event[ prop ] = oe[ prop ]; + } + } + if(t.search(/mouse(down|up)|click/) > -1 && !event.which) { + event.which = 1; + } + if(t.search(/^touch/) !== -1) { + ne = getNativeEvent(oe); + t = ne.touches; + ct = ne.changedTouches; + touch = (t && t.length) ? t[0] : (( ct && ct.length) ? ct[0] : undefined); + if(touch) { + for(j = 0, len = touchEventProps.length; j < len; j++) { + prop = touchEventProps[j]; + event[prop] = touch[prop]; + } + } + } + return event; + } + function getVirtualBindingFlags(element) { + var flags = {}, + b, k; + while(element) { + b = $.data(element, dataPropertyName); + for(k in b) { + if(b[k]) { + flags[k] = flags.hasVirtualBinding = true; + } + } + element = element.parentNode; + } + return flags; + } + function getClosestElementWithVirtualBinding(element, eventType) { + var b; + while(element) { + b = $.data( element, dataPropertyName ); + if(b && (!eventType || b[eventType])) { + return element; + } + element = element.parentNode; + } + return null; + } + function enableTouchBindings() { + blockTouchTriggers = false; + } + function disableTouchBindings() { + blockTouchTriggers = true; + } + function enableMouseBindings() { + lastTouchID = 0; + clickBlockList.length = 0; + blockMouseTriggers = false; + disableTouchBindings(); + } + function disableMouseBindings() { + enableTouchBindings(); + } + function startResetTimer() { + clearResetTimer(); + resetTimerID = setTimeout(function() { + resetTimerID = 0; + enableMouseBindings(); + }, $.vmouse.resetTimerDuration); + } + function clearResetTimer() { + if(resetTimerID ) { + clearTimeout(resetTimerID); + resetTimerID = 0; + } + } + function triggerVirtualEvent(eventType, event, flags) { + var ve; + if((flags && flags[eventType]) || + (!flags && getClosestElementWithVirtualBinding(event.target, eventType))) { + ve = createVirtualEvent(event, eventType); + $(event.target).trigger(ve); + } + return ve; + } + function mouseEventCallback(event) { + var touchID = $.data(event.target, touchTargetPropertyName); + if(!blockMouseTriggers && (!lastTouchID || lastTouchID !== touchID)) { + var ve = triggerVirtualEvent("v" + event.type, event); + if(ve) { + if(ve.isDefaultPrevented()) { + event.preventDefault(); + } + if(ve.isPropagationStopped()) { + event.stopPropagation(); + } + if(ve.isImmediatePropagationStopped()) { + event.stopImmediatePropagation(); + } + } + } + } + function handleTouchStart(event) { + var touches = getNativeEvent(event).touches, + target, flags; + if(touches && touches.length === 1) { + target = event.target; + flags = getVirtualBindingFlags(target); + if(flags.hasVirtualBinding) { + lastTouchID = nextTouchID++; + $.data(target, touchTargetPropertyName, lastTouchID); + clearResetTimer(); + disableMouseBindings(); + didScroll = false; + var t = getNativeEvent(event).touches[0]; + startX = t.pageX; + startY = t.pageY; + triggerVirtualEvent("vmouseover", event, flags); + triggerVirtualEvent("vmousedown", event, flags); + } + } + } + function handleScroll(event) { + if(blockTouchTriggers) { + return; + } + if(!didScroll) { + triggerVirtualEvent("vmousecancel", event, getVirtualBindingFlags(event.target)); + } + didScroll = true; + startResetTimer(); + } + function handleTouchMove(event) { + if(blockTouchTriggers) { + return; + } + var t = getNativeEvent(event).touches[0], + didCancel = didScroll, + moveThreshold = $.vmouse.moveDistanceThreshold, + flags = getVirtualBindingFlags(event.target); + didScroll = didScroll || + (Math.abs(t.pageX - startX) > moveThreshold || + Math.abs(t.pageY - startY) > moveThreshold); + if(didScroll && !didCancel) { + triggerVirtualEvent("vmousecancel", event, flags); + } + triggerVirtualEvent("vmousemove", event, flags); + startResetTimer(); + } + function handleTouchEnd(event) { + if(blockTouchTriggers) { + return; + } + disableTouchBindings(); + var flags = getVirtualBindingFlags(event.target), t; + triggerVirtualEvent("vmouseup", event, flags); + if(!didScroll) { + var ve = triggerVirtualEvent("vclick", event, flags); + if(ve && ve.isDefaultPrevented()) { + t = getNativeEvent(event).changedTouches[0]; + clickBlockList.push({ + touchID: lastTouchID, + x: t.clientX, + y: t.clientY + }); + blockMouseTriggers = true; + } + } + triggerVirtualEvent("vmouseout", event, flags); + didScroll = false; + startResetTimer(); + } + function hasVirtualBindings(ele) { + var bindings = $.data( ele, dataPropertyName ), k; + if(bindings) { + for(k in bindings) { + if(bindings[k]) { + return true; + } + } + } + return false; + } + function dummyMouseHandler() {} + + function getSpecialEventObject(eventType) { + var realType = eventType.substr(1); + return { + setup: function(data, namespace) { + if(!hasVirtualBindings(this)) { + $.data(this, dataPropertyName, {}); + } + var bindings = $.data(this, dataPropertyName); + bindings[eventType] = true; + activeDocHandlers[eventType] = (activeDocHandlers[eventType] || 0) + 1; + if(activeDocHandlers[eventType] === 1) { + $document.bind(realType, mouseEventCallback); + } + $(this).bind(realType, dummyMouseHandler); + if(eventCaptureSupported) { + activeDocHandlers["touchstart"] = (activeDocHandlers["touchstart"] || 0) + 1; + if(activeDocHandlers["touchstart"] === 1) { + $document.bind("touchstart", handleTouchStart) + .bind("touchend", handleTouchEnd) + .bind("touchmove", handleTouchMove) + .bind("scroll", handleScroll); + } + } + }, + teardown: function(data, namespace) { + --activeDocHandlers[eventType]; + if(!activeDocHandlers[eventType]) { + $document.unbind(realType, mouseEventCallback); + } + if(eventCaptureSupported) { + --activeDocHandlers["touchstart"]; + if(!activeDocHandlers["touchstart"]) { + $document.unbind("touchstart", handleTouchStart) + .unbind("touchmove", handleTouchMove) + .unbind("touchend", handleTouchEnd) + .unbind("scroll", handleScroll); + } + } + var $this = $(this), + bindings = $.data(this, dataPropertyName); + if(bindings) { + bindings[eventType] = false; + } + $this.unbind(realType, dummyMouseHandler); + if(!hasVirtualBindings(this)) { + $this.removeData(dataPropertyName); + } + } + }; + } + for(var i = 0; i < virtualEventNames.length; i++) { + $.event.special[virtualEventNames[i]] = getSpecialEventObject(virtualEventNames[i]); + } + if(eventCaptureSupported) { + document.addEventListener("click", function(e) { + var cnt = clickBlockList.length, + target = e.target, + x, y, ele, i, o, touchID; + if(cnt) { + x = e.clientX; + y = e.clientY; + threshold = $.vmouse.clickDistanceThreshold; + ele = target; + while(ele) { + for(i = 0; i < cnt; i++) { + o = clickBlockList[i]; + touchID = 0; + if((ele === target && Math.abs(o.x - x) < threshold && Math.abs(o.y - y) < threshold) || + $.data(ele, touchTargetPropertyName) === o.touchID) { + e.preventDefault(); + e.stopPropagation(); + return; + } + } + ele = ele.parentNode; + } + } + }, true); + } +})(jQuery, window, document); + +(function($, window, undefined) { + function triggercustomevent(obj, eventtype, event) { + var origtype = event.type; + event.type = eventtype; + $.event.handle.call(obj, event); + event.type = origtype; + } + + $.event.special.tap = { + setup : function() { + var thisobj = this; + var obj = $(thisobj); + obj.on('vmousedown', function(e) { + if(e.which && e.which !== 1) { + return false; + } + var origtarget = e.target; + var origevent = e.originalEvent; + var timer; + + function cleartaptimer() { + clearTimeout(timer); + } + function cleartaphandlers() { + cleartaptimer(); + obj.off('vclick', clickhandler) + .off('vmouseup', cleartaptimer); + $(document).off('vmousecancel', cleartaphandlers); + } + + function clickhandler(e) { + cleartaphandlers(); + if(origtarget === e.target) { + triggercustomevent(thisobj, 'tap', e); + } + return false; + } + + obj.on('vmouseup', cleartaptimer) + .on('vclick', clickhandler) + $(document).on('touchcancel', cleartaphandlers); + + timer = setTimeout(function() { + triggercustomevent(thisobj, 'taphold', $.Event('taphold', {target:origtarget})); + }, 750); + return false; + }); + } + }; + $.each(('tap').split(' '), function(index, name) { + $.fn[name] = function(fn) { + return this.on(name, fn); + }; + }); + +})(jQuery, this); + +var page = { + converthtml : function() { + var prevpage = $('div.pg .prev').prop('href'); + var nextpage = $('div.pg .nxt').prop('href'); + var lastpage = $('div.pg label span').text().replace(/[^\d]/g, '') || 0; + var curpage = $('div.pg input').val() || 1; + + if(!lastpage) { + prevpage = $('div.pg .pgb a').prop('href'); + } + + var prevpagehref = nextpagehref = ''; + if(prevpage == undefined) { + prevpagehref = 'javascript:;" class="grey'; + } else { + prevpagehref = prevpage; + } + if(nextpage == undefined) { + nextpagehref = 'javascript:;" class="grey'; + } else { + nextpagehref = nextpage; + } + + var selector = ''; + if(lastpage) { + selector += ''; + selector += ''; + selector += '第'+curpage+'页'; + } + + $('div.pg').removeClass('pg').addClass('page').html('上一页'+ selector +'下一页'); + $('#dumppage').on('change', function() { + var href = (prevpage || nextpage); + window.location.href = href.replace(/page=\d+/, 'page=' + $(this).val()); + }); + }, +}; + +var scrolltop = { + obj : null, + init : function(obj) { + scrolltop.obj = obj; + var fixed = this.isfixed(); + obj.css('opacity', '.618'); + if(fixed) { + obj.css('bottom', '8px'); + } else { + obj.css({'visibility':'visible', 'position':'absolute'}); + } + $(window).on('resize', function() { + if(fixed) { + obj.css('bottom', '8px'); + } else { + obj.css('top', ($(document).scrollTop() + $(window).height() - 40) + 'px'); + } + }); + obj.on('tap', function() { + $(document).scrollTop($(document).height()); + }); + $(document).on('scroll', function() { + if(!fixed) { + obj.css('top', ($(document).scrollTop() + $(window).height() - 40) + 'px'); + } + if($(document).scrollTop() >= 400) { + obj.removeClass('bottom') + .off().on('tap', function() { + window.scrollTo('0', '1'); + }); + } else { + obj.addClass('bottom') + .off().on('tap', function() { + $(document).scrollTop($(document).height()); + }); + } + }); + + }, + isfixed : function() { + var offset = scrolltop.obj.offset(); + var scrollTop = $(window).scrollTop(); + var screenHeight = document.documentElement.clientHeight; + if(offset == undefined) { + return false; + } + if(offset.top < scrollTop || (offset.top - scrollTop) > screenHeight) { + return false; + } else { + return true; + } + } +}; + +var img = { + init : function(is_err_t) { + var errhandle = this.errorhandle; + $('img').on('load', function() { + var obj = $(this); + obj.attr('zsrc', obj.attr('src')); + if(obj.width() < 5 && obj.height() < 10 && obj.css('display') != 'none') { + return errhandle(obj, is_err_t); + } + obj.css('display', 'inline'); + obj.css('visibility', 'visible'); + if(obj.width() > window.innerWidth) { + obj.css('width', window.innerWidth); + } + obj.parent().find('.loading').remove(); + obj.parent().find('.error_text').remove(); + }) + .on('error', function() { + var obj = $(this); + obj.attr('zsrc', obj.attr('src')); + errhandle(obj, is_err_t); + }); + }, + errorhandle : function(obj, is_err_t) { + if(obj.attr('noerror') == 'true') { + return; + } + obj.css('visibility', 'hidden'); + obj.css('display', 'none'); + var parentnode = obj.parent(); + parentnode.find('.loading').remove(); + parentnode.append('
    '); + var loadnums = parseInt(obj.attr('load')) || 0; + if(loadnums < 3) { + obj.attr('src', obj.attr('zsrc')); + obj.attr('load', ++loadnums); + return false; + } + if(is_err_t) { + var parentnode = obj.parent(); + parentnode.find('.loading').remove(); + parentnode.append('
    点击重新加载
    '); + parentnode.find('.error_text').one('click', function() { + obj.attr('load', 0).find('.error_text').remove(); + parentnode.append('
    '); + obj.attr('src', obj.attr('zsrc')); + }); + } + return false; + } +}; + +var atap = { + init : function() { + $('.atap').on('tap', function() { + var obj = $(this); + obj.css({'background':'#6FACD5', 'color':'#FFFFFF', 'font-weight':'bold', 'text-decoration':'none', 'text-shadow':'0 1px 1px #3373A5'}); + return false; + }); + $('.atap a').off('click'); + } +}; + + +var POPMENU = new Object; +var popup = { + init : function() { + var $this = this; + $('.popup').each(function(index, obj) { + obj = $(obj); + var pop = $(obj.attr('href')); + if(pop && pop.attr('popup')) { + pop.css({'display':'none'}); + obj.on('click', function(e) { + $this.open(pop); + }); + } + }); + this.maskinit(); + }, + maskinit : function() { + var $this = this; + $('#mask').off().on('tap', function() { + $this.close(); + }); + }, + + open : function(pop, type, url) { + this.close(); + this.maskinit(); + if(typeof pop == 'string') { + $('#ntcmsg').remove(); + if(type == 'alert') { + pop = '
    '+ pop +'
    ' + } else if(type == 'confirm') { + pop = '
    '+ pop +'
    取消
    ' + } + $('body').append(''); + pop = $('#ntcmsg'); + } + if(POPMENU[pop.attr('id')]) { + $('#' + pop.attr('id') + '_popmenu').html(pop.html()).css({'height':pop.height()+'px', 'width':pop.width()+'px'}); + } else { + pop.parent().append('
    '+ pop.html() +'
    '); + } + var popupobj = $('#' + pop.attr('id') + '_popmenu'); + var left = (window.innerWidth - popupobj.width()) / 2; + var top = (document.documentElement.clientHeight - popupobj.height()) / 2; + popupobj.css({'display':'block','position':'fixed','left':left,'top':top,'z-index':120,'opacity':1}); + $('#mask').css({'display':'block','width':'100%','height':'100%','position':'fixed','top':'0','left':'0','background':'black','opacity':'0.2','z-index':'100'}); + POPMENU[pop.attr('id')] = pop; + }, + close : function() { + $('#mask').css('display', 'none'); + $.each(POPMENU, function(index, obj) { + $('#' + index + '_popmenu').css('display','none'); + }); + } +}; + +var dialog = { + init : function() { + $(document).on('click', '.dialog', function() { + var obj = $(this); + popup.open('请稍后 ...'); + $.ajax({ + type : 'GET', + url : obj.attr('href') + '&inajax=1', + dataType : 'xml' + }) + .success(function(s) { + popup.open(s.lastChild.firstChild.nodeValue); + evalscript(s.lastChild.firstChild.nodeValue); + }) + .error(function() { + window.location.href = obj.attr('href'); + popup.close(); + }); + return false; + }); + }, + +}; + +var formdialog = { + init : function() { + $(document).on('click', '.formdialog', function() { + popup.open('请稍后 ...'); + var obj = $(this); + var formobj = $(this.form); + $.ajax({ + type:'POST', + url:formobj.attr('action') + '&handlekey='+ formobj.attr('id') +'&inajax=1', + data:formobj.serialize(), + dataType:'xml' + }) + .success(function(s) { + popup.open(s.lastChild.firstChild.nodeValue); + evalscript(s.lastChild.firstChild.nodeValue); + }) + .error(function() { + window.location.href = obj.attr('href'); + popup.close(); + }); + return false; + }); + } +}; + +var redirect = { + init : function() { + $(document).on('click', '.redirect', function() { + var obj = $(this); + popup.close(); + window.location.href = obj.attr('href'); + }); + } +}; + +var DISMENU = new Object; +var display = { + init : function() { + var $this = this; + $('.display').each(function(index, obj) { + obj = $(obj); + var dis = $(obj.attr('href')); + if(dis && dis.attr('display')) { + dis.css({'display':'none'}); + dis.css({'z-index':'102'}); + DISMENU[dis.attr('id')] = dis; + obj.on('click', function(e) { + if(in_array(e.target.tagName, ['A', 'IMG', 'INPUT'])) return; + $this.maskinit(); + if(dis.attr('display') == 'true') { + dis.css('display', 'block'); + dis.attr('display', 'false'); + $('#mask').css({'display':'block','width':'100%','height':'100%','position':'fixed','top':'0','left':'0','background':'transparent','z-index':'100'}); + } + return false; + }); + } + }); + }, + maskinit : function() { + var $this = this; + $('#mask').off().on('touchstart', function() { + $this.hide(); + }); + }, + hide : function() { + $('#mask').css('display', 'none'); + $.each(DISMENU, function(index, obj) { + obj.css('display', 'none'); + obj.attr('display', 'true'); + }); + } +}; + +var geo = { + latitude : null, + longitude : null, + loc : null, + errmsg : null, + timeout : 5000, + getcurrentposition : function() { + if(!!navigator.geolocation) { + navigator.geolocation.getCurrentPosition(this.locationsuccess, this.locationerror, { + enableHighAcuracy : true, + timeout : this.timeout, + maximumAge : 3000 + }); + } + }, + locationerror : function(error) { + geo.errmsg = 'error'; + switch(error.code) { + case error.TIMEOUT: + geo.errmsg = "获取位置超时,请重试"; + break; + case error.POSITION_UNAVAILABLE: + geo.errmsg = '无法检测到您的当前位置'; + break; + case error.PERMISSION_DENIED: + geo.errmsg = '请允许能够正常访问您的当前位置'; + break; + case error.UNKNOWN_ERROR: + geo.errmsg = '发生未知错误'; + break; + } + }, + locationsuccess : function(position) { + geo.latitude = position.coords.latitude; + geo.longitude = position.coords.longitude; + geo.errmsg = ''; + $.ajax({ + type:'POST', + url:'http://maps.google.com/maps/api/geocode/json?latlng=' + geo.latitude + ',' + geo.longitude + '&language=zh-CN&sensor=true', + dataType:'json' + }) + .success(function(s) { + if(s.status == 'OK') { + geo.loc = s.results[0].formatted_address; + } + }) + .error(function() { + geo.loc = null; + }); + } +}; + +var pullrefresh = { + init : function() { + var pos = {}; + var status = false; + var divobj = null; + var contentobj = null; + var reloadflag = false; + $('body').on('touchstart', function(e) { + e = mygetnativeevent(e); + pos.startx = e.touches[0].pageX; + pos.starty = e.touches[0].pageY; + }) + .on('touchmove', function(e) { + e = mygetnativeevent(e); + pos.curposx = e.touches[0].pageX; + pos.curposy = e.touches[0].pageY; + if(pos.curposy - pos.starty < 0 && !status) { + return; + } + if(!status && $(window).scrollTop() <= 0) { + status = true; + divobj = document.createElement('div'); + divobj = $(divobj); + divobj.css({'position':'relative', 'margin-left':'-85px'}); + $('body').prepend(divobj); + contentobj = document.createElement('div'); + contentobj = $(contentobj); + contentobj.css({'position':'absolute', 'height':'30px', 'top': '-30px', 'left':'50%'}); + contentobj.html('下拉可以刷新'); + contentobj.find('img').css({'-webkit-transition':'all 0.5s ease-in-out'}); + divobj.prepend(contentobj); + pos.topx = pos.curposx; + pos.topy = pos.curposy; + } + if(!status) { + return; + } + if(status == true) { + var pullheight = pos.curposy - pos.topy; + if(pullheight >= 0 && pullheight < 150) { + divobj.css({'height': pullheight/2 + 'px'}); + contentobj.css({'top': (-30 + pullheight/2) + 'px'}); + if(reloadflag) { + contentobj.find('img').css({'-webkit-transform':'rotate(180deg)', '-moz-transform':'rotate(180deg)', '-o-transform':'rotate(180deg)', 'transform':'rotate(180deg)'}); + contentobj.find('#refreshtxt').html('下拉可以刷新'); + } + reloadflag = false; + } else if(pullheight >= 150) { + divobj.css({'height':pullheight/2 + 'px'}); + contentobj.css({'top': (-30 + pullheight/2) + 'px'}); + if(!reloadflag) { + contentobj.find('img').css({'-webkit-transform':'rotate(360deg)', '-moz-transform':'rotate(360deg)', '-o-transform':'rotate(360deg)', 'transform':'rotate(360deg)'}); + contentobj.find('#refreshtxt').html('松开可以刷新'); + } + reloadflag = true; + } + } + e.preventDefault(); + }) + .on('touchend', function(e) { + if(status == true) { + if(reloadflag) { + contentobj.html('正在加载...'); + contentobj.animate({'top': (-30 + 75) + 'px'}, 618, 'linear'); + divobj.animate({'height': '75px'}, 618, 'linear', function() { + window.location.reload(); + }); + return; + } + } + divobj.remove(); + divobj = null; + status = false; + pos = {}; + }); + } +}; + +function mygetnativeevent(event) { + + while(event && typeof event.originalEvent !== "undefined") { + event = event.originalEvent; + } + return event; +} + +function evalscript(s) { + if(s.indexOf(']*?>([^\x00]*?)<\/script>/ig; + var arr = []; + while(arr = p.exec(s)) { + var p1 = /]*?src=\"([^\>]*?)\"[^\>]*?(reload=\"1\")?(?:charset=\"([\w\-]+?)\")?><\/script>/i; + var arr1 = []; + arr1 = p1.exec(arr[0]); + if(arr1) { + appendscript(arr1[1], '', arr1[2], arr1[3]); + } else { + p1 = /([^\x00]+?)<\/script>/i; + arr1 = p1.exec(arr[0]); + appendscript('', arr1[2], arr1[1].indexOf('reload=') != -1); + } + } + return s; +} + +var safescripts = {}, evalscripts = []; + +function appendscript(src, text, reload, charset) { + var id = hash(src + text); + if(!reload && in_array(id, evalscripts)) return; + if(reload && $('#' + id)[0]) { + $('#' + id)[0].parentNode.removeChild($('#' + id)[0]); + } + + evalscripts.push(id); + var scriptNode = document.createElement("script"); + scriptNode.type = "text/javascript"; + scriptNode.id = id; + scriptNode.charset = charset ? charset : (!document.charset ? document.characterSet : document.charset); + try { + if(src) { + scriptNode.src = src; + scriptNode.onloadDone = false; + scriptNode.onload = function () { + scriptNode.onloadDone = true; + JSLOADED[src] = 1; + }; + scriptNode.onreadystatechange = function () { + if((scriptNode.readyState == 'loaded' || scriptNode.readyState == 'complete') && !scriptNode.onloadDone) { + scriptNode.onloadDone = true; + JSLOADED[src] = 1; + } + }; + } else if(text){ + scriptNode.text = text; + } + document.getElementsByTagName('head')[0].appendChild(scriptNode); + } catch(e) {} +} + +function hash(string, length) { + var length = length ? length : 32; + var start = 0; + var i = 0; + var result = ''; + filllen = length - string.length % length; + for(i = 0; i < filllen; i++){ + string += "0"; + } + while(start < string.length) { + result = stringxor(result, string.substr(start, length)); + start += length; + } + return result; +} + +function stringxor(s1, s2) { + var s = ''; + var hash = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; + var max = Math.max(s1.length, s2.length); + for(var i=0; i cookie_start ? cookie_end : document.cookie.length)); + return !nounescape ? unescape(v) : v; + } +} + +$(document).ready(function() { + + if($('div.pg').length > 0) { + page.converthtml(); + } + if($('.scrolltop').length > 0) { + scrolltop.init($('.scrolltop')); + } + if($('img').length > 0) { + img.init(1); + } + if($('.popup').length > 0) { + popup.init(); + } + if($('.display').length > 0) { + display.init(); + } + if($('.atap').length > 0) { + atap.init(); + } + if($('.pullrefresh').length > 0) { + pullrefresh.init(); + } + dialog.init(); + formdialog.init(); + redirect.init(); }); \ No newline at end of file diff --git a/source/plugin/wechat/template/mobile/jquery-1.8.3.min.js b/source/plugin/wechat/template/mobile/jquery-1.8.3.min.js index 3883779..83589da 100644 --- a/source/plugin/wechat/template/mobile/jquery-1.8.3.min.js +++ b/source/plugin/wechat/template/mobile/jquery-1.8.3.min.js @@ -1,2 +1,2 @@ -/*! jQuery v1.8.3 jquery.com | jquery.org/license */ +/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write(""),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t
    a",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="
    t
    ",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="
    ",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;ti.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="
    ",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="

    ",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t0)for(i=r;i=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*\s*$/g,Nt={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X
    ","
    "]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1>");try{for(;r1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]===""&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("
    ").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window); \ No newline at end of file diff --git a/source/plugin/wechat/template/mobile/style.css b/source/plugin/wechat/template/mobile/style.css index 5dc86f6..f738532 100644 --- a/source/plugin/wechat/template/mobile/style.css +++ b/source/plugin/wechat/template/mobile/style.css @@ -1,92 +1,92 @@ -@charset "utf-8"; - -/* common */ - * { word-wrap: break-word; } - ul,ol,li,span,p,form,h1,h2,h3,4,h5,h6,dl,dt,dd { margin: 0; padding: 0; border: 0; z-index:inherit; } - img,a img { border:0; margin:0; padding:0; } - ul,ol,li { list-style:none; } - * { margin:0; padding:0; } - html,body { height:100%; font:12px/1.6 Microsoft YaHei, Helvetica, sans-serif; color:#4C4C4C; } - input,select,textarea,button { font:14px/1.5 Microsoft YaHei, Helvetica, sans-serif; } - body, ul, ol, li, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset, .pr, .pc { margin: 0; padding: 0; } - table { empty-cells: show; border-collapse: collapse; } - caption, th { text-align: left; font-weight: 400; } - ul li, .xl li { list-style: none; } - h1, h2, h3, h4, h5, h6 { font-size: 1em; } - em, cite, i { font-style: normal; } - a img { border: none; } - label { cursor: pointer; } - .bg { background: url(pic_bg.jpg); } - .rq { color: red; } - - a:link,a:visited,a:hover { color:#4C4C4C; text-decoration:none; } - .blue { color: #0086CE; } - a.blue:link, a.blue:visited, a.blue:hover { color:#0086CE; text-decoration:none; } - .grey { color:#9C9C9C; } - a.grey:link, a.grey:visited, a.grey:hover { color:#9C9C9C; text-decoration:none; } - .orange { color:#F60; } - a.orange:link,a.orange:visited,a.orange:hover{color:#F60;text-decoration:none } - - .z { float: left; } .y { float: right; } - .cl:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .cl { zoom: 1; } - .overflow{overflow:hidden;} - .none { display:none; } - .vm { vertical-align: middle; } - .vm * { vertical-align: middle; } - .hm { text-align: center; } - - .bl_none { border-bottom:0 !important; } - .bl_line { border-bottom:1px solid #DDD; } - .b_radius {border-radius:10px;} - - .b_m { margin:10px;} - .b_p { padding:10px} - - .mtn { margin-top: 5px !important; } - .mbn { margin-bottom: 5px !important; } - .mtm { margin-top: 10px !important; } - .mbm { margin-bottom: 10px !important; } - .mtw { margin-top: 20px !important; } - .mbw { margin-bottom: 20px !important; } - - .pr, .pc { vertical-align: middle; margin: 0 5px 1px 0; padding: 0;+margin-right: 2px;_margin-right: 2px; } - -/*----- pop -----*/ - .dialogbox { background: url(pic_bg.jpg) } - -/*----- login & register -----*/ - .loginbox { padding:10px;} - .login_from { background:#FFF; border-radius:10px; border:1px solid #DDD; margin-bottom:15px; } - .login_from li { border-bottom:1px solid #DDD; line-height:45px; padding:0 10px; color:#AFAFAF; font-size:14px; } - .btn_login .pn,.btn_register .pn { background: url(login.png) no-repeat; width:289px; height:45px; display:block; line-height:46px; overflow:hidden; margin:0 auto; color:#FFF; font-size:16px; font-weight:700; text-align:center;border:0; } - .btn_login .pn:hover,.btn_register .pn:hover { background: url(login_on.png) no-repeat; color:#F0EFEF; } - .btn_qqlogin a { background: url(qqlogin.png) no-repeat; width:300px; height:45px; display:block; line-height:2000px; overflow:hidden; margin:0 auto; } - .btn_qqlogin a:hover { background: url(qqlogin_on.png) no-repeat; } - .loginbox p { line-height:35px; font-size:14px; color:#AFAFAF;} - .reg_link a { background: url(icon_arrow.png) no-repeat 100% center; padding-right:10px; color:#AFAFAF; } - .px{ border:1px solid #ddd; padding: 2px 4px; line-height: 17px; font-size:15px; } - .px:focus { color:#4C4C4C;} - .p_fre { width: auto !important; } - .sel_list { width:100%;border: 0; padding: 2px 4px; font-size:14px; font-weight:700; } - .login_select { display: block; position: relative;} - .login_select .login-btn-inner { display: block; font-size: 14px; font-weight:700; min-width: 0.75em; overflow: hidden; position: relative; text-overflow: ellipsis; white-space: nowrap; } - .login_select select { position: absolute; top: 0; width: 100%; z-index: 2; cursor: pointer; height: 3em; left: 0; max-height: 100%; min-height: 100%; opacity: 0.0001;} - .login-btn-text { float:left; } - .login_select .icon-arrow { background: url(icon_arrow.png) no-repeat 15px 17px; width:30px; height:30px; float:right; } - - .login_pop { background:#F1F1F1; padding: 0 14px 20px; } - .log_tit { text-align:center; font-size:16px; font-weight:700; line-height:45px; } - .icon_close { background: url(icon_close.png) no-repeat 0 0; width:13px; height:11px; overflow:hidden; display:block; margin-top:17px; } - .btn_qqlogintext { margin:10px 0; } - .btn_qqlogintext a.text_qqlogin { background: url(qqlogintext.png) no-repeat; width:120px; height:25px; display:block; line-height:2000px; overflow:hidden; } - .login_pop .login_from { margin-bottom: 10px; } - .login_pop .login_check { margin:0 0 10px 0; color:#A5A5A5; } - .q_reg a { color:#A5A5A5; font-size:14px; } - .s_code { color:#A5A5A5; } - .s_code .px { color:#A5A5A5; } - .s_code .px:focus { color:#4C4C4C; } - a.other_c { color:#A5A5A5; margin-left:5px; } - -/*----- footer -----*/ - .footer { text-align:center; line-height:2em; color:#A5A5A5; padding:10px 0 0 0; } +@charset "utf-8"; + +/* common */ + * { word-wrap: break-word; } + ul,ol,li,span,p,form,h1,h2,h3,4,h5,h6,dl,dt,dd { margin: 0; padding: 0; border: 0; z-index:inherit; } + img,a img { border:0; margin:0; padding:0; } + ul,ol,li { list-style:none; } + * { margin:0; padding:0; } + html,body { height:100%; font:12px/1.6 Microsoft YaHei, Helvetica, sans-serif; color:#4C4C4C; } + input,select,textarea,button { font:14px/1.5 Microsoft YaHei, Helvetica, sans-serif; } + body, ul, ol, li, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset, .pr, .pc { margin: 0; padding: 0; } + table { empty-cells: show; border-collapse: collapse; } + caption, th { text-align: left; font-weight: 400; } + ul li, .xl li { list-style: none; } + h1, h2, h3, h4, h5, h6 { font-size: 1em; } + em, cite, i { font-style: normal; } + a img { border: none; } + label { cursor: pointer; } + .bg { background: url(pic_bg.jpg); } + .rq { color: red; } + + a:link,a:visited,a:hover { color:#4C4C4C; text-decoration:none; } + .blue { color: #0086CE; } + a.blue:link, a.blue:visited, a.blue:hover { color:#0086CE; text-decoration:none; } + .grey { color:#9C9C9C; } + a.grey:link, a.grey:visited, a.grey:hover { color:#9C9C9C; text-decoration:none; } + .orange { color:#F60; } + a.orange:link,a.orange:visited,a.orange:hover{color:#F60;text-decoration:none } + + .z { float: left; } .y { float: right; } + .cl:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .cl { zoom: 1; } + .overflow{overflow:hidden;} + .none { display:none; } + .vm { vertical-align: middle; } + .vm * { vertical-align: middle; } + .hm { text-align: center; } + + .bl_none { border-bottom:0 !important; } + .bl_line { border-bottom:1px solid #DDD; } + .b_radius {border-radius:10px;} + + .b_m { margin:10px;} + .b_p { padding:10px} + + .mtn { margin-top: 5px !important; } + .mbn { margin-bottom: 5px !important; } + .mtm { margin-top: 10px !important; } + .mbm { margin-bottom: 10px !important; } + .mtw { margin-top: 20px !important; } + .mbw { margin-bottom: 20px !important; } + + .pr, .pc { vertical-align: middle; margin: 0 5px 1px 0; padding: 0;+margin-right: 2px;_margin-right: 2px; } + +/*----- pop -----*/ + .dialogbox { background: url(pic_bg.jpg) } + +/*----- login & register -----*/ + .loginbox { padding:10px;} + .login_from { background:#FFF; border-radius:10px; border:1px solid #DDD; margin-bottom:15px; } + .login_from li { border-bottom:1px solid #DDD; line-height:45px; padding:0 10px; color:#AFAFAF; font-size:14px; } + .btn_login .pn,.btn_register .pn { background: url(login.png) no-repeat; width:289px; height:45px; display:block; line-height:46px; overflow:hidden; margin:0 auto; color:#FFF; font-size:16px; font-weight:700; text-align:center;border:0; } + .btn_login .pn:hover,.btn_register .pn:hover { background: url(login_on.png) no-repeat; color:#F0EFEF; } + .btn_qqlogin a { background: url(qqlogin.png) no-repeat; width:300px; height:45px; display:block; line-height:2000px; overflow:hidden; margin:0 auto; } + .btn_qqlogin a:hover { background: url(qqlogin_on.png) no-repeat; } + .loginbox p { line-height:35px; font-size:14px; color:#AFAFAF;} + .reg_link a { background: url(icon_arrow.png) no-repeat 100% center; padding-right:10px; color:#AFAFAF; } + .px{ border:1px solid #ddd; padding: 2px 4px; line-height: 17px; font-size:15px; } + .px:focus { color:#4C4C4C;} + .p_fre { width: auto !important; } + .sel_list { width:100%;border: 0; padding: 2px 4px; font-size:14px; font-weight:700; } + .login_select { display: block; position: relative;} + .login_select .login-btn-inner { display: block; font-size: 14px; font-weight:700; min-width: 0.75em; overflow: hidden; position: relative; text-overflow: ellipsis; white-space: nowrap; } + .login_select select { position: absolute; top: 0; width: 100%; z-index: 2; cursor: pointer; height: 3em; left: 0; max-height: 100%; min-height: 100%; opacity: 0.0001;} + .login-btn-text { float:left; } + .login_select .icon-arrow { background: url(icon_arrow.png) no-repeat 15px 17px; width:30px; height:30px; float:right; } + + .login_pop { background:#F1F1F1; padding: 0 14px 20px; } + .log_tit { text-align:center; font-size:16px; font-weight:700; line-height:45px; } + .icon_close { background: url(icon_close.png) no-repeat 0 0; width:13px; height:11px; overflow:hidden; display:block; margin-top:17px; } + .btn_qqlogintext { margin:10px 0; } + .btn_qqlogintext a.text_qqlogin { background: url(qqlogintext.png) no-repeat; width:120px; height:25px; display:block; line-height:2000px; overflow:hidden; } + .login_pop .login_from { margin-bottom: 10px; } + .login_pop .login_check { margin:0 0 10px 0; color:#A5A5A5; } + .q_reg a { color:#A5A5A5; font-size:14px; } + .s_code { color:#A5A5A5; } + .s_code .px { color:#A5A5A5; } + .s_code .px:focus { color:#4C4C4C; } + a.other_c { color:#A5A5A5; margin-left:5px; } + +/*----- footer -----*/ + .footer { text-align:center; line-height:2em; color:#A5A5A5; padding:10px 0 0 0; } .footer a { margin:0 6px; color:#A5A5A5; } \ No newline at end of file diff --git a/source/plugin/wechat/template/mobile/wechat_bind.htm b/source/plugin/wechat/template/mobile/wechat_bind.htm index 6875e7a..85d88c9 100644 --- a/source/plugin/wechat/template/mobile/wechat_bind.htm +++ b/source/plugin/wechat/template/mobile/wechat_bind.htm @@ -1,84 +1,84 @@ - - - -
    - - - - -
    - -
    -
    - - - -
    - - - -
    - - - -

    {lang useqqconnectlogin}

    - - -
    -
    - - - - - - - - + + + +
    + + + + +
    + +
    +
    + + + +
    + + + +
    + + + +

    {lang useqqconnectlogin}

    + + +
    + + + + + + + + + diff --git a/source/plugin/wechat/template/mobile/wechat_bind_confirm.htm b/source/plugin/wechat/template/mobile/wechat_bind_confirm.htm index 4fd8d31..31420dd 100644 --- a/source/plugin/wechat/template/mobile/wechat_bind_confirm.htm +++ b/source/plugin/wechat/template/mobile/wechat_bind_confirm.htm @@ -1,14 +1,14 @@ - - -
    - - {lang wechat:wechat_qrcode_input_cancel} - - {lang wechat:wechat_qrcode_input_confirm}

    -
    -
    - -
    - - + + +
    + + {lang wechat:wechat_qrcode_input_cancel} + + {lang wechat:wechat_qrcode_input_confirm}

    +
    +
    + +
    + + \ No newline at end of file diff --git a/source/plugin/wechat/template/mobile/wechat_header.htm b/source/plugin/wechat/template/mobile/wechat_header.htm index 5d0bb42..b212ab0 100644 --- a/source/plugin/wechat/template/mobile/wechat_header.htm +++ b/source/plugin/wechat/template/mobile/wechat_header.htm @@ -1,27 +1,27 @@ - - - - - - - - - - - - - - - - - - -
    + + + + + + + + + + + + + + + + + + +

    \ No newline at end of file diff --git a/source/plugin/wechat/template/module.htm b/source/plugin/wechat/template/module.htm index 6a8f1ea..ccad79e 100644 --- a/source/plugin/wechat/template/module.htm +++ b/source/plugin/wechat/template/module.htm @@ -1,140 +1,140 @@ -{eval -function wechat_tpl_login_bar() { -global $_G; -} - - - - -{eval -} - -function wechat_tpl_login_extra_bar() { -global $_G; -} - -
    -

    -

    {$_G['Plang'][lang_wechat_logintip]}

    -
    - - -{eval -} - -function wechat_tpl_user_bar() { -global $_G; -} - - | - - -{eval -} - -function wechat_tpl_float_qrcode($idstr = '') { -global $_G; -} - - - - - - - -{eval -} - -function wechat_tpl_share($isshow) { -global $_G; -} - - {lang wechat:wechat_share}{lang wechat:wechat_share} - - - - - - - -{eval -} - -function wechat_tpl_register() { -global $_G; -} - -
    {lang wechat:wechat_register}
    - - -{eval -} - -function wechatshowactivity_tpl_voters($post) { -global $_G; -} - - | {lang wechat:show_recommend_number} - - -{eval -} - -function wechatshowactivity_tpl_share($post) { -global $_G; -} - -

    {lang wechat:show_scanqr}

    -

    - - -{eval -} - -function wechat_tpl_resourcepush() { -global $_G; -} - - {lang wechat:resource_push} - - -{eval -} - +{eval +function wechat_tpl_login_bar() { +global $_G; +} + + + + +{eval +} + +function wechat_tpl_login_extra_bar() { +global $_G; +} + +
    +

    +

    {$_G['Plang'][lang_wechat_logintip]}

    +
    + + +{eval +} + +function wechat_tpl_user_bar() { +global $_G; +} + + | + + +{eval +} + +function wechat_tpl_float_qrcode($idstr = '') { +global $_G; +} + + + + + + + +{eval +} + +function wechat_tpl_share($isshow) { +global $_G; +} + + {lang wechat:wechat_share}{lang wechat:wechat_share} + + + + + + + +{eval +} + +function wechat_tpl_register() { +global $_G; +} + +
    {lang wechat:wechat_register}
    + + +{eval +} + +function wechatshowactivity_tpl_voters($post) { +global $_G; +} + + | {lang wechat:show_recommend_number} + + +{eval +} + +function wechatshowactivity_tpl_share($post) { +global $_G; +} + +

    {lang wechat:show_scanqr}

    +

    + + +{eval +} + +function wechat_tpl_resourcepush() { +global $_G; +} + + {lang wechat:resource_push} + + +{eval +} + } \ No newline at end of file diff --git a/source/plugin/wechat/template/spacecp.htm b/source/plugin/wechat/template/spacecp.htm index e59ce50..a89e7d6 100644 --- a/source/plugin/wechat/template/spacecp.htm +++ b/source/plugin/wechat/template/spacecp.htm @@ -1,55 +1,55 @@ -

    {lang wechat:wechat_spacecp_bind_title}

    -
    - - -

    - {lang wechat:wechat_spacecp_setpw} -

    - -
    - -
    -
    - - - - - - - - - - - - - - -
    - -
    -
    - -
    - - -

    -{lang wechat:wechat_spacecp_unbind} -

    - - - +

    {lang wechat:wechat_spacecp_bind_title}

    +
    + + +

    + {lang wechat:wechat_spacecp_setpw} +

    + +
    + +
    + + + + + + + + + + + + + + + +
    + +
    +
    +
    +
    + + +

    +{lang wechat:wechat_spacecp_unbind} +

    + + + \ No newline at end of file diff --git a/source/plugin/wechat/template/touch/wechat_bind.htm b/source/plugin/wechat/template/touch/wechat_bind.htm index a7cc32c..1370218 100644 --- a/source/plugin/wechat/template/touch/wechat_bind.htm +++ b/source/plugin/wechat/template/touch/wechat_bind.htm @@ -1,76 +1,76 @@ - - - -
    - - - - -
    - -
    -
    -
    - - -
    - - - -
    - - - -

    {lang useqqconnectlogin}

    - - -
    -
    - - - - - + + + +
    + + + + +
    + +
    +
    +
    + + +
    + + + +
    + + + +

    {lang useqqconnectlogin}

    + + +
    + +
    + + + + \ No newline at end of file diff --git a/source/plugin/wechat/template/touch/wechat_bind_confirm.htm b/source/plugin/wechat/template/touch/wechat_bind_confirm.htm index 4fd8d31..31420dd 100644 --- a/source/plugin/wechat/template/touch/wechat_bind_confirm.htm +++ b/source/plugin/wechat/template/touch/wechat_bind_confirm.htm @@ -1,14 +1,14 @@ - - -
    - - {lang wechat:wechat_qrcode_input_cancel} - - {lang wechat:wechat_qrcode_input_confirm}

    -
    -
    - -
    - - + + +
    + + {lang wechat:wechat_qrcode_input_cancel} + + {lang wechat:wechat_qrcode_input_confirm}

    +
    +
    + +
    + + \ No newline at end of file diff --git a/source/plugin/wechat/template/touch/wechat_header.htm b/source/plugin/wechat/template/touch/wechat_header.htm index 8d15988..17ee3a1 100644 --- a/source/plugin/wechat/template/touch/wechat_header.htm +++ b/source/plugin/wechat/template/touch/wechat_header.htm @@ -1,30 +1,30 @@ - - - - - - - - - -<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> {lang waptitle} - Powered by Discuz! - - - - - - - - - - - -
    + + + + + + + + + +<!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> {lang waptitle} - Powered by Discuz! + + + + + + + + + + + +

    \ No newline at end of file diff --git a/source/plugin/wechat/template/wechat_qrcode.htm b/source/plugin/wechat/template/wechat_qrcode.htm index 5880db1..7685747 100644 --- a/source/plugin/wechat/template/wechat_qrcode.htm +++ b/source/plugin/wechat/template/wechat_qrcode.htm @@ -1,98 +1,98 @@ - - -
    - -

    - {lang wechat:wechat_bind}{lang wechat:wechat_login} - - {lang close} - -

    -
    -
    - - - {lang wechat:wechat_bind_comfirm_prompt} -
    - - - - - - -
    -
    -
    - - - - - -
      - -
    -
    -
    -
    - - - {eval $codelang = $_G['uid'] ? 'lang_wechat_bind' : 'lang_wechat_login';} -

    - {lang wechat:wechat_bind}{lang wechat:wechat_login} - - {lang close} - -

    -
    - -
    - - {$_G['Plang'][$codelang]}
    {lang wechat:wechat_qrcode_inputcode} -

    $code

    - - {$_G['Plang'][$codelang]} - -
    - -
    - - - + + +
    + +

    + {lang wechat:wechat_bind}{lang wechat:wechat_login} + + {lang close} + +

    +
    +
    + + + {lang wechat:wechat_bind_comfirm_prompt} +
    + + + + + + +
    +
    +
    + + + + + +
      + +
    +
    +
    +
    + + + {eval $codelang = $_G['uid'] ? 'lang_wechat_bind' : 'lang_wechat_login';} +

    + {lang wechat:wechat_bind}{lang wechat:wechat_login} + + {lang close} + +

    +
    + +
    + + {$_G['Plang'][$codelang]}
    {lang wechat:wechat_qrcode_inputcode} +

    $code

    + + {$_G['Plang'][$codelang]} + +
    + +
    + + + \ No newline at end of file diff --git a/source/plugin/wechat/template/wechat_threadqr.htm b/source/plugin/wechat/template/wechat_threadqr.htm index fe8638f..a11a218 100644 --- a/source/plugin/wechat/template/wechat_threadqr.htm +++ b/source/plugin/wechat/template/wechat_threadqr.htm @@ -1,37 +1,37 @@ - - - -
    -

    - {lang wechat:wechat_sharetitle} - - {lang close} - -

    -
    - -
    - {lang wechat:wsq_threadqr} -
    -
    - -
    -

    - {lang wechat:wechat_sharetitle} - - {lang close} - -

    -
    - -
    - {lang wechat:show_scanqr} -
    -
    - -
    -
    {lang wechat:wsq_indexqr} -
    - - + + + +
    +

    + {lang wechat:wechat_sharetitle} + + {lang close} + +

    +
    + +
    + {lang wechat:wsq_threadqr} +
    +
    + +
    +

    + {lang wechat:wechat_sharetitle} + + {lang close} + +

    +
    + +
    + {lang wechat:show_scanqr} +
    +
    + +
    +
    {lang wechat:wsq_indexqr} +
    + + \ No newline at end of file diff --git a/source/plugin/wechat/wechat.class.php b/source/plugin/wechat/wechat.class.php index 74d6fdb..ed71889 100644 --- a/source/plugin/wechat/wechat.class.php +++ b/source/plugin/wechat/wechat.class.php @@ -1,679 +1,679 @@ -fetch($_G['uid']); - if($_G['wechatuser'] && !$_G['wechatuser']['status']) { - $_G['wechatuser']['isregister'] = 1; - } - } else { - $_G['wechatuser'] = C::t('#wechat#common_member_wechat')->fetch($_G['uid']); - } - if($_G['wechatuser'] && $wechatuser['status'] == 1) { - C::t('#wechat#common_member_wechat')->update($_G['uid'], array('status' => 0)); - require_once libfile('function/member'); - clearcookies(); - } - } - - if(!$_G['uid'] && !defined('IN_MOBILE') && $_G['wechat']['setting']['wsq_allow']) { - $_G['setting']['pluginhooks']['global_login_text'] .= wechat_tpl_login_bar(); - } - - $_G['Plang'] = $_G['setting']['wechatviewpluginid'] ? lang('plugin/'.$_G['setting']['wechatviewpluginid']) : array(); - - if(!$_G['Plang'] || !$_G['wechatuser']) { - unset($_G['setting']['plugins']['spacecp']['wechat:spacecp']); - } - } - - function deletemember($param) { - $uids = $param['param'][0]; - $step = $param['step']; - if ($step == 'check' && $uids && is_array($uids)) { - foreach($uids as $uid) { - C::t('#wechat#common_member_wechat')->delete($uid); - } - } - } - - function global_login_extra() { - global $_G; - if(!$_G['Plang'] || $_G['inshowmessage'] || !$_G['wechat']['setting']['wsq_allow']) { - return; - } - return wechat_tpl_login_extra_bar(); - } - - function global_usernav_extra1() { - global $_G; - if(!$_G['Plang'] || $_G['wechatuser'] || !$_G['wechat']['setting']['wsq_allow'] || !$_G['uid']) { - return; - } - return wechat_tpl_user_bar(); - } - - function global_footer() { - global $_G; - if($_G['wechat']['setting']['wechat_float_qrcode'] && $_G['wechat']['setting']['wsq_siteid'] && $_G['wechat']['setting']['wsq_allow']) { - $modid = $_G['basescript'].'::'.CURMODULE; - if($modid == 'forum::forumdisplay' && !empty($_GET['fid'])) { - $idstr = '&fid='.dintval($_GET['fid']); - return wechat_tpl_float_qrcode($idstr); - } elseif($modid == 'forum::viewthread' && !empty($_GET['tid'])) { - $idstr = '&tid='.dintval($_GET['tid']).'&qrsize=2'; - return wechat_tpl_float_qrcode($idstr); - } elseif($modid == 'forum::index') { - return wechat_tpl_float_qrcode(); - } - } - } - -} - -class mobileplugin_wechat { - - function common() { - global $_G; - if(!$_G['wechat']['setting']) { - $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - } - dsetcookie('mobile', '', -1); - if(!isset($_GET['pluginid'])) { - $redirect = WeChat::redirect(1); - if($redirect) { - dheader('location: '.$redirect); - } - } - } - -} - -class plugin_wechat_member extends plugin_wechat { - - function logging_method() { - global $_G; - if(!$_G['Plang'] || !$_G['wechat']['setting']['wsq_allow']) { - return; - } - return wechat_tpl_login_bar(); - } - - function register_top_output() { - global $_G; - if(strexists($_GET['referer'], 'wechat:login') && $_G['wechat']['setting']['wsq_allow']) { - return wechat_tpl_register(); - } - } - - function register_logging_method() { - global $_G; - if(!$_G['Plang'] || !$_G['wechat']['setting']['wsq_allow']) { - return; - } - return wechat_tpl_login_bar(); - } - -} - -class mobileplugin_wechat_forum extends mobileplugin_wechat { - - function post_showactivity() { - if(!showActivity::init()) { - return false; - } - showActivity::post(); - } - - function viewthread_showactivity() { - showActivity::init(); - } - - function misc_showactivity() { - showActivity::init(); - } - -} - -class plugin_wechat_forum extends plugin_wechat { - - function viewthread_showactivity() { - showActivity::init(); - } - - function viewthread_postheader_output() { - if(!showActivity::init()) { - return array(); - } - if($GLOBALS['activity']['starttimeto']) { - global $_G; - $starttimeto = strtotime($GLOBALS['activity']['starttimeto']); - if($starttimeto < TIMESTAMP && $_G['forum_thread']['displayorder'] > 0) { - C::t('forum_thread')->update($_G['tid'], array('displayorder' => 0)); - } - } - return showActivity::returnvoters(1); - } - - function viewthread_posttop_output() { - if(!showActivity::init()) { - return array(); - } - return showActivity::returnvoters(2); - } - - function misc_showactivity() { - if(!showActivity::init()) { - return false; - } - showActivity::misc(); - } - - function post_showactivity() { - if(!showActivity::init()) { - return false; - } - showActivity::post(); - } - - function viewthread_share_method_output() { - global $_G; - if($_G['wechat']['setting']['wsq_allow']) { - return wechat_tpl_share(showActivity::init()); - } - } - - function viewthread_postaction() { - global $_G; - if($_G['wechat']['setting']['wsq_allow'] && $_G['adminid'] == 1 && empty($_GET['viewpid'])) { - return array(wechat_tpl_resourcepush()); - } - } - -} - -class WeChat { - - static $QRCODE_EXPIRE = 1800; - - static public function getqrcode() { - global $_G; - if(!$_G['wechat']['setting']) { - $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - } - require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php'; - $wechat_client = new WeChatClient($_G['wechat']['setting']['wechat_appId'], $_G['wechat']['setting']['wechat_appsecret']); - - $ticket = ''; - if(!$_G['cookie']['wechat_ticket'] || $_G['wechat']['setting']['wechat_mtype'] == 1) { - $code = 0; - $i = 0; - do { - $code = rand(100000, 999999); - $codeexists = C::t('#wechat#mobile_wechat_authcode')->fetch_by_code($code); - $i++; - } while($codeexists && $i < 10); - - if($_G['wechat']['setting']['wechat_mtype'] == 2) { - $option = array( - 'scene_id' => $code, - 'expire' => self::$QRCODE_EXPIRE, - 'ticketOnly' => '1' - ); - $ticket = $wechat_client->getQrcodeTicket($option); - if(!$ticket) { - showmessage('wechat:wechat_message_codefull'); - } - dsetcookie('wechat_ticket', authcode($ticket."\t".$code, 'ENCODE'), self::$QRCODE_EXPIRE); - } - } else { - list($ticket, $code) = explode("\t", authcode($_G['cookie']['wechat_ticket'], 'DECODE')); - } - - $isqrapi = $ticket ? $ticket : ''; - if($codeexists) { - showmessage('wechat:wechat_message_codefull'); - } - - $qrcodeurl = !$isqrapi ? $_G['setting']['attachurl'].'common/'.$_G['wechat']['setting']['wechat_qrcode'] : $_G['siteurl'].'plugin.php?id=wechat:qrcode&rand='.random(5); - - $codeenc = urlencode(base64_encode(authcode($code, 'ENCODE', $_G['config']['security']['authkey']))); - C::t('#wechat#mobile_wechat_authcode')->insert(array('sid' => $_G['cookie']['saltkey'], 'uid' => $_G['uid'], 'code' => $code, 'createtime' => TIMESTAMP), 0, 1); - if(!discuz_process::islocked('clear_wechat_authcode')) { - C::t('#wechat#mobile_wechat_authcode')->delete_history(); - discuz_process::unlock('clear_wechat_authcode'); - } - return array($isqrapi, $qrcodeurl, $codeenc, $code); - } - - static public function redirect($type) { - global $_G; - $hook = unserialize($_G['setting']['wechatredirect']); - if (!$hook || !in_array($hook['plugin'], $_G['setting']['plugins']['available'])) { - return; - } - if(!preg_match("/^[\w\_]+$/i", $hook['plugin']) || !preg_match('/^[\w\_\.]+\.php$/i', $hook['include'])) { - return; - } - include_once DISCUZ_ROOT . 'source/plugin/' . $hook['plugin'] . '/' . $hook['include']; - if (!class_exists($hook['class'], false)) { - return; - } - $class = new $hook['class']; - if (!method_exists($class, $hook['method'])) { - return; - } - $return = $class->$hook['method']($type); - if($return) { - return $return; - } - } - - static public function register($username, $return = 0, $groupid = 0) { - global $_G; - if(!$username) { - return; - } - if(!$_G['wechat']['setting']) { - $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - } - - loaducenter(); - $groupid = !$groupid ? ($_G['wechat']['setting']['wechat_newusergroupid'] ? $_G['wechat']['setting']['wechat_newusergroupid'] : $_G['setting']['newusergroupid']) : $groupid; - - $password = md5(random(10)); - $email = 'wechat_'.strtolower(random(10)).'@null.null'; - - $usernamelen = dstrlen($username); - if($usernamelen < 3) { - $username = $username.'_'.random(5); - } - if($usernamelen > 15) { - if(!$return) { - showmessage('profile_username_toolong'); - } else { - return; - } - } - - $censorexp = '/^('.str_replace(array('\\*', "\r\n", ' '), array('.*', '|', ''), preg_quote(($_G['setting']['censoruser'] = trim($_G['setting']['censoruser'])), '/')).')$/i'; - - if($_G['setting']['censoruser'] && @preg_match($censorexp, $username)) { - if(!$return) { - showmessage('profile_username_protect'); - } else { - return; - } - } - - if(!$_G['wechat']['setting']['wechat_disableregrule']) { - loadcache('ipctrl'); - if($_G['cache']['ipctrl']['ipregctrl']) { - foreach(explode("\n", $_G['cache']['ipctrl']['ipregctrl']) as $ctrlip) { - if(preg_match("/^(".preg_quote(($ctrlip = trim($ctrlip)), '/').")/", $_G['clientip'])) { - $ctrlip = $ctrlip.'%'; - $_G['setting']['regctrl'] = $_G['setting']['ipregctrltime']; - break; - } else { - $ctrlip = $_G['clientip']; - } - } - } else { - $ctrlip = $_G['clientip']; - } - - if($_G['setting']['regctrl']) { - if(C::t('common_regip')->count_by_ip_dateline($ctrlip, $_G['timestamp']-$_G['setting']['regctrl']*3600)) { - if(!$return) { - showmessage('register_ctrl', NULL, array('regctrl' => $_G['setting']['regctrl'])); - } else { - return; - } - } - } - - $setregip = null; - if($_G['setting']['regfloodctrl']) { - $regip = C::t('common_regip')->fetch_by_ip_dateline($_G['clientip'], $_G['timestamp']-86400); - if($regip) { - if($regip['count'] >= $_G['setting']['regfloodctrl']) { - if(!$return) { - showmessage('register_flood_ctrl', NULL, array('regfloodctrl' => $_G['setting']['regfloodctrl'])); - } else { - return; - } - } else { - $setregip = 1; - } - } else { - $setregip = 2; - } - } - - if($setregip !== null) { - if($setregip == 1) { - C::t('common_regip')->update_count_by_ip($_G['clientip']); - } else { - C::t('common_regip')->insert(array('ip' => $_G['clientip'], 'count' => 1, 'dateline' => $_G['timestamp'])); - } - } - } - - $uid = uc_user_register(addslashes($username), $password, $email, '', '', $_G['clientip']); - if($uid <= 0) { - if(!$return) { - if($uid == -1) { - showmessage('profile_username_illegal'); - } elseif($uid == -2) { - showmessage('profile_username_protect'); - } elseif($uid == -3) { - showmessage('profile_username_duplicate'); - } elseif($uid == -4) { - showmessage('profile_email_illegal'); - } elseif($uid == -5) { - showmessage('profile_email_domain_illegal'); - } elseif($uid == -6) { - showmessage('profile_email_duplicate'); - } else { - showmessage('undefined_action'); - } - } else { - return; - } - } - - $init_arr = array('credits' => explode(',', $_G['setting']['initcredits'])); - C::t('common_member')->insert($uid, $username, $password, $email, $_G['clientip'], $groupid, $init_arr); - - if($_G['setting']['regctrl'] || $_G['setting']['regfloodctrl']) { - C::t('common_regip')->delete_by_dateline($_G['timestamp']-($_G['setting']['regctrl'] > 72 ? $_G['setting']['regctrl'] : 72)*3600); - if($_G['setting']['regctrl']) { - C::t('common_regip')->insert(array('ip' => $_G['clientip'], 'count' => -1, 'dateline' => $_G['timestamp'])); - } - } - - if($_G['setting']['regverify'] == 2) { - C::t('common_member_validate')->insert(array( - 'uid' => $uid, - 'submitdate' => $_G['timestamp'], - 'moddate' => 0, - 'admin' => '', - 'submittimes' => 1, - 'status' => 0, - 'message' => '', - 'remark' => '', - ), false, true); - manage_addnotify('verifyuser'); - } - - setloginstatus(array( - 'uid' => $uid, - 'username' => $username, - 'password' => $password, - 'groupid' => $groupid, - ), 0); - - include_once libfile('function/stat'); - updatestat('register'); - - return $uid; - } - - static public function syncAvatar($uid, $avatar) { - - if(!$uid || !$avatar) { - return false; - } - - if(!$content = dfsockopen($avatar)) { - return false; - } - - $tmpFile = DISCUZ_ROOT.'./data/avatar/'.TIMESTAMP.random(6); - file_put_contents($tmpFile, $content); - - if(!is_file($tmpFile)) { - return false; - } - - $result = uploadUcAvatar::upload($uid, $tmpFile); - unlink($tmpFile); - - C::t('common_member')->update($uid, array('avatarstatus'=>'1')); - - return $result; - } - - - - static public function getnewname($openid) { - global $_G; - if(!$_G['wechat']['setting']) { - $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); - } - $wechat_client = new WeChatClient($_G['wechat']['setting']['wechat_appId'], $_G['wechat']['setting']['wechat_appsecret']); - $userinfo = $wechat_client->getUserInfoById($openid); - if($userinfo) { - $defaultusername = substr(WeChatEmoji::clear($userinfo['nickname']), 0, 15); - loaducenter(); - $user = uc_get_user($defaultusername); - if(!empty($user)) { - $defaultusername = cutstr($defaultusername, 7, '').'_'.random(5); - } - } else { - $defaultusername = 'wx_'.random(5); - } - return $defaultusername; - } - -} - -class uploadUcAvatar { - - public static function upload($uid, $localFile) { - - global $_G; - if(!$uid || !$localFile) { - return false; - } - - list($width, $height, $type, $attr) = getimagesize($localFile); - if(!$width) { - return false; - } - - if($width < 10 || $height < 10 || $type == 4) { - return false; - } - - $imageType = array(1 => '.gif', 2 => '.jpg', 3 => '.png'); - $fileType = $imgType[$type]; - if(!$fileType) { - $fileType = '.jpg'; - } - $avatarPath = $_G['setting']['attachdir']; - $tmpAvatar = $avatarPath.'./temp/upload'.$uid.$fileType; - file_exists($tmpAvatar) && @unlink($tmpAvatar); - file_put_contents($tmpAvatar, file_get_contents($localFile)); - - if(!is_file($tmpAvatar)) { - return false; - } - - $tmpAvatarBig = './temp/upload'.$uid.'big'.$fileType; - $tmpAvatarMiddle = './temp/upload'.$uid.'middle'.$fileType; - $tmpAvatarSmall = './temp/upload'.$uid.'small'.$fileType; - - $image = new image; - if($image->Thumb($tmpAvatar, $tmpAvatarBig, 200, 250, 1) <= 0) { - return false; - } - if($image->Thumb($tmpAvatar, $tmpAvatarMiddle, 120, 120, 1) <= 0) { - return false; - } - if($image->Thumb($tmpAvatar, $tmpAvatarSmall, 48, 48, 2) <= 0) { - return false; - } - - $tmpAvatarBig = $avatarPath.$tmpAvatarBig; - $tmpAvatarMiddle = $avatarPath.$tmpAvatarMiddle; - $tmpAvatarSmall = $avatarPath.$tmpAvatarSmall; - - $avatar1 = self::byte2hex(file_get_contents($tmpAvatarBig)); - $avatar2 = self::byte2hex(file_get_contents($tmpAvatarMiddle)); - $avatar3 = self::byte2hex(file_get_contents($tmpAvatarSmall)); - - $extra = '&avatar1='.$avatar1.'&avatar2='.$avatar2.'&avatar3='.$avatar3; - $result = self::uc_api_post_ex('user', 'rectavatar', array('uid' => $uid), $extra); - - @unlink($tmpAvatar); - @unlink($tmpAvatarBig); - @unlink($tmpAvatarMiddle); - @unlink($tmpAvatarSmall); - - return true; - } - - public static function byte2hex($string) { - $buffer = ''; - $value = unpack('H*', $string); - $value = str_split($value[1], 2); - $b = ''; - foreach($value as $k => $v) { - $b .= strtoupper($v); - } - - return $b; - } - - public static function uc_api_post_ex($module, $action, $arg = array(), $extra = '') { - $s = $sep = ''; - foreach($arg as $k => $v) { - $k = urlencode($k); - if(is_array($v)) { - $s2 = $sep2 = ''; - foreach($v as $k2 => $v2) { - $k2 = urlencode($k2); - $s2 .= "$sep2{$k}[$k2]=".urlencode(uc_stripslashes($v2)); - $sep2 = '&'; - } - $s .= $sep.$s2; - } else { - $s .= "$sep$k=".urlencode(uc_stripslashes($v)); - } - $sep = '&'; - } - $postdata = uc_api_requestdata($module, $action, $s, $extra); - return uc_fopen2(UC_API.'/index.php', 500000, $postdata, '', TRUE, UC_IP, 20); - } -} - -class showActivity { - - public static $init = false; - - function init() { - global $_G; - if(!$_G['wechat']['setting']['wsq_allow'] || !in_array($_G['tid'], (array)$_G['wechat']['setting']['showactivity']['tids'])) { - return false; - } - if(!self::$init) { - $_G['setting']['allowpostcomment'] = array(0 => 1, 1 => 2); - $_G['setting']['commentnumber'] = 10; - $_G['setting']['commentpostself'] = 0; - $_G['setting']['commentfirstpost'] = 0; - $_G['setting']['fastpost'] = 0; - $_G['setting']['showimages'] = 1; - $_G['setting']['imagelistthumb'] = 1; - $_G['setting']['activitypp'] = 0; - $_G['setting']['disallowfloat'] .= '|reply'; - $_G['setting']['guesttipsinthread']['flag'] = 0; - $_G['setting']['nofilteredpost'] = 0; - $_G['group']['allowgetimage'] = 1; - if($_G['basescript'].'::'.CURMODULE == 'forum::post' && $_GET['action'] == 'edit') { - $_G['group']['allowpostactivity'] = true; - $_G['forum']['allowpostspecial'] = 255; - } - $_GET['ordertype'] = empty($_GET['ordertype']) ? 1 : $_GET['ordertype']; - self::$init = true; - } - return true; - } - - function misc() { - global $_G; - if(!$_POST || $_GET['action'] != 'activityapplies' && $_GET['action'] != 'activityapplylist') { - return; - } - if(submitcheck('activitysubmit')) { - showmessage('wechat:show_please_reply'); - } elseif(submitcheck('activitycancel')) { - showmessage('wechat:show_no_cancel'); - } elseif(submitcheck('applylistsubmit') && $_GET['operation'] == 'replenish') { - showmessage('wechat:show_disabled'); - } - } - - function post() { - global $_G; - if($_GET['action'] != 'reply') { - return; - } - if(submitcheck('replysubmit')) { - $activity = C::t('forum_activity')->fetch($_G['tid']); - if($activity['starttimefrom'] > TIMESTAMP) { - showmessage('wechat:show_no_begin', NULL, array()); - } - if($activity['expiration'] && $activity['expiration'] < TIMESTAMP) { - showmessage('activity_stop', NULL, array(), array('login' => 1)); - } - if(empty($_GET['attachnew'])) { - showmessage('wechat:show_please_upload'); - } - $data = array('tid' => $_G['tid'], 'username' => $_G['username'], 'uid' => $_G['uid'], 'message' => '', 'verified' => 1, 'dateline' => $_G['timestamp']); - C::t('forum_activityapply')->insert($data); - $applynumber = C::t('forum_activityapply')->fetch_count_for_thread($_G['tid']); - C::t('forum_activity')->update($_G['tid'], array('applynumber' => $applynumber)); - } - } - - function returnvoters($type) { - global $_G; - $return = array(); - if($type == 1) { - $posts = DB::fetch_all("SELECT * FROM %t WHERE tid=%d", array('forum_debatepost', $_G['tid']), 'pid'); - foreach($GLOBALS['postlist'] as $post) { - $posts[$post['pid']]['voters'] = intval($posts[$post['pid']]['voters']); - $return[] = !$post['first'] ? wechatshowactivity_tpl_voters($posts[$post['pid']]) : ''; - } - } else { - foreach($GLOBALS['postlist'] as $post) { - $return[] = !$post['first'] ? wechatshowactivity_tpl_share($post) : ''; - } - } - return $return; - } - +fetch($_G['uid']); + if($_G['wechatuser'] && !$_G['wechatuser']['status']) { + $_G['wechatuser']['isregister'] = 1; + } + } else { + $_G['wechatuser'] = C::t('#wechat#common_member_wechat')->fetch($_G['uid']); + } + if($_G['wechatuser'] && $wechatuser['status'] == 1) { + C::t('#wechat#common_member_wechat')->update($_G['uid'], array('status' => 0)); + require_once libfile('function/member'); + clearcookies(); + } + } + + if(!$_G['uid'] && !defined('IN_MOBILE') && $_G['wechat']['setting']['wsq_allow']) { + $_G['setting']['pluginhooks']['global_login_text'] .= wechat_tpl_login_bar(); + } + + $_G['Plang'] = $_G['setting']['wechatviewpluginid'] ? lang('plugin/'.$_G['setting']['wechatviewpluginid']) : array(); + + if(!$_G['Plang'] || !$_G['wechatuser']) { + unset($_G['setting']['plugins']['spacecp']['wechat:spacecp']); + } + } + + function deletemember($param) { + $uids = $param['param'][0]; + $step = $param['step']; + if ($step == 'check' && $uids && is_array($uids)) { + foreach($uids as $uid) { + C::t('#wechat#common_member_wechat')->delete($uid); + } + } + } + + function global_login_extra() { + global $_G; + if(!$_G['Plang'] || $_G['inshowmessage'] || !$_G['wechat']['setting']['wsq_allow']) { + return; + } + return wechat_tpl_login_extra_bar(); + } + + function global_usernav_extra1() { + global $_G; + if(!$_G['Plang'] || $_G['wechatuser'] || !$_G['wechat']['setting']['wsq_allow'] || !$_G['uid']) { + return; + } + return wechat_tpl_user_bar(); + } + + function global_footer() { + global $_G; + if($_G['wechat']['setting']['wechat_float_qrcode'] && $_G['wechat']['setting']['wsq_siteid'] && $_G['wechat']['setting']['wsq_allow']) { + $modid = $_G['basescript'].'::'.CURMODULE; + if($modid == 'forum::forumdisplay' && !empty($_GET['fid'])) { + $idstr = '&fid='.dintval($_GET['fid']); + return wechat_tpl_float_qrcode($idstr); + } elseif($modid == 'forum::viewthread' && !empty($_GET['tid'])) { + $idstr = '&tid='.dintval($_GET['tid']).'&qrsize=2'; + return wechat_tpl_float_qrcode($idstr); + } elseif($modid == 'forum::index') { + return wechat_tpl_float_qrcode(); + } + } + } + +} + +class mobileplugin_wechat { + + function common() { + global $_G; + if(!$_G['wechat']['setting']) { + $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + } + dsetcookie('mobile', '', -1); + if(!isset($_GET['pluginid'])) { + $redirect = WeChat::redirect(1); + if($redirect) { + dheader('location: '.$redirect); + } + } + } + +} + +class plugin_wechat_member extends plugin_wechat { + + function logging_method() { + global $_G; + if(!$_G['Plang'] || !$_G['wechat']['setting']['wsq_allow']) { + return; + } + return wechat_tpl_login_bar(); + } + + function register_top_output() { + global $_G; + if(strexists($_GET['referer'], 'wechat:login') && $_G['wechat']['setting']['wsq_allow']) { + return wechat_tpl_register(); + } + } + + function register_logging_method() { + global $_G; + if(!$_G['Plang'] || !$_G['wechat']['setting']['wsq_allow']) { + return; + } + return wechat_tpl_login_bar(); + } + +} + +class mobileplugin_wechat_forum extends mobileplugin_wechat { + + function post_showactivity() { + if(!showActivity::init()) { + return false; + } + showActivity::post(); + } + + function viewthread_showactivity() { + showActivity::init(); + } + + function misc_showactivity() { + showActivity::init(); + } + +} + +class plugin_wechat_forum extends plugin_wechat { + + function viewthread_showactivity() { + showActivity::init(); + } + + function viewthread_postheader_output() { + if(!showActivity::init()) { + return array(); + } + if($GLOBALS['activity']['starttimeto']) { + global $_G; + $starttimeto = strtotime($GLOBALS['activity']['starttimeto']); + if($starttimeto < TIMESTAMP && $_G['forum_thread']['displayorder'] > 0) { + C::t('forum_thread')->update($_G['tid'], array('displayorder' => 0)); + } + } + return showActivity::returnvoters(1); + } + + function viewthread_posttop_output() { + if(!showActivity::init()) { + return array(); + } + return showActivity::returnvoters(2); + } + + function misc_showactivity() { + if(!showActivity::init()) { + return false; + } + showActivity::misc(); + } + + function post_showactivity() { + if(!showActivity::init()) { + return false; + } + showActivity::post(); + } + + function viewthread_share_method_output() { + global $_G; + if($_G['wechat']['setting']['wsq_allow']) { + return wechat_tpl_share(showActivity::init()); + } + } + + function viewthread_postaction() { + global $_G; + if($_G['wechat']['setting']['wsq_allow'] && $_G['adminid'] == 1 && empty($_GET['viewpid'])) { + return array(wechat_tpl_resourcepush()); + } + } + +} + +class WeChat { + + static $QRCODE_EXPIRE = 1800; + + static public function getqrcode() { + global $_G; + if(!$_G['wechat']['setting']) { + $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + } + require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php'; + $wechat_client = new WeChatClient($_G['wechat']['setting']['wechat_appId'], $_G['wechat']['setting']['wechat_appsecret']); + + $ticket = ''; + if(!$_G['cookie']['wechat_ticket'] || $_G['wechat']['setting']['wechat_mtype'] == 1) { + $code = 0; + $i = 0; + do { + $code = rand(100000, 999999); + $codeexists = C::t('#wechat#mobile_wechat_authcode')->fetch_by_code($code); + $i++; + } while($codeexists && $i < 10); + + if($_G['wechat']['setting']['wechat_mtype'] == 2) { + $option = array( + 'scene_id' => $code, + 'expire' => self::$QRCODE_EXPIRE, + 'ticketOnly' => '1' + ); + $ticket = $wechat_client->getQrcodeTicket($option); + if(!$ticket) { + showmessage('wechat:wechat_message_codefull'); + } + dsetcookie('wechat_ticket', authcode($ticket."\t".$code, 'ENCODE'), self::$QRCODE_EXPIRE); + } + } else { + list($ticket, $code) = explode("\t", authcode($_G['cookie']['wechat_ticket'], 'DECODE')); + } + + $isqrapi = $ticket ? $ticket : ''; + if($codeexists) { + showmessage('wechat:wechat_message_codefull'); + } + + $qrcodeurl = !$isqrapi ? $_G['setting']['attachurl'].'common/'.$_G['wechat']['setting']['wechat_qrcode'] : $_G['siteurl'].'plugin.php?id=wechat:qrcode&rand='.random(5); + + $codeenc = urlencode(base64_encode(authcode($code, 'ENCODE', $_G['config']['security']['authkey']))); + C::t('#wechat#mobile_wechat_authcode')->insert(array('sid' => $_G['cookie']['saltkey'], 'uid' => $_G['uid'], 'code' => $code, 'createtime' => TIMESTAMP), 0, 1); + if(!discuz_process::islocked('clear_wechat_authcode')) { + C::t('#wechat#mobile_wechat_authcode')->delete_history(); + discuz_process::unlock('clear_wechat_authcode'); + } + return array($isqrapi, $qrcodeurl, $codeenc, $code); + } + + static public function redirect($type) { + global $_G; + $hook = unserialize($_G['setting']['wechatredirect']); + if (!$hook || !in_array($hook['plugin'], $_G['setting']['plugins']['available'])) { + return; + } + if(!preg_match("/^[\w\_]+$/i", $hook['plugin']) || !preg_match('/^[\w\_\.]+\.php$/i', $hook['include'])) { + return; + } + include_once DISCUZ_ROOT . 'source/plugin/' . $hook['plugin'] . '/' . $hook['include']; + if (!class_exists($hook['class'], false)) { + return; + } + $class = new $hook['class']; + if (!method_exists($class, $hook['method'])) { + return; + } + $return = call_user_func(array($class, $hook['method']), $type); + if($return) { + return $return; + } + } + + static public function register($username, $return = 0, $groupid = 0) { + global $_G; + if(!$username) { + return; + } + if(!$_G['wechat']['setting']) { + $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + } + + loaducenter(); + $groupid = !$groupid ? ($_G['wechat']['setting']['wechat_newusergroupid'] ? $_G['wechat']['setting']['wechat_newusergroupid'] : $_G['setting']['newusergroupid']) : $groupid; + + $password = md5(random(10)); + $email = 'wechat_'.strtolower(random(10)).'@null.null'; + + $usernamelen = dstrlen($username); + if($usernamelen < 3) { + $username = $username.'_'.random(5); + } + if($usernamelen > 15) { + if(!$return) { + showmessage('profile_username_toolong'); + } else { + return; + } + } + + $censorexp = '/^('.str_replace(array('\\*', "\r\n", ' '), array('.*', '|', ''), preg_quote(($_G['setting']['censoruser'] = trim($_G['setting']['censoruser'])), '/')).')$/i'; + + if($_G['setting']['censoruser'] && @preg_match($censorexp, $username)) { + if(!$return) { + showmessage('profile_username_protect'); + } else { + return; + } + } + + if(!$_G['wechat']['setting']['wechat_disableregrule']) { + loadcache('ipctrl'); + if($_G['cache']['ipctrl']['ipregctrl']) { + foreach(explode("\n", $_G['cache']['ipctrl']['ipregctrl']) as $ctrlip) { + if(preg_match("/^(".preg_quote(($ctrlip = trim($ctrlip)), '/').")/", $_G['clientip'])) { + $ctrlip = $ctrlip.'%'; + $_G['setting']['regctrl'] = $_G['setting']['ipregctrltime']; + break; + } else { + $ctrlip = $_G['clientip']; + } + } + } else { + $ctrlip = $_G['clientip']; + } + + if($_G['setting']['regctrl']) { + if(C::t('common_regip')->count_by_ip_dateline($ctrlip, $_G['timestamp']-$_G['setting']['regctrl']*3600)) { + if(!$return) { + showmessage('register_ctrl', NULL, array('regctrl' => $_G['setting']['regctrl'])); + } else { + return; + } + } + } + + $setregip = null; + if($_G['setting']['regfloodctrl']) { + $regip = C::t('common_regip')->fetch_by_ip_dateline($_G['clientip'], $_G['timestamp']-86400); + if($regip) { + if($regip['count'] >= $_G['setting']['regfloodctrl']) { + if(!$return) { + showmessage('register_flood_ctrl', NULL, array('regfloodctrl' => $_G['setting']['regfloodctrl'])); + } else { + return; + } + } else { + $setregip = 1; + } + } else { + $setregip = 2; + } + } + + if($setregip !== null) { + if($setregip == 1) { + C::t('common_regip')->update_count_by_ip($_G['clientip']); + } else { + C::t('common_regip')->insert(array('ip' => $_G['clientip'], 'count' => 1, 'dateline' => $_G['timestamp'])); + } + } + } + + $uid = uc_user_register(addslashes($username), $password, $email, '', '', $_G['clientip']); + if($uid <= 0) { + if(!$return) { + if($uid == -1) { + showmessage('profile_username_illegal'); + } elseif($uid == -2) { + showmessage('profile_username_protect'); + } elseif($uid == -3) { + showmessage('profile_username_duplicate'); + } elseif($uid == -4) { + showmessage('profile_email_illegal'); + } elseif($uid == -5) { + showmessage('profile_email_domain_illegal'); + } elseif($uid == -6) { + showmessage('profile_email_duplicate'); + } else { + showmessage('undefined_action'); + } + } else { + return; + } + } + + $init_arr = array('credits' => explode(',', $_G['setting']['initcredits'])); + C::t('common_member')->insert($uid, $username, $password, $email, $_G['clientip'], $groupid, $init_arr); + + if($_G['setting']['regctrl'] || $_G['setting']['regfloodctrl']) { + C::t('common_regip')->delete_by_dateline($_G['timestamp']-($_G['setting']['regctrl'] > 72 ? $_G['setting']['regctrl'] : 72)*3600); + if($_G['setting']['regctrl']) { + C::t('common_regip')->insert(array('ip' => $_G['clientip'], 'count' => -1, 'dateline' => $_G['timestamp'])); + } + } + + if($_G['setting']['regverify'] == 2) { + C::t('common_member_validate')->insert(array( + 'uid' => $uid, + 'submitdate' => $_G['timestamp'], + 'moddate' => 0, + 'admin' => '', + 'submittimes' => 1, + 'status' => 0, + 'message' => '', + 'remark' => '', + ), false, true); + manage_addnotify('verifyuser'); + } + + setloginstatus(array( + 'uid' => $uid, + 'username' => $username, + 'password' => $password, + 'groupid' => $groupid, + ), 0); + + include_once libfile('function/stat'); + updatestat('register'); + + return $uid; + } + + static public function syncAvatar($uid, $avatar) { + + if(!$uid || !$avatar) { + return false; + } + + if(!$content = dfsockopen($avatar)) { + return false; + } + + $tmpFile = DISCUZ_ROOT.'./data/avatar/'.TIMESTAMP.random(6); + file_put_contents($tmpFile, $content); + + if(!is_file($tmpFile)) { + return false; + } + + $result = uploadUcAvatar::upload($uid, $tmpFile); + unlink($tmpFile); + + C::t('common_member')->update($uid, array('avatarstatus'=>'1')); + + return $result; + } + + + + static public function getnewname($openid) { + global $_G; + if(!$_G['wechat']['setting']) { + $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); + } + $wechat_client = new WeChatClient($_G['wechat']['setting']['wechat_appId'], $_G['wechat']['setting']['wechat_appsecret']); + $userinfo = $wechat_client->getUserInfoById($openid); + if($userinfo) { + $defaultusername = substr(WeChatEmoji::clear($userinfo['nickname']), 0, 15); + loaducenter(); + $user = uc_get_user($defaultusername); + if(!empty($user)) { + $defaultusername = cutstr($defaultusername, 7, '').'_'.random(5); + } + } else { + $defaultusername = 'wx_'.random(5); + } + return $defaultusername; + } + +} + +class uploadUcAvatar { + + public static function upload($uid, $localFile) { + + global $_G; + if(!$uid || !$localFile) { + return false; + } + + list($width, $height, $type, $attr) = getimagesize($localFile); + if(!$width) { + return false; + } + + if($width < 10 || $height < 10 || $type == 4) { + return false; + } + + $imageType = array(1 => '.gif', 2 => '.jpg', 3 => '.png'); + $fileType = $imgType[$type]; + if(!$fileType) { + $fileType = '.jpg'; + } + $avatarPath = $_G['setting']['attachdir']; + $tmpAvatar = $avatarPath.'./temp/upload'.$uid.$fileType; + file_exists($tmpAvatar) && @unlink($tmpAvatar); + file_put_contents($tmpAvatar, file_get_contents($localFile)); + + if(!is_file($tmpAvatar)) { + return false; + } + + $tmpAvatarBig = './temp/upload'.$uid.'big'.$fileType; + $tmpAvatarMiddle = './temp/upload'.$uid.'middle'.$fileType; + $tmpAvatarSmall = './temp/upload'.$uid.'small'.$fileType; + + $image = new image; + if($image->Thumb($tmpAvatar, $tmpAvatarBig, 200, 250, 1) <= 0) { + return false; + } + if($image->Thumb($tmpAvatar, $tmpAvatarMiddle, 120, 120, 1) <= 0) { + return false; + } + if($image->Thumb($tmpAvatar, $tmpAvatarSmall, 48, 48, 2) <= 0) { + return false; + } + + $tmpAvatarBig = $avatarPath.$tmpAvatarBig; + $tmpAvatarMiddle = $avatarPath.$tmpAvatarMiddle; + $tmpAvatarSmall = $avatarPath.$tmpAvatarSmall; + + $avatar1 = self::byte2hex(file_get_contents($tmpAvatarBig)); + $avatar2 = self::byte2hex(file_get_contents($tmpAvatarMiddle)); + $avatar3 = self::byte2hex(file_get_contents($tmpAvatarSmall)); + + $extra = '&avatar1='.$avatar1.'&avatar2='.$avatar2.'&avatar3='.$avatar3; + $result = self::uc_api_post_ex('user', 'rectavatar', array('uid' => $uid), $extra); + + @unlink($tmpAvatar); + @unlink($tmpAvatarBig); + @unlink($tmpAvatarMiddle); + @unlink($tmpAvatarSmall); + + return true; + } + + public static function byte2hex($string) { + $buffer = ''; + $value = unpack('H*', $string); + $value = str_split($value[1], 2); + $b = ''; + foreach($value as $k => $v) { + $b .= strtoupper($v); + } + + return $b; + } + + public static function uc_api_post_ex($module, $action, $arg = array(), $extra = '') { + $s = $sep = ''; + foreach($arg as $k => $v) { + $k = urlencode($k); + if(is_array($v)) { + $s2 = $sep2 = ''; + foreach($v as $k2 => $v2) { + $k2 = urlencode($k2); + $s2 .= "$sep2{$k}[$k2]=".urlencode(uc_stripslashes($v2)); + $sep2 = '&'; + } + $s .= $sep.$s2; + } else { + $s .= "$sep$k=".urlencode(uc_stripslashes($v)); + } + $sep = '&'; + } + $postdata = uc_api_requestdata($module, $action, $s, $extra); + return uc_fopen2(UC_API.'/index.php', 500000, $postdata, '', TRUE, UC_IP, 20); + } +} + +class showActivity { + + public static $init = false; + + function init() { + global $_G; + if(!$_G['wechat']['setting']['wsq_allow'] || !in_array($_G['tid'], (array)$_G['wechat']['setting']['showactivity']['tids'])) { + return false; + } + if(!self::$init) { + $_G['setting']['allowpostcomment'] = array(0 => 1, 1 => 2); + $_G['setting']['commentnumber'] = 10; + $_G['setting']['commentpostself'] = 0; + $_G['setting']['commentfirstpost'] = 0; + $_G['setting']['fastpost'] = 0; + $_G['setting']['showimages'] = 1; + $_G['setting']['imagelistthumb'] = 1; + $_G['setting']['activitypp'] = 0; + $_G['setting']['disallowfloat'] .= '|reply'; + $_G['setting']['guesttipsinthread']['flag'] = 0; + $_G['setting']['nofilteredpost'] = 0; + $_G['group']['allowgetimage'] = 1; + if($_G['basescript'].'::'.CURMODULE == 'forum::post' && $_GET['action'] == 'edit') { + $_G['group']['allowpostactivity'] = true; + $_G['forum']['allowpostspecial'] = 255; + } + $_GET['ordertype'] = empty($_GET['ordertype']) ? 1 : $_GET['ordertype']; + self::$init = true; + } + return true; + } + + function misc() { + global $_G; + if(!$_POST || $_GET['action'] != 'activityapplies' && $_GET['action'] != 'activityapplylist') { + return; + } + if(submitcheck('activitysubmit')) { + showmessage('wechat:show_please_reply'); + } elseif(submitcheck('activitycancel')) { + showmessage('wechat:show_no_cancel'); + } elseif(submitcheck('applylistsubmit') && $_GET['operation'] == 'replenish') { + showmessage('wechat:show_disabled'); + } + } + + function post() { + global $_G; + if($_GET['action'] != 'reply') { + return; + } + if(submitcheck('replysubmit')) { + $activity = C::t('forum_activity')->fetch($_G['tid']); + if($activity['starttimefrom'] > TIMESTAMP) { + showmessage('wechat:show_no_begin', NULL, array()); + } + if($activity['expiration'] && $activity['expiration'] < TIMESTAMP) { + showmessage('activity_stop', NULL, array(), array('login' => 1)); + } + if(empty($_GET['attachnew'])) { + showmessage('wechat:show_please_upload'); + } + $data = array('tid' => $_G['tid'], 'username' => $_G['username'], 'uid' => $_G['uid'], 'message' => '', 'verified' => 1, 'dateline' => $_G['timestamp']); + C::t('forum_activityapply')->insert($data); + $applynumber = C::t('forum_activityapply')->fetch_count_for_thread($_G['tid']); + C::t('forum_activity')->update($_G['tid'], array('applynumber' => $applynumber)); + } + } + + function returnvoters($type) { + global $_G; + $return = array(); + if($type == 1) { + $posts = DB::fetch_all("SELECT * FROM %t WHERE tid=%d", array('forum_debatepost', $_G['tid']), 'pid'); + foreach($GLOBALS['postlist'] as $post) { + $posts[$post['pid']]['voters'] = intval($posts[$post['pid']]['voters']); + $return[] = !$post['first'] ? wechatshowactivity_tpl_voters($posts[$post['pid']]) : ''; + } + } else { + foreach($GLOBALS['postlist'] as $post) { + $return[] = !$post['first'] ? wechatshowactivity_tpl_share($post) : ''; + } + } + return $return; + } + } \ No newline at end of file diff --git a/source/plugin/wechat/wechat.inc.php b/source/plugin/wechat/wechat.inc.php index 7a57722..85232d9 100644 --- a/source/plugin/wechat/wechat.inc.php +++ b/source/plugin/wechat/wechat.inc.php @@ -1,301 +1,301 @@ -getOauthConnectUri($selfurl.$ac.'&oauth=yes'); - dheader('location: '.$redirect_uri); - } else { - $tockeninfo = $wechat_client->getAccessTokenByCode($_GET['code']); - $openid = $tockeninfo['openid']; - dsetcookie('wechatopenid', authcode($openid, 'ENCODE', $_G['config']['security']['authkey']), 86400); - } - } - } -} elseif($openid) { - dsetcookie('wechatopenid', authcode($openid, 'ENCODE', $_G['config']['security']['authkey']), 86400); -} - -wsq::report('loginevent'); - -require_once libfile('function/member'); - -if($openid) { - if($ac == 'qqbind') { - WeChatHook::bindOpenId($_G['uid'], $openid); - wsq::report('bind'); - $ac = 'bind'; - } - $wechatuser = C::t('#wechat#common_member_wechat')->fetch_by_openid($openid); - if(!$wechatuser) { - if($_G['uid']) { - clearcookies(); - dheader('location: '. $selfurl.$ac); - } - if($_G['wechat']['setting']['wechat_allowregister'] && $_G['wechat']['setting']['wechat_allowfastregister'] && $_G['wechat']['setting']['wechat_mtype'] == 2) { - $authcode = C::t('#wechat#mobile_wechat_authcode')->fetch($sid); - $uid = WeChat::register(WeChat::getnewname($openid), 1); - if($uid) { - WeChatHook::bindOpenId($uid, $openid, 1); - if($sid) { - C::t('#wechat#mobile_wechat_authcode')->update($sid, array('uid' => $uid, 'status' => 1)); - } - } - wsq::report('register'); - } - } -} - -if($op == 'access') { - $redirect = WeChat::redirect(); - if($redirect) { - dheader('location: '.$redirect); - } -} - -if($sid) { - $authcode = C::t('#wechat#mobile_wechat_authcode')->fetch($sid); - - if($authcode) { - if($_GET['confirm'] == 'delete') { - C::t('#wechat#mobile_wechat_authcode')->delete($authcode['sid']); - wechat_setloginstatus($authcode['uid'], false); - include template('wechat:wechat_bind_confirm'); - exit; - } - if($wechatuser && !$authcode['uid']) { - $member = getuserbyuid($wechatuser['uid'], 1); - if(empty($_GET['confirm']) && (!$_G['wechat']['setting']['wechat_confirmtype'] && $member['adminid'] > 0 || $_G['wechat']['setting']['wechat_confirmtype'] == 1)) { - wsq::report('showauthorized'); - include template('wechat:wechat_bind_confirm'); - exit; - } - setloginstatus($member, 1296000); - C::t('#wechat#mobile_wechat_authcode')->update($sid, array('uid' => $wechatuser['uid'], 'status' => 1)); - wechat_setloginstatus($wechatuser['uid'], true); - wsq::report('authorized'); - } elseif($authcode['uid']) { - $member = getuserbyuid($authcode['uid'], 1); - if(empty($_GET['confirm']) && (!$_G['wechat']['setting']['wechat_confirmtype'] && $member['adminid'] > 0 || $_G['wechat']['setting']['wechat_confirmtype'] == 1)) { - wsq::report('showauthorized'); - include template('wechat:wechat_bind_confirm'); - exit; - } - if($wechatuser) { - C::t('#wechat#common_member_wechat')->delete($wechatuser['uid']); - wsq::report('unbind'); - } - setloginstatus($member, 1296000); - C::t('#wechat#mobile_wechat_authcode')->update($sid, array('status' => 1)); - WeChatHook::bindOpenId($authcode['uid'], $openid); - wsq::report('bind'); - $wechatuser = C::t('#wechat#common_member_wechat')->fetch_by_openid($openid); - wechat_setloginstatus($authcode['uid'], true); - wsq::report('authorized'); - } - } -} elseif($wechatuser) { - $member = getuserbyuid($wechatuser['uid'], 1); - setloginstatus($member, 1296000); - wechat_setloginstatus($wechatuser['uid'], true); -} - -if($ac == 'bind' && $_G['wechat']['setting']['wechat_qrtype']) { - if(!$_G['uid'] && IN_WECHAT && $_G['wechat']['setting']['wechat_allowfastregister']) { - $ac = 'wxregister'; - } - list($_GET['username'], $wxopenid) = explode("\t", base64_decode($_GET['username'])); - $_GET['username'] = substr(WeChatEmoji::clear($_GET['username']), 0, 15); -} - -if($ac == 'bind') { - define('IN_MOBILE', 2); - - if($_G['wechat']['setting']['wechat_qrtype'] && $_GET['referer']) { - $_GET['referer'] = str_replace('&state=siteregister', '&state=backlogin', $_GET['referer']); - dheader('location: '.$_GET['referer']); - } - - if($_G['wechat']['setting']['wechat_mtype'] == 2) { - $defaultusername = WeChat::getnewname($openid); - } else { - $defaultusername = $_G['wechat']['setting']['wechat_qrtype'] ? $_GET['username'] : 'wx_'.random(5); - } - $defaultusername = htmlspecialchars($defaultusername); - - $connecturl = $_G['setting']['connect']['allow'] && !$_G['setting']['bbclosed'] ? $_G['siteurl'].'connect.php?mod=login&op=init&referer='.urlencode($selfurl.'qqbind').'&statfrom=login_simple' : ''; - - if(IN_WECHAT) { - if(!$_G['uid']) { - include template('wechat:wechat_bind'); - } else { - $redirect = WeChat::redirect(); - if($redirect) { - dheader('location: '.$redirect); - } else { - dheader('location: '.$_G['siteurl']); - } - } - } else { - dheader('location: '.$_G['siteurl'].'member.php?mod=logging&action=login&referer='.dreferer()); - } -} elseif($ac == 'login' && submitcheck('submit')) { - if(!($loginperm = logincheck($_GET['username']))) { - showmessage('login_strike'); - } - - if(!$_GET['password'] || $_GET['password'] != addslashes($_GET['password'])) { - showmessage('profile_passwd_illegal'); - } - - if(DISCUZ_VERSION < 'X3.0') { - $_GET['username'] = WeChatEmoji::clear($_GET['username']); - } - $result = userlogin($_GET['username'], $_GET['password'], $_GET['questionid'], $_GET['answer'], $_G['setting']['autoidselect'] ? 'auto' : $_GET['loginfield'], $_G['clientip']); - - if($result['status'] <= 0) { - loginfailed($_GET['username']); - failedip(); - showmessage('login_invalid', '', array('loginperm' => $loginperm - 1)); - } - - if(!$_G['wechat']['setting']['wechat_qrtype']) { - if($wechatuser) { - if($result['member']['uid'] != $wechatuser['uid']) { - showmessage('wechat:wechat_openid_exists'); - } - wechat_setloginstatus($result['member']['uid'], true); - } else { - WeChatHook::bindOpenId($result['member']['uid'], $openid); - wsq::report('bind'); - } - setloginstatus($result['member'], 1296000); - - showmessage('wechat:wechat_member_bind_succeed', $selfurl.'bind'); - } else { - C::t('#wechat#common_member_wechatmp')->insert(array('uid' => $result['member']['uid'], 'openid' => $_GET['wxopenid'], 'status' => 1), false, true); - wsq::report('bind'); - $url = wsq::wxuserregisterUrl($result['member']['uid']); - showmessage('wechat:wechat_member_bind_succeed', $url); - } -} elseif(($ac == 'register' && submitcheck('submit') || $ac == 'wxregister') && $_G['wechat']['setting']['wechat_allowregister']) { - if($wechatuser) { - showmessage('wechat:wechat_openid_exists'); - } else { - if($_G['wechat']['setting']['wechat_qrtype']) { - $mpmember = C::t('#wechat#common_member_wechatmp')->fetch_by_openid($wxopenid ? $wxopenid : $_GET['wxopenid']); - $mpmembers = C::t('common_member')->fetch_all(array_keys($mpmember)); - if ($mpmembers) { - $memberfirst = array_shift($mpmembers); - $member = getuserbyuid($memberfirst['uid'], 1); - if($member) { - setloginstatus($member, 1296000); - $url = wsq::wxuserregisterUrl($memberfirst['uid']); - if ($ac == 'wxregister') { - dheader('location: ' . $url); - } else { - showmessage('wechat:wechat_member_register_succeed', $url); - } - } - } - } - - if(DISCUZ_VERSION < 'X3.0' && $_G['inajax']) { - $_GET['username'] = WeChatEmoji::clear($_GET['username']); - } - if($ac == 'wxregister') { - loaducenter(); - $user = uc_get_user($_GET['username']); - if(!empty($user)) { - $_GET['username'] = cutstr($_GET['username'], 7, '').'_'.random(5); - } - } - - $uid = WeChat::register($_GET['username'], $ac == 'wxregister'); - - if($uid && $_GET['avatar']) { - WeChat::syncAvatar($uid, $_GET['avatar']); - } - - if(!$_G['wechat']['setting']['wechat_qrtype']) { - WeChatHook::bindOpenId($uid, $openid, 1); - wsq::report('register'); - showmessage('wechat:wechat_member_register_succeed', $selfurl.'bind&confirm=yes'); - } else { - C::t('#wechat#common_member_wechatmp')->insert(array('uid' => $uid, 'openid' => $wxopenid ? $wxopenid : $_GET['wxopenid'], 'status' => 0), false, true); - wsq::report('register'); - $url = wsq::wxuserregisterUrl($uid); - if($ac == 'wxregister') { - dheader('location: '.$url); - } else { - showmessage('wechat:wechat_member_register_succeed', $url); - } - } - } -} elseif($ac == 'logout') { - if($_GET['hash'] == formhash()) { - wechat_setloginstatus($_G['uid'], false); - clearcookies(); - } - mobile_core::result(array()); -} elseif($ac == 'unbind') { - if($_GET['hash'] == formhash()) { - if($wechatuser) { - C::t('#wechat#common_member_wechat')->delete($wechatuser['uid']); - wsq::report('unbind'); - } - clearcookies(); - } - mobile_core::result(array()); -} elseif($ac == 'unbindmp') { - if($_G['wechat']['setting']['wechat_qrtype'] && $_GET['hash'] == formhash()) { - C::t('#wechat#common_member_wechatmp')->delete($_GET['uid']); - } - mobile_core::result(array()); -} else { - showmessage('undefined_action'); -} - -function wechat_setloginstatus($uid, $login) { - C::t('#wechat#common_member_wechat')->update($uid, array('status' => $login ? 2 : 1)); +getOauthConnectUri($selfurl.$ac.'&oauth=yes'); + dheader('location: '.$redirect_uri); + } else { + $tockeninfo = $wechat_client->getAccessTokenByCode($_GET['code']); + $openid = $tockeninfo['openid']; + dsetcookie('wechatopenid', authcode($openid, 'ENCODE', $_G['config']['security']['authkey']), 86400); + } + } + } +} elseif($openid) { + dsetcookie('wechatopenid', authcode($openid, 'ENCODE', $_G['config']['security']['authkey']), 86400); +} + +wsq::report('loginevent'); + +require_once libfile('function/member'); + +if($openid) { + if($ac == 'qqbind') { + WeChatHook::bindOpenId($_G['uid'], $openid); + wsq::report('bind'); + $ac = 'bind'; + } + $wechatuser = C::t('#wechat#common_member_wechat')->fetch_by_openid($openid); + if(!$wechatuser) { + if($_G['uid']) { + clearcookies(); + dheader('location: '. $selfurl.$ac); + } + if($_G['wechat']['setting']['wechat_allowregister'] && $_G['wechat']['setting']['wechat_allowfastregister'] && $_G['wechat']['setting']['wechat_mtype'] == 2) { + $authcode = C::t('#wechat#mobile_wechat_authcode')->fetch($sid); + $uid = WeChat::register(WeChat::getnewname($openid), 1); + if($uid) { + WeChatHook::bindOpenId($uid, $openid, 1); + if($sid) { + C::t('#wechat#mobile_wechat_authcode')->update($sid, array('uid' => $uid, 'status' => 1)); + } + } + wsq::report('register'); + } + } +} + +if($op == 'access') { + $redirect = WeChat::redirect(); + if($redirect) { + dheader('location: '.$redirect); + } +} + +if($sid) { + $authcode = C::t('#wechat#mobile_wechat_authcode')->fetch($sid); + + if($authcode) { + if($_GET['confirm'] == 'delete') { + C::t('#wechat#mobile_wechat_authcode')->delete($authcode['sid']); + wechat_setloginstatus($authcode['uid'], false); + include template('wechat:wechat_bind_confirm'); + exit; + } + if($wechatuser && !$authcode['uid']) { + $member = getuserbyuid($wechatuser['uid'], 1); + if(empty($_GET['confirm']) && (!$_G['wechat']['setting']['wechat_confirmtype'] && $member['adminid'] > 0 || $_G['wechat']['setting']['wechat_confirmtype'] == 1)) { + wsq::report('showauthorized'); + include template('wechat:wechat_bind_confirm'); + exit; + } + setloginstatus($member, 1296000); + C::t('#wechat#mobile_wechat_authcode')->update($sid, array('uid' => $wechatuser['uid'], 'status' => 1)); + wechat_setloginstatus($wechatuser['uid'], true); + wsq::report('authorized'); + } elseif($authcode['uid']) { + $member = getuserbyuid($authcode['uid'], 1); + if(empty($_GET['confirm']) && (!$_G['wechat']['setting']['wechat_confirmtype'] && $member['adminid'] > 0 || $_G['wechat']['setting']['wechat_confirmtype'] == 1)) { + wsq::report('showauthorized'); + include template('wechat:wechat_bind_confirm'); + exit; + } + if($wechatuser) { + C::t('#wechat#common_member_wechat')->delete($wechatuser['uid']); + wsq::report('unbind'); + } + setloginstatus($member, 1296000); + C::t('#wechat#mobile_wechat_authcode')->update($sid, array('status' => 1)); + WeChatHook::bindOpenId($authcode['uid'], $openid); + wsq::report('bind'); + $wechatuser = C::t('#wechat#common_member_wechat')->fetch_by_openid($openid); + wechat_setloginstatus($authcode['uid'], true); + wsq::report('authorized'); + } + } +} elseif($wechatuser) { + $member = getuserbyuid($wechatuser['uid'], 1); + setloginstatus($member, 1296000); + wechat_setloginstatus($wechatuser['uid'], true); +} + +if($ac == 'bind' && $_G['wechat']['setting']['wechat_qrtype']) { + if(!$_G['uid'] && IN_WECHAT && $_G['wechat']['setting']['wechat_allowfastregister']) { + $ac = 'wxregister'; + } + list($_GET['username'], $wxopenid) = explode("\t", base64_decode($_GET['username'])); + $_GET['username'] = substr(WeChatEmoji::clear($_GET['username']), 0, 15); +} + +if($ac == 'bind') { + define('IN_MOBILE', 2); + + if($_G['wechat']['setting']['wechat_qrtype'] && $_GET['referer']) { + $_GET['referer'] = str_replace('&state=siteregister', '&state=backlogin', $_GET['referer']); + dheader('location: '.$_GET['referer']); + } + + if($_G['wechat']['setting']['wechat_mtype'] == 2) { + $defaultusername = WeChat::getnewname($openid); + } else { + $defaultusername = $_G['wechat']['setting']['wechat_qrtype'] ? $_GET['username'] : 'wx_'.random(5); + } + $defaultusername = htmlspecialchars($defaultusername); + + $connecturl = $_G['setting']['connect']['allow'] && !$_G['setting']['bbclosed'] ? $_G['siteurl'].'connect.php?mod=login&op=init&referer='.urlencode($selfurl.'qqbind').'&statfrom=login_simple' : ''; + + if(IN_WECHAT) { + if(!$_G['uid']) { + include template('wechat:wechat_bind'); + } else { + $redirect = WeChat::redirect(); + if($redirect) { + dheader('location: '.$redirect); + } else { + dheader('location: '.$_G['siteurl']); + } + } + } else { + dheader('location: '.$_G['siteurl'].'member.php?mod=logging&action=login&referer='.dreferer()); + } +} elseif($ac == 'login' && submitcheck('submit')) { + if(!($loginperm = logincheck($_GET['username']))) { + showmessage('login_strike'); + } + + if(!$_GET['password'] || $_GET['password'] != addslashes($_GET['password'])) { + showmessage('profile_passwd_illegal'); + } + + if(DISCUZ_VERSION < 'X3.0') { + $_GET['username'] = WeChatEmoji::clear($_GET['username']); + } + $result = userlogin($_GET['username'], $_GET['password'], $_GET['questionid'], $_GET['answer'], $_G['setting']['autoidselect'] ? 'auto' : $_GET['loginfield'], $_G['clientip']); + + if($result['status'] <= 0) { + loginfailed($_GET['username']); + failedip(); + showmessage('login_invalid', '', array('loginperm' => $loginperm - 1)); + } + + if(!$_G['wechat']['setting']['wechat_qrtype']) { + if($wechatuser) { + if($result['member']['uid'] != $wechatuser['uid']) { + showmessage('wechat:wechat_openid_exists'); + } + wechat_setloginstatus($result['member']['uid'], true); + } else { + WeChatHook::bindOpenId($result['member']['uid'], $openid); + wsq::report('bind'); + } + setloginstatus($result['member'], 1296000); + + showmessage('wechat:wechat_member_bind_succeed', $selfurl.'bind'); + } else { + C::t('#wechat#common_member_wechatmp')->insert(array('uid' => $result['member']['uid'], 'openid' => $_GET['wxopenid'], 'status' => 1), false, true); + wsq::report('bind'); + $url = wsq::wxuserregisterUrl($result['member']['uid']); + showmessage('wechat:wechat_member_bind_succeed', $url); + } +} elseif(($ac == 'register' && submitcheck('submit') || $ac == 'wxregister') && $_G['wechat']['setting']['wechat_allowregister']) { + if($wechatuser) { + showmessage('wechat:wechat_openid_exists'); + } else { + if($_G['wechat']['setting']['wechat_qrtype']) { + $mpmember = C::t('#wechat#common_member_wechatmp')->fetch_by_openid($wxopenid ? $wxopenid : $_GET['wxopenid']); + $mpmembers = C::t('common_member')->fetch_all(array_keys($mpmember)); + if ($mpmembers) { + $memberfirst = array_shift($mpmembers); + $member = getuserbyuid($memberfirst['uid'], 1); + if($member) { + setloginstatus($member, 1296000); + $url = wsq::wxuserregisterUrl($memberfirst['uid']); + if ($ac == 'wxregister') { + dheader('location: ' . $url); + } else { + showmessage('wechat:wechat_member_register_succeed', $url); + } + } + } + } + + if(DISCUZ_VERSION < 'X3.0' && $_G['inajax']) { + $_GET['username'] = WeChatEmoji::clear($_GET['username']); + } + if($ac == 'wxregister') { + loaducenter(); + $user = uc_get_user($_GET['username']); + if(!empty($user)) { + $_GET['username'] = cutstr($_GET['username'], 7, '').'_'.random(5); + } + } + + $uid = WeChat::register($_GET['username'], $ac == 'wxregister'); + + if($uid && $_GET['avatar']) { + WeChat::syncAvatar($uid, $_GET['avatar']); + } + + if(!$_G['wechat']['setting']['wechat_qrtype']) { + WeChatHook::bindOpenId($uid, $openid, 1); + wsq::report('register'); + showmessage('wechat:wechat_member_register_succeed', $selfurl.'bind&confirm=yes'); + } else { + C::t('#wechat#common_member_wechatmp')->insert(array('uid' => $uid, 'openid' => $wxopenid ? $wxopenid : $_GET['wxopenid'], 'status' => 0), false, true); + wsq::report('register'); + $url = wsq::wxuserregisterUrl($uid); + if($ac == 'wxregister') { + dheader('location: '.$url); + } else { + showmessage('wechat:wechat_member_register_succeed', $url); + } + } + } +} elseif($ac == 'logout') { + if($_GET['hash'] == formhash()) { + wechat_setloginstatus($_G['uid'], false); + clearcookies(); + } + mobile_core::result(array()); +} elseif($ac == 'unbind') { + if($_GET['hash'] == formhash()) { + if($wechatuser) { + C::t('#wechat#common_member_wechat')->delete($wechatuser['uid']); + wsq::report('unbind'); + } + clearcookies(); + } + mobile_core::result(array()); +} elseif($ac == 'unbindmp') { + if($_G['wechat']['setting']['wechat_qrtype'] && $_GET['hash'] == formhash()) { + C::t('#wechat#common_member_wechatmp')->delete($_GET['uid']); + } + mobile_core::result(array()); +} else { + showmessage('undefined_action'); +} + +function wechat_setloginstatus($uid, $login) { + C::t('#wechat#common_member_wechat')->update($uid, array('status' => $login ? 2 : 1)); } \ No newline at end of file diff --git a/source/plugin/wechat/wechat.lib.class.php b/source/plugin/wechat/wechat.lib.class.php index 6553989..2051b96 100644 --- a/source/plugin/wechat/wechat.lib.class.php +++ b/source/plugin/wechat/wechat.lib.class.php @@ -1,1076 +1,1076 @@ -_token = $token; - $this->_hooks = $hooks; - $this->accessDataPush(); - } - - private function _activeHook($type) { - if (!isset($this->_hooks[$type])) { - return null; - } - $hook = & $this->_hooks[$type]; - global $_G; - if (!in_array($hook['plugin'], $_G['setting']['plugins']['available'])) { - return null; - } - if (!preg_match("/^[\w\_]+$/i", $hook['plugin']) || !preg_match('/^[\w\_\.]+\.php$/i', $hook['include'])) { - return null; - } - include_once DISCUZ_ROOT . 'source/plugin/' . $hook['plugin'] . '/' . $hook['include']; - if (!class_exists($hook['class'], false)) { - return null; - } - if (!isset($this->classes[$hook['class']])) { - $this->classes[$hook['class']] = new $hook['class']; - } - if (!method_exists($this->classes[$hook['class']], $hook['method'])) { - return null; - } - $param = func_get_args(); - array_shift($param); - return $this->classes[$hook['class']]->$hook['method']($param); - } - - private function _checkSignature() { - $signature = $_GET["signature"]; - $timestamp = $_GET["timestamp"]; - $nonce = $_GET["nonce"]; - - $token = $this->_token; - $tmpArr = array($token, $timestamp, $nonce); - sort($tmpArr, SORT_STRING); - $tmpStr = implode($tmpArr); - $tmpStr = sha1($tmpStr); - - return $tmpStr == $signature; - } - - private function _handlePostObj($postObj) { - $MsgType = strtolower((string) $postObj->MsgType); - $result = array( - 'from' => self::$_from_id = (string) htmlspecialchars($postObj->FromUserName), - 'to' => self::$_my_id = (string) htmlspecialchars($postObj->ToUserName), - 'time' => (int) $postObj->CreateTime, - 'type' => (string) $MsgType - ); - - if (property_exists($postObj, 'MsgId')) { - $result['id'] = $postObj->MsgId; - } - - switch ($result['type']) { - case 'text': - $result['content'] = (string) $postObj->Content; // Content Ϣ - break; - - case 'location': - $result['X'] = (float) $postObj->Location_X; // Location_X λγ - $result['Y'] = (float) $postObj->Location_Y; // Location_Y λþ - $result['S'] = (float) $postObj->Scale; // Scale ͼŴС - $result['I'] = (string) $postObj->Label; // Label λϢ - break; - - case 'image': - $result['url'] = (string) $postObj->PicUrl; // PicUrl ͼƬӣ߿HTTP GETȡ - $result['mid'] = (string) $postObj->MediaId; // MediaId ͼƬϢýidԵöýļؽӿȡݡ - break; - - case 'video': - $result['mid'] = (string) $postObj->MediaId; // MediaId ͼƬϢýidԵöýļؽӿȡݡ - $result['thumbmid'] = (string) $postObj->ThumbMediaId; // ThumbMediaId ƵϢͼýidԵöýļؽӿȡݡ - break; - - case 'link': - $result['title'] = (string) $postObj->Title; - $result['desc'] = (string) $postObj->Description; - $result['url'] = (string) $postObj->Url; - break; - - case 'voice': - $result['mid'] = (string) $postObj->MediaId; - $result['format'] = (string) $postObj->Format; - if (property_exists($postObj, Recognition)) { - $result['txt'] = (string) $postObj->Recognition; - } - break; - - case 'event': - $result['event'] = strtolower((string) $postObj->Event); - switch ($result['event']) { - - case 'subscribe': - case 'scan': - if (property_exists($postObj, EventKey)) { - $result['key'] = str_replace( - 'qrscene_', '', (string) $postObj->EventKey - ); - $result['ticket'] = (string) $postObj->Ticket; - } - break; - - case 'location': - $result['la'] = (string) $postObj->Latitude; - $result['lo'] = (string) $postObj->Longitude; - $result['p'] = (string) $postObj->Precision; - break; - - case 'click': - $result['key'] = (string) $postObj->EventKey; - break; - case 'masssendjobfinish': - $result['msg_id'] = (string) $postObj->MsgID; - $result['status'] = (string) $postObj->Status; - $result['totalcount'] = (string) $postObj->TotalCount; - $result['filtercount'] = (string) $postObj->FilterCount; - $result['sentcount'] = (string) $postObj->SentCount; - $result['errorcount'] = (string) $postObj->ErrorCount; - } - } - - return $result; - } - - private function accessDataPush() { - if (!$this->_checkSignature()) { - if (!headers_sent()) { - header('HTTP/1.1 404 Not Found'); - header('Status: 404 Not Found'); - } - $this->_activeHook('404'); - return; - } - - $postdata = file_get_contents("php://input"); - if ($postdata) { - if (!$this->_checkSignature()) { - return; - } - $postObj = simplexml_load_string($postdata, 'SimpleXMLElement', LIBXML_NOCDATA); - $postObj = $this->_handlePostObj($postObj); - - $this->_activeHook('receiveAllStart', $postObj); - - if (isset($postObj['event'])) { - $hookName = 'receiveEvent::' . $postObj['event']; - } else { - $hookName = 'receiveMsg::' . $postObj['type']; - } - $this->_activeHook($hookName, $postObj); - - $this->_activeHook('receiveAllEnd', $postObj); - } elseif (isset($_GET['echostr'])) { - - $this->_activeHook('accessCheckSuccess'); - if (!headers_sent()) { - header('Content-Type: text/plain'); - } - echo preg_replace('/[^a-z0-9]/i', '', $_GET['echostr']); - } - } - - private static $_from_id; - private static $_my_id; - - private static function _format2xml($nodes) { - $xml = '' - . '' - . '' - . '%s' - . '%s' - . ''; - $return = sprintf( - $xml, self::$_from_id, self::$_my_id, time(), $nodes - ); - return diconv($return, CHARSET, 'UTF-8'); - } - - public static function getXml4Txt($txt) { - $xml = '' - . ''; - return self::_format2xml( - sprintf( - $xml, $txt - ) - ); - } - - public static function getXml4ImgByMid($mid) { - $xml = '' - . '' - . '' - . ''; - return self::_format2xml( - sprintf( - $xml, $mid - ) - ); - } - - public static function getXml4VoiceByMid($mid) { - $xml = '' - . '' - . '' - . ''; - return self::_format2xml( - sprintf( - $xml, $mid - ) - ); - } - - public static function getXml4VideoByMid($mid, $title, $desc = '') { - $desc = '' !== $desc ? $desc : $title; - $xml = '' - . ''; - - return self::_format2xml( - sprintf( - $xml, $mid, $title, $desc - ) - ); - } - - public static function getXml4MusicByUrl($url, $thumbmid, $title, $desc = '', $hqurl = '') { - $xml = '' - . '' - . '<![CDATA[%s]]>' - . '' - . '' - . '' - . '' - . ''; - - return self::_format2xml( - sprintf( - $xml, $title, '' === $desc ? $title : $desc, $url, $hqurl ? $hqurl : $url, $thumbmid - ) - ); - } - - public static function getXml4RichMsgByArray($list) { - $max = 10; - $i = 0; - $ii = count($list); - $list_xml = ''; - while ($i < $ii && $i < $max) { - $item = $list[$i++]; - $list_xml .= - sprintf( - '' - . '<![CDATA[%s]]> ' - . '' - . '' - . '' - . '', $item['title'], $item['desc'], $item['pic'], $item['url'] - ); - } - - $xml = '' - . '%s' - . '%s'; - - return self::_format2xml( - sprintf( - $xml, $i, $list_xml - ) - ); - } - -} - -class WeChatClient { - - public static $_URL_API_ROOT = 'https://api.weixin.qq.com'; - public static $_URL_FILE_API_ROOT = 'http://file.api.weixin.qq.com'; - public static $_URL_QR_ROOT = 'http://mp.weixin.qq.com'; - public static $_QRCODE_TICKET_DEFAULT_ID = 1; - public static $ERRCODE_MAP = array( - '-1' => '系统繁忙', - '0' => '请求成功', - '40001' => '获取access_token时AppSecret错误,或者access_token无效', - '40002' => '不合法的凭证类型', - '40003' => '不合法的OpenID', - '40004' => '不合法的媒体文件类型', - '40005' => '不合法的文件类型', - '40006' => '不合法的文件大小', - '40007' => '不合法的媒体文件id', - '40008' => '不合法的消息类型', - '40009' => '不合法的图片文件大小', - '40010' => '不合法的语音文件大小', - '40011' => '不合法的视频文件大小', - '40012' => '不合法的缩略图文件大小', - '40013' => '不合法的APPID', - '40014' => '不合法的access_token', - '40015' => '不合法的菜单类型', - '40016' => '不合法的按钮个数', - '40017' => '不合法的按钮个数', - '40018' => '不合法的按钮名字长度', - '40019' => '不合法的按钮KEY长度', - '40020' => '不合法的按钮URL长度', - '40021' => '不合法的菜单版本号', - '40022' => '不合法的子菜单级数', - '40023' => '不合法的子菜单按钮个数', - '40024' => '不合法的子菜单按钮类型', - '40025' => '不合法的子菜单按钮名字长度', - '40026' => '不合法的子菜单按钮KEY长度', - '40027' => '不合法的子菜单按钮URL长度', - '40028' => '不合法的自定义菜单使用用户', - '40029' => '不合法的oauth_code', - '40030' => '不合法的refresh_token', - '40031' => '不合法的openid列表', - '40032' => '不合法的openid列表长度', - '40033' => '不合法的请求字符,不能包含\uxxxx格式的字符', - '40035' => '不合法的参数', - '40038' => '不合法的请求格式', - '40039' => '不合法的URL长度', - '40050' => '不合法的分组id', - '40051' => '分组名字不合法', - '41001' => '缺少access_token参数', - '41002' => '缺少appid参数', - '41003' => '缺少refresh_token参数', - '41004' => '缺少secret参数', - '41005' => '缺少多媒体文件数据', - '41006' => '缺少media_id参数', - '41007' => '缺少子菜单数据', - '41008' => '缺少oauth code', - '41009' => '缺少openid', - '42001' => 'access_token超时', - '42002' => 'refresh_token超时', - '42003' => 'oauth_code超时', - '43001' => '需要GET请求', - '43002' => '需要POST请求', - '43003' => '需要HTTPS请求', - '43004' => '需要接收者关注', - '43005' => '需要好友关系', - '44001' => '多媒体文件为空', - '44002' => 'POST的数据包为空', - '44003' => '图文消息内容为空', - '44004' => '文本消息内容为空', - '45001' => '多媒体文件大小超过限制', - '45002' => '消息内容超过限制', - '45003' => '标题字段超过限制', - '45004' => '描述字段超过限制', - '45005' => '链接字段超过限制', - '45006' => '图片链接字段超过限制', - '45007' => '语音播放时间超过限制', - '45008' => '图文消息超过限制', - '45009' => '接口调用超过限制', - '45010' => '创建菜单个数超过限制', - '45015' => '回复时间超过限制', - '45016' => '系统分组,不允许修改', - '45017' => '分组名字过长', - '45018' => '分组数量超过上限', - '46001' => '不存在媒体数据', - '46002' => '不存在的菜单版本', - '46003' => '不存在的菜单数据', - '46004' => '不存在的用户', - '47001' => '解析JSON/XML内容错误', - '48001' => 'api功能未授权', - '50001' => '用户未授权该api', - ); - public static $_USERINFO_LANG = 'en'; - private $_appid; - private $_appsecret; - private static $_accessTokenCache = array(); - private static $ERROR_LOGS = array(); - private static $ERROR_NO = 0; - - public function __construct($appid, $appsecret = '') { - if ($appsecret) { - $this->_appid = $appid; - $this->_appsecret = $appsecret; - } else { - $info = WeChatHook::getAppInfo($appid); - $this->_appid = $info['appId']; - $this->_appsecret = $info['appSecret']; - } - } - - public static function error() { - return self::$ERRCODE_MAP[self::$ERROR_NO] ? self::$ERRCODE_MAP[self::$ERROR_NO] : self::$ERROR_NO; - } - - public static function checkIsSuc($res) { - $result = true; - if (is_string($res)) { - $res = json_decode($res, true); - } - if (isset($res['errcode']) && ( 0 !== (int) $res['errcode'])) { - array_push(self::$ERROR_LOGS, $res); - $result = false; - self::$ERROR_NO = $res['errcode']; - } - return $result; - } - - public static function get($url) { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - # curl_setopt($ch, CURLOPT_HEADER, 1); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); - - if (!curl_exec($ch)) { - error_log(curl_error($ch)); - $data = ''; - } else { - $data = curl_multi_getcontent($ch); - } - curl_close($ch); - return $data; - } - - private static function post($url, $data) { - if (!function_exists('curl_init')) { - return ''; - } - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - # curl_setopt( $ch, CURLOPT_HEADER, 1); - - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); - - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); - $data = curl_exec($ch); - if (!$data) { - error_log(curl_error($ch)); - } - curl_close($ch); - return $data; - } - - public function getAccessToken($tokenOnly = 1, $nocache = 0) { - global $_G; - $myTokenInfo = null; - $appid = $this->_appid; - $appsecret = $this->_appsecret; - $cachename = 'wechatat_' . $appid; - loadcache($cachename); - - if ($nocache || empty(self::$_accessTokenCache[$appid])) { - self::$_accessTokenCache[$appid] = $_G['cache'][$cachename]; - } - - if (!empty(self::$_accessTokenCache[$appid])) { - $myTokenInfo = self::$_accessTokenCache[$appid]; - if (time() < $myTokenInfo['expiration']) { - return $tokenOnly ? $myTokenInfo['token'] : $myTokenInfo; - } - } - - $url = self::$_URL_API_ROOT . "/cgi-bin/token?grant_type=client_credential&appid=$appid&secret=$appsecret"; - - $json = self::get($url); - $res = json_decode($json, true); - - if (self::checkIsSuc($res)) { - self::$_accessTokenCache[$appid] = $myTokenInfo = array( - 'token' => $res['access_token'], - 'expiration' => time() + (int) $res['expires_in'] - ); - savecache($cachename, $myTokenInfo); - } - return $tokenOnly ? $myTokenInfo['token'] : $myTokenInfo; - } - - public function setAccessToken($tokenInfo) { - if ($tokenInfo) { - $appid = $this->_appid; - self::$_accessTokenCache[$appid] = array( - 'token' => $tokenInfo['token'], - 'expire' => $tokenInfo['expire'] - ); - } - } - - public function upload($type, $file_path, $mediaidOnly = 1) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_FILE_API_ROOT . "/cgi-bin/media/upload?access_token=$access_token&type=$type"; - - $res = self::post($url, array('media' => "@$file_path")); - $res = json_decode($res, true); - - if (self::checkIsSuc($res)) { - return $mediaidOnly ? $res['media_id'] : $res; - } - return null; - } - - public function download($mid) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_FILE_API_ROOT . "/cgi-bin/media/get?access_token=$access_token&media_id=$mid"; - - return self::get($url); - } - - public function getMenu() { - - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/menu/get?access_token=$access_token"; - - $json = self::get($url); - - $res = json_decode($json, true); - if (self::checkIsSuc($res)) { - return $res; - } - return null; - } - - public function deleteMenu() { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/menu/delete?access_token=$access_token"; - - $res = self::get($url); - return self::checkIsSuc($res); - } - - public function setMenu($myMenu) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/menu/create?access_token=$access_token"; - - if (defined('JSON_UNESCAPED_UNICODE')) { - $json = is_string($myMenu) ? $myMenu : json_encode($myMenu, JSON_UNESCAPED_UNICODE); - } else { - $json = is_string($myMenu) ? $myMenu : json_encode($myMenu); - } - - $json = urldecode($json); - $res = self::post($url, $json); - - return self::checkIsSuc($res); - } - - private function _send($to, $type, $data) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/message/custom/send?access_token=$access_token"; - - $json = json_encode( - array( - 'touser' => $to, - 'msgtype' => $type, - $type => $data - ) - ); - - $res = self::post($url, $json); - - return self::checkIsSuc($res); - } - - public function sendTextMsg($to, $msg) { - return $this->_send($to, 'text', array('content' => $msg)); - } - - public function sendImgMsg($to, $mid) { - return $this->_send($to, 'image', array('media_id' => $mid)); - } - - public function sendVoice($to, $mid) { - return $this->_send($to, 'voice', array('media_id' => $mid)); - } - - public function sendVideo($to, $mid, $title, $desc) { - return $this->_send($to, 'video', array( - 'media_id' => $mid, - 'title' => $title, - 'description' => $desc - )); - } - - public function sendMusic($to, $url, $thumb_mid, $title, $desc = '', $hq_url = '') { - return $this->_send($to, 'music', array( - 'media_id' => $mid, - 'title' => $title, - 'description' => $desc || $title, - 'musicurl' => $url, - 'thumb_media_id' => $thumb_mid, - 'hqmusicurl' => $hq_url || $url - )); - } - - static private function _filterForRichMsg($articles) { - $i = 0; - $ii = len($articles); - $list = array('title', 'desc', 'url', 'thumb_url'); - $result = array(); - while ($i < $ii) { - $currentArticle = $articles[$i++]; - try { - array_push($result, array( - 'title' => $currentArticle['title'], - 'description' => $currentArticle['desc'], - 'url' => $currentArticle['url'], - 'picurl' => $currentArticle['thumb_url'] - )); - } catch (Exception $e) { - - } - } - return $result; - } - - public function uploadNews($articles) { - $i = 0; - $ii = count($articles); - $result = array(); - while ($i < $ii) { - $currentArticle = $articles[$i++]; - try { - array_push($result, array( - 'thumb_media_id' => $currentArticle['thumb_media_id'], - 'title' => $this->convertToUtf($currentArticle['title']), - 'content' => $this->convertToUtf($currentArticle['content']), - 'author' => $this->convertToUtf($currentArticle['author']), - 'content_source_url' => $this->convertToUtf($currentArticle['url']), - 'digest' => $this->convertToUtf($currentArticle['desc']), - 'show_cover_pic' => 1 - )); - } catch (Exception $e) { - - } - } - - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/media/uploadnews?access_token=$access_token"; - if (defined('JSON_UNESCAPED_UNICODE')) { - $json = json_encode(array('articles' => $result), JSON_UNESCAPED_UNICODE); - } else { - $json = json_encode(array('articles' => $result)); - } - - $json = urldecode($json); - - $res = self::post($url, $json); - if (self::checkIsSuc($res)) { - return json_decode($res, true); - } else { - return false; - } - } - - public function sendMassMsg($msg) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/message/mass/sendall?access_token=$access_token"; - $post = array(); - $post['filter'] = array('group_id' => $msg['group_id']); - if ($msg['type'] == 'media') { - $post['mpnews'] = array('media_id' => $msg['media_id']); - $post['msgtype'] = 'mpnews'; - } else { - $post['text'] = array('content' => $this->convertToUtf($msg['text'])); - $post['msgtype'] = 'text'; - } - - if (defined('JSON_UNESCAPED_UNICODE')) { - $json = json_encode($post, JSON_UNESCAPED_UNICODE); - } else { - $json = json_encode($post); - } - - $json = urldecode($json); - - $res = self::post($url, $json); - if (self::checkIsSuc($res)) { - return json_decode($res, true); - } else { - return false; - } - } - - function convertToUtf($str) { - return urlencode(diconv($str, CHARSET, 'UTF-8')); - } - - public function sendRichMsg($to, $articles) { - - return $this->_send($to, 'news', array( - 'articles' => self::_filterForRichMsg($articles) - )); - } - - public function createGroup($name) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/groups/create?access_token=$access_token"; - - $res = self::post($url, json_encode(array( - 'group' => array('name' => $name) - ))); - - $res = json_decode($res, true); - return self::checkIsSuc($res) ? $res['group']['id'] : null; - } - - public function renameGroup($gid, $name) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/groups/update?access_token=$access_token"; - - $res = self::post($url, json_encode(array( - 'group' => array( - 'id' => $gid, - 'name' => $name - ) - ))); - - $res = json_decode($res, true); - return self::checkIsSuc($res); - } - - public function moveUserById($uid, $gid) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/groups/members/update?access_token=$access_token"; - - $res = self::post( - $url, json_encode( - array( - 'openid' => $mid, - 'to_groupid' => $gid - ) - ) - ); - - $res = json_decode($res, true); - return self::checkIsSuc($res); - } - - public function getAllGroups() { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/groups/get?access_token=$access_token"; - - $res = json_decode(self::get($url), true); - - if (self::checkIsSuc($res)) { - return $res['groups']; - } else { - return null; - } - } - - public function getGroupidByUserid($uid) { - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/groups/getid?access_token=$access_token"; - - $res = self::post($url, json_encode(array( - 'openid' => $mid - ))); - - $res = json_decode($res, true); - return self::checkIsSuc($res) ? $res['groupid'] : null; - } - - public function getUserInfoById($uid, $lang = '') { - if (!$lang) { - $lang = self::$_USERINFO_LANG; - } - $access_token = $this->getAccessToken(); - $url = self::$_URL_API_ROOT . "/cgi-bin/user/info?access_token=$access_token&openid=$uid&lang=$lang"; - - $res = json_decode(self::get($url), true); - - return self::checkIsSuc($res) ? $res : null; - } - - public function getFollowersList($next_id = '') { - $access_token = $this->getAccessToken(); - $extend = ''; - if ($next_id) { - $extend = "&next_openid=$next_id"; - } - $url = self::$_URL_API_ROOT . "/cgi-bin/user/get?access_token=${access_token}$extend"; - - $res = json_decode( - self::get($url), true - ); - - return self::checkIsSuc($res) ? array( - 'total' => $res['total'], - 'list' => $res['data']['openid'], - 'next_id' => isset($res['next_openid']) ? $res['next_openid'] : null - ) : null; - } - - public function getOAuthConnectUri($redirect_uri, $state = '', $scope = 'snsapi_base') { - $redirect_uri = urlencode($redirect_uri); - $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$this->_appid}&redirect_uri={$redirect_uri}&response_type=code&scope={$scope}&state={$state}#wechat_redirect"; - return $url; - } - - public function getAccessTokenByCode($code) { - $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid={$this->_appid}&secret={$this->_appsecret}&code=$code&grant_type=authorization_code"; - $res = json_decode(self::get($url), true); - return $res; - } - - public function refreshAccessTocken($refresh_token) { - $url = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid={$this->_appid}&grant_type=refresh_token&refresh_token=$refresh_token"; - $res = json_decode(self::get($url), true); - return $res; - } - - public function getUserInfoByAuth($access_token, $openid, $lang = 'zh_CN') { - $url = "https://api.weixin.qq.com/sns/userinfo?access_token=$access_token&openid=$openid&lang=$lang"; - $res = json_decode(self::get($url), true); - return $res; - } - - public static function getQrcodeImgByTicket($ticket) { - return self::get($this->getQrcodeImgUrlByTicket($ticket)); - } - - public static function getQrcodeImgUrlByTicket($ticket) { - $ticket = urlencode($ticket); - return self::$_URL_QR_ROOT . "/cgi-bin/showqrcode?ticket=$ticket"; - } - - public function getQrcodeTicket($options = array()) { - $access_token = $this->getAccessToken(); - - $scene_id = isset($options['scene_id']) ? (int) $options['scene_id'] : 0; - $expire = isset($options['expire']) ? (int) $options['expire'] : 0; - $ticketOnly = isset($options['ticketOnly']) ? $options['ticketOnly'] : 1; - - $url = self::$_URL_API_ROOT . "/cgi-bin/qrcode/create?access_token=$access_token"; - $data = array( - 'action_name' => 'QR_LIMIT_SCENE', - 'action_info' => array( - 'scene' => array( - 'scene_id' => $scene_id - ) - ) - ); - if ($expire) { - $data['expire_seconds'] = $expire; - $data['action_name'] = 'QR_SCENE'; - } - - if ($data['action_name'] == 'QR_LIMIT_SCENE' && $scene_id > 100000) { - $data['action_info']['scene']['scene_id'] = self::$_QRCODE_TICKET_DEFAULT_ID; - } - - $data = json_encode($data); - - $res = self::post($url, $data); - $res = json_decode($res, true); - - if (self::checkIsSuc($res)) { - return $ticketOnly ? $res['ticket'] : array( - 'ticket' => $res['ticket'], - 'expire' => $res['expire_seconds'] - ); - } - return null; - } - -} - -class WeChatEmoji { - - public static function clear($str) { - $config = self::getList(); - $str = str_replace($config, '', $str); - return diconv($str, 'UTF-8', CHARSET); - } - - public static function getList() { - return array( - "\xee\x98\xbe", "\xee\x98\xbf", "\xee\x99\x80", "\xee\x99\x81", "\xee\x99\x82", "\xee\x99\x83", "\xee\x99\x84", "\xee\x99\x85", "\xee\x9a\xb3", "[\xe5\xa4\x95\xe7\x84\xbc\xe3\x81\x91]", "[\xe8\x99\xb9]", "[\xe9\x9b\xaa\xe7\xb5\x90\xe6\x99\xb6]", "\xee\x98\xbe\xee\x98\xbf", "\xee\x9c\xbf", "[\xe7\x81\xab\xe5\xb1\xb1]", "[\xe5\x9c\xb0\xe7\x90\x83]", "\xee\x9a\x9c", "\xee\x9a\x9d", "\xee\x9a\x9e", "\xee\x9a\x9f", "\xee\x9a\xa0", "[\xe2\x98\x86]", "\xe2\x98\x86\xe5\xbd\xa1", "\xee\x9a\xba", "\xee\x9c\x9f", "\xee\x9c\x9c", "\xee\x99\x86", "\xee\x99\x87", "\xee\x99\x88", "\xee\x99\x89", "\xee\x99\x8a", "\xee\x99\x8b", "\xee\x99\x8c", "\xee\x99\x8d", "\xee\x99\x8e", "\xee\x99\x8f", "\xee\x99\x90", "\xee\x99\x91", "[\xe8\x9b\x87\xe4\xbd\xbf\xe5\xba\xa7]", "\xee\x9d\x81", "\xee\x9d\x83", "\xee\x9d\x86", "\xee\x9d\x87", "\xee\x9d\x88", "[\xe3\x83\x90\xe3\x83\xa9]", "[\xe9\xa2\xa8\xe3\x81\xab\xe8\x88\x9e\xe3\x81\x86\xe8\x91\x89]", "[\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x93\xe3\x82\xb9\xe3\x82\xab\xe3\x82\xb9]", "[\xe3\x81\xb2\xe3\x81\xbe\xe3\x82\x8f\xe3\x82\x8a]", "[\xe3\x83\xa4\xe3\x82\xb7]", "[\xe3\x82\xb5\xe3\x83\x9c\xe3\x83\x86\xe3\x83\xb3]", "[\xe7\xa8\xb2\xe7\xa9\x82]", "[\xe3\x81\xa8\xe3\x81\x86\xe3\x82\x82\xe3\x82\x8d\xe3\x81\x93\xe3\x81\x97]", "[\xe3\x82\xad\xe3\x83\x8e\xe3\x82\xb3]", "[\xe6\xa0\x97]", "[\xe8\x8a\xb1]", "\xee\x9d\x82", "\xee\x9d\x84", "\xee\x9d\x85", "[\xe3\x81\xbf\xe3\x81\x8b\xe3\x82\x93]", "[\xe3\x82\xa4\xe3\x83\x81\xe3\x82\xb4]", "[\xe3\x82\xb9\xe3\x82\xa4\xe3\x82\xab]", "[\xe3\x83\x88\xe3\x83\x9e\xe3\x83\x88]", "[\xe3\x83\x8a\xe3\x82\xb9]", "[\xe3\x83\xa1\xe3\x83\xad\xe3\x83\xb3]", "[\xe3\x83\x91\xe3\x82\xa4\xe3\x83\x8a\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "[\xe3\x83\x96\xe3\x83\x89\xe3\x82\xa6]", "[\xe3\x83\xa2\xe3\x83\xa2]", "\xee\x9a\x91", "\xee\x9a\x92", "[\xe9\xbc\xbb]", "\xee\x9b\xb9", "\xee\x9c\xa8", "\xee\x9c\x90", "[\xe3\x83\x9e\xe3\x83\x8b\xe3\x82\xad\xe3\x83\xa5\xe3\x82\xa2]", "[\xe3\x82\xa8\xe3\x82\xb9\xe3\x83\x86]", "\xee\x99\xb5", "[\xe5\xba\x8a\xe5\xb1\x8b]", "\xee\x9a\xb1", "\xee\x9b\xb0", "[\xe5\xae\xb6\xe6\x97\x8f]", "[\xe3\x82\xab\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "[\xe8\xad\xa6\xe5\xae\x98]", "[\xe3\x83\x90\xe3\x83\x8b\xe3\x83\xbc]", "[\xe8\x8a\xb1\xe5\xab\x81]", "[\xe7\x99\xbd\xe4\xba\xba]", "[\xe4\xb8\xad\xe5\x9b\xbd\xe4\xba\xba]", "[\xe3\x82\xa4\xe3\x83\xb3\xe3\x83\x89\xe4\xba\xba]", "[\xe3\x81\x8a\xe3\x81\x98\xe3\x81\x84\xe3\x81\x95\xe3\x82\x93]", "[\xe3\x81\x8a\xe3\x81\xb0\xe3\x81\x82\xe3\x81\x95\xe3\x82\x93]", "[\xe8\xb5\xa4\xe3\x81\xa1\xe3\x82\x83\xe3\x82\x93]", "[\xe5\xb7\xa5\xe4\xba\x8b\xe7\x8f\xbe\xe5\xa0\xb4\xe3\x81\xae\xe4\xba\xba]", "[\xe3\x81\x8a\xe5\xa7\xab\xe6\xa7\x98]", "[\xe3\x81\xaa\xe3\x81\xbe\xe3\x81\xaf\xe3\x81\x92]", "[\xe5\xa4\xa9\xe7\x8b\x97]", "[\xe3\x81\x8a\xe5\x8c\x96\xe3\x81\x91]", "[\xe5\xa4\xa9\xe4\xbd\xbf]", "[UFO]", "[\xe5\xae\x87\xe5\xae\x99\xe4\xba\xba]", "[\xe3\x82\xa2\xe3\x82\xaf\xe3\x83\x9e]", "[\xe3\x83\x89\xe3\x82\xaf\xe3\x83\xad]", "[\xe6\xa1\x88\xe5\x86\x85]", "[\xe8\xa1\x9b\xe5\x85\xb5]", "[\xe3\x83\x80\xe3\x83\xb3\xe3\x82\xb9]", "\xee\x9d\x8e", "[\xe3\x83\x98\xe3\x83\x93]", "\xee\x9d\x94", "[\xe3\x83\x8b\xe3\x83\xaf\xe3\x83\x88\xe3\x83\xaa]", "[\xe3\x82\xa4\xe3\x83\x8e\xe3\x82\xb7\xe3\x82\xb7]", "[\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\x80]", "[\xe3\x82\xbe\xe3\x82\xa6]", "[\xe3\x82\xb3\xe3\x82\xa2\xe3\x83\xa9]", "[\xe3\x82\xb5\xe3\x83\xab]", "[\xe3\x83\x92\xe3\x83\x84\xe3\x82\xb8]", "[\xe3\x82\xbf\xe3\x82\xb3]", "[\xe5\xb7\xbb\xe8\xb2\x9d]", "[\xe3\x82\xb2\xe3\x82\xb8\xe3\x82\xb2\xe3\x82\xb8]", "[\xe3\x82\xa2\xe3\x83\xaa]", "[\xe3\x83\x9f\xe3\x83\x84\xe3\x83\x90\xe3\x83\x81]", "[\xe3\x81\xa6\xe3\x82\x93\xe3\x81\xa8\xe3\x81\x86\xe8\x99\xab]", "\xee\x9d\x91", "[\xe3\x82\xab\xe3\x83\xa1]", "\xee\x9d\x8f", "\xee\x9d\x90", "\xee\x9a\xa1", "[\xe3\x82\xa4\xe3\x83\xab\xe3\x82\xab]", "[\xe3\x83\x8d\xe3\x82\xba\xe3\x83\x9f]", "[\xe3\x83\x88\xe3\x83\xa9]", "\xee\x9a\xa2", "[\xe3\x82\xaf\xe3\x82\xb8\xe3\x83\xa9]", "\xee\x9d\x95", "[\xe3\x82\xaf\xe3\x83\x9e]", "[\xe3\x83\x8f\xe3\x83\xa0\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]", "[\xe7\x89\x9b]", "[\xe3\x82\xa6\xe3\x82\xb5\xe3\x82\xae]", "[\xe3\x82\xab\xe3\x82\xa8\xe3\x83\xab]", "\xee\x9a\x98", "[\xe8\xbe\xb0]", "[\xe3\x83\x91\xe3\x83\xb3\xe3\x83\x80]", "\xee\x9b\xb1", "\xee\x9b\xb3", "\xee\x9b\xb4", "\xee\x9b\xb2", "\xee\x9c\xa3", "\xee\x9c\xa5", "\xee\x9c\xa6", "\xee\x9d\x93", "\xee\x9d\x92", "[\xe9\xa2\xa8\xe9\x82\xaa\xe3\x81\xb2\xe3\x81\x8d]", "\xee\x9c\xaa", "\xee\x9c\xa2", "\xee\x9c\xae", "\xee\x9c\xad", "\xee\x9d\x97", "\xee\x9c\xab", "\xee\x9c\xa4", "\xee\x9c\xa1", "\xee\x9c\xa0", "\xee\x9c\x81", "\xee\x9c\xac", "\xee\x9c\xa9", "\xee\x9c\xaf", "\xee\x9c\x8b", "m(_ _)m", "(/_\xef\xbc\xbc)", "(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)", "|(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)|", "(^-^)/", "\xef\xbc\xbc(^o^)\xef\xbc\x8f", "(>\xe4\xba\xba<)", "\xee\x99\xa3", "\xee\x99\xa4", "\xee\x99\xa5", "\xee\x99\xa6", "\xee\x99\xa7", "\xee\x99\xa8", "\xee\x99\xa9", "\xee\x99\xa9\xee\x9b\xaf", "\xee\x99\xaa", "\xee\x9c\xbe", "[\xe6\x95\x99\xe4\xbc\x9a]", "[\xe5\x99\xb4\xe6\xb0\xb4]", "[\xe3\x83\x87\xe3\x83\x91\xe3\x83\xbc\xe3\x83\x88]", "[\xe5\x9f\x8e]", "[\xe5\xb7\xa5\xe5\xa0\xb4]", "\xee\x99\xa1", "\xee\x9d\x8b", "\xee\x9d\x80", "[\xe6\x9d\xb1\xe4\xba\xac\xe3\x82\xbf\xe3\x83\xaf\xe3\x83\xbc]", "[\xe8\x87\xaa\xe7\x94\xb1\xe3\x81\xae\xe5\xa5\xb3\xe7\xa5\x9e]", "[\xe6\x97\xa5\xe6\x9c\xac\xe5\x9c\xb0\xe5\x9b\xb3]", "[\xe3\x83\xa2\xe3\x82\xa2\xe3\x82\xa4]", "\xee\x9a\x99", "\xee\x99\xb4", "[\xe3\x83\x96\xe3\x83\xbc\xe3\x83\x84]", "\xee\x9a\x9a", "\xee\x9c\x8e", "\xee\x9c\x91", "\xee\x9c\x9a", "[\xe3\x83\x8d\xe3\x82\xaf\xe3\x82\xbf\xe3\x82\xa4]", "[\xe5\xb8\xbd\xe5\xad\x90]", "[\xe3\x83\x89\xe3\x83\xac\xe3\x82\xb9]", "[\xe7\x9d\x80\xe7\x89\xa9]", "[\xe3\x83\x93\xe3\x82\xad\xe3\x83\x8b]", "\xee\x9c\x8f", "\xee\x9a\x82", "\xee\x9a\xad", "\xee\x9c\x95", "[$\xef\xbf\xa5]", "[\xe6\xa0\xaa\xe4\xbe\xa1]", "[\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x89]", "\xee\x9b\x96", "[\xe9\xa3\x9b\xe3\x82\x93\xe3\x81\xa7\xe3\x81\x84\xe3\x81\x8f\xe3\x81\x8a\xe9\x87\x91]", "[\xe4\xb8\xad\xe5\x9b\xbd]", "[\xe3\x83\x89\xe3\x82\xa4\xe3\x83\x84]", "[\xe3\x82\xb9\xe3\x83\x9a\xe3\x82\xa4\xe3\x83\xb3]", "[\xe3\x83\x95\xe3\x83\xa9\xe3\x83\xb3\xe3\x82\xb9]", "[\xe3\x82\xa4\xe3\x82\xae\xe3\x83\xaa\xe3\x82\xb9]", "[\xe3\x82\xa4\xe3\x82\xbf\xe3\x83\xaa\xe3\x82\xa2]", "[\xe6\x97\xa5\xe3\x81\xae\xe4\xb8\xb8]", "[\xe9\x9f\x93\xe5\x9b\xbd]", "[\xe3\x83\xad\xe3\x82\xb7\xe3\x82\xa2]", "[USA]", "[\xe7\x82\x8e]", "\xee\x9b\xbb", "\xee\x9c\x98", "[\xe3\x83\x8f\xe3\x83\xb3\xe3\x83\x9e\xe3\x83\xbc]", "[\xe3\x83\x8d\xe3\x82\xb8]", "[\xe5\x8c\x85\xe4\xb8\x81]", "[\xe3\x83\x94\xe3\x82\xb9\xe3\x83\x88\xe3\x83\xab]", "[\xe5\x8d\xa0\xe3\x81\x84]", "[\xe8\x8b\xa5\xe8\x91\x89\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "[\xe6\xb3\xa8\xe5\xb0\x84]", "[\xe8\x96\xac]", "[A]", "[B]", "[AB]", "[O]", "\xee\x9a\x84", "\xee\x9a\x85", "\xee\x9a\x86", "\xee\x9a\xa4", "[\xe3\x82\xb5\xe3\x83\xb3\xe3\x82\xbf]", "[\xe7\xa5\x9d\xe6\x97\xa5]", "[\xe8\x8a\xb1\xe7\x81\xab]", "[\xe9\xa2\xa8\xe8\x88\xb9]", "[\xe3\x82\xaf\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xab\xe3\x83\xbc]", "[\xe9\x96\x80\xe6\x9d\xbe]", "[\xe3\x81\xb2\xe3\x81\xaa\xe7\xa5\xad\xe3\x82\x8a]", "[\xe5\x8d\x92\xe6\xa5\xad\xe5\xbc\x8f]", "[\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x89\xe3\x82\xbb\xe3\x83\xab]", "[\xe3\x81\x93\xe3\x81\x84\xe3\x81\xae\xe3\x81\xbc\xe3\x82\x8a]", "[\xe7\xb7\x9a\xe9\xa6\x99\xe8\x8a\xb1\xe7\x81\xab]", "[\xe9\xa2\xa8\xe9\x88\xb4]", "[\xe3\x83\x8f\xe3\x83\xad\xe3\x82\xa6\xe3\x82\xa3\xe3\x83\xb3]", "[\xe3\x82\xaa\xe3\x83\xa1\xe3\x83\x87\xe3\x83\x88\xe3\x82\xa6]", "[\xe4\xb8\x83\xe5\xa4\x95]", "[\xe3\x81\x8a\xe6\x9c\x88\xe8\xa6\x8b]", "\xee\x99\x9a", "\xee\x9a\x87", "\xee\x9a\x88", "\xee\x9b\x8e", "\xee\x9a\x89", "\xee\x9b\x90", "\xee\x9b\x93", "\xee\x9b\x8f", "[\xe6\x96\xb0\xe8\x81\x9e]", "[\xe3\x82\xb9\xe3\x83\x94\xe3\x83\xbc\xe3\x82\xab]", "[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x9b\xe3\x83\xb3]", "[\xe3\x82\xa2\xe3\x83\xb3\xe3\x83\x86\xe3\x83\x8a]", "[\xe9\x80\x81\xe4\xbf\xa1BOX]", "[\xe5\x8f\x97\xe4\xbf\xa1BOX]", "[ABCD]", "[abcd]", "[1234]", "[\xe8\xa8\x98\xe5\x8f\xb7]", "[ABC]", "\xee\x9a\xae", "\xee\x9a\xb2", "\xee\x9c\x96", "\xee\x9c\x99", "\xee\x9c\xb0", "[MD]", "[\xe3\x83\x95\xe3\x83\xad\xe3\x83\x83\xe3\x83\x94\xe3\x83\xbc]", "\xee\x9a\x8c", "[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]", "[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]", "[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]", "\xee\x9a\x83", "[\xe5\x90\x8d\xe6\x9c\xad]", "\xee\x9c\x8a", "[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]", "[\xe5\xae\x9a\xe8\xa6\x8f]", "[\xe4\xb8\x89\xe8\xa7\x92\xe5\xae\x9a\xe8\xa6\x8f]", "\xee\x99\x92", "\xee\x99\x93", "\xee\x99\x94", "\xee\x99\x95", "\xee\x99\x96", "\xee\x99\x97", "\xee\x99\x98", "\xee\x99\x99", "\xee\x9c\x92", "\xee\x9c\xb3", "[\xe3\x83\x88\xe3\x83\xad\xe3\x83\x95\xe3\x82\xa3\xe3\x83\xbc]", "[\xe3\x83\x95\xe3\x83\x83\xe3\x83\x88\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xab]", "[\xe6\xb0\xb4\xe6\xb3\xb3]", "\xee\x99\x9b", "\xee\x99\x9c", "\xee\x99\x9d", "\xee\x99\x9e", "\xee\x99\x9f", "\xee\x99\xa0", "[\xe3\x83\x90\xe3\x82\xb9\xe5\x81\x9c]", "\xee\x99\xa2", "\xee\x9a\xa3", "[\xe9\xa7\x85]", "[\xe3\x83\xad\xe3\x82\xb1\xe3\x83\x83\xe3\x83\x88]", "[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xaf]", "[\xe6\xb6\x88\xe9\x98\xb2\xe8\xbb\x8a]", "[\xe6\x95\x91\xe6\x80\xa5\xe8\xbb\x8a]", "[\xe3\x83\x91\xe3\x83\x88\xe3\x82\xab\xe3\x83\xbc]", "\xee\x99\xab", "\xee\x99\xac", "\xee\x99\xad", "[\xe5\xb7\xa5\xe4\xba\x8b\xe4\xb8\xad]", "\xee\x9b\xb7", "[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x97]", "\xee\x99\xb9", "[\xe8\xa6\xb3\xe8\xa6\xa7\xe8\xbb\x8a]", "[\xe3\x82\xb8\xe3\x82\xa7\xe3\x83\x83\xe3\x83\x88\xe3\x82\xb3\xe3\x83\xbc\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]", "\xee\x99\xb6", "\xee\x99\xb7", "\xee\x99\xba", "\xee\x99\xbb", "\xee\x99\xbc", "\xee\x99\xbd", "\xee\x99\xbe", "\xee\x9a\xac", "[\xe6\xbc\x94\xe5\x8a\x87]", "\xee\x9a\x8b", "[\xe9\xba\xbb\xe9\x9b\x80]", "[\xe7\x9a\x84\xe4\xb8\xad]", "[777]", "[\xe3\x83\x93\xe3\x83\xaa\xe3\x83\xa4\xe3\x83\xbc\xe3\x83\x89]", "[\xe3\x82\xb5\xe3\x82\xa4\xe3\x82\xb3\xe3\x83\xad]", "[\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xb0]", "[\xe8\x8a\xb1\xe6\x9c\xad]", "[\xe3\x82\xb8\xe3\x83\xa7\xe3\x83\xbc\xe3\x82\xab\xe3\x83\xbc]", "\xee\x9b\xb6", "\xee\x9b\xbf", "[\xe3\x82\xb5\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9]", "[\xe3\x82\xae\xe3\x82\xbf\xe3\x83\xbc]", "[\xe3\x83\x94\xe3\x82\xa2\xe3\x83\x8e]", "[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x9a\xe3\x83\x83\xe3\x83\x88]", "[\xe3\x83\x90\xe3\x82\xa4\xe3\x82\xaa\xe3\x83\xaa\xe3\x83\xb3]", "[\xe6\xad\x8c\xe8\xa8\x98\xe5\x8f\xb7]", "\xee\x9a\x81", "\xee\x9a\x8a", "[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa]", "[\xe3\x83\x93\xe3\x83\x87\xe3\x82\xaa]", "\xee\x9c\x97", "\xee\x9c\x9b", "[\xe8\x8a\xb1\xe6\x9d\x9f]", "\xee\x9b\xad", "[\xe7\xb5\x90\xe5\xa9\x9a\xe5\xbc\x8f]", "[18\xe7\xa6\x81]", "\xee\x9c\xb1", "\xee\x9c\xb6", "\xee\x9c\xb2", "[\xef\xbd\x89]", "\xee\x9b\xa0", "\xee\x9b\xa2", "\xee\x9b\xa3", "\xee\x9b\xa4", "\xee\x9b\xa5", "\xee\x9b\xa6", "\xee\x9b\xa7", "\xee\x9b\xa8", "\xee\x9b\xa9", "\xee\x9b\xaa", "\xee\x9b\xab", "[10]", "[\xe3\x83\x90\xe3\x83\xaa3]", "[\xe3\x83\x9e\xe3\x83\x8a\xe3\x83\xbc\xe3\x83\xa2\xe3\x83\xbc\xe3\x83\x89]", "[\xe3\x82\xb1\xe3\x83\xbc\xe3\x82\xbf\xe3\x82\xa4OFF]", "\xee\x99\xb3", "\xee\x9d\x89", "\xee\x9d\x8a", "\xee\x9d\x8c", "\xee\x9d\x8d", "[\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\x91\xe3\x83\xb3]", "[\xe3\x82\xbd\xe3\x83\x95\xe3\x83\x88\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]", "[\xe3\x83\x9d\xe3\x83\x86\xe3\x83\x88]", "[\xe3\x81\xa0\xe3\x82\x93\xe3\x81\x94]", "[\xe3\x81\x9b\xe3\x82\x93\xe3\x81\xb9\xe3\x81\x84]", "[\xe3\x83\x91\xe3\x82\xb9\xe3\x82\xbf]", "[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xbc]", "[\xe3\x81\x8a\xe3\x81\xa7\xe3\x82\x93]", "[\xe3\x81\x99\xe3\x81\x97]", "[\xe5\xbc\x81\xe5\xbd\x93]", "[\xe9\x8d\x8b]", "[\xe3\x82\xab\xe3\x82\xad\xe6\xb0\xb7]", "[\xe8\x82\x89]", "[\xe3\x82\x84\xe3\x81\x8d\xe3\x81\x84\xe3\x82\x82]", "[\xe3\x83\x94\xe3\x82\xb6]", "[\xe3\x83\x81\xe3\x82\xad\xe3\x83\xb3]", "[\xe3\x82\xa2\xe3\x82\xa4\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]", "[\xe3\x83\x89\xe3\x83\xbc\xe3\x83\x8a\xe3\x83\x84]", "[\xe3\x82\xaf\xe3\x83\x83\xe3\x82\xad\xe3\x83\xbc]", "[\xe3\x83\x81\xe3\x83\xa7\xe3\x82\xb3]", "[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]", "[\xe3\x83\x97\xe3\x83\xaa\xe3\x83\xb3]", "[\xe3\x83\x8f\xe3\x83\x81\xe3\x83\x9f\xe3\x83\x84]", "[\xe3\x82\xa8\xe3\x83\x93\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4]", "\xee\x99\xaf", "\xee\x99\xb0", "\xee\x99\xb1", "\xee\x99\xb2", "\xee\x9c\x9e", "\xee\x9d\x96", "\xee\x99\xb8", "\xee\x9a\x96", "\xee\x9a\x97", "\xee\x9a\xa5", "\xee\x9b\xb5", "\xee\x9c\x80", "\xee\x9c\xbc", "\xee\x9c\xbd", "[\xe2\x86\x91]", "[\xe2\x86\x93]", "[\xe2\x86\x92]", "[\xe2\x86\x90]", "[>]", "[<]", "[>>]", "[<<]", "\xe2\x96\xb2", "\xe2\x96\xbc", "[\xc3\x97]", "\xee\x9c\x82", "\xee\x9c\x83", "\xee\x9c\x84", "[\xef\xbc\x9f]", "\xee\x9c\x89", "\xee\x9b\x9f", "\xee\x9b\xac", "\xee\x9b\xae", "\xee\x9b\xaf", "\xee\x9b\xb8", "\xee\x9a\x8d", "\xee\x9a\x8e", "\xee\x9a\x8f", "\xee\x9a\x90", "\xee\x99\xbf", "\xee\x9a\x80", "\xee\x9a\x9b", "\xee\x9b\x9e", "\xee\x9c\xb7", "\xee\x9c\xb5", "\xee\x9c\x9d", "[\xe2\x99\x82]", "[\xe2\x99\x80]", "\xee\x99\xae", "\xee\x9c\x94", "\xee\x9c\xb8", "[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xee\x9b\x9b", "[COOL]", "\xee\x9b\x97", "\xee\x9b\x98", "\xee\x9b\x9d", "[SOS]", "[UP!]", "[VS]", "[\xe3\x82\xb3\xe3\x82\xb3]", "[\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9]", "\xee\x9c\xb9", "\xee\x9c\xba", "\xee\x9c\xbb", "[\xe6\x9c\x89]", "[\xe7\x84\xa1]", "[\xe6\x9c\x88]", "[\xe7\x94\xb3]", "[\xe5\x89\xb2]", "[\xe6\x8c\x87]", "[\xe5\x96\xb6]", "\xee\x9c\xb4", "[\xe7\xa5\x9d]", "[\xe5\xbe\x97]", "[\xe5\x8f\xaf]", "[\xef\xbc\x8b]", "[\xef\xbc\x8d]", "[\xc3\xb7]", "\xee\x9b\xbc", "\xee\x9b\xbe", "\xee\x9c\x85", "\xee\x9c\x86", "\xee\x9c\x87", "\xee\x9c\x88", "[\xe3\x82\xa6\xe3\x83\xb3\xe3\x83\x81]", "[\xe5\x8a\x9b\xe3\x81\x93\xe3\x81\xb6]", "[\xe3\x82\xaf\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\xa9]", "[\xe3\x83\x95\xe3\x82\xad\xe3\x83\x80\xe3\x82\xb7]", "\xee\x9b\xba", "\xe2\x96\xa0", "\xe2\x97\x86", "[\xe8\x8a\xb1\xe4\xb8\xb8]", "[100\xe7\x82\xb9]", "\xee\x9b\x9a", "\xe2\x94\x94\xe2\x86\x92", "[\xe9\x9b\xbb\xe6\xb1\xa0]", "[\xe3\x82\xb3\xe3\x83\xb3\xe3\x82\xbb\xe3\x83\xb3\xe3\x83\x88]", "\xee\x9b\x9c", "\xee\x9b\x99", "\xee\x9c\x93", "[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa\xe3\x83\x9c\xe3\x82\xbf\xe3\x83\xb3]", "[\xe3\x83\x96\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "[\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xaf]", "[\xe2\x86\x90BACK]", "\xee\x9a\xb9", "\xee\x9a\xb8", "\xee\x9a\xb7", "[TOP]", "\xee\x9a\x93", "\xee\x9a\x95", "\xee\x9a\x94", "\xee\x9b\xbd", "\xee\x9c\xa7", "[\xe4\xba\xba\xe5\xb7\xae\xe3\x81\x97\xe6\x8c\x87]", "[\xe6\x8b\x8d\xe6\x89\x8b]", "\xee\x92\x88", "\xee\x92\x8d", "\xee\x92\x8c", "\xee\x92\x85", "\xee\x92\x87", "\xee\x91\xa9", "\xee\x96\x98", "\xee\xab\xa8", "\xee\xab\xb1", "\xee\xab\xb4", "\xee\x97\x9a", "\xee\xab\xb2", "\xee\x92\x8a", "\xee\x92\x8e", "\xee\x92\xbf", "\xee\xad\xbc", "\xee\xad\x93", "\xee\xad\x9f", "\xee\x96\xb3", "\xee\x96\xa8", "\xee\x96\xa9", "\xee\x96\xaa", "\xee\x92\x86", "\xe2\x97\x8b", "\xee\x92\x89", "\xee\x92\x8b", "\xee\x91\xa8", "\xee\x96\x94", "\xee\x95\xba", "\xee\x95\xbb", "\xee\x91\xbc", "\xee\x92\x8f", "\xee\x92\x90", "\xee\x92\x91", "\xee\x92\x92", "\xee\x92\x93", "\xee\x92\x94", "\xee\x92\x95", "\xee\x92\x96", "\xee\x92\x97", "\xee\x92\x98", "\xee\x92\x99", "\xee\x92\x9a", "\xee\x92\x9b", "\xee\x94\x93", "\xee\x93\xa4", "\xee\xad\xbd", "\xee\x93\x8e", "\xee\x93\x8a", "\xee\x96\xba", "\xee\x97\x8d", "\xee\xaa\x94", "\xee\x93\xa3", "\xee\x93\xa2", "\xee\xaa\x96", "\xee\xac\xb6", "\xee\xac\xb7", "\xee\xac\xb8", "\xee\xad\x89", "\xee\xae\x82", "\xee\x93\x92", "\xee\xac\xb5", "\xee\xaa\xb9", "\xee\xaa\xba", "\xee\x93\x94", "\xee\x93\x8d", "\xee\xaa\xbb", "\xee\xaa\xbc", "\xee\xac\xb2", "\xee\xac\xb3", "\xee\xac\xb4", "\xee\xac\xb9", "\xee\xad\x9a", "\xee\x96\xa4", "\xee\x96\xa5", "\xee\xab\x90", "\xee\xab\x91", "\xee\xad\x87", "\xee\x94\x89", "\xee\xaa\xa0", "\xee\x94\x8b", "\xee\xaa\xa1", "\xee\xaa\xa2", "\xe3\x80\x93", "\xee\x93\xbc", "\xee\x93\xba", "\xee\x94\x81", "\xee\x97\x9d", "\xee\xab\x9b", "\xee\xab\xa9", "\xee\xac\x93", "\xee\xac\x94", "\xee\xac\x95", "\xee\xac\x96", "\xee\xac\x97", "\xee\xac\x98", "\xee\xac\x99", "\xee\xac\x9a", "\xee\xad\x84", "\xee\xad\x85", "\xee\x93\x8b", "\xee\x96\xbf", "\xee\x94\x8e", "\xee\x93\xac", "\xee\x93\xaf", "\xee\x93\xb8", "\xee\xac\x9c", "\xee\xad\xbe", "\xee\xac\xa2", "\xee\x93\x98", "\xee\xac\xa3", "\xee\xac\xa4", "\xee\xac\xa5", "\xee\xac\x9f", "\xee\xac\xa0", "\xee\x93\x99", "\xee\x97\x87", "\xee\xab\xac", "\xee\xac\x9e", "\xee\x93\x9d", "\xee\xad\x97", "\xee\xad\x98", "\xee\xac\x9d", "\xee\x93\x93", "\xee\x97\x94", "\xee\x93\xa0", "\xee\xad\xb6", "\xee\x97\x9b", "\xee\x93\x9c", "\xee\x93\x9f", "\xee\xac\x9b", "\xee\x97\x82", "\xee\x97\x80", "\xee\x93\x9b", "\xee\x91\xb0", "\xee\x93\xa1", "\xee\x93\x9e", "\xee\x97\x81", "\xee\xac\xa1", "\xee\x93\x97", "\xee\x93\x9a", "\xee\x93\xae", "\xee\xac\xbf", "\xee\xad\x86", "\xee\xad\x88", "\xee\x91\xb2", "\xee\xad\xa7", "\xee\xab\x8a", "\xee\xab\x80", "\xee\x96\xae", "\xee\xab\x8b", "\xee\xab\x89", "\xee\x97\x84", "\xee\xab\x81", "\xee\x93\xa7", "\xee\xab\x8d", "\xee\xab\x8f", "\xee\xab\x8e", "\xee\xab\x87", "\xee\xab\x88", "\xee\x91\xb1", "\xee\x91\xb1\xee\x96\xb1", "\xee\xab\x85", "\xee\xae\x80", "\xee\xad\xa4", "\xee\x93\xbb", "\xee\xad\xa9", "\xee\x91\xb3", "\xee\xab\x86", "\xee\xab\x82", "\xee\xad\x9d", "\xee\xab\x83", "\xee\x97\x85", "\xee\xab\x84", "\xee\xaa\xbf", "\xee\x97\x86", "\xee\x91\xb4", "\xee\x97\x83", "\xee\xad\xa1", "\xee\xad\xbf", "\xee\xad\xa3", "\xee\xad\xa0", "\xee\xad\xa5", "\xee\xad\xa8", "\xee\xad\x9e", "\xee\xad\xaa", "\xee\xad\xa6", "\xee\xab\x97", "\xee\xab\x98", "\xee\xab\x99", "\xee\xad\x90", "\xee\xad\x91", "\xee\xad\x92", "\xee\xae\x85", "\xee\xae\x86", "\xee\xae\x87", "\xee\xae\x88", "\xee\xab\x92", "\xee\x92\xab", "\xee\xac\x89", "\xee\x92\xad", "\xee\x97\x9e", "\xee\x97\x9f", "\xee\x92\xaa", "\xee\x92\xa3", "\xee\xaa\x81", "\xee\xab\xb3", "\xee\x92\xa4", "\xee\xaa\x80", "\xee\x96\xbb", "\xee\x97\x8f", "\xee\xab\xb6", "\xee\xab\xb7", "\xee\xab\xb8", "\xee\xab\xb9", "\xee\x92\xa9", "\xee\x92\xbd", "\xee\x96\xbd", "\xee\x93\x80", "\xee\x95\xb2", "\xee\xad\xac", "\xee\x96\xb7", "\xee\xac\xab", "\xee\x94\x9a", "\xee\xaa\x9f", "\xee\xac\xaa", "\xee\x93\xbe", "\xee\x96\xb6", "\xee\xad\xb7", "\xee\x97\x89", "\xee\xaa\x93", "\xee\xaa\x9e", "\xee\xad\xab", "\xee\xaa\xa3", "\xee\xaa\xa4", "\xee\x94\x8d", "\xee\x94\x84", "\xee\x92\x9c", "[\xe3\x81\xb5\xe3\x81\x8f\xe3\x82\x8d]", "\xee\x93\x87", "\xee\x97\x9c", "\xee\x95\xb9", "\xee\x95\xbc", "\xee\x95\xbd", "\xee\x96\x85", "\xee\xad\x9b", "\xee\xac\x91", "\xee\xac\x8e", "\xee\x97\x95", "\xee\xab\xba", "\xee\xac\x90", "\xee\xac\x8f", "\xee\x93\x8c", "\xee\xac\x92", "\xee\x97\x96", "\xee\x95\xb3", "\xee\x91\xbb", "\xee\x96\x83", "\xee\x96\x87", "\xee\x97\x8b", "\xee\x96\x81", "\xee\x95\xbf", "\xee\x94\x8a", "\xee\xaa\x8f", "\xee\x92\x80", "\xee\x94\x90", "\xee\xaa\x9a", "\xee\xac\xa6", "\xee\xac\xa7", "\xee\xac\xa9", "\xee\xac\xa8", "\xee\x96\x9f", "\xee\x93\x8f", "\xee\x96\xa0", "\xee\x93\x89", "\xee\xab\xb0", "\xee\x97\x99", "\xee\x97\x8c", "\xee\xaa\x9b", "\xee\xaa\x9c", "\xee\xab\xa3", "\xee\xab\xa4", "\xee\xab\xa5", "\xee\xab\xa6", "\xee\xab\xa7", "\xee\xab\xab", "\xee\xab\xad", "\xee\xab\xae", "\xee\x91\xaf", "\xee\xac\xbd", "\xee\xab\xaf", "\xee\x96\x9b", "\xee\x96\x96", "\xee\x94\x9e", "\xee\x96\x88", "\xee\xac\x88", "\xee\xaa\x92", "\xee\x94\xa0", "\xee\x94\xa1", "\xee\x96\x91", "\xee\xad\xa2", "\xee\x94\x9b", "\xee\xac\x8a", "\xee\x96\x8b", "\xee\x94\x91", "\xee\x92\xa8", "\xee\x96\x92", "\xee\x96\x93", "\xee\x94\x9f", "\xee\xad\xb1", "\xee\xab\xbd", "\xee\xab\xbe", "\xee\xab\xbf", "\xee\xac\x80", "\xee\xad\x95", "\xee\xac\x83", "[\xe3\x81\x84\xe3\x81\x99]", "\xee\x96\xb8", "\xee\x92\xa1", "\xee\x92\xa0", "\xee\x97\x8e", "\xee\x96\x82", "\xee\x95\xa2", "\xee\x94\x8c", "\xee\x94\x96", "\xee\x95\xa0", "\xee\x95\xa1", "\xee\x95\xa9", "\xee\x95\xa3", "\xee\x96\x8f", "\xee\x96\x90", "\xee\x95\xab", "\xee\x92\x9f", "\xee\x92\x9d", "\xee\x95\xa8", "\xee\x95\xa5", "\xee\x95\xa6", "\xee\x95\xa7", "\xee\x95\xaf", "\xee\x94\x9d", "\xee\x95\x9f", "\xee\x95\xa4", "\xee\x95\xaa", "\xee\x95\xb4", "\xee\x95\xb5", "\xee\x95\xb6", "\xee\x95\xac", "\xee\x95\xad", "\xee\x95\xae", "\xee\x95\xb0", "\xee\x92\xa2", "\xee\xac\x8b", "\xee\x92\xba", "\xee\x96\x99", "\xee\x92\xb7", "\xee\x92\xb6", "\xee\xaa\xac", "\xee\x96\x9a", "\xee\x92\xb9", "\xee\x92\xb8", "\xee\x91\xab", "\xee\xad\x81", "\xee\x97\x93", "\xee\x92\xbb", "\xee\xab\x9e", "\xee\x92\xb5", "\xee\x96\xbc", "\xee\x92\xb0", "\xee\x92\xb1", "\xee\x92\xaf", "\xee\x92\xa7", "\xee\xaa\x82", "\xee\x92\xb3", "\xee\x92\xb4", "\xee\xad\xad", "\xee\x97\x88", "\xee\x92\xb2", "\xee\xab\x9f", "\xee\xab\xa0", "\xee\xab\xa1", "\xee\x95\xb1", "\xee\x92\xa6", "\xee\x91\xaa", "\xee\x97\x97", "\xee\xad\xb3", "\xee\x92\xbc", "\xee\x97\x90", "\xee\x91\xad", "\xee\xab\xa2", "\xee\xad\x82", "\xee\x94\x83", "\xee\x94\x97", "\xee\x94\x88", "\xee\x96\x9c", "\xee\xab\xb5", "\xee\x96\x9e", "\xee\x92\x9e", "\xee\x92\xbe", "\xee\x96\x9d", "\xee\x93\x86", "\xee\x97\x91", "\xee\x93\x85", "\xee\x91\xae", "\xee\xab\x9d", "\xee\x93\x88", "\xee\xad\x83", "\xee\xad\xae", "\xee\xad\xaf", "\xee\x96\xbe", "\xee\x94\x85", "\xee\x94\x86", "\xee\xad\x80", "\xee\xab\x9c", "\xee\x94\x87", "\xee\xab\x8c", "\xee\x94\x95", "\xee\x95\xbe", "\xee\x94\x82", "\xee\x96\xb9", "\xee\x96\x80", "\xee\x93\xab", "\xee\xad\xb8", "\xee\x94\x94", "\xee\x97\x8a", "\xee\xaa\x95", "\xee\xab\x9a", "\xee\xaa\x83", "\xee\x95\x98", "\xee\x95\x99", "\xee\x95\x8e", "\xee\x94\xb3", "\xee\xae\x84", "\xee\x94\xa2", "\xee\x94\xa3", "\xee\x94\xa4", "\xee\x94\xa5", "\xee\x94\xa6", "\xee\x94\xa7", "\xee\x94\xa8", "\xee\x94\xa9", "\xee\x94\xaa", "\xee\x96\xac", "\xee\x94\xab", "\xee\xaa\x84", "\xee\xaa\x90", "\xee\xaa\x91", "\xee\x93\x96", "\xee\x93\x95", "\xee\x93\x90", "\xee\x96\xb4", "\xee\xaa\xaf", "\xee\x93\x91", "\xee\xaa\xb0", "\xee\xaa\xb1", "\xee\xaa\xb2", "\xee\xaa\xb3", "\xee\xaa\xb4", "\xee\xaa\xb5", "\xee\xaa\xb6", "\xee\xaa\xb7", "\xee\xaa\xb8", "\xee\xaa\xbd", "\xee\xaa\xbe", "\xee\xab\xaa", "\xee\x93\x84", "\xee\x93\xad", "\xee\xac\xba", "\xee\xac\xbb", "\xee\xac\xbc", "\xee\xad\x8a", "\xee\xad\x8b", "\xee\xad\x8c", "\xee\xad\x8d", "\xee\xad\x8e", "\xee\xad\x8f", "\xee\xad\x96", "\xee\xad\x99", "\xee\xad\xb0", "\xee\x92\xac", "\xee\x96\x97", "\xee\x93\x82", "\xee\x93\x83", "\xee\xaa\xae", "\xee\xaa\x97", "\xee\x93\x81", "\xee\xaa\x98", "\xee\xac\xbe", "\xee\x95\x95", "\xee\x95\x8d", "\xee\x95\x8c", "\xee\x95\x96", "\xee\xac\xad", "\xee\xac\xae", "\xee\xad\xba", "\xee\xad\xbb", "\xee\x94\xbf", "\xee\x95\x80", "\xee\x95\x92", "\xee\x95\x93", "\xee\x94\xae", "\xee\x94\xad", "\xee\x94\xb0", "\xee\x94\xaf", "\xee\x95\x85", "\xee\x95\x84", "\xee\x95\x9a", "\xee\x95\x9b", "\xee\x95\x83", "\xee\x95\x82", "\xee\xaa\xad", "\xee\x95\x90", "\xee\x95\x91", "\xee\x92\x82", "\xee\xac\xaf", "\xee\xac\xb0", "\xee\x92\x83", "\xee\xac\xb1", "[\xe3\x83\x95\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\x80\xe3\x82\xa4\xe3\x83\xa4\xe3\x83\xab]", "\xee\x96\x95", "\xee\xad\xb5", "\xee\x91\xb7", "\xee\x91\xb8", "\xee\xaa\xa6", "\xee\x93\xaa", "\xee\xaa\xa7", "\xee\xaa\xa8", "\xee\xaa\xa9", "\xee\xaa\xaa", "\xee\xad\x94", "\xee\x96\xaf", "\xee\xaa\xa5", "\xee\x96\xa1", "\xee\x96\xa2", "\xee\x96\xa3", "\xee\x91\xbd", "\xee\x91\xbe", "\xee\x91\xbf", "\xee\xac\xac", "\xee\x92\x81", "\xee\x92\x84", "\xee\xad\xb9", "\xee\x92\xae", "\xee\xad\xb2", "\xee\x97\x98", "\xee\x92\xa5", "[\xe3\x83\x89\xe3\x82\xa2]", "\xee\x95\x81", "\xee\x95\x97", "\xee\x96\xab", "\xee\xaa\x85", "\xee\x95\xb8", "\xee\xaa\x88", "\xee\x96\xb5", "[NG]", "\xee\x96\xad", "\xee\x93\xa8", "\xee\x94\x8f", "\xee\x97\x92", "\xee\xaa\x87", "[\xe7\xa6\x81]", "\xee\xaa\x8a", "[\xe5\x90\x88]", "\xee\xaa\x89", "\xee\xaa\x86", "\xee\xaa\x8b", "\xee\xaa\x8c", "\xee\x93\xb1", "\xee\xaa\x99", "\xee\x93\xb7", "\xee\xac\x81", "\xee\x94\xbc", "\xee\x94\xbd", "\xee\x95\x8f", "\xee\x95\x94", "\xee\x91\xb6", "\xee\x93\xa5", "\xee\x91\xba", "\xee\x91\xb5", "\xee\x96\xb0", "\xee\x96\xb1", "\xee\x93\xa6", "\xee\x93\xb4", "\xee\x93\xb5", "\xee\x93\xa9", "\xee\xad\x9c", "\xee\x93\xbd", "\xee\xaa\xab", "\xee\x91\xb9", "\xee\x94\xbe", "\xee\x94\xba", "\xee\x94\xbb", "\xee\x95\x8a", "\xee\x95\x8b", "\xee\x95\x88", "\xee\x95\x89", "\xee\x94\xb1", "\xee\x94\xb2", "\xee\x94\xb4", "\xee\x94\xb5", "\xee\x94\xb8", "\xee\x94\xb9", "\xee\x95\x86", "\xee\x95\x87", "\xee\x94\xb6", "\xee\x94\xb7", "\xee\x91\xac", "\xee\x93\xb0", "\xee\x93\xb2", "\xee\x95\x9d", "\xee\x95\x9c", "\xee\xac\x8d", "\xee\x96\x84", "\xee\x96\x89", "\xee\x94\x98", "\xee\xac\x85", "\xee\x94\x9c", "\xee\xac\x8c", "\xee\xab\xbc", "\xee\x94\x99", "\xee\x94\x92", "\xee\xac\x82", "\xee\xac\x84", "\xee\xac\x87", "\xee\x96\x8a", "\xee\xac\x86", "[end]", "[ON]", "[SOON]", "\xee\x95\x9e", "\xee\xae\x83", "\xee\x96\xa7", "\xee\x96\xa6", "\xee\x93\xb3", "\xee\x93\xb9", "\xee\x93\xb6", "\xee\xaa\x8d", "\xee\xaa\x8e", "\xee\x93\xbf", "\xee\x94\x80", "\xee\xab\x96", "\xee\xab\x93", "\xee\xab\x94", "\xee\xab\x95", "\xee\x81\x8a", "\xee\x81\x89", "\xee\x81\x8b", "\xee\x81\x88", "\xee\x84\xbd", "\xee\x91\x83", "[\xe9\x9c\xa7]", "\xee\x90\xbc", "\xee\x91\x8b", "\xee\x81\x8d", "\xee\x91\x89", "\xee\x85\x86", "\xee\x91\x8a", "\xee\x91\x8c", "\xee\x81\x8a\xee\x81\x89", "\xee\x90\xbe", "\xe2\x97\x8f", "\xee\x81\x8c", "\xee\x8c\xb5", "\xee\x80\xa4", "\xee\x80\xa5", "\xee\x80\xa6", "\xee\x80\xa7", "\xee\x80\xa8", "\xee\x80\xa9", "\xee\x80\xaa", "\xee\x80\xab", "\xee\x80\xac", "\xee\x80\xad", "\xee\x80\xae", "\xee\x80\xaf", "[\xe8\x85\x95\xe6\x99\x82\xe8\xa8\x88]", "[\xe7\xa0\x82\xe6\x99\x82\xe8\xa8\x88]", "\xee\x88\xbf", "\xee\x89\x80", "\xee\x89\x81", "\xee\x89\x82", "\xee\x89\x83", "\xee\x89\x84", "\xee\x89\x85", "\xee\x89\x86", "\xee\x89\x87", "\xee\x89\x88", "\xee\x89\x89", "\xee\x89\x8a", "\xee\x89\x8b", "\xee\x84\x90", "\xee\x8c\x84", "\xee\x84\x98", "\xee\x80\xb0", "\xee\x80\xb2", "\xee\x84\x99", "\xee\x91\x87", "\xee\x8c\x83", "\xee\x8c\x85", "\xee\x8c\x87", "\xee\x8c\x88", "\xee\x91\x84", "[\xe3\x81\x95\xe3\x81\x8f\xe3\x82\x89\xe3\x82\x93\xe3\x81\xbc]", "[\xe3\x83\x90\xe3\x83\x8a\xe3\x83\x8a]", "\xee\x8d\x85", "\xee\x8d\x86", "\xee\x8d\x87", "\xee\x8d\x88", "\xee\x8d\x89", "\xee\x8d\x8a", "\xee\x90\x99", "\xee\x90\x9b", "\xee\x90\x9a", "\xee\x90\x9c", "\xee\x90\x89", "\xee\x8c\x9c", "\xee\x8c\x9d", "\xee\x8c\x9e", "\xee\x8c\x9f", "\xee\x8c\xa0", "\xee\x80\x81", "\xee\x80\x82", "\xee\x80\x84", "\xee\x80\x85", "\xee\x90\xa8", "\xee\x85\x92", "\xee\x90\xa9", "\xee\x84\x9b", "\xee\x81\x8e", "\xee\x84\x8c", "\xee\x84\xab", "\xee\x84\x9a", "\xee\x84\x9c", "\xee\x89\x93", "[\xe3\x82\xab\xe3\x82\xbf\xe3\x83\x84\xe3\x83\xa0\xe3\x83\xaa]", "\xee\x84\xb4", "\xee\x84\x8a", "\xee\x91\x81", "\xee\x80\x99", "\xee\x81\x95", "\xee\x81\x92", "\xee\x81\x93", "\xee\x81\x90", "\xee\x81\x8f", "\xee\x81\x94", "\xee\x80\x9a", "\xee\x84\x89", "\xee\x84\x8b", "\xee\x81\x91", "\xee\x94\xac", "\xee\x81\x99", "\xee\x90\x83", "\xee\x90\x90", "\xee\x81\x98", "\xee\x90\x86", "\xee\x90\x8f", "\xee\x90\x8e", "\xee\x84\x86", "\xee\x90\x84", "\xee\x84\x85", "\xee\x81\x96", "\xee\x90\x98", "\xee\x90\x97", "\xee\x90\x8c", "\xee\x90\x8d", "\xee\x81\x97", "\xee\x90\x95\xee\x8c\xb1", "\xee\x90\x8a", "\xee\x90\x92", "\xee\x90\x94", "\xee\x90\x95", "\xee\x90\x93", "\xee\x90\x91", "\xee\x90\x8b", "\xee\x90\x96", "\xee\x90\x87", "\xee\x84\x87", "\xee\x90\x88", "\xee\x90\x82", "\xee\x84\x88", "\xee\x90\x81", "\xee\x90\x85", "\xee\x90\xa3", "\xee\x90\xa4", "\xee\x90\xa6", "\xee\x80\x92", "\xee\x90\xa7", "\xee\x90\x9d", "\xee\x80\xb6", "\xee\x80\xb8", "\xee\x85\x93", "\xee\x85\x95", "\xee\x85\x8d", "\xee\x85\x94", "\xee\x85\x98", "\xee\x85\x96", "\xee\x85\x97", "\xee\x80\xb7", "\xee\x84\xa1", "\xee\x88\x82", "\xee\x8c\x8b", "\xee\x80\xbb", "\xee\x80\x87", "\xee\x84\xbe", "\xee\x8c\x9a", "\xee\x8c\x9b", "[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x8d]", "\xee\x80\x86", "[\xe3\x82\xb8\xe3\x83\xbc\xe3\x83\xb3\xe3\x82\xba]", "\xee\x84\x8e", "\xee\x8c\x82", "\xee\x8c\x98", "\xee\x8c\x99", "\xee\x8c\xa1", "\xee\x8c\xa2", "[\xe8\xb2\xa1\xe5\xb8\x83]", "\xee\x8c\xa3", "\xee\x84\xaf", "\xee\x85\x89", "\xee\x85\x8a", "\xef\xbf\xa5", "\xee\x84\x9d", "[\xe6\x87\x90\xe4\xb8\xad\xe9\x9b\xbb\xe7\x81\xaf]", "[\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x81]", "\xee\x84\x96", "\xee\x84\x93", "\xee\x88\xbe", "\xee\x88\x89", "\xee\x80\xb1", "\xee\x84\xbb", "\xee\x8c\x8f", "\xee\x8c\x94", "\xee\x84\x92", "\xee\x8d\x8b", "\xee\x80\xb3", "\xee\x91\x88", "\xee\x85\x83", "\xee\x84\x97", "\xee\x8c\x90", "\xee\x8c\x92", "\xee\x90\xb6", "\xee\x90\xb8", "\xee\x90\xb9", "\xee\x90\xba", "\xee\x90\xbb", "\xee\x91\x80", "\xee\x91\x82", "\xee\x91\x85", "\xee\x91\x86", "[\xe3\x83\x9d\xe3\x82\xb1\xe3\x83\x99\xe3\x83\xab]", "\xee\x80\x89", "\xee\x80\x8a", "\xee\x84\x84", "\xee\x8c\x81", "\xee\x80\x8b", "\xee\x84\x83", "\xee\x84\x81", "\xee\x84\x82", "\xee\x85\x82", "\xee\x8c\x97", "\xee\x85\x8b", "[\xe3\x83\x9a\xe3\x83\xb3]", "\xee\x84\x9f", "\xee\x80\x8c", "[\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\x83\xe3\x83\x97]", "\xee\x84\x9e", "\xee\x8c\x96", "\xee\x84\xa6", "\xee\x84\xa7", "\xee\x8c\x93", "\xee\x85\x88", "[\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xad\xe3\x83\xbc\xe3\x83\xab]", "\xee\x80\x96", "\xee\x80\x94", "\xee\x80\x95", "\xee\x80\x98", "\xee\x80\x93", "\xee\x90\xaa", "\xee\x84\xb2", "[\xe3\x82\xb9\xe3\x83\x8e\xe3\x83\x9c]", "\xee\x84\x95", "\xee\x80\x97", "\xee\x84\xb1", "\xee\x90\xab", "\xee\x90\xad", "\xee\x80\x9e", "\xee\x90\xb4", "\xee\x90\xb5", "\xee\x80\x9f", "\xee\x80\x9b", "\xee\x90\xae", "\xee\x85\x99", "\xee\x85\x90", "\xee\x80\x9d", "\xee\x80\x9c", "\xee\x80\xb9", "\xee\x84\x8d", "\xee\x84\xb5", "\xee\x85\x9a", "\xee\x90\xaf", "\xee\x90\xb0", "\xee\x90\xb1", "\xee\x90\xb2", "\xee\x80\xba", "\xee\x85\x8f", "\xee\x85\x8e", "\xee\x84\xb7", "\xee\x84\xa3", "\xee\x84\xa2", "\xee\x84\xa4", "\xee\x90\xb3", "\xee\x80\xbc", "\xee\x80\xbd", "\xee\x8c\x8a", "[\xe3\x82\xa4\xe3\x83\x99\xe3\x83\xb3\xe3\x83\x88]", "\xee\x84\xa5", "\xee\x8c\xa4", "[\xe3\x82\xb2\xe3\x83\xbc\xe3\x83\xa0]", "\xee\x84\xad", "\xee\x84\xb0", "\xee\x84\xb3", "\xee\x90\xac", "\xee\x80\xbe", "\xee\x8c\xa6", "\xee\x81\x80", "\xee\x81\x81", "\xee\x81\x82", "\xee\x84\xac", "\xee\x80\x88", "\xee\x84\xaa", "\xee\x84\xa8", "\xee\x84\xa9", "\xee\x80\x83", "\xee\x84\x83\xee\x8c\xa8", "\xee\x80\xb4", "\xee\x80\xb5", "\xee\x84\x91", "\xee\x8c\x86", "\xee\x90\xa5", "\xee\x90\xbd", "\xee\x88\x87", "\xee\x89\x8e", "\xee\x89\x8f", "\xee\x88\x90", "\xee\x88\x9c", "\xee\x88\x9d", "\xee\x88\x9e", "\xee\x88\x9f", "\xee\x88\xa0", "\xee\x88\xa1", "\xee\x88\xa2", "\xee\x88\xa3", "\xee\x88\xa4", "\xee\x88\xa5", "\xee\x88\x8b", "\xee\x89\x90", "\xee\x89\x91", "\xee\x84\xa0", "\xee\x8d\x82", "\xee\x81\x86", "\xee\x8d\x80", "\xee\x8c\xb9", "\xee\x85\x87", "\xee\x8c\xba", "\xee\x8c\xbb", "\xee\x8c\xbc", "\xee\x8c\xbd", "\xee\x8c\xbe", "\xee\x8c\xbf", "\xee\x8d\x81", "\xee\x8d\x83", "\xee\x8d\x84", "\xee\x8d\x8c", "\xee\x8d\x8d", "\xee\x90\xbf", "[\xe3\x81\xaa\xe3\x82\x8b\xe3\x81\xa8]", "\xee\x81\x83", "\xee\x81\x85", "\xee\x81\x84", "\xee\x81\x87", "\xee\x8c\xb8", "\xee\x8c\x8c", "\xee\x88\xb6", "\xee\x88\xb8", "\xee\x88\xb7", "\xee\x88\xb9", "\xe2\x87\x94", "\xe2\x86\x91\xe2\x86\x93", "\xee\x88\xb2", "\xee\x88\xb3", "\xee\x88\xb4", "\xee\x88\xb5", "\xee\x88\xba", "\xee\x88\xbb", "\xee\x88\xbc", "\xee\x88\xbd", "\xee\x8c\xb2", "\xee\x8c\xb3", "\xee\x80\xa1", "\xef\xbc\x81\xef\xbc\x9f", "\xef\xbc\x81\xef\xbc\x81", "\xee\x80\xa0", "\xee\x8c\xb6", "\xee\x8c\xb7", "\xef\xbd\x9e", "\xee\x88\x91", "\xee\x80\xa2", "\xee\x8c\xa7", "\xee\x80\xa3", "\xee\x8c\xa8", "\xee\x8c\xa9", "\xee\x8c\xaa", "\xee\x8c\xab", "\xee\x8c\xac", "\xee\x8c\xad", "\xee\x90\xb7", "\xee\x88\x84", "\xee\x88\x8c", "\xee\x88\x8e", "\xee\x88\x8d", "\xee\x88\x8f", "\xee\x8c\x8e", "\xee\x88\x88", "\xee\x88\x8a", "[\xe6\x97\x97]", "\xee\x89\x92", "\xee\x84\xb6", "\xee\x88\x81", "\xee\x84\xb8", "\xee\x84\xb9", "\xee\x84\xbf", "\xee\x85\x91", "\xee\x85\x80", "\xee\x8c\x89", "\xee\x84\xba", "[\xe7\xa6\x81\xe6\xad\xa2]", "[CL]", "\xee\x88\x94", "[FREE]", "\xee\x88\xa9", "\xee\x88\x92", "\xee\x89\x8d", "\xee\x88\x93", "\xee\x84\xae", "\xee\x88\x83", "\xee\x88\xa8", "\xee\x88\xab", "\xee\x88\xaa", "\xee\x88\x95", "\xee\x88\x96", "\xee\x88\x97", "\xee\x88\x98", "\xee\x88\xa7", "\xee\x88\xac", "\xee\x88\xad", "\xee\x8c\x95", "\xee\x8c\x8d", "\xee\x88\xa6", "\xee\x84\x8f", "\xee\x8c\xb4", "\xee\x8c\x91", "\xee\x84\xbc", "[\xe3\x83\x89\xe3\x83\xb3\xe3\x83\x83]", "\xee\x8c\xb1", "\xee\x8c\xb0", "\xee\x81\x9a", "\xee\x85\x8c", "\xee\x8c\xae", "\xee\x88\x85", "\xee\x88\x86", "\xee\x88\x99", "\xee\x88\x9a", "\xee\x88\x9b", "\xee\x8c\xaf", "\xe2\x86\x90\xe2\x94\x98", "\xee\x85\x81", "\xee\x84\x94", "\xee\x85\x84", "\xee\x85\x85", "\xee\x80\xbf", "\xee\x8c\xa5", "\xee\x89\x8c", "\xee\x80\x90", "\xee\x80\x91", "\xee\x80\x8d", "\xee\x80\x8e", "\xee\x80\x8f", "\xee\x88\xae", "\xee\x88\xaf", "\xee\x88\xb0", "\xee\x88\xb1", "\xee\x90\x9e", "\xee\x90\x9f", "\xee\x90\xa0", "\xee\x90\xa1", "\xee\x90\xa2", "\xf3\xbe\x80\x80", "\xf3\xbe\x80\x81", "\xf3\xbe\x80\x82", "\xf3\xbe\x80\x83", "\xf3\xbe\x80\x84", "\xf3\xbe\x80\x85", "\xf3\xbe\x80\x86", "\xf3\xbe\x80\x87", "\xf3\xbe\x80\x88", "\xf3\xbe\x80\x89", "\xf3\xbe\x80\x8a", "\xf3\xbe\x80\x8b", "\xf3\xbe\x80\x8c", "\xf3\xbe\x80\x8d", "\xf3\xbe\x80\x8e", "\xf3\xbe\x80\x8f", "\xf3\xbe\x80\x90", "\xf3\xbe\x80\xb8", "\xf3\xbe\x80\xba", "\xf3\xbe\x80\xbb", "\xf3\xbe\x80\xb9", "\xf3\xbe\x80\x91", "\xf3\xbe\x80\x92", "\xf3\xbe\x80\x93", "\xf3\xbe\x80\x94", "\xf3\xbe\x80\x95", "\xf3\xbe\x80\x96", "\xf3\xbe\xad\xa9", "\xf3\xbe\xad\xaa", "\xf3\xbe\x80\x9e", "\xf3\xbe\x80\x9f", "\xf3\xbe\x80\xa0", "\xf3\xbe\x80\xa1", "\xf3\xbe\x80\xa2", "\xf3\xbe\x80\xa3", "\xf3\xbe\x80\xa4", "\xf3\xbe\x80\xa5", "\xf3\xbe\x80\xa6", "\xf3\xbe\x80\xa7", "\xf3\xbe\x80\xa8", "\xf3\xbe\x80\xa9", "\xf3\xbe\x80\x9d", "\xf3\xbe\x80\x9c", "\xf3\xbe\x80\xaa", "\xf3\xbe\x80\x9b", "\xf3\xbe\x80\xab", "\xf3\xbe\x80\xac", "\xf3\xbe\x80\xad", "\xf3\xbe\x80\xae", "\xf3\xbe\x80\xaf", "\xf3\xbe\x80\xb0", "\xf3\xbe\x80\xb1", "\xf3\xbe\x80\xb2", "\xf3\xbe\x80\xb3", "\xf3\xbe\x80\xb4", "\xf3\xbe\x80\xb5", "\xf3\xbe\x80\xb6", "\xf3\xbe\x80\xb7", "\xf3\xbe\x80\xbc", "\xf3\xbe\x80\xbd", "\xf3\xbe\x80\xbe", "\xf3\xbe\x80\xbf", "\xf3\xbe\x81\x80", "\xf3\xbe\x81\x81", "\xf3\xbe\x81\x82", "\xf3\xbe\x81\x83", "\xf3\xbe\x81\x85", "\xf3\xbe\x81\x86", "\xf3\xbe\x81\x87", "\xf3\xbe\x81\x88", "\xf3\xbe\x81\x89", "\xf3\xbe\x81\x8a", "\xf3\xbe\x81\x8b", "\xf3\xbe\x81\x8c", "\xf3\xbe\x81\x8d", "\xf3\xbe\x81\x8e", "\xf3\xbe\x81\x8f", "\xf3\xbe\x81\x90", "\xf3\xbe\x81\x91", "\xf3\xbe\x81\x92", "\xf3\xbe\x81\x93", "\xf3\xbe\x81\x94", "\xf3\xbe\x81\x95", "\xf3\xbe\x81\x96", "\xf3\xbe\x81\x97", "\xf3\xbe\x81\x98", "\xf3\xbe\x81\x99", "\xf3\xbe\x81\x9a", "\xf3\xbe\x81\x9b", "\xf3\xbe\x86\x90", "\xf3\xbe\x86\x91", "\xf3\xbe\x86\x92", "\xf3\xbe\x86\x93", "\xf3\xbe\x86\x94", "\xf3\xbe\x86\x95", "\xf3\xbe\x86\x96", "\xf3\xbe\x86\x97", "\xf3\xbe\x86\x98", "\xf3\xbe\x86\x99", "\xf3\xbe\x86\x9a", "\xf3\xbe\x86\x9b", "\xf3\xbe\x86\x9c", "\xf3\xbe\x86\x9d", "\xf3\xbe\x86\x9e", "\xf3\xbe\x86\x9f", "\xf3\xbe\x86\xa0", "\xf3\xbe\x86\xa1", "\xf3\xbe\x86\xa2", "\xf3\xbe\x86\xa3", "\xf3\xbe\x86\xa4", "\xf3\xbe\x86\xa5", "\xf3\xbe\x86\xa6", "\xf3\xbe\x86\xa7", "\xf3\xbe\x86\xa8", "\xf3\xbe\x86\xa9", "\xf3\xbe\x86\xaa", "\xf3\xbe\x86\xab", "\xf3\xbe\x86\xac", "\xf3\xbe\x86\xad", "\xf3\xbe\x86\xae", "\xf3\xbe\x86\xaf", "\xf3\xbe\x86\xb0", "\xf3\xbe\x86\xb1", "\xf3\xbe\x86\xb2", "\xf3\xbe\x86\xb3", "\xf3\xbe\x86\xb4", "\xf3\xbe\x86\xb5", "\xf3\xbe\x86\xb6", "\xf3\xbe\x86\xb9", "\xf3\xbe\x87\x93", "\xf3\xbe\x9f\x9c", "\xf3\xbe\x87\x94", "\xf3\xbe\x87\x95", "\xf3\xbe\x87\x96", "\xf3\xbe\x87\x8c", "\xf3\xbe\x87\x8d", "\xf3\xbe\x87\x8e", "\xf3\xbe\x87\x8f", "\xf3\xbe\x87\x85", "\xf3\xbe\x87\x86", "\xf3\xbe\x87\x8b", "\xf3\xbe\x87\x9a", "\xf3\xbe\x87\xa1", "\xf3\xbe\x87\xa2", "\xf3\xbe\x87\x89", "\xf3\xbe\x87\x99", "\xf3\xbe\x87\x9c", "\xf3\xbe\x86\xba", "\xf3\xbe\x86\xbb", "\xf3\xbe\x87\x88", "\xf3\xbe\x87\x9d", "\xf3\xbe\x86\xbc", "\xf3\xbe\x87\x98", "\xf3\xbe\x86\xbd", "\xf3\xbe\x87\x87", "\xf3\xbe\x87\x82", "\xf3\xbe\x87\x80", "\xf3\xbe\x86\xb8", "\xf3\xbe\x87\x83", "\xf3\xbe\x86\xbe", "\xf3\xbe\x87\x84", "\xf3\xbe\x86\xb7", "\xf3\xbe\x86\xbf", "\xf3\xbe\x87\x81", "\xf3\xbe\x87\x8a", "\xf3\xbe\x87\x90", "\xf3\xbe\x87\x91", "\xf3\xbe\x87\x92", "\xf3\xbe\x87\x97", "\xf3\xbe\x87\x9b", "\xf3\xbe\x87\x9e", "\xf3\xbe\x87\x9f", "\xf3\xbe\x87\xa0", "\xf3\xbe\x8c\xa0", "\xf3\xbe\x8c\xa1", "\xf3\xbe\x8c\xa2", "\xf3\xbe\x8c\xa3", "\xf3\xbe\x8c\xa4", "\xf3\xbe\x8c\xa5", "\xf3\xbe\x8c\xa6", "\xf3\xbe\x8c\xa7", "\xf3\xbe\x8c\xa8", "\xf3\xbe\x8c\xa9", "\xf3\xbe\x8c\xaa", "\xf3\xbe\x8c\xab", "\xf3\xbe\x8c\xac", "\xf3\xbe\x8c\xad", "\xf3\xbe\x8c\xae", "\xf3\xbe\x8c\xaf", "\xf3\xbe\x8c\xb0", "\xf3\xbe\x8c\xb1", "\xf3\xbe\x8c\xb2", "\xf3\xbe\x8c\xb3", "\xf3\xbe\x8c\xb4", "\xf3\xbe\x8c\xb5", "\xf3\xbe\x8c\xb6", "\xf3\xbe\x8c\xb8", "\xf3\xbe\x8c\xb9", "\xf3\xbe\x8c\xba", "\xf3\xbe\x8c\xbb", "\xf3\xbe\x8c\xbc", "\xf3\xbe\x8c\xbd", "\xf3\xbe\x8c\xbe", "\xf3\xbe\x8c\xbf", "\xf3\xbe\x8d\x80", "\xf3\xbe\x8d\x81", "\xf3\xbe\x8d\x82", "\xf3\xbe\x8d\x83", "\xf3\xbe\x8d\x84", "\xf3\xbe\x8d\x85", "\xf3\xbe\x8d\x86", "\xf3\xbe\x8d\x87", "\xf3\xbe\x8d\x88", "\xf3\xbe\x8d\x89", "\xf3\xbe\x8d\x8a", "\xf3\xbe\x8d\x8b", "\xf3\xbe\x8d\x8c", "\xf3\xbe\x8d\x8d", "\xf3\xbe\x8d\x8e", "\xf3\xbe\x8d\x8f", "\xf3\xbe\x8d\x90", "\xf3\xbe\x8d\x91", "\xf3\xbe\x8d\x92", "\xf3\xbe\x8d\x93", "\xf3\xbe\x8d\x94", "\xf3\xbe\x8d\x95", "\xf3\xbe\x8d\x96", "\xf3\xbe\x8d\x97", "\xf3\xbe\x8d\x98", "\xf3\xbe\x8d\x99", "\xf3\xbe\x8d\x9a", "\xf3\xbe\x8d\x9b", "\xf3\xbe\x92\xb0", "\xf3\xbe\x92\xb1", "\xf3\xbe\x92\xb2", "\xf3\xbe\x92\xb3", "\xf3\xbe\x92\xb4", "\xf3\xbe\x92\xb5", "\xf3\xbe\x92\xb6", "\xf3\xbe\x92\xb7", "\xf3\xbe\x92\xb8", "\xf3\xbe\x92\xb9", "\xf3\xbe\x92\xba", "\xf3\xbe\x92\xbb", "\xf3\xbe\x92\xbc", "\xf3\xbe\x92\xbd", "\xf3\xbe\x92\xbe", "\xf3\xbe\x92\xbf", "\xf3\xbe\x93\x80", "\xf3\xbe\x93\x81", "\xf3\xbe\x93\x82", "\xf3\xbe\x93\x83", "\xf3\xbe\x93\x84", "\xf3\xbe\x93\x86", "\xf3\xbe\x93\x87", "\xf3\xbe\x93\x88", "\xf3\xbe\x93\x8c", "\xf3\xbe\x93\x8d", "\xf3\xbe\x93\x96", "\xf3\xbe\x93\x97", "\xf3\xbe\x93\x98", "\xf3\xbe\x95\x93", "\xf3\xbe\x93\x8e", "\xf3\xbe\x93\x8f", "\xf3\xbe\x93\x90", "\xf3\xbe\x93\x91", "\xf3\xbe\x93\x93", "\xf3\xbe\x93\x94", "\xf3\xbe\x93\x95", "\xf3\xbe\x93\x99", "\xf3\xbe\x93\x9a", "\xf3\xbe\x93\x9b", "\xf3\xbe\x93\x9c", "\xf3\xbe\x93\xb0", "\xf3\xbe\x93\xb1", "\xf3\xbe\x93\x9d", "\xf3\xbe\x93\x9e", "\xf3\xbe\x93\x9f", "\xf3\xbe\x93\xa0", "\xf3\xbe\x93\xa1", "\xf3\xbe\x93\xa2", "\xf3\xbe\x93\xa3", "\xf3\xbe\x93\xa4", "\xf3\xbe\x93\xad", "\xf3\xbe\x93\xa8", "\xf3\xbe\x93\xab", "\xf3\xbe\x93\xa7", "\xf3\xbe\x93\xaa", "\xf3\xbe\x93\xa9", "\xf3\xbe\x93\xa5", "\xf3\xbe\x93\xae", "\xf3\xbe\x93\xac", "\xf3\xbe\x93\xa6", "\xf3\xbe\x93\xb6", "\xf3\xbe\x93\xbb", "\xf3\xbe\x93\x89", "\xf3\xbe\x93\x8a", "\xf3\xbe\x93\x8b", "\xf3\xbe\x93\xba", "\xf3\xbe\x93\xb5", "\xf3\xbe\x93\xb7", "\xf3\xbe\x93\xb8", "\xf3\xbe\x81\x84", "\xf3\xbe\x93\x92", "\xf3\xbe\x94\x89", "\xf3\xbe\x94\x8a", "\xf3\xbe\x94\x8b", "\xf3\xbe\x94\x8c", "\xf3\xbe\x94\x8d", "\xf3\xbe\x94\x8e", "\xf3\xbe\x94\x8f", "\xf3\xbe\x94\x90", "\xf3\xbe\x94\x91", "\xf3\xbe\x94\x92", "\xf3\xbe\x94\x93", "\xf3\xbe\x94\x94", "\xf3\xbe\x94\x95", "\xf3\xbe\x94\x96", "\xf3\xbe\x94\x97", "\xf3\xbe\x94\x98", "\xf3\xbe\x94\x99", "\xf3\xbe\x94\x9a", "\xf3\xbe\x94\x9b", "\xf3\xbe\x94\x9c", "\xf3\xbe\x94\x9d", "\xf3\xbe\x94\x9e", "\xf3\xbe\x94\x9f", "\xf3\xbe\x94\xa0", "\xf3\xbe\x94\xa1", "\xf3\xbe\x80\x97", "\xf3\xbe\x94\xa2", "\xf3\xbe\x94\xa3", "\xf3\xbe\x94\xa4", "\xf3\xbe\x94\xa5", "\xf3\xbe\x94\xa6", "\xf3\xbe\x94\xa7", "\xf3\xbe\x94\xa8", "\xf3\xbe\x94\xa9", "\xf3\xbe\x94\xaa", "\xf3\xbe\x94\xab", "\xf3\xbe\x94\xac", "\xf3\xbe\x94\xad", "\xf3\xbe\x94\xae", "\xf3\xbe\xa0\xa2", "\xf3\xbe\x94\xaf", "\xf3\xbe\x94\xb0", "\xf3\xbe\x94\xb1", "\xf3\xbe\x94\xb3", "\xf3\xbe\x94\xb4", "\xf3\xbe\x94\xb5", "\xf3\xbe\xae\x92", "\xf3\xbe\xad\xbc", "\xf3\xbe\xad\xbd", "\xf3\xbe\xad\xbe", "\xf3\xbe\xad\xbf", "\xf3\xbe\xae\x80", "\xf3\xbe\x94\xb6", "\xf3\xbe\x94\xb7", "\xf3\xbe\x94\xb8", "\xf3\xbe\x94\xb9", "\xf3\xbe\x94\xba", "\xf3\xbe\x94\xbb", "\xf3\xbe\x94\xbc", "\xf3\xbe\x94\xbd", "\xf3\xbe\xa0\x9d", "\xf3\xbe\xa0\x9e", "\xf3\xbe\x94\xbe", "\xf3\xbe\x94\xbf", "\xf3\xbe\x95\x80", "\xf3\xbe\x95\x81", "\xf3\xbe\x95\x82", "\xf3\xbe\x95\x83", "\xf3\xbe\x95\x84", "\xf3\xbe\x95\x85", "\xf3\xbe\x95\x86", "\xf3\xbe\x95\x87", "\xf3\xbe\x94\x82", "\xf3\xbe\x93\xbf", "\xf3\xbe\x94\x80", "\xf3\xbe\x94\x81", "\xf3\xbe\x94\x83", "\xf3\xbe\x94\x84", "\xf3\xbe\x93\xbd", "\xf3\xbe\x95\x88", "\xf3\xbe\x95\x89", "\xf3\xbe\x95\x8a", "\xf3\xbe\x95\x8b", "\xf3\xbe\x95\x8c", "\xf3\xbe\x95\x8d", "\xf3\xbe\x95\x8e", "\xf3\xbe\x95\x8f", "\xf3\xbe\x95\x90", "\xf3\xbe\x95\x91", "\xf3\xbe\x95\x92", "\xf3\xbe\x9f\x90", "\xf3\xbe\x9f\x91", "\xf3\xbe\x9f\x92", "\xf3\xbe\x9f\x93", "\xf3\xbe\x9f\x94", "\xf3\xbe\x9f\x95", "\xf3\xbe\x9f\x96", "\xf3\xbe\x9f\x97", "\xf3\xbe\x9f\x98", "\xf3\xbe\x9f\x99", "\xf3\xbe\x9f\x9a", "\xf3\xbe\x9f\x9b", "\xf3\xbe\x9f\x9d", "\xf3\xbe\x9f\x9e", "\xf3\xbe\x9f\x9f", "\xf3\xbe\x9f\xa0", "\xf3\xbe\x9f\xa1", "\xf3\xbe\x9f\xa2", "\xf3\xbe\x9f\xa3", "\xf3\xbe\x9f\xa4", "\xf3\xbe\x9f\xa5", "\xf3\xbe\x9f\xa6", "\xf3\xbe\x9f\xa7", "\xf3\xbe\x9f\xa8", "\xf3\xbe\x9f\xa9", "\xf3\xbe\x9f\xaa", "\xf3\xbe\x9f\xac", "\xf3\xbe\x9f\xad", "\xf3\xbe\x9f\xae", "\xf3\xbe\x9f\xaf", "\xf3\xbe\x9f\xb1", "\xf3\xbe\x9f\xb2", "\xf3\xbe\x9f\xb3", "\xf3\xbe\x9f\xb4", "\xf3\xbe\x9f\xb5", "\xf3\xbe\x9f\xb6", "\xf3\xbe\x9f\xb7", "\xf3\xbe\x9f\xb8", "\xf3\xbe\x9f\xb9", "\xf3\xbe\x9f\xba", "\xf3\xbe\x9f\xbb", "\xf3\xbe\x9f\xbc", "\xf3\xbe\x9f\xbd", "\xf3\xbe\x9f\xbe", "\xf3\xbe\x9f\xbf", "\xf3\xbe\xa0\x80", "\xf3\xbe\xa0\x81", "\xf3\xbe\xa0\x82", "\xf3\xbe\xa0\x83", "\xf3\xbe\xa0\x84", "\xf3\xbe\xa0\x85", "\xf3\xbe\xa0\x86", "\xf3\xbe\xa0\x87", "\xf3\xbe\xa0\x88", "\xf3\xbe\xa0\x89", "\xf3\xbe\xa0\x8a", "\xf3\xbe\xa0\x8b", "\xf3\xbe\xa0\x8c", "\xf3\xbe\xa0\x8d", "\xf3\xbe\xa0\x8e", "\xf3\xbe\xa0\x8f", "\xf3\xbe\xa0\x90", "\xf3\xbe\xa0\x91", "\xf3\xbe\xa0\x92", "\xf3\xbe\xa0\x93", "\xf3\xbe\xa0\x94", "\xf3\xbe\xa0\x95", "\xf3\xbe\xa0\x96", "\xf3\xbe\xa0\x97", "\xf3\xbe\xa0\x98", "\xf3\xbe\xa0\x99", "\xf3\xbe\xa0\x9a", "\xf3\xbe\xa0\x9b", "\xf3\xbe\x93\xaf", "\xf3\xbe\x93\xb9", "\xf3\xbe\xa0\x9c", "\xf3\xbe\xa0\x9f", "\xf3\xbe\xa0\xa0", "\xf3\xbe\xa0\xa3", "\xf3\xbe\xa0\xa4", "\xf3\xbe\xa0\xa5", "\xf3\xbe\xa0\xa6", "\xf3\xbe\xa0\xa7", "\xf3\xbe\xa0\xa8", "\xf3\xbe\xa0\xa9", "\xf3\xbe\xa0\xaa", "\xf3\xbe\xac\xa5", "\xf3\xbe\xac\xa9", "\xf3\xbe\xac\xad", "\xf3\xbe\xac\xaa", "\xf3\xbe\xad\x87", "\xf3\xbe\xa0\xac", "\xf3\xbe\xa0\xae", "\xf3\xbe\xa0\xaf", "\xf3\xbe\xa0\xb0", "\xf3\xbe\xa0\xb1", "\xf3\xbe\xa0\xb2", "\xf3\xbe\xa0\xb3", "\xf3\xbe\xa0\xb4", "\xf3\xbe\xa0\xb5", "\xf3\xbe\xa0\xb6", "\xf3\xbe\xa0\xb7", "\xf3\xbe\xa0\xbb", "\xf3\xbe\xa0\xb8", "\xf3\xbe\xa0\xb9", "\xf3\xbe\xa0\xba", "\xf3\xbe\xa5\xa0", "\xf3\xbe\xa5\xa1", "\xf3\xbe\xa5\xa2", "\xf3\xbe\xa5\xa3", "\xf3\xbe\xa5\xa4", "\xf3\xbe\xa5\xa5", "\xf3\xbe\xa5\xa6", "\xf3\xbe\xa5\xa7", "\xf3\xbe\xa5\xa8", "\xf3\xbe\xa5\xa9", "\xf3\xbe\xa5\xaa", "\xf3\xbe\xa5\xab", "\xf3\xbe\xa5\xac", "\xf3\xbe\xa5\xad", "\xf3\xbe\xa5\xae", "\xf3\xbe\xa5\xaf", "\xf3\xbe\xa5\xb0", "\xf3\xbe\xa5\xb1", "\xf3\xbe\xa5\xb2", "\xf3\xbe\xa5\xb3", "\xf3\xbe\xa5\xb4", "\xf3\xbe\xa5\xb5", "\xf3\xbe\xa5\xb6", "\xf3\xbe\xa5\xb7", "\xf3\xbe\xa5\xb8", "\xf3\xbe\xa5\xb9", "\xf3\xbe\xa5\xba", "\xf3\xbe\xa5\xbb", "\xf3\xbe\xa5\xbc", "\xf3\xbe\xa5\xbd", "\xf3\xbe\xa5\xbe", "\xf3\xbe\xa5\xbf", "\xf3\xbe\xa6\x80", "\xf3\xbe\xa6\x81", "\xf3\xbe\xa6\x82", "\xf3\xbe\xa6\x83", "\xf3\xbe\xa6\x84", "\xf3\xbe\xa6\x85", "\xf3\xbe\xa6\x86", "\xf3\xbe\xa6\x87", "\xf3\xbe\xa6\x88", "\xf3\xbe\xab\xb0", "\xf3\xbe\xab\xb1", "\xf3\xbe\xab\xb2", "\xf3\xbe\xab\xb3", "\xf3\xbe\xab\xb4", "\xf3\xbe\xab\xb5", "\xf3\xbe\xab\xb6", "\xf3\xbe\xab\xb7", "\xf3\xbe\xab\xb8", "\xf3\xbe\xab\xb9", "\xf3\xbe\xab\xba", "\xf3\xbe\xab\xbb", "\xf3\xbe\xab\xbc", "\xf3\xbe\xab\xbd", "\xf3\xbe\xab\xbe", "\xf3\xbe\xab\xbf", "\xf3\xbe\xac\x83", "\xf3\xbe\xac\x82", "\xf3\xbe\xad\xb8", "\xf3\xbe\xad\xb9", "\xf3\xbe\xac\x81", "\xf3\xbe\xac\x80", "\xf3\xbe\xad\x84", "\xf3\xbe\xad\x85", "\xf3\xbe\xad\x86", "\xf3\xbe\xac\x84", "\xf3\xbe\xac\x85", "\xf3\xbe\xac\x86", "\xf3\xbe\xac\x89", "\xf3\xbe\xac\x8a", "\xf3\xbe\xac\x8b", "\xf3\xbe\xac\x87", "\xf3\xbe\xac\x88", "\xf3\xbe\xa0\xab", "\xf3\xbe\xac\x8c", "\xf3\xbe\xac\x8d", "\xf3\xbe\xac\x8e", "\xf3\xbe\xac\x8f", "\xf3\xbe\xac\x90", "\xf3\xbe\xac\x91", "\xf3\xbe\xac\x92", "\xf3\xbe\xac\x93", "\xf3\xbe\xac\x94", "\xf3\xbe\xac\x95", "\xf3\xbe\xac\x96", "\xf3\xbe\xac\x97", "\xf3\xbe\xac\x98", "\xf3\xbe\xac\x99", "\xf3\xbe\xac\x9a", "\xf3\xbe\xac\x9b", "\xf3\xbe\xac\x9c", "\xf3\xbe\xac\x9d", "\xf3\xbe\xac\x9e", "\xf3\xbe\xac\x9f", "\xf3\xbe\xac\xa0", "\xf3\xbe\xac\xa2", "\xf3\xbe\xac\xa3", "\xf3\xbe\xac\xa6", "\xf3\xbe\xac\xac", "\xf3\xbe\x9f\xab", "\xf3\xbe\x9f\xb0", "\xf3\xbe\xac\xb3", "\xf3\xbe\xac\xb4", "\xf3\xbe\x94\x85", "\xf3\xbe\x94\x86", "\xf3\xbe\x94\x87", "\xf3\xbe\x94\x88", "\xf3\xbe\xac\xb5", "\xf3\xbe\x93\xb3", "\xf3\xbe\xad\x88", "\xf3\xbe\xad\x89", "\xf3\xbe\xae\x84", "\xf3\xbe\xac\xb8", "\xf3\xbe\xac\xa1", "\xf3\xbe\xae\x81", "\xf3\xbe\xac\xb6", "\xf3\xbe\xac\xa8", "\xf3\xbe\xac\xa7", "\xf3\xbe\xad\x8f", "\xf3\xbe\xac\xb7", "\xf3\xbe\xac\xb2", "\xf3\xbe\xac\xa4", "\xf3\xbe\xac\xbf", "\xf3\xbe\xac\xae", "\xf3\xbe\xac\xaf", "\xf3\xbe\xac\xb0", "\xf3\xbe\xac\xb1", "\xf3\xbe\xac\xb9", "\xf3\xbe\xac\xba", "\xf3\xbe\xac\xbb", "\xf3\xbe\xac\xbc", "\xf3\xbe\xac\xbe", "\xf3\xbe\xad\x80", "\xf3\xbe\xad\x81", "\xf3\xbe\xac\xab", "\xf3\xbe\xad\x83", "\xf3\xbe\xac\xbd", "\xf3\xbe\xad\x90", "\xf3\xbe\xad\x91", "\xf3\xbe\xad\x92", "\xf3\xbe\xad\x93", "\xf3\xbe\xad\x94", "\xf3\xbe\xad\x95", "\xf3\xbe\xad\x96", "\xf3\xbe\xad\x97", "\xf3\xbe\xad\x98", "\xf3\xbe\xad\x99", "\xf3\xbe\xad\x9a", "\xf3\xbe\xad\x9b", "\xf3\xbe\xad\x9c", "\xf3\xbe\xad\x9d", "\xf3\xbe\x93\xb4", "\xf3\xbe\xad\x9e", "\xf3\xbe\xad\x9f", "\xf3\xbe\x94\xb2", "\xf3\xbe\xad\xa0", "\xf3\xbe\xad\xa1", "\xf3\xbe\xad\xa2", "\xf3\xbe\xad\xa5", "\xf3\xbe\xad\xa6", "\xf3\xbe\xad\xa3", "\xf3\xbe\xad\xa4", "\xf3\xbe\xad\xa7", "\xf3\xbe\xad\xa8", "\xf3\xbe\xad\xab", "\xf3\xbe\xad\xac", "\xf3\xbe\xad\xad", "\xf3\xbe\xad\xae", "\xf3\xbe\xad\xaf", "\xf3\xbe\xad\xb0", "\xf3\xbe\xad\xb1", "\xf3\xbe\xad\xb2", "\xf3\xbe\xad\xb3", "\xf3\xbe\xad\xb4", "\xf3\xbe\xad\xb5", "\xf3\xbe\xad\xb6", "\xf3\xbe\xad\xb7", "\xf3\xbe\xad\xba", "\xf3\xbe\xad\xbb", "\xf3\xbe\xae\x83", "\xf3\xbe\xae\x88", "\xf3\xbe\xae\x91", "\xf3\xbe\xa0\xa1", "\xf3\xbe\x93\xbc", "\xf3\xbe\x93\xbe", "\xf3\xbe\xae\x85", "\xf3\xbe\xae\x8d", "\xf3\xbe\xae\x86", "\xf3\xbe\xae\x87", "\xf3\xbe\xae\x90", "\xf3\xbe\xae\x8a", "\xf3\xbe\xae\x82", "\xf3\xbe\x93\xb2", "\xf3\xbe\xae\x8b", "\xf3\xbe\xae\x8c", "\xf3\xbe\xae\x8f", "\xf3\xbe\xad\x8b", "\xf3\xbe\xae\x8e", "\xf3\xbe\x80\x9a", "\xf3\xbe\x80\x99", "\xf3\xbe\x80\x98", "\xf3\xbe\xad\x82", "\xf3\xbe\xad\x8a", "\xf3\xbe\xae\x93", "\xf3\xbe\xae\x95", "\xf3\xbe\xae\x94", "\xf3\xbe\xae\x96", "\xf3\xbe\xae\x97", "\xf3\xbe\xae\x98", "\xf3\xbe\xae\x99", "\xf3\xbe\xae\x9a", "\xf3\xbe\xae\x9b", "\xf3\xbe\xae\x9c", "\xf3\xbe\xae\x9d", "\xf3\xbe\xae\x9e", "\xf3\xbe\xae\x9f", "\xf3\xbe\xae\xa0", "\xf3\xbe\xae\xa1" - ); - } - -} - -class WeChatHook { - - public static function bindOpenId($uid, $openid, $isregister = 0) { - C::t('#wechat#common_member_wechat')->insert(array('uid' => $uid, 'status' => 2, 'openid' => $openid, 'isregister' => $isregister), false, true); - } - - public static function updateAppInfo($extId, $appId = '', $appSecret = '') { - global $_G; - $wechatappInfos = unserialize($_G['setting']['wechatappInfos']); - if ($appId) { - $wechatappInfos[$extId] = array('appId' => $appId, 'appSecret' => $appSecret); - } else { - unset($wechatappInfos[$extId]); - } - $settings = array('wechatappInfos' => serialize($wechatappInfos)); - C::t('common_setting')->update_batch($settings); - updatecache('setting'); - } - - public static function getAppInfo($extId) { - global $_G; - $wechatappInfos = unserialize($_G['setting']['wechatappInfos']); - if (isset($wechatappInfos[$extId])) { - return $wechatappInfos[$extId]; - } else { - return array(); - } - } - - public static function updateResponse($data, $extId = '') { - $response = self::getResponse($extId); - foreach ($data as $key => $value) { - if ($value) { - if ($value['plugin'] && $value['include'] && $value['class'] && $value['method']) { - $response[$key] = $value; - } - } else { - unset($response[$key]); - } - } - if (!$extId) { - $settings = array('wechatresponse' => serialize($response)); - } else { - global $_G; - $wechatresponseExts = unserialize($_G['setting']['wechatresponseExts']); - if ($data) { - $wechatresponseExts[$extId] = $response; - } else { - unset($wechatresponseExts[$extId]); - } - $settings = array('wechatresponseExts' => serialize($wechatresponseExts)); - } - C::t('common_setting')->update_batch($settings); - updatecache('setting'); - return $response; - } - - public static function getResponse($extId = '') { - global $_G; - if (!$extId) { - return unserialize($_G['setting']['wechatresponse']); - } else { - $wechatresponseExts = unserialize($_G['setting']['wechatresponseExts']); - return $wechatresponseExts[$extId]; - } - } - - public static function updateRedirect($value) { - if (!$value || $value['plugin'] && $value['include'] && $value['class'] && $value['method']) { - $settings = array('wechatredirect' => $value); - C::t('common_setting')->update_batch($settings); - updatecache('setting'); - } - } - - public static function getRedirect() { - global $_G; - return unserialize($_G['setting']['wechatredirect']); - } - - public static function getViewPluginId() { - global $_G; - return $_G['setting']['wechatviewpluginid']; - } - - public static function updateViewPluginId($value) { - $settings = array('wechatviewpluginid' => $value); - C::t('common_setting')->update_batch($settings); - updatecache('setting'); - } - - public static function updateAPIHook($datas) { - $apihook = self::getAPIHook(); - foreach ($datas as $data) { - foreach ($data as $key => $value) { - if (!$value['plugin']) { - continue; - } - list($module, $hookname) = explode('_', $key); - if ($value['include'] && $value['class'] && $value['method']) { - $v = $value; - unset($v['plugin']); - $v['allow'] = 1; - $apihook[$module][$hookname][$value['plugin']] = $v; - } else { - unset($apihook[$module][$hookname][$value['plugin']]); - } - } - } - $settings = array('mobileapihook' => serialize($apihook)); - C::t('common_setting')->update_batch($settings); - updatecache('setting'); - return $apihook; - } - - public static function getAPIHook($getplugin = '') { - global $_G; - $data = unserialize($_G['setting']['mobileapihook']); - if (!$getplugin) { - return $data; - } else { - foreach ($data as $key => $hooknames) { - foreach ($hooknames as $hookname => $plugins) { - foreach ($plugins as $plugin => $value) { - if ($getplugin != $plugin) { - unset($data[$key][$hookname][$plugin]); - } - } - } - } - return $data; - } - } - - public static function delAPIHook($getplugin) { - if (!$getplugin) { - return; - } - $getplugins = (array) $getplugin; - $apihook = self::getAPIHook(); - foreach ($apihook as $key => $hooknames) { - foreach ($hooknames as $hookname => $plugins) { - foreach ($plugins as $plugin => $value) { - if (in_array($plugin, $getplugins)) { - unset($apihook[$key][$hookname][$plugin]); - } - } - } - } - $settings = array('mobileapihook' => serialize($apihook)); - C::t('common_setting')->update_batch($settings); - updatecache('setting'); - return $apihook; - } - - public static function getPluginUrl($pluginid, $param = array()) { - global $_G; - if (in_array('plugin', $_G['setting']['rewritestatus'])) { - $url = $_G['siteurl'] . rewriteoutput('plugin', 1, 'wechat', 'access') . '?'; - } else { - $url = $_G['siteurl'] . 'plugin.php?id=wechat:access&'; - } - $url .= 'pluginid=' . urlencode($pluginid) . '¶m=' . urlencode(base64_encode(http_build_query($param))); - return $url; - } - +_token = $token; + $this->_hooks = $hooks; + $this->accessDataPush(); + } + + private function _activeHook($type) { + if (!isset($this->_hooks[$type])) { + return null; + } + $hook = & $this->_hooks[$type]; + global $_G; + if (!in_array($hook['plugin'], $_G['setting']['plugins']['available'])) { + return null; + } + if (!preg_match("/^[\w\_]+$/i", $hook['plugin']) || !preg_match('/^[\w\_\.]+\.php$/i', $hook['include'])) { + return null; + } + include_once DISCUZ_ROOT . 'source/plugin/' . $hook['plugin'] . '/' . $hook['include']; + if (!class_exists($hook['class'], false)) { + return null; + } + if (!isset($this->classes[$hook['class']])) { + $this->classes[$hook['class']] = new $hook['class']; + } + if (!method_exists($this->classes[$hook['class']], $hook['method'])) { + return null; + } + $param = func_get_args(); + array_shift($param); + return $this->classes[$hook['class']]->$hook['method']($param); + } + + private function _checkSignature() { + $signature = $_GET["signature"]; + $timestamp = $_GET["timestamp"]; + $nonce = $_GET["nonce"]; + + $token = $this->_token; + $tmpArr = array($token, $timestamp, $nonce); + sort($tmpArr, SORT_STRING); + $tmpStr = implode($tmpArr); + $tmpStr = sha1($tmpStr); + + return $tmpStr == $signature; + } + + private function _handlePostObj($postObj) { + $MsgType = strtolower((string) $postObj->MsgType); + $result = array( + 'from' => self::$_from_id = (string) htmlspecialchars($postObj->FromUserName), + 'to' => self::$_my_id = (string) htmlspecialchars($postObj->ToUserName), + 'time' => (int) $postObj->CreateTime, + 'type' => (string) $MsgType + ); + + if (property_exists($postObj, 'MsgId')) { + $result['id'] = $postObj->MsgId; + } + + switch ($result['type']) { + case 'text': + $result['content'] = (string) $postObj->Content; // Content Ϣ + break; + + case 'location': + $result['X'] = (float) $postObj->Location_X; // Location_X λγ + $result['Y'] = (float) $postObj->Location_Y; // Location_Y λþ + $result['S'] = (float) $postObj->Scale; // Scale ͼŴС + $result['I'] = (string) $postObj->Label; // Label λϢ + break; + + case 'image': + $result['url'] = (string) $postObj->PicUrl; // PicUrl ͼƬӣ߿HTTP GETȡ + $result['mid'] = (string) $postObj->MediaId; // MediaId ͼƬϢýidԵöýļؽӿȡݡ + break; + + case 'video': + $result['mid'] = (string) $postObj->MediaId; // MediaId ͼƬϢýidԵöýļؽӿȡݡ + $result['thumbmid'] = (string) $postObj->ThumbMediaId; // ThumbMediaId ƵϢͼýidԵöýļؽӿȡݡ + break; + + case 'link': + $result['title'] = (string) $postObj->Title; + $result['desc'] = (string) $postObj->Description; + $result['url'] = (string) $postObj->Url; + break; + + case 'voice': + $result['mid'] = (string) $postObj->MediaId; + $result['format'] = (string) $postObj->Format; + if (property_exists($postObj, Recognition)) { + $result['txt'] = (string) $postObj->Recognition; + } + break; + + case 'event': + $result['event'] = strtolower((string) $postObj->Event); + switch ($result['event']) { + + case 'subscribe': + case 'scan': + if (property_exists($postObj, EventKey)) { + $result['key'] = str_replace( + 'qrscene_', '', (string) $postObj->EventKey + ); + $result['ticket'] = (string) $postObj->Ticket; + } + break; + + case 'location': + $result['la'] = (string) $postObj->Latitude; + $result['lo'] = (string) $postObj->Longitude; + $result['p'] = (string) $postObj->Precision; + break; + + case 'click': + $result['key'] = (string) $postObj->EventKey; + break; + case 'masssendjobfinish': + $result['msg_id'] = (string) $postObj->MsgID; + $result['status'] = (string) $postObj->Status; + $result['totalcount'] = (string) $postObj->TotalCount; + $result['filtercount'] = (string) $postObj->FilterCount; + $result['sentcount'] = (string) $postObj->SentCount; + $result['errorcount'] = (string) $postObj->ErrorCount; + } + } + + return $result; + } + + private function accessDataPush() { + if (!$this->_checkSignature()) { + if (!headers_sent()) { + header('HTTP/1.1 404 Not Found'); + header('Status: 404 Not Found'); + } + $this->_activeHook('404'); + return; + } + + $postdata = file_get_contents("php://input"); + if ($postdata) { + if (!$this->_checkSignature()) { + return; + } + $postObj = simplexml_load_string($postdata, 'SimpleXMLElement', LIBXML_NOCDATA); + $postObj = $this->_handlePostObj($postObj); + + $this->_activeHook('receiveAllStart', $postObj); + + if (isset($postObj['event'])) { + $hookName = 'receiveEvent::' . $postObj['event']; + } else { + $hookName = 'receiveMsg::' . $postObj['type']; + } + $this->_activeHook($hookName, $postObj); + + $this->_activeHook('receiveAllEnd', $postObj); + } elseif (isset($_GET['echostr'])) { + + $this->_activeHook('accessCheckSuccess'); + if (!headers_sent()) { + header('Content-Type: text/plain'); + } + echo preg_replace('/[^a-z0-9]/i', '', $_GET['echostr']); + } + } + + private static $_from_id; + private static $_my_id; + + private static function _format2xml($nodes) { + $xml = '' + . '' + . '' + . '%s' + . '%s' + . ''; + $return = sprintf( + $xml, self::$_from_id, self::$_my_id, time(), $nodes + ); + return diconv($return, CHARSET, 'UTF-8'); + } + + public static function getXml4Txt($txt) { + $xml = '' + . ''; + return self::_format2xml( + sprintf( + $xml, $txt + ) + ); + } + + public static function getXml4ImgByMid($mid) { + $xml = '' + . '' + . '' + . ''; + return self::_format2xml( + sprintf( + $xml, $mid + ) + ); + } + + public static function getXml4VoiceByMid($mid) { + $xml = '' + . '' + . '' + . ''; + return self::_format2xml( + sprintf( + $xml, $mid + ) + ); + } + + public static function getXml4VideoByMid($mid, $title, $desc = '') { + $desc = '' !== $desc ? $desc : $title; + $xml = '' + . ''; + + return self::_format2xml( + sprintf( + $xml, $mid, $title, $desc + ) + ); + } + + public static function getXml4MusicByUrl($url, $thumbmid, $title, $desc = '', $hqurl = '') { + $xml = '' + . '' + . '<![CDATA[%s]]>' + . '' + . '' + . '' + . '' + . ''; + + return self::_format2xml( + sprintf( + $xml, $title, '' === $desc ? $title : $desc, $url, $hqurl ? $hqurl : $url, $thumbmid + ) + ); + } + + public static function getXml4RichMsgByArray($list) { + $max = 10; + $i = 0; + $ii = count($list); + $list_xml = ''; + while ($i < $ii && $i < $max) { + $item = $list[$i++]; + $list_xml .= + sprintf( + '' + . '<![CDATA[%s]]> ' + . '' + . '' + . '' + . '', $item['title'], $item['desc'], $item['pic'], $item['url'] + ); + } + + $xml = '' + . '%s' + . '%s'; + + return self::_format2xml( + sprintf( + $xml, $i, $list_xml + ) + ); + } + +} + +class WeChatClient { + + public static $_URL_API_ROOT = 'https://api.weixin.qq.com'; + public static $_URL_FILE_API_ROOT = 'http://file.api.weixin.qq.com'; + public static $_URL_QR_ROOT = 'http://mp.weixin.qq.com'; + public static $_QRCODE_TICKET_DEFAULT_ID = 1; + public static $ERRCODE_MAP = array( + '-1' => '系统繁忙', + '0' => '请求成功', + '40001' => '获取access_token时AppSecret错误,或者access_token无效', + '40002' => '不合法的凭证类型', + '40003' => '不合法的OpenID', + '40004' => '不合法的媒体文件类型', + '40005' => '不合法的文件类型', + '40006' => '不合法的文件大小', + '40007' => '不合法的媒体文件id', + '40008' => '不合法的消息类型', + '40009' => '不合法的图片文件大小', + '40010' => '不合法的语音文件大小', + '40011' => '不合法的视频文件大小', + '40012' => '不合法的缩略图文件大小', + '40013' => '不合法的APPID', + '40014' => '不合法的access_token', + '40015' => '不合法的菜单类型', + '40016' => '不合法的按钮个数', + '40017' => '不合法的按钮个数', + '40018' => '不合法的按钮名字长度', + '40019' => '不合法的按钮KEY长度', + '40020' => '不合法的按钮URL长度', + '40021' => '不合法的菜单版本号', + '40022' => '不合法的子菜单级数', + '40023' => '不合法的子菜单按钮个数', + '40024' => '不合法的子菜单按钮类型', + '40025' => '不合法的子菜单按钮名字长度', + '40026' => '不合法的子菜单按钮KEY长度', + '40027' => '不合法的子菜单按钮URL长度', + '40028' => '不合法的自定义菜单使用用户', + '40029' => '不合法的oauth_code', + '40030' => '不合法的refresh_token', + '40031' => '不合法的openid列表', + '40032' => '不合法的openid列表长度', + '40033' => '不合法的请求字符,不能包含\uxxxx格式的字符', + '40035' => '不合法的参数', + '40038' => '不合法的请求格式', + '40039' => '不合法的URL长度', + '40050' => '不合法的分组id', + '40051' => '分组名字不合法', + '41001' => '缺少access_token参数', + '41002' => '缺少appid参数', + '41003' => '缺少refresh_token参数', + '41004' => '缺少secret参数', + '41005' => '缺少多媒体文件数据', + '41006' => '缺少media_id参数', + '41007' => '缺少子菜单数据', + '41008' => '缺少oauth code', + '41009' => '缺少openid', + '42001' => 'access_token超时', + '42002' => 'refresh_token超时', + '42003' => 'oauth_code超时', + '43001' => '需要GET请求', + '43002' => '需要POST请求', + '43003' => '需要HTTPS请求', + '43004' => '需要接收者关注', + '43005' => '需要好友关系', + '44001' => '多媒体文件为空', + '44002' => 'POST的数据包为空', + '44003' => '图文消息内容为空', + '44004' => '文本消息内容为空', + '45001' => '多媒体文件大小超过限制', + '45002' => '消息内容超过限制', + '45003' => '标题字段超过限制', + '45004' => '描述字段超过限制', + '45005' => '链接字段超过限制', + '45006' => '图片链接字段超过限制', + '45007' => '语音播放时间超过限制', + '45008' => '图文消息超过限制', + '45009' => '接口调用超过限制', + '45010' => '创建菜单个数超过限制', + '45015' => '回复时间超过限制', + '45016' => '系统分组,不允许修改', + '45017' => '分组名字过长', + '45018' => '分组数量超过上限', + '46001' => '不存在媒体数据', + '46002' => '不存在的菜单版本', + '46003' => '不存在的菜单数据', + '46004' => '不存在的用户', + '47001' => '解析JSON/XML内容错误', + '48001' => 'api功能未授权', + '50001' => '用户未授权该api', + ); + public static $_USERINFO_LANG = 'en'; + private $_appid; + private $_appsecret; + private static $_accessTokenCache = array(); + private static $ERROR_LOGS = array(); + private static $ERROR_NO = 0; + + public function __construct($appid, $appsecret = '') { + if ($appsecret) { + $this->_appid = $appid; + $this->_appsecret = $appsecret; + } else { + $info = WeChatHook::getAppInfo($appid); + $this->_appid = $info['appId']; + $this->_appsecret = $info['appSecret']; + } + } + + public static function error() { + return self::$ERRCODE_MAP[self::$ERROR_NO] ? self::$ERRCODE_MAP[self::$ERROR_NO] : self::$ERROR_NO; + } + + public static function checkIsSuc($res) { + $result = true; + if (is_string($res)) { + $res = json_decode($res, true); + } + if (isset($res['errcode']) && ( 0 !== (int) $res['errcode'])) { + array_push(self::$ERROR_LOGS, $res); + $result = false; + self::$ERROR_NO = $res['errcode']; + } + return $result; + } + + public static function get($url) { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + # curl_setopt($ch, CURLOPT_HEADER, 1); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); + + if (!curl_exec($ch)) { + error_log(curl_error($ch)); + $data = ''; + } else { + $data = curl_multi_getcontent($ch); + } + curl_close($ch); + return $data; + } + + private static function post($url, $data) { + if (!function_exists('curl_init')) { + return ''; + } + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + # curl_setopt( $ch, CURLOPT_HEADER, 1); + + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); + + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + $data = curl_exec($ch); + if (!$data) { + error_log(curl_error($ch)); + } + curl_close($ch); + return $data; + } + + public function getAccessToken($tokenOnly = 1, $nocache = 0) { + global $_G; + $myTokenInfo = null; + $appid = $this->_appid; + $appsecret = $this->_appsecret; + $cachename = 'wechatat_' . $appid; + loadcache($cachename); + + if ($nocache || empty(self::$_accessTokenCache[$appid])) { + self::$_accessTokenCache[$appid] = $_G['cache'][$cachename]; + } + + if (!empty(self::$_accessTokenCache[$appid])) { + $myTokenInfo = self::$_accessTokenCache[$appid]; + if (time() < $myTokenInfo['expiration']) { + return $tokenOnly ? $myTokenInfo['token'] : $myTokenInfo; + } + } + + $url = self::$_URL_API_ROOT . "/cgi-bin/token?grant_type=client_credential&appid=$appid&secret=$appsecret"; + + $json = self::get($url); + $res = json_decode($json, true); + + if (self::checkIsSuc($res)) { + self::$_accessTokenCache[$appid] = $myTokenInfo = array( + 'token' => $res['access_token'], + 'expiration' => time() + (int) $res['expires_in'] + ); + savecache($cachename, $myTokenInfo); + } + return $tokenOnly ? $myTokenInfo['token'] : $myTokenInfo; + } + + public function setAccessToken($tokenInfo) { + if ($tokenInfo) { + $appid = $this->_appid; + self::$_accessTokenCache[$appid] = array( + 'token' => $tokenInfo['token'], + 'expire' => $tokenInfo['expire'] + ); + } + } + + public function upload($type, $file_path, $mediaidOnly = 1) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_FILE_API_ROOT . "/cgi-bin/media/upload?access_token=$access_token&type=$type"; + + $res = self::post($url, array('media' => "@$file_path")); + $res = json_decode($res, true); + + if (self::checkIsSuc($res)) { + return $mediaidOnly ? $res['media_id'] : $res; + } + return null; + } + + public function download($mid) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_FILE_API_ROOT . "/cgi-bin/media/get?access_token=$access_token&media_id=$mid"; + + return self::get($url); + } + + public function getMenu() { + + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/menu/get?access_token=$access_token"; + + $json = self::get($url); + + $res = json_decode($json, true); + if (self::checkIsSuc($res)) { + return $res; + } + return null; + } + + public function deleteMenu() { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/menu/delete?access_token=$access_token"; + + $res = self::get($url); + return self::checkIsSuc($res); + } + + public function setMenu($myMenu) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/menu/create?access_token=$access_token"; + + if (defined('JSON_UNESCAPED_UNICODE')) { + $json = is_string($myMenu) ? $myMenu : json_encode($myMenu, JSON_UNESCAPED_UNICODE); + } else { + $json = is_string($myMenu) ? $myMenu : json_encode($myMenu); + } + + $json = urldecode($json); + $res = self::post($url, $json); + + return self::checkIsSuc($res); + } + + private function _send($to, $type, $data) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/message/custom/send?access_token=$access_token"; + + $json = json_encode( + array( + 'touser' => $to, + 'msgtype' => $type, + $type => $data + ) + ); + + $res = self::post($url, $json); + + return self::checkIsSuc($res); + } + + public function sendTextMsg($to, $msg) { + return $this->_send($to, 'text', array('content' => $msg)); + } + + public function sendImgMsg($to, $mid) { + return $this->_send($to, 'image', array('media_id' => $mid)); + } + + public function sendVoice($to, $mid) { + return $this->_send($to, 'voice', array('media_id' => $mid)); + } + + public function sendVideo($to, $mid, $title, $desc) { + return $this->_send($to, 'video', array( + 'media_id' => $mid, + 'title' => $title, + 'description' => $desc + )); + } + + public function sendMusic($to, $url, $thumb_mid, $title, $desc = '', $hq_url = '') { + return $this->_send($to, 'music', array( + 'media_id' => $mid, + 'title' => $title, + 'description' => $desc || $title, + 'musicurl' => $url, + 'thumb_media_id' => $thumb_mid, + 'hqmusicurl' => $hq_url || $url + )); + } + + static private function _filterForRichMsg($articles) { + $i = 0; + $ii = len($articles); + $list = array('title', 'desc', 'url', 'thumb_url'); + $result = array(); + while ($i < $ii) { + $currentArticle = $articles[$i++]; + try { + array_push($result, array( + 'title' => $currentArticle['title'], + 'description' => $currentArticle['desc'], + 'url' => $currentArticle['url'], + 'picurl' => $currentArticle['thumb_url'] + )); + } catch (Exception $e) { + + } + } + return $result; + } + + public function uploadNews($articles) { + $i = 0; + $ii = count($articles); + $result = array(); + while ($i < $ii) { + $currentArticle = $articles[$i++]; + try { + array_push($result, array( + 'thumb_media_id' => $currentArticle['thumb_media_id'], + 'title' => $this->convertToUtf($currentArticle['title']), + 'content' => $this->convertToUtf($currentArticle['content']), + 'author' => $this->convertToUtf($currentArticle['author']), + 'content_source_url' => $this->convertToUtf($currentArticle['url']), + 'digest' => $this->convertToUtf($currentArticle['desc']), + 'show_cover_pic' => 1 + )); + } catch (Exception $e) { + + } + } + + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/media/uploadnews?access_token=$access_token"; + if (defined('JSON_UNESCAPED_UNICODE')) { + $json = json_encode(array('articles' => $result), JSON_UNESCAPED_UNICODE); + } else { + $json = json_encode(array('articles' => $result)); + } + + $json = urldecode($json); + + $res = self::post($url, $json); + if (self::checkIsSuc($res)) { + return json_decode($res, true); + } else { + return false; + } + } + + public function sendMassMsg($msg) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/message/mass/sendall?access_token=$access_token"; + $post = array(); + $post['filter'] = array('group_id' => $msg['group_id']); + if ($msg['type'] == 'media') { + $post['mpnews'] = array('media_id' => $msg['media_id']); + $post['msgtype'] = 'mpnews'; + } else { + $post['text'] = array('content' => $this->convertToUtf($msg['text'])); + $post['msgtype'] = 'text'; + } + + if (defined('JSON_UNESCAPED_UNICODE')) { + $json = json_encode($post, JSON_UNESCAPED_UNICODE); + } else { + $json = json_encode($post); + } + + $json = urldecode($json); + + $res = self::post($url, $json); + if (self::checkIsSuc($res)) { + return json_decode($res, true); + } else { + return false; + } + } + + function convertToUtf($str) { + return urlencode(diconv($str, CHARSET, 'UTF-8')); + } + + public function sendRichMsg($to, $articles) { + + return $this->_send($to, 'news', array( + 'articles' => self::_filterForRichMsg($articles) + )); + } + + public function createGroup($name) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/groups/create?access_token=$access_token"; + + $res = self::post($url, json_encode(array( + 'group' => array('name' => $name) + ))); + + $res = json_decode($res, true); + return self::checkIsSuc($res) ? $res['group']['id'] : null; + } + + public function renameGroup($gid, $name) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/groups/update?access_token=$access_token"; + + $res = self::post($url, json_encode(array( + 'group' => array( + 'id' => $gid, + 'name' => $name + ) + ))); + + $res = json_decode($res, true); + return self::checkIsSuc($res); + } + + public function moveUserById($uid, $gid) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/groups/members/update?access_token=$access_token"; + + $res = self::post( + $url, json_encode( + array( + 'openid' => $mid, + 'to_groupid' => $gid + ) + ) + ); + + $res = json_decode($res, true); + return self::checkIsSuc($res); + } + + public function getAllGroups() { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/groups/get?access_token=$access_token"; + + $res = json_decode(self::get($url), true); + + if (self::checkIsSuc($res)) { + return $res['groups']; + } else { + return null; + } + } + + public function getGroupidByUserid($uid) { + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/groups/getid?access_token=$access_token"; + + $res = self::post($url, json_encode(array( + 'openid' => $mid + ))); + + $res = json_decode($res, true); + return self::checkIsSuc($res) ? $res['groupid'] : null; + } + + public function getUserInfoById($uid, $lang = '') { + if (!$lang) { + $lang = self::$_USERINFO_LANG; + } + $access_token = $this->getAccessToken(); + $url = self::$_URL_API_ROOT . "/cgi-bin/user/info?access_token=$access_token&openid=$uid&lang=$lang"; + + $res = json_decode(self::get($url), true); + + return self::checkIsSuc($res) ? $res : null; + } + + public function getFollowersList($next_id = '') { + $access_token = $this->getAccessToken(); + $extend = ''; + if ($next_id) { + $extend = "&next_openid=$next_id"; + } + $url = self::$_URL_API_ROOT . "/cgi-bin/user/get?access_token=${access_token}$extend"; + + $res = json_decode( + self::get($url), true + ); + + return self::checkIsSuc($res) ? array( + 'total' => $res['total'], + 'list' => $res['data']['openid'], + 'next_id' => isset($res['next_openid']) ? $res['next_openid'] : null + ) : null; + } + + public function getOAuthConnectUri($redirect_uri, $state = '', $scope = 'snsapi_base') { + $redirect_uri = urlencode($redirect_uri); + $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$this->_appid}&redirect_uri={$redirect_uri}&response_type=code&scope={$scope}&state={$state}#wechat_redirect"; + return $url; + } + + public function getAccessTokenByCode($code) { + $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid={$this->_appid}&secret={$this->_appsecret}&code=$code&grant_type=authorization_code"; + $res = json_decode(self::get($url), true); + return $res; + } + + public function refreshAccessTocken($refresh_token) { + $url = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid={$this->_appid}&grant_type=refresh_token&refresh_token=$refresh_token"; + $res = json_decode(self::get($url), true); + return $res; + } + + public function getUserInfoByAuth($access_token, $openid, $lang = 'zh_CN') { + $url = "https://api.weixin.qq.com/sns/userinfo?access_token=$access_token&openid=$openid&lang=$lang"; + $res = json_decode(self::get($url), true); + return $res; + } + + public static function getQrcodeImgByTicket($ticket) { + return self::get($this->getQrcodeImgUrlByTicket($ticket)); + } + + public static function getQrcodeImgUrlByTicket($ticket) { + $ticket = urlencode($ticket); + return self::$_URL_QR_ROOT . "/cgi-bin/showqrcode?ticket=$ticket"; + } + + public function getQrcodeTicket($options = array()) { + $access_token = $this->getAccessToken(); + + $scene_id = isset($options['scene_id']) ? (int) $options['scene_id'] : 0; + $expire = isset($options['expire']) ? (int) $options['expire'] : 0; + $ticketOnly = isset($options['ticketOnly']) ? $options['ticketOnly'] : 1; + + $url = self::$_URL_API_ROOT . "/cgi-bin/qrcode/create?access_token=$access_token"; + $data = array( + 'action_name' => 'QR_LIMIT_SCENE', + 'action_info' => array( + 'scene' => array( + 'scene_id' => $scene_id + ) + ) + ); + if ($expire) { + $data['expire_seconds'] = $expire; + $data['action_name'] = 'QR_SCENE'; + } + + if ($data['action_name'] == 'QR_LIMIT_SCENE' && $scene_id > 100000) { + $data['action_info']['scene']['scene_id'] = self::$_QRCODE_TICKET_DEFAULT_ID; + } + + $data = json_encode($data); + + $res = self::post($url, $data); + $res = json_decode($res, true); + + if (self::checkIsSuc($res)) { + return $ticketOnly ? $res['ticket'] : array( + 'ticket' => $res['ticket'], + 'expire' => $res['expire_seconds'] + ); + } + return null; + } + +} + +class WeChatEmoji { + + public static function clear($str) { + $config = self::getList(); + $str = str_replace($config, '', $str); + return diconv($str, 'UTF-8', CHARSET); + } + + public static function getList() { + return array( + "\xee\x98\xbe", "\xee\x98\xbf", "\xee\x99\x80", "\xee\x99\x81", "\xee\x99\x82", "\xee\x99\x83", "\xee\x99\x84", "\xee\x99\x85", "\xee\x9a\xb3", "[\xe5\xa4\x95\xe7\x84\xbc\xe3\x81\x91]", "[\xe8\x99\xb9]", "[\xe9\x9b\xaa\xe7\xb5\x90\xe6\x99\xb6]", "\xee\x98\xbe\xee\x98\xbf", "\xee\x9c\xbf", "[\xe7\x81\xab\xe5\xb1\xb1]", "[\xe5\x9c\xb0\xe7\x90\x83]", "\xee\x9a\x9c", "\xee\x9a\x9d", "\xee\x9a\x9e", "\xee\x9a\x9f", "\xee\x9a\xa0", "[\xe2\x98\x86]", "\xe2\x98\x86\xe5\xbd\xa1", "\xee\x9a\xba", "\xee\x9c\x9f", "\xee\x9c\x9c", "\xee\x99\x86", "\xee\x99\x87", "\xee\x99\x88", "\xee\x99\x89", "\xee\x99\x8a", "\xee\x99\x8b", "\xee\x99\x8c", "\xee\x99\x8d", "\xee\x99\x8e", "\xee\x99\x8f", "\xee\x99\x90", "\xee\x99\x91", "[\xe8\x9b\x87\xe4\xbd\xbf\xe5\xba\xa7]", "\xee\x9d\x81", "\xee\x9d\x83", "\xee\x9d\x86", "\xee\x9d\x87", "\xee\x9d\x88", "[\xe3\x83\x90\xe3\x83\xa9]", "[\xe9\xa2\xa8\xe3\x81\xab\xe8\x88\x9e\xe3\x81\x86\xe8\x91\x89]", "[\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x93\xe3\x82\xb9\xe3\x82\xab\xe3\x82\xb9]", "[\xe3\x81\xb2\xe3\x81\xbe\xe3\x82\x8f\xe3\x82\x8a]", "[\xe3\x83\xa4\xe3\x82\xb7]", "[\xe3\x82\xb5\xe3\x83\x9c\xe3\x83\x86\xe3\x83\xb3]", "[\xe7\xa8\xb2\xe7\xa9\x82]", "[\xe3\x81\xa8\xe3\x81\x86\xe3\x82\x82\xe3\x82\x8d\xe3\x81\x93\xe3\x81\x97]", "[\xe3\x82\xad\xe3\x83\x8e\xe3\x82\xb3]", "[\xe6\xa0\x97]", "[\xe8\x8a\xb1]", "\xee\x9d\x82", "\xee\x9d\x84", "\xee\x9d\x85", "[\xe3\x81\xbf\xe3\x81\x8b\xe3\x82\x93]", "[\xe3\x82\xa4\xe3\x83\x81\xe3\x82\xb4]", "[\xe3\x82\xb9\xe3\x82\xa4\xe3\x82\xab]", "[\xe3\x83\x88\xe3\x83\x9e\xe3\x83\x88]", "[\xe3\x83\x8a\xe3\x82\xb9]", "[\xe3\x83\xa1\xe3\x83\xad\xe3\x83\xb3]", "[\xe3\x83\x91\xe3\x82\xa4\xe3\x83\x8a\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "[\xe3\x83\x96\xe3\x83\x89\xe3\x82\xa6]", "[\xe3\x83\xa2\xe3\x83\xa2]", "\xee\x9a\x91", "\xee\x9a\x92", "[\xe9\xbc\xbb]", "\xee\x9b\xb9", "\xee\x9c\xa8", "\xee\x9c\x90", "[\xe3\x83\x9e\xe3\x83\x8b\xe3\x82\xad\xe3\x83\xa5\xe3\x82\xa2]", "[\xe3\x82\xa8\xe3\x82\xb9\xe3\x83\x86]", "\xee\x99\xb5", "[\xe5\xba\x8a\xe5\xb1\x8b]", "\xee\x9a\xb1", "\xee\x9b\xb0", "[\xe5\xae\xb6\xe6\x97\x8f]", "[\xe3\x82\xab\xe3\x83\x83\xe3\x83\x97\xe3\x83\xab]", "[\xe8\xad\xa6\xe5\xae\x98]", "[\xe3\x83\x90\xe3\x83\x8b\xe3\x83\xbc]", "[\xe8\x8a\xb1\xe5\xab\x81]", "[\xe7\x99\xbd\xe4\xba\xba]", "[\xe4\xb8\xad\xe5\x9b\xbd\xe4\xba\xba]", "[\xe3\x82\xa4\xe3\x83\xb3\xe3\x83\x89\xe4\xba\xba]", "[\xe3\x81\x8a\xe3\x81\x98\xe3\x81\x84\xe3\x81\x95\xe3\x82\x93]", "[\xe3\x81\x8a\xe3\x81\xb0\xe3\x81\x82\xe3\x81\x95\xe3\x82\x93]", "[\xe8\xb5\xa4\xe3\x81\xa1\xe3\x82\x83\xe3\x82\x93]", "[\xe5\xb7\xa5\xe4\xba\x8b\xe7\x8f\xbe\xe5\xa0\xb4\xe3\x81\xae\xe4\xba\xba]", "[\xe3\x81\x8a\xe5\xa7\xab\xe6\xa7\x98]", "[\xe3\x81\xaa\xe3\x81\xbe\xe3\x81\xaf\xe3\x81\x92]", "[\xe5\xa4\xa9\xe7\x8b\x97]", "[\xe3\x81\x8a\xe5\x8c\x96\xe3\x81\x91]", "[\xe5\xa4\xa9\xe4\xbd\xbf]", "[UFO]", "[\xe5\xae\x87\xe5\xae\x99\xe4\xba\xba]", "[\xe3\x82\xa2\xe3\x82\xaf\xe3\x83\x9e]", "[\xe3\x83\x89\xe3\x82\xaf\xe3\x83\xad]", "[\xe6\xa1\x88\xe5\x86\x85]", "[\xe8\xa1\x9b\xe5\x85\xb5]", "[\xe3\x83\x80\xe3\x83\xb3\xe3\x82\xb9]", "\xee\x9d\x8e", "[\xe3\x83\x98\xe3\x83\x93]", "\xee\x9d\x94", "[\xe3\x83\x8b\xe3\x83\xaf\xe3\x83\x88\xe3\x83\xaa]", "[\xe3\x82\xa4\xe3\x83\x8e\xe3\x82\xb7\xe3\x82\xb7]", "[\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\x80]", "[\xe3\x82\xbe\xe3\x82\xa6]", "[\xe3\x82\xb3\xe3\x82\xa2\xe3\x83\xa9]", "[\xe3\x82\xb5\xe3\x83\xab]", "[\xe3\x83\x92\xe3\x83\x84\xe3\x82\xb8]", "[\xe3\x82\xbf\xe3\x82\xb3]", "[\xe5\xb7\xbb\xe8\xb2\x9d]", "[\xe3\x82\xb2\xe3\x82\xb8\xe3\x82\xb2\xe3\x82\xb8]", "[\xe3\x82\xa2\xe3\x83\xaa]", "[\xe3\x83\x9f\xe3\x83\x84\xe3\x83\x90\xe3\x83\x81]", "[\xe3\x81\xa6\xe3\x82\x93\xe3\x81\xa8\xe3\x81\x86\xe8\x99\xab]", "\xee\x9d\x91", "[\xe3\x82\xab\xe3\x83\xa1]", "\xee\x9d\x8f", "\xee\x9d\x90", "\xee\x9a\xa1", "[\xe3\x82\xa4\xe3\x83\xab\xe3\x82\xab]", "[\xe3\x83\x8d\xe3\x82\xba\xe3\x83\x9f]", "[\xe3\x83\x88\xe3\x83\xa9]", "\xee\x9a\xa2", "[\xe3\x82\xaf\xe3\x82\xb8\xe3\x83\xa9]", "\xee\x9d\x95", "[\xe3\x82\xaf\xe3\x83\x9e]", "[\xe3\x83\x8f\xe3\x83\xa0\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]", "[\xe7\x89\x9b]", "[\xe3\x82\xa6\xe3\x82\xb5\xe3\x82\xae]", "[\xe3\x82\xab\xe3\x82\xa8\xe3\x83\xab]", "\xee\x9a\x98", "[\xe8\xbe\xb0]", "[\xe3\x83\x91\xe3\x83\xb3\xe3\x83\x80]", "\xee\x9b\xb1", "\xee\x9b\xb3", "\xee\x9b\xb4", "\xee\x9b\xb2", "\xee\x9c\xa3", "\xee\x9c\xa5", "\xee\x9c\xa6", "\xee\x9d\x93", "\xee\x9d\x92", "[\xe9\xa2\xa8\xe9\x82\xaa\xe3\x81\xb2\xe3\x81\x8d]", "\xee\x9c\xaa", "\xee\x9c\xa2", "\xee\x9c\xae", "\xee\x9c\xad", "\xee\x9d\x97", "\xee\x9c\xab", "\xee\x9c\xa4", "\xee\x9c\xa1", "\xee\x9c\xa0", "\xee\x9c\x81", "\xee\x9c\xac", "\xee\x9c\xa9", "\xee\x9c\xaf", "\xee\x9c\x8b", "m(_ _)m", "(/_\xef\xbc\xbc)", "(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)", "|(\xe3\x83\xbb\xc3\x97\xe3\x83\xbb)|", "(^-^)/", "\xef\xbc\xbc(^o^)\xef\xbc\x8f", "(>\xe4\xba\xba<)", "\xee\x99\xa3", "\xee\x99\xa4", "\xee\x99\xa5", "\xee\x99\xa6", "\xee\x99\xa7", "\xee\x99\xa8", "\xee\x99\xa9", "\xee\x99\xa9\xee\x9b\xaf", "\xee\x99\xaa", "\xee\x9c\xbe", "[\xe6\x95\x99\xe4\xbc\x9a]", "[\xe5\x99\xb4\xe6\xb0\xb4]", "[\xe3\x83\x87\xe3\x83\x91\xe3\x83\xbc\xe3\x83\x88]", "[\xe5\x9f\x8e]", "[\xe5\xb7\xa5\xe5\xa0\xb4]", "\xee\x99\xa1", "\xee\x9d\x8b", "\xee\x9d\x80", "[\xe6\x9d\xb1\xe4\xba\xac\xe3\x82\xbf\xe3\x83\xaf\xe3\x83\xbc]", "[\xe8\x87\xaa\xe7\x94\xb1\xe3\x81\xae\xe5\xa5\xb3\xe7\xa5\x9e]", "[\xe6\x97\xa5\xe6\x9c\xac\xe5\x9c\xb0\xe5\x9b\xb3]", "[\xe3\x83\xa2\xe3\x82\xa2\xe3\x82\xa4]", "\xee\x9a\x99", "\xee\x99\xb4", "[\xe3\x83\x96\xe3\x83\xbc\xe3\x83\x84]", "\xee\x9a\x9a", "\xee\x9c\x8e", "\xee\x9c\x91", "\xee\x9c\x9a", "[\xe3\x83\x8d\xe3\x82\xaf\xe3\x82\xbf\xe3\x82\xa4]", "[\xe5\xb8\xbd\xe5\xad\x90]", "[\xe3\x83\x89\xe3\x83\xac\xe3\x82\xb9]", "[\xe7\x9d\x80\xe7\x89\xa9]", "[\xe3\x83\x93\xe3\x82\xad\xe3\x83\x8b]", "\xee\x9c\x8f", "\xee\x9a\x82", "\xee\x9a\xad", "\xee\x9c\x95", "[$\xef\xbf\xa5]", "[\xe6\xa0\xaa\xe4\xbe\xa1]", "[\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x89]", "\xee\x9b\x96", "[\xe9\xa3\x9b\xe3\x82\x93\xe3\x81\xa7\xe3\x81\x84\xe3\x81\x8f\xe3\x81\x8a\xe9\x87\x91]", "[\xe4\xb8\xad\xe5\x9b\xbd]", "[\xe3\x83\x89\xe3\x82\xa4\xe3\x83\x84]", "[\xe3\x82\xb9\xe3\x83\x9a\xe3\x82\xa4\xe3\x83\xb3]", "[\xe3\x83\x95\xe3\x83\xa9\xe3\x83\xb3\xe3\x82\xb9]", "[\xe3\x82\xa4\xe3\x82\xae\xe3\x83\xaa\xe3\x82\xb9]", "[\xe3\x82\xa4\xe3\x82\xbf\xe3\x83\xaa\xe3\x82\xa2]", "[\xe6\x97\xa5\xe3\x81\xae\xe4\xb8\xb8]", "[\xe9\x9f\x93\xe5\x9b\xbd]", "[\xe3\x83\xad\xe3\x82\xb7\xe3\x82\xa2]", "[USA]", "[\xe7\x82\x8e]", "\xee\x9b\xbb", "\xee\x9c\x98", "[\xe3\x83\x8f\xe3\x83\xb3\xe3\x83\x9e\xe3\x83\xbc]", "[\xe3\x83\x8d\xe3\x82\xb8]", "[\xe5\x8c\x85\xe4\xb8\x81]", "[\xe3\x83\x94\xe3\x82\xb9\xe3\x83\x88\xe3\x83\xab]", "[\xe5\x8d\xa0\xe3\x81\x84]", "[\xe8\x8b\xa5\xe8\x91\x89\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "[\xe6\xb3\xa8\xe5\xb0\x84]", "[\xe8\x96\xac]", "[A]", "[B]", "[AB]", "[O]", "\xee\x9a\x84", "\xee\x9a\x85", "\xee\x9a\x86", "\xee\x9a\xa4", "[\xe3\x82\xb5\xe3\x83\xb3\xe3\x82\xbf]", "[\xe7\xa5\x9d\xe6\x97\xa5]", "[\xe8\x8a\xb1\xe7\x81\xab]", "[\xe9\xa2\xa8\xe8\x88\xb9]", "[\xe3\x82\xaf\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xab\xe3\x83\xbc]", "[\xe9\x96\x80\xe6\x9d\xbe]", "[\xe3\x81\xb2\xe3\x81\xaa\xe7\xa5\xad\xe3\x82\x8a]", "[\xe5\x8d\x92\xe6\xa5\xad\xe5\xbc\x8f]", "[\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x89\xe3\x82\xbb\xe3\x83\xab]", "[\xe3\x81\x93\xe3\x81\x84\xe3\x81\xae\xe3\x81\xbc\xe3\x82\x8a]", "[\xe7\xb7\x9a\xe9\xa6\x99\xe8\x8a\xb1\xe7\x81\xab]", "[\xe9\xa2\xa8\xe9\x88\xb4]", "[\xe3\x83\x8f\xe3\x83\xad\xe3\x82\xa6\xe3\x82\xa3\xe3\x83\xb3]", "[\xe3\x82\xaa\xe3\x83\xa1\xe3\x83\x87\xe3\x83\x88\xe3\x82\xa6]", "[\xe4\xb8\x83\xe5\xa4\x95]", "[\xe3\x81\x8a\xe6\x9c\x88\xe8\xa6\x8b]", "\xee\x99\x9a", "\xee\x9a\x87", "\xee\x9a\x88", "\xee\x9b\x8e", "\xee\x9a\x89", "\xee\x9b\x90", "\xee\x9b\x93", "\xee\x9b\x8f", "[\xe6\x96\xb0\xe8\x81\x9e]", "[\xe3\x82\xb9\xe3\x83\x94\xe3\x83\xbc\xe3\x82\xab]", "[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x9b\xe3\x83\xb3]", "[\xe3\x82\xa2\xe3\x83\xb3\xe3\x83\x86\xe3\x83\x8a]", "[\xe9\x80\x81\xe4\xbf\xa1BOX]", "[\xe5\x8f\x97\xe4\xbf\xa1BOX]", "[ABCD]", "[abcd]", "[1234]", "[\xe8\xa8\x98\xe5\x8f\xb7]", "[ABC]", "\xee\x9a\xae", "\xee\x9a\xb2", "\xee\x9c\x96", "\xee\x9c\x99", "\xee\x9c\xb0", "[MD]", "[\xe3\x83\x95\xe3\x83\xad\xe3\x83\x83\xe3\x83\x94\xe3\x83\xbc]", "\xee\x9a\x8c", "[\xe7\x94\xbb\xe3\x81\xb3\xe3\x82\x87\xe3\x81\x86]", "[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x80\xe3\x83\xbc]", "[\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xab\xe3\x83\x80]", "\xee\x9a\x83", "[\xe5\x90\x8d\xe6\x9c\xad]", "\xee\x9c\x8a", "[\xe3\x82\xb0\xe3\x83\xa9\xe3\x83\x95]", "[\xe5\xae\x9a\xe8\xa6\x8f]", "[\xe4\xb8\x89\xe8\xa7\x92\xe5\xae\x9a\xe8\xa6\x8f]", "\xee\x99\x92", "\xee\x99\x93", "\xee\x99\x94", "\xee\x99\x95", "\xee\x99\x96", "\xee\x99\x97", "\xee\x99\x98", "\xee\x99\x99", "\xee\x9c\x92", "\xee\x9c\xb3", "[\xe3\x83\x88\xe3\x83\xad\xe3\x83\x95\xe3\x82\xa3\xe3\x83\xbc]", "[\xe3\x83\x95\xe3\x83\x83\xe3\x83\x88\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xab]", "[\xe6\xb0\xb4\xe6\xb3\xb3]", "\xee\x99\x9b", "\xee\x99\x9c", "\xee\x99\x9d", "\xee\x99\x9e", "\xee\x99\x9f", "\xee\x99\xa0", "[\xe3\x83\x90\xe3\x82\xb9\xe5\x81\x9c]", "\xee\x99\xa2", "\xee\x9a\xa3", "[\xe9\xa7\x85]", "[\xe3\x83\xad\xe3\x82\xb1\xe3\x83\x83\xe3\x83\x88]", "[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\x83\xe3\x82\xaf]", "[\xe6\xb6\x88\xe9\x98\xb2\xe8\xbb\x8a]", "[\xe6\x95\x91\xe6\x80\xa5\xe8\xbb\x8a]", "[\xe3\x83\x91\xe3\x83\x88\xe3\x82\xab\xe3\x83\xbc]", "\xee\x99\xab", "\xee\x99\xac", "\xee\x99\xad", "[\xe5\xb7\xa5\xe4\xba\x8b\xe4\xb8\xad]", "\xee\x9b\xb7", "[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x97]", "\xee\x99\xb9", "[\xe8\xa6\xb3\xe8\xa6\xa7\xe8\xbb\x8a]", "[\xe3\x82\xb8\xe3\x82\xa7\xe3\x83\x83\xe3\x83\x88\xe3\x82\xb3\xe3\x83\xbc\xe3\x82\xb9\xe3\x82\xbf\xe3\x83\xbc]", "\xee\x99\xb6", "\xee\x99\xb7", "\xee\x99\xba", "\xee\x99\xbb", "\xee\x99\xbc", "\xee\x99\xbd", "\xee\x99\xbe", "\xee\x9a\xac", "[\xe6\xbc\x94\xe5\x8a\x87]", "\xee\x9a\x8b", "[\xe9\xba\xbb\xe9\x9b\x80]", "[\xe7\x9a\x84\xe4\xb8\xad]", "[777]", "[\xe3\x83\x93\xe3\x83\xaa\xe3\x83\xa4\xe3\x83\xbc\xe3\x83\x89]", "[\xe3\x82\xb5\xe3\x82\xa4\xe3\x82\xb3\xe3\x83\xad]", "[\xe3\x83\x9c\xe3\x83\xbc\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xb0]", "[\xe8\x8a\xb1\xe6\x9c\xad]", "[\xe3\x82\xb8\xe3\x83\xa7\xe3\x83\xbc\xe3\x82\xab\xe3\x83\xbc]", "\xee\x9b\xb6", "\xee\x9b\xbf", "[\xe3\x82\xb5\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9]", "[\xe3\x82\xae\xe3\x82\xbf\xe3\x83\xbc]", "[\xe3\x83\x94\xe3\x82\xa2\xe3\x83\x8e]", "[\xe3\x83\x88\xe3\x83\xa9\xe3\x83\xb3\xe3\x83\x9a\xe3\x83\x83\xe3\x83\x88]", "[\xe3\x83\x90\xe3\x82\xa4\xe3\x82\xaa\xe3\x83\xaa\xe3\x83\xb3]", "[\xe6\xad\x8c\xe8\xa8\x98\xe5\x8f\xb7]", "\xee\x9a\x81", "\xee\x9a\x8a", "[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa]", "[\xe3\x83\x93\xe3\x83\x87\xe3\x82\xaa]", "\xee\x9c\x97", "\xee\x9c\x9b", "[\xe8\x8a\xb1\xe6\x9d\x9f]", "\xee\x9b\xad", "[\xe7\xb5\x90\xe5\xa9\x9a\xe5\xbc\x8f]", "[18\xe7\xa6\x81]", "\xee\x9c\xb1", "\xee\x9c\xb6", "\xee\x9c\xb2", "[\xef\xbd\x89]", "\xee\x9b\xa0", "\xee\x9b\xa2", "\xee\x9b\xa3", "\xee\x9b\xa4", "\xee\x9b\xa5", "\xee\x9b\xa6", "\xee\x9b\xa7", "\xee\x9b\xa8", "\xee\x9b\xa9", "\xee\x9b\xaa", "\xee\x9b\xab", "[10]", "[\xe3\x83\x90\xe3\x83\xaa3]", "[\xe3\x83\x9e\xe3\x83\x8a\xe3\x83\xbc\xe3\x83\xa2\xe3\x83\xbc\xe3\x83\x89]", "[\xe3\x82\xb1\xe3\x83\xbc\xe3\x82\xbf\xe3\x82\xa4OFF]", "\xee\x99\xb3", "\xee\x9d\x89", "\xee\x9d\x8a", "\xee\x9d\x8c", "\xee\x9d\x8d", "[\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\x91\xe3\x83\xb3]", "[\xe3\x82\xbd\xe3\x83\x95\xe3\x83\x88\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]", "[\xe3\x83\x9d\xe3\x83\x86\xe3\x83\x88]", "[\xe3\x81\xa0\xe3\x82\x93\xe3\x81\x94]", "[\xe3\x81\x9b\xe3\x82\x93\xe3\x81\xb9\xe3\x81\x84]", "[\xe3\x83\x91\xe3\x82\xb9\xe3\x82\xbf]", "[\xe3\x82\xab\xe3\x83\xac\xe3\x83\xbc]", "[\xe3\x81\x8a\xe3\x81\xa7\xe3\x82\x93]", "[\xe3\x81\x99\xe3\x81\x97]", "[\xe5\xbc\x81\xe5\xbd\x93]", "[\xe9\x8d\x8b]", "[\xe3\x82\xab\xe3\x82\xad\xe6\xb0\xb7]", "[\xe8\x82\x89]", "[\xe3\x82\x84\xe3\x81\x8d\xe3\x81\x84\xe3\x82\x82]", "[\xe3\x83\x94\xe3\x82\xb6]", "[\xe3\x83\x81\xe3\x82\xad\xe3\x83\xb3]", "[\xe3\x82\xa2\xe3\x82\xa4\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\xa0]", "[\xe3\x83\x89\xe3\x83\xbc\xe3\x83\x8a\xe3\x83\x84]", "[\xe3\x82\xaf\xe3\x83\x83\xe3\x82\xad\xe3\x83\xbc]", "[\xe3\x83\x81\xe3\x83\xa7\xe3\x82\xb3]", "[\xe3\x82\xad\xe3\x83\xa3\xe3\x83\xb3\xe3\x83\x87\xe3\x82\xa3]", "[\xe3\x83\x97\xe3\x83\xaa\xe3\x83\xb3]", "[\xe3\x83\x8f\xe3\x83\x81\xe3\x83\x9f\xe3\x83\x84]", "[\xe3\x82\xa8\xe3\x83\x93\xe3\x83\x95\xe3\x83\xa9\xe3\x82\xa4]", "\xee\x99\xaf", "\xee\x99\xb0", "\xee\x99\xb1", "\xee\x99\xb2", "\xee\x9c\x9e", "\xee\x9d\x96", "\xee\x99\xb8", "\xee\x9a\x96", "\xee\x9a\x97", "\xee\x9a\xa5", "\xee\x9b\xb5", "\xee\x9c\x80", "\xee\x9c\xbc", "\xee\x9c\xbd", "[\xe2\x86\x91]", "[\xe2\x86\x93]", "[\xe2\x86\x92]", "[\xe2\x86\x90]", "[>]", "[<]", "[>>]", "[<<]", "\xe2\x96\xb2", "\xe2\x96\xbc", "[\xc3\x97]", "\xee\x9c\x82", "\xee\x9c\x83", "\xee\x9c\x84", "[\xef\xbc\x9f]", "\xee\x9c\x89", "\xee\x9b\x9f", "\xee\x9b\xac", "\xee\x9b\xae", "\xee\x9b\xaf", "\xee\x9b\xb8", "\xee\x9a\x8d", "\xee\x9a\x8e", "\xee\x9a\x8f", "\xee\x9a\x90", "\xee\x99\xbf", "\xee\x9a\x80", "\xee\x9a\x9b", "\xee\x9b\x9e", "\xee\x9c\xb7", "\xee\x9c\xb5", "\xee\x9c\x9d", "[\xe2\x99\x82]", "[\xe2\x99\x80]", "\xee\x99\xae", "\xee\x9c\x94", "\xee\x9c\xb8", "[\xe3\x83\x81\xe3\x82\xa7\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "\xee\x9b\x9b", "[COOL]", "\xee\x9b\x97", "\xee\x9b\x98", "\xee\x9b\x9d", "[SOS]", "[UP!]", "[VS]", "[\xe3\x82\xb3\xe3\x82\xb3]", "[\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9]", "\xee\x9c\xb9", "\xee\x9c\xba", "\xee\x9c\xbb", "[\xe6\x9c\x89]", "[\xe7\x84\xa1]", "[\xe6\x9c\x88]", "[\xe7\x94\xb3]", "[\xe5\x89\xb2]", "[\xe6\x8c\x87]", "[\xe5\x96\xb6]", "\xee\x9c\xb4", "[\xe7\xa5\x9d]", "[\xe5\xbe\x97]", "[\xe5\x8f\xaf]", "[\xef\xbc\x8b]", "[\xef\xbc\x8d]", "[\xc3\xb7]", "\xee\x9b\xbc", "\xee\x9b\xbe", "\xee\x9c\x85", "\xee\x9c\x86", "\xee\x9c\x87", "\xee\x9c\x88", "[\xe3\x82\xa6\xe3\x83\xb3\xe3\x83\x81]", "[\xe5\x8a\x9b\xe3\x81\x93\xe3\x81\xb6]", "[\xe3\x82\xaf\xe3\x83\xa9\xe3\x82\xaf\xe3\x83\xa9]", "[\xe3\x83\x95\xe3\x82\xad\xe3\x83\x80\xe3\x82\xb7]", "\xee\x9b\xba", "\xe2\x96\xa0", "\xe2\x97\x86", "[\xe8\x8a\xb1\xe4\xb8\xb8]", "[100\xe7\x82\xb9]", "\xee\x9b\x9a", "\xe2\x94\x94\xe2\x86\x92", "[\xe9\x9b\xbb\xe6\xb1\xa0]", "[\xe3\x82\xb3\xe3\x83\xb3\xe3\x82\xbb\xe3\x83\xb3\xe3\x83\x88]", "\xee\x9b\x9c", "\xee\x9b\x99", "\xee\x9c\x93", "[\xe3\x83\xa9\xe3\x82\xb8\xe3\x82\xaa\xe3\x83\x9c\xe3\x82\xbf\xe3\x83\xb3]", "[\xe3\x83\x96\xe3\x83\x83\xe3\x82\xaf\xe3\x83\x9e\xe3\x83\xbc\xe3\x82\xaf]", "[\xe3\x83\xaa\xe3\x83\xb3\xe3\x82\xaf]", "[\xe2\x86\x90BACK]", "\xee\x9a\xb9", "\xee\x9a\xb8", "\xee\x9a\xb7", "[TOP]", "\xee\x9a\x93", "\xee\x9a\x95", "\xee\x9a\x94", "\xee\x9b\xbd", "\xee\x9c\xa7", "[\xe4\xba\xba\xe5\xb7\xae\xe3\x81\x97\xe6\x8c\x87]", "[\xe6\x8b\x8d\xe6\x89\x8b]", "\xee\x92\x88", "\xee\x92\x8d", "\xee\x92\x8c", "\xee\x92\x85", "\xee\x92\x87", "\xee\x91\xa9", "\xee\x96\x98", "\xee\xab\xa8", "\xee\xab\xb1", "\xee\xab\xb4", "\xee\x97\x9a", "\xee\xab\xb2", "\xee\x92\x8a", "\xee\x92\x8e", "\xee\x92\xbf", "\xee\xad\xbc", "\xee\xad\x93", "\xee\xad\x9f", "\xee\x96\xb3", "\xee\x96\xa8", "\xee\x96\xa9", "\xee\x96\xaa", "\xee\x92\x86", "\xe2\x97\x8b", "\xee\x92\x89", "\xee\x92\x8b", "\xee\x91\xa8", "\xee\x96\x94", "\xee\x95\xba", "\xee\x95\xbb", "\xee\x91\xbc", "\xee\x92\x8f", "\xee\x92\x90", "\xee\x92\x91", "\xee\x92\x92", "\xee\x92\x93", "\xee\x92\x94", "\xee\x92\x95", "\xee\x92\x96", "\xee\x92\x97", "\xee\x92\x98", "\xee\x92\x99", "\xee\x92\x9a", "\xee\x92\x9b", "\xee\x94\x93", "\xee\x93\xa4", "\xee\xad\xbd", "\xee\x93\x8e", "\xee\x93\x8a", "\xee\x96\xba", "\xee\x97\x8d", "\xee\xaa\x94", "\xee\x93\xa3", "\xee\x93\xa2", "\xee\xaa\x96", "\xee\xac\xb6", "\xee\xac\xb7", "\xee\xac\xb8", "\xee\xad\x89", "\xee\xae\x82", "\xee\x93\x92", "\xee\xac\xb5", "\xee\xaa\xb9", "\xee\xaa\xba", "\xee\x93\x94", "\xee\x93\x8d", "\xee\xaa\xbb", "\xee\xaa\xbc", "\xee\xac\xb2", "\xee\xac\xb3", "\xee\xac\xb4", "\xee\xac\xb9", "\xee\xad\x9a", "\xee\x96\xa4", "\xee\x96\xa5", "\xee\xab\x90", "\xee\xab\x91", "\xee\xad\x87", "\xee\x94\x89", "\xee\xaa\xa0", "\xee\x94\x8b", "\xee\xaa\xa1", "\xee\xaa\xa2", "\xe3\x80\x93", "\xee\x93\xbc", "\xee\x93\xba", "\xee\x94\x81", "\xee\x97\x9d", "\xee\xab\x9b", "\xee\xab\xa9", "\xee\xac\x93", "\xee\xac\x94", "\xee\xac\x95", "\xee\xac\x96", "\xee\xac\x97", "\xee\xac\x98", "\xee\xac\x99", "\xee\xac\x9a", "\xee\xad\x84", "\xee\xad\x85", "\xee\x93\x8b", "\xee\x96\xbf", "\xee\x94\x8e", "\xee\x93\xac", "\xee\x93\xaf", "\xee\x93\xb8", "\xee\xac\x9c", "\xee\xad\xbe", "\xee\xac\xa2", "\xee\x93\x98", "\xee\xac\xa3", "\xee\xac\xa4", "\xee\xac\xa5", "\xee\xac\x9f", "\xee\xac\xa0", "\xee\x93\x99", "\xee\x97\x87", "\xee\xab\xac", "\xee\xac\x9e", "\xee\x93\x9d", "\xee\xad\x97", "\xee\xad\x98", "\xee\xac\x9d", "\xee\x93\x93", "\xee\x97\x94", "\xee\x93\xa0", "\xee\xad\xb6", "\xee\x97\x9b", "\xee\x93\x9c", "\xee\x93\x9f", "\xee\xac\x9b", "\xee\x97\x82", "\xee\x97\x80", "\xee\x93\x9b", "\xee\x91\xb0", "\xee\x93\xa1", "\xee\x93\x9e", "\xee\x97\x81", "\xee\xac\xa1", "\xee\x93\x97", "\xee\x93\x9a", "\xee\x93\xae", "\xee\xac\xbf", "\xee\xad\x86", "\xee\xad\x88", "\xee\x91\xb2", "\xee\xad\xa7", "\xee\xab\x8a", "\xee\xab\x80", "\xee\x96\xae", "\xee\xab\x8b", "\xee\xab\x89", "\xee\x97\x84", "\xee\xab\x81", "\xee\x93\xa7", "\xee\xab\x8d", "\xee\xab\x8f", "\xee\xab\x8e", "\xee\xab\x87", "\xee\xab\x88", "\xee\x91\xb1", "\xee\x91\xb1\xee\x96\xb1", "\xee\xab\x85", "\xee\xae\x80", "\xee\xad\xa4", "\xee\x93\xbb", "\xee\xad\xa9", "\xee\x91\xb3", "\xee\xab\x86", "\xee\xab\x82", "\xee\xad\x9d", "\xee\xab\x83", "\xee\x97\x85", "\xee\xab\x84", "\xee\xaa\xbf", "\xee\x97\x86", "\xee\x91\xb4", "\xee\x97\x83", "\xee\xad\xa1", "\xee\xad\xbf", "\xee\xad\xa3", "\xee\xad\xa0", "\xee\xad\xa5", "\xee\xad\xa8", "\xee\xad\x9e", "\xee\xad\xaa", "\xee\xad\xa6", "\xee\xab\x97", "\xee\xab\x98", "\xee\xab\x99", "\xee\xad\x90", "\xee\xad\x91", "\xee\xad\x92", "\xee\xae\x85", "\xee\xae\x86", "\xee\xae\x87", "\xee\xae\x88", "\xee\xab\x92", "\xee\x92\xab", "\xee\xac\x89", "\xee\x92\xad", "\xee\x97\x9e", "\xee\x97\x9f", "\xee\x92\xaa", "\xee\x92\xa3", "\xee\xaa\x81", "\xee\xab\xb3", "\xee\x92\xa4", "\xee\xaa\x80", "\xee\x96\xbb", "\xee\x97\x8f", "\xee\xab\xb6", "\xee\xab\xb7", "\xee\xab\xb8", "\xee\xab\xb9", "\xee\x92\xa9", "\xee\x92\xbd", "\xee\x96\xbd", "\xee\x93\x80", "\xee\x95\xb2", "\xee\xad\xac", "\xee\x96\xb7", "\xee\xac\xab", "\xee\x94\x9a", "\xee\xaa\x9f", "\xee\xac\xaa", "\xee\x93\xbe", "\xee\x96\xb6", "\xee\xad\xb7", "\xee\x97\x89", "\xee\xaa\x93", "\xee\xaa\x9e", "\xee\xad\xab", "\xee\xaa\xa3", "\xee\xaa\xa4", "\xee\x94\x8d", "\xee\x94\x84", "\xee\x92\x9c", "[\xe3\x81\xb5\xe3\x81\x8f\xe3\x82\x8d]", "\xee\x93\x87", "\xee\x97\x9c", "\xee\x95\xb9", "\xee\x95\xbc", "\xee\x95\xbd", "\xee\x96\x85", "\xee\xad\x9b", "\xee\xac\x91", "\xee\xac\x8e", "\xee\x97\x95", "\xee\xab\xba", "\xee\xac\x90", "\xee\xac\x8f", "\xee\x93\x8c", "\xee\xac\x92", "\xee\x97\x96", "\xee\x95\xb3", "\xee\x91\xbb", "\xee\x96\x83", "\xee\x96\x87", "\xee\x97\x8b", "\xee\x96\x81", "\xee\x95\xbf", "\xee\x94\x8a", "\xee\xaa\x8f", "\xee\x92\x80", "\xee\x94\x90", "\xee\xaa\x9a", "\xee\xac\xa6", "\xee\xac\xa7", "\xee\xac\xa9", "\xee\xac\xa8", "\xee\x96\x9f", "\xee\x93\x8f", "\xee\x96\xa0", "\xee\x93\x89", "\xee\xab\xb0", "\xee\x97\x99", "\xee\x97\x8c", "\xee\xaa\x9b", "\xee\xaa\x9c", "\xee\xab\xa3", "\xee\xab\xa4", "\xee\xab\xa5", "\xee\xab\xa6", "\xee\xab\xa7", "\xee\xab\xab", "\xee\xab\xad", "\xee\xab\xae", "\xee\x91\xaf", "\xee\xac\xbd", "\xee\xab\xaf", "\xee\x96\x9b", "\xee\x96\x96", "\xee\x94\x9e", "\xee\x96\x88", "\xee\xac\x88", "\xee\xaa\x92", "\xee\x94\xa0", "\xee\x94\xa1", "\xee\x96\x91", "\xee\xad\xa2", "\xee\x94\x9b", "\xee\xac\x8a", "\xee\x96\x8b", "\xee\x94\x91", "\xee\x92\xa8", "\xee\x96\x92", "\xee\x96\x93", "\xee\x94\x9f", "\xee\xad\xb1", "\xee\xab\xbd", "\xee\xab\xbe", "\xee\xab\xbf", "\xee\xac\x80", "\xee\xad\x95", "\xee\xac\x83", "[\xe3\x81\x84\xe3\x81\x99]", "\xee\x96\xb8", "\xee\x92\xa1", "\xee\x92\xa0", "\xee\x97\x8e", "\xee\x96\x82", "\xee\x95\xa2", "\xee\x94\x8c", "\xee\x94\x96", "\xee\x95\xa0", "\xee\x95\xa1", "\xee\x95\xa9", "\xee\x95\xa3", "\xee\x96\x8f", "\xee\x96\x90", "\xee\x95\xab", "\xee\x92\x9f", "\xee\x92\x9d", "\xee\x95\xa8", "\xee\x95\xa5", "\xee\x95\xa6", "\xee\x95\xa7", "\xee\x95\xaf", "\xee\x94\x9d", "\xee\x95\x9f", "\xee\x95\xa4", "\xee\x95\xaa", "\xee\x95\xb4", "\xee\x95\xb5", "\xee\x95\xb6", "\xee\x95\xac", "\xee\x95\xad", "\xee\x95\xae", "\xee\x95\xb0", "\xee\x92\xa2", "\xee\xac\x8b", "\xee\x92\xba", "\xee\x96\x99", "\xee\x92\xb7", "\xee\x92\xb6", "\xee\xaa\xac", "\xee\x96\x9a", "\xee\x92\xb9", "\xee\x92\xb8", "\xee\x91\xab", "\xee\xad\x81", "\xee\x97\x93", "\xee\x92\xbb", "\xee\xab\x9e", "\xee\x92\xb5", "\xee\x96\xbc", "\xee\x92\xb0", "\xee\x92\xb1", "\xee\x92\xaf", "\xee\x92\xa7", "\xee\xaa\x82", "\xee\x92\xb3", "\xee\x92\xb4", "\xee\xad\xad", "\xee\x97\x88", "\xee\x92\xb2", "\xee\xab\x9f", "\xee\xab\xa0", "\xee\xab\xa1", "\xee\x95\xb1", "\xee\x92\xa6", "\xee\x91\xaa", "\xee\x97\x97", "\xee\xad\xb3", "\xee\x92\xbc", "\xee\x97\x90", "\xee\x91\xad", "\xee\xab\xa2", "\xee\xad\x82", "\xee\x94\x83", "\xee\x94\x97", "\xee\x94\x88", "\xee\x96\x9c", "\xee\xab\xb5", "\xee\x96\x9e", "\xee\x92\x9e", "\xee\x92\xbe", "\xee\x96\x9d", "\xee\x93\x86", "\xee\x97\x91", "\xee\x93\x85", "\xee\x91\xae", "\xee\xab\x9d", "\xee\x93\x88", "\xee\xad\x83", "\xee\xad\xae", "\xee\xad\xaf", "\xee\x96\xbe", "\xee\x94\x85", "\xee\x94\x86", "\xee\xad\x80", "\xee\xab\x9c", "\xee\x94\x87", "\xee\xab\x8c", "\xee\x94\x95", "\xee\x95\xbe", "\xee\x94\x82", "\xee\x96\xb9", "\xee\x96\x80", "\xee\x93\xab", "\xee\xad\xb8", "\xee\x94\x94", "\xee\x97\x8a", "\xee\xaa\x95", "\xee\xab\x9a", "\xee\xaa\x83", "\xee\x95\x98", "\xee\x95\x99", "\xee\x95\x8e", "\xee\x94\xb3", "\xee\xae\x84", "\xee\x94\xa2", "\xee\x94\xa3", "\xee\x94\xa4", "\xee\x94\xa5", "\xee\x94\xa6", "\xee\x94\xa7", "\xee\x94\xa8", "\xee\x94\xa9", "\xee\x94\xaa", "\xee\x96\xac", "\xee\x94\xab", "\xee\xaa\x84", "\xee\xaa\x90", "\xee\xaa\x91", "\xee\x93\x96", "\xee\x93\x95", "\xee\x93\x90", "\xee\x96\xb4", "\xee\xaa\xaf", "\xee\x93\x91", "\xee\xaa\xb0", "\xee\xaa\xb1", "\xee\xaa\xb2", "\xee\xaa\xb3", "\xee\xaa\xb4", "\xee\xaa\xb5", "\xee\xaa\xb6", "\xee\xaa\xb7", "\xee\xaa\xb8", "\xee\xaa\xbd", "\xee\xaa\xbe", "\xee\xab\xaa", "\xee\x93\x84", "\xee\x93\xad", "\xee\xac\xba", "\xee\xac\xbb", "\xee\xac\xbc", "\xee\xad\x8a", "\xee\xad\x8b", "\xee\xad\x8c", "\xee\xad\x8d", "\xee\xad\x8e", "\xee\xad\x8f", "\xee\xad\x96", "\xee\xad\x99", "\xee\xad\xb0", "\xee\x92\xac", "\xee\x96\x97", "\xee\x93\x82", "\xee\x93\x83", "\xee\xaa\xae", "\xee\xaa\x97", "\xee\x93\x81", "\xee\xaa\x98", "\xee\xac\xbe", "\xee\x95\x95", "\xee\x95\x8d", "\xee\x95\x8c", "\xee\x95\x96", "\xee\xac\xad", "\xee\xac\xae", "\xee\xad\xba", "\xee\xad\xbb", "\xee\x94\xbf", "\xee\x95\x80", "\xee\x95\x92", "\xee\x95\x93", "\xee\x94\xae", "\xee\x94\xad", "\xee\x94\xb0", "\xee\x94\xaf", "\xee\x95\x85", "\xee\x95\x84", "\xee\x95\x9a", "\xee\x95\x9b", "\xee\x95\x83", "\xee\x95\x82", "\xee\xaa\xad", "\xee\x95\x90", "\xee\x95\x91", "\xee\x92\x82", "\xee\xac\xaf", "\xee\xac\xb0", "\xee\x92\x83", "\xee\xac\xb1", "[\xe3\x83\x95\xe3\x83\xaa\xe3\x83\xbc\xe3\x83\x80\xe3\x82\xa4\xe3\x83\xa4\xe3\x83\xab]", "\xee\x96\x95", "\xee\xad\xb5", "\xee\x91\xb7", "\xee\x91\xb8", "\xee\xaa\xa6", "\xee\x93\xaa", "\xee\xaa\xa7", "\xee\xaa\xa8", "\xee\xaa\xa9", "\xee\xaa\xaa", "\xee\xad\x94", "\xee\x96\xaf", "\xee\xaa\xa5", "\xee\x96\xa1", "\xee\x96\xa2", "\xee\x96\xa3", "\xee\x91\xbd", "\xee\x91\xbe", "\xee\x91\xbf", "\xee\xac\xac", "\xee\x92\x81", "\xee\x92\x84", "\xee\xad\xb9", "\xee\x92\xae", "\xee\xad\xb2", "\xee\x97\x98", "\xee\x92\xa5", "[\xe3\x83\x89\xe3\x82\xa2]", "\xee\x95\x81", "\xee\x95\x97", "\xee\x96\xab", "\xee\xaa\x85", "\xee\x95\xb8", "\xee\xaa\x88", "\xee\x96\xb5", "[NG]", "\xee\x96\xad", "\xee\x93\xa8", "\xee\x94\x8f", "\xee\x97\x92", "\xee\xaa\x87", "[\xe7\xa6\x81]", "\xee\xaa\x8a", "[\xe5\x90\x88]", "\xee\xaa\x89", "\xee\xaa\x86", "\xee\xaa\x8b", "\xee\xaa\x8c", "\xee\x93\xb1", "\xee\xaa\x99", "\xee\x93\xb7", "\xee\xac\x81", "\xee\x94\xbc", "\xee\x94\xbd", "\xee\x95\x8f", "\xee\x95\x94", "\xee\x91\xb6", "\xee\x93\xa5", "\xee\x91\xba", "\xee\x91\xb5", "\xee\x96\xb0", "\xee\x96\xb1", "\xee\x93\xa6", "\xee\x93\xb4", "\xee\x93\xb5", "\xee\x93\xa9", "\xee\xad\x9c", "\xee\x93\xbd", "\xee\xaa\xab", "\xee\x91\xb9", "\xee\x94\xbe", "\xee\x94\xba", "\xee\x94\xbb", "\xee\x95\x8a", "\xee\x95\x8b", "\xee\x95\x88", "\xee\x95\x89", "\xee\x94\xb1", "\xee\x94\xb2", "\xee\x94\xb4", "\xee\x94\xb5", "\xee\x94\xb8", "\xee\x94\xb9", "\xee\x95\x86", "\xee\x95\x87", "\xee\x94\xb6", "\xee\x94\xb7", "\xee\x91\xac", "\xee\x93\xb0", "\xee\x93\xb2", "\xee\x95\x9d", "\xee\x95\x9c", "\xee\xac\x8d", "\xee\x96\x84", "\xee\x96\x89", "\xee\x94\x98", "\xee\xac\x85", "\xee\x94\x9c", "\xee\xac\x8c", "\xee\xab\xbc", "\xee\x94\x99", "\xee\x94\x92", "\xee\xac\x82", "\xee\xac\x84", "\xee\xac\x87", "\xee\x96\x8a", "\xee\xac\x86", "[end]", "[ON]", "[SOON]", "\xee\x95\x9e", "\xee\xae\x83", "\xee\x96\xa7", "\xee\x96\xa6", "\xee\x93\xb3", "\xee\x93\xb9", "\xee\x93\xb6", "\xee\xaa\x8d", "\xee\xaa\x8e", "\xee\x93\xbf", "\xee\x94\x80", "\xee\xab\x96", "\xee\xab\x93", "\xee\xab\x94", "\xee\xab\x95", "\xee\x81\x8a", "\xee\x81\x89", "\xee\x81\x8b", "\xee\x81\x88", "\xee\x84\xbd", "\xee\x91\x83", "[\xe9\x9c\xa7]", "\xee\x90\xbc", "\xee\x91\x8b", "\xee\x81\x8d", "\xee\x91\x89", "\xee\x85\x86", "\xee\x91\x8a", "\xee\x91\x8c", "\xee\x81\x8a\xee\x81\x89", "\xee\x90\xbe", "\xe2\x97\x8f", "\xee\x81\x8c", "\xee\x8c\xb5", "\xee\x80\xa4", "\xee\x80\xa5", "\xee\x80\xa6", "\xee\x80\xa7", "\xee\x80\xa8", "\xee\x80\xa9", "\xee\x80\xaa", "\xee\x80\xab", "\xee\x80\xac", "\xee\x80\xad", "\xee\x80\xae", "\xee\x80\xaf", "[\xe8\x85\x95\xe6\x99\x82\xe8\xa8\x88]", "[\xe7\xa0\x82\xe6\x99\x82\xe8\xa8\x88]", "\xee\x88\xbf", "\xee\x89\x80", "\xee\x89\x81", "\xee\x89\x82", "\xee\x89\x83", "\xee\x89\x84", "\xee\x89\x85", "\xee\x89\x86", "\xee\x89\x87", "\xee\x89\x88", "\xee\x89\x89", "\xee\x89\x8a", "\xee\x89\x8b", "\xee\x84\x90", "\xee\x8c\x84", "\xee\x84\x98", "\xee\x80\xb0", "\xee\x80\xb2", "\xee\x84\x99", "\xee\x91\x87", "\xee\x8c\x83", "\xee\x8c\x85", "\xee\x8c\x87", "\xee\x8c\x88", "\xee\x91\x84", "[\xe3\x81\x95\xe3\x81\x8f\xe3\x82\x89\xe3\x82\x93\xe3\x81\xbc]", "[\xe3\x83\x90\xe3\x83\x8a\xe3\x83\x8a]", "\xee\x8d\x85", "\xee\x8d\x86", "\xee\x8d\x87", "\xee\x8d\x88", "\xee\x8d\x89", "\xee\x8d\x8a", "\xee\x90\x99", "\xee\x90\x9b", "\xee\x90\x9a", "\xee\x90\x9c", "\xee\x90\x89", "\xee\x8c\x9c", "\xee\x8c\x9d", "\xee\x8c\x9e", "\xee\x8c\x9f", "\xee\x8c\xa0", "\xee\x80\x81", "\xee\x80\x82", "\xee\x80\x84", "\xee\x80\x85", "\xee\x90\xa8", "\xee\x85\x92", "\xee\x90\xa9", "\xee\x84\x9b", "\xee\x81\x8e", "\xee\x84\x8c", "\xee\x84\xab", "\xee\x84\x9a", "\xee\x84\x9c", "\xee\x89\x93", "[\xe3\x82\xab\xe3\x82\xbf\xe3\x83\x84\xe3\x83\xa0\xe3\x83\xaa]", "\xee\x84\xb4", "\xee\x84\x8a", "\xee\x91\x81", "\xee\x80\x99", "\xee\x81\x95", "\xee\x81\x92", "\xee\x81\x93", "\xee\x81\x90", "\xee\x81\x8f", "\xee\x81\x94", "\xee\x80\x9a", "\xee\x84\x89", "\xee\x84\x8b", "\xee\x81\x91", "\xee\x94\xac", "\xee\x81\x99", "\xee\x90\x83", "\xee\x90\x90", "\xee\x81\x98", "\xee\x90\x86", "\xee\x90\x8f", "\xee\x90\x8e", "\xee\x84\x86", "\xee\x90\x84", "\xee\x84\x85", "\xee\x81\x96", "\xee\x90\x98", "\xee\x90\x97", "\xee\x90\x8c", "\xee\x90\x8d", "\xee\x81\x97", "\xee\x90\x95\xee\x8c\xb1", "\xee\x90\x8a", "\xee\x90\x92", "\xee\x90\x94", "\xee\x90\x95", "\xee\x90\x93", "\xee\x90\x91", "\xee\x90\x8b", "\xee\x90\x96", "\xee\x90\x87", "\xee\x84\x87", "\xee\x90\x88", "\xee\x90\x82", "\xee\x84\x88", "\xee\x90\x81", "\xee\x90\x85", "\xee\x90\xa3", "\xee\x90\xa4", "\xee\x90\xa6", "\xee\x80\x92", "\xee\x90\xa7", "\xee\x90\x9d", "\xee\x80\xb6", "\xee\x80\xb8", "\xee\x85\x93", "\xee\x85\x95", "\xee\x85\x8d", "\xee\x85\x94", "\xee\x85\x98", "\xee\x85\x96", "\xee\x85\x97", "\xee\x80\xb7", "\xee\x84\xa1", "\xee\x88\x82", "\xee\x8c\x8b", "\xee\x80\xbb", "\xee\x80\x87", "\xee\x84\xbe", "\xee\x8c\x9a", "\xee\x8c\x9b", "[\xe3\x83\xa1\xe3\x82\xac\xe3\x83\x8d]", "\xee\x80\x86", "[\xe3\x82\xb8\xe3\x83\xbc\xe3\x83\xb3\xe3\x82\xba]", "\xee\x84\x8e", "\xee\x8c\x82", "\xee\x8c\x98", "\xee\x8c\x99", "\xee\x8c\xa1", "\xee\x8c\xa2", "[\xe8\xb2\xa1\xe5\xb8\x83]", "\xee\x8c\xa3", "\xee\x84\xaf", "\xee\x85\x89", "\xee\x85\x8a", "\xef\xbf\xa5", "\xee\x84\x9d", "[\xe6\x87\x90\xe4\xb8\xad\xe9\x9b\xbb\xe7\x81\xaf]", "[\xe3\x83\xac\xe3\x83\xb3\xe3\x83\x81]", "\xee\x84\x96", "\xee\x84\x93", "\xee\x88\xbe", "\xee\x88\x89", "\xee\x80\xb1", "\xee\x84\xbb", "\xee\x8c\x8f", "\xee\x8c\x94", "\xee\x84\x92", "\xee\x8d\x8b", "\xee\x80\xb3", "\xee\x91\x88", "\xee\x85\x83", "\xee\x84\x97", "\xee\x8c\x90", "\xee\x8c\x92", "\xee\x90\xb6", "\xee\x90\xb8", "\xee\x90\xb9", "\xee\x90\xba", "\xee\x90\xbb", "\xee\x91\x80", "\xee\x91\x82", "\xee\x91\x85", "\xee\x91\x86", "[\xe3\x83\x9d\xe3\x82\xb1\xe3\x83\x99\xe3\x83\xab]", "\xee\x80\x89", "\xee\x80\x8a", "\xee\x84\x84", "\xee\x8c\x81", "\xee\x80\x8b", "\xee\x84\x83", "\xee\x84\x81", "\xee\x84\x82", "\xee\x85\x82", "\xee\x8c\x97", "\xee\x85\x8b", "[\xe3\x83\x9a\xe3\x83\xb3]", "\xee\x84\x9f", "\xee\x80\x8c", "[\xe3\x82\xaf\xe3\x83\xaa\xe3\x83\x83\xe3\x83\x97]", "\xee\x84\x9e", "\xee\x8c\x96", "\xee\x84\xa6", "\xee\x84\xa7", "\xee\x8c\x93", "\xee\x85\x88", "[\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\xad\xe3\x83\xbc\xe3\x83\xab]", "\xee\x80\x96", "\xee\x80\x94", "\xee\x80\x95", "\xee\x80\x98", "\xee\x80\x93", "\xee\x90\xaa", "\xee\x84\xb2", "[\xe3\x82\xb9\xe3\x83\x8e\xe3\x83\x9c]", "\xee\x84\x95", "\xee\x80\x97", "\xee\x84\xb1", "\xee\x90\xab", "\xee\x90\xad", "\xee\x80\x9e", "\xee\x90\xb4", "\xee\x90\xb5", "\xee\x80\x9f", "\xee\x80\x9b", "\xee\x90\xae", "\xee\x85\x99", "\xee\x85\x90", "\xee\x80\x9d", "\xee\x80\x9c", "\xee\x80\xb9", "\xee\x84\x8d", "\xee\x84\xb5", "\xee\x85\x9a", "\xee\x90\xaf", "\xee\x90\xb0", "\xee\x90\xb1", "\xee\x90\xb2", "\xee\x80\xba", "\xee\x85\x8f", "\xee\x85\x8e", "\xee\x84\xb7", "\xee\x84\xa3", "\xee\x84\xa2", "\xee\x84\xa4", "\xee\x90\xb3", "\xee\x80\xbc", "\xee\x80\xbd", "\xee\x8c\x8a", "[\xe3\x82\xa4\xe3\x83\x99\xe3\x83\xb3\xe3\x83\x88]", "\xee\x84\xa5", "\xee\x8c\xa4", "[\xe3\x82\xb2\xe3\x83\xbc\xe3\x83\xa0]", "\xee\x84\xad", "\xee\x84\xb0", "\xee\x84\xb3", "\xee\x90\xac", "\xee\x80\xbe", "\xee\x8c\xa6", "\xee\x81\x80", "\xee\x81\x81", "\xee\x81\x82", "\xee\x84\xac", "\xee\x80\x88", "\xee\x84\xaa", "\xee\x84\xa8", "\xee\x84\xa9", "\xee\x80\x83", "\xee\x84\x83\xee\x8c\xa8", "\xee\x80\xb4", "\xee\x80\xb5", "\xee\x84\x91", "\xee\x8c\x86", "\xee\x90\xa5", "\xee\x90\xbd", "\xee\x88\x87", "\xee\x89\x8e", "\xee\x89\x8f", "\xee\x88\x90", "\xee\x88\x9c", "\xee\x88\x9d", "\xee\x88\x9e", "\xee\x88\x9f", "\xee\x88\xa0", "\xee\x88\xa1", "\xee\x88\xa2", "\xee\x88\xa3", "\xee\x88\xa4", "\xee\x88\xa5", "\xee\x88\x8b", "\xee\x89\x90", "\xee\x89\x91", "\xee\x84\xa0", "\xee\x8d\x82", "\xee\x81\x86", "\xee\x8d\x80", "\xee\x8c\xb9", "\xee\x85\x87", "\xee\x8c\xba", "\xee\x8c\xbb", "\xee\x8c\xbc", "\xee\x8c\xbd", "\xee\x8c\xbe", "\xee\x8c\xbf", "\xee\x8d\x81", "\xee\x8d\x83", "\xee\x8d\x84", "\xee\x8d\x8c", "\xee\x8d\x8d", "\xee\x90\xbf", "[\xe3\x81\xaa\xe3\x82\x8b\xe3\x81\xa8]", "\xee\x81\x83", "\xee\x81\x85", "\xee\x81\x84", "\xee\x81\x87", "\xee\x8c\xb8", "\xee\x8c\x8c", "\xee\x88\xb6", "\xee\x88\xb8", "\xee\x88\xb7", "\xee\x88\xb9", "\xe2\x87\x94", "\xe2\x86\x91\xe2\x86\x93", "\xee\x88\xb2", "\xee\x88\xb3", "\xee\x88\xb4", "\xee\x88\xb5", "\xee\x88\xba", "\xee\x88\xbb", "\xee\x88\xbc", "\xee\x88\xbd", "\xee\x8c\xb2", "\xee\x8c\xb3", "\xee\x80\xa1", "\xef\xbc\x81\xef\xbc\x9f", "\xef\xbc\x81\xef\xbc\x81", "\xee\x80\xa0", "\xee\x8c\xb6", "\xee\x8c\xb7", "\xef\xbd\x9e", "\xee\x88\x91", "\xee\x80\xa2", "\xee\x8c\xa7", "\xee\x80\xa3", "\xee\x8c\xa8", "\xee\x8c\xa9", "\xee\x8c\xaa", "\xee\x8c\xab", "\xee\x8c\xac", "\xee\x8c\xad", "\xee\x90\xb7", "\xee\x88\x84", "\xee\x88\x8c", "\xee\x88\x8e", "\xee\x88\x8d", "\xee\x88\x8f", "\xee\x8c\x8e", "\xee\x88\x88", "\xee\x88\x8a", "[\xe6\x97\x97]", "\xee\x89\x92", "\xee\x84\xb6", "\xee\x88\x81", "\xee\x84\xb8", "\xee\x84\xb9", "\xee\x84\xbf", "\xee\x85\x91", "\xee\x85\x80", "\xee\x8c\x89", "\xee\x84\xba", "[\xe7\xa6\x81\xe6\xad\xa2]", "[CL]", "\xee\x88\x94", "[FREE]", "\xee\x88\xa9", "\xee\x88\x92", "\xee\x89\x8d", "\xee\x88\x93", "\xee\x84\xae", "\xee\x88\x83", "\xee\x88\xa8", "\xee\x88\xab", "\xee\x88\xaa", "\xee\x88\x95", "\xee\x88\x96", "\xee\x88\x97", "\xee\x88\x98", "\xee\x88\xa7", "\xee\x88\xac", "\xee\x88\xad", "\xee\x8c\x95", "\xee\x8c\x8d", "\xee\x88\xa6", "\xee\x84\x8f", "\xee\x8c\xb4", "\xee\x8c\x91", "\xee\x84\xbc", "[\xe3\x83\x89\xe3\x83\xb3\xe3\x83\x83]", "\xee\x8c\xb1", "\xee\x8c\xb0", "\xee\x81\x9a", "\xee\x85\x8c", "\xee\x8c\xae", "\xee\x88\x85", "\xee\x88\x86", "\xee\x88\x99", "\xee\x88\x9a", "\xee\x88\x9b", "\xee\x8c\xaf", "\xe2\x86\x90\xe2\x94\x98", "\xee\x85\x81", "\xee\x84\x94", "\xee\x85\x84", "\xee\x85\x85", "\xee\x80\xbf", "\xee\x8c\xa5", "\xee\x89\x8c", "\xee\x80\x90", "\xee\x80\x91", "\xee\x80\x8d", "\xee\x80\x8e", "\xee\x80\x8f", "\xee\x88\xae", "\xee\x88\xaf", "\xee\x88\xb0", "\xee\x88\xb1", "\xee\x90\x9e", "\xee\x90\x9f", "\xee\x90\xa0", "\xee\x90\xa1", "\xee\x90\xa2", "\xf3\xbe\x80\x80", "\xf3\xbe\x80\x81", "\xf3\xbe\x80\x82", "\xf3\xbe\x80\x83", "\xf3\xbe\x80\x84", "\xf3\xbe\x80\x85", "\xf3\xbe\x80\x86", "\xf3\xbe\x80\x87", "\xf3\xbe\x80\x88", "\xf3\xbe\x80\x89", "\xf3\xbe\x80\x8a", "\xf3\xbe\x80\x8b", "\xf3\xbe\x80\x8c", "\xf3\xbe\x80\x8d", "\xf3\xbe\x80\x8e", "\xf3\xbe\x80\x8f", "\xf3\xbe\x80\x90", "\xf3\xbe\x80\xb8", "\xf3\xbe\x80\xba", "\xf3\xbe\x80\xbb", "\xf3\xbe\x80\xb9", "\xf3\xbe\x80\x91", "\xf3\xbe\x80\x92", "\xf3\xbe\x80\x93", "\xf3\xbe\x80\x94", "\xf3\xbe\x80\x95", "\xf3\xbe\x80\x96", "\xf3\xbe\xad\xa9", "\xf3\xbe\xad\xaa", "\xf3\xbe\x80\x9e", "\xf3\xbe\x80\x9f", "\xf3\xbe\x80\xa0", "\xf3\xbe\x80\xa1", "\xf3\xbe\x80\xa2", "\xf3\xbe\x80\xa3", "\xf3\xbe\x80\xa4", "\xf3\xbe\x80\xa5", "\xf3\xbe\x80\xa6", "\xf3\xbe\x80\xa7", "\xf3\xbe\x80\xa8", "\xf3\xbe\x80\xa9", "\xf3\xbe\x80\x9d", "\xf3\xbe\x80\x9c", "\xf3\xbe\x80\xaa", "\xf3\xbe\x80\x9b", "\xf3\xbe\x80\xab", "\xf3\xbe\x80\xac", "\xf3\xbe\x80\xad", "\xf3\xbe\x80\xae", "\xf3\xbe\x80\xaf", "\xf3\xbe\x80\xb0", "\xf3\xbe\x80\xb1", "\xf3\xbe\x80\xb2", "\xf3\xbe\x80\xb3", "\xf3\xbe\x80\xb4", "\xf3\xbe\x80\xb5", "\xf3\xbe\x80\xb6", "\xf3\xbe\x80\xb7", "\xf3\xbe\x80\xbc", "\xf3\xbe\x80\xbd", "\xf3\xbe\x80\xbe", "\xf3\xbe\x80\xbf", "\xf3\xbe\x81\x80", "\xf3\xbe\x81\x81", "\xf3\xbe\x81\x82", "\xf3\xbe\x81\x83", "\xf3\xbe\x81\x85", "\xf3\xbe\x81\x86", "\xf3\xbe\x81\x87", "\xf3\xbe\x81\x88", "\xf3\xbe\x81\x89", "\xf3\xbe\x81\x8a", "\xf3\xbe\x81\x8b", "\xf3\xbe\x81\x8c", "\xf3\xbe\x81\x8d", "\xf3\xbe\x81\x8e", "\xf3\xbe\x81\x8f", "\xf3\xbe\x81\x90", "\xf3\xbe\x81\x91", "\xf3\xbe\x81\x92", "\xf3\xbe\x81\x93", "\xf3\xbe\x81\x94", "\xf3\xbe\x81\x95", "\xf3\xbe\x81\x96", "\xf3\xbe\x81\x97", "\xf3\xbe\x81\x98", "\xf3\xbe\x81\x99", "\xf3\xbe\x81\x9a", "\xf3\xbe\x81\x9b", "\xf3\xbe\x86\x90", "\xf3\xbe\x86\x91", "\xf3\xbe\x86\x92", "\xf3\xbe\x86\x93", "\xf3\xbe\x86\x94", "\xf3\xbe\x86\x95", "\xf3\xbe\x86\x96", "\xf3\xbe\x86\x97", "\xf3\xbe\x86\x98", "\xf3\xbe\x86\x99", "\xf3\xbe\x86\x9a", "\xf3\xbe\x86\x9b", "\xf3\xbe\x86\x9c", "\xf3\xbe\x86\x9d", "\xf3\xbe\x86\x9e", "\xf3\xbe\x86\x9f", "\xf3\xbe\x86\xa0", "\xf3\xbe\x86\xa1", "\xf3\xbe\x86\xa2", "\xf3\xbe\x86\xa3", "\xf3\xbe\x86\xa4", "\xf3\xbe\x86\xa5", "\xf3\xbe\x86\xa6", "\xf3\xbe\x86\xa7", "\xf3\xbe\x86\xa8", "\xf3\xbe\x86\xa9", "\xf3\xbe\x86\xaa", "\xf3\xbe\x86\xab", "\xf3\xbe\x86\xac", "\xf3\xbe\x86\xad", "\xf3\xbe\x86\xae", "\xf3\xbe\x86\xaf", "\xf3\xbe\x86\xb0", "\xf3\xbe\x86\xb1", "\xf3\xbe\x86\xb2", "\xf3\xbe\x86\xb3", "\xf3\xbe\x86\xb4", "\xf3\xbe\x86\xb5", "\xf3\xbe\x86\xb6", "\xf3\xbe\x86\xb9", "\xf3\xbe\x87\x93", "\xf3\xbe\x9f\x9c", "\xf3\xbe\x87\x94", "\xf3\xbe\x87\x95", "\xf3\xbe\x87\x96", "\xf3\xbe\x87\x8c", "\xf3\xbe\x87\x8d", "\xf3\xbe\x87\x8e", "\xf3\xbe\x87\x8f", "\xf3\xbe\x87\x85", "\xf3\xbe\x87\x86", "\xf3\xbe\x87\x8b", "\xf3\xbe\x87\x9a", "\xf3\xbe\x87\xa1", "\xf3\xbe\x87\xa2", "\xf3\xbe\x87\x89", "\xf3\xbe\x87\x99", "\xf3\xbe\x87\x9c", "\xf3\xbe\x86\xba", "\xf3\xbe\x86\xbb", "\xf3\xbe\x87\x88", "\xf3\xbe\x87\x9d", "\xf3\xbe\x86\xbc", "\xf3\xbe\x87\x98", "\xf3\xbe\x86\xbd", "\xf3\xbe\x87\x87", "\xf3\xbe\x87\x82", "\xf3\xbe\x87\x80", "\xf3\xbe\x86\xb8", "\xf3\xbe\x87\x83", "\xf3\xbe\x86\xbe", "\xf3\xbe\x87\x84", "\xf3\xbe\x86\xb7", "\xf3\xbe\x86\xbf", "\xf3\xbe\x87\x81", "\xf3\xbe\x87\x8a", "\xf3\xbe\x87\x90", "\xf3\xbe\x87\x91", "\xf3\xbe\x87\x92", "\xf3\xbe\x87\x97", "\xf3\xbe\x87\x9b", "\xf3\xbe\x87\x9e", "\xf3\xbe\x87\x9f", "\xf3\xbe\x87\xa0", "\xf3\xbe\x8c\xa0", "\xf3\xbe\x8c\xa1", "\xf3\xbe\x8c\xa2", "\xf3\xbe\x8c\xa3", "\xf3\xbe\x8c\xa4", "\xf3\xbe\x8c\xa5", "\xf3\xbe\x8c\xa6", "\xf3\xbe\x8c\xa7", "\xf3\xbe\x8c\xa8", "\xf3\xbe\x8c\xa9", "\xf3\xbe\x8c\xaa", "\xf3\xbe\x8c\xab", "\xf3\xbe\x8c\xac", "\xf3\xbe\x8c\xad", "\xf3\xbe\x8c\xae", "\xf3\xbe\x8c\xaf", "\xf3\xbe\x8c\xb0", "\xf3\xbe\x8c\xb1", "\xf3\xbe\x8c\xb2", "\xf3\xbe\x8c\xb3", "\xf3\xbe\x8c\xb4", "\xf3\xbe\x8c\xb5", "\xf3\xbe\x8c\xb6", "\xf3\xbe\x8c\xb8", "\xf3\xbe\x8c\xb9", "\xf3\xbe\x8c\xba", "\xf3\xbe\x8c\xbb", "\xf3\xbe\x8c\xbc", "\xf3\xbe\x8c\xbd", "\xf3\xbe\x8c\xbe", "\xf3\xbe\x8c\xbf", "\xf3\xbe\x8d\x80", "\xf3\xbe\x8d\x81", "\xf3\xbe\x8d\x82", "\xf3\xbe\x8d\x83", "\xf3\xbe\x8d\x84", "\xf3\xbe\x8d\x85", "\xf3\xbe\x8d\x86", "\xf3\xbe\x8d\x87", "\xf3\xbe\x8d\x88", "\xf3\xbe\x8d\x89", "\xf3\xbe\x8d\x8a", "\xf3\xbe\x8d\x8b", "\xf3\xbe\x8d\x8c", "\xf3\xbe\x8d\x8d", "\xf3\xbe\x8d\x8e", "\xf3\xbe\x8d\x8f", "\xf3\xbe\x8d\x90", "\xf3\xbe\x8d\x91", "\xf3\xbe\x8d\x92", "\xf3\xbe\x8d\x93", "\xf3\xbe\x8d\x94", "\xf3\xbe\x8d\x95", "\xf3\xbe\x8d\x96", "\xf3\xbe\x8d\x97", "\xf3\xbe\x8d\x98", "\xf3\xbe\x8d\x99", "\xf3\xbe\x8d\x9a", "\xf3\xbe\x8d\x9b", "\xf3\xbe\x92\xb0", "\xf3\xbe\x92\xb1", "\xf3\xbe\x92\xb2", "\xf3\xbe\x92\xb3", "\xf3\xbe\x92\xb4", "\xf3\xbe\x92\xb5", "\xf3\xbe\x92\xb6", "\xf3\xbe\x92\xb7", "\xf3\xbe\x92\xb8", "\xf3\xbe\x92\xb9", "\xf3\xbe\x92\xba", "\xf3\xbe\x92\xbb", "\xf3\xbe\x92\xbc", "\xf3\xbe\x92\xbd", "\xf3\xbe\x92\xbe", "\xf3\xbe\x92\xbf", "\xf3\xbe\x93\x80", "\xf3\xbe\x93\x81", "\xf3\xbe\x93\x82", "\xf3\xbe\x93\x83", "\xf3\xbe\x93\x84", "\xf3\xbe\x93\x86", "\xf3\xbe\x93\x87", "\xf3\xbe\x93\x88", "\xf3\xbe\x93\x8c", "\xf3\xbe\x93\x8d", "\xf3\xbe\x93\x96", "\xf3\xbe\x93\x97", "\xf3\xbe\x93\x98", "\xf3\xbe\x95\x93", "\xf3\xbe\x93\x8e", "\xf3\xbe\x93\x8f", "\xf3\xbe\x93\x90", "\xf3\xbe\x93\x91", "\xf3\xbe\x93\x93", "\xf3\xbe\x93\x94", "\xf3\xbe\x93\x95", "\xf3\xbe\x93\x99", "\xf3\xbe\x93\x9a", "\xf3\xbe\x93\x9b", "\xf3\xbe\x93\x9c", "\xf3\xbe\x93\xb0", "\xf3\xbe\x93\xb1", "\xf3\xbe\x93\x9d", "\xf3\xbe\x93\x9e", "\xf3\xbe\x93\x9f", "\xf3\xbe\x93\xa0", "\xf3\xbe\x93\xa1", "\xf3\xbe\x93\xa2", "\xf3\xbe\x93\xa3", "\xf3\xbe\x93\xa4", "\xf3\xbe\x93\xad", "\xf3\xbe\x93\xa8", "\xf3\xbe\x93\xab", "\xf3\xbe\x93\xa7", "\xf3\xbe\x93\xaa", "\xf3\xbe\x93\xa9", "\xf3\xbe\x93\xa5", "\xf3\xbe\x93\xae", "\xf3\xbe\x93\xac", "\xf3\xbe\x93\xa6", "\xf3\xbe\x93\xb6", "\xf3\xbe\x93\xbb", "\xf3\xbe\x93\x89", "\xf3\xbe\x93\x8a", "\xf3\xbe\x93\x8b", "\xf3\xbe\x93\xba", "\xf3\xbe\x93\xb5", "\xf3\xbe\x93\xb7", "\xf3\xbe\x93\xb8", "\xf3\xbe\x81\x84", "\xf3\xbe\x93\x92", "\xf3\xbe\x94\x89", "\xf3\xbe\x94\x8a", "\xf3\xbe\x94\x8b", "\xf3\xbe\x94\x8c", "\xf3\xbe\x94\x8d", "\xf3\xbe\x94\x8e", "\xf3\xbe\x94\x8f", "\xf3\xbe\x94\x90", "\xf3\xbe\x94\x91", "\xf3\xbe\x94\x92", "\xf3\xbe\x94\x93", "\xf3\xbe\x94\x94", "\xf3\xbe\x94\x95", "\xf3\xbe\x94\x96", "\xf3\xbe\x94\x97", "\xf3\xbe\x94\x98", "\xf3\xbe\x94\x99", "\xf3\xbe\x94\x9a", "\xf3\xbe\x94\x9b", "\xf3\xbe\x94\x9c", "\xf3\xbe\x94\x9d", "\xf3\xbe\x94\x9e", "\xf3\xbe\x94\x9f", "\xf3\xbe\x94\xa0", "\xf3\xbe\x94\xa1", "\xf3\xbe\x80\x97", "\xf3\xbe\x94\xa2", "\xf3\xbe\x94\xa3", "\xf3\xbe\x94\xa4", "\xf3\xbe\x94\xa5", "\xf3\xbe\x94\xa6", "\xf3\xbe\x94\xa7", "\xf3\xbe\x94\xa8", "\xf3\xbe\x94\xa9", "\xf3\xbe\x94\xaa", "\xf3\xbe\x94\xab", "\xf3\xbe\x94\xac", "\xf3\xbe\x94\xad", "\xf3\xbe\x94\xae", "\xf3\xbe\xa0\xa2", "\xf3\xbe\x94\xaf", "\xf3\xbe\x94\xb0", "\xf3\xbe\x94\xb1", "\xf3\xbe\x94\xb3", "\xf3\xbe\x94\xb4", "\xf3\xbe\x94\xb5", "\xf3\xbe\xae\x92", "\xf3\xbe\xad\xbc", "\xf3\xbe\xad\xbd", "\xf3\xbe\xad\xbe", "\xf3\xbe\xad\xbf", "\xf3\xbe\xae\x80", "\xf3\xbe\x94\xb6", "\xf3\xbe\x94\xb7", "\xf3\xbe\x94\xb8", "\xf3\xbe\x94\xb9", "\xf3\xbe\x94\xba", "\xf3\xbe\x94\xbb", "\xf3\xbe\x94\xbc", "\xf3\xbe\x94\xbd", "\xf3\xbe\xa0\x9d", "\xf3\xbe\xa0\x9e", "\xf3\xbe\x94\xbe", "\xf3\xbe\x94\xbf", "\xf3\xbe\x95\x80", "\xf3\xbe\x95\x81", "\xf3\xbe\x95\x82", "\xf3\xbe\x95\x83", "\xf3\xbe\x95\x84", "\xf3\xbe\x95\x85", "\xf3\xbe\x95\x86", "\xf3\xbe\x95\x87", "\xf3\xbe\x94\x82", "\xf3\xbe\x93\xbf", "\xf3\xbe\x94\x80", "\xf3\xbe\x94\x81", "\xf3\xbe\x94\x83", "\xf3\xbe\x94\x84", "\xf3\xbe\x93\xbd", "\xf3\xbe\x95\x88", "\xf3\xbe\x95\x89", "\xf3\xbe\x95\x8a", "\xf3\xbe\x95\x8b", "\xf3\xbe\x95\x8c", "\xf3\xbe\x95\x8d", "\xf3\xbe\x95\x8e", "\xf3\xbe\x95\x8f", "\xf3\xbe\x95\x90", "\xf3\xbe\x95\x91", "\xf3\xbe\x95\x92", "\xf3\xbe\x9f\x90", "\xf3\xbe\x9f\x91", "\xf3\xbe\x9f\x92", "\xf3\xbe\x9f\x93", "\xf3\xbe\x9f\x94", "\xf3\xbe\x9f\x95", "\xf3\xbe\x9f\x96", "\xf3\xbe\x9f\x97", "\xf3\xbe\x9f\x98", "\xf3\xbe\x9f\x99", "\xf3\xbe\x9f\x9a", "\xf3\xbe\x9f\x9b", "\xf3\xbe\x9f\x9d", "\xf3\xbe\x9f\x9e", "\xf3\xbe\x9f\x9f", "\xf3\xbe\x9f\xa0", "\xf3\xbe\x9f\xa1", "\xf3\xbe\x9f\xa2", "\xf3\xbe\x9f\xa3", "\xf3\xbe\x9f\xa4", "\xf3\xbe\x9f\xa5", "\xf3\xbe\x9f\xa6", "\xf3\xbe\x9f\xa7", "\xf3\xbe\x9f\xa8", "\xf3\xbe\x9f\xa9", "\xf3\xbe\x9f\xaa", "\xf3\xbe\x9f\xac", "\xf3\xbe\x9f\xad", "\xf3\xbe\x9f\xae", "\xf3\xbe\x9f\xaf", "\xf3\xbe\x9f\xb1", "\xf3\xbe\x9f\xb2", "\xf3\xbe\x9f\xb3", "\xf3\xbe\x9f\xb4", "\xf3\xbe\x9f\xb5", "\xf3\xbe\x9f\xb6", "\xf3\xbe\x9f\xb7", "\xf3\xbe\x9f\xb8", "\xf3\xbe\x9f\xb9", "\xf3\xbe\x9f\xba", "\xf3\xbe\x9f\xbb", "\xf3\xbe\x9f\xbc", "\xf3\xbe\x9f\xbd", "\xf3\xbe\x9f\xbe", "\xf3\xbe\x9f\xbf", "\xf3\xbe\xa0\x80", "\xf3\xbe\xa0\x81", "\xf3\xbe\xa0\x82", "\xf3\xbe\xa0\x83", "\xf3\xbe\xa0\x84", "\xf3\xbe\xa0\x85", "\xf3\xbe\xa0\x86", "\xf3\xbe\xa0\x87", "\xf3\xbe\xa0\x88", "\xf3\xbe\xa0\x89", "\xf3\xbe\xa0\x8a", "\xf3\xbe\xa0\x8b", "\xf3\xbe\xa0\x8c", "\xf3\xbe\xa0\x8d", "\xf3\xbe\xa0\x8e", "\xf3\xbe\xa0\x8f", "\xf3\xbe\xa0\x90", "\xf3\xbe\xa0\x91", "\xf3\xbe\xa0\x92", "\xf3\xbe\xa0\x93", "\xf3\xbe\xa0\x94", "\xf3\xbe\xa0\x95", "\xf3\xbe\xa0\x96", "\xf3\xbe\xa0\x97", "\xf3\xbe\xa0\x98", "\xf3\xbe\xa0\x99", "\xf3\xbe\xa0\x9a", "\xf3\xbe\xa0\x9b", "\xf3\xbe\x93\xaf", "\xf3\xbe\x93\xb9", "\xf3\xbe\xa0\x9c", "\xf3\xbe\xa0\x9f", "\xf3\xbe\xa0\xa0", "\xf3\xbe\xa0\xa3", "\xf3\xbe\xa0\xa4", "\xf3\xbe\xa0\xa5", "\xf3\xbe\xa0\xa6", "\xf3\xbe\xa0\xa7", "\xf3\xbe\xa0\xa8", "\xf3\xbe\xa0\xa9", "\xf3\xbe\xa0\xaa", "\xf3\xbe\xac\xa5", "\xf3\xbe\xac\xa9", "\xf3\xbe\xac\xad", "\xf3\xbe\xac\xaa", "\xf3\xbe\xad\x87", "\xf3\xbe\xa0\xac", "\xf3\xbe\xa0\xae", "\xf3\xbe\xa0\xaf", "\xf3\xbe\xa0\xb0", "\xf3\xbe\xa0\xb1", "\xf3\xbe\xa0\xb2", "\xf3\xbe\xa0\xb3", "\xf3\xbe\xa0\xb4", "\xf3\xbe\xa0\xb5", "\xf3\xbe\xa0\xb6", "\xf3\xbe\xa0\xb7", "\xf3\xbe\xa0\xbb", "\xf3\xbe\xa0\xb8", "\xf3\xbe\xa0\xb9", "\xf3\xbe\xa0\xba", "\xf3\xbe\xa5\xa0", "\xf3\xbe\xa5\xa1", "\xf3\xbe\xa5\xa2", "\xf3\xbe\xa5\xa3", "\xf3\xbe\xa5\xa4", "\xf3\xbe\xa5\xa5", "\xf3\xbe\xa5\xa6", "\xf3\xbe\xa5\xa7", "\xf3\xbe\xa5\xa8", "\xf3\xbe\xa5\xa9", "\xf3\xbe\xa5\xaa", "\xf3\xbe\xa5\xab", "\xf3\xbe\xa5\xac", "\xf3\xbe\xa5\xad", "\xf3\xbe\xa5\xae", "\xf3\xbe\xa5\xaf", "\xf3\xbe\xa5\xb0", "\xf3\xbe\xa5\xb1", "\xf3\xbe\xa5\xb2", "\xf3\xbe\xa5\xb3", "\xf3\xbe\xa5\xb4", "\xf3\xbe\xa5\xb5", "\xf3\xbe\xa5\xb6", "\xf3\xbe\xa5\xb7", "\xf3\xbe\xa5\xb8", "\xf3\xbe\xa5\xb9", "\xf3\xbe\xa5\xba", "\xf3\xbe\xa5\xbb", "\xf3\xbe\xa5\xbc", "\xf3\xbe\xa5\xbd", "\xf3\xbe\xa5\xbe", "\xf3\xbe\xa5\xbf", "\xf3\xbe\xa6\x80", "\xf3\xbe\xa6\x81", "\xf3\xbe\xa6\x82", "\xf3\xbe\xa6\x83", "\xf3\xbe\xa6\x84", "\xf3\xbe\xa6\x85", "\xf3\xbe\xa6\x86", "\xf3\xbe\xa6\x87", "\xf3\xbe\xa6\x88", "\xf3\xbe\xab\xb0", "\xf3\xbe\xab\xb1", "\xf3\xbe\xab\xb2", "\xf3\xbe\xab\xb3", "\xf3\xbe\xab\xb4", "\xf3\xbe\xab\xb5", "\xf3\xbe\xab\xb6", "\xf3\xbe\xab\xb7", "\xf3\xbe\xab\xb8", "\xf3\xbe\xab\xb9", "\xf3\xbe\xab\xba", "\xf3\xbe\xab\xbb", "\xf3\xbe\xab\xbc", "\xf3\xbe\xab\xbd", "\xf3\xbe\xab\xbe", "\xf3\xbe\xab\xbf", "\xf3\xbe\xac\x83", "\xf3\xbe\xac\x82", "\xf3\xbe\xad\xb8", "\xf3\xbe\xad\xb9", "\xf3\xbe\xac\x81", "\xf3\xbe\xac\x80", "\xf3\xbe\xad\x84", "\xf3\xbe\xad\x85", "\xf3\xbe\xad\x86", "\xf3\xbe\xac\x84", "\xf3\xbe\xac\x85", "\xf3\xbe\xac\x86", "\xf3\xbe\xac\x89", "\xf3\xbe\xac\x8a", "\xf3\xbe\xac\x8b", "\xf3\xbe\xac\x87", "\xf3\xbe\xac\x88", "\xf3\xbe\xa0\xab", "\xf3\xbe\xac\x8c", "\xf3\xbe\xac\x8d", "\xf3\xbe\xac\x8e", "\xf3\xbe\xac\x8f", "\xf3\xbe\xac\x90", "\xf3\xbe\xac\x91", "\xf3\xbe\xac\x92", "\xf3\xbe\xac\x93", "\xf3\xbe\xac\x94", "\xf3\xbe\xac\x95", "\xf3\xbe\xac\x96", "\xf3\xbe\xac\x97", "\xf3\xbe\xac\x98", "\xf3\xbe\xac\x99", "\xf3\xbe\xac\x9a", "\xf3\xbe\xac\x9b", "\xf3\xbe\xac\x9c", "\xf3\xbe\xac\x9d", "\xf3\xbe\xac\x9e", "\xf3\xbe\xac\x9f", "\xf3\xbe\xac\xa0", "\xf3\xbe\xac\xa2", "\xf3\xbe\xac\xa3", "\xf3\xbe\xac\xa6", "\xf3\xbe\xac\xac", "\xf3\xbe\x9f\xab", "\xf3\xbe\x9f\xb0", "\xf3\xbe\xac\xb3", "\xf3\xbe\xac\xb4", "\xf3\xbe\x94\x85", "\xf3\xbe\x94\x86", "\xf3\xbe\x94\x87", "\xf3\xbe\x94\x88", "\xf3\xbe\xac\xb5", "\xf3\xbe\x93\xb3", "\xf3\xbe\xad\x88", "\xf3\xbe\xad\x89", "\xf3\xbe\xae\x84", "\xf3\xbe\xac\xb8", "\xf3\xbe\xac\xa1", "\xf3\xbe\xae\x81", "\xf3\xbe\xac\xb6", "\xf3\xbe\xac\xa8", "\xf3\xbe\xac\xa7", "\xf3\xbe\xad\x8f", "\xf3\xbe\xac\xb7", "\xf3\xbe\xac\xb2", "\xf3\xbe\xac\xa4", "\xf3\xbe\xac\xbf", "\xf3\xbe\xac\xae", "\xf3\xbe\xac\xaf", "\xf3\xbe\xac\xb0", "\xf3\xbe\xac\xb1", "\xf3\xbe\xac\xb9", "\xf3\xbe\xac\xba", "\xf3\xbe\xac\xbb", "\xf3\xbe\xac\xbc", "\xf3\xbe\xac\xbe", "\xf3\xbe\xad\x80", "\xf3\xbe\xad\x81", "\xf3\xbe\xac\xab", "\xf3\xbe\xad\x83", "\xf3\xbe\xac\xbd", "\xf3\xbe\xad\x90", "\xf3\xbe\xad\x91", "\xf3\xbe\xad\x92", "\xf3\xbe\xad\x93", "\xf3\xbe\xad\x94", "\xf3\xbe\xad\x95", "\xf3\xbe\xad\x96", "\xf3\xbe\xad\x97", "\xf3\xbe\xad\x98", "\xf3\xbe\xad\x99", "\xf3\xbe\xad\x9a", "\xf3\xbe\xad\x9b", "\xf3\xbe\xad\x9c", "\xf3\xbe\xad\x9d", "\xf3\xbe\x93\xb4", "\xf3\xbe\xad\x9e", "\xf3\xbe\xad\x9f", "\xf3\xbe\x94\xb2", "\xf3\xbe\xad\xa0", "\xf3\xbe\xad\xa1", "\xf3\xbe\xad\xa2", "\xf3\xbe\xad\xa5", "\xf3\xbe\xad\xa6", "\xf3\xbe\xad\xa3", "\xf3\xbe\xad\xa4", "\xf3\xbe\xad\xa7", "\xf3\xbe\xad\xa8", "\xf3\xbe\xad\xab", "\xf3\xbe\xad\xac", "\xf3\xbe\xad\xad", "\xf3\xbe\xad\xae", "\xf3\xbe\xad\xaf", "\xf3\xbe\xad\xb0", "\xf3\xbe\xad\xb1", "\xf3\xbe\xad\xb2", "\xf3\xbe\xad\xb3", "\xf3\xbe\xad\xb4", "\xf3\xbe\xad\xb5", "\xf3\xbe\xad\xb6", "\xf3\xbe\xad\xb7", "\xf3\xbe\xad\xba", "\xf3\xbe\xad\xbb", "\xf3\xbe\xae\x83", "\xf3\xbe\xae\x88", "\xf3\xbe\xae\x91", "\xf3\xbe\xa0\xa1", "\xf3\xbe\x93\xbc", "\xf3\xbe\x93\xbe", "\xf3\xbe\xae\x85", "\xf3\xbe\xae\x8d", "\xf3\xbe\xae\x86", "\xf3\xbe\xae\x87", "\xf3\xbe\xae\x90", "\xf3\xbe\xae\x8a", "\xf3\xbe\xae\x82", "\xf3\xbe\x93\xb2", "\xf3\xbe\xae\x8b", "\xf3\xbe\xae\x8c", "\xf3\xbe\xae\x8f", "\xf3\xbe\xad\x8b", "\xf3\xbe\xae\x8e", "\xf3\xbe\x80\x9a", "\xf3\xbe\x80\x99", "\xf3\xbe\x80\x98", "\xf3\xbe\xad\x82", "\xf3\xbe\xad\x8a", "\xf3\xbe\xae\x93", "\xf3\xbe\xae\x95", "\xf3\xbe\xae\x94", "\xf3\xbe\xae\x96", "\xf3\xbe\xae\x97", "\xf3\xbe\xae\x98", "\xf3\xbe\xae\x99", "\xf3\xbe\xae\x9a", "\xf3\xbe\xae\x9b", "\xf3\xbe\xae\x9c", "\xf3\xbe\xae\x9d", "\xf3\xbe\xae\x9e", "\xf3\xbe\xae\x9f", "\xf3\xbe\xae\xa0", "\xf3\xbe\xae\xa1" + ); + } + +} + +class WeChatHook { + + public static function bindOpenId($uid, $openid, $isregister = 0) { + C::t('#wechat#common_member_wechat')->insert(array('uid' => $uid, 'status' => 2, 'openid' => $openid, 'isregister' => $isregister), false, true); + } + + public static function updateAppInfo($extId, $appId = '', $appSecret = '') { + global $_G; + $wechatappInfos = unserialize($_G['setting']['wechatappInfos']); + if ($appId) { + $wechatappInfos[$extId] = array('appId' => $appId, 'appSecret' => $appSecret); + } else { + unset($wechatappInfos[$extId]); + } + $settings = array('wechatappInfos' => serialize($wechatappInfos)); + C::t('common_setting')->update_batch($settings); + updatecache('setting'); + } + + public static function getAppInfo($extId) { + global $_G; + $wechatappInfos = unserialize($_G['setting']['wechatappInfos']); + if (isset($wechatappInfos[$extId])) { + return $wechatappInfos[$extId]; + } else { + return array(); + } + } + + public static function updateResponse($data, $extId = '') { + $response = self::getResponse($extId); + foreach ($data as $key => $value) { + if ($value) { + if ($value['plugin'] && $value['include'] && $value['class'] && $value['method']) { + $response[$key] = $value; + } + } else { + unset($response[$key]); + } + } + if (!$extId) { + $settings = array('wechatresponse' => serialize($response)); + } else { + global $_G; + $wechatresponseExts = unserialize($_G['setting']['wechatresponseExts']); + if ($data) { + $wechatresponseExts[$extId] = $response; + } else { + unset($wechatresponseExts[$extId]); + } + $settings = array('wechatresponseExts' => serialize($wechatresponseExts)); + } + C::t('common_setting')->update_batch($settings); + updatecache('setting'); + return $response; + } + + public static function getResponse($extId = '') { + global $_G; + if (!$extId) { + return unserialize($_G['setting']['wechatresponse']); + } else { + $wechatresponseExts = unserialize($_G['setting']['wechatresponseExts']); + return $wechatresponseExts[$extId]; + } + } + + public static function updateRedirect($value) { + if (!$value || $value['plugin'] && $value['include'] && $value['class'] && $value['method']) { + $settings = array('wechatredirect' => $value); + C::t('common_setting')->update_batch($settings); + updatecache('setting'); + } + } + + public static function getRedirect() { + global $_G; + return unserialize($_G['setting']['wechatredirect']); + } + + public static function getViewPluginId() { + global $_G; + return $_G['setting']['wechatviewpluginid']; + } + + public static function updateViewPluginId($value) { + $settings = array('wechatviewpluginid' => $value); + C::t('common_setting')->update_batch($settings); + updatecache('setting'); + } + + public static function updateAPIHook($datas) { + $apihook = self::getAPIHook(); + foreach ($datas as $data) { + foreach ($data as $key => $value) { + if (!$value['plugin']) { + continue; + } + list($module, $hookname) = explode('_', $key); + if ($value['include'] && $value['class'] && $value['method']) { + $v = $value; + unset($v['plugin']); + $v['allow'] = 1; + $apihook[$module][$hookname][$value['plugin']] = $v; + } else { + unset($apihook[$module][$hookname][$value['plugin']]); + } + } + } + $settings = array('mobileapihook' => serialize($apihook)); + C::t('common_setting')->update_batch($settings); + updatecache('setting'); + return $apihook; + } + + public static function getAPIHook($getplugin = '') { + global $_G; + $data = unserialize($_G['setting']['mobileapihook']); + if (!$getplugin) { + return $data; + } else { + foreach ($data as $key => $hooknames) { + foreach ($hooknames as $hookname => $plugins) { + foreach ($plugins as $plugin => $value) { + if ($getplugin != $plugin) { + unset($data[$key][$hookname][$plugin]); + } + } + } + } + return $data; + } + } + + public static function delAPIHook($getplugin) { + if (!$getplugin) { + return; + } + $getplugins = (array) $getplugin; + $apihook = self::getAPIHook(); + foreach ($apihook as $key => $hooknames) { + foreach ($hooknames as $hookname => $plugins) { + foreach ($plugins as $plugin => $value) { + if (in_array($plugin, $getplugins)) { + unset($apihook[$key][$hookname][$plugin]); + } + } + } + } + $settings = array('mobileapihook' => serialize($apihook)); + C::t('common_setting')->update_batch($settings); + updatecache('setting'); + return $apihook; + } + + public static function getPluginUrl($pluginid, $param = array()) { + global $_G; + if (in_array('plugin', $_G['setting']['rewritestatus'])) { + $url = $_G['siteurl'] . rewriteoutput('plugin', 1, 'wechat', 'access') . '?'; + } else { + $url = $_G['siteurl'] . 'plugin.php?id=wechat:access&'; + } + $url .= 'pluginid=' . urlencode($pluginid) . '¶m=' . urlencode(base64_encode(http_build_query($param))); + return $url; + } + } \ No newline at end of file diff --git a/source/plugin/wechat/wechat_setting.inc.php b/source/plugin/wechat/wechat_setting.inc.php index 68a6c7a..98d3507 100644 --- a/source/plugin/wechat/wechat_setting.inc.php +++ b/source/plugin/wechat/wechat_setting.inc.php @@ -1,160 +1,160 @@ -fetch_all(array('mobilewechat')); -$setting = (array)unserialize($setting['mobilewechat']); -$apiurl = $_G['siteurl'].'api/mobile/?module=wechat'; - -require_once DISCUZ_ROOT.'./source/plugin/wechat/wechat.lib.class.php'; -require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; -require_once DISCUZ_ROOT.'./source/plugin/wechat/setting.class.php'; -WeChatSetting::menu(); - -if(isset($_GET['viewapi'])) { - - dheader('location: '.ADMINSCRIPT.'?action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=api_setting'); - -} - -if(!submitcheck('settingsubmit')) { - - if(!$setting['wechat_token']) { - $setting['wechat_token'] = random(16); - $settings = array('mobilewechat' => serialize($setting)); - C::t('common_setting')->update_batch($settings); - updatecache('setting'); - } - - $groupselect = array(); - foreach(C::t('common_usergroup')->range_orderby_credit() as $group) { - if($group['type'] != 'member' || $_G['setting']['newusergroupid'] == $group['groupid']) { - $groupselect[$group['type']] .= ''; - } - } - $usergroups = ''; - - showtips(lang('plugin/wechat', 'wechat_tips', array('url' => $apiurl))); - showformheader('plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wechat_setting', 'enctype'); - - showtableheader(); - showsetting(lang('plugin/wechat', 'wechat_mptype'), array('setting[wechat_mtype]', array( - array(0, lang('plugin/wechat', 'wechat_mptype_0'), array('qrcode' => 'none')), - array(2, lang('plugin/wechat', 'wechat_mptype_2'), array('qrcode' => 'none')), - )), $setting['wechat_mtype'], 'mradio', 0, 0, lang('plugin/wechat', 'wechat_mptype_comment')); - showtagheader('tbody', 'qrcode', $setting['wechat_mtype'] == 1); - showsetting(lang('plugin/wechat', 'wechat_qrcode'), 'wechat_qrcode', '', 'file', 0, 0, lang('plugin/wechat', 'wechat_qrcode_comment', array('qrcode' => $qrcode))); - showtagfooter('tbody'); - showtablefooter(); - - showtableheader(lang('plugin/wechat', 'wechat_func_setting')); - showsetting(lang('plugin/wechat', 'wechat_allowregister'), 'setting[wechat_allowregister]', $setting['wechat_allowregister'], 'radio', 0, 1, lang('plugin/wechat', 'wechat_allowregister_comment')); - showsetting(lang('plugin/wechat', 'wechat_allowfastregister'), 'setting[wechat_allowfastregister]', $setting['wechat_allowfastregister'], 'radio', 0, 0, lang('plugin/wechat', 'wechat_allowfastregister_comment')); - showsetting(lang('plugin/wechat', 'wechat_disableregrule'), 'setting[wechat_disableregrule]', $setting['wechat_disableregrule'], 'radio', 0, 0, lang('plugin/wechat', 'wechat_disableregrule_comment')); - showsetting(lang('plugin/wechat', 'wechat_confirmtype'), 'setting[wechat_confirmtype]', $setting['wechat_confirmtype'], 'radio', 0, 0, lang('plugin/wechat', 'wechat_confirmtype_comment')); - showsetting(lang('plugin/wechat', 'wechat_newusergroupid'), '', '', $usergroups, 0, 0, lang('plugin/wechat', 'wechat_newusergroupid_comment')); - showtagfooter('tbody'); - showsetting(lang('plugin/wechat', 'wechat_followurl'), 'setting[wechat_followurl]', $setting['wechat_followurl'], 'text', 0, 0, lang('plugin/wechat', 'wechat_followurl_comment')); - showtagfooter('tbody'); - - showtableheader(lang('plugin/wechat', 'wechat_service_setting')); - showsetting(lang('plugin/wechat', 'wechat_url'), '', '', ''.$apiurl.''); - showsetting(lang('plugin/wechat', 'wechat_token'), 'setting[wechat_token]', $setting['wechat_token'], 'text'); - showtablefooter(); - - showtableheader(lang('plugin/wechat', 'wechat_devid_setting')); - showsetting(lang('plugin/wechat', 'wechat_appId'), 'setting[wechat_appId]', $setting['wechat_appId'], 'text'); - showsetting(lang('plugin/wechat', 'wechat_appsecret'), 'setting[wechat_appsecret]', $setting['wechat_appsecret'], 'text'); - showtablefooter(); - - showtableheader(); - showsubmit('settingsubmit'); - showtablefooter(); - - showformfooter(); - -} else { - - if($_GET['setting']['wechat_mtype'] == 2 && !$_GET['setting']['wechat_appId']) { - cpmsg(lang('plugin/wechat', 'wechat_at_need'), '', 'error'); - } - - if($_GET['setting']['wechat_appId'] && $_GET['setting']['wechat_appsecret']) { - require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php'; - $wechat_client = new WeChatClient($_GET['setting']['wechat_appId'], $_GET['setting']['wechat_appsecret']); - if(!$wechat_client->getAccessToken(1, 1)) { - cpmsg(lang('plugin/wechat', 'wechat_at_geterror'), '', 'error'); - } - $option = array( - 'scene_id' => 100000, - 'expire' => 30, - 'ticketOnly' => 1 - ); - $ticket = $wechat_client->getQrcodeTicket($option); - if(!$wechat_client->getQrcodeImgUrlByTicket($ticket)) { - cpmsg(lang('plugin/wechat', 'wechat_at_qrgeterror'), '', 'error'); - } - } - - $_GET['setting']['wechat_qrtype'] = !$_GET['setting']['wechat_mtype'] ? 3 : 0; - $_GET['setting']['wechat_token'] = $_GET['setting']['wechat_token'] ? $_GET['setting']['wechat_token'] : random(16); - - if($_FILES['wechat_qrcode']['tmp_name']) { - $upload = new discuz_upload(); - if(!$upload->init($_FILES['wechat_qrcode'], 'common', random(3, 1), random(8)) || !$upload->save()) { - cpmsg($upload->errormessage(), '', 'error'); - } - $_GET['setting']['wechat_qrcode'] = $upload->attach['attachment']; - } - - if($_GET['setting']['wechat_followurl']) { - $_GET['setting']['wechat_followurl'] = (!preg_match('/^http:\/\//', $_GET['setting']['wechat_followurl']) ? 'http://' : '').$_GET['setting']['wechat_followurl']; - $parse = parse_url($_GET['setting']['wechat_followurl']); - if(!$parse['host'] || $parse['host'] != 'mp.weixin.qq.com') { - cpmsg(lang('plugin/wechat', 'wsq_followurl_error'), '', 'error'); - } - } - - if($setting['wsq_siteid']) { - $siteinfo = wsq::edit($setting['wsq_sitename'], - $setting['wsq_siteurl'], - $setting['wsq_sitelogo'], - $setting['wsq_sitesummary'], - $_GET['setting']['wechat_mtype'], - $_GET['setting']['wechat_qrtype'], - $setting['wsq_siteip'], - $_GET['setting']['wechat_followurl'], - $_GET['setting']['wechat_appId'], - $_GET['setting']['wechat_appsecret'], - $_GET['setting'] + $setting - ); - if(!$siteinfo || $siteinfo->code) { - cpmsg(lang('plugin/wechat', 'wsq_api_edit_error'), '', 'error'); - } - } - - $settings = array('mobilewechat' => serialize($_GET['setting'] + $setting)); - C::t('common_setting')->update_batch($settings); - updatecache('setting'); - - cpmsg('setting_update_succeed', 'action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wechat_setting', 'succeed'); -} - -function formathook($hook) { - return 'File: '.$hook['plugin'].'/'.$hook['include'].' Method: '.$hook['class'].'->'.$hook['method']; -} - +fetch_all(array('mobilewechat')); +$setting = (array)unserialize($setting['mobilewechat']); +$apiurl = $_G['siteurl'].'api/mobile/?module=wechat'; + +require_once DISCUZ_ROOT.'./source/plugin/wechat/wechat.lib.class.php'; +require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; +require_once DISCUZ_ROOT.'./source/plugin/wechat/setting.class.php'; +WeChatSetting::menu(); + +if(isset($_GET['viewapi'])) { + + dheader('location: '.ADMINSCRIPT.'?action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=api_setting'); + +} + +if(!submitcheck('settingsubmit')) { + + if(!$setting['wechat_token']) { + $setting['wechat_token'] = random(16); + $settings = array('mobilewechat' => serialize($setting)); + C::t('common_setting')->update_batch($settings); + updatecache('setting'); + } + + $groupselect = array(); + foreach(C::t('common_usergroup')->range_orderby_credit() as $group) { + if($group['type'] != 'member' || $_G['setting']['newusergroupid'] == $group['groupid']) { + $groupselect[$group['type']] .= ''; + } + } + $usergroups = ''; + + showtips(lang('plugin/wechat', 'wechat_tips', array('url' => $apiurl))); + showformheader('plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wechat_setting', 'enctype'); + + showtableheader(); + showsetting(lang('plugin/wechat', 'wechat_mptype'), array('setting[wechat_mtype]', array( + array(0, lang('plugin/wechat', 'wechat_mptype_0'), array('qrcode' => 'none')), + array(2, lang('plugin/wechat', 'wechat_mptype_2'), array('qrcode' => 'none')), + )), $setting['wechat_mtype'], 'mradio', 0, 0, lang('plugin/wechat', 'wechat_mptype_comment')); + showtagheader('tbody', 'qrcode', $setting['wechat_mtype'] == 1); + showsetting(lang('plugin/wechat', 'wechat_qrcode'), 'wechat_qrcode', '', 'file', 0, 0, lang('plugin/wechat', 'wechat_qrcode_comment', array('qrcode' => $qrcode))); + showtagfooter('tbody'); + showtablefooter(); + + showtableheader(lang('plugin/wechat', 'wechat_func_setting')); + showsetting(lang('plugin/wechat', 'wechat_allowregister'), 'setting[wechat_allowregister]', $setting['wechat_allowregister'], 'radio', 0, 1, lang('plugin/wechat', 'wechat_allowregister_comment')); + showsetting(lang('plugin/wechat', 'wechat_allowfastregister'), 'setting[wechat_allowfastregister]', $setting['wechat_allowfastregister'], 'radio', 0, 0, lang('plugin/wechat', 'wechat_allowfastregister_comment')); + showsetting(lang('plugin/wechat', 'wechat_disableregrule'), 'setting[wechat_disableregrule]', $setting['wechat_disableregrule'], 'radio', 0, 0, lang('plugin/wechat', 'wechat_disableregrule_comment')); + showsetting(lang('plugin/wechat', 'wechat_confirmtype'), 'setting[wechat_confirmtype]', $setting['wechat_confirmtype'], 'radio', 0, 0, lang('plugin/wechat', 'wechat_confirmtype_comment')); + showsetting(lang('plugin/wechat', 'wechat_newusergroupid'), '', '', $usergroups, 0, 0, lang('plugin/wechat', 'wechat_newusergroupid_comment')); + showtagfooter('tbody'); + showsetting(lang('plugin/wechat', 'wechat_followurl'), 'setting[wechat_followurl]', $setting['wechat_followurl'], 'text', 0, 0, lang('plugin/wechat', 'wechat_followurl_comment')); + showtagfooter('tbody'); + + showtableheader(lang('plugin/wechat', 'wechat_service_setting')); + showsetting(lang('plugin/wechat', 'wechat_url'), '', '', ''.$apiurl.''); + showsetting(lang('plugin/wechat', 'wechat_token'), 'setting[wechat_token]', $setting['wechat_token'], 'text'); + showtablefooter(); + + showtableheader(lang('plugin/wechat', 'wechat_devid_setting')); + showsetting(lang('plugin/wechat', 'wechat_appId'), 'setting[wechat_appId]', $setting['wechat_appId'], 'text'); + showsetting(lang('plugin/wechat', 'wechat_appsecret'), 'setting[wechat_appsecret]', $setting['wechat_appsecret'], 'text'); + showtablefooter(); + + showtableheader(); + showsubmit('settingsubmit'); + showtablefooter(); + + showformfooter(); + +} else { + + if($_GET['setting']['wechat_mtype'] == 2 && !$_GET['setting']['wechat_appId']) { + cpmsg(lang('plugin/wechat', 'wechat_at_need'), '', 'error'); + } + + if($_GET['setting']['wechat_appId'] && $_GET['setting']['wechat_appsecret']) { + require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php'; + $wechat_client = new WeChatClient($_GET['setting']['wechat_appId'], $_GET['setting']['wechat_appsecret']); + if(!$wechat_client->getAccessToken(1, 1)) { + cpmsg(lang('plugin/wechat', 'wechat_at_geterror'), '', 'error'); + } + $option = array( + 'scene_id' => 100000, + 'expire' => 30, + 'ticketOnly' => 1 + ); + $ticket = $wechat_client->getQrcodeTicket($option); + if(!$wechat_client->getQrcodeImgUrlByTicket($ticket)) { + cpmsg(lang('plugin/wechat', 'wechat_at_qrgeterror'), '', 'error'); + } + } + + $_GET['setting']['wechat_qrtype'] = !$_GET['setting']['wechat_mtype'] ? 3 : 0; + $_GET['setting']['wechat_token'] = $_GET['setting']['wechat_token'] ? $_GET['setting']['wechat_token'] : random(16); + + if($_FILES['wechat_qrcode']['tmp_name']) { + $upload = new discuz_upload(); + if(!$upload->init($_FILES['wechat_qrcode'], 'common', random(3, 1), random(8)) || !$upload->save()) { + cpmsg($upload->errormessage(), '', 'error'); + } + $_GET['setting']['wechat_qrcode'] = $upload->attach['attachment']; + } + + if($_GET['setting']['wechat_followurl']) { + $_GET['setting']['wechat_followurl'] = (!preg_match('/^http:\/\//', $_GET['setting']['wechat_followurl']) ? 'http://' : '').$_GET['setting']['wechat_followurl']; + $parse = parse_url($_GET['setting']['wechat_followurl']); + if(!$parse['host'] || $parse['host'] != 'mp.weixin.qq.com') { + cpmsg(lang('plugin/wechat', 'wsq_followurl_error'), '', 'error'); + } + } + + if($setting['wsq_siteid']) { + $siteinfo = wsq::edit($setting['wsq_sitename'], + $setting['wsq_siteurl'], + $setting['wsq_sitelogo'], + $setting['wsq_sitesummary'], + $_GET['setting']['wechat_mtype'], + $_GET['setting']['wechat_qrtype'], + $setting['wsq_siteip'], + $_GET['setting']['wechat_followurl'], + $_GET['setting']['wechat_appId'], + $_GET['setting']['wechat_appsecret'], + $_GET['setting'] + $setting + ); + if(!$siteinfo || $siteinfo->code) { + cpmsg(lang('plugin/wechat', 'wsq_api_edit_error'), '', 'error'); + } + } + + $settings = array('mobilewechat' => serialize($_GET['setting'] + $setting)); + C::t('common_setting')->update_batch($settings); + updatecache('setting'); + + cpmsg('setting_update_succeed', 'action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wechat_setting', 'succeed'); +} + +function formathook($hook) { + return 'File: '.$hook['plugin'].'/'.$hook['include'].' Method: '.$hook['class'].'->'.$hook['method']; +} + ?> \ No newline at end of file diff --git a/source/plugin/wechat/wsq.class.php b/source/plugin/wechat/wsq.class.php index 5a96ef2..93203c6 100644 --- a/source/plugin/wechat/wsq.class.php +++ b/source/plugin/wechat/wsq.class.php @@ -1,308 +1,308 @@ - 600) { - return false; - } - - $code = $data['code']; - sort($data, SORT_STRING); - $data[] = $token; - $data = implode($data); - $tmpstr = sha1($data); - - if($tmpstr === $signature && empty($code)){ - return true; - } else { - return false; - } - } - - private static function _make_sign($data, $token) { - sort($data, SORT_STRING); - $data[] = $token; - $data = implode($data); - $tmpstr = sha1($data); - - return $tmpstr; - } - - private static function _convert($post) { - foreach($post as $k => $v) { - $post[$k] = diconv($v, CHARSET, 'UTF-8'); - } - return $post; - } - - private static function _setting() { - global $_G; - if(!self::$SETTING) { - self::$SETTING = unserialize($_G['setting']['mobilewechat']); - } - } - - private static function _token() { - self::_setting(); - return self::$SETTING['wsq_sitetoken']; - } - - private static function _siteid() { - self::_setting(); - return self::$SETTING['wsq_siteid']; - } - - public static function decodeauth($auth) { - global $_G; - list($uid, $tt, $siteid, $clientip) = explode("\t", authcode($auth, 'DECODE', self::_token())); - if($clientip) { - $_G['clientip'] = $clientip; - } - if($uid && $siteid == self::_siteid() && $tt > TIMESTAMP) { - return $uid; - } else { - return 0; - } - } - - public static function register($sitename, $siteurl, $sitelogo, $sitesummary, $mptype, $qrtype, $siteip, $followurl, $appid, $appsecret, $globalbanner, $setting) { - global $_G; - $get = array( - 'c' => 'site', - 'a' => 'register' - ); - $post = array( - 'sitename' => $sitename, - 'siteurl' => $siteurl, - 'sitelogo' => $sitelogo, - 'sitesummary' => $sitesummary, - 'mptype' => $mptype, - 'qrtype' => $qrtype, - 'siteuniqueid' => $_G['setting']['siteuniqueid'], - 'siteip' => $siteip, - 'followurl' => $followurl, - 'appid' => $appid, - 'appsecret' => $appsecret, - 'globalbanner' => $globalbanner, - 'setting' => serialize($setting), - 'tt' => TIMESTAMP, - ); - $post = self::_convert($post); - return self::_dfsockopen($get, $post); - } - - public static function info() { - global $_G; - $get = array( - 'c' => 'site', - 'a' => 'info', - 'siteid' => self::_siteid() - ); - return self::_dfsockopen($get); - } - - public static function qrconnectUrl($uid, $qrreferer) { - $get = array( - 'c' => 'site', - 'a' => 'qrconnect', - 'siteid' => self::_siteid(), - 'siteuid' => $uid, - 'qrreferer' => $qrreferer, - 'tt' => TIMESTAMP, - ); - $get['signature'] = self::_make_sign($get, self::_token()); - return self::$API_URL.http_build_query($get); - } - - public static function userregisterUrl($uid, $openid, $openidSign, $qrreferer) { - $get = array( - 'c' => 'site', - 'a' => 'userregister', - 'siteid' => self::_siteid(), - 'siteuid' => $uid, - 'openid' => $openid, - 'openidsign' => $openidSign, - 'qrreferer' => $qrreferer, - 'tt' => TIMESTAMP, - ); - $get['signature'] = self::_make_sign($get, self::_token()); - return self::$API_URL.http_build_query($get); - } - - public static function wxuserregisterUrl($uid) { - $get = array( - 'c' => 'site', - 'a' => 'wxuserregister', - 'siteid' => self::_siteid(), - 'siteuid' => $uid, - 'tt' => TIMESTAMP, - 'mobile' => 2, - 'qrreferer' => $_GET['referer'], - ); - $get['signature'] = self::_make_sign($get, self::_token()); - return self::$API_URL.http_build_query($get); - } - - public static function userloginUrl($uid, $openid, $openidSign) { - $get = array( - 'c' => 'site', - 'a' => 'userregister', - 'siteid' => self::_siteid(), - 'siteuid' => $uid, - 'openid' => $openid, - 'openidsign' => $openidSign, - 'type' => 'json', - 'tt' => TIMESTAMP, - ); - $get['signature'] = self::_make_sign($get, self::_token()); - return self::$API_URL.http_build_query($get); - } - - public static function userloginUrl2($uid) { - $get = array( - 'c' => 'site', - 'a' => 'waplogin', - 'siteid' => self::_siteid(), - 'siteuid' => $uid, - 'type' => 'json', - 'tt' => TIMESTAMP, - ); - $get['signature'] = self::_make_sign($get, self::_token()); - return self::$API_URL.http_build_query($get); - } - - public static function userunbind($uid, $openid) { - $get = array( - 'c' => 'site', - 'a' => 'userunbind', - 'siteid' => self::_siteid(), - 'tt' => TIMESTAMP, - ); - $post = array( - 'openid' => $openid, - 'siteuid' => $uid, - ); - $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); - $return = self::_dfsockopen($get, $post); - return !$return->code; - } - - public static function edit($sitename, $siteurl, $sitelogo, $sitesummary, $mptype, $qrtype, $siteip, $followurl, $appid, $appsecret, $globalbanner, $setting) { - global $_G; - $get = array( - 'c' => 'site', - 'a' => 'edit', - 'siteid' => self::_siteid(), - ); - $post = array( - 'sitename' => $sitename, - 'siteurl' => $siteurl, - 'sitelogo' => $sitelogo, - 'sitesummary' => $sitesummary, - 'mptype' => $mptype, - 'qrtype' => $qrtype, - 'siteuniqueid' => $_G['setting']['siteuniqueid'], - 'siteip' => $siteip, - 'followurl' => $followurl, - 'appid' => $appid, - 'appsecret' => $appsecret, - 'globalbanner' => $globalbanner, - 'setting' => serialize($setting), - 'tt' => TIMESTAMP, - ); - $post = self::_convert($post); - $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); - return self::_dfsockopen($get, $post); - } - - public static function recheck() { - $get = array( - 'c' => 'site', - 'a' => 'recheck', - 'siteid' => self::_siteid(), - ); - $post = array(); - $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); - return self::_dfsockopen($get, $post); - } - - public static function report($action) { - global $_G; - $get = array( - 'c' => 'report', - 'a' => $action, - 'siteid' => self::_siteid(), - ); - $post = array( - 'uid' => $_G['uid'], - 'userip' => $_G['clientip'] - ); - $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); - return self::_dfsockopen($get, $post); - } - - public static function check($param) { - if(self::_check_sign($param, self::_token())) { - return $param['echostr']; - } - return; - } - - public static function checksign($param) { - return self::_check_sign($param, self::_token()); - } - - public static function siteinfo() { - self::_setting(); - return array( - 'siteInfo' => array( - 'sName' => self::$SETTING['wsq_sitename'], - 'sDesc' => self::$SETTING['wsq_sitesummary'], - 'sLogo' => self::$SETTING['wsq_sitelogo'], - ) - ); - } - - public static function stat() { - self::_setting(); - $get = array( - 'c' => 'site', - 'a' => 'stat', - 'siteid' => self::_siteid(), - ); - $post = array(); - $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); - return self::_dfsockopen($get, $post); - } - -} - + 600) { + return false; + } + + $code = $data['code']; + sort($data, SORT_STRING); + $data[] = $token; + $data = implode($data); + $tmpstr = sha1($data); + + if($tmpstr === $signature && empty($code)){ + return true; + } else { + return false; + } + } + + private static function _make_sign($data, $token) { + sort($data, SORT_STRING); + $data[] = $token; + $data = implode($data); + $tmpstr = sha1($data); + + return $tmpstr; + } + + private static function _convert($post) { + foreach($post as $k => $v) { + $post[$k] = diconv($v, CHARSET, 'UTF-8'); + } + return $post; + } + + private static function _setting() { + global $_G; + if(!self::$SETTING) { + self::$SETTING = unserialize($_G['setting']['mobilewechat']); + } + } + + private static function _token() { + self::_setting(); + return self::$SETTING['wsq_sitetoken']; + } + + private static function _siteid() { + self::_setting(); + return self::$SETTING['wsq_siteid']; + } + + public static function decodeauth($auth) { + global $_G; + list($uid, $tt, $siteid, $clientip) = explode("\t", authcode($auth, 'DECODE', self::_token())); + if($clientip) { + $_G['clientip'] = $clientip; + } + if($uid && $siteid == self::_siteid() && $tt > TIMESTAMP) { + return $uid; + } else { + return 0; + } + } + + public static function register($sitename, $siteurl, $sitelogo, $sitesummary, $mptype, $qrtype, $siteip, $followurl, $appid, $appsecret, $globalbanner, $setting) { + global $_G; + $get = array( + 'c' => 'site', + 'a' => 'register' + ); + $post = array( + 'sitename' => $sitename, + 'siteurl' => $siteurl, + 'sitelogo' => $sitelogo, + 'sitesummary' => $sitesummary, + 'mptype' => $mptype, + 'qrtype' => $qrtype, + 'siteuniqueid' => $_G['setting']['siteuniqueid'], + 'siteip' => $siteip, + 'followurl' => $followurl, + 'appid' => $appid, + 'appsecret' => $appsecret, + 'globalbanner' => $globalbanner, + 'setting' => serialize($setting), + 'tt' => TIMESTAMP, + ); + $post = self::_convert($post); + return self::_dfsockopen($get, $post); + } + + public static function info() { + global $_G; + $get = array( + 'c' => 'site', + 'a' => 'info', + 'siteid' => self::_siteid() + ); + return self::_dfsockopen($get); + } + + public static function qrconnectUrl($uid, $qrreferer) { + $get = array( + 'c' => 'site', + 'a' => 'qrconnect', + 'siteid' => self::_siteid(), + 'siteuid' => $uid, + 'qrreferer' => $qrreferer, + 'tt' => TIMESTAMP, + ); + $get['signature'] = self::_make_sign($get, self::_token()); + return self::$API_URL.http_build_query($get); + } + + public static function userregisterUrl($uid, $openid, $openidSign, $qrreferer) { + $get = array( + 'c' => 'site', + 'a' => 'userregister', + 'siteid' => self::_siteid(), + 'siteuid' => $uid, + 'openid' => $openid, + 'openidsign' => $openidSign, + 'qrreferer' => $qrreferer, + 'tt' => TIMESTAMP, + ); + $get['signature'] = self::_make_sign($get, self::_token()); + return self::$API_URL.http_build_query($get); + } + + public static function wxuserregisterUrl($uid) { + $get = array( + 'c' => 'site', + 'a' => 'wxuserregister', + 'siteid' => self::_siteid(), + 'siteuid' => $uid, + 'tt' => TIMESTAMP, + 'mobile' => 2, + 'qrreferer' => $_GET['referer'], + ); + $get['signature'] = self::_make_sign($get, self::_token()); + return self::$API_URL.http_build_query($get); + } + + public static function userloginUrl($uid, $openid, $openidSign) { + $get = array( + 'c' => 'site', + 'a' => 'userregister', + 'siteid' => self::_siteid(), + 'siteuid' => $uid, + 'openid' => $openid, + 'openidsign' => $openidSign, + 'type' => 'json', + 'tt' => TIMESTAMP, + ); + $get['signature'] = self::_make_sign($get, self::_token()); + return self::$API_URL.http_build_query($get); + } + + public static function userloginUrl2($uid) { + $get = array( + 'c' => 'site', + 'a' => 'waplogin', + 'siteid' => self::_siteid(), + 'siteuid' => $uid, + 'type' => 'json', + 'tt' => TIMESTAMP, + ); + $get['signature'] = self::_make_sign($get, self::_token()); + return self::$API_URL.http_build_query($get); + } + + public static function userunbind($uid, $openid) { + $get = array( + 'c' => 'site', + 'a' => 'userunbind', + 'siteid' => self::_siteid(), + 'tt' => TIMESTAMP, + ); + $post = array( + 'openid' => $openid, + 'siteuid' => $uid, + ); + $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); + $return = self::_dfsockopen($get, $post); + return !$return->code; + } + + public static function edit($sitename, $siteurl, $sitelogo, $sitesummary, $mptype, $qrtype, $siteip, $followurl, $appid, $appsecret, $globalbanner, $setting) { + global $_G; + $get = array( + 'c' => 'site', + 'a' => 'edit', + 'siteid' => self::_siteid(), + ); + $post = array( + 'sitename' => $sitename, + 'siteurl' => $siteurl, + 'sitelogo' => $sitelogo, + 'sitesummary' => $sitesummary, + 'mptype' => $mptype, + 'qrtype' => $qrtype, + 'siteuniqueid' => $_G['setting']['siteuniqueid'], + 'siteip' => $siteip, + 'followurl' => $followurl, + 'appid' => $appid, + 'appsecret' => $appsecret, + 'globalbanner' => $globalbanner, + 'setting' => serialize($setting), + 'tt' => TIMESTAMP, + ); + $post = self::_convert($post); + $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); + return self::_dfsockopen($get, $post); + } + + public static function recheck() { + $get = array( + 'c' => 'site', + 'a' => 'recheck', + 'siteid' => self::_siteid(), + ); + $post = array(); + $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); + return self::_dfsockopen($get, $post); + } + + public static function report($action) { + global $_G; + $get = array( + 'c' => 'report', + 'a' => $action, + 'siteid' => self::_siteid(), + ); + $post = array( + 'uid' => $_G['uid'], + 'userip' => $_G['clientip'] + ); + $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); + return self::_dfsockopen($get, $post); + } + + public static function check($param) { + if(self::_check_sign($param, self::_token())) { + return $param['echostr']; + } + return; + } + + public static function checksign($param) { + return self::_check_sign($param, self::_token()); + } + + public static function siteinfo() { + self::_setting(); + return array( + 'siteInfo' => array( + 'sName' => self::$SETTING['wsq_sitename'], + 'sDesc' => self::$SETTING['wsq_sitesummary'], + 'sLogo' => self::$SETTING['wsq_sitelogo'], + ) + ); + } + + public static function stat() { + self::_setting(); + $get = array( + 'c' => 'site', + 'a' => 'stat', + 'siteid' => self::_siteid(), + ); + $post = array(); + $post['signature'] = self::_make_sign(array_merge($get, $post), self::_token()); + return self::_dfsockopen($get, $post); + } + +} + ?> \ No newline at end of file diff --git a/source/plugin/wechat/wsq_app.inc.php b/source/plugin/wechat/wsq_app.inc.php index ca9d2c8..2ba6fa3 100644 --- a/source/plugin/wechat/wsq_app.inc.php +++ b/source/plugin/wechat/wsq_app.inc.php @@ -1,52 +1,52 @@ -fetch_all(array('mobilewechat')); -$setting = (array)unserialize($setting['mobilewechat']); - -require_once DISCUZ_ROOT.'./source/plugin/wechat/wechat.lib.class.php'; -require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; -require_once DISCUZ_ROOT.'./source/plugin/wechat/setting.class.php'; -WeChatSetting::menu(); - -showtableheader(lang('plugin/wechat', 'wsq_viewapp_pubevent')); -echo ''.lang('plugin/wechat', 'wsq_viewapp_na').''; -showtablefooter(); - -showtableheader(lang('plugin/wechat', 'wsq_viewapp_local')); -echo ''.lang('plugin/wechat', 'wsq_viewapp_local_comment').''; -showtablefooter(); - -showtableheader(lang('plugin/wechat', 'wsq_viewapp_online')); -echo ''.lang('plugin/wechat', 'wsq_viewapp_online_comment').''; -showtablefooter(); - -if($setting['wsq_siteid']) { - $time = TIMESTAMP; - -echo << -function pubEventCallback(re) { - if(re.errCode) { - return; - } - if(typeof re.data.event.peId != 'undefined') { - $('pubevent').innerHTML = '

    ' + re.data.event.peTitle + '

    ' + re.data.event.peContent; - } -} - - -EOF; - +fetch_all(array('mobilewechat')); +$setting = (array)unserialize($setting['mobilewechat']); + +require_once DISCUZ_ROOT.'./source/plugin/wechat/wechat.lib.class.php'; +require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; +require_once DISCUZ_ROOT.'./source/plugin/wechat/setting.class.php'; +WeChatSetting::menu(); + +showtableheader(lang('plugin/wechat', 'wsq_viewapp_pubevent')); +echo ''.lang('plugin/wechat', 'wsq_viewapp_na').''; +showtablefooter(); + +showtableheader(lang('plugin/wechat', 'wsq_viewapp_local')); +echo ''.lang('plugin/wechat', 'wsq_viewapp_local_comment').''; +showtablefooter(); + +showtableheader(lang('plugin/wechat', 'wsq_viewapp_online')); +echo ''.lang('plugin/wechat', 'wsq_viewapp_online_comment').''; +showtablefooter(); + +if($setting['wsq_siteid']) { + $time = TIMESTAMP; + +echo << +function pubEventCallback(re) { + if(re.errCode) { + return; + } + if(typeof re.data.event.peId != 'undefined') { + $('pubevent').innerHTML = '

    ' + re.data.event.peTitle + '

    ' + re.data.event.peContent; + } +} + + +EOF; + } \ No newline at end of file diff --git a/source/plugin/wechat/wsq_setting.inc.php b/source/plugin/wechat/wsq_setting.inc.php index 6649a88..16ff167 100644 --- a/source/plugin/wechat/wsq_setting.inc.php +++ b/source/plugin/wechat/wsq_setting.inc.php @@ -1,228 +1,228 @@ -fetch_all(array('mobilewechat', 'mobile')); -$mobilesetting = (array)unserialize($setting['mobile']); -$setting = (array)unserialize($setting['mobilewechat']); - -require_once DISCUZ_ROOT.'./source/plugin/wechat/wechat.lib.class.php'; -require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; -require_once DISCUZ_ROOT.'./source/plugin/wechat/setting.class.php'; -WeChatSetting::menu(); - -if(!empty($_GET['recheck'])) { - wsq::recheck(); - $siteinfo = wsq::info(); - $setting['wsq_status'] = $siteinfo->res->status; - $setting['wsq_lastrequest'] = $siteinfo->res->lasttime; - $settings = array('mobilewechat' => serialize($setting)); - C::t('common_setting')->update_batch($settings); -} - -if(!submitcheck('settingsubmit')) { - - if($setting['wsq_siteid']) { - if(in_array('plugin', $_G['setting']['rewritestatus'])) { - $url = $_G['siteurl'].rewriteoutput('plugin', 1, 'wechat', 'access'); - } else { - $url = $_G['siteurl'].'plugin.php?id=wechat:access'; - } - } - - $apilisturl = ADMINSCRIPT.'?action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wsq_setting&viewapi=yes'; - - $setting['wsq_siteurl'] = $setting['wsq_siteurl'] ? $setting['wsq_siteurl'] : $_G['siteurl']; - $setting['wsq_sitename'] = $setting['wsq_sitename'] ? $setting['wsq_sitename'] : $_G['setting']['bbname']; - - require_once libfile('function/forumlist'); - $forums = ''; - - $sitelogo = $setting['wsq_sitelogo'] ? '' : ''; - $qrcode = $setting['wechat_qrcode'] ? '' : ''; - - $apicredits = ''; - foreach($_G['setting']['extcredits'] as $i => $credit) { - $extcredit = 'extcredits'.$i.' ('.$credit['title'].')'; - $apicredits .= ''; - } - - $setting['wechat_forumdisplay_reply'] = isset($setting['wechat_forumdisplay_reply']) ? $setting['wechat_forumdisplay_reply'] : 1; - - showtips(lang('plugin/wechat', 'wsq_tips', array('ADMINSCRIPT' => ADMINSCRIPT.'?action=', 'apiurl' => $apilisturl))); - showformheader('plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wsq_setting', 'enctype'); - - showtableheader(lang('plugin/wechat', 'wechat_wsq_setting').' '.($setting['wsq_status'] ? ' ('.lang('plugin/wechat', 'wsq_status_open').')' : ($setting['wsq_siteid'] ? ' ('.lang('plugin/wechat', 'wsq_status_ing').(TIMESTAMP - $setting['wsq_lastrequest'] > 3600 ? ' ['.lang('plugin/wechat', 'wsq_status_try').'])' : ')') : ' ('.lang('plugin/wechat', 'wsq_status_close').')'))); - - showsetting(lang('plugin/wechat', 'wsq_allow'), 'setting[wsq_allow]', $setting['wsq_allow'], 'radio', 0, 0, lang('plugin/wechat', 'wsq_allow_comment')); - if($setting['wsq_allow'] && $setting['wsq_siteid']) { - showtablefooter(); - showtableheader(); - showsetting(lang('plugin/wechat', 'wsq_url'), '', '', ''.$url.''); - showtablefooter(); - showtableheader(); - showsetting(lang('plugin/wechat', 'wsq_siteid'), '', '', $setting['wsq_siteid']); - showsetting(lang('plugin/wechat', 'wsq_sitetoken'), '', '', $setting['wsq_sitetoken']); - } - showsetting(lang('plugin/wechat', 'wsq_sitename'), 'setting[wsq_sitename]', $setting['wsq_sitename'], 'text'); - showsetting(lang('plugin/wechat', 'wsq_sitelogo'), 'wsq_sitelogo', $setting['wsq_sitelogo'], 'file', 0, 0, lang('plugin/wechat', 'wsq_sitelogo_comment', array('sitelogo' => $sitelogo))); - showsetting(lang('plugin/wechat', 'wsq_sitesummary'), 'setting[wsq_sitesummary]', $setting['wsq_sitesummary'], 'textarea'); - showsetting(lang('plugin/wechat', 'wsq_siteurl'), 'setting[wsq_siteurl]', $setting['wsq_siteurl'], 'text', 0, 0, lang('plugin/wechat', 'wsq_siteurl_comment')); - showsetting(lang('plugin/wechat', 'wsq_siteip'), 'setting[wsq_siteip]', $setting['wsq_siteip'], 'text', 0, 0, lang('plugin/wechat', 'wsq_siteip_comment')); - showsetting(lang('plugin/wechat', 'wsq_fid'), '', '', $forums, 0, 0, lang('plugin/wechat', 'wsq_fid_comment')); - if(!empty($_G['setting']['domain']['root']['forum'])) { - showsetting(lang('plugin/wechat', 'wsq_domain'), '', '', 'http://.'.$_G['setting']['domain']['root']['forum'], !function_exists('domain_create'), 0, lang('plugin/wechat', 'wsq_domain_comment')); - } else { - showsetting(lang('plugin/wechat', 'wsq_domain'), 'setting[wsq_domain]', '', 'text', 1, 0, lang('plugin/wechat', 'wsq_domain_comment')); - } - showsetting(lang('plugin/wechat', 'wechat_forumdisplay_reply'), 'setting[wechat_forumdisplay_reply]', $setting['wechat_forumdisplay_reply'], 'radio'); - showsetting(lang('plugin/wechat', 'wechat_float_qrcode'), 'setting[wechat_float_qrcode]', $setting['wechat_float_qrcode'], 'radio', 0, 1); - showsetting(lang('plugin/wechat', 'wechat_float_text'), 'setting[wechat_float_text]', $setting['wechat_float_text'], 'text'); - showtagfooter('tbody'); - showsetting(lang('plugin/wechat', 'wsq_wapdefault'), 'setting[wsq_wapdefault]', $setting['wsq_wapdefault'], 'radio'); - showsetting(lang('plugin/wechat', 'wsq_apicredit'), '', '', '', 0, 0, lang('plugin/wechat', 'wsq_apicredit_comment')); - showsubmit('settingsubmit'); - showtablefooter(); - - showformfooter(); - -} else { - - if($_FILES['wsq_sitelogo']['tmp_name']) { - $upload = new discuz_upload(); - if(!$upload->init($_FILES['wsq_sitelogo'], 'common', random(3, 1), random(8)) || !$upload->save()) { - cpmsg($upload->errormessage(), '', 'error'); - } - $parsev = parse_url($_G['setting']['attachurl']); - $_GET['setting']['wsq_sitelogo'] = ($parsev['host'] ? '' : $_G['siteurl']).$_G['setting']['attachurl'].'common/'.$upload->attach['attachment']; - } else { - $_GET['setting']['wsq_sitelogo'] = $setting['wsq_sitelogo']; - } - - if(!$_GET['setting']['wsq_fid']) { - cpmsg(lang('plugin/wechat', 'wsq_fid_empty'), '', 'error'); - } - - if(!$setting['wsq_sitetoken']) { - $siteinfo = wsq::register( - $_GET['setting']['wsq_sitename'], - $_GET['setting']['wsq_siteurl'], - $_GET['setting']['wsq_sitelogo'], - $_GET['setting']['wsq_sitesummary'], - $setting['wechat_mtype'], - $setting['wechat_qrtype'], - $_GET['setting']['wsq_siteip'], - $setting['wechat_followurl'], - $setting['wechat_appId'], - $setting['wechat_appsecret'], - $_GET['setting']['wsq_global_banner'], - $_GET['setting'] + $setting - ); - if(!$siteinfo || $siteinfo->code) { - if($siteinfo->code == 14) { - cpmsg(lang('plugin/wechat', 'wsq_api_servertime_error', '', 'error')); - } - cpmsg(lang('plugin/wechat', 'wsq_api_register_error'), '', 'error'); - } - $_GET['setting']['wsq_siteid'] = $siteinfo->res->siteid; - $_GET['setting']['wsq_sitetoken'] = $siteinfo->res->token; - } else { - $siteinfo = wsq::edit( - $_GET['setting']['wsq_sitename'], - $_GET['setting']['wsq_siteurl'], - $_GET['setting']['wsq_sitelogo'], - $_GET['setting']['wsq_sitesummary'], - $setting['wechat_mtype'], - $setting['wechat_qrtype'], - $_GET['setting']['wsq_siteip'], - $setting['wechat_followurl'], - $setting['wechat_appId'], - $setting['wechat_appsecret'], - $_GET['setting']['wsq_global_banner'], - $_GET['setting'] + $setting - ); - if(!$siteinfo || $siteinfo->code) { - if($siteinfo->code == 14) { - cpmsg(lang('plugin/wechat', 'wsq_api_servertime_error', '', 'error')); - } - cpmsg(lang('plugin/wechat', 'wsq_api_edit_error'), '', 'error'); - } - } - - if(function_exists('domain_create')) { - if(preg_match('/^((http|https|ftp):\/\/|\.)|(\/|\.)$/i', $_GET['setting']['wsq_domain'])) { - cpmsg('setting_domain_http_error', '', 'error'); - } - } - - $_GET['setting']['wsq_status'] = $siteinfo->res->status; - $_GET['setting']['wsq_lastrequest'] = $siteinfo->res->lasttime; - $settings = array('mobilewechat' => serialize($_GET['setting'] + $setting)); - if(!$mobilesetting['allowmobile']) { - $mobilesetting['allowmobile'] = 1; - $settings['mobile'] = serialize($mobilesetting); - } - C::t('common_setting')->update_batch($settings); - - updatecache('setting'); - - if($_GET['setting']['wsq_allow']) { - WeChatHook::updateResponse(array( - 'receiveMsg::text' => array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'text'), - 'receiveEvent::click' => array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'click'), - 'receiveEvent::subscribe' => array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'subscribe'), - 'receiveEvent::scan' => array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'scan'), - )); - WeChatHook::updateRedirect(array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'redirect')); - WeChatHook::updateAPIHook(array( - array('forumdisplay_variables' => array('plugin' => 'wechat', 'include' => 'wsqapi.class.php', 'class' => 'WSQAPI', 'method' => 'forumdisplay_variables')), - array('viewthread_variables' => array('plugin' => 'wechat', 'include' => 'wsqapi.class.php', 'class' => 'WSQAPI', 'method' => 'viewthread_variables')), - )); - WeChatHook::updateViewPluginId('wechat'); - if(!in_array('mobile', $_G['setting']['plugins']['available'])) { - $plugin = C::t('common_plugin')->fetch_by_identifier('mobile'); - if(!$plugin) { - cpmsg(lang('plugin/wechat', 'wsq_mobile_plugin_error'), '', 'error'); - } - C::t('common_plugin')->update($plugin['pluginid'], array('available' => 1)); - updatecache(array('plugin', 'setting')); - } - } else { - $wechatredirect = WeChatHook::getRedirect(); - if($wechatredirect['plugin'] == 'wechat') { - $wechatredirect = array(); - } - WeChatHook::updateRedirect($wechatredirect); - WeChatHook::updateViewPluginId(''); - } - - if(function_exists('domain_create') && $_G['setting']['domain']['root']['forum']) { - if($_GET['setting']['wsq_domain']) { - domain_create('wechat', $_GET['setting']['wsq_domain'], $_G['setting']['domain']['root']['forum']); - } else { - domain_delete('wechat'); - } - } - - cpmsg('setting_update_succeed', 'action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wsq_setting', 'succeed'); -} - +fetch_all(array('mobilewechat', 'mobile')); +$mobilesetting = (array)unserialize($setting['mobile']); +$setting = (array)unserialize($setting['mobilewechat']); + +require_once DISCUZ_ROOT.'./source/plugin/wechat/wechat.lib.class.php'; +require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php'; +require_once DISCUZ_ROOT.'./source/plugin/wechat/setting.class.php'; +WeChatSetting::menu(); + +if(!empty($_GET['recheck'])) { + wsq::recheck(); + $siteinfo = wsq::info(); + $setting['wsq_status'] = $siteinfo->res->status; + $setting['wsq_lastrequest'] = $siteinfo->res->lasttime; + $settings = array('mobilewechat' => serialize($setting)); + C::t('common_setting')->update_batch($settings); +} + +if(!submitcheck('settingsubmit')) { + + if($setting['wsq_siteid']) { + if(in_array('plugin', $_G['setting']['rewritestatus'])) { + $url = $_G['siteurl'].rewriteoutput('plugin', 1, 'wechat', 'access'); + } else { + $url = $_G['siteurl'].'plugin.php?id=wechat:access'; + } + } + + $apilisturl = ADMINSCRIPT.'?action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wsq_setting&viewapi=yes'; + + $setting['wsq_siteurl'] = $setting['wsq_siteurl'] ? $setting['wsq_siteurl'] : $_G['siteurl']; + $setting['wsq_sitename'] = $setting['wsq_sitename'] ? $setting['wsq_sitename'] : $_G['setting']['bbname']; + + require_once libfile('function/forumlist'); + $forums = ''; + + $sitelogo = $setting['wsq_sitelogo'] ? '' : ''; + $qrcode = $setting['wechat_qrcode'] ? '' : ''; + + $apicredits = ''; + foreach($_G['setting']['extcredits'] as $i => $credit) { + $extcredit = 'extcredits'.$i.' ('.$credit['title'].')'; + $apicredits .= ''; + } + + $setting['wechat_forumdisplay_reply'] = isset($setting['wechat_forumdisplay_reply']) ? $setting['wechat_forumdisplay_reply'] : 1; + + showtips(lang('plugin/wechat', 'wsq_tips', array('ADMINSCRIPT' => ADMINSCRIPT.'?action=', 'apiurl' => $apilisturl))); + showformheader('plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wsq_setting', 'enctype'); + + showtableheader(lang('plugin/wechat', 'wechat_wsq_setting').' '.($setting['wsq_status'] ? ' ('.lang('plugin/wechat', 'wsq_status_open').')' : ($setting['wsq_siteid'] ? ' ('.lang('plugin/wechat', 'wsq_status_ing').(TIMESTAMP - $setting['wsq_lastrequest'] > 3600 ? ' ['.lang('plugin/wechat', 'wsq_status_try').'])' : ')') : ' ('.lang('plugin/wechat', 'wsq_status_close').')'))); + + showsetting(lang('plugin/wechat', 'wsq_allow'), 'setting[wsq_allow]', $setting['wsq_allow'], 'radio', 0, 0, lang('plugin/wechat', 'wsq_allow_comment')); + if($setting['wsq_allow'] && $setting['wsq_siteid']) { + showtablefooter(); + showtableheader(); + showsetting(lang('plugin/wechat', 'wsq_url'), '', '', ''.$url.''); + showtablefooter(); + showtableheader(); + showsetting(lang('plugin/wechat', 'wsq_siteid'), '', '', $setting['wsq_siteid']); + showsetting(lang('plugin/wechat', 'wsq_sitetoken'), '', '', $setting['wsq_sitetoken']); + } + showsetting(lang('plugin/wechat', 'wsq_sitename'), 'setting[wsq_sitename]', $setting['wsq_sitename'], 'text'); + showsetting(lang('plugin/wechat', 'wsq_sitelogo'), 'wsq_sitelogo', $setting['wsq_sitelogo'], 'file', 0, 0, lang('plugin/wechat', 'wsq_sitelogo_comment', array('sitelogo' => $sitelogo))); + showsetting(lang('plugin/wechat', 'wsq_sitesummary'), 'setting[wsq_sitesummary]', $setting['wsq_sitesummary'], 'textarea'); + showsetting(lang('plugin/wechat', 'wsq_siteurl'), 'setting[wsq_siteurl]', $setting['wsq_siteurl'], 'text', 0, 0, lang('plugin/wechat', 'wsq_siteurl_comment')); + showsetting(lang('plugin/wechat', 'wsq_siteip'), 'setting[wsq_siteip]', $setting['wsq_siteip'], 'text', 0, 0, lang('plugin/wechat', 'wsq_siteip_comment')); + showsetting(lang('plugin/wechat', 'wsq_fid'), '', '', $forums, 0, 0, lang('plugin/wechat', 'wsq_fid_comment')); + if(!empty($_G['setting']['domain']['root']['forum'])) { + showsetting(lang('plugin/wechat', 'wsq_domain'), '', '', 'http://.'.$_G['setting']['domain']['root']['forum'], !function_exists('domain_create'), 0, lang('plugin/wechat', 'wsq_domain_comment')); + } else { + showsetting(lang('plugin/wechat', 'wsq_domain'), 'setting[wsq_domain]', '', 'text', 1, 0, lang('plugin/wechat', 'wsq_domain_comment')); + } + showsetting(lang('plugin/wechat', 'wechat_forumdisplay_reply'), 'setting[wechat_forumdisplay_reply]', $setting['wechat_forumdisplay_reply'], 'radio'); + showsetting(lang('plugin/wechat', 'wechat_float_qrcode'), 'setting[wechat_float_qrcode]', $setting['wechat_float_qrcode'], 'radio', 0, 1); + showsetting(lang('plugin/wechat', 'wechat_float_text'), 'setting[wechat_float_text]', $setting['wechat_float_text'], 'text'); + showtagfooter('tbody'); + showsetting(lang('plugin/wechat', 'wsq_wapdefault'), 'setting[wsq_wapdefault]', $setting['wsq_wapdefault'], 'radio'); + showsetting(lang('plugin/wechat', 'wsq_apicredit'), '', '', '', 0, 0, lang('plugin/wechat', 'wsq_apicredit_comment')); + showsubmit('settingsubmit'); + showtablefooter(); + + showformfooter(); + +} else { + + if($_FILES['wsq_sitelogo']['tmp_name']) { + $upload = new discuz_upload(); + if(!$upload->init($_FILES['wsq_sitelogo'], 'common', random(3, 1), random(8)) || !$upload->save()) { + cpmsg($upload->errormessage(), '', 'error'); + } + $parsev = parse_url($_G['setting']['attachurl']); + $_GET['setting']['wsq_sitelogo'] = ($parsev['host'] ? '' : $_G['siteurl']).$_G['setting']['attachurl'].'common/'.$upload->attach['attachment']; + } else { + $_GET['setting']['wsq_sitelogo'] = $setting['wsq_sitelogo']; + } + + if(!$_GET['setting']['wsq_fid']) { + cpmsg(lang('plugin/wechat', 'wsq_fid_empty'), '', 'error'); + } + + if(!$setting['wsq_sitetoken']) { + $siteinfo = wsq::register( + $_GET['setting']['wsq_sitename'], + $_GET['setting']['wsq_siteurl'], + $_GET['setting']['wsq_sitelogo'], + $_GET['setting']['wsq_sitesummary'], + $setting['wechat_mtype'], + $setting['wechat_qrtype'], + $_GET['setting']['wsq_siteip'], + $setting['wechat_followurl'], + $setting['wechat_appId'], + $setting['wechat_appsecret'], + $_GET['setting']['wsq_global_banner'], + $_GET['setting'] + $setting + ); + if(!$siteinfo || $siteinfo->code) { + if($siteinfo->code == 14) { + cpmsg(lang('plugin/wechat', 'wsq_api_servertime_error', '', 'error')); + } + cpmsg(lang('plugin/wechat', 'wsq_api_register_error'), '', 'error'); + } + $_GET['setting']['wsq_siteid'] = $siteinfo->res->siteid; + $_GET['setting']['wsq_sitetoken'] = $siteinfo->res->token; + } else { + $siteinfo = wsq::edit( + $_GET['setting']['wsq_sitename'], + $_GET['setting']['wsq_siteurl'], + $_GET['setting']['wsq_sitelogo'], + $_GET['setting']['wsq_sitesummary'], + $setting['wechat_mtype'], + $setting['wechat_qrtype'], + $_GET['setting']['wsq_siteip'], + $setting['wechat_followurl'], + $setting['wechat_appId'], + $setting['wechat_appsecret'], + $_GET['setting']['wsq_global_banner'], + $_GET['setting'] + $setting + ); + if(!$siteinfo || $siteinfo->code) { + if($siteinfo->code == 14) { + cpmsg(lang('plugin/wechat', 'wsq_api_servertime_error', '', 'error')); + } + cpmsg(lang('plugin/wechat', 'wsq_api_edit_error'), '', 'error'); + } + } + + if(function_exists('domain_create')) { + if(preg_match('/^((http|https|ftp):\/\/|\.)|(\/|\.)$/i', $_GET['setting']['wsq_domain'])) { + cpmsg('setting_domain_http_error', '', 'error'); + } + } + + $_GET['setting']['wsq_status'] = $siteinfo->res->status; + $_GET['setting']['wsq_lastrequest'] = $siteinfo->res->lasttime; + $settings = array('mobilewechat' => serialize($_GET['setting'] + $setting)); + if(!$mobilesetting['allowmobile']) { + $mobilesetting['allowmobile'] = 1; + $settings['mobile'] = serialize($mobilesetting); + } + C::t('common_setting')->update_batch($settings); + + updatecache('setting'); + + if($_GET['setting']['wsq_allow']) { + WeChatHook::updateResponse(array( + 'receiveMsg::text' => array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'text'), + 'receiveEvent::click' => array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'click'), + 'receiveEvent::subscribe' => array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'subscribe'), + 'receiveEvent::scan' => array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'scan'), + )); + WeChatHook::updateRedirect(array('plugin' => 'wechat', 'include' => 'response.class.php', 'class' => 'WSQResponse', 'method' => 'redirect')); + WeChatHook::updateAPIHook(array( + array('forumdisplay_variables' => array('plugin' => 'wechat', 'include' => 'wsqapi.class.php', 'class' => 'WSQAPI', 'method' => 'forumdisplay_variables')), + array('viewthread_variables' => array('plugin' => 'wechat', 'include' => 'wsqapi.class.php', 'class' => 'WSQAPI', 'method' => 'viewthread_variables')), + )); + WeChatHook::updateViewPluginId('wechat'); + if(!in_array('mobile', $_G['setting']['plugins']['available'])) { + $plugin = C::t('common_plugin')->fetch_by_identifier('mobile'); + if(!$plugin) { + cpmsg(lang('plugin/wechat', 'wsq_mobile_plugin_error'), '', 'error'); + } + C::t('common_plugin')->update($plugin['pluginid'], array('available' => 1)); + updatecache(array('plugin', 'setting')); + } + } else { + $wechatredirect = WeChatHook::getRedirect(); + if($wechatredirect['plugin'] == 'wechat') { + $wechatredirect = array(); + } + WeChatHook::updateRedirect($wechatredirect); + WeChatHook::updateViewPluginId(''); + } + + if(function_exists('domain_create') && $_G['setting']['domain']['root']['forum']) { + if($_GET['setting']['wsq_domain']) { + domain_create('wechat', $_GET['setting']['wsq_domain'], $_G['setting']['domain']['root']['forum']); + } else { + domain_delete('wechat'); + } + } + + cpmsg('setting_update_succeed', 'action=plugins&operation=config&do='.$pluginid.'&identifier=wechat&pmod=wsq_setting', 'succeed'); +} + ?> \ No newline at end of file diff --git a/source/plugin/wechat/wsq_stat.inc.php b/source/plugin/wechat/wsq_stat.inc.php index 2d842a1..7c2e0d2 100644 --- a/source/plugin/wechat/wsq_stat.inc.php +++ b/source/plugin/wechat/wsq_stat.inc.php @@ -1,83 +1,83 @@ -code != 0) { - cpmsg_error('wechat:stat_failed'); -} - -$xa = $uv = $pv = $newthread = $reply = $share = $reflow = array(); -foreach($data->res as $d) { - $xa[$d->ftime] = substr($d->ftime, 4, 2).'
    '.substr($d->ftime, 6, 2); - $uv[$d->ftime] = intval($uv[$d->ftime]) + intval($d->uv); - $pv[$d->ftime] = intval($pv[$d->ftime]) + intval($d->pv); - $newthread[$d->ftime] = intval($newthread[$d->ftime]) + intval($d->newthread_num); - $reply[$d->ftime] = intval($reply[$d->ftime]) + intval($d->reply_num); - $share[$d->ftime] = intval($share[$d->ftime]) + intval($d->share_num); - $reflow[$d->ftime] = intval($reflow[$d->ftime]) + intval($d->reflow_num); -} - -$xas = "'".implode('\',\'', $xa)."'"; -$uvs = implode(',', $uv); -$pvs = implode(',', $pv); -$newthreads = implode(',', $newthread); -$replys = implode(',', $reply); -$shares = implode(',', $share); -$reflows = implode(',', $reflow); - -$langarray = array('stat_newthread', 'stat_reply', 'stat_share', 'stat_reflow'); -$lang = array(); -foreach($langarray as $l) { - $lang[$l] = lang('plugin/wechat', $l); -} - -echo << - - -
    -EOF; -$xa = array_reverse($xa, true); -showtableheader(''); -showsubtitle(array('', 'UV', 'PV', $lang['stat_newthread'], $lang['stat_reply'], $lang['stat_share'], $lang['stat_reflow'])); -foreach($xa as $key=>$value) { - showtablerow('', array(), array( - $key, - $uv[$key], - $pv[$key], - $newthread[$key], - $reply[$key], - $share[$key], - $reflow[$key] - )); -} +code != 0) { + cpmsg_error('wechat:stat_failed'); +} + +$xa = $uv = $pv = $newthread = $reply = $share = $reflow = array(); +foreach($data->res as $d) { + $xa[$d->ftime] = substr($d->ftime, 4, 2).'
    '.substr($d->ftime, 6, 2); + $uv[$d->ftime] = intval($uv[$d->ftime]) + intval($d->uv); + $pv[$d->ftime] = intval($pv[$d->ftime]) + intval($d->pv); + $newthread[$d->ftime] = intval($newthread[$d->ftime]) + intval($d->newthread_num); + $reply[$d->ftime] = intval($reply[$d->ftime]) + intval($d->reply_num); + $share[$d->ftime] = intval($share[$d->ftime]) + intval($d->share_num); + $reflow[$d->ftime] = intval($reflow[$d->ftime]) + intval($d->reflow_num); +} + +$xas = "'".implode('\',\'', $xa)."'"; +$uvs = implode(',', $uv); +$pvs = implode(',', $pv); +$newthreads = implode(',', $newthread); +$replys = implode(',', $reply); +$shares = implode(',', $share); +$reflows = implode(',', $reflow); + +$langarray = array('stat_newthread', 'stat_reply', 'stat_share', 'stat_reflow'); +$lang = array(); +foreach($langarray as $l) { + $lang[$l] = lang('plugin/wechat', $l); +} + +echo << + + +
    +EOF; +$xa = array_reverse($xa, true); +showtableheader(''); +showsubtitle(array('', 'UV', 'PV', $lang['stat_newthread'], $lang['stat_reply'], $lang['stat_share'], $lang['stat_reflow'])); +foreach($xa as $key=>$value) { + showtablerow('', array(), array( + $key, + $uv[$key], + $pv[$key], + $newthread[$key], + $reply[$key], + $share[$key], + $reflow[$key] + )); +} showtablefooter(); \ No newline at end of file diff --git a/source/plugin/wechat/wsqapi.class.php b/source/plugin/wechat/wsqapi.class.php index ee6beaf..79154b0 100644 --- a/source/plugin/wechat/wsqapi.class.php +++ b/source/plugin/wechat/wsqapi.class.php @@ -1,150 +1,150 @@ -fetch_all($tids); - foreach($activities as $tid => $activity) { - $variables['showactivity'][$tid]['starttimefrom'] = dgmdate($activities[$tid]['starttimefrom']); - $variables['showactivity'][$tid]['expiration'] = dgmdate($activities[$tid]['expiration']); - $variables['showactivity'][$tid]['applynumber'] = $activities[$tid]['applynumber']; - $variables['showactivity'][$tid]['thumb'] = $activity['aid'] ? $_G['siteurl'].getforumimg($activity['aid'], 0, 400, 400) : ''; - } - } - - function viewthread_variables(&$variables) { - if(!showActivity::init()) { - return; - } - global $_G; - $variables['thread']['showactivity'] = 1; - $variables['special_activity']['thumb'] = preg_match('/^http:\//', $GLOBALS['activity']['thumb']) ? $GLOBALS['activity']['thumb'] : $_G['siteurl'].$GLOBALS['activity']['thumb']; - unset($variables['special_activity']['attachurl']); - - if(empty($_GET['viewpid'])) { - if(!$_GET['viewhot']) { - $pids = array(); - foreach($variables['postlist'] as $post) { - $pids[] = $post['pid']; - } - if($pids) { - $posts = DB::fetch_all("SELECT pid, voters FROM %t WHERE pid IN (%n)", array('forum_debatepost', $pids), 'pid'); - $voters = array(); - foreach($variables['postlist'] as $key => $post) { - $variables['postlist'][$key]['voters'] = intval($posts[$post['pid']]['voters']); - if($_G['page'] == 1 && !$post['first'] && $_G['uid'] && $_G['uid'] == $post['authorid']) { - unset($variables['postlist'][$key]); - } - } - } - $variables['postlist'] = array_values($variables['postlist']); - $myarr = array(); - if($_G['uid'] && $_G['page'] == 1) { - $pids = array(); - $posts = C::t('forum_post')->fetch_all_common_viewthread_by_tid($_G['tid'], 0, $_G['uid'], 1, 2, 0, 0, 0); - foreach($posts as $pid => $post) { - $myarr[$pid] = array( - 'pid' => $pid, - 'author' => $post['author'], - 'authorid' => $post['authorid'], - 'voters' => 0, - ); - $pids[] = $post['pid']; - } - $posts = DB::fetch_all("SELECT pid, voters FROM %t WHERE pid IN (%n)", array('forum_debatepost', $pids), 'pid'); - foreach($posts as $pid => $post) { - $myarr[$pid]['voters'] = intval($post['voters']); - } - if($myarr) { - require_once libfile('function/attachment'); - parseattach(array_keys($myarr), array(), $myarr); - } - } - $variables['special_activity']['my_postlist'] = array_values($myarr); - $variables['special_activity']['view'] = 'new'; - } else { - foreach($variables['postlist'] as $key => $post) { - if(!$post['first']) { - unset($variables['postlist'][$key]); - } - } - $cachekey = 'showactivity_'.$_G['tid']; - loadcache($cachekey); - if(!$_G['cache'][$cachekey] || TIMESTAMP - $_G['cache'][$cachekey]['expiration'] > 600) { - $posts = DB::fetch_all("SELECT pid, voters FROM %t d WHERE tid=%d AND voters>1 ORDER BY voters DESC LIMIT 500", array('forum_debatepost', $_G['tid']), 'pid'); - foreach($posts as $vpost) { - $voters[$vpost['pid']] = $vpost['voters']; - } - $top = 1; - $toparr = array(); - $posts = C::t('forum_post')->fetch_all_by_pid('tid:'.$_G['tid'], array_keys($voters), false, '', 0, 0, null, 0); - foreach($voters as $pid => $voters) { - if($posts[$pid]) { - $toparr[$pid] = array( - 'pid' => $pid, - 'author' => $posts[$pid]['author'], - 'authorid' => $posts[$pid]['authorid'], - 'voters' => $voters, - 'top' => $top++ - ); - if($top > 50) { - break; - } - } - } - $variables['special_activity']['top_postlist'] = $toparr; - savecache($cachekey, array('variable' => $toparr, 'expiration' => TIMESTAMP)); - } else { - $variables['special_activity']['top_postlist'] = $_G['cache'][$cachekey]['variable']; - } - $hotpage = max(1, $_GET['page']); - $start = max(0, ($hotpage - 1) * $_G['ppp']); - - $toplist = & $variables['special_activity']['top_postlist']; - $toplist = array_slice($toplist, $start, $_G['ppp'], 1); - require_once libfile('function/attachment'); - parseattach(array_keys($toplist), array(), $toplist); - $toplist = array_values($toplist); - $variables['special_activity']['view'] = 'hot'; - } - } else { - $comments = array(); - foreach($GLOBALS['comments'][$_GET['viewpid']] as $comment) { - $comments[] = array( - 'author' => $comment['author'], - 'authorid' => $comment['authorid'], - 'avatar' => avatar($comment['authorid'], 'small', 1), - 'message' => $comment['comment'], - 'dateline' => strip_tags(dgmdate($comment['dateline'], 'u')), - ); - } - $variables['postlist'] = array_merge($variables['postlist'], $comments); - $variables['thread']['replies'] = $GLOBALS['commentcount'][$_GET['viewpid']]; - $voters = C::t('forum_debatepost')->fetch($_GET['viewpid']); - $variables['thread']['recommend_add'] = $voters['voters']; - } - } - +fetch_all($tids); + foreach($activities as $tid => $activity) { + $variables['showactivity'][$tid]['starttimefrom'] = dgmdate($activities[$tid]['starttimefrom']); + $variables['showactivity'][$tid]['expiration'] = dgmdate($activities[$tid]['expiration']); + $variables['showactivity'][$tid]['applynumber'] = $activities[$tid]['applynumber']; + $variables['showactivity'][$tid]['thumb'] = $activity['aid'] ? $_G['siteurl'].getforumimg($activity['aid'], 0, 400, 400) : ''; + } + } + + function viewthread_variables(&$variables) { + if(!showActivity::init()) { + return; + } + global $_G; + $variables['thread']['showactivity'] = 1; + $variables['special_activity']['thumb'] = preg_match('/^http:\//', $GLOBALS['activity']['thumb']) ? $GLOBALS['activity']['thumb'] : $_G['siteurl'].$GLOBALS['activity']['thumb']; + unset($variables['special_activity']['attachurl']); + + if(empty($_GET['viewpid'])) { + if(!$_GET['viewhot']) { + $pids = array(); + foreach($variables['postlist'] as $post) { + $pids[] = $post['pid']; + } + if($pids) { + $posts = DB::fetch_all("SELECT pid, voters FROM %t WHERE pid IN (%n)", array('forum_debatepost', $pids), 'pid'); + $voters = array(); + foreach($variables['postlist'] as $key => $post) { + $variables['postlist'][$key]['voters'] = intval($posts[$post['pid']]['voters']); + if($_G['page'] == 1 && !$post['first'] && $_G['uid'] && $_G['uid'] == $post['authorid']) { + unset($variables['postlist'][$key]); + } + } + } + $variables['postlist'] = array_values($variables['postlist']); + $myarr = array(); + if($_G['uid'] && $_G['page'] == 1) { + $pids = array(); + $posts = C::t('forum_post')->fetch_all_common_viewthread_by_tid($_G['tid'], 0, $_G['uid'], 1, 2, 0, 0, 0); + foreach($posts as $pid => $post) { + $myarr[$pid] = array( + 'pid' => $pid, + 'author' => $post['author'], + 'authorid' => $post['authorid'], + 'voters' => 0, + ); + $pids[] = $post['pid']; + } + $posts = DB::fetch_all("SELECT pid, voters FROM %t WHERE pid IN (%n)", array('forum_debatepost', $pids), 'pid'); + foreach($posts as $pid => $post) { + $myarr[$pid]['voters'] = intval($post['voters']); + } + if($myarr) { + require_once libfile('function/attachment'); + parseattach(array_keys($myarr), array(), $myarr); + } + } + $variables['special_activity']['my_postlist'] = array_values($myarr); + $variables['special_activity']['view'] = 'new'; + } else { + foreach($variables['postlist'] as $key => $post) { + if(!$post['first']) { + unset($variables['postlist'][$key]); + } + } + $cachekey = 'showactivity_'.$_G['tid']; + loadcache($cachekey); + if(!$_G['cache'][$cachekey] || TIMESTAMP - $_G['cache'][$cachekey]['expiration'] > 600) { + $posts = DB::fetch_all("SELECT pid, voters FROM %t d WHERE tid=%d AND voters>1 ORDER BY voters DESC LIMIT 500", array('forum_debatepost', $_G['tid']), 'pid'); + foreach($posts as $vpost) { + $voters[$vpost['pid']] = $vpost['voters']; + } + $top = 1; + $toparr = array(); + $posts = C::t('forum_post')->fetch_all_by_pid('tid:'.$_G['tid'], array_keys($voters), false, '', 0, 0, null, 0); + foreach($voters as $pid => $voters) { + if($posts[$pid]) { + $toparr[$pid] = array( + 'pid' => $pid, + 'author' => $posts[$pid]['author'], + 'authorid' => $posts[$pid]['authorid'], + 'voters' => $voters, + 'top' => $top++ + ); + if($top > 50) { + break; + } + } + } + $variables['special_activity']['top_postlist'] = $toparr; + savecache($cachekey, array('variable' => $toparr, 'expiration' => TIMESTAMP)); + } else { + $variables['special_activity']['top_postlist'] = $_G['cache'][$cachekey]['variable']; + } + $hotpage = max(1, $_GET['page']); + $start = max(0, ($hotpage - 1) * $_G['ppp']); + + $toplist = & $variables['special_activity']['top_postlist']; + $toplist = array_slice($toplist, $start, $_G['ppp'], 1); + require_once libfile('function/attachment'); + parseattach(array_keys($toplist), array(), $toplist); + $toplist = array_values($toplist); + $variables['special_activity']['view'] = 'hot'; + } + } else { + $comments = array(); + foreach($GLOBALS['comments'][$_GET['viewpid']] as $comment) { + $comments[] = array( + 'author' => $comment['author'], + 'authorid' => $comment['authorid'], + 'avatar' => avatar($comment['authorid'], 'small', 1), + 'message' => $comment['comment'], + 'dateline' => strip_tags(dgmdate($comment['dateline'], 'u')), + ); + } + $variables['postlist'] = array_merge($variables['postlist'], $comments); + $variables['thread']['replies'] = $GLOBALS['commentcount'][$_GET['viewpid']]; + $voters = C::t('forum_debatepost')->fetch($_GET['viewpid']); + $variables['thread']['recommend_add'] = $voters['voters']; + } + } + } \ No newline at end of file diff --git a/static/image/common/flvplayer.swf b/static/image/common/flvplayer.swf index 8044d9a..ec5ab55 100644 Binary files a/static/image/common/flvplayer.swf and b/static/image/common/flvplayer.swf differ diff --git a/static/image/common/mp3player.swf b/static/image/common/mp3player.swf index 8044d9a..3c2e35f 100644 Binary files a/static/image/common/mp3player.swf and b/static/image/common/mp3player.swf differ diff --git a/static/image/common/player.swf b/static/image/common/player.swf index 8044d9a..b9ee0cc 100644 Binary files a/static/image/common/player.swf and b/static/image/common/player.swf differ diff --git a/static/js/bbcode.js b/static/js/bbcode.js index 3681673..9405285 100644 --- a/static/js/bbcode.js +++ b/static/js/bbcode.js @@ -2,7 +2,7 @@ [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms - $Id: bbcode.js 35229 2015-03-09 02:12:08Z nemohou $ + $Id: bbcode.js 35332 2015-06-15 07:05:10Z nemohou $ */ var re, DISCUZCODE = []; @@ -78,7 +78,7 @@ function bbcode2html(str) { str = clearcode(str); str = str.replace(/\[url\]\s*((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|thunder|qqdl|synacast){1}:\/\/|www\.)([^\[\"']+?)\s*\[\/url\]/ig, function($1, $2, $3, $4) {return cuturl($2 + $4);}); str = str.replace(/\[url=((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|thunder|qqdl|synacast){1}:\/\/|www\.|mailto:)?([^\r\n\[\"']+?)\]([\s\S]+?)\[\/url\]/ig, '$4'); - str = str.replace(/\[email\](.*?)\[\/email\]/ig, '$1'); + str = str.replace(/\[email\](.[^\\=[]*)\[\/email\]/ig, '$1'); str = str.replace(/\[email=(.[^\\=[]*)\](.*?)\[\/email\]/ig, '$2'); str = str.replace(/\[postbg\]\s*([^\[\<\r\n;'\"\?\(\)]+?)\s*\[\/postbg\]/ig, function($1, $2) { addCSS = ''; diff --git a/static/js/common.js b/static/js/common.js index 4a49f7a..b657ad0 100644 --- a/static/js/common.js +++ b/static/js/common.js @@ -2,9 +2,98 @@ [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms - $Id: common.js 34611 2014-06-11 10:28:49Z nemohou $ + $Id: common.js 34029 2013-09-23 06:51:33Z nemohou $ */ +var BROWSER = {}; +var USERAGENT = navigator.userAgent.toLowerCase(); +browserVersion({'ie':'msie','firefox':'','chrome':'','opera':'','safari':'','mozilla':'','webkit':'','maxthon':'','qq':'qqbrowser','rv':'rv'}); +if(BROWSER.safari || BROWSER.rv) { + BROWSER.firefox = true; +} +BROWSER.opera = BROWSER.opera ? opera.version() : 0; + +HTMLNODE = document.getElementsByTagName('head')[0].parentNode; +if(BROWSER.ie) { + BROWSER.iemode = parseInt(typeof document.documentMode != 'undefined' ? document.documentMode : BROWSER.ie); + HTMLNODE.className = 'ie_all ie' + BROWSER.iemode; +} + +var CSSLOADED = []; +var JSLOADED = []; +var JSMENU = []; +JSMENU['active'] = []; +JSMENU['timer'] = []; +JSMENU['drag'] = []; +JSMENU['layer'] = 0; +JSMENU['zIndex'] = {'win':200,'menu':300,'dialog':400,'prompt':500}; +JSMENU['float'] = ''; +var CURRENTSTYPE = null; +var discuz_uid = isUndefined(discuz_uid) ? 0 : discuz_uid; +var creditnotice = isUndefined(creditnotice) ? '' : creditnotice; +var cookiedomain = isUndefined(cookiedomain) ? '' : cookiedomain; +var cookiepath = isUndefined(cookiepath) ? '' : cookiepath; +var EXTRAFUNC = [], EXTRASTR = ''; +EXTRAFUNC['showmenu'] = []; + +var DISCUZCODE = []; +DISCUZCODE['num'] = '-1'; +DISCUZCODE['html'] = []; + +var USERABOUT_BOX = true; +var USERCARDST = null; +var CLIPBOARDSWFDATA = ''; +var NOTICETITLE = []; +var NOTICECURTITLE = document.title; + +if(BROWSER.firefox && window.HTMLElement) { + HTMLElement.prototype.__defineGetter__( "innerText", function(){ + var anyString = ""; + var childS = this.childNodes; + for(var i=0; i '; + } + return str + '>' + this.innerHTML + ''; + }); + + HTMLElement.prototype.__defineGetter__('canHaveChildren', function() { + switch(this.tagName.toLowerCase()) { + case 'area':case 'base':case 'basefont':case 'col':case 'frame':case 'hr':case 'img':case 'br':case 'input':case 'isindex':case 'link':case 'meta':case 'param': + return false; + } + return true; + }); +} + function $(id) { return !id ? null : document.getElementById(id); } @@ -202,22 +291,29 @@ function getcookie(name, nounescape) { } function Ajax(recvType, waitId) { + var aj = new Object(); + aj.loading = '请稍候...'; aj.recvType = recvType ? recvType : 'XML'; aj.waitId = waitId ? $(waitId) : null; + aj.resultHandle = null; aj.sendString = ''; aj.targetUrl = ''; + aj.setLoading = function(loading) { if(typeof loading !== 'undefined' && loading !== null) aj.loading = loading; }; + aj.setRecvType = function(recvtype) { aj.recvType = recvtype; }; + aj.setWaitId = function(waitid) { aj.waitId = typeof waitid == 'object' ? waitid : $(waitid); }; + aj.createXMLHttpRequest = function() { var request = false; if(window.XMLHttpRequest) { @@ -238,6 +334,7 @@ function Ajax(recvType, waitId) { } return request; }; + aj.XMLHttpRequest = aj.createXMLHttpRequest(); aj.showLoading = function() { if(aj.waitId && (aj.XMLHttpRequest.readyState != 4 || aj.XMLHttpRequest.status != 200)) { @@ -245,6 +342,7 @@ function Ajax(recvType, waitId) { aj.waitId.innerHTML = ' ' + aj.loading + ''; } }; + aj.processHandle = function() { if(aj.XMLHttpRequest.readyState == 4 && aj.XMLHttpRequest.status == 200) { if(aj.waitId) { @@ -254,7 +352,7 @@ function Ajax(recvType, waitId) { aj.resultHandle(aj.XMLHttpRequest.responseText, aj); } else if(aj.recvType == 'XML') { if(!aj.XMLHttpRequest.responseXML || !aj.XMLHttpRequest.responseXML.lastChild || aj.XMLHttpRequest.responseXML.lastChild.localName == 'parsererror') { - aj.resultHandle('' , aj); + aj.resultHandle('内部错误,无法显示此内容' , aj); } else { aj.resultHandle(aj.XMLHttpRequest.responseXML.lastChild.firstChild.nodeValue, aj); } @@ -269,6 +367,7 @@ function Ajax(recvType, waitId) { } } }; + aj.get = function(targetUrl, resultHandle) { targetUrl = hostconvert(targetUrl); setTimeout(function(){aj.showLoading()}, 250); @@ -361,7 +460,7 @@ function evalscript(s) { return s; } - +var safescripts = {}, evalscripts = []; function safescript(id, call, seconds, times, timeoutcall, endcall, index) { seconds = seconds || 1000; times = times || 0; @@ -436,7 +535,7 @@ function $F(func, args, script) { if(!JSLOADED[src]) { appendscript(src); } - return checkrun(); + checkrun(); } function appendscript(src, text, reload, charset) { @@ -472,6 +571,211 @@ function appendscript(src, text, reload, charset) { } catch(e) {} } +function stripscript(s) { + return s.replace(/.*?<\/script>/ig, ''); +} + +function ajaxupdateevents(obj, tagName) { + tagName = tagName ? tagName : 'A'; + var objs = obj.getElementsByTagName(tagName); + for(k in objs) { + var o = objs[k]; + ajaxupdateevent(o); + } +} + +function ajaxupdateevent(o) { + if(typeof o == 'object' && o.getAttribute) { + if(o.getAttribute('ajaxtarget')) { + if(!o.id) o.id = Math.random(); + var ajaxevent = o.getAttribute('ajaxevent') ? o.getAttribute('ajaxevent') : 'click'; + var ajaxurl = o.getAttribute('ajaxurl') ? o.getAttribute('ajaxurl') : o.href; + _attachEvent(o, ajaxevent, newfunction('ajaxget', ajaxurl, o.getAttribute('ajaxtarget'), o.getAttribute('ajaxwaitid'), o.getAttribute('ajaxloading'), o.getAttribute('ajaxdisplay'))); + if(o.getAttribute('ajaxfunc')) { + o.getAttribute('ajaxfunc').match(/(\w+)\((.+?)\)/); + _attachEvent(o, ajaxevent, newfunction(RegExp.$1, RegExp.$2)); + } + } + } +} + +function ajaxget(url, showid, waitid, loading, display, recall) { + waitid = typeof waitid == 'undefined' || waitid === null ? showid : waitid; + var x = new Ajax(); + x.setLoading(loading); + x.setWaitId(waitid); + x.display = typeof display == 'undefined' || display == null ? '' : display; + x.showId = $(showid); + + if(url.substr(strlen(url) - 1) == '#') { + url = url.substr(0, strlen(url) - 1); + x.autogoto = 1; + } + + var url = url + '&inajax=1&ajaxtarget=' + showid; + x.get(url, function(s, x) { + var evaled = false; + if(s.indexOf('ajaxerror') != -1) { + evalscript(s); + evaled = true; + } + if(!evaled && (typeof ajaxerror == 'undefined' || !ajaxerror)) { + if(x.showId) { + x.showId.style.display = x.display; + ajaxinnerhtml(x.showId, s); + ajaxupdateevents(x.showId); + if(x.autogoto) scroll(0, x.showId.offsetTop); + } + } + + ajaxerror = null; + if(recall && typeof recall == 'function') { + recall(); + } else if(recall) { + eval(recall); + } + if(!evaled) evalscript(s); + }); +} + +function ajaxpost(formid, showid, waitid, showidclass, submitbtn, recall) { + var waitid = typeof waitid == 'undefined' || waitid === null ? showid : (waitid !== '' ? waitid : ''); + var showidclass = !showidclass ? '' : showidclass; + var ajaxframeid = 'ajaxframe'; + var ajaxframe = $(ajaxframeid); + var curform = $(formid); + var formtarget = curform.target; + + var handleResult = function() { + var s = ''; + var evaled = false; + + showloading('none'); + try { + s = $(ajaxframeid).contentWindow.document.XMLDocument.text; + } catch(e) { + try { + s = $(ajaxframeid).contentWindow.document.documentElement.firstChild.wholeText; + } catch(e) { + try { + s = $(ajaxframeid).contentWindow.document.documentElement.firstChild.nodeValue; + } catch(e) { + s = '内部错误,无法显示此内容'; + } + } + } + if(s != '' && s.indexOf('ajaxerror') != -1) { + evalscript(s); + evaled = true; + } + if(showidclass) { + if(showidclass != 'onerror') { + $(showid).className = showidclass; + } else { + showError(s); + ajaxerror = true; + } + } + if(submitbtn) { + submitbtn.disabled = false; + } + if(!evaled && (typeof ajaxerror == 'undefined' || !ajaxerror)) { + ajaxinnerhtml($(showid), s); + } + ajaxerror = null; + if(curform) curform.target = formtarget; + if(typeof recall == 'function') { + recall(); + } else { + eval(recall); + } + if(!evaled) evalscript(s); + ajaxframe.loading = 0; + if(!BROWSER.firefox || BROWSER.safari) { + $('append_parent').removeChild(ajaxframe.parentNode); + } else { + setTimeout( + function(){ + $('append_parent').removeChild(ajaxframe.parentNode); + }, + 100 + ); + } + }; + if(!ajaxframe) { + var div = document.createElement('div'); + div.style.display = 'none'; + div.innerHTML = ''; + $('append_parent').appendChild(div); + ajaxframe = $(ajaxframeid); + } else if(ajaxframe.loading) { + return false; + } + + _attachEvent(ajaxframe, 'load', handleResult); + + showloading(); + curform.target = ajaxframeid; + var action = curform.getAttribute('action'); + action = hostconvert(action); + curform.action = action.replace(/\&inajax\=1/g, '')+'&inajax=1'; + curform.submit(); + if(submitbtn) { + submitbtn.disabled = true; + } + doane(); + return false; +} + +function ajaxmenu(ctrlObj, timeout, cache, duration, pos, recall, idclass, contentclass) { + if(!ctrlObj.getAttribute('mid')) { + var ctrlid = ctrlObj.id; + if(!ctrlid) { + ctrlObj.id = 'ajaxid_' + Math.random(); + } + } else { + var ctrlid = ctrlObj.getAttribute('mid'); + if(!ctrlObj.id) { + ctrlObj.id = 'ajaxid_' + Math.random(); + } + } + var menuid = ctrlid + '_menu'; + var menu = $(menuid); + if(isUndefined(timeout)) timeout = 3000; + if(isUndefined(cache)) cache = 1; + if(isUndefined(pos)) pos = '43'; + if(isUndefined(duration)) duration = timeout > 0 ? 0 : 3; + if(isUndefined(idclass)) idclass = 'p_pop'; + if(isUndefined(contentclass)) contentclass = 'p_opt'; + var func = function() { + showMenu({'ctrlid':ctrlObj.id,'menuid':menuid,'duration':duration,'timeout':timeout,'pos':pos,'cache':cache,'layer':2}); + if(typeof recall == 'function') { + recall(); + } else { + eval(recall); + } + }; + + if(menu) { + if(menu.style.display == '') { + hideMenu(menuid); + } else { + func(); + } + } else { + menu = document.createElement('div'); + menu.id = menuid; + menu.style.display = 'none'; + menu.className = idclass; + menu.innerHTML = ''; + $('append_parent').appendChild(menu); + var url = (!isUndefined(ctrlObj.attributes['shref']) ? ctrlObj.attributes['shref'].value : (!isUndefined(ctrlObj.href) ? ctrlObj.href : ctrlObj.attributes['href'].value)); + url += (url.indexOf('?') != -1 ? '&' :'?') + 'ajaxmenu=1'; + ajaxget(url, menuid + '_content', 'ajaxwaitid', '', '', func); + } + doane(); +} + function hash(string, length) { var length = length ? length : 32; var start = 0; @@ -499,30 +803,6 @@ function stringxor(s1, s2) { return s; } -function ajaxupdateevents(obj, tagName) { - $F('_ajaxupdateevents', arguments, 'ajax'); -} - -function ajaxupdateevent(o) { - $F('_ajaxupdateevent', arguments, 'ajax'); -} - -function ajaxget(url, showid, waitid, loading, display, recall) { - $F('_ajaxget', arguments, 'ajax'); -} - -function ajaxpost(formid, showid, waitid, showidclass, submitbtn, recall) { - $F('_ajaxpost', arguments, 'ajax'); -} - -function ajaxmenu(ctrlObj, timeout, cache, duration, pos, recall, idclass, contentclass) { - $F('_ajaxmenu', arguments, 'ajax'); -} - -function ajaxinnerhtml(showid, s) { - $F('_ajaxinnerhtml', arguments, 'ajax'); -} - function showPreview(val, id) { var showObj = $(id); if(showObj) { @@ -537,6 +817,31 @@ function showloading(display, waiting) { $('ajaxwaitid').style.display = display; } +function ajaxinnerhtml(showid, s) { + if(showid.tagName != 'TBODY') { + showid.innerHTML = s; + } else { + while(showid.firstChild) { + showid.firstChild.parentNode.removeChild(showid.firstChild); + } + var div1 = document.createElement('DIV'); + div1.id = showid.id+'_div'; + div1.innerHTML = ''+s+'
    '; + $('append_parent').appendChild(div1); + var trs = div1.getElementsByTagName('TR'); + var l = trs.length; + for(var i=0; i -1; @@ -1949,97 +2254,6 @@ function mobileplayer() { } } - -var BROWSER = {}; -var USERAGENT = navigator.userAgent.toLowerCase(); -browserVersion({'ie':'msie','firefox':'','chrome':'','opera':'','safari':'','mozilla':'','webkit':'','maxthon':'','qq':'qqbrowser','rv':'rv'}); -if(BROWSER.safari || BROWSER.rv) { - BROWSER.firefox = true; -} -BROWSER.opera = BROWSER.opera ? opera.version() : 0; - -HTMLNODE = document.getElementsByTagName('head')[0].parentNode; -if(BROWSER.ie) { - BROWSER.iemode = parseInt(typeof document.documentMode != 'undefined' ? document.documentMode : BROWSER.ie); - HTMLNODE.className = 'ie_all ie' + BROWSER.iemode; -} - -var CSSLOADED = []; -var JSLOADED = []; -var JSMENU = []; -JSMENU['active'] = []; -JSMENU['timer'] = []; -JSMENU['drag'] = []; -JSMENU['layer'] = 0; -JSMENU['zIndex'] = {'win':200,'menu':300,'dialog':400,'prompt':500}; -JSMENU['float'] = ''; -var CURRENTSTYPE = null; -var discuz_uid = isUndefined(discuz_uid) ? 0 : discuz_uid; -var creditnotice = isUndefined(creditnotice) ? '' : creditnotice; -var cookiedomain = isUndefined(cookiedomain) ? '' : cookiedomain; -var cookiepath = isUndefined(cookiepath) ? '' : cookiepath; -var EXTRAFUNC = [], EXTRASTR = ''; -EXTRAFUNC['showmenu'] = []; - -var DISCUZCODE = []; -DISCUZCODE['num'] = '-1'; -DISCUZCODE['html'] = []; - -var USERABOUT_BOX = true; -var USERCARDST = null; -var CLIPBOARDSWFDATA = ''; -var NOTICETITLE = []; -var NOTICECURTITLE = document.title; -var safescripts = {}, evalscripts = []; - -if(BROWSER.firefox && window.HTMLElement) { - HTMLElement.prototype.__defineGetter__( "innerText", function(){ - var anyString = ""; - var childS = this.childNodes; - for(var i=0; i '; - } - return str + '>' + this.innerHTML + ''; - }); - - HTMLElement.prototype.__defineGetter__('canHaveChildren', function() { - switch(this.tagName.toLowerCase()) { - case 'area':case 'base':case 'basefont':case 'col':case 'frame':case 'hr':case 'img':case 'br':case 'input':case 'isindex':case 'link':case 'meta':case 'param': - return false; - } - return true; - }); -} - if(typeof IN_ADMINCP == 'undefined') { if(creditnotice != '' && getcookie('creditnotice')) { _attachEvent(window, 'load', showCreditPrompt, document); diff --git a/template/default/forum/viewthread_node.htm b/template/default/forum/viewthread_node.htm index efd1644..7521a77 100644 --- a/template/default/forum/viewthread_node.htm +++ b/template/default/forum/viewthread_node.htm @@ -44,7 +44,7 @@ {eval viewthread_profile_node('top', $post);}
    - QQ + QQ ICQ Yahoo! {lang taobao} diff --git a/template/default/member/getpasswd.htm b/template/default/member/getpasswd.htm index fdb44e4..1fcd74e 100644 --- a/template/default/member/getpasswd.htm +++ b/template/default/member/getpasswd.htm @@ -5,7 +5,7 @@

    {lang getpassword}

    -
    +
    diff --git a/uc_server/lib/template.class.php b/uc_server/lib/template.class.php index 0a0863a..ee35a95 100644 --- a/uc_server/lib/template.class.php +++ b/uc_server/lib/template.class.php @@ -74,7 +74,7 @@ function gettpl($file) { function complie() { $template = file_get_contents($this->tplfile); $template = preg_replace("/\<\!\-\-\{(.+?)\}\-\-\>/s", "{\\1}", $template); - $template = preg_replace("/\{lang\s+(\w+?)\}/ise", "\$this->lang('\\1')", $template); + $template = preg_replace_callback("/\{lang\s+(\w+?)\}/is", function($matches) { return $this->lang($matches[1]); }, $template); $template = preg_replace("/\{($this->var_regexp)\}/", "", $template); $template = preg_replace("/\{($this->const_regexp)\}/", "", $template);