View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Importation xlsx - ProjeQtOr
 
 

Importation xlsx

More
23 May 2013 08:40 - 23 May 2013 10:47 #1 by LEVA
Importation xlsx was created by LEVA
Hi Babynus,

my work on the xlsx importation :

I used the following tool : XLSXReader

Warning: Spoiler!



And then I updated Importable.php :

Warning: Spoiler!


I tried to make it universal. import() uses importCSV() or imprtXSLX() to create an array $data and then uses it to import things.

Let me know what you think.



PS : those spoiler smileys are insane x)
PS2 :By the way I forgot to precise : I place the XLSXReader.php file in the external directory.
Last edit: 23 May 2013 10:47 by LEVA.
The following user(s) said Thank You: babynus

Please Log in or Create an account to join the conversation.

More
23 May 2013 10:33 #2 by babynus
Replied by babynus on topic Re: Importation xlsx
Great !

I'll have a look asap, and try to include it in next version !

Thanks for your contribution.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
16 Jun 2013 22:46 #3 by babynus
Replied by babynus on topic Re: Importation xlsx
Hi LEVA,

Your contribution has been included in V3.4.0. B)

Many thanks for your great work :)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
17 Jun 2013 08:25 #4 by LEVA
Replied by LEVA on topic Re: Importation xlsx
I hope it was not a big deal to adapt my work, I found some nasty mistakes afterwards ^^

Well I'm glad it was helpful ! ;)

Please Log in or Create an account to join the conversation.

More
17 Jun 2013 20:10 #5 by babynus
Replied by babynus on topic Re: Importation xlsx

I found some nasty mistakes afterwards

I did not :sick:
Hope I did not miss anything.
If you have some fixings, please share !

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
12 Jul 2013 11:27 #6 by LEVA
Replied by LEVA on topic Importation xlsx
Hi Babynus, sorry for the delay.


I was thinking for example at :
if (count($fields) > count($title)) {
                        $line="";
                        foreach($fields as $field){
                            $line.=$field." ;; ";
                        }
                        self::$cptError+=1;
                        $htmlResult.= '<td colspan="' . count($title) . '" class="messageData" style="border:1px solid black;">';
                        $htmlResult.= $line;
                        $htmlResult.= '</td>';
                        $htmlResult.= '<td class="messageData" style="border:1px solid black;">';
                        $htmlResult.= '<div class="messageERROR" >ERROR : column count is incorrect</div>';
                        $htmlResult.= '</td>';
                        continue;
                    }


This part has nothing to do in import(), but must be in importCSV().

I dont remember any other bug.. and I hardly have time to go back on this..

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.045 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.