show_track_view.php 4.06 KB
Newer Older
1 2 3 4 5 6 7 8
<?php  if($this->session->flashdata('success')): ?>
<div class="row">
    <div class="alert alert-block alert-success" style="margin-bottom: 5px">
        <button type="button" class="close" data-dismiss="alert">
            <i class="ace-icon fa fa-times"></i>
        </button>
        <i class="ace-icon fa fa-check green"></i>
        <?php echo $this->session->flashdata('success'); ?>
Phạm Văn Đoan committed
9
    </div>
10
</div>
Phạm Văn Đoan committed
11 12
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
13 14 15
<div class="row">
    <div class="alert alert-block alert-danger" style="margin-bottom: 5px">
        <button type="button" class="close" data-dismiss="alert">
Phạm Văn Đoan committed
16
            <i class="ace-icon fa fa-times"></i>
17 18 19
        </button>
        <i class="ace-icon fa fa-times"></i>
        <?php echo $this->session->flashdata('error'); ?>
Phạm Văn Đoan committed
20
    </div>
21
</div>
Phạm Văn Đoan committed
22
<?php endif; ?>
23
<?php if(isset($track[0])): ?>
24
<div class="row">
25 26 27 28 29 30
    <div class="col-lg-2">
        <a class="btn btn-sm btn-success" href="<?php echo base_url('backend/cmsTrack/addSinger/'.$track[0]['id']);?>">
            <i class="glyphicon-plus">
                Thêm ca sĩ
            </i>
        </a>
31 32 33
    </div>
</div>
<br>
Phạm Văn Đoan committed
34 35 36 37 38
<div class="row">
    <div class="profile-user-info profile-user-info-striped">
        <div class="profile-info-row">
            <div class="profile-info-name"> ID </div>
            <div class="profile-info-value">
39
                <span>#<?php echo $track[0]['id']?></span>
Phạm Văn Đoan committed
40 41 42 43
            </div>
        </div>

        <div class="profile-info-row">
44
            <div class="profile-info-name">Ảnh</div>
Phạm Văn Đoan committed
45 46
            <div class="profile-info-value">
                <span>
47 48
                    <img src="<?php echo MyHelper::getArtByTrack($track[0]['art']) ?>"
                        style="max-width: 200px; max-height: 200px">
Phạm Văn Đoan committed
49 50 51 52 53
                </span>
            </div>
        </div>

        <div class="profile-info-row">
54
            <div class="profile-info-name">Tên Bài hát</div>
Phạm Văn Đoan committed
55
            <div class="profile-info-value">
56
                <span><?php echo $track[0]['title']; ?></span>
Phạm Văn Đoan committed
57 58 59 60
            </div>
        </div>

        <div class="profile-info-row">
61
            <div class="profile-info-name">Sáng tác</div>
Phạm Văn Đoan committed
62
            <div class="profile-info-value">
63
                <span><?php echo $track[0]['artist']; ?></span>
Phạm Văn Đoan committed
64 65 66 67
            </div>
        </div>

        <div class="profile-info-row">
68
            <div class="profile-info-name">Số người biểu diễn</div>
Phạm Văn Đoan committed
69
            <div class="profile-info-value">
70
                <span><?php echo count($track); ?></span>
Phạm Văn Đoan committed
71 72 73 74
            </div>
        </div>

        <div class="profile-info-row">
75
            <div class="profile-info-name">Biểu diễn</div>
Phạm Văn Đoan committed
76
            <div class="profile-info-value">
77
                <?php if(count($track) > 0) : foreach ($track as $key => $tracks) : ?>
78
                <div
79
                    style="<?php if(count($track) >1 ) : echo 'width: 50%; float:left; text-align: left;'; endif; if(count($track) -1 > $key) : echo 'border-right: solid #dddddd 2px;'; endif; ?>">
80
                    <?php echo $tracks['name_singer']; ?>
81 82
                    <a href="<?php echo base_url('backend/cmsTrack/editTrack/'.$track[0]['id'].'/'.$tracks['id_singer'].'/'.$tracks['id_track_artist']); ?>"
                        title="Click để thay đổi ca sĩ">
83 84 85 86 87 88
                        <i class="ace-icon fa fa-pencil-square-o bigger-150" style="color: red;"></i>
                    </a>
                </div>
                <?php endforeach; ?>
                <?php else: echo '<span class="text-danger">Chưa có</span>'; ?>
                <?php endif ?>
Phạm Văn Đoan committed
89 90 91
            </div>
        </div>
    </div>
92 93 94
</div>
<br>
<div class="row">
95 96 97 98 99 100 101 102
    <div class="col-lg-3">
        <a href="<?php echo base_url('backend/cmsTrack/listTrack');?>"
            onclick="return confirm('Bạn có chắc chắn muốn quay lại Danh sách không?')">
            <button type="button" class="btn btn-sm btn-default">
                <i class="ace-icon fa fa-arrow-left"></i>Quay lại
            </button>
        </a>
    </div>
Phạm Văn Đoan committed
103 104
</div>
<?php else: ?>
105
<p>Không tìm thấy thông tin Bài hát!</p>
106
<?php endif; ?>