Update data_gc_tab.html
Browse files- data_gc_tab.html +12 -3
data_gc_tab.html
CHANGED
|
@@ -264,9 +264,18 @@ button:hover, #filter-clear:hover, #download-json:hover, #take-for-yourself:hove
|
|
| 264 |
{title:"Номер в списке", field:"id"},
|
| 265 |
{title:"Имя", field:"name", width:100},
|
| 266 |
{title:"WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
{title:"Город", field:"b_city", width:110},
|
| 271 |
{title:"Email", field:"email", width:110},
|
| 272 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
|
|
|
| 264 |
{title:"Номер в списке", field:"id"},
|
| 265 |
{title:"Имя", field:"name", width:100},
|
| 266 |
{title:"WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
|
| 267 |
+
var phone = cell.getValue();
|
| 268 |
+
var ws_st = cell.getData().ws_st;
|
| 269 |
+
var imageUrl1 = "https://i.ibb.co/LRdsTrh/1.png"; // Замените на URL первой картинки
|
| 270 |
+
var imageUrl2 = "https://i.ibb.co/Bnqy0q5/1.png"; // Замените на URL второй картинки
|
| 271 |
+
var link = `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">`;
|
| 272 |
+
|
| 273 |
+
if (ws_st === "1") {
|
| 274 |
+
return link + `<img src="${imageUrl1}" alt="WhatsApp" style="width: 98px; height: 14px;">`;
|
| 275 |
+
} else {
|
| 276 |
+
return link + `<img src="${imageUrl2}" alt="WhatsApp" style="width: 98px; height: 14px;">`;
|
| 277 |
+
}
|
| 278 |
+
}, width:120},
|
| 279 |
{title:"Город", field:"b_city", width:110},
|
| 280 |
{title:"Email", field:"email", width:110},
|
| 281 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|