form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
- <?php
- Function print_form() {
- global $default;
- global $user_lang_obj;
- global $session_id;
- global $target_domain_id;
- global $template_obj;
- $domain_db = new User_Domain_Db();
- $domain_db = $domain_db->Db(
- $default->user_domain_db->driver,
- $default->user_domain_db
- );
- $foo_domain = new User_Domain();
- $ret_vals = $domain_db->Get( $target_domain_id );
- if ( $ret_vals[ 0 ] == 1 ) {
- $foo_domain = $ret_vals[ 1 ];
- }
- $form_title = 'Edit Domain';
- include( './templates/form/form_top.inc' );
- $name = 'session_id';
- $value = $session_id;
- include( './templates/form/form_hidden_elem.inc' );
- $name = 'edit_domain_id';
- $value = $foo_domain->domain_id;
- include( './templates/form/form_hidden_elem.inc' );
- $desc_text = 'Domain name';
- $desc = 'This is the visible name for this "domain".';
- $name = 'edit_domain_name';
- $value = $foo_domain->domain_name;
- $size = 40;
- include( './templates/form/form_text_elem.inc' );
- include( './templates/form/form_bottom.inc' );
- }
- $form_mode = MANAGER_VDOMAIN_EDIT;
- include( './templates/main.inc' );
- ?>