version 1.281, 2007/03/12 17:06:15
|
version 1.285, 2007/05/01 02:13:40
|
Line 750 sub setup_basic_search {
|
Line 750 sub setup_basic_search {
|
'</label>'; |
'</label>'; |
$onlysearchdomain = '<label>'.&mt('[_1] only search domain [_2]', |
$onlysearchdomain = '<label>'.&mt('[_1] only search domain [_2]', |
&Apache::lonhtmlcommon::checkbox('domains',$env{'form.domains'}, |
&Apache::lonhtmlcommon::checkbox('domains',$env{'form.domains'}, |
$r->dir_config('lonDefDomain'))). |
$r->dir_config('lonDefDomain')), |
|
$r->dir_config('lonDefDomain')). |
'</label>'; |
'</label>'; |
if ($area eq 'res') { |
if ($area eq 'res') { |
$inclext= '<label>'.&mt('[_1] include external resources', |
$inclext= '<label>'.&mt('[_1] include external resources', |
Line 763 sub setup_basic_search {
|
Line 764 sub setup_basic_search {
|
'&launch='.$env{'form.launch'}. |
'&launch='.$env{'form.launch'}. |
'&mode='.$env{'form.mode'}. |
'&mode='.$env{'form.mode'}. |
'&area='.$area. |
'&area='.$area. |
|
'&form='.$env{'form.form'}. |
|
'&titleelement='.$env{'form.titleelement'}. |
|
'&element='.$env{'form.element'}. |
'">'.&mt('Advanced Search').'</a>'; |
'">'.&mt('Advanced Search').'</a>'; |
# |
# |
$scrout.='<form name="loncapa_search" method="post" '. |
$scrout.='<form name="loncapa_search" method="post" '. |
Line 986 ENDHEADER
|
Line 990 ENDHEADER
|
description=>'Network-wide number of accesses (hits)',}, |
description=>'Network-wide number of accesses (hits)',}, |
{ name=>'stdno', |
{ name=>'stdno', |
description=> |
description=> |
'Total number of students who have worked on this problem',}, |
'Statistics calculated for number of students',}, |
{ name => 'avetries', |
{ name => 'avetries', |
description=>'Average number of tries till solved',}, |
description=>'Average number of tries till solved',}, |
{ name => 'difficulty', |
{ name => 'difficulty', |
Line 1391 sub parse_advanced_search {
|
Line 1395 sub parse_advanced_search {
|
'lastrevisiondatestart_month','lastrevisiondatestart_day', |
'lastrevisiondatestart_month','lastrevisiondatestart_day', |
'lastrevisiondatestart_year','lastrevisiondateend_month', |
'lastrevisiondatestart_year','lastrevisiondateend_month', |
'lastrevisiondateend_day','lastrevisiondateend_year') { |
'lastrevisiondateend_day','lastrevisiondateend_year') { |
$env{'form.'.$field}=~s/[^\w\/\s\(\)\=\-\"\']//g; |
$env{'form.'.$field}=~s/[^\w\/\s\(\)\=\-\"\'.]//g; |
} |
} |
foreach ('mode','form','element') { |
foreach ('mode','form','element') { |
# is this required? Hmmm. |
# is this required? Hmmm. |
Line 1854 sub process_phrase_input {
|
Line 1858 sub process_phrase_input {
|
$item[1]; |
$item[1]; |
} |
} |
term: |
term: |
/[\w\Q:!@#$%^&*()+_=|{}<>,.;\\\/?\E]+/ { |
/[\w\Q:!@#$%^&*()+_=|{}<>,.;\\\/?\E\-]+/ { |
$item[1]; |
$item[1]; |
} |
} |
ENDGRAMMAR |
ENDGRAMMAR |