[ Index ]

Source Code Reference for V1.00

title

Body

[close]

/modules/projects/ -> departments_tab.view.projects_gantt.php (source)

   1  <?php /* PROJECTS $Id: departments_tab.view.projects_gantt.php,v 1.1.2.4 2007/09/19 13:45:52 theideaman Exp $ */
   2  if (!defined('W2P_BASE_DIR')) {
   3      die('You should not access this file directly.');
   4  }
   5  
   6  global $a, $addPwOiD, $AppUI, $buffer, $company_id, $department, $dept_ids, $min_view, $m, $priority, $projects, $tab, $user_id;
   7  
   8  $perms = &$AppUI->acl();
   9  $df = $AppUI->getPref('SHDATEFORMAT');
  10  
  11  $pstatus = w2PgetSysVal('ProjectStatus');
  12  
  13  if (isset($_POST['proFilter'])) {
  14      $AppUI->setState('DeptProjectIdxFilter', $_POST['proFilter']);
  15  }
  16  $proFilter = $AppUI->getState('DeptProjectIdxFilter') !== null ? $AppUI->getState('DeptProjectIdxFilter') : '-3';
  17  
  18  $projFilter = arrayMerge(array('-1' => 'All Projects'), $pstatus);
  19  $projFilter = arrayMerge(array('-2' => 'All w/o in progress'), $projFilter);
  20  $projFilter = arrayMerge(array('-3' => 'All w/o archived'), $projFilter);
  21  natsort($projFilter);
  22  
  23  // load the companies class to retrieved denied companies
  24  require_once ($AppUI->getModuleClass('companies'));
  25  
  26  // retrieve any state parameters
  27  if (isset($_GET['tab'])) {
  28      $AppUI->setState('DeptProjIdxTab', w2PgetParam($_GET, 'tab', null));
  29  }
  30  
  31  if (isset($_POST['show_form'])) {
  32      $AppUI->setState('addProjWithOwnerInDep', w2PgetParam($_POST, 'add_pwoid', 0));
  33  }
  34  $addPwOiD = $AppUI->getState('addProjWithOwnerInDep') ? $AppUI->getState('addProjWithOwnerInDep') : 0;
  35  
  36  $extraGet = '&user_id=' . $user_id;
  37  ?>
  38  <table width="100%" border="0" cellpadding="3" cellspacing="1" class="tbl">
  39  <tr>
  40      <td align="center" width="100%" nowrap="nowrap" colspan="6">&nbsp;</td><td align="right" nowrap="nowrap"><form action="?m=departments&tab=<?php echo $tab; ?>" method="post" name="checkPwOiD"><input type="checkbox" name="add_pwoid" id="add_pwoid" onclick="document.checkPwOiD.submit()" <?php echo $addPwOiD ? 'checked="checked"' : ''; ?> /><label for="add_pwoid"><?php echo $AppUI->_('Show Projects whose Owner is Member of the Dep.'); ?>?</label><input type="hidden" name="show_form" value="1" /></form></td>
  41  </tr>
  42  </table>
  43  <?php
  44  $min_view = true;
  45  require  (W2P_BASE_DIR . '/modules/projects/viewgantt.php');
  46  ?>


Generated: Fri Jan 9 03:00:02 2009 Cross-referenced by PHPXref 0.7