set_filenames(array("body" => "pre_register.html")); include_once ("class/packages.class.php"); $packages = new Packages(); //List Packages $type = 1; $result = $packages->GetPackages($type); while ($row = mysql_fetch_array($result)) { $des = ""; if ((int)$row["p_max_img1"]>0) $des .= "Up to ".(int)$row["p_max_img1"]." Non Watermarked Web Resolution Royalty Free Images as low as $".CurrencyFormat1($row['p_discount_img1'])."/image
"; if ((int)$row["p_max_img2"]>0) $des .= "Up to ".(int)$row["p_max_img2"]." Non Watermarked High Resolution Royalty Free Images as low as $".CurrencyFormat1($row['p_discount_img2'])."/image
"; if ((int)$row["free_amt"]>0) $des .= $type==1? "Bonus ".(int)$row["free_amt"]." free credits" : "Daily limit ".(int)$row["free_amt"]." images/day"; $template->assign_block_vars("packages",array( "P_SID" => $row["p_sid"], "P_NAME" => ($row["p_type"]==1)?$row["p_name"]." credits":$row["p_name"], 'P_BONUS' => $row['p_bonus'], 'DES' => $des, 'P_PRICE' => $row['p_price'], 'P_EXPIRED_LENGTH' => $row['p_expired_length'] )); } //List Subcription $type = 0; $result = $packages->GetPackages($type); while ($row = mysql_fetch_array($result)) { $des = ""; if ((int)$row["p_max_img1"]>0) $des .= "Up to ".(int)$row["p_max_img1"]." Non Watermarked Web Resolution Royalty Free Images as low as $".CurrencyFormat1($row['p_discount_img1'])."/image
"; if ((int)$row["p_max_img2"]>0) $des .= "Up to ".(int)$row["p_max_img2"]." Non Watermarked High Resolution Royalty Free Images as low as $".CurrencyFormat1($row['p_discount_img2'])."/image
"; if ((int)$row["free_amt"]>0) $des .= $type==1? "Bonus ".(int)$row["free_amt"]." free credits" : "Daily limit ".(int)$row["free_amt"]." images/day"; $template->assign_block_vars("subcription",array( "P_SID" => $row["p_sid"], "P_NAME" => ($row["p_type"]==1)?$row["p_name"]." credits":$row["p_name"], 'P_BONUS' => $row['p_bonus'], 'DES' => $des, 'P_PRICE' => $row['p_price'], 'P_EXPIRED_LENGTH' => $row['p_expired_length'] )); } $template->pparse("body"); include("footer.php"); ?>