-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kaway404
authored
Dec 5, 2017
1 parent
2705933
commit b5cce7f
Showing
1 changed file
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
<?php | ||
require 'static/php/system/database.php'; | ||
require 'static/php/system/config.php'; | ||
?> | ||
<?php | ||
$nome = $_POST['nomeanime']; | ||
?> | ||
|
||
<?Php | ||
if(empty($nome)){ | ||
echo ""; | ||
}else{?> | ||
<?php | ||
$animels2 = DBRead( 'series', "WHERE name LIKE '%$nome%' ORDER BY id DESC LIMIT 15" ); | ||
if (!$animels2) | ||
echo ""; | ||
else | ||
foreach ($animels2 as $animel): | ||
?> | ||
<?php | ||
$videoid = $animel['id']; | ||
$videols2 = DBRead( 'videos', "WHERE id and idserie = '". $videoid ."' ORDER BY id ASC LIMIT 1" ); | ||
if (!$videols2) | ||
echo ""; | ||
else | ||
foreach ($videols2 as $videol): | ||
?> | ||
|
||
<a class="eoq" href='/watch.php?id=<?php echo $videol['id']; ?>'><li class='buscaright'><img src='<?php echo $animel['foto']; ?>' class='avatar6'/><div class='name'><?php echo $animel['name']; ?></div></li></a> | ||
|
||
<?php endforeach; endforeach;?> | ||
<?php }?> | ||
<?php | ||
require 'static/php/system/database.php'; | ||
require 'static/php/system/config.php'; | ||
?> | ||
<?php | ||
$nome = $_POST['nomeanime']; | ||
?> | ||
|
||
<?Php | ||
if(empty($nome)){ | ||
echo ""; | ||
}else{?> | ||
<?php | ||
$animels2 = DBRead( 'series', "WHERE name LIKE '%$nome%' ORDER BY id DESC LIMIT 9" ); | ||
if (!$animels2) | ||
echo ""; | ||
else | ||
foreach ($animels2 as $animel): | ||
?> | ||
<?php | ||
$videoid = $animel['id']; | ||
$videols2 = DBRead( 'videos', "WHERE id and idserie = '". $videoid ."' ORDER BY id ASC LIMIT 1" ); | ||
if (!$videols2) | ||
echo ""; | ||
else | ||
foreach ($videols2 as $videol): | ||
?> | ||
|
||
<a class="eoq" href='/watch.php?id=<?php echo $videol['id']; ?>'><li class='buscaright'><img src='<?php echo $animel['foto']; ?>' class='avatar6'/><div class='name'> | ||
<?php | ||
$str2 = nl2br( $animel['name'] ); | ||
$len2 = strlen( $str2 ); | ||
$max2 = 25; | ||
if( $len2 <= $max2 ) | ||
echo $str2; | ||
else | ||
echo substr( $str2, 0, $max2 ) . '...'?> | ||
</div></li></a> | ||
|
||
<?php endforeach; endforeach;?> | ||
<?php }?> |