
<div class="row"  style="background-color: #c8ddfa;padding-left: 9px;">

    <div style="display:none;padding-top: 5px;padding-right: 15px;" id="scoringDiv">

        <div class="caption font-green-haze col-md-12 txtc">
            <span class="caption-subject bold "  style="color: black">Embryo scoring and grading</span>
        </div>
        <div class="caption font-green-haze col-md-11">
            <label class="col-md-3 control-label">ICSI done by :</label>
            <div class="col-md-9">
                <input type="hidden" class="form-control updateEmbryoLab"    id="icsi_id" 
                       data-colName="icsi_by" data-tableName="embryoslab" >
                <input type="hidden" class="form-control"    id="icsi_id_value"  
                       value="{$updatedate.icsi_by}" >
                <input type="hidden" class="form-control"    id="icsi_name"  
                       value="{$updatedate.icsi_name}" >
            </div>
        </div>
        <div class="actions col-md-1">
            <a href="javascript:;" class="btn btn-default btn-sm " data-tableName="embryoscoring" id="addnewRowscoring">
                Add New</a>
        </div>
        <div class="col-md-12">
            <table>
                <thead>

                    <tr>
                        <th rowspan="2">
                            NO
                        </th>
                        <th  colspan="2">
                            Day1
                        </th>
                        <th  colspan="2">
                            Day2
                        </th>
                        <th  colspan="2">
                            Day3
                        </th>

                        <th  colspan="2">
                            Day4
                        </th>
                        <th  colspan="2">
                            Day5
                        </th>
                        <th  colspan="2">
                            Day6
                        </th>

                        <th rowspan="2">
                            Delete
                        </th>
                    </tr>
                    <tr>
                        <th >
                            stage
                        </th>
                        <th >
                            grade
                        </th>
                        <th >
                            stage
                        </th>
                        <th >
                            grade
                        </th>

                        <th >
                            stage
                        </th>
                        <th >
                            grade
                        </th>
                        <th >
                            stage
                        </th>
                        <th >
                            grade
                        </th>
                        <th >
                            stage
                        </th>
                        <th >
                            grade
                        </th>
                        <th >
                            stage
                        </th>
                        <th >
                            grade
                        </th>

                    </tr>

                </thead>
                <tbody id="scoringTable">
                    {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}"/>
                </tbody>
            </table>
        </div>
    </div>