contact form 7 form not working in admin panel

The action wp_enqueue_scripts action hook is only on the frontend: try changing this to admin_enqueue_scripts for the admin (untested):

add_action( 'admin_enqueue_scripts', 'cf7_script_and_style' );

Edit:

After looking at the definition for wpcf7_enqueue_scripts(), it turns out that CF7 doesn’t anticipate being loaded in the admin: who would’ve guessed. You’ll need to copy a lot of that file and adjust it to work in the admin (using admin_enqueue_scripts instead of wp_enqueue_scripts).

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)