- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
function retPercByAct($num,$economy) { //50% discount => economy=0 => 15%
$t='15/5 0-49,
16/6 50-100,
17/7 101-200,
18/8 201-350,
19/9 351-500,
20/10 601-1000,
21/11 1001-500000,';
$t=explode(',',$t);
foreach($t as $k=>$v) {
$v=trim($v);
list($perc,$nums)=explode(' ',$v);
$nums=explode('-',$nums);
if($nums[0]<=$num && $nums[1]>=$num) {
$perc=explode('/',$perc);
if(!$economy) $percR=$perc[0]; else $percR=$perc[1];
break;
}
}
return $percR;
}
segoddnja 20.06.2011 12:43 # 0
Soul_re@ver 20.06.2011 15:25 # +1
PACTPOBblu_nemyx 11.04.2019 16:19 # +1
Lure Of Chaos 20.06.2011 15:46 # +5
com1 21.06.2011 00:43 # +2
SadKo 21.06.2011 10:42 # 0
guest8 06.04.2019 16:33 # −999
guest8 06.04.2019 16:33 # −999
guest8 06.04.2019 16:34 # −999
guest8 06.04.2019 16:34 # −999
guest8 06.04.2019 16:35 # −999
guest8 06.04.2019 16:36 # −999
guest8 06.04.2019 16:36 # −999
guest8 06.04.2019 16:37 # −999
guest8 06.04.2019 16:38 # −999
guest8 06.04.2019 16:38 # −999
guest8 06.04.2019 16:38 # −999
guest8 06.04.2019 16:39 # −999
guest8 06.04.2019 16:39 # −999
guest8 08.04.2019 20:58 # −999
guest8 10.04.2019 22:32 # −999
guest8 10.04.2019 22:46 # −999
guest8 12.04.2019 14:22 # −999
guest8 19.04.2019 18:27 # −999