HELP: Function output: Forms and Table

Hi,

I'm creating a module using drupal 7.

I have a problem outputing some data in a function.

my problem is in function evaluation_section() how do i output form and table at the same time.

Thank you in advance for your help. very much appreciated. :D

<?php
/**
* Implements hook_menu().
*/
function evaluation_menu() {
$items['evaluate'] = array(
'title' => 'Student Evaluation',
'page callback' => 'evaluation_section',
'access arguments' => array('access evaluation'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}

/**
* Menu page callback function
*/
function evaluation_section(){

$section = arg(1);
if (empty($section)){
$section = 'search';
}

if ($section == 'result'){
$firstname = arg(2);
$lastname = arg(3);

/**
* My problem is here. I don't know how to output form and table at the same time.
*/

$output = drupal_get_form('evaluation_search_student_form',$firstname,$lastname);
$output .= evaluation_get_student_regisration($firstname,$lastname);
return $output;

}elseif ($section == 'registration'){
// code for getting student registration
}elseif($section == 'search'){
return drupal_get_form('evaluation_search_student_form',NULL,NULL);
}
}

/**
* Generate student form.
*/

taxonomy + views

There is a regions vocabulary . It has three-level nesting terms. Example Azovskoe Sea-> Donetsk region-> Yurivka
Can you advice me how to display a list of terms of a certain level (eg level of Donetsk region) as links.
Thank you.

Custom Ubercart product

I've done my research and I think I know what I want but I need to avoid scope creep and budget changes as much as possible. So, lets put our heads together and come up with the best possible plan.

I'm looking for developer that has worked with Ubercart that can create a custom product.

New to Drupal-how to disable the lightbox design in admin area

Hi Guys, I am new to Drupal. I just installed it today and I am thinking of creating a basic site using it. i found the lightbox dashboard a bit annoying. Its actually ok for me but I want to create a site where other users can register. It can be very nagging to users in general. Is there a way to disable it?

Trouble with URL aliases - pathmodule

Hi,

I have just installed Drupal7 (minimal start configuration) with Microsoft Webplatform Installer.
It is running locally on IIS 7.5 and SQL Server 2008R Express database. OS Windows 7 64 SP1.

After successfully installing the path module I wanted to enter an URL alias for an test-article I wrote earlier.
Although I can access the URL alias by directly typing it into the browser like "localhost/drupal7/my-first-article" without any errors all links within Drupal7 pointing to that article are still of type "node/1".

why wont javascript/css that is used in a basic page not work in drupal 7 with Internet Explorer ?

why wont javascript/css that is used in a basic page not work in drupal 7 with IE 6,7,8 ?

I want to get this slideshow working inside a drupal page, it works in chrome and firefox however in IE 6-8 it looks broken, any adivice on why it's broken would be appreciated

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x