This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/product_cat/view.tpl

133 lines
5.7 KiB
Smarty
Raw Normal View History

2009-08-03 04:10:16 +00:00
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
2009-08-03 04:10:16 +00:00
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
2009-08-03 04:10:16 +00:00
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
2009-08-03 04:10:16 +00:00
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
2009-08-03 04:10:16 +00:00
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">{osb f=tf field=name}</td>
<td width="65%"><input type="text" name="product_cat_name" value="{$record.name}" size="32"/></td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=notes}</td>
<td width="65%"><textarea name="product_cat_notes" cols="40" rows="2">{$record.notes}</textarea></td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=parent_id}</td>
<td width="65%">{$method->exe_noauth('product_cat','tpl_admin_menu_parent')}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=group_avail}</td>
<td width="65%">{$list->menu_multi($record.group_avail,'product_cat_group_avail','group','name','','10','form_menu')}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=status}</td>
<td width="65%">{$list->bool('product_cat_status',$record.status)}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=template}</td>
<td width="65%">{$list->menu_files('','product_cat_template',$record.template,'product_cat','t_','.tpl','form_menu')}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=position}</td>
<td width="65%"><input type="text" name="product_cat_position" value="{$record.position}" size="5"/></td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=max}</td>
<td width="65%"><input type="text" name="product_cat_max" value="{$record.max}" size="5"/></td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=thumbnail}</td>
<td width="65%">
<input id="thumbnail1" type="file" name="upload_file1" size="38" {if $campaign_file1 == true}class="form_field_error"{/if}/>
<img src="themes/{$THEME_NAME}/images/icons/picts_16.gif" onClick="previewImage(document.{$meth.0}_{$meth.1}.upload_file1.value);"/>
{if $record.thumbnail != ''}
<img title="Delete" src="themes/{$THEME_NAME}/images/icons/del_16.gif" onClick="document.getElementById('delthumb').value = '1'; document.getElementById('{$meth.0}_{$meth.1}').submit();"/><br/>
<br/>
<img src="{$URL}{$smarty.const.URL_IMAGES}{$record.thumbnail}"/>
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=image}</td>
<td width="65%">
<input id="image" type="file" name="upload_file2" size="38" {if $campaign_file2 == true}class="form_field_error"{/if}/>
<img src="themes/{$THEME_NAME}/images/icons/picts_16.gif" onClick="previewImage(document.{$meth.0}_{$meth.1}.upload_file2.value);"/>
{if $record.image != ''}
<img title="Delete" src="themes/{$THEME_NAME}/images/icons/del_16.gif" onClick="document.getElementById('delimg').value = '1'; document.getElementById('{$meth.0}_{$meth.1}').submit();"/><br/>
<br/>
<img src="{$URL}{$smarty.const.URL_IMAGES}{$record.image}"/>
{/if}
</td>
</tr>
{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="53%"><a href="javascript:showCatTranslations({$record.id})">{osb f=tt module=product_cat_translate method=view}</a></td>
<td width="47%" valign="middle" align="right"> <a href="javascript:addCatTranslations({$record.id})">{osb f=tt module=product_cat_translate method=add}</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
2009-08-03 04:10:16 +00:00
{include file='file:../core/view_post.tpl'}
<div>
<input type="hidden" id="delthumb" name="delthumb" value="0"/>
<input type="hidden" id="delimg" name="delimg" value="0"/>
</div>
</form>
2009-08-03 04:10:16 +00:00
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
2009-08-03 04:10:16 +00:00
<script type="text/javascript">
var CatId = '{$record.id}';
</script>
2009-08-03 04:10:16 +00:00
<!-- Image Preview -->
<script type="text/javascript" src="themes/default/blocks/{$meth.0}/imagePreview.js"></script>
2009-08-03 04:10:16 +00:00
<script type="text/javascript">
<!--
{literal}
function showCatTranslations(id) {
showIFrame('iframe',getPageWidth(650),350,'?_page=core:search&_next_page_one=view&module=product_cat_translate&_escape=1&product_cat_translate_product_cat_id='+id);
}
function addCatTranslations(id) {
showIFrame('iframe',getPageWidth(650),350,'?_page=product_cat_translate:add&product_cat_translate_product_cat_id='+id);
}
showCatTranslations(CatId);
{/literal}
//-->
</script>
{/if}