phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] sync/inc/class.ui_sync.inc.php, 1.10


From: nomail
Subject: [Phpgroupware-cvs] sync/inc/class.ui_sync.inc.php, 1.10
Date: Thu, 20 May 2004 14:58:57 -0000

Update of /sync/inc
Modified Files:
        Branch: 
          class.ui_sync.inc.php

date: 2004/04/06 09:30:55;  author: mkaemmerer;  state: Exp;  lines: +15 -6

Log Message:
- misc bugfixes
=====================================================================
No syntax errors detected in -
=====================================================================
Index: sync/inc/class.ui_sync.inc.php
diff -u sync/inc/class.ui_sync.inc.php:1.9 sync/inc/class.ui_sync.inc.php:1.10
--- sync/inc/class.ui_sync.inc.php:1.9  Sat Mar 20 16:17:31 2004
+++ sync/inc/class.ui_sync.inc.php      Tue Apr  6 09:30:55 2004
@@ -207,16 +207,25 @@
     //TODO: lang-support:
 
     // table header
-    $this->template->set_var('head_device_name','devicename');
-    $this->template->set_var('head_device_id','device ID');
+    // account, uri, description, username, edit, delete
+    $this->template->set_var('head_account', 'account');
+    $this->template->set_var('head_uri', 'URI');
+    $this->template->set_var('head_description', 'description');
+    $this->template->set_var('head_username', 'username');
+    $this->template->set_var('head_edit', 'edit');
+    $this->template->set_var('head_delete', 'delete');
     $devicelisttable = $this->template->fp('sync_template','table_header');
 
     // all devices of user $phpgw_userlid
     $devicelist = array();
     if ($this->so->GetDeviceList($phpgw_userid, $devicelist)) {
-      foreach($devicelist as $deviceid => $uri) {
-        $this->template->set_var('device_name',$uri);
-        $this->template->set_var('device_id',$deviceid);
+      foreach($devicelist as $device) {
+        $this->template->set_var('device_account', 
$GLOBALS['phpgw']->accounts->id2name($device[0]));
+        $this->template->set_var('device_uri', $device[1]);
+        $this->template->set_var('device_description', $device[2]);
+        $this->template->set_var('device_username', $device[3]);
+        $this->template->set_var('device_edit', 'edit');
+        $this->template->set_var('device_delete', 'delete');
         $devicelisttable .= $this->template->fp('sync_template','device_list');
       }
     } else




reply via email to

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