<?php if(!isset($RUN)) { exit(); } ?>
<HTML>
<HEAD>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<script language ="javascript" src="jquery.js"></script>
<script language ="javascript" src="extgrid.js"></script>
<script src="cms.js" type="text/javascript"></script>
<title>Quizzes and Surveys</title>
</HEAD>
<link href="style/index.css" type="text/css" rel="stylesheet" />
<link href="style/grid.css" type="text/css" rel="stylesheet" />
<BODY bgcolor="#97A3AF" >
<script language="javascript">
window.onscroll = function()
{
MoveLoadingMessage("loadingDiv");
}
jQuery.ajaxSetup({
beforeSend: function() {
$('#loadingDiv').show()
},
complete: function(){
$('#loadingDiv').hide()
},
success: function() {}
});
</script>
<table style="display:none" id="loadingDiv" style="position: absolute; left: 10px; top: 10px">
<tr>
<td>
<table>
<tr>
<td bgcolor="red">
<font color="white" size="3"><b> <?php echo PLEASE_WAIT ?> </b></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript">
MoveLoadingMessage("loadingDiv");
</script>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="middle">
<td>
<img src="<?php echo LOGO_FILE ?>" />
</td>
<td>
</td>
<td valign="middle">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="middle">
<td width="150px" valign="middle">
<img src="<?php echo HEADER_IMAGE_FILE ?>" />
</td>
<td>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="c_menu_td" bgcolor="white" valign="top" style="width:170px">
<br>
<table width="100%" >
<?php
if($expand == true) {
for($z=0;$z<sizeof($main_modules);$z++)
{
?>
<tr>
<td>
<label id="ctlmenuname" class="menu_header_name"><?php echo $MODULES[$main_modules[$z]['module_name']] ?></label>
<table cellpadding="0" cellspacing="0" border="0" style="background: url('i/ln.gif') repeat-x;
height: 1px; width: 75%; margin-top: 10px; margin-bottom: 5px;">
<tr>
<td>
</td>
</tr>
</table>
<table class="class1" cellspacing="0" cellpadding="3" Border="0" border="0" style="width:100%;border-collapse:collapse;">
<?php for($y=0;$y<sizeof($child_modules[$main_modules[$z]['id']]);$y++) { ?>
<tr>
<td>
<?php
$file_name = $child_modules[$main_modules[$z]['id']][$y]["file_name"];
echo "<a class=\"menu_child_name\" href='index.php?module=$file_name'>".$MODULES[$child_modules[$main_modules[$z]['id']][$y]["module_name"]]."</a>";
?>
</td>
</tr>
<?php } ?>
</table>
<br>
</td>
</tr>
<?php
}
}
?>
</table>
</td>
<td width="15px"></td>
<td align="center" valign="top" bgcolor="#F4F5F7" >
<table width="95%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td>
<table>
<tr>
<td></td>
</tr>
</table>
<div id="menu">
<?php
if(SHOW_MENU=="all" || (SHOW_MENU=="registered" && $autorized==true)) {
while($row = db::fetch($menus)) {
echo "<a href='?module=show_page&id=".$row['id']."'><font color=blue>".$row['page_name']."</font></a> ";
} } ?>
</div>
</td>
</tr>
<tr>
<td align="right">
<a href="logout.php" border="1"><img border=0 src="<?php echo LOGOUT_BUTTON_FILE ?>" /></a>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#F4F5F7">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="main_table_desc_text">
<font color="black">
<?php
echo desc_func();
?>
</font>
</td>
</tr>
<tr>
<td><br><hr><br></td>
</tr>
</table>
</td>
</tr>
<tr height="550px">
<td valign="top">
<?php
include "modules/".$module_name."_tmp.php";
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div style="display:<?php echo DEBUG_SQL=="yes" ? "" : "none" ?>">
<table style="width:100%" style="display:<?php echo DEBUG_SQL=="yes" ? "" : "none" ?>">
<tr>
<td bgcolor="white">
<table style="width:100%" cellpadding="0" cellspacing="0">
<?php
for($i=0;$i<count($queries);$i++)
{
?>
<tr>
<td bgcolor="moccasing" class="query_head">
<b>Query <?php echo $i+1 ?></b>
</td>
</tr>
<tr>
<td class="query">
<?php echo util::getFormattedSQL($queries[$i]) ?>
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
</table>
</div>
</BODY>
</HTML>