Exemplo n.º 1
0
function template_c6c3209f21a9d1f4126c529d5d56c118($t)
{
    if (jAuth::isConnected()) {
        ?>
<div class="option">
<ul>
<li>
<a href="<?php 
        jtpl_function_html_jurl($t, $t->_vars['createAction']);
        ?>
" class="crud-link"><?php 
        echo jLocale::get('jelix~crud.link.create.record');
        ?>
</a>
</li>
</ul>
</div>
<?php 
    }
    foreach ($t->_vars['list'] as $t->_vars['record']) {
        ?>
	<?php 
        echo jZone::get('viewevent', array('id' => $t->_vars['record']->id));
    }
    if ($t->_vars['recordCount'] > $t->_vars['listPageSize']) {
        ?>
<p class="record-pages-list">Pages : <?php 
        jtpl_function_html_pagelinks($t, $t->_vars['listAction'], array(), $t->_vars['recordCount'], $t->_vars['page'], $t->_vars['listPageSize'], $t->_vars['offsetParameterName']);
        ?>
</p>
<?php 
    }
    ?>

<?php 
}
Exemplo n.º 2
0
function template_db7ca66f6ed1c8c65b9872ef562338bd($t)
{
    ?>
<h1><?php 
    echo jLocale::get('jelix~crud.title.list');
    ?>
</h1>

<table class="records-list">
<thead>
<tr>
    <?php 
    foreach ($t->_vars['properties'] as $t->_vars['propname']) {
        ?>
    <?php 
        if (isset($t->_vars['controls'][$t->_vars['propname']])) {
            ?>
    <th><?php 
            echo htmlspecialchars($t->_vars['controls'][$t->_vars['propname']]->label);
            ?>
</th>
    <?php 
        } else {
            ?>
    <th><?php 
            echo htmlspecialchars($t->_vars['propname']);
            ?>
</th>
    <?php 
        }
        ?>
    <?php 
    }
    ?>
    <th>&nbsp;</th>
</tr>
</thead>
<tbody>
<?php 
    $t->_vars['lineparity'] = true;
    foreach ($t->_vars['list'] as $t->_vars['record']) {
        ?>
<tr class="<?php 
        if ($t->_vars['lineparity']) {
            ?>
odd<?php 
        } else {
            ?>
even<?php 
        }
        ?>
">
    <?php 
        foreach ($t->_vars['properties'] as $t->_vars['propname']) {
            ?>
    <td><?php 
            echo htmlspecialchars($t->_vars['record']->{$t->_vars['propname']});
            ?>
</td>
    <?php 
        }
        ?>
    <td>
        <a href="<?php 
        jtpl_function_html_jurl($t, $t->_vars['viewAction'], array('id' => $t->_vars['record']->{$t->_vars['primarykey']}));
        ?>
"><?php 
        echo jLocale::get('jelix~crud.link.view.record');
        ?>
</a>
    </td>
</tr>
<?php 
        $t->_vars['lineparity'] = !$t->_vars['lineparity'];
    }
    ?>
</tbody>
</table>
<?php 
    if ($t->_vars['recordCount'] > $t->_vars['listPageSize']) {
        ?>
<p class="record-pages-list">Pages : <?php 
        jtpl_function_html_pagelinks($t, $t->_vars['listAction'], array(), $t->_vars['recordCount'], $t->_vars['page'], $t->_vars['listPageSize'], $t->_vars['offsetParameterName']);
        ?>
</p>
<?php 
    }
    ?>
<p><a href="<?php 
    jtpl_function_html_jurl($t, $t->_vars['createAction']);
    ?>
" class="crud-link"><?php 
    echo jLocale::get('jelix~crud.link.create.record');
    ?>
</a>.</p>

<?php 
}
Exemplo n.º 3
0
function template_31b9b44a33309d480e7f3683318bbb47($t)
{
    ?>
<h1><?php 
    echo jLocale::get('jelix~crud.title.list');
    ?>
</h1>

<table class="records-list">
<thead>
<tr>
  	<th>Id</th>
  	<th>Date de Creation</th>
  	<th>Lettre</th>
  	<th></th>
  	<th></th>
</tr>
</thead>
<tbody>
<?php 
    $t->_vars['lineparity'] = true;
    foreach ($t->_vars['list'] as $t->_vars['record']) {
        ?>
<tr class="<?php 
        if ($t->_vars['lineparity']) {
            ?>
odd<?php 
        } else {
            ?>
even<?php 
        }
        ?>
">
    <?php 
        foreach ($t->_vars['properties'] as $t->_vars['propname']) {
            ?>
    <td><?php 
            echo $t->_vars['record']->{$t->_vars['propname']};
            ?>
</td>
    <?php 
        }
        ?>
    <td>
        <a href="<?php 
        jtpl_function_html_jurl($t, $t->_vars['viewAction'], array('id' => $t->_vars['record']->{$t->_vars['primarykey']}));
        ?>
"><?php 
        echo jLocale::get('jelix~crud.link.view.record');
        ?>
</a>
    </td>
    <td>
        <a href="<?php 
        jtpl_function_html_jurl($t, 'prepareToSave', array('id' => $t->_vars['record']->{$t->_vars['primarykey']}));
        ?>
">Envoyer</a>
    </td>
</tr>
<?php 
        $t->_vars['lineparity'] = !$t->_vars['lineparity'];
    }
    ?>
</tbody>
</table>
<?php 
    if ($t->_vars['recordCount'] > $t->_vars['listPageSize']) {
        ?>
<p class="record-pages-list">Pages : <?php 
        jtpl_function_html_pagelinks($t, $t->_vars['listAction'], array(), $t->_vars['recordCount'], $t->_vars['page'], $t->_vars['listPageSize'], $t->_vars['offsetParameterName']);
        ?>
</p>
<?php 
    }
    ?>
<p><a href="<?php 
    jtpl_function_html_jurl($t, 'newLetter');
    ?>
" class="crud-link"><?php 
    echo jLocale::get('jelix~crud.link.create.record');
    ?>
</a>.</p>

<?php 
}