{assign var=myItra value=1}
{foreach $scoring as $one_scoring}
<tr>
    <!--<input type="hidden" value="{$one_scoring->id}" id="newrow_id"/>-->

    <td value="" id="row_num">
        {$myItra}
    </td>

    <td>
        <select id="s1" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage1" select-tableName="stage" data-colName="stage1">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_scoring->stage1 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>

    <td>

        <select id="g1" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade1" select-tableName="grade" data-colName="grade1">
            <option value="">choose</option>
            {foreach  $grades as $one}
            <option value="{$one->id}"{if $one_scoring->grade1 eq $one->id}selected{/if}>{$one->grade}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>

    </td>
    <td>

        <select id="s2" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage2" select-tableName="stage" data-colName="stage2">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_scoring->stage2 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="g2" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade2" select-tableName="grade" data-colName="grade2">
            <option value="">choose</option>
            {foreach  $grades as $one}
            <option value="{$one->id}"{if $one_scoring->grade2 eq $one->id}selected{/if}>{$one->grade}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>

    </td>
    <td>
        <select id="s3" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage3" select-tableName="stage" data-colName="stage3">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_scoring->stage3 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select  id="g3" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade3" select-tableName="grade" data-colName="grade3">
            <option value="">choose</option>
            {foreach  $grades as $one}
            <option value="{$one->id}"{if $one_scoring->grade3 eq $one->id}selected{/if}>{$one->grade}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="s4" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage4" select-tableName="stage" data-colName="stage4">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_scoring->stage4 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select  id="g4" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade4" select-tableName="grade" data-colName="grade4">
            <option value="">choose</option>
            {foreach  $grades as $one}
            <option value="{$one->id}"{if $one_scoring->grade4 eq $one->id}selected{/if}>{$one->grade}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="s5" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage5" select-tableName="stage" data-colName="stage5">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_scoring->stage5 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="g5" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade5" select-tableName="grade" data-colName="grade5">
            <option value="">choose</option>
            {foreach  $grades as $one}
            <option value="{$one->id}"{if $one_scoring->grade5 eq $one->id}selected{/if}>{$one->grade}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="s6" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage6" select-tableName="stage" data-colName="stage6">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_scoring->stage6 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="g6" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade6" select-tableName="grade" data-colName="grade6">
            <option value="">choose</option>
            {foreach  $grades as $one}
            <option value="{$one->id}"{if $one_scoring->grade6 eq $one->id}selected{/if}>{$one->grade}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>



    <td>
        <a id="delFromTable" class="btn grey-cascade btn-xs delFromTable" data-rowid="{$one_scoring->id}" style=" float: left;"  data-fn="del">
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>
{capture assign=myItra}{$myItra+1}{/capture}
{/foreach}
<input type="hidden" name="myItra" id="myItra" value="{$count_scoring}"/>