add_artist_view.php 5.85 KB
Newer Older
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
<?php
// print_r($contest[0]);
$input_username = array(
    'name' => 'username',
    'type' => 'text',
    'value' => isset($username) ? $username : '',
    'placeholder' => 'Nhập username',
    'class' => '',
    'style' => 'width: 100%',
    'min' => 1,
    'max' => 50
);

$input_email = array(
    'name' => 'email',
    'type' => 'email',
    'value' => isset($email) ? $email : '',
    'placeholder' => 'Nhập pemail',
    'class' => '',
    'style' => 'width: 100%',
);
$input_full_name = array(
    'name' => 'full_name',
    'type' => 'text',
    'value' => isset($full_name) ? $full_name : '',
    'placeholder' => 'Nhập tên đầy đủ',
    'class' => '',
    'style' => 'width: 100%',
);
$input_bio = array(
    'name' => 'bio',
    'type' => 'password',
    'value' => isset($bio) ? $bio : '',
    'class' => '',
    'style' => 'width: 100%',
);
$input_avatar = array(
    'name' => 'avatar',
    'type' => 'file',
    'class' => '',
    'style' => 'width: 100%',
);
$input_cover = array(
    'name' => 'cover',
    'type' => 'file',
    'class' => '',
    'style' => 'width: 100%',
);
$input_link_zing = array(
    'name' => 'link_zing',
    'type' => 'text',
    'value' => isset($link_zing) ? $link_zing : '',
    'placeholder' => 'Nhập Link Zingmp3',
    'class' => '',
    'style' => 'width: 100%',
);
$input_link_nct = array(
    'name' => 'link_nct',
    'type' => 'text',
    'value' => isset($link_nct) ? $link_nct : '',
    'placeholder' => 'Nhập link NCT',
    'class' => '',
    'style' => 'width: 100%',
);
$input_link_keeng = array(
    'name' => 'link_keeng',
    'type' => 'text',
    'value' => isset($link_keeng) ? $link_keeng : '',
    'placeholder' => 'Nhập link Keeng',
    'class' => '',
    'style' => 'width: 100%',
);
?>
<div class="row">
    <div class="widget-box">
        <div class="widget-header">
            <p class="widget-title">Thêm mới Ca sĩ/Nhạc sĩ</p>
        </div>
        <div class="widget-body">
            <div class="widget-main">
                <?php
                $attributes = array('class' => 'form-horizontal', 'id' => 'myform');
                echo form_open(base_url().'backend/cmsArtist/addArtist/', $attributes);
                ?>
                <div class="form-group">
                    <label class="col-lg-3"></label>
                    <div class="col-lg-3">
                        <input type="hidden" name="id" value="" />
                        <?php
                        if(validation_errors()){echo form_error('id', '<div class="error">', '</div>');}
                        ?>
                    </div>
93
                </div>
94 95 96 97 98 99 100 101 102 103 104
                <div class="form-group">
                    <label class="col-lg-3">Tên đầu đủ (*)</label>
                    <div class="col-lg-3">
                        <?php
                        echo form_input($input_full_name);
                        if(validation_errors()){echo form_error('full_name', '<div class="error">', '</div>');}
                        ?>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3">Link Zingmp3</label>
105
                    <div class="col-lg-6">
106 107 108 109
                        <?php
                        echo form_input($input_link_zing);
                        ?>
                    </div>
110 111 112
                    <div class="col-lg-3">
                        <span><a href="https://zingmp3.vn/the-loai-nghe-si/Viet-Nam/IWZ9Z08I.html" target="_blank" >Lấy link ở ZingMp3</a></span>
                    </div>
113 114 115
                </div>
                <div class="form-group">
                    <label class="col-lg-3">Link Nhạc của tui</label>
116
                    <div class="col-lg-6">
117 118 119 120
                        <?php
                        echo form_input($input_link_nct);
                        ?>
                    </div>
121 122 123
                    <div class="col-lg-3">
                        <span><a href="https://www.nhaccuatui.com/nghe-si.html" target="_blank">Lấy link ở NCT</a></span>
                    </div>
124 125 126
                </div>
                <div class="form-group">
                    <label class="col-lg-3">Link Keeng</label>
127
                    <div class="col-lg-6">
128 129 130 131
                        <?php
                        echo form_input($input_link_keeng);
                        ?>
                    </div>
132 133 134
                    <div class="col-lg-3">
                        <span><a href="http://keeng.vn/danh-sach-ca-si" target="_blank">Lấy link ở Keeng</a></span>
                    </div>
135 136 137
                </div>
                <div class="form-group">
                    <div class="col-lg-3">
138 139
                        <a href="<?php echo base_url().'backend/cmsArtist/listArtist'?>"
                            onclick="return confirm('Bạn có chắc chắn muốn quay lại Danh sách không?')">
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
                            <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>
                        <button class="btn btn-sm" type="reset">
                            <i class="ace-icon fa fa-undo bigger-110"></i>Xóa form
                        </button>
                    </div>
                </div>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>
</div><!-- /.row -->
<script>
160 161 162 163 164 165
$(document).ready(function() {
    $('.date-picker').datepicker({
        autoclose: true,
        todayHighlight: true,
        minDate: '<?php echo date('Y-m-d ')?>'
    })
166

167
});
168
</script>