55 lines
2.1 KiB
PHP
Executable File
55 lines
2.1 KiB
PHP
Executable File
<?php
|
|
|
|
//$current_timestamp_by_mktime = mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
|
|
//echo $current_timestamp_by_mktime;
|
|
|
|
/* ----------------------------------------------------------------------
|
|
12.06.2022
|
|
Простая CRM-система
|
|
---------------------------------------------------------------------- */
|
|
|
|
$mod = new main( BD_NAME, BD_TYPE, BD_HOST, BD_USER, BD_PWD, MOD );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
12.06.2022
|
|
Вынимаем юзеров
|
|
---------------------------------------------------------------------- */
|
|
|
|
$smarty -> assign( 'users', $mod -> get_users() );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
12.06.2022
|
|
Сохраняем задачу
|
|
---------------------------------------------------------------------- */
|
|
|
|
if ( $_POST ) $mod -> save_task( $_POST );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
12.06.2022
|
|
Берем список задач порученных мне
|
|
---------------------------------------------------------------------- */
|
|
|
|
$smarty -> assign( 'my_tasks', $mod -> get_my_tasks() );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
12.06.2022
|
|
Берем список ЗАВЕРШЕННЫХ задач порученных мне
|
|
---------------------------------------------------------------------- */
|
|
|
|
$smarty -> assign( 'my_end_tasks', $mod -> get_my_end_tasks() );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
12.06.2022
|
|
Берем список Поставленных задач
|
|
---------------------------------------------------------------------- */
|
|
|
|
$smarty -> assign( 'my_send_tasks', $mod -> get_my_send_tasks() );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
13.06.2022
|
|
Переменная tasks.html
|
|
---------------------------------------------------------------------- */
|
|
|
|
$smarty -> assign( 'tasks', MYDIR . '/api/modules/crm/tasks.html' );
|
|
|
|
?>
|