DmitrMakeev
commited on
Commit
•
e2031f0
1
Parent(s):
26948f7
Update bas_vk_tab.html
Browse files- bas_vk_tab.html +15 -0
bas_vk_tab.html
CHANGED
@@ -302,6 +302,21 @@ button:hover, #filter-clear:hover, #download-json:hover, #take-for-yourself:hove
|
|
302 |
return linktg2 + `<img src="${imageUrlntg2}" alt="Image" style="width: 98px; height: 14px;">`;
|
303 |
}
|
304 |
}},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
{title:"Город", field:"b_city", width:95},
|
306 |
{title:"Email", field:"email", width:95},
|
307 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
|
|
302 |
return linktg2 + `<img src="${imageUrlntg2}" alt="Image" style="width: 98px; height: 14px;">`;
|
303 |
}
|
304 |
}},
|
305 |
+
{title:"GetCurse", field:"ad_url", formatter: function(cell, formatterParams, onRendered) {
|
306 |
+
var ad_url = cell.getValue();
|
307 |
+
var imageUrlvkgc1 = "https://i.ibb.co/BKB8R4C/2-2.png"; // Замените на URL первой картинки
|
308 |
+
var imageUrlvkgc2 = "https://i.ibb.co/MPCGvQX/2-1.png"; // Замените на URL второй картинки
|
309 |
+
var linkgc1 = `<a href="https://vk.com/getcourseru" target="_blank">`;
|
310 |
+
var linkgc2 = `<a href="${ad_url}" target="_blank">`;
|
311 |
+
// Проверка условий
|
312 |
+
if (ad_url === "0" || ad_url === "") {
|
313 |
+
// Если vk_id равен "0" или пуст
|
314 |
+
return linkgc1 + `<img src="${imageUrlvkgc1}" alt="Image" style="width: 98px; height: 14px;">`;
|
315 |
+
} else {
|
316 |
+
// Если vk_id не пуст и не равен "0"
|
317 |
+
return linkgc2 + `<img src="${imageUrlvkgc2}" alt="Image" style="width: 98px; height: 14px;">`;
|
318 |
+
}
|
319 |
+
}},
|
320 |
{title:"Город", field:"b_city", width:95},
|
321 |
{title:"Email", field:"email", width:95},
|
322 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|