<?php session_start(); ?> <!-- session start -->
<?php include("../include/config.php"); ?> <!-- database connection -->
<?php include("../include/connect_url.php"); ?> <!-- connection url/link folder -->
<?php include("../include/date_time.php"); ?> <!-- date & time format -->
<?php include("../database/account.php"); ?> <!-- query database account -->
<?php include("../include/lang.php"); ?> <!-- language -->
<?php include("../include/session_login.php"); ?> <!-- session login -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title><?php echo $lang['Dashboard']; ?> ::: <?php include("../template/title.php"); ?></title>

<link rel="shortcut icon" href="<?php echo $connect_url_data; ?>/favicon.ico" />

<link href="<?php echo $connect_url_data; ?>/css/styles.css" rel="stylesheet" type="text/css" />
<!--[if IE]> <link href="<?php echo $connect_url_data; ?>/css/ie.css" rel="stylesheet" type="text/css"> <![endif]-->
<link rel="stylesheet" href="<?php echo $connect_url_data; ?>/font/font-awesome-4.3.0/css/font-awesome.min.css">

<script type="text/javascript" src="<?php echo $connect_url_data; ?>/js/download/jquery183.js"></script> 
<script type="text/javascript" src="<?php echo $connect_url_data; ?>/js/download/jquery192.js"></script>

<script type="text/javascript" src="<?php echo $connect_url_data; ?>/js/plugins/charts/jquery.sparkline.min.js"></script>
<script type="text/javascript" src="<?php echo $connect_url_data; ?>/js/plugins/ui/jquery.collapsible.min.js"></script>
<script type="text/javascript" src="<?php echo $connect_url_data; ?>/js/plugins/ui/jquery.breadcrumbs.js"></script>
<script type="text/javascript" src="<?php echo $connect_url_data; ?>/js/plugins/ui/jquery.easytabs.min.js"></script>
<script type="text/javascript" src="<?php echo $connect_url_data; ?>/js/files/functions_blank_no_sidebar.js"></script>

</head>

<body>

<!-- amchart -->
<script type="text/javascript" src="<?php echo $connect_url_data; ?>/chart/daily/amcharts.js"></script>
<script type="text/javascript" src="<?php echo $connect_url_data; ?>/chart/daily/serial.js"></script>
<script type="text/javascript" src="<?php echo $connect_url_data; ?>/chart/daily/none.js"></script>

<!-- header-->
<?php include("../template/header.php"); ?>

<!-- sidebar-->
<?php include("../template/sidebar.php"); ?>
   
<!-- Content begins -->
<div id="content">
    
    <!-- Breadcrumbs line -->
    <div class="breadLine">
        <div class="bc">
            <ul id="breadcrumbs" class="breadcrumbs">
                <li><a href="<?php echo $connect_url_data; ?>/dashboard"><?php echo $lang['Dashboard']; ?></a></li>
                <li class="current"><a href="#"><?php echo $lang['Welcome']; ?> <?php echo $db_user_firstname; ?>!</a></li>
            </ul>
        </div>
        
<!-- breaklink -->
<?php include("../menu/breadlink.php"); ?>
	
    </div>
    
    <!-- Main content -->
    <div class="wrapper">
    
    <div class="fluid">
      
             <div class="widget grid5 ">
            <div class="whead"><h6><span class="fa fa-hospital-o"></span>&nbsp; <?php echo $db_account_account_name; ?></h6></div>
           
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Account No']; ?>:</label></div>
                        <div class="grid8"><?php echo $db_account_account_no; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Account Name']; ?>:</label></div>
                        <div class="grid8"><b><?php echo $db_account_account_name; ?></b></div>
                </div>
		
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Address']; ?>:</label></div>
                        <div class="grid8"><?php echo $db_account_address; ?></div>
                </div>
		
		
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Phone No']; ?>:</label></div>
                        <div class="grid8"><?php echo $db_account_phone_no; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Mobile No']; ?>:</label></div>
                        <div class="grid8"><?php echo $db_account_mobile_no; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Email']; ?>:</label></div>
                        <div class="grid8"><?php echo $db_account_email; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Website']; ?>:</label></div>
                        <div class="grid8"><?php echo $db_account_website; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Inpatient']; ?>:</label></div>
                        <div class="grid8"><span class="icon-user"></span><?php echo $numrows_transaction_monitoring1_nf; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid4"><label><?php echo $lang['Outpatient']; ?>:</label></div>
                        <div class="grid8"><span class="icon-user"></span><?php echo $numrows_transaction_monitoring2_nf; ?></div>
                </div>
		
		
	    </div>
	     


            <div class="widget grid7 chartWrapper">
                <div class="whead"><h6><span class="fa fa-area-chart"></span>&nbsp; <?php echo $lang['Everyday Transaction']; ?></h6></div>
                <div class="body">
			
<div id="chart_online_users"></div>	

<style>
#chart_online_users {
width	: 100%;
height	: 200px;
}	
</style>

<script>
	var chart = AmCharts.makeChart("chart_online_users", {
    "type": "serial",
    "theme": "none",
    //"pathToImages": "http://www.amcharts.com/lib/3/images/",
    "dataProvider": [
<?php    
$query_transaction_charge = mysql_query("SELECT * FROM tbl_transaction_charge WHERE a_status in ('1','3','5')"); 
while($row= mysql_fetch_assoc($query_transaction_charge))
{
    $db_transaction_charge_date = $row['date'];
    
$query_transaction_charge2 = mysql_query("SELECT * FROM tbl_transaction_charge WHERE date='$db_transaction_charge_date' AND a_status in ('1','3','5')"); 
$numrows_transaction_charge2 = mysql_numrows($query_transaction_charge2);
?>
     {
        "date": "<?php echo $db_transaction_charge_date; ?>",
        "value": "<?php echo $numrows_transaction_charge2; ?>"
    },
<?php } ?>
    
    ],
    "valueAxes": [{
        "axisAlpha": 0,
        "dashLength": 4,
        "position": "left"
    }],
    "graphs": [{
        "bulletSize": 14,
        "customBullet": "<?php echo $connect_url_data ?>/chart/images/star.png",
        "customBulletField": "customBullet",
        "valueField": "value"
    }],
    "marginTop": 20,
    "marginRight": 20,
    "marginLeft": 40,
    "marginBottom": 20,
    "chartCursor": {graphBulletSize:1.5},
    "autoMargins": false,
    "dataDateFormat": "YYYY-MM-DD",
    "categoryField": "date",
    "categoryAxis": {
        "parseDates": true,
        "axisAlpha": 0,
        "gridAlpha": 0,
        "inside": true,
        "tickLength": 0
    },
    "exportConfig": {
        "menuTop": "20px",
        "menuRight": "20px",
        "menuItems": [{
            "icon": '<?php echo $connect_url_data ?>/chart/images/export.png',
            "format": 'png'
        }]
    }
});
</script>
			
		</div>
            </div>
	    
	    
	

    
          <div class="widget grid3 ">
            <div class="whead"><h6><span class="fa fa-file"></span>&nbsp; <?php echo $lang['Localisation']; ?></h6></div>
           
		<div class="formRow">
                        <div class="grid5"><label><?php echo $lang['Timezone']; ?>:</label></div>
                        <div class="grid7"><?php echo $db_timezone_timezone; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid5"><label><?php echo $lang['Country']; ?>:</label></div>
                        <div class="grid7"><?php echo $db_country_country; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid5"><label><?php echo $lang['Language']; ?>:</label></div>
                        <div class="grid7"><img src="<?php echo $connect_url_data; ?>/images/lang/<?php echo $db_language_image; ?>"> <?php echo $db_language_language; ?></div>
                </div>
		
		<div class="formRow">
                        <div class="grid5"><label><?php echo $lang['Currency']; ?>:</label></div>
                        <div class="grid7"><a href="#" style="color:#ff0000;text-decoration:underline;"><?php echo "$db_currency_code1 $db_currency_currency"; ?></a></div>
                </div>
		
		<div class="formRow">
                        <div class="grid5"><label><?php echo $lang['Number Format']; ?>:</label></div>
                        <div class="grid7"><?php echo "$db_number_format_number_format "; ?></div>
                </div>
	    </div>
	  
	  <div class="widget grid4">
    <div class="whead"><h6><span class="fa fa-connectdevelop"></span>&nbsp; <?php echo $lang['Transaction Status']; ?></h6></div>
            
            <table cellpadding="0" cellspacing="0" width="100%" class="tDefault">
		    
<?php
$query_transaction_type2 = mysql_query("SELECT * FROM tbl_transaction_type");
while($row= mysql_fetch_assoc($query_transaction_type2))
{
    $db_transaction_type2_id = $row['id'];
    $db_transaction_type2_transaction_type = $row['transaction_type'];
    $db_transaction_type2_color = $row['color'];
?>
<tr>
<td width="40%"><?php echo $db_transaction_type2_transaction_type; ?></td>
<td width="60%"><a href='#' class='tablectrl_small b<?php echo $db_transaction_type2_color; ?> tipS' title='Options'><?php echo $db_transaction_type2_transaction_type; ?></a></td>
</tr>
   <?php } ?>        
                </tbody>
            </table>


</div>

	     
	     
	     
       
    </div>
    
   
	
    </div>
    <!-- Main content ends -->
    
</div>
<!-- Content ends -->  
             
</body>
</html>
