version 1.9, 2010/01/05 23:54:31
|
version 1.10, 2010/01/09 01:07:56
|
Line 243 sub listresources {
|
Line 243 sub listresources {
|
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_title(&mt('Close date')). |
&Apache::lonhtmlcommon::row_title(&mt('Close date')). |
$endform. |
$endform. |
&Apache::lonhtmlcommon::end_pick_box().'<br />'. |
&Apache::lonhtmlcommon::row_closure(1). |
|
&Apache::lonhtmlcommon::end_pick_box().'<br />'. |
'<input type="hidden" name="phase" value="storeparms" />'. |
'<input type="hidden" name="phase" value="storeparms" />'. |
'<input type="submit" value="'.$datebutton.'" />'. |
'<input type="submit" value="'.$datebutton.'" />'. |
'</form></fieldset></p>'); |
'</form></fieldset></p>'); |
Line 309 sub display_questions {
|
Line 310 sub display_questions {
|
'value="'.$fixed{$catname}.'" readonly="readonly" />').'</legend>'; |
'value="'.$fixed{$catname}.'" readonly="readonly" />').'</legend>'; |
} else { |
} else { |
$output .= '<legend>'.&mt('[_1]: currently [_2] selected',$catlegend, |
$output .= '<legend>'.&mt('[_1]: currently [_2] selected',$catlegend, |
'<input type="text" name="'.$countid.'" size="1" value="'. |
'<input type="text" name="'.$countid.'" id="'.$countid.'" size="1" value="'. |
$total.'" readonly="readonly" />').'</legend>'; |
$total.'" readonly="readonly" />').'</legend>'; |
} |
} |
$output .= '<span id="'.$titleid.'">'. |
$output .= '<span id="'.$titleid.'">'. |
Line 333 sub display_questions {
|
Line 334 sub display_questions {
|
} elsif ($catname eq 'development') { |
} elsif ($catname eq 'development') { |
$output .= '<input type="hidden" name="pilot'.$item.'" value="checked" />'; |
$output .= '<input type="hidden" name="pilot'.$item.'" value="checked" />'; |
} else { |
} else { |
$output .= '<input type="checkbox" name="item'.$item.'"'; |
$output .= '<input type="checkbox" name="item'.$item.'" id="item'.$item.'"'; |
if ($chosenitems->{$item}) { $output .= ' checked="checked"'; } |
if ($chosenitems->{$item}) { $output .= ' checked="checked"'; } |
$output .= ' onclick="countChecked('."'$catname'".');'; |
$output .= ' onclick="countChecked('."'$catname'".');'; |
my $binname; |
my $binname; |
Line 606 sub builder_javascript {
|
Line 607 sub builder_javascript {
|
my $prereqjs = " |
my $prereqjs = " |
function checkPrereqs(caller,item,prereq,binname) { |
function checkPrereqs(caller,item,prereq,binname) { |
var changedPrereq = 0; |
var changedPrereq = 0; |
if (document.selecteditems.elements['item'+item].checked == false) { |
element = document.getElementById('item'+item); |
|
if (element.checked == false) { |
return; |
return; |
} else { |
} else { |
if (!document.selecteditems.elements['item'+prereq].checked) { |
prereqelement = document.getElementById('item'+prereq); |
document.selecteditems.elements['item'+prereq].checked = true; |
if (!prereqelement.checked) { |
|
prereqelement.checked = true; |
changedPrereq = 1; |
changedPrereq = 1; |
countChecked(binname); |
countChecked(binname); |
} |
} |
Line 695 function countChecked(binname) {
|
Line 698 function countChecked(binname) {
|
if (document.selecteditems.elements[i].value == binname) { |
if (document.selecteditems.elements[i].value == binname) { |
var itemname = document.selecteditems.elements[i].name; |
var itemname = document.selecteditems.elements[i].name; |
var itemnum = itemname.substr(9); |
var itemnum = itemname.substr(9); |
if (document.selecteditems.elements['item'+itemnum].checked) { |
element = document.getElementById('item'+itemnum); |
|
if (element.checked) { |
count ++; |
count ++; |
} |
} |
} |
} |
} |
} |
} |
} |
document.selecteditems.elements['GCI_'+binname+'_count'].value = count; |
countelement = document.getElementById('GCI_'+binname+'_count'); |
|
countelement.value = count; |
} |
} |
|
|
function validTestCheck() { |
function validTestCheck() { |
Line 709 function validTestCheck() {
|
Line 714 function validTestCheck() {
|
for (var i=0; i<11; i++) { |
for (var i=0; i<11; i++) { |
var binname = 'GCI_bin'+i+'_count'; |
var binname = 'GCI_bin'+i+'_count'; |
var j = i+1; |
var j = i+1; |
if (document.selecteditems.elements[binname].value < 1) { |
countelement = document.getElementById(binname); |
|
if (countelement.value < 1) { |
empty = empty +' '+j; |
empty = empty +' '+j; |
} |
} |
} |
} |