<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 11:57:10
         compiled from "../views/obgy/patienthistory/newContractRow.html" */ ?>
<?php /*%%SmartyHeaderCode:20138732765fff8f6c31802-21018546%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9d897491bc2d8fbf58c79e935e1d01da6c7ae6fd' => 
    array (
      0 => '../views/obgy/patienthistory/newContractRow.html',
      1 => 1674647358,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20138732765fff8f6c31802-21018546',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'case_summary' => 0,
    'itr' => 0,
    'phconstract_obj' => 0,
    'allphcontracttype' => 0,
    'myallphcontracttype' => 0,
    'ProgramesettingData' => 0,
    'username' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fff8f6ced023_54606482',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fff8f6ced023_54606482')) {function content_65fff8f6ced023_54606482($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['case_summary']->value==1){?>

<tr>
    <td class="wds16">
        <select  class="form-control contype contype updateElement allupdateselect" data-val=""  id="contype<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" name="contype" data-colName="contype"  select-tableName="phcontracttype"  data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception" >
            <option value="">choose</option>
            <?php  $_smarty_tpl->tpl_vars['myallphcontracttype'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphcontracttype']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphcontracttype']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphcontracttype']->key => $_smarty_tpl->tpl_vars['myallphcontracttype']->value){
$_smarty_tpl->tpl_vars['myallphcontracttype']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphcontracttype']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['myallphcontracttype']->value->name;?>
 </option>
            <?php } ?>
            <option value="-2" class="deleteoptincompo" >Delete</option>
        </select>
    </td>
    <td class="wds16">
        <input type="text" class="form-control  updateElement wds85" placeholder="Duration" name="contduration" 
               data-colName="contduration"   data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception" 
               style="display: inline;"/>Y
    </td>
    <td class="wds16">
        <input type="text" class="form-control  updateElement wds85" placeholder="Stopped" name="contstopped" 
               data-colName="contstopped"  data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception" 
               style="display: inline;"/>Y
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="contranote" data-colName="contranote"   data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception"/>
    </td>
    <td  class="wds5">
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" 
           data-link="case_summary"  data-fn="del" data-tableName="phcontraception" data-colName="del">
            <i class="fa fa-times"></i> </a>
    </td>
</tr>
<?php }else{ ?>
<div>
    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
    <div class="row ltr" >
        <div class="col-md-1">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</label>
            </div>
        </div>
    </div>
    <?php }?>

    <div class="row ltr" >


        <div class="col-md-2">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Type</label>-->
                <select  class="form-control contype contype updateElement allupdateselect" data-val=""  id="contype<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" name="contype" data-colName="contype"  select-tableName="phcontracttype"  data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception" >
                    <option value="">choose</option>
                    <?php  $_smarty_tpl->tpl_vars['myallphcontracttype'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphcontracttype']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphcontracttype']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphcontracttype']->key => $_smarty_tpl->tpl_vars['myallphcontracttype']->value){
$_smarty_tpl->tpl_vars['myallphcontracttype']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['myallphcontracttype']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['myallphcontracttype']->value->name;?>
 </option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo" >Delete</option>
                </select>
            </div>
        </div>


        <div class="col-md-2">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="text" class="form-control  updateElement" placeholder="Duration" name="contduration" data-colName="contduration"   data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception" />
                <!--<label for="form_control_1">Duration</label>-->
                <span class="input-group-addon">Y</span>
            </div>
        </div>



        <div class="col-md-2">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="text" class="form-control  updateElement" placeholder="Stopped" name="contstopped" data-colName="contstopped"  data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception" />
                <!--<label for="contstopped">Stopped</label>-->
                <span class="input-group-addon">Y</span>
            </div>
        </div>

        <div class="col-md-6">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <div class="form-group form-md-line-input form-md-floating-label has-info">
                    <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="contranote" data-colName="contranote"   data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception"/>
                </div>
                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['phconstract_obj']->value->id;?>
" data-tableName="phcontraception"><i class="fa fa-close"></i></button>
            </div>
        </div>


        <!-- END SAMPLE FORM PORTLET-->

    </div>
</div>

<?php }?><?php }} ?>