Commit 2142cf56 by Phạm Văn Đoan

tối ưu code phần thông báo chung

parent 60b1e305
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<div class="profile-user-info profile-user-info-striped"> <div class="profile-user-info profile-user-info-striped">
<div class="profile-info-row"> <div class="profile-info-row">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<?php <?php
$input_old_password = array('name' => 'old_password','type' => 'password','value' => $old_password,'style' => 'width: 100%'); $input_old_password = array('name' => 'old_password','type' => 'password','value' => $old_password,'style' => 'width: 100%');
$input_password = array('name' => 'password','type' => 'password','value' => $password,'style' => 'width: 100%'); $input_password = array('name' => 'password','type' => 'password','value' => $password,'style' => 'width: 100%');
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'backend/cmsArtist/listArtistAjax'); ?> <?php echo form_open(base_url().'backend/cmsArtist/listArtistAjax'); ?>
<div class="col-lg-3"> <div class="col-lg-3">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<?php if(isset($user[0])): ?> <?php if(isset($user[0])): ?>
<div class="row"> <div class="row">
<div class="profile-user-info profile-user-info-striped"> <div class="profile-user-info profile-user-info-striped">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'backend/cmsSetting/listAccessAction'); ?> <?php echo form_open(base_url().'backend/cmsSetting/listAccessAction'); ?>
<div class="col-lg-2"> <div class="col-lg-2">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'backend/cmsSetting/listAccessController'); ?> <?php echo form_open(base_url().'backend/cmsSetting/listAccessController'); ?>
<div class="col-lg-2"> <div class="col-lg-2">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'backend/cmsSetting/listGroup'); ?> <?php echo form_open(base_url().'backend/cmsSetting/listGroup'); ?>
<div class="col-lg-2"> <div class="col-lg-2">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'backend/cmsSetting/logAction'); ?> <?php echo form_open(base_url().'backend/cmsSetting/logAction'); ?>
<div class="col-lg-3" style="margin-left: -12px"> <div class="col-lg-3" style="margin-left: -12px">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'backend/cmsSetting/logUser'); ?> <?php echo form_open(base_url().'backend/cmsSetting/logUser'); ?>
<div class="col-lg-3" style="margin-left: -12px"> <div class="col-lg-3" style="margin-left: -12px">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row" > <div class="row" >
<div style="text-align: center" id="data-loading"> <div style="text-align: center" id="data-loading">
<i class="fa fa-refresh fa-spin bigger-200"></i> Đang tải dữ liệu... <i class="fa fa-refresh fa-spin bigger-200"></i> Đang tải dữ liệu...
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'dcvsetting/processSendEmail'); ?> <?php echo form_open(base_url().'dcvsetting/processSendEmail'); ?>
<div style="text-align: left;"> <div style="text-align: left;">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<div class="widget-box"> <div class="widget-box">
<div class="widget-header"> <div class="widget-header">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'backend/cmsSetting/listUserAdminAjax'); ?> <?php echo form_open(base_url().'backend/cmsSetting/listUserAdminAjax'); ?>
<div class="col-lg-2"> <div class="col-lg-2">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<div class="col-lg-12">
<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'); ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="col-lg-12">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<!-- Tìm kiếm theo tên bài hát --> <!-- Tìm kiếm theo tên bài hát -->
<div class="col-lg-3"> <div class="col-lg-3">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<?php if(isset($track[0])): ?> <?php if(isset($track[0])): ?>
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<?php echo form_open(base_url().'backend/cmsUser/listUserAjax'); ?> <?php echo form_open(base_url().'backend/cmsUser/listUserAjax'); ?>
<div class="col-lg-3"> <div class="col-lg-3">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<?php if(isset($user[0])): ?> <?php if(isset($user[0])): ?>
<div class="row"> <div class="row">
<div class="profile-user-info profile-user-info-striped"> <div class="profile-user-info profile-user-info-striped">
......
<?php if($this->session->flashdata('success')): ?> <!-- Thông báo lỗi -->
<div class="row"> <?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<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'); ?>
</div>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="row">
<div class="alert alert-block alert-danger" 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-times"></i>
<?php echo $this->session->flashdata('error'); ?>
</div>
</div>
<?php endif; ?>
<div class="row"> <div class="row">
<div class="col-lg-3"> <div class="col-lg-3">
<input class="form-control" type="text" name="input-name" id="input-name" <input class="form-control" type="text" name="input-name" id="input-name"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment