
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Sperm Freezing Report
                        </div>
                        <div class="actions">

                            {if $patientId}

                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=show&&patientid={$patientId}" class="btn btn-default btn-sm">
                                Show Reports  </a>
                            {else}
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=show" class="btn btn-default btn-sm">
                                Show Reports </a>
                            {/if}

                        </div>
                    </div>
                    <div class="portlet-body">

                        <!--Begin Semen-->

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-blue-haze col-md-6">
                                    <span class="caption-subject bold uppercase">Edit</span>
                                </div>

                            </div>

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

                            {if $patientId}
                            <form action="{$hosturl}/controllers/{$controllname}.php?ac=updateit&patientid={$patientId}" method="post" class="clinick">
                                {else}
                                <form action="{$hosturl}/controllers/{$controllname}.php?ac=updateit" method="post" class="clinick">
                                    {/if}
                                    <div class="form-body">


                                        <div class="form-group ">
                                            <label class="col-md-2 txtl" for="form_control_1">Ref. by Prof. Dr :</label>
                                            <div class="col-md-3">
                                                <input type="text" class="form-control " readonly required="required"  value="{if !empty($ref_dr['name'])}{$ref_dr['name']}{else}{$ref_dr}{/if}" name="ref_by"/>
                                                <input type="hidden"  value="{if !empty($ref_dr['user_id'])}{$ref_dr['user_id']}{else}0{/if}" name="ref_by_dr_id"/>
                                            </div> 
                                        </div>
                                        <div class="form-group ">
                                            <div class="col-md-6">
                                                <label class="col-md-4 control-label" for="form_control_1">
                                                    Sperm Source
                                                </label>
                                                <div class="col-md-8">

                                                    <div class="col-md-5">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio"  id="Ejaculate" name="sperm_source" class="md-radiobtn" value="0"  {if $editElement->sperm_source eq 0}checked{/if}>
                                                                <label for="Ejaculate">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Ejaculate </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-5">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio"  id="Aspiration" name="sperm_source" class="md-radiobtn" value="1" {if $editElement->sperm_source eq 1}checked{/if}>
                                                                <label for="Aspiration">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Test. Aspiration </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-5">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio" id="EpidAspiration" name="sperm_source" class="md-radiobtn" value="2" {if $editElement->sperm_source eq 2}checked{/if}>
                                                                <label for="EpidAspiration">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Epid. Aspiration </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-5">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio" id="TestBiopsy" name="sperm_source" class="md-radiobtn" value="3" {if $editElement->sperm_source eq 3}checked{/if}>
                                                                <label for="TestBiopsy">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Test. Biopsy </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group ">
                                            <div class="col-md-12">
                                                <label class="col-md-2 control-label" for="form_control_1">
                                                    Sperm Parameters
                                                </label>
                                                <div class="col-md-8">
                                                    <div class="col-md-12">
                                                        <label class="col-md-4 control-label" for="form_control_1">
                                                            Count:
                                                        </label>
                                                        <div class="col-md-4">
                                                            <input type="text" name="count" class="form-control input-sm " id="form_control_1" placeholder="" value="{$editElement->count}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-4 control-label" for="form_control_1">
                                                            Motility:
                                                        </label>
                                                        <div class="col-md-4">
                                                            <input type="text" name="motility" class="form-control input-sm " id="form_control_1" placeholder="" value="{$editElement->motility}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-4 control-label" for="form_control_1">
                                                            (A+B):
                                                        </label>
                                                        <div class="col-md-4">
                                                            <input type="text" name="a_plus_b" class="form-control input-sm updateElement" id="form_control_1" placeholder="" value="{$editElement->a_plus_b}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-4 control-label" for="form_control_1">
                                                            Morphology(Abn.):
                                                        </label>
                                                        <div class="col-md-4">
                                                            <input type="text" name="morphology" class="form-control input-sm updateElement" id="form_control_1" placeholder="" value="{$editElement->morphology_abn}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-4 control-label" for="form_control_1">
                                                            Comment:
                                                        </label>
                                                        <div class="col-md-8">
                                                            <textarea class="form-control updateElement" name="comment" rows="3" placeholder="Enter more text" >{$editElement->comment}</textarea>
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-4 control-label" for="form_control_1">
                                                            No. Of Samples:
                                                        </label>
                                                        <div class="col-md-4">
                                                            <input type="text" name="samples_no" class="form-control input-sm updateElement" id="form_control_1" placeholder="" value="{$editElement->samples_no}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-4 control-label" for="form_control_1">
                                                            Freezing Media:
                                                        </label>
                                                        <div class="col-md-4">

                                                            <select class="form-control frmedia allupdateselect" id="frmedia" name="media" select-tableName="freezingmedia" data-colName="media">
                                                                <option value="">choose</option>
                                                                {foreach  $freezing_media as $one}
                                                                <option value="{$one->id}"{if $editElement->freezing_media_id eq $one->id}selected{/if}>{$one->media}</option>
                                                                {/foreach}

                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                            </select>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-4 control-label" for="form_control_1">
                                                            Freezing Protocol:
                                                        </label>
                                                        <div class="col-md-4">
                                                            <select class="form-control protocol" id="protocol" name="protocol" data-colName="protocol" select-tableName="freezingprotocol" >
                                                                <option value="">choose</option>
                                                                {foreach  $freezingprotocol as $one}
                                                                <option value="{$one->id}"{if $editElement->freezing_protocol_id eq $one->id}selected{/if}>{$one->protocol}</option>
                                                                {/foreach}

                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group ">
                                            <div class="col-md-6">
                                                <label class="col-md-4 control-label" for="form_control_1">
                                                    Purpose Of Freezing:
                                                </label>
                                                <div class="col-md-8">

                                                    <div class="col-md-3">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio"  id="IUI" name="purpose" class="md-radiobtn" value="0" {if $editElement->purpose_of_freezing eq 0}checked{/if}>
                                                                <label for="IUI">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    IUI </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio"  id="ICSI" name="purpose" class="md-radiobtn" value="1" {if $editElement->purpose_of_freezing eq 1}checked{/if}>
                                                                <label for="ICSI">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    ICSI </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio"  id="Preservation" name="purpose" class="md-radiobtn" value="2" {if $editElement->purpose_of_freezing eq 2}checked{/if}>
                                                                <label for="Preservation">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Preservation </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <label class="col-md-2 control-label" for="form_control_1">
                                                Location:
                                            </label>
                                            <div class="col-md-5">
                                                <input type="text" name="location" class="form-control input-sm updateElement bp_location2" id="" placeholder="" value="{$editElement->location}">
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <label class="col-md-2 control-label" for="form_control_1">
                                                Color Of Pen:
                                            </label>
                                            <div class="col-md-5">
                                                <input type="text" name="color_of_pen" class="form-control input-sm updateElement" id="form_control_1" placeholder="" value="{$editElement->color_of_pen}">
                                                <div class="form-control-focus">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group ">
                                            <div class="col-md-12">


                                                <div class="col-md-12">
                                                    <label class="col-md-2 control-label" for="form_control_1">
                                                        Embryologist :
                                                    </label>
                                                    <div class="col-md-5">
                                                        <select class="form-control" id="embryology1" name="embryology1" data-colName="name" select-tableName="awusers"  data-id="{$one.user_id}" >
                                                            <option value="">choose</option>
                                                            {foreach  $embryologist as $one}
                                                            <option value="{$one.user_id}"{if $editElement->embryologist1 eq $one.user_id}selected{/if}>{$one.name}</option>
                                                            {/foreach}

                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="col-md-12">
                                                    <label class="col-md-2 control-label" for="form_control_1">
                                                        Consultant :
                                                    </label>
                                                    <div class="col-md-5">
                                                        <select class="form-control" id="embryology2" name="embryology2" data-colName="name" select-tableName="awusers"  data-id="{$one.user_id}" >
                                                            <option value="">choose</option>
                                                            {foreach  $embryologist as $one}
                                                            <option value="{$one.user_id}"{if $editElement->embryologist2 eq $one.user_id}selected{/if}>{$one.name}</option>
                                                            {/foreach}

                                                        </select>
                                                    </div>

                                                </div>
                                            </div>
                                        </div>
                                    </div>


                                    <input type="hidden" id="id" name="id" value="{$editElement->id}" />


                                    <div class="form-actions">
                                        <div class="row">
                                            <div class="col-md-offset-2 col-md-10">
                                                {if $patientId}
                                                <a class="btn default" href="{$hosturl}/controllers/{$controllname}.php?ac=show&patientid={$patientId}">Cancel</a>
                                                {else}
                                                <a class="btn default" href="{$hosturl}/controllers/{$controllname}.php?ac=show">Cancel</a>
                                                {/if}

                                                <button type="submit" class="btn blue">Submit</button>

                                            </div>
                                        </div>
                                    </div>
                                </form>

                        </div>
                    </div>
                </div>
            </div>

            <div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="edit_model">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                            <h4 class="modal-title"> Edit </h4>
                        </div>
                        <div class="modal-body">
                            <div class="portlet-body form">
                                <form action="" id="" method="post" class="form-horizontal  emptyform" >
                                    <div class="form-body all" >
                                        <!------===========================================------->
                                        <div class="form-group">
                                            <label class="col-md-1 control-label"> </label>
                                            <div class="col-md-10">
                                                <div id="alldatadiv" class="" > </div>
                                            </div>
                                            <label class="col-md-1 control-label"> </label>
                                        </div>

                                        <!------===========================================------->

                                        <!------===========================================------->
                                        <div class="modal-footer">

                                            <button type="button" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <!-- /.modal-content -->
                    </div>
                </div>
            </div>
            <input type="hidden" id="spermfreez" value="1">


        </div>
    </div>
</div>


