Diff for /loncom/interface/lonparmset.pm between versions 1.450 and 1.451

version 1.450, 2009/05/17 01:02:10 version 1.451, 2009/05/27 13:36:46
Line 3346  sub output_row { Line 3346  sub output_row {
             push @options,['deleted', 'Delete Metadata Field'];              push @options,['deleted', 'Delete Metadata Field'];
         }          }
        $output = &Apache::loncommon::start_data_table_row();         $output = &Apache::loncommon::start_data_table_row();
         $output .= '<td><span class="LC_metadata"><strong>'.$field_text.':</strong></span></td>';          $output .= '<td><strong>'.$field_text.':</strong></td>';
         $output .= &Apache::loncommon::end_data_table_row();          $output .= &Apache::loncommon::end_data_table_row();
         foreach my $opt (@options) {          foreach my $opt (@options) {
     my $checked = ($options =~ m/$opt->[0]/) ? ' checked="checked" ' : '' ;      my $checked = ($options =~ m/$opt->[0]/) ? ' checked="checked" ' : '' ;
     $output .= &Apache::loncommon::continue_data_table_row();      $output .= &Apache::loncommon::continue_data_table_row();
     $output .= '<td>'.('&nbsp;' x 5).'<span class="LC_metadata"><label>      $output .= '<td>'.('&nbsp;' x 5).'<label>
                <input type="checkbox" name="'.                 <input type="checkbox" name="'.
                $field_name.'_'.$opt->[0].'" value="yes"'.$checked.' />'.                 $field_name.'_'.$opt->[0].'" value="yes"'.$checked.' />'.
                &mt($opt->[1]).'</label></span> </td>';                 &mt($opt->[1]).'</label></td>';
     $output .= &Apache::loncommon::end_data_table_row();      $output .= &Apache::loncommon::end_data_table_row();
  }   }
         $output .= &Apache::loncommon::continue_data_table_row();          $output .= &Apache::loncommon::continue_data_table_row();
         $output .= '<td>'.('&nbsp;' x 10).'<span class="LC_metadata"><input name="'.$field_name.'_values" type="text" value="'.$values.'" size="80" /></span></td>';          $output .= '<td>'.('&nbsp;' x 10).'<input name="'.$field_name.'_values" type="text" value="'.$values.'" size="80" /></td>';
         $output .= &Apache::loncommon::end_data_table_row();          $output .= &Apache::loncommon::end_data_table_row();
         my $multiple_checked;          my $multiple_checked;
         my $single_checked;          my $single_checked;
Line 3370  sub output_row { Line 3370  sub output_row {
             $single_checked = '';              $single_checked = '';
         }          }
  $output .= &Apache::loncommon::continue_data_table_row();   $output .= &Apache::loncommon::continue_data_table_row();
  $output .= '<td>'.('&nbsp;' x 10).'<span class="LC_metadata">   $output .= '<td>'.('&nbsp;' x 10).'
             <input type="radio" name="'.$field_name.'_onlyone" value="multiple"'.$multiple_checked .' />              <input type="radio" name="'.$field_name.'_onlyone" value="multiple"'.$multiple_checked .' />
             '.&mt('Student may select multiple choices from list').'</span></td>';              '.&mt('Student may select multiple choices from list').'</td>';
  $output .= &Apache::loncommon::end_data_table_row();   $output .= &Apache::loncommon::end_data_table_row();
  $output .= &Apache::loncommon::continue_data_table_row();   $output .= &Apache::loncommon::continue_data_table_row();
  $output .= '<td>'.('&nbsp;' x 10).'<span class="LC_metadata">   $output .= '<td>'.('&nbsp;' x 10).'
             <input type="radio" name="'.$field_name.'_onlyone"  value="single"'.$single_checked.' />              <input type="radio" name="'.$field_name.'_onlyone"  value="single"'.$single_checked.' />
             '.&mt('Student may select only one choice from list').'</span></td>';              '.&mt('Student may select only one choice from list').'</td>';
  $output .= &Apache::loncommon::end_data_table_row();   $output .= &Apache::loncommon::end_data_table_row();
     }      }
     return ($output);      return ($output);

Removed from v.1.450  
changed lines
  Added in v.1.451


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>