Skip to content

Commit

Permalink
edu_lookup_bootst bootstrap convertion (openemr#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertogagliotta authored and bradymiller committed Jul 1, 2017
1 parent 39956d4 commit 1d0ac75
Showing 1 changed file with 52 additions and 80 deletions.
132 changes: 52 additions & 80 deletions interface/reports/patient_edu_web_lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,22 @@
/**
* Open websearch for patient education materials
*
* Copyright (C) 2011 Tony McCormick <[email protected]>
* Copyright (C) 2011 Brady Miller <[email protected]>
*
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http:https://opensource.org/licenses/gpl-license.php>;.
*
* @package OpenEMR
* @link http:https://www.open-emr.org
* @author Tony McCormick <[email protected]>
* @author Brady Miller <[email protected]>
* @link http:https://www.open-emr.org
* @author Roberto Vasquez <[email protected]>
* Copyright (C) 2011 Tony McCormick <[email protected]>
* Copyright (C) 2011 Brady Miller <[email protected]>
* Copyright (C) 2017 Roberto Vasquez <[email protected]>
* @license https://github.com/openemr/openemr/blob/master/LICENSE CNU General Public License 3
*
*/




//Include required scripts/libraries
require_once("../globals.php");

use OpenEMR\Core\Header;

// Reference website links
$websites = array(
Expand All @@ -43,10 +33,8 @@

<html>
<head>
<?php html_header_show();?>
<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
<script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery-min-1-3-2/index.js"></script>

<?php Header::setupHeader(); ?>
<title><?php echo xlt('Web Search'); ?> - <?php echo xlt('Patient Education Materials'); ?></title>
<script type="text/javascript">
function searchResultsPopup(search_term,link) {
link_formatted = link.replace("[%]",encodeURIComponent(search_term));
Expand All @@ -55,72 +43,56 @@ function searchResultsPopup(search_term,link) {
}
</script>

<title><?php echo htmlspecialchars( xl('Find Patient Education Materials'), ENT_NOQUOTES); ?></title>
</head>

<body class="body_top">

<span class='title'><?php echo htmlspecialchars( xl('Web Search'), ENT_NOQUOTES); ?> - <?php echo htmlspecialchars( xl('Patient Education Materials'), ENT_NOQUOTES); ?></span>

<form method='post' action='patient_edu_web_lookup.php' id='theform' onsubmit='return top.restoreSession()'>

<div id="report_parameters">

<table>
<tr class="misc-internet-search">
<td>
<div style='float:left'>
<table class='text'>
<tr>
<td>
<?php echo htmlspecialchars( xl('Search in'), ENT_NOQUOTES);
echo '&nbsp;&nbsp;';
echo "<select name='form_lookup_at'>\n";
<body class="body_top" onload="javascripts:document.forms[0].form_import_data.focus()">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="page-header">
<h2><?php echo xlt('Web Search'); ?> - <?php echo xlt('Patient Education Materials'); ?></h2>
</div>
</div>
</div>
</div>
<form method='post' action='patient_edu_web_lookup.php' id='theform' onsubmit='return top.restoreSession()'>

<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label class='control-label'>
<?php echo xlt('Search in');
echo '&nbsp;&nbsp;';
echo "<select name='form_lookup_at' class='form-control'\n>";
foreach ($websites as $key => $value) {
echo " <option value='" . htmlspecialchars($key, ENT_QUOTES) . "'";
echo " <option value='" . attr($key) . "'";
if ($key == $form_lookup_at) echo ' selected';
echo ">" . htmlspecialchars( xl($key), ENT_NOQUOTES) . "</option>\n";
echo ">" . text($key) . "</option>\n";
}
echo "</select>"; ?>
</td>
</tr>
<tr>
<td>
<input type='text' name='form_diagnosis' size='60' value='<?php echo htmlspecialchars($form_diagnosis, ENT_QUOTES); ?>'
title='<?php echo htmlspecialchars( xl('Search Text'), ENT_QUOTES); ?>'>
</td>
</tr>
</table>

</div>

</td>
<td align='left' valign='middle' height="100%">
<table style='border-left:1px solid; width:100%; height:100%' >
<tr>
<td>
<div style='margin-left:15px'>
<a href='#' class='css_button' onclick='top.restoreSession(); $("#theform").submit();'>
<span>
<?php echo htmlspecialchars( xl('Submit'), ENT_NOQUOTES); ?>
</span>
</a>

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

</div> <!-- end of parameters -->

<div class='text'>
</label>
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<div class="col-xs-6">
<input name='form_diagnosis' class='form-control' aria-describedby='searchHelpBox' rows='1' value='<?php echo xla($form_diagnosis); ?>'
title='<?php echo xla('Search Text'); ?>'></input>
<div class="form-group">
<button type='submit' class='btn btn-default btn-save' onclick='top.restoreSession(); $("#theform").submit()' > <?php echo xlt("Submit"); ?> </button>
</div>

</div>
</div>

</div>

<span id="searchHelpBox" class="help-block">
<?php
echo htmlspecialchars( xl('Please input search criteria above, and click Submit to view results. (Results will be displayed in a pop up window)'), ENT_NOQUOTES);
echo xlt('Please input search criteria above, and click Submit to view results. (Results will be displayed in a pop up window)');
?>
</div>
</span>
<div class='text'>
<?php if (!empty($form_diagnosis) && !empty($form_lookup_at)) { ?>
<script type="text/javascript">
Expand Down

0 comments on commit 1d0ac75

Please sign in to comment.