<?php include_once $BL->props->get_page("templates/alp_admin/html/header.php"); ?>
<div id="content">
    <div id="display_list">
      <div class="tabs" name='tt1' id='tt1' onmouseover="javascript:this.className='tabs1';" onmouseout="javascript:this.className='tabs';" ><a href="admin.php?cmd=billing_cycles" class="add_link"><?php echo $BL->props->lang['~billing_cycles']; ?></a></div>
      <div class="tab_separator">&nbsp;</div>
      <div class="tabs2" name='tt2' id='tt2' onmouseover="javascript:this.className='tabs1';" onmouseout="javascript:this.className='tabs2';" ><?php echo $title; ?></div>
      <div class="tab_separator">&nbsp;</div>
    </div>
	<div id="display_list">
    <form name='form1' id='form1' method='POST' action='<?php echo $PHP_SELF; ?>'>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_table">
    <tr> 
        <td colspan="2" class="tdheading">
        <b>&nbsp;</b>
        </td>
    </tr>
    <tr> 
        <td colspan="2" 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>
    <tr> 
        <td class='text_grey' width='1%'>
        <div align='center'>
          <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_icon_dot.gif' width='32' height='18'>
        </div>
        </td>
        <td class='text_grey'>
        <div id="form1_label">
        <?php echo $BL->props->lang['Nu_Months']; ?>
        </div>
        <div id="form1_field">
        <select name="cycle_month" id="cycle_month" size="1" class='search'>
        <?php for($i=1;$i<121;$i++) { if(array_search($i,$cycles)===false){ ?>
          <option value='<?php echo $i; ?>' <?php if($cmd=="edit_cycle" && $cycle['cycle_month']==$i)echo "selected"; ?>><?php echo $i; ?></option>
        <?php } } ?>
        </select>
        </div>
        </td>
    </tr>
    <tr> 
        <td colspan='2' 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; ?>menu_line_lightgreen-long.jpg' width='100%' height='1' />
        </td>
    </tr>
    <tr> 
      <td class='text_grey' width='1%'>
      <div align='center'>
      <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_icon_dot.gif' width='32' height='18'>
      </div>
      </td>
      <td class='text_grey'>
      <div id="form1_label">
      <?php echo $BL->props->lang['language_key']; ?>
      </div>
      <div id="form1_field">
      <input name='cycle_name' type='text' class='search' id='cycle_name' size='20' value="<?php if($cmd=="edit_cycle") echo $cycle['cycle_name']; ?>" />
      </div>
      </td>
    </tr>
    <tr> 
      <td colspan='2' 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; ?>menu_line_lightgreen-long.jpg' width='100%' height='1' />
      </td>
    </tr>
    <tr> 
      <td class='text_grey'><div align='center'></div></td>
        <td class='text_grey'>
        <div id="form1_label">
        &nbsp;
        </div>
        <div id="form1_field">
        <?php if($cmd=="edit_cycle"){ ?>
      	<input type='hidden' name='id' value='<?php echo $cycle['id']; ?>' />
        <?php } ?>
        <input type='hidden' name='cmd' value='<?php echo $cmd; ?>' />
        <input name='submit' type='submit' class='search1' value='<?php if($cmd=="edit_cycle")echo $BL->props->lang['Update'];else echo $BL->props->lang['add']; ?>' />
        </div>
      </td>
    </tr>
    </table>
    </form>
	</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"); ?>