[ Index ]

Source Code Reference for V1.00

title

Body

[close]

/modules/tasks/ -> ae_desc.php (source)

   1  <?php /* $Id: ae_desc.php 102 2008-03-18 19:52:59Z pedroix $ $URL: https://web2project.svn.sourceforge.net/svnroot/web2project/trunk/modules/tasks/ae_desc.php $ */
   2  if (!defined('W2P_BASE_DIR')) {
   3      die('You should not access this file directly.');
   4  }
   5  
   6  // $Id: ae_desc.php 102 2008-03-18 19:52:59Z pedroix $

   7  global $AppUI, $task_id, $obj, $users, $task_access, $department_selection_list;
   8  global $task_parent_options, $w2Pconfig, $projects, $task_project, $can_edit_time_information, $tab;
   9  
  10  $perms = &$AppUI->acl();
  11  ?>
  12  <form action="?m=tasks&a=addedit&task_project=<?php echo $task_project; ?>" method="post" name="detailFrm">
  13  <input type="hidden" name="dosql" value="do_task_aed" />
  14  <input type="hidden" name="sub_form" value="1" />
  15  <input type="hidden" name="task_id" value="<?php echo $task_id; ?>" />
  16  <table class="std" width="100%" border="1" cellpadding="4" cellspacing="0">
  17  <tr>
  18      <td width="50%" valign='top'>
  19          <table border="0">
  20              <tr>
  21                  <td>
  22                                  <?php
  23  if ($can_edit_time_information) {
  24  ?>
  25                                  <?php echo $AppUI->_('Task Owner'); ?>
  26                                  <br />
  27                              <?php echo arraySelect($users, 'task_owner', 'class="text"', !isset($obj->task_owner) ? $AppUI->user_id : $obj->task_owner); ?>
  28                                  <br />
  29                                      <?php
  30  } // $can_edit_time_information

  31  
  32  ?>
  33                                  <?php echo $AppUI->_('Access'); ?>
  34                                  <br />
  35                                  <?php echo arraySelect($task_access, 'task_access', 'class="text"', intval($obj->task_access), true); ?>
  36                                  <br /><?php echo $AppUI->_('Web Address'); ?>
  37                                  <br /><input type="text" class="text" name="task_related_url" value="<?php echo $obj->task_related_url; ?>" size="40" maxlength="255" />
  38  
  39                              </td>
  40                              <td valign='top'>
  41                                  <?php echo $AppUI->_('Task Type'); ?>
  42                                  <br />
  43                                  <?php $task_types = w2PgetSysVal('TaskType');
  44  echo arraySelect($task_types, 'task_type', 'class="text"', $obj->task_type, false); ?>
  45                                  <br /><br />
  46                      <?php
  47  if ($AppUI->isActiveModule('contacts') && $perms->checkModule('contacts', 'view')) {
  48      echo '<input type="button" class="button" value="' . $AppUI->_('Select contacts...') . '" onclick="javascript:popContacts();" />';
  49  }
  50  // Let's check if the actual company has departments registered

  51  if ($department_selection_list != '') {
  52  ?>
  53                                  <br />
  54                                  <?php echo $AppUI->_('Departments'); ?><br />
  55                                  <?php echo $department_selection_list; ?>
  56                              <?php
  57  }
  58  
  59  ?>
  60                  </td>
  61              </tr>
  62          <tr>
  63              <td><?php echo $AppUI->_('Task Parent'); ?>:</td>
  64              <td><?php echo $AppUI->_('Target Budget'); ?>:</td>
  65          </tr>
  66          <tr>
  67              <td>
  68                  <select name='task_parent' class='text'>
  69                      <option value='<?php echo $obj->task_id; ?>'><?php echo $AppUI->_('None'); ?></option>
  70                      <?php echo $task_parent_options; ?>
  71                  </select>
  72              </td>
  73              <td><?php echo $w2Pconfig['currency_symbol'] ?><input type="text" class="text" name="task_target_budget" value="<?php echo $obj->task_target_budget; ?>" size="10" maxlength="10" /></td>
  74          </tr>
  75      <?php if ($task_id > 0) { ?>
  76          <tr>
  77              <td>
  78                  <?php echo $AppUI->_('Move this task (and its children), to project'); ?>:
  79              </td>
  80          </tr>
  81          <tr>
  82              <td>
  83                  <?php echo arraySelect($projects, 'new_task_project', 'size="1" class="text" id="medium" onchange="submitIt(document.editFrm)"', $task_project); ?>
  84              </td>
  85          </tr>
  86      <?php } ?>
  87          </table>
  88      </td>
  89      <td valign="top" align="center">
  90          <table><tr><td align="left">
  91          <?php echo $AppUI->_('Description'); ?>:
  92          <br />
  93          <textarea name="task_description" class="textarea" cols="60" rows="10"><?php echo $obj->task_description; ?></textarea>
  94          </td></tr></table><br />
  95          <?php
  96  require_once ($AppUI->getSystemClass('CustomFields'));
  97  global $m;
  98  $custom_fields = new CustomFields($m, 'addedit', $obj->task_id, 'edit');
  99  $custom_fields->printHTML();
 100  ?>
 101      </td>
 102  </tr>
 103  </table>
 104  </form>
 105  <script language="javascript">
 106      subForm.push(new FormDefinition(<?php echo $tab; ?>, document.detailFrm, checkDetail, saveDetail));
 107  </script>


Generated: Thu Jan 8 03:00:03 2009 Cross-referenced by PHPXref 0.7