Open Source Billing

This commit is contained in:
Deon George
2013-10-10 13:44:53 +11:00
commit b02d70adf0
2344 changed files with 392978 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
order allow,deny
deny from all

View File

@@ -0,0 +1,84 @@
<!-- @todo NEEDS TO BE TRANSLATED -->
<?php echo Form::open(); ?>
<table class="box-center">
<tr>
<td class="head">Last Updated</td>
<td><?php echo $record->display('date_last'); ?></td>
</tr>
<tr>
<td class="head">User Name</td>
<td><b><?php echo $record->username; ?></b></td>
</tr>
<!-- //@todo This needs to be done somewhere else
<tr>
<td class="head">Password</td>
<td><input type="password" name="password" value=""/></td>
</tr>
<tr>
<td class="head">Confirm Password</td>
<td><input type="password" name="confirm_password" value=""/></td>
</tr>
-->
<tr>
<td class="head">Email</td>
<td><input type="text" name="email" value="<?php echo $record->email; ?>"/></td>
</tr>
<tr>
<td class="head">Company</td>
<td><input type="text" name="company" value="<?php echo $record->company; ?>"/></td>
</tr>
<tr>
<td class="head">First Name</td>
<td><input type="text" name="first_name" value="<?php echo $record->first_name; ?>"/></td>
</tr>
<tr>
<td class="head">Last Name</td>
<td><input type="text" name="last_name" value="<?php echo $record->last_name; ?>"/></td>
</tr>
<tr>
<td class="head">Title</td>
<td><?php echo $record->display('title'); ?></td>
</tr>
<tr>
<td class="head">Address</td>
<td><input type="text" name="address1" value="<?php echo $record->address1; ?>"/></td>
</tr>
<tr>
<td class="head">&nbsp;</td>
<td><input type="text" name="address2" value="<?php echo $record->address2; ?>"/></td>
</tr>
<tr>
<td class="head">City</td>
<td><input type="text" name="city" value="<?php echo $record->city; ?>"/></td>
</tr>
<tr>
<td class="head">State</td>
<td><input type="text" name="state" value="<?php echo $record->state; ?>"/></td>
</tr>
<tr>
<td class="head">Postal Code</td>
<td><input type="text" name="zip" value="<?php echo $record->zip; ?>"/></td>
</tr>
<tr>
<td class="head">Country</td>
<td><?php echo $record->country->display('name'); ?></td>
</tr>
<tr>
<td class="head">Language</td>
<td><?php echo $record->language->display('name'); ?></td>
</tr>
<tr>
<td class="head">Currency</td>
<td><?php echo $record->currency->display('name'); ?></td>
</tr>
<tr>
<!-- @todo NEEDS TO BE CONFIGURABLE -->
<td class="head">HTML Email</td>
<td>Yes</td>
</tr>
<!-- @todo OTHER STATIC VARS -->
<tr>
<td colspan="2" style="text-align: center;"><?php echo Form::submit('update','Update',array('class'=>'form_button')); ?></td>
</tr>
</table>
<?php echo Form::close(); ?>

View File

@@ -0,0 +1,17 @@
<!-- @todo NEEDS TO BE TRANSLATED -->
<br/>
<?php echo Form::open(); ?>
<table class="box-center">
<tr>
<td class="head">Password</td>
<td><input type="password" name="password" value=""/></td>
</tr>
<tr>
<td class="head">Confirm Password</td>
<td><input type="password" name="password_confirm" value=""/></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;"><?php echo Form::submit('update','Update',array('class'=>'form_button')); ?></td>
</tr>
</table>
<?php echo Form::close(); ?>

View File

@@ -0,0 +1 @@
<?php echo $message; ?>

View File

@@ -0,0 +1,4 @@
Bother, something went wrong - 501.
<?php echo $message; ?>
<hr/>
<?php echo Debug::vars(array('cookie'=>$_COOKIE,'request'=>$_REQUEST,'session'=>$_SESSION,'server'=>$_SERVER)); ?>

View File

@@ -0,0 +1,16 @@
<br/>
<?php echo Form::open(); ?>
<table class="login">
<tr><td><b>User Name:</b></td></tr>
<tr><td><?php echo Form::input('username',NULL,array('id'=>'login-uid','size'=>40));?></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td><b>Password:</b></td></tr>
<tr><td><?php echo Form::password('password',NULL,array('id'=>'login-pwd','size'=>40));?></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<!-- @todo Password reset ability should be a config option (or auto detected) -->
<tr><td colspan="2"><?php echo HTML::anchor('login/reset',_('Forgot your password?')); ?></td></tr>
<tr><td colspan="2" style="text-align: center;"><?php echo Form::submit('submit',_('Authenticate'),array('class'=>'form_button'));?></td></tr>
</table>
<?php echo Form::close(); ?>
<!-- @todo The following focus() is not ajax/jscript friendly -->
<script type="text/javascript">document.getElementById('login-uid').focus();</script>

View File

@@ -0,0 +1,14 @@
<div style="text-align: center;">
<p>If you have forgotten your password, we can issue you a temporary access code via email that will allow you to change your password.</p>
<p>To start this process, please enter your email address.</p>
</div>
<?php echo Form::open(); ?>
<table class="login">
<tr><td><b>Username</b></td></tr>
<tr><td><?php echo Form::input('username',NULL,array('id'=>'login-uid','size'=>40));?></td></tr>
<tr><td colspan="2" style="text-align: center;"><?php echo Form::submit('submit',_('Reset'),array('class'=>'form_button'));?></td></tr>
</table>
<?php echo Form::close(); ?>
<!-- @todo The following focus() is not ajax/jscript friendly -->
<script type="text/javascript">document.getElementById('login-uid').focus();</script>

View File

@@ -0,0 +1,13 @@
<div style="text-align: center;">
<p>You should have received an email with a pass code. Please enter that pass code here.</p>
</div>
<?php echo Form::open(); ?>
<table class="login">
<tr><td><b>Pass code</b></td></tr>
<tr><td><?php echo Form::input('token',NULL,array('id'=>'login-pwd','size'=>40));?></td></tr>
<tr><td colspan="2" style="text-align: center;"><?php echo Form::submit('submit',_('Reset'),array('class'=>'form_button'));?></td></tr>
</table>
<?php echo Form::close(); ?>
<!-- @todo The following focus() is not ajax/jscript friendly -->
<script type="text/javascript">document.getElementById('login-pwd').focus();</script>

View File

@@ -0,0 +1,21 @@
<?php echo Form::open(); ?>
<table>
<tr>
<td class="head">Module</td>
<td><?php echo $module->name; ?></td>
</tr>
<tr>
<td class="head">Name</td>
<td><?php echo $method->name; ?></td>
</tr>
<tr>
<td class="head">Notes</td>
<td><?php echo Form::input('notes',$method->name); ?></td>
</tr>
<tr>
<td class="head">Menu Display</td>
<td><?php echo StaticList_YesNo::form('menu_display',0); ?></td>
</tr>
</table>
<?php echo Form::submit('submit',_('Add'),array('class'=>'form_button')); ?>
<?php echo Form::close(); ?>

View File

@@ -0,0 +1,8 @@
<tr>
<td>
<a href="<?php echo URL::link('admin','group/edit/'.$group->id,TRUE); ?>"><?php echo $group->display('name'); ?></a>
</td>
<td><?php echo $group->display('notes'); ?></td>
<td><?php echo $group->display('status'); ?></td>
<td><?php echo Form::checkbox('groups[]',$group->id,$defined); ?></td>
</tr>

View File

@@ -0,0 +1 @@
</table>

View File

@@ -0,0 +1,8 @@
<!-- //@todo Translation required -->
<table class="box-left">
<tr class="head">
<td>Method</td>
<td>Notes</td>
<td>Group Active</td>
<td>Method Enabled</td>
</tr>

View File

@@ -0,0 +1,135 @@
<br/>
<?php echo Form::open(); ?>
<table class="login">
<tr>
<td>User Name</td>
<td><?php echo Form::input('username',$account->username,
array('id'=>'login-uid','size'=>40,'class'=>(array_key_exists('username',$errors) ? 'error' : 'ok'))); ?></td>
</tr>
<tr>
<td>Password</td>
<td><?php echo Form::password('password',NULL,array('id'=>'login-pwd','size'=>16));?></td>
</tr>
<tr>
<td>Confirm Password</td>
<td><?php echo Form::password('password_confirm',NULL,array('id'=>'login-pwd-confirm','size'=>16));?></td>
</tr>
<tr>
<td>Email Address</td>
<td><?php echo Form::input('email',$account->email,array('size'=>40));?></td>
</tr>
<tr>
<td>Company</td>
<td><?php echo Form::input('company',$account->company,array('size'=>40));?></td>
</tr>
<tr>
<td>First Name</td>
<td><?php echo Form::input('first_name',$account->first_name,array('size'=>40));?></td>
</tr>
<tr>
<td>Last Name</td>
<td><?php echo Form::input('last_name',$account->last_name,array('size'=>40));?></td>
</tr>
<tr>
<td>Title</td>
<td><?php echo StaticList_Title::form('title',$account->title);?></td>
</tr>
<tr>
<td>Address Line 1</td>
<td><?php echo Form::input('address1',$account->address1,array('size'=>40));?></td>
</tr>
<tr>
<td>Address Line 2</td>
<td><?php echo Form::input('address2',$account->address2,array('size'=>40));?></td>
</tr>
<tr>
<td>City</td>
<td><?php echo Form::input('city',$account->city,array('size'=>40));?></td>
</tr>
<tr>
<td>State</td>
<td><?php echo Form::input('state',$account->state,array('size'=>20));?></td>
</tr>
<tr>
<td>Post Code</td>
<td><?php echo Form::input('zip',$account->zip,array('size'=>20));?></td>
</tr>
<tr>
<td>Country</td>
<!-- @todo - our default currency should be defined in a config -->
<td><?php echo StaticList_Module::form('country_id','country',61,'id','name',array());?></td>
<!--
{if $VAR.account_country_id != ''}
{$list->menu('no','account_country_id','country','name',$VAR.account_country_id,'form_field" onchange="taxIdsDisplay(this.value)',true)}
{else}
{$list->menu('no','account_country_id','country','name',$smarty.const.DEFAULT_COUNTRY,'form_field" onchange="taxIdsDisplay(this.value)',true)}
{/if}
{$method->exe_noauth('tax','get_tax_ids')}
{if $tax_ids}
<script type="text/javascript" language="javascript">
{if $VAR.account_country_id != ""}
var countryId='{$VAR.account_country_id}';
{else}
var countryId='{$smarty.const.DEFAULT_COUNTRY}';
{/if}
{literal}
function taxIdsDisplay(id) {
try{ document.getElementById('tax_country_id_'+id).style.display='block'; } catch(e) {}
try{ document.getElementById('tax_country_id_'+countryId).style.display='none'; } catch(e) {}
countryId=id;
}
{/literal}
</script>
</td>
</tr>
{foreach from=$tax_ids item=tax}
<tr valign="top" id="tax_country_id_{$tax.country_id}" {if $VAR.account_country_id !=''}{if $VAR.account_country_id!=$tax.country_id}{osb f=style_hide}{/if}{else}{if $smarty.const.DEFAULT_COUNTRY!=$tax.country_id}{osb f=style_hide}{/if}{/if}>
<td width="29%">{$tax.tax_id_name}</td>
<td width="71%">
<input type="text" name="account_tax_id[{$tax.country_id}]" value="{$VAR.account_tax_id[$tax.country_id]}" {if $account_tax_id == true}class="form_field_error"{/if}/>
<!-* {if $tax.tax_id_exempt}
(or) exempt
<input type="checkbox" name="account_tax_id_exempt[{$tax.country_id}]" value="1"/>
{/if} -*>
{/foreach}
{/if}
</td>
-->
</tr>
<!--
{$method->exe('account','static_var')}
{foreach from=$static_var item=record}
<tr valign="top">
<td>{$record.name}</td>
<td>{$record.html}</td>
</tr>
{/foreach}
-->
<!--
{if $smarty.const.NEWSLETTER_REGISTRATION == "1"}
<tr valign="top">
<td>{t module=account}subscribe_newsletters{/t}</td>
<td>{$method->exe('newsletter','check_list_registration')}</td>
</tr>
{/if}
-->
<tr>
<td>Use HTML for Email</td>
<!-- // @todo default should be specified in a global confi -->
<td><?php echo StaticList_YesNo::form('email_type',true); ?></td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td colspan="2" style="text-align: center;"><?php echo Form::submit('submit',_('Register'),array('class'=>'form_button'));?></td></tr>
</table>
<?php echo Form::close(); ?>
<!-- @todo The following focus() is not ajax/jscript friendly -->
<!-- @todo Provide field validation highlighting -->
<!-- @todo Add javascript to stop submission when password fields dont match -->
<script type="text/javascript">document.getElementById('login-uid').focus();</script>

View File

@@ -0,0 +1,46 @@
<!-- @todo NEEDS TO BE TRANSLATED -->
<table class="box-full">
<tr>
<td class="head" style="width: 25%;">Site Name</td>
<td style="width: 75%;"><?php echo Form::input('site_details[name]',$o->site_details('name')); ?></td>
</tr>
<tr>
<td class="head">Site Address 1</td>
<td><?php echo Form::input('site_details[address1]',$o->site_details('address1')); ?></td>
</tr>
<tr>
<td class="head">Site Address 2</td>
<td><?php echo Form::input('site_details[address2]',$o->site_details('address2')); ?></td>
</tr>
<tr>
<td class="head">City</td>
<td><?php echo Form::input('site_details[city]',$o->site_details('city')); ?></td>
</tr>
<tr>
<td class="head">State</td>
<td><?php echo Form::input('site_details[state]',$o->site_details('state')); ?></td>
</tr>
<tr>
<td class="head">Postal Code</td>
<td><?php echo Form::input('site_details[pcode]',$o->site_details('pcode')); ?></td>
</tr>
<tr>
<td class="head">Country</td>
<td><?php echo StaticList_Module::form('country_id','country',61,'id','name',array(),NULL,array('class'=>'form_button'));?></td>
</tr>
<tr>
<td class="spacer" colspan="2">&nbsp;</td>
</tr>
<tr>
<td class="head">Phone</td>
<td><?php echo Form::input('site_details[phone]',$o->site_details('phone')); ?></td>
</tr>
<tr>
<td class="head">Fax</td>
<td><?php echo Form::input('site_details[fax]',$o->site_details('fax')); ?></td>
</tr>
<tr>
<td class="head">Email</td>
<td><?php echo Form::input('site_details[email]',$o->site_details('email')); ?></td>
</tr>
</table>

View File

@@ -0,0 +1,3 @@
<tr>
<td colspan="2"><div id="<?php echo $mo->name; ?>"></div></td>
</tr>

View File

@@ -0,0 +1 @@
</table>

View File

@@ -0,0 +1 @@
<table class="box-full">

View File

@@ -0,0 +1,5 @@
<tr>
<td class="head" style="font-size: 75%;"><?php echo $key; ?></td>
<td><?php echo Form::input('module_config['.$module.']['.$key.']',$val); ?></td>
<td><?php echo $info; ?></td>
</tr>

View File

@@ -0,0 +1 @@
</table>

View File

@@ -0,0 +1 @@
<table class="box-full">

View File

@@ -0,0 +1,7 @@
<tr class="list-data">
<?php foreach ($td as $col => $details) { ?>
<td class="<?php echo $details['class']; ?>">
<?php echo $details['url'] ? sprintf(HTML::anchor($details['url'].$details['value'],$details['value'])) : $details['value']; ?>
</td>
<?php } ?>
</tr>

View File

@@ -0,0 +1 @@
</table>

View File

@@ -0,0 +1,2 @@
<table class="list-box-left" border="0" id="list-table">
<tr class="list-head"><th><?php echo implode('</th><th>',$th); ?></th></tr>

View File

@@ -0,0 +1 @@
<tr><td>Other</td><td colspan="<?php echo count($td)-1; ?>"><?php printf('(%s) %s',$count,$other); ?></td></tr>

View File

@@ -0,0 +1,8 @@
<tr class="list-data">
<td><?php echo Form::checkbox('id[]',$td['id']['value']); ?></td>
<?php foreach ($td as $col => $details) { ?>
<td class="<?php echo $details['class']; ?>">
<?php echo $details['url'] ? sprintf(HTML::anchor($details['url'].$details['value'],$details['value'])) : $details['value']; ?>
</td>
<?php } ?>
</tr>

View File

@@ -0,0 +1,8 @@
</table>
<div style="text-align: center;" id="select-menu">
<br/>
<?php echo $button; ?>
<button type="submit" name="Submit" class="form_button" id="all_on">Select All</button>
<button type="submit" name="Submit" class="form_button" id="all_off">Deselect All</button>
<button type="submit" name="Submit" class="form_button" id="toggle">Toggle Select</button>
</div>

View File

@@ -0,0 +1,2 @@
<table class="list-box-left" border="0" id="select-table">
<tr class="list-head"><th>&nbsp;</th><th><?php echo implode('</th><th>',$th); ?></th></tr>

View File

@@ -0,0 +1 @@
<tr><td>Other</td><td colspan="<?php echo count($td)-1; ?>"><?php printf('(%s) %s',$count,$other); ?></td></tr>

View File

View File

@@ -0,0 +1,115 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- YAML Template Layout for lnApp -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="auto" lang="auto">
<head>
<title><?php echo $meta->title; ?></title>
<link rel="shortcut icon" href="<?php echo $meta->shortcut_icon ? $meta->shortcut_icon : '/favicon.ico' ?>" type="image/vnd.microsoft.icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="<?php echo $meta->language; ?>" />
<meta name="keywords" content="<?php echo $meta->keywords; ?>" />
<meta name="description" content="<?php echo $meta->description; ?>" />
<meta name="copyright" content="<?php echo Config::copywrite(); ?>" />
<!-- JavaScript Detection -->
<script type="text/javascript">document.documentElement.className += " js";</script>
<?php echo HTML::style('media/theme/yaml/css/page.css'); ?>
<?php echo Style::factory(); ?>
<?php echo Script::factory(); ?>
</head>
<body>
<!-- begin: skip link navigation -->
<ul id="skiplinks">
<li><a class="skip" href="#nav">Skip to navigation (Press Enter).</a></li>
<li><a class="skip" href="#left">Skip to main content (Press Enter).</a></li>
</ul>
<!-- end: skip link navigation -->
<div id="page_margins">
<div id="page">
<div id="topnav">
<div class="langMenu">
<?php echo Country::icon(Config::country()); ?>
<span class="text"><?php echo Config::country()->display('name'); ?></span>
<!-- //@todo Enable contact form -->
<div style="display:none">
<span class="text2"> &#124; </span>
<?php echo HTML::anchor('contact','Contact Us'); ?>
</div>
<span class="text2"> &#124; </span>
<?php echo Config::login_uri(); ?>
</div>
<span><?php echo Company::instance()->name(); ?></span>
</div>
<div id="header">
<h1><span>&nbsp;</span>&nbsp;</h1>
</div>
<!-- begin: main navigation #nav -->
<div id="nav">
<div id="nav_main">
<ul>
<li id="current"><?php echo HTML::anchor('','Home'); ?></li>
<li><?php echo HTML::anchor('product/categorys','Products'); ?></li>
<li><?php echo HTML::anchor('http://helpdesk.graytech.net.au/otrs/faq.pl','FAQ'); ?></li>
</ul>
</div>
<div id="nav_main2">
<?php echo BreadCrumb::factory(); ?>
</div>
</div>
<!-- end: main navigation -->
<!-- begin: main content area #main -->
<table id="main">
<tr>
<!-- Left Pane -->
<td id="left" <?php echo $left ? '' : 'style="display: none;"'?>>
<!-- begin: #left - first float column -->
<div id="left_content" class="clearfix">
<?php echo $left; ?>
</div>
<!-- end: #left -->
</td>
<!-- Main Body Pane -->
<td id="center">
<!-- begin: #center static column -->
<div id="center_content" class="clearfix">
<!-- begin: info box -->
<?php if ((string)$sysmsg) { ?>
<div id="info_box" class="info" style="display:block;">
<?php echo $sysmsg; ?>
</div>
<?php } ?>
<!-- end: info box -->
<?php echo $content; ?>
<!-- Begin: IE Column Clearing -->
<div id="ie_clearing">&nbsp;</div>
<!-- End: IE Column Clearing -->
</div>
<!-- end: #center -->
</td>
<!-- Right Pane -->
<td id="right" <?php echo $right ? '' : 'style="display: none;"'?>>
<!-- begin: #right second float column -->
<div id="right_content" class="clearfix">
<?php echo $right; ?>
</div>
<!-- end: #right -->
</td>
</tr>
</table>
<!-- end: #main -->
<!-- begin: #footer -->
<div id="shadow"></div>
<div id="footer"><?php echo $footer; ?></div>
<!-- end: #footer -->
<div id="debug">
<?php if (Kohana::$environment == Kohana::DEVELOPMENT) { ?>
<div id="kohana-profiler" style="display: none;"><?php echo View::factory('profiler/stats'); ?></div>
<script type="text/javascript">$("#footer").click(function() {$('#kohana-profiler').toggle();});</script>
<?php }?>
<?php if (Kohana::$environment >= Kohana::STAGING) { ?>
<div id="kohana-session" style="display: none; text-align: left;"><?php echo Debug::vars(Session::instance()); ?></div>
<script type="text/javascript">$("#footer").click(function() {$('#kohana-session').toggle();});</script>
<?php }?>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1 @@
Welcome, please select from the menu on the left.

View File

@@ -0,0 +1 @@
Welcome, please select from the menu on the left.