Changeset 1300


Ignore:
Timestamp:
01/16/07 10:20:39 (6 years ago)
Author:
ijm1
Message:

*Removed the debug box from the plan add/edit form. Fixes #96
*Added input for cap periods in add/edit plan.
*Reordered the menu.
*Changed code that assigned plan data to smarty to a function

that does it when delete plans.

Location:
ccsweb/trunk/ccs_mods/billing
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ccsweb/trunk/ccs_mods/billing/billing_common.php

    r1258 r1300  
    2525 
    2626if (NO_BILLING_MENU != 1) { 
     27        ccs_menu_bottom_add(array(mk_menu_item("Plans", 
     28                "/mods/billing/plan.php"))); 
    2729        ccs_menu_bottom_add(array(mk_menu_item("Customers", 
    2830                "/mods/billing/customer.php"))); 
    29         ccs_menu_bottom_add(array(mk_menu_item("Plans", 
    30                 "/mods/billing/plan.php"))); 
    3131} 
    3232function displayCustomerList() 
  • ccsweb/trunk/ccs_mods/billing/customerlist.tpl

    r1258 r1300  
    4343    <td>{$customer.plan_name}</td> 
    4444        <td><a href="customer.php?do=edit&contact_id={$customer.contact_id}">[edit]</a> 
    45         </td> 
     45        <a href="customer.php?do=history&contact_id={$customer.contact_id}">[history]</a> 
     46    </td> 
    4647</tr> 
    4748{/foreach} 
  • ccsweb/trunk/ccs_mods/billing/plan.php

    r1258 r1300  
    6767    $plan = get_plan($plan_id); 
    6868     
    69     $smarty->assign("plan", $plan); 
     69    $smarty->assign("plan", $plan[0]); 
    7070    return $plan; 
    7171} 
     
    8080 
    8181        if ($_REQUEST["confirm"] != "yes") { 
    82                 $plan =  getPlan($_REQUEST["plan_id"]); 
    83                 $smarty->assign("plan", $plan); 
     82                assign_plan($_REQUEST["plan_id"]); 
    8483                display_page("mods/billing/plandel.tpl"); 
    8584         
  • ccsweb/trunk/ccs_mods/billing/planaddform.tpl

    r1258 r1300  
    1 {debug} 
    21{* Copyright (C) 2006  The University of Waikato 
    32 * 
     
    6564<tr> 
    6665    <th>Cap Period</th> 
    67     <td>{html_options}</td> 
     66    <td><input type="text" name="cap_period" id="cap_period" value="{$plan.cap_period}"/></td> 
    6867</tr> 
    6968<tr> 
Note: See TracChangeset for help on using the changeset viewer.