Sindbad~EG File Manager
@extends('layout')
@section('title')
<title>IC</title>
@stop
@section('scriptTop')
{{ HTML::script('/js/ajaxloader.js') }}
{{ HTML::script('/js/jquery.validate.js') }}
{{ HTML::script('/js/jquery.common.js') }}
{{ HTML::script('/js/custom.js') }}
@stop
@section('scriptBottom')
<script type="text/javascript">
var baseUrl = "{{ url('/') }}";
var change_author_id;
$(document).ready(function () {
});
function change_coi(author_id) {
// is_change_coi var in search blade
is_change_coi =true;
change_author_id = author_id;
SearchPOP();
}
function onSelectChange(userid)
{ //clear msg
//errormsg("");
$.ajax({
url: baseUrl + '/ic/getmemberdetailsbyid',
type: 'POST',
dataType: 'json',
async: false,
data: {'searchuserid': userid, 'isci' : false,'author_id' : 0},
})
.done(function(d) {
result = d;
setMemberData(result.data);
})
.fail(function() {
//alert("Internal Server Error");
return false;
});
return true;
}
function setMemberData(data) {
$("#tr_"+change_author_id).addClass('success');
$('input[name="hdn_uid['+change_author_id+']"]').val(data.user_id)
var str = "";
str = str + data.membership_no?data.membership_no + ',' :'';
str = str + data.prefix +"."+data.name + ',';
str = str + data.email + ',';
str = str + data.mobile;
// $("#lbl_name_"+change_author_id).text(data.prefix +"."+data.name);
// $("#lbl_email_"+change_author_id).text(data.email);
// $("#lbl_mobile_"+change_author_id).text(data.mobile);
$("#lbl_auth_"+change_author_id).text(str);
// $("#lbl_mno_"+change_author_id).text(data.membership_no?data.membership_no:'');
// $("#lbl_name_"+change_author_id).text(data.prefix +"."+data.name);
// $("#lbl_email_"+change_author_id).text(data.email);
// $("#lbl_mobile_"+change_author_id).text(data.mobile);
$("#linkchange_"+change_author_id).html("Change Again")
}
</script>
@stop
@section('content')
@section('ContentTitle',"Change Co-Instructors")
<div id="frm">
{{ Form::open(array('url' => 'ic/change_coi/'.$ic->abs_id ,'role'=>'form','id'=>'form_coi_change')) }}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
@if(Session::has('msg'))
<div class="alert alert-success">{{ Session::get('msg')}}</div>
@endif
@if(Session::has('msg_err'))
<div class="alert alert-danger">{{ Session::get('msg_err')}}</div>
@endif
</div>
</div>
<!--step 2 details -->
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="table-responsive">
<table id="tbl_COI" class="table table-bordered">
<thead>
<tr>
<th>
Order No
</th>
<th>
Author details
</th>
{{-- <th>
Membership No
</th>
<th>
Author Name
</th>
<th>
Email
</th>
<th>
Mobile
</th> --}}
<th>
Topic
</th>
<th>
Duration
</th>
<th>
</th>
</tr>
</thead>
<tbody>
@foreach ($cois as $value)
<tr id="tr_{{ $value->author_id }}">
<td data-label="Order No">
{{ Form::hidden('hdn_uid['.$value->author_id.']', 0,array('id'=>'hdn_uid_'.$value->author_id)) }}
{{ $value->order_no }}
</td>
<td data-label="Author details">
<label id="lbl_auth_{{ $value->author_id }}">{{ $value->membership_no }}, {{ $value->name }}, {{ $value->email }}, {{ $value->mobile }}</label>
</td>
{{-- <td data-label="Membership No">
<label id="lbl_mno_{{ $value->author_id }}">{{ $value->membership_no }}</label>
</td>
<td data-label="Author Name">
<label id="lbl_name_{{ $value->author_id }}">{{ $value->name }}</label>
</td>
<td data-label="Email">
<label id="lbl_email_{{ $value->author_id }}">{{ $value->email }}</label>
</td>
<td data-label="Mobile">
<label id="lbl_mobile_{{ $value->author_id }}">{{ $value->mobile }}</label>
</td> --}}
<td data-label="Topic">
{{ $value->topic }}
</td>
<td data-label="Duration">
{{ $value->duration }}
</td>
<td>
<a id ="linkchange_{{$value->author_id}}" onclick="change_coi({{ $value->author_id }})" title="">
Change
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="row margin30">
<div class="col-sm-12 text-right" >
<input type="submit" value="SUBMIT" id ="btnSubmit" class="btn primary button-large">
</div>
</div>
{{ Form::close() }}
</div>
@include('ic.search')
@stop
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists