<commit_before><?php require("_header.php"); ?>

            <style>
            
            
            </style>

            <div class="row">
                <!--left-->
                <div class="col-md-3" id="leftCol">
                    <ul class="nav nav-stacked toto" id="sidebar">
                        <?php
                        require_once "model/Serie.php";
                       
                        $series = new Serie();
                        $albums = $series->get_albums_of_serie($_GET['idserie']);
                        foreach($albums as $album){
                        ?> 
                            <li><a href="#T<?=$album['num']?>"><?= 'T'.$album['num'].' '.utf8_encode(substr($album['titre'], 0, 30)) ?> </a></li>
                        <?php 
                        }
                        ?>
                    </ul>
                </div><!--/left-->

                <!--middle-->
                <div class="col-md-9">
                    <?php
                    require_once "model/Serie.php";
                    insert_serie($_GET['idserie'], 0000);
                    ?> 
                    <hr>
                    <div class="row">
                        <?php
                        global $IMG_ROOT;
                        foreach($albums as $album){
                            ?>
                            <div class="row" id="T<?=$album['num']?>">
                                <div class="col-md-3" id="leftAlbum<?=$album['num']?>">
                                    <img class="img-thumbnail zoomable" src="<?=get_thumbnail("Couvertures", $album['couverture'])?>" alt="La couverture de <?=utf8_encode($album['titre'])?>"/>
                                    <img class="zoomed" src="<?="$IMG_ROOT/Couvertures/".$album['couverture']?>" alt="La couverture de <?=utf8_encode($album['titre'])?>"/>
                                </div>
                                <div class="col-md-9" id="rightAlbum<?=$album['num']?>">
                                    <strong class="text-info">T<?=$album['num']?> <?=utf8_encode($album['titre'])?></strong><br/>
                                    <span class="label label-info"   ><span class="glyphicon glyphicon-modal-window"></span>
                                    <?php
                                        $format = $album['format'];
                                        if ( $format == 0) {       echo 'NORMAL';
                                        } else if ($format == 1){  echo 'GRAND';
                                        } else if ($format == 2){  echo "A l'Italienne";
                                        } else if ($format == 3){  echo 'Autre';
                                        }
                                    ?>
                                    </span><br/>
                                    ISBN: <i>
                                        <a href="http://www.books-by-isbn.com/cgi-bin/isbn-lookup.pl?isbn=<?=utf8_encode($album['reference'])?>" alt="chercher via ISBN"><?=utf8_encode($album['reference'])?></a></i><br/>
                                    Éditeur: <?=utf8_encode($album['editeur'])?><br/>
                                    <?php if( $album['collection'] != "") { ?>
                                        Collection: <?=utf8_encode($album['collection'])?><br/><commit_msg>Added link on album image to open in new tab<commit_after><?php require("_header.php"); ?>

            <style>
            
            
            </style>

            <div class="row">
                <!--left-->
                <div class="col-md-3" id="leftCol">
                    <ul class="nav nav-stacked toto" id="sidebar">
                        <?php
                        require_once "model/Serie.php";
                       
                        $series = new Serie();
                        $albums = $series->get_albums_of_serie($_GET['idserie']);
                        foreach($albums as $album){
                        ?> 
                            <li><a href="#T<?=$album['num']?>"><?= 'T'.$album['num'].' '.utf8_encode(substr($album['titre'], 0, 30)) ?> </a></li>
                        <?php 
                        }
                        ?>
                    </ul>
                </div><!--/left-->

                <!--middle-->
                <div class="col-md-9">
                    <?php
                    require_once "model/Serie.php";
                    insert_serie($_GET['idserie'], 0000);
                    ?> 
                    <hr>
                    <div class="row">
                        <?php
                        global $IMG_ROOT;
                        foreach($albums as $album){
                            ?>
                            <div class="row" id="T<?=$album['num']?>">
                                <div class="col-md-3" id="leftAlbum<?=$album['num']?>">
                                    <a target="_blank" href="<?="$IMG_ROOT/Couvertures/".$album['couverture']?>" title="Ouvrir en pleine page dans un nouvel onglet">
                                        <img class="img-thumbnail zoomable" src="<?=get_thumbnail("Couvertures", $album['couverture'])?>" alt="La couverture de <?=utf8_encode($album['titre'])?>"/>
                                        <img class="zoomed" src="<?="$IMG_ROOT/Couvertures/".$album['couverture']?>" alt="La couverture de <?=utf8_encode($album['titre'])?>"/>
                                    </a>
                                </div>
                                <div class="col-md-9" id="rightAlbum<?=$album['num']?>">
                                    <strong class="text-info">T<?=$album['num']?> <?=utf8_encode($album['titre'])?></strong><br/>
                                    <span class="label label-info"   ><span class="glyphicon glyphicon-modal-window"></span>
                                    <?php
                                        $format = $album['format'];
                                        if ( $format == 0) {       echo 'NORMAL';
                                        } else if ($format == 1){  echo 'GRAND';
                                        } else if ($format == 2){  echo "A l'Italienne";
                                        } else if ($format == 3){  echo 'Autre';
                                        }
                                    ?>
                                    </span><br/>
                                    ISBN: <i>
                                        <a href="http://www.books-by-isbn.com/cgi-bin/isbn-lookup.pl?isbn=<?=utf8_encode($album['reference'])?>" alt="chercher via ISBN"><?=utf8_encode($album['reference'])?></a></i><br/>
                                    Éditeur: <?=utf8_encode($album['editeur'])?><br/>
                                    <?php if( $album['collection'] != "") { ?>
                                        Collection: <?=utf8_encode($album['collection'])?><br/>
{'fraction_non_alphanumeric': 0.1640423704551961, 'fraction_numerical': 0.006584597766962496, 'mean_word_length': 0.9781993204983013, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 0, '>': 128, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 52, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5024663', 'n_tokens_mistral': 1759, 'n_tokens_neox': 1659, 'n_words': 280}