Location: PHPKode > projects > EmploiNet : a timetable web manager > EmploiNet/v0.8.0/edt/fonctions_edt.php3
<?
	function barre_du_haut($deb,$fin,$hauteur)
  	{
    	print("<TR style=\"font-family: Arial, Helvetica;font-style:italic; font-size:10pt;\">\n");
	    print("<TD height=\"$hauteur\" colspan=\"2\" class=\"barre_haut2\"><font size=\"1\" face=\"Times New Roman, Times, serif\">&nbsp;</font></TD>\n");
		if ($deb - floor($deb) != 0) 
		{
		    print("<TD height=\"$hauteur\" colspan=\"2\" class=\"barre_haut\"><font size=\"1\" face=\"Times New Roman, Times, serif\">&nbsp;</font></TD>\n");	
			$deb += 0.5;
		}
	    for($i = $deb + 1;$i < $fin + 1;$i++)
    	{
	    print("<TD height=\"$hauteur\" colspan=\"2\" class=\"barre_haut\"><font size=\"1\" face=\"Times New Roman, Times, serif\">&nbsp;</font></TD>\n");
	    print("<TD height=\"$hauteur\" colspan=\"2\" class=\"barre_haut2\"><font size=\"1\" face=\"Times New Roman, Times, serif\">&nbsp;</font></TD>\n");
	    }
    	print("</TR>\n");
	}

	function barre_du_bas($deb,$fin,$hauteur)
  	{
    	print("<TR style=\"font-family: Arial, Helvetica;font-style:italic; font-size:10pt;\">\n");
	    print("<TD height=\"$hauteur\" colspan=\"2\" class=\"barre_bas2\"><font size=\"1\" face=\"Times New Roman, Times, serif\">&nbsp;</font></TD>\n");
		if ($deb - floor($deb) != 0) 
		{
	    print("<TD height=\"$hauteur\" colspan=\"2\" class=\"barre_bas\"><font size=\"1\" face=\"Times New Roman, Times, serif\">&nbsp;</font></TD>\n");	
			$deb += 0.5;
		}
	    for($i = $deb + 1;$i < $fin + 1;$i++)
    	{
	    print("<TD height=\"$hauteur\" colspan=\"2\" class=\"barre_bas\"><font size=\"1\" face=\"Times New Roman, Times, serif\">&nbsp;</font></TD>\n");
	    print("<TD height=\"$hauteur\" colspan=\"2\" class=\"barre_bas2\"><font size=\"1\" face=\"Times New Roman, Times, serif\">&nbsp;</font></TD>\n");
    }
    	print("</TR>\n");
	}

	function barre_des_heures($deb,$fin,$hauteur)
  	{
    	print("<TR style=\"font-family: Arial, Helvetica;font-style:italic; font-size:10pt;\">\n");
	    print("<TD width=\"50\">&nbsp;</TD>\n");
	    print("<TD width=\"50\">&nbsp;</TD>\n");
		if ($deb - floor($deb) != 0) // Si l'heure de début n'est pas entière
		{
		    print("<TD width=\"50\">&nbsp;</TD>\n");
			$deb += 0.5;
		}
	    print("<TD width=\"25\" align=\"left\">$deb</TD>\n");
			print("<TD width=\"25\">&nbsp;</TD>");
			print("<TD width=\"50\">&nbsp;</TD>");
	    for($i = $deb + 1;$i < $fin + 1;$i++)
    		{
			print("<TD width=\"50\" colspan=\"2\">$i</TD>\n");
			print("<TD width=\"50\">&nbsp;</TD>");
			print("<TD width=\"50\">&nbsp;</TD>");
    		}
    	print("</TR>\n");
	}

	function transformation_date($nb_jours)
  	{
    	$trans = mysql_query("SELECT FROM_DAYS($nb_jours)");
	    $result_trans = mysql_fetch_row($trans);
    	$trans2 = mysql_query("SELECT DATE_FORMAT(\"$result_trans[0]\",'%d/%m')");
	    $result_trans2 = mysql_fetch_row($trans2);
	   	return $result_trans2[0];
	}

  function barre_choix_emploi()
	{
	print("<TABLE ALIGN=CENTER>\n");
    print("<TR>\n");
    // *************** BOUTON GROUPE ***************
    print("<TD ALIGN=CENTER>\n");
       print("<FORM ACTION=\"Formulaire/FormulaireGroupe.php3\">\n");
       print("<INPUT TYPE=\"HIDDEN\" NAME=\"login\" value=\"$login\">\n");
       print("<INPUT TYPE=\"SUBMIT\" VALUE=\"Groupe\" style='font-family=\"verdana\"'>\n");
       print("</FORM>\n");
       print("</TD>\n");
    print("<TD WIDTH=15></TD>\n");

    // *************** BOUTON ETUDIANT ***************
       print("<TD ALIGN=CENTER>\n");
       print("<FORM ACTION=\"Formulaire/FormulaireEtudiant.php3\">\n");
       print("<INPUT TYPE=\"HIDDEN\" NAME=\"login\" value=\"$login\">\n");
       print("<INPUT TYPE=\"SUBMIT\" VALUE=\"Etudiant\" style='font-family=\"verdana\"'>\n");
       print("</FORM>\n");
       print("</TD>\n");
    print("<TD WIDTH=15></TD>\n");

    // *************** BOUTON PROFESSEUR ***************
       print("<TD ALIGN=CENTER>\n");
       print("<FORM ACTION=\"Formulaire/FormulaireProfesseur.php3\">\n");
       print("<INPUT TYPE=\"HIDDEN\" NAME=\"login\" value=\"$login\">\n");
       print("<INPUT TYPE=\"SUBMIT\" VALUE=\"Professeur\" style='font-family=\"verdana\"'>\n");
       print("</FORM>\n");
       print("</TD>\n");
    print("<TD WIDTH=15></TD>\n");

    // *************** BOUTON PROMOTION ***************
       print("<TD ALIGN=CENTER>\n");
       print("<FORM ACTION=\"Formulaire/FormulairePromotion.php3\">\n");
       print("<INPUT TYPE=\"HIDDEN\" NAME=\"login\" value=\"$login\">\n");
       print("<INPUT TYPE=\"SUBMIT\" VALUE=\"Promotion\" style='font-family=\"verdana\"'>\n");
       print("</FORM>\n");
       print("</TD>\n");
	   print("</TR>\n");
    print("</TABLE>\n");
}

  function barre_valider_effacer()
  {
    print("<TABLE ALIGN=CENTER>\n");
    print("<TR><TD>&nbsp</TD></TR>\n");
    print("<TR>\n");
    // *************** BOUTON VALIDER ***************
       print("<TD WIDTH=100 ALIGN=center><INPUT TYPE=\"SUBMIT\" VALUE=\"Valider\" style='font-family=\"verdana\"'></TD>\n");
    // *************** BOUTON EFFACER ***************
       print("<TD WIDTH=100 ALIGN=center><INPUT TYPE=\"RESET\" VALUE=\"Effacer\" style='font-family=\"verdana\"'></TD>\n");
    print("</TR>\n");
    print("</TABLE>\n");
  }
?>















Return current item: EmploiNet : a timetable web manager