3 if ( isset($batch) && $batch->Successful() ) return true;
5 param_to_global('batchcode', 'int');
7 $widget->AddField( 'batchcode', 'int1', "SELECT batchcode, batchcode::text || ' - ' || description FROM newbatch WHERE batchtype != 'ACCR' ORDER BY batchcode;" );
8 $widget->Defaults( array( 'batchcode' => $batchcode ));
9 // $widget->ReadWrite(); // Since the batchcode will not be present next time we are here this is not useful!
10 $widget->Title("Batch Update");
11 $widget->Layout( '<table>
13 <th class="right">Batch:</th>
14 <td class="left">##batchcode.select##</td>
17 <th class="right"></th>
18 <td class="left">##Update Batch.submit##</td>
21 $page_elements[] = $widget;