Добавить несколько опций в меню на странице - опции не выводят данные

Пользователь

от i.thor.ii , в категории: PHP , 6 месяцев назад

Добрый день,


Скрипт https://goldcoders.com/hm_shares/


Хочу добавить несколько опций в меню на странице https://goldcoders.com/hm_shares/?a=earnings\

  • dividends
  • Fee
  • sell_shares


Не могу вывести данные этих опций.


В шаблоне стоит запись:



 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<div class="transactionListSearch__selects">

<select name=type onchange="document.opts.submit();">
<option value="">All transactions</option>
{section name=opt loop=$options}
<option value="{$options[opt].type}" {if $options[opt].selected}selected{/if}>{$options[opt].type_name} </option> {/section} </select> {if $ecs} <select name=ec class=inpts>
<option value=-1>All eCurrencies</option>
{section name=ec loop=$ecs}
<option value={$ecs[ec].id} {if $frm.ec eq $ecs[ec].id}selected{/if}>{$ecs[ec].name} </option> {/section} </select> {/if} <button type="submit" class="btn--transactionSearch" style="width: 120px;height: 32px; padding: initial!important;margin-top: initial!important;margin-top: 7px !important;"><span>SEARCH</span></button>
</div>


Вставил так, они отображаются но данные не выводят.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<div class="transactionListSearch__selects">

<select name=type onchange="document.opts.submit();">
<option value="">All transactions</option>
<option value="dividends">Dividends</option>
<option value="fee">Fee</option>
<option value="sell_shares">Shares Sell</option>
{section name=opt loop=$options}
<option value="{$options[opt].type}" {if $options[opt].selected}selected{/if}>{$options[opt].type_name} </option> {/section} </select> {if $ecs} <select name=ec class=inpts>
<option value=-1>All eCurrencies</option>
{section name=ec loop=$ecs}
<option value={$ecs[ec].id} {if $frm.ec eq $ecs[ec].id}selected{/if}>{$ecs[ec].name} </option> {/section} </select> {/if} <button type="submit" class="btn--transactionSearch" style="width: 120px;height: 32px; padding: initial!important;margin-top: initial!important;margin-top: 7px !important;"><span>SEARCH</span></button>
</div>


Может кто-то сталкивался с такой проблемой.

Facebook Vk Ok Twitter LinkedIn Telegram Whatsapp

Нет ответов