{assign var=itr value=1}
{foreach $embryofreezing as $one_freezing}
<tr>
    <td>
        Straw#{$itr}
    </td>
    <td>
        <select id="s11" class="form-control selectStage update_item2"   data-tableName="embryofreezing"
                data-rowid="{$one_freezing->id}" name="stage1" select-tableName="stage" 
                data-colName="stage1">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_freezing->stage1 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="g11" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade1" select-tableName="grade" data-colName="grade1">
            <option value="">choose</option>
            {foreach  $grades as $one}
            <option value="{$one->id}"{if $one_freezing->grade1 eq $one->id}selected{/if}>{$one->grade}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="s12" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage2" select-tableName="stage" data-colName="stage2">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_freezing->stage2 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

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

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="s13" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage3" select-tableName="stage" data-colName="stage3">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_freezing->stage3 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

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

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

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

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

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

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

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

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="s17" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage7" select-tableName="stage" data-colName="stage7">
            <option value="">choose</option>
            {foreach  $stages as $one}
            <option value="{$one->id}"{if $one_freezing->stage7 eq $one->id}selected{/if}>{$one->stage}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <select id="g17" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade7" select-tableName="grade" data-colName="grade7">
            <option value="">choose</option>
            {foreach  $grades as $one}
            <option value="{$one->id}"{if $one_freezing->grade7 eq $one->id}selected{/if}>{$one->grade}</option>
            {/foreach}

            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td rowspan="2">
        <a class="btn grey-cascade btn-xs delFromTableFreezing" data-rowid="{$one_freezing->id}" style=" float: left;">
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>
<tr >
    <td colspan="15">
        <textarea class="form-control update_item2" data-rowid="{$one_freezing->id}" rows="2"  name='straw_notes' placeholder="Enter more text"
                  data-id="{$one_freezing->id}" data-colName="straw_notes" data-tableName="embryofreezing">{$one_freezing->straw_notes}</textarea>
        <div class="form-control-focus">
        </div>
    </td>
</tr>
{capture assign=itr}{$itr+1}{/capture}
{/foreach}
<input type="hidden" name="Itr" id="Itr" value="{$count_embryofreezing}"/>