本文整理汇总了PHP中ew_InitArray函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_InitArray函数的具体用法?PHP ew_InitArray怎么用?PHP ew_InitArray使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_InitArray函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Page_Main
function Page_Main()
{
global $Language;
$this->ReportGroups =& ew_InitArray(2, NULL);
$this->ReportCounts =& ew_InitArray(2, 0);
$this->LevelBreak =& ew_InitArray(2, FALSE);
$this->ReportTotals =& ew_Init2DArray(2, 2, 0);
$this->ReportMaxs =& ew_Init2DArray(2, 2, 0);
$this->ReportMins =& ew_Init2DArray(2, 2, 0);
// Set up Breadcrumb
$this->SetupBreadcrumb();
}
示例2: Page_Main
function Page_Main()
{
global $Kitchen_Report_22D2;
$this->vGrps = ew_InitArray(4, NULL);
$this->nCntRecs = ew_InitArray(4, 0);
$this->bLvlBreak = ew_InitArray(4, FALSE);
$this->nTotals = ew_Init2DArray(4, 12, 0);
$this->nMaxs = ew_Init2DArray(4, 12, 0);
$this->nMins = ew_Init2DArray(4, 12, 0);
}
示例3: Page_Main
function Page_Main()
{
global $Security, $Language;
global $EW_RELATED_LANGUAGE_FOLDER;
global $Breadcrumb;
$url = substr(ew_CurrentUrl(), strrpos(ew_CurrentUrl(), "/") + 1);
$Breadcrumb = new cBreadcrumb();
$Breadcrumb->Add("list", "nivel_usuario", "nivel_usuariolist.php", "", "nivel_usuario");
$Breadcrumb->Add("userpriv", "UserLevelPermission", $url);
// Try to load PHP Report Maker language file
// Note: The langauge IDs must be the same in both projects
$Security->LoadUserLevelFromConfigFile($this->UserLevelList, $this->UserLevelPrivList, $this->TableList, TRUE);
if ($EW_RELATED_LANGUAGE_FOLDER != "") {
$this->ReportLanguage = new cLanguage($EW_RELATED_LANGUAGE_FOLDER);
}
$this->TableNameCount = count($this->TableList);
$this->Privileges =& ew_InitArray($this->TableNameCount, 0);
// Get action
if (@$_POST["a_edit"] == "") {
$this->CurrentAction = "I";
// Display with input box
// Load key from QueryString
if (@$_GET["codigo"] != "") {
$this->codigo->setQueryStringValue($_GET["codigo"]);
} else {
$this->Page_Terminate("nivel_usuariolist.php");
// Return to list
}
if ($this->codigo->QueryStringValue == "-1") {
$this->Disabled = " disabled=\"disabled\"";
} else {
$this->Disabled = "";
}
} else {
$this->CurrentAction = $_POST["a_edit"];
// Get fields from form
$this->codigo->setFormValue($_POST["x_codigo"]);
for ($i = 0; $i < $this->TableNameCount; $i++) {
if (defined("EW_USER_LEVEL_COMPAT")) {
$this->Privileges[$i] = intval(@$_POST["Add_" . $i]) + intval(@$_POST["Delete_" . $i]) + intval(@$_POST["Edit_" . $i]) + intval(@$_POST["List_" . $i]);
} else {
$this->Privileges[$i] = intval(@$_POST["Add_" . $i]) + intval(@$_POST["Delete_" . $i]) + intval(@$_POST["Edit_" . $i]) + intval(@$_POST["List_" . $i]) + intval(@$_POST["View_" . $i]) + intval(@$_POST["Search_" . $i]);
}
}
}
switch ($this->CurrentAction) {
case "I":
// Display
if (!$Security->SetUpUserLevelEx()) {
// Get all User Level info
$this->Page_Terminate("nivel_usuariolist.php");
}
// Return to list
break;
case "U":
// Update
if ($this->EditRow()) {
// Update record based on key
if ($this->getSuccessMessage() == "") {
$this->setSuccessMessage($Language->Phrase("UpdateSuccess"));
}
// Set up update success message
// Alternatively, comment out the following line to go back to this page
$this->Page_Terminate("nivel_usuariolist.php");
// Return to list
}
}
}
示例4: Page_Main
function Page_Main()
{
global $Delivery_Report_1;
$this->vGrps = ew_InitArray(4, NULL);
$this->nCntRecs = ew_InitArray(4, 0);
$this->bLvlBreak = ew_InitArray(4, FALSE);
$this->nTotals = ew_Init2DArray(4, 7, 0);
$this->nMaxs = ew_Init2DArray(4, 7, 0);
$this->nMins = ew_Init2DArray(4, 7, 0);
}
示例5: ew_InitArray
function &ew_Init2DArray($len1, $len2, $value)
{
return ew_InitArray($len1, ew_InitArray($len2, $value));
}
示例6: Page_Main
function Page_Main()
{
global $Security, $Language, $tbl_user_level;
if (!is_array($GLOBALS["EW_USER_LEVEL_TABLE_NAME"])) {
$this->setMessage($Language->Phrase("NoTableGenerated"));
$this->Page_Terminate("tbl_user_levellist.php");
// Return to list
}
$this->TableNameCount = count($GLOBALS["EW_USER_LEVEL_TABLE_NAME"]);
$this->TableCaptionCount = count($GLOBALS["EW_USER_LEVEL_TABLE_CAPTION"]);
$this->arPriv =& ew_InitArray($this->TableNameCount, 0);
// Get action
if (@$_POST["a_edit"] == "") {
$tbl_user_level->CurrentAction = "I";
// Display with input box
// Load key from QueryString
if (@$_GET["userlevelid"] != "") {
$tbl_user_level->userlevelid->setQueryStringValue($_GET["userlevelid"]);
} else {
$this->Page_Terminate("tbl_user_levellist.php");
// Return to list
}
if ($tbl_user_level->userlevelid->QueryStringValue == "-1") {
$this->sDisabled = " disabled=\"disabled\"";
} else {
$this->sDisabled = "";
}
} else {
$tbl_user_level->CurrentAction = $_POST["a_edit"];
// Get fields from form
$tbl_user_level->userlevelid->setFormValue($_POST["x_userlevelid"]);
for ($i = 0; $i < $this->TableNameCount; $i++) {
if (defined("EW_USER_LEVEL_COMPAT")) {
$this->arPriv[$i] = intval(@$_POST["Add_" . $i]) + intval(@$_POST["Delete_" . $i]) + intval(@$_POST["Edit_" . $i]) + intval(@$_POST["List_" . $i]);
} else {
$this->arPriv[$i] = intval(@$_POST["Add_" . $i]) + intval(@$_POST["Delete_" . $i]) + intval(@$_POST["Edit_" . $i]) + intval(@$_POST["List_" . $i]) + intval(@$_POST["View_" . $i]) + intval(@$_POST["Search_" . $i]);
}
}
}
switch ($tbl_user_level->CurrentAction) {
case "I":
// Display
$Security->SetUpUserLevelEx();
// Get all User Level info
break;
case "U":
// Update
if ($this->EditRow()) {
// Update record based on key
$this->setMessage($Language->Phrase("UpdateSuccess"));
// Set update success message
// Alternatively, comment out the following line to go back to this page
$this->Page_Terminate("tbl_user_levellist.php");
// Return to list
}
}
}
示例7: Page_Main
function Page_Main()
{
global $Ingredients_Report_2;
$this->vGrps = ew_InitArray(3, NULL);
$this->nCntRecs = ew_InitArray(3, 0);
$this->bLvlBreak = ew_InitArray(3, FALSE);
$this->nTotals = ew_Init2DArray(3, 4, 0);
$this->nMaxs = ew_Init2DArray(3, 4, 0);
$this->nMins = ew_Init2DArray(3, 4, 0);
}
示例8: ew_Init2DArray
function ew_Init2DArray($iLen1, $iLen2, $vValue)
{
return ew_InitArray($iLen1, ew_InitArray($iLen2, $vValue));
}
示例9: Page_Main
function Page_Main()
{
global $Language;
$this->ReportGroups =& ew_InitArray(1, NULL);
$this->ReportCounts =& ew_InitArray(1, 0);
$this->LevelBreak =& ew_InitArray(1, FALSE);
$this->ReportTotals =& ew_Init2DArray(1, 3, 0);
$this->ReportMaxs =& ew_Init2DArray(1, 3, 0);
$this->ReportMins =& ew_Init2DArray(1, 3, 0);
}