if ($account_password != Null) { $competence = new Competence(); $competenceList = $competence->listOfCompetence(); foreach ($competenceList as $list) { echo '<tr>'; echo '<td width="5%" align="center"></td>'; echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->competence_id . '"/>'; echo '<td width="55%" >' . $list->name . '</td>'; echo '<td width="15%" ><a href = "index.php?view=edit&id=' . $list->competence_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> Edit</a></td>'; echo '<td><a href = "index.php?view=view&competenceId=' . $list->competence_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> View</a></td>'; echo '</tr>'; } //} } else { $competence = new Competence(); $competenceList = $competence->listOfCompetence($competence_id); foreach ($competenceList as $list) { echo '<tr>'; echo '</tr>'; } } ?> </tbody> </table> <div class="form-group"> <div class="col-md-8"> <label class="col-md-4 control-label" for="address">New Competence:</label>
<th>Competence Name</th> <th>Edit </th> <th>Details</th> </tr> </thead> <tbody> <?php $account_username = $_SESSION['ACCOUNT_USERNAME']; //$account_password = $_SESSION['ACCOUNT_PASSWORD']; $account_type = $_SESSION['ACCOUNT_TYPE']; //echo 'username = '******'account type = '. $account_type; //echo 'password = '******'<tr>'; echo '<td width="5%" align="center"></td>'; echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->competence_id . '"/>'; echo '<td width="55%" >' . $list->name . '</td>'; echo '<td width="15%" ><a href = "index.php?view=edit&id=' . $list->competence_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> Edit</a></td>'; echo '<td><a href = "index.php?view=view&competenceId=' . $list->competence_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> View</a></td>'; echo '</tr>'; } //} } else { $competence = new Competence(); //$competenceList = $competence->listOfCompetence($competence_id); foreach ($competenceList as $list) { echo '<tr>';