 |
|
|
 |
 |
|
ได้แล้ว ครับผม
แล้ว ถ้าหากจะ หา 2 ตารางล่ะครับ


โดยการ join ตาราง professor เข้ามาเพื่อค้นหา name,last_name,formerly_one,formerly_two ต้องเขียนยังไงครับ
|
 |
 |
 |
 |
Date :
2017-03-12 00:41:47 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โอเครๆ ครัล ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2017-03-12 13:25:14 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แร้วครับ ผม ชอบคุณมากๆ ครับ
|
 |
 |
 |
 |
Date :
2017-03-13 04:37:59 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2017-03-13 10:09:10 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สอบถามอิกหน่อยได้ป่าวครับ ถ้าเรา จะนับคำเพื่อ เอามาหาเปอร์เซนต้องทำไงหรอครับ เพื่อให้รู้ว่าที่เราพิมไป นั้นตรงกันมากแค่ไหน
|
 |
 |
 |
 |
Date :
2017-03-13 16:29:54 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เปอร์เซ็นต์จากข้อมูลที่ค้นเจอในฐานข้อมูล หรือเปอร์เซ็นต์จากจำนวนคำที่พิมพ์ลงไปแล้วตรงกับฐานข้อมูลครับ
|
 |
 |
 |
 |
Date :
2017-03-13 19:37:19 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เปอร์เซ็นต์จากจำนวนคำที่พิมพ์ลงไปแล้วตรงกับฐานข้อมูลครับ
คล้ายๆ อย่างรูปนี้อะครับ

|
ประวัติการแก้ไข 2017-03-13 20:53:44
 |
 |
 |
 |
Date :
2017-03-13 20:32:50 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ประมาณนี้ครับ
01. $query = mysqli_query( $con , "SELECT * FROM project" ) or die ( "DataBase Error!" );
02. $numTotal = mysqli_num_rows( $query );
03.
04. $sql = "SELECT * FROM project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS(' ', a.student_id, a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two) REGEXP '" . $keyword . "'" ;
05. $result = mysqli_query( $con , $sql ) or die ( "DataBase Error!" );
06. $numFound = mysqli_num_rows( $sql );
07. $numFound = number_format(( $numFound / $numTotal )*100);
08.
09. echo "หาเจอทั้งหมด " . $numFound . "%" ;
|
 |
 |
 |
 |
Date :
2017-03-13 21:28:15 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่อโอเครครับ งั้นโพสต์ด้านบน ผมตอบไม่ตรงประเด็นครับ
แค่ต้องการให้โชว์ไฮไลท์เหมือนในรูปใช่เปล่าครับ
งั้น เดี๋ยวพรุ่งนี้มาตอบครับ คืนนี้ขอตัวนอนก่อนครับ 
|
ประวัติการแก้ไข 2017-03-13 21:33:20
 |
 |
 |
 |
Date :
2017-03-13 21:32:56 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
การหาเปอร์ คือ การที่เอาที่เอาคำค้นหากับคำที่เจอในฐานข้อมูลมาคิด เป็นเปอร์เซนอะครับ

ตามรูปเรยอะครับ ซึ่งมันมีหลายช่อง จะเอามาคิดยังไงดีครับ
|
 |
 |
 |
 |
Date :
2017-03-14 11:58:51 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
001. <!doctype html>
002. <html>
003. <head>
004. <meta charset= "utf-8" >
005. <title>ค้นหา <?php echo $_GET [ 'txtKeyword' ] ?></title>
006. <?php include ( "connect.php" );?>
007. </head>
008. <body>
009. <meta charset= "utf-8" >
010. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
014. <link rel= "stylesheet" type= "text/css" href= "css/bootstrap.min.css" >
015. <script src= "js/jquery-3.1.1.min.js" ></script>
016. <script src= "js/bootstrap.min.js" ></script>
017. <script type= "text/javascript" src= "../src/jquery.jqplot.js" ></script>
018. <script type= "text/javascript" src= "../src/plugins/jqplot.pieRenderer.js" ></script>
019. <script type= "text/javascript" src= "../src/plugins/jqplot.donutRenderer.js" ></script>
020. <link rel= "stylesheet" type= "text/css" href= "../src/jquery.jqplot.css" />
021. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
022. <table width= "100%" border= "0" >
023. <tr>
024. <td height= "54" colspan= "3" >
025. <nav class = "navbar navbar-inverse" >
026. <div class = "container-fluid" >
027. <div class = "navbar-header" >
028. <a class = "navbar-brand" href= "index.php" >ย้อนกลับ</a>
029. </div>
030. </div>
031. </nav>
032. </td>
033. </tr>
034. <tr>
035. <td height= "157" colspan= "3" >
036. <p align= "center" > </p>
037. <div class = "container" >
038. <div class = "row" >
039. <div align= "center" >
040. <p><img class = "visible-lg img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 750KB" >
041.
042. <img class = "visible-md img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 355KB" >
043.
044. <img class = "visible-sm img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 239KB" >
045.
046. <img class = "visible-xs img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 55KB" ></p>
047. </div>
048.
049. </div>
050. </div>
051. </td>
052. </tr>
053. <tr>
054. <td width= "12%" height= "120" ></td>
055. <td width= "76%" >
056. <form name= "formSearch" action= "showdata.php" method= "get" >
057. <div class = "input-group" >
058. <div class = "input-group-btn search-panel" >
059. </div>
060. <input type= "hidden" >
061. <input type= "text" class = "form-control" placeholder= "ป้อนชื่อโครงงาน หรือ ชื่อนักศึกษา หรือ ชื่ออาจารย์ หรือ ปีที่จบ (9999 กรณีนักศึกษาที่ยังไม่จบ)" name= "txtKeyword" id= "txtKeyword" value= "<?php echo $_GET['txtKeyword'] ?>" >
062. <span class = "input-group-btn" >
063. <button class = "btn btn-info" type= "submit" >ค้นหา</button>
064. </span>
065. </div>
066. </form>
067. </td>
068. <td width= "12%" > </td>
069. </tr>
070. <tr>
071. <td height= "100" colspan= "3" >
072. <?php
073.
074. $time_start = microtime(true);
075. $text_to_segment = trim( $_GET [ 'txtKeyword' ]);
076.
077. include (dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'THSplitLib/segment.php' );
078. $segment = new Segment();
079. $result = $segment ->get_segment_array( $text_to_segment );
080.
081.
082. function convert( $size ) {
083. $unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' );
084. return @ round ( $size / pow(1024, ( $i = floor (log( $size , 1024)))), 2) . ' ' . $unit [ $i ];
085. }
086. $time_end = microtime(true);
087. $time = $time_end - $time_start ;
088.
089.
090.
091.
092.
093.
094.
095.
096.
097.
098. ?>
099. <!--จบการตัดคำ-->
100. <?php
101. if ( $result != "" ){
102. $difresult = array ( "หาก" , "ไว้" , "แห่ง" , "ไป" , "ได้" , "โดย" , "แล้ว" , "และ" , "แรก" , "แบบ" , "แต่" , "เอง" , "เห็น" , "เลย" , "เริ่ม" , "เรา" , "เมื่อ" , "เพื่อ" , "เพราะ" , "เป็นการ" , "เป็น" ,"เปิดเผย
103. "," เนื่องจาก "," เดียวกัน "," เดียว "," เช่น "," เฉพาะ "," เคย "," เข้า "," เขา "," อีก "," อาจ "," อะไร "," ออก "," อย่าง "," อยู่ "," อยาก "," หลาย "," หลังจาก
104. "," หลัง "," หรือ "," หนึ่ง "," ส่วน "," ส่ง "," ");
105.
106. $tempdrop = "DELETE FROM temp" ;
107. mysqli_query( $con , $tempdrop );
108. $result = array_filter ( $result );
109. $txtKeyword = implode( '|' , $result );
110.
111. $sql = "SELECT * FROM project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS(' ', a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '" . $txtKeyword . "'" ;
112. $temp ="INSERT INTO temp (id,student_temp,project_temp,name_temp,branch_temp,professor_temp,years_temp)
113. SELECT id,student_id,name_project,name_student,branch_student,professor,years from project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS( ' ' , a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '".$txtKeyword."' ";
114. $querytemp =mysqli_query( $con , $temp );
115. $sqltemp = "SELECT * FROM temp a LEFT JOIN professor b ON a.professor_temp = b.id_professor order by a.id_temp" ;
116. $tmp = mysqli_query( $con , $sqltemp );
117. ?>
118. <div class = "container-fluid" >
119. <? echo '<b> คุณค้นหาคำว่า: </b>' . $text_to_segment . '<br/><br/>' ; ?>
120. <div class = "row" >
121. <div class = "col-sm-10" style= "margin-left: 7%" >
122. <table class = "table" >
123. <tr>
124. <th>ชื่อโครงงาน</th>
125. <th>ชื่อนักศึกษา</th>
126. <th>สาขาที่เรียน</th>
127. <th>อาจารย์ที่ปรึกษา</th>
128. <th>ปีที่จบ</th>
129. <th>คำค้นหาที่สอดคล้องกัน</th>
130. </tr>
131. <?php while ( $datatemp = mysqli_fetch_assoc( $tmp )) {
132. $myproject = $datatemp [ "project_temp" ];
133. $myname = $datatemp [ "name_temp" ];
134. $mybranch = $datatemp [ "branch_temp" ];
135. $myprofessor = $datatemp [ "name" ];
136. $myyears = $datatemp [ "years_temp" ];
137. ?>
138. <?php
139. $keySearch = $result ;
140. $myproject1 = array ();
141. foreach ( $keySearch as $val ){
142. $myproject1 [ $val ] = '<font color=red>' . $val . '</font>' ;
143. }
144. ?>
145. <?php
146. $keySearch = $result ;
147. $myname1 = array ();
148. foreach ( $keySearch as $val ){
149. $myname1 [ $val ] = '<font color=red>' . $val . '</font>' ;
150. }
151. ?>
152. <?php
153. $keySearch = $result ;
154. $mybranch1 = array ();
155. foreach ( $keySearch as $val ){
156. $mybranch1 [ $val ] = '<font color=red>' . $val . '</font>' ;
157. }
158. ?>
159. <?php
160. $keySearch = $result ;
161. $myprofessor1 = array ();
162. foreach ( $keySearch as $val ){
163. $myprofessor1 [ $val ] = '<font color=red>' . $val . '</font>' ;
164. }
165. ?>
166. <?php
167. $keySearch = $result ;
168. $myyears1 = array ();
169. foreach ( $keySearch as $val ){
170. $myyears1 [ $val ] = '<font color=red>' . $val . '</font>' ;
171. }
172. ?>
173.
174. <tr>
175.
176. <td><?php echo str_replace ( array_keys ( $myproject1 ), $myproject1 , $myproject ); ?></td>
177. <td><?php echo str_replace ( array_keys ( $myname1 ), $myname1 , $myname ); ?></td>
178. <td><?php echo str_replace ( array_keys ( $mybranch1 ), $mybranch1 , $mybranch ); ?></td>
179. <td><?php echo str_replace ( array_keys ( $myprofessor1 ), $myprofessor1 , $myprofessor ); ?></td>
180. <td><?php echo str_replace ( array_keys ( $myyears1 ), $myyears1 , $myyears ); ?></td>
181. <td><?php echo $datatemp [ 'percent' ];?></td>
182. </tr>
183.
184. </div>
185. </div>
186. </div>
187. </div>
188. <?php } } ?>
189. </div>
190. </div>
191. </div>
192.
193. </td>
194. </tr>
195. </table>
196. </body>
197. </html>
|
 |
 |
 |
 |
Date :
2017-03-14 19:01:54 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
function นี้ไว้นอก Loop ครับ
1. function getNumFound( $str ){
2. global $result ;
3. $numFound = 0;
4. foreach ( $result as $val ) {
5. $numFound += (mb_strlen( $val , 'UTF-8' )*substr_count( $str , $val ));
6. }
7. return $numFound ;
8. }
ส่วนโค้ดนี้ไว้ใน Loop ครับ และนำตัวแปร $matching ไป echo ตามตำแหน่งที่ต้องการได้เลย
01. $string = $datatemp [ 'name_project' ];
02. $string .= " " . $datatemp [ 'name_student' ];
03. $string .= " " . $datatemp [ 'branch_student' ];
04. $string .= " " . $datatemp [ 'name' ];
05. $string .= " " . $datatemp [ 'years' ];
06.
07. $strLength = mb_strlen( str_replace ( ' ' , '' , $string ), 'UTF-8' );
08. $matching = number_format(getNumFound( $string )/ $strLength )*100). "%" ;
09.
10. echo "คำค้นหาสอดคล้องทั้งหมด " . $matching ;
ปล. ได้ผลยังไงรายงานด้วยครับ ผมเขียนในโทรศัพท์ครับ 
|
ประวัติการแก้ไข 2017-03-14 20:11:59 2017-03-14 20:36:53
 |
 |
 |
 |
Date :
2017-03-14 20:11:33 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองดูครับ
001. <!doctype html>
002. <html>
003. <head>
004. <meta charset= "utf-8" >
005. <title>ค้นหา <?php echo $_GET [ 'txtKeyword' ] ?></title>
006. <?php include ( "connect.php" );?>
007. </head>
008. <body>
009. <meta charset= "utf-8" >
010. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
014. <link rel= "stylesheet" type= "text/css" href= "css/bootstrap.min.css" >
015. <script src= "js/jquery-3.1.1.min.js" ></script>
016. <script src= "js/bootstrap.min.js" ></script>
017. <script type= "text/javascript" src= "../src/jquery.jqplot.js" ></script>
018. <script type= "text/javascript" src= "../src/plugins/jqplot.pieRenderer.js" ></script>
019. <script type= "text/javascript" src= "../src/plugins/jqplot.donutRenderer.js" ></script>
020. <link rel= "stylesheet" type= "text/css" href= "../src/jquery.jqplot.css" />
021. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
022. <table width= "100%" border= "0" >
023. <tr>
024. <td height= "54" colspan= "3" >
025. <nav class = "navbar navbar-inverse" >
026. <div class = "container-fluid" >
027. <div class = "navbar-header" >
028. <a class = "navbar-brand" href= "index.php" >ย้อนกลับ</a>
029. </div>
030. </div>
031. </nav>
032. </td>
033. </tr>
034. <tr>
035. <td height= "157" colspan= "3" >
036. <p align= "center" > </p>
037. <div class = "container" >
038. <div class = "row" >
039. <div align= "center" >
040. <p><img class = "visible-lg img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 750KB" >
041.
042. <img class = "visible-md img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 355KB" >
043.
044. <img class = "visible-sm img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 239KB" >
045.
046. <img class = "visible-xs img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 55KB" ></p>
047. </div>
048.
049. </div>
050. </div>
051. </td>
052. </tr>
053. <tr>
054. <td width= "12%" height= "120" ></td>
055. <td width= "76%" >
056. <form name= "formSearch" action= "showdata.php" method= "get" >
057. <div class = "input-group" >
058. <div class = "input-group-btn search-panel" >
059. </div>
060. <input type= "hidden" >
061. <input type= "text" class = "form-control" placeholder= "ป้อนชื่อโครงงาน หรือ ชื่อนักศึกษา หรือ ชื่ออาจารย์ หรือ ปีที่จบ (9999 กรณีนักศึกษาที่ยังไม่จบ)" name= "txtKeyword" id= "txtKeyword" value= "<?php echo $_GET['txtKeyword'] ?>" >
062. <span class = "input-group-btn" >
063. <button class = "btn btn-info" type= "submit" >ค้นหา</button>
064. </span>
065. </div>
066. </form>
067. </td>
068. <td width= "12%" > </td>
069. </tr>
070. <tr>
071. <td height= "100" colspan= "3" >
072. <?php
073.
074. $time_start = microtime(true);
075. $text_to_segment = trim( $_GET [ 'txtKeyword' ]);
076.
077. include (dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'THSplitLib/segment.php' );
078. $segment = new Segment();
079. $result = $segment ->get_segment_array( $text_to_segment );
080.
081.
082. function convert( $size ) {
083. $unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' );
084. return @ round ( $size / pow(1024, ( $i = floor (log( $size , 1024)))), 2) . ' ' . $unit [ $i ];
085. }
086. $time_end = microtime(true);
087. $time = $time_end - $time_start ;
088.
089.
090.
091.
092.
093.
094.
095.
096.
097.
098. ?>
099. <!--จบการตัดคำ-->
100. <?php
101. if ( $result != "" ){
102. $difresult = array ( "หาก" , "ไว้" , "แห่ง" , "ไป" , "ได้" , "โดย" , "แล้ว" , "และ" , "แรก" , "แบบ" , "แต่" , "เอง" , "เห็น" , "เลย" , "เริ่ม" , "เรา" , "เมื่อ" , "เพื่อ" , "เพราะ" , "เป็นการ" , "เป็น" ,"เปิดเผย
103. "," เนื่องจาก "," เดียวกัน "," เดียว "," เช่น "," เฉพาะ "," เคย "," เข้า "," เขา "," อีก "," อาจ "," อะไร "," ออก "," อย่าง "," อยู่ "," อยาก "," หลาย "," หลังจาก
104. "," หลัง "," หรือ "," หนึ่ง "," ส่วน "," ส่ง "," ");
105.
106. $tempdrop = "DELETE FROM temp" ;
107. mysqli_query( $con , $tempdrop );
108. $result = array_filter ( $result );
109. $txtKeyword = implode( '|' , $result );
110.
111. $sql = "SELECT * FROM project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS(' ', a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '" . $txtKeyword . "'" ;
112. $temp ="INSERT INTO temp (id,student_temp,project_temp,name_temp,branch_temp,professor_temp,years_temp)
113. SELECT id,student_id,name_project,name_student,branch_student,professor,years from project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS( ' ' , a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '".$txtKeyword."' ";
114. $querytemp =mysqli_query( $con , $temp );
115. $sqltemp = "SELECT * FROM temp a LEFT JOIN professor b ON a.professor_temp = b.id_professor order by a.id_temp" ;
116. $tmp = mysqli_query( $con , $sqltemp );
117. ?>
118. <div class = "container-fluid" >
119. <? echo '<b> คุณค้นหาคำว่า: </b>' . $text_to_segment . '<br/><br/>' ; ?>
120. <div class = "row" >
121. <div class = "col-sm-10" style= "margin-left: 7%" >
122. <table class = "table" >
123. <tr>
124. <th>ชื่อโครงงาน</th>
125. <th>ชื่อนักศึกษา</th>
126. <th>สาขาที่เรียน</th>
127. <th>อาจารย์ที่ปรึกษา</th>
128. <th>ปีที่จบ</th>
129. <th>คำค้นหาที่สอดคล้องกัน</th>
130. </tr>
131. <?php
132.
133. function getNumFound( $str ){
134. global $result ;
135. $numFound = 0;
136. foreach ( $result as $val ) {
137. $numFound += (mb_strlen( $val , 'UTF-8' )*substr_count( $str , $val ));
138. }
139. return $numFound ;
140. }
141.
142. while ( $datatemp = mysqli_fetch_assoc( $tmp )) {
143. $myproject = $datatemp [ "project_temp" ];
144. $myname = $datatemp [ "name_temp" ];
145. $mybranch = $datatemp [ "branch_temp" ];
146. $myprofessor = $datatemp [ "name" ];
147. $myyears = $datatemp [ "years_temp" ];
148.
149. $string = $myproject ;
150. $string .= " " . $myname ;
151. $string .= " " . $mybranch ;
152. $string .= " " . $myprofessor ;
153. $string .= " " . $myyears ;
154.
155. $strLength = mb_strlen( str_replace ( ' ' , '' , $string ), 'UTF-8' );
156. $matching = number_format((getNumFound( $string )/ $strLength )*100). "%" ;
157.
158. ?>
159. <?php
160. $keySearch = $result ;
161. $myproject1 = array ();
162. foreach ( $keySearch as $val ){
163. $myproject1 [ $val ] = '<font color=red>' . $val . '</font>' ;
164. }
165. ?>
166. <?php
167. $keySearch = $result ;
168. $myname1 = array ();
169. foreach ( $keySearch as $val ){
170. $myname1 [ $val ] = '<font color=red>' . $val . '</font>' ;
171. }
172. ?>
173. <?php
174. $keySearch = $result ;
175. $mybranch1 = array ();
176. foreach ( $keySearch as $val ){
177. $mybranch1 [ $val ] = '<font color=red>' . $val . '</font>' ;
178. }
179. ?>
180. <?php
181. $keySearch = $result ;
182. $myprofessor1 = array ();
183. foreach ( $keySearch as $val ){
184. $myprofessor1 [ $val ] = '<font color=red>' . $val . '</font>' ;
185. }
186. ?>
187. <?php
188. $keySearch = $result ;
189. $myyears1 = array ();
190. foreach ( $keySearch as $val ){
191. $myyears1 [ $val ] = '<font color=red>' . $val . '</font>' ;
192. }
193. ?>
194.
195. <tr>
196.
197. <td><?php echo str_replace ( array_keys ( $myproject1 ), $myproject1 , $myproject ); ?></td>
198. <td><?php echo str_replace ( array_keys ( $myname1 ), $myname1 , $myname ); ?></td>
199. <td><?php echo str_replace ( array_keys ( $mybranch1 ), $mybranch1 , $mybranch ); ?></td>
200. <td><?php echo str_replace ( array_keys ( $myprofessor1 ), $myprofessor1 , $myprofessor ); ?></td>
201. <td><?php echo str_replace ( array_keys ( $myyears1 ), $myyears1 , $myyears ); ?></td>
202. <td><?php echo $matching ;?></td>
203. </tr>
204.
205. </div>
206. </div>
207. </div>
208. </div>
209. <?php } } ?>
210. </div>
211. </div>
212. </div>
213.
214. </td>
215. </tr>
216. </table>
217. </body>
218. </html>
|
ประวัติการแก้ไข 2017-03-14 20:56:30
 |
 |
 |
 |
Date :
2017-03-14 20:42:50 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอามาใส่อย่างนี้ถูกรึป่าวครับ
Code (PHP)
001. <!doctype html>
002. <html>
003. <head>
004. <meta charset= "utf-8" >
005. <title>ค้นหา <?php echo $_GET [ 'txtKeyword' ] ?></title>
006. <?php include ( "connect.php" );?>
007. </head>
008. <body>
009. <meta charset= "utf-8" >
010. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
014. <link rel= "stylesheet" type= "text/css" href= "css/bootstrap.min.css" >
015. <script src= "js/jquery-3.1.1.min.js" ></script>
016. <script src= "js/bootstrap.min.js" ></script>
017. <script type= "text/javascript" src= "../src/jquery.jqplot.js" ></script>
018. <script type= "text/javascript" src= "../src/plugins/jqplot.pieRenderer.js" ></script>
019. <script type= "text/javascript" src= "../src/plugins/jqplot.donutRenderer.js" ></script>
020. <link rel= "stylesheet" type= "text/css" href= "../src/jquery.jqplot.css" />
021. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
022. <table width= "100%" border= "0" >
023. <tr>
024. <td height= "54" colspan= "3" >
025. <nav class = "navbar navbar-inverse" >
026. <div class = "container-fluid" >
027. <div class = "navbar-header" >
028. <a class = "navbar-brand" href= "index.php" >ย้อนกลับ</a>
029. </div>
030. </div>
031. </nav>
032. </td>
033. </tr>
034. <tr>
035. <td height= "157" colspan= "3" >
036. <p align= "center" > </p>
037. <div class = "container" >
038. <div class = "row" >
039. <div align= "center" >
040. <p><img class = "visible-lg img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 750KB" >
041.
042. <img class = "visible-md img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 355KB" >
043.
044. <img class = "visible-sm img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 239KB" >
045.
046. <img class = "visible-xs img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 55KB" ></p>
047. </div>
048.
049. </div>
050. </div>
051. </td>
052. </tr>
053. <tr>
054. <td width= "12%" height= "120" ></td>
055. <td width= "76%" >
056. <form name= "formSearch" action= "showdata.php" method= "get" >
057. <div class = "input-group" >
058. <div class = "input-group-btn search-panel" >
059. </div>
060. <input type= "hidden" >
061. <input type= "text" class = "form-control" placeholder= "ป้อนชื่อโครงงาน หรือ ชื่อนักศึกษา หรือ ชื่ออาจารย์ หรือ ปีที่จบ (9999 กรณีนักศึกษาที่ยังไม่จบ)" name= "txtKeyword" id= "txtKeyword" value= "<?php echo $_GET['txtKeyword'] ?>" >
062. <span class = "input-group-btn" >
063. <button class = "btn btn-info" type= "submit" >ค้นหา</button>
064. </span>
065. </div>
066. </form>
067. </td>
068. <td width= "12%" > </td>
069. </tr>
070. <tr>
071. <td height= "100" colspan= "3" >
072. <?php
073.
074. $time_start = microtime(true);
075. $text_to_segment = trim( $_GET [ 'txtKeyword' ]);
076.
077. include (dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'THSplitLib/segment.php' );
078. $segment = new Segment();
079. $result = $segment ->get_segment_array( $text_to_segment );
080.
081.
082. function convert( $size ) {
083. $unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' );
084. return @ round ( $size / pow(1024, ( $i = floor (log( $size , 1024)))), 2) . ' ' . $unit [ $i ];
085. }
086. $time_end = microtime(true);
087. $time = $time_end - $time_start ;
088.
089.
090.
091.
092.
093.
094.
095.
096.
097.
098. ?>
099. <!--จบการตัดคำ-->
100. <?php
101. if ( $result != "" ){
102. $difresult = array ( "หาก" , "ไว้" , "แห่ง" , "ไป" , "ได้" , "โดย" , "แล้ว" , "และ" , "แรก" , "แบบ" , "แต่" , "เอง" , "เห็น" , "เลย" , "เริ่ม" , "เรา" , "เมื่อ" , "เพื่อ" , "เพราะ" , "เป็นการ" , "เป็น" ,"เปิดเผย
103. "," เนื่องจาก "," เดียวกัน "," เดียว "," เช่น "," เฉพาะ "," เคย "," เข้า "," เขา "," อีก "," อาจ "," อะไร "," ออก "," อย่าง "," อยู่ "," อยาก "," หลาย "," หลังจาก
104. "," หลัง "," หรือ "," หนึ่ง "," ส่วน "," ส่ง "," ");
105.
106. $tempdrop = "DELETE FROM temp" ;
107. mysqli_query( $con , $tempdrop );
108. $result = array_filter ( $result );
109. $txtKeyword = implode( '|' , $result );
110.
111. $sql = "SELECT * FROM project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS(' ', a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '" . $txtKeyword . "'" ;
112. $temp ="INSERT INTO temp (id,student_temp,project_temp,name_temp,branch_temp,professor_temp,years_temp)
113. SELECT id,student_id,name_project,name_student,branch_student,professor,years from project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS( ' ' , a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '".$txtKeyword."' ";
114. $querytemp =mysqli_query( $con , $temp );
115. $sqltemp = "SELECT * FROM temp a LEFT JOIN professor b ON a.professor_temp = b.id_professor order by a.id_temp" ;
116. $tmp = mysqli_query( $con , $sqltemp );
117. ?>
118. <div class = "container-fluid" >
119. <? echo '<b> คุณค้นหาคำว่า: </b>' . $text_to_segment . '<br/><br/>' ; ?>
120. <div class = "row" >
121. <div class = "col-sm-10" style= "margin-left: 7%" >
122. <table class = "table" >
123. <tr>
124. <th>ชื่อโครงงาน</th>
125. <th>ชื่อนักศึกษา</th>
126. <th>สาขาที่เรียน</th>
127. <th>อาจารย์ที่ปรึกษา</th>
128. <th>ปีที่จบ</th>
129. <th>คำค้นหาที่สอดคล้องกัน</th>
130. </tr>
131. <?php while ( $datatemp = mysqli_fetch_assoc( $tmp )) {
132. $string .= " " . $datatemp [ 'name_project' ];
133. $string .= " " . $datatemp [ 'name_student' ];
134. $string .= " " . $datatemp [ 'branch_student' ];
135. $string .= " " . $datatemp [ 'name' ];
136. $string .= " " . $datatemp [ 'years' ];
137.
138. $strLength = mb_strlen( str_replace ( ' ' , '' , $string ), 'UTF-8' );
139. $matching = number_format(getNumFound( $string )/ $strLength )*100) "%" ;
140.
141. echo "คำค้นหาสอดคล้องทั้งหมด " . $matching ;
142. ?>
143. <?php
144. $keySearch = $result ;
145. $myproject1 = array ();
146. foreach ( $keySearch as $val ){
147. $myproject1 [ $val ] = '<font color=red>' . $val . '</font>' ;
148. }
149. ?>
150. <?php
151. $keySearch = $result ;
152. $myname1 = array ();
153. foreach ( $keySearch as $val ){
154. $myname1 [ $val ] = '<font color=red>' . $val . '</font>' ;
155. }
156. ?>
157. <?php
158. $keySearch = $result ;
159. $mybranch1 = array ();
160. foreach ( $keySearch as $val ){
161. $mybranch1 [ $val ] = '<font color=red>' . $val . '</font>' ;
162. }
163. ?>
164. <?php
165. $keySearch = $result ;
166. $myprofessor1 = array ();
167. foreach ( $keySearch as $val ){
168. $myprofessor1 [ $val ] = '<font color=red>' . $val . '</font>' ;
169. }
170. ?>
171. <?php
172. $keySearch = $result ;
173. $myyears1 = array ();
174. foreach ( $keySearch as $val ){
175. $myyears1 [ $val ] = '<font color=red>' . $val . '</font>' ;
176. }
177. ?>
178.
179. <tr>
180.
181. <td><?php echo str_replace ( array_keys ( $myproject1 ), $myproject1 , $myproject ); ?></td>
182. <td><?php echo str_replace ( array_keys ( $myname1 ), $myname1 , $myname ); ?></td>
183. <td><?php echo str_replace ( array_keys ( $mybranch1 ), $mybranch1 , $mybranch ); ?></td>
184. <td><?php echo str_replace ( array_keys ( $myprofessor1 ), $myprofessor1 , $myprofessor ); ?></td>
185. <td><?php echo str_replace ( array_keys ( $myyears1 ), $myyears1 , $myyears ); ?></td>
186. <td><?php echo $datatemp [ 'percent' ];?></td>
187. </tr>
188.
189. </div>
190. </div>
191. </div>
192. </div>
193. <?php } } ?>
194. </div>
195. </div>
196. </div>
197.
198. </td>
199. </tr>
200. </table>
201. <?php
202. function getNumFound( $str ){
203. global $result ;
204. $numFound = 0;
205. foreach ( $result as $val ) {
206. $numFound += (mb_strlen( $val , 'UTF-8' )*substr_count( $str , $val ));
207. }
208. return $numFound ;
209. }
210. ?>
211. </body>
212. </html>

|
 |
 |
 |
 |
Date :
2017-03-14 20:48:31 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แร้วครับ แต่ผมอยากเอาค่าเปอร์เซนไปใส่อิกตารางต้องทำไงครับ
|
 |
 |
 |
 |
Date :
2017-03-15 00:43:34 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใส่ตารางไหนครับ ก็ insert ปกตินี่แหละครับ
|
 |
 |
 |
 |
Date :
2017-03-15 10:10:13 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าเรียงลำดับ เปอร์เซนอะครับ ให้ตัวที่มากที่สุด อยู่บนควรทำไงต่อครับ
Code (PHP)
001. <!doctype html>
002. <html>
003. <head>
004. <meta charset= "utf-8" >
005. <title>ค้นหา <?php echo $_GET [ 'txtKeyword' ] ?></title>
006. <?php include ( "connect.php" );?>
007. </head>
008. <body>
009. <meta charset= "utf-8" >
010. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
014. <link rel= "stylesheet" type= "text/css" href= "css/bootstrap.min.css" >
015. <script src= "js/jquery-3.1.1.min.js" ></script>
016. <script src= "js/bootstrap.min.js" ></script>
017. <script type= "text/javascript" src= "../src/jquery.jqplot.js" ></script>
018. <script type= "text/javascript" src= "../src/plugins/jqplot.pieRenderer.js" ></script>
019. <script type= "text/javascript" src= "../src/plugins/jqplot.donutRenderer.js" ></script>
020. <link rel= "stylesheet" type= "text/css" href= "../src/jquery.jqplot.css" />
021. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
022. <table width= "100%" border= "0" >
023. <tr>
024. <td height= "54" colspan= "3" >
025. <nav class = "navbar navbar-inverse" >
026. <div class = "container-fluid" >
027. <div class = "navbar-header" >
028. <a class = "navbar-brand" href= "index.php" >ย้อนกลับ</a>
029. </div>
030. </div>
031. </nav>
032. </td>
033. </tr>
034. <tr>
035. <td height= "157" colspan= "3" >
036. <p align= "center" > </p>
037. <div class = "container" >
038. <div class = "row" >
039. <div align= "center" >
040. <p><img class = "visible-lg img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 750KB" >
041.
042. <img class = "visible-md img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 355KB" >
043.
044. <img class = "visible-sm img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 239KB" >
045.
046. <img class = "visible-xs img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 55KB" ></p>
047. </div>
048.
049. </div>
050. </div>
051. </td>
052. </tr>
053. <tr>
054. <td width= "12%" height= "120" ></td>
055. <td width= "76%" >
056. <form name= "formSearch" action= "showdata.php" method= "get" >
057. <div class = "input-group" >
058. <div class = "input-group-btn search-panel" >
059. </div>
060. <input type= "hidden" >
061. <input type= "text" class = "form-control" placeholder= "ป้อนชื่อโครงงาน หรือ ชื่อนักศึกษา หรือ ชื่ออาจารย์ หรือ ปีที่จบ (9999 กรณีนักศึกษาที่ยังไม่จบ)" name= "txtKeyword" id= "txtKeyword" value= "<?php echo $_GET['txtKeyword'] ?>" >
062. <span class = "input-group-btn" >
063. <button class = "btn btn-info" type= "submit" >ค้นหา</button>
064. </span>
065. </div>
066. </form>
067. </td>
068. <td width= "12%" > </td>
069. </tr>
070. <tr>
071. <td height= "100" colspan= "3" >
072. <?php
073.
074. $time_start = microtime(true);
075. $text_to_segment = trim( $_GET [ 'txtKeyword' ]);
076.
077. include (dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'THSplitLib/segment.php' );
078. $segment = new Segment();
079. $result = $segment ->get_segment_array( $text_to_segment );
080.
081.
082. function convert( $size ) {
083. $unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' );
084. return @ round ( $size / pow(1024, ( $i = floor (log( $size , 1024)))), 2) . ' ' . $unit [ $i ];
085. }
086. $time_end = microtime(true);
087. $time = $time_end - $time_start ;
088.
089.
090.
091.
092.
093.
094.
095.
096.
097.
098. ?>
099. <!--จบการตัดคำ-->
100. <?php
101. if ( $result != "" ){
102. $difresult = array ( "หาก" , "ไว้" , "แห่ง" , "ไป" , "ได้" , "โดย" , "แล้ว" , "และ" , "แรก" , "แบบ" , "แต่" , "เอง" , "เห็น" , "เลย" , "เริ่ม" , "เรา" , "เมื่อ" , "เพื่อ" , "เพราะ" , "เป็นการ" , "เป็น" ,"เปิดเผย
103. "," เนื่องจาก "," เดียวกัน "," เดียว "," เช่น "," เฉพาะ "," เคย "," เข้า "," เขา "," อีก "," อาจ "," อะไร "," ออก "," อย่าง "," อยู่ "," อยาก "," หลาย "," หลังจาก
104. "," หลัง "," หรือ "," หนึ่ง "," ส่วน "," ส่ง "," ");
105.
106. $tempdrop = "DELETE FROM temp" ;
107. mysqli_query( $con , $tempdrop );
108. $result = array_filter ( $result );
109. $txtKeyword = implode( '|' , $result );
110.
111. $sql = "SELECT * FROM project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS(' ', a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '" . $txtKeyword . "'" ;
112. $tmp = mysqli_query( $con , $sql );
113. ?>
114. <div class = "container-fluid" >
115. <? echo '<b> คุณค้นหาคำว่า: </b>' . $text_to_segment . '<br/><br/>' ; ?>
116. <div class = "row" >
117. <div class = "col-sm-10" style= "margin-left: 7%" >
118. <table class = "table" >
119. <tr>
120. <th>ชื่อโครงงาน</th>
121. <th>ชื่อนักศึกษา</th>
122. <th>สาขาที่เรียน</th>
123. <th>อาจารย์ที่ปรึกษา</th>
124. <th>ปีที่จบ</th>
125. <th>คำค้นหาที่สอดคล้องกัน</th>
126. </tr>
127. <?php
128.
129. function getNumFound( $str ){
130. global $result ;
131. $numFound = 0;
132. foreach ( $result as $val ) {
133. $numFound += (mb_strlen( $val , 'UTF-8' )*substr_count( $str , $val ));
134. }
135. return $numFound ;
136. }
137.
138. while ( $datatemp = mysqli_fetch_assoc( $tmp )) {
139. $myproject = $datatemp [ "name_project" ];
140. $myname = $datatemp [ "name_student" ];
141. $mybranch = $datatemp [ "branch_student" ];
142. $myprofessor = $datatemp [ "name" ];
143. $myyears = $datatemp [ "years" ];
144.
145. $string = $myproject ;
146. $string .= " " . $myname ;
147. $string .= " " . $mybranch ;
148. $string .= " " . $myprofessor ;
149. $string .= " " . $myyears ;
150.
151. $strLength = mb_strlen( str_replace ( ' ' , '' , $string ), 'UTF-8' );
152. $matching = number_format((getNumFound( $string )/ $strLength )*100);
153. $sum = round ( $matching ,2). "%" ;
154. ?>
155. <?php
156. $keySearch = $result ;
157. $myproject1 = array ();
158. foreach ( $keySearch as $val ){
159. $myproject1 [ $val ] = '<font color=red>' . $val . '</font>' ;
160. }
161. ?>
162. <?php
163. $keySearch = $result ;
164. $myname1 = array ();
165. foreach ( $keySearch as $val ){
166. $myname1 [ $val ] = '<font color=red>' . $val . '</font>' ;
167. }
168. ?>
169. <?php
170. $keySearch = $result ;
171. $mybranch1 = array ();
172. foreach ( $keySearch as $val ){
173. $mybranch1 [ $val ] = '<font color=red>' . $val . '</font>' ;
174. }
175. ?>
176. <?php
177. $keySearch = $result ;
178. $myprofessor1 = array ();
179. foreach ( $keySearch as $val ){
180. $myprofessor1 [ $val ] = '<font color=red>' . $val . '</font>' ;
181. }
182. ?>
183. <?php
184. $keySearch = $result ;
185. $myyears1 = array ();
186. foreach ( $keySearch as $val ){
187. $myyears1 [ $val ] = '<font color=red>' . $val . '</font>' ;
188. }
189. ?>
190.
191. <tr>
192.
193. <td><?php echo str_replace ( array_keys ( $myproject1 ), $myproject1 , $myproject ); ?></td>
194. <td><?php echo str_replace ( array_keys ( $myname1 ), $myname1 , $myname ); ?></td>
195. <td><?php echo str_replace ( array_keys ( $mybranch1 ), $mybranch1 , $mybranch ); ?></td>
196. <td><?php echo str_replace ( array_keys ( $myprofessor1 ), $myprofessor1 , $myprofessor ); ?></td>
197. <td><?php echo str_replace ( array_keys ( $myyears1 ), $myyears1 , $myyears ); ?></td>
198. <td><?php echo $sum ;?></td>
199. </tr>
200.
201. </div>
202. </div>
203. </div>
204. </div>
205. <?php } } ?>
206. </div>
207. </div>
208. </div>
209.
210. </td>
211. </tr>
212. </table>
213. </body>
214. </html>
|
 |
 |
 |
 |
Date :
2017-03-16 16:53:17 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองดูครับ
001. <?php
002.
003. <!doctype html>
004. <html>
005. <head>
006. <meta charset= "utf-8" >
007. <title>ค้นหา <?php echo $_GET [ 'txtKeyword' ] ?></title>
008. <?php include ( "connect.php" );?>
009. </head>
010. <body>
011. <meta charset= "utf-8" >
012. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
016. <link rel= "stylesheet" type= "text/css" href= "css/bootstrap.min.css" >
017. <script src= "js/jquery-3.1.1.min.js" ></script>
018. <script src= "js/bootstrap.min.js" ></script>
019. <script type= "text/javascript" src= "../src/jquery.jqplot.js" ></script>
020. <script type= "text/javascript" src= "../src/plugins/jqplot.pieRenderer.js" ></script>
021. <script type= "text/javascript" src= "../src/plugins/jqplot.donutRenderer.js" ></script>
022. <link rel= "stylesheet" type= "text/css" href= "../src/jquery.jqplot.css" />
023. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
024. <table width= "100%" border= "0" >
025. <tr>
026. <td height= "54" colspan= "3" >
027. <nav class = "navbar navbar-inverse" >
028. <div class = "container-fluid" >
029. <div class = "navbar-header" >
030. <a class = "navbar-brand" href= "index.php" >ย้อนกลับ</a>
031. </div>
032. </div>
033. </nav>
034. </td>
035. </tr>
036. <tr>
037. <td height= "157" colspan= "3" >
038. <p align= "center" > </p>
039. <div class = "container" >
040. <div class = "row" >
041. <div align= "center" >
042. <p><img class = "visible-lg img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 750KB" >
043.
044. <img class = "visible-md img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 355KB" >
045.
046. <img class = "visible-sm img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 239KB" >
047.
048. <img class = "visible-xs img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 55KB" ></p>
049. </div>
050.
051. </div>
052. </div>
053. </td>
054. </tr>
055. <tr>
056. <td width= "12%" height= "120" ></td>
057. <td width= "76%" >
058. <form name= "formSearch" action= "showdata.php" method= "get" >
059. <div class = "input-group" >
060. <div class = "input-group-btn search-panel" >
061. </div>
062. <input type= "hidden" >
063. <input type= "text" class = "form-control" placeholder= "ป้อนชื่อโครงงาน หรือ ชื่อนักศึกษา หรือ ชื่ออาจารย์ หรือ ปีที่จบ (9999 กรณีนักศึกษาที่ยังไม่จบ)" name= "txtKeyword" id= "txtKeyword" value= "<?php echo $_GET['txtKeyword'] ?>" >
064. <span class = "input-group-btn" >
065. <button class = "btn btn-info" type= "submit" >ค้นหา</button>
066. </span>
067. </div>
068. </form>
069. </td>
070. <td width= "12%" > </td>
071. </tr>
072. <tr>
073. <td height= "100" colspan= "3" >
074. <?php
075.
076. $time_start = microtime(true);
077. $text_to_segment = trim( $_GET [ 'txtKeyword' ]);
078.
079. include (dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'THSplitLib/segment.php' );
080. $segment = new Segment();
081. $result = $segment ->get_segment_array( $text_to_segment );
082.
083.
084. function convert( $size ) {
085. $unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' );
086. return @ round ( $size / pow(1024, ( $i = floor (log( $size , 1024)))), 2) . ' ' . $unit [ $i ];
087. }
088. $time_end = microtime(true);
089. $time = $time_end - $time_start ;
090.
091.
092.
093.
094.
095.
096.
097.
098.
099.
100. ?>
101. <!--จบการตัดคำ-->
102. <?php
103. if ( $result != "" ){
104. $difresult = array ( "หาก" , "ไว้" , "แห่ง" , "ไป" , "ได้" , "โดย" , "แล้ว" , "และ" , "แรก" , "แบบ" , "แต่" , "เอง" , "เห็น" , "เลย" , "เริ่ม" , "เรา" , "เมื่อ" , "เพื่อ" , "เพราะ" , "เป็นการ" , "เป็น" ,"เปิดเผย
105. "," เนื่องจาก "," เดียวกัน "," เดียว "," เช่น "," เฉพาะ "," เคย "," เข้า "," เขา "," อีก "," อาจ "," อะไร "," ออก "," อย่าง "," อยู่ "," อยาก "," หลาย "," หลังจาก
106. "," หลัง "," หรือ "," หนึ่ง "," ส่วน "," ส่ง "," ");
107.
108. $tempdrop = "DELETE FROM temp" ;
109. mysqli_query( $con , $tempdrop );
110. $result = array_filter ( $result );
111. $txtKeyword = implode( '|' , $result );
112.
113. $sql = "SELECT * FROM project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS(' ', a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '" . $txtKeyword . "'" ;
114. $tmp = mysqli_query( $con , $sql );
115. ?>
116. <div class = "container-fluid" >
117. <? echo '<b> คุณค้นหาคำว่า: </b>' . $text_to_segment . '<br/><br/>' ; ?>
118. <div class = "row" >
119. <div class = "col-sm-10" style= "margin-left: 7%" >
120. <table class = "table" >
121. <tr>
122. <th>ชื่อโครงงาน</th>
123. <th>ชื่อนักศึกษา</th>
124. <th>สาขาที่เรียน</th>
125. <th>อาจารย์ที่ปรึกษา</th>
126. <th>ปีที่จบ</th>
127. <th>คำค้นหาที่สอดคล้องกัน</th>
128. </tr>
129. <?php
130.
131. function getNumFound( $str ){
132. global $result ;
133. $numFound = 0;
134. foreach ( $result as $val ) {
135. $numFound += (mb_strlen( $val , 'UTF-8' )*substr_count( $str , $val ));
136. }
137. return $numFound ;
138. }
139. function sortMatching( $x , $y ) {
140. return ( $x [ 'matching' ] < $y [ 'matching' ]);
141. }
142.
143. $keyRS = 0;
144. while ( $datatemp = mysqli_fetch_assoc( $tmp )) {
145.
146. $string = $datatemp [ "name_project" ];
147. $string .= " " . $datatemp [ "name_student" ];
148. $string .= " " . $datatemp [ "branch_student" ];
149. $string .= " " . $datatemp [ "name" ];
150. $string .= " " . $datatemp [ "years" ];
151.
152. $strLength = mb_strlen( str_replace ( ' ' , '' , $string ), 'UTF-8' );
153. $matching = number_format((getNumFound( $string )/ $strLength )*100);
154.
155. $myResult [ $keyRS ][ "name_project" ] = $datatemp [ "name_project" ];
156. $myResult [ $keyRS ][ "name_student" ] = $datatemp [ "name_student" ];
157. $myResult [ $keyRS ][ "branch_student" ] = $datatemp [ "branch_student" ];
158. $myResult [ $keyRS ][ "name" ] = $datatemp [ "name" ];
159. $myResult [ $keyRS ][ "years" ] = $datatemp [ "years" ];
160. $myResult [ $keyRS ][ "matching" ] = $matching ;
161.
162. $keyRS ++;
163. }
164.
165. usort ( $myResult , 'sortMatching' );
166. $num_myResult = count ( $myResult );
167. for ( $i =0; $i < $num_myResult ; $i ++){
168.
169. $keySearch = $result ;
170. $highLight = array ();
171. foreach ( $keySearch as $val ){
172. $highLight [ $val ] = '<font color=red>' . $val . '</font>' ;
173. }
174. ?>
175.
176. <tr>
177.
178. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name_project' ]); ?></td>
179. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name_student' ]); ?></td>
180. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'branch_student' ]); ?></td>
181. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name' ]); ?></td>
182. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'years' ]); ?></td>
183. <td><?php echo round ( $myResult [ $i ][ 'matching' ],2). "%" ;?></td>
184. </tr>
185.
186. </div>
187. </div>
188. </div>
189. </div>
190. <?php
191. }
192. }
193. ?>
194. </div>
195. </div>
196. </div>
197.
198. </td>
199. </tr>
200. </table>
201. </body>
202. </html>
|
ประวัติการแก้ไข 2017-03-17 00:17:48
 |
 |
 |
 |
Date :
2017-03-16 23:09:14 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ทำไมมันเป็นแบบนี้หรอครับ

|
 |
 |
 |
 |
Date :
2017-03-16 23:31:41 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่อโอเคครับ ผมแก้ไขโพสต์ด้่านบนให้แล้วครับ ลองอีกทีครับ
ถ้าได้แล้วแคปหน้าจอมาดูผลงานหน่อยครับ 
|
ประวัติการแก้ไข 2017-03-17 00:19:58
 |
 |
 |
 |
Date :
2017-03-17 00:18:46 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้เเร้วครับ ขอบคุณครับ

|
 |
 |
 |
 |
Date :
2017-03-17 12:39:18 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มาตอบให้แล้วนะครับ จากที่ถามเพิ่มเติมมาใน PM
001. <?php
002.
003. <!doctype html>
004. <html>
005. <head>
006. <meta charset= "utf-8" >
007. <title>ค้นหา <?php echo $_GET [ 'txtKeyword' ] ?></title>
008. <?php include ( "connect.php" );?>
009. </head>
010. <body>
011. <meta charset= "utf-8" >
012. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
016. <link rel= "stylesheet" type= "text/css" href= "css/bootstrap.min.css" >
017. <script src= "js/jquery-3.1.1.min.js" ></script>
018. <script src= "js/bootstrap.min.js" ></script>
019. <script type= "text/javascript" src= "../src/jquery.jqplot.js" ></script>
020. <script type= "text/javascript" src= "../src/plugins/jqplot.pieRenderer.js" ></script>
021. <script type= "text/javascript" src= "../src/plugins/jqplot.donutRenderer.js" ></script>
022. <link rel= "stylesheet" type= "text/css" href= "../src/jquery.jqplot.css" />
023. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
024. <table width= "100%" border= "0" >
025. <tr>
026. <td height= "54" colspan= "3" >
027. <nav class = "navbar navbar-inverse" >
028. <div class = "container-fluid" >
029. <div class = "navbar-header" >
030. <a class = "navbar-brand" href= "index.php" >ย้อนกลับ</a>
031. </div>
032. </div>
033. </nav>
034. </td>
035. </tr>
036. <tr>
037. <td height= "157" colspan= "3" >
038. <p align= "center" > </p>
039. <div class = "container" >
040. <div class = "row" >
041. <div align= "center" >
042. <p><img class = "visible-lg img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 750KB" >
043.
044. <img class = "visible-md img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 355KB" >
045.
046. <img class = "visible-sm img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 239KB" >
047.
048. <img class = "visible-xs img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 55KB" ></p>
049. </div>
050.
051. </div>
052. </div>
053. </td>
054. </tr>
055. <tr>
056. <td width= "12%" height= "120" ></td>
057. <td width= "76%" >
058. <form name= "formSearch" action= "showdata.php" method= "get" >
059. <div class = "input-group" >
060. <div class = "input-group-btn search-panel" >
061. </div>
062. <input type= "hidden" >
063. <input type= "text" class = "form-control" placeholder= "ป้อนชื่อโครงงาน หรือ ชื่อนักศึกษา หรือ ชื่ออาจารย์ หรือ ปีที่จบ (9999 กรณีนักศึกษาที่ยังไม่จบ)" name= "txtKeyword" id= "txtKeyword" value= "<?php echo $_GET['txtKeyword'] ?>" >
064. <span class = "input-group-btn" >
065. <button class = "btn btn-info" type= "submit" >ค้นหา</button>
066. </span>
067. </div>
068. </form>
069. </td>
070. <td width= "12%" > </td>
071. </tr>
072. <tr>
073. <td height= "100" colspan= "3" >
074. <?php
075.
076. $time_start = microtime(true);
077. $text_to_segment = trim( $_GET [ 'txtKeyword' ]);
078.
079. include (dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'THSplitLib/segment.php' );
080. $segment = new Segment();
081. $result = $segment ->get_segment_array( $text_to_segment );
082.
083.
084. function convert( $size ) {
085. $unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' );
086. return @ round ( $size / pow(1024, ( $i = floor (log( $size , 1024)))), 2) . ' ' . $unit [ $i ];
087. }
088. $time_end = microtime(true);
089. $time = $time_end - $time_start ;
090.
091.
092.
093.
094.
095.
096.
097.
098.
099.
100. ?>
101. <!--จบการตัดคำ-->
102. <?php
103. if ( $result != "" ){
104. $difresult = array ( "หาก" , "ไว้" , "แห่ง" , "ไป" , "ได้" , "โดย" , "แล้ว" , "และ" , "แรก" , "แบบ" , "แต่" , "เอง" , "เห็น" , "เลย" , "เริ่ม" , "เรา" , "เมื่อ" , "เพื่อ" , "เพราะ" , "เป็นการ" , "เป็น" ,"เปิดเผย
105. "," เนื่องจาก "," เดียวกัน "," เดียว "," เช่น "," เฉพาะ "," เคย "," เข้า "," เขา "," อีก "," อาจ "," อะไร "," ออก "," อย่าง "," อยู่ "," อยาก "," หลาย "," หลังจาก
106. "," หลัง "," หรือ "," หนึ่ง "," ส่วน "," ส่ง "," ");
107.
108. $tempdrop = "DELETE FROM temp" ;
109. mysqli_query( $con , $tempdrop );
110. $result = array_filter ( $result );
111. $txtKeyword = implode( '|' , $result );
112.
113. $sql = "SELECT * FROM project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS(' ', a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '" . $txtKeyword . "'" ;
114. $tmp = mysqli_query( $con , $sql );
115. ?>
116. <div class = "container-fluid" >
117. <? echo '<b> คุณค้นหาคำว่า: </b>' . $text_to_segment . '<br/><br/>' ; ?>
118. <div class = "row" >
119. <div class = "col-sm-10" style= "margin-left: 7%" >
120. <table class = "table" >
121. <tr>
122. <th>ชื่อโครงงาน</th>
123. <th>ชื่อนักศึกษา</th>
124. <th>สาขาที่เรียน</th>
125. <th>อาจารย์ที่ปรึกษา</th>
126. <th>ปีที่จบ</th>
127. <th>คำค้นหาที่สอดคล้องกัน</th>
128. </tr>
129. <?php
130.
131. function getNumFound( $str ){
132. global $result ;
133. $numFound = 0;
134. foreach ( $result as $val ) {
135. if ( strpos ( $str , $val )===true){
136. $numFound ++;
137. }
138. }
139. return $numFound ;
140. }
141. function sortMatching( $x , $y ) {
142. return ( $x [ 'matching' ] < $y [ 'matching' ]);
143. }
144.
145. $keyRS = 0;
146. while ( $datatemp = mysqli_fetch_assoc( $tmp )) {
147.
148. $string = implode( ' ' , array ( $datatemp [ "name_project" ], $datatemp [ "name_student" ], $datatemp [ "branch_student" ], $datatemp [ "name" ], $datatemp [ "years" ]));
149.
150. $matching = number_format((getNumFound( $string )/ count ( $result ))*100);
151.
152. $myResult [ $keyRS ] = $datatemp :
153. $myResult [ $keyRS ][ "matching" ] = $matching ;
154.
155. $keyRS ++;
156. }
157.
158. usort ( $myResult , 'sortMatching' );
159. $num_myResult = count ( $myResult );
160. for ( $i =0; $i < $num_myResult ; $i ++){
161.
162. $keySearch = $result ;
163. $highLight = array ();
164. foreach ( $keySearch as $val ){
165. $highLight [ $val ] = '<font color=red>' . $val . '</font>' ;
166. }
167. ?>
168.
169. <tr>
170.
171. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name_project' ]); ?></td>
172. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name_student' ]); ?></td>
173. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'branch_student' ]); ?></td>
174. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name' ]); ?></td>
175. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'years' ]); ?></td>
176. <td><?php echo round ( $myResult [ $i ][ 'matching' ],2). "%" ;?></td>
177. </tr>
178.
179. </div>
180. </div>
181. </div>
182. </div>
183. <?php
184. }
185. }
186. ?>
187. </div>
188. </div>
189. </div>
190.
191. </td>
192. </tr>
193. </table>
194. </body>
195. </html>
|
 |
 |
 |
 |
Date :
2017-03-25 00:17:19 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เปอร์เซนไม่ขึ้นอะครับ

|
ประวัติการแก้ไข 2017-03-25 01:31:31
 |
 |
 |
 |
Date :
2017-03-25 01:29:41 |
By :
ncs1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
001. <?php
002.
003. <!doctype html>
004. <html>
005. <head>
006. <meta charset= "utf-8" >
007. <title>ค้นหา <?php echo $_GET [ 'txtKeyword' ] ?></title>
008. <?php include ( "connect.php" );?>
009. </head>
010. <body>
011. <meta charset= "utf-8" >
012. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
016. <link rel= "stylesheet" type= "text/css" href= "css/bootstrap.min.css" >
017. <script src= "js/jquery-3.1.1.min.js" ></script>
018. <script src= "js/bootstrap.min.js" ></script>
019. <script type= "text/javascript" src= "../src/jquery.jqplot.js" ></script>
020. <script type= "text/javascript" src= "../src/plugins/jqplot.pieRenderer.js" ></script>
021. <script type= "text/javascript" src= "../src/plugins/jqplot.donutRenderer.js" ></script>
022. <link rel= "stylesheet" type= "text/css" href= "../src/jquery.jqplot.css" />
023. <meta name= "viewport" content= "width=device-width, initial-scale=1" >
024. <table width= "100%" border= "0" >
025. <tr>
026. <td height= "54" colspan= "3" >
027. <nav class = "navbar navbar-inverse" >
028. <div class = "container-fluid" >
029. <div class = "navbar-header" >
030. <a class = "navbar-brand" href= "index.php" >ย้อนกลับ</a>
031. </div>
032. </div>
033. </nav>
034. </td>
035. </tr>
036. <tr>
037. <td height= "157" colspan= "3" >
038. <p align= "center" > </p>
039. <div class = "container" >
040. <div class = "row" >
041. <div align= "center" >
042. <p><img class = "visible-lg img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 750KB" >
043.
044. <img class = "visible-md img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 355KB" >
045.
046. <img class = "visible-sm img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 239KB" >
047.
048. <img class = "visible-xs img-responsive" src= "picture/responsive2.jpg" alt= "" title= "File size= 55KB" ></p>
049. </div>
050.
051. </div>
052. </div>
053. </td>
054. </tr>
055. <tr>
056. <td width= "12%" height= "120" ></td>
057. <td width= "76%" >
058. <form name= "formSearch" action= "showdata.php" method= "get" >
059. <div class = "input-group" >
060. <div class = "input-group-btn search-panel" >
061. </div>
062. <input type= "hidden" >
063. <input type= "text" class = "form-control" placeholder= "ป้อนชื่อโครงงาน หรือ ชื่อนักศึกษา หรือ ชื่ออาจารย์ หรือ ปีที่จบ (9999 กรณีนักศึกษาที่ยังไม่จบ)" name= "txtKeyword" id= "txtKeyword" value= "<?php echo $_GET['txtKeyword'] ?>" >
064. <span class = "input-group-btn" >
065. <button class = "btn btn-info" type= "submit" >ค้นหา</button>
066. </span>
067. </div>
068. </form>
069. </td>
070. <td width= "12%" > </td>
071. </tr>
072. <tr>
073. <td height= "100" colspan= "3" >
074. <?php
075.
076. $time_start = microtime(true);
077. $text_to_segment = trim( $_GET [ 'txtKeyword' ]);
078.
079. include (dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'THSplitLib/segment.php' );
080. $segment = new Segment();
081. $result = $segment ->get_segment_array( $text_to_segment );
082.
083.
084. function convert( $size ) {
085. $unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' );
086. return @ round ( $size / pow(1024, ( $i = floor (log( $size , 1024)))), 2) . ' ' . $unit [ $i ];
087. }
088. $time_end = microtime(true);
089. $time = $time_end - $time_start ;
090.
091.
092.
093.
094.
095.
096.
097.
098.
099.
100. ?>
101. <!--จบการตัดคำ-->
102. <?php
103. if ( $result != "" ){
104. $difresult = array ( "หาก" , "ไว้" , "แห่ง" , "ไป" , "ได้" , "โดย" , "แล้ว" , "และ" , "แรก" , "แบบ" , "แต่" , "เอง" , "เห็น" , "เลย" , "เริ่ม" , "เรา" , "เมื่อ" , "เพื่อ" , "เพราะ" , "เป็นการ" , "เป็น" ,"เปิดเผย
105. "," เนื่องจาก "," เดียวกัน "," เดียว "," เช่น "," เฉพาะ "," เคย "," เข้า "," เขา "," อีก "," อาจ "," อะไร "," ออก "," อย่าง "," อยู่ "," อยาก "," หลาย "," หลังจาก
106. "," หลัง "," หรือ "," หนึ่ง "," ส่วน "," ส่ง "," ");
107.
108. $tempdrop = "DELETE FROM temp" ;
109. mysqli_query( $con , $tempdrop );
110. $result = array_filter ( $result );
111. $txtKeyword = implode( '|' , $result );
112.
113. $sql = "SELECT * FROM project a LEFT JOIN professor b ON a.professor = b.id_professor WHERE CONCAT_WS(' ', a.name_project, a.name_student, a.branch_student, b.name, b.last_name, b.formerly_one, b.formerly_two,a.years) REGEXP '" . $txtKeyword . "'" ;
114. $tmp = mysqli_query( $con , $sql );
115. ?>
116. <div class = "container-fluid" >
117. <? echo '<b> คุณค้นหาคำว่า: </b>' . $text_to_segment . '<br/><br/>' ; ?>
118. <div class = "row" >
119. <div class = "col-sm-10" style= "margin-left: 7%" >
120. <table class = "table" >
121. <tr>
122. <th>ชื่อโครงงาน</th>
123. <th>ชื่อนักศึกษา</th>
124. <th>สาขาที่เรียน</th>
125. <th>อาจารย์ที่ปรึกษา</th>
126. <th>ปีที่จบ</th>
127. <th>คำค้นหาที่สอดคล้องกัน</th>
128. </tr>
129. <?php
130.
131. function getNumFound( $str ){
132. global $result ;
133. $numFound = 0;
134. foreach ( $result as $val ) {
135. if (substr_count( $str , $val )){
136. $numFound ++;
137. }
138. }
139. return $numFound ;
140. }
141. function sortMatching( $x , $y ) {
142. return ( $x [ 'matching' ] < $y [ 'matching' ]);
143. }
144.
145. $keyRS = 0;
146. while ( $datatemp = mysqli_fetch_assoc( $tmp )) {
147.
148. $string = implode( ' ' , array ( $datatemp [ "name_project" ], $datatemp [ "name_student" ], $datatemp [ "branch_student" ], $datatemp [ "name" ], $datatemp [ "years" ]));
149.
150. $matching = number_format((getNumFound( $string )/ count ( $result ))*100);
151.
152. $myResult [ $keyRS ] = $datatemp :
153. $myResult [ $keyRS ][ "matching" ] = $matching ;
154.
155. $keyRS ++;
156. }
157.
158. usort ( $myResult , 'sortMatching' );
159. $num_myResult = count ( $myResult );
160. for ( $i =0; $i < $num_myResult ; $i ++){
161.
162. $keySearch = $result ;
163. $highLight = array ();
164. foreach ( $keySearch as $val ){
165. $highLight [ $val ] = '<font color=red>' . $val . '</font>' ;
166. }
167. ?>
168.
169. <tr>
170.
171. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name_project' ]); ?></td>
172. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name_student' ]); ?></td>
173. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'branch_student' ]); ?></td>
174. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'name' ]); ?></td>
175. <td><?php echo str_replace ( array_keys ( $highLight ), $highLight , $myResult [ $i ][ 'years' ]); ?></td>
176. <td><?php echo round ( $myResult [ $i ][ 'matching' ],2). "%" ;?></td>
177. </tr>
178.
179. </div>
180. </div>
181. </div>
182. </div>
183. <?php
184. }
185. }
186. ?>
187. </div>
188. </div>
189. </div>
190.
191. </td>
192. </tr>
193. </table>
194. </body>
195. </html>
|
 |
 |
 |
 |
Date :
2017-03-25 02:09:21 |
By :
tomrambo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|