var items = {"grp90":[{"vare":"Brugt iPhone 7, 32GB, Grade B","pris":700,"img":"ip7","stock":1},{"vare":"Brugt iPhone 8, 64GB, Grade B","pris":1200,"img":"ip8","stock":1},{"vare":"Brugt iPhone 11, 64GB, Grade B","pris":2200,"img":"ip11","stock":1},{"vare":"Refurbished Apple iPhone 13 Mini, 128GB, A-Grade","pris":4600,"img":"ip13mini","stock":1},{"vare":"Refurbished Apple iPhone 13, 128GB, B-Grade","pris":4400,"img":"ip13","stock":1},{"vare":"Refurbished Apple iPhone SE 2 (2020), 128GB, B-Grade","pris":1900,"img":"ipse2","stock":1}],"grp98":[{"vare":"Samsung Galaxy Tab A8 10.5 (2021), 64GB, Silver","pris":2200,"img":"taba8","stock":1}],"grp91":[{"vare":"Refurbished 15.6\" Lenovo ThinkPad L580 - Intel i5 8250U 1,6GHz, 256GB NVMe, 16GB, Win11 Pro - Grade B","pris":3600,"img":"l580","stock":1},{"vare":"Refurbished 15.6\" Lenovo ThinkPad T580 - Intel i5 8350U 1,7GHz, 256GB NVMe, 16GB, Win11 Pro - Grade A","pris":4300,"img":"t580","stock":1}],"grp97":[{"vare":"Samsung Galaxy A15 5G, 128GB, Blue Black","pris":1900,"img":"a15","stock":3}],"grp92":[{"vare":"Refurbished Apple iPad 8 (2020), 128GB, B-Grade","pris":3000,"img":"ipad8","stock":1},{"vare":"Refurbished Apple iPad 9 (2021), 64GB, B-Grade","pris":2700,"img":"ipad9","stock":1}]};
Warning: Undefined array key "kat" in /home/web/iktp.dk/html/refurbished.php on line 73
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/web/iktp.dk/html/refurbished.php on line 73
var kats = [""];
document.write('
');
function formatnum(nStr) {
nStr += '';
var x = nStr.split('.');
var x1 = x[0];
var x2 = x.length > 1 ? ',' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + '.' + '$2');
}
return x1 + x2;
}
if (kats.includes('90') && items.grp90) {
document.write('
Telefoner på lager:
');
document.write('
');
items.grp90.forEach(function (item) { document.write('- '+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken
'); });
document.write('
');
}
if (kats.includes('91') && items.grp91) {
document.write('
Computere på lager:
');
document.write('
');
items.grp91.forEach(function (item) { document.write('- '+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken
'); });
document.write('
');
}
if (kats.includes('92') && items.grp92) {
document.write('
Tablets på lager:
');
document.write('
');
items.grp92.forEach(function (item) { document.write('- '+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken
'); });
document.write('
');
}
if (kats.includes('97') && items.grp97) {
document.write('
Telefoner på lager:
');
document.write('
');
items.grp97.forEach(function (item) { document.write('- '+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken
'); });
document.write('
');
}
if (kats.includes('98') && items.grp98) {
document.write('
Tablets på lager:
');
document.write('
');
items.grp98.forEach(function (item) { document.write('- '+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken
'); });
document.write('
');
}
if (kats.includes('99') && items.grp99) {
document.write('
Computere på lager:
');
document.write('
');
items.grp99.forEach(function (item) { document.write('- '+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken
'); });
document.write('
');
}
document.write('
');