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

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. Function print_form() {
  3.    global $default;
  4.    global $user_lang_obj;
  5.    global $session_id;
  6.    global $target_domain_id;
  7.    global $template_obj;
  8.    $domain_db = new User_Domain_Db();
  9.       $domain_db = $domain_db->Db(
  10.       $default->user_domain_db->driver,
  11.       $default->user_domain_db
  12.    );
  13.    $foo_domain = new User_Domain();
  14.    $ret_vals = $domain_db->Get( $target_domain_id );
  15.    if ( $ret_vals[ 0 ] == 1 ) {
  16.       $foo_domain = $ret_vals[ 1 ];
  17.    }
  18.    $form_title = 'Edit Domain';
  19.    include( './templates/form/form_top.inc' );
  20.    $name  = 'session_id';
  21.    $value = $session_id;
  22.    include( './templates/form/form_hidden_elem.inc' );
  23.    $name  = 'edit_domain_id';
  24.    $value = $foo_domain->domain_id;
  25.    include( './templates/form/form_hidden_elem.inc' );
  26.    $desc_text = 'Domain name';
  27.    $desc      = 'This is the visible name for this "domain".';
  28.    $name      = 'edit_domain_name';
  29.    $value     = $foo_domain->domain_name;
  30.    $size      = 40;
  31.    include( './templates/form/form_text_elem.inc' );
  32.    include( './templates/form/form_bottom.inc' );
  33. }
  34. $form_mode     = MANAGER_VDOMAIN_EDIT;
  35. include( './templates/main.inc' );
  36. ?>