Bonjour,
Voila je voudrais faire un programme pour récuperer le code html de mon emploi du temps en ligne.

Seuleument c'est un peu le bordel,
je me log sur l'intranet, je vais sur la page de l'emploi du temps et je choisis la semaine qui charge sans changer le lien.

en simplifié semaine 1 : edt/index.php
semaine 2 : edt/index.php etc ...

Je voudrais savoir comment faire dans ce cas la pour récuperer l'emploi du temps de chaque semaine.

J'ai commencé a regarder le code :
l'emploi du temps se charge dans un iframe :
la fonction qui permet de selectionner une semaine est celle ci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
function SelectWeek() {
 
	var WeekSel;
 
	WeekSel = window.document.getElementById('selWEEK').value;
	parent.window.frames.HIDDEN_DATA.document.getElementById('frmWEEK').hidWEEK.value = WeekSel;
	parent.window.frames.HIDDEN_DATA.document.getElementById('frmWEEK').submit();
}
Mais dans le code source de la page je ne trouve rien ayant comme id
"frmWEEK" ...


Apres avoir parcouru plusieurs fichier .Js je crois que le iframe se load la :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
function PlanningWeek() {
 
	var MarginLeft = 5;
	var MarginTop = 95;
 
	//	ELEMENT START 
	window.document.write("<div id='PLANNINGWEEK' style='border-style: none; margin-left:0px; margin-top:0px; position:absolute; z-index:1; width: "+ScreenWidth+"px; height: "+(ScreenHeight-MarginTop-20)+"px'>");
	window.document.getElementById('PLANNINGWEEK').style.left = MarginLeft + "px";
	window.document.getElementById('PLANNINGWEEK').style.top = MarginTop + "px";
 
	//	SCREEN 
	if (ClientParameter == "OUI") 
	{
		window.document.write("<iframe id='PLANNINGWEEK_DATA' name='PLANNINGWEEK_DATA' style='border-left-style:solid; border-left-width:1px; border-left-color:" + ColorBorder + "; margin-left:0px; margin-top:0px; width: "+ScreenWidth+"px; height: "+(ScreenHeight-MarginTop-20)+"px' src='phtm/planning_week.php' scrolling='no' frameborder='no'></iframe>");
	}
	else 
	{
		window.document.write("<iframe id='PLANNINGWEEK_DATA' name='PLANNINGWEEK_DATA' style='border-style:none; border-width:1px; border-color:#ff0000; margin-left:0px; margin-top:0px; width: "+ScreenWidth+"px; height: "+(ScreenHeight-MarginTop-20)+"px' src='phtm/planning_week.php' scrolling='no' frameborder='no'></iframe>");
	}
 
	//	ELEMENT END 
	window.document.getElementById('PLANNINGWEEK').style.visibility = 'hidden';
	window.document.write("</div>");
}

Le src est planning_week.php :
je suis donc allé sur cette page :

Le iframe de l'emploi du temps est le suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
<iframe id="PLANNINGWEEK_DAY" name="PLANNINGWEEK_DAY" style="border-style: none; margin-left: 0px; margin-top: 0px; width:1383px; height: 639px" src="planning_week_day.php" scrolling="no" frameborder="no">
Je suis donc allé sur planning_week_day.php :


Sur cette page l'emploi du temps s'affiche dans un tableau :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
<td class='PLANNING_BLOCK' style='background-image: url("../image/purple_light.png"); vertical-align: middle; height: 26px' colspan='42' align='center' onmouseover="BlockOver(0,1,2,3,4,5,6,7,8,9,10); window.status = 'Powered by Helvetius Ingénierie'; return true;">
 
						<a href='JavaScript:BlockControl("");' class='PLANNING_BLOCK' onclick="BlockClick(); window.status = 'Powered by Helvetius Ingénierie'; return true;" onmouseover="BlockOver(0,1,2,3,4,5,6,7,8,9,10); window.status = 'Powered by Helvetius Ingénierie'; return true;">Information promotion</a>
					</td>
 
					<input type='hidden' id='txt_block_0' value="09:30   Information promotion   13:00" />
					<input type='hidden' id='txt_block_1' value='-' />
					<input type='hidden' id='txt_block_2' value='P 703               -' />
					<input type='hidden' id='txt_block_3' value='Réunion de rentrée' />
					<input type='hidden' id='txt_block_4' value='CFI9MKG563' />
					<input type='hidden' id='txt_block_5' value='CFRMFIN4501201      STAGE     0001-004' />
					<input type='hidden' id='txt_block_6' value=' ' />
					<input type='hidden' id='txt_block_7' value='P 703               -' />
					<input type='hidden' id='txt_block_8' value='20121015' />
					<input type='hidden' id='txt_block_9' value='09:30' />
					<input type='hidden' id='txt_block_10' value='13:00' />
Voila ce que j'ai comme pistes pour l'instant si quelqu'un pouvait me filer un coup de main ce serait cool