Просмотр файла 2/3020.ru/users/profile/notifications/components/settings/guestbook.php

Размер файла: 863B
<?php
  
$type = 'guestbook';
$type_tumb = 'gb';
$type_sql = 'GUESTBOOK';
$type_text = 'Ответ на комментарий в общей гостевой';

ECHO "<div id='".$type."'>";
  
IF ($notif_set[$type_sql] == 0){
  
  $value = 1;
  $tumb = "tumb";
  
}ELSE{
  
  $value = 0;
  $tumb = "tumb2";
  
}
  
IF (GET('get') == $type){
  
  DB::GET_SET("UPDATE `NOTIFICATIONS_SETTINGS` SET `".$type_sql."` = '".$value."' WHERE `USER_ID` = '".$user['ID']."' LIMIT 1");
  
}

ECHO "</div>";

ECHO "<div class='list-menu'>";
  
ECHO "<b>".LG($type_text)."</b>";
  
?>
<input onclick="request('<?=$type?>', '/users/profile/?path=notifications&section=settings&get=<?=$type?>', '#<?=$type?>')" class="input-tumb" type="checkbox" id="<?=$type_tumb?>"><label class="<?=$tumb?>" style="float: right;" for="<?=$type_tumb?>"></label></input>
<?
  
ECHO "</div>";
  
?>