Add html files

This commit is contained in:
2025-05-12 15:45:02 +00:00
parent 82d5804ac4
commit 7ddd15c4fa
1224 changed files with 277606 additions and 0 deletions

152
modules/EcmDocs/DetailView.html Executable file
View File

@@ -0,0 +1,152 @@
<!--
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
-->
<!-- BEGIN: main -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<form action="index.php" method="post" name="DetailView" id="form">
<input type="hidden" name="module" value="EcmDocs">
<input type="hidden" name="record" value="{ID}">
<input type="hidden" name="isDuplicate" value=false>
<input type="hidden" name="action">
<input type="hidden" name="return_module">
<input type="hidden" name="return_action">
<input type="hidden" name="return_id" >
<tr>
<td style="padding-bottom: 2px;"><input title="{APP.LBL_EDIT_BUTTON_TITLE}"
accessKey="{APP.LBL_EDIT_BUTTON_KEY}"
class="button"
onclick="this.form.return_module.value='EcmDocs'; this.form.return_action.value='DetailView'; this.form.return_id.value='{ID}'; this.form.action.value='EditView'"
type="submit"
name="Edit"
value=" {APP.LBL_EDIT_BUTTON_LABEL} ">
<input title="{APP.LBL_DUPLICATE_BUTTON_TITLE}"
accessKey="{APP.LBL_DUPLICATE_BUTTON_KEY}"
class="button"
onclick="this.form.return_module.value='EcmDocs'; this.form.return_action.value='index'; this.form.isDuplicate.value=true; this.form.action.value='EditView'"
type="submit"
name="Duplicate"
value=" {APP.LBL_DUPLICATE_BUTTON_LABEL} ">
<input title="{APP.LBL_DELETE_BUTTON_TITLE}"
accessKey="{APP.LBL_DELETE_BUTTON_KEY}"
class="button"
onclick=" if(confirm('{APP.NTC_DELETE_CONFIRMATION}')){location.href='index.php?module=EcmDocs&action=RelationDelete&record={ID}&return_module={RETURN_MODULE}&return_action=ListView&return_id={RETURN_ID}';}"
type="button"
name="Delete"
value=" {APP.LBL_DELETE_BUTTON_LABEL} "></td>
<td align='right'>{ADMIN_EDIT}</td>
</tr>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabDetailView">
{PAGINATION}
<tr>
<td width="15%" class="tabDetailViewDL"><span sugar='slot1'>{MOD.LBL_NAME}</span sugar='slot'></td>
<td width="35%" class="tabDetailViewDF"><span sugar='slot1b'>{NAME}&nbsp;</span sugar='slot'></td>
<td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot2'>{APP.LBL_ASSIGNED_TO}</span sugar='slot'></td>
<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot2b'>{ASSIGNED_TO}</span sugar='slot'></td>
</tr>
<tr>
<td valign="top" class="tabDetailViewDL">{MOD.LBL_ACCOUNT_TO}</td>
<td valign="top" class="tabDetailViewDF"><a href="index.php?module=Accounts&amp;action=DetailView&amp;record={ACCOUNT_ID}">{ACCOUNT_NAME}</a></td>
<td valign="top" class="tabDetailViewDL">{MOD.LBL_CONTACT_TO}</td>
<td valign="top" class="tabDetailViewDF"><a href="index.php?module=Contacts&amp;action=DetailView&amp;record={CONTACT_ID}">{CONTACT_NAME}</a></td>
</tr>
<tr>
<td valign="top" class="tabDetailViewDL">&nbsp;</td>
<td valign="top" class="tabDetailViewDF">&nbsp;</td>
<td valign="top" class="tabDetailViewDL"><span sugar='slot4'>{MOD.LBL_GROUP_NAME}</span sugar='slot'></td>
<td valign="top" class="tabDetailViewDF"><span sugar='slot4b'>{GROUP_NAME}</span sugar='slot'></td>
</tr>
<tr>
<td valign="top" class="tabDetailViewDL">{MOD.LBL_DESCRIPTION}</td>
<td valign="top" class="tabDetailViewDF"><span sugar='slot3b'>{DESCRIPTION}&nbsp;</span sugar='slot'></td>
<td valign="top" class="tabDetailViewDL">{MOD.LBL_DATE}</td>
<td valign="top" class="tabDetailViewDF">{DATE}</td>
</tr>
<tr>
<td valign="top" class="tabDetailViewDL">{MOD.LBL_WORTH}</td>
<td valign="top" class="tabDetailViewDF">{WORTH}</td>
<td valign="top" class="tabDetailViewDL">{MOD.LBL_REMINDER_DATE} </td>
<td valign="top" class="tabDetailViewDF">{REMINDER_DATE}</td>
</tr>
<tr>
<td valign="top" class="tabDetailViewDL">&nbsp;</td>
<td valign="top" class="tabDetailViewDF">&nbsp;</td>
<td valign="top" class="tabDetailViewDL">{MOD.LBL_REMINDER}</td>
<td valign="top" class="tabDetailViewDF"><input name='should_remind' tabindex='1' size='2' maxlength='2' disabled="disabled" type="checkbox" class="checkbox" value='1' {REMINDER_CHECKED} /></td>
</tr>
<tr>
<td colspan="4" valign="top" class="tabDetailViewDF">&nbsp;</td>
</tr>
<tr>
<td valign="top" class="tabDetailViewDL">&nbsp;</td>
<td valign="top" class="tabDetailViewDF">&nbsp;</td>
<td valign="top" class="tabDetailViewDL">&nbsp;</td>
<td valign="top" class="tabDetailViewDF">&nbsp;</td>
</tr>
<tr class="listViewPaginationTdS1">
<td valign="top" class="listViewPaginationTdS1"><strong>{MOD.LBL_DETAILVIEW_FILE_LIST}</strong></td>
<td valign="top" class="listViewPaginationTdS1"><strong>{MOD.LBL_DETAILVIEW_FILE_DOWNLOAD}</strong></td>
<td valign="top" class="listViewPaginationTdS1"><strong>{MOD.LBL_DETAILVIEW_FILE_VERSION}</strong></td>
<td valign="top" class="listViewPaginationTdS1"><strong>{MOD.LBL_DETAILVIEW_FILE_DATE_CREATED} </strong></td>
</tr>
{LISTVERSIONS}
</table>
<!-- END: main -->
<!-- BEGIN: subpanel -->
<span sugar='slot23'>{SUBPANEL}</span sugar='slot'>
<!-- END: subpanel -->

328
modules/EcmDocs/EditView.html Executable file
View File

@@ -0,0 +1,328 @@
<!--
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
-->
<!-- BEGIN: main -->
<style type="text/css">
.przezroczysty {
filter: alpha(opacity=40);
-moz-opacity: 0.4;
opacity:0.4;
}
.nieprzezroczysty {
filter: none;
-moz-opacity: none;
opacity: none;
}
</style>
<script language="javascript" src="modules/EcmDocs/formloader.js"></script>
<script language="javascript" src="modules/EcmDocs/mintajax.js"></script>
<script language="javascript" src="modules/EcmDocs/helper.js"></script>
<script language="javascript">
function showuploadingafile()
{
if(document.getElementById('name').value!="")
{
document.getElementById('opacity').className="przezroczysty";
document.getElementById('uploading').style.display="block";
return true;
}
else
{
return false;
}
}
</script>
<div id="uploading" style="display:none;position:absolute;right:0;top:0;width:1000px;height:1000px;"><div style="position:absolute;top:300;right:400;">{MOD.LBL_UPLOADING_FILE}</div></div>
<div id="opacity">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<form name="EditView" method="POST" onSubmit="return showuploadingafile();" enctype="multipart/form-data" action="index.php">
<input type="hidden" name="module" value="EcmDocs">
<input type="hidden" name="record" value="{ID}">
<input type="hidden" name="action">
<input type="hidden" name="return_module" value="{RETURN_MODULE}">
<input type="hidden" name="return_id" value="{RETURN_ID}">
<input type="hidden" name="return_action" value="{RETURN_ACTION}">
<input type="hidden" name="email_id" value="{EMAIL_ID}">
<input type="hidden" name="case_id" value="{CASE_ID}">
<input type="hidden" name="samba_file" value="{SAMBA_FILE}">
<input type="hidden" name="db_id" value="{DB_ID}">
<!--// InboundEmail support //-->
<input type="hidden" name="inbound_email_id" value="{INBOUND_EMAIL_ID}">
<input type="hidden" name="start" value="{START}">
<input type="hidden" name="type" value="{TYPE}">
<input type="hidden" name="uid" value="{UID}">
<input type="hidden" name="ieId" value="{IEID}">
<td style="padding-bottom: 2px;">
<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{APP.LBL_SAVE_BUTTON_KEY}" class="button"
onclick="this.form.action.value='Save';return check_form('EditView');"
type="submit" name="button" value=" {APP.LBL_SAVE_BUTTON_LABEL} " >
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button"
onclick="history.back();"
type="submit" name="button" value=" {APP.LBL_CANCEL_BUTTON_LABEL} ">
</td>
<td align="right" nowrap><span class="required">{APP.LBL_REQUIRED_SYMBOL}</span> {APP.NTC_REQUIRED}</td>
<td align='right'>{ADMIN_EDIT}</td>
</tr>
</table>
<p>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabForm">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" class="dataLabel"><span sugar='slot1'>{MOD.LBL_NAME} <span class="required">{APP.LBL_REQUIRED_SYMBOL}</span></span sugar='slot'></td>
<td width="35%" class="dataField"><span sugar='slot1b'><input id='name' name='name' type="text" tabindex='1' size='35' maxlength='50' value="{NAME}"></span sugar='slot'></td>
<td class="dataLabel" ><span sugar='slot2'>{APP.LBL_ASSIGNED_TO}</span sugar='slot'></td>
<td class="dataField">
<span sugar='slot2b'>
<input class="sqsEnabled" tabindex="7" autocomplete="off" id="assigned_user_name" name='assigned_user_name' type="text" value="{ASSIGNED_USER_NAME}">
<input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" />
<input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name="btn_assigned_user_name"
onclick='open_popup("Users", 600, 400, "", true, false, {encoded_users_popup_request_data});' /></span sugar='slot'> </td>
</tr>
<tr>
<td class="dataLabel">{MOD.LBL_ACCOUNT_TO}</td>
<td class="dataField"><span sugar='slot4b'>
<input class="sqsEnabled" tabindex="2" autocomplete="off" id="account_name" name='account_name' type="text" value="{ACCOUNT_NAME}" />
<input id='account_id' name='account_id' type="hidden" value="{ACCOUNT_ID}" />
<input title="{APP.LBL_SELECT_BUTTON_TITLE}" accesskey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name="btn1"
onclick='open_popup("Accounts", 600, 400, "", true, false, {"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"account_id","name":"account_name"}}, "single", true);' />
<input name="account_create_button" type="button" class="button" id="account_create_button" value="{MOD.LBL_CREATE_BUTTON_LABEL}" />
</span sugar='slot'></td>
<td valign="top" class="dataLabel">{MOD.LBL_CONTACT_TO}</td>
<td valign="top" class="dataField"><input class="sqsEnabled" tabindex="2" autocomplete="off" id="contact_name" name='contact_name' type="text" value="{CONTACT_NAME}" />
<input id='contact_id' name='contact_id' type="hidden" value="{CONTACT_ID}" />
<input title="{APP.LBL_SELECT_BUTTON_TITLE}" accesskey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name="btn"
onclick='open_popup("Contacts", 600, 400, "", true, false, {"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"contact_id","name":"contact_name"}}, "single", true);' />
<input name="{MOD.LBL_CREATE_BUTTON_LABEL}" type="button" class="button" name="contact_create_button" id="contact_create_button" value="{MOD.LBL_CREATE_BUTTON_LABEL}" /> </td>
</tr>
<tr>
<td class="dataLabel">&nbsp;</td>
<td class="dataField">&nbsp;</td>
<td valign="top" class="dataLabel"><span sugar='slot4'>{MOD.LBL_GROUP_NAME}</span sugar='slot'></td>
<td valign="top" class="dataField">
<span sugar='slot4b'>
{GROUP} </span sugar='slot'> </td>
</tr>
<tr>
<td width="15%" valign="top" class="dataLabel"><span sugar='slot3'>{MOD.LBL_DESCRIPTION}</span sugar='slot'></td>
<td width="35%" rowspan="2" class="dataField"><span sugar='slot3b'>
<textarea name='description' title="Description" tabindex='3' cols="30" rows="8">{DESCRIPTION}</textarea>
</span sugar='slot'></td>
<td valign="top" class="dataLabel"><span sugar='slot4'>{DFILEINPUT}</span sugar='slot'></td>
<td valign="top" class="dataField"><span sugar='slot4b'> {FILEINPUT} </span sugar='slot'> </td>
</tr>
<tr>
<td width="15%" valign="top" class="dataLabel">&nbsp;</td>
<td valign="top" class="dataLabel">&nbsp;</td>
<td valign="top" class="dataField">&nbsp;</td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_WORTH}</td>
<td valign="top" class="dataField"><input tabindex="4" id="value" name='value' type="text" value="{WORTH}" /></td>
<td valign="top" class="dataLabel">{MOD.LBL_DATE}</td>
<td valign="top" class="dataField"><input name='date'
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
id='jscal_fielddate'
type="text"
title="Date"
tabindex='10'
size='11'
maxlength='10'
value="{DATE}" />
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggerdate" align="absmiddle" /> <span class="dateFormat">{USER_DATEFORMAT}</span>
<script>
Calendar.setup ({inputField : 'jscal_fielddate', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggerdate', singleClick : true, step : 1});
</script></td>
</tr>
<tr>
<td class="dataLabel" valign="top">{DEMAILCHECK}</td>
<td class="dataField">{EMAILCHECK}</td>
<td valign="top" class="dataLabel">{MOD.LBL_REMINDER_DATE} </td>
<td valign="top" class="dataField"><input name='should_remind' type='hidden' value='0' />
<input name='should_remind' tabindex='12' size='2' maxlength='2' onclick='toggleDisplay(&quot;should_remind_list&quot;);' type="checkbox" class="checkbox" value='1' {REMINDER_CHECKED} /><div id='should_remind_list' style='display:{REMINDER_TIME_DISPLAY}'>
<input name='reminder_date'
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
id='jscal_fieldreminder_date'
type="text"
title="Date"
tabindex='13'
size='11'
maxlength='10'
value="{REMINDER_DATE}" />
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggerreminder_date" align="absmiddle" /> <span class="dateFormat">{USER_DATEFORMAT}</span>
<input tabindex="14" name="hour" type="text" value="{HOUR}" size="1" />:<input tabindex="15" name="minutes" type="text" value="{MINUTES}" size="1" />
<script>
Calendar.setup ({inputField : 'jscal_fieldreminder_date', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggerreminder_date', singleClick : true, step : 1});
</script></div></td>
</tr>
<tr>
<td class="dataLabel" valign="top">{BACKTOEMAILS}</td>
<td class="dataField">{BACKTOEMAILSCHECK}</td>
<td valign="top" class="dataLabel">{MOD.LBL_STATUS}</td>
<td valign="top" class="dataField"><select name="status">{STATUS}</select></td>
</tr>
<tr>
<td class="dataLabel" valign="top">{DMSEL}</td>
<td class="dataField">{MSEL} </td>
<td valign="top" class="dataLabel">&nbsp;</td>
<td valign="top" class="dataField">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</p>
<div style="padding-top: 2px">
<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save';return check_form('EditView');" type="submit" name="button" value=" {APP.LBL_SAVE_BUTTON_LABEL} " >
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'" type="submit" name="button" value=" {APP.LBL_CANCEL_BUTTON_LABEL} ">
</div></div>
</form>
<script language="javascript">
//create Contact
var contactFL;
contactFL = new FormLoader();
contactFL.load('EcmDocs','Contacts','contactFL');
contactFL.onResponseData = function(data) {
//hideSmartInputFloater(true);
document.forms.EditView.contact_id.value = data['id'];
document.forms.EditView.contact_name.value = data['name'];
};
contactFL.setEditDblClick(document.forms.EditView.contact_name);
contactFL.onEditDblClick = function() {
var ret = "&fl_record="+document.forms.EditView.contact_id.value;
var ccc = document.forms.EditView.contact_name.value;
var cc_pos = ccc.indexOf(" ");
if(cc_pos != -1) {
var cc_ = '&fl_first_name='+ccc.substr(0,cc_pos)+'&fl_last_name='+ccc.substr(cc_pos+1,ccc.length);
ret += cc_;
}
return ret;
}
contactFL.onButtonClick = function() {
var ret = "&fl_record="+document.forms.EditView.contact_id.value;
var ccc = document.forms.EditView.contact_name.value;
var cc_pos = ccc.indexOf(" ");
if(cc_pos != -1) {
var cc_ = '&fl_first_name='+ccc.substr(0,cc_pos)+'&fl_last_name='+ccc.substr(cc_pos+1,ccc.length);
ret += cc_;
}
return ret;
}
document.forms.EditView.contact_create_button.FL = contactFL;
document.forms.EditView.contact_create_button.onclick = function() {
if(this.FL.createModule == '') return;
if(this.FL.onButtonClick) var data = this.FL.onButtonClick();
window.open("index.php?module="+this.FL.module+"&action=formloader&to_pdf=1&loaderAction=ViewForm&loaderFieldName="+this.FL.fieldName+"&createModule="+this.FL.createModule+(data?data:''),"Create10"+this.FL.module,"resizable=yes,scrollbars=no,status=no,height=540,width=700").focus();
}
//create Account
var accountFL;
accountFL = new FormLoader();
accountFL.load('EcmDocs','Accounts','accountFL');
accountFL.onResponseData = function(data) {
//hideSmartInputFloater(true);
document.forms.EditView.account_id.value = data['id'];
document.forms.EditView.account_name.value = data['name'];
};
accountFL.setEditDblClick(document.forms.EditView.account_name);
accountFL.onEditDblClick = function() {
var ret = "&fl_record="+document.forms.EditView.account_id.value+"&fl_name="+document.forms.EditView.account_name.value;
return ret;
}
accountFL.onButtonClick = function() {
var ret = "&fl_name="+document.forms.EditView.account_name.value;
return ret;
}
document.forms.EditView.account_create_button.FL = accountFL;
document.forms.EditView.account_create_button.onclick = function() {
if(this.FL.createModule == '') return;
if(this.FL.onButtonClick) var data = this.FL.onButtonClick();
window.open("index.php?module="+this.FL.module+"&action=formloader&to_pdf=1&loaderAction=ViewForm&loaderFieldName="+this.FL.fieldName+"&createModule="+this.FL.createModule+(data?data:''),"Create10"+this.FL.module,"resizable=yes,scrollbars=no,status=no,height=540,width=700").focus();
}
set_return = function(popup_reply_data, filter) {
var form_name = popup_reply_data.form_name;
var name_to_value_array = popup_reply_data.name_to_value_array;
for (var the_key in name_to_value_array) {
if (the_key == "toJSON") {
} else if (the_key) {
var displayValue = name_to_value_array[the_key].replace(/&amp;/gi, "&").replace(/&lt;/gi, "<").replace(/&gt;/gi, ">").replace(/&#039;/gi, "'").replace(/&quot;/gi, "\"");
document.getElementById(the_key).value = displayValue;
}
}
}
</script>
{JAVASCRIPT}
<script type="text/javascript" language="JavaScript">
if(!set_return) var set_return = null;
set_return = function(popup_reply_data, filter) {
var form_name = popup_reply_data.form_name;
var name_to_value_array = popup_reply_data.name_to_value_array;
for (var the_key in name_to_value_array) {
if (the_key == "toJSON") {
} else if (the_key) {
var displayValue = name_to_value_array[the_key].replace(/&/gi, "&").replace(/</gi, "<").replace(/>/gi, ">").replace(/'/gi, "'").replace(/"/gi, "\"");
document.getElementById(the_key).value = displayValue;
}
}
}
</script>
<!-- END: main -->

135
modules/EcmDocs/ListView.html Executable file
View File

@@ -0,0 +1,135 @@
<!--
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
-->
<!-- BEGIN: main -->
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="listView">
<!-- BEGIN: list_nav_row -->
{PAGINATION}
<!-- END: list_nav_row -->
<tr height="20">
<td scope="col" class="listViewThS1" NOWRAP>{CHECKALL}</td>
<td scope="col" width="35%" class="listViewThS1" NOWRAP><slot><a href="{ORDER_BY}name" class="listViewThLinkS1">{MOD.LBL_LIST_SUBJECT}{arrow_start}{name_arrow}{arrow_end}</a></slot></td>
<td scope="col" width="25%" class="listViewThS1" NOWRAP><a href="{ORDER_BY}account_name" class="listViewThLinkS1">Account {arrow_start}{account_name_arrow}{arrow_end}</a></td>
<td scope="col" width="20%" class="listViewThS1" NOWRAP><a href="{ORDER_BY}date_entered" class="listViewThLinkS1">Date Created {arrow_start}{date_entered_arrow}{arrow_end}</a></td>
<td scope="col" width="15%" class="listViewThS1" nowrap="nowrap"><slot><a href="{ORDER_BY}users.user_name" class="listViewThLinkS1">{APP.LBL_LIST_ASSIGNED_USER}{arrow_start}{users_user_name_arrow}{arrow_end}</a></slot></td>
</tr>
<!-- BEGIN: row -->
<tr height="20"
onmouseover="setPointer(this, '{ECMDOC.NAME}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmouseout="setPointer(this, '{ECMDOC.NAME}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmousedown="setPointer(this, '{ECMDOC.NAME}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
<td class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}" valign='top'>{PREROW}</td>
<td scope='row' valign=TOP class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">
<slot>
<{TAG.MAIN} onmouseover="showdescription('EcmDocs{ECMDOC.STAMP}_{ECMDOC.ID}','{ECMDOC.NAME}','{ECMINVOICE.DESCRIPTION}');" onmouseout="hidedescription();" id="link-EcmDocs{ECMDOC.STAMP}_{ECMDOC.ID}" href="{URL_PREFIX}index.php?action=DetailView&module=EcmDocs&record={ECMDOC.ID}&offset={ECMDOC.OFFSET}&stamp={ECMDOC.STAMP}" class="listViewTdLinkS1">
<script language="javascript">
var text="";
var t="";
t="{ECMDOC.NAME}";
if(t.length>30)
{
for(var i=0;i<=29;i++)
{
text+=t.charAt(i);
}
text=text+"...";
}
else
{
text=t;
}
document.write(text);
</script></{TAG.MAIN}> </slot> </td>
<td scope='row' valign=TOP class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><a onmouseover="
var t='{ECMDOC.ACCOUNT_NAME}';
if(t.length>20)
{
showdescription('EcmDoc{ECMDOC.STAMP}_{ECMDOC.ID}','{ECMDOC.ACCOUNT_NAME}','');
}
"
onmouseout="
var t='{ECMDOC.ACCOUNT_NAME}';
if(t.length>20)
{
hidedescription();
}
" id="link-EcmDoc{ECMDOC.STAMP}_{ECMDOC.ID}" href="{URL_PREFIX}index.php?action=DetailView&module=Accounts&record={ECMDOC.ACCOUNT_ID}&offset={ECMDOC.OFFSET}&stamp={ECMDOC.STAMP}" class="listViewTdLinkS1"><script language="javascript">
var text="";
var t="";
var i=0;
t="{ECMDOC.ACCOUNT_NAME}";
if(t.length>20)
{
for(i=0;i<=19;i++)
{
text+=t.charAt(i);
}
text=text+"...";
}
else
{
text=t;
}
document.write(text);
</script></a></td>
<td scope='row' valign=TOP class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ECMDOC.DATE_ENTERED}</td>
<td valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}" nowrap="nowrap"><slot>{ECMDOC.ASSIGNED_USER_NAME}</slot></td>
</tr>
<tr><td colspan="27" class="listViewHRS1"></td></tr>
<!-- END: row -->
{PAGINATION}
</table>
<!-- END: main -->

122
modules/EcmDocs/Popup.html Executable file
View File

@@ -0,0 +1,122 @@
<!--
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
-->
<!-- BEGIN: main -->
<!-- BEGIN: SearchHeader -->
{SET_RETURN_JS}
<script type="text/javascript">
function toggleDisplay(id){
if(this.document.getElementById( id).style.display=='none'){
this.document.getElementById( id).style.display='inline'
if(this.document.getElementById(id+"link") != undefined){
this.document.getElementById(id+"link").style.display='none';
}
}else{
this.document.getElementById( id).style.display='none'
if(this.document.getElementById(id+"link") != undefined){
this.document.getElementById(id+"link").style.display='inline';
}
}
}
</script>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="tabForm">
<tr>
<td>
<div id='divsearchform' style='display:inline'>
<form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="dataLabel" nowrap="nowrap" width="40%">{MOD.LBL_NAME}&nbsp;&nbsp;<input type="text" size="20" name="name" class="dataField" value="{NAME}" /></td>
<td width="10%" align="right">
<input type="hidden" name="action" value="Popup" />
<input type="hidden" name="query" value="true"/>
<input type="hidden" name="module" value="{MODULE_NAME}" />
<input type="hidden" name="parent_id" value="{parent_id}" />
<input type="hidden" name="parent_name" value="{parent_name}" />
<input type="submit" name="button" class="button"
title="{APP.LBL_SEARCH_BUTTON_TITLE}"
accesskey="{APP.LBL_SEARCH_BUTTON_KEY}"
value="{APP.LBL_SEARCH_BUTTON_LABEL}" />
</td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>
<!-- END: SearchHeader -->
<!-- BEGIN: SearchHeaderEnd -->
<!-- END: SearchHeaderEnd -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listView">
<!-- BEGIN: list_nav_row -->
{PAGINATION}
<!-- END: list_nav_row -->
<tr height="20">
<td scope="col" width="65%" class="listViewThS1"><a href="{ORDER_BY}name" class="listViewThLinkS1">{MOD.LBL_LIST_NAME}{arrow_start}{name_arrow}{arrow_end}</a></td>
<td scope="col" width="35%" class="listViewThS1"><a href="{ORDER_BY}assigned_user_name" class="listViewThLinkS1">{MOD.LBL_LIST_ASSIGNED_USER_ID}{arrow_start}{assigned_user_name_arrow}{arrow_end}</a></td>
</tr>
<!-- BEGIN: row -->
<tr height="20"
onmouseover="setPointer(this, '{ecmdocs.ID}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmouseout ="setPointer(this, '{ecmdocs.ID}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmousedown="setPointer(this, '{ecmdocs.ID}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
<td scope='row' class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><a href="#" onclick="set_return('{.ID}', '{ecmdocs.NAME}'); window.close();" class="listViewTdLinkS1">{ecmdocs.NAME}</a></td>
<td class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ecmdocs.ASSIGNED_USER_NAME}</td>
</tr>
<tr>
<td colspan="20" class="listViewHRS1"></td>
</tr>
<!-- END: row -->
</table>
<!-- END: main -->

131
modules/EcmDocs/Popup_picker.html Executable file
View File

@@ -0,0 +1,131 @@
<!--
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
-->
<!-- BEGIN: main -->
<!-- BEGIN: SearchHeader -->
<script type="text/javascript" src="include/JSON.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/javascript/popup_helper.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="tabForm">
<tr>
<td>
<form action="index.php" method="post" name="popup_query_form" id="the_form">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="dataLabel" nowrap="nowrap">{MOD.LBL_NAME}&nbsp;&nbsp;<input type="text" name="name" size="20" class="dataField" value="{NAME}" /></td>
<td width="20%" align="right">
<input type="hidden" name="module" value="{MODULE_NAME}" />
<input type="hidden" name="action" value="Popup" />
<input type="hidden" name="query" value="true" />
<input type="hidden" name="request_data" value="{request_data}" />
<input type="hidden" name="record_id" value="" />
<input type="submit" name="button" class="button"
title="{APP.LBL_SEARCH_BUTTON_TITLE}"
accessKey="{APP.LBL_SEARCH_BUTTON_KEY}"
value="{APP.LBL_SEARCH_BUTTON_LABEL}" />
<input type="hidden" name="mode" value="{MULTI_SELECT}" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
/* initialize the popup request from the parent */
if(window.document.forms['popup_query_form'].request_data.value == "")
{
window.document.forms['popup_query_form'].request_data.value
= JSON.stringify(window.opener.get_popup_request_data());
}
-->
</script>
<!-- END: SearchHeader -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listView">
<!-- BEGIN: list_nav_row -->
{PAGINATION}
<!-- END: list_nav_row -->
<tr height="20" class="listViewThS1">
<td scope="col" width="5%" class="listViewThS1" NOWRAP>{CHECKALL}</td>
<td scope="col" scope="col" width="35%" class="listViewThS1" NOWRAP>
<slot>
<a href="{ORDER_BY}name" class="listViewThLinkS1">{MOD.LBL_NAME}{arrow_start}{name_arrow}{arrow_end}</a>
</slot>
</td>
</tr>
<!-- BEGIN: row -->
<tr height="20"
onmouseover="setPointer(this, '{ECMDOC.ID}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmouseout="setPointer(this, '{ECMDOC.ID}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmousedown="setPointer(this, '{ECMDOC.ID}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
<td class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}" valign='top'>{PREROW}</td>
<td scope="row" valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">
<slot>
<{TAG.MAIN} href="#"
onclick="send_back('EcmDoc','{ECMDOC.ID}');"
class="listViewTdLinkS1">{ECMDOC.NAME}</{TAG.MAIN}>
</slot>
</td>
</tr>
<tr>
<td colspan="20" class="listViewHRS1"></td>
</tr>
<!-- END: row -->
</table>
{ASSOCIATED_JAVASCRIPT_DATA}
<!-- END: main -->

207
modules/EcmDocs/SearchForm.html Executable file
View File

@@ -0,0 +1,207 @@
<!--
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
-->
<!-- BEGIN: main -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="border-top: 0px none; margin-bottom: 4px" class="tabForm">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" nowrap="nowrap" class="dataLabel"><span sugar='slot1'>{MOD.LBL_NAME}</span sugar='slot'> </td>
<td width="20%" valign="top" class="dataField"><span sugar='slot1b'>
<input type="text" size="20" name="name_basic" class="dataField" value="{NAME}" />
</span sugar='slot'> </td>
<td width="15%" valign="top" class="dataLabel">{APP.LBL_CURRENT_USER_FILTER}</td>
<td width="55%" valign="top" class="dataField"><input name='current_user_only_basic' onchange='this.form.submit();' class="checkbox" type="checkbox" {current_user_only} /></td>
</tr>
<tr>
<td width="15%" class="dataLabel" valign="top">{MOD.LBL_ACCOUNT_TO}</td>
<td width="20%" valign="top" class="dataField"><input name="account_name_basic" type="text" class="dataField" id="account_name_basic" value="{ACCOUNT_NAME}" size="20" /></td>
<td valign="top" class="dataLabel">{MOD.LBL_REMINDER_DATE} </td>
<td valign="top" class="dataField">
<input name='reminder_date_basic'
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
id='jscal_fieldreminder_date'
type="text"
title="Date"
tabindex='13'
size='11'
maxlength='10'
value="{REMINDER_DATE}" />
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggerreminder_date" align="absmiddle" /> <span class="dateFormat">{USER_DATEFORMAT}</span>
<script>
mintajaxget("index.php?to_pdf=1&module=EcmDocs&action=showDate&value="+document.getElementById("jscal_fieldreminder_date").value,"jscal_fieldreminder_date");
Calendar.setup ({inputField : 'jscal_fieldreminder_date', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggerreminder_date', singleClick : true, step : 1});
</script> </td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_GROUP_NAME}</td>
<td valign="top" class="dataField"><span sugar='slot6'>
<select tabindex='2' id="group_name_basic" name="group_name_basic" class="dataField">
{GROUP_NAME}
</select>
</span sugar='slot'></td>
<td valign="top" class="dataLabel">{MOD.LBL_DATE_CREATED} </td>
<td valign="top" class="dataField"><input name='date_entered_basic'
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
id='jscal_fielddate_entered'
type="text"
title="Date"
tabindex='10'
size='11'
maxlength='10'
value="{DATE_ENTERED}" />
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggerdate_entered" align="absmiddle" /> <span class="dateFormat">{USER_DATEFORMAT}</span>
<script>
mintajaxget("index.php?to_pdf=1&module=EcmDocs&action=showDate&value="+document.getElementById("jscal_fielddate_entered").value,"jscal_fielddate_entered");
Calendar.setup ({inputField : 'jscal_fielddate_entered', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggerdate_entered', singleClick : true, step : 1});
</script></td>
</tr>
<tr>
<td class="dataLabel" valign="top">{MOD.LBL_WORTH}</td>
<td valign="top" class="dataField"><input name="value_basic" type="text" class="dataField" id="value_basic" value="{VALUE}" size="20" /></td>
<td valign="top" class="dataField">&nbsp;</td>
<td valign="top" class="dataLabel">&nbsp;</td>
</tr>
<tr> </tr>
</table></td>
</tr>
</table>
<!-- END: main -->
<!-- BEGIN: advanced -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top: 0px none; margin-bottom: 4px" class="tabForm">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="20%" valign="top" class="dataLabel"><span sugar='slot1'>{MOD.LBL_NAME}</span sugar='slot'></td>
<td width="30%" valign="top" class="dataField"><span sugar='slot1b'><input name='name' type="text" tabindex='1' size='30' maxlength='50' value="{NAME}"></span sugar='slot'></td>
<td width="20%" valign="top" class="dataLabel"><span sugar='slot2'>{APP.LBL_ASSIGNED_TO}</span sugar='slot'></td>
<td width="30%" valign="top" class="dataField"><span sugar='slot2b'><select tabindex='1' style="width: 150px" size='3' name='assigned_user_id[]' multiple="multiple">{USER_FILTER}</select></span sugar='slot'></td>
<tr>
<td class="dataLabel" valign="top">{MOD.LBL_ACCOUNT_TO}</td>
<td valign="top" class="dataField"><input name="account_name" type="text" class="dataField" id="account_name" value="{ACCOUNT_NAME}" size="30" /></td>
<td class="dataLabel" valign="top">{MOD.LBL_CONTACT_TO}</td>
<td valign="top" class="dataField"><input name="contact_name" type="text" class="dataField" id="contact_name" value="{CONTACT_NAME}" size="30" /></td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_GROUP_NAME}</td>
<td valign="top" class="dataField"><span sugar='slot6'>
<select tabindex='2' id="group_name_basic" name="group_name" class="dataField">
{GROUP_NAME}
</select>
</span sugar='slot'></td>
<td valign="top" class="dataLabel">{MOD.LBL_REMINDER_DATE} </td>
<td valign="top" class="dataField"><input name='reminder_date'
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
id='jscal_fieldreminder_date'
type="text"
title="Date"
tabindex='13'
size='11'
maxlength='10'
value="{REMINDER_DATE}" />
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggerreminder_date" align="absmiddle" /> <span class="dateFormat">{USER_DATEFORMAT}</span>
<script>
mintajaxget("index.php?to_pdf=1&module=EcmDocs&action=showDate&value="+document.getElementById("jscal_fieldreminder_date").value,"jscal_fieldreminder_date");
Calendar.setup ({inputField : 'jscal_fieldreminder_date', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggerreminder_date', singleClick : true, step : 1});
</script> </td>
</tr>
<tr>
<td class="dataLabel" valign="top">{MOD.LBL_WORTH}</td>
<td valign="top" class="dataField"><input name="value" type="text" class="dataField" id="value_basic" value="{VALUE}" size="30" /></td>
<td valign="top" class="dataLabel">{MOD.LBL_DATE_CREATED} </td>
<td valign="top" class="dataField"><input name='date_entered'
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
id='jscal_fielddate_entered'
type="text"
title="Date"
tabindex='10'
size='11'
maxlength='10'
value="{DATE_ENTERED}" />
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggerdate_entered" align="absmiddle" /> <span class="dateFormat">{USER_DATEFORMAT}</span>
<script>
mintajaxget("index.php?to_pdf=1&module=EcmDocs&action=showDate&value="+document.getElementById("jscal_fielddate_entered").value,"jscal_fielddate_entered");
Calendar.setup ({inputField : 'jscal_fielddate_entered', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggerdate_entered', singleClick : true, step : 1});
</script></td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_DESCRIPTION}</td>
<td valign="top" class="dataField"><textarea name="description" cols="25" rows="4" id="description" tabindex="`3`" title="File Name">{DESCRIPTION}</textarea></td>
<td valign="top" class="dataLabel">{MOD.LBL_DATE}</td>
<td valign="top" class="dataField"><input name='date'
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
id='jscal_fielddate'
type="text"
title="Date"
tabindex='10'
size='11'
maxlength='10'
value="{DATE}" />
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggerdate" align="absmiddle" /> <span class="dateFormat">{USER_DATEFORMAT}</span>
<script>
Calendar.setup ({inputField : 'jscal_fielddate', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggerdate', singleClick : true, step : 1});
</script></td>
</tr>
<tr>
<td valign="top" class="dataLabel">&nbsp;</td>
<td valign="top" class="dataField">&nbsp;</td>
</tr>
<tr> </tr>
</table>
</td>
</tr>
</table>
<!-- END: advanced -->

View File

@@ -0,0 +1,89 @@
<!--
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
-->
<!-- BEGIN: main -->
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="listView">
<tr height="20" >
<td scope="col" width="5%" class="listViewThS1"><slot>{MOD.LBL_LIST_NUMBER}</slot></td>
<td scope="col" width="50%" class="listViewThS1"><slot>{MOD.LBL_LIST_SUBJECT}</slot></td>
<td scope="col" width="15%" class="listViewThS1"><slot>{MOD.LBL_LIST_STATUS}</slot></td>
<td scope="col" width="5%" class="listViewThS1"><slot>&nbsp;</slot></td>
<td scope="col" width="50%" class="listViewThS1"><slot>{MOD.LBL_LIST_NAME}</slot></td>
</tr>
<!-- BEGIN: row -->
<tr height="20" onmouseover="setPointer(this, '{ECMDOCS.ID}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmouseout="setPointer(this, '{ECMDOCS.ID}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmousedown="setPointer(this, '{ECMDOCS.ID}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
<td scope='row' valign=TOP bgcolor="{BG_COLOR}" class="{ROW_COLOR}S1" ><slot>{ECMDOCS.NUMBER}</slot></td>
<td valign=TOP bgcolor="{BG_COLOR}" class="{ROW_COLOR}S1" ><slot>
<a href="{URL_PREFIX}index.php?action=DetailView&module=EcmDocs&record={ECMDOCS.ID}" class="listViewTdLinkS1">{ECMDOCS.NAME}</a></slot>
</td>
<td valign=TOP bgcolor="{BG_COLOR}" class="{ROW_COLOR}S1" ><slot>{ECMDOCS.STATUS}</slot></td>
<td nowrap align="center" valign=TOP bgcolor="{BG_COLOR}" class="{ROW_COLOR}S1" >
<slot>
<a class="listViewTdToolsS1" href="{URL_PREFIX}index.php?action=EditView&module=EcmDocs&record={ECMDOCS.ID}{RETURN_URL}">{EDIT_INLINE_PNG}</a>&nbsp;
<a class="listViewTdToolsS1" href="{URL_PREFIX}index.php?action=EditView&module=EcmDocs&record={ECMDOCS.ID}{RETURN_URL}">{APP.LNK_EDIT}</a>
</slot>
</td>
<td scope='row' valign=TOP bgcolor="{BG_COLOR}" class="{ROW_COLOR}S1" ><slot>{ECMDOCS.NAME}</slot></td>
<td valign=TOP bgcolor="{BG_COLOR}" class="{ROW_COLOR}S1" >
<slot>
<a href="{URL_PREFIX}index.php?action=DetailView&module=EcmDocs&record={ECMDOCS.ID}" class="listViewTdLinkS1">{ECMDOCS.NAME}</a>
</slot>
</td>
</tr>
<tr>
<td colspan="20" class="listViewHRS1"></td>
</tr>
<!-- END: row -->
</table>
<!-- END: main -->