テキストフィールドのテーブルを作成したいフォームモジュールを作成しましたが、図に示すように、それらの間隔は互いに非常に離れています。どうすればそれらを近づけることができますか?何らかの理由で、列と同様に、行は互いに非常に離れて配置されています。Webサイト用に作成されたほとんどのHTMLテーブルと同様に、それらを隣り合わせにしてほしい。
第二に、通常のテキストコンテンツ用にdrupalによって提供されるtheme_table()にフォームを組み込む方法はありますか?フォーマットはそれらにとって本当に素晴らしいです。-> http://coffeeshopped.com/2010/09/drupal-drag-and-drop-tables-in-custom-modules $formをtheme_table()の$header配列と$row配列に詰め込めるはずです。 。私はこれに代わるものを投稿しましたが、これもここで質問です:drupal6フォームモジュールがhook_themeを呼び出さない
$form['a1'] = array(
'#type' => 'textfield',
'#title' => t('Date'),
'#prefix'=>'<table><tr><td>',
'#suffix'=>'</td>',
);
$form['a2'] = array(
'#type' => 'textfield',
'#title' => t('Amount Requested'),
'#prefix'=>'<td>',
'#suffix'=>'</td>',
);
$form['a3'] = array(
'#type' => 'textfield',
'#title' => t('Amount Recieved'),
'#prefix'=>'<td>',
'#suffix'=>'</td></tr>',
);
$form['b1'] = array(
'#type' => 'textfield',
'#prefix'=>'<tr><td>',
'#suffix'=>'</td>',
);
$form['b2'] = array(
'#type' => 'textfield',
'#prefix'=>'<td>',
'#suffix'=>'</td>',
);
$form['b3'] = array(
'#type' => 'textfield',
'#prefix'=>'<td>',
'#suffix'=>'</td></tr>',
);
$form['c1'] = array(
'#type' => 'textfield',
'#prefix'=>'<tr><td>',
'#suffix'=>'</td>',
);
$form['c2'] = array(
'#type' => 'textfield',
'#prefix'=>'<td>',
'#suffix'=>'</td>',
);
$form['c3'] = array(
'#type' => 'textfield',
'#prefix'=>'<td>',
'#suffix'=>'</td></tr></table>',
);