tips:xls2wiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tips:xls2wiki [2010-07-29 12:34] – [Comments Support Wiki header on first Line] Bug with comma and new line 84.44.162.3 | tips:xls2wiki [2017-10-20 08:26] – 91.201.23.195 | ||
---|---|---|---|
Line 92: | Line 92: | ||
< | < | ||
Copy and paste your Excel or Wiki table below and press [Convert!]< | Copy and paste your Excel or Wiki table below and press [Convert!]< | ||
- | Скопируйте и вÑтавьте таблицу из | + | Скопируйте и вставьте таблицу из |
<form method=POST action=""> | <form method=POST action=""> | ||
<input type=" | <input type=" | ||
Line 196: | Line 196: | ||
</ | </ | ||
- | <? | + | <?php |
$s = $_POST[' | $s = $_POST[' | ||
$fromto = $_POST[' | $fromto = $_POST[' | ||
Line 214: | Line 214: | ||
$arrayS = preg_split ("/ | $arrayS = preg_split ("/ | ||
$nb_lines = count ($arrayS)-1; | $nb_lines = count ($arrayS)-1; | ||
- | $s = $s . $nb_lignes; | + | $s = $s . $nb_lines; |
$s = ""; | $s = ""; | ||
foreach ( $arrayS as $key => $lines ){ | foreach ( $arrayS as $key => $lines ){ | ||
Line 242: | Line 242: | ||
Copy and paste your Excel or Wiki table below and press [Convert!]< | Copy and paste your Excel or Wiki table below and press [Convert!]< | ||
Copier et coller votre Table Excel ou Wiki dans le cadre ci-dessous et cliquez sur [Convert!]< | Copier et coller votre Table Excel ou Wiki dans le cadre ci-dessous et cliquez sur [Convert!]< | ||
- | Скопируйте и вÑтавьте таблицу из | + | Скопируйте и вcтавьте таблицу из Excel или |
<form method=POST action=""> | <form method=POST action=""> | ||
- | <input type=" | + | <input type=" |
- | <input type=" | + | <input type=" |
<INPUT TYPE=SUBMIT VALUE=" | <INPUT TYPE=SUBMIT VALUE=" | ||
- | < | + | < |
</ | </ | ||
<span style=" | <span style=" | ||
Line 260: | Line 260: | ||
</ | </ | ||
+ | |||
+ | There is a spell mistake here... | ||
+ | < | ||
+ | $nb_lines = count ($arrayS)-1; | ||
+ | $s = $s . $nb_lignes; | ||
+ | </ | ||
+ | |||
+ | nb_lignes should be **nb_lines**. | ||
+ | |||
===== Installation ===== | ===== Installation ===== | ||
Line 286: | Line 295: | ||
---- | ---- | ||
+ | More simple. Save xls2wiki.php to your dokuwiki\www\ folder and click this link: http:// | ||
+ | |||
+ | ---- | ||
===== Discussion ===== | ===== Discussion ===== | ||
I've installed iframe, but I'm kind of stuck how can I add the PHP file on the page I want to embed an excel spreadsheet. Can anyone help? Thanks in advance. | I've installed iframe, but I'm kind of stuck how can I add the PHP file on the page I want to embed an excel spreadsheet. Can anyone help? Thanks in advance. | ||
Line 304: | Line 316: | ||
-Theo | -Theo | ||
+ | |||
+ | ----- | ||
+ | |||
+ | @theo: It's a " | ||
+ | |||
+ | -Steven | ||
+ | |||
+ | Changing the ini files worked for me - you also need to restart your Apache server before it will work. --- [[user> |
tips/xls2wiki.txt · Last modified: 2024-01-31 20:26 by 69.11.54.89