form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:2k
- <?php
- /*
- The Actual calls to element includes and such are contained within
- functions to prevent varaible collision in the main namespace.
- */
- Function print_form() {
- global $default;
- global $session_id;
- global $user_lang_obj;
- global $template_obj;
- global $target_domain_id;
- $domain_db = new User_Domain_Db();
- $domain_db = $domain_db->Db(
- $default->user_domain_db->driver,
- $default->user_domain_db
- );
- $temp_obj = new User_Domain();
- $temp_obj->domain_id = $target_domain_id;
- $ret_vals = $domain_db->Get( $target_domain_id );
- $form_title = 'Delete domain - confirmation';
- include( './templates/form/form_top.inc' );
- if ( $ret_vals[ 0 ] == 1 ) {
- $temp_obj = $ret_vals[ 1 ];
- $value = 'Attributes for : ' . $temp_obj->domain_name;
- include( './templates/form/form_section_title.inc' );
- $desc_text = 'Domain ID';
- $value = $temp_obj->domain_id;
- include( './templates/form/form_readonly_text_elem.inc' );
- $desc_text = 'Domain Name';
- $value = $temp_obj->domain_name;
- include( './templates/form/form_readonly_text_elem.inc' );
- } else {
- echo( '<tr ' . $template_obj->Get( 'default_bgcolor' ) . '>' );
- echo( '<td>No domain found with that id.</td>' );
- echo( '</tr>' );
- }
- $name = 'session_id';
- $value = $session_id;
- include( './templates/form/form_hidden_elem.inc' );
- $name = 'target_domain_id';
- $value = $target_domain_id;
- include( './templates/form/form_hidden_elem.inc' );
- $submit_text = 'Delete';
- include( './templates/form/form_bottom.inc' );
- }
- $form_mode = MANAGER_VDOMAIN_DELETE;
- include( './templates/main.inc' );
- ?>