Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

View File

@@ -1,128 +1,75 @@
{literal}<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "specific_textareas",
theme : "advanced",
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "iespell,media,advhr",
theme_advanced_toolbar_location : "bottom",
theme_advanced_toolbar_align : "center",
content_css : "themes/default/style.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
relative_urls: 'true',
width : "100%"
});
</script>
<!-- /tinyMCE -->{/literal}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$block->display('core:alert_fields')}
{/if}
<!-- tinyMCE -->
<script type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="themes/{$THEME_NAME}/tinymce.js"></script>
<!-- Display the form to collect the input values -->
<form id="static_page_translate_add" name="static_page_translate_add" method="post" action="">
{$COOKIE_FORM}
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr valign="top">
<td width="65%" class="table_heading">
<center>
{translate module=static_page_translate}
title_add
{/translate}
</center>
</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="23%">
{translate module=static_page_translate}
field_static_page_id
{/translate}
</td>
<td width="77%">
{if $VAR.id == ""}
{ $list->menu("", "static_page_translate_static_page_id", "static_page", "name", $VAR.static_page_translate_static_page_id, "form_menu") }
{else}
{ $list->menu("", "static_page_translate_static_page_id", "static_page", "name", $VAR.id, "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="23%">
{translate module=static_page_translate}
field_language_id
{/translate}
</td>
<td width="77%">
{if $VAR.static_page_translate_language_id == ""}
{ $list->menu_files("", "static_page_translate_language_id", $smarty.const.DEFAULT_LANGUAGE, "language", "", "_core.xml", "form_menu") }
{else}
{ $list->menu_files("", "static_page_translate_language_id", $VAR.static_page_translate_language_id, "language", "", "_core.xml", "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="23%">
{translate module=static_page_translate}
field_title
{/translate}
</td>
<td width="77%">
<input type="text" name="static_page_translate_title" value="{$VAR.static_page_translate_title}" {if $static_page_translate_title == true}class="form_field_error"{/if} size="40">
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
<tr>
<td> <b>
{translate module=static_page_translate}
field_body_intro
{/translate}
</b> </td>
</tr>
<tr>
<td>
<textarea id="static_page_translate_body_intro" name="static_page_translate_body_intro" mce_editable="true" cols="80" rows="12">{$VAR.static_page_translate_body_intro}</textarea>
</td>
</tr>
<tr>
<td> <b>
{translate module=static_page_translate}
field_body_full
{/translate}
</b> </td>
</tr>
<tr>
<td>
<textarea id="static_page_translate_body_full" name="static_page_translate_body_full" mce_editable="true" cols="80" rows="18">{$VAR.static_page_translate_body_full}</textarea>
</td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="static_page_translate:view">
<input type="hidden" name="_page_current" value="static_page_translate:add">
<input type="hidden" name="do[]" value="static_page_translate:add">
<input type="hidden" name="static_page_translate_date_last" value="{$smarty.now}">
<input type="hidden" name="static_page_translate_date_orig" value="{$smarty.now}">
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<form id="add" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 25%;">{osb f=tf field=static_page_id}</td>
<td style="width: 75%;">
{if $VAR.id == ''}
{$list->menu('','static_page_translate_static_page_id','static_page','name',$VAR.static_page_translate_static_page_id,'form_menu')}
{else}
{$list->menu('','static_page_translate_static_page_id','static_page','name',$VAR.id,'form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td style="width: 25%;">{osb f=tf field=language_id}</td>
<td style="width: 75%;">
{if $VAR.static_page_translate_language_id == ''}
{$list->menu_files('','static_page_translate_language_id',$smarty.const.DEFAULT_LANGUAGE,'language','','_core.xml','form_menu')}
{else}
{$list->menu_files('','static_page_translate_language_id',$VAR.static_page_translate_language_id,'language','','_core.xml','form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td style="width: 25%;">{osb f=tf field=title}</td>
<td style="width: 75%;"><input type="text" name="static_page_translate_title" value="{$VAR.static_page_translate_title}" {if $static_page_translate_title == true}class="form_field_error"{/if} size="40"/></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
<tr>
<td><b>{osb f=tf field=body_intro}</b></td>
</tr>
<tr>
<td><textarea id="static_page_translate_body_intro" name="static_page_translate_body_intro" class="mce_editable" cols="80" rows="12">{$VAR.static_page_translate_body_intro}</textarea></td>
</tr>
<tr>
<td><b>{osb f=tf field=body_full}</b></td>
</tr>
<tr>
<td><textarea id="static_page_translate_body_full" name="static_page_translate_body_full" class="mce_editable" cols="80" rows="18">{$VAR.static_page_translate_body_full}</textarea></td>
</tr>
</table>
<table>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -1,120 +1,12 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe("static_page_translate","search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{$method->exe($meth.0,$meth.1)}
{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 = 'static_page_translate';
{/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="43" class="table_heading">&nbsp;</td>
<td width="213" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=static_page_translate}field_static_page_id{/translate}{literal}','static_page_id'));
</script>
{/literal}
</td>
<td width="240" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=static_page_translate}field_language_id{/translate}{literal}','language_id'));
</script>
{/literal}
</td>
<td width="463" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=static_page_translate}field_title{/translate}{literal}','title'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$static_page_translate item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=static_page_translate:view&id={$record.id},{$COOKIE_URL}';" 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="43">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="213">&nbsp;
{$record.static_page_id}
</td>
<td width="240">&nbsp;
{$record.language_id}
</td>
<td width="463">&nbsp;
{$record.title|truncate:"40"}
</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}{$COOKIE_URL}', 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>
{include file='file:../core/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}
{/if}
</div>

View File

@@ -1,188 +1,83 @@
{literal}<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "specific_textareas",
theme : "advanced",
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "iespell,media,advhr",
theme_advanced_toolbar_location : "bottom",
theme_advanced_toolbar_align : "center",
content_css : "themes/default/style.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
relative_urls: 'true',
width : "100%"
});
</script>
<!-- /tinyMCE -->{/literal}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("static_page_translate","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
{literal}
<!-- Define the update delete function -->
<script language="JavaScript">
<!-- START
var module = 'static_page_translate';
var locations = '{/literal}{$VAR.module_id}{literal}';
if (locations != "")
{
refresh(0,'#'+locations)
}
// 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}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Loop through each record -->
{foreach from=$static_page_translate item=static_page_translate} <a name="{$static_page_translate.id}"></a>
<!-- tinyMCE -->
<script type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="themes/{$THEME_NAME}/tinymce.js"></script>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="static_page_translate_view" 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">
<center>
{translate module=static_page_translate}
title_view
{/translate}
</center>
</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=static_page_translate}
field_static_page_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "static_page_translate_static_page_id", "static_page", "name", $static_page_translate.static_page_id, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=static_page_translate}
field_language_id
{/translate}
</td>
<td width="65%">
{ $list->menu_files("", "static_page_translate_language_id", $static_page_translate.language_id, "language", "", "_core.xml", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=static_page_translate}
field_title
{/translate}
</td>
<td width="65%">
<input type="text" name="static_page_translate_title" value="{$static_page_translate.title}" size="45">
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class=body>
<tr>
<td> <b>
{translate module=static_page_translate}
field_body_intro
{/translate}
</b> </td>
</tr>
<tr>
<td>
<textarea id="static_page_translate_body_intro" name="static_page_translate_body_intro" mce_editable="true" cols="80" rows="12">{$static_page_translate.body_intro}</textarea>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td> <b>
{translate module=static_page_translate}
field_body_full
{/translate}
</b> </td>
</tr>
<tr>
<td>
<textarea id="static_page_translate_body_full" name="static_page_translate_body_full" mce_editable="true" cols="80" rows="18">{$static_page_translate.body_full}</textarea>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="5" class="row2">
<tr>
<td><a href="{$URL}?_page=core:search&module=static_page_translate&static_page_translate_static_page_id={$static_page_translate.static_page_id}">
</a>
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
<td align="right"><a href="{$URL}?_page=static_page:view&id={$static_page_translate.static_page_id}">
</a>
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$static_page_translate.id}','{$VAR.id}');">
</td>
</tr>
<tr>
<td><a href="{$URL}?_page=core:search&module=static_page_translate&static_page_translate_static_page_id={$static_page_translate.static_page_id}">
{translate module=static_page_translate}
view_all
{/translate}
</a></td>
<td align="right"><a href="{$URL}?_page=static_page:view&id={$static_page_translate.static_page_id}">
{translate module=static_page_translate}
return
{/translate}
</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="static_page_translate:view">
<input type="hidden" name="static_page_translate_id" value="{$static_page_translate.id}">
<input type="hidden" name="do[]" value="static_page_translate:update">
<input type="hidden" name="id" value="{$VAR.id}">
<input type="hidden" name="static_page_translate_date_last" value="{$smarty.now}">
</form>
{/foreach}
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
<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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=static_page_id}</td>
<td style="width: 65%;">{$list->menu('','static_page_translate_static_page_id','static_page','name',$record.static_page_id,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=language_id}</td>
<td style="width: 65%;">{$list->menu_files('','static_page_translate_language_id',$record.language_id,'language','','_core.xml','form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=title}</td>
<td style="width: 65%;"><input type="text" name="static_page_translate_title" value="{$record.title}" size="45"/></td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
<tr>
<td><b>{osb f=tf field=body_intro}</b></td>
</tr>
<tr>
<td><textarea id="static_page_translate_body_intro" name="static_page_translate_body_intro" class="mce_editable" cols="80" rows="12">{$record.body_intro|htmlspecialchars}</textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><b>{osb f=tf field=body_full}</b></td>
</tr>
<tr>
<td><textarea id="static_page_translate_body_full" name="static_page_translate_body_full" class="mce_editable" cols="80" rows="18">{$record.body_full|htmlspecialchars}</textarea></td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="5" class="row2">
<tr>
<td><a href="{$URL}?_page=core:search&amp;module=static_page_translate&amp;static_page_translate_static_page_id={$record.static_page_id}">{t}View all translations for this page{/t}</a></td>
<td align="right"><a href="{$URL}?_page=static_page:view&amp;id={$record.static_page_id}">{t}Return to main page view{/t}</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}