diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-14 22:57:37 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-14 22:57:37 +0000 |
commit | 812247d1bb08e01f7a413a52958e7918a752ff81 (patch) | |
tree | fd2b8ae69b81ada03ab128746ba3cc68b7b477da /UI | |
parent | 9a886f786ef9d91e07ea3b5e160b2404005950e7 (diff) |
Template aging reports. Only partially tested
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1754 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI')
-rw-r--r-- | UI/rp-aging.html | 93 | ||||
-rw-r--r-- | UI/rp-email.html | 74 |
2 files changed, 167 insertions, 0 deletions
diff --git a/UI/rp-aging.html b/UI/rp-aging.html new file mode 100644 index 00000000..dec54653 --- /dev/null +++ b/UI/rp-aging.html @@ -0,0 +1,93 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title><?lsmb form.titlebar ?></title> + <meta http-equiv="Pragma" content="no-cache" /> + <meta http-equiv="Expires" content="-1" /> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> + <link rel="stylesheet" href="css/<?lsmb form.stylesheet ?>" type="text/css" title="LedgerSMB stylesheet" /> + + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <meta name="robots" content="noindex,nofollow" /> + +</head> +<?lsmb PROCESS elements.html ?> + +<body> + +<table width="100%"> + <tr> + <th class="listtop" colspan="<?lsmb columns.size ?>"><?lsmb form.title ?></th> + </tr> + <tr> + <?lsmb IF options.defined ?> + <td><?lsmb FOREACH option IN options; option ?><br /><?lsmb END ?></td> + <?lsmb ELSE ?> + <td colspan="<?lsmb columns.size ?>"></td></tr> + <?lsmb END ?> + </tr> + <?lsmb FOREACH currency IN rows ?> + <tr><td colspan="<?lsmb columns.size ?>"><?lsmb currency.curr ?></td></tr> + <tr class="listheading"> +<?lsmb FOREACH column IN columns ?> +<th class="listtop" <?lsmb + IF column == 'statement' ?>width="1%"<?lsmb + ELSIF column == 'ct' ?>width="60%"<?lsmb + ELSIF column.substr(0, 1) == 'c' ?>width="10%" nowrap="nowrap"<?lsmb + ELSIF column == 'total' ?>width="10%" nowrap="nowrap"<?lsmb END ?>> + <?lsmb IF heading.$column.href ?><a class="listtop" href="<?lsmb heading.$column.href ?>"><?lsmb heading.$column.text ?></a> + <?lsmb ELSE; heading.$column; END ?> + </th> +<?lsmb END ?> + </tr> +<?lsmb FOREACH row IN currency.rows ?> +<?lsmb IF row.class == 'heading'; s = 'th'; c = 'listheading'; + ELSIF row.class == 'subtotal'; s = 'th'; c = 'listsubtotal'; + ELSE; s = 'td'; c = "listrow${row.i}"; END ?> +<tr class="<?lsmb c ?>"> + <?lsmb FOREACH column IN columns ?> + <<?lsmb s ?> class="<?lsmb c ?>" <?lsmb IF (!row.class.defined || row.class != 'heading') && row_alignment.$column ?>align="<?lsmb row_alignment.$column ?>"<?lsmb END ?>> + <?lsmb IF row.$column.href ?> + <a href="<?lsmb row.$column.href?>"><?lsmb row.$column.text ?></a> + <?lsmb ELSIF row.$column.delimiter; + FOREACH l IN row.$column.text.split(row.$column.delimiter); l ?><br /><?lsmb END; + ELSIF row.$column.options; PROCESS option element_data=row.$column; + ELSIF column == 'statement'; PROCESS input element_data=row.$column; + ELSE; row.$column; END ?> + </<?lsmb s ?>> + <?lsmb END ?> +</tr> +<?lsmb END ?> +<?lsmb IF currency.totals ?> +<tr class="listtotal"> + <?lsmb FOREACH column IN columns ?> + <th class="listtotal" align="right"><?lsmb currency.totals.$column ?></th> + <?lsmb END ?> +</tr> +<?lsmb END ?> +<?lsmb END ?> + <tr><td colspan="<?lsmb columns.size ?>"><hr size="3" /></td></tr> +</table> + +<br /> + +<form method="post" action="<?lsmb form.script ?>"> +<?lsmb IF form.arap == 'ar'; + PROCESS select element_data=form.print.template; + PROCESS select element_data=form.print.format; + PROCESS select element_data=form.print.medium; + IF form.print.copies.defined; + PROCESS input element_data=form.print.copies; + END ?><br /><?lsmb +END ?> +<?lsmb FOREACH hidden IN hiddens.keys; + PROCESS input element_data={ + type => 'hidden', + name => hidden, + value => hiddens.item(hidden) + }; END ?> +<?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?> +</form> +</body> +</html> diff --git a/UI/rp-email.html b/UI/rp-email.html new file mode 100644 index 00000000..2dc5e61d --- /dev/null +++ b/UI/rp-email.html @@ -0,0 +1,74 @@ +<?lsmb INCLUDE 'ui-header.html' ?> +<?lsmb PROCESS elements.html ?> +<body> +<form method="post" action="<?lsmb form.script ?>"> + +<table width="100%"> + <tr class="listtop"> + <th><?lsmb text('E-mail Statement to [_1]', form.${form.ct}) ?></th> + </tr> + <tr height="5"><td> </td></tr> + <tr> + <td> + <table width="100%"> + <tr> + <th align="right" nowrap="nowrap"><?lsmb text('E-mail') ?></th> + <td><?lsmb PROCESS input element_data={name => 'email', size=> '30', value => form.email} ?></td> + <th align="right" nowrap="nowrap"><?lsmb text('Cc') ?></th> + <td><?lsmb PROCESS input element_data={name => 'cc', size=> '30', value => form.cc} ?></td> + </tr> + <tr> + <th align="right" nowrap="nowrap"><?lsmb text('Subject') ?></th> + <td><?lsmb PROCESS input element_data={name => 'subject', size=> '30', value => form.subject} ?></td> +<?lsmb IF user.role == 'admin' OR user.role == 'manager' ?> + <th align="right" nowrap="nowrap"><?lsmb text('Bcc') ?></th> + <td><?lsmb PROCESS input element_data={name => 'bcc', size=> '30', value => form.bcc} ?></td><?lsmb +ELSE ?><th> </th><td> </td><?lsmb +END ?> + </tr> + </table> + </td> + </tr> + <tr> + <td> + <table width="100%"> + <tr> + <th align="left" nowrap="nowrap"><?lsmb text('Message') ?></th> + </tr> + <tr> + <td><?lsmb PROCESS textarea element_data={ + name =>'message', + value => form.message, + rows => '15', + cols => '60', + wrap => 'soft'} ?></td> + </tr> + </table> + </td> + </tr> + <tr> + <td> + +<table> + <tr> + <td><?lsmb PROCESS select element_data=form.print.template ?></td> + <td><?lsmb PROCESS select element_data=form.print.format ?></td> + <td><?lsmb PROCESS select element_data=form.print.medium ?></td> + </tr> +</table> + </td> + </tr> + <tr> + <td><hr size="3" noshade="noshade" /></td> + </tr> +</table> +<?lsmb FOREACH hidden IN hiddens.keys; + PROCESS input element_data={ + type => 'hidden', + name => hidden, + value => hiddens.item(hidden) + }; END ?> +<?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?> +</form> +</body> +</html> |