include 'error.php'; ?> <!-- Error Box End --></div> <div class="headDisp2">Activate Category :</div> <table cellpadding="0" cellspacing="0" border="0" class="display" id="results"> <thead> <tr> <th>No.</th> <th>Name</th> <th>Sub Categories</th> <th>Activate</th> </tr> </thead> <tbody> <?php $results_arr = getCatRaw($db, $_SESSION['UA_DETAILS']['randid'], $_SESSION['UA_DETAILS']['level']); $id = 0; foreach ($results_arr as $value) { $id++; ?> <tr> <td><?php echo $id; ?> </td> <td><?php echo $value['cat']; ?> </td> <td class="center"><input type="button" class="spbutton" value="Go" onclick="window.location='<?php echo $_SERVER['PHP_SELF'];
<form action="<?php echo $_SERVER['PHP_SELF']; ?> ?action=getpage&page=editqstn&type=mcq&subaction=editqstn&qid=<?php echo $_GET['qid']; ?> " method="post"> <fieldset> <legend>Category</legend> <ul> <li> <label for="quiz_category"><span class="required">Select Category</span></label> <select name="quiz_category" class="required"> <?php $catListRaw = getCatRaw($db, $_SESSION['UA_DETAILS']['randid'], $_SESSION['UA_DETAILS']['level']); foreach ($catListRaw as $catList) { if ($catList['cat'] == $qstnArr['category']) { echo '<option value="' . $catList['cat'] . '" class="active" selected="selected" >' . $catList['cat'] . '</option>'; } else { echo '<option value="' . $catList['cat'] . '" class="inactive" >' . $catList['cat'] . '</option>'; } } ?> </select> </li> <li> <label for="quiz_sub_category"><span class="required">Select Sub Category</span></label> <select name="quiz_sub_category" class="required"> <?php $subcatListRaw = getSubCatRaw($db, $qstnArr['category'], $_SESSION['UA_DETAILS']['randid'], $_SESSION['UA_DETAILS']['level']);