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

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. $form_title = 'Please login';
  3. if ( $form_mode == 'PROMETHEUS_LOGIN_MODE_INVALID' && 
  4.    $user_obj->user_name != '' ) {
  5.    $form_title .= ' - INVALID USERNAME OR PASSWORD';
  6. }
  7. include( './templates/form/form_top.inc' );
  8. $value      = $session_id;
  9. $name       = 'session_id';
  10. include( './templates/form/form_hidden_elem.inc' );
  11. $value      = 'PROMETHEUS_LOGIN_MODE';
  12. $name       = 'form_mode';
  13. include( './templates/form/form_hidden_elem.inc' );
  14. $value      = $user;
  15. $desc_text  = 'Username';
  16. $desc       = 'This is your username, also known as your account name';
  17. $size       = 50;
  18. $name       = 'user';
  19. include( './templates/form/form_text_elem.inc' ); 
  20. $value      = $password;
  21. $desc_text  = 'Password';
  22. $desc       = 'This is user domain that you belong to.';
  23. $size       = 50;
  24. $name       = 'password';
  25. include( './templates/form/form_password_elem.inc' );
  26. /* Virtual Domain Support */
  27. $desc_text = 'Domain';
  28. $name      = 'domain_id';
  29. /* This icky hack makes it so that the virtual domains
  30. show up before the default prometheus domain */
  31. $value     = -1;
  32. $possible         = Array();
  33. $possible_vals    = Array();
  34. $ret_vals = $user_domain_db->ListAll();
  35. if ( $ret_vals[ 0 ] == 1 ) {
  36.    $cnt = $ret_vals[ 1 ];
  37.    $arr = $ret_vals[ 2 ];
  38.    for( $xxx = 0; $xxx < count( $arr ); $xxx++ ) {
  39.       $t_obj = $arr[ $xxx ];
  40.       $possible[]          = $t_obj->domain_name;
  41.       $possible_vals[]     = $t_obj->domain_id;
  42.    }
  43. }
  44. $possible[]       = 'default';
  45. $possible_vals[]  = 0;
  46. include( './templates/form/form_multiselect_elem.inc' );
  47. $submit_text   = 'Login';
  48. $reset_text    = 'Clear Form';
  49. include( './templates/form/form_bottom.inc' );
  50. ?>