version 1.107, 2025/02/17 18:48:06
|
version 1.108, 2025/02/25 05:35:26
|
Line 363 ENDJS
|
Line 363 ENDJS
|
'</span>'. |
'</span>'. |
&Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_closure(); |
unless ($helpform{'username'} eq 'no') { |
unless ($helpform{'username'} eq 'no') { |
my ($reqd,$namefield,$fullname); |
my ($reqd,$aria_reqd,$namefield,$fullname); |
if ((defined($lastname) && $lastname ne '') && (defined($firstname) && $firstname ne '')) { |
if ((defined($lastname) && $lastname ne '') && (defined($firstname) && $firstname ne '')) { |
$fullname = "$firstname $lastname"; |
$fullname = "$firstname $lastname"; |
$namefield = $fullname.'<input type="hidden" name="username" id="username" value="'.&HTML::Entities::encode($fullname,'"<>&').'" />'."\n"; |
$namefield = $fullname.'<input type="hidden" name="username" id="username" value="'.&HTML::Entities::encode($fullname,'"<>&').'" />'."\n"; |
Line 373 ENDJS
|
Line 373 ENDJS
|
} elsif (defined($lastname) && $lastname ne '') { |
} elsif (defined($lastname) && $lastname ne '') { |
$fullname = " $lastname"; |
$fullname = " $lastname"; |
} |
} |
$namefield = '<input type="text" size="20" name="username" id="username" value="'.&HTML::Entities::encode($fullname,'"<>&').'" />'."\n"; |
|
if ($helpform{'username'} eq 'req') { |
if ($helpform{'username'} eq 'req') { |
$reqd = '<span class="LC_parm_part">*</span>'; |
$reqd = '<span class="LC_parm_part">*</span>'; |
|
$aria_reqd = 'aria-required="true" '; |
} |
} |
|
$namefield = '<input type="text" size="20" name="username" id="username" value="'.&HTML::Entities::encode($fullname,'"<>&').'" '.$aria_reqd.'/>'."\n"; |
} |
} |
my $title = '<label for="username">'.$html_lt{'name'}.'</label>'; |
my $title = '<label for="username">'.$html_lt{'name'}.'</label>'; |
$output .= &Apache::lonhtmlcommon::row_title($title.$reqd,undef,$css[$num])."\n".$namefield. |
$output .= &Apache::lonhtmlcommon::row_title($title.$reqd,undef,$css[$num])."\n".$namefield. |
Line 392 ENDJS
|
Line 393 ENDJS
|
'</label><span class="LC_parm_part">*</span></span>' |
'</label><span class="LC_parm_part">*</span></span>' |
,undef,$css[$i]). |
,undef,$css[$i]). |
'<input type="text" size="20" name="email" id="email" value="'. |
'<input type="text" size="20" name="email" id="email" value="'. |
&HTML::Entities::encode($email,'"<>&').'" />'."\n"; |
&HTML::Entities::encode($email,'"<>&').'" aria-required="true" />'."\n"; |
unless ($shownsubmit) { |
unless ($shownsubmit) { |
$output .= $topsubmit; |
$output .= $topsubmit; |
} |
} |
Line 467 ENDJS
|
Line 468 ENDJS
|
&Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_closure(); |
} |
} |
unless ($helpform{'phone'} eq 'no') { |
unless ($helpform{'phone'} eq 'no') { |
my $reqd; |
my ($reqd,$aria_reqd); |
if ($helpform{'phone'} eq 'req') { |
if ($helpform{'phone'} eq 'req') { |
$reqd = '<span class="LC_parm_part">*</span>'; |
$reqd = '<span class="LC_parm_part">*</span>'; |
|
$aria_reqd = 'aria-required="true" '; |
} |
} |
$output .= &Apache::lonhtmlcommon::row_title('<label for="phone">'.$html_lt{'phon'}.'</label>'.$reqd,undef,'LC_evenrow_value'). |
$output .= &Apache::lonhtmlcommon::row_title('<label for="phone">'.$html_lt{'phon'}.'</label>'.$reqd,undef,'LC_evenrow_value'). |
'<input type="text" size="15" name="phone" id="phone" /><br />'."\n". |
'<input type="text" size="15" name="phone" id="phone" '.$aria_reqd.'/><br />'."\n". |
&Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_closure(); |
$num ++; |
$num ++; |
$i = $num%2; |
$i = $num%2; |
Line 546 ENDJS
|
Line 548 ENDJS
|
$output .= '<label>'.$html_lt{'enin'}.': |
$output .= '<label>'.$html_lt{'enin'}.': |
<input type="text" name="coursecode" size="15" value="" /></label>'."\n"; |
<input type="text" name="coursecode" size="15" value="" /></label>'."\n"; |
} |
} |
my $reqd; |
my ($reqd,$aria_reqd); |
if ($helpform{'course'} eq 'req') { |
if ($helpform{'course'} eq 'req') { |
$reqd = '<span class="LC_parm_part">*</span>'; |
$reqd = '<span class="LC_parm_part">*</span>'; |
|
$aria_reqd = 'aria-required="true" '; |
} |
} |
$output .= '<br /><div><label>'.$html_lt{'enct'}.$reqd.': |
$output .= '<br /><div><label>'.$html_lt{'enct'}.$reqd.': |
<input type="text" name="title" size="25" value="'. |
<input type="text" name="title" size="25" value="'. |
&HTML::Entities::encode($ctitle,'"<>&').'" /></label></div>'."\n"; |
&HTML::Entities::encode($ctitle,'"<>&').'" '.$aria_reqd.'/></label></div>'."\n"; |
$output .= &Apache::lonhtmlcommon::row_closure(); |
$output .= &Apache::lonhtmlcommon::row_closure(); |
$num ++; |
$num ++; |
$i = $num%2; |
$i = $num%2; |
Line 590 ENDJS
|
Line 593 ENDJS
|
'<label for="subject">'.$html_lt{'subj'}.'</label>'. |
'<label for="subject">'.$html_lt{'subj'}.'</label>'. |
'<span class="LC_parm_part">*</span></span>' |
'<span class="LC_parm_part">*</span></span>' |
,undef,'LC_oddrow_value'). |
,undef,'LC_oddrow_value'). |
'<input type="text" size="40" name="subject" id="subject" />'."\n". |
'<input type="text" size="40" name="subject" id="subject" aria-required="true" />'."\n". |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_title( |
&Apache::lonhtmlcommon::row_title( |
'<span title="'.&mt('required').'">'. |
'<span title="'.&mt('required').'">'. |
'<label for="description">'.$html_lt{'detd'}.'</label>'. |
'<label for="description">'.$html_lt{'detd'}.'</label>'. |
'<span class="LC_parm_part">*</span></span>' |
'<span class="LC_parm_part">*</span></span>' |
,undef,'LC_evenrow_value'). |
,undef,'LC_evenrow_value'). |
'<textarea rows="10" cols="45" name="description" id="description" style="word-wrap:normal;">'. |
'<textarea rows="10" cols="45" name="description" id="description" style="word-wrap:normal;" aria-required="true">'. |
'</textarea>'."\n". |
'</textarea>'."\n". |
&Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_closure(); |
$num ++; |
$num ++; |