iがフィルタテーブルからデータをクリックすると、モーダルで表示されますが、表示するデータがない..データベースからのモーダルにデータを表示 - CodeIgniterの
これは私のコード..です
このコードは、 .. ..
<tbody id="cdr_control_holder">
<?php foreach ($cdr_table as $cdr) { ?>
<tr class="historylist" data-callsid="<?php echo $cdr->xcallsid; ?>" style="cursor: pointer; ">
<td><?php echo $cdr->user_firstname." ".$cdr->user_lastname; ?></td>
<td><?php echo $cdr->talk_time; ?></td>
<td><?php echo $cdr->aftertalk_time; ?></td>
<td><?php echo $cdr->hold_time; ?></td>
<td><?php echo $cdr->total_time; ?></td>
<td><?php echo $cdr->date_created; ?></td>
<td class="numClass"><?php echo $cdr->phone_number; ?></td>
<td><?php echo $cdr->classification; ?></td>
</tr>
<?php }?>
</tbody>
をデータベースからすべてのデータを表示することであり、これは私のAJAXコードである
$.ajax({
url: "<?php echo base_url();?>tenant/view_report/filter_date",
method: "POST",
data:{globoy_daterange:from, globoy_daterange2:to},
dataType: 'json',
success:function(data){
$('#cdr_control_holder').html('');
for(i=0; i<data.length; i++){
html = '';
html+= '<tr data-toggle="modal" data-target="#myModalCallDetails" class="historylist" data-callsid="'+data[i]['xcallsid']+'" style="cursor:pointer;">';
html+= '<td>'+data[i]['user_firstname']+' '+data[i]['user_lastname']+'</td>';
html+= '<td>'+data[i]['talk_time']+'</td>';
html+= '<td>'+data[i]['aftertalk_time']+'</td>';
html+= '<td>'+data[i]['hold_time']+'</td>';
html+= '<td>'+data[i]['total_time']+'</td>';
html+= '<td>'+data[i]['date_created']+'</td>';
html+= '<td class="numClass">'+data[i]['phone_number']+'</td>';
html+= '<td>'+data[i]['classification']+'</td>';
html+= '</tr>';
$('#cdr_control_holder').append(html);
}
}
});
私は何が間違っているのか分かりません。ありがとうございます。