Your shopping cart has $numItemsInCart"; if($numItemsInCart==1) print ' item'; else print ' items'; print '.
'; if ($numItemsInCart > 0) { print '
'; print ""; print ''; print '
'; } print "

\n"; } function otherLink() { global $section,$PHP_SELF; if (($section == "tests") || ($section == "flashcards")) { print "

If you wish to shop for items other than "; if ($section == "tests") print "tests and batteries"; else if ($section == "flashcards") print "flashcards"; print " click here.

"; } } function kidtestDollarsStatus($conn,$user) { if (!empty($user)) { $cash = get_current_account_cash($conn,$user->id); if ($cash > 0) { print '

You have $' . Money($cash) . ' of Kidtest Dollars to spend at the store.

'; } } }?> id; // retrieve the assetid of Kidtest Dollars $q = "select assetid from price where asset_enumid = $dollar_enumid"; $results = pg_exec($conn,$q); $dollar_assetid = "-1"; if (($results) && (pg_numrows($results) >0)) { $rrow = pg_fetch_row($results,0); $dollar_assetid = $rrow[0]; } // assume valid dollar amount -- even if kidtest dollars weren't being bought $valid = true; $reason=""; // Add an item to the shopping cart if (($additem=='y') && isset($assetid) && isset($asset_enumid)){ //postgresl has int2 overflow if ktdollars is higher // make sure that the dollar amount is a valid value if (($asset_enumid == $dollar_enumid) && (($ktdollars < 1) || ($ktdollars > 32767) || (!is_numeric($ktdollars)) || (strstr($ktdollars,'.')))) $valid = false; if ($valid == true) { if ($asset_enumid == $dollar_enumid) $number = $ktdollars; else $number = 1; // If already in cart, add to the current count if (array_key_exists($assetid . '-' . $asset_enumid, $_SESSION['shopping_cart'])) $number += $_SESSION['shopping_cart'][$assetid . '-' . $asset_enumid]; $_SESSION['shopping_cart'][$assetid . '-' . $asset_enumid] = $number; //$q = "begin work;"; //$q.= "insert into shopping_cart(loginID,assetID,asset_enumID,number) values('$loginid','$assetid','$asset_enumid',$number);"; ////print "
$q
\n"; //$results = pg_exec($conn,$q); //if($results){ // $q = "commit work;"; // pg_exec($conn,$q); //} //else{ // $q = "rollback work;"; // pg_exec($conn,$q); //} } } // Retrieve the number of items in the users shopping cart $numItemsInCart = count($_SESSION['shopping_cart']); //$q = "select * from shopping_cart where shopping_cart.loginID = $loginid;"; //$results = pg_exec($conn,$q); //if($results) // $numItemsInCart= pg_NumRows($results); //else // $numItemsInCart=0;//print("login id is---$loginid"); ?>

VISA/MasterCard/American Express/DiscoverKidtest Dollars, Tests and Flashcards

Our store is temporarily closed for maintenance. Please check back later.

ENDTEXT; } if (empty($user)) { print <<Or visit our catalog store containing hundreds of the best educational toys, games, puzzles, paper tests and other exciting material.

-->

To use a promotion code, please click here to login or join (free).

ENDTEXT; } else { print <<Or visit our catalog store containing hundreds of the best educational toys, games, puzzles, paper tests and other exciting material.

-->

To use a promotion code, click here.

ENDTEXT; } if (!$StoreClosed) { if (($section == "tests") || ($section == "flashcards")) { print <<If you are interested in something that's marked FREE, you should add it to your shopping cart and checkout with it. You will not be charged, or have to enter a credit card.

Payment Information for International Customers.
You can shop for tests, flashcards and Kidtest dollars on this page by using a credit card. Prices are displayed in U. S. currency. Your credit card provider will convert your purchase to your home currency on your credit card statement. Contact us if you have any questions.

Remember, when purchases are being made for more than one child, keep them separate by logging out after each child’s purchase. Then login again using a new username and password.

ENDTEXT; } shoppingCartStatus(); kidtestDollarsStatus($conn,$user); otherLink(); if ($section == "") { print ""; print ""; print ""; print "\n"; print ""; print ""; print ""; print ""; print ""; print ""; print "

Tests

 

Flashcard Decks

to shop for Fast Track (quick, affordable and accurate) and Challenge (in depth) testing plus State/Province Practice Tests.to shop for flashcards for all grades and ages plus \"do your own\" blank cards for specific drilling and study.
\n"; print "
\n"; ?>

Kidtest dollars

For your convenience, Kidtest dollars may be used in place of real money to purchase flashcards and tests.  Kidtest dollars eliminate the need to enter your credit card information every time you want to purchase one of these items.

To purchase kidtest dollars, enter the amount of kidtest dollars below and click the 'Add kidtest dollars to shopping cart' button. The kidtest dollars will be added to your shopping cart just like any other item from the store.

0) { ?>
Kidtest Dollars    
$.00 Invalid dollar amount."; else echo " " ?>
Kidtest Dollars are not currently available for purchase

"; } } if ($section == "" ) { print <<

If you are interested in something that's marked FREE, you should add it to your shopping cart and checkout with it. You will not be charged, or have to enter a credit card.

Payment Information for International Customers.
You can shop for tests, flashcards and Kidtest dollars on this page by using a credit card. Prices are displayed in U. S. currency. Your credit card provider will convert your purchase to your home currency on your credit card statement. Contact us if you have any questions.

ENDTEXT; } if ($section == "tests") { print <<Tests ENDTEXT; all_tests_for_sale($conn,false); } else if ($section == "flashcards") { print <<Flashcard Decks ENDTEXT; $aset_enum = enumTextToID($conn,'ASSET','DECK'); $q = "select price.assetid,price.asset_enumid,price.currency_enumid,price.price,price.description,deck.title from price, deck where asset_enumID = $aset_enum and deck.id=price.assetid order by title;"; // print "
$q
"; $results = pg_exec($conn,$q); $numrows = pg_NumRows($results); for($x=0;$x<$numrows;$x++){ $rrow = pg_fetch_row($results,$x); $assetid = $rrow[0]; $asset_enumid = $rrow[1]; $currency_enumid = $rrow[2]; $price = $rrow[3]; $description = stripslashes($rrow[4]); $title = stripslashes($rrow[5]); if(($x%2)==0) print ' '; else print ' '; print ''; print ''; print ''; print ''; if(($x%2)==0) print ' '; else print ' '; print ''; print ''; print ''; print ''; }//end forloop ?>
Deck Cost  
'; print ("$title"); print ''; print ''; if ($price == 0) print "Free"; else print Money($price); print ''; $assetid = $rrow[0]; $asset_enumid = $rrow[1]; $currency_enumid = $rrow[2]; $price = $rrow[3]; print 'Add to shopping cart
 '; print ("$description"); print ' '; print '