Current code.
[capital-apms.git] / inc / action / screen / batch-update.php
blob3c7589a19cedf5b10aa534f3d735a73bd21fa1ad
1 <?php
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>
12 <tr>
13 <th class="right">Batch:</th>
14 <td class="left">##batchcode.select##</td>
15 </tr>
16 <tr>
17 <th class="right"></th>
18 <td class="left">##Update Batch.submit##</td>
19 </tr>
20 </table>' );
21 $page_elements[] = $widget;