echo '$' . number_format($this->Account['balance'], 2); // echo '<input id="account" style="width:20em;" type="text" value="' . $this->Account['full_name'] . '">'; // echo '<input id="account_id" name="account_id" type="hidden" value="' . $this->Account['id'] . '">'; echo '</span>'; } ?> </div> <div class="pure-u-1 pure-u-md-1-2"> <!-- Table --> <div>Kind: <?php echo Form::select('kind', $this->Contact['kind'], $this->KindList); ?> </div> <div>Status: <?php echo Form::select('status', $this->Contact['status'], $this->StatusList); ?> </div> </div> <div class="pure-u-1 pure-u-md-1-2"> <?php $img = sprintf('/img/content/contact/%u/0.jpg', $this->Contact['id']); $src = sprintf('%s/webroot/%s', APP_ROOT, $img); if (is_file($src)) { echo '<img alt="Snap" src="' . Radix::link($img) . '">'; } ?> </div> </div>
echo '<td class="r">' . number_format($dr, 2) . '</td>'; echo '<td class="r">' . number_format($cr, 2) . '</td>'; echo '</table>'; //$max = ($le_i * 4); //if ($max > intval(ini_get('max_input_vars'))) { // Session::flash('warn', "There are too many elements for your system to handle, upload a smaller data set or increase <em>max_input_vars</em> above $max"); //} break; case 'load': default: echo '<form enctype="multipart/form-data" method="post">'; echo '<fieldset><legend>Step 1 - Choose Account and Data File</legend>'; echo '<table>'; echo '<tr><td class="l" title="Transactions are being uploaded for this account">Account:</td><td>' . Form::select('upload_id', $this->Account->id, $this->AccountPairList) . '</td></tr>'; // echo '<tr><td class="l" title="Default off-set account for the transactions, a pending queue for reconciliation">Offset:</td><td>' . Form::select('offset_id', $_ENV['account']['reconcile_offset_id'], $this->AccountPairList) . '</td></tr>'; echo '<tr><td class="l" title="Which data format is this in?">Format:</td><td>' . Form::select('format', null, Account_Reconcile::$format_list) . '</td></tr>'; echo '<tr><td class="l">File:</td><td><input name="file" type="file">'; echo ' <span class="s">(p:' . ini_get('post_max_size') . '/u:' . ini_get('upload_max_filesize') . ')</span>'; echo '</td></tr>'; echo '</table>'; echo '<div><input name="a" type="submit" value="Upload" /></div>'; echo '</fieldset>'; echo '</form>'; return 0; } ?> <script> function acChangeSelect(e, ui) { var c = parseInt($(e.target).data('index'));
Account Ledger View Displays a list of the transactions in a ledger style format - showing only one account */ namespace Edoceo\Imperium; use Edoceo\Radix; use Edoceo\Radix\HTML\Form; $AccountList = array(); $AccountList[-1] = 'All - General Ledger'; foreach ($this->AccountList as $item) { $AccountList[$item['id']] = $item['full_name']; } $_ENV['title'] = array('Accounts', 'Ledger', $this->Account['full_name'], sprintf('%s to %s', $this->date_alpha_f, $this->date_omega_f), sprintf('%d entries', count($this->LedgerEntryList))); echo '<form method="get">'; echo '<table>'; echo '<tr><td class="b r">Account:</td><td colspan="4">' . Form::select('id', $this->Account['id'], $AccountList) . "</td></tr>"; echo '<tr>'; echo '<td class="l">From:</td>'; echo "<td>" . Form::date('d0', $this->date_alpha, array('size' => 12)) . "</td>"; echo '<td class="b c"> to </td>'; echo "<td>" . Form::date('d1', $this->date_omega, array('size' => 12)) . "</td>"; echo "<td><input class='cb' name='c' type='submit' value='View' /></td>"; echo '<td><input name="c" type="submit" value="Post" /></td>'; echo '</tr>'; echo '</table>'; echo '</form>'; // View Results $runbal = $this->openBalance; $cr_sum = 0; $dr_sum = 0; echo '<table style="width:100%;">';
// Date echo '<td class="l">Date:</td><td>' . Form::date('date', $this->WorkOrder['date']) . '</td>'; echo '</tr>'; // Requester & Kind echo '<tr>'; echo '<td class="l">Requester:</td>'; echo '<td>'; echo Form::text('requester', $this->WorkOrder['requester']); echo '</td>'; // Kind echo '<td class="l">Kind:</td><td>' . Form::select('kind', $this->WorkOrder['kind'], $this->KindList) . '</td>'; echo '</tr>'; // Rate & Units & Status echo '<tr>'; $r = Form::number('base_rate', $this->WorkOrder['base_rate'], array('class' => 'rate')); $u = Form::select('base_unit', $this->WorkOrder['base_unit'], Base_Unit::getList()); echo "<td class='l'>Base Rate:</td><td class='nw'>{$r}/{$u}</td>"; // Status echo '<td class="l">Status:</td><td>' . $this->WorkOrder['status'] . '</td>'; echo '</tr>'; // Note echo '<tr><td class="l">Note:</td><td colspan="3"><textarea name="note">' . html($this->WorkOrder['note']) . '</textarea></td></tr>'; // echo "<tr><td class='b r'>Hours Total:</td><td colspan='3' style='color: #f00; font-weight: 700; text-align: right;'>".number_format($this->data['WorkOrder']['bill_amount'],2)."</td></tr>"; // echo "<tr><td class='b r'>Parts Total:</td><td colspan='3' style='color: #f00; font-weight: 700; text-align: right;'>".number_format($this->data['WorkOrder']['bill_amount'],2)."</td></tr>"; // Open Total echo "<tr><td class='l'>Bill Total:</td><td colspan='2' style='font-weight: 700;'>" . number_format($this->WorkOrder['bill_amount'], 2) . "</td></tr>"; echo "<tr><td class='l'>Open Total:</td><td colspan='2' style='color: #f00; font-weight: 700;'>" . number_format($this->WorkOrder['open_amount'], 2) . "</td></tr>"; echo '</table>'; // Hidden Fields & Buttons echo '<div class="cmd">'; echo Form::hidden('id', $this->WorkOrder['id']);
@link http://imperium.edoceo.com @since File available since Release 1013 */ namespace Edoceo\Imperium; use Edoceo\Radix\HTML\Form; $q = Form::number('quantity', $this->InvoiceItem['quantity'], array('size' => 8)); $r = Form::number('rate', $this->InvoiceItem['rate'], array('size' => 8)); $u = Form::select('unit', $this->InvoiceItem['unit'], $this->UnitList); ?> <form method="post"> <div class="pure-g"> <div class="pure-u-1-5"><div class="l">Kind:</div></div> <div class="pure-u-1-5"><?php echo Form::select('kind', $this->InvoiceItem['kind'], InvoiceItem::$kind_list); ?> </div> <div class="pure-u-1-5"><div class="l">Date:</div></div> <div class="pure-u-2-5"><?php echo Form::date('date', $this->InvoiceItem['date'], array('id' => 'woi_date', 'size' => 12)); ?> </div> <div class="pure-u-1-5"><div class="l">Name:</div></div> <div class="pure-u-4-5"><td colspan="3"><?php echo Form::text('name', $this->InvoiceItem['name']); ?> </div> <div class="pure-u-1-5"><div class="l">Note:</div></div>
/** Contact Channel View A Form for creating or editing a Contact Channel */ namespace Edoceo\Imperium; use Edoceo\Radix; use Edoceo\Radix\HTML\Form; echo '<form method="post">'; echo '<div>'; // echo Form::hidden('id', $this->ContactChannel['id']); echo Form::hidden('contact_id', $this->ContactChannel['contact_id']); echo '</div>'; echo '<table>'; echo "<tr><td class='b r'>Kind:</td><td>" . Form::select('kind', $this->ContactChannel['kind'], ContactChannel::$kind_list) . '</td></tr>'; echo "<tr><td class='b r'>Name:</td><td>" . Form::text('name', $this->ContactChannel['name']) . '</td></tr>'; echo "<tr><td class='b r'>Data:</td><td>" . Form::text('data', $this->ContactChannel['data']) . '</td></tr>'; // echo "<tr><td class='b r'>Primary:</td><td>". Form::formCheckbox('primary')."</td></tr>"; echo '</table>'; echo '<div class="bf">'; // echo '<button class="exec" name="a" value="apply">Apply</button>'; echo '<button class="exec" name="a" value="save">Save</button>'; if (empty($this->ContactChannel['id'])) { echo '<button class="warn" name="a" value="cancel">Cancel</button>'; } else { echo '<button class="fail" name="a" value="delete">Delete</button>'; } echo '</div>'; echo '</form>'; // History
echo "<tr><td class='b r'>Class:</td><td><select name='flag_class'><option value='0'>None</option>"; foreach (array('Cash'=>Account::CASH,'Accounts Receiveable'=>Account::AR,'Accounts Payable'=>ACCOUNT::AP) as $k=>$v) echo "<option ".($a->flag&$v?"selected='selected' ":null)."value='$v'>$k</option>"; echo "</select><select name='flag_bank'><option value='0'>None</option>"; foreach (array('Checking'=>Account::CHECKING,'Savings'=>Account::SAVINGS,'Market'=>Account::MARKET) as $k=>$v) echo "<option ".($a->flag&$v?"selected='selected' ":null)."value='$v'>$k</option>"; echo "</select></td></tr>\n"; */ $list = array(0 => '- None -'); $AccountTaxLineList = AccountTaxFormLine::listTaxLines(); foreach ($AccountTaxLineList as $x) { $list[$x['id']] = $x['name']; } // Radix::dump($AccountTaxLineList); // $list += $AccountTaxLineList; echo "<tr><td class='b r'>Tax Line:</td><td colspan='3'>" . Form::select('account_tax_line_id', $this->Account->account_tax_line_id, $list) . "</td>"; /* // Asset Details echo "<tr><td class='b r'>Opening Balance:</td><td>" . $imperiumForm->input('Account.code',am($opts,array('class'=>'tb','size'=>8))) . "</td></tr>"; */ // Kind Bank Account Details echo "<tr><td class='b r'>Transit:</td><td colspan='2'>" . Form::text('bank_routing', $this->Account->bank_routing) . '</td></tr>'; echo "<tr><td class='b r'>Account:</td><td colspan='2'>" . Form::text('bank_account', $this->Account->bank_account) . '</td></tr>'; echo '</table>'; /* echo $imperiumForm->checkbox('Income Statement'); echo $imperiumForm->checkbox('Equity Statement'); echo $imperiumForm->checkbox('Balance Sheet'); echo $imperiumForm->checkbox('Cash Flow'); */ echo '<div class="cmd">';
$input = Form::select('bill_address_id', $this->Invoice['bill_address_id'], $list, null); echo '<tr>'; echo '<td class="b r">Bill To:</td><td>' . $input . '</td>'; $input = Form::select('ship_address_id', $this->Invoice['ship_address_id'], $list, null); echo '<td class="b r">Ship To:</td><td>' . $input . '</td>'; echo '</tr>'; echo "<tr><td class='b r'>Note:</td><td colspan='3'>" . Form::textarea('note', $this->Invoice['note'], array('style' => 'height:3em;width:90%;')) . '</td></tr>'; echo '<tr><td class="l">Bill Total:</td><td class="l">' . number_format($this->Invoice['bill_amount'], 2) . "</td></tr>"; echo '<tr><td class="l">Paid Total:</td><td class="l"'; if ($this->Invoice['paid_amount'] < $this->Invoice['bill_amount']) { echo ' style="color:#f00;"'; } echo '>' . number_format($this->Invoice['paid_amount'], 2) . '</td></tr>'; // Status echo '<tr>'; echo '<td class="l">Status:</td><td>' . Form::select('status', $this->Invoice['status'], $this->StatusList) . '</td>'; echo '</tr>'; echo '</table>'; // Buttons echo '<div class="cmd">'; echo Form::hidden('contact_id', $this->Invoice['contact_id']); echo '<input class="good" name="a" type="submit" value="Save">'; // Hawk Monitoring? if ($this->Invoice->hasFlag(Invoice::FLAG_HAWK)) { echo '<input name="a" type="submit" value="No Hawk">'; } else { if ($this->Invoice->canHawk()) { echo '<input name="a" type="submit" value="Hawk">'; } } // Workflow Buttons?
// Cost: Quantity, Rate, Unit, Tax $q = Form::number('a_quantity', $this->WorkOrderItem['a_quantity']); $r = Form::number('a_rate', $this->WorkOrderItem['a_rate']); $u = Form::select('a_unit', $this->WorkOrderItem['a_unit'], Base_Unit::getList()); $t = Form::number('a_tax_rate', tax_rate_format($this->WorkOrderItem['a_tax_rate'])); echo "<tr><td class='l'>Actual:</td><td>{$q}</td><td><strong>@</strong>{$r}</td><td><strong>per</strong> {$u}<td class='b r'>Tax Rate:</td><td>{$t} %</td></tr>"; // Notify echo '<tr><td class="l">'; echo '<span title="Input an email address here and a notification email will be sent">Notify:</span></td>'; echo '<td colspan="5">' . Form::text('notify', $this->WorkOrderItem['notify']) . '</td>'; echo '</tr>'; echo "<tr>"; echo "<td class='l'><span title='The Status of this Item, Completed Items will be Billed when creating an Invoice'>Status:</span></td>"; echo '<td colspan="3">'; // echo '<input name="status" type="text" value="' . $this->WorkOrderItem['status'] . '">'; echo Form::select('status', $this->WorkOrderItem['status'], $this->ItemStatusList); echo '</td>'; echo '</tr>'; echo "</table>"; echo '<div class="cmd">'; echo '<input name="workorder_id" type="hidden" value="' . $this->WorkOrder['id'] . '">'; // echo $this->formSubmit('c','Save'); echo '<button class="good" id="workorder-item-exec-save" name="a" type="submit" value="save">Save</button>'; if (!empty($this->WorkOrderItem['id'])) { echo '<button class="fail" name="a" type="submit" value="delete">Delete</button>'; } echo '</div>'; echo '</form>'; // History $args = array('list' => $this->WorkOrderItem->getHistory()); echo Radix::block('diff-list', $args);
} else { $item['debit_amount'] = null; $item['credit_amount'] = null; } $css = $css == ' class="re"' ? ' class="ro"' : ' class="re"'; echo "<tr{$css}>"; echo '<td>'; // Ledger Entry ID, Account ID and Account Name echo Form::hidden($i . '_id', $item['id']); echo Form::hidden($i . '_account_id', $item['account_id'], array('class' => 'account-id')); echo Form::text($i . '_account_name', $item['account_name'], array('class' => 'account-name')); echo '<small class="account-id-v" id="' . $i . '_account_id_v"></small>'; echo '</td>'; // Link to Object echo '<td>'; echo Form::select($i . '_link_to', $item['link_to'], $this->LinkToList); echo Form::text($i . '_link_id', $item['link_id'], array('class' => 'link-to')); echo '</td>'; // Display Both // Debit echo "<td class='r'>" . Form::number($i . '_dr', $item['debit_amount']) . "</td>"; // Credit echo "<td class='r'>" . Form::number($i . '_cr', $item['credit_amount']) . "</td>"; echo '</tr>'; } echo '<tr><td class="b" colspan="2"><strong>Total:</strong></td>'; echo '<td class="r" id="drt">' . number_format(abs($dr_total), 2) . '</td>'; echo '<td class="r" id="crt">' . number_format(abs($cr_total), 2) . '</td>'; echo '</tr>'; echo '</table>'; // Attached Files
<?php /** Select an Account Period @copyright 2002 Edoceo, Inc @package edoceo-imperium @link http://imperium.edoceo.com @since File available since Release 1013 */ namespace Edoceo\Imperium; use Edoceo\Radix; use Edoceo\Radix\HTML\Form; echo '<div class="bf c">'; echo Form::select('m', $_GET['m'], Radix::$view->MonthList); //null,$this->data['month'],null,false); // Month echo Form::select('y', $_GET['y'], Radix::$view->YearList); //null,$this->data['year'],null,false); // Year echo Form::select('p', $_GET['p'], Radix::$view->PeriodList); //null,$this->data['period'],null,false); // Period echo Form::submit('c', 'View'); echo '<div class="bf c">'; echo '<label for="xc"> ' . Form::checkbox('xc', 'true', 'true' == $_GET['xc'] ? array('checked' => 'checked') : null) . ' Exclude Closing Transactions</label>'; echo ' '; echo '<label for="xz"> ' . Form::checkbox('xz', 'true', 'true' == $_GET['xz'] ? array('checked' => 'checked') : null) . ' Exclude Zero Balance Accounts</label>'; echo '</div>'; echo '</div>';