first commit
This commit is contained in:
111
keuangan/setup/ParentChild.php
Normal file
111
keuangan/setup/ParentChild.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
class ParentChild {
|
||||
|
||||
/*
|
||||
* Class Name : ParentChild
|
||||
* Purpose : This class is made for populating a tree/list of items based on the parent child relationships among them with unlimited level of hierarchy .
|
||||
* Author : Mrinal Nandi <nandi.mrinal2005@gmail.com> - mrinal.0fees.net
|
||||
* Copyright (c) Mrinal Nandi
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this script/software , to deal in the Script/Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Script/Software, and to permit persons to whom the Script/Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice, the information about the author and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Script/Software.
|
||||
*
|
||||
* THE SCRIPT/SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SCRIPT/SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SCRIPT/SOFTWARE.
|
||||
*
|
||||
*/
|
||||
|
||||
//properties which hold database and table related information : start
|
||||
var $db_host;
|
||||
var $db_user;
|
||||
var $db_pass;
|
||||
var $db_database;
|
||||
var $db_table;
|
||||
|
||||
|
||||
var $item_identifier_field_name; //may be the primary key of the table : as decided by the db designer
|
||||
var $parent_identifier_field_name; //the fileld name in the table which holds the value of the item_identifier_field_name any item's parent : as decided by the db designer
|
||||
var $item_list_field_name; //field name in the table whose value will be shown in the list or tree (like name or any id etc.) : as choosen by the programmer
|
||||
|
||||
var $extra_condition=""; //if any extra condition should be added with the query : as desided by the programmer
|
||||
var $order_by_phrase=""; //if any order by phrase should be added with the query : as desided by the programmer
|
||||
//properties which hold database and table related information : end
|
||||
|
||||
|
||||
|
||||
var $level_identifier = ""; //no. of level of any item as per the generated tree : it will appear number of level times before the item in the list/tree
|
||||
var $item_pointer = "";
|
||||
|
||||
|
||||
|
||||
var $all_childs = array(); //contains the entire tree or list starting from a given root element
|
||||
|
||||
var $item_path = array(); //contains the total path of a given element/node(the list of elements starting from the top level root node to the given element/node)
|
||||
|
||||
public function getAllChilds($Parent_ID, $level_identifier="", $start=true) { // get all the childs of all the levels under a parent as a tree
|
||||
$immediate_childs=$this->getImmediateChilds($Parent_ID, $this->extra_condition, $this->order_by_phrase);
|
||||
if(count($immediate_childs)) {
|
||||
foreach($immediate_childs as $chld) {
|
||||
$chld[$this->item_list_field_name]=$level_identifier.$this->item_pointer.$chld[$this->item_list_field_name];
|
||||
array_push($this->all_childs,$chld);
|
||||
$this->getAllChilds($chld[$this->item_identifier_field_name], ($level_identifier.$this->level_identifier), false);
|
||||
}
|
||||
}
|
||||
if($start) {
|
||||
return $this->all_childs;
|
||||
}
|
||||
}
|
||||
|
||||
private function getImmediateChilds($parent_identifier_field_value, $extra_condition="", $order_by_phrase="") { // get only the direct/immediate childs under a parent
|
||||
$sql="SELECT * FROM `".$this->db_table."` WHERE ifnull(".$this->parent_identifier_field_name.",'-99')='".$parent_identifier_field_value."' ".$extra_condition." ".$order_by_phrase;
|
||||
$res = $db->query($sql);
|
||||
$childs=array();
|
||||
foreach($res->fetchAll() as $val) {
|
||||
array_push($childs,$val);
|
||||
}
|
||||
return $childs;
|
||||
}
|
||||
|
||||
public function getItemPath($item_id,$start=true){ //returns the total path of a given item/node(the list of elements starting from the top level root node to the given item/node)
|
||||
|
||||
if($item_id != 0) {
|
||||
$sql="SELECT * FROM `".$this->db_table."` WHERE `".$this->item_identifier_field_name."`='".$item_id."' ";
|
||||
$res = $db->query($sql);
|
||||
$itemdata = $res->fetchAll()[0];
|
||||
array_push($this->item_path,$itemdata);
|
||||
|
||||
if($itemdata[$this->parent_identifier_field_name]!=0) {
|
||||
$this->item_path=$this->getItemPath($itemdata[$this->parent_identifier_field_name],false);
|
||||
}
|
||||
if ($start) {
|
||||
$this->item_path=array_reverse($this->item_path);
|
||||
}
|
||||
}
|
||||
return $this->item_path;
|
||||
|
||||
}
|
||||
|
||||
public function db_connect(){
|
||||
$conn = mysql_connect($this->db_host, $this->db_user, $this->db_pass);
|
||||
if($conn) {
|
||||
mysql_select_db($this->db_database, $conn);
|
||||
}
|
||||
return $conn;
|
||||
}
|
||||
|
||||
public function db_disconnect(){
|
||||
mysqli_close();
|
||||
}
|
||||
}
|
||||
?>
|
||||
154
keuangan/setup/arus_kas.php
Normal file
154
keuangan/setup/arus_kas.php
Normal file
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
ini_set('display_errors',FALSE);
|
||||
?>
|
||||
|
||||
<link href="keuangan/doc/stylesheets/cell.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link href="keuangan/css/thickbox.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="keuangan/doc/javascripts/jquery.js"></script>
|
||||
<script language="javascript" src="keuangan/javascript/thickbox.js"></script>
|
||||
<script language="javascript" src="keuangan/javascript/jquery.form.js"></script>
|
||||
|
||||
|
||||
|
||||
<SCRIPT language=JavaScript type=text/javascript>
|
||||
function actionPic(modus,id,name) {
|
||||
if (modus=='delete'){
|
||||
$(document).ready(function(){
|
||||
if ( confirm ('Yakin hapus '+name+' ?')==true){
|
||||
$.post('keuangan/setup/delete_kas.php',{id: id},function(response){
|
||||
var x=response.trim(' ');
|
||||
if(x == 'ok'){
|
||||
$('tr#node-'+id).hide();
|
||||
//alert('Delete sukses');
|
||||
}
|
||||
//else alert('Delete gagal');
|
||||
dataType: 'json' });
|
||||
}
|
||||
else {
|
||||
alert("batal");
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</SCRIPT>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="keuangan/doc/javascripts/jquery.ui.js"></script>
|
||||
|
||||
|
||||
<!-- BEGIN Plugin Code -->
|
||||
|
||||
<link href="keuangan/src/stylesheets/jquery.treeTable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="keuangan/src/javascripts/jquery.treeTable.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$(".example").treeTable({
|
||||
initialState: "expanded"
|
||||
});
|
||||
|
||||
// Drag & Drop Example Code
|
||||
$("#dnd-example .file, #dnd-example .folder").draggable({
|
||||
helper: "clone",
|
||||
opacity: .75,
|
||||
refreshPositions: true,
|
||||
revert: "invalid",
|
||||
revertDuration: 300,
|
||||
scroll: true
|
||||
});
|
||||
|
||||
$("#dnd-example .folder").each(function() {
|
||||
$($(this).parents("tr")[0]).droppable({
|
||||
accept: ".file, .folder",
|
||||
drop: function(e, ui) {
|
||||
$($(ui.draggable).parents("tr")[0]).appendBranchTo(this);
|
||||
|
||||
// Issue a POST call to send the new location (this) of the
|
||||
// node (ui.draggable) to the server.
|
||||
$.post("move.php", {id: $(ui.draggable).parents("tr")[0].id, to: this.id});
|
||||
},
|
||||
hoverClass: "accept",
|
||||
over: function(e, ui) {
|
||||
if(this.id != $(ui.draggable.parents("tr.parent")[0]).id && !$(this).is(".expanded")) {
|
||||
$(this).expand();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Make visible that a row is clicked
|
||||
$("table#dnd-example tbody tr").mousedown(function() {
|
||||
$("tr.selected").removeClass("selected"); // Deselect currently selected rows
|
||||
$(this).addClass("selected");
|
||||
});
|
||||
|
||||
// Make sure row is selected when span is clicked
|
||||
$("table#dnd-example tbody tr span").mousedown(function() {
|
||||
$($(this).parents("tr")[0]).trigger("mousedown");
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<?php
|
||||
|
||||
require_once("core/main.php");
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
require_once("lak.php");
|
||||
$objSetupLAK = new lak();
|
||||
$objSetupLAK->db_host=$hostname;
|
||||
$objSetupLAK->db_user=$username;
|
||||
$objSetupLAK->db_pass=$password;
|
||||
$objSetupLAK->db_database=$database;
|
||||
|
||||
if(!$objSetupLAK->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
||||
<table class="example" id="dnd-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nama Akun</th>
|
||||
<th>Id</th>
|
||||
<th>Parent Id</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$allFields=$objSetupLAK->getAllFields();
|
||||
foreach($allFields as $item) {
|
||||
?>
|
||||
<tr id="node-<?php echo str_replace(".","_",$item['Id']) ?>"<?php if(isset($item['parentId'])) echo str_replace(".","_"," class=\"child-of-node-{$item['parentId']}\"") ?>>
|
||||
<td><span class="<?php echo ($item['slave'] == '0' ) ? "folder" : "file"
|
||||
?>"><?php echo $item['name']?></span></td>
|
||||
<td><?php echo $item['Id'] ?></td>
|
||||
|
||||
<td class="akun"><?php echo $item['parentId'] ?></td>
|
||||
<td class="{CELLCLASS_M}" valign="middle">
|
||||
<!-- <a class='thickbox' href="home.php?<?php //echo paramEncrypt('page=./setup/form_perkiraan&modus=modify&id='.$item['Id'])?>"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a>
|
||||
-->
|
||||
<?php if($item['slave'] == 0): ?> <a class='thickbox' href="keuangan/setup/form_aruskas.php?&modus=insert&nogrupakun=<?php echo $item['Id']?> ">
|
||||
<img src="./images/Add.gif" alt="Add" title="Add" width="18" height="18" border="0" style="cursor:pointer" /></a> <?php endif;?>
|
||||
<a class='thickbox' href="keuangan/setup/form_aruskas.php?&modus=modify&id=<?php echo $item['Id']?>"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a>
|
||||
<img src="./images/delete.gif" alt="Delete" title="Delete" width="18" height="18" border="0" onClick="actionPic('delete',<?php echo "'".$item['Id']."'" ?>,<?php echo "'".$item['name']."'" ?>);" style="cursor:pointer"> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo paramEncrypt('status=forbidden')?>"</script><?php
|
||||
}
|
||||
?>
|
||||
19
keuangan/setup/delete.php
Normal file
19
keuangan/setup/delete.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once("../../core/main.php");
|
||||
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
$id_admin=$_SESSION['KDUNIT'];
|
||||
|
||||
$id = isset($_POST['id']) ? $_POST['id'] : "";
|
||||
$sql="DELETE FROM mk_neraca WHERE Id = '$id'";
|
||||
$query = $db->query($sql);
|
||||
if(mysql_affected_rows() >= 1) echo 'ok';
|
||||
else echo 'Gagal menghapus';
|
||||
?>
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden' ?>"</script><?php
|
||||
}
|
||||
?>
|
||||
18
keuangan/setup/delete_kas.php
Normal file
18
keuangan/setup/delete_kas.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php session_start();
|
||||
require_once("../../core/main.php");
|
||||
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
$id_admin=$_SESSION['KDUNIT'];
|
||||
|
||||
$id = isset($_POST['id']) ? $_POST['id'] : "";
|
||||
$sql="DELETE FROM mk_arus_kas WHERE Id = '$id'";
|
||||
$query = $db->query($sql);
|
||||
if(mysql_affected_rows() >= 1) echo 'ok';
|
||||
else echo 'Gagal menghapus';
|
||||
?>
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
20
keuangan/setup/delete_rla.php
Normal file
20
keuangan/setup/delete_rla.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once("../../core/main.php");
|
||||
|
||||
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
$id_admin=$_SESSION['KDUNIT'];
|
||||
|
||||
$id = isset($_POST['id']) ? $_POST['id'] : "";
|
||||
$sql="DELETE FROM mk_realisasi_anggaran WHERE Id = '$id'";
|
||||
$query = $db->query($sql);
|
||||
if(mysql_affected_rows() >= 1) echo 'ok';
|
||||
else echo 'Gagal menghapus';
|
||||
?>
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden' ?>"</script><?php
|
||||
}
|
||||
?>
|
||||
18
keuangan/setup/delete_tarif.php
Normal file
18
keuangan/setup/delete_tarif.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php session_start();
|
||||
require_once("../../core/main.php");
|
||||
//$var=decode($_SERVER['REQUEST_URI']);
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
$id_admin=$_SESSION['KDUNIT'];
|
||||
|
||||
$id = isset($_POST['id']) ? $_POST['id'] : "";
|
||||
$sql="DELETE FROM m_tarif2012 WHERE kode_tindakan= '$id'";
|
||||
$query = $db->query($sql);
|
||||
if(mysql_affected_rows() >= 1) echo 'ok';
|
||||
else echo 'Gagal menghapus';
|
||||
?>
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
134
keuangan/setup/form_aruskas.php
Normal file
134
keuangan/setup/form_aruskas.php
Normal file
@@ -0,0 +1,134 @@
|
||||
|
||||
|
||||
<?php
|
||||
session_start();
|
||||
require_once("../../core/main.php");
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
|
||||
//$modus = $var['modus'];
|
||||
$modus = isset($_GET['modus']) ? htmlspecialchars($_GET['modus']) : "";
|
||||
$icon =isset($_GET['icon']) ? htmlspecialchars($_GET['icon']) : "";
|
||||
$icon_checked_folder='';
|
||||
$icon_checked_file='';
|
||||
$namaakun='';
|
||||
$id='';
|
||||
$parentid='';
|
||||
require_once("lak.php");
|
||||
$objSetupLAK = new lak();
|
||||
|
||||
$objSetupLAK->db_host=$hostname;
|
||||
$objSetupLAK->db_user=$username;
|
||||
$objSetupLAK->db_pass=$password;
|
||||
$objSetupLAK->db_database=$database;
|
||||
if(!$objSetupLAK->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
if ($modus=='modify'){
|
||||
//$id = $var['id'];
|
||||
$id=isset($_GET['id']) ? htmlspecialchars($_GET['id']) : "";
|
||||
$hideid = isset($_GET['hideid']) ? htmlspecialchars($_GET['hideid']) : "";
|
||||
$allFields=$objSetupLAK->getAllFieldsById($id);
|
||||
$namaakun=$allFields['name'];
|
||||
$parentid=$allFields['parentId'];
|
||||
$readonly='readonly="readnonly"';
|
||||
if ($allFields['slave']==0) {
|
||||
$icon_checked_folder='checked="checked"';
|
||||
}
|
||||
else {
|
||||
$icon_checked_file= 'checked="checked"';
|
||||
}
|
||||
}elseif($modus == 'insert'){
|
||||
$parentid = $_REQUEST['nogrupakun'];
|
||||
$readonly ='';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#simpan').click(function(){
|
||||
var hideid = $('#hideid').val();
|
||||
var id = $('#noakun').val();
|
||||
var namabaru = $('#namaakun').val();
|
||||
var nogrupakun = $('#nogrupakun').val();
|
||||
|
||||
if ($('#modus').val()=='modify'){
|
||||
$.post('keuangan/setup/proses_lak.php',$('#formData').serialize(),function(data){
|
||||
id=id.replace(/[.]+/g,'_');
|
||||
$('tr#node-'+id+' > td > span').empty().append(namabaru);
|
||||
$('tr#node-'+id+' > td.akun ').empty().append(id.replace(/[_]+/g,'.'));
|
||||
$('tr#node-'+id+' > td.grupakun').empty().append(nogrupakun);
|
||||
//alert($('tr#node-'+id+' > td > span').text());
|
||||
|
||||
tb_remove();
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.post('keuangan/setup/proses_lak.php',$('#formData').serialize(),function(data){
|
||||
/*var str = '<tr id="node-'+id+'" class="child-of-node-'+id.replace(/[.]+/g,'_')+'">';
|
||||
str += '<td><span>'+namabaru+'</span></td>';
|
||||
str += '<td align="center">'+id.replace(/[.]+/g,'_')+'</td>';
|
||||
str += '<td class="akun">'+nogrupakun+'</td>';
|
||||
str += '<td align=center><a href="./setup/form_perkiraan.php?&modus=modify&id='+id+'" class="thickbox"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a> </td>';
|
||||
|
||||
str += '<td> <img src="./images/delete.gif" alt="Delete" title="Delete" width="18" height="18" border="0" style="cursor:pointer" onclick="actionPic(\'delete\',\''+id+'\',\''+namabaru+'\')"></td>';
|
||||
str += '</tr>';
|
||||
$('#dnd-example').append(str);
|
||||
tb_init('#node-'+id.replace(/[.]+/g,'_')+' td a.thickbox'); */
|
||||
if (confirm('Tambah data lagi ?')==false)
|
||||
tb_remove();
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
#TB_ajaxContent{width:auto !important; height:auto !important;}
|
||||
</style>
|
||||
<div id="divResult" style="font-size:11px;text-align:center;display:none"></div>
|
||||
<form action="keuangan/setup/proses_lak.php'" method="post" name="formData" id="formData" >
|
||||
<!--<form action="./setup/proses_neraca.php" method="post" name="formData" id="formData" >-->
|
||||
<table>
|
||||
<tr>
|
||||
<td>Kode Grup Akun </td>
|
||||
<td><input type="text" id="nogrupakun" name="nogrupakun" readonly="readonly" value="<?php echo $parentid ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kode Akun </td>
|
||||
<td><input type="hidden" id="modus" name="modus" value="<?php echo $modus ?>"/>
|
||||
<input type="hidden" id="hideid" name="hideid" value="<?php echo $id ?>"/>
|
||||
<input type="text" id="noakun" name="noakun" value="<?php echo $id ?>" <?php echo $readonly?> /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nama Akun </td>
|
||||
<td><input type="text" id="namaakun" name="namaakun" value="<?php echo $namaakun ?>" /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Icon</td>
|
||||
<td colspan="2"> <label>
|
||||
<input name="icon" type="radio" id="icon_folder" value="0" <?php echo $icon_checked_folder; ?>>
|
||||
Folder</label>
|
||||
|
||||
<label>
|
||||
<input type="radio" name="icon" value="1" id="icon_file" <?php echo $icon_checked_file; ?>>
|
||||
File</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> <!--<input type="button" value="Simpan" class="text" onclick="document.formData.submit()"> -->
|
||||
<input type="button" value="Simpan" id="simpan" class="text" > </td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
}else{
|
||||
require_once("../encryption/function.php");
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
134
keuangan/setup/form_perkiraan.php
Normal file
134
keuangan/setup/form_perkiraan.php
Normal file
@@ -0,0 +1,134 @@
|
||||
|
||||
|
||||
<?php
|
||||
session_start();
|
||||
require_once("../../core/main.php");
|
||||
//$var=decode($_SERVER['REQUEST_URI']);
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
|
||||
//$modus = $var['modus'];
|
||||
$modus = isset($_GET['modus']) ? htmlspecialchars($_GET['modus']) : "";
|
||||
$icon =isset($_GET['icon']) ? htmlspecialchars($_GET['icon']) : "";
|
||||
$icon_checked_folder='';
|
||||
$icon_checked_file='';
|
||||
$namaakun='';
|
||||
$id='';
|
||||
$parentid='';
|
||||
require_once("neraca.php");
|
||||
$objSetupNeraca = new neraca();
|
||||
$objSetupNeraca->db_host=$hostname;
|
||||
$objSetupNeraca->db_user=$username;
|
||||
$objSetupNeraca->db_pass=$password;
|
||||
$objSetupNeraca->db_database=$database;
|
||||
|
||||
if(!$objSetupNeraca->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
if ($modus=='modify'){
|
||||
//$id = $var['id'];
|
||||
$id=isset($_GET['id']) ? htmlspecialchars($_GET['id']) : "";
|
||||
$hideid = isset($_GET['hideid']) ? htmlspecialchars($_GET['hideid']) : "";
|
||||
$allFields=$objSetupNeraca->getAllFieldsById($id);
|
||||
$namaakun=$allFields['name'];
|
||||
$parentid=$allFields['parentId'];
|
||||
$readonly='readonly="readnonly"';
|
||||
if ($allFields['slave']==0) {
|
||||
$icon_checked_folder='checked="checked"';
|
||||
}
|
||||
else {
|
||||
$icon_checked_file= 'checked="checked"';
|
||||
}
|
||||
}elseif($modus == 'insert'){
|
||||
$parentid = $_REQUEST['nogrupakun'];
|
||||
$readonly ='';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#simpan').click(function(){
|
||||
var hideid = $('#hideid').val();
|
||||
var id = $('#noakun').val();
|
||||
var namabaru = $('#namaakun').val();
|
||||
var nogrupakun = $('#nogrupakun').val();
|
||||
|
||||
if ($('#modus').val()=='modify'){
|
||||
$.post('keuangan/setup/proses_neraca.php',$('#formData').serialize(),function(data){
|
||||
id=id.replace(/[.]+/g,'_');
|
||||
$('tr#node-'+id+' > td > span').empty().append(namabaru);
|
||||
$('tr#node-'+id+' > td.akun ').empty().append(id.replace(/[_]+/g,'.'));
|
||||
$('tr#node-'+id+' > td.grupakun').empty().append(nogrupakun);
|
||||
//alert($('tr#node-'+id+' > td > span').text());
|
||||
|
||||
tb_remove();
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.post('keuangan/setup/proses_neraca.php',$('#formData').serialize(),function(data){
|
||||
/*var str = '<tr id="node-'+id+'" class="child-of-node-'+id.replace(/[.]+/g,'_')+'">';
|
||||
str += '<td><span>'+namabaru+'</span></td>';
|
||||
str += '<td align="center">'+id.replace(/[.]+/g,'_')+'</td>';
|
||||
str += '<td class="akun">'+nogrupakun+'</td>';
|
||||
str += '<td align=center><a href="./setup/form_perkiraan.php?&modus=modify&id='+id+'" class="thickbox"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a> </td>';
|
||||
|
||||
str += '<td> <img src="./images/delete.gif" alt="Delete" title="Delete" width="18" height="18" border="0" style="cursor:pointer" onclick="actionPic(\'delete\',\''+id+'\',\''+namabaru+'\')"></td>';
|
||||
str += '</tr>';
|
||||
$('#dnd-example').append(str);
|
||||
tb_init('#node-'+id.replace(/[.]+/g,'_')+' td a.thickbox'); */
|
||||
if (confirm('Tambah data lagi ?')==false)
|
||||
tb_remove();
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
#TB_ajaxContent{width:auto !important; height:auto !important;}
|
||||
</style>
|
||||
<div id="divResult" style="font-size:11px;text-align:center;display:none"></div>
|
||||
<form action="keuangan/setup/proses_neraca.php'" method="post" name="formData" id="formData" >
|
||||
<!--<form action="./setup/proses_neraca.php" method="post" name="formData" id="formData" >-->
|
||||
<table>
|
||||
<tr>
|
||||
<td>Kode Grup Akun </td>
|
||||
<td><input type="text" id="nogrupakun" name="nogrupakun" readonly="readonly" value="<?php echo $parentid ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kode Akun </td>
|
||||
<td><input type="hidden" id="modus" name="modus" value="<?php echo $modus ?>"/>
|
||||
<input type="hidden" id="hideid" name="hideid" value="<?php echo $id ?>"/>
|
||||
<input type="text" id="noakun" name="noakun" value="<?php echo $id ?>" <?php echo $readonly?> /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nama Akun </td>
|
||||
<td><input type="text" id="namaakun" name="namaakun" value="<?php echo $namaakun ?>" /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Icon</td>
|
||||
<td colspan="2"> <label>
|
||||
<input name="icon" type="radio" id="icon_folder" value="0" <?php echo $icon_checked_folder; ?>>
|
||||
Folder</label>
|
||||
|
||||
<label>
|
||||
<input type="radio" name="icon" value="1" id="icon_file" <?php echo $icon_checked_file; ?>>
|
||||
File</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> <!--<input type="button" value="Simpan" class="text" onclick="document.formData.submit()"> -->
|
||||
<input type="button" value="Simpan" id="simpan" class="text" > </td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden' ?>"</script><?php
|
||||
}
|
||||
?>
|
||||
134
keuangan/setup/form_rla.php
Normal file
134
keuangan/setup/form_rla.php
Normal file
@@ -0,0 +1,134 @@
|
||||
|
||||
|
||||
<?php
|
||||
session_start();
|
||||
require_once("../../core/main.php");
|
||||
//$var=decode($_SERVER['REQUEST_URI']);
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
|
||||
//$modus = $var['modus'];
|
||||
$modus = isset($_GET['modus']) ? htmlspecialchars($_GET['modus']) : "";
|
||||
$icon =isset($_GET['icon']) ? htmlspecialchars($_GET['icon']) : "";
|
||||
$icon_checked_folder='';
|
||||
$icon_checked_file='';
|
||||
$namaakun='';
|
||||
$id='';
|
||||
$parentid='';
|
||||
require_once("rla.php");
|
||||
$objSetupRLA = new rla();
|
||||
|
||||
$objSetupRLA->db_host=$hostname;
|
||||
$objSetupRLA->db_user=$username;
|
||||
$objSetupRLA->db_pass=$password;
|
||||
$objSetupRLA->db_database=$database;
|
||||
if(!$objSetupRLA->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
if ($modus=='modify'){
|
||||
//$id = $var['id'];
|
||||
$id=isset($_GET['id']) ? htmlspecialchars($_GET['id']) : "";
|
||||
$hideid = isset($_GET['hideid']) ? htmlspecialchars($_GET['hideid']) : "";
|
||||
$allFields=$objSetupRLA->getAllFieldsById($id);
|
||||
$namaakun=$allFields['name'];
|
||||
$parentid=$allFields['parentId'];
|
||||
$readonly='readonly="readnonly"';
|
||||
if ($allFields['slave']==0) {
|
||||
$icon_checked_folder='checked="checked"';
|
||||
}
|
||||
else {
|
||||
$icon_checked_file= 'checked="checked"';
|
||||
}
|
||||
}elseif($modus == 'insert'){
|
||||
$parentid = $_REQUEST['nogrupakun'];
|
||||
$readonly ='';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#simpan').click(function(){
|
||||
var hideid = $('#hideid').val();
|
||||
var id = $('#noakun').val();
|
||||
var namabaru = $('#namaakun').val();
|
||||
var nogrupakun = $('#nogrupakun').val();
|
||||
|
||||
if ($('#modus').val()=='modify'){
|
||||
$.post('keuangan/setup/proses_rla.php',$('#formData').serialize(),function(data){
|
||||
id=id.replace(/[.]+/g,'_');
|
||||
$('tr#node-'+id+' > td > span').empty().append(namabaru);
|
||||
$('tr#node-'+id+' > td.akun ').empty().append(id.replace(/[_]+/g,'.'));
|
||||
$('tr#node-'+id+' > td.grupakun').empty().append(nogrupakun);
|
||||
//alert($('tr#node-'+id+' > td > span').text());
|
||||
|
||||
tb_remove();
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.post('keuangan/setup/proses_rla.php',$('#formData').serialize(),function(data){
|
||||
/*var str = '<tr id="node-'+id+'" class="child-of-node-'+id.replace(/[.]+/g,'_')+'">';
|
||||
str += '<td><span>'+namabaru+'</span></td>';
|
||||
str += '<td align="center">'+id.replace(/[.]+/g,'_')+'</td>';
|
||||
str += '<td class="akun">'+nogrupakun+'</td>';
|
||||
str += '<td align=center><a href="./setup/form_perkiraan.php?&modus=modify&id='+id+'" class="thickbox"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a> </td>';
|
||||
|
||||
str += '<td> <img src="./images/delete.gif" alt="Delete" title="Delete" width="18" height="18" border="0" style="cursor:pointer" onclick="actionPic(\'delete\',\''+id+'\',\''+namabaru+'\')"></td>';
|
||||
str += '</tr>';
|
||||
$('#dnd-example').append(str);
|
||||
tb_init('#node-'+id.replace(/[.]+/g,'_')+' td a.thickbox'); */
|
||||
if (confirm('Tambah data lagi ?')==false)
|
||||
tb_remove();
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
#TB_ajaxContent{width:auto !important; height:auto !important;}
|
||||
</style>
|
||||
<div id="divResult" style="font-size:11px;text-align:center;display:none"></div>
|
||||
<form action="keuangan/setup/proses_rla.php" method="post" name="formData" id="formData" >
|
||||
<!--<form action="./setup/proses.php" method="post" name="formData" id="formData" >-->
|
||||
<table>
|
||||
<tr>
|
||||
<td>Kode Grup Akun </td>
|
||||
<td><input type="text" id="nogrupakun" name="nogrupakun" readonly="readonly" value="<?php echo $parentid ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kode Akun </td>
|
||||
<td><input type="hidden" id="modus" name="modus" value="<?php echo $modus ?>"/>
|
||||
<input type="hidden" id="hideid" name="hideid" value="<?php echo $id ?>"/>
|
||||
<input type="text" id="noakun" name="noakun" value="<?php echo $id ?>" <?php echo $readonly?> /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nama Akun </td>
|
||||
<td><input type="text" id="namaakun" name="namaakun" value="<?php echo $namaakun ?>" /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Icon</td>
|
||||
<td colspan="2"> <label>
|
||||
<input name="icon" type="radio" id="icon_folder" value="0" <?php echo $icon_checked_folder; ?>>
|
||||
Folder</label>
|
||||
|
||||
<label>
|
||||
<input type="radio" name="icon" value="1" id="icon_file" <?php echo $icon_checked_file; ?>>
|
||||
File</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> <!--<input type="button" value="Simpan" class="text" onclick="document.formData.submit()"> -->
|
||||
<input type="button" value="Simpan" id="simpan" class="text" > </td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden' ?>"</script><?php
|
||||
}
|
||||
?>
|
||||
142
keuangan/setup/form_tarif.php
Normal file
142
keuangan/setup/form_tarif.php
Normal file
@@ -0,0 +1,142 @@
|
||||
|
||||
|
||||
<?php
|
||||
session_start();
|
||||
require_once("../../core/main.php");
|
||||
//$var=decode($_SERVER['REQUEST_URI']);
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
|
||||
//$modus = $var['modus'];
|
||||
$modus = isset($_GET['modus']) ? htmlspecialchars($_GET['modus']) : "";
|
||||
$icon =isset($_GET['icon']) ? htmlspecialchars($_GET['icon']) : "";
|
||||
$icon_checked_folder='';
|
||||
$icon_checked_file='';
|
||||
$namaakun='';
|
||||
$id='';
|
||||
$parentid='';
|
||||
$tarif=0;
|
||||
$jassar=0;
|
||||
$jaspel=0;
|
||||
require_once("m_tarif2012.php");
|
||||
$objSetupLAK = new m_tarif2012();
|
||||
$objSetupLAK->db_host=$hostname;
|
||||
$objSetupLAK->db_user=$username;
|
||||
$objSetupLAK->db_pass=$password;
|
||||
$objSetupLAK->db_database=$database;
|
||||
if(!$objSetupLAK->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
if ($modus=='modify'){
|
||||
//$id = $var['id'];
|
||||
$id=isset($_GET['id']) ? htmlspecialchars($_GET['id']) : "";
|
||||
$hideid = isset($_GET['hideid']) ? htmlspecialchars($_GET['hideid']) : "";
|
||||
$allFields=$objSetupLAK->getAllFieldsById($id);
|
||||
$namaakun=$allFields['nama_tindakan'];
|
||||
$parentid=$allFields['kode_gruptindakan'];
|
||||
$tarif=$allFields['tarif'];
|
||||
$jassar=$allFields['jasa_sarana'];
|
||||
$jaspel=$allFields['jasa_pelayanan'];
|
||||
$readonly='readonly="readnonly"';
|
||||
if ($allFields['tarif']==0) {
|
||||
$icon_checked_folder='checked="checked"';
|
||||
}
|
||||
else {
|
||||
$icon_checked_file= 'checked="checked"';
|
||||
}
|
||||
}elseif($modus == 'insert'){
|
||||
$parentid = $_REQUEST['nogrupakun'];
|
||||
$readonly ='';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#simpan').click(function(){
|
||||
var hideid = $('#hideid').val();
|
||||
var id = $('#noakun').val();
|
||||
var namabaru = $('#namaakun').val();
|
||||
var nogrupakun = $('#nogrupakun').val();
|
||||
|
||||
if ($('#modus').val()=='modify'){
|
||||
$.post('keuangan/setup/proses_tarif.php',$('#formData').serialize(),function(data){
|
||||
id=id.replace(/[.]+/g,'_');
|
||||
$('tr#node-'+id+' > td > span').empty().append(namabaru);
|
||||
$('tr#node-'+id+' > td.akun ').empty().append(id.replace(/[_]+/g,'.'));
|
||||
$('tr#node-'+id+' > td.grupakun').empty().append(nogrupakun);
|
||||
//alert($('tr#node-'+id+' > td > span').text());
|
||||
|
||||
tb_remove();
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.post('keuangan/setup/proses_tarif.php',$('#formData').serialize(),function(data){
|
||||
/*var str = '<tr id="node-'+id+'" class="child-of-node-'+id.replace(/[.]+/g,'_')+'">';
|
||||
str += '<td><span>'+namabaru+'</span></td>';
|
||||
str += '<td align="center">'+id.replace(/[.]+/g,'_')+'</td>';
|
||||
str += '<td class="akun">'+nogrupakun+'</td>';
|
||||
str += '<td align=center><a href="./setup/form_perkiraan.php?&modus=modify&id='+id+'" class="thickbox"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a> </td>';
|
||||
|
||||
str += '<td> <img src="./images/delete.gif" alt="Delete" title="Delete" width="18" height="18" border="0" style="cursor:pointer" onclick="actionPic(\'delete\',\''+id+'\',\''+namabaru+'\')"></td>';
|
||||
str += '</tr>';
|
||||
$('#dnd-example').append(str);
|
||||
tb_init('#node-'+id.replace(/[.]+/g,'_')+' td a.thickbox'); */
|
||||
if (confirm('Tambah data lagi ?')==false)
|
||||
tb_remove();
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
#TB_ajaxContent{width:auto !important; height:auto !important;}
|
||||
</style>
|
||||
<div id="divResult" style="font-size:11px;text-align:center;display:none"></div>
|
||||
<form action="keuangan/setup/proses_tarif.php'" method="post" name="formData" id="formData" >
|
||||
<!--<form action="./setup/proses_neraca.php" method="post" name="formData" id="formData" >-->
|
||||
<table>
|
||||
<tr>
|
||||
<td>Kode Grup Akun </td>
|
||||
<td><input type="text" id="nogrupakun" name="nogrupakun" readonly="readonly" value="<?php echo $parentid ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kode Akun </td>
|
||||
<td><input type="hidden" id="modus" name="modus" value="<?php echo $modus ?>"/>
|
||||
<input type="hidden" id="hideid" name="hideid" value="<?php echo $id ?>"/>
|
||||
<input type="text" id="noakun" name="noakun" value="<?php echo $id ?>" <?php echo $readonly?> /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nama Akun </td>
|
||||
<td><input type="text" id="namaakun" name="namaakun" value="<?php echo $namaakun ?>" /> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Tarif</td>
|
||||
<td><input type="text" id="tarif" name="tarif" value="<?php echo $tarif ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jasa Sarana</td>
|
||||
<td><input type="text" id="jassar" name="jassar" value="<?php echo $jassar ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jasa Pelayanan</td>
|
||||
<td><input type="text" id="jaspel" name="jaspel" value="<?php echo $jaspel ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> <!--<input type="button" value="Simpan" class="text" onclick="document.formData.submit()"> -->
|
||||
<input type="button" value="Simpan" id="simpan" class="text" > </td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
416
keuangan/setup/index.html
Normal file
416
keuangan/setup/index.html
Normal file
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
62
keuangan/setup/lak.php
Normal file
62
keuangan/setup/lak.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
class lak {
|
||||
var $db_host;
|
||||
var $db_user;
|
||||
var $db_pass;
|
||||
var $allFields = array();
|
||||
var $strDBError = "";
|
||||
var $intRow = 0;
|
||||
|
||||
public function getAllFields(){
|
||||
$sql="select * from mk_arus_kas order by Id,position";
|
||||
$res = $db->query($sql);
|
||||
$allFields=array();
|
||||
foreach($res->fetchAll() as $val) {
|
||||
array_push($allFields,$val);
|
||||
}
|
||||
return $allFields;
|
||||
}
|
||||
public function getAllFieldsById($id){
|
||||
$sql="select * from mk_arus_kas where Id='$id' order by Id";
|
||||
$res = $db->query($sql);
|
||||
$allFields=array();
|
||||
$allFields = $res->fetchAll()[0];
|
||||
return $allFields;
|
||||
}
|
||||
public function updateAkun($id,$namaakun,$parentId,$icon){
|
||||
$strSQL ="update mk_arus_kas set name='$namaakun', parentId='$parentId',slave='$icon' where Id='$id'";
|
||||
$resQuery = $db->query($strSQL);
|
||||
if ($resQuery ) {
|
||||
$this->intRow = mysql_affected_rows();
|
||||
return true;
|
||||
} else {
|
||||
$this->strDBError = mysqli_error($connect);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function insertAkun($id,$namaakun,$parent){
|
||||
$strSQL ="insert into mk_arus_kas(Id,NAME,parentId) values('$id','$namaakun','$parent') ";
|
||||
$resQuery = $db->query($strSQL);
|
||||
if ($resQuery ) {
|
||||
$this->intRow = mysql_affected_rows();
|
||||
return true;
|
||||
} else {
|
||||
$this->strDBError = mysqli_error($connect);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function db_connect(){
|
||||
$conn = mysql_connect($this->db_host, $this->db_user, $this->db_pass);
|
||||
if($conn) {
|
||||
mysql_select_db($this->db_database, $conn);
|
||||
}
|
||||
return $conn;
|
||||
}
|
||||
|
||||
public function db_disconnect(){
|
||||
mysqli_close();
|
||||
}
|
||||
}
|
||||
?>
|
||||
62
keuangan/setup/m_tarif2012.php
Normal file
62
keuangan/setup/m_tarif2012.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
class m_tarif2012 {
|
||||
var $db_host;
|
||||
var $db_user;
|
||||
var $db_pass;
|
||||
var $allFields = array();
|
||||
var $strDBError = "";
|
||||
var $intRow = 0;
|
||||
|
||||
public function getAllFields(){
|
||||
$sql="select kode_tindakan,kode_gruptindakan,nama_tindakan,tarif,jasa_sarana,jasa_pelayanan from m_tarif2012 order by kode_tindakan ";
|
||||
$res = $db->query($sql);
|
||||
$allFields=array();
|
||||
foreach($res->fetchAll() as $val) {
|
||||
array_push($allFields,$val);
|
||||
}
|
||||
return $allFields;
|
||||
}
|
||||
public function getAllFieldsById($id){
|
||||
$sql="select * from m_tarif2012 where kode_tindakan='$id' order by kode_tindakan";
|
||||
$res = $db->query($sql);
|
||||
$allFields=array();
|
||||
$allFields = $res->fetchAll()[0];
|
||||
return $allFields;
|
||||
}
|
||||
public function updateAkun($id,$namaakun,$parent,$jasa_sarana,$jasa_pelayanan,$tarif){
|
||||
$strSQL ="update m_tarif2012 set nama_tindakan='$namaakun',jasa_sarana='$jasa_sarana',jasa_pelayanan='$jasa_pelayanan',tarif='$tarif' where kode_tindakan='$id'";
|
||||
$resQuery = $db->query($strSQL);
|
||||
if ($resQuery ) {
|
||||
$this->intRow = mysql_affected_rows();
|
||||
return true;
|
||||
} else {
|
||||
$this->strDBError = mysqli_error($connect);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function insertAkun($id,$namaakun,$parent,$jasa_sarana,$jasa_pelayanan,$tarif){
|
||||
$strSQL ="insert into m_tarif2012(kode_tindakan,nama_tindakan,kode_gruptindakan,jasa_sarana,jasa_pelayanan,tarif) values('$id','$namaakun','$parent','$jasa_sarana','$jasa_pelayanan','$tarif') ";
|
||||
$resQuery = $db->query($strSQL);
|
||||
if ($resQuery ) {
|
||||
$this->intRow = mysql_affected_rows();
|
||||
return true;
|
||||
} else {
|
||||
$this->strDBError = mysqli_error($connect);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function db_connect(){
|
||||
$conn = mysql_connect($this->db_host, $this->db_user, $this->db_pass);
|
||||
if($conn) {
|
||||
mysql_select_db($this->db_database, $conn);
|
||||
}
|
||||
return $conn;
|
||||
}
|
||||
|
||||
public function db_disconnect(){
|
||||
mysqli_close();
|
||||
}
|
||||
}
|
||||
?>
|
||||
65
keuangan/setup/neraca.php
Normal file
65
keuangan/setup/neraca.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
class neraca {
|
||||
var $db_host;
|
||||
var $db_user;
|
||||
var $db_pass;
|
||||
var $allFields = array();
|
||||
var $strDBError = "";
|
||||
var $intRow = 0;
|
||||
|
||||
public function getAllFields(){
|
||||
require_once("ParentChild.php");
|
||||
|
||||
/*$sql="select * from mk_neraca order by Id,parentId";
|
||||
$res = $db->query($sql);
|
||||
$all_childs=array();
|
||||
foreach($res->fetchAll() as $val) {
|
||||
array_push($all_childs,$val);
|
||||
}*/
|
||||
return $all_childs;
|
||||
}
|
||||
|
||||
public function getAllFieldsById($id){
|
||||
echo $sql="select * from mk_neraca where Id='$id' order by Id";
|
||||
$res = $db->query($sql);
|
||||
$allFields=array();
|
||||
$allFields = $res->fetchAll()[0];
|
||||
return $allFields;
|
||||
}
|
||||
public function updateAkun($id,$namaakun,$parentId,$icon){
|
||||
$strSQL ="update mk_neraca set name='$namaakun', parentId='$parentId',slave='$icon' where Id='$id'";
|
||||
$resQuery = $db->query($strSQL);
|
||||
if ($resQuery ) {
|
||||
$this->intRow = mysql_affected_rows();
|
||||
return true;
|
||||
} else {
|
||||
$this->strDBError = mysqli_error($connect);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function insertAkun($id,$namaakun,$parent,$icon){
|
||||
$strSQL ="insert into mk_neraca(Id,NAME,parentId,slave) values('$id','$namaakun','$parent','$icon') ";
|
||||
$resQuery = $db->query($strSQL);
|
||||
if ($resQuery ) {
|
||||
$this->intRow = mysql_affected_rows();
|
||||
return true;
|
||||
} else {
|
||||
$this->strDBError = mysqli_error($connect);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function db_connect(){
|
||||
$conn = mysql_connect($this->db_host, $this->db_user, $this->db_pass);
|
||||
if($conn) {
|
||||
mysql_select_db($this->db_database, $conn);
|
||||
}
|
||||
return $conn;
|
||||
}
|
||||
|
||||
public function db_disconnect(){
|
||||
mysqli_close();
|
||||
}
|
||||
}
|
||||
?>
|
||||
241
keuangan/setup/pend_cash.php
Normal file
241
keuangan/setup/pend_cash.php
Normal file
@@ -0,0 +1,241 @@
|
||||
<div align="center">
|
||||
<div id="frame" style="width:100%">
|
||||
<div id="frame_title">
|
||||
<h5>Total Rekap Pendapatan </h5></div>
|
||||
<?php
|
||||
include("core/main.php");
|
||||
$tgl_kunjungan = "";
|
||||
if(!empty($_GET['tgl_kunjungan'])){
|
||||
$tgl_kunjungan =$_GET['tgl_kunjungan'];
|
||||
}else{
|
||||
$tgl_kunjungan =date('Y/m/d');
|
||||
}
|
||||
|
||||
$tgl_kunjungan2 = "";
|
||||
if(!empty($_GET['tgl_kunjungan2'])){
|
||||
$tgl_kunjungan2 =$_GET['tgl_kunjungan2'];
|
||||
}else{
|
||||
$tgl_kunjungan2 =date('Y/m/d');
|
||||
}
|
||||
|
||||
$poly = "";
|
||||
if(!empty($_GET['poly'])) {
|
||||
$poly =$_GET['poly'];
|
||||
}
|
||||
else $poly=0;
|
||||
|
||||
?>
|
||||
<form name="formsearch" method="get" id="formsearch" >
|
||||
<table width="286" border="0" cellspacing="0" class="tb">
|
||||
<tr>
|
||||
<td width="78">Dari Tanggal</td>
|
||||
<td width="204"><input type="text" name="tgl_kunjungan" id="tgl_pesan" readonly="readonly" class="text"
|
||||
value="<?php if($tgl_kunjungan!=""){
|
||||
echo $tgl_kunjungan;}?>"/><a href="javascript:showCal('Calendar3')"><img align="top" src="img/date.png" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sampai Tanggal</td>
|
||||
<td><input type="text" name="tgl_kunjungan2" id="tgl_pesan2" readonly="readonly" class="text"
|
||||
value="<?php if($tgl_kunjungan2!=""){
|
||||
echo $tgl_kunjungan2;}?>"/><a href="javascript:showCal('Calendar11')"><img align="top" src="img/date.png" border="0" /></a></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td>Cara Bayar</td>
|
||||
<td><select name="poly" id="poly" class="text" >
|
||||
<option value=""> Semua Cara Bayar </option>
|
||||
<?php
|
||||
$qrypoly = $db->query("SELECT kode,nama FROM m_carabayar ORDER BY kode ASC");
|
||||
foreach($qrypoly->fetchAll() as $listpoly) {
|
||||
?>
|
||||
<option value="<?php echo $listpoly['kode'];?>" <?php if($listpoly['kode']==$poly) echo "selected=selected"; ?>><?php echo $listpoly['nama'];?></option>
|
||||
<?php } ?>
|
||||
</select></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="Cari" class="text"/> <input type="button" value="Casemix" class="text" id="casemix"/>
|
||||
<input type="hidden" name="link" value="pendapatan_cash" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
<br />
|
||||
<script>
|
||||
function popUp(URL) {
|
||||
day = new Date();
|
||||
id = day.getTime();
|
||||
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=400,left=50,top=50');");
|
||||
}
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('.detail_lainlain').click(function(){
|
||||
var tgl = jQuery(this).attr('id');
|
||||
popUp('<?php echo _BASE_;?>adm/eksekutif/slide/detail_carabayar_lainlain_rajal.php?tgl='+tgl);
|
||||
});
|
||||
|
||||
jQuery('#casemix').click(function(){
|
||||
jQuery.post('<?php echo _BASE_;?>adm/eksekutif/slide/casemix.php',jQuery('#formsearch').serialize(),function(data){
|
||||
window.location = '<?php echo _BASE_;?>adm/eksekutif/slide/'+data;
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!--<div style="overflow:scroll;width:98%;height:auto;">-->
|
||||
<!--<table width="148%" style="font-size:9px;" border="0" align="center" class="tb" cellpadding="1" cellspacing="1">-->
|
||||
<table style="font-size:9px;" border="0" align="center" class="tb" cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<th width="34" rowspan="4">Tanggal</th>
|
||||
<th colspan="17">Pendapatan </th>
|
||||
<th width="100" rowspan="4">Total</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="17">Unit</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th colspan="7">Pasien Rawat Jalan</th>
|
||||
<th rowspan="2">Total Pasien Rajal</th>
|
||||
<th colspan="7">Pasien Rawat Inap</th>
|
||||
<th rowspan="2">Total Pasien Ranap</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Manajemen</th>
|
||||
<th>Poly</th>
|
||||
<th>UGD</th>
|
||||
<th>VK</th>
|
||||
<th>Laboratorium</th>
|
||||
<th>Radiologi</th>
|
||||
<th>Gizi</th>
|
||||
<th>Apotek</th>
|
||||
<th>Kamar Operasi</th>
|
||||
<th>Rawat Inap</th>
|
||||
<th>VK</th>
|
||||
<th>Laboratorium</th>
|
||||
<th>Radiologi</th>
|
||||
<th>Gizi</th>
|
||||
<th>Apotek</th>
|
||||
</tr>
|
||||
|
||||
<?php $tot_jkl=0;$tot_jkp=0;
|
||||
$tot_rj=0;
|
||||
$tot_ugd=0;
|
||||
$tot_vk=0;
|
||||
$tot_lab=0;
|
||||
$tot_rad=0;
|
||||
$tot_ok=0;
|
||||
$tot_ri=0;
|
||||
$tot_apotek=0;
|
||||
$tot_manajemen=0;
|
||||
$tot_vk_ri=0;
|
||||
$tot_lab_ri=0;
|
||||
$tot_rad_ri=0;
|
||||
$tot_apotek_ri=0;
|
||||
$carabayar = 1;
|
||||
$sql="CALL pr_eksekutif_total_pendapatan_rekapbulan('".$tgl_kunjungan."','".$tgl_kunjungan2."',".$carabayar.",".$carabayar.")";
|
||||
# echo $sql;
|
||||
$rs = $db->query($sql);
|
||||
|
||||
foreach($rs->fetchAll() as $data) {
|
||||
#if($data['carabayar'] == $carabayar){
|
||||
|
||||
$tot_rj=$tot_rj+$data['rj'];
|
||||
|
||||
$tot_ugd=$tot_ugd+$data['ugd'];
|
||||
|
||||
$tot_vk=$tot_vk+$data['vk'];
|
||||
|
||||
$tot_lab=$tot_lab+$data['lab'];
|
||||
$tot_rad=$tot_rad+$data['rad'];
|
||||
$tot_ok=$tot_ok+$data['ok'];
|
||||
$tot_ri=$tot_ri+$data['ri'];
|
||||
$tot_apotek=$tot_apotek+$data['apotek'];
|
||||
$tot_gizi=$tot_gizi+$data['gizi'];
|
||||
$tot_manajemen=$tot_manajemen+$data['manajemen'];
|
||||
$tot_vk_ri=$tot_vk_ri+$data['vk_ri'];
|
||||
$tot_lab_ri=$tot_lab_ri+$data['lab_ri'];
|
||||
$tot_rad_ri=$tot_rad_ri+$data['rad_ri'];
|
||||
$tot_apotek_ri=$tot_apotek_ri+$data['apotek_ri'];
|
||||
$tot_gizi_ri=$tot_gizi_ri+$data['gizi_ri'];
|
||||
?>
|
||||
<tr <?php echo "class =";
|
||||
$count++;
|
||||
if ($count % 2) {
|
||||
echo "tr1"; }
|
||||
else {
|
||||
echo "tr2";
|
||||
}
|
||||
?>>
|
||||
<td width="34" ><?=$data['tanggal'];?></td>
|
||||
<td width="51" align="right"><?=number_format($data['manajemen'],0);?></td>
|
||||
<td width="51" align="right"><?=number_format($data['rj'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['ugd'],0);?></td>
|
||||
<td width="64" align="right"><?=number_format($data['vk'],0);?></td>
|
||||
<td width="67" align="right"><?=number_format($data['lab'],0);?></td>
|
||||
<td width="84" align="right"><?=number_format($data['rad'],0);?></td>
|
||||
<td width="72" align="right"><?=number_format($data['gizi'],0);?></td>
|
||||
<td width="72" align="right"><?=number_format($data['apotek'],0);?></td>
|
||||
<td width="72" align="right"><?=number_format($data['manajemen']+$data['rj']+$data['ugd']+$data['vk']+$data['lab']+$data['rad']+$data['apotek']+$data['gizi'],0);?></td>
|
||||
<td width="72" align="right"><?=number_format($data['ok'],0);?></td>
|
||||
<td width="79" align="right"><?=number_format($data['ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['vk_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['lab_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['rad_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['gizi_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['apotek_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['ok']+$data['ri']+$data['vk_ri']+$data['lab_ri']+$data['rad_ri']+$data['apotek_ri']+$data['gizi_ri'],0) ?></td>
|
||||
<td align="right"><?=number_format($data['manajemen']+$data['rj']+$data['ugd']+$data['vk']+$data['lab']+$data['rad']+$data['gizi']+$data['apotek']+$data['ok']+$data['ri']+$data['vk_ri']+$data['lab_ri']+$data['rad_ri']+$data['gizi_ri']+$data['apotek_ri'],0)?></td>
|
||||
</tr>
|
||||
<?php }#} ?>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><?=number_format($tot_manajemen,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_rj,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_ugd,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_vk,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_lab,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_rad,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_gizi,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_apotek,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_manajemen+$tot_rj+$tot_ugd+$tot_vk+$tot_lab+$tot_rad+$tot_gizi+$tot_apotek,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_ok,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_vk_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_lab_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_rad_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_gizi_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_apotek_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_ok+$tot_ri+$tot_vk_ri+$tot_lab_ri+ $tot_rad_ri+$tot_gizi_ri+$tot_apotek_ri,0) ?></td>
|
||||
|
||||
<td align="right"><?=number_format($tot_manajemen+$tot_rj+$tot_ugd+$tot_vk+$tot_lab+$tot_rad+$tot_apotek+$tot_ok+$tot_ri+$tot_vk_ri+$tot_lab_ri+ $tot_rad_ri+$tot_apotek_ri,0); ?></td>
|
||||
</tr>
|
||||
</table><p><form action="adm/eksekutif/slide/total_pendapatan_xls.php" method="get">
|
||||
<input type="hidden" name="tgl_kunjungan" id="tgl_kunjungan" value=<?=$tgl_kunjungan?> />
|
||||
<input type="hidden" name="tgl_kunjungan2" id="tgl_kunjungan2" value=<?=$tgl_kunjungan2?> />
|
||||
<input type="hidden" name="poly" id="poly" value=<?=$poly?> />
|
||||
<input type="submit" value="export xls" />
|
||||
</form></p>
|
||||
</div>
|
||||
</div></div>
|
||||
246
keuangan/setup/pend_piutang.php
Normal file
246
keuangan/setup/pend_piutang.php
Normal file
@@ -0,0 +1,246 @@
|
||||
<div align="center">
|
||||
<div id="frame" style="width:100%">
|
||||
<div id="frame_title">
|
||||
<h5>Total Rekap Pendapatan </h5></div>
|
||||
<?php
|
||||
include("core/main.php");
|
||||
$tgl_kunjungan = "";
|
||||
if(!empty($_GET['tgl_kunjungan'])){
|
||||
$tgl_kunjungan =$_GET['tgl_kunjungan'];
|
||||
}else{
|
||||
$tgl_kunjungan =date('Y/m/d');
|
||||
}
|
||||
|
||||
$tgl_kunjungan2 = "";
|
||||
if(!empty($_GET['tgl_kunjungan2'])){
|
||||
$tgl_kunjungan2 =$_GET['tgl_kunjungan2'];
|
||||
}else{
|
||||
$tgl_kunjungan2 =date('Y/m/d');
|
||||
}
|
||||
|
||||
$poly = "";
|
||||
if(!empty($_GET['poly'])) {
|
||||
$poly =$_GET['poly'];
|
||||
}
|
||||
else $poly=0;
|
||||
|
||||
?>
|
||||
<form name="formsearch" method="get" id="formsearch" >
|
||||
<table width="286" border="0" cellspacing="0" class="tb">
|
||||
<tr>
|
||||
<td width="78">Dari Tanggal</td>
|
||||
<td width="204"><input type="text" name="tgl_kunjungan" id="tgl_pesan" readonly="readonly" class="text"
|
||||
value="<?php if($tgl_kunjungan!=""){
|
||||
echo $tgl_kunjungan;}?>"/><a href="javascript:showCal('Calendar3')"><img align="top" src="img/date.png" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sampai Tanggal</td>
|
||||
<td><input type="text" name="tgl_kunjungan2" id="tgl_pesan2" readonly="readonly" class="text"
|
||||
value="<?php if($tgl_kunjungan2!=""){
|
||||
echo $tgl_kunjungan2;}?>"/><a href="javascript:showCal('Calendar11')"><img align="top" src="img/date.png" border="0" /></a></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td>Cara Bayar</td>
|
||||
<td><select name="poly" id="poly" class="text" >
|
||||
<option value=""> Semua Cara Bayar </option>
|
||||
<?php
|
||||
$qrypoly = $db->query("SELECT kode,nama FROM m_carabayar ORDER BY kode ASC");
|
||||
foreach($qrypoly->fetchAll() as $listpoly) {
|
||||
?>
|
||||
<option value="<?php echo $listpoly['kode'];?>" <?php if($listpoly['kode']==$poly) echo "selected=selected"; ?>><?php echo $listpoly['nama'];?></option>
|
||||
<?php } ?>
|
||||
</select></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="Cari" class="text"/> <input type="button" value="Casemix" class="text" id="casemix"/>
|
||||
<input type="hidden" name="link" value="pendapatan_piutang" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
<br />
|
||||
<script>
|
||||
function popUp(URL) {
|
||||
day = new Date();
|
||||
id = day.getTime();
|
||||
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=400,left=50,top=50');");
|
||||
}
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('.detail_lainlain').click(function(){
|
||||
var tgl = jQuery(this).attr('id');
|
||||
popUp('<?php echo _BASE_;?>adm/eksekutif/slide/detail_carabayar_lainlain_rajal.php?tgl='+tgl);
|
||||
});
|
||||
|
||||
jQuery('#casemix').click(function(){
|
||||
jQuery.post('<?php echo _BASE_;?>adm/eksekutif/slide/casemix.php',jQuery('#formsearch').serialize(),function(data){
|
||||
window.location = '<?php echo _BASE_;?>adm/eksekutif/slide/'+data;
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!--<div style="overflow:scroll;width:98%;height:auto;">-->
|
||||
<!--<table width="148%" style="font-size:9px;" border="0" align="center" class="tb" cellpadding="1" cellspacing="1">-->
|
||||
<table style="font-size:9px;" border="0" align="center" class="tb" cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<th width="34" rowspan="4">Tanggal</th>
|
||||
<th colspan="17">Pendapatan </th>
|
||||
<th width="100" rowspan="4">Total</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="17">Unit</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th colspan="7">Pasien Rawat Jalan</th>
|
||||
<th rowspan="2">Total Pasien Rajal</th>
|
||||
<th colspan="7">Pasien Rawat Inap</th>
|
||||
<th rowspan="2">Total Pasien Ranap</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Manajemen</th>
|
||||
<th>Poly</th>
|
||||
<th>UGD</th>
|
||||
<th>VK</th>
|
||||
<th>Laboratorium</th>
|
||||
<th>Radiologi</th>
|
||||
<th>Gizi</th>
|
||||
<th>Apotek</th>
|
||||
<th>Kamar Operasi</th>
|
||||
<th>Rawat Inap</th>
|
||||
<th>VK</th>
|
||||
<th>Laboratorium</th>
|
||||
<th>Radiologi</th>
|
||||
<th>Gizi</th>
|
||||
<th>Apotek</th>
|
||||
</tr>
|
||||
|
||||
<?php $tot_jkl=0;$tot_jkp=0;
|
||||
$tot_rj=0;
|
||||
$tot_ugd=0;
|
||||
$tot_vk=0;
|
||||
$tot_lab=0;
|
||||
$tot_rad=0;
|
||||
$tot_ok=0;
|
||||
$tot_ri=0;
|
||||
$tot_apotek=0;
|
||||
$tot_manajemen=0;
|
||||
$tot_vk_ri=0;
|
||||
$tot_lab_ri=0;
|
||||
$tot_rad_ri=0;
|
||||
$tot_apotek_ri=0;
|
||||
$carabayar = 2;
|
||||
$sql="CALL pr_eksekutif_total_pendapatan_rekapbulan('".$tgl_kunjungan."','".$tgl_kunjungan2."',".$carabayar.",".$carabayar.")";
|
||||
# echo $sql;
|
||||
$rs = $db->query($sql);
|
||||
|
||||
$header = '';
|
||||
foreach($rs->fetchAll() as $data) {
|
||||
if($header != $data['NAMA']){
|
||||
echo '<tr><th colspan="20">'.$data['NAMA'].'</th></tr>';
|
||||
$header = $data['NAMA'];
|
||||
}
|
||||
#if($data['carabayar'] == $carabayar){
|
||||
|
||||
$tot_rj=$tot_rj+$data['rj'];
|
||||
|
||||
$tot_ugd=$tot_ugd+$data['ugd'];
|
||||
|
||||
$tot_vk=$tot_vk+$data['vk'];
|
||||
|
||||
$tot_lab=$tot_lab+$data['lab'];
|
||||
$tot_rad=$tot_rad+$data['rad'];
|
||||
$tot_ok=$tot_ok+$data['ok'];
|
||||
$tot_ri=$tot_ri+$data['ri'];
|
||||
$tot_apotek=$tot_apotek+$data['apotek'];
|
||||
$tot_gizi=$tot_gizi+$data['gizi'];
|
||||
$tot_manajemen=$tot_manajemen+$data['manajemen'];
|
||||
$tot_vk_ri=$tot_vk_ri+$data['vk_ri'];
|
||||
$tot_lab_ri=$tot_lab_ri+$data['lab_ri'];
|
||||
$tot_rad_ri=$tot_rad_ri+$data['rad_ri'];
|
||||
$tot_apotek_ri=$tot_apotek_ri+$data['apotek_ri'];
|
||||
$tot_gizi_ri=$tot_gizi_ri+$data['gizi_ri'];
|
||||
?>
|
||||
<tr <?php echo "class =";
|
||||
$count++;
|
||||
if ($count % 2) {
|
||||
echo "tr1"; }
|
||||
else {
|
||||
echo "tr2";
|
||||
}
|
||||
?>>
|
||||
<td width="34" ><?=$data['tanggal'];?></td>
|
||||
<td width="51" align="right"><?=number_format($data['manajemen'],0);?></td>
|
||||
<td width="51" align="right"><?=number_format($data['rj'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['ugd'],0);?></td>
|
||||
<td width="64" align="right"><?=number_format($data['vk'],0);?></td>
|
||||
<td width="67" align="right"><?=number_format($data['lab'],0);?></td>
|
||||
<td width="84" align="right"><?=number_format($data['rad'],0);?></td>
|
||||
<td width="72" align="right"><?=number_format($data['gizi'],0);?></td>
|
||||
<td width="72" align="right"><?=number_format($data['apotek'],0);?></td>
|
||||
<td width="72" align="right"><?=number_format($data['manajemen']+$data['rj']+$data['ugd']+$data['vk']+$data['lab']+$data['rad']+$data['apotek']+$data['gizi'],0);?></td>
|
||||
<td width="72" align="right"><?=number_format($data['ok'],0);?></td>
|
||||
<td width="79" align="right"><?=number_format($data['ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['vk_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['lab_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['rad_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['gizi_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['apotek_ri'],0);?></td>
|
||||
<td width="70" align="right"><?=number_format($data['ok']+$data['ri']+$data['vk_ri']+$data['lab_ri']+$data['rad_ri']+$data['apotek_ri']+$data['gizi_ri'],0) ?></td>
|
||||
<td align="right"><?=number_format($data['manajemen']+$data['rj']+$data['ugd']+$data['vk']+$data['lab']+$data['rad']+$data['gizi']+$data['apotek']+$data['ok']+$data['ri']+$data['vk_ri']+$data['lab_ri']+$data['rad_ri']+$data['gizi_ri']+$data['apotek_ri'],0)?></td>
|
||||
</tr>
|
||||
<?php }#} ?>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><?=number_format($tot_manajemen,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_rj,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_ugd,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_vk,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_lab,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_rad,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_gizi,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_apotek,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_manajemen+$tot_rj+$tot_ugd+$tot_vk+$tot_lab+$tot_rad+$tot_gizi+$tot_apotek,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_ok,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_vk_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_lab_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_rad_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_gizi_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_apotek_ri,0); ?></td>
|
||||
<td align="right"><?=number_format($tot_ok+$tot_ri+$tot_vk_ri+$tot_lab_ri+ $tot_rad_ri+$tot_gizi_ri+$tot_apotek_ri,0) ?></td>
|
||||
|
||||
<td align="right"><?=number_format($tot_manajemen+$tot_rj+$tot_ugd+$tot_vk+$tot_lab+$tot_rad+$tot_apotek+$tot_ok+$tot_ri+$tot_vk_ri+$tot_lab_ri+ $tot_rad_ri+$tot_apotek_ri,0); ?></td>
|
||||
</tr>
|
||||
</table><p><form action="adm/eksekutif/slide/total_pendapatan_xls.php" method="get">
|
||||
<input type="hidden" name="tgl_kunjungan" id="tgl_kunjungan" value=<?=$tgl_kunjungan?> />
|
||||
<input type="hidden" name="tgl_kunjungan2" id="tgl_kunjungan2" value=<?=$tgl_kunjungan2?> />
|
||||
<input type="hidden" name="poly" id="poly" value=<?=$poly?> />
|
||||
<input type="submit" value="export xls" />
|
||||
</form></p>
|
||||
</div>
|
||||
</div></div>
|
||||
214
keuangan/setup/perkiraan.php
Normal file
214
keuangan/setup/perkiraan.php
Normal file
@@ -0,0 +1,214 @@
|
||||
<link href="keuangan/doc/stylesheets/cell.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link href="keuangan/css/thickbox.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="keuangan/doc/javascripts/jquery.js"></script>
|
||||
<script language="javascript" src="keuangan/javascript/thickbox.js"></script>
|
||||
<script language="javascript" src="keuangan/javascript/jquery.form.js"></script>
|
||||
|
||||
|
||||
|
||||
<SCRIPT language=JavaScript type=text/javascript>
|
||||
function actionPic(modus,id,name) {
|
||||
if (modus=='delete'){
|
||||
$(document).ready(function(){
|
||||
if ( confirm ('Yakin hapus '+name+' ?')==true){
|
||||
$.post('keuangan/setup/delete.php',{id: id},function(response){
|
||||
var x=response.trim(' ');
|
||||
if(x == 'ok'){
|
||||
$('tr#node-'+id.replace(/[.]+/g,'_')).hide();
|
||||
//alert('Delete sukses');
|
||||
}
|
||||
//else alert('Delete gagal');
|
||||
dataType: 'json' });
|
||||
}
|
||||
else {
|
||||
alert("batal");
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</SCRIPT>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="keuangan/doc/javascripts/jquery.ui.js"></script>
|
||||
|
||||
|
||||
<!-- BEGIN Plugin Code -->
|
||||
|
||||
<link href="keuangan/src/stylesheets/jquery.treeTable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="keuangan/src/javascripts/jquery.treeTable.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$(".example").treeTable({
|
||||
//initialState: "expanded"
|
||||
initialState: "collapsed"
|
||||
});
|
||||
|
||||
// Drag & Drop Example Code
|
||||
$("#dnd-example .file, #dnd-example .folder").draggable({
|
||||
helper: "clone",
|
||||
opacity: .75,
|
||||
refreshPositions: true,
|
||||
revert: "invalid",
|
||||
revertDuration: 300,
|
||||
scroll: true
|
||||
});
|
||||
|
||||
$("#dnd-example .folder").each(function() {
|
||||
$($(this).parents("tr")[0]).droppable({
|
||||
accept: ".file, .folder",
|
||||
drop: function(e, ui) {
|
||||
$($(ui.draggable).parents("tr")[0]).appendBranchTo(this);
|
||||
|
||||
// Issue a POST call to send the new location (this) of the
|
||||
// node (ui.draggable) to the server.
|
||||
$.post("move.php", {id: $(ui.draggable).parents("tr")[0].id, to: this.id});
|
||||
},
|
||||
hoverClass: "accept",
|
||||
over: function(e, ui) {
|
||||
if(this.id != $(ui.draggable.parents("tr.parent")[0]).id && !$(this).is(".expanded")) {
|
||||
$(this).expand();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Make visible that a row is clicked
|
||||
$("table#dnd-example tbody tr").mousedown(function() {
|
||||
$("tr.selected").removeClass("selected"); // Deselect currently selected rows
|
||||
$(this).addClass("selected");
|
||||
});
|
||||
|
||||
// Make sure row is selected when span is clicked
|
||||
$("table#dnd-example tbody tr span").mousedown(function() {
|
||||
$($(this).parents("tr")[0]).trigger("mousedown");
|
||||
});
|
||||
$('tr > td > a.save').hide();
|
||||
$('.edit').click(function(){
|
||||
var id = $(this).attr('id');
|
||||
$('tr#node-'+id+' > td > span').empty();
|
||||
$('#nama_'+id).css({'display':'inline','width':'200px'});
|
||||
|
||||
$('tr#node-'+id+' > td > a.edit').hide();
|
||||
$('tr#node-'+id+' > td > a.save').show();
|
||||
|
||||
});
|
||||
$('.save').click(function(){
|
||||
var id = $(this).attr('id');
|
||||
var val = $('#nama_'+id).val();
|
||||
$.post('./setup/proses.php',{noakun:id,namaakun:val,modus:'modify'},function(data){
|
||||
$('tr#node-'+id+' > td > span').text(val);
|
||||
$('#nama_'+id).css({'display':'none'});
|
||||
$('tr#node-'+id+' > td > a.edit').show();
|
||||
$('tr#node-'+id+' > td > a.save').hide();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$('.add').click(function(){
|
||||
var val = $(this).attr('id');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<?php
|
||||
require_once("core/main.php");
|
||||
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
|
||||
require_once("ParentChild.php");
|
||||
|
||||
$obj_parentchild = new ParentChild();
|
||||
|
||||
$obj_parentchild->db_host=$hostname;
|
||||
$obj_parentchild->db_user=$username;
|
||||
$obj_parentchild->db_pass=$password;
|
||||
$obj_parentchild->db_database=$database;
|
||||
|
||||
if(!$obj_parentchild->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
$obj_parentchild->db_table="mk_neraca";
|
||||
$obj_parentchild->item_identifier_field_name="Id";
|
||||
$obj_parentchild->parent_identifier_field_name="parentId";
|
||||
$obj_parentchild->item_list_field_name="name";
|
||||
$obj_parentchild->extra_condition=""; //if required
|
||||
$obj_parentchild->order_by_phrase=" ORDER BY `Id` ";
|
||||
|
||||
$obj_parentchild->level_identifier="";
|
||||
$obj_parentchild->item_pointer="";
|
||||
|
||||
|
||||
|
||||
|
||||
$root_item_id='-99';
|
||||
$all_childs=$obj_parentchild->getAllChilds($root_item_id);
|
||||
?>
|
||||
<!--<a class='thickbox' href="./setup/form_perkiraan.php?&modus=insert">Tambah</a> -->
|
||||
|
||||
<table class="example" id="dnd-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nama Akun</th>
|
||||
<th>Id</th>
|
||||
<th>Parent Id</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
//$allFields=$objSetupNeraca->getAllFields();
|
||||
foreach($all_childs as $item) {
|
||||
?>
|
||||
<tr id="node-<?php echo str_replace(".","_",$item['Id']) ?>"<?php if(isset($item['parentId'])) echo str_replace(".","_"," class=\"child-of-node-{$item['parentId']}\"") ?>>
|
||||
<td><span class="<?php echo ($item['slave'] == '0' ) ? "folder" : "file"
|
||||
?>"><?php echo $item['name']?></span><input type="text" value="<?php echo $item['name']?>" id="nama_<?php echo str_replace(".","_",$item['Id']) ?>" style="display:none;" /></td>
|
||||
<td class="akun"><input name="hideid" id="hideid_<?php echo $item['Id'] ?>" type="hidden" value="<?php echo $item['Id'] ?>"/><?php echo $item['Id'] ?></td>
|
||||
|
||||
<td class="grupakun"><?php echo $item['parentId'] ?></td>
|
||||
<td class="{CELLCLASS_M}" valign="middle">
|
||||
<!-- <a class='thickbox' href="home.php?<?php //echo paramEncrypt('page=./setup/form_perkiraan&modus=modify&id='.$item['Id'])?>"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a>
|
||||
-->
|
||||
<?php if($item['slave'] == 0): ?> <a class='thickbox' href="keuangan/setup/form_perkiraan.php?&modus=insert&nogrupakun=<?php echo $item['Id']?> ">
|
||||
<img src="./keuangan/add.png" alt="Add" title="Add" width="18" height="18" border="0" style="cursor:pointer" /></a> <?php endif;?>
|
||||
<!--<a class="edit" id="<?php //echo str_replace(".","_",$item['Id']);?>" svn="edit_<?php //echo str_replace(".","_",$item['Id']);?>">edit</a>
|
||||
<a class="save" id="<?php //echo str_replace(".","_",$item['Id']);?>" svn="save_<?php //echo str_replace(".","_",$item['Id']);?>">save</a>-->
|
||||
|
||||
<a class='thickbox' href="keuangan/setup/form_perkiraan.php?&modus=modify&id=<?php echo $item['Id']?>&hideid=<?php echo $item['Id']?> ">
|
||||
<img src="./keuangan/edit.png" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer"></a>
|
||||
|
||||
<img src="./keuangan/delete.gif" alt="Delete" title="Delete" width="18" height="18" border="0" onClick="actionPic('delete',<?php echo "'".$item['Id']."'" ?>,<?php echo "'".$item['name']."'" ?>);" style="cursor:pointer"> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$obj_parentchild->db_disconnect();
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden' ?>"</script><?php
|
||||
}
|
||||
?>
|
||||
48
keuangan/setup/proses_lak.php
Normal file
48
keuangan/setup/proses_lak.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once("../../core/main.php");
|
||||
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
$modus = isset($_POST['modus']) ? htmlspecialchars($_POST['modus']) : "";
|
||||
$hideId = isset($_POST['hideId']) ? htmlspecialchars($_POST['hideId']) : "";
|
||||
$noakun = isset($_POST['noakun']) ? htmlspecialchars($_POST['noakun']) : "";
|
||||
$namaakun = isset($_POST['namaakun']) ? htmlspecialchars($_POST['namaakun']) : "";
|
||||
$nogrupakun = isset($_POST['nogrupakun']) ? htmlspecialchars($_POST['nogrupakun']) : "";
|
||||
$icon = $_POST['icon'] ;
|
||||
|
||||
require_once("lak.php");
|
||||
$objSetupLAK = new lak();
|
||||
$objSetupLAK->db_host=$hostname;
|
||||
$objSetupLAK->db_user=$username;
|
||||
$objSetupLAK->db_pass=$password;
|
||||
$objSetupLAK->db_database=$database;
|
||||
if(!$objSetupLAK->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
if ($modus=='modify'){
|
||||
if ($objSetupLAK->updateAkun(str_replace('_','.',$noakun),$namaakun,$nogrupakun,$icon)) {?>
|
||||
<!--<script language="javascript">alert('sukses');</script>--> <?php echo 'ok';
|
||||
}
|
||||
else {
|
||||
echo $objSetupLAK->strDBError;
|
||||
}
|
||||
}
|
||||
if ($modus=='insert'){
|
||||
if ($objSetupLAK->insertAkun($noakun,$namaakun,$nogrupakun,$icon)) {?>
|
||||
<script language="javascript">alert('sukses');</script> <?php echo 'ok';
|
||||
}
|
||||
else {
|
||||
echo $objSetupLAK->strDBError;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
48
keuangan/setup/proses_neraca.php
Normal file
48
keuangan/setup/proses_neraca.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once("../../core/main.php");
|
||||
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
$modus = isset($_POST['modus']) ? htmlspecialchars($_POST['modus']) : "";
|
||||
$hideId = isset($_POST['hideId']) ? htmlspecialchars($_POST['hideId']) : "";
|
||||
$noakun = isset($_POST['noakun']) ? htmlspecialchars($_POST['noakun']) : "";
|
||||
$namaakun = isset($_POST['namaakun']) ? htmlspecialchars($_POST['namaakun']) : "";
|
||||
$nogrupakun = isset($_POST['nogrupakun']) ? htmlspecialchars($_POST['nogrupakun']) : "";
|
||||
$icon = isset($_POST['icon']) ? htmlspecialchars($_POST['icon']) : "";
|
||||
|
||||
require_once("neraca.php");
|
||||
$objSetupNeraca = new neraca();
|
||||
$objSetupNeraca->db_host=$hostname;
|
||||
$objSetupNeraca->db_user=$username;
|
||||
$objSetupNeraca->db_pass=$password;
|
||||
$objSetupNeraca->db_database=$database;
|
||||
if(!$objSetupNeraca->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
if ($modus=='modify'){
|
||||
if ($objSetupNeraca->updateAkun(str_replace('_','.',$noakun),$namaakun,$nogrupakun,$icon)) {?>
|
||||
<script language="javascript">alert(<?php echo $hideId;?>);</script> <?php echo 'ok';
|
||||
}
|
||||
else {
|
||||
echo $objSetupNeraca->strDBError;
|
||||
}
|
||||
}
|
||||
if ($modus=='insert'){
|
||||
if ($objSetupNeraca->insertAkun($noakun,$namaakun,$nogrupakun,$icon)) {?>
|
||||
<script language="javascript">alert('sukses');</script> <?php echo 'ok';
|
||||
}
|
||||
else {
|
||||
echo $objSetupNeraca->strDBError;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
49
keuangan/setup/proses_rla.php
Normal file
49
keuangan/setup/proses_rla.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once("../../core/main.php");
|
||||
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
$modus = isset($_POST['modus']) ? htmlspecialchars($_POST['modus']) : "";
|
||||
$hideId = isset($_POST['hideId']) ? htmlspecialchars($_POST['hideId']) : "";
|
||||
$noakun = isset($_POST['noakun']) ? htmlspecialchars($_POST['noakun']) : "";
|
||||
$namaakun = isset($_POST['namaakun']) ? htmlspecialchars($_POST['namaakun']) : "";
|
||||
$nogrupakun = isset($_POST['nogrupakun']) ? htmlspecialchars($_POST['nogrupakun']) : "";
|
||||
$icon = $_POST['icon'] ;
|
||||
|
||||
require_once("rla.php");
|
||||
$objSetupRLA = new rla();
|
||||
|
||||
$objSetupRLA->db_host=$hostname;
|
||||
$objSetupRLA->db_user=$username;
|
||||
$objSetupRLA->db_pass=$password;
|
||||
$objSetupRLA->db_database=$database;
|
||||
if(!$objSetupRLA->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
if ($modus=='modify'){
|
||||
if ($objSetupRLA->updateAkun(str_replace('_','.',$noakun),$namaakun,$nogrupakun,$icon)) {?>
|
||||
<!--<script language="javascript">alert('sukses');</script>--> <?php echo 'ok';
|
||||
}
|
||||
else {
|
||||
echo $objSetupRLA->strDBError;
|
||||
}
|
||||
}
|
||||
if ($modus=='insert'){
|
||||
if ($objSetupRLA->insertAkun($noakun,$namaakun,$nogrupakun,$icon)) {?>
|
||||
<script language="javascript">alert('sukses');</script> <?php echo 'ok';
|
||||
}
|
||||
else {
|
||||
echo $objSetupRLA->strDBError;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
51
keuangan/setup/proses_tarif.php
Normal file
51
keuangan/setup/proses_tarif.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once("../../core/main.php");
|
||||
//$var=decode($_SERVER['REQUEST_URI']);
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
$modus = isset($_POST['modus']) ? htmlspecialchars($_POST['modus']) : "";
|
||||
$hideId = isset($_POST['hideId']) ? htmlspecialchars($_POST['hideId']) : "";
|
||||
$noakun = isset($_POST['noakun']) ? htmlspecialchars($_POST['noakun']) : "";
|
||||
$namaakun = isset($_POST['namaakun']) ? htmlspecialchars($_POST['namaakun']) : "";
|
||||
$nogrupakun = isset($_POST['nogrupakun']) ? htmlspecialchars($_POST['nogrupakun']) : "";
|
||||
$icon = $_POST['icon'] ;
|
||||
$tarif=isset($_POST['tarif']) ? htmlspecialchars($_POST['tarif']) : "";
|
||||
$jasa_sarana=isset($_POST['jassar']) ? htmlspecialchars($_POST['jassar']) : "";
|
||||
$jasa_pelayanan=isset($_POST['jaspel']) ? htmlspecialchars($_POST['jaspel']) : "";
|
||||
|
||||
require_once("m_tarif2012.php");
|
||||
$objSetupTarif = new m_tarif2012();
|
||||
$objSetupTarif->db_host=$hostname;
|
||||
$objSetupTarif->db_user=$username;
|
||||
$objSetupTarif->db_pass=$password;
|
||||
$objSetupTarif->db_database=$database;
|
||||
if(!$objSetupTarif->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
if ($modus=='modify'){
|
||||
if ($objSetupTarif->updateAkun(str_replace('_','.',$noakun),$namaakun,$nogrupakun,$jasa_sarana,$jasa_pelayanan,$tarif)) {?>
|
||||
<!--<script language="javascript">alert('sukses');</script>--> <?php echo 'ok';
|
||||
}
|
||||
else {
|
||||
echo $objSetupTarif->strDBError;
|
||||
}
|
||||
}
|
||||
if ($modus=='insert'){
|
||||
if ($objSetupTarif->insertAkun($noakun,$namaakun,$nogrupakun,$jasa_sarana,$jasa_pelayanan,$tarif)) {?>
|
||||
<script language="javascript">alert('sukses');</script> <?php echo 'ok';
|
||||
}
|
||||
else {
|
||||
echo $objSetupTarif->strDBError;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
155
keuangan/setup/realisasi_anggaran.php
Normal file
155
keuangan/setup/realisasi_anggaran.php
Normal file
@@ -0,0 +1,155 @@
|
||||
<link href="keuangan/doc/stylesheets/cell.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link href="keuangan/css/thickbox.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="keuangan/doc/javascripts/jquery.js"></script>
|
||||
<script language="javascript" src="keuangan/javascript/thickbox.js"></script>
|
||||
<script language="javascript" src="keuangan/javascript/jquery.form.js"></script>
|
||||
|
||||
<?php
|
||||
ini_set('display_errors',FALSE);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<SCRIPT language=JavaScript type=text/javascript>
|
||||
function actionPic(modus,id,name) {
|
||||
if (modus=='delete'){
|
||||
$(document).ready(function(){
|
||||
if ( confirm ('Yakin hapus '+name+' ?')==true){
|
||||
$.post('keuangan/setup/delete_rla.php',{id: id},function(response){
|
||||
var x=response.trim(' ');
|
||||
if(x == 'ok'){
|
||||
$('tr#node-'+id).hide();
|
||||
//alert('Delete sukses');
|
||||
}
|
||||
//else alert('Delete gagal');
|
||||
dataType: 'json' });
|
||||
}
|
||||
else {
|
||||
alert("batal");
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</SCRIPT>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="keuangan/doc/javascripts/jquery.ui.js"></script>
|
||||
|
||||
|
||||
<!-- BEGIN Plugin Code -->
|
||||
|
||||
<link href="keuangan/src/stylesheets/jquery.treeTable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="keuangan/src/javascripts/jquery.treeTable.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$(".example").treeTable({
|
||||
initialState: "expanded"
|
||||
});
|
||||
|
||||
// Drag & Drop Example Code
|
||||
$("#dnd-example .file, #dnd-example .folder").draggable({
|
||||
helper: "clone",
|
||||
opacity: .75,
|
||||
refreshPositions: true,
|
||||
revert: "invalid",
|
||||
revertDuration: 300,
|
||||
scroll: true
|
||||
});
|
||||
|
||||
$("#dnd-example .folder").each(function() {
|
||||
$($(this).parents("tr")[0]).droppable({
|
||||
accept: ".file, .folder",
|
||||
drop: function(e, ui) {
|
||||
$($(ui.draggable).parents("tr")[0]).appendBranchTo(this);
|
||||
|
||||
// Issue a POST call to send the new location (this) of the
|
||||
// node (ui.draggable) to the server.
|
||||
$.post("move.php", {id: $(ui.draggable).parents("tr")[0].id, to: this.id});
|
||||
},
|
||||
hoverClass: "accept",
|
||||
over: function(e, ui) {
|
||||
if(this.id != $(ui.draggable.parents("tr.parent")[0]).id && !$(this).is(".expanded")) {
|
||||
$(this).expand();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Make visible that a row is clicked
|
||||
$("table#dnd-example tbody tr").mousedown(function() {
|
||||
$("tr.selected").removeClass("selected"); // Deselect currently selected rows
|
||||
$(this).addClass("selected");
|
||||
});
|
||||
|
||||
// Make sure row is selected when span is clicked
|
||||
$("table#dnd-example tbody tr span").mousedown(function() {
|
||||
$($(this).parents("tr")[0]).trigger("mousedown");
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<?php
|
||||
require_once("core/main.php");
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
require_once("rla.php");
|
||||
$objSetupRLA = new rla();
|
||||
|
||||
|
||||
$objSetupRLA->db_host=$hostname;
|
||||
$objSetupRLA->db_user=$username;
|
||||
$objSetupRLA->db_pass=$password;
|
||||
$objSetupRLA->db_database=$database;
|
||||
|
||||
if(!$objSetupRLA->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<!--<a class='thickbox' href="./setup/form_perkiraan.php?&modus=insert">Tambah</a> -->
|
||||
|
||||
<table class="example" id="dnd-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nama Akun</th>
|
||||
<th>Id</th>
|
||||
<th>Parent Id</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$allFields=$objSetupRLA->getAllFields();
|
||||
foreach($allFields as $item) {
|
||||
?>
|
||||
<tr id="node-<?php echo str_replace(".","_",$item['Id']) ?>"<?php if(isset($item['parentId'])) echo str_replace(".","_"," class=\"child-of-node-{$item['parentId']}\"") ?>>
|
||||
<td><span class="<?php echo ($item['slave'] == '0' ) ? "folder" : "file"
|
||||
?>"><?php echo $item['name']?></span></td>
|
||||
<td><?php echo $item['Id'] ?></td>
|
||||
|
||||
<td class="akun"><?php echo $item['parentId'] ?></td>
|
||||
<td class="{CELLCLASS_M}" valign="middle">
|
||||
<!-- <a class='thickbox' href="home.php?<?php //echo paramEncrypt('page=./setup/form_perkiraan&modus=modify&id='.$item['Id'])?>"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a>
|
||||
-->
|
||||
<?php if($item['slave'] == 0): echo '<a class="add thickbox" href="keuangan/setup/form_rla.php?&modus=insert&nogrupakun='.$item['Id'].'" id="'.str_replace(".","_",$item['Id']).'"><img src="./images/add.gif" alt="Add" title="Add" width="18" height="18" border="0" style="cursor:pointer" /></a> '; endif;?>
|
||||
<a class='thickbox' href="keuangan/setup/form_rla.php?&modus=modify&id=<?php echo $item['Id']?>"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a>
|
||||
<img src="./images/delete.gif" alt="Delete" title="Delete" width="18" height="18" border="0" onClick="actionPic('delete',<?php echo "'".$item['Id']."'" ?>,<?php echo "'".$item['name']."'" ?>);" style="cursor:pointer"> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden' ?>"</script><?php
|
||||
}
|
||||
?>
|
||||
62
keuangan/setup/rla.php
Normal file
62
keuangan/setup/rla.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
class rla {
|
||||
var $db_host;
|
||||
var $db_user;
|
||||
var $db_pass;
|
||||
var $allFields = array();
|
||||
var $strDBError = "";
|
||||
var $intRow = 0;
|
||||
|
||||
public function getAllFields(){
|
||||
$sql="select * from mk_realisasi_anggaran order by Id,position";
|
||||
$res = $db->query($sql);
|
||||
$allFields=array();
|
||||
foreach($res->fetchAll() as $val) {
|
||||
array_push($allFields,$val);
|
||||
}
|
||||
return $allFields;
|
||||
}
|
||||
public function getAllFieldsById($id){
|
||||
$sql="select * from mk_realisasi_anggaran where Id='$id' order by Id";
|
||||
$res = $db->query($sql);
|
||||
$allFields=array();
|
||||
$allFields = $res->fetchAll()[0];
|
||||
return $allFields;
|
||||
}
|
||||
public function updateAkun($id,$namaakun,$parentId,$icon){
|
||||
$strSQL ="update mk_realisasi_anggaran set name='$namaakun', parentId='$parentId',slave='$icon' where Id='$id'";
|
||||
$resQuery = $db->query($strSQL);
|
||||
if ($resQuery ) {
|
||||
$this->intRow = mysql_affected_rows();
|
||||
return true;
|
||||
} else {
|
||||
$this->strDBError = mysqli_error($connect);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function insertAkun($id,$namaakun,$parent){
|
||||
$strSQL ="insert into mk_realisasi_anggaran(Id,NAME,parentId) values('$id','$namaakun','$parent') ";
|
||||
$resQuery = $db->query($strSQL);
|
||||
if ($resQuery ) {
|
||||
$this->intRow = mysql_affected_rows();
|
||||
return true;
|
||||
} else {
|
||||
$this->strDBError = mysqli_error($connect);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function db_connect(){
|
||||
$conn = mysql_connect($this->db_host, $this->db_user, $this->db_pass);
|
||||
if($conn) {
|
||||
mysql_select_db($this->db_database, $conn);
|
||||
}
|
||||
return $conn;
|
||||
}
|
||||
|
||||
public function db_disconnect(){
|
||||
mysqli_close();
|
||||
}
|
||||
}
|
||||
?>
|
||||
162
keuangan/setup/tarif.php
Normal file
162
keuangan/setup/tarif.php
Normal file
@@ -0,0 +1,162 @@
|
||||
<link href="keuangan/doc/stylesheets/cell.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link href="keuangan/css/thickbox.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="keuangan/doc/javascripts/jquery.js"></script>
|
||||
<script language="javascript" src="keuangan/javascript/thickbox.js"></script>
|
||||
<script language="javascript" src="keuangan/javascript/jquery.form.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<SCRIPT language=JavaScript type=text/javascript>
|
||||
function actionPic(modus,id,name) {
|
||||
if (modus=='delete'){
|
||||
$(document).ready(function(){
|
||||
if ( confirm ('Yakin hapus '+name+' ?')==true){
|
||||
$.post('keuangan/setup/delete_tarif.php',{id: id},function(response){
|
||||
var x=response.trim(' ');
|
||||
if(x == 'ok'){
|
||||
$('tr#node-'+id).hide();
|
||||
//alert('Delete sukses');
|
||||
}
|
||||
//else alert('Delete gagal');
|
||||
dataType: 'json' });
|
||||
}
|
||||
else {
|
||||
alert("batal");
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</SCRIPT>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="keuangan/doc/javascripts/jquery.ui.js"></script>
|
||||
|
||||
|
||||
<!-- BEGIN Plugin Code -->
|
||||
|
||||
<link href="keuangan/src/stylesheets/jquery.treeTable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="keuangan/src/javascripts/jquery.treeTable.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
$(".example").treeTable({
|
||||
//initialState: "expanded"
|
||||
initialState: "collapsed"
|
||||
//expandable: false
|
||||
});
|
||||
|
||||
// Drag & Drop Example Code
|
||||
$("#dnd-example .file, #dnd-example .folder").draggable({
|
||||
helper: "clone",
|
||||
opacity: .75,
|
||||
refreshPositions: true,
|
||||
revert: "invalid",
|
||||
revertDuration: 300,
|
||||
scroll: true
|
||||
});
|
||||
|
||||
$("#dnd-example .folder").each(function() {
|
||||
$($(this).parents("tr")[0]).droppable({
|
||||
accept: ".file, .folder",
|
||||
drop: function(e, ui) {
|
||||
$($(ui.draggable).parents("tr")[0]).appendBranchTo(this);
|
||||
|
||||
// Issue a POST call to send the new location (this) of the
|
||||
// node (ui.draggable) to the server.
|
||||
$.post("move.php", {id: $(ui.draggable).parents("tr")[0].id, to: this.id});
|
||||
},
|
||||
hoverClass: "accept",
|
||||
over: function(e, ui) {
|
||||
if(this.id != $(ui.draggable.parents("tr.parent")[0]).id && !$(this).is(".expanded")) {
|
||||
$(this).expand();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Make visible that a row is clicked
|
||||
$("table#dnd-example tbody tr").mousedown(function() {
|
||||
$("tr.selected").removeClass("selected"); // Deselect currently selected rows
|
||||
$(this).addClass("selected");
|
||||
});
|
||||
|
||||
// Make sure row is selected when span is clicked
|
||||
$("table#dnd-example tbody tr span").mousedown(function() {
|
||||
$($(this).parents("tr")[0]).trigger("mousedown");
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<?php
|
||||
|
||||
if (isset($_SESSION['KDUNIT']))
|
||||
{
|
||||
require_once("m_tarif2012.php");
|
||||
$objSetupTarif = new m_tarif2012();
|
||||
$objSetupTarif->db_host=$hostname;
|
||||
$objSetupTarif->db_user=$username;
|
||||
$objSetupTarif->db_pass=$password;
|
||||
$objSetupTarif->db_database=$database;
|
||||
if(!$objSetupTarif->db_connect()) {
|
||||
echo "<h1>Sorry! Could not connect to the database server.</h1>";
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
||||
<table class="example" id="dnd-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nama Akun</th>
|
||||
<th>Tarif</th>
|
||||
<th>Jasa Layanan</th>
|
||||
<th>Jasa Sarana</th>
|
||||
<th>Id</th>
|
||||
<th>Parent Id</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$allFields=$objSetupTarif->getAllFields();
|
||||
foreach($allFields as $item) {
|
||||
?>
|
||||
<tr id="node-<?php echo str_replace(".","_",$item['kode_tindakan']) ?>"<?php if(isset($item['kode_gruptindakan'])) echo str_replace(".","_"," class=\"child-of-node-{$item['kode_gruptindakan']}\"") ?>>
|
||||
<td><span class="<?php echo ($item['tarif'] == '0' ) ? "folder" : "file"
|
||||
?>"><?php echo $item['nama_tindakan']?></span></td>
|
||||
<td><?php echo $item['tarif'] ?></td>
|
||||
<td><?php echo $item['jasa_pelayanan'] ?></td>
|
||||
<td><?php echo $item['jasa_sarana'] ?></td>
|
||||
<td><?php echo $item['kode_tindakan'] ?></td>
|
||||
<td class="akun"><?php echo $item['kode_gruptindakan'] ?></td>
|
||||
<td class="{CELLCLASS_M}" valign="middle">
|
||||
<!-- <a class='thickbox' href="home.php?<?php //echo paramEncrypt('page=./setup/form_perkiraan&modus=modify&id='.$item['Id'])?>"><img src="./images/edit.gif" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer" /></a>
|
||||
-->
|
||||
<?php if($item['tarif'] == 0): ?> <a class='thickbox' href="keuangan/setup/form_tarif.php?&modus=insert&nogrupakun=<?php echo $item['kode_tindakan']?> ">
|
||||
<img src="./keuangan/add.png" alt="Add" title="Add" width="18" height="18" border="0" style="cursor:pointer" /></a> <?php endif;?>
|
||||
<!--<a class="edit" id="<?php //echo str_replace(".","_",$item['Id']);?>" svn="edit_<?php //echo str_replace(".","_",$item['Id']);?>">edit</a>
|
||||
<a class="save" id="<?php //echo str_replace(".","_",$item['Id']);?>" svn="save_<?php //echo str_replace(".","_",$item['Id']);?>">save</a>-->
|
||||
|
||||
<a class='thickbox' href="keuangan/setup/form_tarif.php?&modus=modify&id=<?php echo $item['kode_tindakan']?>&hideid=<?php echo $item['kode_tindakan']?> ">
|
||||
<img src="./keuangan/edit.png" alt="Edit" title="Edit" width="18" height="18" border="0" style="cursor:pointer"></a>
|
||||
|
||||
<img src="./keuangan/delete.gif" alt="Delete" title="Delete" width="18" height="18" border="0" onClick="actionPic('delete',<?php echo "'".$item['kode_tindakan']."'" ?>,<?php echo "'".$item['nama_tindakan']."'" ?>);" style="cursor:pointer"> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
}else{
|
||||
?><script language="javascript">document.location.href="index.php?<?php echo 'status=forbidden'?>"</script><?php
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user