<label class="col-lg-3 control-label">الحساب</label>
<div class="col-lg-7">
    <select class="select2" name="accountid" id="accountid" placeholder="اختر حساب" required="" >
        <option value=""></option>
        {foreach $allacounts as $account}
        <option value="{$account->accountid}">{$account->accountname}</option>
        {/foreach}
    </select>
</div>