<?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->pg as $key => $val) {
		$int = $int+1;
	?>
	<tr> 
        <td class="tdheading">
            <b>&nbsp;<?php echo $BL->pg_name[$val]; ?> <?php if($BL->pp_active[$val]=="Yes")echo "(*".$BL->props->lang['active'].")"; ?></b>
	    </td>
        <td class="tdheading" align="right">
            <a href="#" onClick="expandcontent('section_<?php echo $val; ?>')"><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 $val; ?>' class="switchcontent">    
            <table width='100%' border='0' cellspacing='0' cellpadding='0'>
            <?php foreach ($BL->arrays[$val] as $k => $v) { ?>
            <tr> 
            <td valign='top' class='text_grey'>
                <?php
	            $pp_val= $pp_vals[$val];
	            if (count($v) == 2) {
                ?>
                <div id="form1_label">
                &nbsp;<?php echo $v[0]; ?>
                </div>
                <div id="form1_field">
                <?php if ($v[1] == "disp_msg") { ?>
                <textarea name='<?php echo $val."[".$v[1]."]"; ?>' id='<?php echo $val."[".$v[1]."]"; ?>' cols='55' rows='10'><?php echo $pp_val[$v[1]]; ?></textarea>
                <?php } else { ?>
                <input class='search' type='text' value='<?php echo $pp_val[$v[1]]; ?>' name='<?php echo $val."[".$v[1]."]"; ?>' id='<?php echo $val."[".$v[1]."]"; ?>' size='30' />
                <?php } ?>
                </div>
                <?php } else { ?>
                <div id="form1_label">
                &nbsp;<?php echo $v[0]; ?>
                </div>
                <div id="form1_field">
                <select name='<?php echo $val."[".$v[1]."]"; ?>' id='<?php echo $val."[".$v[1]."]"; ?>' class='search'>
                <?php for ($i= 2; $i < count($v); $i ++) { ?>
                <option value='<?php echo $v[$i]; ?>' <?php if($v[$i]==$pp_val[$v[1]])echo "selected=\"selected\""; ?>><?php echo $v[$i]; ?></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"); ?>