Initial Commit of AgileBill Open Source

This commit is contained in:
unknown
2008-11-26 14:50:40 -08:00
parent ae5a0fc25e
commit 02306ccc47
2954 changed files with 410976 additions and 0 deletions

View File

@@ -0,0 +1,121 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="module_add" name="module_form" method="post" action="">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate module=module}
title_add
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=module}
field_name
{/translate}
</td>
<td width="65%">
<input id="module_name" type="text" value="{$VAR.module_name}" name="module_name" {if $module_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=module}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="module_notes" cols="40" rows="5" {if $module_notes == true}class="form_field_error"{/if}>{$VAR.module_notes}</textarea>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate}
field_date_orig
{/translate}
</td>
<td width="65%">
{if $VAR.module_date_orig == ''}
{ $list->calender_add("module_date_orig", 'now', "form_field") }
{else}
{ $list->calender_add("module_date_orig", $VAR.module_date_orig, "form_field") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate}
field_date_last
{/translate}
</td>
<td width="65%">
{if $VAR.module_date_last == ''}
{ $list->calender_add("module_date_last", 'now', "form_field") }
{else}
{ $list->calender_add("module_date_last", $VAR.module_date_last, "form_field") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=module}
field_parent_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "module_parent_id", "module", "name", $VAR.module, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=module}
field_menu_display
{/translate}
</td>
<td width="65%">
{ $list->bool("module_menu_display", $VAR.module_menu_display, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=module}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("module_status", $VAR.module_status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%"></td>
<td width="65%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="module:view">
<input type="hidden" name="_page_current" value="module:add">
<input type="hidden" name="do[]" value="module:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,174 @@
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">Development Options</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" class="body">
<tr>
<td width="27%">
<form name="form1" method="post" action="">
{ $list->menu_multi('all', "module", "module", "name", "", "15", "form_menu") }
<br>
<br>
<input type="submit" name="Submit2" value="Generate Install Files" class="form_button">
<input type="hidden" name="_page" value="module:dev_add">
<input type="hidden" name="do[]" value="module:dev_install_gen">
</form>
</td>
<td width="27%" valign="top"><a href="?_page=module:translate">Translate
Modules</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<form name="form" method="post" action="">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">Create New Module</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<div align="center">
<table width="400" border="0" class="body">
<tr>
<td width="46%">
<input type="checkbox" name="m[]" value="add" checked>
Add </td>
<td width="54%">
<input type="checkbox" name="m[]" value="search_export">
Export (also select all below)</td>
</tr>
<tr>
<td width="46%">
<input type="checkbox" name="m[]" value="update" checked>
Update</td>
<td width="54%">
<input type="checkbox" name="m[]" value="export_excel">
Export Excel </td>
</tr>
<tr>
<td width="46%">
<input type="checkbox" name="m[]" value="delete" checked>
Delete </td>
<td width="54%">
<input type="checkbox" name="m[]" value="export_xml">
Export XML</td>
</tr>
<tr>
<td width="46%">
<input type="checkbox" name="m[]" value="view" checked>
View </td>
<td width="54%">
<input type="checkbox" name="m[]" value="export_tab">
Export TAB </td>
</tr>
<tr>
<td width="46%">
<input type="checkbox" name="m[]" value="search" checked>
Search</td>
<td width="54%">
<input type="checkbox" name="m[]" value="export_csv">
Export CSV</td>
</tr>
</table>
<p>
<input type="text" name="f[]" value="id">
<input type="text" name="f[]" value="site_id">
<input type="text" name="f[]" value="date_orig">
<br>
<input type="text" name="f[]" value="date_last">
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<input type="text" name="f[]" >
<br>
<br>
</p>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Submit" class="form_button">
</p>
<p><br>
<br>
<br>
<input type="hidden" name="_page" value="module:dev_add1">
</p>
</form>
<p>&nbsp; </p>

View File

@@ -0,0 +1,455 @@
<form name="form" method="post" action="">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">Module Configuration</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr>
<td width="28%">Module Name : <br>
</td>
<td width="72%">
<input type="text" size="32" name="module">
</td>
</tr>
<tr>
<td width="28%">Table Name : </td>
<td width="72%">
<input type="text" size="32" name="table">
(should be the same as the Module name in most cases)</td>
</tr>
<tr>
<td width="28%">Dependancy(s):</td>
<td width="72%">
<input type="text" size="32" name="dependancy">
(comma separated list of required modules, core assumed) </td>
</tr>
<tr>
<td width="28%">Cache: (in seconds)</td>
<td width="72%">
<input type="text" size="5" name="cache" value="0">
(not implemented)</td>
</tr>
<tr>
<td width="28%"> Order By Field: </td>
<td width="72%">
<select name="order_by" >
{foreach from=$VAR.f item=field}
{if $field != ''}
<option value="{$field}">
{$field}
</option>
{/if}
{/foreach}
</select>
(for searches)</td>
</tr>
<tr>
<td width="28%">Default Select Limit: </td>
<td width="72%">
<input type="text" size="5" name="limit" value="35">
(for searches)</td>
</tr>
<tr>
<td width="28%">Module Parent</td>
<td width="72%">
<input type="text" size="32" name="module_parent">
(blank for self)</td>
</tr>
<tr>
<td width="28%">Module Notes</td>
<td width="72%">
<textarea cols="32" name="module_notes"></textarea>
</td>
</tr>
<tr>
<td width="28%">Display In Menu?</td>
<td width="72%">
<input type="checkbox" name="module_menu_display" value="1" checked>
</td>
</tr>
<tr>
<td width="28%">Display Export/Print Bar?</td>
<td width="72%">
<input type="checkbox" name="module_export_bar" value="1">
(for search results page)</td>
</tr>
<tr>
<td width="28%">Sub-Module Names</td>
<td width="72%">
<input type="text" size="32" name="module_sub_module">
(comma separated list of sub-modules) </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p><br>
<br>
</p>
<p><br>
<br>
<font color="#000099" size="4"><br>
<b>Field Configuration: </b></font><br>
<br>
{foreach from=$VAR.f item=field}
{if $field != ''}
<input type="hidden" name="f[]" value="{$field}">
</p>
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center"> [
{$field}
] column settings</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1" align="center">
<tr>
<td width="78%"> Translated Name:
<input type="text" name="field[{$field}][name]" size="32" >
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="1" class="row1">
<tr>
<td width="26%">Field Type:</td>
<td width="29%">Default Value:</td>
<td width="23%">PDF Width</td>
</tr>
<tr>
<td width="26%">
<select name="field[{$field}][type]" >
<option value="C(16)">VARCHAR [16]</option>
<option value="C(32)">VARCHAR [32]</option>
<option value="C(128)">VARCHAR [128]</option>
<option value="C(255)">VARCHAR [255]</option>
<option value="X2">Text</option>
<option value="L">TRUE / FALSE (0/1)</option>
<option value="I4">Integer (8)</option>
<option value="I8">Integer (20)</option>
<option value="F">Floating Point Number</option>
<option value="N">Numeric or Decimal Number</option>
</select>
</td>
<td width="29%">
<input type="text" name="field[{$field}][default]" size="12" >
</td>
<td width="23%">
<input type="text" name="field[{$field}][pdf_len]" size="3" >
</td>
</tr>
<tr>
<td width="26%">Min Length</td>
<td width="29%">Max Length</td>
<td width="23%">Index</td>
</tr>
<tr>
<td width="26%">
<input type="text" name="field[{$field}][min_len]" size="3" >
</td>
<td width="29%">
<input type="text" name="field[{$field}][max_len]" size="3" >
</td>
<td width="23%">
<input type="checkbox" name="field[{$field}][index]" value="1">
</td>
</tr>
<tr>
<td width="26%">Validate</td>
<td width="29%">Convert Type</td>
<td width="23%">Unique</td>
</tr>
<tr>
<td width="26%">
<select name="field[{$field}][validate]" >
<option value="">-- none --</option>
<option value="any">Any</option>
<option value="email">Email</option>
<option value="date">Date</option>
<option value="time">Time</option>
<option value="date-time">Date-Time</option>
<option value="address">Address</option>
<option value="zip">Zip</option>
<option value="phone">Phone</option>
<option value="cc">Credit Card</option>
<option value="check">Check</option>
<option value="numeric">Numeric</option>
<option value="alphanumeric">Alphanumeric</option>
<option value="float">Floating Point/Decimal Number</option>
<option>Non-numeric</option>
</select>
</td>
<td width="29%">
<select name="field[{$field}][convert]" >
<option value="">-- none --</option>
<option value="date">Date</option>
<option value="time">Time</option>
<option value="date-now">Current time</option>
<option value="date-time">Date-time</option>
<option value="array">Array</option>
<option value="md5">MD5</option>
<option value="rc5">RC5</option>
<option value="crypt">Crypt</option>
<option value="gpg">GPG</option>
<option value="pgp">PGP</option>
</select>
</td>
<td width="23%">
<input type="checkbox" name="field[{$field}][unique]" value="1">
</td>
</tr>
<tr>
<td width="26%">Associated Table</td>
<td width="29%">Associated Field</td>
<td width="23%">Default Length</td>
</tr>
<tr>
<td width="26%">
<input type="text" name="field[{$field}][asso_table]" size="12" >
</td>
<td width="29%">
<input type="text" name="field[{$field}][asso_field]" size="12" >
</td>
<td width="23%">
<input type="text" name="field[{$field}][def_len]" size="3" >
</td>
</tr>
</table>
</td>
<td width="22%" bgcolor="#CCCCCC">
{foreach from=$VAR.m item=method}
<input type="checkbox" name="method[{$method}][{$field}]" value="1" checked>
{$method}
<br>
{/foreach}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">[
{$field}
] page settings</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="1" class="row1">
<tr>
<td width="25%">
<div align="center">ADD</div>
</td>
<td width="22%">
<div align="center">VIEW</div>
</td>
<td width="27%">
<div align="center">SEARCH FORM</div>
</td>
<td width="26%">
<div align="center">SEARCH SHOW</div>
</td>
</tr>
<tr>
<td width="25%">
<div align="center">
<input type="checkbox" name="field[{$field}][page_view][include]" value="1" {if $field != "id" && $field != "site_id"}checked{/if}>
</div>
</td>
<td width="22%">
<div align="center">
<input type="checkbox" name="field[{$field}][page_add][include]" value="1" {if $field != "id" && $field != "site_id"}checked{/if}>
</div>
</td>
<td width="27%">
<div align="center">
<input type="checkbox" name="field[{$field}][page_search_form][include]" value="1" {if $field != "id" && $field != "site_id"}checked{/if}>
</div>
</td>
<td width="26%">
<div align="center">
<input type="checkbox" name="field[{$field}][page_search_show][include]" value="1" {if $field != "id" && $field != "site_id"}checked{/if}>
</div>
</td>
</tr>
<tr>
<td width="25%">
<div align="center">
<select name="field[{$field}][field_type]" >
<option value="text_medium">Medium Text</option>
<option value="text_small">Small Text</option>
<option value="text_large">Large Text</option>
<option value="date_time">Date-time</option>
<option value="date">Date</option>
<option value="date_now">Curent date/time</option>
<option value="bool">True/False</option>
<option value="menu">Menu List</option>
<option value="account_menu">Account List</option>
</select>
</div>
</td>
<td width="22%">
<div align="center">Can Update?
<input type="checkbox" name="field[{$field}][page_view][type]" value="1" checked>
</div>
</td>
<td width="27%">
<div align="center"></div>
</td>
<td width="26%">
<div align="center"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p><b> </b></p>
<p><br>
<br>
<br>
<br>
{/if}
{/foreach}
<br>
<br>
{foreach from=$VAR.m item=method}
<b>
<input type="hidden" name="m[]" value="{$method}">
</b><br>
<u><B><font size="3" color="#990000"> </font></B></u></p>
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center"> [
{$method}
] Method Settings</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="1" >
<tr>
<td width="17%">Block Title</td>
<td width="83%">
<input type="text" name="method[{$method}][block_name]" size="32" >
</td>
</tr>
<tr>
<td width="17%">Menu Title</td>
<td width="83%">
<input type="text" name="method[{$method}][menu_name]" size="32" >
</td>
</tr>
<tr>
<td width="17%">Display In Module Menu?</td>
<td width="83%">
<input type="checkbox" name="method[{$method}][method_display]" value="1">
</td>
</tr>
<tr>
<td width="17%">Menu Link </td>
<td width="83%">
<input type="text" name="method[{$method}][method_page]" size="32" value="{if $method == 'view'}core:search&amp;module=%%&_escape=1{elseif $method == 'search'}%%:search_form{elseif $method == 'add'}%%:add{/if}">
(page to link to) </td>
</tr>
<tr>
<td width="17%">Trigger(s): [success] </td>
<td width="83%">
<input type="text" name="method[{$method}][trigger_success]" size="32" >
</td>
</tr>
<tr>
<td width="17%">Trigger(s): [failure] </td>
<td width="83%">
<input type="text" name="method[{$method}][trigger_failure]" size="32" >
</td>
</tr>
<tr>
<td width="17%">Note(s): </td>
<td width="83%">
<input type="text" name="method[{$method}][method_notes]" size="32" >
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp; </p>
<p>
{/foreach}
<br>
<b> </b></p>
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">Language Pack Settings</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="4" class="row1">
<tr>
<td>Module Name:
<input type="text" size="32" name="lang[name]">
<br>
Menu Title:
<input type="text" size="32" name="lang[menu]">
<br>
Theme:
<input type="text" name="theme_name" size="32" value="default">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p><b> </b><br>
<input type="submit" name="Submit" value="Generate">
<input type="hidden" name="_page" value="module:dev_add">
<input type="hidden" name="do[]" value="module:dev_add">
<br>
<br>
</p>
</form>
<p>&nbsp; </p>

View File

@@ -0,0 +1,64 @@
<form id="module_add" name="module_form" method="post" action="">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate module=module}
title_install
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="42%">
{translate module=module}
install_name
{/translate}
</td>
<td width="58%">
<input id="module_name" type="text" name="install_name" >
</td>
</tr>
<tr valign="top">
<td width="42%">&nbsp; </td>
<td width="58%">&nbsp; </td>
</tr>
<tr valign="top">
<td width="42%">
{translate module=module}
install_group
{/translate}
</td>
<td width="58%">
{$list->select_groups("", module_group, "form_field", "1", "_1")}
</td>
</tr>
<tr valign="top">
<td width="42%"></td>
<td width="58%">&nbsp; </td>
</tr>
<tr valign="top">
<td width="42%"></td>
<td width="58%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="module:install_2">
<input type="hidden" name="_page_current" value="module:install">
<input type="hidden" name="do[]" value="module:install">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,64 @@
<!-- Display the field validation -->
{if $form_validation}
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate}
alert
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1"> <br>
{foreach from=$form_validation item=record}
&nbsp;
{$record}
<br>
<br>
{/foreach}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{else}
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate module=module}
module_installed
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<div align="center"><br>
Congratulations, the new module installation has been completed!<br>
<br>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}

View File

@@ -0,0 +1,27 @@
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width=100% border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td class="table_heading">
<center>
{translate module=module}
menu
{/translate}
</center>
</td>
</tr>
<tr>
<td class="row1">
<table width="100%" border="0" cellpadding="5" class="row1">
<tr>
<td>{translate module=module}help_file{/translate}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>

View File

@@ -0,0 +1,138 @@
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
{translate module=module}
consistancy_file
{/translate}
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%"> <b>
{translate module=module}
modified_files
{/translate}
</b> </td>
<td width="50%"><b>
{translate module=module}
missing_files
{/translate}
</b></td>
</tr>
<tr valign="top">
<td width="50%">
{if $md5 <= 0}
<font color="#006600">
{translate module=module}
no_modified_files
{/translate}
</font>
{else}
<font color="#990000">
{translate module=module md5=$md5}
md5_files_count
{/translate}
</font>
{/if}
</td>
<td width="50%">
{if $mis <= 0}
<font color="#006600">
{translate module=module}
no_missing_files
{/translate}
</font>
{else}
<font color="#FF9900">
{translate mis=$mis module=module}
mis_files_count
{/translate}
</font>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{foreach from=$modules item=module}
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center"> {$module.name} </div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%"><b>
{translate module=module}
modified_files
{/translate}
</b></td>
<td width="50%"><b>
{translate module=module}
missing_files
{/translate}
</b></td>
</tr>
<tr valign="top">
<td width="50%">
{if $module.md5 == ""}
<font color="#006600">
{translate module=module}
no_modified_files
{/translate}
</font>
{else}
<font color="#990000">
{foreach from=$module.md5 item=md5}
{$md5}
<br>
{/foreach}
</font>
{/if}</td>
<td width="50%">
{if $module.mis == ""}
<font color="#006600">
{translate module=module}
no_missing_files
{/translate}
</font>
{else}
<font color="#FF9900">
{foreach from=$module.mis item=mis}
{$mis}
<br>
{/foreach}
</font>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{/foreach}

View File

@@ -0,0 +1,121 @@
{$method->exe("module","search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{else}
{if $results == 1}
{translate results=$results}search_result_count{/translate}
{else}
{translate results=$results}search_results_count{/translate}
{/if}
<BR>
{literal}
<script language="JavaScript">
<!-- START
var module = 'module';
{/literal}
{if $VAR._print == TRUE}
var p = '&_escape=y&_print=y';
{else}
var p = '';
{/if}{literal}
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
var order = '{/literal}{$order}{literal}';
var sort1 = '{/literal}{$sort}{literal}';
var search_id = '{/literal}{$search_id}{literal}';
var page = {/literal}{$page}{literal};
var pages = '{/literal}{$pages}{literal}';
var results = '{/literal}{$results}{literal}';
var limit = '{/literal}{$limit}{literal}';
record_arr = new Array ({/literal}{$limit}{literal});
var i = 0;
// END -->
</script>
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
{/literal}
<!-- SHOW THE SEARCH NAVIGATION MENU -->
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
<!-- BEGIN THE RESULTS CONTENT AREA -->
<div id="search_results" onKeyPress="key_handler(event);">
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form id="form1" name="form1" method="post" action="">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="4%" class="table_heading">&nbsp;</td>
<td width="26%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<td width="64%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate}field_notes{/translate}{literal}','notes'));
</script>
{/literal}
</td>
<td width="6%" class="table_heading">&nbsp; </td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$module item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=module:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
<td align="center" width="4%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="26%"> &nbsp;
{$record.name}
</td>
<td width="64%"> &nbsp;
{$record.notes|truncate:"50"}
</td>
<td width="6%">&nbsp;
{if $record.status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" width="16" height="16">
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" width="16" height="16">
{/if}
</td>
</tr>
{literal}
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
{/literal}
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</form>
</table>
{if $VAR._print != TRUE}<br>
<center>
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}', limit, module);" class="form_button">
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,47 @@
<form name="form1" method="post" action="">
<p> Module Name: <br>
<input type="text" name="translate_module">
<br>
<br>
<input type="hidden" name="translate_lang[en_nl]" value="dutch">
<input type="checkbox" name="translate_language[]" value="en_nl" checked>
English to Dutch <br>
<input type="hidden" name="translate_lang[en_ko]" value="korean">
<input type="checkbox" name="translate_language[]" value="en_ko" checked>
English to Korean <br>
<input type="hidden" name="translate_lang[en_zh]" value="chineses">
<input type="checkbox" name="translate_language[]" value="en_zh" checked>
English to Simplified Chinese <br>
<input type="hidden" name="translate_lang[en_zt]" value="chineset">
<input type="checkbox" name="translate_language[]" value="en_zt" checked>
English to Traditional Chinese <br>
<input type="hidden" name="translate_lang[en_ru]" value="russian">
<input type="checkbox" name="translate_language[]" value="en_ru" checked>
English to Russian <br>
<input type="hidden" name="translate_lang[en_es]" value="spanish">
<input type="checkbox" name="translate_language[]" value="en_es" checked>
English to Spanish <br>
<input type="hidden" name="translate_lang[en_fr]" value="french">
<input type="checkbox" name="translate_language[]" value="en_fr" checked>
English to French <br>
<input type="hidden" name="translate_lang[en_de]" value="german">
<input type="checkbox" name="translate_language[]" value="en_de" checked>
English to German <br>
<input type="hidden" name="translate_lang[en_it]" value="italian">
<input type="checkbox" name="translate_language[]" value="en_it" checked>
English to Italian <br>
<input type="hidden" name="translate_lang[en_pt]" value="portuguese">
<input type="checkbox" name="translate_language[]" value="en_pt" checked>
English to Portuguese <br>
<input type="hidden" name="translate_lang[en_fr]" value="french">
<input type="checkbox" name="translate_language[]" value="en_fr" checked>
English to French</p>
<p>
<input type="submit" name="Translate" value="Submit">
<input type="hidden" name="_page" value="module:translate">
<input type="hidden" name="do[]" value="module:translate">
<br>
</p>
</form>

View File

@@ -0,0 +1,235 @@
<!--{literal}
Removed for the time being...
<form id="version_check" name="version_check" method="post" action="">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate module=module}
consistancy_file
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="42%">
{translate module=module}
current_version
{/translate}
</td>
<td width="58%">
{$list->
version()}
{$ab_version}
</td>
</tr>
<tr valign="top">
<td width="42%">
{translate module=module}
current_ab_version
{/translate}
</td>
<td width="58%">
{$version}
</td>
</tr>
<tr valign="top">
<td width="42%">
{translate module=module}
encoding_version
{/translate}
</td>
<td width="58%">
{$encoding_version}
<input type="hidden" name="ver" value="{$encoding_version}">
</td>
</tr>
<tr valign="top">
<td width="42%">
{translate module=module}
optional_modules
{/translate}
</td>
<td width="58%">
{foreach from=$modules item="module"}
{$module}
<input type="hidden" name="module[]" value="{$module}">
<br>
{/foreach} </td>
</tr>
<tr valign="top">
<td width="42%">&nbsp;</td>
<td width="58%">
<input type="submit" name="Submit2" value="{translate module=module}consistancy_submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="module:remote_update">
<input type="hidden" name="do[]" value="module:remote_update">
<input type="hidden" name="step" value="1">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/literal}-->
{$method->exe_noauth("module","remote_version_check")}
{if $send}
<form id="version_check" name="version_check" method="post" action="http://agileco.com/accounts/">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate module=module}
consistancy_file
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top">
<td width="10%"><strong>Send?</strong></td>
<td width="14%"><strong>Data</strong></td>
<td width="76%"><strong>Value</strong></td>
</tr>
<tr valign="top">
<td>Required
<input name="version" type="hidden" id="version" value="{$send.version}"></td>
<td>Version</td>
<td>{$send.version}</td>
</tr>
<tr valign="top">
<td>Required
<input name="license" type="hidden" id="license" value="{$send.license}"></td>
<td>License </td>
<td>{$send.license}</td>
</tr>
<tr valign="top">
<td><input name="php" type="checkbox" id="php" value="{$send.php}" checked></td>
<td>PHP </td>
<td>{$send.php}</td>
</tr>
<tr valign="top">
<td><input name="mysql" type="checkbox" id="mysql" value="{$send.mysql}" checked></td>
<td>MySQL </td>
<td>{$send.mysql}</td>
</tr>
<tr valign="top">
<td><input name="os" type="checkbox" id="os" value="{$send.os}" checked></td>
<td>OS</td>
<td>{$send.os}</td>
</tr>
<tr valign="top">
<td><input name="proc" type="checkbox" id="proc" value="{$send.proc}" checked></td>
<td>Architecture </td>
<td>{$send.proc}</td>
</tr>
<tr valign="top">
<td><input name="arch" type="checkbox" id="arch" value="{$send.arch}" checked></td>
<td>Processor </td>
<td>{$send.arch}</td>
</tr>
<tr valign="top">
<td><input name="server" type="checkbox" id="server" value="{$send.server}" checked></td>
<td>Server </td>
<td>{$send.server}</td>
</tr>
<tr valign="top">
<td colspan="3"><div align="center">
<input type="submit" name="Submit2" value="Check Version Now" class="form_button">
<input type="hidden" name="_page" value="license:user_version">
<input type="hidden" name="do[]" value="license:user_version">
</div></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
<form id="module_add" name="module_form" method="post" action="">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate module=module}
title_upgrade
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="42%">
{translate module=module}
upgrademodules
{/translate}
</td>
<td width="58%">
{ $list->menu_multi($VAR.module_name, 'module_name', 'module', 'name', '', '20', 'form_menu') }
</td>
</tr>
<tr valign="top">
<td width="42%">&nbsp; </td>
<td width="58%">&nbsp; </td>
</tr>
<tr valign="top">
<td width="42%">
{translate module=module}
default_groups
{/translate}
</td>
<td width="58%">
{$list->select_groups($VAR.module_group, module_group, "form_field", "1", "_1")}
</td>
</tr>
<tr valign="top">
<td width="42%"></td>
<td width="58%">&nbsp; </td>
</tr>
<tr valign="top">
<td width="42%"></td>
<td width="58%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="module:upgrade">
<input type="hidden" name="_page_current" value="module:upgrade">
<input type="hidden" name="do[]" value="module:upgrade">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{$js}

View File

@@ -0,0 +1,247 @@
{ $method->exe("module","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{literal}
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
<script language="JavaScript">
var module = 'module';
var locations = '{/literal}{$VAR.module_id}{literal}';
var id = '{/literal}{$VAR.id}{literal}';
var ids = '{/literal}{$VAR.ids}{literal}';
var array_id = id.split(",");
var array_ids = ids.split(",");
var num=0;
if(array_id.length > 2) {
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
}else if (array_ids.length > 2) {
document.write(view_nav_top(array_ids,id,ids));
}
// Mass update, view, and delete controller
function delete_record(id,ids)
{
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
if(temp == false) return;
var replace_id = id + ",";
ids = ids.replace(replace_id, '');
if(ids == '') {
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
window.location = url;
return;
} else {
var page = 'view&id=' +ids;
}
var doit = 'delete';
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
window.location = url;
}
// END -->
</script>
{/literal}
<!-- Loop through each record -->
{foreach from=$module item=module}
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form id="update_form" name="update_form" method="post" action="">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate module=module}
title_view
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row0" valign="top">
<td width="35%">
{translate module=module}
field_name
{/translate}
</td>
<td width="65%">
<input type="text" name="module_name" value="{$module.name}" size="32">
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%">
{translate module=module}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="module_notes" cols="45" rows="5" >{$module.notes}</textarea>
</td>
</tr>
<tr class="row3" valign="top">
<td width="35%">
{translate module=module}
field_date_orig
{/translate}
</td>
<td width="65%">
{$module.date_orig|date_format:$smarty.const.DEFAULT_DATE_FORMAT}
</td>
</tr>
<tr class="row4" valign="top">
<td width="35%">
{translate module=module}
field_date_last
{/translate}
</td>
<td width="65%">
{$module.date_last|date_format:$smarty.const.DEFAULT_DATE_FORMAT}
<input type="hidden" name="module_date_last" value="{$smarty.now|date_format:$smarty.const.DEFAULT_DATE_FORMAT}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">
{translate module=module}
field_parent_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "module_parent_id", "module", "name", $module.parent_id, "form_menu") }
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">
{translate module=module}
field_menu_display
{/translate}
</td>
<td width="65%">
{ $list->bool("module_menu_display", $module.menu_display, "form_menu")
}
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">
{translate module=module}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("module_status", $module.status, "form_menu") }
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
</td>
<td align="right">
<input type="button" name="delete2" value="{translate module=module}uninstall{/translate}" class="form_button" onClick="delete_record('{$module.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="module:view">
<input type="hidden" name="module_id" value="{$module.id}">
<input type="hidden" name="do[]" value="module:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
<p align="center"><a href="javascript:showMethods()">
{translate module=module}
view_methods
{/translate}
</a> &nbsp;|&nbsp; <a href="javascript:showAdd()">
{translate module=module}
add_methods
{/translate}
</a><br>
</p>
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate module=group}
title_relation
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="28%">
{translate module=group}
select_module
{/translate}
</td>
<td width="72%">
{ $list->menu("no", "module_method_module_id", "group", "name", "all", "\" onChange=\"showGroupPerm(this)\"") }
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center">
<p>
{literal}
<script language="JavaScript">
var module_id = {/literal}{$module.id}{literal};
function showMethods() {
showIFrame('iframeModule',550,400,'?_page=core:search_iframe&module=module_method&_escape=1&module_method_module_id='+module_id+
'&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=module_method_module_id&val_id1='+module_id);
}
function showAdd() {
showIFrame('iframeModule',550,300,'?_page=module_method:add&module_method_module_id='+module_id+'&_escape=1');
}
function showGroupPerm(obj) {
showIFrame('iframeModule',550,400,'?_page=module_method:view_methods'+
'&module_method_group_id='+obj.value+
'&module_method_module_id={/literal}{$module.id}{literal}&_escape=1');
}
</script>
{/literal}
</p>
<br>
<iframe name="iframeModule" id="iframeModule" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
</div>
<form id="update_form" name="update_form" method="post" action="">
<input type="hidden" name="_page" value="core:search">
<input type="hidden" name="module_method_module_id" value="{$module.id}">
<input type="hidden" name="module" value="module_method">
<input type="hidden" name="_escape" value="1">
</form>
{/foreach}
{/if}