92 lines
2.9 KiB
PHP
Executable File
92 lines
2.9 KiB
PHP
Executable File
<style>
|
|
|
|
body {
|
|
.multiselect-native-select {
|
|
position: relative;
|
|
/* bottom: 32px; */
|
|
select {
|
|
border: 0 !important;
|
|
clip: rect(0 0 0 0) !important;
|
|
height: 1px !important;
|
|
margin: -1px -1px -1px -3px !important;
|
|
overflow: hidden !important;
|
|
padding: 0 !important;
|
|
position: absolute !important;
|
|
width: 1px !important;
|
|
left: 50%;
|
|
top: 30px;
|
|
}
|
|
}
|
|
|
|
.multiselect-container{
|
|
width: 100% !important;
|
|
}
|
|
|
|
.multiselect-selected-text{
|
|
float: left !important;
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="row" id="tpa_add">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row" style="padding-bottom: 10px;">
|
|
<div class="col-6" style="align-self: center;">
|
|
<h4 style="position: relative;">TPA</h4>
|
|
</div>
|
|
<div class="col-6" style="text-align: right;">
|
|
<a href="<?= base_url("master/tpa/list"); ?>"><i class="fas fa-arrow-left" style="font-size: 17px;"></i> </a>
|
|
</div>
|
|
</div>
|
|
<ul class="nav nav-pills navtab-bg">
|
|
<li class="nav-item">
|
|
<a href="#general-q-tab" data-toggle="tab" aria-expanded="false"
|
|
class="nav-link px-3 py-2 active">
|
|
<span class="mr-1"><i class="mdi mdi-contacts"></i></span>
|
|
<span class="d-none d-sm-inline-block">General</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="#branch-tab" data-toggle="tab" aria-expanded="false" class="nav-link px-3 py-2" id="tpa_branch_contacts_id">
|
|
<span class="mr-1"><i class="mdi mdi-source-branch"></i></span>
|
|
<span class="d-none d-sm-inline-block">Branch & Contacts</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<?php include('tpa_basic_info.php'); ?>
|
|
<?php include('tpa_branch.php'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
function tpa_branch_contact() {
|
|
var check_tpa_id = $('#tpa_General_PrimaryKey');
|
|
|
|
|
|
if(check_tpa_id[0].value == '' || check_tpa_id[0].value == null || check_tpa_id[0].value == 0){
|
|
$('#btnBranchAdd').hide();
|
|
toastr.warning('First Add the TPA!', 'Warning',{timeOut: 2000});
|
|
}else{
|
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
|
$('#btnBranchAdd').show();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
document.getElementById("tpa_branch_contacts_id").addEventListener("click", function(event) {
|
|
event.preventDefault();
|
|
tpa_branch_contact();
|
|
});
|
|
</script>
|
|
|