home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / phptriad / phptriad2-2-1.exe / htdocs / phpmyadmin / ldi_table.php < prev    next >
PHP Script  |  2002-01-06  |  3KB  |  86 lines

  1. <?php
  2. /* $Id: ldi_table.php,v 1.10 2001/12/22 16:49:29 lem9 Exp $ */
  3.  
  4.  
  5. /**
  6.  * This file defines the forms used to insert a textfile into a table
  7.  */
  8.  
  9.  
  10. /**
  11.  * Gets some core libraries
  12.  */
  13. require('./libraries/grab_globals.lib.php');
  14. require('./header.inc.php');
  15.  
  16.  
  17. /**
  18.  * Displays the form
  19.  */
  20. ?>
  21. <form action="ldi_check.php" method="post" enctype="multipart/form-data">
  22.     <table cellpadding="5" border="2">
  23.     <tr>
  24.         <td><?php echo $strLocationTextfile; ?></td>
  25.         <td colspan="2"><input type="file" name="textfile" /></td>
  26.     </tr>
  27.     <tr>
  28.         <td><?php echo $strReplaceTable; ?></td>
  29.         <td><input type="checkbox" name="replace" value="REPLACE" /><?php echo $strReplace; ?></td>
  30.         <td><?php echo $strTheContents; ?></td>
  31.     </tr>
  32.     <tr>
  33.         <td><?php echo $strFieldsTerminatedBy; ?></td>
  34.         <td><input type="text" name="field_terminater" size="2" maxlength="2" value=";" /></td>
  35.         <td><?php echo $strTheTerminator; ?></td>
  36.     </tr>
  37.     <tr>
  38.         <td><?php echo $strFieldsEnclosedBy; ?></td>
  39.         <td>
  40.             <input type="text" name="enclosed" size="1" maxlength="1" value=""" />
  41.             <input type="checkbox" name="enclose_option" value="OPTIONALLY" /><?php echo $strOptionally . "\n"; ?>
  42.         </td>
  43.         <td><?php echo $strOftenQuotation; ?></td>
  44.     </tr>
  45.     <tr>
  46.         <td><?php echo $strFieldsEscapedBy; ?></td>
  47.         <td><input type="text" name="escaped" size="2" maxlength="2" value="\" /></td>
  48.         <td><?php echo $strOptionalControls; ?></td>
  49.     </tr>
  50.     <tr>
  51.         <td><?php echo $strLinesTerminatedBy; ?></td>
  52.         <td><input type="text" name="line_terminator" size="8" maxlength="8" value="<?php echo ((PMA_whichCrlf() == "\n") ? '\n' : '\r\n'); ?>" /></td>
  53.         <td><?php echo $strCarriage; ?><br /><?php echo $strLineFeed; ?></td>
  54.     </tr>
  55.     <tr>
  56.         <td><?php echo $strColumnNames; ?></td>
  57.         <td><input type="text" name="column_name" /></td>
  58.         <td><?php echo $strIfYouWish; ?></td>
  59.     </tr>
  60.     <tr>
  61.         <td colspan="3" align="center"><?php print PMA_showDocuShort('L/O/LOAD_DATA.html'); ?></td>
  62.     </tr>
  63.     <tr>
  64.         <td colspan="3" align="center">
  65.             <input type="hidden" name="lang" value="<?php echo $lang; ?>" />
  66.             <input type="hidden" name="server" value="<?php echo $server; ?>" />
  67.             <input type="hidden" name="db" value="<?php echo $db; ?>" />
  68.             <input type="hidden" name="table" value="<?php echo $table; ?>" />
  69.             <input type="hidden" name="zero_rows" value="<?php echo $strTheContent; ?>" />
  70.             <input type="hidden" name="goto" value="tbl_properties.php" />
  71.             <input type="hidden" name="into_table" value="<?php echo $table; ?>" />
  72.             <input type="submit" name="btnLDI" value="<?php echo $strSubmit; ?>" />  
  73.             <input type="reset" value="<?php echo $strReset; ?>" />
  74.         </td>
  75.     </tr>
  76. </table>
  77. </form>
  78.  
  79.  
  80. <?php
  81. /**
  82.  * Displays the footer
  83.  */
  84. require('./footer.inc.php');
  85. ?>
  86.