echo open_body();
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
//+++++++++++++++++++++++++++++++++++++++++++++
$str = "select uname from " . $dbname . ".sdm_ho_payroll_user order by uname";
$res = mysql_query($str, $conn);
$opt = '';
while ($bar = mysql_fetch_object($res)) {
    $opt .= "<option value='" . $bar->uname . "'>" . $bar->uname . "</option>";
}
OPEN_BOX('', '<b>' . $_SESSION['lang']['assignpyoperator'] . '</b>');
echo "<div id=EList>";
echo OPEN_THEME($_SESSION['lang']['pilihoperator'] . ':');
$str = "select karyawanid,name,operator from " . $dbname . ".sdm_ho_employee order by karyawanid";
$res = mysql_query($str, $conn);
$no = 0;
echo "<table><tr><td>";
echo "<table class=sortable cellspacing=1 width=500px border=0>\r\n\t\t     <thead>\r\n\t\t\t   <tr class=rowheader><td>No.</td><td>" . $_SESSION['lang']['nokaryawan'] . "</td>\r\n\t\t\t   <td>" . $_SESSION['lang']['namakaryawan'] . "</td><td>" . $_SESSION['lang']['pilihoperator'] . "</td></tr>\r\n\t\t\t </thead>\r\n\t\t\t <tbody id=tablebody>\r\n\t\t\t ";
while ($bar = mysql_fetch_object($res)) {
    $no += 1;
    echo "<tr class=rowcontent><td class=fisttd>" . $no . "</td>\r\n\t\t\t      <td id='user" . $no . "'>" . $bar->karyawanid . "</td>\r\n\t\t\t      <td>" . $bar->name . "</td>\r\n\t\t\t\t  <td><select id=operator" . $no . " onchange=saveOperator('" . $no . "')>\r\n\t\t\t\t  <option value='" . $bar->operator . "'>" . $bar->operator . "</option>\r\n\t\t\t\t  " . $opt . "\r\n\t\t\t\t  </td>\t\t\t  \r\n\t\t\t\t  </tr>";
}
echo "</tbody>\r\n\t\t     <tfoot>\r\n\t\t\t </tfoot>\r\n\t\t\t </table>";
echo "</td>\r\n\t\t     <td valign=top> \r\n\t\t       <fieldset>\r\n\t\t         <legend>\r\n\t\t\t\t <img src=images/info.png align=left height=35px valign=asmiddle>\r\n\t\t\t\t </legend>\r\n\t\t\t\t " . $_SESSION['lang']['operatorinfo'] . "\r\n\t\t      </fieldset>\t\r\n\t\t     </td></tr>\r\n\t\t\t </table>";
echo CLOSE_THEME();
echo "</div>";
CLOSE_BOX();
//+++++++++++++++++++++++++++++++++++++++++++
Beispiel #2
0
                    }
                    echo "</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t  </ul>";
                    //========================================================
                    echo "</li>";
                }
                echo "</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  </ul>";
                //========================================================
                echo "</li>";
            }
            echo "</div>\r\n\t\t\t\t\t\t\t\t\t      </ul>";
            //========================================================
            echo "</li>";
        }
        echo "</div>\r\n\t\t\t\t\t\t      </ul>";
        //========================================================
        echo "</li>";
    }
    echo "</div>\t\t\t \r\n\t\t\t      </ul>";
    //========================================================
    echo "</li>";
}
echo "</ul></div>";
echo "</div>";
echo CLOSE_THEME();
echo "<div id=exchange>";
echo OPEN_THEME('Bracket:') . "<img src=images/info.png align=left height=35px  valign=asmiddle><br>" . $_SESSION['lang']['therestchild'] . "<br><br>";
echo "<fieldset>\r\n\r\n\t  <table>\r\n      <tr><td>Parent</td><td width=200px>:<input type=hidden id=idparent value=''> <span id=parent></span></td></tr>\r\n\t  <tr><td>new Child</td><td width=200px>:<input type=hidden id=idchild value=''><span id=child></span></td></tr>\r\n      <tr><td colspan=2 align=center><br>\r\n\t  <input type=button class=mybutton value='" . $_SESSION['lang']['cancel'] . "' onclick=clearBracket()> \r\n\t  <input type=button class=mybutton value='" . $_SESSION['lang']['apply'] . "' onclick=saveSetting() id=nav style='display:none;'></td></tr>\r\n\t  </table></fieldset>";
echo CLOSE_THEME();
echo "</div>";
CLOSE_BOX();
echo close_body();
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
//+++++++++++++++++++++++++++++++++++++++++++++
//list employee
$limit = 0;
if (isset($_GET['limit'])) {
    $limit = $_GET['limit'];
} else {
    $_GET['limit'] = 0;
}
OPEN_BOX('', '<b>' . strtoupper($_SESSION['lang']['sinkronisasidatapy']) . '</b>');
echo "<div>";
echo OPEN_THEME($_SESSION['lang']['pilihdata'] . ':');
echo "<table><tr><td>";
//get all registred employee
$arrid = array();
$prestr = "select distinct karyawanid from " . $dbname . ".sdm_ho_employee order by karyawanid";
$preres = mysql_query($prestr, $conn);
while ($prebar = mysql_fetch_object($preres)) {
    array_push($arrid, $prebar->karyawanid);
}
$str = "select karyawanid,namakaryawan,statuspajak,tanggalmasuk,tanggalkeluar,npwp from " . $dbname . ".datakaryawan where alokasi=1  limit " . $limit . ",500";
$res = mysql_query($str, $conn);
echo "<input type=checkbox onclick=checkAll(this," . mysql_num_rows($res) . ")>" . $_SESSION['lang']['pilihsemua'];
echo " &nbsp &nbsp &nbsp &nbsp &nbsp \r\n\t\t        <a href='?limit=" . ($_GET['limit'] - 500 > -1 ? $_GET['limit'] - 500 : 0) . "'>" . $_SESSION['lang']['pref'] . "</a> &nbsp <a href='?limit=" . ($_GET['limit'] + 500) . "'>" . $_SESSION['lang']['lanjut'] . "</a>";
echo "<table class=sortable cellspacing=1 border=0>\r\n\t\t     <thead>\r\n\t\t\t   <tr class=rowheader>\r\n\t\t\t   <td>" . $_SESSION['lang']['pilih'] . "</td>\r\n\t\t\t    <td>No.</td>\r\n\t\t\t    <td>" . $_SESSION['lang']['id'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['namakaryawan'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['statuspajak'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['npwp'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['tanggalmasuk'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['tanggalkeluar'] . "</td>\r\n\t\t\t\t</tr>\r\n\t\t\t </thead>\r\n\t\t\t <tbody id=tablebody>\r\n\t\t\t ";
$no = 0;
while ($bar = mysql_fetch_object($res)) {
<?php

//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=JavaScript1.2 src=js/languageconf.js></script>
<?php 
include 'master_mainMenu.php';
OPEN_BOX('');
echo OPEN_THEME($_SESSION['lang']['langconf']);
$sta = "select * from " . $dbname . ".namabahasa order by code";
$res = mysql_query($sta);
$opt = "";
$langlist = "";
$deffind = '';
$newCap = '';
$newText = '';
$count = 0;
while ($bar = mysql_fetch_object($res)) {
    $count += 1;
    $opt .= "<option value=" . $bar->code . ">" . $bar->name . "</option>";
    $langlist .= " &nbsp &nbsp<a href=# onclick=loadLang('" . $bar->code . "')>" . $bar->name . "</a>";
    $deffind = $bar->code;
    $newCap .= "<tr class=rowcontent><td>" . $bar->name . "</td>\r\n\t          <td><input type=hidden value='" . $bar->code . "' id=hidden" . $count . "><input type=text class=myinputtext size=120 id=lang" . $count . " onkeypress=\"return tanpa_kutip(event)\"></td></tr>";
}
///
$tabcont[2] = "\r\n    <table class=data border=0 cellspacing=0>\r\n\t<thead>\r\n\t</thead>\r\n\t<tbody>\r\n\t<tr class=rowcontent><td>\r\n     " . $_SESSION['lang']['newlang'] . "</td><td> <input type=text class=myinputtext size=3 maxlength=2 id=lang onkeypress=\"return tanpa_kutip(event)\"></td>\r\n\t </tr>\r\n\t <tr class=rowcontent><td>\r\n\t " . $_SESSION['lang']['langname'] . "</td><td> <input type=text class=myinputtext size=30 maxlength=45 id=langname onkeypress=\"return tanpa_kutip(event)\"></td>\r\n\t </tr>\r\n\t <tr class=rowcontent><td>\r\n\t " . $_SESSION['lang']['deflangtonew'] . "</td><td><select id=def>" . $opt . "</select>\r\n\t </td></tr>\r\n\t </tbody>\r\n\t <tfoot>\r\n\t </tfoot>\r\n\t </table>\r\n\t <button class=mybutton onclick=addNewLanguage()>" . $_SESSION['lang']['save'] . "</button>\r\n\t ";
$tabcont[1] = "<fieldset><legend>" . $_SESSION['lang']['addnewcaption'] . "</legend>\r\n             <table class=data cellspacing=0 border=0 width=100%>\r\n             <thead>\r\n\t\t\t </thead>\r\n\t\t\t <tbody>\r\n\t\t\t <tr class=rowcontent><td>" . $_SESSION['lang']['legend'] . "</td><td><input type text class=myinputtext id=legend onkeypress=\"return tanpa_kutip(event);\" size=30 maxlength=45></td></tr>\r\n\t\t\t <tr class=rowcontent><td>" . $_SESSION['lang']['location'] . "</td><td><input type text class=myinputtext id=location onkeypress=\"return tanpa_kutip(event);\" size=55></td></tr>\r\n\t\t\t " . $newCap . "\t\t\t  \t\t \r\n\t\t\t </tbody>\r\n\t\t\t <tfoot>\r\n\t\t\t </tfoot>\r\n\t\t\t </table>\r\n\t\t\t <center><button onclick=saveNewCaption('" . $count . "') class=mybutton>" . $_SESSION['lang']['save'] . "</button></center>\r\n\t\t\t </fieldset>\r\n            ";
$tabcont[0] = "\r\n\t  <span id=avlanguage>\r\n\t  <fieldset style='width:850px;'>\r\n\t  <legend>" . $_SESSION['lang']['availlang'] . "</legend>\r\n\t  " . $langlist . "\r\n\t  </fieldset>\r\n\t  </span>\t \r\n\t  <br> \r\n\t  <b>" . $_SESSION['lang']['findlegendandloc'] . "</b>\r\n\t  <input type=text id=searclang class=myinputtext size=20 onkeypress=\"return duaevent(event);\">\r\n      <button class=mybutton onclick=findComp()>" . $_SESSION['lang']['find'] . "</button> " . $_SESSION['lang']['on'] . " <span id=defaultfind style='font-weight:bolder;'>" . $deffind . "</span>\r\n      <fieldset style='height:330px;width:850px;overflow:scroll;'>\r\n      <legend>" . $_SESSION['lang']['detailconfigfor'] . " [<span id=defaultfind1></span>]</legend>\r\n\t  <div  style='height:320px;width:840px;overflow:scroll;'>\r\n\t  <span id=langdetailconf>\r\n\t  \r\n\t  </span>\r\n\t  </div>\r\n     </fieldset>";
Beispiel #5
0
<?php

//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script  language=javascript1.2 src=js/sdm_rumahsakit.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
//+++++++++++++++++++++++++++++++++++++++++++++
OPEN_BOX('');
echo "<div id=EList>";
echo OPEN_THEME($_SESSION['lang']['rumahsakit'] . " Form: <a id=label style='color:#FFFFFF;'>New</a>");
echo "<fieldset><legend>Input Form</legend>\r\n\t\t       <br>\r\n\t\t\t   <table>\r\n\t\t\t      <tr><td>" . $_SESSION['lang']['namars'] . "</td><td><input type=hidden id=hosid value=''>\r\n\t\t\t\t  <input type=hidden id=update value=''><input type=text class=myinputtext id=hosname size=25 maxlength=45 onkeypress=\"return tanpa_kutip(event);\"></td></tr>\r\n\t\t\t\t  <tr><td>" . $_SESSION['lang']['alamat'] . "</td><td><input type=text class=myinputtext id=hosadd size=45 maxlength=45 onkeypress=\"return tanpa_kutip(event);\"></td></tr>\r\n\t\t\t\t  <tr><td>" . $_SESSION['lang']['kota'] . "</td><td><input type=text class=myinputtext id=hoscity size=25 maxlength=45 onkeypress=\"return tanpa_kutip(event);\"></td></tr>\r\n\t\t\t      <tr><td>" . $_SESSION['lang']['telp'] . "</td><td><input type=text class=myinputtext id=hosphone size=25 maxlength=45 onkeypress=\"return tanpa_kutip(event);\"></td></tr>\r\n\t\t\t\t  <tr><td>" . $_SESSION['lang']['email'] . "</td><td><input type=text class=myinputtext id=hosmail size=25 maxlength=45 onkeypress=\"return tanpa_kutip(event);\"></td></tr>\r\n\t\t\t      <tr><td>" . $_SESSION['lang']['status'] . "</td><td><select id=status><option value=1>Active</option><option value=0>Black List</option></select></td></tr>\r\n\t\t\t   </table>\r\n\t\t\t   <br>\r\n\t\t\t   <button class=mybutton onclick=saveHospital()>" . $_SESSION['lang']['save'] . "</button>\r\n\t\t\t   <button class=mybutton onclick=cancelHospital()>" . $_SESSION['lang']['new'] . "</button>\r\n\t\t\t   </fieldset>";
echo CLOSE_THEME();
echo "</div>";
CLOSE_BOX();
OPEN_BOX('', $_SESSION['lang']['list']);
echo "<table class=sortable cellspacing=1 border=0 width=100%>\r\n\t        <thead>\r\n\t          <tr class=rowheader><td>No.</td>\r\n\t\t\t      <td align=center>" . $_SESSION['lang']['namars'] . "</td>\r\n\t\t\t\t  <td align=center>" . $_SESSION['lang']['alamat'] . "</td>\r\n\t\t\t\t  <td align=center>" . $_SESSION['lang']['kota'] . "</td>\r\n\t\t\t\t  <td align=center>" . $_SESSION['lang']['telp'] . "</td> \r\n\t\t\t\t  <td align=center>" . $_SESSION['lang']['email'] . "</td>\r\n\t\t\t\t  <td align=center>" . $_SESSION['lang']['status'] . "</td>\r\n\t\t\t\t  <td align=center>Edit/Del</td>\r\n\t\t\t  </tr>\r\n\t\t\t</thead><tbody id=tbody>";
$str = "select *,case status when 1 then 'Active' when 0 then\t 'Black List' end as xstatus from " . $dbname . ".sdm_5rs order by namars";
$res = mysql_query($str);
$no = 0;
while ($bar = mysql_fetch_object($res)) {
    $no += 1;
    echo "<tr class=rowcontent><td>" . $no . "</td>\r\n\t      <td>" . $bar->namars . "</td>\r\n\t\t  <td>" . $bar->alamat . "</td>\r\n\t\t  <td>" . $bar->kota . "</td>\r\n\t\t  <td>" . $bar->telp . "</td> \r\n\t\t  <td>" . $bar->email . "</td>\r\n\t\t  <td>" . $bar->xstatus . "</td>\r\n\t\t  <td align=center>\r\n\t\t   <img src=images/tool.png class=dellicon title=Edit height=11px onclick=\"editHospital('" . $bar->id . "','" . $bar->namars . "','" . $bar->kota . "','" . $bar->alamat . "','" . $bar->telp . "','" . $bar->email . "','" . $bar->status . "')\">\r\n\t\t  <img src=images/close.png class=dellicon title=delete height=11px onclick=\"deleteHospital('" . $bar->id . "');\">\r\n         </td>\r\n\t  </tr>";
}
echo "</tbody><tfoot></tfoot></table>";
CLOSE_BOX();
echo close_body();
<?php

//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
OPEN_BOX('', '<b>PPn21 COMPONENT</b>');
echo "<div id=EList>";
echo OPEN_THEME('Component Gaji yang dikenai PPh21:') . "<br>";
$str = "select id,name,pph21 from " . $dbname . ".sdm_ho_component\r\n      where plus=1 order by id";
$res = mysql_query($str, $conn);
$va = "Beri tanda check(V) pada komponen yang kena pajak.\r\n     <table class=sortable cellspacing=1 border=0 width=500px>\r\n      <thead>\r\n\t  <tr class=rowheader>\r\n\t    <td>ID.</td><td align=center>Nama.Komponen</td><td align=center>Yes/No</td>\r\n\t  </tr>\t\r\n\t  </thead>\r\n\t  <tbody>";
while ($bar = mysql_fetch_object($res)) {
    if ($bar->pph21 == 1) {
        $ch = 'checked';
        if ($bar->id == 1) {
            $ch .= " disabled";
        }
    } else {
        $ch = '';
    }
    $va .= "<tr class=rowcontent>\r\n\t        <td class=firsttd align=center>" . $bar->id . "</td>\r\n\t\t\t<td>" . $bar->name . "</td>\r\n\t\t\t<td align=center><input type=checkbox id=ch" . $bar->id . " " . $ch . " onclick=savePPh21Component(this,this.value) value=" . $bar->id . "></td>\r\n\t    </tr>";
}
$va .= "</tbody><tfoot></tfoot></table>";
$hfrm[0] = 'Komponen Gaji';
$frm[0] = "<br>" . $va . "<br>\r\n\t\t";
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
//+++++++++++++++++++++++++++++++++++++++++++++
//list employee
$periode = $_SESSION['thrperiode'];
$tglthr = $_SESSION['tglthr'];
$tgltmp = tanggalsystem($tglthr);
$ththr = substr($tglthr, 6, 4);
$blthr = substr($tglthr, 3, 2);
$tgthr = substr($tglthr, 0, 2);
OPEN_BOX('', '<b>THR ENTRY:</b>');
echo "<div id=EList>";
echo OPEN_THEME('Create THR: PERIOD <font color=red>' . substr($periode, 5, 2) . "/" . substr($periode, 0, 4)) . "</font>";
//cek if new employee exist
$prestr = "select distinct karyawanid from " . $dbname . ".sdm_ho_employee order by karyawanid";
$preres = mysql_query($prestr, $conn);
$arrid = '';
while ($prebar = mysql_fetch_object($preres)) {
    if ($arrid == '') {
        $arrid .= $prebar->karyawanid;
    } else {
        $arrid .= "," . $prebar->karyawanid;
    }
}
if ($arrid == '') {
    $arrid = "'null'";
}
$str = "select karyawanid,namakaryawan,statuspajak,tanggalkeluar,npwp from " . $dbname . ".datakaryawan\r\n\t\t       where karyawanid not in(" . $arrid . ") and alokasi=1";
    if ($bar->status == 1) {
        $bar->status = '<font color=#00AA00>Active</font>';
    } else {
        $bar->status = "<font color=#DD3333>Off <img id=privilball src=images/buttongreen.png class=privilball onclick=turnOn('" . $bar->access_name . "') title='Click to Activate'></font>";
    }
    echo "<tr class=rowcontent id=row" . $bar->access_name . "  title='" . $bar->remark . "'>\r\n\t       <td>" . ucfirst($bar->access_name) . "</td>\r\n\t       <td id=col" . $bar->access_name . ">" . $bar->status . "</td></tr>\r\n\t      ";
}
echo "<tr><td>Turn Off Security</td>\r\n\t            <td><img id=privilball src=images/hot.png onclick=turnOff() title='Turn off all privilege' style='cursor:pointer;'>\r\n\t\t\t</tr>";
echo "</tbody></table>";
echo "</fieldset>";
echo CLOSE_THEME();
echo "<div id=ctr style='position:absolute;display:none;'>";
echo OPEN_THEME('Menu/User Level And Privileges:');
echo "<div id=content>";
echo "</div>";
echo CLOSE_THEME();
echo "</div>";
echo "<div id=ctrmenu style='position:absolute;display:none;'>";
echo OPEN_THEME('Menu Mapping:');
echo "<div id=contentmenu>";
echo "</div>";
echo CLOSE_THEME();
echo "</div>";
echo "<div id=globalakses style='position:absolute;display:none;'>";
echo OPEN_THEME('Choose Menu:');
echo "<div id=contentglobal>";
echo "</div>";
echo CLOSE_THEME();
echo "</div>";
CLOSE_BOX();
echo close_body();
Beispiel #9
0
    $add = " ";
} else {
    $add = " style='display:none;' ";
}
echo "<div class=drag id=pdf style=\" width:750px; display:none;position:absolute;background-image:url('images/title_bg.gif');\">\r\n     </div>";
$opt = "";
for ($x = 0; $x < 24; $x++) {
    $dt = mktime(0, 0, 0, date('m') - $x, 15, date('Y'));
    $opt .= "<option value='" . date('Y-m', $dt) . "'>" . date('m-Y', $dt) . "</option>";
}
$opt1 = "<option value='regular'>Regular</option>";
$opt1 .= "<option value='thr'>THR</option>";
$opt1 .= "<option value='jaspro'>Jasa Produksi</option>";
OPEN_BOX('', '<b>PAYROLL PRINT:</b>');
echo "<div id=EList>";
echo OPEN_THEME("Payroll Print Preview: PERIOD <select id=periode>" . $opt . "</option></select> Tipe:<select id=tipe>" . $opt1 . "</select><span  " . $add . "> Operator <select id=user>" . $optx . "</select></span>\r\n\t\t <button class=mybutton onclick=pyPreview()>Preview</button> &nbsp\r\n\t\t <img src=images/excel.jpg onclick=pyPreviewExcel() style='cursor:pointer;' title='Convert to Excel'> &nbsp \r\n\t\t <img src='images/printer.png' title='Print Slyp/PDF' style='cursor:pointer' onclick=pPDF(event)> \r\n\t\t <img src='images/bca.jpg'  onclick=printBank(event,'BCA')  title='Convert to Ms.Excel for BCA Transfer' style='cursor:pointer'>");
//cek if new employee exist
$prestr = "select distinct karyawanid from " . $dbname . ".sdm_ho_employee order by karyawanid";
$preres = mysql_query($prestr, $conn);
$arrid = '';
while ($prebar = mysql_fetch_object($preres)) {
    if ($arrid == '') {
        $arrid .= $prebar->karyawanid;
    } else {
        $arrid .= "," . $prebar->karyawanid;
    }
}
if ($arrid == '') {
    $arrid = "'null'";
}
$str = "select karyawanid,namakaryawan,statuspajak,tanggalkeluar,npwp from " . $dbname . ".datakaryawan\r\n\t\t       where karyawanid not in(" . $arrid . ") and alokasi=1";
Beispiel #10
0
<?php

require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=javascript1.2 src=js/usersetting.js></script>
<?php 
include 'master_mainMenu.php';
$str = "select karyawanid,namakaryawan, lokasitugas from " . $dbname . ".datakaryawan \r\n           where (tanggalkeluar>'" . date('Y-m-d') . "' or tanggalkeluar='0000-00-00') order by namakaryawan";
$res = mysql_query($str);
$opt = '';
while ($bar = mysql_fetch_object($res)) {
    $opt .= "<option value='" . $bar->karyawanid . "'>" . $bar->namakaryawan . "-" . $bar->lokasitugas . "</option>";
}
OPEN_BOX();
echo OPEN_THEME($_SESSION['lang']['newuser'] . ':');
echo "<fieldset>\r\n     <legend><img src='images/user.png' height=60px style='vertical-align:middle;'><b>" . $_SESSION['lang']['addnewuser'] . ":</b></legend> \r\n      <table cellspacing=1 border=0'>\r\n\t  <tbody>\r\n        <tr><td>" . $_SESSION['lang']['employeename'] . "</td><td>\r\n\t\t        <select id=userid onchange=enablecheck(this.options[this.selectedIndex].value)>\r\n\t\t\t      <option value=0>*Additional User ... </option>" . $opt . "\r\n\t\t\t     </select>\r\n\t\t\t </td>\r\n\t\t </tr>\r\n\t     <tr><td>" . $_SESSION['lang']['username'] . "</td><td><input  class=myinputtext type=text size=20 maxlength=40 id=uname onkeypress=\"return tanpa_kutip_dan_sepasi(event);\"><img src='images/obligatory.gif' style='height:15px;vertical-align:middle;' title='Required Element'></td></tr>\r\n\t\t <tr><td>" . $_SESSION['lang']['password'] . "</td><td><input  class=myinputtext type=password id=pwd1 size=20 maxlength=20 onkeypress=\"return tanpa_kutip(event);\"><img src='images/obligatory.gif' style='height:15px;vertical-align:middle;' title='Required Element'></td></tr>\r\n\t\t <tr><td>Re-Type " . $_SESSION['lang']['password'] . "</td><td><input  class=myinputtext type=password id=pwd2 size=20 maxlength=20 onkeypress=\"return tanpa_kutip(event);\"><img src='images/obligatory.gif' style='height:15px;vertical-align:middle;' title='Required Element'></td></tr>\r\n          <tr><td>Status</td><td><input type=radio name=radio id=radio value=1 class=myradio checked>Active <input type=radio name=radio id=radio1 value=0 class=myradio>Not Active<br>\r\n\t\t  <input type=checkbox id=sendmail style='vertical-align:middle;' disabled>" . $_SESSION['lang']['sendmailtouser'] . "\r\n\t\t  </td></tr>\r\n\t\t  <tr><td colspan=2 align=right>\r\n\t\t\t  <input type=button class=mybutton value='" . $_SESSION['lang']['cancel'] . "' onclick=resetf()>\r\n\t\t\t  <input type=button class=mybutton value='" . $_SESSION['lang']['save'] . "' onclick=savef()> &nbsp \r\n\t\t  </td></tr>\t\t \r\n\t  </tbody>\r\n\t  </table>  \r\n\t </fieldset><br><hr>\r\n\t <div id=temp></div>\r\n\t ";
echo CLOSE_THEME();
CLOSE_BOX();
echo close_body();
                }
                echo "</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  </ul>";
                //========================================================
                echo "</li>";
            }
            echo "</div>\r\n\t\t\t\t\t\t\t\t\t      </ul>";
            //========================================================
            echo "</li>";
        }
        echo "</div>\r\n\t\t\t\t\t\t      </ul>";
        //========================================================
        echo "</li>";
    }
    echo "</div>\t\t\t \r\n\t\t\t      </ul>";
    //========================================================
    echo "</li>";
}
echo "</ul></div>";
echo "</div>";
//*****************************
//menu order editor
echo "<div id=ordereditor style='display:none;position:absolute;'>";
echo OPEN_THEME('Choose user:');
echo "<div id=ordereditorcontent></div>";
echo CLOSE_THEME();
echo "</div>";
//end menuOrder
//==================================================================================================================================================================
echo CLOSE_THEME();
CLOSE_BOX();
echo close_body();
$opt .= "<option value='04'>04</option>";
$opt .= "<option value='05'>05</option>";
$opt .= "<option value='06'>06</option>";
$opt .= "<option value='07'>07</option>";
$opt .= "<option value='08'>08</option>";
$opt .= "<option value='09'>09</option>";
$opt .= "<option value='10'>10</option>";
$opt .= "<option value='11'>11</option>";
$opt .= "<option value='12'>12</option>";
$opt1 = '';
for ($x = -1; $x <= 50; $x++) {
    $opt1 .= "<option value='" . (date('Y') - $x) . "'>" . (date('Y') - $x) . "</option>";
}
OPEN_BOX('', '<b>' . $_SESSION['lang']['akunbank'] . '</b>');
echo "<center><div>";
echo OPEN_THEME('<font color=white>' . $_SESSION['lang']['akunbanknote'] . ':</font>');
echo "<fieldset>\r\n\t\t         <legend>\r\n\t\t\t\t <img src=images/info.png align=left height=35px valign=asmiddle>\r\n\t\t\t\t </legend>\r\n\t\t\t\t" . $_SESSION['lang']['akunbankinfo'] . "\t\t\t\t \r\n\t\t      </fieldset>";
$prestr = "select * from " . $dbname . ".sdm_ho_employee order by karyawanid";
$preres = mysql_query($prestr, $conn);
echo "<table class=sortable cellspacing=1 border=0>\r\n\t\t     <thead>\r\n\t\t\t   <tr class=rowheader>\r\n\t\t\t    <td>" . $_SESSION['lang']['pilih'] . "</td>\r\n\t\t\t    <td>No.</td>\r\n\t\t\t    <td>" . $_SESSION['lang']['nokaryawan'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['namakaryawan'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['namabank'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['norekeningbank'] . "</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['jms'] . "</td>\r\n\t\t\t\t<td>JMS.Start</td>\r\n\t\t\t\t<td>#1st.Pymnt<br>Period</td>\r\n\t\t\t\t<td>#1st.Vol<br>(%)</td>\r\n\t\t\t\t<td>Last.Pymnt<br>Period</td>\r\n\t\t\t\t<td>Last.Vol<br>(%)</td>\r\n\t\t\t\t<td>" . $_SESSION['lang']['save'] . "</td>\r\n\t\t\t\t</tr>\r\n\t\t\t </thead>\r\n\t\t\t <tbody id=tablebody>\r\n\t\t\t ";
$no = 0;
while ($bar = mysql_fetch_object($preres)) {
    $no += 1;
    if ($bar->bank == '' or $bar->bankaccount == '') {
        $stat = '';
        $ch = 'checked';
    } else {
        $stat = 'disabled';
        $ch = '';
    }
    echo "<tr class=rowcontent id=row" . $no . ">\r\n\t\t\t     <td><input type=checkbox id=check" . $no . " " . $ch . " onclick=vLine(this,'" . $no . "')></td>\r\n\t\t\t     <td class=firsttd>" . $no . "</td>\r\n\t\t\t\t <td id=userid" . $no . ">" . $bar->karyawanid . "</td>\r\n\t\t\t\t <td id=nama" . $no . ">" . $bar->name . "</td>\r\n\t\t\t\t <td><input type=text class=myinputtext id=bank" . $no . " value='" . $bar->bank . "' " . $stat . " onkeypress=\"return tanpa_kutip(event);\"></td>\r\n\t\t\t\t <td><input type=text class=myinputtext id=bankac" . $no . " value='" . $bar->bankaccount . "' size=8 " . $stat . " onkeypress=\"return tanpa_kutip(event);\"></td>\r\n\t\t\t\t <td><input type=text class=myinputtext id=jms" . $no . " value='" . $bar->nojms . "' size=6 " . $stat . " onkeypress=\"return tanpa_kutip(event);\"></td>\t\t\r\n\t\t\t\t <td>\r\n\t\t\t\t \t<select id='jmsstartbl" . $no . "'  " . $stat . "><option value='" . substr($bar->jmsstart, 5, 2) . "'>" . substr($bar->jmsstart, 5, 2) . "</option>\r\n\t\t\t\t\t" . $opt . "\r\n\t\t\t\t\t</select>\r\n\t\t\t\t \t<select id='jmsstartth" . $no . "'   " . $stat . "><option value='" . substr($bar->jmsstart, 0, 4) . "'>" . substr($bar->jmsstart, 0, 4) . "</option>\r\n\t\t\t\t\t" . $opt1 . "\r\n\t\t\t\t\t</select>\t\t\t\t\t\r\n\t\t\t\t </td>\r\n\t\t\t\t <td>\r\n\t\t\t\t \t<select id='firstbl" . $no . "'  " . $stat . "> <option value='" . substr($bar->firstpayment, 5, 2) . "'>" . substr($bar->firstpayment, 5, 2) . "</option>\r\n\t\t\t\t\t" . $opt . "\r\n\t\t\t\t\t</select>\r\n\t\t\t\t \t<select id='firstth" . $no . "'   " . $stat . "> <option value='" . substr($bar->firstpayment, 0, 4) . "'>" . substr($bar->firstpayment, 0, 4) . "</option>\r\n\t\t\t\t\t" . $opt1 . "\r\n\t\t\t\t\t</select>\t\t\t\t\t\r\n\t\t\t\t </td>\r\n\t\t\t\t <td><input type=text class=myinputtext id=firstvol" . $no . " value='" . $bar->firstvol . "' size=4 " . $stat . " onkeypress=\"return angka_doang(event);\" maxlength=5></td>\r\n\t\t\t\t <td>\r\n\t\t\t\t \t<select id='lastbl" . $no . "'   " . $stat . "> <option value='" . substr($bar->lastpayment, 5, 2) . "'>" . substr($bar->lastpayment, 5, 2) . "</option>\r\n\t\t\t\t\t" . $opt . "\r\n\t\t\t\t\t</select>\r\n\t\t\t\t \t<select id='lastth" . $no . "'   " . $stat . "> <option value='" . substr($bar->lastpayment, 0, 4) . "'>" . substr($bar->lastpayment, 0, 4) . "</option>\r\n\t\t\t\t\t" . $opt1 . "\r\n\t\t\t\t\t</select>\t\t\t\t\t \r\n\t\t\t\t </td>\r\n\t\t\t\t <td><input type=text class=myinputtext id='lastvol" . $no . "' value='" . $bar->lastvol . "' size=4 " . $stat . "  onkeypress=\"return angka_doang(event);\" maxlength=5></td>\t\t\t\t \r\n\t\t\t\t <td><button class=mybutton id=butt" . $no . " style='padding:0px;' title='Save this line' " . $stat . " onclick=saOneLine('" . $no . "')><img src='images/save.png' height=12px></button></td>\r\n\t\t\t\t </tr>";
Beispiel #13
0
<?php

//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
include 'master_mainMenu.php';
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payrollHO.css>
<?php 
//+++++++++++++++++++++++++++++++++++++++++++++
//list employee
OPEN_BOX('', "<b>" . $_SESSION['lang']['pengaturanuserpayroll'] . "</b>");
echo "<div id=EList>";
echo OPEN_THEME($_SESSION['lang']['daftarpengguna'] . ':');
$str1 = "select namauser from " . $dbname . ".user order by namauser";
$res1 = mysql_query($str1, $conn);
$opt = '';
while ($bar1 = mysql_fetch_array($res1)) {
    $opt .= "<option value='" . $bar1[0] . "'>" . $bar1[0] . "</option>";
}
echo "<fieldset>\r\n\t\t         <legend>\r\n\t\t\t\t <img src=images/info.png align=left height=35px valign=asmiddle>\r\n\t\t\t\t [INFO]\r\n\t\t\t\t </legend>\r\n\t\t\t\t " . $_SESSION['lang']['assignpyinfo'] . "\t\r\n\t\t      </fieldset>\t\r\n\t\t\t  <fieldset>\r\n\t\t\t  New User:<select id=user><option></option>" . $opt . "</select> Type<select id=type><option value='operator'>Operator</option><option value='admin'>Admin</option></select>\r\n\t\t      <button onclick=savePyUser() class=mybutton>" . $_SESSION['lang']['save'] . "</button>\r\n\t\t\t  </fieldset>";
echo "<table class=sortable cellspacing=1 width=500px border=0>\r\n\t\t     <thead>\r\n\t\t\t   <tr class=rowheader><td>No.</td><td>" . $_SESSION['lang']['username'] . "</td>\r\n\t\t\t   <td>" . $_SESSION['lang']['tipe'] . "</td>\r\n\t\t\t   <td>Del</td>\r\n\t\t\t   </tr>\r\n\t\t\t </thead>\r\n\t\t\t <tbody id=tablebody>\r\n\t\t\t ";
$str = "select * from " . $dbname . ".sdm_ho_payroll_user order by uname";
$res = mysql_query($str, $conn);
$no = 0;
while ($bar = mysql_fetch_object($res)) {
    $no += 1;
    echo "<tr class=rowcontent><td class=fisttd>" . $no . "</td>\r\n\t\t\t      <td id='uname" . $no . "'>" . $bar->uname . "</td>\r\n\t\t\t      <td>" . $bar->type . "</td>\r\n\t\t\t\t  <td align=center><img src=images/close.png  height=11px class=dellicon title=Delete  onclick=\"delPyUser('" . $bar->uname . "')\"></td>\t  \r\n\t\t\t\t  </tr>";
}
Beispiel #14
0
<?php

require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
OPEN_BOX('', '<b>' . $_SESSION['lang']['komponenpayroll'] . '</b>');
echo "<div id=EList>";
echo OPEN_THEME($_SESSION['lang']['list'] . ':');
echo "<table><tr><td>";
$str = "select * from " . $dbname . ".sdm_ho_component order by id";
$res = mysql_query($str);
$no = 0;
echo "<table class=sortable width=450px cellspacing=1 border=0>\r\n\t\t     <thead>\r\n\t\t\t   <tr class=rowheader><td>No.</td><td>" . $_SESSION['lang']['nama'] . "</td>\r\n\t\t\t   <td>Status</td><td>" . $_SESSION['lang']['tipe'] . "</td>\r\n\t\t\t   <td>" . $_SESSION['lang']['sumber'] . "</td>\r\n\t\t\t   <td>***</td></tr>\r\n\t\t\t </thead>\r\n\t\t\t <tbody id=tablebody>\r\n\t\t\t ";
while ($bar = mysql_fetch_object($res)) {
    $no += 1;
    echo "<tr class=rowcontent><td class=fisttd>" . $no . "</td>\r\n\t\t\t      <td>" . $bar->name . "</td>\r\n\t\t\t      <td>" . ($bar->plus == 1 ? $_SESSION['lang']['penambah'] : $_SESSION['lang']['pengurang']) . "</td>\r\n\t\t\t\t  <td>" . $bar->type . "</td>\r\n\t\t\t\t  <td>" . ($bar->lock == 1 ? $_SESSION['lang']['dikunci'] : $_SESSION['lang']['inputbebas']) . "</td>\r\n\t\t\t\t  <td align=center><img src=images/tool.png class=dellicon title=Edit height=11px onclick=\"editComp('" . $bar->id . "','" . $bar->name . "','" . $bar->plus . "','" . $bar->type . "','" . $bar->lock . "')\"> \r\n\t\t\t\t  <img src=images/close.png  height=11px class=dellicon title=Delete  onclick=\"delComp('" . $bar->id . "','" . $bar->name . "')\"></td>\r\n\t\t\t\t  </tr>";
}
echo "</tbody>\r\n\t\t     <tfoot>\r\n\t\t\t </tfoot>\r\n\t\t\t </table>";
echo "</td>\r\n\t\t     <td valign=top>\r\n\t\t\t     <fieldset style='text-align:left'>\r\n\t\t\t\t   <legend><b><img src=images/info.png align=left height=35px valign=asmiddle>[Info]</b></legend>\r\n                   " . $_SESSION['lang']['komponendeskripsi'] . " \r\n\t\t\t\t </fieldset>\r\n\t\t\t\t \t\t\t \r\n\t\t\t     <fieldset style='text-align:left'>\r\n\t\t\t\t   <legend id=legend><b>" . $_SESSION['lang']['new'] . "</b></legend>\r\n\t\t\t\t   <table><tr><td>\r\n\t\t\t\t   <input type=hidden value='' id=compid>\r\n\t\t\t\t   " . $_SESSION['lang']['namakomponen'] . "</td><td><input class=myinputtext type=text id=comp size=30 onkeypress=\"return tanpa_kutip(event)\">\r\n\t\t\t\t   </td></tr>\r\n\t\t\t\t   <tr><td>\r\n\t\t\t\t   " . $_SESSION['lang']['status'] . "</td><td><select id=plus>\r\n\t\t\t\t     <option value=1>" . $_SESSION['lang']['penambah'] . "</option>\r\n\t\t\t\t\t <option value=0>" . $_SESSION['lang']['pengurang'] . "</option>\r\n\t\t\t\t   </select>\r\n\t\t\t\t   </td></tr>\r\n\t\t\t\t   <tr><td>\t\t\t\t   \r\n\t\t\t\t   " . $_SESSION['lang']['tipe'] . "</td><td><select id=type>\r\n\t\t\t\t     <option value=basic>Basic</option>\r\n\t\t\t\t\t <option value=additional>Additional</option>\r\n\t\t\t\t   </select>\r\n\t\t\t\t   </td></tr>\r\n\t\t\t\t   <tr><td>\t\r\n\t\t\t\t    " . $_SESSION['lang']['tipeinput'] . "</td><td><select id=lock>\r\n\t\t\t\t     <option value=0>Free Entry</option>\r\n\t\t\t\t\t <option value=1>Value From Other Source</option>\r\n\t\t\t\t   </select>\r\n\t\t\t\t   </td></tr>\r\n\t\t\t\t   </table>\r\n\t\t\t\t   <button class=mybutton onclick=saveComp()>" . $_SESSION['lang']['save'] . "</button>\t \r\n\t\t\t\t   <button class=mybutton onclick=cancelComp()>" . $_SESSION['lang']['cancel'] . "</button>\t\r\n\t\t\t\t </fieldset>\r\n\t\t\t </td>\r\n\t\t\t </tr>\r\n\t\t\t </table>\r\n\t\t\t ";
echo CLOSE_THEME();
echo "</div>";
CLOSE_BOX();
//+++++++++++++++++++++++++++++++++++++++++++
echo close_body();
Beispiel #15
0
<?php

require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
//+++++++++++++++++++++++++++++++++++++++++++++
OPEN_BOX('', '<b>BASIC SALARY SETUP:</b>');
echo "<div id=EList>";
echo OPEN_THEME('Basic Salary Form:');
//cek if new employee exist
$prestr = "select distinct karyawanid from " . $dbname . ".sdm_ho_employee order by karyawanid";
$preres = mysql_query($prestr, $conn);
$arrid = '';
while ($prebar = mysql_fetch_object($preres)) {
    if ($arrid == '') {
        $arrid .= $prebar->karyawanid;
    } else {
        $arrid .= "," . $prebar->karyawanid;
    }
}
if ($arrid == '') {
    $arrid = "'null'";
}
$str = "select karyawanid,namakaryawan,statuspajak,tanggalkeluar,npwp from " . $dbname . ".datakaryawan\r\n\t\t       where karyawanid not in(" . $arrid . ") and alokasi=1";
$newempl = mysql_num_rows(mysql_query($str, $conn));
if ($newempl > 0) {
Beispiel #16
0
                echo "<li class=mmgr>\t\r\n\t\t\t\t\t\t\t<img id='" . $bar2->kodeorganisasi . "_new' class=elink title='Create Child'  src='images/plus.png'" . "style='width:12px;height:12px;cursor:pointer' onclick=\"javascript:orgVal='" . $bar2->kodeorganisasi . "';clos=4;activeOrg='" . $bar2->kodeorganisasi . "_new';setpos('inputorg',event);clearForm();\">\r\n\t\t\t\t\t\t\t</li>";
                echo "</ul>";
                #							<a id='".$bar2->kodeorganisasi."_new' class=elink title='Create Child'  onclick=\"javascript:orgVal='".$bar2->kodeorganisasi."';clos=4;activeOrg='".$bar2->kodeorganisasi."_new';setpos('inputorg',event);clearForm();\">New Org<a>
                //============================================
                echo "</li>";
            }
            echo "</div>";
            echo "<li class=mmgr>\t\r\n\t\t\t\t\t<img id='" . $bar1->kodeorganisasi . "_new' class=elink title='Create Child' src='images/plus.png'" . "style='width:14px;height:14px;cursor:pointer' onclick=\"javascript:orgVal='" . $bar1->kodeorganisasi . "';clos=3;activeOrg='" . $bar1->kodeorganisasi . "_new';setpos('inputorg',event);clearForm();\">\r\n\t\t\t\t\t</li>";
            echo "</ul>";
            #					<a id='".$bar1->kodeorganisasi."_new' class=elink title='Create Child'  onclick=\"javascript:orgVal='".$bar1->kodeorganisasi."';clos=3;activeOrg='".$bar1->kodeorganisasi."_new';setpos('inputorg',event);clearForm();\">New Org<a>
            //============================================
            echo "</li>";
        }
        echo "</div>";
        echo "<li class=mmgr>\t\r\n\t\t\t<img id='" . $bar->kodeorganisasi . "_new' class=elink title='Create Child' src='images/plus.png'" . "style='width:16px;height:16px;cursor:pointer' onclick=\"javascript:orgVal='" . $bar->kodeorganisasi . "';clos=2;activeOrg='" . $bar->kodeorganisasi . "_new';setpos('inputorg',event);clearForm();\">\r\n\t\t\t</li>";
        echo "</ul>";
        #			<a id='".$bar->kodeorganisasi."_new' class=elink title='Create Child'  onclick=\"javascript:orgVal='".$bar->kodeorganisasi."';clos=2;activeOrg='".$bar->kodeorganisasi."_new';setpos('inputorg',event);clearForm();\">New<a>
        #$headControl = "<img id='addHeaderId' title='Tambah Header' src='images/plus.png'".
        #  "style='width:20px;height:20px;cursor:pointer' onclick='addHeader(event)' />&nbsp;";
        //============================================
        echo "</li>";
    }
} else {
    echo "<li class=mmgr>\t\r\n\t\t<a id=HQ class=elink title='Create New HQ'  onclick=\"javascript:orgVal='';clos=1;activeOrg='HQ';setpos('inputorg',event);clearForm();\">New Entity<a>\r\n\t\t</li>";
}
echo "</ul>";
echo "</div>";
echo CLOSE_THEME();
CLOSE_BOX();
echo "<div id=inputorg style='display:none;position:absolute'>\r\n\t\t" . OPEN_THEME($_SESSION['lang']['orgentry']) . "\r\n\t\t<table>\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['orgcode'] . "</td><td><input type=text class=myinputtext id=orgcode maxlength=10 size=12 onkeypress=\"return charAndNum(event);\"></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['orgname'] . "</td><td><input type=text class=myinputtext id=orgname maxlength=45 size=100 onkeypress=\"return charAndNumAndStrip(event);\"></td>\r\n\t\t</tr>\t\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['orgtype'] . "</td><td><select id=orgtype>" . $optTipeOrg . "</select></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['detail'] . "</td><td><select id=orgdetail><option value=1>" . $_SESSION['lang']['yes'] . "</option><option value=0>" . $_SESSION['lang']['no'] . "</option></select></td>\r\n\t\t</tr>\t\t\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['address'] . "</td><td><input type=text class=myinputtext id=orgadd maxlength=100 size=100  onkeypress=\"return tanpa_kutip(event);\"></td>\r\n\t\t</tr>\t\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['city'] . "</td><td><input type=text class=myinputtext id=orgcity maxlength=20 size=15 onkeypress=\"return charAndNum(event);\"></td>\r\n\t\t</tr>\t\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['country'] . "</td><td><select id=orgcountry>" . $optCountry . "</select></td>\r\n\t\t</tr>\t\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['zipcode'] . "</td><td><input type=text class=myinputtext id=orgzip maxlength=6 size=6 onkeypress=\"return angka_doang(event);\"></td>\r\n\t\t</tr>\t\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['telp'] . "</td><td><input type=text class=myinputtext id=orgtelp maxlength=20 size=20  onkeypress=\"return charAndNum(event);\"></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['alokasibiaya'] . "</td><td><select id=alokasi>" . $optalokasi . "</select></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t   <td>" . $_SESSION['lang']['noakun'] . "</td><td><select id=noakun>" . $optnoakun . "</select></td>\r\n\t\t</tr>\r\n\t\t</table>\r\n\t\t<input type=button class=mybutton value='" . $_SESSION['lang']['save'] . "' onclick=saveOrg()>\r\n\t\t<input type=button class=mybutton value='" . $_SESSION['lang']['close'] . "' onclick=\"hideById('inputorg');clearForm();\">\r\n\t\t" . CLOSE_THEME() . "\r\n\t\t</div>";
echo close_body();
Beispiel #17
0
<?php

require_once 'master_validation.php';
require_once 'lib/nangkoelib.php';
?>
<body>
    
<?php 
echo OPEN_THEME('Login History:');
$status_logout = $_SESSION['standard']['logged'] == 1 ? "Not LogOut" : "Normal";
$x = str_replace("-", "", $_SESSION['standard']['lastupdate']);
$mark = mktime(0, 0, 0, substr($x, 4, 2), substr($x, 6, 2), substr($x, 0, 4));
echo "<table>\r\n\t     <tr>\r\n\t\t <tr><td><u>Last Login</u></td><td>: " . $status_logout . "</td></tr>\r\n\t\t <tr><td><u>Last Login Date</u></td><td>: " . date('l', $mark) . "," . tanggalnormal(substr($_SESSION['standard']['lastupdate'], 0, 10)) . "</td></tr>\r\n\t\t <tr><td><u>Last Login Time</u></td><td>: " . substr($_SESSION['standard']['lastupdate'], 10, 9) . "</td></tr>\r\n\t\t <tr><td><u>Last Login IP</u></td><td>: " . $_SESSION['standard']['lastip'] . "</td></tr>\r\n\t\t <tr><td><u>Computer Name</u></td><td>: " . $_SESSION['standard']['lastcomp'] . "</td></tr> \r\n     </table>";
echo CLOSE_THEME();
?>
    
<div style='position: absolute; top:70px; left:260px; border:orange solid 1px; background-color:#CFE9FA;'>
<iframe frameborder=0 width=250px height=177px name=notifications id=notifications src=login_notifications.php<?php 
echo "?karyawanid=" . $_SESSION['standard']['userid'] . '&bahasa=' . $_SESSION['language'] . '&jabatan=' . $_SESSION['empl']['kodejabatan'] . '&lokasitugas=' . $_SESSION['empl']['lokasitugas'];
?>
>
</iframe>    
</div>      
    
    
</body>



   
    
<?php

require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<link rel=stylesheet type='text/css' href=style/orgchart.css>
<script   language=javascript1.2 src=js/menusetting.js></script>
<script   language=javascript1.2 src=js/orgChart.js></script>
<?php 
include 'master_mainMenu.php';
OPEN_BOX();
echo OPEN_THEME($_SESSION['lang']['orgchartcap'] . ':');
echo "<div class=maincontent>\r\n      <fieldset class=legend><legend>Structure:</legend>\r\n\t  </fildset>\r\n\t  ";
$country = readCountry("./config/country.lst");
$optCountry = '';
for ($x = 0; $x < count($country); $x++) {
    $optCountry .= "<option value='" . $country[$x][2] . "' >" . $country[$x][0] . "</option>";
}
//get organization type
$tipeOrg = readCountry("./config/tipeorganisasi.lst");
$optTipeOrg = '';
for ($x = 0; $x < count($tipeOrg); $x++) {
    $optTipeOrg .= "<option value='" . $tipeOrg[$x][0] . "' >" . $tipeOrg[$x][1] . "</option>";
}
//================================
//ambil alokasi biaya
$str = "select kodeorganisasi,namaorganisasi from " . $dbname . ".organisasi where\r\n      tipe='PT' order by namaorganisasi";
$res = mysql_query($str);
$optalokasi = "<option value=''></option>";
while ($bark = mysql_fetch_object($res)) {
Beispiel #19
0
//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
require_once 'config/connection.php';
echo open_body();
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
$ptkp = array();
$str = "select id,value from " . $dbname . ".sdm_ho_pph21_ptkp";
$res = mysql_query($str);
while ($bar = mysql_fetch_object($res)) {
    $ptkp[$bar->id] = $bar->value;
}
OPEN_BOX('', '<b>PPh21 FORMULA</b>');
echo "<div id=EList>";
echo OPEN_THEME('Formula Form:') . "<br>";
$hfrm[0] = 'PTKP/Tahun Form';
$hfrm[1] = 'Kontribusi/Tahun';
$hfrm[2] = 'Biaya Jabatan';
$frm[0] = "<br>PTKP S &nbsp &nbsp:Rp.<input type=text size=12 maxlength=12 id=ptkps class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='" . $ptkp['T'] . "'> ( Single )<br>\r\n         PTKP K/0 :Rp.<input type=text size=12 maxlength=12 id=ptkp0 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='" . $ptkp['0'] . "'> ( Tanpa Anak )<br>\r\n                 PTKP K/1 :Rp.<input type=text size=12 maxlength=12 id=ptkp1 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='" . $ptkp['1'] . "'> ( Anak Satu )<br>\r\n                 PTKP K/2 :Rp.<input type=text size=12 maxlength=12 id=ptkp2 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='" . $ptkp['2'] . "'> ( Anak Dua )<br>\r\n                 PTKP K/3 :Rp.<input type=text size=12 maxlength=12 id=ptkp3 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='" . $ptkp['3'] . "'> ( Anak Tiga )<br>\r\n        <br>\r\n                <button class=mybutton onclick=savePTKP()>" . $_SESSION['lang']['save'] . "</button>\r\n                ";
$frm[1] = "<fieldset><legend>[Info]</legend> \r\n                                        '<': Sampai dengan,<br>\r\n                    '>': Lebih dari,<br>\r\n                                        Jika hanya 4 level, level ke-5 di beri nilai nol.\r\n                 </fieldset><br>\r\n         Level 1:<select id=sign0><option value='<'><</option></select> Rp.<input type=text size=12 maxlength=14 id=range0 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='50,000,000'> Tarif<input type=text size=5 maxlength=4 id=percent0 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" value=5>%<br>\r\n         Level 2:<select id=sign1><option value='<'><</option></select> Rp.<input type=text size=12 maxlength=14 id=range1 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='250,000,000'> Tarif<input type=text size=5 maxlength=4 id=percent1 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" value=15>%<br>\r\n                 Level 3:<select id=sign2><option value='<'><</option></select> Rp.<input type=text size=12 maxlength=14 id=range2 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='500,000,000'> Tarif<input type=text size=5 maxlength=4 id=percent2 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" value=25>%<br>\r\n                 Level 4:<select id=sign3><option value='>'>></option><option value='<'><</option></select> Rp.<input type=text size=12 maxlength=14 id=range3 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='500,000,000'> Tarif<input type=text size=5 maxlength=4 id=percent3 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" value=30>%<br>\r\n                 Level 5:<select id=sign4><option value='>'>></option></select> Rp.<input type=text size=12 maxlength=12 id=range4 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" onblur=change_number(this) value='0'> Tarif<input type=text size=5 maxlength=4 id=percent4 class=myinputtextnumber onkeypress=\"return angka_doang(event);\" value=0>%<br>\r\n        <br>\r\n                <button class=mybutton onclick=saveKontribusi()>" . $_SESSION['lang']['save'] . "</button>\r\n                ";
$frm[2] = "<fieldset>\r\n           <legend>PPh21 Biaya Jabatan</legend>\r\n                   <fieldset><legend>Info</legend>\r\n                   Biaya jabatan dalam hal ini tidak mengacu kepada komponen gaji. Walaupun di dalam komponen gaji ada Biaya jabatan, akan dianggap sebagai komponen biasa oleh program\r\n                   kecuali diatur pada Komponen PPh21\r\n                   </fieldset>\r\n                   Porsi <input type=text id=persen  onblur=change_number(this) value=5 size=5 maxlength=4 class=myinputtextnumber onkeypress=\"return angka_doang(event);\">% <br>\r\n                   Max.<input type=text id=max  onblur=change_number(this) size=15 maxlength=15 class=myinputtextnumber onkeypress=\"return angka_doang(event);\">(Rp.)/bulan\r\n           <br><button class=mybutton onclick=savePph21ByJabatan()>" . $_SESSION['lang']['save'] . "</button>\r\n                 </fieldset>\r\n        ";
drawTab('FRM', $hfrm, $frm, 150, 600);
echo "</div>";
echo CLOSE_THEME();
CLOSE_BOX();
//+++++++++++++++++++++++++++++++++++++++++++
echo close_body();
<script type="text/javascript" src="js/bgt_alokasi_supervisi.js"></script>
<script>
dataKdvhc="<?php 
echo $_SESSION['lang']['pilihdata'];
?>
";
</script>
<?php 
$optOrg2 = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>";
$sOrg2 = "select kodeorganisasi,namaorganisasi from " . $dbname . ".organisasi where tipe in ('AFDELING','BIBITAN') and induk='" . $_SESSION['empl']['lokasitugas'] . "' order by namaorganisasi asc";
$qOrg2 = mysql_query($sOrg2) or die(mysql_error());
while ($rOrg2 = mysql_fetch_assoc($qOrg2)) {
    $optOrg2 .= "<option value=" . $rOrg2['kodeorganisasi'] . ">" . $rOrg2['namaorganisasi'] . "</option>";
}
OPEN_BOX('', "<b>" . $_SESSION['lang']['alokasisupervisi'] . "</b>");
$frm[0] .= OPEN_THEME($_SESSION['lang']['keterangan'] . ":");
$frm[0] .= "<fieldset  style='text-align:left;width:300px;'><legend><b><img src=images/info.png align=left height=25px valign=asmiddle>[Info]</b></legend>";
$frm[0] .= "<div align=justify>" . $_SESSION['lang']['infoSupervisi'] . "</div>";
$frm[0] .= "</fieldset>";
$frm[0] .= CLOSE_THEME();
$frm[1] .= "<fieldset style='width:300px'><legend>" . $_SESSION['lang']['hksupervisi'] . "</legend>";
$frm[1] .= "<table cellspacing=1 border=0>\r\n<tr><td>" . $_SESSION['lang']['budgetyear'] . "</td><td>:</td><td>\r\n<input type=text class=myinputtextnumber id=thnAnggran  name=thnAnggran maxlength=4 onkeypress=\"return angka_doang(event);\" style=width:150px; onblur=getHk() /></td></tr>\r\n<tr><td>" . $_SESSION['lang']['kodebudget'] . "</td><td>:</td><td><input type=text disabled class=myinputtext  id=kdBudget name=kdBudget  onkeypress=\"return tanpa_kutip(event);\" style=width:150px; value='SUPERVISI' /></td></tr>\r\n<tr><td>" . $_SESSION['lang']['upahsupervisi'] . "</td><td>:</td><td><input type=text  class=myinputtextnumber  id=uphSupervisi name=uphSupervisi  onkeypress=\"return angka_doang(event);\" style=width:150px; onblur=kalikan()  /></td></tr>\r\n<tr><td>" . $_SESSION['lang']['jmlhPersonel'] . "</td><td>:</td><td><input type=text  class=myinputtextnumber  id=jmlhPersonel name=jmlhPersonel  onkeypress=\"return angka_doang(event);\" style=width:150px;  onblur=kalikan() /></td></tr>\r\n<tr><td>" . $_SESSION['lang']['totalUpahSpr'] . "</td><td>:</td><td><input type=text disabled class=myinputtextnumber  id=totUpah name=totUpah  onkeypress=\"return angka_doang(event);\" style=width:150px; /></td></tr>\r\n\r\n\r\n<tr><td colspan=3>\r\n<button class=mybutton id=save_kepalaBr name=save_kepalaBr onclick=tampilKan()>" . $_SESSION['lang']['preview'] . "</button>\r\n<button class=mybutton id=btlTmbl name=btlTmbl onclick=batalBr()  >" . $_SESSION['lang']['cancel'] . "</button></td></tr></table><input type='hidden' id='hkEfektif' name='hkEfektif' />\r\n";
$frm[1] .= "</fieldset>";
$frm[1] .= "<div id=listPrevData style='display:none;'><fieldset style=width:1100px><legend>" . $_SESSION['lang']['list'] . "</legend>";
$frm[1] .= "<button class=mybutton id=saveAwal name=saveAwal onclick=saveAll(1) >" . $_SESSION['lang']['save'] . "</button>&nbsp;<button class=mybutton id=lnjutTmbl name=lnjutTmbl onclick=lanjutkan() style='display:none'>" . $_SESSION['lang']['lanjut'] . "</button>";
$frm[1] .= "<table cellpadding=1 cellspacing=1 border=0 class=sortable widht=100%>\r\n            <thead>\r\n            <tr class=rowheader>\r\n            <td>No</td>\r\n            <td>" . $_SESSION['lang']['budgetyear'] . "</td>\r\n            <td>" . $_SESSION['lang']['kodeorg'] . "</td>\r\n            <td>" . $_SESSION['lang']['kegiatan'] . "</td>\r\n            <td>" . $_SESSION['lang']['noakun'] . "</td>\r\n            <td>" . $_SESSION['lang']['volume'] . "</td>\r\n            <td>" . $_SESSION['lang']['satuan'] . "</td>\r\n            <td>" . $_SESSION['lang']['rotasi'] . "</td>\r\n            <td>" . $_SESSION['lang']['jumlahhk'] . "</td>\r\n            <td>" . $_SESSION['lang']['namakegiatan'] . "</td>\r\n            <td>" . $_SESSION['lang']['hksupervisi'] . "</td>\r\n            <td>" . $_SESSION['lang']['supervisi'] . "</td>\r\n            </tr>\r\n            </thead><tbody id=containDetail>\r\n\t\t";
$frm[1] .= "</tbody></table></fieldset></div>";
$optThn = "<option value=''>" . $_SESSION['lang']['budgetyear'] . "</option>";
$frm[2] .= "<fieldset style='width:250px;'><legend>" . $_SESSION['lang']['sebaran'] . "</legend>";
$frm[2] .= "<table cellspacing=1 border=0>\r\n<tr><td>" . $_SESSION['lang']['budgetyear'] . "</td><td>:</td><td><input type=text class=myinputtextnumber id=thnBudget style='width:100px;' onkeypress='return angka_doang(event)' maxlength=4 /></td></tr>\r\n\r\n<tr><td colspan=3>\r\n<button class=mybutton onclick=prevSebaran() id=tmblPrev>" . $_SESSION['lang']['preview'] . "</button>\r\n\r\n</td></tr>\r\n</table></fieldset><br />";
$frm[2] .= "<div id=contentSebaran style=width:100%; ></div>";
$str = "select * from " . $dbname . ".sdm_ho_component\r\n      where name like '%Angs%'";
$res = mysql_query($str, $conn);
$arr = array();
$opt = '';
while ($bar = mysql_fetch_object($res)) {
    $opt .= "<option value=" . $bar->id . ">" . $bar->name . "</option>";
    $arr[$bar->id] = $bar->name;
}
$opt3 = '';
for ($z = -12; $z <= 64; $z++) {
    $da = mktime(0, 0, 0, date('m') - $z, '1', date('Y'));
    $opt3 .= "<option value='" . date('Y-m', $da) . "'>" . date('m-Y', $da) . "</option>";
}
OPEN_BOX('', "<b>" . $_SESSION['lang']['angsuran'] . "</b>");
echo "<div id=EList>";
echo OPEN_THEME($_SESSION['lang']['angsuran']);
if ($_SESSION['language'] == 'EN') {
    echo "<br>(Display installment on:<select id=bln onchange=showAngsuran(this.options[this.selectedIndex].value)><option value=''></option>" . $opt3 . "</select>)\r\n                     || (Display installment which:<select id=lunas  onchange=showAngsuran(this.options[this.selectedIndex].value)><option value=''></option>\r\n                         <option value=lunas>Settled</option>\r\n                         <option value=blmlunas>Not yet settled</option>\r\n                         <option value=active>Active</option>\r\n                         <option value=notactive>Not Active</option></select>)";
    echo "<hr><br>Below installment that :<b><span id=caption>not yet settled</span></b>\r\n                     <image src=images/pdf.jpg class=resicon title='PDF' onclick=angsuranPDF(event)>\r\n                         <input type=hidden id=val value=''>\r\n                         ";
} else {
    echo "<br>(Tampilkan Angsuran Bulan:<select id=bln onchange=showAngsuran(this.options[this.selectedIndex].value)><option value=''></option>" . $opt3 . "</select>)\r\n                     || (Tampilkan Angsuran Yang<select id=lunas  onchange=showAngsuran(this.options[this.selectedIndex].value)><option value=''></option>\r\n                         <option value=lunas>Sudah Lunas</option>\r\n                         <option value=blmlunas>Belum Lunas</option>\r\n                         <option value=active>Active</option>\r\n                         <option value=notactive>Not Active</option></select>)\t \r\n                         ";
    echo "<hr><br>Berikut Angsuran Karyawan :<b><span id=caption>Belum Lunas</span></b>\r\n                     <image src=images/pdf.jpg class=resicon title='PDF' onclick=angsuranPDF(event)>\r\n                         <input type=hidden id=val value=''>\r\n                         ";
}
if ($_SESSION['empl']['tipelokasitugas'] == 'HOLDING') {
    $str = "select a.*,u.namakaryawan from " . $dbname . ".sdm_angsuran a, " . $dbname . ".datakaryawan u\r\n                                      where a.karyawanid=u.karyawanid and\r\n                                          ((u.tanggalkeluar = '0000-00-00' or u.tanggalkeluar > '" . date("Y-m-d") . "') and u.tipekaryawan in ('0','7','8') or u.lokasitugas='" . $_SESSION['empl']['lokasitugas'] . "')\r\n                                      order by namakaryawan";
} else {
    $str = "select a.*,u.namakaryawan from " . $dbname . ".sdm_angsuran a, " . $dbname . ".datakaryawan u\r\n                                      where a.karyawanid=u.karyawanid and\r\n                                          tipekaryawan!=0 and LEFT(lokasitugas,4)='" . substr($_SESSION['empl']['lokasitugas'], 0, 4) . "'\r\n                                      order by namakaryawan";
}
echo "<table class=sortable width=900px border=0 cellspacing=1>\r\n                      <thead>\r\n                          <tr class=rowheader>\r\n                            <td align=center>No.</td>\r\n                                <td align=center>" . $_SESSION['lang']['karyawanid'] . "</td>\r\n                            <td align=center>" . $_SESSION['lang']['namakaryawan'] . "</td>\r\n                                <td align=center>" . $_SESSION['lang']['jennisangsuran'] . "</td>\r\n                                <td align=center>" . $_SESSION['lang']['total'] . " " . $_SESSION['lang']['nilaihutang'] . "<br>(Rp.)</td>\r\n                                <td align=center>" . $_SESSION['lang']['bulanawal'] . "</td>\r\n                                <td align=center>" . $_SESSION['lang']['sampai'] . "</td>\r\n                                <td align=center>" . $_SESSION['lang']['jumlah'] . "<br>(" . $_SESSION['lang']['bulan'] . ")</td>\r\n                                <td align=center>" . $_SESSION['lang']['potongan'] . "/" . $_SESSION['lang']['bulan'] . ".<br>(Rp.)</td>\t\t\t\t\r\n                                <td align=center>" . $_SESSION['lang']['status'] . "</td>\r\n                          </tr> \r\n                          </thead>\r\n                          <tbody id=tbody>";
$res = mysql_query($str, $conn);
echo mysql_error($conn);
Beispiel #22
0
                echo "</li>";
            }
            echo "</div>\r\n\t\t\t\t\t\t\t\t\t      </ul>";
            //========================================================
            echo "</li>";
        }
        echo "</div>\r\n\t\t\t\t\t\t      </ul>";
        //========================================================
        echo "</li>";
    }
    echo "</div>\t\t\t \r\n\t\t\t      </ul>";
    //========================================================
    echo "</li>";
}
echo "</ul></div>";
echo "</div>";
//*****************************
//menu order editor
echo "<div id=ordereditor style='display:none;position:absolute;'>";
echo OPEN_THEME('' . $_SESSION['lang']['menuordereditor'] . ':');
echo "<div id=ordereditorcontent></div>";
echo CLOSE_THEME();
echo "</div>";
//end menuOrder
//==================================================================================================================================================================
echo "<hr><center><input type=button class=mybutton value=" . $_SESSION['lang']['apply'] . " onclick=window.location.reload()><hr></center>\r\n      <fieldset><legend>" . $_SESSION['lang']['options'] . ":</legend>";
echo "<img src=images/menu/star.png> <span class=elink onclick=showMenuOrder() title='Click to manage menu order' id=optionController>Order Arrangement</span><br>";
echo "</fieldset>";
echo CLOSE_THEME();
CLOSE_BOX();
echo close_body();
Beispiel #23
0
<?php

require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>

<script language=javascript1.2 src=js/usersetting.js></script>
<?php 
include 'master_mainMenu.php';
$str = "select karyawanid,namakaryawan from " . $dbname . ".datakaryawan order by namakaryawan";
$res = mysql_query($str);
$opt = '';
while ($bar = mysql_fetch_object($res)) {
    $opt .= "<option value='" . $bar->karyawanid . "'>" . $bar->namakaryawan . "</option>";
}
OPEN_BOX();
echo OPEN_THEME($_SESSION['lang']['resetuserpassword'] . ':');
echo "<fieldset>\r\n     <legend><img src='images/vista_icons_03.png' height=60px style='vertical-align:middle;'><b>" . $_SESSION['lang']['resetuserpassword'] . ":</b></legend> \r\n\t  " . $_SESSION['lang']['finduser'] . ":<input type=text id=uname class=myinputtext onkeypress=\"return validat1(event);\" size=20 maxlength=30 title='Enter part of username then click Find'>\r\n\t <input type=button class=mybutton value='" . $_SESSION['lang']['find'] . "' title='Click to process' onclick=getUserForResetP()>\r\n\t <br>\r\n\t </fieldset><br><hr>\r\n\t <fieldset>\r\n\t <legend>Result</legend>\r\n\t <div id=result></div>\r\n\t </fieldset>\r\n\t <div id=temp></div>\r\n\t ";
echo CLOSE_THEME();
//menu order editor
echo "<div id=resetter style='display:none;position:absolute;'>";
echo OPEN_THEME($_SESSION['lang']['resetuserpassword'] . ':');
echo "<input type=hidden value='' id=uid>\r\n       <center></center>\r\n       <div id=resetwin>\r\n\t   <table>\r\n\t   <tr><td><b>Account</b></td><td>:<b><a id=un></a></b></td></tr>\r\n\t   <tr>\r\n\t    <td>" . $_SESSION['lang']['newpassword'] . "</td><td>:<input class=myinputtext type=password id=newpwd1 size=15 onkeypress=\"return tanpa_kutip(event);\"><img src='images/obligatory.gif' style='height:15px;vertical-align:middle;' title='Required Element'></td></tr>\r\n        <tr><td>Re-Type " . $_SESSION['lang']['newpassword'] . "</td><td>:<input class=myinputtext type=password id=newpwd2 size=15 onkeypress=\"return tanpa_kutip(event);\"><img src='images/obligatory.gif' style='height:15px;vertical-align:middle;' title='Required Element'></td></tr>\r\n\t    <tr><td colspan=2 align=right><input style='vertical-align:middle;' type=checkbox id=sendmail>" . $_SESSION['lang']['sendmailtouser'] . ".</td></tr>\r\n\t\t<tr><td colspan=2 align=right>\r\n\t\t<input type=button class=mybutton value='" . $_SESSION['lang']['close'] . "' onclick=hideSetter()>\r\n\t\t<input type=button class=mybutton value='" . $_SESSION['lang']['save'] . "' onclick=saveNewPwd()></td></tr>\r\n\t   </table>\r\n\t   </div>";
echo CLOSE_THEME();
echo "</div>";
CLOSE_BOX();
echo close_body();
Beispiel #24
0
        }
        echo "</div>";
        echo "<li class=mmgr>\t\r\n                        <img id='" . $bar->kodestruktur . "_new' class=elink title='Create Child' src='images/plus.png'" . "style='width:16px;height:16px;cursor:pointer' onclick=\"javascript:orgVal='" . $bar->kodestruktur . "';clos=2;activeOrg='" . $bar->kodestruktur . "_new';setpos('inputorg',event);clearForm();\">\r\n                        </li>";
        echo "</ul>";
        #			<a id='".$bar->kodeorganisasi."_new' class=elink title='Create Child'  onclick=\"javascript:orgVal='".$bar->kodeorganisasi."';clos=2;activeOrg='".$bar->kodeorganisasi."_new';setpos('inputorg',event);clearForm();\">New<a>
        #$headControl = "<img id='addHeaderId' title='Tambah Header' src='images/plus.png'".
        #  "style='width:20px;height:20px;cursor:pointer' onclick='addHeader(event)' />&nbsp;";
        //============================================
        echo "</li>";
    }
} else {
    echo "<li class=mmgr>\t\r\n                <a id=HQ class=elink title='Create New HQ'  onclick=\"javascript:orgVal='';clos=1;activeOrg='HQ';setpos('inputorg',event);clearForm();\">New Entity<a>\r\n                </li>";
}
echo "</ul>";
echo "</div>";
echo CLOSE_THEME();
CLOSE_BOX();
$optkary = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>";
$sdata = "select distinct karyawanid,namakaryawan from " . $dbname . ".datakaryawan \r\n        where (tanggalkeluar = '0000-00-00' or tanggalkeluar > '" . date("Y-m-d") . "') and tipekaryawan in ('0','7','8') order by namakaryawan asc";
$qdata = mysql_query($sdata) or die(mysql_error($conn));
while ($rdata = mysql_fetch_assoc($qdata)) {
    $optkary .= "<option value='" . $rdata['karyawanid'] . "'>" . $rdata['namakaryawan'] . "</option>";
}
$optjbtn = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>";
$sjbtn = "select distinct * from " . $dbname . ".sdm_5jabatan order by namajabatan asc";
$qjbnt = mysql_query($sjbtn) or die(mysql_error($conn));
while ($rjbtn = mysql_fetch_assoc($qjbnt)) {
    $optjbtn .= "<option value='" . $rjbtn['kodejabatan'] . "'>" . $rjbtn['namajabatan'] . "</option>";
}
echo "<div id=inputorg style='display:none;position:absolute'>" . OPEN_THEME($_SESSION['lang']['orgentry']) . "\r\n                <table>\r\n                <tr>\r\n                   <td>" . $_SESSION['lang']['kodestruktur'] . "</td><td><input type=text class=myinputtext id=kdStruktur maxlength=10 style='width:150px;' onkeypress=\"return charAndNum(event);\"></td>\r\n                </tr>\r\n                <tr>\r\n                   <td>" . $_SESSION['lang']['namakaryawan'] . "</td>\r\n                   <td><select id=karyId style='width:150px;'>" . $optkary . "</select></td>\r\n                </tr>\t\r\n                <tr>\r\n                   <td>" . $_SESSION['lang']['kodejabatan'] . "</td>\r\n                   <td><select id=kdJbtn style='width:150px;'>" . $optjbtn . "</select></td>\r\n                </tr>\r\n                <tr>\r\n                   <td>" . $_SESSION['lang']['email'] . "</td>\r\n                   <td><input type=text class=myinputtext id=maildt style='width:150px;' onkeypress=\"return tanpa_kutip(event);\"></td>\r\n                </tr>\r\n                <tr>\r\n                   <td>" . $_SESSION['lang']['detail'] . "</td><td><select id=detailDt><option value=1>" . $_SESSION['lang']['yes'] . "</option><option value=0>" . $_SESSION['lang']['no'] . "</option></select></td>\r\n                </tr>\t\t\r\n                <tr>\r\n                   <td>" . $_SESSION['lang']['pt'] . "</td><td><select id=alokasi style='width:150px;'>" . $optalokasi . "</select></td>\r\n                </tr>\r\n\r\n                </table>\r\n                <input type=button class=mybutton value='" . $_SESSION['lang']['save'] . "' onclick=saveOrg()>\r\n                <input type=button class=mybutton value='" . $_SESSION['lang']['close'] . "' onclick=\"hideById('inputorg');clearForm();\">\r\n                " . CLOSE_THEME() . "\r\n                </div>";
echo close_body();
<?php

//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
//+++++++++++++++++++++++++++++++++++++++++++++
//list employee
OPEN_BOX('', '<b>PAYROLL ENTRY:</b>');
echo "<div id=EList>";
echo OPEN_THEME('Create monthly payroll: PERIOD <font color=red>' . substr($_SESSION['pyperiode'], 5, 2) . "/" . substr($_SESSION['pyperiode'], 0, 4)) . "</font>";
//cek if new employee exist
$prestr = "select distinct karyawanid from " . $dbname . ".sdm_ho_employee order by karyawanid";
$preres = mysql_query($prestr, $conn);
$arrid = '';
while ($prebar = mysql_fetch_object($preres)) {
    if ($arrid == '') {
        $arrid .= $prebar->karyawanid;
    } else {
        $arrid .= "," . $prebar->karyawanid;
    }
}
if ($arrid == '') {
    $arrid = "'null'";
}
$str = "select karyawanid,namakaryawan,statuspajak,tanggalkeluar,npwp from " . $dbname . ".datakaryawan\r\n\t\t       where karyawanid not in(" . $arrid . ") and alokasi=1";
Beispiel #26
0
<?php

//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=javascript1.2 src=js/sdm_payrollHO.js></script>
<link rel=stylesheet type=text/css href=style/payroll.css>
<?php 
include 'master_mainMenu.php';
//+++++++++++++++++++++++++++++++++++++++++++++
OPEN_BOX('', '<b>PPh21 REPORT</b>');
echo "<div id=EList>";
echo OPEN_THEME('PPh21 Report Form:');
$optp = "<option value='" . date('Y-m') . "'>" . date('m-Y') . "</option>";
for ($x = -1; $x <= 24; $x++) {
    $d = mktime(0, 0, 0, date('m') - $x, 15, date('Y'));
    $optp .= "<option value='" . date('Y-m', $d) . "'>" . date('m-Y', $d) . "</option>";
}
$hfrm[0] = 'PPh21 Bulanan';
$hfrm[1] = 'PPh21 Tahunan';
$hfrm[2] = 'Option';
$frm[0] = "PPh21 Bulanan: Periode\r\n         <select id=bulanan>" . $optp . "</select> <button onclick=showPPh21Monthly() class=mybutton>Show</button>\r\n\t\t <img src=images/excel.jpg height=17px style='cursor:pointer;' onclick=convertPPh21Excel('bulan') title='Convert to Ms.Excel'>\r\n\t\t <div style='display:none;'>\r\n\t\t <iframe id=ifrm></iframe>\r\n\t\t </div>\t         \r\n\t\t <table class=sortable border=0 cellspacing=1 width=100%>\r\n\t\t <thead>\r\n\t\t   <tr class=rowheader>\r\n\t\t    <td class=firsttd>No.</td>\r\n\t\t\t<td>No.Karyawan</td>\r\n\t\t\t<td>Nama.Karyawan</td>\r\n\t\t\t<td>Status</td>\r\n\t\t\t<td>N.P.W.P</td>\r\n\t\t\t<td>Periode</td>\r\n\t\t\t<td>Sumber</td>\r\n\t\t\t<td>PPh21</td>\r\n\t\t   </tr>\r\n\t\t </thead><tbody id=tbody>\r\n\t\t";
$frm[0] .= "</tbody>\r\n          <tfoot>\r\n\t\t  <tr><td colspan=8>Jika Status pajak tidak sesuai atau kosong maka akan dikenakan status K/3.\r\n\t\t  </tr>\r\n\t\t  </tfoot>\r\n\t\t  </table>";
$frm[1] = "PPh21 Tahunan:\r\n        Tahun<select id=tahun>\r\n\t\t      <option value='" . (date('Y') - 0) . "'>" . (date('Y') - 0) . "</option>\r\n\t\t      <option value='" . (date('Y') + 1) . "'>" . (date('Y') + 1) . "</option>\r\n\t\t\t  <option value='" . (date('Y') - 1) . "'>" . (date('Y') - 1) . "</option>\r\n\t\t\t  <option value='" . (date('Y') - 2) . "'>" . (date('Y') - 2) . "</option>\r\n\t\t\t  <option value='" . (date('Y') - 3) . "'>" . (date('Y') - 3) . "</option>\r\n\t\t\t  <option value='" . (date('Y') - 4) . "'>" . (date('Y') - 4) . "</option>\r\n\t\t\t  <option value='" . (date('Y') - 5) . "'>" . (date('Y') - 5) . "</option>\r\n\t\t     </select> <button onclick=showPPh21Yearly() class=mybutton>Show</button>\r\n\t\t <img src=images/excel.jpg height=17px style='cursor:pointer;' onclick=convertPPh21Excel('tahun') title='Convert to Ms.Excel'>\r\n\t\t <div style='display:none;'>\r\n\t\t <iframe id=ifrm1></iframe>\r\n\t\t </div>\t         \r\n\t\t <table class=sortable border=0 cellspacing=1 width=100%>\r\n\t\t <thead>\r\n\t\t   <tr class=rowheader>\r\n\t\t    <td class=firsttd>No.</td>\r\n\t\t\t<td>No.Karyawan</td>\r\n\t\t\t<td>Nama.Karyawan</td>\r\n\t\t\t<td>Status</td>\r\n\t\t\t<td>N.P.W.P</td>\r\n\t\t\t<td>Tahun</td>\r\n\t\t\t<td>Sumber</td>\r\n\t\t\t<td>PPh21</td>\r\n\t\t   </tr>\r\n\t\t </thead><tbody id=tbodyYear>\r\n\t\t";
$frm[1] .= "</tbody>\r\n          <tfoot>\r\n\t\t  <tr><td colspan=8>Jika Status pajak tidak sesuai atau kosong maka akan dikenakan status K/3.\r\n\t\t  </tr>\t\t  \r\n\t\t  </tfoot>\r\n\t\t  </table>";
$frm[2] = "\r\n         <fieldset><legend><b>Sertakan Jamsostek tanggungan perusahaan ?</b></legend>\r\n         <input type=checkbox id=jmsperusahaan value=jmsperusahaan checked>\r\n\t\t (Ya/Tidak) Jamsostek tanggungan perusahaan<br>\r\n\t\t </fieldset>\r\n         <fieldset><legend><b>Jenis pendapatan yang disertakan</b></legend>\r\n\t\t Berlaku pada PPh21 tahunan(Tidak berlaku pada PPh21 Bulanan)<br>\r\n         <input type=checkbox id=regular value=regular checked>Gaji Regular<br>\r\n\t\t <input type=checkbox id=thr value=thr checked>Tunjangan Hari Raya (THR)<br>\r\n\t\t <input type=checkbox id=jaspro value=jaspro checked>Jasa produksi (Bonoes)<br>\r\n\t\t </fieldset> \r\n        ";
drawTab('FRM', $hfrm, $frm, 150, 800);
echo "</div>";
echo CLOSE_THEME();
Beispiel #27
0
}
$str = "select * from " . $dbname . ".sdm_ho_hr_jms_porsi";
$res = mysql_query($str, $conn);
//default
$karyawan = 0.02;
$perusahaan = 4.54;
while ($bar = mysql_fetch_object($res)) {
    if ($bar->id == 'karyawan') {
        $karyawan = $bar->value / 100;
    } else {
        $perusahaan = $bar->value / 100;
    }
}
OPEN_BOX('', '<b>JAMSOSTEK REPORT</b>');
echo "<div id=EList>";
echo OPEN_THEME('JAMSOSTEK:');
echo "<br>\r\n\t\t      Periode:<select id=bln onchange=getJmsvalue(this.options[this.selectedIndex].value)><option value=''></option>" . $opt3 . "</select>\r\n\t\t\t ";
$str = "select e.name,e.startdate,e.nojms,d.value,d.karyawanid,d.periode from \r\n\t\t     " . $dbname . ".sdm_ho_employee e, " . $dbname . ".sdm_ho_detailmonthly d\r\n\t\t      where e.karyawanid=d.karyawanid and e.operator='" . $_SESSION['standard']['username'] . "'\r\n\t\t\t  and d.periode='" . date('Y-m') . "' and d.component=3 \r\n\t\t      order by name";
echo "<hr><br>Laporan Jamsostek Bulan:<b><span id=caption>" . date('m-Y') . "</span></b>\r\n\t\t\t  <img src=images/excel.jpg height=17px style='cursor:pointer;' onclick=convertJmsExcel()>\r\n\t\t\t  <div style='display:none;'>\r\n\t\t\t  <iframe id=ifrm></iframe>\r\n\t\t\t  </div>\r\n\t\t\t  ";
echo "<table class=sortable width=900px border=0 cellspacing=1>\r\n\t\t      <thead>\r\n\t\t\t  <tr class=rowheader>\r\n\t\t\t    <td align=center>No.</td>\r\n\t\t\t\t<td align=center>No.Karyawan</td>\r\n\t\t\t    <td align=center>Nama.Karyawan</td>\r\n\t\t\t\t<td align=center>No.JMS</td>\r\n\t\t\t\t<td align=center>Tgl.Masuk</td>\r\n\t\t\t\t<td align=center>Periode</td>\r\n\t\t\t\t<td align=center>Beban.Karyawan<br>(Rp.)</td>\r\n\t\t\t\t<td align=center>Beban.Perusahaan<br>(Rp.)</td>\r\n\t\t\t\t<td align=center>Total</td>\r\n\t\t\t\t<td align=center>GJ.Kotor</td>\r\n\t\t\t  </tr> \r\n\t\t\t  </thead>\r\n\t\t\t  <tbody id=tbody>";
$res = mysql_query($str, $conn);
$no = 0;
$ttl = 0;
//grand total
$tvp = 0;
//total perusahaan
$tkar = 0;
//total karyawan
$total = 0;
//total per karyawan
while ($bar = mysql_fetch_object($res)) {
Beispiel #28
0
<?php

require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=javascript1.2 src=js/usersetting.js></script>
<?php 
include 'master_mainMenu.php';
/*
$str="select userid,name from ".$dbname.".user_empl order by name";
$res=mysql_query($str);
   $opt='';
while($bar=mysql_fetch_object($res))
{
	$opt.="<option value='".$bar->userid."'>".$bar->name."</option>";
}
*/
OPEN_BOX();
echo OPEN_THEME('Active/Deactive/Delete Users:');
echo "<br><fieldset>\r\n     <legend><img src='images/useraccounts.png' height=60px style='vertical-align:middle;'><b>Activate/Deactivate/Delete Users Account:</b></legend> \r\n\t  Find User:<input type=text id=uname class=myinputtext onkeypress=\"return validat(event);\" size=20 maxlength=30 title='Enter part of username then click Find'>\r\n\t <input type=button class=mybutton value=Find title='Click to process' onclick=getUserForActivation()>\r\n\t <br>\r\n\t </fieldset><br><hr>\r\n\t <fieldset>\r\n\t <legend>Result</legend>\r\n\t <div id=result></div>\r\n\t </fieldset>\r\n\t <div id=temp></div>\r\n\t ";
echo CLOSE_THEME();
CLOSE_BOX();
echo close_body();
<?php

//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>

<script language=javascript1.2 src='js/menusetting.js'></script>
<?php 
include 'master_mainMenu.php';
/*ambil pengguna */
$str = "select a.namauser,b.namakaryawan,b.lokasitugas,c.namajabatan,d.nama from " . $dbname . ".user a\r\n      left join " . $dbname . ".datakaryawan b on a.karyawanid=b.karyawanid\r\n      left join " . $dbname . ".sdm_5jabatan c on b.kodejabatan=c.kodejabatan\r\n      left join " . $dbname . ".sdm_5departemen d on b.bagian=d.kode";
$res = mysql_query($str);
$optPengguna = "";
while ($bar = mysql_fetch_object($res)) {
    $optPengguna .= "<option value='" . $bar->namauser . "'>" . $bar->namauser . "-" . $bar->lokasitugas . "</option>";
}
OPEN_BOX();
echo OPEN_THEME($_SESSION['lang']['privconf'] . ':');
echo "<fieldset>\r\n     <legend><img src='images/vista_icons_03.png' height=60px style='vertical-align:middle;'>" . $_SESSION['lang']['newuser'] . "</legend> \r\n\t <table>\r\n\t <tr>\r\n\t <td>" . $_SESSION['lang']['newuser'] . "</td><td>:<select id=pengguna>" . $optPengguna . "</select></td></tr>\r\n\t <tr><td>" . $_SESSION['lang']['copyfrom'] . "</td><td>:<select id=dari>" . $optPengguna . "</select></td></tr>\r\n\t <tr><td colspan=2 align=right><button class=mybutton onclick=copyPrivileges()>" . $_SESSION['lang']['proses'] . "</button></td></tr>\r\n\t </tr>\r\n\t </table>\r\n\t </fieldset>\r\n\t ";
echo CLOSE_THEME();
echo "<div id=container></div>";
CLOSE_BOX();
echo close_body();
Beispiel #30
0
<?php

//@Copy nangkoelframework
require_once 'master_validation.php';
include 'lib/nangkoelib.php';
echo open_body();
?>
<script language=javascript1.2 src=js/sdm_rumahsakit.js></script>
<?php 
include 'master_mainMenu.php';
OPEN_BOX('', '<b>' . $_SESSION['lang']['diagnosabaru'] . '</b>');
$strKlDiag = "select kodekelompok,deskripsi from " . $dbname . ".sdm_5kldiagnosa order by deskripsi";
$resKlDiag = mysql_query($strKlDiag);
while ($barKlDiag = mysql_fetch_object($resKlDiag)) {
    $optKlDiagnosa .= "<option value='" . $barKlDiag->kodekelompok . "'>" . $barKlDiag->kodekelompok . "-" . $barKlDiag->deskripsi . "</option>";
}
echo OPEN_THEME($_SESSION['lang']['formdiagnosa']);
echo "<table>\r\n\t\t<tr>\r\n\t\t\t<td>" . $_SESSION['lang']['kelompokdiagnosa'] . "</td>\r\n\t\t\t<td>:</td>\r\n\t\t\t<td><select id='kodekelompok'>" . $optKlDiagnosa . "</select></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>" . $_SESSION['lang']['id'] . "</td>\r\n\t\t\t<td>:</td>\r\n\t\t\t<td><input type=text class=myinputtext id=idx disabled size=3></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>" . $_SESSION['lang']['nama'] . "</td>\r\n\t\t\t<td>:</td>\r\n\t\t\t<td><input type=text class=myinputtext id=name maxlength=100 size=45 onkeypress=\"return tanpa_kutip(event);\"></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td colspan=2></td>\r\n\t\t\t<td><button class=mybutton onclick=saveDiagnosa()>" . $_SESSION['lang']['save'] . "</button></td>\r\n\t\t</tr>\r\n\t</table>";
echo CLOSE_THEME();
CLOSE_BOX();
OPEN_BOX('', $_SESSION['lang']['list'] . ':');
$str = "select * from " . $dbname . ".sdm_5diagnosa order by diagnosa";
$res = mysql_query($str);
echo "<div style='wicth=100%; height:300px;overflow:scroll;'>\r\n     <table class=sortable cellspacing=1 border=0>\r\n     <thead>\r\n\t   <tr class=rowheader>\r\n\t\t<td>" . $_SESSION['lang']['id'] . "</td>\r\n\t\t<td>" . $_SESSION['lang']['kelompokdiagnosa'] . "</td>\r\n\t\t<td>" . $_SESSION['lang']['nama'] . "</td>\r\n\t\t<td>Edit</td></tr>\r\n\t </tr>\r\n\t </thead>\r\n\t <tbody id=tbody>";
while ($bar = mysql_fetch_object($res)) {
    echo "<tr class=rowcontent>\r\n\t      <td class=firsttd>" . $bar->id . "</td>\r\n\t\t  <td>" . $bar->kodekelompok . "</td>\r\n\t\t  <td>" . $bar->diagnosa . "</td>\r\n\t\t  <td><img src=images/edit.png align=middle style='cursor:pointer;' onclick=\"editDiagnosa('" . $bar->id . "','" . $bar->kodekelompok . "','" . $bar->diagnosa . "');\" height=17px align=right title='Edit data for " . $bar->diagnosa . "'></td>\r\n\t     </tr>";
}
echo "</tbody>\r\n      <tfoot>\r\n\t  </tfoot>\r\n\t  </table>\r\n\t  </div>";
CLOSE_BOX();
echo close_body();