<commit_before><?php
defined('BASEPATH') OR exit('No direct script access allowed');
Class Alumniprofile extends CI_Model { 
function __construct() { 
         parent::__construct(); 
         $this->load->helper('url'); 
         $this->load->database(); 
      }
function profile(){
$alumniId = $_GET['alumniId'];
//require("company_info.php");
//require("dbconnect.php");
$sql="SELECT *
 FROM ((alumni
 LEFT JOIN company ON alumni.alumniId=company.alumniId)
 LEFT JOIN degree ON alumni.alumniId=degree.alumniId)
 WHERE alumni.alumniId='$alumniId';";
 //$res=$con->query($sql);
 $res = $this->db->query($sql);
if($res){
   foreach ($res->result_array() as $row){
echo"<nav class=\"navbar navbar-inverse navbar-default\">
      <div class=\"container\">
        <div class=\"navbar-header\">
          <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#navbar\" aria-expanded=\"false\" aria-controls=\"navbar\">
            <span class=\"sr-only\">Toggle navigation</span>
            <span class=\"icon-bar\"></span>
            <span class=\"icon-bar\"></span>
            <span class=\"icon-bar\"></span>
          </button>
          <a class=\"navbar-brand\"><img id =\"webnav\" src=\" ".base_url()."images/logo-uwi.png\" alt=\"\"></a>
        </div>
        <div id=\"navbar\" class=\"collapse navbar-collapse\">
          <ul class=\"nav navbar-nav\">
            <li><a href='".site_url('alumni')."'>Alumni</a></li>
            <li class = \"active\"><a href=\"index.html\">About</a></li>
            <li><a href=\"contact.html\">Contact</a></li>
          </ul>
		  <ul  class=\"nav navbar-nav\" style='position:relative;float:right;'><li><a href=\"\">My Profile</a></li><ul> 
        </div><!--/.nav-collapse -->
      </div>
    </nav>
	
<div class=\"container\">
    <div class=\"row profile\">
		<div class=\"col-md-3\">
			<div class=\"profile-sidebar\">
				<!-- SIDEBAR USERPIC -->
				<div class=\"profile-userpic\">
	
					<img src='" .base_url()."images/profile.jpg' alt=\"Lights\" style=\"width:80%; height:150px\" class=\"img-responsive\">
					
				</div>
				<!-- END SIDEBAR USERPIC -->
				<!-- SIDEBAR USER TITLE -->
				<div class=\"profile-usertitle\">
					<div class=\"profile-usertitle-name\">
						".$row["fName"]." ".$row["lName"]."
					</div>
					<div class=\"profile-usertitle-job\">
						Developer
					</div>
				</div>
				<!-- END SIDEBAR USER TITLE -->
				<!-- SIDEBAR BUTTONS -->
				<div class=\"profile-userbuttons\">
					<button type=\"button\" class=\"btn btn-success btn-sm\">Follow</button>
					<button type=\"button\" class=\"btn btn-danger btn-sm\">Message</button>
				</div>
				<!-- END SIDEBAR BUTTONS -->
				<!-- SIDEBAR MENU -->
				<div class=\"profile-usermenu\">
					<ul class=\"nav tab\">
						<li class=\"active\">
							<a href=\"#tab1\" data-toggle=\"tab\">
							<i class=\"glyphicon glyphicon-home\"></i>
							Overview </a>
						</li>
						<li>
							<a href=\"#tab3\" data-toggle=\"tab\">
							<i class=\"glyphicon glyphicon-ok\"></i>
							About Me </a>
						</li>
						";
						if($row["checked"]=="checked"){
							echo"
						<li id=\"company_tab\">
							<a href=\"#tab4\" data-toggle=\"tab\">
							<i class=\"glyphicon glyphicon-flag\"></i>
							About My Company </a>
						</li>";
						}
						echo"
					</ul>
				</div>
				<!-- END MENU -->
			</div>
		</div>
		<div class=\"col-md-9\">
            <div class=\"profile-content\">
				<div class=\"tab-content\">
					<div class=\"tab-pane active text-style\" id=\"tab1\">
						<form>
						<div class=\"form-group\">
							<textarea class=\"form-control\" rows=\"5\" id=\"comment\" placeholder=\"Enter some interest...\"></textarea>
							<div class=\"row\" id=\"post_button\">
								<div class=\"col-md-4\"> </div>
								<div class=\"col-md-4 text-center\"> 
									<button type=\"button\" class=\"btn btn-primary \">Post</button>	
								</div>
								<div class=\"col-md-4\"> </div>
							</div>
						</div>
						</form>		
					</div>
						
					
					<div class=\"tab-pane text-style\" id=\"tab3\">
							<div class=\"row \">
                            <div class=\"col-md-6\"><h4>Occupation </h4>
							<p class=\"occupation\"></p>
							</div>
                            <div class=\"col-md-6\"><h4>Degree</h4>
                                <p class=\"degree\">".$row["degreeName"]."</p>
							</div>
                                
                        </div>
                        <div class=\"row profileinfo\">
                            <div class=\"col-md-6\"><h4>Class of Degree awarded</h4>
							<p class=\"degree_class\">".$row["degreeClass"]."</p>
						</div>
                            <div class=\"col-md-6\"><h4>Year Graduated</h4>
							<p class=\"graduate\">".$row["yearGrad"]."</p>
							</div>
                        </div>
                        <div class=\"row profileinfo\">
                            <div class=\"col-md-6\"><h4>Degree Acquired </h4>
								<p class=\"degree_acquired\"></p>
							</div>
							<div class=\"col-md-6\"><h4>Email </h4>
							<p class=\"email\">".$row["email"]."</p>
							</div>
                        </div>
                        <div class=\"row profileinfo\">
							<div class=\"col-md-6\"><h4>Contact Number</h4>
                                <p class=\"phone_number\" ></p>
							</div>
							<div class=\"col-md-6\"><h4>Country of Birth </h4>
							<p class=\"birth\"></p>
							</div>
                        </div>  
						</form> 
					</div>
                    
					
					
					
					
					";
					if($row["checked"]=="checked"){
				echo"
					<div class=\"tab-pane text-style\" id=\"tab4\">
                        <div class=\"page-header \">
                            <h1 class=\"text-center company_name_page\">".$row["companyName"]."</h1>      
                        </div>
                        <dl class=\"row\">
                            <dt class=\"col-sm-3 about_company_title\">About Company</dt>
                            <dd class=\"col-sm-9 about_company\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium sint magnam sequi repellendus volupta</dd>
                            <dt class=\"col-sm-3 country_employed_title\">Country Employed</dt><commit_msg>attempted fix on checked error<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');
Class Alumniprofile extends CI_Model { 
function __construct() { 
         parent::__construct(); 
         $this->load->helper('url'); 
         $this->load->database(); 
      }
function profile(){
$alumniId = $_GET['alumniId'];
//require("company_info.php");
//require("dbconnect.php");
$sql="SELECT *
 FROM ((alumni
 LEFT JOIN company ON alumni.alumniId=company.alumniId)
 LEFT JOIN degree ON alumni.alumniId=degree.alumniId)
 WHERE alumni.alumniId='$alumniId';";
 //$res=$con->query($sql);
 $res = $this->db->query($sql);
if($res){
   foreach ($res->result_array() as $row){
echo"<nav class=\"navbar navbar-inverse navbar-default\">
      <div class=\"container\">
        <div class=\"navbar-header\">
          <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#navbar\" aria-expanded=\"false\" aria-controls=\"navbar\">
            <span class=\"sr-only\">Toggle navigation</span>
            <span class=\"icon-bar\"></span>
            <span class=\"icon-bar\"></span>
            <span class=\"icon-bar\"></span>
          </button>
          <a class=\"navbar-brand\"><img id =\"webnav\" src=\" ".base_url()."images/logo-uwi.png\" alt=\"\"></a>
        </div>
        <div id=\"navbar\" class=\"collapse navbar-collapse\">
          <ul class=\"nav navbar-nav\">
            <li><a href='".site_url('alumni')."'>Alumni</a></li>
            <li class = \"active\"><a href=\"index.html\">About</a></li>
            <li><a href=\"contact.html\">Contact</a></li>
          </ul>
		  <ul  class=\"nav navbar-nav\" style='position:relative;float:right;'><li><a href=\"\">My Profile</a></li><ul> 
        </div><!--/.nav-collapse -->
      </div>
    </nav>
	
<div class=\"container\">
    <div class=\"row profile\">
		<div class=\"col-md-3\">
			<div class=\"profile-sidebar\">
				<!-- SIDEBAR USERPIC -->
				<div class=\"profile-userpic\">
	
					<img src='" .base_url()."images/profile.jpg' alt=\"Lights\" style=\"width:80%; height:150px\" class=\"img-responsive\">
					
				</div>
				<!-- END SIDEBAR USERPIC -->
				<!-- SIDEBAR USER TITLE -->
				<div class=\"profile-usertitle\">
					<div class=\"profile-usertitle-name\">
						".$row["fName"]." ".$row["lName"]."
					</div>
					<div class=\"profile-usertitle-job\">
						Developer
					</div>
				</div>
				<!-- END SIDEBAR USER TITLE -->
				<!-- SIDEBAR BUTTONS -->
				<div class=\"profile-userbuttons\">
					<button type=\"button\" class=\"btn btn-success btn-sm\">Follow</button>
					<button type=\"button\" class=\"btn btn-danger btn-sm\">Message</button>
				</div>
				<!-- END SIDEBAR BUTTONS -->
				<!-- SIDEBAR MENU -->
				<div class=\"profile-usermenu\">
					<ul class=\"nav tab\">
						<li class=\"active\">
							<a href=\"#tab1\" data-toggle=\"tab\">
							<i class=\"glyphicon glyphicon-home\"></i>
							Overview </a>
						</li>
						<li>
							<a href=\"#tab3\" data-toggle=\"tab\">
							<i class=\"glyphicon glyphicon-ok\"></i>
							About Me </a>
						</li>
						";
						if($row["checked"]=="checked"){
							echo"
						<li id=\"company_tab\">
							<a href=\"#tab4\" data-toggle=\"tab\">
							<i class=\"glyphicon glyphicon-flag\"></i>
							About My Company </a>
						</li>";
						}
						echo"
					</ul>
				</div>
				<!-- END MENU -->
			</div>
		</div>
		<div class=\"col-md-9\">
            <div class=\"profile-content\">
				<div class=\"tab-content\">
					<div class=\"tab-pane active text-style\" id=\"tab1\">
						<form>
						<div class=\"form-group\">
							<textarea class=\"form-control\" rows=\"5\" id=\"comment\" placeholder=\"Enter some interest...\"></textarea>
							<div class=\"row\" id=\"post_button\">
								<div class=\"col-md-4\"> </div>
								<div class=\"col-md-4 text-center\"> 
									<button type=\"button\" class=\"btn btn-primary \">Post</button>	
								</div>
								<div class=\"col-md-4\"> </div>
							</div>
						</div>
						</form>		
					</div>
						
					
					<div class=\"tab-pane text-style\" id=\"tab3\">
							<div class=\"row \">
                            <div class=\"col-md-6\"><h4>Occupation </h4>
							<p class=\"occupation\"></p>
							</div>
                            <div class=\"col-md-6\"><h4>Degree</h4>
                                <p class=\"degree\">".$row["degreeName"]."</p>
							</div>
                                
                        </div>
                        <div class=\"row profileinfo\">
                            <div class=\"col-md-6\"><h4>Class of Degree awarded</h4>
							<p class=\"degree_class\">".$row["degreeClass"]."</p>
						</div>
                            <div class=\"col-md-6\"><h4>Year Graduated</h4>
							<p class=\"graduate\">".$row["yearGrad"]."</p>
							</div>
                        </div>
                        <div class=\"row profileinfo\">
                            <div class=\"col-md-6\"><h4>Degree Acquired </h4>
								<p class=\"degree_acquired\"></p>
							</div>
							<div class=\"col-md-6\"><h4>Email </h4>
							<p class=\"email\">".$row["email"]."</p>
							</div>
                        </div>
                        <div class=\"row profileinfo\">
							<div class=\"col-md-6\"><h4>Contact Number</h4>
                                <p class=\"phone_number\" ></p>
							</div>
							<div class=\"col-md-6\"><h4>Country of Birth </h4>
							<p class=\"birth\"></p>
							</div>
                        </div>  
						</form> 
					</div>
                    
					
					
					
					
					";
					if($row["company_visible"]=="checked"){
				echo"
					<div class=\"tab-pane text-style\" id=\"tab4\">
                        <div class=\"page-header \">
                            <h1 class=\"text-center company_name_page\">".$row["companyName"]."</h1>      
                        </div>
                        <dl class=\"row\">
                            <dt class=\"col-sm-3 about_company_title\">About Company</dt>
                            <dd class=\"col-sm-9 about_company\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium sint magnam sequi repellendus volupta</dd>
                            <dt class=\"col-sm-3 country_employed_title\">Country Employed</dt>
{'fraction_non_alphanumeric': 0.21521482065431613, 'fraction_numerical': 0.007252660622782814, 'mean_word_length': 1.7512470180004338, 'pattern_counts': {'":': 0, '<': 375, '<?xml version=': 0, '>': 389, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5145025', 'n_tokens_mistral': 5016, 'n_tokens_neox': 4004, 'n_words': 747}