Esempio n. 1
0
int
main (void)
{
  volatile int a[5];
  a[4] = 1;
  a[2] = a[3];
  fn_p (a[4]);
  fn_a (a);

  int i = 4;
  a[i] = 1;
  a[2] = a[i];
  fn_p (a[i]);
  foo_i (i);

  const int n = 5;
  volatile int b[n];
  b[4] = 1;
  b[2] = b[3];
  fn_p (b[4]);
  fn_a (b);

  volatile int c[n][n][n];
  c[2][2][2] = 2;
  i = c[4][4][4];

  volatile struct S s;
  s.a[9] = 1;
  i = s.a[9];

  /* Don't instrument flexible array members.  */
  struct T *t = (struct T *) __builtin_malloc (sizeof (struct T) + 10);
  t->a[1] = 1;

  struct U *u = (struct U *) __builtin_malloc (sizeof (struct U) + 10);
  u->a[1] = 1;

  long int *d[10][5];
  d[9][0] = (long int *) 0;
  d[8][3] = d[9][0];

  return 0;
}
Esempio n. 2
0
BOOLEAN DeallocateModule (Plugin * const plugin_p)
{
	BOOLEAN success = TRUE;

	if (plugin_p -> pl_module_p)
		{
			char *symbol_name = NULL;
			success = FALSE;

			switch (plugin_p -> pl_type)
				{
					case PT_LOADER:
						symbol_name = "DeallocateLoader";
						break;

					case PT_ALIGNER:
						symbol_name = "DeallocateAligner";
						break;

					case PT_MODELLER:
						symbol_name = "DeallocateModeller";
						break;

					case PT_SAVER:
						symbol_name = "DeallocateSaver";
						break;

					case PT_PREPROCESSOR:
						symbol_name = "DeallocatePreprocessor";
						break;

					case PT_CLASSIFIER:
						symbol_name = "DeallocateClassifier";
						break;

					case PT_STATS_SAVER:
						symbol_name = "DeallocateStatisticsSaver";
						break;

					case PT_STREAMER:
						symbol_name = "DeallocateStreamer";
						break;

					case PT_SPECTRA_CALCULATOR:
						symbol_name = "DeallocateSpectraCalculator";
						break;

					case PT_DATA_IO:
						symbol_name = "DeallocateDataIO";
						break;

					case PT_UNKNOWN:
					default:

						break;
				}

			if (symbol_name)
				{
					WindowsPlugin *windows_plugin_p = (WindowsPlugin *) plugin_p;

					if (windows_plugin_p -> wp_handle)
						{
							void (*fn_p) (Module * const) = (void (*) (Module * const)) (GetProcAddress (windows_plugin_p -> wp_handle, symbol_name));

							if (fn_p)
								{
									fn_p (plugin_p -> pl_module_p);

									plugin_p -> pl_module_p = NULL;
									success = TRUE;
								}
						}
				}
		}

	return success;
}
Esempio n. 3
0
//
//	Get Symbol
//
Module *GetModuleFromPlugin (Plugin * const plugin_p, const ConfigurationManager * const config_p)
{
	if (!plugin_p -> pl_module_p)
		{
			char *symbol_name = NULL;

			switch (plugin_p -> pl_type)
				{
					case PT_LOADER:
						symbol_name = "AllocateLoader";
						break;

					case PT_ALIGNER:
						symbol_name = "AllocateAligner";
						break;

					case PT_MODELLER:
						symbol_name = "AllocateModeller";
						break;

					case PT_SAVER:
						symbol_name = "AllocateSaver";
						break;

					case PT_PREPROCESSOR:
						symbol_name = "AllocatePreprocessor";
						break;

					case PT_CLASSIFIER:
						symbol_name = "AllocateClassifier";
						break;

					case PT_STATS_SAVER:
						symbol_name = "AllocateStatisticsSaver";
						break;

					case PT_STREAMER:
						symbol_name = "AllocateStreamer";
						break;

					case PT_SPECTRA_CALCULATOR:
						symbol_name = "AllocateSpectraCalculator";
						break;

					case PT_DATA_IO:
						symbol_name = "AllocateDataIO";
						break;

					case PT_UNKNOWN:
					default:
						break;
				}

			if (symbol_name)
				{
					WindowsPlugin *windows_plugin_p = (WindowsPlugin *) plugin_p;

					if (windows_plugin_p -> wp_handle)
						{
							Module *(*fn_p) (const ConfigurationManager * const) = (Module *(*) (const ConfigurationManager * const)) (GetProcAddress (windows_plugin_p -> wp_handle, symbol_name));

							if (fn_p)
								{
									Module *module_p = fn_p (config_p);

									if (module_p)
										{
											plugin_p -> pl_module_p = module_p;
											module_p -> mo_plugin_p = plugin_p;
										}
								}
						}
				}
		}

	return plugin_p -> pl_module_p;
}
Esempio n. 4
0
void Drukuj::GetFLM_HTML(struct Film *flm_ptr, bool head_wrttn, bool html_end)
{
		QFile fn_exp(QString::fromWCharArray(L"wydruk.html"));
		fn_exp.open(QFile::WriteOnly | QFile::Append | QFile::Text);
		QTextStream fnout(&fn_exp);
	
		
		if (!head_wrttn)
		{
			fnout << QString::fromWCharArray(L"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html><head><title>") << tr("Biblioteka Filmow Printing from database - http://mkalat.pl") << QString::fromWCharArray(L"</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=cp-1250\"><style type=\"text/css\">p {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;}</style></head><body>") << "\n";
			
		}
		fnout << QString::fromWCharArray(L"<h1>");
        fnout << QString::fromWCharArray(flm_ptr->tytul);
        fnout << QString::fromWCharArray(L"</h1><table ><tr><td><img src=\"file://");
        fnout << QString::fromWCharArray(flm_ptr->skan_przod_path);
		fnout << QString::fromWCharArray(L"\"></td></tr><tr><td><p>") << tr("Oryginalny tytuł: ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->oryginalny_tytul);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Gatunek : ")<< QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->gatunek_filmu);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Rok produkcji : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_rok_produkcji);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Data premiery : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_data_premiery);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Czas projekcji : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_czas_trwania);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Język lektora : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_jezyk_lektora);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Język napisów ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_jezyk_napisow);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Format wyświetlania : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_format_wysw);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("System kodowania obrazu : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_system_kodowania_obrazu);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Kraj produkcji filmu : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_kraj_produkcji_filmu);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Cena : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_cena);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Wartość aktualna : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_wartosc_akt);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Data zakupu : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_data_zakupu);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Data utraty : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_data_utraty);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Data skatalogowania : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_data_skatalogowania);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Nośnik : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_rodzaj_nosnika);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Ocena - Muzyka : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->WOF_sciezka_dz);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Ocena - Obsada : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->WOF_obsada);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Ocena - Zdjęcia : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->WOF_zdjecia);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Ocena - Wartość artystyczna : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->WOF_w_art);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Ocena - Całość : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->WOF_calosc);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Nr Kat : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_Nr_kat);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Właściciel - Imię : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_WKF_imie);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Właściciel - Nazwisko : ") << QString::fromWCharArray(L"</p></td><td><p>");
		fnout << QString::fromWCharArray(flm_ptr->DOE_WKF_nazwisko);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Właściciel - Adres : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_WKF_adres);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Sklep - Nazwa : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_MN_nazwa);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Sklep - Adres : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_MN_adres);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Sklep - Telefon : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_MN_telefon);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Sklep - email : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_MN_email);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Sklep - WWW : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_MN_www);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Sklep - Fax : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->DOE_MN_fax);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Kodek wideo - Nazwa : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_KODEK_nazwa);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Kodek wideo - typ : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_KODEK_typ);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Kodek wideo - wersja : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_KODEK_wersja);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Zabezpieczenia - Nazwa : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_ZABEZP_nazwa);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Zabezpieczenia - typ : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_ZABEZP_typ);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Zabezpieczenia - wersja : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_ZABEZP_wersja);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Kodek audio - Nazwa : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_DZWIEK_nazwa);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Kodek audio - typ : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_DZWIEK_typ);
		fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Kodek audio - wersja : ") << QString::fromWCharArray(L"</p></td><td><p>");
        fnout << QString::fromWCharArray(flm_ptr->IOF_DZWIEK_wersja);
        fnout << QString::fromWCharArray(L"</p></td></tr></table>") << "\n";

		if (ui->checkBox_OB->isChecked() == true)
		{
			fnout << QString::fromWCharArray(L"<h1>") << tr("Tabela Obsada") << QString::fromWCharArray(L"</h1><table >") << "\n";
			struct Obsada ob_buff;
			QFile fn_ob(QString::fromWCharArray(flm_d.pths.BF_OB));
			fn_ob.open(QFile::ReadOnly);
			unsigned int stop = fn_ob.size();
			for (unsigned int i = 0; i < stop; )
			{
				fn_ob.seek(i);
				fn_ob.read(reinterpret_cast<char *>(&ob_buff),sizeof(ob_buff));
				if (ob_buff.IDPDB == flm_ptr->ID)
				{
					fnout << QString::fromWCharArray(L"<tr><td><p>") << tr("Imię i Nazwisko : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(ob_buff.imie_nazw);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Rola : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(ob_buff.rola);
                    fnout << QString::fromWCharArray(L"</p></td></tr>");


				}
				i = i + sizeof(ob_buff);
			}
			fn_ob.close();
            fnout << QString::fromWCharArray(L"</table>") << "\n";
		}
		if (ui->checkBox_OC->isChecked() == true)
		{
			fnout << QString::fromWCharArray(L"<h1>") << tr("Tabela Ocena") << QString::fromWCharArray(L"</h1><table >") << "\n";
			struct Ocena oc_buff;
			QFile fn_oc(QString::fromWCharArray(flm_d.pths.BF_OC));
			fn_oc.open(QFile::ReadOnly);
			unsigned int stop = fn_oc.size();
			for (unsigned int i = 0; i < stop; )
			{
				fn_oc.seek(i);
				fn_oc.read(reinterpret_cast<char *>(&oc_buff),sizeof(oc_buff));
				if (oc_buff.IDPDB == flm_ptr->ID)
				{
					fnout << QString::fromWCharArray(L"<tr><td><p>") << tr("Nazwa : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(oc_buff.nazwa);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Tytuł tekstu : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(oc_buff.tytul_tekstu);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Autor tekstu : ") << QString::fromWCharArray(L"</p></td/><td><p>");
                    fnout << QString::fromWCharArray(oc_buff.autor_tekstu);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Strona WWW : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(oc_buff.strona_www);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Ocena krytyka : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(oc_buff.ocena_krytyka);
                    fnout << QString::fromWCharArray(L"</p></td></tr>");


				}
				i = i + sizeof(oc_buff);
				
			}
			fn_oc.close();
            fnout << QString::fromWCharArray(L"</table>") << "\n";
		}
		if (ui->checkBox_PROD->isChecked() == true)
		{
			fnout << QString::fromWCharArray(L"<h1>") << tr("Tabela Produkcja") << QString::fromWCharArray(L"</h1><table >") << "\n";
			struct Producent p_buff;
			QFile fn_p(QString::fromWCharArray(flm_d.pths.BF_PRP));
			fn_p.open(QFile::ReadOnly);
			unsigned int stop = fn_p.size();
			for (unsigned int i = 0; i < stop; )
			{
				fn_p.seek(i);
				fn_p.read(reinterpret_cast<char *>(&p_buff),sizeof(p_buff));
				if (p_buff.IDPDB == flm_ptr->ID)
				{
					fnout << QString::fromWCharArray(L"<tr><td><p>") << tr("Nazwa firmy : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(p_buff.nazwa_firmy);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Adres : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(p_buff.adres);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Telefon : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(p_buff.telefon);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Fax : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(p_buff.fax);
					fnout << QString::fromWCharArray(L"<p></td></tr><tr><td><p>") << tr("E - mail : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(p_buff.email);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Strona WWW : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(p_buff.strona_www);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Narodowość : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(p_buff.narodowosc);
                    fnout << QString::fromWCharArray(L"</p></td></tr>");


				}
				i = i + sizeof(p_buff);
			}
			fn_p.close();
            fnout << QString::fromWCharArray(L"</table>") << "\n";

		}
		if (ui->checkBox_DYSTR->isChecked() == true)
		{
			fnout << QString::fromWCharArray(L"<h1>") << tr("Tabela Dystrybucja") << QString::fromWCharArray(L"</h1><table >") << "\n";
			struct Dystrybutor d_buff;
			QFile fn_d(QString::fromWCharArray(flm_d.pths.BF_PRD));
			fn_d.open(QFile::ReadOnly);
			unsigned int stop = fn_d.size();
			for (unsigned int i = 0; i < stop; )
			{
				fn_d.seek(i);
				fn_d.read(reinterpret_cast<char *>(&d_buff),sizeof(d_buff));
				if (d_buff.IDPDB == flm_ptr->ID)
				{
					fnout << QString::fromWCharArray(L"<tr><td><p>") << tr("Nazwa firmy : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(d_buff.nazwa_firmy);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Adres : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(d_buff.adres);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Telefon : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(d_buff.telefon);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Fax : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(d_buff.fax);
					fnout << QString::fromWCharArray(L"<p></td></tr><tr><td><p>") << tr("E - mail : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(d_buff.email);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Strona WWW : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(d_buff.strona_www);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Narodowość : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(d_buff.narodowosc);
                    fnout << QString::fromWCharArray(L"</p></td></tr>");


				}
				i = i + sizeof(d_buff);
			}
			fn_d.close();
            fnout << QString::fromWCharArray(L"</table>") << "\n";

		}
		if (ui->checkBox_LZ->isChecked() == true)
		{
			fnout << QString::fromWCharArray(L"<h1>") << tr("Tabela Lokalizacje zdjęciowe") << QString::fromWCharArray(L"</h1><table >") << "\n";
			struct Lok_zdjeciowe z_buff;
			QFile fn_z(QString::fromWCharArray(flm_d.pths.BF_LZ));
			fn_z.open(QFile::ReadOnly);
			unsigned int stop = fn_z.size();
			for (unsigned int i = 0; i < stop; )
			{
				fn_z.seek(i);
				fn_z.read(reinterpret_cast<char *>(&z_buff),sizeof(z_buff));
				if (z_buff.IDPDB == flm_ptr->ID)
				{
					fnout << QString::fromWCharArray(L"<tr><td><p>") << tr("Nazwa obiektu : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(z_buff.nazwa_obiektu);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Kraj : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(z_buff.kraj);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Miejscowość : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(z_buff.miejscowosc);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Region : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(z_buff.region);
					fnout << QString::fromWCharArray(L"<p></td></tr><tr><td><p>") << tr("Pora roku : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(z_buff.pora_roku);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Data : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(z_buff.data);
                    fnout << QString::fromWCharArray(L"</p></td></tr>");


				}
				i = i + sizeof(z_buff);
			}
			fn_z.close();
            fnout << QString::fromWCharArray(L"</table>") << "\n";
		}
		if (ui->checkBox_WYPIN->isChecked() == true)
		{
			fnout << QString::fromWCharArray(L"<h1>") << tr("Tabela Wypożyczenia innym osobom") << QString::fromWCharArray(L"</h1><table >") << "\n";
			struct Wypozycz_Innym wi_buff;
			QFile fn_wi(QString::fromWCharArray(flm_d.pths.BF_WI));
			fn_wi.open(QFile::ReadOnly);
			unsigned int stop = fn_wi.size();
			for (unsigned int i = 0; i < stop; )
			{
				fn_wi.seek(i);
				fn_wi.read(reinterpret_cast<char *>(&wi_buff),sizeof(wi_buff));
				if (wi_buff.IDPDB == flm_ptr->ID)
				{
					fnout << QString::fromWCharArray(L"<tr><td><p>") << tr("Data wypożyczenia : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wi_buff.data_wypozyczenia);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Data oddania : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wi_buff.data_oddania);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Stan przed wypożyczeniem : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wi_buff.stan_przed_wypozycz);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Stan po oddaniu : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wi_buff.stan_po_oddaniu);
					fnout << QString::fromWCharArray(L"<p></td></tr><tr><td><p>") << tr("Osoba : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wi_buff.osoba);
                    fnout << QString::fromWCharArray(L"</p></td></tr>");


				}
				i = i + sizeof(wi_buff);
			}
			fn_wi.close();
            fnout << QString::fromWCharArray(L"</table>") << "\n";
		}
		if (ui->checkBox_WYPODIN->isChecked() == true)
		{
			fnout << QString::fromWCharArray(L"<h1>") << tr("Tabela Wypożyczenia od innych osób") << QString::fromWCharArray(L"</h1><table >") << "\n";
			struct Wypozycz_Od_Innych wo_buff;
			QFile fn_wo(QString::fromWCharArray(flm_d.pths.BF_WO));
			fn_wo.open(QFile::ReadOnly);
			unsigned int stop = fn_wo.size();
			for (unsigned int i = 0; i < stop; )
			{
				fn_wo.seek(i);
				fn_wo.read(reinterpret_cast<char *>(&wo_buff),sizeof(wo_buff));
				if (wo_buff.IDPDB == flm_ptr->ID)
				{
					fnout << QString::fromWCharArray(L"<tr><td><p>") << tr("Data wypożyczenia : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wo_buff.data_wypozyczenia);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Data oddania : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wo_buff.data_oddania);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Stan przed wypożyczeniem : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wo_buff.stan_przed_wypozycz);
					fnout << QString::fromWCharArray(L"</p></td></tr><tr><td><p>") << tr("Stan po oddaniu : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wo_buff.stan_po_oddaniu);
					fnout << QString::fromWCharArray(L"<p></td></tr><tr><td><p>") << tr("Osoba : ") << QString::fromWCharArray(L"</p></td><td><p>");
                    fnout << QString::fromWCharArray(wo_buff.osoba);
                    fnout << QString::fromWCharArray(L"</p></td></tr>");



				}
				i = i + sizeof(wo_buff);
			}
			fn_wo.close();
            fnout << QString::fromWCharArray(L"</table>") << "\n";
		}
		if (html_end)
		{
			fnout << QString::fromWCharArray(L"</body></html>");
		}
		fn_exp.close();
}