当前位置: 首页>>代码示例>>PHP>>正文


PHP ew_ConvertToUtf8函数代码示例

本文整理汇总了PHP中ew_ConvertToUtf8函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_ConvertToUtf8函数的具体用法?PHP ew_ConvertToUtf8怎么用?PHP ew_ConvertToUtf8使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ew_ConvertToUtf8函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm, $t_region_du_monde;
     $t_region_du_monde->id->CurrentValue = ew_ConvertToUtf8($t_region_du_monde->id->FormValue);
     $t_region_du_monde->nom->CurrentValue = ew_ConvertToUtf8($t_region_du_monde->nom->FormValue);
 }
开发者ID:Razinsky,项目名称:echaude-com,代码行数:6,代码来源:t_region_du_mondeaddopt.php

示例2: GetLookupValues

function GetLookupValues($Sql)
{
    global $LnkType, $LnkFld, $LnkCount, $LnkDisp1, $LnkDisp2;
    $conn = ew_Connect();
    if ($rs = $conn->Execute($Sql)) {
        $rsarr = $rs->GetRows();
        $rs->Close();
    }
    $conn->Close();
    // Output
    if (is_array($rsarr) && count($rsarr) > 0) {
        if ($LnkType == "2") {
            // Auto fill
            $i = 0;
            while ($i < count($rsarr[0]) - 1) {
                $str = $rsarr[0][$i];
                $str = ew_RemoveCrLf($str);
                if (strval($rsarr[0][$i + 1]) != "") {
                    $str .= ", " . ew_RemoveCrLf(strval($rsarr[0][$i + 1]));
                }
                echo ew_ConvertToUtf8($str) . "\r";
                $i += 2;
            }
        } else {
            $rsarrcnt = count($rsarr);
            for ($i = 0; $i < $rsarrcnt; $i++) {
                if (intval(count($rsarr[$i]) / 2) == intval($LnkCount)) {
                    // Process link field
                    if ($LnkType != "1") {
                        $str = $rsarr[$i][$LnkFld];
                        $str = ew_RemoveCrLf($str);
                        echo ew_ConvertToUtf8($str) . "\r";
                    }
                    // Process display field
                    if (intval($LnkDisp1) >= 0) {
                        $str = $rsarr[$i][$LnkDisp1];
                        $str = ew_RemoveCrLf($str);
                    } else {
                        $str = "";
                    }
                    echo ew_ConvertToUtf8($str) . "\r";
                    // Process display field 2
                    if (intval($LnkDisp2) >= 0) {
                        $str = $rsarr[$i][$LnkDisp2];
                        $str = ew_RemoveCrLf($str);
                    } else {
                        $str = "";
                    }
                    echo ew_ConvertToUtf8($str) . "\r";
                }
            }
        }
    }
}
开发者ID:BGCX261,项目名称:zhss-svn-to-git,代码行数:54,代码来源:ewlookup50.php

示例3: GetLookupValues

 function GetLookupValues($Sql)
 {
     $rsarr = array();
     $rowcnt = 0;
     $conn = ew_Connect();
     if ($rs = $conn->Execute($Sql)) {
         $rowcnt = $rs->RecordCount();
         $fldcnt = $rs->FieldCount();
         $rsarr = $rs->GetRows();
         $rs->Close();
     }
     $conn->Close();
     // Output
     if (is_array($rsarr) && $rowcnt > 0) {
         for ($i = 0; $i < $rowcnt; $i++) {
             for ($j = 0; $j < $fldcnt; $j++) {
                 $str = strval($rsarr[$i][$j]);
                 $str = $this->RemoveDelimiters($str);
                 echo ew_ConvertToUtf8($str . EW_FIELD_DELIMITER);
             }
             echo ew_ConvertToUtf8(EW_RECORD_DELIMITER);
         }
     }
 }
开发者ID:Razinsky,项目名称:echaude-com,代码行数:24,代码来源:ewlookup8.php

示例4: RestoreFormValues

 function RestoreFormValues()
 {
     global $Ingredients;
     $Ingredients->IngredientID->CurrentValue = ew_ConvertToUtf8($Ingredients->IngredientID->FormValue);
     $Ingredients->IngredientName->CurrentValue = ew_ConvertToUtf8($Ingredients->IngredientName->FormValue);
     $Ingredients->allergen->CurrentValue = ew_ConvertToUtf8($Ingredients->allergen->FormValue);
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:7,代码来源:Ingredientsaddopt.php

示例5: AddField

 function AddField($name, $value)
 {
     if (is_null($value)) {
         $value = $this->NullValue;
     }
     if (EW_IS_PHP5) {
         $value = ew_ConvertToUtf8($value);
         // Convert to UTF-8
         $xmlfld = $this->XmlDoc->createElement($name);
         $this->XmlRow->appendChild($xmlfld);
         $xmlfld->appendChild($this->XmlDoc->createTextNode($value));
     } else {
         $value = ew_Convert(EW_ENCODING, EW_XML_ENCODING, $value);
         // Convert to output encoding
         $this->XML .= "<{$name}>" . htmlspecialchars($value) . "</{$name}>";
     }
 }
开发者ID:BGCX261,项目名称:zhss-svn-to-git,代码行数:17,代码来源:phpfn50.php

示例6: GetLookupValues

 function GetLookupValues($sql)
 {
     $rsarr = array();
     $rowcnt = 0;
     $conn = ew_Connect();
     if ($rs = $conn->Execute($sql)) {
         $rowcnt = $rs->RecordCount();
         $fldcnt = $rs->FieldCount();
         $rsarr = $rs->GetRows();
         $rs->Close();
     }
     $conn->Close();
     // Clean output buffer
     if (!EW_DEBUG_ENABLED && ob_get_length()) {
         ob_end_clean();
     }
     // Output
     if (is_array($rsarr) && $rowcnt > 0) {
         for ($i = 0; $i < $rowcnt; $i++) {
             for ($j = 0; $j < $fldcnt; $j++) {
                 $str = strval($rsarr[$i][$j]);
                 $str = ew_ConvertToUtf8($str);
                 if (isset($post["keepCRLF"])) {
                     $str = str_replace(array("\r", "\n"), array("\\r", "\\n"), $str);
                 } else {
                     $str = str_replace(array("\r", "\n"), array(" ", " "), $str);
                 }
                 $rsarr[$i][$j] = $str;
             }
         }
     }
     echo ew_ArrayToJson($rsarr);
 }
开发者ID:scintes,项目名称:sistemas,代码行数:33,代码来源:cciag_ewlookup10.php

示例7: RestoreFormValues

 function RestoreFormValues()
 {
     global $Menus;
     $Menus->MenuID->CurrentValue = ew_ConvertToUtf8($Menus->MenuID->FormValue);
     $Menus->MenuName->CurrentValue = ew_ConvertToUtf8($Menus->MenuName->FormValue);
     $Menus->Sequence->CurrentValue = ew_ConvertToUtf8($Menus->Sequence->FormValue);
     $Menus->Active->CurrentValue = ew_ConvertToUtf8($Menus->Active->FormValue);
     $Menus->packing_slip_sequence->CurrentValue = ew_ConvertToUtf8($Menus->packing_slip_sequence->FormValue);
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:9,代码来源:Menusaddopt.php

示例8: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm;
     $this->vl_media_type_name->CurrentValue = ew_ConvertToUtf8($this->vl_media_type_name->FormValue);
 }
开发者ID:cahilbey,项目名称:VL-AWS-Test,代码行数:5,代码来源:vl_media_type_listaddopt.php

示例9: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm;
     $this->cuit_cuil->CurrentValue = ew_ConvertToUtf8($this->cuit_cuil->FormValue);
     $this->razon_social->CurrentValue = ew_ConvertToUtf8($this->razon_social->FormValue);
     $this->responsable->CurrentValue = ew_ConvertToUtf8($this->responsable->FormValue);
     $this->tel->CurrentValue = ew_ConvertToUtf8($this->tel->FormValue);
     $this->cel->CurrentValue = ew_ConvertToUtf8($this->cel->FormValue);
     $this->_email->CurrentValue = ew_ConvertToUtf8($this->_email->FormValue);
     $this->direccion->CurrentValue = ew_ConvertToUtf8($this->direccion->FormValue);
     $this->id_localidad->CurrentValue = ew_ConvertToUtf8($this->id_localidad->FormValue);
 }
开发者ID:scintes,项目名称:sistemas,代码行数:12,代码来源:clientesaddopt.php

示例10: ob_end_clean

        exit;
    }
} else {
    $rs->Close();
    ob_end_clean();
    echo "Option already exists";
    exit;
}
if ($LinkField == "") {
    // Get new link field value
    $sSql = "SELECT " . EW_DB_QUOTE_START . $LinkFieldName . EW_DB_QUOTE_END . " FROM " . EW_DB_QUOTE_START . $LookupTableName . EW_DB_QUOTE_END . " WHERE " . $Where;
    if ($rs = $conn->Execute($sSql)) {
        if (!$rs->EOF) {
            $LinkField = $rs->fields[0];
            if ($DisplayFieldName == $LinkFieldName) {
                $DisplayField = $LinkField;
            }
            if ($DisplayField2Name == $LinkFieldName) {
                $DisplayField2 = $LinkField;
            }
        }
        $rs->Close();
    }
}
$conn->Close();
ob_end_clean();
echo "OK\r";
echo ew_ConvertToUtf8($LinkField) . "\r";
echo ew_ConvertToUtf8($DisplayField) . "\r";
echo ew_ConvertToUtf8($DisplayField2);
exit;
开发者ID:BGCX261,项目名称:zhss-svn-to-git,代码行数:31,代码来源:ewaddopt50.php

示例11: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm, $t_sous_regions;
     $t_sous_regions->id->CurrentValue = ew_ConvertToUtf8($t_sous_regions->id->FormValue);
     $t_sous_regions->nom->CurrentValue = ew_ConvertToUtf8($t_sous_regions->nom->FormValue);
     $t_sous_regions->regions->CurrentValue = ew_ConvertToUtf8($t_sous_regions->regions->FormValue);
 }
开发者ID:Razinsky,项目名称:echaude-com,代码行数:7,代码来源:t_sous_regionsaddopt.php

示例12: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm, $t_stockage;
     $t_stockage->id->CurrentValue = ew_ConvertToUtf8($t_stockage->id->FormValue);
     $t_stockage->emplacement->CurrentValue = ew_ConvertToUtf8($t_stockage->emplacement->FormValue);
 }
开发者ID:Razinsky,项目名称:echaude-com,代码行数:6,代码来源:t_stockageaddopt.php

示例13: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm;
     $this->id_rubro->CurrentValue = ew_ConvertToUtf8($this->id_rubro->FormValue);
     $this->actividad->CurrentValue = ew_ConvertToUtf8($this->actividad->FormValue);
     $this->descripcion->CurrentValue = ew_ConvertToUtf8($this->descripcion->FormValue);
     $this->activa->CurrentValue = ew_ConvertToUtf8($this->activa->FormValue);
 }
开发者ID:scintes,项目名称:sistemas,代码行数:8,代码来源:cciag_actividadaddopt.php

示例14: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm, $v_all_vins;
     $v_all_vins->id->CurrentValue = ew_ConvertToUtf8($v_all_vins->id->FormValue);
     $v_all_vins->label->CurrentValue = ew_ConvertToUtf8($v_all_vins->label->FormValue);
 }
开发者ID:Razinsky,项目名称:echaude-com,代码行数:6,代码来源:v_all_vinsaddopt.php

示例15: GetAutoFill

 function GetAutoFill($id, $val)
 {
     $rsarr = array();
     $rowcnt = 0;
     if (preg_match('/^x(\\d)*_id_cliente$/', $id)) {
         $sSqlWrk = "SELECT `direccion` AS FIELD0, `direccion` AS FIELD1, `id_localidad` AS FIELD2, `id_localidad` AS FIELD3 FROM `clientes`";
         $sWhereWrk = "(`codigo` = " . ew_AdjustSql($val) . ")";
         // Call Lookup selecting
         $this->Lookup_Selecting($this->id_cliente, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $sSqlWrk .= " ORDER BY `razon_social` ASC";
         if ($rs = ew_LoadRecordset($sSqlWrk)) {
             while ($rs && !$rs->EOF) {
                 $ar = array();
                 $this->Origen->setDbValue($rs->fields[0]);
                 $this->Destino->setDbValue($rs->fields[1]);
                 $this->id_localidad_origen->setDbValue($rs->fields[2]);
                 $this->id_localidad_destino->setDbValue($rs->fields[3]);
                 $this->RowType == EW_ROWTYPE_EDIT;
                 $this->RenderEditRow();
                 $ar[] = $this->Origen->AutoFillOriginalValue ? $this->Origen->CurrentValue : $this->Origen->EditValue;
                 $ar[] = $this->Destino->AutoFillOriginalValue ? $this->Destino->CurrentValue : $this->Destino->EditValue;
                 $ar[] = $this->id_localidad_origen->CurrentValue;
                 $ar[] = $this->id_localidad_destino->CurrentValue;
                 $rowcnt += 1;
                 $rsarr[] = $ar;
                 $rs->MoveNext();
             }
             $rs->Close();
         }
     }
     if (preg_match('/^x(\\d)*_id_tipo_carga$/', $id)) {
         $sSqlWrk = "SELECT `precio_base` AS FIELD0, `porcentaje_comision` AS FIELD1 FROM `tipo_cargas`";
         $sWhereWrk = "(`codigo` = " . ew_AdjustSql($val) . ")";
         // Call Lookup selecting
         $this->Lookup_Selecting($this->id_tipo_carga, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $sSqlWrk .= " ORDER BY `Tipo_carga` ASC";
         if ($rs = ew_LoadRecordset($sSqlWrk)) {
             while ($rs && !$rs->EOF) {
                 $ar = array();
                 $this->tarifa->setDbValue($rs->fields[0]);
                 $this->porcentaje->setDbValue($rs->fields[1]);
                 $this->RowType == EW_ROWTYPE_EDIT;
                 $this->RenderEditRow();
                 $ar[] = $this->tarifa->AutoFillOriginalValue ? $this->tarifa->CurrentValue : $this->tarifa->EditValue;
                 $ar[] = $this->porcentaje->AutoFillOriginalValue ? $this->porcentaje->CurrentValue : $this->porcentaje->EditValue;
                 $rowcnt += 1;
                 $rsarr[] = $ar;
                 $rs->MoveNext();
             }
             $rs->Close();
         }
     }
     // Output
     if (is_array($rsarr) && $rowcnt > 0) {
         $fldcnt = count($rsarr[0]);
         for ($i = 0; $i < $rowcnt; $i++) {
             for ($j = 0; $j < $fldcnt; $j++) {
                 $str = strval($rsarr[$i][$j]);
                 $str = ew_ConvertToUtf8($str);
                 if (isset($post["keepCRLF"])) {
                     $str = str_replace(array("\r", "\n"), array("\\r", "\\n"), $str);
                 } else {
                     $str = str_replace(array("\r", "\n"), array(" ", " "), $str);
                 }
                 $rsarr[$i][$j] = $str;
             }
         }
         return ew_ArrayToJson($rsarr);
     } else {
         return FALSE;
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:78,代码来源:hoja_rutasinfo.php


注:本文中的ew_ConvertToUtf8函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。