require_once '../../../php/EPListProvider.php'; require_once '../../../php/EPCharacterCreator.php'; session_start(); ?> <ul class="mainlist" id="enterSkill"> <li> <label class='listSection'> 1 creation points < 60 % < 2 creation points</label> <label class='listSection'> SPE cost 5 creation points</label> </li> <li> <select id="actprefix"> <?php $provider = new EPListProvider('../../../php/config.ini'); $prefixList = $provider->getListPrefix(); foreach ($prefixList as $m) { if ($provider->getTypeForPrefix($m) == EPSkill::$ACTIVE_SKILL_TYPE) { echo "<option value='" . $m . "'>" . $m . "</option>"; } } ?> </select> <input type='text' id='actToAdd' placeholder='Enter a field' /> <span class="icone" id="addActSkill" data-icon=":"></span> </li> </ul> <div id="actSklDiv"> <table class="skills" id="actSkills"> <thead> <tr> <th></th> <th>sp</th>
<li> <label class='listSection'> 1 creation points < 60 % < 2 creation points</label> <label class='listSection'> SPE cost 5 creation points</label> </li> <?php if (!$_SESSION['cc']->isNativeLanguageSet()) { echo "<li>\n\t\t\t\t<label>language : </label>\n\t\t\t\t<input type='text' id='langToAdd' placeholder='Native language' />\n\t\t\t\t<span class='icone' id='addNativeLanguage' data-icon=':'></span>\n\t\t\t\t</li>"; } ?> <li> <select id="knoprefix"> <?php $provider = new EPListProvider('../../../php/config.ini'); $prefixList = $provider->getListPrefix(); foreach ($prefixList as $m) { if ($provider->getTypeForPrefix($m) == EPSkill::$KNOWLEDGE_SKILL_TYPE) { echo "<option value='" . $m . "'>" . $m . "</option>"; } } ?> </select> <input type='text' id='knoToAdd' placeholder='Enter a field' /> <span class="icone" id="addKnowSkill" data-icon=":"></span> </li> </ul> <div id="knoSklDiv"> <table class="skills" id="knoSkills"> <thead> <tr> <th></th> <th>spe</th>
<br> <br> <input type="submit" value="Insert"> </form> <p>Skill Prefix on database</p> <table border = "1"> <tr> <th>Name</th> <th>Description</th> <th>Linked Apt</th> <th>Type</th> <th>DELETE FROM DATABASE</th> </tr> <?php foreach ($_SESSION['prefixList'] as $m) { echo "<tr>"; echo "<td>" . $m . "</td>"; echo "<td>" . $epListP->getPrefixDescription($m) . "</td>"; echo "<td>" . $epListP->getAptForPrefix($m) . "</td>"; echo "<td>" . $epListP->getTypeForPrefix($m) . "</td>"; echo "<td><form action='./skillPrefix.php' method='post'><input type='hidden' name='deletePrefix' value='" . $m . "'><input type='submit' value='Delete this line'></form></td>"; echo "</tr>"; } ?> </table> </body> </html>