align the account combo correctly
smbaker [Tue, 20 Nov 2012 05:11:22 +0000 (21:11 -0800)]
apps/gacksadmin/user_reservations.php

index eb4797a..9d07c8f 100644 (file)
@@ -32,16 +32,20 @@ include 'plc_header.php';
 
 $gacksapi = new GACKSAPI();
 
-print "<br>";
+$tabs['Add Reservation'] = array('method'=>'GET',
+                      'url'=>l_gacks_add_reservation(),
+                      'values'=>array(),
+                      'bubble'=>"Add a Reservation");
+
+plekit_linetabs($tabs);
+
+shrinkdiv_start();
 
 $account_name = get_account_name($api, $_person_id);
 
 $account = NULL;
 if ($account_name != NULL) {\r
     $account = $gacksapi->get_account(gacksid($account_name), "user", True);\r
-    //print "account:";\r
-    //print_r($account_name);\r
-    //print_r($account);\r
 }\r
 
 if ($account == NULL) {
@@ -51,18 +55,13 @@ if ($account == NULL) {
 } else {
     $account_hrn = slice_to_hrn($account_name);
 
-    $tabs['Add Reservation'] = array('method'=>'GET',
-                          'url'=>l_gacks_add_reservation(),
-                          'values'=>array(),
-                          'bubble'=>"Add a Reservation");
-
-    plekit_linetabs($tabs);
-
     $records = $gacksapi->query_overlap(NULL, 0, INFINITY, 0, INFINITY, NULL, $account_hrn);
 
     record_table($records, $timezone_seconds);
 }
 
+shrinkdiv_end();
+
 include 'plc_footer.php';
 
 ?>