Rogier Neeleman
9 years ago
10 changed files with 189 additions and 104 deletions
@ -1,6 +1,5 @@
@@ -1,6 +1,5 @@
|
||||
<div class="container"> |
||||
<h1>Invoeren scorelijsten</h1> |
||||
<p> |
||||
<a href='<?php echo base_url();?>beoordelen/'><button type="button" class="btn btn-success btn-lg">Beoordelen</button></a>
|
||||
</p> |
||||
<hr> |
||||
Welkom bij het score systeem. Maak een keuze. |
||||
|
||||
</div> |
@ -1,41 +1,49 @@
@@ -1,41 +1,49 @@
|
||||
<div class="container"> |
||||
|
||||
<div class="starter-template"> |
||||
<h1>Geef de score aan</h1> |
||||
<div class="container"> |
||||
<hr> |
||||
<div class='text-center'> |
||||
<div class="btn-group" role="group" aria-label="..."> |
||||
<a href="<?php echo base_url('beoordelen/lijst'); ?>" role="button" class="btn btn-success">Beoordeling</span></a>
|
||||
<a href="<?php echo base_url('beoordelen/ronde'); ?>" role="button" class="btn btn-success">Ronde</button></a>
|
||||
<a href="<?php echo base_url('beoordelen/subgroep'); ?>" role="button" class="btn btn-success">Ploeg</button></a>
|
||||
<button type="button" class="btn btn-warning">Score</button> |
||||
</div> |
||||
</div> |
||||
|
||||
<?php echo form_open(base_url().'beoordelen/score_save'); ?> |
||||
<?php echo form_hidden('subgroepid', $subgroepid); ?> |
||||
|
||||
|
||||
<?php |
||||
foreach ($vragen as $vraag) |
||||
{ ?> |
||||
<div class="row"> |
||||
<div class="col-xs-9 col-sm-6 col-sm-offset-3"> |
||||
<?php echo $vraag['vraag']; ?> |
||||
</div> |
||||
<div class="col-xs-3 col-sm-1"> |
||||
<?php if ($vraag['antwoord'] == 0) { |
||||
echo ': '.form_checkbox($vraag['id'], '1'); |
||||
} else { |
||||
for ($i=1; $i <= $vraag['score']; $i++) { |
||||
$score[$i] = $i; |
||||
} |
||||
echo form_dropdown($vraag['id'], $score); |
||||
} ?> |
||||
</div> |
||||
</div> |
||||
<?php } ?> |
||||
|
||||
<p> |
||||
<?php echo form_open(base_url().'beoordelen/score_save'); ?> |
||||
<?php echo form_hidden('subgroepid', $subgroepid); ?> |
||||
|
||||
<p> |
||||
<?php |
||||
foreach ($vragen as $vraag) |
||||
{ ?> |
||||
<div class="row"> |
||||
<div class="col-xs-9 col-sm-6 col-sm-offset-3"> |
||||
<?php echo $vraag['vraag']; ?> |
||||
</div> |
||||
<div class="col-xs-3 col-sm-1"> |
||||
<?php if ($vraag['antwoord'] == 0) { |
||||
echo ': '.form_checkbox($vraag['id'], '1'); |
||||
} else { |
||||
for ($i=1; $i <= $vraag['score']; $i++) { |
||||
$score[$i] = $i; |
||||
} |
||||
echo form_dropdown($vraag['id'], $score); |
||||
} ?> |
||||
</div> |
||||
</div> |
||||
<?php } ?> |
||||
</p> |
||||
|
||||
<p> |
||||
<div class="row"> |
||||
<div class="text-center"> |
||||
<a href="<?php echo base_url('beoordelen/subgroep'); ?>" type="submit" class="btn btn-primary btn-lg">Vorige</button></a>
|
||||
<button type="submit" class="btn btn-danger btn-lg">Opslaan</button> |
||||
</div> |
||||
</div> |
||||
</p> |
||||
|
||||
<?php echo form_close(); ?> |
||||
|
||||
<div class="row"> |
||||
<div class="col-xs-2 col-sm-2 col-xs-offset-4 col-sm-offset-5"> |
||||
<button type="submit" class="btn btn-success btn-lg">Opslaan</button> |
||||
</div> |
||||
</div> |
||||
<?php echo form_close(); ?> |
||||
|
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
@ -1,39 +1,60 @@
@@ -1,39 +1,60 @@
|
||||
<div class="container"> |
||||
|
||||
<div class="starter-template"> |
||||
<h1>Kies de ploeg</h1> |
||||
|
||||
<?php if (count($subgroepen) != 0) { ?> |
||||
|
||||
<?php echo form_open(base_url().'beoordelen/score'); ?> |
||||
<div class="container"> |
||||
<hr> |
||||
<div class='text-center'> |
||||
<div class="btn-group" role="group" aria-label="..."> |
||||
<a href="<?php echo base_url('beoordelen/lijst'); ?>" role="button" class="btn btn-success">Beoordeling</span></a>
|
||||
<a href="<?php echo base_url('beoordelen/ronde'); ?>" role="button" class="btn btn-success">Ronde</button></a>
|
||||
<?php if (count($subgroepen) == 0) { ?> |
||||
<a href="<?php echo base_url('beoordelen/subgroep'); ?>" role="button" class="btn btn-success">Ploeg</button></a>
|
||||
<button type="button" class="btn btn-success">Score</button> |
||||
<?php } else { ?> |
||||
<a href="<?php echo base_url('beoordelen/subgroep'); ?>" role="button" class="btn btn-warning">Ploeg</button></a>
|
||||
<button type="button" class="btn btn-default">Score</button> |
||||
<?php } ?> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="row"> |
||||
<div class="col-xs-2 col-sm-2 col-sm-offset-5 col-xs-offset-2"> |
||||
<?php echo form_dropdown('subgroepid', $subgroepen); ?> |
||||
</div> |
||||
</div> |
||||
<p> |
||||
<div class="row"> |
||||
<div class="col-xs-2 col-sm-2 col-xs-offset-4 col-sm-offset-5"> |
||||
<button type="submit" class="btn btn-primary btn-lg">Volgende</button> |
||||
</div> |
||||
</div> |
||||
<?php echo form_close(); ?> |
||||
<?php if (count($subgroepen) != 0) { ?> |
||||
|
||||
<?php echo form_open(base_url().'beoordelen/score'); ?> |
||||
|
||||
<p> |
||||
<div class="row"> |
||||
<div class="text-center"> |
||||
<?php echo form_dropdown('subgroepid', $subgroepen); ?> |
||||
</div> |
||||
</div> |
||||
</p> |
||||
<p> |
||||
<div class="row"> |
||||
<div class="text-center"> |
||||
<a href="<?php echo base_url('beoordelen/ronde'); ?>" type="submit" class="btn btn-primary btn-lg">Vorige</button></a>
|
||||
<button type="submit" class="btn btn-primary btn-lg">Volgende</button> |
||||
</div> |
||||
</div> |
||||
</p> |
||||
|
||||
<?php echo form_close(); ?> |
||||
|
||||
<?php } else { ?> |
||||
<div class="row"> |
||||
<div class="col-xs-10 col-sm-4 col-xs-offset-1 col-sm-offset-4"> |
||||
Er zijn geen groepen meer te beoordelen. |
||||
</div> |
||||
</div> |
||||
<div class="row"> |
||||
<div class="col-xs-2 col-sm-2 col-xs-offset-4 col-sm-offset-5"> |
||||
<button type="button" class="btn btn-success btn-lg" disabled="disabled"> |
||||
<span class="glyphicon glyphicon-ok"></span> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
<?php } ?> |
||||
<?php } else { ?> |
||||
|
||||
<p> |
||||
<div class="row"> |
||||
<div class="text-center"> |
||||
Er zijn geen groepen meer te beoordelen. |
||||
</div> |
||||
</div> |
||||
</p> |
||||
<p> |
||||
<div class="row"> |
||||
<div class="text-center"> |
||||
<button type="button" class="btn btn-success btn-lg" disabled="disabled"> |
||||
<span class="glyphicon glyphicon-ok"></span> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</p> |
||||
|
||||
<?php } ?> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
Loading…
Reference in new issue