| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 
 | mon index.php
<script type="text/javascript" src="zpcal/src/zapatec.js"></script>
<!-- Custom includes -->	
<!-- import the calendar script -->
<script type="text/javascript" src="zpcal/src/calendar.js"></script>
<!-- import the language module -->
<script type="text/javascript" src="zpcal/lang/calendar-en.js"></script>
<!-- other languages might be available in the lang directory; please check
your distribution archive. -->
<!-- Theme css -->
<link href="zpcal/themes/aqua.css" rel="stylesheet" type="text/css">
 
</head>
<body onload="pagin(1,'<?php echo $order; ?>',<?php echo $tri; ?>,'<?php echo $Category; ?>','<?php echo $status; ?>','<?php echo $pas; ?>','<?php echo $lang; ?>','<?php echo $uid; ?>','<?php echo $Alevel; ?>');">
<div id="load"><img src="images/global/loading.gif" /></div><div id="ajaxpaged"></div>
</body>
 
la fonction pagin:
function pagin(page,order,tri,Category,status,pas,lang,uid,Alevel){
	//$('load').show();
	new Ajax.Updater({ success: 'ajaxpaged'},'modules/actionplan/ajax/pagination.php?page='+page+'&order='+order+'&tri='+tri+'&Category='+Category+'&status='+status+'&pas='+pas+'&lang='+lang+'&uid='+uid+'&Alevel='+Alevel,
	{
		method: 'get',
		onComplete: function(){
			$('load').hide();
		}
	});
}
 
 
et dans pagination.php:
 
$content.='
<input type="text" name="date1" id="sel1" size="30" >
<input type="reset" value=" ... " id=\'button1\'>
 
		<script type="text/javascript">
		var cal = new Zapatec.Calendar.setup({
 
		inputField:"sel1",
		ifFormat:"%Y-%m-%d [%W] ",
		button:"button1",
		showsTime:false
 
		});
 
	</script>'; | 
Partager