
<div class="row clinick ltr" >

    <div class="col-md-1">
        <div class="">
            <label class="control-label col-md-2 ">{if $ProgramesettingData->displaydoctorname eq 1}{$username}{/if}</label>
        </div>
    </div>
</div>
<div class="row clinick ltr" >
    <div class="col-md-1 wds9">
        <div class="form-group form-md-line-input form-md-floating-label has-info">
            <input type="text" class="form-control updateElement datepicker" name="examinationdate" data-colName="examinationdate"  data-id="{$exmination_obj->id}" value="{$exmination_obj->examinationdate}" data-tableName="examination" />
            <!--<label for="date">Date</label>-->
        </div>
    </div>


    <div class="col-md-2 anamez wds12">
        <div class="input-group">
            <span class="input-group-addon" style="padding: 6px 6px;">
                WT.
            </span>
            <input type="text" class="form-control updateElement txtc calcbm positivefloat" name="weight" id="weight{$exmination_obj->id}" data-colName="weight"  data-id="{$exmination_obj->id}" data-tableName="examination" />
            <span class="input-group-addon" style="padding: 6px 6px;">
                KG
            </span>
        </div>
    </div>

    <div class="col-md-2 anamez wds12">
        <div class="input-group">
            <span class="input-group-addon" style="padding: 6px 6px;">HT.</span>
            <input type="text" class="form-control updateElement txtc calcbm positivefloat" name="height" id="height{$exmination_obj->id}" data-colName="height"  data-id="{$exmination_obj->id}"  data-tableName="examination" />
            <label for="form_control_1"></label>
            <span class="input-group-addon" style="padding: 6px 6px;">M</span>
        </div>
    </div>

    <div class="col-md-2 anamez wds15">
        <div class="input-group">
            <span class="input-group-addon" style="padding: 6px 6px;">BMI</span>
            <input type="text" class="form-control updateElement txtc" name="bmi" data-colName="bmi" id="bmi{$exmination_obj->id}"  data-id="{$exmination_obj->id}" data-tableName="examination" readonly="" />
            <label for="form_control_1"></label>
            <span class="input-group-addon" style="padding: 6px 6px;">Kg/ m²</span>

        </div>
    </div>

    <div class="col-md-2 anamez wds25">
        <div class="input-group">
            <span class="input-group-addon" style="padding: 6px 6px;">BP1</span>
            <input type="text" class="form-control updateElement bp_mask txtc" name="bP" data-colName="bP"  data-id="{$exmination_obj->id}" data-tableName="examination" />
            <label for="form_control_1"></label>
            <span class="input-group-addon" style="padding: 6px 6px;">BP2</span>
            <input type="text" class="form-control updateElement bp_mask txtc" name="bp2" data-colName="bp2"  data-id="{$exmination_obj->id}" data-tableName="examination" />
            <label for="form_control_1"></label>
            <span class="input-group-addon" style="padding: 6px 6px;">mmHg</span>
        </div>
    </div>

    <div class="col-md-2 anamez wds14">
        <div class="input-group">
            <span class="input-group-addon" style="padding: 6px 6px;">Pulse</span>
            <input type="text" class="form-control updateElement txtc" name="pulse" data-colName="pulse" data-id="{$exmination_obj->id}" data-tableName="examination" />
            <label for="form_control_1"></label>
            <span class="input-group-addon" style="padding: 6px 6px;">/min</span>
        </div>
    </div>

    <div class="col-md-2 anamez wds13">
        <div class="input-group">
            <span class="input-group-addon" style="padding: 6px 6px;">RGB </span>
            <input type="text" class="form-control updateElement txtc" name="rgb" data-colName="rgb" data-id="{$exmination_obj->id}" data-tableName="examination" />
            <label for="form_control_1"></label>
            <span class="input-group-addon" style="padding: 6px 6px;">mg/dl</span>
        </div>
    </div>



    <div class="col-md-12">
        <div class="col-md-2 wds20">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                {if $ProgramesettingData->head eq 1}
                <input type="text" class="form-control updateElement"  name="headandneck" data-colName="headandneck"  data-id="{$exmination_obj->id}" data-tableName="examination" value="" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content=""/>
                {else}

                <select class="form-control  updateElement  allupdateselect headandneck" id="examinationhead{$itr}" data-itr="{$itr}" data-val=""  name="headandneck" data-colName="headandneck" select-tableName="examinationhead"  data-id="{$exmination_obj->id}" data-tableName="examination" >
                    <option value="">choose</option>
                    {foreach  $examinationhead as $data}
                    <option value="{$data->id}" >{$data->name} </option>
                    {/foreach}

                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
                {/if}
                <label for="headandneck">Head and neck:</label>
            </div>
        </div>
        <div class="col-md-2 wds20">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                {if $ProgramesettingData->chest eq 1}
                <input type="text" class="form-control updateElement"  name="chestandheart" data-colName="chestandheart"  data-id="{$exmination_obj->id}" data-tableName="examination" value=""  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content=""/>
                {else}

                <select class="form-control  updateElement  allupdateselect chestandheart" id="examinationchest{$itr}" data-itr="{$itr}" data-val=""  name="chestandheart" data-colName="chestandheart" select-tableName="examinationchest"  data-id="{$exmination_obj->id}" data-tableName="examination" >
                    <option value="">choose</option>
                    {foreach  $examinationchest as $data}
                    <option value="{$data->id}" >{$data->name} </option>
                    {/foreach}

                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
                {/if}
                <label for="chestandheart">Chest and heart:</label>
            </div>
        </div>
        <div class="col-md-2 wds20">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                {if $ProgramesettingData->abdomen eq 1}
                <input type="text" class="form-control updateElement"  name="abdomen" data-colName="abdomen"  data-id="{$exmination_obj->id}" data-tableName="examination" value="{$exmination_obj->abdomen}"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$exmination_obj->abdomen}"/>
                {else}

                <select class="form-control  updateElement  allupdateselect abdomen" id="examinationabdomen{$itr}" data-itr="{$itr}" data-val="{$exmination_obj->abdomen}"  name="abdomen" data-colName="abdomen" select-tableName="examinationabdomen"  data-id="{$exmination_obj->id}" data-tableName="examination" >
                    <option value="">choose</option>
                    {foreach  $examinationabdomen as $data}
                    <option value="{$data->id}" >{$data->name} </option>
                    {/foreach}

                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
                {/if}
                <label for="Abdomen">Abdomen</label>
            </div>
        </div>

        <div class="col-md-2 wds20">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                {if $ProgramesettingData->pelvis eq 1}
                <input type="text" class="form-control updateElement"  name="pelvis" data-colName="pelvis"   data-id="{$exmination_obj->id}" data-tableName="examination" value="{$exmination_obj->pelvis}"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$exmination_obj->pelvis}"/>
                {else}

                <select class="form-control  updateElement  allupdateselect pelvis" id="examinationpelvis{$itr}" data-itr="{$itr}" data-val="{$exmination_obj->pelvis}"  name="pelvis" data-colName="pelvis" select-tableName="examinationpelvis"  data-id="{$exmination_obj->id}" data-tableName="examination" >
                    <option value="">choose</option>
                    {foreach  $examinationpelvis as $data}
                    <option value="{$data->id}" >{$data->name} </option>
                    {/foreach}

                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
                {/if}
                <label for="examinationpelvis{$itr}">Pelvis</label>
            </div>
        </div>


        <div class="col-md-2 wds20">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                {if $ProgramesettingData->extremitis eq 1}
                <input type="text" class="form-control updateElement"  name="extremitis" data-colName="extremitis"   data-id="{$exmination_obj->id}" data-tableName="examination" value="{$exmination_obj->extremitis}"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$exmination_obj->extremitis}" />
                {else}

                <select class="form-control  updateElement  allupdateselect extremitis" id="examinationextremitis{$itr}" data-itr="{$itr}" data-val="{$exmination_obj->extremitis}"  name="extremitis" data-colName="extremitis" select-tableName="examinationextremitis"  data-id="{$exmination_obj->id}" data-tableName="examination" >
                    <option value="">choose</option>
                    {foreach  $examinationextremitis as $data}
                    <option value="{$data->id}" >{$data->name} </option>
                    {/foreach}

                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
                {/if}
                <label for="Extremitis">Extremities</label>
            </div>
        </div>










        <button type="button" class="btn btn-xs red fright deleteExamination axedelete" data-id="{$exmination_obj->id}" data-tableName="examination"><i class="fa fa-close"></i></button>


    </div>
</div>

{literal}
<script type="text/javascript" >

    jQuery.fn.forcepositiveNum = function () {

        return this.each(function () {
            $(this).keydown(function (e) {
                var key = e.which || e.keyCode;
                //alert(key);
                if (!e.shiftKey && !e.altKey && !e.ctrlKey &&
                        // numbers
                        key >= 48 && key <= 57 ||
                        // Numeric keypad
                        key >= 96 && key <= 105 ||
                        // comma, period and minus, . on keypad
                        //key == 190 || key == 188 || key == 109 || key == 110 ||
                        // Backspace and Tab and Enter
                        key == 8 || key == 9 || key == 13 ||
                        // Home and End
                        key == 35 || key == 36 ||
                        // left and right arrows
                        key == 37 || key == 39 ||
                        // Del and Ins
                        key == 46 || key == 45)
                    return true;

                return false;
            });
        });
    }

    jQuery.fn.forcepositivefloat = function () {

        return this.each(function () {
            $(this).keydown(function (e) {
                var key = e.which || e.keyCode;
                //alert(key);
                if (!e.shiftKey && !e.altKey && !e.ctrlKey &&
                        // numbers
                        key >= 48 && key <= 57 ||
                        // Numeric keypad
                        key >= 96 && key <= 105 ||
                        // comma, period and minus, . on keypad
                        //key == 190 || key == 188 || key == 109 || key == 110 ||
                        // Backspace and Tab and Enter
                        key == 8 || key == 9 || key == 13 ||
                        // Home and End
                        key == 35 || key == 36 ||
                        // left and right arrows
                        key == 37 || key == 39 ||
                        //dot or point  .  on keyboard  for one time
                                (key == 110 && $(this).val().indexOf(".") < 0) ||
                                // Del and Ins
                                key == 46 || key == 45)
                    return true;

                return false;
            });
        });
    }


    $(document).ready(function (e)
    {
        $(".positiveNo").forcepositiveNum();
        $(".positivefloat").forcepositivefloat();
    });


    $("input").focus(function () {
        var xlabel = $(this).parent('#div_exmination div').first().children('label').html();
        $(this).parent('#div_exmination div').first().children('label').hide()
        $(this).attr("placeholder", xlabel);
    });

</script>
{/literal}



