<?php 
wpmudev_chat_form_section_messages_wrapper($form_section);
?>

				<?php 
wpmudev_chat_form_section_messages_rows($form_section);
?>

			</div>
			<div id="wpmudev-chat-messages-input-panel" class="panel">
				<?php 
wpmudev_chat_form_section_messages_input($form_section);
?>

				<?php 
wpmudev_chat_form_section_messages_send_button($form_section);
?>

			</div>
			<div id="wpmudev-chat-users-list-panel" class="panel">
				<?php 
wpmudev_chat_users_list($form_section);
?>

				<?php 
wpmudev_chat_form_section_user_enter_exit_messages($form_section);
?>

			</div>
			<div id="wpmudev-chat-authentication-panel" class="panel">
				<?php 
        function chat_settings_panel_dashboard()
        {
            global $wpmudev_chat;
            $form_section = "dashboard";
            ?>

			<div id="wpmudev-chat-wrap" class="wrap wpmudev-chat-wrap-settings-page">
				<?php 
            if (is_network_admin()) {
                ?>

					<h2><?php 
                _e('Chat Settings Network Dashboard Widgets', $wpmudev_chat->translation_domain);
                ?>
</h2>
				<?php 
            } else {
                ?>

					<h2><?php 
                _e('Chat Settings Dashboard Widgets', $wpmudev_chat->translation_domain);
                ?>
</h2>
				<?php 
            }
            ?>

				<form method="post" id="wpmudev-chat-settings-form" action="?page=<?php 
            echo $_GET['page'];
            ?>
">

					<?php 
            if (is_network_admin()) {
                ?>

						<p><?php 
                _e('This section controls visibiliy of Network Dashboard Chat Widgets', $wpmudev_chat->translation_domain);
                ?>
</p>
					<?php 
            } else {
                ?>

						<p><?php 
                _e('This section controls visibiliy Dashboard Chat Widgets', $wpmudev_chat->translation_domain);
                ?>
</p>
					<?php 
            }
            ?>

					<div id="chat_tab_pane" class="chat_tab_pane">
						<ul>
							<li id="chat_widgets_tab"><a href="#chat_widgets_panel" class="current"><span><?php 
            _e('Widgets', $wpmudev_chat->translation_domain);
            ?>
</span></a></li>

							<li id="chat_box_appearance_tab"><a href="#chat_box_appearance_panel"><span><?php 
            _e('Box Appearance', $wpmudev_chat->translation_domain);
            ?>
</span></a></li>
							<li id="chat_messages_appearance_tab"><a href="#chat_messages_appearance_panel"><span><?php 
            _e('Message Appearance', $wpmudev_chat->translation_domain);
            ?>
</span></a>
							</li>
							<li id="chat_messages_input_tab"><a href="#chat_messages_input_panel"><span><?php 
            _e('Message Input', $wpmudev_chat->translation_domain);
            ?>
</span></a></li>
							<li id="chat_users_list_tab"><a href="#chat_users_list_panel"><span><?php 
            _e('Users List', $wpmudev_chat->translation_domain);
            ?>
</span></a></li>

							<?php 
            if (!is_network_admin()) {
                ?>

								<li id="chat_authentication_tab"><a href="#chat_authentication_panel"><span><?php 
                _e('Authentication', $wpmudev_chat->translation_domain);
                ?>
</span></a>
								</li>
							<?php 
            }
            ?>

							<li id="chat_advanced_tab"><a href="#chat_advanced_panel"><span><?php 
            _e('Advanced', $wpmudev_chat->translation_domain);
            ?>
</span></a></li>
						</ul>
						<div id="chat_widgets_panel" class="panel current">
							<?php 
            wpmudev_chat_form_section_dashboard($form_section);
            ?>

						</div>

						<div id="chat_box_appearance_panel" class="panel">
							<?php 
            wpmudev_chat_form_section_container($form_section);
            ?>

						</div>
						<div id="chat_messages_appearance_panel" class="panel">
							<?php 
            wpmudev_chat_form_section_messages_wrapper($form_section);
            ?>

							<?php 
            wpmudev_chat_form_section_messages_rows($form_section);
            ?>

						</div>
						<div id="chat_messages_input_panel" class="panel">
							<?php 
            wpmudev_chat_form_section_messages_input($form_section);
            ?>

							<?php 
            wpmudev_chat_form_section_messages_send_button($form_section);
            ?>

						</div>
						<div id="chat_users_list_panel" class="panel">
							<?php 
            wpmudev_chat_users_list($form_section);
            ?>

							<?php 
            wpmudev_chat_form_section_user_enter_exit_messages($form_section);
            ?>

						</div>

						<?php 
            if (!is_network_admin()) {
                ?>

							<div id="chat_authentication_panel" class="chat_panel">
								<?php 
                wpmudev_chat_form_section_login_options($form_section);
                ?>

								<?php 
                //wpmudev_chat_form_section_login_view_options($form_section);
                ?>

								<?php 
                wpmudev_chat_form_section_moderator_roles($form_section);
                ?>

							</div>
						<?php 
            }
            ?>

						<div id="chat_advanced_panel" class="chat_panel">
							<?php 
            wpmudev_chat_form_section_logs($form_section);
            ?>

							<?php 
            wpmudev_chat_form_section_logs_limit($form_section);
            ?>

						</div>
					</div>
					<input type="hidden" name="chat[section]" value="<?php 
            echo $form_section;
            ?>
"/>
					<?php 
            wp_nonce_field('wpmudev_chat_settings_save', 'wpmudev_chat_settings_save_wpnonce');
            ?>

					<p class="submit"><input type="submit" name="Submit" class="button-primary"
							value="<?php 
            _e('Save Changes', $wpmudev_chat->translation_domain);
            ?>
"/></p>

				</form>
			</div>
		<?php 
        }