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_phone = new CustomerPhoneNumber();
- $c_phone->phone_num_id = $phone_id;
- $c_phone->user_id = $temp_user_obj->user_id;
- $c_phone->phone_number_name = $phone_number_type;
- $c_phone->phone_number = $phone_number;
- $c_phone->phone_number_notes = '';
- $c_phone->contact_number = 0;
- $ret_val = $customer_db->phone->Modify( $c_phone );
- if ( $ret_val[ 0 ] == false ) {
- $action_success = 'Error editing phone : ' . $ret_val[ 1 ];
- } else {
- $action_success = 'Phone edited';
- }
- } else {
- $action_success = 'Failed user check!';
- }
- include( './manager/templates/user/user_navigator.inc' );
- ?>