Esempio n. 1
0
<?php

$sParamOrder = module_table::getParam('order');
$sParamSide = module_table::getParam('side');
$sVarPage = 'page';
$sValuePage = module_table::getParam($sVarPage, 0);
$oPagination = new plugin_jquery('page', array('page', 'order', 'side'));
$oPagination->addLinkUpdateElement(_root::getLink($this->ajaxLink, array('tablepage' => '$page', 'tableorder' => '$order', 'tableside' => '$side')), 'tablep');
echo $oPagination->getJs();
?>
<div id="tablep">
<table class="<?php 
echo $this->sClass;
?>
">
	<thead>
		<tr>
			<?php 
foreach ($this->tHeader as $tDetail) {
    ?>
			<th style="vertical-align:top"><?php 
    echo $tDetail['label'];
    ?>
<br />
				<?php 
    if (isset($tDetail['order'])) {
        ?>
					<a onclick="page(<?php 
        echo $sValuePage;
        ?>
,'<?php 
Esempio n. 2
0
<?php

$oFunctionClose = new plugin_jquery('closeDiv');
$oFunctionClose->addModifyElement('rendu', 'hide');
echo $oFunctionClose->getJs();
?>
<div style="text-align:right;background:gray"><a href="#" onclick="closeDiv()">Fermer</div>
<?php 
echo $this->load('main');
?>


Esempio n. 3
0
$oFunctionShow = new plugin_jquery('showArticle', array('param_id'));
$oFunctionShow->addLinkUpdateElement($this->getLink('article::showajax', array('id' => '$param_id')), 'rendu');
$oFunctionShow->addModifyElement('rendu', 'show');
echo $oFunctionShow->getJs();
$oFunctionEdit = new plugin_jquery('editArticle', array('param_id'));
$oFunctionEdit->addLinkUpdateElement($this->getLink('article::editajax', array('id' => '$param_id')), 'rendu');
$oFunctionEdit->addModifyElement('rendu', 'show');
echo $oFunctionEdit->getJs();
$oFunctionEdit = new plugin_jquery('newArticle', array('param_id'));
$oFunctionEdit->addLinkUpdateElement($this->getLink('article::newajax', array('id' => '$param_id')), 'rendu');
$oFunctionEdit->addModifyElement('rendu', 'show');
echo $oFunctionEdit->getJs();
$oFunctionDate = new plugin_jquery('echodate');
$oFunctionDate->addLinkCallFunction($this->getLink('article::dateajax'), 'print_date');
echo $oFunctionDate->getJs();
?>
<script>
function print_date(response){
	alert(response);
}
</script>

<table>
	<tr>
		<?php 
foreach ($this->tColumn as $sColumn) {
    ?>
			<th><?php 
    echo $sColumn;
    ?>