<?php include_once $BL->props->get_page("templates/alp_admin/html/header.php"); ?>
<div id="content">
    <div id="display_list">
    <form name='form1' id='form1' action="<?php echo $PHP_SELF; ?>" method="POST">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_table">
    <?php
    $int = 0;
    foreach ($BL->dr_fields as $key => $val) {
        $int = $int+1;
    ?>
    <tr>
        <td class="tdheading">
            <b>&nbsp;<?php echo $BL->props->parseLang($key); ?> <?php if($BL->dr_vals[$key]['active']=="yes")echo "(*".$BL->props->lang['active'].")"; ?></b>
        </td>
        <td class="tdheading" align="right">
            <a href="#" onClick="expandcontent('section_<?php echo $key; ?>')"><img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>top_arrow.gif" alt="" border="0" /></a>
        </td>
    </tr>
    <tr>
        <td class="text_grey" colspan="2">
            <img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" />
        </td>
    </tr>
    <tr>
        <td class="text_grey" colspan="2">
            <div id='section_<?php echo $key; ?>' class="switchcontent">
            <table width='100%' border='0' cellspacing='0' cellpadding='0'>
            <?php foreach ($val as $k => $v) { ?>
            <tr>
            <td valign='top' class='text_grey'>
                <div id="form1_label">
                &nbsp;<?php if($v[0]=="password")echo $BL->props->lang['pass_private']; else echo $BL->props->parseLang($v[0]); ?>
                </div>
                <?php
                if (!is_array($v[2])) {
                ?>
                <div id="form1_field">
                <input class='search' type='text' value='<?php echo $BL->dr_vals[$key][$v[0]]; ?>' name='<?php echo $key."[".$v[0]."]"; ?>' id='<?php echo $key."[".$v[0]."]"; ?>' size='30' />
                </div>
                <?php } else { ?>
                <div id="form1_field">
                <select name='<?php echo $key."[".$v[0]."]"; ?>' id='<?php echo $key."[".$v[0]."]"; ?>' class='search'>
                <?php foreach ($v[2] as $a=>$b) { ?>
                <option value='<?php echo $a; ?>' <?php if($a==$BL->dr_vals[$key][$v[0]])echo "selected=\"selected\""; ?>><?php echo $b; ?></option>
                <?php } ?>
                </select>
                </div>
                <?php } ?>
            </td>
            </tr>
            <tr>
              <td class='text_grey' colspan="2">
              <img src='elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>menu_line_lightgreen-long.jpg' width='100%' height='1' />
              </td>
            </tr>
            <?php } ?>
            </table>
            </div>
        </td>
    </tr>
    <?php } ?>
    <tr>
        <td class="text_grey" colspan="2">
        <img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" />
        </td>
    </tr>
    <tr>
        <td class='text_grey' colspan="2">
        <div id="form1_label">&nbsp;</div>
        <div id="form1_field">
        <input type='hidden' name='cmd' value='<?php echo $cmd; ?>' />
        <input type='submit' class='search1' name='update' value='<?php echo $BL->props->lang['Update']; ?>' />
        </div>
        </td>
    </tr>
    <tr>
        <td class="text_grey">
        <img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" />
        </td>
    </tr>
    </form>
    </table>
    </div>
</div>
<!--end content -->
<div id="navBar">
<?php include_once $BL->props->get_page("templates/alp_admin/html/_sidepanel.php"); ?>
</div>
<!--end navbar -->
<?php include_once $BL->props->get_page("templates/alp_admin/html/footer.php"); ?>