1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<div class="row">
<div class="widget-box">
<div class="widget-header">
<p class="widget-title">Cập nhật thông tin Ca sĩ</p>
</div>
<div class="widget-body">
<div class="widget-main">
<?php
$url = 'backend/cmsTrack/updateTrackImage/' . $track[0]['id'] . '/null';
$attributes = array('class' => 'form-horizontal', 'id' => 'myform');
echo form_open_multipart(base_url($url), $attributes);
?>
<div class="form-group">
<label class="col-lg-3"></label>
<div class="col-lg-3">
<input type="hidden" name="id" value="<?php echo $track[0]['id']; ?>" />
<?php if(validation_errors()){echo form_error('id', '<div class="error">', '</div>');} ?>
</div>
</div>
<div class="form-group">
<label class="col-lg-3">Tên bài hát (*)</label>
<div class="col-lg-3">
<p><?php echo $track[0]['title']; ?></p>
</div>
</div>
<div class="form-group">
<label class="col-lg-3">Ảnh hiện tại</label>
<div class="col-lg-3">
<img src="<?php echo MyHelper::getArtByTrack($track[0]['art'], false, $track[0]['art_type']) ?>" style="max-width: 200px; max-height: 200px">
</div>
</div>
<div class="form-group">
<label class="col-lg-3">Ảnh mới<br>(kích thước tối đa <span class="color-red">500x500px</span>)</label>
<div class="col-lg-3">
<input type="file" name="track_image">
<?php if(validation_errors()){echo form_error('track_image', '<div class="error">', '</div>');} ?>
</div>
</div>
<div class="form-group">
<div class="col-lg-3">
<a href="<?php echo base_url('backend/cmsTrack/showTrack/'.$track[0]['id']);?>"
onclick="return confirm('Bạn có chắc chắn muốn quay lại trang chi tiết 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>
<div class="col-lg-4">
<button class="btn btn-sm btn-primary" type="submit" name="btnSave">
<i class="ace-icon fa fa-check bigger-110"></i>Lưu lại
</button>
</div>
</div>
<?php echo form_close(); ?>
</div>
</div>
</div>
</div><!-- /.row -->
<script>
$(document).ready(function () {
$('.chosen-select').chosen({
allow_single_deselect: true,
no_results_text: "Không có kết quả cần tìm"
});
});
</script>