<div class="portlet box purple">
    <div class="portlet-title">
        <div class="caption">Menstrual History </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">
                                <input type="hidden" id="menstrual_itr"  value="1"  />
                                <table>
                                    <thead>
                                        <tr>
                                            <th class="wds8"> Menarche </th>
                                            <th class="wds8"> Duration </th>
                                            <th class="wds8"> Length </th>
                                            <th class="wds16"> Regularity </th>
                                            <th class="wds21"> Amount </th>
                                            <th class="wds20"> Dysmenorrhoea </th>
                                            <th class="wds9"> LMP </th>
                                            <th class="wds9"> EDD </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>
                                                <input type="text" placeholder="Menarche" class="form-control updateElement"  
                                                       name="menarche" data-colName="menarche"  
                                                       data-id="{$phmenstrual->id}" data-tableName="phmenstrual" 
                                                       value="{$phmenstrual->menarche}"/>
                                            </td>
                                            <td>
                                                <input type="text" placeholder="Duration" class="form-control updateElement"  
                                                       name="duration" data-colName="duration" data-id="{$phmenstrual->id}" 
                                                       data-tableName="phmenstrual" value="{$phmenstrual->duration}" />
                                            </td>
                                            <td>
                                                <input type="text" placeholder="Length" class="form-control updateElement"  
                                                       name="length" data-colName="length"  data-id="{$phmenstrual->id}"
                                                       data-tableName="phmenstrual" value="{$phmenstrual->length}" />
                                            </td>
                                            <td>
                                                <select class="form-control  updateElement phregularity allupdateselect" 
                                                        id="phregularity1" data-val="{$phmenstrual->phregularity}" 
                                                        data-itr="1" name="phregularity" select-tableName="phregularity" 
                                                        data-colName="phregularity"  data-id="{$phmenstrual->id}" 
                                                        data-tableName="phmenstrual"  >
                                                    <option value="">choose</option>
                                                    {foreach  $allphregualrity as $myallphregualrity}
                                                    <option value="{$myallphregualrity->id}" {if {$myallphregualrity->id} eq {$phmenstrual->phregularity} } selected {/if}>{$myallphregualrity->name} </option>
                                                    {/foreach}

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

                                                </select>
                                            </td>
                                            <td>
                                                <select class="form-control  updateElement phamount allupdateselect" 
                                                        id="phamount1" data-itr="1" data-val="{$phmenstrual->phamount}"  
                                                        name="phamount" data-colName="phamount" select-tableName="phamount"  
                                                        data-id="{$phmenstrual->id}" data-tableName="phmenstrual" >
                                                    <option value="">choose</option>
                                                    {foreach  $allphamount as $myallphamount}
                                                    <option value="{$myallphamount->id}" {if {$myallphamount->id} eq {$phmenstrual->phamount} } selected {/if}>{$myallphamount->name} </option>
                                                    {/foreach}

                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                            <td>
                                                <select class="form-control  updateElement phdysmenorrhoea allupdateselect" 
                                                        id="phdysmenorrhoea1" data-itr="1" 
                                                        data-val="{$phmenstrual->phdysmenorrhoea}" name="phdysmenorrhoea" 
                                                        select-tableName="phdysmenorrhoea" data-colName="phdysmenorrhoea"  
                                                        data-id="{$phmenstrual->id}" data-tableName="phmenstrual" >
                                                    <option value="">choose</option>
                                                    {foreach  $allphdysmenorrhoea as $myallphdysmenorrhoea}
                                                    <option value="{$myallphdysmenorrhoea->id}" {if {$myallphdysmenorrhoea->id} eq {$phmenstrual->phdysmenorrhoea} } selected {/if}>{$myallphdysmenorrhoea->name} </option>
                                                    {/foreach}

                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                            <td>
                                                <input type="text" placeholder="LMP" name="phl_mp"   id="phl_mp"
                                                       class="form-control updateElement datepicker"  data-colName="phl_mp"  
                                                       data-id="{$phmenstrual->id}" data-tableName="phmenstrual" 
                                                       value="{$phmenstrual->phl_mp}"/>
                                            </td>
                                            <td>
                                                <input type="text" placeholder="LMP" name="edd"   id="edd"
                                                       class="form-control updateElement datepicker"  data-colName="edd"  
                                                       data-id="{$phmenstrual->id}" data-tableName="phmenstrual" 
                                                       value="{$phmenstrual->edd}"/>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                            </div>
                        </form>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>


