form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:2k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. Function print_form() {
  3. global $default;
  4. global $lang;
  5. global $session_id;
  6. global $user_db;
  7. global $template_obj;
  8. global $target_username;
  9. global $target_domain_id;
  10. $form_title = 'Add address for ' . $target_username;
  11. include( './templates/form/form_top.inc' );
  12. $value = $session_id;
  13. $name  = 'session_id';
  14. include( './templates/form/form_hidden_elem.inc' );
  15. $value = $target_username;
  16. $name  = 'target_username';
  17. include( './templates/form/form_hidden_elem.inc' );
  18. $value = $target_domain_id;
  19. $name  = 'target_domain_id';
  20. include( './templates/form/form_hidden_elem.inc' );
  21. $desc_text = 'Address type';
  22. $name      = 'address_type';
  23. $value    = Array();
  24. $value[]  = 'HOME';
  25. $value[]  = 'WORK';
  26. include( './templates/form/form_multiselect_elem.inc' );
  27. $value      = $address;
  28. $desc_text  = 'Address Line';
  29. $desc       = '';
  30. $size       = 50;
  31. $name       = 'address';
  32. include( './templates/form/form_text_elem.inc' );
  33. $value      = $city;
  34. $desc_text  = 'City';
  35. $desc       = '';
  36. $size       = 50;
  37. $name       = 'city';
  38. include( './templates/form/form_text_elem.inc' );
  39. $value      = $state;
  40. $desc_text  = 'State';
  41. $desc       = '';
  42. $size       = 50;
  43. $name       = 'state';
  44. include( './templates/form/form_text_elem.inc' );
  45. $value      = $zip;
  46. $desc_text  = 'Zip';
  47. $desc       = '';
  48. $size       = 50;
  49. $name       = 'zip';
  50. include( './templates/form/form_text_elem.inc' );
  51. $desc_text = 'Country';
  52. $name      = 'country';
  53. $value     = Array();
  54. $value[]   = 'USA';
  55. include( './templates/form/form_multiselect_elem.inc' );
  56. include( './templates/form/form_bottom.inc' );
  57. }
  58. include( './templates/main.inc' );
  59. $form_mode = MANAGER_USER_ADD_ADDRESS;
  60. ?>