Permalink
Browse files

small bugfixes̈́

  • Loading branch information...
1 parent a6a48e0 commit ff6972b3d357feea0608724a8f2e2abe060a1736 @tedch tedch committed Jun 5, 2011
Showing with 9 additions and 18 deletions.
  1. +1 −1 application/views/bugs.php
  2. +1 −1 application/views/crfform.php
  3. +7 −16 application/views/main.php
View
2 application/views/bugs.php
@@ -1,4 +1,4 @@
-<?php $this->load->view('header', array('userdata' => $userdata['userdata'])); ?>
+<?php $this->load->view('header');?>
<p>Nedan dokumenteras brister i detta system <em>som är kända</em>. Dessa
behöver alltså inte rapporteras. Du kan lita på att
View
2 application/views/crfform.php
@@ -1,4 +1,4 @@
-<?php $this->load->view('header', array('userdata' => $userdata['userdata'])); ?>
+<?php $this->load->view('header');?>
<h1>Case Report Form</h1>
<?php
View
23 application/views/main.php
@@ -24,25 +24,16 @@
<th>Interventionsprotokoll</th>
<th>6-minuters gångtest</th>
</tr>
-<?php
-$blink = 0;
-foreach ($patients as $pat) {
-?>
+<?php $blink = 0; foreach ($patients as $pat) { ?>
<tr class="<?php echo (($blink++ % 2 == 0) ? 'light' : 'dark'); ?>">
<td class="frame"><tt><b><?=$pat['token']?></b></tt></td>
<td class="frameright"><small><?=$pat['list']?> (<?=$pat['vc']?>)</small></td>
- <td class="frameleft"><?php
- if ($pat['vc'] == 'Dalby') {
- echo "\t\t<a href='/pdf.pdf'>" . date('Y-m-d', strtotime($pat['dalby1'])) . "</a>";
- } else {
- echo "\t\t" . date('Y-m-d', strtotime($pat['dalby1']));
- }
-?></td>
- <td class="frame">---</td>
- <td class="frameright">---</td>
- <td class="frameleft"><?php echo list_documents_by_date($pat['token'], 'crf');?></td>
- <td class="frame"><?php echo list_documents_by_date($pat['token'], 'ivp');?></td>
- <td class="frame"><?php echo list_documents_by_date($pat['token'], 'wtp');?></td>
+ <td class="frameleft"><?php echo list_surveys_by_date($pat['token'], 'Dalby 1');?></td>
+ <td class="frame"><?php echo list_surveys_by_date($pat['token'], 'Dalby 2');?></td>
+ <td class="frameright"><?php echo list_surveys_by_date($pat['token'], 'Dalby 3');?></td>
+ <td class="frameleft"><?php echo list_documents_by_date($pat['token'], 'crf');?></td>
+ <td class="frame"><?php echo list_documents_by_date($pat['token'], 'ivp');?></td>
+ <td class="frame"><?php echo list_documents_by_date($pat['token'], 'wtp');?></td>
</tr>
<?php } ?>
</table>

0 comments on commit ff6972b

Please sign in to comment.