<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  
  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/home/stockfsnv/www/stockpiledefensefsnv.com/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

   // load records from 'classes'
  list($classesRecords, $classesMetaData) = getRecords(array(
    'tableName'   => 'classes',
    'loadUploads' => true,
    'allowSearch' => true,
  ));
  
  ?>




  <style type="text/css">
  .norm        { line-height: 120%; font-family: verdana; font-size: 10pt }

  </style>


  <?php include "top.php"; ?>

<FORM METHOD=POST ACTION="http://ssl.securesites.com/cart.pl">
<p align="center">


<b><font size="4" face="Verdana">Step 1: <font color="#800000">Tell Us Your Front Sight Date &amp; Course</font><br></font>
<select name="custom"  size="1"><?php foreach ($classesRecords as $record): ?>
<?php   $classNum = $record['num'].$record['cday'].$record['cname']; ?>
<option value="<?php echo $classNum; ?> "/><?php echo $classNum; ?> </option>
<?php endforeach ?></select>
</b>

<INPUT TYPE=HIDDEN NAME=return VALUE="http://www.stockpiledefensefsnv.com/order.php">
<INPUT TYPE=HIDDEN NAME=merchant  VALUE="exedor1">
<INPUT TYPE=HIDDEN NAME=name   VALUE="Front Sight Date &amp; Course"/>

<INPUT TYPE=HIDDEN NAME=custom2  VALUE="<?php echo $record['cname'] ?> "/>
<INPUT TYPE=HIDDEN NAME=custom1  VALUE="<?php echo $record['cday'] ?> "/>
<INPUT TYPE=HIDDEN NAME=price  VALUE="$0.00"/>



<INPUT TYPE=submit NAME="add"   VALUE="STEP 1: Add Class to Cart"></p>
</FORM>



<p align="center">


<b><font size="4" face="Verdana"><font color="#800000">Select your preference</font>&nbsp;
<a target="handgun" href="handgunorder.php">Handgun</a> | <a target="handgun" href="shotgunorder.php">Shotgun</a> | <a target="handgun" href="skitsorder.php">Shotgun Kits</a>
| <a target="handgun" href="rifleorder.php">Rifle</a> </font></b></p>
</p>
<p align="center">
<iframe width="948" height="1755" src="plist.php" name="handgun" border="0" frameborder="0"></iframe>
	</p>

	<?php include "footer.php"; ?>