1. Your PHP Pro
  2. phpScratchAndWin

Commits

Your PHP Pro  committed d8db82c

Fix link - change 'Users_ID' to 'User_ID'.

  • Participants
  • Parent commits e2aabde
  • Branches default

Comments (0)

Files changed (1)

File admin/list_users.php

View file
     }
 //End Initialize Method
 
-//Show Method @6-E6A0300B
+//Show Method @6-488581A0
     function Show()
     {
         $Tpl = & CCGetTemplate($this);
                     $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
                     $this->User_ID->SetValue($this->DataSource->User_ID->GetValue());
                     $this->User_ID->Parameters = "";
-                    $this->User_ID->Parameters = CCAddParam($this->User_ID->Parameters, "Users_ID", $this->DataSource->f("Users_ID"));
+                    $this->User_ID->Parameters = CCAddParam($this->User_ID->Parameters, "User_ID", $this->DataSource->f("User_ID"));
                     $this->User_Name->SetValue($this->DataSource->User_Name->GetValue());
                     $this->User_Access->SetValue($this->DataSource->User_Access->GetValue());
                     $this->Attributes->SetValue("rowNumber", $this->RowNumber);
         $this->ErrorBlock = "Grid ListUsers";
         $this->Initialize();
         $this->User_ID = new clsField("User_ID", ccsInteger, "");
-
+        
         $this->User_Name = new clsField("User_Name", ccsText, "");
-
+        
         $this->User_Access = new clsField("User_Access", ccsText, "");
-
+        
         $this->Alt_User_ID = new clsField("Alt_User_ID", ccsInteger, "");
-
+        
         $this->Alt_User_Name = new clsField("Alt_User_Name", ccsText, "");
-
+        
         $this->Alt_User_Access = new clsField("Alt_User_Access", ccsText, "");
-
+        
 
     }
 //End DataSourceClass_Initialize Event
     function SetOrder($SorterName, $SorterDirection)
     {
         $this->Order = "";
-        $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
-            array("Sorter_User_ID" => array("User_ID", ""),
-            "Sorter_User_Name" => array("User_Name", ""),
+        $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection, 
+            array("Sorter_User_ID" => array("User_ID", ""), 
+            "Sorter_User_Name" => array("User_Name", ""), 
             "Sorter_User_Access" => array("User_Access", "")));
     }
 //End SetOrder Method
         $this->wp->Criterion[3] = $this->wp->Operation(opContains, "Users_Access", $this->wp->GetDBValue("3"), $this->ToSQL($this->wp->GetDBValue("3"), ccsText),false);
         $this->Where = $this->wp->opOR(
              true, $this->wp->opOR(
-             false,
-             $this->wp->Criterion[1],
-             $this->wp->Criterion[2]),
+             false, 
+             $this->wp->Criterion[1], 
+             $this->wp->Criterion[2]), 
              $this->wp->Criterion[3]);
     }
 //End Prepare Method
         $this->SQL = "SELECT * \n\n" .
         "FROM Users {SQL_Where} {SQL_OrderBy}";
         $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
-        if ($this->CountSQL)
+        if ($this->CountSQL) 
             $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
         else
             $this->RecordsCount = "CCS not counted";