<?php /* Smarty version Smarty-3.1.11, created on 2025-03-22 02:53:35
         compiled from "../views/obgy/ultrasoundobst/add.html" */ ?>
<?php /*%%SmartyHeaderCode:37611083967de889f8ee904-53917427%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6723d74002d237a50bc2d74420abff05b4a56914' => 
    array (
      0 => '../views/obgy/ultrasoundobst/add.html',
      1 => 1542464116,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '37611083967de889f8ee904-53917427',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'patientData' => 0,
    'ultrasoundobstData' => 0,
    'allSname' => 0,
    'sname' => 0,
    'detailCount' => 0,
    'ultrasoundobstDetail' => 0,
    'i' => 0,
    'detail' => 0,
    'hosturl' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67de889fa04b57_99463044',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67de889fa04b57_99463044')) {function content_67de889fa04b57_99463044($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick invz" id="prinModel">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Ultrasound Obstetric
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="ultrasoundobstPage" value="1"/>
                        <input type="hidden" id="patientId" value="<?php echo $_smarty_tpl->tpl_vars['patientData']->value->id;?>
"/>
                        <input type="hidden" id="controllName" value="ultrasoundobst"/>
                        <!---======================================================== tab1============================================================================================ ----->

                        <div class="row">
                            <div id="ultrasoundobstDiv">

                                <div class="row">

                                    <div class="portlet-body form">
                                        <form>
                                            <div class="form-body">
                                                <div class="col-md-6">

                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Patient Name</label>
                                                        <div class="col-md-6">
                                                            <div class="form-control form-control-static">
                                                                <?php echo $_smarty_tpl->tpl_vars['patientData']->value->wifename;?>

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

                                                <div class="col-md-6">

                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Patient ID</label>
                                                        <div class="col-md-6">
                                                            <div class="form-control form-control-static">
                                                                <?php echo $_smarty_tpl->tpl_vars['patientData']->value->id;?>

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





                                                <div class="col-md-6">
                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Date of Birth</label>
                                                        <div class="col-md-6">
                                                            <div class="form-control form-control-static">
                                                                <?php echo $_smarty_tpl->tpl_vars['patientData']->value->dateofbirth;?>

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


                                                <div class="col-md-6">
                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Referring Physican</label>
                                                        <div class="col-md-6">
                                                            <input type="text" class="form-control input-sm updateElement" id="form_control_1" placeholder="Referring Physican" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="physician" data-tableName="ultrasoundobst" value="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->physician;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="col-md-6">
                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Date of Exam</label>
                                                        <div class="col-md-6">
                                                            <input type="text" class="form-control input-sm datepicker updateElement txtc" placeholder="Date of Exam" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="edate" data-tableName="ultrasoundobst" value="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->edate;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-md-6 control-label" for="form_control_1">Sonographer</label>
                                                        <div class="col-md-6">
                                                            <select class="form-control select2me updateElement" data-placeholder="Select..." data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="sid" data-tableName="ultrasoundobst">
                                                                <option></option>
                                                                <?php  $_smarty_tpl->tpl_vars['sname'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sname']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allSname']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sname']->key => $_smarty_tpl->tpl_vars['sname']->value){
$_smarty_tpl->tpl_vars['sname']->_loop = true;
?>
                                                                <option value="<?php echo $_smarty_tpl->tpl_vars['sname']->value['user_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['ultrasoundobstData']->value->sid==$_smarty_tpl->tpl_vars['sname']->value['user_id']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['sname']->value['user_name'];?>
</option>
                                                                <?php } ?>
                                                            </select>                                                            
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

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


                                                <div class="col-md-6">
                                                    <label class="col-md-9 control-label" for="form_control_1">
                                                        Indication for scan and relevant clinical information
                                                    </label>
                                                    <div class="col-md-3">
                                                        <input type="text" class="form-control input-sm updateElement" id="form_control_1" placeholder="" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="indication" data-tableName="ultrasoundobst" value="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->indication;?>
">
                                                        <div class="form-control-focus">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="col-md-6">
                                                    <label class="col-md-2 control-label" for="form_control_1">
                                                        LMP
                                                    </label>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="col-md-6">
                                                    <label class="col-md-4 control-label" for="form_control_1">
                                                        Technical conditions
                                                    </label>
                                                    <div class="col-md-8">


                                                        <div class="col-md-3">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="goodt" name="tcondition" class="md-radiobtn sradio" data-val="0" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="tcondition" data-tableName="ultrasoundobst" <?php if ($_smarty_tpl->tpl_vars['ultrasoundobstData']->value->tcondition==0){?>checked<?php }?>>
                                                                    <label for="goodt">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Good </label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="col-md-4">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="limitedt" name="tcondition" class="md-radiobtn sradio" data-val="1" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="tcondition" data-tableName="ultrasoundobst" <?php if ($_smarty_tpl->tpl_vars['ultrasoundobstData']->value->tcondition==1){?>checked<?php }?>>
                                                                    <label for="limitedt">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Limited by </label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="col-md-5" id="limitcond" <?php if ($_smarty_tpl->tpl_vars['ultrasoundobstData']->value->tcondition!=1){?>style="display:none"<?php }?>>
                                                            <input type="text" class="form-control input-sm updateElement" id="form_control_1" placeholder="" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="limit" data-tableName="ultrasoundobst" value="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->limit;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>

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

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

                                                <div class="col-md-12">
                                                    <div class="col-md-8">


                                                        <div class="col-md-2">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="single" name="babyno" class="md-radiobtn sradio" data-val="1" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="babyno" data-tableName="ultrasoundobst" <?php if ($_smarty_tpl->tpl_vars['ultrasoundobstData']->value->babyno==1){?>checked<?php }?>>
                                                                    <label for="single">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Singleton </label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="col-md-2">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="twinz" name="babyno" class="md-radiobtn sradio" data-val="2" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="babyno" data-tableName="ultrasoundobst" <?php if ($_smarty_tpl->tpl_vars['ultrasoundobstData']->value->babyno==2){?>checked<?php }?>>
                                                                    <label for="twinz">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Twinz </label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="col-md-2">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="many" name="babyno" class="md-radiobtn sradio" data-val="3" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="babyno" data-tableName="ultrasoundobst" <?php if ($_smarty_tpl->tpl_vars['ultrasoundobstData']->value->babyno!=1&&$_smarty_tpl->tpl_vars['ultrasoundobstData']->value->babyno!=2){?>checked<?php }?>>
                                                                    <label for="many">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Chorionicity </label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3" id="babyNo" <?php if ($_smarty_tpl->tpl_vars['ultrasoundobstData']->value->babyno==1||$_smarty_tpl->tpl_vars['ultrasoundobstData']->value->babyno==2){?>style="display:none"<?php }?>>
                                                            <input type="text" class="form-control input-sm updateElement wds75 fright" id="babyNotxt" placeholder="" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
" data-colName="babyno" data-tableName="ultrasoundobst" value="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->babyno;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>

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

                                                    </div>
                                                </div>
                                                <input type="hidden" id="model_count" value="<?php echo $_smarty_tpl->tpl_vars['detailCount']->value;?>
"/>
                                                <div class="row hidPrint" id="mainForm">
                                                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                                    <?php  $_smarty_tpl->tpl_vars['detail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['detail']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ultrasoundobstDetail']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['detail']->key => $_smarty_tpl->tpl_vars['detail']->value){
$_smarty_tpl->tpl_vars['detail']->_loop = true;
?>
                                                    <a class="btn btn-default btn-sm showMod" <?php if ($_smarty_tpl->tpl_vars['i']->value>2){?>style="margin-left: 30px;"<?php }?> data-id="<?php echo $_smarty_tpl->tpl_vars['detail']->value->id;?>
">
                                                        <i class="fa fa-plus"></i> Baby<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</a>
                                                    <?php if ($_smarty_tpl->tpl_vars['i']->value>1){?>
                                                    <button type="button" class="btn btn-xs red fright removeMsg" style="position: absolute; margin-left: -5px;height:29px;" data-tableName="ultrasoundobstdetail" data-id="<?php echo $_smarty_tpl->tpl_vars['detail']->value->id;?>
"><i class="fa fa-close"></i></button>
                                                    <?php }?>



                                                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                                    <?php } ?>
                                                </div>

                                            </div>

                                            <div class="row">
                                                <div class="col-md-offset-2 col-md-10 hidPrint">
                                                    <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/ultrasoundobst.php?ac=index&patientid=<?php echo $_smarty_tpl->tpl_vars['patientData']->value->id;?>
" class="btn default">Cancel</a>
                                                    <button type="button" id="doneBtn" class="btn blue" data-id="<?php echo $_smarty_tpl->tpl_vars['ultrasoundobstData']->value->id;?>
">Save</button>
                                                </div>
                                                <br>
                                            </div>
                                        </form>
                                    </div>

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

                            </div>
                        </div>

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




                    </div>



                </div>
                <div id="yy"></div>
            </div>
        </div>
    </div>
</div>
<div class="clearfix"></div>
<div id="vvv"></div><?php }} ?>