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


PHP Price::searchPrice方法代码示例

本文整理汇总了PHP中Price::searchPrice方法的典型用法代码示例。如果您正苦于以下问题:PHP Price::searchPrice方法的具体用法?PHP Price::searchPrice怎么用?PHP Price::searchPrice使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Price的用法示例。


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

示例1: fill

 function fill($parSess, $parScene = "", $parProd = "", $parBand = "", $parShift = 0, $parCor = "", $parOri = "", $parRes = "", $parDatum = "", $parProj = "", $parLong = 0, $parLat = 0, $parStd1 = 0, $parStd2 = 0, $parFormat = "", $parInter = "", $parMedia = "", $parRestoration = "")
 {
     // Parameters Values
     $this->sessKey = $parSess;
     $this->sceneId = $parScene;
     $this->productId = $parProd;
     if (trim($parBand) != "") {
         $this->bands = $parBand;
     }
     if ($parShift != 0) {
         $this->sceneShift = $parShift;
     } else {
         $this->sceneShift = 0;
     }
     if (trim($parCor) != "") {
         $this->corretion = $parCor;
     }
     if (trim($parOri) != "") {
         $this->orientation = $parOri;
     }
     if (trim($parRes) != "") {
         $this->resampling = $parRes;
     }
     if (trim($parDatum) != "") {
         $this->datum = $parDatum;
     }
     if (trim($parProj) != "") {
         $this->projection = $parProj;
     }
     if ($parLong != 0) {
         $this->longOrigin = $parLong;
     } else {
         $this->longOrigin = 0;
     }
     if ($parLat != 0) {
         $this->latOrigin = $parLat;
     } else {
         $this->latOrigin = 0;
     }
     if ($parStd1 != 0) {
         $this->stdLat1 = $parStd1;
     } else {
         $this->stdLat1 = 0;
     }
     if ($parStd2 != 0) {
         $this->stdLat2 = $parStd2;
     } else {
         $this->stdLat2 = 0;
     }
     if (trim($parFormat) != "") {
         $this->format = $parFormat;
     }
     if (trim($parInter) != "") {
         $this->inter = $parInter;
     }
     if (trim($parMedia) != "") {
         $this->media = $parMedia;
     }
     if (trim($parRestoration) != "") {
         $this->restoration = $parRestoration;
     }
     // Get Scene price - colocar scene class
     $sql = "SELECT * FROM Scene WHERE SceneId='" . $parScene . "'";
     $this->bd->query($sql) or $this->bd->error($sql);
     $itens = $this->bd->numRows();
     if ($itens == 0) {
         die("Erro nas Cenas");
     }
     $row = $this->bd->fetchRow();
     $this->bd->freeResult($results);
     $objPrice = new Price($this->bd);
     //      $this->price = $objPrice->searchPrice_orig($row["Satellite"], $row["Sensor"], $row["Date"],$this->productId, $_SESSION['userLang']);
     $this->price = $objPrice->searchPrice($row["Satellite"], $row["Sensor"], $row["Date"], $this->productId, $_SESSION['userLang'], $this->corretion, $_SESSION['userType']);
     //      echo "price = $this->price, Sat = $row[Satellite], Sens = $row[Sensor], Date = $row[Date], prod = $this->productId, Lang = $_SESSION[userLang], Corr = $this->corretion, UserType = $_SESSION[userType]";
 }
开发者ID:Desenvolvimento-DGI,项目名称:Catalogo,代码行数:75,代码来源:cart.class.php

示例2: Price

    } 
*/
}; 
</script> 
</head> 
<body onload="window.resizeTo(550,450)">  
<div><center class = azul>
<form name="productForm" method="POST" action="prodForm.php">  
<?php 
$corrflag = $_GET['corrflag'];
// if ($corrflag) ---> Correction Level has been changed - changePrice has been called !
$puserType = $_SESSION['userType'];
if ($corrflag) {
    $objPrice = new Price($dbcat);
    //  echo " sat = ".$sat." sens =".$sens." dat =".$dat." corr =".$pcorLevel;
    $price = $objPrice->searchPrice($sat, $sens, $dat, $productId, $_SESSION['userLang'], $pcorLevel, $puserType);
    $action = "corrprice";
}
?>
<table width="70%" border="0" cellspacing="1">    
<th colspan="3"><?php 
echo $titFormProd;
?>
</th>
<?php 
// If product, diplay product Id
if (trim($objCart->productId) != "") {
    ?>
 
   <tr><td align="right"><?php 
    echo $strProduct;
开发者ID:Desenvolvimento-DGI,项目名称:Catalogo,代码行数:31,代码来源:prodForm.php

示例3: Price

}
$hrc_path = $HRC_PATH;
$action = $ACTION;
if (isset($date)) {
    $drd_date_aux = "{$result['0']}_{$result['1']}_{$result['2']}";
}
#
# Let's find if mosaico's scenes are priced
#
if (isset($_SESSION['userId'])) {
    $usertype = $_SESSION['userType'];
} else {
    $usertype = 2;
}
$objPrice = new Price($dbcat);
$price = $objPrice->searchPrice($satellite, $sensor, $date, "0", $_SESSION['userLang'], "2", $usertype);
#
#
# Let's see if user is able to purchasing and if we can show the shopping cart icon
#
$OK_to_purchase = 0;
if ($_SESSION["userType"] == 1 or $_SESSION["userType"] == 3 or $_SESSION["userType"] == 4) {
    $OK_to_purchase = 1;
}
$dontshow = 0;
if ($price > 0) {
    if (!$OK_to_purchase == 1) {
        $dontshow = 1;
    } else {
    }
} else {
开发者ID:Desenvolvimento-DGI,项目名称:Catalogo,代码行数:31,代码来源:mosaico_passagens.php

示例4: substr

$sat = substr($row_array["Satellite"], 0, 2);
$scene = $row_array["SceneId"];
#
# Code Segment to evaluate purchase conditions for displaying of cart icons
#
$OK_to_purchase = 0;
if (isset($_SESSION['userId'])) {
    $usertype = $_SESSION['userType'];
} else {
    $usertype = 2;
}
if ($_SESSION["userType"] == 1 or $_SESSION["userType"] == 3 or $_SESSION["userType"] == 4) {
    $OK_to_purchase = 1;
}
$objPrice = new Price($dbcat);
$priced = $objPrice->searchPrice($row_array[Satellite], $row_array[Sensor], $row_array[Date], "0", $_SESSION['userLang'], "2", $usertype);
$dontshow = 0;
if ($priced > 0) {
    if (!$OK_to_purchase == 1) {
        $dontshow = 1;
    } else {
    }
} else {
    if (!$_SESSION['openArea']) {
        $dontshow = 1;
    }
}
// echo "<br>sat = $row_array[Satellite] usertype = $usertype priced = $priced OK = $OK_to_purchase dontshow = $dontshow<br>";
#
# End Segment
#
开发者ID:Desenvolvimento-DGI,项目名称:Catalogo,代码行数:31,代码来源:manage.php


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