form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:2k
- <?php
- Function print_form() {
- global $default;
- global $lang;
- global $session_id;
- global $user_db;
- global $template_obj;
- global $target_username;
- global $target_domain_id;
- $form_title = 'Add address for ' . $target_username;
- include( './templates/form/form_top.inc' );
- $value = $session_id;
- $name = 'session_id';
- include( './templates/form/form_hidden_elem.inc' );
- $value = $target_username;
- $name = 'target_username';
- include( './templates/form/form_hidden_elem.inc' );
- $value = $target_domain_id;
- $name = 'target_domain_id';
- include( './templates/form/form_hidden_elem.inc' );
- $desc_text = 'Address type';
- $name = 'address_type';
- $value = Array();
- $value[] = 'HOME';
- $value[] = 'WORK';
- include( './templates/form/form_multiselect_elem.inc' );
- $value = $address;
- $desc_text = 'Address Line';
- $desc = '';
- $size = 50;
- $name = 'address';
- include( './templates/form/form_text_elem.inc' );
- $value = $city;
- $desc_text = 'City';
- $desc = '';
- $size = 50;
- $name = 'city';
- include( './templates/form/form_text_elem.inc' );
- $value = $state;
- $desc_text = 'State';
- $desc = '';
- $size = 50;
- $name = 'state';
- include( './templates/form/form_text_elem.inc' );
- $value = $zip;
- $desc_text = 'Zip';
- $desc = '';
- $size = 50;
- $name = 'zip';
- include( './templates/form/form_text_elem.inc' );
- $desc_text = 'Country';
- $name = 'country';
- $value = Array();
- $value[] = 'USA';
- include( './templates/form/form_multiselect_elem.inc' );
- include( './templates/form/form_bottom.inc' );
- }
- include( './templates/main.inc' );
- $form_mode = MANAGER_USER_ADD_ADDRESS;
- ?>