custom_blouse - Version 1.0.0

Version Notes

First Released

Download this release

Release Info

Developer Chandan Kumar Singh
Extension custom_blouse
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

Files changed (40) hide show
  1. app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse.php +12 -0
  2. app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Edit.php +45 -0
  3. app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Edit/Form.php +19 -0
  4. app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Edit/Tab/Form.php +58 -0
  5. app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Edit/Tabs.php +24 -0
  6. app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Grid.php +126 -0
  7. app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Renderer/Image.php +13 -0
  8. app/code/community/Chandan/Blouse/Block/Adminhtml/Helper/Image.php +11 -0
  9. app/code/community/Chandan/Blouse/Block/Blouse.php +17 -0
  10. app/code/community/Chandan/Blouse/Helper/Data.php +6 -0
  11. app/code/community/Chandan/Blouse/Model/Blouse.php +10 -0
  12. app/code/community/Chandan/Blouse/Model/Mysql4/Blouse.php +10 -0
  13. app/code/community/Chandan/Blouse/Model/Mysql4/Blouse/Collection.php +10 -0
  14. app/code/community/Chandan/Blouse/Model/Status.php +15 -0
  15. app/code/community/Chandan/Blouse/controllers/Adminhtml/BlouseController.php +224 -0
  16. app/code/community/Chandan/Blouse/controllers/IndexController.php +161 -0
  17. app/code/community/Chandan/Blouse/etc/config.xml +152 -0
  18. app/code/community/Chandan/Blouse/etc/system.xml +54 -0
  19. app/code/community/Chandan/Blouse/sql/blouse_setup/mysql4-install-1.0.0.php +73 -0
  20. app/design/adminhtml/default/default/layout/blouse.xml +8 -0
  21. app/design/frontend/base/default/layout/blouse.xml +63 -0
  22. app/design/frontend/base/default/template/blouse/blouse.phtml +646 -0
  23. app/design/frontend/base/default/template/blouse/checkout/cart/item/default.phtml +309 -0
  24. app/design/frontend/base/default/template/blouse/checkout/onepage/review/info.phtml +59 -0
  25. app/design/frontend/base/default/template/blouse/checkout/onepage/review/item.phtml +279 -0
  26. app/etc/modules/Chandan_Blouse.xml +9 -0
  27. media/blouse/1.png +0 -0
  28. media/blouse/2.png +0 -0
  29. media/blouse/3.png +0 -0
  30. media/blouse/4.png +0 -0
  31. media/blouse/5.png +0 -0
  32. package.xml +18 -0
  33. skin/frontend/base/default/blouse/css/blouse.css +445 -0
  34. skin/frontend/base/default/blouse/images/blouse/classic-round.svg +67 -0
  35. skin/frontend/base/default/blouse/images/blouse/cross-blouse.svg +10 -0
  36. skin/frontend/base/default/blouse/images/blouse/measurements.svg +58 -0
  37. skin/frontend/base/default/blouse/images/blouse/tick.png +0 -0
  38. skin/frontend/base/default/blouse/images/blouse/x.svg +12 -0
  39. skin/frontend/base/default/blouse/js/blouse.js +500 -0
  40. skin/frontend/base/default/blouse/js/iwd-jquery-2.1.3.min.js +5 -0
app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Chandan_Blouse_Block_Adminhtml_Blouse extends Mage_Adminhtml_Block_Widget_Grid_Container
3
+ {
4
+ public function __construct()
5
+ {
6
+ $this->_controller = 'adminhtml_blouse';
7
+ $this->_blockGroup = 'blouse';
8
+ $this->_headerText = Mage::helper('blouse')->__('Blouse Style Manager');
9
+ $this->_addButtonLabel = Mage::helper('blouse')->__('Add Item');
10
+ parent::__construct();
11
+ }
12
+ }
app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Edit.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Block_Adminhtml_Blouse_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
+ {
5
+ public function __construct()
6
+ {
7
+ parent::__construct();
8
+
9
+ $this->_objectId = 'id';
10
+ $this->_blockGroup = 'blouse';
11
+ $this->_controller = 'adminhtml_blouse';
12
+
13
+ $this->_updateButton('save', 'label', Mage::helper('blouse')->__('Save Style'));
14
+ $this->_updateButton('delete', 'label', Mage::helper('blouse')->__('Delete Style'));
15
+
16
+ $this->_addButton('saveandcontinue', array(
17
+ 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
18
+ 'onclick' => 'saveAndContinueEdit()',
19
+ 'class' => 'save',
20
+ ), -100);
21
+
22
+ $this->_formScripts[] = "
23
+ function toggleEditor() {
24
+ if (tinyMCE.getInstanceById('blouse_content') == null) {
25
+ tinyMCE.execCommand('mceAddControl', false, 'blouse_content');
26
+ } else {
27
+ tinyMCE.execCommand('mceRemoveControl', false, 'blouse_content');
28
+ }
29
+ }
30
+
31
+ function saveAndContinueEdit(){
32
+ editForm.submit($('edit_form').action+'back/edit/');
33
+ }
34
+ ";
35
+ }
36
+
37
+ public function getHeaderText()
38
+ {
39
+ if( Mage::registry('blouse_data') && Mage::registry('blouse_data')->getId() ) {
40
+ return Mage::helper('blouse')->__("Edit Style '%s'", $this->htmlEscape(Mage::registry('blouse_data')->getTitle()));
41
+ } else {
42
+ return Mage::helper('blouse')->__('Add Style');
43
+ }
44
+ }
45
+ }
app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Edit/Form.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Block_Adminhtml_Blouse_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
4
+ {
5
+ protected function _prepareForm()
6
+ {
7
+ $form = new Varien_Data_Form(array(
8
+ 'id' => 'edit_form',
9
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
10
+ 'method' => 'post',
11
+ 'enctype' => 'multipart/form-data'
12
+ )
13
+ );
14
+
15
+ $form->setUseContainer(true);
16
+ $this->setForm($form);
17
+ return parent::_prepareForm();
18
+ }
19
+ }
app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Edit/Tab/Form.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Block_Adminhtml_Blouse_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
4
+ {
5
+ protected function _prepareForm()
6
+ {
7
+ $form = new Varien_Data_Form();
8
+ $this->setForm($form);
9
+ $fieldset = $form->addFieldset('blouse_form', array('legend'=>Mage::helper('blouse')->__('Blouse Style information')));
10
+ $fieldset->addType('image', 'Chandan_Blouse_Block_Adminhtml_Helper_Image');
11
+ $fieldset->addField('title', 'text', array(
12
+ 'label' => Mage::helper('blouse')->__('Blouse Style Title'),
13
+ 'class' => 'required-entry',
14
+ 'required' => true,
15
+ 'name' => 'title',
16
+ ));
17
+
18
+ $fieldset->addField('filename', 'image', array(
19
+ 'label' => Mage::helper('blouse')->__('Blouse Style Design'),
20
+ 'required' => true,
21
+ 'class' => 'required-entry',
22
+ 'name' => 'filename',
23
+ ));
24
+
25
+ $fieldset->addField('status', 'select', array(
26
+ 'label' => Mage::helper('blouse')->__('Status'),
27
+ 'name' => 'status',
28
+ 'values' => array(
29
+ array(
30
+ 'value' => 1,
31
+ 'label' => Mage::helper('blouse')->__('Enabled'),
32
+ ),
33
+
34
+ array(
35
+ 'value' => 2,
36
+ 'label' => Mage::helper('blouse')->__('Disabled'),
37
+ ),
38
+ ),
39
+ ));
40
+
41
+ $fieldset->addField('content', 'editor', array(
42
+ 'name' => 'content',
43
+ 'label' => Mage::helper('blouse')->__('Blouse Style Description'),
44
+ 'title' => Mage::helper('blouse')->__('Blouse Style Description'),
45
+ 'wysiwyg' => false,
46
+ 'required' => false,
47
+ ));
48
+
49
+ if ( Mage::getSingleton('adminhtml/session')->getBlouseData() )
50
+ {
51
+ $form->setValues(Mage::getSingleton('adminhtml/session')->getBlouseData());
52
+ Mage::getSingleton('adminhtml/session')->setBlouseData(null);
53
+ } elseif ( Mage::registry('blouse_data') ) {
54
+ $form->setValues(Mage::registry('blouse_data')->getData());
55
+ }
56
+ return parent::_prepareForm();
57
+ }
58
+ }
app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Edit/Tabs.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Block_Adminhtml_Blouse_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
4
+ {
5
+
6
+ public function __construct()
7
+ {
8
+ parent::__construct();
9
+ $this->setId('blouse_tabs');
10
+ $this->setDestElementId('edit_form');
11
+ $this->setTitle(Mage::helper('blouse')->__('Blouse Style Information'));
12
+ }
13
+
14
+ protected function _beforeToHtml()
15
+ {
16
+ $this->addTab('form_section', array(
17
+ 'label' => Mage::helper('blouse')->__('Blouse Style Information'),
18
+ 'title' => Mage::helper('blouse')->__('Blouse Style Information'),
19
+ 'content' => $this->getLayout()->createBlock('blouse/adminhtml_blouse_edit_tab_form')->toHtml(),
20
+ ));
21
+
22
+ return parent::_beforeToHtml();
23
+ }
24
+ }
app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Grid.php ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Block_Adminhtml_Blouse_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
+ {
5
+ public function __construct()
6
+ {
7
+ parent::__construct();
8
+ $this->setId('blouseGrid');
9
+ $this->setDefaultSort('blouse_id');
10
+ $this->setDefaultDir('ASC');
11
+ $this->setSaveParametersInSession(true);
12
+ }
13
+
14
+ protected function _prepareCollection()
15
+ {
16
+ $collection = Mage::getModel('blouse/blouse')->getCollection();
17
+ $this->setCollection($collection);
18
+ return parent::_prepareCollection();
19
+ }
20
+
21
+ protected function _prepareColumns()
22
+ {
23
+ $this->addColumn('blouse_id', array(
24
+ 'header' => Mage::helper('blouse')->__('ID'),
25
+ 'align' =>'right',
26
+ 'width' => '50px',
27
+ 'index' => 'blouse_id',
28
+ ));
29
+
30
+ $this->addColumn('title', array(
31
+ 'header' => Mage::helper('blouse')->__('Blouse Style Title'),
32
+ 'align' =>'left',
33
+ 'width' => '150px',
34
+ 'index' => 'title',
35
+ ));
36
+
37
+
38
+ $this->addColumn('filename', array(
39
+ 'header' => Mage::helper('blouse')->__('Blouse Style Design'),
40
+ 'align' =>'left',
41
+ 'index' => 'filename',
42
+ 'width' => '100px',
43
+ 'renderer' => 'blouse/adminhtml_blouse_renderer_image',
44
+ 'attr1' => 'value1',
45
+ ));
46
+
47
+ $this->addColumn('content', array(
48
+ 'header' => Mage::helper('blouse')->__('Blouse Style Description'),
49
+ 'width' => '300px',
50
+ 'index' => 'content',
51
+ ));
52
+
53
+
54
+ $this->addColumn('status', array(
55
+ 'header' => Mage::helper('blouse')->__('Status'),
56
+ 'align' => 'left',
57
+ 'width' => '80px',
58
+ 'index' => 'status',
59
+ 'type' => 'options',
60
+ 'options' => array(
61
+ 1 => 'Enabled',
62
+ 2 => 'Disabled',
63
+ ),
64
+ ));
65
+
66
+ $this->addColumn('action',
67
+ array(
68
+ 'header' => Mage::helper('blouse')->__('Action'),
69
+ 'width' => '100',
70
+ 'type' => 'action',
71
+ 'getter' => 'getId',
72
+ 'actions' => array(
73
+ array(
74
+ 'caption' => Mage::helper('blouse')->__('Edit'),
75
+ 'url' => array('base'=> '*/*/edit'),
76
+ 'field' => 'id'
77
+ )
78
+ ),
79
+ 'filter' => false,
80
+ 'sortable' => false,
81
+ 'index' => 'stores',
82
+ 'is_system' => true,
83
+ ));
84
+
85
+ $this->addExportType('*/*/exportCsv', Mage::helper('blouse')->__('CSV'));
86
+ $this->addExportType('*/*/exportXml', Mage::helper('blouse')->__('XML'));
87
+
88
+ return parent::_prepareColumns();
89
+ }
90
+
91
+ protected function _prepareMassaction()
92
+ {
93
+ $this->setMassactionIdField('blouse_id');
94
+ $this->getMassactionBlock()->setFormFieldName('blouse');
95
+
96
+ $this->getMassactionBlock()->addItem('delete', array(
97
+ 'label' => Mage::helper('blouse')->__('Delete'),
98
+ 'url' => $this->getUrl('*/*/massDelete'),
99
+ 'confirm' => Mage::helper('blouse')->__('Are you sure?')
100
+ ));
101
+
102
+ $statuses = Mage::getSingleton('blouse/status')->getOptionArray();
103
+
104
+ array_unshift($statuses, array('label'=>'', 'value'=>''));
105
+ $this->getMassactionBlock()->addItem('status', array(
106
+ 'label'=> Mage::helper('blouse')->__('Change status'),
107
+ 'url' => $this->getUrl('*/*/massStatus', array('_current'=>true)),
108
+ 'additional' => array(
109
+ 'visibility' => array(
110
+ 'name' => 'status',
111
+ 'type' => 'select',
112
+ 'class' => 'required-entry',
113
+ 'label' => Mage::helper('blouse')->__('Status'),
114
+ 'values' => $statuses
115
+ )
116
+ )
117
+ ));
118
+ return $this;
119
+ }
120
+
121
+ public function getRowUrl($row)
122
+ {
123
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
124
+ }
125
+
126
+ }
app/code/community/Chandan/Blouse/Block/Adminhtml/Blouse/Renderer/Image.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Block_Adminhtml_Blouse_Renderer_Image extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
4
+ {
5
+ public function render(Varien_Object $row)
6
+ {
7
+ $html = '<img ';
8
+ $html .= 'id="' . $this->getColumn()->getId() . '" ';
9
+ $html .= 'src="' .Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'blouse/'. $row->getData($this->getColumn()->getIndex()) . '"';
10
+ $html .= 'class="grid-image ' . $this->getColumn()->getInlineCss() . '" style="width:50px;height:50px;"/>';
11
+ return $html;
12
+ }
13
+ }
app/code/community/Chandan/Blouse/Block/Adminhtml/Helper/Image.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Chandan_Blouse_Block_Adminhtml_Helper_Image extends Varien_Data_Form_Element_Image
3
+ {
4
+ protected function _getUrl(){
5
+ $url = false;
6
+ if ($this->getValue()) {
7
+ $url = Mage::getBaseUrl('media').'blouse/'.$this->getValue();
8
+ }
9
+ return $url;
10
+ }
11
+ }
app/code/community/Chandan/Blouse/Block/Blouse.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Chandan_Blouse_Block_Blouse extends Mage_Core_Block_Template
3
+ {
4
+ public function _prepareLayout()
5
+ {
6
+ return parent::_prepareLayout();
7
+ }
8
+
9
+ public function getBlouse()
10
+ {
11
+ if (!$this->hasData('blouse')) {
12
+ $this->setData('blouse', Mage::registry('blouse'));
13
+ }
14
+ return $this->getData('blouse');
15
+
16
+ }
17
+ }
app/code/community/Chandan/Blouse/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/community/Chandan/Blouse/Model/Blouse.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Model_Blouse extends Mage_Core_Model_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('blouse/blouse');
9
+ }
10
+ }
app/code/community/Chandan/Blouse/Model/Mysql4/Blouse.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Model_Mysql4_Blouse extends Mage_Core_Model_Mysql4_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ // Note that the blouse_id refers to the key field in your database table.
8
+ $this->_init('blouse/blouse', 'blouse_id');
9
+ }
10
+ }
app/code/community/Chandan/Blouse/Model/Mysql4/Blouse/Collection.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Model_Mysql4_Blouse_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('blouse/blouse');
9
+ }
10
+ }
app/code/community/Chandan/Blouse/Model/Status.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Model_Status extends Varien_Object
4
+ {
5
+ const STATUS_ENABLED = 1;
6
+ const STATUS_DISABLED = 2;
7
+
8
+ static public function getOptionArray()
9
+ {
10
+ return array(
11
+ self::STATUS_ENABLED => Mage::helper('blouse')->__('Enabled'),
12
+ self::STATUS_DISABLED => Mage::helper('blouse')->__('Disabled')
13
+ );
14
+ }
15
+ }
app/code/community/Chandan/Blouse/controllers/Adminhtml/BlouseController.php ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chandan_Blouse_Adminhtml_BlouseController extends Mage_Adminhtml_Controller_action
4
+ {
5
+
6
+ protected function _initAction() {
7
+ $this->loadLayout()
8
+ ->_setActiveMenu('blouse/items')
9
+ ->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Style Manager'));
10
+
11
+ return $this;
12
+ }
13
+
14
+ public function indexAction() {
15
+ $this->_initAction()
16
+ ->renderLayout();
17
+ }
18
+
19
+ public function editAction() {
20
+ $id = $this->getRequest()->getParam('id');
21
+ $model = Mage::getModel('blouse/blouse')->load($id);
22
+
23
+ if ($model->getId() || $id == 0) {
24
+ $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
25
+ if (!empty($data)) {
26
+ $model->setData($data);
27
+ }
28
+
29
+ Mage::register('blouse_data', $model);
30
+
31
+ $this->loadLayout();
32
+ $this->_setActiveMenu('blouse/items');
33
+
34
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Style Manager'), Mage::helper('adminhtml')->__('Style Manager'));
35
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Style News'), Mage::helper('adminhtml')->__('Style News'));
36
+
37
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
38
+
39
+ $this->_addContent($this->getLayout()->createBlock('blouse/adminhtml_blouse_edit'))
40
+ ->_addLeft($this->getLayout()->createBlock('blouse/adminhtml_blouse_edit_tabs'));
41
+
42
+ $this->renderLayout();
43
+ } else {
44
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('blouse')->__('Style does not exist'));
45
+ $this->_redirect('*/*/');
46
+ }
47
+ }
48
+
49
+ public function newAction() {
50
+ $this->_forward('edit');
51
+ }
52
+
53
+ public function saveAction() {
54
+ if ($data = $this->getRequest()->getPost()) {
55
+
56
+ if($data['filename']['delete']==1){
57
+ $data['filename']='';
58
+ }
59
+ elseif(is_array($data['filename'])){
60
+ $data['filename']=$data['filename']['value'];
61
+ }
62
+
63
+ if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '') {
64
+ try {
65
+ /* Starting upload */
66
+ $uploader = new Varien_File_Uploader('filename');
67
+
68
+ // Any extention would work
69
+ $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
70
+ $uploader->setAllowRenameFiles(false);
71
+
72
+ // Set the file upload mode
73
+ // false -> get the file directly in the specified folder
74
+ // true -> get the file in the product like folders
75
+ // (file.jpg will go in something like /media/f/i/file.jpg)
76
+ $uploader->setFilesDispersion(false);
77
+
78
+ // We set media as the upload dir
79
+ $path = Mage::getBaseDir('media') . DS . 'blouse';
80
+ $result = $uploader->save($path, $_FILES['filename']['name'] );
81
+ $data['filename'] = $result['file'];
82
+ } catch (Exception $e) {
83
+ $data['filename'] = $_FILES['filename']['name'];
84
+ }
85
+ }
86
+
87
+
88
+ $model = Mage::getModel('blouse/blouse');
89
+
90
+ if ($id = $this->getRequest()->getParam('id')) {
91
+ $model->load($id)->addData($data);
92
+ } else {
93
+ $model->setData($data);
94
+ }
95
+
96
+ //$model->setData($data)->setId($this->getRequest()->getParam('id'));
97
+
98
+ try {
99
+ if ($model->getCreatedTime == NULL || $model->getUpdateTime() == NULL) {
100
+ $model->setCreatedTime(now())
101
+ ->setUpdateTime(now());
102
+ } else {
103
+ $model->setUpdateTime(now());
104
+ }
105
+
106
+ $model->save();
107
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('blouse')->__('Style was successfully saved'));
108
+ Mage::getSingleton('adminhtml/session')->setFormData(false);
109
+
110
+ if ($this->getRequest()->getParam('back')) {
111
+ $this->_redirect('*/*/edit', array('id' => $model->getId()));
112
+ return;
113
+ }
114
+ $this->_redirect('*/*/');
115
+ return;
116
+ } catch (Exception $e) {
117
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
118
+ Mage::getSingleton('adminhtml/session')->setFormData($data);
119
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
120
+ return;
121
+ }
122
+ }
123
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('blouse')->__('Unable to find Style to save'));
124
+ $this->_redirect('*/*/');
125
+ }
126
+
127
+ public function deleteAction() {
128
+ if( $this->getRequest()->getParam('id') > 0 ) {
129
+ try {
130
+ $model = Mage::getModel('blouse/blouse');
131
+
132
+ $model->setId($this->getRequest()->getParam('id'))
133
+ ->delete();
134
+
135
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Style was successfully deleted'));
136
+ $this->_redirect('*/*/');
137
+ } catch (Exception $e) {
138
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
139
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
140
+ }
141
+ }
142
+ $this->_redirect('*/*/');
143
+ }
144
+
145
+ public function massDeleteAction() {
146
+ $blouseIds = $this->getRequest()->getParam('blouse');
147
+ if(!is_array($blouseIds)) {
148
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select Style(s)'));
149
+ } else {
150
+ try {
151
+ foreach ($blouseIds as $blouseId) {
152
+ $blouse = Mage::getModel('blouse/blouse')->load($blouseId);
153
+ $blouse->delete();
154
+ }
155
+ Mage::getSingleton('adminhtml/session')->addSuccess(
156
+ Mage::helper('adminhtml')->__(
157
+ 'Total of %d record(s) were successfully deleted', count($blouseIds)
158
+ )
159
+ );
160
+ } catch (Exception $e) {
161
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
162
+ }
163
+ }
164
+ $this->_redirect('*/*/index');
165
+ }
166
+
167
+ public function massStatusAction()
168
+ {
169
+ $blouseIds = $this->getRequest()->getParam('blouse');
170
+ if(!is_array($blouseIds)) {
171
+ Mage::getSingleton('adminhtml/session')->addError($this->__('Please select Style(s)'));
172
+ } else {
173
+ try {
174
+ foreach ($blouseIds as $blouseId) {
175
+ $blouse = Mage::getSingleton('blouse/blouse')
176
+ ->load($blouseId)
177
+ ->setStatus($this->getRequest()->getParam('status'))
178
+ ->setIsMassupdate(true)
179
+ ->save();
180
+ }
181
+ $this->_getSession()->addSuccess(
182
+ $this->__('Total of %d record(s) were successfully updated', count($blouseIds))
183
+ );
184
+ } catch (Exception $e) {
185
+ $this->_getSession()->addError($e->getMessage());
186
+ }
187
+ }
188
+ $this->_redirect('*/*/index');
189
+ }
190
+
191
+ public function exportCsvAction()
192
+ {
193
+ $fileName = 'blouse.csv';
194
+ $content = $this->getLayout()->createBlock('blouse/adminhtml_blouse_grid')
195
+ ->getCsv();
196
+
197
+ $this->_sendUploadResponse($fileName, $content);
198
+ }
199
+
200
+ public function exportXmlAction()
201
+ {
202
+ $fileName = 'blouse.xml';
203
+ $content = $this->getLayout()->createBlock('blouse/adminhtml_blouse_grid')
204
+ ->getXml();
205
+
206
+ $this->_sendUploadResponse($fileName, $content);
207
+ }
208
+
209
+ protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream')
210
+ {
211
+ $response = $this->getResponse();
212
+ $response->setHeader('HTTP/1.1 200 OK','');
213
+ $response->setHeader('Pragma', 'public', true);
214
+ $response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
215
+ $response->setHeader('Content-Disposition', 'attachment; filename='.$fileName);
216
+ $response->setHeader('Last-Modified', date('r'));
217
+ $response->setHeader('Accept-Ranges', 'bytes');
218
+ $response->setHeader('Content-Length', strlen($content));
219
+ $response->setHeader('Content-type', $contentType);
220
+ $response->setBody($content);
221
+ $response->sendResponse();
222
+ die;
223
+ }
224
+ }
app/code/community/Chandan/Blouse/controllers/IndexController.php ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Chandan_Blouse_IndexController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->renderLayout();
8
+ }
9
+
10
+ public function getOptions(){
11
+ return array(
12
+ array('title' => 'Blouse Above Waist','type' => 'field','is_require' => 0,),
13
+ array('title' => 'Blouse Around Arm','type' => 'field','is_require' => 0,),
14
+ array('title' => 'Blouse Around Bust','type' => 'field','is_require' => 0,),
15
+ array('title' => 'Blouse Bicep','type' => 'field','is_require' => 0,),
16
+ array('title' => 'Blouse Cross Back','type' => 'field','is_require' => 0,),
17
+ array('title' => 'Blouse Cross Front','type' => 'field','is_require' => 0,),
18
+ array('title' => 'Blouse Height','type' => 'field','is_require' => 0,),
19
+ array('title' => 'Blouse Length Hps','type' => 'field','is_require' => 0,),
20
+ array('title' => 'Blouse Measurement Size','type' => 'field','is_require' => 0,),
21
+ array('title' => 'Blouse Measurement Unit','type' => 'field','is_require' => 0,),
22
+ array('title' => 'Blouse Name','type' => 'field','is_require' => 0,),
23
+ array('title' => 'Blouse Neck Depth Back','type' => 'field','is_require' => 0,),
24
+ array('title' => 'Blouse Neck Depth Front','type' => 'field','is_require' => 0,),
25
+ array('title' => 'Blouse Shoulder','type' => 'field','is_require' => 0,),
26
+ array('title' => 'Blouse Shoulder Height','type' => 'field','is_require' => 0,),
27
+ array('title' => 'Blouse Sleeve Length','type' => 'field','is_require' => 0,),
28
+ array('title' => 'Blouse Style','type' => 'field','is_require' => 0,),
29
+ array('title' => 'Blouse Waist','type' => 'field','is_require' => 0,),
30
+ array('title' => 'Special Instruction','type' => 'field','is_require' => 0,)
31
+ );
32
+ }
33
+
34
+ public function createproduct($input_style_id,$imagepath)
35
+ {
36
+ $product_name = $input_style_id; //product name
37
+ $model = Mage::getModel('catalog/product'); //getting product model
38
+ $collection = $model->getCollection(); //products collection
39
+ foreach ($collection as $product) //loop for getting products
40
+ {
41
+ $model->load($product->getId());
42
+ $pname = $model->getName();
43
+ if(strcmp($pname,$product_name)==0)
44
+ {
45
+ $id = $product->getId();
46
+ }
47
+ }
48
+ if(!empty($id)){
49
+ return $id;
50
+ } else {
51
+ $product = Mage::getModel('catalog/product');
52
+ $product->setSku('blouse'.rand());
53
+ $product->setName($input_style_id);
54
+ $product->setDescription($input_style_id.' Blouse section');
55
+ $product->setShortDescription($input_style_id.' Blouse section');
56
+ $product->setPrice(Mage::getStoreConfig('chandan/chandan_group/chandan_input',Mage::app()->getStore()));
57
+ $product->setTypeId('simple');
58
+ $product->setAttributeSetId(4); // enter the catalog attribute set id here
59
+ $product->setTaxClassId(0);
60
+ $product->setVisibility(1);
61
+ $product->setStatus(1);
62
+ $product->setProductOptions($this->getOptions());
63
+ $product->setCanSaveCustomOptions(true);
64
+ $product->setStockData(
65
+ array(
66
+ 'manage_stock' => 1,
67
+ 'is_in_stock' => 1,
68
+ 'qty' => 10
69
+ )
70
+ );
71
+ $product->setWebsiteIds(array(Mage::app()->getStore(true)->getWebsite()->getId()));
72
+ try{
73
+ $product->save();
74
+ return $product_id=$product->getId();
75
+ }
76
+ catch (Exception $ex) {
77
+ return $ex->getMessage();
78
+ }
79
+ }
80
+ }
81
+
82
+ public function setblousedataAction()
83
+ {
84
+ $input_style_id = $_REQUEST['input_style_id'];
85
+ $input_around_bust_id = $_REQUEST['input_around_bust_id'];
86
+ $input_above_waist_id = $_REQUEST['input_above_waist_id'];
87
+ $input_shoulder_id = $_REQUEST['input_shoulder_id'];
88
+ $input_around_arm_id = $_REQUEST['input_around_arm_id'];
89
+ $input_height_id = $_REQUEST['input_height_id'];
90
+ $input_shoulder_height_id = $_REQUEST['input_shoulder_height_id'];
91
+ $input_cross_front_id = $_REQUEST['input_cross_front_id'];
92
+ $input_cross_back_id = $_REQUEST['input_cross_back_id'];
93
+ $input_neck_depth_back_id = $_REQUEST['input_neck_depth_back_id'];
94
+ $input_neck_depth_front_id = $_REQUEST['input_neck_depth_front_id'];
95
+ $input_measurement_size_id = $_REQUEST['input_measurement_size_id'];
96
+ $input_blouse_measurement_unit_id = $_REQUEST['input_blouse_measurement_unit_id'];
97
+ $input_length_hps_id = $_REQUEST['input_length_hps_id'];
98
+ $input_sleeve_length_id = $_REQUEST['input_sleeve_length_id'];
99
+ $input_waist_id = $_REQUEST['input_waist_id'];
100
+ $input_bicep_id = $_REQUEST['input_bicep_id'];
101
+ $customer_blouse_name = $_REQUEST['customer_blouse_name'];
102
+ $input_special_instruction = $_REQUEST['input_special_instruction'];
103
+
104
+ $images1 = $_REQUEST['images_name'];
105
+
106
+ $url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
107
+ $images = str_replace($url, '', $images1);
108
+ $cart = array (
109
+ 'image_url' => $images1,
110
+ 'input_style_id' => $input_style_id
111
+
112
+ );
113
+
114
+ $pid = $this->createproduct($input_style_id,$imagepath);
115
+ $product = Mage::getModel('catalog/product')->load($pid);
116
+
117
+ foreach ($product->getOptions() as $value) {
118
+ if($value->getTitle() == "Blouse Above Waist"){ $data[$value->getOption_id()] = $input_above_waist_id; }
119
+ if($value->getTitle() == "Blouse Around Arm"){ $data[$value->getOption_id()] = $input_around_arm_id; }
120
+ if($value->getTitle() == "Blouse Around Bust"){ $data[$value->getOption_id()] = $input_around_bust_id; }
121
+ if($value->getTitle() == "Blouse Bicep"){ $data[$value->getOption_id()] = $input_bicep_id; }
122
+ if($value->getTitle() == "Blouse Cross Back"){ $data[$value->getOption_id()] = $input_cross_back_id; }
123
+ if($value->getTitle() == "Blouse Cross Front"){ $data[$value->getOption_id()] = $input_cross_front_id; }
124
+ if($value->getTitle() == "Blouse Height"){ $data[$value->getOption_id()] = $input_height_id; }
125
+ if($value->getTitle() == "Blouse Length Hps"){ $data[$value->getOption_id()] = $input_length_hps_id; }
126
+ if($value->getTitle() == "Blouse Measurement Size"){ $data[$value->getOption_id()] = $input_measurement_size_id; }
127
+ if($value->getTitle() == "Blouse Measurement Unit"){ $data[$value->getOption_id()] = $input_blouse_measurement_unit_id; }
128
+ if($value->getTitle() == "Blouse Name"){ $data[$value->getOption_id()] = $customer_blouse_name; }
129
+ if($value->getTitle() == "Blouse Neck Depth Back"){ $data[$value->getOption_id()] = $input_neck_depth_back_id; }
130
+ if($value->getTitle() == "Blouse Neck Depth Front"){ $data[$value->getOption_id()] = $input_neck_depth_front_id; }
131
+ if($value->getTitle() == "Blouse Shoulder"){ $data[$value->getOption_id()] = $input_shoulder_id; }
132
+ if($value->getTitle() == "Blouse Shoulder Height"){ $data[$value->getOption_id()] = $input_shoulder_height_id; }
133
+ if($value->getTitle() == "Blouse Sleeve Length"){ $data[$value->getOption_id()] = $input_sleeve_length_id; }
134
+ if($value->getTitle() == "Blouse Style"){ $data[$value->getOption_id()] = $input_style_id; }
135
+ if($value->getTitle() == "Blouse Waist"){ $data[$value->getOption_id()] = $input_waist_id; }
136
+ if($value->getTitle() == "Special Instruction"){ $data[$value->getOption_id()] = $input_special_instruction; }
137
+ }
138
+
139
+ $cart = Mage::getModel('checkout/cart');
140
+ $cart->init();
141
+ $params = array(
142
+ 'product' => $pid,
143
+ 'qty' => 1,
144
+ 'options' => $data
145
+ );
146
+
147
+ try {
148
+ $productimg = Mage::getModel('catalog/product')->load($pid);
149
+ $imagepath='media/'.$images;
150
+ $productimg->addImageToMediaGallery($imagepath, array ('image','small_image','thumbnail'), false, true);
151
+ $productimg->save();
152
+
153
+ $cart->addProduct($product, new Varien_Object($params));
154
+ Mage::getSingleton('checkout/session')->setCartWasUpdated(true);
155
+ $cart->save();
156
+ }
157
+ catch (Exception $ex) {
158
+ echo $ex->getMessage();
159
+ }
160
+ }
161
+ }
app/code/community/Chandan/Blouse/etc/config.xml ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Chandan_Blouse>
5
+ <version>1.0.0</version>
6
+ </Chandan_Blouse>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <blouse>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Chandan_Blouse</module>
14
+ <frontName>blouse</frontName>
15
+ </args>
16
+ </blouse>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <blouse>
21
+ <file>blouse.xml</file>
22
+ </blouse>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <admin>
27
+ <routers>
28
+ <blouse>
29
+ <use>admin</use>
30
+ <args>
31
+ <module>Chandan_Blouse</module>
32
+ <frontName>blouse</frontName>
33
+ </args>
34
+ </blouse>
35
+ </routers>
36
+ </admin>
37
+ <adminhtml>
38
+ <menu>
39
+ <blouse module="blouse">
40
+ <title>Blouse</title>
41
+ <sort_order>71</sort_order>
42
+ <children>
43
+ <items module="blouse">
44
+ <title>Manage Style</title>
45
+ <sort_order>0</sort_order>
46
+ <action>blouse/adminhtml_blouse</action>
47
+ </items>
48
+ </children>
49
+ </blouse>
50
+ </menu>
51
+ <acl>
52
+ <resources>
53
+ <all>
54
+ <title>Allow Everything</title>
55
+ </all>
56
+ <admin>
57
+ <children>
58
+ <blouse module="blouse">
59
+ <title>Blouse</title>
60
+ <sort_order>71</sort_order>
61
+ <children>
62
+ <items module="blouse">
63
+ <title>Manage Style</title>
64
+ <sort_order>0</sort_order>
65
+ <action>blouse/adminhtml_blouse</action>
66
+ </items>
67
+ </children>
68
+ </blouse>
69
+ </children>
70
+ </admin>
71
+ </resources>
72
+ </acl>
73
+ <layout>
74
+ <updates>
75
+ <blouse>
76
+ <file>blouse.xml</file>
77
+ </blouse>
78
+ </updates>
79
+ </layout>
80
+ </adminhtml>
81
+ <global>
82
+ <models>
83
+ <blouse>
84
+ <class>Chandan_Blouse_Model</class>
85
+ <resourceModel>blouse_mysql4</resourceModel>
86
+ </blouse>
87
+ <blouse_mysql4>
88
+ <class>Chandan_Blouse_Model_Mysql4</class>
89
+ <entities>
90
+ <blouse>
91
+ <table>blouse</table>
92
+ </blouse>
93
+ </entities>
94
+ </blouse_mysql4>
95
+ </models>
96
+ <resources>
97
+ <blouse_setup>
98
+ <setup>
99
+ <module>Chandan_Blouse</module>
100
+ </setup>
101
+ <connection>
102
+ <use>core_setup</use>
103
+ </connection>
104
+ </blouse_setup>
105
+ <blouse_write>
106
+ <connection>
107
+ <use>core_write</use>
108
+ </connection>
109
+ </blouse_write>
110
+ <blouse_read>
111
+ <connection>
112
+ <use>core_read</use>
113
+ </connection>
114
+ </blouse_read>
115
+ </resources>
116
+ <blocks>
117
+ <blouse>
118
+ <class>Chandan_Blouse_Block</class>
119
+ </blouse>
120
+ </blocks>
121
+ <helpers>
122
+ <blouse>
123
+ <class>Chandan_Blouse_Helper</class>
124
+ </blouse>
125
+ </helpers>
126
+ </global>
127
+
128
+ <adminhtml>
129
+ <acl>
130
+ <resources>
131
+ <all>
132
+ <title>Allow Everything</title>
133
+ </all>
134
+ <admin>
135
+ <children>
136
+ <system>
137
+ <children>
138
+ <config>
139
+ <children>
140
+ <chandan>
141
+ <title>Chandan - All</title>
142
+ </chandan>
143
+ </children>
144
+ </config>
145
+ </children>
146
+ </system>
147
+ </children>
148
+ </admin>
149
+ </resources>
150
+ </acl>
151
+ </adminhtml>
152
+ </config>
app/code/community/Chandan/Blouse/etc/system.xml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <tabs>
4
+ <chandan translate="label" module="blouse">
5
+ <label>Blouse Setting</label>
6
+ <sort_order>100</sort_order>
7
+ </chandan>
8
+ </tabs>
9
+ <sections>
10
+ <chandan translate="label" module="blouse">
11
+ <label>Blouse</label>
12
+ <tab>chandan</tab>
13
+ <sort_order>1000</sort_order>
14
+ <show_in_default>1</show_in_default>
15
+ <show_in_website>1</show_in_website>
16
+ <show_in_store>1</show_in_store>
17
+
18
+ <groups>
19
+ <chandan_group translate="label" module="blouse">
20
+ <label>Blouse Setting</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>1000</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+
27
+ <fields>
28
+
29
+ <chandan_blouse translate="label">
30
+ <label>Enabled: </label>
31
+ <frontend_type>select</frontend_type>
32
+ <sort_order>19</sort_order>
33
+ <show_in_default>1</show_in_default>
34
+ <show_in_website>1</show_in_website>
35
+ <show_in_store>1</show_in_store>
36
+ <source_model>adminhtml/system_config_source_yesno</source_model>
37
+ </chandan_blouse>
38
+
39
+ <chandan_input translate="label">
40
+ <label>Price: </label>
41
+ <comment>Set Customize Price </comment>
42
+ <frontend_type>text</frontend_type>
43
+ <sort_order>20</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
+ </chandan_input>
48
+
49
+ </fields>
50
+ </chandan_group>
51
+ </groups>
52
+ </chandan>
53
+ </sections>
54
+ </config>
app/code/community/Chandan/Blouse/sql/blouse_setup/mysql4-install-1.0.0.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ $installer->run("
5
+ -- DROP TABLE IF EXISTS {$this->getTable('blouse')};
6
+ CREATE TABLE {$this->getTable('blouse')} (
7
+ `blouse_id` int(11) unsigned NOT NULL auto_increment,
8
+ `title` varchar(255) NOT NULL default '',
9
+ `filename` varchar(255) NOT NULL default '',
10
+ `content` text NOT NULL default '',
11
+ `status` smallint(6) NOT NULL default '0',
12
+ `created_time` datetime NULL,
13
+ `update_time` datetime NULL,
14
+ PRIMARY KEY (`blouse_id`)
15
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
16
+
17
+ ");
18
+
19
+
20
+
21
+ $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
22
+ //category attribute
23
+ $setup->addAttribute('catalog_category', 'blouse_section', array(
24
+ 'group' => 'General Information',
25
+ 'label' => 'Blouse Section Display',
26
+ 'type' => 'int',
27
+ 'input' => 'select',
28
+ 'source' => 'eav/entity_attribute_source_boolean',
29
+ 'visible' => true,
30
+ 'required' => false,
31
+ 'sort_order' => 0,
32
+ 'backend' => '',
33
+ 'frontend' => '',
34
+ 'searchable' => false,
35
+ 'filterable' => false,
36
+ 'comparable' => false,
37
+ 'user_defined' => true,
38
+ 'visible_on_front' => true,
39
+ 'wysiwyg_enabled' => false,
40
+ 'is_html_allowed_on_front' => false,
41
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE
42
+ ));
43
+ //product attribute
44
+ $setup->addAttribute('catalog_product', 'blouse_section', array(
45
+ 'type' => 'int',
46
+ 'backend_type' => 'int',
47
+ 'backend' => '',
48
+ 'frontend' => '',
49
+ 'label' => 'Blouse Section Display',
50
+ 'input' => 'boolean',
51
+ 'frontend_class' => '',
52
+ 'source' => 'eav/entity_attribute_source_boolean',
53
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
54
+ 'visible' => false,
55
+ 'required' => false,
56
+ 'user_defined' => true,
57
+ 'default' => '',
58
+ 'searchable' => false,
59
+ 'filterable' => false,
60
+ 'comparable' => false,
61
+ 'visible_on_front' => false,
62
+ 'unique' => false,
63
+ 'apply_to' => '',
64
+ 'is_configurable' => false
65
+ ));
66
+ $setup->addAttributeToSet('catalog_product', 'Default', 'General', 'blouse_section');
67
+
68
+
69
+
70
+
71
+
72
+
73
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/blouse.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <blouse_adminhtml_blouse_index>
4
+ <reference name="content">
5
+ <block type="blouse/adminhtml_blouse" name="blouse" />
6
+ </reference>
7
+ </blouse_adminhtml_blouse_index>
8
+ </layout>
app/design/frontend/base/default/layout/blouse.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <action method="addItem">
6
+ <type>skin_css</type>
7
+ <stylesheet>blouse/css/blouse.css</stylesheet>
8
+ </action>
9
+ <action method="addItem">
10
+ <type>skin_js</type>
11
+ <script>blouse/js/blouse.js</script>
12
+ </action>
13
+ <action method="addItem">
14
+ <type>skin_js</type>
15
+ <script>blouse/js/iwd-jquery-2.1.3.min.js</script>
16
+ </action>
17
+ </reference>
18
+ </default>
19
+
20
+ <catalog_product_view>
21
+ <reference name="product.info.extrahint">
22
+ <block type="core/template" name="total_prototal" template="blouse/blouse.phtml" />
23
+ </reference>
24
+ <!--
25
+ <reference name="product.info">
26
+ <action method="setTemplate">
27
+ <template>blouse/catalog/product/view.phtml</template>
28
+ </action>
29
+ </reference>
30
+ -->
31
+ </catalog_product_view>
32
+
33
+ <checkout_cart_index translate="label">
34
+ <reference name="checkout.cart">
35
+ <action method="addItemRender">
36
+ <type>simple</type><block>checkout/cart_item_renderer</block><template>blouse/checkout/cart/item/default.phtml</template>
37
+ </action>
38
+ </reference>
39
+ </checkout_cart_index>
40
+
41
+ <checkout_onepage_review translate="label">
42
+ <label>One Page Checkout Overview</label>
43
+ <!-- Mage_Checkout -->
44
+ <remove name="right"/>
45
+ <remove name="left"/>
46
+
47
+ <block type="checkout/onepage_review_info" name="root" output="toHtml" template="blouse/checkout/onepage/review/info.phtml">
48
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>blouse/checkout/onepage/review/item.phtml</template></action>
49
+
50
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
51
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
52
+ <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
53
+ <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
54
+ <label>Items Before</label>
55
+ </block>
56
+ <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
57
+ <label>Items After</label>
58
+ </block>
59
+ <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
60
+ <block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
61
+ </block>
62
+ </checkout_onepage_review>
63
+ </layout>
app/design/frontend/base/default/template/blouse/blouse.phtml ADDED
@@ -0,0 +1,646 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $modulestatus = Mage::getStoreConfig('chandan/chandan_group/chandan_blouse',Mage::app()->getStore());
3
+ $setprice = Mage::getStoreConfig('chandan/chandan_group/chandan_input',Mage::app()->getStore());
4
+ $collection = Mage::getModel('blouse/blouse')->getCollection();
5
+ ?>
6
+
7
+ <script>
8
+ jQuery(document).ready(function(){
9
+ var symbol = '<?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); ?>';
10
+ var price_val = 0;
11
+ var old_val = 0;
12
+ var regular_val = 0;
13
+ var extra_va = 0;
14
+ jQuery('.switch_blows').click(function(){
15
+ price_val1 = jQuery('.special-price').children('.price').text().replace(symbol, '');
16
+ price_val = parseInt(price_val1.replace(/,/g,''));
17
+ old_val1 = jQuery('.old-price').children('.price').text().replace(symbol, '');
18
+ old_val = parseInt(old_val1.replace(/,/g,''));
19
+ regular_val1 = jQuery('.regular-price').children('.price').text().replace(symbol, '');
20
+ regular_val = parseInt(regular_val1.replace(/,/g,''));
21
+ extra_va = parseInt("<?php echo $setprice; ?>");
22
+ var modi_price = (price_val + extra_va);
23
+ var old_price = (old_val + extra_va);
24
+ var reg_price = (regular_val + extra_va);
25
+ jQuery('.special-price').children('.price').text(symbol+modi_price);
26
+ jQuery('.old-price').children('.price').text(symbol+old_price);
27
+ jQuery('.regular-price').children('.price').text(symbol+reg_price);
28
+ });
29
+
30
+ jQuery('#close_blouse_section').click(function(){
31
+ price_val = parseFloat(price_val).toFixed(2)
32
+ price_val = price_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
33
+ jQuery('.special-price').children('.price').text(symbol+price_val);
34
+ old_val = parseFloat(old_val).toFixed(2)
35
+ old_val = old_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
36
+ jQuery('.old-price').children('.price').text(symbol+old_val);
37
+ regular_val = parseFloat(regular_val).toFixed(2)
38
+ regular_val = regular_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
39
+ jQuery('.regular-price').children('.price').text(symbol+regular_val);
40
+ });
41
+
42
+
43
+ jQuery('#cancel_step1').click(function(){
44
+ price_val = parseFloat(price_val).toFixed(2)
45
+ price_val = price_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
46
+ jQuery('.special-price').children('.price').text(symbol+price_val);
47
+ old_val = parseFloat(old_val).toFixed(2)
48
+ old_val = old_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
49
+ jQuery('.old-price').children('.price').text(symbol+old_val);
50
+ regular_val = parseFloat(regular_val).toFixed(2)
51
+ regular_val = regular_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
52
+ jQuery('.regular-price').children('.price').text(symbol+regular_val);
53
+ });
54
+ jQuery('#cancel_step2').click(function(){
55
+ price_val = parseFloat(price_val).toFixed(2)
56
+ price_val = price_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
57
+ jQuery('.special-price').children('.price').text(symbol+price_val);
58
+ old_val = parseFloat(old_val).toFixed(2)
59
+ old_val = old_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
60
+ jQuery('.old-price').children('.price').text(symbol+old_val);
61
+ regular_val = parseFloat(regular_val).toFixed(2)
62
+ regular_val = regular_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
63
+ jQuery('.regular-price').children('.price').text(symbol+regular_val);
64
+ });
65
+
66
+ jQuery('#cancel_step3').click(function(){
67
+ price_val = parseFloat(price_val).toFixed(2)
68
+ price_val = price_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
69
+ jQuery('.special-price').children('.price').text(symbol+price_val);
70
+ old_val = parseFloat(old_val).toFixed(2)
71
+ old_val = old_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
72
+ jQuery('.old-price').children('.price').text(symbol+old_val);
73
+ regular_val = parseFloat(regular_val).toFixed(2)
74
+ regular_val = regular_val.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
75
+ jQuery('.regular-price').children('.price').text(symbol+regular_val);
76
+ });
77
+ });
78
+
79
+ var curOpenId = "";
80
+ function showTab(id) //
81
+ {
82
+ if(curOpenId != "")
83
+ {
84
+ hideTab(curOpenId);
85
+ }
86
+ curOpenId = id;
87
+ document.getElementById(id).style.display = 'block';
88
+ document.getElementById("bk-overlay").style.display = 'block';
89
+ };
90
+
91
+ function hideTab()
92
+ {
93
+ document.getElementById(curOpenId).style.display = 'none';
94
+ document.getElementById("bk-overlay").style.display = 'none';
95
+ };
96
+
97
+ jQuery(document).ready(function(){
98
+ jQuery('.popup-close').click(function(){
99
+ jQuery('.popup-container').hide();
100
+ });
101
+
102
+ jQuery('li.level0').hover(function(){
103
+ jQuery(this).prev().toggleClass('bor-none');
104
+ });
105
+
106
+ jQuery(".uparrow").click(function(){
107
+ jQuery(".salerow").slideUp("slow", function(){
108
+ jQuery(".downarrow").slideDown("slow");
109
+ });
110
+ });
111
+
112
+ jQuery(".downarrow").click(function(){
113
+ jQuery(".downarrow").slideUp("slow", function(){
114
+ jQuery(".salerow").slideDown("slow");
115
+ });
116
+ });
117
+ jQuery(".cross").click(function(){
118
+ jQuery(".salerow").slideUp("slow");
119
+ });
120
+
121
+ jQuery("#gun1").click(function(){
122
+ jQuery('.gun1').addClass('gautam');
123
+ jQuery('.gun').removeClass('gautam');
124
+ var input_style_id = jQuery('#input_style-id').val();
125
+ var input_around_bust_id = jQuery('#input_around_bust-id').val();
126
+ var input_above_waist_id = jQuery('#input_above_waist-id').val();
127
+ var input_shoulder_id = jQuery('#input_shoulder-id').val();
128
+ var input_around_arm_id = jQuery('#input_around_arm-id').val();
129
+ var input_height_id = jQuery('#input_height-id').val();
130
+ var input_shoulder_height_id = jQuery('#input_shoulder_height-id').val();
131
+ var input_cross_front_id = jQuery('#input_cross_front-id').val();
132
+ var input_cross_back_id = jQuery('#input_cross_back-id').val();
133
+ var input_neck_depth_back_id = jQuery('#input_neck_depth_back-id').val();
134
+ var input_neck_depth_front_id = jQuery('#input_neck_depth_front-id').val();
135
+ var input_measurement_size_id = jQuery('#input_measurement_size-id').val();
136
+ var input_blouse_measurement_unit_id = jQuery('#input_blouse_measurement_unit-id').val();
137
+ var input_length_hps_id = jQuery('#input_length_hps-id').val();
138
+ var input_sleeve_length_id = jQuery('#input_sleeve-length-id').val();
139
+ var input_waist_id = jQuery('#input_waist-id').val();
140
+ var input_bicep_id = jQuery('#input_bicep-id').val();
141
+ var customer_blouse_name = jQuery('#customer-blouse-name').val();
142
+ var input_special_instruction = jQuery('#input-special-instruction').val();
143
+ var productid = jQuery('#productid').val();
144
+ var images_name = jQuery('#img_blouse_right-id').children().attr('src');
145
+ //alert(input_style_id);
146
+ jQuery.ajax({
147
+ type: "POST",
148
+ url: '<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>blouse/index/setblousedata',
149
+ data: {images_name:images_name,input_style_id:input_style_id,input_around_bust_id:input_around_bust_id,input_above_waist_id:input_above_waist_id,input_shoulder_id:input_shoulder_id,input_around_arm_id:input_around_arm_id,input_height_id:input_height_id,input_shoulder_height_id:input_shoulder_height_id,input_cross_front_id:input_cross_front_id,input_cross_back_id:input_cross_back_id,input_neck_depth_back_id:input_neck_depth_back_id,input_neck_depth_front_id:input_neck_depth_front_id,input_measurement_size_id:input_measurement_size_id,input_blouse_measurement_unit_id:input_blouse_measurement_unit_id,input_length_hps_id:input_length_hps_id,input_sleeve_length_id:input_sleeve_length_id,input_waist_id:input_waist_id,input_bicep_id:input_bicep_id,customer_blouse_name:customer_blouse_name,input_special_instruction:input_special_instruction,productid:productid},
150
+ success: function(){
151
+ jQuery('#added-blouse-row').show();
152
+ jQuery('#stich-blouse-id').hide();
153
+ }
154
+ });
155
+ });
156
+ });
157
+ </script>
158
+ <!-- =========================testing by chandan for blouse starts here========================= -->
159
+ <?php
160
+ if($modulestatus == 1) {
161
+ $product_id = Mage::registry('current_product')->getId();
162
+ $_product= Mage::getModel('catalog/product')->load($product_id);
163
+ $categoryIds = $_product->getCategoryIds();
164
+ $blouse_section = Mage::getModel('catalog/category')->load($categoryIds[0])->getData('blouse_section');
165
+ $attribute_value = $_product->getResource()->getAttribute('blouse_section')->getFrontend()->getValue($_product);
166
+ if($attribute_value == "Yes" || $blouse_section == 1 ) {
167
+ ?>
168
+ <div class="switch_blows" onclick="showBlouse();" id="stich-blouse-id">
169
+ <input type="checkbox" id="chk-stitch-blouse" value="<?php echo $setprice; ?>"/> Stitch a Blouse <span>(Add <?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); ?> <?php echo $setprice; ?>)</span>
170
+ </div>
171
+ <?php } } ?>
172
+
173
+
174
+ <!--popup start -->
175
+ <!--easy return poup start -->
176
+ <div id="bk-overlay" class="add-new"></div>
177
+ <div class="popup_full" id="popup_easyreturn">
178
+ <div class="pop_head-full">
179
+ <div class="popup_center blousecenter">
180
+ <div class="popup_main">
181
+ <div class="blouse-div">
182
+ <div class="blouse_part_heading">STITCH A BLOUSE <span class="color"> - Set your preferences</span>
183
+ <a href="javascript:void(0)" onclick='hideTab();jQuery("#chk-stitch-blouse").attr("checked", false);' id="close_blouse_section" ><span class="close">Close</span>
184
+ <img alt="" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);?>frontend/base/default/blouse/images/blouse/cross-blouse.svg">
185
+ </a>
186
+ </div>
187
+ <div class="blouse_main">
188
+ <!--Creating Form-->
189
+ <!-- <form id="blouse_form" action="" method="post" onsubmit="return validatepostform();"> -->
190
+
191
+ <!--blosuse part 1 start -->
192
+ <div class="blouse_box_row active" >
193
+ <div class="blouse_box_heading blouse_heading-step1 completed current-step">STEP 01 | Choose a style</div>
194
+ <div class="blouse_box_content blouse_content-step1" id="blouse_box_step1">
195
+ <div class="blouse_style">
196
+ <?php foreach ($collection as $item) { ?>
197
+ <div class="blouse_style_box"><span id="error_style"></span>
198
+ <img alt="<?php echo $item->getContent(); ?>" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'blouse/'.$item->getFilename(); ?>">
199
+ <div class="blouse_style_box_title">
200
+ <input id="blouseselect<?php echo $item->getTitle(); ?>" name="style" type="radio" value="<?php echo $item->getTitle(); ?>" value2="<?php echo $item->getTitle(); ?>"> <span><?php echo $item->getTitle(); ?></span>
201
+ </div>
202
+ </div>
203
+ <?php } ?>
204
+ </div>
205
+ <div class="content_botom_link">
206
+ <a class="seemore">See More Styles</a>
207
+ <a id="cancel_step1" href="javascript:void(0);" class="cancel" onclick='hideTab();jQuery("#chk-stitch-blouse").attr("checked", false);'>Cancel</a>
208
+ <a id="save_step1" class="save-cont" >Save &amp; Continue</a>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ <!--blosuse part 1 end -->
213
+
214
+ <!--blosuse part 2 start -->
215
+ <div class="blouse_box_row">
216
+ <div class="blouse_box_heading blouse_heading-step2">STEP 02 | Submit Measurements</div>
217
+ <div class="blouse_box_content blouse_content-step2" id="blouse_content-step2-id">
218
+ <!--measuremetn part 1 -->
219
+ <div class="measurements_main" id="blouse_box_step2" >
220
+ <div class="measurements_left-part">
221
+ <div class="custome_standard">
222
+ <input type='hidden' id="style-name-hidden" value="" name="hidden-style" />
223
+ <input id="custom-size" name="measurement_size" type="radio" value="CUSTOM SIZE"> <label>CUSTOM SIZE</label>
224
+ <input id="standard-size" name="measurement_size" type="radio" value="STANDARD SIZE" class="roundmargin"> <label>STANDARD SIZE</label>
225
+ </div>
226
+ <div id="measurement-size-id" class="measurement_size">
227
+ <span class="current ssize" id='current-xs' >XS</span>
228
+ <span class="ssize" id='current-s' >S</span>
229
+ <span class='ssize' id='current-m'>M</span>
230
+ <span class='ssize' id='current-l'>L</span>
231
+ <span class='ssize' id='current-xl'>XL</span>
232
+ <span class="ssize" id='current-xxl' >XXL</span>
233
+ </div>
234
+ <div class="detail">
235
+ <div class="detail_row">
236
+ <label>LENGTH FROM HPS</label>
237
+ <input id="length_hps" name="length_hps" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
238
+ <span id="length_hps-id"></span>
239
+ <span id="error-length_hps" style="color:red"></span>
240
+ </div>
241
+ <div class="detail_row">
242
+ <label>ABOVE BUST</label>
243
+ <input id="above_bust" name="above_bust" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
244
+ <span id="above_bust-id"></span>
245
+ <span id="error-above_bust" style="color:red"></span>
246
+ </div>
247
+ <div class="detail_row">
248
+ <label>ROUND BUST</label>
249
+ <input id="around_bust" name="around_bust" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
250
+ <span id="around_bust-id"></span>
251
+ <span id="error-around-bust" style="color:red"></span>
252
+ </div>
253
+ <div class="detail_row">
254
+ <label>BELOW BUST</label>
255
+ <input id="shoulder" name="shoulder" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
256
+ <span id="shoulder-id"></span>
257
+ <span id="error-shoulder" style="color:red"></span>
258
+ </div>
259
+ <div class="detail_row">
260
+ <label>WAIST</label>
261
+ <input id="waist" name="waist" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
262
+ <span id="waist-id"></span>
263
+ <span id="error-waist" style="color:red"></span>
264
+ </div>
265
+ <div class="detail_row">
266
+ <label>SHOULDER</label>
267
+ <input id="shoulder_height" name="shoulder_height" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
268
+ <span id="shoulder_height-id"></span>
269
+ <span id="error-shoulder_height" style="color:red"></span>
270
+ </div>
271
+ <!--New rows added-->
272
+
273
+ <div class="detail_row">
274
+ <label>ACROSS FRONT</label>
275
+ <input id="cross_front" name="cross_front" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
276
+ <span id="cross_front-id"></span>
277
+ <span id="error-cross_front" style="color:red"></span>
278
+ </div>
279
+ <div class="detail_row">
280
+ <label>ACROSS BACK</label>
281
+ <input id="cross_back" name="cross_back" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
282
+ <span id="cross_back-id"></span>
283
+ <span id="error-cross_back" style="color:red"></span>
284
+ </div>
285
+ <div class="detail_row">
286
+ <label>NECK TO APEX</label>
287
+ <input id="height" name="height" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
288
+ <span id="height-id"></span>
289
+ <span id="error-height" style="color:red"></span>
290
+ </div>
291
+ <div class="detail_row">
292
+ <label>ARMHOLE ROUND</label>
293
+ <input id="arm_hole" name="arm_hole" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
294
+ <span id="arm_hole-id"></span>
295
+ <span id="error-arm_hole" style="color:red"></span>
296
+ </div>
297
+ <div class="detail_row">
298
+ <label>FRONT NECK DEPTH</label>
299
+ <input id="neck_depth_front" name="neck_depth_front" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
300
+ <span id="neck_depth_front-id"></span>
301
+ <span id="error-neck_depth_front" style="color:red"></span>
302
+ </div>
303
+ <!--New Field-->
304
+ <div class="detail_row">
305
+ <label>BACK NECK DEPTH</label>
306
+ <input id="neck_depth_back" name="neck_depth_back" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
307
+ <span id="neck_depth_back-id"></span>
308
+ <span id="error-neck_depth_back" style="color:red"></span>
309
+ </div>
310
+ <div class="detail_row">
311
+ <label>SLEEVE LENGTH CAP</label>
312
+ <input id="sleeve_length" name="sleeve_length" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
313
+ <span id="sleeve_length-id"></span>
314
+ <span id="error-sleeve_length" style="color:red"></span>
315
+ </div>
316
+ <div class="detail_row">
317
+ <label>BICEP</label>
318
+ <input id="around_arm" name="around_arm" type="number" value="" placeholder="Please Enter value" class="required-entry validate-digits size-class">
319
+ <span id="around_arm-id"></span>
320
+ <span id="error-around_arm" style="color:red"></span>
321
+ <input type="hidden" name="selected_standard" id="selected_standard" value="" />
322
+ </div>
323
+ <!--End Here-->
324
+ <!--New rows added-->
325
+ <div class="detail_row">
326
+ <a href="javascript:void(0)" class="show_measurement" onClick="convertSizeValue();">Show measurements in Centimeters</a>
327
+ </div>
328
+ </div>
329
+ </div>
330
+ <div class="measurements_right-part">
331
+ <div class="image-boxn"><img alt="" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);?>frontend/base/default/blouse/images/blouse/measurements.svg" /></div>
332
+ </div>
333
+ </div>
334
+
335
+ <div class="content_botom_link">
336
+ <a href="javascript:void(0);" onclick='hideTab();jQuery("#chk-stitch-blouse").attr("checked", false);' id="cancel_step2" class="cancel">Cancel</a>
337
+ <a class="save-cont" onclick="validation_step2();">Save &amp; Continue</a>
338
+ </div>
339
+ </div>
340
+ </div>
341
+
342
+ <!--blosuse part 2 end -->
343
+ <!--blosuse part 3 start -->
344
+ <div class="blouse_box_row">
345
+ <div class="blouse_box_heading blouse_heading-step3">STEP 03 | Review and Confirm</div>
346
+ <div class="blouse_box_content blouse_content-step3" id="blouse_content-step3-id">
347
+ <div id="blouse_box_step3" class="review-confirm">
348
+ <div class="review-confirm_infomation">
349
+ <div class="review_blouse">
350
+ <div class="review_blouse_left">Blouse Style</div>
351
+ <div class="review_blouse_right" id="review_blouse_right-id">
352
+ <span id="style_name_step3">Square Neckline</span>
353
+ <div id="img_blouse_right-id">
354
+
355
+ </div>
356
+ </div>
357
+ </div>
358
+ <div class="review_measurements">
359
+ <div class="review_measurements_left">Measurements</div>
360
+ <div class="review_measurements_right">
361
+ <div class="measure_review_row">
362
+ <div class="measure_review_left-box">LENGTH FROM HPS</div>
363
+ <div class="measure_review_right-box" id="review-length_hps"></div>
364
+ </div>
365
+ <div class="measure_review_row">
366
+ <div class="measure_review_left-box">ABOVE BUST</div>
367
+ <div class="measure_review_right-box" id="review-above-waist"></div>
368
+ </div>
369
+ <div class="measure_review_row">
370
+ <div class="measure_review_left-box">ROUND BUST</div>
371
+ <div class="measure_review_right-box" id="review-around-bust"></div>
372
+ </div>
373
+ <div class="measure_review_row">
374
+ <div class="measure_review_left-box">BELOW BUST</div>
375
+ <div class="measure_review_right-box" id="review-shoulder"></div>
376
+ </div>
377
+ <div class="measure_review_row">
378
+ <div class="measure_review_left-box">WAIST</div>
379
+ <div class="measure_review_right-box" id="review-waist"></div>
380
+ </div>
381
+ <div class="measure_review_row">
382
+ <div class="measure_review_left-box">SHOULDER</div>
383
+ <div class="measure_review_right-box" id="review-shoulder-id"></div>
384
+ </div>
385
+ <div class="measure_review_row">
386
+ <div class="measure_review_left-box">ACROSS FRONT</div>
387
+ <div class="measure_review_right-box" id="review-cross-front"></div>
388
+ </div>
389
+ <div class="measure_review_row">
390
+ <div class="measure_review_left-box">ACROSS BACK</div>
391
+ <div class="measure_review_right-box" id="review-cross-back"></div>
392
+ </div>
393
+ <div class="measure_review_row">
394
+ <div class="measure_review_left-box">NECK TO APEX</div>
395
+ <div class="measure_review_right-box" id="review-height"></div>
396
+ </div>
397
+ <div class="measure_review_row">
398
+ <div class="measure_review_left-box">ARMHOLE ROUND</div>
399
+ <div class="measure_review_right-box" id="review-around-arm"></div>
400
+ </div>
401
+ <div class="measure_review_row">
402
+ <div class="measure_review_left-box">FRONT NECK DEPTH</div>
403
+ <div class="measure_review_right-box" id="review-neck-depth-front"></div>
404
+ </div>
405
+ <div class="measure_review_row">
406
+ <div class="measure_review_left-box">BACK NECK DEPTH</div>
407
+ <div class="measure_review_right-box" id="review-neck-depth-back"></div>
408
+ </div>
409
+ <div class="measure_review_row">
410
+ <div class="measure_review_left-box">SLEEVE LENGTH CAP</div>
411
+ <div class="measure_review_right-box" id="review-sleeve-length"></div>
412
+ </div>
413
+ <div class="measure_review_row border-none">
414
+ <div class="measure_review_left-box">BICEP</div>
415
+ <div class="measure_review_right-box" id="review-bicep"></div>
416
+ </div>
417
+ </div>
418
+ </div>
419
+ <div class="review_instructions">Special Instructions <span class="plus"></span></div>
420
+ <div class="instruction-details">
421
+ <textarea placeholder="Your message" id="special-instruction" name="special_instruction" cols="" rows=""></textarea>
422
+ </div>
423
+ </div>
424
+ <div class="pricemain">
425
+ <div class="price-productinfo">
426
+ <p class="amount"><span>Price : <?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); ?> <?php echo $setprice; ?></span></p>
427
+ <p class="pro-detail">Your size and style selections &amp; instructions are subject to fabric pattern and limitations.</p>
428
+ </div>
429
+ <div class="save-cancel-box">
430
+ <div class="centerdiv">
431
+ <p class="save-continure"><a href="javascript:void(0)" id="gun1" onclick="final_step();">Add To Cart</a></p>
432
+ <p class="cancel"><a id="cancel_step3" href="javascript:void(0)" onclick="reset_form(); hide_show();">Cancel</a></p>
433
+ </div>
434
+ </div>
435
+ </div>
436
+ </div>
437
+ </div>
438
+ </div>
439
+ <!--blosuse part 3 end -->
440
+ <!-- </form> -->
441
+ <!--End of Form-->
442
+ </div>
443
+ </div>
444
+ </div>
445
+ </div>
446
+ </div>
447
+ </div>
448
+ <!--easy return poup end -->
449
+ <!--div dispay after adding blous section - start anand-->
450
+ <div id="error-added-blouse"></div>
451
+ <div class="blouse-added-row" id="added-blouse-row">
452
+ <div class="blouse-added-image" id="blouse-added-image-id">
453
+ <img alt="" src="<?php echo $this->getSkinUrl();?>images/blouse/classic-round.svg">
454
+ </div>
455
+ <div class="blouse-added-tick">
456
+ <img alt="" src="<?php echo $this->getSkinUrl();?>images/blouse/tick.png">
457
+ </div>
458
+ <div class="blouse-added-information">
459
+ <h3>BLOUSE ADDED</h3>
460
+ <h4 >STYLE: <span id="tittle-for-style-id"></span></h4>
461
+ <a class="view-blouse">View Measurements</a>
462
+ </div>
463
+ </div>
464
+ <!--div dispay after adding blous section - end anand-->
465
+
466
+ <!-- Start popup for mesurement -->
467
+
468
+ <div id="bk-overlay-view-measure"></div>
469
+ <div class="main-class-view-measure" id="">
470
+ <div class="popup-full-view-measure">
471
+ <div class="popup-center-view-measure">
472
+ <div class="popup-main-view-measure">
473
+ <div class="close-bttn-view-measure"> <span>X</span></div>
474
+ <div class="popup-container-view-measure">
475
+ <div class="popup-content-view-measure">
476
+ <h1 class="popup-heading">Your Measurements</h1>
477
+ <div class="blouse_main">
478
+ <div class="review-confirm_infomation">
479
+ <div class="review_measurements_right">
480
+
481
+ <div class="measure_review_row">
482
+ <div class="measure_review_left-box">LENGTH FROM HPS</div>
483
+ <div class="measure_review_right-box" id="view-1"></div>
484
+ </div>
485
+ <div class="measure_review_row">
486
+ <div class="measure_review_left-box">ABOVE BUST</div>
487
+ <div class="measure_review_right-box" id="view-2"></div>
488
+ </div>
489
+ <div class="measure_review_row">
490
+ <div class="measure_review_left-box">ROUND BUST</div>
491
+ <div class="measure_review_right-box" id="view-3"></div>
492
+ </div>
493
+ <div class="measure_review_row">
494
+ <div class="measure_review_left-box">BELOW BUST</div>
495
+ <div class="measure_review_right-box" id="view-4"></div>
496
+ </div>
497
+ <div class="measure_review_row">
498
+ <div class="measure_review_left-box">WAIST</div>
499
+ <div class="measure_review_right-box" id="view-5"></div>
500
+ </div>
501
+ <div class="measure_review_row">
502
+ <div class="measure_review_left-box">SHOULDER</div>
503
+ <div class="measure_review_right-box" id="view-6"></div>
504
+ </div>
505
+ <div class="measure_review_row">
506
+ <div class="measure_review_left-box">ACROSS FRONT</div>
507
+ <div class="measure_review_right-box" id="view-7"></div>
508
+ </div>
509
+ <div class="measure_review_row">
510
+ <div class="measure_review_left-box">ACROSS BACK</div>
511
+ <div class="measure_review_right-box" id="view-8"></div>
512
+ </div>
513
+ <div class="measure_review_row">
514
+ <div class="measure_review_left-box">NECK TO APEX</div>
515
+ <div class="measure_review_right-box" id="view-9"></div>
516
+ </div>
517
+ <div class="measure_review_row">
518
+ <div class="measure_review_left-box">ARMHOLE ROUND</div>
519
+ <div class="measure_review_right-box" id="view-10"></div>
520
+ </div>
521
+ <div class="measure_review_row">
522
+ <div class="measure_review_left-box">FRONT NECK DEPTH</div>
523
+ <div class="measure_review_right-box" id="view-11"></div>
524
+ </div>
525
+ <div class="measure_review_row">
526
+ <div class="measure_review_left-box">BACK NECK DEPTH</div>
527
+ <div class="measure_review_right-box" id="view-12"></div>
528
+ </div>
529
+ <div class="measure_review_row">
530
+ <div class="measure_review_left-box">SLEEVE LENGTH CAP</div>
531
+ <div class="measure_review_right-box" id="view-13"></div>
532
+ </div>
533
+ <div class="measure_review_row">
534
+ <div class="measure_review_left-box">BICEP</div>
535
+ <div class="measure_review_right-box" id="view-14"></div>
536
+ </div>
537
+ </div>
538
+ </div>
539
+ </div>
540
+ </div>
541
+ </div>
542
+ </div>
543
+ </div>
544
+ </div>
545
+ </div>
546
+
547
+ <!-- End popup for mesurement -->
548
+
549
+ <input type="hidden" value="" name="blouse_style" id="input_style-id" />
550
+ <input type="hidden" value="" name="blouse_around_bust" id="input_around_bust-id" />
551
+ <input type="hidden" value="" name="blouse_above_waist" id="input_above_waist-id" />
552
+ <input type="hidden" value="" name="blouse_shoulder" id="input_shoulder-id" check="below_bust" />
553
+ <!-- <input type="hidden" value="" name="blouse_arm_hole" id="input_arm_hole-id" /> -->
554
+ <input type="hidden" value="" name="blouse_around_arm" id="input_around_arm-id" />
555
+ <input type="hidden" value="" name="blouse_height" id="input_height-id" check="neck to apex"/>
556
+ <input type="hidden" value="" name="blouse_shoulder_height" id="input_shoulder_height-id" check="shoulder"/>
557
+ <input type="hidden" value="" name="blouse_cross_front" id="input_cross_front-id" />
558
+ <input type="hidden" value="" name="blouse_cross_back" id="input_cross_back-id" />
559
+ <input type="hidden" value="" name="blouse_neck_depth_back" id="input_neck_depth_back-id" />
560
+ <input type="hidden" value="" name="blouse_neck_depth_front" id="input_neck_depth_front-id" />
561
+ <input type="hidden" value="" name="blouse_measurement_size" id="input_measurement_size-id" />
562
+ <input type="hidden" value="CM" name="blouse_measurement_unit" id="input_blouse_measurement_unit-id" />
563
+ <!--New Field start -->
564
+ <input type="hidden" value="" name="blouse_length_hps" id="input_length_hps-id" />
565
+ <input type="hidden" value="" name="blouse_sleeve_length" id="input_sleeve-length-id" />
566
+ <input type="hidden" value="" name="blouse_waist" id="input_waist-id" />
567
+ <input type="hidden" value="" name="blouse_bicep" id="input_bicep-id" />
568
+ <!--New Field End -->
569
+ <input type="hidden" value="" name="blouse_name" id="customer-blouse-name" />
570
+ <input type="hidden" value="" name="input_special_instruction" id="input-special-instruction" />
571
+
572
+
573
+ <script type="text/javascript">
574
+ jQuery('input:radio[name=saree_radio]:nth(0)').attr('checked',true);
575
+ jQuery(document).ready(function(){
576
+ jQuery("#blouseselect").attr('checked', true);
577
+ jQuery(".view-blouse").click(function(){
578
+ jQuery(".main-class-view-measure").show();
579
+ jQuery("#bk-overlay-view-measure").show();
580
+ });
581
+
582
+ jQuery(".close-bttn-view-measure").click(function(){
583
+ jQuery("#bk-overlay-view-measure").hide();
584
+ jQuery(".main-class-view-measure").hide();
585
+ });
586
+ jQuery(".differen-color > h3").click(function(){
587
+ jQuery(".differen-color > p").slideToggle();
588
+ });
589
+ jQuery("#blouseclose").click(function(){ jQuery('#chk-stitch-blouse').attr('checked',false)});
590
+
591
+ jQuery('.review_instructions').click(function(){
592
+ jQuery('.instruction-details').toggleClass('inst-display-block')
593
+ jQuery('.review_instructions span').toggleClass('minus')
594
+ });
595
+ });
596
+
597
+ function blouseData(id){
598
+ document.getElementById(id).style.display = 'block';
599
+ }
600
+
601
+ var preform=new VarienForm('blouse_form');
602
+
603
+ function validatepostform(){
604
+ if(preform.validator.validate())
605
+ return true;
606
+ else
607
+ return false;
608
+ }
609
+
610
+ function showBlouse()
611
+ {
612
+ var showBlouse = "";
613
+ jQuery(".add-new").addClass("bg-color");
614
+ showTab('popup_easyreturn');
615
+ }
616
+
617
+
618
+ </script>
619
+
620
+
621
+
622
+ <?php
623
+ /*
624
+ require_once("app/Mage.php");
625
+ Mage::app('default');
626
+ Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
627
+
628
+ $installer = new Mage_Eav_Model_Entity_Setup('core_setup');
629
+ $entityTypeId = $installer->getEntityTypeId('catalog_category');
630
+ $attributeSetId = $installer->getDefaultAttributeSetId($entityTypeId);
631
+ $attributeGroupId = $installer->getDefaultAttributeGroupId($entityTypeId, $attributeSetId);
632
+
633
+ $installer->addAttribute('catalog_category', 'blouse_section', array(
634
+ 'group' => 'General Information',
635
+ 'type' => 'int',
636
+ 'label' => 'Blouse Section Display',
637
+ 'input' => 'select',
638
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
639
+ 'visible' => true,
640
+ 'required' => false,
641
+ 'user_defined' => false,
642
+ 'default' => 0,
643
+ 'source' => 'eav/entity_attribute_source_boolean'
644
+ ));
645
+ */
646
+ ?>
app/design/frontend/base/default/template/blouse/checkout/cart/item/default.phtml ADDED
@@ -0,0 +1,309 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_item = $this->getItem();
3
+ $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
4
+ $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
5
+ ?>
6
+ <tr>
7
+ <td class="a-center"><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(125,83); ?>" width="125" height="83" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
8
+ <td class="a-center">
9
+ <h2 class="product-name">
10
+ <?php if ($this->hasProductUrl()):?>
11
+ <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
12
+ <?php else: ?>
13
+ <?php echo $this->htmlEscape($this->getProductName()) ?>
14
+ <?php endif; ?>
15
+ </h2>
16
+ <?php if ($_options = $this->getOptionList()):?>
17
+ <?php $product_ob = Mage::getModel('catalog/product')->load($_item->getProductId());
18
+ $result = $product_ob->getVisibility();
19
+ ?>
20
+
21
+ <dl class="item-options" id="popup_div<?php echo $result; ?>">
22
+ <?php /* ?>// Chandan added code start<?php */ ?>
23
+ <?php if($result == 1) { ?>
24
+ <a class="view-blouse">View Measurements</a>
25
+ <div id="" class="main-class-view-measure" style="display: none;">
26
+ <div class="popup-full-view-measure">
27
+ <div class="popup-center-view-measure">
28
+ <div class="popup-main-view-measure">
29
+ <div class="close-bttn-view-measure"> <span>X</span></div>
30
+ <div class="popup-container-view-measure">
31
+ <div class="popup-content-view-measure">
32
+ <h1 class="popup-heading">Your Measurements</h1>
33
+ <div class="blouse_main">
34
+ <div class="review-confirm_infomation">
35
+ <div class="review_measurements_right">
36
+ <?php foreach ($_options as $_option) : ?>
37
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
38
+ <div class="measure_review_left-box"><?php echo $this->htmlEscape($_option['label']) ?></div>
39
+ <div id="view-1" class="measure_review_right-box"<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
40
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
41
+ <div class="truncated_full_value">
42
+ <dl class="item-options">
43
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
44
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
45
+ </dl>
46
+ </div>
47
+ <?php endif; ?>
48
+ </div>
49
+
50
+ <?php endforeach; ?>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ <?php /* ?>// Chandan added code end<?php */ ?>
61
+
62
+ <?php } else { ?>
63
+ <?php foreach ($_options as $_option) : ?>
64
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
65
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
66
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
67
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
68
+ <div class="truncated_full_value">
69
+ <dl class="item-options">
70
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
71
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
72
+ </dl>
73
+ </div>
74
+ <?php endif; ?>
75
+ </dd>
76
+ <?php endforeach; ?>
77
+ <?php } ?>
78
+ </dl>
79
+ <?php endif;?>
80
+ <?php if ($messages = $this->getMessages()): ?>
81
+ <?php foreach ($messages as $message): ?>
82
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
83
+ <?php endforeach; ?>
84
+ <?php endif; ?>
85
+ <?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
86
+ <?php if ($addInfoBlock): ?>
87
+ <?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
88
+ <?php endif;?>
89
+ </td>
90
+ <td class="a-center">
91
+ <?php if ($isVisibleProduct): ?>
92
+ <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
93
+ <?php endif ?>
94
+ </td>
95
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
96
+ <td class="a-center">
97
+ <?php if ($isVisibleProduct): ?>
98
+ <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
99
+ <?php endif ?>
100
+ </td-->
101
+ <?php endif ?>
102
+
103
+ <?php if ($canApplyMsrp): ?>
104
+ <td class="a-center"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
105
+ <span class="cart-price">
106
+ <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
107
+ <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
108
+ <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
109
+ <script type="text/javascript">
110
+ Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
111
+ </script>
112
+ </span>
113
+ </td>
114
+ <?php else: ?>
115
+
116
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
117
+ <td class="a-center">
118
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
119
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
120
+ <?php else: ?>
121
+ <span class="cart-price">
122
+ <?php endif; ?>
123
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
124
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
125
+ <?php else: ?>
126
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
127
+ <?php endif; ?>
128
+
129
+ </span>
130
+
131
+
132
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
133
+
134
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
135
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
136
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
137
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
138
+ <?php endforeach; ?>
139
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
140
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
141
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
142
+ <?php endforeach; ?>
143
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
144
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
145
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
146
+ <?php endforeach; ?>
147
+ <?php endif; ?>
148
+ </div>
149
+
150
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
151
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
152
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
153
+ </div>
154
+ <?php endif; ?>
155
+ <?php endif; ?>
156
+ </td>
157
+ <?php endif; ?>
158
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
159
+ <td>
160
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
161
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
162
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
163
+ <?php else: ?>
164
+ <span class="cart-price">
165
+ <?php endif; ?>
166
+
167
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
168
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
169
+ <?php else: ?>
170
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
171
+ <?php endif; ?>
172
+
173
+ </span>
174
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
175
+
176
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
177
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
178
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
179
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
180
+ <?php endforeach; ?>
181
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
182
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
183
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
184
+ <?php endforeach; ?>
185
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
186
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
187
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
188
+ <?php endforeach; ?>
189
+ <?php endif; ?>
190
+ </div>
191
+
192
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
193
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
194
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
195
+ </div>
196
+ <?php endif; ?>
197
+ <?php endif; ?>
198
+ </td>
199
+ <?php endif; ?>
200
+ <?php endif; ?>
201
+ <td class="a-center">
202
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty a-center" maxlength="12" />
203
+ </td>
204
+ <?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
205
+ <td class="a-center">
206
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
207
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
208
+ <?php else: ?>
209
+ <span class="cart-price">
210
+ <?php endif; ?>
211
+
212
+ <?php if ($canApplyMsrp): ?>
213
+ <span class="cart-msrp-subtotal">--</span>
214
+ <?php else: ?>
215
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
216
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
217
+ <?php else: ?>
218
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
219
+ <?php endif; ?>
220
+ <?php endif; ?>
221
+
222
+ </span>
223
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
224
+
225
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
226
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
227
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
228
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
229
+ <?php endforeach; ?>
230
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
231
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
232
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
233
+ <?php endforeach; ?>
234
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
235
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
236
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
237
+ <?php endforeach; ?>
238
+ <?php endif; ?>
239
+ </div>
240
+
241
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
242
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
243
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
244
+ </div>
245
+ <?php endif; ?>
246
+ <?php endif; ?>
247
+ </td>
248
+ <?php endif; ?>
249
+ <?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
250
+ <td>
251
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
252
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
253
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
254
+ <?php else: ?>
255
+ <span class="cart-price">
256
+ <?php endif; ?>
257
+
258
+ <?php if ($canApplyMsrp): ?>
259
+ <span class="cart-msrp-subtotal">--</span>
260
+ <?php else: ?>
261
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
262
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
263
+ <?php else: ?>
264
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
265
+ <?php endif; ?>
266
+ <?php endif; ?>
267
+
268
+ </span>
269
+
270
+
271
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
272
+
273
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
274
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
275
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
276
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
277
+ <?php endforeach; ?>
278
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
279
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
280
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
281
+ <?php endforeach; ?>
282
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
283
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
284
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
285
+ <?php endforeach; ?>
286
+ <?php endif; ?>
287
+ </div>
288
+
289
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
290
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
291
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
292
+ </div>
293
+ <?php endif; ?>
294
+ <?php endif; ?>
295
+ </td>
296
+ <?php endif; ?>
297
+ <td class="a-center"><a id="popup_div<?php echo $product_id; ?>" href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" class="icon-remove btn-remove btn-remove2"><?php //echo $this->__('Remove item')?></a></td>
298
+ </tr>
299
+
300
+
301
+ <script>
302
+ jQuery(".close-bttn-view-measure").click(function(){
303
+ jQuery(".main-class-view-measure").hide();
304
+ });
305
+
306
+ jQuery(".view-blouse").click(function(){
307
+ jQuery(".main-class-view-measure").show();
308
+ });
309
+ </script>
app/design/frontend/base/default/template/blouse/checkout/onepage/review/info.phtml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php echo $this->getChildHtml('items_before'); ?>
2
+ <div id="checkout-review-table-wrapper">
3
+ <?php $_tableClass = $this->helper('tax')->displayCartBothPrices() ? 'linearize-table-large' : 'linearize-table'; ?>
4
+ <table class="data-table <?php echo $_tableClass; ?> checkout-review-table" id="checkout-review-table">
5
+ <?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
6
+ <col />
7
+ <col width="1" />
8
+ <col width="1" />
9
+ <col width="1" />
10
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
11
+ <col width="1" />
12
+ <col width="1" />
13
+ <?php endif; ?>
14
+ <thead>
15
+ <tr>
16
+ <th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product') ?></th>
17
+ <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Price') ?></th>
18
+ <th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
19
+ <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
20
+ </tr>
21
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
22
+ <tr>
23
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
24
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
25
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
26
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
27
+ </tr>
28
+ <?php endif; ?>
29
+ </thead>
30
+ <?php echo $this->getChildHtml('totals'); ?>
31
+ <tbody>
32
+ <?php foreach($this->getItems() as $_item): ?>
33
+ <?php echo $this->getItemHtml($_item)?>
34
+ <?php endforeach ?>
35
+ </tbody>
36
+ </table>
37
+ </div>
38
+ <?php echo $this->getChildHtml('items_after'); ?>
39
+ <script type="text/javascript">
40
+ //<![CDATA[
41
+ decorateTable('checkout-review-table');
42
+ truncateOptions();
43
+ //]]>
44
+ </script>
45
+ <div id="checkout-review-submit">
46
+ <?php echo $this->getChildHtml('agreements') ?>
47
+ <div class="buttons-set" id="review-buttons-container">
48
+ <?php echo $this->getChildHtml('button') ?>
49
+ <span class="please-wait" id="review-please-wait" style="display:none;">
50
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Submitting order information...')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Submitting order information...')) ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
51
+ </span>
52
+ <p class="f-left"><?php echo $this->__('Forgot an Item?') ?> <a href="<?php echo $this->getUrl('checkout/cart') ?>" onclick="return confirm('<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Are you sure you want to leave this page? You will need to go through the checkout steps again.')); ?>')"><?php echo $this->__('Edit Your Cart') ?></a></p>
53
+ </div>
54
+ <script type="text/javascript">
55
+ //<![CDATA[
56
+ review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
57
+ //]]>
58
+ </script>
59
+ </div>
app/design/frontend/base/default/template/blouse/checkout/onepage/review/item.phtml ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_item = $this->getItem()?>
2
+ <tr>
3
+ <td><h3 class="product-name"><?php echo $this->escapeHtml($this->getProductName()) ?></h3>
4
+
5
+ <?php if ($_options = $this->getOptionList()):?>
6
+ <?php $product_ob = Mage::getModel('catalog/product')->load($_item->getProductId());
7
+ $result = $product_ob->getVisibility();
8
+ ?>
9
+
10
+ <dl class="item-options" id="popup_div<?php echo $result; ?>">
11
+ <?php /* ?>// Chandan added code start<?php */ ?>
12
+ <?php if($result == 1) { ?>
13
+ <a class="view-blouse">View Measurements</a>
14
+ <div id="" class="main-class-view-measure" style="display: none;">
15
+ <div class="popup-full-view-measure">
16
+ <div class="popup-center-view-measure">
17
+ <div class="popup-main-view-measure">
18
+ <div class="close-bttn-view-measure"> <span>X</span></div>
19
+ <div class="popup-container-view-measure">
20
+ <div class="popup-content-view-measure">
21
+ <h1 class="popup-heading">Your Measurements</h1>
22
+ <div class="blouse_main">
23
+ <div class="review-confirm_infomation">
24
+ <div class="review_measurements_right">
25
+ <?php foreach ($_options as $_option) : ?>
26
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
27
+ <div class="measure_review_left-box"><?php echo $this->htmlEscape($_option['label']) ?></div>
28
+ <div id="view-1" class="measure_review_right-box"<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
29
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
30
+ <div class="truncated_full_value">
31
+ <dl class="item-options">
32
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
33
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
34
+ </dl>
35
+ </div>
36
+ <?php endif; ?>
37
+ </div>
38
+
39
+ <?php endforeach; ?>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ <?php /* ?>// Chandan added code end<?php */ ?>
50
+
51
+ <?php } else { ?>
52
+ <?php foreach ($_options as $_option) : ?>
53
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
54
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
55
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
56
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
57
+ <div class="truncated_full_value">
58
+ <dl class="item-options">
59
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
60
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
61
+ </dl>
62
+ </div>
63
+ <?php endif; ?>
64
+ </dd>
65
+ <?php endforeach; ?>
66
+ <?php } ?>
67
+ </dl>
68
+ <?php endif;?>
69
+
70
+
71
+
72
+ <?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
73
+ <?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
74
+ <?php endif;?>
75
+ </td>
76
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
77
+ <?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Excl. Tax)') : ''; ?>
78
+ <td class="a-right" data-rwd-label="<?php echo $this->__('Price') . $_labelAppend ?>">
79
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
80
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
81
+ <?php else: ?>
82
+ <span class="cart-price">
83
+ <?php endif; ?>
84
+
85
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
86
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
87
+ <?php else: ?>
88
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
89
+ <?php endif; ?>
90
+
91
+ </span>
92
+
93
+
94
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
95
+
96
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
97
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
98
+ <small>
99
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
100
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
101
+ <?php endforeach; ?>
102
+ </small>
103
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
104
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
105
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></small></span><br />
106
+ <?php endforeach; ?>
107
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
108
+ <small>
109
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
110
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
111
+ <?php endforeach; ?>
112
+ </small>
113
+ <?php endif; ?>
114
+ </div>
115
+
116
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
117
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
118
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
119
+ </div>
120
+ <?php endif; ?>
121
+ <?php endif; ?>
122
+ </td>
123
+ <?php endif; ?>
124
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
125
+ <?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Incl. Tax)') : ''; ?>
126
+ <td data-rwd-label="<?php echo $this->__('Price') . $_labelAppend ?>">
127
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
128
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
129
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
130
+ <?php else: ?>
131
+ <span class="cart-price">
132
+ <?php endif; ?>
133
+
134
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
135
+ <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
136
+ <?php else: ?>
137
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
138
+ <?php endif; ?>
139
+
140
+ </span>
141
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
142
+
143
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
144
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
145
+ <small>
146
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
147
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
148
+ <?php endforeach; ?>
149
+ </small>
150
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
151
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
152
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
153
+ <?php endforeach; ?>
154
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
155
+ <small>
156
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
157
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
158
+ <?php endforeach; ?>
159
+ </small>
160
+ <?php endif; ?>
161
+ </div>
162
+
163
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
164
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
165
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
166
+ </div>
167
+ <?php endif; ?>
168
+ <?php endif; ?>
169
+ </td>
170
+ <?php endif; ?>
171
+ <td class="a-center" data-rwd-label="<?php echo $this->__('Qty') ?>"><?php echo $_item->getQty() ?></td>
172
+ <!-- sub total starts here -->
173
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
174
+ <?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Excl. Tax)') : ''; ?>
175
+ <td class="a-right" data-rwd-label="<?php echo $this->__('Subtotal') . $_labelAppend ?>">
176
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
177
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
178
+ <?php else: ?>
179
+ <span class="cart-price">
180
+ <?php endif; ?>
181
+
182
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
183
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
184
+ <?php else: ?>
185
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
186
+ <?php endif; ?>
187
+
188
+ </span>
189
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
190
+
191
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
192
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
193
+ <small>
194
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
195
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
196
+ <?php endforeach; ?>
197
+ </small>
198
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
199
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
200
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></small></span><br />
201
+ <?php endforeach; ?>
202
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
203
+ <small>
204
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
205
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
206
+ <?php endforeach; ?>
207
+ </small>
208
+ <?php endif; ?>
209
+ </div>
210
+
211
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
212
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
213
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
214
+ </div>
215
+ <?php endif; ?>
216
+ <?php endif; ?>
217
+ </td>
218
+ <?php endif; ?>
219
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
220
+ <?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Incl. Tax)') : ''; ?>
221
+ <td data-rwd-label="<?php echo $this->__('Subtotal') . $_labelAppend ?>">
222
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
223
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
224
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
225
+ <?php else: ?>
226
+ <span class="cart-price">
227
+ <?php endif; ?>
228
+
229
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
230
+ <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
231
+ <?php else: ?>
232
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
233
+ <?php endif; ?>
234
+
235
+ </span>
236
+
237
+
238
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
239
+
240
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
241
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
242
+ <small>
243
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
244
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
245
+ <?php endforeach; ?>
246
+ </small>
247
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
248
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
249
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
250
+ <?php endforeach; ?>
251
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
252
+ <small>
253
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
254
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
255
+ <?php endforeach; ?>
256
+ </small>
257
+ <?php endif; ?>
258
+ </div>
259
+
260
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
261
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
262
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
263
+ </div>
264
+ <?php endif; ?>
265
+ <?php endif; ?>
266
+ </td>
267
+ <?php endif; ?>
268
+ </tr>
269
+
270
+
271
+ <script>
272
+ jQuery(".close-bttn-view-measure").click(function(){
273
+ jQuery(".main-class-view-measure").hide();
274
+ });
275
+
276
+ jQuery(".view-blouse").click(function(){
277
+ jQuery(".main-class-view-measure").show();
278
+ });
279
+ </script>
app/etc/modules/Chandan_Blouse.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Chandan_Blouse>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Chandan_Blouse>
8
+ </modules>
9
+ </config>
media/blouse/1.png ADDED
Binary file
media/blouse/2.png ADDED
Binary file
media/blouse/3.png ADDED
Binary file
media/blouse/4.png ADDED
Binary file
media/blouse/5.png ADDED
Binary file
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>custom_blouse</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="https://opensource.org/licenses/osl-3.0.php">OSL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Custom Blouse</summary>
10
+ <description>This extension use for Custom Blouse</description>
11
+ <notes>First Released</notes>
12
+ <authors><author><name>Chandan Kumar Singh</name><user>chandan8050</user><email>chandankumar8050@gmail.com</email></author></authors>
13
+ <date>2016-12-20</date>
14
+ <time>17:49:52</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Chandan_Blouse.xml" hash="7858f3157bed2367f6bd44f6dd4627ca"/></dir></target><target name="magecommunity"><dir name="Chandan"><dir name="Blouse"><dir name="Block"><dir name="Adminhtml"><dir name="Blouse"><dir name="Edit"><file name="Form.php" hash="b1f8a36e3bdaf4d431f0b3202ce91300"/><dir name="Tab"><file name="Form.php" hash="ba9e74e56864ba0a85c374a2e719950f"/></dir><file name="Tabs.php" hash="bebd3a264ecebea3dd1c04fb00c1ca77"/></dir><file name="Edit.php" hash="d8c5a0d3042b81b2f095ea3419ae2f4c"/><file name="Grid.php" hash="5b1b83d7b37e8c842069d6a225a72d9d"/><dir name="Renderer"><file name="Image.php" hash="11cafb8b34884fd97ace75767fd929ab"/></dir></dir><file name="Blouse.php" hash="09f00a5e8e68973579239a76dc0b029d"/><dir name="Helper"><file name="Image.php" hash="9a55d69078e02f384daace7319fd3b7f"/></dir></dir><file name="Blouse.php" hash="d0ca65087d0ca8a5fa59d6dc3463d855"/></dir><dir name="Helper"><file name="Data.php" hash="576627f8c0865d2fafe2b2e63920c4b6"/></dir><dir name="Model"><file name="Blouse.php" hash="5461b0a10131c2522072c666ce6f1073"/><dir name="Mysql4"><dir name="Blouse"><file name="Collection.php" hash="e1c0791e3b1c0878cbe86c8511e77590"/></dir><file name="Blouse.php" hash="359ed9a0514d9314dfa2dd554b9d9fb5"/></dir><file name="Status.php" hash="5e22e37366ab7f9a3c74326186615ca4"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BlouseController.php" hash="c59b6519ce74cdf8235dcb91e9b36f59"/></dir><file name="IndexController.php" hash="4b297687cba718a3515f981276785c5d"/></dir><dir name="etc"><file name="config.xml" hash="1853738bf45a0bb3077b42713b769ac4"/><file name="system.xml" hash="542200c9b038d0c8721ed3df11250433"/></dir><dir name="sql"><dir name="blouse_setup"><file name="mysql4-install-1.0.0.php" hash="30b649e13199ab53bfed440922edb7e8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="blouse.xml" hash="a250bbcc3e3f0df9372a49ef5b5fca87"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="blouse.xml" hash="de230a72c4f2bae01ba440d74417af4b"/></dir><dir name="template"><dir name="blouse"><file name="blouse.phtml" hash="86fc6a35a232ebc1e8b209faada7c7a9"/><dir name="checkout"><dir name="cart"><dir name="item"><file name="default.phtml" hash="09923c703adc41d15e5dd1578e77ebb7"/></dir></dir><dir name="onepage"><dir name="review"><file name="info.phtml" hash="3645deaa2cd27b0749caaaa278e32f54"/><file name="item.phtml" hash="75e368c9aa65c6186ded1f06122b71a8"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="blouse"><file name="1.png" hash="856ebd1718e38c2a0af66e5ee7d512b9"/><file name="2.png" hash="a01b9cd6cd3522bfadad906ba48e1e57"/><file name="3.png" hash="dcf2ec5544bc62a80b8f5e711e623f89"/><file name="4.png" hash="bc2f474539a005bcd36f5b076487718e"/><file name="5.png" hash="dfa576b2d8a5eef0d7b52c075e492d94"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="blouse"><dir name="css"><file name="blouse.css" hash="c3063e852ff1e68f67375900bd257681"/></dir><dir name="images"><dir name="blouse"><file name="classic-round.svg" hash="63f44e70c1482d423ddc51dadfb83266"/><file name="cross-blouse.svg" hash="92f9fb18fb90df9d890af8d3f2175066"/><file name="measurements.svg" hash="dc97296ca8b65cbf8edecb8438e2346b"/><file name="tick.png" hash="8f87273179666177b274ee5eec2dc9e9"/><file name="x.svg" hash="9250e3debc89f1d12f25a9d686d72e2a"/></dir></dir><dir name="js"><file name="blouse.js" hash="faca7cd8ab771ab193ae55fbbf9f93a9"/><file name="iwd-jquery-2.1.3.min.js" hash="95d5220c7ac0d5c88885de8282f66fbe"/></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
18
+ </package>
skin/frontend/base/default/blouse/css/blouse.css ADDED
@@ -0,0 +1,445 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @media only screen and (max-width: 480px), only screen and (max-device-width: 480px) {
2
+
3
+ .measurements_left-part {
4
+ width: 100% !important;
5
+ }
6
+
7
+ .measurements_left-part .custome_standard label {
8
+ color: #D0145A !important;
9
+ font-family: 'BauerBodoniBT-Roman' !important;
10
+ font-size: 12px !important;
11
+ padding-left: 0px !important;
12
+ font-weight: normal !important;
13
+ }
14
+
15
+ .measurements_left-part .custome_standard {
16
+ width: 100% !important;
17
+ float: left !important;
18
+ margin-bottom: 22px !important;
19
+ margin-top: 10px !important;
20
+ }
21
+
22
+ .measurements_left-part .detail {
23
+ margin-top: 0px !important;
24
+ }
25
+
26
+ .blouse_box_content .content_botom_link a.save-cont {
27
+ font-family: 'ProximaNovaBold' !important;
28
+ font-size: 13px !important;
29
+ color: #3cb676 !important;
30
+ background: #fff !important;
31
+ padding: 0px 0px !important;
32
+
33
+ }
34
+
35
+ .blouse_box_content .content_botom_link a.cancel {
36
+ font-family: 'ProximaNovaBold' !important;
37
+ font-size: 13px !important;
38
+ color: #f92d2f !important;
39
+ margin: 0px 10px !important;
40
+ background: #fff !important;
41
+ padding: 0px 0px !important ;
42
+ }
43
+
44
+ .blouse_box_content .content_botom_link {
45
+ width: 100% !important;
46
+ float: left !important;
47
+ /* margin-top: -85px !important; */
48
+ padding: 8px 0px !important;
49
+ text-align: left !important;
50
+ border-top: 1px solid #e5e5e5 !important;
51
+ }
52
+
53
+
54
+ .blouse_box_content .blouse_style {
55
+ width: 100% !important;
56
+ float: left !important;
57
+ /* margin-bottom: 30px !important; */
58
+ margin-bottom: -56px !important;
59
+ border-top: 1px solid #b2b2b2 !important;
60
+ height: 331px !important;
61
+ overflow-y: hidden !important;
62
+ }
63
+
64
+ .blouse_main .review-confirm_infomation .review_measurements_right {
65
+ width: auto !important;
66
+
67
+ }
68
+
69
+ .blouse_main .review-confirm_infomation .review_measurements_left {
70
+ /* width: 43% !important; */
71
+ float: left !important;
72
+ font: normal 13px 'ProximaNovaBold' !important;
73
+ margin-top: -6px !important;
74
+ color: #262626 !important;
75
+ }
76
+
77
+ .blouse_main .review-confirm .pricemain {
78
+ width: 100% !important;
79
+ float: right !important;
80
+ max-width: auto !important;
81
+ }
82
+
83
+ .blouse_main .review-confirm .save-cancel-box .centerdiv {
84
+ padding-left: 0px !important;
85
+ width: 127px !important;
86
+ text-align: center !important;
87
+ float: left !important;
88
+ margin-top: 12px !important;
89
+ }
90
+
91
+ .measurements_left-part .detail_row label {
92
+ /* width: 88px !important; */
93
+ float: left !important;
94
+ color: #262626 !important;
95
+ font-weight: bold !important;
96
+ font-size: 13px !important;
97
+ display: inline-block !important;
98
+ margin-top: 9px !important;
99
+ }
100
+
101
+ .measurements_left-part .detail_row span
102
+ {
103
+ float: left !important;
104
+ margin-left: 0px !important;
105
+ color: #262626 !important;
106
+ font-family: 'ProximaNovaBold' !important;
107
+ font-size: 13px !important;
108
+ display: inline-block !important;
109
+ margin-top: 0px !important;
110
+ }
111
+
112
+ .measurements_main {
113
+ height: 100% !important;
114
+ border: 1px solid #808080 !important;
115
+ border-radius: 5px !important;
116
+ webkit-border-radius: 5px !important;
117
+ moz-border-radius: 5px !important;
118
+ khtml-border-radius: 5px !important;
119
+ margin-top: 10px !important;
120
+ padding: 0px !important;
121
+ width: 100% !important;
122
+ float: left !important;
123
+ height: 238px !important;
124
+ overflow: scroll !important;
125
+ }
126
+
127
+ .blouse_main .review-confirm {
128
+ width: 100% !important;
129
+ float: left !important;
130
+ /* margin-top: 40px !important; */
131
+ height: 330px !important;
132
+ }
133
+
134
+ .blouse-added-row {
135
+ float: left !important;
136
+ margin-top: 173px !important;
137
+ position: absolute !important;
138
+ margin-left: 151px !important;
139
+ margin-bottom: 30px !important;
140
+ background-color: white !important;
141
+ padding-left: 0px !important
142
+ }
143
+
144
+ .blouse-added-image img {
145
+ height: 62px !important;
146
+ width: auto !important;
147
+ margin-left: 14px !important;
148
+ }
149
+
150
+ }
151
+
152
+
153
+
154
+ #stich-blouse-id > input {vertical-align:-2px;}
155
+ #satyapaul_gallery_prev{left:0% !important; position:absolute !important; top:0px !important; z-index:10 !important; width:100%; text-align: center; background:url(../images/arrow-bg1.png) left top repeat; border-bottom:1px solid #cccc;}
156
+ #satyapaul_gallery_prev img{display:inline-block;}
157
+ #satyapaul_gallery_next{left:0% !important; position:absolute; z-index:10 !important; top:auto !important; bottom:0; width:100%; text-align: center; border-top:1px solid #cccc; background:url(../images/arrow-bg1.png) left top repeat;}
158
+ #satyapaul_gallery_next img{display:inline-block;}
159
+ #span_prev{background:#cfcfcf; float:left; height:25px; width:100%;}
160
+ #span_next{background:#cfcfcf; float:left; height:25px; width:100%;}
161
+ .blouse-added-row{float:left; /*border-top:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7; padding-top:177px;*/ margin-top: -55px;position:absolute; display:none;padding-left: 108px;}
162
+ .blouse-added-image{width:auto; float:left;}
163
+ .blouse-added-image img{height:62px; width:auto; margin-left: 159px;}
164
+ .blouse-added-tick{width:auto; float:left; padding-top:7px; margin-right:10px;}
165
+ .blouse-added-information{width:auto; float:left; padding-top:5px;}
166
+ .blouse-added-information h3{color:#424242; font: 12px 'ProximaNovaSemibold'; text-transform:uppercase; margin-bottom:5px;}
167
+ .blouse-added-information h4{color:#424242; font: 12px "ProximaNovaLight"; /* margin-bottom: 5px; */; text-transform:none;}
168
+ .blouse-added-information a{color:#0B5BAD; font: 12px 'ProximaNovaRegular'; text-decoration:underline;}
169
+ .blouse-added-information a:hover{text-decoration:none;}
170
+ .product-view .add-to-cart{margin-top:50px;}
171
+ .product-view .add-to-cart.add-margin{margin-top:59px; float:left;}
172
+ .soldoutdiv {background: url("../images/sold.png") repeat scroll 0 0 transparent; display:block; float:left; height:100px; position:absolute; /* right: 129px; */ left:0px; top:0; width:100px;z-index:98;}
173
+ /*****product page part 1 end*******/
174
+ /*************product blouse start***********************/
175
+ /*************chose style start***********************/
176
+ .pop_head-full.headbg{background:url("../images/header-borderbg.jpg") center bottom repeat-x /*#F5F5F5*/;}
177
+ .pop_head-full { background: RGBA(233, 233, 233, 0.25); width:100%; float:left;}
178
+ #bk-overlay.bg-color{background:#F5F5F5 !important; opacity:1;}
179
+ .pop_head-full .popup_main {margin-top:0px; background:none; box-shadow:0px 0px 0px;}
180
+ .blouse_main{width:100%; max-width:1152px; float:left; height:500px; overflow-y:scroll; box-sizing:border-box; padding:0px 15px 0px 0px;}
181
+ .blouse_part_heading{width:100%;float:left; color:#D0145A; font-family:'BauerBodoniBT-Roman'; font-size:18px; position:relative; padding:15px 0px 40px 0px;}
182
+ .blouse_part_heading span.color{color:#262626; font: normal 18px 'ProximaNovaLight';}
183
+ .blouse_part_heading a {position:absolute; right:0px; color:#515151; font: normal 12px 'ProximaNovaLight'; width:75px; background:#fff; padding:5px 5px 5px 10px;}
184
+ .blouse_part_heading a span.close{color:#262626; font: normal 12px 'ProximaNovaRegular'; float:left; margin-right:18px;}
185
+ .blouse_part_heading a img{float:right;}
186
+ .blouse_box_row{width:100%; float:left;}
187
+ .blouse_box_heading{font-family:ProximaNovaRegular'ProximaNovaRegular'; font-size:13px; color:#323232; border-top:1px solid #b2b2b2; padding:15px 0px; cursor:pointer;}
188
+ .blouse_box_heading.blouse_heading-step1.completed{border-top:0px;}
189
+ .blouse_box_heading.blouse_heading-step3{border-bottom:1px solid #b2b2b2;}
190
+ .blouse_main .completed{background:url(../images/right-tick.svg) right center no-repeat;}
191
+ .blouse_box_heading.active{color:#C60048;}
192
+ .blouse_box_heading.hover{color:#C60048;}
193
+ .blouse_box_content{width:100%; float:left; font-family:'ProximaNovaRegular'; font-size:13px; color:#323232; padding:0px;}
194
+
195
+ .blouse_box_content.blouse_content-step3{margin-top:-1px; margin-bottom:40px;}
196
+ .blouse_box_content .blouse_style{width:100%; float:left; margin-bottom:30px; border-top:1px solid #b2b2b2; height:331px; overflow-y:hidden;}
197
+ .blouse_box_content .blouse_style.allproduct{overflow-y:auto; height:auto;}
198
+ .blouse_box_content .blouse_style_box{width:16%; float:left; margin-top:30px; margin-right:.6%}
199
+ .blouse_box_content .blouse_style_box img{width:100%;}
200
+ .blouse_box_content .blouse_style_box_title{width:100%; float:left; margin-top:15px;}
201
+ .blouse_box_content .blouse_style_box_title span{color:#262626; font: normal 13px 'ProximaNovaRegular';}
202
+ .blouse_box_content .blouse_style_box_title input{ margin-right:5px; margin-top:-1px; vertical-align:middle;}
203
+ .blouse_box_content .content_botom_link{width:100%; float:left; padding:22px 0px; text-align:right; border-top:1px solid #e5e5e5;}
204
+ .blouse_box_content .content_botom_link a.seemore{color:#262626; font-family:'ProximaNovaRegular'; font-size:13px; text-decoration:underline;}
205
+ .blouse_box_content .content_botom_link a.cancel{font-family:'ProximaNovaBold'; font-size:13px; color:#f92d2f; margin:0px 10px; background:#fff; padding:5px 25px;}
206
+ .blouse_box_content .content_botom_link a.save-cont{font-family:'ProximaNovaBold'; font-size:13px; color:#3cb676; background:#fff; padding:5px 25px;}
207
+ /*************chose style end***********************/
208
+ /***********measurements start step 2******************/
209
+ .measurements_main{border:1px solid #808080; border-radius:5px; webkit-border-radius:5px; moz-border-radius:5px; khtml-border-radius:5px; margin-top:10px; padding:30px; width:100%; float:left;}
210
+ .measurements_left-part{width:45%; float:left;}
211
+ .measurements_left-part .custome_standard{width:100%; float:left; margin-bottom:22px;}
212
+ .measurements_left-part .custome_standard label{color:#D0145A; font-family:'BauerBodoniBT-Roman'; font-size:14px; padding-left:5px; font-weight:normal;}
213
+ .measurements_left-part .custome_standard input{vertical-align:middle; margin-top:-3px;}
214
+ .measurements_left-part .custome_standard input.roundmargin{margin-left:20px;}
215
+ .measurements_left-part .detail { margin-top:22px;}
216
+ .measurements_left-part .detail_row label{width:158px; float:left; color:#262626;font-weight: bold; font-size:13px; display:inline-block; margin-top:9px;}
217
+ .measurements_left-part .detail_row input{width:53px; border:1px solid #b2b2b2; border-radius:3px; moz-border-radius:3px; webkit-border-radius:3px; khtml-border-radius:3px; float:left; color:#262626; font-family:'ProximaNovaBold'; font-size:13px; text-align:center;}
218
+ .measurements_left-part .detail_row span{float:left; margin-left:25px; color:#262626; font-family:'ProximaNovaBold'; font-size:13px; display:inline-block; margin-top:9px;}
219
+ .measurements_left-part .detail{width:100%; float:left; font-weight: bold;}
220
+ .measurements_left-part .detail_row{width:100%; float:left; margin-bottom:20px;}
221
+ .measurements_left-part .show_measurement{color:#00A99D; font-family:'ProximaNovaRegular'; font-size:13px; display:inline-block; margin-top:15px; text-decoration:underlinel}
222
+ .measurements_left-part .show_measurement:hover{text-decoration:none;}
223
+ .measurements_right-part{width:auto; float:left;}
224
+ .blouse_content-step2 .content_botom_link{border-top:0px;}
225
+ .measurement_size{width:100%; float:left;}
226
+ /*.measurement_size span {width:36px; height:20px; float:left; line-height:18px; background-color:#ebebeb; border:1px solid #ebebeb; color:#666666; font-family:'ProximaNovaBold'; font-size:13px; margin-right:10px; text-align:center; cursor:pointer;}*/
227
+ .measurement_size span { background-color: #ebebeb; border: 1px solid #ebebeb; color: #666666; cursor: pointer; float: left; font-family: "ProximaNovaBold"; font-size: 13px; height: auto; line-height: 15px; margin-right: 10px; padding:8px 5px; text-align: center; width:36px;}
228
+ .measurement_size span:hover{font-family:'ProximaNovaBold'; font-size:13px; background-color:#fff; border:1px solid #D0145A; color:#D0145A;}
229
+ .measurement_size span.current{font-family:'ProximaNovaBold'; font-size:13px; background-color:#fff; border:1px solid #D0145A; color:#D0145A;}
230
+ /***********measurements end step2******************/
231
+
232
+ /****Review and Confirm step3 start*****/
233
+ .border-none{border:0px;}
234
+ .blouse_main .review-confirm{width:100%; float:left; margin-top:40px;}
235
+ .blouse_main .review-confirm_infomation{width:58%; float:left;}
236
+ .blouse_main .review-design-name{width:100%; float:left; padding-bottom:15px; border-bottom:1px solid #e5e5e5; margin-bottom:20px;}
237
+ .blouse_main .design-name-left {width:43%; float:left; margin-top:9px; font-family:'ProximaNovaBold';}
238
+ .blouse_main .name-value{width:57%; float:left; font: normal 13px 'ProximaNovaLight';}
239
+ .blouse_main .name-value input#customer_design-name{width:100%; max-width:372px; background:#fff; border:1px solid #e9e9e9; border-radius:3px; khtml-border-radius:3px; webkit-border-radius:3px; moz-border-radius:3px; height:31px; color:#989898; font-family:'ProximaNovaRegular'; font-size:12px; box-sizing:border-box;padding-left:15px; padding-right:15px;}
240
+ .blouse_main .review-confirm_infomation .review_blouse{width:100%; float:left; padding-bottom:20px; border-bottom:1px solid #e5e5e5; margin-bottom:10px;}
241
+ .blouse_main .review-confirm_infomation .review_blouse_left{width:43%; float:left; margin-top:8px; font-family:'ProximaNovaBold';}
242
+ .blouse_main .review-confirm_infomation .review_blouse_right{width:57%; float:left; font: normal 13px 'ProximaNovaLight';}
243
+ .blouse_main .review-confirm_infomation .review_blouse_right span{float:left; margin-top:25px; margin-right:35px; display:inline-block; color:#262626; font: normal 13px 'ProximaNovaLight';}
244
+ .blouse_main .review-confirm_infomation .review_measurements{width:100%; float:left;}
245
+ .blouse_main .review-confirm_infomation .review_measurements_left{width:43%; float:left; font: normal 13px 'ProximaNovaBold'; margin-top:10px; color:#262626;}
246
+ .blouse_main .review-confirm_infomation .review_measurements_right{width:57%; float:left; font: normal 13px 'ProximaNovaLight';}
247
+ .blouse_main .review-confirm_infomation .review_measurements_right .measure_review_row {width:100%; float:left; padding:10px 0px; border-bottom:1px solid #e5e5e5; color:#262626;}
248
+ .blouse_main .review-confirm_infomation .review_measurements_right .measure_review_row.border-none{border:0px;}
249
+ .blouse_main .review-confirm_infomation .review_measurements_right .measure_review_row .measure_review_left-box{width:160px; float:left; padding:0px 0px 0px 3px; font: normal 13px 'ProximaNovaLight'; color:#262626;}
250
+ .blouse_main .review-confirm_infomation .review_measurements_right .measure_review_row .measure_review_right-box{width: auto; float:left; font: normal 13px 'ProximaNovaLight'; color:#262626;}
251
+ .blouse_main .review-confirm_infomation .review_measurements_left .measure_review_row{width:100%; float:left;}
252
+ .blouse_main .review-confirm_infomation .review_measurements_left .measure_review_left-box{width:100%; float:left;}
253
+ .blouse_main .review-confirm_infomation .review_measurements_left .measure_review_right-box{width:100%; float:left;}
254
+ .blouse_main .review-confirm_infomation .review_instructions{width:100%; float:left; position:relative; border-bottom: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5; margin:15px 0 5px 0; padding: 15px 0; position: relative; cursor:pointer;}
255
+ .blouse_main .review-confirm_infomation .review_instructions .plus{position:absolute; right:0px; top:10px;}
256
+
257
+ .instruction-details{width:100%; float:left; display:none; background:#fff; box-sizing:border-box; padding:0px;}
258
+ .instruction-details textarea{width:100%; max-width:100%; border:0px; padding:15px;}
259
+ .review_instructions span.plus{background:url(../images/plusn.png) left top no-repeat; width:20px; height:20px; display:inline-block;}
260
+ .review_instructions span.plus.minus{background:url(../images/minusn.png) left top no-repeat; width:20px; height:20px; display:inline-block;}
261
+ .instruction-details p {font:normal 13px 'ProximaNovaLight'; color:#515151;}
262
+ .instruction-details.inst-display-block{display:block;}
263
+ .instruction-details .text-description{width:100%; max-width:100%; float:left; margin-bottom:15px; border:1px solid #e9e9e9;}
264
+ .instruction-details button{min-width:120px;}
265
+
266
+ .blouse_main .review-confirm .pricemain{width:100%; float:right; max-width:32%;}
267
+ .blouse_main .review-confirm .price-productinfo{width:100%; float:right; border:1px solid #e5e5e5; padding:2px; background:#fff;}
268
+ .blouse_main .review-confirm .price-productinfo p.amount{color:#262626; font-family:'ProximaNovaRegular'; font-size:18px; padding:25px 0px 25px 20px; border-bottom:1px solid #e5e5e5; font-style:normal; margin:0px;}
269
+ .blouse_main .review-confirm .price-productinfo p.pro-detail{color:#868686; font-family:'ProximaNovaRegular'; font-size:12px; padding:25px 10px 25px 20px; line-height:14px; margin:0px;}
270
+ .blouse_main .review-confirm .save-cancel-box{width:100%; float:right;}
271
+ .blouse_main .review-confirm .save-cancel-box .centerdiv{padding-left:0px; width:217px; text-align:center; float:left; margin-top:22px;}
272
+ .centerdiv p {background:#fff; display:block; margin-bottom:10px; padding:10px 0; width:100%;}
273
+ .blouse_main .review-confirm .save-cancel-box .centerdiv p.save-continure a{color:#4bbb81; font-family:'ProximaNovaBold'; font-size:13px;}
274
+ .blouse_main .review-confirm .save-cancel-box .centerdiv p.cancel a{color:#fa5f63; font-family:'ProximaNovaBold'; font-size:13px;}
275
+ .review_blouse_right img{width:21%; background-color:#fff;}
276
+ /****Review and Confirm step3 end*****/
277
+ /****part4 start*****/
278
+ .scale_row1{height:7px; position:absolute; z-index:1; top:1px; width:70px; margin:30px 0px 0px 10px; cursor:pointer;}
279
+ .scale_row1 .informationbox{display:none;}
280
+ .scale_row1:hover .informationbox {left:108px; position:absolute; width:264px; display:block; width:541px; height:auto; width:348px; box-sizing:border-box; padding-left:88px; padding-top:25px; padding-right:25px; background: url(../images/box-text.png) left top no-repeat; height:178px; top:-36px; left:70px;}
281
+ .scale_row1:hover .informationbox h4{color:#F7A02E; font-family:'ProximaNovaBold'; font-size:11px;}
282
+ .scale_row1:hover .informationbox h3{color:#262626; font-family:'ProximaNovaLight'; font-size:18px;}
283
+ .scale_row1:hover .informationbox p{color:#262626; font-family:'ProximaNovaLight'; font-size:13px; line-height:18px;}
284
+ .scale_row1 .scal-left{display:block; margin-left:7px;}
285
+ .scale_row1:hover .scal-left{height:auto; z-index:2; display:block; margin-left:7px;}
286
+ .measurements_right-part{position:relative;}
287
+
288
+ .scale_row2{height:7px; position:absolute; z-index:1; top:32px; width:70px; margin:30px 0px 0px 10px; cursor:pointer;}
289
+ .scale_row2 .informationbox{display:none;}
290
+ .scale_row2:hover .informationbox {left:108px; position:absolute; width:264px; display:block; width:541px; height:auto; width:348px; box-sizing:border-box; padding-left:88px; padding-top:25px; padding-right:25px; background: url(../images/box-text.png) left top no-repeat; height:178px; top:-36px; left:70px;}
291
+ .scale_row2:hover .informationbox h4{color:#F7A02E; font-family:'ProximaNovaBold'; font-size:11px;}
292
+ .scale_row2:hover .informationbox h3{color:#262626; font-family:'ProximaNovaLight'; font-size:18px;}
293
+ .scale_row2:hover .informationbox p{color:#262626; font-family:'ProximaNovaLight'; font-size:13px; line-height:18px;}
294
+ .scale_row2 .scal-left{display:block; margin-left:7px;}
295
+ .scale_row2:hover .scal-left{height:auto; z-index:2; display:block; margin-left:7px;}
296
+ .blouse_content-step2{display:none;}
297
+ .blouse_content-step3{display:none;}
298
+
299
+ .scale_row3{height:7px; position:absolute; z-index:1; top:74px; width:70px; margin:30px 0px 0px 10px; cursor:pointer;}
300
+ .scale_row3 .informationbox{display:none;}
301
+ .scale_row3:hover .informationbox {left:108px; position:absolute; width:264px; display:block; width:541px; height:auto; width:348px; box-sizing:border-box; padding-left:88px; padding-top:25px; padding-right:25px; background: url(../images/box-text.png) left top no-repeat; height:178px; top:-36px; left:70px;}
302
+ .scale_row3:hover .informationbox h4{color:#F7A02E; font-family:'ProximaNovaBold'; font-size:11px;}
303
+ .scale_row3:hover .informationbox h3{color:#262626; font-family:'ProximaNovaLight'; font-size:18px;}
304
+ .scale_row3:hover .informationbox p{color:#262626; font-family:'ProximaNovaLight'; font-size:13px; line-height:18px;}
305
+ .scale_row3 .scal-left{display:block; margin-left:7px;}
306
+ .scale_row3:hover .scal-left{height:auto; z-index:2; display:block; margin-left:7px;}
307
+
308
+
309
+ .scale_row4{height:7px; position:absolute; z-index:1; top:115px; width:70px; margin:30px 0px 0px 10px; cursor:pointer;}
310
+ .scale_row4 .informationbox{display:none;}
311
+ .scale_row4:hover .informationbox {left:108px; position:absolute; width:264px; display:block; width:541px; height:auto; width:348px; box-sizing:border-box; padding-left:88px; padding-top:25px; padding-right:25px; background: url(../images/box-text.png) left top no-repeat; height:178px; top:-36px; left:70px;}
312
+ .scale_row4:hover .informationbox h4{color:#F7A02E; font-family:'ProximaNovaBold'; font-size:11px;}
313
+ .scale_row4:hover .informationbox h3{color:#262626; font-family:'ProximaNovaLight'; font-size:18px;}
314
+ .scale_row4:hover .informationbox p{color:#262626; font-family:'ProximaNovaLight'; font-size:13px; line-height:18px;}
315
+ .scale_row4 .scal-left{display:block; margin-left:7px;}
316
+ .scale_row4:hover .scal-left{height:auto; z-index:2; display:block; margin-left:7px;}
317
+
318
+
319
+
320
+ .scale_row5{height:7px; position:absolute; z-index:1; top:160px; width:70px; margin:30px 0px 0px 10px; cursor:pointer;}
321
+ .scale_row5 .informationbox{display:none;}
322
+ .scale_row5:hover .informationbox {left:108px; position:absolute; width:264px; display:block; width:541px; height:auto; width:348px; box-sizing:border-box; padding-left:88px; padding-top:25px; padding-right:25px; background: url(../images/box-text.png) left top no-repeat; height:178px; top:-36px; left:70px;}
323
+ .scale_row5:hover .informationbox h4{color:#F7A02E; font-family:'ProximaNovaBold'; font-size:11px;}
324
+ .scale_row5:hover .informationbox h3{color:#262626; font-family:'ProximaNovaLight'; font-size:18px;}
325
+ .scale_row5:hover .informationbox p{color:#262626; font-family:'ProximaNovaLight'; font-size:13px; line-height:18px;}
326
+ .scale_row5 .scal-left{display:block; margin-left:7px;}
327
+ .scale_row5:hover .scal-left{height:auto; z-index:2; display:block; margin-left:7px;}
328
+
329
+
330
+ .scale_row6{height:7px; position:absolute; z-index:1; top:214px; width:70px; margin:30px 0px 0px 10px; cursor:pointer;}
331
+ .scale_row6 .informationbox{display:none;}
332
+ .scale_row6:hover .informationbox {left:108px; position:absolute; width:264px; display:block; width:541px; height:auto; width:348px; box-sizing:border-box; padding-left:88px; padding-top:25px; padding-right:25px; background: url(../images/box-text.png) left top no-repeat; height:178px; top:-36px; left:70px;}
333
+ .scale_row6:hover .informationbox h4{color:#F7A02E; font-family:'ProximaNovaBold'; font-size:11px;}
334
+ .scale_row6:hover .informationbox h3{color:#262626; font-family:'ProximaNovaLight'; font-size:18px;}
335
+ .scale_row6:hover .informationbox p{color:#262626; font-family:'ProximaNovaLight'; font-size:13px; line-height:18px;}
336
+ .scale_row6 .scal-left{display:block; margin-left:7px;}
337
+ .scale_row6:hover .scal-left{height:auto; z-index:2; display:block; margin-left:7px;}
338
+
339
+
340
+ .popup_center.blousecenter{max-width:1152px; width:90%;margin:0px auto;}
341
+ .blouse-div{width:100%; float:left;}
342
+ .popup_center.blousecenter .popup_main{padding:2%; width:100%;}
343
+ .switch_blows{cursor:pointer; padding-top: 10px;}
344
+ .popup_center.blousecenter .popup_main .close{width:auto; float:left; right:11px; top:6px; left:6px;}
345
+ .popup_center.blousecenter .popup_main .close span.closetext{float:left; color:#262626; font-family:'ProximaNovaRegular';}
346
+ .popup_center.blousecenter .popup_main .close img{float:right; display:inline-block;}
347
+ /****part4 end*****/
348
+
349
+
350
+ /*************product blouse end***********************/
351
+ /********feedback form page start*********************/
352
+
353
+ .blosue-popn{width:100%; float:left;}
354
+ .blosue-headern{width:100%; float:left;}
355
+ .blosue-contentn{width:100%; float:left; padding:0px 15px; box-sizing:border-box;}
356
+ .blouse-image-part{width:20%; float:left; margin-right:15px;}
357
+ .blouse-textpart{width:50%; float:left}
358
+ .blous-rown{width:100%; float:left; border-bottom:1px solid #efefef; padding:5px 0px;}
359
+ .blous-colu-left{width:150px; float:left; margin-right:10px;}
360
+ .firsttext{font-weight:bold;}
361
+ .scrol-top{background:url("../images/icon_top1.png") no-repeat scroll left top; bottom:50px; display:none; height:40px; opacity:0.3; position:fixed; right:50px; text-indent:-9999px; width:40px; z-index: 9999999;}
362
+ /*****popup css start ************/
363
+ #popup_signin {display:none;}
364
+ #register{display:none;}
365
+ .popup_full {width:100%;float:left; position:fixed; z-index:999999;display:none;height:100%;top:0px;left:0px; background-color: white;}
366
+ .popup_full.pos_absulte{position:fixed ;}/*absolute*/
367
+ .popup_center {max-width:700px; width:90%;margin:0px auto;}
368
+ .popup_main {width:100%;float:left;position:relative;background-color:#fff;box-shadow:2px 2px 2px #ccc; margin-top:50px;}
369
+ .popup_main .close {position:absolute;right:3px;top:3px;cursor:pointer;}
370
+ #bk-overlay {width:100%; display:none;height:100%; background:url(../images/bg-overlay.png) left top repeat; position:fixed; z-index:1001;float:left; left:0px; top:0px;}
371
+ .popup-container{display:none; float:left; height:100%; left:0; position:fixed; top:7%; width:100%; z-index:1003;}
372
+ .popup_centerhome {margin: 0 auto; max-width:686px; width: 90%;}
373
+ .popup_mainhome {box-shadow:1px 1px 1px #DFDFDF; float: left; margin-top:30%; position: relative; width: 100%; background: url(../images/pop_up_hompagebg.png) center -2px no-repeat; text-align:center; padding-bottom:32px;}
374
+ .popup_mainhome #newsletter-validate-detail2 {position:relative;}
375
+ .popup_mainhome #advice-validate-email-newsletter2{bottom:0; height:15px; left:0 !important; margin-left: 20px; opacity:1 !important; position: absolute; margin-left:20px !important; top:35px !important;}
376
+ .block.block-subscribe #advice-validate-email-newsletter{opacity:1 !important;}
377
+ .popup-container .popup-close{float: right; font-size: 17px; margin-right:6px; margin-top:9px;}
378
+ .popup-container .popup-title{font-size:20px; text-align: center; padding:24px 0px 18px 0px; color:#b156ac; font: normal 21px 'CallunaRegular';}
379
+ .popup-container p{text-align: center; font:14px 'PrestigeEliteStdBold'; color:#808080;}
380
+ .popup-container form{max-width:72%; margin:20px auto 0px auto; width:94%; padding:0px 3%; clear:both;}
381
+ .popup-container form .input-text{height:36px; font: normal 14px 'PrestigeEliteStdBold'; color:#919191; float:left; width:71%;}
382
+ .popup-container form .button{margin-top:0px; float:right; height:35px;}
383
+ .cart-mobile-msg{ text-align: center; background: #CF8FC8; color:#fff; padding:5px 0;}
384
+ .product-view .product-shop{margin-bottom:2px;}
385
+ #lastname.reg-pwd-new{width:0px; height:0px; position:absolute; border:0px; visibility:hidden;}
386
+ .add-to-cart-wrapper {padding-left:0px;}
387
+ .size_guide {display: none;bottom:22px;left:205px;position: absolute;text-transform:uppercase;font: normal 13px 'PrestigeEliteStdBold';color:#ed155a;cursor:pointer; text-decoration:underline;}
388
+ .size_guide:hover{text-decoration:none;}
389
+
390
+
391
+ .popup-container{display:none; float:left; height:100%; left:0; position:fixed; top:7%; width:100%; z-index:9999;}
392
+ .popup_centerhome {margin: 0 auto; max-width:686px; width: 90%;}
393
+ .popup_mainhome {box-shadow:1px 1px 1px #DFDFDF; float: left; margin-top:30%; position: relative; width: 100%; background:#f5f5f5; text-align:center; padding-bottom:32px;}
394
+ .popup_mainhome #newsletter-validate-detail2 {position:relative;}
395
+ .popup_mainhome #advice-validate-email-newsletter2{bottom:0; height:15px; left:0 !important; margin-left: 20px; opacity:1 !important; position: absolute; margin-left:20px !important; top:35px !important;}
396
+ .block.block-subscribe #advice-validate-email-newsletter{opacity:1 !important;}
397
+ .popup-container .popup-close{float: right; font-size: 17px; margin-right:6px; margin-top:0px;}
398
+ .popup-container .popup-title{font-size:20px; text-align: center; padding:24px 0px 18px 0px; color:#D0145A; font: normal 21px 'BauerBodoniBT-Roman'; text-transform:uppercase; text-transform:uppercase;}
399
+ .popup-container p{text-align: center; font:14px/21px 'ProximaNovaRegular'; color:#6D6D6D;}
400
+ .popup-container form{max-width:75%; margin:45px auto 0px auto; width:94%; padding:0px 3%; clear:both;}
401
+ .popup-container form .input-text{height:36px; font:normal 13px 'ProximaNovaRegular'; color:#7F7F7F; float:left; width:75%;}
402
+ .popup-container form .button{margin-top:0px; float:right; height:35px; margin-left:10px; width:105px; border-radius:3px; khtml-border-radius:3px; webkit-border-radius:3px; moz-border-radius:3px;}
403
+ .popup_mainhome .popup-close img{ width:15px;}
404
+
405
+ /*churidar kurta popup start*/
406
+ #bk-overly {background-color:#000;height:100%;width:100%;position:fixed;left:0;opacity:0.5; display:none; top:0;}
407
+ /* popup code start for view measurement at cart page*/
408
+ .blouseData-view-measure .main-popup { float: left; left: 0; position: fixed; top: 0;width: 100%;z-index: 9999;}
409
+ .blouseData-view-measure .popup_center { height: 700px; margin: 0 auto; max-width: 400px; width: 100%;}
410
+ .blouseData-view-measure .popup_main { background-color: #fff; box-shadow: none; float: left; margin-top: 50px; position: relative; width: 100%;}
411
+ .blouseData-view-measure .v-m_popup { background-color: #fff; box-shadow: none; float: left; height: auto; margin: 0; max-width: 700px;padding: 30px 0; width: 100%;}
412
+ .blouseData-view-measure .blosue-popn { float: left; width: 100%;}
413
+ .blouseData-view-measure .blosue-headern { float: left; width: 100%;}
414
+ .blouseData-view-measure .blosue-contentn { box-sizing: border-box; float: left; padding: 0 20px; width: 100%;}
415
+ .blouseData-view-measure .blouse-textpart { float: left; width: 100%; overflow-y:scroll; height:440px;}
416
+ .blouseData-view-measure .blous-rown { border-bottom: 1px solid #efefef; float: left; padding: 10px 0; width: 100%; font:13px "ProximaNovaLight";}
417
+ .blouseData-view-measure .blous-colu-left { float: left; margin-right: 10px; width: 150px;}
418
+ .blouseData-view-measure .close-popup {background: #fff none repeat scroll 0 0; border-radius: 50%; color: #868686; font-size: 17px; padding: 3px 6px; position: absolute; right: -7px; top: -12px;}
419
+ .blouseData-view-measure .blosue-contentn h3 { color: #dc2f6d; font-size: 25px; margin-bottom: 15px; text-align: center;}
420
+ .current-step{color:#DA2F6D; font-size:13px;}
421
+ /* popup code end for view measurement at cart page*/
422
+ /*view measurement popup start here*/
423
+ #bk-overlay-view-measure {background-color:#000;height:100%;width:100%;position:fixed;left:0;opacity:0.5; display:none; z-index:1; top:0;}
424
+ .popup-full-view-measure {float:left;width:100%;position:relative;z-index:100000; top:3%; left:0px;}
425
+ .popup-center-view-measure {max-width:400px;margin:25px auto;height:700px;}
426
+ .popup-main-view-measure {float:left;width:100%;position:relative;}
427
+ .close-bttn-view-measure {position:relative;}
428
+ .close-bttn-view-measure span {background: #fff none repeat scroll 0 0;border-radius: 14px;box-sizing: border-box;font-size: 17px;height: 24px;padding: 2px 3px 3px 6px;position: absolute;right: -7px;top: -9px;width: 24px;cursor:pointer; color:#868686;}
429
+ .popup-container-view-measure {float: left; background:#fff; padding:20px; width:100%;}
430
+ h1.popup-heading {font-size: 25px; margin-bottom: 30px; text-align: center;}
431
+ .main-class-view-measure{display:none; position:fixed; left:0; top:0; z-index:99; width:100%;}
432
+ .main-class-view-measure .blouse_main .review_measurements_right { width: 100%;}
433
+ .main-class-view-measure .review-confirm_infomation { width: 100%;}
434
+ .cart-table .blouse .product-cart-image img{ border:1px solid #ededed;}
435
+ /*view measurement popup start here*/
436
+
437
+ /*************product blouse start***********************/
438
+ /***********measurements start******************/
439
+ .measurements_left-part{width:53%;}
440
+ /***********measurements end******************/
441
+ /*************product blouse end***********************/
442
+
443
+
444
+
445
+
skin/frontend/base/default/blouse/images/blouse/classic-round.svg ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="180px" height="180px" viewBox="0 0 180 180" enable-background="new 0 0 180 180" xml:space="preserve">
6
+ <g>
7
+ <defs>
8
+ <rect id="SVGID_1_" width="180" height="180"/>
9
+ </defs>
10
+ <clipPath id="SVGID_2_">
11
+ <use xlink:href="#SVGID_1_" overflow="visible"/>
12
+ </clipPath>
13
+ <g clip-path="url(#SVGID_2_)">
14
+ <g>
15
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M123.209,199.211
16
+ c-5.484,5.839-18.327,9.939-33.293,9.939c-14.368,0-26.776-3.777-32.599-9.246"/>
17
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M50.715,142.806
18
+ c1.787,8.111,11.42,27.532,11.42,37.169c0,0,0.211,9.814-4.555,21.395c-1.599,3.886-18.857,29.079-13.187,70.881
19
+ c0.951,7.02,7.564,38.098,8.871,61.705c2.177,39.348,0.792,100.761-22.071,148.494c0,0-5.619,8.655,1.175,14.423l6.358,6.122
20
+ c0,0-0.084,3.65,2.288,5.42c2.374,1.771,23.486,11.918,23.486,11.918v3.168h32.52h19.48v-3.168c0,0,21.333-10.147,23.707-11.918
21
+ c2.374-1.77,2.443-5.42,2.443-5.42l6.429-6.122c6.794-5.768,0.758-14.372,0.758-14.372l-0.005-0.051
22
+ c-22.861-47.733-22.063-148.494-22.063-148.494c1.306-23.607,7.921-54.686,8.875-61.705c5.668-41.802-11.589-66.995-13.19-70.881
23
+ "/>
24
+ </g>
25
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M68.831,37.816
26
+ c-0.569,7.096,1.942,19.075,16.158,29.825c2.073,1.565,8.645,1.565,10.715,0c14.218-10.75,16.729-22.729,16.157-29.825
27
+ c0,0-0.33-4.225-1.278-6.192"/>
28
+ <path fill="none" stroke="#232323" stroke-miterlimit="10" d="M69.07,45.789l-0.891-1.251c-4.848-4.373-3.361-8.37-2.108-10.378
29
+ c0.526-0.846,2.465-1.893,3.11-2.198C82.968,25.409,81.61,19.365,81.61,19.365s10.089,11.087,31.592,12.851l0.907,0.519
30
+ c0,0,1.963-27.234-23.81-27.234h-0.401C64.126,5.5,64.5,32.763,64.5,32.763V50"/>
31
+ <line fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" x1="114.5" y1="84" x2="114.5" y2="41"/>
32
+ <line fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" x1="64.5" y1="39" x2="64.5" y2="84"/>
33
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M112.975,32.07
34
+ c1.278,1.741,2.036,3.898,2.036,6.234c0,3.534-1.733,6.658-4.39,8.552"/>
35
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M90.756,129.051l-1.256-11.43v-0.022
36
+ c-16-0.657-29.913-14.347-29.913-31.14"/>
37
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M90.754,129.051l1.253-11.43l-0.003-0.022
38
+ c16.631-0.657,29.913-14.347,29.913-31.14"/>
39
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M38.624,120.652
40
+ c0,0,3.658,29.99,4.31,35.566c1.289,11.029,2.892,28.663,1.025,35.883c-2.811,10.871-3.66,21.193-3.518,30.086
41
+ c0,0,0.066,22.772-1.687,36.373c-0.628,4.885-6.227,11.053-6.227,11.053l7.163,13.921l7.43,0.524"/>
42
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M78.5,61v12.154
43
+ c0,9.472-9.363,10.786-9.363,10.786c-16.381,3.447-25.203,9.46-29.073,25.515c-0.289,1.211-2.52,10.31-2.52,10.31l16.324,6.459"/>
44
+ <line fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" x1="59" y1="165.5" x2="123" y2="165.5"/>
45
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M59.653,195.455"/>
46
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M55.18,206.361"/>
47
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M141.566,120.652
48
+ c0,0-3.654,29.99-4.307,35.566c-1.288,11.029-2.891,28.663-1.027,35.883c2.811,10.871,3.662,21.193,3.516,30.086
49
+ c0,0-0.061,22.772,1.692,36.373c0.628,4.885,6.226,11.053,6.226,11.053l-7.163,13.921l-7.43,0.524"/>
50
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M126.331,126.125"/>
51
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M68.37,155.508
52
+ c-10.285,0-18.624-8.338-18.624-18.623c0-3.135,0.775-6.088,2.141-8.682c0.738-1.394,1.647-2.688,2.7-3.844"/>
53
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M112.844,155.508
54
+ c10.285,0,18.626-8.338,18.626-18.623c0-3.135-0.774-6.088-2.143-8.682c-0.735-1.394-1.646-2.688-2.699-3.844"/>
55
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M103.5,61v12.154
56
+ c0,9.472,8.424,10.786,8.424,10.786c16.379,3.447,24.727,9.46,28.597,25.515c0.29,1.211,2.286,10.31,2.286,10.31l-15.502,6.459"/>
57
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M56.413,203.678
58
+ c1.365-8.149,2.476-20.4,1.311-26.281c-0.45-2.262-1.007-10.834-1.007-17.584"/>
59
+ <g>
60
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M130.635,142.806
61
+ c-1.787,8.111-11.422,27.532-11.422,37.169c0,0-0.212,9.814,4.553,21.395"/>
62
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M124.936,203.678
63
+ c-1.365-8.149-2.475-20.4-1.31-26.281c0.446-2.262,1.006-10.834,1.006-17.584"/>
64
+ </g>
65
+ </g>
66
+ </g>
67
+ </svg>
skin/frontend/base/default/blouse/images/blouse/cross-blouse.svg ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="16px" height="16px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
6
+ <g>
7
+ <line fill="none" stroke="#818181" stroke-miterlimit="10" x1="0.858" y1="0.93" x2="15" y2="15.072"/>
8
+ <line fill="none" stroke="#818181" stroke-miterlimit="10" x1="14.999" y1="0.928" x2="0.856" y2="15.07"/>
9
+ </g>
10
+ </svg>
skin/frontend/base/default/blouse/images/blouse/measurements.svg ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="100px" height="420px" viewBox="0 0 100 420" enable-background="new 0 0 100 420" xml:space="preserve">
6
+ <g>
7
+ <g>
8
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M76.824,156.459
9
+ c-4.446,4.735-14.859,8.059-26.995,8.059c-11.649,0-21.712-3.063-26.433-7.497"/>
10
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M18.043,110.724
11
+ c1.449,6.577,9.26,22.324,9.26,30.138c0,0,0.172,7.958-3.691,17.347c-1.298,3.151-15.292,23.58-10.694,57.475
12
+ c0.771,5.691,6.134,30.892,7.193,50.034c1.765,31.905,0.643,81.701-17.896,120.406c0,0-4.557,7.018,0.951,11.693l5.156,4.965
13
+ c0,0-0.429,2.96,1.496,4.396c1.926,1.435,18.682,9.664,18.682,9.664v2.659h27.088H70.5v-2.659c0,0,17.741-8.229,19.666-9.664
14
+ c1.925-1.436,2.201-4.396,2.201-4.396l5.323-4.965c5.509-4.676,0.671-11.652,0.671-11.652l0.025-0.041
15
+ c-18.538-38.705-17.878-120.406-17.878-120.406c1.059-19.143,6.431-44.343,7.202-50.034c4.598-33.895-9.393-54.323-10.69-57.475"
16
+ />
17
+ </g>
18
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M32.733,25.592
19
+ c-0.462,5.754,1.574,15.469,13.102,24.185c1.68,1.269,7.009,1.269,8.688,0c11.527-8.716,13.564-18.431,13.102-24.185
20
+ c0,0-0.27-3.425-1.038-5.021"/>
21
+ <path fill="none" stroke="#232323" stroke-miterlimit="10" d="M32.566,32.321l-0.541-1.146c-3.93-3.547-2.636-6.851-1.62-8.481
22
+ c0.427-0.686,2.043-1.568,2.566-1.816c11.181-5.313,10.102-10.229,10.102-10.229s8.192,8.98,25.626,10.41l0.742,0.973
23
+ c0,0,1.598-20.531-19.301-21.531h-0.324C28.918,1.5,28.5,21.495,28.5,21.495V36"/>
24
+ <line fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" x1="68.5" y1="64" x2="68.5" y2="30"/>
25
+ <line fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" x1="28.5" y1="27" x2="28.5" y2="64"/>
26
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M68.525,20.934
27
+ c1.037,1.412,1.652,3.16,1.652,5.056c0,2.863-1.405,5.397-3.559,6.933"/>
28
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M76.824,64.397
29
+ c-4.446,18.167-14.859,30.916-26.995,30.916c-11.649,0-21.712-11.748-26.433-28.759"/>
30
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M8.24,92.759c0,0,2.965,24.319,3.493,28.84
31
+ c1.044,8.942,2.346,23.241,0.833,29.096c-2.279,8.814-2.969,17.186-2.854,24.396c0,0,0.053,18.465-1.368,29.493
32
+ c-0.511,3.959-5.049,8.962-5.049,8.962l5.808,11.287l6.023,0.425"/>
33
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M38.5,45v9.246
34
+ c0,7.68-6.557,8.746-6.557,8.746c-13.281,2.795-19.915,7.67-23.053,20.689c-0.236,0.979-1.784,8.359-1.784,8.359l12.328,5.541"/>
35
+ <line fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" x1="24" y1="129.5" x2="76" y2="129.5"/>
36
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M25.292,153.413"/>
37
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M21.664,162.256"/>
38
+ <line fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" x1="49.5" y1="129" x2="49.5" y2="96"/>
39
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M91.711,92.759
40
+ c0,0-2.965,24.319-3.492,28.84c-1.045,8.942-2.346,23.241-0.833,29.096c2.279,8.814,2.969,17.186,2.853,24.396
41
+ c0,0-0.052,18.465,1.368,29.493c0.511,3.959,5.05,8.962,5.05,8.962l-5.809,11.287l-6.023,0.425"/>
42
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M79.355,97.197"/>
43
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M32.359,121.022
44
+ c-8.34,0-15.102-6.762-15.102-15.102c0-2.541,0.629-4.936,1.736-7.037c0.598-1.133,1.336-2.181,2.189-3.119"/>
45
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M68.421,121.022
46
+ c8.34,0,15.103-6.762,15.103-15.102c0-2.541-0.629-4.936-1.736-7.037c-0.598-1.133-1.336-2.181-2.189-3.119"/>
47
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M59.5,45v9.246
48
+ c0,7.68,7.502,8.746,7.502,8.746c13.281,2.795,20.387,7.67,23.525,20.689c0.234,0.979,2.021,8.359,2.021,8.359l-13.156,5.541"/>
49
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M22.664,160.08
50
+ c1.106-6.608,2.006-16.54,1.062-21.311c-0.362-1.832-0.815-8.784-0.815-14.257"/>
51
+ <g>
52
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M82.846,110.724
53
+ c-1.449,6.577-9.26,22.324-9.26,30.138c0,0-0.172,7.958,3.691,17.347"/>
54
+ <path fill="none" stroke="#232323" stroke-linejoin="round" stroke-miterlimit="10" d="M78.225,160.08
55
+ c-1.106-6.608-2.007-16.54-1.062-21.311c0.362-1.832,0.815-8.784,0.815-14.257"/>
56
+ </g>
57
+ </g>
58
+ </svg>
skin/frontend/base/default/blouse/images/blouse/tick.png ADDED
Binary file
skin/frontend/base/default/blouse/images/blouse/x.svg ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="17px" height="17px" viewBox="0 0 17 17" enable-background="new 0 0 17 17" xml:space="preserve">
6
+ <g>
7
+ <g>
8
+ <line fill="none" stroke="#DD2F6D" stroke-miterlimit="10" x1="0.442" y1="0.617" x2="15.999" y2="16.174"/>
9
+ <line fill="none" stroke="#DD2F6D" stroke-miterlimit="10" x1="16" y1="0.617" x2="0.443" y2="16.174"/>
10
+ </g>
11
+ </g>
12
+ </svg>
skin/frontend/base/default/blouse/js/blouse.js ADDED
@@ -0,0 +1,500 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ var array_id = ['#length_hps','#above_bust','#around_bust','#shoulder','#waist','#shoulder_height','#cross_front','#cross_back','#height','#arm_hole','#neck_depth_front','#neck_depth_back','#sleeve_length','#around_arm'];
3
+ var array_step3 = ['#review-length_hps','#review-above-waist','#review-around-bust','#review-shoulder','#review-waist','#review-shoulder-id','#review-cross-front','#review-cross-back','#review-height','#review-around-arm','#review-neck-depth-front','#review-neck-depth-back','#review-sleeve-length','#review-bicep'];
4
+ var messurement_array = ['#view-1','#view-2','#view-3','#view-4','#view-5','#view-6','#view-7','#view-8','#view-9','#view-10','#view-11','#view-12','#view-13','#view-14']
5
+ var array_span = ['13 - 17 inches','32 - 46 inches','32 - 47 inches','27 - 42 inches','26 - 40 inches','14 - 18 inches','12 - 16 inches','13 - 17 inches','8 - 11 inches','14 - 22 inches','7 - 9 inches','8 - 10 inches','3 - 5 inches','11 - 18 inches'];
6
+ var array_span_cent = ['34 - 43 cm','81 - 117 cm','82 - 119 cm','70 - 107 cm','66 - 102 cm','35 - 46 cm','32 - 42 cm','34 - 44 cm','22 - 28 cm','35 - 56 cm','18 - 23 cm','22 - 26 cm','8 - 13 cm','28 - 46 cm'];
7
+ var span_id = ['#length_hps-id','#above_bust-id','#around_bust-id','#shoulder-id','#waist-id','#shoulder_height-id','#cross_front-id','#cross_back-id','#height-id','#arm_hole-id','#neck_depth_front-id','#neck_depth_back-id','#sleeve_length-id','#around_arm-id'];
8
+ //var array_error = ['#error-around-bust','#error-above_waist','#error-shoulder','#error-arm_hole','#error-around_arm'];
9
+ var xsmall_array=['14','34','35','30','29','15','13','14','9','16','8','9','3','12'];
10
+ var small_array=['15','36','37','32','30','15','14','15','9','17','8','9','4','13'];
11
+ var medium_array=['15','38','39','34','32','16','14','15','10','18','9','10','4','14'];
12
+ var large_array=['16','40','41','36','34','16','15','16','10','19','9','10','4','15'];
13
+ var extra_array=['16','42','43','38','36','17','15','16','10','20','9','10','5','16'];
14
+ var xextra_array=['17','44','45','40','38','17','16','17','10','21','9','10','5','17'];
15
+ var arrayVar = new Array();
16
+ var around_bust_val = '';
17
+ var above_waist_val = '';
18
+ var shoulder_val = '';
19
+ var arm_hole_val = '';
20
+ var around_arm_val = '';
21
+ var height_val = '';
22
+ var cm_array1 = [34,81,82,70,66,35,32,34,22,35,18,22,8,28];
23
+ var cm_array2 = [43,117,119,107,102,46,42,44,28,56,23,26,13,46];
24
+ var array1 = [13,32,32,27,26,14,12,13,8,14,7,8,3,11];
25
+ var array2 = [17,46,47,42,40,18,16,17,11,22,10,11,5,18];
26
+ var curOpenStep = [];
27
+ var current_size_in = "inches";
28
+ var check_value = 'CUSTOM SIZE';
29
+ error_msg = new Array();
30
+ error_msg = ['#error-length_hps','#error-above_bust','#error-around-bust','#error-shoulder','#error-waist','#error-shoulder_height','#error-cross_front','#error-cross_back','#error-height','#error-arm_hole','#error-neck_depth_front','#error-neck_depth_back','#error-sleeve_length','#error-around_arm'];
31
+ jQuery(document).ready(function () {
32
+ startInitial();
33
+ //save from step1 clicked
34
+ jQuery( "#save_step1" ).click(function() {
35
+ if(!jQuery("input[name=style]:checked").val()){
36
+ alert('Style not checked');
37
+ return;
38
+ }
39
+ var value = 'CUSTOM SIZE';
40
+ var blouse_type = jQuery("input[type='radio'][name='style']:checked").attr('value2');
41
+ //alert(blouse_type);
42
+ jQuery('#style-name-hidden').val(blouse_type);
43
+ showDivs(["#blouse_box_step2","#blouse_content-step2-id"]);
44
+ hideDivs(["#measurement-size-id","#blouse_box_step1"]);
45
+ jQuery("input:radio[name='measurement_size'][value='" + value + "']").prop('checked', true);
46
+ jQuery('#blouse_content-step2-id').addClass('active');
47
+ jQuery('.current-step').removeClass('current-step');
48
+ jQuery('.blouse_heading-step2').addClass('current-step');
49
+
50
+
51
+ //alert('class to be added');
52
+
53
+ add_span(span_id,array_span);
54
+ });
55
+ //cancel from step 1 clicked
56
+ jQuery( "#cancel_step1" ).click(function() {
57
+ cancelClicked(1);
58
+ });
59
+ var stander_type = 'S';
60
+ jQuery("input[name='measurement_size']").change(function(){
61
+ var blouse_type = jQuery("input[type='radio'][name='measurement_size']:checked").val();
62
+ if (blouse_type=='STANDARD SIZE') {
63
+ jQuery('#selected_standard').val('XS');
64
+ //console.log('select');
65
+ current_size_in = 'inches' ;
66
+ jQuery('.show_measurement').text()=='Show measurements in Centimeters';
67
+ for (var i = 0; i < 14; i++) {
68
+ jQuery(error_msg[i]).html('');
69
+ jQuery(array_id[i]).removeAttr("style");
70
+ //highlight_error();
71
+ //console.log("refresh error");
72
+ }
73
+ var stander_type = 'S';
74
+ var value = ['#current-xs','#current-s','#current-m','#current-l','#current-xl','#current-xxl'];
75
+ classAdd(value,array_id);
76
+ setSize(xsmall_array);
77
+ remove_span(span_id);
78
+ jQuery("#measurement-size-id").show();
79
+ check_value = 'STANDARD SIZE';
80
+ }else {
81
+ check_value = 'CUSTOM SIZE';
82
+ jQuery('#selected_standard').val('');
83
+ jQuery("#measurement-size-id").hide();
84
+ if (current_size_in=='centimeter') {
85
+ add_span(span_id,array_span_cent);
86
+ }else{
87
+ add_span(span_id,array_span);
88
+ }
89
+ readonly_remove(array_id);
90
+ }
91
+ });
92
+ var stander_type = 'XS';
93
+ jQuery('.ssize').click(function(){
94
+ stander_type = jQuery(this).text();
95
+ jQuery('#selected_standard').val(stander_type);
96
+ addCurrent(jQuery(this).text());
97
+ //console.log(stander_type);
98
+ //console.log("in click function");
99
+ })
100
+
101
+ jQuery('.blouse_heading-step1').click(function(){
102
+ if (jQuery('.blouse_box_row').hasClass('active')) {
103
+ hideDivs(curOpenStep);
104
+ showDivs(["#measurement-size-id","#blouse_box_step1"]);
105
+ jQuery('.current-step').removeClass('current-step');
106
+ jQuery(this).addClass('current-step');
107
+ }
108
+ })
109
+ jQuery('.blouse_heading-step2').click(function(){
110
+ if (jQuery('#blouse_content-step2-id').hasClass('active')) {
111
+ hideDivs(curOpenStep);
112
+ showDivs(["#blouse_box_step2","#blouse_content-step2-id"]);
113
+ jQuery('.current-step').removeClass('current-step');
114
+ jQuery(this).addClass('current-step');
115
+ }
116
+ })
117
+ jQuery('.blouse_heading-step3').click(function(){
118
+ if (jQuery('#blouse_content-step3-id').hasClass('active')) {
119
+ hideDivs(curOpenStep);
120
+ showDivs(["#blouse_content-step3-id","#blouse_box_step3"]);
121
+ jQuery('.current-step').removeClass('current-step');
122
+ jQuery(this).addClass('current-step');
123
+ }
124
+ })
125
+ jQuery('.seemore').click(function(){
126
+
127
+ if (jQuery('.seemore').text()=='See More Styles') {
128
+ jQuery('.hidden-image').css('display','block');
129
+ jQuery('.seemore').text('See Less Styles');
130
+ jQuery('.blouse_style').addClass("allproduct");
131
+ }else{
132
+ if (jQuery('.seemore').text()=='See Less Styles') {
133
+ jQuery('.hidden-image').css('display','none');
134
+ jQuery('.seemore').text('See More Styles');
135
+ jQuery('.blouse_style').removeClass("allproduct");
136
+ }
137
+ }
138
+ })
139
+ });
140
+
141
+ function addCurrent(s)
142
+ {
143
+ var value = new Array();
144
+ var size_arr = '';
145
+ switch(s)
146
+ {
147
+ case "XS" :
148
+ value = ['#current-xs','#current-s','#current-m','#current-l','#current-xl','#current-xxl'];
149
+ size_arr = xsmall_array;
150
+ break;
151
+ case "S" :
152
+ value = ['#current-s','#current-xs','#current-m','#current-l','#current-xl','#current-xxl'];
153
+ size_arr = small_array;
154
+ break;
155
+ case "M" :
156
+ value = ['#current-m','#current-s','#current-xs','#current-l','#current-xl','#current-xxl'];
157
+ size_arr = medium_array;
158
+ break;
159
+ case "L" :
160
+ value = ['#current-l','#current-m','#current-s','#current-xs','#current-xl','#current-xxl'];
161
+ size_arr = large_array;
162
+ break;
163
+ case "XL" :
164
+ value = ['#current-xl','#current-xxl','#current-m','#current-l','#current-s','#current-xs'];
165
+ size_arr = extra_array;
166
+ break;
167
+ case "XXL" :
168
+ value = ['#current-xxl','#current-xl','#current-m','#current-l','#current-s','#current-xs'];
169
+ size_arr = xextra_array;
170
+ break;
171
+ }
172
+ classAdd(value,array_id);
173
+ setSize(size_arr);
174
+ jQuery('.show_measurement').html('Show measurements in Centimeters');
175
+ current_size_in = 'inches';
176
+ }
177
+ function startInitial()//this function will use to reset all and start from scratch
178
+ {
179
+ jQuery("#blouse_box_step2").hide();
180
+ jQuery("#blouse_box_step3").hide();
181
+ jQuery("#myaccount-measurements").hide();
182
+ }
183
+ function showDivs(params)
184
+ {
185
+ if(curOpenStep.length > 1)
186
+ {
187
+ hideDivs(curOpenStep);
188
+ }
189
+ curOpenStep = params;
190
+ for(i=0;i<params.length;i++){
191
+ jQuery(params[i]).show();
192
+ }
193
+ }
194
+ function hideDivs(params)
195
+ {
196
+ for(i=0;i<params.length;i++){
197
+ jQuery(params[i]).hide();
198
+ }
199
+ }
200
+ function remove_span(span_id) {
201
+ for (var i = 0; i < 14; i++) {
202
+ jQuery(span_id[i]).text('') ;
203
+ //jQuery('.in-stock span').html("your new string");
204
+ };
205
+ }
206
+
207
+ function add_span(span_id,array_span){
208
+ for (var i = 0; i < 14; i++) {
209
+ jQuery(span_id[i]).text(array_span[i]) ;
210
+ //jQuery('.in-stock span').html("your new string");
211
+ };
212
+ }
213
+
214
+ function readonly_remove(array_id){
215
+ for (var i = 0; i <14; i++) {
216
+ jQuery(array_id[i]).removeAttr('readonly');
217
+ };
218
+ }
219
+ function cancelClicked(step)
220
+ {
221
+ switch(step)
222
+ {
223
+ case 1:
224
+ hideDivs(["#blouse_box_step2","#blouse_box_step3","#myaccount-measurements"]);
225
+ //jQuery('input[name="style"]').prop('checked', false);
226
+ break;
227
+ case 2:
228
+ break;
229
+ case 3:
230
+ break;
231
+ }
232
+ }
233
+ //jQuery and Javascript By Raghawndra Rai
234
+
235
+ function classAdd(value,array_id){
236
+ jQuery(value[0]).addClass("current");
237
+ jQuery(value[1]).removeClass('current');
238
+ jQuery(value[2]).removeClass('current');
239
+ jQuery(value[3]).removeClass('current');
240
+ jQuery(value[4]).removeClass('current');
241
+ jQuery(value[5]).removeClass('current');
242
+ for (var i = 0 ; i < 14; i++) {
243
+ jQuery(array_id[i]).attr('readonly', 'true');
244
+ }
245
+ }
246
+
247
+ function setSize(varray){ length_hps , above_bust
248
+ jQuery('#length_hps').val(varray[0]);
249
+ jQuery('#above_bust').val(varray[1]);
250
+ jQuery('#around_bust').val(varray[2]);
251
+ jQuery('#shoulder').val(varray[3]);
252
+ jQuery('#waist').val(varray[4]);
253
+ jQuery('#shoulder_height').val(varray[5]);
254
+ jQuery('#cross_front').val(varray[6]);
255
+ jQuery('#cross_back').val(varray[7]);
256
+ jQuery('#height').val(varray[8]);
257
+ jQuery('#arm_hole').val(varray[9]);
258
+ jQuery('#neck_depth_front').val(varray[10]);
259
+ jQuery('#neck_depth_back').val(varray[11]);
260
+ jQuery('#sleeve_length').val(varray[12]);
261
+ jQuery('#around_arm').val(varray[13]);
262
+ //jQuery('#txtFirstName').val("your name");
263
+ }
264
+ //Validation of step 2 form
265
+ function validation_step2() {
266
+ //console.log("in validation step2");
267
+ arrayVar[0] = jQuery('#length_hps').val();
268
+ arrayVar[1] = jQuery('#above_bust').val();
269
+ arrayVar[2] = jQuery('#around_bust').val();
270
+ arrayVar[3] = jQuery('#shoulder').val();
271
+ arrayVar[4] = jQuery('#waist').val();
272
+ arrayVar[5] = jQuery('#shoulder_height').val();
273
+ arrayVar[6] = jQuery('#cross_front').val();
274
+ arrayVar[7] = jQuery('#cross_back').val();
275
+ arrayVar[8] = jQuery('#height').val();
276
+ arrayVar[9] = jQuery('#arm_hole').val();
277
+ arrayVar[10] = jQuery('#neck_depth_front').val();
278
+ arrayVar[11] = jQuery('#neck_depth_back').val();
279
+ arrayVar[12] = jQuery('#sleeve_length').val();
280
+ arrayVar[13] = jQuery('#around_arm').val();
281
+
282
+ for (var i = 0; i < 14; i++) {
283
+ jQuery(error_msg[i]).html('');
284
+ jQuery(array_id[i]).removeAttr("style");
285
+ //highlight_error();
286
+ //console.log("refresh error");
287
+ }
288
+ if(arrayVar[0]=='' ){ highlight_error(array_id[0]); if(current_size_in=='inches'){show_error('#error-length_hps', 13, 17); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[0]).offset().top }, 1000); }
289
+ else{if(current_size_in=='centimeter'){show_error('#error-length_hps', 34, 43); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[0]).offset().top }, 1000); }} return;}
290
+ if(arrayVar[1]=='' ){ highlight_error(array_id[1]); if(current_size_in=='inches'){show_error('#error-above_bust', 32, 46); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[1]).offset().top }, 1000); }
291
+ else{if(current_size_in=='centimeter'){show_error('#error-above_bust', 81, 117); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[1]).offset().top }, 1000); }} return;}
292
+ if(arrayVar[2]=='' ){ highlight_error(array_id[2]); if(current_size_in=='inches'){show_error('#error-around-bust', 32, 47); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[2]).offset().top }, 1000); }
293
+ else{if(current_size_in=='centimeter'){show_error('#error-around-bust', 82, 119); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[2]).offset().top }, 1000); }} return;}
294
+ if(arrayVar[3]=='' ){ highlight_error(array_id[3]); if(current_size_in=='inches'){show_error('#error-shoulder', 27, 42); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[3]).offset().top }, 1000); }
295
+ else{if(current_size_in=='centimeter'){show_error('#error-shoulder', 70, 107); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[3]).offset().top }, 1000); }} return;}
296
+ if(arrayVar[4]=='' ){ highlight_error(array_id[4]); if(current_size_in=='inches'){show_error('#error-waist', 26, 40); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[4]).offset().top }, 1000); }
297
+ else{if(current_size_in=='centimeter'){show_error('#error-waist', 66, 102); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[4]).offset().top }, 1000); }} return;}
298
+ if(arrayVar[5]=='' ){ highlight_error(array_id[5]); if(current_size_in=='inches'){show_error('#error-shoulder_height', 14, 18);jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[5]).offset().top }, 1000);}
299
+ else{if(current_size_in=='centimeter'){show_error('#error-shoulder_height', 35, 44); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[5]).offset().top }, 1000); }} return;}
300
+ if(arrayVar[6]=='' ){ highlight_error(array_id[6]); if(current_size_in=='inches'){show_error('#error-cross_front', 12, 16); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[6]).offset().top }, 1000); }
301
+ else{if(current_size_in=='centimeter'){show_error('#error-cross_front', 32, 42); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[6]).offset().top }, 1000); }} return;}
302
+ if(arrayVar[7]=='' ){ highlight_error(array_id[7]); if(current_size_in=='inches'){show_error('#error-cross_back', 13, 17); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[7]).offset().top }, 1000); }
303
+ else{if(current_size_in=='centimeter'){show_error('#error-cross_back', 34, 44); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[7]).offset().top }, 1000); }} return;}
304
+ if(arrayVar[8]=='' ){ highlight_error(array_id[8]); if(current_size_in=='inches'){show_error('#error-height', 8, 11); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[8]).offset().top }, 1000); }
305
+ else{if(current_size_in=='centimeter'){show_error('#error-height', 22, 27); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[8]).offset().top }, 1000); }} return;}
306
+ if(arrayVar[9]=='' ){ highlight_error(array_id[9]); if(current_size_in=='inches'){show_error('#error-arm_hole', 14, 22); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[9]).offset().top }, 1000); }
307
+ else{if(current_size_in=='centimeter'){show_error('#error-arm_hole', 35, 54); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[9]).offset().top }, 1000); }} return;}
308
+ if(arrayVar[10]=='' ){ highlight_error(array_id[10]); if(current_size_in=='inches'){show_error('#error-neck_depth_front', 7, 9); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[10]).offset().top }, 1000); }
309
+ else{if(current_size_in=='centimeter'){show_error('#error-neck_depth_front', 18, 23); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[10]).offset().top }, 1000); }} return;}
310
+ if(arrayVar[11]=='' ){ highlight_error(array_id[11]); if(current_size_in=='inches'){show_error('#error-neck_depth_back', 8, 10); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[11]).offset().top }, 1000); }
311
+ else{if(current_size_in=='centimeter'){show_error('#error-neck_depth_back', 22, 26); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[11]).offset().top }, 1000); }}return;}
312
+ if(arrayVar[12]=='' ){ highlight_error(array_id[12]); if(current_size_in=='inches'){show_error('#error-sleeve_length', 3, 5); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[12]).offset().top }, 1000); }
313
+ else{if(current_size_in=='centimeter'){show_error('#error-sleeve_length', 8, 13); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[12]).offset().top }, 1000); }} return;}
314
+ if(arrayVar[13]=='' ){ highlight_error(array_id[13]); if(current_size_in=='inches'){show_error('#error-around_arm', 11, 18); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[13]).offset().top }, 1000); }
315
+ else{if(current_size_in=='centimeter'){show_error('#error-around_arm', 28, 46); jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[13]).offset().top }, 1000); }} return;}
316
+ check_value = jQuery("input[type='radio'][name='measurement_size']:checked").val();
317
+ if(check_value=='CUSTOM SIZE'){
318
+
319
+ var con_val = false;
320
+ for (var i = 0; i < 14; i++) {
321
+
322
+ if (arrayVar[i] != null && arrayVar[i] != '' && arrayVar[i] != NaN ) {
323
+ if (current_size_in=='inches') {
324
+ if (arrayVar[i] < array1[i] || arrayVar[i] > array2[i]) {
325
+
326
+ show_error(error_msg[i], array1[i], array2[i]);
327
+ highlight_error(array_id[i]);
328
+ jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[i]).offset().top }, 1000);
329
+ return;
330
+ } else {
331
+ con_val = true;
332
+ }
333
+ }else if (current_size_in=='centimeter') {
334
+ if (arrayVar[i] < cm_array1[i] || arrayVar[i] > cm_array2[i]) {
335
+ jQuery('.blouse_main').animate({ scrollTop: jQuery(array_id[i]).offset().top }, 1000);
336
+ show_error(error_msg[i], cm_array1[i], cm_array2[i]);
337
+ highlight_error(array_id[i]);
338
+ return;
339
+ } else {
340
+ con_val = true;
341
+ }
342
+ }
343
+ }else {
344
+ alert('Please enter the value');
345
+ return false;
346
+ }
347
+ }
348
+ if (con_val == true) {
349
+ //alert('we are in true part');
350
+ showDivs(["#blouse_box_step3","#blouse_content-step3-id"]);
351
+ hideDivs(["#blouse_box_step2"]);
352
+ jQuery('#blouse_content-step3-id').addClass('active');
353
+ step3_val(array_step3, arrayVar);
354
+ }
355
+ } else {//not custom size
356
+ showDivs(["#blouse_box_step3","#blouse_content-step3-id"]);
357
+ hideDivs(["#blouse_box_step2"]);
358
+ jQuery('#blouse_content-step3-id').addClass('active');
359
+ jQuery('.current-step').removeClass('current-step');
360
+ jQuery('.blouse_heading-step3').addClass('current-step');
361
+
362
+ step3_val(array_step3, arrayVar);
363
+ }
364
+ }
365
+
366
+ function step3_val(array_step3, arrayVar){
367
+ var img_detail = jQuery("input[name='style']:checked").parent().parent().children('img').clone();
368
+ jQuery('#img_blouse_right-id').html(img_detail);
369
+ var style_value = jQuery("input[type='radio'][name='style']:checked").val();
370
+ jQuery('#style_name_step3').html(style_value);
371
+ for (var i = 0; i <= array_step3.length - 1; i++) {
372
+ jQuery(array_step3[i]).html(arrayVar[i]+' '+current_size_in);
373
+ }
374
+ }
375
+
376
+ function show_error(id, min, max){
377
+ //alert("we are in show error field");
378
+ jQuery(id).html('Please enter the values between '+min+' and '+max);
379
+ return;
380
+ }
381
+
382
+ function final_step(){
383
+ //Enter Value in hidden inputbox in product View Page
384
+ if (jQuery('#customer_design-name').val()=='') {
385
+ jQuery("#customer_design-name").css("background-color", "#FFFFEE");
386
+ jQuery('#customer-design-error').html('Give a name to your measurement');
387
+ return false;
388
+ }
389
+ array_view = ['#input_length_hps-id','#input_above_waist-id','#input_around_bust-id','#input_shoulder-id','#input_waist-id','#input_shoulder_height-id','#input_cross_front-id','#input_cross_back-id','#input_height-id','#input_around_arm-id','#input_neck_depth_front-id','#input_neck_depth_back-id','#input_sleeve-length-id','#input_bicep-id'];
390
+ var style_value = jQuery("input[type='radio'][name='style']:checked").val();
391
+ jQuery('#input_style-id').val(style_value);
392
+ var measurement_value = jQuery("input[type='radio'][name='measurement_size']:checked").val();
393
+ if(jQuery('#selected_standard').val()!==''){
394
+ console.log(jQuery('#selected_standard').val());
395
+ jQuery('#input_measurement_size-id').val(measurement_value+'-'+jQuery('#selected_standard').val());
396
+ }else{
397
+ jQuery('#input_measurement_size-id').val(measurement_value);
398
+ }
399
+ jQuery(".add-to-cart").addClass("add-margin");
400
+ assign_value(array_view, arrayVar);
401
+ hide_show();
402
+ submitForm();
403
+ reset_form();
404
+ }
405
+
406
+ //Function to assign value in product view
407
+ function assign_value(array_view ,arrayVar){
408
+ //console.log('assign start');
409
+ var style_value = jQuery("input[type='radio'][name='style']:checked").val();
410
+ jQuery('#tittle-for-style-id').html(style_value);
411
+ var style_name_original = jQuery('#style-name-hidden').val();
412
+ jQuery('#input_style-id').val(style_name_original);
413
+ var img_detail = jQuery("input[name='style']:checked").parent().parent().children('img').clone();
414
+ jQuery('#blouse-added-image-id').html(img_detail);
415
+ //new code have to enter
416
+ jQuery('#customer-blouse-name').val(jQuery('#customer_design-name').val());
417
+ jQuery('#input-special-instruction').val(jQuery('#special-instruction').val());
418
+ for (var i = 0; i < array_view.length; i++) {
419
+ //alert(array_view[i]);
420
+ //alert(arrayVar[i]);
421
+ jQuery(messurement_array[i]).html(arrayVar[i]+' '+current_size_in);
422
+ jQuery(array_view[i]).val(arrayVar[i]);
423
+ }
424
+ }
425
+
426
+ function reset_form(){
427
+ //Resetting the values of form array_id
428
+ //console.log('in reset form');
429
+ for (var i = 0; i < array_id.length; i++) {
430
+ jQuery(array_id[i]).val('');
431
+ }
432
+ jQuery('#blouse_content-step2-id').removeClass('active');
433
+ jQuery('#blouse_content-step3-id').removeClass('active');
434
+ jQuery('input[type=radio][name="measurement_size"][value="CUSTOM SIZE"]').attr('checked','checked');
435
+ jQuery('input[type=radio][name="style"][value="Square Neckline"]').attr('checked','checked');
436
+ current_size_in == 'inches';
437
+ }
438
+
439
+ function hide_show(){
440
+ showDivs(["#blouse_box_step1"]);
441
+ hideDivs(["#blouse_box_step2","#blouse_box_step3","#myaccount-measurements"]);
442
+ jQuery("#chk-stitch-blouse").attr("checked", false);
443
+ hideTab();
444
+
445
+ }
446
+
447
+ //Code To Convert into Cm
448
+ function convertSizeValue(){
449
+ //if (current_size_in == 'inches')
450
+ if (jQuery('.show_measurement').text()=='Show measurements in Centimeters') {
451
+
452
+ for (var i = 0; i < array_id.length; i++) {
453
+ jQuery(error_msg[i]).html('');
454
+ jQuery(array_id[i]).removeAttr("style");
455
+ if (jQuery(array_id[i]).val()!='') {
456
+ var inche_value = parseInt(jQuery(array_id[i]).val());
457
+ var cm_value = inche_value/0.39370;
458
+ jQuery(array_id[i]).val(Math.round(cm_value));
459
+ jQuery('.show_measurement').html('Show measurements in inches');
460
+ current_size_in = 'centimeter';
461
+ if (check_value=='CUSTOM SIZE') {
462
+ add_span(span_id,array_span_cent);
463
+ }
464
+ }
465
+ }
466
+
467
+ //console.log('in cm convertor');
468
+ }else{
469
+
470
+ //if (current_size_in == 'centimeter') {
471
+ if (jQuery('.show_measurement').text()=='Show measurements in inches') {
472
+
473
+ for (var i = 0; i < array_id.length; i++) {
474
+ jQuery(error_msg[i]).html('');
475
+ jQuery(array_id[i]).removeAttr("style");
476
+ if (jQuery(array_id[i]).val()!='') {
477
+ var cm_value = parseInt(jQuery(array_id[i]).val());
478
+ var inche_value = cm_value*0.39370;
479
+ jQuery(array_id[i]).val(Math.round(inche_value));
480
+ jQuery('.show_measurement').html('Show measurements in Centimeters');
481
+ current_size_in = 'inches';
482
+ if (check_value=='CUSTOM SIZE') {
483
+ add_span(span_id,array_span);
484
+ }
485
+ }
486
+ }
487
+
488
+ //console.log('in inche convertor');
489
+ }
490
+ }
491
+ }
492
+ //Code End Here
493
+ //Code to highlight inputbox when error occure
494
+
495
+ function highlight_error(id){
496
+ jQuery(id).attr('style', "border-radius: 5px; border:#FF0000 1px solid;");
497
+ }
498
+
499
+
500
+
skin/frontend/base/default/blouse/js/iwd-jquery-2.1.3.min.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.3",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQueryIWD"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=hb(),z=hb(),A=hb(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},eb=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fb){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function gb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+rb(o[l]);w=ab.test(a)&&pb(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function hb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ib(a){return a[u]=!0,a}function jb(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function kb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function lb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function nb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ob(a){return ib(function(b){return b=+b,ib(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pb(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=gb.support={},f=gb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=gb.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",eb,!1):e.attachEvent&&e.attachEvent("onunload",eb)),p=!f(g),c.attributes=jb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=jb(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=jb(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(jb(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),jb(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&jb(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return lb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?lb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},gb.matches=function(a,b){return gb(a,null,null,b)},gb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return gb(b,n,null,[a]).length>0},gb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},gb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},gb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},gb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=gb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=gb.selectors={cacheLength:50,createPseudo:ib,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||gb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&gb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=gb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||gb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ib(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ib(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ib(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ib(function(a){return function(b){return gb(a,b).length>0}}),contains:ib(function(a){return a=a.replace(cb,db),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ib(function(a){return W.test(a||"")||gb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ob(function(){return[0]}),last:ob(function(a,b){return[b-1]}),eq:ob(function(a,b,c){return[0>c?c+b:c]}),even:ob(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:ob(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:ob(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:ob(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=mb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=nb(b);function qb(){}qb.prototype=d.filters=d.pseudos,d.setFilters=new qb,g=gb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?gb.error(a):z(a,i).slice(0)};function rb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function tb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ub(a,b,c){for(var d=0,e=b.length;e>d;d++)gb(a,b[d],c);return c}function vb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wb(a,b,c,d,e,f){return d&&!d[u]&&(d=wb(d)),e&&!e[u]&&(e=wb(e,f)),ib(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ub(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:vb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=vb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=vb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sb(function(a){return a===b},h,!0),l=sb(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sb(tb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wb(i>1&&tb(m),i>1&&rb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xb(a.slice(i,e)),f>e&&xb(a=a.slice(e)),f>e&&rb(a))}m.push(c)}return tb(m)}function yb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=vb(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&gb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ib(f):f}return h=gb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,yb(e,d)),f.selector=a}return f},i=gb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&pb(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&rb(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&pb(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=jb(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),jb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||kb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&jb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||kb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),jb(function(a){return null==a.getAttribute("disabled")})||kb(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),gb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+K.uid++}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)
3
+ },removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ib={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qb[0].contentDocument,b.write(),b.close(),c=sb(a,b),qb.detach()),rb[a]=c),c}var ub=/^margin/,vb=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wb=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),vb.test(g)&&ub.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function yb(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),f.removeChild(c),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var zb=/^(none|table(?!-c[ea]).+)/,Ab=new RegExp("^("+Q+")(.*)$","i"),Bb=new RegExp("^([+-])=("+Q+")","i"),Cb={position:"absolute",visibility:"hidden",display:"block"},Db={letterSpacing:"0",fontWeight:"400"},Eb=["Webkit","O","Moz","ms"];function Fb(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Eb.length;while(e--)if(b=Eb[e]+c,b in a)return b;return d}function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wb(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xb(a,b,f),(0>e||null==e)&&(e=a.style[b]),vb.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Hb(a,b,c||(g?"border":"content"),d,f)+"px"}function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",tb(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Bb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xb(a,b,d)),"normal"===e&&b in Db&&(e=Db[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?zb.test(n.css(a,"display"))&&0===a.offsetWidth?n.swap(a,Cb,function(){return Ib(a,b,d)}):Ib(a,b,d):void 0},set:function(a,c,d){var e=d&&wb(a);return Gb(a,c,d?Hb(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=yb(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ub.test(a)||(n.cssHooks[a+b].set=Gb)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Jb(this,!0)},hide:function(){return Jb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Kb(a,b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}n.Tween=Kb,Kb.prototype={constructor:Kb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Kb.propHooks[this.prop];return a&&a.get?a.get(this):Kb.propHooks._default.get(this)},run:function(a){var b,c=Kb.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Kb.propHooks._default.set(this),this}},Kb.prototype.init.prototype=Kb.prototype,Kb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Kb.propHooks.scrollTop=Kb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=Kb.prototype.init,n.fx.step={};var Lb,Mb,Nb=/^(?:toggle|show|hide)$/,Ob=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pb=/queueHooks$/,Qb=[Vb],Rb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Ob.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Ob.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sb(){return setTimeout(function(){Lb=void 0}),Lb=n.now()}function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Vb(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||tb(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Nb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?tb(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ub(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Lb||Sb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Lb||Sb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wb(k,j.opts.specialEasing);g>f;f++)if(d=Qb[f].call(j,a,k,j.opts))return d;return n.map(k,Ub,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xb,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Rb[c]=Rb[c]||[],Rb[c].unshift(b)},prefilter:function(a,b){b?Qb.unshift(a):Qb.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xb(this,n.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Tb(b,!0),a,d,e)}}),n.each({slideDown:Tb("show"),slideUp:Tb("hide"),slideToggle:Tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Lb=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Lb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Mb||(Mb=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Mb),Mb=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement("input"),b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox",k.checkOn=""!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement("input"),a.value="t",a.type="radio",k.radioValue="t"===a.value}();var Yb,Zb,$b=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Zb:Yb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))
4
+ },removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||n.find.attr;$b[b]=function(a,b,d){var e,f;return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});var _b=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_b.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ac=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ac," ").indexOf(b)>=0)return!0;return!1}});var bc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cc=n.now(),dc=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var ec=/#.*$/,fc=/([?&])_=[^&]*/,gc=/^(.*?):[ \t]*([^\r\n]*)$/gm,hc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ic=/^(?:GET|HEAD)$/,jc=/^\/\//,kc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,lc={},mc={},nc="*/".concat("*"),oc=a.location.href,pc=kc.exec(oc.toLowerCase())||[];function qc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function rc(a,b,c,d){var e={},f=a===mc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function sc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function tc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function uc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:oc,type:"GET",isLocal:hc.test(pc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":nc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?sc(sc(a,n.ajaxSettings),b):sc(n.ajaxSettings,a)},ajaxPrefilter:qc(lc),ajaxTransport:qc(mc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=gc.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||oc)+"").replace(ec,"").replace(jc,pc[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=kc.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===pc[1]&&h[2]===pc[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(pc[3]||("http:"===pc[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),rc(lc,k,b,v),2===t)return v;i=n.event&&k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!ic.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(dc.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=fc.test(d)?d.replace(fc,"$1_="+cc++):d+(dc.test(d)?"&":"?")+"_="+cc++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+nc+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=rc(mc,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=tc(k,v,f)),u=uc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var vc=/%20/g,wc=/\[\]$/,xc=/\r?\n/g,yc=/^(?:submit|button|image|reset|file)$/i,zc=/^(?:input|select|textarea|keygen)/i;function Ac(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||wc.test(a)?d(a,e):Ac(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Ac(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Ac(c,a[c],b,e);return d.join("&").replace(vc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&zc.test(this.nodeName)&&!yc.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(xc,"\r\n")}}):{name:b.name,value:c.replace(xc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Bc=0,Cc={},Dc={0:200,1223:204},Ec=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Cc)Cc[a]()}),k.cors=!!Ec&&"withCredentials"in Ec,k.ajax=Ec=!!Ec,n.ajaxTransport(function(a){var b;return k.cors||Ec&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Bc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Cc[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Dc[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Cc[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Fc=[],Gc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Fc.pop()||n.expando+"_"+cc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Gc.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Gc,"$1"+e):b.jsonp!==!1&&(b.url+=(dc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Fc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Hc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Hc)return Hc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Ic=a.document.documentElement;function Jc(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Jc(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Ic;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ic})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Jc(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=yb(k.pixelPosition,function(a,c){return c?(c=xb(a,b),vb.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Kc=a.jQueryIWD,Lc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Lc),b&&a.jQueryIWD===n&&(a.jQueryIWD=Kc),n},typeof b===U&&(a.jQueryIWD=a.$=n),n});
5
+ $ji = jQueryIWD.noConflict();