forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted Import Patient script to Bootstrap
Converted import patient to bootstrap
- Loading branch information
1 parent
4889a41
commit 01123f8
Showing
1 changed file
with
38 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( | ||
|
@@ -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','\'','\''); ?> /> | ||
<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> |