<?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('/usr/local/www/surplusprop.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
  list($listingsRecords, $listingsMetaData) = getRecords(array(
    'tableName'   => 'listings',
    'perPage'     => '10',
  ));
  
  list($accountRecords,$accountMetaData)=getRecords(array(
	'tableName'     =>   'accounts',
	'allowSearch'   =>   false,       ));
  
$regions = array();    

foreach($accountRecords as $account){
   if($account['msba_region']){
   $regions[$account['msba_region']]=$account['msba_region:label'];
   }
  }

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Surplus Property</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
td img {display: block;}
</style>
<!--Fireworks CS3 Dreamweaver CS3 target.  Created Thu Apr 22 14:34:48 GMT-0500 (Central Daylight Time) 2010-->
<script language="JavaScript1.2" type="text/javascript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
</script>
<link href="pageformat.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
function KW_img_class(src,name,alt,links,target,border,width,height,align,sets) {
  this.srn=src; this.name=name; this.alt=alt; this.links=links; this.target=target;
  this.border=border; this.width=width;	this.height=height; this.align=align;
  this.sets=sets;
}

function KW_pObj(sel) {
  var validObj=new Array(),i,j,k,oneDay=60*60*24*1000, d=new Date(); for (i=0;i<KW_imgObj.length;i++)
  if (KW_imgObj[i].sets.charAt(sel)!="0") {validObj[validObj.length]=i;k=KW_imgObj[i].sets.charAt(sel);}
  j=(k!=2)?parseInt(Math.random()*validObj.length):(parseInt(d.getTime()/oneDay))%validObj.length; 
  j=(isNaN(j))?0:j;return validObj[j];
}

function KW_selSrc(obj) {
    k = KW_imgObj[obj];
    if (k.links != "") {
        document.write("<a href=\"" + k.links + "\" target=\"" + k.target + "\">");
    }
    str = "<img src=\"" + k.srn + "\"";
    if (k.name != "") {
        str += " name=\"" + k.name + "\"";
    }
    if (k.alt != "") {
        str += " alt=\"" + k.alt + "\"";
    }
    if (k.border != "") {
        str += " border=\"" + k.border + "\"";
    }
    if (k.width != "") {
        str += " width=\"" + k.width + "\"";
    }
    if (k.height != "") {
        str += " height=\"" + k.height + "\"";
    }
    if (k.align != "") {
        str += " align=\"" + k.align + "\"";
    }
    str += ">";
    document.write(str);
    if (k.links != "") {
        document.write("</a>");
    }
}</script>
<SCRIPT SRC="ads.js"></SCRIPT>
<script type="text/javascript" src="highslide/highslide-full.js"></script>
<link rel="stylesheet" type="text/css" href="highslide/highslide.css" />

<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'draggable-header';

</script>
<style type="text/css">
<!--
body {
	background-color: #666;
	background-image: url(images/background.jpg);
}
-->
</style>
<SCRIPT SRC="jumpmenu.js"></SCRIPT>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-8407380-7']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body bgcolor="#ffffff" onload="MM_preloadImages('images/menu_buy_f2.jpg','images/menu_sell_f2.jpg','images/menu_free_f2.jpg','images/menu_wanted_f2.jpg','images/menu_search_f2.jpg')">
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FFFFFF"><a href="index.php"><img name="header_logo" src="images/header_logo.jpg" width="453" height="162" border="0" id="header_logo" alt="" /></a></td>
    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="28" background="images/header_1.jpg"><table width="100%" border="0" cellpadding="3" cellspacing="0" class="verdana_10">
          <tr>
            <td align="right"><a href="member.php">List Your Items</a><a href="works.php"></a> &#8226; <a href="advertise.php">Advertise</a> &#8226; <a href="http://www.surplusprop.com/cmsAdmin/admin.php" target="_blank">Member Login</a> &#8226; <a href="contact.php">Contact Us</a> &#8226; <a href="index.php">Home</a></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><script language="JavaScript">KW_selSrc(KW_pObj("1"))</script></td>
      </tr>
      <tr>
        <td><script language="JavaScript">KW_selSrc(KW_pObj("0"))</script></td>
      </tr>
    </table></td>
    <td><img name="header_right" src="images/header_right.jpg" width="37" height="162" border="0" id="header_right" alt="" /></td>
  </tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0" class="verdana_10">
  <tr>
    <td width="93"><a href="for_sale.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('menu_buy','','images/menu_buy_f2.jpg',1);"><img name="menu_buy" src="images/menu_buy.jpg" width="93" height="30" border="0" id="menu_buy" alt="" /></a></td>
    <td width="147"><a href="wanted.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('menu_wanted','','images/menu_wanted_f2.jpg',1);"><img name="menu_wanted" src="images/menu_wanted.jpg" width="147" height="30" border="0" id="menu_wanted" alt="" /></a></td>
    <td width="108"><a href="free.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('menu_free','','images/menu_free_f2.jpg',1);"><img name="menu_free" src="images/menu_free.jpg" width="108" height="30" border="0" id="menu_free" alt="" /></a></td>
    <td width="119"><a href="sell.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('menu_sell','','images/menu_sell_f2.jpg',1);"><img name="menu_sell" src="images/menu_sell.jpg" width="154" height="30" border="0" id="menu_sell" alt="" /></a></td>
    <td width="105" background="images/menu_right.jpg"><a href="search.php"><img src="images/menu_search.jpg" name="menu_search" width="105" height="30" border="0" id="menu_search" onmouseover="MM_swapImage('menu_search','','images/menu_search_f2.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></td>
    <td align="right" background="images/menu_right.jpg"><table border="0" align="right" cellpadding="4" cellspacing="0" class="verdana_10">
      <tr>
        <td>&nbsp;</td>
        <td class="verdana_12"><strong>Quick Links</strong></td>
        <td><form name="form" id="form">
          <select name="jumpMenu" class="verdana_10" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">
            <option value="http://www.surplusprop.com/curriculum.php">Books / Curriculum</option>
            <option value="http://www.surplusprop.com/building_materials.php">Building Materials</option>
            <option value="http://www.surplusprop.com/buildings.php">Buildings</option>
            <option value="http://www.surplusprop.com/cafeteria.php">Cafeteria</option>
            <option value="http://www.surplusprop.com/communications.php">Communications</option>
            <option value="http://www.surplusprop.com/computers.php">Computers</option>
            <option value="http://www.surplusprop.com/electronics.php">Electronics</option>
            <option value="http://www.surplusprop.com/furniture.php">Furniture</option>
            <option value="http://www.surplusprop.com/grounds.php">Grounds</option>
            <option value="http://www.surplusprop.com/hvac_more.php">HVAC &amp; More</option>
            <option value="http://www.surplusprop.com/janitorial.php">Janitorial</option>
            <option value="http://www.surplusprop.com/misc.php">Miscellaneous</option>
            <option value="http://www.surplusprop.com/music_arts.php">Music &amp; Arts</option>
            <option value="http://www.surplusprop.com/playground.php">Playground</option>
            <option value="http://www.surplusprop.com/science_lab.php">Science &amp; Lab</option>
            <option value="http://www.surplusprop.com/sports.php">Sports</option>
            <option value="http://www.surplusprop.com/tools.php">Tools</option>
            <option value="http://www.surplusprop.com/transportation.php">Transportation</option>
            <option value="http://www.surplusprop.com/index.php">Home</option>
          </select>
        </form></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10" background="images/left_bk.jpg"><img name="left_bk" src="images/left_bk.jpg" width="10" height="10" border="0" id="left_bk" alt="" /></td>
    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="5" cellspacing="0" class="verdana_12">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td align="center" bgcolor="#E4E4E4"><h1>www.surplusprop.com</h1></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td align="center"><form method="POST" action="searchResults.php">
          <table width="100%" border="0" cellpadding="5" cellspacing="0" class="verdana_12">
          <tr>
            <td width="25%" align="right">Category:</td>
            <td colspan="3" align="left"><select name="category" class="ffield_style" id="category">
              <option value="">-Select if Needed-</option>
              <option value="5">Books/Curriculum</option>
              <option value="17">Building Materials</option>
              <option value="16">Buildings</option>
              <option value="12">Cafeteria</option>
              <option value="4">Communications</option>
              <option value="1">Computers</option>
              <option value="2">Electronics</option>
              <option value="10">Furniture</option>
              <option value="15">Grounds</option>
              <option value="13">HVAC &amp; More</option>
              <option value="14">Janitorial</option>
              <option value="19">Miscellaneous</option>
              <option value="8">Music &amp; Arts</option>
              <option value="7">Playground</option>
              <option value="9">Science &amp; Lab</option>
              <option value="6">Sports</option>
              <option value="18">Tools</option>
              <option value="11">Transportation</option>
            </select></td>
            </tr>
          <tr>
            <td width="25%" align="right">Status:</td>
            <td width="25%" align="left"><select name="page_select" class="ffield_style" id="page_select">
              <option value="">-Select if Needed-</option>
              <option value="fs">For Sale</option>
              <option value="wb">Wanted to Buy</option>
              <option value="free">Free Stuff</option>
            </select></td>
            <td width="25%" align="right">City:</td>
            <td width="25%" align="left"><input name="city_keyword" type="text" class="ffield_style" id="city_keyword" value=""/></td>
          </tr>
          <tr>
            <td align="right">State:</td>
            <td align="left"><select name="state_keyword" class="ffield_style" id="state_keyword">
              <option value="">-Select if Needed-</option>
              <option>AL</option>
              <option>AK</option>
              <option>AZ</option>
              <option>AR</option>
              <option>CA</option>
              <option>CT</option>
              <option>CO</option>
              <option>DE</option>
              <option>District of Columbia</option>
              <option>FL</option>
              <option>GA</option>
              <option>HI</option>
              <option>ID</option>
              <option>IL</option>
              <option>IN</option>
              <option>IA</option>
              <option>KS</option>
              <option>KY</option>
              <option>LA</option>
              <option>ME</option>
              <option>MD</option>
              <option>MA</option>
              <option>MI</option>
              <option>MN</option>
              <option>MS</option>
              <option>MO</option>
              <option>MT</option>
              <option>NE</option>
              <option>NV</option>
              <option>NH</option>
              <option>NJ</option>
              <option>NM</option>
              <option>NY</option>
              <option>NC</option>
              <option>ND</option>
              <option>OH</option>
              <option>OK</option>
              <option>OR</option>
              <option>PA</option>
              <option>RI</option>
              <option>SC</option>
              <option>SD</option>
              <option>TN</option>
              <option>TX</option>
              <option>UT</option>
              <option>VT</option>
              <option>VA</option>
              <option>WA</option>
              <option>WV</option>
              <option>WI</option>
              <option>WY</option>
            </select></td>
            <td align="right">MSBA Region:</td>
            <td align="left"><select name="searchRegion">
       <option value="">-Select if Needed-</option>
       <?php foreach ($regions as $value => $label):?>
          <option value="<?php echo $value;?>"><?php echo $label;?></option>
       <?php endforeach ?>
   </select></td>
          </tr>
          <tr>
            <td align="right">Price Range:</td>
            <td align="left"><table border="0" align="left" cellpadding="1" cellspacing="0">
              <tr>
                <td align="center"><select name="price_min" class="ffield_style" id="price_min">
                  <option value="">Minimum</option>
                  <option value="250">$250</option>
                  <option value="500">$500</option>
                  <option value="1000">$1,000</option>
                  <option value="2500">$2,500</option>
                  <option value="5000">$5,000</option>
                  <option value="10000">$10,000</option>
                </select></td>
                <td align="center"><select name="price_max" class="ffield_style" id="price_max">
                <option value="">Maximum</option>
                  <option value="250">$250</option>
                  <option value="500">$500</option>
                  <option value="1000">$1,000</option>
                  <option value="2500">$2,500</option>
                  <option value="5000">$5,000</option>
                  <option value="10000">$10,000</option>
                </select></td>
              </tr>
            </table></td>
            <td align="center">&nbsp;</td>
            <td align="center">&nbsp;</td>
          </tr>
          <tr>
            <td align="right">Listed By:</td>
            <td colspan="3" align="left"><select name="createdByUserNum">
     <option value="">-Select if Needed-</option>
     <?php foreach($accountRecords as $account): ?>
       <option value="<?php echo $account['num'];?>"><?php echo $account['institution_name'];?></option>
     <?php endforeach ?> </select></td>
            </tr>
          <tr>
            <td align="right">Keyword:</td>
            <td colspan="3" align="left"><input name="description,title_keyword" type="text" class="ffield_style" id="description,title_keyword" value="" size="50" /></td>
            </tr>
          <tr>
            <td colspan="4" align="center"><input name="submit" type="submit" class="verdana_12" value="Search"></td>
          </tr>
        </table>
        </form></td>
      </tr>
      <tr>
        <td align="center"><table border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td><script language="JavaScript">KW_selSrc(KW_pObj("2"))</script></td>
            <td><script language="JavaScript">KW_selSrc(KW_pObj("3"))</script></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td width="10" background="images/right_bk.jpg"><img name="right_bk" src="images/right_bk.jpg" width="10" height="10" border="0" id="right_bk" alt="" /></td>
  </tr>
</table>
<? include 'incl.txt'; ?>
</body>
</html>
