HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dmstechonline/crm.chaitanyahospitalvirar.com/application/views/admin/front/pages/index.php
<style type="text/css">
    .table-sortable tbody tr {cursor: move;}
    @media (max-width: 767px) {
        .box-tools button, .box-tools a {margin-top: 0px;}
    }
</style>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <!-- left column -->
            <div class="col-md-12">
                <!-- general form elements -->
                <div class="box box-primary" id="holist">
                    <?php 
						if ($this->session->flashdata('msg')) { 
							echo $this->session->flashdata('msg');
                            $this->session->unset_userdata('msg');                                 
						}
					?>
                    <div class="box-header ptbnull">
                        <h3 class="box-title titlefix"><?php echo $this->lang->line('page_list'); ?></h3>
                            <div class="box-tools pull-right">
                                <?php if ($this->rbac->hasPrivilege('pages', 'can_add')) {   ?>
                                <div class="btn-group">
                                    <a href="<?php echo site_url('admin/front/page/create'); ?>" style="border-radius:2px 0px 0px 2px" class="btn btn-primary btn-sm"><?php echo $this->lang->line('add_page'); ?></a>
                                    <button type="button" style="border-left: 1px solid #2e6da4; max-height: 35px;" class="btn btn-primary dropdown-toggle btn-sm" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu" role="menu">
                                    <?php if ($this->rbac->hasPrivilege('event', 'can_view')) { ?>
                                    <li><a href="<?php echo base_url(); ?>admin/front/events"><?php echo $this->lang->line('add_event'); ?></a></li>
                                    <?php }if ($this->rbac->hasPrivilege('gallery', 'can_view')) { ?>
                                        <li><a href="<?php echo base_url(); ?>admin/front/gallery"><?php echo $this->lang->line('add_gallery'); ?></a></li>
                                    <?php }if ($this->rbac->hasPrivilege('notice', 'can_view')) { ?>
                                        <li><a href="<?php echo base_url(); ?>admin/front/notice"><?php echo $this->lang->line('add_news'); ?></a></li>
                                    <?php } ?>
                                    </ul>
                                </div>
                                <?php }if ($this->rbac->hasPrivilege('media_manager', 'can_view')) {?>
									<a href="<?php echo site_url('admin/front/media'); ?>" class="btn btn-sm btn-primary"><i class="fa fa-reorder"></i> <?php echo $this->lang->line('media_manager'); ?></a>
                                <?php }if ($this->rbac->hasPrivilege('menus', 'can_view')) {?>
									<a href="<?php echo site_url('admin/front/menus'); ?>" class="btn btn-sm btn-primary"><i class="fa fa-reorder"></i> <?php echo $this->lang->line('menus'); ?></a>
                                <?php }if ($this->rbac->hasPrivilege('banner_images', 'can_view')) {?>
									<a href="<?php echo site_url('admin/front/banner'); ?>" class="btn btn-sm btn-primary"><i class="fa fa-reorder"></i> <?php echo $this->lang->line('banners'); ?></a>
                                <?php }?>
                            </div>
                    </div><!-- /.box-header -->
                    <div class="box-body">
                        <div class="mailbox-controls">
                            <div class="pull-right">
                            </div><!-- /.pull-right -->
                        </div>
                        <div class="table-responsive mailbox-messages">
                            <div class="download_label"><?php echo $this->lang->line('pages'); ?></div>
                            <table class="table table-striped table-bordered table-hover example" >
                                <thead>
                                    <tr>
                                        <th><?php echo $this->lang->line('title'); ?></th>
                                        <th><?php echo $this->lang->line('url'); ?></th>
                                        <th><?php echo $this->lang->line('page_type'); ?></th>
                                        <th class="text-right noExport"><?php echo $this->lang->line('action'); ?></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php if (empty($listPages)) {  ?>
									
									<?php
									} else {										
										$count = 1;
										foreach ($listPages as $page) {
									?>
                                    <tr id="<?php echo $page["id"]; ?>">
										<td class="mailbox-name"><a href="#" ><?php echo $page['title'] ?></a></td>
                                        <td class="mailbox-name"><a href="<?php echo base_url() . $page['url'] ?>" target="_blank"><?php echo base_url() . $page['url'] ?></a></td>
                                        <td class="mailbox-name">
											<?php if ($page['content_type'] == "gallery") {  ?>
											<span class="label bg-green"><?php echo $this->lang->line($page['content_type']); ?></span>
                                            <?php } elseif ($page['content_type'] == "events") {  ?>
                                            <span class="label label-info"><?php echo $this->lang->line('event'); ?></span>
                                            <?php } elseif ($page['content_type'] == "notice") {  ?>
                                            <span class="label label-warning"><?php echo $this->lang->line($page['content_type']); ?></span>
                                            <?php } else {  ?>
                                            <span class="label label-default"><?php echo $this->lang->line('standard'); ?></span>
                                            <?php }?>
										</td>
                                        <td class="mailbox-date pull-right noExport">
											<?php if ($this->rbac->hasPrivilege('pages', 'can_edit')) { ?>
												<a href="<?php echo site_url('admin/front/page/edit/' . $page['slug']); ?>" class="btn btn-default btn-xs"  data-toggle="tooltip" title="<?php echo $this->lang->line('edit'); ?>"><i class="fa fa-pencil"></i></a>
                                            <?php } if ($this->rbac->hasPrivilege('pages', 'can_delete')) {   if ($page['page_type'] != "default") {    ?>
												<a  class="btn btn-default btn-xs"  data-toggle="tooltip" title="<?php echo $this->lang->line('delete'); ?>" onclick="delete_recordByIdReload('<?php echo 'admin/front/page/delete/' . $page['slug']; ?>', '<?php echo $this->lang->line('delete_message'); ?>')"><i class="fa fa-trash"></i></a>
											<?php } } ?>
										</td>
									</tr>
                                    <?php }
										$count++;
									}
									?>
                                </tbody>
                            </table><!-- /.table -->
                        </div><!-- /.mail-box-messages -->
                    </div><!-- /.box-body -->
                </div>
            </div><!--/.col (left) -->
        </div>
    </section><!-- /.content -->
</div><!-- /.content-wrapper -->