2009-08-03 04:10:16 +00:00
{ assign var = meth value = ':' | explode : $VAR._page }
<!-- { $meth.0 } : { $meth.1 } -->
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
{ $method - > exe ( $meth.0 , $meth.1 ) }
{ if ( $method - > result = = false ) }
{ $block - > display ( 'core:method_error' ) }
{ else }
{ include file = 'file:../core/view_pre.tpl' }
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
<!-- Display the field validation -->
{ if $form_validation }
{ $block - > display ( 'core:alert_fields' ) }
{ /if }
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading"> { osb f = tt } </td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b> { osb f = tf field = date_orig } </b></td>
<td width="50%"><b> { osb f = tf field = date_last } </b></td>
</tr>
<tr valign="top">
<td width="50%"> { $list - > date ( $record.date_orig ) } </td>
<td width="50%"> { $list - > date ( $record.date_last ) } <input type="hidden" name="product_date_last" value=" { $smarty.now } "/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b> { osb f = tf field = sku } </b></td>
<td width="50%"><b> { osb f = tf field = position } </b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%"><input type="text" name="product_sku" value=" { $record.sku } " size="32"/></td>
<td width="50%"><input type="text" name="product_position" value=" { $record.position } " size="3"/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b> { osb f = tf field = active } </b></td>
<td width="50%"><b> { osb f = tf field = taxable } </b></td>
</tr>
<tr valign="top">
<td width="50%"> { $list - > bool ( 'product_active' , $record.active ) } </td>
<td width="50%"> { $list - > bool ( 'product_taxable' , $record.taxable ) } </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b> { osb f = tf field = price_base } </b></td>
<td width="50%"><b> { osb f = tf field = price_setup } </b></td>
</tr>
<tr valign="top">
<td width="50%"><input type="text" name="product_price_base" value=" { $record.price_base } " size="5"/> { $list - > currency_iso ( '' ) } </td>
<td width="50%"><input type="text" name="product_price_setup" value=" { $record.price_setup } " size="5"/> { $list - > currency_iso ( '' ) } </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b> { osb f = tf field = avail_category_id } </b><br/></td>
<td width="50%"><b> { osb f = tf field = group_avail } </b></td>
</tr>
<tr valign="top">
<td width="50%"> { $method - > exe_noauth ( 'product_cat' , 'tpl_admin_menu_product' ) } </td>
<td width="50%"> { $list - > menu_multi ( $record.group_avail , 'product_group_avail' , 'group' , 'name' , '' , '5' , 'form_menu' ) } </td>
</tr>
</table>
</td>
</tr>
{ if $record.price_type = = '1' }
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b> { osb f = tf field = price_recurr_default } </b></td>
<td style="width: 50%;"> { $list - > menu_staticlist ( 'recur_schedule' , 'product_price_recurr_default' , 'product_price_recurr_default' , $product.price_recurr_default , 'form_menu' , false ) } </td>
</tr>
<tr valign="top" class="row2">
<td width="50%"><b> { osb f = tf field = price_recurr_type } </b></td>
<td width="50%"><b> { t } Options Available to Subscribers { /t } </b></td>
</tr>
<tr valign="top" class="row2">
<td style="width: 50%;">
<input type="radio" name="product_price_recurr_type" value="0" { if $record.price_recurr_type = = "0" } checked="checked" { /if } />
{ $list - > menu_staticlist ( 'recur_type' , '' , 'product_price_recurr_type' , 0 , 'form_menu' , false ) } <br/>
<input type="radio" name="product_price_recurr_type" value="1" { if $record.price_recurr_type = = "1" } checked="checked" { /if } />
{ $list - > menu_staticlist ( 'recur_type' , '' , 'product_price_recurr_type' , 1 , 'form_menu' , false ) } <br/>
<input type="text" name="product_price_recurr_weekday" value=" { $record.price_recurr_weekday } " size="2" maxlength="2"/>
(1-28)
{ osb f = tf field = price_recurr_weekday }
</td>
<td width="50%">
{ $list - > bool ( 'product_price_recurr_schedule' , $record.price_recurr_schedule ) }
{ osb f = tf field = price_recurr_schedule }
<br/>
{ $list - > bool ( 'product_price_recurr_cancel' , $record.price_recurr_cancel ) }
{ osb f = tf field = price_recurr_cancel }
<br/>
{ $list - > bool ( 'product_cart_multiple' , $record.cart_multiple ) }
{ osb f = tf field = cart_multiple }
</td>
</tr>
</table>
</td>
</tr>
{ /if }
{ if $record.price_type = = '2' }
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b> { osb f = tf field = price_trial_prod } </b></td>
<td width="50%"><b> { osb f = tf field = price_trial_length } </b></td>
</tr>
<tr valign="top">
<td width="50%"> { $list - > menu ( '' , 'product_price_trial_prod' , 'product' , 'sku' , $record.price_trial_prod , 'form_menu' ) } </td>
<td width="50%">
<input type="text" name="product_price_trial_length" value=" { $record.price_trial_length } " size="4"/>
<select name="product_price_trial_length_type" >
<option value="0" { if $record.price_trial_length_type = = "0" } selected { /if } > { translate } day { /translate } </option>
<option value="1" { if $record.price_trial_length_type = = "1" } selected { /if } > { translate } week { /translate } </option>
<option value="2" { if $record.price_trial_length_type = = "2" } selected { /if } > { translate } month { /translate } </option>
</select>
</td>
</tr>
</table>
</td>
</tr>
{ /if }
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="50%" valign="top">
{ if $record.thumbnail ! = '' }
<img src=" { $URL } { $smarty.const.URL_IMAGES } { $record.thumbnail } "/>
{ /if }
<b> { osb f = tf field = thumbnail } </b>
</td>
<td width="50%" align="left">
<b>
<input type="file" name="upload_file1" size="38"/>
{ if $record.thumbnail ! = '' }
<img title="Delete Thumbnail Image" src="themes/ { $THEME_NAME } /images/icons/del_16.gif" onClick="document.getElementById('delimg').value = '1'; document.getElementById('product_view').submit();"/>
{ /if }
</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{ include file = 'file:../core/view_tr_submit_delete.tpl' }
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="35%" align="center">
<!-- feature inactive
<a href="javascript:showImages();"> { translate module = product } manage_images { /translate } </a> | -->
<a href="javascript:viewTranslations()"> { t } Name & Description { /t } </a> |
<a href="javascript:showAttributes();"> { t } Attributes { /t } </a> |
<a href="javascript:showBilling();"> { t } Advanced Billing { /t } </a> |
<a href="javascript:showAssociations();"> { t } Associations { /t } </a> |
<a href="javascript:showDiscounts();"> { t } Discounts { /t } </a>
{ if $list - > is_installed ( 'host_server' ) }
| <a href="javascript:showHosting();"> { t } Hosting { /t } </a>
{ /if }
| <a href="javascript:showPlugins();"> { t } Product Plugins { /t } </a> |
<a href="javascript:showLink(' { $record.id } ',' { $record.price_recurr_default } ')"> { t } Link { /t } </a> |
<a href="javascript:clone(' { $record.id } ')"> { t } Clone { /t } </a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
</div>
{ include file = 'file:../core/view_post.tpl' }
<input type="hidden" name="delimg" id="delimg" value="0"/>
<input type="hidden" name="product_assoc_req_prod" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_assoc_grant_prod" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_assoc_grant_group" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_host_discount_tld" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_host_provision_plugin_data" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_prod_plugin_data" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_modify_product_arr" value="IGNORE-ARRAY-VALUE"/>
</div>
</form>
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="auto" allowtransparency="true" frameborder="0" src="themes/ { $THEME_NAME } /IEFrameWarningBypass.htm"></iframe>
<div id="code"></div>
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
<script type="text/javascript">
<!--
var product_id = { $record.id } ;
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
{ literal }
function viewTranslations(product_id,language_id) {
document.getElementById("code").innerHTML = '';
var product_id = { /literal } { $record.id } { literal } ;
var language_id = { /literal } ' { $smarty.const.DEFAULT_LANGUAGE } ' { literal } ;
var url = '?_page=core:search_iframe&module=product_translate&product_translate_language_id='+language_id+'&product_translate_product_id='+product_id+'&_escape=1&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=product_translate_product_id&val_id1='+product_id+'&name_id2=product_translate_language_id&val_id2='+language_id;
showIFrame('iframe',getPageWidth(600),300,url);
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
viewTranslations();
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function showLink(product_id,recurr_schedule) {
showIFrame('iframe',0,0,'?_page=core:blank');
var code;
code = '<br/>Add to cart and checkout:<br/><textarea cols=120 rows=2 class=form_field> { /literal } { $URL } { literal } ?_page=checkout:checkout&_next_page=checkout:checkout&do[]=cart:add&product_id='+product_id+'&recurr_schedule='+recurr_schedule+'</textarea>';
code += '<br/><br/>Add to cart and view cart:<br/><textarea cols=120 rows=2 class=form_field> { /literal } { $URL } { literal } ?_page=cart:cart&do[]=cart:add&product_id='+product_id+'&recurr_schedule='+recurr_schedule+'</textarea>';
document.getElementById('code').innerHTML = code;
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function showImages() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=core:search_iframe&module=product_img&product_img_product_id='+product_id+'&_escape=1&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=product_img_product_id&val_id1='+product_id);
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function showAttributes() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=core:search_iframe&module=product_attr&product_attr_product_id='+product_id+'&_escape=1&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=product_attr_product_id&val_id1='+product_id+'&name_id2=product_attribute_product_price_type&val_id2= { /literal } { $record.price_type } { literal } ');
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function showBilling() {
document.getElementById('code').innerHTML = '';
var billingtype = { /literal } { $record.price_type } { literal } ;
if (billingtype == '0' || billingtype == '2')
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_price_onetime&_escape=1&id='+product_id);
else if(billingtype == '1')
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_price_recurring&_escape=1&id='+product_id);
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function showAssociations() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_associations&id='+product_id);
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function showDiscounts() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_discounts&_escape=1&id='+product_id);
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function showHosting() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_hosting&_escape=1&id='+product_id);
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function showPlugins() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_plugins&_escape=1&id='+product_id);
}
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
function clone() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_clone&_escape=1&id='+product_id);
}
{ /literal }
//-->
</script>
2008-11-26 22:50:40 +00:00
{ /if }