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


PHP GetSession函数代码示例

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


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

示例1: Grid1_Load

function Grid1_Load($va)
{
    global $scDb;
    $cUserName = GetSession("cSession_UserName");
    $cLv_Admin = scSys::GetConfig("sc_admin");
    $cLv = GetSession("cSession_SCLevel");
    $cLimit = $va['offset'] . "," . $va['limit'];
    //limit
    $vaOrder = array();
    if (isset($va['sort'])) {
        unset($va['sort'][13]);
        unset($va['sort'][14]);
        foreach ($va['sort'] as $key => $vaValue) {
            $vaOrder[] = $vaValue['field'] . " " . $vaValue['direction'];
        }
    }
    $cOrder = implode(",", $vaOrder);
    if ($cOrder == "") {
        $cOrder = "status ASC";
    }
    //init order grid
    $dTglAwal = scDate::Date2String($va['dTglAwal']);
    $dTglAkhir = scDate::Date2String($va['dTglAkhir']);
    $cWhere_opt = "";
    if ($va['optStatusF'] !== "-") {
        $cWhere_opt = " AND status = '{$va['optStatusF']}' ";
    }
    $vaWhere = array();
    if (isset($va['search'])) {
        unset($va['search'][13]);
        unset($va['search'][14]);
        foreach ($va['search'] as $key => $vaValue) {
            $vaWhere[] = $vaValue['field'] . " like '%" . $vaValue['value'] . "%'";
        }
    }
    //init where grid
    $cWhere = "date >= '{$dTglAwal}' AND date <= '{$dTglAkhir}' " . $cWhere_opt . (!empty($vaWhere) ? " AND (" . implode(" OR ", $vaWhere) . ")" : "");
    $vaReturn = array();
    $dbData = $scDb->Browse("sppd", "*", $cWhere, "", "", $cOrder, $cLimit);
    $dbDataNL = $scDb->Browse("sppd", "*", $cWhere);
    while ($dbRow = $scDb->GetRow($dbData)) {
        $dbRow['recid'] = $dbRow['code'];
        $cStatus = $dbRow['status'];
        $dbRow['code'] = '<a class="a-click" onClick="OBJFORM_NEW.trsppd.Print(\'' . $dbRow['recid'] . '\')">' . $dbRow['recid'] . '</a>';
        $dbRow['code'] = html_entity_decode($dbRow['code']);
        $dbRow['status'] = html_entity_decode(sppd::GetStatus($dbRow['status'], true));
        $dbRow['date'] = scDate::String2Date($dbRow['date']);
        $dbRow['date_go'] = scDate::String2Date($dbRow['date_go']);
        $dbRow['date_back'] = scDate::String2Date($dbRow['date_back']);
        $dbRow['letter_date'] = scDate::String2Date($dbRow['letter_date']);
        $dbRow['nip_pejabat'] = scSys::GetKeteranganOne("nama", "nip = '{$dbRow['nip_pejabat']}'", "pegawai");
        $dbRow['nip_leader'] = scSys::GetKeteranganOne("nama", "nip = '{$dbRow['nip_leader']}'", "pegawai");
        $dbRow['username'] = scSys::GetKeteranganOne("FullName", "UserName = '{$dbRow['username']}'", "username");
        $vaReturn[] = $dbRow;
    }
    $vaReturn = array("total" => $scDb->Rows($dbDataNL), "records" => $vaReturn);
    echo json_encode($vaReturn);
}
开发者ID:chanif,项目名称:webapp_sppd,代码行数:58,代码来源:rptsppd.ajax.php

示例2: GetTMP_File

 public static function GetTMP_File($cDir, $cFileLoc, $va)
 {
     unset($va['file']);
     $cTMP = self::GetTMP();
     $cFile = $cTMP . $cDir . "/" . md5($cFileLoc) . "/";
     self::CreateDir($cFile);
     $cFile .= md5(implode(",", $va) . date("Ym") . GetSession("cSession_UserName") . session_id()) . ".sctmp";
     return $cFile;
 }
开发者ID:chanif,项目名称:webapp_sppd,代码行数:9,代码来源:sc.dir.php

示例3: GetData_Menu

 public static function GetData_Menu($cPath = "", $cSession = "", $cmenu_key_set = "", $cmodul_name = "")
 {
     $vaReturn = array();
     $vaReturn_Menu = array();
     $lEmpty = true;
     if ($cSession !== "") {
         $vaReturn = GetSession($cSession);
         if ($vaReturn !== "") {
             $lEmpty = false;
             $vaReturn = json_decode($vaReturn, true);
         }
     }
     if ($lEmpty) {
         if ($cPath == "") {
             $cFileLoc = self::$cFileLoc;
         } else {
             $cFileLoc = $cPath . "scmenu.menu.php";
         }
         if (is_file($cFileLoc)) {
             $vaFile = file($cFileLoc);
             if (is_array($vaFile)) {
                 $vaReturn_Menu = $nkey_pos = 0;
                 $ckey_pos = 0;
                 $vakey_pos = array();
                 $vaSet = array();
                 foreach ($vaFile as $ckeyfile => $cvalue) {
                     $cIdentifier = strpos($cvalue, "#");
                     if ($cIdentifier === false && trim($cvalue) !== "" && strpos($cvalue, "<?php die('Sapeltu Inc.'); ?>") !== 0) {
                         $nPos = strpos($cvalue, "[");
                         $vaMenu = scArray::Menu2Array($cvalue, $cPath, $cmodul_name);
                         if ($nPos == 0) {
                             $vakey_pos = array();
                         }
                         $cmenu_key = $vaMenu['cMd5'];
                         $vakey_pos[$nPos] = $cmenu_key;
                         self::SetArray_Tree($vaReturn, $vakey_pos, $nPos, $cmenu_key, $vaMenu);
                     }
                 }
             }
             if (is_array($vaReturn)) {
                 SaveSession($cSession, json_encode($vaReturn));
                 $vaReturn_Menu = $vaReturn;
             }
             if ($cmenu_key_set !== "") {
                 $vaReturn_Menu = self::GetData_Menu($cFileLoc, $cSession, $cmenu_key_set);
             }
         }
     } else {
         if ($cmenu_key_set == "") {
             $vaReturn_Menu = $vaReturn;
         } else {
             $vaReturn_Menu = self::GetData_Menuchildren($vaReturn, $cmenu_key_set);
         }
     }
     return $vaReturn_Menu;
 }
开发者ID:chanif,项目名称:webapp_sppd,代码行数:56,代码来源:sc.menu.php

示例4: Logout

function Logout($va)
{
    global $scDb;
    $cUserName = GetSession("cSession_UserName");
    $vaArray = array("LastLogin" => "0000-00-00 00:00:00");
    $scDb->Edit("username", $vaArray, "UserName = '{$cUserName}'", false);
    echo '
				window.location = "./logout.php" ; 
			';
}
开发者ID:chanif,项目名称:webapp_sppd,代码行数:10,代码来源:login.ajax.php

示例5: Process

 /**
  * Process
  * Check if we are viewing statistics as another user or not so we can change the links created.
  * We will also display a warning about which user we are creating the tracking code for.
  *
  * @see TrackPoint_Functions::Process
  */
 function Process()
 {
     $session =& GetSession();
     $switched_user = $session->Get('SwitchUser');
     if ($switched_user) {
         $switched_username = $session->Get('SwitchUserName');
         $GLOBALS['TrackPointUserID'] = $switched_user;
         $GLOBALS['WarningMessage'] = sprintf(GetLang('ConversionCodeForUser'), $switched_username);
     }
     TrackPoint_Functions::Process();
 }
开发者ID:juliogallardo1326,项目名称:proc,代码行数:18,代码来源:conversion.php

示例6: Process

 /**
  * Process
  * Processes the creation of the payperclick campaign.
  * Uses an iframe to post the results when a particular action is set.
  * Makes it nice and easy to keep creating payperclicks and not worrying about retyping any of the information.
  *
  * @see Trackpoint_Functions::Process()
  *
  * @return void
  */
 function Process()
 {
     $session =& GetSession();
     $thisuser = $session->Get('UserDetails');
     $userid = $thisuser->userid;
     $switched_user = $session->Get('SwitchUser');
     if ($switched_user) {
         $userid = $switched_user;
         $switched_username = $session->Get('SwitchUserName');
         $GLOBALS['WarningMessage'] = sprintf(GetLang('PPCCodeForUser'), $switched_username);
     }
     $action = isset($_GET['Action']) ? strtolower($_GET['Action']) : null;
     switch ($action) {
         case 'ppclink':
             if (isset($_GET['Process'])) {
                 $querystring = '';
                 if ($userid != 1) {
                     $querystring .= 'u=' . $userid . '&';
                 }
                 if (isset($_POST['EncodeInfo'])) {
                     $querystring .= 'e=' . stripslashes($_POST['ppcEngine']);
                     $querystring .= '&n=' . stripslashes($_POST['ppcName']);
                     if (is_numeric($_POST['ppcCost'])) {
                         $querystring .= '&c=' . (double) $_POST['ppcCost'];
                     }
                     $querystring = 'ppce=' . urlencode(base64_encode($querystring));
                 } else {
                     $querystring .= 'ppc=' . urlencode(stripslashes($_POST['ppcEngine']));
                     $querystring .= '&name=' . urlencode(stripslashes($_POST['ppcName']));
                     if (is_numeric($_POST['ppcCost'])) {
                         $querystring .= '&cost=' . (double) $_POST['ppcCost'];
                     }
                 }
                 $url = stripslashes($_POST['landingURL']) . '/?';
                 if (strpos($_POST['landingURL'], '?') !== false) {
                     $url = stripslashes($_POST['landingURL']) . '&' . $querystring;
                 } else {
                     $landingurl = stripslashes($_POST['landingURL']);
                     $urlparts = explode('/', $landingurl);
                     $filename = array_pop($urlparts);
                     if (strpos($filename, '.') !== false || substr($landingurl, -1) == '/') {
                         $url = $landingurl . '?' . $querystring;
                     } else {
                         $url = $landingurl . '/?' . $querystring;
                     }
                 }
                 echo '<span style="font-family: tahoma; font-size: 12px;">' . $url . '</span>';
             }
             break;
         default:
             Trackpoint_Functions::Process();
     }
 }
开发者ID:juliogallardo1326,项目名称:proc,代码行数:63,代码来源:createppc.php

示例7: Saving

function Saving($va)
{
    global $scDb;
    $cNip = $va['cNip'];
    $vaArray = array("nip" => $va['cNip'], "nama" => $va['cNama'], "alamat" => $va['cAlamat'], "tanggal_lahir" => scDate::Date2String($va['dTempat_Tgl']), "tempat_lahir" => $va['cTempat'], "golongan" => $va['cGolongan'], "golongan_tanggal" => scDate::Date2String($va['dGolongan_Tgl']), "jabatan" => $va['cJabatan'], "jabatan_tanggal" => scDate::Date2String($va['dJabatan_Tgl']), "kerja_tahun" => $va['nKerjaTahun'], "kerja_bulan" => $va['nKerjaBulan'], "latihan_jabatan" => $va['cJabatan_Lat'], "latihan_jabatan_tanggal" => scDate::Date2String($va['dJabatan_Lat_Tgl']), "latihan_jabatan_jam" => $va['nJabatan_Lat'], "pendidikan" => $va['cPendidikan'], "pendidikan_lulus" => $va['nThLulus'], "pendidikan_ijazah" => $va['cIjazah'], "catatan_mutasi" => $va['cCatatan_Mutasi'], "keterangan" => $va['cKeterangan'], "no_hp" => $va['cno_hp']);
    $vaInsert = array("username" => GetSession("cSession_UserName"));
    $vaUpdate = array("username_update" => GetSession("cSession_UserName"));
    $scDb->Update("pegawai", $vaArray, "nip = '{$cNip}'", true, $vaInsert, $vaUpdate);
    echo '
				alert("Data sudah disimpan") ; 
				OBJFORM_NEW.mstpegawai.Init() ; 
			';
}
开发者ID:chanif,项目名称:webapp_sppd,代码行数:13,代码来源:mstpegawai.ajax.php

示例8: LoadUser

function LoadUser($va)
{
    global $scDb;
    $cSearch = $va['cSearch'];
    $dbData = $scDb->Browse("username", "UserName,FullName", "(UserName like '%{$cSearch}%' or FullName like '%{$cSearch}%') ", "", "", "", "0,5");
    $vaArray = array();
    if (GetSession("cSession_Level") !== "9") {
        while ($dbRow = $scDb->GetRow($dbData)) {
            $vaArray[] = array("id" => $dbRow['UserName'], "text" => $dbRow['FullName']);
        }
    }
    $cArray = !empty($vaArray) ? json_encode($vaArray) : "[{id:0,text:\"Tidak ditemukan\"}]";
    echo $cArray;
}
开发者ID:chanif,项目名称:webapp_sppd,代码行数:14,代码来源:syscrud.ajax.php

示例9: Process

 /**
  * Process
  * Logs you out and redirects you back to the login page.
  * If you are automatically logged in,
  * this will also remove the cookie (sets the time back a year)
  * so you're not automatically logged in anymore.
  *
  * @see Login::Process
  * @see GetSession
  * @see Session::Set
  *
  * @return void
  */
 function Process()
 {
     $session =& GetSession();
     $sessionuser = $session->Get('UserDetails');
     $userid = $sessionuser->userid;
     $user =& GetUser($userid);
     $user->settings = $sessionuser->settings;
     $user->SaveSettings();
     unset($user);
     $session->Set('UserDetails', '');
     if (isset($_COOKIE['TrackPointLogin'])) {
         $oneyear = time() - 3600 * 265 * 24;
         setcookie('TrackPointLogin', '', $oneyear, '/');
     }
     $_SESSION = array();
     session_destroy();
     header('Location: ' . $_SERVER['PHP_SELF'] . '?Page=Login&Action=Logout');
 }
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:logout.php

示例10: LoadSPPD_Pelaporan

function LoadSPPD_Pelaporan($va)
{
    global $scDb;
    $cUserName = GetSession("cSession_UserName");
    $cLv_Admin = scSys::GetConfig("sc_admin");
    $cLv = GetSession("cSession_SCLevel");
    $cNip = GetSession("cSession_UserName_Target");
    $cSearch = $va['cSearch'];
    $vaArray = array();
    $cWhere = strpos($cLv_Admin, $cLv) === false ? "code LIKE '%{$cSearch}%' AND (nip_leader = '{$cNip}')" : "code LIKE '%{$cSearch}%'";
    $dbData = $scDb->Browse("sppd", "code,date", $cWhere);
    while ($dbRow = $scDb->GetRow($dbData)) {
        $vaArray[] = array("id" => $dbRow['code'], "text" => $dbRow['code'] . " pada tanggal " . scDate::String2Date($dbRow['date']));
    }
    if (empty($vaArray)) {
        $vaArray[] = array("id" => "scnull", "text" => "Tidak ditemukan");
    }
    echo json_encode($vaArray);
}
开发者ID:chanif,项目名称:webapp_sppd,代码行数:19,代码来源:proload.ajax.php

示例11: Saving

function Saving($va)
{
    scSys::SaveConfig("sc_front_url", $va['cUrl']);
    scSys::SaveConfig("sc_front_title", $va['cTitle']);
    scSys::SaveConfig("sc_admin", $va['sc_admin']);
    scSys::SaveConfig("sc_company", $va['sc_company']);
    scSys::SaveConfig("sc_kepala_dinas", $va['sc_kepala_dinas']);
    //foto
    $cFoto = GetSession("fileFoto1");
    if (trim($cFoto) !== "") {
        unlink($cFoto);
        scSys::SaveConfig("sc_logo", GetSession("fileFoto1"));
    }
    $cFoto = GetSession("fileFoto2");
    if (trim($cFoto) !== "") {
        unlink($cFoto);
        scSys::SaveConfig("sc_header", GetSession("fileFoto2"));
    }
    echo "alert('Data have been saved');";
}
开发者ID:chanif,项目名称:webapp_sppd,代码行数:20,代码来源:sys.ajax.php

示例12: Saving

function Saving($va)
{
    global $scDb;
    $code = $va['code'];
    $cResult = scSys::GetKeteranganOne("result", "code = '{$code}'", "sppd");
    $vaArray = array("result" => $va['result'], "status" => "2");
    if ($cResult !== "") {
        $vaArray['result_username_update'] = GetSession("cSession_UserName");
    } else {
        $vaArray["result_date"] = date("Y-m-d");
        $vaArray['result_username'] = GetSession("cSession_UserName");
    }
    $scDb->Update("sppd", $vaArray, "code = '{$va['code']}'");
    $cButton = '<button type="button" class="btn btn-success" style="display:inline-block"
						id="cmdCetak" name="cmdCetak"
						onclick="OBJFORM_NEW.trsppd_laporan.Print(&quot;' . $va['code'] . '&quot;)">Cetak</button>';
    echo ' 
				OBJFORM_NEW.trsppd_laporan.Obj
				.find("#wrapPrint").html("' . scSys::CheckText($cButton) . '") ; 
			';
}
开发者ID:chanif,项目名称:webapp_sppd,代码行数:21,代码来源:trsppd_laporan.ajax.php

示例13: HandleToDo

 public function HandleToDo($Do)
 {
     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Orders') => 'index.php?ToDo=viewOrders');
     switch (isc_strtolower($Do)) {
         case 'viewsales':
         default:
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Orders)) {
                 if (isset($_GET['searchQuery'])) {
                     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Orders') => "index.php?ToDo=viewOrders", GetLang('SearchResults') => "index.php?ToDo=viewOrders");
                 } else {
                     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Orders') => "index.php?ToDo=viewOrders");
                 }
                 if (GetSession('ordersearch') > 0) {
                     if (!isset($_GET['searchId'])) {
                         $_GET['searchId'] = GetSession('ordersearch');
                         $_REQUEST['searchId'] = GetSession('ordersearch');
                     }
                     if ($_GET['searchId'] > 0) {
                         $GLOBALS['BreadcrumEntries'] = array_merge($GLOBALS['BreadcrumEntries'], array(GetLang('CustomView') => "index.php?ToDo=customOrderSearch"));
                     }
                 }
                 if (!isset($_REQUEST['ajax'])) {
                     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
                 }
                 if (GetSession('ordersearch') > 0) {
                     $this->CustomSearch();
                 } else {
                     UnsetSession('ordersearch');
                     $this->ManageOrders();
                 }
                 if (!isset($_REQUEST['ajax'])) {
                     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
                 }
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
     }
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:38,代码来源:class.sales_aug04.php

示例14: SavingFoto

function SavingFoto($va)
{
    $cDim = GetSession("cSession_UserName");
    $cReturn = null;
    $cDir = "./uploaded/profile/";
    foreach ($va['file'] as $vaFile) {
        $vaInfo = pathinfo($vaFile['name']);
        $cDir = $cDir . $cDim . "." . $vaInfo['extension'];
        if (is_file($cDir)) {
            unlink($cDir . ".tmp");
            unlink($cDir);
        }
        if (move_uploaded_file($vaFile['tmp_name'], $cDir . ".tmp")) {
            scImages::GenerateThumbnail($cDir . ".tmp", $cDir, 599, 399);
            unlink($cDir . ".tmp");
            $cReturn = $cDir;
        } else {
            $cReturn = "";
        }
    }
    SaveSession("g" . $cDim, $cReturn);
    echo 'oProfile.Saving() ; ';
}
开发者ID:chanif,项目名称:webapp_sppd,代码行数:23,代码来源:mee.ajax.php

示例15: HandleToDo

 public function HandleToDo($Do)
 {
     switch (isc_strtolower($Do)) {
         case "deleteproductvariations":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Variations)) {
                 $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Products') => "index.php?ToDo=viewProducts", GetLang("ProductVariations") => "index.php?ToDo=viewProductVariations", GetLang('DeleteProductVariation') => "index.php?ToDo=deleteProductVariation");
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
                 $this->DeleteVariations();
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
                 die;
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "editproductvariation2":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Variations)) {
                 $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Products') => "index.php?ToDo=viewProducts", GetLang("ProductVariations") => "index.php?ToDo=viewProductVariations", GetLang('EditProductVariation') => "index.php?ToDo=editProductVariation");
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
                 $this->EditVariationStep2();
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
                 die;
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "editproductvariation":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Variations)) {
                 $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Products') => "index.php?ToDo=viewProducts", GetLang("ProductVariations") => "index.php?ToDo=viewProductVariations", GetLang('EditProductVariation') => "index.php?ToDo=editProductVariation");
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
                 $this->EditVariationStep1();
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
                 die;
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "addproductvariation2":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Variations)) {
                 $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Products') => "index.php?ToDo=viewProducts", GetLang("ProductVariations") => "index.php?ToDo=viewProductVariations", GetLang('AddProductVariation') => "index.php?ToDo=addProductVariation");
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
                 $this->AddVariationStep2();
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
                 die;
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "addproductvariationoption":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Variations)) {
                 $this->AddVariationOptionStep1();
                 die;
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "addproductvariation":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Variations)) {
                 $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Products') => "index.php?ToDo=viewProducts", GetLang("ProductVariations") => "index.php?ToDo=viewProductVariations", GetLang('AddProductVariation') => "index.php?ToDo=addProductVariation");
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
                 $this->AddVariationStep1();
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
                 die;
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "viewproductvariations":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Variations)) {
                 $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Products') => "index.php?ToDo=viewProducts", GetLang('ProductVariations') => "index.php?ToDo=viewProductVariations");
                 if (!isset($_REQUEST['ajax'])) {
                     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
                 }
                 $this->ViewVariations();
                 if (!isset($_REQUEST['ajax'])) {
                     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
                 }
                 die;
             } else {
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
             }
             break;
         case "savebulkeditproducts":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Edit_Products) && gzte11(ISC_LARGEPRINT)) {
                 if (isset($_POST['addanother'])) {
                     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Products') => "index.php?ToDo=viewProducts", GetLang('EditProduct') => "index.php?ToDo=editProduct");
                 } else {
                     $GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Products') => "index.php?ToDo=viewProducts");
                     if (GetSession('productsearch') > 0) {
                         if (!isset($_GET['searchId'])) {
                             $_GET['searchId'] = GetSession('productsearch');
                             $_REQUEST['searchId'] = GetSession('productsearch');
                         }
                         if ($_GET['searchId'] > 0) {
                             $GLOBALS['BreadcrumEntries'] = array_merge($GLOBALS['BreadcrumEntries'], array(GetLang('CustomView') => "index.php?ToDo=customProductSearch"));
                         }
                     }
                 }
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
                 $this->BulkEditProductsStep2();
                 $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
//.........这里部分代码省略.........
开发者ID:nirvana-info,项目名称:old_bak,代码行数:101,代码来源:class.product_18_12.php


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