This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/account/account_construct.xml

307 lines
10 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
2009-08-03 04:10:16 +00:00
<!-- Module name -->
<module>account</module>
<!-- Module supporting database table -->
<table>account</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy></dependancy>
<!-- DB cache in seconds -->
<cache>0</cache>
<!-- Default order_by field for SQL queries -->
<order_by>last_name</order_by>
<!-- Default SQL limit for SQL queries -->
<limit>25</limit>
<!-- Schema version (used to determine if the schema has change during upgrades) -->
<version>1</version>
<!-- Database indexes -->
<index>
<login>username,password</login>
<search>first_name,middle_name,last_name</search>
<company>company</company>
<email>email</email>
<affiliate>affiliate_id</affiliate>
<campaign_id>campaign_id</campaign_id>
<country>country_id</country>
<region>city,state</region>
<city>city</city>
<state>state</state>
<postal>zip</postal>
<idmain>id,site_id</idmain>
<fulltext_user>first_name,last_name,email,company</fulltext_user>
</index>
<!-- Database fields -->
<field>
<!-- Record ID -->
<id>
<index>1</index>
<type>I8</type>
<unique>1</unique>
</id>
<!-- Site ID -->
<site_id>
<index>1</index>
<type>I4</type>
</site_id>
<!-- Date record created -->
<date_orig>
<convert>date-now</convert>
<display>Date Created</display>
<type>I8</type>
</date_orig>
<!-- Date record updated -->
<date_last>
<convert>date-now</convert>
<display>Date Updated</display>
<type>I8</type>
</date_last>
<date_expire>
<type>I8</type>
<convert>date</convert>
<display>Date Expire</display>
</date_expire>
<parent_id>
<type>I4</type>
<display>Parent Account</display>
</parent_id>
<language_id>
<type>C(32)</type>
<display>Language</display>
</language_id>
<country_id>
<type>I4</type>
<display>Country</display>
</country_id>
<affiliate_id>
<type>I4</type>
</affiliate_id>
<campaign_id>
<type>I4</type>
</campaign_id>
<reseller_id>
<type>I4</type>
</reseller_id>
<currency_id>
<type>I4</type>
<display>Currency</display>
</currency_id>
<theme_id>
<type>C(32)</type>
<display>Theme</display>
</theme_id>
<username>
<type>C(128)</type>
<min_len>4</min_len>
<max_len>128</max_len>
<validate>any</validate>
<unique>1</unique>
<index>1</index>
<display>User Name</display>
</username>
<password>
<type>C(128)</type>
<min_len>6</min_len>
<max_len>128</max_len>
<validate>password</validate>
<convert>md5</convert>
<display>Password</display>
</password>
<!-- @unknown? -->
<misc>
<type>C2(128)</type>
</misc>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>I4</type>
</status>
<first_name>
<type>C(128)</type>
<min_len>1</min_len>
<max_len>128</max_len>
<validate>any</validate>
<index>1</index>
<display>First Name</display>
</first_name>
<middle_name>
<type>C(128)</type>
<display>Middle Name</display>
</middle_name>
<last_name>
<type>C(128)</type>
<min_len>1</min_len>
<max_len>128</max_len>
<validate>any</validate>
<index>1</index>
<display>Last Name</display>
</last_name>
<title>
<type>C(128)</type>
<display>Title</display>
</title>
<email>
<type>C(255)</type>
<min_len>4</min_len>
<max_len>128</max_len>
<validate>email</validate>
<unique>1</unique>
<index>1</index>
<display>Email</display>
</email>
<company>
<type>C(255)</type>
<display>Company</display>
</company>
<address1>
<type>C(128)</type>
<min_len>3</min_len>
<max_len>128</max_len>
<validate>any</validate>
<display>Address</display>
</address1>
<address2>
<type>C(128)</type>
<max_len>128</max_len>
<display>Address</display>
</address2>
<city>
<type>C(32)</type>
<min_len>2</min_len>
<max_len>32</max_len>
<validate>any</validate>
<display>City</display>
</city>
<state>
<type>C(32)</type>
<min_len>2</min_len>
<max_len>32</max_len>
<validate>any</validate>
<display>State</display>
</state>
<zip>
<type>C(16)</type>
<min_len>4</min_len>
<max_len>16</max_len>
<validate>any</validate>
<display>Postal Code</display>
</zip>
<email_type>
<type>L</type>
<display>HTML Email</display>
</email_type>
<invoice_delivery>
<type>I4</type>
<display>Invoice Delivery</display>
</invoice_delivery>
<invoice_show_itemized>
<type>L</type>
<default>1</default>
<display>Show Itemised Invoice</display>
</invoice_show_itemized>
<invoice_grace>
<type>I4</type>
<display>Invoice Grace Period</display>
</invoice_grace>
<invoice_advance_gen>
<type>I4</type>
<display>Invoice Advance Generation</display>
</invoice_advance_gen>
<tax_id>
<type>C(64)</type>
<display>Tax ID</display>
</tax_id>
<max_child>
<type>I4</type>
<display>Max Children</display>
</max_child>
<!-- Credit Terms applicable for this account -->
<net_term_id>
<type>I4</type>
<display>Net Terms</display>
</net_term_id>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<user_add>date_orig,date_last,language_id,country_id,affiliate_id,reseller_id,campaign_id,currency_id,theme_id,username,password,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,email_type,tax_id,invoice_delivery,invoice_show_itemized,invoice_grace</user_add>
<user_update>id,date_orig,date_last,language_id,country_id,affiliate_id,reseller_id,currency_id,theme_id,username,password,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,email_type,tax_id</user_update>
<user_view>id,parent_id,date_last,language_id,country_id,affiliate_id,reseller_id,currency_id,theme_id,username,password,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,email_type,tax_id,max_child</user_view>
<delete>id</delete>
<add>search,date_expire,language_id,country_id,currency_id,theme_id,username,password,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip</add>
2010-11-29 22:41:08 +00:00
<update>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,invoice_delivery,invoice_show_itemized,invoice_grace,invoice_advance_gen,tax_id,max_child</update>
<view>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,invoice_delivery,invoice_show_itemized,invoice_grace,invoice_advance_gen,tax_id,max_child</view>
2009-08-03 04:10:16 +00:00
<search>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,invoice_delivery,invoice_show_itemized,invoice_grace,invoice_advance_gen,tax_id,max_child</search>
2010-11-29 22:41:08 +00:00
<search_export>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,tax_id,max_child</search_export>
2009-08-03 04:10:16 +00:00
<export_excel>language_id,country_id,affiliate_id,campaign_id,currency_id,username,password,misc,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,tax_id</export_excel>
<export_xml>language_id,country_id,affiliate_id,campaign_id,currency_id,username,password,misc,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,tax_id</export_xml>
<export_csv>language_id,country_id,affiliate_id,campaign_id,currency_id,username,password,misc,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,tax_id</export_csv>
<export_tab>language_id,country_id,affiliate_id,campaign_id,currency_id,username,password,misc,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,tax_id</export_tab>
</method>
<!-- Method triggers -->
<trigger>
<add>
<success>account:add_account_groups</success>
</add>
<update>
<success>account:update_account_groups</success>
</update>
</trigger>
<!-- Template page display titles -->
<title>
<add>Register User Account</add>
<mail_one>Send Email to User</mail_one>
<merge>Merge User Accounts</merge>
<search_form>Search</search_form>
<user_add>Register User Account</user_add>
<user_view>Update User Account</user_view>
<user_password>Reset Password</user_password>
<user_password_reset>Reset Password</user_password_reset>
<user_verify>Enter Verification Code</user_verify>
<user_verify_resend>Resend Verification Email</user_verify_resend>
<view>Account</view>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<icon>
<field>status</field>
<type>bool_icon</type>
<width>20px</width>
</icon>
<last_name>
<field>last_name</field>
</last_name>
<first_name>
<field>first_name</field>
</first_name>
<username>
<field>username</field>
<truncate>25</truncate>
</username>
<email>
<field>email</field>
<truncate>25</truncate>
</email>
<last>
<type>literal</type>
<width>120px</width>
<data><![CDATA[<div style="text-align: center;">
<a href="?_page=account_admin:mail_one&amp;mail_account_id=%%id%%"><img title="Send E-mail" src="themes/default/images/icons/mail_16.gif" alt="Email" width="16" height="16" style="border: 0px;"/></a>
<a title="Services" href="?_page=core:search&amp;module=service&amp;service_account_id=%%id%%&amp;_next_page_one=view"><img src="themes/default/images/icons/tools_16.gif" alt="Service" width="16" height="16" style="border: 0px;"/></a>
<a title="Invoices" href="?_page=core:search&amp;module=invoice&amp;invoice_account_id=%%id%%&amp;_next_page_one=view"><img src="themes/default/images/icons/calc_16.gif" alt="Invoice" width="16" height="16" style="border: 0px;"/></a>
</div>]]></data>
</last>
</search_show>
</tpl>
</construct>