2022-12-11 13:55:49 +05:00
|
|
|
|
<?php
|
|
|
|
|
|
2022-12-17 18:15:09 +05:00
|
|
|
|
if ( $_SESSION['dostup']!='a' ) header( 'Location: /login/' );// && $dostup!='m'
|
2022-12-11 13:55:49 +05:00
|
|
|
|
|
2022-12-17 18:15:09 +05:00
|
|
|
|
switch( @$_POST['act'] ) {
|
|
|
|
|
//Сохранение статуса задачи
|
|
|
|
|
case 'saveTaskStatus':
|
|
|
|
|
\DB::set('UPDATE `tasks` SET `status`="' . $_POST['status'] . '" WHERE `id` = "' . $_POST['id'] . '"');
|
|
|
|
|
break;
|
2022-12-11 13:55:49 +05:00
|
|
|
|
|
2022-12-17 18:15:09 +05:00
|
|
|
|
case 'save':/*Сохранение заметки*/
|
|
|
|
|
\DB::set( "UPDATE `zametka` SET `txt`=? WHERE `user_id` = ?", array( $_POST['txt'], $_SESSION['user_id'] ) );
|
2022-12-11 13:55:49 +05:00
|
|
|
|
break;
|
|
|
|
|
case 'loados':/*загружаем обратную связь со статусом не прочитано*/
|
|
|
|
|
unset( $a );
|
|
|
|
|
$a['status'] = 0;
|
|
|
|
|
$massiv = $db -> get_massiv( 'otzyv', $a, 'id' );
|
|
|
|
|
$num = $db -> num;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|