<?php 
require '../connect.inc.php';
require '../core.inc.php';
//get * from the corresponding table
$tdata = getanyfield('*', 't1_1', '\'1\'', '1', $conn);
$q1 = array_fill(0, 3, 0);
$q2 = array_fill(0, 3, 0);
?>
<!DOCTYPE html>
<html>
<head>
	<title>kjlasf Survey Response | Formia</title>
	<link rel="stylesheet" type="text/css" href="cssreset.css">
	<link rel="stylesheet" type="text/css" href="resStyle.css">
	<link href='http://fonts.googleapis.com/css?family=Ubuntu|Roboto+Condensed:700,300,400' rel='stylesheet' type='text/css'>
	<!--Load the AJAX API from Google for Generating chart-->
	<script type="text/javascript" src="https://www.google.com/jsapi"></script>
</head>


<body>
<header class="mainHeader">

	<header class="formia">
		<a href="../index.php">Formia Home</a> | <a href="../console1.php">Admin Console</a>
		 || kjlasf 
	</header>

	<header class="formTitle">
		<div class="review">
</div>
			<?php 
}
?>
			<div class="c-cnf">
				<p>Create new survey form <a href="#" onclick='ajaxLoad("changingContent", "newform.php"), ajaxLoad("i-pageName", "newFormName.php")'><span class="c-button" id="c-button-cont0">New Form</span></a></p>
				<!--<div id="c-button-cont0" class="c-button">New Form</div>-->
			</div>

			


			<?php 
global $userData, $tableData, $tableName;
$tableName = "t" . $userData[1];
$tableData = getanyfield('name, published, link, fileLoc', $tableName, '\'1\'', '1', $conn);
if ($tableData) {
    ?>
				<p class="t-heading">Current Forms</p>
				<!--style for h3 tag -->
				<table>
					<tr><!--head-->
						<td class="tbl-h">Form Title</td>
						<td class="tbl-h">Status</td>
						<td class="tbl-h">Link</td>
					</tr>
				<?php 
    while (@($dataCount = $tableData->fetch_row())) {
        ?>
							<tr class="tbl-r">
								<td class="tbl-cell"><a href="<?php