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

  1.  
  2. <script type="text/javascript" langugae="javascript">
  3. <!--
  4. function upload()
  5. {
  6.     document.forms[0].task.value="upload";
  7.     var status = null;
  8.     if (status = get_object("status"))
  9.     {
  10.         status.innerHTML = "<?php echo $fbPleaseWait; ?>";
  11.     }
  12.     document.forms[0].action='import.php';
  13.     document.forms[0].submit();
  14. }
  15.  
  16.  
  17. -->
  18. </script>
  19.  
  20. <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $GO_CONFIG->max_file_size; ?>" />
  21.  
  22. <table border="0" cellpadding="3">
  23. <tr>
  24.     <td colspan="2">
  25.     <?php
  26.     if (isset($feedback)) echo $feedback;
  27.     echo $contacts_import_text;
  28.     ?>
  29.     <br /><br />
  30.     </td>
  31. </tr>
  32. <tr>
  33.     <td><?php echo $fbFilename; ?>:</td>
  34.     <td><input type="file" name="csv_file" maxlength="100" size="60" class="textbox" /></td>
  35. </tr>
  36. <tr>
  37.     <td valign="top"><?php echo $ab_import_type; ?>:</td>
  38.     <td>
  39.     <?php
  40.     $import_type = isset($_REQUEST['import_type']) ? $_REQUEST['import_type'] : 'contacts';
  41.     $radio_list = new radio_list('import_type', $import_type);
  42.     $radio_list->add_option('contacts', 'contacts', $contacts_contacts);
  43.     echo '<br />';
  44.     $radio_list->add_option('companies', 'companies', $ab_companies);
  45.     ?>
  46.     </td>
  47. </tr>
  48. <tr>
  49.     <td colspan="2">
  50.     <br />
  51.     <?php
  52.     $button = new button($cmdOk, 'javascript:upload();');
  53.     echo '  ';
  54.     $button = new button($cmdClose, "javascript:document.location='".$return_to."'");
  55.     ?>
  56.     </td>
  57. </tr>
  58. <tr>
  59.     <td id="status" class="Success" colspan="2"> </td>
  60. </tr>
  61. </table>
  62.  
  63.