fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [10001] property: integration


From: Sigurd Nes
Subject: [Fmsystem-commits] [10001] property: integration
Date: Fri, 14 Sep 2012 13:38:28 +0000

Revision: 10001
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10001
Author:   sigurdne
Date:     2012-09-14 13:38:27 +0000 (Fri, 14 Sep 2012)
Log Message:
-----------
property: integration

Modified Paths:
--------------
    trunk/property/inc/soap_client/braarkiv/soap.php

Modified: trunk/property/inc/soap_client/braarkiv/soap.php
===================================================================
--- trunk/property/inc/soap_client/braarkiv/soap.php    2012-09-14 11:42:33 UTC 
(rev 10000)
+++ trunk/property/inc/soap_client/braarkiv/soap.php    2012-09-14 13:38:27 UTC 
(rev 10001)
@@ -241,12 +241,14 @@
 
        }
 
+//_debug_array($_result['ExtendedDocument']);
+       $case_array = array();
        foreach ($_result['ExtendedDocument'] as $entry)
        {
-               $html .= '<tr>';
-               $html .='<td>';
-               $html .="<a href ='{$base_url}&fileid={$entry->ID}' title = 
'{$entry->Name}' target = '_blank'>{$entry->ID}</a>";
-               $html .='</td>';
+               $_html = '<tr>';
+               $_html .='<td>';
+               $_html .="<a href ='{$base_url}&fileid={$entry->ID}' title = 
'{$entry->Name}' target = '_blank'>{$entry->ID}</a>";
+               $_html .='</td>';
 
                foreach($entry->Attributes->Attribute as $attribute)
                {
@@ -255,43 +257,57 @@
                                continue;
                        }
 
-                       $html .='<td>';
+                       if($attribute->Name =='Saksdato')
+                       {
+                               $_key = strtotime($attribute->Value->anyType);
+                       }
 
+                       $_html .='<td>';
+
                        if(is_array($attribute->Value->anyType))
                        {
-                               $html .= '<table>';
+                               $_html .= '<table>';
 
                                foreach($attribute->Value->anyType as $value)
                                {
-                                       $html .= '<tr>';
-                                       $html .= '<td>';
+                                       $_html .= '<tr>';
+                                       $_html .= '<td>';
 
                                        if(isset($value->enc_stype) && 
$value->enc_stype == 'Matrikkel')
                                        {
-                                               $html .= $value->enc_value->GNr;
-                                               $html .= '/' . 
$value->enc_value->BNr;
+                                               $_html .= 
$value->enc_value->GNr;
+                                               $_html .= '/' . 
$value->enc_value->BNr;
                                        }
                                        else
                                        {
-                                               $html .= $value;                
                        
+                                               $_html .= $value;               
                        
                                        }
 
-                                       $html .= '</td>';
-                                       $html .= '</tr>';
+                                       $_html .= '</td>';
+                                       $_html .= '</tr>';
 
                                }
-                               $html .= '</table>';
+                               $_html .= '</table>';
                        }
                        else
                        {
-                               $html .=$attribute->Value->anyType;
+                               $_html .=$attribute->Value->anyType;
                        }
-                       $html .='</td>';
+                       $_html .='</td>';
                }
 
-               $html .= '</tr>';
+               $_html .= '</tr>';
+
+               $case_array[$_key][] = $_html;
        }
 
+       ksort($case_array);
+//_debug_array($case_array);
+       foreach($case_array as $case)
+       {
+               $html .= implode('',$case);     
+       }
+
        $html .=<<<HTML
        </table>
 HTML;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]