Example #1
0
function getClassCombo($id, $i, $className)
{
    $html = '<select class="rr" id="charclass_' . $id . '" name="charclass_' . $id . '">';
    $i = 0;
    $rec = new RecruitInfo();
    $classes = $rec->getClasses();
    $selected = '';
    foreach ($classes as $class) {
        if ($className == $class->getId()) {
            $selected = ' selected="true"';
        } else {
            $selected = '';
        }
        $html .= '<option' . $selected . ' onclick="specUpdate(\'' . $class->getId() . '\', \'ms_' . $id . '\', \'os_' . $id . '\');updateRerollInformation(\'' . $i . '\');" value="' . $class->getId() . '">' . $class->getClassName() . '</option>';
    }
    $html .= '</select>';
    echo utf8_encode($html);
}
Example #2
0
 public function getClasses()
 {
     $recruit = new RecruitInfo();
     return $recruit->getClasses();
 }
Example #3
0
<?php

include_once './controller/recruiting.php';
$template = '<div class="asideH2">
        <h2>Recrutement</h2>
      </div>
    <div style="height:calc(100% - 46px);">';
$recruit = new RecruitInfo();
$template .= $recruit->getHtml();
$template .= '</div>';