<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 12:02:47
         compiled from "../views/obgy/gyna/newrow.html" */ ?>
<?php /*%%SmartyHeaderCode:50093330665fffa47b96c60-32670465%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7f4d1827eaae5d4dd070a65f3133b7756337dbf8' => 
    array (
      0 => '../views/obgy/gyna/newrow.html',
      1 => 1663738784,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '50093330665fffa47b96c60-32670465',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'gyna_obj' => 0,
    'ProgramesettingData' => 0,
    'allcomplaint' => 0,
    'comp' => 0,
    'alldiagnosis' => 0,
    'mydiagnosis' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fffa47c3af12_22196896',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fffa47c3af12_22196896')) {function content_65fffa47c3af12_22196896($_smarty_tpl) {?><tr>
    <td>
        <input type="text" class="form-control datepicker" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-colName="gynadate" data-tableName="gyna" value="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->gynadate;?>
" readonly />
    </td>
    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->gynalmp==1){?>
    <td>
        <input type="text" class="form-control datepicker" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-colName="gynalmp" data-tableName="gyna" value="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->gynalmp;?>
" readonly />
    </td>
    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->diagnosshow==0){?>

    <td>
        <!--select2me complaint-->

        <input type="hidden" id="currentid" value="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
"/>
        <select multiple="" class="form-control select2me complaint updateDiagnosis" id="complaint<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-colName="complaintid" data-tableName="gyna">
            <option value="">choose</option>
            <?php  $_smarty_tpl->tpl_vars['comp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['comp']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allcomplaint']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['comp']->key => $_smarty_tpl->tpl_vars['comp']->value){
$_smarty_tpl->tpl_vars['comp']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['comp']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['gyna_obj']->value->complaintid==$_smarty_tpl->tpl_vars['comp']->value->id){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['comp']->value->name;?>
</option>
            <?php } ?>
            <option value="-1" class="addDiagnosis">Add</option>
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>

        <!-- <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-colName="diagnosisid" data-tableName="gyna" value="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->diagnosisid;?>
"/>  -->
    </td>

    <td>
        <!--select2me diagnosis-->
        <select multiple="" class="form-control select2me diagnosis updateDiagnosis" id="diagnosis<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-colName="diagnosisid" data-tableName="gyna">
            <option value="">choose</option>
            <?php  $_smarty_tpl->tpl_vars['mydiagnosis'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mydiagnosis']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alldiagnosis']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['mydiagnosis']->key => $_smarty_tpl->tpl_vars['mydiagnosis']->value){
$_smarty_tpl->tpl_vars['mydiagnosis']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['mydiagnosis']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['gyna_obj']->value->diagnosisid==$_smarty_tpl->tpl_vars['mydiagnosis']->value->id){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['mydiagnosis']->value->name;?>
</option>
            <?php } ?>
            <option value="-1" class="addDiagnosis">Add</option>
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>

        <!-- <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-colName="diagnosisid" data-tableName="gyna" value="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->diagnosisid;?>
"/>  -->
    </td>
    <?php }else{ ?>
    <td>
        <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-colName="complaint" data-tableName="gyna" value="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->complaint;?>
"/>
    </td>
    <?php }?>
    <td>
        <textarea class="form-control updateElement txtc" rows="1" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" data-colName="notes" data-tableName="gyna" placeholder="Enter more text"><?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->notes;?>
</textarea>
    </td>
    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['gyna_obj']->value->id;?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del">
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>



<script type="text/javascript" >
    $('.datepickertoday').datepicker('setDate', '+0');
    $('.datepicker').datepicker();
    var diagnosis_itr = $('#currentid').val();
    $('#currentid').remove();
    $('#diagnosis' + diagnosis_itr).select2({
        width: '270px',
        allowClear: true,
        formatNoMatches: function (term) {
            //return "<input class='form-control' id='newregTerm' value='" + term + "'><a href='#' id='addregnew' data-id=" + diagnosis_itr + " class='btn btn-default'>Add</a>"
        }
    });
    $('#complaint' + diagnosis_itr).select2({
        width: '270px',
        allowClear: true,
        formatNoMatches: function (term) {
            //return "<input class='form-control' id='newregTerm' value='" + term + "'><a href='#' id='addregnew' data-id=" + diagnosis_itr + " class='btn btn-default'>Add</a>"
        }
    });
</script>


<?php }} ?>