<option value=""></option>
{assign var=i value=1}
{foreach $allDetections as $row}
{if $i == 1}{assign var=k value={$row->detectionval}}{/if}
<option value="{$row->id}">{$row->title}</option>
{capture assign=i}{$i+1}{/capture}
{/foreach}
<option value="-1">إضافة كشف</option>
{if $smarty.session.role_id neq 3}<option value="0" class="deleteoptincompo">حذف</option>{/if}
