get_results("SELECT ID,post_title,post_name,post_content,menu_order FROM {$wpdb->posts} " . " WHERE ID='$template_id' AND post_type='template' AND post_author='{$current_user->ID}'"); $title = $template_data[0]->post_title; $name = $template_data[0]->post_name; $content= $template_data[0]->post_content; $default_template= $template_data[0]->menu_order; } wp_admin_css('thickbox'); wp_print_scripts('jquery-ui-core'); wp_print_scripts('jquery-ui-tabs'); wp_print_scripts('post'); wp_print_scripts('editor'); if (function_exists('add_thickbox')) add_thickbox(); wp_print_scripts('media-upload'); if (function_exists('wp_tiny_mce')) wp_tiny_mce(); ?>

/>