<?php /** Account Form Index View */ if (!acl::may('/account/tax-form')) { radix_session::flash('fail', 'Access Denied'); radix::redirect(); } $_ENV['h1'] = $_ENV['title'] = array('Accounting', 'Tax Forms'); $res = radix_db_sql::fetchAll("select id,name from account_tax_form order by name"); echo '<p>Choose a Tax Form to Print!</p>'; echo '<ul>'; foreach ($res as $i => $f) { echo '<li><a href="' . radix::link('/account/tax-form/view?id=' . $f['id']) . '">' . $f['name'] . '</a></li>'; } echo '</ul>';
<?php /** Email Compose View Compose a plain text message @copyright 2008 Edoceo, Inc @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>'; ?>
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>'; 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);