<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  <strong>Oh snap!</strong> Something went wrong!
</div></div>';
    }
} else {
    //echo '<br/><br/><br/><br/><br/>Page is refreshed. No need to post.';
    $outputMessage = null;
}
if (isset($_REQUEST['project_id'])) {
    // Project id is set that means this is for update, not add
    // Get project id
    $project_id = $_REQUEST['project_id'];
    //Get project
    $dbRow_Project = $objProject->getProject($userid, $project_id);
    if (isset($dbRow_Project)) {
        $dbRows_Skill = $objProject->getProjectSkills($project_id);
    }
}
// When page is refreshed, this will avoid multiple post
$_SESSION['key'] = mt_rand(1, 1000);
?>

<!-- Typehead -->
<script src="includes/typeahead.bundle.js"></script>
<!-- End of Typehead ref. -->

 <!-- Select 2 -->
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" />
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>
<link rel="stylesheet" href="includes/select2-bootstrap.min.css">
<link rel="stylesheet" href="includes/select2-bootstrap.css">
					          <h4 class="list-group-item-heading">Project Description:</h4>
							  <p class="list-group-item-text">
								  <span class="more">
								  <?php 
    echo $dbRow['project_desc'];
    ?>
								  </span></p>
				          </div>
				          
				          <!-- Skills used -->
				          <div class="col-md-4" style="background-color: #ffffff">
					          <h4 class="list-group-item-heading">Skills Used:</h4>
					          
					          <?php 
    // Get project's skills
    $dbRow_ProjectSkills = $objProject->getProjectSkills($dbRow['project_id']);
    // Print skills
    printSkills($dbRow_ProjectSkills, 10, $userid, $displayname, $endorsement_left);
    ?>
					          
					          <!--
					          <ul class="nav nav-pills" role="tablist"> 
						        <li role="presentation"><a href="#">Java <span class="badge">9</span></a></li>
					  <li role="presentation"><a href="#">C#<span class="badge">5</span></a></li>
					  <li role="presentation"><a href="#">AngularJS<span class="badge">2</span></a></li>
					  <li role="presentation"><a href="#">CSS<span class="badge">1</span></a></li>    
					          </ul>
					          -->
					          
				          </div>