<?php /* Smarty version Smarty-3.1.11, created on 2024-08-18 18:37:17
         compiled from "../views/obgy/addinvestigation/investrow.html" */ ?>
<?php /*%%SmartyHeaderCode:156377371766c2152ded7982-70282846%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dbb55aed9a22564e684dfc033955454cd82b5f96' => 
    array (
      0 => '../views/obgy/addinvestigation/investrow.html',
      1 => 1714876822,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '156377371766c2152ded7982-70282846',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'one' => 0,
    'invest_itr' => 0,
    'allCats' => 0,
    'data' => 0,
    'sampletype' => 0,
    'i' => 0,
    'hosturl' => 0,
    'controllname' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66c2152e0e0b60_71820334',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66c2152e0e0b60_71820334')) {function content_66c2152e0e0b60_71820334($_smarty_tpl) {?>
<tr  <?php if ($_smarty_tpl->tpl_vars['one']->value->deleted==1){?> style="background-color: darkgray;"  <?php }?>>

    <td>
        <input type="number" min="0" class="form-control updateElement" id="sort<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  
               data-colName="sort" data-tableName="invests"  value="<?php echo $_smarty_tpl->tpl_vars['one']->value->sort;?>
" disabled 
               style="height: 26px;"/>
    </td>  

    <td>
        <input type="hidden"   value="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  id="invest_id<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
">
        <input type="text" class="form-control updateElement" id="inv<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"   data-colName="name" 
               data-tableName="invests"  value="<?php echo $_smarty_tpl->tpl_vars['one']->value->name;?>
"
               style="height: 26px;"/>
    </td>

    <td>
        <select class="form-control  updateElement"   data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  data-itr="<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
"   
                name="investcatid"   id="investcatid<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-colName="investcatid" data-tableName="invests">
            <option value=""></option>
            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allCats']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['one']->value->investcatid==$_smarty_tpl->tpl_vars['data']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
            <?php } ?>
        </select>
    </td>

    <td>
        <select class="form-control  updateElement sampletype"   data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  data-itr="<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
"    
                data-ptname="sampletype" name="sampletype"   id="sampletype<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
" data-colName="sampletype" data-tableName="invests">
            <option value=""></option>

            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['sampletype']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['one']->value->sampletype==$_smarty_tpl->tpl_vars['data']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
            <?php } ?>

            <?php if ($_SESSION['role_id']!=3){?>
            <option value="0" class="deleteoptincompo">حذف</option>
            <?php }?>
        </select>

    </td>

    <td>
        <select class="form-control  updateElement"   data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  data-itr="<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
"  
                data-ptname="type" name="type"   id="type<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
" data-colName="type" data-tableName="invests">
            <option value="0" <?php if ($_smarty_tpl->tpl_vars['one']->value->type==0){?>selected<?php }?>>  Internal</option>
            <option value="1" <?php if ($_smarty_tpl->tpl_vars['one']->value->type==1){?>selected<?php }?>>External</option>
        </select>

    </td>
    <td>
        <select class="form-control  updateElement"   data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  data-itr="<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
"    
                data-ptname="special_inv_type" name="special_inv_type"   id="special_inv_type<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
" 
                data-colName="special_inv_type" data-tableName="invests">
            <option value="0"> Not special</option>
            <option value="1" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==1){?>selected<?php }?>>Blood Picture</option>
            <option value="2" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==2){?>selected<?php }?>>Urine Examination</option>
            <option value="3" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==3){?>selected<?php }?>>Stool Examination</option>
            <option value="4" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==4){?>selected<?php }?>>Culture</option>
            <option value="5" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==5){?>selected<?php }?>>ESR </option>
            <option value="6" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==6){?>selected<?php }?>>Cross Matching </option>
            <option value="7" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==7){?>selected<?php }?>>Fluid </option>
            <option value="8" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==8){?>selected<?php }?>>Clothing time </option>
            <option value="9" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==9){?>selected<?php }?>>PT + APTT </option>
            <option value="10" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==10){?>selected<?php }?>>ABO/RH </option>
            <option value="11" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==11){?>selected<?php }?>>Custom </option>
            <option value="12" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==12){?>selected<?php }?>>PT </option>
            <option value="13" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==13){?>selected<?php }?>>APTT </option>
            <option value="14" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==14){?>selected<?php }?>>Lipid </option>
            <option value="15" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==15){?>selected<?php }?>>EGFR </option>
            <option value="16" <?php if ($_smarty_tpl->tpl_vars['one']->value->special_inv_type==16){?>selected<?php }?>>Semen Examination  </option>
        </select>

    </td>
    <td>
        <input type="text" class="form-control updateElement" id="price<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"   data-colName="price" data-tableName="invests"  value="<?php echo $_smarty_tpl->tpl_vars['one']->value->price;?>
"
               style="height: 26px;"/>
    </td>

    <td>
        <input type="text" class="form-control updateElement" id="lab_to_lab_price<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"   data-colName="lab_to_lab_price" data-tableName="invests"  value="<?php echo $_smarty_tpl->tpl_vars['one']->value->lab_to_lab_price;?>
"
               style="height: 26px;"/>
    </td>

    <td>
                <select class="form-control  updateElement"   data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"   
                id="pdf<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-colName="pdf" data-tableName="invests">
            <option value="0"> No </option>
            <option value="1" <?php if ($_smarty_tpl->tpl_vars['one']->value->pdf==1){?>selected<?php }?>>1</option>
            <option value="2" <?php if ($_smarty_tpl->tpl_vars['one']->value->pdf==2){?>selected<?php }?>>2</option>
            <option value="3" <?php if ($_smarty_tpl->tpl_vars['one']->value->pdf==3){?>selected<?php }?>>3</option>
            <option value="4" <?php if ($_smarty_tpl->tpl_vars['one']->value->pdf==4){?>selected<?php }?>>4</option>
        </select>
    </td>

    <td>
        <div class="md-checkbox" id="periorityCheck<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
">
            <input type="checkbox" id="periority<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  data-tableName="invests"    value="1"                              
                   data-colName="periority"    class="md-check updateElementCheck" <?php if ($_smarty_tpl->tpl_vars['one']->value->periority==1){?>checked<?php }?>>
            <label for="periority<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
">
                <span></span>
                <span class="check"></span>
                <span class="box"></span>
            </label>
        </div>
    </td>


    <td>
        <a class="btn btn-xs green finishEdit" style="float: right;" id="finishEdit<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  href="#" >finish  </a>
        <div class="md-checkbox" id="favoriteCheck<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" style="display: none;">
            <input type="checkbox" id="checkbox<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  class="md-check addFavorite" <?php if ($_smarty_tpl->tpl_vars['one']->value->favorite==1){?>checked<?php }?>>
            <label for="checkbox<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
">
                <span></span>
                <span class="check"></span>
                <span class="box"></span>
            </label>
        </div>
    </td>

    <td>
        <a class="btn green btn-xs editInv" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['invest_itr']->value;?>
"    id="editInv<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"
           href="#"  style="display: none;"><i class="fa fa-pencil"></i>
        </a>
        <a class="btn blue btn-xs" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"   id="reviewInvSample<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" target="_blank"
           href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=getinvpreview&investId=<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" > 
            <i class="fa fa-eye"></i>
        </a>

        <?php if ($_smarty_tpl->tpl_vars['one']->value->deleted==1){?>
        <a class="btn default btn-xs disableBtn" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"   id="deleteInv<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  data-colName="deleted"
           href="#" data-link="addinvestigation" data-fn="disableIt" data-tableName="invests" data-val="0"> EN
        </a>
        <?php }else{ ?>
        <a class="btn red btn-xs disableBtn" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"   id="deleteInv<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  data-colName="deleted"
           href="#" data-link="addinvestigation" data-fn="disableIt" data-tableName="invests" data-val="1"> Dis
        </a>
        <?php }?>

        <a class="btn default btn-xs showCustom" data-id="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"  href="#"  id="showCustom<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" 
           style="display: none;"   > <i class="fa fa-question-circle"></i> 
        </a>
    </td>
</tr> 











<?php }} ?>