bug fix - created new window link for documentation to avoid duplication bug if user...
[openemr.git] / interface / language / language.php
blobe0edb8a06e03c005ac51dcf11fd4acc0cc21916b
1 <?php
2 //INCLUDES, DO ANY ACTIONS, THEN GET OUR DATA
3 include_once("../globals.php");
4 include_once("$srcdir/registry.inc");
5 include_once("$srcdir/sql.inc");
6 include_once("../../library/acl.inc");
7 require_once("language.inc.php");
9 //START OUT OUR PAGE....
11 <html>
12 <head>
13 <?php html_header_show();?>
14 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
15 <script type="text/javascript" src="../../library/overlib_mini.js"></script>
16 <script type="text/javascript" src="../../library/calendar.js"></script>
18 <script language='JavaScript'>
19 function editLang(lang_id) {
20 var filter = document.forms[0].form_filter.value;
21 window.location = '?m=definition&edit=' + lang_id + '&filter=' + escape(filter);
22 return false;
24 </script>
25 </head>
27 <body class="body_top">
28 <form name='filterform' id='filterform' method='get' action='language.php'>
29 <input type='hidden' name='m' value='<?php echo $_GET['m']; ?>' />
30 <input type='hidden' name='edit' value='<?php echo $_GET['edit']; ?>' />
31 <span class="title"><?php xl('Multi Language Tool','e') ?></span>
32 <span class='text'>&nbsp;&nbsp;&nbsp;<?php xl('Filter for Constants','e','',':'); ?>
33 <input type='text' name='form_filter' size='8' value='' />
34 <?php xl('(% matches any string, _ matches any character)','e'); ?>
35 </form>
36 </span>
38 <div class="text">
39 <br>
41 <?php
42 /* menu */
43 $sql="SELECT * FROM lang_languages ORDER BY lang_id";
44 $res=SqlStatement($sql);
45 $string='|';
46 while ($row=SqlFetchArray($res)){
47 $string .= "| <a href='' onclick='return editLang(" . $row['lang_id'] . ")'>" . xl($row['lang_description']) . "</a> |";
49 $string.='|';
51 echo ("<a href=\"?m=language&language=add\">".xl('Add Language')."</a> or ");
52 echo ("<a href=\"?m=constant&constant=add\">".xl('Add Constant')."</a> or ");
53 echo (xl('Edit definitions').": $string <br><br>");
55 switch ($_GET['m']):
56 case 'definition':
57 include_once('lang_definition.php');
58 break;
59 case 'constant':
60 include_once('lang_constant.php');
61 break;
62 case 'language':
63 include_once('lang_language.php');
64 break;
65 endswitch;
68 <BR><A HREF="lang.info.html" TARGET="_blank"><?php xl('Info','e'); ?></A>
69 </div>