コード例 #1
0
ファイル: cataloguesdelete.php プロジェクト: ahmarmahmood/top
 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // cat_id
     $this->cat_id->CellCssStyle = "white-space: nowrap;";
     // cat_name
     // cat_file
     // cat_date
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // cat_name
         $this->cat_name->ViewValue = $this->cat_name->CurrentValue;
         $this->cat_name->ViewCustomAttributes = "";
         // cat_file
         $this->cat_file->UploadPath = "/catalogues/";
         if (!ew_Empty($this->cat_file->Upload->DbValue)) {
             $this->cat_file->ViewValue = $this->cat_file->Upload->DbValue;
         } else {
             $this->cat_file->ViewValue = "";
         }
         $this->cat_file->ViewCustomAttributes = "";
         // cat_date
         $this->cat_date->ViewValue = $this->cat_date->CurrentValue;
         $this->cat_date->ViewValue = ew_FormatDateTime($this->cat_date->ViewValue, 5);
         $this->cat_date->ViewCustomAttributes = "";
         // cat_name
         $this->cat_name->LinkCustomAttributes = "";
         $this->cat_name->HrefValue = "";
         $this->cat_name->TooltipValue = "";
         // cat_file
         $this->cat_file->LinkCustomAttributes = "";
         $this->cat_file->UploadPath = "/catalogues/";
         if (!ew_Empty($this->cat_file->Upload->DbValue)) {
             $this->cat_file->HrefValue = ew_UploadPathEx(FALSE, $this->cat_file->UploadPath) . $this->cat_file->Upload->DbValue;
             // Add prefix/suffix
             $this->cat_file->LinkAttrs["target"] = "";
             // Add target
             if ($this->Export != "") {
                 $this->cat_file->HrefValue = ew_ConvertFullUrl($this->cat_file->HrefValue);
             }
         } else {
             $this->cat_file->HrefValue = "";
         }
         $this->cat_file->HrefValue2 = $this->cat_file->UploadPath . $this->cat_file->Upload->DbValue;
         $this->cat_file->TooltipValue = "";
         // cat_date
         $this->cat_date->LinkCustomAttributes = "";
         $this->cat_date->HrefValue = "";
         $this->cat_date->TooltipValue = "";
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
コード例 #2
0
 function RenderRow()
 {
     global $conn, $Security, $ItemDetails;
     // Call Row_Rendering event
     $ItemDetails->Row_Rendering();
     // Common render codes for all row types
     // ItemID
     $ItemDetails->ItemID->CellCssStyle = "";
     $ItemDetails->ItemID->CellCssClass = "";
     // Time_to_Table
     $ItemDetails->Time_to_Table->CellCssStyle = "";
     $ItemDetails->Time_to_Table->CellCssClass = "";
     // Level_Of_Difficulty
     $ItemDetails->Level_Of_Difficulty->CellCssStyle = "";
     $ItemDetails->Level_Of_Difficulty->CellCssClass = "";
     // Beverage_Pairing
     $ItemDetails->Beverage_Pairing->CellCssStyle = "";
     $ItemDetails->Beverage_Pairing->CellCssClass = "";
     // Vegetarian_Subsitution
     $ItemDetails->Vegetarian_Subsitution->CellCssStyle = "";
     $ItemDetails->Vegetarian_Subsitution->CellCssClass = "";
     // Calories
     $ItemDetails->Calories->CellCssStyle = "";
     $ItemDetails->Calories->CellCssClass = "";
     // Other
     $ItemDetails->Other->CellCssStyle = "";
     $ItemDetails->Other->CellCssClass = "";
     // Image
     $ItemDetails->Image->CellCssStyle = "";
     $ItemDetails->Image->CellCssClass = "";
     if ($ItemDetails->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // ItemID
         if (strval($ItemDetails->ItemID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `ItemName` FROM `Items` WHERE `ItemID` = " . ew_AdjustSql($ItemDetails->ItemID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `ItemName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $ItemDetails->ItemID->ViewValue = $rswrk->fields('ItemName');
                 $rswrk->Close();
             } else {
                 $ItemDetails->ItemID->ViewValue = $ItemDetails->ItemID->CurrentValue;
             }
         } else {
             $ItemDetails->ItemID->ViewValue = NULL;
         }
         $ItemDetails->ItemID->CssStyle = "";
         $ItemDetails->ItemID->CssClass = "";
         $ItemDetails->ItemID->ViewCustomAttributes = "";
         // Time_to_Table
         $ItemDetails->Time_to_Table->ViewValue = $ItemDetails->Time_to_Table->CurrentValue;
         $ItemDetails->Time_to_Table->CssStyle = "";
         $ItemDetails->Time_to_Table->CssClass = "";
         $ItemDetails->Time_to_Table->ViewCustomAttributes = "";
         // Level_Of_Difficulty
         $ItemDetails->Level_Of_Difficulty->ViewValue = $ItemDetails->Level_Of_Difficulty->CurrentValue;
         $ItemDetails->Level_Of_Difficulty->CssStyle = "";
         $ItemDetails->Level_Of_Difficulty->CssClass = "";
         $ItemDetails->Level_Of_Difficulty->ViewCustomAttributes = "";
         // Beverage_Pairing
         $ItemDetails->Beverage_Pairing->ViewValue = $ItemDetails->Beverage_Pairing->CurrentValue;
         $ItemDetails->Beverage_Pairing->CssStyle = "";
         $ItemDetails->Beverage_Pairing->CssClass = "";
         $ItemDetails->Beverage_Pairing->ViewCustomAttributes = "";
         // Vegetarian_Subsitution
         $ItemDetails->Vegetarian_Subsitution->ViewValue = $ItemDetails->Vegetarian_Subsitution->CurrentValue;
         $ItemDetails->Vegetarian_Subsitution->CssStyle = "";
         $ItemDetails->Vegetarian_Subsitution->CssClass = "";
         $ItemDetails->Vegetarian_Subsitution->ViewCustomAttributes = "";
         // Calories
         $ItemDetails->Calories->ViewValue = $ItemDetails->Calories->CurrentValue;
         $ItemDetails->Calories->CssStyle = "";
         $ItemDetails->Calories->CssClass = "";
         $ItemDetails->Calories->ViewCustomAttributes = "";
         // Other
         $ItemDetails->Other->ViewValue = $ItemDetails->Other->CurrentValue;
         $ItemDetails->Other->CssStyle = "";
         $ItemDetails->Other->CssClass = "";
         $ItemDetails->Other->ViewCustomAttributes = "";
         // Image
         if (!is_null($ItemDetails->Image->Upload->DbValue)) {
             $ItemDetails->Image->ViewValue = $ItemDetails->Image->Upload->DbValue;
         } else {
             $ItemDetails->Image->ViewValue = "";
         }
         $ItemDetails->Image->CssStyle = "";
         $ItemDetails->Image->CssClass = "";
         $ItemDetails->Image->ViewCustomAttributes = "";
         // ItemID
         $ItemDetails->ItemID->HrefValue = "";
         // Time_to_Table
         $ItemDetails->Time_to_Table->HrefValue = "";
         // Level_Of_Difficulty
         $ItemDetails->Level_Of_Difficulty->HrefValue = "";
         // Beverage_Pairing
         $ItemDetails->Beverage_Pairing->HrefValue = "";
         // Vegetarian_Subsitution
         $ItemDetails->Vegetarian_Subsitution->HrefValue = "";
         // Calories
         $ItemDetails->Calories->HrefValue = "";
         // Other
         $ItemDetails->Other->HrefValue = "";
         // Image
         if (!is_null($ItemDetails->Image->Upload->DbValue)) {
             $ItemDetails->Image->HrefValue = ew_UploadPathEx(FALSE, "../images/items/") . (!empty($ItemDetails->Image->ViewValue) ? $ItemDetails->Image->ViewValue : $ItemDetails->Image->CurrentValue);
             if ($ItemDetails->Export != "") {
                 $ItemDetails->Image->HrefValue = ew_ConvertFullUrl($ItemDetails->Image->HrefValue);
             }
         } else {
             $ItemDetails->Image->HrefValue = "";
         }
     }
     // Call Row Rendered event
     $ItemDetails->Row_Rendered();
 }
コード例 #3
0
ファイル: messagesinfo.php プロジェクト: Ombogo/new_api_chat
 function RenderListRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // id
     // account_id
     // image
     // uname
     // dtime
     // pnumber
     // message
     // m_type
     // M_url
     // id
     $this->id->ViewValue = $this->id->CurrentValue;
     $this->id->ViewCustomAttributes = "";
     // account_id
     $this->account_id->ViewValue = $this->account_id->CurrentValue;
     $this->account_id->ViewCustomAttributes = "";
     // image
     $this->image->ViewValue = $this->image->CurrentValue;
     $this->image->ImageWidth = 50;
     $this->image->ImageHeight = 50;
     $this->image->ImageAlt = $this->image->FldAlt();
     $this->image->ViewCustomAttributes = "";
     // uname
     $this->uname->ViewValue = $this->uname->CurrentValue;
     $this->uname->ViewCustomAttributes = "";
     // dtime
     $this->dtime->ViewValue = $this->dtime->CurrentValue;
     $this->dtime->ViewCustomAttributes = "";
     // pnumber
     $this->pnumber->ViewValue = $this->pnumber->CurrentValue;
     $this->pnumber->ViewCustomAttributes = "";
     // message
     $this->message->ViewValue = $this->message->CurrentValue;
     $this->message->ViewCustomAttributes = "";
     // m_type
     $this->m_type->ViewValue = $this->m_type->CurrentValue;
     $this->m_type->ViewCustomAttributes = "";
     // M_url
     if (strval($this->M_url->CurrentValue) != "") {
         switch ($this->M_url->CurrentValue) {
             case $this->M_url->FldTagValue(1):
                 $this->M_url->ViewValue = $this->M_url->FldTagCaption(1) != "" ? $this->M_url->FldTagCaption(1) : $this->M_url->CurrentValue;
                 break;
             case $this->M_url->FldTagValue(2):
                 $this->M_url->ViewValue = $this->M_url->FldTagCaption(2) != "" ? $this->M_url->FldTagCaption(2) : $this->M_url->CurrentValue;
                 break;
             default:
                 $this->M_url->ViewValue = $this->M_url->CurrentValue;
         }
     } else {
         $this->M_url->ViewValue = NULL;
     }
     $this->M_url->ViewCustomAttributes = "";
     // id
     $this->id->LinkCustomAttributes = "";
     $this->id->HrefValue = "";
     $this->id->TooltipValue = "";
     // account_id
     $this->account_id->LinkCustomAttributes = "";
     $this->account_id->HrefValue = "";
     $this->account_id->TooltipValue = "";
     // image
     $this->image->LinkCustomAttributes = "";
     if (!ew_Empty($this->image->CurrentValue)) {
         $this->image->HrefValue = !empty($this->image->ViewValue) ? $this->image->ViewValue : $this->image->CurrentValue;
         // Add prefix/suffix
         $this->image->LinkAttrs["target"] = "";
         // Add target
         if ($this->Export != "") {
             $this->image->HrefValue = ew_ConvertFullUrl($this->image->HrefValue);
         }
     } else {
         $this->image->HrefValue = "";
     }
     if ($this->Export == "") {
         $this->image->TooltipValue = $this->pnumber->ViewValue != "" ? $this->pnumber->ViewValue : $this->pnumber->CurrentValue;
         $this->image->TooltipWidth = 50;
         if ($this->image->HrefValue == "") {
             $this->image->HrefValue = "javascript:void(0);";
         }
         $this->image->LinkAttrs["class"] = "ewTooltipLink";
         $this->image->LinkAttrs["data-tooltip-id"] = "tt_messages_x" . @$this->RowCnt . "_image";
         $this->image->LinkAttrs["data-tooltip-width"] = $this->image->TooltipWidth;
         $this->image->LinkAttrs["data-placement"] = EW_CSS_FLIP ? "left" : "right";
     }
     // uname
     $this->uname->LinkCustomAttributes = "";
     $this->uname->HrefValue = "";
     $this->uname->TooltipValue = "";
     // dtime
     $this->dtime->LinkCustomAttributes = "";
     $this->dtime->HrefValue = "";
     $this->dtime->TooltipValue = "";
     // pnumber
     $this->pnumber->LinkCustomAttributes = "";
     $this->pnumber->HrefValue = "";
     $this->pnumber->TooltipValue = "";
     // message
     $this->message->LinkCustomAttributes = "";
     $this->message->HrefValue = "";
     $this->message->TooltipValue = "";
     // m_type
     $this->m_type->LinkCustomAttributes = "";
     $this->m_type->HrefValue = "";
     $this->m_type->TooltipValue = "";
     // M_url
     $this->M_url->LinkCustomAttributes = "";
     $this->M_url->HrefValue = "";
     $this->M_url->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }
コード例 #4
0
ファイル: exam_data_view.php プロジェクト: airfox7412/ps01
 function RenderRow()
 {
     global $conn, $Security, $exam_data;
     // Call Row_Rendering event
     $exam_data->Row_Rendering();
     // Common render codes for all row types
     // ExamDataNo
     $exam_data->ExamDataNo->CellCssStyle = "";
     $exam_data->ExamDataNo->CellCssClass = "";
     // AccessionNumber
     $exam_data->AccessionNumber->CellCssStyle = "";
     $exam_data->AccessionNumber->CellCssClass = "";
     // PatientMainNo
     $exam_data->PatientMainNo->CellCssStyle = "";
     $exam_data->PatientMainNo->CellCssClass = "";
     // PatientID
     $exam_data->PatientID->CellCssStyle = "";
     $exam_data->PatientID->CellCssClass = "";
     // InstitutionNo
     $exam_data->InstitutionNo->CellCssStyle = "";
     $exam_data->InstitutionNo->CellCssClass = "";
     // ImageDetailNo
     $exam_data->ImageDetailNo->CellCssStyle = "";
     $exam_data->ImageDetailNo->CellCssClass = "";
     // PatientKindNo
     $exam_data->PatientKindNo->CellCssStyle = "";
     $exam_data->PatientKindNo->CellCssClass = "";
     // PatientSubKindNo
     $exam_data->PatientSubKindNo->CellCssStyle = "";
     $exam_data->PatientSubKindNo->CellCssClass = "";
     // PatientTypeNo
     $exam_data->PatientTypeNo->CellCssStyle = "";
     $exam_data->PatientTypeNo->CellCssClass = "";
     // PatientRoom
     $exam_data->PatientRoom->CellCssStyle = "";
     $exam_data->PatientRoom->CellCssClass = "";
     // DepartmentNo
     $exam_data->DepartmentNo->CellCssStyle = "";
     $exam_data->DepartmentNo->CellCssClass = "";
     // DepartmentName
     $exam_data->DepartmentName->CellCssStyle = "";
     $exam_data->DepartmentName->CellCssClass = "";
     // Soap
     $exam_data->Soap->CellCssStyle = "";
     $exam_data->Soap->CellCssClass = "";
     // RequestDoctorID
     $exam_data->RequestDoctorID->CellCssStyle = "";
     $exam_data->RequestDoctorID->CellCssClass = "";
     // CodeValue
     $exam_data->CodeValue->CellCssStyle = "";
     $exam_data->CodeValue->CellCssClass = "";
     // SpecialExamID
     $exam_data->SpecialExamID->CellCssStyle = "";
     $exam_data->SpecialExamID->CellCssClass = "";
     // SpecialExamName
     $exam_data->SpecialExamName->CellCssStyle = "";
     $exam_data->SpecialExamName->CellCssClass = "";
     // SpecialExamDate
     $exam_data->SpecialExamDate->CellCssStyle = "";
     $exam_data->SpecialExamDate->CellCssClass = "";
     // ExamDate
     $exam_data->ExamDate->CellCssStyle = "";
     $exam_data->ExamDate->CellCssClass = "";
     // ExamTime
     $exam_data->ExamTime->CellCssStyle = "";
     $exam_data->ExamTime->CellCssClass = "";
     // LogDate
     $exam_data->LogDate->CellCssStyle = "";
     $exam_data->LogDate->CellCssClass = "";
     // ModifyUser
     $exam_data->ModifyUser->CellCssStyle = "";
     $exam_data->ModifyUser->CellCssClass = "";
     // ModifyDate
     $exam_data->ModifyDate->CellCssStyle = "";
     $exam_data->ModifyDate->CellCssClass = "";
     // CreatePart
     $exam_data->CreatePart->CellCssStyle = "";
     $exam_data->CreatePart->CellCssClass = "";
     // ModifyPart
     $exam_data->ModifyPart->CellCssStyle = "";
     $exam_data->ModifyPart->CellCssClass = "";
     // Status
     $exam_data->Status->CellCssStyle = "";
     $exam_data->Status->CellCssClass = "";
     if ($exam_data->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // ExamDataNo
         $exam_data->ExamDataNo->ViewValue = $exam_data->ExamDataNo->CurrentValue;
         $exam_data->ExamDataNo->CssStyle = "";
         $exam_data->ExamDataNo->CssClass = "";
         $exam_data->ExamDataNo->ViewCustomAttributes = "";
         // AccessionNumber
         $exam_data->AccessionNumber->ViewValue = $exam_data->AccessionNumber->CurrentValue;
         $exam_data->AccessionNumber->CssStyle = "";
         $exam_data->AccessionNumber->CssClass = "";
         $exam_data->AccessionNumber->ViewCustomAttributes = "";
         // PatientMainNo
         $exam_data->PatientMainNo->ViewValue = $exam_data->PatientMainNo->CurrentValue;
         $exam_data->PatientMainNo->CssStyle = "";
         $exam_data->PatientMainNo->CssClass = "";
         $exam_data->PatientMainNo->ViewCustomAttributes = "";
         // PatientID
         $exam_data->PatientID->ViewValue = $exam_data->PatientID->CurrentValue;
         $exam_data->PatientID->CssStyle = "";
         $exam_data->PatientID->CssClass = "";
         $exam_data->PatientID->ViewCustomAttributes = "";
         // InstitutionNo
         $exam_data->InstitutionNo->ViewValue = $exam_data->InstitutionNo->CurrentValue;
         $exam_data->InstitutionNo->CssStyle = "";
         $exam_data->InstitutionNo->CssClass = "";
         $exam_data->InstitutionNo->ViewCustomAttributes = "";
         // ImageDetailNo
         $exam_data->ImageDetailNo->ViewValue = $exam_data->ImageDetailNo->CurrentValue;
         $exam_data->ImageDetailNo->CssStyle = "";
         $exam_data->ImageDetailNo->CssClass = "";
         $exam_data->ImageDetailNo->ViewCustomAttributes = "";
         // PatientKindNo
         $exam_data->PatientKindNo->ViewValue = $exam_data->PatientKindNo->CurrentValue;
         $exam_data->PatientKindNo->CssStyle = "";
         $exam_data->PatientKindNo->CssClass = "";
         $exam_data->PatientKindNo->ViewCustomAttributes = "";
         // PatientSubKindNo
         $exam_data->PatientSubKindNo->ViewValue = $exam_data->PatientSubKindNo->CurrentValue;
         $exam_data->PatientSubKindNo->CssStyle = "";
         $exam_data->PatientSubKindNo->CssClass = "";
         $exam_data->PatientSubKindNo->ViewCustomAttributes = "";
         // PatientTypeNo
         $exam_data->PatientTypeNo->ViewValue = $exam_data->PatientTypeNo->CurrentValue;
         $exam_data->PatientTypeNo->CssStyle = "";
         $exam_data->PatientTypeNo->CssClass = "";
         $exam_data->PatientTypeNo->ViewCustomAttributes = "";
         // PatientRoom
         $exam_data->PatientRoom->ViewValue = $exam_data->PatientRoom->CurrentValue;
         $exam_data->PatientRoom->CssStyle = "";
         $exam_data->PatientRoom->CssClass = "";
         $exam_data->PatientRoom->ViewCustomAttributes = "";
         // DepartmentNo
         $exam_data->DepartmentNo->ViewValue = $exam_data->DepartmentNo->CurrentValue;
         $exam_data->DepartmentNo->CssStyle = "";
         $exam_data->DepartmentNo->CssClass = "";
         $exam_data->DepartmentNo->ViewCustomAttributes = "";
         // DepartmentName
         $exam_data->DepartmentName->ViewValue = $exam_data->DepartmentName->CurrentValue;
         $exam_data->DepartmentName->CssStyle = "";
         $exam_data->DepartmentName->CssClass = "";
         $exam_data->DepartmentName->ViewCustomAttributes = "";
         // Soap
         if (!is_null($exam_data->Soap->Upload->DbValue)) {
             $exam_data->Soap->ViewValue = "Soap";
         } else {
             $exam_data->Soap->ViewValue = "";
         }
         $exam_data->Soap->CssStyle = "";
         $exam_data->Soap->CssClass = "";
         $exam_data->Soap->ViewCustomAttributes = "";
         // RequestDoctorID
         $exam_data->RequestDoctorID->ViewValue = $exam_data->RequestDoctorID->CurrentValue;
         $exam_data->RequestDoctorID->CssStyle = "";
         $exam_data->RequestDoctorID->CssClass = "";
         $exam_data->RequestDoctorID->ViewCustomAttributes = "";
         // CodeValue
         $exam_data->CodeValue->ViewValue = $exam_data->CodeValue->CurrentValue;
         $exam_data->CodeValue->CssStyle = "";
         $exam_data->CodeValue->CssClass = "";
         $exam_data->CodeValue->ViewCustomAttributes = "";
         // SpecialExamID
         $exam_data->SpecialExamID->ViewValue = $exam_data->SpecialExamID->CurrentValue;
         $exam_data->SpecialExamID->CssStyle = "";
         $exam_data->SpecialExamID->CssClass = "";
         $exam_data->SpecialExamID->ViewCustomAttributes = "";
         // SpecialExamName
         $exam_data->SpecialExamName->ViewValue = $exam_data->SpecialExamName->CurrentValue;
         $exam_data->SpecialExamName->CssStyle = "";
         $exam_data->SpecialExamName->CssClass = "";
         $exam_data->SpecialExamName->ViewCustomAttributes = "";
         // SpecialExamDate
         $exam_data->SpecialExamDate->ViewValue = $exam_data->SpecialExamDate->CurrentValue;
         $exam_data->SpecialExamDate->ViewValue = ew_FormatDateTime($exam_data->SpecialExamDate->ViewValue, 5);
         $exam_data->SpecialExamDate->CssStyle = "";
         $exam_data->SpecialExamDate->CssClass = "";
         $exam_data->SpecialExamDate->ViewCustomAttributes = "";
         // ExamDate
         $exam_data->ExamDate->ViewValue = $exam_data->ExamDate->CurrentValue;
         $exam_data->ExamDate->ViewValue = ew_FormatDateTime($exam_data->ExamDate->ViewValue, 5);
         $exam_data->ExamDate->CssStyle = "";
         $exam_data->ExamDate->CssClass = "";
         $exam_data->ExamDate->ViewCustomAttributes = "";
         // ExamTime
         $exam_data->ExamTime->ViewValue = $exam_data->ExamTime->CurrentValue;
         $exam_data->ExamTime->ViewValue = ew_FormatDateTime($exam_data->ExamTime->ViewValue, 4);
         $exam_data->ExamTime->CssStyle = "";
         $exam_data->ExamTime->CssClass = "";
         $exam_data->ExamTime->ViewCustomAttributes = "";
         // LogDate
         $exam_data->LogDate->ViewValue = $exam_data->LogDate->CurrentValue;
         $exam_data->LogDate->ViewValue = ew_FormatDateTime($exam_data->LogDate->ViewValue, 5);
         $exam_data->LogDate->CssStyle = "";
         $exam_data->LogDate->CssClass = "";
         $exam_data->LogDate->ViewCustomAttributes = "";
         // ModifyUser
         $exam_data->ModifyUser->ViewValue = $exam_data->ModifyUser->CurrentValue;
         $exam_data->ModifyUser->CssStyle = "";
         $exam_data->ModifyUser->CssClass = "";
         $exam_data->ModifyUser->ViewCustomAttributes = "";
         // ModifyDate
         $exam_data->ModifyDate->ViewValue = $exam_data->ModifyDate->CurrentValue;
         $exam_data->ModifyDate->ViewValue = ew_FormatDateTime($exam_data->ModifyDate->ViewValue, 5);
         $exam_data->ModifyDate->CssStyle = "";
         $exam_data->ModifyDate->CssClass = "";
         $exam_data->ModifyDate->ViewCustomAttributes = "";
         // CreatePart
         $exam_data->CreatePart->ViewValue = $exam_data->CreatePart->CurrentValue;
         $exam_data->CreatePart->CssStyle = "";
         $exam_data->CreatePart->CssClass = "";
         $exam_data->CreatePart->ViewCustomAttributes = "";
         // ModifyPart
         $exam_data->ModifyPart->ViewValue = $exam_data->ModifyPart->CurrentValue;
         $exam_data->ModifyPart->CssStyle = "";
         $exam_data->ModifyPart->CssClass = "";
         $exam_data->ModifyPart->ViewCustomAttributes = "";
         // Status
         $exam_data->Status->ViewValue = $exam_data->Status->CurrentValue;
         $exam_data->Status->CssStyle = "";
         $exam_data->Status->CssClass = "";
         $exam_data->Status->ViewCustomAttributes = "";
         // ExamDataNo
         $exam_data->ExamDataNo->HrefValue = "";
         // AccessionNumber
         $exam_data->AccessionNumber->HrefValue = "";
         // PatientMainNo
         $exam_data->PatientMainNo->HrefValue = "";
         // PatientID
         $exam_data->PatientID->HrefValue = "";
         // InstitutionNo
         $exam_data->InstitutionNo->HrefValue = "";
         // ImageDetailNo
         $exam_data->ImageDetailNo->HrefValue = "";
         // PatientKindNo
         $exam_data->PatientKindNo->HrefValue = "";
         // PatientSubKindNo
         $exam_data->PatientSubKindNo->HrefValue = "";
         // PatientTypeNo
         $exam_data->PatientTypeNo->HrefValue = "";
         // PatientRoom
         $exam_data->PatientRoom->HrefValue = "";
         // DepartmentNo
         $exam_data->DepartmentNo->HrefValue = "";
         // DepartmentName
         $exam_data->DepartmentName->HrefValue = "";
         // Soap
         if (!is_null($exam_data->Soap->Upload->DbValue)) {
             $exam_data->Soap->HrefValue = "exam_data_soap__bv.php?ExamDataNo=" . $exam_data->ExamDataNo->CurrentValue;
             if ($exam_data->Export != "") {
                 $exam_data->Soap->HrefValue = ew_ConvertFullUrl($exam_data->Soap->HrefValue);
             }
         } else {
             $exam_data->Soap->HrefValue = "";
         }
         // RequestDoctorID
         $exam_data->RequestDoctorID->HrefValue = "";
         // CodeValue
         $exam_data->CodeValue->HrefValue = "";
         // SpecialExamID
         $exam_data->SpecialExamID->HrefValue = "";
         // SpecialExamName
         $exam_data->SpecialExamName->HrefValue = "";
         // SpecialExamDate
         $exam_data->SpecialExamDate->HrefValue = "";
         // ExamDate
         $exam_data->ExamDate->HrefValue = "";
         // ExamTime
         $exam_data->ExamTime->HrefValue = "";
         // LogDate
         $exam_data->LogDate->HrefValue = "";
         // ModifyUser
         $exam_data->ModifyUser->HrefValue = "";
         // ModifyDate
         $exam_data->ModifyDate->HrefValue = "";
         // CreatePart
         $exam_data->CreatePart->HrefValue = "";
         // ModifyPart
         $exam_data->ModifyPart->HrefValue = "";
         // Status
         $exam_data->Status->HrefValue = "";
     }
     // Call Row Rendered event
     $exam_data->Row_Rendered();
 }
コード例 #5
0
 function RenderRow()
 {
     global $conn, $Security, $Items;
     // Call Row_Rendering event
     $Items->Row_Rendering();
     // Common render codes for all row types
     // ItemID
     $Items->ItemID->CellCssStyle = "";
     $Items->ItemID->CellCssClass = "";
     // MenuID
     $Items->MenuID->CellCssStyle = "";
     $Items->MenuID->CellCssClass = "";
     // ItemName
     $Items->ItemName->CellCssStyle = "";
     $Items->ItemName->CellCssClass = "";
     // Description
     $Items->Description->CellCssStyle = "";
     $Items->Description->CellCssClass = "";
     // Price
     $Items->Price->CellCssStyle = "";
     $Items->Price->CellCssClass = "";
     // Image
     $Items->Image->CellCssStyle = "";
     $Items->Image->CellCssClass = "";
     // Vegetarian
     $Items->Vegetarian->CellCssStyle = "";
     $Items->Vegetarian->CellCssClass = "";
     // Vegetarian_Price
     $Items->Vegetarian_Price->CellCssStyle = "";
     $Items->Vegetarian_Price->CellCssClass = "";
     // Color
     $Items->Color->CellCssStyle = "";
     $Items->Color->CellCssClass = "";
     // Sequence
     $Items->Sequence->CellCssStyle = "";
     $Items->Sequence->CellCssClass = "";
     // PDF
     $Items->PDF->CellCssStyle = "";
     $Items->PDF->CellCssClass = "";
     // Active
     $Items->Active->CellCssStyle = "";
     $Items->Active->CellCssClass = "";
     if ($Items->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // ItemID
         $Items->ItemID->ViewValue = $Items->ItemID->CurrentValue;
         $Items->ItemID->CssStyle = "";
         $Items->ItemID->CssClass = "";
         $Items->ItemID->ViewCustomAttributes = "";
         // MenuID
         if (strval($Items->MenuID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `MenuName` FROM `Menus` WHERE `MenuID` = " . ew_AdjustSql($Items->MenuID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `MenuName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $Items->MenuID->ViewValue = $rswrk->fields('MenuName');
                 $rswrk->Close();
             } else {
                 $Items->MenuID->ViewValue = $Items->MenuID->CurrentValue;
             }
         } else {
             $Items->MenuID->ViewValue = NULL;
         }
         $Items->MenuID->CssStyle = "";
         $Items->MenuID->CssClass = "";
         $Items->MenuID->ViewCustomAttributes = "";
         // ItemName
         $Items->ItemName->ViewValue = $Items->ItemName->CurrentValue;
         $Items->ItemName->CssStyle = "";
         $Items->ItemName->CssClass = "";
         $Items->ItemName->ViewCustomAttributes = "";
         // Description
         $Items->Description->ViewValue = ew_TruncateMemo($Items->Description->CurrentValue, 5);
         if (!is_null($Items->Description->ViewValue)) {
             $Items->Description->ViewValue = str_replace("\n", "<br>", $Items->Description->ViewValue);
         }
         $Items->Description->CssStyle = "";
         $Items->Description->CssClass = "";
         $Items->Description->ViewCustomAttributes = "";
         // Price
         $Items->Price->ViewValue = $Items->Price->CurrentValue;
         $Items->Price->ViewValue = ew_FormatCurrency($Items->Price->ViewValue, 2, -2, 0, -2);
         $Items->Price->CssStyle = "";
         $Items->Price->CssClass = "";
         $Items->Price->ViewCustomAttributes = "";
         // Image
         if (!is_null($Items->Image->Upload->DbValue)) {
             $Items->Image->ViewValue = $Items->Image->Upload->DbValue;
             $Items->Image->ImageAlt = "";
         } else {
             $Items->Image->ViewValue = "";
         }
         $Items->Image->CssStyle = "";
         $Items->Image->CssClass = "";
         $Items->Image->ViewCustomAttributes = "";
         // Vegetarian
         if (strval($Items->Vegetarian->CurrentValue) != "") {
             switch ($Items->Vegetarian->CurrentValue) {
                 case "0":
                     $Items->Vegetarian->ViewValue = "No";
                     break;
                 case "1":
                     $Items->Vegetarian->ViewValue = "Yes";
                     break;
                 default:
                     $Items->Vegetarian->ViewValue = $Items->Vegetarian->CurrentValue;
             }
         } else {
             $Items->Vegetarian->ViewValue = NULL;
         }
         $Items->Vegetarian->CssStyle = "";
         $Items->Vegetarian->CssClass = "";
         $Items->Vegetarian->ViewCustomAttributes = "";
         // Vegetarian_Price
         $Items->Vegetarian_Price->ViewValue = $Items->Vegetarian_Price->CurrentValue;
         $Items->Vegetarian_Price->ViewValue = ew_FormatCurrency($Items->Vegetarian_Price->ViewValue, 2, -2, 0, -2);
         $Items->Vegetarian_Price->CssStyle = "";
         $Items->Vegetarian_Price->CssClass = "";
         $Items->Vegetarian_Price->ViewCustomAttributes = "";
         // Color
         $Items->Color->ViewValue = $Items->Color->CurrentValue;
         $Items->Color->CssStyle = "";
         $Items->Color->CssClass = "";
         $Items->Color->ViewCustomAttributes = "";
         // Sequence
         $Items->Sequence->ViewValue = $Items->Sequence->CurrentValue;
         $Items->Sequence->CssStyle = "";
         $Items->Sequence->CssClass = "";
         $Items->Sequence->ViewCustomAttributes = "";
         // PDF
         if (!is_null($Items->PDF->Upload->DbValue)) {
             $Items->PDF->ViewValue = $Items->PDF->Upload->DbValue;
         } else {
             $Items->PDF->ViewValue = "";
         }
         $Items->PDF->CssStyle = "";
         $Items->PDF->CssClass = "";
         $Items->PDF->ViewCustomAttributes = "";
         // Active
         if (strval($Items->Active->CurrentValue) != "") {
             switch ($Items->Active->CurrentValue) {
                 case "0":
                     $Items->Active->ViewValue = "No";
                     break;
                 case "1":
                     $Items->Active->ViewValue = "Yes";
                     break;
                 default:
                     $Items->Active->ViewValue = $Items->Active->CurrentValue;
             }
         } else {
             $Items->Active->ViewValue = NULL;
         }
         $Items->Active->CssStyle = "";
         $Items->Active->CssClass = "";
         $Items->Active->ViewCustomAttributes = "";
         // ItemID
         $Items->ItemID->HrefValue = "";
         // MenuID
         $Items->MenuID->HrefValue = "";
         // ItemName
         $Items->ItemName->HrefValue = "";
         // Description
         $Items->Description->HrefValue = "";
         // Price
         $Items->Price->HrefValue = "";
         // Image
         $Items->Image->HrefValue = "";
         // Vegetarian
         $Items->Vegetarian->HrefValue = "";
         // Vegetarian_Price
         $Items->Vegetarian_Price->HrefValue = "";
         // Color
         $Items->Color->HrefValue = "";
         // Sequence
         $Items->Sequence->HrefValue = "";
         // PDF
         if (!is_null($Items->PDF->Upload->DbValue)) {
             $Items->PDF->HrefValue = ew_UploadPathEx(FALSE, "../recipes/") . (!empty($Items->PDF->ViewValue) ? $Items->PDF->ViewValue : $Items->PDF->CurrentValue);
             if ($Items->Export != "") {
                 $Items->PDF->HrefValue = ew_ConvertFullUrl($Items->PDF->HrefValue);
             }
         } else {
             $Items->PDF->HrefValue = "";
         }
         // Active
         $Items->Active->HrefValue = "";
     }
     // Call Row Rendered event
     $Items->Row_Rendered();
 }
コード例 #6
0
 function RenderRow()
 {
     global $Security, $Language, $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // memberID
     // name
     // email
     // joined
     // facebook
     // twitter
     // twitch
     // skype
     // birthday
     // profession
     // game_type
     // division
     // has_expansion
     // notes
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // memberID
         $this->memberID->ViewValue = $this->memberID->CurrentValue;
         $this->memberID->ViewCustomAttributes = "";
         // name
         $this->name->ViewValue = $this->name->CurrentValue;
         $this->name->ViewCustomAttributes = "";
         // email
         $this->_email->ViewValue = $this->_email->CurrentValue;
         $this->_email->ViewCustomAttributes = "";
         // joined
         $this->joined->ViewValue = $this->joined->CurrentValue;
         $this->joined->ViewValue = ew_FormatDateTime($this->joined->ViewValue, undefined);
         $this->joined->ViewCustomAttributes = "";
         // facebook
         $this->facebook->ViewValue = $this->facebook->CurrentValue;
         $this->facebook->ViewCustomAttributes = "";
         // twitter
         $this->twitter->ViewValue = $this->twitter->CurrentValue;
         $this->twitter->ViewCustomAttributes = "";
         // twitch
         $this->twitch->ViewValue = $this->twitch->CurrentValue;
         $this->twitch->ViewCustomAttributes = "";
         // skype
         $this->skype->ViewValue = $this->skype->CurrentValue;
         $this->skype->ViewCustomAttributes = "";
         // birthday
         $this->birthday->ViewValue = $this->birthday->CurrentValue;
         $this->birthday->ViewValue = ew_FormatDateTime($this->birthday->ViewValue, 5);
         $this->birthday->ViewCustomAttributes = "";
         // profession
         if (strval($this->profession->CurrentValue) != "") {
             $this->profession->ViewValue = "";
             $arwrk = explode(",", strval($this->profession->CurrentValue));
             $cnt = count($arwrk);
             for ($ari = 0; $ari < $cnt; $ari++) {
                 $this->profession->ViewValue .= $this->profession->OptionCaption(trim($arwrk[$ari]));
                 if ($ari < $cnt - 1) {
                     $this->profession->ViewValue .= ew_ViewOptionSeparator($ari);
                 }
             }
         } else {
             $this->profession->ViewValue = NULL;
         }
         $this->profession->ViewCustomAttributes = "";
         // game_type
         if (strval($this->game_type->CurrentValue) != "") {
             $this->game_type->ViewValue = "";
             $arwrk = explode(",", strval($this->game_type->CurrentValue));
             $cnt = count($arwrk);
             for ($ari = 0; $ari < $cnt; $ari++) {
                 $this->game_type->ViewValue .= $this->game_type->OptionCaption(trim($arwrk[$ari]));
                 if ($ari < $cnt - 1) {
                     $this->game_type->ViewValue .= ew_ViewOptionSeparator($ari);
                 }
             }
         } else {
             $this->game_type->ViewValue = NULL;
         }
         $this->game_type->ViewCustomAttributes = "";
         // division
         if (strval($this->division->CurrentValue) != "") {
             $this->division->ViewValue = "";
             $arwrk = explode(",", strval($this->division->CurrentValue));
             $cnt = count($arwrk);
             for ($ari = 0; $ari < $cnt; $ari++) {
                 $this->division->ViewValue .= $this->division->OptionCaption(trim($arwrk[$ari]));
                 if ($ari < $cnt - 1) {
                     $this->division->ViewValue .= ew_ViewOptionSeparator($ari);
                 }
             }
         } else {
             $this->division->ViewValue = NULL;
         }
         $this->division->ViewCustomAttributes = "";
         // has_expansion
         if (strval($this->has_expansion->CurrentValue) != "") {
             $this->has_expansion->ViewValue = $this->has_expansion->OptionCaption($this->has_expansion->CurrentValue);
         } else {
             $this->has_expansion->ViewValue = NULL;
         }
         $this->has_expansion->ViewCustomAttributes = "";
         // notes
         $this->notes->ViewValue = $this->notes->CurrentValue;
         $this->notes->ViewCustomAttributes = "";
         // name
         $this->name->LinkCustomAttributes = "";
         $this->name->HrefValue = "";
         $this->name->TooltipValue = "";
         // email
         $this->_email->LinkCustomAttributes = "";
         $this->_email->HrefValue = "";
         $this->_email->TooltipValue = "";
         // joined
         $this->joined->LinkCustomAttributes = "";
         $this->joined->HrefValue = "";
         $this->joined->TooltipValue = "";
         // facebook
         $this->facebook->LinkCustomAttributes = "";
         if (!ew_Empty($this->facebook->CurrentValue)) {
             $this->facebook->HrefValue = !empty($this->facebook->ViewValue) ? ew_RemoveHtml($this->facebook->ViewValue) : $this->facebook->CurrentValue;
             // Add prefix/suffix
             $this->facebook->LinkAttrs["target"] = "_blank";
             // Add target
             if ($this->Export != "") {
                 $this->facebook->HrefValue = ew_ConvertFullUrl($this->facebook->HrefValue);
             }
         } else {
             $this->facebook->HrefValue = "";
         }
         $this->facebook->TooltipValue = "";
         // twitter
         $this->twitter->LinkCustomAttributes = "";
         if (!ew_Empty($this->twitter->CurrentValue)) {
             $this->twitter->HrefValue = !empty($this->twitter->ViewValue) ? ew_RemoveHtml($this->twitter->ViewValue) : $this->twitter->CurrentValue;
             // Add prefix/suffix
             $this->twitter->LinkAttrs["target"] = "_blank";
             // Add target
             if ($this->Export != "") {
                 $this->twitter->HrefValue = ew_ConvertFullUrl($this->twitter->HrefValue);
             }
         } else {
             $this->twitter->HrefValue = "";
         }
         $this->twitter->TooltipValue = "";
         // twitch
         $this->twitch->LinkCustomAttributes = "";
         if (!ew_Empty($this->twitch->CurrentValue)) {
             $this->twitch->HrefValue = !empty($this->twitch->ViewValue) ? ew_RemoveHtml($this->twitch->ViewValue) : $this->twitch->CurrentValue;
             // Add prefix/suffix
             $this->twitch->LinkAttrs["target"] = "_blank";
             // Add target
             if ($this->Export != "") {
                 $this->twitch->HrefValue = ew_ConvertFullUrl($this->twitch->HrefValue);
             }
         } else {
             $this->twitch->HrefValue = "";
         }
         $this->twitch->TooltipValue = "";
         // skype
         $this->skype->LinkCustomAttributes = "";
         $this->skype->HrefValue = "";
         $this->skype->TooltipValue = "";
         // birthday
         $this->birthday->LinkCustomAttributes = "";
         $this->birthday->HrefValue = "";
         $this->birthday->TooltipValue = "";
         // profession
         $this->profession->LinkCustomAttributes = "";
         $this->profession->HrefValue = "";
         $this->profession->TooltipValue = "";
         // game_type
         $this->game_type->LinkCustomAttributes = "";
         $this->game_type->HrefValue = "";
         $this->game_type->TooltipValue = "";
         // division
         $this->division->LinkCustomAttributes = "";
         $this->division->HrefValue = "";
         $this->division->TooltipValue = "";
         // has_expansion
         $this->has_expansion->LinkCustomAttributes = "";
         $this->has_expansion->HrefValue = "";
         $this->has_expansion->TooltipValue = "";
         // notes
         $this->notes->LinkCustomAttributes = "";
         if (!ew_Empty($this->notes->CurrentValue)) {
             $this->notes->HrefValue = !empty($this->notes->ViewValue) ? ew_RemoveHtml($this->notes->ViewValue) : $this->notes->CurrentValue;
             // Add prefix/suffix
             $this->notes->LinkAttrs["target"] = "";
             // Add target
             if ($this->Export != "") {
                 $this->notes->HrefValue = ew_ConvertFullUrl($this->notes->HrefValue);
             }
         } else {
             $this->notes->HrefValue = "";
         }
         $this->notes->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_EDIT) {
         // Edit row
         // name
         $this->name->EditAttrs["class"] = "form-control";
         $this->name->EditCustomAttributes = "";
         $this->name->EditValue = ew_HtmlEncode($this->name->CurrentValue);
         $this->name->PlaceHolder = ew_RemoveHtml($this->name->FldCaption());
         // email
         $this->_email->EditAttrs["class"] = "form-control";
         $this->_email->EditCustomAttributes = "";
         $this->_email->EditValue = ew_HtmlEncode($this->_email->CurrentValue);
         $this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldCaption());
         // joined
         // facebook
         $this->facebook->EditAttrs["class"] = "form-control";
         $this->facebook->EditCustomAttributes = "";
         $this->facebook->EditValue = ew_HtmlEncode($this->facebook->CurrentValue);
         $this->facebook->PlaceHolder = ew_RemoveHtml($this->facebook->FldCaption());
         // twitter
         $this->twitter->EditAttrs["class"] = "form-control";
         $this->twitter->EditCustomAttributes = "";
         $this->twitter->EditValue = ew_HtmlEncode($this->twitter->CurrentValue);
         $this->twitter->PlaceHolder = ew_RemoveHtml($this->twitter->FldCaption());
         // twitch
         $this->twitch->EditAttrs["class"] = "form-control";
         $this->twitch->EditCustomAttributes = "";
         $this->twitch->EditValue = ew_HtmlEncode($this->twitch->CurrentValue);
         $this->twitch->PlaceHolder = ew_RemoveHtml($this->twitch->FldCaption());
         // skype
         $this->skype->EditAttrs["class"] = "form-control";
         $this->skype->EditCustomAttributes = "";
         $this->skype->EditValue = ew_HtmlEncode($this->skype->CurrentValue);
         $this->skype->PlaceHolder = ew_RemoveHtml($this->skype->FldCaption());
         // birthday
         $this->birthday->EditAttrs["class"] = "form-control";
         $this->birthday->EditCustomAttributes = "";
         $this->birthday->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->birthday->CurrentValue, 5));
         $this->birthday->PlaceHolder = ew_RemoveHtml($this->birthday->FldCaption());
         // profession
         $this->profession->EditAttrs["class"] = "form-control";
         $this->profession->EditCustomAttributes = "";
         $this->profession->EditValue = $this->profession->Options(FALSE);
         // game_type
         $this->game_type->EditCustomAttributes = "";
         $this->game_type->EditValue = $this->game_type->Options(FALSE);
         // division
         $this->division->EditCustomAttributes = "";
         $this->division->EditValue = $this->division->Options(FALSE);
         // has_expansion
         $this->has_expansion->EditCustomAttributes = "";
         $this->has_expansion->EditValue = $this->has_expansion->Options(TRUE);
         // notes
         $this->notes->EditAttrs["class"] = "form-control";
         $this->notes->EditCustomAttributes = "";
         $this->notes->EditValue = ew_HtmlEncode($this->notes->CurrentValue);
         $this->notes->PlaceHolder = ew_RemoveHtml($this->notes->FldCaption());
         // Edit refer script
         // name
         $this->name->LinkCustomAttributes = "";
         $this->name->HrefValue = "";
         // email
         $this->_email->LinkCustomAttributes = "";
         $this->_email->HrefValue = "";
         // joined
         $this->joined->LinkCustomAttributes = "";
         $this->joined->HrefValue = "";
         // facebook
         $this->facebook->LinkCustomAttributes = "";
         if (!ew_Empty($this->facebook->CurrentValue)) {
             $this->facebook->HrefValue = !empty($this->facebook->EditValue) ? ew_RemoveHtml($this->facebook->EditValue) : $this->facebook->CurrentValue;
             // Add prefix/suffix
             $this->facebook->LinkAttrs["target"] = "_blank";
             // Add target
             if ($this->Export != "") {
                 $this->facebook->HrefValue = ew_ConvertFullUrl($this->facebook->HrefValue);
             }
         } else {
             $this->facebook->HrefValue = "";
         }
         // twitter
         $this->twitter->LinkCustomAttributes = "";
         if (!ew_Empty($this->twitter->CurrentValue)) {
             $this->twitter->HrefValue = !empty($this->twitter->EditValue) ? ew_RemoveHtml($this->twitter->EditValue) : $this->twitter->CurrentValue;
             // Add prefix/suffix
             $this->twitter->LinkAttrs["target"] = "_blank";
             // Add target
             if ($this->Export != "") {
                 $this->twitter->HrefValue = ew_ConvertFullUrl($this->twitter->HrefValue);
             }
         } else {
             $this->twitter->HrefValue = "";
         }
         // twitch
         $this->twitch->LinkCustomAttributes = "";
         if (!ew_Empty($this->twitch->CurrentValue)) {
             $this->twitch->HrefValue = !empty($this->twitch->EditValue) ? ew_RemoveHtml($this->twitch->EditValue) : $this->twitch->CurrentValue;
             // Add prefix/suffix
             $this->twitch->LinkAttrs["target"] = "_blank";
             // Add target
             if ($this->Export != "") {
                 $this->twitch->HrefValue = ew_ConvertFullUrl($this->twitch->HrefValue);
             }
         } else {
             $this->twitch->HrefValue = "";
         }
         // skype
         $this->skype->LinkCustomAttributes = "";
         $this->skype->HrefValue = "";
         // birthday
         $this->birthday->LinkCustomAttributes = "";
         $this->birthday->HrefValue = "";
         // profession
         $this->profession->LinkCustomAttributes = "";
         $this->profession->HrefValue = "";
         // game_type
         $this->game_type->LinkCustomAttributes = "";
         $this->game_type->HrefValue = "";
         // division
         $this->division->LinkCustomAttributes = "";
         $this->division->HrefValue = "";
         // has_expansion
         $this->has_expansion->LinkCustomAttributes = "";
         $this->has_expansion->HrefValue = "";
         // notes
         $this->notes->LinkCustomAttributes = "";
         if (!ew_Empty($this->notes->CurrentValue)) {
             $this->notes->HrefValue = !empty($this->notes->EditValue) ? ew_RemoveHtml($this->notes->EditValue) : $this->notes->CurrentValue;
             // Add prefix/suffix
             $this->notes->LinkAttrs["target"] = "";
             // Add target
             if ($this->Export != "") {
                 $this->notes->HrefValue = ew_ConvertFullUrl($this->notes->HrefValue);
             }
         } else {
             $this->notes->HrefValue = "";
         }
     }
     if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) {
         // Add / Edit / Search row
         $this->SetupFieldTitles();
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
コード例 #7
0
ファイル: header.php プロジェクト: scintes/sistemas
<script type="text/javascript" src="<?php 
    echo $EW_RELATIVE_PATH;
    ?>
phpjs/userfn11.js"></script>
<script type="text/javascript">

// Write your client script here, no need to add script tags.
</script>
<?php 
}
?>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("hs.ico");
?>
"><link rel="icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("hs.ico");
?>
">
<meta name="generator" content="PHPMaker v11.0.6">
</head>
<body>
<?php 
if (@(!$gbSkipHeaderFooter)) {
    if (@$gsExport == "") {
        ?>
<div class="ewLayout">
	<!-- header (begin) --><!-- *** Note: Only licensed users are allowed to change the logo *** -->
	<div id="ewHeaderRow" class="<?php 
        echo $gsHeaderRowClass;
        ?>
"><img src="<?php 
コード例 #8
0
ファイル: header.php プロジェクト: cahilbey/VL-AWS-Test
echo $Language->ToJSON();
?>
</script>
<script type="text/javascript" src="<?php 
echo $EW_RELATIVE_PATH;
?>
phpjs/userfn12.js"></script>
<script type="text/javascript">

// Write your client script here, no need to add script tags.
</script>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("vl_favicon_app.ico");
?>
"><link rel="icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("vl_favicon_app.ico");
?>
">
<meta name="generator" content="PHPMaker v12.0.5">
</head>
<body>
<?php 
if (@(!$gbSkipHeaderFooter)) {
    ?>
<div class="ewLayout">
	<!-- header (begin) --><!-- ** Note: Only licensed users are allowed to change the logo ** -->
	<div id="ewHeaderRow" class="<?php 
    echo $gsHeaderRowClass;
    ?>
"></div>
<?php 
コード例 #9
0
ファイル: messageslist.php プロジェクト: Ombogo/new_api_chat
 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     $this->ViewUrl = $this->GetViewUrl();
     $this->EditUrl = $this->GetEditUrl();
     $this->InlineEditUrl = $this->GetInlineEditUrl();
     $this->CopyUrl = $this->GetCopyUrl();
     $this->InlineCopyUrl = $this->GetInlineCopyUrl();
     $this->DeleteUrl = $this->GetDeleteUrl();
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // id
     // account_id
     // image
     // uname
     // dtime
     // pnumber
     // message
     // m_type
     // M_url
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $this->id->ViewValue = $this->id->CurrentValue;
         $this->id->ViewCustomAttributes = "";
         // image
         $this->image->ViewValue = $this->image->CurrentValue;
         $this->image->ImageWidth = 50;
         $this->image->ImageHeight = 50;
         $this->image->ImageAlt = $this->image->FldAlt();
         $this->image->ViewCustomAttributes = "";
         // uname
         $this->uname->ViewValue = $this->uname->CurrentValue;
         $this->uname->ViewCustomAttributes = "";
         // pnumber
         $this->pnumber->ViewValue = $this->pnumber->CurrentValue;
         $this->pnumber->ViewCustomAttributes = "";
         // message
         $this->message->ViewValue = $this->message->CurrentValue;
         $this->message->ViewCustomAttributes = "";
         // id
         $this->id->LinkCustomAttributes = "";
         $this->id->HrefValue = "";
         $this->id->TooltipValue = "";
         // image
         $this->image->LinkCustomAttributes = "";
         if (!ew_Empty($this->image->CurrentValue)) {
             $this->image->HrefValue = !empty($this->image->ViewValue) ? $this->image->ViewValue : $this->image->CurrentValue;
             // Add prefix/suffix
             $this->image->LinkAttrs["target"] = "";
             // Add target
             if ($this->Export != "") {
                 $this->image->HrefValue = ew_ConvertFullUrl($this->image->HrefValue);
             }
         } else {
             $this->image->HrefValue = "";
         }
         if ($this->Export == "") {
             $this->image->TooltipValue = $this->pnumber->ViewValue != "" ? $this->pnumber->ViewValue : $this->pnumber->CurrentValue;
             $this->image->TooltipWidth = 50;
             if ($this->image->HrefValue == "") {
                 $this->image->HrefValue = "javascript:void(0);";
             }
             $this->image->LinkAttrs["class"] = "ewTooltipLink";
             $this->image->LinkAttrs["data-tooltip-id"] = "tt_messages_x" . $this->RowCnt . "_image";
             $this->image->LinkAttrs["data-tooltip-width"] = $this->image->TooltipWidth;
             $this->image->LinkAttrs["data-placement"] = EW_CSS_FLIP ? "left" : "right";
         }
         if ($this->Export == "") {
             $this->image->ViewValue = ew_Highlight($this->HighlightName(), $this->image->ViewValue, $this->BasicSearch->getKeyword(), $this->BasicSearch->getType(), "", "");
         }
         // uname
         $this->uname->LinkCustomAttributes = "";
         $this->uname->HrefValue = "";
         $this->uname->TooltipValue = "";
         if ($this->Export == "") {
             $this->uname->ViewValue = ew_Highlight($this->HighlightName(), $this->uname->ViewValue, $this->BasicSearch->getKeyword(), $this->BasicSearch->getType(), "", "");
         }
         // pnumber
         $this->pnumber->LinkCustomAttributes = "";
         $this->pnumber->HrefValue = "";
         $this->pnumber->TooltipValue = "";
         if ($this->Export == "") {
             $this->pnumber->ViewValue = ew_Highlight($this->HighlightName(), $this->pnumber->ViewValue, $this->BasicSearch->getKeyword(), $this->BasicSearch->getType(), "", "");
         }
         // message
         $this->message->LinkCustomAttributes = "";
         $this->message->HrefValue = "";
         $this->message->TooltipValue = "";
         if ($this->Export == "") {
             $this->message->ViewValue = ew_Highlight($this->HighlightName(), $this->message->ViewValue, $this->BasicSearch->getKeyword(), $this->BasicSearch->getType(), "", "");
         }
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
コード例 #10
0
?>
phpjs/userfn11.js"></script>
<script type="text/javascript">
<?php 
echo $Language->ToJSON();
?>
</script>
<script type="text/javascript">

// Write your client script here, no need to add script tags.
</script>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("faviconNXT.ico");
?>
"><link rel="icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("faviconNXT.ico");
?>
">
<meta name="generator" content="PHPMaker v11.0.3">
</head>
<body>
<?php 
if (@(!$gbSkipHeaderFooter)) {
    ?>
<div class="ewLayout">
	<!-- header (begin) --><!-- *** Note: Only licensed users are allowed to change the logo *** -->
	<div id="ewHeaderRow" class="<?php 
    echo $gsHeaderRowClass;
    ?>
"><img src="<?php 
    echo $EW_RELATIVE_PATH;
コード例 #11
0
ファイル: phpfn9.php プロジェクト: Rastrian/RBAC_Manager
 function ExportField(&$fld)
 {
     $this->FldCnt++;
     $ExportValue = $fld->ExportValue();
     if ($fld->FldViewTag == "IMAGE") {
         if ($fld->ImageResize && function_exists("ew_GdVersion") && ew_GdVersion() > 0) {
             $imagefn = $fld->GetTempImage();
             if ($imagefn != "") {
                 $ExportValue = "<img src=\"" . $imagefn . "\" alt=\"\" style=\"border: 0;\">";
             }
         } elseif ($ExportValue != "") {
             $ExportValue = ew_ConvertFullUrl($ExportValue);
             $attrs = array("href" => $ExportValue);
             $ExportValue = ew_HtmlElement("a", $attrs, $fld->FldCaption());
         }
     }
     if ($this->Horizontal) {
         $this->ExportValueEx($fld, $ExportValue);
     } else {
         // Vertical, export as a row
         $this->RowCnt++;
         $this->Text .= "<tr class=\"" . ($this->FldCnt % 2 == 1 ? "ewExportTableRow" : "ewExportTableAltRow") . "\">" . "<td class=\"ewTableHeader\">" . $fld->ExportCaption() . "</td>";
         $this->Text .= "<td" . (EW_EXPORT_CSS_STYLES ? $fld->CellStyles() : "") . ">" . $ExportValue . "</td></tr>";
     }
 }
コード例 #12
0
ファイル: header.php プロジェクト: agnium-academy/abyor-3-web
<?php 
    echo $Language->ToJSON();
    ?>
</script>
<script type="text/javascript">

// Write your client script here, no need to add script tags.
</script>
<?php 
}
?>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("Tinylab-Android-Lollipop-Apps-Amazon.ico");
?>
"><link rel="icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("Tinylab-Android-Lollipop-Apps-Amazon.ico");
?>
">
<meta name="generator" content="PHPMaker v10.0.4">
</head>
<body>
<?php 
if (@$gsExport == "" || @$gsExport == "print") {
    if (ew_IsMobile()) {
        ?>
<div data-role="page">
	<div data-role="header">
		<a href="mobilemenu.php"><?php 
        echo $Language->Phrase("MobileMenu");
        ?>
</a>
コード例 #13
0
ファイル: header.php プロジェクト: NoSympathy/Dashboard
<script type="text/javascript" src="<?php 
    echo $EW_RELATIVE_PATH;
    ?>
phpjs/userfn12.js"></script>
<script type="text/javascript">

// Write your client script here, no need to add script tags.
</script>
<?php 
}
?>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("nosICO.ico");
?>
"><link rel="icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("nosICO.ico");
?>
">
<meta name="generator" content="PHPMaker v12.0.5">
</head>
<body>
<?php 
if (@(!$gbSkipHeaderFooter)) {
    if (@$gsExport == "") {
        ?>
<div class="ewLayout">
	<!-- header (begin) --><!-- ** Note: Only licensed users are allowed to change the logo ** -->
	<div id="ewHeaderRow" class="<?php 
        echo $gsHeaderRowClass;
        ?>
"><img src="<?php 
コード例 #14
0
ファイル: header.php プロジェクト: erick-chali/Ubicacion
<script type="text/javascript" src="<?php 
    echo $EW_RELATIVE_PATH;
    ?>
phpjs/userfn11.js"></script>
<script type="text/javascript">

// Write your client script here, no need to add script tags.
</script>
<?php 
}
?>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("inventario.ico");
?>
"><link rel="icon" type="image/vnd.microsoft.icon" href="<?php 
echo ew_ConvertFullUrl("inventario.ico");
?>
">
<meta name="generator" content="PHPMaker v11.0.6">
</head>
<body>
<?php 
if (@(!$gbSkipHeaderFooter)) {
    if (@$gsExport == "") {
        ?>
<div class="ewLayout">
	<!-- header (begin) --><!-- *** Note: Only licensed users are allowed to change the logo *** -->
	<div id="ewHeaderRow" class="<?php 
        echo $gsHeaderRowClass;
        ?>
"><img src="<?php 
コード例 #15
0
ファイル: Itemsedit.php プロジェクト: elliecm/MadisonandRayne
 function RenderRow()
 {
     global $conn, $Security, $Items;
     // Call Row_Rendering event
     $Items->Row_Rendering();
     // Common render codes for all row types
     // ItemID
     $Items->ItemID->CellCssStyle = "";
     $Items->ItemID->CellCssClass = "";
     // MenuID
     $Items->MenuID->CellCssStyle = "";
     $Items->MenuID->CellCssClass = "";
     // ItemName
     $Items->ItemName->CellCssStyle = "";
     $Items->ItemName->CellCssClass = "";
     // Description
     $Items->Description->CellCssStyle = "";
     $Items->Description->CellCssClass = "";
     // Price
     $Items->Price->CellCssStyle = "";
     $Items->Price->CellCssClass = "";
     // Image
     $Items->Image->CellCssStyle = "";
     $Items->Image->CellCssClass = "";
     // Vegetarian
     $Items->Vegetarian->CellCssStyle = "";
     $Items->Vegetarian->CellCssClass = "";
     // Vegetarian_Price
     $Items->Vegetarian_Price->CellCssStyle = "";
     $Items->Vegetarian_Price->CellCssClass = "";
     // Color
     $Items->Color->CellCssStyle = "";
     $Items->Color->CellCssClass = "";
     // Sequence
     $Items->Sequence->CellCssStyle = "";
     $Items->Sequence->CellCssClass = "";
     // PDF
     $Items->PDF->CellCssStyle = "";
     $Items->PDF->CellCssClass = "";
     // Active
     $Items->Active->CellCssStyle = "";
     $Items->Active->CellCssClass = "";
     if ($Items->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // ItemID
         $Items->ItemID->ViewValue = $Items->ItemID->CurrentValue;
         $Items->ItemID->CssStyle = "";
         $Items->ItemID->CssClass = "";
         $Items->ItemID->ViewCustomAttributes = "";
         // MenuID
         if (strval($Items->MenuID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `MenuName` FROM `Menus` WHERE `MenuID` = " . ew_AdjustSql($Items->MenuID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `MenuName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $Items->MenuID->ViewValue = $rswrk->fields('MenuName');
                 $rswrk->Close();
             } else {
                 $Items->MenuID->ViewValue = $Items->MenuID->CurrentValue;
             }
         } else {
             $Items->MenuID->ViewValue = NULL;
         }
         $Items->MenuID->CssStyle = "";
         $Items->MenuID->CssClass = "";
         $Items->MenuID->ViewCustomAttributes = "";
         // ItemName
         $Items->ItemName->ViewValue = $Items->ItemName->CurrentValue;
         $Items->ItemName->CssStyle = "";
         $Items->ItemName->CssClass = "";
         $Items->ItemName->ViewCustomAttributes = "";
         // Description
         $Items->Description->ViewValue = $Items->Description->CurrentValue;
         if (!is_null($Items->Description->ViewValue)) {
             $Items->Description->ViewValue = str_replace("\n", "<br>", $Items->Description->ViewValue);
         }
         $Items->Description->CssStyle = "";
         $Items->Description->CssClass = "";
         $Items->Description->ViewCustomAttributes = "";
         // Price
         $Items->Price->ViewValue = $Items->Price->CurrentValue;
         $Items->Price->ViewValue = ew_FormatCurrency($Items->Price->ViewValue, 2, -2, 0, -2);
         $Items->Price->CssStyle = "";
         $Items->Price->CssClass = "";
         $Items->Price->ViewCustomAttributes = "";
         // Image
         if (!is_null($Items->Image->Upload->DbValue)) {
             $Items->Image->ViewValue = $Items->Image->Upload->DbValue;
             $Items->Image->ImageAlt = "";
         } else {
             $Items->Image->ViewValue = "";
         }
         $Items->Image->CssStyle = "";
         $Items->Image->CssClass = "";
         $Items->Image->ViewCustomAttributes = "";
         // Vegetarian
         if (strval($Items->Vegetarian->CurrentValue) != "") {
             switch ($Items->Vegetarian->CurrentValue) {
                 case "0":
                     $Items->Vegetarian->ViewValue = "No";
                     break;
                 case "1":
                     $Items->Vegetarian->ViewValue = "Yes";
                     break;
                 default:
                     $Items->Vegetarian->ViewValue = $Items->Vegetarian->CurrentValue;
             }
         } else {
             $Items->Vegetarian->ViewValue = NULL;
         }
         $Items->Vegetarian->CssStyle = "";
         $Items->Vegetarian->CssClass = "";
         $Items->Vegetarian->ViewCustomAttributes = "";
         // Vegetarian_Price
         $Items->Vegetarian_Price->ViewValue = $Items->Vegetarian_Price->CurrentValue;
         $Items->Vegetarian_Price->ViewValue = ew_FormatCurrency($Items->Vegetarian_Price->ViewValue, 2, -2, 0, -2);
         $Items->Vegetarian_Price->CssStyle = "";
         $Items->Vegetarian_Price->CssClass = "";
         $Items->Vegetarian_Price->ViewCustomAttributes = "";
         // Color
         $Items->Color->ViewValue = $Items->Color->CurrentValue;
         $Items->Color->CssStyle = "";
         $Items->Color->CssClass = "";
         $Items->Color->ViewCustomAttributes = "";
         // Sequence
         $Items->Sequence->ViewValue = $Items->Sequence->CurrentValue;
         $Items->Sequence->CssStyle = "";
         $Items->Sequence->CssClass = "";
         $Items->Sequence->ViewCustomAttributes = "";
         // PDF
         if (!is_null($Items->PDF->Upload->DbValue)) {
             $Items->PDF->ViewValue = $Items->PDF->Upload->DbValue;
         } else {
             $Items->PDF->ViewValue = "";
         }
         $Items->PDF->CssStyle = "";
         $Items->PDF->CssClass = "";
         $Items->PDF->ViewCustomAttributes = "";
         // Active
         if (strval($Items->Active->CurrentValue) != "") {
             switch ($Items->Active->CurrentValue) {
                 case "0":
                     $Items->Active->ViewValue = "No";
                     break;
                 case "1":
                     $Items->Active->ViewValue = "Yes";
                     break;
                 default:
                     $Items->Active->ViewValue = $Items->Active->CurrentValue;
             }
         } else {
             $Items->Active->ViewValue = NULL;
         }
         $Items->Active->CssStyle = "";
         $Items->Active->CssClass = "";
         $Items->Active->ViewCustomAttributes = "";
         // ItemID
         $Items->ItemID->HrefValue = "";
         // MenuID
         $Items->MenuID->HrefValue = "";
         // ItemName
         $Items->ItemName->HrefValue = "";
         // Description
         $Items->Description->HrefValue = "";
         // Price
         $Items->Price->HrefValue = "";
         // Image
         $Items->Image->HrefValue = "";
         // Vegetarian
         $Items->Vegetarian->HrefValue = "";
         // Vegetarian_Price
         $Items->Vegetarian_Price->HrefValue = "";
         // Color
         $Items->Color->HrefValue = "";
         // Sequence
         $Items->Sequence->HrefValue = "";
         // PDF
         if (!is_null($Items->PDF->Upload->DbValue)) {
             $Items->PDF->HrefValue = ew_UploadPathEx(FALSE, "../recipes/") . (!empty($Items->PDF->ViewValue) ? $Items->PDF->ViewValue : $Items->PDF->CurrentValue);
             if ($Items->Export != "") {
                 $Items->PDF->HrefValue = ew_ConvertFullUrl($Items->PDF->HrefValue);
             }
         } else {
             $Items->PDF->HrefValue = "";
         }
         // Active
         $Items->Active->HrefValue = "";
     } elseif ($Items->RowType == EW_ROWTYPE_EDIT) {
         // Edit row
         // ItemID
         $Items->ItemID->EditCustomAttributes = "";
         $Items->ItemID->EditValue = $Items->ItemID->CurrentValue;
         $Items->ItemID->CssStyle = "";
         $Items->ItemID->CssClass = "";
         $Items->ItemID->ViewCustomAttributes = "";
         // MenuID
         $Items->MenuID->EditCustomAttributes = "";
         if ($Items->MenuID->getSessionValue() != "") {
             $Items->MenuID->CurrentValue = $Items->MenuID->getSessionValue();
             if (strval($Items->MenuID->CurrentValue) != "") {
                 $sSqlWrk = "SELECT `MenuName` FROM `Menus` WHERE `MenuID` = " . ew_AdjustSql($Items->MenuID->CurrentValue) . "";
                 $sSqlWrk .= " ORDER BY `MenuName` Asc";
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup value(s) found
                     $Items->MenuID->ViewValue = $rswrk->fields('MenuName');
                     $rswrk->Close();
                 } else {
                     $Items->MenuID->ViewValue = $Items->MenuID->CurrentValue;
                 }
             } else {
                 $Items->MenuID->ViewValue = NULL;
             }
             $Items->MenuID->CssStyle = "";
             $Items->MenuID->CssClass = "";
             $Items->MenuID->ViewCustomAttributes = "";
         } else {
             $sSqlWrk = "SELECT `MenuID`, `MenuName`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `Menus`";
             $sWhereWrk = "";
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE {$sWhereWrk}";
             }
             $sSqlWrk .= " ORDER BY `MenuName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             $arwrk = $rswrk ? $rswrk->GetRows() : array();
             if ($rswrk) {
                 $rswrk->Close();
             }
             array_unshift($arwrk, array("", "Please Select"));
             $Items->MenuID->EditValue = $arwrk;
         }
         // ItemName
         $Items->ItemName->EditCustomAttributes = "";
         $Items->ItemName->EditValue = ew_HtmlEncode($Items->ItemName->CurrentValue);
         // Description
         $Items->Description->EditCustomAttributes = "";
         $Items->Description->EditValue = ew_HtmlEncode($Items->Description->CurrentValue);
         // Price
         $Items->Price->EditCustomAttributes = "";
         $Items->Price->EditValue = ew_HtmlEncode($Items->Price->CurrentValue);
         // Image
         $Items->Image->EditCustomAttributes = "";
         if (!is_null($Items->Image->Upload->DbValue)) {
             $Items->Image->EditValue = $Items->Image->Upload->DbValue;
             $Items->Image->ImageAlt = "";
         } else {
             $Items->Image->EditValue = "";
         }
         // Vegetarian
         $Items->Vegetarian->EditCustomAttributes = "";
         $arwrk = array();
         $arwrk[] = array("0", "No");
         $arwrk[] = array("1", "Yes");
         $Items->Vegetarian->EditValue = $arwrk;
         // Vegetarian_Price
         $Items->Vegetarian_Price->EditCustomAttributes = "";
         $Items->Vegetarian_Price->EditValue = ew_HtmlEncode($Items->Vegetarian_Price->CurrentValue);
         // Color
         $Items->Color->EditCustomAttributes = "";
         $Items->Color->EditValue = ew_HtmlEncode($Items->Color->CurrentValue);
         // Sequence
         $Items->Sequence->EditCustomAttributes = "";
         $Items->Sequence->EditValue = ew_HtmlEncode($Items->Sequence->CurrentValue);
         // PDF
         $Items->PDF->EditCustomAttributes = "";
         if (!is_null($Items->PDF->Upload->DbValue)) {
             $Items->PDF->EditValue = $Items->PDF->Upload->DbValue;
         } else {
             $Items->PDF->EditValue = "";
         }
         // Active
         $Items->Active->EditCustomAttributes = "";
         $arwrk = array();
         $arwrk[] = array("0", "No");
         $arwrk[] = array("1", "Yes");
         $Items->Active->EditValue = $arwrk;
         // Edit refer script
         // ItemID
         $Items->ItemID->HrefValue = "";
         // MenuID
         $Items->MenuID->HrefValue = "";
         // ItemName
         $Items->ItemName->HrefValue = "";
         // Description
         $Items->Description->HrefValue = "";
         // Price
         $Items->Price->HrefValue = "";
         // Image
         $Items->Image->HrefValue = "";
         // Vegetarian
         $Items->Vegetarian->HrefValue = "";
         // Vegetarian_Price
         $Items->Vegetarian_Price->HrefValue = "";
         // Color
         $Items->Color->HrefValue = "";
         // Sequence
         $Items->Sequence->HrefValue = "";
         // PDF
         if (!is_null($Items->PDF->Upload->DbValue)) {
             $Items->PDF->HrefValue = ew_UploadPathEx(FALSE, "../recipes/") . (!empty($Items->PDF->EditValue) ? $Items->PDF->EditValue : $Items->PDF->CurrentValue);
             if ($Items->Export != "") {
                 $Items->PDF->HrefValue = ew_ConvertFullUrl($Items->PDF->HrefValue);
             }
         } else {
             $Items->PDF->HrefValue = "";
         }
         // Active
         $Items->Active->HrefValue = "";
     }
     // Call Row Rendered event
     $Items->Row_Rendered();
 }
コード例 #16
0
ファイル: phpfn12.php プロジェクト: NaurozAhmad/Senho
 function GetTempImage()
 {
     if ($this->FldDataType == EW_DATATYPE_BLOB) {
         $wrkdata = $this->Upload->DbValue;
         if (!empty($wrkdata)) {
             if ($this->ImageResize) {
                 $wrkwidth = $this->ImageWidth;
                 $wrkheight = $this->ImageHeight;
                 ew_ResizeBinary($wrkdata, $wrkwidth, $wrkheight);
             }
             return ew_TmpImage($wrkdata);
         }
     } else {
         $wrkfile = $this->Upload->DbValue;
         if (empty($wrkfile)) {
             $wrkfile = $this->CurrentValue;
         }
         if (!empty($wrkfile)) {
             if (!$this->UploadMultiple) {
                 $imagefn = ew_UploadPathEx(TRUE, $this->UploadPath) . $wrkfile;
                 if ($this->ImageResize) {
                     $wrkwidth = $this->ImageWidth;
                     $wrkheight = $this->ImageHeight;
                     $wrkdata = ew_ResizeFileToBinary($imagefn, $wrkwidth, $wrkheight);
                     return ew_TmpImage($wrkdata);
                 } else {
                     return $imagefn;
                 }
             } else {
                 $tmpfiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $wrkfile);
                 $tmpimage = "";
                 foreach ($tmpfiles as $tmpfile) {
                     if ($tmpfile != "") {
                         $imagefn = ew_UploadPathEx(TRUE, $this->UploadPath) . $tmpfile;
                         if ($this->ImageResize) {
                             $wrkwidth = $this->ImageWidth;
                             $wrkheight = $this->ImageHeight;
                             $wrkdata = ew_ResizeFileToBinary($imagefn, $wrkwidth, $wrkheight);
                             if ($tmpimage != "") {
                                 $tmpimage .= ",";
                             }
                             $tmpimage .= ew_TmpImage($wrkdata);
                         } else {
                             if ($tmpimage != "") {
                                 $tmpimage .= ",";
                             }
                             $tmpimage .= ew_ConvertFullUrl($this->UploadPath . $tmpfile);
                         }
                     }
                 }
                 return $tmpimage;
             }
         }
     }
 }
コード例 #17
0
ファイル: cataloguesinfo.php プロジェクト: ahmarmahmood/top
 function RenderListRow()
 {
     global $conn, $Security;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // cat_id
     $this->cat_id->CellCssStyle = "white-space: nowrap;";
     // cat_name
     // cat_file
     // cat_date
     // cat_id
     $this->cat_id->ViewValue = $this->cat_id->CurrentValue;
     $this->cat_id->ViewCustomAttributes = "";
     // cat_name
     $this->cat_name->ViewValue = $this->cat_name->CurrentValue;
     $this->cat_name->ViewCustomAttributes = "";
     // cat_file
     $this->cat_file->UploadPath = "/catalogues/";
     if (!ew_Empty($this->cat_file->Upload->DbValue)) {
         $this->cat_file->ViewValue = $this->cat_file->Upload->DbValue;
     } else {
         $this->cat_file->ViewValue = "";
     }
     $this->cat_file->ViewCustomAttributes = "";
     // cat_date
     $this->cat_date->ViewValue = $this->cat_date->CurrentValue;
     $this->cat_date->ViewValue = ew_FormatDateTime($this->cat_date->ViewValue, 5);
     $this->cat_date->ViewCustomAttributes = "";
     // cat_id
     $this->cat_id->LinkCustomAttributes = "";
     $this->cat_id->HrefValue = "";
     $this->cat_id->TooltipValue = "";
     // cat_name
     $this->cat_name->LinkCustomAttributes = "";
     $this->cat_name->HrefValue = "";
     $this->cat_name->TooltipValue = "";
     // cat_file
     $this->cat_file->LinkCustomAttributes = "";
     $this->cat_file->UploadPath = "/catalogues/";
     if (!ew_Empty($this->cat_file->Upload->DbValue)) {
         $this->cat_file->HrefValue = ew_UploadPathEx(FALSE, $this->cat_file->UploadPath) . $this->cat_file->Upload->DbValue;
         // Add prefix/suffix
         $this->cat_file->LinkAttrs["target"] = "";
         // Add target
         if ($this->Export != "") {
             $this->cat_file->HrefValue = ew_ConvertFullUrl($this->cat_file->HrefValue);
         }
     } else {
         $this->cat_file->HrefValue = "";
     }
     $this->cat_file->HrefValue2 = $this->cat_file->UploadPath . $this->cat_file->Upload->DbValue;
     $this->cat_file->TooltipValue = "";
     // cat_date
     $this->cat_date->LinkCustomAttributes = "";
     $this->cat_date->HrefValue = "";
     $this->cat_date->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }
コード例 #18
0
 function RenderListRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // codigo
     // Titulo
     // Descripcion
     // fecha
     // id_usuario
     // archivo
     // estado
     // codigo
     $this->codigo->ViewValue = $this->codigo->CurrentValue;
     $this->codigo->ViewCustomAttributes = "";
     // Titulo
     $this->Titulo->ViewValue = $this->Titulo->CurrentValue;
     $this->Titulo->ViewCustomAttributes = "";
     // Descripcion
     $this->Descripcion->ViewValue = $this->Descripcion->CurrentValue;
     $this->Descripcion->ViewCustomAttributes = "";
     // fecha
     $this->fecha->ViewValue = $this->fecha->CurrentValue;
     $this->fecha->ViewValue = ew_FormatDateTime($this->fecha->ViewValue, 7);
     $this->fecha->ViewCustomAttributes = "";
     // id_usuario
     $this->id_usuario->ViewValue = $this->id_usuario->CurrentValue;
     $this->id_usuario->ViewCustomAttributes = "";
     // archivo
     if (!ew_Empty($this->archivo->Upload->DbValue)) {
         $this->archivo->ViewValue = $this->archivo->Upload->DbValue;
     } else {
         $this->archivo->ViewValue = "";
     }
     $this->archivo->ViewCustomAttributes = "";
     // estado
     if (strval($this->estado->CurrentValue) != "") {
         switch ($this->estado->CurrentValue) {
             case $this->estado->FldTagValue(1):
                 $this->estado->ViewValue = $this->estado->FldTagCaption(1) != "" ? $this->estado->FldTagCaption(1) : $this->estado->CurrentValue;
                 break;
             case $this->estado->FldTagValue(2):
                 $this->estado->ViewValue = $this->estado->FldTagCaption(2) != "" ? $this->estado->FldTagCaption(2) : $this->estado->CurrentValue;
                 break;
             case $this->estado->FldTagValue(3):
                 $this->estado->ViewValue = $this->estado->FldTagCaption(3) != "" ? $this->estado->FldTagCaption(3) : $this->estado->CurrentValue;
                 break;
             default:
                 $this->estado->ViewValue = $this->estado->CurrentValue;
         }
     } else {
         $this->estado->ViewValue = NULL;
     }
     $this->estado->ViewCustomAttributes = "";
     // codigo
     $this->codigo->LinkCustomAttributes = "";
     $this->codigo->HrefValue = "";
     $this->codigo->TooltipValue = "";
     // Titulo
     $this->Titulo->LinkCustomAttributes = "";
     $this->Titulo->HrefValue = "";
     $this->Titulo->TooltipValue = "";
     // Descripcion
     $this->Descripcion->LinkCustomAttributes = "";
     $this->Descripcion->HrefValue = "";
     $this->Descripcion->TooltipValue = "";
     // fecha
     $this->fecha->LinkCustomAttributes = "";
     $this->fecha->HrefValue = "";
     $this->fecha->TooltipValue = "";
     // id_usuario
     $this->id_usuario->LinkCustomAttributes = "";
     $this->id_usuario->HrefValue = "";
     $this->id_usuario->TooltipValue = "";
     // archivo
     $this->archivo->LinkCustomAttributes = "";
     if (!ew_Empty($this->archivo->Upload->DbValue)) {
         $this->archivo->HrefValue = "%u";
         // Add prefix/suffix
         $this->archivo->LinkAttrs["target"] = "";
         // Add target
         if ($this->Export != "") {
             $this->archivo->HrefValue = ew_ConvertFullUrl($this->archivo->HrefValue);
         }
     } else {
         $this->archivo->HrefValue = "";
     }
     $this->archivo->HrefValue2 = $this->archivo->UploadPath . $this->archivo->Upload->DbValue;
     $this->archivo->TooltipValue = "";
     // estado
     $this->estado->LinkCustomAttributes = "";
     $this->estado->HrefValue = "";
     $this->estado->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }
コード例 #19
0
ファイル: cataloguesadd.php プロジェクト: ahmarmahmood/top
 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // cat_id
     // cat_name
     // cat_file
     // cat_date
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // cat_name
         $this->cat_name->ViewValue = $this->cat_name->CurrentValue;
         $this->cat_name->ViewCustomAttributes = "";
         // cat_file
         $this->cat_file->UploadPath = "/catalogues/";
         if (!ew_Empty($this->cat_file->Upload->DbValue)) {
             $this->cat_file->ViewValue = $this->cat_file->Upload->DbValue;
         } else {
             $this->cat_file->ViewValue = "";
         }
         $this->cat_file->ViewCustomAttributes = "";
         // cat_date
         $this->cat_date->ViewValue = $this->cat_date->CurrentValue;
         $this->cat_date->ViewValue = ew_FormatDateTime($this->cat_date->ViewValue, 5);
         $this->cat_date->ViewCustomAttributes = "";
         // cat_name
         $this->cat_name->LinkCustomAttributes = "";
         $this->cat_name->HrefValue = "";
         $this->cat_name->TooltipValue = "";
         // cat_file
         $this->cat_file->LinkCustomAttributes = "";
         $this->cat_file->UploadPath = "/catalogues/";
         if (!ew_Empty($this->cat_file->Upload->DbValue)) {
             $this->cat_file->HrefValue = ew_UploadPathEx(FALSE, $this->cat_file->UploadPath) . $this->cat_file->Upload->DbValue;
             // Add prefix/suffix
             $this->cat_file->LinkAttrs["target"] = "";
             // Add target
             if ($this->Export != "") {
                 $this->cat_file->HrefValue = ew_ConvertFullUrl($this->cat_file->HrefValue);
             }
         } else {
             $this->cat_file->HrefValue = "";
         }
         $this->cat_file->HrefValue2 = $this->cat_file->UploadPath . $this->cat_file->Upload->DbValue;
         $this->cat_file->TooltipValue = "";
         // cat_date
         $this->cat_date->LinkCustomAttributes = "";
         $this->cat_date->HrefValue = "";
         $this->cat_date->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // cat_name
         $this->cat_name->EditCustomAttributes = "";
         $this->cat_name->EditValue = ew_HtmlEncode($this->cat_name->CurrentValue);
         $this->cat_name->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->cat_name->FldCaption()));
         // cat_file
         $this->cat_file->EditCustomAttributes = "";
         $this->cat_file->UploadPath = "/catalogues/";
         if (!ew_Empty($this->cat_file->Upload->DbValue)) {
             $this->cat_file->EditValue = $this->cat_file->Upload->DbValue;
         } else {
             $this->cat_file->EditValue = "";
         }
         if (!ew_Empty($this->cat_file->CurrentValue)) {
             $this->cat_file->Upload->FileName = $this->cat_file->CurrentValue;
         }
         if (($this->CurrentAction == "I" || $this->CurrentAction == "C") && !$this->EventCancelled) {
             ew_RenderUploadField($this->cat_file);
         }
         // cat_date
         $this->cat_date->EditCustomAttributes = "";
         $this->cat_date->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->cat_date->CurrentValue, 5));
         $this->cat_date->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->cat_date->FldCaption()));
         // Edit refer script
         // cat_name
         $this->cat_name->HrefValue = "";
         // cat_file
         $this->cat_file->UploadPath = "/catalogues/";
         if (!ew_Empty($this->cat_file->Upload->DbValue)) {
             $this->cat_file->HrefValue = ew_UploadPathEx(FALSE, $this->cat_file->UploadPath) . $this->cat_file->Upload->DbValue;
             // Add prefix/suffix
             $this->cat_file->LinkAttrs["target"] = "";
             // Add target
             if ($this->Export != "") {
                 $this->cat_file->HrefValue = ew_ConvertFullUrl($this->cat_file->HrefValue);
             }
         } else {
             $this->cat_file->HrefValue = "";
         }
         $this->cat_file->HrefValue2 = $this->cat_file->UploadPath . $this->cat_file->Upload->DbValue;
         // cat_date
         $this->cat_date->HrefValue = "";
     }
     if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) {
         // Add / Edit / Search row
         $this->SetupFieldTitles();
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
コード例 #20
0
 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // codigo
     // Titulo
     // Descripcion
     // fecha
     // id_usuario
     // archivo
     // estado
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // codigo
         $this->codigo->ViewValue = $this->codigo->CurrentValue;
         $this->codigo->ViewCustomAttributes = "";
         // Titulo
         $this->Titulo->ViewValue = $this->Titulo->CurrentValue;
         $this->Titulo->ViewCustomAttributes = "";
         // Descripcion
         $this->Descripcion->ViewValue = $this->Descripcion->CurrentValue;
         $this->Descripcion->ViewCustomAttributes = "";
         // fecha
         $this->fecha->ViewValue = $this->fecha->CurrentValue;
         $this->fecha->ViewValue = ew_FormatDateTime($this->fecha->ViewValue, 7);
         $this->fecha->ViewCustomAttributes = "";
         // archivo
         if (!ew_Empty($this->archivo->Upload->DbValue)) {
             $this->archivo->ViewValue = $this->archivo->Upload->DbValue;
         } else {
             $this->archivo->ViewValue = "";
         }
         $this->archivo->ViewCustomAttributes = "";
         // estado
         if (strval($this->estado->CurrentValue) != "") {
             switch ($this->estado->CurrentValue) {
                 case $this->estado->FldTagValue(1):
                     $this->estado->ViewValue = $this->estado->FldTagCaption(1) != "" ? $this->estado->FldTagCaption(1) : $this->estado->CurrentValue;
                     break;
                 case $this->estado->FldTagValue(2):
                     $this->estado->ViewValue = $this->estado->FldTagCaption(2) != "" ? $this->estado->FldTagCaption(2) : $this->estado->CurrentValue;
                     break;
                 case $this->estado->FldTagValue(3):
                     $this->estado->ViewValue = $this->estado->FldTagCaption(3) != "" ? $this->estado->FldTagCaption(3) : $this->estado->CurrentValue;
                     break;
                 default:
                     $this->estado->ViewValue = $this->estado->CurrentValue;
             }
         } else {
             $this->estado->ViewValue = NULL;
         }
         $this->estado->ViewCustomAttributes = "";
         // codigo
         $this->codigo->LinkCustomAttributes = "";
         $this->codigo->HrefValue = "";
         $this->codigo->TooltipValue = "";
         // Titulo
         $this->Titulo->LinkCustomAttributes = "";
         $this->Titulo->HrefValue = "";
         $this->Titulo->TooltipValue = "";
         // Descripcion
         $this->Descripcion->LinkCustomAttributes = "";
         $this->Descripcion->HrefValue = "";
         $this->Descripcion->TooltipValue = "";
         // archivo
         $this->archivo->LinkCustomAttributes = "";
         if (!ew_Empty($this->archivo->Upload->DbValue)) {
             $this->archivo->HrefValue = "%u";
             // Add prefix/suffix
             $this->archivo->LinkAttrs["target"] = "";
             // Add target
             if ($this->Export != "") {
                 $this->archivo->HrefValue = ew_ConvertFullUrl($this->archivo->HrefValue);
             }
         } else {
             $this->archivo->HrefValue = "";
         }
         $this->archivo->HrefValue2 = $this->archivo->UploadPath . $this->archivo->Upload->DbValue;
         $this->archivo->TooltipValue = "";
         // estado
         $this->estado->LinkCustomAttributes = "";
         $this->estado->HrefValue = "";
         $this->estado->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_EDIT) {
         // Edit row
         // codigo
         $this->codigo->EditAttrs["class"] = "form-control";
         $this->codigo->EditCustomAttributes = "";
         $this->codigo->EditValue = $this->codigo->CurrentValue;
         $this->codigo->ViewCustomAttributes = "";
         // Titulo
         $this->Titulo->EditAttrs["class"] = "form-control";
         $this->Titulo->EditCustomAttributes = "";
         $this->Titulo->EditValue = ew_HtmlEncode($this->Titulo->CurrentValue);
         $this->Titulo->PlaceHolder = ew_RemoveHtml($this->Titulo->FldCaption());
         // Descripcion
         $this->Descripcion->EditAttrs["class"] = "form-control";
         $this->Descripcion->EditCustomAttributes = "";
         $this->Descripcion->EditValue = ew_HtmlEncode($this->Descripcion->CurrentValue);
         $this->Descripcion->PlaceHolder = ew_RemoveHtml($this->Descripcion->FldCaption());
         // archivo
         $this->archivo->EditAttrs["class"] = "form-control";
         $this->archivo->EditCustomAttributes = "";
         if (!ew_Empty($this->archivo->Upload->DbValue)) {
             $this->archivo->EditValue = $this->archivo->Upload->DbValue;
         } else {
             $this->archivo->EditValue = "";
         }
         if (!ew_Empty($this->archivo->CurrentValue)) {
             $this->archivo->Upload->FileName = $this->archivo->CurrentValue;
         }
         if ($this->CurrentAction == "I" && !$this->EventCancelled) {
             ew_RenderUploadField($this->archivo);
         }
         // estado
         $this->estado->EditCustomAttributes = "";
         $arwrk = array();
         $arwrk[] = array($this->estado->FldTagValue(1), $this->estado->FldTagCaption(1) != "" ? $this->estado->FldTagCaption(1) : $this->estado->FldTagValue(1));
         $arwrk[] = array($this->estado->FldTagValue(2), $this->estado->FldTagCaption(2) != "" ? $this->estado->FldTagCaption(2) : $this->estado->FldTagValue(2));
         $arwrk[] = array($this->estado->FldTagValue(3), $this->estado->FldTagCaption(3) != "" ? $this->estado->FldTagCaption(3) : $this->estado->FldTagValue(3));
         $this->estado->EditValue = $arwrk;
         // Edit refer script
         // codigo
         $this->codigo->HrefValue = "";
         // Titulo
         $this->Titulo->HrefValue = "";
         // Descripcion
         $this->Descripcion->HrefValue = "";
         // archivo
         if (!ew_Empty($this->archivo->Upload->DbValue)) {
             $this->archivo->HrefValue = "%u";
             // Add prefix/suffix
             $this->archivo->LinkAttrs["target"] = "";
             // Add target
             if ($this->Export != "") {
                 $this->archivo->HrefValue = ew_ConvertFullUrl($this->archivo->HrefValue);
             }
         } else {
             $this->archivo->HrefValue = "";
         }
         $this->archivo->HrefValue2 = $this->archivo->UploadPath . $this->archivo->Upload->DbValue;
         // estado
         $this->estado->HrefValue = "";
     }
     if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) {
         // Add / Edit / Search row
         $this->SetupFieldTitles();
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
コード例 #21
0
 function RenderRow()
 {
     global $Security, $Language, $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // vl_media_id
     // vl_media_type
     // vl_media_name
     // vl_media_file
     // vl_media_file_custom
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // vl_media_id
         $this->vl_media_id->ViewValue = $this->vl_media_id->CurrentValue;
         $this->vl_media_id->ViewCustomAttributes = "";
         // vl_media_type
         if (strval($this->vl_media_type->CurrentValue) != "") {
             $sFilterWrk = "`vl_media_type_id`" . ew_SearchString("=", $this->vl_media_type->CurrentValue, EW_DATATYPE_NUMBER, "");
             $sSqlWrk = "SELECT `vl_media_type_id`, `vl_media_type_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vl_media_type_list`";
             $sWhereWrk = "";
             ew_AddFilter($sWhereWrk, $sFilterWrk);
             $this->Lookup_Selecting($this->vl_media_type, $sWhereWrk);
             // Call Lookup selecting
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $sSqlWrk .= " ORDER BY `vl_media_type_name` ASC";
             $rswrk = Conn()->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $arwrk = array();
                 $arwrk[1] = $rswrk->fields('DispFld');
                 $this->vl_media_type->ViewValue = $this->vl_media_type->DisplayValue($arwrk);
                 $rswrk->Close();
             } else {
                 $this->vl_media_type->ViewValue = $this->vl_media_type->CurrentValue;
             }
         } else {
             $this->vl_media_type->ViewValue = NULL;
         }
         $this->vl_media_type->ViewCustomAttributes = "";
         // vl_media_name
         $this->vl_media_name->ViewValue = $this->vl_media_name->CurrentValue;
         $this->vl_media_name->ViewCustomAttributes = "";
         // vl_media_file
         if (!ew_Empty($this->vl_media_file->Upload->DbValue)) {
             $this->vl_media_file->ImageWidth = 200;
             $this->vl_media_file->ImageHeight = 200;
             $this->vl_media_file->ImageAlt = $this->vl_media_file->FldAlt();
             $this->vl_media_file->ViewValue = $this->vl_media_file->Upload->DbValue;
         } else {
             $this->vl_media_file->ViewValue = "";
         }
         $this->vl_media_file->ViewCustomAttributes = "";
         // vl_media_file_custom
         $this->vl_media_file_custom->UploadPath = "uploads_custom/";
         if (!ew_Empty($this->vl_media_file_custom->Upload->DbValue)) {
             $this->vl_media_file_custom->ImageWidth = 200;
             $this->vl_media_file_custom->ImageHeight = 200;
             $this->vl_media_file_custom->ImageAlt = $this->vl_media_file_custom->FldAlt();
             $this->vl_media_file_custom->ViewValue = $this->vl_media_file_custom->Upload->DbValue;
         } else {
             $this->vl_media_file_custom->ViewValue = "";
         }
         $this->vl_media_file_custom->ViewCustomAttributes = "";
         // vl_media_id
         $this->vl_media_id->LinkCustomAttributes = "";
         $this->vl_media_id->HrefValue = "";
         $this->vl_media_id->TooltipValue = "";
         // vl_media_type
         $this->vl_media_type->LinkCustomAttributes = "";
         $this->vl_media_type->HrefValue = "";
         $this->vl_media_type->TooltipValue = "";
         // vl_media_name
         $this->vl_media_name->LinkCustomAttributes = "";
         $this->vl_media_name->HrefValue = "";
         $this->vl_media_name->TooltipValue = "";
         // vl_media_file
         $this->vl_media_file->LinkCustomAttributes = "";
         if (!ew_Empty($this->vl_media_file->Upload->DbValue)) {
             $this->vl_media_file->HrefValue = ew_GetFileUploadUrl($this->vl_media_file, $this->vl_media_file->Upload->DbValue);
             // Add prefix/suffix
             $this->vl_media_file->LinkAttrs["target"] = "_blank";
             // Add target
             if ($this->Export != "") {
                 $this->vl_media_file->HrefValue = ew_ConvertFullUrl($this->vl_media_file->HrefValue);
             }
         } else {
             $this->vl_media_file->HrefValue = "";
         }
         $this->vl_media_file->HrefValue2 = $this->vl_media_file->UploadPath . $this->vl_media_file->Upload->DbValue;
         $this->vl_media_file->TooltipValue = "";
         if ($this->vl_media_file->UseColorbox) {
             if (ew_Empty($this->vl_media_file->TooltipValue)) {
                 $this->vl_media_file->LinkAttrs["title"] = $Language->Phrase("ViewImageGallery");
             }
             $this->vl_media_file->LinkAttrs["data-rel"] = "vl_media_list_x_vl_media_file";
             ew_AppendClass($this->vl_media_file->LinkAttrs["class"], "ewLightbox");
         }
         // vl_media_file_custom
         $this->vl_media_file_custom->LinkCustomAttributes = "";
         $this->vl_media_file_custom->UploadPath = "uploads_custom/";
         if (!ew_Empty($this->vl_media_file_custom->Upload->DbValue)) {
             $this->vl_media_file_custom->HrefValue = ew_GetFileUploadUrl($this->vl_media_file_custom, $this->vl_media_file_custom->Upload->DbValue);
             // Add prefix/suffix
             $this->vl_media_file_custom->LinkAttrs["target"] = "_blank";
             // Add target
             if ($this->Export != "") {
                 $this->vl_media_file_custom->HrefValue = ew_ConvertFullUrl($this->vl_media_file_custom->HrefValue);
             }
         } else {
             $this->vl_media_file_custom->HrefValue = "";
         }
         $this->vl_media_file_custom->HrefValue2 = $this->vl_media_file_custom->UploadPath . $this->vl_media_file_custom->Upload->DbValue;
         $this->vl_media_file_custom->TooltipValue = "";
         if ($this->vl_media_file_custom->UseColorbox) {
             if (ew_Empty($this->vl_media_file_custom->TooltipValue)) {
                 $this->vl_media_file_custom->LinkAttrs["title"] = $Language->Phrase("ViewImageGallery");
             }
             $this->vl_media_file_custom->LinkAttrs["data-rel"] = "vl_media_list_x_vl_media_file_custom";
             ew_AppendClass($this->vl_media_file_custom->LinkAttrs["class"], "ewLightbox");
         }
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
コード例 #22
0
ファイル: montoslist.php プロジェクト: scintes/sistemas
 function ExportEmail($EmailContent)
 {
     global $gTmpImages, $Language;
     $sSender = @$_GET["sender"];
     $sRecipient = @$_GET["recipient"];
     $sCc = @$_GET["cc"];
     $sBcc = @$_GET["bcc"];
     $sContentType = @$_GET["contenttype"];
     // Subject
     $sSubject = ew_StripSlashes(@$_GET["subject"]);
     $sEmailSubject = $sSubject;
     // Message
     $sContent = ew_StripSlashes(@$_GET["message"]);
     $sEmailMessage = $sContent;
     // Check sender
     if ($sSender == "") {
         return "<p class=\"text-error\">" . $Language->Phrase("EnterSenderEmail") . "</p>";
     }
     if (!ew_CheckEmail($sSender)) {
         return "<p class=\"text-error\">" . $Language->Phrase("EnterProperSenderEmail") . "</p>";
     }
     // Check recipient
     if (!ew_CheckEmailList($sRecipient, EW_MAX_EMAIL_RECIPIENT)) {
         return "<p class=\"text-error\">" . $Language->Phrase("EnterProperRecipientEmail") . "</p>";
     }
     // Check cc
     if (!ew_CheckEmailList($sCc, EW_MAX_EMAIL_RECIPIENT)) {
         return "<p class=\"text-error\">" . $Language->Phrase("EnterProperCcEmail") . "</p>";
     }
     // Check bcc
     if (!ew_CheckEmailList($sBcc, EW_MAX_EMAIL_RECIPIENT)) {
         return "<p class=\"text-error\">" . $Language->Phrase("EnterProperBccEmail") . "</p>";
     }
     // Check email sent count
     if (!isset($_SESSION[EW_EXPORT_EMAIL_COUNTER])) {
         $_SESSION[EW_EXPORT_EMAIL_COUNTER] = 0;
     }
     if (intval($_SESSION[EW_EXPORT_EMAIL_COUNTER]) > EW_MAX_EMAIL_SENT_COUNT) {
         return "<p class=\"text-error\">" . $Language->Phrase("ExceedMaxEmailExport") . "</p>";
     }
     // Send email
     $Email = new cEmail();
     $Email->Sender = $sSender;
     // Sender
     $Email->Recipient = $sRecipient;
     // Recipient
     $Email->Cc = $sCc;
     // Cc
     $Email->Bcc = $sBcc;
     // Bcc
     $Email->Subject = $sEmailSubject;
     // Subject
     $Email->Format = $sContentType == "url" ? "text" : "html";
     $Email->Charset = EW_EMAIL_CHARSET;
     if ($sEmailMessage != "") {
         $sEmailMessage = ew_RemoveXSS($sEmailMessage);
         $sEmailMessage .= $sContentType == "url" ? "\r\n\r\n" : "<br><br>";
     }
     if ($sContentType == "url") {
         $sUrl = ew_ConvertFullUrl(ew_CurrentPage() . "?" . $this->ExportQueryString());
         $sEmailMessage .= $sUrl;
         // Send URL only
     } else {
         foreach ($gTmpImages as $tmpimage) {
             $Email->AddEmbeddedImage($tmpimage);
         }
         $sEmailMessage .= $EmailContent;
         // Send HTML
     }
     $Email->Content = $sEmailMessage;
     // Content
     $EventArgs = array();
     $bEmailSent = FALSE;
     if ($this->Email_Sending($Email, $EventArgs)) {
         $bEmailSent = $Email->Send();
     }
     // Check email sent status
     if ($bEmailSent) {
         // Update email sent count
         $_SESSION[EW_EXPORT_EMAIL_COUNTER]++;
         // Sent email success
         return "<p class=\"text-success\">" . $Language->Phrase("SendEmailSuccess") . "</p>";
         // Set up success message
     } else {
         // Sent email failure
         return "<p class=\"text-error\">" . $Email->SendErrDescription . "</p>";
     }
 }
コード例 #23
0
ファイル: Report1report.php プロジェクト: scintes/sistemas
            }
        }
        ?>
</span>
</td>
		<td<?php 
        echo $Report1->foto2->CellAttributes();
        ?>
>
<span>
<?php 
        if ($Report1->Export == "word" || $Report1->Export == "excel") {
            if ($Report1->foto2->HrefValue2 != "" && !empty($Report1->foto2->Upload->DbValue)) {
                ?>
<a href="<?php 
                echo ew_ConvertFullUrl($Report1->foto2->HrefValue2);
                ?>
"><?php 
                echo $Report1->foto2->FldCaption();
                ?>
</a>
<?php 
            }
        } elseif ($Report1->foto2->LinkAttributes() != "") {
            if (!empty($Report1->foto2->Upload->DbValue)) {
                ?>
<img src="<?php 
                echo $Report1->foto2->ViewValue;
                ?>
" alt="" style="border: 0;"<?php 
                echo $Report1->foto2->ViewAttributes();