<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.2.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>				<table class="admintable table"  width="100%">
						<tr>
							<td class="key">
									<?php echo JText::_( 'HIKA_NAME' ); ?>
							</td>
							<td>
								<input id="product_name" type="text" size="80" name="<?php echo $this->product_name_input; ?>" value="<?php echo $this->escape(@$this->element->product_name); ?>" />
								<?php if(isset($this->product_name_published)){
										$publishedid = 'published-'.$this->product_name_id;
								?>
								<span id="<?php echo $publishedid; ?>" class="spanloading"><?php echo $this->toggle->toggle($publishedid,(int) $this->product_name_published,'translation') ?></span>
								<?php } ?>*
							</td>
						</tr>
						<tr>
							<td class="key">
									<?php echo JText::_( 'PRODUCT_DESCRIPTION' ); ?>
							</td>
							<td width="100%"></td>
						</tr>
						<tr>
							<td colspan="2" width="100%">
								<?php if(isset($this->product_description_published)){
										$publishedid = 'published-'.$this->product_description_id;
								?>
								<span id="<?php echo $publishedid; ?>" class="spanloading"><?php echo $this->toggle->toggle($publishedid,(int) $this->product_description_published,'translation') ?></span>
								<br/>
								<?php }
									$this->editor->content = @$this->element->product_description;
									echo $this->editor->display();
								?>
							</td>
						</tr>
						<?php if($this->element->product_type=='main'){ ?>
							<tr>
								<td class="key">
										<?php echo JText::_( 'URL' ); ?>
								</td>
								<td>
									<input id="product_url" type="text" size="80" name="<?php echo $this->product_url_input; ?>" value="<?php echo $this->escape(@$this->element->product_url); ?>" />
									<?php if(isset($this->product_url_published)){
											$publishedid = 'published-'.$this->product_url_id;
									?>
									<span id="<?php echo $publishedid; ?>" class="spanloading"><?php echo $this->toggle->toggle($publishedid,(int) $this->product_url_published,'translation') ?></span>
									<?php } ?>
								</td>
							</tr>
							<tr>
								<td class="key">
										<?php echo JText::_( 'PRODUCT_META_DESCRIPTION' ); ?>
								</td>
								<td>
									<textarea id="product_meta_description" cols="46" rows="2" name="<?php echo $this->product_meta_description_input; ?>"><?php echo $this->escape(@$this->element->product_meta_description); ?></textarea>
									<?php if(isset($this->product_meta_description_published)){
											$publishedid = 'published-'.$this->product_meta_description_id;
									?>
									<span id="<?php echo $publishedid; ?>" class="spanloading"><?php echo $this->toggle->toggle($publishedid,(int) $this->product_meta_description_published,'translation') ?></span>
									<?php } ?>
								</td>
							</tr>
							<tr>
								<td class="key">
										<?php echo JText::_( 'PRODUCT_KEYWORDS' ); ?>
								</td>
								<td>
									<textarea id="product_keywords" cols="46" rows="2" name="<?php echo $this->product_keywords_input; ?>"><?php echo $this->escape(@$this->element->product_keywords); ?></textarea>
									<?php if(isset($this->product_keywords_published)){
											$publishedid = 'published-'.$this->product_keywords_id;
									?>
									<span id="<?php echo $publishedid; ?>" class="spanloading"><?php echo $this->toggle->toggle($publishedid,(int) $this->product_keywords_published,'translation') ?></span>
									<?php } ?>
								</td>
							</tr>
							<tr>
								<td class="key">
										<?php echo JText::_( 'PAGE_TITLE' ); ?>
								</td>
								<td>
									<textarea id="product_page_title" cols="46" rows="2" name="<?php echo $this->product_page_title_input; ?>"><?php echo $this->escape(@$this->element->product_page_title); ?></textarea>
									<?php if(isset($this->product_page_title_published)){
											$publishedid = 'published-'.$this->product_page_title_id;
									?>
									<span id="<?php echo $publishedid; ?>" class="spanloading"><?php echo $this->toggle->toggle($publishedid,(int) $this->product_page_title_published,'translation') ?></span>
									<?php } ?>
								</td>
							</tr>
							<tr>
								<td class="key">
										<?php echo JText::_( 'HIKA_ALIAS' ); ?>
								</td>
								<td>
									<textarea id="product_alias" cols="46" rows="2" name="<?php echo $this->product_alias_input; ?>"><?php echo $this->escape(@$this->element->product_alias); ?></textarea>
									<?php if(isset($this->product_alias_published)){
											$publishedid = 'published-'.$this->product_alias_id;
									?>
									<span id="<?php echo $publishedid; ?>" class="spanloading"><?php echo $this->toggle->toggle($publishedid,(int) $this->product_alias_published,'translation') ?></span>
									<?php } ?>
								</td>
							</tr>
							<tr>
								<td class="key">
										<?php echo JText::_( 'PRODUCT_CANONICAL' ); ?>
								</td>
								<td>
									<input type="text" id="product_canonial" name="<?php echo $this->product_canonical_input; ?>" value="<?php echo @$this->element->product_canonical; ?>"/>
									<?php if(isset($this->product_canonical_published)){
											$publishedid = 'published-'.$this->product_canonical_id;
									?>
									<span id="<?php echo $publishedid; ?>" class="spanloading"><?php echo $this->toggle->toggle($publishedid,(int) $this->product_canonical_published,'translation') ?></span>
									<?php } ?>
								</td>
							</tr>
						<?php } ?>
					</table>
