Reports using select2

This commit is contained in:
iBNu Maksum 2024-11-01 14:56:43 +07:00
parent 7006ad8c40
commit afbb39b1d9
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -25,25 +25,25 @@
<label>{Lang::T('End Time')}</label> <label>{Lang::T('End Time')}</label>
<input type="time" class="form-control" name="te" value="{$te}"> <input type="time" class="form-control" name="te" value="{$te}">
<label>{Lang::T('Type')}</label> <label>{Lang::T('Type')}</label>
<select class="form-control" name="tps[]" multiple> <select class="form-control select2" name="tps[]" multiple>
{foreach $types as $type} {foreach $types as $type}
<option value="{$type}" {if in_array($type, $tps)}selected{/if}>{$type}</option> <option value="{$type}" {if in_array($type, $tps)}selected{/if}>{$type}</option>
{/foreach} {/foreach}
</select> </select>
<label>{Lang::T('Internet Plans')}</label> <label>{Lang::T('Internet Plans')}</label>
<select class="form-control" name="plns[]" multiple> <select class="form-control select2" name="plns[]" multiple>
{foreach $plans as $plan} {foreach $plans as $plan}
<option value="{$plan}" {if in_array($plan, $plns)}selected{/if}>{$plan}</option> <option value="{$plan}" {if in_array($plan, $plns)}selected{/if}>{$plan}</option>
{/foreach} {/foreach}
</select> </select>
<label>{Lang::T('Methods')}</label> <label>{Lang::T('Methods')}</label>
<select class="form-control" name="mts[]" multiple> <select class="form-control select2" name="mts[]" multiple>
{foreach $methods as $method} {foreach $methods as $method}
<option value="{$method}" {if in_array($method, $mts)}selected{/if}>{$method}</option> <option value="{$method}" {if in_array($method, $mts)}selected{/if}>{$method}</option>
{/foreach} {/foreach}
</select> </select>
<label>{Lang::T('Routers')}</label> <label>{Lang::T('Routers')}</label>
<select class="form-control" name="rts[]" multiple> <select class="form-control select2" name="rts[]" multiple>
{foreach $routers as $router} {foreach $routers as $router}
<option value="{$router}" {if in_array($router, $rts)}selected{/if}>{Lang::T($router)}</option> <option value="{$router}" {if in_array($router, $rts)}selected{/if}>{Lang::T($router)}</option>
{/foreach} {/foreach}