home *** CD-ROM | disk | FTP | other *** search
/ ftp.f-secure.com / 2014.06.ftp.f-secure.com.tar / ftp.f-secure.com / support / hotfix / fsav-server / FSAVSRV900_HF07.fsfix / iuwebui / forms / tree_fsma / notify.php < prev    next >
PHP Script  |  2010-09-07  |  2KB  |  64 lines

  1. <?php 
  2.     include ("..\common\commonphp.php");
  3.  
  4.     $Page_Settings = array(    array(oid => '1.3.6.1.4.1.2213.20.1.100.10.10', type => GLOBAL_STR, required => 1, name => 'Notification sender address'));
  5.  
  6.     $tab_name = "tabFSMANotifications";
  7.  
  8.     if(!isset($_POST[SUBMIT_TABLE]))
  9.     {
  10.         /* first load of the page */
  11.         readSettings(&$Page_Settings);
  12.     }
  13.     else 
  14.     {
  15.         if($_POST[RESTORE_TABLE] == 1)
  16.         {
  17.             /* user wants to restore defaults */
  18.             readDefaultSettings(&$Page_Settings);
  19.         }
  20.         else
  21.         {
  22.             readPageData(&$Page_Settings);
  23.             if($_POST[SUBMIT_TABLE] == 1)    
  24.                 writeSettings($Page_Settings);
  25.         }
  26.         exit(0);
  27.     }    
  28.  
  29.     show_form_management($tab_name);
  30. ?>
  31. <script language='JavaScript' type='text/javascript'>
  32.     <?php echo $tab_name;?>_settings_check = function()
  33.     {
  34.         <?php echo get_validation_script($Page_Settings[0], $tab_name, "VAR_PAGE_SETTINGS_0", "")?>
  35.         return true;
  36.     }
  37. </script>
  38.  
  39.  
  40. <form method="POST" action='<?php echo "{$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}";?>' id="form_<?php echo $tab_name;?>" name="form_<?php echo $tab_name;?>" style="padding: 0; margin: 0;">
  41.     <input type="hidden" name="SUBMIT_TABLE" value="0">
  42.     <input type="hidden" name="RESTORE_TABLE" value="0">
  43.     <input type="hidden" name="APPLY_SETTINGS" value="0">
  44.  
  45.     <?php show_action_menu('Notifications', $tab_name); ?>
  46.     <table border="0" cellspacing="5" cellpadding="0" class="main_page_table">
  47.         <tr>
  48.             <td valign="top" width="100%">
  49.                 <table cellspacing="0" cellpadding="0" border="0" width="100%" class="table_settings">
  50.                     <tr align="left" class="tr_setting">
  51.                         <td nowrap class="td_setting">
  52.               <?=$Page_Settings[0][lock];?><?=fsloc('Notification sender address:')?>   </td>
  53.                         <td width=100%><input type="text" size=45 name="VAR_PAGE_SETTINGS_0" value="<?php echo $Page_Settings[0][value];?>">
  54.                     </td></tr>
  55.                 </table>
  56.             </td>
  57.         </tr>
  58.         <?php show_action_buttons($tab_name, true, true); ?>
  59.     </table>
  60. </form>
  61.  
  62.  
  63.  
  64.