}
        ?>
			<?php 
        echo is_array($_tmp = $this->_tpl_vars['pharmacy']->address->state) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp);
        ?>
 <?php 
        echo $this->_tpl_vars['pharmacy']->address->zip;
        ?>
&nbsp;</td>
		<td><?php 
        echo $this->_tpl_vars['pharmacy']->get_transmit_method_display();
        ?>
&nbsp;
	<?php 
    }
    unset($_from);
} else {
    ?>
</td>
	</tr>

	<tr class="center_display">
		<td colspan="3"><b><?php 
    echo smarty_function_xl(array('t' => 'No Pharmacies Found'), $this);
    ?>
<b></td>
	</tr>
	<?php 
}
?>
</table>
: <?php 
            echo $this->_tpl_vars['file']->get_date();
            ?>
<br>
			<?php 
            echo smarty_function_xl(array('t' => 'Hash'), $this);
            ?>
: <?php 
            echo $this->_tpl_vars['file']->get_hash();
            ?>
<br>
			<?php 
            echo smarty_function_xl(array('t' => 'MimeType'), $this);
            ?>
: <?php 
            echo $this->_tpl_vars['file']->get_mimetype();
            ?>
<br>
			<?php 
            echo smarty_function_xl(array('t' => 'Revision'), $this);
            ?>
: <?php 
            echo $this->_tpl_vars['file']->revision;
            ?>
<br><br>
		</div>
	<?php 
        }
        unset($_from);
    }
}
?>
';
var pid = '<?php 
echo $this->_tpl_vars['vitals']->get_pid();
?>
';
var cancellink = '<?php 
echo $this->_tpl_vars['DONT_SAVE_LINK'];
?>
';
var birth_xl='<?php 
echo smarty_function_xl(array('t' => "Birth-24 months"), $this);
?>
'
var older_xl='<?php 
echo smarty_function_xl(array('t' => "2-20 years"), $this);
?>
';
<?php 
echo '
function addGCSelector()
{
    var options=new Array();
    var birth={\'display\':birth_xl,\'param\':\'birth\'};
    var age2={\'display\':older_xl,\'param\':\'2-20\'}
    if((patientAge.indexOf(\'24 month\')>=0) || (patientAge.indexOf(\'month\')==-1))
        {
            var dob_data=patient_dob.split("-");
            var dob_date=new Date(dob_data[0],parseInt(dob_data[1])-1,dob_data[2]);
            options[0]=age2;
            for(var idx=0;idx<vitals.length;idx++)
    }
    ?>
                    <?php 
}
?>
                    </div>
                </div>
            </div>
            </form>

		</td>
	</tr>
	<tr>
		<td>
            <div class="text"><b><?php 
echo smarty_function_xl(array('t' => 'Content'), $this);
?>
</b></div>
            <?php 
if ($this->_tpl_vars['file']->get_mimetype() == "image/tiff") {
    ?>
			<embed frameborder="0" type="<?php 
    echo $this->_tpl_vars['file']->get_mimetype();
    ?>
" src="<?php 
    echo $this->_tpl_vars['web_path'];
    ?>
as_file=false"></embed>
			<?php 
} elseif ($this->_tpl_vars['file']->get_mimetype() == "image/png" || $this->_tpl_vars['file']->get_mimetype() == "image/jpg" || $this->_tpl_vars['file']->get_mimetype() == "image/jpeg" || $this->_tpl_vars['file']->get_mimetype() == "image/gif" || $this->_tpl_vars['file']->get_mimetype() == "application/pdf") {
    ?>
        ?>
&nbsp;</td>
                <td><?php 
        echo $this->_tpl_vars['provider']->get_provider_number_default();
        ?>
&nbsp;</td>
                <td><?php 
        echo $this->_tpl_vars['provider']->get_rendering_provider_number_default();
        ?>
&nbsp;</td>
                <td><?php 
        echo $this->_tpl_vars['provider']->get_group_number_default();
        ?>
&nbsp;</td>
        </tr>
        <?php 
    }
    unset($_from);
} else {
    ?>
        <tr class="center_display">
                <td colspan="5"><?php 
    echo smarty_function_xl(array('t' => 'No Providers Found'), $this);
    ?>
</td>
        </tr>
        <?php 
}
?>
</table>
PV1|1|I|2000^2053^01||||004777^FISHER^BEN^J.|||SUR||||ADM|A0|</td></tr>-->
<tr>
<td colspan="2"><b><?php 
echo smarty_function_xl(array('t' => 'Paste HL7 Data'), $this);
?>
</b></td>
</tr>
<tr height="25">
	<td colspan="2" ><textarea rows="10" wrap="virtual" cols="70" name="hl7data"></textarea><br /><br />
	</td></tr>
	<tr class="text"><td colspan="2">
	<a href="javascript:document.forms[0].reset();" class="css_button"><span><?php 
echo smarty_function_xl(array('t' => 'Clear HL7 Data'), $this);
?>
</span></a><a href="javascript:document.forms[0].submit();" class="css_button" ><span><?php 
echo smarty_function_xl(array('t' => 'Parse HL7'), $this);
?>
</span></a>
	</td>

<?php 
if ($this->_tpl_vars['hl7_message_err']) {
    ?>
	<tr height="25"><td colspan="2"><?php 
    echo $this->_tpl_vars['hl7_message_err'];
    ?>
</td></tr>
<?php 
}
if ($this->_tpl_vars['hl7_array']) {
    ?>
'; ?>


<script src="DocumentTreeMenu.js" language="JavaScript" type="text/javascript"></script>
</head>
<!--<body bgcolor="<?php echo $this->_tpl_vars['STYLE']['BGCOLOR2']; ?>
">-->
<body class="body_top">
<div class="title"><?php echo smarty_function_xl(array('t' => 'Documents'), $this);?>
</div>
<div id="documents_list">
<table>
	<tr>
		<td height="20" valign="top"><?php echo smarty_function_xl(array('t' => 'Categories'), $this);?>
 &nbsp;
            (<a href="#" onclick="javascript:objTreeMenu_1.collapseAll();return false;"><?php echo smarty_function_xl(array('t' => 'Collapse all'), $this);?>
</a>)
		</td>
	</tr>
	<tr>
		<td valign="top"><?php echo $this->_tpl_vars['tree_html']; ?>
</td>
	</tr>
</table>
</div>
<div id="documents_actions">
		<?php if ($this->_tpl_vars['message']): ?>
			<div class='text' style="margin-bottom:-10px; margin-top:-8px"><i><?php echo $this->_tpl_vars['message']; ?>
</i></div><br>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['messages']): ?>
    // for text boxes
    if ($(\'#\'+objID).is(\'input\')) {
        if ($(\'#\'+objID).val() == "") {
            alert("';
echo smarty_function_xl(array('t' => 'Missing a required field'), $this);
echo '");
            $(\'#\'+objID).css("backgroundColor", "pink");
            return false;
        }
    }

    // for select boxes
    if ($(\'#\'+objID).is(\'select\')) {
        if ($(\'#\'+objID).val() == "0") {
            alert("';
echo smarty_function_xl(array('t' => 'Missing a required field'), $this);
echo '");
            $(\'#\'+objID).css("backgroundColor", "pink");
            return false;
        }
    }

    return true;
}

</script>
';
?>


</html>
        <div>
            <a href="javascript:;" onClick="my_process(); return true;">Select</a> |
            <a href="javascript:;" class="button" onClick="parent.cancelParlookup();">Cancel</a> |
            <a href="<?php echo $this->_tpl_vars['CONTROLLER_THIS']; ?>
" onclick="top.restoreSession()"><?php echo smarty_function_xl(array('t' => 'New Search'), $this);?>
</a>
        </div>
	<?php else: ?>
		<?php echo $this->_tpl_vars['NO_RESULTS']; ?>


		<input TYPE="HIDDEN" NAME="varname" VALUE=""/>
		<input TYPE="HIDDEN" NAME="formname" VALUE=""/>
		<input TYPE="HIDDEN" NAME="submitname" VALUE=""/>
		<input TYPE="HIDDEN" NAME="action" VALUE="<?php echo smarty_function_xl(array('t' => 'Search'), $this);?>
">
		<div ALIGN="CENTER" CLASS="infobox">
			<input TYPE="TEXT" NAME="drug" VALUE="<?php echo $this->_tpl_vars['drug']; ?>
"/>
			<input TYPE="SUBMIT" NAME="action" VALUE="<?php echo smarty_function_xl(array('t' => 'Search'), $this);?>
" class="button"/>
			<input TYPE="BUTTON" VALUE="<?php echo smarty_function_xl(array('t' => 'Cancel'), $this);?>
" class="button" onClick="parent.cancelParlookup();"/>
		</div>
		<input type="hidden" name="process" value="<?php echo $this->_tpl_vars['PROCESS']; ?>
" />

	<?php endif; ?></form>
	</div>
</body>
</html>
?>
">-->
<body class="body_top">
<div class="title"><?php 
echo smarty_function_xl(array('t' => 'Documents'), $this);
?>
</div>
<div id="documents_list">
<table>
	<tr>
		<td height="20" valign="top"><?php 
echo smarty_function_xl(array('t' => 'Categories'), $this);
?>
 &nbsp;
            (<a href="#" onclick="javascript:objTreeMenu_1.collapseAll();return false;"><?php 
echo smarty_function_xl(array('t' => 'Collapse all'), $this);
?>
</a>)
		</td>
	</tr>
	<tr>
		<td valign="top"><?php 
echo $this->_tpl_vars['tree_html'];
?>
</td>
	</tr>
</table>
</div>
<div id="documents_actions">
		<?php 
if ($this->_tpl_vars['message']) {
" onclick="top.restoreSession();var URL='controller.php?patient_finder&find&form_id=queue<?php 
        echo is_array($_tmp = "['files[" . $this->_tpl_vars['file']['document_id'] . "][patient_id]']") ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url');
        ?>
&form_name=patient_name'; window.open(URL, 'queue', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=450,height=400,left = 425,top = 250');"><img src="images/stock_search-16.png" border="0"</a>&nbsp;&nbsp;&nbsp;</td>
		<td><select name="files[<?php 
        echo $this->_tpl_vars['file']['document_id'];
        ?>
][category_id]"><?php 
        echo $this->_tpl_vars['tree_html_listbox'];
        ?>
</select></td>

	</tr>
	<?php 
    }
    unset($_from);
} else {
    ?>
	<tr height="25" class="center_display">
		<td colspan="6"><?php 
    echo smarty_function_xl(array('t' => 'No Documents Found'), $this);
    ?>
</td>
	</tr>
	<?php 
}
?>

</table><br><br>

</form>
&nbsp;
    </td>
    <td id="<?php echo $this->_tpl_vars['prescription']->id; ?>
">
      <?php echo $this->_tpl_vars['prescription']->provider->get_name_display(); ?>
&nbsp;
    </td>
  </tr>
	<?php endforeach; unset($_from); endif; ?>
</table>

</form>
</div>

<?php else: ?>
<div class="text" style="margin-top:10px"><?php echo smarty_function_xl(array('t' => 'There are currently no prescriptions'), $this);?>
.</div>
<?php endif; ?>

</body>
<?php echo '
<script language=\'JavaScript\'>

$(document).ready(function(){
$("#multiprint").click(function() { return CheckForChecks(document.presc.check_list); });
$("#multiprintcss").click(function() { return CheckForChecks(document.presc.check_list); });
$("#multiprintToFax").click(function() { return CheckForChecks(document.presc.check_list); });
$(".editscript").click(function() { ShowScript(this); });
$(".onescript").mouseover(function() { $(this).children().toggleClass("highlight"); });
$(".onescript").mouseout(function() { $(this).children().toggleClass("highlight"); });
});
<?php /* Smarty version 2.6.2, created on 2015-09-18 06:02:28
         compiled from /Applications/MAMP/htdocs/openemr/templates/prescription/general_fragment.html */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'xl', '/Applications/MAMP/htdocs/openemr/templates/prescription/general_fragment.html', 4, false),)), $this); ?>
<table>
  <?php if (empty ( $this->_tpl_vars['prescriptions'] )): ?>
        <tr class='text'>
                <td>&nbsp;&nbsp;<?php echo smarty_function_xl(array('t' => 'None'), $this);?>
</td>
        </tr>
  <?php endif; ?>
	<?php if (count($_from = (array)$this->_tpl_vars['prescriptions'])):
    foreach ($_from as $this->_tpl_vars['prescription']):
?>
  <?php if ($this->_tpl_vars['prescription']->get_active() > 0): ?>
	<tr class='text'>
		<td><?php echo $this->_tpl_vars['prescription']->drug; ?>
</td>
		<td><?php echo $this->_tpl_vars['prescription']->get_dosage_display(); ?>
</td>
	</tr>
  <?php endif; ?>
	<?php endforeach; unset($_from); endif; ?>
</table>
    echo smarty_function_xl(array('t' => "The new category will be a sub-category of "), $this);
    ?>
 <?php 
    echo $this->_tpl_vars['parent_name'];
    ?>
<br>
		<form method="post" action="<?php 
    echo $this->_tpl_vars['FORM_ACTION'];
    ?>
" onsubmit="return top.restoreSession()">
		<?php 
    echo smarty_function_xl(array('t' => 'Category Name'), $this);
    ?>
:&nbsp;<input type="text" name="name" onKeyDown="PreventIt(event)" >&nbsp;&nbsp;
		<input type="submit" name="Add Category" value="<?php 
    echo smarty_function_xl(array('t' => 'Add Category'), $this);
    ?>
">
		<input type="hidden" name="parent_is" value="<?php 
    echo $this->_tpl_vars['parent_is'];
    ?>
">
		<input type="hidden" name="process" value="<?php 
    echo $this->_tpl_vars['PROCESS'];
    ?>
" />
		</form>
		</td>
		<?php 
}
?>
pharmacy&action=list"><?php echo smarty_function_xl(array('t' => 'Pharmacies'), $this);?>
</a> |
        <a href="<?php echo $this->_tpl_vars['TOP_ACTION']; ?>
insurance_company&action=list"><?php echo smarty_function_xl(array('t' => 'Insurance Companies'), $this);?>
</a> |
        <a href="<?php echo $this->_tpl_vars['TOP_ACTION']; ?>
insurance_numbers&action=list"><?php echo smarty_function_xl(array('t' => 'Insurance Numbers'), $this);?>
</a> |
        <a href="<?php echo $this->_tpl_vars['TOP_ACTION']; ?>
x12_partner&action=list"><?php echo smarty_function_xl(array('t' => 'X12 Partners'), $this);?>
</a> |
        <a href="<?php echo $this->_tpl_vars['TOP_ACTION']; ?>
document&action=queue"><?php echo smarty_function_xl(array('t' => 'Documents'), $this);?>
</a> |
        <a href="<?php echo $this->_tpl_vars['TOP_ACTION']; ?>
hl7&action=default"><?php echo smarty_function_xl(array('t' => 'HL7 Viewer'), $this);?>
</a>
    </div>

    <br/>
    <div class="section-header">
        <b><?php echo $this->_tpl_vars['ACTION_NAME']; ?>
</b>
    </div>
    <div class="tabContainer">
        <div class="tab current">
            <?php echo $this->_tpl_vars['display']; ?>

        </div>
    </div>
</div>
</b></th>
		<th><b><?php echo smarty_function_xl(array('t' => 'Default Method'), $this);?>
</b></th>
	</tr>
	<?php if (count($_from = (array)$this->_tpl_vars['pharmacies'])):
    foreach ($_from as $this->_tpl_vars['pharmacy']):
?>
	<tr height="22">
		<td><a href="<?php echo $this->_tpl_vars['CURRENT_ACTION']; ?>
action=edit&id=<?php echo $this->_tpl_vars['pharmacy']->id; ?>
" onclick="top.restoreSession()"><?php echo $this->_tpl_vars['pharmacy']->name; ?>
&nbsp;</a></td>
		<td>
		<?php if ($this->_tpl_vars['pharmacy']->address->line1 != ''):  echo $this->_tpl_vars['pharmacy']->address->line1; ?>
, <?php endif; ?>
		<?php if ($this->_tpl_vars['pharmacy']->address->city != ''):  echo $this->_tpl_vars['pharmacy']->address->city; ?>
, <?php endif; ?>
			<?php echo ((is_array($_tmp=$this->_tpl_vars['pharmacy']->address->state)) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
 <?php echo $this->_tpl_vars['pharmacy']->address->zip; ?>
&nbsp;</td>
		<td><?php echo $this->_tpl_vars['pharmacy']->get_transmit_method_display(); ?>
&nbsp;
	<?php endforeach; unset($_from); else: ?></td>
	</tr>

	<tr class="center_display">
		<td colspan="3"><b><?php echo smarty_function_xl(array('t' => 'No Pharmacies Found'), $this);?>
<b></td>
	</tr>
	<?php endif; ?>
</table>
  </tr>
	<?php 
        }
        unset($_from);
    }
    ?>
</table>

</form>
</div>

<?php 
} else {
    ?>
<div class="text" style="margin-top:10px"><?php 
    echo smarty_function_xl(array('t' => 'There are currently no prescriptions'), $this);
    ?>
.</div>
<?php 
}
?>

</body>
<?php 
echo '
<script language=\'JavaScript\'>

$(document).ready(function(){
$("#multiprint").click(function() { return CheckForChecks(document.presc.check_list); });
$("#multiprintcss").click(function() { return CheckForChecks(document.presc.check_list); });
$("#multiprintToFax").click(function() { return CheckForChecks(document.presc.check_list); });
			<td class="response"><?php 
echo smarty_function_html_radios(array('name' => 'frequent_illness', 'options' => $this->_tpl_vars['form']->get_options(), 'selected' => $this->_tpl_vars['form']->get_frequent_illness(), 'separator' => ""), $this);
?>
</td>
			<td class="response_prompt"><?php 
echo smarty_function_xl(array('t' => 'HIV'), $this);
?>
:</td>
			<td class="response"><?php 
echo smarty_function_html_radios(array('name' => 'hiv', 'options' => $this->_tpl_vars['form']->get_options(), 'selected' => $this->_tpl_vars['form']->get_hiv(), 'separator' => ""), $this);
?>
</td>
		</tr>
		<tr>
			<td class="response_prompt"><?php 
echo smarty_function_xl(array('t' => 'HAI Status'), $this);
?>
:</td>
			<td class="response"><?php 
echo smarty_function_html_radios(array('name' => 'hai_status', 'options' => $this->_tpl_vars['form']->get_options(), 'selected' => $this->_tpl_vars['form']->get_hai_status(), 'separator' => ""), $this);
?>
</td>
		</tr>
</tr><td>	
	</td>
</tr>

	</table></td>
</tr>

<tr>
" onsubmit="return top.restoreSession()"><?php 
        echo $this->_tpl_vars['insurancecompany']->name;
        ?>
&nbsp;</a></td>
		<td><?php 
        echo $this->_tpl_vars['insurancecompany']->address->city;
        ?>
 <?php 
        echo is_array($_tmp = $this->_tpl_vars['insurancecompany']->address->state) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp);
        ?>
&nbsp;</td>
		<td><?php 
        echo $this->_tpl_vars['insurancecompany']->get_x12_default_partner_name();
        ?>
&nbsp;</td>
	</tr>
	<?php 
    }
    unset($_from);
} else {
    ?>
	<tr class="center_display">
		<td colspan="3"><?php 
    echo smarty_function_xl(array('t' => 'No Insurance Companies Found'), $this);
    ?>
</td>
	</tr>
	<?php 
}
?>
</table>
<?php

/* Smarty version 2.6.2, created on 2016-01-20 07:24:38
   compiled from C:/xampp/htdocs/openemr/templates/prescription/general_fragment.html */
require_once SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'xl', 'C:/xampp/htdocs/openemr/templates/prescription/general_fragment.html', 4, false))), $this);
?>
<table>
  <?php 
if (empty($this->_tpl_vars['prescriptions'])) {
    ?>
        <tr class='text'>
                <td>&nbsp;&nbsp;<?php 
    echo smarty_function_xl(array('t' => 'None'), $this);
    ?>
</td>
        </tr>
  <?php 
}
?>
	<?php 
if (count($_from = (array) $this->_tpl_vars['prescriptions'])) {
    foreach ($_from as $this->_tpl_vars['prescription']) {
        ?>
  <?php 
        if ($this->_tpl_vars['prescription']->get_active() > 0) {
            ?>
	<tr class='text'>
		<td><?php 
            echo $this->_tpl_vars['prescription']->drug;
            ?>
x12_partner&action=list"><?php 
echo smarty_function_xl(array('t' => 'X12 Partners'), $this);
?>
</a> |
        <a href="<?php 
echo $this->_tpl_vars['TOP_ACTION'];
?>
document&action=queue"><?php 
echo smarty_function_xl(array('t' => 'Documents'), $this);
?>
</a> |
        <a href="<?php 
echo $this->_tpl_vars['TOP_ACTION'];
?>
hl7&action=default"><?php 
echo smarty_function_xl(array('t' => 'HL7 Viewer'), $this);
?>
</a>
    </div>

    <br/>
    <div class="section-header">
        <b><?php 
echo $this->_tpl_vars['ACTION_NAME'];
?>
</b>
    </div>
    <div class="tabContainer">
        <div class="tab current">
            <?php 
echo $this->_tpl_vars['display'];
echo smarty_function_html_options(array('name' => 'x12_default_partner_id', 'options' => $this->_tpl_vars['x12_partners'], 'selected' => $this->_tpl_vars['insurancecompany']->get_x12_default_partner_id()), $this);
?>

	</td>
</tr>
<tr height="25"><td colspan=2>&nbsp;</td></tr>
<tr>
	<td colspan="2"><a href="javascript:submit_insurancecompany();" class="css_button"><span><?php 
echo smarty_function_xl(array('t' => 'Save'), $this);
?>
</span></a><a href="controller.php?practice_settings&insurance_company&action=list"  <?php 
if (!$GLOBALS['concurrent_layout']) {
    echo "target='Main'";
}
?>
 class="css_button" onclick="top.restoreSession()">
<span><?php 
echo smarty_function_xl(array('t' => 'Cancel'), $this);
?>
</span></a></td>
</tr>
</table>
<input type="hidden" name="id" value="<?php 
echo $this->_tpl_vars['insurancecompany']->id;
?>
" />
<input type="hidden" name="process" value="<?php 
echo $this->_tpl_vars['PROCESS'];
?>
" />
</form>
</td>
		<td><?php 
        echo $this->_tpl_vars['result']['pubpid'];
        ?>
</td>
	</tr>
<?php 
    }
    unset($_from);
} else {
    ?>
	<?php 
    if (is_array($this->_tpl_vars['result_set'])) {
        ?>
	<tr>
		<td><?php 
        echo smarty_function_xl(array('t' => 'No Results Found For Search'), $this);
        ?>
 '<?php 
        echo $this->_tpl_vars['search_string'];
        ?>
'</td>
	</tr>
	<?php 
    }
}
?>
	</table>
  </body>
</html>