см. изображение:


это код отображения.
JAVASCRIPT:
Код: Выделить всё
$(document).ready(function(){
loadAccountList();
});
function loadAccountList() {
$.ajax({
/*url: "../srtdash/php_functions/account_list.php",
type: "POST",
dataType: "JSON",
data: {}, //this is data you send to your server*/
type: 'POST',
url: '../srtdash/php_functions/account_list.php',
dataType: 'json',
data: {},
contentType: 'application/json; charset=utf-8',
success: function(res)
{
for (var i = 0; i < res.length; i++) {
var lst;
if (res[i]['status'] == 1 ){
lst = '[h4][url=#]Pending[/url][/h4]';
}else if (res[i]['status'] == 2 ){
lst = '[h4][url=#]For Approval[/url][/h4]';
}else if (res[i]['status'] == 3 ) {
lst = '[h4][url=#]For CAD[/url][/h4]';
}else if (res[i]['status'] == 4 ){
lst = '[h4][url=#]For Appraisal[/url][/h4]';
}else if (res[i]['status'] == 5 ){
lst = '[h4][url=#]Release[/url][/h4]';
}
$('#tableBody').append('' + res[i]['account_id']
+ '' + res[i]['bvcsi_control']
+ '' + res[i]['account_name']
+ '' + res[i]['date_inspection']
+ '' + res[i]['date_report']
+ '' + res[i]['act_useof_prop']
+ '' + res[i]['landmark']
+ '' + res[i]['reg_owner']
+ '' + lst
+ '')
}
}
});
}
Код: Выделить всё
User ID
Control No.
Account Name
Date Inspection
Date of Report
Actual Use
Landmark
Registered Owner
Status
Подробнее здесь: https://stackoverflow.com/questions/551 ... javascript
Мобильная версия