Changeset 1340


Ignore:
Timestamp:
02/02/07 14:46:24 (6 years ago)
Author:
ijm1
Message:

Added a message that displays the password for a recently created customer.
Uses functionality commited to ccsd in r1339

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

Legend:

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

    r1260 r1340  
    143143            $action = "edit"; 
    144144            ccs_notice("Customer ${do}ed successfuly$warn."); 
    145                         assign_customer($cid); 
     145            if( $do == "add") { 
     146                assign_customer($cid[0]); 
     147                $smarty->assign("plain_password", $cid[1]); 
     148            } else { 
     149                assign_customer($cid); 
     150            } 
    146151        } 
    147152    } else { 
     
    149154            /* Get the customer data */ 
    150155            assign_customer($_REQUEST["contact_id"]); 
    151         } 
     156        }  
    152157        $action = $do; 
    153158    } 
     
    179184    display_customer_list(); 
    180185} 
     186     
     187     
    181188 
    182189/* If we get here the page has been called incorrectly, display the list */ 
  • ccsweb/trunk/ccs_mods/billing/customerform.tpl

    r1194 r1340  
    3737{else} 
    3838{assign var="bcaption" value="Update"} 
     39{/if} 
     40 
     41{if $plain_password != ""} 
     42<font color=blue>The inital password is {$plain_password}</font> 
    3943{/if} 
    4044<table> 
Note: See TracChangeset for help on using the changeset viewer.