Mini Shell

Direktori : /home/eymajans/www/deneme2.eymajans.com/panel/application/views/galleries_v/list/
Upload File :
Current File : //home/eymajans/www/deneme2.eymajans.com/panel/application/views/galleries_v/list/content.php

<div class="row">
    <div class="col-md-12">
        <h4 class="m-b-lg">
            Galeri Listesi
        </h4>
    </div><!-- END column -->
    <div class="col-md-12">
        <div class="widget p-lg">

            <?php if(empty($items)) { ?>

                <div class="alert alert-info text-center">
                    <p>Burada herhangi bir veri bulunmamaktadır. Eklemek için lütfen <a href="<?php echo base_url("galleries/new_form"); ?>">tıklayınız</a></p>
                </div>

            <?php } else { ?>

                <table class="table table-hover table-striped table-bordered content-container">
                    <thead>
                        <th class="order"><i class="fa fa-reorder"></i></th>
                        <th class="w50">#id</th>
                        <th>Galeri Adı</th>
                        <th>Galeri Türü</th>
                        <th>Klasör Adı</th>
                        <th>url</th>
                        <th>Durumu</th>
                        <th>İşlem</th>
                    </thead>
                    <tbody class="sortable" data-url="<?php echo base_url("galleries/rankSetter"); ?>">

                        <?php foreach($items as $item) { ?>

                            <tr id="ord-<?php echo $item->id; ?>">
                                <td class="order"><i class="fa fa-reorder"></i></td>
                                <td class="w50 text-center">#<?php echo $item->id; ?></td>
                                <td class="text-center"><?php echo $item->title; ?></td>
                                <td class="text-center"><?php echo $item->gallery_type; ?></td>
                                <td class="text-center"><?php echo $item->folder_name; ?></td>
                                <td class="text-center"><?php echo $item->url; ?></td>
                                <td class="text-center">
                                    <input
                                        data-url="<?php echo base_url("galleries/isActiveSetter/$item->id"); ?>"
                                        class="isActive"
                                        type="checkbox"
                                        data-switchery
                                        data-color="#10c469"
                                        <?php echo ($item->isActive) ? "checked" : ""; ?>
                                    />
                                </td>
                                <td class="text-center">
                                    <?php

                                    if($item->gallery_type == "image"){

                                        $button_icon = "fa-image";
                                        $button_url = "galleries/upload_form/$item->id";

                                    } else if($item->gallery_type == "video") {

                                        $button_icon = "fa-play-circle-o";
                                        $button_url = "galleries/gallery_video_list/$item->id";

                                    } else {

                                        $button_icon = "fa-folder";
                                        $button_url = "galleries/upload_form/$item->id";

                                    }
                                    ?>
                                    <a href="<?php echo base_url($button_url); ?>" class="btn btn-sm btn-dark btn-outline"><i class="fa <?php echo $button_icon; ?>"></i> Galeriye gözat</a>
                                </td>
                            </tr>

                        <?php } ?>

                    </tbody>

                </table>

            <?php } ?>

        </div><!-- .widget -->
    </div><!-- END column -->
</div>