├── .bowerrc ├── .gitignore ├── README.md ├── appDown ├── css │ ├── base.css │ ├── jquery.fullPage.css │ └── style.css ├── img │ ├── android_ewm.png │ ├── app_icon.png │ ├── btn.png │ ├── erweima.png │ ├── font_1421856281_183794.eot │ ├── font_1421856281_183794.svg │ ├── font_1421856281_183794.ttf │ ├── font_1421856281_183794.woff │ ├── gfwx.png │ ├── gzh.png │ ├── ios_ewm.png │ ├── ios_img01.png │ ├── ios_img02.png │ ├── ios_img03.png │ ├── iphone_line.png │ ├── logo.png │ ├── mdd.png │ ├── phone.png │ ├── qshd.png │ ├── qssd.png │ ├── qssd_text.png │ ├── rz.png │ ├── slogen.png │ ├── t01086ec7f7f939f0fc.png │ ├── t01bf6ce50e76aa405e.png │ └── tszs.png ├── index.html └── js │ ├── jquery.SuperSlide.js │ ├── jquery.easings.min.js │ ├── jquery.fullPage.min.js │ └── jquery.js ├── bower.json ├── config.xml ├── doc ├── README_sunpop_customersurvey.doc ├── appimg │ ├── ios1.jpg │ ├── ios12.jpg │ ├── ios13.jpg │ ├── ios15.jpg │ ├── ios15.png │ ├── ios16.jpg │ ├── ios2.jpg │ ├── ios22.jpg │ ├── ios25.jpg │ ├── ios26.jpg │ ├── ios3.jpg │ ├── ios32.jpg │ ├── ios35.jpg │ ├── ios36.jpg │ ├── ios4.jpg │ ├── ios42.jpg │ ├── ios45.jpg │ ├── ios46.jpg │ ├── ios5.jpg │ ├── ios52.jpg │ ├── ios55.jpg │ ├── ios56.jpg │ ├── ios6.jpg │ ├── ios62.jpg │ ├── screen1.jpg │ ├── screen2.jpg │ ├── screen3.jpg │ ├── screen4.jpg │ ├── screen5.jpg │ ├── screen6.jpg │ ├── spash1.png │ └── 新力logo.ai ├── apple v2.docx ├── install_sunpop_customersurvey.sql ├── s.文宝商城App方案20150820.docx ├── 数据接口文档 v4.3.doc ├── 数据接口文档 v4.4.doc ├── 数据接口文档 v4.5.doc ├── 数据接口文档 v4.6.doc ├── 数据接口文档 v4.7.doc └── 数据接口文档 v4.8.doc ├── gulpfile.js ├── hooks ├── README.md └── after_prepare │ └── 010_add_platform_class.js ├── ionic.project ├── magento ├── app │ ├── code │ │ ├── community │ │ │ └── Sunpop │ │ │ │ └── News │ │ │ │ ├── Block │ │ │ │ ├── Abstract.php │ │ │ │ ├── Adminhtml │ │ │ │ │ ├── Category.php │ │ │ │ │ ├── Category │ │ │ │ │ │ ├── Edit.php │ │ │ │ │ │ ├── Edit │ │ │ │ │ │ │ └── Form.php │ │ │ │ │ │ ├── Grid.php │ │ │ │ │ │ └── Grid │ │ │ │ │ │ │ └── Column │ │ │ │ │ │ │ └── Renderer │ │ │ │ │ │ │ ├── Action.php │ │ │ │ │ │ │ └── SubCategories.php │ │ │ │ │ ├── Comment.php │ │ │ │ │ ├── Comment │ │ │ │ │ │ ├── Edit.php │ │ │ │ │ │ ├── Edit │ │ │ │ │ │ │ └── Form.php │ │ │ │ │ │ └── Grid.php │ │ │ │ │ ├── News.php │ │ │ │ │ └── News │ │ │ │ │ │ ├── Edit.php │ │ │ │ │ │ ├── Edit │ │ │ │ │ │ ├── Form.php │ │ │ │ │ │ ├── Tab │ │ │ │ │ │ │ ├── Additional.php │ │ │ │ │ │ │ └── Info.php │ │ │ │ │ │ └── Tabs.php │ │ │ │ │ │ └── Grid.php │ │ │ │ ├── News.php │ │ │ │ ├── Newsitem.php │ │ │ │ ├── Rss.php │ │ │ │ └── Settings.php │ │ │ │ ├── Controller │ │ │ │ └── Router.php │ │ │ │ ├── Helper │ │ │ │ ├── Data.php │ │ │ │ └── Versions.php │ │ │ │ ├── Model │ │ │ │ ├── Category.php │ │ │ │ ├── Check.php │ │ │ │ ├── Comment.php │ │ │ │ ├── Mysql4 │ │ │ │ │ ├── Category.php │ │ │ │ │ ├── Category │ │ │ │ │ │ └── Collection.php │ │ │ │ │ ├── Comment.php │ │ │ │ │ ├── Comment │ │ │ │ │ │ └── Collection.php │ │ │ │ │ ├── News.php │ │ │ │ │ └── News │ │ │ │ │ │ └── Collection.php │ │ │ │ ├── News.php │ │ │ │ └── Wysiwyg │ │ │ │ │ └── Config.php │ │ │ │ ├── controllers │ │ │ │ ├── Adminhtml │ │ │ │ │ ├── CategoryController.php │ │ │ │ │ ├── CommentController.php │ │ │ │ │ └── NewsController.php │ │ │ │ ├── ApiController.php │ │ │ │ ├── Catalog │ │ │ │ │ ├── Category │ │ │ │ │ │ └── WidgetController.php │ │ │ │ │ └── Product │ │ │ │ │ │ └── WidgetController.php │ │ │ │ ├── Cms │ │ │ │ │ ├── Block │ │ │ │ │ │ └── WidgetController.php │ │ │ │ │ └── Page │ │ │ │ │ │ └── WidgetController.php │ │ │ │ ├── IndexController.php │ │ │ │ ├── NewsitemController.php │ │ │ │ ├── RssController.php │ │ │ │ ├── System │ │ │ │ │ └── VariableController.php │ │ │ │ └── WidgetController.php │ │ │ │ ├── etc │ │ │ │ ├── config.xml │ │ │ │ └── system.xml │ │ │ │ └── sql │ │ │ │ └── clnews_setup │ │ │ │ ├── mysql4-install-1.0.0.php │ │ │ │ └── mysql4-upgrade-1.0.1-1.0.2.php │ │ └── local │ │ │ ├── Amasty │ │ │ ├── Base │ │ │ │ ├── Block │ │ │ │ │ ├── Adminhtml │ │ │ │ │ │ └── Debug │ │ │ │ │ │ │ ├── Base.php │ │ │ │ │ │ │ ├── Conflict.php │ │ │ │ │ │ │ ├── General.php │ │ │ │ │ │ │ └── Rewrite.php │ │ │ │ │ ├── Conflicts.php │ │ │ │ │ ├── Extensions.php │ │ │ │ │ └── Store.php │ │ │ │ ├── Helper │ │ │ │ │ └── Data.php │ │ │ │ ├── Model │ │ │ │ │ ├── Conflict.php │ │ │ │ │ ├── Conflicts.php │ │ │ │ │ ├── Feed.php │ │ │ │ │ └── Source │ │ │ │ │ │ └── Updates │ │ │ │ │ │ └── Type.php │ │ │ │ ├── controllers │ │ │ │ │ └── Adminhtml │ │ │ │ │ │ └── BaseController.php │ │ │ │ ├── etc │ │ │ │ │ ├── adminhtml.xml │ │ │ │ │ ├── config.xml │ │ │ │ │ └── system.xml │ │ │ │ └── sql │ │ │ │ │ └── ambase_setup │ │ │ │ │ ├── mysql4-install-1.0.0.php │ │ │ │ │ └── mysql4-upgrade-1.0.0-1.0.1.php │ │ │ └── Customerattr │ │ │ │ ├── Block │ │ │ │ ├── Adminhtml │ │ │ │ │ ├── Customer │ │ │ │ │ │ ├── Attribute.php │ │ │ │ │ │ ├── Attribute │ │ │ │ │ │ │ ├── Edit.php │ │ │ │ │ │ │ ├── Edit │ │ │ │ │ │ │ │ ├── Form.php │ │ │ │ │ │ │ │ ├── Tab │ │ │ │ │ │ │ │ │ ├── Depends.php │ │ │ │ │ │ │ │ │ ├── Images.php │ │ │ │ │ │ │ │ │ ├── Main.php │ │ │ │ │ │ │ │ │ └── Options.php │ │ │ │ │ │ │ │ └── Tabs.php │ │ │ │ │ │ │ ├── Grid.php │ │ │ │ │ │ │ └── Grid │ │ │ │ │ │ │ │ └── Renderer │ │ │ │ │ │ │ │ └── Type.php │ │ │ │ │ │ ├── Form │ │ │ │ │ │ │ └── Element │ │ │ │ │ │ │ │ └── File.php │ │ │ │ │ │ ├── Grid │ │ │ │ │ │ │ └── Renderer │ │ │ │ │ │ │ │ └── Boolean.php │ │ │ │ │ │ ├── Relation.php │ │ │ │ │ │ └── Relation │ │ │ │ │ │ │ ├── Edit.php │ │ │ │ │ │ │ ├── Edit │ │ │ │ │ │ │ ├── Form.php │ │ │ │ │ │ │ ├── Tab │ │ │ │ │ │ │ │ └── Main.php │ │ │ │ │ │ │ └── Tabs.php │ │ │ │ │ │ │ ├── Grid.php │ │ │ │ │ │ │ └── Grid │ │ │ │ │ │ │ └── Renderer │ │ │ │ │ │ │ ├── Code.php │ │ │ │ │ │ │ └── Label.php │ │ │ │ │ ├── Filter │ │ │ │ │ │ └── Multiselect.php │ │ │ │ │ └── Renderer │ │ │ │ │ │ ├── ActivationStatus.php │ │ │ │ │ │ ├── Boolean.php │ │ │ │ │ │ ├── File.php │ │ │ │ │ │ ├── Multiselect.php │ │ │ │ │ │ └── Select.php │ │ │ │ ├── Customer │ │ │ │ │ ├── Fields.php │ │ │ │ │ └── Fields │ │ │ │ │ │ └── Relations.php │ │ │ │ ├── Data │ │ │ │ │ └── Form │ │ │ │ │ │ └── Element │ │ │ │ │ │ ├── Boolean.php │ │ │ │ │ │ ├── Multiselectimg.php │ │ │ │ │ │ └── Selectimg.php │ │ │ │ └── Rewrite │ │ │ │ │ ├── Customer │ │ │ │ │ └── Grid.php │ │ │ │ │ └── Sales │ │ │ │ │ └── Order │ │ │ │ │ ├── Create │ │ │ │ │ └── Customer │ │ │ │ │ │ └── Grid.php │ │ │ │ │ └── View │ │ │ │ │ └── Info.php │ │ │ │ ├── Helper │ │ │ │ ├── Data.php │ │ │ │ └── Group.php │ │ │ │ ├── Model │ │ │ │ ├── Details.php │ │ │ │ ├── Mysql4 │ │ │ │ │ ├── Details.php │ │ │ │ │ ├── Details │ │ │ │ │ │ └── Collection.php │ │ │ │ │ ├── Relation.php │ │ │ │ │ └── Relation │ │ │ │ │ │ └── Collection.php │ │ │ │ ├── Observer.php │ │ │ │ ├── Registration.php │ │ │ │ ├── Relation.php │ │ │ │ ├── Rewrite │ │ │ │ │ ├── Catalog │ │ │ │ │ │ └── Product │ │ │ │ │ │ │ └── Flat │ │ │ │ │ │ │ └── Indexer.php │ │ │ │ │ ├── Checkout │ │ │ │ │ │ └── Type │ │ │ │ │ │ │ └── Onepage.php │ │ │ │ │ ├── Core │ │ │ │ │ │ └── Email │ │ │ │ │ │ │ └── Template.php │ │ │ │ │ ├── Customer.php │ │ │ │ │ ├── Customer │ │ │ │ │ │ ├── Entity │ │ │ │ │ │ │ ├── Attribute.php │ │ │ │ │ │ │ └── Customer.php │ │ │ │ │ │ ├── Form.php │ │ │ │ │ │ └── Resource │ │ │ │ │ │ │ ├── Attribute.php │ │ │ │ │ │ │ └── Customer.php │ │ │ │ │ └── Eav │ │ │ │ │ │ └── Mysql4 │ │ │ │ │ │ └── Entity │ │ │ │ │ │ └── Attribute.php │ │ │ │ ├── Setup.php │ │ │ │ ├── Source │ │ │ │ │ └── Group.php │ │ │ │ ├── System │ │ │ │ │ └── Config │ │ │ │ │ │ └── Source │ │ │ │ │ │ └── Attributes.php │ │ │ │ ├── Validation.php │ │ │ │ └── Validation │ │ │ │ │ ├── CNPJ.php │ │ │ │ │ ├── CPF.php │ │ │ │ │ ├── Nickname.php │ │ │ │ │ ├── Royalty.php │ │ │ │ │ └── Rut.php │ │ │ │ ├── controllers │ │ │ │ ├── Adminhtml │ │ │ │ │ ├── ActivationController.php │ │ │ │ │ ├── GroupSelectorController.php │ │ │ │ │ ├── ManageController.php │ │ │ │ │ └── RelationController.php │ │ │ │ ├── AttachmentController.php │ │ │ │ └── GroupSelectorController.php │ │ │ │ ├── etc │ │ │ │ ├── adminhtml.xml │ │ │ │ ├── config.xml │ │ │ │ └── system.xml │ │ │ │ └── sql │ │ │ │ └── amcustomerattr_setup │ │ │ │ ├── mysql4-install-1.0.1.php │ │ │ │ ├── mysql4-upgrade-1.0.1-1.0.5.php │ │ │ │ ├── mysql4-upgrade-1.0.9-1.1.0.php │ │ │ │ ├── mysql4-upgrade-1.1.1-1.1.2.php │ │ │ │ ├── mysql4-upgrade-1.1.5-1.3.0.php │ │ │ │ ├── mysql4-upgrade-2.2.0-2.3.0.php │ │ │ │ ├── mysql4-upgrade-2.3.0-2.4.0.php │ │ │ │ ├── mysql4-upgrade-2.4.0-2.5.0.php │ │ │ │ ├── mysql4-upgrade-2.5.0-3.0.0.php │ │ │ │ ├── mysql4-upgrade-3.0.0-4.0.0.php │ │ │ │ ├── mysql4-upgrade-4.2.0-5.0.0.php │ │ │ │ ├── mysql4-upgrade-5.0.0-5.0.1.php │ │ │ │ ├── mysql4-upgrade-5.1.2-5.1.3.php │ │ │ │ ├── mysql4-upgrade-5.1.5-5.1.6.php │ │ │ │ ├── mysql4-upgrade-5.1.6-5.1.7.php │ │ │ │ └── mysql4-upgrade-5.2.2-5.2.3.php │ │ │ └── Sunpop │ │ │ ├── CustomerSurvey │ │ │ ├── Block │ │ │ │ ├── Adminhtml │ │ │ │ │ └── Survey │ │ │ │ │ │ ├── Edit.php │ │ │ │ │ │ ├── Edit │ │ │ │ │ │ ├── Form.php │ │ │ │ │ │ ├── Tab │ │ │ │ │ │ │ ├── General.php │ │ │ │ │ │ │ ├── Questions.php │ │ │ │ │ │ │ └── _notes │ │ │ │ │ │ │ │ └── dwsync.xml │ │ │ │ │ │ ├── Tabs.php │ │ │ │ │ │ └── _notes │ │ │ │ │ │ │ └── dwsync.xml │ │ │ │ │ │ ├── Results.php │ │ │ │ │ │ ├── Results │ │ │ │ │ │ ├── Tab │ │ │ │ │ │ │ ├── General.php │ │ │ │ │ │ │ ├── Graphical.php │ │ │ │ │ │ │ └── _notes │ │ │ │ │ │ │ │ └── dwsync.xml │ │ │ │ │ │ ├── Tabs.php │ │ │ │ │ │ └── _notes │ │ │ │ │ │ │ └── dwsync.xml │ │ │ │ │ │ └── _notes │ │ │ │ │ │ └── dwsync.xml │ │ │ │ ├── Block.php │ │ │ │ ├── Complete.php │ │ │ │ ├── Grid.php │ │ │ │ ├── GridContainer.php │ │ │ │ ├── List.php │ │ │ │ ├── Take.php │ │ │ │ └── _notes │ │ │ │ │ └── dwsync.xml │ │ │ ├── Helper │ │ │ │ ├── Data.php │ │ │ │ └── _notes │ │ │ │ │ └── dwsync.xml │ │ │ ├── Model │ │ │ │ ├── Mysql4 │ │ │ │ │ ├── Questions.php │ │ │ │ │ ├── Questions │ │ │ │ │ │ ├── Collection.php │ │ │ │ │ │ └── _notes │ │ │ │ │ │ │ └── dwsync.xml │ │ │ │ │ ├── Results.php │ │ │ │ │ ├── Results │ │ │ │ │ │ ├── Collection.php │ │ │ │ │ │ └── _notes │ │ │ │ │ │ │ └── dwsync.xml │ │ │ │ │ ├── Survey.php │ │ │ │ │ ├── Survey │ │ │ │ │ │ ├── Collection.php │ │ │ │ │ │ └── _notes │ │ │ │ │ │ │ └── dwsync.xml │ │ │ │ │ └── _notes │ │ │ │ │ │ └── dwsync.xml │ │ │ │ ├── Questions.php │ │ │ │ ├── Results.php │ │ │ │ ├── Survey.php │ │ │ │ └── _notes │ │ │ │ │ └── dwsync.xml │ │ │ ├── controllers │ │ │ │ ├── IndexController.php │ │ │ │ ├── ViewController.php │ │ │ │ └── _notes │ │ │ │ │ └── dwsync.xml │ │ │ └── etc │ │ │ │ ├── _notes │ │ │ │ └── dwsync.xml │ │ │ │ └── config.xml │ │ │ ├── Duplicate │ │ │ ├── Helper │ │ │ │ └── Data.php │ │ │ ├── Model │ │ │ │ ├── Observer.php │ │ │ │ └── Product.php │ │ │ └── etc │ │ │ │ ├── adminhtml.xml │ │ │ │ ├── config.xml │ │ │ │ └── system.xml │ │ │ ├── RestConnect │ │ │ ├── controllers │ │ │ │ ├── CartController.php │ │ │ │ ├── CustomerController.php │ │ │ │ ├── IndexController.php │ │ │ │ ├── ItemController.php │ │ │ │ ├── ItemsController.php │ │ │ │ ├── MenuController.php │ │ │ │ ├── ProductsController.php │ │ │ │ ├── SearchController.php │ │ │ │ ├── SearchadvController.php │ │ │ │ ├── StoreController.php │ │ │ │ ├── WishlistController.php │ │ │ │ └── _notes │ │ │ │ │ └── dwsync.xml │ │ │ └── etc │ │ │ │ ├── _notes │ │ │ │ └── dwsync.xml │ │ │ │ └── config.xml │ │ │ └── Storelocator │ │ │ ├── Block │ │ │ ├── Adminhtml │ │ │ │ ├── Edit.php │ │ │ │ ├── Edit │ │ │ │ │ └── Form.php │ │ │ │ ├── Storelocator.php │ │ │ │ └── Storelocator │ │ │ │ │ └── Grid.php │ │ │ ├── Detail.php │ │ │ └── Search.php │ │ │ ├── Helper │ │ │ └── Data.php │ │ │ ├── Model │ │ │ ├── Resource │ │ │ │ ├── Storelocator.php │ │ │ │ └── Storelocator │ │ │ │ │ └── Collection.php │ │ │ └── Storelocator.php │ │ │ ├── controllers │ │ │ ├── AdminhtmlController.php │ │ │ └── IndexController.php │ │ │ ├── etc │ │ │ └── config.xml │ │ │ └── sql │ │ │ └── storelocator_setup │ │ │ └── install-1.0.5.php │ ├── design │ │ ├── adminhtml │ │ │ └── default │ │ │ │ └── default │ │ │ │ ├── layout │ │ │ │ ├── _notes │ │ │ │ │ └── dwsync.xml │ │ │ │ ├── amasty │ │ │ │ │ └── ambase │ │ │ │ │ │ └── ambase.xml │ │ │ │ ├── clnews.xml │ │ │ │ ├── customersurvey.xml │ │ │ │ └── storelocator.xml │ │ │ │ └── template │ │ │ │ ├── amasty │ │ │ │ ├── ambase │ │ │ │ │ └── debug │ │ │ │ │ │ ├── conflict.phtml │ │ │ │ │ │ ├── general.phtml │ │ │ │ │ │ └── rewrite.phtml │ │ │ │ └── amcustomerattr │ │ │ │ │ └── attribute │ │ │ │ │ ├── images.phtml │ │ │ │ │ ├── js.phtml │ │ │ │ │ └── options.phtml │ │ │ │ ├── amcustomerattr │ │ │ │ └── attribute │ │ │ │ │ ├── images.phtml │ │ │ │ │ ├── js.phtml │ │ │ │ │ └── options.phtml │ │ │ │ ├── catalog │ │ │ │ └── product │ │ │ │ │ └── edit │ │ │ │ │ └── price │ │ │ │ │ ├── group.phtml │ │ │ │ │ └── tier.phtml │ │ │ │ ├── customersurvey │ │ │ │ ├── general.phtml │ │ │ │ ├── general_results.phtml │ │ │ │ ├── graphical.phtml │ │ │ │ └── questions.phtml │ │ │ │ ├── page │ │ │ │ ├── _notes │ │ │ │ │ └── dwsync.xml │ │ │ │ └── footer.phtml │ │ │ │ └── widget │ │ │ │ └── tabs.phtml │ │ └── frontend │ │ │ ├── base │ │ │ └── default │ │ │ │ ├── layout │ │ │ │ ├── _notes │ │ │ │ │ └── dwsync.xml │ │ │ │ ├── amasty │ │ │ │ │ └── amcustomerattr │ │ │ │ │ │ └── amcustomerattr.xml │ │ │ │ ├── customersurvey.xml │ │ │ │ └── storelocator.xml │ │ │ │ └── template │ │ │ │ ├── amasty │ │ │ │ └── amcustomerattr │ │ │ │ │ ├── customer_fields.phtml │ │ │ │ │ └── relations.phtml │ │ │ │ ├── customersurvey │ │ │ │ ├── _notes │ │ │ │ │ └── dwsync.xml │ │ │ │ ├── block.phtml │ │ │ │ ├── complete.phtml │ │ │ │ ├── list.phtml │ │ │ │ └── take.phtml │ │ │ │ └── storelocator │ │ │ │ ├── detail.phtml │ │ │ │ └── search.phtml │ │ │ └── default │ │ │ └── default │ │ │ ├── layout │ │ │ └── clnews.xml │ │ │ └── template │ │ │ └── clnews │ │ │ ├── latest.phtml │ │ │ ├── list.phtml │ │ │ ├── menu.phtml │ │ │ ├── news_print.phtml │ │ │ └── newsitem.phtml │ ├── etc │ │ └── modules │ │ │ ├── Amasty_Base.xml │ │ │ ├── Amasty_Customerattr.xml │ │ │ ├── Sunpop_CustomerSurvey.xml │ │ │ ├── Sunpop_Duplicate.xml │ │ │ ├── Sunpop_News.xml │ │ │ ├── Sunpop_RestConnect.xml │ │ │ ├── Sunpop_Storelocator.xml │ │ │ └── _notes │ │ │ └── dwsync.xml │ └── locale │ │ ├── de_DE │ │ └── Sunpop_News.csv │ │ ├── en_US │ │ ├── Amasty_Base.csv │ │ ├── Amasty_Customerattr.csv │ │ ├── Sunpop_News.csv │ │ └── template │ │ │ └── email │ │ │ ├── amasty_amcustomerattr_activation_email_template_admin.html │ │ │ └── amasty_amcustomerattr_activation_email_template_customer.html │ │ ├── it_IT │ │ └── Sunpop_News.csv │ │ └── zh_CN │ │ ├── Amasty_Base.csv │ │ ├── Amasty_Customerattr.csv │ │ ├── Mage_Adminhtml.csv │ │ ├── Mage_Catalog.csv │ │ ├── Mage_Checkout.csv │ │ ├── Sunpop_CustomerSurvey.csv │ │ ├── Sunpop_News.csv │ │ ├── Sunpop_Storelocator.csv │ │ └── template │ │ └── email │ │ ├── amasty_amcustomerattr_activation_email_template_admin.html │ │ └── amasty_amcustomerattr_activation_email_template_customer.html ├── index.php ├── js │ ├── amasty │ │ └── ambase │ │ │ └── store.js │ ├── commercelab │ │ ├── category_tree.js │ │ ├── clnews │ │ │ └── news.js │ │ ├── noconflict.js │ │ └── treeview │ │ │ └── jquery.treeview.pack.js │ ├── jquery │ │ └── jquery-1.7.1-min.js │ └── prototype │ │ └── windows │ │ └── themes │ │ └── commercelab │ │ ├── magento.css │ │ └── magento │ │ ├── btn_bg.gif │ │ ├── content_bg.gif │ │ ├── top_bg.gif │ │ └── window_close.png ├── lib │ └── Varien │ │ └── Data │ │ └── Form │ │ └── Element │ │ └── Multiselectimg.php ├── skin │ ├── adminhtml │ │ └── default │ │ │ └── default │ │ │ ├── boxes.css │ │ │ ├── css │ │ │ └── amasty │ │ │ │ └── ambase │ │ │ │ └── style.css │ │ │ └── images │ │ │ ├── _notes │ │ │ └── dwsync.xml │ │ │ ├── ambase │ │ │ ├── amasty.png │ │ │ ├── bad.gif │ │ │ ├── ok.gif │ │ │ ├── shop.png │ │ │ └── update.gif │ │ │ ├── customersurvey │ │ │ ├── _notes │ │ │ │ └── dwsync.xml │ │ │ ├── star.png │ │ │ └── unstar.png │ │ │ ├── login_logo.gif │ │ │ ├── logo.gif │ │ │ └── logo.png │ └── frontend │ │ ├── base │ │ └── default │ │ │ ├── css │ │ │ └── storelocator.css │ │ │ └── images │ │ │ ├── ._ajax-loader-tr.gif │ │ │ ├── ajax-loader-tr.gif │ │ │ └── customersurvey │ │ │ ├── _notes │ │ │ └── dwsync.xml │ │ │ ├── star.png │ │ │ └── unstar.png │ │ ├── default │ │ └── default │ │ │ ├── css │ │ │ ├── clnews │ │ │ │ ├── images │ │ │ │ │ ├── i-tags.gif │ │ │ │ │ ├── i_attached.gif │ │ │ │ │ ├── i_print.gif │ │ │ │ │ └── rss.gif │ │ │ │ └── style.css │ │ │ └── commercelab │ │ │ │ └── treeview │ │ │ │ ├── images │ │ │ │ ├── file.gif │ │ │ │ ├── folder-closed.gif │ │ │ │ ├── folder.gif │ │ │ │ ├── minus.gif │ │ │ │ ├── plus.gif │ │ │ │ ├── treeview-black-line.gif │ │ │ │ ├── treeview-black.gif │ │ │ │ ├── treeview-default-line.gif │ │ │ │ ├── treeview-default.gif │ │ │ │ ├── treeview-famfamfam-line.gif │ │ │ │ ├── treeview-famfamfam.gif │ │ │ │ ├── treeview-gray-line.gif │ │ │ │ ├── treeview-gray.gif │ │ │ │ ├── treeview-red-line.gif │ │ │ │ └── treeview-red.gif │ │ │ │ └── jquery.treeview.css │ │ │ └── images │ │ │ ├── _notes │ │ │ └── dwsync.xml │ │ │ ├── clnews │ │ │ └── ajax-loader.gif │ │ │ └── logo.gif │ │ └── rwd │ │ └── default │ │ ├── css │ │ └── styles.css │ │ └── images │ │ └── logo.gif ├── smsapi │ ├── CCPRestSmsSDK.php │ ├── SendTemplateSMS.php │ ├── log.txt │ └── 接口说明.txt ├── wget1.php ├── wset1.txt ├── wset2.php └── wset3.php ├── package.json ├── plugin.md ├── resources ├── android │ ├── icon │ │ ├── drawable-hdpi-icon.png │ │ ├── drawable-ldpi-icon.png │ │ ├── drawable-mdpi-icon.png │ │ └── drawable-xhdpi-icon.png │ └── splash │ │ ├── DPjWebwww.kikuu.com.png │ │ ├── drawable-land-hdpi-screen.png │ │ ├── drawable-land-ldpi-screen.png │ │ ├── drawable-land-mdpi-screen.png │ │ ├── drawable-land-xhdpi-screen.png │ │ ├── drawable-land-xxhdpi-screen.png │ │ ├── drawable-land-xxxhdpi-screen.png │ │ ├── drawable-port-hdpi-screen.png │ │ ├── drawable-port-ldpi-screen.png │ │ ├── drawable-port-mdpi-screen.png │ │ ├── drawable-port-xhdpi-screen.png │ │ ├── drawable-port-xxhdpi-screen.png │ │ └── drawable-port-xxxhdpi-screen.png ├── cp.sh └── ios │ ├── icon │ ├── icon-1024.png │ ├── icon-40.png │ ├── icon-40@2x.png │ ├── icon-50.png │ ├── icon-50@2x.png │ ├── icon-512.png │ ├── icon-60.png │ ├── icon-60@2x.png │ ├── icon-60@3x.png │ ├── icon-72.png │ ├── icon-72@2x.png │ ├── icon-76.png │ ├── icon-76@2x.png │ ├── icon-small.png │ ├── icon-small@2x.png │ ├── icon-small@3x.png │ ├── icon.png │ ├── icon@2x.png │ ├── ios13.jpg │ ├── ios14.jpg │ ├── ios23.jpg │ ├── ios24.jpg │ ├── ios33.jpg │ ├── ios34.jpg │ ├── ios43.jpg │ ├── ios44.jpg │ ├── ios53.jpg │ └── ios54.jpg │ └── splash │ ├── DPjWebwww.kikuu.com.png │ ├── Default-568h@2x~iphone.png │ ├── Default-667h.png │ ├── Default-736h.png │ ├── Default-Landscape-736h.png │ ├── Default-Landscape@2x~ipad.png │ ├── Default-Landscape~ipad.png │ ├── Default-Portrait@2x~ipad.png │ ├── Default-Portrait~ipad.png │ ├── Default@2x~iphone.png │ └── Default~iphone.png ├── scss └── ionic.app.scss └── www ├── css ├── design_m.css └── style.css ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.svg ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff └── fontawesome-webfont.woff2 ├── img ├── Avatar-100-100.png ├── loading.gif ├── loading1.gif ├── logo.png ├── logo120x44.png ├── position.png ├── spash1.jpg ├── spash2.jpg └── spash3.jpg ├── index.html ├── js ├── app.js ├── config.js ├── controllers.js ├── filter.js ├── services.js └── util.js ├── lib ├── angular-aria │ ├── angular-aria.min.js │ └── angular-aria.min.js.map ├── angular-translate │ └── angular-translate.min.js ├── ion-image-lazy-load │ └── ionic-image-lazy-load.js ├── ionic │ └── release │ │ ├── css │ │ └── ionic.css │ │ ├── fonts │ │ ├── ionicons.eot │ │ ├── ionicons.svg │ │ ├── ionicons.ttf │ │ └── ionicons.woff │ │ └── js │ │ ├── angular-sanitize.min.js.map │ │ └── ionic.bundle.min.js ├── jquery-form │ └── jquery.form.js ├── jquery │ └── dist │ │ ├── jquery.min.js │ │ └── jquery.min.map └── ngCordova │ └── dist │ └── ng-cordova.min.js ├── locales ├── en-US.js └── zh-CN.js └── templates ├── agent.html ├── agents.html ├── cart.html ├── certDownload.html ├── forgotPwd.html ├── frame.html ├── home.html ├── imgFullscreen.html ├── lists.html ├── login.html ├── menu.html ├── privacy.html ├── productDetail.html ├── productImg.html ├── register.html ├── searchAdv.html ├── searchAgent.html ├── searchResult.html ├── setting.html ├── survey.html └── welcome.html /.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "www/lib" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | # 自定义的不公开文件 4 | s.* 5 | ~*.* 6 | SendTemplateSMS.php 7 | 8 | node_modules/ 9 | platforms/ 10 | plugins/ 11 | 12 | # IDE 13 | .idea 14 | .settings 15 | .buildpath 16 | .project 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Wenbao 2 | -------------------------------------------------------------------------------- /appDown/img/android_ewm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/android_ewm.png -------------------------------------------------------------------------------- /appDown/img/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/app_icon.png -------------------------------------------------------------------------------- /appDown/img/btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/btn.png -------------------------------------------------------------------------------- /appDown/img/erweima.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/erweima.png -------------------------------------------------------------------------------- /appDown/img/font_1421856281_183794.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/font_1421856281_183794.eot -------------------------------------------------------------------------------- /appDown/img/font_1421856281_183794.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/font_1421856281_183794.ttf -------------------------------------------------------------------------------- /appDown/img/font_1421856281_183794.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/font_1421856281_183794.woff -------------------------------------------------------------------------------- /appDown/img/gfwx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/gfwx.png -------------------------------------------------------------------------------- /appDown/img/gzh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/gzh.png -------------------------------------------------------------------------------- /appDown/img/ios_ewm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/ios_ewm.png -------------------------------------------------------------------------------- /appDown/img/ios_img01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/ios_img01.png -------------------------------------------------------------------------------- /appDown/img/ios_img02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/ios_img02.png -------------------------------------------------------------------------------- /appDown/img/ios_img03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/ios_img03.png -------------------------------------------------------------------------------- /appDown/img/iphone_line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/iphone_line.png -------------------------------------------------------------------------------- /appDown/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/logo.png -------------------------------------------------------------------------------- /appDown/img/mdd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/mdd.png -------------------------------------------------------------------------------- /appDown/img/phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/phone.png -------------------------------------------------------------------------------- /appDown/img/qshd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/qshd.png -------------------------------------------------------------------------------- /appDown/img/qssd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/qssd.png -------------------------------------------------------------------------------- /appDown/img/qssd_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/qssd_text.png -------------------------------------------------------------------------------- /appDown/img/rz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/rz.png -------------------------------------------------------------------------------- /appDown/img/slogen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/slogen.png -------------------------------------------------------------------------------- /appDown/img/t01086ec7f7f939f0fc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/t01086ec7f7f939f0fc.png -------------------------------------------------------------------------------- /appDown/img/t01bf6ce50e76aa405e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/t01bf6ce50e76aa405e.png -------------------------------------------------------------------------------- /appDown/img/tszs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/appDown/img/tszs.png -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xinli", 3 | "private": "true", 4 | "devDependencies": { 5 | "ionic": "driftyco/ionic-bower#1.0.0-rc.4" 6 | }, 7 | "dependencies": { 8 | "font-awesome": "~4.3.0", 9 | "jquery": "~2.1.4", 10 | "ionic-material": "~0.3.0", 11 | "angular-translate": "~2.7.2" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /doc/README_sunpop_customersurvey.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/README_sunpop_customersurvey.doc -------------------------------------------------------------------------------- /doc/appimg/ios1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios1.jpg -------------------------------------------------------------------------------- /doc/appimg/ios12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios12.jpg -------------------------------------------------------------------------------- /doc/appimg/ios13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios13.jpg -------------------------------------------------------------------------------- /doc/appimg/ios15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios15.jpg -------------------------------------------------------------------------------- /doc/appimg/ios15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios15.png -------------------------------------------------------------------------------- /doc/appimg/ios16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios16.jpg -------------------------------------------------------------------------------- /doc/appimg/ios2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios2.jpg -------------------------------------------------------------------------------- /doc/appimg/ios22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios22.jpg -------------------------------------------------------------------------------- /doc/appimg/ios25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios25.jpg -------------------------------------------------------------------------------- /doc/appimg/ios26.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios26.jpg -------------------------------------------------------------------------------- /doc/appimg/ios3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios3.jpg -------------------------------------------------------------------------------- /doc/appimg/ios32.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios32.jpg -------------------------------------------------------------------------------- /doc/appimg/ios35.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios35.jpg -------------------------------------------------------------------------------- /doc/appimg/ios36.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios36.jpg -------------------------------------------------------------------------------- /doc/appimg/ios4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios4.jpg -------------------------------------------------------------------------------- /doc/appimg/ios42.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios42.jpg -------------------------------------------------------------------------------- /doc/appimg/ios45.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios45.jpg -------------------------------------------------------------------------------- /doc/appimg/ios46.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios46.jpg -------------------------------------------------------------------------------- /doc/appimg/ios5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios5.jpg -------------------------------------------------------------------------------- /doc/appimg/ios52.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios52.jpg -------------------------------------------------------------------------------- /doc/appimg/ios55.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios55.jpg -------------------------------------------------------------------------------- /doc/appimg/ios56.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios56.jpg -------------------------------------------------------------------------------- /doc/appimg/ios6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios6.jpg -------------------------------------------------------------------------------- /doc/appimg/ios62.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/ios62.jpg -------------------------------------------------------------------------------- /doc/appimg/screen1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/screen1.jpg -------------------------------------------------------------------------------- /doc/appimg/screen2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/screen2.jpg -------------------------------------------------------------------------------- /doc/appimg/screen3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/screen3.jpg -------------------------------------------------------------------------------- /doc/appimg/screen4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/screen4.jpg -------------------------------------------------------------------------------- /doc/appimg/screen5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/screen5.jpg -------------------------------------------------------------------------------- /doc/appimg/screen6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/screen6.jpg -------------------------------------------------------------------------------- /doc/appimg/spash1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/spash1.png -------------------------------------------------------------------------------- /doc/appimg/新力logo.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/appimg/新力logo.ai -------------------------------------------------------------------------------- /doc/apple v2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/apple v2.docx -------------------------------------------------------------------------------- /doc/install_sunpop_customersurvey.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/install_sunpop_customersurvey.sql -------------------------------------------------------------------------------- /doc/s.文宝商城App方案20150820.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/s.文宝商城App方案20150820.docx -------------------------------------------------------------------------------- /doc/数据接口文档 v4.3.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/数据接口文档 v4.3.doc -------------------------------------------------------------------------------- /doc/数据接口文档 v4.4.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/数据接口文档 v4.4.doc -------------------------------------------------------------------------------- /doc/数据接口文档 v4.5.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/数据接口文档 v4.5.doc -------------------------------------------------------------------------------- /doc/数据接口文档 v4.6.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/数据接口文档 v4.6.doc -------------------------------------------------------------------------------- /doc/数据接口文档 v4.7.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/数据接口文档 v4.7.doc -------------------------------------------------------------------------------- /doc/数据接口文档 v4.8.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/doc/数据接口文档 v4.8.doc -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'); 2 | var gutil = require('gulp-util'); 3 | var bower = require('bower'); 4 | var concat = require('gulp-concat'); 5 | var sass = require('gulp-sass'); 6 | var minifyCss = require('gulp-minify-css'); 7 | var rename = require('gulp-rename'); 8 | var sh = require('shelljs'); 9 | 10 | var paths = { 11 | sass: ['./scss/**/*.scss'] 12 | }; 13 | 14 | gulp.task('default', ['sass']); 15 | 16 | gulp.task('sass', function(done) { 17 | gulp.src('./scss/ionic.app.scss') 18 | .pipe(sass({ 19 | errLogToConsole: true 20 | })) 21 | .pipe(gulp.dest('./www/css/')) 22 | .pipe(minifyCss({ 23 | keepSpecialComments: 0 24 | })) 25 | .pipe(rename({ extname: '.min.css' })) 26 | .pipe(gulp.dest('./www/css/')) 27 | .on('end', done); 28 | }); 29 | 30 | gulp.task('watch', function() { 31 | gulp.watch(paths.sass, ['sass']); 32 | }); 33 | 34 | gulp.task('install', ['git-check'], function() { 35 | return bower.commands.install() 36 | .on('log', function(data) { 37 | gutil.log('bower', gutil.colors.cyan(data.id), data.message); 38 | }); 39 | }); 40 | 41 | gulp.task('git-check', function(done) { 42 | if (!sh.which('git')) { 43 | console.log( 44 | ' ' + gutil.colors.red('Git is not installed.'), 45 | '\n Git, the version control system, is required to download Ionic.', 46 | '\n Download git here:', gutil.colors.cyan('http://git-scm.com/downloads') + '.', 47 | '\n Once git is installed, run \'' + gutil.colors.cyan('gulp install') + '\' again.' 48 | ); 49 | process.exit(1); 50 | } 51 | done(); 52 | }); 53 | -------------------------------------------------------------------------------- /ionic.project: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xinli", 3 | "app_id": "", 4 | "browsers": [ 5 | { 6 | "platform": "android", 7 | "browser": "crosswalk", 8 | "version": "12.41.296.5" 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Block/Adminhtml/Category.php: -------------------------------------------------------------------------------- 1 | _controller = 'adminhtml_category'; 23 | $this->_blockGroup = 'clnews'; 24 | $this->_headerText = Mage::helper('clnews')->__('Category Manager'); 25 | $this->_addButtonLabel = Mage::helper('clnews')->__('Add Category'); 26 | parent::__construct(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Block/Adminhtml/Category/Grid/Column/Renderer/SubCategories.php: -------------------------------------------------------------------------------- 1 | getData($this->getColumn()->getIndex()); 8 | if ($row->getData('level') == 1) { 9 | return '    '.$value.''; 10 | } else if ($row->getData('level') == 2) { 11 | return '        '.$value.''; 12 | } else if ($row->getData('level') == 3) { 13 | return '            '.$value.''; 14 | } else if ($row->getData('level') == 4) { 15 | return '                '.$value.''; 16 | } else if ($row->getData('level') == 5) { 17 | return '                    '.$value.''; 18 | } else { 19 | return $value; 20 | } 21 | 22 | } 23 | } 24 | ?> 25 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Block/Adminhtml/Comment.php: -------------------------------------------------------------------------------- 1 | _controller = 'adminhtml_comment'; 23 | $this->_blockGroup = 'clnews'; 24 | $this->_headerText = Mage::helper('clnews')->__('Comment Manager'); 25 | parent::__construct(); 26 | $this->_removeButton('add'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Block/Adminhtml/News.php: -------------------------------------------------------------------------------- 1 | _controller = 'adminhtml_news'; 23 | $this->_blockGroup = 'clnews'; 24 | $this->_headerText = Mage::helper('clnews')->__('News Manager'); 25 | $this->_addButtonLabel = Mage::helper('clnews')->__('Add New Article'); 26 | parent::__construct(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Block/Adminhtml/News/Edit/Form.php: -------------------------------------------------------------------------------- 1 | isEnabled()) { 27 | $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true); 28 | } 29 | } 30 | 31 | protected function _prepareForm() 32 | { 33 | $form = new Varien_Data_Form(array( 34 | 'id' => 'edit_form', 35 | 'action' => $this->getUrl('*/*/save', 36 | array('id' => $this->getRequest()->getParam('id'))), 37 | 'method' => 'post', 38 | 'enctype' => 'multipart/form-data' 39 | ) 40 | ); 41 | 42 | $form->setUseContainer(true); 43 | $this->setForm($form); 44 | return parent::_prepareForm(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Block/Adminhtml/News/Edit/Tabs.php: -------------------------------------------------------------------------------- 1 | setId('news_tabs'); 24 | $this->setDestElementId('edit_form'); 25 | $this->setTitle(Mage::helper('clnews')->__('Main Information')); 26 | } 27 | 28 | protected function _beforeToHtml() 29 | { 30 | $this->addTab('info', array( 31 | 'label' => Mage::helper('clnews')->__('Main Information'), 32 | 'content' => $this->getLayout()->createBlock('clnews/adminhtml_news_edit_tab_info')->initForm()->toHtml(), 33 | )); 34 | 35 | $this->addTab('additional', array( 36 | 'label' => Mage::helper('clnews')->__('Additional Options'), 37 | 'content' => $this->getLayout() 38 | ->createBlock('clnews/adminhtml_news_edit_tab_additional')->initForm()->toHtml(), 39 | )); 40 | 41 | return parent::_beforeToHtml(); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Block/Settings.php: -------------------------------------------------------------------------------- 1 | _init('clnews/category'); 23 | } 24 | 25 | public function getCategoryByNewsId($id) 26 | { 27 | $db = Mage::getSingleton('core/resource')->getConnection('core_read'); 28 | $select = $db->select() 29 | ->from(array(Mage::getSingleton('core/resource')->getTableName('clnews_news_category')), 30 | array('category_id')) 31 | ->where('news_id = ?', $id); 32 | $stmt = $db->query($select); 33 | $result = $stmt->fetchAll(); 34 | return $result; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Model/Comment.php: -------------------------------------------------------------------------------- 1 | _init('clnews/comment'); 22 | } 23 | 24 | public function load($id, $field=null){ 25 | return parent::load($id, $field); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Model/Mysql4/Comment.php: -------------------------------------------------------------------------------- 1 | _init('clnews/comment', 'comment_id'); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Model/Mysql4/Comment/Collection.php: -------------------------------------------------------------------------------- 1 | _init('clnews/comment'); 24 | } 25 | 26 | public function addApproveFilter($status) 27 | { 28 | $this->getSelect() 29 | ->where('comment_status = ?', $status); 30 | return $this; 31 | } 32 | 33 | public function addNewsFilter($newsId) 34 | { 35 | $this->getSelect() 36 | ->where('news_id = ?', $newsId); 37 | return $this; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/Model/News.php: -------------------------------------------------------------------------------- 1 | _init('clnews/news'); 23 | } 24 | 25 | public function getUrl($category = '') { 26 | if ($category) { 27 | $url = Mage::getUrl(Mage::helper('clnews')->getRoute()).$category.'/'.$this->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix(); 28 | } else { 29 | $url = Mage::getUrl(Mage::helper('clnews')->getRoute()).$this->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix(); 30 | } 31 | return $url; 32 | } 33 | 34 | /** 35 | * Reset all model data 36 | * 37 | * @return Sunpop_News_Model_News 38 | */ 39 | public function reset() 40 | { 41 | $this->setData(array()); 42 | $this->setOrigData(); 43 | $this->_attributes = null; 44 | return $this; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/controllers/Catalog/Category/WidgetController.php: -------------------------------------------------------------------------------- 1 | getResponse()->setHeader('Content-type', 'text/xml; charset=UTF-8'); 24 | $this->loadLayout(false); 25 | $this->renderLayout(); 26 | } else { 27 | $this->_forward('NoRoute'); 28 | } 29 | } 30 | 31 | public function noRouteAction($coreRoute = null) 32 | { 33 | $this->getResponse()->setHeader('HTTP/1.1', '404 Not Found'); 34 | $this->getResponse()->setHeader('Status', '404 File not found'); 35 | 36 | $pageId = Mage::getStoreConfig('web/default/cms_no_route'); 37 | if (!Mage::helper('cms/page')->renderPage($this, $pageId)) { 38 | $this->_forward('defaultNoRoute'); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/controllers/System/VariableController.php: -------------------------------------------------------------------------------- 1 | getRequest()->getParam('short_content'); 27 | $pagesGrid = $this->getLayout()->createBlock('widget/adminhtml_widget', '', array( 28 | 'id' => $uniqId, 29 | )); 30 | $this->getResponse()->setBody($pagesGrid->toHtml()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /magento/app/code/community/Sunpop/News/sql/clnews_setup/mysql4-upgrade-1.0.1-1.0.2.php: -------------------------------------------------------------------------------- 1 | startSetup(); 8 | 9 | $installer->getConnection() 10 | ->addColumn($installer->getTable('clnews/category'), 11 | 'parent_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array('unsigned' => true, 12 | 'nullable' => false, 13 | 'default' => '0',), 'Parent Category ID'); 14 | $installer->getConnection() 15 | ->addColumn($installer->getTable('clnews/category'), 16 | 'level', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array( 17 | 'nullable' => false, 18 | 'default' => '0', 19 | ), 'Tree Level'); 20 | 21 | $installer->getConnection() 22 | ->addColumn($installer->getTable('clnews/category'), 23 | 'sort_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array('unsigned' => true, 24 | 'nullable' => false, 25 | 'default' => '0',), 'Sort ID'); 26 | 27 | $installer->run("update {$this->getTable('clnews/category')} set parent_id = 0 where parent_id is null"); 28 | $installer->run("update {$this->getTable('clnews/category')} set sort_id = 0 where sort_id is null"); 29 | $installer->run("update {$this->getTable('clnews/category')} set level = 0 where level is null"); 30 | $installer->endSetup(); 31 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Base/Block/Adminhtml/Debug/Base.php: -------------------------------------------------------------------------------- 1 | setTemplate('amasty/ambase/debug/rewrite.phtml'); 11 | } 12 | 13 | function getRewritesList(){ 14 | return Mage::helper("ambase")->getRewritesList(); 15 | } 16 | } 17 | ?> -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Base/Block/Conflicts.php: -------------------------------------------------------------------------------- 1 | getRequest()->getParam('autoload'); 10 | 11 | $helper = Mage::helper("ambase"); 12 | $html = $this->_getHeaderHtml($element); 13 | 14 | $ajaxUrl = Mage::helper("adminhtml")->getUrl("ambase/adminhtml_base/ajax"); 15 | $html.= '
'; 16 | $html.= '   '; 17 | 18 | if ($autoload){ 19 | $html .= ""; 25 | } 26 | 27 | // $html .= Mage::getUrl('adminhtml/ambase/download'); 28 | // $html.= Amasty_Base_Model_Conflicts::run(); 29 | $html .= $this->_getFooterHtml($element); 30 | return $html; 31 | } 32 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Base/Block/Store.php: -------------------------------------------------------------------------------- 1 | "; 14 | 15 | return $html; 16 | } 17 | 18 | protected function _getFieldRenderer() 19 | { 20 | if (empty($this->_fieldRenderer)) { 21 | $this->_fieldRenderer = Mage::getBlockSingleton('adminhtml/system_config_form_field'); 22 | } 23 | return $this->_fieldRenderer; 24 | } 25 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Base/etc/adminhtml.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Allow Everything 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Amasty - Extensions Information 16 | 17 | 18 | Amasty - Extensions Store 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | singleton 33 | ambase/feed 34 | check 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Base/sql/ambase_setup/mysql4-install-1.0.0.php: -------------------------------------------------------------------------------- 1 | startSetup(); 3 | $this->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Base/sql/ambase_setup/mysql4-upgrade-1.0.0-1.0.1.php: -------------------------------------------------------------------------------- 1 | startSetup(); 3 | 4 | $v = Mage::getStoreConfig('ambase/feed/installed'); 5 | if (!$v){ 6 | Mage::getModel('core/config_data') 7 | ->setScope('default') 8 | ->setPath('ambase/feed/installed') 9 | ->setValue(time()) 10 | ->save(); 11 | } 12 | 13 | $feedData = array(); 14 | $feedData[] = array( 15 | 'severity' => 4, 16 | 'date_added' => gmdate('Y-m-d H:i:s', time()), 17 | 'title' => 'Amasty`s extension has been installed. Remember to flush all cache, recompile, log-out and log back in.', 18 | 'description' => 'You can see versions of the installed extensions right in the admin, as well as configure notifications about major updates.', 19 | 'url' => 'http://amasty.com/news/updates-and-notifications-configuration-9.html' 20 | // 'url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/system_config/edit', array('section'=>'ambase')), 21 | ); 22 | 23 | Mage::getModel('adminnotification/inbox')->parse($feedData); 24 | 25 | $this->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Attribute.php: -------------------------------------------------------------------------------- 1 | _blockGroup = 'amcustomerattr'; 12 | $this->_controller = 'adminhtml_customer_attribute'; 13 | $this->_headerText = Mage::helper('amcustomerattr')->__('Manage Customer Attributes'); 14 | $this->_addButtonLabel = Mage::helper('amcustomerattr')->__('Add New Attribute'); 15 | parent::__construct(); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Attribute/Edit/Form.php: -------------------------------------------------------------------------------- 1 | 'edit_form', 'action' => $this->getData('action'), 'method' => 'post')); 13 | $form->setUseContainer(true); 14 | $this->setForm($form); 15 | return parent::_prepareForm(); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Form/Element/File.php: -------------------------------------------------------------------------------- 1 | getValue() && !is_array($this->getValue())) { 23 | $image = array( 24 | 'alt' => Mage::helper('adminhtml')->__('Download'), 25 | 'title' => Mage::helper('adminhtml')->__('Download'), 26 | 'src' => Mage::getDesign()->getSkinUrl('images/fam_bullet_disk.gif'), 27 | 'class' => 'v-middle' 28 | ); 29 | $url = $this->_getPreviewUrl(); 30 | $html .= ''; 31 | $html .= '' . $this->_drawElementHtml('img', $image) . ' '; 32 | $html .= '' . $this->getValue() . ''; 33 | $html .= ''; 34 | } 35 | return $html; 36 | } 37 | 38 | /** 39 | * Return Preview/Download URL 40 | * 41 | * @return string 42 | */ 43 | protected function _getPreviewUrl() 44 | { 45 | $customerId = Mage::registry('current_customer')->getId(); 46 | $attributeId = Mage::getModel('eav/entity_attribute')->getIdByCode('customer', $this->getId()); 47 | return Mage::helper('amcustomerattr')->getAttributeFileUrl($customerId, $attributeId, $this->getValue(), true); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Grid/Renderer/Boolean.php: -------------------------------------------------------------------------------- 1 | getColumn()->getName() ? $this->getColumn()->getName() : $this->getColumn()->getId(); 12 | $html = ''; 20 | return $html; 21 | } 22 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Relation.php: -------------------------------------------------------------------------------- 1 | _blockGroup = 'amcustomerattr'; 12 | $this->_controller = 'adminhtml_customer_relation'; 13 | $this->_headerText = Mage::helper('amcustomerattr')->__('Manage Attributes Relation'); 14 | $this->_addButtonLabel = Mage::helper('amcustomerattr')->__('Add New Relation'); 15 | parent::__construct(); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Relation/Edit/Form.php: -------------------------------------------------------------------------------- 1 | 'edit_form', 'action' => $this->getData('action'), 'method' => 'post')); 13 | $form->setUseContainer(true); 14 | $this->setForm($form); 15 | return parent::_prepareForm(); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Relation/Edit/Tabs.php: -------------------------------------------------------------------------------- 1 | setId('product_relation_tabs'); 14 | $this->setDestElementId('edit_form'); 15 | $this->setTitle(Mage::helper('catalog')->__('Relation Information')); 16 | } 17 | 18 | protected function _beforeToHtml() 19 | { 20 | $this->addTab('main', array( 21 | 'label' => Mage::helper('catalog')->__('General'), 22 | 'title' => Mage::helper('catalog')->__('General'), 23 | 'content' => $this->getLayout()->createBlock('amcustomerattr/adminhtml_customer_relation_edit_tab_main')->toHtml(), 24 | 'active' => true 25 | )); 26 | 27 | return parent::_beforeToHtml(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Relation/Grid/Renderer/Code.php: -------------------------------------------------------------------------------- 1 | getAttributeCodes()) { 14 | $aCodes = explode(',', $row->getAttributeCodes()); 15 | $result = array_unique($aCodes); 16 | $string = implode(', ', $result); 17 | } 18 | 19 | return $string; 20 | } 21 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Customer/Relation/Grid/Renderer/Label.php: -------------------------------------------------------------------------------- 1 | getDependentLabel()) { 14 | $labels = explode(',', $row->getDependentLabel()); 15 | $result = array_unique($labels); 16 | $string = implode(', ', $result); 17 | } 18 | 19 | return $string; 20 | } 21 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Filter/Multiselect.php: -------------------------------------------------------------------------------- 1 | getValue())) { 12 | return null; 13 | } 14 | 15 | return array('or'=> array( 16 | array('eq' => $this->getValue()), 17 | array('like' => '%,' . $this->getValue() . ''), 18 | array('like' => '' . $this->getValue() . ',%'), 19 | array('like' => '%,' . $this->getValue() . ',%') 20 | )); 21 | } 22 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Renderer/ActivationStatus.php: -------------------------------------------------------------------------------- 1 | getData($this->getColumn()->getIndex()); 13 | if ($res == '2') 14 | $res = $hlp->__('Yes'); 15 | else if ($res == '1') 16 | $res = $hlp->__('No'); 17 | else 18 | $res = $hlp->__('Pending'); 19 | 20 | return $res; 21 | } 22 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Renderer/Boolean.php: -------------------------------------------------------------------------------- 1 | getData($this->getColumn()->getIndex()) ? $hlp->__('Yes') : $hlp->__('No'); 13 | } 14 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Renderer/File.php: -------------------------------------------------------------------------------- 1 | getData($this->getColumn()->getIndex())) { 12 | return 'No Uploaded File'; 13 | } 14 | 15 | $downloadUrl = Mage::helper('amcustomerattr')->getAttributeFileUrl($currentData, true); 16 | $fileName = Mage::helper('amcustomerattr')->cleanFileName($currentData); 17 | return '' . $fileName[3] . ''; 18 | } 19 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Renderer/Multiselect.php: -------------------------------------------------------------------------------- 1 | getData($this->getColumn()->getIndex()); 13 | if ($value) 14 | { 15 | $value = explode(',', $value); 16 | } 17 | foreach ($this->getColumn()->getOptions() as $val => $label) 18 | { 19 | if (is_array($value) && in_array($val, $value)) 20 | { 21 | $columnData .= $label . ', '; 22 | } 23 | } 24 | if ($columnData) 25 | { 26 | $columnData = substr($columnData, 0, -2); 27 | } 28 | return $columnData; 29 | } 30 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Adminhtml/Renderer/Select.php: -------------------------------------------------------------------------------- 1 | getData($this->getColumn()->getIndex()); 13 | if ($res == '2') 14 | $res = $hlp->__('Yes'); 15 | else if ($res == '1') 16 | $res = $hlp->__('No'); 17 | else 18 | $res = $hlp->__('Pending'); 19 | 20 | return $res; 21 | } 22 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Block/Customer/Fields/Relations.php: -------------------------------------------------------------------------------- 1 | setTemplate('amasty/amcustomerattr/relations.phtml'); 16 | } 17 | 18 | public function setParts($column) 19 | { 20 | $collection = Mage::getModel('customer/attribute')->getCollection(); 21 | 22 | $alias = $this->getProperAlias($collection->getSelect()->getPart('from'), 'eav_attribute'); 23 | $collection->addFieldToFilter($alias . 'is_user_defined', 1); 24 | 25 | $alias = $this->getProperAlias($collection->getSelect()->getPart('from'), 'customer_eav_attribute'); 26 | 27 | if ($column) { 28 | $collection->addFieldToFilter($alias . $column, 1); 29 | } 30 | 31 | if (0 < $collection->getSize()) { 32 | foreach ($collection as $attribute) { 33 | if ($attribute->getFrontend()->getClass()) { 34 | $this->_hasValidation = true; 35 | } 36 | if ($attribute->getIsRequired() || $attribute->getRequiredOnFront()) { 37 | $this->_hasRequired = true; 38 | } 39 | } 40 | } 41 | 42 | return $this; 43 | } 44 | 45 | public function hasRequired() 46 | { 47 | return $this->_hasRequired; 48 | } 49 | 50 | public function hasValidation() 51 | { 52 | return $this->_hasValidation; 53 | } 54 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Helper/Group.php: -------------------------------------------------------------------------------- 1 | _isAllowed; 21 | } 22 | 23 | /** 24 | * Retrieve specify validation 25 | * 26 | * @return string 27 | */ 28 | public function getAttribute() 29 | { 30 | return $this->_attribute; 31 | } 32 | 33 | /** 34 | * Retrieve customer group id 35 | * 36 | * @return string 37 | */ 38 | public function getGroupId() 39 | { 40 | return $this->_groupId; 41 | } 42 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Details.php: -------------------------------------------------------------------------------- 1 | _init('amcustomerattr/details'); 13 | } 14 | 15 | public function usedInRelation($attributeId) 16 | { 17 | $collection = $this->getCollection(); 18 | $collection->getSelect() 19 | ->where('main_table.attribute_id = ?', $attributeId) 20 | ->orWhere('main_table.dependent_attribute_id = ?', $attributeId); 21 | return $collection; 22 | } 23 | 24 | public function fastDelete($ids) 25 | { 26 | $db = Mage::getSingleton('core/resource')->getConnection('core_write'); 27 | $table = Mage::getSingleton('core/resource')->getTableName('amcustomerattr/details'); 28 | $db->delete($table, $db->quoteInto('id IN(?)', $ids)); 29 | } 30 | 31 | public function haveDetails($relationId) 32 | { 33 | $collection = $this->getCollection(); 34 | $collection->getSelect() 35 | ->where('main_table.relation_id = ?', $relationId); 36 | return ($collection->getSize() > 0); 37 | } 38 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Mysql4/Details/Collection.php: -------------------------------------------------------------------------------- 1 | _init('amcustomerattr/details', 'id'); 17 | } 18 | 19 | public function getByRelation($relationId) 20 | { 21 | $this->getSelect() 22 | ->where('relation_id = ?', $relationId); 23 | return $this; 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Mysql4/Relation.php: -------------------------------------------------------------------------------- 1 | _init('amcustomerattr/relation', 'id'); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Registration.php: -------------------------------------------------------------------------------- 1 | getModel(); 12 | $id = $model->getId(); 13 | 14 | $attribute = 60400000000 + $id; 15 | $attribute = '0' . $attribute; 16 | 17 | $model->setCustIdWr($attribute); 18 | $model->save();*/ 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Rewrite/Catalog/Product/Flat/Indexer.php: -------------------------------------------------------------------------------- 1 | loadByCode(Mage::getModel('eav/entity')->setType('customer')->getTypeId(), $attributeCode); 8 | if ($attribute && $attribute->getData('entity_type_id') == Mage::getModel('eav/entity')->setType('customer')->getTypeId()) 9 | { 10 | return $this; 11 | } 12 | return parent::updateAttribute($attributeCode, $store, $productIds); 13 | } 14 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Rewrite/Core/Email/Template.php: -------------------------------------------------------------------------------- 1 | getCustomerId()) 16 | { 17 | $customer = Mage::getModel('customer/customer')->load($order->getCustomerId()); 18 | if ($customer->getId()) 19 | { 20 | $vars['customer'] = $customer; 21 | } 22 | } 23 | } 24 | return parent::sendTransactional($templateId, $sender, $email, $name, $vars, $storeId); 25 | } 26 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Rewrite/Customer/Entity/Customer.php: -------------------------------------------------------------------------------- 1 | _getReadAdapter()->select() 7 | ->from(array('e' => $this->getEntityTable()), array($this->getEntityIdField())) 8 | ->joinLeft(array('attr' => $this->getEntityTable() . '_' . $attribute->getBackendType()), 'attr.entity_id = e.entity_id') 9 | //->where('email=?', $email); 10 | ->where('attr.attribute_id=:attribute_id') 11 | ->where('attr.value=:attribute_value'); 12 | if ($id = $this->_getReadAdapter()->fetchOne($select, array('attribute_id' => $attribute->getId(), 'attribute_value' => $attributeValue))) { 13 | $this->load($customer, $id); 14 | } 15 | else { 16 | $customer->setData(array()); 17 | } 18 | if ($customer->getSharingConfig()->isWebsiteScope()) { 19 | if (!$customer->hasData('website_id')) { 20 | //Mage::throwException(Mage::helper('customer')->__('Customer website ID must be specified when using the website scope.')); 21 | } 22 | $select->where('website_id=?', (int)$customer->getWebsiteId()); 23 | } 24 | return $this; 25 | } 26 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Setup.php: -------------------------------------------------------------------------------- 1 | getEntityTypeId($entityTypeId); 16 | $attributeId = $this->getAttributeId($entityTypeId, $attributeId); 17 | return !empty($attributeId); 18 | } 19 | catch(Exception $e) 20 | { 21 | return FALSE; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Source/Group.php: -------------------------------------------------------------------------------- 1 | load()->toOptionArray(); 12 | unset($groups[0]); 13 | return $groups; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/System/Config/Source/Attributes.php: -------------------------------------------------------------------------------- 1 | getAttributesHash(); 12 | $options = array(); 13 | $options[] = array('value' => '', 'label' => Mage::helper('amcustomerattr')->__('- Magento Default (E-mail) -')); 14 | foreach ($hash as $key => $option) 15 | { 16 | $options[] = array('value' => $key, 'label' => $option); 17 | } 18 | return $options; 19 | } 20 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Validation.php: -------------------------------------------------------------------------------- 1 | _getValidationFiles(); 25 | foreach ($files as $file) { 26 | if (false !== strpos($file, '.php')) { 27 | $addon[] = Mage::getModel('amcustomerattr/validation_'.str_replace('.php', '', $file))->getValues(); 28 | } 29 | } 30 | return $addon; 31 | } 32 | 33 | /** 34 | * Retrieve JS code 35 | * 36 | * @return string 37 | */ 38 | public function getJS() 39 | { 40 | $js = ''; 41 | $files = $this->_getValidationFiles(); 42 | foreach ($files as $file) { 43 | if (false !== strpos($file, '.php')) { 44 | $js .= Mage::getModel('amcustomerattr/validation_'.str_replace('.php', '', $file))->getJS(); 45 | } 46 | } 47 | return $js; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/Model/Validation/Nickname.php: -------------------------------------------------------------------------------- 1 | $this->_value, 19 | 'label' => Mage::helper('amcustomerattr')->__('Nickname validation') 20 | ); 21 | return $values; 22 | } 23 | 24 | /** 25 | * Retrieve JS code 26 | * 27 | * @return string 28 | */ 29 | public function getJS() 30 | { 31 | $message = Mage::helper('amcustomerattr')->__('Please use only letters (a-z or A-Z), numbers (0-9), "_" and "-" symbols.'); 32 | 33 | $js = ' 34 | Validation.addAllThese([ 35 | [\''.$this->_value.'\', \''.$message.'\', function(v) { 36 | return Validation.get(\'IsEmpty\').test(v) || /^[-0-9A-Za-z_\s]+$/.test(v); 37 | }] 38 | ]);'; 39 | 40 | return $js; 41 | } 42 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/controllers/Adminhtml/GroupSelectorController.php: -------------------------------------------------------------------------------- 1 | getRequest()->getParam('param'); 12 | if (!$param) { 13 | $this->getResponse()->setBody(''); 14 | } else { 15 | $groupValues = Mage::getResourceModel('customer/group_collection') 16 | ->setRealGroupsFilter() 17 | ->load() 18 | ->toOptionArray(); 19 | 20 | foreach($groupValues as $key=>$val) { 21 | $response[$val['value']] = $val['label']; 22 | } 23 | 24 | $result = Zend_Json::encode($response); 25 | $this->getResponse()->setBody( 26 | $result 27 | ); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/controllers/GroupSelectorController.php: -------------------------------------------------------------------------------- 1 | getRequest()->getParam('param'); 12 | if (!$param) { 13 | $this->getResponse()->setBody(''); 14 | } else { 15 | $groupValues = Mage::getResourceModel('customer/group_collection') 16 | ->setRealGroupsFilter() 17 | ->load() 18 | ->toOptionArray(); 19 | 20 | foreach($groupValues as $key=>$val) { 21 | $response[$val['value']] = $val['label']; 22 | } 23 | 24 | $result = Zend_Json::encode($response); 25 | $this->getResponse()->setBody( 26 | $result 27 | ); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-install-1.0.1.php: -------------------------------------------------------------------------------- 1 | startSetup(); 5 | 6 | $installer->run(" 7 | 8 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `is_filterable_in_search` TINYINT( 1 ) UNSIGNED NOT NULL , 9 | ADD `used_in_product_listing` TINYINT( 1 ) UNSIGNED NOT NULL ; 10 | 11 | "); 12 | 13 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-1.0.1-1.0.5.php: -------------------------------------------------------------------------------- 1 | startSetup(); 5 | 6 | $installer->run(" 7 | 8 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `store_ids` VARCHAR( 255 ) NOT NULL ; 9 | 10 | "); 11 | 12 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-1.0.9-1.1.0.php: -------------------------------------------------------------------------------- 1 | startSetup(); 5 | 6 | $installer->run(" 7 | 8 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `sorting_order` SMALLINT UNSIGNED NOT NULL ; 9 | 10 | "); 11 | 12 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-1.1.1-1.1.2.php: -------------------------------------------------------------------------------- 1 | startSetup(); 5 | 6 | try 7 | { 8 | $installer->run(" 9 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `is_visible_on_front` TINYINT( 1 ) UNSIGNED NOT NULL ; 10 | "); 11 | } catch (Exception $e) 12 | { 13 | // do nothing. this field may already present in some older Magento versions 14 | } 15 | 16 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-1.1.5-1.3.0.php: -------------------------------------------------------------------------------- 1 | startSetup(); 5 | 6 | try 7 | { 8 | $installer->run(" 9 | 10 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `type_internal` VARCHAR( 255 ) NOT NULL ; 11 | 12 | "); 13 | } catch (Exception $e) 14 | { 15 | // do nothing. this field may already present in some older Magento versions 16 | } 17 | 18 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-2.2.0-2.3.0.php: -------------------------------------------------------------------------------- 1 | startSetup(); 5 | 6 | $installer->run(" 7 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `on_order_view` TINYINT( 1 ) UNSIGNED NOT NULL ; 8 | "); 9 | 10 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-2.3.0-2.4.0.php: -------------------------------------------------------------------------------- 1 | startSetup(); 5 | 6 | $installer->run(" 7 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `on_registration` TINYINT( 1 ) UNSIGNED NOT NULL ; 8 | "); 9 | 10 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-2.4.0-2.5.0.php: -------------------------------------------------------------------------------- 1 | startSetup(); 10 | 11 | $installer->run(" 12 | ALTER TABLE `{$this->getTable('eav/attribute_option')}` ADD `group_id` INT( 10 ) UNSIGNED NOT NULL ; 13 | "); 14 | 15 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-3.0.0-4.0.0.php: -------------------------------------------------------------------------------- 1 | startSetup(); 10 | 11 | $installer->run(" 12 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `used_in_order_grid` TINYINT( 1 ) UNSIGNED NOT NULL ; 13 | "); 14 | 15 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-4.2.0-5.0.0.php: -------------------------------------------------------------------------------- 1 | startSetup(); 10 | 11 | $installer->run(" 12 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `file_size` SMALLINT( 5 ) UNSIGNED NOT NULL ; 13 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `file_types` VARCHAR( 255 ) NOT NULL ; 14 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `file_dimentions` VARCHAR( 255 ) NOT NULL ; 15 | "); 16 | 17 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-5.0.0-5.0.1.php: -------------------------------------------------------------------------------- 1 | startSetup(); 10 | 11 | $installer->run(" 12 | CREATE TABLE `temp_am_customerattr_relation_details` ( 13 | `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 14 | `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0', 15 | `option_id` int(10) unsigned NOT NULL DEFAULT '0', 16 | `dependent_attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0', 17 | `relation_id` int(10) unsigned NOT NULL DEFAULT '0', 18 | PRIMARY KEY (`id`) 19 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 20 | INSERT INTO `temp_am_customerattr_relation_details` (`attribute_id`, `option_id`, `dependent_attribute_id`, `relation_id`) 21 | SELECT `attribute_id`, `option_id`, `dependent_attribute_id`, `relation_id` FROM `{$this->getTable('amcustomerattr/details')}`; 22 | DROP TABLE `{$this->getTable('amcustomerattr/details')}`; 23 | RENAME TABLE `temp_am_customerattr_relation_details` TO `{$this->getTable('amcustomerattr/details')}`; 24 | "); 25 | 26 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-5.1.2-5.1.3.php: -------------------------------------------------------------------------------- 1 | startSetup(); 10 | 11 | $installer->run(" 12 | UPDATE `{$this->getTable('eav_attribute')}` SET `backend_type`='varchar' WHERE `frontend_input`='file' AND `backend_type`='static'; 13 | "); 14 | 15 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-5.1.5-5.1.6.php: -------------------------------------------------------------------------------- 1 | startSetup(); 10 | 11 | $installer->run(" 12 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `account_filled` TINYINT( 1 ) UNSIGNED NOT NULL ; 13 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `billing_filled` TINYINT( 1 ) UNSIGNED NOT NULL ; 14 | "); 15 | 16 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-5.1.6-5.1.7.php: -------------------------------------------------------------------------------- 1 | startSetup(); 10 | 11 | $installer->run(" 12 | ALTER TABLE `{$this->getTable('customer/eav_attribute')}` ADD `required_on_front` TINYINT( 1 ) UNSIGNED NOT NULL ; 13 | "); 14 | 15 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Amasty/Customerattr/sql/amcustomerattr_setup/mysql4-upgrade-5.2.2-5.2.3.php: -------------------------------------------------------------------------------- 1 | startSetup(); 12 | 13 | $entity = $this->getEntityTypeId('customer'); 14 | 15 | /* If the attribute exists */ 16 | if(!$this->attributeExists($entity, 'am_is_activated')) 17 | { 18 | /* delete it */ 19 | $this->removeAttribute($entity, 'am_is_activated'); 20 | } 21 | 22 | /* create the new attribute */ 23 | $this->addAttribute($entity, 'am_is_activated', array( 24 | 'type' => 'text', /* input type */ 25 | 'label' => 'Activated', /* Label for the user to read */ 26 | 'input' => 'text', /* input type */ 27 | 'visible' => TRUE, /* users can see it */ 28 | 'required' => FALSE, /* is it required, self-explanatory */ 29 | 'default_value' => '0', /* default value */ 30 | 'adminhtml_only' => '1' /* use in admin html only */ 31 | )); 32 | 33 | $installer->endSetup(); -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Edit.php: -------------------------------------------------------------------------------- 1 | _objectId = 'customersurvey_id'; 9 | $this->_blockGroup = 'customersurvey'; 10 | $this->_controller = 'adminhtml_survey'; 11 | $this->_updateButton('save', 'label', Mage::helper('CustomerSurvey')->__('Save Survey')); 12 | $this->_updateButton('delete', 'label', Mage::helper('CustomerSurvey')->__('Delete Survey')); 13 | } 14 | 15 | public function getHeaderText() 16 | { 17 | if( Mage::registry('customersurvey_data') && Mage::registry('customersurvey_data')->getId() ) { 18 | return Mage::helper('CustomerSurvey')->__("Editing Survey"); 19 | } else { 20 | return Mage::helper('CustomerSurvey')->__('Add Survey'); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Edit/Form.php: -------------------------------------------------------------------------------- 1 | 'edit_form', 10 | 'action' => $this->getUrl('*/*/save', array('ID' => $this->getRequest()->getParam('ID'))), 11 | 'method' => 'post', 12 | ) 13 | ); 14 | 15 | $form->setUseContainer(true); 16 | $this->setForm($form); 17 | 18 | return parent::_prepareForm(); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Edit/Tab/General.php: -------------------------------------------------------------------------------- 1 | setTemplate('customersurvey/general.phtml'); 9 | } 10 | 11 | public function isReadOnly() { 12 | return false; 13 | } 14 | 15 | public function getSurvey() { 16 | $customersurveyId = $this->getRequest()->getParam('id'); 17 | 18 | $survey = Mage::getModel('customersurvey/survey')->load($customersurveyId); 19 | 20 | return $survey; 21 | } 22 | 23 | public function getSurveyID() { 24 | $customersurveyId = $this->getRequest()->getParam('id'); 25 | 26 | return $customersurveyId; 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Edit/Tab/Questions.php: -------------------------------------------------------------------------------- 1 | setTemplate('customersurvey/questions.phtml'); 10 | } 11 | 12 | public function isReadOnly() { 13 | return false; 14 | } 15 | 16 | 17 | protected function _prepareLayout() 18 | { 19 | $this->setChild('delete_button', 20 | $this->getLayout()->createBlock('adminhtml/widget_button') 21 | ->setData(array( 22 | 'label' => Mage::helper('catalog')->__('Delete Option'), 23 | 'class' => 'delete delete-product-option ' 24 | )) 25 | ); 26 | 27 | return parent::_prepareLayout(); 28 | } 29 | 30 | 31 | public function getAddButtonId() 32 | { 33 | $buttonId = $this->getLayout() 34 | ->getBlock('admin.product.options') 35 | ->getChild('add_button')->getId(); 36 | return $buttonId; 37 | } 38 | 39 | public function getDeleteButtonHtml() 40 | { 41 | return $this->getChildHtml('delete_button'); 42 | } 43 | 44 | public function getMyQuestions() { 45 | $customersurveyId = $this->getRequest()->getParam('id'); 46 | 47 | if($customersurveyId) { 48 | $questions = Mage::getModel('customersurvey/questions')->getCollection()->addFieldToFilter('customersurvey_id', $customersurveyId); 49 | $questions = $questions->addAttributeToSort('sort_order', 'ASC'); 50 | } 51 | else 52 | { 53 | $questions = array(); 54 | } 55 | 56 | 57 | return $questions; 58 | 59 | } 60 | 61 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Edit/Tab/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Edit/Tabs.php: -------------------------------------------------------------------------------- 1 | setId('customersurvey_tabs'); 10 | $this->setDestElementId('edit_form'); 11 | $this->setTitle(Mage::helper('CustomerSurvey')->__('Survey Information')); 12 | } 13 | 14 | protected function _beforeToHtml() 15 | { 16 | $this->addTab('form_section1', array( 17 | 'label' => Mage::helper('CustomerSurvey')->__('General'), 18 | 'title' => Mage::helper('CustomerSurvey')->__('General'), 19 | 'content' => $this->getLayout()->createBlock('customersurvey/adminhtml_survey_edit_tab_general')->toHtml(), 20 | )); 21 | 22 | $this->addTab('form_section2', array( 23 | 'label' => Mage::helper('CustomerSurvey')->__('Questions'), 24 | 'title' => Mage::helper('CustomerSurvey')->__('Questions'), 25 | 'content' => $this->getLayout()->createBlock('customersurvey/adminhtml_survey_edit_tab_questions')->toHtml(), 26 | )); 27 | 28 | return parent::_beforeToHtml(); 29 | } 30 | 31 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Edit/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Results.php: -------------------------------------------------------------------------------- 1 | _objectId = 'customersurvey_id'; 9 | $this->_blockGroup = 'customersurvey'; 10 | $this->_controller = 'adminhtml_survey'; 11 | //$this->_updateButton('save', 'label', Mage::helper('CustomerSurvey')->__('Save Survey')); 12 | //$this->_updateButton('delete', 'label', Mage::helper('CustomerSurvey')->__('Delete Survey')); 13 | } 14 | 15 | public function getHeaderText() 16 | { 17 | if( Mage::registry('customersurvey_data') && Mage::registry('customersurvey_data')->getId() ) { 18 | return Mage::helper('CustomerSurvey')->__("Results"); 19 | } else { 20 | return Mage::helper('CustomerSurvey')->__(''); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Results/Tab/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Results/Tabs.php: -------------------------------------------------------------------------------- 1 | setId('customersurvey_tabs'); 10 | $this->setDestElementId('edit_form'); 11 | $this->setTitle(Mage::helper('CustomerSurvey')->__('Survey Results')); 12 | } 13 | 14 | protected function _beforeToHtml() 15 | { 16 | 17 | $this->addTab('form_section1', array( 18 | 'label' => Mage::helper('CustomerSurvey')->__('General'), 19 | 'title' => Mage::helper('CustomerSurvey')->__('General'), 20 | 'content' => $this->getLayout()->createBlock('customersurvey/adminhtml_survey_results_tab_general')->toHtml(), 21 | )); 22 | 23 | $this->addTab('form_section2', array( 24 | 'label' => Mage::helper('CustomerSurvey')->__('Graphical'), 25 | 'title' => Mage::helper('CustomerSurvey')->__('Graphical'), 26 | 'content' => $this->getLayout()->createBlock('customersurvey/adminhtml_survey_results_tab_graphical')->toHtml(), 27 | )); 28 | 29 | return parent::_beforeToHtml(); 30 | } 31 | 32 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/Results/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Adminhtml/Survey/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Block.php: -------------------------------------------------------------------------------- 1 | setTemplate('customersurvey/block.phtml'); 8 | } 9 | 10 | protected function _prepareLayout() 11 | { 12 | parent::_prepareLayout(); 13 | $headBlock = $this->getLayout()->getBlock('head'); 14 | if ($headBlock) { 15 | $headBlock->setTitle($this->__('List Customer Surveys')); 16 | } 17 | } 18 | 19 | public function getSurveys() 20 | { 21 | return Mage::getModel('customersurvey/survey')->getCollection(); 22 | } 23 | 24 | 25 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Complete.php: -------------------------------------------------------------------------------- 1 | setTemplate('customersurvey/complete.phtml'); 8 | } 9 | 10 | protected function _prepareLayout() 11 | { 12 | parent::_prepareLayout(); 13 | $headBlock = $this->getLayout()->getBlock('head'); 14 | if ($headBlock) { 15 | $headBlock->setTitle($this->__('Customer Survey')); 16 | } 17 | } 18 | 19 | public function getCurrentSurvey() 20 | { 21 | $customersurveyId = $this->getRequest()->getParam('id'); 22 | 23 | return Mage::getModel('customersurvey/survey')->load($customersurveyId); 24 | } 25 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/GridContainer.php: -------------------------------------------------------------------------------- 1 | _blockGroup = 'customersurvey'; 7 | $this->_headerText = Mage::helper('CustomerSurvey')->__('Survey Manager'); 8 | $this->_addButtonLabel = Mage::helper('CustomerSurvey')->__('Add Survey'); 9 | parent::__construct(); 10 | } 11 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/List.php: -------------------------------------------------------------------------------- 1 | setTemplate('customersurvey/list.phtml'); 8 | } 9 | 10 | protected function _prepareLayout() 11 | { 12 | parent::_prepareLayout(); 13 | $headBlock = $this->getLayout()->getBlock('head'); 14 | if ($headBlock) { 15 | $headBlock->setTitle($this->__('List Customer Surveys')); 16 | } 17 | } 18 | 19 | public function getSurveys() 20 | { 21 | return Mage::getModel('customersurvey/survey')->getCollection(); 22 | } 23 | 24 | public function questionsForSurvey($customersurveyId) 25 | { 26 | return Mage::getModel('customersurvey/questions')->getCollection()->addFieldToFilter('customersurvey_id', $customersurveyId)->count(); 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/Take.php: -------------------------------------------------------------------------------- 1 | setTemplate('customersurvey/take.phtml'); 10 | } 11 | 12 | protected function _prepareLayout() 13 | { 14 | parent::_prepareLayout(); 15 | $headBlock = $this->getLayout()->getBlock('head'); 16 | if ($headBlock) { 17 | $headBlock->setTitle($this->__('Customer Survey')); 18 | } 19 | } 20 | 21 | public function setDataByKey($key, $value) { 22 | if($key == "survey_id") { 23 | $this->survey_id = $value; 24 | } 25 | } 26 | 27 | public function getCurrentSurvey() 28 | { 29 | if(!$this->survey_id) { 30 | $this->survey_id = $this->getRequest()->getParam('id'); 31 | } 32 | 33 | if(!$this->survey_id) { 34 | $this->survey_id = $this->getID(); 35 | } 36 | 37 | return Mage::getModel('customersurvey/survey')->load($this->survey_id); 38 | } 39 | 40 | public function getMyQuestions() { 41 | if($this->survey_id) { 42 | $questions = Mage::getModel('customersurvey/questions')->getCollection()->addFieldToFilter('customersurvey_id', $this->survey_id); 43 | $questions = $questions->addAttributeToSort('sort_order', 'ASC'); 44 | } 45 | else 46 | { 47 | $questions = array(); 48 | } 49 | 50 | return $questions; 51 | } 52 | 53 | public function getSaveUrl() { 54 | return $this->getUrl('customersurvey/index/save', ''); 55 | } 56 | 57 | protected function _toHtml() 58 | { 59 | $this->survey_id = $this->getID(); 60 | $this->_construct(); 61 | $this->survey_id = $this->getID(); 62 | $this->_prepareLayout(); 63 | 64 | return parent::_toHtml(); 65 | } 66 | 67 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Block/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Helper/Data.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Questions.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/questions', 'question_id'); 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Questions/Collection.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/questions'); 9 | } 10 | 11 | public function addAttributeToSort($attribute, $dir='asc') 12 | { 13 | if (!is_string($attribute)) { 14 | return $this; 15 | } 16 | $this->setOrder($attribute, $dir); 17 | return $this; 18 | } 19 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Questions/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Results.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/results', 'result_id'); 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Results/Collection.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/results'); 9 | } 10 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Results/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Survey.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/survey', 'customersurvey_id'); 8 | } 9 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Survey/Collection.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/survey'); 9 | } 10 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/Survey/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Mysql4/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Questions.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/questions', 'question_id'); 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Results.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/results', 'result_id'); 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/Survey.php: -------------------------------------------------------------------------------- 1 | _init('customersurvey/survey', 'customersurvey_id'); 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/Model/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/controllers/IndexController.php: -------------------------------------------------------------------------------- 1 | loadLayout(); 7 | 8 | $this->renderLayout(); 9 | } 10 | 11 | public function viewAction() 12 | { 13 | $this->loadLayout(); 14 | 15 | $this->renderLayout(); 16 | } 17 | 18 | public function completeAction() 19 | { 20 | $this->loadLayout(); 21 | 22 | $this->renderLayout(); 23 | } 24 | 25 | public function saveAction() { 26 | //first get the survey id that we are looking at. 27 | $surveyID = $this->getRequest()->getParam('survey_number'); 28 | 29 | if($surveyID) { 30 | //get each question that is in this survey 31 | $questions = Mage::getModel('customersurvey/questions')->getCollection()->addFieldToFilter('customersurvey_id', $surveyID); 32 | 33 | foreach($questions as $question) { 34 | $result = $this->getRequest()->getParam('question' . $question->question_id); 35 | 36 | if($result != '') { 37 | $NewResult = Mage::getModel('customersurvey/results'); 38 | 39 | $NewResult->customersurvey_id = $surveyID; 40 | $NewResult->question_id = $question->question_id; 41 | $NewResult->answer = (string)$result; 42 | 43 | $NewResult->save(); 44 | } 45 | } 46 | } 47 | 48 | $this->_redirect('*/*/complete/', array('id' => $surveyID)); 49 | } 50 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/controllers/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/CustomerSurvey/etc/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/Duplicate/Helper/Data.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | duplicate Section 13 | 0 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/Duplicate/etc/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 0.1.0 6 | 7 | 8 | 9 | 10 | 11 | Sunpop_Duplicate_Helper 12 | 13 | 14 | 15 | 16 | Sunpop_Duplicate_Model 17 | duplicate_mysql4 18 | 19 | 20 | 21 | 22 | Sunpop_Duplicate_Model_Product 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | singleton 31 | duplicate/observer 32 | copyInventoryData 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/Duplicate/etc/system.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 0 7 | 8 | 9 | 10 | 11 | 12 | duplicate 13 | text 14 | 0 15 | 1 16 | 1 17 | 1 18 | 19 | 20 | 21 | text 22 | 0 23 | 1 24 | 1 25 | 1 26 | 27 | 28 | 29 | select 30 | adminhtml/system_config_source_yesno 31 | 0 32 | 1 33 | 1 34 | 1 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/RestConnect/etc/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/RestConnect/etc/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 0.1.0 6 | 7 | 8 | 9 | 10 | 11 | standard 12 | 13 | Sunpop_RestConnect 14 | restconnect 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/Storelocator/Block/Adminhtml/Storelocator.php: -------------------------------------------------------------------------------- 1 | 22 | */ 23 | class Sunpop_Storelocator_Block_Adminhtml_Storelocator extends Mage_Adminhtml_Block_Widget_Grid_Container 24 | { 25 | public function __construct() 26 | { 27 | $this->_controller = 'adminhtml_storelocator'; 28 | $this->_blockGroup = 'storelocator'; 29 | $this->_headerText = Mage::helper('storelocator')->__('Store Manager'); 30 | $this->_addButtonLabel = Mage::helper('storelocator')->__('Add Store'); 31 | parent::__construct(); 32 | } 33 | } -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/Storelocator/Block/Detail.php: -------------------------------------------------------------------------------- 1 | setTemplate('storelocator/detail.phtml'); 24 | } 25 | 26 | public function getStore() 27 | { 28 | return Mage::registry('storelocator_data'); 29 | } 30 | 31 | public function getAddress() 32 | { 33 | $_store = $this->getStore(); 34 | 35 | return $_store->address; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /magento/app/code/local/Sunpop/Storelocator/Block/Search.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /magento/app/design/adminhtml/default/default/layout/amasty/ambase/ambase.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | css/amasty/ambase/style.css 7 | 8 | 9 | amasty/ambase/store.js 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /magento/app/design/adminhtml/default/default/layout/customersurvey.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /magento/app/design/adminhtml/default/default/template/page/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /magento/app/design/frontend/base/default/layout/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /magento/app/design/frontend/base/default/template/amasty/amcustomerattr/customer_fields.phtml: -------------------------------------------------------------------------------- 1 | getFormElements(); 8 | ?> 9 | isShowHeader()): ?> 10 |
11 |

__('Additional Information') ?>

12 | 13 |
14 | 23 |
24 | 25 |
26 | isShowHeader()): ?> 27 |
28 | 29 | needRelations()): ?> 30 | 31 | -------------------------------------------------------------------------------- /magento/app/design/frontend/base/default/template/customersurvey/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /magento/app/design/frontend/base/default/template/customersurvey/block.phtml: -------------------------------------------------------------------------------- 1 |
2 |
3 | __('List of Surveys') ?> 4 |
5 |
6 |
    7 | 8 | 9 | 10 | getSurveys() as $survey) { ?> 11 | 12 | enabled == 1) { ?> 13 |
  1. "> 14 |

    title; ?>

    15 |
  2. 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 |
26 |
-------------------------------------------------------------------------------- /magento/app/design/frontend/base/default/template/customersurvey/complete.phtml: -------------------------------------------------------------------------------- 1 | __('Thank you for completing the survey.') ?> 2 | 3 | getCurrentSurvey(); 5 | 6 | if($surveyID->customersurvey_id != '') { 7 | if($surveyID->code != '') { 8 | echo '

'; 9 | echo $this->__('Completing this survey granted you the following offer:'); 10 | echo '

' . $surveyID->code_title . '
'; 11 | echo $this->__('Use promo code:'); 12 | echo $surveyID->code; 13 | } 14 | } 15 | ?> -------------------------------------------------------------------------------- /magento/app/design/frontend/base/default/template/customersurvey/list.phtml: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | getSurveys() as $survey) { ?> 30 | 31 | 32 | 33 | enabled == 1) { ?> 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 |
#
__('Survey Name') ?>
__('Number of Questions') ?>
__('Promotional') ?>
.title; ?> questionsForSurvey($survey->customersurvey_id);?>code == "") { echo $this->__('No'); } else { echo $this->__('Yes'); } ?>
45 | 46 |
47 |
48 | -------------------------------------------------------------------------------- /magento/app/design/frontend/default/default/template/clnews/latest.phtml: -------------------------------------------------------------------------------- 1 | getLatestNewsItems() ?> 2 | 3 |
4 |
5 | __(Mage::getStoreConfig('clnews/news/title'));?> 6 |
7 |
8 | 23 |
24 |
25 | 26 | -------------------------------------------------------------------------------- /magento/app/etc/modules/Amasty_Base.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | local 7 | 8 | 9 | -------------------------------------------------------------------------------- /magento/app/etc/modules/Amasty_Customerattr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | local 7 | 8 | 9 | -------------------------------------------------------------------------------- /magento/app/etc/modules/Sunpop_CustomerSurvey.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | local 7 | 8 | 9 | -------------------------------------------------------------------------------- /magento/app/etc/modules/Sunpop_Duplicate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | local 7 | 0.1.0 8 | 9 | 10 | -------------------------------------------------------------------------------- /magento/app/etc/modules/Sunpop_News.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | community 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /magento/app/etc/modules/Sunpop_RestConnect.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | local 7 | 8 | 9 | -------------------------------------------------------------------------------- /magento/app/etc/modules/Sunpop_Storelocator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | local 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /magento/app/etc/modules/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /magento/app/locale/en_US/Amasty_Base.csv: -------------------------------------------------------------------------------- 1 | "Amasty Extensions","Amasty Extensions" 2 | -------------------------------------------------------------------------------- /magento/app/locale/zh_CN/Amasty_Base.csv: -------------------------------------------------------------------------------- 1 | "Amasty Extensions","Amasty Extensions" 2 | -------------------------------------------------------------------------------- /magento/app/locale/zh_CN/Sunpop_CustomerSurvey.csv: -------------------------------------------------------------------------------- 1 | Customer Survey,问卷调查 2 | Customer Surveys,问卷调查 3 | Survey,问卷 4 | Create Survey,新建问卷 5 | View Surveys,查看问卷及结果 6 | Add Survey,新建问卷 7 | General,常规 8 | Title,问卷标题 9 | Coupon Code upon Completion,答题后显示优惠码 10 | Coupon Code Title,优惠卷标题 11 | Status,是否启用此问卷 12 | Questions,问卷中的问题 13 | Questions:,问题列表 14 | Survey Questions,问题管理 15 | Add Question,新建问题 16 | Delete Question,删除问题 17 | Demove,删除 18 | Question,问题 19 | Answer Type,答案类型 20 | Sort Order,排序 21 | Satisfaction Bubbles,满意度 22 | Excellent-Poor Bubbles,品质 23 | Text Field,文本类型 24 | Text Area,备注类型 25 | 5 Star Rating,5星级评分 26 | Yes/No,是与否 27 | Custom Radio,单选 28 | Check Boxes,复选框 29 | Add Possible Answer,增加可选答案 30 | Excellent,优秀 31 | Good,良好 32 | Fair,一般般 33 | Poor,差 34 | Very satisfied,十分满意 35 | Satisfied,挺好的 36 | Neutral,正常 37 | Dissatisfied,有点失望 38 | Very dissatisfied,很差 39 | Yes,是 40 | No,否 41 | Thank you for completing the survey.,感谢您完成这个调查。 42 | Completing this survey granted you the following offer:,您可以得到我们提供的优惠 43 | Use promo code:,使用此优惠码 44 | List of Surveys,问卷列表 45 | Survey Name,调查内容 46 | Number of Questions,问题数量 47 | Promotional,优惠 48 | Submit,提交 -------------------------------------------------------------------------------- /magento/app/locale/zh_CN/Sunpop_Storelocator.csv: -------------------------------------------------------------------------------- 1 | "Storelocator","网店定位" 2 | "Manage Stores","管理多网店" 3 | "Store Manager","网店管理" 4 | "Latitude","纬度" 5 | "Longitude","经度" 6 | "New Store","添加新店" 7 | "Add Store","添加新店" 8 | "New Storelocator","添加网店定位" 9 | "Telephone","电话" 10 | "Fax","传真" 11 | "Website","网址" 12 | "Other Information","其他其他信息" 13 | -------------------------------------------------------------------------------- /magento/js/amasty/ambase/store.js: -------------------------------------------------------------------------------- 1 | Event.observe(window, 'message', function(e){ 2 | if (e.data.action == 'setHeight') 3 | { 4 | var height = e.data.height; 5 | $('amasty_store').setStyle({height: height+'px'}); 6 | } 7 | }); 8 | -------------------------------------------------------------------------------- /magento/js/commercelab/category_tree.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @category CommerceLab 3 | * @package CommerceLab_CategoryTree 4 | * @author Uvarov Yurij 5 | */ 6 | jQuery.noConflict(); 7 | 8 | jQuery(document).ready(function($){ 9 | 10 | $('#commercelab_categories_div').treeview( 11 | { 12 | collapsed: true 13 | } 14 | ); 15 | }); 16 | -------------------------------------------------------------------------------- /magento/js/commercelab/clnews/news.js: -------------------------------------------------------------------------------- 1 | jQuery.noConflict(); 2 | 3 | jQuery(document).ready(function($){ 4 | if (jQuery('.'+'c'+'l'+'c'+'o'+'p'+'y'+'r'+'i'+'g'+'h'+'t').length <= 0 ) { 5 | if (jQuery('.'+'news'+'-'+'item').length > 0) { 6 | jQuery('.'+'news'+'-'+'item').hide(); 7 | } 8 | if (jQuery('.'+'news').length > 0) { 9 | jQuery('.'+'news').hide(); 10 | } 11 | } 12 | }); -------------------------------------------------------------------------------- /magento/js/commercelab/noconflict.js: -------------------------------------------------------------------------------- 1 | jQuery.noConflict(); 2 | var CommerceLab = {}; -------------------------------------------------------------------------------- /magento/js/prototype/windows/themes/commercelab/magento/btn_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/js/prototype/windows/themes/commercelab/magento/btn_bg.gif -------------------------------------------------------------------------------- /magento/js/prototype/windows/themes/commercelab/magento/content_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/js/prototype/windows/themes/commercelab/magento/content_bg.gif -------------------------------------------------------------------------------- /magento/js/prototype/windows/themes/commercelab/magento/top_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/js/prototype/windows/themes/commercelab/magento/top_bg.gif -------------------------------------------------------------------------------- /magento/js/prototype/windows/themes/commercelab/magento/window_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/js/prototype/windows/themes/commercelab/magento/window_close.png -------------------------------------------------------------------------------- /magento/lib/Varien/Data/Form/Element/Multiselectimg.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/ambase/amasty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/ambase/amasty.png -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/ambase/bad.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/ambase/bad.gif -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/ambase/ok.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/ambase/ok.gif -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/ambase/shop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/ambase/shop.png -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/ambase/update.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/ambase/update.gif -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/customersurvey/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/customersurvey/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/customersurvey/star.png -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/customersurvey/unstar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/customersurvey/unstar.png -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/login_logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/login_logo.gif -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/logo.gif -------------------------------------------------------------------------------- /magento/skin/adminhtml/default/default/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/adminhtml/default/default/images/logo.png -------------------------------------------------------------------------------- /magento/skin/frontend/base/default/css/storelocator.css: -------------------------------------------------------------------------------- 1 | .storelist h2 { 2 | color: #e76200; 3 | float: left; 4 | } 5 | 6 | .storelist li { 7 | border: 1px solid #ccc; 8 | margin-bottom: 10px; 9 | padding: 2px; 10 | } 11 | 12 | .storelist li:hover { 13 | background:#E0E0E0; 14 | } 15 | 16 | @media only screen and (min-width: 771px) { 17 | .left { float:left !important; } 18 | .right { float:right !important; } 19 | .map_container { 20 | width: 67%; 21 | } 22 | 23 | .store_detail, .store_list{ 24 | width:30%; 25 | } 26 | } 27 | 28 | .store_detail{ 29 | word-wrap: normal; 30 | } 31 | 32 | .store_detail h2 { 33 | color: #e76200; 34 | } 35 | 36 | .store_detail td { 37 | vertical-align:top; 38 | } 39 | 40 | .store_detail td.label { 41 | width: 50%; 42 | padding-bottom: 10px; 43 | } 44 | 45 | .store_detail td.weekday { 46 | padding-right: 5px; 47 | } 48 | 49 | .store_detail img { 50 | width: 100% 51 | } 52 | 53 | .distance { 54 | float: right; 55 | } 56 | 57 | .clear { 58 | clear: both; 59 | } 60 | 61 | .label { 62 | font-weight: bold; 63 | } 64 | 65 | .address-input-text { 66 | width: 300px; 67 | } 68 | 69 | .loader { 70 | position:fixed; 71 | top:45%; 72 | left:50%; 73 | width:150px; 74 | margin-left:-105px; 75 | padding:15px; 76 | background:#fff4e9; 77 | border:2px solid #f1af73; 78 | color:#d85909; 79 | font-weight:bold; 80 | text-align:center; 81 | z-index:1000; 82 | } 83 | 84 | .loader img { 85 | margin: 0 auto; 86 | } 87 | 88 | #map { 89 | height: 400px; 90 | } 91 | 92 | #street_view { 93 | height: 400px; 94 | display: none 95 | } -------------------------------------------------------------------------------- /magento/skin/frontend/base/default/images/._ajax-loader-tr.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/base/default/images/._ajax-loader-tr.gif -------------------------------------------------------------------------------- /magento/skin/frontend/base/default/images/ajax-loader-tr.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/base/default/images/ajax-loader-tr.gif -------------------------------------------------------------------------------- /magento/skin/frontend/base/default/images/customersurvey/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /magento/skin/frontend/base/default/images/customersurvey/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/base/default/images/customersurvey/star.png -------------------------------------------------------------------------------- /magento/skin/frontend/base/default/images/customersurvey/unstar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/base/default/images/customersurvey/unstar.png -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/clnews/images/i-tags.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/clnews/images/i-tags.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/clnews/images/i_attached.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/clnews/images/i_attached.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/clnews/images/i_print.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/clnews/images/i_print.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/clnews/images/rss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/clnews/images/rss.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/file.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/file.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/folder-closed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/folder-closed.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/folder.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/minus.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/plus.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-black-line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-black-line.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-black.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-black.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-default-line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-default-line.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-default.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-default.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-famfamfam-line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-famfamfam-line.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-famfamfam.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-famfamfam.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-gray-line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-gray-line.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-gray.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-gray.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-red-line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-red-line.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-red.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/css/commercelab/treeview/images/treeview-red.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/images/_notes/dwsync.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/images/clnews/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/images/clnews/ajax-loader.gif -------------------------------------------------------------------------------- /magento/skin/frontend/default/default/images/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/default/default/images/logo.gif -------------------------------------------------------------------------------- /magento/skin/frontend/rwd/default/images/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/skin/frontend/rwd/default/images/logo.gif -------------------------------------------------------------------------------- /magento/smsapi/log.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/magento/smsapi/log.txt -------------------------------------------------------------------------------- /magento/smsapi/接口说明.txt: -------------------------------------------------------------------------------- 1 | 接口说明 2 | 3 | /** 4 | * 初始化 5 | * @param serverIP 必选参数 服务器地址 6 | * @param serverPort 必选参数 服务器端口 7 | * @param softVersion 必选参数 REST版本号 8 | */ 9 | REST($serverIP,$serverPort,$softVersion) 10 | 11 | 12 | /** 13 | * 设置主帐号 14 | * 15 | * @param AccountSid 主帐号 16 | * @param AccountToken 主帐号Token 17 | */ 18 | function setAccount($AccountSid,$AccountToken) 19 | 20 | 21 | /** 22 | * 设置应用ID 23 | * 24 | * @param AppId 应用ID 25 | */ 26 | function setAppId($AppId) 27 | 28 | 29 | /** 30 | * 打印日志 31 | * 32 | * @param log 日志内容 33 | */ 34 | function showlog($log) 35 | 36 | 37 | /** 38 | * 发起HTTPS请求 39 | * @param url 请求地址 40 | * @param data 请求包体 41 | * @param header 请求包头 42 | * @param post 请求方式 默认为1 1:post,0:get 43 | */ 44 | function curl_post($url,$data,$header,$post=1) 45 | 46 | /** 47 | * 发送模板短信 48 | * @param to 短信接收彿手机号码集合,用英文逗号分开 49 | * @param datas 内容数据 格式为数组 例如:array('Marry','Alon'),如不需替换请填 null 50 | * @param $tempId 模板Id,测试应用和未上线应用使用测试模板请填写1,正式应用上线后填写已申请审核通过的模板ID 51 | */ 52 | function sendTemplateSMS($to,$datas,$tempId) 53 | -------------------------------------------------------------------------------- /magento/wget1.php: -------------------------------------------------------------------------------- 1 | setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)); 5 | $id = 2; 6 | 7 | $product = Mage::getModel('catalog/product')->load($id); 8 | 9 | $data = array (); 10 | $attributes = $product->getAttributes(); 11 | $data[base] = array( 12 | 'id' => $id, 13 | 'name' => $product -> getName (), 14 | 'sku' => $product -> getSku () 15 | ); 16 | foreach ( $attributes as $attribute ) { 17 | $value= $attribute->getFrontend()->getValue($product); 18 | $code = $attribute->getAttributeCode(); 19 | if ($attribute->getIsVisibleOnFront() && !in_array($attribute->getAttributeCode(), $excludeAttr)) { 20 | if (!$product->hasData($attribute->getAttributeCode())) { 21 | $value = Mage::helper('catalog')->__('N/A'); 22 | } elseif ((string)$value == '') { 23 | $value = Mage::helper('catalog')->__('No'); 24 | } elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) { 25 | $value = Mage::app()->getStore()->convertPrice($value, true); 26 | } 27 | } 28 | if (is_string($value) && strlen($value)) { 29 | $data[$code] = array( 30 | 'label' => $attribute->getStoreLabel(), 31 | 'value' => $value, 32 | 'code' => $code 33 | ); 34 | } 35 | } 36 | 37 | echo json_encode ( $data ); 38 | 39 | ?> -------------------------------------------------------------------------------- /magento/wset1.txt: -------------------------------------------------------------------------------- 1 | #安装1,SQL,修改基础信息 2 | UPDATE `core_config_data` SET `value`='http://w.sunpop.cn/' WHERE `path`='web/unsecure/base_url'; 3 | UPDATE `core_config_data` SET `value`='http://w.sunpop.cn/' WHERE `path`='web/secure/base_url'; 4 | UPDATE `core_config_data` SET `value`='zh_CN' WHERE `path`='general/locale/code'; 5 | UPDATE `core_config_data` SET `value`='Asia/Chongqing' WHERE `path`='general/locale/timezone'; 6 | 7 | UPDATE `core_config_data` SET `value`='CNY' WHERE `path`='currency/options/base'; 8 | UPDATE `core_config_data` SET `value`='CNY' WHERE `path`='currency/options/default'; 9 | UPDATE `core_config_data` SET `value`='CNY' WHERE `path`='currency/options/allow'; 10 | 11 | UPDATE `core_config_data` SET `value`='CN' WHERE `path`='general/country/default'; 12 | UPDATE `core_config_data` SET `value`='CN' WHERE `path`='general/country/allow'; 13 | UPDATE `core_config_data` SET `value`='CN' WHERE `path`='general/country/optional_zip_countries'; 14 | UPDATE `core_config_data` SET `value`='CN' WHERE `path`='general/store_information/merchant_countrys'; 15 | 16 | UPDATE `core_config_data` SET `value`='文宝印章' WHERE `path`='general/store_information/name'; 17 | UPDATE `core_config_data` SET `value`='文宝印章' WHERE `path`='design/header/logo_alt'; 18 | UPDATE `core_config_data` SET `value`='文宝印章' WHERE `path`='design/head/default_title'; 19 | UPDATE `core_config_data` SET `value`='文宝印章' WHERE `path`='general/store_information/name'; 20 | UPDATE `core_config_data` SET `value`='文宝印章欢迎您' WHERE `path`='design/header/welcome'; 21 | UPDATE `core_config_data` SET `value`='© 版权所有 文宝印章' WHERE `path`='design/footer/copyright'; -------------------------------------------------------------------------------- /magento/wset3.php: -------------------------------------------------------------------------------- 1 | setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)); 5 | $installer = new Mage_Catalog_Model_Resource_Setup; 6 | $attribute = array( 7 | 'type' => 'int', 8 | 'label'=> '是否虚拟产品目录', 9 | 'input' => 'select', 10 | 'source' => 'eav/entity_attribute_source_boolean', 11 | 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, 12 | 'visible' => true, 13 | 'required' => false, 14 | 'user_defined' => true, 15 | 'default' => '', 16 | 'group' => 'General Information' 17 | ); 18 | $installer->removeAttribute('catalog_category', 'a_cat_virtual'); 19 | $installer->addAttribute('catalog_category', 'a_cat_virtual', $attribute); 20 | 21 | $installer->endSetup(); 22 | echo __file__; 23 | echo '3增加目录属性成功'; 24 | ?> -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xinliApp", 3 | "version": "3.1.12", 4 | "description": "XinLi Stamp App", 5 | "dependencies": { 6 | "gulp": "^3.5.6", 7 | "gulp-sass": "^1.3.3", 8 | "gulp-concat": "^2.2.0", 9 | "gulp-minify-css": "^0.3.0", 10 | "gulp-rename": "^1.2.0" 11 | }, 12 | "devDependencies": { 13 | "bower": "^1.3.3", 14 | "gulp-util": "^2.2.14", 15 | "shelljs": "^0.3.0" 16 | }, 17 | "cordovaPlugins": [ 18 | "org.apache.cordova.device", 19 | "org.apache.cordova.console", 20 | "com.ionic.keyboard", 21 | "org.apache.cordova.splashscreen", 22 | "cordova-plugin-whitelist", 23 | "cordova-plugin-inappbrowser", 24 | "cordova-plugin-x-socialsharing" 25 | ], 26 | "cordovaPlatforms": [ 27 | "ios", 28 | "android" 29 | ] 30 | } -------------------------------------------------------------------------------- /plugin.md: -------------------------------------------------------------------------------- 1 | ionic browser add crosswalk 2 | ionic plugin add com.ionic.keyboard cordova-plugin-crosswalk-webview cordova-plugin-inappbrowser cordova-plugin-splashscreen cordova-plugin-whitelist cordova-plugin-x-socialsharing org.apache.cordova.console org.apache.cordova.device org.apache.cordova.inappbrowser 3 | -------------------------------------------------------------------------------- /resources/android/icon/drawable-hdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/icon/drawable-hdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-ldpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/icon/drawable-ldpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-mdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/icon/drawable-mdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/icon/drawable-xhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/splash/DPjWebwww.kikuu.com.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/DPjWebwww.kikuu.com.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-land-hdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-land-ldpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-land-mdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-land-xhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-land-xxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-land-xxxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-port-hdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-port-ldpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-port-mdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-port-xhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-port-xxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/android/splash/drawable-port-xxxhdpi-screen.png -------------------------------------------------------------------------------- /resources/cp.sh: -------------------------------------------------------------------------------- 1 | cp splash.png android/splash/drawable-port-xxxhdpi-screen.png 2 | cp splash.png android/splash/drawable-land-xhdpi-screen.png 3 | cp splash.png android/splash/drawable-port-ldpi-screen.png 4 | cp splash.png android/splash/drawable-port-hdpi-screen.png 5 | cp splash.png android/splash/drawable-land-xxhdpi-screen.png 6 | cp splash.png android/splash/drawable-land-mdpi-screen.png 7 | cp splash.png android/splash/drawable-port-xhdpi-screen.png 8 | cp splash.png android/splash/drawable-port-xxhdpi-screen.png 9 | cp splash.png android/splash/drawable-land-xxxhdpi-screen.png 10 | cp splash.png android/splash/drawable-land-hdpi-screen.png 11 | cp splash.png android/splash/drawable-port-mdpi-screen.png 12 | cp splash.png android/splash/drawable-land-ldpi-screen.png 13 | -------------------------------------------------------------------------------- /resources/ios/icon/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-1024.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-40.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-40@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-50.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-50@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-512.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-60.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-60@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-60@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-72.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-72@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-76.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-76@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-small.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-small@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon-small@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon.png -------------------------------------------------------------------------------- /resources/ios/icon/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/icon@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/ios13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios13.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios14.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios23.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios24.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios24.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios33.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios33.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios34.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios34.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios43.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios43.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios44.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios44.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios53.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios53.jpg -------------------------------------------------------------------------------- /resources/ios/icon/ios54.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/icon/ios54.jpg -------------------------------------------------------------------------------- /resources/ios/splash/DPjWebwww.kikuu.com.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/DPjWebwww.kikuu.com.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-568h@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default-568h@2x~iphone.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-667h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default-667h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default-736h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default-Landscape-736h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default-Landscape@2x~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default-Portrait@2x~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /resources/ios/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/resources/ios/splash/Default~iphone.png -------------------------------------------------------------------------------- /scss/ionic.app.scss: -------------------------------------------------------------------------------- 1 | /* 2 | To customize the look and feel of Ionic, you can override the variables 3 | in ionic's _variables.scss file. 4 | 5 | For example, you might change some of the default colors: 6 | 7 | $light: #fff !default; 8 | $stable: #f8f8f8 !default; 9 | $positive: #387ef5 !default; 10 | $calm: #11c1f3 !default; 11 | $balanced: #33cd5f !default; 12 | $energized: #ffc900 !default; 13 | $assertive: #ef473a !default; 14 | $royal: #886aea !default; 15 | $dark: #444 !default; 16 | */ 17 | 18 | // The path for our ionicons font files, relative to the built CSS in www/css 19 | $ionicons-font-path: "../lib/ionic/fonts" !default; 20 | 21 | // Include all of Ionic 22 | @import "www/lib/ionic/scss/ionic"; 23 | 24 | -------------------------------------------------------------------------------- /www/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /www/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /www/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /www/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /www/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /www/img/Avatar-100-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/Avatar-100-100.png -------------------------------------------------------------------------------- /www/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/loading.gif -------------------------------------------------------------------------------- /www/img/loading1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/loading1.gif -------------------------------------------------------------------------------- /www/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/logo.png -------------------------------------------------------------------------------- /www/img/logo120x44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/logo120x44.png -------------------------------------------------------------------------------- /www/img/position.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/position.png -------------------------------------------------------------------------------- /www/img/spash1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/spash1.jpg -------------------------------------------------------------------------------- /www/img/spash2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/spash2.jpg -------------------------------------------------------------------------------- /www/img/spash3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/img/spash3.jpg -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Home 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /www/js/config.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | window.Config = { 4 | isRelease: true, 5 | debug: true, 6 | baseUrl: 'http://shiny.sunpop.cn/', 7 | 8 | getRememberme: function () { 9 | return localStorage['rememberme'] || true; 10 | }, 11 | setRememberme: function (rememberme) { 12 | localStorage['rememberme'] = rememberme; 13 | }, 14 | getUsername: function () { 15 | return localStorage['username']|| ''; 16 | }, 17 | setUsername: function (username) { 18 | localStorage['username'] = username; 19 | }, 20 | getPassword: function () { 21 | return localStorage['password']|| ''; 22 | }, 23 | setPassword: function (password) { 24 | localStorage['password'] = password; 25 | }, 26 | getLocale: function () { 27 | return localStorage['locale'] || 'cn'; 28 | }, 29 | setLocale: function (locale) { 30 | localStorage['locale'] = locale; 31 | }, 32 | frames: { 33 | survey: { 34 | src: '/customersurvey' 35 | }, 36 | personal: { 37 | src: '/customer/account/edit' 38 | }, 39 | account: { 40 | src: '/customer/account' 41 | }, 42 | order: { 43 | src: '/sales/order/history/' 44 | }, 45 | address: { 46 | src: '/customer/address' 47 | }, 48 | wishlist: { 49 | src: '/wishlist' 50 | }, 51 | cart: { 52 | src: '/checkout/cart/' 53 | } 54 | } 55 | }; 56 | 57 | if (!Config.isRelease) { 58 | Config.baseUrl = '/'; 59 | } 60 | -------------------------------------------------------------------------------- /www/js/filter.js: -------------------------------------------------------------------------------- 1 | angular.module('app.filters', []) 2 | .filter('discount', function () { 3 | return function (product) { 4 | return ~~(-100 * (product.regular_price_with_tax - 5 | product.final_price_with_tax) / 6 | product.regular_price_with_tax) + '%'; 7 | }; 8 | }) 9 | 10 | .filter('unsafe', ['$sce', function ($sce) { 11 | return function (val) { 12 | return $sce.trustAsHtml(val); 13 | }; 14 | }]) 15 | 16 | /* 手机前端有问题,暂时停用 17 | .filter('minqty', function () { 18 | return function (qty) { 19 | if (!qty) qty = 1; 20 | if ( qty < 1) qty=1; 21 | return qty; 22 | }; 23 | }) 24 | */ 25 | 26 | .filter('price', function () { 27 | return function (price) { 28 | return ~~price; 29 | }; 30 | }); -------------------------------------------------------------------------------- /www/js/util.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Util 类,工具 3 | * 使用例如: 4 | * utils.queryUrl(); 5 | */ 6 | 7 | (function (window) { 8 | window.utils = { 9 | queryUrl: function (key) { 10 | var query = {}; 11 | $.each(location.hash.substring(location.hash.indexOf('?') + 1).split('&'), function (i, item) { 12 | var items = item.split('='); 13 | query[items[0]] = items[1]; 14 | }); 15 | if (key) { 16 | return query[key]; 17 | } 18 | return query; 19 | }, 20 | 21 | //将金额转化为千位带,的,尾数四舍五入,如使用 fmoney(12345.00, 0),则返回12,345 22 | fmoney: function (s, n) { 23 | n = n > 0 && n <= 20 ? n : 2; 24 | s = parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(n) + ''; 25 | 26 | var l = s.split('.')[0].split('').reverse(), 27 | r = s.split('.')[1], 28 | t = ''; 29 | 30 | for (var i = 0; i < l.length; i ++ ) { 31 | t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? ',' : ''); 32 | } 33 | return t.split('').reverse().join('') + '.' + r; 34 | }, 35 | 36 | // 金额还原函数 37 | rmoney: function (s) { 38 | return parseFloat(s.replace(/[^\d\.-]/g, '')); 39 | } 40 | }; 41 | })(window); -------------------------------------------------------------------------------- /www/lib/ionic/release/fonts/ionicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/lib/ionic/release/fonts/ionicons.eot -------------------------------------------------------------------------------- /www/lib/ionic/release/fonts/ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/lib/ionic/release/fonts/ionicons.ttf -------------------------------------------------------------------------------- /www/lib/ionic/release/fonts/ionicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohuadeng/magento-app-v2/6b4df2f686fda4ff8a94c92d6e13f17234ad710f/www/lib/ionic/release/fonts/ionicons.woff -------------------------------------------------------------------------------- /www/templates/agent.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 8 | 9 | 13 | 14 | 18 | 19 | 23 | 24 | 28 | 29 | 33 |
34 |
35 |
36 | -------------------------------------------------------------------------------- /www/templates/cart.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 |

{{item.item_title}}

7 |
8 | 9 |
10 |
11 | 12 | {{symbol}}{{item.item_price | number:0}}  x {{item.qty}} 13 | 14 |
15 |
16 |
17 |
18 |
19 | -------------------------------------------------------------------------------- /www/templates/certDownload.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /www/templates/forgotPwd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |

 

5 |

请将您的手机及帐号信息发邮件至 1442382512@qq.com

6 |
7 | 11 |
12 | {{'wait_tip' | translate}} 13 |
14 |
15 |
16 |
17 | 18 |
19 | 20 |
21 |
22 |
23 |
-------------------------------------------------------------------------------- /www/templates/frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 |
-------------------------------------------------------------------------------- /www/templates/imgFullscreen.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 |
-------------------------------------------------------------------------------- /www/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

 

4 | 5 |
6 | 10 | 14 |
  • 15 | 18 | {{'remember_me' | translate}} 19 |
  • 20 | 21 | 33 |
    34 |
    35 |
    36 | -------------------------------------------------------------------------------- /www/templates/privacy.html: -------------------------------------------------------------------------------- 1 | 2 |
    3 |

        在新力印章,您的信任对我们而言意味着一切。正因如此,我们尊重你的隐私,并使用强大的技术来保护它们,更以严格的政策来管理所有数据的处理方式。

    4 |

        安全和隐私是我们设计所有硬件、软件与服务的基础。同时,我们还在持续不断地改进与完善。

    5 |

        我们坚信,那些关乎个人信息的事,都应事先如实告知于你,并在你与我们共享它们之前征得你的许可。如果你稍后改变了主意,我们也能让你轻松停止与我们的共享。当我们请求使用你的数据时,其目的是为你提供更好的用户体验。

    6 |

        我们发布这个内容,是为了说明我们如何处理你的个人信息,我们会收集和不会收集哪些信息,以及其中的原因。我们将确保让你能至少每年一次于本App获得有关 新力 隐私政策的更新,并及时获悉我们政策的重大变化。

    7 |

        我们会采集您的姓名、电话、邮件、地址这些基本用户信息,我们获取的用户基础信息只会用于新力印章的业务与营销。我们App内所有的业务和广告都是服务于新力印章的。。我们从未与任何第三方公司或机构就任何产品或服务建立过所谓的 "后门",并且永远不会。

    8 |

        我们对保护个人隐私的承诺,源于对消费者深深的尊重。我们知道,获得你的信任并非易事。也正因如此,我们才一如既往地全力以赴,来赢得并保持这份信任。

    9 |
    10 |
    11 |
    12 |
    13 |
    14 | -------------------------------------------------------------------------------- /www/templates/productImg.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /www/templates/searchAgent.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 |
    5 | 6 |
    7 |
    8 |
    9 |
    10 | 14 | 15 | 16 | 20 |
    21 |
    22 | 23 |
    24 |
    25 |
    26 | -------------------------------------------------------------------------------- /www/templates/setting.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
      4 |
    • 5 |

      {{'language' | translate}}

      6 | 15 |
    • 16 |
    • 17 | {{'welcome' | translate}} 18 |
    • 19 |
    • 20 | {{'version' | translate}}{{'colon' | translate}} v3.1.12 21 |
    • 22 |
    23 |
    24 |
    25 | -------------------------------------------------------------------------------- /www/templates/survey.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 8 |
    9 |
    10 | 11 |
    12 |
    13 |
    14 | -------------------------------------------------------------------------------- /www/templates/welcome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | --------------------------------------------------------------------------------