Add TPL files
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,6 +7,7 @@
|
|||||||
!*.html
|
!*.html
|
||||||
!*.js
|
!*.js
|
||||||
!*.css
|
!*.css
|
||||||
|
!*.tpl
|
||||||
|
|
||||||
# ...even if they are in subdirectories
|
# ...even if they are in subdirectories
|
||||||
!*/
|
!*/
|
||||||
|
|||||||
96
ModuleInstall/PackageManager/tpls/ModuleLoaderListView.tpl
Executable file
96
ModuleInstall/PackageManager/tpls/ModuleLoaderListView.tpl
Executable file
@@ -0,0 +1,96 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
<table id='fileviewtable'>
|
||||||
|
<tr height='20'>
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
<th scope='col' width='5' nowrap="nowrap">view/hide</th>
|
||||||
|
{foreach from=$displayColumns key=colHeader item=params}
|
||||||
|
{if $params.show}
|
||||||
|
<th scope='col' width='{$params.width}%' nowrap="nowrap">
|
||||||
|
<span sugar="sugar{$colCounter}"><div style='white-space: nowrap;'width='100%' align='{$params.align|default:'left'}'>
|
||||||
|
{sugar_translate label=$params.label module='Administration'}
|
||||||
|
</div></span sugar='sugar{$colCounter}'>
|
||||||
|
</th>
|
||||||
|
{/if}
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
<th scope='col' width='5' nowrap="nowrap">Select</th>
|
||||||
|
</tr>
|
||||||
|
{foreach name=rowIteration from=$data key=package_id item=package}
|
||||||
|
{if $smarty.foreach.rowIteration.iteration is odd}
|
||||||
|
{assign var='_bgColor' value=$bgColor[0]}
|
||||||
|
{assign var='_rowColor' value=$rowColor[0]}
|
||||||
|
{else}
|
||||||
|
{assign var='_bgColor' value=$bgColor[1]}
|
||||||
|
{assign var='_rowColor' value=$rowColor[1]}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<tr id='package_tr_{$package_id}' height='20' class='{$_rowColor}S1'>
|
||||||
|
<td scope='row' align='left' valign='top'><a class="listViewTdToolsS1" onclick="PackageManager.toggle_div('{$package_id}')" valign='top'><span id='span_toggle_package_{$package_id}'><img src='{sugar_getimagepath file="advanced_search.gif"}' width='8' height='8' alt='Advanced' border='0'> </span></a></td>
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$displayColumns key=col item=params}
|
||||||
|
<td scope='row' align='{$params.align|default:'left'}' valign='top'><span sugar="sugar{$colCounter}b">
|
||||||
|
{if $params.show}
|
||||||
|
{$package.$col}
|
||||||
|
{/if}
|
||||||
|
</span sugar='sugar{$colCounter}b'>
|
||||||
|
</td>
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
<td scope='row' align='left' valign='top'><a class="listViewTdToolsS1" onclick="PackageManager.select_package('{$package_id}')" valign='top'>Select</a></td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan="5"><table id='release_table_{$package_id}' style='display:none'>
|
||||||
|
{foreach name=releaseIteration from=$package.releases key=release_id item=release}
|
||||||
|
<tr id='release_tr_{$release_id}' height='20' class='{$_rowColor}S1'>
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$secondaryDisplayColumns key=col item=params}
|
||||||
|
<td scope='row' align='{$params.align|default:'left'}' valign='top'><span sugar="sugar{$colCounter}b">
|
||||||
|
{$release.$col}
|
||||||
|
</span sugar='sugar{$colCounter}b'>
|
||||||
|
</td>
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
<td scope='row' align='left' valign='top'><a class="listViewTdToolsS1" onclick="PackageManager.select_release('{$release_id}')" valign='top'>Select</a></td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</table></td></tr>
|
||||||
|
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
</table>
|
||||||
105
ModuleInstall/PackageManager/tpls/PackageForm.tpl
Executable file
105
ModuleInstall/PackageManager/tpls/PackageForm.tpl
Executable file
@@ -0,0 +1,105 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{$scripts}
|
||||||
|
{$TREEHEADER}
|
||||||
|
{literal}
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
#demo { width:100%; }
|
||||||
|
#demo .yui-content {
|
||||||
|
padding:1em; /* pad content container */
|
||||||
|
}
|
||||||
|
.list {list-style:square;width:500px;padding-left:16px;}
|
||||||
|
.list li{padding:2px;font-size:8pt;}
|
||||||
|
|
||||||
|
/* hide the tab content while loading */
|
||||||
|
.tab-content{display:none;}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabs1 {width:100%;}
|
||||||
|
#tabs1 .yui-ext-tabbody {border:1px solid #999;border-top:none;}
|
||||||
|
#tabs1 .yui-ext-tabitembody {display:none;padding:10px;}
|
||||||
|
|
||||||
|
/* default loading indicator for ajax calls */
|
||||||
|
.loading-indicator {
|
||||||
|
font-size:8pt;
|
||||||
|
background-image:url('../../resources/images/grid/loading.gif');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: left;
|
||||||
|
padding-left:20px;
|
||||||
|
}
|
||||||
|
/* height of the rows in the grids */
|
||||||
|
.ygrid-row {
|
||||||
|
height:27px;
|
||||||
|
}
|
||||||
|
.ygrid-col {
|
||||||
|
height:27px !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{/literal}
|
||||||
|
{$INSTALLED_PACKAGES_HOLDER}
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<form action='{$form_action}' method="post" name="installForm">
|
||||||
|
<input type=hidden name="release_id">
|
||||||
|
{$hidden_fields}
|
||||||
|
<div id='server_upload_div'>
|
||||||
|
{$FORM_2_PLACE_HOLDER}
|
||||||
|
{$MODULE_SELECTOR}
|
||||||
|
<div id='search_results_div'></div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<div id='local_upload_div'>
|
||||||
|
{$FORM_1_PLACE_HOLDER}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{if $module_load == 'true'}
|
||||||
|
<div id='upload_table'>
|
||||||
|
<table width='100%'><tr><td><div id='patch_downloads' class='ygrid-mso' style='height:205px;'></div></td></tr></table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{literal}<script>
|
||||||
|
//PackageManager.toggleView('browse');
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
50
ModuleInstall/PackageManager/tpls/PackageManagerLicense.tpl
Executable file
50
ModuleInstall/PackageManager/tpls/PackageManagerLicense.tpl
Executable file
@@ -0,0 +1,50 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>{$MOD.LBL_MODULE_LICENSE}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><textarea id='license' cols='75' rows='8'>{$LICENSE_CONTENTS}</textarea></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type='radio' id='radio_license_agreement_accept' name='radio_license_agreement' value='accept'>{$MOD.LBL_ACCEPT} <input type='radio' id='radio_license_agreement_reject' name='radio_license_agreement' value='reject'>{$MOD.LBL_DENY}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<tr><td><input type='button' id='btnLicense' value='OK' onClick='PackageManager.processLicense("{$FILE}");' class='button'></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
1084
ModuleInstall/PackageManager/tpls/PackageManagerScripts.tpl
Executable file
1084
ModuleInstall/PackageManager/tpls/PackageManagerScripts.tpl
Executable file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,344 @@
|
|||||||
|
<htmlpageheader name="test">
|
||||||
|
<table style="width:100%">
|
||||||
|
<tr>
|
||||||
|
<td style="width:50%; text-align:center" rowspan="2">
|
||||||
|
<img src="upload/{$EcmSysInfo->getLogo()}" width="235px">
|
||||||
|
</td>
|
||||||
|
<td style="width:50%;background-color:#c2c2c2;text-align:center;font-size:14pt">
|
||||||
|
Faktura VAT
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:center;font-size:14pt">
|
||||||
|
<b>nr FV/{$EcmInvoiceOut->document_no}<b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
<b>Sprzedawca:</b>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
Data wystawienia: <b>{$EcmInvoiceOut->register_date}</b> Data sprzedaży: <b>{$EcmInvoiceOut->sell_date}</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;letter-spacing: 0px;">
|
||||||
|
<b>Przedsiębiorstwo Handlowo Usługowe<br>MAT INSTAL Karol Kluczewski</b>
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;letter-spacing: 0px;">
|
||||||
|
Miejsce wystawienia: <b>Toruń</b>{$duplikat}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
ul. Płocka 3, 87-100 Toruń
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
NIP: 879-155-19-52
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
www.matinstal.pl
|
||||||
|
</td>
|
||||||
|
<td style="background-color:#c2c2c2; text-align:center">
|
||||||
|
Strona: <b>{literal} {PAGENO} / {nbpg}{/literal}</b>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
Tel/fax: 56 648 40 88
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
<table style="width:100%;">
|
||||||
|
<tr>
|
||||||
|
<td style="width:52%;height: 26px;vertical-align:top;">
|
||||||
|
Bank BGŻ BNP Paribas S.A
|
||||||
|
</td>
|
||||||
|
<td style="width:48%;height: 26px;vertical-align:top;">
|
||||||
|
Nr rachunku: {$EcmInvoiceOut->bankaccount}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;height: 26px;vertical-align:top;">
|
||||||
|
<b>Nabywca:</b>
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;height: 26px;vertical-align:top;">
|
||||||
|
<b>Odbiorca:</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;height: 26px;vertical-align:top;">
|
||||||
|
<b>{$EcmInvoiceOut->parent_name}</b>
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;height: 26px;vertical-align:top;">
|
||||||
|
<b>{$EcmInvoiceOut->parent_name}</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
{$EcmInvoiceOut->parent_address_street}
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
{$EcmInvoiceOut->parent_address_street}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
{$EcmInvoiceOut->parent_address_postalcode} {$EcmInvoiceOut->parent_address_city}
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
{$EcmInvoiceOut->parent_address_postalcode} {$EcmInvoiceOut->parent_address_city}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
NIP: {$EcmInvoiceOut->parent_nip}
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
NIP: {$EcmInvoiceOut->parent_nip}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</htmlpageheader>
|
||||||
|
<sethtmlpageheader name="test" value="on" show-this-page="1" page="ALL"/>
|
||||||
|
|
||||||
|
<htmlpagefooter name="test2">
|
||||||
|
<table style="width:100%">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" style="font-size:16">
|
||||||
|
<b>Razem do zapłaty:</b>
|
||||||
|
</td>
|
||||||
|
<td style="text-align:right;font-size:16" colspan="2">
|
||||||
|
<b>{$EcmInvoiceOut->total_brutto|number_format:2:",":" "} {$EcmInvoiceOut->currency_id}</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=4 style="text-align:right">
|
||||||
|
<i>Słownie: {$slownieKwota}</i>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left">Zapłacono:</td>
|
||||||
|
<td style="text-align:center">{$EcmInvoiceOut->paid_val|number_format:2:",":" "} {assign var="Currency_id" value=$EcmInvoiceOut->currency_id}
|
||||||
|
{$APP_LIST_STRINGS.currency_dom.$Currency_id}</td>
|
||||||
|
<td style="text-align:center">Pozostało do zapłaty:</td>
|
||||||
|
<td style="text-align:right">{$EcmInvoiceOut->total_brutto-$EcmInvoiceOut->paid_val|number_format:2:",":" "} {assign var="Currency_id" value=$EcmInvoiceOut->currency_id}
|
||||||
|
{$APP_LIST_STRINGS.currency_dom.$Currency_id}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4" style="padding=0;margin:0;"><hr style="color:#c2c2c2;padding=0;margin:0;"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table style="width:100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:center;"><b>{$EcmInvoiceOut->assigned_user_name}</b></td>
|
||||||
|
<td style="text-align:center;"></td>
|
||||||
|
<td style="text-align:center;"></td>
|
||||||
|
<td style="text-align:center;"></td>
|
||||||
|
<td style="text-align:center;"></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="width:27%;text-align:center;border-top: 1px solid #c2c2c2;font-size:10">Podpis osoby uprawnionej do wystawienia faktury</td>
|
||||||
|
<td style="width:10%;text-align:center"></td>
|
||||||
|
<td style="width:20%;text-align:center;border-top: 1px solid #c2c2c2;font-size:10">Data odbioru</td>
|
||||||
|
<td style="width:10%;text-align:center"></td>
|
||||||
|
<td style="width:27%;text-align:center;border-top: 1px solid #c2c2c2;font-size:10">Podpis osoby uprawnionej do obioru faktury</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</htmlpagefooter>
|
||||||
|
<sethtmlpagefooter name="test2" value="on" show-this-page="1" page="ALL"/>
|
||||||
|
|
||||||
|
<table style="width:100%;border: none; border-collapse: collapse;font-size:11">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:4%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Lp.
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:36%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;text-align:left">
|
||||||
|
Nazwa towaru/usługi
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:8%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Ilość
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:8%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;text-align:center">
|
||||||
|
J.m.
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:5%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;text-align:center">
|
||||||
|
VAT
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:12%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Cena netto
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:12%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;text-align:center">
|
||||||
|
Wartość netto
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{foreach from=$EcmInvoiceOut->position_list item=positon}
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
{$positon.position+1}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: left;">
|
||||||
|
{$positon.name}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right;">
|
||||||
|
{$positon.quantity|number_format:4:",":" "}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
{$positon.unit_name}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
{$positon.ecmvat_name}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right;">
|
||||||
|
{$positon.price_netto|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right;">
|
||||||
|
{$positon.total_netto|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
<table style="width:100%;border: none; border-collapse: collapse;font-size:11">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td style="width:40%;"></td>
|
||||||
|
<td style="width:10%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Waluta
|
||||||
|
</td>
|
||||||
|
<td style="width:5%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:left">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style="width:5%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:right">
|
||||||
|
Stawka
|
||||||
|
</td>
|
||||||
|
<td style="width:10%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:right">
|
||||||
|
Netto
|
||||||
|
</td>
|
||||||
|
<td style="width:15%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:right">
|
||||||
|
VAT
|
||||||
|
</td>
|
||||||
|
<td style="width:15%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:right">
|
||||||
|
Brutto
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style=></td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
{assign var="Currency_id" value=$EcmInvoiceOut->currency_id}
|
||||||
|
{$APP_LIST_STRINGS.currency_dom.$Currency_id}
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:left">
|
||||||
|
Razem:
|
||||||
|
</td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
<b>{$EcmInvoiceOut->total_netto|number_format:2:",":" "}</b>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
<b>{$EcmInvoiceOut->total_vat|number_format:2:",":" "}</b>
|
||||||
|
</td>
|
||||||
|
<td style="text-align:right">
|
||||||
|
<b>{$EcmInvoiceOut->total_brutto|number_format:2:",":" "}</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{foreach from=$EcmInvoiceOut->vats_summary item=vat_row name=vat_pozycje}
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
{if $smarty.foreach.vat_pozycje.iteration eq 1}
|
||||||
|
W tym:
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
{$vat_row.0}
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
{$vat_row.1|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
{$vat_row.2|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
<td style="text-align:right">
|
||||||
|
{$vat_row.3|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br><br>
|
||||||
|
<table style="width:50%;border: none; border-collapse: collapse;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td style="background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Forma płatności
|
||||||
|
</td>
|
||||||
|
<td style="background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Termin
|
||||||
|
</td>
|
||||||
|
<td style="background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Kwota
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style=" text-align:center">
|
||||||
|
{$EcmInvoiceOut->payment_method}
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:center">
|
||||||
|
{$EcmInvoiceOut->payment_date}
|
||||||
|
</td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
{$EcmInvoiceOut->total_brutto|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div style="padding:5px;width:100%;border: 1px solid #c2c2c2">
|
||||||
|
Uwagi:
|
||||||
|
<br><br>
|
||||||
|
{$EcmInvoiceOut->pdf_text}
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,344 @@
|
|||||||
|
<htmlpageheader name="test">
|
||||||
|
<table style="width:100%">
|
||||||
|
<tr>
|
||||||
|
<td style="width:50%; text-align:center" rowspan="2">
|
||||||
|
<img src="upload/{$EcmSysInfo->getLogo()}" width="235px">
|
||||||
|
</td>
|
||||||
|
<td style="width:50%;background-color:#c2c2c2;text-align:center;font-size:14pt">
|
||||||
|
Faktura VAT
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:center;font-size:14pt">
|
||||||
|
<b>nr FV/{$EcmInvoiceOut->document_no}<b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
<b>Sprzedawca:</b>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
Data wystawienia: <b>{$EcmInvoiceOut->register_date}</b> Data sprzedaży: <b>{$EcmInvoiceOut->sell_date}</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;letter-spacing: 0px;">
|
||||||
|
<b>Przedsiębiorstwo Handlowo Usługowe<br>MAT INSTAL Karol Kluczewski</b>
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;letter-spacing: 0px;">
|
||||||
|
Miejsce wystawienia: <b>Toruń</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
ul. Płocka 3, 87-100 Toruń
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
NIP: 879-155-19-52
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
www.matinstal.pl
|
||||||
|
</td>
|
||||||
|
<td style="background-color:#c2c2c2; text-align:center">
|
||||||
|
Strona: <b>{literal} {PAGENO} / {nbpg}{/literal}</b>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
Tel/fax: 56 648 40 88
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br><br><br>
|
||||||
|
|
||||||
|
<table style="width:100%;">
|
||||||
|
<tr>
|
||||||
|
<td style="width:52%;height: 26px;vertical-align:top;">
|
||||||
|
Bank BGŻ BNP Paribas S.A
|
||||||
|
</td>
|
||||||
|
<td style="width:48%;height: 26px;vertical-align:top;">
|
||||||
|
Nr rachunku: {$EcmInvoiceOut->bankaccount}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;height: 26px;vertical-align:top;">
|
||||||
|
<b>Nabywca:</b>
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;height: 26px;vertical-align:top;">
|
||||||
|
<b>Odbiorca:</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;height: 26px;vertical-align:top;">
|
||||||
|
<b>{$EcmInvoiceOut->parent_name}</b>
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;height: 26px;vertical-align:top;">
|
||||||
|
<b>{$EcmInvoiceOut->parent_name}</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
{$EcmInvoiceOut->parent_address_street}
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
{$EcmInvoiceOut->parent_address_street}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
{$EcmInvoiceOut->parent_address_postalcode} {$EcmInvoiceOut->parent_address_city}
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
{$EcmInvoiceOut->parent_address_postalcode} {$EcmInvoiceOut->parent_address_city}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
NIP: {$EcmInvoiceOut->parent_nip}
|
||||||
|
</td>
|
||||||
|
<td style="padding:2px;">
|
||||||
|
NIP: {$EcmInvoiceOut->parent_nip}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</htmlpageheader>
|
||||||
|
<sethtmlpageheader name="test" value="on" show-this-page="1" page="ALL"/>
|
||||||
|
|
||||||
|
<htmlpagefooter name="test2">
|
||||||
|
<table style="width:100%">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" style="font-size:16">
|
||||||
|
<b>Razem do zapłaty:</b>
|
||||||
|
</td>
|
||||||
|
<td style="text-align:right;font-size:16" colspan="2">
|
||||||
|
<b>{$EcmInvoiceOut->total_brutto|number_format:2:",":" "} {$EcmInvoiceOut->currency_id}</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=4 style="text-align:right">
|
||||||
|
<i>Słownie: {$slownieKwota}</i>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left">Zapłacono:</td>
|
||||||
|
<td style="text-align:center">{$EcmInvoiceOut->paid_val|number_format:2:",":" "} {assign var="Currency_id" value=$EcmInvoiceOut->currency_id}
|
||||||
|
{$APP_LIST_STRINGS.currency_dom.$Currency_id}</td>
|
||||||
|
<td style="text-align:center">Pozostało do zapłaty:</td>
|
||||||
|
<td style="text-align:right">{$EcmInvoiceOut->total_brutto-$EcmInvoiceOut->paid_val|number_format:2:",":" "} {assign var="Currency_id" value=$EcmInvoiceOut->currency_id}
|
||||||
|
{$APP_LIST_STRINGS.currency_dom.$Currency_id}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4" style="padding=0;margin:0;"><hr style="color:#c2c2c2;padding=0;margin:0;"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table style="width:100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:center;"><b>{$EcmInvoiceOut->assigned_user_name}</b></td>
|
||||||
|
<td style="text-align:center;"></td>
|
||||||
|
<td style="text-align:center;"></td>
|
||||||
|
<td style="text-align:center;"></td>
|
||||||
|
<td style="text-align:center;"></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="width:27%;text-align:center;border-top: 1px solid #c2c2c2;font-size:10">Podpis osoby uprawnionej do wystawienia faktury</td>
|
||||||
|
<td style="width:10%;text-align:center"></td>
|
||||||
|
<td style="width:20%;text-align:center;border-top: 1px solid #c2c2c2;font-size:10">Data odbioru</td>
|
||||||
|
<td style="width:10%;text-align:center"></td>
|
||||||
|
<td style="width:27%;text-align:center;border-top: 1px solid #c2c2c2;font-size:10">Podpis osoby uprawnionej do obioru faktury</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</htmlpagefooter>
|
||||||
|
<sethtmlpagefooter name="test2" value="on" show-this-page="1" page="ALL"/>
|
||||||
|
|
||||||
|
<table style="width:100%;border: none; border-collapse: collapse;font-size:11">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:4%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Lp.
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:36%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;text-align:left">
|
||||||
|
Nazwa towaru/usługi
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:8%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Ilość
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:8%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;text-align:center">
|
||||||
|
J.m.
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:5%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;text-align:center">
|
||||||
|
VAT
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:12%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Cena netto
|
||||||
|
</td>
|
||||||
|
<td style="padding:3px;vertical-align:middle;background-color:#c2c2c2; width:12%;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;text-align:center">
|
||||||
|
Wartość netto
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{foreach from=$EcmInvoiceOut->position_list item=positon}
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
{$positon.position+1}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: left;">
|
||||||
|
{$positon.name}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right;">
|
||||||
|
{$positon.quantity|number_format:4:",":" "}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
{$positon.unit_name}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
{$positon.ecmvat_name}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right;">
|
||||||
|
{$positon.price_netto|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right;">
|
||||||
|
{$positon.total_netto|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
<table style="width:100%;border: none; border-collapse: collapse;font-size:11">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td style="width:40%;"></td>
|
||||||
|
<td style="width:10%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Waluta
|
||||||
|
</td>
|
||||||
|
<td style="width:5%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:left">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style="width:5%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:right">
|
||||||
|
Stawka
|
||||||
|
</td>
|
||||||
|
<td style="width:10%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:right">
|
||||||
|
Netto
|
||||||
|
</td>
|
||||||
|
<td style="width:15%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:right">
|
||||||
|
VAT
|
||||||
|
</td>
|
||||||
|
<td style="width:15%;background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:right">
|
||||||
|
Brutto
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style=></td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
{assign var="Currency_id" value=$EcmInvoiceOut->currency_id}
|
||||||
|
{$APP_LIST_STRINGS.currency_dom.$Currency_id}
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:left">
|
||||||
|
Razem:
|
||||||
|
</td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
<b>{$EcmInvoiceOut->total_netto|number_format:2:",":" "}</b>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
<b>{$EcmInvoiceOut->total_vat|number_format:2:",":" "}</b>
|
||||||
|
</td>
|
||||||
|
<td style="text-align:right">
|
||||||
|
<b>{$EcmInvoiceOut->total_brutto|number_format:2:",":" "}</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{foreach from=$EcmInvoiceOut->vats_summary item=vat_row name=vat_pozycje}
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
{if $smarty.foreach.vat_pozycje.iteration eq 1}
|
||||||
|
W tym:
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
{$vat_row.0}
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
{$vat_row.1|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:right">
|
||||||
|
{$vat_row.2|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
<td style="text-align:right">
|
||||||
|
{$vat_row.3|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br><br>
|
||||||
|
<table style="width:50%;border: none; border-collapse: collapse;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td style="background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Forma płatności
|
||||||
|
</td>
|
||||||
|
<td style="background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Termin
|
||||||
|
</td>
|
||||||
|
<td style="background-color:#c2c2c2;border-left: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2; text-align:center">
|
||||||
|
Kwota
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style=" text-align:center">
|
||||||
|
{$EcmInvoiceOut->payment_method}
|
||||||
|
</td>
|
||||||
|
<td style=" text-align:center">
|
||||||
|
{$EcmInvoiceOut->payment_date}
|
||||||
|
</td>
|
||||||
|
<td style="text-align:center">
|
||||||
|
{$EcmInvoiceOut->total_brutto|number_format:2:",":" "}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div style="padding:5px;width:100%;border: 1px solid #c2c2c2">
|
||||||
|
Uwagi:
|
||||||
|
<br><br>
|
||||||
|
{$EcmInvoiceOut->pdf_text}
|
||||||
|
</div>
|
||||||
|
|
||||||
59
import/EcmPriceBooks/tpls/QuickCreate.tpl
Normal file
59
import/EcmPriceBooks/tpls/QuickCreate.tpl
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
|
||||||
|
<form name="ecmpricebooksQuickCreate" id="ecmpricebooksQuickCreate" method="POST" action="index.php">
|
||||||
|
<input type="hidden" name="module" value="EcmPriceBooks">
|
||||||
|
|
||||||
|
<input type="hidden" name="return_action" value="{$REQUEST.return_action}">
|
||||||
|
<input type="hidden" name="return_module" value="{$REQUEST.return_module}">
|
||||||
|
<input type="hidden" name="return_id" value="{$REQUEST.return_id}">
|
||||||
|
<input type="hidden" name="action" value='Save'>
|
||||||
|
<input type="hidden" name="duplicate_parent_id" value="{$REQUEST.duplicate_parent_id}">
|
||||||
|
<input type="hidden" name="to_pdf" value='1'>
|
||||||
|
<input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{$ASSIGNED_USER_ID}" />
|
||||||
|
|
||||||
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||||
|
<tr>
|
||||||
|
<td align="left" style="padding-bottom: 2px;">
|
||||||
|
<input title= "{$APP.LBL_SAVE_BUTTON_TITLE}"
|
||||||
|
accessKey= "{$APP.LBL_SAVE_BUTTON_KEY}"
|
||||||
|
class= "button"
|
||||||
|
type= "submit"
|
||||||
|
name= "button" {$saveOnclick|default:"onclick=\"return check_form('EcmPriceBooksQuickCreate');\""} value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
|
||||||
|
<input title= "{$APP.LBL_CANCEL_BUTTON_TITLE}"
|
||||||
|
accessKey= "{$APP.LBL_CANCEL_BUTTON_KEY}"
|
||||||
|
class= "button"
|
||||||
|
type= "submit"
|
||||||
|
name= "button" {$cancelOnclick|default:"onclick=\"this.form.action.value='$RETURN_ACTION'; this.form.module.value='$RETURN_MODULE'; this.form.record.value='$RETURN_ID'\""}
|
||||||
|
value= " {$APP.LBL_CANCEL_BUTTON_LABEL} ">
|
||||||
|
<input title= "{$APP.LBL_FULL_FORM_BUTTON_TITLE}"
|
||||||
|
accessKey= "{$APP.LBL_FULL_FORM_BUTTON_KEY}"
|
||||||
|
class= "button"
|
||||||
|
type= "submit"
|
||||||
|
name= "button"
|
||||||
|
onclick= "this.form.to_pdf.value='0';this.form.action.value='EditView'; this.form.module.value='EcmPriceBooks';"
|
||||||
|
value= " {$APP.LBL_FULL_FORM_BUTTON_LABEL} ">
|
||||||
|
</td>
|
||||||
|
<td align="right" nowrap>
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{$APP.NTC_REQUIRED}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabForm">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tr>
|
||||||
|
<th align="left" class="dataLabel" colspan="4">
|
||||||
|
<h4 class="dataLabel"><slot>{$MOD.LBL_ECMPRICEBOOK_INFORMATION}</slot></h4>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td valign="top" class="dataLabel" width="15%"><slot>{$MOD.LBL_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
|
||||||
|
<td width="35%"><slot><textarea name='name' cols="40" tabindex='1' rows="1">{$NAME}</textarea></slot></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<script>
|
||||||
|
{$additionalScripts}
|
||||||
|
</script>
|
||||||
173
include/CreateView/CreateView.tpl
Executable file
173
include/CreateView/CreateView.tpl
Executable file
@@ -0,0 +1,173 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
|
||||||
|
{{include file=$headerTpl}}
|
||||||
|
{sugar_include include=$includes}
|
||||||
|
|
||||||
|
<div id="{{$form_name}}_tabs"{{if $useTabs}} class="yui-navset"{{/if}}>
|
||||||
|
{{if $useTabs}}
|
||||||
|
{* Generate the Tab headers *}
|
||||||
|
{{counter name="tabCount" start=-1 print=false assign="tabCount"}}
|
||||||
|
<ul class="yui-nav">
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{counter name="tabCount" print=false}}
|
||||||
|
<li class="selected"><a id="tab{{$tabCount}}" href="#tab{{$tabCount}}"><em>{sugar_translate label='{{$label}}' module='{{$module}}'}</em></a></li>
|
||||||
|
{{/foreach}}
|
||||||
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
<div {{if $useTabs}}class="yui-content"{{/if}}>
|
||||||
|
{{* Loop through all top level panels first *}}
|
||||||
|
{{counter name="panelCount" start=-1 print=false assign="panelCount"}}
|
||||||
|
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{counter name="panelCount" print=false}}
|
||||||
|
|
||||||
|
{{* Print out the table data *}}
|
||||||
|
<div id="{{$label}}">
|
||||||
|
{counter name="panelFieldCount" start=0 print=false assign="panelFieldCount"}
|
||||||
|
{{* Check to see if the panel variable is an array, if not, we'll attempt an include with type param php *}}
|
||||||
|
{{* See function.sugar_include.php *}}
|
||||||
|
{{if !is_array($panel)}}
|
||||||
|
{sugar_include type='php' file='{{$panel}}'}
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="{$def.templateMeta.panelClass|default:'edit view'}">
|
||||||
|
{{* Only show header if it is not default or an int value *}}
|
||||||
|
{{if !empty($label) && !is_int($label) && $label != 'DEFAULT' && !$useTabs && $showSectionPanelsTitles}}
|
||||||
|
<tr>
|
||||||
|
<th align="left" colspan="8">
|
||||||
|
<h4>{sugar_translate label='{{$label}}' module='{{$module}}'}</h4>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
{{assign var='rowCount' value=0}}
|
||||||
|
{{foreach name=rowIteration from=$panel key=row item=rowData}}
|
||||||
|
<tr>
|
||||||
|
{{assign var='columnsInRow' value=$rowData|@count}}
|
||||||
|
{{assign var='columnsUsed' value=0}}
|
||||||
|
|
||||||
|
{{* Loop through each column and display *}}
|
||||||
|
{{counter name="colCount" start=0 print=false assign="colCount"}}
|
||||||
|
|
||||||
|
{{foreach name=colIteration from=$rowData key=col item=colData}}
|
||||||
|
|
||||||
|
{{counter name="colCount" print=false}}
|
||||||
|
{{math assign="tabIndex" equation="$panelCount * $maxColumns + $colCount"}}
|
||||||
|
{{if count($rowData) == $colCount}}
|
||||||
|
{{assign var="colCount" value=0}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if empty($def.templateMeta.labelsOnTop) && empty($colData.field.hideLabel)}}
|
||||||
|
<td valign="top" id='{{$colData.field.name}}_label' width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope="row">
|
||||||
|
{{if isset($colData.field.customLabel)}}
|
||||||
|
{{$colData.field.customLabel}}
|
||||||
|
{{elseif isset($colData.field.label)}}
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{/if}}
|
||||||
|
{{* Show the required symbol if field is required, but override not set. Or show if override is set *}}
|
||||||
|
{{if ($fields[$colData.field.name].required && !isset($colData.field.displayParams.required)) ||
|
||||||
|
(isset($colData.field.displayParams.required) && $colData.field.displayParams.required && $fields[$colData.field.name].required !== false)}}
|
||||||
|
<span class="required">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
<td valign="top" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].field}}%' {{if $colData.colspan}}colspan='{{$colData.colspan}}'{{/if}}>
|
||||||
|
{{if !empty($def.templateMeta.labelsOnTop)}}
|
||||||
|
{{if isset($colData.field.label)}}
|
||||||
|
{{if !empty($colData.field.label)}}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}:
|
||||||
|
{{/if}}
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}:
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{* Show the required symbol if field is required, but override not set. Or show if override is set *}}
|
||||||
|
{{if ($fields[$colData.field.name].required && (!isset($colData.field.displayParams.required) || $colData.field.displayParams.required)) ||
|
||||||
|
(isset($colData.field.displayParams.required) && $colData.field.displayParams.required)}}
|
||||||
|
<span class="required">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
|
||||||
|
{{/if}}
|
||||||
|
{{if !isset($colData.field.label) || !empty($colData.field.label)}}
|
||||||
|
<br>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $fields[$colData.field.name] && !empty($colData.field.fields) }}
|
||||||
|
{{foreach from=$colData.field.fields item=subField}}
|
||||||
|
{{if $fields[$subField.name]}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$colData.field.tabindex vardef=$fields[$subField.name] displayType='EditView' displayParams=$subField.displayParams formName=$form_name}}
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{elseif !empty($colData.field.customCode)}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_evalcolumn var=$colData.field.customCode colData=$colData tabindex=$colData.field.tabindex}}
|
||||||
|
{{elseif $fields[$colData.field.name]}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{$colData.displayParams}}
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$colData.field.tabindex vardef=$fields[$colData.field.name] displayType='EditView' displayParams=$colData.field.displayParams typeOverride=$colData.field.type formName=$form_name}}
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
</tr>
|
||||||
|
{{/foreach}}
|
||||||
|
</table>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{if $panelFieldCount == 0}
|
||||||
|
<script>document.getElementById("{{$label}}").style.display='none';</script>
|
||||||
|
{/if}
|
||||||
|
{{/foreach}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{include file=$footerTpl}}
|
||||||
|
|
||||||
|
{{if $useTabs}}
|
||||||
|
<script type="text/javascript" src="include/javascript/sugar_grp_yui_widgets.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var {{$form_name}}_tabs = new YAHOO.widget.TabView("{{$form_name}}_tabs");
|
||||||
|
{{$form_name}}_tabs.selectTab(0);
|
||||||
|
</script>
|
||||||
|
{{/if}}
|
||||||
37
include/CreateView/QuickCreate.tpl
Executable file
37
include/CreateView/QuickCreate.tpl
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{include file="/include/EditView/EditView.tpl"}}
|
||||||
61
include/CreateView/footer.tpl
Executable file
61
include/CreateView/footer.tpl
Executable file
@@ -0,0 +1,61 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{if empty($form.button_location) || $form.button_location == 'bottom'}}
|
||||||
|
<div class="buttons">
|
||||||
|
{{if !empty($form) && !empty($form.buttons)}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{sugar_button module="$module" id="$button" view="$view"}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{else}}
|
||||||
|
{{sugar_button module="$module" id="SAVE" view="$view"}}
|
||||||
|
{{sugar_button module="$module" id="CANCEL" view="$view"}}
|
||||||
|
{{/if}}
|
||||||
|
{{sugar_button module="$module" id="Audit" view="$view"}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</form>
|
||||||
|
{{if $externalJSFile}}
|
||||||
|
require_once("'".$externalJSFile."'");
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{$set_focus_block}
|
||||||
|
|
||||||
|
{{if isset($scriptBlocks)}}
|
||||||
|
<!-- Begin Meta-Data Javascript -->
|
||||||
|
{{$scriptBlocks}}
|
||||||
|
<!-- End Meta-Data Javascript -->
|
||||||
|
{{/if}}
|
||||||
82
include/Dashlets/DashletGenericChartConfigure.tpl
Executable file
82
include/Dashlets/DashletGenericChartConfigure.tpl
Executable file
@@ -0,0 +1,82 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||||
|
<input type='hidden' name='id' value='{$id}'>
|
||||||
|
<input type='hidden' name='module' value='{$module}'>
|
||||||
|
<input type='hidden' name='action' value='DynamicAction'>
|
||||||
|
<input type='hidden' name='DynamicAction' value='configureDashlet'>
|
||||||
|
<input type='hidden' name='to_pdf' value='true'>
|
||||||
|
<input type='hidden' name='configure' value='true'>
|
||||||
|
<input type='hidden' id='dashletType' name='dashletType' value='{$dashletType}' />
|
||||||
|
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
|
||||||
|
<tr>
|
||||||
|
<td scope='row'>
|
||||||
|
{$title}
|
||||||
|
</td>
|
||||||
|
<td colspan='3'>
|
||||||
|
<input type='text' name='dashletTitle' value='{$dashletTitle}'>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
{foreach name=searchIteration from=$searchFields key=name item=params}
|
||||||
|
<td scope='row' valign='top'>
|
||||||
|
{$params.label}
|
||||||
|
</td>
|
||||||
|
<td valign='top' style='padding-bottom: 5px'>
|
||||||
|
{$params.input}
|
||||||
|
</td>
|
||||||
|
{if ($smarty.foreach.searchIteration.iteration is even) and $smarty.foreach.searchIteration.iteration != $smarty.foreach.searchIteration.last}
|
||||||
|
</tr><tr>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan='4' align='right'>
|
||||||
|
<input type='submit' class='button' value='{$save}'>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
44
include/Dashlets/DashletGenericChartScript.tpl
Executable file
44
include/Dashlets/DashletGenericChartScript.tpl
Executable file
@@ -0,0 +1,44 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
SUGAR.mySugar.addToChartsArray('{$chartName}', '{$chartXMLFile}', '100%', '480', '{$chartStyleCSS}', '{$chartColorsXML}', '{$chartStringsXML}');
|
||||||
|
</script>
|
||||||
123
include/Dashlets/DashletGenericConfigure.tpl
Executable file
123
include/Dashlets/DashletGenericConfigure.tpl
Executable file
@@ -0,0 +1,123 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<form action='index.php' id='configure_{$id}' method='post' onSubmit='SUGAR.mySugar.setChooser(); return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||||
|
<input type='hidden' name='id' value='{$id}'>
|
||||||
|
<input type='hidden' name='module' value='Home'>
|
||||||
|
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||||
|
<input type='hidden' name='configure' value='true'>
|
||||||
|
<input type='hidden' name='to_pdf' value='true'>
|
||||||
|
<input type='hidden' id='displayColumnsDef' name='displayColumnsDef' value=''>
|
||||||
|
<input type='hidden' id='hideTabsDef' name='hideTabsDef' value=''>
|
||||||
|
<input type='hidden' id='dashletType' name='dashletType' value='' />
|
||||||
|
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
|
||||||
|
<tr>
|
||||||
|
<td scope='row'colspan='4' align='left'>
|
||||||
|
<h2>{$strings.general}</h2>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td scope='row'>
|
||||||
|
{$strings.title}
|
||||||
|
</td>
|
||||||
|
<td colspan='3'>
|
||||||
|
<input type='text' name='dashletTitle' value='{$dashletTitle}'>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td scope='row'>
|
||||||
|
{$strings.displayRows}
|
||||||
|
</td>
|
||||||
|
<td colspan='3'>
|
||||||
|
<select name='displayRows'>
|
||||||
|
{html_options values=$displayRowOptions output=$displayRowOptions selected=$displayRowSelect}
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan='4' align='center'>
|
||||||
|
<table border='0' cellpadding='0' cellspacing='0'>
|
||||||
|
<tr><td>
|
||||||
|
{$columnChooser}
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td scope='row'colspan='4' align='left'>
|
||||||
|
<br>
|
||||||
|
<h2>{$strings.filters}</h2>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{if $showMyItemsOnly}
|
||||||
|
<tr>
|
||||||
|
<td scope='row'>
|
||||||
|
{$strings.myItems}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type='checkbox' {if $myItemsOnly == 'true'}checked{/if} name='myItemsOnly' value='true'>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
<tr>
|
||||||
|
{foreach name=searchIteration from=$searchFields key=name item=params}
|
||||||
|
<td scope='row' valign='top'>
|
||||||
|
{$params.label}
|
||||||
|
</td>
|
||||||
|
<td valign='top' style='padding-bottom: 5px'>
|
||||||
|
{$params.input}
|
||||||
|
</td>
|
||||||
|
{if ($smarty.foreach.searchIteration.iteration is even) and $smarty.foreach.searchIteration.iteration != $smarty.foreach.searchIteration.last}
|
||||||
|
</tr><tr>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan='4' align='right'>
|
||||||
|
<input type='submit' class='button' value='{$strings.save}'>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
203
include/Dashlets/DashletGenericDisplay.tpl
Executable file
203
include/Dashlets/DashletGenericDisplay.tpl
Executable file
@@ -0,0 +1,203 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding='0' cellspacing='0' width='100%' border='0' class='list view'>
|
||||||
|
<tr class="pagination">
|
||||||
|
<td colspan='{$colCount+1}' align='right'>
|
||||||
|
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
||||||
|
<tr>
|
||||||
|
<td align='left'> </td>
|
||||||
|
<td align='right' nowrap='nowrap'>
|
||||||
|
{if $pageData.urls.startPage}
|
||||||
|
<!--<a href='#' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.startPage}")' ><img src='{sugar_getimagepath file="start.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' width='14' height='13'> {$navStrings.start}</a> -->
|
||||||
|
<button title='{$navStrings.start}' class='button' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.startPage}")'>
|
||||||
|
<img src='{sugar_getimagepath file='start.png'}' alt='{$navStrings.start}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{else}
|
||||||
|
<!--<img src='{sugar_getimagepath file="start_off.png"}' alt='{$navStrings.start}' align='absmiddle' border='0'> {$navStrings.start} -->
|
||||||
|
<button title='{$navStrings.start}' class='button' disabled>
|
||||||
|
<img src='{sugar_getimagepath file='start_off.png'}' alt='{$navStrings.start}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{/if}
|
||||||
|
{if $pageData.urls.prevPage}
|
||||||
|
<!--<a href='#' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.prevPage}")' ><img src='{sugar_getimagepath file="previous.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' width='8' height='13'> {$navStrings.previous}</a> -->
|
||||||
|
<button title='{$navStrings.previous}' class='button' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.prevPage}")'>
|
||||||
|
<img src='{sugar_getimagepath file='previous.png'}' alt='{$navStrings.previous}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{else}
|
||||||
|
<!--<img src='{sugar_getimagepath file="previous_off.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' width='8' height='13'> {$navStrings.previous} -->
|
||||||
|
<button class='button' disabled title='{$navStrings.previous}'>
|
||||||
|
<img src='{sugar_getimagepath file='previous_off.png'}' alt='{$navStrings.previous}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
<span class='pageNumbers'>({if $pageData.offsets.lastOffsetOnPage == 0}0{else}{$pageData.offsets.current+1}{/if} - {$pageData.offsets.lastOffsetOnPage} {$navStrings.of} {if $pageData.offsets.totalCounted}{$pageData.offsets.total}{else}{$pageData.offsets.total}{if $pageData.offsets.lastOffsetOnPage != $pageData.offsets.total}+{/if}{/if})</span>
|
||||||
|
{if $pageData.urls.nextPage}
|
||||||
|
<!-- <a href='#' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.nextPage}")' >{$navStrings.next} <img src='{sugar_getimagepath file="next.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' width='8' height='13'></a> -->
|
||||||
|
<button title='{$navStrings.next}' class='button' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.nextPage}")'>
|
||||||
|
<img src='{sugar_getimagepath file='next.png'}' alt='{$navStrings.next}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{else}
|
||||||
|
<!-- {$navStrings.next} <img src='{sugar_getimagepath file="next_off.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' width='8' height='13'>-->
|
||||||
|
<button class='button' title='{$navStrings.next}' disabled>
|
||||||
|
<img src='{sugar_getimagepath file='next_off.png'}' alt='{$navStrings.next}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{/if}
|
||||||
|
{if $pageData.urls.endPage && $pageData.offsets.total != $pageData.offsets.lastOffsetOnPage}
|
||||||
|
<!--<a href='#' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.endPage}")' >{$navStrings.end} <img src='{sugar_getimagepath file="end.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' width='14' height='13'></a></td>-->
|
||||||
|
<button title='{$navStrings.end}' class='button' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.endPage}")'>
|
||||||
|
<img src='{sugar_getimagepath file='end.png'}' alt='{$navStrings.end}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{elseif !$pageData.offsets.totalCounted || $pageData.offsets.total == $pageData.offsets.lastOffsetOnPage}
|
||||||
|
<!-- {$navStrings.end} <img src='{sugar_getimagepath file="end_off.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' width='14' height='13'>-->
|
||||||
|
<button class='button' disabled title='{$navStrings.end}'>
|
||||||
|
<img src='{sugar_getimagepath file='end_off.png'}' alt='{$navStrings.end}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr height='20'>
|
||||||
|
{foreach from=$displayColumns key=colHeader item=params}
|
||||||
|
<th scope='col' width='{$params.width}%' nowrap="nowrap">
|
||||||
|
<div style='white-space: nowrap;'width='100%' align='{$params.align|default:'left'}'>
|
||||||
|
{if $params.sortable|default:true}
|
||||||
|
<a href='#' onclick='return SUGAR.mySugar.retrieveDashlet("{$dashletId}", "{$pageData.urls.orderBy}{$params.orderBy|default:$colHeader|lower}&sugar_body_only=1&id={$dashletId}")' class='listViewThLinkS1'>{sugar_translate label=$params.label module=$pageData.bean.moduleDir}</a>
|
||||||
|
{if $params.orderBy|default:$colHeader|lower == $pageData.ordering.orderBy}
|
||||||
|
{if $pageData.ordering.sortOrder == 'ASC'}
|
||||||
|
{capture assign="imageName"}arrow_down.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{else}
|
||||||
|
{capture assign="imageName"}arrow_up.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{capture assign="imageName"}arrow.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{sugar_translate label=$params.label module=$pageData.bean.moduleDir}
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
{/foreach}
|
||||||
|
{if !empty($quickViewLinks)}
|
||||||
|
<th scope='col' nowrap="nowrap" width='1%'> </th>
|
||||||
|
{/if}
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{foreach name=rowIteration from=$data key=id item=rowData}
|
||||||
|
{if $smarty.foreach.rowIteration.iteration is odd}
|
||||||
|
{assign var='_rowColor' value=$rowColor[0]}
|
||||||
|
{else}
|
||||||
|
{assign var='_rowColor' value=$rowColor[1]}
|
||||||
|
{/if}
|
||||||
|
<tr height='20' class='{$_rowColor}S1'>
|
||||||
|
{if $prerow}
|
||||||
|
<td width='1%' nowrap='nowrap'>
|
||||||
|
<input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='{$rowData[$params.id]|default:$rowData.ID}'>
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$displayColumns key=col item=params}
|
||||||
|
<td scope='row' align='{$params.align|default:'left'}' valign=top class='{$_rowColor}S1' bgcolor='{$_bgColor}'><span sugar="sugar{$colCounter}b">
|
||||||
|
{if $params.link && !$params.customCode}
|
||||||
|
<{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN} href='index.php?action={$params.action|default:'DetailView'}&module={if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$params.module|default:$pageData.bean.moduleDir}{/if}&record={$rowData[$params.id]|default:$rowData.ID}&offset={$pageData.offsets.current+$smarty.foreach.rowIteration.iteration}&stamp={$pageData.stamp}'>{$rowData.$col}</{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN}>
|
||||||
|
{elseif $params.customCode}
|
||||||
|
{sugar_evalcolumn_old var=$params.customCode rowData=$rowData}
|
||||||
|
{elseif $params.currency_format}
|
||||||
|
{sugar_currency_format
|
||||||
|
var=$rowData.$col
|
||||||
|
round=$params.currency_format.round
|
||||||
|
decimals=$params.currency_format.decimals
|
||||||
|
symbol=$params.currency_format.symbol
|
||||||
|
convert=$params.currency_format.convert
|
||||||
|
currency_symbol=$params.currency_format.currency_symbol
|
||||||
|
}
|
||||||
|
{elseif $params.type == 'bool'}
|
||||||
|
<input type='checkbox' disabled=disabled class='checkbox'
|
||||||
|
{if !empty($rowData[$col])}
|
||||||
|
checked=checked
|
||||||
|
{/if}
|
||||||
|
/>
|
||||||
|
{elseif $params.type == 'multienum'}
|
||||||
|
{if !empty($rowData.$col)}
|
||||||
|
{counter name="oCount" assign="oCount" start=0}
|
||||||
|
{multienum_to_array string=$rowData.$col assign="vals"}
|
||||||
|
{foreach from=$vals item=item}
|
||||||
|
{counter name="oCount"}
|
||||||
|
{if !empty($item)}{sugar_translate label=$params.options select=$item}{if $oCount != count($vals)}, {/if}{/if}
|
||||||
|
{/foreach}
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{$rowData.$col}
|
||||||
|
{/if}
|
||||||
|
</span sugar='sugar{$colCounter}b'></td>
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
{if !empty($quickViewLinks)}
|
||||||
|
<td width='1%' class='{$_rowColor}S1' bgcolor='{$_bgColor}' nowrap>
|
||||||
|
{if $pageData.access.edit}
|
||||||
|
<a title='{$editLinkString}' href='index.php?action=EditView&module={$params.module|default:$pageData.bean.moduleDir}&record={$rowData[$params.parent_id]|default:$rowData.ID}&offset={$pageData.offsets.current+$smarty.foreach.rowIteration.iteration}&stamp={$pageData.stamp}&return_module=Home&return_action=index'><img border="0" src="{sugar_getimagepath file="edit_inline.png"}"></a>
|
||||||
|
{/if}
|
||||||
|
{if $pageData.access.view}
|
||||||
|
<a title='{$viewLinkString}' href='index.php?action=DetailView&module={$params.module|default:$pageData.bean.moduleDir}&record={$rowData[$params.parent_id]|default:$rowData.ID}&offset={$pageData.offsets.current+$smarty.foreach.rowIteration.iteration}&stamp={$pageData.stamp}&return_module=Home&return_action=index'><img border="0" src="{sugar_getimagepath file="view_inline.png"}"></a>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
</tr>
|
||||||
|
{foreachelse}
|
||||||
|
<tr height='20' class='{$rowColor[0]}S1'>
|
||||||
|
<td colspan="{$colCount}">
|
||||||
|
<em>{$APP.LBL_NO_DATA}</em>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
142
include/DetailView/DetailView.tpl
Executable file
142
include/DetailView/DetailView.tpl
Executable file
@@ -0,0 +1,142 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{include file=$headerTpl}}
|
||||||
|
{sugar_include include=$includes}
|
||||||
|
<div id="{{$module}}_detailview_tabs"
|
||||||
|
{{if $useTabs}}
|
||||||
|
class="yui-navset detailview_tabs"
|
||||||
|
{{/if}}
|
||||||
|
>
|
||||||
|
{{if $useTabs}}
|
||||||
|
{* Generate the Tab headers *}
|
||||||
|
{{counter name="tabCount" start=-1 print=false assign="tabCount"}}
|
||||||
|
<ul class="yui-nav">
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{counter name="tabCount" print=false}}
|
||||||
|
<li><a id="tab{{$tabCount}}" href="#tab{{$tabCount}}"><em>{sugar_translate label='{{$label}}' module='{{$module}}'}</em></a></li>
|
||||||
|
{{/foreach}}
|
||||||
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
<div {{if $useTabs}}class="yui-content"{{/if}}>
|
||||||
|
{{* Loop through all top level panels first *}}
|
||||||
|
{{counter name="panelCount" print=false start=0 assign="panelCount"}}
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{assign var='panel_id' value=$panelCount}}
|
||||||
|
<div id='{{$label}}' class='detail view'>
|
||||||
|
{counter name="panelFieldCount" start=0 print=false assign="panelFieldCount"}
|
||||||
|
{{* Print out the panel title if one exists*}}
|
||||||
|
|
||||||
|
{{* Check to see if the panel variable is an array, if not, we'll attempt an include with type param php *}}
|
||||||
|
{{* See function.sugar_include.php *}}
|
||||||
|
{{if !is_array($panel)}}
|
||||||
|
{sugar_include type='php' file='{{$panel}}'}
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
{{if !empty($label) && !is_int($label) && $label != 'DEFAULT' && !$useTabs}}
|
||||||
|
<h4>{sugar_translate label='{{$label}}' module='{{$module}}'}</h4>
|
||||||
|
{{/if}}
|
||||||
|
{{* Print out the table data *}}
|
||||||
|
<table id='detailpanel_{{$smarty.foreach.section.iteration}}' cellspacing='{$gridline}'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{foreach name=rowIteration from=$panel key=row item=rowData}}
|
||||||
|
<tr>
|
||||||
|
{{assign var='columnsInRow' value=$rowData|@count}}
|
||||||
|
{{assign var='columnsUsed' value=0}}
|
||||||
|
{{foreach name=colIteration from=$rowData key=col item=colData}}
|
||||||
|
<td width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope="row">
|
||||||
|
{{if isset($colData.field.customLabel)}}
|
||||||
|
{{$colData.field.customLabel}}
|
||||||
|
{{elseif isset($colData.field.label) && strpos($colData.field.label, '$')}}
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
{{$colData.field.label}}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{elseif isset($colData.field.label)}}
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
<td width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].field}}%' {{if $colData.colspan}}colspan='{{$colData.colspan}}'{{/if}}>
|
||||||
|
{{if $colData.field.customCode || $colData.field.assign}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_evalcolumn var=$colData.field colData=$colData}}
|
||||||
|
{{elseif $fields[$colData.field.name] && !empty($colData.field.fields) }}
|
||||||
|
{{foreach from=$colData.field.fields item=subField}}
|
||||||
|
{{if $fields[$subField]}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$tabIndex vardef=$fields[$subField] displayType='DetailView'}}
|
||||||
|
{{else}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{$subField}}
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{elseif $fields[$colData.field.name]}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_field parentFieldArray='fields' vardef=$fields[$colData.field.name] displayType='DetailView' displayParams=$colData.field.displayParams typeOverride=$colData.field.type}}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
{{/foreach}}
|
||||||
|
</tr>
|
||||||
|
{{/foreach}}
|
||||||
|
</table>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{if $panelFieldCount == 0}
|
||||||
|
|
||||||
|
<script>document.getElementById("{{$label}}").style.display='none';</script>
|
||||||
|
{/if}
|
||||||
|
{{/foreach}}
|
||||||
|
</div></div>
|
||||||
|
{{include file=$footerTpl}}
|
||||||
|
{{if $useTabs}}
|
||||||
|
<script type="text/javascript" src="include/javascript/sugar_grp_yui_widgets.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var {{$module}}_detailview_tabs = new YAHOO.widget.TabView("{{$module}}_detailview_tabs");
|
||||||
|
{{$module}}_detailview_tabs.selectTab(0);
|
||||||
|
</script>
|
||||||
|
{{/if}}
|
||||||
37
include/DetailView/footer.tpl
Executable file
37
include/DetailView/footer.tpl
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
</form>
|
||||||
114
include/DetailView/header.tpl
Executable file
114
include/DetailView/header.tpl
Executable file
@@ -0,0 +1,114 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{* Add the preForm code if it is defined (used for vcards) *}}
|
||||||
|
{{if $preForm}}
|
||||||
|
{{$preForm}}
|
||||||
|
{{/if}}
|
||||||
|
<table cellpadding="1" cellspacing="0" border="0" width="100%" class="actionsContainer">
|
||||||
|
<tr>
|
||||||
|
<td class="buttons" align="left" NOWRAP>
|
||||||
|
<form action="index.php" method="post" name="DetailView" id="form">
|
||||||
|
<input type="hidden" name="module" value="{$module}">
|
||||||
|
<input type="hidden" name="record" value="{$fields.id.value}">
|
||||||
|
<input type="hidden" name="return_action">
|
||||||
|
<input type="hidden" name="return_module">
|
||||||
|
<input type="hidden" name="return_id">
|
||||||
|
<input type="hidden" name="module_tab">
|
||||||
|
<input type="hidden" name="isDuplicate" value="false">
|
||||||
|
<input type="hidden" name="offset" value="{$offset}">
|
||||||
|
<input type="hidden" name="action" value="EditView">
|
||||||
|
{{if isset($form.hidden)}}
|
||||||
|
{{foreach from=$form.hidden item=field}}
|
||||||
|
{{$field}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if !isset($form.buttons)}}
|
||||||
|
{{sugar_button module="$module" id="EDIT" view="$view"}}
|
||||||
|
{{sugar_button module="$module" id="DUPLICATE" view="EditView"}}
|
||||||
|
{{sugar_button module="$module" id="DELETE" view="$view"}}
|
||||||
|
{{else}}
|
||||||
|
{{counter assign="num_buttons" start=0 print=false}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{if !is_array($button) && in_array($button, $built_in_buttons)}}
|
||||||
|
{{counter print=false}}
|
||||||
|
{{sugar_button module="$module" id="$button" view="EditView"}}
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{if isset($closeFormBeforeCustomButtons)}}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
{{if count($form.buttons) > $num_buttons}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{if is_array($button) && $button.customCode}}
|
||||||
|
<td class="buttons" align="left" NOWRAP>
|
||||||
|
{{sugar_button module="$module" id="$button" view="EditView"}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
{{if !isset($closeFormBeforeCustomButtons)}}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
{{if empty($form.hideAudit) || !$form.hideAudit}}
|
||||||
|
<td class="buttons" align="left" NOWRAP>
|
||||||
|
{{sugar_button module="$module" id="Audit" view="EditView"}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
<td align="right" width="100%">{$ADMIN_EDIT}
|
||||||
|
{{if $panelCount == 0}}
|
||||||
|
{{* Render tag for VCR control if SHOW_VCR_CONTROL is true *}}
|
||||||
|
{{if $SHOW_VCR_CONTROL}}
|
||||||
|
{$PAGINATION}
|
||||||
|
{{/if}}
|
||||||
|
{{counter name="panelCount" print=false}}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
{{* Add $form.links if they are defined *}}
|
||||||
|
{{if !empty($form) && isset($form.links)}}
|
||||||
|
<td align="right" width="10%"> </td>
|
||||||
|
<td align="right" width="100%" NOWRAP>
|
||||||
|
{{foreach from=$form.links item=link}}
|
||||||
|
{{$link}}
|
||||||
|
{{/foreach}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
51
include/ECM/EcmDropdownEditor/EditView.tpl
Executable file
51
include/ECM/EcmDropdownEditor/EditView.tpl
Executable file
@@ -0,0 +1,51 @@
|
|||||||
|
<style type="text/css">
|
||||||
|
{literal}
|
||||||
|
.inputVal {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
.dropdowneditor_error {
|
||||||
|
background-color : #CC0000;
|
||||||
|
}
|
||||||
|
{/literal}
|
||||||
|
</style>
|
||||||
|
<div name="EcmDropdownEditor" style="position: absolute; background: rgb(246,246,246); border: 1px solid rgb(171,195,215); padding: 2 2 2 2; z-index: 100;">
|
||||||
|
{sugar_translate label='LBL_DROPDOWNEDITOR' module='Home'}<br>
|
||||||
|
{foreach from=$DROPDOWNS item=DOM key=NAME}
|
||||||
|
<button type="button" class="button" value="" onclick="EcmDropdownEditor_addOption('{$NAME}')">
|
||||||
|
<img src="themes/default/images/id-ff-add.png"</img>
|
||||||
|
</button>
|
||||||
|
<input type="button" class="button" value="{sugar_translate label='LBL_SAVE' module='Home'}" onclick="EcmDropdownEditor_save('{$NAME}', '{$CONTAINER}')"/>
|
||||||
|
<input type="button" class="button" value="{sugar_translate label='LBL_CANCEL' module='Home'}" onclick="EcmDropdownEditor_cancel('{$CONTAINER}')"/>
|
||||||
|
<br>
|
||||||
|
<div name="{$NAME}">
|
||||||
|
{foreach from=$DOM item=VAL key=KEY}
|
||||||
|
<div name="{$KEY}">
|
||||||
|
<img src="themes/Sugar5/images/delete.gif" style="cursor: pointer;" onclick="$(this).parent().remove();"></img>
|
||||||
|
<img src="themes/Sugar5/images/arrow_up.gif" style="cursor: pointer;" onclick="EcmDropdownEditor_moveElementUp(this);"></img>
|
||||||
|
<img src="themes/Sugar5/images/arrow_down.gif" style="cursor: pointer;" onclick="EcmDropdownEditor_moveElementDown(this);"></img><br>
|
||||||
|
{assign var="showed" value="0"}
|
||||||
|
{foreach from=$VAL item=I key=L}
|
||||||
|
|
||||||
|
|
||||||
|
{if $NAME=='ecmproducts_unit_dom'}
|
||||||
|
|
||||||
|
<input class="inputVal" name="{$L}" value="{$I}"/>
|
||||||
|
( {$LANGUAGES[$L]} )<br>
|
||||||
|
{if $NAME=='ecmproducts_unit_dom' && $showed==0}
|
||||||
|
<input class="inputVal" name="precision" value="{$PRECISION[$KEY]}"/>
|
||||||
|
( Precyzja )<br>
|
||||||
|
{assign var="showed" value="1"}
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
|
||||||
|
<input class="inputVal" name="{$L}" value="{$I}"/>
|
||||||
|
( {$LANGUAGES[$L]} )<br>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
<br>
|
||||||
|
</div> <!-- End: $KEY -->
|
||||||
|
{/foreach}
|
||||||
|
<span name="eoo"></span> <!-- mark end of option -->
|
||||||
|
</div> <!-- End: $NAME -->
|
||||||
|
{/foreach}
|
||||||
|
</div> <!-- End: EcmDropdownEditor -->
|
||||||
8
include/ECM/EcmDropdownEditor/addOption.tpl
Executable file
8
include/ECM/EcmDropdownEditor/addOption.tpl
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
<div name="{$KEY}">
|
||||||
|
{foreach from=$LANGUAGES key=ID item=VAL}
|
||||||
|
|
||||||
|
<input class="inputVal" name="{$ID}" value=""/>
|
||||||
|
( {$VAL} )<br>
|
||||||
|
{/foreach}
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
4
include/ECM/EcmDropdownEditor/createOptions.tpl
Executable file
4
include/ECM/EcmDropdownEditor/createOptions.tpl
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
{foreach from=$OPTIONS key=ID item=VAL}
|
||||||
|
<option value="{$ID}" label="{$VAL}">{$VAL}</option>
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
21
include/ECM/EcmSendPdfButton/EcmSendPdfButton.tpl
Executable file
21
include/ECM/EcmSendPdfButton/EcmSendPdfButton.tpl
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
<script src="include/ECM/EcmSendPdfButton/EcmSendPdfButton.js"></script>
|
||||||
|
<script src="include/ECM/comboselectbox.js"></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="include/ECM/EcmSendPdfButton/EcmSendPdfButton.css">
|
||||||
|
<input title="Wyślij Email" class="button" onclick="{literal}if($('#div_send').css('display') == 'none'){$('#div_send').show('slow'); }
|
||||||
|
else { $('#div_send').hide('slow'); }{/literal}" type="button" name="sendpdf" id="sendpdf" value="Email">
|
||||||
|
<div id="div_send" style="border: 1px solid #cccccc;background:#e6e6e6;padding:5px;position:absolute;display:none;">
|
||||||
|
Wybierz email:
|
||||||
|
<select name="addr_email" id="addr_email" style="width:250px;">
|
||||||
|
{foreach from=$EMAILLIST item=email}
|
||||||
|
<option value="{$email}">{$email}</option>
|
||||||
|
{/foreach}
|
||||||
|
</select>
|
||||||
|
{if !empty($PDF_OPT)}
|
||||||
|
{$PDF_OPT}
|
||||||
|
{/if}
|
||||||
|
<br>Treść:<br>
|
||||||
|
<textarea id="textarea" rows="7" style="width:250px;">
|
||||||
|
{$text}
|
||||||
|
</textarea><br>
|
||||||
|
<input name="cat_xls" id="cat_xls" title="Wyślij Email" accessKey="" class="button"
|
||||||
|
onclick="{literal}sendMailAjax(getSendPdfOpt());{/literal}" type="button" value="Wyślij Email"><br /><br /></div>
|
||||||
357
include/ECM/EcmViews/DetailView/Tabs/DetailView.tpl
Executable file
357
include/ECM/EcmViews/DetailView/Tabs/DetailView.tpl
Executable file
@@ -0,0 +1,357 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
|
||||||
|
* the terms of the GNU General Public License version 3 as published by the
|
||||||
|
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
|
||||||
|
* details.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* You should have received a copy of the GNU General Public License along with
|
||||||
|
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
|
||||||
|
* 02110-1301 USA.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
|
||||||
|
* Section 5 of the GNU General Public License version 3.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||||
|
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
{{include file="include/ECM/EcmViews/DetailView/Tabs/header.tpl"}}
|
||||||
|
|
||||||
|
{sugar_include include=$includes}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{* Render tag for VCR control if SHOW_VCR_CONTROL is true *}}
|
||||||
|
|
||||||
|
{{if $SHOW_VCR_CONTROL}}
|
||||||
|
|
||||||
|
<table width='100%' border='0' style="border-bottom:0px;" cellspacing='{$gridline}' cellpadding='0' class='tabDetailView'>
|
||||||
|
|
||||||
|
{$PAGINATION}
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{literal}
|
||||||
|
|
||||||
|
<script language="javascript">
|
||||||
|
|
||||||
|
var SelectedTab = "";
|
||||||
|
|
||||||
|
function SetTab(tab_name) {
|
||||||
|
|
||||||
|
var TabMenu = document.getElementById('groupTabsPanels');
|
||||||
|
|
||||||
|
var tabs = TabMenu.getElementsByTagName('li');
|
||||||
|
|
||||||
|
for(i=0;i<tabs.length;i++) {
|
||||||
|
|
||||||
|
if((tab_name+'_menu') === tabs[i].id) {
|
||||||
|
|
||||||
|
tabs[i].className = 'active';
|
||||||
|
|
||||||
|
tabs[i].getElementsByTagName('a')[0].className = 'current';
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
tabs[i].className = '';
|
||||||
|
|
||||||
|
tabs[i].getElementsByTagName('a')[0].className = '';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var prev = document.getElementById(SelectedTab);
|
||||||
|
|
||||||
|
var curr = document.getElementById(tab_name);
|
||||||
|
|
||||||
|
prev.style.display = 'none';
|
||||||
|
|
||||||
|
curr.style.display = '';
|
||||||
|
|
||||||
|
SelectedTab = tab_name;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{/literal}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul class="subpanelTablist" style="margin-top:10px;" id="groupTabsPanels">
|
||||||
|
|
||||||
|
{{counter name="panelCount" start=-1 print=false assign="panelCount"}}
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{counter name="panelCount" print=false}}
|
||||||
|
|
||||||
|
{{assign var='tab_label' value=$label|replace:"LBL_":""|replace:"_TAB":""}}
|
||||||
|
<li class="{{if $panelCount == 0}}active{{/if}}" id="panel_{{$tab_label}}_menu">
|
||||||
|
|
||||||
|
<script language="javascript">
|
||||||
|
var set{{$tab_label}} = function() {literal} { {/literal} SetTab('panel_{{$tab_label}}'); {literal} }; {/literal}
|
||||||
|
{{if $panelCount == 0}}SelectedTab='panel_{{$tab_label}}';{{/if}}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<a class="{{if $panelCount == 0}}current{{/if}}" href="javascript:set{{$tab_label}}();">{sugar_translate label='{{$label}}' module='{{$module}}'}</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{* Loop through all top level panels first *}}
|
||||||
|
|
||||||
|
{{counter name="panelCount" print=false start=0 assign="panelCount"}}
|
||||||
|
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
|
||||||
|
{{assign var='panel_id' value=$panelCount}}
|
||||||
|
|
||||||
|
{{assign var='tab_label' value=$label|replace:"LBL_":""|replace:"_TAB":""}}
|
||||||
|
|
||||||
|
<div {{if $panelCount > 0}}style="display:none"{{/if}} id='panel_{{$tab_label}}'>
|
||||||
|
|
||||||
|
{counter name="panelFieldCount" start=0 print=false assign="panelFieldCount"}
|
||||||
|
|
||||||
|
{{* Print out the panel title if one exists*}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{* Check to see if the panel variable is an array, if not, we'll attempt an include with type param php *}}
|
||||||
|
|
||||||
|
{{* See function.sugar_include.php *}}
|
||||||
|
|
||||||
|
{{if !is_array($panel)}}
|
||||||
|
|
||||||
|
{sugar_include type='php' file='{{$panel}}'}
|
||||||
|
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
{{if !empty($label) && !is_int($label) && $label != 'DEFAULT'}}
|
||||||
|
|
||||||
|
<h4 class="dataLabel">{sugar_translate label='{{$label}}' module='{{$module}}'}</h4><br>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{* Print out the table data *}}
|
||||||
|
|
||||||
|
<table width='100%' border='0' style="border-top:0px" cellspacing='{$gridline}' cellpadding='0' class='tabDetailView'>
|
||||||
|
|
||||||
|
{{* Only show header if it is not default or an int value *}}
|
||||||
|
|
||||||
|
{{if !empty($label) && !is_int($label) && $label != 'DEFAULT'}}
|
||||||
|
|
||||||
|
<th class="tabDetailViewDF" align="left" colspan="8">
|
||||||
|
|
||||||
|
<h4>{sugar_translate label='{{$label|replace:"_TAB":""}}' module='{{$module}}'}</h4>
|
||||||
|
|
||||||
|
</th>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $panelCount == 0}}
|
||||||
|
|
||||||
|
{{counter name="panelCount" print=false}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{foreach name=rowIteration from=$panel key=row item=rowData}}
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
{{assign var='columnsInRow' value=$rowData|@count}}
|
||||||
|
|
||||||
|
{{assign var='columnsUsed' value=0}}
|
||||||
|
|
||||||
|
{{foreach name=colIteration from=$rowData key=col item=colData}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{if $colData.field.allCols == false}}
|
||||||
|
|
||||||
|
<td width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' class='tabDetailViewDL' NOWRAP>
|
||||||
|
|
||||||
|
{{if isset($colData.field.customLabel)}}
|
||||||
|
|
||||||
|
{{$colData.field.customLabel}}
|
||||||
|
|
||||||
|
{{elseif isset($colData.field.label) && strpos($colData.field.label, '$')}}
|
||||||
|
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
|
||||||
|
{{$colData.field.label}}
|
||||||
|
|
||||||
|
{/capture}
|
||||||
|
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
|
||||||
|
{{elseif isset($colData.field.label)}}
|
||||||
|
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
|
||||||
|
|
||||||
|
{/capture}
|
||||||
|
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
|
||||||
|
|
||||||
|
{/capture}
|
||||||
|
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<td width='{{if $colData.field.allCols == true}}100{{else}}{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].field}}{{/if}}%' class='tabDetailViewDF' {{if $colData.field.allCols == true}}colspan='4'{{else}}{{if $colData.colspan}}colspan='{{$colData.colspan}}'{{/if}}{{/if}}>
|
||||||
|
|
||||||
|
{{if $colData.field.customCode || $colData.field.assign}}
|
||||||
|
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
|
||||||
|
{{sugar_evalcolumn var=$colData.field colData=$colData}}
|
||||||
|
|
||||||
|
{{elseif $fields[$colData.field.name] && !empty($colData.field.fields) }}
|
||||||
|
|
||||||
|
{{foreach from=$colData.field.fields item=subField}}
|
||||||
|
|
||||||
|
{{if $fields[$subField]}}
|
||||||
|
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$tabIndex vardef=$fields[$subField] displayType='detailView'}}
|
||||||
|
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
|
||||||
|
{{$subField}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
{{elseif $fields[$colData.field.name]}}
|
||||||
|
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
|
||||||
|
{{sugar_field parentFieldArray='fields' vardef=$fields[$colData.field.name] displayType='detailView' displayParams=$colData.field.displayParams typeOverride=$colData.field.type}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
{{include file="include/ECM/EcmViews/DetailView/Tabs/footer.tpl"}}
|
||||||
|
|
||||||
37
include/ECM/EcmViews/DetailView/Tabs/footer.tpl
Executable file
37
include/ECM/EcmViews/DetailView/Tabs/footer.tpl
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
</form>
|
||||||
106
include/ECM/EcmViews/DetailView/Tabs/header.tpl
Executable file
106
include/ECM/EcmViews/DetailView/Tabs/header.tpl
Executable file
@@ -0,0 +1,106 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{* Add the preForm code if it is defined (used for vcards) *}}
|
||||||
|
{{if $preForm}}
|
||||||
|
{{$preForm}}
|
||||||
|
{{/if}}
|
||||||
|
<div id="sendreturn" style="display:none;"></div>
|
||||||
|
<table cellpadding="1" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="padding-bottom: 2px;" align="left" NOWRAP>
|
||||||
|
<form action="index.php" method="post" name="DetailView" id="form">
|
||||||
|
<input type="hidden" name="module" value="{$module}">
|
||||||
|
<input type="hidden" name="record" value="{$fields.id.value}">
|
||||||
|
<input type="hidden" name="return_action">
|
||||||
|
<input type="hidden" name="return_module">
|
||||||
|
<input type="hidden" name="return_id">
|
||||||
|
<input type="hidden" name="isDuplicate" value="false">
|
||||||
|
<input type="hidden" name="offset" value="{$offset}">
|
||||||
|
<input type="hidden" name="action" value="EditView">
|
||||||
|
{{if isset($form.hidden)}}
|
||||||
|
{{foreach from=$form.hidden item=field}}
|
||||||
|
{{$field}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if !isset($form.buttons)}}
|
||||||
|
<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='{$module}'; this.form.return_action.value='DetailView'; this.form.return_id.value='{$id}'; this.form.action.value='EditView'" type="submit" name="Edit" id='edit_button' 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='{$module}'; 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} " id='duplicate_button'>
|
||||||
|
<input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='{$module}'; this.form.return_action.value='ListView'; this.form.action.value='Delete'; return confirm('{$APP.NTC_DELETE_CONFIRMATION}')" type="submit" name="Delete" value=" {$APP.LBL_DELETE_BUTTON_LABEL} " >
|
||||||
|
{{else}}
|
||||||
|
{{counter assign="num_buttons" start=0 print=false}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{if !is_array($button) && in_array($button, $built_in_buttons)}}
|
||||||
|
{{counter print=false}}
|
||||||
|
{{sugar_button module="$module" id="$button" view="EditView"}}
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{if isset($closeFormBeforeCustomButtons)}}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
{{if count($form.buttons) > $num_buttons}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{if is_array($button) && $button.customCode}}
|
||||||
|
<td style="padding-bottom: 2px;" align="left" NOWRAP>
|
||||||
|
{{sugar_button module="$module" id="$button" view="EditView"}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
{{if !isset($closeFormBeforeCustomButtons)}}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
{{if empty($form.hideAudit) || !$form.hideAudit}}
|
||||||
|
<td style="padding-bottom: 2px;" align="left" NOWRAP>
|
||||||
|
{{sugar_button module="$module" id="Audit" view="EditView"}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
<td align="right" width="100%">{$ADMIN_EDIT}</td>
|
||||||
|
{{* Add $form.links if they are defined *}}
|
||||||
|
{{if !empty($form) && isset($form.links)}}
|
||||||
|
<td align="right" width="10%"> </td>
|
||||||
|
<td align="right" width="100%" NOWRAP>
|
||||||
|
{{foreach from=$form.links item=link}}
|
||||||
|
{{$link}}
|
||||||
|
{{/foreach}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
419
include/ECM/EcmViews/EditView/Tabs/EditView.tpl
Executable file
419
include/ECM/EcmViews/EditView/Tabs/EditView.tpl
Executable file
@@ -0,0 +1,419 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
|
||||||
|
* the terms of the GNU General Public License version 3 as published by the
|
||||||
|
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
|
||||||
|
* details.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* You should have received a copy of the GNU General Public License along with
|
||||||
|
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
|
||||||
|
* 02110-1301 USA.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
|
||||||
|
* Section 5 of the GNU General Public License version 3.
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||||
|
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{literal}
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
|
||||||
|
.dataLabel { padding: 2px; }
|
||||||
|
|
||||||
|
.dataField { padding: 2px; }
|
||||||
|
|
||||||
|
.tabEditViewDF { padding: 2px; }
|
||||||
|
|
||||||
|
td .dataLabel { padding: 2px; }
|
||||||
|
|
||||||
|
td .dataField { padding: 2px; }
|
||||||
|
|
||||||
|
td .tabEditViewDF { padding: 2px; }
|
||||||
|
|
||||||
|
.tabForm { border-top:none; }
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
{/literal}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{include file='include/ECM/EcmViews/EditView/Tabs/header.tpl'}}
|
||||||
|
|
||||||
|
{sugar_include include=$includes}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0" class='tabDetailView' id='tabFormPagination'>
|
||||||
|
|
||||||
|
{{if $panelCount == 0}}
|
||||||
|
|
||||||
|
{{* Render tag for VCR control if SHOW_VCR_CONTROL is true *}}
|
||||||
|
|
||||||
|
{{if $SHOW_VCR_CONTROL}}
|
||||||
|
|
||||||
|
{$PAGINATION}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{literal}
|
||||||
|
|
||||||
|
<script language="javascript">
|
||||||
|
|
||||||
|
var SelectedTab = "";
|
||||||
|
var TabsMainBlock = false;
|
||||||
|
|
||||||
|
function SetTab(tab_name) {
|
||||||
|
|
||||||
|
if(TabsMainBlock) return;
|
||||||
|
|
||||||
|
var TabMenu = document.getElementById('groupTabsPanels');
|
||||||
|
|
||||||
|
var tabs = TabMenu.getElementsByTagName('li');
|
||||||
|
|
||||||
|
for(i=0;i<tabs.length;i++) {
|
||||||
|
|
||||||
|
if((tab_name+'_menu') === tabs[i].id) {
|
||||||
|
|
||||||
|
tabs[i].className = 'active';
|
||||||
|
|
||||||
|
tabs[i].getElementsByTagName('a')[0].className = 'current';
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
tabs[i].className = '';
|
||||||
|
|
||||||
|
tabs[i].getElementsByTagName('a')[0].className = '';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var prev = document.getElementById(SelectedTab);
|
||||||
|
|
||||||
|
var curr = document.getElementById(tab_name);
|
||||||
|
|
||||||
|
prev.style.display = 'none';
|
||||||
|
|
||||||
|
curr.style.display = '';
|
||||||
|
|
||||||
|
SelectedTab = tab_name;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{/literal}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul class="subpanelTablist" style="margin-top:10px;" id="groupTabsPanels">
|
||||||
|
|
||||||
|
{{counter name="panelCount" start=-1 print=false assign="panelCount"}}
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{counter name="panelCount" print=false}}
|
||||||
|
|
||||||
|
{{assign var='tab_label' value=$label|replace:"LBL_":""|replace:"_TAB":""}}
|
||||||
|
<li class="{{if $panel[0][0].field.active}}active{{/if}}" id="{{$tab_label}}_menu">
|
||||||
|
|
||||||
|
<script language="javascript">
|
||||||
|
|
||||||
|
var set{{$tab_label}} = function() {literal} { {/literal} SetTab('{{$tab_label}}'); {literal} }; {/literal}
|
||||||
|
{{if $panelCount == 0}}SelectedTab='{{$tab_label}}';{{/if}}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<a class="{{if $panelCount == 0}}current{{/if}}" href="javascript:set{{$tab_label}}();">{sugar_translate label='{{$label}}' module='{{$module}}'}</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{* Loop through all top level panels first *}}
|
||||||
|
|
||||||
|
{{counter name="panelCount" start=-1 print=false assign="panelCount"}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
|
||||||
|
{{counter name="panelCount" print=false}}
|
||||||
|
|
||||||
|
{{assign var='tab_label' value=$label|replace:"LBL_":""|replace:"_TAB":""}}
|
||||||
|
|
||||||
|
|
||||||
|
{{* Print out the table data *}}
|
||||||
|
|
||||||
|
|
||||||
|
<div id="{{$tab_label}}" style="display:{{if $panelCount > 0}}none{{/if}};">
|
||||||
|
|
||||||
|
{counter name="panelFieldCount" start=0 print=false assign="panelFieldCount"}
|
||||||
|
|
||||||
|
{{* Check to see if the panel variable is an array, if not, we'll attempt an include with type param php *}}
|
||||||
|
|
||||||
|
{{* See function.sugar_include.php *}}
|
||||||
|
|
||||||
|
{{if !is_array($panel)}}
|
||||||
|
|
||||||
|
{sugar_include type='php' file='{{$panel}}'}
|
||||||
|
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="{$def.templateMeta.panelClass|default:tabForm}">
|
||||||
|
|
||||||
|
{{* Only show header if it is not default or an int value *}}
|
||||||
|
|
||||||
|
{{if !empty($label) && !is_int($label) && $label != 'DEFAULT'}}
|
||||||
|
|
||||||
|
<th class="dataLabel" align="left" colspan="8">
|
||||||
|
|
||||||
|
<h4>{sugar_translate label='{{$label|replace:"_TAB":""}}' module='{{$module}}'}</h4>
|
||||||
|
|
||||||
|
</th>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{assign var='rowCount' value=0}}
|
||||||
|
|
||||||
|
{{foreach name=rowIteration from=$panel key=row item=rowData}}
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{assign var='columnsInRow' value=$rowData|@count}}
|
||||||
|
|
||||||
|
{{assign var='columnsUsed' value=0}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{* Loop through each column and display *}}
|
||||||
|
|
||||||
|
{{counter name="colCount" start=0 print=false assign="colCount"}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{foreach name=colIteration from=$rowData key=col item=colData}}
|
||||||
|
|
||||||
|
{{counter name="colCount" print=false}}
|
||||||
|
|
||||||
|
{{math assign="tabIndex" equation="$panelCount * $maxColumns + $colCount"}}
|
||||||
|
|
||||||
|
{{if count($rowData) == $colCount}}
|
||||||
|
|
||||||
|
{{assign var="colCount" value=0}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{if empty($def.templateMeta.labelsOnTop) && empty($colData.field.hideLabel)}}
|
||||||
|
|
||||||
|
<td valign="top" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' class="dataLabel" NOWRAP>
|
||||||
|
|
||||||
|
{{if isset($colData.field.customLabel)}}
|
||||||
|
|
||||||
|
{{$colData.field.customLabel}}
|
||||||
|
|
||||||
|
{{elseif isset($colData.field.label)}}
|
||||||
|
|
||||||
|
{capture name="label" assign="label}
|
||||||
|
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
|
||||||
|
|
||||||
|
{/capture}
|
||||||
|
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
|
||||||
|
{capture name="label" assign="label}
|
||||||
|
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
|
||||||
|
|
||||||
|
{/capture}
|
||||||
|
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{* Show the required symbol if field is required, but override not set. Or show if override is set *}}
|
||||||
|
|
||||||
|
{{if ($fields[$colData.field.name].required && (!isset($colData.field.displayParams.required) || $colData.field.displayParams.required)) ||
|
||||||
|
|
||||||
|
(isset($colData.field.displayParams.required) && $colData.field.displayParams.required)}}
|
||||||
|
|
||||||
|
<span class="required">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td valign="top" width='{{if $colData.field.allCols}}100%{{else}}{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].field}}{{/if}}%' class='tabEditViewDF' {{if $colData.field.allCols}}colspan='8'{{else}}{{if $colData.colspan}}colspan='{{$colData.colspan}}'{{/if}}{{/if}} NOWRAP>
|
||||||
|
|
||||||
|
{{if !empty($def.templateMeta.labelsOnTop)}}
|
||||||
|
|
||||||
|
{{if isset($colData.field.label)}}
|
||||||
|
|
||||||
|
{{if !empty($colData.field.label)}}
|
||||||
|
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}:
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}:
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{* Show the required symbol if field is required, but override not set. Or show if override is set *}}
|
||||||
|
|
||||||
|
{{if ($fields[$colData.field.name].required && (!isset($colData.field.displayParams.required) || $colData.field.displayParams.required)) ||
|
||||||
|
|
||||||
|
(isset($colData.field.displayParams.required) && $colData.field.displayParams.required)}}
|
||||||
|
|
||||||
|
<span class="required">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if !isset($colData.field.label) || !empty($colData.field.label)}}
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{if $fields[$colData.field.name] && !empty($colData.field.fields) }}
|
||||||
|
|
||||||
|
{{foreach from=$colData.field.fields item=subField}}
|
||||||
|
|
||||||
|
{{if $fields[$subField.name]}}
|
||||||
|
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$colData.field.tabindex vardef=$fields[$subField.name] displayType='editView' displayParams=$subField.displayParams formName=$form_name}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
{{elseif !empty($colData.field.customCode)}}
|
||||||
|
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
|
||||||
|
{{sugar_evalcolumn var=$colData.field.customCode colData=$colData tabindex=$colData.field.tabindex}}
|
||||||
|
|
||||||
|
{{elseif $fields[$colData.field.name]}}
|
||||||
|
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
|
||||||
|
{{$colData.displayParams}}
|
||||||
|
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$colData.field.tabindex vardef=$fields[$colData.field.name] displayType='editView' displayParams=$colData.field.displayParams typeOverride=$colData.field.type formName=$form_name}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
{{include file='include/ECM/EcmViews/EditView/Tabs/footer.tpl'}}
|
||||||
61
include/ECM/EcmViews/EditView/Tabs/footer.tpl
Executable file
61
include/ECM/EcmViews/EditView/Tabs/footer.tpl
Executable file
@@ -0,0 +1,61 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{if empty($form.button_location) || $form.button_location == 'bottom'}}
|
||||||
|
<div style="padding-top: 2px">
|
||||||
|
{{if !empty($form) && !empty($form.buttons)}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{sugar_button module="$module" id="$button" view="$view"}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{else}}
|
||||||
|
{{sugar_button module="$module" id="SAVE" view="$view"}}
|
||||||
|
{{sugar_button module="$module" id="CANCEL" view="$view"}}
|
||||||
|
{{/if}}
|
||||||
|
{{sugar_button module="$module" id="Audit" view="$view"}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</form>
|
||||||
|
{{if $externalJSFile}}
|
||||||
|
require_once("'".$externalJSFile."'");
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{$set_focus_block}
|
||||||
|
|
||||||
|
{{if isset($scriptBlocks)}}
|
||||||
|
<!-- Begin Meta-Data Javascript -->
|
||||||
|
{{$scriptBlocks}}
|
||||||
|
<!-- End Meta-Data Javascript -->
|
||||||
|
{{/if}}
|
||||||
79
include/ECM/EcmViews/EditView/Tabs/header.tpl
Executable file
79
include/ECM/EcmViews/EditView/Tabs/header.tpl
Executable file
@@ -0,0 +1,79 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<form action="index.php" method="POST" name="{$form_name}" id="{$form_id}" {$enctype}>
|
||||||
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||||
|
<tr>
|
||||||
|
<td style="padding-bottom: 2px;">
|
||||||
|
<input type="hidden" name="module" value="{$module}">
|
||||||
|
{if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}
|
||||||
|
<input type="hidden" name="record" value="">
|
||||||
|
{else}
|
||||||
|
<input type="hidden" name="record" value="{$fields.id.value}">
|
||||||
|
{/if}
|
||||||
|
<input type="hidden" name="isDuplicate" value="false">
|
||||||
|
<input type="hidden" name="action">
|
||||||
|
<input type="hidden" name="return_module" value="{$smarty.request.return_module}">
|
||||||
|
<input type="hidden" name="return_action" value="{$smarty.request.return_action}">
|
||||||
|
<input type="hidden" name="return_id" value="{$smarty.request.return_id}">
|
||||||
|
<input type="hidden" name="contact_role">
|
||||||
|
{if !empty($smarty.request.return_module)}
|
||||||
|
<input type="hidden" name="relate_to" value="{$smarty.request.return_module}">
|
||||||
|
<input type="hidden" name="relate_id" value="{$smarty.request.return_id}">
|
||||||
|
{/if}
|
||||||
|
<input type="hidden" name="offset" value="{$offset}">
|
||||||
|
{{if isset($form.hidden)}}
|
||||||
|
{{foreach from=$form.hidden item=field}}
|
||||||
|
{{$field}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
{{if empty($form.button_location) || $form.button_location == 'top'}}
|
||||||
|
{{if !empty($form) && !empty($form.buttons)}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{sugar_button module="$module" id="$button" view="$view"}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{else}}
|
||||||
|
{{sugar_button module="$module" id="SAVE" view="$view"}}
|
||||||
|
{{sugar_button module="$module" id="CANCEL" view="$view"}}
|
||||||
|
{{/if}}
|
||||||
|
{{if empty($form.hideAudit) || !$form.hideAudit}}
|
||||||
|
{{sugar_button module="$module" id="Audit" view="$view"}}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
<td align='right'>{{$ADMIN_EDIT}}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
182
include/EditView/EditView.tpl
Executable file
182
include/EditView/EditView.tpl
Executable file
@@ -0,0 +1,182 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{include file=$headerTpl}}
|
||||||
|
{sugar_include include=$includes}
|
||||||
|
|
||||||
|
|
||||||
|
<div id="{{$form_name}}_tabs"
|
||||||
|
{{if $useTabs}}
|
||||||
|
class="yui-navset"
|
||||||
|
{{/if}}
|
||||||
|
>
|
||||||
|
{{if $useTabs}}
|
||||||
|
{* Generate the Tab headers *}
|
||||||
|
{{counter name="tabCount" start=-1 print=false assign="tabCount"}}
|
||||||
|
<ul class="yui-nav">
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{counter name="tabCount" print=false}}
|
||||||
|
<li class="selected"><a id="tab{{$tabCount}}" href="#tab{{$tabCount}}"><em>{sugar_translate label='{{$label}}' module='{{$module}}'}</em></a></li>
|
||||||
|
{{/foreach}}
|
||||||
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
<div {{if $useTabs}}class="yui-content"{{/if}}>
|
||||||
|
{{* Loop through all top level panels first *}}
|
||||||
|
{{counter name="panelCount" start=-1 print=false assign="panelCount"}}
|
||||||
|
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{counter name="panelCount" print=false}}
|
||||||
|
|
||||||
|
{{* Print out the table data *}}
|
||||||
|
<div id="{{$label}}">
|
||||||
|
{counter name="panelFieldCount" start=0 print=false assign="panelFieldCount"}
|
||||||
|
{{* Check to see if the panel variable is an array, if not, we'll attempt an include with type param php *}}
|
||||||
|
{{* See function.sugar_include.php *}}
|
||||||
|
{{if !is_array($panel)}}
|
||||||
|
{sugar_include type='php' file='{{$panel}}'}
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="{$def.templateMeta.panelClass|default:'edit view'}">
|
||||||
|
{{* Only show header if it is not default or an int value *}}
|
||||||
|
{{if !empty($label) && !is_int($label) && $label != 'DEFAULT' && !$useTabs && $showSectionPanelsTitles}}
|
||||||
|
<tr>
|
||||||
|
<th align="left" colspan="8">
|
||||||
|
<h4>{sugar_translate label='{{$label}}' module='{{$module}}'}</h4>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{assign var='rowCount' value=0}}
|
||||||
|
{{foreach name=rowIteration from=$panel key=row item=rowData}}
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
{{assign var='columnsInRow' value=$rowData|@count}}
|
||||||
|
{{assign var='columnsUsed' value=0}}
|
||||||
|
|
||||||
|
{{* Loop through each column and display *}}
|
||||||
|
{{counter name="colCount" start=0 print=false assign="colCount"}}
|
||||||
|
|
||||||
|
{{foreach name=colIteration from=$rowData key=col item=colData}}
|
||||||
|
|
||||||
|
{{counter name="colCount" print=false}}
|
||||||
|
{{math assign="tabIndex" equation="$panelCount * $maxColumns + $colCount"}}
|
||||||
|
{{if count($rowData) == $colCount}}
|
||||||
|
{{assign var="colCount" value=0}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
{{if empty($def.templateMeta.labelsOnTop) && empty($colData.field.hideLabel)}}
|
||||||
|
<td valign="top" id='{{$colData.field.name}}_label' width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope="row">
|
||||||
|
{{if isset($colData.field.customLabel)}}
|
||||||
|
{{$colData.field.customLabel}}
|
||||||
|
{{elseif isset($colData.field.label)}}
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{capture name="label" assign="label"}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{/if}}
|
||||||
|
{{* Show the required symbol if field is required, but override not set. Or show if override is set *}}
|
||||||
|
{{if ($fields[$colData.field.name].required && !isset($colData.field.displayParams.required)) ||
|
||||||
|
(isset($colData.field.displayParams.required) && $colData.field.displayParams.required && $fields[$colData.field.name].required !== false)}}
|
||||||
|
<span class="required">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<td valign="top" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].field}}%' {{if $colData.colspan}}colspan='{{$colData.colspan}}'{{/if}}>
|
||||||
|
{{if !empty($def.templateMeta.labelsOnTop)}}
|
||||||
|
{{if isset($colData.field.label)}}
|
||||||
|
{{if !empty($colData.field.label)}}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}:
|
||||||
|
{{/if}}
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}:
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{* Show the required symbol if field is required, but override not set. Or show if override is set *}}
|
||||||
|
{{if ($fields[$colData.field.name].required && (!isset($colData.field.displayParams.required) || $colData.field.displayParams.required)) ||
|
||||||
|
(isset($colData.field.displayParams.required) && $colData.field.displayParams.required)}}
|
||||||
|
<span class="required">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
|
||||||
|
{{/if}}
|
||||||
|
{{if !isset($colData.field.label) || !empty($colData.field.label)}}
|
||||||
|
<br>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
{{if $fields[$colData.field.name] && !empty($colData.field.fields) }}
|
||||||
|
{{foreach from=$colData.field.fields item=subField}}
|
||||||
|
{{if $fields[$subField.name]}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$colData.field.tabindex vardef=$fields[$subField.name] displayType='EditView' displayParams=$subField.displayParams formName=$form_name}}
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{elseif !empty($colData.field.customCode)}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_evalcolumn var=$colData.field.customCode colData=$colData tabindex=$colData.field.tabindex}}
|
||||||
|
{{elseif $fields[$colData.field.name]}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{$colData.displayParams}}
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$colData.field.tabindex vardef=$fields[$colData.field.name] displayType='EditView' displayParams=$colData.field.displayParams typeOverride=$colData.field.type formName=$form_name}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
</tr>
|
||||||
|
{{/foreach}}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{if $panelFieldCount == 0}
|
||||||
|
|
||||||
|
<script>document.getElementById("{{$label}}").style.display='none';</script>
|
||||||
|
{/if}
|
||||||
|
{{/foreach}}
|
||||||
|
</div></div>
|
||||||
|
{{include file=$footerTpl}}
|
||||||
|
{{if $useTabs}}
|
||||||
|
<script type="text/javascript" src="include/javascript/sugar_grp_yui_widgets.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var {{$form_name}}_tabs = new YAHOO.widget.TabView("{{$form_name}}_tabs");
|
||||||
|
{{$form_name}}_tabs.selectTab(0);
|
||||||
|
</script>
|
||||||
|
{{/if}}
|
||||||
221
include/EditView/EditViewClassic.tpl
Executable file
221
include/EditView/EditViewClassic.tpl
Executable file
@@ -0,0 +1,221 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{literal}
|
||||||
|
<style type="text/css">
|
||||||
|
.dataLabel { padding: 2px; }
|
||||||
|
.dataField { padding: 2px; }
|
||||||
|
.tabEditViewDF { padding: 2px; }
|
||||||
|
td .dataLabel { padding: 2px; }
|
||||||
|
td .dataField { padding: 2px; }
|
||||||
|
td .tabEditViewDF { padding: 2px; }
|
||||||
|
</style>
|
||||||
|
{/literal}
|
||||||
|
{{include file=$headerTpl}}
|
||||||
|
{sugar_include include=$includes}
|
||||||
|
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0" class='tabDetailView' id='tabFormPagination'>
|
||||||
|
{{if $panelCount == 0}}
|
||||||
|
{{* Render tag for VCR control if SHOW_VCR_CONTROL is true *}}
|
||||||
|
{{if $SHOW_VCR_CONTROL}}
|
||||||
|
{$PAGINATION}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
{{* Loop through all top level panels first *}}
|
||||||
|
{{counter name="panelCount" start=-1 print=false assign="panelCount"}}
|
||||||
|
|
||||||
|
{{foreach name=section from=$sectionPanels key=label item=panel}}
|
||||||
|
{{counter name="panelCount" print=false}}
|
||||||
|
|
||||||
|
{{* Print out the table data *}}
|
||||||
|
<div id="{{$label}}">
|
||||||
|
{counter name="panelFieldCount" start=0 print=false assign="panelFieldCount"}
|
||||||
|
{{* Check to see if the panel variable is an array, if not, we'll attempt an include with type param php *}}
|
||||||
|
{{* See function.sugar_include.php *}}
|
||||||
|
{{if !is_array($panel)}}
|
||||||
|
{sugar_include type='php' file='{{$panel}}'}
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="{$def.templateMeta.panelClass|default:tabForm}">
|
||||||
|
{{* Only show header if it is not default or an int value *}}
|
||||||
|
{{if !empty($label) && !is_int($label) && $label != 'DEFAULT'}}
|
||||||
|
<th class="dataLabel" align="left" colspan="8">
|
||||||
|
<h4>{sugar_translate label='{{$label}}' module='{{$module}}'}</h4>
|
||||||
|
</th>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{assign var='rowCount' value=0}}
|
||||||
|
{{foreach name=rowIteration from=$panel key=row item=rowData}}
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
{{assign var='columnsInRow' value=$rowData|@count}}
|
||||||
|
{{assign var='columnsUsed' value=0}}
|
||||||
|
|
||||||
|
{{* Loop through each column and display *}}
|
||||||
|
{{counter name="colCount" start=0 print=false assign="colCount"}}
|
||||||
|
|
||||||
|
{{foreach name=colIteration from=$rowData key=col item=colData}}
|
||||||
|
|
||||||
|
{{counter name="colCount" print=false}}
|
||||||
|
{{math assign="tabIndex" equation="$panelCount * $maxColumns + $colCount"}}
|
||||||
|
{{if count($rowData) == $colCount}}
|
||||||
|
{{assign var="colCount" value=0}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{if empty($def.templateMeta.labelsOnTop) && empty($colData.field.hideLabel)}}
|
||||||
|
<td valign="top" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' class="dataLabel" NOWRAP>
|
||||||
|
{{if isset($colData.field.customLabel)}}
|
||||||
|
{{$colData.field.customLabel}}
|
||||||
|
{{elseif isset($colData.field.label)}}
|
||||||
|
{capture name="label" assign="label}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{capture name="label" assign="label}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
|
||||||
|
{/capture}
|
||||||
|
{$label|strip_semicolon}:
|
||||||
|
{{/if}}
|
||||||
|
{{* Show the required symbol if field is required, but override not set. Or show if override is set *}}
|
||||||
|
{{if ($fields[$colData.field.name].required && (!isset($colData.field.displayParams.required) || $colData.field.displayParams.required)) ||
|
||||||
|
(isset($colData.field.displayParams.required) && $colData.field.displayParams.required)}}
|
||||||
|
<span class="required">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<td valign="top" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].field}}%' class='tabEditViewDF' {{if $colData.colspan}}colspan='{{$colData.colspan}}'{{/if}} NOWRAP>
|
||||||
|
{{if !empty($def.templateMeta.labelsOnTop)}}
|
||||||
|
{{if isset($colData.field.label)}}
|
||||||
|
{{if !empty($colData.field.label)}}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}:
|
||||||
|
{{/if}}
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}:
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{* Show the required symbol if field is required, but override not set. Or show if override is set *}}
|
||||||
|
{{if ($fields[$colData.field.name].required && (!isset($colData.field.displayParams.required) || $colData.field.displayParams.required)) ||
|
||||||
|
(isset($colData.field.displayParams.required) && $colData.field.displayParams.required)}}
|
||||||
|
<span class="required">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
|
||||||
|
{{/if}}
|
||||||
|
{{if !isset($colData.field.label) || !empty($colData.field.label)}}
|
||||||
|
<br>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{if $fields[$colData.field.name] && !empty($colData.field.fields) }}
|
||||||
|
{{foreach from=$colData.field.fields item=subField}}
|
||||||
|
{{if $fields[$subField.name]}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$colData.field.tabindex vardef=$fields[$subField.name] displayType='editView' displayParams=$subField.displayParams formName=$form_name}}
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{elseif !empty($colData.field.customCode)}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{sugar_evalcolumn var=$colData.field.customCode colData=$colData tabindex=$colData.field.tabindex}}
|
||||||
|
{{elseif $fields[$colData.field.name]}}
|
||||||
|
{counter name="panelFieldCount"}
|
||||||
|
{{$colData.displayParams}}
|
||||||
|
{{sugar_field parentFieldArray='fields' tabindex=$colData.field.tabindex vardef=$fields[$colData.field.name] displayType='editView' displayParams=$colData.field.displayParams typeOverride=$colData.field.type formName=$form_name}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{/foreach}}
|
||||||
|
</tr>
|
||||||
|
{{/foreach}}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{if $panelFieldCount == 0}
|
||||||
|
|
||||||
|
<script>document.getElementById("{{$label}}").style.display='none';</script>
|
||||||
|
{/if}
|
||||||
|
<script src="include/ECM/EcmTabIndexs/SetTabIndexs.js" language="javascript"></script>
|
||||||
|
<p>
|
||||||
|
{{/foreach}}
|
||||||
|
{{include file=$footerTpl}}
|
||||||
37
include/EditView/QuickCreate.tpl
Executable file
37
include/EditView/QuickCreate.tpl
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{include file="/include/EditView/EditView.tpl"}}
|
||||||
61
include/EditView/footer.tpl
Executable file
61
include/EditView/footer.tpl
Executable file
@@ -0,0 +1,61 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{if empty($form.button_location) || $form.button_location == 'bottom'}}
|
||||||
|
<div class="buttons">
|
||||||
|
{{if !empty($form) && !empty($form.buttons)}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{sugar_button module="$module" id="$button" view="$view"}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{else}}
|
||||||
|
{{sugar_button module="$module" id="SAVE" view="$view"}}
|
||||||
|
{{sugar_button module="$module" id="CANCEL" view="$view"}}
|
||||||
|
{{/if}}
|
||||||
|
{{sugar_button module="$module" id="Audit" view="$view"}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</form>
|
||||||
|
{{if $externalJSFile}}
|
||||||
|
require_once("'".$externalJSFile."'");
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{$set_focus_block}
|
||||||
|
|
||||||
|
{{if isset($scriptBlocks)}}
|
||||||
|
<!-- Begin Meta-Data Javascript -->
|
||||||
|
{{$scriptBlocks}}
|
||||||
|
<!-- End Meta-Data Javascript -->
|
||||||
|
{{/if}}
|
||||||
90
include/EditView/header.tpl
Executable file
90
include/EditView/header.tpl
Executable file
@@ -0,0 +1,90 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<div class="clear"></div>
|
||||||
|
<form action="index.php" method="POST" name="{$form_name}" id="{$form_id}" {$enctype}>
|
||||||
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="actionsContainer">
|
||||||
|
<tr>
|
||||||
|
<td class="buttons">
|
||||||
|
<input type="hidden" name="module" value="{$module}">
|
||||||
|
{if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}
|
||||||
|
<input type="hidden" name="record" value="">
|
||||||
|
<input type="hidden" name="duplicateSave" value="true">
|
||||||
|
<input type="hidden" name="duplicateId" value="{$fields.id.value}">
|
||||||
|
{else}
|
||||||
|
<input type="hidden" name="record" value="{$fields.id.value}">
|
||||||
|
{/if}
|
||||||
|
<input type="hidden" name="isDuplicate" value="false">
|
||||||
|
<input type="hidden" name="action">
|
||||||
|
<input type="hidden" name="return_module" value="{$smarty.request.return_module}">
|
||||||
|
<input type="hidden" name="return_action" value="{$smarty.request.return_action}">
|
||||||
|
<input type="hidden" name="return_id" value="{$smarty.request.return_id}">
|
||||||
|
<input type="hidden" name="module_tab">
|
||||||
|
<input type="hidden" name="contact_role">
|
||||||
|
{if !empty($smarty.request.return_module) || !empty($smarty.request.relate_to)}
|
||||||
|
<input type="hidden" name="relate_to" value="{if $smarty.request.return_relationship}{$smarty.request.return_relationship}{elseif $smarty.request.relate_to && empty($smarty.request.from_dcmenu)}{$smarty.request.relate_to}{elseif empty($isDCForm) && empty($smarty.request.from_dcmenu)}{$smarty.request.return_module}{/if}">
|
||||||
|
<input type="hidden" name="relate_id" value="{$smarty.request.return_id}">
|
||||||
|
{/if}
|
||||||
|
<input type="hidden" name="offset" value="{$offset}">
|
||||||
|
{{if isset($form.hidden)}}
|
||||||
|
{{foreach from=$form.hidden item=field}}
|
||||||
|
{{$field}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
{{if empty($form.button_location) || $form.button_location == 'top'}}
|
||||||
|
{{if !empty($form) && !empty($form.buttons)}}
|
||||||
|
{{foreach from=$form.buttons key=val item=button}}
|
||||||
|
{{sugar_button module="$module" id="$button" view="$view"}}
|
||||||
|
{{/foreach}}
|
||||||
|
{{else}}
|
||||||
|
{{sugar_button module="$module" id="SAVE" view="$view"}}
|
||||||
|
{{sugar_button module="$module" id="CANCEL" view="$view"}}
|
||||||
|
{{/if}}
|
||||||
|
{{if empty($form.hideAudit) || !$form.hideAudit}}
|
||||||
|
{{sugar_button module="$module" id="Audit" view="$view"}}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
<td align='right'>{{$ADMIN_EDIT}}
|
||||||
|
{{if $panelCount == 0}}
|
||||||
|
{{* Render tag for VCR control if SHOW_VCR_CONTROL is true *}}
|
||||||
|
{{if $SHOW_VCR_CONTROL}}
|
||||||
|
{$PAGINATION}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
177
include/ListView/ListViewGeneric.tpl
Executable file
177
include/ListView/ListViewGeneric.tpl
Executable file
@@ -0,0 +1,177 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
<script type='text/javascript' src='{sugar_getjspath file='include/javascript/popup_helper.js'}'></script>
|
||||||
|
|
||||||
|
{if $overlib}
|
||||||
|
<script type='text/javascript' src='{sugar_getjspath file='include/javascript/sugar_grp_overlib.js'}'></script>
|
||||||
|
<div id='overDiv' style='position:absolute; visibility:hidden; z-index:1000;'>koń</div>
|
||||||
|
{/if}
|
||||||
|
{if $prerow}
|
||||||
|
{$multiSelectData}
|
||||||
|
{/if}
|
||||||
|
<table cellpadding='0' cellspacing='0' width='100%' border='0' class='list view'>
|
||||||
|
{include file='include/ListView/ListViewPagination.tpl'}
|
||||||
|
<tr height='20'>
|
||||||
|
{if $prerow}
|
||||||
|
<th scope='col' nowrap="nowrap" width='1%' class="selectCol">
|
||||||
|
<div>
|
||||||
|
<input type='checkbox' class='checkbox' name='massall' id='massall' value='' onclick='sListView.check_all(document.MassUpdate, "mass[]", this.checked);' />
|
||||||
|
{$selectLink}
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
{/if}
|
||||||
|
{if !empty($quickViewLinks)}
|
||||||
|
<th scope='col' width='1%' style="padding: 0px;"> </th>
|
||||||
|
{/if}
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$displayColumns key=colHeader item=params}
|
||||||
|
<th scope='col' width='{$params.width}%' nowrap="nowrap">
|
||||||
|
<div style='white-space: nowrap;'width='100%' align='{$params.align|default:'left'}'>
|
||||||
|
{if $params.sortable|default:true}
|
||||||
|
{if $params.url_sort}
|
||||||
|
<a href='{$pageData.urls.orderBy}{$params.orderBy|default:$colHeader|lower}' class='listViewThLinkS1'>
|
||||||
|
{else}
|
||||||
|
{if $params.orderBy|default:$colHeader|lower == $pageData.ordering.orderBy}
|
||||||
|
<a href='javascript:sListView.order_checks("{$pageData.ordering.sortOrder|default:ASCerror}", "{$params.orderBy|default:$colHeader|lower}" , "{$pageData.bean.moduleDir}{"2_"}{$pageData.bean.objectName|upper}{"_ORDER_BY"}")' class='listViewThLinkS1'>
|
||||||
|
{else}
|
||||||
|
<a href='javascript:sListView.order_checks("ASC", "{$params.orderBy|default:$colHeader|lower}" , "{$pageData.bean.moduleDir}{"2_"}{$pageData.bean.objectName|upper}{"_ORDER_BY"}")' class='listViewThLinkS1'>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
{sugar_translate label=$params.label module=$pageData.bean.moduleDir}
|
||||||
|
</a>
|
||||||
|
{if $params.orderBy|default:$colHeader|lower == $pageData.ordering.orderBy}
|
||||||
|
{if $pageData.ordering.sortOrder == 'ASC'}
|
||||||
|
{capture assign="imageName"}arrow_down.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{else}
|
||||||
|
{capture assign="imageName"}arrow_up.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{capture assign="imageName"}arrow.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{sugar_translate label=$params.label module=$pageData.bean.moduleDir}
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
<th scope='col' nowrap="nowrap" width='1%'> </th>
|
||||||
|
</tr>
|
||||||
|
{counter start=$pageData.offsets.current print=false assign="offset" name="offset"}
|
||||||
|
{foreach name=rowIteration from=$data key=id item=rowData name=foo}
|
||||||
|
{* add mz 2015-03-25 *}
|
||||||
|
{* listView summary *}
|
||||||
|
{if $smarty.foreach.foo.last && $rowData.showSumRow==1}{assign var="isLastRow" value="true"}{/if}
|
||||||
|
{counter name="offset" print=false}
|
||||||
|
|
||||||
|
{if $smarty.foreach.rowIteration.iteration is odd}
|
||||||
|
{assign var='_rowColor' value=$rowColor[0]}
|
||||||
|
{else}
|
||||||
|
{assign var='_rowColor' value=$rowColor[1]}
|
||||||
|
{/if}
|
||||||
|
<tr height='20' class='{$_rowColor}S1' {if $isLastRow}style="background:rgb(78,140,207);"{/if}>
|
||||||
|
{if $prerow}
|
||||||
|
<td width='1%' class='nowrap'>
|
||||||
|
{if $isLastRow!="true"}
|
||||||
|
{if !$is_admin && is_admin_for_user && $rowData.IS_ADMIN==1}
|
||||||
|
<input type='checkbox' disabled="disabled" class='checkbox' value='{$rowData.ID}'>
|
||||||
|
{else}
|
||||||
|
<input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='{$rowData.ID}'>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{if !empty($quickViewLinks)}
|
||||||
|
<td width='2%' nowrap>
|
||||||
|
{if $pageData.access.edit}
|
||||||
|
<a title='{$editLinkString}' href="#" onMouseOver="javascript:lvg_nav('{if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$pageData.bean.moduleDir}{/if}', '{$rowData.ID}', {if $act}'{$act}'{else}'e'{/if}, {$offset}, this)" onFocus="javascript:lvg_nav('{if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$pageData.bean.moduleDir}{/if}', '{$rowData.ID}', {if $act}'{$act}'{else}'e'{/if}, {$offset}, this)">
|
||||||
|
<img border=0 src='{sugar_getimagepath file='edit_inline.gif'}'>
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$displayColumns key=col item=params}
|
||||||
|
{strip}
|
||||||
|
<td scope='row' align='{$params.align|default:'left'}' valign="top" {if ($params.type == 'teamset')}class="nowrap"{/if} {if $rowData.CANCELED==1}style="background-color: #C0C0C0;"{/if}>
|
||||||
|
|
||||||
|
{if $rowData.CANCELED==1}<strike>{/if}
|
||||||
|
{if $col == 'NAME' || $params.bold || $isLastRow=="true"}<b>{/if}
|
||||||
|
{if $params.link && !$params.customCode && $isLastRow!="true"}
|
||||||
|
<{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN} href="#" onMouseOver="javascript:lvg_nav('{if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$params.module|default:$pageData.bean.moduleDir}{/if}', '{$rowData[$params.id]|default:$rowData.ID}', 'd', {$offset}, this)" onFocus="javascript:lvg_nav('{if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$params.module|default:$pageData.bean.moduleDir}{/if}', '{$rowData[$params.id]|default:$rowData.ID}', 'd', {$offset}, this)">
|
||||||
|
{/if}
|
||||||
|
{if $params.customCode}
|
||||||
|
{sugar_evalcolumn_old var=$params.customCode rowData=$rowData}
|
||||||
|
{else}
|
||||||
|
{sugar_field parentFieldArray=$rowData vardef=$params displayType=ListView field=$col}
|
||||||
|
{/if}
|
||||||
|
{if empty($rowData.$col) && empty($params.customCode)} {/if}
|
||||||
|
{if $params.link && !$params.customCode}
|
||||||
|
</{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN}>
|
||||||
|
{/if}
|
||||||
|
{if $col == 'NAME' || $params.bold || $isLastRow=="true"}</b>{/if}
|
||||||
|
{if $rowData.CANCELED==1}</strike>{/if}
|
||||||
|
</td>
|
||||||
|
{/strip}
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
<td align='right'>{$pageData.additionalDetails.$id}</td>
|
||||||
|
</tr>
|
||||||
|
{foreachelse}
|
||||||
|
<tr height='20' class='{$rowColor[0]}S1'>
|
||||||
|
<td colspan="{$colCount}">
|
||||||
|
<em>{$APP.LBL_NO_DATA}</em>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
{*<tr>{$summary}</tr>*}
|
||||||
|
{include file='include/ListView/ListViewPagination.tpl'}
|
||||||
|
</table>
|
||||||
|
{if $contextMenus}
|
||||||
|
<script type="text/javascript">
|
||||||
|
{$contextMenuScript}
|
||||||
|
{literal}function lvg_nav(m,id,act,offset,t){if(t.href.search(/#/) < 0){return;}else{if(act=='pte'){act='ProjectTemplatesEditView';}else if(act=='d'){ act='DetailView';}else if( act =='ReportsWizard'){act = 'ReportsWizard';}else{ act='EditView';}{/literal}url = 'index.php?module='+m+'&offset=' + offset + '&stamp={$pageData.stamp}&return_module='+m+'&action='+act+'&record='+id;t.href=url;{literal}}}{/literal}
|
||||||
|
{literal}function lvg_dtails(id){{/literal}return SUGAR.util.getAdditionalDetails( '{$params.module|default:$pageData.bean.moduleDir}',id, 'adspan_'+id);{literal}}{/literal}
|
||||||
|
</script>
|
||||||
|
{/if}
|
||||||
135
include/ListView/ListViewNoMassUpdate.tpl
Executable file
135
include/ListView/ListViewNoMassUpdate.tpl
Executable file
@@ -0,0 +1,135 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
{if $overlib}
|
||||||
|
<script type='text/javascript' src='include/javascript/overlibmws.js'></script>
|
||||||
|
<script type='text/javascript' src='include/javascript/overlibmws_iframe.js'></script>
|
||||||
|
<div id='overDiv' style='position:absolute; visibility:hidden; z-index:1000;'></div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<table cellpadding='0' cellspacing='0' width='100%' border='0' class='list View'>
|
||||||
|
{include file='include/ListView/ListViewPagination.tpl'}
|
||||||
|
|
||||||
|
<tr height='20'>
|
||||||
|
{if !empty($quickViewLinks)}
|
||||||
|
<th scope='col' nowrap="nowrap" width='1%'> </th>
|
||||||
|
{/if}
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$displayColumns key=colHeader item=params}
|
||||||
|
<th scope='col' width='{$params.width}%' nowrap="nowrap">
|
||||||
|
<span sugar="sugar{$colCounter}"><div style='white-space: nowrap;'width='100%' align='{$params.align|default:'left'}'>
|
||||||
|
{if $params.sortable|default:true}
|
||||||
|
<a href='{$pageData.urls.orderBy}{$params.orderBy|default:$colHeader|lower}' class='listViewThLinkS1'>{sugar_translate label=$params.label module=$pageData.bean.moduleDir}</a>
|
||||||
|
{if $params.orderBy|default:$colHeader|lower == $pageData.ordering.orderBy}
|
||||||
|
{if $pageData.ordering.sortOrder == 'ASC'}
|
||||||
|
{capture assign="imageName"}arrow_down.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{else}
|
||||||
|
{capture assign="imageName"}arrow_up.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{capture assign="imageName"}arrow.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{sugar_translate label=$params.label module=$pageData.bean.moduleDir}
|
||||||
|
{/if}
|
||||||
|
</div></span sugar='sugar{$colCounter}'>
|
||||||
|
</th>
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{foreach name=rowIteration from=$data key=id item=rowData}
|
||||||
|
{* add mz 2015-03-25 *}
|
||||||
|
{* listView summary *}
|
||||||
|
{if $smarty.foreach.foo.last && $rowData.showSumRow==1}{assign var="isLastRow" value="true"}{/if}
|
||||||
|
{if $smarty.foreach.rowIteration.iteration is odd}
|
||||||
|
{assign var='_rowColor' value=$rowColor[0]}
|
||||||
|
{else}
|
||||||
|
{assign var='_rowColor' value=$rowColor[1]}
|
||||||
|
{/if}
|
||||||
|
<tr height='20' class='{$_rowColor}S1' {if $isLastRow}style="background:rgb(78,140,207);"{/if}>
|
||||||
|
{if !empty($quickViewLinks)}
|
||||||
|
<td width='1%' nowrap>
|
||||||
|
{if $pageData.access.edit && $pageData.bean.moduleDir != "Employees"}
|
||||||
|
<a title='{$editLinkString}' href='index.php?action=EditView&module={$params.module|default:$pageData.bean.moduleDir}&record={$rowData[$params.id]|default:$rowData.ID}&offset={$pageData.offsets.current+$smarty.foreach.rowIteration.iteration}&stamp={$pageData.stamp}&return_module={$params.module|default:$pageData.bean.moduleDir}'><img border="0" src="{sugar_getimagepath file="edit_inline.gif"}"></a>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$displayColumns key=col item=params}
|
||||||
|
<td scope='row' align='{$params.align|default:'left'}' {if $params.nowrap}nowrap='nowrap' {/if}valign='top'><span sugar="sugar{$colCounter}b">
|
||||||
|
{if $col == 'NAME' || $params.bold || $isLastRow=="true"}<b>{/if}
|
||||||
|
{if $params.link && !$params.customCode && $isLastRow!="true"}
|
||||||
|
<{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN} href="#" onMouseOver="javascript:lvg_nav('{if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$params.module|default:$pageData.bean.moduleDir}{/if}', '{$rowData[$params.id]|default:$rowData.ID}', 'd', {$smarty.foreach.rowIteration.iteration}, this);" onFocus="javascript:lvg_nav('{if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$params.module|default:$pageData.bean.moduleDir}{/if}', '{$rowData[$params.id]|default:$rowData.ID}', 'd', {$smarty.foreach.rowIteration.iteration}, this);">
|
||||||
|
{/if}
|
||||||
|
{if $params.customCode}
|
||||||
|
{sugar_evalcolumn_old var=$params.customCode rowData=$rowData}
|
||||||
|
{else}
|
||||||
|
{sugar_field parentFieldArray=$rowData vardef=$params displayType=ListView field=$col}
|
||||||
|
{/if}
|
||||||
|
{if empty($rowData.$col)} {/if}
|
||||||
|
{if $params.link && !$params.customCode}
|
||||||
|
</{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN}>
|
||||||
|
{/if}
|
||||||
|
{if $col == 'NAME' || $params.bold || $isLastRow=="true"}</b>{/if}
|
||||||
|
</span sugar='sugar{$colCounter}b'></td>
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
</tr>
|
||||||
|
{foreachelse}
|
||||||
|
<tr height='20' class='{$rowColor[0]}S1'>
|
||||||
|
<td colspan="{$colCount}">
|
||||||
|
<em>{$APP.LBL_NO_DATA}</em>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
{include file='include/ListView/ListViewPagination.tpl'}
|
||||||
|
</table>
|
||||||
|
<script type='text/javascript'>
|
||||||
|
{literal}function lvg_nav(m,id,act,offset,t){if(t.href.search(/#/) < 0){return;}else{if(act=='pte'){act='ProjectTemplatesEditView';}else if(act=='d'){ act='DetailView';}else if( act =='ReportsWizard'){act = 'ReportsWizard';}else{ act='EditView';}{/literal}url = 'index.php?module='+m+'&offset=' + offset + '&stamp={$pageData.stamp}&return_module='+m+'&action='+act+'&record='+id;t.href=url;{literal}}}{/literal}
|
||||||
|
{literal}function lvg_dtails(id){{/literal}return SUGAR.util.getAdditionalDetails( '{$params.module|default:$pageData.bean.moduleDir}',id, 'adspan_'+id);{literal}}{/literal}
|
||||||
|
{if $contextMenus}
|
||||||
|
{$contextMenuScript}
|
||||||
|
{/if}
|
||||||
|
</script>
|
||||||
124
include/ListView/ListViewPagination.tpl
Executable file
124
include/ListView/ListViewPagination.tpl
Executable file
@@ -0,0 +1,124 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
<tr class='pagination'>
|
||||||
|
<td colspan='{if $prerow}{$colCount+1}{else}{$colCount}{/if}'>
|
||||||
|
<table border='0' cellpadding='0' cellspacing='0' width='100%' class='paginationTable'>
|
||||||
|
<tr>
|
||||||
|
<td nowrap="nowrap" width='2%' class='paginationActionButtons'>
|
||||||
|
{$actionsLink}
|
||||||
|
{$selectedObjectsSpan}
|
||||||
|
</td>
|
||||||
|
<td nowrap='nowrap' width='1%' align="right" class='paginationChangeButtons'>
|
||||||
|
{if $smarty.request.module=='Accounts' || $smarty.request.module=='EcmProducts' || $smarty.request.module=='EcmQuotes' || $smarty.request.module=='EcmSales' || $smarty.request.module=='EcmInvoiceOuts' || $smarty.request.module=='EcmPrepaymentInvoices' || $smarty.request.module=='EcmPurchaseOrders' || $smarty.request.module=='EcmAgreements' || $smarty.request.module=='EcmWorkers' || $smarty.request.module=='Documents'}
|
||||||
|
<input type='hidden' id='list_pdf_settings' name='list_pdf_settigns' value="{$smarty.session.ee}"/>
|
||||||
|
<button type='button' id='listViewStartButton' name='listViewStartButton' title='{$navStrings.start}' class='button' onClick='{literal}window.open("index.php?to_pdf=1&module=Home&action=Export&settings="+document.getElementById("list_pdf_settings").value);{/literal}'>
|
||||||
|
<span style="font-size:7pt;">XLS</span>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
{if $smarty.request.module=='EcmInvoiceOuts' ||
|
||||||
|
$smarty.request.module=='EcmQuotes' ||
|
||||||
|
$smarty.request.module=='EcmSales' ||
|
||||||
|
$smarty.request.module=='EcmStockDocIns' ||
|
||||||
|
$smarty.request.module=='EcmStockDocOuts' ||
|
||||||
|
$smarty.request.module=='EcmStockDocInsideIns' ||
|
||||||
|
$smarty.request.module=='EcmStockDocInsideOuts' ||
|
||||||
|
$smarty.request.module=='EcmStockDocCorrects' ||
|
||||||
|
$smarty.request.module=='EcmStockDocMoves'}
|
||||||
|
<input type='hidden' id='list_pdf_settings' name='list_pdf_settigns' value="{$smarty.session.ee}"/>
|
||||||
|
<button type='button' id='listViewStartButton' name='listViewStartButton' title='{$navStrings.start}' class='button' onClick='{literal}window.open("index.php?to_pdf=1&module=Home&action=ListViewPdf&settings="+document.getElementById("list_pdf_settings").value);{/literal}'>
|
||||||
|
<span style="font-size:7pt;">PDF</span>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
{if $smarty.request.module=='EcmStockStates'}
|
||||||
|
<input type='hidden' id='list_pdf_settings' name='list_pdf_settigns' value="{$smarty.session.ee}"/>
|
||||||
|
<button type='button' id='listViewStartButton' name='listViewStartButton' title='{$navStrings.start}' class='button' onClick='{literal}window.open("index.php?to_pdf=1&module=Home&action=StanyXls&settings="+document.getElementById("list_pdf_settings").value);{/literal}'>
|
||||||
|
<span style="font-size:7pt;">XLS</span>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if $pageData.urls.startPage}
|
||||||
|
<button type='button' id='listViewStartButton' name='listViewStartButton' title='{$navStrings.start}' class='button' {if $prerow}onclick='return sListView.save_checks(0, "{$moduleString}");'{else} onClick='location.href="{$pageData.urls.startPage}"' {/if}>
|
||||||
|
<img src='{sugar_getimagepath file='start.png'}' alt='{$navStrings.start}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
{else}
|
||||||
|
<button type='button' id='listViewStartButton' name='listViewStartButton' title='{$navStrings.start}' class='button' disabled='disabled'>
|
||||||
|
<img src='{sugar_getimagepath file='start_off.png'}' alt='{$navStrings.start}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
{if $pageData.urls.prevPage}
|
||||||
|
<button type='button' id='listViewPrevButton' name='listViewPrevButton' title='{$navStrings.previous}' class='button' {if $prerow}onclick='return sListView.save_checks({$pageData.offsets.prev}, "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.prevPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file='previous.png'}' alt='{$navStrings.previous}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
{else}
|
||||||
|
<button type='button' id='listViewPrevButton' name='listViewPrevButton' class='button' title='{$navStrings.previous}' disabled='disabled'>
|
||||||
|
<img src='{sugar_getimagepath file='previous_off.png'}' alt='{$navStrings.previous}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
<span class='pageNumbers'>({if $pageData.offsets.lastOffsetOnPage == 0}0{else}{$pageData.offsets.current+1}{/if} - {$pageData.offsets.lastOffsetOnPage} {$navStrings.of} {if $pageData.offsets.totalCounted}{$pageData.offsets.total}{else}{$pageData.offsets.total}{if $pageData.offsets.lastOffsetOnPage != $pageData.offsets.total}+{/if}{/if})</span>
|
||||||
|
{if $pageData.urls.nextPage}
|
||||||
|
<button type='button' id='listViewNextButton' name='listViewNextButton' title='{$navStrings.next}' class='button' {if $prerow}onclick='return sListView.save_checks({$pageData.offsets.next}, "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.nextPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file='next.png'}' alt='{$navStrings.next}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
{else}
|
||||||
|
<button type='button' id='listViewNextButton' name='listViewNextButton' class='button' title='{$navStrings.next}' disabled='disabled'>
|
||||||
|
<img src='{sugar_getimagepath file='next_off.png'}' alt='{$navStrings.next}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
{if $pageData.urls.endPage && $pageData.offsets.total != $pageData.offsets.lastOffsetOnPage}
|
||||||
|
<button type='button' id='listViewEndButton' name='listViewEndButton' title='{$navStrings.end}' class='button' {if $prerow}onclick='return sListView.save_checks("end", "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.endPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file='end.png'}' alt='{$navStrings.end}' align='absmiddle' border='0'>
|
||||||
|
</button>
|
||||||
|
{elseif !$pageData.offsets.totalCounted || $pageData.offsets.total == $pageData.offsets.lastOffsetOnPage}
|
||||||
|
<button type='button' id='listViewEndButton' name='listViewEndButton' title='{$navStrings.end}' class='button' disabled='disabled'>
|
||||||
|
<img src='{sugar_getimagepath file='end_off.png'}' alt='{$navStrings.end}' align='absmiddle'>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
{if $pageData.pages.count>1}
|
||||||
|
<select name="PaginationListViewSelect" id="PaginationListViewSelect" onChange='return sListView.save_checks(document.getElementById("PaginationListViewSelect").value, "{$moduleString}")' >
|
||||||
|
{section name=foo start=1 loop=$pageData.pages.count+1 step=1}
|
||||||
|
<option value="{$smarty.section.foo.index*100-100}" {if $pageData.pages.current==$smarty.section.foo.index}selected{/if}>{$smarty.section.foo.index}</option>
|
||||||
|
{/section}
|
||||||
|
</select>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
68
include/MVC/View/tpls/Importvcard.tpl
Executable file
68
include/MVC/View/tpls/Importvcard.tpl
Executable file
@@ -0,0 +1,68 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
<b>{$MOD.LBL_IMPORT_VCARDTEXT}</b>
|
||||||
|
{literal}
|
||||||
|
<script type="text/javascript" src="include/javascript/sugar_grp_yui_widgets.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
function validate_vcard()
|
||||||
|
{
|
||||||
|
if (document.getElementById("vcard_file").value=="") {
|
||||||
|
YAHOO.SUGAR.MessageBox.show({msg: '{/literal}{$ERROR_TEXT}{literal}'} );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
document.EditView.submit();
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
|
<form name="EditView" method="POST" ENCTYPE="multipart/form-data" action="index.php">
|
||||||
|
<input type="hidden" name="max_file_size" value="30000">
|
||||||
|
<input type='hidden' name='action' value='ImportVCardSave'>
|
||||||
|
<input type='hidden' name='module' value='{$MODULE}'>
|
||||||
|
<input type='hidden' name='from' value='ImportVCard'>
|
||||||
|
|
||||||
|
<input size="60" name="vcard" id="vcard_file" type="file" />
|
||||||
|
<input class='button' type="button" onclick='validate_vcard()' value="{$APP.LBL_IMPORT_VCARD_BUTTON_LABEL}"
|
||||||
|
title="{$APP.LBL_IMPORT_VCARD_BUTTON_TITLE}" accesskey="{$APP.LBL_IMPORT_VCARD_BUTTON_KEY}"/>
|
||||||
|
</form>
|
||||||
|
|
||||||
41
include/MVC/View/tpls/modulelistmenu.tpl
Executable file
41
include/MVC/View/tpls/modulelistmenu.tpl
Executable file
@@ -0,0 +1,41 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
[{foreach from=$LAST_VIEWED item=item name=lastViewed}{ldelim}"text":"{$item.item_summary_short}","url": "{sugar_link module=$item.module_name action='DetailView' record=$item.item_id link_only=1}"{rdelim}{if !$smarty.foreach.lastViewed.last},{/if}{foreachelse}{ldelim} "text": "{$APP.NTC_NO_ITEMS_DISPLAY}"{rdelim}{/foreach}]
|
||||||
178
include/MySugar/tpls/MySugar.tpl
Executable file
178
include/MySugar/tpls/MySugar.tpl
Executable file
@@ -0,0 +1,178 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
{literal}
|
||||||
|
<style>
|
||||||
|
.menu{
|
||||||
|
z-index:100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subDmenu{
|
||||||
|
z-index:100;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
li.active a img.deletePageImg {
|
||||||
|
display: inline !important;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{/literal}
|
||||||
|
|
||||||
|
<!-- begin includes for overlib -->
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_overlib.js'}"></script>
|
||||||
|
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000"></div>
|
||||||
|
<!-- end includes for overlib -->
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var activePage = {$activePage};
|
||||||
|
var theme = '{$theme}';
|
||||||
|
current_user_id = '{$current_user}';
|
||||||
|
jsChartsArray = new Array();
|
||||||
|
var moduleName = '{$module}';
|
||||||
|
document.body.setAttribute("class", "yui-skin-sam");
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_yui_widgets.js'}"></script>
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/dashlets.js'}"></script>
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file='include/JSON.js'}'></script>
|
||||||
|
<script type='text/javascript' src='{sugar_getjspath file='include/MySugar/javascript/MySugar.js'}'></script>
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/swfobject.js'}"></script>
|
||||||
|
<link rel='stylesheet' href='{sugar_getjspath file='include/ytree/TreeView/css/folders/tree.css'}'>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
<div id="pageContainer" class="yui-skin-sam">
|
||||||
|
<div id="pageNum_{$activePage}_div">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top: 5px;">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td rowspan="3">
|
||||||
|
<img src='{sugar_getimagepath file='blank.gif'}' width='40' height='1' border='0'>
|
||||||
|
</td>
|
||||||
|
<td align='right'>
|
||||||
|
{if !$lock_homepage}<input id="add_dashlets" class="button" type="button" value="{$lblAddDashlets}" onclick="return SUGAR.mySugar.showDashletsDialog();"/>{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
{counter assign=hiddenCounter start=0 print=false}
|
||||||
|
{foreach from=$columns key=colNum item=data}
|
||||||
|
<td valign='top' width='{$data.width}'>
|
||||||
|
<ul class='noBullet' id='col_{$activePage}_{$colNum}'>
|
||||||
|
<li id='page_{$activePage}_hidden{$hiddenCounter}b' style='height: 5px; margin-top: 12px\9;' class='noBullet'> </li>
|
||||||
|
{foreach from=$data.dashlets key=id item=dashlet}
|
||||||
|
<li class='noBullet' id='dashlet_{$id}'>
|
||||||
|
<div id='dashlet_entire_{$id}' class='dashletPanel'>
|
||||||
|
{$dashlet.script}
|
||||||
|
{$dashlet.displayHeader}
|
||||||
|
{$dashlet.display}
|
||||||
|
{$dashlet.displayFooter}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{/foreach}
|
||||||
|
<li id='page_{$activePage}_hidden{$hiddenCounter}' style='height: 5px' class='noBullet'> </li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
{counter}
|
||||||
|
{/foreach}
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{foreach from=$divPages key=divPageIndex item=divPageNum}
|
||||||
|
<div id="pageNum_{$divPageNum}_div" style="display:none;">
|
||||||
|
</div>
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="dashletsDialog" style="display:none;">
|
||||||
|
<div class="hd" id="dashletsDialogHeader"><a href="#" onClick="javascript:SUGAR.mySugar.closeDashletsDialog();">
|
||||||
|
<div class="container-close"> </div></a>{$lblAdd}
|
||||||
|
</div>
|
||||||
|
<div class="bd" id="dashletsList">
|
||||||
|
<form></form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{literal}
|
||||||
|
<script type="text/javascript">
|
||||||
|
SUGAR.mySugar.maxCount = {/literal}{$maxCount}{literal};
|
||||||
|
SUGAR.mySugar.homepage_dd = new Array();
|
||||||
|
SUGAR.mySugar.init = function () {
|
||||||
|
j = 0;
|
||||||
|
|
||||||
|
{/literal}
|
||||||
|
dashletIds = {$dashletIds};
|
||||||
|
|
||||||
|
{if !$lock_homepage}
|
||||||
|
{literal}
|
||||||
|
for(i in dashletIds) {
|
||||||
|
SUGAR.mySugar.homepage_dd[j] = new ygDDList('dashlet_' + dashletIds[i]);
|
||||||
|
SUGAR.mySugar.homepage_dd[j].setHandleElId('dashlet_header_' + dashletIds[i]);
|
||||||
|
SUGAR.mySugar.homepage_dd[j].onMouseDown = SUGAR.mySugar.onDrag;
|
||||||
|
SUGAR.mySugar.homepage_dd[j].afterEndDrag = SUGAR.mySugar.onDrop;
|
||||||
|
j++;
|
||||||
|
}
|
||||||
|
for(var wp = 0; wp <= {/literal}{$hiddenCounter}{literal}; wp++) {
|
||||||
|
SUGAR.mySugar.homepage_dd[j++] = new ygDDListBoundary('page_'+activePage+'_hidden' + wp);
|
||||||
|
}
|
||||||
|
|
||||||
|
YAHOO.util.DDM.mode = 1;
|
||||||
|
{/literal}
|
||||||
|
{/if}
|
||||||
|
{literal}
|
||||||
|
SUGAR.mySugar.renderDashletsDialog();
|
||||||
|
|
||||||
|
SUGAR.mySugar.loadSugarCharts();
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
YAHOO.util.Event.addListener(window, 'load', SUGAR.mySugar.init);
|
||||||
|
</script>
|
||||||
153
include/MySugar/tpls/addDashletsDialog.tpl
Executable file
153
include/MySugar/tpls/addDashletsDialog.tpl
Executable file
@@ -0,0 +1,153 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<div align="right" id="dashletSearch">
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>{sugar_translate label='LBL_DASHLET_SEARCH' module='Home'}: <input id="search_string" type="text" length="15" onKeyPress="javascript:if(event.keyCode==13)SUGAR.mySugar.searchDashlets(this.value,document.getElementById('search_category').value);" />
|
||||||
|
<input type="button" class="button" value="{sugar_translate label='LBL_SEARCH' module='Home'}" onClick="javascript:SUGAR.mySugar.searchDashlets(document.getElementById('search_string').value,document.getElementById('search_category').value);" />
|
||||||
|
<input type="button" class="button" value="{sugar_translate label='LBL_CLEAR' module='Home'}" onClick="javascript:SUGAR.mySugar.clearSearch();" />
|
||||||
|
{if $moduleName == 'Home'}
|
||||||
|
<input type="hidden" id="search_category" value="module" />
|
||||||
|
{else}
|
||||||
|
<input type="hidden" id="search_category" value="chart" />
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{if $moduleName == 'Home'}
|
||||||
|
<ul class="subpanelTablist" id="dashletCategories">
|
||||||
|
<li id="moduleCategory" class="active"><a href="javascript:SUGAR.mySugar.toggleDashletCategories('module');" class="current" id="moduleCategoryAnchor">{sugar_translate label='LBL_MODULES' module='Home'}</a></li>
|
||||||
|
<li id="chartCategory" class=""><a href="javascript:SUGAR.mySugar.toggleDashletCategories('chart');" class="" id="chartCategoryAnchor">{sugar_translate label='LBL_CHARTS' module='Home'}</a></li>
|
||||||
|
<li id="toolsCategory" class=""><a href="javascript:SUGAR.mySugar.toggleDashletCategories('tools');" class="" id="toolsCategoryAnchor">{sugar_translate label='LBL_TOOLS' module='Home'}</a></li>
|
||||||
|
<li id="webCategory" class=""><a href="javascript:SUGAR.mySugar.toggleDashletCategories('web');" class="" id="webCategoryAnchor">{sugar_translate label='LBL_WEB' module='Home'}</a></li>
|
||||||
|
</ul>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if $moduleName == 'Home'}
|
||||||
|
<div id="moduleDashlets" style="height:400px;display:true;">
|
||||||
|
<h3>{sugar_translate label='LBL_MODULES' module='Home'}</h3>
|
||||||
|
<div id="moduleDashletsList">
|
||||||
|
<table width="95%">
|
||||||
|
{counter assign=rowCounter start=0 print=false}
|
||||||
|
{foreach from=$modules item=module}
|
||||||
|
{if $rowCounter % 2 == 0}
|
||||||
|
<tr>
|
||||||
|
{/if}
|
||||||
|
<td width="50%" align="left"><a href="#" onclick="{$module.onclick}">{$module.icon}</a> <a class="mbLBLL" href="#" onclick="{$module.onclick}">{$module.title}</a><br /></td>
|
||||||
|
{if $rowCounter % 2 == 1}
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
{counter}
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
<div id="chartDashlets" style="{if $moduleName == 'Home'}height:400px;display:none;{else}height:425px;display:;{/if}">
|
||||||
|
{if $charts != false}
|
||||||
|
<h3><span id="basicChartDashletsExpCol"><a href="#" onClick="javascript:SUGAR.mySugar.collapseList('basicChartDashlets');"><img border="0" src="{sugar_getimagepath file='basic_search.gif'}" align="absmiddle" /></span></a> {sugar_translate label='LBL_BASIC_CHARTS' module='Home'}</h3>
|
||||||
|
<div id="basicChartDashletsList">
|
||||||
|
<table width="100%">
|
||||||
|
{foreach from=$charts item=chart}
|
||||||
|
<tr>
|
||||||
|
<td align="left"><a href="#" onclick="{$chart.onclick}">{$chart.icon}</a> <a class="mbLBLL" href="#" onclick="{$chart.onclick}">{$chart.title}</a><br /></td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{if $moduleName == 'Home'}
|
||||||
|
<div id="toolsDashlets" style="height:400px;display:none;">
|
||||||
|
<h3>{sugar_translate label='LBL_TOOLS' module='Home'}</h3>
|
||||||
|
<div id="toolsDashletsList">
|
||||||
|
<table width="95%">
|
||||||
|
{counter assign=rowCounter start=0 print=false}
|
||||||
|
{foreach from=$tools item=tool}
|
||||||
|
{if $rowCounter % 2 == 0}
|
||||||
|
<tr>
|
||||||
|
{/if}
|
||||||
|
<td align="left"><a href="#" onclick="{$tool.onclick}">{$tool.icon}</a> <a class="mbLBLL" href="#" onclick="{$tool.onclick}">{$tool.title}</a><br /></td>
|
||||||
|
{if $rowCounter % 2 == 1}
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
{counter}
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if $moduleName == 'Home'}
|
||||||
|
<div id="webDashlets" style="height:400px;display:none;">
|
||||||
|
<h3>{sugar_translate label='LBL_WEBSITE_TITLE' module='Home'}</h3>
|
||||||
|
<div id="webDashletsList">
|
||||||
|
<table width="95%">
|
||||||
|
<tr>
|
||||||
|
<td scope="row"></td>
|
||||||
|
<td><input type="text" id="web_address" value="http://" style="width: 400px" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<input type="button" name="create" value="{$APP.LBL_ADD_BUTTON}"
|
||||||
|
onclick="return SUGAR.mySugar.addDashlet('iFrameDashlet', 'web', document.getElementById('web_address').value);" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h3>{sugar_translate label='LBL_RSS_TITLE' module='Home'}</h3>
|
||||||
|
<table width="95%">
|
||||||
|
<tr>
|
||||||
|
<td scope="row"></td>
|
||||||
|
<td><input type="text" id="rss_address" value="http://" style="width: 400px" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<input type="button" name="create" value="{$APP.LBL_ADD_BUTTON}"
|
||||||
|
onclick="return SUGAR.mySugar.addDashlet('RSSDashlet', 'web', document.getElementById('rss_address').value);" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<div id="searchResults" style="display:none;{if $moduleName == 'Home'}height:400px;{else}height:425px;{/if}">
|
||||||
|
</div>
|
||||||
48
include/MySugar/tpls/chartDashletsSearchResults.tpl
Executable file
48
include/MySugar/tpls/chartDashletsSearchResults.tpl
Executable file
@@ -0,0 +1,48 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<h4>{$lblSearchResults} - <i>{$searchString}</i>:</h4>
|
||||||
|
<hr>
|
||||||
|
{if count($charts)}
|
||||||
|
<h3>{sugar_translate label='LBL_BASIC_CHARTS' module='Home'}</h3>
|
||||||
|
<table width="100%">
|
||||||
|
{foreach from=$charts item=chart}
|
||||||
|
<tr>
|
||||||
|
<td width="100%" align="left"><a href="#" onclick="{$chart.onclick}">{$chart.icon}</a> <a class="mbLBLL" href="#" onclick="{$chart.onclick}">{$chart.title}</a><br /></td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
|
{/if}
|
||||||
54
include/MySugar/tpls/dashletsSearchResults.tpl
Executable file
54
include/MySugar/tpls/dashletsSearchResults.tpl
Executable file
@@ -0,0 +1,54 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<h4>{$lblSearchResults} - <i>{$searchString}</i>:</h4>
|
||||||
|
<hr>
|
||||||
|
{if count($dashlets)}
|
||||||
|
<h3>{$searchCategoryString}</h3>
|
||||||
|
<table width="95%">
|
||||||
|
{counter assign=rowCounter start=0 print=false}
|
||||||
|
{foreach from=$dashlets item=module}
|
||||||
|
{if $rowCounter % 2 == 0}
|
||||||
|
<tr>
|
||||||
|
{/if}
|
||||||
|
<td width="50%" align="left"><a href="#" onclick="{$module.onclick}">{$module.icon}</a> <a class="mbLBLL" href="#" onclick="{$module.onclick}">{$module.title}</a><br /></td>
|
||||||
|
{if $rowCounter % 2 == 1}
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
{counter}
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
|
{/if}
|
||||||
91
include/MySugar/tpls/retrievePage.tpl
Executable file
91
include/MySugar/tpls/retrievePage.tpl
Executable file
@@ -0,0 +1,91 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-top: 0px none; margin-bottom: 4px;">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<!-- BEGIN PAGE RENDERING -->
|
||||||
|
<table cellspacing='5' cellpadding='0' border='0' valign='top' width='100%'>
|
||||||
|
{if $numCols > 1}
|
||||||
|
<tr>
|
||||||
|
{if $numCols > 2}
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td rowspan="3">
|
||||||
|
<img src='{sugar_getimagepath file='blank.gif'}' width='15' height='1' border='0'>
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{if $numCols > 1}
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td rowspan="3">
|
||||||
|
<img src='{sugar_getimagepath file='blank.gif'}' width='15' height='1' border='0'>
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
<tr>
|
||||||
|
{counter assign=hiddenCounter start=0 print=false}
|
||||||
|
{foreach from=$columns key=colNum item=data}
|
||||||
|
<td valign='top' width={$data.width}>
|
||||||
|
<ul class='noBullet' id='col_{$selectedPage}_{$colNum}'>
|
||||||
|
<li id='page_{$selectedPage}_hidden{$hiddenCounter}b' style='height: 5px' class='noBullet'> </li>
|
||||||
|
{foreach from=$data.dashlets key=id item=dashlet}
|
||||||
|
<li class='noBullet' id='dashlet_{$id}'>
|
||||||
|
<div id='dashlet_entire_{$id}' class='dashletPanel'>
|
||||||
|
{$dashlet.script}
|
||||||
|
{$dashlet.displayHeader}
|
||||||
|
{$dashlet.display}
|
||||||
|
{$dashlet.displayFooter}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{/foreach}
|
||||||
|
<li id='page_{$selectedPage}_hidden{$hiddenCounter}' style='height: 5px' class='noBullet'> </li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
{counter}
|
||||||
|
{/foreach}
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<!-- END PAGE RENDERING -->
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
43
include/MySugar/tpls/retrieveReportCharts.tpl
Executable file
43
include/MySugar/tpls/retrieveReportCharts.tpl
Executable file
@@ -0,0 +1,43 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<table width="100%">
|
||||||
|
{foreach from=$reportCharts item=chart}
|
||||||
|
<tr>
|
||||||
|
<td align="left"><a class="mbLBLL" href="#" onclick="{$chart.onclick}">{$chart.title}</a><br /></td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
258
include/Popups/tpls/PopupGeneric.tpl
Executable file
258
include/Popups/tpls/PopupGeneric.tpl
Executable file
@@ -0,0 +1,258 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
{{include file=$headerTpl}}
|
||||||
|
{$jsLang}
|
||||||
|
{$LIST_HEADER}
|
||||||
|
{if $should_process}
|
||||||
|
<table cellpadding='0' cellspacing='0' width='100%' border='0' class='list view'>
|
||||||
|
<tr class='pagination'>
|
||||||
|
<td colspan='{$colCount+1}' align='right'>
|
||||||
|
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
||||||
|
<tr>
|
||||||
|
<td align='left' >
|
||||||
|
</td>
|
||||||
|
<td align='right' nowrap='nowrap'>
|
||||||
|
{if $pageData.urls.startPage}
|
||||||
|
<button type='button' id='popupViewStartButton' title='{$navStrings.start}' class='button' {if $prerow}onclick='return sListView.save_checks(0, "{$moduleString}");'{else} onClick='location.href="{$pageData.urls.startPage}"' {/if}>
|
||||||
|
<img src='{sugar_getimagepath file="start.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<a href='{$pageData.urls.startPage}' {if $prerow}onclick="return sListView.save_checks(0, '{$moduleString}')"{/if} ><img src='{sugar_getimagepath file="start.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' > {$navStrings.start}</a> -->
|
||||||
|
{else}
|
||||||
|
<button type='button' id='popupViewStartButton' title='{$navStrings.start}' class='button' disabled>
|
||||||
|
<img src='{sugar_getimagepath file="start_off.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<img src='{sugar_getimagepath file="start_off.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' > {$navStrings.start} -->
|
||||||
|
{/if}
|
||||||
|
{if $pageData.urls.prevPage}
|
||||||
|
<button type='button' id='popupViewPrevButton' title='{$navStrings.previous}' class='button' {if $prerow}onclick='return sListView.save_checks({$pageData.offsets.prev}, "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.prevPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file="previous.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<a href='{$pageData.urls.prevPage}' {if $prerow}onclick="return sListView.save_checks({$pageData.offsets.prev}, '{$moduleString}')"{/if} ><img src='{sugar_getimagepath file="previous.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' > {$navStrings.previous}</a> -->
|
||||||
|
{else}
|
||||||
|
<button type='button' id='popupViewPrevButton' class='button' disabled title='{$navStrings.previous}'>
|
||||||
|
<img src='{sugar_getimagepath file="previous_off.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<img src='{sugar_getimagepath file="previous_off.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' > {$navStrings.previous} -->
|
||||||
|
{/if}
|
||||||
|
<span class='pageNumbers'>({if $pageData.offsets.lastOffsetOnPage == 0}0{else}{$pageData.offsets.current+1}{/if} - {$pageData.offsets.lastOffsetOnPage} {$navStrings.of} {if $pageData.offsets.totalCounted}{$pageData.offsets.total}{else}{$pageData.offsets.total}{if $pageData.offsets.lastOffsetOnPage != $pageData.offsets.total}+{/if}{/if})</span>
|
||||||
|
{if $pageData.urls.nextPage}
|
||||||
|
<button type='button' id='popupViewNextButton' title='{$navStrings.next}' class='button' {if $prerow}onclick='return sListView.save_checks({$pageData.offsets.next}, "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.nextPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file="next.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!-- <a href='{$pageData.urls.nextPage}' {if $prerow}onclick="return sListView.save_checks({$pageData.offsets.next}, '{$moduleString}')"{/if} >{$navStrings.next} <img src='{sugar_getimagepath file="next.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' ></a> -->
|
||||||
|
{else}
|
||||||
|
<button type='button' id='popupViewNextButton' class='button' title='{$navStrings.next}' disabled>
|
||||||
|
<img src='{sugar_getimagepath file="next_off.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!-- {$navStrings.next} <img src='{sugar_getimagepath file="next_off.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' >-->
|
||||||
|
{/if}
|
||||||
|
{if $pageData.urls.endPage && $pageData.offsets.total != $pageData.offsets.lastOffsetOnPage}
|
||||||
|
<button type='button' id='popupViewEndButton' title='{$navStrings.end}' class='button' {if $prerow}onclick='return sListView.save_checks({$pageData.offsets.end}, "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.endPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file="end.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<a href='{$pageData.urls.endPage}' {if $prerow}onclick="return sListView.save_checks({$pageData.offsets.end}, '{$moduleString}')"{/if} >{$navStrings.end} <img src='{sugar_getimagepath file="end.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' ></a></td>-->
|
||||||
|
{elseif !$pageData.offsets.totalCounted || $pageData.offsets.total == $pageData.offsets.lastOffsetOnPage}
|
||||||
|
<button type='button' id='popupViewEndButton' class='button' disabled title='{$navStrings.end}'>
|
||||||
|
<img src='{sugar_getimagepath file="end_off.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!-- {$navStrings.end} <img src='{sugar_getimagepath file="end_off.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' >-->
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr height='20'>
|
||||||
|
{if $prerow}
|
||||||
|
<th scope='col' nowrap="nowrap" width='1%'>
|
||||||
|
<input type='checkbox' class='checkbox' id='massall' name='massall' value='' onclick='sListView.check_all(document.MassUpdate, "mass[]", this.checked);' />
|
||||||
|
</th>
|
||||||
|
{/if}
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$displayColumns key=colHeader item=params}
|
||||||
|
<th scope='col' width='{$params.width}%' nowrap="nowrap">
|
||||||
|
<div style='white-space: nowrap;'width='100%' align='{$params.align|default:'left'}'>
|
||||||
|
{if $params.sortable|default:true}
|
||||||
|
<a href='#' onclick='location.href="{$pageData.urls.orderBy}{$params.orderBy|default:$colHeader|lower}"; return sListView.save_checks(0, "{$moduleString}");' class='listViewThLinkS1'>{sugar_translate label=$params.label module=$pageData.bean.moduleDir}
|
||||||
|
{if $params.orderBy|default:$colHeader|lower == $pageData.ordering.orderBy}
|
||||||
|
{if $pageData.ordering.sortOrder == 'ASC'}
|
||||||
|
{capture assign="imageName"}arrow_down.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{else}
|
||||||
|
{capture assign="imageName"}arrow_up.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{capture assign="imageName"}arrow.{$arrowExt}{/capture}
|
||||||
|
<img border='0' src='{sugar_getimagepath file=$imageName}' width='{$arrowWidth}' height='{$arrowHeight}' align='absmiddle' alt='{$arrowAlt}'>
|
||||||
|
{/if}
|
||||||
|
</a>
|
||||||
|
{else}
|
||||||
|
{sugar_translate label=$params.label module=$pageData.bean.moduleDir}
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
{if !empty($quickViewLinks)}
|
||||||
|
<th scope='col' nowrap="nowrap" width='1%'> </th>
|
||||||
|
{/if}
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{foreach name=rowIteration from=$data key=id item=rowData}
|
||||||
|
{if $smarty.foreach.rowIteration.iteration is odd}
|
||||||
|
{assign var='_rowColor' value=$rowColor[0]}
|
||||||
|
{else}
|
||||||
|
{assign var='_rowColor' value=$rowColor[1]}
|
||||||
|
{/if}
|
||||||
|
<tr height='20' class='{$_rowColor}S1'>
|
||||||
|
{if $prerow}
|
||||||
|
<td width='1%' nowrap='nowrap'>
|
||||||
|
<input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='{$rowData[$params.id]|default:$rowData.ID}'>
|
||||||
|
{$pageData.additionalDetails.$id}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{counter start=0 name="colCounter" print=false assign="colCounter"}
|
||||||
|
{foreach from=$displayColumns key=col item=params}
|
||||||
|
<td scope='row' align='{$params.align|default:'left'}' valign=top class='{$_rowColor}S1' bgcolor='{$_bgColor}'>
|
||||||
|
{if $params.link && !$params.customCode}
|
||||||
|
|
||||||
|
<{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN} href='#' onclick="send_back('{if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$params.module|default:$pageData.bean.moduleDir}{/if}','{$rowData[$params.id]|default:$rowData.ID}');">{$rowData.$col}</{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN}>
|
||||||
|
|
||||||
|
{elseif $params.customCode}
|
||||||
|
{sugar_evalcolumn_old var=$params.customCode rowData=$rowData}
|
||||||
|
{elseif $params.currency_format}
|
||||||
|
{sugar_currency_format
|
||||||
|
var=$rowData.$col
|
||||||
|
round=$params.currency_format.round
|
||||||
|
decimals=$params.currency_format.decimals
|
||||||
|
symbol=$params.currency_format.symbol
|
||||||
|
convert=$params.currency_format.convert
|
||||||
|
currency_symbol=$params.currency_format.currency_symbol
|
||||||
|
}
|
||||||
|
{elseif $params.type == 'bool'}
|
||||||
|
<input type='checkbox' disabled=disabled class='checkbox'
|
||||||
|
{if !empty($rowData[$col])}
|
||||||
|
checked=checked
|
||||||
|
{/if}
|
||||||
|
/>
|
||||||
|
{elseif $params.type == 'multienum' }
|
||||||
|
{counter name="oCount" assign="oCount" start=0}
|
||||||
|
{multienum_to_array string=$rowData.$col assign="vals"}
|
||||||
|
{foreach from=$vals item=item}
|
||||||
|
{counter name="oCount"}
|
||||||
|
{sugar_translate label=$params.options select=$item}{if $oCount != count($vals)},{/if}
|
||||||
|
{/foreach}
|
||||||
|
{else}
|
||||||
|
{$rowData.$col}
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
{counter name="colCounter"}
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
{/foreach}
|
||||||
|
<tr class='pagination'>
|
||||||
|
<td colspan='{$colCount+1}' align='right'>
|
||||||
|
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
||||||
|
<tr>
|
||||||
|
<td align='left' >
|
||||||
|
</td>
|
||||||
|
<td align='right' nowrap='nowrap'>
|
||||||
|
{if $pageData.urls.startPage}
|
||||||
|
<button type='button' title='{$navStrings.start}' class='button' {if $prerow}onclick='return sListView.save_checks(0, "{$moduleString}");'{else} onClick='location.href="{$pageData.urls.startPage}"' {/if}>
|
||||||
|
<img src='{sugar_getimagepath file="start.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<a href='{$pageData.urls.startPage}' {if $prerow}onclick="return sListView.save_checks(0, '{$moduleString}')"{/if} ><img src='{sugar_getimagepath file="start.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' > {$navStrings.start}</a> -->
|
||||||
|
{else}
|
||||||
|
<button type='button' title='{$navStrings.start}' class='button' disabled>
|
||||||
|
<img src='{sugar_getimagepath file="start_off.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<img src='{sugar_getimagepath file="start_off.png"}' alt='{$navStrings.start}' align='absmiddle' border='0' > {$navStrings.start} -->
|
||||||
|
{/if}
|
||||||
|
{if $pageData.urls.prevPage}
|
||||||
|
<button type='button' title='{$navStrings.previous}' class='button' {if $prerow}onclick='return sListView.save_checks({$pageData.offsets.prev}, "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.prevPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file="previous.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<a href='{$pageData.urls.prevPage}' {if $prerow}onclick="return sListView.save_checks({$pageData.offsets.prev}, '{$moduleString}')"{/if} ><img src='{sugar_getimagepath file="previous.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' > {$navStrings.previous}</a> -->
|
||||||
|
{else}
|
||||||
|
<button type='button' class='button' disabled title='{$navStrings.previous}'>
|
||||||
|
<img src='{sugar_getimagepath file="previous_off.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<img src='{sugar_getimagepath file="previous_off.png"}' alt='{$navStrings.previous}' align='absmiddle' border='0' > {$navStrings.previous} -->
|
||||||
|
{/if}
|
||||||
|
<span class='pageNumbers'>({if $pageData.offsets.lastOffsetOnPage == 0}0{else}{$pageData.offsets.current+1}{/if} - {$pageData.offsets.lastOffsetOnPage} {$navStrings.of} {if $pageData.offsets.totalCounted}{$pageData.offsets.total}{else}{$pageData.offsets.total}{if $pageData.offsets.lastOffsetOnPage != $pageData.offsets.total}+{/if}{/if})</span>
|
||||||
|
{if $pageData.urls.nextPage}
|
||||||
|
<button type='button' title='{$navStrings.next}' class='button' {if $prerow}onclick='return sListView.save_checks({$pageData.offsets.next}, "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.nextPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file="next.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!-- <a href='{$pageData.urls.nextPage}' {if $prerow}onclick="return sListView.save_checks({$pageData.offsets.next}, '{$moduleString}')"{/if} >{$navStrings.next} <img src='{sugar_getimagepath file="next.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' ></a> -->
|
||||||
|
{else}
|
||||||
|
<button type='button' class='button' title='{$navStrings.next}' disabled>
|
||||||
|
<img src='{sugar_getimagepath file="next_off.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!-- {$navStrings.next} <img src='{sugar_getimagepath file="next_off.png"}' alt='{$navStrings.next}' align='absmiddle' border='0' >-->
|
||||||
|
{/if}
|
||||||
|
{if $pageData.urls.endPage && $pageData.offsets.total != $pageData.offsets.lastOffsetOnPage}
|
||||||
|
<button type='button' title='{$navStrings.end}' class='button' {if $prerow}onclick='return sListView.save_checks({$pageData.offsets.end}, "{$moduleString}")' {else} onClick='location.href="{$pageData.urls.endPage}"'{/if}>
|
||||||
|
<img src='{sugar_getimagepath file="end.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!--<a href='{$pageData.urls.endPage}' {if $prerow}onclick="return sListView.save_checks({$pageData.offsets.end}, '{$moduleString}')"{/if} >{$navStrings.end} <img src='{sugar_getimagepath file="end.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' ></a></td>-->
|
||||||
|
{elseif !$pageData.offsets.totalCounted || $pageData.offsets.total == $pageData.offsets.lastOffsetOnPage}
|
||||||
|
<button type='button' class='button' disabled title='{$navStrings.end}'>
|
||||||
|
<img src='{sugar_getimagepath file="end_off.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' >
|
||||||
|
</button>
|
||||||
|
<!-- {$navStrings.end} <img src='{sugar_getimagepath file="end_off.png"}' alt='{$navStrings.end}' align='absmiddle' border='0' >-->
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
{if $prerow}
|
||||||
|
<script>
|
||||||
|
{literal}function lvg_dtails(id){return SUGAR.util.getAdditionalDetails( '{/literal}{$module}{literal}',id, 'adspan_'+id);}{/literal}
|
||||||
|
</script>
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
|
{$APP.LBL_SEARCH_POPULATE_ONLY}
|
||||||
|
{/if}
|
||||||
|
{{include file=$footerTpl}}
|
||||||
51
include/Popups/tpls/footer.tpl
Executable file
51
include/Popups/tpls/footer.tpl
Executable file
@@ -0,0 +1,51 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{if $prerow}}
|
||||||
|
</form>
|
||||||
|
{{/if}}
|
||||||
|
{literal}
|
||||||
|
<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());
|
||||||
|
}
|
||||||
|
|
||||||
|
enableQS(false);
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
117
include/Popups/tpls/header.tpl
Executable file
117
include/Popups/tpls/header.tpl
Executable file
@@ -0,0 +1,117 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_3.js'}"></script>
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file="jscalendar/lang/calendar-$lang.js"} . '"></script>
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file='include/JSON.js'}"></script>
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/popup_helper.js'}"></script>
|
||||||
|
<script type='text/javascript' src='{sugar_getjspath file='include/javascript/sugar_grp_overlib.js'}'></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
{$ASSOCIATED_JAVASCRIPT_DATA}
|
||||||
|
</script>
|
||||||
|
{{if isset($formData)}}
|
||||||
|
{$SEARCH_FORM_HEADER}
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
|
||||||
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||||
|
<tr><td>
|
||||||
|
{$searchForm}
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="hidden" name="module" value="{$module}" />
|
||||||
|
<input type="hidden" name="action" value="Popup" />
|
||||||
|
<input type="hidden" name="query" value="true" />
|
||||||
|
<input type="hidden" name="func_name" value="" />
|
||||||
|
<input type="hidden" name="request_data" value="{$request_data}" />
|
||||||
|
<input type="hidden" name="populate_parent" value="false" />
|
||||||
|
<input type="hidden" name="hide_clear_button" value="true" />
|
||||||
|
<input type="hidden" name="record_id" value="" />
|
||||||
|
{$MODE}
|
||||||
|
<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>
|
||||||
|
<td align='right'></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
{{/if}}
|
||||||
|
{{if isset($ADDFORM)}}
|
||||||
|
<p>
|
||||||
|
{{if isset($popupMeta)}}
|
||||||
|
<div id='addformlink'>
|
||||||
|
<input type="button" name="showAdd" class="button" value="{$popupMeta.create.createButton}" onclick="toggleDisplay('addform');" />
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
<div id='addform' style='display:none;position:relative;z-index:2;left:0px;top:0px;'>
|
||||||
|
<form name="{$object_name}Save" onsubmit="return check_form('{$object_name}Save');" method="post" action="index.php">
|
||||||
|
{$ADDFORMHEADER}
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tr><td>
|
||||||
|
<input type="hidden" name="module" value="{$module}" />
|
||||||
|
<input type="hidden" name="action" value="Popup" />
|
||||||
|
<input type="hidden" name="doAction" value="save" />
|
||||||
|
<input type="hidden" name="query" value="true" />
|
||||||
|
{$ADDFORM}
|
||||||
|
</td></tr>
|
||||||
|
</table></td></tr></table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
{{if $prerow}}
|
||||||
|
<form action="index.php" method="post" name="MassUpdate" id="MassUpdate">
|
||||||
|
{$MODE}
|
||||||
|
<input type="hidden" name="mu" value="false" />
|
||||||
|
<input type='hidden' name='massupdate' value='true' />
|
||||||
|
{$massUpdateData}
|
||||||
|
<input type='hidden' name='Leads_LEAD_offset' value=''><input type='hidden' name='saved_associated_data' value=''><input type='hidden' name='module' value='{$module}'><input type='hidden' name='action' value='Popup'><input type='hidden' name='return_module' value='{$module}'><input type='hidden' name='return_action' value='Popup'><input type='hidden' name='hide_clear_button' value='true'><input type='hidden' name='current_query_by_page' value='{$current_query}'>
|
||||||
|
|
||||||
|
{$multiSelectData}
|
||||||
|
<input class="button" type="button" value='{$APP.LBL_SELECT_BUTTON_LABEL}' onclick="send_back_selected('{$module}',document.MassUpdate,'mass[]','{$APP.ERR_NOTHING_SELECTED}');">
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
82
include/SearchForm/tpls/SearchFormGeneric.tpl
Executable file
82
include/SearchForm/tpls/SearchFormGeneric.tpl
Executable file
@@ -0,0 +1,82 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||||
|
<tr>
|
||||||
|
{{foreach name=colIteration from=$formData key=col item=colData}}
|
||||||
|
{counter assign=index}
|
||||||
|
{math equation="left % right"
|
||||||
|
left=$index
|
||||||
|
right=$templateMeta.maxColumns
|
||||||
|
assign=modVal
|
||||||
|
}
|
||||||
|
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
|
||||||
|
</tr><tr>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<td scope="row" nowrap="nowrap" width='1%' >
|
||||||
|
{{if isset($colData.field.label)}}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td nowrap="nowrap" width='1%'>
|
||||||
|
{{if $fields[$colData.field.name]}}
|
||||||
|
{{sugar_field parentFieldArray='fields' vardef=$fields[$colData.field.name] displayType='searchView' displayParams=$colData.field.displayParams typeOverride=$colData.field.type formName=$form_name}}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
{{/foreach}}
|
||||||
|
{if $formData|@count >= $templateMeta.maxColumns}
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="{$searchTableColumnCount}">
|
||||||
|
{else}
|
||||||
|
<td style="padding-left: 10px !important;">
|
||||||
|
{/if}
|
||||||
|
<input tabindex='2' title='{$APP.LBL_SEARCH_BUTTON_TITLE}' accessKey='{$APP.LBL_SEARCH_BUTTON_KEY}' onclick='SUGAR.savedViews.setChooser()' class='button' type='submit' name='button' value='{$APP.LBL_SEARCH_BUTTON_LABEL}' id='search_form_submit'/>
|
||||||
|
<input tabindex='2' title='{$APP.LBL_CLEAR_BUTTON_TITLE}' accessKey='{$APP.LBL_CLEAR_BUTTON_KEY}' onclick='SUGAR.searchForm.clear_form(this.form);' class='button' type='button' name='clear' id='search_form_clear' value='{$APP.LBL_CLEAR_BUTTON_LABEL}'/>
|
||||||
|
{if $HAS_ADVANCED_SEARCH}
|
||||||
|
<a onclick="SUGAR.searchForm.searchFormSelect('{$module}|advanced_search','{$module}|basic_search')" href="#">{$APP.LNK_ADVANCED_SEARCH}</a>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right" width="*"><img border='0' src='{sugar_getimagepath file="help-dashlet.gif"}' onmouseover="return overlib(SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_TEXT'), STICKY, MOUSEOFF,1000,WIDTH, 700, LEFT,CAPTION,'<div style=\'float:left\'>'+SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_TITLE')+'</div>', CLOSETEXT, '<div style=\'float: right\'><img border=0 style=\'margin-left:2px; margin-right: 2px;\' src={sugar_getimagepath file='close.gif'}></div>',CLOSETITLE, SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_CLOSE_TOOLTIP'), CLOSECLICK,FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass');" class="help-search" style="display:none;"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
100
include/SearchForm/tpls/SearchFormGenericAdvanced.tpl
Normal file
100
include/SearchForm/tpls/SearchFormGenericAdvanced.tpl
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||||
|
<tr>
|
||||||
|
{{foreach name=colIteration from=$formData key=col item=colData}}
|
||||||
|
|
||||||
|
{counter assign=index}
|
||||||
|
{math equation="left % right"
|
||||||
|
left=$index
|
||||||
|
right=$templateMeta.maxColumns
|
||||||
|
assign=modVal
|
||||||
|
}
|
||||||
|
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
|
||||||
|
</tr><tr>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<td scope="row" nowrap="nowrap" width='{{$templateMeta.widths.label}}%' >
|
||||||
|
{{if isset($colData.field.label)}}
|
||||||
|
{sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
|
||||||
|
{{elseif isset($fields[$colData.field.name])}}
|
||||||
|
{sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
<td nowrap="nowrap" width='{{$templateMeta.widths.field}}%'>
|
||||||
|
{{if $fields[$colData.field.name]}}
|
||||||
|
{{sugar_field parentFieldArray='fields' vardef=$fields[$colData.field.name] displayType=$displayType displayParams=$colData.field.displayParams typeOverride=$colData.field.type formName=$form_name}}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
{{/foreach}}
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan='20'>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{if $DISPLAY_SAVED_SEARCH}
|
||||||
|
<tr>
|
||||||
|
<td colspan='2'>
|
||||||
|
<a class='tabFormAdvLink' onhover href='javascript:toggleInlineSearch()'>
|
||||||
|
<img src='{sugar_getimagepath file="advanced_search.gif"}' id='up_down_img' border=0> {$APP.LNK_SAVED_VIEWS}
|
||||||
|
</a><br>
|
||||||
|
<input type='hidden' id='showSSDIV' name='showSSDIV' value='{$SHOWSSDIV}'><p>
|
||||||
|
</td>
|
||||||
|
<td scope='row' width='10%' nowrap="nowrap">
|
||||||
|
{sugar_translate label='LBL_SAVE_SEARCH_AS' module='SavedSearch'}:
|
||||||
|
</td>
|
||||||
|
<td width='30%' nowrap>
|
||||||
|
<input type='text' name='saved_search_name'>
|
||||||
|
<input type='hidden' name='search_module' value=''>
|
||||||
|
<input type='hidden' name='saved_search_action' value=''>
|
||||||
|
<input title='{$APP.LBL_SAVE_BUTTON_LABEL}' value='{$APP.LBL_SAVE_BUTTON_LABEL}' class='button' type='button' name='saved_search_submit' onclick='SUGAR.savedViews.setChooser(); return SUGAR.savedViews.saved_search_action("save");'>
|
||||||
|
</td>
|
||||||
|
<td scope='row' width='10%' nowrap="nowrap">
|
||||||
|
{sugar_translate label='LBL_MODIFY_CURRENT_SEARCH' module='SavedSearch'}:
|
||||||
|
</td>
|
||||||
|
<td width='30%' nowrap>
|
||||||
|
<input class='button' onclick='SUGAR.savedViews.setChooser(); return SUGAR.savedViews.saved_search_action("update")' value='{$APP.LBL_UPDATE}' title='{$APP.LBL_UPDATE}' name='ss_update' id='ss_update' type='button' >
|
||||||
|
<input class='button' onclick='return SUGAR.savedViews.saved_search_action("delete", "{sugar_translate label='LBL_DELETE_CONFIRM' module='SavedSearch'}")' value='{$APP.LBL_DELETE}' title='{$APP.LBL_DELETE}' name='ss_delete' id='ss_delete' type='button'>
|
||||||
|
<br><span id='curr_search_name'></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td colspan='6'>
|
||||||
|
<div style='{$DISPLAYSS}' id='inlineSavedSearch' >
|
||||||
|
{$SAVED_SEARCH}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{/if}
|
||||||
|
{if $displayType != 'popupView'}
|
||||||
|
<tr>
|
||||||
|
<td colspan='5'>
|
||||||
|
<input tabindex='2' title='{$APP.LBL_SEARCH_BUTTON_TITLE}' accessKey='{$APP.LBL_SEARCH_BUTTON_KEY}' onclick='SUGAR.savedViews.setChooser()' class='button' type='submit' name='button' value='{$APP.LBL_SEARCH_BUTTON_LABEL}' id='search_form_submit'/>
|
||||||
|
<input tabindex='2' title='{$APP.LBL_CLEAR_BUTTON_TITLE}' accessKey='{$APP.LBL_CLEAR_BUTTON_KEY}' onclick='SUGAR.searchForm.clear_form(this.form);' class='button' type='button' name='clear' id='search_form_clear' value='{$APP.LBL_CLEAR_BUTTON_LABEL}'/>
|
||||||
|
{if $DOCUMENTS_MODULE}
|
||||||
|
<input title="{$APP.LBL_BROWSE_DOCUMENTS_BUTTON_TITLE}" accessKey="{$APP.LBL_BROWSE_DOCUMENTS_BUTTON_KEY}" type="button" class="button" value="{$APP.LBL_BROWSE_DOCUMENTS_BUTTON_LABEL}" onclick='open_popup("Documents", 600, 400, "&caller=Documents", true, false, "");' />
|
||||||
|
{/if}
|
||||||
|
<a id="basic_search_link" onclick="SUGAR.searchForm.searchFormSelect('{$module}|basic_search','{$module}|advanced_search')" href="#">{$APP.LNK_BASIC_SEARCH}</a>
|
||||||
|
<span class='white-space'>
|
||||||
|
{if $SAVED_SEARCHES_OPTIONS}| <b>{$APP.LBL_SAVED_SEARCH_SHORTCUT}</b>
|
||||||
|
{$SAVED_SEARCHES_OPTIONS} {/if}
|
||||||
|
<span id='go_btn_span' style='display:none'><input tabindex='2' title='go_select' id='go_select' onclick='SUGAR.searchForm.clear_form(this.form);' class='button' type='button' name='go_select' value=' {$APP.LBL_GO_BUTTON_LABEL} '/></span>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right">
|
||||||
|
{if $DISPLAY_SEARCH_HELP}
|
||||||
|
<img border='0' src='{sugar_getimagepath file="help-dashlet.gif"}' onmouseover="return overlib(SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_TEXT'), STICKY, MOUSEOFF,1000,WIDTH, 700, LEFT,CAPTION,'<div style=\'float:left\'>'+SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_TITLE')+'</div>', CLOSETEXT, '<div style=\'float: right\'><img border=0 style=\'margin-left:2px; margin-right: 2px;\' src={sugar_getimagepath file='close.gif'}></div>',CLOSETITLE, SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_CLOSE_TOOLTIP'), CLOSECLICK,FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass');" class="help-search" style="display:none;">
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
{literal}
|
||||||
|
if(typeof(loadSSL_Scripts)=='function'){
|
||||||
|
loadSSL_Scripts();
|
||||||
|
}
|
||||||
|
{/literal}
|
||||||
|
</script>
|
||||||
63
include/SearchForm/tpls/footer.tpl
Executable file
63
include/SearchForm/tpls/footer.tpl
Executable file
@@ -0,0 +1,63 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
</form>
|
||||||
|
{literal}
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function toggleInlineSearch()
|
||||||
|
{
|
||||||
|
if (document.getElementById('inlineSavedSearch').style.display === 'none'){
|
||||||
|
document.getElementById('showSSDIV').value = 'yes'
|
||||||
|
document.getElementById('inlineSavedSearch').style.display = '';
|
||||||
|
{/literal}
|
||||||
|
document.getElementById('up_down_img').src='{sugar_getimagepath file="basic_search.gif"}';
|
||||||
|
{literal}
|
||||||
|
}else{
|
||||||
|
{/literal}
|
||||||
|
document.getElementById('up_down_img').src='{sugar_getimagepath file="advanced_search.gif"}';
|
||||||
|
{literal}
|
||||||
|
document.getElementById('showSSDIV').value = 'no';
|
||||||
|
document.getElementById('inlineSavedSearch').style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (document.getElementsByName('searchFormTab')[0].value) {
|
||||||
|
toggleInlineSearch();
|
||||||
|
}
|
||||||
|
} catch {}
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
53
include/SearchForm/tpls/header.tpl
Executable file
53
include/SearchForm/tpls/header.tpl
Executable file
@@ -0,0 +1,53 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<div class='listViewBody'>
|
||||||
|
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/popup_parent_helper.js'}"></script>
|
||||||
|
{$TABS}
|
||||||
|
{{if $displayView == saved_views }}
|
||||||
|
{literal}
|
||||||
|
<script>SUGAR.savedViews.handleForm();</script>
|
||||||
|
{/literal}
|
||||||
|
{{/if}}
|
||||||
|
<form name='search_form' id='search_form' class='search_form' method='post' action='index.php?module={$module}&action={$action}'>
|
||||||
|
<input type='hidden' name='searchFormTab' value='{$displayView}'/>
|
||||||
|
<input type='hidden' name='module' value='{$module}'/>
|
||||||
|
<input type='hidden' name='action' value='{$action}'/>
|
||||||
|
<input type='hidden' name='query' value='true'/>
|
||||||
|
{foreach name=tabIteration from=$TAB_ARRAY key=tabkey item=tabData}
|
||||||
|
<div id='{$module}{$tabData.name}_searchSearchForm' style='{$tabData.displayDiv}' class="edit view search {$tabData.name}">{if $tabData.displayDiv}{else}{$return_txt}{/if}</div>
|
||||||
|
{/foreach}
|
||||||
|
<div id='{$module}saved_viewsSearchForm' {{if $displayView != 'saved_views'}}style='display: none';{{/if}}>{$saved_views_txt}</div>
|
||||||
64
include/Smarty/debug.tpl
Executable file
64
include/Smarty/debug.tpl
Executable file
@@ -0,0 +1,64 @@
|
|||||||
|
{* Smarty *}
|
||||||
|
|
||||||
|
{* debug.tpl, last updated version 2.0.1 *}
|
||||||
|
|
||||||
|
{assign_debug_info}
|
||||||
|
|
||||||
|
{if isset($_smarty_debug_output) and $_smarty_debug_output eq "html"}
|
||||||
|
<table border=0 width=100%>
|
||||||
|
<tr bgcolor=#cccccc><th colspan=2>Smarty Debug Console</th></tr>
|
||||||
|
<tr bgcolor=#cccccc><td colspan=2><b>included templates & config files (load time in seconds):</b></td></tr>
|
||||||
|
{section name=templates loop=$_debug_tpls}
|
||||||
|
<tr bgcolor={if %templates.index% is even}#eeeeee{else}#fafafa{/if}><td colspan=2><tt>{section name=indent loop=$_debug_tpls[templates].depth} {/section}<font color={if $_debug_tpls[templates].type eq "template"}brown{elseif $_debug_tpls[templates].type eq "insert"}black{else}green{/if}>{$_debug_tpls[templates].filename|escape:html}</font>{if isset($_debug_tpls[templates].exec_time)} <font size=-1><i>({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}</i></font>{/if}</tt></td></tr>
|
||||||
|
{sectionelse}
|
||||||
|
<tr bgcolor=#eeeeee><td colspan=2><tt><i>no templates included</i></tt></td></tr>
|
||||||
|
{/section}
|
||||||
|
<tr bgcolor=#cccccc><td colspan=2><b>assigned template variables:</b></td></tr>
|
||||||
|
{section name=vars loop=$_debug_keys}
|
||||||
|
<tr bgcolor={if %vars.index% is even}#eeeeee{else}#fafafa{/if}><td valign=top><tt><font color=blue>{ldelim}${$_debug_keys[vars]}{rdelim}</font></tt></td><td nowrap><tt><font color=green>{$_debug_vals[vars]|@debug_print_var}</font></tt></td></tr>
|
||||||
|
{sectionelse}
|
||||||
|
<tr bgcolor=#eeeeee><td colspan=2><tt><i>no template variables assigned</i></tt></td></tr>
|
||||||
|
{/section}
|
||||||
|
<tr bgcolor=#cccccc><td colspan=2><b>assigned config file variables (outer template scope):</b></td></tr>
|
||||||
|
{section name=config_vars loop=$_debug_config_keys}
|
||||||
|
<tr bgcolor={if %config_vars.index% is even}#eeeeee{else}#fafafa{/if}><td valign=top><tt><font color=maroon>{ldelim}#{$_debug_config_keys[config_vars]}#{rdelim}</font></tt></td><td><tt><font color=green>{$_debug_config_vals[config_vars]|@debug_print_var}</font></tt></td></tr>
|
||||||
|
{sectionelse}
|
||||||
|
<tr bgcolor=#eeeeee><td colspan=2><tt><i>no config vars assigned</i></tt></td></tr>
|
||||||
|
{/section}
|
||||||
|
</table>
|
||||||
|
</BODY></HTML>
|
||||||
|
{else}
|
||||||
|
<SCRIPT language=javascript>
|
||||||
|
if( self.name == '' ) {ldelim}
|
||||||
|
var title = 'Console';
|
||||||
|
{rdelim}
|
||||||
|
else {ldelim}
|
||||||
|
var title = 'Console_' + self.name;
|
||||||
|
{rdelim}
|
||||||
|
_smarty_console = window.open("",title.value,"width=680,height=600,resizable,scrollbars=yes");
|
||||||
|
_smarty_console.document.write("<HTML><HEAD><TITLE>Smarty Debug Console_"+self.name+"</TITLE></HEAD><BODY bgcolor=#ffffff>");
|
||||||
|
_smarty_console.document.write("<table border=0 width=100%>");
|
||||||
|
_smarty_console.document.write("<tr bgcolor=#cccccc><th colspan=2>Smarty Debug Console</th></tr>");
|
||||||
|
_smarty_console.document.write("<tr bgcolor=#cccccc><td colspan=2><b>included templates & config files (load time in seconds):</b></td></tr>");
|
||||||
|
{section name=templates loop=$_debug_tpls}
|
||||||
|
_smarty_console.document.write("<tr bgcolor={if %templates.index% is even}#eeeeee{else}#fafafa{/if}><td colspan=2><tt>{section name=indent loop=$_debug_tpls[templates].depth} {/section}<font color={if $_debug_tpls[templates].type eq "template"}brown{elseif $_debug_tpls[templates].type eq "insert"}black{else}green{/if}>{$_debug_tpls[templates].filename|escape:html|escape:javascript}</font>{if isset($_debug_tpls[templates].exec_time)} <font size=-1><i>({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}</i></font>{/if}</tt></td></tr>");
|
||||||
|
{sectionelse}
|
||||||
|
_smarty_console.document.write("<tr bgcolor=#eeeeee><td colspan=2><tt><i>no templates included</i></tt></td></tr>");
|
||||||
|
{/section}
|
||||||
|
_smarty_console.document.write("<tr bgcolor=#cccccc><td colspan=2><b>assigned template variables:</b></td></tr>");
|
||||||
|
{section name=vars loop=$_debug_keys}
|
||||||
|
_smarty_console.document.write("<tr bgcolor={if %vars.index% is even}#eeeeee{else}#fafafa{/if}><td valign=top><tt><font color=blue>{ldelim}${$_debug_keys[vars]}{rdelim}</font></tt></td><td nowrap><tt><font color=green>{$_debug_vals[vars]|@debug_print_var|escape:javascript}</font></tt></td></tr>");
|
||||||
|
{sectionelse}
|
||||||
|
_smarty_console.document.write("<tr bgcolor=#eeeeee><td colspan=2><tt><i>no template variables assigned</i></tt></td></tr>");
|
||||||
|
{/section}
|
||||||
|
_smarty_console.document.write("<tr bgcolor=#cccccc><td colspan=2><b>assigned config file variables (outer template scope):</b></td></tr>");
|
||||||
|
{section name=config_vars loop=$_debug_config_keys}
|
||||||
|
_smarty_console.document.write("<tr bgcolor={if %config_vars.index% is even}#eeeeee{else}#fafafa{/if}><td valign=top><tt><font color=maroon>{ldelim}#{$_debug_config_keys[config_vars]}#{rdelim}</font></tt></td><td><tt><font color=green>{$_debug_config_vals[config_vars]|@debug_print_var|escape:javascript}</font></tt></td></tr>");
|
||||||
|
{sectionelse}
|
||||||
|
_smarty_console.document.write("<tr bgcolor=#eeeeee><td colspan=2><tt><i>no config vars assigned</i></tt></td></tr>");
|
||||||
|
{/section}
|
||||||
|
_smarty_console.document.write("</table>");
|
||||||
|
_smarty_console.document.write("</BODY></HTML>");
|
||||||
|
_smarty_console.document.close();
|
||||||
|
</SCRIPT>
|
||||||
|
{/if}
|
||||||
141
include/SubPanel/tpls/singletabmenu.tpl
Executable file
141
include/SubPanel/tpls/singletabmenu.tpl
Executable file
@@ -0,0 +1,141 @@
|
|||||||
|
{*
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*}
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
SUGAR.subpanelUtils.currentSubpanelGroup = '{$startSubPanel}';
|
||||||
|
|
||||||
|
SUGAR.subpanelUtils.subpanelMoreTab = '{$moreTab}';
|
||||||
|
|
||||||
|
SUGAR.subpanelUtils.subpanelMaxSubtabs = '{$maxSubtabs}';
|
||||||
|
|
||||||
|
SUGAR.subpanelUtils.subpanelHtml = new Array();
|
||||||
|
|
||||||
|
SUGAR.subpanelUtils.loadedGroups = Array();
|
||||||
|
SUGAR.subpanelUtils.loadedGroups.push('{$startSubPanel}');
|
||||||
|
|
||||||
|
SUGAR.subpanelUtils.subpanelSubTabs = new Array();
|
||||||
|
SUGAR.subpanelUtils.subpanelGroups = new Array();
|
||||||
|
{foreach from=$othertabs item=tab}
|
||||||
|
{assign var='notFirst' value='0'}
|
||||||
|
SUGAR.subpanelUtils.subpanelGroups['{$tab.key}'] = [{foreach from=$tab.tabs item=subtab}{if $notFirst != 0}, {else}{assign var='notFirst' value='1'}{/if}'{$subtab.key}'{/foreach}{foreach from=$otherMoreSubMenu[$tab.key].tabs item=subtab}, '{$subtab.key}'{/foreach}];
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
{assign var='notFirst' value='0'}
|
||||||
|
SUGAR.subpanelUtils.subpanelTitles = {ldelim}{foreach from=$othertabs.All.tabs item=subtab}{if $notFirst != 0}, {else}{assign var='notFirst' value='1'}{/if}'{$subtab.key}':'{$subtab.label}'{/foreach}{foreach from=$otherMoreSubMenu.All.tabs item=subtab}, '{$subtab.key}':'{$subtab.label}'{/foreach}{rdelim};
|
||||||
|
|
||||||
|
SUGAR.subpanelUtils.tabCookieName = get_module_name() + '_sp_tab';
|
||||||
|
|
||||||
|
SUGAR.subpanelUtils.showLinks = {$showLinks};
|
||||||
|
|
||||||
|
SUGAR.subpanelUtils.requestUrl = 'index.php?to_pdf=1&module=MySettings&action=LoadTabSubpanels&loadModule={$smarty.request.module}&record={$smarty.request.record}&subpanels=';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
{if !empty($sugartabs)}
|
||||||
|
<ul id="groupTabs" class="subpanelTablist">
|
||||||
|
{foreach from=$sugartabs item=tab}
|
||||||
|
<li id="{$tab.label}_sp_tab">
|
||||||
|
<a class="{$tab.type}" href="javascript:SUGAR.subpanelUtils.loadSubpanelGroup('{$tab.label}');">{$tab.label}</a>
|
||||||
|
</li>
|
||||||
|
{/foreach}
|
||||||
|
{if !empty($moreMenu)}
|
||||||
|
<li>
|
||||||
|
<div id='MorePanelHandle' onmouseover='SUGAR.subpanelUtils.menu.tbspButtonMouseOver(this.id,"","",0);'>
|
||||||
|
<img src="{sugar_getimagepath file='blank.gif'}" alt="more" border="0" height="16" width="16" />
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
|
</ul>
|
||||||
|
{* Table closed in SubPanelTiles.php, line 295 *}
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="subpanelTabForm">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if $showLinks == 'true'}
|
||||||
|
<table cellpadding="0" cellspacing="0" width='100%'>
|
||||||
|
<tr height="20">
|
||||||
|
<td class="subpanelSubTabBar" colspan="100" id="subpanelSubTabs">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" height="20" width="100%" class="subTabs">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
{foreach from=$subtabs item=tab}
|
||||||
|
{if !empty($notFirst) && ($notFirst != 0) && ($notFirst != 1)}
|
||||||
|
<td width='1'> | </td>
|
||||||
|
{else}
|
||||||
|
{assign var='notFirst' value='2'}
|
||||||
|
{/if}
|
||||||
|
<td nowrap="nowrap">
|
||||||
|
<a href='#{$tab.key}' class='subTabLink'>{$tab.label}</a>
|
||||||
|
</td>
|
||||||
|
{/foreach}
|
||||||
|
{if !empty($otherMoreSubMenu[$moreSubMenuName].tabs)}
|
||||||
|
<td nowrap="nowrap"> | <span class="subTabMore" id="MoreSub{$moreSubMenuName}PanelHandle" style="margin-left:2px; cursor: pointer; cursor: hand;" align="absmiddle" onmouseover="SUGAR.subpanelUtils.menu.tbspButtonMouseOver(this.id,'','',0);">>></span></td>
|
||||||
|
{/if}
|
||||||
|
<td width='100%'> </td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if !empty($moreMenu)}
|
||||||
|
<div id="MorePanelMenu" class="menu">
|
||||||
|
{foreach from=$moreMenu item=tab}
|
||||||
|
<a href="javascript:SUGAR.subpanelUtils.loadSubpanelGroupFromMore('{$tab.label}');" class="menuItem" id="{$tab.label}_sp_mm" parentid="MorePanelMenu" onmouseover="hiliteItem(this,'yes'); closeSubMenus(this);" onmouseout="unhiliteItem(this);">{$tab.label}</a>
|
||||||
|
{/foreach}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{foreach from=$otherMoreSubMenu item=group}
|
||||||
|
{if !empty($group.tabs)}
|
||||||
|
<div id="MoreSub{$group.key}PanelMenu" class="menu">
|
||||||
|
{foreach from=$group.tabs item=subtab}
|
||||||
|
<a href="#{$subtab.key}" class="menuItem" parentid="MoreSub{$group.key}PanelMenu" onmouseover="hiliteItem(this,'yes'); closeSubMenus(this);" onmouseout="unhiliteItem(this);">{$subtab.label}</a>
|
||||||
|
{/foreach}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
|
||||||
58
include/SugarCharts/tpls/chart.tpl
Executable file
58
include/SugarCharts/tpls/chart.tpl
Executable file
@@ -0,0 +1,58 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<div id="{$chartName}_div" style="width:{$width};height:{$height}px;z-index:80;{$style}" class="chartDiv">
|
||||||
|
<object type="application/x-shockwave-flash" data="include/SugarCharts/swf/chart.swf?inputFile={$chartXMLFile}&swfLocation=include/SugarCharts/swf/&inputColorScheme={$chartColorsXML}&inputStyleSheet={$chartStyleCSS}&inputLanguage={$chartStringsXML}" width="100%" height="100%">
|
||||||
|
<param name="allowScriptAccess" value="sameDomain"/>
|
||||||
|
<param name="movie" value="include/SugarCharts/swf/chart.swf?inputFile={$chartXMLFile}&swfLocation=include/SugarCharts/swf/&inputColorScheme={$chartColorsXML}&inputStyleSheet={$chartStyleCSS}&inputLanguage={$chartStringsXML}"/>
|
||||||
|
<param name="menu" value="false"/>
|
||||||
|
<param name="quality" value="high"/>
|
||||||
|
<param name="wmode" value="transparent" />
|
||||||
|
<p>{$app_strings.LBL_NO_FLASH_PLAYER}</p>
|
||||||
|
</object>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
if (typeof SUGAR == 'undefined' || typeof SUGAR.mySugar == 'undefined') {ldelim}
|
||||||
|
// no op
|
||||||
|
{rdelim} else {ldelim}
|
||||||
|
SUGAR.mySugar.addToChartsArray('{$chartName}', '{$chartXMLFile}', '{$width}', '{$height}', '{$chartStyleCSS}', '{$chartColorsXML}', '{$chartStringsXML}');
|
||||||
|
{rdelim}
|
||||||
|
|
||||||
|
function loadChartForReports() {ldelim}
|
||||||
|
loadChartSWF('{$chartName}', '{$chartXMLFile}', '{$width}', '{$height}', '{$chartStyleCSS}', '{$chartColorsXML}', '{$chartStringsXML}');
|
||||||
|
{rdelim}
|
||||||
|
</script>
|
||||||
68
include/SugarEmailAddress/templates/forDetailView.tpl
Executable file
68
include/SugarEmailAddress/templates/forDetailView.tpl
Executable file
@@ -0,0 +1,68 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||||
|
{foreach from=$emailAddresses item=address}
|
||||||
|
<tr>
|
||||||
|
<td style="border:none;">
|
||||||
|
{if $address.key === 'opt_out'}
|
||||||
|
<span>
|
||||||
|
{elseif $address.key === 'primary'}
|
||||||
|
<b>
|
||||||
|
{elseif $address.key === 'reply_to' && $item.key != 0}
|
||||||
|
<i>
|
||||||
|
{/if}
|
||||||
|
{$address.address}
|
||||||
|
{if $address.key === 'primary'}
|
||||||
|
</b> <i>({$app_strings.LBL_EMAIL_PRIMARY})</i>
|
||||||
|
{elseif $address.key === 'reply_to'}
|
||||||
|
<i>({$app_strings.LBL_EMAIL_REPLY_TO})</i>
|
||||||
|
{elseif $address.key === 'opt_out'}
|
||||||
|
</span> <i>({$app_strings.LBL_EMAIL_OPT_OUT})</i>
|
||||||
|
{elseif $address.key === 'invalid'}
|
||||||
|
<i>({$app_strings.LBL_EMAIL_INVALID})</i>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{foreachelse}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<i>{$app_strings.LBL_NONE}</i>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
62
include/SugarEmailAddress/templates/forDuplicatesView.tpl
Executable file
62
include/SugarEmailAddress/templates/forDuplicatesView.tpl
Executable file
@@ -0,0 +1,62 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<input type="hidden" name="{$moduleDir}_email_widget_id" value="{$email_widget_id}">
|
||||||
|
<input type="hidden" name="emailAddressWidget" value="{$emailAddressWidget}">
|
||||||
|
{counter assign="count" start=-1 print=false}
|
||||||
|
{foreach from=$emails item=email}
|
||||||
|
<input type="hidden" name="{$moduleDir}{$email_widget_id}emailAddress{counter print=true}" value="{$email}">
|
||||||
|
{/foreach}
|
||||||
|
{counter assign="count" start=-1 print=false}
|
||||||
|
{foreach from=$verified item=email}
|
||||||
|
<input type="hidden" name="{$moduleDir}{$email_widget_id}emailAddressVerifiedValue{counter print=true}" value="{$email}">
|
||||||
|
{/foreach}
|
||||||
|
{if isset($primary)}
|
||||||
|
<input type="hidden" name="{$moduleDir}{$email_widget_id}emailAddressPrimaryFlag" value="{$primary}">
|
||||||
|
{/if}
|
||||||
|
{foreach from=$optOut item=email}
|
||||||
|
<input type="hidden" name="{$moduleDir}{$email_widget_id}emailAddressOptOutFlag[]" value="{$email}">
|
||||||
|
{/foreach}
|
||||||
|
{foreach from=$invalid item=email}
|
||||||
|
<input type="hidden" name="{$moduleDir}{$email_widget_id}emailAddressInvalidFlag[]" value="{$email}">
|
||||||
|
{/foreach}
|
||||||
|
{foreach from=$replyTo item=email}
|
||||||
|
<input type="hidden" name="{$moduleDir}{$email_widget_id}emailAddressReplyToFlag[]" value="{$email}">
|
||||||
|
{/foreach}
|
||||||
|
{foreach from=$delete item=email}
|
||||||
|
<input type="hidden" name="{$moduleDir}{$email_widget_id}emailAddressDeleteFlag[]" value="{$email}">
|
||||||
|
{/foreach}
|
||||||
|
<input type="hidden" name="useEmailWidget" value="true">
|
||||||
120
include/SugarEmailAddress/templates/forEditView.tpl
Executable file
120
include/SugarEmailAddress/templates/forEditView.tpl
Executable file
@@ -0,0 +1,120 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{php}
|
||||||
|
global $emailInstances;
|
||||||
|
if (empty($emailInstances))
|
||||||
|
$emailInstances = array();
|
||||||
|
if (!isset($emailInstances[$this->_tpl_vars['module']]))
|
||||||
|
$emailInstances[$this->_tpl_vars['module']] = 0;
|
||||||
|
$this->_tpl_vars['index'] = $emailInstances[$this->_tpl_vars['module']];
|
||||||
|
$emailInstances['module']++;
|
||||||
|
{/php}
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
var emailAddressWidgetLoaded = false;
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript" src="include/SugarEmailAddress/SugarEmailAddress.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var module = '{$module}';
|
||||||
|
</script>
|
||||||
|
<table style="border-spacing: 0pt;">
|
||||||
|
<tr>
|
||||||
|
<td valign="top" NOWRAP>
|
||||||
|
<table id="{$module}emailAddressesTable{$index}" class="emailaddresses">
|
||||||
|
<tbody id="targetBody"></tbody>
|
||||||
|
<tr>
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
<input type=hidden id="{$module}_email_widget_id" name="{$module}_email_widget_id" value="">
|
||||||
|
<input type=hidden id='emailAddressWidget' name='emailAddressWidget' value='1'>
|
||||||
|
<span class="id-ff multiple ownline">
|
||||||
|
<button class='button' type='button'
|
||||||
|
onClick="javascript:SUGAR.EmailAddressWidget.instances.{$module}{$index}.addEmailAddress('{$module}emailAddressesTable{$index}','','');"
|
||||||
|
value='{$app_strings.LBL_ADD_BUTTON}'><img src="{sugar_getimagepath file="id-ff-add.png"}"></button>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
{$app_strings.LBL_EMAIL_PRIMARY}
|
||||||
|
</td>
|
||||||
|
{if $useReplyTo == true}
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
{$app_strings.LBL_EMAIL_REPLY_TO}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{if $useOptOut == true}
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
{$app_strings.LBL_EMAIL_OPT_OUT}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{if $useInvalid == true}
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
{$app_strings.LBL_EMAIL_INVALID}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<input type="hidden" name="useEmailWidget" value="true">
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
|
||||||
|
function init(){ldelim}
|
||||||
|
if(emailAddressWidgetLoaded || SUGAR.EmailAddressWidget){ldelim}
|
||||||
|
var table = YAHOO.util.Dom.get("{$module}emailAddressesTable{$index}");
|
||||||
|
var eaw = SUGAR.EmailAddressWidget.instances.{$module}{$index} = new SUGAR.EmailAddressWidget("{$module}");
|
||||||
|
eaw.emailView = '{$emailView}';
|
||||||
|
eaw.emailIsRequired = "{$required}";
|
||||||
|
var addDefaultAddress = '{$addDefaultAddress}';
|
||||||
|
var prefillEmailAddress = '{$prefillEmailAddresses}';
|
||||||
|
var prefillData = {$prefillData};
|
||||||
|
if(prefillEmailAddress == 'true') {ldelim}
|
||||||
|
eaw.prefillEmailAddresses('{$module}emailAddressesTable{$index}', prefillData);
|
||||||
|
{rdelim} else if(addDefaultAddress == 'true') {ldelim}
|
||||||
|
eaw.addEmailAddress('{$module}emailAddressesTable{$index}');
|
||||||
|
{rdelim}
|
||||||
|
if('{$module}_email_widget_id') {ldelim}
|
||||||
|
document.getElementById('{$module}_email_widget_id').value = eaw.count;
|
||||||
|
{rdelim}
|
||||||
|
{rdelim}else{ldelim}
|
||||||
|
setTimeout("init();", 500);
|
||||||
|
{rdelim}
|
||||||
|
{rdelim}
|
||||||
|
|
||||||
|
YAHOO.util.Event.onDOMReady(init);
|
||||||
|
</script>
|
||||||
104
include/SugarEmailAddress/templates/forWideFormBodyView.tpl
Executable file
104
include/SugarEmailAddress/templates/forWideFormBodyView.tpl
Executable file
@@ -0,0 +1,104 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<tr>
|
||||||
|
<td scope="row">{$app_strings.LBL_EMAIL_ADDRESSES}: </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="include/SugarEmailAddress/SugarEmailAddress.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var module = '{$module}';
|
||||||
|
</script>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">
|
||||||
|
<table style="border-spacing: 0pt;">
|
||||||
|
<tr>
|
||||||
|
<td valign="top" NOWRAP>
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0" id="{$module}emailAddressesTable{$index}" class="emailaddresses">
|
||||||
|
<tbody id="targetBody"></tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type=hidden name='emailAddressWidget' value=1>
|
||||||
|
<span class="id-ff multiple ownline">
|
||||||
|
<button class='button' type='button'
|
||||||
|
onClick="javascript:SUGAR.EmailAddressWidget.instances.{$module}{$index}.addEmailAddress('{$module}emailAddressesTable{$index}','','');"
|
||||||
|
value='{$app_strings.LBL_ADD_BUTTON}'><img src="{sugar_getimagepath file="id-ff-add.png"}"></button>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
{$app_strings.LBL_EMAIL_PRIMARY}
|
||||||
|
</td>
|
||||||
|
{if $useReplyTo == true}
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
{$app_strings.LBL_EMAIL_REPLY_TO}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{if $useOptOut == true}
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
{$app_strings.LBL_EMAIL_OPT_OUT}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
{if $useInvalid == true}
|
||||||
|
<td scope="row" NOWRAP>
|
||||||
|
{$app_strings.LBL_EMAIL_INVALID}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<input type="hidden" name="useEmailWidget" value="true">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
var table = YAHOO.util.Dom.get("{$module}emailAddressesTable{$index}");
|
||||||
|
var eaw = SUGAR.EmailAddressWidget.instances.{$module}{$index} = new SUGAR.EmailAddressWidget("{$module}");
|
||||||
|
eaw.emailView = '{$emailView}';
|
||||||
|
eaw.emailIsRequired = "{$required}";
|
||||||
|
var addDefaultAddress = '{$addDefaultAddress}';
|
||||||
|
var prefillEmailAddress = '{$prefillEmailAddresses}';
|
||||||
|
var prefillData = {$prefillData};
|
||||||
|
if(prefillEmailAddress == 'true') {ldelim}
|
||||||
|
eaw.prefillEmailAddresses('{$module}emailAddressesTable{$index}', prefillData);
|
||||||
|
{rdelim} else if(addDefaultAddress == 'true') {ldelim}
|
||||||
|
eaw.addEmailAddress('{$module}emailAddressesTable{$index}');
|
||||||
|
{rdelim}
|
||||||
|
</script>
|
||||||
56
include/SugarFields/Fields/Address/DetailView.tpl
Executable file
56
include/SugarFields/Fields/Address/DetailView.tpl
Executable file
@@ -0,0 +1,56 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
||||||
|
<tr>
|
||||||
|
<td width='99%' >
|
||||||
|
{$fields.{{$displayParams.key}}_address_street.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br}<br>
|
||||||
|
{$fields.{{$displayParams.key}}_address_postalcode.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br} {$fields.{{$displayParams.key}}_address_city.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br}<br>
|
||||||
|
{$fields.{{$displayParams.key}}_address_state.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br}
|
||||||
|
{$fields.{{$displayParams.key}}_address_country.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br}<br>
|
||||||
|
{$fields.{{$displayParams.key}}_address_ecmcommune_name.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br}
|
||||||
|
</td>
|
||||||
|
<td class='dataField' width='1%'>
|
||||||
|
{{*
|
||||||
|
This is custom code that you may set to show on the second column of the address
|
||||||
|
table. An example would be the "Copy" button present from the Accounts detailview.
|
||||||
|
See modules/Accounts/views/view.detail.php to see the value being set
|
||||||
|
*}}
|
||||||
|
|
||||||
|
{*$custom_code_{{$displayParams.key}}*}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
174
include/SugarFields/Fields/Address/EditView.tpl
Executable file
174
include/SugarFields/Fields/Address/EditView.tpl
Executable file
@@ -0,0 +1,174 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/SugarFields/Fields/Address/SugarFieldAddress.js"}'></script>
|
||||||
|
{{assign var="key" value=$displayParams.key|upper}}
|
||||||
|
{{assign var="street" value=$displayParams.key|cat:'_address_street'}}
|
||||||
|
{{assign var="city" value=$displayParams.key|cat:'_address_city'}}
|
||||||
|
{{assign var="state" value=$displayParams.key|cat:'_address_state'}}
|
||||||
|
{{assign var="country" value=$displayParams.key|cat:'_address_country'}}
|
||||||
|
{{assign var="postalcode" value=$displayParams.key|cat:'_address_postalcode'}}
|
||||||
|
{{assign var="ecmcommune_id" value=$displayParams.key|cat:'_address_ecmcommune_id'}}
|
||||||
|
{{assign var="ecmcommune_name" value=$displayParams.key|cat:'_address_ecmcommune_name'}}
|
||||||
|
<fieldset id='{{$key}}_address_fieldset'>
|
||||||
|
<legend>{sugar_translate label='LBL_{{$key}}_ADDRESS2' module='{{$module}}'}</legend>
|
||||||
|
<table border="0" cellspacing="1" cellpadding="0" class="edit" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td valign="top" id="{{$street}}_label" width='25%' scope='row' >
|
||||||
|
{sugar_translate label='LBL_STREET' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$street}}.required || {{if $street|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td width="*">
|
||||||
|
{{if $displayParams.maxlength}}
|
||||||
|
<textarea id="{{$street}}" name="{{$street}}" maxlength="{{$displayParams.maxlength}}" rows="{{$displayParams.rows|default:4}}" cols="{{$displayParams.cols|default:60}}" tabindex="{{$tabindex}}">{$fields.{{$street}}.value}</textarea>
|
||||||
|
{{else}}
|
||||||
|
<textarea id="{{$street}}" name="{{$street}}" rows="{{$displayParams.rows|default:4}}" cols="{{$displayParams.cols|default:60}}" tabindex="{{$tabindex}}">{$fields.{{$street}}.value}</textarea>
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td id="{{$city}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
{sugar_translate label='LBL_CITY' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$city}}.required || {{if $city|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="{{$city}}" id="{{$city}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$city}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td id="{{$state}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
{sugar_translate label='LBL_STATE' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$state}}.required || {{if $state|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="ui-widget">
|
||||||
|
<input type="text" name="{{$state}}" id="{{$state}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$state}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td id="{{$postalcode}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
|
||||||
|
{sugar_translate label='LBL_POSTAL_CODE' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$postalcode}}.required || {{if $postalcode|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="{{$postalcode}}" id="{{$postalcode}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$postalcode}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td id="{{$country}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
|
||||||
|
{sugar_translate label='LBL_COUNTRY' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$country}}.required || {{if $country|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="{{$country}}" id="{{$country}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$country}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td id="{{$ecmcommune_name}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
|
||||||
|
{sugar_translate label='LBL_ECMCOMMUNE' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$ecmcommune_name}}.required || {{if $ecmcommune_name|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="{{$ecmcommune_name}}" id="{{$ecmcommune_name}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$ecmcommune_name}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
<input type="hidden" name="{{$ecmcommune_id}}" id="{{$ecmcommune_id}}" >
|
||||||
|
<span class="id-ff multiple">
|
||||||
|
<button type="button" name="btn_{{sugarvar key='name'}}" tabindex="{{$tabindex}}" title="{$APP.LBL_SELECT_BUTTON_TITLE}"
|
||||||
|
accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" class="button firstChild" value="{$APP.LBL_SELECT_BUTTON_LABEL}"
|
||||||
|
onclick='{literal}open_popup(
|
||||||
|
"EcmCommunes",
|
||||||
|
800,
|
||||||
|
500,
|
||||||
|
"",
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
{"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"{/literal}{{$ecmcommune_id}}{literal}","name":"{/literal}{{$ecmcommune_name}}{literal}"}},
|
||||||
|
"single",
|
||||||
|
true
|
||||||
|
);{/literal}'><img src="{sugar_getimagepath file="id-ff-select.png"}"></button>
|
||||||
|
<button type="button" name="btn_clr_{{$ecmcommune_name}}" tabindex="{{$tabindex}}" title="{$APP.LBL_CLEAR_BUTTON_TITLE}"
|
||||||
|
accessKey="{$APP.LBL_CLEAR_BUTTON_KEY}" class="buttonlastChild" onclick="this.form.{{$ecmcommune_name}}.value = ''; this.form.{{$ecmcommune_id}}.value = '';"
|
||||||
|
value="{$APP.LBL_CLEAR_BUTTON_LABEL}"><img src="{sugar_getimagepath file="id-ff-clear.png"}"></button>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{{if $displayParams.copy}}
|
||||||
|
<tr>
|
||||||
|
<td scope='row' NOWRAP>
|
||||||
|
{sugar_translate label='LBL_COPY_ADDRESS_FROM_LEFT' module=''}:
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="{{$displayParams.key}}_checkbox" name="{{$displayParams.key}}_checkbox" type="checkbox" onclick="syncFields('{{$displayParams.copy}}', '{{$displayParams.key}}');"; CHECKED>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{else}}
|
||||||
|
<tr>
|
||||||
|
<td colspan='2' NOWRAP> </td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var fromKey = '{{$displayParams.copy}}';
|
||||||
|
var toKey = '{{$displayParams.key}}';
|
||||||
|
var checkbox = toKey + "_checkbox";
|
||||||
|
var obj = new TestCheckboxReady(checkbox);
|
||||||
|
</script>
|
||||||
58
include/SugarFields/Fields/Address/en_us.DetailView.tpl
Executable file
58
include/SugarFields/Fields/Address/en_us.DetailView.tpl
Executable file
@@ -0,0 +1,58 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
||||||
|
<tr>
|
||||||
|
<td width='99%' >
|
||||||
|
{$fields.{{$displayParams.key}}_address_street.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br}<br>
|
||||||
|
{$fields.{{$displayParams.key}}_address_city.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br} {$fields.{{$displayParams.key}}_address_state.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br} {$fields.{{$displayParams.key}}_address_postalcode.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br}<br>
|
||||||
|
{$fields.{{$displayParams.key}}_address_country.value|escape:'htmlentitydecode'|strip_tags|url2html|nl2br}
|
||||||
|
</td>
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
<td class="dataField">
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
</td>
|
||||||
|
{{/if}}
|
||||||
|
<td class='dataField' width='1%'>
|
||||||
|
{{*
|
||||||
|
This is custom code that you may set to show on the second column of the address
|
||||||
|
table. An example would be the "Copy" button present from the Accounts detailview.
|
||||||
|
See modules/Accounts/views/view.detail.php to see the value being set
|
||||||
|
*}}
|
||||||
|
{$custom_code_{{$displayParams.key}}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
137
include/SugarFields/Fields/Address/en_us.EditView.tpl
Executable file
137
include/SugarFields/Fields/Address/en_us.EditView.tpl
Executable file
@@ -0,0 +1,137 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/SugarFields/Fields/Address/SugarFieldAddress.js"}'></script>
|
||||||
|
{{assign var="key" value=$displayParams.key|upper}}
|
||||||
|
{{assign var="street" value=$displayParams.key|cat:'_address_street'}}
|
||||||
|
{{assign var="city" value=$displayParams.key|cat:'_address_city'}}
|
||||||
|
{{assign var="state" value=$displayParams.key|cat:'_address_state'}}
|
||||||
|
{{assign var="country" value=$displayParams.key|cat:'_address_country'}}
|
||||||
|
{{assign var="postalcode" value=$displayParams.key|cat:'_address_postalcode'}}
|
||||||
|
<fieldset id='{{$key}}_address_fieldset'>
|
||||||
|
<legend>{sugar_translate label='LBL_{{$key}}_ADDRESS' module='{{$module}}'}</legend>
|
||||||
|
<table border="0" cellspacing="1" cellpadding="0" class="edit" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td valign="top" id="{{$street}}_label" width='25%' scope='row' >
|
||||||
|
{sugar_translate label='LBL_STREET' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$street}}.required || {{if $street|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td width="*">
|
||||||
|
{{if $displayParams.maxlength}}
|
||||||
|
<textarea id="{{$street}}" name="{{$street}}" maxlength="{{$displayParams.maxlength}}" rows="{{$displayParams.rows|default:4}}" cols="{{$displayParams.cols|default:60}}" tabindex="{{$tabindex}}">{$fields.{{$street}}.value}</textarea>
|
||||||
|
{{else}}
|
||||||
|
<textarea id="{{$street}}" name="{{$street}}" rows="{{$displayParams.rows|default:4}}" cols="{{$displayParams.cols|default:60}}" tabindex="{{$tabindex}}">{$fields.{{$street}}.value}</textarea>
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td id="{{$city}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
{sugar_translate label='LBL_CITY' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$city}}.required || {{if $city|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="{{$city}}" id="{{$city}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$city}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td id="{{$state}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
{sugar_translate label='LBL_STATE' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$state}}.required || {{if $state|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="{{$state}}" id="{{$state}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$state}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td id="{{$postalcode}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
|
||||||
|
{sugar_translate label='LBL_POSTAL_CODE' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$postalcode}}.required || {{if $postalcode|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="{{$postalcode}}" id="{{$postalcode}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$postalcode}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td id="{{$country}}_label" width='{{$def.templateMeta.widths[$smarty.foreach.colIteration.index].label}}%' scope='row' >
|
||||||
|
|
||||||
|
{sugar_translate label='LBL_COUNTRY' module='{{$module}}'}:
|
||||||
|
{if $fields.{{$country}}.required || {{if $country|lower|in_array:$displayParams.required}}true{{else}}false{{/if}}}
|
||||||
|
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="{{$country}}" id="{{$country}}" size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}} value='{$fields.{{$country}}.value}' tabindex="{{$tabindex}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{{if $displayParams.copy}}
|
||||||
|
<tr>
|
||||||
|
<td scope='row' NOWRAP>
|
||||||
|
{sugar_translate label='LBL_COPY_ADDRESS_FROM_LEFT' module=''}:
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="{{$displayParams.key}}_checkbox" name="{{$displayParams.key}}_checkbox" type="checkbox" onclick="syncFields('{{$displayParams.copy}}', '{{$displayParams.key}}');"; CHECKED>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{else}}
|
||||||
|
<tr>
|
||||||
|
<td colspan='2' NOWRAP> </td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var fromKey = '{{$displayParams.copy}}';
|
||||||
|
var toKey = '{{$displayParams.key}}';
|
||||||
|
var checkbox = toKey + "_checkbox";
|
||||||
|
var obj = new TestCheckboxReady(checkbox);
|
||||||
|
</script>
|
||||||
40
include/SugarFields/Fields/Base/DetailView.tpl
Executable file
40
include/SugarFields/Fields/Base/DetailView.tpl
Executable file
@@ -0,0 +1,40 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<span id='{{sugarvar key='name'}}'>{{sugarvar key='value'}}</span>
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
40
include/SugarFields/Fields/Base/DetailViewFunction.tpl
Executable file
40
include/SugarFields/Fields/Base/DetailViewFunction.tpl
Executable file
@@ -0,0 +1,40 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{sugarvar key='value'}}
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
47
include/SugarFields/Fields/Base/EditView.tpl
Executable file
47
include/SugarFields/Fields/Base/EditView.tpl
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{if strlen({{sugarvar key='value' string=true}}) <= 0}
|
||||||
|
|
||||||
|
{assign var="value" value={{sugarvar key='default_value' string=true}} }
|
||||||
|
{else}
|
||||||
|
{assign var="value" value={{sugarvar key='value' string=true}} }
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<input type='text' name='{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}'
|
||||||
|
id='{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}' size='{{$displayParams.size|default:30}}'
|
||||||
|
{{if isset($displayParams.maxlength)}}maxlength='{{$displayParams.maxlength}}'{{elseif isset($vardef.len)}}maxlength='{{$vardef.len}}'{{/if}}
|
||||||
|
value='{$value}' title='{{$vardef.help}}' tabindex='{{$tabindex}}' {{$displayParams.field}}>
|
||||||
37
include/SugarFields/Fields/Base/EditViewFunction.tpl
Executable file
37
include/SugarFields/Fields/Base/EditViewFunction.tpl
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{sugarvar key='value'}}
|
||||||
38
include/SugarFields/Fields/Base/InlineEdit.tpl
Executable file
38
include/SugarFields/Fields/Base/InlineEdit.tpl
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{assign var=fieldName value=$vardef.name}}
|
||||||
|
<input type='text' name='{{$fieldName}}' value='{{$parentFieldArray->$fieldName}}' onblur='InlineEditor.save()' size='40'>
|
||||||
38
include/SugarFields/Fields/Base/InlineEditView.tpl
Executable file
38
include/SugarFields/Fields/Base/InlineEditView.tpl
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{assign var=fieldName value=$vardef.name}}
|
||||||
|
{{$parentFieldArray->$fieldName}}
|
||||||
38
include/SugarFields/Fields/Base/ListView.tpl
Executable file
38
include/SugarFields/Fields/Base/ListView.tpl
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
|
||||||
|
{sugar_fetch object=$parentFieldArray key=$col}
|
||||||
37
include/SugarFields/Fields/Base/SearchForm.tpl
Executable file
37
include/SugarFields/Fields/Base/SearchForm.tpl
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<input type='text' name='{sugarvar objectName=$parentFieldArray memberName=$vardef.name key='name'}' size='50' value='{sugarvar objectName=$parentFieldArray memberName=$vardef.name key='value'}'>
|
||||||
45
include/SugarFields/Fields/Bool/DetailView.tpl
Executable file
45
include/SugarFields/Fields/Bool/DetailView.tpl
Executable file
@@ -0,0 +1,45 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{if strval({{sugarvar key='value' stringFormat='false'}}) == "1" || strval({{sugarvar key='value' stringFormat='false'}}) == "yes" || strval({{sugarvar key='value' stringFormat='false'}}) == "on"}
|
||||||
|
{assign var="checked" value="CHECKED"}
|
||||||
|
{else}
|
||||||
|
{assign var="checked" value=""}
|
||||||
|
{/if}
|
||||||
|
<input type="checkbox" class="checkbox" name="{{sugarvar key='name'}}" disabled="true" {$checked}>
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
45
include/SugarFields/Fields/Bool/EditView.tpl
Executable file
45
include/SugarFields/Fields/Bool/EditView.tpl
Executable file
@@ -0,0 +1,45 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{if strval({{sugarvar key='value' stringFormat='false'}}) == "1" || strval({{sugarvar key='value' stringFormat='false'}}) == "yes" || strval({{sugarvar key='value' stringFormat='false'}}) == "on"}
|
||||||
|
{assign var="checked" value="CHECKED"}
|
||||||
|
{else}
|
||||||
|
{assign var="checked" value=""}
|
||||||
|
{/if}
|
||||||
|
<input type="hidden" name="{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}" value="0">
|
||||||
|
<input type="checkbox" id="{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}"
|
||||||
|
name="{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}"
|
||||||
|
value="1" title='{{$vardef.help}}' tabindex="{{$tabindex}}" {$checked} {{$displayParams.field}}>
|
||||||
44
include/SugarFields/Fields/Bool/InlineEdit.tpl
Executable file
44
include/SugarFields/Fields/Bool/InlineEdit.tpl
Executable file
@@ -0,0 +1,44 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{assign var=fieldName value=$vardef.name}}
|
||||||
|
{{if strval($parentFieldArray->$fieldName) == "1"}}
|
||||||
|
{{assign var="checked" value="CHECKED"}}
|
||||||
|
{{else}}
|
||||||
|
{{assign var="checked" value=""}}
|
||||||
|
{{/if}}
|
||||||
|
<input type="hidden" name="{{$fieldName}}" value="0">
|
||||||
|
<input type="checkbox" class="checkbox" name="{{$fieldName}}" {{$checked}} onblur='InlineEditor.save()'>
|
||||||
43
include/SugarFields/Fields/Bool/InlineEditView.tpl
Executable file
43
include/SugarFields/Fields/Bool/InlineEditView.tpl
Executable file
@@ -0,0 +1,43 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{assign var=fieldName value=$vardef.name}}
|
||||||
|
{{if strval($parentFieldArray->$fieldName) == "1"}}
|
||||||
|
{{assign var="checked" value="CHECKED"}}
|
||||||
|
{{else}}
|
||||||
|
{{assign var="checked" value=""}}
|
||||||
|
{{/if}}
|
||||||
|
<input type="checkbox" class="checkbox" disabled="true" {{$checked}}>
|
||||||
42
include/SugarFields/Fields/Bool/ListView.tpl
Executable file
42
include/SugarFields/Fields/Bool/ListView.tpl
Executable file
@@ -0,0 +1,42 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{if strval($parentFieldArray.$col) == "1" || strval($parentFieldArray.$col) == "yes" || strval($parentFieldArray.$col) == "on"}
|
||||||
|
{assign var="checked" value="CHECKED"}
|
||||||
|
{else}
|
||||||
|
{assign var="checked" value=""}
|
||||||
|
{/if}
|
||||||
|
<input type="checkbox" class="checkbox" disabled="true" {$checked}>
|
||||||
54
include/SugarFields/Fields/Bool/SearchView.tpl
Executable file
54
include/SugarFields/Fields/Bool/SearchView.tpl
Executable file
@@ -0,0 +1,54 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{assign var="yes" value=""}
|
||||||
|
{assign var="no" value=""}
|
||||||
|
{assign var="default" value=""}
|
||||||
|
|
||||||
|
{if strval({{sugarvar key='value' stringFormat='false'}}) == "1"}
|
||||||
|
{assign var="yes" value="SELECTED"}
|
||||||
|
{elseif strval({{sugarvar key='value' stringFormat='false'}}) == "0"}
|
||||||
|
{assign var="no" value="SELECTED"}
|
||||||
|
{else}
|
||||||
|
{assign var="default" value="SELECTED"}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<select id="{{sugarvar key='name'}}" name="{{sugarvar key='name'}}" tabindex="{{$tabindex}}" {{$displayParams.field}}>
|
||||||
|
<option value="" {$default}></option>
|
||||||
|
<option value = "0" {$no}> {$APP.LBL_SEARCH_DROPDOWN_NO}</option>
|
||||||
|
<option value = "1" {$yes}> {$APP.LBL_SEARCH_DROPDOWN_YES}</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
60
include/SugarFields/Fields/Collection/CollectionDetailView.tpl
Executable file
60
include/SugarFields/Fields/Collection/CollectionDetailView.tpl
Executable file
@@ -0,0 +1,60 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{if !$displayParams.nolink}
|
||||||
|
<a href="index.php?module={$module}&action=DetailView&record={$values.primary.id}">
|
||||||
|
{/if}
|
||||||
|
{$values.primary.name}
|
||||||
|
{if !$displayParams.nolink}
|
||||||
|
</a>
|
||||||
|
|
||||||
|
{if !empty($values.secondaries)}
|
||||||
|
<a href="javascript:collection['{$vardef.name}'].js_more_detail('{$values.primary.id}')" id='more_{$values.primary.id}' class="utilsLink"><img id='more_img_{$values.primary.id}' height="8" border="0" width="8" absmiddle="" alt="Hide/Show" src="{sugar_getimagepath file='advanced_search.gif'}"/></a>
|
||||||
|
<div id='more_div_{$values.primary.id}' style="display:none">
|
||||||
|
{foreach item=secondary_field from=$values.secondaries}
|
||||||
|
<br><a href="index.php?module={$module}&action=DetailView&record={$secondary_field.id}">
|
||||||
|
{$secondary_field.name}
|
||||||
|
</a>
|
||||||
|
{foreachelse}
|
||||||
|
{/foreach}
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/SugarFields/Fields/Collection/SugarFieldCollection.js"}'></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var collection = (typeof collection == 'undefined') ? new Array() : collection;
|
||||||
|
collection['{$vardef.name}'] = new SUGAR.collection('{$displayParams.formName}', '{$vardef.name}', '{$module}', '{$displayParams.popupData}');
|
||||||
|
</script>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
97
include/SugarFields/Fields/Collection/CollectionEditView.tpl
Executable file
97
include/SugarFields/Fields/Collection/CollectionEditView.tpl
Executable file
@@ -0,0 +1,97 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<link rel="stylesheet" type="text/css" href="include/javascript/yui-old/assets/container.css" />
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/SugarFields/Fields/Collection/SugarFieldCollection.js"}'></script>
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/JSON.js"}'></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var collection = (typeof collection == 'undefined') ? new Array() : collection;
|
||||||
|
collection['{$displayParams.formName}_{$vardef.name}'] = new SUGAR.collection('{$displayParams.formName}', '{$vardef.name}', '{$module}', '{$displayParams.popupData}');
|
||||||
|
</script>
|
||||||
|
<input type="hidden" id="update_fields_{$displayParams.formName}_{$vardef.name}_collection" name="update_fields_{$displayParams.formName}_{$vardef.name}_collection" value="">
|
||||||
|
<input type="hidden" id="{$displayParams.formName}_{$vardef.name}_new_on_update" name="{$displayParams.formName}_{$vardef.name}_new_on_update" value="{$displayParams.new_on_update}">
|
||||||
|
<input type="hidden" id="{$displayParams.formName}_{$vardef.name}_allow_update" name="{$displayParams.formName}_{$vardef.name}_allow_update" value="{$displayParams.allow_update}">
|
||||||
|
<input type="hidden" id="{$displayParams.formName}_{$vardef.name}_allow_new" name="{$displayParams.formName}_{$vardef.name}_allow_new" value="{$displayParams.allow_new}">
|
||||||
|
|
||||||
|
{if !empty($vardef.required)}
|
||||||
|
<input type="hidden" id="{$vardef.name}_field" name="{$vardef.name}_field" value="{$vardef.name}_table">
|
||||||
|
{/if}
|
||||||
|
<table name='{$displayParams.formName}_{$vardef.name}_table' id='{$displayParams.formName}_{$vardef.name}_table' style="border-spacing: 0pt;">
|
||||||
|
{include file=$cacheRowFile}
|
||||||
|
<td valign='top'>
|
||||||
|
</td>
|
||||||
|
<!-- BEGIN Remove and Radio -->
|
||||||
|
<td valign='top'>
|
||||||
|
<img id="remove_{$vardef.name}_collection_0" name="remove_{$vardef.name}_collection_0" src="{sugar_getimagepath file='delete_inline.gif'}" onclick="collection['{$displayParams.formName}_{$vardef.name}'].remove('lineFields_{$displayParams.formName}_{$vardef.name}_0');"/>
|
||||||
|
{if !empty($displayParams.allowNewValue) }
|
||||||
|
<input type="hidden" name="allow_new_value_{$vardef.name}_collection_0" id="allow_new_value_{$vardef.name}_collection_0" value="true">
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
<td valign='top' align="center">
|
||||||
|
<input id="primary_{$vardef.name}_collection_0" type="radio" class="radio" checked="checked" value="0" name="primary_{$vardef.name}_collection" style="{if empty($values.role_field)};display:none;{/if}" onclick="collection['{$displayParams.formName}_{$vardef.name}'].changePrimary(true);" />
|
||||||
|
</td>
|
||||||
|
<!-- END Remove and Radio -->
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<table name='{$displayParams.formName}_{$vardef.name}_add_table' id='{$displayParams.formName}_{$vardef.name}_add_table'>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="javascript:collection['{$displayParams.formName}_{$vardef.name}'].add();"><img class="img" id="add_{$displayParams.formName}_{$vardef.name}_image" border="0" width="10" height="10" src="{sugar_getimagepath file='plus_inline.gif'}" style="margin-top: 3px;"/></a><a href="javascript:collection['{$displayParams.formName}_{$vardef.name}'].add();"> Add </a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
{if !empty($values.secondaries)}
|
||||||
|
{foreach item=secondary_field from=$values.secondaries key=key}
|
||||||
|
<script type="text/javascript">
|
||||||
|
var temp_array = new Array();
|
||||||
|
temp_array['name'] = '{$secondary_field.name}';
|
||||||
|
temp_array['id'] = '{$secondary_field.id}';
|
||||||
|
collection['{$displayParams.formName}_{$vardef.name}'].secondaries_values.push(temp_array);
|
||||||
|
</script>
|
||||||
|
{/foreach}
|
||||||
|
{/if}
|
||||||
|
<script type="text/javascript">
|
||||||
|
collection['{$displayParams.formName}_{$vardef.name}'].add_secondaries(collection['{$displayParams.formName}_{$vardef.name}'].secondaries_values);
|
||||||
|
</script>
|
||||||
|
{literal}
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.getElementById("id_{/literal}{$displayParams.formName}_{$vardef.name}{literal}_collection_0").value = "{/literal}{$values.primary.id}{literal}";
|
||||||
|
document.getElementById("{/literal}{$displayParams.formName}_{$vardef.name}{literal}_collection_0").value = "{/literal}{$values.primary.name}{literal}";
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
|
{$quickSearchCode}
|
||||||
80
include/SugarFields/Fields/Collection/CollectionEditViewRow.tpl
Executable file
80
include/SugarFields/Fields/Collection/CollectionEditViewRow.tpl
Executable file
@@ -0,0 +1,80 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<!-- BEGIN Labels Line -->
|
||||||
|
<tr id="lineLabel_{$vardef.name}" name="lineLabel_{$vardef.name}">
|
||||||
|
<td>
|
||||||
|
{if empty($displayParams.hideNameLabel)}
|
||||||
|
{ldelim}sugar_translate label='LBL_COLLECTION_NAME'{rdelim}:
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
{foreach item=extra_field from=$displayParams.collection_field_list key=key_extra}
|
||||||
|
<td>
|
||||||
|
{$extra_field.label}
|
||||||
|
<script type="text/javascript">
|
||||||
|
collection['{$vardef.name}'].extra_fields_count++;
|
||||||
|
</script>
|
||||||
|
</td>
|
||||||
|
{/foreach}
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td id="lineLabel_{$vardef.name}_primary" {if empty($values.role_field)}style="display:none"{/if}>
|
||||||
|
{ldelim}sugar_translate label='LBL_COLLECTION_PRIMARY'{rdelim}
|
||||||
|
</td>
|
||||||
|
<!-- BEGIN Add and collapse -->
|
||||||
|
<td rowspan='1' valign='top'>
|
||||||
|
<a class="utilsLink" href="javascript:collection['{$vardef.name}'].js_more();" id='more_{$vardef.name}' {if empty($values.secondaries)}style="display:none"{/if}><img id='more_img_{$vardef.name}' height="8" border="0" width="8" absmiddle="" alt="Hide/Show" src="{sugar_getimagepath file='advanced_search.gif'}"/></a>
|
||||||
|
</td>
|
||||||
|
<!-- END Add and collapse -->
|
||||||
|
</tr>
|
||||||
|
<!-- END Labels Line -->
|
||||||
|
<tr id="lineFields_{$vardef.name}_0" name="lineFields_{$vardef.name}_0" class="lineFields_{$vardef.name}">
|
||||||
|
<td valign='top'>
|
||||||
|
<input type="text" name="{$vardef.name}_collection_0" class="sqsEnabled {$displayParams.class}" tabindex="{$tabindex}" id="{$vardef.name}_collection_0" size="{$displayParams.size}" value="" title='{$vardef.help}' autocomplete="off" {$displayParams.readOnly} {$displayParams.field}>
|
||||||
|
<input type="hidden" name="id_{$vardef.name}_collection_0" id="id_{$vardef.name}_collection_0" value="">
|
||||||
|
{if $showSelectButton}
|
||||||
|
<input type="button" name="btn_{$vardef.name}_collection_0" tabindex="{$tabindex}" title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" class="button" value="{ldelim}sugar_translate label='LBL_SELECT_BUTTON_LABEL'{rdelim}" onclick='open_popup("{$module}", 600, 400, "", true, false, {$displayParams.popupData}, "single", true);'>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
|
{foreach item=extra_field from=$displayParams.collection_field_list key=key_extra}
|
||||||
|
<td class="td_extra_field" valign='top'>
|
||||||
|
{$extra_field.field}
|
||||||
|
</td>
|
||||||
|
{/foreach}
|
||||||
60
include/SugarFields/Fields/Collection/DetailView.tpl
Executable file
60
include/SugarFields/Fields/Collection/DetailView.tpl
Executable file
@@ -0,0 +1,60 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/SugarFields/Fields/Collection/SugarFieldCollection.js"}'></script>
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/JSON.js"}'></script>
|
||||||
|
<div id='{{sugarvar key='name'}}_div' name='{{sugarvar key='name'}}_div'><img src="{sugar_getimagepath file='sqsWait.gif'}" alt="loading..." id="{{sugarvar key="name"}}_loading_img" style="display:none"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
//{literal}
|
||||||
|
var callback = {
|
||||||
|
success:function(o){
|
||||||
|
//{/literal}
|
||||||
|
document.getElementById('{{sugarvar key="name"}}_loading_img').style.display="none";
|
||||||
|
document.getElementById('{{sugarvar key="name"}}_div').innerHTML = o.responseText;
|
||||||
|
SUGAR.util.evalScript(o.responseText);
|
||||||
|
//{literal}
|
||||||
|
},
|
||||||
|
failure:function(o){
|
||||||
|
alert(SUGAR.language.get('app_strings','LBL_AJAX_FAILURE'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//{/literal}
|
||||||
|
document.getElementById('{{sugarvar key="name"}}_loading_img').style.display="inline";
|
||||||
|
postData = '&displayParams=' + '{{$displayParamsJSON}}' + '&vardef=' + '{{$vardefJSON}}' + '&module_dir=' + document.forms.DetailView.module.value + '&bean_id=' + document.forms.DetailView.record.value + '&action_type=detailview';
|
||||||
|
//{literal}
|
||||||
|
YAHOO.util.Connect.asyncRequest('POST', 'index.php?action=viewsugarfieldcollection', callback, postData);
|
||||||
|
//{/literal}
|
||||||
|
</script>
|
||||||
66
include/SugarFields/Fields/Collection/EditView.tpl
Executable file
66
include/SugarFields/Fields/Collection/EditView.tpl
Executable file
@@ -0,0 +1,66 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<link rel="stylesheet" type="text/css" href="include/javascript/yui-old/assets/container.css" />
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/SugarFields/Fields/Collection/SugarFieldCollection.js"}'></script>
|
||||||
|
<script type="text/javascript" src='{sugar_getjspath file="include/JSON.js"}'></script>
|
||||||
|
<div id='{{sugarvar key='name'}}_div' name='{{sugarvar key='name'}}_div'><img src="{sugar_getimagepath file='sqsWait.gif'}" alt="loading..." id="{{sugarvar key="name"}}_loading_img" style="display:none"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
//{literal}
|
||||||
|
var callback = {
|
||||||
|
success:function(o){
|
||||||
|
//{/literal}
|
||||||
|
//collection['{{sugarvar key="name"}}'] = new SUGAR.collection('{{sugarvar key="name"}}', "{{sugarvar key='module'}}", '{{$displayParams.popupData}}');
|
||||||
|
document.getElementById('{{sugarvar key="name"}}_loading_img').style.display="none";
|
||||||
|
document.getElementById('{{sugarvar key="name"}}_div').innerHTML = o.responseText;
|
||||||
|
SUGAR.util.evalScript(o.responseText);
|
||||||
|
{* //TODO: Expression Engine removed from Tokyo so SUGAR.forms no longer exists.
|
||||||
|
{{if !empty($required)}}
|
||||||
|
SUGAR.forms.FormValidator.add('EditView', '{{sugarvar key="name"}}_field', 'isRequiredCollection(\${{sugarvar key="name"}}_field)', SUGAR.language.get('app_strings', 'ERROR_MISSING_COLLECTION_SELECTION'));
|
||||||
|
{{/if}} *}
|
||||||
|
//{literal}
|
||||||
|
},
|
||||||
|
failure:function(o){
|
||||||
|
alert(SUGAR.language.get('app_strings','LBL_AJAX_FAILURE'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//{/literal}
|
||||||
|
document.getElementById('{{sugarvar key="name"}}_loading_img').style.display="inline";
|
||||||
|
postData = '&displayParams=' + '{{$displayParamsJSON}}' + '&vardef=' + '{{$vardefJSON}}' + '&module_dir=' + document.forms.EditView.module.value + '&bean_id=' + document.forms.EditView.record.value + '&action_type=editview';
|
||||||
|
//{literal}
|
||||||
|
YAHOO.util.Connect.asyncRequest('POST', 'index.php?action=viewsugarfieldcollection', callback, postData);
|
||||||
|
//{/literal}
|
||||||
|
</script>
|
||||||
42
include/SugarFields/Fields/Currency/DetailView.tpl
Executable file
42
include/SugarFields/Fields/Currency/DetailView.tpl
Executable file
@@ -0,0 +1,42 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<span id='{{sugarvar key='name'}}'>
|
||||||
|
{sugar_number_format var={{sugarvar key='value' stringFormat='false'}} }
|
||||||
|
</span>
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
43
include/SugarFields/Fields/Currency/EditView.tpl
Executable file
43
include/SugarFields/Fields/Currency/EditView.tpl
Executable file
@@ -0,0 +1,43 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{if strlen({{sugarvar key='value' string=true}}) <= 0}
|
||||||
|
{assign var="value" value={{sugarvar key='default_value' string=true}} }
|
||||||
|
{else}
|
||||||
|
{assign var="value" value={{sugarvar key='value' string=true}} }
|
||||||
|
{/if}
|
||||||
|
<input type='text' name='{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}'
|
||||||
|
id='{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}' size='{{$displayParams.size|default:30}}' {{if isset($displayParams.maxlength)}}maxlength='{{$displayParams.maxlength}}'{{elseif isset($vardef.len)}}maxlength='{{$varderlen}}'{{/if}} value='{sugar_number_format var=$value}' title='{{$vardef.help}}' tabindex='{{$tabindex}}' {{$displayParams.field}}>
|
||||||
42
include/SugarFields/Fields/Currency/ListView.tpl
Executable file
42
include/SugarFields/Fields/Currency/ListView.tpl
Executable file
@@ -0,0 +1,42 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{sugar_fetch object=$parentFieldArray key=$col assign='amount'}
|
||||||
|
{if stripos(strtoupper($col), '_USD') || empty($currency_id)}
|
||||||
|
{sugar_currency_format var=$amount}
|
||||||
|
{else}
|
||||||
|
{sugar_currency_format var=$amount currency_id=$currency_id}
|
||||||
|
{/if}
|
||||||
127
include/SugarFields/Fields/Datetime/EditView.tpl
Executable file
127
include/SugarFields/Fields/Datetime/EditView.tpl
Executable file
@@ -0,0 +1,127 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
|
||||||
|
{{capture name=idname assign=idname}}{{sugarvar key='name'}}{{/capture}}
|
||||||
|
{{if !empty($displayParams.idName)}}
|
||||||
|
{{assign var=idname value=$displayParams.idName}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{assign var=date_value value={{sugarvar key='value' string=true}} }
|
||||||
|
<input autocomplete="off" type="text" name="{{$idname}}" id="{{$idname}}" value="{$date_value}" title='{{$vardef.help}}' {{$displayParams.field}} tabindex='{{$tabindex}}' size="10" maxlength="10">
|
||||||
|
{{if !$displayParams.hiddeCalendar}}
|
||||||
|
<img border="0" src="{sugar_getimagepath file='jscalendar.gif'}" alt="{$APP.LBL_ENTER_DATE}" id="{{$idname}}_trigger" align="absmiddle" />
|
||||||
|
{{/if}}
|
||||||
|
{{if $displayParams.showFormats}}
|
||||||
|
(<span class="dateFormat">{$USER_DATEFORMAT}</span>)
|
||||||
|
{{/if}}
|
||||||
|
{{if !$displayParams.hiddeCalendar}}
|
||||||
|
<script type="text/javascript">
|
||||||
|
Calendar.setup ({ldelim}
|
||||||
|
inputField : "{{$idname}}",
|
||||||
|
daFormat : "{$CALENDAR_FORMAT}",
|
||||||
|
button : "{{$idname}}_trigger",
|
||||||
|
singleClick : true,
|
||||||
|
dateStr : "{$date_value}",
|
||||||
|
step : 1,
|
||||||
|
weekNumbers:false
|
||||||
|
{rdelim}
|
||||||
|
);
|
||||||
|
{literal}
|
||||||
|
function isDate(txtDate)
|
||||||
|
{
|
||||||
|
var currVal = txtDate;
|
||||||
|
if(currVal == '')
|
||||||
|
return false;
|
||||||
|
|
||||||
|
var rxDatePattern = /^(\d{1,2})(\.)(\d{1,2})(\.)(\d{4})$/; //Declare Regex
|
||||||
|
var dtArray = currVal.match(rxDatePattern); // is format OK?
|
||||||
|
|
||||||
|
if (dtArray == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
//Checks for dd/mm/yyyy
|
||||||
|
dtMonth = dtArray[3];
|
||||||
|
dtDay= dtArray[1];
|
||||||
|
dtYear = dtArray[5];
|
||||||
|
|
||||||
|
if (dtMonth < 1 || dtMonth > 12)
|
||||||
|
return false;
|
||||||
|
else if (dtDay < 1 || dtDay> 31)
|
||||||
|
return false;
|
||||||
|
else if ((dtMonth==4 || dtMonth==6 || dtMonth==9 || dtMonth==11) && dtDay ==31)
|
||||||
|
return false;
|
||||||
|
else if (dtMonth == 2)
|
||||||
|
{
|
||||||
|
var isleap = (dtYear % 4 == 0 && (dtYear % 100 != 0 || dtYear % 400 == 0));
|
||||||
|
if (dtDay> 29 || (dtDay ==29 && !isleap))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
$(document).ready(function() {
|
||||||
|
var options = {
|
||||||
|
onComplete: function(cep) {
|
||||||
|
if(isDate(cep))
|
||||||
|
$('{/literal}#{{$idname}}{literal}').css("color", "");
|
||||||
|
else
|
||||||
|
$('{/literal}#{{$idname}}{literal}').css("color", "red");
|
||||||
|
return;
|
||||||
|
},
|
||||||
|
'translation': {
|
||||||
|
A: {pattern: /[0-3]/},
|
||||||
|
B: {pattern: /[0-9]/},
|
||||||
|
C: {pattern: /[0-1]/},
|
||||||
|
D: {pattern: /[0-9]/},
|
||||||
|
Y: {pattern: /[0-9]/}
|
||||||
|
},
|
||||||
|
selectOnFocus: true
|
||||||
|
};
|
||||||
|
|
||||||
|
$('{/literal}#{{$idname}}{literal}').on('change', function () {
|
||||||
|
var tmp = $('<input></input>');
|
||||||
|
tmp.val($(this).val());
|
||||||
|
$(tmp).mask('AB.CD.YYYY', options);
|
||||||
|
$(this).val($(tmp).val())
|
||||||
|
console.log(tmp);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
{/literal}
|
||||||
|
</script>
|
||||||
|
{{/if}}
|
||||||
138
include/SugarFields/Fields/Datetime/SearchView.tpl
Executable file
138
include/SugarFields/Fields/Datetime/SearchView.tpl
Executable file
@@ -0,0 +1,138 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
|
||||||
|
{{capture name=idname assign=idname}}{{sugarvar key='name'}}{{/capture}}
|
||||||
|
{{if !empty($displayParams.idName)}}
|
||||||
|
{{assign var=idname value=$displayParams.idName}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{assign var=date_value_from value={{sugarvar key='value_from' string=true}} }
|
||||||
|
{assign var=date_value_to value={{sugarvar key='value_to' string=true}} }
|
||||||
|
<input placeholder="Od" autocomplete="off" type="text" name="{{$idname}}_from" id="{{$idname}}_from" value="{$date_value_from}" title='{{$vardef.help}}' {{$displayParams.field}} tabindex='{{$tabindex}}' size="10" maxlength="10">
|
||||||
|
{{if !$displayParams.hiddeCalendar}}
|
||||||
|
<img border="0" src="{sugar_getimagepath file='jscalendar.gif'}" alt="{$APP.LBL_ENTER_DATE}" id="{{$idname}}_trigger_from" align="absmiddle" />
|
||||||
|
{{/if}}
|
||||||
|
{{if $displayParams.showFormats}}
|
||||||
|
(<span class="dateFormat">{$USER_DATEFORMAT}</span>)
|
||||||
|
{{/if}}
|
||||||
|
<br>
|
||||||
|
<input placeholder="Do" autocomplete="off" type="text" name="{{$idname}}_to" id="{{$idname}}_to" value="{$date_value_to}" title='{{$vardef.help}}' {{$displayParams.field}} tabindex='{{$tabindex}}' size="10" maxlength="10">
|
||||||
|
{{if !$displayParams.hiddeCalendar}}
|
||||||
|
<img border="0" src="{sugar_getimagepath file='jscalendar.gif'}" alt="{$APP.LBL_ENTER_DATE}" id="{{$idname}}_trigger_to" align="absmiddle" />
|
||||||
|
{{/if}}
|
||||||
|
{{if $displayParams.showFormats}}
|
||||||
|
(<span class="dateFormat">{$USER_DATEFORMAT}</span>)
|
||||||
|
{{/if}}
|
||||||
|
{{if !$displayParams.hiddeCalendar}}
|
||||||
|
<script type="text/javascript">
|
||||||
|
Calendar.setup ({ldelim}
|
||||||
|
inputField : "{{$idname}}_from",
|
||||||
|
daFormat : "{$CALENDAR_FORMAT}",
|
||||||
|
button : "{{$idname}}_trigger_from",
|
||||||
|
singleClick : true,
|
||||||
|
dateStr : "{$date_value}",
|
||||||
|
step : 1,
|
||||||
|
weekNumbers:false
|
||||||
|
{rdelim}
|
||||||
|
);
|
||||||
|
Calendar.setup ({ldelim}
|
||||||
|
inputField : "{{$idname}}_to",
|
||||||
|
daFormat : "{$CALENDAR_FORMAT}",
|
||||||
|
button : "{{$idname}}_trigger_to",
|
||||||
|
singleClick : true,
|
||||||
|
dateStr : "{$date_value}",
|
||||||
|
step : 1,
|
||||||
|
weekNumbers:false
|
||||||
|
{rdelim}
|
||||||
|
);
|
||||||
|
{literal}
|
||||||
|
function isDate(txtDate)
|
||||||
|
{
|
||||||
|
var currVal = txtDate;
|
||||||
|
if(currVal == '')
|
||||||
|
return true;
|
||||||
|
|
||||||
|
var rxDatePattern = /^(\d{1,2})(\.)(\d{1,2})(\.)(\d{4})$/; //Declare Regex
|
||||||
|
var dtArray = currVal.match(rxDatePattern); // is format OK?
|
||||||
|
|
||||||
|
if (dtArray == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
//Checks for dd/mm/yyyy
|
||||||
|
dtMonth = dtArray[3];
|
||||||
|
dtDay= dtArray[1];
|
||||||
|
dtYear = dtArray[5];
|
||||||
|
|
||||||
|
if (dtMonth < 1 || dtMonth > 12)
|
||||||
|
return false;
|
||||||
|
else if (dtDay < 1 || dtDay> 31)
|
||||||
|
return false;
|
||||||
|
else if ((dtMonth==4 || dtMonth==6 || dtMonth==9 || dtMonth==11) && dtDay ==31)
|
||||||
|
return false;
|
||||||
|
else if (dtMonth == 2)
|
||||||
|
{
|
||||||
|
var isleap = (dtYear % 4 == 0 && (dtYear % 100 != 0 || dtYear % 400 == 0));
|
||||||
|
if (dtDay> 29 || (dtDay ==29 && !isleap))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
$(document).ready(function() {
|
||||||
|
var options = {
|
||||||
|
onComplete: function(cep) {
|
||||||
|
if(isDate(cep))
|
||||||
|
$('{/literal}#{{$idname}}{literal}').css("color", "");
|
||||||
|
else
|
||||||
|
$('{/literal}#{{$idname}}{literal}').css("color", "red");
|
||||||
|
return;
|
||||||
|
},
|
||||||
|
'translation': {
|
||||||
|
A: {pattern: /[0-3]/},
|
||||||
|
B: {pattern: /[0-9]/},
|
||||||
|
C: {pattern: /[0-1]/},
|
||||||
|
D: {pattern: /[0-9]/},
|
||||||
|
Y: {pattern: /[0-9]/}
|
||||||
|
},
|
||||||
|
selectOnFocus: true
|
||||||
|
};
|
||||||
|
$('{/literal}#{{$idname}}_from{literal}').mask('AB.CD.YYYY', options);
|
||||||
|
$('{/literal}#{{$idname}}_to{literal}').mask('AB.CD.YYYY', options);
|
||||||
|
});
|
||||||
|
{/literal}
|
||||||
|
</script>
|
||||||
|
{{/if}}
|
||||||
183
include/SugarFields/Fields/Datetimecombo/EditView.tpl
Executable file
183
include/SugarFields/Fields/Datetimecombo/EditView.tpl
Executable file
@@ -0,0 +1,183 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{capture name=idname assign=idname}}{{sugarvar key='name'}}{{/capture}}
|
||||||
|
{{if !empty($displayParams.idName)}}
|
||||||
|
{{assign var=idname value=$displayParams.idName}}
|
||||||
|
{{/if}}
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0">
|
||||||
|
<tr valign="middle">
|
||||||
|
<td nowrap>
|
||||||
|
<input autocomplete="off" type="text" id="{{$idname}}_date" value="{$fields[{{sugarvar key='name' stringFormat=true}}].value}" size="11" maxlength="10" title='{{$vardef.help}}' tabindex="{{$tabindex}}" onblur="combo_{{$idname}}.update(); {{if isset($displayParams.updateCallback)}}{{$displayParams.updateCallback}}{{/if}}">
|
||||||
|
<img border="0" src="{sugar_getimagepath file='jscalendar.gif'}" alt="{$APP.LBL_ENTER_DATE}" id="{{$idname}}_trigger" align="absmiddle">
|
||||||
|
{{if empty($displayParams.splitDateTime)}}
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
{{else}}
|
||||||
|
<br>
|
||||||
|
{{/if}}
|
||||||
|
<div id="{{$idname}}_time_section"></div>
|
||||||
|
{{if $displayParams.showNoneCheckbox}}
|
||||||
|
<script type="text/javascript">
|
||||||
|
function set_{{$idname}}_values(form) {ldelim}
|
||||||
|
if(form.{{$idname}}_flag.checked) {ldelim}
|
||||||
|
form.{{$idname}}_flag.value=1;
|
||||||
|
form.{{$idname}}.value="";
|
||||||
|
form.{{$idname}}.readOnly=true;
|
||||||
|
{rdelim} else {ldelim}
|
||||||
|
form.{{$idname}}_flag.value=0;
|
||||||
|
form.{{$idname}}.readOnly=false;
|
||||||
|
{rdelim}
|
||||||
|
{rdelim}
|
||||||
|
</script>
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{if $displayParams.showFormats}}
|
||||||
|
<tr valign="middle">
|
||||||
|
<td nowrap>
|
||||||
|
<span class="dateFormat">{$USER_DATEFORMAT}</span>
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
<span class="dateFormat">{$TIME_FORMAT}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
</table>
|
||||||
|
<input type="hidden" id="{{$idname}}" name="{{$idname}}" value="{$fields[{{sugarvar key='name' stringFormat=true}}].value}">
|
||||||
|
<script type="text/javascript" src="include/SugarFields/Fields/Datetimecombo/Datetimecombo.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var combo_{{$idname}} = new Datetimecombo("{$fields[{{sugarvar key='name' stringFormat=true}}].value}", "{{$idname}}", "{$TIME_FORMAT}", "{{$tabindex}}", '{{$displayParams.showNoneCheckbox}}', '{$fields[{{sugarvar key='name' stringFormat=true}}_flag].value}', true);
|
||||||
|
//Render the remaining widget fields
|
||||||
|
text = combo_{{$idname}}.html('{{$displayParams.updateCallback}}');
|
||||||
|
document.getElementById('{{$idname}}_time_section').innerHTML = text;
|
||||||
|
|
||||||
|
//Call eval on the update function to handle updates to calendar picker object
|
||||||
|
eval(combo_{{$idname}}.jsscript('{{$displayParams.updateCallback}}'));
|
||||||
|
|
||||||
|
addToValidate('{$form_name}',"{{$idname}}_date",'date',false,"{{$idname}}");
|
||||||
|
addToValidateBinaryDependency('{$form_name}',"{{$idname}}_hours", 'alpha', false, "{$APP.ERR_MISSING_REQUIRED_FIELDS} {$APP.LBL_HOURS}" ,"{{$idname}}_date");
|
||||||
|
addToValidateBinaryDependency('{$form_name}', "{{$idname}}_minutes", 'alpha', false, "{$APP.ERR_MISSING_REQUIRED_FIELDS} {$APP.LBL_MINUTES}" ,"{{$idname}}_date");
|
||||||
|
addToValidateBinaryDependency('{$form_name}', "{{$idname}}_meridiem", 'alpha', false, "{$APP.ERR_MISSING_REQUIRED_FIELDS} {$APP.LBL_MERIDIEM}","{{$idname}}_date");
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function update_{{$idname}}_available() {ldelim}
|
||||||
|
YAHOO.util.Event.onAvailable("{{$idname}}_date", this.handleOnAvailable, this);
|
||||||
|
{rdelim}
|
||||||
|
|
||||||
|
update_{{$idname}}_available.prototype.handleOnAvailable = function(me) {ldelim}
|
||||||
|
|
||||||
|
Calendar.setup ({ldelim}
|
||||||
|
onClose : update_{{$idname}},
|
||||||
|
inputField : "{{$idname}}_date",
|
||||||
|
ifFormat : "{$CALENDAR_FORMAT}",
|
||||||
|
daFormat : "{$CALENDAR_FORMAT}",
|
||||||
|
button : "{{$idname}}_trigger",
|
||||||
|
singleClick : true,
|
||||||
|
step : 1,
|
||||||
|
weekNumbers:false
|
||||||
|
{rdelim});
|
||||||
|
|
||||||
|
//Call update for first time to round hours and minute values
|
||||||
|
combo_{{$idname}}.update();
|
||||||
|
{rdelim}
|
||||||
|
|
||||||
|
var obj_{{$idname}} = new update_{{$idname}}_available();
|
||||||
|
{literal}
|
||||||
|
function isDate(txtDate)
|
||||||
|
{
|
||||||
|
console.log(txtDate);
|
||||||
|
var currVal = txtDate;
|
||||||
|
if(currVal == '')
|
||||||
|
return false;
|
||||||
|
|
||||||
|
var rxDatePattern = /^(\d{1,2})(\.)(\d{1,2})(\.)(\d{4})$/; //Declare Regex
|
||||||
|
var dtArray = currVal.match(rxDatePattern); // is format OK?
|
||||||
|
|
||||||
|
if (dtArray == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
//Checks for dd/mm/yyyy
|
||||||
|
dtMonth = dtArray[3];
|
||||||
|
dtDay= dtArray[1];
|
||||||
|
dtYear = dtArray[5];
|
||||||
|
|
||||||
|
if (dtMonth < 1 || dtMonth > 12)
|
||||||
|
return false;
|
||||||
|
else if (dtDay < 1 || dtDay> 31)
|
||||||
|
return false;
|
||||||
|
else if ((dtMonth==4 || dtMonth==6 || dtMonth==9 || dtMonth==11) && dtDay ==31)
|
||||||
|
return false;
|
||||||
|
else if (dtMonth == 2)
|
||||||
|
{
|
||||||
|
var isleap = (dtYear % 4 == 0 && (dtYear % 100 != 0 || dtYear % 400 == 0));
|
||||||
|
if (dtDay> 29 || (dtDay ==29 && !isleap))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
$(document).ready(function() {
|
||||||
|
var options = {
|
||||||
|
onComplete: function(cep) {
|
||||||
|
if(isDate(cep))
|
||||||
|
$('{/literal}#{{$idname}}{literal}_date').css("color", "");
|
||||||
|
else
|
||||||
|
$('{/literal}#{{$idname}}{literal}_date').css("color", "red");
|
||||||
|
return;
|
||||||
|
},
|
||||||
|
'translation': {
|
||||||
|
A: {pattern: /[0-3]/},
|
||||||
|
B: {pattern: /[0-9]/},
|
||||||
|
C: {pattern: /[0-1]/},
|
||||||
|
D: {pattern: /[0-9]/},
|
||||||
|
Y: {pattern: /[0-9]/}
|
||||||
|
},
|
||||||
|
selectOnFocus: true
|
||||||
|
};
|
||||||
|
|
||||||
|
$('{/literal}#{{$idname}}{literal}_date').on('change', function () {
|
||||||
|
var tmp = $('<input></input>');
|
||||||
|
tmp.val($(this).val());
|
||||||
|
$(tmp).mask('AB.CD.YYYY', options);
|
||||||
|
$(this).val($(tmp).val())
|
||||||
|
console.log(tmp);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
{/literal}
|
||||||
|
</script>
|
||||||
110
include/SugarFields/Fields/Datetimecombo/SearchView.tpl
Executable file
110
include/SugarFields/Fields/Datetimecombo/SearchView.tpl
Executable file
@@ -0,0 +1,110 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0">
|
||||||
|
<tr valign="middle">
|
||||||
|
<td nowrap>
|
||||||
|
<input autocomplete="off" type="text" id="{{sugarvar key='name'}}_date" value="{$fields[{{sugarvar key='name' stringFormat=true}}].value}" size="11" maxlength="10" title='{{$vardef.help}}' tabindex="{{$tabindex}}" onblur="combo_{{sugarvar key='name'}}.update(); {{if isset($displayParams.updateCallback)}}{{$displayParams.updateCallback}}{{/if}}">
|
||||||
|
<img border="0" src="{sugar_getimagepath file='jscalendar.gif'}" alt="{$APP.LBL_ENTER_DATE}" id="{{sugarvar key='name'}}_trigger" align="absmiddle">
|
||||||
|
{{if empty($displayParams.splitDateTime)}}
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
{{else}}
|
||||||
|
<br>
|
||||||
|
{{/if}}
|
||||||
|
<div id="{{sugarvar key='name'}}_time_section"></div>
|
||||||
|
{{if $displayParams.showNoneCheckbox}}
|
||||||
|
<script type="text/javascript">
|
||||||
|
function set_{{sugarvar key='name'}}_values(form) {ldelim}
|
||||||
|
if(form.{{sugarvar key='name'}}_flag.checked) {ldelim}
|
||||||
|
form.{{sugarvar key='name'}}_flag.value=1;
|
||||||
|
form.{{sugarvar key='name'}}.value="";
|
||||||
|
form.{{sugarvar key='name'}}.readOnly=true;
|
||||||
|
{rdelim} else {ldelim}
|
||||||
|
form.{{sugarvar key='name'}}_flag.value=0;
|
||||||
|
form.{{sugarvar key='name'}}.readOnly=false;
|
||||||
|
{rdelim}
|
||||||
|
{rdelim}
|
||||||
|
</script>
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{if $displayParams.showFormats}}
|
||||||
|
<tr valign="middle">
|
||||||
|
<td nowrap>
|
||||||
|
<span class="dateFormat">{$USER_DATEFORMAT}</span>
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
<span class="dateFormat">{$TIME_FORMAT}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
</table>
|
||||||
|
<input type="hidden" id="{{sugarvar key='name'}}" name="{{sugarvar key='name'}}" value="{$fields[{{sugarvar key='name' stringFormat=true}}].value}">
|
||||||
|
<script type="text/javascript" src="include/SugarFields/Fields/Datetimecombo/Datetimecombo.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var combo_{{sugarvar key='name'}} = new Datetimecombo("{$fields[{{sugarvar key='name' stringFormat=true}}].value}", "{{sugarvar key='name'}}", "{$TIME_FORMAT}", "{{$tabindex}}", '{{$displayParams.showNoneCheckbox}}', '{$fields[{{sugarvar key='name' stringFormat=true}}_flag].value}', true);
|
||||||
|
//Render the remaining widget fields
|
||||||
|
text = combo_{{sugarvar key='name'}}.html('{{$displayParams.updateCallback}}');
|
||||||
|
document.getElementById('{{sugarvar key='name'}}_time_section').innerHTML = text;
|
||||||
|
|
||||||
|
//Call eval on the update function to handle updates to calendar picker object
|
||||||
|
eval(combo_{{sugarvar key='name'}}.jsscript('{{$displayParams.updateCallback}}'));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function update_{{sugarvar key='name'}}_available() {ldelim}
|
||||||
|
YAHOO.util.Event.onAvailable("{{sugarvar key='name'}}_date", this.handleOnAvailable, this);
|
||||||
|
{rdelim}
|
||||||
|
|
||||||
|
update_{{sugarvar key='name'}}_available.prototype.handleOnAvailable = function(me) {ldelim}
|
||||||
|
Calendar.setup ({ldelim}
|
||||||
|
onClose : update_{{sugarvar key='name'}},
|
||||||
|
inputField : "{{sugarvar key='name'}}_date",
|
||||||
|
ifFormat : "{$CALENDAR_FORMAT}",
|
||||||
|
daFormat : "{$CALENDAR_FORMAT}",
|
||||||
|
button : "{{sugarvar key='name'}}_trigger",
|
||||||
|
singleClick : true,
|
||||||
|
step : 1,
|
||||||
|
weekNumbers:false
|
||||||
|
{rdelim});
|
||||||
|
|
||||||
|
//Call update for first time to round hours and minute values
|
||||||
|
combo_{{sugarvar key='name'}}.update();
|
||||||
|
{rdelim}
|
||||||
|
|
||||||
|
var obj_{{sugarvar key='name'}} = new update_{{sugarvar key='name'}}_available();
|
||||||
|
</script>
|
||||||
41
include/SugarFields/Fields/Download/DetailView.tpl
Executable file
41
include/SugarFields/Fields/Download/DetailView.tpl
Executable file
@@ -0,0 +1,41 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<a href="index.php?entryPoint=download&id={{$vardef.value}}&type={$module}">{$fields.filename.value}</a>
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
37
include/SugarFields/Fields/Download/EditView.tpl
Normal file
37
include/SugarFields/Fields/Download/EditView.tpl
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{$fields.filename.value}
|
||||||
46
include/SugarFields/Fields/Enum/DetailView.tpl
Executable file
46
include/SugarFields/Fields/Enum/DetailView.tpl
Executable file
@@ -0,0 +1,46 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{* This is here so currency fields, who don't really have dropdown
|
||||||
|
lists can work. *}
|
||||||
|
{if is_string({{sugarvar key='options' string=true}})}
|
||||||
|
{ {{sugarvar key='options' string=true}}}
|
||||||
|
{else if}
|
||||||
|
{ {{sugarvar key='options' string=true}}[{{sugarvar key='value' string=true}}]}
|
||||||
|
{/if}
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
40
include/SugarFields/Fields/Enum/DetailViewFunction.tpl
Executable file
40
include/SugarFields/Fields/Enum/DetailViewFunction.tpl
Executable file
@@ -0,0 +1,40 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{sugarvar key='value'}}
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
62
include/SugarFields/Fields/Enum/EditView.tpl
Executable file
62
include/SugarFields/Fields/Enum/EditView.tpl
Executable file
@@ -0,0 +1,62 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{*List of doms which's not editable*}
|
||||||
|
{assign var='ne' value=','|explode:"ecmlanguage,currency_id,pdf_type"}
|
||||||
|
{if empty($displayParams.idName) && !({{sugarvar key='name' string=true}}|in_array:$ne)}
|
||||||
|
{if !({{sugarvar key='noeditable' string=true}})}
|
||||||
|
<img
|
||||||
|
src="themes/Sugar5/images/edit_inline.gif"
|
||||||
|
name="{{sugarvar key='name'}}_launcher"
|
||||||
|
onclick="EcmDropdownEditor_show(
|
||||||
|
'{{sugarvar key='name'}}___ecmdropdowneditor_container'
|
||||||
|
);" style="cursor: pointer"></img>
|
||||||
|
<div style="width: 100%; height: 100%; display:none"
|
||||||
|
name="{{sugarvar key='name'}}___ecmdropdowneditor_container"
|
||||||
|
></div>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<select name="{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}"
|
||||||
|
id="{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}"
|
||||||
|
title='{{$vardef.help}}' tabindex="{{$tabindex}}" {{$displayParams.field}}
|
||||||
|
{{if isset($displayParams.javascript)}}{{$displayParams.javascript}}{{/if}}>
|
||||||
|
{if isset({{sugarvar key='value' string=true}}) && {{sugarvar key='value' string=true}} != ''}
|
||||||
|
{html_options options={{sugarvar key='options' string=true}} selected={{sugarvar key='value' string=true}}}
|
||||||
|
{else}
|
||||||
|
{html_options options={{sugarvar key='options' string=true}} selected={{sugarvar key='default' string=true}} field={{sugarvar key='name' string=true}}}
|
||||||
|
{/if}
|
||||||
|
</select>
|
||||||
39
include/SugarFields/Fields/Enum/EditViewFunction.tpl
Executable file
39
include/SugarFields/Fields/Enum/EditViewFunction.tpl
Executable file
@@ -0,0 +1,39 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<select name="{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}">
|
||||||
|
{{sugarvar key='value'}}
|
||||||
|
</select>
|
||||||
38
include/SugarFields/Fields/Enum/SearchView.tpl
Executable file
38
include/SugarFields/Fields/Enum/SearchView.tpl
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{{capture name=display_size assign=size}}{{$displayParams.size|default:6}}{{/capture}}
|
||||||
|
{html_options name='{{$vardef.name}}[]' options={{sugarvar key='options' string=true}} size="{{$size}}" style="width: 150px" {{if $size > 1}}multiple="1"{{/if}} selected={{sugarvar key='value' string=true}}}
|
||||||
48
include/SugarFields/Fields/File/DetailView.tpl
Executable file
48
include/SugarFields/Fields/File/DetailView.tpl
Executable file
@@ -0,0 +1,48 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
|
||||||
|
{assign var='existUploadedFiles' value=";"|explode:{{sugarvar key='value' string=true}} }
|
||||||
|
|
||||||
|
{foreach from=$existUploadedFiles item=key}
|
||||||
|
{assign var='values' value=":"|explode:$key }
|
||||||
|
{if $values[0]!=''}
|
||||||
|
<a href="index.php?entryPoint=download&id={$values[1]}&type={$module}" class="tabDetailViewDFLink">{$values[0]}</a>
|
||||||
|
|
||||||
|
</br>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
336
include/SugarFields/Fields/File/EditView.tpl
Executable file
336
include/SugarFields/Fields/File/EditView.tpl
Executable file
@@ -0,0 +1,336 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<link rel="stylesheet" type="text/css" href="include/SugarFields/Fields/File/BarCss.css"/>
|
||||||
|
<div id="dialogScanner1"></div>
|
||||||
|
<div id="uploadFormDiv">
|
||||||
|
</div>
|
||||||
|
<div class="progress" id="progressBar" style="display:none;">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="percent">0%</div>
|
||||||
|
</div>
|
||||||
|
<div id="statusReturnPlace">
|
||||||
|
{assign var='existUploadedFiles' value=";"|explode:{{sugarvar key='value' string=true}} }
|
||||||
|
|
||||||
|
{foreach from=$existUploadedFiles item=key}
|
||||||
|
{assign var='values' value=":"|explode:$key }
|
||||||
|
{if $values[0]!=''}
|
||||||
|
<p id='picker_{$values[1]}'>Plik {$values[0]} wgrany.
|
||||||
|
<input type='hidden' name='{{sugarvar key='name'}}_newname[]' value='{$values[1]}'/>
|
||||||
|
<input type="hidden" name='{{sugarvar key='name'}}_orginal[]' value='{$values[0]}'/>
|
||||||
|
<input type="hidden" name='{{sugarvar key='name'}}_type[]' value='{$values[2]}'/>
|
||||||
|
<input class="button" type="button" value="Usuń" name="button" onclick="{literal}removeFile('{/literal}{$values[1]}{literal}');{/literal}">
|
||||||
|
</p>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
{literal}
|
||||||
|
|
||||||
|
function addScanFile(){
|
||||||
|
var html='';
|
||||||
|
if($('#scannerPage').val()=='0'){
|
||||||
|
html+="<p id='picker_"+$('#hiddenFileId').val()+"'>Dodano nowy skan "+$('#newScanfilename').val()+".jpeg<input type='hidden' name='{/literal}{{sugarvar key='name'}}{literal}_newname[]' value='"+$('#hiddenFileId').val()+"'/>";
|
||||||
|
html+="<input type='hidden' name='{/literal}{{sugarvar key='name'}}{literal}_orginal[]' value='"+$('#newScanfilename').val()+".jpeg'/>";
|
||||||
|
html+=" <input type='hidden' name='{/literal}{{sugarvar key='name'}}{literal}_type[]' value='image/jpeg'/>";
|
||||||
|
onclick='removeFile("'+$('#hiddenFileId').val()+'");';
|
||||||
|
html+=" <input class='button' type='button' value='Usuń' name='button' onclick='"+onclick+"');'></p>";
|
||||||
|
$("#statusReturnPlace").append(html);
|
||||||
|
$( "#dialogScanner1").dialog( "close" );
|
||||||
|
} else {
|
||||||
|
html+="<p id='picker_"+$('#hiddenFileId').val()+"'>Dodano nowy skan "+$('#newScanfilename').val()+".pdf<input type='hidden' name='{/literal}{{sugarvar key='name'}}{literal}_newname[]' value='"+$('#hiddenFileId').val()+"'/>";
|
||||||
|
html+="<input type='hidden' name='{/literal}{{sugarvar key='name'}}{literal}_orginal[]' value='"+$('#newScanfilename').val()+".pdf'/>";
|
||||||
|
html+=" <input type='hidden' name='{/literal}{{sugarvar key='name'}}{literal}_type[]' value='application/pdf'/>";
|
||||||
|
onclick='removeFile("'+$('#hiddenFileId').val()+'");';
|
||||||
|
html+=" <input class='button' type='button' value='Usuń' name='button' onclick='"+onclick+"');'></p>";
|
||||||
|
$("#statusReturnPlace").append(html);
|
||||||
|
$( "#dialogScanner1").dialog( "close" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function justScan(){
|
||||||
|
var params = {
|
||||||
|
job : 'justScanCheck',
|
||||||
|
scanner : $('#scannerId').val(),
|
||||||
|
nameField : '{/literal}{{sugarvar key='name'}}{literal}',
|
||||||
|
check : '0',
|
||||||
|
type : $('#scannerPage').val(),
|
||||||
|
};
|
||||||
|
$.ajax({
|
||||||
|
type : "POST",
|
||||||
|
url : 'index.php?entryPoint=uploadAjaxFile',
|
||||||
|
dataType : "html",
|
||||||
|
async : false,
|
||||||
|
success : function(data) {
|
||||||
|
if (data == 'false') {
|
||||||
|
$('#ajaxScannerStatus').html('Nie można zeskanować dokumentu!');
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if($('#scannerPage').val()=='0'){
|
||||||
|
$('#ajaxScannerStatus').html('<img width="800px" src="upload/'+data+'"><input type="hidden" id="hiddenFileId" value="'+data+'">');
|
||||||
|
$( "#dialogScanner1").dialog( "option", "width", 1000 );
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$('#ajaxScannerStatus').html('Dodano zbiorczy skan.<input type="hidden" id="hiddenFileId" value="'+data+'">');
|
||||||
|
window.open('upload/'+data);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
console.log(data);
|
||||||
|
//$(".loading_panel").css("display", "none");
|
||||||
|
},
|
||||||
|
data : params
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function tmpName(){
|
||||||
|
var fullDate = new Date();
|
||||||
|
var twoDigitMonth = ((fullDate.getMonth().length+1) === 1)? (fullDate.getMonth()+1) : '0' + (fullDate.getMonth()+1);
|
||||||
|
|
||||||
|
var currentDate = 'skan_'+fullDate.getDate() + "_" + twoDigitMonth + "_" + fullDate.getFullYear()+'_'+fullDate.getHours()+'_'+fullDate.getMinutes();
|
||||||
|
return currentDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
function drawScannerDialog(data){
|
||||||
|
var html="<table><tr><td>Urządzenie: </td><td><select id='scannerId' name='scannerId'>"
|
||||||
|
$.each( data, function( key, value ) {
|
||||||
|
html+="<option value='"+value.id+"'>"+value.name+'</option>';
|
||||||
|
console.log( key + ": " + value );
|
||||||
|
});
|
||||||
|
html+="</select></td></tr><tr><td>Źródło:</td><td><select id='scannerPage' name='scannerPage'><option value='0' selected>Tafla</option><option value='1'>Podajnik</option></select></td></tr>";
|
||||||
|
html+="<tr><td>Nazwa pliku:</td><td><input type='text' id='newScanfilename' value='"+tmpName()+"'></td></tr>";
|
||||||
|
html+="<tr><td><input type='button' name='letsScan' onClick='DoScanCheck();' value='Skanuj'></td>";
|
||||||
|
html+="<td><input type='button' name='addScanFile' onClick='addScanFile()' value='Dodaj'></td></tr></table><div id='ajaxScannerStatus'></div>";
|
||||||
|
|
||||||
|
$( "#dialogScanner1").html(html);
|
||||||
|
$( "#dialogScanner1").dialog({
|
||||||
|
title: "Wybierz skaner",
|
||||||
|
open: function() { // open event handler
|
||||||
|
$(this) // the element being dialogged
|
||||||
|
.parent() // get the dialog widget element
|
||||||
|
.find(".ui-dialog-titlebar-close") // find the close button for this dialog
|
||||||
|
.hide(); // hide it
|
||||||
|
},
|
||||||
|
width: 300,
|
||||||
|
modal: true,
|
||||||
|
buttons: {
|
||||||
|
'Zamknij': function() {
|
||||||
|
$( this ).dialog( "close" );
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function DoScanCheck(){
|
||||||
|
$('#ajaxScannerStatus').html('Sprawdzam skaner...<img src="include/SugarFields/Fields/File/gif-load.gif">');
|
||||||
|
|
||||||
|
var params = {
|
||||||
|
job : 'justScanCheck',
|
||||||
|
scanner : $('#scannerId').val(),
|
||||||
|
nameField : '{/literal}{{sugarvar key='name'}}{literal}',
|
||||||
|
check : '1'
|
||||||
|
};
|
||||||
|
$.ajax({
|
||||||
|
type : "POST",
|
||||||
|
url : 'index.php?entryPoint=uploadAjaxFile',
|
||||||
|
dataType : "html",
|
||||||
|
async : false,
|
||||||
|
success : function(data) {
|
||||||
|
if (data == 'false') {
|
||||||
|
$('#ajaxScannerStatus').html('Sprawdz czy skaner jest włączony lub konfigurację!');
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$('#ajaxScannerStatus').html('Trwa skanowanie dokumentu...<img src="include/SugarFields/Fields/File/gif-load.gif">');
|
||||||
|
justScan();
|
||||||
|
|
||||||
|
}
|
||||||
|
//$(".loading_panel").css("display", "none");
|
||||||
|
},
|
||||||
|
data : params
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function DrawScannerList(data){
|
||||||
|
var html="Urządzenie: <select id='scannerId' name='scannerId'>"
|
||||||
|
$.each( data, function( key, value ) {
|
||||||
|
html+="<option value='"+value.id+"'>"+value.name+'</option>';
|
||||||
|
console.log( key + ": " + value );
|
||||||
|
});
|
||||||
|
html+="</select><br><input type='button' name='letsScan' onClick='DoScan();' value='Start'>";
|
||||||
|
return html;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getScannerList(){
|
||||||
|
|
||||||
|
var params = {
|
||||||
|
job : 'getScannerList',
|
||||||
|
};
|
||||||
|
$.ajax({
|
||||||
|
type : "POST",
|
||||||
|
url : 'index.php?entryPoint=uploadAjaxFile',
|
||||||
|
dataType : "json",
|
||||||
|
async : false,
|
||||||
|
success : function(data) {
|
||||||
|
if (data != '-1') {
|
||||||
|
|
||||||
|
drawScannerDialog(data);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
//$(".loading_panel").css("display", "none");
|
||||||
|
},
|
||||||
|
data : params
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function removeFile(id){
|
||||||
|
var params = {
|
||||||
|
delete : 'delete',
|
||||||
|
record : id,
|
||||||
|
};
|
||||||
|
$.ajax({
|
||||||
|
type : "POST",
|
||||||
|
url : 'index.php?entryPoint=uploadAjaxFile',
|
||||||
|
dataType : "json",
|
||||||
|
async : false,
|
||||||
|
success : function(data) {
|
||||||
|
if (data != '-1') {
|
||||||
|
|
||||||
|
console.log('dziala');
|
||||||
|
$( "#picker_"+id ).remove();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
//$(".loading_panel").css("display", "none");
|
||||||
|
},
|
||||||
|
data : params
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$("div#uploadFormDiv")
|
||||||
|
.append(
|
||||||
|
// Creating Form Div and Adding <h2> and <p> Paragraph Tag in it.
|
||||||
|
$("<form/>", {
|
||||||
|
action : 'index.php?entryPoint=uploadAjaxFile',
|
||||||
|
method : 'POST',
|
||||||
|
enctype : "multipart/form-data",
|
||||||
|
id : 'UploadFormAjax'
|
||||||
|
}).append(
|
||||||
|
// Create <form> Tag and Appending in HTML Div form1.
|
||||||
|
|
||||||
|
$("<input/>", {
|
||||||
|
type : 'button',
|
||||||
|
id : 'loadImage',
|
||||||
|
value : 'Skanuj',
|
||||||
|
onClick :"getScannerList();",
|
||||||
|
}),
|
||||||
|
$("<input/>", {
|
||||||
|
type : 'hidden',
|
||||||
|
id : 'uploadFieldName',
|
||||||
|
value : '{/literal}{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}{literal}',
|
||||||
|
name : 'uploadFieldName',
|
||||||
|
}), // Creating Input Element With Attribute.
|
||||||
|
$("<span/>",{
|
||||||
|
html:'lub'
|
||||||
|
}), $("<input/>", {
|
||||||
|
type : 'file',
|
||||||
|
id : '{/literal}{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}{literal}',
|
||||||
|
name : '{/literal}{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}[]{literal}',
|
||||||
|
onChange : "{/literal}$('#UploadFormAjax').submit();{literal}",
|
||||||
|
multiple : ''
|
||||||
|
}), // Creating Input Element With Attribute.
|
||||||
|
$("<div/>",{
|
||||||
|
style: "border: 1px solid #cccccc;background:#e6e6e6;padding:5px;position:absolute;display:none;",
|
||||||
|
id: 'deviceDiv'
|
||||||
|
}),
|
||||||
|
|
||||||
|
$("<br/>"), $("<input/>", {
|
||||||
|
type : 'submit',
|
||||||
|
id : 'submit',
|
||||||
|
value : 'Załaduj pliki',
|
||||||
|
style :'display:none',
|
||||||
|
})
|
||||||
|
|
||||||
|
));
|
||||||
|
|
||||||
|
|
||||||
|
$(document)
|
||||||
|
.ready(
|
||||||
|
function() {
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
|
||||||
|
var bar = $('.bar');
|
||||||
|
var percent = $('.percent');
|
||||||
|
var status = $('#statusReturnPlace');
|
||||||
|
|
||||||
|
|
||||||
|
$('#UploadFormAjax').ajaxForm(
|
||||||
|
{
|
||||||
|
beforeSend : function() {
|
||||||
|
$('#progressBar').show();
|
||||||
|
//status.empty();
|
||||||
|
var percentVal = '0%';
|
||||||
|
bar.width(percentVal)
|
||||||
|
percent.html(percentVal);
|
||||||
|
},
|
||||||
|
uploadProgress : function(event, position, total,
|
||||||
|
percentComplete) {
|
||||||
|
var percentVal = percentComplete + '%';
|
||||||
|
bar.width(percentVal)
|
||||||
|
percent.html(percentVal);
|
||||||
|
//console.log(percentVal, position, total);
|
||||||
|
},
|
||||||
|
success : function() {
|
||||||
|
var percentVal = '100%';
|
||||||
|
bar.width(percentVal)
|
||||||
|
percent.html(percentVal);
|
||||||
|
},
|
||||||
|
complete : function(xhr) {
|
||||||
|
status.append(xhr.responseText);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
})();
|
||||||
|
|
||||||
|
});
|
||||||
|
{/literal}
|
||||||
|
</script>
|
||||||
42
include/SugarFields/Fields/Float/DetailView.tpl
Executable file
42
include/SugarFields/Fields/Float/DetailView.tpl
Executable file
@@ -0,0 +1,42 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<span id='{{sugarvar key='name'}}'>
|
||||||
|
{sugar_number_format var={{sugarvar key='value' stringFormat='false'}} {{if !empty($vardef.precision)}}precision={{$vardef.precision}}{{/if}} field={{sugarvar key='name'}}
|
||||||
|
</span>
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
48
include/SugarFields/Fields/Float/EditView.tpl
Executable file
48
include/SugarFields/Fields/Float/EditView.tpl
Executable file
@@ -0,0 +1,48 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
{if strlen({{sugarvar key='value' string=true}}) <= 0}
|
||||||
|
{assign var="value" value={{sugarvar key='default_value' string=true}} }
|
||||||
|
{else}
|
||||||
|
{assign var="value" value={{sugarvar key='value' string=true}} }
|
||||||
|
{/if}
|
||||||
|
<input type='text' name='{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}'
|
||||||
|
id='{{if empty($displayParams.idName)}}{{sugarvar key='name'}}{{else}}{{$displayParams.idName}}{{/if}}'
|
||||||
|
size='{{$displayParams.size|default:30}}'
|
||||||
|
{{if isset($displayParams.maxlength)}}maxlength='{{$displayParams.maxlength}}'{{elseif isset($vardef.len)}}maxlength='{{$varderlen}}'{{/if}}
|
||||||
|
value='{sugar_number_format var=$value {{if !empty($vardef.precision)}}precision={{$vardef.precision}}{{/if}} field={{sugarvar key='name'}}'
|
||||||
|
title='{{$vardef.help}}'
|
||||||
|
tabindex='{{$tabindex}}' {{$displayParams.field}}>
|
||||||
50
include/SugarFields/Fields/Fullname/DetailView.tpl
Executable file
50
include/SugarFields/Fields/Fullname/DetailView.tpl
Executable file
@@ -0,0 +1,50 @@
|
|||||||
|
{*
|
||||||
|
/*********************************************************************************
|
||||||
|
* SugarCRM is a customer relationship management program developed by
|
||||||
|
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||||
|
* Free Software Foundation with the addition of the following permission added
|
||||||
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||||
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||||
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License along with
|
||||||
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
* 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||||
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||||
|
*
|
||||||
|
* The interactive user interfaces in modified source and object code versions
|
||||||
|
* of this program must display Appropriate Legal Notices, as required under
|
||||||
|
* Section 5 of the GNU Affero General Public License version 3.
|
||||||
|
*
|
||||||
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||||
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||||
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||||
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||||||
|
* "Powered by SugarCRM".
|
||||||
|
********************************************************************************/
|
||||||
|
*}
|
||||||
|
<form name="vcard" action="index.php" style="display: inline;">
|
||||||
|
<span id='{{sugarvar key='name'}}'>{{sugarvar key='value'}}</span>
|
||||||
|
|
||||||
|
<input type="hidden" name="action" value="vCard" />
|
||||||
|
<input type="hidden" name="record" value="{$fields.id.value}" />
|
||||||
|
<input type="hidden" name="module" value="{$module}" />
|
||||||
|
<input type="hidden" name="to_pdf" value="true" />
|
||||||
|
<span class="id-ff">
|
||||||
|
<button type="submit" name="vCardButton" id="btn_vCardButton" value="{$APP.LBL_VCARD}" title="{$APP.LBL_VCARD}" class="button"><img src="{sugar_getimagepath file="id-ff-vcard.png"}"></button>
|
||||||
|
</span>
|
||||||
|
</form>
|
||||||
|
{{if !empty($displayParams.enableConnectors)}}
|
||||||
|
{{sugarvar_connector view='DetailView'}}
|
||||||
|
{{/if}}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user