Esempio n. 1
0
<?php

/**
    @file
    @brief List of Files
*/
// echo $this->paginationControl($this->Page,'All','../elements/page-control.phtml');
$FileList = Radix\DB\SQL::fetch('SELECT * FROM base_file WHERE link IS NULL ORDER BY name');
echo radix::block('file-list', $FileList);
// echo $this->paginationControl($this->Page,'All','../elements/page-control.phtml');
Esempio n. 2
0
<?php

/**
	Account Tax Forms View

	@copyright	2008 Edoceo, Inc
	@package	edoceo-imperium
	@link	   http://imperium.edoceo.com
	@since	  File available since Release 1013
*/
$_ENV['title'] = array('Account', 'Tax Forms', $this->Form['name'], $this->date_alpha_f);
echo '<form action="" class="np" method="get">';
echo '<div>';
echo radix_html_form::hidden('id', $_GET['id']);
echo radix::block('account-period-input');
echo '</div>';
echo '</form>';
// radix::dump($this->LineList);
echo '<table>';
foreach ($this->LineList as $item) {
    // Skip Zero Balance
    if ($item['balance'] == 0) {
        //continue;
    }
    // Tax Line
    echo "<tr><th class='l' colspan='2'>" . $item['name'] . "</th><th class='r'>" . number_format($item['balance'], 2) . "</th></tr>";
    // Accounts that lead to this conculsion
    foreach ($item['accounts'] as $a) {
        echo "<tr><td>&nbsp;</td><td>" . $a['name'] . "</td><td class='r'>" . number_format($a['balance'], 2) . "</td></tr>";
    }
}
Esempio n. 3
0
    echo '<input name="a" type="submit" value="Download">';
    echo '<input name="a" type="submit" value="Delete">';
}
echo '</div>';
echo '</form>';
$mime0 = strtok($this->File['kind'], '/');
$mime1 = strtok($this->File['kind']);
switch ($mime0) {
    case 'audio':
        echo '<h2>Audio Preview</h2>';
        echo '<div class="c">';
        echo '<audio controls preload src="' . radix::link('/file/download?id=' . $this->File['id']) . '"></audio>';
        echo '</div>';
        break;
    case 'image':
        echo '<h2>Preview</h2>';
        echo '<div class="c">';
        echo '<img src="' . radix::link('/file/download?a=preview&id=' . $this->File['id']) . '">';
        echo '</div>';
        break;
    default:
        echo '<h2>Preview</h2>';
        // $src = $this->appurl . '/file/download?a=preview&id=' . $this->File->id;
        echo '<div class="c">';
        echo '<a href="' . radix::link('/file/download?id=' . $this->File['id']) . '">Download</a>';
        echo '</div>';
}
// History
$args = array('list' => $this->File->getHistory());
echo radix::block('diff-list', $args);