/
sdm_3prosesgjbulanan.php
executable file
·68 lines (56 loc) · 2.11 KB
/
sdm_3prosesgjbulanan.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
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
<?php
require_once('master_validation.php');
include_once('lib/nangkoelib.php');
include_once('lib/zLib.php');
include_once('lib/rTable.php');
/** Controller **/
# Options
//$optPeriod = makeOption($dbname,'sdm_5periodegaji','periode,periode',
// "kodeorg='".$_SESSION['empl']['lokasitugas']."' and jenisgaji='B'");
$str="select periode from ".$dbname.".sdm_5periodegaji where kodeorg='".$_SESSION['empl']['lokasitugas']."' and jenisgaji='B'
order by periode desc";
$res=mysql_query($str);
while($bar=mysql_fetch_object($res)){
$optPeriod[$bar->periode]=$bar->periode;
}
if(($_SESSION['empl']['tipelokasitugas']=='KANWIL')||($_SESSION['empl']['bagian']=='IT')){
$hrt=" induk='".$_SESSION['org']['kodeorganisasi']."'";
}else{
$hrt=" kodeorganisasi='".$_SESSION['empl']['lokasitugas']."'";
}
$optOrg= makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', $hrt);
# Element
$els = array();
$els[] = array(
makeElement('unit','label',$_SESSION['lang']['unit']),
makeElement('kodeorg','select','',
array('style'=>'width:150px'),$optOrg)
);
$els[] = array(
makeElement('periodegaji','label',$_SESSION['lang']['periodegaji']),
makeElement('periodegaji','select','',
array('style'=>'width:150px'),$optPeriod)
);
$els['btn'] = array(
makeElement('listBtn','btn',$_SESSION['lang']['list'],
array('onclick'=>"list()"))
#makeElement('postBtn','btn',$_SESSION['lang']['proses'],
# array('onclick'=>"post()",'disabled'=>'disabled'))
);
$form = "";
$form .= "<h3 align='left'>".$_SESSION['lang']['prosesgjbulanan']."</h3>";
$form .= genElementMultiDim($_SESSION['lang']['form'],$els,1);
$form .= "<fieldset style='float:left;clear:left'><legend><b>".$_SESSION['lang']['list']."</b>".
"</legend><div id='listContainer'></div></fieldset>";
/** View **/
echo open_body();
?>
<script languange=javascript1.2 src='js/sdm_prosesgjbulanan.js'></script>
<link rel=stylesheet type=text/css href='style/zTable.css'>
<?php
include('master_mainMenu.php');
OPEN_BOX();
echo $form;
CLOSE_BOX();
echo close_body();
?>