Beispiel #1
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>";
    }
}
Beispiel #2
0
    @package    edoceo-imperium
    @link       http://imperium.edoceo.com
    @since      File available since Release 1013
*/
echo '<form action="' . radix::link('/email/send') . '" enctype="" method="post">';
echo '<table>';
//if (!empty($this->EmailMessage->RecipientList)) {
//  echo '<tr><td class="b r">To:</td><td>' . $this->formSelect('to_s',$this->EmailMessage->to,array('style'=>'width: 50%;'),$this->EmailMessage->RecipientList) . '</td></tr>';
//  $this->EmailMessage->to = null;
//}
//echo '<tr><td class="b r">To:</td><td>' . $this->formText('to_t',$this->EmailMessage->to,array('style'=>'width: 50%;')) . '</td></tr>';
echo '<tr>';
echo '<td class="l">To:</td><td><input id="rcpt" name="rcpt" type="text" value="' . html($this->EmailMessage['rcpt']) . '" /></td>';
echo '</tr>';
echo '<tr><td class="b r">Subject:</td><td>' . radix_html_form::text('subj', $this->EmailMessage['subj']) . '</td></tr>';
echo '<tr><td class="b r">Message:</td><td>' . radix_html_form::textarea('body', $this->EmailMessage['body'], array('style' => 'height: 25em;', 'wrap' => 'off')) . '</td></tr>';
echo '</table>';
echo '<div class="cmd">';
echo '<button class="exec" name="a" value="send">Send</button>';
echo '</div>';
echo '</form>';
?>

<script type="text/javascript">
$(function() {
    $("#rcpt").autocomplete({
        focus: function(e,ui) { 
            this.value = ui.item.email;
            return false;
        },
        select: function(e,ui) { 
Beispiel #3
0
    } else {
        echo $this->File['link'];
    }
    echo '</td>';
    echo '</tr>';
}
echo '<tr>';
echo '<td class="b r">Upload:</td>';
echo '<td>';
echo '<input type="file" name="file" size="50">';
echo '</td>';
echo '</tr>';
echo '</table>';
echo '<div class="cmd">';
echo radix_html_form::hidden('id', $this->File['id']);
echo radix_html_form::hidden('link', $this->File['link']);
echo '<input name="a" type="submit" value="Upload">';
if (!empty($this->File['id'])) {
    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>';