require_once 'class/class.contacts.php'; require_once 'class/class.project.php'; require_once 'class/class.note.php'; require_once 'class/class.tasks.php'; require_once 'class/class.GlobalTask.php'; $page = new basic_page(); $page->auth->Checklogin(); $notify = new Notification(); $ajax = new PHPLiveX(); $project = new Project(); $note = new Note(); $user = new User(); $task = new Tasks(); $global_task = new GlobalTask(); $task->SetUserObject($user); $task->SetUserID($page->auth->Get_user_id()); $ajax->AjaxifyObjects(array("project", "task", "global_task")); $page->setPageKeywords(''); $page->setPageDescription(''); $page->setPageTitle("PROJECT PROFILE"); $page->setActiveButton('9'); //$page -> setInnerNav(''); //$page -> SetDynamicCSS_1('main_style.css'); //$page -> SetDynamicCSS_2('form.css'); $page->SetDynamicCSS_1('main_style.php'); $page->SetDynamicCSS_2('form.php'); $page->setImportCss3('css/all.css'); $page->setImportCss4('src/css/jscal2.css'); $page->setImportCss5('src/css/border-radius.css'); $page->setImportCss6('tablesort/themes/blue/style.css'); $page->setImportCss7('contact_profile.css');
function addTodo($module='',$profile_page='',$module_id='',$order_id='',$product_id='',$type=''){ ob_start(); $tasks = new Tasks(); $tasks -> SetUserID($_SESSION['user_id']); $tasks -> SetModuleID($_SESSION['contact_id']); if($type == 'server'){ //echo 'server'.$product_id; $tasks->AddTask('server',$module,$profile_page,$module_id,'',$module,$order_id,$product_id);} else{ //echo 'local'.$product_id; $tasks->AddTask('local',$module,$profile_page,$module_id,'',$module,$order_id,$product_id);} ?> <a href="javascript:void(0);" onClick="document.getElementById('task_link<?php echo $product_id;?>').style.display=''; document.getElementById('task_form<?php echo $product_id;?>').style.display='none'; return false;">cancel</a> <?php $html=ob_get_contents(); ob_end_clean(); return $html; }