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_obj
- global $user_domain_obj;
- global $lang;
- global $user_db;
- global $target_username;
- $temp_obj = new User();
- $temp_obj->user_name = $target_username;
- $temp_obj->domain_id = $user_obj->domain_id;
- $user_db->debug->debug = true;
- $ret_vals = $user_db->Get( $temp_obj );
- $form_title = 'Delete user - confirmation';
- include( './templates/form/form_top.inc' );
- if ( $ret_vals[ 0 ] == 1 ) {
- $temp_obj = $ret_vals[ 1 ];
- echo( '<tr bgcolor="#a0b8c8">' );
- echo( '<td colspan="2"><b>Attributes for : ' . $temp_obj->user_name . '@'. $user_domain_obj->domain_name . '</b></td>' );
- echo( '</tr>' );
- echo( "n" );
- echo( '<tr bgcolor="#a0b8c8">' );
- echo( '<td><b>User ID :</b></td>' );
- echo( '<td>' . $temp_obj->user_id . '</td>' );
- echo( '</tr>' );
- echo( "n" );
- echo( '<tr bgcolor="#a0b8c8">' );
- echo( '<td><b>UserName :</b></td>' );
- echo( '<td>' . $temp_obj->user_name . '</td>' );
- echo( '</tr>' );
- echo( "n" );
- echo( '<tr bgcolor="#a0b8c8">' );
- echo( '<td><b>Password :</b></td>' );
- echo( '<td>' . $temp_obj->password . '</td>' );
- echo( '</tr>' );
- echo( "n" );
- echo( '<tr bgcolor="#a0b8c8">' );
- echo( '<td><b>Login disabled :</b></td>' );
- echo( '<td>' );
- if ( $temp_obj->login_deny ) {
- echo 'True';
- } else {
- echo 'False';
- }
- echo( '</td>' );
- echo( '</tr>' );
- echo( "n" );
- } else {
- echo( '<tr bgcolor="' . $default->item_bg . '">' );
- echo( '<td>No users found with that id.</td>' );
- echo( '</tr>' );
- }
- $name = 'session_id';
- $value = $session_id;
- include( './templates/form/form_hidden_elem.inc' );
- $name = 'target_username';
- $value = $target_username;
- include( './templates/form/form_hidden_elem.inc' );
- $submit_text = 'Delete';
- include( './templates/form/form_bottom.inc' );
- }
- $form_mode = MGR_USER_DELETE;
- include( './templates/main.inc' );
- ?>