<div class="portlet box purple">
    <div class="portlet-title">
        <div class="caption">General Examination </div>
        <div class="actions"></div>
        <div class="tools">
            <a href="#" class="collapse" title="تصغير / تكبير"></a>
        </div>
    </div>
    <div class="portlet-body">
        <div class="row">
            <div id="ultrasoundgynaDiv">
                <div class="row">
                    <div class="portlet-body form" >
                        <form>
                            <div class="form-body">
                                <table>
                                    <caption>          General condition  </caption>
                                    <tbody>

                                        <tr>
                                            <th class="wds10"> Appearance   :   </th>  
                                            <td>
                                                <select id="appearance{$obstetric_case->id}"  
                                                        class="form-control appearanceSelect updateElement"  data-colName="appearance"
                                                        data-rowid="{$obstetric_case->id}"  data-id="{$obstetric_case->id}"
                                                        name="appearance" select-tableName="appearance"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    {foreach  $appearance as $one}
                                                    <option value="{$one->id}"{if $obstetric_case->appearance eq $one->id}selected{/if}>{$one->name}</option>
                                                    {/foreach}

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

                                            <th class="wds10"> Gait   :   </th>  
                                            <td>
                                                <select id="gaint{$obstetric_case->id}"  
                                                        class="form-control gaintSelect updateElement"  data-colName="gaint"
                                                        data-rowid="{$obstetric_case->id}"  data-id="{$obstetric_case->id}"
                                                        name="gaint" select-tableName="gaint"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    {foreach  $gaint as $one}
                                                    <option value="{$one->id}"{if $obstetric_case->gaint eq $one->id}selected{/if}>{$one->name}</option>
                                                    {/foreach}

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

                                <table>
                                    <caption>          Vital signs  
                                        <button type="button" class="btn btn-xs blue addNewRow"  
                                                data-tableName="vital_sign" data-colName="sdate" data-isDate="1">
                                            <i class="fa fa-plus"></i> </button>
                                    </caption>
                                    <tbody id="vital_signContainer">
                                        {assign var=x value=1}
                                        {foreach $vital_sign as $sign }
                                        {if $x == 1 }
                                        <tr>
                                            <th class="wds19"> Date   </th>  
                                            <th class="wds19"> BP   </th>  
                                            <th class="wds19"> Pulse </th>
                                            <th class="wds19"> RR  </th>  
                                            <th class="wds19"> Temp  </th>  
                                            <th>   </th> 
                                        </tr>
                                        {/if}
                                        <tr>
                                            <td>
                                                <input type="text"   class="form-control updateElement datepicker"  
                                                       data-colName="sdate"   data-id="{$sign->id}" 
                                                       data-tableName="vital_sign"   value="{$sign->sdate}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement bp_mask inline wds70" 
                                                       data-colName="bp" data-id="{$sign->id}" 
                                                       data-tableName="vital_sign" value="{$sign->bp}"/> 
                                                <span class="bold">mmHg</span>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement inline wds70" 
                                                       data-colName="pulse" data-id="{$sign->id}" 
                                                       data-tableName="vital_sign" value="{$sign->pulse}"/> 
                                                <span class="bold">bpm</span>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement inline wds70" 
                                                       data-colName="rr" data-id="{$sign->id}" 
                                                       data-tableName="vital_sign" value="{$sign->rr}"/> 
                                                <span class="bold"> /min</span>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement inline wds70" 
                                                       data-colName="temp" data-id="{$sign->id}" 
                                                       data-tableName="vital_sign" value="{$sign->temp}"/> 
                                                <span class="bold">C</span>
                                            </td>
                                            <td>
                                                <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$sign->id}" 
                                                   data-link="{$controllname}"  data-fn="del" data-tableName="vital_sign" 
                                                   data-colName="deleted">
                                                    <i class="fa fa-times"></i> </a>
                                            </td>
                                        </tr>
                                        {capture assign=x}{$x+1}{/capture}
                                        {/foreach}
                                </table>

                                <table>
                                    <caption>          Systemic examniation  </caption>
                                    <tbody>
                                        <tr>
                                            <th class="wds10"> Head   :   </th>  
                                            <td>
                                                <select id="head{$obstetric_case->id}"  
                                                        class="form-control headSelect updateElement"  data-colName="head"
                                                        data-rowid="{$obstetric_case->id}"  data-id="{$obstetric_case->id}"
                                                        name="head" select-tableName="head"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    {foreach  $head as $one}
                                                    <option value="{$one->id}"{if $obstetric_case->head eq $one->id}selected{/if}>{$one->name}</option>
                                                    {/foreach}

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

                                            <th class="wds10"> Neck   :   </th>  
                                            <td>
                                                <select id="neck{$obstetric_case->id}"  
                                                        class="form-control neckSelect updateElement"  data-colName="neck"
                                                        data-rowid="{$obstetric_case->id}"  data-id="{$obstetric_case->id}"
                                                        name="neck" select-tableName="neck"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    {foreach  $neck as $one}
                                                    <option value="{$one->id}"{if $obstetric_case->neck eq $one->id}selected{/if}>{$one->name}</option>
                                                    {/foreach}

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

                                            <th class="wds10"> Breast   :   </th>  
                                            <td>
                                                <select id="breast{$obstetric_case->id}"  
                                                        class="form-control breastSelect updateElement"  data-colName="breast"
                                                        data-rowid="{$obstetric_case->id}"  data-id="{$obstetric_case->id}"
                                                        name="breast" select-tableName="breast"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    {foreach  $breast as $one}
                                                    <option value="{$one->id}"{if $obstetric_case->breast eq $one->id}selected{/if}>{$one->name}</option>
                                                    {/foreach}

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

                                        <tr>
                                            <th class="wds10"> Chest   :   </th>  
                                            <td>
                                                <select id="chest{$obstetric_case->id}"  
                                                        class="form-control chestSelect updateElement"  data-colName="chest"
                                                        data-rowid="{$obstetric_case->id}"  data-id="{$obstetric_case->id}"
                                                        name="chest" select-tableName="chest"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    {foreach  $chest as $one}
                                                    <option value="{$one->id}"{if $obstetric_case->chest eq $one->id}selected{/if}>{$one->name}</option>
                                                    {/foreach}

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

                                            <th class="wds10"> Limbs   :   </th>  
                                            <td>
                                                <select id="limbs{$obstetric_case->id}"  
                                                        class="form-control limbsSelect updateElement"  data-colName="limbs"
                                                        data-rowid="{$obstetric_case->id}"  data-id="{$obstetric_case->id}"
                                                        name="limbs" select-tableName="limbs"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    {foreach  $limbs as $one}
                                                    <option value="{$one->id}"{if $obstetric_case->limbs eq $one->id}selected{/if}>{$one->name}</option>
                                                    {/foreach}

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

                                            <th class="wds10"> Back   :   </th>  
                                            <td>
                                                <select id="back{$obstetric_case->id}"  
                                                        class="form-control backSelect updateElement"  data-colName="back"
                                                        data-rowid="{$obstetric_case->id}"  data-id="{$obstetric_case->id}"
                                                        name="back" select-tableName="back"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    {foreach  $back as $one}
                                                    <option value="{$one->id}"{if $obstetric_case->back eq $one->id}selected{/if}>{$one->name}</option>
                                                    {/foreach}

                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                        </tr>
                                </table>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>