當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CCGetTemplate函數代碼示例

本文整理匯總了PHP中CCGetTemplate函數的典型用法代碼示例。如果您正苦於以下問題:PHP CCGetTemplate函數的具體用法?PHP CCGetTemplate怎麽用?PHP CCGetTemplate使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了CCGetTemplate函數的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Show

 function Show()
 {
     global $CCSUseAmp;
     $Tpl =& CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->oldpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->newpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->confirmpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button1->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->oldpwd->Show();
     $this->newpwd->Show();
     $this->confirmpwd->Show();
     $this->Button1->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:59,代碼來源:change_password.php

示例2: Show

 function Show()
 {
     global $CCSUseAmp;
     $Tpl = CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->attribut_type->SetValue($this->DataSource->attribut_type->GetValue());
                 $this->p_user_attribut_id->SetValue($this->DataSource->p_user_attribut_id->GetValue());
                 $this->created_by->SetValue($this->DataSource->created_by->GetValue());
                 $this->creation_date->SetValue($this->DataSource->creation_date->GetValue());
                 $this->updated_by->SetValue($this->DataSource->updated_by->GetValue());
                 $this->updated_date->SetValue($this->DataSource->updated_date->GetValue());
                 $this->user_name->SetValue($this->DataSource->user_name->GetValue());
                 $this->p_user_attribute_type_id->SetValue($this->DataSource->p_user_attribute_type_id->GetValue());
                 $this->p_user_id->SetValue($this->DataSource->p_user_id->GetValue());
                 $this->attribut_list_code->SetValue($this->DataSource->attribut_list_code->GetValue());
                 $this->p_user_attribute_list_id->SetValue($this->DataSource->p_user_attribute_list_id->GetValue());
                 $this->user_attribute_value->SetValue($this->DataSource->user_attribute_value->GetValue());
                 $this->valid_from->SetValue($this->DataSource->valid_from->GetValue());
                 $this->valid_to->SetValue($this->DataSource->valid_to->GetValue());
                 $this->description->SetValue($this->DataSource->description->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->attribut_type->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribut_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->user_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribute_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->attribut_list_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribute_list_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->user_attribute_value->Errors->ToString());
         $Error = ComposeStrings($Error, $this->valid_from->Errors->ToString());
         $Error = ComposeStrings($Error, $this->valid_to->Errors->ToString());
         $Error = ComposeStrings($Error, $this->description->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_valid_from1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_valid_to1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->attribut_type->Show();
     $this->p_user_attribut_id->Show();
     $this->created_by->Show();
     $this->creation_date->Show();
     $this->updated_by->Show();
     $this->updated_date->Show();
     $this->user_name->Show();
     $this->p_user_attribute_type_id->Show();
     $this->p_user_id->Show();
     $this->attribut_list_code->Show();
     $this->p_user_attribute_list_id->Show();
     $this->user_attribute_value->Show();
     $this->valid_from->Show();
     $this->valid_to->Show();
//.........這裏部分代碼省略.........
開發者ID:rayminami,項目名稱:chumanis,代碼行數:101,代碼來源:p_user_attribute_form.php

示例3: Show

 function Show()
 {
     $Tpl =& CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     global $CCSUseAmp;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->open();
     $is_next_record = $this->ReadAllowed && $this->DataSource->next_record();
     $this->IsEmpty = !$is_next_record;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $this->Attributes->Show();
     $this->Button_Submit->Visible = $this->Button_Submit->Visible && ($this->InsertAllowed || $this->UpdateAllowed || $this->DeleteAllowed);
     $ParentPath = $Tpl->block_path;
     $EditableGridPath = $ParentPath . "/EditableGrid " . $this->ComponentName;
     $EditableGridRowPath = $ParentPath . "/EditableGrid " . $this->ComponentName . "/Row";
     $Tpl->block_path = $EditableGridRowPath;
     $this->RowNumber = 0;
     $NonEmptyRows = 0;
     $EmptyRowsLeft = $this->EmptyRows;
     $this->ControlsVisible["title_id"] = $this->title_id->Visible;
     $this->ControlsVisible["title"] = $this->title->Visible;
     $this->ControlsVisible["CheckBox_Delete"] = $this->CheckBox_Delete->Visible;
     if ($is_next_record || $EmptyRowsLeft && $this->InsertAllowed) {
         do {
             $this->RowNumber++;
             if ($is_next_record) {
                 $NonEmptyRows++;
                 $this->DataSource->SetValues();
             }
             if (!$is_next_record || !$this->DeleteAllowed) {
                 $this->CheckBox_Delete->Visible = false;
             }
             if (!$this->FormSubmitted && $is_next_record) {
                 $this->CachedColumns["title_id"][$this->RowNumber] = $this->DataSource->CachedColumns["title_id"];
                 $this->CheckBox_Delete->SetValue(false);
                 $this->title_id->SetValue($this->DataSource->title_id->GetValue());
                 $this->title->SetValue($this->DataSource->title->GetValue());
             } elseif ($this->FormSubmitted && $is_next_record) {
                 $this->title_id->SetText("");
                 $this->title_id->SetValue($this->DataSource->title_id->GetValue());
                 $this->title->SetText($this->FormParameters["title"][$this->RowNumber], $this->RowNumber);
                 $this->CheckBox_Delete->SetText($this->FormParameters["CheckBox_Delete"][$this->RowNumber], $this->RowNumber);
             } elseif (!$this->FormSubmitted) {
                 $this->CachedColumns["title_id"][$this->RowNumber] = "";
                 $this->title_id->SetText("");
                 $this->title->SetText("");
             } else {
                 $this->title_id->SetText("");
                 $this->title->SetText($this->FormParameters["title"][$this->RowNumber], $this->RowNumber);
                 $this->CheckBox_Delete->SetText($this->FormParameters["CheckBox_Delete"][$this->RowNumber], $this->RowNumber);
             }
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->title_id->Show($this->RowNumber);
             $this->title->Show($this->RowNumber);
             $this->CheckBox_Delete->Show($this->RowNumber);
             if (isset($this->RowsErrors[$this->RowNumber]) && $this->RowsErrors[$this->RowNumber] != "") {
                 $Tpl->setblockvar("RowError", "");
                 $Tpl->setvar("Error", $this->RowsErrors[$this->RowNumber]);
                 $this->Attributes->Show();
                 $Tpl->parse("RowError", false);
             } else {
                 $Tpl->setblockvar("RowError", "");
             }
             $Tpl->setvar("FormScript", $this->FormScript($this->RowNumber));
             $Tpl->parse();
             if ($is_next_record) {
                 if ($this->FormSubmitted) {
                     $is_next_record = $this->RowNumber < $this->UpdatedRows;
                     if ($this->DataSource->CachedColumns["title_id"] == $this->CachedColumns["title_id"][$this->RowNumber]) {
                         if ($this->ReadAllowed) {
                             $this->DataSource->next_record();
                         }
                     }
                 } else {
                     $is_next_record = $this->RowNumber < $this->PageSize && $this->ReadAllowed && $this->DataSource->next_record();
                 }
             } else {
                 $EmptyRowsLeft--;
             }
         } while ($is_next_record || $EmptyRowsLeft && $this->InsertAllowed);
     } else {
         $Tpl->block_path = $EditableGridPath;
         $this->Attributes->Show();
         $Tpl->parse("NoRecords", false);
     }
     $Tpl->block_path = $EditableGridPath;
     $this->Button_Submit->Show();
     $this->Cancel->Show();
     if ($this->CheckErrors()) {
         $Error = ComposeStrings($Error, $this->Errors->ToString());
//.........這裏部分代碼省略.........
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:101,代碼來源:title.php

示例4: Show

 function Show()
 {
     $Tpl = CCGetTemplate($this);
     global $CCSLocales;
     if (!$this->Visible) {
         return;
     }
     $this->RowNumber = 0;
     $this->DataSource->Parameters["urlp_menu_id"] = CCGetFromGet("p_menu_id", NULL);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->Prepare();
     $this->DataSource->Open();
     $this->HasRecord = $this->DataSource->has_next_record();
     $this->IsEmpty = !$this->HasRecord;
     $this->Attributes->Show();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $GridBlock = "Grid " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $GridBlock;
     if (!$this->IsEmpty) {
         $this->ControlsVisible["code"] = $this->code->Visible;
         $this->ControlsVisible["valid_from"] = $this->valid_from->Visible;
         $this->ControlsVisible["editlink"] = $this->editlink->Visible;
         $this->ControlsVisible["role_name"] = $this->role_name->Visible;
         $this->ControlsVisible["valid_to"] = $this->valid_to->Visible;
         while ($this->ForceIteration || $this->RowNumber < $this->PageSize && ($this->HasRecord = $this->DataSource->has_next_record())) {
             $this->RowNumber++;
             if ($this->HasRecord) {
                 $this->DataSource->next_record();
                 $this->DataSource->SetValues();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
             $this->code->SetValue($this->DataSource->code->GetValue());
             $this->valid_from->SetValue($this->DataSource->valid_from->GetValue());
             $this->editlink->Parameters = CCGetQueryString("QueryString", array("p_menu_id", "ccsForm"));
             $this->editlink->Parameters = CCAddParam($this->editlink->Parameters, "p_role_menu_id", $this->DataSource->f("p_role_menu_id"));
             $this->role_name->SetValue($this->DataSource->role_name->GetValue());
             $this->valid_to->SetValue($this->DataSource->valid_to->GetValue());
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->code->Show();
             $this->valid_from->Show();
             $this->editlink->Show();
             $this->role_name->Show();
             $this->valid_to->Show();
             $Tpl->block_path = $ParentPath . "/" . $GridBlock;
             $Tpl->parse("Row", true);
         }
     } else {
         // Show NoRecords block if no records are found
         $this->Attributes->Show();
         $Tpl->parse("NoRecords", false);
     }
     $errors = $this->GetErrors();
     if (strlen($errors)) {
         $Tpl->replaceblock("", $errors);
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Navigator->PageNumber = $this->DataSource->AbsolutePage;
     $this->Navigator->PageSize = $this->PageSize;
     if ($this->DataSource->RecordsCount == "CCS not counted") {
         $this->Navigator->TotalPages = $this->DataSource->AbsolutePage + ($this->DataSource->next_record() ? 1 : 0);
     } else {
         $this->Navigator->TotalPages = $this->DataSource->PageCount();
     }
     if ($this->Navigator->TotalPages <= 1 && $this->Navigator->PageNumber == 1 || $this->Navigator->PageSize == "") {
         $this->Navigator->Visible = false;
     }
     $this->p_module_id->SetValue($this->DataSource->p_module_id->GetValue());
     $this->Navigator->Show();
     $this->addlink->Show();
     $this->p_module_id->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
開發者ID:rayminami,項目名稱:chumanis,代碼行數:81,代碼來源:p_role_menu.php

示例5: Show

 function Show()
 {
     $Tpl =& CCGetTemplate($this);
     global $CCSLocales;
     if (!$this->Visible) {
         return;
     }
     $this->RowNumber = 0;
     $this->DataSource->Parameters["urlresult_id"] = CCGetFromGet("result_id", NULL);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->Prepare();
     $this->DataSource->Open();
     $this->HasRecord = $this->DataSource->has_next_record();
     $this->IsEmpty = !$this->HasRecord;
     $this->Attributes->Show();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $GridBlock = "Grid " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $GridBlock;
     if (!$this->IsEmpty) {
         $this->ControlsVisible["surname"] = $this->surname->Visible;
         $this->ControlsVisible["other_names"] = $this->other_names->Visible;
         $this->ControlsVisible["age"] = $this->age->Visible;
         $this->ControlsVisible["hospital_no"] = $this->hospital_no->Visible;
         $this->ControlsVisible["conclusion"] = $this->conclusion->Visible;
         $this->ControlsVisible["first_name"] = $this->first_name->Visible;
         $this->ControlsVisible["sex"] = $this->sex->Visible;
         $this->ControlsVisible["clinic"] = $this->clinic->Visible;
         $this->ControlsVisible["title"] = $this->title->Visible;
         $this->ControlsVisible["last_name"] = $this->last_name->Visible;
         $this->ControlsVisible["sub_dept"] = $this->sub_dept->Visible;
         $this->ControlsVisible["todaysDate"] = $this->todaysDate->Visible;
         $this->ControlsVisible["result"] = $this->result->Visible;
         while ($this->ForceIteration || $this->RowNumber < $this->PageSize && ($this->HasRecord = $this->DataSource->has_next_record())) {
             $this->RowNumber++;
             if ($this->HasRecord) {
                 $this->DataSource->next_record();
                 $this->DataSource->SetValues();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
             if (!is_array($this->todaysDate->Value) && !strlen($this->todaysDate->Value) && $this->todaysDate->Value !== false) {
                 $this->todaysDate->SetValue(time());
             }
             $this->surname->SetValue($this->DataSource->surname->GetValue());
             $this->other_names->SetValue($this->DataSource->other_names->GetValue());
             $this->age->SetValue($this->DataSource->age->GetValue());
             $this->hospital_no->SetValue($this->DataSource->hospital_no->GetValue());
             $this->conclusion->SetValue($this->DataSource->conclusion->GetValue());
             $this->first_name->SetValue($this->DataSource->first_name->GetValue());
             $this->sex->SetValue($this->DataSource->sex->GetValue());
             $this->clinic->SetValue($this->DataSource->clinic->GetValue());
             $this->title->SetValue($this->DataSource->title->GetValue());
             $this->last_name->SetValue($this->DataSource->last_name->GetValue());
             $this->sub_dept->SetValue($this->DataSource->sub_dept->GetValue());
             $this->result->SetValue($this->DataSource->result->GetValue());
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->surname->Show();
             $this->other_names->Show();
             $this->age->Show();
             $this->hospital_no->Show();
             $this->conclusion->Show();
             $this->first_name->Show();
             $this->sex->Show();
             $this->clinic->Show();
             $this->title->Show();
             $this->last_name->Show();
             $this->sub_dept->Show();
             $this->todaysDate->Show();
             $this->result->Show();
             $Tpl->block_path = $ParentPath . "/" . $GridBlock;
             $Tpl->parse("Row", true);
         }
     } else {
         // Show NoRecords block if no records are found
         $this->Attributes->Show();
         $Tpl->parse("NoRecords", false);
     }
     $errors = $this->GetErrors();
     if (strlen($errors)) {
         $Tpl->replaceblock("", $errors);
         $Tpl->block_path = $ParentPath;
         return;
     }
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:92,代碼來源:print_report.php

示例6: Show

 function Show()
 {
     global $CCSUseAmp;
     $Tpl = CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->s_keyword->Errors->ToString());
         $Error = ComposeStrings($Error, $this->idmenulabel->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->s_keyword->Show();
     $this->Button_DoSearch->Show();
     $this->idmenulabel->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
開發者ID:rayminami,項目名稱:chumanis,代碼行數:42,代碼來源:p_module.php

示例7: Show

 function Show()
 {
     $Tpl = CCGetTemplate($this);
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if ($this->Visible) {
         $BlockPath = $Tpl->block_path;
         $Tpl->block_path = $Tpl->block_path . "/FlashChart " . $this->Name;
         $Tpl->SetVar("Src", RelativePath . "/FlashChart.swf?XMLDataFile=" . urlencode(FileName . "?" . CCAddParam(CCGetQueryString("All", ""), "callbackControl", $this->CallbackParameter)));
         $Tpl->SetVar("Title", $this->Title);
         $Tpl->SetVar("Width", $this->Width);
         $Tpl->SetVar("Height", $this->Height);
         $Tpl->block_path = $BlockPath;
         $Tpl->Parse("FlashChart " . $this->Name);
     }
 }
開發者ID:rayminami,項目名稱:chumanis,代碼行數:18,代碼來源:Classes.php

示例8: Show

 function Show()
 {
     $Tpl =& CCGetTemplate($this);
     global $CCSLocales;
     if (!$this->Visible) {
         return;
     }
     $this->RowNumber = 0;
     $this->DataSource->Parameters["urlquery"] = CCGetFromGet("query", NULL);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->Prepare();
     $this->DataSource->Open();
     $this->HasRecord = $this->DataSource->has_next_record();
     $this->IsEmpty = !$this->HasRecord;
     $this->Attributes->Show();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $GridBlock = "Grid " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $GridBlock;
     if (!$this->IsEmpty) {
         $this->ControlsVisible["first_name"] = $this->first_name->Visible;
         while ($this->ForceIteration || $this->RowNumber < $this->PageSize && ($this->HasRecord = $this->DataSource->has_next_record())) {
             // Parse Separator
             if ($this->RowNumber) {
                 $this->Attributes->Show();
                 $Tpl->parseto("Separator", true, "Row");
             }
             $this->RowNumber++;
             if ($this->HasRecord) {
                 $this->DataSource->next_record();
                 $this->DataSource->SetValues();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
             $this->first_name->SetValue($this->DataSource->first_name->GetValue());
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->first_name->Show();
             $Tpl->block_path = $ParentPath . "/" . $GridBlock;
             $Tpl->parse("Row", true);
         }
     }
     $errors = $this->GetErrors();
     if (strlen($errors)) {
         $Tpl->replaceblock("", $errors);
         $Tpl->block_path = $ParentPath;
         return;
     }
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:55,代碼來源:admin_index_title_user_group_departme1_s_keyword_YahooAutocomplete1.php

示例9: Show

 function Show()
 {
     global $CCSUseAmp;
     $Tpl =& CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->clinic_id->Prepare();
     $this->sup_dept_id->Prepare();
     $this->department_id->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->consultant_i_c->SetValue($this->DataSource->consultant_i_c->GetValue());
                 $this->l_m_p->SetValue($this->DataSource->l_m_p->GetValue());
                 $this->clinic_id->SetValue($this->DataSource->clinic_id->GetValue());
                 $this->primary_diagnosis->SetValue($this->DataSource->primary_diagnosis->GetValue());
                 $this->clinical_notes->SetValue($this->DataSource->clinical_notes->GetValue());
                 $this->date->SetValue($this->DataSource->date->GetValue());
                 $this->sup_dept_id->SetValue($this->DataSource->sup_dept_id->GetValue());
                 $this->amount_to_pay->SetValue($this->DataSource->amount_to_pay->GetValue());
                 $this->department_id->SetValue($this->DataSource->department_id->GetValue());
                 $this->patient_id->SetValue($this->DataSource->patient_id->GetValue());
                 $this->status_id->SetValue($this->DataSource->status_id->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->consultant_i_c->Errors->ToString());
         $Error = ComposeStrings($Error, $this->l_m_p->Errors->ToString());
         $Error = ComposeStrings($Error, $this->clinic_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->primary_diagnosis->Errors->ToString());
         $Error = ComposeStrings($Error, $this->clinical_notes->Errors->ToString());
         $Error = ComposeStrings($Error, $this->date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->sup_dept_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->amount_to_pay->Errors->ToString());
         $Error = ComposeStrings($Error, $this->department_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->patient_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->status_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->consultant_i_c->Show();
     $this->l_m_p->Show();
     $this->clinic_id->Show();
     $this->primary_diagnosis->Show();
     $this->clinical_notes->Show();
     $this->date->Show();
     $this->sup_dept_id->Show();
     $this->amount_to_pay->Show();
     $this->department_id->Show();
     $this->patient_id->Show();
     $this->status_id->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:94,代碼來源:schedule_test.php

示例10: ShowMonth

 function ShowMonth()
 {
     $Tpl =& CCGetTemplate($this);
     global $CCSLocales;
     global $DefaultDateFormat;
     $ParentPath = $Tpl->block_path;
     $OldCurrentProcessingDate = $this->CurrentProcessingDate;
     $OldNextProcessingDate = $this->NextProcessingDate;
     $OldPrevProcessingDate = $this->PrevProcessingDate;
     $FirstMonthDate = CCParseDate(CCFormatDate($this->CurrentProcessingDate, array("yyyy", "-", "mm", "-01 00:00:00")), array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
     $LastMonthDate = CCDateAdd($FirstMonthDate, "+1month -1second");
     $Days = (CCFormatDate($FirstMonthDate, array("w")) - $this->FirstWeekDay + 6) % 7;
     $FirstShowedDate = CCDateAdd($FirstMonthDate, "-" . $Days . "day");
     $Days += $LastMonthDate[ccsDay];
     $Days += ($this->FirstWeekDay - CCFormatDate($LastMonthDate, array("w")) + 7) % 7;
     $this->CurrentProcessingDate = $FirstShowedDate;
     $this->PrevProcessingDate = CCDateAdd($FirstShowedDate, "-1day");
     $this->NextProcessingDate = CCDateAdd($FirstShowedDate, "+1day");
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowMonth", $this);
     $this->Attributes->Show();
     $ShowedDays = 0;
     $WeekDay = CCFormatDate($this->CurrentProcessingDate, array("w"));
     while ($ShowedDays < $Days) {
         if ($ShowedDays % 7 == 0) {
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowWeek", $this);
             $this->Attributes->Show();
         }
         $this->IsCurrentMonth = $this->CurrentProcessingDate[ccsMonth] == $OldCurrentProcessingDate[ccsMonth];
         $this->SetCurrentStyle("Day", $WeekDay);
         $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowDay", $this);
         $this->Attributes->Show();
         if ($this->IsCurrentMonth) {
             $datestr = CCFormatDate($this->CurrentProcessingDate, array("yyyy", "mm", "dd"));
             $Tpl->block_path = $ParentPath . "/Week/Day/EventRow";
             $Tpl->SetBlockVar("", "");
             if (isset($this->Events[$datestr])) {
                 uasort($this->Events[$datestr], array($this, "CompareEventTime"));
                 foreach ($this->Events[$datestr] as $key => $event) {
                     $Tpl->block_path = $ParentPath . "/Week/Day/EventRow";
                     $this->Attributes->AddFromArray($this->Events[$datestr][$key]->Attributes);
                     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowEvent", $this);
                     $this->EventTime->SetValue($event->EventTime);
                     $this->EventDescription->SetValue($event->EventDescription);
                     $this->EventTime->Show();
                     $this->EventDescription->Show();
                     $this->Attributes->Show();
                     $Tpl->Parse("", true);
                 }
             } else {
             }
             $Tpl->block_path = $ParentPath . "/Week/Day";
             $this->DayNumber->SetValue($this->CurrentProcessingDate);
             $this->DayNumber->Show();
             $this->Attributes->Show();
             $Tpl->SetVar("Style", $this->CurrentStyle);
             $Tpl->Parse("", true);
         } else {
             $Tpl->block_path = $ParentPath . "/Week/EmptyDay";
             $this->Attributes->Show();
             $Tpl->block_path = $ParentPath . "/Week";
             $Tpl->SetVar("Style", $this->CurrentStyle);
             $Tpl->ParseTo("EmptyDay", true, "Day");
         }
         $ShowedDays++;
         if ($ShowedDays and $ShowedDays % 7 == 0) {
             $Tpl->block_path = $ParentPath . "/Week";
             $this->Attributes->Show();
             $Tpl->Parse("", true);
             $Tpl->SetBlockVar("Day", "");
         }
         $this->ProcessNextDate(CCDateAdd($this->NextProcessingDate, "+1day"));
         $WeekDay = $WeekDay == 7 ? 1 : $WeekDay + 1;
     }
     $Tpl->block_path = $ParentPath . "/WeekDays";
     $Tpl->SetBlockVar("", "");
     $WeekDay = CCFormatDate($this->CurrentProcessingDate, array("w"));
     $ShowedDays = 0;
     $this->CurrentProcessingDate = $FirstShowedDate;
     $this->PrevProcessingDate = CCDateAdd($FirstShowedDate, "-1day");
     $this->NextProcessingDate = CCDateAdd($FirstShowedDate, "+1day");
     while ($ShowedDays < 7) {
         $this->Attributes->Show();
         $this->DayOfWeek->SetValue($this->CurrentProcessingDate);
         $this->DayOfWeek->Show();
         $this->SetCurrentStyle("WeekDay", $WeekDay);
         $Tpl->SetVar("Style", $this->CurrentStyle);
         $Tpl->Parse("", true);
         $WeekDay = $WeekDay == 7 ? 1 : $WeekDay + 1;
         $this->ProcessNextDate(CCDateAdd($this->NextProcessingDate, "+1day"));
         $ShowedDays++;
     }
     $Tpl->block_path = $ParentPath;
     $this->CurrentProcessingDate = $OldCurrentProcessingDate;
     $this->NextProcessingDate = $OldNextProcessingDate;
     $this->PrevProcessingDate = $OldPrevProcessingDate;
     $Tpl->Parse("", true);
     $Tpl->block_path = $ParentPath;
 }
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:98,代碼來源:schedule_appointment.php

示例11: Show

 function Show()
 {
     $Tpl =& CCGetTemplate($this);
     global $CCSLocales;
     if (!$this->Visible) {
         return;
     }
     $this->RowNumber = 0;
     $this->DataSource->Parameters["urlresult_id"] = CCGetFromGet("result_id", NULL);
     $this->DataSource->Parameters["urlpatient_id"] = CCGetFromGet("patient_id", NULL);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->Prepare();
     $this->DataSource->Open();
     $this->HasRecord = $this->DataSource->has_next_record();
     $this->IsEmpty = !$this->HasRecord;
     $this->Attributes->Show();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $GridBlock = "Grid " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $GridBlock;
     if (!$this->IsEmpty) {
         $this->ControlsVisible["result_id"] = $this->result_id->Visible;
         $this->ControlsVisible["status"] = $this->status->Visible;
         $this->ControlsVisible["department"] = $this->department->Visible;
         $this->ControlsVisible["sub_dept"] = $this->sub_dept->Visible;
         $this->ControlsVisible["surname"] = $this->surname->Visible;
         $this->ControlsVisible["other_names"] = $this->other_names->Visible;
         $this->ControlsVisible["age"] = $this->age->Visible;
         $this->ControlsVisible["sex"] = $this->sex->Visible;
         $this->ControlsVisible["occupation"] = $this->occupation->Visible;
         $this->ControlsVisible["result"] = $this->result->Visible;
         $this->ControlsVisible["conclusion"] = $this->conclusion->Visible;
         $this->ControlsVisible["consultant_i_c"] = $this->consultant_i_c->Visible;
         $this->ControlsVisible["amount_to_pay"] = $this->amount_to_pay->Visible;
         $this->ControlsVisible["date"] = $this->date->Visible;
         $this->ControlsVisible["hospital_no"] = $this->hospital_no->Visible;
         $this->ControlsVisible["title"] = $this->title->Visible;
         $this->ControlsVisible["appointment_date"] = $this->appointment_date->Visible;
         $this->ControlsVisible["appointment_time"] = $this->appointment_time->Visible;
         $this->ControlsVisible["l_m_p1"] = $this->l_m_p1->Visible;
         $this->ControlsVisible["primary_diagnosis"] = $this->primary_diagnosis->Visible;
         $this->ControlsVisible["clinical_notes"] = $this->clinical_notes->Visible;
         $this->ControlsVisible["first_name"] = $this->first_name->Visible;
         $this->ControlsVisible["last_name"] = $this->last_name->Visible;
         $this->ControlsVisible["statistical_conclusion"] = $this->statistical_conclusion->Visible;
         $this->ControlsVisible["clinic"] = $this->clinic->Visible;
         $this->ControlsVisible["patient_patient_id"] = $this->patient_patient_id->Visible;
         $this->ControlsVisible["Link1"] = $this->Link1->Visible;
         while ($this->ForceIteration || $this->RowNumber < $this->PageSize && ($this->HasRecord = $this->DataSource->has_next_record())) {
             $this->RowNumber++;
             if ($this->HasRecord) {
                 $this->DataSource->next_record();
                 $this->DataSource->SetValues();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
             $this->result_id->SetValue($this->DataSource->result_id->GetValue());
             $this->status->SetValue($this->DataSource->status->GetValue());
             $this->department->SetValue($this->DataSource->department->GetValue());
             $this->sub_dept->SetValue($this->DataSource->sub_dept->GetValue());
             $this->surname->SetValue($this->DataSource->surname->GetValue());
             $this->other_names->SetValue($this->DataSource->other_names->GetValue());
             $this->age->SetValue($this->DataSource->age->GetValue());
             $this->sex->SetValue($this->DataSource->sex->GetValue());
             $this->occupation->SetValue($this->DataSource->occupation->GetValue());
             $this->result->SetValue($this->DataSource->result->GetValue());
             $this->conclusion->SetValue($this->DataSource->conclusion->GetValue());
             $this->consultant_i_c->SetValue($this->DataSource->consultant_i_c->GetValue());
             $this->amount_to_pay->SetValue($this->DataSource->amount_to_pay->GetValue());
             $this->date->SetValue($this->DataSource->date->GetValue());
             $this->hospital_no->SetValue($this->DataSource->hospital_no->GetValue());
             $this->title->SetValue($this->DataSource->title->GetValue());
             $this->appointment_date->SetValue($this->DataSource->appointment_date->GetValue());
             $this->appointment_time->SetValue($this->DataSource->appointment_time->GetValue());
             $this->l_m_p1->SetValue($this->DataSource->l_m_p1->GetValue());
             $this->primary_diagnosis->SetValue($this->DataSource->primary_diagnosis->GetValue());
             $this->clinical_notes->SetValue($this->DataSource->clinical_notes->GetValue());
             $this->first_name->SetValue($this->DataSource->first_name->GetValue());
             $this->last_name->SetValue($this->DataSource->last_name->GetValue());
             $this->statistical_conclusion->SetValue($this->DataSource->statistical_conclusion->GetValue());
             $this->clinic->SetValue($this->DataSource->clinic->GetValue());
             $this->patient_patient_id->SetValue($this->DataSource->patient_patient_id->GetValue());
             $this->Link1->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
             $this->Link1->Parameters = CCAddParam($this->Link1->Parameters, "result_id", $this->DataSource->f("result_id"));
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->result_id->Show();
             $this->status->Show();
             $this->department->Show();
             $this->sub_dept->Show();
             $this->surname->Show();
             $this->other_names->Show();
             $this->age->Show();
             $this->sex->Show();
             $this->occupation->Show();
             $this->result->Show();
             $this->conclusion->Show();
//.........這裏部分代碼省略.........
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:101,代碼來源:patient_info.php

示例12: Show

 function Show()
 {
     $Tpl = CCGetTemplate($this);
     #var_dump($Tpl);
     global $CCSLocales;
     if (!$this->Visible) {
         return;
     }
     $this->RowNumber = 0;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->Prepare();
     $this->DataSource->Open();
     $this->HasRecord = $this->DataSource->has_next_record();
     if ($this->DataSource->Errors->ToString()) {
         die($this->DataSource->Errors->ToString());
     }
     #echo "tiene registro ".$this->HasRecord.' '.$this->DataSource->RecordsCount;
     $this->IsEmpty = !$this->HasRecord;
     $this->Attributes->Show();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $GridBlock = "Grid " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $GridBlock;
     #echo "<br>Esta Vacio? ".$this->IsEmpty;
     if (!$this->IsEmpty) {
         foreach ($this->Metadata->colsbyname as $col => $prop) {
             $this->ControlsVisible[$col] = $this->{$col}->Visible;
             #echo "<br>Esta visible ? $col ".$this->{$col}->Visible;
         }
         while ($this->ForceIteration || $this->RowNumber < $this->PageSize && ($this->HasRecord = $this->DataSource->has_next_record())) {
             // Parse Separator
             if ($this->RowNumber) {
                 $this->Attributes->Show();
                 $Tpl->parseto("Separator", true, "Row");
             }
             $this->RowNumber++;
             if ($this->HasRecord) {
                 $this->DataSource->next_record();
                 $this->DataSource->SetValues();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
             foreach ($this->Metadata->colsbyname as $col => $prop) {
                 $this->{$col}->SetValue($this->DataSource->{$col}->GetValue());
                 #echo '<br>'.$GridBlock." ".$col." ".$this->{$col}->getValue();
             }
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             foreach ($this->Metadata->colsbyname as $col => $prop) {
                 $this->{$col}->Show();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock;
             $Tpl->parse("Row", true);
         }
     }
     $errors = $this->GetErrors();
     if (strlen($errors)) {
         $Tpl->replaceblock("", $errors);
         $Tpl->block_path = $ParentPath;
         return;
     }
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
開發者ID:santo-s,項目名稱:do_sql.js,代碼行數:68,代碼來源:metadato_4.php

示例13: Show

 function Show()
 {
     $Tpl =& CCGetTemplate($this);
     global $CCSLocales;
     if (!$this->Visible) {
         return;
     }
     $this->RowNumber = 0;
     $this->DataSource->Parameters["expr109"] = ccgetuserid();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->Prepare();
     $this->DataSource->Open();
     $this->HasRecord = $this->DataSource->has_next_record();
     $this->IsEmpty = !$this->HasRecord;
     $this->Attributes->Show();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $GridBlock = "Grid " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $GridBlock;
     if (!$this->IsEmpty) {
         $this->ControlsVisible["status"] = $this->status->Visible;
         $this->ControlsVisible["appointment_time"] = $this->appointment_time->Visible;
         $this->ControlsVisible["surname"] = $this->surname->Visible;
         $this->ControlsVisible["other_names"] = $this->other_names->Visible;
         $this->ControlsVisible["age"] = $this->age->Visible;
         $this->ControlsVisible["sex"] = $this->sex->Visible;
         $this->ControlsVisible["occupation"] = $this->occupation->Visible;
         $this->ControlsVisible["patient_id"] = $this->patient_id->Visible;
         while ($this->ForceIteration || $this->RowNumber < $this->PageSize && ($this->HasRecord = $this->DataSource->has_next_record())) {
             $this->RowNumber++;
             if ($this->HasRecord) {
                 $this->DataSource->next_record();
                 $this->DataSource->SetValues();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
             $this->status->SetValue($this->DataSource->status->GetValue());
             $this->appointment_time->SetValue($this->DataSource->appointment_time->GetValue());
             $this->surname->SetValue($this->DataSource->surname->GetValue());
             $this->surname->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
             $this->surname->Parameters = CCAddParam($this->surname->Parameters, "patient_id", $this->DataSource->f("patient_id"));
             $this->surname->Parameters = CCAddParam($this->surname->Parameters, "result_id", $this->DataSource->f("result_id"));
             $this->other_names->SetValue($this->DataSource->other_names->GetValue());
             $this->age->SetValue($this->DataSource->age->GetValue());
             $this->sex->SetValue($this->DataSource->sex->GetValue());
             $this->occupation->SetValue($this->DataSource->occupation->GetValue());
             $this->patient_id->SetValue($this->DataSource->patient_id->GetValue());
             $this->patient_id->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
             $this->patient_id->Parameters = CCAddParam($this->patient_id->Parameters, "patient_id", $this->DataSource->f("patient_id"));
             $this->patient_id->Parameters = CCAddParam($this->patient_id->Parameters, "result_id", $this->DataSource->f("result_id"));
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->status->Show();
             $this->appointment_time->Show();
             $this->surname->Show();
             $this->other_names->Show();
             $this->age->Show();
             $this->sex->Show();
             $this->occupation->Show();
             $this->patient_id->Show();
             $Tpl->block_path = $ParentPath . "/" . $GridBlock;
             $Tpl->parse("Row", true);
         }
     } else {
         // Show NoRecords block if no records are found
         $this->Attributes->Show();
         $Tpl->parse("NoRecords", false);
     }
     $errors = $this->GetErrors();
     if (strlen($errors)) {
         $Tpl->replaceblock("", $errors);
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->status_result_occupation_TotalRecords->Show();
     $this->Sorter_status->Show();
     $this->Sorter_appointment_time->Show();
     $this->Sorter_surname->Show();
     $this->Sorter_other_names->Show();
     $this->Sorter_age->Show();
     $this->Sorter_sex->Show();
     $this->Sorter_occupation->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:89,代碼來源:index.php


注:本文中的CCGetTemplate函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。