|
|
|
@ -793,10 +793,11 @@ class Information_model extends CI_Model
|
|
|
|
|
$keysql = '';
|
|
|
|
|
foreach ($keywords as $key) {
|
|
|
|
|
$keysql .= ' OR ic_content like \'%' . $key . '%\'';
|
|
|
|
|
$keysql .= ' OR ic_url like \'%' . $key . '%\'';
|
|
|
|
|
}
|
|
|
|
|
$search = ' AND (1=0 ' . $keysql . ')';
|
|
|
|
|
$sql = "
|
|
|
|
|
SELECT TOP 10 ic_id, ic_url
|
|
|
|
|
SELECT TOP 10 ic_id, ic_url, ic_content
|
|
|
|
|
FROM infoStructures is1
|
|
|
|
|
INNER JOIN infoContents ic ON ic.ic_id = is1.is_ic_id
|
|
|
|
|
AND ic.ic_sitecode = is1.is_sitecode
|
|
|
|
|