Ejemplo n.º 1
0
					<div class="col-md-8">
						<label class="col-md-4 control-label" for="projecttypeid">Project Type </label>
						
						<div class="col-md-8">
							<input class="form-control input-sm" id="projecttypeid" name="projecttypeid" placeholder="Project Type" type="text" value="">
						</div>
					</div> <br /><br />
					
					<div class="col-md-8">
						<label class="col-md-4 control-label" for="psector">Project-Sector</label>
						
						<div class="col-md-8">
							<select class="form-control input-sm" name="psector" id="psector">';
								<?php 
$sector = new Sector();
$cur = $sector->listOfSectors();
foreach ($cur as $sector) {
    echo '<option value="' . $sector->sector_id . '">' . $sector->name . '</option>';
}
?>
								
							</select>	
						</div>
					</div>
					<br /><br />
					
					<?php 
if ($projectFrom == "school") {
    echo '<div class="col-md-8">
							<label class="col-md-4 control-label" for="pschool">Project-School</label>
							
Ejemplo n.º 2
0
				  		<th>Sector 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->sector_id . '"/>';
        echo '<td width="60%" >' . $list->name . '</td>';
        echo '<td width="10%" ><a href = "index.php?view=edit&id=' . $list->sector_id . '" ><span class="glyphicon glyphicon-list-alt"> </span>  Edit</a></td>';
        echo '<td><a href = "index.php?view=view&sectorId=' . $list->sector_id . '" ><span class="glyphicon glyphicon-list-alt"> </span>  View</a></td>';
        echo '</tr>';
    }
    //}
} else {
    $sector = new sector();
    $sectorList = $sector->listOfsectors();
    foreach ($sectorList as $list) {
        echo '<tr>';