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


PHP ew_ArrayToJson函数代码示例

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


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

示例1: ew_ValueSeparator

<?php 
            echo $arwrk[$rowcntwrk][1];
            if ($arwrk[$rowcntwrk][2] != "") {
                echo ew_ValueSeparator(1, $autobroadcast->realmid);
                echo $arwrk[$rowcntwrk][2];
            }
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
fautobroadcastadd.Lists["x_realmid"].Options = <?php 
    echo is_array($autobroadcast->realmid->EditValue) ? ew_ArrayToJson($autobroadcast->realmid->EditValue, 1) : "[]";
    ?>
;
</script>
</span><?php 
    echo $autobroadcast->realmid->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
if ($autobroadcast->weight->Visible) {
    // weight
    ?>
	<tr id="r_weight"<?php 
    echo $autobroadcast->RowAttributes();
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:31,代码来源:autobroadcastadd.php

示例2: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
fUsersadd.Lists["x_Type"].Options = <?php 
    echo is_array($Users->Type->EditValue) ? ew_ArrayToJson($Users->Type->EditValue, 1) : "[]";
    ?>
;
</script>
</span>
<?php 
    echo $Users->Type->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
?>
</table>
</td></tr></table>
<button class="btn btn-primary ewButton" name="btnAction" id="btnAction" type="submit"><?php 
开发者ID:evinw,项目名称:project_yess,代码行数:31,代码来源:Usersadd.php

示例3: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
ftbl_lesson_videoedit.Lists["x_lesson_id"].Options = <?php 
    echo is_array($tbl_lesson_video->lesson_id->EditValue) ? ew_ArrayToJson($tbl_lesson_video->lesson_id->EditValue, 1) : "[]";
    ?>
;
</script>
</span><?php 
    echo $tbl_lesson_video->lesson_id->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
if ($tbl_lesson_video->video_link->Visible) {
    // video_link
    ?>
	<tr id="r_video_link"<?php 
    echo $tbl_lesson_video->RowAttributes();
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:31,代码来源:tbl_lesson_videoedit.php

示例4: Page_Main

 function Page_Main()
 {
     global $objForm, $Language, $gsFormError;
     set_error_handler("ew_ErrorHandler");
     // Set up Breadcrumb
     //$this->SetupBreadcrumb(); // Not used
     // Process form if post back
     if ($objForm->GetValue("a_addopt") != "") {
         $this->CurrentAction = $objForm->GetValue("a_addopt");
         // Get form action
         $this->LoadFormValues();
         // Load form values
         // Validate form
         if (!$this->ValidateForm()) {
             $this->CurrentAction = "I";
             // Form error, reset action
             $this->setFailureMessage($gsFormError);
         }
     } else {
         // Not post back
         $this->CurrentAction = "I";
         // Display blank record
         $this->LoadDefaultValues();
         // Load default values
     }
     // Perform action based on action code
     switch ($this->CurrentAction) {
         case "I":
             // Blank record, no action required
             break;
         case "A":
             // Add new record
             $this->SendEmail = TRUE;
             // Send email on add success
             if ($this->AddRow()) {
                 // Add successful
                 $row = array();
                 $row["x_codigo"] = $this->codigo->DbValue;
                 $row["x_localidad"] = $this->localidad->DbValue;
                 $row["x_cp"] = $this->cp->DbValue;
                 $row["x_id_provincia"] = $this->id_provincia->DbValue;
                 if (!EW_DEBUG_ENABLED && ob_get_length()) {
                     ob_end_clean();
                 }
                 echo ew_ArrayToJson(array($row));
             } else {
                 $this->ShowMessage();
             }
             $this->Page_Terminate();
             exit;
     }
     // Render row
     $this->RowType = EW_ROWTYPE_ADD;
     // Render add type
     $this->ResetAttrs();
     $this->RenderRow();
 }
开发者ID:scintes,项目名称:sistemas,代码行数:57,代码来源:localidadesaddopt.php

示例5: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
ftbl_docadd.Lists["x_subject_general_faculty_id"].Options = <?php 
    echo is_array($tbl_doc->subject_general_faculty_id->EditValue) ? ew_ArrayToJson($tbl_doc->subject_general_faculty_id->EditValue, 1) : "[]";
    ?>
;
</script>
</span><?php 
    echo $tbl_doc->subject_general_faculty_id->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
?>
</table>
</div>
</td></tr></table>
<br>
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:31,代码来源:tbl_docadd.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: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
fShowedit.Lists["x_ID"].Options = <?php 
    echo is_array($Show->ID->EditValue) ? ew_ArrayToJson($Show->ID->EditValue, 1) : "[]";
    ?>
;
</script>
</span>
<?php 
    echo $Show->ID->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
?>
</table>
</td></tr></table>
<button class="btn btn-primary ewButton" name="btnAction" id="btnAction" type="submit"><?php 
开发者ID:evinw,项目名称:project_yess,代码行数:31,代码来源:Showedit.php

示例8: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
fUsersMetaadd.Lists["x_ID"].Options = <?php 
    echo is_array($UsersMeta->ID->EditValue) ? ew_ArrayToJson($UsersMeta->ID->EditValue, 1) : "[]";
    ?>
;
</script>
</span>
<?php 
    echo $UsersMeta->ID->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
if ($UsersMeta->EducationalStatus->Visible) {
    // EducationalStatus
    ?>
	<tr id="r_EducationalStatus">
开发者ID:evinw,项目名称:project_yess,代码行数:31,代码来源:UsersMetaadd.php

示例9: GetAutoFill

 function GetAutoFill($id, $val)
 {
     $rsarr = array();
     $rowcnt = 0;
     if (preg_match('/^x(\\d)*_socio_nro$/', $id)) {
         $sSqlWrk = "SELECT `cuit_cuil` AS FIELD0, `propietario` AS FIELD1, `comercio` AS FIELD2 FROM `socios`";
         $sWhereWrk = "(`socio_nro` = " . ew_AdjustSql($val) . ")";
         if (!$GLOBALS["v_total_estado_cuenta_x_anio_mes"]->UserIDAllow("info")) {
             $sWhereWrk = $GLOBALS["socios"]->AddUserIDFilter($sWhereWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->socio_nro, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $sSqlWrk .= " ORDER BY `comercio` DESC";
         if ($rs = ew_LoadRecordset($sSqlWrk)) {
             while ($rs && !$rs->EOF) {
                 $ar = array();
                 $this->cuit_cuil->setDbValue($rs->fields[0]);
                 $this->propietario->setDbValue($rs->fields[1]);
                 $this->comercio->setDbValue($rs->fields[2]);
                 $this->RowType == EW_ROWTYPE_EDIT;
                 $this->RenderEditRow();
                 $ar[] = $this->cuit_cuil->AutoFillOriginalValue ? $this->cuit_cuil->CurrentValue : $this->cuit_cuil->EditValue;
                 $ar[] = $this->propietario->CurrentValue;
                 $ar[] = $this->comercio->CurrentValue;
                 $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,代码行数:54,代码来源:cciag_v_total_estado_cuenta_x_anio_mesinfo.php

示例10: 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

示例11: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
fVideosedit.Lists["x_VideoCategory"].Options = <?php 
    echo is_array($Videos->VideoCategory->EditValue) ? ew_ArrayToJson($Videos->VideoCategory->EditValue, 1) : "[]";
    ?>
;
</script>
</span>
<?php 
    echo $Videos->VideoCategory->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
?>
</table>
</td></tr></table>
<button class="btn btn-primary ewButton" name="btnAction" id="btnAction" type="submit"><?php 
开发者ID:evinw,项目名称:project_yess,代码行数:31,代码来源:Videosedit.php

示例12: ew_ValueSeparator

<?php 
            echo $arwrk[$rowcntwrk][1];
            if ($arwrk[$rowcntwrk][2] != "") {
                echo ew_ValueSeparator(1, $account_access->id);
                echo $arwrk[$rowcntwrk][2];
            }
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
faccount_accessadd.Lists["x_id"].Options = <?php 
    echo is_array($account_access->id->EditValue) ? ew_ArrayToJson($account_access->id->EditValue, 1) : "[]";
    ?>
;
</script>
</span><?php 
    echo $account_access->id->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
if ($account_access->gmlevel->Visible) {
    // gmlevel
    ?>
	<tr id="r_gmlevel"<?php 
    echo $account_access->RowAttributes();
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:31,代码来源:account_accessadd.php

示例13: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
fdetail_nilaiadd.Lists["x_id_mapel"].Options = <?php 
    echo is_array($detail_nilai->id_mapel->EditValue) ? ew_ArrayToJson($detail_nilai->id_mapel->EditValue, 1) : "[]";
    ?>
;
</script>
</span>
<?php 
    echo $detail_nilai->id_mapel->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
if ($detail_nilai->nilai_afektif->Visible) {
    // nilai_afektif
    ?>
	<tr id="r_nilai_afektif">
开发者ID:agnium-academy,项目名称:abyor-3-web,代码行数:31,代码来源:detail_nilaiadd.php

示例14: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
ftbl_teacheredit.Lists["x_teacher_dept"].Options = <?php 
    echo is_array($tbl_teacher->teacher_dept->EditValue) ? ew_ArrayToJson($tbl_teacher->teacher_dept->EditValue, 1) : "[]";
    ?>
;
</script>
</span><?php 
    echo $tbl_teacher->teacher_dept->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
if ($tbl_teacher->teacher_rate->Visible) {
    // teacher_rate
    ?>
	<tr id="r_teacher_rate"<?php 
    echo $tbl_teacher->RowAttributes();
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:31,代码来源:tbl_teacheredit.php

示例15: is_array

"<?php 
            echo $selwrk;
            ?>
>
<?php 
            echo $arwrk[$rowcntwrk][1];
            ?>
</option>
<?php 
        }
    }
    ?>
</select>
<script type="text/javascript">
fEvaluateAnswersadd.Lists["x_ID"].Options = <?php 
    echo is_array($EvaluateAnswers->ID->EditValue) ? ew_ArrayToJson($EvaluateAnswers->ID->EditValue, 1) : "[]";
    ?>
;
</script>
</span>
<?php 
    echo $EvaluateAnswers->ID->CustomMsg;
    ?>
</td>
	</tr>
<?php 
}
?>
</table>
</td></tr></table>
<button class="btn btn-primary ewButton" name="btnAction" id="btnAction" type="submit"><?php 
开发者ID:evinw,项目名称:project_yess,代码行数:31,代码来源:EvaluateAnswersadd.php


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