| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:53:39 2008 ] | [ PHProjekt 5.0.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 3 // projects - PHProjekt Version 5.0 4 // copyright © 2000-2005 Albrecht Guenther ag@phprojekt.com 5 // www.phprojekt.com 6 // Author: Albrecht Guenther, $Author: alexander $ 7 // $Id: projects.php,v 1.22 2005/06/30 12:29:28 alexander Exp $ 8 9 $module = 'projects'; 10 $contextmenu = 1; 11 12 $path_pre = '../'; 13 $include_path = $path_pre.'lib/lib.inc.php'; 14 include_once $include_path; 15 16 projects_init(); 17 18 $_SESSION['common']['module'] = 'projects'; 19 20 // List of fields in the db table, needed for filter 21 $fields = array( "all" => __('all fields'), "name" => __('Name'), "chef" => __('Leader'), 22 "ziel" => __('Aim'), "contact" => __('Contact'), "note" => __('Comment') ); 23 24 //categories: 1=offered, 2=ordered, 3=at work, 4=ended, 5=stopped, 6=reopened 7 = waiting, 10=container, 11=ext. project 25 $categories = array( "1" => __('offered'), "2" => __('ordered'), "3" => __('Working'), "4" => __('ended'), 26 "5" => __('stopped'), "6" => __('Re-Opened'), "7" => __('waiting')); 27 28 // dependencies between projects on the same level 29 // 2 = cannot start before the end of project B, 30 // 3 = cannot start before start of project B, 31 // 4 = cannot end before start of project B, 32 // 5 = cannot end before end of project B 33 $dependencies = array( '2' => __('cannot start before the end of project'), 34 '3' => __('cannot start before the start of project'), 35 '4' => __('cannot end before the start of project'), 36 '5' => __('cannot end before the end of project') ); 37 38 // modes to define which project should appear in the list ... 39 // 1 = above the record 40 // 2 = below the record 41 $next_mode_arr = array('1' => __('Previous'), '2' => __('Next')); 42 43 44 // by default an open tree 45 if (!$treemode) $treemode = 'auf'; 46 else $treemode = xss($treemode); 47 48 // fetch elements of the form from the db 49 if (!$mode) $mode = 'view'; 50 else $mode = xss($mode); 51 52 $ID = (int) $ID; 53 $justform = (int) $justform; 54 55 if ($mode == 'view') $contextmenu = 1; 56 57 if ($mode <> 'gantt') { 58 require_once ($path_pre.'lib/dbman_lib.inc.php'); 59 $fields = build_array('projects', $ID, $mode); 60 } 61 62 $output = ''; 63 echo set_page_header(); 64 65 if ($justform != 1) { 66 include_once ($path_pre.'lib/navigation.inc.php'); 67 echo '<div class="outer_content">'; 68 echo '<div class="content">'; 69 } 70 else echo '<div class="justformcontent">'; 71 72 if ($inclu) { 73 if($inclu == 'err_pro.php'){ 74 include('./'.$inclu); 75 } 76 } 77 else { 78 include_once('./projects_'.$mode.'.php'); 79 } 80 if ($justform != 1) echo '</div>';; 81 echo '</div>'; 82 83 echo "\n</body>\n</html>\n"; 84 85 /** 86 * initialize the projects stuff and make some security checks 87 * 88 * @return void 89 */ 90 function projects_init() { 91 global $ID, $mode, $output; 92 93 $output = ''; 94 95 $ID = $_REQUEST['ID'] = (int) $_REQUEST['ID']; 96 97 if (!isset($_REQUEST['mode']) || !in_array($_REQUEST['mode'], array('view', 'forms', 'data', 'gantt', 'options', 'sort', 'stat', 'pdf', 'status_update', 'status_change'))) { 98 $_REQUEST['mode'] = 'view'; 99 } 100 $mode = $_REQUEST['mode']; 101 102 } 103 104 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |