Version 2
This commit is contained in:
35
pagecontent/action-voc-copy-search.php
Normal file
35
pagecontent/action-voc-copy-search.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
if($meta == '') {
|
||||
?>
|
||||
<h4 align="center">Suchen Sie nach einer Liste.<br>Es werden nur die drei zuletzt verwendeten Listen angezeigt.</h4>
|
||||
<?php
|
||||
die();
|
||||
}
|
||||
|
||||
$sql = "SELECT `value`,`id`,`path` FROM `VokabelBox2Content` WHERE `type` = 'list' AND `path` LIKE '$userid/%/'AND LOWER(`value`) LIKE LOWER('%$meta%') ORDER BY `lastedit` DESC LIMIT 0,3";
|
||||
$result_articles = $conn->query($sql);
|
||||
if(mysqli_num_rows($result_articles))
|
||||
{
|
||||
while ($articleDb = mysqli_fetch_object($result_articles))
|
||||
{
|
||||
|
||||
$path = explode("/", $articleDb->path);
|
||||
$lang_new = $path[1];
|
||||
|
||||
?>
|
||||
<div class="folder" onclick="getContent('action:vocCopy','<?php echo $articleDb->id; ?>','scrollLeft')">
|
||||
<span><?php echo $articleDb->value; ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<h4 align="center">Es wurden keine Listen gefunden</h4>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user