2008-11-26 22:50:40 +00:00
|
|
|
{ $block->display("core:top_clean") }
|
|
|
|
|
|
|
|
{$method->exe("product_img","search_show")}
|
|
|
|
{if ($method->result == FALSE)}
|
|
|
|
{$block->display("core:method_error")}
|
|
|
|
{else}
|
|
|
|
|
|
|
|
{literal}
|
|
|
|
<script language="JavaScript">
|
|
|
|
<!-- START
|
|
|
|
var module = 'product_img';
|
|
|
|
{/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}
|
|
|
|
|
|
|
|
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
|
|
|
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
|
|
|
|
|
|
|
<!-- 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 -->
|
|
|
|
|
|
|
|
<!-- LOOP THROUGH EACH RECORD -->
|
|
|
|
{foreach from=$product_img item=record}
|
|
|
|
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=product_img:view&id={$record.id}&_escape=1&_escape_next=1,';" 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="48">
|
|
|
|
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td width="799">
|
|
|
|
{$record.name}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td width="216">
|
|
|
|
{if $record.type == "0"}
|
|
|
|
{translate module=product_img}
|
|
|
|
local
|
|
|
|
{/translate}
|
|
|
|
{else}
|
|
|
|
{translate module=product_img}
|
|
|
|
remote
|
|
|
|
{/translate}
|
|
|
|
{/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>
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
|
|
|
<tr>
|
|
|
|
<td width="28%">
|
2009-08-03 04:10:16 +00:00
|
|
|
<div style="text-align: center;"><a href="?_page=product_img:add&product_img_product_id={$product_img.product_id}&_escape=1&_escape_next=1"><br>
|
2008-11-26 22:50:40 +00:00
|
|
|
{translate module=product_img}
|
|
|
|
title_add
|
|
|
|
{/translate}
|
|
|
|
</a></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<center>
|
|
|
|
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view&_escape=1&_escape_next=1', 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}&_escape=1&_escape_next=1', 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>
|
|
|
|
{/if}
|
|
|
|
</div>
|