Skip to content

Commit

Permalink
Fix prov error
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-araid committed Oct 19, 2018
1 parent 3b064ea commit 7ee771d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion newReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,21 @@
$rows = (int)$rows + 1;
}
$index = 0;
$checked = "";
for ($i=0; $i < $rows;$i++){
for($j=0;$j < 2; $j++){
if ($index < count($prov)){
if ($index == 0){
$checked = "checked";
}
echo '
<div class="mdl-cell mdl-cell--middle mdl-cell--6-col" style="text-align:left">
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="prov_'.$index.'">
<input type="radio" id="prov_'.$index.'" class="mdl-radio__button" name="prov" value="'.$prov[$index][0].'">
<input type="radio" id="prov_'.$index.'" class="mdl-radio__button" name="prov" value="'.$prov[$index][0].'" '.$checked.'>
<span class="mdl-radio__label">'.$prov[$index][1].'</span>
</label>
</div> ';
$checked = "";
$index++;
}
}
Expand Down

0 comments on commit 7ee771d

Please sign in to comment.