process_form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
- <?php
- $action_success = ' ';
- $temp_user_obj = new User();
- $temp_user_obj->user_name = $target_username;
- $temp_user_obj->domain_id = $target_domain_id;
- $ret_vals = $user_db->Get( $temp_user_obj );
- if( $ret_vals[ 0 ] == true ) {
- $temp_user_obj = $ret_vals[ 1 ];
- $customer_db = new CustomerInformation_Db();
- $customer_db = $customer_db->Db(
- $default->customer_db->driver,
- $default->customer_db
- );
- $c_addr = new CustomerAddress();
- $c_addr->address_id = $address_id;
- $c_addr->user_id = $temp_user_obj->user_id;
- $c_addr->address_name = $address_type;
- $c_addr->address = $address;
- $c_addr->city = $city;
- $c_addr->state = $state;
- $c_addr->zip = $zip;
- $c_addr->country = $country;
- $c_addr->mailing_address = 0; /* This is for future use */
- $c_addr->last_update_by = $user_obj->user_id;
- $c_addr->last_update = '';
- $ret_val = $customer_db->address->Modify( $c_addr );
- if ( $ret_val[ 0 ] == false ) {
- $action_success = 'Error adding address : ' . $ret_val[ 1 ];
- } else {
- $action_success = 'Address edited';
- }
- } else {
- $action_success = 'Failed user check!';
- }
- include( './manager/templates/user/user_navigator.inc' );
- ?>