\n");
/* left column of the first row */
printf("\n");
if(display_type==DISPLAY_SERVICES)
snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s For Service %s On Host %s",(log_rotation_method==LOG_ROTATION_NONE || log_archive==0)?"Current Alert History":"Archived Alert History",svc_description,host_name);
else{
if(show_all_hosts==TRUE)
snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s For All Hosts",(log_rotation_method==LOG_ROTATION_NONE || log_archive==0)?"Current Alert History":"Archived Alert History");
else
snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s For All Host %s",(log_rotation_method==LOG_ROTATION_NONE || log_archive==0)?"Current Alert History":"Archived Alert History",host_name);
}
temp_buffer[sizeof(temp_buffer)-1]='\x0';
display_info_table(temp_buffer,FALSE,¤t_authdata);
printf("\n");
printf("\n");
if(display_type==DISPLAY_HOSTS){
printf("View Status Detail For %s \n",STATUS_CGI,(show_all_hosts==TRUE)?"all":url_encode(host_name),(show_all_hosts==TRUE)?"All Hosts":"This Host");
printf("View Notifications For %s \n",NOTIFICATIONS_CGI,(show_all_hosts==TRUE)?"all":url_encode(host_name),(show_all_hosts==TRUE)?"All Hosts":"This Host");
#ifdef USE_TRENDS
if(show_all_hosts==FALSE)
printf("View Trends For This Host\n",TRENDS_CGI,url_encode(host_name));
#endif
}
else{
printf("View Notifications For This Service \n",url_encode(svc_description));
#ifdef USE_TRENDS
printf("View Trends For This Service \n",url_encode(svc_description));
#endif
printf("View History For This Host\n",HISTORY_CGI,url_encode(host_name));
}
printf(" | \n");
printf(" \n");
printf(" | \n");
/* middle column of top row */
printf("\n");
snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s?%shost=%s&type=%d&statetype=%d&",HISTORY_CGI,(use_lifo==FALSE)?"oldestfirst&":"",url_encode(host_name),history_options,state_options);
temp_buffer[sizeof(temp_buffer)-1]='\x0';
if(display_type==DISPLAY_SERVICES){
snprintf(temp_buffer2,sizeof(temp_buffer2)-1,"service=%s&",url_encode(svc_description));
temp_buffer2[sizeof(temp_buffer2)-1]='\x0';
strncat(temp_buffer,temp_buffer2,sizeof(temp_buffer)-strlen(temp_buffer)-1);
temp_buffer[sizeof(temp_buffer)-1]='\x0';
}
display_nav_table(temp_buffer,log_archive);
printf(" | \n");
/* right hand column of top row */
printf("\n");
printf("\n");
printf("\n");
printf(" \n");
printf(" | \n");
/* end of top table */
printf("
\n");
printf("