Sasa Posted May 26, 2006 Report Share Posted May 26, 2006 Mani interesee taada lieta kaa var uzgenereet Excel failu, ja ir aizpildiita HTML forma! Link to comment Share on other sites More sharing options...
bubu Posted May 26, 2006 Report Share Posted May 26, 2006 Viens variants ir ģenerēt prosta HTML failu ar vienu lielu tabulu (TABLE tegs), un šo failu padot nevis ar text/html content-type, bet gan ar exceļa .xls conent-type (uzgūglē kāds tas ir precīzi). Vismaz tā es vienreiz pats darījos. Link to comment Share on other sites More sharing options...
ohmygod Posted May 26, 2006 Report Share Posted May 26, 2006 Es izmantoju šito Link to comment Share on other sites More sharing options...
Artic^MX Posted May 26, 2006 Report Share Posted May 26, 2006 Mani interesee taada lieta kaa var uzgenereet Excel failu, ja ir aizpildiita HTML forma! Tas ir tas pats kas uztaisīt html dokumentu un nomainīt paplašinājumu uz xls, ne? Link to comment Share on other sites More sharing options...
Sasa Posted May 26, 2006 Author Report Share Posted May 26, 2006 varbuut kaads man var pastaastiit kaa izmantot shito: http://pear.php.net/package/Spreadsheet_Excel_Writer saaku lasiit dokumentaaciju bet tur ir baigi daudz ko lasiit! PS. jautaajums arpus teemas vai man straadaas formas ja es izmantoju input laukus bes <form></form>? varbuut var uzlikt vienu <form> lapas pashaa augshaa un vienu </form> pashaa lapas apaksha? Jo tagad man ir taa ka ja es ielieku to input lauku ar visu form /form tad man izstaipas tie tabulu lauki bet ja es nonemu form /form tad viss ir kaa vajag! kaapeec taa? Link to comment Share on other sites More sharing options...
bubu Posted May 26, 2006 Report Share Posted May 26, 2006 Sāc taču lasī ar introduction un tutorial. Un tikai pēc tam visas funkcijas lasi. Ko nozīmē vai formas strādās, ja nav <form> taga? Kur tad tur ir forma? Formas jēga jau ir nopostēt datus (bez JS). Ja nav <form> tagad, tad kur tu uzrādīsi action un method? Link to comment Share on other sites More sharing options...
Artic^MX Posted May 27, 2006 Report Share Posted May 27, 2006 vēl vari mēģināt nodefinēt form marginus pa nullēm Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 27, 2006 Report Share Posted May 27, 2006 (edited) Sasa --> maza viltiba formas ievietoshanai tabulaa : 1 variants shaadi tabulas lauki izstiepsies un neraadiisies korekti: <TABLE WIDTH="200" BORDER="0" CELLPADDING="0" CELLSPACING="0" class="tabula"> <tr><td> <form method="POST" action="bla.php" name="forma" id="forma"> <input type="text" name="teksts" id="teksts" /> </form> </td></tr> </table> 2.shadi neistiepsies.. <TABLE WIDTH="200" BORDER="0" CELLPADDING="0" CELLSPACING="0" class="tabula"> <form method="POST" action="bla.php" name="forma" id="forma"> <tr><td> <input type="text" name="teksts" id="teksts" /> </td></tr> </form> </table> atskjiriiba ir <form> taga novietojumaa ;) Artic^MX--> tagam form NAV atributa margin !!! Edited May 27, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
KAC Posted May 27, 2006 Report Share Posted May 27, 2006 Artic^MX--> tagam form NAV atributa margin !!! ei nu? un vispaar, excel tieshaam briiniskjiigi parsee html tabulas Link to comment Share on other sites More sharing options...
TurboSasa Posted May 29, 2006 Report Share Posted May 29, 2006 ko noziimee peersee un kaa tas ispauzhaas, varbuut paskaidrojiet! Link to comment Share on other sites More sharing options...
bubu Posted May 29, 2006 Report Share Posted May 29, 2006 Nevis pērsēt, bet parsēt. Parsēt nozīmē lasīt kautkādā formātā tekstu (piem HTML) un to ielasīt kā pats vēlies savās datu struktūrās (masīvos, klasēs un tml). Šajā gadījumā tika domāts, ka excelis māk nolasīt html tabulas un tās attēlot sevī kā tabulveida datus (nevis visu html tabulu vienā rūtiņā iebāzt). Link to comment Share on other sites More sharing options...
GedroX Posted May 29, 2006 Report Share Posted May 29, 2006 (edited) Grey_Wolf --> Tava `viltība` ir pretrunā ar xHTML standartiem. Patiesība vien ir, ka form elementam nav atribūta margin, bet Artic^MX domāja form { margin: 0px; padding: 0px; } kas strādā nevainojami. Edited May 29, 2006 by GedroX Link to comment Share on other sites More sharing options...
andrisp Posted May 29, 2006 Report Share Posted May 29, 2006 vēl jau var arī <form> elementus iznest ārpus tabulas vispār. Link to comment Share on other sites More sharing options...
GedroX Posted May 30, 2006 Report Share Posted May 30, 2006 Tieši tā. Link to comment Share on other sites More sharing options...
pokimons Posted May 30, 2006 Report Share Posted May 30, 2006 COM suport funtcions for Vindovs taz gan ir vodrā bet es domāju kad var ar ekcel arī kou tadu isdarit: <?php // starting word $word = new COM("word.application") or die("Unable to instanciate Word"); echo "Loaded Word, version {$word->Version}\n"; //bring it to front $word->Visible = 1; //open an empty document $word->Documents->Add(); //do some weird stuff $word->Selection->TypeText("This is a test..."); $word->Documents[1]->SaveAs("Useless test.doc"); //closing word $word->Quit(); //free the object $word->Release(); $word = null; ?> Link to comment Share on other sites More sharing options...
Recommended Posts