Ejemplo n.º 1
0
    echo TEXT_ACTIVITY_ENTRY_NO_DATE_SELECTED;
}
?>
            </td>
          </tr>
          <tr>
            <td class="item_entry">
              <?php 
echo TEXT_ACTIVITY_PROJECTNAME;
?>
            </td>
            <td class="item_entry">
              <?php 
echo tep_draw_form('project_selection', tep_href_link(FILENAME_TIMEREGISTRATION)) . tep_create_parameters(array('action' => 'select_role'), array('mPath', 'period', 'sort_order', 'selected_date', 'activity_id'), 'hidden_field');
if ($_POST['action'] == 'select_project' || $_POST['action'] == 'select_role' || $_POST['action'] == 'enter_data' || $_POST['action'] == 'save_data') {
    echo tep_html_select('projects_id', tep_get_partial_array(project::get_selectable_projects($_SESSION['employee']->id, tep_strftime('%Y-%m-%d', $_POST['selected_date'])), 'projects_id', 'projects_name'), TRUE, $_POST['projects_id']);
} else {
    echo tep_html_select('projects_id', array(), FALSE);
}
?>
</form>
            </td>
          </tr>
          <tr>
            <td class="item_entry">
              <?php 
echo TEXT_ACTIVITY_ROLENAME;
?>
            </td>
            <td class="item_entry">
              <?php