Sprawozdanie

[insert_php]
$flag = false;
$name = $_GET[„File”];
if(strlen($name) == 5){
$Year= substr($name, -4);
$Char= substr($name, 0, -4);
if(is_numeric($Year)){
if(ctype_alpha($Char)){
$string=””;
switch ($Char){
case ‚F’: $string = „Finansowe „.$Year; $flag = true; break;
case ‚M’: $string = „Merytoryczne „.$Year; $flag = true; break;
case ‚B’: $string = „Bilans w złotówkach „.$Year; $flag = true; break;
default : $string = „”; break;
}
}
}
}

[/insert_php]

[insert_php]
if($flag){
echo $string ;
echo „PDF Embedder requires a url attribute„;
}
[/insert_php]

Powrót