[go: up one dir, main page]

Menu

[r3]: / clinicInfo.php  Maximize  Restore  History

Download this file

133 lines (118 with data), 7.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
$pageRef='System';
include('includes/header.php');
?>
<script>
function successInUpdatingClinicF(transport){
var args=transport.responseText.evalJSON();
//Success in update request
//Operation result advice
$('qResult').style.display='block';
$('qResult').innerHTML=args.opText;
if(parseInt(args.opResult) == 0){
//Success in update operation
}else{
//Failure in update operation
}
}
function failureInUpdatingClinicF(){
//Failure in update request
alert('<?php echo _T("NI_clinicInfo_XIV"); ?>');
}
function dataSave(){
var tname = $F('tName');
var tadd1 = $F('tAdd1');
var tadd2 = $F('tAdd2');
var tadd3 = $F('tAdd3');
var toffi = $F('tOffi');
var tfax = $F('tFax');
var tmobi = $F('tMobi');
var tlati = $F('tLati');
var tlong = $F('tLong');
var tmaiu = $F('tMaiu');
var tmaip = $F('tMaip');
if(formValidationRules.validate()){
OL_updateClinic(tname, tadd1, tadd2, tadd3, toffi, tfax, tmobi, tlati, tlong, tmaiu, tmaip, {onSuccess: successInUpdatingClinicF, onFailure: failureInUpdatingClinicF});
}else{
alert('<?php echo _T("NI_clinicInfo_II"); ?>');
}
}
function backToSystem(){
window.location.href = 'http://127.0.0.1/Oreste/system.php';
}
</script>
<?php
$getName = mysql_query("SELECT * FROM clinic WHERE clinicId='1'");
while($row = mysql_fetch_array($getName)) {
$clinicName = $row[clinicName];
$clinicAddressA = $row[clinicAddressA];
$clinicAddressB = $row[clinicAddressB];
$clinicAddressC = $row[clinicAddressC];
$clinicOfficeNumber = $row[clinicOfficeNumber];
$clinicFaxNumber = $row[clinicFaxNumber];
$clinicMobileNumber = $row[clinicMobileNumber];
$clinicPointX = $row[clinicPointX];
$clinicPointY = $row[clinicPointY];
$clinicMailAdd = $row[clinicMailAdd];
$clinicMailPas = $row[clinicMailPas];
}
?>
<div id="qResult" class="OpResult"></div>
<div class="Columns">
<div class="Column1">
<!-- *********************************************************** -->
<!-- * Menu tab * -->
<!-- *********************************************************** -->
<div class="Block"><div class="BlockBL"><div></div></div><div class="BlockBR"><div></div></div><div class="BlockTL"></div><div class="BlockTR"><div></div></div><div class="BlockT"></div><div class="BlockR"><div></div></div><div class="BlockB"><div></div></div><div class="BlockL"></div><div class="BlockC"></div><div class="BlockContent"><span class="BlockHeader"><span><?php echo _T("Actions") ?></span></span><div class="BlockContentBorder">
<ul>
<?php echo "<li><a href=\"javascript:dataSave();\">" . _T("Save changes") . "</a></li>"; ?>
<?php echo "<li><a href=\"javascript:backToSystem();\">" . _T("Back to system management") . "</a></li>"; ?>
</ul>
</div>
</div>
</div>
</div>
<div class="MainColumn">
<!-- *********************************************************** -->
<!-- * Clinic properties tab * -->
<!-- *********************************************************** -->
<form id="formToValidate">
<div class="Block"><div class="BlockBL"><div></div></div><div class="BlockBR"><div></div></div><div class="BlockTL"></div><div class="BlockTR"><div></div></div><div class="BlockT"></div><div class="BlockR"><div></div></div><div class="BlockB"><div></div></div><div class="BlockL"></div><div class="BlockC"></div><div class="BlockContent"><span class="BlockHeader"><span><?php echo _T("Veterinary facility details") ?></span></span><div class="BlockContentBorder">
<table width="100%" border="0">
<tr><td width="10%"><b><?php echo _T("Company name") ?>: </b></td><td><input class="required" title="<?php echo _T("NI_clinicInfo_III") ?>" type="text" style="width:99%;" id="tName" name="tName" value="<?php echo $clinicName; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Address") ?> (1): </b></td><td><input class="required" title="<?php echo _T("NI_clinicInfo_IV") ?>" type="text" style="width:99%;" id="tAdd1" name="tAdd1" value="<?php echo $clinicAddressA; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Address") ?> (2): </b></td><td><input class="" title="<?php echo _T("NI_clinicInfo_V") ?>" type="text" style="width:99%;" id="tAdd2" name="tAdd2" value="<?php echo $clinicAddressB; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Address") ?> (3): </b></td><td><input class="" title="<?php echo _T("NI_clinicInfo_VI") ?>" type="text" style="width:99%;" id="tAdd3" name="tAdd3" value="<?php echo $clinicAddressC; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Telephone") ?>: </b></td><td><input class="validate-alphanum" title="<?php echo _T("NI_clinicInfo_VII") ?>" type="text" style="width:99%;" id="tOffi" name="tOffi" value="<?php echo $clinicOfficeNumber; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Fax") ?>: </b></td><td><input class="validate-alphanum" title="<?php echo _T("NI_clinicInfo_VIII") ?>" type="text" style="width:99%;" id="tFax" name="tFax" value="<?php echo $clinicFaxNumber; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Mobile") ?>: </b></td><td><input class="validate-alphanum" title="<?php echo _T("NI_clinicInfo_IX") ?>" type="text" style="width:99%;" id="tMobi" name="tMobi" value="<?php echo $clinicMobileNumber; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Latitude") ?>: </b></td><td><input class="validate-number" title="<?php echo _T("NI_clinicInfo_X") ?>" type="text" style="width:99%;" id="tLati" name="tLati" value="<?php echo $clinicPointX; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Longitude") ?>: </b></td><td><input class="validate-number" title="<?php echo _T("NI_clinicInfo_XI") ?>" type="text" style="width:99%;" id="tLong" name="tLong" value="<?php echo $clinicPointY; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Em@il") ?>: </b></td><td><input class="validate-email" title="<?php echo _T("NI_clinicInfo_XII") ?>" type="text" style="width:99%;" id="tMaiu" name="tMaiu" value="<?php echo $clinicMailAdd; ?>"></td> </tr>
<tr><td width="10%"><b><?php echo _T("Em@il password") ?>: </b></td><td><input class="validate-alphanum" title="<?php echo _T("NI_clinicInfo_XIII") ?>" type="text" style="width:99%;" id="tMaip" name="tMaip" value="<?php echo $clinicMailPas; ?>"></td> </tr>
<tr><td></td><td align="left"><b><?php echo _T("NI_clinicInfo_I") ?></b></td> </tr>
</table>
</div>
</div>
</div>
</form>
</div>
</div>
<script>
// ************************************************************
// * Observe window load event to call the init page function *
// ************************************************************
Event.observe(window, 'load', function(){
// **************************
// * Install event handlers *
// **************************
Event.observe('qResult', 'mouseover', function(){OL_makeThisElementInvisible('qResult');});
formValidationRules = new Validation('formToValidate',{immediate:true, onSubmit:false, useTitles:true, stopOnFirst:false});
});
</script>
<!-- tags opened in the header -->
</div>
</div>
</div>
</body>
</html>