update
[phpmyadmin/crack.git] / ldi_table.php3
blobd6bc15ef7493517c35a46ad51466932c01847fcd
1 <?php
2 /* $Id$ */
5 /**
6 * This file defines the forms used to insert a textfile into a table
7 */
10 /**
11 * Gets some core libraries and displays links
13 require('./tbl_properties_common.php3');
14 $err_url = 'ldi_table.php3' . $err_url;
15 $url_query .= '&amp;back=ldi_table.php3';
16 require('./tbl_properties_table_info.php3');
19 /**
20 * Displays the form
23 <form action="ldi_check.php3" method="post" enctype="multipart/form-data">
24 <table cellpadding="5" border="2">
25 <tr>
26 <td><?php echo $strLocationTextfile; ?></td>
27 <td colspan="2"><input type="file" name="textfile" /></td>
28 </tr>
29 <tr>
30 <td><?php echo $strReplaceTable; ?></td>
31 <td><input type="checkbox" name="replace" value="REPLACE" id="checkbox_replace" /><?php echo $strReplace; ?></td>
32 <td><label for="checkbox_replace"><?php echo $strTheContents; ?></label></td>
33 </tr>
34 <tr>
35 <td><?php echo $strFieldsTerminatedBy; ?></td>
36 <td><input type="text" name="field_terminater" size="2" maxlength="2" value=";" /></td>
37 <td><?php echo $strTheTerminator; ?></td>
38 </tr>
39 <tr>
40 <td><?php echo $strFieldsEnclosedBy; ?></td>
41 <td>
42 <input type="text" name="enclosed" size="1" maxlength="1" value="&quot;" />
43 <input type="checkbox" name="enclose_option" value="OPTIONALLY" id="checkbox_enclose_option" />
44 <label for="checkbox_enclose_option"><?php echo $strOptionally; ?></label>
45 </td>
46 <td><?php echo $strOftenQuotation; ?></td>
47 </tr>
48 <tr>
49 <td><?php echo $strFieldsEscapedBy; ?></td>
50 <td><input type="text" name="escaped" size="2" maxlength="2" value="\" /></td>
51 <td><?php echo $strOptionalControls; ?></td>
52 </tr>
53 <tr>
54 <td><?php echo $strLinesTerminatedBy; ?></td>
55 <td><input type="text" name="line_terminator" size="8" maxlength="8" value="<?php echo ((PMA_whichCrlf() == "\n") ? '\n' : '\r\n'); ?>" /></td>
56 <td><?php echo $strCarriage; ?><br /><?php echo $strLineFeed; ?></td>
57 </tr>
58 <tr>
59 <td><?php echo $strColumnNames; ?></td>
60 <td><input type="text" name="column_name" /></td>
61 <td><?php echo $strIfYouWish; ?></td>
62 </tr>
63 <?php
64 // 2002/2/22 appended by Y.Kawada: Kanji encoding convert controls
65 if (function_exists('PMA_set_enc_form')) {
66 echo ' <tr>' . "\n"
67 . ' <td>' . $strKanjiEncodConvert . '</td>' . "\n"
68 . ' <td colspan=2>' . "\n"
69 . PMA_set_enc_form(' ')
70 . ' </td>' . "\n"
71 . ' </tr>' . "\n";
72 } // end if
74 <tr>
75 <td colspan="3" align="center"><?php print PMA_showDocuShort('L/O/LOAD_DATA.html'); ?></td>
76 </tr>
77 <tr>
78 <td colspan="3" align="center">
79 <input type="hidden" name="lang" value="<?php echo $lang; ?>" />
80 <input type="hidden" name="convcharset" value="<?php echo $convcharset; ?>" />
81 <input type="hidden" name="server" value="<?php echo $server; ?>" />
82 <input type="hidden" name="db" value="<?php echo $db; ?>" />
83 <input type="hidden" name="table" value="<?php echo $table; ?>" />
84 <input type="hidden" name="zero_rows" value="<?php echo $strTheContent; ?>" />
85 <input type="hidden" name="goto" value="tbl_properties.php3" />
86 <input type="hidden" name="back" value="ldi_table.php3" />
87 <input type="hidden" name="into_table" value="<?php echo $table; ?>" />
88 <input type="submit" name="btnLDI" value="<?php echo $strSubmit; ?>" />&nbsp;&nbsp;
89 <input type="reset" value="<?php echo $strReset; ?>" />
90 </td>
91 </tr>
92 </table>
93 </form>
96 <?php
97 /**
98 * Displays the footer
100 require('./footer.inc.php3');