You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

98 lines
3.4 KiB

$(async function() {
await VIP_API();
});
function generate_vip_table(steamid3) {
let h_size = "h4"
let table = `
<div class="col text-center rounded border border-dark gy-3 p-4" style="background-color: #E2EFDE;">
<${h_size}>Если ты выбираешь оплату киви, тебе переадресует на страницу оплаты.</${h_size}>
<${h_size}>Если оплатить через трейд бота в стиме, тебе перекинет в стим, где ты должен скинуть нужные вещички. SteamGuard с твоей стороны должен быть включен.</${h_size}>
<table class="table">
<thead>
<tr>
<th scope="col">Количество дней</th>
<th scope="col">Рублями через QIWI</th>
<th scope="col">Обмен Steam</th>
</tr>
</thead>
<tbody>
<tr>
<th>Сутки</th>
<th><a href="https://qiwi.ru">20 Рублей</a></th>
<th><a href="https://steam.com">5 Рефов</a></th>
</tr>
<tr>
<th>Неделя</th>
<th><a href="https://qiwi.ru">75 Рублей</a></th>
<th><a href="https://qiwi.ru">20 Рефов</a></th>
</tr>
<tr>
<th>Месяц</th>
<th><a href="https://qiwi.ru">150 Рублей</a></th>
<th><a href="https://qiwi.ru">1 Ключ</a></th>
</tr>
</tbody>
</table>
</div>
`
return table;
}
function current_vip(permition) {
let check_vip;
if(permition == null) {
check_vip = `
<h2>У тебя нет випки, может стоит ее прикупить??</h2>
<h5><a href="#VIPSection" data-toggle="tab">> КУПИТЬ <</a></h3>
`
} else {
let start_vip;
if (permition["UNIX_TIMESTAMP(`reg_date`)"] == 0){
start_vip = "с момента создания";
} else {
start_vip = UNIX2TIMESTAMP(permition["UNIX_TIMESTAMP(`reg_date`)"]);
}
let end_vip;
if(permition.amount == 0){
end_vip = "бесконечны";
} else {
end_vip = UNIX2TIMESTAMP(permition["UNIX_TIMESTAMP(`reg_date`)"] + permition.amount);
}
check_vip = `
<h2>VIP права на текущий момент</h2>
<table class="table">
<thead>
<tr>
<th scope="col" alt="ок">Steam ID 3</th>
<th scope="col" alt="ок">Доступ</th>
<th scope="col" alt="ок">Дата получения</th>
<th scope="col" alt="ок">Дата окончания</th>
</tr>
</thead>
<tbody>
<tr>
<th>${permition.identity}</th>
<th>${permition.status}</th>
<th>${start_vip}</th>
<th>${end_vip}</th>
</tr>
</tbody>
</table>
<h5><a href="#VIPSection" data-toggle="tab">Продлить права...</a></h3>
`
}
return `
<div class="col text-center rounded border border-dark gy-3 p-4" style="background-color: #E2EFDE;" id="ProfileVip">
${check_vip}
</div>
`;
}
async function VIP_API() {
}