السلام عليكم ورحة الله


منتدى رااائع ويستحق التسجيل فيه


ابي مساعدتكم في هالاكواد وعندي غيرها ايضا لكن ماراح اطالبكم بالكثير ابي شرح وش تعمل كل داله فقط لان لغة phpجديده علي وماتقنتها مره وهو مشروع تخرج ياليييييييييييت تساعدوني ياللي عندكم خبرات ولو قليله


شاكره لكم مساعدتكم


//Initialize Method @2-90E704C5


function Initialize()


{


if(!$this->Visible) return;



$this->DataSource->PageSize = & $this->PageSize;


$this->DataSource->AbsolutePage = & $this->PageNumber;


$this->DataSource->SetOrder($this->SorterName, $this->SorterDirection);



}


//End Initialize Method




//GetFormParameters Method @2-8E56983D


function GetFormParameters()


{


for($RowNumber = 1; $RowNumber <= $this->TotalRows; $RowNumber++)


{


$this->FormParameters["ForumSubjects_ForumSubje ctID"][$RowNumber] = CCGetFromPost("ForumSubje cts_ForumSubjectID_" . $RowNumber);


$this->FormParameters["Reply"][$RowNumber] = CCGetFromPost("Reply_" . $RowNumber);


$this->FormParameters["ListBox1"][$RowNumber] = CCGetFromPost("ListBox1_" . $RowNumber);


$this->FormParameters["AdditionDate"][$RowNumber] = CCGetFromPost("AdditionDa te_" . $RowNumber);


}


}


//End GetFormParameters Method



//Validate Method @2-EEF5EEB4


function Validate()


{


$Validation = true;


$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this);



for($RowNumber = 1; $RowNumber <= $this->TotalRows; $RowNumber++)


{


$this->DataSource->CachedColumns["ForumReplyID"] = $this->CachedColumns["ForumReplyID"][$RowNumber];


$this->DataSource->CurrentRow = $RowNumber;


$this->ForumSubjects_ForumSubje ctID->SetText($this->FormParameters["ForumSubjects_ForumSubje ctID"][$RowNumber], $RowNumber);


$this->Reply->SetText($this->FormParameters["Reply"][$RowNumber], $RowNumber);


$this->ListBox1->SetText($this->FormParameters["ListBox1"][$RowNumber], $RowNumber);


$this->AdditionDate->SetText($this->FormParameters["AdditionDate"][$RowNumber], $RowNumber);


if ($this->UpdatedRows >= $RowNumber) {


$Validation = ($this->ValidateRow($RowNumber ) && $Validation);


}


else if($this->CheckInsert($RowNumber))


{


$Validation = ($this->ValidateRow($RowNumber ) && $Validation);


}


}


return (($this->Errors->Count() == 0) && $Validation);


}


//End Validate Method



//ValidateRow Method @2-E346153F


function ValidateRow($RowNumber)


{


global $CCSLocales;


$this->ForumSubjects_ForumSubje ctID->Validate();


$this->Reply->Validate();


$this->ListBox1->Validate();


$this->AdditionDate->Validate();


$this->RowErrors = new clsErrors();


$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidateRow", $this);


$errors = "";


$errors = ComposeStrings($errors, $this->ForumSubjects_ForumSubje ctID->Errors->ToString());


$errors = ComposeStrings($errors, $this->Reply->Errors->ToString());


$errors = ComposeStrings($errors, $this->ListBox1->Errors->ToString());


$errors = ComposeStrings($errors, $this->AdditionDate->Errors->ToString());


$this->ForumSubjects_ForumSubje ctID->Errors->Clear();


$this->Reply->Errors->Clear();


$this->ListBox1->Errors->Clear();


$this->AdditionDate->Errors->Clear();


$errors = ComposeStrings($errors, $this->RowErrors->ToString());


$this->RowsErrors[$RowNumber] = $errors;


return $errors != "" ? 0 : 1;


}


//End ValidateRow Method