Skip to content

Commit

Permalink
Converted Import Patient script to Bootstrap
Browse files Browse the repository at this point in the history
Converted import patient to bootstrap
  • Loading branch information
robertogagliotta committed Jun 14, 2017
1 parent 4889a41 commit 01123f8
Showing 1 changed file with 38 additions and 26 deletions.
64 changes: 38 additions & 26 deletions custom/import_xml.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<?php
// Copyright (C) 2005 Rod Roark <[email protected]>
//
// 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 imports patient demographics from our custom XML format.
/////////////////////////////////////////////////////////////////////
/**
* Imports patient demographics from our custom XML format.
*
* @package OpenEMR
* @link http:https://www.open-emr.org
* @author Road Roark <[email protected]>
* @author Roberto Vasquez <[email protected]>
* @copyright Copyright (c) 2005 Rod Roark <[email protected]>
* @copyright Copyright (c) 2017 Roberto Vasquez <[email protected]>
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*/

include_once("../interface/globals.php");
include_once("$srcdir/patient.inc");
include_once("$srcdir/acl.inc");

use OpenEMR\Core\Header;

function setInsurance($pid, $ainsurance, $asubscriber, $seq) {
$iwhich = $seq == '2' ? "secondary" : ($seq == '3' ? "tertiary" : "primary");
newInsuranceData(
Expand Down Expand Up @@ -190,24 +193,33 @@ function setInsurance($pid, $ainsurance, $asubscriber, $seq) {
?>
<html>
<head>
<?php html_header_show();?>
<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
<title><?php xl('Import Patient Demographics','e'); ?></title>
<?php Header::setupHeader(); ?>
<title><?php echo xlt('Import Patient Demographics'); ?></title>
</head>
<body class="body_top" onload="javascript:document.forms[0].form_import_data.focus()">

<p><?php xl('Paste the data to import into the text area below:','e'); ?></p>

<center>
<form method='post' action="import_xml.php">

<textarea name='form_import_data' rows='10' cols='50' style='width:95%'></textarea>

<p>
<input type='submit' name='form_import' value=<?php xl('Import Patient','e','\'','\''); ?> /> &nbsp;
<input type='button' value=<?php xl('Cancel','e','\'','\''); ?> onclick='window.close()' /></p>
<form method='post' action="import_xml.php" onsubmit="return top.restoreSession()">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="form-group"></div>
<div class="form-group">
<textarea name='form_import_data' rows='10' cols='50' style='width:95%'></textarea>
</div>
<div class="form-group">
<div class="col-xs-12 text-right">
<div class="btn-group" role="group">
<button type='submit' class='btn btn-default btn-transmit' name='form_import' value='bn_import'>
<?php echo xla('Import Patient'); ?>
</button>
<button type="button" class="btn btn-default btn-cancel" onclick="window.close()">
<?php echo xla("Cancel"); ?>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</center>

</body>
</html>

0 comments on commit 01123f8

Please sign in to comment.