2009-08-03 04:10:16 +00:00
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
|
|
<!-- {$meth.0}:{$meth.1} -->
|
|
|
|
|
|
|
|
<!-- 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: 35%;">{osb f=tf module=product field=sku}</td>
|
|
|
|
<td style="width: 65%;"><input type="text" id="focus" name="ad_hoc_sku"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf module=product field=name}</td>
|
|
|
|
<td style="width: 65%;"><input type="text" name="ad_hoc_name"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf module=product field=amount}</td>
|
|
|
|
<td style="width: 65%;"><input type="text" name="ad_hoc_amount" size="5"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf module=product field=quantity}</td>
|
|
|
|
<td style="width: 65%;"><input type="text" name="quantity" size="3" value="1"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf module=product field=taxable}</td>
|
|
|
|
<td style="width: 65%;"><input type="checkbox" name="ad_hoc_taxable" value="1" checked="checked"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf module=product field=attr}</td>
|
|
|
|
<td style="width: 65%;">
|
|
|
|
{assign var=last value=11}
|
|
|
|
{section name=count start=1 loop=$last step=1}
|
|
|
|
<div id="attr{$smarty.section.count.index}" {if $smarty.section.count.index == 1}style="display:block"{else}style="display:none"{/if}>
|
|
|
|
<input type="text" name="ad_hoc_attr_var[]" size="22" {if $smarty.section.count.index != $last-1} onchange="javascript:document.getElementById('attr{$smarty.section.count.index+1}').style.display='block'"{/if}/>
|
|
|
|
=
|
|
|
|
<input type="text" name="ad_hoc_attr_val[]" size="40"/>
|
|
|
|
</div>
|
|
|
|
{/section}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;"> </td>
|
|
|
|
<td style="width: 65%;"><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="cart:ad_hoc"/>
|
|
|
|
<input type="hidden" name="_page" value="cart:admin_view"/>
|
|
|
|
<input type="hidden" name="_page_current" value="cart:ad_hoc"/>
|
|
|
|
<input type="hidden" name="account_id" value="{$VAR.account_id}"/>
|
|
|
|
</div>
|
2008-11-26 22:50:40 +00:00
|
|
|
</form>
|
2009-08-03 04:10:16 +00:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
if (document.getElementById('focus'))
|
|
|
|
document.getElementById('focus').focus();
|
|
|
|
//-->
|
2008-11-26 22:50:40 +00:00
|
|
|
</script>
|