Skip to content

Commit

Permalink
Add printName support
Browse files Browse the repository at this point in the history
  • Loading branch information
nstueber committed Apr 2, 2019
1 parent fa33768 commit 5afb0a0
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions doodle_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,16 @@

<?php foreach ($template['doodleData'] as $fullname => $userData) { ?>
<tr>
<td class="rightalign">
<?php echo $userData['editLinks'].$fullname.$userData['username'] ?>
<td class="rightalign">
<?php
if ($template['printName'] == 'both'){
echo $userData['editLinks'].$fullname.' ('.$userData['username'].')';
} elseif ($template['printName'] == 'fullname'){
echo $userData['editLinks'].$fullname;
}elseif ($template['printName'] == 'username'){
echo $userData['editLinks'].$userData['username'];
}
?>
</td>
<?php for ($col = 0; $col < $c; $col++) {
echo $userData['choice'][$col];
Expand Down Expand Up @@ -128,8 +136,23 @@
if($durchlauf == 1){
foreach ($template['doodleData'] as $fullname => $userData) { ?>
<td class="centeralign" style="width:<?php echo $template['fieldwidth'] ?>">
<?php echo $userData['editLinks'].$fullname; ?>
</td>


<?php
if ($template['printName'] == 'both'){
echo $userData['editLinks'].$fullname.' ('.$userData['username'].')';
} elseif ($template['printName'] == 'fullname'){
echo $userData['editLinks'].$fullname;
}elseif ($template['printName'] == 'username'){
echo $userData['editLinks'].$userData['username'];
}
?>





</td>
<?php
for ($col = 0; $col < $c; $col++) {
$userAuswahl[$userZahl][$col] = $userData['choice'][$col];
Expand Down

0 comments on commit 5afb0a0

Please sign in to comment.