Exemple #1
0
<?php

$this->incView('include/page-top', false);
?>
<div id="sidepanel">
	<?php 
$this->fc->loadLangFile('help_multi_creation.php');
?>
</div>
<?php 
$hh = new HtmlFormHelper();
echo $hh->iForm('task_batch', 'post', $this->fc->thisUrl());
echo '<p>' . $hh->iTextArea('data') . '</p>';
echo '<p><button type="submit" name="save" value="1" class="save">' . TR::html('button', 'create') . '</button></p>';
echo '</form>';
$this->incView('include/page-bot', false);
<?php

if ($this->data->count()) {
    echo HtmlFormHelper::iForm('tasks');
    ?>
<table>
	<thead>
		<tr>
			<th>&nbsp;</th>
			<th<?php 
    if ($this->order == 'deadline') {
        echo ' class="active"';
    }
    ?>
><a href="<?php 
    echo $this->fc->getUrl('task', 'main', array('order' => 'deadline'));
    ?>
"><?php 
    TR::phtml('form', 'deadline');
    ?>
</a></th>
			<th<?php 
    if ($this->order == 'priority') {
        echo ' class="active"';
    }
    ?>
>
				<small><?php 
    $ct = $this->data->total();
    echo $ct . ' ' . TR::html('data', $ct > 1 ? 'items_found' : 'item_found');
    ?>