Subversion Repositories Kolibri OS

Rev

Rev 7750 | Rev 8330 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifdef LANG_RUS
  2. #define HISTORY_HEADER "<html>
  3. <head>
  4.         <title>ˆáâ®à¨ï</title>
  5. </head>
  6. <body>
  7.         <h1>ˆáâ®à¨ï</h1>
  8.         <br>
  9.         <b>®á¥é¥­­ë¥ áâà ­¨æë</b><br>
  10. "
  11. #else
  12. #define HISTORY_HEADER "<html>
  13. <head>
  14.         <title>History</title>
  15. </head>
  16. <body>
  17.         <h1>History</h1>
  18.         <br>
  19.         <b>Visited pages</b><br>
  20. "
  21. #endif
  22.  
  23.  
  24. ShowHistory()
  25. {
  26.         int i;
  27.         static int history_pointer;
  28.         int t;
  29.        
  30.         free(history_pointer);
  31.         history_pointer = malloc(history.items.data_size+256);
  32.         strcat(history_pointer, HISTORY_HEADER);
  33.         for (i=0; i<history.items.count-1; i++)
  34.         {
  35.                 strcat(history_pointer, "\t<a href='");
  36.                 strcat(history_pointer, history.items.get(i));
  37.                 strcat(history_pointer, "'>");
  38.                 strcat(history_pointer, history.items.get(i));
  39.                 strcat(history_pointer, "</a><br>");
  40.         }
  41.         /*
  42.         strcat(history_pointer, "<br><b>Cached images</b><br>");
  43.         for (i=1; i<ImgCache.pics_count; i++)
  44.         {
  45.                 strcat(history_pointer, "<a href='");
  46.                 strcat(history_pointer, #pics[i].path);
  47.                 strcat(history_pointer, "'>");
  48.                 strcat(history_pointer, #pics[i].path);
  49.                 strcat(history_pointer, "</a><br>");
  50.                
  51.                 // strcat(history_pointer, "<img src='");
  52.                 // strcat(history_pointer, #pics[i].path);
  53.                 // strcat(history_pointer, "'><br>");
  54.                 // strcat(history_pointer, #pics[i].path);
  55.         }
  56.         */
  57.         strcat(history_pointer, "</body></html>");
  58.         LoadInternalPage(history_pointer, strlen(history_pointer));
  59. }