Add TPL files
This commit is contained in:
89
modules/Accounts/tpls/QuickCreate.tpl
Normal file
89
modules/Accounts/tpls/QuickCreate.tpl
Normal file
@@ -0,0 +1,89 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* 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="accountsQuickCreate" id="accountsQuickCreate" method="POST" action="index.php">
|
||||
<input type="hidden" name="module" value="Accounts">
|
||||
<input type="hidden" name="email_id" value="{$REQUEST.email_id}">
|
||||
<input type="hidden" name="case_id" value="{$REQUEST.acase_id}">
|
||||
<input type="hidden" name="bug_id" value="{$REQUEST.bug_id}">
|
||||
<input type="hidden" name="parent_id" value="{$REQUEST.parent_id}">
|
||||
<input type="hidden" name="opportunity_id" value="{$REQUEST.opportunity_id}">
|
||||
<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="is_ajax_call" value='1'>
|
||||
<input type="hidden" name="to_pdf" value='1'>
|
||||
<input type="hidden" name="duplicate_parent_id" value="{$REQUEST.duplicate_parent_id}">
|
||||
<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('AccountsQuickCreate');\""} 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='Accounts';" 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="edit view">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<th align="left" scope="row" colspan="4"><h4><slot>{$MOD.LBL_ACCOUNT_INFORMATION}</slot></h4></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><slot>{$MOD.LBL_ACCOUNT_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
|
||||
<td nowrap><slot><input name='name' tabindex='1' size='35' maxlength='150' type="text" value=""></slot></td>
|
||||
<td scope="row"><slot>{$MOD.LBL_PHONE}</slot></td>
|
||||
<td ><slot><input name='phone_office' type="text" tabindex='2' size='20' maxlength='25' value=''></slot></td>
|
||||
</tr><tr>
|
||||
<td scope="row"><slot>{$MOD.LBL_WEBSITE}</slot></td>
|
||||
<td ><slot><input name='website' type="text" tabindex='1' size='28' maxlength='255' value=""></slot></td>
|
||||
<td scope="row"><slot>{$MOD.LBL_EMAIL}</slot></td>
|
||||
<td ><slot><input name='email1' type="text" tabindex='2' size='35' maxlength='100' value=''></slot></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<script>
|
||||
{$additionalScripts}
|
||||
</script>
|
||||
59
modules/Accounts/tpls/SalesChart.tpl
Normal file
59
modules/Accounts/tpls/SalesChart.tpl
Normal file
@@ -0,0 +1,59 @@
|
||||
{if $DATACHART != NULL}
|
||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
||||
<div id="chart_div" style="width: 100%; height: 300px; text-align:center;vertical-align:middle;">
|
||||
<img src="themes/Sugar5/images/loading.gif">
|
||||
</div>
|
||||
<!-- Tablesorter script: required -->
|
||||
<script src="modules/Accounts/js/SalesChart.js"></script>
|
||||
|
||||
<table id="ChartData" class="tablesorter tablesorter-blue">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$MOD.LBL_SALES_CHART_NAME}</th>
|
||||
{foreach from=$DATACHART key=key item=item}
|
||||
<th>{$key}</th>
|
||||
{/foreach}
|
||||
<th>{$MOD.LBL_SALES_CHART_SUMMARY}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{$MOD.LBL_SALES_CHART_NETTO}</td>
|
||||
{foreach from=$ROWS.netto key=key item=item}
|
||||
{assign var=sumanetto value=$sumanetto+$item}
|
||||
<td style="text-align: right;">{$item|number_format:2:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumanetto|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$MOD.LBL_SALES_CHART_BUY}</td>
|
||||
{foreach from=$ROWS.kupno key=key item=item}
|
||||
{assign var=sumakupno value=$sumakupno+$item}
|
||||
<td style="text-align: right;">{$item|number_format:2:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumakupno|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$MOD.LBL_SALES_CHART_INCOME}</td>
|
||||
{foreach from=$ROWS.marza key=key item=item}
|
||||
{assign var=sumamarza value=$sumamarza+$item}
|
||||
<td style="text-align: right;">{$item|number_format:2:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumamarza|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$MOD.LBL_SALES_CHART_NARZUT}</td>
|
||||
{foreach from=$ROWS.marzaprocent key=key item=item}
|
||||
{assign var=sumamarzaprocent value=$sumamarzaprocent+$item}
|
||||
{if $item>0}
|
||||
{assign var=miesiace value=$miesiace+1}
|
||||
{/if}
|
||||
<td style="text-align: right;">{$item|number_format:2:",":"."} %</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumamarzaprocent/$miesiace|number_format:2:",":"."} %</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
{$MOD.LBL_SALES_CHART_NOPE}
|
||||
{/if}
|
||||
91
modules/Accounts/tpls/SendEmail.tpl
Normal file
91
modules/Accounts/tpls/SendEmail.tpl
Normal file
@@ -0,0 +1,91 @@
|
||||
<style>
|
||||
{literal}
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
.text-right {
|
||||
text-align: right !important;
|
||||
}
|
||||
.account_name {
|
||||
background:rgba(0,0,0,0);
|
||||
border:none;
|
||||
text-color: black;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
<h3>Lista mailingowa</h3>
|
||||
|
||||
<table class="list view" width="100%" cellspacing="0" cellpadding="0" border="0" id="transactions_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" nowrap="nowrap" width="40%">
|
||||
<div style="white-space: nowrap;" width="100%" align="left">Kontrahent</div></th>
|
||||
<th scope="col" nowrap="nowrap" width="70%"><div style="white-space: nowrap;" width="100%" align="left">
|
||||
Email</div></th>
|
||||
</tr>
|
||||
<thead>
|
||||
<tbody>
|
||||
{foreach from=$account_list item=row key=k}
|
||||
<tr class="evenListRowS1" row-number="">
|
||||
|
||||
<td class="text-left">{$row.name}</td>
|
||||
<td class="text-left">
|
||||
{if $row.emails|count>0}
|
||||
{foreach from=$row.emails item=row2 key=k}
|
||||
{$row2}
|
||||
{/foreach}
|
||||
|
||||
{else}
|
||||
brak adresu lub nie jest oznaczony jako do wysyłki
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<h3>Ustawienia wiadomości</h3>
|
||||
<form action="index.php" method="POST" name="SendEmail" id="SendEmail" enctype="multipart/form-data">
|
||||
<input type="hidden" name="action" value="SendEmail">
|
||||
<input type="hidden" name="module" value="Accounts">
|
||||
<input type="hidden" name="uid" value="{$uid}">
|
||||
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="tabForm">
|
||||
{if $error==1}
|
||||
<tr><th class="dataLabel" align="left">
|
||||
<span style="color: red;">Proszę wypełnić wszystkie pola!</span>
|
||||
</th>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $success==1}
|
||||
<tr><th class="dataLabel" align="left">
|
||||
<span style="color: green;">Wiadomość została pozytywnie wysłana.</span>
|
||||
</th>
|
||||
</tr>
|
||||
{else}
|
||||
{if $success===0}
|
||||
<tr><th class="dataLabel" align="left">
|
||||
<span style="color: red;">Wystąpił błąd przy wysyłce wiadomości!</span>
|
||||
</th>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
<tbody><tr>
|
||||
<td valign="top" width="12.5%" class="dataLabel" nowrap="">Temat:
|
||||
</td>
|
||||
<td valign="top" width="37.5%" class="tabEditViewDF" colspan="3" nowrap=""><input type="text" name="title" value="{$title}" placeholder="Podaj temat wiadomości" style="width:450px;" required="required">
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td valign="top" width="12.5%" class="dataLabel" nowrap="">Treść wiadomości:
|
||||
</td>
|
||||
<td valign="top" width="37.5%" class="tabEditViewDF" colspan="3" nowrap=""><textarea required="required" id="body" name="body" rows="30" style="width:450px;" placeholder="Wpisz treść wiadomości">{$body}</textarea>
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input class="button primary" type="submit" value="Wyślij" name="submit" accesskey="S" title="Zapisz [Alt+S]">
|
||||
</form>
|
||||
3
modules/Accounts/tpls/Telephones_DetailView.tpl
Normal file
3
modules/Accounts/tpls/Telephones_DetailView.tpl
Normal file
@@ -0,0 +1,3 @@
|
||||
{foreach from=$TELEPHONES_LIST key=k item=v}
|
||||
<li><a href="{$v.telephone}">{$v.telephone}</a></li>
|
||||
{/foreach}
|
||||
10
modules/Accounts/tpls/Telephones_EditView.tpl
Normal file
10
modules/Accounts/tpls/Telephones_EditView.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
<input type="hidden" name="telephones_list" id="telephones_list" value='{$TELEPHONES_LIST}'>
|
||||
|
||||
<button class="btn btn-info" type="button" id="AddMoreWWWBox2" value="Dodaj">
|
||||
<img src="themes/default/images/id-ff-add.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1"></button>
|
||||
|
||||
<table id="InputsWrapper2">
|
||||
<tr><td><input type="text" value="" size="30" id="field_1" name="telephones[]">
|
||||
<input type="hidden" value="" name="telephones_id[]"><a class="removeclass" href="#"></td><td>
|
||||
<img class="id-ff-remove" name="0" src="index.php?entryPoint=getImage&themeName=Sugar5&imageName=id-ff-remove.png"></a></td></tr>
|
||||
</table>
|
||||
3
modules/Accounts/tpls/Websites_DetailView.tpl
Normal file
3
modules/Accounts/tpls/Websites_DetailView.tpl
Normal file
@@ -0,0 +1,3 @@
|
||||
{foreach from=$WEBSITES_LIST key=k item=v}
|
||||
<li><a href="{$v.www}">{$v.www}</a></li>
|
||||
{/foreach}
|
||||
10
modules/Accounts/tpls/Websites_EditView.tpl
Normal file
10
modules/Accounts/tpls/Websites_EditView.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
<input type="hidden" name="websites_list" id="websites_list" value='{$WEBSITES_LIST}'>
|
||||
|
||||
<button class="btn btn-info" type="button" id="AddMoreWWWBox" value="Dodaj">
|
||||
<img src="themes/default/images/id-ff-add.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1"></button>
|
||||
|
||||
<table id="InputsWrapper">
|
||||
<tr><td><input type="text" value="http://" size="30" id="field_1" name="websites[]">
|
||||
<input type="hidden" value="" name="websites_id[]"><a class="removeclass" href="#"></td><td>
|
||||
<img class="id-ff-remove" name="0" src="index.php?entryPoint=getImage&themeName=Sugar5&imageName=id-ff-remove.png"></a></td></tr>
|
||||
</table>
|
||||
104
modules/Accounts/tpls/share.tpl
Normal file
104
modules/Accounts/tpls/share.tpl
Normal file
@@ -0,0 +1,104 @@
|
||||
<script>
|
||||
{literal}
|
||||
$(document).ready(function(){
|
||||
$("#select_all").click(function(){
|
||||
var checked_status = this.checked;
|
||||
$("input[name='users[]']").each(function(){
|
||||
this.checked = checked_status;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function checkthis(){
|
||||
var error=0
|
||||
$("input[name='users[]']").each(function(){
|
||||
|
||||
if($( this ).is( ':checked' )){
|
||||
error=1;
|
||||
}
|
||||
});
|
||||
if(error==1){
|
||||
return true;
|
||||
} else {
|
||||
alert('Zaznacz choć jedną firmę');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
<style>
|
||||
{literal}
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
.text-right {
|
||||
text-align: right !important;
|
||||
}
|
||||
.account_name {
|
||||
background:rgba(0,0,0,0);
|
||||
border:none;
|
||||
text-color: black;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
{if $added==1}
|
||||
<h3><span style="color:green;">Firmy zostały udostępnione</span></h3>
|
||||
<br><br>{/if}
|
||||
<h3>Udostępnij firmie</h3>
|
||||
<form action="index.php" method="POST" name="SendEmail" id="SendEmail" enctype="multipart/form-data">
|
||||
<input type="hidden" name="action" value="share">
|
||||
<input type="hidden" name="module" value="Accounts">
|
||||
<input type="hidden" name="uid" value="{$uid}">
|
||||
<table class="list view" width="100%" cellspacing="0" cellpadding="0" border="0" id="transactions_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" nowrap="nowrap" width="10%"><div style="white-space: nowrap;" width="100%" align="left">
|
||||
<input type="checkbox" name="select_all" id="select_all" value=""></div></th>
|
||||
<th scope="col" nowrap="nowrap" width="90%">
|
||||
<div style="white-space: nowrap;" width="100%" align="left">Firma</div></th>
|
||||
</tr>
|
||||
<thead>
|
||||
<tbody>
|
||||
{foreach from=$users item=row key=k}
|
||||
<tr class="evenListRowS1" row-number="">
|
||||
<td class="text-left"><input type="checkbox" name="users[]" value="{$row.dbasename}">
|
||||
</td>
|
||||
<td class="text-left">{$row.name}</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<h3>Wybrani kontrahenci</h3>
|
||||
|
||||
<table class="list view" width="100%" cellspacing="0" cellpadding="0" border="0" id="transactions_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" nowrap="nowrap" width="100%">
|
||||
<div style="white-space: nowrap;" width="100%" align="left">Firma</div></th>
|
||||
</tr>
|
||||
<thead>
|
||||
<tbody>
|
||||
{foreach from=$account_list item=row key=k}
|
||||
<tr class="evenListRowS1" row-number="">
|
||||
|
||||
<td class="text-left">{$row.name}</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<input class="button primary" type="submit" value="Udostępnij" name="submit" onclick='return checkthis();' accesskey="S" title="Zapisz [Alt+S]">
|
||||
</form>
|
||||
Reference in New Issue
Block a user