-
Notifications
You must be signed in to change notification settings - Fork 5
/
register_unit.php
37 lines (35 loc) · 1.36 KB
/
register_unit.php
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
<?php
// This file is part of the ProEthos Software.
//
// Copyright 2013, PAHO. All rights reserved. You can redistribute it and/or modify
// ProEthos under the terms of the ProEthos License as published by PAHO, which
// restricts commercial use of the Software.
//
// ProEthos is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
// PARTICULAR PURPOSE. See the ProEthos License for more details.
//
// You should have received a copy of the ProEthos License along with the ProEthos
// Software. If not, see
// https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt
/**
* Register Unit
* @author Rene Faustino Gabriel Junior (Analista-Desenvolvedor)
* @copyright © Pan American Health Organization, 2013. All rights reserved.
* @access public
* @version v.0.13.46
* @package Proethos
* @subpackage Ajax
*/
echo '<fieldset><legend>'.msg('register_primary').'</legend>';
$ref = 'register_'.$r;
$link = 'register_unit_ajax.php?dd1='.$protocolo.'&dd2=listar&dd3='.$autor.'&dd4='.$campo.'&dd6='.$ref.'&dd90='.checkpost($protocol.$campo);
?>
<div id="<?=$ref;?>">
</div>
</fieldset>
<script>
var $tela01 = $.ajax('<?=$link;?>')
.done(function(data) { $("#<?=$ref;?>").html(data); })
.always(function(data) { $("#<?=$ref;?>").html(data); });
</script>