<?php

$accessControl = array("Admin" => true);
require_once '../../AccessControl.php';
?>

						<div class="response">

							<div class="callout-danger-template callout callout-danger" style="display:none;">								
								<h4></h4>								
							</div>

							<div class="callout-success-template callout callout-success" style="display:none;">								
								<h4></h4>								
							</div>

						</div>

                    	<div class="box box-solid box-primary dbinfo">
                            <div class="box-header">
                                <h3 class="box-title"><?php echo _DATABASE_INFO; ?></h3>
                                
                            </div><!-- /.box-header -->

                            <div class="box-body table-responsive">
								
								<table class="table table-bordered">
									<tr>
										<td style="width:20%"><?php echo _DB_SERVER; ?></td>
										<td class="dbserver"><?php echo $mysqlserver; ?></td>
										<td style="width:50%" class=""><span class="badge bg-green"><i class="fa fa-check"></i></span></td>
									</tr>
									<tr>
										<td><?php echo _DB_NAME; ?></td>
										<td class="dbname"><?php echo $DatabaseName; ?></td>
										<td class=""><span class="badge bg-green"><i class="fa fa-check"></i></span></td>
									</tr>
									<tr>
										<td><?php echo _DB_USERNAME; ?></td>
										<td class="dbuname"><?php echo $mysqluname; ?></td>
										<td class="dbuname_info"><span class="badge bg-green"><i class="fa fa-check"></i></span> </td>
									</tr>
									<tr>
										<td><?php echo _NUMBER_OF_PROFILES; ?></td>
										<td class="numprofiles"></td>
										<td class="">
											<div class="progress xs">
                                                <div style="width: 10%" data-max="<?php echo _LIMIT_PROFILES; ?>" class="progress-bar progress-bar-yellow"></div>
                                            </div>
										</td>
									</tr>
									<tr>
										<td><?php echo _NUMBER_TABLES_ESTIMATE; ?></td>
										<td class="numtables"></td>
										<td class="">
											<div class="progress xs">
                                                <div style="width: 55%" class="progress-bar progress-bar-danger"></div>
                                            </div>
										</td>
									</tr>
									<tr>
										<td><?php echo _MYSQLTMP; ?></td>
										<td class="dbtmp"><?php echo $mysqltmp; ?></td>
										<td class=""><span class="badge bg-yellow"><i class="fa fa-exclamation"></i></span><?php echo _MYSQLTMP_INFO; ?></td>
									</tr>
									<tr>
										<td><?php echo _DB_SIZE_ESTIMATE; ?></td>
										<td class="dbsize"><span><?php echo _NO_ESTIMATE_AVAILABLE; ?></span></td>
										<td class=""><button class="btn btn-success estimate-button"><?php echo _GET_ESTIMATE; ?></button></td>
									</tr>
									
								</table>                            	

 								<div style="clear:both">&nbsp;<br />&nbsp;</div>

								<div class="alert alert-info"><i class="fa fa-info"></i><?php echo _DATABASE_INFO_INFO; ?></div>

                            </div><!-- /.box-body -->
                        </div><!-- /.box -->   	

						<div class="box box-solid box-danger globalstats">
                            <div class="box-header">
                                <h3 class="box-title"><?php echo _LARGEST_PROFILES; ?></h3>
                                
                            </div><!-- /.box-header -->

                            <div class="box-body table-responsive">

							<table id="globalstats_table" class="table table-bordered" cellspacing="0" width="100%"></table>	
							
                            </div><!-- /.box-body -->
                        </div><!-- /.box -->

