Sindbad~EG File Manager
{{--
VT step3.blade
--}}
<script type="text/javascript">
function Remove(coa_id) {
var checkstr = confirm('Are you sure you want to delete this Co-Author?');
if(checkstr == true){
$.ajax({
type: 'POST', // <-- get method of form
url: baseUrl + '/vt/remove_coa', // <-- get action of form
data: {'coa_id':coa_id,'vt_id':$(hdnId).val()} , // <-- serialize all fields into a string that is ready to be posted to your PHP file
dataType: 'json',
beforeSend: function(){
//$('#result').html('<img src="loading.gif" />');
},
success: function(data){
if(data.code == 1)
{
$('#frm').html(data.data);
}
}
});
}
}
</script>
{{ Form::open(array('url' => 'vt/store','role'=>'form','id'=>'form_s3')) }}
{{ Form::hidden('hdnId', isset($vt)? $vt->abs_id : 0,array('id'=>'hdnId')) }}
{{ Form::hidden('hdnStep', '3',array('id'=>'hdnStep')) }}
{{ Form::hidden('hdnIsNext', '1',array('id'=>'hdnIsNext')) }}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="alert alert-success" style="display:none">
</div>
<div class="alert alert-danger" style="display:none">
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 nopadding margin10">
<div class="step completedstep">STEP 1 </div>
<div class="step completedstep">STEP 2 </div>
<div class="step activestep">STEP 3 </div>
<div class="step">STEP 4 </div>
<div class="step">STEP 5 </div>
</div>
<!--step 3 details -->
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<label>Co Authors (not more than 3) </label>
</div>
</div>
@if(isset($coas) && count($coas)>0)
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="table-responsive">
<table id="tbl_COA" class="table table-bordered">
<thead>
<tr>
<th>
Membership No
</th>
<th>
Author Name
</th>
<th>
Email
</th>
<th>
Mobile
</th>
<th>
</th>
</tr>
</thead>
<tbody>
@foreach ($coas as $value)
<tr>
<td data-label="Membership No">
{{ $value->membership_no }}
</td>
<td data-label="Author Name">
{{ $value->name }}
</td>
<td data-label="Email">
{{ $value->email }}
</td>
<td data-label="Mobile">
{{ $value->mobile }}
</td>
<td>
<a class="btn btn-xs btn-primary" onclick="Remove({{ $value->author_id }})" title="Remove Topic">
<span class="glyphicon glyphicon-trash " aria-hidden="true"></span>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endif
@unless($isMaxCount)
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 text-center">
<input type="button" value="Click here to search the Co Author details" id ="btnSearch" class="btn btn-md btn-primary"
onclick="SearchPOP()">
{{-- SearchPOP funcation in search.blade.php --}}
</div>
</div>
@endunless
<!--End step 3 details -->
<div class="row margin30">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 page-left">
<input type="button" value="Previous" id ="btnPrevious_s2" class="btn primary button-large"
onclick="Move(3,0)">
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 page-right">
<input type="button" value="Next" id ="btnNext_s2" class="btn primary button-large pull-right"
onclick="Move(3,1)">
</div>
</div>
{{ Form::close() }}
@include('vt.search')
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists