<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  require_once "/home/content/24/5806324/html/dev/cassano/admin/lib/viewer_functions.php";
  list($marcaRecords, $marcaMetaData) = getRecords(array( 
    'tableName'   => 'marca', 
    'allowSearch' => false, 
  )); 
  beta_lookupReferringRecords(array( 
    'sourceTable'    => 'marca', 
    'recordList'     => &$marcaRecords, 
    'foreignTable'   => 'modelo', 
    'foreignFields'  => array('marca'), 
    'injectionField' => 'modelos' 
  )); 
  list($inventarioRecords, $inventarioMetaData) = getRecords(array( 
    'tableName'   => 'inventario', 
    'allowSearch' => true, 
  ));
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" bgcolor="#c6daec">
<div align="center" class="background-body"> 
  <table width="930" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr> 
      <td width="930" height="115">&nbsp;</td>
    </tr>
    <tr> 
      <td height="950" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
          <!--DWLayoutTable-->
          <tr> 
            <td width="20" height="20">&nbsp;</td>
            <td width="890">&nbsp;</td>
            <td width="20">&nbsp;</td>
          </tr>
          <tr> 
            <td height="900">&nbsp;</td>
            <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr> 
                  <td width="890" height="20" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="890" height="20" valign="top" class="text-12"><span class="link-azul"><a href="#">Inicio</a> 
                          &raquo; <a href="#">Usados</a></span></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td height="30">&nbsp;</td>
                </tr>
                <tr>
                  <td height="198" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="890" height="198" valign="top">
                              <ul>
							  <?php foreach ($marcaRecords as $marca): ?>
                              <li>
							  <a href="?marca=<?php echo $marca['num'] ?>"
							  <?php echo (@$_REQUEST['marca'] == $marca['num']) ? ' style="font-weight: bold"' : ''; ?>> 
                              <?php echo $marca['nombre'] ?>
							  </a>
							  <ul>
                              <?php foreach ($marca['modelos'] as $modelo): ?>
							  <li>
							  <a href="?modelo=<?php echo $modelo['num'] ?>"
                              <?php echo (@$_REQUEST['modelo'] == $modelo['num']) ? ' style="font-weight: bold"' : ''; ?>> 
                              <?php echo $modelo['nombre'] ?> 
							  </a>
							  </li>
							  <?php endforeach; ?>
							  </ul>
							  </li>
							  <?php endforeach; ?>
							  </ul>
						  </td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                  <td height="652">&nbsp;</td>
                </tr>
              </table></td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td height="30"></td>
            <td></td>
            <td></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="60">&nbsp;</td>
    </tr>
  </table>
</div>
</body>
</html>
