fixed initialization logtype in search form
This commit is contained in:
@ -1622,6 +1622,7 @@ function outputSearchForm($options)
|
||||
LEFT JOIN `sys_trans_text` ON `sys_trans_text`.`trans_id`=`log_types`.`trans_id` AND `sys_trans_text`.`lang`='&1'
|
||||
ORDER BY `log_types`.`id` ASC",
|
||||
$opt['template']['locale'], isset($options['logtype']) ? $options['logtype'] : 0);
|
||||
|
||||
$tpl->assign_rs('logtype_options',$rs);
|
||||
sql_free_result($rs);
|
||||
|
||||
|
@ -739,7 +739,7 @@ function switchAttributeCat2()
|
||||
<td colspan="2">
|
||||
<select name="logtype">
|
||||
{foreach from=$logtype_options item=logtype_option}
|
||||
<option value="{$logtype_option.id|escape}" {if $logtype_option.selcted}selected="selected"{/if}>{$logtype_option.name|escape}</option>
|
||||
<option value="{$logtype_option.id|escape}" {if $logtype_option.selected}selected="selected"{/if}>{$logtype_option.name|escape}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user