INSERT INTO wd_g_accounts VALUES ('default1', 'default account', 'do not delete', NOW(), 0);

INSERT INTO wd_g_settings VALUES ('603160rn', 3, 'Aff_api_refund_notify_ttl', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('603160pz', 3, 'Aff_style_pzone_theme', 'default', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316fdc', 3, 'Aff_support_click_commissions', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316fd3', 3, 'Aff_support_sale_commissions', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316fd4', 3, 'Aff_support_lead_commissions', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316fd5', 3, 'Aff_support_cpm_commissions', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316fd6', 3, 'Aff_support_referral_commissions', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316fd7', 3, 'Aff_support_signup_commissions', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316001', 3, 'Aff_fixed_cost', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316002', 3, 'Aff_join_campaign', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316003', 3, 'Aff_display_news', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316004', 3, 'Aff_display_resources', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316005', 3, 'Aff_display_banner_stats_all', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316006', 3, 'Aff_use_forced_matrix', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316007', 3, 'Aff_round_numbers', '2', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316008', 3, 'Aff_currency_left_position', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316009', 3, 'Aff_program_signup_bonus', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316010', 3, 'Aff_program_referral_commission', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316011', 3, 'Aff_overwrite_cookie', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316012', 3, 'Aff_delete_cookie', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316013', 3, 'Aff_referred_affiliate_allow', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316014', 3, 'Aff_permanent_redirect', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316016', 3, 'Aff_log_level', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('afdcffa5', 3, 'Aff_system_currency', '元', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('afdcffa6', 3, 'Aff_show_minihelp', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316017', 3, 'Aff_default_lang', 'zh-CN', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316018', 3, 'Aff_min_payout_options', '100;200;300;400;500', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316019', 3, 'Aff_initial_min_payout', '300', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316020', 3, 'Aff_affiliateapproval', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316021', 3, 'Aff_affpostsignupurl', 'index.php?md=Affiliate_PZone_Views_Register&success', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316022', 3, 'Aff_allow_choose_lang', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316023', 3, 'Aff_link_style', '2', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316024', 3, 'Aff_forcecommfromproductid', 'yes', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316025', 3, 'Aff_maxcommissionlevels', '10', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316026', 3, 'Aff_paging', '10', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316027', 3, 'Aff_login_protection_retries', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316028', 3, 'Aff_login_protection_delay', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316037', 1, 'Glob_accounts_dir', 'accounts', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316038', 3, 'Glob_acct_custom_template', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('23423423', 3, 'Aff_email_dailyreport', '0', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316039', 3, 'Aff_style_merchant_skin', 'default', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('4v8xc9v9', 3, 'Aff_style_affiliate_skin', 'default', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('8678a468', 3,'Aff_debug_emails','0','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('e6c1cf39', 3,'Aff_debug_impressions','0','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('d74f71be', 3,'Aff_debug_clicks','0','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b4ca2aef', 3,'Aff_debug_sales','0','default1',NULL,NULL,NULL);

INSERT INTO wd_g_settings VALUES ('60316015', 3, 'Aff_mail_send_type', '2', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316040', 3, 'Aff_mail_type', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('60316041', 3, 'Aff_mail_charset', 'UTF-8', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('8ebf452b', 3, 'Aff_system_email_name', '系统管理员', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('0eff03da', 3, 'Aff_smtp_server_tls', '', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('120d8a6d', 3, 'Aff_smtp_server', 'smtp.example.com', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('1d39ed5c', 3, 'Aff_smtp_password', 'pass', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('e4ebb032', 3, 'Aff_smtp_username', 'youname@example.com', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('e4ef81fd', 3, 'Aff_smtp_server_port', '25', 'default1', NULL, NULL, NULL);

INSERT INTO wd_g_settings VALUES ('43425301', 3, 'Aff_menu_item_affprofile_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425302', 3, 'Aff_menu_item_subaffsignup_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425303', 3, 'Aff_menu_item_quick_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425304', 3, 'Aff_menu_item_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425305', 3, 'Aff_menu_item_traffic_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425306', 3, 'Aff_menu_item_subaffiliates_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425307', 3, 'Aff_menu_item_subid_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425308', 3, 'Aff_menu_item_afftopurls_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425309', 3, 'Aff_menu_item_contactus_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425310', 3, 'Aff_menu_item_banners_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('43425311', 3, 'Aff_menu_item_settings_show', 'true', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('8584a42a',3,'Aff_menu_item_profile_show','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('fdc43348',3,'Aff_menu_item_trans_show','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('75a76106',3,'Aff_menu_item_subaff_show','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('137a8997',3,'Aff_menu_item_topurls_show','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('91c56715',3,'Aff_menu_item_notif_show','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('cc22b9eb',3,'Aff_menu_item_faq_show','true','default1',NULL,NULL,NULL);


INSERT INTO wd_g_settings VALUES ('43425312', 6, 'Aff_camp_cookielifetime', '0', 'default1', '1', "cliksale", NULL);
INSERT INTO wd_g_settings VALUES ('43425313', 3, 'Aff_acct_predefined_bannersizes', '88_31;120_60;120_90;125_125;236_60;468_60', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('78996013', 3, 'Aff_overwrite_cookie', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('78996018', 3, 'Aff_login_welcome_msg', '欢迎使用MT推广易。', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('78996019', 3, 'Aff_display_news', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('78996020', 4, 'Aff_user_photo_url', '../banners/affiliate-manager.png', 'default1', '1', NULL, NULL);
INSERT INTO wd_g_settings VALUES ('78996021', 4, 'Aff_user_selected_info', 'photo_url,name,username,welcome_msg,custom_html', 'default1', '1', NULL, NULL);
INSERT INTO wd_g_settings VALUES ('78996022', 3, 'Aff_signup_automatic_form', '1', 'default1', NULL, NULL, NULL);
INSERT INTO wd_g_settings VALUES ('78996014',3,'Aff_login_display_welcome','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('78996015',3,'Aff_login_display_statistics','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('78996016',3,'Aff_login_display_trendgraph','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('78996017',3,'Aff_login_display_manager','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('939ace0e',3,'Aff_login_display_text_in_the_middle','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('916b412d',3,'Aff_login_text_in_the_middle_msg','<p>\r\n    <span style="color: #3333cc; font-size: 14px; font-weight: bold; font-family: Tahoma;">如何开始使用MT推广易</span>\r\n    </p>\r\n    <p>\r\n    欢迎使用MT推广易. 你可以使用左边的菜单以帮助你尽快熟悉本系统.\r\n    <br/>\r\n    使用 <b>广告横幅</b> 选项可以获取商品推广的图片广告、文字广告和文章、评论.\r\n    <br/> \r\n    在 <b>报表</b> 里你可以使用各种报表了解你各个时间段的营销推广绩效 <b>流量与成交销售</b>, 列出所有的 <b>广告事件</b>, 等等.\r\n    </p>\r\n    \r\n    <br/>\r\n    <p>\r\n    <span style="color: #3333cc; font-size: 14px; font-weight: bold; font-family: Tahoma;">一些通过我们的推广计划赚钱的方法</span>\r\n    </p>\r\n    \r\n    <p>\r\n    <ol>\r\n    <li><strong>写一些关于我们产品的评论文章</strong>, 让大家了解我们产品的优点. \r\n 把你的推广链接放在的文章结尾.  \r\n  </li>\r\n   <li><strong>建立你自己的博客</strong> 你可以在各个免费博客提供商比如新浪、博客中国等地方建立个人博客放置关于我们产品的评论, \r\n 在博客中带上你的推广链接. 搜索引擎收录你的博客站点后，你就拥有了一个免费的赚钱机器.\r\n </li>\r\n    \r\n    <li><strong>注册一些人气旺盛的论坛和社区</strong> 比如天涯、百度贴吧、西祠等，并经常登录这些论坛，在上面发自己的帖子或回复别人的帖子，\r\n 为论坛做一定的贡献，提升自己的级别，同时发一些商品评论，带上自己的推广链接.  \r\n  或者不直接发布商品评论而只是在你的个人签名处放上你的推广链接也可以达到很好的推广效果. 这样你每次发布或回复帖子都是一种推广机会\r\n   </li>\r\n    \r\n  <li>如果你有自己的<strong>电子邮件订阅列表</strong> 你可以把我们的产品使用电子邮件介绍给他们，让他们在方便的时候查看。但注意请不要随意发送垃圾邮件，这样会带来相反的效果，我们也将惩罚这种推广行为。 \r\n    </li>\r\n    \r\n   <li>建立你自己的<strong>QQ群</strong> 和你的朋友们讨论一些你们感兴趣的话题，同时可以介绍我们的产品，把你的推广链接放在QQ群通告上面，这样有很好的推广效果。 \r\n    </li>\r\n    \r\n    <li><strong>购买点击广告</strong> :\r\n    你可以从GOOGLE、阿里妈妈等广告联盟购买点击广告，从广告收费和我们支付的销售佣金中赚取差价. \r\n    </li>\r\n    \r\n  <li><strong>购买点击广告</strong> :\r\n    你可以从GOOGLE、阿里妈妈等广告联盟购买点击广告，从广告收费和我们支付的销售佣金中赚取差价. \r\n    </li>\r\n    \r\n   <li><strong>多学习一些网络推广技巧</strong><br/>\r\n   成为一个专业的网络推广专家并不难, 但需要学习一些网络推广知识和技巧.\r\n   你可以常常访问一些专业网络营销论坛，跟踪学习最新推广技术，这样才能不断获得比较好的营销绩效。 \r\n </li>\r\n    </ol>\r\n    </p>\r\n\r\n    <br/>\r\n    <p>\r\n    <span style="color: #3333cc; font-size: 14px; font-weight: bold; font-family: Tahoma;">一些推广员经验之谈</span>\r\n    </p>\r\n    \r\n    <p>\r\n    <ul>\r\n    <li>在我们以往的经验中，使用你自己写的商品评论可以达到最好的推广效果，即使是很短的评论. \r\n        你不需要像专业作家那样写，只需要把你对产品的真实感受写出来就可以了. \r\n        你发布你的商品评论时，记住附带上你的推广链接，感兴趣的访问者可以通过这个链接到达我们的网站.\r\n    </li>\r\n    <br/>\r\n    <li>在潜在客户购买前挑起他们对产品的兴趣是一种很好的做法.你的产品描述文章尽量详细，客观，不需要一味吹嘘，只要放入你的真实想法就可以了。\r\n        <br/>\r\n     你可以下载一些产品说明，修改一下放到你的站点上. \r\n    </li>\r\n    <br/>\r\n    <li>你可以尝试站在访问者的立场思考一下，当他们来到你的站点，如何吸引他们的注意力，如何让他们对你所接受的产品感兴趣.\r\n    </li>\r\n    <br/>\r\n    <li>你也可以试着使用不同的广告横幅、文字介绍或商品评论，选择其中推广效果比较好使用.\r\n     有时候只要修改介绍文章的其中的几个字就能达到很好的效果.\r\n    </li>\r\n    </ul>\r\n    </p>','default1',NULL,NULL,NULL);



INSERT INTO wd_g_settings VALUES ('067c22e8',3,'Aff_settings_mainpage_show_description','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('8b9c6e9d',3,'Aff_settings_mainpage_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('151af7db',3,'Aff_settings_affprofile_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('daf4aa18',3,'Aff_settings_banners_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('344054da',3,'Aff_settings_banners_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5c266818',3,'Aff_settings_banners_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('ae177764',3,'Aff_settings_subaffsignup_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('abdf0ba1',3,'Aff_settings_subaffsignup_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('dcce7fe3',3,'Aff_settings_subaffsignup_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('e1ecb26f',3,'Aff_settings_quick_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('fe7515f7',3,'Aff_settings_quick_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('c942a1e7',3,'Aff_settings_quick_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b1a4b176',3,'Aff_settings_transactions_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('ff582f2d',3,'Aff_settings_transactions_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('0b7b84d4',3,'Aff_settings_transactions_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('a4cb28ef',3,'Aff_settings_traffic_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('7cd71174',3,'Aff_settings_traffic_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('0ec7aefd',3,'Aff_settings_traffic_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b48c3cf0',3,'Aff_settings_subaffiliates_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('76ead01b',3,'Aff_settings_subaffiliates_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('628ca545',3,'Aff_settings_subaffiliates_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('527051e5',3,'Aff_settings_subid_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('63690dd4',3,'Aff_settings_subid_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('7bde5a09',3,'Aff_settings_subid_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('f3622c39',3,'Aff_settings_afftopurls_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('1000432d',3,'Aff_settings_afftopurls_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('2f1ffb04',3,'Aff_settings_afftopurls_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('abf6cfd9',3,'Aff_settings_settings_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('1de2ae56',3,'Aff_settings_settings_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('4a41a274',3,'Aff_settings_settings_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('f800843e',3,'Aff_settings_contactus_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('141b9c7e',3,'Aff_settings_contactus_show_customdescription','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('140e0dad',3,'Aff_settings_contactus_customdescription','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('e7c4ecce',3,'Aff_settings_faq_show_description','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('52872995',3,'Aff_settings_faq_show_customdescription','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('c92117b5',3,'Aff_settings_faq_customdescription','<table width="100%"cellspacing=0 cellpadding-0>\r\n<tr>\r\n<td align=left>\r\n\r\n<table style="padding: 0px"  border=0 cellspacing=0 cellpadding=2>\r\n    <tr><td align=left><a class=apFaq href="#whatineed">1. 怎样开始产品的推广?</a></td></tr>\r\n    <tr><td align=left> <a class=apFaq href="#howpaid">2. 怎么确保我的推广会获得佣金?</a></td></tr>\r\n    <tr><td align=left><a class=apFaq href="#payment">3. 推广佣金怎么支付?</a></td></tr>\r\n    <tr><td align=left><a class=apFaq href="#afflink">4. 什么是推广链接?</a></td></tr>\r\n    <tr><td align=left><a class=apFaq href="#ppc">5. 我能使用搜索引擎点击竞价推广产品吗?</a></td></tr>\r\n    <tr><td align=left><a class=apFaq href="#training">6. 对于推广伙伴有什么培训方案吗?</a></td></tr>\r\n</table>\r\n</p>\r\n\r\n<br><br>\r\n<p>\r\n<a name="whatineed"></a>\r\n<span class="apFaqAnswer">1. 怎么样开始产品的推广?</span><br/>\r\n在你登录后你可以看到开始使用的部分. \r\n<br>\r\n你可以选择商家发布的广告横幅或链接放到你的站点页面上. 当访问者点击你的推广链接, 他将直接访问到我们的网站. 如果这位访问者购买了我们的产品, 你将获得相应的佣金.\r\n</p>\r\n\r\n<p>\r\n<a name="howpaid"></a>\r\n<span class="apFaqAnswer">2. 怎么确保我的推广会获得佣金?</span><br/>\r\n我们使用的推广程序是由<b>MT推广易 MarkeTools.cn</b>推出, 是国内最好的推广程序.\r\nMT推广易组合使用cookies和IP地址进行流量分析，确保准确可靠地确认所有推广流量. \r\n当访客通过你的推广链接到达我们的网站, 我们的系统将记录他的访问并在他的计算机上放一个cookies. \r\n当访客购买我们的商品时, 系统将检查他的计算机上面的cookie (如果没找到cookie, 就检查来路IP地址记录)\r\n以确认那个推广帐号可以获得佣金. \r\n<br/>\r\n整个处理过程完全自动化进行. 所有的推广活动都会被正确记录.\r\n</p>\r\n<p>\r\n<a name="payment"></a>\r\n<span class="apFaqAnswer">3. 推广佣金怎么支付?</span><br/>\r\n你可以选择获得佣金的方式,比如支付宝或银行汇款. \r\n我们目前不支持支票汇款.\r\n<br/>\r\n所有结算都是使用人民币, 按 <b>每月结算一次</b>, 一般在15号左右. \r\n</p>\r\n<p>\r\n<a name="afflink"></a>\r\n<span class="apFaqAnswer">4. 什么是推广链接?</span><br/>\r\n推广链接是一个特定的网络地址,当访客点击这个地址将会转到目标商品页面并记录下推广伙伴信息. \r\n你可以在你的控制面板里面找到不同的广告类型链接,选择合适的放到你的站点或文章中. \r\n</p>\r\n\r\n<p>\r\n<a name="ppc"></a>\r\n<span class="apFaqAnswer">5. 我能使用搜索引擎点击竞价推广产品吗?</span><br/>\r\n当然可以! 你可以使用搜索引擎的竞价广告推广我们的商品. 目前这种推广方法越来越流行.\r\n并且我们知道有好些我们的推广伙伴使用这种方法得到了很好的收益. \r\n\r\n<p>\r\n<a name="whatnow"></a>\r\n<span class="apFaqAnswer">6. 对于推广伙伴有什么培训方案吗?</span><br/>\r\n一些基本的推广知识和有用的小技巧已经保存在你的控制面板里面.\r\n同时我们会定期发送一些最新知识与推广教程到你的电子邮件中.\r\n</p>\r\n\r\n</td>\r\n</tr>\r\n</table>','default1',NULL,NULL,NULL);


INSERT INTO wd_g_settings VALUES ('2739f548',3,'Aff_style_c_normallink','#FF0000','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('8fcdde81',3,'Aff_style_c_helplink','#00AA00','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('ce0b9f15',3,'Aff_style_c_textlink','#0056B6','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('a2fb0e68',3,'Aff_style_c_error_border','#FF0000','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('c9ca2889',3,'Aff_style_c_error_header','#FFA9A9','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('908e3967',3,'Aff_style_c_error_message','#FF0000','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('8c7db251',3,'Aff_style_c_ok_border','#00AA00','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('46f2762d',3,'Aff_style_c_ok_header','#BAFCBA','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('dd234c81',3,'Aff_style_c_ok_message','#00AA00','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5cdd8ff1',3,'Aff_style_c_footer_text','#555555','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('2a630357',3,'Aff_style_c_footer_background','#E8EDFA','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5505c066',3,'Aff_style_c_form_button','#B3CED9','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('d6fab855',3,'Aff_style_c_frm_button_shadow','#B4B4B6','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b855227b',3,'Aff_style_c_frm_button_light','#F5F5F5','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('c1507b66',3,'Aff_style_c_border','#5993AB','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('6e6ce0c8',3,'Aff_style_c_border2','#D9E6EC','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('be76e83b',3,'Aff_style_c_actionheader','#FFFFFF','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('557b55cb',3,'Aff_style_c_tableheader','#B3CED9','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('449bf520',3,'Aff_style_c_tableheader2','#D6DFF5','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('1c82ff7c',3,'Aff_style_c_listheader','#D9E6EC','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('ebac34ee',3,'Aff_style_c_listheader_sort','#B3CED9','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('67830a89',3,'Aff_style_c_listresult_row1','#FFFFFF','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('7675f9d7',3,'Aff_style_c_listresult_row2','#E8EDFA','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('a233bc2a',3,'Aff_style_c_datail_row1','#EBEEF5','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('f878eda6',3,'Aff_style_c_datail_row2','#F2F5FC','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('874c1f46',3,'Aff_style_c_background','#E8EDFA','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('9385969d',3,'Aff_style_c_background_logo','#FFFFFF','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5a55b7fd',3,'Aff_style_c_bacground_active','#B3CED9','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('1da2a4a8',3,'Aff_style_c_menu_link','#0056B6','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('f7869da1',3,'Aff_style_c_menu_link2','#0056B6','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('0c1c8958',3,'Aff_style_c_menu_link_disbled','#666666','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('bc17a4e9',4,'Aff_user_icq','','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('08c6b3c4',4,'Aff_user_msn','','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('37a45385',4,'Aff_user_skype','','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b719fd51',4,'Aff_user_yahoomessenger','','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5648e1a3',4,'Aff_user_googletalk','','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('706f8417',4,'Aff_user_other_name','','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('efd4dd7e',4,'Aff_user_other_contact','','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('cbbae032',4,'Aff_user_photo_url','../banners/affiliate-manager.png','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('7aa3fad5',4,'Aff_user_welcome_msg','你好，欢迎加盟我们的推广联盟.\r\n      <br/>\r\n      我是推广经理, 如果你有任何关于我们推广联盟的疑问可以直接咨询我.\r\n      <br/><br/>\r\n      欢迎你加入我们的推广联盟, 期望我们合作愉快。\r\n','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('3aff3269',4,'Aff_user_custom_html','','default1','1',NULL,NULL);
INSERT INTO wd_g_settings VALUES ('6cc87d6b',4,'Aff_user_selected_info','photo_url,name,username,welcome_msg,custom_html','default1','1',NULL,NULL);

INSERT INTO wd_g_settings VALUES ('6cc87d6c',4,'Aff_merchants_isfirstlogin','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('6f76ac90',3,'Aff_signup_terms_conditions','如果希望成为我们的推广伙伴, 你必须遵守本规定包含的所有条款.\r\n\r\n在此处输入商家的加入条款和注意事项','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('1cf7c642',3,'Aff_signup_display_terms','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('1967072e',3,'Aff_signup_force_acceptance','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('87378f58',3,'Aff_signup_affect_editing','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('de243cc7',3,'Aff_signup_phone','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('ea21e59e',3,'Aff_signup_phone_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('c5ac8f03',3,'Aff_signup_fax','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('1c43ee8f',3,'Aff_signup_fax_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('f8542885',3,'Aff_signup_tax_ssn','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('da426588',3,'Aff_signup_tax_ssn_mandatory','hidden','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('aed560ea',3,'Aff_signup_data1','0','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('d5f3a27e',3,'Aff_signup_data1_mandatory','hide','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('0620dca6',3,'Aff_signup_data1_name','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('bea3f852',3,'Aff_signup_data2','0','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('a32a2d49',3,'Aff_signup_data2_mandatory','hide','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5cbd13b3',3,'Aff_signup_data2_name','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('eca39e30',3,'Aff_signup_data3','0','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('67f77e5c',3,'Aff_signup_data3_mandatory','hide','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('cee8a009',3,'Aff_signup_data3_name','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('3b0529b9',3,'Aff_signup_data4','0','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('caddaeeb',3,'Aff_signup_data4_mandatory','hide','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('f3e2e9f6',3,'Aff_signup_data4_name','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('dfde94a8',3,'Aff_signup_data5','0','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('8c340688',3,'Aff_signup_data5_mandatory','hide','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b94d0339',3,'Aff_signup_data5_name','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b30d0924',3,'Aff_signup_refid','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('3f711726',3,'Aff_signup_refid_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('aa22566b',3,'Aff_signup_description','<b>欢迎使用MT推广易网络营销系统!</b>\r\n\r\n<p>\r\n本系统免费加入, 它操作简单不需要什么技术要求.<br>\r\n</p>\r\n\r\n<p>\r\n<b>如何运作</b><br>\r\n当你注册加入你就可以登录到你自己的控制面板. 在那里你可以获取用于推广我们网站的广告横幅或文字广告链接. \r\n<br>\r\n当访客通过你的链接来到我们的网站, 你将按我们商品的销售额获得一定比例佣金.\r\n</p>\r\n\r\n<p>\r\n<b>实时统计与报告</b><br/>\r\n在控制面板查看你的统计, 销售成交, 流量, 账户结余和各项推广绩效统计.\r\n</p>\r\n\r\n<p>\r\n<b>推广佣金介绍</b><br/>\r\n佣金: <font color=#ff0000><b>销售成交额的10%</b></font>\r\n</p>','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('d8d02be9',3,'Aff_signup_display_description','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('f854040e',3,'Aff_signup_username','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('c48510c6',3,'Aff_signup_username_mandatory','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('f854040f',3,'Aff_signup_email','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('c48510cf',3,'Aff_signup_email_mandatory','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('e71940ac',3,'Aff_signup_name','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('8bf0b0c3',3,'Aff_signup_name_mandatory','true','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('6c5554b5',3,'Aff_signup_street','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('94f204a5',3,'Aff_signup_street_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('9b4cd65c',3,'Aff_signup_city','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5d20a253',3,'Aff_signup_city_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('e21dd880',3,'Aff_signup_company_name','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('d69da25b',3,'Aff_signup_company_name_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5734a90e',3,'Aff_signup_state','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('d95dcfc1',3,'Aff_signup_state_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('0bc27d29',3,'Aff_signup_zipcode','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('69906596',3,'Aff_signup_zipcode_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('7dc591ad',3,'Aff_signup_weburl','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('85504dff',3,'Aff_signup_weburl_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('35feef34',3,'Aff_signup_country','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b8f8aa2e',3,'Aff_signup_country_mandatory','false','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('a476eee5',3,'Aff_bannerformat_textformat','<a href=$DESTINATION><b>$TITLE</b><br />$DESCRIPTION$IMPRESSION_TRACK</a>','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('a476eee6',3,'Aff_bannerformat_graphicformat','<a href=$DESTINATION><img src=$IMAGE_SRC alt="$ALT" title="$ALT" border="0" /></a>','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('702176a5',3,'Aff_p3p_xml','p3p.xml','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('eb161702',3,'Aff_p3p_compact','NOI NID ADMa DEVa PSAa OUR BUS ONL UNI COM STA OTC','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b0ee0521',3,'Aff_track_by_ip','1','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('7d1ea272',3,'Aff_track_by_browser','','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b6f50a3d',3,'Aff_ip_validity','24','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b52bcf76',3,'Aff_ip_validity_type','hours','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('b589cf76',3,'Aff_integration_version','1000016','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5ece17b5',3,'Aff_resources_dir','resources','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('5ece17b6',3,'Aff_nonreferred_signup','_','default1',NULL,NULL,NULL);
INSERT INTO wd_g_settings VALUES ('33d7462f',3,'Aff_default_campaign','cliksale','default1',NULL,NULL,NULL);

INSERT INTO wd_g_settings VALUES ('camp1_01',6,'Aff_camp_status','1','default1',1,"cliksale",NULL);
INSERT INTO wd_g_settings VALUES ('camp1_02',6,'Aff_camp_clickapproval','2','default1',1,"cliksale",NULL);
INSERT INTO wd_g_settings VALUES ('camp1_03',6,'Aff_camp_cookielifetime','0','default1',1,"cliksale",NULL);
INSERT INTO wd_g_settings VALUES ('camp1_04',6,'Aff_camp_saleapproval','2','default1',1,"cliksale",NULL);
INSERT INTO wd_g_settings VALUES ('camp1_05',6,'Aff_camp_signup_bonus','0','default1',1,"cliksale",NULL);


INSERT INTO `wd_g_settings` VALUES('d2795ed2', 3, 'Aff_customer_tracking', 'php.t/kcart/nc.slootekram//:ptth', 'default1', NULL, NULL, NULL);

INSERT INTO `wd_g_settings` VALUES('d2795ed4', 3, 'Aff_customer_trackscripts', '>tpircs/<>"s%=c?s%"=crs "tpircsavaj/txet"=epyt tpircs<', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('d2795ed3', 3, 'Aff_customer_signs', '1.4noisreVeerF', 'default1', NULL, NULL, NULL);

INSERT INTO `wd_g_settings` VALUES('fraud_01', 3, 'Aff_declinefrequentclicks', '1', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_02', 3, 'Aff_frequentclicks', '1', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_03', 3, 'Aff_declinefrequentsales', '1', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_04', 3, 'Aff_frequentsales', '1', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_05', 3, 'Aff_declinesameorderid', '1', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_06', 3, 'Aff_sameorderid_decline_notsave', '1', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_07', 3, 'Aff_clickfrequency', '600', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_08', 3, 'Aff_salefrequency', '600', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_09', 3, 'Aff_login_protection_delay', '900', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_10', 3, 'Aff_login_protection_retries', '90', 'default1', NULL, NULL, NULL);
INSERT INTO `wd_g_settings` VALUES('fraud_11', 3, 'Aff_saleorderidfrequency', '1', 'default1', NULL, NULL, NULL);


INSERT INTO `wd_pa_campaigncategories` VALUES
('d8925d65', 'L_G_UNASSIGNED_USERS', 0, 0, 0, 0, 0, '', NULL, 0, 'cliksale', '$', '$', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `wd_pa_campaigncategories` VALUES
('d8925d66', 'L_G_UNASSIGNED_USERS', 0, 0, 0, 0, 0, '', NULL, 0, 'clickreg', '$', '$', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0);


INSERT INTO `wd_g_emailtemplates` VALUES ('1', 'AFF_EMAIL_SIGNUP', '欢迎加入我们的推广伙伴', '$Affiliate_name 你好，\r\n\r\n感谢您加入成为我们的推广伙伴。\r\n\r\n你的用户名是：$Affiliate_username\r\n你的登录密码是:：$Affiliate_password\r\n如果您对我们的网站有任何建议，请通过这个邮件告诉我们。\r\n\r\n此致,\r\n\r\n推广经理', 0, 'zh-CN', 'default1');

INSERT INTO `wd_g_emailtemplates` VALUES ('2', 'AFF_EMAIL_NTF_SIGNUP', '新推广伙伴注册', 'Email 通知\r\n\r\n有新的推广伙伴加入推广团队。推广伙伴资料：\r\n\r\n名称： $Affiliate_name\r\n用户名/email：$Affiliate_username\r\n站点：$Affiliate_website\r\n国家：$Affiliate_country\r\n状态：$Affiliate_status ', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('3', 'AFF_EMAIL_NTF_SALE', '新的销售成交', 'MT推广易邮件通知\r\n\r\n新的销售成交达成。详细资料：\r\n\r\n交易ID：$Sale_id\r\n佣金： $Sale_commission\r\n总支出：$Sale_totalcost\r\n订单号：$Sale_orderid\r\n产品ID：$Sale_productid\r\n日期时间：$Sale_date\r\nAffiliate：$Sale_affiliate\r\n状态： $Sale_status\r\nIP地址：$Sale_ip\r\n来路地址：$Sale_referrer\r\n', 0, 'zh-CN', 'default1');

INSERT INTO `wd_g_emailtemplates` VALUES ('5', 'AFF_EMAIL_AF_NTF_SGN', '新推广伙伴注册', 'MT推广易邮件通知\r\n\r\n有新的推广伙伴加入推广团队。推广伙伴资料：\r\n\r\n用户名/email：$Affiliate_username\r\n站点：$Affiliate_website\r\n国家：$Affiliate_country\r\n状态：$Affiliate_status ', 0, 'zh-CN', 'default1');

INSERT INTO `wd_g_emailtemplates` VALUES ('6', 'AFF_EMAIL_AF_NTF_SLE', '新的销售成交佣金', 'MT推广易邮件通知\r\n\r\n新的销售成交达成。详细资料：\r\n\r\n佣金： $Sale_commission\r\n订单号：$Sale_orderid\r\n产品ID：$Sale_productid\r\n日期&时间：$Sale_date\r\n状态：$Sale_status\r\nIP地址：$Sale_ip\r\n来路地址：$Sale_referrer\r\n', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('ed25972d', 'AFF_EMAIL_FORGOTPAS1', '找回密码-第一步', '你好，\r\n\r\n请记下下面的验证码然后进行下一步：\r\n$Affiliate_verification_code\r\n\r\n\r\n', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('491603db', 'AFF_EMAIL_FORGOTPAS2', '找回密码', '你好，\r\n\r\n你的密码已经设置为：$Affiliate_password\r\n你的用户名是：$Affiliate_username', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('a8a1013a', 'AFF_EMAIL_CONTACT_US', '来自推广伙伴的讯息', '$Date $Time\r\n\r\n推广伙伴: $Affiliate_id - $Affiliate_name\r\n\r\n标题：$Affiliate_emailsubject\r\n\r\n内容：\r\n$Affiliate_emailtext', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('1916de1b', 'AFF_EMAIL_ONSIGN', '欢迎注册', '你好 $Affiliate_name，\r\n\r\n感谢你注册加入我们的推广伙伴。我们将对你的申请进行审核如果你通过审核将会收到包含登录资料的邮件。\r\n\r\n如果您对我们的网站有任何建议，请通过这个邮件告诉我们。\r\n\r\n此致，\r\n\r\n推广经理', 0, 'zh-CN', 'default1');

INSERT INTO `wd_g_emailtemplates` VALUES ('5f6e0260', 'AFF_EMAIL_MONTH_REP', '每月报表 $Date-$Month', '广告展示：$Impressions\r\n点击：$Clicks\r\n销售成交： $Sales_approved\r\n引导注册：$Leads_approved\r\n佣金： $Commissions_approved\r\n\r\n-----------------------------------\r\n$Sales_list\r\n\r\n\r\n-----------------------------------\r\n$Leads_list', 0, 'zh-CN', 'default1');

INSERT INTO `wd_g_emailtemplates` VALUES ('091ab586', 'AFF_EMAIL_WE_REP', '每周报表 $Date', '广告展示：$Impressions\r\n点击：$Clicks\r\n销售成交：$Sales_approved\r\n引导注册：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n-----------------------------------\r\n$Sales_list\r\n\r\n\r\n-----------------------------------\r\n$Leads_list', 0, 'zh-CN', 'default1');

INSERT INTO `wd_g_emailtemplates` VALUES ('70aedbf5', 'AFF_EMAIL_AF_ML_REP', '每月报表 $Date $Month', '广告展示：$Impressions\r\n点击：$Clicks\r\n销售成交： $Sales_approved\r\n引导注册：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n-----------------------------------\r\n$Sales_list\r\n\r\n\r\n-----------------------------------\r\n$Leads_list', 0, 'zh-CN', 'default1');

INSERT INTO `wd_g_emailtemplates` VALUES ('574e3282', 'AFF_EMAIL_AFF_WE_REP', '每周报表', '广告展示：$Impressions\r\n点击：$Clicks\r\n销售成交：$Sales_approved\r\n引导注册：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n-----------------------------------\r\n$Sales_list\r\n\r\n\r\n-----------------------------------\r\n$Leads_list', 0, 'zh-CN', 'default1');

INSERT INTO `wd_g_emailtemplates` VALUES ('5b108965', 'AFF_EMAIL_NOTIFY_RC', '新的定期返佣已分配', 'MT推广易邮件通知\r\n\r\n最新一期定期返佣已经分配\r\n\r\n$Date\r\n$Time\r\n$Rc_id\r\n$Rc_commission\r\n$Rc_orderid\r\n$Rc_affiliate\r\n$Rc_status\r\n$Rc_recurringcommissionid', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('5535e79a', 'AFF_EMAIL_DAILY_REP', '每日报表 $Date', '广告展示: $Impressions\r\n点击：$Clicks\r\n销售成交：$Sales_approved\r\n引导注册：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n-----------------------------------\r\n$Sales_list\r\n\r\n\r\n-----------------------------------\r\n$Leads_list', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('4cc40c29', 'AFF_EMAIL_AF_DL_REP', '每日报表 $Date', '广告展示: $Impressions\r\n点击：$Clicks\r\n销售成交：$Sales_approved\r\n引导注册：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n-----------------------------------\r\n$Sales_list\r\n\r\n\r\n-----------------------------------\r\n$Leads_list', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('f595c543', 'AFF_EMAIL_AF_WE_REP', '每周报表 $Date', '广告展示：$Impressions\r\n点击：$Clicks\r\n销售成交：$Sales_approved\r\n引导注册：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n-----------------------------------\r\n$Sales_list\r\n\r\n\r\n-----------------------------------\r\n$Leads_list', 0, 'zh-CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('3cd5c8e5', 'AFF_EMAIL_AFF_CAMP_A', '申请已获批准', '$Affiliate_name，你好\r\n\r\n你已获批参加项目 $camp_name 的推广工作。\r\n\r\n此致，\r\n\r\n推广经理', 0, 'zh-CN', 'default1');



INSERT INTO `wd_g_emailtemplates` VALUES ('7', 'AFF_EMAIL_SIGNUP', '歡迎加入我們的推廣夥伴', '$Affiliate_name 你好，\r\n\r\n感謝您加入成為我們的推廣夥伴。\r\ n\r\n你的用戶名是：$Affiliate_username\r\n你的登錄密碼是:：$Affiliate_password\r\n如果您對我們的網站有任何建議，請通過這個郵件告訴我們。\r\ n\r\n此致,\r\n\r\n推廣經理', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('8', 'AFF_EMAIL_NTF_SIGNUP', '新推廣夥伴註冊', 'Email 通知\r\n\r\n有新的推廣夥伴加入推廣團隊。推廣夥伴資料：\r\n \r \n名稱： $Affiliate_name\r\n用戶名/email：$Affiliate_username\r\n站點：$Affiliate_website\r\n國家：$Affiliate_country\r\n狀態：$Affiliate_status ', 0, 'zh- CN', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('9', 'AFF_EMAIL_NTF_SALE', '新的銷售成交', '推廣易郵件通知\r\n\r\n新的銷售成交達成。詳細資料：\r\n\r \n交易ID：$Sale_id\r\n佣金： $Sale_commission\r\n總支出：$Sale_totalcost\r\n訂單號：$Sale_orderid\r\n產品ID：$Sale_productid\r\n日期時間：$ Sale_date\r\nAffiliate：$Sale_affiliate\r\n狀態： $Sale_status\r\nIP地址：$Sale_ip\r\n來路地址：$Sale_referrer\r\n', 0, 'zh-TW', 'default1 ');
INSERT INTO `wd_g_emailtemplates` VALUES ('10', 'AFF_EMAIL_AF_NTF_SGN', '新推廣夥伴註冊', '推廣易郵件通知\r\n\r\n有新的推廣夥伴加入推廣團隊。推廣夥伴資料：\r \n \r\n用戶名/email：$Affiliate_username\r\n站點：$Affiliate_website\r\n國家：$Affiliate_country\r\n狀態：$Affiliate_status ', 0, 'zh-TW', 'default1' );
INSERT INTO `wd_g_emailtemplates` VALUES ('11', 'AFF_EMAIL_AF_NTF_SLE', '新的銷售成交佣金', '推廣易郵件通知\r\n\r\n新的銷售成交達成。詳細資料：\r\n\ r\n佣金： $Sale_commission\r\n訂單號：$Sale_orderid\r\n產品ID：$Sale_productid\r\n日期&時間：$Sale_date\r\n狀態：$Sale_status\r\nIP地址：$ Sale_ip\r\n來路地址：$Sale_referrer\r\n', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('ed2597tw', 'AFF_EMAIL_FORGOTPAS1', '找回密碼-第一步', '你好，\r\n\r\n請記下下面的驗證碼然後進行下一步：\r \n$Affiliate_verification_code\r\n\r\n\r\n', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('491603tw', 'AFF_EMAIL_FORGOTPAS2', '找回密碼', '你好，\r\n\r\n你的密碼已經設置為：$Affiliate_password\r\n你的用戶名是：$Affiliate_username', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('a8a101tw', 'AFF_EMAIL_CONTACT_US', '來自推廣夥伴的訊息', '$Date $Time\r\n\r\n推廣夥伴: $Affiliate_id - $Affiliate_name\r\n\ r\n標題：$Affiliate_emailsubject\r\n\r\n內容：\r\n$Affiliate_emailtext', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('1916detw', 'AFF_EMAIL_ONSIGN', '歡迎註冊', '你好$Affiliate_name，\r\n\r\n感謝你註冊加入我們的推廣夥伴。我們將對你的申請進行審核如果你通過審核將會收到包含登錄資料的郵件。\r\n\r\n如果您對我們的網站有任何建議，請通過這個郵件告訴我們。\r\n\r\n此致，\r\n\r\n推廣經理', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('5f6e02tw', 'AFF_EMAIL_MONTH_REP', '每月報表$Date-$Month', '廣告展示：$Impressions\r\n點擊：$Clicks\r\n銷售成交： $Sales_approved\ r\n引導註冊：$Leads_approved\r\n佣金： $Commissions_approved\r\n\r\n-------------------------- ---------\r\n$Sales_list\r\n\r\n\r\n----------------------- ------------\r\n$Leads_list', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('091ab5tw', 'AFF_EMAIL_WE_REP', '每週報表$Date', '廣告展示：$Impressions\r\n點擊：$Clicks\r\n銷售成交：$Sales_approved\r\n引導註冊：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n----------------------------- ------\r\n$Sales_list\r\n\r\n\r\n-------------------------- ---------\r\n$Leads_list', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('70aedbtw', 'AFF_EMAIL_AF_ML_REP', '每月報表$Date $Month', '廣告展示：$Impressions\r\n點擊：$Clicks\r\n銷售成交： $Sales_approved\r \n引導註冊：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n--------------------------- --------\r\n$Sales_list\r\n\r\n\r\n------------------------ -----------\r\n$Leads_list', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('574e32tw', 'AFF_EMAIL_AFF_WE_REP', '每週報表', '廣告展示：$Impressions\r\n點擊：$Clicks\r\n銷售成交：$Sales_approved\r\n引導註冊：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n------------------------------- ----\r\n$Sales_list\r\n\r\n\r\n---------------------------- -------\r\n$Leads_list', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('5b1089tw', 'AFF_EMAIL_NOTIFY_RC', '新的定期返佣已分配', '推廣易郵件通知\r\n\r\n最新一期定期返佣已經分配\r\n \r\n$Date\r\n$Time\r\n$Rc_id\r\n$Rc_commission\r\n$Rc_orderid\r\n$Rc_affiliate\r\n$Rc_status\r\n$Rc_recurringcommissionid', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('5535e7tw', 'AFF_EMAIL_DAILY_REP', '每日報表$Date', '廣告展示: $Impressions\r\n點擊：$Clicks\r\n銷售成交：$Sales_approved\r\n引導註冊：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n----------------------------- ------\r\n$Sales_list\r\n\r\n\r\n-------------------------- ---------\r\n$Leads_list', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('4cc40ctw', 'AFF_EMAIL_AF_DL_REP', '每日報表$Date', '廣告展示: $Impressions\r\n點擊：$Clicks\r\n銷售成交：$Sales_approved\r\n引導註冊：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n----------------------------- ------\r\n$Sales_list\r\n\r\n\r\n-------------------------- ---------\r\n$Leads_list', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('f595c5tw', 'AFF_EMAIL_AF_WE_REP', '每週報表$Date', '廣告展示：$Impressions\r\n點擊：$Clicks\r\n銷售成交：$Sales_approved\r\n引導註冊：$Leads_approved\r\n佣金：$Commissions_approved\r\n\r\n----------------------------- ------\r\n$Sales_list\r\n\r\n\r\n-------------------------- ---------\r\n$Leads_list', 0, 'zh-TW', 'default1');
INSERT INTO `wd_g_emailtemplates` VALUES ('3cd5c8tw', 'AFF_EMAIL_AFF_CAMP_A', '申請已獲批准', '$Affiliate_name，你好\r\n\r\n你已獲批參加項目$camp_name 的推廣工作。\r \n\r\n此致，\r\n\r\n推廣經理', 0, 'zh-TW', 'default1');




INSERT INTO wd_g_righttypes VALUES("01", "02", "", "campaigns", "aff_camp_product_categories", "view", NOW(), "L_G_RT_CAMPAIGNS", "L_G_CAMPAIGNS", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("02", NULL, "", "campaigns", "aff_camp_product_categories", "modify", NOW(), "L_G_RT_CAMPAIGNS", "L_G_CAMPAIGNS", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("03", "04", "", "affiliates", "aff_aff_affiliates", "view", NOW(), "L_G_AFFILIATES", "L_G_AFFILIATES", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("04", NULL, "", "affiliates", "aff_aff_affiliates", "modify", NOW(), "L_G_AFFILIATES", "L_G_AFFILIATES", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("05", "06", "", "affiliates", "aff_aff_pay_affiliates", "view", NOW(), "L_G_AFFILIATES", "L_G_PAYOUT", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("06", NULL, "", "affiliates", "aff_aff_pay_affiliates", "modify", NOW(), "L_G_AFFILIATES", "L_G_PAYOUT", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("07", "08", "", "affiliates", "aff_aff_accounting", "view", NOW(), "L_G_AFFILIATES", "L_G_ACCOUNTING", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("08", NULL, "", "affiliates", "aff_aff_accounting", "modify", NOW(), "L_G_AFFILIATES", "L_G_ACCOUNTING", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("09", "10", "", "transactions", "aff_trans_transactions", "view", NOW(), "L_G_TRANSACTIONS", "L_G_TRANSACTIONS", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("10", "11", "", "transactions", "aff_trans_transactions", "approvedecline", NOW(), "L_G_TRANSACTIONS", "L_G_TRANSACTIONS", "L_G_RT_APPROVE_DECLINE", "2");
INSERT INTO wd_g_righttypes VALUES("11", NULL, "", "transactions", "aff_trans_transactions", "modify", NOW(), "L_G_TRANSACTIONS", "L_G_TRANSACTIONS", "L_G_RT_MODIFY", "3");
INSERT INTO wd_g_righttypes VALUES("12", NULL, "", "reports", "aff_rep_quick_report", "view", NOW(), "L_G_REPORTS", "L_G_QUICK", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("13", NULL, "", "reports", "aff_rep_transactions", "view", NOW(), "L_G_REPORTS", "L_G_TRANSACTIONS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("14", NULL, "", "reports", "aff_rep_traffic_and_sales", "view", NOW(), "L_G_REPORTS", "L_G_TRAFFIC", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("15", NULL, "", "reports", "aff_rep_top_20_affiliates", "view", NOW(), "L_G_REPORTS", "L_G_TOP20AFFILIATES", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("16", NULL, "", "reports", "aff_rep_number_of_affiliates", "view", NOW(), "L_G_REPORTS", "L_G_AFFILIATECOUNTS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("17", "18", "", "communication", "aff_comm_email_templates", "view", NOW(), "L_G_COMMUNICATION", "L_G_EMAILTEMPLATES", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("18", NULL, "", "communication", "aff_comm_email_templates", "modify", NOW(), "L_G_COMMUNICATION", "L_G_EMAILTEMPLATES", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("19", NULL, "", "communication", "aff_comm_broadcast_email", "use", NOW(), "L_G_COMMUNICATION", "L_G_BROADCAST_MESSAGE", "L_G_RT_USE", "0");
INSERT INTO wd_g_righttypes VALUES("20", "21", "", "tools", "aff_tool_admins", "view", NOW(), "L_G_TOOLS", "L_G_ADMINS", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("21", NULL, "", "tools", "aff_tool_admins", "modify", NOW(), "L_G_TOOLS", "L_G_ADMINS", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("22", "23", "", "tools", "aff_tool_user_profiles", "view", NOW(), "L_G_TOOLS", "L_G_USER_PROFILES_MANAGER", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("23", NULL, "", "tools", "aff_tool_user_profiles", "modify", NOW(), "L_G_TOOLS", "L_G_USER_PROFILES_MANAGER", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("24", "25", "", "tools", "aff_tool_settings", "view", NOW(), "L_G_TOOLS", "L_G_SETTINGS", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("25", NULL, "", "tools", "aff_tool_settings", "modify", NOW(), "L_G_TOOLS", "L_G_SETTINGS", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("26", NULL, "", "tools", "aff_tool_integration", "view", NOW(), "L_G_TOOLS", "L_G_INTEGRATIONCODE", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("29", NULL, "", "tools", "aff_tool_db_maintenance", "backup", NOW(), "L_G_TOOLS", "L_G_MAINTENANCE", "L_G_RT_BACKUP", "1");
INSERT INTO wd_g_righttypes VALUES("30", NULL, "", "tools", "aff_tool_db_maintenance", "restore", NOW(), "L_G_TOOLS", "L_G_MAINTENANCE", "L_G_RT_RESTORE", "2");
INSERT INTO wd_g_righttypes VALUES("31", "32", "", "transactions", "aff_trans_recurr_transactions", "view", NOW(), "L_G_TRANSACTIONS", "L_G_RECURRINGCOMMS", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("32", "33", "", "transactions", "aff_trans_recurr_transactions", "approvedecline", NOW(), "L_G_TRANSACTIONS", "L_G_RECURRINGCOMMS", "L_G_RT_APPROVE_DECLINE", "2");
INSERT INTO wd_g_righttypes VALUES("33", NULL, "", "transactions", "aff_trans_recurr_transactions", "modify", NOW(), "L_G_TRANSACTIONS", "L_G_RECURRINGCOMMS", "L_G_RT_MODIFY", "3");
INSERT INTO wd_g_righttypes VALUES("34", "35", "", "campaigns", "aff_camp_banner_links", "view", NOW(), "L_G_RT_CAMPAIGNS", "L_G_BANNERS", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("35", NULL, "", "campaigns", "aff_camp_banner_links", "modify", NOW(), "L_G_RT_CAMPAIGNS", "L_G_BANNERS", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("36", "37", "", "communication", "aff_comm_communications", "view", NOW(), "L_G_COMMUNICATION", "L_G_COMMUNICATION", "L_G_RT_VIEW", "1");
INSERT INTO wd_g_righttypes VALUES("37", NULL, "", "communication", "aff_comm_communications", "modify", NOW(), "L_G_COMMUNICATION", "L_G_COMMUNICATION", "L_G_RT_MODIFY", "2");
INSERT INTO wd_g_righttypes VALUES("38", NULL, "", "reports", "aff_rep_top_urls", "view", NOW(), "L_G_REPORTS", "L_G_TOPREFERRINGURLS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("39", NULL, "", "reports", "aff_rep_top_campaigns", "view", NOW(), "L_G_REPORTS", "L_G_TOPCAMPAIGNS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("41", NULL, "", "reports", "aff_rep_non_perform_affiliates", "view", NOW(), "L_G_REPORTS", "L_G_NONPERFORMAFFILIATES", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("42", NULL, "", "reports", "aff_rep_rotator", "view", NOW(), "L_G_REPORTS", "L_G_ROTATORSTATS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("51", NULL, "", "tools", "aff_tool_db_maintenance", "repair", NOW(), "L_G_TOOLS", "L_G_MAINTENANCE", "L_G_RT_REPAIROPTIMIZE", "3");
INSERT INTO wd_g_righttypes VALUES("52", NULL, "", "tools", "aff_tool_integration", "modify", NOW(), "L_G_TOOLS", "L_G_INTEGRATIONCODE", "L_G_RT_MODIFY", "1");
INSERT INTO wd_g_righttypes VALUES("53", NULL, "", "tools", "aff_tool_signupsettings", "modify", NOW(), "L_G_TOOLS", "L_G_AFFSIGNUPSETTINGS", "L_G_RT_MODIFY", "1");
INSERT INTO wd_g_righttypes VALUES("55", NULL, "", "tools", "aff_tool_signupsettings", "view", NOW(), "L_G_TOOLS", "L_G_AFFSIGNUPSETTINGS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("56", NULL, "", "tools", "aff_tool_afflayoutsettings", "view", NOW(), "L_G_TOOLS", "L_G_LAYOUTSETTINGS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("57", NULL, "", "affiliates", "aff_aff_accountingsettings", "view", NOW(), "L_G_AFFILIATES", "L_G_ACCOUNTINGSETTINGS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("58", NULL, "", "affiliates", "aff_aff_accountingsettings", "modify", NOW(), "L_G_AFFILIATES", "L_G_ACCOUNTINGSETTINGS", "L_G_RT_MODIFY", "0");
INSERT INTO wd_g_righttypes VALUES("59", NULL, "", "affiliates", "aff_aff_appliedaffiliates", "view", NOW(), "L_G_AFFILIATES", "L_G_APPLIEDAFFILIATES", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("60", NULL, "", "affiliates", "aff_aff_appliedaffiliates", "modify", NOW(), "L_G_AFFILIATES", "L_G_APPLIEDAFFILIATES", "L_G_RT_MODIFY", "0");
INSERT INTO wd_g_righttypes VALUES("61", NULL, "", "affiliates", "aff_aff_appliedaffiliates", "approvedecline", NOW(), "L_G_AFFILIATES", "L_G_APPLIEDAFFILIATES", "L_G_RT_APPROVE_DECLINE", "0");
INSERT INTO wd_g_righttypes VALUES("62", NULL, "", "tools", "aff_tool_affpanelsettings", "view", NOW(), "L_G_TOOLS", "L_G_PANELSETTINGS", "L_G_RT_VIEW", "0");
INSERT INTO wd_g_righttypes VALUES("63", NULL, "", "tools", "aff_tool_db_maintenance", "archive", NOW(), "L_G_TOOLS", "L_G_MAINTENANCE", "L_G_RT_ARCHIVE", "4");
INSERT INTO wd_g_righttypes VALUES("64", NULL, "", "tools", "aff_tool_affpanelsettings", "modify", NOW(), "L_G_TOOLS", "L_G_PANELSETTINGS", "L_G_RT_MODIFY", "1");
INSERT INTO wd_g_righttypes VALUES("65", NULL, "", "tools", "aff_tool_afflayoutsettings", "modify", NOW(), "L_G_TOOLS", "L_G_LAYOUTSETTINGS", "L_G_RT_MODIFY", "1");

INSERT INTO `wd_g_righttypes` VALUES
('67', NULL, '', 'pzone', 'aff_pzone_basic', 'modify', NOW(), 'L_G_PZONE', 'L_G_PZONE_SETTINGS', 'L_G_RT_MODIFY', NULL),
('68', NULL, '', 'pzone', 'aff_pzone_homead', 'modify', NOW(), 'L_G_PZONE', 'L_G_PZONE_FLASHAD', 'L_G_RT_MODIFY', NULL),
('69', NULL, '', 'pzone', 'aff_pzone_footer', 'modify', NOW(), 'L_G_PZONE', 'L_G_PZONE_SETFOOTER', 'L_G_RT_MODIFY', NULL),
('70', NULL, '', 'pzone', 'aff_pzone_article', 'modify', NOW(), 'L_G_PZONE', 'L_G_PZONE_ARTICLES', 'L_G_RT_MODIFY', NULL),
('71', NULL, '', 'pzone', 'aff_pzone_articlecate', 'modify', NOW(), 'L_G_PZONE', 'L_G_PZONE_ARTICLECATES', 'L_G_RT_MODIFY', NULL),
('72', NULL, '', 'pzone', 'aff_pzone_flinks', 'modify', NOW(), 'L_G_PZONE', 'L_G_PZONE_FLINKS', 'L_G_RT_MODIFY', NULL),
('73', NULL, '', 'pzone', 'aff_pzone_setupwizard', 'modify', NOW(), 'L_G_PZONE', 'L_G_SETUPWIZARD', 'L_G_RT_MODIFY', NULL),
('74', NULL, '', 'pzone', 'aff_pzone_themes', 'modify', NOW(), 'L_G_PZONE', 'L_G_PZONE_CHOOSETHEME', 'L_G_RT_MODIFY', NULL),
('75', NULL, '', 'pzone', 'aff_pzone_manualofuse', 'modify', NOW(), 'L_G_PZONE', 'L_G_MANUALOFUSE', 'L_G_RT_VIEW', NULL);



INSERT INTO wd_g_userprofiles VALUES ('userpro1', '超级管理员', '3', 'default1');


INSERT INTO wd_g_userrights VALUES("303322f3", "userpro1", "01");
INSERT INTO wd_g_userrights VALUES("98edf3f2", "userpro1", "02");
INSERT INTO wd_g_userrights VALUES("6d0469b2", "userpro1", "03");
INSERT INTO wd_g_userrights VALUES("8a264905", "userpro1", "04");
INSERT INTO wd_g_userrights VALUES("3591ac15", "userpro1", "05");
INSERT INTO wd_g_userrights VALUES("fe7c978a", "userpro1", "06");
INSERT INTO wd_g_userrights VALUES("9eaa424f", "userpro1", "07");
INSERT INTO wd_g_userrights VALUES("de631656", "userpro1", "08");
INSERT INTO wd_g_userrights VALUES("62670421", "userpro1", "09");
INSERT INTO wd_g_userrights VALUES("8a721021", "userpro1", "10");
INSERT INTO wd_g_userrights VALUES("6bfdc423", "userpro1", "11");
INSERT INTO wd_g_userrights VALUES("55bae64f", "userpro1", "12");
INSERT INTO wd_g_userrights VALUES("0acf1810", "userpro1", "13");
INSERT INTO wd_g_userrights VALUES("7a209eb2", "userpro1", "14");
INSERT INTO wd_g_userrights VALUES("75d8c0f7", "userpro1", "15");
INSERT INTO wd_g_userrights VALUES("c2c671fe", "userpro1", "16");
INSERT INTO wd_g_userrights VALUES("0f2295a4", "userpro1", "17");
INSERT INTO wd_g_userrights VALUES("f5f6a7f6", "userpro1", "18");
INSERT INTO wd_g_userrights VALUES("e4025111", "userpro1", "19");
INSERT INTO wd_g_userrights VALUES("d6f68d7a", "userpro1", "20");
INSERT INTO wd_g_userrights VALUES("c677b9d0", "userpro1", "21");
INSERT INTO wd_g_userrights VALUES("39d51858", "userpro1", "22");
INSERT INTO wd_g_userrights VALUES("df484242", "userpro1", "23");
INSERT INTO wd_g_userrights VALUES("18f2a81a", "userpro1", "24");
INSERT INTO wd_g_userrights VALUES("c702dc78", "userpro1", "25");
INSERT INTO wd_g_userrights VALUES("46cb70c0", "userpro1", "26");
INSERT INTO wd_g_userrights VALUES("0723cf68", "userpro1", "29");
INSERT INTO wd_g_userrights VALUES("0e8581e8", "userpro1", "30");
INSERT INTO wd_g_userrights VALUES("a0c939d5", "userpro1", "31");
INSERT INTO wd_g_userrights VALUES("c5bcad90", "userpro1", "32");
INSERT INTO wd_g_userrights VALUES("715114df", "userpro1", "33");
INSERT INTO wd_g_userrights VALUES("e5597917", "userpro1", "34");
INSERT INTO wd_g_userrights VALUES("79cc1788", "userpro1", "35");
INSERT INTO wd_g_userrights VALUES("eede7703", "userpro1", "36");
INSERT INTO wd_g_userrights VALUES("cdc30ab1", "userpro1", "37");
INSERT INTO wd_g_userrights VALUES("cdc59g1u", "userpro1", "38");
INSERT INTO wd_g_userrights VALUES("c285fdsg", "userpro1", "39");
INSERT INTO wd_g_userrights VALUES("g45h4g41", "userpro1", "41");
INSERT INTO wd_g_userrights VALUES("grte4g41", "userpro1", "42");
INSERT INTO wd_g_userrights VALUES("g45h4g51", "userpro1", "51");
INSERT INTO wd_g_userrights VALUES("g45h4g52", "userpro1", "52");
INSERT INTO wd_g_userrights VALUES("g45h4g53", "userpro1", "53");
INSERT INTO wd_g_userrights VALUES("g45h4g55", "userpro1", "55");
INSERT INTO wd_g_userrights VALUES("g45h4g56", "userpro1", "56");
INSERT INTO wd_g_userrights VALUES("g45h4g57", "userpro1", "57");
INSERT INTO wd_g_userrights VALUES("g45h4g58", "userpro1", "58");
INSERT INTO wd_g_userrights VALUES("g45h4g59", "userpro1", "59");
INSERT INTO wd_g_userrights VALUES("g45h4g60", "userpro1", "60");
INSERT INTO wd_g_userrights VALUES("g45h4g61", "userpro1", "61");
INSERT INTO wd_g_userrights VALUES("g45h4g62", "userpro1", "62");
INSERT INTO wd_g_userrights VALUES("g45h4g63", "userpro1", "63");
INSERT INTO wd_g_userrights VALUES("g45h4g64", "userpro1", "64");
INSERT INTO wd_g_userrights VALUES("g45h4g65", "userpro1", "65");
INSERT INTO wd_g_userrights VALUES("g45h4g66", "userpro1", "66");
INSERT INTO wd_g_userrights VALUES("g45h4g67", "userpro1", "67");
INSERT INTO wd_g_userrights VALUES("g45h4g68", "userpro1", "68");
INSERT INTO wd_g_userrights VALUES("g45h4g69", "userpro1", "69");
INSERT INTO wd_g_userrights VALUES("g45h4g70", "userpro1", "70");
INSERT INTO wd_g_userrights VALUES("g45h4g71", "userpro1", "71");
INSERT INTO wd_g_userrights VALUES("g45h4g72", "userpro1", "72");
INSERT INTO wd_g_userrights VALUES("g45h4g73", "userpro1", "73");
INSERT INTO wd_g_userrights VALUES("g45h4g74", "userpro1", "74");
INSERT INTO wd_g_userrights VALUES("g45h4g75", "userpro1", "75");

INSERT INTO `wd_pa_payoutoptions` VALUES ('alipay', 'default1', '支付宝', 0, 'ALIPAYEMAIL\\t$Affiliate_amount\\tCNY\\t$Affiliate_payfieldid\\r\\n', 0, 'L_G_ALIPAY', 1, '<form method="post" action="payforaffiliate.php" target="_blank">\r\n  <input type="hidden" name="amount" value="$Affiliate_amount">\r\n  <input type="hidden" name="userid" value="$Affiliate_userid">\r\n    <input type="hidden" name="accountid" value="$Affiliate_accountid">\r\n  <input type="image" src="../templates/affiliate/default/images/go2alipay.png" style="border:0;" name="button" id="button" value="前往支付宝付款">\r\n</form>');
INSERT INTO `wd_pa_payoutoptions` VALUES
('8706a5d2', 'default1', '银行汇款', 0, '', 0, 'L_G_BANK_TRANSFER', 2, '');

INSERT INTO `wd_pa_payoutfields` VALUES ('alipay', 'alipay', 'ALIPAYEMAIL', '支付宝账号', 'L_G_METHODFIELDALIPAYEMAIL', 1, 0, 1, NULL, 1, NULL);
INSERT INTO `wd_pa_payoutfields` VALUES ('3d547c1a', '8706a5d2', 'bankname', '开户行', 'L_G_BANK_NAME', 2, 0, 0, '中国农业银行\r\n中国工商银行\r\n中国建设银行\r\n中国邮政储蓄\r\n中国光大银行\r\n中国交通银行\r\n中国民生银行\r\n中国银行', 1, '');
INSERT INTO `wd_pa_payoutfields` VALUES ('f2d6a3a8', '8706a5d2', 'bankaccountid', '账号/卡号', 'L_G_BANK_ACCOUNT', 1, 0, 0, '', 2, '');

INSERT INTO `wd_pz_settings` VALUES ('1', 'sitename', 'MT推广易4.1 - MarkeTools.CN', 'yes');
INSERT INTO `wd_pz_settings` VALUES ('2', 'sitelogo', '', 'yes');
INSERT INTO `wd_pz_settings` VALUES ('3', 'siteurl', '', 'yes');
INSERT INTO `wd_pz_settings` VALUES ('4', 'theme', 'default', 'yes');
INSERT INTO `wd_pz_settings` VALUES('5', 'flashad', 'a:2:{s:3:"img";a:3:{i:0;s:36:"/banners/uploadfiles/image/pzone.png";i:1;s:38:"/banners/uploadfiles/image/binding.png";i:2;s:35:"/banners/uploadfiles/image/flow.png";}s:3:"lnk";a:3:{i:0;s:0:"";i:1;s:0:"";i:2;s:0:"";}}', 'yes');
INSERT INTO `wd_pz_settings` VALUES ('6', 'footer', '<p style="text-align: center;"><span style="color: rgb(255, 102, 0);">修改页面底部信息请到后台 &ldquo;推广专区 &gt; 专区底部信息设置&rdquo; 修改</span></p>\r\n<p style="text-align: center;">诚聘英才 | 联系我们 |  广告服务  | 合作伙伴 | 法律声明 | 征稿启事 | 网站地图 | <a href="http://marketools.cn" target="_blank">MT推广易</a></p>\r\n<p style="text-align: center;">Copyright@2007-2010 MT推广易 MarkeTools.cn All Right Reserved.</p>\r\n<p style="text-align: center;">琼ICP备08001499号</p>', 'yes');

INSERT INTO `wd_pz_cates` VALUES('pzoneggg', '公告', 1, '', NOW(), 'no');
INSERT INTO `wd_pz_cates` VALUES('pzonefaq', '常见问题', 3, '', NOW(), 'yes');
INSERT INTO `wd_pz_cates` VALUES('syscates', '系统分类', 0, '系统保留分类，不可删除。', NOW(), 'no');

INSERT INTO `wd_pz_links` VALUES('599aa34f', 'MT推广易', 'http://marketools.cn', '/templates/affiliate/default/images/web_logo.gif', 1, 'show', NOW());
INSERT INTO `wd_pz_links` VALUES('ce23621e', 'MT在线演示', 'http://demo.marketools.cn', '', 1, 'show', NOW());
INSERT INTO `wd_pz_links` VALUES('310f3dbb', '支付宝', 'http://alipay.com', 'http://img.alipay.com/pa/frame/v1/logo-alipay-96x31.png', 2, 'show', NOW());
INSERT INTO `wd_pz_links` VALUES('edea41a4', 'ECShop商店整合演示', 'http://ecshop.marketools.cn', '', 2, 'show', NOW());
INSERT INTO `wd_pz_links` VALUES('b756153d', 'MT推广易', 'http://marketools.cn', '', 0, 'show2nav', NOW());


INSERT INTO `wd_pz_posts` VALUES ('97435d6e', 'pzoneggg', '1', NOW(), '系统上线通知', '<p>我们的推广员计划上限啦！~<img alt="" src="http://a.com/include/fckeditor/editor/images/smiley/msn/tounge_smile.gif" /></p>\r\n<p>赶快注册赚取属于您的佣金吧！</p>', 'no');
INSERT INTO `wd_pz_posts` VALUES ('e568ee94', 'pzonefaq', '1', NOW(), '常见问题集合', '<table width="100%" cellspacing="0" cellpadding-0="">\r\n    <tbody>\r\n        <tr>\r\n            <td align="left">\r\n            <table cellspacing="0" cellpadding="2" border="0" style="padding: 0px;">\r\n                <tbody>\r\n                    <tr>\r\n                        <td align="left"><a href="#whatineed" class="apFaq">1. 怎样开始产品的推广?</a></td>\r\n                    </tr>\r\n                    <tr>\r\n                        <td align="left"><a href="#howpaid" class="apFaq">2. 怎么确保我的推广会获得佣金?</a></td>\r\n                    </tr>\r\n                    <tr>\r\n                        <td align="left"><a href="#payment" class="apFaq">3. 推广佣金怎么支付?</a></td>\r\n                    </tr>\r\n                    <tr>\r\n                        <td align="left"><a href="#afflink" class="apFaq">4. 什么是推广链接?</a></td>\r\n                    </tr>\r\n                    <tr>\r\n                        <td align="left"><a href="#ppc" class="apFaq">5. 我能使用搜索引擎点击竞价推广产品吗?</a></td>\r\n                    </tr>\r\n                    <tr>\r\n                        <td align="left"><a href="#training" class="apFaq">6. 对于推广伙伴有什么培训方案吗?</a></td>\r\n                    </tr>\r\n                </tbody>\r\n            </table>\r\n            <p>&nbsp;</p>\r\n            <br />\r\n            <br />\r\n            <p><a name="whatineed"></a> <span class="apFaqAnswer">1. 怎么样开始产品的推广?</span><br />\r\n            在你登录后你可以看到开始使用的部分.  <br />\r\n            你可以选择商家发布的广告横幅或链接放到你的站点页面上. 当访问者点击你的推广链接, 他将直接访问到我们的网站. 如果这位访问者购买了我们的产品, 你将获得相应的佣金.</p>\r\n            <p><a name="howpaid"></a> <span class="apFaqAnswer">2. 怎么确保我的推广会获得佣金?</span><br />\r\n            我们使用的推广程序是由<b>MT推广易 MarkeTools.cn</b>推出, 是国内最好的推广程序. MT推广易组合使用cookies和IP地址进行流量分析，确保准确可靠地确认所有推广流量.  当访客通过你的推广链接到达我们的网站, 我们的系统将记录他的访问并在他的计算机上放一个cookies.  当访客购买我们的商品时, 系统将检查他的计算机上面的cookie (如果没找到cookie, 就检查来路IP地址记录) 以确认那个推广帐号可以获得佣金.  <br />\r\n            整个处理过程完全自动化进行. 所有的推广活动都会被正确记录.</p>\r\n            <p><a name="payment"></a> <span class="apFaqAnswer">3. 推广佣金怎么支付?</span><br />\r\n            你可以选择获得佣金的方式,比如支付宝或银行汇款.  我们目前不支持支票汇款. <br />\r\n            所有结算都是使用人民币, 按 <b>每月结算一次</b>, 一般在15号左右.</p>\r\n            <p><a name="afflink"></a> <span class="apFaqAnswer">4. 什么是推广链接?</span><br />\r\n            推广链接是一个特定的网络地址,当访客点击这个地址将会转到目标商品页面并记录下推广伙伴信息.  你可以在你的控制面板里面找到不同的广告类型链接,选择合适的放到你的站点或文章中.</p>\r\n            <p><a name="ppc"></a> <span class="apFaqAnswer">5. 我能使用搜索引擎点击竞价推广产品吗?</span><br />\r\n            当然可以! 你可以使用搜索引擎的竞价广告推广我们的商品. 目前这种推广方法越来越流行. 并且我们知道有好些我们的推广伙伴使用这种方法得到了很好的收益.</p>\r\n            <p><a name="whatnow"></a> <span class="apFaqAnswer">6. 对于推广伙伴有什么培训方案吗?</span><br />\r\n            一些基本的推广知识和有用的小技巧已经保存在你的控制面板里面. 同时我们会定期发送一些最新知识与推广教程到你的电子邮件中.</p>\r\n            </td>\r\n        </tr>\r\n    </tbody>\r\n</table>', 'no');
INSERT INTO `wd_pz_posts` VALUES ('f911672d', 'syscates', '1', NOW(), '系统介绍', '<ul>\r\n    <li><strong>独一无二广告跟踪系统确保可靠性</strong>&nbsp;</li>\r\n    <li>不限制推广员数量</li>\r\n    <li>自设cookies保留时间</li>\r\n    <li>整合支付宝在线支付佣金</li>\r\n    <li>历史推广事件全保留</li>\r\n    <li>无限广告数量</li>\r\n    <li>按不同绩效对推广员设置激励佣金</li>\r\n    <li>允许多管理员</li>\r\n    <li>支持循环定期订阅佣金 (周付, 月付, 季付, 年付)</li>\r\n    <li>可设置金额舍入方式</li>\r\n    <li>使用控制面板可轻易设置全部参数</li>\r\n    <li>快速检测你的广告设置</li>\r\n    <li>支持多层次推广伙伴</li>\r\n</ul>\r\n<p><img width="630" height="455" src="banners/uploadfiles/image/systemclassic.png" alt="" /></p>', 'yes');
INSERT INTO `wd_pz_posts` VALUES ('eb3198e0', 'syscates', '1', NOW(), '加入流程', '<p style="text-align: center;"><img width="300" height="306" alt="" src="banners/uploadfiles/image/affiliates.png" /></p>\r\n<p>您只需要注册成为我们的推广伙伴，登陆推广员面板获取广告代码并投放，赚钱就是这么轻松！</p>\r\n<p><strong>1、复制，2、粘贴，3、赚赚赚！</strong></p>', 'yes');



insert into wd_pa_integration
values('general1','通用解决方案', NULL,
'MT推广易适合几乎所有类型的账户、支付网关、购物车和会员系统。<br/><br/><b>整合指的是什么意思呢？</b><br> 整合是指把MT推广易与你的网站连接起来，关联到你的网站的购物车或支付网关。这样当交易达成的时候MT推广易可以接受到你网站通知的消息并进行记录佣金分配。当商家网站通知MT推广易交易达成，MT推广易将记录这个信息并在引导该交易的推广伙伴名下记录一笔佣金。 <br/><br/> 通用的整合方法是在购物成功后的页面上或在线支付成交后的页面上放一条MT推广易代码或隐藏图片来告知MT推广易交易已经成功达成。',
'整合所需要做的就是这么简单。 当交易达成，MT推广易系统中的交易跟踪程序sale.php将被调用，并为推广伙伴记录佣金。有JS和SOCKET两种方式触发跟踪，任选一种方式整合即可。',
0, 1);

INSERT INTO wd_pa_integration VALUES ('ecshop', 'ECShop2.7.2', NULL, 'ECShop网店系统是一套免费开源的网上商店软件，无论在稳定性、代码优化、运行效率、负载能力、安全等级、功能可操控性和权限严密性等方面都居国内外同类产品领先地位。<br />以下描述中所提到的文件都是相对于你的ECShop网店程序根目录，且使用其默认模板，如果你使用的是其他模板，代码添加的位置可能会有所不同。', '至此，你的ECShop网店程序已经和MT推广易完美整合，你可以开始使用MT推广易组建推广团队，推广你的网店！', 0, 1);

insert into wd_pa_integrationsteps
values('general1', 'general1', 1,
'<b>方式一：JS触发</b><br />打开你的网购支付后页面比如"感谢您的购买"之类，并把下面的代码填写到你的页面里面任意地方。<br />根据你系统使用的语言，调用相应的API文件，获取令牌。本范例是使用PHP API程序。<br />API文件track.php位于MT推广易程序/api目录下，请将其拷贝至你的网站调用。建议拷贝到你网站根目录 /api/marketools/ 下。如果本程序是安装在你网站的某个目录下，则可直接调用，无需拷贝。',
'<?php\r\n\trequire_once("/api/marketools/track.php");\r\n\t$token=Marketools_GetTrackToken();\r\n?>\r\n<script id=\"pap_x2s6df8d\" src=\"$SCRIPTDIRsale.js\" type=\"text/javascript\"></script>\r\n<script type=\"text/javascript\">\r\n<!--\r\n\tvar TotalCost="XXXXXX.XX";\r\n\tvar OrderID="XXXXXX";\r\n\tvar ProductID="XXXXXX";\r\n\tvar Data1="<?php echo $token;?>";\r\n\tpapSale();\r\n-->\r\n</script>',
'代码里面的XXXXXX用下面的值代替:<br/> <b>TotalCost</b> (按百分比计算佣金的时候需要该值) - 商品的价格 <br/> <b>OrderID</b> (可选) - 用于确认交易成交的商品订单号，应该是独一无二的。<br/> <b>ProductID</b> (可选) - 所销售的商品ID号。 <b>Data1</b> (必须) - 令牌字符串，使用API获取。<br/><br/> 除了商品价格外，其他的选项可填可不填，商品价格需要用于按百分比计算的销售佣金。 <br/> 同样，如果你希望使用<b>强制按产品ID选择佣金</b>选项的话 - 得设置ProductID的值。 <br/><br/> 如果你需要设商品价格和订单ID，但在该页面上又无法调用这些参数的话，这个情况就比较复杂，没有一个统一的解决方案。你可以考虑把MT推广易代码放在可以调用以上那些值的页面，在交易成功后跳转到该页面。你也可以联系我们的客服寻求帮助获得解决方法。','zh-CN');

insert into wd_pa_integrationsteps
values('general2', 'general1', 2,
'<b>方式二：SOCKET触发</b><br />具体参数请参照方式一的说明信息。',
'<?php\r\n\trequire_once("/api/marketools/track.php");\r\n\t$params = array(\r\n\t\t"TotalCost"=>"xxxxxx",\r\n\t\t"OrderID"=>"xxxxxx",\r\n\t\t"ProductID"=>"xxxxxx",\r\n\t\t"Data1"=>Marketools_GetTrackToken()\r\n\t);\r\n\tMarketools_SaleNotify($params);\r\n?>',NULL,'zh-CN');

insert into wd_pa_integrationsteps
values('general3', 'general1', 2,
'<b>退款通知：</b><br />当您的商城系统产生一笔退款事件时，可整合退款跟踪代码，取消该交易产生的佣金。其中$orderid是销售跟踪时发送的订单ID。您可以<a href="index.php?md=Affiliate_Merchants_Views_Commisionsettings">点此设置退款期限</a>时长。',
'<?php\r\n\trequire_once("/api/marketools/track.php");\r\n\tMarketools_RefundNotify($orderid);\r\n?>',NULL,'zh-CN');

insert into wd_pa_integrationsteps
values('ecshop1', 'ecshop', 1,
'<b>带条件的全站点击整合</b><br />我们推荐将点击跟踪代码放入全站共用的网站底部模板页，这样你的推广员就可以拿你网站的任何页面去推广。当然你也可以只在广告目标页面放置点击跟踪代码，具体请参考 <b>整合向导 第二步 点击跟踪</b> <br /> 找到 /themes/default/library/page_footer.lbi 最后添加如下代码。该整合判断了如果页面是 <b>销售/注册</b> 跟踪页面，则不进行点击跟踪。','<!-- {if $__mt_clicktrack neq "disable"} -->\r\n<script id="pap_x2s6df8d" src="$SCRIPTDIRtrack.js" type="text/javascript"></script>\r\n<script type="text/javascript">\r\n<!--\r\npapTrack();\r\n//-->\r\n</script>\r\n<!-- {/if} -->',NULL,'zh-CN');

insert into wd_pa_integrationsteps
values('ecshop2', 'ecshop', 2,
'<b>余额支付：程序页面整合</b><br />整合了余额支付，当会员采用余额支付时，将会触发跟踪。<br />找到 /flow.php 中 elseif ($_REQUEST[\'step\'] == \'done\') 语句块，在该语句块最后(约1777行)添加如下代码。','/*----------------------------------MARKETOOLS TRACK START----------------------------------*/\r\nrequire_once(ROOT_PATH . "api/marketools/track.php"); //调用API文件\r\n$smarty->assign("__mt_clicktrack", "disable"); //禁止此页面的点击跟踪\r\n/* 使用MT JS跟踪方式，不建议使用 */\r\n/*\r\n$smarty->assign("__mt_jsaletrack", "enable"); //开启此页面的JS方式的销售跟踪\r\nif($_POST["payment"]==1) { //你网店系统余额支付方式的ID可能不是1\r\n$smarty->assign("__mt_token", Marketools_GetTrackToken());\r\n}\r\n*/\r\n\r\n/* 使用 MT SOCKET/PHP API 方式跟踪，推荐使用 */\r\n$smarty->assign("__mt_jsaletrack", "disable"); //禁止此页面的JS方式的销售跟踪\r\nif($_POST["payment"]==1) { //你网店系统余额支付方式的ID可能不是1\r\n$params = array(\r\n\t"TotalCost"=>$total["amount"], //销售总价\r\n\t"OrderID"=>$order["order_sn"], //外部订单ID\r\n\t//"ProductID"=>"", //产品ID\r\n\t"Data1"=>Marketools_GetTrackToken() //令牌串\r\n);\r\n\r\n//触发跟踪事件\r\nMarketools_SaleNotify($params);\r\n}\r\n/*----------------------------------MARKETOOLS TRACK END----------------------------------*/',NULL,'zh-CN');

insert into wd_pa_integrationsteps
values('ecshop3', 'ecshop', 3,
'<b>余额支付：模板页面整合</b><br />在 /themes/default/flow.dwt 结尾处 &lt;/html&gt; 之前(约898行)添加如下代码。注意：如果你在上一步中采用的SOCKET触发方式，可略过此步，这一步仅当在使用JS触发方式时有效。','<!-- {if $__mt_jsaletrack eq "enable"} -->\r\n<!-- {if $step eq "done"} -->\r\n<!-- {if $order.pay_id eq 1} -->\r\n<script id="pap_x2s6df8d" src="$SCRIPTDIRsale.js" type="text/javascript"></script>\r\n<script type="text/javascript">\r\n<!--\r\n	var TotalCost = "{$total.amount}";\r\n	var OrderID = "{$order.order_sn}";\r\n	var Data1 = "{$__mt_token}";\r\n	papSale();\r\n-->\r\n</script>\r\n<!-- {/if} -->\r\n<!-- {/if} -->\r\n<!-- {/if} -->',NULL,'zh-CN');

insert into wd_pa_integrationsteps
values('ecshop4', 'ecshop', 4,
'<b>第三方支付平台：全局程序页面整合</b><br />第三方支付平台有如支付宝，财付通等，要整合这些支付平台，必须先整合 <b>全局程序页面整合，全局模板页面整合</b> 这两步。<br />在 /respond.php 找到语句块 if (file_exists($plugin_file)) ，在该语句块最后(约75行)添加如下代码。','/*----------------------------------MARKETOOLS TRACK START----------------------------------*/\r\n$smarty->assign("__mt_clicktrack", "disable"); //禁止此页面的点击跟踪\r\nrequire_once(ROOT_PATH . "api/marketools/track.php"); //调用API\r\n\r\n/* 使用MT JS跟踪方式，需修改对应模板，不推荐使用 */\r\n/*\r\n$smarty->assign("__mt_jsaletrack", "enable"); //开启此页面的JS方式的销售跟踪\r\nif($respond_result) {\r\n$mtparam = $payment->getmtparam();\r\n$smarty->assign("__mt_token", Marketools_GetTrackToken());\r\n$smarty->assign("__mt_order_sn", $mtparam["order_sn"]);\r\n$smarty->assign("__mt_total_fee", $mtparam["total_fee"]);\r\n}\r\n*/\r\n\r\n/* 使用 MT SOCKET/PHP API 方式跟踪，推荐使用 */\r\n$smarty->assign("__mt_jsaletrack", "disable"); //禁止此页面的JS方式的销售跟踪\r\nif($respond_result) {\r\n$mtparam = $payment->getmtparam();\r\n$params = array(\r\n\t"TotalCost"=>$mtparam["total_fee"], //销售总价\r\n\t"OrderID"=>$mtparam["order_sn"], //外部订单ID\r\n\t"data1"=>Marketools_GetTrackToken() //令牌串\r\n);\r\n//触发跟踪\r\nMarketools_SaleNotify($params);\r\n}\r\n/*----------------------------------MARKETOOLS TRACK END----------------------------------*/',NULL,'zh-CN');

insert into wd_pa_integrationsteps
values('ecshop5', 'ecshop', 5,
'<b>第三方支付平台：全局模板页面整合</b><br />在 /themes/default/respond.dwt 结尾处 &lt;/html&gt; 之前(约86行)添加如下代码。','<!-- {if $__mt_jsaletrack eq "enable"} -->\r\n<script id="pap_x2s6df8d" src="$SCRIPTDIRsale.js" type="text/javascript"></script>\r\n<script type="text/javascript">\r\n<!--\r\n\tvar TotalCost = "{$__mt_total_fee}";\r\n\tvar OrderID = "{$__mt_order_sn}";\r\n\tvar Data1 = "{$__mt_token}";\r\n\tpapSale();\r\n-->\r\n</script>\r\n<!-- {/if} -->',NULL,'zh-CN');

insert into wd_pa_integrationsteps
values('ecshop6', 'ecshop', 6,
'<b>第三方支付平台：支付宝</b><br />你需要先在ECShop的后台安装支付宝支付方式。并确定已经整合了 <b>4,5</b> 两步。<br />请将本系统里的文件 <a href="../api/ecshop/payment.rar">/api/ecshop/payment</a> 文件下的所有附件覆盖到你网店系统的/includes/modules/payment，这样就整合完毕。注意：目前只支持支付宝，我们将继续推出其他支付方式的整合。',NULL,NULL,'zh-CN');



insert into `wd_pa_campaigns` values ('cliksale', 'default1', '默认项目', '', '', NOW(), 0, 0, 5, '');
insert into `wd_pa_campaigns` values ('clickreg', 'default1', '引导注册', '', '', NOW(), 0, 0, 2, 'leadregist');
