<table id="example" class="table table-striped" cellspacing="0"> <thead> <tr> <th>No.</th> <th width="15%" align="left"><input type="checkbox" name="chkall" id="chkall" onclick="return checkall('selector[]');">Select All</th> <th>First Name</th> <th>Last Name</th> <th>Edit </th> <th>Details</th> </tr> </thead> <tbody> <?php $client = new Client(); $clientList = $client->listOfClients(); foreach ($clientList as $list) { echo '<td width="5%" align="center"></td>'; echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->client_id . '"/>'; echo '<td width="35%" >' . $list->client_name . '</td>'; echo '<td width="25%" >' . $list->client_short_name . '</td>'; echo '<td width="10%" ><a href = "index.php?view=edit&id=' . $list->client_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> Edit</a></td>'; echo '<td><a href = "index.php?view=view&clientId=' . $list->client_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> View</a></td>'; echo '</tr>'; } ?> </tbody> </table> <?php if ($_SESSION['ACCOUNT_TYPE'] == 'administrator') {
?> officer/logout.php" class="btn btn-info btn-xsm"><span class="glyphicon glyphicon-log-out"></span>Log out</a></p></div> </div> </div> <form action="controller.php?action=addClient" class="form-horizontal well span9" method="post"> <fieldset> <legend>Add Project's Client</legend> <div class="col-md-8"> <label class="col-md-4 control-label" for="pclient">Project Client</label> <div class="col-md-8"> <select class="form-control input-sm" name="pclient" id="pclient">'; <?php $client = new Client(); $cur = $client->listOfClients(); foreach ($cur as $client) { echo '<option value="' . $client->client_id . '">' . $client->client_name . '</option>'; } ?> </select> </div> </div> <br /><br /> <div class="col-md-8"> <label class="col-md-4 control-label" for= "idno"></label> <div class="col-md-8"> <button class="btn btn-default" name="save" type="submit" ><span class="glyphicon glyphicon-floppy-save"></span> Save</button>