<?php TPL::output('admin/global/header.tpl.htm'); ?>

<!--left-->
<?php TPL::output('admin/global/left.tpl.htm'); ?>
<!--left-->

<!-- main -->
<div style="margin:0 0 0 200px;">
<div class="content-box-header" style="margin-bottom:10px;">
	<h3>Welcome to <?php echo get_setting('site_name'); ?> admin panel</h3>
</div>
<?php if ($this->writable_check) { ?>
<?php foreach ($this->writable_check as $key => $val) { ?>
<?php if(!$val) { ?>
<div class="notification png_bg error" id="notification_box" style="margin:5px auto; margin-bottom:10px; width:96%;"> <a href="javascript:;" class="close"></a>
	<div name="notification_content" style="height:20px;"><span style="float:left"><?php echo $key; ?>The folder cannot be written to, please check the permissions on the folder is set to 777</span></div>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
<div style="width:950px;">
<h2>Welcome to Question and Answer Software</h2>
<div class="content-box-content" style=" float:left;width:550px;">
	<table width="100%">
		<thead>
			<tr>
				<th colspan="4">System information</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>PHP version</td>
				<td><?php echo PHP_VERSION; ?></td>
				<td>MySQL version</td>
				<td><?php echo MYSQL_VERSION; ?></td>
			</tr>
			<tr>
				<td>Total number of members</td>
				<td><?php echo $this->users_count; ?></td>
				<td>Activate member by Email</td>
				<td><?php echo $this->users_valid_email_count; ?></td>
			</tr>
			<tr>
				<td>Total number of questions</td>
				<td><?php echo $this->question_count; ?></td>
				<td>Total number of answers</td>
				<td><?php echo $this->answer_count; ?></td>
			</tr>
			<tr>
				<td>Waiting for answer</td>
				<td><?php echo $this->question_no_answer_count; ?></td>
				<td>Number of best answers</td>
				<td><?php echo $this->best_answer_count; ?></td>
			</tr>
			<tr>
				<td>Total number of topics</td>
				<td><?php echo $this->topic_count; ?></td>
				<td>Total number of attachments</td>
				<td><?php echo $this->attach_count; ?></td>
			</tr>
			<tr>
				<td>Question waiting to be reviewed</td>
				<td><?php echo $this->approval_question_count; ?></td>
				<td>Answer waiting to be reviewed</td>
				<td><?php echo $this->approval_answer_count; ?></td>
			</tr>
		<tbody>
	</table>
</div>

<div class="content-box-content" style=" float:left;width:300px;" id="offical_notify">
	<div style="border:1px solid rgb(204, 204, 204); margin-top:0px;">
		<div style="width: 100%; height:34px;cursor: s-resize;" class="content-tgbox-header">
			<h6>Official information</h6>
		</div>
		<ul class="tab-content default-tab">Best Question &amp; Answer Software 
		<li>Version: <a href="http://www.fbschool.com/tanyacms/?copyright" target="blank">TanyaCMS <?php echo GET_VERSION; ?></a></li>
		<li>Forum <a href="http://www.fbschool.com/tanyacms/?copyright" target="blank">Question &amp; Answer</a></li></ul>
	</div>
</div>

</div>

<!-- footer -->
<?php TPL::output('admin/global/footer.tpl.htm'); ?>
<!-- footer -->

</div>
<!-- main -->

</div>

</body>
</html>