예제 #1
0
            $endorsement = new Endorsement();
            $endorsement->student_id = $student_id;
            $endorsement->technology_id = $techId;
            $endorsement->count = 1;
            $endorsement->save(TRUE);
        }
    }
}
?>

<?php 
$studentTools = new StudentTools();
if (isset($batch_id)) {
    $students = $studentTools->getStudents($batch_id, 'students.id', null);
} else {
    $students = $studentTools->getAllStudents($start_index);
}
echo 'Begining the processing ...<br />';
foreach ($students as $student) {
    try {
        $html = file_get_html($student->profile_url);
        $skills = getSkills($html);
        insertSkills($skills, $student->id);
        echo 'Imported data for Student:' . $student->id . '<br />';
        flush();
        ob_flush();
    } catch (Exception $e) {
        echo 'Caught exception: ' . $e->getMessage() . ' on Student Id:' . $student->id . '<br />';
    }
}
echo 'Processing complete ...<br />';
예제 #2
0
파일: settings.php 프로젝트: idoqo/yedoe
                    <input type="text" name="location" value="<?php 
echo $me->location;
?>
" />
                </label>
        </tr>
        <tr>
            <td>
                <p>Industry</p>
            </td>
            <td>
                <label>
                    <select name="industry">
                        <option value="">Industry</option>
                        <?php 
$cats = getSkills();
if (is_array($cats)) {
    foreach ($cats as $cat) {
        echo "<option value={$cat['skill_id']}>{$cat['skill']}</option>";
    }
}
?>
                    </select>
                </label>
            </td>
        </tr>
        <tr style="height: .1em; width: 100%; background: #e0e0e0;"></tr>
    </table>
        <div class="overview-wrap">
            <p class="section-title mini">Company Overview</p>
            <label>
예제 #3
0
파일: _user.php 프로젝트: idoqo/yedoe
            echo $work['description'];
            ?>
</span>
                    </p>
                    <?php 
        }
    }
    ?>
        </section>
    </div>
    <?php 
} elseif ($me->utype == "emp") {
    $about = $me->getInfo();
    $industry = array();
    if ($about['industry'] != "") {
        $industry = getSkills($about['industry']);
        foreach ($industry as $ind) {
            //$industry[] = $ind['skill'];
            $industry = $ind['skill'];
        }
    }
    ?>
    <div class="row">
        <p class="section-title">Industry</p>
        <section class="feed-element consistent-p">
            <?php 
    echo $industry ? $industry : "Not available";
    ?>
        </section>
    </div>
예제 #4
0
파일: er.php 프로젝트: Peaso/CER
// Load specific functions
require_once 'profile_functions.php';
require_once 'interaction_functions.php';
require_once 'identification_functions.php';
require_once 'selection_functions.php';
require_once 'functions_db.php';
$conn = conexion();
// Load specific functions
require_once 'er_functions.php';
if (!isset($op)) {
    $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : null;
}
switch ($op) {
    case 'skills':
        // Gets the list of available skills
        $output = getSkills();
        break;
    case 'subskills':
    case 'backgrounds':
        // Gets the list of available subskills
        $output = getSubskills();
        break;
    case 'request':
        // Gets a recommendation according to the request
        $output = getRecommendation();
        break;
    case 'translate':
        // Translate the request to specific requirements
        $output = getTranslation();
        break;
    case 'getUserInfo':
예제 #5
0
파일: wrapper.php 프로젝트: idoqo/yedoe
<div class="bigger-box">
<div class="col-1" style="height: 400px;">
    <form accept-charset="utf-8" action="" method="get">
        <input type="text" name="query" placeholder="Press ENTER to search" size="45" style="padding: 8px 5px; border-radius: 4px 0 0 4px; border: 1px solid #1e5d7a;" value="<?php 
echo isset($query) ? $query : "";
?>
">
        <p style="text-align: center;">Or search by: </p>
        <p class="section-title mini">Location</p>
        <p class="section-title mini">Expertise</p>
        <ul class="filters col-5 centered">
            <?php 
$skills = getSkills();
foreach ($skills as $skill) {
    ?>
                <li <?php 
    if (strcasecmp($cat, $skill['skill']) == 0) {
        echo "id='active'";
    }
    ?>
>
                    <a href=""></a>
                </li>
            <?php 
}
?>
        </ul>
    </form>
</div>
    <?php 
include "home.php";