Version 2
This commit is contained in:
39
pagecontent/voc-select.php
Normal file
39
pagecontent/voc-select.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<div class="fixed-title">
|
||||
<h2><b>0</b> ausgewählt</h2>
|
||||
</div>
|
||||
|
||||
<div class="fixed-title-spacer">
|
||||
<div class="voklist default">
|
||||
<div class="head">
|
||||
<div>Englisch</div>
|
||||
<div>Deutsch</div>
|
||||
</div>
|
||||
<input type="hidden" id="voc-select-display" value="" />
|
||||
<?php
|
||||
|
||||
$sql = "SELECT
|
||||
`value`, `id`
|
||||
FROM
|
||||
`VokabelBox2Content`
|
||||
WHERE
|
||||
`type` = 'voc' AND `path` LIKE '$userid/%/$list/'";
|
||||
$result_articles = $conn->query($sql);
|
||||
while ($articleDb = mysqli_fetch_object($result_articles))
|
||||
{
|
||||
|
||||
$voc = json_decode($articleDb->value, true);
|
||||
|
||||
$n = intval($voc[0]['progress']) + 1;
|
||||
?>
|
||||
<div onclick="vocSelect(this,'<?php echo $articleDb->id; ?>')">
|
||||
<div><?php echo $voc[0]['1']; ?></div>
|
||||
<div class="progress-indicator"></div>
|
||||
<div><?php echo $voc[0]['2']; ?></div></div>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user