Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/umedia3/root.importer_indexword/ |
Upload File : |
<?php ; include ("../inc/config.inc.php"); head(); mn_root("importer_indexword"); pagesection(getlang("นำเข้าข้อมูลคำ::l::Word Importer")); $fpath=$dcrs."/_input/import/$file"; //echo $fpath; if (!file_exists($fpath)) { ?><CENTER><? echo getlang("หาไฟล์ที่ท่านเลือกไม่พบ กรุณา <A HREF='index.php'>คลิกที่นี่</A> เพื่อกลับไปเลือกไฟล์อีกครั้ง::l::Your choosed file not found <A HREF='index.php'>please click here</A> to continue"); ?></CENTER><? die; } ?> <BR> <CENTER><? echo getlang("ด้านล่างเป็นรายการตัวอย่างการดึงข้อมูลจากไฟลดืที่เลือก ด้วยรายละเอียดที่คุณกรอก <BR> หากมีข้อผิดพลาดหรือต้องการแก้ไข กรุณาคลิก Back::l::Following data was extracted from your file with your entered information<BR> if need to edit or recorrect some value click Back"); ?> </CENTER><BR><TABLE align=center width=550> <? $sep_rec=stripslashes($sep_rec); //echo("\$sep_rec=\"$sep_rec\";"); barcodeval_set("importer_indexword-sep_rec",$sep_rec); barcodeval_set("importer_indexword-file",$file); eval("\$sep_rec=\"$sep_rec\";"); //echo ("\$sep_rec=$sep_rec;"); //echo("\$cover_field=\"$cover_field\";"); // Note that !== did not exist until 4.0.0-RC2 $reclist=file_get_contents($fpath); $reclist=explode($sep_rec,$reclist); $reclistcount=count($reclist); if (count($reclist)<=2) { echo "Cannot find any record from your specification"; die; } if ($reclistcount>30) { $reclistcount=30; } ?> </TABLE> <BR> <TABLE width=770 align=center border=0 cellpadding=1 cellspacing=1 bgcolor=000000> <TR bgcolor=f2f2f2> <TD></TD> <TD></TD> </TR> <? for ($i=0;$i<=$reclistcount;$i++) { ?> <TR bgcolor=ffffff> <TD></TD> <? echo "<TD><nobr>".trim($reclist[$i])."</nobr></TD>"; ?> </TR> <? } ?> </TABLE> <BR><BR><TABLE align=center> <TR> <TD><INPUT TYPE="reset" value=" Back " onclick="self.location='step1.php?file=<? echo $file?>' "></TD> <TD><INPUT TYPE="reset" value=" Next " onclick="self.location='step3.php' "></TD> </TR> </TABLE><BR><CENTER> <? echo getlang("มีรายการคำในไฟล์นี้จำนวน ::l::There are "); echo number_format(count($reclist));?> <? echo getlang(" คำ::l:: words in this file."); ?><BR> <? echo getlang(" ในการนำเข้าข้อมูลแต่ละครั้ง จะทำการนำเข้าเพียง 50,000 รายการ.::l::Only first 50,000 records will be import to import process"); ?></CENTER><BR> <? foot(); ?>