home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / cms / configuration.inc < prev    next >
Text File  |  2004-03-08  |  1KB  |  56 lines

  1. <br />
  2. <?php
  3. if (isset($feedback))
  4. {
  5.     echo $feedback;
  6. }
  7. ?>
  8. <input type="hidden" name="task" value="configuration" />
  9. <table border="0" cellpadding="3">
  10. <tr>
  11.     <td colspan="2">
  12.     <?php
  13.     $publish_path = $GO_CONFIG->get_setting('cms_publish_path');
  14.     $enable_publish = ($publish_path != '') ? true : false;
  15.     $checkbox = new checkbox('enable_publish', 'true' , $cms_enable_publish, $enable_publish, false, 'onclick="javascript:publishing()"');
  16.     ?>
  17.     </td>
  18. </tr>
  19. <tr>
  20.     <td><?php echo $fbPath; ?>:</td>
  21.     <td>
  22.     <?php
  23.     $disabled = $enable_publish ? '' : 'disabled';
  24.     echo '<input class="textbox" type="text" name="publish_path" size="50" value="'.$publish_path.'" '.$disabled.' />';
  25.     ?>
  26.     </td>
  27. </tr>
  28. <tr>
  29.     <td>URL:</td>
  30.     <td>
  31.     <?php
  32.     $publish_url = $GO_CONFIG->get_setting('cms_publish_url');
  33.     echo '<input class="textbox" type="text" name="publish_url" size="50" value="'.$publish_url.'" '.$disabled.' />';
  34.     ?>
  35.     </td>
  36. </tr>
  37. <tr>
  38.     <td colspan="2">
  39.     <?php
  40.     $button = new button($cmdSave, 'javascript:document.forms[0].submit()');
  41.     ?>
  42.     </td>
  43. </tr>
  44. </table>
  45. <script type="text/javascript">
  46.  
  47. function publishing()
  48. {
  49.     document.forms[0].publish_path.disabled=!document.forms[0].publish_path.disabled;
  50.     if (!document.forms[0].publish_path.disabled)
  51.     {
  52.         document.forms[0].publish_path.focus();
  53.     }
  54.  
  55. }
  56. </script>