Changes to AgileBill
This commit is contained in:
@@ -1,197 +1,111 @@
|
||||
{literal}<!-- tinyMCE -->
|
||||
<script language="javascript" type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
tinyMCE.init({
|
||||
mode : "specific_textareas",
|
||||
theme : "advanced",
|
||||
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print",
|
||||
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
|
||||
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
|
||||
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
|
||||
theme_advanced_buttons3_add_before : "tablecontrols,separator",
|
||||
theme_advanced_buttons3_add : "iespell,media,advhr",
|
||||
theme_advanced_toolbar_location : "bottom",
|
||||
theme_advanced_toolbar_align : "center",
|
||||
content_css : "themes/default/style.css",
|
||||
plugin_insertdate_dateFormat : "%Y-%m-%d",
|
||||
plugin_insertdate_timeFormat : "%H:%M:%S",
|
||||
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
|
||||
relative_urls: 'false',
|
||||
width : "100%"
|
||||
});
|
||||
</script>
|
||||
<!-- /tinyMCE -->{/literal}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
<!-- Display the form validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{$block->display('core:alert_fields')}
|
||||
{/if}
|
||||
|
||||
<!-- Display the form to collect the input values -->
|
||||
<form id="product_add" name="product_add" method="post" action="">
|
||||
<!-- tinyMCE -->
|
||||
<script type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript" src="themes/{$THEME_NAME}/tinymce.js"></script>
|
||||
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=product}title_add{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_sku
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product_translate}
|
||||
field_name
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
<input type="text" name="product_sku" value="{$VAR.product_sku}" {if $product_sku == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="translate_name" value="{$VAR.translate_name}" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_type
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_avail_category_id
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
<input type="radio" name="product_price_type" value="0" {if $VAR.product_price_type == "0" || $VAR.product_price_type == "" }checked{/if}>
|
||||
{translate module=product}
|
||||
price_type_one
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" name="product_price_type" value="1" {if $VAR.product_price_type == "1"}checked{/if}>
|
||||
{translate module=product}
|
||||
price_type_recurr
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" name="product_price_type" value="2" {if $VAR.product_price_type == "2"}checked{/if}>
|
||||
{translate module=product}
|
||||
price_type_trial
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu_multi($VAR.product_avail_category_id, "product_avail_category_id", "product_cat", "name", "5", "", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
|
||||
<tr>
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_taxable
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<input type="text" name="product_price_base" value="{$VAR.product_price_base}" {if $product_price_base == true}class="form_field_error"{/if} size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="product_price_setup" value="{$VAR.product_price_setup}" {if $product_price_setup == true}class="form_field_error"{/if} size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<b> </b></td>
|
||||
<td width="50%">
|
||||
{if $VAR.product_taxable != ""}
|
||||
{ $list->bool("product_taxable", $VAR.product_taxable, "form_menu") }
|
||||
{else}
|
||||
{ $list->bool("product_taxable", "1", "form_menu") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr>
|
||||
<td> <b>
|
||||
{translate module=product_translate}
|
||||
field_description_short
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea name="translate_description_short" cols="80" rows="10" mce_editable="true">{$VAR.translate_description_short}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <b>
|
||||
{translate module=product_translate}
|
||||
field_description_full
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea name="translate_description_full" cols="80" rows="13" mce_editable="true">{$VAR.translate_description_full}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="product:view">
|
||||
<input type="hidden" name="_page_current" value="product:add">
|
||||
<input type="hidden" name="do[]" value="product:add">
|
||||
<input type="hidden" name="product_active" value="1">
|
||||
<input type="hidden" name="product_plugin" value="0">
|
||||
<input type="hidden" name="product_discount" value="0">
|
||||
<input type="hidden" name="product_date_orig" value="{$list->date($smarty.now)}">
|
||||
<input type="hidden" name="product_date_last" value="{$smarty.now}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!-- Display the form to collect the input values -->
|
||||
<form id="add" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<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">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=sku}</b></td>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=name}</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;"><input type="text" name="product_sku" value="{$VAR.product_sku}" {if $product_sku == true}class="form_field_error"{/if}/></td>
|
||||
<td style="width: 50%;"><input type="text" name="translate_name" value="{$VAR.translate_name}"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_type}</b></td>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=avail_category_id}</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;">
|
||||
<input type="radio" name="product_price_type" value="0" {if $VAR.product_price_type == "0" || $VAR.product_price_type == "" }checked="checked"{/if}/> {$list->menu_staticlist('pricetype','','',0,'form_menu')}<br/>
|
||||
<input type="radio" name="product_price_type" value="1" {if $VAR.product_price_type == "1"}checked="checked"{/if}/> {$list->menu_staticlist('pricetype','','',1,'form_menu')}<br/>
|
||||
<input type="radio" name="product_price_type" value="2" {if $VAR.product_price_type == "2"}checked="checked"{/if}/> {$list->menu_staticlist('pricetype','','',2,'form_menu')}
|
||||
</td>
|
||||
<td style="width: 50%;">{$list->menu_multi($VAR.product_avail_category_id,'product_avail_category_id','product_cat','name','5','5','form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
|
||||
<tr>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_base}</b></td>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_setup}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=taxable}</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
|
||||
<tr>
|
||||
<td style="width: 50%;"><input type="text" name="product_price_base" value="{$VAR.product_price_base}" {if $product_price_base == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
|
||||
<td style="width: 50%;"><input type="text" name="product_price_setup" value="{$VAR.product_price_setup}" {if $product_price_setup == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="width: 50%;">
|
||||
{if $VAR.product_taxable != ''}
|
||||
{$list->bool('product_taxable',$VAR.product_taxable,'form_menu')}
|
||||
{else}
|
||||
{$list->bool('product_taxable','1','form_menu')}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr>
|
||||
<td><b>{osb f=tf field=description_short}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><textarea name="translate_description_short" cols="80" rows="10" class="mce_editable">{$VAR.translate_description_short}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{osb f=tf field=description_full}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><textarea name="translate_description_full" cols="80" rows="13" class="mce_editable">{$VAR.translate_description_full}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
{include file='file:../core/add_tr_submit.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="product_active" value="1"/>
|
||||
<input type="hidden" name="product_discount" value="0"/>
|
||||
</div>
|
||||
</form>
|
||||
|
@@ -1,495 +1,267 @@
|
||||
{ $block->display("core:top_clean") }
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{ $method->exe("product","admin_details") } { if ($method->result == FALSE || !$product) } { $block->display("core:method_error") } {else}
|
||||
<div align="center">
|
||||
<input type="submit" onclick="addCart('cart')" name="cart" value="{translate module=product}cart{/translate}" class="form_button">
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
<form id="product_view" name="product_view" method="post" action="">
|
||||
|
||||
<input type="hidden" id="page" name="_page" value="">
|
||||
<input type="hidden" name="do[]" value="cart:admin_add">
|
||||
<input type="hidden" name="product_id" value="{$product.id}">
|
||||
<input type="hidden" name="_escape" value="1">
|
||||
<input type="hidden" name="account_id" value="{$VAR.account_id}">
|
||||
{if $list->translate("product_translate","name,description_full", "product_id", $product.id, "translate_product")}
|
||||
{/if}
|
||||
<a href="javascript:addCart('checkout');"></a>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td width="50%"> <b>
|
||||
{$translate_product.name}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="50%">{$translate_product.description_full} </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_sku
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"><b> </b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="50%">
|
||||
{$product.sku}
|
||||
</td>
|
||||
<td width="50%" valign="middle">
|
||||
{if $product.cart_multiple} Quantity: <input name="quantity" type="text" id="quantity" value="1" size="3" maxlength="3">{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_type
|
||||
{/translate}
|
||||
</b><br>
|
||||
</td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_taxable
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{if $product.price_type == "0"}
|
||||
{translate module=product}
|
||||
price_type_one
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $product.price_type == "1"}
|
||||
{translate module=product}
|
||||
price_type_recurr
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $product.price_type == "2"}
|
||||
{translate module=product}
|
||||
price_type_trial
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{if $product.taxable}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $product.price_type == "1" }
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
field_price_recurr_type
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="50%">
|
||||
<select name="recurr_schedule" >
|
||||
{foreach from=$price item=price_recurr key=key}
|
||||
<option value="{$key}" {if $product.price_recurr_default == $key} selected{/if}>
|
||||
{$list->format_currency($price_recurr.base,$smarty.const.SESS_CURRENCY)}
|
||||
|
||||
{if $key == "0" }
|
||||
{translate module=product}
|
||||
recurr_week
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "1" }
|
||||
{translate module=product}
|
||||
recurr_month
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "2" }
|
||||
{translate module=product}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "3" }
|
||||
{translate module=product}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "4" }
|
||||
{translate module=product}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "5" }
|
||||
{translate module=product}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "6" }
|
||||
{translate module=product}
|
||||
recurr_threeyear
|
||||
{/translate}
|
||||
{/if}
|
||||
+
|
||||
{$list->format_currency($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}setup{/translate}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{$list->format_currency($price.base, $smarty.const.SESS_CURRENCY)}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->format_currency($price.setup, $smarty.const.SESS_CURRENCY)}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $product.price_type == "2"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="76%">
|
||||
{translate module=product sku=$trial.sku}
|
||||
trial_desc
|
||||
{/translate} <br>
|
||||
{if $product.price_trial_length_type == "0"}
|
||||
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
|
||||
trial_length_days
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $product.price_trial_length_type == "1"}
|
||||
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
|
||||
trial_length_weeks
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $product.price_trial_length_type == "2"}
|
||||
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
|
||||
trial_length_months
|
||||
{/translate}
|
||||
{/if}
|
||||
<br>
|
||||
{translate module=product sku2=$trial.sku}
|
||||
trial_bill_desc
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $attr}<br>
|
||||
{foreach from=$attr item=attr_arr key=key}
|
||||
{assign var=attr_id value=$attr_arr.id}
|
||||
{if $attr_arr.type == "0"}
|
||||
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
|
||||
|
||||
<input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked{/if} >
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == "1"}
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
|
||||
<input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20" >
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == "2"}
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
|
||||
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
|
||||
|
||||
<option value="{$attr_menu.name}">
|
||||
{$attr_menu.name}
|
||||
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_menu.base > 0 && $attr_menu.setup > 0}
|
||||
+
|
||||
{elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}:
|
||||
{/if}
|
||||
{if $attr_menu.setup > 0}
|
||||
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
|
||||
{if $product.host}
|
||||
<br>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{translate module=product}
|
||||
domain_options
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
{if $product.host_allow_domain}
|
||||
<input type="radio" id="register" name="domain_type" value="register" onclick="domainUpdate('0','0','register'); showIFrame('iframeDomain',500,100,'?_page=host_tld:iframe_register&_escape=1');">
|
||||
{translate module=product}
|
||||
domain_register
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" id="transfer" name="domain_type" value="transfer" onclick="domainUpdate('0','0','transfer'); showIFrame('iframeDomain',500,100,'?_page=host_tld:iframe_transfer&_escape=1');">
|
||||
{translate module=product}
|
||||
domain_transfer
|
||||
{/translate}
|
||||
{/if}
|
||||
<br>
|
||||
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onclick="domainUpdate('0','0','ns_transfer'); showIFrame('iframeDomain',500,70,'?_page=host_tld:iframe_ns_transfer&_escape=1');">
|
||||
{translate module=product}
|
||||
domain_ns_transfer
|
||||
{/translate}
|
||||
{if $product.host_allow_host_only}
|
||||
<br>
|
||||
<input type="radio" id="ip" name="domain_type" value="ip" onclick="domainUpdate('0','0','ip'); hideIFrame('iframeDomain');">
|
||||
{translate module=product}
|
||||
domain_ip
|
||||
{/translate}
|
||||
<br>
|
||||
{/if}
|
||||
<input type="hidden" id="domain_name" name="domain_name" value="0">
|
||||
<input type="hidden" id="domain_tld" name="domain_tld" value="0">
|
||||
<input type="hidden" id="domain_option" name="domain_option" value="0">
|
||||
<iframe name="iframeDomain" id="iframeDomain" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" ALLOWTRANSPARENCY="false" frameborder="0" class="row1"><br></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false) }
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
|
||||
|
||||
{if $product.prod_plugin}
|
||||
<tr valign="top">
|
||||
<td align="left">
|
||||
{plugin type=product name=$product.prod_plugin_file name_prefix=order_ data=$product.prod_plugin_data admin=true }
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</form>
|
||||
<div style="text-align: center;">
|
||||
<input type="submit" onclick="addCart('cart','{$product.host}')" name="cart" value="{t}Add to Cart{/t}" class="form_button"/><br/>
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<!-- Define the update delete function -->
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
|
||||
function domainUpdate(domain,tld,type)
|
||||
{
|
||||
document.getElementById("domain_name").value = domain;
|
||||
document.getElementById("domain_tld").value = tld;
|
||||
document.getElementById("domain_option").value = type;
|
||||
}
|
||||
|
||||
function addCart(addtype)
|
||||
{
|
||||
var hosting = '{/literal}{$product.host}{literal}';
|
||||
if (hosting == "1")
|
||||
{
|
||||
var domain_option =document.getElementById("domain_option").value;
|
||||
var domain_name =document.getElementById("domain_name").value;
|
||||
var domain_tld =document.getElementById("domain_tld").value;
|
||||
<form id="view" name="product_view" method="post" action="" enctype="multipart/form-data">
|
||||
{if $list->translate('product_translate','name,description_full','product_id',$product.id,'translate_product')}{/if}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td><b>{$translate_product.name}</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td>{$translate_product.description_full}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=sku}</b></td>
|
||||
<td style="width: 50%;"> </td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td style="width: 50%;">{$product.sku}</td>
|
||||
<td style="width: 50%;" valign="middle">{if $product.cart_multiple} {t}Quantity{/t}: <input name="quantity" type="text" id="quantity" value="1" size="3" maxlength="3"/>{/if}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_type}</b></td>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=taxable}</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;">{$list->menu_staticlist('pricetype','','',$product.price_type,'form_menu')}</td>
|
||||
<td style="width: 50%;">{$list->bool('',$product.taxable,'form_field')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $product.price_type == '1'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_recurr_type}</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td style="width: 50%;">
|
||||
<select name="recurr_schedule">
|
||||
{foreach from=$price item=price_recurr key=key}
|
||||
<option value="{$key}" {if $product.price_recurr_default == $key} selected="selected"{/if}>
|
||||
{$list->format_currency($price_recurr.base,$smarty.const.SESS_CURRENCY)}
|
||||
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
|
||||
{if $price_recurr.setup > 0}+ {$list->format_currency($price_recurr.setup,$smarty.const.SESS_CURRENCY)} {t}Setup{/t}{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_base}</b></td>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_setup}</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;">{$list->format_currency($price.base,$smarty.const.SESS_CURRENCY)}</td>
|
||||
<td style="width: 50%;">{$list->format_currency($price.setup,$smarty.const.SESS_CURRENCY)}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $product.price_type == '2'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="76%">
|
||||
{translate module=product sku=$trial.sku}trial_desc{/translate}<br/>
|
||||
{if $product.price_trial_length_type == '0'}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_days{/translate}{/if}
|
||||
{if $product.price_trial_length_type == '1'}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_weeks{/translate}{/if}
|
||||
{if $product.price_trial_length_type == '2'}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_months{/translate}{/if}
|
||||
<br/>
|
||||
{translate module=product sku2=$trial.sku}trial_bill_desc{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $attr}
|
||||
<br/>
|
||||
{foreach from=$attr item=attr_arr key=key}
|
||||
{assign var=attr_id value=$attr_arr.id}
|
||||
{if $attr_arr.type == '0'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0} + {/if}
|
||||
{$list->format_currency($attr_arr.price_setup,$smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}setup{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%"> <input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked="checked"{/if}/> {$attr_arr.description}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == '1'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0} + {/if}
|
||||
{$list->format_currency($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}setup{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%"> <input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20"/> {$attr_arr.description}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == '2'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0} + {/if}
|
||||
{$list->format_currency($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}setup{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
|
||||
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
|
||||
<option value="{$attr_menu.name}">
|
||||
{$attr_menu.name}
|
||||
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_menu.base > 0 && $attr_menu.setup > 0} + {elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}: {/if}
|
||||
{if $attr_menu.setup > 0}
|
||||
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}setup{/translate}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if $product.host}
|
||||
<br/>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{translate module=product}domain_options{/translate}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
{if $product.host_allow_domain}
|
||||
<input type="radio" id="register" name="domain_type" value="register" onclick="domainUpdate('0','0','register'); showIFrame('iframeDomain',500,100,'?_page=host_tld:iframe_register&_escape=1');"/>
|
||||
{translate module=product}domain_register{/translate}<br/>
|
||||
<input type="radio" id="transfer" name="domain_type" value="transfer" onclick="domainUpdate('0','0','transfer'); showIFrame('iframeDomain',500,100,'?_page=host_tld:iframe_transfer&_escape=1');"/>
|
||||
{translate module=product}domain_transfer{/translate}
|
||||
{/if}
|
||||
<br/>
|
||||
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onclick="domainUpdate('0','0','ns_transfer'); showIFrame('iframeDomain',500,70,'?_page=host_tld:iframe_ns_transfer&_escape=1');"/>
|
||||
{translate module=product}domain_ns_transfer{/translate}
|
||||
{if $product.host_allow_host_only}
|
||||
<br/>
|
||||
<input type="radio" id="ip" name="domain_type" value="ip" onclick="domainUpdate('0','0','ip'); hideIFrame('iframeDomain');"/>
|
||||
{translate module=product}domain_ip{/translate}<br/>
|
||||
{/if}
|
||||
<input type="hidden" id="domain_name" name="domain_name" value="0"/>
|
||||
<input type="hidden" id="domain_tld" name="domain_tld" value="0"/>
|
||||
<input type="hidden" id="domain_option" name="domain_option" value="0"/>
|
||||
<iframe name="iframeDomain" id="iframeDomain" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" ALLOWTRANSPARENCY="false" frameborder="0" class="row1"><br></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $product.prod_plugin}
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td align="left">{osb f=plugin type=product name=$product.prod_plugin_file name_prefix=order_ data=$product.prod_plugin_data admin=true}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
if(domain_option == "0")
|
||||
{
|
||||
alert("{/literal}{translate module=product}host_domain_opt{/translate}{literal}");
|
||||
return;
|
||||
}
|
||||
|
||||
if(domain_name == "0" || domain_tld == "0")
|
||||
{
|
||||
if(domain_option != "ip")
|
||||
{
|
||||
alert("{/literal}{translate module=product}host_domain_inv{/translate}{literal}");
|
||||
return;
|
||||
<div>
|
||||
<input type="hidden" id="page" name="_page" value=""/>
|
||||
<input type="hidden" name="do[]" value="cart:admin_add"/>
|
||||
<input type="hidden" name="product_id" value="{$product.id}"/>
|
||||
<input type="hidden" name="account_id" value="{$VAR.account_id}"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript" src="themes/default/cart.js"></script>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
{literal}
|
||||
function attrValidate(addtype) {
|
||||
var val_arr = new Array(2);
|
||||
var i=0;
|
||||
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
|
||||
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
|
||||
i++;
|
||||
{/if}{/foreach} {literal}
|
||||
for(ii=0; ii < i; ii++) {
|
||||
if(!document.getElementById(val_arr[ii][0]).value) {
|
||||
document.getElementById(val_arr[ii][0]).focus();
|
||||
if(val_arr[ii][2] == "1") {
|
||||
alert("You must select an option for \""+val_arr[ii][1]+"\"");
|
||||
} else {
|
||||
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
attrValidate(addtype);
|
||||
}
|
||||
|
||||
function attrValidate(addtype)
|
||||
{
|
||||
var val_arr = new Array(2);
|
||||
var i=0;
|
||||
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
|
||||
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
|
||||
i++;
|
||||
{/if}{/foreach} {literal}
|
||||
for(ii=0; ii < i; ii++)
|
||||
{
|
||||
if(!document.getElementById(val_arr[ii][0]).value)
|
||||
{
|
||||
document.getElementById(val_arr[ii][0]).focus();
|
||||
if(val_arr[ii][2] == "1") {
|
||||
alert("You must select an option for \""+val_arr[ii][1]+"\"");
|
||||
} else {
|
||||
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// product plugin validation:
|
||||
var val_plugin=false;
|
||||
try{ val_plugin = product_plugin_validate(); } catch(e) { val_plugin = true; }
|
||||
if(val_plugin) doCart(addtype);
|
||||
}
|
||||
// product plugin validation:
|
||||
var val_plugin=false;
|
||||
try{ val_plugin = product_plugin_validate(); } catch(e) { val_plugin = true; }
|
||||
if(val_plugin) doCart(addtype);
|
||||
|
||||
}
|
||||
|
||||
function doCart(addtype)
|
||||
{
|
||||
if(addtype == 'cart')
|
||||
{
|
||||
document.getElementById('page').value = 'cart:admin_view';
|
||||
document.getElementById('product_view').action = '';
|
||||
}
|
||||
else if(addtype == 'checkout')
|
||||
{
|
||||
document.getElementById('page').value = 'checkout:checkout';
|
||||
document.getElementById('product_view').action = '';
|
||||
|
||||
}
|
||||
document.product_view.submit();
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
{/literal}
|
||||
//-->
|
||||
</script>
|
||||
{/if}
|
||||
|
@@ -1,51 +0,0 @@
|
||||
{$method->exe_noauth("product_cat","user_menu")}
|
||||
|
||||
{if $product_cat != "" || $smarty.const.SHOW_DOMAIN_LINK }
|
||||
{foreach from=$product_cat item=record}
|
||||
<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 width="65%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td class="table_heading_cart"> <a href="{$URL}?_page=product_cat:t_{$record.template}&id={$record.id}">
|
||||
<b>
|
||||
{if $list->translate("product_cat_translate","name,description","product_cat_id", $record.id, "cat_translate") }
|
||||
{$cat_translate.name}
|
||||
{else}
|
||||
{$record.name}
|
||||
{/if}
|
||||
</b> </a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<p>
|
||||
{if $record.thumbnail != "" }
|
||||
<a href="{$URL}?_page=product_cat:t_{$record.template}&id={$record.id}"><img align="left" src="{$URL}{$smarty.const.URL_IMAGES}{$record.thumbnail}" hspace="5" border="0"></a>
|
||||
{/if}
|
||||
{if $cat_translate.description!= "" }
|
||||
{$cat_translate.description}
|
||||
{else}
|
||||
No Description
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
{/foreach}
|
||||
{/if}
|
@@ -1,577 +1,334 @@
|
||||
{ $method->exe("product","details") } { if ($method->result == FALSE || !$product) } { $block->display("core:method_error") } {else}
|
||||
{if $product}
|
||||
|
||||
<form id="product_view" name="product_view" method="post" action="">
|
||||
<input type="hidden" id="page" name="_page" value="">
|
||||
<input type="hidden" name="do[]" value="cart:add">
|
||||
<input type="hidden" name="product_id" value="{$product.id}">
|
||||
<input type="hidden" name="s" value="{$SESS}">
|
||||
{if $list->translate("product_translate","name,description_full", "product_id", $product.id, "translate_product")}
|
||||
{/if}
|
||||
<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 width="65%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
|
||||
<tr valign="top">
|
||||
<td width="78%" >
|
||||
<p>
|
||||
{if $list->translate("product_translate","name,description_short,description_full","product_id", $product.id, "prod_translate") }
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td width="22%" valign="middle" align="right"> <b> </b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="body" bgcolor="#FFFFFF">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr valign="top">
|
||||
<td width="92%" align="left" bgcolor="#FFFFFF">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%">
|
||||
{if $product.thumbnail != ""}
|
||||
<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" hspace="5" border="0">
|
||||
{/if}
|
||||
{$translate_product.description_full}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="92%" align="left">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_sku
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"><b>
|
||||
{translate}
|
||||
currency
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%">
|
||||
{$product.sku}
|
||||
</td>
|
||||
<td width="50%" valign="middle">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="26%">
|
||||
{literal}
|
||||
<script language="JavaScript"> function CurrencyChange(obj) { document.location='?_page=product:details&id={/literal}{$VAR.id}{literal}&cyid='+obj.value; } </script>
|
||||
{/literal}
|
||||
{$list->currency_list("cyid_arr")}
|
||||
<select name="cyid" onChange="CurrencyChange(this);">
|
||||
{foreach key=key item=item from=$cyid_arr}
|
||||
<option value="{$key}" {if $key == $smarty.const.SESS_CURRENCY}{assign var=currency_thumbnail value=$item.iso}selected{/if}>
|
||||
{$item.iso}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td width="74%"> <img src="themes/{$THEME_NAME}/images/currency/{$currency_thumbnail}.gif" border="0">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_type
|
||||
{/translate}
|
||||
</b><br>
|
||||
</td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_taxable
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{if $product.price_type == "0"}
|
||||
{translate module=product}
|
||||
price_type_one
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $product.price_type == "1"}
|
||||
{translate module=product}
|
||||
price_type_recurr
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $product.price_type == "2"}
|
||||
{translate module=product}
|
||||
price_type_trial
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{if $product.taxable}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $product.price_type == "1" }
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
field_price_recurr_type
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%">
|
||||
<select name="recurr_schedule" >
|
||||
{foreach from=$price item=price_recurr key=key}
|
||||
<option value="{$key}" {if $product.price_recurr_default == $key} selected{/if}>
|
||||
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
|
||||
|
||||
{if $key == "0" }
|
||||
{translate module=product}
|
||||
recurr_week
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "1" }
|
||||
{translate module=product}
|
||||
recurr_month
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "2" }
|
||||
{translate module=product}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "3" }
|
||||
{translate module=product}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "4" }
|
||||
{translate module=product}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "5" }
|
||||
{translate module=product}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "6" }
|
||||
{translate module=product}
|
||||
recurr_threeyear
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{if $price_recurr.setup > 0}
|
||||
+
|
||||
{$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{$list->format_currency($price.base, $smarty.const.SESS_CURRENCY)}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->format_currency($price.setup, $smarty.const.SESS_CURRENCY)}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $product.price_type == "2"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top">
|
||||
<td width="76%">
|
||||
{translate module=product sku=$trial.sku}
|
||||
trial_desc
|
||||
{/translate}
|
||||
<a href="?_page=product:details&id={$product.price_trial_prod}">
|
||||
{translate}
|
||||
view
|
||||
{/translate}
|
||||
</a><br>
|
||||
{if $product.price_trial_length_type == "0"}
|
||||
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
|
||||
trial_length_days
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $product.price_trial_length_type == "1"}
|
||||
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
|
||||
trial_length_weeks
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $product.price_trial_length_type == "2"}
|
||||
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
|
||||
trial_length_months
|
||||
{/translate}
|
||||
{/if}
|
||||
<br>
|
||||
{translate module=product sku2=$trial.sku}
|
||||
trial_bill_desc
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $attr}
|
||||
<br>
|
||||
{foreach from=$attr item=attr_arr key=key}
|
||||
{assign var=attr_id value=$attr_arr.id}
|
||||
{if $attr_arr.type == "0"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked{/if} >
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{elseif $attr_arr.type == "1"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20" >
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{elseif $attr_arr.type == "3"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea>
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{elseif $attr_arr.type == "2"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
|
||||
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
|
||||
|
||||
<option value="{$attr_menu.name}">
|
||||
{$attr_menu.name}
|
||||
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_menu.base > 0 && $attr_menu.setup > 0}
|
||||
+
|
||||
{elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}:
|
||||
{/if}
|
||||
{if $attr_menu.setup > 0}
|
||||
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if $product.host}
|
||||
<br>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{translate module=product}
|
||||
domain_options
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
{if $product.host_allow_domain}
|
||||
<input type="radio" id="register" name="domain_type" value="register" onClick="domainUpdate('0','0','register'); showIFrame('iframeDomainDetails',480,95,'?_page=host_tld:iframe_register&_escape=1');">
|
||||
{translate module=product}
|
||||
domain_register
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" id="transfer" name="domain_type" value="transfer" onClick="domainUpdate('0','0','transfer'); showIFrame('iframeDomainDetails',480,110,'?_page=host_tld:iframe_transfer&_escape=1');">
|
||||
{translate module=product}
|
||||
domain_transfer
|
||||
{/translate}
|
||||
{/if}
|
||||
<br>
|
||||
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onClick="domainUpdate('0','0','ns_transfer'); showIFrame('iframeDomainDetails',480,70,'?_page=host_tld:iframe_ns_transfer&_escape=1');">
|
||||
{translate module=product}
|
||||
domain_ns_transfer
|
||||
{/translate}
|
||||
{if $product.host_allow_host_only}
|
||||
<br>
|
||||
<input type="radio" id="ip" name="domain_type" value="ip" onClick="domainUpdate('0','0','ip'); hideIFrame('iframeDomainDetails');">
|
||||
{translate module=product}
|
||||
domain_ip
|
||||
{/translate}
|
||||
<br>
|
||||
{/if}
|
||||
<input type="hidden" id="domain_name" name="domain_name" value="0">
|
||||
<input type="hidden" id="domain_tld" name="domain_tld" value="0">
|
||||
<input type="hidden" id="domain_option" name="domain_option" value="0">
|
||||
<iframe name="iframeDomainDetails" id="iframeDomainDetails" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="false" frameborder="0" class="body" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"><br></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{literal}
|
||||
<!-- Define the update delete function -->
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
function domainUpdate(domain,tld,type)
|
||||
{
|
||||
document.getElementById("domain_name").value = domain;
|
||||
document.getElementById("domain_tld").value = tld;
|
||||
document.getElementById("domain_option").value = type;
|
||||
}
|
||||
function addCart(addtype)
|
||||
{
|
||||
var hosting = '{/literal}{$product.host}{literal}';
|
||||
if (hosting == "1")
|
||||
{
|
||||
var domain_option=document.getElementById("domain_option").value;
|
||||
var domain_name =document.getElementById("domain_name").value;
|
||||
var domain_tld =document.getElementById("domain_tld").value;
|
||||
|
||||
if(domain_option == "0")
|
||||
{
|
||||
alert("{/literal}{translate module=product}host_domain_opt{/translate}{literal}");
|
||||
return;
|
||||
}
|
||||
|
||||
if(domain_name == "0" || domain_tld == "0")
|
||||
{
|
||||
if(domain_option != "ip")
|
||||
{
|
||||
alert("{/literal}{translate module=product}host_domain_inv{/translate}{literal}");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
attrValidate(addtype);
|
||||
}
|
||||
function attrValidate(addtype)
|
||||
{
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false) || ! $product}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
|
||||
<form id="view" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
{if $list->translate('product_translate','name,description_full','product_id',$product.id,'translate_product')}{/if}
|
||||
<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>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
|
||||
<tr valign="top">
|
||||
<td style="width: 75%;">
|
||||
{if $list->translate('product_translate','name,description_short,description_full','product_id',$product.id,'prod_translate')}
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
</td>
|
||||
<td style="width: 25%;" valign="middle" align="right"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="body">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr valign="top">
|
||||
<td align="left">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td style="width: 50%;">
|
||||
{if $product.thumbnail != ''}<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" alt="" hspace="5" style="border: 0px"/>{/if}
|
||||
{$translate_product.description_full}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="left">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=sku}</b></td>
|
||||
<td style="width: 50%;"><b>{t}Currency{/t}</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="body">
|
||||
<td style="width: 50%;">{$product.sku}</td>
|
||||
<td style="width: 50%;" valign="middle">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td style="width: 25%;">
|
||||
{$list->currency_list('cyid_arr')}
|
||||
<select name="cyid" onchange="CurrencyChange(this);">
|
||||
{foreach key=key item=item from=$cyid_arr}
|
||||
<option value="{$key}" {if $key == $smarty.const.SESS_CURRENCY}{assign var=currency_thumbnail value=$item.iso}selected="selected"{/if}>{$item.iso}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td style="width: 75%;"><img src="themes/{$THEME_NAME}/images/currency/{$currency_thumbnail}.gif" alt="$" style="border: 0px;"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_type}</b></td>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=taxable}</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;">{$list->menu_staticlist('pricetype','','',$product.price_type,'form_menu')}</td>
|
||||
<td style="width: 50%;">{$list->bool('',$product.taxable,'form_field')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $product.price_type == '1'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_recurr_type}</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="body">
|
||||
<td style="width: 50%;">
|
||||
<select name="recurr_schedule">
|
||||
{foreach from=$price item=price_recurr key=key}
|
||||
<option value="{$key}" {if $product.price_recurr_default == $key} selected="selected"{/if}>
|
||||
{$list->format_currency($price_recurr.base,$smarty.const.SESS_CURRENCY)}
|
||||
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
|
||||
{if $price_recurr.setup > 0}+ {$list->format_currency($price_recurr.setup,$smarty.const.SESS_CURRENCY)} {t}Setup{/t}{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_base}</b></td>
|
||||
<td style="width: 50%;"><b>{osb f=tf field=price_setup}</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 50%;">{$list->format_currency($price.base,$smarty.const.SESS_CURRENCY)}</td>
|
||||
<td style="width: 50%;">{$list->format_currency($price.setup,$smarty.const.SESS_CURRENCY)}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $product.price_type == '2'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top">
|
||||
<td width="76%">
|
||||
{translate module=product sku=$trial.sku}trial_desc{/translate} <a href="?_page=product:details&id={$product.price_trial_prod}">{translate}view{/translate}</a><br/>
|
||||
{if $product.price_trial_length_type == "0"}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_days{/translate}{/if}
|
||||
{if $product.price_trial_length_type == "1"}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_weeks{/translate}{/if}
|
||||
{if $product.price_trial_length_type == "2"}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_months{/translate}{/if}<br/>
|
||||
{translate module=product sku2=$trial.sku}trial_bill_desc{/translate}
|
||||
This trial will last for %%length%% weeks before it expires and you are billed for the full cost of SKU %%sku1%%.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $attr}
|
||||
<br/>
|
||||
{foreach from=$attr item=attr_arr key=key}
|
||||
{assign var=attr_id value=$attr_arr.id}
|
||||
{if $attr_arr.type == '0'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0} + {/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{t}Setup{/t}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%"><input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked="checked"{/if}/>{$attr_arr.description}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{elseif $attr_arr.type == "1"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0} + {/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{t}Setup{/t}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%"><input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20"/>{$attr_arr.description}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{elseif $attr_arr.type == "3"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0} + {/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{t}Setup{/t}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%"><textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea> {$attr_arr.description}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{elseif $attr_arr.type == '2'}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td width="30%" valign="middle" align="right"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<select id="attr_{$attr_id}" name="attr[{$attr_id}]">
|
||||
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
|
||||
<option value="{$attr_menu.name}">
|
||||
{$attr_menu.name}
|
||||
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_menu.base > 0 && $attr_menu.setup > 0} + {elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}: {/if}
|
||||
{if $attr_menu.setup > 0}
|
||||
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
|
||||
{t}Setup{/t}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if $product.host}
|
||||
<br/>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>{t}Domain Transfer / Registrations Options{/t}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
{if $product.host_allow_domain}
|
||||
<input type="radio" id="register" name="domain_type" value="register" onClick="domainUpdate('0','0','register'); showIFrame('iframeDomainDetails',480,95,'?_page=host_tld:iframe_register&_escape=1');"> {translate module=product}domain_register{/translate}<br/>
|
||||
<input type="radio" id="transfer" name="domain_type" value="transfer" onClick="domainUpdate('0','0','transfer'); showIFrame('iframeDomainDetails',480,110,'?_page=host_tld:iframe_transfer&_escape=1');"> {translate module=product}domain_transfer{/translate}<br/>
|
||||
{/if}
|
||||
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onClick="domainUpdate('0','0','ns_transfer'); showIFrame('iframeDomainDetails',480,70,'?_page=host_tld:iframe_ns_transfer&_escape=1');">{translate module=product}domain_ns_transfer{/translate}
|
||||
{if $product.host_allow_host_only}
|
||||
<br/>
|
||||
<input type="radio" id="ip" name="domain_type" value="ip" onClick="domainUpdate('0','0','ip'); hideIFrame('iframeDomainDetails');">{t}All I need is an IP based hosting plan.{/t}<br/>
|
||||
{/if}
|
||||
<input type="hidden" id="domain_name" name="domain_name" value="0">
|
||||
<input type="hidden" id="domain_tld" name="domain_tld" value="0">
|
||||
<input type="hidden" id="domain_option" name="domain_option" value="0">
|
||||
<iframe name="iframeDomainDetails" id="iframeDomainDetails" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="false" frameborder="0" class="body" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"><br></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
<script type="text/javascript" src="themes/default/cart.js"></script>
|
||||
<script type="text/javascript">
|
||||
<!-- START
|
||||
{literal}
|
||||
function CurrencyChange(obj) { document.location='?_page=product:details&id={/literal}{$VAR.id}{literal}&cyid='+obj.value; }
|
||||
function attrValidate(addtype) {
|
||||
|
||||
var val_arr = new Array(2);
|
||||
var i=0;
|
||||
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
|
||||
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
|
||||
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
|
||||
i++;
|
||||
{/if}{/foreach} {literal}
|
||||
{/if}{/foreach} {literal}
|
||||
for(ii=0; ii < i; ii++)
|
||||
{
|
||||
if(!document.getElementById(val_arr[ii][0]).value)
|
||||
{
|
||||
document.getElementById(val_arr[ii][0]).focus();
|
||||
if(!document.getElementById(val_arr[ii][0]).value) {
|
||||
document.getElementById(val_arr[ii][0]).focus();
|
||||
if(val_arr[ii][2] == "1") {
|
||||
alert("You must select an option for \""+val_arr[ii][1]+"\"");
|
||||
} else {
|
||||
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
|
||||
}
|
||||
} else {
|
||||
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// product plugin validation:
|
||||
var val_plugin=false;
|
||||
try{ val_plugin = product_plugin_validate(); } catch(e) { val_plugin = true; }
|
||||
try{ val_plugin = product_plugin_validate(); } catch(e) { val_plugin = true; }
|
||||
if(val_plugin) doCart(addtype);
|
||||
}
|
||||
function doCart(addtype)
|
||||
{
|
||||
if(addtype == 'cart')
|
||||
{
|
||||
document.getElementById('page').value = 'cart:cart';
|
||||
document.getElementById('product_view').action = '{/literal}{$URL}{literal}';
|
||||
}
|
||||
else if(addtype == 'checkout')
|
||||
{
|
||||
document.getElementById('page').value = 'checkout:checkout';
|
||||
document.getElementById('product_view').action = '{/literal}{$SSL_URL}{literal}';
|
||||
}
|
||||
document.product_view.submit();
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $product.cart_multiple}
|
||||
<tr valign="top">
|
||||
<td align="left"><strong>Quantity:</strong> <input name="quantity" type="text" id="quantity" value="1" size="3" maxlength="3"></td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $product.prod_plugin}
|
||||
<tr valign="top">
|
||||
<td align="left">
|
||||
{plugin type=product name=$product.prod_plugin_file name_prefix=order_ data=$product.prod_plugin_data }
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
</form>
|
||||
<p align="center">
|
||||
<input type="submit" onClick="addCart('cart')" name="cart2" value="{translate module=product}cart{/translate}" class="form_button">
|
||||
<input type="submit" onClick="addCart('checkout')" name="checkout2" value="{translate module=product}checkout{/translate}" class="form_button">
|
||||
}
|
||||
{/literal}
|
||||
//-->
|
||||
</script>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $product.cart_multiple}
|
||||
<tr valign="top">
|
||||
<td align="left"><strong>Quantity:</strong> <input name="quantity" type="text" id="quantity" value="1" size="3" maxlength="3"></td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $product.prod_plugin}
|
||||
<tr valign="top">
|
||||
<td align="left">{osb f=plugin type=product name=$product.prod_plugin_file name_prefix=order_ data=$product.prod_plugin_data}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="hidden" id="page" name="_page" value=""/>
|
||||
<input type="hidden" name="do[]" value="cart:add"/>
|
||||
<input type="hidden" name="product_id" value="{$product.id}"/>
|
||||
<input type="hidden" name="s" value="{$SESS}"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<p style="text-align: center;">
|
||||
<input type="submit" onclick="addCart('cart','{$product.host}')" name="cart2" value="{t}Add to Cart{/t}" class="form_button"/>
|
||||
<input type="submit" onclick="addCart('checkout','{$product.host}')" name="checkout2" value="{t}Add to Cart & Checkout{/t}" class="form_button"/>
|
||||
</p>
|
||||
{/if}
|
@@ -1,197 +1,117 @@
|
||||
{ $block->display("core:top_clean") }
|
||||
|
||||
{ $method->exe("product","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$product item=product}
|
||||
{$method->exe($meth.0,'view')}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
|
||||
<form name="product_view" method="post" action="">
|
||||
<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 width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="98%" valign="top"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td>
|
||||
{translate module=product}
|
||||
field_assoc_req_prod
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b> </b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="product_assoc_req_prod_type" value="0" {if $product.assoc_req_prod_type == "0"}checked{/if}>
|
||||
{translate module=product}
|
||||
assoc_req_all
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" name="product_assoc_req_prod_type" value="1" {if $product.assoc_req_prod_type == "1"}checked{/if}>
|
||||
{translate module=product}
|
||||
assoc_req_one
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<b> </b> </td>
|
||||
<td width="2%" align="right" valign="top">
|
||||
{ $list->menu_multi($product.assoc_req_prod, "product_assoc_req_prod", "product", "sku", "10", "", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr class="row2">
|
||||
<td width="99%" valign="top">
|
||||
{translate module=product}
|
||||
field_assoc_grant_prod
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="1%" align="right">
|
||||
{ $list->menu_multi($product.assoc_grant_prod, "product_assoc_grant_prod", "product", "sku", "10", "", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="98%" valign="top"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td>
|
||||
{translate module=product}
|
||||
field_assoc_grant_group
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b> </b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<input type="radio" name="product_assoc_grant_group_type" value="0" {if $product.assoc_grant_group_type == "0"}checked{/if}>
|
||||
{translate module=product}
|
||||
assoc_group_limited
|
||||
{/translate}
|
||||
<input type="text" name="product_assoc_grant_group_days" value="{$product.assoc_grant_group_days}" size="3">
|
||||
<br>
|
||||
<input type="radio" name="product_assoc_grant_group_type" value="1" {if $product.assoc_grant_group_type == "1"}checked{/if}>
|
||||
{translate module=product}
|
||||
assoc_group_subscription
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" name="product_assoc_grant_group_type" value="2" {if $product.assoc_grant_group_type == "2"}checked{/if}>
|
||||
{translate module=product}
|
||||
assoc_group_forever
|
||||
{/translate}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="2%" align="left" valign="top">
|
||||
{ $list->menu_multi($product.assoc_grant_group, "product_assoc_grant_group", "group", "name", "10", "", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $product.price_type == "1"}
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="96%" valign="top"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td>
|
||||
{translate module=product}
|
||||
field_price_recurr_modify
|
||||
{/translate}
|
||||
{ $list->bool("product_price_recurr_modify", $product.price_recurr_modify, "\" onChange=\"document.forms.product_view.submit()\"") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<!--
|
||||
{translate module=product}
|
||||
field_modify_waive_setup
|
||||
{/translate}
|
||||
{ $list->bool("product_modify_waive_setup", $product.modify_waive_setup, "form_menu") }
|
||||
-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="4%" align="left" valign="top">
|
||||
{if $product.host == 1}
|
||||
{html_menu_product_host name="product_modify_product_arr" default=$product.modify_product_arr exclude=$product.id}
|
||||
{else}
|
||||
{html_menu_product_subscription name="product_modify_product_arr" default=$product.modify_product_arr exclude=$product.id}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
<tr>
|
||||
<td valign="middle" align="right">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="do[]" value="product:update">
|
||||
<input type="hidden" name="_page" value="product:iframe_associations">
|
||||
<input type="hidden" name="_page_current" value="product:iframe_associations">
|
||||
<input type="hidden" name="product_id" value="{$product.id}">
|
||||
<input type="hidden" name="id" value="{$product.id}">
|
||||
<input type="hidden" name="product_price_base" value="{$product.price_base}">
|
||||
<input type="hidden" name="product_sku" value="{$product.sku}">
|
||||
<input type="hidden" name="product_avail_category_id" 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_group_avail" value="IGNORE-ARRAY-VALUE">
|
||||
</form>
|
||||
<form id="association" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
{/foreach}{/if}
|
||||
<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="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td colspan="2">{t}Product(s) Required for access to this Product{/t}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 85%;" valign="top">
|
||||
<input type="radio" name="product_assoc_req_prod_type" value="0" {if $record.assoc_req_prod_type == "0"}checked="checked"{/if}/>
|
||||
{$list->menu_staticlist('assoc_prod_type','','product_assoc_req_prod_type',0,'form_menu',false)}<br/>
|
||||
<input type="radio" name="product_assoc_req_prod_type" value="1" {if $record.assoc_req_prod_type == "1"}checked="checked"{/if}/>
|
||||
{$list->menu_staticlist('assoc_prod_type','','product_assoc_req_prod_type',1,'form_menu',false)}
|
||||
</td>
|
||||
<td style="width: 15%; text-align=right;" valign="top">{$list->menu_multi($record.assoc_req_prod,'product_assoc_req_prod','product','sku','10','10','form_menu')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr class="row2">
|
||||
<td style="width: 85%;" valign="top">{t}Purchasing This Product Grants Access to the Following Product(s){/t}</td>
|
||||
<td style="width: 15%; text-align=right;" valign="top">{$list->menu_multi($record.assoc_grant_prod,'product_assoc_grant_prod','product','sku','10','10','form_menu')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td colspan="3">{t}Purchasing This Product Grants Access to the Following Group(s){/t}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 85%;" valign="top">
|
||||
<input type="radio" name="product_assoc_grant_group_type" value="0" {if $record.assoc_grant_group_type == "0"}checked="checked"{/if}/>
|
||||
{$list->menu_staticlist('assoc_grant_type','','product_assoc_grant_group_type',0,'form_menu',false)}
|
||||
<input type="text" name="product_assoc_grant_group_days" value="{$record.assoc_grant_group_days}" size="3"/><br/>
|
||||
<input type="radio" name="product_assoc_grant_group_type" value="1" {if $record.assoc_grant_group_type == "1"}checked="checked"{/if}/>
|
||||
{$list->menu_staticlist('assoc_grant_type','','product_assoc_grant_group_type',1,'form_menu',false)}<br/>
|
||||
<input type="radio" name="product_assoc_grant_group_type" value="2" {if $record.assoc_grant_group_type == "2"}checked="checked"{/if}/>
|
||||
{$list->menu_staticlist('assoc_grant_type','','product_assoc_grant_group_type',2,'form_menu',false)}
|
||||
</td>
|
||||
<td style="width: 15%; text-align=right;" valign="top">{$list->menu_multi($record.assoc_grant_group,'product_assoc_grant_group','group','name','10','10','form_menu')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $record.price_type == '1'}
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td style="width: 85%;" valign="top">{t}Allow Modification of Service?{/t} {$list->bool('product_price_recurr_modify',$record.price_recurr_modify,'" onChange="document.forms.product_view.submit()')}
|
||||
<!--
|
||||
{translate module=product}field_modify_waive_setup{/translate}
|
||||
{$list->bool('product_modify_waive_setup',$record.modify_waive_setup,'form_menu')}
|
||||
-->
|
||||
</td>
|
||||
<td style="width: 15%; text-align=right;" valign="top">
|
||||
{if $record.host == 1}
|
||||
{osb f=html_menu_product_host name="product_modify_product_arr" default=$record.modify_product_arr exclude=$record.id size=10}
|
||||
{else}
|
||||
{osb f=html_menu_product_subscription name="product_modify_product_arr" default=$record.modify_product_arr exclude=$record.id size=10}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
<tr>
|
||||
<td valign="middle" align="right"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="do[]" value="product:update"/>
|
||||
<input type="hidden" name="_page" value="{$VAR._page}"/>
|
||||
<input type="hidden" name="_page_current" value="{$VAR._page}"/>
|
||||
<input type="hidden" name="product_id" value="{$record.id}"/>
|
||||
<input type="hidden" name="id" value="{$record.id}"/>
|
||||
<input type="hidden" name="product_price_base" value="{$record.price_base}"/>
|
||||
<input type="hidden" name="product_sku" value="{$record.sku}"/>
|
||||
<input type="hidden" name="product_avail_category_id" 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_group_avail" value="IGNORE-ARRAY-VALUE"/>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
@@ -1,66 +1,49 @@
|
||||
{ $block->display("core:top_clean") }
|
||||
|
||||
{ $method->exe("product","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$product item=product}
|
||||
{$list->unserial($product.price_group, "attr_group_array")}
|
||||
<form name="product_view" method="post" action="">
|
||||
{ $method->exe("product","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
{$list->unserial($record.price_group, "attr_group_array")}
|
||||
<form name="product_view" method="post" action="">
|
||||
<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 width="65%" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
<tr>
|
||||
<td>
|
||||
<div align="center">
|
||||
{translate module=product}
|
||||
field_price_group
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
<tr>
|
||||
<td><div style="text-align: center;">{translate module=product}field_price_group{/translate}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
<tr>
|
||||
<td>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}
|
||||
weekly
|
||||
{/translate}
|
||||
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}weekly{/translate}
|
||||
|
||||
{ $list->bool("product_price_group[0][show]", $attr_group_array[0].show, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{ if ($list->smarty_array("group","name"," AND pricing='1' ", "group_array")) }
|
||||
{ if ($list->smarty_array("group","name"," AND pricing='1' ", "group_array")) }
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
{$arr.name}
|
||||
</td>
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
{/translate}
|
||||
<tr>
|
||||
<td width="40%">{$arr.name}</td>
|
||||
<td width="30%">
|
||||
{translate module=product}field_price_base{/translate}
|
||||
<input type="text" name="product_price_group[0][{$arr.id}][price_base]" value="{$attr_group_array[0][$idx].price_base}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
{/translate}
|
||||
<td width="30%">
|
||||
{translate module=product}field_price_setup{/translate}
|
||||
<input type="text" name="product_price_group[0][{$arr.id}][price_setup]" value="{$attr_group_array[0][$idx].price_setup}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
@@ -73,15 +56,13 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}
|
||||
monthly
|
||||
{/translate}
|
||||
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}monthly{/translate}
|
||||
|
||||
{ $list->bool("product_price_group[1][show]", $attr_group_array[1].show, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
@@ -89,21 +70,15 @@
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
{$arr.name}
|
||||
</td>
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
{/translate}
|
||||
<tr>
|
||||
<td width="40%">{$arr.name}</td>
|
||||
<td width="30%">
|
||||
{translate module=product}field_price_base{/translate}
|
||||
<input type="text" name="product_price_group[1][{$arr.id}][price_base]" value="{$attr_group_array[1][$idx].price_base}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
{/translate}
|
||||
<td width="30%">
|
||||
{translate module=product}field_price_setup{/translate}
|
||||
<input type="text" name="product_price_group[1][{$arr.id}][price_setup]" value="{$attr_group_array[1][$idx].price_setup}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
@@ -112,15 +87,13 @@
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}
|
||||
quarterly
|
||||
{/translate}
|
||||
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}quarterly{/translate}
|
||||
|
||||
{ $list->bool("product_price_group[2][show]", $attr_group_array[2].show, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
@@ -128,20 +101,20 @@
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
{$arr.name}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
field_price_base
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[2][{$arr.id}][price_base]" value="{$attr_group_array[2][$idx].price_base}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
field_price_setup
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[2][{$arr.id}][price_setup]" value="{$attr_group_array[2][$idx].price_setup}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
@@ -151,15 +124,15 @@
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="150">
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}
|
||||
semianually
|
||||
semianually
|
||||
{/translate}
|
||||
|
||||
|
||||
{ $list->bool("product_price_group[3][show]", $attr_group_array[3].show, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
@@ -167,20 +140,20 @@
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
{$arr.name}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
field_price_base
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[3][{$arr.id}][price_base]" value="{$attr_group_array[3][$idx].price_base}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
field_price_setup
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[3][{$arr.id}][price_setup]" value="{$attr_group_array[3][$idx].price_setup}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
@@ -190,15 +163,15 @@
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="150">
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}
|
||||
anually
|
||||
anually
|
||||
{/translate}
|
||||
|
||||
|
||||
{ $list->bool("product_price_group[4][show]", $attr_group_array[4].show, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
@@ -206,20 +179,20 @@
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
{$arr.name}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
field_price_base
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[4][{$arr.id}][price_base]" value="{$attr_group_array[4][$idx].price_base}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
field_price_setup
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[4][{$arr.id}][price_setup]" value="{$attr_group_array[4][$idx].price_setup}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
@@ -229,15 +202,15 @@
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="150">
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}
|
||||
twoyear
|
||||
twoyear
|
||||
{/translate}
|
||||
|
||||
|
||||
{ $list->bool("product_price_group[5][show]", $attr_group_array[5].show, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
@@ -245,20 +218,20 @@
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
{$arr.name}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
field_price_base
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[5][{$arr.id}][price_base]" value="{$attr_group_array[5][$idx].price_base}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
field_price_setup
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[5][{$arr.id}][price_setup]" value="{$attr_group_array[5][$idx].price_setup}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
@@ -268,15 +241,15 @@
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="150">
|
||||
<tr>
|
||||
<td width="150">
|
||||
{translate module=product}
|
||||
threeyear
|
||||
threeyear
|
||||
{/translate}
|
||||
|
||||
|
||||
{ $list->bool("product_price_group[6][show]", $attr_group_array[6].show, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
@@ -284,20 +257,20 @@
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
{$arr.name}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
field_price_base
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[6][{$arr.id}][price_base]" value="{$attr_group_array[6][$idx].price_base}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="30%">
|
||||
<td width="30%">
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
field_price_setup
|
||||
{/translate}
|
||||
<input type="text" name="product_price_group[6][{$arr.id}][price_setup]" value="{$attr_group_array[6][$idx].price_setup}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
@@ -307,12 +280,12 @@
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
<tr>
|
||||
<td valign="middle" align="right">
|
||||
<tr>
|
||||
<td valign="middle" align="right">
|
||||
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
</tr>
|
||||
@@ -323,18 +296,18 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<input type="hidden" name="do[]" value="product:update">
|
||||
<input type="hidden" name="_page" value="product:iframe_price_recurring">
|
||||
<input type="hidden" name="_page_current" value="product:iframe_price_recurring">
|
||||
<input type="hidden" name="product_id" value="{$product.id}">
|
||||
<input type="hidden" name="id" value="{$product.id}">
|
||||
<input type="hidden" name="product_price_base" value="{$product.price_base}">
|
||||
<input type="hidden" name="product_sku" value="{$product.sku}">
|
||||
<input type="hidden" name="_page_current" value="product:iframe_price_recurring">
|
||||
<input type="hidden" name="product_id" value="{$record.id}">
|
||||
<input type="hidden" name="id" value="{$record.id}">
|
||||
<input type="hidden" name="product_price_base" value="{$record.price_base}">
|
||||
<input type="hidden" name="product_sku" value="{$record.sku}">
|
||||
<input type="hidden" name="product_avail_category_id" value="IGNORE-ARRAY-VALUE">
|
||||
<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_assoc_grant_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">
|
||||
@@ -342,4 +315,4 @@
|
||||
<input type="hidden" name="product_modify_product_arr" value="IGNORE-ARRAY-VALUE">
|
||||
</form>
|
||||
|
||||
{/foreach}{/if}
|
||||
{/if}
|
||||
|
@@ -1,137 +1,61 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{ $method->exe("product","search_form") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
|
||||
<form name="product_search" method="post" action="">
|
||||
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=product}title_search{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="49%">
|
||||
{translate module=product}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="51%">
|
||||
{ $list->calender_search("product_date_orig", $VAR.product_date_orig, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="49%">
|
||||
{translate module=product}
|
||||
field_sku
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="51%">
|
||||
<input type="text" name="product_sku" value="{$VAR.product_sku}" {if $product_sku == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="49%">
|
||||
{translate module=product}
|
||||
field_taxable
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="51%">
|
||||
{ $list->bool("product_taxable", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="49%">
|
||||
{translate module=product}
|
||||
field_active
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="51%">
|
||||
{ $list->bool("product_active", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="49%">
|
||||
{translate module=product}
|
||||
field_price_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="51%">
|
||||
<input type="radio" name="product_price_type" value="0" {if $VAR.product_price_type == "0" }checked{/if}>
|
||||
{translate module=product}
|
||||
price_type_one
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" name="product_price_type" value="1" {if $VAR.product_price_type == "1"}checked{/if}>
|
||||
{translate module=product}
|
||||
price_type_recurr
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" name="product_price_type" value="2" {if $VAR.product_price_type == "2"}checked{/if}>
|
||||
{translate module=product}
|
||||
price_type_trial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Define the results per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="49%">
|
||||
{translate}
|
||||
search_results_per
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="51%">
|
||||
<input type="text" name="limit" size="5" value="{$product_limit}">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Define the order by field per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="49%">
|
||||
{translate}
|
||||
search_order_by
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="51%">
|
||||
<select name="order_by">
|
||||
{foreach from=$product item=record}
|
||||
<option value="{$record.field}">
|
||||
{$record.translate}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td width="49%"></td>
|
||||
<td width="51%">
|
||||
<input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:search">
|
||||
<input type="hidden" name="_escape" value="Y">
|
||||
<input type="hidden" name="module" value="product">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{ $block->display("core:saved_searches") }
|
||||
{ $block->display("core:recent_searches") }
|
||||
<form id="search_form" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<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 width="65%" class="table_heading"><center>{translate module=product}title_search{/translate}</center></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="49%">{translate module=product}field_date_orig{/translate}</td>
|
||||
<td width="51%">{$list->calender_search('product_date_orig',$VAR.product_date_orig,'form_field','')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="49%">{translate module=product}field_sku{/translate}</td>
|
||||
<td width="51%"><input type="text" name="product_sku" value="{$VAR.product_sku}" {if $product_sku == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="49%">{translate module=product}field_taxable{/translate}</td>
|
||||
<td width="51%">{$list->bool('product_taxable','all')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="49%">{translate module=product}field_active{/translate}</td>
|
||||
<td width="51%">{$list->bool('product_active','all')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="49%">{translate module=product}field_price_type{/translate}</td>
|
||||
<td width="51%">
|
||||
<input type="radio" name="product_price_type" value="0" {if $VAR.product_price_type == "0" }checked{/if} />
|
||||
{translate module=product}price_type_one{/translate}<br/>
|
||||
<input type="radio" name="product_price_type" value="1" {if $VAR.product_price_type == "1"}checked{/if} />
|
||||
{translate module=product}price_type_recurr{/translate}<br/>
|
||||
<input type="radio" name="product_price_type" value="2" {if $VAR.product_price_type == "2"}checked{/if} />
|
||||
{translate module=product}price_type_trial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
{include file='file:../core/search_post.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
{$block->display('core:saved_searches')}
|
||||
{$block->display('core:recent_searches')}
|
||||
{/if}
|
||||
|
@@ -1,148 +1,59 @@
|
||||
{$method->exe("product","search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}search_result_count{/translate}
|
||||
{else}
|
||||
{translate results=$results}search_results_count{/translate}
|
||||
{/if}
|
||||
<BR>
|
||||
{popup_init src="$URL/includes/overlib/overlib.js"}
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'product';
|
||||
{/literal}
|
||||
{if $VAR._print == TRUE}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}{literal}
|
||||
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
|
||||
var order = '{/literal}{$order}{literal}';
|
||||
var sort1 = '{/literal}{$sort}{literal}';
|
||||
var search_id = '{/literal}{$search_id}{literal}';
|
||||
var page = {/literal}{$page}{literal};
|
||||
var pages = '{/literal}{$pages}{literal}';
|
||||
var results = '{/literal}{$results}{literal}';
|
||||
var limit = '{/literal}{$limit}{literal}';
|
||||
record_arr = new Array ({/literal}{$limit}{literal});
|
||||
var i = 0;
|
||||
// END -->
|
||||
</script>
|
||||
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
|
||||
{/literal}
|
||||
{include file='file:../core/search_show_pre.tpl'}
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
{$method->exe_noauth($meth.0,'tpl_search_show')}
|
||||
{foreach from=$search_show item=record}
|
||||
{include file='file:../core/search_show_tr_record.tpl'}
|
||||
<td>{$record.sku}</td>
|
||||
<td>{$list->format_currency($record.price_base,'')}</td>
|
||||
<td>
|
||||
{if $record.active == '1'}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="Status" width="16" height="16" style="border: 0px;"/>
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="Status" width="16" height="16" style="border: 0px;"/>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $list->translate('product_translate','name,description_short','id',$record.id,'name')}
|
||||
{$name.name|truncate:50}
|
||||
{else}
|
||||
---
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if {$name.short_description != ''}
|
||||
{assign var="descshort" value=$name.description_short|strip_tags}
|
||||
<a href="javascript:showTranslations({$record.id},'{$smarty.const.DEFAULT_LANGUAGE}')" {if $descshort != ""}{popup capcolor="ffffff" textcolor="333333" bgcolor="506DC7" fgcolor="FFFFFF" sticky=false width="250" caption="Short Description" text="$descshort" snapx=1 snapy=1 sticky=1}{/if}><img src="themes/{$THEME_NAME}/images/icons/edit_16.gif" alt="Edit" width="16" height="16" style="border: 0px;"/></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onKeyPress="key_handler(event);">
|
||||
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" class="table_heading">
|
||||
<td width="5%" class="table_heading" align="center"> </td>
|
||||
<td width="25%" class="table_heading" align="center">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=product}field_sku{/translate}{literal}','sku'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="15%" class="table_heading" align="center">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=product}field_price_base{/translate}{literal}','price_base'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="5%" class="table_heading" align="center">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=product}field_active{/translate}{literal}','active'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="50%" class="table_heading" align="center">
|
||||
{translate
|
||||
module=product_translate}
|
||||
field_description_short
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="2%" class="table_heading" align="center"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$product item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=product:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
|
||||
<td align="center" width="5%">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="25%">
|
||||
<p>
|
||||
{$record.sku}
|
||||
</td>
|
||||
<td width="15%">
|
||||
{$list->format_currency($record.price_base,"")}
|
||||
</td>
|
||||
<td width="5%" align="center">
|
||||
{if $record.active == "1"}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" width="16" height="16">
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" width="16" height="16">
|
||||
{/if}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{if $list->translate("product_translate","name,description_short","id",$record.id, "name")}
|
||||
{$name.name|truncate:50}
|
||||
{else}
|
||||
---
|
||||
{/if}
|
||||
</td>
|
||||
<td width="2%">
|
||||
{if {$name.short_description != ""}
|
||||
{assign var="descshort" value=$name.description_short|strip_tags}
|
||||
<a href="javascript:showTranslations({$record.id},'{$smarty.const.DEFAULT_LANGUAGE}')" {if $descshort != ""}{popup capcolor="ffffff" textcolor="333333" bgcolor="506DC7" fgcolor="FFFFFF" sticky=false width="250" caption="Short Description" text="$descshort" snapx=1 snapy=1 sticky=1}{/if}>
|
||||
<img src="themes/{$THEME_NAME}/images/icons/edit_16.gif" border="0" width="16" height="16">
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{literal}
|
||||
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
|
||||
{/literal}
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{if $VAR._print != TRUE}<br>
|
||||
<center>
|
||||
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
|
||||
<br>
|
||||
</center>
|
||||
{include file='file:../core/search_show_post-1.tpl'}
|
||||
{include file='file:../core/search_show_post-2.tpl'}
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
{literal}
|
||||
function showTranslations(product_id,language_id) {
|
||||
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;
|
||||
window.open(url,'ProductLanguage','scrollbars=yes,toolbar=no,status=no,width=700,height=600');
|
||||
}
|
||||
{/literal}
|
||||
//-->
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script language=javascript>
|
||||
function showTranslations(product_id,language_id)
|
||||
{
|
||||
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;
|
||||
window.open(url,'ProductLanguage','scrollbars=yes,toolbar=no,status=no,width=700,height=600');
|
||||
}
|
||||
</script>{/literal}
|
||||
|
@@ -1,538 +1,298 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{ $method->exe("product","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{include file='file:../core/view_pre.tpl'}
|
||||
|
||||
{literal}
|
||||
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
|
||||
<script language="JavaScript">
|
||||
var module = 'product';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
var id = '{/literal}{$VAR.id}{literal}';
|
||||
var ids = '{/literal}{$VAR.ids}{literal}';
|
||||
var array_id = id.split(",");
|
||||
var array_ids = ids.split(",");
|
||||
var num=0;
|
||||
if(array_id.length > 2) {
|
||||
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
|
||||
}else if (array_ids.length > 2) {
|
||||
document.write(view_nav_top(array_ids,id,ids));
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{$block->display('core:alert_fields')}
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
<form id="view" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<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>
|
||||
|
||||
</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>
|
||||
|
||||
<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>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var product_id = {$record.id};
|
||||
|
||||
{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);
|
||||
}
|
||||
|
||||
function delete_record(id,ids)
|
||||
{
|
||||
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
|
||||
if(temp == false) return;
|
||||
|
||||
var replace_id = id + ",";
|
||||
ids = ids.replace(replace_id, '');
|
||||
if(ids == '') {
|
||||
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
return;
|
||||
} else {
|
||||
var page = 'view&id=' +ids;
|
||||
}
|
||||
|
||||
var doit = 'delete';
|
||||
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$product item=product} <a name="{$product.id}"></a>
|
||||
viewTranslations();
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
<form id="product_view" name="product_view" method="post" action="" enctype="multipart/form-data">
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=product}
|
||||
title_view
|
||||
{/translate}
|
||||
</center>
|
||||
</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>
|
||||
{translate module=product}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_date_last
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{$list->date($product.date_orig)}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->date($product.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>
|
||||
{translate module=product}
|
||||
field_sku
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
field_position
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="50%">
|
||||
<input type="text" name="product_sku" value="{$product.sku}" size="32">
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="product_position" value="{$product.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>
|
||||
{translate module=product}
|
||||
field_active
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_taxable
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{ $list->bool("product_active", $product.active, "form_menu") }
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("product_taxable", $product.taxable, "form_menu") }
|
||||
</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>
|
||||
{translate module=product}
|
||||
field_price_base
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_setup
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
<input type="text" name="product_price_base" value="{$product.price_base}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="product_price_setup" value="{$product.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>
|
||||
{translate module=product}
|
||||
field_avail_category_id
|
||||
{/translate}
|
||||
</b><br>
|
||||
</td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_group_avail
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">{$method->exe_noauth("product_cat","admin_menu_product")}</td>
|
||||
<td width="50%">
|
||||
{ $list->menu_multi($product.group_avail, 'product_group_avail', 'group', 'name', '', '5', 'form_menu') }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $product.price_type == "1"}
|
||||
</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>
|
||||
{translate module=product}
|
||||
field_price_recurr_default
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="50%">
|
||||
<select name="product_price_recurr_default" >
|
||||
<option value="0" {if $product.price_recurr_default == "0"} selected{/if}>
|
||||
{translate module=product}
|
||||
recurr_week
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="1" {if $product.price_recurr_default == "1"} selected{/if}>
|
||||
{translate module=product}
|
||||
recurr_month
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="2" {if $product.price_recurr_default == "2"} selected{/if}>
|
||||
{translate module=product}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="3" {if $product.price_recurr_default == "3"} selected{/if}>
|
||||
{translate module=product}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="4" {if $product.price_recurr_default == "4"} selected{/if}>
|
||||
{translate module=product}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="5" {if $product.price_recurr_default == "5"} selected{/if}>
|
||||
{translate module=product}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="6" {if $product.price_recurr_default == "6"} selected{/if}>
|
||||
{translate module=product}
|
||||
recurr_threeyear
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
field_price_recurr_type
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
user_options
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="50%">
|
||||
<input type="radio" name="product_price_recurr_type" value="0" {if $product.price_recurr_type == "0"}checked{/if}>
|
||||
{translate module=product}
|
||||
recurr_type_aniv
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" name="product_price_recurr_type" value="1" {if $product.price_recurr_type == "1"}checked{/if}>
|
||||
{translate module=product}
|
||||
recurr_type_fixed
|
||||
{/translate}
|
||||
<br>
|
||||
{translate module=product}
|
||||
field_price_recurr_weekday
|
||||
{/translate}
|
||||
<input type="text" name="product_price_recurr_weekday" value="{$product.price_recurr_weekday}" size="2" maxlength="2">
|
||||
(1-28) </td>
|
||||
<td width="50%">
|
||||
{ $list->bool("product_price_recurr_schedule", $product.price_recurr_schedule, "form_menu") }
|
||||
{translate module=product}
|
||||
field_price_recurr_schedule
|
||||
{/translate}
|
||||
<br>
|
||||
{ $list->bool("product_price_recurr_cancel", $product.price_recurr_cancel, "form_menu") }
|
||||
{translate module=product}
|
||||
field_price_recurr_cancel
|
||||
{/translate}
|
||||
<br>
|
||||
{ $list->bool("product_cart_multiple", $product.cart_multiple, "form_menu") }
|
||||
{translate module=product}
|
||||
field_cart_multiple
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
|
||||
{if $product.price_type == "2"}
|
||||
</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>
|
||||
{translate module=product}
|
||||
field_price_trial_prod
|
||||
{/translate}
|
||||
</b><br>
|
||||
</td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=product}
|
||||
field_price_trial_length
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{ $list->menu("", "product_price_trial_prod", "product", "sku", $product.price_trial_prod, "form_menu") }
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="product_price_trial_length" value="{$product.price_trial_length}" size="4">
|
||||
<select name="product_price_trial_length_type" >
|
||||
<option value="0" {if $product.price_trial_length_type == "0"} selected{/if}>{translate}day{/translate}</option>
|
||||
<option value="1" {if $product.price_trial_length_type == "1"} selected{/if}>{translate}week{/translate}</option>
|
||||
<option value="2" {if $product.price_trial_length_type == "2"} selected{/if}>{translate}month{/translate}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
|
||||
</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="50%" valign="top"><b>
|
||||
{if $product.thumbnail != ""}
|
||||
<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}">
|
||||
|
||||
{/if}
|
||||
{translate module=product}
|
||||
field_thumbnail
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="50%" align="left"><b>
|
||||
<input type="file" name="upload_file1" size="38" >
|
||||
{if $product.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 valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1">
|
||||
<tr class="row2">
|
||||
<td width="50%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
<td align="right" width="50%">
|
||||
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$product.id}','{$VAR.id}');">
|
||||
</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 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()">Name & Description</a>
|
||||
| <a href="javascript:showAttributes();">
|
||||
{translate module=product}
|
||||
attributes
|
||||
{/translate}
|
||||
</a> | <a href="javascript:showBilling();">
|
||||
{translate module=product}
|
||||
advanced_billing
|
||||
{/translate}
|
||||
</a> | <a href="javascript:showAssociations();">
|
||||
{translate module=product}
|
||||
associations
|
||||
{/translate}
|
||||
</a> | <a href="javascript:showDiscounts();">
|
||||
{translate module=product}
|
||||
discounts
|
||||
{/translate}
|
||||
</a>
|
||||
{if $list->is_installed("host_server")}
|
||||
| <a href="javascript:showHosting();">
|
||||
{translate module=product}
|
||||
hosting
|
||||
{/translate}
|
||||
</a>
|
||||
{/if}
|
||||
| <a href="javascript:showPlugins();">
|
||||
{translate module=product}
|
||||
product_plugins
|
||||
{/translate}
|
||||
</a> | <a href="javascript:showLink('{$product.id}', '{$product.price_recurr_default}')">
|
||||
{translate module=product}
|
||||
link
|
||||
{/translate}
|
||||
</a>| <a href="javascript:clone('{$product.id}')">
|
||||
{translate module=product}
|
||||
clone
|
||||
{/translate}
|
||||
</a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="product:view">
|
||||
<input type="hidden" name="product_id" value="{$product.id}">
|
||||
<input type="hidden" name="do[]" value="product:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
<input type="hidden" id="delimg" name="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">
|
||||
</form>
|
||||
|
||||
<CENTER><iframe name="iframeProduct" id="iframeProduct" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe> </CENTER>
|
||||
<div id="code"></div>
|
||||
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
|
||||
var product_id = {/literal}{$product.id}{literal};
|
||||
|
||||
function viewTranslations(product_id,language_id)
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
var product_id = {/literal}{$product.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('iframeProduct',getPageWidth(600),300,url);
|
||||
}
|
||||
viewTranslations();
|
||||
|
||||
|
||||
function showLink(product_id, recurr_schedule)
|
||||
{
|
||||
showIFrame('iframeProduct',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;
|
||||
}
|
||||
|
||||
function showImages()
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
showIFrame('iframeProduct',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);
|
||||
}
|
||||
|
||||
function showAttributes()
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
showIFrame('iframeProduct',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}{$product.price_type}{literal}');
|
||||
}
|
||||
|
||||
function showBilling()
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
var billingtype = {/literal}{$product.price_type}{literal};
|
||||
if(billingtype == "0" || billingtype == "2")
|
||||
showIFrame('iframeProduct',getPageWidth(600),300,'?_page=product:iframe_price_onetime&_escape=1&id='+product_id);
|
||||
else if(billingtype == "1")
|
||||
showIFrame('iframeProduct',getPageWidth(600),300,'?_page=product:iframe_price_recurring&_escape=1&id='+product_id);
|
||||
}
|
||||
|
||||
function showAssociations()
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
showIFrame('iframeProduct',getPageWidth(600),300,'?_page=product:iframe_associations&_escape=1&id='+product_id);
|
||||
}
|
||||
|
||||
function showDiscounts()
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
showIFrame('iframeProduct',getPageWidth(600),300,'?_page=product:iframe_discounts&_escape=1&id='+product_id);
|
||||
}
|
||||
|
||||
function showHosting()
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
showIFrame('iframeProduct',getPageWidth(600),300,'?_page=product:iframe_hosting&_escape=1&id='+product_id);
|
||||
}
|
||||
|
||||
function showPlugins()
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
showIFrame('iframeProduct',getPageWidth(600),300,'?_page=product:iframe_plugins&_escape=1&id='+product_id);
|
||||
}
|
||||
|
||||
function clone()
|
||||
{
|
||||
document.getElementById("code").innerHTML = "";
|
||||
showIFrame('iframeProduct',getPageWidth(600),300,'?_page=product:iframe_clone&_escape=1&id='+product_id);
|
||||
}
|
||||
// END -->
|
||||
</SCRIPT>{/literal}
|
||||
|
||||
{/foreach}
|
||||
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;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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}');
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
function showAssociations() {
|
||||
document.getElementById('code').innerHTML = '';
|
||||
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_associations&id='+product_id);
|
||||
}
|
||||
|
||||
function showDiscounts() {
|
||||
document.getElementById('code').innerHTML = '';
|
||||
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_discounts&_escape=1&id='+product_id);
|
||||
}
|
||||
|
||||
function showHosting() {
|
||||
document.getElementById('code').innerHTML = '';
|
||||
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_hosting&_escape=1&id='+product_id);
|
||||
}
|
||||
|
||||
function showPlugins() {
|
||||
document.getElementById('code').innerHTML = '';
|
||||
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_plugins&_escape=1&id='+product_id);
|
||||
}
|
||||
|
||||
function clone() {
|
||||
document.getElementById('code').innerHTML = '';
|
||||
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_clone&_escape=1&id='+product_id);
|
||||
}
|
||||
{/literal}
|
||||
//-->
|
||||
</script>
|
||||
{/if}
|
||||
|
Reference in New Issue
Block a user