1 <?php
include_once("../../../interface/globals.php");?
>
4 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8" />
6 <script type
="text/javascript" src
="../../../library/js/jquery.js"></script
>
8 <script type
="text/javascript">
10 window
.opener
.location
.reload(true);
15 <script type
="text/javascript">
16 $
(document
).ready(function(){
17 $
('#box2').hide(); $
('#box3').hide(); $
('#box4').hide();
18 $
('#box1').bind('change', function(){
23 data
: 'z=' + $
('#box1').val() +
'&lvl=1',
28 $
('#box1').bind('focus', function(){
29 $
('#box2').show(); $
('#box3').hide(); $
('#box4').hide(); $
('#box5').hide();
33 $
('#box2').bind('change', function(){
38 data
: 'z=' + $
('#box2').val() +
'&lvl=1',
43 // if empty box, prevent the next to show
44 $
('#box2').bind('click', function(){
45 if ( $
('#box2').val() != 0 ) {
49 $
('#box4').hide(); $
('#box5').hide();
54 $
('#box3').bind('change', function(){
59 data
: 'z=' + $
('#box3').val() +
'&lvl=1',
64 // if empty box, prevent the next to show
65 $
('#box3').bind('click', function(){
66 if ( $
('#box3').val() != 0 ) {
69 $
('#box4').hide(); $
('#box5').hide();
73 $
('#box4').bind('change', function(){
78 data
:'z=' + $
('#box4').val() +
'&lvl=1',
83 // if empty box, prevent the next to show
84 $
('#box4').bind('click', function(){
85 if ( $
('#box4').val() != 0 ) {
97 if ( isset($_POST['saveas']) ) {
98 // same logic as in javascript validation
99 if ( $_POST['box5'] ) $as = $_POST['box5'];
100 elseif ( $_POST['box4']) $as = $_POST['box4'];
101 elseif ( $_POST['box3']) $as = $_POST['box3'];
102 elseif ( $_POST['box2']) $as = $_POST['box2'];
103 elseif ( $_POST['box1']) $as = $_POST['box1'];
105 //$main = ($_POST['mainas'] == 'on') ? 'on' : '';
107 if ( verify_code($as, 2) ) {
108 $_SESSION['as1'][] = $as;
110 echo '<script>alert("You must select again!")</script>';
112 //var_dump($_SESSION['as1']);
113 // verify the limit for diagnoses
114 if ( count($_SESSION['as1']) == 3 )
115 echo '<script>window.close();</script>';
121 <body onunload
="win();" bgcolor
="#A4FF8B">
122 <p
>Choose your
AS I diagnose
</p
>
124 <form method
="post" target
="_self">
125 <table border
=0 cellspacing
=0 cellpadding
=0 >
127 <td width
='1%' nowrap
>
128 <select name
="box1" id
="box1">
130 $rlvone = records_level1('as1');
131 foreach ($rlvone as $rlv) {
132 echo '<option value=\'' .$rlv['cl_diagnose_code']. '\'>' .substr($rlv['cl_diagnose_element'], 0, 70). '</option>';
137 <select id
="box2" name
="box2"></select
>
140 <select id
="box3" name
="box3"></select
>
144 <select id
="box4" name
="box4"></select
>
147 <select id
="box5" name
="box5"></select
>
151 <input type
="submit" value
="Choose" name
="saveas"/>
152 <input type
="button" value
="Close" onclick
="window.close();" />