• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ew_ConvertToUtf8函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: ew_JsEncode

function ew_JsEncode($val)
{
    $val = strval($val);
    if (EW_IS_DOUBLE_BYTE) {
        $val = ew_ConvertToUtf8($val);
    }
    $val = str_replace("\\", "\\\\", $val);
    $val = str_replace("'", "\\'", $val);
    $val = str_replace("\r\n", "<br>", $val);
    $val = str_replace("\r", "<br>", $val);
    $val = str_replace("\n", "<br>", $val);
    if (EW_IS_DOUBLE_BYTE) {
        $val = ew_ConvertFromUtf8($val);
    }
    return $val;
}
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:16,代码来源:phpfn9.php


示例17: GetLookupValues

 function GetLookupValues($sql, $dbid)
 {
     $rsarr = array();
     $rowcnt = 0;
     if ($rs = Conn($dbid)->Execute($sql)) {
         $rowcnt = $rs->RecordCount();
         $fldcnt = $rs->FieldCount();
         $rsarr = $rs->GetRows();
         $rs->Close();
     }
     // Clean output buffer
     if (ob_get_length()) {
         ob_clean();
     }
     // Format date
     $ardt = array();
     for ($j = 0; $j < $fldcnt; $j++) {
         $ardt[$j] = @$_POST["df" . $j];
     }
     // 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 ($ardt[$j] != "" && intval($ardt[$j]) > 0) {
                     // Format date
                     $str = ew_FormatDateTime($str, $ardt[$j]);
                 }
                 if (isset($post["keepCRLF"])) {
                     $str = str_replace(array("\r", "\n", "\t"), array("\\r", "\\n", "\\t"), $str);
                 } else {
                     $str = str_replace(array("\r", "\n", "\t"), array(" ", " ", " "), $str);
                 }
                 $rsarr[$i][$j] = $str;
             }
         }
     }
     echo ew_ArrayToJson($rsarr);
 }
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:40,代码来源:ewlookup12.php


示例18: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm;
     $this->nombre->CurrentValue = ew_ConvertToUtf8($this->nombre->FormValue);
     $this->direccion->CurrentValue = ew_ConvertToUtf8($this->direccion->FormValue);
     $this->fecha_nacimiento->CurrentValue = ew_ConvertToUtf8($this->fecha_nacimiento->FormValue);
     $this->fecha_nacimiento->CurrentValue = ew_UnFormatDateTime($this->fecha_nacimiento->CurrentValue, 7);
     $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->fecha_inicio->CurrentValue = ew_ConvertToUtf8($this->fecha_inicio->FormValue);
     $this->fecha_inicio->CurrentValue = ew_UnFormatDateTime($this->fecha_inicio->CurrentValue, 7);
     $this->cetegoria->CurrentValue = ew_ConvertToUtf8($this->cetegoria->FormValue);
     $this->datos->CurrentValue = ew_ConvertToUtf8($this->datos->FormValue);
 }
开发者ID:scintes,项目名称:sistemas,代码行数:15,代码来源:choferesaddopt.php


示例19: RestoreFormValues

 function RestoreFormValues()
 {
     global $objForm;
     $this->tipo_gasto->CurrentValue = ew_ConvertToUtf8($this->tipo_gasto->FormValue);
     $this->clase->CurrentValue = ew_ConvertToUtf8($this->clase->FormValue);
 }
开发者ID:scintes,项目名称:sistemas,代码行数:6,代码来源:tipo_gastosaddopt.php


示例20: GetAutoFill

 function GetAutoFill($id, $val)
 {
     $rsarr = array();
     $rowcnt = 0;
     if (preg_match('/^x(\\d)*_id_tramite$/', $id)) {
         $sSqlWrk = "SELECT `Titulo` AS FIELD0 FROM `tramites`";
         $sWhereWrk = "(`codigo` = " . ew_AdjustSql($val) . ")";
         $lookuptblfilter = "`estado`<>'F'";
         if (strval($lookuptblfilter) != "") {
             ew_AddFilter($sWhereWrk, $lookuptblfilter);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->id_tramite, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $sSqlWrk .= " ORDER BY `fecha` ASC";
         if ($rs = ew_LoadRecordset($sSqlWrk)) {
             while ($rs && !$rs->EOF) {
                 $ar = array();
                 $this->titulo->setDbValue($rs->fields[0]);
                 $this->RowType == EW_ROWTYPE_EDIT;
                 $this->RenderEditRow();
                 $ar[] = $this->titulo->AutoFillOriginalValue ? $this->titulo->CurrentValue : $this->titulo->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,代码行数:51,代码来源:cciag_seguimiento_tramitesinfo.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ew_CurrentDate函数代码示例发布时间:2022-05-15
下一篇:
PHP ew_ConvertFullUrl函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap