http://www.mangayurdu.com/

Site online manga okuma sitesi. Script Codecanyondan satın alınma hazir bir script.

Sitemin banner kısmına http://www.mangareader.net/ sitesindeki gibi son güncellenen mangalar eklenecek.





Aslında son güncellenen mangalar zaten var scripte. Sadece banner kısmındada olmasını istiyorum. Bahsettiğim kısım;
		<div class="btn-group btn-block">
		    <button class="btn btn-sm btn-info" disabled>Listeleme tipi</button>
		    <a href="manga-list.html?listType=allABC" class="btn btn-sm btn-info <?php echo $listType == 'allABC' ? 'active' : ''; ?>"><i class="glyphicon glyphicon-th"></i> ALL IN ONE PAGE</a>
		    <a href="manga-list.html?listType=pagination" class="btn btn-sm btn-info <?php echo $listType == 'pagination' ? 'active' : ''; ?>"><i class="glyphicon glyphicon-th-list"></i> PAGINATION</a>
		</div>
		<?php

			$limit = 20; // EDIT THIS FIELD FOR MANGA SHOW PER PAGE 

			function print_url($page,$name,$author,$artist,$genre,$sort,$sort_type){
				return "manga-list.html?listType=pagination&page=$page&artist=$artist&author=$author&name=$name&genre=$genre&sort=$sort&sort_type=$sort_type";
			}
			// HANDLE SORTING
			$sort = isset($_GET['sort']) ? $_GET['sort'] : 'views' ; 
			$sort_type = isset($_GET['sort_type']) ? $_GET['sort_type'] : 'DESC';

			if($sort_type != 'ASC' && $sort_type != 'DESC'){ $sort_type = 'ASC'; } // PROTECT FROM SQL INJECTION
			if($sort != 'views' && $sort != 'last_update' && $sort != 'name'){ $sort = 'name'; } // PROTECT FROM SQL INJECTION

			$sort_query = "ORDER BY $sort $sort_type";

			// HANDLE FILTERING

			$WHERE = NULL;

			$author = isset($_GET['author']) ? $_GET['author'] : NULL ; 
			$WHERE .= isset($author) ? " AND authors LIKE '%".$author."%' " : NULL;

			$artist = isset($_GET['artist']) ? $_GET['artist'] : NULL ; 
			$WHERE .=  isset($artist) ? " AND artists LIKE '%".$artist."%' " : NULL;

			$genre = isset($_GET['genre']) ? $_GET['genre'] : NULL ; 
			$WHERE .=  isset($genre) ? " AND genres LIKE '%".$genre."%' " : NULL;

			$name = isset($_GET['name']) ? $_GET['name'] : NULL ; 
			$WHERE .=  isset($name) ? " AND name LIKE '%".$name."%' " : NULL;
			
			@$query = mysql_query("SELECT COUNT(id) as num FROM ".APP_TABLES_PREFIX."manga_mangas WHERE 1 = 1 $WHERE $sort_query")or die(mysql_error());
		    $total_pages = mysql_fetch_array($query);
		    $total_pages = $total_pages['num'];
		    @$page = isset($_GET['page']) ? $_GET['page'] : '1';
		    $lastpage = ceil($total_pages/$limit);  

		    if (!is_numeric($page) || $page < 1){ $page = 1; }          
		    $prev = $page - 1;              
		    $next = $page + 1;      

		    $start = (is_numeric($page) ? ($page - 1) * $limit : 0);

			$query = "SELECT * FROM ".APP_TABLES_PREFIX."manga_mangas WHERE 1 = 1  $WHERE $sort_query LIMIT $start, $limit";
			$thisQuery = mysql_query($query);

			//while($thisManga = mysql_fetch_array($list)){
				//echo '<span data-toggle="mangapop" manga-slug="'.$thisManga['slug'].'" data-placement="top" data-original-title="'.$thisManga['name'].'" class="manga-'.$thisManga['m_status'].'"><b><a href="'.$lang['manga_slug'].'-'.$thisManga['slug'].'.html">'.$thisManga['name'].'</a></b></span>';     
				//echo '<br />';
			//}

		?>
		<hr>
		<div class="row">
			<div class="col-lg-9 col-md-8">

				<div class="btn-group">
				    <button class="btn btn-sm btn-info" disabled>Sayfa <?php echo $page;?> of <?php echo $lastpage;?></button>
				    <a href="<?php echo print_url($prev,$name,$author,$artist,$genre,$sort,$sort_type); ?>" class="btn btn-sm btn-info"><i class="glyphicon glyphicon-chevron-left"></i></a>
				    <a href="<?php echo print_url($next,$name,$author,$artist,$genre,$sort,$sort_type); ?>" class="btn btn-sm btn-info"><i class="glyphicon glyphicon-chevron-right"></i></a>
				</div>
				<div class="btn-group" style="float:right;padding-left: 5px;">
				    <a href="<?php echo print_url($prev,$name,$author,$artist,$genre,$sort,'ASC'); ?>" class="btn btn-sm btn-info <?php echo $sort_type == 'ASC' ? 'active' : ''; ?>"><i class="glyphicon glyphicon-sort-by-attributes"></i> Artan</a>
				    <a href="<?php echo print_url($next,$name,$author,$artist,$genre,$sort,'DESC'); ?>" class="btn btn-sm btn-info <?php echo $sort_type == 'DESC' ? 'active' : ''; ?>"><i class="glyphicon glyphicon-sort-by-attributes-alt"></i> Azalan</a>
				</div>
				<div class="btn-group" style="float:right">
				    <button class="btn btn-sm btn-info" disabled>Sort by</button>
				    <a href="<?php echo print_url($prev,$name,$author,$artist,$genre,'name',$sort_type); ?>" class="btn btn-sm btn-info <?php echo $sort == 'name' ? 'active' : ''; ?>"><i class="glyphicon glyphicon-sort-by-alphabet"></i> İsim</a>
				    <a href="<?php echo print_url($next,$name,$author,$artist,$genre,'views',$sort_type); ?>" class="btn btn-sm btn-info <?php echo $sort == 'views' ? 'active' : ''; ?>"><i class="glyphicon glyphicon-eye-open"></i> Popülerlik</a>
				    <a href="<?php echo print_url($next,$name,$author,$artist,$genre,'last_update',$sort_type); ?>" class="btn btn-sm btn-info <?php echo $sort == 'last_update' ? 'active' : ''; ?>"><i class="glyphicon glyphicon-calendar"></i> Son güncelleme</a>
				</div>
				<div class="clear-fix"><br /><br /></div>
				<div class="row">
				<?php
					while($thisManga = mysql_fetch_array($thisQuery)){
					$poptitle = stripslashes($thisManga['name']).' '.($thisManga['released'] != NULL ? '('.$thisManga['released'].')' : '');
				?>
					<div class="col-lg-6 col-md-12" style="height:150px; margin-bottom:20px">
						<span class="thumbnail" data-toggle="mangapop" data-placement="right" manga-slug="<?=$thisManga['slug']?>" data-original-title="<?=$poptitle?>" style="padding: 10px; margin: 3px">
					      	<div class="media">
							  <a class="pull-left" href="<?=$lang['manga_slug']?>-<?=$thisManga['slug']?>.html" style="width: 100px;height: 124px;float: left;overflow: hidden;border: 1px #e5e5e5 solid;padding:2px">
							    <img class="media-object img-thumb" src="<?=$thisManga['cover']?>" alt="<?=$thisManga['name']?>" width="96px">
							  </a>
							  <div class="media-body">
							    <h3 class="media-heading" id="tables"><a href="<?=$lang['manga_slug']?>-<?=$thisManga['slug']?>.html"><?=$thisManga['name']?></a></h3>
							    <!--<div class="h0rating" slug="<?php echo $thisManga['slug'];?>"></div>-->
							    <small style="float:left;display:block"><?php echo $h0manga->splitGenres($thisManga['genres'],$lang)?></small><br />
							    <span class="display:block"><?=$lang['Views'] ?>: <?=$thisManga['views']?></span> <br />
							    <?php if($thisManga['last_chapter'] != 0){ ?><?=$lang['Last_chapter']?>: <a href="<?=$lang['read_slug']?>-<?=$thisManga['slug']?>-<?=$lang['chapter_slug']?>-<?=$thisManga['last_chapter']?>.html"><?=$thisManga['last_chapter']?></a><?php } ?>
							  </div>
							</div>
					    </span>

						<!--<a style="position: relative;float: left;border: 1px #e5e5e5 solid;width: 100px;height: 124px;margin-right: 10px;margin-bottom:10px;padding: 1px;">
							<div style="float:left;overflow:hidden;width:100px;height:124px;margin-bottom:10px;">
								<img src="<?php echo $thisManga['cover'];?>" style="max-width:96px;">
							</div>	
						</a>
						<div style="float:left">
							<h3 class="media-heading" id="tables"><a href="<?=$lang['manga_slug']?>-<?=$thisManga['slug']?>.html"><?=$thisManga['name']?></a></h3>
							<?php echo $lang['Views'] ?>: <?php echo $thisManga['views']?> <br />
							<?php if($thisManga['last_chapter'] != 0){ ?><?=$lang['Last_chapter']?>: <a href="<?=$lang['read_slug']?>-<?=$thisManga['slug']?>-<?=$lang['chapter_slug']?>-<?=$thisManga['last_chapter']?>.html"><?=$thisManga['last_chapter']?></a><?php } ?>
					        <div class="h0rating" slug="<?=$thisManga['slug']?>"></div>
						</div>
						-->
					</div>
				<?php
					}	

				?>
				</div>
			</div>

			<div class="col-lg-3 col-md-4">
				<div class="panel panel-default">
				  <div class="panel-heading">Browse by Genres (<a href="manga-list.html?listType=pagination">ALL</a>)</div>
				  <div class="panel-body">
				  	<div style="float:left">
					    <a href="manga-list.html?listType=pagination&genre=action.html">Action</a><br>
						<a href="manga-list.html?listType=pagination&genre=*****.html">*****</a><br>
						<a href="manga-list.html?listType=pagination&genre=anime.html">Anime</a><br> 
						<a href="manga-list.html?listType=pagination&genre=comedy.html">Comedy</a><br> 
						<a href="manga-list.html?listType=pagination&genre=comic.html">Comic</a><br> 
						<a href="manga-list.html?listType=pagination&genre=doujinshi.html">Doujinshi</a><br> 
						<a href="manga-list.html?listType=pagination&genre=drama.html">Drama</a><br> 
						<a href="manga-list.html?listType=pagination&genre=ecchi.html">Ecchi</a><br> 
						<a href="manga-list.html?listType=pagination&genre=fantasy.html">Fantasy</a><br> 
						<a href="manga-list.html?listType=pagination&genre=gender bender.html">Gender Bender</a><br> 
						<a href="manga-list.html?listType=pagination&genre=harem.html">Harem</a><br>
						<a href="manga-list.html?listType=pagination&genre=historical.html">Historical</a><br>
						<a href="manga-list.html?listType=pagination&genre=horror.html">Horror</a><br>
						<a href="manga-list.html?listType=pagination&genre=josei.html">Josei</a><br>
						<a href="manga-list.html?listType=pagination&genre=live action.html">Live action</a><br>
						<a href="manga-list.html?listType=pagination&genre=manhua.html">Manhua</a><br>
						<a href="manga-list.html?listType=pagination&genre=manhwa.html">Manhwa</a><br>
						<a href="manga-list.html?listType=pagination&genre=martial art.html">Martial Art</a><br>
						<a href="manga-list.html?listType=pagination&genre=mature.html">Mature</a><br>
					</div>
					<div style="float:right">
						<a href="manga-list.html?listType=pagination&genre=mecha.html">Mecha</a><br>
						<a href="manga-list.html?listType=pagination&genre=mystery.html">Mystery</a><br>
						<a href="manga-list.html?listType=pagination&genre=one shot.html">One shot</a><br>
						<a href="manga-list.html?listType=pagination&genre=psychological.html">Psychological</a><br>
						<a href="manga-list.html?listType=pagination&genre=romance.html">Romance</a><br>
						<a href="manga-list.html?listType=pagination&genre=school life.html">School Life</a><br>
						<a href="manga-list.html?listType=pagination&genre=sci-fi.html">Sci-fi</a><br>
						<a href="manga-list.html?listType=pagination&genre=seinen.html">Seinen</a><br>
						<a href="manga-list.html?listType=pagination&genre=shoujo.html">Shoujo</a><br>
						<a href="manga-list.html?listType=pagination&genre=shoujou ai.html">Shojou Ai</a><br>
						<a href="manga-list.html?listType=pagination&genre=shounen.html">Shounen</a><br>
						<a href="manga-list.html?listType=pagination&genre=shounen ai.html">Shounen Ai</a><br>
						<a href="manga-list.html?listType=pagination&genre=slice of life.html">Slice of Life</a><br> 
						<a href="manga-list.html?listType=pagination&genre=smut.html">Smut</a><br> 
						<a href="manga-list.html?listType=pagination&genre=sports.html">Sports</a><br> 
						<a href="manga-list.html?listType=pagination&genre=supernatural.html">Supernatural</a><br> 
						<a href="manga-list.html?listType=pagination&genre=tragedy.html">Tragedy</a><br>
						<a href="manga-list.html?listType=pagination&genre=adventure.html">Adventure</a><br> 
						<a href="manga-list.html?listType=pagination&genre=yaoi.html">Yaoi</a>
					</div>
				  </div>
				</div>

			</div>	


		</div>