|
Revision 21, 1.5 kB
(checked in by admin, 18 years ago)
|
|
|
| Rev | Line | |
|---|
| [21] | 1 | <?php |
|---|
| 2 | include_once('RCCWP_CustomWriteModulePage.php'); |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | class RCCWP_CreatePanelModulePage |
|---|
| 6 | { |
|---|
| 7 | function Main() |
|---|
| 8 | { |
|---|
| 9 | |
|---|
| 10 | $modules = RCCWP_CustomWriteModule::GetCustomModules(); |
|---|
| 11 | |
|---|
| 12 | if(isset($_GET['custom-write-panel-id']) && !empty($_GET['custom-write-panel-id']) ) |
|---|
| 13 | $customWritePanelId = (int)$_GET['custom-write-panel-id']; |
|---|
| 14 | if(isset($_POST['custom-write-panel-id']) && !empty($_POST['custom-write-panel-id']) ) |
|---|
| 15 | $customWritePanelId = (int)$_POST['custom-write-panel-id']; |
|---|
| 16 | ?> |
|---|
| 17 | |
|---|
| 18 | <div class="wrap"> |
|---|
| 19 | |
|---|
| 20 | <h2><?php _e('Add Module'); ?></h2> |
|---|
| 21 | |
|---|
| 22 | <form action="" method="post" id="add-new-module-form"> |
|---|
| 23 | |
|---|
| 24 | <table class="form-table" width="100%" border="0" cellspacing="0" cellpadding="6"> |
|---|
| 25 | <tbody> |
|---|
| 26 | |
|---|
| 27 | <tr valign="top"> |
|---|
| 28 | <th scope="row" align="right">Name:</th> |
|---|
| 29 | <td> |
|---|
| 30 | |
|---|
| 31 | <input type="hidden" name="custom-write-panel-id" value="<?php echo $customWritePanelId?>" /> |
|---|
| 32 | <select tabindex="3" name="custom-write-module-id" id="custom-write-module-id"> |
|---|
| 33 | <?php |
|---|
| 34 | foreach ($modules as $module) : |
|---|
| 35 | ?> |
|---|
| 36 | |
|---|
| 37 | <option value="<?php echo $module->id?>"><?php echo $module->name?></option> |
|---|
| 38 | |
|---|
| 39 | <?php |
|---|
| 40 | endforeach; |
|---|
| 41 | ?> |
|---|
| 42 | </select> |
|---|
| 43 | </td> |
|---|
| 44 | </tr> |
|---|
| 45 | </tbody> |
|---|
| 46 | </table> |
|---|
| 47 | |
|---|
| 48 | <p class="submit" > |
|---|
| 49 | <input name="cancel-add-module" type="submit" id="cancel-add-module" value="<?php _e('Cancel'); ?>" /> |
|---|
| 50 | <input name="finish-add-module" type="submit" id="finish-add-module" value="<?php _e('Finish'); ?>" /> |
|---|
| 51 | </p> |
|---|
| 52 | |
|---|
| 53 | </form> |
|---|
| 54 | |
|---|
| 55 | </div> |
|---|
| 56 | |
|---|
| 57 | <?php |
|---|
| 58 | } |
|---|
| 59 | } |
|---|
| 60 | ?> |
|---|