?> </div> <?php } else { echo $this->lists['published']; } ?> </div> <!-- SELECT STORE --> <?php //made by sanjivani $comquick2cartHelper = new comquick2cartHelper(); $this->store_role_list = $store_role_list = $comquick2cartHelper->getAllStoreIds(); //JLoader::import('managecoupon', JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'models'); if ($this->coupons) { $model = new quick2cartModelManagecoupon(); $this->coupons = $model->Editlist($this->coupons[0]->id); } $params = JComponentHelper::getParams('com_quick2cart'); $multivendor_enable = $params->get('multivendor'); //sanjivani end // $options[] = JHtml::_('select.option', "", "Select Country"); if ($multivendor_enable == '1') { ?> <div class="control-group"> <label for="qtc_store" class="control-label"><?php echo JHtml::tooltip(JText::_('QTC_PROD_SELECT_STORE_DES'), JText::_('QTC_PROD_SELECT_STORE'), '', JText::_('QTC_PROD_SELECT_STORE')); ?> </label> <div class="controls"> <?php
?> </td> <td align="center"> <?php if ($row->exp_date != '0000-00-00 00:00:00') { $exp_date = date("Y-m-d", strtotime($row->exp_date)); echo $exp_date; } else { echo "-"; } ?> </td> <td> <?php if ($row->store_id) { $quick2cartModelManagecoupon = new quick2cartModelManagecoupon(); /*if(!empty($store_names[$row->store_id])) echo $store_names[$row->store_id]; else */ echo $store_names[$row->store_id] = !empty($store_names[$row->store_id]) ? $store_names[$row->store_id] : $quick2cartModelManagecoupon->getStoreNmae($row->store_id); } ?> </td> </tr> <?php $k = 1 - $k; } ?> <?php } // end of else